diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b8921520ec55..452928d6de71 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -310,6 +310,9 @@ sdk/ai/ai-inference-rest @glharper @dargilco @jhakulin # Managment API review files /sdk/**/review/arm-*.api.md @qiaozha @MaryGao @Azure/azure-sdk-for-js-core +# Cosmos API review files +/sdk/cosmosdb/cosmos/review/*api.md @amanrao23 @aditishree1 @sajeetharan @topshot99 + # Management Plane # PRLabel: %Mgmt /sdk/advisor/arm-advisor/ @qiaozha @MaryGao @@ -401,6 +404,9 @@ sdk/ai/ai-inference-rest @glharper @dargilco @jhakulin # PRLabel: %Mgmt /sdk/communication/arm-communication/ @qiaozha @MaryGao +# PRLabel: %Mgmt +/sdk/connectedcache/arm-connectedcache/ @qiaozha @MaryGao + # PRLabel: %Mgmt /sdk/compute/arm-compute/ @qiaozha @MaryGao @@ -912,6 +918,9 @@ sdk/ai/ai-inference-rest @glharper @dargilco @jhakulin # PRLabel: %Mgmt /sdk/timeseriesinsights/arm-timeseriesinsights/ @qiaozha @MaryGao +# PRLabel: %Mgmt +/sdk/terraform/arm-terraform/ @qiaozha @MaryGao + # PRLabel: %Mgmt /sdk/trafficmanager/arm-trafficmanager/ @qiaozha @MaryGao diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000000..b2bee0cadf71 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,31 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "test:vitest", + "type": "node", + "request": "launch", + "runtimeExecutable": "npx", + "runtimeArgs": ["dev-tool", "run", "test:vitest"], + "args": ["--", "--inspect-brk", "--no-file-parallelism", "${input:filename}"], + "autoAttachChildProcesses": false, + "skipFiles": ["/**"], + "console": "integratedTerminal", + "attachSimplePort": 9229, + "cwd": "${workspaceFolder}/sdk/${input:package-directory}" + } + ], + "inputs": [ + { + "id": "filename", + "type": "promptString", + "description": "(Optional) Enter a part of the test file name (e.g. 'foo' will run 'foo.spec.ts', 'notfoo.spec.ts', 'test.foo.spec.ts', etc.)", + "default": "" + }, + { + "id": "package-directory", + "type": "promptString", + "description": "Enter the package directory (e.g., 'identity/identity', 'keyvault/keyvault-keys', etc.)" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 103f8e1f7892..d4b308085e08 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,8 +10,7 @@ "files.exclude": { "**/.git": true, "**/.svn": true, - "**/.DS_Store": true, - "**/node_modules": true + "**/.DS_Store": true }, "files.insertFinalNewline": true, "files.trimFinalNewlines": true, diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index cbc5d727c77b..bf1afcf4d9db 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -197,6 +197,9 @@ dependencies: '@rush-temp/arm-confluent': specifier: file:./projects/arm-confluent.tgz version: file:projects/arm-confluent.tgz + '@rush-temp/arm-connectedcache': + specifier: file:./projects/arm-connectedcache.tgz + version: file:projects/arm-connectedcache.tgz '@rush-temp/arm-connectedvmware': specifier: file:./projects/arm-connectedvmware.tgz version: file:projects/arm-connectedvmware.tgz @@ -770,6 +773,9 @@ dependencies: '@rush-temp/arm-templatespecs': specifier: file:./projects/arm-templatespecs.tgz version: file:projects/arm-templatespecs.tgz + '@rush-temp/arm-terraform': + specifier: file:./projects/arm-terraform.tgz + version: file:projects/arm-terraform.tgz '@rush-temp/arm-timeseriesinsights': specifier: file:./projects/arm-timeseriesinsights.tgz version: file:projects/arm-timeseriesinsights.tgz @@ -1240,13 +1246,44 @@ packages: '@jridgewell/trace-mapping': 0.3.25 dev: false + /@andrewbranch/untar.js@1.0.3: + resolution: {integrity: sha512-Jh15/qVmrLGhkKJBdXlK1+9tY4lZruYjsgkDFj08ZmDiWVBLJcqkok7Z0/R0In+i1rScBpJlSvrTS2Lm41Pbnw==} + dev: false + + /@arethetypeswrong/cli@0.17.0: + resolution: {integrity: sha512-xSMW7bfzVWpYw5JFgZqBXqr6PdR0/REmn3DkxCES5N0JTcB0CVgbIynJCvKBFmXaPc3hzmmTrb7+yPDRoOSZdA==} + engines: {node: '>=18'} + hasBin: true + dependencies: + '@arethetypeswrong/core': 0.17.0 + chalk: 4.1.2 + cli-table3: 0.6.5 + commander: 10.0.1 + marked: 9.1.6 + marked-terminal: 7.2.1(marked@9.1.6) + semver: 7.6.3 + dev: false + + /@arethetypeswrong/core@0.17.0: + resolution: {integrity: sha512-FHyhFizXNetigTVsIhqXKGYLpazPS5YNojEPpZEUcBPt9wVvoEbNIvG+hybuBR+pjlRcbyuqhukHZm1fr+bDgA==} + engines: {node: '>=18'} + dependencies: + '@andrewbranch/untar.js': 1.0.3 + cjs-module-lexer: 1.4.1 + fflate: 0.8.2 + lru-cache: 10.4.3 + semver: 7.6.3 + typescript: 5.6.1-rc + validate-npm-package-name: 5.0.1 + dev: false + /@azure-rest/core-client@1.4.0: resolution: {integrity: sha512-ozTDPBVUDR5eOnMIwhggbnVmOrka4fXCs8n8mvUo4WLLc38kki6bAOByDoVZZPz/pZy2jMt2kwfpvy/UjALj6w==} engines: {node: '>=18.0.0'} dependencies: '@azure/abort-controller': 2.1.2 '@azure/core-auth': 1.9.0 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 '@azure/core-util': 1.11.0 tslib: 2.8.1 @@ -1260,7 +1297,7 @@ packages: dependencies: '@azure/abort-controller': 2.1.2 '@azure/core-auth': 1.9.0 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 '@azure/core-util': 1.11.0 tslib: 2.8.1 @@ -1286,7 +1323,7 @@ packages: engines: {node: '>=18.0.0'} dependencies: '@azure/core-auth': 1.9.0 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-util': 1.11.0 '@azure/logger': 1.1.4 transitivePeerDependencies: @@ -1317,7 +1354,26 @@ packages: '@azure/core-http-compat': 2.1.2 '@azure/core-lro': 2.7.2 '@azure/core-paging': 1.6.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 + '@azure/core-tracing': 1.2.0 + '@azure/core-util': 1.11.0 + '@azure/logger': 1.1.4 + tslib: 2.8.1 + transitivePeerDependencies: + - supports-color + dev: false + + /@azure/app-configuration@1.8.0: + resolution: {integrity: sha512-RO4IGZMa3hI1yVhvb5rPr+r+UDxe4VDxbntFZIc5fsUPGqZbKzmGR2wABEtlrC2SU5YX6tL+NS3xWb4vf1M9lQ==} + engines: {node: '>=18.0.0'} + dependencies: + '@azure/abort-controller': 2.1.2 + '@azure/core-auth': 1.9.0 + '@azure/core-client': 1.9.2 + '@azure/core-http-compat': 2.1.2 + '@azure/core-lro': 2.7.2 + '@azure/core-paging': 1.6.2 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 '@azure/core-util': 1.11.0 '@azure/logger': 1.1.4 @@ -1335,7 +1391,7 @@ packages: '@azure/core-client': 1.9.2 '@azure/core-lro': 2.7.2 '@azure/core-paging': 1.6.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 tslib: 2.8.1 transitivePeerDependencies: - supports-color @@ -1350,7 +1406,7 @@ packages: '@azure/core-client': 1.9.2 '@azure/core-lro': 2.7.2 '@azure/core-paging': 1.6.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 tslib: 2.8.1 transitivePeerDependencies: - supports-color @@ -1365,7 +1421,7 @@ packages: '@azure/core-client': 1.9.2 '@azure/core-lro': 2.7.2 '@azure/core-paging': 1.6.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 tslib: 2.8.1 transitivePeerDependencies: - supports-color @@ -1380,7 +1436,7 @@ packages: '@azure/core-client': 1.9.2 '@azure/core-lro': 2.7.2 '@azure/core-paging': 1.6.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 tslib: 2.8.1 transitivePeerDependencies: - supports-color @@ -1392,7 +1448,7 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/core-auth': 1.9.0 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 '@azure/core-util': 1.11.0 events: 3.3.0 @@ -1412,7 +1468,7 @@ packages: '@azure/core-client': 1.9.2 '@azure/core-lro': 2.7.2 '@azure/core-paging': 1.6.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 '@azure/logger': 1.1.4 events: 3.3.0 @@ -1429,7 +1485,7 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-auth': 1.9.0 '@azure/core-client': 1.9.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 '@azure/core-util': 1.11.0 '@azure/logger': 1.1.4 @@ -1455,7 +1511,7 @@ packages: dependencies: '@azure/abort-controller': 2.1.2 '@azure/core-auth': 1.9.0 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 '@azure/core-util': 1.11.0 '@azure/logger': 1.1.4 @@ -1470,7 +1526,7 @@ packages: dependencies: '@azure/abort-controller': 2.1.2 '@azure/core-client': 1.9.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 transitivePeerDependencies: - supports-color dev: false @@ -1502,8 +1558,8 @@ packages: tslib: 2.8.1 dev: false - /@azure/core-rest-pipeline@1.17.0: - resolution: {integrity: sha512-62Vv8nC+uPId3j86XJ0WI+sBf0jlqTqPUFCBNrGtlaUeQUIXWV/D8GE5A1d+Qx8H7OQojn2WguC8kChD6v0shA==} + /@azure/core-rest-pipeline@1.18.1: + resolution: {integrity: sha512-/wS73UEDrxroUEVywEm7J0p2c+IIiVxyfigCGfsKvCxxCET4V/Hef2aURqltrXMRjNmdmt5IuOgIpl8f6xdO5A==} engines: {node: '>=18.0.0'} dependencies: '@azure/abort-controller': 2.1.2 @@ -1540,14 +1596,6 @@ packages: tslib: 2.8.1 dev: false - /@azure/core-xml@1.4.4: - resolution: {integrity: sha512-J4FYAqakGXcbfeZjwjMzjNcpcH4E+JtEBv+xcV1yL0Ydn/6wbQfeFKTCHh9wttAi0lmajHw7yBbHPRG+YHckZQ==} - engines: {node: '>=18.0.0'} - dependencies: - fast-xml-parser: 4.5.0 - tslib: 2.8.1 - dev: false - /@azure/functions@3.5.1: resolution: {integrity: sha512-6UltvJiuVpvHSwLcK/Zc6NfUwlkDLOFFx97BHCJzlWNsfiWwzwmTsxJXg4kE/LemKTHxPpfoPE+kOJ8hAdiKFQ==} dependencies: @@ -1572,12 +1620,12 @@ packages: '@azure/abort-controller': 2.1.2 '@azure/core-auth': 1.9.0 '@azure/core-client': 1.9.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 '@azure/core-util': 1.11.0 '@azure/logger': 1.1.4 - '@azure/msal-browser': 3.26.1 - '@azure/msal-node': 2.15.0 + '@azure/msal-browser': 3.27.0 + '@azure/msal-node': 2.16.2 events: 3.3.0 jws: 4.0.0 open: 8.4.2 @@ -1594,7 +1642,7 @@ packages: '@azure/abort-controller': 2.1.2 '@azure/core-auth': 1.9.0 '@azure/core-client': 1.9.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 '@azure/core-util': 1.11.0 '@azure/logger': 1.1.4 @@ -1613,7 +1661,7 @@ packages: '@azure/core-http-compat': 2.1.2 '@azure/core-lro': 2.7.2 '@azure/core-paging': 1.6.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 '@azure/core-util': 1.11.0 '@azure/keyvault-common': 2.0.0 @@ -1638,29 +1686,29 @@ packages: '@azure/core-auth': 1.9.0 '@azure/core-client': 1.9.2 '@azure/core-lro': 2.7.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 transitivePeerDependencies: - supports-color dev: false - /@azure/msal-browser@3.26.1: - resolution: {integrity: sha512-y78sr9g61aCAH9fcLO1um+oHFXc1/5Ap88RIsUSuzkm0BHzFnN+PXGaQeuM1h5Qf5dTnWNOd6JqkskkMPAhh7Q==} + /@azure/msal-browser@3.27.0: + resolution: {integrity: sha512-+b4ZKSD8+vslCtVRVetkegEhOFMLP3rxDWJY212ct+2r6jVg6OSQKc1Qz3kCoXo0FgwaXkb+76TMZfpHp8QtgA==} engines: {node: '>=0.8.0'} dependencies: - '@azure/msal-common': 14.15.0 + '@azure/msal-common': 14.16.0 dev: false - /@azure/msal-common@14.15.0: - resolution: {integrity: sha512-ImAQHxmpMneJ/4S8BRFhjt1MZ3bppmpRPYYNyzeQPeFN288YKbb8TmmISQEbtfkQ1BPASvYZU5doIZOPBAqENQ==} + /@azure/msal-common@14.16.0: + resolution: {integrity: sha512-1KOZj9IpcDSwpNiQNjt0jDYZpQvNZay7QAEi/5DLubay40iGYtLzya/jbjRPLyOTZhEKyL1MzPuw2HqBCjceYA==} engines: {node: '>=0.8.0'} dev: false - /@azure/msal-node-extensions@1.3.0: - resolution: {integrity: sha512-7rXN+9hDm3NncIfNnMyoFtsnz2AlUtmK5rsY3P+fhhbH+GOk0W5Y1BASvAB6RCcKdO+qSIK3ZA6VHQYy4iS/1w==} + /@azure/msal-node-extensions@1.5.0: + resolution: {integrity: sha512-UfEyh2xmJHKH64zPS/SbN1bd9adV4ZWGp1j2OSwIuhVraqpUXyXZ1LpDpiUqg/peTgLLtx20qrHOzYT0kKzmxQ==} engines: {node: '>=16'} requiresBuild: true dependencies: - '@azure/msal-common': 14.15.0 + '@azure/msal-common': 14.16.0 '@azure/msal-node-runtime': 0.17.1 keytar: 7.9.0 dev: false @@ -1670,11 +1718,11 @@ packages: requiresBuild: true dev: false - /@azure/msal-node@2.15.0: - resolution: {integrity: sha512-gVPW8YLz92ZeCibQH2QUw96odJoiM3k/ZPH3f2HxptozmH6+OnyyvKXo/Egg39HAM230akarQKHf0W74UHlh0Q==} + /@azure/msal-node@2.16.2: + resolution: {integrity: sha512-An7l1hEr0w1HMMh1LU+rtDtqL7/jw74ORlc9Wnh06v7TU/xpG39/Zdr1ZJu3QpjUfKJ+E0/OXMW8DRSWTlh7qQ==} engines: {node: '>=16'} dependencies: - '@azure/msal-common': 14.15.0 + '@azure/msal-common': 14.16.0 jsonwebtoken: 9.0.2 uuid: 8.3.2 dev: false @@ -1685,7 +1733,7 @@ packages: dependencies: '@azure-rest/core-client': 1.4.0 '@azure/core-auth': 1.9.0 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-sse': 2.1.3 '@azure/core-util': 1.11.0 '@azure/logger': 1.1.4 @@ -1701,7 +1749,7 @@ packages: '@azure-rest/core-client': 2.3.1 '@azure/core-auth': 1.9.0 '@azure/core-client': 1.9.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 '@azure/logger': 1.1.4 tslib: 2.8.1 @@ -1717,7 +1765,7 @@ packages: '@azure/core-client': 1.9.2 '@azure/core-http-compat': 2.1.2 '@azure/core-paging': 1.6.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 '@azure/logger': 1.1.4 events: 3.3.0 @@ -1726,63 +1774,16 @@ packages: - supports-color dev: false - /@azure/storage-blob@12.25.0: - resolution: {integrity: sha512-oodouhA3nCCIh843tMMbxty3WqfNT+Vgzj3Xo5jqR9UPnzq3d7mzLjlHAYz7lW+b4km3SIgz+NAgztvhm7Z6kQ==} + /@azure/template@1.0.13-beta.1: + resolution: {integrity: sha512-dn0mqAC4jPUbqAOUxdkVNihu1rV6Na7rX8xtwU2LI0JKlZJXOULxzDR4Zyc02s5aUdLpRkyxGoGStdkc+dJC4w==} engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 2.1.2 '@azure/core-auth': 1.9.0 '@azure/core-client': 1.9.2 - '@azure/core-http-compat': 2.1.2 '@azure/core-lro': 2.7.2 - '@azure/core-paging': 1.6.2 - '@azure/core-rest-pipeline': 1.17.0 - '@azure/core-tracing': 1.2.0 - '@azure/core-util': 1.11.0 - '@azure/core-xml': 1.4.4 - '@azure/logger': 1.1.4 - events: 3.3.0 - tslib: 2.8.1 - transitivePeerDependencies: - - supports-color - dev: false - - /@azure/storage-file-datalake@12.24.0: - resolution: {integrity: sha512-U62Xa0T3zSdwgItXKmtpDqD0IDUhGnmk1a3sSE/88U/WSuAjjIm1SITWzryR0FkjslFB2r+/WAdd4ZZuj2dvMQ==} - engines: {node: '>=18.0.0'} - dependencies: - '@azure/abort-controller': 2.1.2 - '@azure/core-auth': 1.9.0 - '@azure/core-client': 1.9.2 - '@azure/core-http-compat': 2.1.2 - '@azure/core-paging': 1.6.2 - '@azure/core-rest-pipeline': 1.17.0 - '@azure/core-tracing': 1.2.0 - '@azure/core-util': 1.11.0 - '@azure/core-xml': 1.4.4 - '@azure/logger': 1.1.4 - '@azure/storage-blob': 12.25.0 - events: 3.3.0 - tslib: 2.8.1 - transitivePeerDependencies: - - supports-color - dev: false - - /@azure/storage-file-share@12.25.0: - resolution: {integrity: sha512-nEYY8/cnCXU0fIRwlyUpzoQpA9ZtHmpZZSTbWsWTTziSmzX9fINTs6rOnZklejJ1wdrJvTsxlJAlaXzrBsdEfw==} - engines: {node: '>=18.0.0'} - dependencies: - '@azure/abort-controller': 2.1.2 - '@azure/core-auth': 1.9.0 - '@azure/core-client': 1.9.2 - '@azure/core-http-compat': 2.1.2 - '@azure/core-paging': 1.6.2 - '@azure/core-rest-pipeline': 1.17.0 + '@azure/core-rest-pipeline': 1.18.1 '@azure/core-tracing': 1.2.0 - '@azure/core-util': 1.11.0 - '@azure/core-xml': 1.4.4 '@azure/logger': 1.1.4 - events: 3.3.0 tslib: 2.8.1 transitivePeerDependencies: - supports-color @@ -1956,10 +1957,10 @@ packages: '@babel/helper-validator-identifier': 7.25.9 dev: false - /@bundled-es-modules/cookie@2.0.0: - resolution: {integrity: sha512-Or6YHg/kamKHpxULAdSqhGqnWFneIXu1NKvvfBBzKGwpVsYuFIQ5aBPHDnnoR3ghW1nvSkALd+EF9iMtY7Vjxw==} + /@bundled-es-modules/cookie@2.0.1: + resolution: {integrity: sha512-8o+5fRPLNbjbdGRRmJj3h6Hh1AQJf2dk3qQ/5ZFb+PXkRNiSoMGGUKlsgLfrxneb72axVJyIYji64E2+nNfYyw==} dependencies: - cookie: 0.5.0 + cookie: 0.7.2 dev: false /@bundled-es-modules/statuses@1.0.1: @@ -2010,6 +2011,15 @@ packages: dev: false optional: true + /@esbuild/aix-ppc64@0.24.0: + resolution: {integrity: sha512-WtKdFM7ls47zkKHFVzMz8opM7LkcsIp9amDUBIAWirg70RM71WRSjdILPsY5Uv1D42ZpUfaPILDlfactHgsRkw==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + requiresBuild: true + dev: false + optional: true + /@esbuild/android-arm64@0.21.5: resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} engines: {node: '>=12'} @@ -2028,6 +2038,15 @@ packages: dev: false optional: true + /@esbuild/android-arm64@0.24.0: + resolution: {integrity: sha512-Vsm497xFM7tTIPYK9bNTYJyF/lsP590Qc1WxJdlB6ljCbdZKU9SY8i7+Iin4kyhV/KV5J2rOKsBQbB77Ab7L/w==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: false + optional: true + /@esbuild/android-arm@0.21.5: resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} engines: {node: '>=12'} @@ -2046,6 +2065,15 @@ packages: dev: false optional: true + /@esbuild/android-arm@0.24.0: + resolution: {integrity: sha512-arAtTPo76fJ/ICkXWetLCc9EwEHKaeya4vMrReVlEIUCAUncH7M4bhMQ+M9Vf+FFOZJdTNMXNBrWwW+OXWpSew==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + requiresBuild: true + dev: false + optional: true + /@esbuild/android-x64@0.21.5: resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} engines: {node: '>=12'} @@ -2064,6 +2092,15 @@ packages: dev: false optional: true + /@esbuild/android-x64@0.24.0: + resolution: {integrity: sha512-t8GrvnFkiIY7pa7mMgJd7p8p8qqYIz1NYiAoKc75Zyv73L3DZW++oYMSHPRarcotTKuSs6m3hTOa5CKHaS02TQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: false + optional: true + /@esbuild/darwin-arm64@0.21.5: resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} engines: {node: '>=12'} @@ -2082,6 +2119,15 @@ packages: dev: false optional: true + /@esbuild/darwin-arm64@0.24.0: + resolution: {integrity: sha512-CKyDpRbK1hXwv79soeTJNHb5EiG6ct3efd/FTPdzOWdbZZfGhpbcqIpiD0+vwmpu0wTIL97ZRPZu8vUt46nBSw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + /@esbuild/darwin-x64@0.21.5: resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} engines: {node: '>=12'} @@ -2100,6 +2146,15 @@ packages: dev: false optional: true + /@esbuild/darwin-x64@0.24.0: + resolution: {integrity: sha512-rgtz6flkVkh58od4PwTRqxbKH9cOjaXCMZgWD905JOzjFKW+7EiUObfd/Kav+A6Gyud6WZk9w+xu6QLytdi2OA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + /@esbuild/freebsd-arm64@0.21.5: resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} engines: {node: '>=12'} @@ -2118,6 +2173,15 @@ packages: dev: false optional: true + /@esbuild/freebsd-arm64@0.24.0: + resolution: {integrity: sha512-6Mtdq5nHggwfDNLAHkPlyLBpE5L6hwsuXZX8XNmHno9JuL2+bg2BX5tRkwjyfn6sKbxZTq68suOjgWqCicvPXA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: false + optional: true + /@esbuild/freebsd-x64@0.21.5: resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} engines: {node: '>=12'} @@ -2136,6 +2200,15 @@ packages: dev: false optional: true + /@esbuild/freebsd-x64@0.24.0: + resolution: {integrity: sha512-D3H+xh3/zphoX8ck4S2RxKR6gHlHDXXzOf6f/9dbFt/NRBDIE33+cVa49Kil4WUjxMGW0ZIYBYtaGCa2+OsQwQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-arm64@0.21.5: resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} engines: {node: '>=12'} @@ -2154,6 +2227,15 @@ packages: dev: false optional: true + /@esbuild/linux-arm64@0.24.0: + resolution: {integrity: sha512-TDijPXTOeE3eaMkRYpcy3LarIg13dS9wWHRdwYRnzlwlA370rNdZqbcp0WTyyV/k2zSxfko52+C7jU5F9Tfj1g==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-arm@0.21.5: resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} engines: {node: '>=12'} @@ -2172,6 +2254,15 @@ packages: dev: false optional: true + /@esbuild/linux-arm@0.24.0: + resolution: {integrity: sha512-gJKIi2IjRo5G6Glxb8d3DzYXlxdEj2NlkixPsqePSZMhLudqPhtZ4BUrpIuTjJYXxvF9njql+vRjB2oaC9XpBw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-ia32@0.21.5: resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} engines: {node: '>=12'} @@ -2190,6 +2281,15 @@ packages: dev: false optional: true + /@esbuild/linux-ia32@0.24.0: + resolution: {integrity: sha512-K40ip1LAcA0byL05TbCQ4yJ4swvnbzHscRmUilrmP9Am7//0UjPreh4lpYzvThT2Quw66MhjG//20mrufm40mA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-loong64@0.21.5: resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} engines: {node: '>=12'} @@ -2208,6 +2308,15 @@ packages: dev: false optional: true + /@esbuild/linux-loong64@0.24.0: + resolution: {integrity: sha512-0mswrYP/9ai+CU0BzBfPMZ8RVm3RGAN/lmOMgW4aFUSOQBjA31UP8Mr6DDhWSuMwj7jaWOT0p0WoZ6jeHhrD7g==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-mips64el@0.21.5: resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} engines: {node: '>=12'} @@ -2226,6 +2335,15 @@ packages: dev: false optional: true + /@esbuild/linux-mips64el@0.24.0: + resolution: {integrity: sha512-hIKvXm0/3w/5+RDtCJeXqMZGkI2s4oMUGj3/jM0QzhgIASWrGO5/RlzAzm5nNh/awHE0A19h/CvHQe6FaBNrRA==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-ppc64@0.21.5: resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} engines: {node: '>=12'} @@ -2244,6 +2362,15 @@ packages: dev: false optional: true + /@esbuild/linux-ppc64@0.24.0: + resolution: {integrity: sha512-HcZh5BNq0aC52UoocJxaKORfFODWXZxtBaaZNuN3PUX3MoDsChsZqopzi5UupRhPHSEHotoiptqikjN/B77mYQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-riscv64@0.21.5: resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} engines: {node: '>=12'} @@ -2262,6 +2389,15 @@ packages: dev: false optional: true + /@esbuild/linux-riscv64@0.24.0: + resolution: {integrity: sha512-bEh7dMn/h3QxeR2KTy1DUszQjUrIHPZKyO6aN1X4BCnhfYhuQqedHaa5MxSQA/06j3GpiIlFGSsy1c7Gf9padw==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-s390x@0.21.5: resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} engines: {node: '>=12'} @@ -2280,6 +2416,15 @@ packages: dev: false optional: true + /@esbuild/linux-s390x@0.24.0: + resolution: {integrity: sha512-ZcQ6+qRkw1UcZGPyrCiHHkmBaj9SiCD8Oqd556HldP+QlpUIe2Wgn3ehQGVoPOvZvtHm8HPx+bH20c9pvbkX3g==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/linux-x64@0.21.5: resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} engines: {node: '>=12'} @@ -2298,6 +2443,15 @@ packages: dev: false optional: true + /@esbuild/linux-x64@0.24.0: + resolution: {integrity: sha512-vbutsFqQ+foy3wSSbmjBXXIJ6PL3scghJoM8zCL142cGaZKAdCZHyf+Bpu/MmX9zT9Q0zFBVKb36Ma5Fzfa8xA==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + /@esbuild/netbsd-x64@0.21.5: resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} engines: {node: '>=12'} @@ -2316,6 +2470,15 @@ packages: dev: false optional: true + /@esbuild/netbsd-x64@0.24.0: + resolution: {integrity: sha512-hjQ0R/ulkO8fCYFsG0FZoH+pWgTTDreqpqY7UnQntnaKv95uP5iW3+dChxnx7C3trQQU40S+OgWhUVwCjVFLvg==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: false + optional: true + /@esbuild/openbsd-arm64@0.23.1: resolution: {integrity: sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==} engines: {node: '>=18'} @@ -2325,6 +2488,15 @@ packages: dev: false optional: true + /@esbuild/openbsd-arm64@0.24.0: + resolution: {integrity: sha512-MD9uzzkPQbYehwcN583yx3Tu5M8EIoTD+tUgKF982WYL9Pf5rKy9ltgD0eUgs8pvKnmizxjXZyLt0z6DC3rRXg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + requiresBuild: true + dev: false + optional: true + /@esbuild/openbsd-x64@0.21.5: resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} engines: {node: '>=12'} @@ -2343,6 +2515,15 @@ packages: dev: false optional: true + /@esbuild/openbsd-x64@0.24.0: + resolution: {integrity: sha512-4ir0aY1NGUhIC1hdoCzr1+5b43mw99uNwVzhIq1OY3QcEwPDO3B7WNXBzaKY5Nsf1+N11i1eOfFcq+D/gOS15Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: false + optional: true + /@esbuild/sunos-x64@0.21.5: resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} engines: {node: '>=12'} @@ -2361,6 +2542,15 @@ packages: dev: false optional: true + /@esbuild/sunos-x64@0.24.0: + resolution: {integrity: sha512-jVzdzsbM5xrotH+W5f1s+JtUy1UWgjU0Cf4wMvffTB8m6wP5/kx0KiaLHlbJO+dMgtxKV8RQ/JvtlFcdZ1zCPA==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: false + optional: true + /@esbuild/win32-arm64@0.21.5: resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} engines: {node: '>=12'} @@ -2379,6 +2569,15 @@ packages: dev: false optional: true + /@esbuild/win32-arm64@0.24.0: + resolution: {integrity: sha512-iKc8GAslzRpBytO2/aN3d2yb2z8XTVfNV0PjGlCxKo5SgWmNXx82I/Q3aG1tFfS+A2igVCY97TJ8tnYwpUWLCA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: false + optional: true + /@esbuild/win32-ia32@0.21.5: resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} engines: {node: '>=12'} @@ -2397,6 +2596,15 @@ packages: dev: false optional: true + /@esbuild/win32-ia32@0.24.0: + resolution: {integrity: sha512-vQW36KZolfIudCcTnaTpmLQ24Ha1RjygBo39/aLkM2kmjkWmZGEJ5Gn9l5/7tzXA42QGIoWbICfg6KLLkIw6yw==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: false + optional: true + /@esbuild/win32-x64@0.21.5: resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} engines: {node: '>=12'} @@ -2415,6 +2623,15 @@ packages: dev: false optional: true + /@esbuild/win32-x64@0.24.0: + resolution: {integrity: sha512-7IAFPrjSQIJrGsK6flwg7NFmwBoSTyF3rl7If0hNUFQU4ilTsEPL6GuMuU9BfIWVVGuRnuIidkSMC+c0Otu8IA==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: false + optional: true + /@eslint-community/eslint-utils@4.4.1(eslint@8.57.1): resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -2425,13 +2642,13 @@ packages: eslint-visitor-keys: 3.4.3 dev: false - /@eslint-community/eslint-utils@4.4.1(eslint@9.14.0): + /@eslint-community/eslint-utils@4.4.1(eslint@9.15.0): resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 9.14.0 + eslint: 9.15.0 eslint-visitor-keys: 3.4.3 dev: false @@ -2440,8 +2657,8 @@ packages: engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: false - /@eslint/compat@1.2.2(eslint@9.14.0): - resolution: {integrity: sha512-jhgiIrsw+tRfcBQ4BFl2C3vCrIUw2trCY0cnDvGZpwTtKCEDmZhAtMfrEUP/KpnwM6PrO0T+Ltm+ccW74olG3Q==} + /@eslint/compat@1.2.3(eslint@9.15.0): + resolution: {integrity: sha512-wlZhwlDFxkxIZ571aH0FoK4h4Vwx7P3HJx62Gp8hTc10bfpwT2x0nULuAHmQSJBOWPgPeVf+9YtnD4j50zVHmA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^9.10.0 @@ -2449,11 +2666,11 @@ packages: eslint: optional: true dependencies: - eslint: 9.14.0 + eslint: 9.15.0 dev: false - /@eslint/config-array@0.18.0: - resolution: {integrity: sha512-fTxvnS1sRMu3+JjXwJG0j/i4RT9u4qJ+lqS/yCGap4lH4zZGzQ7tu+xZqQmcMZq5OBZDL4QRxQzRjkWcGt8IVw==} + /@eslint/config-array@0.19.0: + resolution: {integrity: sha512-zdHg2FPIFNKPdcHWtiNT+jEFCHYVplAXRDlQDyqy0zGx/q2parwh7brGJSiTxRk/TSMkbM//zt/f5CHgyTyaSQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} dependencies: '@eslint/object-schema': 2.1.4 @@ -2463,8 +2680,8 @@ packages: - supports-color dev: false - /@eslint/core@0.7.0: - resolution: {integrity: sha512-xp5Jirz5DyPYlPiKat8jaq0EmYvDXKKpzTbxXMpT9eqlRJkRKIz9AGMdlvYjih+im+QlhWrpvVjl8IPC/lHlUw==} + /@eslint/core@0.9.0: + resolution: {integrity: sha512-7ATR9F0e4W85D/0w7cU0SNj7qkAexMG+bAHEZOjo9akvGuhHE2m7umzWzfnpa0XAg5Kxc1BWmtPMV67jJ+9VUg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} dev: false @@ -2485,8 +2702,8 @@ packages: - supports-color dev: false - /@eslint/eslintrc@3.1.0: - resolution: {integrity: sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==} + /@eslint/eslintrc@3.2.0: + resolution: {integrity: sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} dependencies: ajv: 6.12.6 @@ -2507,8 +2724,8 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: false - /@eslint/js@9.14.0: - resolution: {integrity: sha512-pFoEtFWCPyDOl+C6Ift+wC7Ro89otjigCf5vcuWqWgqNSQbRrpjSvdeE6ofLz4dHmyxD5f7gIdGT4+p36L6Twg==} + /@eslint/js@9.15.0: + resolution: {integrity: sha512-tMTqrY+EzbXmKJR5ToI8lxu7jaN5EdmrBFJpQk5JmSlyLsx6o4t27r883K5xsLuCYCpfKBCGswMSWXsM+jB7lg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} dev: false @@ -2517,8 +2734,8 @@ packages: engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} dev: false - /@eslint/plugin-kit@0.2.2: - resolution: {integrity: sha512-CXtq5nR4Su+2I47WPOlWud98Y5Lv8Kyxp2ukhgFx/eW6Blm18VXJO5WuQylPugRo8nbluoi6GvvxBLqHcvqUUw==} + /@eslint/plugin-kit@0.2.3: + resolution: {integrity: sha512-2b/g5hRmpbb1o4GnTZax9N9m0FXzz9OV42ZzI4rDDMDuHUqigAiQCEWChBWCY4ztAGVRjoWT19v0yMmc5/L5kA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} dependencies: levn: 0.4.1 @@ -2588,28 +2805,28 @@ packages: engines: {node: '>=18.18'} dev: false - /@humanwhocodes/retry@0.4.0: - resolution: {integrity: sha512-xnRgu9DxZbkWak/te3fcytNyp8MTbuiZIaueg2rgEvBuN55n04nwLYLU9TX/VVlusc9L2ZNXi99nUFNkHXtr5g==} + /@humanwhocodes/retry@0.4.1: + resolution: {integrity: sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==} engines: {node: '>=18.18'} dev: false - /@inquirer/confirm@5.0.1(@types/node@18.19.64): - resolution: {integrity: sha512-6ycMm7k7NUApiMGfVc32yIPp28iPKxhGRMqoNDiUjq2RyTAkbs5Fx0TdzBqhabcKvniDdAAvHCmsRjnNfTsogw==} + /@inquirer/confirm@5.0.2(@types/node@18.19.66): + resolution: {integrity: sha512-KJLUHOaKnNCYzwVbryj3TNBxyZIrr56fR5N45v6K9IPrbT6B7DcudBMfylkV1A8PUdJE15mybkEQyp2/ZUpxUA==} engines: {node: '>=18'} peerDependencies: '@types/node': '>=18' dependencies: - '@inquirer/core': 10.0.1(@types/node@18.19.64) - '@inquirer/type': 3.0.0(@types/node@18.19.64) - '@types/node': 18.19.64 + '@inquirer/core': 10.1.0(@types/node@18.19.66) + '@inquirer/type': 3.0.1(@types/node@18.19.66) + '@types/node': 18.19.66 dev: false - /@inquirer/core@10.0.1(@types/node@18.19.64): - resolution: {integrity: sha512-KKTgjViBQUi3AAssqjUFMnMO3CM3qwCHvePV9EW+zTKGKafFGFF01sc1yOIYjLJ7QU52G/FbzKc+c01WLzXmVQ==} + /@inquirer/core@10.1.0(@types/node@18.19.66): + resolution: {integrity: sha512-I+ETk2AL+yAVbvuKx5AJpQmoaWhpiTFOg/UJb7ZkMAK4blmtG8ATh5ct+T/8xNld0CZG/2UhtkdMwpgvld92XQ==} engines: {node: '>=18'} dependencies: - '@inquirer/figures': 1.0.7 - '@inquirer/type': 3.0.0(@types/node@18.19.64) + '@inquirer/figures': 1.0.8 + '@inquirer/type': 3.0.1(@types/node@18.19.66) ansi-escapes: 4.3.2 cli-width: 4.1.0 mute-stream: 2.0.0 @@ -2621,18 +2838,18 @@ packages: - '@types/node' dev: false - /@inquirer/figures@1.0.7: - resolution: {integrity: sha512-m+Trk77mp54Zma6xLkLuY+mvanPxlE4A7yNKs2HBiyZ4UkVs28Mv5c/pgWrHeInx+USHeX/WEPzjrWrcJiQgjw==} + /@inquirer/figures@1.0.8: + resolution: {integrity: sha512-tKd+jsmhq21AP1LhexC0pPwsCxEhGgAkg28byjJAd+xhmIs8LUX8JbUc3vBf3PhLxWiB5EvyBE5X7JSPAqMAqg==} engines: {node: '>=18'} dev: false - /@inquirer/type@3.0.0(@types/node@18.19.64): - resolution: {integrity: sha512-YYykfbw/lefC7yKj7nanzQXILM7r3suIvyFlCcMskc99axmsSewXWkAfXKwMbgxL76iAFVmRwmYdwNZNc8gjog==} + /@inquirer/type@3.0.1(@types/node@18.19.66): + resolution: {integrity: sha512-+ksJMIy92sOAiAccGpcKZUc3bYO07cADnscIxHBknEm3uNts3movSmBofc1908BNy5edKscxYeAdaX1NXkHS6A==} engines: {node: '>=18'} peerDependencies: '@types/node': '>=18' dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@isaacs/cliui@8.0.2: @@ -2718,27 +2935,27 @@ packages: lodash: 4.17.21 dev: false - /@microsoft/api-extractor-model@7.29.8(@types/node@18.19.64): - resolution: {integrity: sha512-t3Z/xcO6TRbMcnKGVMs4uMzv/gd5j0NhMiJIGjD4cJMeFJ1Hf8wnLSx37vxlRlL0GWlGJhnFgxvnaL6JlS+73g==} + /@microsoft/api-extractor-model@7.30.0(@types/node@18.19.66): + resolution: {integrity: sha512-26/LJZBrsWDKAkOWRiQbdVgcfd1F3nyJnAiJzsAgpouPk7LtOIj7PK9aJtBaw/pUXrkotEg27RrT+Jm/q0bbug==} dependencies: - '@microsoft/tsdoc': 0.15.0 - '@microsoft/tsdoc-config': 0.17.0 - '@rushstack/node-core-library': 5.9.0(@types/node@18.19.64) + '@microsoft/tsdoc': 0.15.1 + '@microsoft/tsdoc-config': 0.17.1 + '@rushstack/node-core-library': 5.10.0(@types/node@18.19.66) transitivePeerDependencies: - '@types/node' dev: false - /@microsoft/api-extractor@7.47.11(@types/node@18.19.64): - resolution: {integrity: sha512-lrudfbPub5wzBhymfFtgZKuBvXxoSIAdrvS2UbHjoMT2TjIEddq6Z13pcve7A03BAouw0x8sW8G4txdgfiSwpQ==} + /@microsoft/api-extractor@7.48.0(@types/node@18.19.66): + resolution: {integrity: sha512-FMFgPjoilMUWeZXqYRlJ3gCVRhB7WU/HN88n8OLqEsmsG4zBdX/KQdtJfhq95LQTQ++zfu0Em1LLb73NqRCLYQ==} hasBin: true dependencies: - '@microsoft/api-extractor-model': 7.29.8(@types/node@18.19.64) - '@microsoft/tsdoc': 0.15.0 - '@microsoft/tsdoc-config': 0.17.0 - '@rushstack/node-core-library': 5.9.0(@types/node@18.19.64) + '@microsoft/api-extractor-model': 7.30.0(@types/node@18.19.66) + '@microsoft/tsdoc': 0.15.1 + '@microsoft/tsdoc-config': 0.17.1 + '@rushstack/node-core-library': 5.10.0(@types/node@18.19.66) '@rushstack/rig-package': 0.5.3 - '@rushstack/terminal': 0.14.2(@types/node@18.19.64) - '@rushstack/ts-command-line': 4.23.0(@types/node@18.19.64) + '@rushstack/terminal': 0.14.3(@types/node@18.19.66) + '@rushstack/ts-command-line': 4.23.1(@types/node@18.19.66) lodash: 4.17.21 minimatch: 3.0.8 resolve: 1.22.8 @@ -2762,10 +2979,10 @@ packages: resolve: 1.19.0 dev: false - /@microsoft/tsdoc-config@0.17.0: - resolution: {integrity: sha512-v/EYRXnCAIHxOHW+Plb6OWuUoMotxTN0GLatnpOb1xq0KuTNw/WI3pamJx/UbsoJP5k9MCw1QxvvhPcF9pH3Zg==} + /@microsoft/tsdoc-config@0.17.1: + resolution: {integrity: sha512-UtjIFe0C6oYgTnad4q1QP4qXwLhe6tIpNTRStJ2RZEPIkqQPREAwE5spzVxsdn9UaEMUqhh0AqSx3X4nWAKXWw==} dependencies: - '@microsoft/tsdoc': 0.15.0 + '@microsoft/tsdoc': 0.15.1 ajv: 8.12.0 jju: 1.4.0 resolve: 1.22.8 @@ -2775,12 +2992,12 @@ packages: resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==} dev: false - /@microsoft/tsdoc@0.15.0: - resolution: {integrity: sha512-HZpPoABogPvjeJOdzCOSJsXeL/SMCBgBZMVC3X3d7YYp2gf31MfxhUoYUNwf1ERPJOnQc0wkFn9trqI6ZEdZuA==} + /@microsoft/tsdoc@0.15.1: + resolution: {integrity: sha512-4aErSrCR/On/e5G2hDP0wjooqDdauzEbIq8hIkIe5pXV0rtWJZvdCEKL0ykZxex+IxIwBp0eGeV48hQN07dXtw==} dev: false - /@mswjs/interceptors@0.36.9: - resolution: {integrity: sha512-mMRDUBwSNeCgjSMEWfjoh4Rm9fbyZ7xQ9SBq8eGHiiyRn1ieTip3pNEt0wxWVPPxR4i1Rv9bTkeEbkX7M4c15A==} + /@mswjs/interceptors@0.37.1: + resolution: {integrity: sha512-SvE+tSpcX884RJrPCskXxoS965Ky/pYABDEhWW6oeSRhpUDLrS5nTvT5n1LLSDVDYvty4imVmXsy+3/ROVuknA==} engines: {node: '>=18'} dependencies: '@open-draft/deferred-promise': 2.2.0 @@ -2827,15 +3044,8 @@ packages: resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==} dev: false - /@opentelemetry/api-logs@0.53.0: - resolution: {integrity: sha512-8HArjKx+RaAI8uEIgcORbZIPklyh1YLjPSBus8hjRmvLi6DeFzgOcdZ7KwPabKj8mXF8dX0hyfAyGfycz0DbFw==} - engines: {node: '>=14'} - dependencies: - '@opentelemetry/api': 1.9.0 - dev: false - - /@opentelemetry/api-logs@0.54.0: - resolution: {integrity: sha512-9HhEh5GqFrassUndqJsyW7a0PzfyWr2eV2xwzHLIS+wX3125+9HE9FMRAKmJRwxZhgZGwH3HNQQjoMGZqmOeVA==} + /@opentelemetry/api-logs@0.55.0: + resolution: {integrity: sha512-3cpa+qI45VHYcA5c0bHM6VHo9gicv3p5mlLHNG3rLyjQU8b7e0st1rWtrUn3JbZ3DwwCfhKop4eQ9UuYlC6Pkg==} engines: {node: '>=14'} dependencies: '@opentelemetry/api': 1.9.0 @@ -2846,8 +3056,8 @@ packages: engines: {node: '>=8.0.0'} dev: false - /@opentelemetry/context-async-hooks@1.27.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-CdZ3qmHCwNhFAzjTgHqrDQ44Qxcpz43cVxZRhOs+Ns/79ug+Mr84Bkb626bkJLkA3+BLimA5YAEVRlJC6pFb7g==} + /@opentelemetry/context-async-hooks@1.28.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-igcl4Ve+F1N2063PJUkesk/GkYyuGIWinYkSyAFTnIj3gzrOgvOA4k747XNdL47HRRL1w/qh7UW8NDuxOLvKFA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': '>=1.0.0 <1.10.0' @@ -2855,8 +3065,8 @@ packages: '@opentelemetry/api': 1.9.0 dev: false - /@opentelemetry/core@1.26.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-1iKxXXE8415Cdv0yjG3G6hQnB5eVEsJce3QaawX8SjDn0mAS0ZM8fAbZZJD4ajvhC15cePvosSCut404KrIIvQ==} + /@opentelemetry/core@1.28.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-ZLwRMV+fNDpVmF2WYUdBHlq0eOWtEaUJSusrzjGnBt7iSRvfjFE3RXYUZJrqou/wIDWV0DwQ5KIfYe9WXg9Xqw==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': '>=1.0.0 <1.10.0' @@ -2865,139 +3075,129 @@ packages: '@opentelemetry/semantic-conventions': 1.27.0 dev: false - /@opentelemetry/core@1.27.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-yQPKnK5e+76XuiqUH/gKyS8wv/7qITd5ln56QkBTf3uggr0VkXOXfcaAuG330UfdYu83wsyoBwqwxigpIG+Jkg==} + /@opentelemetry/exporter-logs-otlp-grpc@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-ykqawCL0ILJWyCJlxCPSAlqQXZ6x2bQsxAVUu8S3z22XNqY5SMx0rl2d93XnvnrOwtcfm+sM9ZhbGh/i5AZ9xw==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.10.0' + '@opentelemetry/api': ^1.3.0 dependencies: + '@grpc/grpc-js': 1.12.2 '@opentelemetry/api': 1.9.0 - '@opentelemetry/semantic-conventions': 1.27.0 + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-grpc-exporter-base': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-transformer': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-logs': 0.55.0(@opentelemetry/api@1.9.0) dev: false - /@opentelemetry/exporter-logs-otlp-grpc@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-CQC9xl9p8EIvx2KggdM7yffbpmUArKjiqAcjTTTEvqE8kOOf71NSuBU0FXs14FU8vBGTUlsr3oI4vGeWF8FakA==} + /@opentelemetry/exporter-logs-otlp-http@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-fpFObWWq+DoLVrBU2dyMEaVkibByEkmKQZIUIjW/4j7lwIsTgW7aJCoD9RYFVB/tButcqov5Es2C0J2wTjM2tg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@grpc/grpc-js': 1.12.2 '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-grpc-exporter-base': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-transformer': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-logs': 0.54.0(@opentelemetry/api@1.9.0) + '@opentelemetry/api-logs': 0.55.0 + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-exporter-base': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-transformer': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-logs': 0.55.0(@opentelemetry/api@1.9.0) dev: false - /@opentelemetry/exporter-logs-otlp-http@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-EX/5YPtFw5hugURWSmOtJEGsjphkwTRAiv2yay40ADCLEzajhI/tM3v/7hFCj+rm37sGFMNawpi3mGLvfKGexQ==} + /@opentelemetry/exporter-logs-otlp-proto@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-vjE+DxUr+cUpxikdKCPiLZM5Wx7g1bywjCG76TQocvsA7Tmbb9p0t1+8gPlu9AGH7VEzPwDxxpN4p1ajpOurzQ==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.54.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-exporter-base': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-transformer': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-logs': 0.54.0(@opentelemetry/api@1.9.0) + '@opentelemetry/api-logs': 0.55.0 + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-exporter-base': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-transformer': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-logs': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 1.28.0(@opentelemetry/api@1.9.0) dev: false - /@opentelemetry/exporter-logs-otlp-proto@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-Q8p1eLP6BGu26VdiR8qBiyufXTZimUl2kv6EwZZPLRU0CJWAFR562UOyUtDxbwQioQFq57DVjCd6mQWBvydAlg==} + /@opentelemetry/exporter-trace-otlp-grpc@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-ohIkCLn2Wc3vhhFuf1bH8kOXHMEdcWiD847x7f3Qfygc+CGiatGLzQYscTcEYsWGMV22gVwB/kVcNcx5a3o8gA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: + '@grpc/grpc-js': 1.12.2 '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.54.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-exporter-base': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-transformer': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-logs': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-grpc-exporter-base': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-transformer': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 1.28.0(@opentelemetry/api@1.9.0) dev: false - /@opentelemetry/exporter-trace-otlp-grpc@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-DOoK7yk/L/RHoyuYTxIyGY7PLFSTS7OGNks9htMS7eAFkm4Lsa6EtPlGANCT39NXWP4XIQR1c+Y+YIQ7lJdI+w==} + /@opentelemetry/exporter-trace-otlp-http@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-lMiNic63EVHpW+eChmLD2CieDmwQBFi72+LFbh8+5hY0ShrDGrsGP/zuT5MRh7M/vM/UZYO/2A/FYd7CMQGR7A==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@grpc/grpc-js': 1.12.2 '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-grpc-exporter-base': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-transformer': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-exporter-base': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-transformer': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 1.28.0(@opentelemetry/api@1.9.0) dev: false - /@opentelemetry/exporter-trace-otlp-http@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-00X6rtr6Ew59+MM9pPSH7Ww5ScpWKBLiBA49awbPqQuVL/Bp0qp7O1cTxKHgjWdNkhsELzJxAEYwuRnDGrMXyA==} + /@opentelemetry/exporter-trace-otlp-proto@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-qxiJFP+bBZW3+goHCGkE1ZdW9gJU0fR7eQ6OP+Rz5oGtEBbq4nkGodhb7C9FJlEFlE2siPtCxoeupV0gtYynag==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-exporter-base': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-transformer': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-exporter-base': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-transformer': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 1.28.0(@opentelemetry/api@1.9.0) dev: false - /@opentelemetry/exporter-trace-otlp-proto@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-cpDQj5wl7G8pLu3lW94SnMpn0C85A9Ehe7+JBow2IL5DGPWXTkynFngMtCC3PpQzQgzlyOVe0MVZfoBB3M5ECA==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': ^1.3.0 - dependencies: - '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-exporter-base': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-transformer': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.27.0(@opentelemetry/api@1.9.0) - dev: false - - /@opentelemetry/exporter-zipkin@1.27.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-eGMY3s4QprspFZojqsuQyQpWNFpo+oNVE/aosTbtvAlrJBAlvXcwwsOROOHOd8Y9lkU4i0FpQW482rcXkgwCSw==} + /@opentelemetry/exporter-zipkin@1.28.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-AMwr3eGXaPEH7gk8yhcUcen31VXy1yU5VJETu0pCfGpggGCYmhm0FKgYBpL5/vlIgQJWU/sW2vIjCL7aSilpKg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 1.28.0(@opentelemetry/api@1.9.0) '@opentelemetry/semantic-conventions': 1.27.0 dev: false - /@opentelemetry/instrumentation-bunyan@0.42.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-GBh6ybwKmFZjc86SyHVx72jHg+4pFPaXT3IZgJ4QtnMsMf0/q5m2aHAjid+yakmEkApsnRWX8pJ8nkl1e+6mag==} + /@opentelemetry/instrumentation-bunyan@0.43.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-nAAXMx63tXXWwuPiTLWTxDRBqXDRvcfE4H3IrXZbrls3BO7P7SkTZ9dvwPCuTku4rRUhEEDpV8vq9Ng4Pk/Uzw==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.54.0 - '@opentelemetry/instrumentation': 0.54.0(@opentelemetry/api@1.9.0) + '@opentelemetry/api-logs': 0.55.0 + '@opentelemetry/instrumentation': 0.55.0(@opentelemetry/api@1.9.0) '@types/bunyan': 1.8.9 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-http@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-ovl0UrL+vGpi0O7fdZ1mHRdiQkuv6NGMRBRKZZygVCUFNXdoqTpvJRRbTYih5U5FC+PHIFssEordmlblRCaGUg==} + /@opentelemetry/instrumentation-http@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-AO27XSjkgNicfy/YBthskFAwx9VfaO7tChrLaTONTfOWv14GlB3Rs2eTYpywZIHWsW2cR5hvVkcDte4GV0stoA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation': 0.54.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation': 0.55.0(@opentelemetry/api@1.9.0) '@opentelemetry/semantic-conventions': 1.27.0 forwarded-parse: 2.1.2 semver: 7.6.3 @@ -3005,42 +3205,42 @@ packages: - supports-color dev: false - /@opentelemetry/instrumentation-mongodb@0.48.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-9YWvaGvrrcrydMsYGLu0w+RgmosLMKe3kv/UNlsPy8RLnCkN2z+bhhbjjjuxtUmvEuKZMCoXFluABVuBr1yhjw==} + /@opentelemetry/instrumentation-mongodb@0.49.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-3qIvelQxqj+znuHB6f2sLGmTG6FUbpX0qsxABEG3yPh7i11f2dJ554bUxkpVV1Y9YafP3iKEHo2ybbjjUm5xyg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/instrumentation': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/semantic-conventions': 1.27.0 + '@opentelemetry/instrumentation': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/semantic-conventions': 1.28.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-mysql@0.42.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-1GN2EBGVSZABGQ25MSz3faeBW/DwhzmE10aNW1/A2mvQAxF1CvpMk17YmNUzwapVt29iKsiU3SXQG7vjh/019A==} + /@opentelemetry/instrumentation-mysql@0.43.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-Yd4QLENitUAovh5JKbDIvzLVkt+3InnQYiWqcD4X7VjUGdVlZuCgMNkyUl6ML3WonH60jDy7S2rmLZAlWm7qTg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/instrumentation': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/semantic-conventions': 1.27.0 + '@opentelemetry/instrumentation': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/semantic-conventions': 1.28.0 '@types/mysql': 2.15.26 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-pg@0.47.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-aKu5PCeUv3S8s1wq60JZ2o3DWV2wqvO7WAktjmkx5wXd2+tZRfyDCKFHbP90QuDG1HDzjJ138Ob4d4rJdPETCQ==} + /@opentelemetry/instrumentation-pg@0.48.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-z0eG0A6SUXM/zSBisFVYrcp6aYbO8z1+R7cM7hxURBm8ccS98kVvZ+9UpLFd61YpSeof4bGhFsA8wqgNgqh4Vg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation': 0.54.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation': 0.55.0(@opentelemetry/api@1.9.0) '@opentelemetry/semantic-conventions': 1.27.0 '@opentelemetry/sql-common': 0.40.1(@opentelemetry/api@1.9.0) '@types/pg': 8.6.1 @@ -3049,55 +3249,55 @@ packages: - supports-color dev: false - /@opentelemetry/instrumentation-redis-4@0.43.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-6B2+CFRY9xRnkeZrSvlTyY2yB/zAgxjbXS5EwXhE3ZAKR1hWWoUzaTADIKT5xe9/VbDW42U3UoOPCcaCmeAXww==} + /@opentelemetry/instrumentation-redis-4@0.44.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-mT4iGxqBeD4vUd2Dp5QG2UxaduWENHzsiPEgFvsPwSDARkyCXbTxCyOoXTTR53Vb4L8EklprbRBjukbljCdMTA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/instrumentation': 0.54.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation': 0.55.0(@opentelemetry/api@1.9.0) '@opentelemetry/redis-common': 0.36.2 - '@opentelemetry/semantic-conventions': 1.27.0 + '@opentelemetry/semantic-conventions': 1.28.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-redis@0.43.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-dufe08W3sCOjutbTJmV6tg2Y3+7IBe59oQrnIW2RCgjRhsW0Jjaenezt490eawO0MdXjUfFyrIUg8WetKhE4xA==} + /@opentelemetry/instrumentation-redis@0.44.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-QKBrjwHSejj/31JpxyI6wWEFK6ZqPmY/5ARFvzd7jSuTNtH2lMQ+Gb0j1T5hLJ6j3dDtFceYnC7CGXTSsx1jxg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/instrumentation': 0.54.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation': 0.55.0(@opentelemetry/api@1.9.0) '@opentelemetry/redis-common': 0.36.2 - '@opentelemetry/semantic-conventions': 1.27.0 + '@opentelemetry/semantic-conventions': 1.28.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-winston@0.41.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-qtqGDx2Plu71s9xaeXut0YgZFG/y68ENG9vvo/SODeEC+4/APiS/htQ5YNJIxxjOuxYowdFYRqV9Kmef2EUzmw==} + /@opentelemetry/instrumentation-winston@0.42.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-kaMbm2oITQpX6q59gOsv5dPuZEXzLNnQYZiICg5P0XdsVCQkbvmWK3xoPhHTgdXUyhgIHc5uUiMknHmHfXqMQQ==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.54.0 - '@opentelemetry/instrumentation': 0.54.0(@opentelemetry/api@1.9.0) + '@opentelemetry/api-logs': 0.55.0 + '@opentelemetry/instrumentation': 0.55.0(@opentelemetry/api@1.9.0) transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-B0Ydo9g9ehgNHwtpc97XivEzjz0XBKR6iQ83NTENIxEEf5NHE0otZQuZLgDdey1XNk+bP1cfRpIkSFWM5YlSyg==} + /@opentelemetry/instrumentation@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-YDCMlaQRZkziLL3t6TONRgmmGxDx6MyQDXRD0dknkkgUZtOK5+8MWft1OXzmNu6XfBOdT12MKN5rz+jHUkafKQ==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.54.0 + '@opentelemetry/api-logs': 0.55.0 '@types/shimmer': 1.2.0 import-in-the-middle: 1.11.2 require-in-the-middle: 7.4.0 @@ -3107,64 +3307,64 @@ packages: - supports-color dev: false - /@opentelemetry/otlp-exporter-base@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-g+H7+QleVF/9lz4zhaR9Dt4VwApjqG5WWupy5CTMpWJfHB/nLxBbX73GBZDgdiNfh08nO3rNa6AS7fK8OhgF5g==} + /@opentelemetry/otlp-exporter-base@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-iHQI0Zzq3h1T6xUJTVFwmFl5Dt5y1es+fl4kM+k5T/3YvmVyeYkSiF+wHCg6oKrlUAJfk+t55kaAu3sYmt7ZYA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-transformer': 0.54.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-transformer': 0.55.0(@opentelemetry/api@1.9.0) dev: false - /@opentelemetry/otlp-grpc-exporter-base@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-Yl2Dw0jlRWisEia9Hv/N8u2JLITCvzA6gAIKEvxpEu6nwHEftD2WhTJMIclkTtfmSW0rLmEEXymwmboG4xDN0Q==} + /@opentelemetry/otlp-grpc-exporter-base@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-gebbjl9FiSp52igWXuGjcWQKfB6IBwFGt5z1VFwTcVZVeEZevB6bJIqoFrhH4A02m7OUlpJ7l4EfRi3UtkNANQ==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@grpc/grpc-js': 1.12.2 '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-exporter-base': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/otlp-transformer': 0.54.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-exporter-base': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/otlp-transformer': 0.55.0(@opentelemetry/api@1.9.0) dev: false - /@opentelemetry/otlp-transformer@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-jRexIASQQzdK4AjfNIBfn94itAq4Q8EXR9d3b/OVbhd3kKQKvMr7GkxYDjbeTbY7hHCOLcLfJ3dpYQYGOe8qOQ==} + /@opentelemetry/otlp-transformer@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-kVqEfxtp6mSN2Dhpy0REo1ghP4PYhC1kMHQJ2qVlO99Pc+aigELjZDfg7/YKmL71gR6wVGIeJfiql/eXL7sQPA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.54.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-logs': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-metrics': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/api-logs': 0.55.0 + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-logs': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-metrics': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 1.28.0(@opentelemetry/api@1.9.0) protobufjs: 7.4.0 dev: false - /@opentelemetry/propagator-b3@1.27.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-pTsko3gnMioe3FeWcwTQR3omo5C35tYsKKwjgTCTVCgd3EOWL9BZrMfgLBmszrwXABDfUrlAEFN/0W0FfQGynQ==} + /@opentelemetry/propagator-b3@1.28.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-Q7HVDIMwhN5RxL4bECMT4BdbyYSAKkC6U/RGn4NpO/cbqP6ZRg+BS7fPo/pGZi2w8AHfpIGQFXQmE8d2PC5xxQ==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': '>=1.0.0 <1.10.0' dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) dev: false - /@opentelemetry/propagator-jaeger@1.27.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-EI1bbK0wn0yIuKlc2Qv2LKBRw6LiUWevrjCF80fn/rlaB+7StAi8Y5s8DBqAYNpY7v1q86+NjU18v7hj2ejU3A==} + /@opentelemetry/propagator-jaeger@1.28.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-wKJ94+s8467CnIRgoSRh0yXm/te0QMOwTq9J01PfG/RzYZvlvN8aRisN2oZ9SznB45dDGnMj3BhUlchSA9cEKA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': '>=1.0.0 <1.10.0' dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) dev: false /@opentelemetry/redis-common@0.36.2: @@ -3172,126 +3372,103 @@ packages: engines: {node: '>=14'} dev: false - /@opentelemetry/resource-detector-azure@0.2.12(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-iIarQu6MiCjEEp8dOzmBvCSlRITPFTinFB2oNKAjU6xhx8d7eUcjNOKhBGQTvuCriZrxrEvDaEEY9NfrPQ6uYQ==} + /@opentelemetry/resource-detector-azure@0.3.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-MFKiCQ+rUxCwJJH0ZLcdtsJ6FK/vLERsBhcu5pKHPSupdauVPaR5iRibApoF9dxZ1wuG5f+BRFO+USGdZXorDg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/semantic-conventions': 1.27.0 - dev: false - - /@opentelemetry/resources@1.26.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-CPNYchBE7MBecCSVy0HKpUISEeJOniWqcHaAHpmasZ3j9o6V3AyBzhRc90jdmemq0HOxDr6ylhUbDhBqqPpeNw==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.10.0' - dependencies: - '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.26.0(@opentelemetry/api@1.9.0) - '@opentelemetry/semantic-conventions': 1.27.0 + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/semantic-conventions': 1.28.0 dev: false - /@opentelemetry/resources@1.27.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-jOwt2VJ/lUD5BLc+PMNymDrUCpm5PKi1E9oSVYAvz01U/VdndGmrtV3DU1pG4AwlYhJRHbHfOUIlpBeXCPw6QQ==} + /@opentelemetry/resources@1.28.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-cIyXSVJjGeTICENN40YSvLDAq4Y2502hGK3iN7tfdynQLKWb3XWZQEkPc+eSx47kiy11YeFAlYkEfXwR1w8kfw==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': '>=1.0.0 <1.10.0' dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) '@opentelemetry/semantic-conventions': 1.27.0 dev: false - /@opentelemetry/sdk-logs@0.53.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-dhSisnEgIj/vJZXZV6f6KcTnyLDx/VuQ6l3ejuZpMpPlh9S1qMHiZU9NMmOkVkwwHkMy3G6mEBwdP23vUZVr4g==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.4.0 <1.10.0' - dependencies: - '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.53.0 - '@opentelemetry/core': 1.26.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.26.0(@opentelemetry/api@1.9.0) - dev: false - - /@opentelemetry/sdk-logs@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-HeWvOPiWhEw6lWvg+lCIi1WhJnIPbI4/OFZgHq9tKfpwF3LX6/kk3+GR8sGUGAEZfbjPElkkngzvd2s03zbD7Q==} + /@opentelemetry/sdk-logs@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-TSx+Yg/d48uWW6HtjS1AD5x6WPfLhDWLl/WxC7I2fMevaiBuKCuraxTB8MDXieCNnBI24bw9ytyXrDCswFfWgA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': '>=1.4.0 <1.10.0' dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.54.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/api-logs': 0.55.0 + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) dev: false - /@opentelemetry/sdk-metrics@1.27.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-JzWgzlutoXCydhHWIbLg+r76m+m3ncqvkCcsswXAQ4gqKS+LOHKhq+t6fx1zNytvLuaOUBur7EvWxECc4jPQKg==} + /@opentelemetry/sdk-metrics@1.28.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-43tqMK/0BcKTyOvm15/WQ3HLr0Vu/ucAl/D84NO7iSlv6O4eOprxSHa3sUtmYkaZWHqdDJV0AHVz/R6u4JALVQ==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': '>=1.3.0 <1.10.0' dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) dev: false - /@opentelemetry/sdk-node@0.54.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-F0mdwb4WPFJNypcmkxQnj3sIfh/73zkBgYePXMK8ghsBwYw4+PgM3/85WT6NzNUeOvWtiXacx5CFft2o7rGW3w==} + /@opentelemetry/sdk-node@0.55.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-gSXQWV23+9vhbjsvAIeM0LxY3W8DTKI3MZlzFp61noIb1jSr46ET+qoUjHlfZ1Yymebv9KXWeZsqhft81HBXuQ==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': '>=1.3.0 <1.10.0' dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.54.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/exporter-logs-otlp-grpc': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/exporter-logs-otlp-http': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/exporter-logs-otlp-proto': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/exporter-trace-otlp-grpc': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/exporter-trace-otlp-http': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/exporter-trace-otlp-proto': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/exporter-zipkin': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-logs': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-metrics': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-node': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/api-logs': 0.55.0 + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/exporter-logs-otlp-grpc': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/exporter-logs-otlp-http': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/exporter-logs-otlp-proto': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/exporter-trace-otlp-grpc': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/exporter-trace-otlp-http': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/exporter-trace-otlp-proto': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/exporter-zipkin': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-logs': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-metrics': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-node': 1.28.0(@opentelemetry/api@1.9.0) '@opentelemetry/semantic-conventions': 1.27.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/sdk-trace-base@1.27.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-btz6XTQzwsyJjombpeqCX6LhiMQYpzt2pIYNPnw0IPO/3AhT6yjnf8Mnv3ZC2A4eRYOjqrg+bfaXg9XHDRJDWQ==} + /@opentelemetry/sdk-trace-base@1.28.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-ceUVWuCpIao7Y5xE02Xs3nQi0tOGmMea17ecBdwtCvdo9ekmO+ijc9RFDgfifMl7XCBf41zne/1POM3LqSTZDA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': '>=1.0.0 <1.10.0' dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) '@opentelemetry/semantic-conventions': 1.27.0 dev: false - /@opentelemetry/sdk-trace-node@1.27.0(@opentelemetry/api@1.9.0): - resolution: {integrity: sha512-dWZp/dVGdUEfRBjBq2BgNuBlFqHCxyyMc8FsN0NX15X07mxSUO0SZRLyK/fdAVrde8nqFI/FEdMH4rgU9fqJfQ==} + /@opentelemetry/sdk-trace-node@1.28.0(@opentelemetry/api@1.9.0): + resolution: {integrity: sha512-N0sYfYXvHpP0FNIyc+UfhLnLSTOuZLytV0qQVrDWIlABeD/DWJIGttS7nYeR14gQLXch0M1DW8zm3VeN6Opwtg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': '>=1.0.0 <1.10.0' dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/context-async-hooks': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/propagator-b3': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/propagator-jaeger': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/context-async-hooks': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/propagator-b3': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/propagator-jaeger': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 1.28.0(@opentelemetry/api@1.9.0) semver: 7.6.3 dev: false @@ -3300,6 +3477,11 @@ packages: engines: {node: '>=14'} dev: false + /@opentelemetry/semantic-conventions@1.28.0: + resolution: {integrity: sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA==} + engines: {node: '>=14'} + dev: false + /@opentelemetry/sql-common@0.40.1(@opentelemetry/api@1.9.0): resolution: {integrity: sha512-nSDlnHSqzC3pXn/wZEZVLuAuJ1MYMXPBwtv2qAbCa3847SaHItdE7SzUq/Jtb0KZmh1zfAbNi3AAMjztTT4Ugg==} engines: {node: '>=14'} @@ -3307,15 +3489,15 @@ packages: '@opentelemetry/api': ^1.1.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) dev: false - /@opentelemetry/winston-transport@0.7.0: - resolution: {integrity: sha512-Q35p/glAOE6sl0ZgbddYsdjy23mzt89lFGhht4pJwrrJyInFIgdONFmMJb47kmXbFM3JHOcI0j+PL1BPPTPXBQ==} + /@opentelemetry/winston-transport@0.8.0: + resolution: {integrity: sha512-NIUToAei4nSoZdwwSw2oK75gmdIc5iwSPOWS5S9n1vTjK+v+leja0h+55vQDnJC0QeZtkckmpoCxgBG3wJLJ8w==} engines: {node: '>=14'} dependencies: - '@opentelemetry/api-logs': 0.54.0 - winston-transport: 4.8.0 + '@opentelemetry/api-logs': 0.55.0 + winston-transport: 4.9.0 dev: false /@pkgjs/parseargs@0.11.0: @@ -3325,12 +3507,12 @@ packages: dev: false optional: true - /@playwright/test@1.48.2: - resolution: {integrity: sha512-54w1xCWfXuax7dz4W2M9uw0gDyh+ti/0K/MxcCUxChFh37kkdxPdfZDw5QBbuPUJHr1CiHJ1hXgSs+GgeQc5Zw==} + /@playwright/test@1.49.0: + resolution: {integrity: sha512-DMulbwQURa8rNIQrf94+jPJQ4FmOVdpE5ZppRNvWVjvhC+6sOeo28r8MgIpQRYouXRtt/FCCXU7zn20jnHR4Qw==} engines: {node: '>=18'} hasBin: true dependencies: - playwright: 1.48.2 + playwright: 1.49.0 dev: false /@polka/url@1.0.0-next.28: @@ -3397,7 +3579,7 @@ packages: - supports-color dev: false - /@rollup/plugin-commonjs@25.0.8(rollup@4.24.4): + /@rollup/plugin-commonjs@25.0.8(rollup@4.27.4): resolution: {integrity: sha512-ZEZWTK5n6Qde0to4vS9Mr5x/0UZoqCxPVR9KRUjU4kA2sO7GEUn1fop0DAwpO6z0Nw/kJON9bDmSxdWxO/TT1A==} engines: {node: '>=14.0.0'} peerDependencies: @@ -3406,16 +3588,16 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.3(rollup@4.24.4) + '@rollup/pluginutils': 5.1.3(rollup@4.27.4) commondir: 1.0.1 estree-walker: 2.0.2 glob: 8.1.0 is-reference: 1.2.1 - magic-string: 0.30.12 - rollup: 4.24.4 + magic-string: 0.30.14 + rollup: 4.27.4 dev: false - /@rollup/plugin-inject@5.0.5(rollup@4.24.4): + /@rollup/plugin-inject@5.0.5(rollup@4.27.4): resolution: {integrity: sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==} engines: {node: '>=14.0.0'} peerDependencies: @@ -3424,13 +3606,13 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.3(rollup@4.24.4) + '@rollup/pluginutils': 5.1.3(rollup@4.27.4) estree-walker: 2.0.2 - magic-string: 0.30.12 - rollup: 4.24.4 + magic-string: 0.30.14 + rollup: 4.27.4 dev: false - /@rollup/plugin-json@6.1.0(rollup@4.24.4): + /@rollup/plugin-json@6.1.0(rollup@4.27.4): resolution: {integrity: sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -3439,11 +3621,11 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.3(rollup@4.24.4) - rollup: 4.24.4 + '@rollup/pluginutils': 5.1.3(rollup@4.27.4) + rollup: 4.27.4 dev: false - /@rollup/plugin-multi-entry@6.0.1(rollup@4.24.4): + /@rollup/plugin-multi-entry@6.0.1(rollup@4.27.4): resolution: {integrity: sha512-AXm6toPyTSfbYZWghQGbom1Uh7dHXlrGa+HoiYNhQtDUE3Q7LqoUYdVQx9E1579QWS1uOiu+cZRSE4okO7ySgw==} engines: {node: '>=14.0.0'} peerDependencies: @@ -3452,12 +3634,12 @@ packages: rollup: optional: true dependencies: - '@rollup/plugin-virtual': 3.0.2(rollup@4.24.4) + '@rollup/plugin-virtual': 3.0.2(rollup@4.27.4) matched: 5.0.1 - rollup: 4.24.4 + rollup: 4.27.4 dev: false - /@rollup/plugin-node-resolve@15.3.0(rollup@4.24.4): + /@rollup/plugin-node-resolve@15.3.0(rollup@4.27.4): resolution: {integrity: sha512-9eO5McEICxMzJpDW9OnMYSv4Sta3hmt7VtBFz5zR9273suNOydOyq/FrGeGy+KsTRFm8w0SLVhzig2ILFT63Ag==} engines: {node: '>=14.0.0'} peerDependencies: @@ -3466,15 +3648,15 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.3(rollup@4.24.4) + '@rollup/pluginutils': 5.1.3(rollup@4.27.4) '@types/resolve': 1.20.2 deepmerge: 4.3.1 is-module: 1.0.0 resolve: 1.22.8 - rollup: 4.24.4 + rollup: 4.27.4 dev: false - /@rollup/plugin-virtual@3.0.2(rollup@4.24.4): + /@rollup/plugin-virtual@3.0.2(rollup@4.27.4): resolution: {integrity: sha512-10monEYsBp3scM4/ND4LNH5Rxvh3e/cVeL3jWTgZ2SrQ+BmUoQcopVQvnaMcOnykb1VkxUFuDAN+0FnpTFRy2A==} engines: {node: '>=14.0.0'} peerDependencies: @@ -3483,10 +3665,10 @@ packages: rollup: optional: true dependencies: - rollup: 4.24.4 + rollup: 4.27.4 dev: false - /@rollup/pluginutils@5.1.3(rollup@4.24.4): + /@rollup/pluginutils@5.1.3(rollup@4.27.4): resolution: {integrity: sha512-Pnsb6f32CD2W3uCaLZIzDmeFyQ2b8UWMFI7xtwUezpcGBDVDW6y9XgAWIlARiGAo6eNF5FK5aQTr0LFyNyqq5A==} engines: {node: '>=14.0.0'} peerDependencies: @@ -3498,162 +3680,162 @@ packages: '@types/estree': 1.0.6 estree-walker: 2.0.2 picomatch: 4.0.2 - rollup: 4.24.4 + rollup: 4.27.4 dev: false - /@rollup/rollup-android-arm-eabi@4.24.4: - resolution: {integrity: sha512-jfUJrFct/hTA0XDM5p/htWKoNNTbDLY0KRwEt6pyOA6k2fmk0WVwl65PdUdJZgzGEHWx+49LilkcSaumQRyNQw==} + /@rollup/rollup-android-arm-eabi@4.27.4: + resolution: {integrity: sha512-2Y3JT6f5MrQkICUyRVCw4oa0sutfAsgaSsb0Lmmy1Wi2y7X5vT9Euqw4gOsCyy0YfKURBg35nhUKZS4mDcfULw==} cpu: [arm] os: [android] requiresBuild: true dev: false optional: true - /@rollup/rollup-android-arm64@4.24.4: - resolution: {integrity: sha512-j4nrEO6nHU1nZUuCfRKoCcvh7PIywQPUCBa2UsootTHvTHIoIu2BzueInGJhhvQO/2FTRdNYpf63xsgEqH9IhA==} + /@rollup/rollup-android-arm64@4.27.4: + resolution: {integrity: sha512-wzKRQXISyi9UdCVRqEd0H4cMpzvHYt1f/C3CoIjES6cG++RHKhrBj2+29nPF0IB5kpy9MS71vs07fvrNGAl/iA==} cpu: [arm64] os: [android] requiresBuild: true dev: false optional: true - /@rollup/rollup-darwin-arm64@4.24.4: - resolution: {integrity: sha512-GmU/QgGtBTeraKyldC7cDVVvAJEOr3dFLKneez/n7BvX57UdhOqDsVwzU7UOnYA7AAOt+Xb26lk79PldDHgMIQ==} + /@rollup/rollup-darwin-arm64@4.27.4: + resolution: {integrity: sha512-PlNiRQapift4LNS8DPUHuDX/IdXiLjf8mc5vdEmUR0fF/pyy2qWwzdLjB+iZquGr8LuN4LnUoSEvKRwjSVYz3Q==} cpu: [arm64] os: [darwin] requiresBuild: true dev: false optional: true - /@rollup/rollup-darwin-x64@4.24.4: - resolution: {integrity: sha512-N6oDBiZCBKlwYcsEPXGDE4g9RoxZLK6vT98M8111cW7VsVJFpNEqvJeIPfsCzbf0XEakPslh72X0gnlMi4Ddgg==} + /@rollup/rollup-darwin-x64@4.27.4: + resolution: {integrity: sha512-o9bH2dbdgBDJaXWJCDTNDYa171ACUdzpxSZt+u/AAeQ20Nk5x+IhA+zsGmrQtpkLiumRJEYef68gcpn2ooXhSQ==} cpu: [x64] os: [darwin] requiresBuild: true dev: false optional: true - /@rollup/rollup-freebsd-arm64@4.24.4: - resolution: {integrity: sha512-py5oNShCCjCyjWXCZNrRGRpjWsF0ic8f4ieBNra5buQz0O/U6mMXCpC1LvrHuhJsNPgRt36tSYMidGzZiJF6mw==} + /@rollup/rollup-freebsd-arm64@4.27.4: + resolution: {integrity: sha512-NBI2/i2hT9Q+HySSHTBh52da7isru4aAAo6qC3I7QFVsuhxi2gM8t/EI9EVcILiHLj1vfi+VGGPaLOUENn7pmw==} cpu: [arm64] os: [freebsd] requiresBuild: true dev: false optional: true - /@rollup/rollup-freebsd-x64@4.24.4: - resolution: {integrity: sha512-L7VVVW9FCnTTp4i7KrmHeDsDvjB4++KOBENYtNYAiYl96jeBThFfhP6HVxL74v4SiZEVDH/1ILscR5U9S4ms4g==} + /@rollup/rollup-freebsd-x64@4.27.4: + resolution: {integrity: sha512-wYcC5ycW2zvqtDYrE7deary2P2UFmSh85PUpAx+dwTCO9uw3sgzD6Gv9n5X4vLaQKsrfTSZZ7Z7uynQozPVvWA==} cpu: [x64] os: [freebsd] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.24.4: - resolution: {integrity: sha512-10ICosOwYChROdQoQo589N5idQIisxjaFE/PAnX2i0Zr84mY0k9zul1ArH0rnJ/fpgiqfu13TFZR5A5YJLOYZA==} + /@rollup/rollup-linux-arm-gnueabihf@4.27.4: + resolution: {integrity: sha512-9OwUnK/xKw6DyRlgx8UizeqRFOfi9mf5TYCw1uolDaJSbUmBxP85DE6T4ouCMoN6pXw8ZoTeZCSEfSaYo+/s1w==} cpu: [arm] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm-musleabihf@4.24.4: - resolution: {integrity: sha512-ySAfWs69LYC7QhRDZNKqNhz2UKN8LDfbKSMAEtoEI0jitwfAG2iZwVqGACJT+kfYvvz3/JgsLlcBP+WWoKCLcw==} + /@rollup/rollup-linux-arm-musleabihf@4.27.4: + resolution: {integrity: sha512-Vgdo4fpuphS9V24WOV+KwkCVJ72u7idTgQaBoLRD0UxBAWTF9GWurJO9YD9yh00BzbkhpeXtm6na+MvJU7Z73A==} cpu: [arm] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm64-gnu@4.24.4: - resolution: {integrity: sha512-uHYJ0HNOI6pGEeZ/5mgm5arNVTI0nLlmrbdph+pGXpC9tFHFDQmDMOEqkmUObRfosJqpU8RliYoGz06qSdtcjg==} + /@rollup/rollup-linux-arm64-gnu@4.27.4: + resolution: {integrity: sha512-pleyNgyd1kkBkw2kOqlBx+0atfIIkkExOTiifoODo6qKDSpnc6WzUY5RhHdmTdIJXBdSnh6JknnYTtmQyobrVg==} cpu: [arm64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm64-musl@4.24.4: - resolution: {integrity: sha512-38yiWLemQf7aLHDgTg85fh3hW9stJ0Muk7+s6tIkSUOMmi4Xbv5pH/5Bofnsb6spIwD5FJiR+jg71f0CH5OzoA==} + /@rollup/rollup-linux-arm64-musl@4.27.4: + resolution: {integrity: sha512-caluiUXvUuVyCHr5DxL8ohaaFFzPGmgmMvwmqAITMpV/Q+tPoaHZ/PWa3t8B2WyoRcIIuu1hkaW5KkeTDNSnMA==} cpu: [arm64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-powerpc64le-gnu@4.24.4: - resolution: {integrity: sha512-q73XUPnkwt9ZNF2xRS4fvneSuaHw2BXuV5rI4cw0fWYVIWIBeDZX7c7FWhFQPNTnE24172K30I+dViWRVD9TwA==} + /@rollup/rollup-linux-powerpc64le-gnu@4.27.4: + resolution: {integrity: sha512-FScrpHrO60hARyHh7s1zHE97u0KlT/RECzCKAdmI+LEoC1eDh/RDji9JgFqyO+wPDb86Oa/sXkily1+oi4FzJQ==} cpu: [ppc64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-riscv64-gnu@4.24.4: - resolution: {integrity: sha512-Aie/TbmQi6UXokJqDZdmTJuZBCU3QBDA8oTKRGtd4ABi/nHgXICulfg1KI6n9/koDsiDbvHAiQO3YAUNa/7BCw==} + /@rollup/rollup-linux-riscv64-gnu@4.27.4: + resolution: {integrity: sha512-qyyprhyGb7+RBfMPeww9FlHwKkCXdKHeGgSqmIXw9VSUtvyFZ6WZRtnxgbuz76FK7LyoN8t/eINRbPUcvXB5fw==} cpu: [riscv64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-s390x-gnu@4.24.4: - resolution: {integrity: sha512-P8MPErVO/y8ohWSP9JY7lLQ8+YMHfTI4bAdtCi3pC2hTeqFJco2jYspzOzTUB8hwUWIIu1xwOrJE11nP+0JFAQ==} + /@rollup/rollup-linux-s390x-gnu@4.27.4: + resolution: {integrity: sha512-PFz+y2kb6tbh7m3A7nA9++eInGcDVZUACulf/KzDtovvdTizHpZaJty7Gp0lFwSQcrnebHOqxF1MaKZd7psVRg==} cpu: [s390x] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-x64-gnu@4.24.4: - resolution: {integrity: sha512-K03TljaaoPK5FOyNMZAAEmhlyO49LaE4qCsr0lYHUKyb6QacTNF9pnfPpXnFlFD3TXuFbFbz7tJ51FujUXkXYA==} + /@rollup/rollup-linux-x64-gnu@4.27.4: + resolution: {integrity: sha512-Ni8mMtfo+o/G7DVtweXXV/Ol2TFf63KYjTtoZ5f078AUgJTmaIJnj4JFU7TK/9SVWTaSJGxPi5zMDgK4w+Ez7Q==} cpu: [x64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-x64-musl@4.24.4: - resolution: {integrity: sha512-VJYl4xSl/wqG2D5xTYncVWW+26ICV4wubwN9Gs5NrqhJtayikwCXzPL8GDsLnaLU3WwhQ8W02IinYSFJfyo34Q==} + /@rollup/rollup-linux-x64-musl@4.27.4: + resolution: {integrity: sha512-5AeeAF1PB9TUzD+3cROzFTnAJAcVUGLuR8ng0E0WXGkYhp6RD6L+6szYVX+64Rs0r72019KHZS1ka1q+zU/wUw==} cpu: [x64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-arm64-msvc@4.24.4: - resolution: {integrity: sha512-ku2GvtPwQfCqoPFIJCqZ8o7bJcj+Y54cZSr43hHca6jLwAiCbZdBUOrqE6y29QFajNAzzpIOwsckaTFmN6/8TA==} + /@rollup/rollup-win32-arm64-msvc@4.27.4: + resolution: {integrity: sha512-yOpVsA4K5qVwu2CaS3hHxluWIK5HQTjNV4tWjQXluMiiiu4pJj4BN98CvxohNCpcjMeTXk/ZMJBRbgRg8HBB6A==} cpu: [arm64] os: [win32] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-ia32-msvc@4.24.4: - resolution: {integrity: sha512-V3nCe+eTt/W6UYNr/wGvO1fLpHUrnlirlypZfKCT1fG6hWfqhPgQV/K/mRBXBpxc0eKLIF18pIOFVPh0mqHjlg==} + /@rollup/rollup-win32-ia32-msvc@4.27.4: + resolution: {integrity: sha512-KtwEJOaHAVJlxV92rNYiG9JQwQAdhBlrjNRp7P9L8Cb4Rer3in+0A+IPhJC9y68WAi9H0sX4AiG2NTsVlmqJeQ==} cpu: [ia32] os: [win32] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-x64-msvc@4.24.4: - resolution: {integrity: sha512-LTw1Dfd0mBIEqUVCxbvTE/LLo+9ZxVC9k99v1v4ahg9Aak6FpqOfNu5kRkeTAn0wphoC4JU7No1/rL+bBCEwhg==} + /@rollup/rollup-win32-x64-msvc@4.27.4: + resolution: {integrity: sha512-3j4jx1TppORdTAoBJRd+/wJRGCPC0ETWkXOecJ6PPZLj6SptXkrXcNqdj0oclbKML6FkQltdz7bBA3rUSirZug==} cpu: [x64] os: [win32] requiresBuild: true dev: false optional: true - /@rushstack/node-core-library@5.9.0(@types/node@18.19.64): - resolution: {integrity: sha512-MMsshEWkTbXqxqFxD4gcIUWQOCeBChlGczdZbHfqmNZQFLHB3yWxDFSMHFUdu2/OB9NUk7Awn5qRL+rws4HQNg==} + /@rushstack/node-core-library@5.10.0(@types/node@18.19.66): + resolution: {integrity: sha512-2pPLCuS/3x7DCd7liZkqOewGM0OzLyCacdvOe8j6Yrx9LkETGnxul1t7603bIaB8nUAooORcct9fFDOQMbWAgw==} peerDependencies: '@types/node': '*' peerDependenciesMeta: '@types/node': optional: true dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 ajv: 8.13.0 ajv-draft-04: 1.0.0(ajv@8.13.0) ajv-formats: 3.0.1 @@ -3671,23 +3853,23 @@ packages: strip-json-comments: 3.1.1 dev: false - /@rushstack/terminal@0.14.2(@types/node@18.19.64): - resolution: {integrity: sha512-2fC1wqu1VCExKC0/L+0noVcFQEXEnoBOtCIex1TOjBzEDWcw8KzJjjj7aTP6mLxepG0XIyn9OufeFb6SFsa+sg==} + /@rushstack/terminal@0.14.3(@types/node@18.19.66): + resolution: {integrity: sha512-csXbZsAdab/v8DbU1sz7WC2aNaKArcdS/FPmXMOXEj/JBBZMvDK0+1b4Qao0kkG0ciB1Qe86/Mb68GjH6/TnMw==} peerDependencies: '@types/node': '*' peerDependenciesMeta: '@types/node': optional: true dependencies: - '@rushstack/node-core-library': 5.9.0(@types/node@18.19.64) - '@types/node': 18.19.64 + '@rushstack/node-core-library': 5.10.0(@types/node@18.19.66) + '@types/node': 18.19.66 supports-color: 8.1.1 dev: false - /@rushstack/ts-command-line@4.23.0(@types/node@18.19.64): - resolution: {integrity: sha512-jYREBtsxduPV6ptNq8jOKp9+yx0ld1Tb/Tkdnlj8gTjazl1sF3DwX2VbluyYrNd0meWIL0bNeer7WDf5tKFjaQ==} + /@rushstack/ts-command-line@4.23.1(@types/node@18.19.66): + resolution: {integrity: sha512-40jTmYoiu/xlIpkkRsVfENtBq4CW3R4azbL0Vmda+fMwHWqss6wwf/Cy/UJmMqIzpfYc2OTnjYP1ZLD3CmyeCA==} dependencies: - '@rushstack/terminal': 0.14.2(@types/node@18.19.64) + '@rushstack/terminal': 0.14.3(@types/node@18.19.66) '@types/argparse': 1.0.38 argparse: 1.0.10 string-argv: 0.3.2 @@ -3699,6 +3881,11 @@ packages: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: false + /@sindresorhus/is@4.6.0: + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + dev: false + /@sinonjs/commons@3.0.1: resolution: {integrity: sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==} dependencies: @@ -3711,12 +3898,6 @@ packages: '@sinonjs/commons': 3.0.1 dev: false - /@sinonjs/fake-timers@13.0.5: - resolution: {integrity: sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==} - dependencies: - '@sinonjs/commons': 3.0.1 - dev: false - /@sinonjs/samsam@8.0.2: resolution: {integrity: sha512-v46t/fwnhejRSFTGqbpn9u+LQ9xJDse10gNnPgAcxgdoCDMXj/G2asWAC/8Qs+BAZDicX+MNZouXT1A7c83kVw==} dependencies: @@ -3802,13 +3983,13 @@ packages: resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} dependencies: '@types/connect': 3.4.38 - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/bunyan@1.8.9: resolution: {integrity: sha512-ZqS9JGpBxVOvsawzmVt30sP++gSQMTejCkIAQ3VdadOcRE8izTyW66hufvwLeH+YEGP6Js2AW7Gz+RMyvrEbmw==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/chai-as-promised@7.1.8: @@ -3836,7 +4017,7 @@ packages: /@types/connect@3.4.38: resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/cookie@0.4.1: @@ -3850,7 +4031,7 @@ packages: /@types/cors@2.8.17: resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/debug@4.1.12: @@ -3862,7 +4043,7 @@ packages: /@types/decompress@4.2.7: resolution: {integrity: sha512-9z+8yjKr5Wn73Pt17/ldnmQToaFHZxK0N1GHysuk/JIPT8RIdQeoInM01wWPgypRcvb6VH1drjuFpQ4zmY437g==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/deep-eql@4.0.2: @@ -3893,8 +4074,8 @@ packages: /@types/express-serve-static-core@4.19.6: resolution: {integrity: sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==} dependencies: - '@types/node': 18.19.64 - '@types/qs': 6.9.16 + '@types/node': 18.19.66 + '@types/qs': 6.9.17 '@types/range-parser': 1.2.7 '@types/send': 0.17.4 dev: false @@ -3904,7 +4085,7 @@ packages: dependencies: '@types/body-parser': 1.19.5 '@types/express-serve-static-core': 4.19.6 - '@types/qs': 6.9.16 + '@types/qs': 6.9.17 '@types/serve-static': 1.15.7 dev: false @@ -3912,7 +4093,20 @@ packages: resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + dev: false + + /@types/fs-extra@8.1.5: + resolution: {integrity: sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==} + dependencies: + '@types/node': 18.19.66 + dev: false + + /@types/glob@7.2.0: + resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} + dependencies: + '@types/minimatch': 5.1.2 + '@types/node': 18.19.66 dev: false /@types/http-errors@2.0.4: @@ -3929,7 +4123,7 @@ packages: /@types/is-buffer@2.0.2: resolution: {integrity: sha512-G6OXy83Va+xEo8XgqAJYOuvOMxeey9xM5XKkvwJNmN8rVdcB+r15HvHsG86hl86JvU0y1aa7Z2ERkNFYWw9ySg==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/json-schema@7.0.15: @@ -3939,19 +4133,19 @@ packages: /@types/jsonfile@6.1.4: resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/jsonwebtoken@9.0.7: resolution: {integrity: sha512-ugo316mmTYBl2g81zDFnZ7cfxlut3o+/EQdaP7J8QN2kY6lJ22hmQYCK5EHcJHbrW+dkCGSCPgbG8JtYj6qSrg==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/jws@3.2.10: resolution: {integrity: sha512-cOevhttJmssERB88/+XvZXvsq5m9JLKZNUiGfgjUb5lcPRdV2ZQciU6dU76D/qXXFYpSqkP3PrSg4hMTiafTZw==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/linkify-it@5.0.0: @@ -3979,12 +4173,16 @@ packages: resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==} dev: false + /@types/minimatch@5.1.2: + resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} + dev: false + /@types/minimist@1.2.5: resolution: {integrity: sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==} dev: false - /@types/mocha@10.0.9: - resolution: {integrity: sha512-sicdRoWtYevwxjOHNMPTl3vSfJM6oyW8o1wXeI7uww6b6xHg8eBznQDNSGBCDJmsE8UMxP05JgZRtsKbTqt//Q==} + /@types/mocha@10.0.10: + resolution: {integrity: sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==} dev: false /@types/ms@0.7.34: @@ -3998,30 +4196,24 @@ packages: /@types/mysql@2.15.26: resolution: {integrity: sha512-DSLCOXhkvfS5WNNPbfn2KdICAmk8lLc+/PNvnPnF7gOdMZCxopXduqv0OQ13y/yA/zXTSikZZqVgybUxOEg6YQ==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false - /@types/node-fetch@2.6.11: - resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} + /@types/node-fetch@2.6.12: + resolution: {integrity: sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 form-data: 4.0.1 dev: false - /@types/node@18.19.64: - resolution: {integrity: sha512-955mDqvO2vFf/oL7V3WiUtiz+BugyX8uVbaT2H8oj3+8dRyH2FLiNdowe7eNqRM7IOIZvzDH76EoAT+gwm6aIQ==} - dependencies: - undici-types: 5.26.5 - dev: false - - /@types/node@20.10.8: - resolution: {integrity: sha512-f8nQs3cLxbAFc00vEU59yf9UyGUftkPaLGfvbVOIDdx2i1b8epBqj2aNGyP19fiyXWvlmZ7qC1XLjAzw/OKIeA==} + /@types/node@18.19.66: + resolution: {integrity: sha512-14HmtUdGxFUalGRfLLn9Gc1oNWvWh5zNbsyOLo5JV6WARSeN1QcEBKRnZm9QqNfrutgsl/hY4eJW63aZ44aBCg==} dependencies: undici-types: 5.26.5 dev: false - /@types/node@20.17.6: - resolution: {integrity: sha512-VEI7OdvK2wP7XHnsuXbAJnEpEkF6NjSN45QJlL4VGqZSXsnicpesdTWsg9RISeSdYd3yeRj/y3k5KGjUXYnFwQ==} + /@types/node@20.17.8: + resolution: {integrity: sha512-ahz2g6/oqbKalW9sPv6L2iRbhLnojxjYWspAqhjvqSWBgGebEJT5GvRmk0QXPj3sbC6rU0GTQjPLQkmR8CObvA==} dependencies: undici-types: 6.19.8 dev: false @@ -4043,7 +4235,7 @@ packages: /@types/pg@8.6.1: resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 pg-protocol: 1.7.0 pg-types: 2.2.0 dev: false @@ -4055,12 +4247,12 @@ packages: /@types/prompts@2.4.9: resolution: {integrity: sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA==} dependencies: - '@types/node': 20.17.6 + '@types/node': 20.17.8 kleur: 3.0.3 dev: false - /@types/qs@6.9.16: - resolution: {integrity: sha512-7i+zxXdPD0T4cKDuxCUXJ4wHcsJLwENa6Z3dCu8cfCK743OGy5Nu1RmAGqDPsoTDINVEcdXKRvR/zre+P2Ku1A==} + /@types/qs@6.9.17: + resolution: {integrity: sha512-rX4/bPcfmvxHDv0XjfJELTTr+iB+tn032nPILqHm5wbthUUUuVtNGGqzhya9XUxjTP8Fpr0qYgSZZKxGY++svQ==} dev: false /@types/range-parser@1.2.7: @@ -4070,7 +4262,7 @@ packages: /@types/readdir-glob@1.1.5: resolution: {integrity: sha512-raiuEPUYqXu+nvtY2Pe8s8FEmZ3x5yAH4VkLdihcPdalvsHltomrRC9BzuStrJ9yk06470hS0Crw0f1pXqD+Hg==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/resolve@1.20.2: @@ -4089,14 +4281,14 @@ packages: resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} dependencies: '@types/mime': 1.3.5 - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/serve-static@1.15.7: resolution: {integrity: sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==} dependencies: '@types/http-errors': 2.0.4 - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/send': 0.17.4 dev: false @@ -4121,13 +4313,13 @@ packages: /@types/stoppable@1.1.3: resolution: {integrity: sha512-7wGKIBJGE4ZxFjk9NkjAxZMLlIXroETqP1FJCdoSvKmEznwmBxQFmTB1dsCkAvVcNemuSZM5qkkd9HE/NL2JTw==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/through@0.0.33: resolution: {integrity: sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/tough-cookie@4.0.5: @@ -4157,13 +4349,13 @@ packages: /@types/ws@7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/ws@8.5.13: resolution: {integrity: sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==} dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false /@types/yargs-parser@21.0.3: @@ -4180,39 +4372,12 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dev: false optional: true - /@typescript-eslint/eslint-plugin@8.10.0(@typescript-eslint/parser@8.10.0)(eslint@9.14.0)(typescript@5.6.3): - resolution: {integrity: sha512-phuB3hoP7FFKbRXxjl+DRlQDuJqhpOnm5MmtROXyWi3uS/Xg2ZXqiQfcG2BJHiN4QKyzdOJi3NEn/qTnjUlkmQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - '@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0 - eslint: ^8.57.0 || ^9.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@eslint-community/regexpp': 4.12.1 - '@typescript-eslint/parser': 8.10.0(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/scope-manager': 8.10.0 - '@typescript-eslint/type-utils': 8.10.0(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/utils': 8.10.0(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/visitor-keys': 8.10.0 - eslint: 9.14.0 - graphemer: 1.4.0 - ignore: 5.3.2 - natural-compare: 1.4.0 - ts-api-utils: 1.4.0(typescript@5.6.3) - typescript: 5.6.3 - transitivePeerDependencies: - - supports-color - dev: false - - /@typescript-eslint/eslint-plugin@8.2.0(@typescript-eslint/parser@8.2.0)(eslint@9.14.0)(typescript@5.6.3): - resolution: {integrity: sha512-02tJIs655em7fvt9gps/+4k4OsKULYGtLBPJfOsmOq1+3cdClYiF0+d6mHu6qDnTcg88wJBkcPLpQhq7FyDz0A==} + /@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0)(eslint@9.15.0)(typescript@5.6.3): + resolution: {integrity: sha512-5YTHKV8MYlyMI6BaEG7crQ9BhSc8RxzshOReKwZwRWN0+XvvTOm+L/UYLCYxFpfwYuAAqhxiq4yae0CMFwbL7Q==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: '@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0 @@ -4223,44 +4388,23 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.12.1 - '@typescript-eslint/parser': 8.2.0(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/scope-manager': 8.2.0 - '@typescript-eslint/type-utils': 8.2.0(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/utils': 8.2.0(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/visitor-keys': 8.2.0 - eslint: 9.14.0 + '@typescript-eslint/parser': 8.16.0(eslint@9.15.0)(typescript@5.6.3) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/type-utils': 8.16.0(eslint@9.15.0)(typescript@5.6.3) + '@typescript-eslint/utils': 8.16.0(eslint@9.15.0)(typescript@5.6.3) + '@typescript-eslint/visitor-keys': 8.16.0 + eslint: 9.15.0 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.4.0(typescript@5.6.3) - typescript: 5.6.3 - transitivePeerDependencies: - - supports-color - dev: false - - /@typescript-eslint/parser@8.10.0(eslint@9.14.0)(typescript@5.6.3): - resolution: {integrity: sha512-E24l90SxuJhytWJ0pTQydFT46Nk0Z+bsLKo/L8rtQSL93rQ6byd1V/QbDpHUTdLPOMsBCcYXZweADNCfOCmOAg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/scope-manager': 8.10.0 - '@typescript-eslint/types': 8.10.0 - '@typescript-eslint/typescript-estree': 8.10.0(typescript@5.6.3) - '@typescript-eslint/visitor-keys': 8.10.0 - debug: 4.3.7(supports-color@8.1.1) - eslint: 9.14.0 + ts-api-utils: 1.4.2(typescript@5.6.3) typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: false - /@typescript-eslint/parser@8.2.0(eslint@9.14.0)(typescript@5.6.3): - resolution: {integrity: sha512-j3Di+o0lHgPrb7FxL3fdEy6LJ/j2NE8u+AP/5cQ9SKb+JLH6V6UHDqJ+e0hXBkHP1wn1YDFjYCS9LBQsZDlDEg==} + /@typescript-eslint/parser@8.16.0(eslint@9.15.0)(typescript@5.6.3): + resolution: {integrity: sha512-D7DbgGFtsqIPIFMPJwCad9Gfi/hC0PWErRRHFnaCWoEDYi5tQUDiJCTmGUbBiLzjqAck4KcXt9Ayj0CNlIrF+w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 @@ -4269,27 +4413,27 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 8.2.0 - '@typescript-eslint/types': 8.2.0 - '@typescript-eslint/typescript-estree': 8.2.0(typescript@5.6.3) - '@typescript-eslint/visitor-keys': 8.2.0 + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.6.3) + '@typescript-eslint/visitor-keys': 8.16.0 debug: 4.3.7(supports-color@8.1.1) - eslint: 9.14.0 + eslint: 9.15.0 typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: false - /@typescript-eslint/rule-tester@8.10.0(eslint@9.14.0)(typescript@5.6.3): - resolution: {integrity: sha512-/+Cms6eddJv4UW1wzxbRYeaZKJOlwWrfzuPQCGtzMsiZMTn5SaABS/wyCSZ+po+nUXc86OtP5QajUfsZGH/tSg==} + /@typescript-eslint/rule-tester@8.16.0(eslint@9.15.0)(typescript@5.6.3): + resolution: {integrity: sha512-GpNWcVTjKZWftZ9DIfG2zo+aIKG3ydAwD156YkspwPNg60iOK17vghm55UmOMfV6z+wZIGarGU3mDhNG39Htaw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 dependencies: - '@typescript-eslint/typescript-estree': 8.10.0(typescript@5.6.3) - '@typescript-eslint/utils': 8.10.0(eslint@9.14.0)(typescript@5.6.3) + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.6.3) + '@typescript-eslint/utils': 8.16.0(eslint@9.15.0)(typescript@5.6.3) ajv: 6.12.6 - eslint: 9.14.0 + eslint: 9.15.0 json-stable-stringify-without-jsonify: 1.0.1 lodash.merge: 4.6.2 semver: 7.6.3 @@ -4298,72 +4442,41 @@ packages: - typescript dev: false - /@typescript-eslint/scope-manager@8.10.0: - resolution: {integrity: sha512-AgCaEjhfql9MDKjMUxWvH7HjLeBqMCBfIaBbzzIcBbQPZE7CPh1m6FF+L75NUMJFMLYhCywJXIDEMa3//1A0dw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - dependencies: - '@typescript-eslint/types': 8.10.0 - '@typescript-eslint/visitor-keys': 8.10.0 - dev: false - - /@typescript-eslint/scope-manager@8.2.0: - resolution: {integrity: sha512-OFn80B38yD6WwpoHU2Tz/fTz7CgFqInllBoC3WP+/jLbTb4gGPTy9HBSTsbDWkMdN55XlVU0mMDYAtgvlUspGw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - dependencies: - '@typescript-eslint/types': 8.2.0 - '@typescript-eslint/visitor-keys': 8.2.0 - dev: false - - /@typescript-eslint/type-utils@8.10.0(eslint@9.14.0)(typescript@5.6.3): - resolution: {integrity: sha512-PCpUOpyQSpxBn230yIcK+LeCQaXuxrgCm2Zk1S+PTIRJsEfU6nJ0TtwyH8pIwPK/vJoA+7TZtzyAJSGBz+s/dg==} + /@typescript-eslint/scope-manager@8.16.0: + resolution: {integrity: sha512-mwsZWubQvBki2t5565uxF0EYvG+FwdFb8bMtDuGQLdCCnGPrDEDvm1gtfynuKlnpzeBRqdFCkMf9jg1fnAK8sg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true dependencies: - '@typescript-eslint/typescript-estree': 8.10.0(typescript@5.6.3) - '@typescript-eslint/utils': 8.10.0(eslint@9.14.0)(typescript@5.6.3) - debug: 4.3.7(supports-color@8.1.1) - ts-api-utils: 1.4.0(typescript@5.6.3) - typescript: 5.6.3 - transitivePeerDependencies: - - eslint - - supports-color + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/visitor-keys': 8.16.0 dev: false - /@typescript-eslint/type-utils@8.2.0(eslint@9.14.0)(typescript@5.6.3): - resolution: {integrity: sha512-g1CfXGFMQdT5S+0PSO0fvGXUaiSkl73U1n9LTK5aRAFnPlJ8dLKkXr4AaLFvPedW8lVDoMgLLE3JN98ZZfsj0w==} + /@typescript-eslint/type-utils@8.16.0(eslint@9.15.0)(typescript@5.6.3): + resolution: {integrity: sha512-IqZHGG+g1XCWX9NyqnI/0CX5LL8/18awQqmkZSl2ynn8F76j579dByc0jhfVSnSnhf7zv76mKBQv9HQFKvDCgg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: + eslint: ^8.57.0 || ^9.0.0 typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 8.2.0(typescript@5.6.3) - '@typescript-eslint/utils': 8.2.0(eslint@9.14.0)(typescript@5.6.3) + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.6.3) + '@typescript-eslint/utils': 8.16.0(eslint@9.15.0)(typescript@5.6.3) debug: 4.3.7(supports-color@8.1.1) - ts-api-utils: 1.4.0(typescript@5.6.3) + eslint: 9.15.0 + ts-api-utils: 1.4.2(typescript@5.6.3) typescript: 5.6.3 transitivePeerDependencies: - - eslint - supports-color dev: false - /@typescript-eslint/types@8.10.0: - resolution: {integrity: sha512-k/E48uzsfJCRRbGLapdZgrX52csmWJ2rcowwPvOZ8lwPUv3xW6CcFeJAXgx4uJm+Ge4+a4tFOkdYvSpxhRhg1w==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - dev: false - - /@typescript-eslint/types@8.2.0: - resolution: {integrity: sha512-6a9QSK396YqmiBKPkJtxsgZZZVjYQ6wQ/TlI0C65z7vInaETuC6HAHD98AGLC8DyIPqHytvNuS8bBVvNLKyqvQ==} + /@typescript-eslint/types@8.16.0: + resolution: {integrity: sha512-NzrHj6thBAOSE4d9bsuRNMvk+BvaQvmY4dDglgkgGC0EW/tB3Kelnp3tAKH87GEwzoxgeQn9fNGRyFJM/xd+GQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} dev: false - /@typescript-eslint/typescript-estree@8.10.0(typescript@5.6.3): - resolution: {integrity: sha512-3OE0nlcOHaMvQ8Xu5gAfME3/tWVDpb/HxtpUZ1WeOAksZ/h/gwrBzCklaGzwZT97/lBbbxJ16dMA98JMEngW4w==} + /@typescript-eslint/typescript-estree@8.16.0(typescript@5.6.3): + resolution: {integrity: sha512-E2+9IzzXMc1iaBy9zmo+UYvluE3TW7bCGWSF41hVWUE01o8nzr1rvOQYSxelxr6StUvRcTMe633eY8mXASMaNw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '*' @@ -4371,121 +4484,57 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 8.10.0 - '@typescript-eslint/visitor-keys': 8.10.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/visitor-keys': 8.16.0 debug: 4.3.7(supports-color@8.1.1) fast-glob: 3.3.2 is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.4.0(typescript@5.6.3) + ts-api-utils: 1.4.2(typescript@5.6.3) typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: false - /@typescript-eslint/typescript-estree@8.2.0(typescript@5.6.3): - resolution: {integrity: sha512-kiG4EDUT4dImplOsbh47B1QnNmXSoUqOjWDvCJw/o8LgfD0yr7k2uy54D5Wm0j4t71Ge1NkynGhpWdS0dEIAUA==} + /@typescript-eslint/utils@8.16.0(eslint@9.15.0)(typescript@5.6.3): + resolution: {integrity: sha512-C1zRy/mOL8Pj157GiX4kaw7iyRLKfJXBR3L82hk5kS/GyHcOFmy4YUq/zfZti72I9wnuQtA/+xzft4wCC8PJdA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: + eslint: ^8.57.0 || ^9.0.0 typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@typescript-eslint/types': 8.2.0 - '@typescript-eslint/visitor-keys': 8.2.0 - debug: 4.3.7(supports-color@8.1.1) - globby: 11.1.0 - is-glob: 4.0.3 - minimatch: 9.0.5 - semver: 7.6.3 - ts-api-utils: 1.4.0(typescript@5.6.3) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0) + '@typescript-eslint/scope-manager': 8.16.0 + '@typescript-eslint/types': 8.16.0 + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.6.3) + eslint: 9.15.0 typescript: 5.6.3 transitivePeerDependencies: - supports-color dev: false - /@typescript-eslint/utils@8.10.0(eslint@9.14.0)(typescript@5.6.3): - resolution: {integrity: sha512-Oq4uZ7JFr9d1ZunE/QKy5egcDRXT/FrS2z/nlxzPua2VHFtmMvFNDvpq1m/hq0ra+T52aUezfcjGRIB7vNJF9w==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 - dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.14.0) - '@typescript-eslint/scope-manager': 8.10.0 - '@typescript-eslint/types': 8.10.0 - '@typescript-eslint/typescript-estree': 8.10.0(typescript@5.6.3) - eslint: 9.14.0 - transitivePeerDependencies: - - supports-color - - typescript - dev: false - - /@typescript-eslint/utils@8.2.0(eslint@9.14.0)(typescript@5.6.3): - resolution: {integrity: sha512-O46eaYKDlV3TvAVDNcoDzd5N550ckSe8G4phko++OCSC1dYIb9LTc3HDGYdWqWIAT5qDUKphO6sd9RrpIJJPfg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 - dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.14.0) - '@typescript-eslint/scope-manager': 8.2.0 - '@typescript-eslint/types': 8.2.0 - '@typescript-eslint/typescript-estree': 8.2.0(typescript@5.6.3) - eslint: 9.14.0 - transitivePeerDependencies: - - supports-color - - typescript - dev: false - - /@typescript-eslint/visitor-keys@8.10.0: - resolution: {integrity: sha512-k8nekgqwr7FadWk548Lfph6V3r9OVqjzAIVskE7orMZR23cGJjAOVazsZSJW+ElyjfTM4wx/1g88Mi70DDtG9A==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - dependencies: - '@typescript-eslint/types': 8.10.0 - eslint-visitor-keys: 3.4.3 - dev: false - - /@typescript-eslint/visitor-keys@8.2.0: - resolution: {integrity: sha512-sbgsPMW9yLvS7IhCi8IpuK1oBmtbWUNP+hBdwl/I9nzqVsszGnNGti5r9dUtF5RLivHUFFIdRvLiTsPhzSyJ3Q==} + /@typescript-eslint/visitor-keys@8.16.0: + resolution: {integrity: sha512-pq19gbaMOmFE3CbL0ZB8J8BFCo2ckfHBfaIsaOZgBIF4EoISJIdLX5xRhd0FGB0LlHReNRuzoJoMGpTjq8F2CQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} dependencies: - '@typescript-eslint/types': 8.2.0 - eslint-visitor-keys: 3.4.3 + '@typescript-eslint/types': 8.16.0 + eslint-visitor-keys: 4.2.0 dev: false /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: false - /@vitest/browser@1.6.0(playwright@1.48.2)(vitest@1.6.0): - resolution: {integrity: sha512-3Wpp9h1hf++rRVPvoXevkdHybLhJVn7MwIMKMIh08tVaoDMmT6fnNhbP222Z48V9PptpYeA5zvH9Ct/ZcaAzmQ==} - peerDependencies: - playwright: '*' - safaridriver: '*' - vitest: 1.6.0 - webdriverio: '*' - peerDependenciesMeta: - playwright: - optional: true - safaridriver: - optional: true - webdriverio: - optional: true - dependencies: - '@vitest/utils': 1.6.0 - magic-string: 0.30.12 - playwright: 1.48.2 - sirv: 2.0.4 - vitest: 1.6.0(@types/node@18.19.64)(@vitest/browser@1.6.0) - dev: false - - /@vitest/browser@2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4): - resolution: {integrity: sha512-89SrvShW6kWzmEYtBj5k1gBq88emoC2qrngw5hE1vNpRFteQ5/1URbKIVww391rIALTpzhhCt5yJt5tjLPZxYw==} + /@vitest/browser@2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6): + resolution: {integrity: sha512-GTBY78bkRd5BL3jnwQr9J+uIkZjpvRzq0G1uHNy2GeJYfTvmYFh4QE5W2HH6AfEKLFQwPXHFiXgI2o4CEtAtJw==} peerDependencies: playwright: '*' safaridriver: '*' - vitest: 2.1.4 + vitest: 2.1.6 webdriverio: '*' peerDependenciesMeta: playwright: @@ -4497,14 +4546,14 @@ packages: dependencies: '@testing-library/dom': 10.4.0 '@testing-library/user-event': 14.5.2(@testing-library/dom@10.4.0) - '@vitest/mocker': 2.1.4(msw@2.6.0) - '@vitest/utils': 2.1.4 - magic-string: 0.30.12 - msw: 2.6.0(@types/node@18.19.64)(typescript@5.6.3) - playwright: 1.48.2 + '@vitest/mocker': 2.1.6(msw@2.6.6) + '@vitest/utils': 2.1.6 + magic-string: 0.30.14 + msw: 2.6.6(@types/node@18.19.66)(typescript@5.6.3) + playwright: 1.49.0 sirv: 3.0.0 tinyrainbow: 1.2.0 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) ws: 8.18.0 transitivePeerDependencies: - '@types/node' @@ -4528,15 +4577,15 @@ packages: magicast: 0.3.5 picocolors: 1.1.1 test-exclude: 6.0.0 - vitest: 1.6.0(@types/node@18.19.64)(@vitest/browser@1.6.0) + vitest: 1.6.0(@types/node@18.19.66) transitivePeerDependencies: - supports-color dev: false - /@vitest/coverage-istanbul@2.1.4(vitest@2.1.4): - resolution: {integrity: sha512-NLmfjzXnRSmLF/h4hYkzjvd7hZ85DRZzPUqXu0McPFCMczDfNmOjMoM3KaxjFaEmOc1YzX9HHbU/Rr9VO+35ow==} + /@vitest/coverage-istanbul@2.1.6(vitest@2.1.6): + resolution: {integrity: sha512-tJBsODJ8acDxwt4J+HERV0+FxOhjOXn+yVYWHQ25iFqcbQNyvptQLBFxEoRvaMbqJqSaYatGOg0/ctiQdB3mSg==} peerDependencies: - vitest: 2.1.4 + vitest: 2.1.6 dependencies: '@istanbuljs/schema': 0.1.3 debug: 4.3.7(supports-color@8.1.1) @@ -4548,7 +4597,7 @@ packages: magicast: 0.3.5 test-exclude: 7.0.1 tinyrainbow: 1.2.0 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - supports-color dev: false @@ -4561,51 +4610,51 @@ packages: chai: 4.3.10 dev: false - /@vitest/expect@2.1.4: - resolution: {integrity: sha512-DOETT0Oh1avie/D/o2sgMHGrzYUFFo3zqESB2Hn70z6QB1HrS2IQ9z5DfyTqU8sg4Bpu13zZe9V4+UTNQlUeQA==} + /@vitest/expect@2.1.6: + resolution: {integrity: sha512-9M1UR9CAmrhJOMoSwVnPh2rELPKhYo0m/CSgqw9PyStpxtkwhmdM6XYlXGKeYyERY1N6EIuzkQ7e3Lm1WKCoUg==} dependencies: - '@vitest/spy': 2.1.4 - '@vitest/utils': 2.1.4 + '@vitest/spy': 2.1.6 + '@vitest/utils': 2.1.6 chai: 5.1.2 tinyrainbow: 1.2.0 dev: false - /@vitest/mocker@2.1.4(msw@2.6.0): - resolution: {integrity: sha512-Ky/O1Lc0QBbutJdW0rqLeFNbuLEyS+mIPiNdlVlp2/yhJ0SbyYqObS5IHdhferJud8MbbwMnexg4jordE5cCoQ==} + /@vitest/mocker@2.1.6(msw@2.6.6): + resolution: {integrity: sha512-MHZp2Z+Q/A3am5oD4WSH04f9B0T7UvwEb+v5W0kCYMhtXGYbdyl2NUk1wdSMqGthmhpiThPDp/hEoVwu16+u1A==} peerDependencies: msw: ^2.4.9 - vite: ^5.0.0 + vite: ^5.0.0 || ^6.0.0 peerDependenciesMeta: msw: optional: true vite: optional: true dependencies: - '@vitest/spy': 2.1.4 + '@vitest/spy': 2.1.6 estree-walker: 3.0.3 - magic-string: 0.30.12 - msw: 2.6.0(@types/node@18.19.64)(typescript@5.6.3) + magic-string: 0.30.14 + msw: 2.6.6(@types/node@18.19.66)(typescript@5.6.3) dev: false - /@vitest/mocker@2.1.4(vite@5.4.10): - resolution: {integrity: sha512-Ky/O1Lc0QBbutJdW0rqLeFNbuLEyS+mIPiNdlVlp2/yhJ0SbyYqObS5IHdhferJud8MbbwMnexg4jordE5cCoQ==} + /@vitest/mocker@2.1.6(vite@6.0.1): + resolution: {integrity: sha512-MHZp2Z+Q/A3am5oD4WSH04f9B0T7UvwEb+v5W0kCYMhtXGYbdyl2NUk1wdSMqGthmhpiThPDp/hEoVwu16+u1A==} peerDependencies: msw: ^2.4.9 - vite: ^5.0.0 + vite: ^5.0.0 || ^6.0.0 peerDependenciesMeta: msw: optional: true vite: optional: true dependencies: - '@vitest/spy': 2.1.4 + '@vitest/spy': 2.1.6 estree-walker: 3.0.3 - magic-string: 0.30.12 - vite: 5.4.10(@types/node@18.19.64) + magic-string: 0.30.14 + vite: 6.0.1(@types/node@18.19.66)(tsx@4.19.2)(yaml@2.6.1) dev: false - /@vitest/pretty-format@2.1.4: - resolution: {integrity: sha512-L95zIAkEuTDbUX1IsjRl+vyBSLh3PwLLgKpghl37aCK9Jvw0iP+wKwIFhfjdUtA2myLgjrG6VU6JCFLv8q/3Ww==} + /@vitest/pretty-format@2.1.6: + resolution: {integrity: sha512-exZyLcEnHgDMKc54TtHca4McV4sKT+NKAe9ix/yhd/qkYb/TP8HTyXRFDijV19qKqTZM0hPL4753zU/U8L/gAA==} dependencies: tinyrainbow: 1.2.0 dev: false @@ -4618,26 +4667,26 @@ packages: pathe: 1.1.2 dev: false - /@vitest/runner@2.1.4: - resolution: {integrity: sha512-sKRautINI9XICAMl2bjxQM8VfCMTB0EbsBc/EDFA57V6UQevEKY/TOPOF5nzcvCALltiLfXWbq4MaAwWx/YxIA==} + /@vitest/runner@2.1.6: + resolution: {integrity: sha512-SjkRGSFyrA82m5nz7To4CkRSEVWn/rwQISHoia/DB8c6IHIhaE/UNAo+7UfeaeJRE979XceGl00LNkIz09RFsA==} dependencies: - '@vitest/utils': 2.1.4 + '@vitest/utils': 2.1.6 pathe: 1.1.2 dev: false /@vitest/snapshot@1.6.0: resolution: {integrity: sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==} dependencies: - magic-string: 0.30.12 + magic-string: 0.30.14 pathe: 1.1.2 pretty-format: 29.7.0 dev: false - /@vitest/snapshot@2.1.4: - resolution: {integrity: sha512-3Kab14fn/5QZRog5BPj6Rs8dc4B+mim27XaKWFWHWA87R56AKjHTGcBFKpvZKDzC4u5Wd0w/qKsUIio3KzWW4Q==} + /@vitest/snapshot@2.1.6: + resolution: {integrity: sha512-5JTWHw8iS9l3v4/VSuthCndw1lN/hpPB+mlgn1BUhFbobeIUj1J1V/Bj2t2ovGEmkXLTckFjQddsxS5T6LuVWw==} dependencies: - '@vitest/pretty-format': 2.1.4 - magic-string: 0.30.12 + '@vitest/pretty-format': 2.1.6 + magic-string: 0.30.14 pathe: 1.1.2 dev: false @@ -4647,8 +4696,8 @@ packages: tinyspy: 2.2.1 dev: false - /@vitest/spy@2.1.4: - resolution: {integrity: sha512-4JOxa+UAizJgpZfaCPKK2smq9d8mmjZVPMt2kOsg/R8QkoRzydHH1qHxIYNvr1zlEaFj4SXiaaJWxq/LPLKaLg==} + /@vitest/spy@2.1.6: + resolution: {integrity: sha512-oTFObV8bd4SDdRka5O+mSh5w9irgx5IetrD5i+OsUUsk/shsBoHifwCzy45SAORzAhtNiprUVaK3hSCCzZh1jQ==} dependencies: tinyspy: 3.0.2 dev: false @@ -4662,10 +4711,10 @@ packages: pretty-format: 29.7.0 dev: false - /@vitest/utils@2.1.4: - resolution: {integrity: sha512-MXDnZn0Awl2S86PSNIim5PWXgIAx8CIkzu35mBdSApUip6RFOGXBCf3YFyeEu8n1IHk4bWD46DeYFu9mQlFIRg==} + /@vitest/utils@2.1.6: + resolution: {integrity: sha512-ixNkFy3k4vokOUTU2blIUvOgKq/N2PW8vKIjZZYsGJCMX69MRa9J2sKqX5hY/k5O5Gty3YJChepkqZ3KM9LyIQ==} dependencies: - '@vitest/pretty-format': 2.1.4 + '@vitest/pretty-format': 2.1.6 loupe: 3.1.2 tinyrainbow: 1.2.0 dev: false @@ -4811,6 +4860,13 @@ packages: type-fest: 0.21.3 dev: false + /ansi-escapes@7.0.0: + resolution: {integrity: sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==} + engines: {node: '>=18'} + dependencies: + environment: 1.1.0 + dev: false + /ansi-regex@3.0.1: resolution: {integrity: sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==} engines: {node: '>=4'} @@ -4850,6 +4906,10 @@ packages: engines: {node: '>=12'} dev: false + /any-promise@1.3.0: + resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} + dev: false + /anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -4967,7 +5027,7 @@ packages: dependencies: bare-events: 2.5.0 bare-path: 2.1.3 - bare-stream: 2.3.2 + bare-stream: 2.4.2 dev: false optional: true @@ -4985,11 +5045,11 @@ packages: dev: false optional: true - /bare-stream@2.3.2: - resolution: {integrity: sha512-EFZHSIBkDgSHIwj2l2QZfP4U5OcD4xFAOwhSb/vlr9PIqyGJGvB/nfClJbcnh3EY4jtPE4zsb5ztae96bVF79A==} + /bare-stream@2.4.2: + resolution: {integrity: sha512-XZ4ln/KV4KT+PXdIWTKjsLY+quqCaEtqqtgGJVPw9AoM73By03ij64YjepK0aQvHSWDb6AfAZwqKaFu68qkrdA==} requiresBuild: true dependencies: - streamx: 2.20.1 + streamx: 2.20.2 dev: false optional: true @@ -5078,8 +5138,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001677 - electron-to-chromium: 1.5.50 + caniuse-lite: 1.0.30001684 + electron-to-chromium: 1.5.65 node-releases: 2.0.18 update-browserslist-db: 1.1.1(browserslist@4.24.2) dev: false @@ -5193,8 +5253,8 @@ packages: engines: {node: '>=10'} dev: false - /caniuse-lite@1.0.30001677: - resolution: {integrity: sha512-fmfjsOlJUpMWu+mAAtZZZHz7UEwsUxIIvu1TJfO1HqFQvB/B+ii0xr9B5HpbZY/mC4XZ8SvjHJqtAY6pDPQEog==} + /caniuse-lite@1.0.30001684: + resolution: {integrity: sha512-G1LRwLIQjBQoyq0ZJGqGIJUXzJ8irpbjHLpVRXDvBEScFJ9b17sgK6vlx0GAJFE21okD7zXl08rRRUfq6HdoEQ==} dev: false /catharsis@0.9.0: @@ -5213,8 +5273,8 @@ packages: check-error: 1.0.3 dev: false - /chai-as-promised@8.0.0(chai@4.3.10): - resolution: {integrity: sha512-sMsGXTrS3FunP/wbqh/KxM8Kj/aLPXQGkNtvE5wPfSToq8wkkvBpTZo1LIiEVmC4BwkKpag+l5h/20lBMk6nUg==} + /chai-as-promised@8.0.1(chai@4.3.10): + resolution: {integrity: sha512-OIEJtOL8xxJSH8JJWbIoRjybbzR52iFuDHuF8eb+nTPD6tgXLjRqsgnUGqQfFODxYvq5QdirT0pN9dZ0+Gz6rA==} peerDependencies: chai: '>= 2.1.2 < 6' dependencies: @@ -5222,8 +5282,8 @@ packages: check-error: 2.1.1 dev: false - /chai-as-promised@8.0.0(chai@5.1.2): - resolution: {integrity: sha512-sMsGXTrS3FunP/wbqh/KxM8Kj/aLPXQGkNtvE5wPfSToq8wkkvBpTZo1LIiEVmC4BwkKpag+l5h/20lBMk6nUg==} + /chai-as-promised@8.0.1(chai@5.1.2): + resolution: {integrity: sha512-OIEJtOL8xxJSH8JJWbIoRjybbzR52iFuDHuF8eb+nTPD6tgXLjRqsgnUGqQfFODxYvq5QdirT0pN9dZ0+Gz6rA==} peerDependencies: chai: '>= 2.1.2 < 6' dependencies: @@ -5295,6 +5355,11 @@ packages: engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} dev: false + /char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + dev: false + /character-entities-legacy@1.1.4: resolution: {integrity: sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==} dev: false @@ -5341,12 +5406,12 @@ packages: resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} dev: false - /chromium-bidi@0.8.0(devtools-protocol@0.0.1354347): + /chromium-bidi@0.8.0(devtools-protocol@0.0.1367902): resolution: {integrity: sha512-uJydbGdTw0DEUjhoogGveneJVWX/9YuqkWePzMmkBYwtdAqo5d3J/ovNKFr+/2hWXYmYCr6it8mSSTIj6SS6Ug==} peerDependencies: devtools-protocol: '*' dependencies: - devtools-protocol: 0.0.1354347 + devtools-protocol: 0.0.1367902 mitt: 3.0.1 urlpattern-polyfill: 10.0.0 zod: 3.23.8 @@ -5375,11 +5440,33 @@ packages: restore-cursor: 3.1.0 dev: false + /cli-highlight@2.1.11: + resolution: {integrity: sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg==} + engines: {node: '>=8.0.0', npm: '>=5.0.0'} + hasBin: true + dependencies: + chalk: 4.1.2 + highlight.js: 10.7.3 + mz: 2.7.0 + parse5: 5.1.1 + parse5-htmlparser2-tree-adapter: 6.0.1 + yargs: 16.2.0 + dev: false + /cli-spinners@2.9.2: resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==} engines: {node: '>=6'} dev: false + /cli-table3@0.6.5: + resolution: {integrity: sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==} + engines: {node: 10.* || >= 12.*} + dependencies: + string-width: 4.2.3 + optionalDependencies: + '@colors/colors': 1.5.0 + dev: false + /cli-width@4.1.0: resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} engines: {node: '>= 12'} @@ -5440,6 +5527,10 @@ packages: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} dev: false + /colorette@1.4.0: + resolution: {integrity: sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==} + dev: false + /combined-stream@1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} @@ -5447,6 +5538,11 @@ packages: delayed-stream: 1.0.0 dev: false + /commander@10.0.1: + resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} + engines: {node: '>=14'} + dev: false + /commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} dev: false @@ -5518,11 +5614,6 @@ packages: resolution: {integrity: sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==} dev: false - /cookie@0.5.0: - resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==} - engines: {node: '>= 0.6'} - dev: false - /cookie@0.7.1: resolution: {integrity: sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==} engines: {node: '>= 0.6'} @@ -5615,11 +5706,11 @@ packages: engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} hasBin: true dependencies: - cross-spawn: 7.0.3 + cross-spawn: 7.0.6 dev: false - /cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + /cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} dependencies: path-key: 3.1.1 @@ -5627,8 +5718,8 @@ packages: which: 2.0.2 dev: false - /csv-parse@5.5.6: - resolution: {integrity: sha512-uNpm30m/AGSkLxxy7d9yRXpJQFrZzVWLFBkS+6ngPcZkw/5k3L/jjFuj7tVnEpRn+QgmiXr21nDlhCiUK4ij2A==} + /csv-parse@5.6.0: + resolution: {integrity: sha512-l3nz3euub2QMg5ouu5U09Ew9Wf6/wQ8I++ch1loQ0ljmzhmfZYrH9fflS22i/PQEvsPvxCwxgz5q7UB8K1JO4Q==} dev: false /custom-event@1.0.1: @@ -5863,8 +5954,8 @@ packages: engines: {node: '>=8'} dev: false - /devtools-protocol@0.0.1354347: - resolution: {integrity: sha512-BlmkSqV0V84E2WnEnoPnwyix57rQxAM5SKJjf4TbYOCGLAWtz8CDH8RIaGOjPgPCXo2Mce3kxSY497OySidY3Q==} + /devtools-protocol@0.0.1367902: + resolution: {integrity: sha512-XxtPuC3PGakY6PD7dG66/o8KwJ/LkH2/EKe19Dcw58w53dv4/vSQEkn/SzuyhHE2q4zPgCkxQBxus3VV4ql+Pg==} dev: false /di@0.0.1: @@ -5886,11 +5977,6 @@ packages: engines: {node: '>=0.3.1'} dev: false - /diff@7.0.0: - resolution: {integrity: sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==} - engines: {node: '>=0.3.1'} - dev: false - /dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -5933,16 +6019,12 @@ packages: safe-buffer: 5.2.1 dev: false - /edge-launcher@1.2.2: - resolution: {integrity: sha512-JcD5WBi3BHZXXVSSeEhl6sYO8g5cuynk/hifBzds2Bp4JdzCGLNMHgMCKu5DvrO1yatMgF0goFsxXRGus0yh1g==} - dev: false - /ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false - /electron-to-chromium@1.5.50: - resolution: {integrity: sha512-eMVObiUQ2LdgeO1F/ySTXsvqvxb6ZH2zPGaMYsWzRDdOddUa77tdmI0ltg+L16UpbWdhPmuF3wIQYyQq65WfZw==} + /electron-to-chromium@1.5.65: + resolution: {integrity: sha512-PWVzBjghx7/wop6n22vS2MLU8tKGd4Q91aCEGhG/TYmW6PP5OcSXcdnxTe1NNt0T66N8D6jxh4kC8UsdzOGaIw==} dev: false /emoji-regex@8.0.0: @@ -5953,6 +6035,10 @@ packages: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} dev: false + /emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + dev: false + /encodeurl@1.0.2: resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} engines: {node: '>= 0.8'} @@ -5980,7 +6066,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.17 - '@types/node': 18.19.64 + '@types/node': 18.19.66 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.7.2 @@ -6019,6 +6105,11 @@ packages: engines: {node: '>=6'} dev: false + /environment@1.1.0: + resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==} + engines: {node: '>=18'} + dev: false + /error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} dependencies: @@ -6037,6 +6128,10 @@ packages: engines: {node: '>= 0.4'} dev: false + /es-module-lexer@1.5.4: + resolution: {integrity: sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==} + dev: false + /es6-error@4.1.1: resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==} dev: false @@ -6108,6 +6203,38 @@ packages: '@esbuild/win32-x64': 0.23.1 dev: false + /esbuild@0.24.0: + resolution: {integrity: sha512-FuLPevChGDshgSicjisSooU0cemp/sGXR841D5LHMB7mTVOmsEHcAxaH3irL53+8YDIeVNQEySh4DaYU/iuPqQ==} + engines: {node: '>=18'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/aix-ppc64': 0.24.0 + '@esbuild/android-arm': 0.24.0 + '@esbuild/android-arm64': 0.24.0 + '@esbuild/android-x64': 0.24.0 + '@esbuild/darwin-arm64': 0.24.0 + '@esbuild/darwin-x64': 0.24.0 + '@esbuild/freebsd-arm64': 0.24.0 + '@esbuild/freebsd-x64': 0.24.0 + '@esbuild/linux-arm': 0.24.0 + '@esbuild/linux-arm64': 0.24.0 + '@esbuild/linux-ia32': 0.24.0 + '@esbuild/linux-loong64': 0.24.0 + '@esbuild/linux-mips64el': 0.24.0 + '@esbuild/linux-ppc64': 0.24.0 + '@esbuild/linux-riscv64': 0.24.0 + '@esbuild/linux-s390x': 0.24.0 + '@esbuild/linux-x64': 0.24.0 + '@esbuild/netbsd-x64': 0.24.0 + '@esbuild/openbsd-arm64': 0.24.0 + '@esbuild/openbsd-x64': 0.24.0 + '@esbuild/sunos-x64': 0.24.0 + '@esbuild/win32-arm64': 0.24.0 + '@esbuild/win32-ia32': 0.24.0 + '@esbuild/win32-x64': 0.24.0 + dev: false + /escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} @@ -6162,59 +6289,59 @@ packages: source-map: 0.6.1 dev: false - /eslint-compat-utils@0.5.1(eslint@9.14.0): + /eslint-compat-utils@0.5.1(eslint@9.15.0): resolution: {integrity: sha512-3z3vFexKIEnjHE3zCMRo6fn/e44U7T1khUjg+Hp0ZQMCigh28rALD0nPFBcGZuiLC5rLZa2ubQHDRln09JfU2Q==} engines: {node: '>=12'} peerDependencies: eslint: '>=6.0.0' dependencies: - eslint: 9.14.0 + eslint: 9.15.0 semver: 7.6.3 dev: false - /eslint-config-prettier@9.1.0(eslint@9.14.0): + /eslint-config-prettier@9.1.0(eslint@9.15.0): resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 9.14.0 + eslint: 9.15.0 dev: false - /eslint-plugin-es-x@7.8.0(eslint@9.14.0): + /eslint-plugin-es-x@7.8.0(eslint@9.15.0): resolution: {integrity: sha512-7Ds8+wAAoV3T+LAKeu39Y5BzXCrGKrcISfgKEqTS4BDN8SFEDQd0S43jiQ8vIa3wUKD07qitZdfzlenSi8/0qQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: eslint: '>=8' dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.14.0) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0) '@eslint-community/regexpp': 4.12.1 - eslint: 9.14.0 - eslint-compat-utils: 0.5.1(eslint@9.14.0) + eslint: 9.15.0 + eslint-compat-utils: 0.5.1(eslint@9.15.0) dev: false - /eslint-plugin-markdown@5.1.0(eslint@9.14.0): + /eslint-plugin-markdown@5.1.0(eslint@9.15.0): resolution: {integrity: sha512-SJeyKko1K6GwI0AN6xeCDToXDkfKZfXcexA6B+O2Wr2btUS9GrC+YgwSyVli5DJnctUHjFXcQ2cqTaAmVoLi2A==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: '>=8' dependencies: - eslint: 9.14.0 + eslint: 9.15.0 mdast-util-from-markdown: 0.8.5 transitivePeerDependencies: - supports-color dev: false - /eslint-plugin-n@17.12.0(eslint@9.14.0): - resolution: {integrity: sha512-zNAtz/erDn0v78bIY3MASSQlyaarV4IOTvP5ldHsqblRFrXriikB6ghkDTkHjUad+nMRrIbOy9euod2azjRfBg==} + /eslint-plugin-n@17.14.0(eslint@9.15.0): + resolution: {integrity: sha512-maxPLMEA0rPmRpoOlxEclKng4UpDe+N5BJS4t24I3UKnN109Qcivnfs37KMy84G0af3bxjog5lKctP5ObsvcTA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: '>=8.23.0' dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.14.0) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0) enhanced-resolve: 5.17.1 - eslint: 9.14.0 - eslint-plugin-es-x: 7.8.0(eslint@9.14.0) + eslint: 9.15.0 + eslint-plugin-es-x: 7.8.0(eslint@9.15.0) get-tsconfig: 4.8.1 globals: 15.12.0 ignore: 5.3.2 @@ -6227,13 +6354,13 @@ packages: engines: {node: '>=5.0.0'} dev: false - /eslint-plugin-promise@6.6.0(eslint@9.14.0): + /eslint-plugin-promise@6.6.0(eslint@9.15.0): resolution: {integrity: sha512-57Zzfw8G6+Gq7axm2Pdo3gW/Rx3h9Yywgn61uE/3elTCOePEHVrn2i5CdfBwA1BLK0Q0WqctICIUSqXZW/VprQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 dependencies: - eslint: 9.14.0 + eslint: 9.15.0 dev: false /eslint-plugin-tsdoc@0.2.17: @@ -6285,7 +6412,7 @@ packages: '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.3 + cross-spawn: 7.0.6 debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 @@ -6317,8 +6444,8 @@ packages: - supports-color dev: false - /eslint@9.14.0: - resolution: {integrity: sha512-c2FHsVBr87lnUtjP4Yhvk4yEhKrQavGafRA/Se1ouse8PfbfC/Qh9Mxa00yWsZRlqeUB9raXip0aiiUZkgnr9g==} + /eslint@9.15.0: + resolution: {integrity: sha512-7CrWySmIibCgT1Os28lUU6upBshZ+GxybLOrmRzi08kS8MBuO8QA7pXEgYgY5W8vK3e74xv0lpjo9DbaGU9Rkw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} hasBin: true peerDependencies: @@ -6327,21 +6454,21 @@ packages: jiti: optional: true dependencies: - '@eslint-community/eslint-utils': 4.4.1(eslint@9.14.0) + '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0) '@eslint-community/regexpp': 4.12.1 - '@eslint/config-array': 0.18.0 - '@eslint/core': 0.7.0 - '@eslint/eslintrc': 3.1.0 - '@eslint/js': 9.14.0 - '@eslint/plugin-kit': 0.2.2 + '@eslint/config-array': 0.19.0 + '@eslint/core': 0.9.0 + '@eslint/eslintrc': 3.2.0 + '@eslint/js': 9.15.0 + '@eslint/plugin-kit': 0.2.3 '@humanfs/node': 0.16.6 '@humanwhocodes/module-importer': 1.0.1 - '@humanwhocodes/retry': 0.4.0 + '@humanwhocodes/retry': 0.4.1 '@types/estree': 1.0.6 '@types/json-schema': 7.0.15 ajv: 6.12.6 chalk: 4.1.2 - cross-spawn: 7.0.3 + cross-spawn: 7.0.6 debug: 4.3.7(supports-color@8.1.1) escape-string-regexp: 4.0.0 eslint-scope: 8.2.0 @@ -6361,7 +6488,6 @@ packages: minimatch: 3.1.2 natural-compare: 1.4.0 optionator: 0.9.4 - text-table: 0.2.0 transitivePeerDependencies: - supports-color dev: false @@ -6457,7 +6583,7 @@ packages: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} dependencies: - cross-spawn: 7.0.3 + cross-spawn: 7.0.6 get-stream: 6.0.1 human-signals: 2.1.0 is-stream: 2.0.1 @@ -6472,7 +6598,7 @@ packages: resolution: {integrity: sha512-QVWlX2e50heYJcCPG0iWtf8r0xjEYfz/OYLGDYH+IyjWezzPNxz63qNFOu0l4YftGWuizFVZHHs8PrLU5p2IDA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: - cross-spawn: 7.0.3 + cross-spawn: 7.0.6 get-stream: 6.0.1 human-signals: 3.0.1 is-stream: 3.0.0 @@ -6487,7 +6613,7 @@ packages: resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} engines: {node: '>=16.17'} dependencies: - cross-spawn: 7.0.3 + cross-spawn: 7.0.6 get-stream: 8.0.1 human-signals: 5.0.0 is-stream: 3.0.0 @@ -6641,6 +6767,10 @@ packages: resolution: {integrity: sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==} dev: false + /fflate@0.8.2: + resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==} + dev: false + /file-entry-cache@6.0.1: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} @@ -6732,7 +6862,7 @@ packages: resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} engines: {node: ^10.12.0 || >=12.0.0} dependencies: - flatted: 3.3.1 + flatted: 3.3.2 keyv: 4.5.4 rimraf: 3.0.2 dev: false @@ -6741,7 +6871,7 @@ packages: resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} engines: {node: '>=16'} dependencies: - flatted: 3.3.1 + flatted: 3.3.2 keyv: 4.5.4 dev: false @@ -6750,8 +6880,8 @@ packages: hasBin: true dev: false - /flatted@3.3.1: - resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} + /flatted@3.3.2: + resolution: {integrity: sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==} dev: false /follow-redirects@1.15.9: @@ -6774,7 +6904,7 @@ packages: resolution: {integrity: sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==} engines: {node: '>=8.0.0'} dependencies: - cross-spawn: 7.0.3 + cross-spawn: 7.0.6 signal-exit: 3.0.7 dev: false @@ -6782,7 +6912,7 @@ packages: resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==} engines: {node: '>=14'} dependencies: - cross-spawn: 7.0.3 + cross-spawn: 7.0.6 signal-exit: 4.1.0 dev: false @@ -7029,13 +7159,15 @@ packages: engines: {node: '>=18'} dev: false - /globby@11.1.0: - resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} - engines: {node: '>=10'} + /globby@10.0.1: + resolution: {integrity: sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==} + engines: {node: '>=8'} dependencies: + '@types/glob': 7.2.0 array-union: 2.1.0 dir-glob: 3.0.1 fast-glob: 3.3.2 + glob: 7.2.3 ignore: 5.3.2 merge2: 1.4.1 slash: 3.0.0 @@ -7133,6 +7265,10 @@ packages: resolution: {integrity: sha512-IScLbePpkvO846sIwOtOTDjutRMWdXdJmXdMvk6gCBHxFO8d+QKOQedyZSxFTTFYRSmlgSTDtXqqq4pcenBXLQ==} dev: false + /highlight.js@10.7.3: + resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==} + dev: false + /hosted-git-info@4.1.0: resolution: {integrity: sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==} engines: {node: '>=10'} @@ -7287,7 +7423,7 @@ packages: resolution: {integrity: sha512-LJKFHCSeIRq9hanN14IlOtPSTe3lNES7TYDTE2xxdAy1LS5rYphajK1qtwvj3YmQXvvk0U2Vbmcni8P9EIQW9w==} engines: {node: '>=18'} dependencies: - '@inquirer/figures': 1.0.7 + '@inquirer/figures': 1.0.8 ansi-escapes: 4.3.2 cli-width: 4.1.0 external-editor: 3.1.0 @@ -7450,6 +7586,11 @@ packages: engines: {node: '>=8'} dev: false + /is-plain-object@3.0.1: + resolution: {integrity: sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==} + engines: {node: '>=0.10.0'} + dev: false + /is-reference@1.2.1: resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} dependencies: @@ -7566,7 +7707,7 @@ packages: engines: {node: '>=8'} dependencies: archy: 1.0.0 - cross-spawn: 7.0.3 + cross-spawn: 7.0.6 istanbul-lib-coverage: 3.2.2 p-map: 3.0.0 rimraf: 3.0.2 @@ -7628,8 +7769,8 @@ packages: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} dev: false - /js-tokens@9.0.0: - resolution: {integrity: sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==} + /js-tokens@9.0.1: + resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==} dev: false /js-yaml@3.14.1: @@ -7821,26 +7962,10 @@ packages: - supports-color dev: false - /karma-edge-launcher@0.4.2(karma@6.4.4): - resolution: {integrity: sha512-YAJZb1fmRcxNhMIWYsjLuxwODBjh2cSHgTW/jkVmdpGguJjLbs9ZgIK/tEJsMQcBLUkO+yO4LBbqYxqgGW2HIw==} - engines: {node: '>=4'} - peerDependencies: - karma: '>=0.9' - dependencies: - edge-launcher: 1.2.2 - karma: 6.4.4 - dev: false - /karma-env-preprocessor@0.1.1: resolution: {integrity: sha512-3FAuA0B1lS4DXNyOpD1Y+BjteVmnfX0WXUpsZ19aYykTk/GPz0kqnjzdApDiEe4sapreVeVSme2qTALnbHJb/A==} dev: false - /karma-firefox-launcher@1.3.0: - resolution: {integrity: sha512-Fi7xPhwrRgr+94BnHX0F5dCl1miIW4RHnzjIGxF8GaIEp7rNqX7LSi7ok63VXs3PS/5MQaQMhGxw+bvD+pibBQ==} - dependencies: - is-wsl: 2.2.0 - dev: false - /karma-firefox-launcher@2.1.3: resolution: {integrity: sha512-LMM2bseebLbYjODBOVt7TCPP9OI2vZIXCavIXhkO9m+10Uj5l7u/SKoeRmYx8FYHTVGZSpk6peX+3BMHC1WwNw==} dependencies: @@ -7911,12 +8036,6 @@ packages: graceful-fs: 4.2.11 dev: false - /karma-sourcemap-loader@0.4.0: - resolution: {integrity: sha512-xCRL3/pmhAYF3I6qOrcn0uhbQevitc2DERMPH82FMnG+4WReoGcGFZb1pURf2a5apyrOHRdvD+O6K7NljqKHyA==} - dependencies: - graceful-fs: 4.2.11 - dev: false - /karma@6.4.4: resolution: {integrity: sha512-LrtUxbdvt1gOpo3gxG+VAJlJAEMhbWlM4YrFQgql98FwF7+K8K12LYO4hnDdUkNjeztYrOXEMqgTajSWgmtI/w==} engines: {node: '>= 10'} @@ -8009,11 +8128,11 @@ packages: uc.micro: 2.1.0 dev: false - /local-pkg@0.5.0: - resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==} + /local-pkg@0.5.1: + resolution: {integrity: sha512-9rrA30MRRP3gBD3HTGnC6cDFpaE1kVDWxWgqWJUN0RvDNAo+Nz/9GxB+nHOH0ifbVFy0hSA1V6vFDvnx54lTEQ==} engines: {node: '>=14'} dependencies: - mlly: 1.7.2 + mlly: 1.7.3 pkg-types: 1.2.1 dev: false @@ -8100,15 +8219,15 @@ packages: dependencies: date-format: 4.0.14 debug: 4.3.7(supports-color@8.1.1) - flatted: 3.3.1 + flatted: 3.3.2 rfdc: 1.4.1 streamroller: 3.1.5 transitivePeerDependencies: - supports-color dev: false - /logform@2.6.1: - resolution: {integrity: sha512-CdaO738xRapbKIMVn2m4F6KTj4j7ooJ8POVnebSgKo3KBz5axNXRAL7ZdRjIV6NOr2Uf4vjtRkxrFETOioCqSA==} + /logform@2.7.0: + resolution: {integrity: sha512-TFYA4jnP7PVbmlBIfhlSe+WKxs9dklXMTEGcBCIvLhE/Tn3H6Gk1norupVW7m5Cnd4bLcr08AytbyV/xj7f/kQ==} engines: {node: '>= 12.0.0'} dependencies: '@colors/colors': 1.6.0 @@ -8164,8 +8283,8 @@ packages: hasBin: true dev: false - /magic-string@0.30.12: - resolution: {integrity: sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==} + /magic-string@0.30.14: + resolution: {integrity: sha512-5c99P1WKTed11ZC0HMJOj6CDIue6F8ySu+bJL+85q1zBEIY8IklrJ1eiKC2NDRh3Ct3FcvmJPyQHb9erXMTJNw==} dependencies: '@jridgewell/sourcemap-codec': 1.5.0 dev: false @@ -8235,12 +8354,34 @@ packages: uc.micro: 2.1.0 dev: false + /marked-terminal@7.2.1(marked@9.1.6): + resolution: {integrity: sha512-rQ1MoMFXZICWNsKMiiHwP/Z+92PLKskTPXj+e7uwXmuMPkNn7iTqC+IvDekVm1MPeC9wYQeLxeFaOvudRR/XbQ==} + engines: {node: '>=16.0.0'} + peerDependencies: + marked: '>=1 <15' + dependencies: + ansi-escapes: 7.0.0 + ansi-regex: 6.1.0 + chalk: 5.3.0 + cli-highlight: 2.1.11 + cli-table3: 0.6.5 + marked: 9.1.6 + node-emoji: 2.1.3 + supports-hyperlinks: 3.1.0 + dev: false + /marked@4.3.0: resolution: {integrity: sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==} engines: {node: '>= 12'} hasBin: true dev: false + /marked@9.1.6: + resolution: {integrity: sha512-jcByLnIFkd5gSXZmjNvS1TlmRhCXZjIzHYlaGkPlLIekG55JDR2Z4va9tZwCiP+/RDERiNhMOFu01xd6O5ct1Q==} + engines: {node: '>= 16'} + hasBin: true + dev: false + /matched@5.0.1: resolution: {integrity: sha512-E1fhSTPRyhAlNaNvGXAgZQlq1hL0bgYMTk/6bktVlIhzUnX/SZs7296ACdVeNJE8xFNGSuvd9IpI7vSnmcqLvw==} engines: {node: '>=10'} @@ -8453,8 +8594,8 @@ packages: hasBin: true dev: false - /mlly@1.7.2: - resolution: {integrity: sha512-tN3dvVHYVz4DhSXinXIk7u9syPYaJvio118uomkovAtWBT+RdbP6Lfh/5Lvo519YMmwBafwlh20IPTXIStscpA==} + /mlly@1.7.3: + resolution: {integrity: sha512-xUsx5n/mN0uQf4V548PKQ+YShA4/IW0KI1dZhrNrPCLG+xizETbHTkOa1f8/xut9JRPp8kQuMnz0oqwkTiLo/A==} dependencies: acorn: 8.14.0 pathe: 1.1.2 @@ -8535,8 +8676,8 @@ packages: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} dev: false - /msw@2.6.0(@types/node@18.19.64)(typescript@5.6.3): - resolution: {integrity: sha512-n3tx2w0MZ3H4pxY0ozrQ4sNPzK/dGtlr2cIIyuEsgq2Bhy4wvcW6ZH2w/gXM9+MEUY6HC1fWhqtcXDxVZr5Jxw==} + /msw@2.6.6(@types/node@18.19.66)(typescript@5.6.3): + resolution: {integrity: sha512-npfIIVRHKQX3Lw4aLWX4wBh+lQwpqdZNyJYB5K/+ktK8NhtkdsTxGK7WDrgknozcVyRI7TOqY6yBS9j2FTR+YQ==} engines: {node: '>=18'} hasBin: true requiresBuild: true @@ -8546,11 +8687,11 @@ packages: typescript: optional: true dependencies: - '@bundled-es-modules/cookie': 2.0.0 + '@bundled-es-modules/cookie': 2.0.1 '@bundled-es-modules/statuses': 1.0.1 '@bundled-es-modules/tough-cookie': 0.1.6 - '@inquirer/confirm': 5.0.1(@types/node@18.19.64) - '@mswjs/interceptors': 0.36.9 + '@inquirer/confirm': 5.0.2(@types/node@18.19.66) + '@mswjs/interceptors': 0.37.1 '@open-draft/deferred-promise': 2.2.0 '@open-draft/until': 2.1.0 '@types/cookie': 0.6.0 @@ -8562,7 +8703,7 @@ packages: outvariant: 1.4.3 path-to-regexp: 6.3.0 strict-event-emitter: 0.5.1 - type-fest: 4.26.1 + type-fest: 4.28.1 typescript: 5.6.3 yargs: 17.7.2 transitivePeerDependencies: @@ -8584,8 +8725,16 @@ packages: engines: {node: ^18.17.0 || >=20.5.0} dev: false - /nanoid@3.3.7: - resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} + /mz@2.7.0: + resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} + dependencies: + any-promise: 1.3.0 + object-assign: 4.1.1 + thenify-all: 1.6.0 + dev: false + + /nanoid@3.3.8: + resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true dev: false @@ -8622,18 +8771,8 @@ packages: path-to-regexp: 6.3.0 dev: false - /nise@6.1.1: - resolution: {integrity: sha512-aMSAzLVY7LyeM60gvBS423nBmIPP+Wy7St7hsb+8/fc1HmeoHJfLO8CKse4u3BtOZvQLJghYPI2i/1WZrEj5/g==} - dependencies: - '@sinonjs/commons': 3.0.1 - '@sinonjs/fake-timers': 13.0.5 - '@sinonjs/text-encoding': 0.7.3 - just-extend: 6.2.0 - path-to-regexp: 8.2.0 - dev: false - - /nock@13.5.5: - resolution: {integrity: sha512-XKYnqUrCwXC8DGG1xX4YH5yNIrlh9c065uaMZZHUoeUUINTOyt+x/G+ezYk0Ft6ExSREVIs+qBJDK503viTfFA==} + /nock@13.5.6: + resolution: {integrity: sha512-o2zOYiCpzRqSzPj0Zt/dQ/DqZeYoaQ7TUonc/xUPjCGl9WeHpNbxgVvOquXYAaJzI0M9BXV3HTzG0p8IUAbBTQ==} engines: {node: '>= 10.13'} dependencies: debug: 4.3.7(supports-color@8.1.1) @@ -8659,6 +8798,16 @@ packages: engines: {node: '>=10.5.0'} dev: false + /node-emoji@2.1.3: + resolution: {integrity: sha512-E2WEOVsgs7O16zsURJ/eH8BqhF029wGpEOnv7Urwdo2wmQanOACwJQh0devF9D9RhoZru0+9JXIS0dBXIAz+lA==} + engines: {node: '>=18'} + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + dev: false + /node-fetch@2.7.0: resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} engines: {node: 4.x || >=6.0.0} @@ -8675,7 +8824,7 @@ packages: resolution: {integrity: sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==} engines: {node: '>=8'} dependencies: - process-on-spawn: 1.0.0 + process-on-spawn: 1.1.0 dev: false /node-releases@2.0.18: @@ -8743,7 +8892,7 @@ packages: make-dir: 3.1.0 node-preload: 0.2.1 p-map: 3.0.0 - process-on-spawn: 1.0.0 + process-on-spawn: 1.1.0 resolve-from: 5.0.0 rimraf: 3.0.2 signal-exit: 3.0.7 @@ -8759,8 +8908,8 @@ packages: engines: {node: '>=0.10.0'} dev: false - /object-inspect@1.13.2: - resolution: {integrity: sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==} + /object-inspect@1.13.3: + resolution: {integrity: sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==} engines: {node: '>= 0.4'} dev: false @@ -8817,8 +8966,8 @@ packages: is-wsl: 2.2.0 dev: false - /openai@4.70.2: - resolution: {integrity: sha512-Q2ymi/KPUYv+LJ9rFxeYxpkVAhcrZFTVvnJbdF1pUHg9eMC6lY8PU4TO1XOK5UZzOZuuVicouRwVMi1iDrT4qw==} + /openai@4.73.1: + resolution: {integrity: sha512-nWImDJBcUsqrhy7yJScXB4+iqjzbUEgzfA3un/6UnHFdwWhjX24oztj69Ped/njABfOdLcO/F7CeWTI5dt8Xmg==} hasBin: true peerDependencies: zod: ^3.23.8 @@ -8826,8 +8975,8 @@ packages: zod: optional: true dependencies: - '@types/node': 18.19.64 - '@types/node-fetch': 2.6.11 + '@types/node': 18.19.66 + '@types/node-fetch': 2.6.12 abort-controller: 3.0.0 agentkeepalive: 4.5.0 form-data-encoder: 1.7.2 @@ -9033,6 +9182,20 @@ packages: lines-and-columns: 1.2.4 dev: false + /parse5-htmlparser2-tree-adapter@6.0.1: + resolution: {integrity: sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==} + dependencies: + parse5: 6.0.1 + dev: false + + /parse5@5.1.1: + resolution: {integrity: sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==} + dev: false + + /parse5@6.0.1: + resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} + dev: false + /parseurl@1.3.3: resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} engines: {node: '>= 0.8'} @@ -9087,11 +9250,6 @@ packages: resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} dev: false - /path-to-regexp@8.2.0: - resolution: {integrity: sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==} - engines: {node: '>=16'} - dev: false - /path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} @@ -9181,22 +9339,22 @@ packages: resolution: {integrity: sha512-sQoqa8alT3nHjGuTjuKgOnvjo4cljkufdtLMnO2LBP/wRwuDlo1tkaEdMxCRhyGRPacv/ztlZgDPm2b7FAmEvw==} dependencies: confbox: 0.1.8 - mlly: 1.7.2 + mlly: 1.7.3 pathe: 1.1.2 dev: false - /playwright-core@1.48.2: - resolution: {integrity: sha512-sjjw+qrLFlriJo64du+EK0kJgZzoQPsabGF4lBvsid+3CNIZIYLgnMj9V6JY5VhM2Peh20DJWIVpVljLLnlawA==} + /playwright-core@1.49.0: + resolution: {integrity: sha512-R+3KKTQF3npy5GTiKH/T+kdhoJfJojjHESR1YEWhYuEKRVfVaxH3+4+GvXE5xyCngCxhxnykk0Vlah9v8fs3jA==} engines: {node: '>=18'} hasBin: true dev: false - /playwright@1.48.2: - resolution: {integrity: sha512-NjYvYgp4BPmiwfe31j4gHLa3J7bD2WiBz8Lk2RoSsmX38SVIARZ18VYjxLjAcDsAhA+F4iSEXTSGgjua0rrlgQ==} + /playwright@1.49.0: + resolution: {integrity: sha512-eKpmys0UFDnfNb3vfsf8Vx2LEOtflgRebl0Im2eQQnYMA4Aqd+Zw8bEOB+7ZKvN76901mRnqdsiOGKxzVTbi7A==} engines: {node: '>=18'} hasBin: true dependencies: - playwright-core: 1.48.2 + playwright-core: 1.49.0 optionalDependencies: fsevents: 2.3.2 dev: false @@ -9211,11 +9369,11 @@ packages: engines: {node: '>= 0.4'} dev: false - /postcss@8.4.47: - resolution: {integrity: sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==} + /postcss@8.4.49: + resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==} engines: {node: ^10 || ^12 || >=14} dependencies: - nanoid: 3.3.7 + nanoid: 3.3.8 picocolors: 1.1.1 source-map-js: 1.2.1 dev: false @@ -9277,8 +9435,8 @@ packages: hasBin: true dev: false - /prettier@3.3.3: - resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==} + /prettier@3.4.1: + resolution: {integrity: sha512-G+YdqtITVZmOJje6QkXQWzl3fSfMxFwm1tjTyo9exhkmWSqC4Yhd1+lug++IlR2mvRVAxEDDWYkQdeSztajqgg==} engines: {node: '>=14'} hasBin: true dev: false @@ -9309,8 +9467,8 @@ packages: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} dev: false - /process-on-spawn@1.0.0: - resolution: {integrity: sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg==} + /process-on-spawn@1.1.0: + resolution: {integrity: sha512-JOnOPQ/8TZgjs1JIH/m9ni7FfimjNa/PRx7y/Wb5qdItsnhO0jE4AT7fC0HjC28DUQWDr50dwSYZLdRMlqDq3Q==} engines: {node: '>=8'} dependencies: fromentries: 1.3.2 @@ -9374,7 +9532,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 18.19.64 + '@types/node': 18.19.66 long: 5.2.3 dev: false @@ -9406,8 +9564,10 @@ packages: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} dev: false - /psl@1.9.0: - resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} + /psl@1.13.0: + resolution: {integrity: sha512-BFwmFXiJoFqlUpZ5Qssolv15DMyc84gTBds1BjsV1BfXEo1UyyD7GsmN67n7J77uRhoSNW1AXtXKPLcBFQn9Aw==} + dependencies: + punycode: 2.3.1 dev: false /pump@3.0.2: @@ -9431,14 +9591,14 @@ packages: engines: {node: '>=6'} dev: false - /puppeteer-core@23.7.0: - resolution: {integrity: sha512-0kC81k3K6n6Upg/k04xv+Mi8yy62bNAJiK7LCA71zfq2XKEo9WAzas1t6UQiLgaNHtGNKM0d1KbR56p/+mgEiQ==} + /puppeteer-core@23.9.0: + resolution: {integrity: sha512-hLVrav2HYMVdK0YILtfJwtnkBAwNOztUdR4aJ5YKDvgsbtagNr6urUJk9HyjRA9e+PaLI3jzJ0wM7A4jSZ7Qxw==} engines: {node: '>=18'} dependencies: '@puppeteer/browsers': 2.4.1 - chromium-bidi: 0.8.0(devtools-protocol@0.0.1354347) + chromium-bidi: 0.8.0(devtools-protocol@0.0.1367902) debug: 4.3.7(supports-color@8.1.1) - devtools-protocol: 0.0.1354347 + devtools-protocol: 0.0.1367902 typed-query-selector: 2.12.0 ws: 8.18.0 transitivePeerDependencies: @@ -9447,17 +9607,17 @@ packages: - utf-8-validate dev: false - /puppeteer@23.7.0(typescript@5.6.3): - resolution: {integrity: sha512-YTgo0KFe8NtBcI9hCu/xsjPFumEhu8kA7QqLr6Uh79JcEsUcUt+go966NgKYXJ+P3Fuefrzn2SXwV3cyOe/UcQ==} + /puppeteer@23.9.0(typescript@5.6.3): + resolution: {integrity: sha512-WfB8jGwFV+qrD9dcJJVvWPFJBU6kxeu2wxJz9WooDGfM3vIiKLgzImEDBxUQnCBK/2cXB3d4dV6gs/LLpgfLDg==} engines: {node: '>=18'} hasBin: true requiresBuild: true dependencies: '@puppeteer/browsers': 2.4.1 - chromium-bidi: 0.8.0(devtools-protocol@0.0.1354347) + chromium-bidi: 0.8.0(devtools-protocol@0.0.1367902) cosmiconfig: 9.0.0(typescript@5.6.3) - devtools-protocol: 0.0.1354347 - puppeteer-core: 23.7.0 + devtools-protocol: 0.0.1367902 + puppeteer-core: 23.9.0 typed-query-selector: 2.12.0 transitivePeerDependencies: - bufferutil @@ -9583,17 +9743,6 @@ packages: util-deprecate: 1.0.2 dev: false - /readable-stream@4.5.2: - resolution: {integrity: sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dependencies: - abort-controller: 3.0.0 - buffer: 6.0.3 - events: 3.3.0 - process: 0.11.10 - string_decoder: 1.3.0 - dev: false - /readdirp@3.6.0: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} @@ -9749,16 +9898,27 @@ packages: glob: 10.4.5 dev: false - /rollup-plugin-polyfill-node@0.13.0(rollup@4.24.4): + /rollup-plugin-copy@3.5.0: + resolution: {integrity: sha512-wI8D5dvYovRMx/YYKtUNt3Yxaw4ORC9xo6Gt9t22kveWz1enG9QrhVlagzwrxSC455xD1dHMKhIJkbsQ7d48BA==} + engines: {node: '>=8.3'} + dependencies: + '@types/fs-extra': 8.1.5 + colorette: 1.4.0 + fs-extra: 8.1.0 + globby: 10.0.1 + is-plain-object: 3.0.1 + dev: false + + /rollup-plugin-polyfill-node@0.13.0(rollup@4.27.4): resolution: {integrity: sha512-FYEvpCaD5jGtyBuBFcQImEGmTxDTPbiHjJdrYIp+mFIwgXiXabxvKUK7ZT9P31ozu2Tqm9llYQMRWsfvTMTAOw==} peerDependencies: rollup: ^1.20.0 || ^2.0.0 || ^3.0.0 || ^4.0.0 dependencies: - '@rollup/plugin-inject': 5.0.5(rollup@4.24.4) - rollup: 4.24.4 + '@rollup/plugin-inject': 5.0.5(rollup@4.27.4) + rollup: 4.27.4 dev: false - /rollup-plugin-visualizer@5.12.0(rollup@4.24.4): + /rollup-plugin-visualizer@5.12.0(rollup@4.27.4): resolution: {integrity: sha512-8/NU9jXcHRs7Nnj07PF2o4gjxmm9lXIrZ8r175bT9dK8qoLlvKTwRMArRCMgpMGlq8CTLugRvEmyMeMXIU2pNQ==} engines: {node: '>=14'} hasBin: true @@ -9770,36 +9930,36 @@ packages: dependencies: open: 8.4.2 picomatch: 2.3.1 - rollup: 4.24.4 + rollup: 4.27.4 source-map: 0.7.4 yargs: 17.7.2 dev: false - /rollup@4.24.4: - resolution: {integrity: sha512-vGorVWIsWfX3xbcyAS+I047kFKapHYivmkaT63Smj77XwvLSJos6M1xGqZnBPFQFBRZDOcG1QnYEIxAvTr/HjA==} + /rollup@4.27.4: + resolution: {integrity: sha512-RLKxqHEMjh/RGLsDxAEsaLO3mWgyoU6x9w6n1ikAzet4B3gI2/3yP6PWY2p9QzRTh6MfEIXB3MwsOY0Iv3vNrw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true dependencies: '@types/estree': 1.0.6 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.24.4 - '@rollup/rollup-android-arm64': 4.24.4 - '@rollup/rollup-darwin-arm64': 4.24.4 - '@rollup/rollup-darwin-x64': 4.24.4 - '@rollup/rollup-freebsd-arm64': 4.24.4 - '@rollup/rollup-freebsd-x64': 4.24.4 - '@rollup/rollup-linux-arm-gnueabihf': 4.24.4 - '@rollup/rollup-linux-arm-musleabihf': 4.24.4 - '@rollup/rollup-linux-arm64-gnu': 4.24.4 - '@rollup/rollup-linux-arm64-musl': 4.24.4 - '@rollup/rollup-linux-powerpc64le-gnu': 4.24.4 - '@rollup/rollup-linux-riscv64-gnu': 4.24.4 - '@rollup/rollup-linux-s390x-gnu': 4.24.4 - '@rollup/rollup-linux-x64-gnu': 4.24.4 - '@rollup/rollup-linux-x64-musl': 4.24.4 - '@rollup/rollup-win32-arm64-msvc': 4.24.4 - '@rollup/rollup-win32-ia32-msvc': 4.24.4 - '@rollup/rollup-win32-x64-msvc': 4.24.4 + '@rollup/rollup-android-arm-eabi': 4.27.4 + '@rollup/rollup-android-arm64': 4.27.4 + '@rollup/rollup-darwin-arm64': 4.27.4 + '@rollup/rollup-darwin-x64': 4.27.4 + '@rollup/rollup-freebsd-arm64': 4.27.4 + '@rollup/rollup-freebsd-x64': 4.27.4 + '@rollup/rollup-linux-arm-gnueabihf': 4.27.4 + '@rollup/rollup-linux-arm-musleabihf': 4.27.4 + '@rollup/rollup-linux-arm64-gnu': 4.27.4 + '@rollup/rollup-linux-arm64-musl': 4.27.4 + '@rollup/rollup-linux-powerpc64le-gnu': 4.27.4 + '@rollup/rollup-linux-riscv64-gnu': 4.27.4 + '@rollup/rollup-linux-s390x-gnu': 4.27.4 + '@rollup/rollup-linux-x64-gnu': 4.27.4 + '@rollup/rollup-linux-x64-musl': 4.27.4 + '@rollup/rollup-win32-arm64-msvc': 4.27.4 + '@rollup/rollup-win32-ia32-msvc': 4.27.4 + '@rollup/rollup-win32-x64-msvc': 4.27.4 fsevents: 2.3.3 dev: false @@ -9955,7 +10115,7 @@ packages: call-bind: 1.0.7 es-errors: 1.3.0 get-intrinsic: 1.2.4 - object-inspect: 1.13.2 + object-inspect: 1.13.3 dev: false /siginfo@2.0.0: @@ -9994,26 +10154,6 @@ packages: supports-color: 7.2.0 dev: false - /sinon@19.0.2: - resolution: {integrity: sha512-euuToqM+PjO4UgXeLETsfQiuoyPXlqFezr6YZDFwHR3t4qaX0fZUe1MfPMznTL5f8BWrVS89KduLdMUsxFCO6g==} - dependencies: - '@sinonjs/commons': 3.0.1 - '@sinonjs/fake-timers': 13.0.5 - '@sinonjs/samsam': 8.0.2 - diff: 7.0.0 - nise: 6.1.1 - supports-color: 7.2.0 - dev: false - - /sirv@2.0.4: - resolution: {integrity: sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==} - engines: {node: '>= 10'} - dependencies: - '@polka/url': 1.0.0-next.28 - mrmime: 2.0.0 - totalist: 3.0.1 - dev: false - /sirv@3.0.0: resolution: {integrity: sha512-BPwJGUeDaDCHihkORDchNyyTvWFhcusy1XMmhEVTQTwGeybFbp8YEmB+njbPnth1FibULBSBVwCQni25XlCUDg==} engines: {node: '>=18'} @@ -10027,6 +10167,13 @@ packages: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} dev: false + /skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + dependencies: + unicode-emoji-modifier-base: 1.0.0 + dev: false + /slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} @@ -10181,8 +10328,8 @@ packages: engines: {node: '>= 0.8'} dev: false - /std-env@3.7.0: - resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==} + /std-env@3.8.0: + resolution: {integrity: sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==} dev: false /stoppable@1.1.0: @@ -10207,8 +10354,8 @@ packages: - supports-color dev: false - /streamx@2.20.1: - resolution: {integrity: sha512-uTa0mU6WUC65iUvzKH4X9hEdvSW7rbPxPtwfWiLMSj3qTdQbAiUboZTxauKfpFuGIGa1C2BYijZ7wgdUXICJhA==} + /streamx@2.20.2: + resolution: {integrity: sha512-aDGDLU+j9tJcUdPGOaHmVF1u/hhI+CsGkT02V3OKlHDV7IukOI+nTWAGkiZEKCO35rWN1wIr4tS7YFr1f4qSvA==} dependencies: fast-fifo: 1.3.2 queue-tick: 1.0.1 @@ -10319,10 +10466,10 @@ packages: engines: {node: '>=8'} dev: false - /strip-literal@2.1.0: - resolution: {integrity: sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==} + /strip-literal@2.1.1: + resolution: {integrity: sha512-631UJ6O00eNGfMiWG78ck80dfBab8X6IVFB51jZK5Icd7XAs60Z5y7QdSd/wGIklnWvRbUNloVzhOKKmutxQ6Q==} dependencies: - js-tokens: 9.0.0 + js-tokens: 9.0.1 dev: false /strnum@1.0.5: @@ -10350,6 +10497,14 @@ packages: has-flag: 4.0.0 dev: false + /supports-hyperlinks@3.1.0: + resolution: {integrity: sha512-2rn0BZ+/f7puLOHZm1HOJfwBggfaHXUpPUSSG/SWM4TWp5KCfmNYwnC3hruy2rZlMnmWZ+QAGpZfchu3f3695A==} + engines: {node: '>=14.18'} + dependencies: + has-flag: 4.0.0 + supports-color: 7.2.0 + dev: false + /supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -10419,7 +10574,7 @@ packages: dependencies: b4a: 1.6.7 fast-fifo: 1.3.2 - streamx: 2.20.1 + streamx: 2.20.2 dev: false /tersify@3.12.1: @@ -10456,6 +10611,19 @@ packages: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: false + /thenify-all@1.6.0: + resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} + engines: {node: '>=0.8'} + dependencies: + thenify: 3.3.1 + dev: false + + /thenify@3.3.1: + resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} + dependencies: + any-promise: 1.3.0 + dev: false + /through2@2.0.5: resolution: {integrity: sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==} dependencies: @@ -10488,8 +10656,8 @@ packages: engines: {node: '>=14.0.0'} dev: false - /tinypool@1.0.1: - resolution: {integrity: sha512-URZYihUbRPcGv95En+sz6MfghfIc2OJ1sv/RmhWZLouPY0/8Vo80viwPvg3dlaS9fuq7fQMEfgRRK7BBZThBEA==} + /tinypool@1.0.2: + resolution: {integrity: sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==} engines: {node: ^18.0.0 || >=20.0.0} dev: false @@ -10545,7 +10713,7 @@ packages: resolution: {integrity: sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==} engines: {node: '>=6'} dependencies: - psl: 1.9.0 + psl: 1.13.0 punycode: 2.3.1 universalify: 0.2.0 url-parse: 1.5.10 @@ -10570,8 +10738,8 @@ packages: engines: {node: '>= 14.0.0'} dev: false - /ts-api-utils@1.4.0(typescript@5.6.3): - resolution: {integrity: sha512-032cPxaEKwM+GT3vA5JXNzIaizx388rhsSW79vGRNGXfRRAdEAn2mvk36PvK5HnOchyWZ7afLEXqYCvPCrzuzQ==} + /ts-api-utils@1.4.2(typescript@5.6.3): + resolution: {integrity: sha512-ZF5gQIQa/UmzfvxbHZI3JXN0/Jt+vnAfAviNRAMc491laiK6YCLpCW9ft8oaCRFOTxCZtUTE6XB0ZQAe3olntw==} engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' @@ -10586,7 +10754,7 @@ packages: code-block-writer: 13.0.3 dev: false - /ts-node@10.9.2(@types/node@18.19.64)(typescript@5.3.3): + /ts-node@10.9.2(@types/node@18.19.66)(typescript@5.3.3): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -10605,7 +10773,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 18.19.64 + '@types/node': 18.19.66 acorn: 8.14.0 acorn-walk: 8.3.4 arg: 4.1.3 @@ -10617,7 +10785,7 @@ packages: yn: 3.1.1 dev: false - /ts-node@10.9.2(@types/node@18.19.64)(typescript@5.5.4): + /ts-node@10.9.2(@types/node@18.19.66)(typescript@5.5.4): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -10636,7 +10804,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 18.19.64 + '@types/node': 18.19.66 acorn: 8.14.0 acorn-walk: 8.3.4 arg: 4.1.3 @@ -10648,38 +10816,7 @@ packages: yn: 3.1.1 dev: false - /ts-node@10.9.2(@types/node@18.19.64)(typescript@5.6.3): - resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} - hasBin: true - peerDependencies: - '@swc/core': '>=1.2.50' - '@swc/wasm': '>=1.2.50' - '@types/node': '*' - typescript: '>=2.7' - peerDependenciesMeta: - '@swc/core': - optional: true - '@swc/wasm': - optional: true - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.11 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 18.19.64 - acorn: 8.14.0 - acorn-walk: 8.3.4 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.6.3 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - dev: false - - /ts-node@10.9.2(@types/node@20.10.8)(typescript@5.6.3): + /ts-node@10.9.2(@types/node@18.19.66)(typescript@5.6.3): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -10698,7 +10835,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.10.8 + '@types/node': 18.19.66 acorn: 8.14.0 acorn-walk: 8.3.4 arg: 4.1.3 @@ -10746,10 +10883,6 @@ packages: walk-up-path: 3.0.1 dev: false - /tslib@1.14.1: - resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} - dev: false - /tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} dev: false @@ -10815,8 +10948,8 @@ packages: engines: {node: '>=10'} dev: false - /type-fest@4.26.1: - resolution: {integrity: sha512-yOGpmOAL7CkKe/91I5O3gPICmJNLJ1G4zFYVAsRHg7M64biSnPtRj0WNQt++bRkjYOqjWXrhnUw1utzmVErAdg==} + /type-fest@4.28.1: + resolution: {integrity: sha512-LO/+yb3mf46YqfUC7QkkoAlpa7CTYh//V1Xy9+NQ+pKqDqXIq0NTfPfQRwFfCt+if4Qkwb9gzZfsl6E5TkXZGw==} engines: {node: '>=16'} dev: false @@ -10845,39 +10978,22 @@ packages: is-typedarray: 1.0.0 dev: false - /typescript-eslint@8.10.0(eslint@9.14.0)(typescript@5.6.3): - resolution: {integrity: sha512-YIu230PeN7z9zpu/EtqCIuRVHPs4iSlqW6TEvjbyDAE3MZsSl2RXBo+5ag+lbABCG8sFM1WVKEXhlQ8Ml8A3Fw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/eslint-plugin': 8.10.0(@typescript-eslint/parser@8.10.0)(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/parser': 8.10.0(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/utils': 8.10.0(eslint@9.14.0)(typescript@5.6.3) - typescript: 5.6.3 - transitivePeerDependencies: - - eslint - - supports-color - dev: false - - /typescript-eslint@8.2.0(eslint@9.14.0)(typescript@5.6.3): - resolution: {integrity: sha512-DmnqaPcML0xYwUzgNbM1XaKXpEb7BShYf2P1tkUmmcl8hyeG7Pj08Er7R9bNy6AufabywzJcOybQAtnD/c9DGw==} + /typescript-eslint@8.16.0(eslint@9.15.0)(typescript@5.6.3): + resolution: {integrity: sha512-wDkVmlY6O2do4V+lZd0GtRfbtXbeD0q9WygwXXSJnC1xorE8eqyC2L1tJimqpSeFrOzRlYtWnUp/uzgHQOgfBQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: + eslint: ^8.57.0 || ^9.0.0 typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 8.2.0(@typescript-eslint/parser@8.2.0)(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/parser': 8.2.0(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/utils': 8.2.0(eslint@9.14.0)(typescript@5.6.3) + '@typescript-eslint/eslint-plugin': 8.16.0(@typescript-eslint/parser@8.16.0)(eslint@9.15.0)(typescript@5.6.3) + '@typescript-eslint/parser': 8.16.0(eslint@9.15.0)(typescript@5.6.3) + '@typescript-eslint/utils': 8.16.0(eslint@9.15.0)(typescript@5.6.3) + eslint: 9.15.0 typescript: 5.6.3 transitivePeerDependencies: - - eslint - supports-color dev: false @@ -10905,12 +11021,24 @@ packages: hasBin: true dev: false + /typescript@5.6.1-rc: + resolution: {integrity: sha512-E3b2+1zEFu84jB0YQi9BORDjz9+jGbwwy1Zi3G0LUNw7a7cePUrHMRNy8aPh53nXpkFGVHSxIZo5vKTfYaFiBQ==} + engines: {node: '>=14.17'} + hasBin: true + dev: false + /typescript@5.6.3: resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} engines: {node: '>=14.17'} hasBin: true dev: false + /typescript@5.7.2: + resolution: {integrity: sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==} + engines: {node: '>=14.17'} + hasBin: true + dev: false + /ua-parser-js@0.7.39: resolution: {integrity: sha512-IZ6acm6RhQHNibSt7+c09hhvsKy9WUr4DVbeq9U8o71qxyYtJpQeDxQnMrVqnIFMLcQjHO0I9wgfO2vIahht4w==} hasBin: true @@ -10956,11 +11084,16 @@ packages: '@fastify/busboy': 2.1.1 dev: false - /undici@6.20.1: - resolution: {integrity: sha512-AjQF1QsmqfJys+LXfGTNum+qw4S88CojRInG/6t31W/1fk6G59s92bnAvGz5Cmur+kQv2SURXEvvudLmbrE8QA==} + /undici@6.21.0: + resolution: {integrity: sha512-BUgJXc752Kou3oOIuU1i+yZZypyZRqNPW0vqoMPl8VaoalSfeR0D8/t4iAS3yirs79SSMTxTag+ZC86uswv+Cw==} engines: {node: '>=18.17'} dev: false + /unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + dev: false + /unist-util-stringify-position@2.0.3: resolution: {integrity: sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==} dependencies: @@ -11049,11 +11182,6 @@ packages: hasBin: true dev: false - /uuid@9.0.1: - resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} - hasBin: true - dev: false - /v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} dev: false @@ -11065,12 +11193,17 @@ packages: spdx-expression-parse: 3.0.1 dev: false + /validate-npm-package-name@5.0.1: + resolution: {integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + dev: false + /vary@1.1.2: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} dev: false - /vite-node@1.6.0(@types/node@18.19.64): + /vite-node@1.6.0(@types/node@18.19.66): resolution: {integrity: sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -11079,7 +11212,7 @@ packages: debug: 4.3.7(supports-color@8.1.1) pathe: 1.1.2 picocolors: 1.1.1 - vite: 5.4.10(@types/node@18.19.64) + vite: 5.4.11(@types/node@18.19.66) transitivePeerDependencies: - '@types/node' - less @@ -11092,17 +11225,19 @@ packages: - terser dev: false - /vite-node@2.1.4(@types/node@18.19.64): - resolution: {integrity: sha512-kqa9v+oi4HwkG6g8ufRnb5AeplcRw8jUF6/7/Qz1qRQOXHImG8YnLbB+LLszENwFnoBl9xIf9nVdCFzNd7GQEg==} - engines: {node: ^18.0.0 || >=20.0.0} + /vite-node@2.1.6(@types/node@18.19.66)(tsx@4.19.2)(yaml@2.6.1): + resolution: {integrity: sha512-DBfJY0n9JUwnyLxPSSUmEePT21j8JZp/sR9n+/gBwQU6DcQOioPdb8/pibWfXForbirSagZCilseYIwaL3f95A==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true dependencies: cac: 6.7.14 debug: 4.3.7(supports-color@8.1.1) + es-module-lexer: 1.5.4 pathe: 1.1.2 - vite: 5.4.10(@types/node@18.19.64) + vite: 6.0.1(@types/node@18.19.66)(tsx@4.19.2)(yaml@2.6.1) transitivePeerDependencies: - '@types/node' + - jiti - less - lightningcss - sass @@ -11111,19 +11246,23 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: false - /vite-node@2.1.4(@types/node@20.17.6): - resolution: {integrity: sha512-kqa9v+oi4HwkG6g8ufRnb5AeplcRw8jUF6/7/Qz1qRQOXHImG8YnLbB+LLszENwFnoBl9xIf9nVdCFzNd7GQEg==} - engines: {node: ^18.0.0 || >=20.0.0} + /vite-node@2.1.6(@types/node@20.17.8): + resolution: {integrity: sha512-DBfJY0n9JUwnyLxPSSUmEePT21j8JZp/sR9n+/gBwQU6DcQOioPdb8/pibWfXForbirSagZCilseYIwaL3f95A==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true dependencies: cac: 6.7.14 debug: 4.3.7(supports-color@8.1.1) + es-module-lexer: 1.5.4 pathe: 1.1.2 - vite: 5.4.10(@types/node@20.17.6) + vite: 6.0.1(@types/node@20.17.8) transitivePeerDependencies: - '@types/node' + - jiti - less - lightningcss - sass @@ -11132,10 +11271,12 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: false - /vite@5.4.10(@types/node@18.19.64): - resolution: {integrity: sha512-1hvaPshuPUtxeQ0hsVH3Mud0ZanOLwVTneA1EgbAM5LhaZEqyPWGRQ7BtaMvUrTDeEaC8pxtj6a6jku3x4z6SQ==} + /vite@5.4.11(@types/node@18.19.66): + resolution: {integrity: sha512-c7jFQRklXua0mTzneGW9QVyxFjUgwcihC4bXEtujIo2ouWCe1Ajt/amn2PCxYnhYfd5k09JX3SB7OYWFKYqj8Q==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -11165,30 +11306,35 @@ packages: terser: optional: true dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 esbuild: 0.21.5 - postcss: 8.4.47 - rollup: 4.24.4 + postcss: 8.4.49 + rollup: 4.27.4 optionalDependencies: fsevents: 2.3.3 dev: false - /vite@5.4.10(@types/node@20.17.6): - resolution: {integrity: sha512-1hvaPshuPUtxeQ0hsVH3Mud0ZanOLwVTneA1EgbAM5LhaZEqyPWGRQ7BtaMvUrTDeEaC8pxtj6a6jku3x4z6SQ==} - engines: {node: ^18.0.0 || >=20.0.0} + /vite@6.0.1(@types/node@18.19.66)(tsx@4.19.2)(yaml@2.6.1): + resolution: {integrity: sha512-Ldn6gorLGr4mCdFnmeAOLweJxZ34HjKnDm4HGo6P66IEqTxQb36VEdFJQENKxWjupNfoIjvRUnswjn1hpYEpjQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true peerDependencies: - '@types/node': ^18.0.0 || >=20.0.0 + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' less: '*' lightningcss: ^1.21.0 sass: '*' sass-embedded: '*' stylus: '*' sugarss: '*' - terser: ^5.4.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 peerDependenciesMeta: '@types/node': optional: true + jiti: + optional: true less: optional: true lightningcss: @@ -11203,16 +11349,70 @@ packages: optional: true terser: optional: true + tsx: + optional: true + yaml: + optional: true dependencies: - '@types/node': 20.17.6 - esbuild: 0.21.5 - postcss: 8.4.47 - rollup: 4.24.4 + '@types/node': 18.19.66 + esbuild: 0.24.0 + postcss: 8.4.49 + rollup: 4.27.4 + tsx: 4.19.2 + yaml: 2.6.1 + optionalDependencies: + fsevents: 2.3.3 + dev: false + + /vite@6.0.1(@types/node@20.17.8): + resolution: {integrity: sha512-Ldn6gorLGr4mCdFnmeAOLweJxZ34HjKnDm4HGo6P66IEqTxQb36VEdFJQENKxWjupNfoIjvRUnswjn1hpYEpjQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + dependencies: + '@types/node': 20.17.8 + esbuild: 0.24.0 + postcss: 8.4.49 + rollup: 4.27.4 optionalDependencies: fsevents: 2.3.3 dev: false - /vitest@1.6.0(@types/node@18.19.64)(@vitest/browser@1.6.0): + /vitest@1.6.0(@types/node@18.19.66): resolution: {integrity: sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -11237,8 +11437,7 @@ packages: jsdom: optional: true dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 1.6.0(playwright@1.48.2)(vitest@1.6.0) + '@types/node': 18.19.66 '@vitest/expect': 1.6.0 '@vitest/runner': 1.6.0 '@vitest/snapshot': 1.6.0 @@ -11248,16 +11447,16 @@ packages: chai: 4.3.10 debug: 4.3.7(supports-color@8.1.1) execa: 8.0.1 - local-pkg: 0.5.0 - magic-string: 0.30.12 + local-pkg: 0.5.1 + magic-string: 0.30.14 pathe: 1.1.2 picocolors: 1.1.1 - std-env: 3.7.0 - strip-literal: 2.1.0 + std-env: 3.8.0 + strip-literal: 2.1.1 tinybench: 2.9.0 tinypool: 0.8.4 - vite: 5.4.10(@types/node@18.19.64) - vite-node: 1.6.0(@types/node@18.19.64) + vite: 5.4.11(@types/node@18.19.66) + vite-node: 1.6.0(@types/node@18.19.66) why-is-node-running: 2.3.0 transitivePeerDependencies: - less @@ -11270,15 +11469,15 @@ packages: - terser dev: false - /vitest@2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4): - resolution: {integrity: sha512-eDjxbVAJw1UJJCHr5xr/xM86Zx+YxIEXGAR+bmnEID7z9qWfoxpHw0zdobz+TQAFOLT+nEXz3+gx6nUJ7RgmlQ==} - engines: {node: ^18.0.0 || >=20.0.0} + /vitest@2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6): + resolution: {integrity: sha512-isUCkvPL30J4c5O5hgONeFRsDmlw6kzFEdLQHLezmDdKQHy8Ke/B/dgdTMEgU0vm+iZ0TjW8GuK83DiahBoKWQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' - '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 2.1.4 - '@vitest/ui': 2.1.4 + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + '@vitest/browser': 2.1.6 + '@vitest/ui': 2.1.6 happy-dom: '*' jsdom: '*' peerDependenciesMeta: @@ -11295,29 +11494,30 @@ packages: jsdom: optional: true dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/expect': 2.1.4 - '@vitest/mocker': 2.1.4(vite@5.4.10) - '@vitest/pretty-format': 2.1.4 - '@vitest/runner': 2.1.4 - '@vitest/snapshot': 2.1.4 - '@vitest/spy': 2.1.4 - '@vitest/utils': 2.1.4 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/expect': 2.1.6 + '@vitest/mocker': 2.1.6(vite@6.0.1) + '@vitest/pretty-format': 2.1.6 + '@vitest/runner': 2.1.6 + '@vitest/snapshot': 2.1.6 + '@vitest/spy': 2.1.6 + '@vitest/utils': 2.1.6 chai: 5.1.2 debug: 4.3.7(supports-color@8.1.1) expect-type: 1.1.0 - magic-string: 0.30.12 + magic-string: 0.30.14 pathe: 1.1.2 - std-env: 3.7.0 + std-env: 3.8.0 tinybench: 2.9.0 tinyexec: 0.3.1 - tinypool: 1.0.1 + tinypool: 1.0.2 tinyrainbow: 1.2.0 - vite: 5.4.10(@types/node@18.19.64) - vite-node: 2.1.4(@types/node@18.19.64) + vite: 6.0.1(@types/node@18.19.66)(tsx@4.19.2)(yaml@2.6.1) + vite-node: 2.1.6(@types/node@18.19.66)(tsx@4.19.2)(yaml@2.6.1) why-is-node-running: 2.3.0 transitivePeerDependencies: + - jiti - less - lightningcss - msw @@ -11327,17 +11527,142 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: false - /vitest@2.1.4(@types/node@20.17.6): - resolution: {integrity: sha512-eDjxbVAJw1UJJCHr5xr/xM86Zx+YxIEXGAR+bmnEID7z9qWfoxpHw0zdobz+TQAFOLT+nEXz3+gx6nUJ7RgmlQ==} - engines: {node: ^18.0.0 || >=20.0.0} + /vitest@2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6)(tsx@4.19.2): + resolution: {integrity: sha512-isUCkvPL30J4c5O5hgONeFRsDmlw6kzFEdLQHLezmDdKQHy8Ke/B/dgdTMEgU0vm+iZ0TjW8GuK83DiahBoKWQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' - '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 2.1.4 - '@vitest/ui': 2.1.4 + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + '@vitest/browser': 2.1.6 + '@vitest/ui': 2.1.6 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + dependencies: + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/expect': 2.1.6 + '@vitest/mocker': 2.1.6(vite@6.0.1) + '@vitest/pretty-format': 2.1.6 + '@vitest/runner': 2.1.6 + '@vitest/snapshot': 2.1.6 + '@vitest/spy': 2.1.6 + '@vitest/utils': 2.1.6 + chai: 5.1.2 + debug: 4.3.7(supports-color@8.1.1) + expect-type: 1.1.0 + magic-string: 0.30.14 + pathe: 1.1.2 + std-env: 3.8.0 + tinybench: 2.9.0 + tinyexec: 0.3.1 + tinypool: 1.0.2 + tinyrainbow: 1.2.0 + vite: 6.0.1(@types/node@18.19.66)(tsx@4.19.2)(yaml@2.6.1) + vite-node: 2.1.6(@types/node@18.19.66)(tsx@4.19.2)(yaml@2.6.1) + why-is-node-running: 2.3.0 + transitivePeerDependencies: + - jiti + - less + - lightningcss + - msw + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + dev: false + + /vitest@2.1.6(@types/node@18.19.66)(tsx@4.19.2)(yaml@2.6.1): + resolution: {integrity: sha512-isUCkvPL30J4c5O5hgONeFRsDmlw6kzFEdLQHLezmDdKQHy8Ke/B/dgdTMEgU0vm+iZ0TjW8GuK83DiahBoKWQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + '@vitest/browser': 2.1.6 + '@vitest/ui': 2.1.6 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + dependencies: + '@types/node': 18.19.66 + '@vitest/expect': 2.1.6 + '@vitest/mocker': 2.1.6(vite@6.0.1) + '@vitest/pretty-format': 2.1.6 + '@vitest/runner': 2.1.6 + '@vitest/snapshot': 2.1.6 + '@vitest/spy': 2.1.6 + '@vitest/utils': 2.1.6 + chai: 5.1.2 + debug: 4.3.7(supports-color@8.1.1) + expect-type: 1.1.0 + magic-string: 0.30.14 + pathe: 1.1.2 + std-env: 3.8.0 + tinybench: 2.9.0 + tinyexec: 0.3.1 + tinypool: 1.0.2 + tinyrainbow: 1.2.0 + vite: 6.0.1(@types/node@18.19.66)(tsx@4.19.2)(yaml@2.6.1) + vite-node: 2.1.6(@types/node@18.19.66)(tsx@4.19.2)(yaml@2.6.1) + why-is-node-running: 2.3.0 + transitivePeerDependencies: + - jiti + - less + - lightningcss + - msw + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + dev: false + + /vitest@2.1.6(@types/node@20.17.8): + resolution: {integrity: sha512-isUCkvPL30J4c5O5hgONeFRsDmlw6kzFEdLQHLezmDdKQHy8Ke/B/dgdTMEgU0vm+iZ0TjW8GuK83DiahBoKWQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + '@vitest/browser': 2.1.6 + '@vitest/ui': 2.1.6 happy-dom: '*' jsdom: '*' peerDependenciesMeta: @@ -11354,28 +11679,29 @@ packages: jsdom: optional: true dependencies: - '@types/node': 20.17.6 - '@vitest/expect': 2.1.4 - '@vitest/mocker': 2.1.4(vite@5.4.10) - '@vitest/pretty-format': 2.1.4 - '@vitest/runner': 2.1.4 - '@vitest/snapshot': 2.1.4 - '@vitest/spy': 2.1.4 - '@vitest/utils': 2.1.4 + '@types/node': 20.17.8 + '@vitest/expect': 2.1.6 + '@vitest/mocker': 2.1.6(vite@6.0.1) + '@vitest/pretty-format': 2.1.6 + '@vitest/runner': 2.1.6 + '@vitest/snapshot': 2.1.6 + '@vitest/spy': 2.1.6 + '@vitest/utils': 2.1.6 chai: 5.1.2 debug: 4.3.7(supports-color@8.1.1) expect-type: 1.1.0 - magic-string: 0.30.12 + magic-string: 0.30.14 pathe: 1.1.2 - std-env: 3.7.0 + std-env: 3.8.0 tinybench: 2.9.0 tinyexec: 0.3.1 - tinypool: 1.0.1 + tinypool: 1.0.2 tinyrainbow: 1.2.0 - vite: 5.4.10(@types/node@20.17.6) - vite-node: 2.1.4(@types/node@20.17.6) + vite: 6.0.1(@types/node@20.17.8) + vite-node: 2.1.6(@types/node@20.17.8) why-is-node-running: 2.3.0 transitivePeerDependencies: + - jiti - less - lightningcss - msw @@ -11385,6 +11711,8 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: false /void-elements@2.0.1: @@ -11465,12 +11793,12 @@ packages: stackback: 0.0.2 dev: false - /winston-transport@4.8.0: - resolution: {integrity: sha512-qxSTKswC6llEMZKgCQdaWgDuMJQnhuvF5f2Nk3SNXc4byfQ+voo2mX1Px9dkNOuR8p0KAjfPG29PuYUSIb+vSA==} + /winston-transport@4.9.0: + resolution: {integrity: sha512-8drMJ4rkgaPo1Me4zD/3WLfI/zPdA9o2IipKODunnGDcuqbHwjsbB79ylv04LCGGzU0xQ6vTznOMpQGaLhhm6A==} engines: {node: '>= 12.0.0'} dependencies: - logform: 2.6.1 - readable-stream: 4.5.2 + logform: 2.7.0 + readable-stream: 3.6.2 triple-beam: 1.4.1 dev: false @@ -11593,8 +11921,8 @@ packages: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} dev: false - /yaml@2.6.0: - resolution: {integrity: sha512-a6ae//JvKDEra2kdi1qzCyrJW/WZCgFi8ydDV+eXExl95t+5R+ijnqHJbz9tmMh8FUjx3iv2fCQ4dclAQlO2UQ==} + /yaml@2.6.1: + resolution: {integrity: sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==} engines: {node: '>= 14'} hasBin: true dev: false @@ -11706,14 +12034,14 @@ packages: name: '@rush-temp/abort-controller' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 - playwright: 1.48.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -11731,13 +12059,15 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-P1oxadoKIWON1x9m1i9h+1RyiSH2YeY8l2+8s7k2uGuZ/ylJa3PaI5o20zO2ed4wSYcdjy9Sdouct+ftanZ2lQ==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-T2u6/U1Taf+UQZFVKjbe4SUjxgjzsIZ2n95+WKn7yu+qPwj7vuEiHHRslAZQGPIZ4+2JTj8evtzBkNtzdc8xug==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -11746,16 +12076,16 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.4) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.4) @@ -11766,7 +12096,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -11780,7 +12110,7 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-q7yKHSXex1EhjzFp0wJb5loAIJodmPwkV9HXkEH5441wUhf8yG6xpOqgAdhqUIWNAOnGg/AP+m3aFc5wJti8Rw==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-Vg9Ig9UyZPqzWR18l8yeVOm7lvMJNOmGjQNv+faB+FnfTCeORBZ/xEyXBM/gIJyaB1pM9IIA6RoAJ2yp3NU6LA==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: @@ -11789,18 +12119,18 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 autorest: 3.7.1 chai: 4.3.10 - csv-parse: 5.5.6 + csv-parse: 5.6.0 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -11809,7 +12139,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -11823,44 +12153,43 @@ packages: dev: false file:projects/ai-content-safety.tgz: - resolution: {integrity: sha512-tGC3S8ycR2jDMB7rX2Bj0xaUAFQ+/cgzFP+H/C7vOHABTA/LtlbJ+S67zVPTNiqfN3WQCq2Gpur69JlLkipENQ==, tarball: file:projects/ai-content-safety.tgz} + resolution: {integrity: sha512-wYg56r/F6an8nPb6NlNYV4IkMT+vOk6QewQFK3Gef2DuAHLtxmq5feJG247k4z4jVkEE2pf9BOC3dLPGp/rPCQ==, tarball: file:projects/ai-content-safety.tgz} name: '@rush-temp/ai-content-safety' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.3 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.4.0 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 + rollup-plugin-copy: 3.5.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/ai-document-intelligence.tgz: @@ -11868,16 +12197,16 @@ packages: name: '@rush-temp/ai-document-intelligence' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 - prettier: 3.3.3 + eslint: 9.15.0 + playwright: 1.49.0 + prettier: 3.4.1 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -11895,86 +12224,84 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/ai-document-translator.tgz: - resolution: {integrity: sha512-y7JZQ/Mi46HtLeR4IJQ8gtPpFbp1H+8s3XZniOxnhXzUkl/X2nwm5BjeHfi4v7HqIItJLwd1UZSEJHIY+a7RyA==, tarball: file:projects/ai-document-translator.tgz} + resolution: {integrity: sha512-MVtb7N/AgQW4ZKsGGYz5mXyBCy3FCBQfpi/IVVe4jGEUoQMkqInzp3Qr2czfYJF1Aw5m9mFu04z/qufBOc8mkA==, tarball: file:projects/ai-document-translator.tgz} name: '@rush-temp/ai-document-translator' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-json-preprocessor: 0.3.3(karma@6.4.4) - karma-json-to-file-reporter: 1.0.1 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/ai-form-recognizer.tgz: - resolution: {integrity: sha512-vnGDhMuYikI6gI5jmqidEx/Lq2ZNWJXXSoDt0Uj+vdi19kr22NlzxAsoIqRScrzNdNfNxmLJ6L+syONfpB7F5g==, tarball: file:projects/ai-form-recognizer.tgz} + resolution: {integrity: sha512-EBXzinBP+gU+pPWHZxAyHwbHVnUEwNUtT5zKziC9PBpBJAhN+If2ydDfSzm60VgY0m6xVuiq68UZB8bF7+TE1Q==, tarball: file:projects/ai-form-recognizer.tgz} name: '@rush-temp/ai-form-recognizer' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@rollup/plugin-node-resolve': 15.3.0(rollup@4.24.4) + '@rollup/plugin-node-resolve': 15.3.0(rollup@4.27.4) '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 chai: 4.3.10 chai-as-promised: 7.1.2(chai@4.3.10) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) karma-sourcemap-loader: 0.3.8 - magic-string: 0.30.12 + magic-string: 0.30.14 mocha: 10.8.2 nyc: 17.1.0 - prettier: 3.3.3 - rollup: 4.24.4 + prettier: 3.4.1 + rollup: 4.27.4 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -11995,17 +12322,17 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@opentelemetry/api': 1.9.0 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 source-map-support: 0.5.21 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -12023,13 +12350,15 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/ai-language-conversations.tgz: - resolution: {integrity: sha512-1wUiycseCzUZWknJVYMl8CcvWZv0wz2QM7TbfFIkgzF76cKLag/iQdcRlz2Fqrec1an2lmbJdoncbrqQ/iQt5A==, tarball: file:projects/ai-language-conversations.tgz} + resolution: {integrity: sha512-XI06FmsZFJNP5OI6JTMo5ugJrKcepGhXlyGY8VwVDYlQDKNN+DUR0eK+J6hif3QS0RWZnhCZURqICMFrxjFErw==, tarball: file:projects/ai-language-conversations.tgz} name: '@rush-temp/ai-language-conversations' version: 0.0.0 dependencies: @@ -12038,18 +12367,18 @@ packages: '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 chai: 4.3.10 chai-as-promised: 7.1.2(chai@4.3.10) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -12059,7 +12388,7 @@ packages: nyc: 17.1.0 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12073,30 +12402,29 @@ packages: dev: false file:projects/ai-language-text.tgz: - resolution: {integrity: sha512-PqM9ui81lmdhXEtP8GIAjLVcVvlupuMDmN23SvaEKLDAwj7x83KNuxMXUC03nuAu7GGw7f6duJQPj59nEyUXig==, tarball: file:projects/ai-language-text.tgz} + resolution: {integrity: sha512-9X7PLNIh261De3RD0N8VbHh/u96Gc6j3eiQEzgLeakHXl1UJGx6p97Gpe/SOqxt75fdsXx6mA3BJwpoayTD1KQ==, tarball: file:projects/ai-language-text.tgz} name: '@rush-temp/ai-language-text' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@azure/storage-blob': 12.25.0 '@types/chai': 4.3.20 '@types/chai-as-promised': 7.1.8 '@types/decompress': 4.2.7 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 chai: 4.3.10 chai-as-promised: 7.1.2(chai@4.3.10) decompress: 4.2.1 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -12106,7 +12434,7 @@ packages: nyc: 17.1.0 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12126,15 +12454,15 @@ packages: dependencies: '@azure-rest/core-client': 1.4.0 '@azure/core-lro': 2.7.2 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 autorest: 3.7.1 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 mocha: 10.8.2 nyc: 17.1.0 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12145,7 +12473,7 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-tMpocDPS0zFDGjw7GUHbdqcOPEMWd3KM6fyio19pGdgqOK/YbBxJqHo+jv1Ev+WmtY9dgEH0wFAQdhcgS8xL8A==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-jn39f8RDR/vv7W3R88kr3FmheVJBS+lAdSmlatM6LyGIpm4/IgXKlb/IDE+DtHtkmntkXzGTngDWHhoTYn2l7A==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: @@ -12153,18 +12481,18 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 chai: 4.3.10 chai-as-promised: 7.1.2(chai@4.3.10) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -12173,7 +12501,7 @@ packages: nyc: 17.1.0 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12187,7 +12515,7 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-OW/5GziDDHpKVqzCGt8geKm0PUIWynI32o8r7f5L3RMxiuJ0TvDzhGEVvBSc3pMpkAPhCgMudul+MH8dYgPQyw==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-ZMOZvwcAG+Gg2dwnR+a/4y5KcuGWw3zdgs7whycUlFpTfLNRJ7i9rCEN2uo4oQZITtC1XGyWDigdkgLMZxJgEA==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: @@ -12196,18 +12524,18 @@ packages: '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 chai: 4.3.10 chai-as-promised: 7.1.2(chai@4.3.10) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -12217,7 +12545,7 @@ packages: nyc: 17.1.0 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12231,25 +12559,24 @@ packages: dev: false file:projects/ai-translation-document.tgz: - resolution: {integrity: sha512-tczwZFFKsT8A5tYnAH8FLQ1cpw9B0tFIiAVb5wPaI40o9Rx3gBKBxZ7mGU9lPdXwAy03uyqtXOAwr1JzaNTj4A==, tarball: file:projects/ai-translation-document.tgz} + resolution: {integrity: sha512-yoBCF7jU6tqs56zEWqmxSrQFUyANWDN6MON5uafyNkK1R7Qno9wGNpCSqMOJUZ//Tkc82O0PXW7RAuw7l8VpIw==, tarball: file:projects/ai-translation-document.tgz} name: '@rush-temp/ai-translation-document' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 - '@azure/storage-blob': 12.25.0 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 autorest: 3.7.1 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -12258,7 +12585,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12272,62 +12599,60 @@ packages: dev: false file:projects/ai-translation-text.tgz: - resolution: {integrity: sha512-sKlY84hVWOP+lM3tsInKK2iJWx8pCCu0f010wiGj85UvYFdfL54aFoFMfHGrkHO4HNCRM/VZdrpcCDKMOYbclw==, tarball: file:projects/ai-translation-text.tgz} + resolution: {integrity: sha512-3XHDssLX0ri0CjiccRr82uxLp55vWhz/mOIB2bz6zjrGD7QRPSsvIjzh1enrZwVX1/w73UcBKtPMxioOvDyfJA==, tarball: file:projects/ai-translation-text.tgz} name: '@rush-temp/ai-translation-text' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/ai-vision-face.tgz: - resolution: {integrity: sha512-ffejZRSIsy9IatYOLMHRiNiN41hBEDAvzSJSsCPu2DNp2xhHiKVhpn1v97MJwbV/SoLQM9ugMnbZO4bPXt5LZw==, tarball: file:projects/ai-vision-face.tgz} + resolution: {integrity: sha512-ktM3Ox3D54Pau2C1Ggi84dOAExqiKEoH0JI9PoVUmaT0UssSCuhz9Til/3cA+2MlIJ2+BYTbFuuh6QjyafFhlA==, tarball: file:projects/ai-vision-face.tgz} name: '@rush-temp/ai-vision-face' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 - prettier: 3.3.3 + eslint: 9.15.0 + playwright: 1.49.0 + prettier: 3.4.1 tshy: 1.18.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -12345,50 +12670,50 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/ai-vision-image-analysis.tgz: - resolution: {integrity: sha512-S8X1xcgy30xsK50MXyZw4Sn8GBjkNUIaR80JvUdEWNPF/+qlf9wuwilUv8rDmQZ+7SZ3G9LkaWjSeIcPLJzaQw==, tarball: file:projects/ai-vision-image-analysis.tgz} + resolution: {integrity: sha512-wNM3J9/H4ST0bOPIsjtDoTIy6xu2fdb/fLJRuny5XVr+L0QPIsjzzhr9ZW6c8ngTrYlamlKDXhF9a0Tu0pNhGg==, tarball: file:projects/ai-vision-image-analysis.tgz} name: '@rush-temp/ai-vision-image-analysis' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 20.10.8 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.3 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.4.0 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@20.10.8)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/api-management-custom-widgets-scaffolder.tgz: @@ -12396,24 +12721,24 @@ packages: name: '@rush-temp/api-management-custom-widgets-scaffolder' version: 0.0.0 dependencies: - '@rollup/plugin-node-resolve': 15.3.0(rollup@4.24.4) + '@rollup/plugin-node-resolve': 15.3.0(rollup@4.27.4) '@types/inquirer': 9.0.7 '@types/mustache': 4.2.5 - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/yargs': 17.0.33 '@types/yargs-parser': 21.0.3 - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) chalk: 4.1.2 - eslint: 9.14.0 + eslint: 9.15.0 glob: 10.4.5 inquirer: 9.3.7 - magic-string: 0.30.12 + magic-string: 0.30.14 mustache: 4.2.0 - prettier: 3.3.3 - rollup: 4.24.4 + prettier: 3.4.1 + rollup: 4.27.4 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) yargs: 17.7.2 yargs-parser: 21.1.1 transitivePeerDependencies: @@ -12432,24 +12757,25 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: false file:projects/api-management-custom-widgets-tools.tgz: - resolution: {integrity: sha512-+ezPIFcLbT94W1qUmvCf/8ZmRXgcIp4ZPWPvZChsGG05CeBCDrZecSEeO58F3vnVQDhYQAwOUwmqhgYJanVg0g==, tarball: file:projects/api-management-custom-widgets-tools.tgz} + resolution: {integrity: sha512-dMAIacqzLU3uGgVdn+A8r+/Vv7vC4Emr0Z0T3lCVhq7JoQmL3I7yyUueYdP6tPVYSGzko9MdRYXA11RvB9GHPA==, tarball: file:projects/api-management-custom-widgets-tools.tgz} name: '@rush-temp/api-management-custom-widgets-tools' version: 0.0.0 dependencies: '@azure-rest/core-client': 1.4.0 - '@azure/storage-blob': 12.25.0 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 mime: 4.0.4 - playwright: 1.48.2 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -12467,9 +12793,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/app-configuration.tgz: @@ -12478,16 +12806,16 @@ packages: version: 0.0.0 dependencies: '@azure/core-lro': 2.7.2 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - nock: 13.5.5 - playwright: 1.48.2 + eslint: 9.15.0 + nock: 13.5.6 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -12505,9 +12833,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/arm-advisor.tgz: @@ -12518,12 +12848,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12542,11 +12872,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12565,11 +12895,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12588,12 +12918,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12612,12 +12942,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12636,12 +12966,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -12652,23 +12982,28 @@ packages: dev: false file:projects/arm-appconfiguration.tgz: - resolution: {integrity: sha512-EOuGlK//o9Q6ZTfGkNQX+S9NfNafcPyPbkIYHh+oX87R0Y9SX9QEhomS3R5QmMdJkSat/H6MdHbjuUxgmwFzUA==, tarball: file:projects/arm-appconfiguration.tgz} + resolution: {integrity: sha512-5sEU/bwa68Xuicl7B/9ZrSURgbVEcWd2lQWO7Hq6rhxyn8z1VvORi3MOPmPVE+94JTYG6Du0fLQPdt3DuwQkuQ==, tarball: file:projects/arm-appconfiguration.tgz} name: '@rush-temp/arm-appconfiguration' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 - '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 + cross-env: 7.0.3 dotenv: 16.4.5 + mkdirp: 3.0.1 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + rimraf: 5.0.10 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.5.4) tslib: 2.8.1 - typescript: 5.6.3 + tsx: 4.19.2 + typescript: 5.5.4 + uglify-js: 3.19.3 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -12684,12 +13019,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -12707,11 +13042,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12730,12 +13065,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12754,12 +13089,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -12779,12 +13114,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12794,7 +13129,7 @@ packages: dev: false file:projects/arm-appservice.tgz: - resolution: {integrity: sha512-/12+8M/wSTl1dLbitKDDZ5P8wc/AsIWYcxrBc32J4Q5CuJpuB/3HLZzcpwRxzVSA/cU42CkFJZCeqP2NLD8X8g==, tarball: file:projects/arm-appservice.tgz} + resolution: {integrity: sha512-6FXHqHZEpNPMprA7DzLLcvlAWLcY5v2GFnmHOLGkE9wxv/PPeFA8c17G9D1CUYkWSH/Ig6xWjIce/+uLNkGHqw==, tarball: file:projects/arm-appservice.tgz} name: '@rush-temp/arm-appservice' version: 0.0.0 dependencies: @@ -12803,17 +13138,17 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 autorest: 3.7.1 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -12822,7 +13157,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12845,12 +13180,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12867,11 +13202,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12888,12 +13223,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12912,12 +13247,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12934,12 +13269,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12958,12 +13293,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -12982,12 +13317,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -13007,11 +13342,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13028,11 +13363,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13051,12 +13386,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -13076,12 +13411,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13099,12 +13434,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -13123,12 +13458,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -13148,11 +13483,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13171,12 +13506,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13195,12 +13530,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13217,11 +13552,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13238,11 +13573,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13262,12 +13597,12 @@ packages: '@azure/arm-cosmosdb': 16.0.0-beta.6 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13286,12 +13621,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13308,12 +13643,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13330,11 +13665,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13351,11 +13686,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13374,12 +13709,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13399,12 +13734,12 @@ packages: '@azure/arm-network': 32.2.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -13424,12 +13759,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13439,7 +13774,7 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-3Hd7irUdOomCcq/NBcEtZ8W5Zs8bVTdyJRdHEQ8AtaWeeTDXmb53L23rv7FdO45wdCRcSV3Bj3hDUTmzyyu4cA==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-xO63sO30JAuGb4JrtytEiqFmCmFy9fbF1koz77ZZGIXKNT1xCz7ojfyx/bvw1BqQOn/TbTonibqI0BbGYDYAZw==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: @@ -13449,17 +13784,17 @@ packages: '@azure/arm-network': 32.2.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 autorest: 3.7.1 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -13468,7 +13803,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13482,24 +13817,25 @@ packages: dev: false file:projects/arm-computefleet.tgz: - resolution: {integrity: sha512-6/T4PDvH2k2L4yVEAs/wyfYf8xhVHNvXNMlMFbDM+VxiLN37O2HI+uqTa6AGqx7qcPzRjyBZfTPAcUK8HI7G0A==, tarball: file:projects/arm-computefleet.tgz} + resolution: {integrity: sha512-KNacYssZkHv1/lsUIsCMJ1wsVZw6ssf4feH9W6Pmnz8R/K0rHDiF7E7ambEa+euPWPT6kHal7J9fjxAA1rOIWg==, tarball: file:projects/arm-computefleet.tgz} name: '@rush-temp/arm-computefleet' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 8.57.1 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' - bufferutil - happy-dom + - jiti - jsdom - less - lightningcss @@ -13511,31 +13847,34 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/arm-computeschedule.tgz: - resolution: {integrity: sha512-GgVAVrMUsXbo7MWQG9Ioi4dWOg1pNvhetLZpUXa92AyTgIK8WHuL3EqGpGjTy9HO1YYRC6v/YBho1KKF33vgUw==, tarball: file:projects/arm-computeschedule.tgz} + resolution: {integrity: sha512-LikjGLDhppCKtO9/RI42l+TovuXgyFifllzgtNrGC3+mkan99xV0Vw/2jCqTL0v+HrFXKsPwrHzvtaWrGfJ14g==, tarball: file:projects/arm-computeschedule.tgz} name: '@rush-temp/arm-computeschedule' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 8.57.1 - playwright: 1.48.2 - prettier: 3.3.3 + eslint: 9.15.0 + playwright: 1.49.0 + prettier: 3.4.1 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' - bufferutil - happy-dom + - jiti - jsdom - less - lightningcss @@ -13547,9 +13886,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/arm-confidentialledger.tgz: @@ -13562,13 +13903,13 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 esm: 3.2.25 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13587,12 +13928,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13601,6 +13942,46 @@ packages: - supports-color dev: false + file:projects/arm-connectedcache.tgz: + resolution: {integrity: sha512-br4EU3We4o4ri3cAJhHvkAh/yEeu924X37t899KkKtNmqgI2vP6YX09aWowD9KalMEKuxsXOJtVKuX8IfIa2gQ==, tarball: file:projects/arm-connectedcache.tgz} + name: '@rush-temp/arm-connectedcache' + version: 0.0.0 + dependencies: + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + dotenv: 16.4.5 + eslint: 9.15.0 + playwright: 1.49.0 + tshy: 2.0.1 + tslib: 2.8.1 + typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) + transitivePeerDependencies: + - '@edge-runtime/vm' + - '@vitest/ui' + - bufferutil + - happy-dom + - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - utf-8-validate + - vite + - webdriverio + - yaml + dev: false + file:projects/arm-connectedvmware.tgz: resolution: {integrity: sha512-vhQ7ZhjOJ0BmjhBsyAvkQLyF9VgXGOcW83y+4X2y03VpkYuTF4nh/lREFr87lhx6j9IGAZHVMoLNIzwMiqpMTg==, tarball: file:projects/arm-connectedvmware.tgz} name: '@rush-temp/arm-connectedvmware' @@ -13611,12 +13992,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13633,12 +14014,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13656,12 +14037,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -13672,24 +14053,25 @@ packages: dev: false file:projects/arm-containerorchestratorruntime.tgz: - resolution: {integrity: sha512-5SpApVxYGPizH4rRvkMlLK55bj9rkVVfoG5w5mBeB2uZX+mCY9g0g5j4gKf1g4rmbZ3HQgORWuE8TxmdLTdNHg==, tarball: file:projects/arm-containerorchestratorruntime.tgz} + resolution: {integrity: sha512-jYkdD3JE46i6HXD5rnOW9rRu6d7u3bSM/OFtK8BXKUM/OHVIDZL5zJjAb5wE669ZO02Pp6D9+sNPrMXgapIZpw==, tarball: file:projects/arm-containerorchestratorruntime.tgz} name: '@rush-temp/arm-containerorchestratorruntime' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 8.57.1 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' - bufferutil - happy-dom + - jiti - jsdom - less - lightningcss @@ -13701,9 +14083,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/arm-containerregistry.tgz: @@ -13716,12 +14100,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13731,20 +14115,21 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-utGcUU8MbJLw0BBSCqXOAcfogm+NlZkn+iV2CzTCLnifBSaydocD7nnCyjChZMhHXIUs4vIp0cEHAM2dVA+vyw==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-s7pcgXSyMJcxDuhA9Y7aavPBCQ5h/TowVP7Ni7LsaWMm55Dges6xYWeVwZ13VPtab99BVIc0/E5ZWrd+VXmj+Q==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -13755,7 +14140,7 @@ packages: dev: false file:projects/arm-containerservice.tgz: - resolution: {integrity: sha512-sLPyIdVuNXcomUciuzbT8SaouI2o62FklL4Bf88gE8WdfNJkp89eDdAhIF/jpuZ7HgC4nY40uHmIoEeLTg/EXA==, tarball: file:projects/arm-containerservice.tgz} + resolution: {integrity: sha512-jeP/daGRsku5ktfFyNC3UhrPtnr1i4xqLPMsKKSWMZhy0u1AQIoB8JNak9YDZScQM/+oE2XKtzirERGMdA35DQ==, tarball: file:projects/arm-containerservice.tgz} name: '@rush-temp/arm-containerservice' version: 0.0.0 dependencies: @@ -13764,17 +14149,17 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 autorest: 3.7.1 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -13783,7 +14168,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13805,12 +14190,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -13829,12 +14214,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -13854,12 +14239,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13878,12 +14263,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13902,11 +14287,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13925,12 +14310,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13946,16 +14331,16 @@ packages: dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 - '@microsoft/api-extractor': 7.47.11(@types/node@18.19.64) + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mkdirp: 3.0.1 mocha: 10.8.2 rimraf: 5.0.10 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.5.4) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.5.4) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.5.4 @@ -13975,12 +14360,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -13999,12 +14384,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14023,11 +14408,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14046,12 +14431,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14070,11 +14455,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14093,12 +14478,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14116,12 +14501,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -14141,11 +14526,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14164,11 +14549,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14187,12 +14572,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -14212,12 +14597,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14236,11 +14621,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14257,12 +14642,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14281,13 +14666,13 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 esm: 3.2.25 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14304,12 +14689,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14328,12 +14713,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14352,13 +14737,13 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 esm: 3.2.25 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14377,12 +14762,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14392,7 +14777,7 @@ packages: dev: false file:projects/arm-devopsinfrastructure.tgz: - resolution: {integrity: sha512-zm1zJUacHQHrVisNSNKl6fuuO1JO3qpkdcnAIv2TeISXJYJFxIkSTyv70j+TIUa0C/c9MWgtNaCNp35yGhnc0g==, tarball: file:projects/arm-devopsinfrastructure.tgz} + resolution: {integrity: sha512-26NUbY9nDuqLqDF06QZFrMoNdmuI3nmYfTx5FjpwRcMR+jJobCAbvrAD5AKLz8AM1cdbls6LoEXEEd9XmsgALA==, tarball: file:projects/arm-devopsinfrastructure.tgz} name: '@rush-temp/arm-devopsinfrastructure' version: 0.0.0 dependencies: @@ -14400,20 +14785,45 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) chai: 4.3.10 dotenv: 16.4.5 + eslint: 8.57.1 esm: 3.2.25 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) + tshy: 2.0.1 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' + - bufferutil + - happy-dom + - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx + - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/arm-devspaces.tgz: @@ -14426,11 +14836,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14449,11 +14859,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14472,12 +14882,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14496,12 +14906,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14519,12 +14929,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -14543,12 +14953,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -14568,11 +14978,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14591,12 +15001,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14606,20 +15016,21 @@ packages: dev: false file:projects/arm-edgezones.tgz: - resolution: {integrity: sha512-hlRR+75WmANhwHnU5gzFbJ1By/hPhUGbG+KM31bI5fJSmRkCkiOOD16GzH1zadmURbWYYXfhtuZwpLr/0Iu+tg==, tarball: file:projects/arm-edgezones.tgz} + resolution: {integrity: sha512-7Lx+GC3XiUXQHYTMYyxOJZ1oNmYQO17cc4GvuXpm6dv7siGj5rCidZiebA53JEWr/TspcctIeGnG8AHLAVsBYw==, tarball: file:projects/arm-edgezones.tgz} name: '@rush-temp/arm-edgezones' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 - prettier: 3.3.3 + eslint: 9.15.0 + playwright: 1.49.0 + tshy: 2.0.1 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -14637,9 +15048,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/arm-education.tgz: @@ -14650,12 +15063,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14673,12 +15086,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -14697,12 +15110,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -14722,12 +15135,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14746,12 +15159,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14771,12 +15184,12 @@ packages: '@azure/arm-network': 32.2.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -14796,12 +15209,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14811,25 +15224,26 @@ packages: dev: false file:projects/arm-fabric.tgz: - resolution: {integrity: sha512-SFH1vDEKPQWOWsgrtk66s3+ZPKzVKFLD1961AAe/XLzHP6vNizf6JyCAOpS3Xh4/os4CeocBa9vT+CgA9UQBZg==, tarball: file:projects/arm-fabric.tgz} + resolution: {integrity: sha512-ICWVjR6hU0iagAV8KUf4dINj8JVMdphqd+y6bJH97q45JuzNuOdSFTw4XA/cI7bZn6OuanDSpwQN0JIFlgZZnw==, tarball: file:projects/arm-fabric.tgz} name: '@rush-temp/arm-fabric' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 8.57.1 - playwright: 1.48.2 - prettier: 3.3.3 + eslint: 9.15.0 + playwright: 1.49.0 + prettier: 3.4.1 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' - bufferutil - happy-dom + - jiti - jsdom - less - lightningcss @@ -14841,9 +15255,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/arm-features.tgz: @@ -14854,11 +15270,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14875,12 +15291,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14899,12 +15315,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14923,12 +15339,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14945,13 +15361,13 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 esm: 3.2.25 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14970,11 +15386,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -14984,23 +15400,28 @@ packages: dev: false file:projects/arm-hardwaresecuritymodules.tgz: - resolution: {integrity: sha512-V1b8zbcdRvBsq+r2I/u8qXpYxoeckYtmwXffPbucFXhGoCYU/bceb36+TPshbnlo7lVtDJdAA7PgMSDp7p0blQ==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} + resolution: {integrity: sha512-o/8lBLIUz3s8F+IAf4zlTBEe+By1vGq0RbaMAyTb7xGkKxZW9V7LBEeQ3ZdbhYYbWgF81BabbJV3/2HC2RUwGQ==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} name: '@rush-temp/arm-hardwaresecuritymodules' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 - '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 + cross-env: 7.0.3 dotenv: 16.4.5 + mkdirp: 3.0.1 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + rimraf: 5.0.10 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.5.4) tslib: 2.8.1 - typescript: 5.6.3 + tsx: 4.19.2 + typescript: 5.5.4 + uglify-js: 3.19.3 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -15017,12 +15438,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -15041,12 +15462,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -15066,11 +15487,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15089,12 +15510,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15104,20 +15525,22 @@ packages: dev: false file:projects/arm-healthdataaiservices.tgz: - resolution: {integrity: sha512-Fx9bTzlUJwLWjfbKxpAlDJezkzYhmcPwAGPSzRpgi2L0spP9j5d/bVG3x578z2RqRQ5ztW4nReWoTVV17uLkdQ==, tarball: file:projects/arm-healthdataaiservices.tgz} + resolution: {integrity: sha512-dJpfHl/LBPMZLu5rkXUEgX979cUA42TJ6FTsucJK5453bRpMnVioKezlFOUIxPkcVoS7WTd+aYg1kwLDhzprfg==, tarball: file:projects/arm-healthdataaiservices.tgz} name: '@rush-temp/arm-healthdataaiservices' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 - prettier: 3.3.3 + eslint: 8.57.1 + playwright: 1.49.0 + prettier: 3.4.1 + tshy: 2.0.1 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -15135,26 +15558,29 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/arm-hybridcompute.tgz: - resolution: {integrity: sha512-cEQb5jxuTRbVMsRDFbH2ZMgGF7YC+dBR1Iw3/+Jkwwzy0zUK97csQJaStktVO7m7n8k7uCODOrU7vdRV0qkOgA==, tarball: file:projects/arm-hybridcompute.tgz} + resolution: {integrity: sha512-IxFMCCeH0D2P6u+4Vwi9ROrWBKeO0DJEfs2jxyfJnrGNMrRKAWfplx0QVZY6ETK5Thjlm3myTMffxO2BT5PBiA==, tarball: file:projects/arm-hybridcompute.tgz} name: '@rush-temp/arm-hybridcompute' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -15172,12 +15598,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15196,12 +15622,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15220,11 +15646,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15243,12 +15669,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15268,12 +15694,12 @@ packages: '@azure/arm-compute': 21.6.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -15293,12 +15719,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -15318,11 +15744,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15339,12 +15765,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15363,12 +15789,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15387,12 +15813,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15402,24 +15828,25 @@ packages: dev: false file:projects/arm-iotoperations.tgz: - resolution: {integrity: sha512-t5QJr31o81EF3dX5/7stmGinUIk/yNXXkq27iowhAgZIPcKV27V9MxHmvsmnvBnZR5kPndkRaqnJl+gDavTCFw==, tarball: file:projects/arm-iotoperations.tgz} + resolution: {integrity: sha512-cSjFFCKmI/3TAVPk7BHWbSTCBg6JOVJ3jvJURbPxmeiIaab+SIvBHRH2d5N/sT1ktQirW+wr1aF410IqvfDEKw==, tarball: file:projects/arm-iotoperations.tgz} name: '@rush-temp/arm-iotoperations' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 8.57.1 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' - bufferutil - happy-dom + - jiti - jsdom - less - lightningcss @@ -15431,9 +15858,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz: @@ -15446,12 +15875,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15470,12 +15899,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15494,12 +15923,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15518,12 +15947,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15542,12 +15971,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15566,12 +15995,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15588,11 +16017,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15610,12 +16039,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15632,12 +16061,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15654,11 +16083,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15677,12 +16106,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15701,12 +16130,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -15726,11 +16155,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15747,12 +16176,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15769,13 +16198,13 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 esm: 3.2.25 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15794,12 +16223,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15818,12 +16247,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15842,11 +16271,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15863,12 +16292,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15885,12 +16314,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15909,11 +16338,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15930,12 +16359,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15954,12 +16383,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -15976,12 +16405,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16000,12 +16429,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16022,11 +16451,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16045,12 +16474,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -16061,25 +16490,26 @@ packages: dev: false file:projects/arm-mongocluster.tgz: - resolution: {integrity: sha512-0cIKdDqo8SucLoVDs7HobYbgm2dX7HXlQ7WaCHLrPLrLmKVvfOGAs7TjYERvORqKlIUs/tIzAtp9oM1zOPaN3A==, tarball: file:projects/arm-mongocluster.tgz} + resolution: {integrity: sha512-uHXY8aiy59HNsKOlADr+OcpDG8TihgYdOW4ZXH1ap6Lc+nlMFoMVFYFbM2O0w40S2Me9pQaUbHOe+/94MCjoWQ==, tarball: file:projects/arm-mongocluster.tgz} name: '@rush-temp/arm-mongocluster' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 8.57.1 - playwright: 1.48.2 - prettier: 3.3.3 + eslint: 9.15.0 + playwright: 1.49.0 + prettier: 3.4.1 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' - bufferutil - happy-dom + - jiti - jsdom - less - lightningcss @@ -16091,9 +16521,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz: @@ -16104,12 +16536,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16128,12 +16560,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16150,12 +16582,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16174,12 +16606,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -16199,11 +16631,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16213,20 +16645,21 @@ packages: dev: false file:projects/arm-netapp.tgz: - resolution: {integrity: sha512-ZgmkgKXumSmqN4RkiGQWfrsSjrunk1SMTODplFCa9YKgZSwORLukIWlEODmSQNOLjAjRpZu+IQQOhpN/fuJoCg==, tarball: file:projects/arm-netapp.tgz} + resolution: {integrity: sha512-t+R19DeTmy9lenQFbaBgiJXx8vvRwsiQ+EtFLODfk/IWGP1ZodnrZdUu2AcsfAKE+PrKhLcvnLavSEDWmrZqSw==, tarball: file:projects/arm-netapp.tgz} name: '@rush-temp/arm-netapp' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -16246,12 +16679,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -16271,12 +16704,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16286,7 +16719,7 @@ packages: dev: false file:projects/arm-network.tgz: - resolution: {integrity: sha512-HAbH+qL9GhfjLjle/Jf0NFuI9VvGPOehZgKn6VayITQ/BsjzWdWsMyYmSHjfqMLM/nInvOJL86H7PhEHIStvtg==, tarball: file:projects/arm-network.tgz} + resolution: {integrity: sha512-DzevbMVu9wMnsaM3IFSPZuQqm0HCUTP11UdiXErwtAsFycgqEgZSpiKVUxPOk8t3Xlm3rv/jaIf/umzesPG65Q==, tarball: file:projects/arm-network.tgz} name: '@rush-temp/arm-network' version: 0.0.0 dependencies: @@ -16295,17 +16728,17 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 autorest: 3.7.1 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -16314,7 +16747,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16337,12 +16770,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16352,22 +16785,23 @@ packages: dev: false file:projects/arm-networkcloud.tgz: - resolution: {integrity: sha512-l7r7fIkcr84goO2xsF+iKLPcmZnVzQ3nYu8QvlOcaDYvhKUkdjI5Lf4hw1VNhfQNwukxb3WQy73OmbARaeNs0Q==, tarball: file:projects/arm-networkcloud.tgz} + resolution: {integrity: sha512-LaOlA/TKoXjoy4wZfzCOzFLQYEbbFJjQb4jqcf6UtfKWLloToXzmbjFc0UP00IeGSeDS2qAA4Q9hOZ1bx51/Gw==, tarball: file:projects/arm-networkcloud.tgz} name: '@rush-temp/arm-networkcloud' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 - '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 + tsx: 4.19.2 typescript: 5.6.3 transitivePeerDependencies: - '@swc/core' @@ -16385,11 +16819,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16408,12 +16842,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16432,12 +16866,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16456,12 +16890,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16480,11 +16914,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16503,12 +16937,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16527,11 +16961,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16550,12 +16984,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -16575,12 +17009,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16599,12 +17033,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16621,11 +17055,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16644,12 +17078,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16666,12 +17100,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16688,12 +17122,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16712,12 +17146,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16734,12 +17168,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16758,12 +17192,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16782,11 +17216,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16805,12 +17239,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16829,11 +17263,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16851,12 +17285,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -16876,11 +17310,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16899,12 +17333,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16923,12 +17357,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -16948,12 +17382,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16972,12 +17406,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -16996,13 +17430,13 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 esm: 3.2.25 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17022,13 +17456,13 @@ packages: '@azure/arm-recoveryservices': 5.4.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 esm: 3.2.25 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17047,12 +17481,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17071,12 +17505,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -17097,12 +17531,12 @@ packages: '@azure/arm-network': 32.2.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -17122,13 +17556,13 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 esm: 3.2.25 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17147,12 +17581,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17171,12 +17605,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17195,12 +17629,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17217,11 +17651,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17238,12 +17672,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17262,12 +17696,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17286,12 +17720,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17308,12 +17742,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17332,12 +17766,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17356,12 +17790,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -17381,12 +17815,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -17406,12 +17840,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -17431,13 +17865,13 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 esm: 3.2.25 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17456,12 +17890,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17480,12 +17914,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17504,12 +17938,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -17527,11 +17961,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17550,12 +17984,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17574,12 +18008,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17589,7 +18023,7 @@ packages: dev: false file:projects/arm-servicefabric.tgz: - resolution: {integrity: sha512-WkLdDtmnnB4qqqMm831cxqT1g34J3OrDTC0nQaQoDp8yUyEvf/62dTwudEQKdQApUAtyiRwsMdwRszsCftPXfw==, tarball: file:projects/arm-servicefabric.tgz} + resolution: {integrity: sha512-x69+FIWBgiSxd9By3q2iZv5EkGuHY2Vnof4rjodYDYjVZor83Ibxia7WgdKM5iPUt4ytr99rbxTTq5HLZX321g==, tarball: file:projects/arm-servicefabric.tgz} name: '@rush-temp/arm-servicefabric' version: 0.0.0 dependencies: @@ -17598,17 +18032,17 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 autorest: 3.7.1 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -17617,7 +18051,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17639,12 +18073,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -17662,12 +18096,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17685,12 +18119,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -17708,12 +18142,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17732,12 +18166,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17756,12 +18190,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17780,12 +18214,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17804,12 +18238,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17827,12 +18261,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -17852,12 +18286,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17867,25 +18301,26 @@ packages: dev: false file:projects/arm-standbypool.tgz: - resolution: {integrity: sha512-d2xnd2nJyWATOqT3IDONbjSerCpYzZzzoD96MrMUpOEwjbePLcyjJw8ft9YyO2QHK7OOUG0WuN9rqv6eCQLxIQ==, tarball: file:projects/arm-standbypool.tgz} + resolution: {integrity: sha512-lBp+YGTwo3+S+0zRPNL42SjK4lLENcKqTdRrqbJfiiLvwu92k6wmM2YWr5xZXHh5arGKmz2FkNZuo5nFlRdKOA==, tarball: file:projects/arm-standbypool.tgz} name: '@rush-temp/arm-standbypool' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 8.57.1 - playwright: 1.48.2 - prettier: 3.3.3 + eslint: 9.15.0 + playwright: 1.49.0 + prettier: 3.4.1 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' - bufferutil - happy-dom + - jiti - jsdom - less - lightningcss @@ -17897,9 +18332,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/arm-storage-profile-2020-09-01-hybrid.tgz: @@ -17911,12 +18348,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17934,12 +18371,12 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -17959,12 +18396,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -17983,13 +18420,13 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 esm: 3.2.25 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18006,12 +18443,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18030,12 +18467,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 @@ -18055,11 +18492,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18078,11 +18515,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18101,11 +18538,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18124,12 +18561,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18146,12 +18583,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18170,11 +18607,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18193,12 +18630,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18217,12 +18654,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18239,11 +18676,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18252,6 +18689,46 @@ packages: - supports-color dev: false + file:projects/arm-terraform.tgz: + resolution: {integrity: sha512-N33mFCaqI2ZhFQmBD9XUJCLTiWbuU1ezZsBV0/gRiWFzzt+zBTwgEt/x/HE39Tc7q2JbCnzqB+ms5PjyIHxzsw==, tarball: file:projects/arm-terraform.tgz} + name: '@rush-temp/arm-terraform' + version: 0.0.0 + dependencies: + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + dotenv: 16.4.5 + eslint: 9.15.0 + playwright: 1.49.0 + tshy: 2.0.1 + tslib: 2.8.1 + typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) + transitivePeerDependencies: + - '@edge-runtime/vm' + - '@vitest/ui' + - bufferutil + - happy-dom + - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - utf-8-validate + - vite + - webdriverio + - yaml + dev: false + file:projects/arm-timeseriesinsights.tgz: resolution: {integrity: sha512-M5JNlYjuksfmjRYhRoQQBgymivooZF50jpe2EptMZQNRfn19ukQ2DilgCzx2EdJPHoT6IuVUo1D5DkbL7ebV3w==, tarball: file:projects/arm-timeseriesinsights.tgz} name: '@rush-temp/arm-timeseriesinsights' @@ -18262,12 +18739,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18284,12 +18761,12 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18299,24 +18776,25 @@ packages: dev: false file:projects/arm-trustedsigning.tgz: - resolution: {integrity: sha512-/kLL/gGGZ5j6Yohrwb+FrM2goy4TVtPVZsV9xDfifm+kn0cCdhj40K4YBxD0E7+WaCIMaY1CitATyM+lvW+fag==, tarball: file:projects/arm-trustedsigning.tgz} + resolution: {integrity: sha512-wGwPeLkUdS8uFAHYhPGRjtS5hsI+ChbmQHSs8C9H4EDrel45yFDkNKazb3Njff0LPlTQFDggKVitNaWAANJEwg==, tarball: file:projects/arm-trustedsigning.tgz} name: '@rush-temp/arm-trustedsigning' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 8.57.1 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' - bufferutil - happy-dom + - jiti - jsdom - less - lightningcss @@ -18328,9 +18806,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/arm-visualstudio.tgz: @@ -18343,11 +18823,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18366,12 +18846,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18390,12 +18870,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18414,12 +18894,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18438,11 +18918,11 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18461,12 +18941,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18485,12 +18965,12 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18507,11 +18987,11 @@ packages: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -18525,20 +19005,20 @@ packages: name: '@rush-temp/attestation' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) buffer: 6.0.3 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 inherits: 2.0.4 jsrsasign: 11.1.0 - playwright: 1.48.2 + playwright: 1.49.0 safe-buffer: 5.2.1 tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18556,38 +19036,42 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/batch.tgz: - resolution: {integrity: sha512-5aWGICBLDXaS8dyz90IUuG+KysKDtOr7RkVjdYzfxCimiWRMgPYdRmvP+k7Dkm5xkp16VRTIG8kTnJFVUBSMHw==, tarball: file:projects/batch.tgz} + resolution: {integrity: sha512-XuL+PYlzGB/YmNDbnPrIq9AjDzOIhnjUFAr7XTwTGR8huP18WZWmL/m0YW4MlwP69ewEyjD8dWCAb0KmJl92pQ==, tarball: file:projects/batch.tgz} name: '@rush-temp/batch' version: 0.0.0 dependencies: '@azure-rest/core-client': 1.4.0 '@azure-tools/test-credential': 1.3.1 - '@types/node': 18.19.64 - '@vitest/browser': 1.6.0(playwright@1.48.2)(vitest@1.6.0) - '@vitest/coverage-istanbul': 1.6.0(vitest@1.6.0) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 loupe: 3.1.2 moment: 2.30.1 - playwright: 1.48.2 - prettier: 3.3.3 + playwright: 1.49.0 + prettier: 3.4.1 tslib: 2.8.1 typescript: 5.6.3 - vitest: 1.6.0(@types/node@18.19.64)(@vitest/browser@1.6.0) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' + - bufferutil - happy-dom - jiti - jsdom - less - lightningcss + - msw - safaridriver - sass - sass-embedded @@ -18595,7 +19079,11 @@ packages: - sugarss - supports-color - terser + - tsx + - utf-8-validate + - vite - webdriverio + - yaml dev: false file:projects/communication-alpha-ids.tgz: @@ -18603,35 +19091,16 @@ packages: name: '@rush-temp/communication-alpha-ids' version: 0.0.0 dependencies: - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - playwright: 1.48.2 - sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18649,100 +19118,92 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/communication-call-automation.tgz: - resolution: {integrity: sha512-Fd/HeZS/REzGRLDLjxyqGG1NM1QgMCK7pzWoE0849CzJUyCUGayK6xbpCkvHxhexi1MBvlmwSwIp+Vaixtk0Qg==, tarball: file:projects/communication-call-automation.tgz} + resolution: {integrity: sha512-j9rSk+SzAA5RTLrNqnlSWmfabKPVUE/iu7X3ckI3iQyYIgHYjn1Ek+zXQaN0DYMThl2chTjnq389qCuy1OeT4Q==, tarball: file:projects/communication-call-automation.tgz} name: '@rush-temp/communication-call-automation' version: 0.0.0 dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/communication-phone-numbers': 1.2.0 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-json-preprocessor: 0.3.3(karma@6.4.4) - karma-json-to-file-reporter: 1.0.1 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - util: 0.12.5 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-J1sRuvQkiaeWZtnBmgo0F7yz38gSppMo/+b42TnKyPoRq+Es1UaUXkdo8CMpQfOW79FtH0Oo95HLKs43eq/rgw==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-b8v2dH6bvbYnjZtQtKl6ReggBc4gkDHx66jdrHCgqW4yEpxfFsQAqHDQgZftlGhJCUe5eKKRJ6vqBEwhTOGWDA==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/communication-signaling': 1.0.0-beta.29 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - '@types/uuid': 8.3.4 - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 - inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-json-preprocessor: 0.3.3(karma@6.4.4) - karma-json-to-file-reporter: 1.0.1 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - sinon: 19.0.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - util: 0.12.5 - uuid: 8.3.2 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/communication-common.tgz: @@ -18750,19 +19211,19 @@ packages: name: '@rush-temp/communication-common' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 events: 3.3.0 inherits: 2.0.4 jwt-decode: 4.0.0 mockdate: 3.0.5 - playwright: 1.48.2 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18780,92 +19241,91 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/communication-email.tgz: - resolution: {integrity: sha512-ZOPSfMCI6uWwWm9OUsw6AHSJzn7SAMKxJOFFDbrj1jkvcQ9f1V+m2qa1NwV7FywuGMuKjN7wumpI284OIjxSxg==, tarball: file:projects/communication-email.tgz} + resolution: {integrity: sha512-QhLsLLokYOq6xNcg5alwSd7zmjUr5iul+3/p1yq7jzXk2vDsxGU32Wq5S1ALu5jX+eTLPpxjm8WPdCFc37UtIg==, tarball: file:projects/communication-email.tgz} name: '@rush-temp/communication-email' version: 0.0.0 dependencies: - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-json-preprocessor: 0.3.3(karma@6.4.4) - karma-json-to-file-reporter: 1.0.1 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) - tslib: 1.14.1 + eslint: 9.15.0 + playwright: 1.49.0 + tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-qhM0Ig2VTC6fRQ0sjCP+8aYlz1m4yr+uC5vlhm/pXop87s6MyIIpZzHZH6MTijaIKKlTzZt+3dxYs/4XwqKVhA==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-cHCdd2LiWjg4jftWNnziaCV9uNSMfkhoUDFlKBymYkvmj4dbrgoobwpuPOkqJ4zoB9r86aiRDNP/E0YmMF2RFw==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@azure/msal-node': 2.15.0 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - chai: 4.3.10 + '@azure/msal-node': 2.16.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 - inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - process: 0.11.10 - sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/communication-job-router-1.tgz: @@ -18873,40 +19333,20 @@ packages: name: '@rush-temp/communication-job-router-1' version: 0.0.0 dependencies: - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 + '@types/node': 18.19.66 '@types/uuid': 8.3.4 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - chai: 4.3.10 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-json-preprocessor: 0.3.3(karma@6.4.4) - karma-json-to-file-reporter: 1.0.1 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - playwright: 1.48.2 - sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 uuid: 8.3.2 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18924,91 +19364,90 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/communication-job-router.tgz: - resolution: {integrity: sha512-5LLJCERriFc6PMsBRCH2FAYffKFHxBTudi1OCbylAy5IUtqtIwzPME18A0VE/ixM90FkKYtJUc9vnIn9+8cfWA==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-2asWr03USbfs287ufZkj8sgX94e8AIkX8BU9mVvBxqPp+5NwM8F2I2OeKa/ZRb9z7dcawliux8IwyB2kNGIEAg==, tarball: file:projects/communication-job-router.tgz} name: '@rush-temp/communication-job-router' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.3 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.4.0 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/communication-messages.tgz: - resolution: {integrity: sha512-oEFJuO+RzX3gA86WxlnTcUnnFTSzQPzasiwupB6/pl+KjI80ZX9UAOKDb2qRW1v1Pu3Ch/YeFAprVg21znmOAQ==, tarball: file:projects/communication-messages.tgz} + resolution: {integrity: sha512-IcDGaDqJ1GhWIIajWNiyS4FUnZB3JEvDYXG7mopGzk4wgpUfOhVoVrJuz07pg3unKTn48Oqlm4EOWFmAm0wbag==, tarball: file:projects/communication-messages.tgz} name: '@rush-temp/communication-messages' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.3 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) + eslint: 9.15.0 karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.4.0 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/communication-phone-numbers.tgz: @@ -19016,37 +19455,17 @@ packages: name: '@rush-temp/communication-phone-numbers' version: 0.0.0 dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 - inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - playwright: 1.48.2 - sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19064,9 +19483,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/communication-recipient-verification.tgz: @@ -19074,38 +19495,17 @@ packages: name: '@rush-temp/communication-recipient-verification' version: 0.0.0 dependencies: - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - '@types/uuid': 8.3.4 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 - inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - playwright: 1.48.2 - sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - uuid: 8.3.2 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19123,41 +19523,49 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/communication-rooms.tgz: - resolution: {integrity: sha512-P7jfhBHPpmbT+F7ZiIsSE6UE2c3eH3VurYQSyRaYxcCuKRvzccHbqk1RtO0SyPiDjPTgxjGnAHnexI18C2+UeQ==, tarball: file:projects/communication-rooms.tgz} + resolution: {integrity: sha512-F/7ZgMfumTgdSJXk4iLzYs3cbwxW08iZlD3OjjDYAqkYG/qodpxjdwjDxneSeXLPaIDUwYBnz9S7LTTzvSGtcA==, tarball: file:projects/communication-rooms.tgz} name: '@rush-temp/communication-rooms' version: 0.0.0 dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-env-preprocessor: 0.1.1 - mocha: 10.8.2 - nyc: 17.1.0 - sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) - tslib: 1.14.1 + eslint: 9.15.0 + playwright: 1.49.0 + tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/communication-short-codes.tgz: @@ -19165,38 +19573,17 @@ packages: name: '@rush-temp/communication-short-codes' version: 0.0.0 dependencies: - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - '@types/uuid': 8.3.4 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 - inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - playwright: 1.48.2 - sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - uuid: 8.3.2 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19214,51 +19601,50 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - - vite - - webdriverio - dev: false - - file:projects/communication-sms.tgz: - resolution: {integrity: sha512-haVPGnQ12Pl0W69/eg2MhmTpiF+DTrxGi+y1TMCm736KXUIeNrW87yhASdKXOOM15k2n3LJC2qi/KBKH0T9j7w==, tarball: file:projects/communication-sms.tgz} - name: '@rush-temp/communication-sms' - version: 0.0.0 - dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - chai: 4.3.10 - dotenv: 16.4.5 - eslint: 9.14.0 - events: 3.3.0 - inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + - vite + - webdriverio + - yaml + dev: false + + file:projects/communication-sms.tgz: + resolution: {integrity: sha512-dmscPn+No1b2ix4Mc9o8yZR34qSg/0GaILdZES+WE1tBsYeSqo8yWKJo3/bTOSNBRR5oIdHe+XafVl1sWObFdw==, tarball: file:projects/communication-sms.tgz} + name: '@rush-temp/communication-sms' + version: 0.0.0 + dependencies: + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + dotenv: 16.4.5 + eslint: 9.15.0 + events: 3.3.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - util: 0.12.5 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/communication-tiering.tgz: @@ -19266,38 +19652,20 @@ packages: name: '@rush-temp/communication-tiering' version: 0.0.0 dependencies: - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 + '@types/node': 18.19.66 '@types/uuid': 8.3.4 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - chai: 4.3.10 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - playwright: 1.48.2 - sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 uuid: 8.3.2 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19315,9 +19683,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/communication-toll-free-verification.tgz: @@ -19325,35 +19695,17 @@ packages: name: '@rush-temp/communication-toll-free-verification' version: 0.0.0 dependencies: - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - playwright: 1.48.2 - sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19371,65 +19723,72 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/confidential-ledger.tgz: - resolution: {integrity: sha512-Xw/enTER2UKhrjrxCL5XqD8wjKQkBNUpy58uQP9E3kofJVpBbnnwDOCeaQkTQAGxPQWJVqIm2Lnz1vBEhzvqLw==, tarball: file:projects/confidential-ledger.tgz} + resolution: {integrity: sha512-kz/gO0p1kTIesYPMsgME5Tc8BCXl3x6DQgBG9NDcR586apYrge1buEHANawGmE/uh44YKSsT5PjHgRCBIkz1Wg==, tarball: file:projects/confidential-ledger.tgz} name: '@rush-temp/confidential-ledger' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/browser' + - '@vitest/ui' + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx + - yaml dev: false file:projects/container-registry.tgz: - resolution: {integrity: sha512-wOBy57ibPwVg9mLPVbRhYqksFdU1cGGBeb3wZBm0YituGMP7LnO8U2iE5SvVEiBXHv0ADfLOTmrxPj/sOIXbgg==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-OqITO/TMWza3AeETuc9wVLLfZgTD3CWl58tQ+NejouMEUalv/t+TkNEaUlubfdN6v43Xc3n2CeB5VmIni8UnsA==, tarball: file:projects/container-registry.tgz} name: '@rush-temp/container-registry' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 chai-as-promised: 7.1.2(chai@4.3.10) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) karma-sourcemap-loader: 0.3.8 mocha: 10.8.2 nyc: 17.1.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -19448,23 +19807,23 @@ packages: name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: - '@rollup/plugin-inject': 5.0.5(rollup@4.24.4) + '@rollup/plugin-inject': 5.0.5(rollup@4.27.4) '@types/debug': 4.1.12 - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/ws': 8.5.13 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) buffer: 6.0.3 debug: 4.3.7(supports-color@8.1.1) - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 - playwright: 1.48.2 + playwright: 1.49.0 process: 0.11.10 rhea: 3.0.3 rhea-promise: 3.0.3 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) ws: 8.18.0 transitivePeerDependencies: - '@edge-runtime/vm' @@ -19484,9 +19843,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/core-auth.tgz: @@ -19494,14 +19855,14 @@ packages: name: '@rush-temp/core-auth' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 - playwright: 1.48.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19519,9 +19880,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/core-client-1.tgz: @@ -19529,14 +19892,14 @@ packages: name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 - playwright: 1.48.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19554,9 +19917,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/core-client.tgz: @@ -19564,14 +19929,14 @@ packages: name: '@rush-temp/core-client' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 - playwright: 1.48.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19589,9 +19954,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/core-http-compat.tgz: @@ -19599,13 +19966,13 @@ packages: name: '@rush-temp/core-http-compat' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 - playwright: 1.48.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19623,9 +19990,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/core-lro.tgz: @@ -19633,14 +20002,14 @@ packages: name: '@rush-temp/core-lro' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 - playwright: 1.48.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19658,9 +20027,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/core-paging.tgz: @@ -19668,14 +20039,14 @@ packages: name: '@rush-temp/core-paging' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 - playwright: 1.48.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19693,9 +20064,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/core-rest-pipeline.tgz: @@ -19703,16 +20076,16 @@ packages: name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 http-proxy-agent: 7.0.2 https-proxy-agent: 7.0.5 - playwright: 1.48.2 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19730,9 +20103,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/core-sse.tgz: @@ -19741,17 +20116,17 @@ packages: version: 0.0.0 dependencies: '@types/express': 4.17.21 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 express: 4.21.1 - playwright: 1.48.2 + playwright: 1.49.0 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6)(tsx@4.19.2) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19772,6 +20147,7 @@ packages: - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/core-tracing.tgz: @@ -19779,14 +20155,14 @@ packages: name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 - playwright: 1.48.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19804,9 +20180,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/core-util.tgz: @@ -19814,14 +20192,14 @@ packages: name: '@rush-temp/core-util' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 - playwright: 1.48.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19839,9 +20217,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/core-xml.tgz: @@ -19849,16 +20229,16 @@ packages: name: '@rush-temp/core-xml' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/trusted-types': 2.0.7 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 fast-xml-parser: 4.5.0 - playwright: 1.48.2 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19876,9 +20256,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/cosmos.tgz: @@ -19889,8 +20271,8 @@ packages: '@sinonjs/fake-timers': 11.3.1 '@types/chai': 4.3.20 '@types/debug': 4.1.12 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/priorityqueuejs': 1.0.4 '@types/semaphore': 1.1.4 '@types/sinon': 17.0.3 @@ -19898,18 +20280,18 @@ packages: '@types/underscore': 1.13.0 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 execa: 5.1.1 fast-json-stable-stringify: 2.1.0 jsbi: 4.3.0 mocha: 10.8.2 - nock: 13.5.5 + nock: 13.5.6 priorityqueuejs: 2.0.0 requirejs: 2.3.7 semaphore: 1.1.0 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -19924,14 +20306,14 @@ packages: name: '@rush-temp/create-microsoft-playwright-testing' version: 0.0.0 dependencies: - '@types/node': 20.17.6 + '@types/node': 20.17.8 '@types/prompts': 2.4.9 - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 prompts: 2.4.2 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@20.17.6) + vitest: 2.1.6(@types/node@20.17.8) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/browser' @@ -19948,51 +20330,71 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: false file:projects/data-tables.tgz: - resolution: {integrity: sha512-TmGqXF7zuQBOCNfWiN/P3OSqqZ/eymS6FXPMS5dBhJOfWM1PhHc7lMqnx4rA7RaxBHYuihYNztnIPV7eOMZYQA==, tarball: file:projects/data-tables.tgz} + resolution: {integrity: sha512-6DsqDKJ5vhGuTmfed7CDqfFd0e2PuShSBuLkw0JOotU6d38zWLYOwTr2uVZZ5Azy1EgcoKTuUhPR6tnJkR6VZg==, tarball: file:projects/data-tables.tgz} name: '@rush-temp/data-tables' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) karma-sourcemap-loader: 0.3.8 mocha: 10.8.2 nyc: 17.1.0 + playwright: 1.49.0 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/defender-easm.tgz: - resolution: {integrity: sha512-XR4jDRwVwSWsus6hDjmyVFkc7JniD2iVjqeni/bYugekiusoIp7igRkJannzZnhriU2fGNOsQjov3caAz1+L5w==, tarball: file:projects/defender-easm.tgz} + resolution: {integrity: sha512-MLAU13wRdZyx1md95NqJXLQx7CVsNC90D0xQb1VaqHNDEcElaggArHAFWeVDcdfnw5Wlt+TFa1RcfEOuyY/Bgw==, tarball: file:projects/defender-easm.tgz} name: '@rush-temp/defender-easm' version: 0.0.0 dependencies: @@ -20001,16 +20403,16 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.4) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.4) @@ -20021,7 +20423,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -20035,30 +20437,31 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-ploFXn1xRaagTl77FhJEkOSeovopEsE4iZeQV8oBf9TfGEHugbqCQ7TWzjC9sSMdsTqDKUUE70bLWRUD0b9FBg==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-1c66fdXFeyerti7kaguqJ8TW+L0r43d1JWYsS6ysMbqQqIt0aYTSu7Bi9+KgTBXQ82fOkrPWaM3e8zeWSwlrjA==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: - '@_ts/max': /typescript@5.6.3 + '@_ts/max': /typescript@5.7.2 '@_ts/min': /typescript@4.2.4 + '@arethetypeswrong/cli': 0.17.0 '@azure/identity': 4.5.0 - '@eslint/js': 9.14.0 - '@microsoft/api-extractor': 7.47.11(@types/node@18.19.64) - '@microsoft/api-extractor-model': 7.29.8(@types/node@18.19.64) - '@rollup/plugin-commonjs': 25.0.8(rollup@4.24.4) - '@rollup/plugin-inject': 5.0.5(rollup@4.24.4) - '@rollup/plugin-json': 6.1.0(rollup@4.24.4) - '@rollup/plugin-multi-entry': 6.0.1(rollup@4.24.4) - '@rollup/plugin-node-resolve': 15.3.0(rollup@4.24.4) + '@eslint/js': 9.15.0 + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.66) + '@microsoft/api-extractor-model': 7.30.0(@types/node@18.19.66) + '@rollup/plugin-commonjs': 25.0.8(rollup@4.27.4) + '@rollup/plugin-inject': 5.0.5(rollup@4.27.4) + '@rollup/plugin-json': 6.1.0(rollup@4.27.4) + '@rollup/plugin-multi-entry': 6.0.1(rollup@4.27.4) + '@rollup/plugin-node-resolve': 15.3.0(rollup@4.27.4) '@types/archiver': 6.0.3 '@types/decompress': 4.2.7 '@types/express': 4.17.21 '@types/express-serve-static-core': 4.19.6 '@types/fs-extra': 11.0.4 '@types/minimist': 1.2.5 - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/semver': 7.5.8 - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 builtin-modules: 3.3.0 chalk: 4.1.2 @@ -20067,28 +20470,28 @@ packages: decompress: 4.2.1 dotenv: 16.4.5 env-paths: 2.2.1 - eslint: 9.14.0 + eslint: 9.15.0 express: 4.21.1 fs-extra: 11.2.0 minimist: 1.2.8 mkdirp: 3.0.1 - prettier: 3.3.3 + prettier: 3.4.1 rimraf: 5.0.10 - rollup: 4.24.4 - rollup-plugin-polyfill-node: 0.13.0(rollup@4.24.4) - rollup-plugin-visualizer: 5.12.0(rollup@4.24.4) + rollup: 4.27.4 + rollup-plugin-polyfill-node: 0.13.0(rollup@4.27.4) + rollup-plugin-visualizer: 5.12.0(rollup@4.27.4) semver: 7.6.3 strip-json-comments: 3.1.1 ts-morph: 24.0.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tshy: 2.0.1 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 - typescript-eslint: 8.2.0(eslint@9.14.0)(typescript@5.6.3) + typescript-eslint: 8.16.0(eslint@9.15.0)(typescript@5.6.3) uglify-js: 3.19.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) - yaml: 2.6.0 + vitest: 2.1.6(@types/node@18.19.66)(tsx@4.19.2)(yaml@2.6.1) + yaml: 2.6.1 transitivePeerDependencies: - '@edge-runtime/vm' - '@swc/core' @@ -20115,15 +20518,15 @@ packages: version: 0.0.0 dependencies: '@azure/core-lro': 3.0.0 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -20141,32 +20544,34 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/digital-twins-core.tgz: - resolution: {integrity: sha512-aF3848VYS1qA+wZJs/NgB1X3UOd6UOgqksqEoHZwruijB5AaeqfvEhwN997Lmkp2kMjPSl7sH5ObQLiqveWRnA==, tarball: file:projects/digital-twins-core.tgz} + resolution: {integrity: sha512-nKRSIQm5cqW1j4RbzNJUFNN91ChO4tzpWvV5CiBvWS6XteK20Y+ogMxj66r6/3GmKiaxKMKLTFbXZaYXpjXc1A==, tarball: file:projects/digital-twins-core.tgz} name: '@rush-temp/digital-twins-core' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -20174,7 +20579,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -20190,39 +20595,39 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk.tgz: - resolution: {integrity: sha512-SJtki5rEbJAv18SEFjoGX6bAHlyfRaJlgQu6yOSOtnQo4cSTlUupAolVAR+kAtfKh45lvljoojYPjg40AI7dQg==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} + resolution: {integrity: sha512-CClqaBgRUJKjnHY1m9pCv/EO2NsjNcH+t/egdrpfA/uVrIMmBPrbaZyBvilHa57EcH4J8a7n4PlEHNCy08pzxw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} name: '@rush-temp/eslint-plugin-azure-sdk' version: 0.0.0 dependencies: - '@eslint/compat': 1.2.2(eslint@9.14.0) - '@eslint/eslintrc': 3.1.0 - '@eslint/js': 9.14.0 + '@eslint/compat': 1.2.3(eslint@9.15.0) + '@eslint/eslintrc': 3.2.0 + '@eslint/js': 9.15.0 '@types/eslint': 9.6.1 '@types/eslint-config-prettier': 6.11.3 '@types/eslint__js': 8.42.3 '@types/estree': 1.0.6 - '@types/node': 18.19.64 - '@typescript-eslint/eslint-plugin': 8.10.0(@typescript-eslint/parser@8.10.0)(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/parser': 8.10.0(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/rule-tester': 8.10.0(eslint@9.14.0)(typescript@5.6.3) - '@typescript-eslint/typescript-estree': 8.10.0(typescript@5.6.3) - '@typescript-eslint/utils': 8.10.0(eslint@9.14.0)(typescript@5.6.3) + '@types/node': 18.19.66 + '@typescript-eslint/eslint-plugin': 8.16.0(@typescript-eslint/parser@8.16.0)(eslint@9.15.0)(typescript@5.6.3) + '@typescript-eslint/parser': 8.16.0(eslint@9.15.0)(typescript@5.6.3) + '@typescript-eslint/rule-tester': 8.16.0(eslint@9.15.0)(typescript@5.6.3) + '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.6.3) + '@typescript-eslint/utils': 8.16.0(eslint@9.15.0)(typescript@5.6.3) '@vitest/coverage-istanbul': 1.6.0(vitest@1.6.0) - eslint: 9.14.0 - eslint-config-prettier: 9.1.0(eslint@9.14.0) - eslint-plugin-markdown: 5.1.0(eslint@9.14.0) - eslint-plugin-n: 17.12.0(eslint@9.14.0) + eslint: 9.15.0 + eslint-config-prettier: 9.1.0(eslint@9.15.0) + eslint-plugin-markdown: 5.1.0(eslint@9.15.0) + eslint-plugin-n: 17.14.0(eslint@9.15.0) eslint-plugin-no-only-tests: 3.3.0 - eslint-plugin-promise: 6.6.0(eslint@9.14.0) + eslint-plugin-promise: 6.6.0(eslint@9.15.0) eslint-plugin-tsdoc: 0.2.17 glob: 10.4.5 - prettier: 3.3.3 + prettier: 3.4.1 rimraf: 5.0.10 source-map-support: 0.5.21 tslib: 2.8.1 typescript: 5.6.3 - typescript-eslint: 8.10.0(eslint@9.14.0)(typescript@5.6.3) - vitest: 1.6.0(@types/node@18.19.64)(@vitest/browser@1.6.0) + typescript-eslint: 8.16.0(eslint@9.15.0)(typescript@5.6.3) + vitest: 1.6.0(@types/node@18.19.66) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/browser' @@ -20245,30 +20650,30 @@ packages: name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: - '@rollup/plugin-inject': 5.0.5(rollup@4.24.4) + '@rollup/plugin-inject': 5.0.5(rollup@4.27.4) '@types/chai-as-promised': 7.1.8 '@types/debug': 4.1.12 - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/ws': 7.4.7 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) buffer: 6.0.3 chai: 5.1.2 - chai-as-promised: 8.0.0(chai@5.1.2) + chai-as-promised: 8.0.1(chai@5.1.2) chai-exclude: 3.0.0(chai@5.1.2) copyfiles: 2.4.1 debug: 4.3.7(supports-color@8.1.1) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 https-proxy-agent: 7.0.5 is-buffer: 2.0.5 - playwright: 1.48.2 + playwright: 1.49.0 process: 0.11.10 rhea-promise: 3.0.3 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6)(tsx@4.19.2) ws: 8.18.0 transitivePeerDependencies: - '@edge-runtime/vm' @@ -20291,10 +20696,11 @@ packages: - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/eventgrid-namespaces.tgz: - resolution: {integrity: sha512-vz4DlGvIjf5AnZOkX6nssvhXCyKtnCaEqSMK87AvUXV+82oZkHoBUYS+uGUyvbc41QpKDhAFvlfJ3075zeqeGQ==, tarball: file:projects/eventgrid-namespaces.tgz} + resolution: {integrity: sha512-Wd58Mi30gLxzNV/3UQRMv8/cQAtIuZ42VA26P+B9zOLq0yVN336r1POexl2IqHfQ4YzHfI6gh0my7v1jB4v/BA==, tarball: file:projects/eventgrid-namespaces.tgz} name: '@rush-temp/eventgrid-namespaces' version: 0.0.0 dependencies: @@ -20303,20 +20709,20 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 buffer: 6.0.3 chai: 4.3.10 chai-as-promised: 7.1.2(chai@4.3.10) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -20325,7 +20731,7 @@ packages: nyc: 17.1.0 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -20339,7 +20745,7 @@ packages: dev: false file:projects/eventgrid-system-events.tgz: - resolution: {integrity: sha512-AvJTix3adOZu+3Om1/NTt8WrXM7AEvsCBISWBxA/G7DIsAt71Dd1wXfJ0VHTyN09XHBtnlilw8v91XeI+OYfLQ==, tarball: file:projects/eventgrid-system-events.tgz} + resolution: {integrity: sha512-J9WSaHbb572Gh+WpNvDx5NF+NAaY9HTSAOWuBNfzplXZG1h5e7wilvy86TqheypQqdxhsau7IhbsRHEOEeFAPA==, tarball: file:projects/eventgrid-system-events.tgz} name: '@rush-temp/eventgrid-system-events' version: 0.0.0 dependencies: @@ -20347,44 +20753,62 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) buffer: 6.0.3 chai: 4.3.10 chai-as-promised: 7.1.2(chai@4.3.10) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) karma-sourcemap-loader: 0.3.8 mocha: 10.8.2 nyc: 17.1.0 + playwright: 1.49.0 prettier: 2.8.8 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-Wu3hnv9c3SJxmn0fd+aGRpKC9gBptmVSaCYW5tXssbfaUukCNhoa6X8DkHmPCk54BZis7V4B4Y2LlIwT6RfsBg==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-xNO7uSbCB0gSezDYBsFLGRv0mgFhuRovCGLgicVWr3KBzCHr9fZn2OdSSIIsBAx68K8Ha0nHjeHPC0jlhL/cCQ==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: @@ -20392,64 +20816,83 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) chai: 4.3.10 chai-as-promised: 7.1.2(chai@4.3.10) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) karma-sourcemap-loader: 0.3.8 mocha: 10.8.2 nyc: 17.1.0 + playwright: 1.49.0 sinon: 17.0.1 source-map-support: 0.5.21 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 uuid: 8.3.2 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/eventhubs-checkpointstore-blob.tgz(chai@4.3.10): - resolution: {integrity: sha512-d0r9Tcp+PR88ElbvXVtloMca/5o3x7baoqzfzU6erNYp3+qDb28vnauB7wgtSr/JCNFXUUEwCRdCDkqnj2SjIg==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-QIMCv2kTVX8O/o5j/9cm9cj3M1Yu68nIK2z4ubzIx+w0ZJ4Sby3hc2F+UFe5oj59UyA29uZLX6sfITm7+SuKgQ==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} id: file:projects/eventhubs-checkpointstore-blob.tgz name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: - '@azure/storage-blob': 12.25.0 - '@rollup/plugin-inject': 5.0.5(rollup@4.24.4) + '@rollup/plugin-inject': 5.0.5(rollup@4.27.4) '@types/chai-as-promised': 7.1.8 '@types/debug': 4.1.12 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) buffer: 6.0.3 - chai-as-promised: 8.0.0(chai@4.3.10) + chai-as-promised: 8.0.1(chai@4.3.10) debug: 4.3.7(supports-color@8.1.1) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 process: 0.11.10 stream: 0.0.3 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6)(tsx@4.19.2) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -20472,6 +20915,7 @@ packages: - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/eventhubs-checkpointstore-table.tgz(chai@4.3.10): @@ -20480,23 +20924,23 @@ packages: name: '@rush-temp/eventhubs-checkpointstore-table' version: 0.0.0 dependencies: - '@rollup/plugin-inject': 5.0.5(rollup@4.24.4) + '@rollup/plugin-inject': 5.0.5(rollup@4.27.4) '@types/chai-as-promised': 7.1.8 '@types/debug': 4.1.12 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) buffer: 6.0.3 - chai-as-promised: 8.0.0(chai@4.3.10) + chai-as-promised: 8.0.1(chai@4.3.10) debug: 4.3.7(supports-color@8.1.1) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 process: 0.11.10 stream: 0.0.3 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -20516,13 +20960,15 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/functions-authentication-events.tgz: - resolution: {integrity: sha512-itJGbhq6oASDQOvzRN9Fu8x/cb0lAOVo+xXXmIGdODdRWFOPxUQ+jIM+fvh7o+5IrsVD8u5deTC1azb8/BOFhg==, tarball: file:projects/functions-authentication-events.tgz} + resolution: {integrity: sha512-oFukFmJk2iIPQauvOB5HqP7CTjE7CbaLyi+szryLRSCDHcBc+mphI5f+q1Jk4GXWgXjQJXDhmJHUZog2FRn8HQ==, tarball: file:projects/functions-authentication-events.tgz} name: '@rush-temp/functions-authentication-events' version: 0.0.0 dependencies: @@ -20530,17 +20976,17 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/functions': 3.5.1 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.4) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.4) @@ -20549,7 +20995,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -20568,16 +21014,16 @@ packages: name: '@rush-temp/health-deidentification' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 loupe: 3.1.2 - playwright: 1.48.2 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -20595,138 +21041,131 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/health-insights-cancerprofiling.tgz: - resolution: {integrity: sha512-taNdo6C+pziC8GuaUSlJszQVS9CyhDuhEQKpYIAxg39lrWaR3gZYIw3HaN72q661dxz/Y/8XqiC1PchTWvxuug==, tarball: file:projects/health-insights-cancerprofiling.tgz} + resolution: {integrity: sha512-VbNwjG9FeYaNHVZ5ccHivYA5aMTBQaj9e/3S1qhujNHdW79W4w9R989l0SMtitK7WXcC7OfQunMVVA/v5BKPeA==, tarball: file:projects/health-insights-cancerprofiling.tgz} name: '@rush-temp/health-insights-cancerprofiling' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/health-insights-clinicalmatching.tgz: - resolution: {integrity: sha512-GK2m80WMo6dQpBr3sCVXUWiJ85RW1mbUvf4a1wRMFcpbRh2s/fTR/ImDeXMRQ7ZFc37jblG5UCg8LF+Zut23Hg==, tarball: file:projects/health-insights-clinicalmatching.tgz} + resolution: {integrity: sha512-gPS26NLHskZBUrKuYf6hZouvsKGu6G09W2sGxPEnaCTj5KGmZN/aL9K9WOchcwTcY5HBQM98VwV3EEhTeNYiag==, tarball: file:projects/health-insights-clinicalmatching.tgz} name: '@rush-temp/health-insights-clinicalmatching' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/health-insights-radiologyinsights.tgz: - resolution: {integrity: sha512-bgurZskiRSz/XGbKy/ZG3whKFQj9ebEPUSnfBJmwgwTZvygVq98ic5Sl0dONQQXbRojfxjSulQd9ZyjCMqhzdg==, tarball: file:projects/health-insights-radiologyinsights.tgz} + resolution: {integrity: sha512-IC51lwhRQqr8r5PP7rrUwlrQXDDWlI0DbP2GE8H2prk+A9IauQB7CIHrjosRCtJINIMMaQJXa2roHF5GVtbv0w==, tarball: file:projects/health-insights-radiologyinsights.tgz} name: '@rush-temp/health-insights-radiologyinsights' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.3 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.4.0 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/identity-broker.tgz: @@ -20734,23 +21173,17 @@ packages: name: '@rush-temp/identity-broker' version: 0.0.0 dependencies: - '@azure-tools/test-recorder': 3.5.2 '@azure/abort-controller': 1.1.0 - '@azure/msal-node': 2.15.0 - '@azure/msal-node-extensions': 1.3.0 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 - mocha: 10.8.2 - playwright: 1.48.2 - puppeteer: 23.7.0(typescript@5.6.3) - sinon: 17.0.1 + '@azure/msal-node': 2.16.2 + '@azure/msal-node-extensions': 1.5.0 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -20768,9 +21201,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/identity-cache-persistence.tgz: @@ -20779,21 +21214,21 @@ packages: version: 0.0.0 dependencies: '@azure-tools/test-recorder': 3.5.2 - '@azure/msal-node': 2.15.0 - '@azure/msal-node-extensions': 1.3.0 + '@azure/msal-node': 2.16.2 + '@azure/msal-node-extensions': 1.5.0 '@types/jws': 3.2.10 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/qs': 6.9.16 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 + '@types/qs': 6.9.17 '@types/sinon': 17.0.3 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 inherits: 2.0.4 keytar: 7.9.0 mocha: 10.8.2 - puppeteer: 23.7.0(typescript@5.6.3) + puppeteer: 23.9.0(typescript@5.6.3) sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -20813,19 +21248,19 @@ packages: dependencies: '@azure-tools/test-recorder': 3.5.2 '@types/jws': 3.2.10 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/qs': 6.9.16 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 + '@types/qs': 6.9.17 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 inherits: 2.0.4 keytar: 7.9.0 mocha: 10.8.2 - puppeteer: 23.7.0(typescript@5.6.3) + puppeteer: 23.9.0(typescript@5.6.3) sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -20843,49 +21278,30 @@ packages: name: '@rush-temp/identity' version: 0.0.0 dependencies: - '@azure-tools/test-recorder': 3.5.2 '@azure/keyvault-keys': 4.9.0 - '@azure/msal-browser': 3.26.1 - '@azure/msal-node': 2.15.0 - '@types/chai': 4.3.20 + '@azure/msal-browser': 3.27.0 + '@azure/msal-node': 2.16.2 '@types/jsonwebtoken': 9.0.7 '@types/jws': 3.2.10 - '@types/mocha': 10.0.9 '@types/ms': 0.7.34 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 + '@types/node': 18.19.66 '@types/stoppable': 1.1.3 - '@types/uuid': 8.3.4 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - chai: 4.3.10 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 inherits: 2.0.4 jsonwebtoken: 9.0.2 jws: 4.0.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 ms: 2.1.3 - nyc: 17.1.0 open: 10.1.0 - playwright: 1.48.2 - puppeteer: 23.7.0(typescript@5.6.3) - sinon: 17.0.1 + playwright: 1.49.0 stoppable: 1.1.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -20903,13 +21319,15 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-chcE5/PejYYJo8iEsz2ycDxv/ZVpecALpQYbrR2HQI1jidzV2YD2JwHanxClVqUBoWsh/9KtWBc59tjOcbB/IA==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-j+/7pjRuxaNdX1fkGEa6LLEMmGp6LDV6z5RimV7GRnBRVlrYBgK3bfd4YdqYdNrg5Z4aksGwIcU+dt4Q+/yzRg==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: @@ -20918,16 +21336,16 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.4) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.4) @@ -20938,7 +21356,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -20952,45 +21370,41 @@ packages: dev: false file:projects/iot-modelsrepository.tgz: - resolution: {integrity: sha512-DtswZtrDRCyoe5CyE4F1DZtXb+IMSydNxX2pueLyMJs45GDU0KAZQcS7eTUq+Vc+92AOcPrdDBYXpwTl4PgZnA==, tarball: file:projects/iot-modelsrepository.tgz} + resolution: {integrity: sha512-hJMVERfcQNl1arQVH2kNoM2in/mmJ4z6kwm2udCgcU8OnrJoJUVCFELh1hBxKpbIFkwb3DJLs8Racg2WNo8dBw==, tarball: file:projects/iot-modelsrepository.tgz} name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - chai: 4.3.10 - eslint: 9.14.0 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 events: 3.3.0 - inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-json-preprocessor: 0.3.3(karma@6.4.4) - karma-json-to-file-reporter: 1.0.1 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - util: 0.12.5 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/keyvault-admin.tgz: @@ -20999,15 +21413,15 @@ packages: version: 0.0.0 dependencies: '@azure/core-lro': 2.7.2 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -21025,9 +21439,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/keyvault-certificates.tgz: @@ -21036,15 +21452,15 @@ packages: version: 0.0.0 dependencies: '@azure/core-lro': 2.7.2 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -21062,9 +21478,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/keyvault-common.tgz: @@ -21072,14 +21490,14 @@ packages: name: '@rush-temp/keyvault-common' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 - playwright: 1.48.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -21097,9 +21515,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/keyvault-keys.tgz: @@ -21108,16 +21528,16 @@ packages: version: 0.0.0 dependencies: '@azure/core-lro': 2.7.2 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dayjs: 1.11.13 dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -21135,9 +21555,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/keyvault-secrets.tgz: @@ -21146,14 +21568,14 @@ packages: version: 0.0.0 dependencies: '@azure/core-lro': 2.7.2 - '@types/node': 18.19.64 - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/browser' @@ -21170,50 +21592,48 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: false file:projects/load-testing.tgz: - resolution: {integrity: sha512-U314GsbjjWSJHdmjAo6qwSwuCTTFiPUB9AWGKK/9tU33CqV9wIfTrez1uuFhzteWwfMPXgLh+RnJjrzYBYpOdA==, tarball: file:projects/load-testing.tgz} + resolution: {integrity: sha512-mWVb1m4MgOwmwvtCgw+GpN4BwujiAzXpm+2lWJdLgtH4EFCwkLQWaefkaSqlyXMEXqCy/lPJYAS4hXrIP7DkEg==, tarball: file:projects/load-testing.tgz} name: '@rush-temp/load-testing' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/uuid': 8.3.4 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - uuid: 9.0.1 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/logger.tgz: @@ -21221,15 +21641,15 @@ packages: name: '@rush-temp/logger' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -21247,9 +21667,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/maps-common.tgz: @@ -21258,14 +21680,14 @@ packages: version: 0.0.0 dependencies: '@azure/core-lro': 2.7.2 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 - playwright: 1.48.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -21283,193 +21705,186 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/maps-geolocation.tgz: - resolution: {integrity: sha512-hQNWWAB2csKwDQitJWjwgAIBiFBEpmBFX82U1x9CGNkoXy7MNi/O7u880S2Hbarm+WI7UyuxSIF27KLBEH8C2Q==, tarball: file:projects/maps-geolocation.tgz} + resolution: {integrity: sha512-pmNHm5WCIRn8MxaO6SWedBhcV/fSxsZ1SAVnA/n0XaDm9ra21chQXMxzznlSNAWOFv4hxt0LYczZnfsHOlgo2g==, tarball: file:projects/maps-geolocation.tgz} name: '@rush-temp/maps-geolocation' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/maps-common': 1.0.0-beta.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/maps-render.tgz: - resolution: {integrity: sha512-UsWhK4PLe8c4SueDX/MzVuOtEwAHCNrHYZHGSwEJ8nFvkT5qBQS0E6v0p87R+7dNE+2hUrXoXV2pYwTbM7NeMg==, tarball: file:projects/maps-render.tgz} + resolution: {integrity: sha512-QAN/KrCWpGIXIWoapOwdtSefJ5ZjzaWvD/yy7sWXZyzFSPftL11l12oXJcE+iBy5409gXNlMuH9ZKj6DgA/tGA==, tarball: file:projects/maps-render.tgz} name: '@rush-temp/maps-render' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/maps-common': 1.0.0-beta.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/maps-route.tgz: - resolution: {integrity: sha512-0ctRSAumdIjIYk2gsJWzoER0exI6GI4XYhIcuVJH1xNf19LCLOw0erfKvdgYnMscP447hOavv+t1DHahw6yUsw==, tarball: file:projects/maps-route.tgz} + resolution: {integrity: sha512-5+w6/ULXCxZtXZhoJ5l7+MKUKaQIx49viOcfYMVGjQw0vi0Tq59nx9Qrl6qWos6BC1kILM5uINp8W47dBpCNWA==, tarball: file:projects/maps-route.tgz} name: '@rush-temp/maps-route' version: 0.0.0 dependencies: '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@azure/core-lro': 2.7.2 '@azure/maps-common': 1.0.0-beta.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/maps-search.tgz: - resolution: {integrity: sha512-X/aBErvhTJe1CqpWhvb7NuzkbSSNzua6ZCpZj7zq43E9KiyvZPm47NcdNTZUXs0UCP+NnH2k+RXzU8ihSCSQqQ==, tarball: file:projects/maps-search.tgz} + resolution: {integrity: sha512-3L9N9SrTi+SdvxB/8TQWgZDIuBtS6ODj8qc+QNqdc5XyToQop38/Hh6GV+xVt+W28umT3ZufBQbz9dA5McL/6w==, tarball: file:projects/maps-search.tgz} name: '@rush-temp/maps-search' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@azure/maps-common': 1.0.0-beta.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/microsoft-playwright-testing.tgz: - resolution: {integrity: sha512-5ZtQtASg+gjAwV0BZ3pqTl2taVn2mW46wnhVjYnUhjn08xDzhaRqPvupmTT6S4Nfc1TcP+J/dQWhqEqwD22HGw==, tarball: file:projects/microsoft-playwright-testing.tgz} + resolution: {integrity: sha512-LOfcpsGhkCQlf/ONHLHqjTVgWCasb0ImH6OcRwRpzkO4ybQbiAi4eQvnD2CVwpoa3crRHI9hebbLeSvBsBKAVA==, tarball: file:projects/microsoft-playwright-testing.tgz} name: '@rush-temp/microsoft-playwright-testing' version: 0.0.0 dependencies: - '@azure/storage-blob': 12.25.0 - '@playwright/test': 1.48.2 + '@playwright/test': 1.49.0 '@types/debug': 4.1.12 - '@types/mocha': 10.0.9 - '@types/node': 20.17.6 + '@types/mocha': 10.0.10 + '@types/node': 20.17.8 '@types/sinon': 17.0.3 - eslint: 9.14.0 + eslint: 9.15.0 mocha: 10.8.2 sinon: 17.0.1 tslib: 2.8.1 @@ -21480,7 +21895,7 @@ packages: dev: false file:projects/mixed-reality-authentication.tgz: - resolution: {integrity: sha512-3oEtedYQWqsu6CcXIdRArmA/BDyKw0z7JJK2ZClXwsrrSChe21w33/rn0O1/5On5D6adAxHj/yVeNJpya+N1Cg==, tarball: file:projects/mixed-reality-authentication.tgz} + resolution: {integrity: sha512-hIZoFTkE8J6rHj93GQHuFB05PUPHWq+LiWgFIacamW2tTo1Ej1Q1+04Y4RUdZiaUTEPrrWgVM2hKKclbLO2pTA==, tarball: file:projects/mixed-reality-authentication.tgz} name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: @@ -21488,25 +21903,25 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 chai-as-promised: 7.1.2(chai@4.3.10) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) karma-sourcemap-loader: 0.3.8 mocha: 10.8.2 nyc: 17.1.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -21521,7 +21936,7 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-oRY18e2LnLfvlnwWYOKGsiDe6/Sd1XJl/IHWpJ8pAgywNe5S2/GGsP8LZDBVmN05YBjnZV89R0QUJFxSBul+lg==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-LR01bnuhUjLmqWd+4Ti/9Dywdu8VzgOZEi8mjK9OX0DQeXH9BItASAMtCrmzSwffCdEORSMg8jbFXb1wAjFO/w==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: @@ -21529,19 +21944,19 @@ packages: '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/uuid': 8.3.4 chai: 4.3.10 chai-as-promised: 7.1.2(chai@4.3.10) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.4) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.4) @@ -21549,7 +21964,7 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.4) mocha: 10.8.2 nyc: 17.1.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -21569,15 +21984,15 @@ packages: name: '@rush-temp/mock-hub' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 rhea: 3.0.3 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/browser' @@ -21594,6 +22009,8 @@ packages: - sugarss - supports-color - terser + - tsx + - yaml dev: false file:projects/monitor-ingestion.tgz: @@ -21601,40 +22018,17 @@ packages: name: '@rush-temp/monitor-ingestion' version: 0.0.0 dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/pako': 2.0.3 - '@types/sinon': 17.0.3 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - chai: 4.3.10 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - inherits: 2.0.4 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-json-preprocessor: 0.3.3(karma@6.4.4) - karma-json-to-file-reporter: 1.0.1 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - mocha: 10.8.2 - nyc: 17.1.0 + eslint: 9.15.0 pako: 2.1.0 - playwright: 1.48.2 - sinon: 17.0.1 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - util: 0.12.5 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -21652,37 +22046,39 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/monitor-opentelemetry-exporter.tgz: - resolution: {integrity: sha512-yN4UDMwFzZwO1YWZsdRWEG4ZEO6T0Tp0M38HOwaX5n3dgeWu6rwNPxsbYDsYleQtFSo6opDOyiadTw1Yh1vnTw==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-0VIQPgToKmqe3LLOimazhF7mNr9QLYfopAFLP/2is/l8UOKnEhmj3McflVLq5viuYv0fAI2Xp2P8UH+48x8CsA==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.54.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation-http': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-logs': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-metrics': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-node': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/semantic-conventions': 1.27.0 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - dotenv: 16.4.5 - eslint: 9.14.0 - nock: 13.5.5 - playwright: 1.48.2 - tslib: 2.8.1 - typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + '@opentelemetry/api-logs': 0.55.0 + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation-http': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-logs': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-metrics': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-node': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/semantic-conventions': 1.28.0 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + dotenv: 16.4.5 + eslint: 9.15.0 + nock: 13.5.6 + playwright: 1.49.0 + tslib: 2.8.1 + typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -21700,13 +22096,15 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-wKbulEFt2AE8WQIq4+nnQT7OVVWGICAfkenXCHK602/xD6dke5lmuVUC/uTG1wApPSMqzSmmWXKkSgiMU+4LgA==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-SqkTFQ9XDW6780y/y4kwohv9eV+fi/f4jqDjPwOW1Y0+Uz1gQLssjbSPaTnRDiTa9i+tJLLUiTE/VeV9BCtDUA==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: @@ -21714,33 +22112,33 @@ packages: '@azure/functions-old': /@azure/functions@3.5.1 '@microsoft/applicationinsights-web-snippet': 1.2.1 '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.54.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation-bunyan': 0.42.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation-http': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation-mongodb': 0.48.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation-mysql': 0.42.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation-pg': 0.47.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation-redis': 0.43.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation-redis-4': 0.43.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation-winston': 0.41.0(@opentelemetry/api@1.9.0) - '@opentelemetry/resource-detector-azure': 0.2.12(@opentelemetry/api@1.9.0) - '@opentelemetry/resources': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-logs': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-metrics': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-node': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-node': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/semantic-conventions': 1.27.0 - '@opentelemetry/winston-transport': 0.7.0 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@opentelemetry/api-logs': 0.55.0 + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation-bunyan': 0.43.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation-http': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation-mongodb': 0.49.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation-mysql': 0.43.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation-pg': 0.48.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation-redis': 0.44.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation-redis-4': 0.44.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation-winston': 0.42.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resource-detector-azure': 0.3.0(@opentelemetry/api@1.9.0) + '@opentelemetry/resources': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-logs': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-metrics': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-node': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-node': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/semantic-conventions': 1.28.0 + '@opentelemetry/winston-transport': 0.8.0 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 mocha: 10.8.2 - nock: 13.5.5 + nock: 13.5.6 nyc: 17.1.0 sinon: 17.0.1 tslib: 2.8.1 @@ -21752,22 +22150,22 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-EKdPsjXBWId0iA7f+D4USmms7S4nuTxT6R2iDeg5hfnKyvqRmfboyle3PH2vuIsJYeDzGZwLyMKoujlg4/b0Yg==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-9g40nZJQraBhs00SI0bhtABIQoOPM7dM9BoyQexZKVcVfcK4IuUbXeiKkIuIzoTi29aosXakOmRDUQqBDQBDPA==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/sdk-trace-base': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-node': 1.27.0(@opentelemetry/api@1.9.0) - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@opentelemetry/sdk-trace-base': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-node': 1.28.0(@opentelemetry/api@1.9.0) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -21785,9 +22183,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/notification-hubs.tgz: @@ -21795,16 +22195,16 @@ packages: name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6)(tsx@4.19.2) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -21825,6 +22225,7 @@ packages: - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/openai.tgz: @@ -21832,16 +22233,16 @@ packages: name: '@rush-temp/openai' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - openai: 4.70.2 - playwright: 1.48.2 + eslint: 9.15.0 + openai: 4.73.1 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -21860,31 +22261,33 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml - zod dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-YmUPc0ou+NEC2aPrjiYxlEHx0UOAcQOipjVW7dWULAHEW71XWw2vGlU5SuLS93P3Rz64hQsjDmLVwHVHRlWKtQ==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-j4jZQSrXrI310NB0Z7+SkHC52HmR4ezkGFRtaKwIj1lvDbi7qqjgzrEEqVm1ueHl0ipaNmZ1vZJyIqWoZCqZow==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/core': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/instrumentation': 0.54.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-base': 1.27.0(@opentelemetry/api@1.9.0) - '@opentelemetry/sdk-trace-node': 1.27.0(@opentelemetry/api@1.9.0) - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@opentelemetry/core': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/instrumentation': 0.55.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-base': 1.28.0(@opentelemetry/api@1.9.0) + '@opentelemetry/sdk-trace-node': 1.28.0(@opentelemetry/api@1.9.0) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - playwright: 1.48.2 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -21902,9 +22305,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/perf-ai-form-recognizer.tgz: @@ -21912,10 +22317,10 @@ packages: name: '@rush-temp/perf-ai-form-recognizer' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -21930,10 +22335,10 @@ packages: name: '@rush-temp/perf-ai-language-text' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -21948,10 +22353,10 @@ packages: name: '@rush-temp/perf-ai-metrics-advisor' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -21966,10 +22371,10 @@ packages: name: '@rush-temp/perf-ai-text-analytics' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -21985,10 +22390,10 @@ packages: version: 0.0.0 dependencies: '@azure/app-configuration': 1.5.0-beta.2 - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22003,10 +22408,10 @@ packages: name: '@rush-temp/perf-container-registry' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22022,15 +22427,15 @@ packages: version: 0.0.0 dependencies: '@types/express': 4.17.21 - '@types/node': 18.19.64 + '@types/node': 18.19.66 concurrently: 8.2.2 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 express: 4.21.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 - undici: 6.20.1 + undici: 6.21.0 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -22043,10 +22448,10 @@ packages: name: '@rush-temp/perf-data-tables' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22061,12 +22466,12 @@ packages: name: '@rush-temp/perf-event-hubs' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/uuid': 8.3.4 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 moment: 2.30.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 uuid: 8.3.2 @@ -22082,10 +22487,10 @@ packages: name: '@rush-temp/perf-eventgrid' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22100,11 +22505,11 @@ packages: name: '@rush-temp/perf-identity' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/uuid': 8.3.4 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22119,11 +22524,11 @@ packages: name: '@rush-temp/perf-keyvault-certificates' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/uuid': 8.3.4 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 uuid: 8.3.2 @@ -22139,11 +22544,11 @@ packages: name: '@rush-temp/perf-keyvault-keys' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/uuid': 8.3.4 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 uuid: 8.3.2 @@ -22159,11 +22564,11 @@ packages: name: '@rush-temp/perf-keyvault-secrets' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/uuid': 8.3.4 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 uuid: 8.3.2 @@ -22179,10 +22584,10 @@ packages: name: '@rush-temp/perf-monitor-ingestion' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22193,16 +22598,16 @@ packages: dev: false file:projects/perf-monitor-opentelemetry.tgz: - resolution: {integrity: sha512-xWGcZvawsTQYHLWzs75ecTospBPJ0ig2tU7+H/5b97xvfO+M29pnS+rtVFIAKUa+GtOEUtYbMITQzo6SzL2+/A==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-/pYMxuI2HSlzyv5V+fT9y3NLkd1hfjwON1q0588fSZ8mAR8gdupjauyfWGxVsc4gXWKvp1IvxAV6KgYdA3v2wg==, tarball: file:projects/perf-monitor-opentelemetry.tgz} name: '@rush-temp/perf-monitor-opentelemetry' version: 0.0.0 dependencies: '@opentelemetry/api': 1.9.0 - '@opentelemetry/api-logs': 0.53.0 - '@opentelemetry/sdk-logs': 0.53.0(@opentelemetry/api@1.9.0) - '@types/node': 18.19.64 + '@opentelemetry/api-logs': 0.55.0 + '@opentelemetry/sdk-logs': 0.55.0(@opentelemetry/api@1.9.0) + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22215,10 +22620,10 @@ packages: name: '@rush-temp/perf-monitor-query' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22234,10 +22639,10 @@ packages: version: 0.0.0 dependencies: '@azure/schema-registry': 1.3.0 - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22253,10 +22658,10 @@ packages: version: 0.0.0 dependencies: '@azure/search-documents': 12.0.0-beta.4 - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22271,11 +22676,11 @@ packages: name: '@rush-temp/perf-service-bus' version: 0.0.0 dependencies: - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/uuid': 8.3.4 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 uuid: 8.3.2 @@ -22287,15 +22692,14 @@ packages: dev: false file:projects/perf-storage-blob.tgz: - resolution: {integrity: sha512-bP40paE6XWSxK1NI6IqTFa3TnZ/KV+oOwXvHOlWlnpDa6vHxzuVaSLO22jn2HKpusBkvMhL2znxbrnglHkXp7Q==, tarball: file:projects/perf-storage-blob.tgz} + resolution: {integrity: sha512-gC/6yI3RAsLz8yW4HuwmY/hZJdfQ4WpTasQrnaGM2o0ADvshX7BbTMziACBVC1IJ+SZS0f25nzWdMrf1cKEPUA==, tarball: file:projects/perf-storage-blob.tgz} name: '@rush-temp/perf-storage-blob' version: 0.0.0 dependencies: - '@azure/storage-blob': 12.25.0 - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22306,15 +22710,14 @@ packages: dev: false file:projects/perf-storage-file-datalake.tgz: - resolution: {integrity: sha512-lOYRq0haEkX/2PuDMltoOo+lVVv6qQ6vg9V9bTtsf49Dw0Cl+6GBEzEdY5zzfK/QJj8GqH0BDKJe9SH0dFtnuw==, tarball: file:projects/perf-storage-file-datalake.tgz} + resolution: {integrity: sha512-/Ci5NG7Th6jCRFjxNQnQIN066A0l8K8hkuTPVCvaChixw0hduEm6MN1HeVT+Qmwkko8uVFlLNu1s7HgLwy8rLw==, tarball: file:projects/perf-storage-file-datalake.tgz} name: '@rush-temp/perf-storage-file-datalake' version: 0.0.0 dependencies: - '@azure/storage-file-datalake': 12.24.0 - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22325,15 +22728,14 @@ packages: dev: false file:projects/perf-storage-file-share.tgz: - resolution: {integrity: sha512-2xwPxzCMbVfYgHjYiUFtyHhpNoU3rDDiz8voS+JIJni80uABgbEZbbTqb/sGDiMkix0lky1xHLBgplcoq50p8g==, tarball: file:projects/perf-storage-file-share.tgz} + resolution: {integrity: sha512-PA4GNlP5egvK17bRRWDzOrPQgQ87ZxFP+UzUQxy/Wa1NwuHJdBlcsa8P3do4HTkD0UpSzTyeNQ5P7X2etFM+8A==, tarball: file:projects/perf-storage-file-share.tgz} name: '@rush-temp/perf-storage-file-share' version: 0.0.0 dependencies: - '@azure/storage-file-share': 12.25.0 - '@types/node': 18.19.64 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22344,292 +22746,276 @@ packages: dev: false file:projects/perf-template.tgz: - resolution: {integrity: sha512-JFCNoKOfUy/Fpku2+O3FUNBUQizLMDZLTCA2LfIMd6O1RFZB8nddRc+x9VNhMhmPhIAaAhg03Z2iZLlTiHEJZw==, tarball: file:projects/perf-template.tgz} + resolution: {integrity: sha512-i6UEyKvgmn6FvOtrhdZkwnXMGsvbMgShf5YRJPf65eSnu8HDC3xx0eo0Cx86HwcjLohRuNa4GorVT7+b5h1BHA==, tarball: file:projects/perf-template.tgz} name: '@rush-temp/perf-template' version: 0.0.0 dependencies: - '@azure/app-configuration': 1.5.0-beta.2 - '@types/node': 18.19.64 + '@azure/app-configuration': 1.8.0 + '@azure/template': 1.0.13-beta.1 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - jiti - supports-color dev: false file:projects/purview-administration.tgz: - resolution: {integrity: sha512-TSXTLbmzjVD0vT9WNatMO9fP3kPbxPz8j0tA15zV9Aro/jCxAnZI83RW/PBXF9sl331aoxlbxccx+wy0Hdy3Gg==, tarball: file:projects/purview-administration.tgz} + resolution: {integrity: sha512-sgg4tkB4l9zyjfabBh9sUFhifmfGF+ntAIAb2e9vsDSCi1ttSW6dQHrKx5IFCKwz3b0Cl0DaeRMwS8j4e8hecQ==, tarball: file:projects/purview-administration.tgz} name: '@rush-temp/purview-administration' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/purview-catalog.tgz: - resolution: {integrity: sha512-mpDALPQmS1Z/2Hfs1wggKivfldnUd+8+wUY3p1hnDoGbV6jnx+xxTkeIq+38xu6ZeRwFAaHYWlg2YK5q8zMjmA==, tarball: file:projects/purview-catalog.tgz} + resolution: {integrity: sha512-P4T1DLaTzNfhCfRSS/tZTK6wVBW2sBDaf9tAw6qOqvlz3ZPkJ5vTGehSROpmF8eDPloYnN7IaDtM/Pdi3d2d/w==, tarball: file:projects/purview-catalog.tgz} name: '@rush-temp/purview-catalog' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/purview-datamap.tgz: - resolution: {integrity: sha512-BQvuMAyKroJNxkBH2X6hn/6SBM8ecQoNOu9e7fjZWIPBosCExeU7XA2Wv0emr7bLMmhwG6yzaB9xjpvsHNv+Eg==, tarball: file:projects/purview-datamap.tgz} + resolution: {integrity: sha512-7oiGt2hH9ZkCV8TyJRw6R4MvjW1O2ULh5uJ+cg3GIx4BKR1bcZYk73h9m4k56lwo15yDon0raH0UmjfoNb7Rng==, tarball: file:projects/purview-datamap.tgz} name: '@rush-temp/purview-datamap' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.3 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.4.0 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/purview-scanning.tgz: - resolution: {integrity: sha512-wg5mFlbl2PbEKiyp4WBthQc+6gEWxE2G2HhlBFN3KbVeuxlqBnecCDBxTmZr5d4LPzOw7ImbD9I8emdRZpmN8g==, tarball: file:projects/purview-scanning.tgz} + resolution: {integrity: sha512-4060O8WtwjIXcuZEqtihG9mNZBUsaY5vEBCXdX/KgZdDyAdxaz+ly58sFqmPVhQrrsFcEAoiK3eM3d1aT02/LQ==, tarball: file:projects/purview-scanning.tgz} name: '@rush-temp/purview-scanning' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/purview-sharing.tgz: - resolution: {integrity: sha512-gPIgrn/dlEXISMEAYe+mLIICGr1dV6X3uC91w51TcJ87u5jwjOUDtlj5cxxlmjnySIPUARk4QNDvRl1aNUETjg==, tarball: file:projects/purview-sharing.tgz} + resolution: {integrity: sha512-7I95FPCB1deMsV/SaCRhORc5RRUsCrw5eHZLOvt2Ij5fF2cIOCv6nvAi0qlzyOwxZsbMSh21qJenVxLx25gVIQ==, tarball: file:projects/purview-sharing.tgz} name: '@rush-temp/purview-sharing' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/purview-workflow.tgz: - resolution: {integrity: sha512-mAgnXp2a4X6MCPz1WJR26h73cE3mUD4bvjB1jct7mqRWv0mCN0uaYZfqhhDYFVozgTiY+xIiBSyyrIDDbjJY8w==, tarball: file:projects/purview-workflow.tgz} + resolution: {integrity: sha512-cdYtC2hiHpniV2a3lK+YjL72OLtV5ekUtCffOgqU4O0DlyPAPhVKzEP5PU3jzfgsGtwzPwcL4r9AJFIUQIMB+w==, tarball: file:projects/purview-workflow.tgz} name: '@rush-temp/purview-workflow' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) autorest: 3.7.1 - chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-LcPcq+CQlLRl1qN04ARwMlUE2OQi7Bef8aO8uqXIxhejiYFVDLUvtES/oJPoqRTAcYiNs0+6dW7DV/tlyyncdQ==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-1klhp8mezs4wRSJHc86lzMqH4vCtP8AEgdnPWyyQ54FhWw8xpHjBXDxNffumdJDlI+ZpOawvsczRsqMR7Wgw+w==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 - '@azure/storage-blob': 12.25.0 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) @@ -22637,7 +23023,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -22657,23 +23043,23 @@ packages: version: 0.0.0 dependencies: '@azure/schema-registry': 1.3.0 - '@rollup/plugin-inject': 5.0.5(rollup@4.24.4) - '@types/node': 18.19.64 + '@rollup/plugin-inject': 5.0.5(rollup@4.27.4) + '@types/node': 18.19.66 '@types/uuid': 8.3.4 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) avsc: 5.7.7 buffer: 6.0.3 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 lru-cache: 10.4.3 - playwright: 1.48.2 + playwright: 1.49.0 process: 0.11.10 stream: 0.0.3 tslib: 2.8.1 typescript: 5.6.3 uuid: 8.3.2 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -22692,29 +23078,31 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/schema-registry-json.tgz: - resolution: {integrity: sha512-+04dC5VJEQCu+S7YYq/2j+f59MtvVfBy/tt38oeS6sqnce/k3GeXVOOvdHs9iAtghp33OK56GqXiSOnL3V6tPw==, tarball: file:projects/schema-registry-json.tgz} + resolution: {integrity: sha512-J/R0tUT5fzAYXoYtTWaKf37oo5dSMJhebBHhfdnMMAxkKfO78DVwIMadUE91wv2CZ4p56zPefORTsWErHNPNww==, tarball: file:projects/schema-registry-json.tgz} name: '@rush-temp/schema-registry-json' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@azure/schema-registry': 1.3.0 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 ajv: 8.17.1 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.4) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.4) @@ -22724,7 +23112,7 @@ packages: lru-cache: 10.4.3 mocha: 10.8.2 nyc: 17.1.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22738,21 +23126,21 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-FUgpf2fv08rxi0qzUB1wK4yoAbsAvcHJpxCsCteBgTIZCRS0AYot/AFJRksEMCVkJ8/TBj12aSg/NAYAUBGHzQ==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-cV1YfaW7G3fU0JPawhjZA5suunxV4Sc9ROHcGzFYcBG2MkVqltpKmLXGYPPwwTUEV7n+YV7p0HNnSL7B5qC/UQ==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.4) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.4) @@ -22761,7 +23149,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.8.2 nyc: 17.1.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -22775,26 +23163,26 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-6DIKtC5IocI0eB9weBWdB447cdsRXbagOeSGpXWtpqThYzMmeagZw42XyGazuc+GvYVYnPMSZvbzV6QA4AwX7A==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-8YCD+t6qJKJwWqQ/Naao8ExK2lQjxDtpDL4YUmK6k312+QN7zwxzDkRYEcnIjm3F2EvcGcY3yUiMbDIIl9QCkQ==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 3.5.2 '@azure/openai': 1.0.0-beta.12 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.4) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.4) @@ -22804,7 +23192,7 @@ packages: mocha: 10.8.2 nyc: 17.1.0 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.3.3) tslib: 2.8.1 type-plus: 7.6.2 typescript: 5.3.3 @@ -22824,34 +23212,34 @@ packages: name: '@rush-temp/service-bus' version: 0.0.0 dependencies: - '@rollup/plugin-inject': 5.0.5(rollup@4.24.4) + '@rollup/plugin-inject': 5.0.5(rollup@4.27.4) '@types/chai-as-promised': 8.0.1 '@types/debug': 4.1.12 '@types/is-buffer': 2.0.2 - '@types/node': 18.19.64 + '@types/node': 18.19.66 '@types/uuid': 8.3.4 '@types/ws': 7.4.7 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) buffer: 6.0.3 chai: 5.1.2 - chai-as-promised: 8.0.0(chai@5.1.2) + chai-as-promised: 8.0.1(chai@5.1.2) chai-exclude: 3.0.0(chai@5.1.2) debug: 4.3.7(supports-color@8.1.1) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 https-proxy-agent: 7.0.5 is-buffer: 2.0.5 jssha: 3.3.1 long: 5.2.3 - playwright: 1.48.2 + playwright: 1.49.0 process: 0.11.10 rhea-promise: 3.0.3 tslib: 2.8.1 typescript: 5.6.3 uuid: 8.3.2 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) ws: 8.18.0 transitivePeerDependencies: - '@edge-runtime/vm' @@ -22871,34 +23259,35 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-g3z0U7sH8A+7aPtYY/h7NmhPoYx4N12mE1GyVw0EENN4iO6jFRVFh4r8y1qcfPXCUewloCiPfF2DxwZR8KmyXg==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-rChvDY+jZ3y66M9WZpo3RXw66M63Ke4wdaRyCgyYQ/xEWQv8SVzha5u/cAf/eEDzo+dqdz7Nit8voOAWS5Fo4A==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@azure/storage-blob': 12.25.0 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 chai: 4.3.10 dotenv: 16.4.5 es6-promise: 4.2.8 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.4) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.4) @@ -22907,10 +23296,10 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.8.2 nyc: 17.1.0 - puppeteer: 23.7.0(typescript@5.6.3) + puppeteer: 23.9.0(typescript@5.6.3) sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -22925,7 +23314,7 @@ packages: dev: false file:projects/storage-blob.tgz: - resolution: {integrity: sha512-tLXMghK2zBAg2Xu7p8ZD7UWDt1+h72wfHikoECrSHNPY33/mEj3yHis8XgnsczYKdXKY0PaV5YD8/sfIDS8sUg==, tarball: file:projects/storage-blob.tgz} + resolution: {integrity: sha512-GM0+E284qr6AcJ08tcb2AcizAP6optptQOXpMpJxJVBsoFuYUVyghZtk6mEE992MJV8SRc+guWscppusRF6JfA==, tarball: file:projects/storage-blob.tgz} name: '@rush-temp/storage-blob' version: 0.0.0 dependencies: @@ -22933,28 +23322,28 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 es6-promise: 4.2.8 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) karma-sourcemap-loader: 0.3.8 mocha: 10.8.2 nyc: 17.1.0 - puppeteer: 23.7.0(typescript@5.6.3) + puppeteer: 23.9.0(typescript@5.6.3) source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -22969,20 +23358,20 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-0S+88/SFOzE4eUYtKCMMikxfTh8NzfL5hEGTleZyl+URlPSpUBt/SJE35R9OlVOI+ihfc9RE66XdsYktjy5SBQ==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-yAoj31VtAud8gXiyicLgx/40rpFcpXg61eD88ARTkePcL6gGyqNAM8gtIaKA2/8rvHqSUpZWWvwL3ZDicjj1qA==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 chai: 4.3.10 dotenv: 16.4.5 es6-promise: 4.2.8 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 execa: 6.1.0 inherits: 2.0.4 @@ -22990,7 +23379,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-ie-launcher: 1.0.0(karma@6.4.4) karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 @@ -22998,10 +23387,10 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.8.2 nyc: 17.1.0 - puppeteer: 23.7.0(typescript@5.6.3) + puppeteer: 23.9.0(typescript@5.6.3) sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -23016,38 +23405,37 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-YwK1nFzjoDaHcHuGiKSexyTzZmiRARdZ6VeWkvXMmmOckWkIzYfcUkwEnIhU60ban96FVT/6BrczNFgvHMOCUg==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-3wsuOatFgt/+CNvfmLQqXyj27WiDouP9EBW18/ylo2g+6qsjma4e/vERPG7bHqjaP9aroE4o/s3/9SEZN/1mBQ==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 - '@azure/storage-blob': 12.25.0 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 chai: 4.3.10 dotenv: 16.4.5 es6-promise: 4.2.8 - eslint: 9.14.0 + eslint: 9.15.0 events: 3.3.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) karma-sourcemap-loader: 0.3.8 mocha: 10.8.2 nyc: 17.1.0 - puppeteer: 23.7.0(typescript@5.6.3) + puppeteer: 23.9.0(typescript@5.6.3) sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -23062,32 +23450,32 @@ packages: dev: false file:projects/storage-internal-avro.tgz: - resolution: {integrity: sha512-SglqrWttikVc/VLAUSYZRqf4RVhpgsPsdjOPva54swsUWeSIvWte7s/5WM3O6QgtrGA27RVFzXzYWwf9yzlAyg==, tarball: file:projects/storage-internal-avro.tgz} + resolution: {integrity: sha512-2/b7G0Iiufhu4j2foCdmSudSu8K2sJQXezR2aT5k/yaBAXNmwyWv0GRGIj2yTJwr6mevb4SzZxG7P5sSxboBbw==, tarball: file:projects/storage-internal-avro.tgz} name: '@rush-temp/storage-internal-avro' version: 0.0.0 dependencies: '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 es6-promise: 4.2.8 - eslint: 9.14.0 + eslint: 9.15.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) karma-sourcemap-loader: 0.3.8 mocha: 10.8.2 nyc: 17.1.0 - puppeteer: 23.7.0(typescript@5.6.3) + puppeteer: 23.9.0(typescript@5.6.3) source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -23102,35 +23490,34 @@ packages: dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-7PfyEm0o178jiAjKrXJJ/BGBF09A1GzA3dTgPIPNQ6Y4XJitrpDIm4jliYFQYvoiJgBDG2zvzjNP2Z4HCa2sCw==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-Bzntrsw6BeXydXyVg8GShcAqGlhTyIk41mXoir+ySY1FhNavDbHmfapDnw7zICn3OOLhL5fCeNRupxB174Giow==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 - '@azure/storage-blob': 12.25.0 '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 chai: 4.3.10 dotenv: 16.4.5 es6-promise: 4.2.8 - eslint: 9.14.0 + eslint: 9.15.0 inherits: 2.0.4 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.4) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.4) karma-sourcemap-loader: 0.3.8 mocha: 10.8.2 nyc: 17.1.0 - puppeteer: 23.7.0(typescript@5.6.3) + puppeteer: 23.9.0(typescript@5.6.3) source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -23145,311 +23532,288 @@ packages: dev: false file:projects/synapse-access-control-1.tgz: - resolution: {integrity: sha512-qlA5jXPaiKV9bQrlIn2U/vaLaPgSF/bpjVLxUwCCclLJqZVz1ehQeUue5bXKK+w56tHIIivYr3wvMi5l0Mdf0A==, tarball: file:projects/synapse-access-control-1.tgz} + resolution: {integrity: sha512-PsDI9ixsWoG5tbuoB6Wd2BVZZvqY2rHjdfrUQu8RK+vGxCFhm9sYPNZ/u7SCk7Twm/eZCi7FtlHClXTiWhKSAg==, tarball: file:projects/synapse-access-control-1.tgz} name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - chai: 4.3.10 - chai-as-promised: 7.1.2(chai@4.3.10) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - sinon: 17.0.1 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/synapse-access-control.tgz: - resolution: {integrity: sha512-Ygq8BhZRt1y5gIyWYIsWJsZ+mpMUg9vgh9hkhAjXVnLrecmqVNbn+YDw4DY88UB7y+afWW5WEcYAGUDyevPeYQ==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-9xdlw5x0quMLB/SC77TKuY4c9igb2+HFgbGAKlE/RoEe0xa9azz9mACQzrzEipqEkmcETcTuIyvGXzJHEi6KXw==, tarball: file:projects/synapse-access-control.tgz} name: '@rush-temp/synapse-access-control' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - chai: 4.3.10 - chai-as-promised: 7.1.2(chai@4.3.10) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-json-preprocessor: 0.3.3(karma@6.4.4) - karma-json-to-file-reporter: 1.0.1 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/synapse-artifacts.tgz: - resolution: {integrity: sha512-lT2WxvoGEfgc4Q6QE2r2DG+52BU5wFRdMPWmZTCkKCsJIOwBVmhV3ewHJlHEFEbhLxQuyqxYwoMaCSvChPKcgQ==, tarball: file:projects/synapse-artifacts.tgz} + resolution: {integrity: sha512-5rjggfXNlltSIRafPLODuubz9l0qMTDLyDbF9fMNGQxiCs+CQ9CHFxYu26bL3bC8FkqKbFzi9TntWrWX1F/TYw==, tarball: file:projects/synapse-artifacts.tgz} name: '@rush-temp/synapse-artifacts' version: 0.0.0 dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 - chai: 4.3.10 - chai-as-promised: 7.1.2(chai@4.3.10) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-json-preprocessor: 0.3.3(karma@6.4.4) - karma-json-to-file-reporter: 1.0.1 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - sinon: 17.0.1 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-M8Tqc7HZYLwzaffD0npPj+8au49x82iVNX3VkLArIkCzyUsL22HqOx5witrWIvRIW/iEqKJsMYnXs1m70jWVAw==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-Zpd22jZb08NobyWIJwBybVo2rLF1jcIPtcPosR7Gtuv286aRX2tdD1ki14DasDmhtox1Ey6EiUkx9gtq9+W5sw==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - chai: 4.3.10 - chai-as-promised: 7.1.2(chai@4.3.10) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/synapse-monitoring.tgz: - resolution: {integrity: sha512-ye5ZB6xij2A1rB7serjsWBPhjRxD80yGU/2zoQCTag6vG0M/BbvhAXu+x0ThaO6Bvvb5kMrDp5ghHIBqjFMbfw==, tarball: file:projects/synapse-monitoring.tgz} + resolution: {integrity: sha512-I5BQzGL2nrC0KkDbMwt6You5P/21te8gmwJkGNLZWeVLEQ2L8eZoRCwIbx8cDd45uTn6qLM6gKqRylQLnOBm0g==, tarball: file:projects/synapse-monitoring.tgz} name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-mR+UC0KxnetVOrs2A2JtB9fOMljSDToc7UfLsrDTOcHFdZTUbbriZXtNJmudut/RXjJ9PloV9S4qMbQab3/e4w==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-7VuuV5NynayhACA7upeM3teS3wfatr9zrVsViPOWaY9D2pg63KDr3duw0olTfwdDyIzFvraUWChLH1YGesC9Wg==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - chai: 4.3.10 - chai-as-promised: 7.1.2(chai@4.3.10) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-source-map-support: 1.4.0 - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/template-dpg.tgz: - resolution: {integrity: sha512-wYF0Ghijqe5ChRQ1Mm3WPgFCrVjGItpUywmLmFcIjFev16RdOA0aQf3YpC6tvVBZHM00vuW+GJ+aEpAdUL9ZAQ==, tarball: file:projects/template-dpg.tgz} + resolution: {integrity: sha512-UJwkAC81L049EHeAKs0ou6XCuvhFYRC0eddCEuuTg5a9/y65Jm/zVZQm9WieV/cIgQVUcQSH6zz/4Fg7jqnvvg==, tarball: file:projects/template-dpg.tgz} name: '@rush-temp/template-dpg' version: 0.0.0 dependencies: - '@azure-rest/core-client': 1.4.0 - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - chai: 4.3.10 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-edge-launcher: 0.4.2(karma@6.4.4) - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.3 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - puppeteer: 23.7.0(typescript@5.6.3) - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - util: 0.12.5 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false file:projects/template.tgz: - resolution: {integrity: sha512-Vc/FTk71GLJxhhRPmo2aqP4uc1wpf6iqgin1Gq6gouqJdvmeZwC46SoYt+oh9jiqGjz6BiIR5sieK8l4KlHQuQ==, tarball: file:projects/template.tgz} + resolution: {integrity: sha512-e1OZUpDtuUT9uqmUoX+mbLvb256x5QU3krHiQ9CWTtQG0qy7VibCTWyPtP9dyQzpzR70XgUqlHYRNKrylWKWaA==, tarball: file:projects/template.tgz} name: '@rush-temp/template' version: 0.0.0 dependencies: '@azure/core-lro': 2.7.2 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 loupe: 3.1.2 - playwright: 1.48.2 + playwright: 1.49.0 source-map-support: 0.5.21 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -23467,9 +23831,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/test-credential.tgz: @@ -23477,9 +23843,9 @@ packages: name: '@rush-temp/test-credential' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - eslint: 9.14.0 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + '@types/node': 18.19.66 + eslint: 9.15.0 + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -23496,15 +23862,15 @@ packages: dependencies: '@types/fs-extra': 11.0.4 '@types/minimist': 1.2.5 - '@types/node': 18.19.64 - eslint: 9.14.0 + '@types/node': 18.19.66 + eslint: 9.15.0 fs-extra: 11.2.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 minimist: 1.2.8 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -23522,16 +23888,16 @@ packages: name: '@rush-temp/test-recorder' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) concurrently: 8.2.2 - eslint: 9.14.0 + eslint: 9.15.0 express: 4.21.1 - playwright: 1.48.2 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -23549,9 +23915,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/test-utils-vitest.tgz: @@ -23560,15 +23928,15 @@ packages: version: 0.0.0 dependencies: '@opentelemetry/api': 1.9.0 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - '@vitest/expect': 2.1.4 - eslint: 9.14.0 - playwright: 1.48.2 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + '@vitest/expect': 2.1.6 + eslint: 9.15.0 + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -23586,9 +23954,11 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/test-utils.tgz: @@ -23600,20 +23970,20 @@ packages: '@opentelemetry/api': 1.9.0 '@types/chai': 4.3.20 '@types/chai-as-promised': 7.1.8 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 chai: 4.3.10 chai-as-promised: 7.1.2(chai@4.3.10) chai-exclude: 2.1.1(chai@4.3.10) - eslint: 9.14.0 + eslint: 9.15.0 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 mocha: 10.8.2 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: @@ -23631,17 +24001,17 @@ packages: name: '@rush-temp/ts-http-runtime' version: 0.0.0 dependencies: - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) - eslint: 9.14.0 + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) + eslint: 9.15.0 http-proxy-agent: 7.0.2 https-proxy-agent: 7.0.5 - playwright: 1.48.2 + playwright: 1.49.0 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6)(tsx@4.19.2) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -23662,21 +24032,22 @@ packages: - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/vite-plugin-browser-test-map.tgz: - resolution: {integrity: sha512-pflvqvLlAEuFncWSr3DVHuz0uGbrqlcl2ljmXrSaKO+i0cpn/spKDOL53CnDtKz81uXnKSpLCpECDaAxF8zbew==, tarball: file:projects/vite-plugin-browser-test-map.tgz} + resolution: {integrity: sha512-N2fbMcGSQDaMjyppu24TSnRXoyiGmcL9RotrxTdamiXV22j6e8i1zYhpzvRhnhvT5U1XaYtWWXrPnMVM149YSQ==, tarball: file:projects/vite-plugin-browser-test-map.tgz} name: '@rush-temp/vite-plugin-browser-test-map' version: 0.0.0 dependencies: - '@eslint/js': 9.14.0 - '@types/node': 18.19.64 - eslint: 9.14.0 - prettier: 3.3.3 + '@eslint/js': 9.15.0 + '@types/node': 18.19.66 + eslint: 9.15.0 + prettier: 3.4.1 rimraf: 5.0.10 tslib: 2.8.1 typescript: 5.6.3 - typescript-eslint: 8.2.0(eslint@9.14.0)(typescript@5.6.3) + typescript-eslint: 8.16.0(eslint@9.15.0)(typescript@5.6.3) transitivePeerDependencies: - jiti - supports-color @@ -23688,18 +24059,18 @@ packages: version: 0.0.0 dependencies: '@azure/web-pubsub-client': 1.0.0-beta.2 - '@types/node': 18.19.64 - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) cpy-cli: 5.0.0 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 long: 5.2.3 move-file-cli: 3.0.0 protobufjs: 7.4.0 protobufjs-cli: 1.1.3(protobufjs@7.4.0) tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/browser' @@ -23717,11 +24088,13 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate + - yaml dev: false file:projects/web-pubsub-client.tgz: - resolution: {integrity: sha512-LWe1BoHWv+zoZwWKDcUy0JZVANS0qXr6zb180RuXyo6jhcFEdVBAYyqN0GFb7WuMydN83bMv2h6Ws/bEqGXPzQ==, tarball: file:projects/web-pubsub-client.tgz} + resolution: {integrity: sha512-FHqP4W6QpMWigQ7+hjxfb44bM2fSiYx2KtnjvFgrafi5fYxefEN5jIZa/8sm0w1n5P9EUL6b7qi84ennhGMAhw==, tarball: file:projects/web-pubsub-client.tgz} name: '@rush-temp/web-pubsub-client' version: 0.0.0 dependencies: @@ -23730,20 +24103,20 @@ packages: '@types/express': 4.17.21 '@types/express-serve-static-core': 4.19.6 '@types/jsonwebtoken': 9.0.7 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 + '@types/mocha': 10.0.10 + '@types/node': 18.19.66 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 buffer: 6.0.3 chai: 4.3.10 dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 express: 4.21.1 karma: 6.4.4 karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.4) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.4) @@ -23753,10 +24126,10 @@ packages: mocha: 10.8.2 mock-socket: 9.3.1 nyc: 17.1.0 - puppeteer: 23.7.0(typescript@5.6.3) + puppeteer: 23.9.0(typescript@5.6.3) sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + ts-node: 10.9.2(@types/node@18.19.66)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 util: 0.12.5 @@ -23779,15 +24152,15 @@ packages: '@types/express': 4.17.21 '@types/express-serve-static-core': 4.19.6 '@types/jsonwebtoken': 9.0.7 - '@types/node': 18.19.64 - '@vitest/browser': 2.1.4(@types/node@18.19.64)(playwright@1.48.2)(typescript@5.6.3)(vitest@2.1.4) - '@vitest/coverage-istanbul': 2.1.4(vitest@2.1.4) + '@types/node': 18.19.66 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 express: 4.21.1 tslib: 2.8.1 typescript: 5.6.3 - vitest: 2.1.4(@types/node@18.19.64)(@vitest/browser@2.1.4) + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -23806,52 +24179,51 @@ packages: - sugarss - supports-color - terser + - tsx - utf-8-validate - vite - webdriverio + - yaml dev: false file:projects/web-pubsub.tgz: - resolution: {integrity: sha512-DP1BGLo7iPMjZiNWklIJPPxYS7lE3nurONLOIlSMHBH7eieYiQ+ut8QCOaPRvcT+DAwDrkqL1NJat3oyMnMMOw==, tarball: file:projects/web-pubsub.tgz} + resolution: {integrity: sha512-9qOQ3T6D4CiqL/mRmdEK6fl05ZmfXc+F76zy6eQMct15j6XqFy3GODZmdOPpW6BqOrOPbwRvTULlGTR+BcScsA==, tarball: file:projects/web-pubsub.tgz} name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 '@types/jsonwebtoken': 9.0.7 - '@types/mocha': 10.0.9 - '@types/node': 18.19.64 - '@types/sinon': 17.0.3 + '@types/node': 18.19.66 '@types/ws': 8.5.13 - chai: 4.3.10 + '@vitest/browser': 2.1.6(@types/node@18.19.66)(playwright@1.49.0)(typescript@5.6.3)(vitest@2.1.6) + '@vitest/coverage-istanbul': 2.1.6(vitest@2.1.6) dotenv: 16.4.5 - eslint: 9.14.0 + eslint: 9.15.0 jsonwebtoken: 9.0.2 - karma: 6.4.4 - karma-chrome-launcher: 3.2.0 - karma-coverage: 2.2.1 - karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 1.3.0 - karma-junit-reporter: 2.0.1(karma@6.4.4) - karma-mocha: 2.0.1 - karma-mocha-reporter: 2.2.5(karma@6.4.4) - karma-sourcemap-loader: 0.3.8 - mocha: 10.8.2 - nyc: 17.1.0 - puppeteer: 23.7.0(typescript@5.6.3) - sinon: 17.0.1 - source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) + playwright: 1.49.0 tslib: 2.8.1 typescript: 5.6.3 + vitest: 2.1.6(@types/node@18.19.66)(@vitest/browser@2.1.6) ws: 8.18.0 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' - bufferutil - - debug + - happy-dom - jiti + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - tsx - utf-8-validate + - vite + - webdriverio + - yaml dev: false diff --git a/common/scripts/install-run-rush.js b/common/scripts/install-run-rush.js index 9676fc718f97..20f33d19262a 100644 --- a/common/scripts/install-run-rush.js +++ b/common/scripts/install-run-rush.js @@ -16,7 +16,7 @@ /******/ "use strict"; /******/ var __webpack_modules__ = ({ -/***/ 657147: +/***/ 179896: /*!*********************!*\ !*** external "fs" ***! \*********************/ @@ -26,7 +26,7 @@ module.exports = require("fs"); /***/ }), -/***/ 371017: +/***/ 16928: /*!***********************!*\ !*** external "path" ***! \***********************/ @@ -111,9 +111,9 @@ var __webpack_exports__ = {}; !*** ./lib-esnext/scripts/install-run-rush.js ***! \************************************************/ __webpack_require__.r(__webpack_exports__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ 371017); +/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ 16928); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ 657147); +/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ 179896); /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__); // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. diff --git a/common/scripts/install-run.js b/common/scripts/install-run.js index 9283c445267d..b3e921300218 100644 --- a/common/scripts/install-run.js +++ b/common/scripts/install-run.js @@ -16,7 +16,7 @@ /******/ "use strict"; /******/ var __webpack_modules__ = ({ -/***/ 679877: +/***/ 832286: /*!************************************************!*\ !*** ./lib-esnext/utilities/npmrcUtilities.js ***! \************************************************/ @@ -24,12 +24,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "isVariableSetInNpmrcFile": () => (/* binding */ isVariableSetInNpmrcFile), -/* harmony export */ "syncNpmrc": () => (/* binding */ syncNpmrc) +/* harmony export */ isVariableSetInNpmrcFile: () => (/* binding */ isVariableSetInNpmrcFile), +/* harmony export */ syncNpmrc: () => (/* binding */ syncNpmrc) /* harmony export */ }); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fs */ 657147); +/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fs */ 179896); /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ 371017); +/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ 16928); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__); // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. @@ -164,7 +164,7 @@ function isVariableSetInNpmrcFile(sourceNpmrcFolder, variableKey) { /***/ }), -/***/ 532081: +/***/ 535317: /*!********************************!*\ !*** external "child_process" ***! \********************************/ @@ -174,7 +174,7 @@ module.exports = require("child_process"); /***/ }), -/***/ 657147: +/***/ 179896: /*!*********************!*\ !*** external "fs" ***! \*********************/ @@ -184,7 +184,7 @@ module.exports = require("fs"); /***/ }), -/***/ 822037: +/***/ 370857: /*!*********************!*\ !*** external "os" ***! \*********************/ @@ -194,7 +194,7 @@ module.exports = require("os"); /***/ }), -/***/ 371017: +/***/ 16928: /*!***********************!*\ !*** external "path" ***! \***********************/ @@ -280,21 +280,21 @@ var __webpack_exports__ = {}; \*******************************************/ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "RUSH_JSON_FILENAME": () => (/* binding */ RUSH_JSON_FILENAME), -/* harmony export */ "findRushJsonFolder": () => (/* binding */ findRushJsonFolder), -/* harmony export */ "getNpmPath": () => (/* binding */ getNpmPath), -/* harmony export */ "installAndRun": () => (/* binding */ installAndRun), -/* harmony export */ "runWithErrorAndStatusCode": () => (/* binding */ runWithErrorAndStatusCode) +/* harmony export */ RUSH_JSON_FILENAME: () => (/* binding */ RUSH_JSON_FILENAME), +/* harmony export */ findRushJsonFolder: () => (/* binding */ findRushJsonFolder), +/* harmony export */ getNpmPath: () => (/* binding */ getNpmPath), +/* harmony export */ installAndRun: () => (/* binding */ installAndRun), +/* harmony export */ runWithErrorAndStatusCode: () => (/* binding */ runWithErrorAndStatusCode) /* harmony export */ }); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! child_process */ 532081); +/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! child_process */ 535317); /* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ 657147); +/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ 179896); /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! os */ 822037); +/* harmony import */ var os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! os */ 370857); /* harmony import */ var os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(os__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! path */ 371017); +/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! path */ 16928); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _utilities_npmrcUtilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utilities/npmrcUtilities */ 679877); +/* harmony import */ var _utilities_npmrcUtilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utilities/npmrcUtilities */ 832286); // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. /* eslint-disable no-console */ diff --git a/common/tools/dev-tool/README.md b/common/tools/dev-tool/README.md index b46517efdf1b..1bd5fde085da 100644 --- a/common/tools/dev-tool/README.md +++ b/common/tools/dev-tool/README.md @@ -15,6 +15,12 @@ It provides a place to centralize scripts, resources, and processes for developm `dev-tool` - `about` (display command help and information) +- `check` (run checks on the package). See [Checks](#checks), below, for more information. + - `--tag=local` to run checks that should pass before pushing your code + - `--tag=ci` to run checks that should pass as part of the CI pipeline + - `--tag=release` to run checks that should pass before you release the package to npm + - `--verbose` to show more detailed output + - `--fix` to automatically fix some issues - `package` - `resolve` (display information about the project that owns a directory) - `samples` @@ -232,6 +238,53 @@ Each variant supports an optional `shortName` field that specifies a one-letter - Some additional helper modules can be found in `src/util` such as `resolveProject.ts` which walks up the directory hierarchy and finds the absolute path of the nearest SDK package directory (useful for commands like `samples` which always operate relative to the package directory) - The tool runs using the `transpileOnly` option in the `ts-node` configuration, meaning it does not perform run-time type-checking. The build step of the package will run type-checking using `tsc`, so to check the tool's code for type errors, simply use `rushx build`. +## Checks + +`dev-tool check` is a command which can be used to run pass/fail checks on SDK packages. + +### Usage + +``` +dev-tool check [--tag=] [--verbose] [--fix] +``` + +### What is a check? + +A check consists of a combination of metadata (name, description, "hasFix", tags, severity) and a _check function_. When a check is run, the check function is called with arguments providing information about the package being checked. If the check function runs to completion, the check passes; otherwise if an error is thrown then the check fails. A helper function, `check`, is provided which throws an error if a boolean condition is not met. + +Checks are defined in files under the `src/checks` directory in dev-tool. The check runner automatically discovers files in the directory. Each export from a file in the `src/checks` directory is expected to be a check. When running checks, the output is grouped by file, and then the name of the check. The name of the check, unless overridden in the metadata, is the name it is exported under. + +### Check metadata + +Checks can have this metadata, all optional: +- `name`: the name of the check; if unspecified the name will be inferred from the name of the export +- `description`: an extended description of the check which is shown if the check fails +- `hasFix`: see "Fix mode", below; defaults to `false`, but if set to `true` indicates to the runner that the check is able to attempt to fix itself +- `tags`: a list of "tags" which can be used to specify in what contexts the check should be run. If none are specified, the check will be run in all contexts. See "Tags" below. +- `severity`: either "warning" or "error". Defaults to "error". If the severity is "error", the check failing will cause a failure exit code, but if the severity is only "warning" then a message will be output if the check fails but it will not cause a failure exit code. +- `enable`: an optional additional function alongside the main check function. The check will only be run if the `enable` function returns `true` for the given project. This is useful for making checks that only run on ESM packages, for example. + +### Fix mode and `hasFix` + +A check can specify `hasFix: true` in its metadata to signal that the check is able to fix itself. If a check is fixable, running `dev-tool check` with `--fix` will pass `fix: true` to the check function. If this is passed, the check function is responsible for writing changes that fix the check to the filesystem. + +### Tags + +Not all checks need to be run all the time. For example, you might not want to run lengthy release checks like the package installability check locally every time you run `dev-tool check`. For this purpose, checks can specify "tags" in their metadata which govern when the check should be run. The `--tag` option can be passed in to the check command to specify which tag of check you want to run. By default, `dev-tool check` will only run checks which do not have a tag. Checks can use a wildcard tag `*` to run in all contexts. + +Currently available tags are: + - `local`: the check is intended to be run locally before you push your work + - `ci`: the check is intended to be run as part of the CI pipeline (e.g., format) + - `release`: the check is intended to be run as a final step before releasing the package (e.g., checking if the package is installable) + - if the `tags` field is left empty, the check will run all the time regardless of the value of the `--tag` argument. This is intended for quick checks that don't take long to run. + +### Building blocks for checks + +Many checks follow common patterns. Helper functions are available which can be used to create checks more easily. You can see them in action in the existing checks under `src/checks/`: +- `scriptCheck`: creates a check which runs the given CLI command `checkCommand` and passes or fails based on the exit code of the command. An optional `fixCommand` can also be specified which will be run in fix mode. +- `packageJsonCheck`: creates a check which can make assertions about the package.json file. This is intended to replace the package.json eslint rules we already have. Checks created with `packageJsonCheck` are passed the serialized package.json file. The check can make assertions about the serialized file. It can also mutate the serialized object; any material changes as a result of the mutation will cause the check to fail. If hasFix is set to true, the mutated package.json will be written to disk in fix mode. +- `workingTreeUnchangedCheck`: can wrap an existing check or a fix command. The check or fix command will be run in fix mode always, and any changes to the working tree as a result of running the check will cause the check to fail. After the check is run, any working tree changes will be reverted, unless the check was run in fix mode. + ## Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a diff --git a/common/tools/dev-tool/package.json b/common/tools/dev-tool/package.json index 185f6dbf239f..7cb9a8bb8f5c 100644 --- a/common/tools/dev-tool/package.json +++ b/common/tools/dev-tool/package.json @@ -11,7 +11,7 @@ "src" ], "scripts": { - "build": "tsc", + "build": "tsc && npm run lint && npm run check-format", "build:samples": "echo Skipped.", "build:test": "echo Skipped.", "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", @@ -72,7 +72,8 @@ "tslib": "^2.2.0", "tsx": "^4.0.0", "typescript": "~5.6.2", - "yaml": "^2.3.4" + "yaml": "^2.3.4", + "@arethetypeswrong/cli": "^0.17.0" }, "devDependencies": { "@eslint/js": "^9.9.0", @@ -91,7 +92,7 @@ "eslint": "^9.9.0", "mkdirp": "^3.0.1", "rimraf": "^5.0.5", - "typescript-eslint": "~8.2.0", + "typescript-eslint": "~8.16.0", "uglify-js": "^3.4.9", "vitest": "^2.0.5" } diff --git a/common/tools/dev-tool/src/checks/packageJson.ts b/common/tools/dev-tool/src/checks/packageJson.ts new file mode 100644 index 000000000000..f72be3067cba --- /dev/null +++ b/common/tools/dev-tool/src/checks/packageJson.ts @@ -0,0 +1,139 @@ +import path from "path"; +import { + assert, + packageJsonCheck, + enableForEsmPackage, + enableForSdkType, +} from "../framework/check"; +import { resolveRoot } from "../util/resolveProject"; + +/** + * Expected value for engines field + */ +const LTS_ENGINES = ">=18.0.0"; + +export const license = packageJsonCheck({ + description: 'License field in package.json must be set to "MIT"', + fix({ packageJson }) { + return { + ...packageJson, + license: "MIT", + }; + }, +}); + +export const homepage = packageJsonCheck({ + description: "Homepage should be the URL to the package's README on GitHub", + severity: "warning", + async fix({ project, packageJson }) { + const root = await resolveRoot(); + const libraryRelativePath = path.relative(root, project.path); + + return { + ...packageJson, + homepage: `https://github.com/Azure/azure-sdk-for-js/blob/main/${libraryRelativePath}/README.md`, + }; + }, +}); + +export const author = packageJsonCheck({ + description: "author must be set to Microsoft Corporation", + fix({ packageJson }) { + return { + ...packageJson, + author: "Microsoft Corporation", + }; + }, +}); + +export const bugs = packageJsonCheck({ + description: "bugs URL must point to azure-sdk-for-js repo", + fix({ packageJson }) { + return { + ...packageJson, + bugs: { + url: "https://github.com/Azure/azure-sdk-for-js/issues", + }, + }; + }, +}); + +export const engines = packageJsonCheck({ + description: "engines field must be set to LTS", + fix({ packageJson }) { + return { + ...packageJson, + engines: { + ...packageJson.engines, + node: LTS_ENGINES, + }, + }; + }, +}); + +export const filesEsm = packageJsonCheck({ + description: "`files` field should just contain dist/, license and readme for ESM packages", + enable: enableForEsmPackage, + severity: "warning", + fix({ packageJson }) { + return { + ...packageJson, + files: ["dist/", "LICENSE", "README.md"], + }; + }, +}); + +export const keywords = packageJsonCheck({ + description: + "`keywords` field should contain at least 'azure' and 'cloud'; all keywords must be lowercase", + enable: enableForSdkType("client"), + fix({ packageJson }) { + packageJson.keywords ??= []; + packageJson.keywords = packageJson.keywords.map((x) => x.toLowerCase()); + if (!packageJson.keywords.includes("azure")) { + packageJson.keywords.push("azure"); + } + + if (!packageJson.keywords.includes("cloud")) { + packageJson.keywords.push("cloud"); + } + + return packageJson; + }, +}); + +export const name = packageJsonCheck({ + description: "package.json name must follow correct format", + async check({ packageJson }) { + assert(packageJson.name.startsWith("@azure"), "package name must start with @azure"); + }, +}); + +export const repository = packageJsonCheck({ + description: "package.json repository value must be 'github:Azure/azure-sdk-for-js'", + fix({ packageJson }) { + return { + ...packageJson, + repository: "github:Azure/azure-sdk-for-js", + }; + }, +}); + +const sdkTypes = ["client", "mgmt", "utility"]; + +export const sdkType = packageJsonCheck({ + description: `package.json sdk-type field must be one of: ${sdkTypes.join(", ")}`, + check({ packageJson }) { + assert(sdkTypes.includes(packageJson["sdk-type"] ?? ""), "sdk-type field not recognized"); + }, +}); + +export const sideEffects = packageJsonCheck({ + description: "package.json sideEffects field must be false", + fix({ packageJson }) { + return { + ...packageJson, + sideEffects: false, + }; + }, +}); diff --git a/common/tools/dev-tool/src/checks/release.ts b/common/tools/dev-tool/src/checks/release.ts new file mode 100644 index 000000000000..f0ea987046df --- /dev/null +++ b/common/tools/dev-tool/src/checks/release.ts @@ -0,0 +1,39 @@ +import path from "path"; +import { assert, Check, scriptCheck } from "../framework/check"; +import { run } from "../util/run"; +import fs from "fs/promises"; + +export const installable: Check = { + hasFix: false, + description: "Checks if the package is installable", + tags: ["release"], + severity: "warning", + async check({ project }) { + const { output: packFileName } = await run(`npm pack --quiet`, { + cwd: project.path, + captureOutput: true, + }); + const packPath = path.join(project.path, packFileName.trim()); + const tmpDir = await fs.mkdtemp("dev-tool-check"); + await fs.writeFile(path.join(tmpDir, "package.json"), "{}"); + + const { exitCode, output } = await run(["npm", "install", packPath], { + cwd: tmpDir, + captureOutput: true, + captureExitCode: true, + }); + await fs.rm(packPath); + await fs.rm(tmpDir, { recursive: true, force: true }); + assert( + exitCode === 0, + "The package could not be installed. Are all its dependencies released to npm?", + output, + ); + }, +}; + +export const areTheTypesWrong = scriptCheck({ + tags: ["release"], + description: "are the types wrong must not display any errors", + checkCommand: "dev-tool run vendored attw --pack .", +}); diff --git a/common/tools/dev-tool/src/checks/scripts.ts b/common/tools/dev-tool/src/checks/scripts.ts new file mode 100644 index 000000000000..901eb74bece4 --- /dev/null +++ b/common/tools/dev-tool/src/checks/scripts.ts @@ -0,0 +1,31 @@ +import { scriptCheck, workingTreeUnchangedCheck } from "../framework/check"; + +export const format = scriptCheck({ + description: "Run format command", + checkCommand: "rushx check-format", + fixCommand: "rushx format", +}); + +export const lint = scriptCheck({ + description: "Run lint command", + checkCommand: "rushx lint", + fixCommand: "rushx lint:fix", +}); + +export const build = workingTreeUnchangedCheck({ + description: "Run build and check there were no changes", + tags: ["local"], + fixCommand: "rushx build", +}); + +export const unitTestNode = scriptCheck({ + description: "Run Node unit tests", + tags: ["local"], + checkCommand: "rushx unit-test:node", +}); + +export const unitTestBrowser = scriptCheck({ + description: "Run browser unit tests", + tags: ["local"], + checkCommand: "rushx unit-test:browser", +}); diff --git a/common/tools/dev-tool/src/commands/admin/migrate-package.ts b/common/tools/dev-tool/src/commands/admin/migrate-package.ts index dd05ed6c9f32..6a8b42b32045 100644 --- a/common/tools/dev-tool/src/commands/admin/migrate-package.ts +++ b/common/tools/dev-tool/src/commands/admin/migrate-package.ts @@ -200,7 +200,7 @@ async function fixApiExtractorConfig(apiExtractorJsonPath: string): Promise { // Remove the old test files - const filesToRemove = ["karma.conf.js", ".nycrc"]; + const filesToRemove = ["karma.conf.js", "karma.conf.cjs", ".nycrc"]; for (const file of filesToRemove) { try { await unlink(resolve(projectFolder, file)); @@ -223,6 +223,8 @@ async function upgradeTypeScriptConfig(tsconfigPath: string): Promise { "src/**/*.cts", "samples-dev/**/*.ts", // TODO: Check if samples-dev is needed "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts", ]; // Remove old options @@ -245,7 +247,7 @@ async function upgradePackageJson(projectFolder: string, packageJsonPath: string await addNewPackages(packageJson); // Sort the devDependencies - sortDevDependencies(packageJson); + sortPackage(packageJson); // Add tshy addTypeScriptHybridizer(packageJson); @@ -323,9 +325,11 @@ async function addNewPackages(packageJson: any): Promise { let latestVersion = desiredMinVersion; if (!latestVersion) { // Get the latest version from npm - latestVersion = await run(["npm", "view", newPackage, "version"], { - captureOutput: true, - }); + latestVersion = ( + await run(["npm", "view", newPackage, "version"], { + captureOutput: true, + }) + ).output; } packageJson.devDependencies[newPackage] = `^${latestVersion.replace("\n", "")}`; } @@ -362,6 +366,7 @@ function removeLegacyPackages(packageJson: any): void { "karma-mocha", "karma-mocha-reporter", "karma-sourcemap-loader", + "karma-source-map-support", "nyc", "puppeteer", "source-map-support", @@ -386,10 +391,19 @@ function sortObjectByKeys(unsortedObj: { [key: string]: string }): { [key: strin } // eslint-disable-next-line @typescript-eslint/no-explicit-any -function sortDevDependencies(packageJson: any): void { +function sortPackage(packageJson: any): void { + if (packageJson.dependencies) { + packageJson.dependencies = sortObjectByKeys(packageJson.dependencies); + } if (packageJson.devDependencies) { packageJson.devDependencies = sortObjectByKeys(packageJson.devDependencies); } + if (packageJson.peerDependencies) { + packageJson.peerDependencies = sortObjectByKeys(packageJson.peerDependencies); + } + if (packageJson.scripts) { + packageJson.scripts = sortObjectByKeys(packageJson.scripts); + } } async function renameFieldFiles( diff --git a/common/tools/dev-tool/src/commands/check.ts b/common/tools/dev-tool/src/commands/check.ts new file mode 100644 index 000000000000..492c390df66e --- /dev/null +++ b/common/tools/dev-tool/src/commands/check.ts @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License + +import path from "node:path"; +import { resolveProject } from "../util/resolveProject"; +import { createPrinter } from "../util/printer"; +import { leafCommand } from "../framework/command"; +import { makeCommandInfo } from "../framework/command"; +import fs from "node:fs/promises"; +import { Check, isCheckFailedError } from "../framework/check"; + +const log = createPrinter("check"); + +export const commandInfo = makeCommandInfo("check", "run package checks", { + fix: { + kind: "boolean", + description: "attempt to fix failing checks, where supported", + default: false, + }, + tag: { + kind: "string", + description: "run checks that match the given tag only. Available tags: 'release', 'ci'", + }, + verbose: { + kind: "boolean", + shortName: "v", + description: "show output of check commands", + default: false, + }, +}); + +export default leafCommand(commandInfo, async (options) => { + const checkFileNames = await fs.readdir(path.join(__dirname, "..", "checks")); + + log.info("Running checks"); + + let checksRun = 0; + let checksPassed = 0; + let checksFailed = 0; + let warnings = 0; + let checksSkipped = 0; + + for (const checkFile of checkFileNames) { + const checks = (await import(path.posix.join("../checks", checkFile))) as Record; + log(checkFile); + for (const [exportName, check] of Object.entries(checks)) { + if (options.tag) { + // --tag specified, run checks which match that tag (including checks with wildcard "*") + if (!check.tags) { + continue; + } + + if ( + check.tags !== "*" && + !check.tags.some((x) => x.toLowerCase() === options.tag?.toLowerCase()) + ) { + continue; + } + } else { + // --tag not specified, only run checks which don't have a tag or have tag "*" + if (check.tags && check.tags !== "*") { + continue; + } + } + + const name = check.name ?? exportName; + try { + const project = await resolveProject(); + + if (!check.enable || (await check.enable?.(project))) { + ++checksRun; + await check.check({ + fix: !!check.hasFix && options.fix, + verbose: options.verbose, + project, + }); + ++checksPassed; + log(` ✅ ${name}`); + } else { + ++checksSkipped; + } + } catch (e: unknown) { + const errorMessage = e instanceof Error ? e.message : String(e); + if (check.severity === "warning") { + ++warnings; + log(` ⚠️ ${name} - ${errorMessage}`); + } else { + ++checksFailed; + log(` ❌ ${name} - ${errorMessage}`); + } + if (isCheckFailedError(e) && e.detail) { + e.detail + .split("\n") + .map((x) => ` > ${x}`) + .forEach((x) => log(x)); + } + } + } + } + + log( + `Ran ${checksRun} checks (passed: ${checksPassed}, failed: ${checksFailed}, warnings: ${warnings}, skipped: ${checksSkipped})`, + ); + + return checksFailed === 0; +}); diff --git a/common/tools/dev-tool/src/commands/customization/apply-v2.ts b/common/tools/dev-tool/src/commands/customization/apply-v2.ts index 088ed0e187ec..9b0907ae259a 100644 --- a/common/tools/dev-tool/src/commands/customization/apply-v2.ts +++ b/common/tools/dev-tool/src/commands/customization/apply-v2.ts @@ -54,9 +54,11 @@ export default leafCommand(commandInfo, async (options) => { // 1. Our baseline is the old generated code. Stash unstaged changes to the generated code to get at them let stashOutput: string; try { - stashOutput = await run(["git", "stash", "push", "--", sourceDirectory], { - captureOutput: true, - }); + stashOutput = ( + await run(["git", "stash", "push", "--", sourceDirectory], { + captureOutput: true, + }) + ).output; } catch (e: unknown) { log( "Failed to stash changes to the generated code. This is likely because the generated code is not tracked. Commit the generated code and try again.", diff --git a/common/tools/dev-tool/src/commands/index.ts b/common/tools/dev-tool/src/commands/index.ts index 3c7f138a90cb..4a56f250f6cb 100644 --- a/common/tools/dev-tool/src/commands/index.ts +++ b/common/tools/dev-tool/src/commands/index.ts @@ -19,6 +19,7 @@ export const baseCommands = { run: () => import("./run"), migrate: () => import("./migrate"), customization: () => import("./customization"), + check: () => import("./check"), } as const; /** diff --git a/common/tools/dev-tool/src/commands/run/extract-api.ts b/common/tools/dev-tool/src/commands/run/extract-api.ts index 22861a8000be..4b5aaaafa4f3 100644 --- a/common/tools/dev-tool/src/commands/run/extract-api.ts +++ b/common/tools/dev-tool/src/commands/run/extract-api.ts @@ -8,6 +8,7 @@ import { ExtractorResult, IConfigApiReport, IConfigDocModel, + IConfigDtsRollup, IConfigFile, } from "@microsoft/api-extractor"; import { leafCommand, makeCommandInfo } from "../../framework/command"; @@ -162,7 +163,29 @@ export default leafCommand(commandInfo, async () => { `-${exportEntry.baseName}.api.md`, ); } + let newDtsRollupOptions: IConfigDtsRollup = { enabled: false }; + const usingTshy = packageJson["tshy"]; + if (!usingTshy && !extractorConfigObject?.dtsRollup?.publicTrimmedFilePath) { + log.error("Packages not using tshy should have a proper api-extractor configuration"); + return false; + } + if (!usingTshy) { + // Place the subpath export rollup file in the directory from which it is exported + const publicTrimmedFilePath = path.parse( + extractorConfigObject.dtsRollup!.publicTrimmedFilePath!, // validated above + ); + const newPublicTrimmedPath = path.join( + publicTrimmedFilePath.dir, + exportEntry.path, + publicTrimmedFilePath.base, + ); + newDtsRollupOptions = { + ...extractorConfigObject.dtsRollup, + publicTrimmedFilePath: newPublicTrimmedPath, + enabled: true, + }; + } const newDocModel: IConfigDocModel = { ...extractorConfigObject.docModel, enabled: true, @@ -177,6 +200,7 @@ export default leafCommand(commandInfo, async () => { const updatedConfigObject: IConfigFile = { ...extractorConfigObject, + dtsRollup: newDtsRollupOptions, docModel: newDocModel, apiReport: newApiReport, mainEntryPointFilePath: exportEntry.mainEntryPointFilePath, diff --git a/common/tools/dev-tool/src/commands/run/testBrowser.ts b/common/tools/dev-tool/src/commands/run/testBrowser.ts index ece1ee44699a..021ba321436f 100644 --- a/common/tools/dev-tool/src/commands/run/testBrowser.ts +++ b/common/tools/dev-tool/src/commands/run/testBrowser.ts @@ -15,6 +15,12 @@ export const commandInfo = makeCommandInfo( kind: "boolean", default: true, }, + "test-proxy-debug": { + description: + "Runs the test-proxy with debug logs enabled (Logging__LogLevel__Default=Debug); generates testProxyOutput.log", + kind: "boolean", + default: false, + }, }, ); @@ -26,6 +32,8 @@ export default leafCommand(commandInfo, async (options) => { const stopRelay = options["relay-server"] && (await shouldStartRelay()) ? startRelayServer() : undefined; + if (options["test-proxy-debug"]) process.env["Logging__LogLevel__Default"] = "Debug"; + try { const result = await runTestsWithProxyTool({ command: `karma start ${karmaArgs}`, diff --git a/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts b/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts index 32bf72d4448f..c3c69b43930f 100644 --- a/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts +++ b/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts @@ -17,6 +17,12 @@ export const commandInfo = makeCommandInfo( default: true, description: "whether to run with test-proxy", }, + "test-proxy-debug": { + description: + "Runs the test-proxy with debug logs enabled (Logging__LogLevel__Default=Debug); generates testProxyOutput.log", + kind: "boolean", + default: false, + }, }, ); @@ -36,6 +42,7 @@ export default leafCommand(commandInfo, async (options) => { }; if (options["test-proxy"]) { + if (options["test-proxy-debug"]) process.env["Logging__LogLevel__Default"] = "Debug"; return runTestsWithProxyTool(command); } diff --git a/common/tools/dev-tool/src/commands/run/testNodeTSInput.ts b/common/tools/dev-tool/src/commands/run/testNodeTSInput.ts index 33377552f545..572a421ce17d 100644 --- a/common/tools/dev-tool/src/commands/run/testNodeTSInput.ts +++ b/common/tools/dev-tool/src/commands/run/testNodeTSInput.ts @@ -18,6 +18,12 @@ export const commandInfo = makeCommandInfo( default: true, description: "whether to enable launching test-proxy", }, + "test-proxy-debug": { + description: + "Runs the test-proxy with debug logs enabled (Logging__LogLevel__Default=Debug); generates testProxyOutput.log", + kind: "boolean", + default: false, + }, }, ); @@ -43,6 +49,7 @@ export default leafCommand(commandInfo, async (options) => { }; if (options["test-proxy"]) { + if (options["test-proxy-debug"]) process.env["Logging__LogLevel__Default"] = "Debug"; return runTestsWithProxyTool(command); } diff --git a/common/tools/dev-tool/src/commands/run/testNodeTsxTS.ts b/common/tools/dev-tool/src/commands/run/testNodeTsxTS.ts index 31f5a1b237dd..ceaebc761689 100644 --- a/common/tools/dev-tool/src/commands/run/testNodeTsxTS.ts +++ b/common/tools/dev-tool/src/commands/run/testNodeTsxTS.ts @@ -16,6 +16,12 @@ export const commandInfo = makeCommandInfo( default: true, description: "whether to enable launching test-proxy", }, + "test-proxy-debug": { + description: + "Runs the test-proxy with debug logs enabled (Logging__LogLevel__Default=Debug); generates testProxyOutput.log", + kind: "boolean", + default: false, + }, }, ); @@ -35,6 +41,7 @@ export default leafCommand(commandInfo, async (options) => { }; if (options["test-proxy"]) { + if (options["test-proxy-debug"]) process.env["Logging__LogLevel__Default"] = "Debug"; return runTestsWithProxyTool(command); } diff --git a/common/tools/dev-tool/src/commands/run/testVitest.ts b/common/tools/dev-tool/src/commands/run/testVitest.ts index 27e0d490643c..f7661e2b60ed 100644 --- a/common/tools/dev-tool/src/commands/run/testVitest.ts +++ b/common/tools/dev-tool/src/commands/run/testVitest.ts @@ -32,6 +32,12 @@ export const commandInfo = makeCommandInfo( kind: "boolean", default: true, }, + "test-proxy-debug": { + description: + "Runs the test-proxy with debug logs enabled (Logging__LogLevel__Default=Debug); generates testProxyOutput.log", + kind: "boolean", + default: false, + }, }, ); @@ -79,6 +85,7 @@ export default leafCommand(commandInfo, async (options) => { try { if (options["test-proxy"]) { + if (options["test-proxy-debug"]) process.env["Logging__LogLevel__Default"] = "Debug"; return await runTestsWithProxyTool(command); } diff --git a/common/tools/dev-tool/src/commands/run/typecheck.ts b/common/tools/dev-tool/src/commands/run/typecheck.ts index 8e2a68d8c470..55505c64e041 100644 --- a/common/tools/dev-tool/src/commands/run/typecheck.ts +++ b/common/tools/dev-tool/src/commands/run/typecheck.ts @@ -43,17 +43,15 @@ export default leafCommand(commandInfo, async (options) => { } } - const diagnostics = project.getPreEmitDiagnostics().filter((d) => - { - const filepath = d.getSourceFile()?.getFilePath(); - return !( - filepath?.includes("node_modules") && - (filepath?.includes("@vitest") || - filepath?.includes("vite-node") || - filepath?.includes("chai")) - ); - }, - ); + const diagnostics = project.getPreEmitDiagnostics().filter((d) => { + const filepath = d.getSourceFile()?.getFilePath(); + return !( + filepath?.includes("node_modules") && + (filepath?.includes("@vitest") || + filepath?.includes("vite-node") || + filepath?.includes("chai")) + ); + }); const hasError = diagnostics.some((d) => d.getCategory() === DiagnosticCategory.Error); if (hasError) { log.error( diff --git a/common/tools/dev-tool/src/framework/check.ts b/common/tools/dev-tool/src/framework/check.ts new file mode 100644 index 000000000000..63377bd8e30c --- /dev/null +++ b/common/tools/dev-tool/src/framework/check.ts @@ -0,0 +1,318 @@ +import path from "node:path"; +import { format } from "../util/prettier"; +import { ProjectInfo } from "../util/resolveProject"; +import { run } from "../util/run"; +import fs from "node:fs/promises"; + +export type CheckTags = "release" | "ci" | "local"; +export type CheckSeverity = "warning" | "error"; + +export type CheckEnableFunction = (project: ProjectInfo) => Promise; + +export interface CheckOptions { + /** + * Name of the check + * + * If unspecified a name will be inferred from the export + */ + name?: string; + + /** + * Optional extended description of the check + */ + description?: string; + + /** + * True if the check can attempt to fix itself + */ + hasFix?: boolean; + + /** + * Tags to identify when the check should be run + * + * Can have the following values: + * - "ci": check is intended to be run in CI pipeline + * - "release": check is intended to be run before releasing the package + * - "local": check is intended to be run locally before pushing commit + * + * If `tags` is set to "*" then the check will be treated as if it has _every_ tag and will be always run. + * + * If no tags are specified the check will only be run if no tag is specified + */ + tags?: CheckTags[] | "*"; + + /** + * Severity of the check. Defaults to "error". + */ + severity?: CheckSeverity; + + /** + * Optional function to determine whether this check applies to the given project + * If this function returns true for the project, the check will be run. + * If the function returns false, the check will be skipped for the project. + * + * If left undefined, the check will be enabled for all projects. + */ + enable?: CheckEnableFunction; +} + +export interface CheckContext { + /** + * Whether to attempt to fix + */ + fix: boolean; + + /** + * Information about the project + */ + project: ProjectInfo; + + /** + * Whether to output verbosely + */ + verbose: boolean; +} + +export type CheckFunction = (ctx: CheckContext) => void | Promise; + +export interface Check extends CheckOptions { + /** + * Run the check in the given context + */ + check: CheckFunction; +} + +/** + * Error indicating that a check has failed + */ +export class CheckFailedError extends Error { + constructor( + message: string, + public detail?: string, + ) { + super(message); + this.name = "CheckFailedError"; + } +} + +export function isCheckFailedError(e: unknown): e is CheckFailedError { + return e instanceof Error && e.name === "CheckFailedError"; +} + +/** + * Check that condition is true. + * @param condition - condition to check + * @param message - short message to display + * @param detail - more details to display about the failure; can be multiple lines + */ +export function assert(condition: unknown, message: string, detail?: string): asserts condition { + if (!condition) { + throw new CheckFailedError(message, detail); + } +} + +export interface ScriptCheckOptions extends Omit { + /** + * Command to be ran in order to run the check. + * + * If the command exits with a zero status code, that indicates the check is successful. + * If the command exits with a non-zero status code, the output of the command will be reported + * to provide details about the failure. + */ + checkCommand: string; + + /** + * Command to be ran to attempt to fix the check. + * If undefined, this check will not be fixable. + */ + fixCommand?: string; +} + +/** + * Create a check that runs a CLI command. + * + * @param options - options for creating the check, including the command to run, and, optionally, a command which can be run to attempt to fix the failing check. + * @returns - the created check + */ +export function scriptCheck(options: ScriptCheckOptions): Check { + return { + ...options, + hasFix: Boolean(options.fixCommand), + async check({ fix, project, verbose }) { + if (fix) { + assert(options.fixCommand !== undefined, "fix command must be defined"); + const { exitCode, output } = await run(options.fixCommand, { + cwd: project.path, + captureExitCode: true, + stdio: verbose ? "inherit" : undefined, + captureOutput: true, + }); + assert(exitCode === 0, `Check output exit code ${exitCode}`, output); + } else { + const { exitCode, output } = await run(options.checkCommand, { + cwd: project.path, + captureExitCode: true, + stdio: verbose ? "inherit" : undefined, + captureOutput: true, + }); + assert(exitCode === 0, `Check output exit code ${exitCode}`, output); + } + }, + }; +} + +/** + * Context passed to the check() function of a package.json check. + */ +export interface PackageJsonCheckContext extends CheckContext { + /** + * JavaScript object representation of the project's package.json file. + * This object may be mutated to cause check failures if the mutation results in a change, or to fix the check if in fix mode. + */ + packageJson: PackageJson; +} + +export interface PackageJsonCheckOptions extends Omit { + /** + * Run the check. The package.json is provided as a JavaScript object at the top level of the context, `packageJson`. + * @param context - context the check is running in + */ + check?: (context: PackageJsonCheckContext) => void | Promise; + + /** + * Fix the package.json. The package.json is provided as a JavaScript object at the top level of the context, `packageJson`. + * The fix function should return the updated package.json as a result of running the fix. + * + * If `check` is not specified, the `fix` function will be called also when not in fix mode; the check will fail if the + * updated package.json is not the same as the existing package.json + * + * @param context - context including the current package.json + * @returns the fixed package.json + */ + fix?: (context: PackageJsonCheckContext) => PackageJson | Promise; +} + +/** + * A check which validates properties of the package.json. The check can define a check function, fix function, or both. + * + * The fix function may mutate the input packageJson provided in the CheckContext. If it does this, and the check function is undefined, + * any material changes to the input packageJson will cause the check to fail, except if in fix mode. In + * that case, the check will be fixed by writing the updated package.json to disk. + * + * @param options options - options for the check + * @returns - the created check + */ +export function packageJsonCheck(options: PackageJsonCheckOptions): Check { + return { + ...options, + hasFix: Boolean(options.fix), + async check({ fix, project, verbose }) { + const { packageJson: originalPackageJson } = project; + + if (fix || !options.check) { + assert(options.fix, "packageJsonCheck must define either `check` or `fix`"); + // The check may mutate the package.json + const packageJsonClone = structuredClone(originalPackageJson); + const newPackageJson = await options.fix({ + verbose, + packageJson: packageJsonClone, + project: { ...project, packageJson: packageJsonClone }, + fix, + }); + + // Check if the cloned package JSON and original are different + if (JSON.stringify(originalPackageJson) !== JSON.stringify(newPackageJson)) { + if (fix) { + const newPackageJsonContent = await format(JSON.stringify(newPackageJson), "json"); + await fs.writeFile(path.join(project.path, "package.json"), newPackageJsonContent); + } else { + assert(false, options.description ?? "package.json changed unexpectedly"); + } + } + } else { + options.check({ verbose, packageJson: project.packageJson, project, fix: false }); + } + }, + }; +} + +/** + * Check that running the given check command (with fix: true) or the given CLI command results in a clean working tree, i.e. no diff + * Running this check in fix mode will run the check but will not check if it results in a clean working tree + */ +export function workingTreeUnchangedCheck( + options: Omit & ({ check: CheckFunction } | { fixCommand: string }), +): Check { + const checkFunction: CheckFunction = + "check" in options + ? (options.check as CheckFunction) + : async (ctx) => { + const { output, exitCode } = await run(options.fixCommand, { + captureOutput: true, + captureExitCode: true, + cwd: ctx.project.path, + }); + assert(exitCode === 0, `Command exited with exit code ${exitCode}`, output); + }; + + return { + ...options, + hasFix: true, + async check({ fix, project, verbose }) { + if (fix) { + // Just run the command to fix + await checkFunction({ fix: true, project, verbose }); + return; + } + + // 1. Commit staged items (if none commit anyway) + await run( + [ + "git", + "commit", + "--allow-empty", + "-m", + `dev-tool temp commit of your work + +If this commit is present in your history, dev-tool didn't +clean up properly after running a check. If this is the +latest commit, you can tidy up the mess by running +"git reset HEAD^".`, + ], + { cwd: project.path }, + ); + // 2. Stage unstaged stuff + await run("git add .", { cwd: project.path }); + + try { + // 3. Run the command + await checkFunction({ fix: true, project, verbose }); + + // 4. Check working tree is clean + const { exitCode, output } = await run("git diff --exit-code .", { + cwd: project.path, + captureExitCode: true, + captureOutput: true, + }); + + assert(exitCode === 0, "Check resulted in a diff", output); + } finally { + // Undo changes to working tree + await run("git checkout .", { cwd: project.path }); + // Undo staging of unstaged things + await run("git reset .", { cwd: project.path }); + // Undo commit of staged things + await run("git reset --soft HEAD~", { cwd: project.path }); + } + }, + }; +} + +export const enableForEsmPackage: CheckEnableFunction = (project) => + Promise.resolve(project.packageJson.type === "module"); +export const enableForCjsPackage: CheckEnableFunction = (project) => + Promise.resolve(project.packageJson.type !== "module"); +export const enableForSdkType = + (sdkType: "client" | "mgmt" | "utility" | "perf-test"): CheckEnableFunction => + (project) => + Promise.resolve(project.packageJson["sdk-type"] === sdkType); diff --git a/common/tools/dev-tool/src/util/admin/migrate-package/codemods/fixSourceFile.ts b/common/tools/dev-tool/src/util/admin/migrate-package/codemods/fixSourceFile.ts index 9ffeffcd7578..d613bcb1c539 100644 --- a/common/tools/dev-tool/src/util/admin/migrate-package/codemods/fixSourceFile.ts +++ b/common/tools/dev-tool/src/util/admin/migrate-package/codemods/fixSourceFile.ts @@ -74,6 +74,8 @@ function fixDeclaration(sourceFile: SourceFile, moduleSpecifier: string): string function fixNodeDeclaration(moduleSpecifier: string): string { const nodeModules = [ "assert", + "buffer", + "child_process", "crypto", "events", "fs", diff --git a/common/tools/dev-tool/src/util/resolveProject.ts b/common/tools/dev-tool/src/util/resolveProject.ts index 1449205c45a8..d299f4935006 100644 --- a/common/tools/dev-tool/src/util/resolveProject.ts +++ b/common/tools/dev-tool/src/util/resolveProject.ts @@ -60,6 +60,7 @@ declare global { homepage: string; sideEffects: boolean; private: boolean; + engines?: { node?: string }; dependencies: Record; devDependencies: Record; diff --git a/common/tools/dev-tool/src/util/run.ts b/common/tools/dev-tool/src/util/run.ts index e0d6f2658175..aa59e23a6723 100644 --- a/common/tools/dev-tool/src/util/run.ts +++ b/common/tools/dev-tool/src/util/run.ts @@ -5,6 +5,20 @@ import { SpawnOptions, spawn } from "node:child_process"; export interface RunOptions extends SpawnOptions { captureOutput?: boolean; + + /** + * By default a non-zero exit code will cause an exception to be thrown. + * Set this option to true to not throw in this case. + */ + captureExitCode?: boolean; +} + +export interface RunResult { + exitCode: number; +} + +export interface RunResultWithOutput extends RunResult { + output: string; } /** @@ -13,7 +27,7 @@ export interface RunOptions extends SpawnOptions { * @param command - the command to run. If an array of strings is passed, the first element will be the executable to run and the remaining elements will be the arguments. If a string is passed, it will be split on space (' ') and * then treated the same as a string array (quoting etc will not work for escaping). */ -export async function run(command: string[] | string): Promise; +export async function run(command: string[] | string): Promise; /** * Run the given command as a child process. @@ -25,7 +39,7 @@ export async function run(command: string[] | string): Promise; export async function run( command: string[] | string, options: RunOptions & { captureOutput: true }, -): Promise; +): Promise; /** * Run the given command as a child process. @@ -37,27 +51,25 @@ export async function run( export async function run( command: string[] | string, options: RunOptions & { captureOutput?: false }, -): Promise; +): Promise; export async function run( command: string[] | string, options: RunOptions = {}, -): Promise { +): Promise { const [executable, ...argv] = typeof command === "string" ? command.split(" ") : command; let output = ""; - await new Promise((resolve, reject) => { + const exitCode = await new Promise((resolve, reject) => { const proc = spawn(executable, argv, options); proc.stderr?.setEncoding("utf8"); proc.on("exit", (exitCode, signal) => { if (exitCode === null) { reject(new Error(`subprocess exited with signal ${signal}`)); - } else if (exitCode === 0) { - resolve(output); } else { - reject(new Error(`subprocess exited with exit code ${exitCode}.\nOutput:\n${output}`)); + resolve(exitCode); } }); @@ -73,7 +85,9 @@ export async function run( } }); - if (options.captureOutput) { - return output; + if (!options.captureExitCode && exitCode !== 0) { + throw new Error(`Process exited with exit code ${exitCode}`); } + + return { output, exitCode }; } diff --git a/common/tools/dev-tool/src/util/testProxyUtils.ts b/common/tools/dev-tool/src/util/testProxyUtils.ts index 1f1e2f1d0a97..68bdb7dc2156 100644 --- a/common/tools/dev-tool/src/util/testProxyUtils.ts +++ b/common/tools/dev-tool/src/util/testProxyUtils.ts @@ -172,7 +172,10 @@ function runCommand(executable: string, argv: string[], options: SpawnOptions = } export async function runTestProxyCommand(argv: string[]): Promise { - const result = runCommand(await getTestProxyExecutable(), argv, { stdio: "inherit" }).result; + const result = runCommand(await getTestProxyExecutable(), argv, { + stdio: "inherit", + env: { ...process.env }, + }).result; if (await fs.pathExists("assets.json")) { await linkRecordingsDirectory(); } diff --git a/common/tools/eslint-plugin-azure-sdk/package.json b/common/tools/eslint-plugin-azure-sdk/package.json index c4e0aaede530..af0691527b72 100644 --- a/common/tools/eslint-plugin-azure-sdk/package.json +++ b/common/tools/eslint-plugin-azure-sdk/package.json @@ -63,8 +63,8 @@ "prettier": "./prettier.json", "peerDependencies": { "@eslint/eslintrc": "^3.0.2", - "@typescript-eslint/eslint-plugin": "~8.10.0", - "@typescript-eslint/parser": "~8.10.0", + "@typescript-eslint/eslint-plugin": "~8.16.0", + "@typescript-eslint/parser": "~8.16.0", "eslint": "^9.9.0", "eslint-plugin-n": "^17.10.1", "eslint-plugin-no-only-tests": "^3.3.0", @@ -77,22 +77,22 @@ "@eslint/js": "^9.9.0", "@types/eslint": "^9.6.0", "@types/estree": "~1.0.0", - "@typescript-eslint/typescript-estree": "~8.10.0", + "@typescript-eslint/typescript-estree": "~8.16.0", "eslint-config-prettier": "^9.0.0", "glob": "^10.3.10", "tslib": "^2.6.2", "typescript": "~5.6.2", - "typescript-eslint": "~8.10.0" + "typescript-eslint": "~8.16.0" }, "devDependencies": { "@types/eslint": "^9.6.0", "@types/eslint__js": "8.42.3", "@types/eslint-config-prettier": "6.11.3", "@types/node": "^18.0.0", - "@typescript-eslint/eslint-plugin": "~8.10.0", - "@typescript-eslint/utils": "~8.10.0", - "@typescript-eslint/parser": "~8.10.0", - "@typescript-eslint/rule-tester": "~8.10.0", + "@typescript-eslint/eslint-plugin": "~8.16.0", + "@typescript-eslint/utils": "~8.16.0", + "@typescript-eslint/parser": "~8.16.0", + "@typescript-eslint/rule-tester": "~8.16.0", "@vitest/coverage-istanbul": "^1.4.0", "eslint": "^9.9.0", "eslint-plugin-markdown": "^5.0.0", diff --git a/common/tools/eslint-plugin-azure-sdk/src/configs/azure-sdk-customized.ts b/common/tools/eslint-plugin-azure-sdk/src/configs/azure-sdk-customized.ts index 6ef663ed96cb..d74032689f9f 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/configs/azure-sdk-customized.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/configs/azure-sdk-customized.ts @@ -43,7 +43,7 @@ const tsEslintCustomization: Record = { "@typescript-eslint/no-empty-object-type": "off", "@typescript-eslint/no-namespace": "error", "@typescript-eslint/no-non-null-assertion": "off", - "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }], + "@typescript-eslint/no-unused-vars": "off", // typescript compiler already checks this "@typescript-eslint/no-unused-expressions": "off", "@typescript-eslint/no-useless-constructor": "error", "@typescript-eslint/no-var-requires": "off", diff --git a/common/tools/vite-plugin-browser-test-map/package.json b/common/tools/vite-plugin-browser-test-map/package.json index f9e3178c1cc7..96c241dff6aa 100644 --- a/common/tools/vite-plugin-browser-test-map/package.json +++ b/common/tools/vite-plugin-browser-test-map/package.json @@ -58,6 +58,6 @@ "prettier": "^3.3.3", "rimraf": "^5.0.0", "typescript": "~5.6.2", - "typescript-eslint": "~8.2.0" + "typescript-eslint": "~8.16.0" } } diff --git a/eng/common/scripts/Cadl-Project-Generate.ps1 b/eng/common/scripts/Cadl-Project-Generate.ps1 deleted file mode 100644 index bd4a2377e8b0..000000000000 --- a/eng/common/scripts/Cadl-Project-Generate.ps1 +++ /dev/null @@ -1,101 +0,0 @@ -# For details see https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/Cadl-Project-Scripts.md - -[CmdletBinding()] -param ( - [Parameter(Position=0)] - [ValidateNotNullOrEmpty()] - [string] $ProjectDirectory, - [Parameter(Position=1)] - [string] $CadlAdditionalOptions ## additional cadl emitter options, separated by semicolon if more than one, e.g. option1=value1;option2=value2 -) - -$ErrorActionPreference = "Stop" -. $PSScriptRoot/Helpers/PSModule-Helpers.ps1 -. $PSScriptRoot/common.ps1 -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module - -function NpmInstallForProject([string]$workingDirectory) { - Push-Location $workingDirectory - try { - $currentDur = Resolve-Path "." - Write-Host "Generating from $currentDur" - - if (Test-Path "package.json") { - Remove-Item -Path "package.json" -Force - } - - if (Test-Path ".npmrc") { - Remove-Item -Path ".npmrc" -Force - } - - if (Test-Path "node_modules") { - Remove-Item -Path "node_modules" -Force -Recurse - } - - if (Test-Path "package-lock.json") { - Remove-Item -Path "package-lock.json" -Force - } - - #default to root/eng/emitter-package.json but you can override by writing - #Get-${Language}-EmitterPackageJsonPath in your Language-Settings.ps1 - $replacementPackageJson = "$PSScriptRoot/../../emitter-package.json" - if (Test-Path "Function:$GetEmitterPackageJsonPathFn") { - $replacementPackageJson = &$GetEmitterPackageJsonPathFn - } - - Write-Host("Copying package.json from $replacementPackageJson") - Copy-Item -Path $replacementPackageJson -Destination "package.json" -Force - npm install --no-lock-file - if ($LASTEXITCODE) { exit $LASTEXITCODE } - } - finally { - Pop-Location - } -} - -$resolvedProjectDirectory = Resolve-Path $ProjectDirectory -$emitterName = &$GetEmitterNameFn -$cadlConfigurationFile = Resolve-Path "$ProjectDirectory/cadl-location.yaml" - -Write-Host "Reading configuration from $cadlConfigurationFile" -$configuration = Get-Content -Path $cadlConfigurationFile -Raw | ConvertFrom-Yaml - -$specSubDirectory = $configuration["directory"] -$innerFolder = Split-Path $specSubDirectory -Leaf - -$tempFolder = "$ProjectDirectory/TempCadlFiles" -$npmWorkingDir = Resolve-Path $tempFolder/$innerFolder -$mainCadlFile = If (Test-Path "$npmWorkingDir/client.cadl") { Resolve-Path "$npmWorkingDir/client.cadl" } Else { Resolve-Path "$npmWorkingDir/main.cadl"} - -try { - Push-Location $npmWorkingDir - NpmInstallForProject $npmWorkingDir - - if ($LASTEXITCODE) { exit $LASTEXITCODE } - - if (Test-Path "Function:$GetEmitterAdditionalOptionsFn") { - $emitterAdditionalOptions = &$GetEmitterAdditionalOptionsFn $resolvedProjectDirectory - if ($emitterAdditionalOptions.Length -gt 0) { - $emitterAdditionalOptions = " $emitterAdditionalOptions" - } - } - $cadlCompileCommand = "npx cadl compile $mainCadlFile --emit $emitterName$emitterAdditionalOptions" - if ($CadlAdditionalOptions) { - $options = $CadlAdditionalOptions.Split(";"); - foreach ($option in $options) { - $cadlCompileCommand += " --option $emitterName.$option" - } - } - Write-Host($cadlCompileCommand) - Invoke-Expression $cadlCompileCommand - - if ($LASTEXITCODE) { exit $LASTEXITCODE } -} -finally { - Pop-Location -} - -$shouldCleanUp = $configuration["cleanup"] ?? $true -if ($shouldCleanUp) { - Remove-Item $tempFolder -Recurse -Force -} diff --git a/eng/common/scripts/Cadl-Project-Sync.ps1 b/eng/common/scripts/Cadl-Project-Sync.ps1 deleted file mode 100644 index c6e8cf5ce531..000000000000 --- a/eng/common/scripts/Cadl-Project-Sync.ps1 +++ /dev/null @@ -1,127 +0,0 @@ -# For details see https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/Cadl-Project-Scripts.md - -[CmdletBinding()] -param ( - [Parameter(Position=0)] - [ValidateNotNullOrEmpty()] - [string] $ProjectDirectory -) - -$ErrorActionPreference = "Stop" -. $PSScriptRoot/Helpers/PSModule-Helpers.ps1 -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module -$sparseCheckoutFile = ".git/info/sparse-checkout" - -function AddSparseCheckoutPath([string]$subDirectory) { - if (!(Test-Path $sparseCheckoutFile) -or !((Get-Content $sparseCheckoutFile).Contains($subDirectory))) { - Write-Output $subDirectory >> .git/info/sparse-checkout - } -} - -function CopySpecToProjectIfNeeded([string]$specCloneRoot, [string]$mainSpecDir, [string]$dest, [string[]]$specAdditionalSubDirectories) { - $source = "$specCloneRoot/$mainSpecDir" - Copy-Item -Path $source -Destination $dest -Recurse -Force - Write-Host "Copying spec from $source to $dest" - - foreach ($additionalDir in $specAdditionalSubDirectories) { - $source = "$specCloneRoot/$additionalDir" - Write-Host "Copying spec from $source to $dest" - Copy-Item -Path $source -Destination $dest -Recurse -Force - } -} - -function UpdateSparseCheckoutFile([string]$mainSpecDir, [string[]]$specAdditionalSubDirectories) { - AddSparseCheckoutPath $mainSpecDir - foreach ($subDir in $specAdditionalSubDirectories) { - AddSparseCheckoutPath $subDir - } -} - -function GetGitRemoteValue([string]$repo) { - Push-Location $ProjectDirectory - $result = "" - try { - $gitRemotes = (git remote -v) - foreach ($remote in $gitRemotes) { - if ($remote.StartsWith("origin")) { - if ($remote -match 'https://github.com/\S+') { - $result = "https://github.com/$repo.git" - break - } elseif ($remote -match "git@github.com:\S+"){ - $result = "git@github.com:$repo.git" - break - } else { - throw "Unknown git remote format found: $remote" - } - } - } - } - finally { - Pop-Location - } - - return $result -} - -function InitializeSparseGitClone([string]$repo) { - git clone --no-checkout --filter=tree:0 $repo . - if ($LASTEXITCODE) { exit $LASTEXITCODE } - git sparse-checkout init - if ($LASTEXITCODE) { exit $LASTEXITCODE } - Remove-Item $sparseCheckoutFile -Force -} - -function GetSpecCloneDir([string]$projectName) { - Push-Location $ProjectDirectory - try { - $root = git rev-parse --show-toplevel - } - finally { - Pop-Location - } - - $sparseSpecCloneDir = "$root/../sparse-spec/$projectName" - New-Item $sparseSpecCloneDir -Type Directory -Force | Out-Null - $createResult = Resolve-Path $sparseSpecCloneDir - return $createResult -} - -$cadlConfigurationFile = Resolve-Path "$ProjectDirectory/cadl-location.yaml" -Write-Host "Reading configuration from $cadlConfigurationFile" -$configuration = Get-Content -Path $cadlConfigurationFile -Raw | ConvertFrom-Yaml - -$pieces = $cadlConfigurationFile.Path.Replace("\","/").Split("/") -$projectName = $pieces[$pieces.Count - 2] - -$specSubDirectory = $configuration["directory"] - -if ( $configuration["repo"] -and $configuration["commit"]) { - $specCloneDir = GetSpecCloneDir $projectName - $gitRemoteValue = GetGitRemoteValue $configuration["repo"] - - Write-Host "Setting up sparse clone for $projectName at $specCloneDir" - - Push-Location $specCloneDir.Path - try { - if (!(Test-Path ".git")) { - InitializeSparseGitClone $gitRemoteValue - UpdateSparseCheckoutFile $specSubDirectory $configuration["additionalDirectories"] - } - git checkout $configuration["commit"] - if ($LASTEXITCODE) { exit $LASTEXITCODE } - } - finally { - Pop-Location - } -} elseif ( $configuration["spec-root-dir"] ) { - $specCloneDir = $configuration["spec-root-dir"] -} - - -$tempCadlDir = "$ProjectDirectory/TempCadlFiles" -New-Item $tempCadlDir -Type Directory -Force | Out-Null -CopySpecToProjectIfNeeded ` - -specCloneRoot $specCloneDir ` - -mainSpecDir $specSubDirectory ` - -dest $tempCadlDir ` - -specAdditionalSubDirectories $configuration["additionalDirectories"] diff --git a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 index 58ee8ee19ca1..00be7d3b44bb 100644 --- a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 +++ b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 @@ -74,6 +74,7 @@ function Process-ReviewStatusCode($statusCode, $packageName, $apiApprovalStatus, { $apiApproved = $false $apiApprovalDetails = "API Review is not approved for package $($packageName). Release pipeline will fail if API review is not approved for a GA version release. You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." + $apiApprovalDetails += " Once your API is approved, re-trigger the release pipeline again." $packageNameApproved = $false $packageNameApprovalDetails = "" @@ -115,4 +116,4 @@ function Process-ReviewStatusCode($statusCode, $packageName, $apiApprovalStatus, $packageNameStatus.IsApproved = $packageNameApproved $packageNameStatus.Details = $packageNameApprovalDetails -} \ No newline at end of file +} diff --git a/eng/common/scripts/Helpers/PSModule-Helpers.ps1 b/eng/common/scripts/Helpers/PSModule-Helpers.ps1 index bfca8a4154d8..0c825cb70601 100644 --- a/eng/common/scripts/Helpers/PSModule-Helpers.ps1 +++ b/eng/common/scripts/Helpers/PSModule-Helpers.ps1 @@ -1,4 +1,3 @@ -$DefaultPSRepositoryUrl = "https://www.powershellgallery.com/api/v2" $global:CurrentUserModulePath = "" function Update-PSModulePathForCI() @@ -47,6 +46,69 @@ function Update-PSModulePathForCI() } } +function Get-ModuleRepositories([string]$moduleName) { + $DefaultPSRepositoryUrl = "https://www.powershellgallery.com/api/v2" + # List of modules+versions we want to replace with internal feed sources for reliability, security, etc. + $packageFeedOverrides = @{ + 'powershell-yaml' = 'https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-tools/nuget/v2' + } + + $repoUrls = if ($packageFeedOverrides.Contains("${moduleName}")) { + @($packageFeedOverrides["${moduleName}"], $DefaultPSRepositoryUrl) + } else { + @($DefaultPSRepositoryUrl) + } + + return $repoUrls +} + +function moduleIsInstalled([string]$moduleName, [string]$version) { + $modules = (Get-Module -ListAvailable $moduleName) + if ($version -as [Version]) { + $modules = $modules.Where({ [Version]$_.Version -ge [Version]$version }) + if ($modules.Count -gt 0) + { + Write-Host "Using module $($modules[0].Name) with version $($modules[0].Version)." + return $modules[0] + } + } + return $null +} + +function installModule([string]$moduleName, [string]$version, $repoUrl) { + $repo = (Get-PSRepository).Where({ $_.SourceLocation -eq $repoUrl }) + if ($repo.Count -eq 0) + { + Register-PSRepository -Name $repoUrl -SourceLocation $repoUrl -InstallationPolicy Trusted + $repo = (Get-PSRepository).Where({ $_.SourceLocation -eq $repoUrl }) + if ($repo.Count -eq 0) { + throw "Failed to register package repository $repoUrl." + } + } + + if ($repo.InstallationPolicy -ne "Trusted") { + Set-PSRepository -Name $repo.Name -InstallationPolicy "Trusted" + } + + Write-Host "Installing module $moduleName with min version $version from $repoUrl" + # Install under CurrentUser scope so that the end up under $CurrentUserModulePath for caching + Install-Module $moduleName -MinimumVersion $version -Repository $repo.Name -Scope CurrentUser -Force + # Ensure module installed + $modules = (Get-Module -ListAvailable $moduleName) + if ($version -as [Version]) { + $modules = $modules.Where({ [Version]$_.Version -ge [Version]$version }) + } + if ($modules.Count -eq 0) { + throw "Failed to install module $moduleName with version $version" + } + + # Unregister repository as it can cause overlap issues with `dotnet tool install` + # commands using the same devops feed + Unregister-PSRepository -Name $repoUrl + + return $modules[0] +} + # Manual test at eng/common-tests/psmodule-helpers/Install-Module-Parallel.ps1 # If we want to use another default repository other then PSGallery we can update the default parameters function Install-ModuleIfNotInstalled() @@ -55,69 +117,45 @@ function Install-ModuleIfNotInstalled() param( [string]$moduleName, [string]$version, - [string]$repositoryUrl = $DefaultPSRepositoryUrl + [string]$repositoryUrl ) - # Check installed modules - $modules = (Get-Module -ListAvailable $moduleName) - if ($version -as [Version]) { - $modules = $modules.Where({ [Version]$_.Version -ge [Version]$version }) - } + # Check installed modules before after acquiring lock to avoid a big queue + $module = moduleIsInstalled -moduleName $moduleName -version $version + if ($module) { return $module } - if ($modules.Count -eq 0) - { - # Use double-checked locking to avoid locking when module is already installed + try { $mutex = New-Object System.Threading.Mutex($false, "Install-ModuleIfNotInstalled") $null = $mutex.WaitOne() - try { - # Check installed modules again after acquiring lock - $modules = (Get-Module -ListAvailable $moduleName) - if ($version -as [Version]) { - $modules = $modules.Where({ [Version]$_.Version -ge [Version]$version }) - } - - if ($modules.Count -eq 0) - { - $repositories = (Get-PSRepository).Where({ $_.SourceLocation -eq $repositoryUrl }) - if ($repositories.Count -eq 0) - { - Register-PSRepository -Name $repositoryUrl -SourceLocation $repositoryUrl -InstallationPolicy Trusted - $repositories = (Get-PSRepository).Where({ $_.SourceLocation -eq $repositoryUrl }) - if ($repositories.Count -eq 0) { - Write-Error "Failed to register package repository $repositoryUrl." - return - } - } - $repository = $repositories[0] - - if ($repository.InstallationPolicy -ne "Trusted") { - Set-PSRepository -Name $repository.Name -InstallationPolicy "Trusted" - } - - Write-Host "Installing module $moduleName with min version $version from $repositoryUrl" - # Install under CurrentUser scope so that the end up under $CurrentUserModulePath for caching - Install-Module $moduleName -MinimumVersion $version -Repository $repository.Name -Scope CurrentUser -Force - - # Ensure module installed - $modules = (Get-Module -ListAvailable $moduleName) - if ($version -as [Version]) { - $modules = $modules.Where({ [Version]$_.Version -ge [Version]$version }) - } - - if ($modules.Count -eq 0) { - Write-Error "Failed to install module $moduleName with version $version" - return + # Check installed modules again after acquiring lock, in case it has been installed + $module = moduleIsInstalled -moduleName $moduleName -version $version + if ($module) { return $module } + + $repoUrls = Get-ModuleRepositories $moduleName + + foreach ($url in $repoUrls) { + try { + $module = installModule -moduleName $moduleName -version $version -repoUrl $url + } catch { + if ($url -ne $repoUrls[-1]) { + Write-Warning "Failed to install powershell module from '$url'. Retrying with fallback repository" + Write-Warning $_ + continue + } else { + Write-Warning "Failed to install powershell module from $url" + throw } } + break } - finally { - $mutex.ReleaseMutex() - } + + Write-Host "Using module '$($module.Name)' with version '$($module.Version)'." + } finally { + $mutex.ReleaseMutex() } - Write-Host "Using module $($modules[0].Name) with version $($modules[0].Version)." - return $modules[0] + return $module } if ($null -ne $env:SYSTEM_TEAMPROJECTID) { diff --git a/eng/common/scripts/Helpers/Package-Helpers.ps1 b/eng/common/scripts/Helpers/Package-Helpers.ps1 index e83be6643cbf..f1ea6ef91f27 100644 --- a/eng/common/scripts/Helpers/Package-Helpers.ps1 +++ b/eng/common/scripts/Helpers/Package-Helpers.ps1 @@ -80,7 +80,7 @@ function CompatibleConvertFrom-Yaml { $yqPresent = Get-Command 'yq' -ErrorAction SilentlyContinue if (-not $yqPresent) { . (Join-Path $PSScriptRoot PSModule-Helpers.ps1) - Install-ModuleIfNotInstalled -WhatIf:$false "powershell-yaml" "0.4.1" | Import-Module + Install-ModuleIfNotInstalled -WhatIf:$false "powershell-yaml" "0.4.7" | Import-Module } # Process the content (for example, you could convert from YAML here) diff --git a/eng/common/scripts/TypeSpec-Project-Generate.ps1 b/eng/common/scripts/TypeSpec-Project-Generate.ps1 index e0ca0a55f6ef..4f8fa144bb27 100644 --- a/eng/common/scripts/TypeSpec-Project-Generate.ps1 +++ b/eng/common/scripts/TypeSpec-Project-Generate.ps1 @@ -13,7 +13,7 @@ $ErrorActionPreference = "Stop" . $PSScriptRoot/Helpers/PSModule-Helpers.ps1 . $PSScriptRoot/Helpers/CommandInvocation-Helpers.ps1 . $PSScriptRoot/common.ps1 -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module function NpmInstallForProject([string]$workingDirectory) { Push-Location $workingDirectory diff --git a/eng/common/scripts/TypeSpec-Project-Process.ps1 b/eng/common/scripts/TypeSpec-Project-Process.ps1 index 7b894379e925..e4b933479f80 100644 --- a/eng/common/scripts/TypeSpec-Project-Process.ps1 +++ b/eng/common/scripts/TypeSpec-Project-Process.ps1 @@ -14,7 +14,7 @@ param ( . $PSScriptRoot/common.ps1 . $PSScriptRoot/Helpers/PSModule-Helpers.ps1 -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module function CreateUpdate-TspLocation([System.Object]$tspConfig, [string]$TypeSpecProjectDirectory, [string]$CommitHash, [string]$repo, [string]$repoRoot, [ref]$isNewSdkProject) { $additionalDirs = @() @@ -225,4 +225,4 @@ if ($SkipSyncAndGenerate -and !$isNewSdkProject) { } } -return $sdkProjectFolder \ No newline at end of file +return $sdkProjectFolder diff --git a/eng/common/scripts/TypeSpec-Project-Sync.ps1 b/eng/common/scripts/TypeSpec-Project-Sync.ps1 index 0c7427af4ce5..ce45148934ab 100644 --- a/eng/common/scripts/TypeSpec-Project-Sync.ps1 +++ b/eng/common/scripts/TypeSpec-Project-Sync.ps1 @@ -11,7 +11,7 @@ param ( $ErrorActionPreference = "Stop" . $PSScriptRoot/Helpers/PSModule-Helpers.ps1 -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module $sparseCheckoutFile = ".git/info/sparse-checkout" function AddSparseCheckoutPath([string]$subDirectory) { diff --git a/eng/common/scripts/Update-DocsMsToc.ps1 b/eng/common/scripts/Update-DocsMsToc.ps1 index 61596d81cccd..aa84b1c6b8c3 100644 --- a/eng/common/scripts/Update-DocsMsToc.ps1 +++ b/eng/common/scripts/Update-DocsMsToc.ps1 @@ -55,7 +55,7 @@ param( . $PSScriptRoot/common.ps1 . $PSScriptRoot/Helpers/PSModule-Helpers.ps1 -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module Set-StrictMode -Version 3 diff --git a/eng/common/scripts/Verify-ChangeLogs.ps1 b/eng/common/scripts/Verify-ChangeLogs.ps1 index 1aeb33a52c8e..9598472720c5 100644 --- a/eng/common/scripts/Verify-ChangeLogs.ps1 +++ b/eng/common/scripts/Verify-ChangeLogs.ps1 @@ -7,30 +7,17 @@ Set-StrictMode -Version 3 . (Join-Path $PSScriptRoot common.ps1) -function ShouldVerifyChangeLog ($ServiceDirectory, $PackageName) { - $jsonCiYmlPath = Join-Path $ServiceDirectory "ci.yml" - - if (Test-Path $jsonCiYmlPath) - { - $ciYml = Get-Content $jsonCiYmlPath -Raw | yq -o=json | ConvertFrom-Json -AsHashTable - - if ($ciYml.extends -and $ciYml.extends.parameters -and $ciYml.extends.parameters.Artifacts) { - $packagesCheckingChangeLog = $ciYml.extends.parameters.Artifacts ` - | Where-Object { -not ($_["skipVerifyChangelog"] -eq $true) } ` - | Select-Object -ExpandProperty name - if ($packagesCheckingChangeLog -contains $PackageName) - { - return $true - } else { - return $false - } - } + +function ShouldVerifyChangeLog ($PkgArtifactDetails) { + if ($PkgArtifactDetails) { + if ($PkgArtifactDetails.PSObject.Properties["skipVerifyChangeLog"] -eq $true) { + return $false } -} -if (-not (Get-Command 'yq' -ErrorAction SilentlyContinue)) { - Write-Host "Error: 'yq' is not installed or not found in PATH. Please remedy this before running this script." - exit 1 + return $true + } + + return $false } # find which packages we need to confirm the changelog for @@ -41,7 +28,7 @@ $allPassing = $true foreach($propertiesFile in $packageProperties) { $PackageProp = Get-Content -Path $propertiesFile | ConvertFrom-Json - if (-not (ShouldVerifyChangeLog -ServiceDirectory (Join-Path $RepoRoot "sdk" $PackageProp.ServiceDirectory) -PackageName $PackageProp.Name)) { + if (-not (ShouldVerifyChangeLog $PackageProp.ArtifactDetails)) { Write-Host "Skipping changelog verification for $($PackageProp.Name)" continue } diff --git a/eng/common/scripts/Verify-Resource-Ref.ps1 b/eng/common/scripts/Verify-Resource-Ref.ps1 index f806290e9815..8669a2988342 100644 --- a/eng/common/scripts/Verify-Resource-Ref.ps1 +++ b/eng/common/scripts/Verify-Resource-Ref.ps1 @@ -1,5 +1,5 @@ . (Join-Path $PSScriptRoot common.ps1) -Install-Module -Name powershell-yaml -RequiredVersion 0.4.1 -Force -Scope CurrentUser +Install-Module -Name powershell-yaml -RequiredVersion 0.4.7 -Force -Scope CurrentUser $ymlfiles = Get-ChildItem $RepoRoot -recurse | Where-Object {$_ -like '*.yml'} $affectedRepos = [System.Collections.ArrayList]::new() @@ -48,4 +48,4 @@ if ($affectedRepos.Count -gt 0) exit 1 } -Write-Output "All repository resources in yaml files reference a valid tag" \ No newline at end of file +Write-Output "All repository resources in yaml files reference a valid tag" diff --git a/eng/common/scripts/Verify-RestApiSpecLocation.ps1 b/eng/common/scripts/Verify-RestApiSpecLocation.ps1 index 8a420bd769f9..7182db193d4e 100644 --- a/eng/common/scripts/Verify-RestApiSpecLocation.ps1 +++ b/eng/common/scripts/Verify-RestApiSpecLocation.ps1 @@ -50,7 +50,7 @@ if (-not $GitHubPat) { Write-Host "The spec used to release SDK should be from the main branch of Azure/azure-rest-api-specs repository." Write-Host "ServiceDir:$ServiceDirectory, PackageName:$PackageName, ArtifactLocation:$ArtifactLocation, PackageInfoDirectory:$PackageInfoDirectory." -Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module +Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module # This function is used to verify the 'require' and 'input-file' settings in autorest.md point to the main branch of Azure/azure-rest-api-specs repository # input-file may be: diff --git a/eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 b/eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 index 03fc6422e3aa..1d86cfcd79db 100644 --- a/eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 +++ b/eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 @@ -90,31 +90,33 @@ foreach ($matrixBatchKey in $matrixBatchesByConfig.Keys) { $packageBatches = Split-ArrayIntoBatches -InputArray $matrixBatch -BatchSize $BATCHSIZE - # we only need to modify the generated job name if there is more than one matrix config or batch in the matrix - $matrixSuffixNecessary = $matrixConfigs.Count -gt 1 + # we only need to modify the generated job name if there is more than one matrix config + batch + $matrixSuffixNecessary = $matrixBatchesByConfig.Keys.Count -gt 1 $batchSuffixNecessary = $packageBatches.Length -gt 1 $batchCounter = 1 foreach ($batch in $packageBatches) { + $namesForBatch = ($batch | ForEach-Object { $_.ArtifactName }) -join "," # to understand this iteration, one must understand that the matrix is a list of hashtables, each with a couple keys: # [ # { "name": "jobname", "parameters": { matrixSetting1: matrixValue1, ...} }, # ] foreach ($matrixOutputItem in $matrixResults) { - $namesForBatch = ($batch | ForEach-Object { $_.ArtifactName }) -join "," + # we need to clone this, as each item is an object with possible children + $outputItem = $matrixOutputItem | ConvertTo-Json -Depth 100 | ConvertFrom-Json -AsHashtable # we just need to iterate across them, grab the parameters hashtable, and add the new key # if there is more than one batch, we will need to add a suffix including the batch name to the job name - $matrixOutputItem["parameters"]["$PRMatrixSetting"] = $namesForBatch + $outputItem["parameters"]["$PRMatrixSetting"] = $namesForBatch if ($matrixSuffixNecessary) { - $matrixOutputItem["name"] = $matrixOutputItem["name"] + $matrixConfig.Name + $outputItem["name"] = $outputItem["name"] + "_" + $matrixConfig.Name } if ($batchSuffixNecessary) { - $matrixOutputItem["name"] = $matrixOutputItem["name"] + "b$batchCounter" + $outputItem["name"] = $outputItem["name"] + "_b$batchCounter" } - $OverallResult += $matrixOutputItem + $OverallResult += $outputItem } $batchCounter += 1 } diff --git a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 index 0693f7983f18..e327763bd724 100644 --- a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 +++ b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 @@ -213,7 +213,7 @@ function GetMatrixConfigFromFile([String] $config) { } function GetMatrixConfigFromYaml([String] $yamlConfig) { - Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module + Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module # ConvertTo then from json is to make sure the nested values are in PSCustomObject [MatrixConfig]$config = ConvertFrom-Yaml $yamlConfig -Ordered | ConvertTo-Json -Depth 100 | ConvertFrom-Json return GetMatrixConfig $config @@ -490,7 +490,7 @@ function CloneOrderedDictionary([System.Collections.Specialized.OrderedDictionar function SerializePipelineMatrix([Array]$matrix) { $pipelineMatrix = [Ordered]@{} foreach ($entry in $matrix) { - if ($pipelineMatrix.Contains($entry.Name)) { + if ($pipelineMatrix.Contains($entry.name)) { Write-Warning "Found duplicate configurations for job `"$($entry.name)`". Multiple values may have been replaced with the same value." continue } diff --git a/eng/common/scripts/logging.ps1 b/eng/common/scripts/logging.ps1 index 91640cd7eb5d..1b459d004ad0 100644 --- a/eng/common/scripts/logging.ps1 +++ b/eng/common/scripts/logging.ps1 @@ -10,6 +10,26 @@ function LogInfo { Write-Host "$args" } +function LogNotice { + if (Test-SupportsGitHubLogging) { + Write-Host ("::notice::$args" -replace "`n", "%0D%0A") + } + else { + # No equivalent for DevOps + Write-Host "[Notice] $args" + } +} + +function LogNoticeForFile($file, $noticeString) { + if (Test-SupportsGitHubLogging) { + Write-Host ("::notice file=$file,line=1,col=1::$noticeString" -replace "`n", "%0D%0A") + } + else { + # No equivalent for DevOps + Write-Host "[Notice in file $file] $noticeString" + } +} + function LogWarning { if (Test-SupportsDevOpsLogging) { Write-Host ("##vso[task.LogIssue type=warning;]$args" -replace "`n", "%0D%0A") diff --git a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 index 48bab2c49ebe..56876ba0e1be 100644 --- a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 +++ b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 @@ -414,7 +414,7 @@ function CheckDependencies() } ) - Install-ModuleIfNotInstalled "powershell-yaml" "0.4.1" | Import-Module + Install-ModuleIfNotInstalled "powershell-yaml" "0.4.7" | Import-Module $shouldError = $false foreach ($dep in $deps) { diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index d51a53252449..6bf2b6b9cccc 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -6,63 +6,83 @@ "": { "name": "typescript-emitter-package", "dependencies": { - "@azure-tools/typespec-autorest": "0.47.0", - "@azure-tools/typespec-azure-core": "0.47.0", - "@azure-tools/typespec-azure-resource-manager": "0.47.0", - "@azure-tools/typespec-azure-rulesets": "0.47.0", - "@azure-tools/typespec-client-generator-core": "0.47.4", - "@azure-tools/typespec-ts": "0.34.0", - "@typespec/compiler": "0.61.2", - "@typespec/http": "0.61.0", - "@typespec/rest": "0.61.0", - "@typespec/versioning": "0.61.0" + "@azure-tools/typespec-autorest": "0.48.0", + "@azure-tools/typespec-azure-core": "0.48.0", + "@azure-tools/typespec-azure-resource-manager": "0.48.0", + "@azure-tools/typespec-azure-rulesets": "0.48.0", + "@azure-tools/typespec-client-generator-core": "0.48.0", + "@azure-tools/typespec-ts": "0.35.0", + "@typespec/compiler": "0.62.0", + "@typespec/http": "0.62.0", + "@typespec/rest": "0.62.0", + "@typespec/versioning": "0.62.0" } }, "node_modules/@azure-tools/rlc-common": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@azure-tools/rlc-common/-/rlc-common-0.34.0.tgz", - "integrity": "sha512-mLbNypmvm77ZzOrAMjoYKsWTb4sNdFD43eFEG13yVX+k2mgvRppfBM1DQdli8QN3FfZsMDFYM+YpfdcL/rQiiw==", + "version": "0.35.0", + "resolved": "https://registry.npmjs.org/@azure-tools/rlc-common/-/rlc-common-0.35.0.tgz", + "integrity": "sha512-YbzwU7EyhIpfydUqIFONfGolLFuriYDSEfvUV5/9fazccbkzldPXVbqgn8SndMbjwdYfXkzIuKeFxi39L6B5yg==", "dependencies": { "handlebars": "^4.7.7", "lodash": "^4.17.21", "ts-morph": "^23.0.0" } }, + "node_modules/@azure-tools/rlc-common/node_modules/handlebars": { + "version": "4.7.8", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, "node_modules/@azure-tools/typespec-autorest": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.47.0.tgz", - "integrity": "sha512-uYkk8mnzekSMhJKU3RS0cXvKPH0vbkonthYoPe7/vxZ7tWv4xJLSglV2v3m3QElFgvNebNVoBOEWSY8Kz/ip2Q==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.48.0.tgz", + "integrity": "sha512-AyoNMq3EORugHynFF8bN0TJh+zYxui/ApU5DoVEL7Xr1yMD6k9p5b90VD4HiCsP0dz8470ApFnjt5Vl6xCSzig==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.47.0", - "@azure-tools/typespec-azure-resource-manager": "~0.47.0", - "@azure-tools/typespec-client-generator-core": "~0.47.0", - "@typespec/compiler": "~0.61.0", - "@typespec/http": "~0.61.0", - "@typespec/openapi": "~0.61.0", - "@typespec/rest": "~0.61.0", - "@typespec/versioning": "~0.61.0" + "@azure-tools/typespec-azure-core": "~0.48.0", + "@azure-tools/typespec-azure-resource-manager": "~0.48.0", + "@azure-tools/typespec-client-generator-core": "~0.48.0", + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0", + "@typespec/openapi": "~0.62.0", + "@typespec/rest": "~0.62.0", + "@typespec/versioning": "~0.62.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.47.0.tgz", - "integrity": "sha512-RcBC5+dE1BVXTrUkkKULTImGxzM/ea3P3IL2kr9pk7r1uqF7D4CGqEKHFTg5L6QUtqc1f+zgTgQTNn6t4gI92w==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.48.0.tgz", + "integrity": "sha512-80qyqgTgBbrnCGXtz6eWAMBdEAjYVVL780L0Ye+rBEd6VoA0m3JrgzUqf5bC0Iwju6lEtBAb8o6sefKD/NGA7g==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.61.0", - "@typespec/http": "~0.61.0", - "@typespec/rest": "~0.61.0" + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0", + "@typespec/rest": "~0.62.0" } }, "node_modules/@azure-tools/typespec-azure-resource-manager": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.47.0.tgz", - "integrity": "sha512-pe9XhHJezTZtVlSVKIMhL1kRATMg6QSaXUZQhQmQKSuozVRsRBxI4IAhK3RU4p6SA8A2CoCpPeJpRhQTvdt73Q==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.48.0.tgz", + "integrity": "sha512-4JxPbKxd3EJ98sLbtfBlqyANWVrU6tT2nk3iLspg7MITPLhiMTeRT9BprsJXH18ks8qw8scR7/am5r57YERTmQ==", "dependencies": { "change-case": "~5.4.4", "pluralize": "^8.0.0" @@ -71,32 +91,32 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.47.0", - "@typespec/compiler": "~0.61.0", - "@typespec/http": "~0.61.0", - "@typespec/openapi": "~0.61.0", - "@typespec/rest": "~0.61.0", - "@typespec/versioning": "~0.61.0" + "@azure-tools/typespec-azure-core": "~0.48.0", + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0", + "@typespec/openapi": "~0.62.0", + "@typespec/rest": "~0.62.0", + "@typespec/versioning": "~0.62.0" } }, "node_modules/@azure-tools/typespec-azure-rulesets": { - "version": "0.47.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.47.0.tgz", - "integrity": "sha512-CG6sGYc/9qKAQIWtauzH6yEoTdugfz4DEmiWcytJMhgw1tQ2bqmcJuar01ctDKuaD5F1PKZ0X3oAxPu84pIlqw==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-rulesets/-/typespec-azure-rulesets-0.48.0.tgz", + "integrity": "sha512-IkPxC8v9wVSl/eKU7N4NhqD3RPh+bIYpxDW5LBAhkuQVcE3RumAkWqh2pmkckihQRhgwiCXhcJVZAzBpVa5SUA==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.47.0", - "@azure-tools/typespec-azure-resource-manager": "~0.47.0", - "@azure-tools/typespec-client-generator-core": "~0.47.0", - "@typespec/compiler": "~0.61.0" + "@azure-tools/typespec-azure-core": "~0.48.0", + "@azure-tools/typespec-azure-resource-manager": "~0.48.0", + "@azure-tools/typespec-client-generator-core": "~0.48.0", + "@typespec/compiler": "~0.62.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.47.4", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.47.4.tgz", - "integrity": "sha512-oXA8rHzBsoofzSXvGLGohj6VDYegtgAfGMWo2o4ubew1bS4cvl3CYl9DJ54blqafxtJXnNh4SdjadeHTsCz2mw==", + "version": "0.48.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.48.0.tgz", + "integrity": "sha512-+fmKjapz0kP7ONPZap8dgcIKIdQw+YBSrf89csbIyhPTcLnVAk/BKljo8FoNypKXwqKHenslLm0njBKPllkopg==", "dependencies": { "change-case": "~5.4.4", "pluralize": "^8.0.0" @@ -105,20 +125,20 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.47.0", - "@typespec/compiler": "~0.61.0", - "@typespec/http": "~0.61.0", - "@typespec/openapi": "~0.61.0", - "@typespec/rest": "~0.61.0", - "@typespec/versioning": "~0.61.0" + "@azure-tools/typespec-azure-core": "~0.48.0", + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0", + "@typespec/openapi": "~0.62.0", + "@typespec/rest": "~0.62.0", + "@typespec/versioning": "~0.62.0" } }, "node_modules/@azure-tools/typespec-ts": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-ts/-/typespec-ts-0.34.0.tgz", - "integrity": "sha512-7wVi170xCm5sCXUlPIeJF4RCnqWyuUY61SoBQezcRo6DG0sVyRXC8jcp9WpN4AZR+uT1LULGaGZPGj5yUG3AvA==", + "version": "0.35.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-ts/-/typespec-ts-0.35.0.tgz", + "integrity": "sha512-OG6ZsdV9vPv5NBH5Dk1HXndoowenbknqnzVUwlOMLemMpuOz1hDy1KgHMYQ7rivlUFB3beW9D6TaRB/JfwL5lQ==", "dependencies": { - "@azure-tools/rlc-common": "^0.34.0", + "@azure-tools/rlc-common": "^0.35.0", "fs-extra": "^11.1.0", "lodash": "^4.17.21", "prettier": "^3.3.3", @@ -126,20 +146,20 @@ "tslib": "^2.3.1" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": ">=0.47.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": ">=0.47.4 <1.0.0", - "@typespec/compiler": ">=0.61.2 <1.0.0", - "@typespec/http": ">=0.61.0 <1.0.0", - "@typespec/rest": ">=0.61.0 <1.0.0", - "@typespec/versioning": ">=0.61.0 <1.0.0" + "@azure-tools/typespec-azure-core": ">=0.48.0 <1.0.0", + "@azure-tools/typespec-client-generator-core": ">=0.48.0 <1.0.0", + "@typespec/compiler": ">=0.62.0 <1.0.0", + "@typespec/http": ">=0.62.0 <1.0.0", + "@typespec/rest": ">=0.62.0 <1.0.0", + "@typespec/versioning": ">=0.62.0 <1.0.0" } }, "node_modules/@babel/code-frame": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", - "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.9.tgz", + "integrity": "sha512-z88xeGxnzehn2sqZ8UdGQEvYErF1odv2CftxInpSYJt6uHuPe9YjahKZITGs3l5LeI9d2ROG+obuDAoSlqbNfQ==", "dependencies": { - "@babel/highlight": "^7.24.7", + "@babel/highlight": "^7.25.9", "picocolors": "^1.0.0" }, "engines": { @@ -211,23 +231,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@ts-morph/common": { - "version": "0.24.0", - "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.24.0.tgz", - "integrity": "sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==", - "dependencies": { - "fast-glob": "^3.3.2", - "minimatch": "^9.0.4", - "mkdirp": "^3.0.1", - "path-browserify": "^1.0.1" - } - }, "node_modules/@typespec/compiler": { - "version": "0.61.2", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.61.2.tgz", - "integrity": "sha512-6QxYJd09VWssd/BvY+8eBxTVv085s1UNK63FdPrgT2lgI+j8VMMcpNR9m5l1zWlgGDM7sniA/Or8VCdVA6jerg==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.62.0.tgz", + "integrity": "sha512-RfKJ/rF2Wjxu7dl74oJE8yEfSkeL7NopFlyJ4dW1JQXpRN2IOJYPxas12qZA6H9ZEIB8rBjyrHNxJSQbvn/UDQ==", "dependencies": { - "@babel/code-frame": "~7.24.7", + "@babel/code-frame": "~7.25.7", "ajv": "~8.17.1", "change-case": "~5.4.4", "globby": "~14.0.2", @@ -250,16 +259,101 @@ "node": ">=18.0.0" } }, + "node_modules/@typespec/compiler/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@typespec/compiler/node_modules/prettier": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/@typespec/compiler/node_modules/vscode-languageserver": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz", + "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==", + "dependencies": { + "vscode-languageserver-protocol": "3.17.5" + }, + "bin": { + "installServerIntoExtension": "bin/installServerIntoExtension" + } + }, + "node_modules/@typespec/compiler/node_modules/vscode-languageserver-protocol": { + "version": "3.17.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz", + "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==", + "dependencies": { + "vscode-jsonrpc": "8.2.0", + "vscode-languageserver-types": "3.17.5" + } + }, + "node_modules/@typespec/compiler/node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/@typespec/compiler/node_modules/yaml": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz", + "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@typespec/compiler/node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@typespec/http": { - "version": "0.61.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.61.0.tgz", - "integrity": "sha512-7+AYHkzkc+p652GY9BcEbXY4OZa1fTr03MVmZeafvmbQbXfyzUU9eJld13M3v6NaUWqXWZ7nBNMISyKiXp/kSw==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.62.0.tgz", + "integrity": "sha512-6H9y9e32lb2s76MMy29ITCwSZNG42sa/qWthiByUvfbTEXMpu5a1fQHNj7RXg+xmDKmVIHv3gAfjGPAWfXhkaQ==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.61.0", - "@typespec/streams": "~0.61.0" + "@typespec/compiler": "~0.62.0", + "@typespec/streams": "~0.62.0" }, "peerDependenciesMeta": { "@typespec/streams": { @@ -268,54 +362,39 @@ } }, "node_modules/@typespec/openapi": { - "version": "0.61.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.61.0.tgz", - "integrity": "sha512-3AF319Ae4yGVOscsCLQeedXUJJcL/NdGOR2/e/nFiL/AOVdgLfIRnpR0Ad9Zj9XAESh1fq9XSu4Mi7N1k4V7rw==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.62.0.tgz", + "integrity": "sha512-Xtm0Nd2BuSmEfSWGtc10ok22jyomYm9L2jY+kVTy+v5J89DrVh0o6+YpipUl1QhcItM1YMBphWHIHPfwkDRbnw==", "peer": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.61.0", - "@typespec/http": "~0.61.0" + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0" } }, "node_modules/@typespec/rest": { - "version": "0.61.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.61.0.tgz", - "integrity": "sha512-L9Oyor+l42p6S8GE+UvaZTi+dcu6WubGZKmaBRpX8mCZGsa69EgIK8DQoyxrfMcxAO4I5U0sfkzCKwCVFtRr9g==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.62.0.tgz", + "integrity": "sha512-ci5UjelEKFwsPTdpgysoUoDCcw02EnbG4GBuYJdR5mRrFCBZMxrbro+OJLgSN3g/TORSsWlW7dEOWLfbyrmlZQ==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.61.0", - "@typespec/http": "~0.61.0" + "@typespec/compiler": "~0.62.0", + "@typespec/http": "~0.62.0" } }, "node_modules/@typespec/versioning": { - "version": "0.61.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.61.0.tgz", - "integrity": "sha512-PIIug6eg3zc7E+BBHyNHHQD+OBq3FU465nhKrLEp35iVji/sYFuPc1ywnELDuwJVRWm6nvqNL1vtnc+4lEk+oA==", + "version": "0.62.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.62.0.tgz", + "integrity": "sha512-M5KTCVH5fBniZU8eQlw+NV13vAmPr58HyBLDIyxeOuV+SHNlx+f+qanUEDIPaJheKlaSSNTEZKsDhs83/iIMMA==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.61.0" - } - }, - "node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "@typespec/compiler": "~0.62.0" } }, "node_modules/ansi-regex": { @@ -392,11 +471,6 @@ "node": ">=12" } }, - "node_modules/code-block-writer": { - "version": "13.0.3", - "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-13.0.3.tgz", - "integrity": "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==" - }, "node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -436,21 +510,6 @@ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, "node_modules/fast-uri": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz", @@ -526,31 +585,26 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "node_modules/handlebars": { - "version": "4.7.8", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", - "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "node_modules/globby/node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dependencies": { - "minimist": "^1.2.5", - "neo-async": "^2.6.2", - "source-map": "^0.6.1", - "wordwrap": "^1.0.0" - }, - "bin": { - "handlebars": "bin/handlebars" + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" }, "engines": { - "node": ">=0.4.7" - }, - "optionalDependencies": { - "uglify-js": "^3.1.4" + "node": ">=8.6.0" } }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", @@ -678,20 +732,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/mustache": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", @@ -746,9 +786,9 @@ } }, "node_modules/prettier": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", - "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.1.tgz", + "integrity": "sha512-G+YdqtITVZmOJje6QkXQWzl3fSfMxFwm1tjTyo9exhkmWSqC4Yhd1+lug++IlR2mvRVAxEDDWYkQdeSztajqgg==", "bin": { "prettier": "bin/prettier.cjs" }, @@ -940,6 +980,51 @@ "code-block-writer": "^13.0.1" } }, + "node_modules/ts-morph/node_modules/@ts-morph/common": { + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.24.0.tgz", + "integrity": "sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==", + "dependencies": { + "fast-glob": "^3.3.2", + "minimatch": "^9.0.4", + "mkdirp": "^3.0.1", + "path-browserify": "^1.0.1" + } + }, + "node_modules/ts-morph/node_modules/code-block-writer": { + "version": "13.0.3", + "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-13.0.3.tgz", + "integrity": "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==" + }, + "node_modules/ts-morph/node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/ts-morph/node_modules/mkdirp": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", @@ -984,26 +1069,6 @@ "node": ">=14.0.0" } }, - "node_modules/vscode-languageserver": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz", - "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==", - "dependencies": { - "vscode-languageserver-protocol": "3.17.5" - }, - "bin": { - "installServerIntoExtension": "bin/installServerIntoExtension" - } - }, - "node_modules/vscode-languageserver-protocol": { - "version": "3.17.5", - "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz", - "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==", - "dependencies": { - "vscode-jsonrpc": "8.2.0", - "vscode-languageserver-types": "3.17.5" - } - }, "node_modules/vscode-languageserver-textdocument": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz", @@ -1065,42 +1130,6 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/yaml": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz", - "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/yargs-parser": { "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 52c5aaabfc7f..dd6b06cddb88 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -2,15 +2,15 @@ "name": "typescript-emitter-package", "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-ts": "0.34.0", - "@azure-tools/typespec-azure-core": "0.47.0", - "@azure-tools/typespec-autorest": "0.47.0", - "@azure-tools/typespec-client-generator-core": "0.47.4", - "@azure-tools/typespec-azure-resource-manager": "0.47.0", - "@azure-tools/typespec-azure-rulesets": "0.47.0", - "@typespec/compiler": "0.61.2", - "@typespec/http": "0.61.0", - "@typespec/rest": "0.61.0", - "@typespec/versioning": "0.61.0" + "@azure-tools/typespec-ts": "0.35.0", + "@azure-tools/typespec-azure-core": "0.48.0", + "@azure-tools/typespec-autorest": "0.48.0", + "@azure-tools/typespec-client-generator-core": "0.48.0", + "@azure-tools/typespec-azure-resource-manager": "0.48.0", + "@azure-tools/typespec-azure-rulesets": "0.48.0", + "@typespec/compiler": "0.62.0", + "@typespec/http": "0.62.0", + "@typespec/rest": "0.62.0", + "@typespec/versioning": "0.62.0" } } diff --git a/eng/ignore-links.txt b/eng/ignore-links.txt index 648e175b984e..4f9ed285b40d 100644 --- a/eng/ignore-links.txt +++ b/eng/ignore-links.txt @@ -13,3 +13,5 @@ https://docs.microsoft.com/javascript/api/@azure/arm-trustedsigning?view=azure-n https://docs.microsoft.com/javascript/api/@azure/arm-containerorchestratorruntime?view=azure-node-preview https://docs.microsoft.com/javascript/api/@azure/arm-iotoperations?view=azure-node-preview https://docs.microsoft.com/javascript/api/@azure/arm-databoundaries?view=azure-node-preview +https://docs.microsoft.com/javascript/api/@azure/arm-terraform?view=azure-node-preview +https://docs.microsoft.com/javascript/api/@azure/arm-connectedcache?view=azure-node-preview diff --git a/eng/pipelines/docindex.yml b/eng/pipelines/docindex.yml index 94beaf7ff9e9..aba74f4c0ffc 100644 --- a/eng/pipelines/docindex.yml +++ b/eng/pipelines/docindex.yml @@ -1,4 +1,18 @@ trigger: none + +parameters: +- name: UpdateMain + displayName: | + Update main branch. + type: boolean + default: true + +- name: ForceDailyUpdate + displayName: | + Force the daily branch update (includes starting daily branch run). + type: boolean + default: false + variables: - template: /eng/pipelines/templates/variables/globals.yml jobs: @@ -56,127 +70,133 @@ jobs: - template: /eng/pipelines/templates/steps/install-rex-validation-tool.yml - - task: Powershell@2 - inputs: - pwsh: true - filePath: eng/common/scripts/Update-DocsMsPackageMonikers.ps1 - arguments: -DocRepoLocation $(DocRepoLocation) - displayName: Move deprecated packages to legacy moniker - condition: and(succeeded(), or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Force.MainUpdate'], 'true'))) - - - task: Powershell@2 - inputs: - pwsh: true - filePath: eng/common/scripts/Update-DocsMsPackages.ps1 - arguments: -DocRepoLocation $(DocRepoLocation) - displayName: Update Docs Onboarding for main branch - condition: and(succeeded(), or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Force.MainUpdate'], 'true'))) - - - task: Powershell@2 - inputs: - pwsh: true - filePath: eng/common/scripts/Service-Level-Readme-Automation.ps1 - arguments: -DocRepoLocation $(DocRepoLocation) - displayName: Generate Service Level Readme for main branch - condition: and(succeeded(), or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Force.MainUpdate'], 'true'))) - - - task: Powershell@2 - inputs: - pwsh: true - filePath: eng/common/scripts/Update-DocsMsToc.ps1 - arguments: >- - -DocRepoLocation $(DocRepoLocation) - -OutputLocation $(DocRepoLocation)/docs-ref-mapping/reference-unified.yml - displayName: Generate ToC for main branch - condition: and(succeeded(), or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Force.MainUpdate'], 'true'))) - - - task: Powershell@2 - inputs: - pwsh: true - filePath: eng/common/scripts/Verify-RequiredDocsJsonMembers.ps1 - arguments: >- - -DocRepoLocation $(DocRepoLocation) - displayName: Verify Required Docs Json Members - - # Push changes to docs repo - template: /eng/common/pipelines/templates/steps/set-default-branch.yml parameters: WorkingDirectory: $(DocRepoLocation) - - template: /eng/common/pipelines/templates/steps/git-push-changes.yml - parameters: - BaseRepoBranch: $(DefaultBranch) - BaseRepoOwner: $(DocRepoOwner) - CommitMsg: "Update docs CI configuration Build: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)" - TargetRepoName: $(DocRepoName) - TargetRepoOwner: $(DocRepoOwner) - WorkingDirectory: $(DocRepoLocation) - - # Prepare daily docs CI - - template: /eng/common/pipelines/templates/steps/set-daily-docs-branch-name.yml - parameters: - DailyBranchVariableName: DailyDocsBranchName - - pwsh: | - $ErrorActionPreference = "Continue" - git checkout "origin/$(DailyDocsBranchName)" 2>&1 | Out-Null - $LASTEXITCODE = 0 # This ignores any error from git checkout - git status - displayName: Checkout daily branch if it exists - workingDirectory: $(DocRepoLocation) - - task: Powershell@2 - inputs: - pwsh: true - filePath: eng/common/scripts/Update-DocsMsPackages.ps1 - arguments: -DocRepoLocation $(DocRepoLocation) - displayName: Update Docs Onboarding for Daily docs - - - task: Powershell@2 - inputs: - pwsh: true - filePath: eng/common/scripts/Service-Level-Readme-Automation.ps1 - arguments: -DocRepoLocation $(DocRepoLocation) - displayName: Generate Service Level Readme for Daily docs - - - task: Powershell@2 - inputs: - pwsh: true - filePath: eng/common/scripts/Update-DocsMsToc.ps1 - arguments: >- - -DocRepoLocation $(DocRepoLocation) - -OutputLocation $(DocRepoLocation)/docs-ref-mapping/reference-unified.yml - displayName: Generate ToC for Daily docs - - - task: Powershell@2 - inputs: - pwsh: true - filePath: eng/common/scripts/Verify-RequiredDocsJsonMembers.ps1 - arguments: >- - -DocRepoLocation $(DocRepoLocation) - displayName: Verify Required Docs Json Members - - - template: /eng/common/pipelines/templates/steps/git-push-changes.yml - parameters: - BaseRepoBranch: $(DailyDocsBranchName) - BaseRepoOwner: $(DocRepoOwner) - CommitMsg: "Update targeting packages based on release metadata. (Daily docs)" - TargetRepoName: $(DocRepoName) - TargetRepoOwner: $(DocRepoOwner) - WorkingDirectory: $(DocRepoLocation) - ScriptDirectory: $(Build.SourcesDirectory)/eng/common/scripts - PushArgs: -f - - - task: AzureCLI@2 - displayName: Queue Docs CI build - inputs: - azureSubscription: msdocs-apidrop-connection - scriptType: pscore - scriptLocation: inlineScript - inlineScript: | - $accessToken = az account get-access-token --resource "499b84ac-1321-427f-aa17-267ca6975798" --query "accessToken" --output tsv - $buildParamJson = '{"params":"{ \"target_repo\": { \"url\": \"https://github.com/MicrosoftDocs/azure-docs-sdk-node\", \"branch\": \"$(DailyDocsBranchName)\", \"folder\": \"./\" }, \"source_repos\": [] }"}' - eng/common/scripts/Queue-Pipeline.ps1 ` - -Organization "apidrop" ` - -Project "Content%20CI" ` - -DefinitionId 3452 ` - -BuildParametersJson $buildParamJson ` - -BearerToken $accessToken + # Updating main is the default reason to kick off manual builds of the docIndex run. + # Manual builds of docIndex are typically done to update Main when certain updates are + # made. These updates include new libraries and CSV updates in azure-sdk which, depending + # on the column(s) updated can cause anything from package deprecation to service level + # readme or ToC updates. + - ${{ if or(eq(variables['Build.Reason'], 'Schedule'), parameters.UpdateMain) }}: + - task: Powershell@2 + inputs: + pwsh: true + filePath: eng/common/scripts/Verify-RequiredDocsJsonMembers.ps1 + arguments: >- + -DocRepoLocation $(DocRepoLocation) + displayName: Verify Required Docs Json Members + + - task: Powershell@2 + inputs: + pwsh: true + filePath: eng/common/scripts/Update-DocsMsPackageMonikers.ps1 + arguments: -DocRepoLocation $(DocRepoLocation) + displayName: Move deprecated packages to legacy moniker + + - task: Powershell@2 + inputs: + pwsh: true + filePath: eng/common/scripts/Update-DocsMsPackages.ps1 + arguments: -DocRepoLocation $(DocRepoLocation) + displayName: Update Docs Onboarding for main branch + + - task: Powershell@2 + inputs: + pwsh: true + filePath: eng/common/scripts/Service-Level-Readme-Automation.ps1 + arguments: -DocRepoLocation $(DocRepoLocation) + displayName: Generate Service Level Readme for main branch + + - task: Powershell@2 + inputs: + pwsh: true + filePath: eng/common/scripts/Update-DocsMsToc.ps1 + arguments: >- + -DocRepoLocation $(DocRepoLocation) + -OutputLocation $(DocRepoLocation)/docs-ref-mapping/reference-unified.yml + displayName: Generate ToC for main branch + + # Push changes to docs repo + - template: /eng/common/pipelines/templates/steps/git-push-changes.yml + parameters: + BaseRepoBranch: $(DefaultBranch) + BaseRepoOwner: $(DocRepoOwner) + CommitMsg: "Update docs CI configuration Build: $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)" + TargetRepoName: $(DocRepoName) + TargetRepoOwner: $(DocRepoOwner) + WorkingDirectory: $(DocRepoLocation) + + # The scenario for running a Manual build is normally only for the main updates. The daily build + # should really only get kicked off for scheduled runs. + - ${{ if or(eq(variables['Build.Reason'], 'Schedule'), parameters.ForceDailyUpdate) }}: + # Prepare daily docs CI + - template: /eng/common/pipelines/templates/steps/set-daily-docs-branch-name.yml + parameters: + DailyBranchVariableName: DailyDocsBranchName + - pwsh: | + $ErrorActionPreference = "Continue" + git checkout "origin/$(DailyDocsBranchName)" 2>&1 | Out-Null + $LASTEXITCODE = 0 # This ignores any error from git checkout + git status + displayName: Checkout daily branch if it exists + workingDirectory: $(DocRepoLocation) + + - task: Powershell@2 + inputs: + pwsh: true + filePath: eng/common/scripts/Verify-RequiredDocsJsonMembers.ps1 + arguments: >- + -DocRepoLocation $(DocRepoLocation) + displayName: Verify Required Docs Json Members + + - task: Powershell@2 + inputs: + pwsh: true + filePath: eng/common/scripts/Update-DocsMsPackages.ps1 + arguments: -DocRepoLocation $(DocRepoLocation) + displayName: Update Docs Onboarding for Daily docs + + - task: Powershell@2 + inputs: + pwsh: true + filePath: eng/common/scripts/Service-Level-Readme-Automation.ps1 + arguments: -DocRepoLocation $(DocRepoLocation) + displayName: Generate Service Level Readme for Daily docs + + - task: Powershell@2 + inputs: + pwsh: true + filePath: eng/common/scripts/Update-DocsMsToc.ps1 + arguments: >- + -DocRepoLocation $(DocRepoLocation) + -OutputLocation $(DocRepoLocation)/docs-ref-mapping/reference-unified.yml + displayName: Generate ToC for Daily docs + + - template: /eng/common/pipelines/templates/steps/git-push-changes.yml + parameters: + BaseRepoBranch: $(DailyDocsBranchName) + BaseRepoOwner: $(DocRepoOwner) + CommitMsg: "Update targeting packages based on release metadata. (Daily docs)" + TargetRepoName: $(DocRepoName) + TargetRepoOwner: $(DocRepoOwner) + WorkingDirectory: $(DocRepoLocation) + ScriptDirectory: $(Build.SourcesDirectory)/eng/common/scripts + PushArgs: -f + + - task: AzureCLI@2 + displayName: Queue Docs CI build + inputs: + azureSubscription: msdocs-apidrop-connection + scriptType: pscore + scriptLocation: inlineScript + inlineScript: | + $accessToken = az account get-access-token --resource "499b84ac-1321-427f-aa17-267ca6975798" --query "accessToken" --output tsv + $buildParamJson = '{"params":"{ \"target_repo\": { \"url\": \"https://github.com/MicrosoftDocs/azure-docs-sdk-node\", \"branch\": \"$(DailyDocsBranchName)\", \"folder\": \"./\" }, \"source_repos\": [] }"}' + eng/common/scripts/Queue-Pipeline.ps1 ` + -Organization "apidrop" ` + -Project "Content%20CI" ` + -DefinitionId 3452 ` + -BuildParametersJson $buildParamJson ` + -BearerToken $accessToken diff --git a/eng/pipelines/templates/stages/1es-redirect.yml b/eng/pipelines/templates/stages/1es-redirect.yml index b185dc665461..8956c744c017 100644 --- a/eng/pipelines/templates/stages/1es-redirect.yml +++ b/eng/pipelines/templates/stages/1es-redirect.yml @@ -60,5 +60,9 @@ extends: compiled: true break: true policy: M365 + codeql: + compiled: + enabled: false + justificationForDisabling: "CodeQL times our pipelines out by running for hours before being force canceled." stages: ${{ parameters.stages }} diff --git a/eng/pipelines/templates/steps/analyze.yml b/eng/pipelines/templates/steps/analyze.yml index 41e21b077c91..41c235f27e22 100644 --- a/eng/pipelines/templates/steps/analyze.yml +++ b/eng/pipelines/templates/steps/analyze.yml @@ -29,12 +29,6 @@ steps: ServiceDirectory: "template" TestPipeline: ${{ parameters.TestPipeline }} - - template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml - parameters: - ArtifactPath: '$(Build.ArtifactStagingDirectory)' - ArtifactName: 'package-diffs' - SbomEnabled: false - - template: /eng/common/pipelines/templates/steps/verify-readmes.yml parameters: PackagePropertiesFolder: $(Build.ArtifactStagingDirectory)/PackageInfo @@ -114,4 +108,10 @@ steps: ArtifactName: 'reports' SbomEnabled: false + - template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml + parameters: + ArtifactPath: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'package-diffs' + SbomEnabled: false + - template: /eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml diff --git a/eng/pipelines/templates/steps/build.yml b/eng/pipelines/templates/steps/build.yml index d5d882d85866..375539e28f27 100644 --- a/eng/pipelines/templates/steps/build.yml +++ b/eng/pipelines/templates/steps/build.yml @@ -84,8 +84,7 @@ steps: ServiceDirectory: ${{parameters.ServiceDirectory}} - pwsh: | - $artifacts = Get-ChildItem -Recurse -Force "$(Build.ArtifactStagingDirectory)/PackageInfo/*.json" ` - | ForEach-Object { $_.Name.Replace(".json", "") } + $artifacts = "$(ArtifactPackageNames)".Split(",") foreach ($artifact in $artifacts) { diff --git a/eng/pipelines/templates/steps/generate-doc.yml b/eng/pipelines/templates/steps/generate-doc.yml index 72af43d7dbd3..c807a3316c4b 100644 --- a/eng/pipelines/templates/steps/generate-doc.yml +++ b/eng/pipelines/templates/steps/generate-doc.yml @@ -3,7 +3,7 @@ parameters: steps: - script: | - npm install + npm ci workingDirectory: $(System.DefaultWorkingDirectory)/eng/tools/generate-doc displayName: "Install tool dependencies" diff --git a/eng/pipelines/templates/steps/npm-release-task.yml b/eng/pipelines/templates/steps/npm-release-task.yml index 5ccb53797719..233052fdd15d 100644 --- a/eng/pipelines/templates/steps/npm-release-task.yml +++ b/eng/pipelines/templates/steps/npm-release-task.yml @@ -14,12 +14,22 @@ steps: $tempDir = "$(System.DefaultWorkingDirectory)/temp_decompress" New-Item -ItemType Directory -Force -Path $tempDir tar -xzf $tarFile -C $tempDir - $packageJsonDir = "$tempDir\package\package.json" + $packageJsonDir = "$tempDir/package/package.json" $pkg = Get-Content -Raw "$packageJsonDir" | ConvertFrom-Json $packageName = $pkg.Name $packageVersion = $pkg.Version - $packageProps = npm view $packageName -json | ConvertFrom-Json - $originalTags = $packageProps.'dist-tags' | ConvertTo-Json -Compress + $packageProps = npm view $packageName -json -silent | ConvertFrom-Json + $originalTags = "{}" + if ($packageProps.error) { + $LASTEXITCODE = 0 + if ($packageProps.error.code -ne "E404") { + Write-Error $packageProps.error + exit 1 + } + } + else { + $originalTags = $packageProps.'dist-tags' | ConvertTo-Json -Compress + } echo "##vso[task.setvariable variable=PackageName]$packageName" echo "##vso[task.setvariable variable=OriginalTags]$originalTags" echo "##vso[task.setvariable variable=IntendedTagVersion]$packageVersion" diff --git a/eng/scripts/Generate-APIView-CodeFile.ps1 b/eng/scripts/Generate-APIView-CodeFile.ps1 index 8303dc391f9b..c6325c7576a1 100644 --- a/eng/scripts/Generate-APIView-CodeFile.ps1 +++ b/eng/scripts/Generate-APIView-CodeFile.ps1 @@ -11,6 +11,10 @@ if (!(Test-Path -Path $ArtifactPath)) exit 1 } + +npm install "@rushstack/node-core-library@5.9.0" +npm install "js-tokens@9.0.0" +npm install "@microsoft/api-extractor-model@7.29.8" $apiviewParser = "@azure-tools/ts-genapi@2.0.3" Write-Host "Installing $($apiviewParser)" npm install $apiviewParser --registry $NpmDevopsFeedRegistry diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index e639c6fd4ede..f4e981e4ea12 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -7,9 +7,9 @@ $MetadataUri = "https://raw.githubusercontent.com/Azure/azure-sdk/main/_data/rel $GithubUri = "https://github.com/Azure/azure-sdk-for-js" $PackageRepositoryUri = "https://www.npmjs.com/package" $ReducedDependencyLookup = @{ - 'core' = @('@azure-rest/synapse-access-control', '@azure/arm-resources', '@azure/identity', '@azure/service-bus', '@azure/template') + 'core' = @('@azure-rest/synapse-access-control', '@azure/arm-resources', '@azure/identity', '@azure/service-bus', '@azure/template') 'test-utils' = @('@azure-tests/perf-storage-blob', '@azure/arm-eventgrid', '@azure/ai-text-analytics', '@azure/identity', '@azure/template') - 'identity' = @('@azure-tests/perf-storage-blob', '@azure/ai-text-analytics', '@azure/arm-resources', '@azure/identity-cache-persistence', '@azure/identity-vscode', '@azure/storage-blob', '@azure/template') + 'identity' = @('@azure-tests/perf-storage-blob', '@azure/ai-text-analytics', '@azure/arm-resources', '@azure/identity-cache-persistence', '@azure/identity-vscode', '@azure/storage-blob', '@azure/template') } . "$PSScriptRoot/docs/Docs-ToC.ps1" @@ -32,11 +32,11 @@ function Get-javascript-EmitterAdditionalOptions([string]$projectDirectory) { function Get-javascript-AdditionalValidationPackagesFromPackageSet { param( - [Parameter(Mandatory=$true)] + [Parameter(Mandatory = $true)] $LocatedPackages, - [Parameter(Mandatory=$true)] + [Parameter(Mandatory = $true)] $diffObj, - [Parameter(Mandatory=$true)] + [Parameter(Mandatory = $true)] $AllPkgProps ) $additionalValidationPackages = @() @@ -54,7 +54,7 @@ function Get-javascript-AdditionalValidationPackagesFromPackageSet { } $changedServices = @() - foreach($file in $diffObj.ChangedFiles) { + foreach ($file in $diffObj.ChangedFiles) { $pathComponents = $file -split "/" # handle changes only in sdk/// if ($pathComponents.Length -eq 3 -and $pathComponents[0] -eq "sdk") { @@ -66,18 +66,20 @@ function Get-javascript-AdditionalValidationPackagesFromPackageSet { $changedServices += "template" } } - - $othersChanged = $diffObj.ChangedFiles | Where-Object { isOther $_ } + $othersChanged = @() + if ($diffObj.ChangedFiles) { + $othersChanged = $diffObj.ChangedFiles | Where-Object { isOther $_ } + } $changedServices = $changedServices | Get-Unique if ($othersChanged) { - $additionalPackages = $ReducedDependencyLookup["core"] | ForEach-Object { $me=$_; $AllPkgProps | Where-Object { $_.Name -eq $me } | Select-Object -First 1 } + $additionalPackages = $ReducedDependencyLookup["core"] | ForEach-Object { $me = $_; $AllPkgProps | Where-Object { $_.Name -eq $me } | Select-Object -First 1 } $additionalValidationPackages += $additionalPackages } foreach ($changedService in $changedServices) { if ($ReducedDependencyLookup.ContainsKey($changedService)) { - $additionalPackages = $ReducedDependencyLookup[$changedService] | ForEach-Object { $me=$_; $AllPkgProps | Where-Object { $_.Name -eq $me } | Select-Object -First 1 } + $additionalPackages = $ReducedDependencyLookup[$changedService] | ForEach-Object { $me = $_; $AllPkgProps | Where-Object { $_.Name -eq $me } | Select-Object -First 1 } $additionalValidationPackages += $additionalPackages } else { diff --git a/eng/scripts/docs/Docs-ToC.ps1 b/eng/scripts/docs/Docs-ToC.ps1 index 9387bd6b5108..90b94e548970 100644 --- a/eng/scripts/docs/Docs-ToC.ps1 +++ b/eng/scripts/docs/Docs-ToC.ps1 @@ -1,9 +1,9 @@ -function GetOnboardingFile($docRepoLocation, $moniker) { +function GetOnboardingFile($docRepoLocation, $moniker) { $packageOnboardingFile = "$docRepoLocation/ci-configs/packages-latest.json" if ("preview" -eq $moniker) { $packageOnboardingFile = "$docRepoLocation/ci-configs/packages-preview.json" } - elseif ("legacy" -eq $moniker) { + elseif ("legacy" -eq $moniker) { $packageOnboardingFile = "$docRepoLocation/ci-configs/packages-legacy.json" } @@ -36,7 +36,7 @@ function Get-javascript-OnboardedDocsMsPackagesForMoniker($DocRepoLocation, $mon $packageOnboardingFile = GetOnboardingFile ` -docRepoLocation $DocRepoLocation ` -moniker $moniker - + $onboardedPackages = @{} $onboardingSpec = ConvertFrom-Json (Get-Content $packageOnboardingFile -Raw) foreach ($spec in $onboardingSpec.npm_package_sources) { @@ -46,7 +46,7 @@ function Get-javascript-OnboardedDocsMsPackagesForMoniker($DocRepoLocation, $mon # Package has an '@' symbol deliminting the end of the package name $packageName = $packageName.Substring(0, $packageName.LastIndexOf('@')) } - + $jsStylePkgName = $packageName.Replace("@", "").Replace("/", "-") $jsonFile = "$DocRepoLocation/metadata/$moniker/$jsStylePkgName.json" if (Test-Path $jsonFile) { @@ -66,11 +66,11 @@ function GetPackageReadmeName($packageMetadata) { if ($packageMetadata.PSObject.Members.Name -contains "FileMetadata") { $readmeMetadata = &$GetDocsMsMetadataForPackageFn -PackageInfo $packageMetadata.FileMetadata - # Packages released outside of our EngSys will have an empty string for + # Packages released outside of our EngSys will have an empty string for # DirectoryPath which will result in an empty string for DocsMsReadMeName. # In those cases, do not return the empty name and instead use the fallback # logic below. - if ($readmeMetadata.DocsMsReadMeName) { + if ($readmeMetadata.DocsMsReadMeName) { return $readmeMetadata.DocsMsReadMeName } } @@ -110,6 +110,8 @@ function Get-javascript-RepositoryLink ($packageInfo) { return "$PackageRepositoryUri/$($packageInfo.Package)" } +# Defined in common.ps1 as: +# $UpdateDocsMsTocFn = "Get-${Language}-UpdatedDocsMsToc" function Get-javascript-UpdatedDocsMsToc($toc) { $services = $toc[0].items for ($i = 0; $i -lt $services.Count; $i++) { @@ -135,6 +137,22 @@ function Get-javascript-UpdatedDocsMsToc($toc) { ) } } + + if ($services[$i].name -eq 'Cognitive Services') { + # Add OpenAI to the ToC for Cognitive Services + $services[$i].items += [PSCustomObject]@{ + name = "OpenAI"; + href = "~/docs-ref-services/{moniker}/openai-readme.md"; + } + + # Sort the items in the Cognitive Services ToC so OpenAI ends up in the + # correct place. The "Management" item should always be at the end of the + # list. + $management = $services[$i].items | Where-Object { $_.name -eq 'Management' } + $sortedItems = $services[$i].items | Where-Object { $_.name -ne 'Management' } | Sort-Object -Property name + + $services[$i].items = $sortedItems + $management + } } # PowerShell outputs a single object if the output is an array with only one diff --git a/eng/scripts/verify-npm-tags.ps1 b/eng/scripts/verify-npm-tags.ps1 index 69cd60fcca58..3a0906d9db20 100644 --- a/eng/scripts/verify-npm-tags.ps1 +++ b/eng/scripts/verify-npm-tags.ps1 @@ -28,20 +28,21 @@ Write-Host "Intend to add tag $intendedTag to version $intendedTagVersion" if ($packageDistTags."$intendedTag" -ne $intendedTagVersion) { Write-Warning "Tag not correctly set, current $intendedTag tag is version $($packageDistTags."$intendedTag") instead of $intendedTagVersion." $correctDistTags = $parsedOriginalDistTags - $correctDistTags."$intendedTag" = $intendedTagVersion + $correctDistTags | Add-Member -MemberType NoteProperty -Name $intendedTag -Value $intendedTagVersion -Force Write-Host "Setting AuthToken Deployment" $regAuth = "//registry.npmjs.org/" - $env:NPM_TOKEN=$npmToken + $env:NPM_TOKEN = $npmToken npm config set $regAuth`:_authToken=`$`{NPM_TOKEN`} - foreach($tag in $correctDistTags.PSObject.Properties) { + foreach ($tag in $correctDistTags.PSObject.Properties) { Write-Host "npm dist-tag add $packageName@$($tag.value) $($tag.Name)" npm dist-tag add $packageName@$($tag.value) $($tag.Name) } $npmPkgProp = npm view $packageName --json | ConvertFrom-Json $packageDistTags = $npmPkgProp."dist-tags" Write-Host "Corrected dist tags to: $packageDistTags" -} else { +} +else { Write-Host "Tag verified." } diff --git a/eng/tools/generate-doc/index.ts b/eng/tools/generate-doc/index.ts index 1ea9850b7a6e..a51a4307cc78 100644 --- a/eng/tools/generate-doc/index.ts +++ b/eng/tools/generate-doc/index.ts @@ -8,9 +8,27 @@ import { loadTheme } from "./theme/theme.js"; async function runTypeDoc({ outputFolder, cwd }: { outputFolder: string; cwd: string }) { const oldCwd = process.cwd(); process.chdir(cwd); + const packageJsonPath = path.join(cwd, "package.json"); + const content = await readFile(packageJsonPath, "utf-8"); + const packageJson = JSON.parse(content); + let entryPoints = ["src/index.ts"]; + const exports = packageJson["exports"]; + if (exports) { + entryPoints = []; + for (const [key, value] of Object.entries(exports)) { + if (key === "./package.json") { + continue; + } + const sourcePath = (value as Record)["import"]?.["default"]; + if (sourcePath) { + entryPoints.push(sourcePath.replace("./dist/esm", "src").replace(".js", ".ts")); + } + } + } + console.log(`entrypoints: ${JSON.stringify(entryPoints)}`); const app = await TypeDocApplication.bootstrap({ - entryPoints: ["src/index.ts"], + entryPoints, excludeInternal: true, excludePrivate: true, skipErrorChecking: true, diff --git a/eng/tools/generate-doc/package-lock.json b/eng/tools/generate-doc/package-lock.json new file mode 100644 index 000000000000..9bbdcba95d0f --- /dev/null +++ b/eng/tools/generate-doc/package-lock.json @@ -0,0 +1,885 @@ +{ + "name": "generate-doc", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "generate-doc", + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "typedoc": "^0.26.3", + "yargs": "^17.7.2" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "@types/yargs": "^17.0.32", + "typescript": "~5.6.2" + } + }, + "node_modules/@shikijs/core": { + "version": "1.23.1", + "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-1.23.1.tgz", + "integrity": "sha512-NuOVgwcHgVC6jBVH5V7iblziw6iQbWWHrj5IlZI3Fqu2yx9awH7OIQkXIcsHsUmY19ckwSgUMgrqExEyP5A0TA==", + "license": "MIT", + "dependencies": { + "@shikijs/engine-javascript": "1.23.1", + "@shikijs/engine-oniguruma": "1.23.1", + "@shikijs/types": "1.23.1", + "@shikijs/vscode-textmate": "^9.3.0", + "@types/hast": "^3.0.4", + "hast-util-to-html": "^9.0.3" + } + }, + "node_modules/@shikijs/engine-javascript": { + "version": "1.23.1", + "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-1.23.1.tgz", + "integrity": "sha512-i/LdEwT5k3FVu07SiApRFwRcSJs5QM9+tod5vYCPig1Ywi8GR30zcujbxGQFJHwYD7A5BUqagi8o5KS+LEVgBg==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "1.23.1", + "@shikijs/vscode-textmate": "^9.3.0", + "oniguruma-to-es": "0.4.1" + } + }, + "node_modules/@shikijs/engine-oniguruma": { + "version": "1.23.1", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-1.23.1.tgz", + "integrity": "sha512-KQ+lgeJJ5m2ISbUZudLR1qHeH3MnSs2mjFg7bnencgs5jDVPeJ2NVDJ3N5ZHbcTsOIh0qIueyAJnwg7lg7kwXQ==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "1.23.1", + "@shikijs/vscode-textmate": "^9.3.0" + } + }, + "node_modules/@shikijs/types": { + "version": "1.23.1", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-1.23.1.tgz", + "integrity": "sha512-98A5hGyEhzzAgQh2dAeHKrWW4HfCMeoFER2z16p5eJ+vmPeF6lZ/elEne6/UCU551F/WqkopqRsr1l2Yu6+A0g==", + "license": "MIT", + "dependencies": { + "@shikijs/vscode-textmate": "^9.3.0", + "@types/hast": "^3.0.4" + } + }, + "node_modules/@shikijs/vscode-textmate": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-9.3.0.tgz", + "integrity": "sha512-jn7/7ky30idSkd/O5yDBfAnVt+JJpepofP/POZ1iMOxK59cOfqIgg/Dj0eFsjOTMw+4ycJN0uhZH/Eb0bs/EUA==", + "license": "MIT" + }, + "node_modules/@types/hast": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/node": { + "version": "18.19.64", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.64.tgz", + "integrity": "sha512-955mDqvO2vFf/oL7V3WiUtiz+BugyX8uVbaT2H8oj3+8dRyH2FLiNdowe7eNqRM7IOIZvzDH76EoAT+gwm6aIQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "license": "MIT" + }, + "node_modules/@types/yargs": { + "version": "17.0.33", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "license": "ISC" + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-html4": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", + "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/emoji-regex-xs": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex-xs/-/emoji-regex-xs-1.0.0.tgz", + "integrity": "sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==", + "license": "MIT" + }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/hast-util-to-html": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.3.tgz", + "integrity": "sha512-M17uBDzMJ9RPCqLMO92gNNUDuBSq10a25SDBI08iCCxmorf4Yy6sYHK57n9WAbRAAaU+DuR4W6GN9K4DFZesYg==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "ccount": "^2.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-whitespace": "^3.0.0", + "html-void-elements": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "property-information": "^6.0.0", + "space-separated-tokens": "^2.0.0", + "stringify-entities": "^4.0.0", + "zwitch": "^2.0.4" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-whitespace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", + "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/html-void-elements": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", + "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", + "license": "MIT", + "dependencies": { + "uc.micro": "^2.0.0" + } + }, + "node_modules/lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", + "license": "MIT" + }, + "node_modules/markdown-it": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", + "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + }, + "bin": { + "markdown-it": "bin/markdown-it.mjs" + } + }, + "node_modules/mdast-util-to-hast": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.0.tgz", + "integrity": "sha512-QGYKEuUsYT9ykKBCMOEDLsU5JRObWQusAolFMeko/tYPufNkRffBAQjIE+99jbA87xv6FgmjLtwjh9wBWajwAA==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@ungap/structured-clone": "^1.0.0", + "devlop": "^1.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "trim-lines": "^3.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", + "license": "MIT" + }, + "node_modules/micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-types": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.1.tgz", + "integrity": "sha512-534m2WhVTddrcKVepwmVEVnUAmtrx9bfIjNoQHRqfnvdaHQiFytEhJoTgpWJvDEXCO5gLTQh3wYC1PgOJA4NSQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/oniguruma-to-es": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-0.4.1.tgz", + "integrity": "sha512-rNcEohFz095QKGRovP/yqPIKc+nP+Sjs4YTHMv33nMePGKrq/r2eu9Yh4646M5XluGJsUnmwoXuiXE69KDs+fQ==", + "license": "MIT", + "dependencies": { + "emoji-regex-xs": "^1.0.0", + "regex": "^5.0.0", + "regex-recursion": "^4.2.1" + } + }, + "node_modules/property-information": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.5.0.tgz", + "integrity": "sha512-PgTgs/BlvHxOu8QuEN7wi5A0OmXaBcHpmCSTehcs6Uuu9IkDIEo13Hy7n898RHfrQ49vKCoGeWZSaAK01nwVig==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/regex": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/regex/-/regex-5.0.2.tgz", + "integrity": "sha512-/pczGbKIQgfTMRV0XjABvc5RzLqQmwqxLHdQao2RTXPk+pmTXB2P0IaUHYdYyk412YLwUIkaeMd5T+RzVgTqnQ==", + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-recursion": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-4.2.1.tgz", + "integrity": "sha512-QHNZyZAeKdndD1G3bKAbBEKOSSK4KOHQrAJ01N1LJeb0SoH4DJIeFhp0uUpETgONifS4+P3sOgoA1dhzgrQvhA==", + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-utilities": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz", + "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==", + "license": "MIT" + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shiki": { + "version": "1.23.1", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-1.23.1.tgz", + "integrity": "sha512-8kxV9TH4pXgdKGxNOkrSMydn1Xf6It8lsle0fiqxf7a1149K1WGtdOu3Zb91T5r1JpvRPxqxU3C2XdZZXQnrig==", + "license": "MIT", + "dependencies": { + "@shikijs/core": "1.23.1", + "@shikijs/engine-javascript": "1.23.1", + "@shikijs/engine-oniguruma": "1.23.1", + "@shikijs/types": "1.23.1", + "@shikijs/vscode-textmate": "^9.3.0", + "@types/hast": "^3.0.4" + } + }, + "node_modules/space-separated-tokens": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/stringify-entities": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", + "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==", + "license": "MIT", + "dependencies": { + "character-entities-html4": "^2.0.0", + "character-entities-legacy": "^3.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/trim-lines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/typedoc": { + "version": "0.26.11", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.26.11.tgz", + "integrity": "sha512-sFEgRRtrcDl2FxVP58Ze++ZK2UQAEvtvvH8rRlig1Ja3o7dDaMHmaBfvJmdGnNEFaLTpQsN8dpvZaTqJSu/Ugw==", + "license": "Apache-2.0", + "dependencies": { + "lunr": "^2.3.9", + "markdown-it": "^14.1.0", + "minimatch": "^9.0.5", + "shiki": "^1.16.2", + "yaml": "^2.5.1" + }, + "bin": { + "typedoc": "bin/typedoc" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "typescript": "4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x" + } + }, + "node_modules/typescript": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", + "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true, + "license": "MIT" + }, + "node_modules/unist-util-is": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.0.tgz", + "integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz", + "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz", + "integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.2.tgz", + "integrity": "sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yaml": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.0.tgz", + "integrity": "sha512-a6ae//JvKDEra2kdi1qzCyrJW/WZCgFi8ydDV+eXExl95t+5R+ijnqHJbz9tmMh8FUjx3iv2fCQ4dclAQlO2UQ==", + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + } + } +} diff --git a/rush.json b/rush.json index b6f3ab160e70..6d522ae66551 100644 --- a/rush.json +++ b/rush.json @@ -14,7 +14,7 @@ * path segment in the "$schema" field for all your Rush config files. This will ensure * correct error-underlining and tab-completion for editors such as VS Code. */ - "rushVersion": "5.131.4", + "rushVersion": "5.141.1", /** * The next field selects which package manager should be installed and determines its version. * Rush installs its own local copy of the package manager to ensure that your build process @@ -2306,6 +2306,16 @@ "packageName": "@azure/arm-containerorchestratorruntime", "projectFolder": "sdk/kubernetesruntime/arm-containerorchestratorruntime", "versionPolicyName": "management" + }, + { + "packageName": "@azure/arm-terraform", + "projectFolder": "sdk/terraform/arm-terraform", + "versionPolicyName": "management" + }, + { + "packageName": "@azure/arm-connectedcache", + "projectFolder": "sdk/connectedcache/arm-connectedcache", + "versionPolicyName": "management" } ] } diff --git a/sdk/agrifood/agrifood-farming-rest/package.json b/sdk/agrifood/agrifood-farming-rest/package.json index 665be6094484..febb5385113f 100644 --- a/sdk/agrifood/agrifood-farming-rest/package.json +++ b/sdk/agrifood/agrifood-farming-rest/package.json @@ -108,7 +108,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-json-preprocessor": "^0.3.3", "karma-json-to-file-reporter": "^1.0.1", "karma-junit-reporter": "^2.0.1", diff --git a/sdk/anomalydetector/ai-anomaly-detector-rest/package.json b/sdk/anomalydetector/ai-anomaly-detector-rest/package.json index 99bc6c1b4a22..983daf3d8a5b 100644 --- a/sdk/anomalydetector/ai-anomaly-detector-rest/package.json +++ b/sdk/anomalydetector/ai-anomaly-detector-rest/package.json @@ -87,7 +87,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/execute.cjs b/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/execute.cjs index c0d163a89c1d..0d74212aa7fe 100755 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/execute.cjs +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/execute.cjs @@ -1,3 +1,4 @@ +#!/usr/bin/env node 'use strict'; var Parser = require('yargs-parser'); @@ -965,8 +966,6 @@ async function generateProject(widgetConfig, deploymentConfig, options = {}) { return; } -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. const log = console.log; const white = (msg) => log(chalk.white(msg)); const green = (msg) => log(chalk.green(msg)); diff --git a/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/execute.cjs.map b/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/execute.cjs.map index f7990d282c80..fb4fc24d26fc 100644 --- a/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/execute.cjs.map +++ b/sdk/apimanagement/api-management-custom-widgets-scaffolder/bin/execute.cjs.map @@ -1 +1 @@ -{"version":3,"file":"execute.cjs","sources":["../dist/esm/scaffolding.js","../dist/esm/bin/execute-configs.js","../../../../common/temp/node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/yerror.js","../../../../common/temp/node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/process-argv.js","../../../../common/temp/node_modules/.pnpm/cliui@8.0.1/node_modules/cliui/build/lib/index.js","../../../../common/temp/node_modules/.pnpm/cliui@8.0.1/node_modules/cliui/build/lib/string-utils.js","../../../../common/temp/node_modules/.pnpm/cliui@8.0.1/node_modules/cliui/index.mjs","../../../../common/temp/node_modules/.pnpm/escalade@3.2.0/node_modules/escalade/sync/index.mjs","../../../../common/temp/node_modules/.pnpm/y18n@5.0.8/node_modules/y18n/build/lib/platform-shims/node.js","../../../../common/temp/node_modules/.pnpm/y18n@5.0.8/node_modules/y18n/build/lib/index.js","../../../../common/temp/node_modules/.pnpm/y18n@5.0.8/node_modules/y18n/index.mjs","../../../../common/temp/node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/lib/platform-shims/esm.mjs","../dist/esm/bin/execute-helpers.js","../dist/esm/sourceDir.js","../dist/esm/getTemplates.js","../dist/esm/generateProject.js","../dist/esm/bin/execute.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/**\n * Unique identifier under which is specified which port to use for injecting locally hosted custom widget to a running DevPortal instance.\n */\nexport const OVERRIDE_PORT_KEY = \"MS_APIM_CW_localhost_port\";\n/**\n * Default port for running local dev server on.\n */\nexport const OVERRIDE_DEFAULT_PORT = 3000;\n/** List of all supported technologies to scaffold a widget in. */\nexport const TECHNOLOGIES = [\"typescript\", \"react\", \"vue\"];\n/**\n * Converts user defined name of a custom widget to a unique ID, which is in context of Dev Portal known as \"name\".\n * Prefix \"cw-\" to avoid conflicts with existing widgets.\n *\n * @param displayName - User defined name of the custom widget.\n */\nexport const displayNameToName = (displayName) => encodeURIComponent((\"cw-\" + displayName)\n .normalize(\"NFD\")\n .toLowerCase()\n .replace(/[\\u0300-\\u036f]/g, \"\")\n .replace(/[^a-z0-9-]/g, \"-\"));\n/**\n * Returns name of the folder for widget project.\n *\n * @param name - name of the widget\n */\nexport const widgetFolderName = (name) => `azure-api-management-widget-${name}`;\n//# sourceMappingURL=scaffolding.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { TECHNOLOGIES } from \"../scaffolding.js\";\nexport const fieldIdToName = {\n displayName: \"Widget display name\",\n technology: \"Technology\",\n iconUrl: \"iconUrl\",\n resourceId: \"Azure API Management resource ID (following format: subscriptions//resourceGroups//providers/Microsoft.ApiManagement/service/)\",\n managementApiEndpoint: \"Management API hostname\",\n apiVersion: \"Management API version\",\n openUrl: \"Developer portal URL\",\n configAdvancedTenantId: \"Tenant ID\",\n configAdvancedRedirectUri: \"Redirect URI\",\n};\nexport const prefixUrlProtocol = (value) => /https?:\\/\\//.test(value) ? value : `https://${value}`;\nconst validateRequired = (name, msg = `The “${name}” parameter is required.`) => (input) => (input != null && input !== \"\") || msg;\nconst validateUrl = (name, msg = (input) => `Provided “${name}” parameter value (“${prefixUrlProtocol(input)}”) isn’t a valid URL. Use the correct URL format, e.g., https://contoso.com.`) => (input) => {\n try {\n new URL(prefixUrlProtocol(input));\n return true;\n }\n catch (e) {\n return msg(prefixUrlProtocol(input));\n }\n};\nexport const validateWidgetConfig = {\n displayName: validateRequired(fieldIdToName.displayName),\n technology: (input) => {\n const required = validateRequired(fieldIdToName.technology)(input);\n if (required !== true)\n return required;\n if (TECHNOLOGIES.includes(input)) {\n return true;\n }\n else {\n return (\"Provided “technology” parameter value isn’t correct. Use one of the following: \" +\n TECHNOLOGIES.join(\", \"));\n }\n },\n};\nexport const validateDeployConfig = {\n resourceId: (input) => {\n const required = validateRequired(fieldIdToName.resourceId)(input);\n if (required !== true)\n return required;\n const regex = /^\\/?subscriptions\\/[^/]+\\/resourceGroups\\/[^/]+\\/providers\\/Microsoft\\.ApiManagement\\/service\\/[^/]+\\/?$/;\n return input === \"test\" || regex.test(input)\n ? true\n : \"Resource ID needs to be a valid Azure resource ID. For example, subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-group/providers/Microsoft.ApiManagement/service/contoso-apis.\";\n },\n managementApiEndpoint: (input) => validateRequired(fieldIdToName.managementApiEndpoint)(input),\n};\nexport const validateMiscConfig = {\n openUrl: (input) => {\n if (!input)\n return true;\n return validateUrl(fieldIdToName.openUrl)(input);\n },\n configAdvancedTenantId: () => {\n return true;\n },\n configAdvancedRedirectUri: (input) => {\n if (!input)\n return true;\n return validateUrl(fieldIdToName.openUrl)(input);\n },\n};\nexport const promptWidgetConfig = async (partial) => {\n const inquirerImport = await import(\"inquirer\");\n const inquirer = inquirerImport.default;\n return inquirer.prompt([\n {\n name: \"displayName\",\n type: \"input\",\n message: fieldIdToName.displayName,\n validate: validateWidgetConfig.displayName,\n },\n {\n name: \"technology\",\n type: \"list\",\n message: fieldIdToName.technology,\n choices: [\n { name: \"React\", value: \"react\" },\n { name: \"Vue\", value: \"vue\" },\n { name: \"TypeScript\", value: \"typescript\" },\n ],\n },\n ], partial);\n};\nexport const promptServiceInformation = async (partial) => {\n const inquirerImport = await import(\"inquirer\");\n const inquirer = inquirerImport.default;\n return inquirer.prompt([\n {\n name: \"resourceId\",\n type: \"input\",\n message: fieldIdToName.resourceId,\n validate: validateDeployConfig.resourceId,\n },\n {\n name: \"managementApiEndpoint\",\n type: \"list\",\n message: fieldIdToName.managementApiEndpoint,\n choices: [\n {\n name: \"management.azure.com (if you're not sure what to select, use this option)\",\n value: \"management.azure.com\",\n },\n { name: \"management.usgovcloudapi.net\", value: \"management.usgovcloudapi.net\" },\n { name: \"management.chinacloudapi.cn\", value: \"management.chinacloudapi.cn\" },\n ],\n transformer: prefixUrlProtocol,\n validate: validateDeployConfig.managementApiEndpoint,\n },\n {\n name: \"apiVersion\",\n type: \"input\",\n message: fieldIdToName.apiVersion + \" (optional; e.g., 2021-08-01)\",\n },\n ], partial);\n};\nexport const promptMiscConfig = async (partial) => {\n const inquirerImport = await import(\"inquirer\");\n const inquirer = inquirerImport.default;\n return inquirer.prompt([\n {\n name: \"openUrl\",\n type: \"input\",\n message: fieldIdToName.openUrl +\n \" for widget development and testing (optional; e.g., https://contoso.developer.azure-api.net/ or http://localhost:8080)\",\n transformer: prefixUrlProtocol,\n validate: validateMiscConfig.openUrl,\n },\n {\n name: \"configAdvancedTenantId\",\n type: \"input\",\n message: fieldIdToName.configAdvancedTenantId +\n \" to be used in Azure Identity InteractiveBrowserCredential class (optional)\",\n validate: validateMiscConfig.openUrl,\n },\n {\n name: \"configAdvancedRedirectUri\",\n type: \"input\",\n message: fieldIdToName.configAdvancedRedirectUri +\n \" to be used in Azure Identity InteractiveBrowserCredential class (optional; default is http://localhost:1337)\",\n validate: validateMiscConfig.openUrl,\n },\n ], partial);\n};\n//# sourceMappingURL=execute-configs.js.map","export class YError extends Error {\n constructor(msg) {\n super(msg || 'yargs error');\n this.name = 'YError';\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, YError);\n }\n }\n}\n","function getProcessArgvBinIndex() {\n if (isBundledElectronApp())\n return 0;\n return 1;\n}\nfunction isBundledElectronApp() {\n return isElectronApp() && !process.defaultApp;\n}\nfunction isElectronApp() {\n return !!process.versions.electron;\n}\nexport function hideBin(argv) {\n return argv.slice(getProcessArgvBinIndex() + 1);\n}\nexport function getProcessArgvBin() {\n return process.argv[getProcessArgvBinIndex()];\n}\n","'use strict';\nconst align = {\n right: alignRight,\n center: alignCenter\n};\nconst top = 0;\nconst right = 1;\nconst bottom = 2;\nconst left = 3;\nexport class UI {\n constructor(opts) {\n var _a;\n this.width = opts.width;\n this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;\n this.rows = [];\n }\n span(...args) {\n const cols = this.div(...args);\n cols.span = true;\n }\n resetOutput() {\n this.rows = [];\n }\n div(...args) {\n if (args.length === 0) {\n this.div('');\n }\n if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') {\n return this.applyLayoutDSL(args[0]);\n }\n const cols = args.map(arg => {\n if (typeof arg === 'string') {\n return this.colFromString(arg);\n }\n return arg;\n });\n this.rows.push(cols);\n return cols;\n }\n shouldApplyLayoutDSL(...args) {\n return args.length === 1 && typeof args[0] === 'string' &&\n /[\\t\\n]/.test(args[0]);\n }\n applyLayoutDSL(str) {\n const rows = str.split('\\n').map(row => row.split('\\t'));\n let leftColumnWidth = 0;\n // simple heuristic for layout, make sure the\n // second column lines up along the left-hand.\n // don't allow the first column to take up more\n // than 50% of the screen.\n rows.forEach(columns => {\n if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {\n leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));\n }\n });\n // generate a table:\n // replacing ' ' with padding calculations.\n // using the algorithmically generated width.\n rows.forEach(columns => {\n this.div(...columns.map((r, i) => {\n return {\n text: r.trim(),\n padding: this.measurePadding(r),\n width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined\n };\n }));\n });\n return this.rows[this.rows.length - 1];\n }\n colFromString(text) {\n return {\n text,\n padding: this.measurePadding(text)\n };\n }\n measurePadding(str) {\n // measure padding without ansi escape codes\n const noAnsi = mixin.stripAnsi(str);\n return [0, noAnsi.match(/\\s*$/)[0].length, 0, noAnsi.match(/^\\s*/)[0].length];\n }\n toString() {\n const lines = [];\n this.rows.forEach(row => {\n this.rowToString(row, lines);\n });\n // don't display any lines with the\n // hidden flag set.\n return lines\n .filter(line => !line.hidden)\n .map(line => line.text)\n .join('\\n');\n }\n rowToString(row, lines) {\n this.rasterize(row).forEach((rrow, r) => {\n let str = '';\n rrow.forEach((col, c) => {\n const { width } = row[c]; // the width with padding.\n const wrapWidth = this.negatePadding(row[c]); // the width without padding.\n let ts = col; // temporary string used during alignment/padding.\n if (wrapWidth > mixin.stringWidth(col)) {\n ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));\n }\n // align the string within its column.\n if (row[c].align && row[c].align !== 'left' && this.wrap) {\n const fn = align[row[c].align];\n ts = fn(ts, wrapWidth);\n if (mixin.stringWidth(ts) < wrapWidth) {\n ts += ' '.repeat((width || 0) - mixin.stringWidth(ts) - 1);\n }\n }\n // apply border and padding to string.\n const padding = row[c].padding || [0, 0, 0, 0];\n if (padding[left]) {\n str += ' '.repeat(padding[left]);\n }\n str += addBorder(row[c], ts, '| ');\n str += ts;\n str += addBorder(row[c], ts, ' |');\n if (padding[right]) {\n str += ' '.repeat(padding[right]);\n }\n // if prior row is span, try to render the\n // current row on the prior line.\n if (r === 0 && lines.length > 0) {\n str = this.renderInline(str, lines[lines.length - 1]);\n }\n });\n // remove trailing whitespace.\n lines.push({\n text: str.replace(/ +$/, ''),\n span: row.span\n });\n });\n return lines;\n }\n // if the full 'source' can render in\n // the target line, do so.\n renderInline(source, previousLine) {\n const match = source.match(/^ */);\n const leadingWhitespace = match ? match[0].length : 0;\n const target = previousLine.text;\n const targetTextWidth = mixin.stringWidth(target.trimRight());\n if (!previousLine.span) {\n return source;\n }\n // if we're not applying wrapping logic,\n // just always append to the span.\n if (!this.wrap) {\n previousLine.hidden = true;\n return target + source;\n }\n if (leadingWhitespace < targetTextWidth) {\n return source;\n }\n previousLine.hidden = true;\n return target.trimRight() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimLeft();\n }\n rasterize(row) {\n const rrows = [];\n const widths = this.columnWidths(row);\n let wrapped;\n // word wrap all columns, and create\n // a data-structure that is easy to rasterize.\n row.forEach((col, c) => {\n // leave room for left and right padding.\n col.width = widths[c];\n if (this.wrap) {\n wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\\n');\n }\n else {\n wrapped = col.text.split('\\n');\n }\n if (col.border) {\n wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.');\n wrapped.push(\"'\" + '-'.repeat(this.negatePadding(col) + 2) + \"'\");\n }\n // add top and bottom padding.\n if (col.padding) {\n wrapped.unshift(...new Array(col.padding[top] || 0).fill(''));\n wrapped.push(...new Array(col.padding[bottom] || 0).fill(''));\n }\n wrapped.forEach((str, r) => {\n if (!rrows[r]) {\n rrows.push([]);\n }\n const rrow = rrows[r];\n for (let i = 0; i < c; i++) {\n if (rrow[i] === undefined) {\n rrow.push('');\n }\n }\n rrow.push(str);\n });\n });\n return rrows;\n }\n negatePadding(col) {\n let wrapWidth = col.width || 0;\n if (col.padding) {\n wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);\n }\n if (col.border) {\n wrapWidth -= 4;\n }\n return wrapWidth;\n }\n columnWidths(row) {\n if (!this.wrap) {\n return row.map(col => {\n return col.width || mixin.stringWidth(col.text);\n });\n }\n let unset = row.length;\n let remainingWidth = this.width;\n // column widths can be set in config.\n const widths = row.map(col => {\n if (col.width) {\n unset--;\n remainingWidth -= col.width;\n return col.width;\n }\n return undefined;\n });\n // any unset widths should be calculated.\n const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;\n return widths.map((w, i) => {\n if (w === undefined) {\n return Math.max(unsetWidth, _minWidth(row[i]));\n }\n return w;\n });\n }\n}\nfunction addBorder(col, ts, style) {\n if (col.border) {\n if (/[.']-+[.']/.test(ts)) {\n return '';\n }\n if (ts.trim().length !== 0) {\n return style;\n }\n return ' ';\n }\n return '';\n}\n// calculates the minimum width of\n// a column, based on padding preferences.\nfunction _minWidth(col) {\n const padding = col.padding || [];\n const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);\n if (col.border) {\n return minWidth + 4;\n }\n return minWidth;\n}\nfunction getWindowWidth() {\n /* istanbul ignore next: depends on terminal */\n if (typeof process === 'object' && process.stdout && process.stdout.columns) {\n return process.stdout.columns;\n }\n return 80;\n}\nfunction alignRight(str, width) {\n str = str.trim();\n const strWidth = mixin.stringWidth(str);\n if (strWidth < width) {\n return ' '.repeat(width - strWidth) + str;\n }\n return str;\n}\nfunction alignCenter(str, width) {\n str = str.trim();\n const strWidth = mixin.stringWidth(str);\n /* istanbul ignore next */\n if (strWidth >= width) {\n return str;\n }\n return ' '.repeat((width - strWidth) >> 1) + str;\n}\nlet mixin;\nexport function cliui(opts, _mixin) {\n mixin = _mixin;\n return new UI({\n width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(),\n wrap: opts === null || opts === void 0 ? void 0 : opts.wrap\n });\n}\n","// Minimal replacement for ansi string helpers \"wrap-ansi\" and \"strip-ansi\".\n// to facilitate ESM and Deno modules.\n// TODO: look at porting https://www.npmjs.com/package/wrap-ansi to ESM.\n// The npm application\n// Copyright (c) npm, Inc. and Contributors\n// Licensed on the terms of The Artistic License 2.0\n// See: https://github.com/npm/cli/blob/4c65cd952bc8627811735bea76b9b110cc4fc80e/lib/utils/ansi-trim.js\nconst ansi = new RegExp('\\x1b(?:\\\\[(?:\\\\d+[ABCDEFGJKSTm]|\\\\d+;\\\\d+[Hfm]|' +\n '\\\\d+;\\\\d+;\\\\d+m|6n|s|u|\\\\?25[lh])|\\\\w)', 'g');\nexport function stripAnsi(str) {\n return str.replace(ansi, '');\n}\nexport function wrap(str, width) {\n const [start, end] = str.match(ansi) || ['', ''];\n str = stripAnsi(str);\n let wrapped = '';\n for (let i = 0; i < str.length; i++) {\n if (i !== 0 && (i % width) === 0) {\n wrapped += '\\n';\n }\n wrapped += str.charAt(i);\n }\n if (start && end) {\n wrapped = `${start}${wrapped}${end}`;\n }\n return wrapped;\n}\n","// Bootstrap cliui with CommonJS dependencies:\nimport { cliui } from './build/lib/index.js'\nimport { wrap, stripAnsi } from './build/lib/string-utils.js'\n\nexport default function ui (opts) {\n return cliui(opts, {\n stringWidth: (str) => {\n return [...str].length\n },\n stripAnsi,\n wrap\n })\n}\n","import { dirname, resolve } from 'path';\nimport { readdirSync, statSync } from 'fs';\n\nexport default function (start, callback) {\n\tlet dir = resolve('.', start);\n\tlet tmp, stats = statSync(dir);\n\n\tif (!stats.isDirectory()) {\n\t\tdir = dirname(dir);\n\t}\n\n\twhile (true) {\n\t\ttmp = callback(dir, readdirSync(dir));\n\t\tif (tmp) return resolve(dir, tmp);\n\t\tdir = dirname(tmp = dir);\n\t\tif (tmp === dir) break;\n\t}\n}\n","import { readFileSync, statSync, writeFile } from 'fs';\nimport { format } from 'util';\nimport { resolve } from 'path';\nexport default {\n fs: {\n readFileSync,\n writeFile\n },\n format,\n resolve,\n exists: (file) => {\n try {\n return statSync(file).isFile();\n }\n catch (err) {\n return false;\n }\n }\n};\n","let shim;\nclass Y18N {\n constructor(opts) {\n // configurable options.\n opts = opts || {};\n this.directory = opts.directory || './locales';\n this.updateFiles = typeof opts.updateFiles === 'boolean' ? opts.updateFiles : true;\n this.locale = opts.locale || 'en';\n this.fallbackToLanguage = typeof opts.fallbackToLanguage === 'boolean' ? opts.fallbackToLanguage : true;\n // internal stuff.\n this.cache = Object.create(null);\n this.writeQueue = [];\n }\n __(...args) {\n if (typeof arguments[0] !== 'string') {\n return this._taggedLiteral(arguments[0], ...arguments);\n }\n const str = args.shift();\n let cb = function () { }; // start with noop.\n if (typeof args[args.length - 1] === 'function')\n cb = args.pop();\n cb = cb || function () { }; // noop.\n if (!this.cache[this.locale])\n this._readLocaleFile();\n // we've observed a new string, update the language file.\n if (!this.cache[this.locale][str] && this.updateFiles) {\n this.cache[this.locale][str] = str;\n // include the current directory and locale,\n // since these values could change before the\n // write is performed.\n this._enqueueWrite({\n directory: this.directory,\n locale: this.locale,\n cb\n });\n }\n else {\n cb();\n }\n return shim.format.apply(shim.format, [this.cache[this.locale][str] || str].concat(args));\n }\n __n() {\n const args = Array.prototype.slice.call(arguments);\n const singular = args.shift();\n const plural = args.shift();\n const quantity = args.shift();\n let cb = function () { }; // start with noop.\n if (typeof args[args.length - 1] === 'function')\n cb = args.pop();\n if (!this.cache[this.locale])\n this._readLocaleFile();\n let str = quantity === 1 ? singular : plural;\n if (this.cache[this.locale][singular]) {\n const entry = this.cache[this.locale][singular];\n str = entry[quantity === 1 ? 'one' : 'other'];\n }\n // we've observed a new string, update the language file.\n if (!this.cache[this.locale][singular] && this.updateFiles) {\n this.cache[this.locale][singular] = {\n one: singular,\n other: plural\n };\n // include the current directory and locale,\n // since these values could change before the\n // write is performed.\n this._enqueueWrite({\n directory: this.directory,\n locale: this.locale,\n cb\n });\n }\n else {\n cb();\n }\n // if a %d placeholder is provided, add quantity\n // to the arguments expanded by util.format.\n const values = [str];\n if (~str.indexOf('%d'))\n values.push(quantity);\n return shim.format.apply(shim.format, values.concat(args));\n }\n setLocale(locale) {\n this.locale = locale;\n }\n getLocale() {\n return this.locale;\n }\n updateLocale(obj) {\n if (!this.cache[this.locale])\n this._readLocaleFile();\n for (const key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n this.cache[this.locale][key] = obj[key];\n }\n }\n }\n _taggedLiteral(parts, ...args) {\n let str = '';\n parts.forEach(function (part, i) {\n const arg = args[i + 1];\n str += part;\n if (typeof arg !== 'undefined') {\n str += '%s';\n }\n });\n return this.__.apply(this, [str].concat([].slice.call(args, 1)));\n }\n _enqueueWrite(work) {\n this.writeQueue.push(work);\n if (this.writeQueue.length === 1)\n this._processWriteQueue();\n }\n _processWriteQueue() {\n const _this = this;\n const work = this.writeQueue[0];\n // destructure the enqueued work.\n const directory = work.directory;\n const locale = work.locale;\n const cb = work.cb;\n const languageFile = this._resolveLocaleFile(directory, locale);\n const serializedLocale = JSON.stringify(this.cache[locale], null, 2);\n shim.fs.writeFile(languageFile, serializedLocale, 'utf-8', function (err) {\n _this.writeQueue.shift();\n if (_this.writeQueue.length > 0)\n _this._processWriteQueue();\n cb(err);\n });\n }\n _readLocaleFile() {\n let localeLookup = {};\n const languageFile = this._resolveLocaleFile(this.directory, this.locale);\n try {\n // When using a bundler such as webpack, readFileSync may not be defined:\n if (shim.fs.readFileSync) {\n localeLookup = JSON.parse(shim.fs.readFileSync(languageFile, 'utf-8'));\n }\n }\n catch (err) {\n if (err instanceof SyntaxError) {\n err.message = 'syntax error in ' + languageFile;\n }\n if (err.code === 'ENOENT')\n localeLookup = {};\n else\n throw err;\n }\n this.cache[this.locale] = localeLookup;\n }\n _resolveLocaleFile(directory, locale) {\n let file = shim.resolve(directory, './', locale + '.json');\n if (this.fallbackToLanguage && !this._fileExistsSync(file) && ~locale.lastIndexOf('_')) {\n // attempt fallback to language only\n const languageFile = shim.resolve(directory, './', locale.split('_')[0] + '.json');\n if (this._fileExistsSync(languageFile))\n file = languageFile;\n }\n return file;\n }\n _fileExistsSync(file) {\n return shim.exists(file);\n }\n}\nexport function y18n(opts, _shim) {\n shim = _shim;\n const y18n = new Y18N(opts);\n return {\n __: y18n.__.bind(y18n),\n __n: y18n.__n.bind(y18n),\n setLocale: y18n.setLocale.bind(y18n),\n getLocale: y18n.getLocale.bind(y18n),\n updateLocale: y18n.updateLocale.bind(y18n),\n locale: y18n.locale\n };\n}\n","import shim from './build/lib/platform-shims/node.js'\nimport { y18n as _y18n } from './build/lib/index.js'\n\nconst y18n = (opts) => {\n return _y18n(opts, shim)\n}\n\nexport default y18n\n","'use strict'\n\nimport { notStrictEqual, strictEqual } from 'assert'\nimport cliui from 'cliui'\nimport escalade from 'escalade/sync'\nimport { inspect } from 'util'\nimport { readFileSync } from 'fs'\nimport { fileURLToPath } from 'url';\nimport Parser from 'yargs-parser'\nimport { basename, dirname, extname, relative, resolve } from 'path'\nimport { getProcessArgvBin } from '../../build/lib/utils/process-argv.js'\nimport { YError } from '../../build/lib/yerror.js'\nimport y18n from 'y18n'\n\nconst REQUIRE_ERROR = 'require is not supported by ESM'\nconst REQUIRE_DIRECTORY_ERROR = 'loading a directory of commands is not supported yet for ESM'\n\nlet __dirname;\ntry {\n __dirname = fileURLToPath(import.meta.url);\n} catch (e) {\n __dirname = process.cwd();\n}\nconst mainFilename = __dirname.substring(0, __dirname.lastIndexOf('node_modules'));\n\nexport default {\n assert: {\n notStrictEqual,\n strictEqual\n },\n cliui,\n findUp: escalade,\n getEnv: (key) => {\n return process.env[key]\n },\n inspect,\n getCallerFile: () => {\n throw new YError(REQUIRE_DIRECTORY_ERROR)\n },\n getProcessArgvBin,\n mainFilename: mainFilename || process.cwd(),\n Parser,\n path: {\n basename,\n dirname,\n extname,\n relative,\n resolve\n },\n process: {\n argv: () => process.argv,\n cwd: process.cwd,\n emitWarning: (warning, type) => process.emitWarning(warning, type),\n execPath: () => process.execPath,\n exit: process.exit,\n nextTick: process.nextTick,\n stdColumns: typeof process.stdout.columns !== 'undefined' ? process.stdout.columns : null\n },\n readFileSync,\n require: () => {\n throw new YError(REQUIRE_ERROR)\n },\n requireDirectory: () => {\n throw new YError(REQUIRE_DIRECTORY_ERROR)\n },\n stringWidth: (str) => {\n return [...str].length\n },\n y18n: y18n({\n directory: resolve(__dirname, '../../../locales'),\n updateFiles: false\n })\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { fieldIdToName, } from \"./execute-configs.js\";\nimport { hideBin } from \"yargs/helpers\";\nimport yargsParser from \"yargs-parser\";\nexport const extractConfigFromArgs = (argv, validateConfig, red) => {\n const configPartial = {};\n let missing = false;\n Object.entries(validateConfig).forEach(([key, v]) => {\n const validate = v;\n const value = argv[key];\n const response = validate(value);\n if (response === true) {\n if (value !== null && value !== undefined) {\n configPartial[key] = value;\n }\n }\n else if (value === null || value === undefined) {\n missing = true;\n }\n else {\n missing = true;\n red(`\"${value}\" is not a valid value for \"${key}\"`);\n if (typeof response === \"string\")\n red(response);\n }\n });\n return { configPartial, missing };\n};\nexport const buildGetConfig = (gray, red) => {\n const argv = yargsParser(hideBin(process.argv));\n return async (promptForConfig, validateConfig) => {\n const { configPartial, missing } = extractConfigFromArgs(argv, validateConfig, red);\n if (missing || !Object.values(configPartial).length) {\n return promptForConfig(configPartial);\n }\n else {\n gray(\"Retrieved from the command parameters\");\n Object.entries(configPartial).forEach(([key, value]) => { var _a; return value != null && gray(`${(_a = fieldIdToName[key]) !== null && _a !== void 0 ? _a : key}: ${value}`); });\n return configPartial;\n }\n };\n};\n//# sourceMappingURL=execute-helpers.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nexport const sourceDir = dirname(fileURLToPath(import.meta.url));\n//# sourceMappingURL=sourceDir.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { glob } from \"glob\";\nimport { join as pathJoin } from \"node:path\";\nimport { sourceDir } from \"./sourceDir.js\";\nexport async function getTemplates(template) {\n const sharedFiles = await getFiles(pathJoin(sourceDir, \"..\", \"templates\", \"_shared\", \"**\", \"**\", \"*.*\"));\n const templateFiles = await getFiles(pathJoin(sourceDir, \"..\", \"templates\", template, \"**\", \"**\", \"*.*\"));\n return [...sharedFiles, ...templateFiles];\n}\nasync function getFiles(path) {\n // Starting from glob v8 `\\` is only used as an escape character, and never as a path separator in glob patterns.\n // Glob pattern paths must use forward-slashes as path separators.\n // See https://github.com/isaacs/node-glob/blob/af57da21c7722bb6edb687ccd4ad3b99d3e7a333/changelog.md#80\n const normalizedPath = path.replace(/\\\\/g, \"/\");\n return glob(normalizedPath, { dot: true });\n}\n//# sourceMappingURL=getTemplates.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { OVERRIDE_DEFAULT_PORT, OVERRIDE_PORT_KEY, displayNameToName, widgetFolderName, } from \"./scaffolding.js\";\nimport { sourceDir } from \"./sourceDir.js\";\nimport { join as joinPath, parse as parsePath } from \"node:path\";\nimport * as fs from \"node:fs/promises\";\nimport { getTemplates } from \"./getTemplates.js\";\nimport mustache from \"mustache\";\nconst templateSuffix = \".mustache\";\n/**\n * Generates a scaffold project of Custom widget for API Managements' Dev Portal.\n *\n * @param widgetConfig - JSON object with data required by DevPortal to handle a widget integration.\n * @param deploymentConfig - JSON object with data for deployment.\n * @param options - JSON object with other data, which will not be stored in the DevPortal.\n */\nexport async function generateProject(widgetConfig, deploymentConfig, options = {}) {\n const { openUrl, configAdvancedTenantId, configAdvancedRedirectUri } = options;\n const openUrlParsed = openUrl ? new URL(openUrl) : null;\n if (openUrlParsed) {\n openUrlParsed.searchParams.append(OVERRIDE_PORT_KEY, String(OVERRIDE_DEFAULT_PORT));\n }\n const name = displayNameToName(widgetConfig.displayName);\n const serverSettings = {\n port: OVERRIDE_DEFAULT_PORT,\n open: openUrlParsed ? openUrlParsed.toString() : true,\n };\n const configAdditional = {\n interactiveBrowserCredentialOptions: { redirectUri: \"http://localhost:1337\" },\n };\n if (configAdvancedTenantId) {\n configAdditional.interactiveBrowserCredentialOptions.tenantId = configAdvancedTenantId;\n }\n if (configAdvancedRedirectUri) {\n configAdditional.interactiveBrowserCredentialOptions.redirectUri = configAdvancedRedirectUri;\n }\n const renderTemplate = async (file) => {\n const isTemplate = file.endsWith(templateSuffix);\n const encoding = file.endsWith(\".ttf\") ? \"binary\" : \"utf8\";\n let fileData = await fs.readFile(file, { encoding });\n if (isTemplate) {\n fileData = mustache.render(fileData, {\n name,\n displayName: widgetConfig.displayName,\n config: JSON.stringify(Object.assign(Object.assign({}, widgetConfig), { name }), null, \"\\t\"),\n configDeploy: JSON.stringify(deploymentConfig, null, \"\\t\"),\n configAdditional: JSON.stringify(configAdditional, null, \"\\t\"),\n serverSettings: JSON.stringify(serverSettings, null, \"\\t\"),\n });\n }\n let relativePath = file;\n if (sourceDir.includes(\"\\\\\")) {\n relativePath = relativePath.replace(/\\//g, \"\\\\\");\n }\n relativePath = relativePath\n .replace(joinPath(sourceDir, \"..\", \"templates\", \"_shared\"), \"\")\n .replace(joinPath(sourceDir, \"..\", \"templates\", widgetConfig.technology), \"\")\n .replace(templateSuffix, \"\");\n const newFilePath = joinPath(process.cwd(), widgetFolderName(name), relativePath);\n const dir = parsePath(newFilePath).dir;\n await fs.mkdir(dir, { recursive: true });\n await fs.writeFile(newFilePath, fileData, { encoding });\n };\n const templates = await getTemplates(widgetConfig.technology);\n for (const file of Object.values(templates)) {\n await renderTemplate(file);\n }\n return;\n}\n//# sourceMappingURL=generateProject.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { buildGetConfig } from \"./execute-helpers.js\";\nimport { prefixUrlProtocol, promptServiceInformation, promptMiscConfig, promptWidgetConfig, validateDeployConfig, validateMiscConfig, validateWidgetConfig, } from \"./execute-configs.js\";\nimport chalk from \"chalk\";\nimport { generateProject } from \"../generateProject.js\";\nconst log = console.log;\nconst white = (msg) => log(chalk.white(msg));\nconst green = (msg) => log(chalk.green(msg));\nconst red = (msg) => log(chalk.red(msg));\nconst gray = (msg) => log(chalk.gray(msg));\nasync function main() {\n green(\"\\nThis tool generates code scaffold for custom widgets in the Azure API Management’s developer portal. Learn more at https://aka.ms/apimdocs/portal/customwidgets.\\n\");\n const getConfig = buildGetConfig(gray, red);\n white(\"Specify the custom widget configuration.\");\n const widgetConfig = await getConfig(promptWidgetConfig, validateWidgetConfig);\n white(\"Specify the Azure API Management service configuration.\");\n const serviceInformation = await getConfig(promptServiceInformation, validateDeployConfig);\n white(\"Specify other options\");\n const miscConfig = await getConfig(promptMiscConfig, validateMiscConfig);\n if (serviceInformation.resourceId[0] === \"/\") {\n serviceInformation.resourceId = serviceInformation.resourceId.slice(1);\n }\n if (serviceInformation.resourceId.slice(-1) === \"/\") {\n serviceInformation.resourceId = serviceInformation.resourceId.slice(0, -1);\n }\n if (serviceInformation.apiVersion === \"\") {\n delete serviceInformation.apiVersion;\n }\n serviceInformation.managementApiEndpoint = prefixUrlProtocol(serviceInformation.managementApiEndpoint);\n miscConfig.openUrl = miscConfig.openUrl\n ? prefixUrlProtocol(miscConfig.openUrl)\n : miscConfig.openUrl;\n return generateProject(widgetConfig, serviceInformation, miscConfig)\n .then(() => green(\"\\nThe custom widget’s code scaffold has been successfully generated.\\n\"))\n .catch(console.error);\n}\nmain()\n .then(() => process.exit(0))\n .catch((err) => {\n console.error(err);\n process.exit(1);\n});\n//# sourceMappingURL=execute.js.map"],"names":["resolve","statSync","dirname","readdirSync","readFileSync","writeFile","format","y18n","_y18n","shim","__dirname","fileURLToPath","notStrictEqual","strictEqual","cliui","inspect","basename","extname","relative","yargsParser","pathJoin","glob","fs","joinPath","parsePath"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,iBAAiB,GAAG,2BAA2B;AAC5D;AACA;AACA;AACO,MAAM,qBAAqB,GAAG,IAAI;AACzC;AACO,MAAM,YAAY,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE,KAAK,CAAC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,iBAAiB,GAAG,CAAC,WAAW,KAAK,kBAAkB,CAAC,CAAC,KAAK,GAAG,WAAW;AACzF,KAAK,SAAS,CAAC,KAAK;AACpB,KAAK,WAAW;AAChB,KAAK,OAAO,CAAC,kBAAkB,EAAE,EAAE;AACnC,KAAK,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;AACjC;AACA;AACA;AACA;AACA;AACO,MAAM,gBAAgB,GAAG,CAAC,IAAI,KAAK,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAC;;AC5B/E;AACA;AAEO,MAAM,aAAa,GAAG;AAC7B,IAAI,WAAW,EAAE,qBAAqB;AACtC,IAAI,UAAU,EAAE,YAAY;AAC5B,IAAI,OAAO,EAAE,SAAS;AACtB,IAAI,UAAU,EAAE,mMAAmM;AACnN,IAAI,qBAAqB,EAAE,yBAAyB;AACpD,IAAI,UAAU,EAAE,wBAAwB;AACxC,IAAI,OAAO,EAAE,sBAAsB;AACnC,IAAI,sBAAsB,EAAE,WAAW;AACvC,IAAI,yBAAyB,EAAE,cAAc;AAC7C,CAAC;AACM,MAAM,iBAAiB,GAAG,CAAC,KAAK,KAAK,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AAClG,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,EAAE,KAAK,GAAG;AAClI,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,KAAK,CAAC,UAAU,EAAE,IAAI,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC,4EAA4E,CAAC,KAAK,CAAC,KAAK,KAAK;AAC1M,IAAI,IAAI;AACR,QAAQ,IAAI,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;AACzC,QAAQ,OAAO,IAAI;AACnB;AACA,IAAI,OAAO,CAAC,EAAE;AACd,QAAQ,OAAO,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAC5C;AACA,CAAC;AACM,MAAM,oBAAoB,GAAG;AACpC,IAAI,WAAW,EAAE,gBAAgB,CAAC,aAAa,CAAC,WAAW,CAAC;AAC5D,IAAI,UAAU,EAAE,CAAC,KAAK,KAAK;AAC3B,QAAQ,MAAM,QAAQ,GAAG,gBAAgB,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC;AAC1E,QAAQ,IAAI,QAAQ,KAAK,IAAI;AAC7B,YAAY,OAAO,QAAQ;AAC3B,QAAQ,IAAI,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AAC1C,YAAY,OAAO,IAAI;AACvB;AACA,aAAa;AACb,YAAY,QAAQ,iFAAiF;AACrG,gBAAgB,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;AACvC;AACA,KAAK;AACL,CAAC;AACM,MAAM,oBAAoB,GAAG;AACpC,IAAI,UAAU,EAAE,CAAC,KAAK,KAAK;AAC3B,QAAQ,MAAM,QAAQ,GAAG,gBAAgB,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC;AAC1E,QAAQ,IAAI,QAAQ,KAAK,IAAI;AAC7B,YAAY,OAAO,QAAQ;AAC3B,QAAQ,MAAM,KAAK,GAAG,0GAA0G;AAChI,QAAQ,OAAO,KAAK,KAAK,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK;AACnD,cAAc;AACd,cAAc,yMAAyM;AACvN,KAAK;AACL,IAAI,qBAAqB,EAAE,CAAC,KAAK,KAAK,gBAAgB,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC,KAAK,CAAC;AAClG,CAAC;AACM,MAAM,kBAAkB,GAAG;AAClC,IAAI,OAAO,EAAE,CAAC,KAAK,KAAK;AACxB,QAAQ,IAAI,CAAC,KAAK;AAClB,YAAY,OAAO,IAAI;AACvB,QAAQ,OAAO,WAAW,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC;AACxD,KAAK;AACL,IAAI,sBAAsB,EAAE,MAAM;AAClC,QAAQ,OAAO,IAAI;AACnB,KAAK;AACL,IAAI,yBAAyB,EAAE,CAAC,KAAK,KAAK;AAC1C,QAAQ,IAAI,CAAC,KAAK;AAClB,YAAY,OAAO,IAAI;AACvB,QAAQ,OAAO,WAAW,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC;AACxD,KAAK;AACL,CAAC;AACM,MAAM,kBAAkB,GAAG,OAAO,OAAO,KAAK;AACrD,IAAI,MAAM,cAAc,GAAG,MAAM,OAAO,UAAU,CAAC;AACnD,IAAI,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO;AAC3C,IAAI,OAAO,QAAQ,CAAC,MAAM,CAAC;AAC3B,QAAQ;AACR,YAAY,IAAI,EAAE,aAAa;AAC/B,YAAY,IAAI,EAAE,OAAO;AACzB,YAAY,OAAO,EAAE,aAAa,CAAC,WAAW;AAC9C,YAAY,QAAQ,EAAE,oBAAoB,CAAC,WAAW;AACtD,SAAS;AACT,QAAQ;AACR,YAAY,IAAI,EAAE,YAAY;AAC9B,YAAY,IAAI,EAAE,MAAM;AACxB,YAAY,OAAO,EAAE,aAAa,CAAC,UAAU;AAC7C,YAAY,OAAO,EAAE;AACrB,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;AACjD,gBAAgB,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;AAC7C,gBAAgB,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;AAC3D,aAAa;AACb,SAAS;AACT,KAAK,EAAE,OAAO,CAAC;AACf,CAAC;AACM,MAAM,wBAAwB,GAAG,OAAO,OAAO,KAAK;AAC3D,IAAI,MAAM,cAAc,GAAG,MAAM,OAAO,UAAU,CAAC;AACnD,IAAI,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO;AAC3C,IAAI,OAAO,QAAQ,CAAC,MAAM,CAAC;AAC3B,QAAQ;AACR,YAAY,IAAI,EAAE,YAAY;AAC9B,YAAY,IAAI,EAAE,OAAO;AACzB,YAAY,OAAO,EAAE,aAAa,CAAC,UAAU;AAC7C,YAAY,QAAQ,EAAE,oBAAoB,CAAC,UAAU;AACrD,SAAS;AACT,QAAQ;AACR,YAAY,IAAI,EAAE,uBAAuB;AACzC,YAAY,IAAI,EAAE,MAAM;AACxB,YAAY,OAAO,EAAE,aAAa,CAAC,qBAAqB;AACxD,YAAY,OAAO,EAAE;AACrB,gBAAgB;AAChB,oBAAoB,IAAI,EAAE,2EAA2E;AACrG,oBAAoB,KAAK,EAAE,sBAAsB;AACjD,iBAAiB;AACjB,gBAAgB,EAAE,IAAI,EAAE,8BAA8B,EAAE,KAAK,EAAE,8BAA8B,EAAE;AAC/F,gBAAgB,EAAE,IAAI,EAAE,6BAA6B,EAAE,KAAK,EAAE,6BAA6B,EAAE;AAC7F,aAAa;AACb,YAAY,WAAW,EAAE,iBAAiB;AAC1C,YAAY,QAAQ,EAAE,oBAAoB,CAAC,qBAAqB;AAChE,SAAS;AACT,QAAQ;AACR,YAAY,IAAI,EAAE,YAAY;AAC9B,YAAY,IAAI,EAAE,OAAO;AACzB,YAAY,OAAO,EAAE,aAAa,CAAC,UAAU,GAAG,+BAA+B;AAC/E,SAAS;AACT,KAAK,EAAE,OAAO,CAAC;AACf,CAAC;AACM,MAAM,gBAAgB,GAAG,OAAO,OAAO,KAAK;AACnD,IAAI,MAAM,cAAc,GAAG,MAAM,OAAO,UAAU,CAAC;AACnD,IAAI,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO;AAC3C,IAAI,OAAO,QAAQ,CAAC,MAAM,CAAC;AAC3B,QAAQ;AACR,YAAY,IAAI,EAAE,SAAS;AAC3B,YAAY,IAAI,EAAE,OAAO;AACzB,YAAY,OAAO,EAAE,aAAa,CAAC,OAAO;AAC1C,gBAAgB,yHAAyH;AACzI,YAAY,WAAW,EAAE,iBAAiB;AAC1C,YAAY,QAAQ,EAAE,kBAAkB,CAAC,OAAO;AAChD,SAAS;AACT,QAAQ;AACR,YAAY,IAAI,EAAE,wBAAwB;AAC1C,YAAY,IAAI,EAAE,OAAO;AACzB,YAAY,OAAO,EAAE,aAAa,CAAC,sBAAsB;AACzD,gBAAgB,6EAA6E;AAC7F,YAAY,QAAQ,EAAE,kBAAkB,CAAC,OAAO;AAChD,SAAS;AACT,QAAQ;AACR,YAAY,IAAI,EAAE,2BAA2B;AAC7C,YAAY,IAAI,EAAE,OAAO;AACzB,YAAY,OAAO,EAAE,aAAa,CAAC,yBAAyB;AAC5D,gBAAgB,+GAA+G;AAC/H,YAAY,QAAQ,EAAE,kBAAkB,CAAC,OAAO;AAChD,SAAS;AACT,KAAK,EAAE,OAAO,CAAC;AACf,CAAC;;ACpJM,MAAM,MAAM,SAAS,KAAK,CAAC;AAClC,IAAI,WAAW,CAAC,GAAG,EAAE;AACrB,QAAQ,KAAK,CAAC,GAAG,IAAI,aAAa,CAAC;AACnC,QAAQ,IAAI,CAAC,IAAI,GAAG,QAAQ;AAC5B,QAAQ,IAAI,KAAK,CAAC,iBAAiB,EAAE;AACrC,YAAY,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC;AACjD;AACA;AACA;;ACRA,SAAS,sBAAsB,GAAG;AAClC,IAAI,IAAI,oBAAoB,EAAE;AAC9B,QAAQ,OAAO,CAAC;AAChB,IAAI,OAAO,CAAC;AACZ;AACA,SAAS,oBAAoB,GAAG;AAChC,IAAI,OAAO,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU;AACjD;AACA,SAAS,aAAa,GAAG;AACzB,IAAI,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ;AACtC;AACO,SAAS,OAAO,CAAC,IAAI,EAAE;AAC9B,IAAI,OAAO,IAAI,CAAC,KAAK,CAAC,sBAAsB,EAAE,GAAG,CAAC,CAAC;AACnD;AACO,SAAS,iBAAiB,GAAG;AACpC,IAAI,OAAO,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,CAAC;AACjD;;ACfA,MAAM,KAAK,GAAG;AACd,IAAI,KAAK,EAAE,UAAU;AACrB,IAAI,MAAM,EAAE;AACZ,CAAC;AACD,MAAM,GAAG,GAAG,CAAC;AACb,MAAM,KAAK,GAAG,CAAC;AACf,MAAM,MAAM,GAAG,CAAC;AAChB,MAAM,IAAI,GAAG,CAAC;AACP,MAAM,EAAE,CAAC;AAChB,IAAI,WAAW,CAAC,IAAI,EAAE;AACtB,QAAQ,IAAI,EAAE;AACd,QAAQ,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK;AAC/B,QAAQ,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,EAAE,GAAG,IAAI;AAC1E,QAAQ,IAAI,CAAC,IAAI,GAAG,EAAE;AACtB;AACA,IAAI,IAAI,CAAC,GAAG,IAAI,EAAE;AAClB,QAAQ,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;AACtC,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI;AACxB;AACA,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,IAAI,GAAG,EAAE;AACtB;AACA,IAAI,GAAG,CAAC,GAAG,IAAI,EAAE;AACjB,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;AAC/B,YAAY,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AACxB;AACA,QAAQ,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE;AAC5F,YAAY,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC/C;AACA,QAAQ,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI;AACrC,YAAY,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;AACzC,gBAAgB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC;AAC9C;AACA,YAAY,OAAO,GAAG;AACtB,SAAS,CAAC;AACV,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AAC5B,QAAQ,OAAO,IAAI;AACnB;AACA,IAAI,oBAAoB,CAAC,GAAG,IAAI,EAAE;AAClC,QAAQ,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;AAC/D,YAAY,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClC;AACA,IAAI,cAAc,CAAC,GAAG,EAAE;AACxB,QAAQ,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAChE,QAAQ,IAAI,eAAe,GAAG,CAAC;AAC/B;AACA;AACA;AACA;AACA,QAAQ,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI;AAChC,YAAY,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,eAAe,EAAE;AACvF,gBAAgB,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AACvG;AACA,SAAS,CAAC;AACV;AACA;AACA;AACA,QAAQ,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI;AAChC,YAAY,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK;AAC9C,gBAAgB,OAAO;AACvB,oBAAoB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;AAClC,oBAAoB,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;AACnD,oBAAoB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,eAAe,GAAG;AAC/E,iBAAiB;AACjB,aAAa,CAAC,CAAC;AACf,SAAS,CAAC;AACV,QAAQ,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;AAC9C;AACA,IAAI,aAAa,CAAC,IAAI,EAAE;AACxB,QAAQ,OAAO;AACf,YAAY,IAAI;AAChB,YAAY,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI;AAC7C,SAAS;AACT;AACA,IAAI,cAAc,CAAC,GAAG,EAAE;AACxB;AACA,QAAQ,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC;AAC3C,QAAQ,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACrF;AACA,IAAI,QAAQ,GAAG;AACf,QAAQ,MAAM,KAAK,GAAG,EAAE;AACxB,QAAQ,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI;AACjC,YAAY,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,KAAK,CAAC;AACxC,SAAS,CAAC;AACV;AACA;AACA,QAAQ,OAAO;AACf,aAAa,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM;AACxC,aAAa,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI;AAClC,aAAa,IAAI,CAAC,IAAI,CAAC;AACvB;AACA,IAAI,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE;AAC5B,QAAQ,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK;AACjD,YAAY,IAAI,GAAG,GAAG,EAAE;AACxB,YAAY,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK;AACrC,gBAAgB,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AACzC,gBAAgB,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7D,gBAAgB,IAAI,EAAE,GAAG,GAAG,CAAC;AAC7B,gBAAgB,IAAI,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE;AACxD,oBAAoB,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AACxE;AACA;AACA,gBAAgB,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,EAAE;AAC1E,oBAAoB,MAAM,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAClD,oBAAoB,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,SAAS,CAAC;AAC1C,oBAAoB,IAAI,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,SAAS,EAAE;AAC3D,wBAAwB,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAClF;AACA;AACA;AACA,gBAAgB,MAAM,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC9D,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,EAAE;AACnC,oBAAoB,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACpD;AACA,gBAAgB,GAAG,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC;AAClD,gBAAgB,GAAG,IAAI,EAAE;AACzB,gBAAgB,GAAG,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC;AAClD,gBAAgB,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;AACpC,oBAAoB,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACrD;AACA;AACA;AACA,gBAAgB,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;AACjD,oBAAoB,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACzE;AACA,aAAa,CAAC;AACd;AACA,YAAY,KAAK,CAAC,IAAI,CAAC;AACvB,gBAAgB,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;AAC5C,gBAAgB,IAAI,EAAE,GAAG,CAAC;AAC1B,aAAa,CAAC;AACd,SAAS,CAAC;AACV,QAAQ,OAAO,KAAK;AACpB;AACA;AACA;AACA,IAAI,YAAY,CAAC,MAAM,EAAE,YAAY,EAAE;AACvC,QAAQ,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;AACzC,QAAQ,MAAM,iBAAiB,GAAG,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC;AAC7D,QAAQ,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI;AACxC,QAAQ,MAAM,eAAe,GAAG,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;AACrE,QAAQ,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;AAChC,YAAY,OAAO,MAAM;AACzB;AACA;AACA;AACA,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;AACxB,YAAY,YAAY,CAAC,MAAM,GAAG,IAAI;AACtC,YAAY,OAAO,MAAM,GAAG,MAAM;AAClC;AACA,QAAQ,IAAI,iBAAiB,GAAG,eAAe,EAAE;AACjD,YAAY,OAAO,MAAM;AACzB;AACA,QAAQ,YAAY,CAAC,MAAM,GAAG,IAAI;AAClC,QAAQ,OAAO,MAAM,CAAC,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,iBAAiB,GAAG,eAAe,CAAC,GAAG,MAAM,CAAC,QAAQ,EAAE;AACvG;AACA,IAAI,SAAS,CAAC,GAAG,EAAE;AACnB,QAAQ,MAAM,KAAK,GAAG,EAAE;AACxB,QAAQ,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC;AAC7C,QAAQ,IAAI,OAAO;AACnB;AACA;AACA,QAAQ,GAAG,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK;AAChC;AACA,YAAY,GAAG,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC;AACjC,YAAY,IAAI,IAAI,CAAC,IAAI,EAAE;AAC3B,gBAAgB,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;AACnG;AACA,iBAAiB;AACjB,gBAAgB,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;AAC9C;AACA,YAAY,IAAI,GAAG,CAAC,MAAM,EAAE;AAC5B,gBAAgB,OAAO,CAAC,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;AACpF,gBAAgB,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;AACjF;AACA;AACA,YAAY,IAAI,GAAG,CAAC,OAAO,EAAE;AAC7B,gBAAgB,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7E,gBAAgB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7E;AACA,YAAY,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK;AACxC,gBAAgB,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;AAC/B,oBAAoB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;AAClC;AACA,gBAAgB,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC;AACrC,gBAAgB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC5C,oBAAoB,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE;AAC/C,wBAAwB,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AACrC;AACA;AACA,gBAAgB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;AAC9B,aAAa,CAAC;AACd,SAAS,CAAC;AACV,QAAQ,OAAO,KAAK;AACpB;AACA,IAAI,aAAa,CAAC,GAAG,EAAE;AACvB,QAAQ,IAAI,SAAS,GAAG,GAAG,CAAC,KAAK,IAAI,CAAC;AACtC,QAAQ,IAAI,GAAG,CAAC,OAAO,EAAE;AACzB,YAAY,SAAS,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC7E;AACA,QAAQ,IAAI,GAAG,CAAC,MAAM,EAAE;AACxB,YAAY,SAAS,IAAI,CAAC;AAC1B;AACA,QAAQ,OAAO,SAAS;AACxB;AACA,IAAI,YAAY,CAAC,GAAG,EAAE;AACtB,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;AACxB,YAAY,OAAO,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI;AAClC,gBAAgB,OAAO,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC;AAC/D,aAAa,CAAC;AACd;AACA,QAAQ,IAAI,KAAK,GAAG,GAAG,CAAC,MAAM;AAC9B,QAAQ,IAAI,cAAc,GAAG,IAAI,CAAC,KAAK;AACvC;AACA,QAAQ,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI;AACtC,YAAY,IAAI,GAAG,CAAC,KAAK,EAAE;AAC3B,gBAAgB,KAAK,EAAE;AACvB,gBAAgB,cAAc,IAAI,GAAG,CAAC,KAAK;AAC3C,gBAAgB,OAAO,GAAG,CAAC,KAAK;AAChC;AACA,YAAY,OAAO,SAAS;AAC5B,SAAS,CAAC;AACV;AACA,QAAQ,MAAM,UAAU,GAAG,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC;AACzE,QAAQ,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK;AACpC,YAAY,IAAI,CAAC,KAAK,SAAS,EAAE;AACjC,gBAAgB,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D;AACA,YAAY,OAAO,CAAC;AACpB,SAAS,CAAC;AACV;AACA;AACA,SAAS,SAAS,CAAC,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE;AACnC,IAAI,IAAI,GAAG,CAAC,MAAM,EAAE;AACpB,QAAQ,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;AACnC,YAAY,OAAO,EAAE;AACrB;AACA,QAAQ,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;AACpC,YAAY,OAAO,KAAK;AACxB;AACA,QAAQ,OAAO,IAAI;AACnB;AACA,IAAI,OAAO,EAAE;AACb;AACA;AACA;AACA,SAAS,SAAS,CAAC,GAAG,EAAE;AACxB,IAAI,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,EAAE;AACrC,IAAI,MAAM,QAAQ,GAAG,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACrE,IAAI,IAAI,GAAG,CAAC,MAAM,EAAE;AACpB,QAAQ,OAAO,QAAQ,GAAG,CAAC;AAC3B;AACA,IAAI,OAAO,QAAQ;AACnB;AACA,SAAS,cAAc,GAAG;AAC1B;AACA,IAAI,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE;AACjF,QAAQ,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO;AACrC;AACA,IAAI,OAAO,EAAE;AACb;AACA,SAAS,UAAU,CAAC,GAAG,EAAE,KAAK,EAAE;AAChC,IAAI,GAAG,GAAG,GAAG,CAAC,IAAI,EAAE;AACpB,IAAI,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC;AAC3C,IAAI,IAAI,QAAQ,GAAG,KAAK,EAAE;AAC1B,QAAQ,OAAO,GAAG,CAAC,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,GAAG,GAAG;AACjD;AACA,IAAI,OAAO,GAAG;AACd;AACA,SAAS,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE;AACjC,IAAI,GAAG,GAAG,GAAG,CAAC,IAAI,EAAE;AACpB,IAAI,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC;AAC3C;AACA,IAAI,IAAI,QAAQ,IAAI,KAAK,EAAE;AAC3B,QAAQ,OAAO,GAAG;AAClB;AACA,IAAI,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,KAAK,GAAG,QAAQ,KAAK,CAAC,CAAC,GAAG,GAAG;AACpD;AACA,IAAI,KAAK;AACF,SAAS,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE;AACpC,IAAI,KAAK,GAAG,MAAM;AAClB,IAAI,OAAO,IAAI,EAAE,CAAC;AAClB,QAAQ,KAAK,EAAE,CAAC,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,KAAK,cAAc,EAAE;AAC3F,QAAQ,IAAI,EAAE,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC;AAC/D,KAAK,CAAC;AACN;;AC9RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,IAAI,GAAG,IAAI,MAAM,CAAC,iDAAiD;AACzE,IAAI,wCAAwC,EAAE,GAAG,CAAC;AAC3C,SAAS,SAAS,CAAC,GAAG,EAAE;AAC/B,IAAI,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;AAChC;AACO,SAAS,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE;AACjC,IAAI,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC;AACpD,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,CAAC;AACxB,IAAI,IAAI,OAAO,GAAG,EAAE;AACpB,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACzC,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,MAAM,CAAC,EAAE;AAC1C,YAAY,OAAO,IAAI,IAAI;AAC3B;AACA,QAAQ,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AAChC;AACA,IAAI,IAAI,KAAK,IAAI,GAAG,EAAE;AACtB,QAAQ,OAAO,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC;AAC5C;AACA,IAAI,OAAO,OAAO;AAClB;;AC1BA;;AAIe,SAAS,EAAE,EAAE,IAAI,EAAE;AAClC,EAAE,OAAO,KAAK,CAAC,IAAI,EAAE;AACrB,IAAI,WAAW,EAAE,CAAC,GAAG,KAAK;AAC1B,MAAM,OAAO,CAAC,GAAG,GAAG,CAAC,CAAC;AACtB,KAAK;AACL,IAAI,SAAS;AACb,IAAI;AACJ,GAAG;AACH;;ACTe,iBAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;AAC1C,CAAC,IAAI,GAAG,GAAGA,YAAO,CAAC,GAAG,EAAE,KAAK,CAAC;AAC9B,CAAC,IAAI,GAAG,EAAE,KAAK,GAAGC,WAAQ,CAAC,GAAG,CAAC;;AAE/B,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE;AAC3B,EAAE,GAAG,GAAGC,YAAO,CAAC,GAAG,CAAC;AACpB;;AAEA,CAAC,OAAO,IAAI,EAAE;AACd,EAAE,GAAG,GAAG,QAAQ,CAAC,GAAG,EAAEC,cAAW,CAAC,GAAG,CAAC,CAAC;AACvC,EAAE,IAAI,GAAG,EAAE,OAAOH,YAAO,CAAC,GAAG,EAAE,GAAG,CAAC;AACnC,EAAE,GAAG,GAAGE,YAAO,CAAC,GAAG,GAAG,GAAG,CAAC;AAC1B,EAAE,IAAI,GAAG,KAAK,GAAG,EAAE;AACnB;AACA;;ACdA,aAAe;AACf,IAAI,EAAE,EAAE;AACR,sBAAQE,eAAY;AACpB,mBAAQC;AACR,KAAK;AACL,YAAIC,WAAM;AACV,aAAIN,YAAO;AACX,IAAI,MAAM,EAAE,CAAC,IAAI,KAAK;AACtB,QAAQ,IAAI;AACZ,YAAY,OAAOC,WAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE;AAC1C;AACA,QAAQ,OAAO,GAAG,EAAE;AACpB,YAAY,OAAO,KAAK;AACxB;AACA;AACA,CAAC;;AClBD,IAAI,IAAI;AACR,MAAM,IAAI,CAAC;AACX,IAAI,WAAW,CAAC,IAAI,EAAE;AACtB;AACA,QAAQ,IAAI,GAAG,IAAI,IAAI,EAAE;AACzB,QAAQ,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,WAAW;AACtD,QAAQ,IAAI,CAAC,WAAW,GAAG,OAAO,IAAI,CAAC,WAAW,KAAK,SAAS,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI;AAC1F,QAAQ,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI;AACzC,QAAQ,IAAI,CAAC,kBAAkB,GAAG,OAAO,IAAI,CAAC,kBAAkB,KAAK,SAAS,GAAG,IAAI,CAAC,kBAAkB,GAAG,IAAI;AAC/G;AACA,QAAQ,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;AACxC,QAAQ,IAAI,CAAC,UAAU,GAAG,EAAE;AAC5B;AACA,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE;AAChB,QAAQ,IAAI,OAAO,SAAS,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE;AAC9C,YAAY,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,SAAS,CAAC;AAClE;AACA,QAAQ,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE;AAChC,QAAQ,IAAI,EAAE,GAAG,YAAY,GAAG,CAAC;AACjC,QAAQ,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,UAAU;AACvD,YAAY,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE;AAC3B,QAAQ,EAAE,GAAG,EAAE,IAAI,YAAY,GAAG,CAAC;AACnC,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;AACpC,YAAY,IAAI,CAAC,eAAe,EAAE;AAClC;AACA,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE;AAC/D,YAAY,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG;AAC9C;AACA;AACA;AACA,YAAY,IAAI,CAAC,aAAa,CAAC;AAC/B,gBAAgB,SAAS,EAAE,IAAI,CAAC,SAAS;AACzC,gBAAgB,MAAM,EAAE,IAAI,CAAC,MAAM;AACnC,gBAAgB;AAChB,aAAa,CAAC;AACd;AACA,aAAa;AACb,YAAY,EAAE,EAAE;AAChB;AACA,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACjG;AACA,IAAI,GAAG,GAAG;AACV,QAAQ,MAAM,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;AAC1D,QAAQ,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE;AACrC,QAAQ,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,EAAE;AACnC,QAAQ,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE;AACrC,QAAQ,IAAI,EAAE,GAAG,YAAY,GAAG,CAAC;AACjC,QAAQ,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,UAAU;AACvD,YAAY,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE;AAC3B,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;AACpC,YAAY,IAAI,CAAC,eAAe,EAAE;AAClC,QAAQ,IAAI,GAAG,GAAG,QAAQ,KAAK,CAAC,GAAG,QAAQ,GAAG,MAAM;AACpD,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EAAE;AAC/C,YAAY,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC;AAC3D,YAAY,GAAG,GAAG,KAAK,CAAC,QAAQ,KAAK,CAAC,GAAG,KAAK,GAAG,OAAO,CAAC;AACzD;AACA;AACA,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE;AACpE,YAAY,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,GAAG;AAChD,gBAAgB,GAAG,EAAE,QAAQ;AAC7B,gBAAgB,KAAK,EAAE;AACvB,aAAa;AACb;AACA;AACA;AACA,YAAY,IAAI,CAAC,aAAa,CAAC;AAC/B,gBAAgB,SAAS,EAAE,IAAI,CAAC,SAAS;AACzC,gBAAgB,MAAM,EAAE,IAAI,CAAC,MAAM;AACnC,gBAAgB;AAChB,aAAa,CAAC;AACd;AACA,aAAa;AACb,YAAY,EAAE,EAAE;AAChB;AACA;AACA;AACA,QAAQ,MAAM,MAAM,GAAG,CAAC,GAAG,CAAC;AAC5B,QAAQ,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC;AAC9B,YAAY,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;AACjC,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAClE;AACA,IAAI,SAAS,CAAC,MAAM,EAAE;AACtB,QAAQ,IAAI,CAAC,MAAM,GAAG,MAAM;AAC5B;AACA,IAAI,SAAS,GAAG;AAChB,QAAQ,OAAO,IAAI,CAAC,MAAM;AAC1B;AACA,IAAI,YAAY,CAAC,GAAG,EAAE;AACtB,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;AACpC,YAAY,IAAI,CAAC,eAAe,EAAE;AAClC,QAAQ,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE;AAC/B,YAAY,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;AAChE,gBAAgB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC;AACvD;AACA;AACA;AACA,IAAI,cAAc,CAAC,KAAK,EAAE,GAAG,IAAI,EAAE;AACnC,QAAQ,IAAI,GAAG,GAAG,EAAE;AACpB,QAAQ,KAAK,CAAC,OAAO,CAAC,UAAU,IAAI,EAAE,CAAC,EAAE;AACzC,YAAY,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;AACnC,YAAY,GAAG,IAAI,IAAI;AACvB,YAAY,IAAI,OAAO,GAAG,KAAK,WAAW,EAAE;AAC5C,gBAAgB,GAAG,IAAI,IAAI;AAC3B;AACA,SAAS,CAAC;AACV,QAAQ,OAAO,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACxE;AACA,IAAI,aAAa,CAAC,IAAI,EAAE;AACxB,QAAQ,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;AAClC,QAAQ,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;AACxC,YAAY,IAAI,CAAC,kBAAkB,EAAE;AACrC;AACA,IAAI,kBAAkB,GAAG;AACzB,QAAQ,MAAM,KAAK,GAAG,IAAI;AAC1B,QAAQ,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;AACvC;AACA,QAAQ,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS;AACxC,QAAQ,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM;AAClC,QAAQ,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE;AAC1B,QAAQ,MAAM,YAAY,GAAG,IAAI,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC;AACvE,QAAQ,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAC5E,QAAQ,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,YAAY,EAAE,gBAAgB,EAAE,OAAO,EAAE,UAAU,GAAG,EAAE;AAClF,YAAY,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE;AACpC,YAAY,IAAI,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC;AAC3C,gBAAgB,KAAK,CAAC,kBAAkB,EAAE;AAC1C,YAAY,EAAE,CAAC,GAAG,CAAC;AACnB,SAAS,CAAC;AACV;AACA,IAAI,eAAe,GAAG;AACtB,QAAQ,IAAI,YAAY,GAAG,EAAE;AAC7B,QAAQ,MAAM,YAAY,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC;AACjF,QAAQ,IAAI;AACZ;AACA,YAAY,IAAI,IAAI,CAAC,EAAE,CAAC,YAAY,EAAE;AACtC,gBAAgB,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AACtF;AACA;AACA,QAAQ,OAAO,GAAG,EAAE;AACpB,YAAY,IAAI,GAAG,YAAY,WAAW,EAAE;AAC5C,gBAAgB,GAAG,CAAC,OAAO,GAAG,kBAAkB,GAAG,YAAY;AAC/D;AACA,YAAY,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ;AACrC,gBAAgB,YAAY,GAAG,EAAE;AACjC;AACA,gBAAgB,MAAM,GAAG;AACzB;AACA,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,YAAY;AAC9C;AACA,IAAI,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE;AAC1C,QAAQ,IAAI,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;AAClE,QAAQ,IAAI,IAAI,CAAC,kBAAkB,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE;AAChG;AACA,YAAY,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;AAC9F,YAAY,IAAI,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC;AAClD,gBAAgB,IAAI,GAAG,YAAY;AACnC;AACA,QAAQ,OAAO,IAAI;AACnB;AACA,IAAI,eAAe,CAAC,IAAI,EAAE;AAC1B,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;AAChC;AACA;AACO,SAASM,MAAI,CAAC,IAAI,EAAE,KAAK,EAAE;AAClC,IAAI,IAAI,GAAG,KAAK;AAChB,IAAI,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC;AAC/B,IAAI,OAAO;AACX,QAAQ,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9B,QAAQ,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;AAChC,QAAQ,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;AAC5C,QAAQ,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;AAC5C,QAAQ,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;AAClD,QAAQ,MAAM,EAAE,IAAI,CAAC;AACrB,KAAK;AACL;;AC1KA,MAAM,IAAI,GAAG,CAAC,IAAI,KAAK;AACvB,EAAE,OAAOC,MAAK,CAAC,IAAI,EAAEC,MAAI;AACzB;;ACSA,MAAM,aAAa,GAAG;AACtB,MAAM,uBAAuB,GAAG;;AAEhC,IAAIC,WAAS;AACb,IAAI;AACJ,EAAEA,WAAS,GAAGC,iBAAa,CAAC,6PAAe,CAAC;AAC5C,CAAC,CAAC,OAAO,CAAC,EAAE;AACZ,EAAED,WAAS,GAAG,OAAO,CAAC,GAAG,EAAE;AAC3B;AACA,MAAM,YAAY,GAAGA,WAAS,CAAC,SAAS,CAAC,CAAC,EAAEA,WAAS,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;;CAEnE;AACf,EAAE,MAAM,EAAE;AACV,oBAAIE,qBAAc;AAClB,iBAAIC;AACJ,GAAG;AACH,SAAEC,EAAK;AACP,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK;AACnB,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,GAAG;AAC1B,GAAG;AACH,WAAEC,YAAO;AACT,EAAE,aAAa,EAAE,MAAM;AACvB,IAAI,MAAM,IAAI,MAAM,CAAC,uBAAuB;AAC5C,GAAG;AACH,EAAE,iBAAiB;AACnB,EAAE,YAAY,EAAE,YAAY,IAAI,OAAO,CAAC,GAAG,EAAE;AAC7C,EAAE,MAAM;AACR,EAAE,IAAI,EAAE;AACR,cAAIC,aAAQ;AACZ,aAAId,YAAO;AACX,aAAIe,YAAO;AACX,cAAIC,aAAQ;AACZ,aAAIlB;AACJ,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI;AAC5B,IAAI,GAAG,EAAE,OAAO,CAAC,GAAG;AACpB,IAAI,WAAW,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC;AACtE,IAAI,QAAQ,EAAE,MAAM,OAAO,CAAC,QAAQ;AACpC,IAAI,IAAI,EAAE,OAAO,CAAC,IAAI;AACtB,IAAI,QAAQ,EAAE,OAAO,CAAC,QAAQ;AAC9B,IAAI,UAAU,EAAE,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,KAAK,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,GAAG;AACzF,GAAG;AACH,gBAAEI,eAAY;AACd,EAAE,OAAO,EAAE,MAAM;AACjB,IAAI,MAAM,IAAI,MAAM,CAAC,aAAa;AAClC,GAAG;AACH,EAAE,gBAAgB,EAAE,MAAM;AAC1B,IAAI,MAAM,IAAI,MAAM,CAAC,uBAAuB;AAC5C,GAAG;AACH,EAAE,WAAW,EAAE,CAAC,GAAG,KAAK;AACxB,IAAI,OAAO,CAAC,GAAG,GAAG,CAAC,CAAC;AACpB,GAAG;AACH,EAAE,IAAI,EAAE,IAAI,CAAC;AACb,IAAI,SAAS,EAAEJ,YAAO,CAACU,WAAS,EAAE,kBAAkB,CAAC;AACrD,IAAI,WAAW,EAAE;AACjB,GAAG;AACH;;ACxEA;AACA;AAIO,MAAM,qBAAqB,GAAG,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,KAAK;AACpE,IAAI,MAAM,aAAa,GAAG,EAAE;AAC5B,IAAI,IAAI,OAAO,GAAG,KAAK;AACvB,IAAI,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK;AACzD,QAAQ,MAAM,QAAQ,GAAG,CAAC;AAC1B,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC;AAC/B,QAAQ,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;AACxC,QAAQ,IAAI,QAAQ,KAAK,IAAI,EAAE;AAC/B,YAAY,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;AACvD,gBAAgB,aAAa,CAAC,GAAG,CAAC,GAAG,KAAK;AAC1C;AACA;AACA,aAAa,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;AACxD,YAAY,OAAO,GAAG,IAAI;AAC1B;AACA,aAAa;AACb,YAAY,OAAO,GAAG,IAAI;AAC1B,YAAY,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,4BAA4B,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAC/D,YAAY,IAAI,OAAO,QAAQ,KAAK,QAAQ;AAC5C,gBAAgB,GAAG,CAAC,QAAQ,CAAC;AAC7B;AACA,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE;AACrC,CAAC;AACM,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK;AAC7C,IAAI,MAAM,IAAI,GAAGS,MAAW,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACnD,IAAI,OAAO,OAAO,eAAe,EAAE,cAAc,KAAK;AACtD,QAAQ,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,qBAAqB,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,CAAC;AAC3F,QAAQ,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,MAAM,EAAE;AAC7D,YAAY,OAAO,eAAe,CAAC,aAAa,CAAC;AACjD;AACA,aAAa;AACb,YAAY,IAAI,CAAC,uCAAuC,CAAC;AACzD,YAAY,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,KAAK,IAAI,IAAI,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,aAAa,CAAC,GAAG,CAAC,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,EAAE,GAAG,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC7L,YAAY,OAAO,aAAa;AAChC;AACA,KAAK;AACL,CAAC;;AC1CD;AACA;AAGA;AACA;AACO,MAAM,SAAS,GAAGjB,iBAAO,CAACS,sBAAa,CAAC,6PAAe,CAAC,CAAC;;ACNhE;AACA;AAIO,eAAe,YAAY,CAAC,QAAQ,EAAE;AAC7C,IAAI,MAAM,WAAW,GAAG,MAAM,QAAQ,CAACS,cAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5G,IAAI,MAAM,aAAa,GAAG,MAAM,QAAQ,CAACA,cAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7G,IAAI,OAAO,CAAC,GAAG,WAAW,EAAE,GAAG,aAAa,CAAC;AAC7C;AACA,eAAe,QAAQ,CAAC,IAAI,EAAE;AAC9B;AACA;AACA;AACA,IAAI,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;AACnD,IAAI,OAAOC,SAAI,CAAC,cAAc,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;AAC9C;;AChBA;AACA;AAOA,MAAM,cAAc,GAAG,WAAW;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACO,eAAe,eAAe,CAAC,YAAY,EAAE,gBAAgB,EAAE,OAAO,GAAG,EAAE,EAAE;AACpF,IAAI,MAAM,EAAE,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,GAAG,OAAO;AAClF,IAAI,MAAM,aAAa,GAAG,OAAO,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,IAAI;AAC3D,IAAI,IAAI,aAAa,EAAE;AACvB,QAAQ,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC3F;AACA,IAAI,MAAM,IAAI,GAAG,iBAAiB,CAAC,YAAY,CAAC,WAAW,CAAC;AAC5D,IAAI,MAAM,cAAc,GAAG;AAC3B,QAAQ,IAAI,EAAE,qBAAqB;AACnC,QAAQ,IAAI,EAAE,aAAa,GAAG,aAAa,CAAC,QAAQ,EAAE,GAAG,IAAI;AAC7D,KAAK;AACL,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,mCAAmC,EAAE,EAAE,WAAW,EAAE,uBAAuB,EAAE;AACrF,KAAK;AACL,IAAI,IAAI,sBAAsB,EAAE;AAChC,QAAQ,gBAAgB,CAAC,mCAAmC,CAAC,QAAQ,GAAG,sBAAsB;AAC9F;AACA,IAAI,IAAI,yBAAyB,EAAE;AACnC,QAAQ,gBAAgB,CAAC,mCAAmC,CAAC,WAAW,GAAG,yBAAyB;AACpG;AACA,IAAI,MAAM,cAAc,GAAG,OAAO,IAAI,KAAK;AAC3C,QAAQ,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;AACxD,QAAQ,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,QAAQ,GAAG,MAAM;AAClE,QAAQ,IAAI,QAAQ,GAAG,MAAMC,aAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC;AAC5D,QAAQ,IAAI,UAAU,EAAE;AACxB,YAAY,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE;AACjD,gBAAgB,IAAI;AACpB,gBAAgB,WAAW,EAAE,YAAY,CAAC,WAAW;AACrD,gBAAgB,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;AAC5G,gBAAgB,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,CAAC;AAC1E,gBAAgB,gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,CAAC;AAC9E,gBAAgB,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC;AAC1E,aAAa,CAAC;AACd;AACA,QAAQ,IAAI,YAAY,GAAG,IAAI;AAC/B,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;AACtC,YAAY,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC;AAC5D;AACA,QAAQ,YAAY,GAAG;AACvB,aAAa,OAAO,CAACC,cAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,EAAE;AAC1E,aAAa,OAAO,CAACA,cAAQ,CAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,CAAC,UAAU,CAAC,EAAE,EAAE;AACxF,aAAa,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;AACxC,QAAQ,MAAM,WAAW,GAAGA,cAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,gBAAgB,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC;AACzF,QAAQ,MAAM,GAAG,GAAGC,eAAS,CAAC,WAAW,CAAC,CAAC,GAAG;AAC9C,QAAQ,MAAMF,aAAE,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AAChD,QAAQ,MAAMA,aAAE,CAAC,SAAS,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC;AAC/D,KAAK;AACL,IAAI,MAAM,SAAS,GAAG,MAAM,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC;AACjE,IAAI,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE;AACjD,QAAQ,MAAM,cAAc,CAAC,IAAI,CAAC;AAClC;AACA,IAAI;AACJ;;ACpEA;AACA;AAKA,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG;AACvB,MAAM,KAAK,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AAC5C,MAAM,KAAK,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AAC5C,MAAM,GAAG,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACxC,MAAM,IAAI,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC1C,eAAe,IAAI,GAAG;AACtB,IAAI,KAAK,CAAC,sKAAsK,CAAC;AACjL,IAAI,MAAM,SAAS,GAAG,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC;AAC/C,IAAI,KAAK,CAAC,0CAA0C,CAAC;AACrD,IAAI,MAAM,YAAY,GAAG,MAAM,SAAS,CAAC,kBAAkB,EAAE,oBAAoB,CAAC;AAClF,IAAI,KAAK,CAAC,yDAAyD,CAAC;AACpE,IAAI,MAAM,kBAAkB,GAAG,MAAM,SAAS,CAAC,wBAAwB,EAAE,oBAAoB,CAAC;AAC9F,IAAI,KAAK,CAAC,uBAAuB,CAAC;AAClC,IAAI,MAAM,UAAU,GAAG,MAAM,SAAS,CAAC,gBAAgB,EAAE,kBAAkB,CAAC;AAC5E,IAAI,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;AAClD,QAAQ,kBAAkB,CAAC,UAAU,GAAG,kBAAkB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9E;AACA,IAAI,IAAI,kBAAkB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;AACzD,QAAQ,kBAAkB,CAAC,UAAU,GAAG,kBAAkB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAClF;AACA,IAAI,IAAI,kBAAkB,CAAC,UAAU,KAAK,EAAE,EAAE;AAC9C,QAAQ,OAAO,kBAAkB,CAAC,UAAU;AAC5C;AACA,IAAI,kBAAkB,CAAC,qBAAqB,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,qBAAqB,CAAC;AAC1G,IAAI,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC;AACpC,UAAU,iBAAiB,CAAC,UAAU,CAAC,OAAO;AAC9C,UAAU,UAAU,CAAC,OAAO;AAC5B,IAAI,OAAO,eAAe,CAAC,YAAY,EAAE,kBAAkB,EAAE,UAAU;AACvE,SAAS,IAAI,CAAC,MAAM,KAAK,CAAC,wEAAwE,CAAC;AACnG,SAAS,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;AAC7B;AACA,IAAI;AACJ,KAAK,IAAI,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/B,KAAK,KAAK,CAAC,CAAC,GAAG,KAAK;AACpB,IAAI,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;AACtB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AACnB,CAAC,CAAC;;","x_google_ignoreList":[2,3,4,5,6,7,8,9,10,11]} \ No newline at end of file +{"version":3,"file":"execute.cjs","sources":["../dist/esm/scaffolding.js","../dist/esm/bin/execute-configs.js","../../../../common/temp/node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/yerror.js","../../../../common/temp/node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/process-argv.js","../../../../common/temp/node_modules/.pnpm/cliui@8.0.1/node_modules/cliui/build/lib/index.js","../../../../common/temp/node_modules/.pnpm/cliui@8.0.1/node_modules/cliui/build/lib/string-utils.js","../../../../common/temp/node_modules/.pnpm/cliui@8.0.1/node_modules/cliui/index.mjs","../../../../common/temp/node_modules/.pnpm/escalade@3.2.0/node_modules/escalade/sync/index.mjs","../../../../common/temp/node_modules/.pnpm/y18n@5.0.8/node_modules/y18n/build/lib/platform-shims/node.js","../../../../common/temp/node_modules/.pnpm/y18n@5.0.8/node_modules/y18n/build/lib/index.js","../../../../common/temp/node_modules/.pnpm/y18n@5.0.8/node_modules/y18n/index.mjs","../../../../common/temp/node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/lib/platform-shims/esm.mjs","../dist/esm/bin/execute-helpers.js","../dist/esm/sourceDir.js","../dist/esm/getTemplates.js","../dist/esm/generateProject.js","../dist/esm/bin/execute.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/**\n * Unique identifier under which is specified which port to use for injecting locally hosted custom widget to a running DevPortal instance.\n */\nexport const OVERRIDE_PORT_KEY = \"MS_APIM_CW_localhost_port\";\n/**\n * Default port for running local dev server on.\n */\nexport const OVERRIDE_DEFAULT_PORT = 3000;\n/** List of all supported technologies to scaffold a widget in. */\nexport const TECHNOLOGIES = [\"typescript\", \"react\", \"vue\"];\n/**\n * Converts user defined name of a custom widget to a unique ID, which is in context of Dev Portal known as \"name\".\n * Prefix \"cw-\" to avoid conflicts with existing widgets.\n *\n * @param displayName - User defined name of the custom widget.\n */\nexport const displayNameToName = (displayName) => encodeURIComponent((\"cw-\" + displayName)\n .normalize(\"NFD\")\n .toLowerCase()\n .replace(/[\\u0300-\\u036f]/g, \"\")\n .replace(/[^a-z0-9-]/g, \"-\"));\n/**\n * Returns name of the folder for widget project.\n *\n * @param name - name of the widget\n */\nexport const widgetFolderName = (name) => `azure-api-management-widget-${name}`;\n//# sourceMappingURL=scaffolding.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { TECHNOLOGIES } from \"../scaffolding.js\";\nexport const fieldIdToName = {\n displayName: \"Widget display name\",\n technology: \"Technology\",\n iconUrl: \"iconUrl\",\n resourceId: \"Azure API Management resource ID (following format: subscriptions//resourceGroups//providers/Microsoft.ApiManagement/service/)\",\n managementApiEndpoint: \"Management API hostname\",\n apiVersion: \"Management API version\",\n openUrl: \"Developer portal URL\",\n configAdvancedTenantId: \"Tenant ID\",\n configAdvancedRedirectUri: \"Redirect URI\",\n};\nexport const prefixUrlProtocol = (value) => /https?:\\/\\//.test(value) ? value : `https://${value}`;\nconst validateRequired = (name, msg = `The “${name}” parameter is required.`) => (input) => (input != null && input !== \"\") || msg;\nconst validateUrl = (name, msg = (input) => `Provided “${name}” parameter value (“${prefixUrlProtocol(input)}”) isn’t a valid URL. Use the correct URL format, e.g., https://contoso.com.`) => (input) => {\n try {\n new URL(prefixUrlProtocol(input));\n return true;\n }\n catch (e) {\n return msg(prefixUrlProtocol(input));\n }\n};\nexport const validateWidgetConfig = {\n displayName: validateRequired(fieldIdToName.displayName),\n technology: (input) => {\n const required = validateRequired(fieldIdToName.technology)(input);\n if (required !== true)\n return required;\n if (TECHNOLOGIES.includes(input)) {\n return true;\n }\n else {\n return (\"Provided “technology” parameter value isn’t correct. Use one of the following: \" +\n TECHNOLOGIES.join(\", \"));\n }\n },\n};\nexport const validateDeployConfig = {\n resourceId: (input) => {\n const required = validateRequired(fieldIdToName.resourceId)(input);\n if (required !== true)\n return required;\n const regex = /^\\/?subscriptions\\/[^/]+\\/resourceGroups\\/[^/]+\\/providers\\/Microsoft\\.ApiManagement\\/service\\/[^/]+\\/?$/;\n return input === \"test\" || regex.test(input)\n ? true\n : \"Resource ID needs to be a valid Azure resource ID. For example, subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-group/providers/Microsoft.ApiManagement/service/contoso-apis.\";\n },\n managementApiEndpoint: (input) => validateRequired(fieldIdToName.managementApiEndpoint)(input),\n};\nexport const validateMiscConfig = {\n openUrl: (input) => {\n if (!input)\n return true;\n return validateUrl(fieldIdToName.openUrl)(input);\n },\n configAdvancedTenantId: () => {\n return true;\n },\n configAdvancedRedirectUri: (input) => {\n if (!input)\n return true;\n return validateUrl(fieldIdToName.openUrl)(input);\n },\n};\nexport const promptWidgetConfig = async (partial) => {\n const inquirerImport = await import(\"inquirer\");\n const inquirer = inquirerImport.default;\n return inquirer.prompt([\n {\n name: \"displayName\",\n type: \"input\",\n message: fieldIdToName.displayName,\n validate: validateWidgetConfig.displayName,\n },\n {\n name: \"technology\",\n type: \"list\",\n message: fieldIdToName.technology,\n choices: [\n { name: \"React\", value: \"react\" },\n { name: \"Vue\", value: \"vue\" },\n { name: \"TypeScript\", value: \"typescript\" },\n ],\n },\n ], partial);\n};\nexport const promptServiceInformation = async (partial) => {\n const inquirerImport = await import(\"inquirer\");\n const inquirer = inquirerImport.default;\n return inquirer.prompt([\n {\n name: \"resourceId\",\n type: \"input\",\n message: fieldIdToName.resourceId,\n validate: validateDeployConfig.resourceId,\n },\n {\n name: \"managementApiEndpoint\",\n type: \"list\",\n message: fieldIdToName.managementApiEndpoint,\n choices: [\n {\n name: \"management.azure.com (if you're not sure what to select, use this option)\",\n value: \"management.azure.com\",\n },\n { name: \"management.usgovcloudapi.net\", value: \"management.usgovcloudapi.net\" },\n { name: \"management.chinacloudapi.cn\", value: \"management.chinacloudapi.cn\" },\n ],\n transformer: prefixUrlProtocol,\n validate: validateDeployConfig.managementApiEndpoint,\n },\n {\n name: \"apiVersion\",\n type: \"input\",\n message: fieldIdToName.apiVersion + \" (optional; e.g., 2021-08-01)\",\n },\n ], partial);\n};\nexport const promptMiscConfig = async (partial) => {\n const inquirerImport = await import(\"inquirer\");\n const inquirer = inquirerImport.default;\n return inquirer.prompt([\n {\n name: \"openUrl\",\n type: \"input\",\n message: fieldIdToName.openUrl +\n \" for widget development and testing (optional; e.g., https://contoso.developer.azure-api.net/ or http://localhost:8080)\",\n transformer: prefixUrlProtocol,\n validate: validateMiscConfig.openUrl,\n },\n {\n name: \"configAdvancedTenantId\",\n type: \"input\",\n message: fieldIdToName.configAdvancedTenantId +\n \" to be used in Azure Identity InteractiveBrowserCredential class (optional)\",\n validate: validateMiscConfig.openUrl,\n },\n {\n name: \"configAdvancedRedirectUri\",\n type: \"input\",\n message: fieldIdToName.configAdvancedRedirectUri +\n \" to be used in Azure Identity InteractiveBrowserCredential class (optional; default is http://localhost:1337)\",\n validate: validateMiscConfig.openUrl,\n },\n ], partial);\n};\n//# sourceMappingURL=execute-configs.js.map","export class YError extends Error {\n constructor(msg) {\n super(msg || 'yargs error');\n this.name = 'YError';\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, YError);\n }\n }\n}\n","function getProcessArgvBinIndex() {\n if (isBundledElectronApp())\n return 0;\n return 1;\n}\nfunction isBundledElectronApp() {\n return isElectronApp() && !process.defaultApp;\n}\nfunction isElectronApp() {\n return !!process.versions.electron;\n}\nexport function hideBin(argv) {\n return argv.slice(getProcessArgvBinIndex() + 1);\n}\nexport function getProcessArgvBin() {\n return process.argv[getProcessArgvBinIndex()];\n}\n","'use strict';\nconst align = {\n right: alignRight,\n center: alignCenter\n};\nconst top = 0;\nconst right = 1;\nconst bottom = 2;\nconst left = 3;\nexport class UI {\n constructor(opts) {\n var _a;\n this.width = opts.width;\n this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;\n this.rows = [];\n }\n span(...args) {\n const cols = this.div(...args);\n cols.span = true;\n }\n resetOutput() {\n this.rows = [];\n }\n div(...args) {\n if (args.length === 0) {\n this.div('');\n }\n if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') {\n return this.applyLayoutDSL(args[0]);\n }\n const cols = args.map(arg => {\n if (typeof arg === 'string') {\n return this.colFromString(arg);\n }\n return arg;\n });\n this.rows.push(cols);\n return cols;\n }\n shouldApplyLayoutDSL(...args) {\n return args.length === 1 && typeof args[0] === 'string' &&\n /[\\t\\n]/.test(args[0]);\n }\n applyLayoutDSL(str) {\n const rows = str.split('\\n').map(row => row.split('\\t'));\n let leftColumnWidth = 0;\n // simple heuristic for layout, make sure the\n // second column lines up along the left-hand.\n // don't allow the first column to take up more\n // than 50% of the screen.\n rows.forEach(columns => {\n if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {\n leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));\n }\n });\n // generate a table:\n // replacing ' ' with padding calculations.\n // using the algorithmically generated width.\n rows.forEach(columns => {\n this.div(...columns.map((r, i) => {\n return {\n text: r.trim(),\n padding: this.measurePadding(r),\n width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined\n };\n }));\n });\n return this.rows[this.rows.length - 1];\n }\n colFromString(text) {\n return {\n text,\n padding: this.measurePadding(text)\n };\n }\n measurePadding(str) {\n // measure padding without ansi escape codes\n const noAnsi = mixin.stripAnsi(str);\n return [0, noAnsi.match(/\\s*$/)[0].length, 0, noAnsi.match(/^\\s*/)[0].length];\n }\n toString() {\n const lines = [];\n this.rows.forEach(row => {\n this.rowToString(row, lines);\n });\n // don't display any lines with the\n // hidden flag set.\n return lines\n .filter(line => !line.hidden)\n .map(line => line.text)\n .join('\\n');\n }\n rowToString(row, lines) {\n this.rasterize(row).forEach((rrow, r) => {\n let str = '';\n rrow.forEach((col, c) => {\n const { width } = row[c]; // the width with padding.\n const wrapWidth = this.negatePadding(row[c]); // the width without padding.\n let ts = col; // temporary string used during alignment/padding.\n if (wrapWidth > mixin.stringWidth(col)) {\n ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));\n }\n // align the string within its column.\n if (row[c].align && row[c].align !== 'left' && this.wrap) {\n const fn = align[row[c].align];\n ts = fn(ts, wrapWidth);\n if (mixin.stringWidth(ts) < wrapWidth) {\n ts += ' '.repeat((width || 0) - mixin.stringWidth(ts) - 1);\n }\n }\n // apply border and padding to string.\n const padding = row[c].padding || [0, 0, 0, 0];\n if (padding[left]) {\n str += ' '.repeat(padding[left]);\n }\n str += addBorder(row[c], ts, '| ');\n str += ts;\n str += addBorder(row[c], ts, ' |');\n if (padding[right]) {\n str += ' '.repeat(padding[right]);\n }\n // if prior row is span, try to render the\n // current row on the prior line.\n if (r === 0 && lines.length > 0) {\n str = this.renderInline(str, lines[lines.length - 1]);\n }\n });\n // remove trailing whitespace.\n lines.push({\n text: str.replace(/ +$/, ''),\n span: row.span\n });\n });\n return lines;\n }\n // if the full 'source' can render in\n // the target line, do so.\n renderInline(source, previousLine) {\n const match = source.match(/^ */);\n const leadingWhitespace = match ? match[0].length : 0;\n const target = previousLine.text;\n const targetTextWidth = mixin.stringWidth(target.trimRight());\n if (!previousLine.span) {\n return source;\n }\n // if we're not applying wrapping logic,\n // just always append to the span.\n if (!this.wrap) {\n previousLine.hidden = true;\n return target + source;\n }\n if (leadingWhitespace < targetTextWidth) {\n return source;\n }\n previousLine.hidden = true;\n return target.trimRight() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimLeft();\n }\n rasterize(row) {\n const rrows = [];\n const widths = this.columnWidths(row);\n let wrapped;\n // word wrap all columns, and create\n // a data-structure that is easy to rasterize.\n row.forEach((col, c) => {\n // leave room for left and right padding.\n col.width = widths[c];\n if (this.wrap) {\n wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\\n');\n }\n else {\n wrapped = col.text.split('\\n');\n }\n if (col.border) {\n wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.');\n wrapped.push(\"'\" + '-'.repeat(this.negatePadding(col) + 2) + \"'\");\n }\n // add top and bottom padding.\n if (col.padding) {\n wrapped.unshift(...new Array(col.padding[top] || 0).fill(''));\n wrapped.push(...new Array(col.padding[bottom] || 0).fill(''));\n }\n wrapped.forEach((str, r) => {\n if (!rrows[r]) {\n rrows.push([]);\n }\n const rrow = rrows[r];\n for (let i = 0; i < c; i++) {\n if (rrow[i] === undefined) {\n rrow.push('');\n }\n }\n rrow.push(str);\n });\n });\n return rrows;\n }\n negatePadding(col) {\n let wrapWidth = col.width || 0;\n if (col.padding) {\n wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);\n }\n if (col.border) {\n wrapWidth -= 4;\n }\n return wrapWidth;\n }\n columnWidths(row) {\n if (!this.wrap) {\n return row.map(col => {\n return col.width || mixin.stringWidth(col.text);\n });\n }\n let unset = row.length;\n let remainingWidth = this.width;\n // column widths can be set in config.\n const widths = row.map(col => {\n if (col.width) {\n unset--;\n remainingWidth -= col.width;\n return col.width;\n }\n return undefined;\n });\n // any unset widths should be calculated.\n const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;\n return widths.map((w, i) => {\n if (w === undefined) {\n return Math.max(unsetWidth, _minWidth(row[i]));\n }\n return w;\n });\n }\n}\nfunction addBorder(col, ts, style) {\n if (col.border) {\n if (/[.']-+[.']/.test(ts)) {\n return '';\n }\n if (ts.trim().length !== 0) {\n return style;\n }\n return ' ';\n }\n return '';\n}\n// calculates the minimum width of\n// a column, based on padding preferences.\nfunction _minWidth(col) {\n const padding = col.padding || [];\n const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);\n if (col.border) {\n return minWidth + 4;\n }\n return minWidth;\n}\nfunction getWindowWidth() {\n /* istanbul ignore next: depends on terminal */\n if (typeof process === 'object' && process.stdout && process.stdout.columns) {\n return process.stdout.columns;\n }\n return 80;\n}\nfunction alignRight(str, width) {\n str = str.trim();\n const strWidth = mixin.stringWidth(str);\n if (strWidth < width) {\n return ' '.repeat(width - strWidth) + str;\n }\n return str;\n}\nfunction alignCenter(str, width) {\n str = str.trim();\n const strWidth = mixin.stringWidth(str);\n /* istanbul ignore next */\n if (strWidth >= width) {\n return str;\n }\n return ' '.repeat((width - strWidth) >> 1) + str;\n}\nlet mixin;\nexport function cliui(opts, _mixin) {\n mixin = _mixin;\n return new UI({\n width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(),\n wrap: opts === null || opts === void 0 ? void 0 : opts.wrap\n });\n}\n","// Minimal replacement for ansi string helpers \"wrap-ansi\" and \"strip-ansi\".\n// to facilitate ESM and Deno modules.\n// TODO: look at porting https://www.npmjs.com/package/wrap-ansi to ESM.\n// The npm application\n// Copyright (c) npm, Inc. and Contributors\n// Licensed on the terms of The Artistic License 2.0\n// See: https://github.com/npm/cli/blob/4c65cd952bc8627811735bea76b9b110cc4fc80e/lib/utils/ansi-trim.js\nconst ansi = new RegExp('\\x1b(?:\\\\[(?:\\\\d+[ABCDEFGJKSTm]|\\\\d+;\\\\d+[Hfm]|' +\n '\\\\d+;\\\\d+;\\\\d+m|6n|s|u|\\\\?25[lh])|\\\\w)', 'g');\nexport function stripAnsi(str) {\n return str.replace(ansi, '');\n}\nexport function wrap(str, width) {\n const [start, end] = str.match(ansi) || ['', ''];\n str = stripAnsi(str);\n let wrapped = '';\n for (let i = 0; i < str.length; i++) {\n if (i !== 0 && (i % width) === 0) {\n wrapped += '\\n';\n }\n wrapped += str.charAt(i);\n }\n if (start && end) {\n wrapped = `${start}${wrapped}${end}`;\n }\n return wrapped;\n}\n","// Bootstrap cliui with CommonJS dependencies:\nimport { cliui } from './build/lib/index.js'\nimport { wrap, stripAnsi } from './build/lib/string-utils.js'\n\nexport default function ui (opts) {\n return cliui(opts, {\n stringWidth: (str) => {\n return [...str].length\n },\n stripAnsi,\n wrap\n })\n}\n","import { dirname, resolve } from 'path';\nimport { readdirSync, statSync } from 'fs';\n\nexport default function (start, callback) {\n\tlet dir = resolve('.', start);\n\tlet tmp, stats = statSync(dir);\n\n\tif (!stats.isDirectory()) {\n\t\tdir = dirname(dir);\n\t}\n\n\twhile (true) {\n\t\ttmp = callback(dir, readdirSync(dir));\n\t\tif (tmp) return resolve(dir, tmp);\n\t\tdir = dirname(tmp = dir);\n\t\tif (tmp === dir) break;\n\t}\n}\n","import { readFileSync, statSync, writeFile } from 'fs';\nimport { format } from 'util';\nimport { resolve } from 'path';\nexport default {\n fs: {\n readFileSync,\n writeFile\n },\n format,\n resolve,\n exists: (file) => {\n try {\n return statSync(file).isFile();\n }\n catch (err) {\n return false;\n }\n }\n};\n","let shim;\nclass Y18N {\n constructor(opts) {\n // configurable options.\n opts = opts || {};\n this.directory = opts.directory || './locales';\n this.updateFiles = typeof opts.updateFiles === 'boolean' ? opts.updateFiles : true;\n this.locale = opts.locale || 'en';\n this.fallbackToLanguage = typeof opts.fallbackToLanguage === 'boolean' ? opts.fallbackToLanguage : true;\n // internal stuff.\n this.cache = Object.create(null);\n this.writeQueue = [];\n }\n __(...args) {\n if (typeof arguments[0] !== 'string') {\n return this._taggedLiteral(arguments[0], ...arguments);\n }\n const str = args.shift();\n let cb = function () { }; // start with noop.\n if (typeof args[args.length - 1] === 'function')\n cb = args.pop();\n cb = cb || function () { }; // noop.\n if (!this.cache[this.locale])\n this._readLocaleFile();\n // we've observed a new string, update the language file.\n if (!this.cache[this.locale][str] && this.updateFiles) {\n this.cache[this.locale][str] = str;\n // include the current directory and locale,\n // since these values could change before the\n // write is performed.\n this._enqueueWrite({\n directory: this.directory,\n locale: this.locale,\n cb\n });\n }\n else {\n cb();\n }\n return shim.format.apply(shim.format, [this.cache[this.locale][str] || str].concat(args));\n }\n __n() {\n const args = Array.prototype.slice.call(arguments);\n const singular = args.shift();\n const plural = args.shift();\n const quantity = args.shift();\n let cb = function () { }; // start with noop.\n if (typeof args[args.length - 1] === 'function')\n cb = args.pop();\n if (!this.cache[this.locale])\n this._readLocaleFile();\n let str = quantity === 1 ? singular : plural;\n if (this.cache[this.locale][singular]) {\n const entry = this.cache[this.locale][singular];\n str = entry[quantity === 1 ? 'one' : 'other'];\n }\n // we've observed a new string, update the language file.\n if (!this.cache[this.locale][singular] && this.updateFiles) {\n this.cache[this.locale][singular] = {\n one: singular,\n other: plural\n };\n // include the current directory and locale,\n // since these values could change before the\n // write is performed.\n this._enqueueWrite({\n directory: this.directory,\n locale: this.locale,\n cb\n });\n }\n else {\n cb();\n }\n // if a %d placeholder is provided, add quantity\n // to the arguments expanded by util.format.\n const values = [str];\n if (~str.indexOf('%d'))\n values.push(quantity);\n return shim.format.apply(shim.format, values.concat(args));\n }\n setLocale(locale) {\n this.locale = locale;\n }\n getLocale() {\n return this.locale;\n }\n updateLocale(obj) {\n if (!this.cache[this.locale])\n this._readLocaleFile();\n for (const key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n this.cache[this.locale][key] = obj[key];\n }\n }\n }\n _taggedLiteral(parts, ...args) {\n let str = '';\n parts.forEach(function (part, i) {\n const arg = args[i + 1];\n str += part;\n if (typeof arg !== 'undefined') {\n str += '%s';\n }\n });\n return this.__.apply(this, [str].concat([].slice.call(args, 1)));\n }\n _enqueueWrite(work) {\n this.writeQueue.push(work);\n if (this.writeQueue.length === 1)\n this._processWriteQueue();\n }\n _processWriteQueue() {\n const _this = this;\n const work = this.writeQueue[0];\n // destructure the enqueued work.\n const directory = work.directory;\n const locale = work.locale;\n const cb = work.cb;\n const languageFile = this._resolveLocaleFile(directory, locale);\n const serializedLocale = JSON.stringify(this.cache[locale], null, 2);\n shim.fs.writeFile(languageFile, serializedLocale, 'utf-8', function (err) {\n _this.writeQueue.shift();\n if (_this.writeQueue.length > 0)\n _this._processWriteQueue();\n cb(err);\n });\n }\n _readLocaleFile() {\n let localeLookup = {};\n const languageFile = this._resolveLocaleFile(this.directory, this.locale);\n try {\n // When using a bundler such as webpack, readFileSync may not be defined:\n if (shim.fs.readFileSync) {\n localeLookup = JSON.parse(shim.fs.readFileSync(languageFile, 'utf-8'));\n }\n }\n catch (err) {\n if (err instanceof SyntaxError) {\n err.message = 'syntax error in ' + languageFile;\n }\n if (err.code === 'ENOENT')\n localeLookup = {};\n else\n throw err;\n }\n this.cache[this.locale] = localeLookup;\n }\n _resolveLocaleFile(directory, locale) {\n let file = shim.resolve(directory, './', locale + '.json');\n if (this.fallbackToLanguage && !this._fileExistsSync(file) && ~locale.lastIndexOf('_')) {\n // attempt fallback to language only\n const languageFile = shim.resolve(directory, './', locale.split('_')[0] + '.json');\n if (this._fileExistsSync(languageFile))\n file = languageFile;\n }\n return file;\n }\n _fileExistsSync(file) {\n return shim.exists(file);\n }\n}\nexport function y18n(opts, _shim) {\n shim = _shim;\n const y18n = new Y18N(opts);\n return {\n __: y18n.__.bind(y18n),\n __n: y18n.__n.bind(y18n),\n setLocale: y18n.setLocale.bind(y18n),\n getLocale: y18n.getLocale.bind(y18n),\n updateLocale: y18n.updateLocale.bind(y18n),\n locale: y18n.locale\n };\n}\n","import shim from './build/lib/platform-shims/node.js'\nimport { y18n as _y18n } from './build/lib/index.js'\n\nconst y18n = (opts) => {\n return _y18n(opts, shim)\n}\n\nexport default y18n\n","'use strict'\n\nimport { notStrictEqual, strictEqual } from 'assert'\nimport cliui from 'cliui'\nimport escalade from 'escalade/sync'\nimport { inspect } from 'util'\nimport { readFileSync } from 'fs'\nimport { fileURLToPath } from 'url';\nimport Parser from 'yargs-parser'\nimport { basename, dirname, extname, relative, resolve } from 'path'\nimport { getProcessArgvBin } from '../../build/lib/utils/process-argv.js'\nimport { YError } from '../../build/lib/yerror.js'\nimport y18n from 'y18n'\n\nconst REQUIRE_ERROR = 'require is not supported by ESM'\nconst REQUIRE_DIRECTORY_ERROR = 'loading a directory of commands is not supported yet for ESM'\n\nlet __dirname;\ntry {\n __dirname = fileURLToPath(import.meta.url);\n} catch (e) {\n __dirname = process.cwd();\n}\nconst mainFilename = __dirname.substring(0, __dirname.lastIndexOf('node_modules'));\n\nexport default {\n assert: {\n notStrictEqual,\n strictEqual\n },\n cliui,\n findUp: escalade,\n getEnv: (key) => {\n return process.env[key]\n },\n inspect,\n getCallerFile: () => {\n throw new YError(REQUIRE_DIRECTORY_ERROR)\n },\n getProcessArgvBin,\n mainFilename: mainFilename || process.cwd(),\n Parser,\n path: {\n basename,\n dirname,\n extname,\n relative,\n resolve\n },\n process: {\n argv: () => process.argv,\n cwd: process.cwd,\n emitWarning: (warning, type) => process.emitWarning(warning, type),\n execPath: () => process.execPath,\n exit: process.exit,\n nextTick: process.nextTick,\n stdColumns: typeof process.stdout.columns !== 'undefined' ? process.stdout.columns : null\n },\n readFileSync,\n require: () => {\n throw new YError(REQUIRE_ERROR)\n },\n requireDirectory: () => {\n throw new YError(REQUIRE_DIRECTORY_ERROR)\n },\n stringWidth: (str) => {\n return [...str].length\n },\n y18n: y18n({\n directory: resolve(__dirname, '../../../locales'),\n updateFiles: false\n })\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { fieldIdToName } from \"./execute-configs.js\";\nimport { hideBin } from \"yargs/helpers\";\nimport yargsParser from \"yargs-parser\";\nexport const extractConfigFromArgs = (argv, validateConfig, red) => {\n const configPartial = {};\n let missing = false;\n Object.entries(validateConfig).forEach(([key, v]) => {\n const validate = v;\n const value = argv[key];\n const response = validate(value);\n if (response === true) {\n if (value !== null && value !== undefined) {\n configPartial[key] = value;\n }\n }\n else if (value === null || value === undefined) {\n missing = true;\n }\n else {\n missing = true;\n red(`\"${value}\" is not a valid value for \"${key}\"`);\n if (typeof response === \"string\")\n red(response);\n }\n });\n return { configPartial, missing };\n};\nexport const buildGetConfig = (gray, red) => {\n const argv = yargsParser(hideBin(process.argv));\n return async (promptForConfig, validateConfig) => {\n const { configPartial, missing } = extractConfigFromArgs(argv, validateConfig, red);\n if (missing || !Object.values(configPartial).length) {\n return promptForConfig(configPartial);\n }\n else {\n gray(\"Retrieved from the command parameters\");\n Object.entries(configPartial).forEach(([key, value]) => { var _a; return value != null && gray(`${(_a = fieldIdToName[key]) !== null && _a !== void 0 ? _a : key}: ${value}`); });\n return configPartial;\n }\n };\n};\n//# sourceMappingURL=execute-helpers.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nexport const sourceDir = dirname(fileURLToPath(import.meta.url));\n//# sourceMappingURL=sourceDir.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { glob } from \"glob\";\nimport { join as pathJoin } from \"node:path\";\nimport { sourceDir } from \"./sourceDir.js\";\nexport async function getTemplates(template) {\n const sharedFiles = await getFiles(pathJoin(sourceDir, \"..\", \"templates\", \"_shared\", \"**\", \"**\", \"*.*\"));\n const templateFiles = await getFiles(pathJoin(sourceDir, \"..\", \"templates\", template, \"**\", \"**\", \"*.*\"));\n return [...sharedFiles, ...templateFiles];\n}\nasync function getFiles(path) {\n // Starting from glob v8 `\\` is only used as an escape character, and never as a path separator in glob patterns.\n // Glob pattern paths must use forward-slashes as path separators.\n // See https://github.com/isaacs/node-glob/blob/af57da21c7722bb6edb687ccd4ad3b99d3e7a333/changelog.md#80\n const normalizedPath = path.replace(/\\\\/g, \"/\");\n return glob(normalizedPath, { dot: true });\n}\n//# sourceMappingURL=getTemplates.js.map","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { OVERRIDE_DEFAULT_PORT, OVERRIDE_PORT_KEY, displayNameToName, widgetFolderName, } from \"./scaffolding.js\";\nimport { sourceDir } from \"./sourceDir.js\";\nimport { join as joinPath, parse as parsePath } from \"node:path\";\nimport * as fs from \"node:fs/promises\";\nimport { getTemplates } from \"./getTemplates.js\";\nimport mustache from \"mustache\";\nconst templateSuffix = \".mustache\";\n/**\n * Generates a scaffold project of Custom widget for API Managements' Dev Portal.\n *\n * @param widgetConfig - JSON object with data required by DevPortal to handle a widget integration.\n * @param deploymentConfig - JSON object with data for deployment.\n * @param options - JSON object with other data, which will not be stored in the DevPortal.\n */\nexport async function generateProject(widgetConfig, deploymentConfig, options = {}) {\n const { openUrl, configAdvancedTenantId, configAdvancedRedirectUri } = options;\n const openUrlParsed = openUrl ? new URL(openUrl) : null;\n if (openUrlParsed) {\n openUrlParsed.searchParams.append(OVERRIDE_PORT_KEY, String(OVERRIDE_DEFAULT_PORT));\n }\n const name = displayNameToName(widgetConfig.displayName);\n const serverSettings = {\n port: OVERRIDE_DEFAULT_PORT,\n open: openUrlParsed ? openUrlParsed.toString() : true,\n };\n const configAdditional = {\n interactiveBrowserCredentialOptions: { redirectUri: \"http://localhost:1337\" },\n };\n if (configAdvancedTenantId) {\n configAdditional.interactiveBrowserCredentialOptions.tenantId = configAdvancedTenantId;\n }\n if (configAdvancedRedirectUri) {\n configAdditional.interactiveBrowserCredentialOptions.redirectUri = configAdvancedRedirectUri;\n }\n const renderTemplate = async (file) => {\n const isTemplate = file.endsWith(templateSuffix);\n const encoding = file.endsWith(\".ttf\") ? \"binary\" : \"utf8\";\n let fileData = await fs.readFile(file, { encoding });\n if (isTemplate) {\n fileData = mustache.render(fileData, {\n name,\n displayName: widgetConfig.displayName,\n config: JSON.stringify(Object.assign(Object.assign({}, widgetConfig), { name }), null, \"\\t\"),\n configDeploy: JSON.stringify(deploymentConfig, null, \"\\t\"),\n configAdditional: JSON.stringify(configAdditional, null, \"\\t\"),\n serverSettings: JSON.stringify(serverSettings, null, \"\\t\"),\n });\n }\n let relativePath = file;\n if (sourceDir.includes(\"\\\\\")) {\n relativePath = relativePath.replace(/\\//g, \"\\\\\");\n }\n relativePath = relativePath\n .replace(joinPath(sourceDir, \"..\", \"templates\", \"_shared\"), \"\")\n .replace(joinPath(sourceDir, \"..\", \"templates\", widgetConfig.technology), \"\")\n .replace(templateSuffix, \"\");\n const newFilePath = joinPath(process.cwd(), widgetFolderName(name), relativePath);\n const dir = parsePath(newFilePath).dir;\n await fs.mkdir(dir, { recursive: true });\n await fs.writeFile(newFilePath, fileData, { encoding });\n };\n const templates = await getTemplates(widgetConfig.technology);\n for (const file of Object.values(templates)) {\n await renderTemplate(file);\n }\n return;\n}\n//# sourceMappingURL=generateProject.js.map","#!/usr/bin/env node\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { buildGetConfig } from \"./execute-helpers.js\";\nimport { prefixUrlProtocol, promptServiceInformation, promptMiscConfig, promptWidgetConfig, validateDeployConfig, validateMiscConfig, validateWidgetConfig, } from \"./execute-configs.js\";\nimport chalk from \"chalk\";\nimport { generateProject } from \"../generateProject.js\";\nconst log = console.log;\nconst white = (msg) => log(chalk.white(msg));\nconst green = (msg) => log(chalk.green(msg));\nconst red = (msg) => log(chalk.red(msg));\nconst gray = (msg) => log(chalk.gray(msg));\nasync function main() {\n green(\"\\nThis tool generates code scaffold for custom widgets in the Azure API Management’s developer portal. Learn more at https://aka.ms/apimdocs/portal/customwidgets.\\n\");\n const getConfig = buildGetConfig(gray, red);\n white(\"Specify the custom widget configuration.\");\n const widgetConfig = await getConfig(promptWidgetConfig, validateWidgetConfig);\n white(\"Specify the Azure API Management service configuration.\");\n const serviceInformation = await getConfig(promptServiceInformation, validateDeployConfig);\n white(\"Specify other options\");\n const miscConfig = await getConfig(promptMiscConfig, validateMiscConfig);\n if (serviceInformation.resourceId[0] === \"/\") {\n serviceInformation.resourceId = serviceInformation.resourceId.slice(1);\n }\n if (serviceInformation.resourceId.slice(-1) === \"/\") {\n serviceInformation.resourceId = serviceInformation.resourceId.slice(0, -1);\n }\n if (serviceInformation.apiVersion === \"\") {\n delete serviceInformation.apiVersion;\n }\n serviceInformation.managementApiEndpoint = prefixUrlProtocol(serviceInformation.managementApiEndpoint);\n miscConfig.openUrl = miscConfig.openUrl\n ? prefixUrlProtocol(miscConfig.openUrl)\n : miscConfig.openUrl;\n return generateProject(widgetConfig, serviceInformation, miscConfig)\n .then(() => green(\"\\nThe custom widget’s code scaffold has been successfully generated.\\n\"))\n .catch(console.error);\n}\nmain()\n .then(() => process.exit(0))\n .catch((err) => {\n console.error(err);\n process.exit(1);\n});\n//# sourceMappingURL=execute.js.map"],"names":["resolve","statSync","dirname","readdirSync","readFileSync","writeFile","format","y18n","_y18n","shim","__dirname","fileURLToPath","notStrictEqual","strictEqual","cliui","inspect","basename","extname","relative","yargsParser","pathJoin","glob","fs","joinPath","parsePath"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA;AACO,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,GAAG,CAA2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC5D,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA;AACO,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,GAAG,CAAI,CAAA,CAAA,CAAA;AACzC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACO,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,GAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,EAAE,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,KAAK,CAAC;AAC1D,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA;AACO,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,CAAG,CAAA,CAAA,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,kBAAkB,CAAC,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzF,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AACpB,CAAA,CAAA,CAAA,CAAA,CAAK,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAChB,CAAA,CAAA,CAAA,CAAA,CAAK,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAE,CAAA;AACnC,CAAA,CAAA,CAAA,CAAA,CAAK,OAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAE,CAAA,CAAA,CAAA,CAAG,CAAC,CAAC;AACjC,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA;AACO,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAG,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAA4B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAC,CAAC;;AC5B/E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAEO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,aAAa,CAAG,CAAA,CAAA;AAC7B,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,EAAE,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACtC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,EAAE,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC5B,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,EAAE,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACtB,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,EAAE,CAAmM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACnN,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,EAAE,CAAyB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACpD,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,EAAE,CAAwB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACxC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,EAAE,CAAsB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACnC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAsB,EAAE,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACvC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyB,EAAE,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC7C,CAAC;AACM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,iBAAiB,CAAG,CAAA,CAAA,CAAC,KAAK,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,KAAK,CAAC,CAAA,CAAA,CAAG,KAAK,CAAG,CAAA,CAAA,CAAC,QAAQ,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAC;AAClG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAG,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAwB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAG,CAAA,CAAA;AAClI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAG,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAC,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA4E,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAK,CAAA,CAAA,CAAA,CAAA;AAC1M,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA;AACR,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAG,CAAA,CAAA,CAAC,iBAAiB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAC;AACzC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAI,CAAA,CAAA,CAAA;AACnB,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAE,CAAA;AACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAG,CAAA,CAAA,CAAC,iBAAiB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAC;AAC5C,CAAA,CAAA,CAAA,CAAA;AACA,CAAC;AACM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,oBAAoB,CAAG,CAAA,CAAA;AACpC,CAAA,CAAA,CAAA,CAAI,WAAW,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAC,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,WAAW,CAAC;AAC5D,CAAA,CAAA,CAAA,CAAI,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAK,CAAA,CAAA,CAAA,CAAA;AAC3B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC;AAC1E,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAI,CAAA,CAAA,CAAA;AAC7B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC3B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,QAAQ,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAE,CAAA;AAC1C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAI,CAAA,CAAA,CAAA;AACvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,QAAQ,CAAiF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACrG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAA;AACvC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAK,CAAA,CAAA,CAAA,CAAA;AACL,CAAC;AACM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,oBAAoB,CAAG,CAAA,CAAA;AACpC,CAAA,CAAA,CAAA,CAAI,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAK,CAAA,CAAA,CAAA,CAAA;AAC3B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC;AAC1E,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAI,CAAA,CAAA,CAAA;AAC7B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC3B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAA0G,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAChI,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,KAAK,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,IAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AACnD,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAyM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACvN,CAAK,CAAA,CAAA,CAAA,CAAA;AACL,CAAA,CAAA,CAAA,CAAI,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,CAAC,CAAC,KAAK,CAAC;AAClG,CAAC;AACM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,kBAAkB,CAAG,CAAA,CAAA;AAClC,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAK,CAAA,CAAA,CAAA,CAAA;AACxB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AAClB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAI,CAAA,CAAA,CAAA;AACvB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,WAAW,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC;AACxD,CAAK,CAAA,CAAA,CAAA,CAAA;AACL,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAsB,EAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAI,CAAA,CAAA,CAAA;AACnB,CAAK,CAAA,CAAA,CAAA,CAAA;AACL,CAAA,CAAA,CAAA,CAAI,CAAyB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAK,CAAA,CAAA,CAAA,CAAA;AAC1C,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AAClB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAI,CAAA,CAAA,CAAA;AACvB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,WAAW,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC;AACxD,CAAK,CAAA,CAAA,CAAA,CAAA;AACL,CAAC;AACM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAK,CAAA,CAAA,CAAA,CAAA;AACrD,CAAA,CAAA,CAAA,CAAI,MAAM,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,UAAU,CAAC;AACnD,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC3C,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC;AAC3B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACR,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC/B,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC9C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACtD,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACR,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC9B,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC7C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAE,CAAA;AACrB,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,IAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,EAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,OAAO,CAAE,CAAA;AACjD,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,IAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,KAAK,CAAE,CAAA;AAC7C,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,IAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,EAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,YAAY,CAAE,CAAA;AAC3D,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACb,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,OAAO,CAAC;AACf,CAAC;AACM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAwB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAK,CAAA,CAAA,CAAA,CAAA;AAC3D,CAAA,CAAA,CAAA,CAAI,MAAM,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,UAAU,CAAC;AACnD,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC3C,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC;AAC3B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACR,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC9B,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC7C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACrD,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACR,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAuB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACxD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAE,CAAA;AACrB,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAChB,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAA2E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACrG,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAE,CAAsB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACjD,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACjB,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,IAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA8B,EAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,8BAA8B,CAAE,CAAA;AAC/F,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,IAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA6B,EAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,6BAA6B,CAAE,CAAA;AAC7F,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACb,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,EAAE,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC1C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAChE,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACR,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC9B,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,GAAG,CAA+B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC/E,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,OAAO,CAAC;AACf,CAAC;AACM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAK,CAAA,CAAA,CAAA,CAAA;AACnD,CAAA,CAAA,CAAA,CAAI,MAAM,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,UAAU,CAAC;AACnD,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC3C,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC;AAC3B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACR,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC3B,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC1C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAyH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzI,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,EAAE,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC1C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAChD,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACR,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAwB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC1C,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAsB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAA6E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC7F,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAChD,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACR,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAA2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC7C,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAyB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC5D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAA+G,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC/H,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAChD,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,OAAO,CAAC;AACf,CAAC;;ACpJM,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC;AAClC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA;AACrB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,aAAa,CAAC;AACnC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC5B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,CAAE,CAAA;AACrC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,KAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,MAAM,CAAC;AACjD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA;AACA;;ACRA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,sBAAsB,CAAG,CAAA,CAAA;AAClC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,oBAAoB,CAAE,CAAA;AAC9B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAC;AAChB,CAAA,CAAA,CAAA,CAAI,OAAO,CAAC;AACZ;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,oBAAoB,CAAG,CAAA,CAAA;AAChC,CAAA,CAAA,CAAA,CAAI,OAAO,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACjD;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,aAAa,CAAG,CAAA,CAAA;AACzB,CAAA,CAAA,CAAA,CAAI,OAAO,CAAC,CAAC,OAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACtC;AACO,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AAC9B,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAsB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAG,CAAA,CAAA,CAAC,CAAC;AACnD;AACO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,iBAAiB,CAAG,CAAA,CAAA;AACpC,CAAA,CAAA,CAAA,CAAI,OAAO,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAsB,EAAE,CAAC;AACjD;;ACfA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,KAAK,CAAG,CAAA,CAAA;AACd,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAE,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACrB,CAAA,CAAA,CAAA,CAAI,MAAM,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACZ,CAAC;AACD,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,GAAG,CAAC;AACb,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAC;AACf,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,GAAG,CAAC;AAChB,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,GAAG,CAAC;AACP,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,EAAE,CAAC;AAChB,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AACtB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAE,CAAA;AACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AAC/B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAE,CAAA,CAAA,CAAA,CAAG,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,MAAM,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,GAAG,CAAI,CAAA,CAAA,CAAA;AAC1E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AACtB,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AAClB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,IAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAG,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC;AACtC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,WAAW,CAAG,CAAA,CAAA;AAClB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AACtB,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAG,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AACjB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAI,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAE,CAAA;AAC/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAC,EAAE,CAAC;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,IAAI,CAAI,CAAA,CAAA,CAAA,CAAC,oBAAoB,CAAC,CAAA,CAAA,CAAG,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,OAAO,CAAI,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,QAAQ,CAAE,CAAA;AAC5F,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC,CAAC;AAC/C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,IAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAG,CAAA,CAAA,CAAC,GAAG,CAAI,CAAA,CAAA,CAAA;AACrC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,QAAQ,CAAE,CAAA;AACzC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,OAAO,CAAI,CAAA,CAAA,CAAA,CAAC,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC;AAC9C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAG,CAAA,CAAA;AACtB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC;AACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC;AAC5B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAI,CAAA,CAAA,CAAA;AACnB,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAI,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC,KAAK,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC/D,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClC,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA;AACxB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,IAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAA,CAAA,CAAG,IAAI,CAAG,CAAA,CAAA,CAAC,KAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAC;AAChE,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC;AAC/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,OAAO,CAAI,CAAA,CAAA,CAAA;AAChC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,IAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,MAAM,CAAG,CAAA,CAAA,CAAC,IAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA,CAAA,CAAG,eAAe,CAAE,CAAA;AACvF,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAG,CAAA,CAAA,CAAC,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AACvG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC;AACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,OAAO,CAAI,CAAA,CAAA,CAAA;AAChC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAG,CAAC,CAAC,CAAC,CAAA,CAAE,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AAC9C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAC,IAAI,CAAE,CAAA;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,OAAO,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC;AACnD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAC,KAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAI,eAAe,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC/E,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACjB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAC;AACf,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC;AACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAC,CAAC;AAC9C,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACf,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA;AAChB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAI,CAAA,CAAA,CAAA;AAC7C,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,MAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC;AAC3C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAA,CAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC,CAAC,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACrF,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,QAAQ,CAAG,CAAA,CAAA;AACf,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAI,CAAA,CAAA,CAAA;AACjC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,KAAK,CAAC;AACxC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC;AACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACf,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,MAAM,CAAC,CAAA,CAAA,CAAA,CAAI,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AACxC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,GAAG,CAAC,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAI,CAAA,CAAA,CAAA;AAClC,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC;AACvB,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,KAAK,CAAE,CAAA;AAC5B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AACjD,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AACxB,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AACrC,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,EAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,GAAG,CAAG,CAAA,CAAA,CAAC,CAAC,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAA,CAAA,CAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC7D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC7B,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,SAAS,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAC,CAAE,CAAA;AACxD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAG,CAAA,CAAA,CAAC,MAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,CAAA,CAAA,CAAG,CAAC,CAAC;AACxE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,IAAI,CAAG,CAAA,CAAA,CAAC,CAAC,CAAC,CAAC,KAAK,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,IAAI,CAAI,CAAA,CAAA,CAAA,CAAC,IAAI,CAAE,CAAA;AAC1E,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAE,CAAA,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAC,CAAC,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC;AAClD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,EAAE,CAAG,CAAA,CAAA,CAAA,CAAE,CAAC,CAAE,CAAA,CAAA,CAAE,SAAS,CAAC;AAC1C,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,KAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,CAAE,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAE,CAAA;AAC3D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAwB,EAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,EAAE,CAAC,CAAA,CAAA,CAAG,CAAC,CAAC;AAClF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,MAAM,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAI,CAAA,CAAA,CAAA,CAAC,CAAC,CAAE,CAAA,CAAC,EAAE,CAAC,CAAA,CAAE,CAAC,CAAC;AAC9D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAE,CAAA;AACnC,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAC;AACpD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAC,CAAC,CAAC,CAAE,CAAA,CAAA,CAAE,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC;AAClD,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,IAAI,CAAE,CAAA;AACzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAC,CAAC,CAAC,CAAE,CAAA,CAAA,CAAE,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC;AAClD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAE,CAAA;AACpC,CAAoB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC;AACrD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,KAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAC,CAAE,CAAA;AACjD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,GAAG,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,KAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAC,CAAC,CAAC;AACzE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC;AACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC;AACvB,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAG,CAAA,CAAA,CAAC,OAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAE,CAAA,CAAA,CAAE,CAAC;AAC5C,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA;AAC1B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC;AACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC;AACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAK,CAAA,CAAA,CAAA,CAAA;AACpB,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,YAAY,CAAE,CAAA;AACvC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,KAAK,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,KAAK,CAAC;AACzC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAC,CAAC,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC;AAC7D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAC,CAAI,CAAA,CAAA,CAAA;AACxC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC;AACrE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAE,CAAA;AAChC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AACzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,IAAI,CAAE,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA;AACtC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAE,CAAA;AACjD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AACzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,SAAS,CAAE,CAAA,CAAA,CAAA,CAAG,GAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,GAAG,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,QAAQ,CAAE,CAAA;AACvG,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA;AACnB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AACxB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,MAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC;AAC7C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACnB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AAChC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,GAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC;AACjC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AAC3B,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA,CAAE,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC;AACnG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACjB,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,GAAG,CAAG,CAAA,CAAA,CAAC,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC;AAC9C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAE,CAAA;AAC5B,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAG,CAAA,CAAA,CAAC,GAAG,CAAC,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC;AACpF,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,GAAG,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAG,CAAA,CAAA,CAAC,GAAG,CAAC,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC;AACjF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAE,CAAA;AAC7B,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAG,CAAA,CAAA,CAAC,IAAI,CAAC,CAAC,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAE,CAAA,CAAC,CAAC;AAC7E,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,GAAG,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAC,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAE,CAAA,CAAC,CAAC;AAC7E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AACxC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAC,CAAC,CAAE,CAAA;AAC/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,EAAE,CAAC;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,MAAM,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC;AACrC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA,CAAE,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA,CAAE,CAAC,CAAA,CAAE,CAAE,CAAA;AAC5C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,IAAI,CAAI,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,SAAS,CAAE,CAAA;AAC/C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAwB,CAAI,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,EAAE,CAAC;AACrC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAI,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC;AAC9B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC;AACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC;AACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAK,CAAA,CAAA,CAAA,CAAA;AACpB,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA;AACvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,GAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,IAAI,CAAC;AACtC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAE,CAAA;AACzB,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,IAAI,CAAC,CAAA,CAAA,CAAG,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,KAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAC;AAC7E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAE,CAAA;AACxB,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,IAAI,CAAC;AAC1B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA;AACtB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,IAAI,CAAE,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAG,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAC,GAAG,CAAI,CAAA,CAAA,CAAA;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC;AAC/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC;AACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AAC9B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AACvC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,MAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAG,CAAA,CAAA,CAAC,GAAG,CAAI,CAAA,CAAA,CAAA;AACtC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAE,CAAA;AAC3B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,KAAK,CAAE,CAAA;AACvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAG,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AAC3C,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAG,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AAChC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC5B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC;AACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAI,CAAA,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC;AACzE,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,MAAM,CAAC,CAAA,CAAA,CAAG,CAAC,CAAC,CAAC,CAAE,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AACpC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAE,CAAA;AACjC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAG,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAC;AACpB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC;AACV,CAAA,CAAA,CAAA,CAAA;AACA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,SAAS,CAAC,CAAA,CAAA,CAAG,EAAE,CAAE,CAAA,CAAA,CAAE,KAAK,CAAE,CAAA;AACnC,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAE,CAAA;AACpB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC,CAAE,CAAA;AACnC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAE,CAAA;AACrB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAC,CAAA,CAAA,CAAA,CAAI,EAAE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAE,CAAA;AACpC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAK,CAAA,CAAA,CAAA,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAI,CAAA,CAAA,CAAA;AACnB,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,OAAO,CAAE,CAAA;AACb;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA;AACxB,CAAA,CAAA,CAAA,CAAI,MAAM,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,GAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,IAAI,CAAE,CAAA;AACrC,CAAA,CAAA,CAAA,CAAI,MAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAC,IAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,KAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAC;AACrE,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAE,CAAA;AACpB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC;AAC3B,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,OAAO,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACnB;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,cAAc,CAAG,CAAA,CAAA;AAC1B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,QAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,IAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,OAAO,CAAE,CAAA;AACjF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACrC,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,OAAO,CAAE,CAAA;AACb;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,KAAK,CAAE,CAAA;AAChC,CAAA,CAAA,CAAA,CAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAG,CAAA,CAAA,CAAC,IAAI,CAAE,CAAA;AACpB,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,QAAQ,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC;AAC3C,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAE,CAAA;AAC1B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAG,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,KAAK,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC,CAAA,CAAA,CAAG,CAAG,CAAA,CAAA;AACjD,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,OAAO,CAAG,CAAA,CAAA;AACd;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,KAAK,CAAE,CAAA;AACjC,CAAA,CAAA,CAAA,CAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAG,CAAA,CAAA,CAAC,IAAI,CAAE,CAAA;AACpB,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,QAAQ,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC;AAC3C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAE,CAAA;AAC3B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAG,CAAA,CAAA;AAClB,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAC,GAAG,CAAG,CAAA,CAAA;AACpD;AACA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA;AACF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,MAAM,CAAE,CAAA;AACpC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AAClB,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC;AAClB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAE,CAAC,CAAA,CAAA,CAAA,CAAI,KAAK,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,IAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,cAAc,CAAE,CAAA;AAC3F,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,IAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAG,IAAI,CAAC,CAAA,CAAA,CAAA;AAC/D,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC;AACN;;AC9RA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAiD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAwC,CAAE,CAAA,CAAA,CAAA,CAAG,CAAC;AAC3C,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA;AAC/B,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,GAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,EAAE,CAAC;AAChC;AACO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAI,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,KAAK,CAAE,CAAA;AACjC,CAAA,CAAA,CAAA,CAAI,MAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,EAAE,CAAG,CAAA,CAAA,CAAC,GAAG,CAAG,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAE,CAAA,CAAA,CAAE,EAAE,CAAC;AACpD,CAAA,CAAA,CAAA,CAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC;AACxB,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AACpB,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAG,CAAC,CAAE,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAE,CAAA,CAAC,EAAE,CAAE,CAAA;AACzC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAE,CAAA;AAC1C,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,IAAI,CAAI,CAAA,CAAA,CAAA;AAC3B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC;AAChC,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AACtB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAE,CAAG,CAAA,CAAA,CAAC,CAAC;AAC5C,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,OAAO,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAClB;;AC1BA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;AAIe,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AAClC,CAAA,CAAE,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AACrB,CAAA,CAAA,CAAA,CAAI,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA;AAC1B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA;AACtB,CAAK,CAAA,CAAA,CAAA,CAAA;AACL,CAAA,CAAA,CAAA,CAAI,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACb,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACJ,CAAG,CAAA,CAAA;AACH;;ACTe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAE,CAAA;AAC1C,CAAC,CAAA,CAAA,CAAA,CAAI,GAAG,CAAGA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAO,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,KAAK,CAAC;AAC9B,CAAC,CAAA,CAAA,CAAA,CAAI,GAAG,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAGC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC;;AAE/B,CAAC,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,EAAE,CAAE,CAAA;AAC3B,CAAA,CAAE,CAAG,CAAA,CAAA,CAAA,CAAA,CAAGC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC;AACpB,CAAA;;AAEA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,IAAI,CAAE,CAAA;AACd,CAAE,CAAA,CAAA,CAAA,CAAG,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC,CAAA,CAAA,CAAG,EAAEC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAC,CAAC;AACvC,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,GAAG,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAOH,YAAO,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA,CAAA,CAAA,CAAG,CAAC;AACnC,CAAA,CAAE,GAAG,CAAGE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAO,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,GAAG,CAAC;AAC1B,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACnB,CAAA;AACA;;ACdA,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACf,CAAA,CAAA,CAAA,CAAI,EAAE,CAAE,CAAA;AACR,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQE,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACpB,CAAQC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA;AACR,CAAK,CAAA,CAAA,CAAA,CAAA;AACL,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAIC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAIN,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACX,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA;AACtB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA;AACZ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAOC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAC,MAAM,CAAE,CAAA;AAC1C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,GAAG,CAAE,CAAA;AACpB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAK,CAAA,CAAA,CAAA,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA;AACA,CAAC;;AClBD,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA;AACR,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,IAAI,CAAC;AACX,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AACtB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AACzB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,IAAI,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACtD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,OAAO,CAAI,CAAA,CAAA,CAAA,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,SAAS,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,GAAG,CAAI,CAAA,CAAA,CAAA;AAC1F,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,IAAI,CAAI,CAAA,CAAA,CAAA;AACzC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,OAAO,CAAI,CAAA,CAAA,CAAA,CAAC,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,SAAS,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,GAAG,CAAI,CAAA,CAAA,CAAA;AAC/G,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,MAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC;AACxC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AAC5B,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AAChB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,OAAO,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,QAAQ,CAAE,CAAA;AAC9C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAC,CAAC,CAAA,CAAE,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC;AAClE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,MAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAC,KAAK,CAAE,CAAA;AAChC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,GAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACjC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACvD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAE,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAC,GAAG,CAAE,CAAA;AAC3B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,EAAE,CAAG,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,GAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACnC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,KAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC;AACpC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAE,CAAA;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAG,CAAA,CAAA,CAAC,IAAI,CAAI,CAAA,CAAA,CAAA,CAAC,WAAW,CAAE,CAAA;AAC/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAG,CAAG,CAAA,CAAA;AAC9C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC;AAC/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AACnC,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAChB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC;AACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,EAAE,CAAE,CAAA;AAChB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAE,CAAA,CAAC,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAC,GAAG,CAAC,CAAA,CAAA,CAAA,CAAI,CAAG,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAC;AACjG,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,GAAG,CAAG,CAAA,CAAA;AACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC;AAC1D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,MAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAC,KAAK,CAAE,CAAA;AACrC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,MAAM,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAC,KAAK,CAAE,CAAA;AACnC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,MAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAC,KAAK,CAAE,CAAA;AACrC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,GAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACjC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACvD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAE,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAC,GAAG,CAAE,CAAA;AAC3B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,KAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC;AACpC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAE,CAAA;AAClC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,GAAG,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,KAAK,CAAC,CAAA,CAAA,CAAG,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AACpD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAE,CAAA;AAC/C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAC,QAAQ,CAAC;AAC3D,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC;AACzD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAI,CAAA,CAAA,CAAA,CAAC,WAAW,CAAE,CAAA;AACpE,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA;AAChD,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAE,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC7B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,KAAK,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACvB,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC;AAC/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACzC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AACnC,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAChB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC;AACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACb,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,EAAE,CAAE,CAAA;AAChB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAC,GAAG,CAAC;AAC5B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAC,CAAA,CAAA,CAAG,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC;AAC9B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,QAAQ,CAAC;AACjC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAI,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,KAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,EAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,MAAM,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAC;AAClE,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAE,CAAA;AACtB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AAC5B,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,SAAS,CAAG,CAAA,CAAA;AAChB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAI,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AAC1B,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA;AACtB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,KAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC;AACpC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAE,CAAA;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,GAAG,CAAE,CAAA;AAC/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA,CAAA,CAAA,CAAG,CAAC,CAAE,CAAA;AAChE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAI,CAAA,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAC,GAAG,CAAC,CAAA,CAAA,CAAG,CAAG,CAAA,CAAA,CAAC,GAAG,CAAC;AACvD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,cAAc,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAE,CAAA,CAAA,CAAA,CAAG,IAAI,CAAE,CAAA;AACnC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AACpB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,UAAU,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAE,CAAA;AACzC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,GAAG,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAC,CAAA,CAAA,CAAG,CAAC,CAAC;AACnC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,IAAI,CAAI,CAAA,CAAA,CAAA;AACvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,WAAW,CAAE,CAAA;AAC5C,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,IAAI,CAAI,CAAA,CAAA,CAAA;AAC3B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC;AACV,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAI,CAAA,CAAA,CAAA,CAAC,CAAE,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAA,CAAG,CAAC,CAAC,MAAM,CAAC,CAAA,CAAE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAC,CAAC,CAAC,CAAC;AACxE,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAI,CAAA,CAAA,CAAA,CAAC,UAAU,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,KAAK,CAAC;AACxC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAE,CAAA;AACrC,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,kBAAkB,CAAG,CAAA,CAAA;AACzB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA;AAC1B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,IAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC;AACvC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACxC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AAClC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAE,CAAA;AAC1B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAC,kBAAkB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC;AACvE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,MAAM,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAC,SAAS,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,EAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAC;AAC5E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAC,CAAE,CAAA,CAAC,SAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,GAAG,CAAE,CAAA;AAClF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,KAAK,CAAE,CAAA;AACpC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,IAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,UAAU,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,GAAG,CAAC;AAC3C,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAE,CAAA;AAC1C,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAA,CAAG,CAAC;AACnB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC;AACV,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,eAAe,CAAG,CAAA,CAAA;AACtB,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AAC7B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAC,MAAM,CAAC;AACjF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA;AACZ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,IAAI,CAAI,CAAA,CAAA,CAAA,CAAC,CAAE,CAAA,CAAC,YAAY,CAAE,CAAA;AACtC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,YAAY,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAE,CAAA,CAAC,YAAY,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAC;AACtF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,GAAG,CAAE,CAAA;AACpB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAE,CAAA;AAC5C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,GAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAI,KAAK,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACrC,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,GAAG,CAAE,CAAA;AACjC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,MAAM,CAAG,CAAA,CAAA;AACzB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC9C,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,MAAM,CAAE,CAAA;AAC1C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,OAAO,CAAC;AAClE,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,WAAW,CAAC,CAAA,CAAA,CAAG,CAAC,CAAE,CAAA;AAChG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,YAAY,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,MAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAG,CAAA,CAAA,CAAC,CAAC,CAAC,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC;AAC9F,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,IAAI,CAAI,CAAA,CAAA,CAAA,CAAC,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,YAAY,CAAC;AAClD,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACnC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAI,CAAA,CAAA,CAAA;AACnB,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAC,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AAC1B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,OAAO,CAAI,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC;AAChC,CAAA,CAAA,CAAA,CAAA;AACA;AACO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAASM,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,KAAK,CAAE,CAAA;AAClC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA;AAChB,CAAA,CAAA,CAAA,CAAI,MAAM,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,IAAI,CAAI,CAAA,CAAA,CAAA,CAAC,IAAI,CAAC;AAC/B,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACX,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,EAAE,CAAI,CAAA,CAAA,CAAA,CAAC,EAAE,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC;AAC9B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAE,CAAI,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC;AAChC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,EAAE,CAAI,CAAA,CAAA,CAAA,CAAC,SAAS,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC;AAC5C,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,EAAE,CAAI,CAAA,CAAA,CAAA,CAAC,SAAS,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC;AAC5C,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,EAAE,CAAI,CAAA,CAAA,CAAA,CAAC,YAAY,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC;AAClD,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA;AACrB,CAAK,CAAA,CAAA,CAAA,CAAA;AACL;;AC1KA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA;AACvB,CAAA,CAAE,CAAOC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,EAAEC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA;AACzB,CAAA;;ACSA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,aAAa,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACtB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,uBAAuB,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;AAEhC,CAAA,CAAA,CAAA,CAAIC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACb,CAAI,CAAA,CAAA,CAAA;AACJ,CAAA,CAAEA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAGC,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,6PAAe,CAAC;AAC5C,CAAC,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAE,CAAA;AACZ,CAAA,CAAED,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAE,CAAA;AAC3B;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAGA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,SAAS,CAAC,CAAC,CAAEA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAC;;AAEnE,CAAA;AACf,CAAA,CAAE,MAAM,CAAE,CAAA;AACV,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAIE,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAClB,CAAIC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA;AACJ,CAAG,CAAA,CAAA;AACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAEC,CAAK,CAAA;AACP,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,EAAE,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAClB,CAAA,CAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA;AACnB,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAG,CAAC,CAAG,CAAA,CAAA;AAC1B,CAAG,CAAA,CAAA;AACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAEC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACT,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,EAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AACvB,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAuB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC5C,CAAG,CAAA,CAAA;AACH,CAAA,CAAE,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACnB,CAAA,CAAE,YAAY,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,IAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAE,CAAA;AAC7C,CAAA,CAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AACR,CAAA,CAAE,IAAI,CAAE,CAAA;AACR,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAIC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACZ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAId,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACX,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAIe,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACX,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAIC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACZ,CAAIlB,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA;AACJ,CAAG,CAAA,CAAA;AACH,CAAA,CAAE,OAAO,CAAE,CAAA;AACX,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAI,CAAA,CAAA,CAAA;AAC5B,CAAA,CAAA,CAAA,CAAI,CAAG,CAAA,CAAA,CAAA,CAAE,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA;AACpB,CAAA,CAAA,CAAA,CAAI,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,EAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,IAAI,CAAC;AACtE,CAAA,CAAA,CAAA,CAAI,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACpC,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA;AACtB,CAAA,CAAA,CAAA,CAAI,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC9B,CAAA,CAAA,CAAA,CAAI,UAAU,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,MAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,GAAG,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,OAAO,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA;AACzF,CAAG,CAAA,CAAA;AACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAEI,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACd,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,EAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AACjB,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAClC,CAAG,CAAA,CAAA;AACH,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,EAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AAC1B,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAuB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC5C,CAAG,CAAA,CAAA;AACH,CAAA,CAAE,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA;AACxB,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA;AACpB,CAAG,CAAA,CAAA;AACH,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC;AACb,CAAA,CAAA,CAAA,CAAI,SAAS,CAAEJ,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAO,CAACU,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,kBAAkB,CAAC;AACrD,CAAA,CAAA,CAAA,CAAI,WAAW,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA;AACjB,CAAG,CAAA,CAAA;AACH,CAAA,CAAA;;ACxEA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAIO,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,GAAG,CAAC,CAAA,CAAA,CAAA,CAAI,EAAE,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA;AACpE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AAC5B,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA;AACvB,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,cAAc,CAAC,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA,CAAC,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA;AACzD,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC;AAC1B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,MAAM,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC;AAC/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,MAAM,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,KAAK,CAAC;AACxC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AAC/B,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,KAAK,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,IAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,SAAS,CAAE,CAAA;AACvD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAC,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA;AAC1C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,KAAK,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,IAAI,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,SAAS,CAAE,CAAA;AACxD,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,GAAG,CAAI,CAAA,CAAA,CAAA;AAC1B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACb,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,GAAG,CAAI,CAAA,CAAA,CAAA;AAC1B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAG,CAAA,CAAA,CAAC,CAAC,CAAC,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA4B,CAAE,CAAA,CAAA,CAAA,CAAG,CAAC,CAAC,CAAC,CAAC;AAC/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC5C,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC;AAC7B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC;AACN,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,OAAO,CAAE,CAAA;AACrC,CAAC;AACM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,cAAc,CAAG,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,GAAG,CAAK,CAAA,CAAA,CAAA,CAAA;AAC7C,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAGS,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAC;AACnD,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,cAAc,CAAK,CAAA,CAAA,CAAA,CAAA;AACtD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,OAAO,CAAE,CAAA,CAAA,CAAA,CAAG,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,GAAG,CAAC;AAC3F,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAI,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAE,CAAA;AAC7D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC;AACjD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACb,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAuC,CAAC;AACzD,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC,CAAG,CAAA,CAAA,CAAA,CAAE,KAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAC,CAAC,CAAE,CAAA,CAAC,CAAE,CAAA,CAAA,CAAA,CAAG,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA,CAAA,CAAA,CAAG,CAAG,CAAA,CAAA,CAAC,CAAE,CAAA,CAAA,CAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC,CAAC,CAAA,CAAE,CAAC;AAC7L,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,OAAO,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAChC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAK,CAAA,CAAA,CAAA,CAAA;AACL,CAAC;;AC1CD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAGA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACO,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,GAAGjB,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAACS,sBAAa,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAC,CAAC;;ACNhE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAIO,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAE,CAAA;AAC7C,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,WAAW,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,QAAQ,CAACS,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAQ,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,SAAS,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC;AAC5G,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,aAAa,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,QAAQ,CAACA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAQ,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,QAAQ,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC;AAC7G,CAAA,CAAA,CAAA,CAAI,OAAO,CAAC,CAAA,CAAA,CAAG,WAAW,CAAE,CAAA,CAAA,CAAA,CAAG,aAAa,CAAC;AAC7C;AACA,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA;AAC9B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAC,OAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAE,CAAA,CAAA,CAAA,CAAG,CAAC;AACnD,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAOC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,EAAE,CAAG,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC;AAC9C;;AChBA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAOA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAClC,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA;AACO,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,gBAAgB,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAG,CAAA,CAAA,CAAA,CAAE,CAAE,CAAA;AACpF,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,EAAE,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,sBAAsB,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyB,CAAE,CAAA,CAAA,CAAA,CAAG,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAClF,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA;AAC3D,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,aAAa,CAAE,CAAA;AACvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC;AAC3F,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,IAAI,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,CAAC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,WAAW,CAAC;AAC5D,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,cAAc,CAAG,CAAA,CAAA;AAC3B,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACnC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,EAAE,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,aAAa,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAE,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA;AAC7D,CAAK,CAAA,CAAA,CAAA,CAAA;AACL,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,gBAAgB,CAAG,CAAA,CAAA;AAC7B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,mCAAmC,CAAE,CAAA,CAAA,CAAE,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,uBAAuB,CAAE,CAAA;AACrF,CAAK,CAAA,CAAA,CAAA,CAAA;AACL,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,sBAAsB,CAAE,CAAA;AAChC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,gBAAgB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,GAAG,CAAsB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC9F,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,yBAAyB,CAAE,CAAA;AACnC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,gBAAgB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,GAAG,CAAyB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACpG,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,IAAI,CAAK,CAAA,CAAA,CAAA,CAAA;AAC3C,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAU,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,cAAc,CAAC;AACxD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAG,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA;AAClE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAMC,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,EAAE,CAAC;AAC5D,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,UAAU,CAAE,CAAA;AACxB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,QAAQ,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,QAAQ,CAAE,CAAA;AACjD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAI,CAAA,CAAA,CAAA;AACpB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACrD,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAA,CAAE,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAC,CAAA,CAAE,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAC,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC;AAC5G,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC;AAC1E,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC;AAC9E,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC;AAC1E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC;AACd,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAI,CAAA,CAAA,CAAA;AAC/B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,IAAI,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,QAAQ,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAE,CAAA;AACtC,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,OAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC;AAC5D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,YAAY,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAACC,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,EAAE,CAAE,CAAA;AAC1E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAACA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,SAAS,CAAE,CAAA,CAAA,CAAA,CAAA,CAAI,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,EAAE,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,EAAE,CAAE,CAAA;AACxF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,EAAE,CAAC;AACxC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,MAAM,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAGA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,OAAO,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA,CAAA,CAAE,gBAAgB,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAE,YAAY,CAAC;AACzF,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,GAAG,CAAGC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAS,CAAC,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAG,CAAA,CAAA;AAC9C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAMF,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAG,CAAE,CAAA,CAAA,CAAE,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC;AAChD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAMA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAE,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAE,CAAA,CAAA,CAAE,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAC;AAC/D,CAAK,CAAA,CAAA,CAAA,CAAA;AACL,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,SAAS,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,YAAY,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAC;AACjE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAE,CAAA;AACjD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC;AAClC,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACJ;;AC7DA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAG,CAAA,CAAA;AACvB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAG,CAAC,CAAC;AAC5C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAG,CAAC,CAAC;AAC5C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAG,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAG,CAAC,CAAC;AACxC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAG,CAAC,CAAC;AAC1C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,IAAI,CAAG,CAAA,CAAA;AACtB,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAsK,CAAC;AACjL,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,SAAS,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAE,GAAG,CAAC;AAC/C,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0C,CAAC;AACrD,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,YAAY,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,SAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,CAAC;AAClF,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyD,CAAC;AACpE,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,kBAAkB,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,SAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAwB,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAoB,CAAC;AAC9F,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAuB,CAAC;AAClC,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,UAAU,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,SAAS,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAC;AAC5E,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,kBAAkB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAC,CAAC,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AAClD,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAC,CAAC;AAC9E,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAC,CAAC,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA;AACzD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,kBAAkB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAC,CAAC,CAAE,CAAA,CAAC,CAAC,CAAC;AAClF,CAAA,CAAA,CAAA,CAAA;AACA,CAAA,CAAA,CAAA,CAAI,IAAI,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAE,CAAE,CAAA;AAC9C,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC5C,CAAA,CAAA,CAAA,CAAA;AACA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAC,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,iBAAiB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,CAAC;AAC1G,CAAA,CAAA,CAAA,CAAI,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,UAAU,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACpC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC9C,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC5B,CAAA,CAAA,CAAA,CAAI,OAAO,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,YAAY,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkB,EAAE,CAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACvE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,IAAI,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,wEAAwE,CAAC;AACnG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,KAAK,CAAC;AAC7B;AACA,CAAI,CAAA,CAAA,CAAA,CAAA;AACJ,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC;AAC/B,CAAA,CAAA,CAAA,CAAA,CAAK,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,CAAC,CAAA,CAAA,CAAG,CAAK,CAAA,CAAA,CAAA,CAAA;AACpB,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAK,CAAA,CAAA,CAAA,CAAA,CAAC,GAAG,CAAC;AACtB,CAAA,CAAA,CAAA,CAAI,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,CAAI,CAAA,CAAA,CAAA,CAAC,CAAC,CAAC;AACnB,CAAC,CAAC","x_google_ignoreList":[2,3,4,5,6,7,8,9,10,11]} \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md index 818178fa71ea..2dc61effea3e 100644 --- a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md +++ b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md @@ -1,5 +1,21 @@ # Release History +## 9.2.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + +## 9.2.0 (2024-11-25) + +### Features Added + +- Remove xmlSerializer and isXML to fix xml value response serialize issue + ## 9.1.0 (2023-08-23) ### Features Added diff --git a/sdk/apimanagement/arm-apimanagement/assets.json b/sdk/apimanagement/arm-apimanagement/assets.json index a1e091a54680..80061f781668 100644 --- a/sdk/apimanagement/arm-apimanagement/assets.json +++ b/sdk/apimanagement/arm-apimanagement/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/apimanagement/arm-apimanagement", - "Tag": "js/apimanagement/arm-apimanagement_9b28d8e55a" + "Tag": "js/apimanagement/arm-apimanagement_3a115b4a61" } diff --git a/sdk/apimanagement/arm-apimanagement/package.json b/sdk/apimanagement/arm-apimanagement/package.json index 7b167bdf7afb..12804891b574 100644 --- a/sdk/apimanagement/arm-apimanagement/package.json +++ b/sdk/apimanagement/arm-apimanagement/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ApiManagementClient.", - "version": "9.1.0", + "version": "9.2.1", "engines": { "node": ">=18.0.0" }, diff --git a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts index 7907189618aa..efdc68f7b9fb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts @@ -255,7 +255,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-apimanagement/9.1.0`; + const packageDetails = `azsdk-js-arm-apimanagement/9.2.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts index 9bcc792f5dd5..763231e75669 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts @@ -151,8 +151,6 @@ export class ApiPolicyImpl implements ApiPolicy { } } // Operation Specifications -const xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true); - const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { @@ -225,8 +223,7 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.policyId ], headerParameters: [Parameters.accept1], - isXML: true, - serializer: xmlSerializer + serializer }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: diff --git a/sdk/appconfiguration/app-configuration/vitest.browser.config.ts b/sdk/appconfiguration/app-configuration/vitest.browser.config.ts index 3e5953e5cc8d..8d2b7d60a8ff 100644 --- a/sdk/appconfiguration/app-configuration/vitest.browser.config.ts +++ b/sdk/appconfiguration/app-configuration/vitest.browser.config.ts @@ -10,7 +10,7 @@ export default mergeConfig( defineConfig({ test: { fileParallelism: false, - testTimeout: 50000, + testTimeout: 60000, include: [ "dist-test/browser/test/**/*.spec.js", ], diff --git a/sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md b/sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md index 74fcf770edb3..8bd9e49303e2 100644 --- a/sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md +++ b/sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md @@ -1,15 +1,31 @@ # Release History - -## 4.0.1 (Unreleased) - + +## 4.1.0 (2024-11-11) + ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added operation group Snapshots + - Added Interface DataPlaneProxyProperties + - Added Interface ErrorDetail + - Added Interface ErrorResponseAutoGenerated + - Added Interface KeyValueFilter + - Added Interface Snapshot + - Added Interface SnapshotsCreateOptionalParams + - Added Interface SnapshotsGetOptionalParams + - Added Type Alias AuthenticationMode + - Added Type Alias CompositionType + - Added Type Alias PrivateLinkDelegation + - Added Type Alias SnapshotsCreateResponse + - Added Type Alias SnapshotsGetResponse + - Added Type Alias SnapshotStatus + - Interface ConfigurationStore has a new optional parameter dataPlaneProxy + - Interface ConfigurationStoreUpdateParameters has a new optional parameter dataPlaneProxy + - Added Enum KnownAuthenticationMode + - Added Enum KnownCompositionType + - Added Enum KnownPrivateLinkDelegation + - Added Enum KnownSnapshotStatus + + ## 4.0.0 (2023-04-06) ### Features Added @@ -66,4 +82,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/appconfiguration/arm-appconfiguration/LICENSE b/sdk/appconfiguration/arm-appconfiguration/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/appconfiguration/arm-appconfiguration/LICENSE +++ b/sdk/appconfiguration/arm-appconfiguration/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/appconfiguration/arm-appconfiguration/_meta.json b/sdk/appconfiguration/arm-appconfiguration/_meta.json index 5b947e9863f0..4b3af27f2d8a 100644 --- a/sdk/appconfiguration/arm-appconfiguration/_meta.json +++ b/sdk/appconfiguration/arm-appconfiguration/_meta.json @@ -1,8 +1,8 @@ { - "commit": "8725e0700974d2c8cba436b5696728ebc5a80f1b", + "commit": "2d4992bd73955a93f972ba6c476e980e7e16a992", "readme": "specification/appconfiguration/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\appconfiguration\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\appconfiguration\\resource-manager\\readme.md --use=@autorest/typescript@6.0.27 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.10" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.15", + "use": "@autorest/typescript@6.0.27" } \ No newline at end of file diff --git a/sdk/appconfiguration/arm-appconfiguration/assets.json b/sdk/appconfiguration/arm-appconfiguration/assets.json index 74657d31aa88..d88f413fd161 100644 --- a/sdk/appconfiguration/arm-appconfiguration/assets.json +++ b/sdk/appconfiguration/arm-appconfiguration/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/appconfiguration/arm-appconfiguration", - "Tag": "js/appconfiguration/arm-appconfiguration_1babe9e8b6" + "Tag": "js/appconfiguration/arm-appconfiguration_d393624d99" } diff --git a/sdk/appconfiguration/arm-appconfiguration/package.json b/sdk/appconfiguration/arm-appconfiguration/package.json index f1a10686f37b..b1ec2befd5bb 100644 --- a/sdk/appconfiguration/arm-appconfiguration/package.json +++ b/sdk/appconfiguration/arm-appconfiguration/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AppConfigurationManagementClient.", - "version": "4.0.1", + "version": "4.1.0", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-client": "^1.7.0", - "@azure/core-lro": "^2.5.0", + "@azure/core-lro": "^2.5.4", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -28,18 +28,24 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-appconfiguration.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@microsoft/api-extractor": "^7.31.1", + "mkdirp": "^3.0.1", + "typescript": "~5.5.3", + "uglify-js": "^3.4.9", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", + "@azure/identity": "^4.2.1", + "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^1.1.0", + "mocha": "^10.0.0", "@types/mocha": "^10.0.0", - "@types/node": "^18.0.0", + "tsx": "^4.7.1", + "@types/chai": "^4.2.8", "chai": "^4.2.0", - "dotenv": "^16.0.0", - "mocha": "^10.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "cross-env": "^7.0.2", + "@types/node": "^18.0.0", + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -67,29 +73,28 @@ ], "scripts": { "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "build:browser": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "dev-tool run extract-api", + "lint": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", - "build:samples": "echo skipped.", + "build:browser": "echo skipped", "build:test": "echo skipped", + "build:samples": "echo skipped.", "check-format": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", - "extract-api": "dev-tool run extract-api", "format": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "lint": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "prepack": "npm run build", "test": "npm run integration-test", - "test:browser": "echo skipped", "test:node": "echo skipped", + "test:browser": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", - "update-snippets": "echo skipped" + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -110,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appconfiguration?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/appconfiguration/arm-appconfiguration/review/arm-appconfiguration.api.md b/sdk/appconfiguration/arm-appconfiguration/review/arm-appconfiguration.api.md index 2ffe18a0e8d5..1b4fcf594fd1 100644 --- a/sdk/appconfiguration/arm-appconfiguration/review/arm-appconfiguration.api.md +++ b/sdk/appconfiguration/arm-appconfiguration/review/arm-appconfiguration.api.md @@ -49,6 +49,8 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient { // (undocumented) replicas: Replicas; // (undocumented) + snapshots: Snapshots; + // (undocumented) subscriptionId: string; } @@ -59,12 +61,18 @@ export interface AppConfigurationManagementClientOptionalParams extends coreClie endpoint?: string; } +// @public +export type AuthenticationMode = string; + // @public export interface CheckNameAvailabilityParameters { name: string; type: ConfigurationResourceType; } +// @public +export type CompositionType = string; + // @public export type ConfigurationResourceType = string; @@ -72,6 +80,7 @@ export type ConfigurationResourceType = string; export interface ConfigurationStore extends TrackedResource { createMode?: CreateMode; readonly creationDate?: Date; + dataPlaneProxy?: DataPlaneProxyProperties; disableLocalAuth?: boolean; enablePurgeProtection?: boolean; encryption?: EncryptionProperties; @@ -222,6 +231,7 @@ export type ConfigurationStoresUpdateResponse = ConfigurationStore; // @public export interface ConfigurationStoreUpdateParameters { + dataPlaneProxy?: DataPlaneProxyProperties; disableLocalAuth?: boolean; enablePurgeProtection?: boolean; encryption?: EncryptionProperties; @@ -242,6 +252,12 @@ export type CreatedByType = string; // @public export type CreateMode = "Recover" | "Default"; +// @public +export interface DataPlaneProxyProperties { + authenticationMode?: AuthenticationMode; + privateLinkDelegation?: PrivateLinkDelegation; +} + // @public export interface DeletedConfigurationStore { readonly configurationStoreId?: string; @@ -274,6 +290,15 @@ export interface ErrorAdditionalInfo { readonly type?: string; } +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + // @public export interface ErrorDetails { readonly additionalInfo?: ErrorAdditionalInfo[]; @@ -286,6 +311,11 @@ export interface ErrorResponse { error?: ErrorDetails; } +// @public +export interface ErrorResponseAutoGenerated { + error?: ErrorDetail; +} + // @public export function getContinuationToken(page: unknown): string | undefined; @@ -309,6 +339,12 @@ export interface KeyValue { value?: string; } +// @public +export interface KeyValueFilter { + key: string; + label?: string; +} + // @public export interface KeyValueListResult { nextLink?: string; @@ -356,6 +392,18 @@ export enum KnownActionsRequired { Recreate = "Recreate" } +// @public +export enum KnownAuthenticationMode { + Local = "Local", + PassThrough = "Pass-through" +} + +// @public +export enum KnownCompositionType { + Key = "Key", + KeyLabel = "Key_Label" +} + // @public export enum KnownConfigurationResourceType { MicrosoftAppConfigurationConfigurationStores = "Microsoft.AppConfiguration/configurationStores" @@ -385,6 +433,12 @@ export enum KnownIdentityType { UserAssigned = "UserAssigned" } +// @public +export enum KnownPrivateLinkDelegation { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownProvisioningState { Canceled = "Canceled", @@ -410,6 +464,14 @@ export enum KnownReplicaProvisioningState { Succeeded = "Succeeded" } +// @public +export enum KnownSnapshotStatus { + Archived = "Archived", + Failed = "Failed", + Provisioning = "Provisioning", + Ready = "Ready" +} + // @public export interface LogSpecification { blobDuration?: string; @@ -584,6 +646,9 @@ export interface PrivateEndpointConnectionsListByConfigurationStoreOptionalParam // @public export type PrivateEndpointConnectionsListByConfigurationStoreResponse = PrivateEndpointConnectionListResult; +// @public +export type PrivateLinkDelegation = string; + // @public export interface PrivateLinkResource { readonly groupId?: string; @@ -745,6 +810,52 @@ export interface Sku { name: string; } +// @public +export interface Snapshot { + compositionType?: CompositionType; + readonly created?: Date; + readonly etag?: string; + readonly expires?: Date; + filters?: KeyValueFilter[]; + readonly id?: string; + readonly itemsCount?: number; + readonly name?: string; + readonly provisioningState?: ProvisioningState; + retentionPeriod?: number; + readonly size?: number; + readonly status?: SnapshotStatus; + tags?: { + [propertyName: string]: string; + }; + readonly type?: string; +} + +// @public +export interface Snapshots { + beginCreate(resourceGroupName: string, configStoreName: string, snapshotName: string, body: Snapshot, options?: SnapshotsCreateOptionalParams): Promise, SnapshotsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, configStoreName: string, snapshotName: string, body: Snapshot, options?: SnapshotsCreateOptionalParams): Promise; + get(resourceGroupName: string, configStoreName: string, snapshotName: string, options?: SnapshotsGetOptionalParams): Promise; +} + +// @public +export interface SnapshotsCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type SnapshotsCreateResponse = Snapshot; + +// @public +export interface SnapshotsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SnapshotsGetResponse = Snapshot; + +// @public +export type SnapshotStatus = string; + // @public export interface SystemData { createdAt?: Date; diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresCreateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresCreateSample.ts index 1a05e3d634fc..b3a1734b0308 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresCreateSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ConfigurationStore, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a configuration store with the specified parameters. * * @summary Creates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreate.json */ async function configurationStoresCreate() { const subscriptionId = @@ -33,17 +33,17 @@ async function configurationStoresCreate() { const configStoreCreationParameters: ConfigurationStore = { location: "westus", sku: { name: "Standard" }, - tags: { myTag: "myTagValue" } + tags: { myTag: "myTagValue" }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginCreateAndWait( resourceGroupName, configStoreName, - configStoreCreationParameters + configStoreCreationParameters, ); console.log(result); } @@ -52,7 +52,41 @@ async function configurationStoresCreate() { * This sample demonstrates how to Creates a configuration store with the specified parameters. * * @summary Creates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithDataPlaneProxy.json + */ +async function configurationStoresCreateWithDataPlaneProxy() { + const subscriptionId = + process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || + "c80fb759-c965-4c6a-9110-9b2b2d038882"; + const resourceGroupName = + process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup"; + const configStoreName = "contoso"; + const configStoreCreationParameters: ConfigurationStore = { + dataPlaneProxy: { + authenticationMode: "Pass-through", + privateLinkDelegation: "Enabled", + }, + location: "westus", + sku: { name: "Standard" }, + }; + const credential = new DefaultAzureCredential(); + const client = new AppConfigurationManagementClient( + credential, + subscriptionId, + ); + const result = await client.configurationStores.beginCreateAndWait( + resourceGroupName, + configStoreName, + configStoreCreationParameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates a configuration store with the specified parameters. + * + * @summary Creates a configuration store with the specified parameters. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithIdentity.json */ async function configurationStoresCreateWithIdentity() { const subscriptionId = @@ -65,22 +99,23 @@ async function configurationStoresCreateWithIdentity() { identity: { type: "SystemAssigned, UserAssigned", userAssignedIdentities: { - "/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2": {} - } + "/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2": + {}, + }, }, location: "westus", sku: { name: "Standard" }, - tags: { myTag: "myTagValue" } + tags: { myTag: "myTagValue" }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginCreateAndWait( resourceGroupName, configStoreName, - configStoreCreationParameters + configStoreCreationParameters, ); console.log(result); } @@ -89,7 +124,7 @@ async function configurationStoresCreateWithIdentity() { * This sample demonstrates how to Creates a configuration store with the specified parameters. * * @summary Creates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json */ async function configurationStoresCreateWithLocalAuthDisabled() { const subscriptionId = @@ -101,23 +136,24 @@ async function configurationStoresCreateWithLocalAuthDisabled() { const configStoreCreationParameters: ConfigurationStore = { disableLocalAuth: true, location: "westus", - sku: { name: "Standard" } + sku: { name: "Standard" }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginCreateAndWait( resourceGroupName, configStoreName, - configStoreCreationParameters + configStoreCreationParameters, ); console.log(result); } async function main() { configurationStoresCreate(); + configurationStoresCreateWithDataPlaneProxy(); configurationStoresCreateWithIdentity(); configurationStoresCreateWithLocalAuthDisabled(); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresDeleteSample.ts index 86a330f57591..c149af242835 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresDeleteSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a configuration store. * * @summary Deletes a configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDelete.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDelete.json */ async function configurationStoresDelete() { const subscriptionId = @@ -30,11 +30,11 @@ async function configurationStoresDelete() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginDeleteAndWait( resourceGroupName, - configStoreName + configStoreName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetDeletedSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetDeletedSample.ts index 203d01a9248b..f47f3d55a5b2 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetDeletedSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetDeletedSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a deleted Azure app configuration store. * * @summary Gets a deleted Azure app configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresGet.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresGet.json */ async function deletedConfigurationStoresGet() { const subscriptionId = @@ -29,11 +29,11 @@ async function deletedConfigurationStoresGet() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.getDeleted( location, - configStoreName + configStoreName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetSample.ts index 51e92ec5db02..b2e25845d93e 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified configuration store. * * @summary Gets the properties of the specified configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGet.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGet.json */ async function configurationStoresGet() { const subscriptionId = @@ -30,11 +30,11 @@ async function configurationStoresGet() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.get( resourceGroupName, - configStoreName + configStoreName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListByResourceGroupSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListByResourceGroupSample.ts index 0ac5048e2cb9..7e1ed8740967 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListByResourceGroupSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the configuration stores for a given resource group. * * @summary Lists the configuration stores for a given resource group. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListByResourceGroup.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListByResourceGroup.json */ async function configurationStoresListByResourceGroup() { const subscriptionId = @@ -29,11 +29,11 @@ async function configurationStoresListByResourceGroup() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.configurationStores.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListDeletedSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListDeletedSample.ts index 6e717825c34c..7f04f9733842 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListDeletedSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListDeletedSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the deleted configuration stores in a subscription. * * @summary Gets information about the deleted configuration stores in a subscription. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresList.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresList.json */ async function deletedConfigurationStoresList() { const subscriptionId = @@ -27,7 +27,7 @@ async function deletedConfigurationStoresList() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.configurationStores.listDeleted()) { diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListKeysSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListKeysSample.ts index 4d4e1269b0d7..65c041ac40ab 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListKeysSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the access key for the specified configuration store. * * @summary Lists the access key for the specified configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListKeys.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListKeys.json */ async function configurationStoresListKeys() { const subscriptionId = @@ -30,12 +30,12 @@ async function configurationStoresListKeys() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.configurationStores.listKeys( resourceGroupName, - configStoreName + configStoreName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListSample.ts index 7ec77c384bde..7b2563d24b61 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the configuration stores for a given subscription. * * @summary Lists the configuration stores for a given subscription. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresList.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresList.json */ async function configurationStoresList() { const subscriptionId = @@ -27,7 +27,7 @@ async function configurationStoresList() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.configurationStores.list()) { diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresPurgeDeletedSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresPurgeDeletedSample.ts index b6611a96ef5d..f81d2b22ba4a 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresPurgeDeletedSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresPurgeDeletedSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Permanently deletes the specified configuration store. * * @summary Permanently deletes the specified configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresPurge.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresPurge.json */ async function purgeADeletedConfigurationStore() { const subscriptionId = @@ -29,11 +29,11 @@ async function purgeADeletedConfigurationStore() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginPurgeDeletedAndWait( location, - configStoreName + configStoreName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresRegenerateKeySample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresRegenerateKeySample.ts index 2d0be351ab26..c568f8847e72 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresRegenerateKeySample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresRegenerateKeySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RegenerateKeyParameters, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates an access key for the specified configuration store. * * @summary Regenerates an access key for the specified configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresRegenerateKey.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresRegenerateKey.json */ async function configurationStoresRegenerateKey() { const subscriptionId = @@ -31,17 +31,17 @@ async function configurationStoresRegenerateKey() { process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup"; const configStoreName = "contoso"; const regenerateKeyParameters: RegenerateKeyParameters = { - id: "439AD01B4BE67DB1" + id: "439AD01B4BE67DB1", }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.regenerateKey( resourceGroupName, configStoreName, - regenerateKeyParameters + regenerateKeyParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresUpdateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresUpdateSample.ts index 80aa8c799e13..51c1e10cf17a 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresUpdateSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ConfigurationStoreUpdateParameters, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a configuration store with the specified parameters. * * @summary Updates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdate.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdate.json */ async function configurationStoresUpdate() { const subscriptionId = @@ -32,17 +32,17 @@ async function configurationStoresUpdate() { const configStoreName = "contoso"; const configStoreUpdateParameters: ConfigurationStoreUpdateParameters = { sku: { name: "Standard" }, - tags: { category: "Marketing" } + tags: { category: "Marketing" }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginUpdateAndWait( resourceGroupName, configStoreName, - configStoreUpdateParameters + configStoreUpdateParameters, ); console.log(result); } @@ -51,7 +51,7 @@ async function configurationStoresUpdate() { * This sample demonstrates how to Updates a configuration store with the specified parameters. * * @summary Updates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json */ async function configurationStoresUpdateDisableLocalAuth() { const subscriptionId = @@ -62,17 +62,17 @@ async function configurationStoresUpdateDisableLocalAuth() { const configStoreName = "contoso"; const configStoreUpdateParameters: ConfigurationStoreUpdateParameters = { disableLocalAuth: true, - sku: { name: "Standard" } + sku: { name: "Standard" }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginUpdateAndWait( resourceGroupName, configStoreName, - configStoreUpdateParameters + configStoreUpdateParameters, ); console.log(result); } @@ -81,7 +81,7 @@ async function configurationStoresUpdateDisableLocalAuth() { * This sample demonstrates how to Updates a configuration store with the specified parameters. * * @summary Updates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateWithIdentity.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdateWithIdentity.json */ async function configurationStoresUpdateWithIdentity() { const subscriptionId = @@ -94,21 +94,22 @@ async function configurationStoresUpdateWithIdentity() { identity: { type: "SystemAssigned, UserAssigned", userAssignedIdentities: { - "/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2": {} - } + "/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2": + {}, + }, }, sku: { name: "Standard" }, - tags: { category: "Marketing" } + tags: { category: "Marketing" }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginUpdateAndWait( resourceGroupName, configStoreName, - configStoreUpdateParameters + configStoreUpdateParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesCreateOrUpdateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesCreateOrUpdateSample.ts index 821a585f541e..6460b8be0181 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesCreateOrUpdateSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesCreateOrUpdateSample.ts @@ -11,7 +11,7 @@ import { KeyValue, KeyValuesCreateOrUpdateOptionalParams, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -19,10 +19,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Creates a key-value. + * This sample demonstrates how to Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. * - * @summary Creates a key-value. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateKeyValue.json + * @summary Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateKeyValue.json */ async function keyValuesCreateOrUpdate() { const subscriptionId = @@ -34,19 +34,19 @@ async function keyValuesCreateOrUpdate() { const keyValueName = "myKey$myLabel"; const keyValueParameters: KeyValue = { tags: { tag1: "tagValue1", tag2: "tagValue2" }, - value: "myValue" + value: "myValue", }; const options: KeyValuesCreateOrUpdateOptionalParams = { keyValueParameters }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.keyValues.createOrUpdate( resourceGroupName, configStoreName, keyValueName, - options + options, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesDeleteSample.ts index 3317449c1381..cdb66d69878e 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesDeleteSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesDeleteSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Deletes a key-value. + * This sample demonstrates how to Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. * - * @summary Deletes a key-value. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteKeyValue.json + * @summary Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteKeyValue.json */ async function keyValuesDelete() { const subscriptionId = @@ -31,12 +31,12 @@ async function keyValuesDelete() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.keyValues.beginDeleteAndWait( resourceGroupName, configStoreName, - keyValueName + keyValueName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesGetSample.ts index 3d5d3b6f3a2e..394a0d1bd248 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesGetSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesGetSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the properties of the specified key-value. + * This sample demonstrates how to Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. * - * @summary Gets the properties of the specified key-value. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetKeyValue.json + * @summary Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetKeyValue.json */ async function keyValuesGet() { const subscriptionId = @@ -31,12 +31,12 @@ async function keyValuesGet() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.keyValues.get( resourceGroupName, configStoreName, - keyValueName + keyValueName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsCheckNameAvailabilitySample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsCheckNameAvailabilitySample.ts index 83051583eef3..42c6f45b0181 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsCheckNameAvailabilitySample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Checks whether the configuration store name is available for use. * * @summary Checks whether the configuration store name is available for use. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameAvailable.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameAvailable.json */ async function configurationStoresCheckNameAvailable() { const subscriptionId = @@ -29,15 +29,15 @@ async function configurationStoresCheckNameAvailable() { "c80fb759-c965-4c6a-9110-9b2b2d038882"; const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = { name: "contoso", - type: "Microsoft.AppConfiguration/configurationStores" + type: "Microsoft.AppConfiguration/configurationStores", }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.operations.checkNameAvailability( - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } @@ -46,7 +46,7 @@ async function configurationStoresCheckNameAvailable() { * This sample demonstrates how to Checks whether the configuration store name is available for use. * * @summary Checks whether the configuration store name is available for use. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameNotAvailable.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameNotAvailable.json */ async function configurationStoresCheckNameNotAvailable() { const subscriptionId = @@ -54,15 +54,15 @@ async function configurationStoresCheckNameNotAvailable() { "c80fb759-c965-4c6a-9110-9b2b2d038882"; const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = { name: "contoso", - type: "Microsoft.AppConfiguration/configurationStores" + type: "Microsoft.AppConfiguration/configurationStores", }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.operations.checkNameAvailability( - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsListSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsListSample.ts index aca2a36a2a8c..7d631a2bb4ae 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsListSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the operations available from this provider. * * @summary Lists the operations available from this provider. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/OperationsList.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/OperationsList.json */ async function operationsList() { const subscriptionId = @@ -27,7 +27,7 @@ async function operationsList() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.operations.list()) { diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsRegionalCheckNameAvailabilitySample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsRegionalCheckNameAvailabilitySample.ts index 8ec402136837..a0a96f40939e 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsRegionalCheckNameAvailabilitySample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsRegionalCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Checks whether the configuration store name is available for use. * * @summary Checks whether the configuration store name is available for use. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameAvailable.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameAvailable.json */ async function configurationStoresCheckNameAvailable() { const subscriptionId = @@ -30,16 +30,16 @@ async function configurationStoresCheckNameAvailable() { const location = "westus"; const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = { name: "contoso", - type: "Microsoft.AppConfiguration/configurationStores" + type: "Microsoft.AppConfiguration/configurationStores", }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.operations.regionalCheckNameAvailability( location, - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } @@ -48,7 +48,7 @@ async function configurationStoresCheckNameAvailable() { * This sample demonstrates how to Checks whether the configuration store name is available for use. * * @summary Checks whether the configuration store name is available for use. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameNotAvailable.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameNotAvailable.json */ async function configurationStoresCheckNameNotAvailable() { const subscriptionId = @@ -57,16 +57,16 @@ async function configurationStoresCheckNameNotAvailable() { const location = "westus"; const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = { name: "contoso", - type: "Microsoft.AppConfiguration/configurationStores" + type: "Microsoft.AppConfiguration/configurationStores", }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.operations.regionalCheckNameAvailability( location, - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts index 31f41db3596e..d2abe115370b 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. * * @summary Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json */ async function privateEndpointConnectionUpdate() { const subscriptionId = @@ -34,20 +34,21 @@ async function privateEndpointConnectionUpdate() { const privateEndpointConnection: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "Auto-Approved", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId - ); - const result = await client.privateEndpointConnections.beginCreateOrUpdateAndWait( - resourceGroupName, - configStoreName, - privateEndpointConnectionName, - privateEndpointConnection + subscriptionId, ); + const result = + await client.privateEndpointConnections.beginCreateOrUpdateAndWait( + resourceGroupName, + configStoreName, + privateEndpointConnectionName, + privateEndpointConnection, + ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsDeleteSample.ts index 921ad477808c..a2f50a1cb0a6 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a private endpoint connection. * * @summary Deletes a private endpoint connection. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json */ async function privateEndpointConnectionsDelete() { const subscriptionId = @@ -31,12 +31,12 @@ async function privateEndpointConnectionsDelete() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.privateEndpointConnections.beginDeleteAndWait( resourceGroupName, configStoreName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsGetSample.ts index 9c1ad97291bd..62f7992e0b05 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified private endpoint connection associated with the configuration store. * * @summary Gets the specified private endpoint connection associated with the configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json */ async function privateEndpointConnectionGetConnection() { const subscriptionId = @@ -31,12 +31,12 @@ async function privateEndpointConnectionGetConnection() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.privateEndpointConnections.get( resourceGroupName, configStoreName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsListByConfigurationStoreSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsListByConfigurationStoreSample.ts index c58f93c894ca..51650449ef39 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsListByConfigurationStoreSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsListByConfigurationStoreSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all private endpoint connections for a configuration store. * * @summary Lists all private endpoint connections for a configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListPrivateEndpointConnections.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListPrivateEndpointConnections.json */ async function privateEndpointConnectionList() { const subscriptionId = @@ -30,12 +30,12 @@ async function privateEndpointConnectionList() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.privateEndpointConnections.listByConfigurationStore( resourceGroupName, - configStoreName + configStoreName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesGetSample.ts index 1daf5417a98d..5c7df42f3028 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesGetSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a private link resource that need to be created for a configuration store. * * @summary Gets a private link resource that need to be created for a configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourceGet.json */ async function privateLinkResourcesGet() { const subscriptionId = @@ -31,12 +31,12 @@ async function privateLinkResourcesGet() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.privateLinkResources.get( resourceGroupName, configStoreName, - groupName + groupName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesListByConfigurationStoreSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesListByConfigurationStoreSample.ts index e031226778ea..f586f84cd287 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesListByConfigurationStoreSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesListByConfigurationStoreSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources that need to be created for a configuration store. * * @summary Gets the private link resources that need to be created for a configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourcesListByConfigurationStore.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourcesListByConfigurationStore.json */ async function privateLinkResourcesListGroupIds() { const subscriptionId = @@ -30,12 +30,12 @@ async function privateLinkResourcesListGroupIds() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.privateLinkResources.listByConfigurationStore( resourceGroupName, - configStoreName + configStoreName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasCreateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasCreateSample.ts index 590573eb751f..97f353352261 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasCreateSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { Replica, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a replica with the specified parameters. * * @summary Creates a replica with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateReplica.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateReplica.json */ async function replicasCreate() { const subscriptionId = @@ -35,13 +35,13 @@ async function replicasCreate() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.replicas.beginCreateAndWait( resourceGroupName, configStoreName, replicaName, - replicaCreationParameters + replicaCreationParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasDeleteSample.ts index 0461c6c78950..59c5d763e599 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasDeleteSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a replica. * * @summary Deletes a replica. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteReplica.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteReplica.json */ async function replicasDelete() { const subscriptionId = @@ -31,12 +31,12 @@ async function replicasDelete() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.replicas.beginDeleteAndWait( resourceGroupName, configStoreName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasGetSample.ts index e3f94a6fa193..d616e58b169c 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasGetSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified replica. * * @summary Gets the properties of the specified replica. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetReplica.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetReplica.json */ async function replicasGet() { const subscriptionId = @@ -31,12 +31,12 @@ async function replicasGet() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.replicas.get( resourceGroupName, configStoreName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasListByConfigurationStoreSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasListByConfigurationStoreSample.ts index d0fb689d1eab..892167ae2669 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasListByConfigurationStoreSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasListByConfigurationStoreSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the replicas for a given configuration store. * * @summary Lists the replicas for a given configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListReplicas.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListReplicas.json */ async function replicasListByConfigurationStore() { const subscriptionId = @@ -30,12 +30,12 @@ async function replicasListByConfigurationStore() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.replicas.listByConfigurationStore( resourceGroupName, - configStoreName + configStoreName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsCreateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsCreateSample.ts new file mode 100644 index 000000000000..93a7d2730ce1 --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsCreateSample.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + Snapshot, + AppConfigurationManagementClient, +} from "@azure/arm-appconfiguration"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. + * + * @summary Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateSnapshot.json + */ +async function snapshotsCreate() { + const subscriptionId = + process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || + "c80fb759-c965-4c6a-9110-9b2b2d038882"; + const resourceGroupName = + process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup"; + const configStoreName = "contoso"; + const snapshotName = "mySnapshot"; + const body: Snapshot = { + filters: [{ key: "app1/*", label: "Production" }], + retentionPeriod: 3600, + }; + const credential = new DefaultAzureCredential(); + const client = new AppConfigurationManagementClient( + credential, + subscriptionId, + ); + const result = await client.snapshots.beginCreateAndWait( + resourceGroupName, + configStoreName, + snapshotName, + body, + ); + console.log(result); +} + +async function main() { + snapshotsCreate(); +} + +main().catch(console.error); diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsGetSample.ts new file mode 100644 index 000000000000..c4d463ebb11a --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsGetSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. + * + * @summary Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetSnapshot.json + */ +async function snapshotsGet() { + const subscriptionId = + process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || + "c80fb759-c965-4c6a-9110-9b2b2d038882"; + const resourceGroupName = + process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup"; + const configStoreName = "contoso"; + const snapshotName = "mySnapshot"; + const credential = new DefaultAzureCredential(); + const client = new AppConfigurationManagementClient( + credential, + subscriptionId, + ); + const result = await client.snapshots.get( + resourceGroupName, + configStoreName, + snapshotName, + ); + console.log(result); +} + +async function main() { + snapshotsGet(); +} + +main().catch(console.error); diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/README.md b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/README.md index 73a0aa70d89e..58ef3ba6a5c0 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/README.md +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/README.md @@ -4,33 +4,35 @@ These sample programs show how to use the JavaScript client libraries for in som | **File Name** | **Description** | | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [configurationStoresCreateSample.js][configurationstorescreatesample] | Creates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json | -| [configurationStoresDeleteSample.js][configurationstoresdeletesample] | Deletes a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDelete.json | -| [configurationStoresGetDeletedSample.js][configurationstoresgetdeletedsample] | Gets a deleted Azure app configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresGet.json | -| [configurationStoresGetSample.js][configurationstoresgetsample] | Gets the properties of the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGet.json | -| [configurationStoresListByResourceGroupSample.js][configurationstoreslistbyresourcegroupsample] | Lists the configuration stores for a given resource group. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListByResourceGroup.json | -| [configurationStoresListDeletedSample.js][configurationstoreslistdeletedsample] | Gets information about the deleted configuration stores in a subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresList.json | -| [configurationStoresListKeysSample.js][configurationstoreslistkeyssample] | Lists the access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListKeys.json | -| [configurationStoresListSample.js][configurationstoreslistsample] | Lists the configuration stores for a given subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresList.json | -| [configurationStoresPurgeDeletedSample.js][configurationstorespurgedeletedsample] | Permanently deletes the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresPurge.json | -| [configurationStoresRegenerateKeySample.js][configurationstoresregeneratekeysample] | Regenerates an access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresRegenerateKey.json | -| [configurationStoresUpdateSample.js][configurationstoresupdatesample] | Updates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdate.json | -| [keyValuesCreateOrUpdateSample.js][keyvaluescreateorupdatesample] | Creates a key-value. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateKeyValue.json | -| [keyValuesDeleteSample.js][keyvaluesdeletesample] | Deletes a key-value. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteKeyValue.json | -| [keyValuesGetSample.js][keyvaluesgetsample] | Gets the properties of the specified key-value. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetKeyValue.json | -| [operationsCheckNameAvailabilitySample.js][operationschecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameAvailable.json | -| [operationsListSample.js][operationslistsample] | Lists the operations available from this provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/OperationsList.json | -| [operationsRegionalCheckNameAvailabilitySample.js][operationsregionalchecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameAvailable.json | -| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json | -| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json | -| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets the specified private endpoint connection associated with the configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json | -| [privateEndpointConnectionsListByConfigurationStoreSample.js][privateendpointconnectionslistbyconfigurationstoresample] | Lists all private endpoint connections for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListPrivateEndpointConnections.json | -| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets a private link resource that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourceGet.json | -| [privateLinkResourcesListByConfigurationStoreSample.js][privatelinkresourceslistbyconfigurationstoresample] | Gets the private link resources that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourcesListByConfigurationStore.json | -| [replicasCreateSample.js][replicascreatesample] | Creates a replica with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateReplica.json | -| [replicasDeleteSample.js][replicasdeletesample] | Deletes a replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteReplica.json | -| [replicasGetSample.js][replicasgetsample] | Gets the properties of the specified replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetReplica.json | -| [replicasListByConfigurationStoreSample.js][replicaslistbyconfigurationstoresample] | Lists the replicas for a given configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListReplicas.json | +| [configurationStoresCreateSample.js][configurationstorescreatesample] | Creates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreate.json | +| [configurationStoresDeleteSample.js][configurationstoresdeletesample] | Deletes a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDelete.json | +| [configurationStoresGetDeletedSample.js][configurationstoresgetdeletedsample] | Gets a deleted Azure app configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresGet.json | +| [configurationStoresGetSample.js][configurationstoresgetsample] | Gets the properties of the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGet.json | +| [configurationStoresListByResourceGroupSample.js][configurationstoreslistbyresourcegroupsample] | Lists the configuration stores for a given resource group. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListByResourceGroup.json | +| [configurationStoresListDeletedSample.js][configurationstoreslistdeletedsample] | Gets information about the deleted configuration stores in a subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresList.json | +| [configurationStoresListKeysSample.js][configurationstoreslistkeyssample] | Lists the access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListKeys.json | +| [configurationStoresListSample.js][configurationstoreslistsample] | Lists the configuration stores for a given subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresList.json | +| [configurationStoresPurgeDeletedSample.js][configurationstorespurgedeletedsample] | Permanently deletes the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresPurge.json | +| [configurationStoresRegenerateKeySample.js][configurationstoresregeneratekeysample] | Regenerates an access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresRegenerateKey.json | +| [configurationStoresUpdateSample.js][configurationstoresupdatesample] | Updates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdate.json | +| [keyValuesCreateOrUpdateSample.js][keyvaluescreateorupdatesample] | Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateKeyValue.json | +| [keyValuesDeleteSample.js][keyvaluesdeletesample] | Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteKeyValue.json | +| [keyValuesGetSample.js][keyvaluesgetsample] | Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetKeyValue.json | +| [operationsCheckNameAvailabilitySample.js][operationschecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameAvailable.json | +| [operationsListSample.js][operationslistsample] | Lists the operations available from this provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/OperationsList.json | +| [operationsRegionalCheckNameAvailabilitySample.js][operationsregionalchecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameAvailable.json | +| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json | +| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json | +| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets the specified private endpoint connection associated with the configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json | +| [privateEndpointConnectionsListByConfigurationStoreSample.js][privateendpointconnectionslistbyconfigurationstoresample] | Lists all private endpoint connections for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListPrivateEndpointConnections.json | +| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets a private link resource that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourceGet.json | +| [privateLinkResourcesListByConfigurationStoreSample.js][privatelinkresourceslistbyconfigurationstoresample] | Gets the private link resources that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourcesListByConfigurationStore.json | +| [replicasCreateSample.js][replicascreatesample] | Creates a replica with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateReplica.json | +| [replicasDeleteSample.js][replicasdeletesample] | Deletes a replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteReplica.json | +| [replicasGetSample.js][replicasgetsample] | Gets the properties of the specified replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetReplica.json | +| [replicasListByConfigurationStoreSample.js][replicaslistbyconfigurationstoresample] | Lists the replicas for a given configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListReplicas.json | +| [snapshotsCreateSample.js][snapshotscreatesample] | Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateSnapshot.json | +| [snapshotsGetSample.js][snapshotsgetsample] | Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetSnapshot.json | ## Prerequisites @@ -97,6 +99,8 @@ Take a look at our [API Documentation][apiref] for more information about the AP [replicasdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasDeleteSample.js [replicasgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasGetSample.js [replicaslistbyconfigurationstoresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasListByConfigurationStoreSample.js +[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/snapshotsCreateSample.js +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/snapshotsGetSample.js [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-appconfiguration?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appconfiguration/arm-appconfiguration/README.md diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresCreateSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresCreateSample.js index 30505d7d0e68..4419ddc35340 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresCreateSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a configuration store with the specified parameters. * * @summary Creates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreate.json */ async function configurationStoresCreate() { const subscriptionId = @@ -33,7 +33,7 @@ async function configurationStoresCreate() { const result = await client.configurationStores.beginCreateAndWait( resourceGroupName, configStoreName, - configStoreCreationParameters + configStoreCreationParameters, ); console.log(result); } @@ -42,7 +42,36 @@ async function configurationStoresCreate() { * This sample demonstrates how to Creates a configuration store with the specified parameters. * * @summary Creates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithDataPlaneProxy.json + */ +async function configurationStoresCreateWithDataPlaneProxy() { + const subscriptionId = + process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882"; + const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup"; + const configStoreName = "contoso"; + const configStoreCreationParameters = { + dataPlaneProxy: { + authenticationMode: "Pass-through", + privateLinkDelegation: "Enabled", + }, + location: "westus", + sku: { name: "Standard" }, + }; + const credential = new DefaultAzureCredential(); + const client = new AppConfigurationManagementClient(credential, subscriptionId); + const result = await client.configurationStores.beginCreateAndWait( + resourceGroupName, + configStoreName, + configStoreCreationParameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates a configuration store with the specified parameters. + * + * @summary Creates a configuration store with the specified parameters. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithIdentity.json */ async function configurationStoresCreateWithIdentity() { const subscriptionId = @@ -66,7 +95,7 @@ async function configurationStoresCreateWithIdentity() { const result = await client.configurationStores.beginCreateAndWait( resourceGroupName, configStoreName, - configStoreCreationParameters + configStoreCreationParameters, ); console.log(result); } @@ -75,7 +104,7 @@ async function configurationStoresCreateWithIdentity() { * This sample demonstrates how to Creates a configuration store with the specified parameters. * * @summary Creates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json */ async function configurationStoresCreateWithLocalAuthDisabled() { const subscriptionId = @@ -92,13 +121,14 @@ async function configurationStoresCreateWithLocalAuthDisabled() { const result = await client.configurationStores.beginCreateAndWait( resourceGroupName, configStoreName, - configStoreCreationParameters + configStoreCreationParameters, ); console.log(result); } async function main() { configurationStoresCreate(); + configurationStoresCreateWithDataPlaneProxy(); configurationStoresCreateWithIdentity(); configurationStoresCreateWithLocalAuthDisabled(); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresDeleteSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresDeleteSample.js index f38806b5e3e3..17e506aa0595 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresDeleteSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a configuration store. * * @summary Deletes a configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDelete.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDelete.json */ async function configurationStoresDelete() { const subscriptionId = @@ -27,7 +27,7 @@ async function configurationStoresDelete() { const client = new AppConfigurationManagementClient(credential, subscriptionId); const result = await client.configurationStores.beginDeleteAndWait( resourceGroupName, - configStoreName + configStoreName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresGetDeletedSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresGetDeletedSample.js index 52d193ebadce..88486e9b66ed 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresGetDeletedSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresGetDeletedSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a deleted Azure app configuration store. * * @summary Gets a deleted Azure app configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresGet.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresGet.json */ async function deletedConfigurationStoresGet() { const subscriptionId = diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresGetSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresGetSample.js index 08b99b9c5970..ac9330e58ba1 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresGetSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the properties of the specified configuration store. * * @summary Gets the properties of the specified configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGet.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGet.json */ async function configurationStoresGet() { const subscriptionId = diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListByResourceGroupSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListByResourceGroupSample.js index bca3dfe2d2bc..2adcb9335fb4 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListByResourceGroupSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the configuration stores for a given resource group. * * @summary Lists the configuration stores for a given resource group. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListByResourceGroup.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListByResourceGroup.json */ async function configurationStoresListByResourceGroup() { const subscriptionId = diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListDeletedSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListDeletedSample.js index 8ff9c1bd8726..4d17290be256 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListDeletedSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListDeletedSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the deleted configuration stores in a subscription. * * @summary Gets information about the deleted configuration stores in a subscription. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresList.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresList.json */ async function deletedConfigurationStoresList() { const subscriptionId = diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListKeysSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListKeysSample.js index d219f739bf68..74c387241ff4 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListKeysSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the access key for the specified configuration store. * * @summary Lists the access key for the specified configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListKeys.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListKeys.json */ async function configurationStoresListKeys() { const subscriptionId = diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListSample.js index 40524b56364a..32c63c873f64 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the configuration stores for a given subscription. * * @summary Lists the configuration stores for a given subscription. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresList.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresList.json */ async function configurationStoresList() { const subscriptionId = diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresPurgeDeletedSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresPurgeDeletedSample.js index 10d4eaba2f24..c429abc87065 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresPurgeDeletedSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresPurgeDeletedSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Permanently deletes the specified configuration store. * * @summary Permanently deletes the specified configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresPurge.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresPurge.json */ async function purgeADeletedConfigurationStore() { const subscriptionId = @@ -27,7 +27,7 @@ async function purgeADeletedConfigurationStore() { const client = new AppConfigurationManagementClient(credential, subscriptionId); const result = await client.configurationStores.beginPurgeDeletedAndWait( location, - configStoreName + configStoreName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresRegenerateKeySample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresRegenerateKeySample.js index ec540b4d46be..c7c326b6d0dd 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresRegenerateKeySample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresRegenerateKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Regenerates an access key for the specified configuration store. * * @summary Regenerates an access key for the specified configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresRegenerateKey.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresRegenerateKey.json */ async function configurationStoresRegenerateKey() { const subscriptionId = @@ -31,7 +31,7 @@ async function configurationStoresRegenerateKey() { const result = await client.configurationStores.regenerateKey( resourceGroupName, configStoreName, - regenerateKeyParameters + regenerateKeyParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresUpdateSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresUpdateSample.js index a0a869b37612..c8037c87a501 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresUpdateSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/configurationStoresUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates a configuration store with the specified parameters. * * @summary Updates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdate.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdate.json */ async function configurationStoresUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function configurationStoresUpdate() { const result = await client.configurationStores.beginUpdateAndWait( resourceGroupName, configStoreName, - configStoreUpdateParameters + configStoreUpdateParameters, ); console.log(result); } @@ -41,7 +41,7 @@ async function configurationStoresUpdate() { * This sample demonstrates how to Updates a configuration store with the specified parameters. * * @summary Updates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json */ async function configurationStoresUpdateDisableLocalAuth() { const subscriptionId = @@ -57,7 +57,7 @@ async function configurationStoresUpdateDisableLocalAuth() { const result = await client.configurationStores.beginUpdateAndWait( resourceGroupName, configStoreName, - configStoreUpdateParameters + configStoreUpdateParameters, ); console.log(result); } @@ -66,7 +66,7 @@ async function configurationStoresUpdateDisableLocalAuth() { * This sample demonstrates how to Updates a configuration store with the specified parameters. * * @summary Updates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateWithIdentity.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdateWithIdentity.json */ async function configurationStoresUpdateWithIdentity() { const subscriptionId = @@ -89,7 +89,7 @@ async function configurationStoresUpdateWithIdentity() { const result = await client.configurationStores.beginUpdateAndWait( resourceGroupName, configStoreName, - configStoreUpdateParameters + configStoreUpdateParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/keyValuesCreateOrUpdateSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/keyValuesCreateOrUpdateSample.js index c1e46bc223c8..08fb43324f89 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/keyValuesCreateOrUpdateSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/keyValuesCreateOrUpdateSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Creates a key-value. + * This sample demonstrates how to Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. * - * @summary Creates a key-value. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateKeyValue.json + * @summary Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateKeyValue.json */ async function keyValuesCreateOrUpdate() { const subscriptionId = @@ -35,7 +35,7 @@ async function keyValuesCreateOrUpdate() { resourceGroupName, configStoreName, keyValueName, - options + options, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/keyValuesDeleteSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/keyValuesDeleteSample.js index 823ff83dbf9e..ce6c906d705a 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/keyValuesDeleteSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/keyValuesDeleteSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Deletes a key-value. + * This sample demonstrates how to Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. * - * @summary Deletes a key-value. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteKeyValue.json + * @summary Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteKeyValue.json */ async function keyValuesDelete() { const subscriptionId = @@ -29,7 +29,7 @@ async function keyValuesDelete() { const result = await client.keyValues.beginDeleteAndWait( resourceGroupName, configStoreName, - keyValueName + keyValueName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/keyValuesGetSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/keyValuesGetSample.js index 925068465489..4db3167cc7a5 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/keyValuesGetSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/keyValuesGetSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Gets the properties of the specified key-value. + * This sample demonstrates how to Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. * - * @summary Gets the properties of the specified key-value. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetKeyValue.json + * @summary Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetKeyValue.json */ async function keyValuesGet() { const subscriptionId = diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/operationsCheckNameAvailabilitySample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/operationsCheckNameAvailabilitySample.js index c9cefd0da280..de0688deecf2 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/operationsCheckNameAvailabilitySample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/operationsCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks whether the configuration store name is available for use. * * @summary Checks whether the configuration store name is available for use. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameAvailable.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameAvailable.json */ async function configurationStoresCheckNameAvailable() { const subscriptionId = @@ -35,7 +35,7 @@ async function configurationStoresCheckNameAvailable() { * This sample demonstrates how to Checks whether the configuration store name is available for use. * * @summary Checks whether the configuration store name is available for use. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameNotAvailable.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameNotAvailable.json */ async function configurationStoresCheckNameNotAvailable() { const subscriptionId = diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/operationsListSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/operationsListSample.js index 4f51034cfb01..ae754712240d 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/operationsListSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the operations available from this provider. * * @summary Lists the operations available from this provider. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/OperationsList.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/OperationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/operationsRegionalCheckNameAvailabilitySample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/operationsRegionalCheckNameAvailabilitySample.js index 42bc90e335ec..c86ca02bbfd1 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/operationsRegionalCheckNameAvailabilitySample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/operationsRegionalCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks whether the configuration store name is available for use. * * @summary Checks whether the configuration store name is available for use. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameAvailable.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameAvailable.json */ async function configurationStoresCheckNameAvailable() { const subscriptionId = @@ -30,7 +30,7 @@ async function configurationStoresCheckNameAvailable() { const client = new AppConfigurationManagementClient(credential, subscriptionId); const result = await client.operations.regionalCheckNameAvailability( location, - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } @@ -39,7 +39,7 @@ async function configurationStoresCheckNameAvailable() { * This sample demonstrates how to Checks whether the configuration store name is available for use. * * @summary Checks whether the configuration store name is available for use. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameNotAvailable.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameNotAvailable.json */ async function configurationStoresCheckNameNotAvailable() { const subscriptionId = @@ -53,7 +53,7 @@ async function configurationStoresCheckNameNotAvailable() { const client = new AppConfigurationManagementClient(credential, subscriptionId); const result = await client.operations.regionalCheckNameAvailability( location, - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsCreateOrUpdateSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsCreateOrUpdateSample.js index 639eb8881c86..9b6ca8c268d0 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsCreateOrUpdateSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. * * @summary Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json */ async function privateEndpointConnectionUpdate() { const subscriptionId = @@ -36,7 +36,7 @@ async function privateEndpointConnectionUpdate() { resourceGroupName, configStoreName, privateEndpointConnectionName, - privateEndpointConnection + privateEndpointConnection, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsDeleteSample.js index 4f2efb5b74c6..3a0a3245ab50 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsDeleteSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a private endpoint connection. * * @summary Deletes a private endpoint connection. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json */ async function privateEndpointConnectionsDelete() { const subscriptionId = @@ -29,7 +29,7 @@ async function privateEndpointConnectionsDelete() { const result = await client.privateEndpointConnections.beginDeleteAndWait( resourceGroupName, configStoreName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsGetSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsGetSample.js index 539b7f89a1a2..bec553aa81e1 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsGetSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the specified private endpoint connection associated with the configuration store. * * @summary Gets the specified private endpoint connection associated with the configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json */ async function privateEndpointConnectionGetConnection() { const subscriptionId = @@ -29,7 +29,7 @@ async function privateEndpointConnectionGetConnection() { const result = await client.privateEndpointConnections.get( resourceGroupName, configStoreName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsListByConfigurationStoreSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsListByConfigurationStoreSample.js index ddf7b81d8fc0..35ec630fb290 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsListByConfigurationStoreSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateEndpointConnectionsListByConfigurationStoreSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all private endpoint connections for a configuration store. * * @summary Lists all private endpoint connections for a configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListPrivateEndpointConnections.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListPrivateEndpointConnections.json */ async function privateEndpointConnectionList() { const subscriptionId = @@ -28,7 +28,7 @@ async function privateEndpointConnectionList() { const resArray = new Array(); for await (let item of client.privateEndpointConnections.listByConfigurationStore( resourceGroupName, - configStoreName + configStoreName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateLinkResourcesGetSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateLinkResourcesGetSample.js index 15a4ac93a533..cb5b8f9893e8 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateLinkResourcesGetSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateLinkResourcesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a private link resource that need to be created for a configuration store. * * @summary Gets a private link resource that need to be created for a configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourceGet.json */ async function privateLinkResourcesGet() { const subscriptionId = @@ -29,7 +29,7 @@ async function privateLinkResourcesGet() { const result = await client.privateLinkResources.get( resourceGroupName, configStoreName, - groupName + groupName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateLinkResourcesListByConfigurationStoreSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateLinkResourcesListByConfigurationStoreSample.js index 48656ba46c42..4e58da5d0b85 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateLinkResourcesListByConfigurationStoreSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/privateLinkResourcesListByConfigurationStoreSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the private link resources that need to be created for a configuration store. * * @summary Gets the private link resources that need to be created for a configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourcesListByConfigurationStore.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourcesListByConfigurationStore.json */ async function privateLinkResourcesListGroupIds() { const subscriptionId = @@ -28,7 +28,7 @@ async function privateLinkResourcesListGroupIds() { const resArray = new Array(); for await (let item of client.privateLinkResources.listByConfigurationStore( resourceGroupName, - configStoreName + configStoreName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasCreateSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasCreateSample.js index 757999c0e00b..3b01776ac6c0 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasCreateSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a replica with the specified parameters. * * @summary Creates a replica with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateReplica.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateReplica.json */ async function replicasCreate() { const subscriptionId = @@ -31,7 +31,7 @@ async function replicasCreate() { resourceGroupName, configStoreName, replicaName, - replicaCreationParameters + replicaCreationParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasDeleteSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasDeleteSample.js index 2f29f745b91b..f25209e1e7ad 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasDeleteSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a replica. * * @summary Deletes a replica. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteReplica.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteReplica.json */ async function replicasDelete() { const subscriptionId = @@ -29,7 +29,7 @@ async function replicasDelete() { const result = await client.replicas.beginDeleteAndWait( resourceGroupName, configStoreName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasGetSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasGetSample.js index a2588cef22be..6b5ab77e56cf 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasGetSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the properties of the specified replica. * * @summary Gets the properties of the specified replica. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetReplica.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetReplica.json */ async function replicasGet() { const subscriptionId = diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasListByConfigurationStoreSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasListByConfigurationStoreSample.js index fa428c58f4f7..d2257a1543c1 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasListByConfigurationStoreSample.js +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasListByConfigurationStoreSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the replicas for a given configuration store. * * @summary Lists the replicas for a given configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListReplicas.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListReplicas.json */ async function replicasListByConfigurationStore() { const subscriptionId = @@ -28,7 +28,7 @@ async function replicasListByConfigurationStore() { const resArray = new Array(); for await (let item of client.replicas.listByConfigurationStore( resourceGroupName, - configStoreName + configStoreName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/snapshotsCreateSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/snapshotsCreateSample.js new file mode 100644 index 000000000000..982fcb64f73f --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/snapshotsCreateSample.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. + * + * @summary Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateSnapshot.json + */ +async function snapshotsCreate() { + const subscriptionId = + process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882"; + const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup"; + const configStoreName = "contoso"; + const snapshotName = "mySnapshot"; + const body = { + filters: [{ key: "app1/*", label: "Production" }], + retentionPeriod: 3600, + }; + const credential = new DefaultAzureCredential(); + const client = new AppConfigurationManagementClient(credential, subscriptionId); + const result = await client.snapshots.beginCreateAndWait( + resourceGroupName, + configStoreName, + snapshotName, + body, + ); + console.log(result); +} + +async function main() { + snapshotsCreate(); +} + +main().catch(console.error); diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/snapshotsGetSample.js b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/snapshotsGetSample.js new file mode 100644 index 000000000000..c305deca4f94 --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/snapshotsGetSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. + * + * @summary Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetSnapshot.json + */ +async function snapshotsGet() { + const subscriptionId = + process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882"; + const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup"; + const configStoreName = "contoso"; + const snapshotName = "mySnapshot"; + const credential = new DefaultAzureCredential(); + const client = new AppConfigurationManagementClient(credential, subscriptionId); + const result = await client.snapshots.get(resourceGroupName, configStoreName, snapshotName); + console.log(result); +} + +async function main() { + snapshotsGet(); +} + +main().catch(console.error); diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/README.md b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/README.md index 5691d4535e51..b1c49a92ff63 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/README.md +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/README.md @@ -4,33 +4,35 @@ These sample programs show how to use the TypeScript client libraries for in som | **File Name** | **Description** | | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [configurationStoresCreateSample.ts][configurationstorescreatesample] | Creates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json | -| [configurationStoresDeleteSample.ts][configurationstoresdeletesample] | Deletes a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDelete.json | -| [configurationStoresGetDeletedSample.ts][configurationstoresgetdeletedsample] | Gets a deleted Azure app configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresGet.json | -| [configurationStoresGetSample.ts][configurationstoresgetsample] | Gets the properties of the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGet.json | -| [configurationStoresListByResourceGroupSample.ts][configurationstoreslistbyresourcegroupsample] | Lists the configuration stores for a given resource group. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListByResourceGroup.json | -| [configurationStoresListDeletedSample.ts][configurationstoreslistdeletedsample] | Gets information about the deleted configuration stores in a subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresList.json | -| [configurationStoresListKeysSample.ts][configurationstoreslistkeyssample] | Lists the access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListKeys.json | -| [configurationStoresListSample.ts][configurationstoreslistsample] | Lists the configuration stores for a given subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresList.json | -| [configurationStoresPurgeDeletedSample.ts][configurationstorespurgedeletedsample] | Permanently deletes the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresPurge.json | -| [configurationStoresRegenerateKeySample.ts][configurationstoresregeneratekeysample] | Regenerates an access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresRegenerateKey.json | -| [configurationStoresUpdateSample.ts][configurationstoresupdatesample] | Updates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdate.json | -| [keyValuesCreateOrUpdateSample.ts][keyvaluescreateorupdatesample] | Creates a key-value. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateKeyValue.json | -| [keyValuesDeleteSample.ts][keyvaluesdeletesample] | Deletes a key-value. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteKeyValue.json | -| [keyValuesGetSample.ts][keyvaluesgetsample] | Gets the properties of the specified key-value. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetKeyValue.json | -| [operationsCheckNameAvailabilitySample.ts][operationschecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameAvailable.json | -| [operationsListSample.ts][operationslistsample] | Lists the operations available from this provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/OperationsList.json | -| [operationsRegionalCheckNameAvailabilitySample.ts][operationsregionalchecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameAvailable.json | -| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json | -| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json | -| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets the specified private endpoint connection associated with the configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json | -| [privateEndpointConnectionsListByConfigurationStoreSample.ts][privateendpointconnectionslistbyconfigurationstoresample] | Lists all private endpoint connections for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListPrivateEndpointConnections.json | -| [privateLinkResourcesGetSample.ts][privatelinkresourcesgetsample] | Gets a private link resource that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourceGet.json | -| [privateLinkResourcesListByConfigurationStoreSample.ts][privatelinkresourceslistbyconfigurationstoresample] | Gets the private link resources that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourcesListByConfigurationStore.json | -| [replicasCreateSample.ts][replicascreatesample] | Creates a replica with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateReplica.json | -| [replicasDeleteSample.ts][replicasdeletesample] | Deletes a replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteReplica.json | -| [replicasGetSample.ts][replicasgetsample] | Gets the properties of the specified replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetReplica.json | -| [replicasListByConfigurationStoreSample.ts][replicaslistbyconfigurationstoresample] | Lists the replicas for a given configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListReplicas.json | +| [configurationStoresCreateSample.ts][configurationstorescreatesample] | Creates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreate.json | +| [configurationStoresDeleteSample.ts][configurationstoresdeletesample] | Deletes a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDelete.json | +| [configurationStoresGetDeletedSample.ts][configurationstoresgetdeletedsample] | Gets a deleted Azure app configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresGet.json | +| [configurationStoresGetSample.ts][configurationstoresgetsample] | Gets the properties of the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGet.json | +| [configurationStoresListByResourceGroupSample.ts][configurationstoreslistbyresourcegroupsample] | Lists the configuration stores for a given resource group. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListByResourceGroup.json | +| [configurationStoresListDeletedSample.ts][configurationstoreslistdeletedsample] | Gets information about the deleted configuration stores in a subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresList.json | +| [configurationStoresListKeysSample.ts][configurationstoreslistkeyssample] | Lists the access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListKeys.json | +| [configurationStoresListSample.ts][configurationstoreslistsample] | Lists the configuration stores for a given subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresList.json | +| [configurationStoresPurgeDeletedSample.ts][configurationstorespurgedeletedsample] | Permanently deletes the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresPurge.json | +| [configurationStoresRegenerateKeySample.ts][configurationstoresregeneratekeysample] | Regenerates an access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresRegenerateKey.json | +| [configurationStoresUpdateSample.ts][configurationstoresupdatesample] | Updates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdate.json | +| [keyValuesCreateOrUpdateSample.ts][keyvaluescreateorupdatesample] | Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateKeyValue.json | +| [keyValuesDeleteSample.ts][keyvaluesdeletesample] | Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteKeyValue.json | +| [keyValuesGetSample.ts][keyvaluesgetsample] | Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetKeyValue.json | +| [operationsCheckNameAvailabilitySample.ts][operationschecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameAvailable.json | +| [operationsListSample.ts][operationslistsample] | Lists the operations available from this provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/OperationsList.json | +| [operationsRegionalCheckNameAvailabilitySample.ts][operationsregionalchecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameAvailable.json | +| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json | +| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json | +| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets the specified private endpoint connection associated with the configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json | +| [privateEndpointConnectionsListByConfigurationStoreSample.ts][privateendpointconnectionslistbyconfigurationstoresample] | Lists all private endpoint connections for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListPrivateEndpointConnections.json | +| [privateLinkResourcesGetSample.ts][privatelinkresourcesgetsample] | Gets a private link resource that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourceGet.json | +| [privateLinkResourcesListByConfigurationStoreSample.ts][privatelinkresourceslistbyconfigurationstoresample] | Gets the private link resources that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourcesListByConfigurationStore.json | +| [replicasCreateSample.ts][replicascreatesample] | Creates a replica with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateReplica.json | +| [replicasDeleteSample.ts][replicasdeletesample] | Deletes a replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteReplica.json | +| [replicasGetSample.ts][replicasgetsample] | Gets the properties of the specified replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetReplica.json | +| [replicasListByConfigurationStoreSample.ts][replicaslistbyconfigurationstoresample] | Lists the replicas for a given configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListReplicas.json | +| [snapshotsCreateSample.ts][snapshotscreatesample] | Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateSnapshot.json | +| [snapshotsGetSample.ts][snapshotsgetsample] | Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetSnapshot.json | ## Prerequisites @@ -109,6 +111,8 @@ Take a look at our [API Documentation][apiref] for more information about the AP [replicasdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasDeleteSample.ts [replicasgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasGetSample.ts [replicaslistbyconfigurationstoresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasListByConfigurationStoreSample.ts +[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsCreateSample.ts +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsGetSample.ts [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-appconfiguration?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appconfiguration/arm-appconfiguration/README.md diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresCreateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresCreateSample.ts index 1a05e3d634fc..b3a1734b0308 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresCreateSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ConfigurationStore, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a configuration store with the specified parameters. * * @summary Creates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreate.json */ async function configurationStoresCreate() { const subscriptionId = @@ -33,17 +33,17 @@ async function configurationStoresCreate() { const configStoreCreationParameters: ConfigurationStore = { location: "westus", sku: { name: "Standard" }, - tags: { myTag: "myTagValue" } + tags: { myTag: "myTagValue" }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginCreateAndWait( resourceGroupName, configStoreName, - configStoreCreationParameters + configStoreCreationParameters, ); console.log(result); } @@ -52,7 +52,41 @@ async function configurationStoresCreate() { * This sample demonstrates how to Creates a configuration store with the specified parameters. * * @summary Creates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithDataPlaneProxy.json + */ +async function configurationStoresCreateWithDataPlaneProxy() { + const subscriptionId = + process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || + "c80fb759-c965-4c6a-9110-9b2b2d038882"; + const resourceGroupName = + process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup"; + const configStoreName = "contoso"; + const configStoreCreationParameters: ConfigurationStore = { + dataPlaneProxy: { + authenticationMode: "Pass-through", + privateLinkDelegation: "Enabled", + }, + location: "westus", + sku: { name: "Standard" }, + }; + const credential = new DefaultAzureCredential(); + const client = new AppConfigurationManagementClient( + credential, + subscriptionId, + ); + const result = await client.configurationStores.beginCreateAndWait( + resourceGroupName, + configStoreName, + configStoreCreationParameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates a configuration store with the specified parameters. + * + * @summary Creates a configuration store with the specified parameters. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithIdentity.json */ async function configurationStoresCreateWithIdentity() { const subscriptionId = @@ -65,22 +99,23 @@ async function configurationStoresCreateWithIdentity() { identity: { type: "SystemAssigned, UserAssigned", userAssignedIdentities: { - "/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2": {} - } + "/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2": + {}, + }, }, location: "westus", sku: { name: "Standard" }, - tags: { myTag: "myTagValue" } + tags: { myTag: "myTagValue" }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginCreateAndWait( resourceGroupName, configStoreName, - configStoreCreationParameters + configStoreCreationParameters, ); console.log(result); } @@ -89,7 +124,7 @@ async function configurationStoresCreateWithIdentity() { * This sample demonstrates how to Creates a configuration store with the specified parameters. * * @summary Creates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json */ async function configurationStoresCreateWithLocalAuthDisabled() { const subscriptionId = @@ -101,23 +136,24 @@ async function configurationStoresCreateWithLocalAuthDisabled() { const configStoreCreationParameters: ConfigurationStore = { disableLocalAuth: true, location: "westus", - sku: { name: "Standard" } + sku: { name: "Standard" }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginCreateAndWait( resourceGroupName, configStoreName, - configStoreCreationParameters + configStoreCreationParameters, ); console.log(result); } async function main() { configurationStoresCreate(); + configurationStoresCreateWithDataPlaneProxy(); configurationStoresCreateWithIdentity(); configurationStoresCreateWithLocalAuthDisabled(); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresDeleteSample.ts index 86a330f57591..c149af242835 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresDeleteSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a configuration store. * * @summary Deletes a configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDelete.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDelete.json */ async function configurationStoresDelete() { const subscriptionId = @@ -30,11 +30,11 @@ async function configurationStoresDelete() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginDeleteAndWait( resourceGroupName, - configStoreName + configStoreName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetDeletedSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetDeletedSample.ts index 203d01a9248b..f47f3d55a5b2 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetDeletedSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetDeletedSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a deleted Azure app configuration store. * * @summary Gets a deleted Azure app configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresGet.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresGet.json */ async function deletedConfigurationStoresGet() { const subscriptionId = @@ -29,11 +29,11 @@ async function deletedConfigurationStoresGet() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.getDeleted( location, - configStoreName + configStoreName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetSample.ts index 51e92ec5db02..b2e25845d93e 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified configuration store. * * @summary Gets the properties of the specified configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGet.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGet.json */ async function configurationStoresGet() { const subscriptionId = @@ -30,11 +30,11 @@ async function configurationStoresGet() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.get( resourceGroupName, - configStoreName + configStoreName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListByResourceGroupSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListByResourceGroupSample.ts index 0ac5048e2cb9..7e1ed8740967 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListByResourceGroupSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the configuration stores for a given resource group. * * @summary Lists the configuration stores for a given resource group. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListByResourceGroup.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListByResourceGroup.json */ async function configurationStoresListByResourceGroup() { const subscriptionId = @@ -29,11 +29,11 @@ async function configurationStoresListByResourceGroup() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.configurationStores.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListDeletedSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListDeletedSample.ts index 6e717825c34c..7f04f9733842 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListDeletedSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListDeletedSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the deleted configuration stores in a subscription. * * @summary Gets information about the deleted configuration stores in a subscription. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresList.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresList.json */ async function deletedConfigurationStoresList() { const subscriptionId = @@ -27,7 +27,7 @@ async function deletedConfigurationStoresList() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.configurationStores.listDeleted()) { diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListKeysSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListKeysSample.ts index 4d4e1269b0d7..65c041ac40ab 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListKeysSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the access key for the specified configuration store. * * @summary Lists the access key for the specified configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListKeys.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListKeys.json */ async function configurationStoresListKeys() { const subscriptionId = @@ -30,12 +30,12 @@ async function configurationStoresListKeys() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.configurationStores.listKeys( resourceGroupName, - configStoreName + configStoreName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListSample.ts index 7ec77c384bde..7b2563d24b61 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the configuration stores for a given subscription. * * @summary Lists the configuration stores for a given subscription. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresList.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresList.json */ async function configurationStoresList() { const subscriptionId = @@ -27,7 +27,7 @@ async function configurationStoresList() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.configurationStores.list()) { diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresPurgeDeletedSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresPurgeDeletedSample.ts index b6611a96ef5d..f81d2b22ba4a 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresPurgeDeletedSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresPurgeDeletedSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Permanently deletes the specified configuration store. * * @summary Permanently deletes the specified configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresPurge.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresPurge.json */ async function purgeADeletedConfigurationStore() { const subscriptionId = @@ -29,11 +29,11 @@ async function purgeADeletedConfigurationStore() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginPurgeDeletedAndWait( location, - configStoreName + configStoreName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresRegenerateKeySample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresRegenerateKeySample.ts index 2d0be351ab26..c568f8847e72 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresRegenerateKeySample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresRegenerateKeySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RegenerateKeyParameters, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates an access key for the specified configuration store. * * @summary Regenerates an access key for the specified configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresRegenerateKey.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresRegenerateKey.json */ async function configurationStoresRegenerateKey() { const subscriptionId = @@ -31,17 +31,17 @@ async function configurationStoresRegenerateKey() { process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup"; const configStoreName = "contoso"; const regenerateKeyParameters: RegenerateKeyParameters = { - id: "439AD01B4BE67DB1" + id: "439AD01B4BE67DB1", }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.regenerateKey( resourceGroupName, configStoreName, - regenerateKeyParameters + regenerateKeyParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresUpdateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresUpdateSample.ts index 80aa8c799e13..51c1e10cf17a 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresUpdateSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ConfigurationStoreUpdateParameters, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a configuration store with the specified parameters. * * @summary Updates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdate.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdate.json */ async function configurationStoresUpdate() { const subscriptionId = @@ -32,17 +32,17 @@ async function configurationStoresUpdate() { const configStoreName = "contoso"; const configStoreUpdateParameters: ConfigurationStoreUpdateParameters = { sku: { name: "Standard" }, - tags: { category: "Marketing" } + tags: { category: "Marketing" }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginUpdateAndWait( resourceGroupName, configStoreName, - configStoreUpdateParameters + configStoreUpdateParameters, ); console.log(result); } @@ -51,7 +51,7 @@ async function configurationStoresUpdate() { * This sample demonstrates how to Updates a configuration store with the specified parameters. * * @summary Updates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json */ async function configurationStoresUpdateDisableLocalAuth() { const subscriptionId = @@ -62,17 +62,17 @@ async function configurationStoresUpdateDisableLocalAuth() { const configStoreName = "contoso"; const configStoreUpdateParameters: ConfigurationStoreUpdateParameters = { disableLocalAuth: true, - sku: { name: "Standard" } + sku: { name: "Standard" }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginUpdateAndWait( resourceGroupName, configStoreName, - configStoreUpdateParameters + configStoreUpdateParameters, ); console.log(result); } @@ -81,7 +81,7 @@ async function configurationStoresUpdateDisableLocalAuth() { * This sample demonstrates how to Updates a configuration store with the specified parameters. * * @summary Updates a configuration store with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateWithIdentity.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdateWithIdentity.json */ async function configurationStoresUpdateWithIdentity() { const subscriptionId = @@ -94,21 +94,22 @@ async function configurationStoresUpdateWithIdentity() { identity: { type: "SystemAssigned, UserAssigned", userAssignedIdentities: { - "/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2": {} - } + "/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2": + {}, + }, }, sku: { name: "Standard" }, - tags: { category: "Marketing" } + tags: { category: "Marketing" }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.configurationStores.beginUpdateAndWait( resourceGroupName, configStoreName, - configStoreUpdateParameters + configStoreUpdateParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesCreateOrUpdateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesCreateOrUpdateSample.ts index 821a585f541e..6460b8be0181 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesCreateOrUpdateSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesCreateOrUpdateSample.ts @@ -11,7 +11,7 @@ import { KeyValue, KeyValuesCreateOrUpdateOptionalParams, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -19,10 +19,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Creates a key-value. + * This sample demonstrates how to Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. * - * @summary Creates a key-value. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateKeyValue.json + * @summary Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateKeyValue.json */ async function keyValuesCreateOrUpdate() { const subscriptionId = @@ -34,19 +34,19 @@ async function keyValuesCreateOrUpdate() { const keyValueName = "myKey$myLabel"; const keyValueParameters: KeyValue = { tags: { tag1: "tagValue1", tag2: "tagValue2" }, - value: "myValue" + value: "myValue", }; const options: KeyValuesCreateOrUpdateOptionalParams = { keyValueParameters }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.keyValues.createOrUpdate( resourceGroupName, configStoreName, keyValueName, - options + options, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesDeleteSample.ts index 3317449c1381..cdb66d69878e 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesDeleteSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesDeleteSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Deletes a key-value. + * This sample demonstrates how to Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. * - * @summary Deletes a key-value. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteKeyValue.json + * @summary Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteKeyValue.json */ async function keyValuesDelete() { const subscriptionId = @@ -31,12 +31,12 @@ async function keyValuesDelete() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.keyValues.beginDeleteAndWait( resourceGroupName, configStoreName, - keyValueName + keyValueName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesGetSample.ts index 3d5d3b6f3a2e..394a0d1bd248 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesGetSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesGetSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the properties of the specified key-value. + * This sample demonstrates how to Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. * - * @summary Gets the properties of the specified key-value. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetKeyValue.json + * @summary Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetKeyValue.json */ async function keyValuesGet() { const subscriptionId = @@ -31,12 +31,12 @@ async function keyValuesGet() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.keyValues.get( resourceGroupName, configStoreName, - keyValueName + keyValueName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsCheckNameAvailabilitySample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsCheckNameAvailabilitySample.ts index 83051583eef3..42c6f45b0181 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsCheckNameAvailabilitySample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Checks whether the configuration store name is available for use. * * @summary Checks whether the configuration store name is available for use. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameAvailable.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameAvailable.json */ async function configurationStoresCheckNameAvailable() { const subscriptionId = @@ -29,15 +29,15 @@ async function configurationStoresCheckNameAvailable() { "c80fb759-c965-4c6a-9110-9b2b2d038882"; const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = { name: "contoso", - type: "Microsoft.AppConfiguration/configurationStores" + type: "Microsoft.AppConfiguration/configurationStores", }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.operations.checkNameAvailability( - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } @@ -46,7 +46,7 @@ async function configurationStoresCheckNameAvailable() { * This sample demonstrates how to Checks whether the configuration store name is available for use. * * @summary Checks whether the configuration store name is available for use. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameNotAvailable.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameNotAvailable.json */ async function configurationStoresCheckNameNotAvailable() { const subscriptionId = @@ -54,15 +54,15 @@ async function configurationStoresCheckNameNotAvailable() { "c80fb759-c965-4c6a-9110-9b2b2d038882"; const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = { name: "contoso", - type: "Microsoft.AppConfiguration/configurationStores" + type: "Microsoft.AppConfiguration/configurationStores", }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.operations.checkNameAvailability( - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsListSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsListSample.ts index aca2a36a2a8c..7d631a2bb4ae 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsListSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the operations available from this provider. * * @summary Lists the operations available from this provider. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/OperationsList.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/OperationsList.json */ async function operationsList() { const subscriptionId = @@ -27,7 +27,7 @@ async function operationsList() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.operations.list()) { diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsRegionalCheckNameAvailabilitySample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsRegionalCheckNameAvailabilitySample.ts index 8ec402136837..a0a96f40939e 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsRegionalCheckNameAvailabilitySample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsRegionalCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Checks whether the configuration store name is available for use. * * @summary Checks whether the configuration store name is available for use. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameAvailable.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameAvailable.json */ async function configurationStoresCheckNameAvailable() { const subscriptionId = @@ -30,16 +30,16 @@ async function configurationStoresCheckNameAvailable() { const location = "westus"; const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = { name: "contoso", - type: "Microsoft.AppConfiguration/configurationStores" + type: "Microsoft.AppConfiguration/configurationStores", }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.operations.regionalCheckNameAvailability( location, - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } @@ -48,7 +48,7 @@ async function configurationStoresCheckNameAvailable() { * This sample demonstrates how to Checks whether the configuration store name is available for use. * * @summary Checks whether the configuration store name is available for use. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameNotAvailable.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameNotAvailable.json */ async function configurationStoresCheckNameNotAvailable() { const subscriptionId = @@ -57,16 +57,16 @@ async function configurationStoresCheckNameNotAvailable() { const location = "westus"; const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = { name: "contoso", - type: "Microsoft.AppConfiguration/configurationStores" + type: "Microsoft.AppConfiguration/configurationStores", }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.operations.regionalCheckNameAvailability( location, - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts index 31f41db3596e..d2abe115370b 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. * * @summary Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json */ async function privateEndpointConnectionUpdate() { const subscriptionId = @@ -34,20 +34,21 @@ async function privateEndpointConnectionUpdate() { const privateEndpointConnection: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "Auto-Approved", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId - ); - const result = await client.privateEndpointConnections.beginCreateOrUpdateAndWait( - resourceGroupName, - configStoreName, - privateEndpointConnectionName, - privateEndpointConnection + subscriptionId, ); + const result = + await client.privateEndpointConnections.beginCreateOrUpdateAndWait( + resourceGroupName, + configStoreName, + privateEndpointConnectionName, + privateEndpointConnection, + ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsDeleteSample.ts index 921ad477808c..a2f50a1cb0a6 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a private endpoint connection. * * @summary Deletes a private endpoint connection. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json */ async function privateEndpointConnectionsDelete() { const subscriptionId = @@ -31,12 +31,12 @@ async function privateEndpointConnectionsDelete() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.privateEndpointConnections.beginDeleteAndWait( resourceGroupName, configStoreName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsGetSample.ts index 9c1ad97291bd..62f7992e0b05 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsGetSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified private endpoint connection associated with the configuration store. * * @summary Gets the specified private endpoint connection associated with the configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json */ async function privateEndpointConnectionGetConnection() { const subscriptionId = @@ -31,12 +31,12 @@ async function privateEndpointConnectionGetConnection() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.privateEndpointConnections.get( resourceGroupName, configStoreName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsListByConfigurationStoreSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsListByConfigurationStoreSample.ts index c58f93c894ca..51650449ef39 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsListByConfigurationStoreSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsListByConfigurationStoreSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all private endpoint connections for a configuration store. * * @summary Lists all private endpoint connections for a configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListPrivateEndpointConnections.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListPrivateEndpointConnections.json */ async function privateEndpointConnectionList() { const subscriptionId = @@ -30,12 +30,12 @@ async function privateEndpointConnectionList() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.privateEndpointConnections.listByConfigurationStore( resourceGroupName, - configStoreName + configStoreName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesGetSample.ts index 1daf5417a98d..5c7df42f3028 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesGetSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a private link resource that need to be created for a configuration store. * * @summary Gets a private link resource that need to be created for a configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourceGet.json */ async function privateLinkResourcesGet() { const subscriptionId = @@ -31,12 +31,12 @@ async function privateLinkResourcesGet() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.privateLinkResources.get( resourceGroupName, configStoreName, - groupName + groupName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesListByConfigurationStoreSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesListByConfigurationStoreSample.ts index e031226778ea..f586f84cd287 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesListByConfigurationStoreSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesListByConfigurationStoreSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources that need to be created for a configuration store. * * @summary Gets the private link resources that need to be created for a configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourcesListByConfigurationStore.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourcesListByConfigurationStore.json */ async function privateLinkResourcesListGroupIds() { const subscriptionId = @@ -30,12 +30,12 @@ async function privateLinkResourcesListGroupIds() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.privateLinkResources.listByConfigurationStore( resourceGroupName, - configStoreName + configStoreName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasCreateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasCreateSample.ts index 590573eb751f..97f353352261 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasCreateSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { Replica, - AppConfigurationManagementClient + AppConfigurationManagementClient, } from "@azure/arm-appconfiguration"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a replica with the specified parameters. * * @summary Creates a replica with the specified parameters. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateReplica.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateReplica.json */ async function replicasCreate() { const subscriptionId = @@ -35,13 +35,13 @@ async function replicasCreate() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.replicas.beginCreateAndWait( resourceGroupName, configStoreName, replicaName, - replicaCreationParameters + replicaCreationParameters, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasDeleteSample.ts index 0461c6c78950..59c5d763e599 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasDeleteSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a replica. * * @summary Deletes a replica. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteReplica.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteReplica.json */ async function replicasDelete() { const subscriptionId = @@ -31,12 +31,12 @@ async function replicasDelete() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.replicas.beginDeleteAndWait( resourceGroupName, configStoreName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasGetSample.ts index e3f94a6fa193..d616e58b169c 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasGetSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the properties of the specified replica. * * @summary Gets the properties of the specified replica. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetReplica.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetReplica.json */ async function replicasGet() { const subscriptionId = @@ -31,12 +31,12 @@ async function replicasGet() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.replicas.get( resourceGroupName, configStoreName, - replicaName + replicaName, ); console.log(result); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasListByConfigurationStoreSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasListByConfigurationStoreSample.ts index d0fb689d1eab..892167ae2669 100644 --- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasListByConfigurationStoreSample.ts +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasListByConfigurationStoreSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the replicas for a given configuration store. * * @summary Lists the replicas for a given configuration store. - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListReplicas.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListReplicas.json */ async function replicasListByConfigurationStore() { const subscriptionId = @@ -30,12 +30,12 @@ async function replicasListByConfigurationStore() { const credential = new DefaultAzureCredential(); const client = new AppConfigurationManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.replicas.listByConfigurationStore( resourceGroupName, - configStoreName + configStoreName, )) { resArray.push(item); } diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsCreateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsCreateSample.ts new file mode 100644 index 000000000000..93a7d2730ce1 --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsCreateSample.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + Snapshot, + AppConfigurationManagementClient, +} from "@azure/arm-appconfiguration"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. + * + * @summary Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateSnapshot.json + */ +async function snapshotsCreate() { + const subscriptionId = + process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || + "c80fb759-c965-4c6a-9110-9b2b2d038882"; + const resourceGroupName = + process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup"; + const configStoreName = "contoso"; + const snapshotName = "mySnapshot"; + const body: Snapshot = { + filters: [{ key: "app1/*", label: "Production" }], + retentionPeriod: 3600, + }; + const credential = new DefaultAzureCredential(); + const client = new AppConfigurationManagementClient( + credential, + subscriptionId, + ); + const result = await client.snapshots.beginCreateAndWait( + resourceGroupName, + configStoreName, + snapshotName, + body, + ); + console.log(result); +} + +async function main() { + snapshotsCreate(); +} + +main().catch(console.error); diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsGetSample.ts new file mode 100644 index 000000000000..c4d463ebb11a --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsGetSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. + * + * @summary Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetSnapshot.json + */ +async function snapshotsGet() { + const subscriptionId = + process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || + "c80fb759-c965-4c6a-9110-9b2b2d038882"; + const resourceGroupName = + process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup"; + const configStoreName = "contoso"; + const snapshotName = "mySnapshot"; + const credential = new DefaultAzureCredential(); + const client = new AppConfigurationManagementClient( + credential, + subscriptionId, + ); + const result = await client.snapshots.get( + resourceGroupName, + configStoreName, + snapshotName, + ); + console.log(result); +} + +async function main() { + snapshotsGet(); +} + +main().catch(console.error); diff --git a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts index 82e68e112dce..f523d9ba5cfe 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -20,7 +20,8 @@ import { PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, KeyValuesImpl, - ReplicasImpl + ReplicasImpl, + SnapshotsImpl, } from "./operations"; import { ConfigurationStores, @@ -28,7 +29,8 @@ import { PrivateEndpointConnections, PrivateLinkResources, KeyValues, - Replicas + Replicas, + Snapshots, } from "./operationsInterfaces"; import { AppConfigurationManagementClientOptionalParams } from "./models"; @@ -46,7 +48,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: AppConfigurationManagementClientOptionalParams + options?: AppConfigurationManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -61,10 +63,10 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient { } const defaults: AppConfigurationManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-appconfiguration/4.0.1`; + const packageDetails = `azsdk-js-arm-appconfiguration/4.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -74,20 +76,21 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -97,7 +100,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -107,9 +110,9 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -117,13 +120,14 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-03-01"; + this.apiVersion = options.apiVersion || "2024-05-01"; this.configurationStores = new ConfigurationStoresImpl(this); this.operations = new OperationsImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); this.keyValues = new KeyValuesImpl(this); this.replicas = new ReplicasImpl(this); + this.snapshots = new SnapshotsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -136,7 +140,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -150,7 +154,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -161,4 +165,5 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient { privateLinkResources: PrivateLinkResources; keyValues: KeyValues; replicas: Replicas; + snapshots: Snapshots; } diff --git a/sdk/appconfiguration/arm-appconfiguration/src/lroImpl.ts b/sdk/appconfiguration/arm-appconfiguration/src/lroImpl.ts index 52f6eaacfb83..5f88efab981b 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/lroImpl.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts index 01c606735fb4..fb7eb4011800 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/index.ts @@ -109,6 +109,14 @@ export interface PrivateLinkServiceConnectionState { readonly actionsRequired?: ActionsRequired; } +/** The data plane proxy settings for a configuration store. */ +export interface DataPlaneProxyProperties { + /** The data plane proxy authentication mode. This property manages the authentication mode of request to the data plane resources. */ + authenticationMode?: AuthenticationMode; + /** The data plane proxy private link delegation. This property manages if a request from delegated Azure Resource Manager (ARM) private link is allowed when the data plane resource requires private link. */ + privateLinkDelegation?: PrivateLinkDelegation; +} + /** Describes a configuration store SKU. */ export interface Sku { /** The SKU name of the configuration store. */ @@ -205,6 +213,8 @@ export interface ConfigurationStoreUpdateParameters { publicNetworkAccess?: PublicNetworkAccess; /** Property specifying whether protection against purge is enabled for this configuration store. */ enablePurgeProtection?: boolean; + /** Property specifying the configuration of data plane proxy for Azure Resource Manager (ARM). */ + dataPlaneProxy?: DataPlaneProxyProperties; } /** Parameters used for checking whether a resource name is available. */ @@ -608,6 +618,111 @@ export interface Replica { readonly provisioningState?: ReplicaProvisioningState; } +/** The snapshot resource. */ +export interface Snapshot { + /** + * The resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the snapshot. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The provisioning state of the snapshot. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * The current status of the snapshot. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: SnapshotStatus; + /** A list of filters used to filter the key-values included in the snapshot. */ + filters?: KeyValueFilter[]; + /** The composition type describes how the key-values within the snapshot are composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are no two key-values containing the same key and label. */ + compositionType?: CompositionType; + /** + * The time that the snapshot was created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly created?: Date; + /** + * The time that the snapshot will expire. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expires?: Date; + /** The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions will be used. */ + retentionPeriod?: number; + /** + * The size in bytes of the snapshot. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly size?: number; + /** + * The amount of key-values in the snapshot. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly itemsCount?: number; + /** The tags of the snapshot. NOTE: These are data plane tags, not Azure Resource Manager (ARM) tags. */ + tags?: { [propertyName: string]: string }; + /** + * A value representing the current state of the snapshot. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; +} + +/** Enables filtering of key-values. */ +export interface KeyValueFilter { + /** Filters key-values by their key field. */ + key: string; + /** Filters key-values by their label field. */ + label?: string; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponseAutoGenerated { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + /** The result of a request to list key-values. */ export interface KeyValueListResult { /** The collection value. */ @@ -665,6 +780,8 @@ export interface ConfigurationStore extends TrackedResource { softDeleteRetentionInDays?: number; /** Property specifying whether protection against purge is enabled for this configuration store. */ enablePurgeProtection?: boolean; + /** Property specifying the configuration of data plane proxy for Azure Resource Manager (ARM). */ + dataPlaneProxy?: DataPlaneProxyProperties; /** Indicates whether the configuration store need to be recovered. */ createMode?: CreateMode; } @@ -684,7 +801,7 @@ export enum KnownIdentityType { /** UserAssigned */ UserAssigned = "UserAssigned", /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned, UserAssigned" + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", } /** @@ -712,7 +829,7 @@ export enum KnownProvisioningState { /** Failed */ Failed = "Failed", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -738,7 +855,7 @@ export enum KnownConnectionStatus { /** Rejected */ Rejected = "Rejected", /** Disconnected */ - Disconnected = "Disconnected" + Disconnected = "Disconnected", } /** @@ -758,7 +875,7 @@ export enum KnownActionsRequired { /** None */ None = "None", /** Recreate */ - Recreate = "Recreate" + Recreate = "Recreate", } /** @@ -776,7 +893,7 @@ export enum KnownPublicNetworkAccess { /** Enabled */ Enabled = "Enabled", /** Disabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -789,6 +906,42 @@ export enum KnownPublicNetworkAccess { */ export type PublicNetworkAccess = string; +/** Known values of {@link AuthenticationMode} that the service accepts. */ +export enum KnownAuthenticationMode { + /** The local authentication mode. Users are not required to have data plane permissions if local authentication is not disabled. */ + Local = "Local", + /** The pass-through authentication mode. User identity will be passed through from Azure Resource Manager (ARM), requiring user to have data plane action permissions (Available via App Configuration Data Owner\/ App Configuration Data Reader). */ + PassThrough = "Pass-through", +} + +/** + * Defines values for AuthenticationMode. \ + * {@link KnownAuthenticationMode} can be used interchangeably with AuthenticationMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Local**: The local authentication mode. Users are not required to have data plane permissions if local authentication is not disabled. \ + * **Pass-through**: The pass-through authentication mode. User identity will be passed through from Azure Resource Manager (ARM), requiring user to have data plane action permissions (Available via App Configuration Data Owner\/ App Configuration Data Reader). + */ +export type AuthenticationMode = string; + +/** Known values of {@link PrivateLinkDelegation} that the service accepts. */ +export enum KnownPrivateLinkDelegation { + /** Azure Resource Manager (ARM) private endpoint is required if the resource requires private link. */ + Enabled = "Enabled", + /** Request is denied if the resource requires private link. */ + Disabled = "Disabled", +} + +/** + * Defines values for PrivateLinkDelegation. \ + * {@link KnownPrivateLinkDelegation} can be used interchangeably with PrivateLinkDelegation, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Azure Resource Manager (ARM) private endpoint is required if the resource requires private link. \ + * **Disabled**: Request is denied if the resource requires private link. + */ +export type PrivateLinkDelegation = string; + /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { /** User */ @@ -798,7 +951,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -816,7 +969,7 @@ export type CreatedByType = string; /** Known values of {@link ConfigurationResourceType} that the service accepts. */ export enum KnownConfigurationResourceType { /** MicrosoftAppConfigurationConfigurationStores */ - MicrosoftAppConfigurationConfigurationStores = "Microsoft.AppConfiguration/configurationStores" + MicrosoftAppConfigurationConfigurationStores = "Microsoft.AppConfiguration/configurationStores", } /** @@ -839,7 +992,7 @@ export enum KnownReplicaProvisioningState { /** Failed */ Failed = "Failed", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -854,6 +1007,48 @@ export enum KnownReplicaProvisioningState { * **Canceled** */ export type ReplicaProvisioningState = string; + +/** Known values of {@link SnapshotStatus} that the service accepts. */ +export enum KnownSnapshotStatus { + /** Provisioning */ + Provisioning = "Provisioning", + /** Ready */ + Ready = "Ready", + /** Archived */ + Archived = "Archived", + /** Failed */ + Failed = "Failed", +} + +/** + * Defines values for SnapshotStatus. \ + * {@link KnownSnapshotStatus} can be used interchangeably with SnapshotStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Provisioning** \ + * **Ready** \ + * **Archived** \ + * **Failed** + */ +export type SnapshotStatus = string; + +/** Known values of {@link CompositionType} that the service accepts. */ +export enum KnownCompositionType { + /** Key */ + Key = "Key", + /** KeyLabel */ + KeyLabel = "Key_Label", +} + +/** + * Defines values for CompositionType. \ + * {@link KnownCompositionType} can be used interchangeably with CompositionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Key** \ + * **Key_Label** + */ +export type CompositionType = string; /** Defines values for CreateMode. */ export type CreateMode = "Recover" | "Default"; @@ -875,7 +1070,8 @@ export interface ConfigurationStoresListByResourceGroupOptionalParams } /** Contains response data for the listByResourceGroup operation. */ -export type ConfigurationStoresListByResourceGroupResponse = ConfigurationStoreListResult; +export type ConfigurationStoresListByResourceGroupResponse = + ConfigurationStoreListResult; /** Optional parameters. */ export interface ConfigurationStoresGetOptionalParams @@ -939,7 +1135,8 @@ export interface ConfigurationStoresListDeletedOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listDeleted operation. */ -export type ConfigurationStoresListDeletedResponse = DeletedConfigurationStoreListResult; +export type ConfigurationStoresListDeletedResponse = + DeletedConfigurationStoreListResult; /** Optional parameters. */ export interface ConfigurationStoresGetDeletedOptionalParams @@ -969,7 +1166,8 @@ export interface ConfigurationStoresListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type ConfigurationStoresListByResourceGroupNextResponse = ConfigurationStoreListResult; +export type ConfigurationStoresListByResourceGroupNextResponse = + ConfigurationStoreListResult; /** Optional parameters. */ export interface ConfigurationStoresListKeysNextOptionalParams @@ -983,7 +1181,8 @@ export interface ConfigurationStoresListDeletedNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listDeletedNext operation. */ -export type ConfigurationStoresListDeletedNextResponse = DeletedConfigurationStoreListResult; +export type ConfigurationStoresListDeletedNextResponse = + DeletedConfigurationStoreListResult; /** Optional parameters. */ export interface OperationsCheckNameAvailabilityOptionalParams @@ -1007,7 +1206,8 @@ export interface OperationsRegionalCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the regionalCheckNameAvailability operation. */ -export type OperationsRegionalCheckNameAvailabilityResponse = NameAvailabilityStatus; +export type OperationsRegionalCheckNameAvailabilityResponse = + NameAvailabilityStatus; /** Optional parameters. */ export interface OperationsListNextOptionalParams @@ -1021,7 +1221,8 @@ export interface PrivateEndpointConnectionsListByConfigurationStoreOptionalParam extends coreClient.OperationOptions {} /** Contains response data for the listByConfigurationStore operation. */ -export type PrivateEndpointConnectionsListByConfigurationStoreResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListByConfigurationStoreResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface PrivateEndpointConnectionsGetOptionalParams @@ -1040,7 +1241,8 @@ export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +export type PrivateEndpointConnectionsCreateOrUpdateResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsDeleteOptionalParams @@ -1056,14 +1258,16 @@ export interface PrivateEndpointConnectionsListByConfigurationStoreNextOptionalP extends coreClient.OperationOptions {} /** Contains response data for the listByConfigurationStoreNext operation. */ -export type PrivateEndpointConnectionsListByConfigurationStoreNextResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListByConfigurationStoreNextResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface PrivateLinkResourcesListByConfigurationStoreOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByConfigurationStore operation. */ -export type PrivateLinkResourcesListByConfigurationStoreResponse = PrivateLinkResourceListResult; +export type PrivateLinkResourcesListByConfigurationStoreResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface PrivateLinkResourcesGetOptionalParams @@ -1077,7 +1281,8 @@ export interface PrivateLinkResourcesListByConfigurationStoreNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByConfigurationStoreNext operation. */ -export type PrivateLinkResourcesListByConfigurationStoreNextResponse = PrivateLinkResourceListResult; +export type PrivateLinkResourcesListByConfigurationStoreNextResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface KeyValuesGetOptionalParams @@ -1150,6 +1355,25 @@ export interface ReplicasListByConfigurationStoreNextOptionalParams /** Contains response data for the listByConfigurationStoreNext operation. */ export type ReplicasListByConfigurationStoreNextResponse = ReplicaListResult; +/** Optional parameters. */ +export interface SnapshotsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SnapshotsGetResponse = Snapshot; + +/** Optional parameters. */ +export interface SnapshotsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type SnapshotsCreateResponse = Snapshot; + /** Optional parameters. */ export interface AppConfigurationManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts index 6d7a438ba3ff..4c94c2f9e8fc 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/mappers.ts @@ -20,19 +20,19 @@ export const ConfigurationStoreListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConfigurationStore" - } - } - } + className: "ConfigurationStore", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceIdentity: coreClient.CompositeMapper = { @@ -43,32 +43,32 @@ export const ResourceIdentity: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", - value: { type: { name: "Composite", className: "UserIdentity" } } - } + value: { type: { name: "Composite", className: "UserIdentity" } }, + }, }, principalId: { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserIdentity: coreClient.CompositeMapper = { @@ -80,18 +80,18 @@ export const UserIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionProperties: coreClient.CompositeMapper = { @@ -103,11 +103,11 @@ export const EncryptionProperties: coreClient.CompositeMapper = { serializedName: "keyVaultProperties", type: { name: "Composite", - className: "KeyVaultProperties" - } - } - } - } + className: "KeyVaultProperties", + }, + }, + }, + }, }; export const KeyVaultProperties: coreClient.CompositeMapper = { @@ -118,17 +118,17 @@ export const KeyVaultProperties: coreClient.CompositeMapper = { keyIdentifier: { serializedName: "keyIdentifier", type: { - name: "String" - } + name: "String", + }, }, identityClientId: { serializedName: "identityClientId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnectionReference: coreClient.CompositeMapper = { @@ -140,46 +140,46 @@ export const PrivateEndpointConnectionReference: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - } - } - } + className: "PrivateLinkServiceConnectionState", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -190,11 +190,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -205,24 +205,45 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const DataPlaneProxyProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataPlaneProxyProperties", + modelProperties: { + authenticationMode: { + serializedName: "authenticationMode", + type: { + name: "String", + }, + }, + privateLinkDelegation: { + serializedName: "privateLinkDelegation", + type: { + name: "String", + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -234,11 +255,11 @@ export const Sku: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -249,41 +270,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -295,25 +316,25 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -325,11 +346,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetails" - } - } - } - } + className: "ErrorDetails", + }, + }, + }, + }, }; export const ErrorDetails: coreClient.CompositeMapper = { @@ -341,15 +362,15 @@ export const ErrorDetails: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -359,13 +380,13 @@ export const ErrorDetails: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -377,19 +398,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const ConfigurationStoreUpdateParameters: coreClient.CompositeMapper = { @@ -401,50 +422,57 @@ export const ConfigurationStoreUpdateParameters: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "ResourceIdentity" - } + className: "ResourceIdentity", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, enablePurgeProtection: { serializedName: "properties.enablePurgeProtection", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + dataPlaneProxy: { + serializedName: "properties.dataPlaneProxy", + type: { + name: "Composite", + className: "DataPlaneProxyProperties", + }, + }, + }, + }, }; export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { @@ -456,18 +484,18 @@ export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NameAvailabilityStatus: coreClient.CompositeMapper = { @@ -479,25 +507,25 @@ export const NameAvailabilityStatus: coreClient.CompositeMapper = { serializedName: "nameAvailable", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, reason: { serializedName: "reason", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiKeyListResult: coreClient.CompositeMapper = { @@ -512,19 +540,19 @@ export const ApiKeyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiKey" - } - } - } + className: "ApiKey", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiKey: coreClient.CompositeMapper = { @@ -536,46 +564,46 @@ export const ApiKey: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, connectionString: { serializedName: "connectionString", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, lastModified: { serializedName: "lastModified", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, readOnly: { serializedName: "readOnly", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const RegenerateKeyParameters: coreClient.CompositeMapper = { @@ -586,11 +614,11 @@ export const RegenerateKeyParameters: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationDefinitionListResult: coreClient.CompositeMapper = { @@ -605,19 +633,19 @@ export const OperationDefinitionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationDefinition" - } - } - } + className: "OperationDefinition", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationDefinition: coreClient.CompositeMapper = { @@ -628,37 +656,37 @@ export const OperationDefinition: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDefinitionDisplay" - } + className: "OperationDefinitionDisplay", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "OperationProperties" - } - } - } - } + className: "OperationProperties", + }, + }, + }, + }, }; export const OperationDefinitionDisplay: coreClient.CompositeMapper = { @@ -670,29 +698,29 @@ export const OperationDefinitionDisplay: coreClient.CompositeMapper = { serializedName: "provider", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationProperties: coreClient.CompositeMapper = { @@ -704,11 +732,11 @@ export const OperationProperties: coreClient.CompositeMapper = { serializedName: "serviceSpecification", type: { name: "Composite", - className: "ServiceSpecification" - } - } - } - } + className: "ServiceSpecification", + }, + }, + }, + }, }; export const ServiceSpecification: coreClient.CompositeMapper = { @@ -723,10 +751,10 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LogSpecification" - } - } - } + className: "LogSpecification", + }, + }, + }, }, metricSpecifications: { serializedName: "metricSpecifications", @@ -735,13 +763,13 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetricSpecification" - } - } - } - } - } - } + className: "MetricSpecification", + }, + }, + }, + }, + }, + }, }; export const LogSpecification: coreClient.CompositeMapper = { @@ -752,23 +780,23 @@ export const LogSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, blobDuration: { serializedName: "blobDuration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MetricSpecification: coreClient.CompositeMapper = { @@ -779,38 +807,38 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, displayDescription: { serializedName: "displayDescription", type: { - name: "String" - } + name: "String", + }, }, unit: { serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, aggregationType: { serializedName: "aggregationType", type: { - name: "String" - } + name: "String", + }, }, internalMetricName: { serializedName: "internalMetricName", type: { - name: "String" - } + name: "String", + }, }, dimensions: { serializedName: "dimensions", @@ -819,19 +847,19 @@ export const MetricSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetricDimension" - } - } - } + className: "MetricDimension", + }, + }, + }, }, fillGapWithZero: { serializedName: "fillGapWithZero", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const MetricDimension: coreClient.CompositeMapper = { @@ -842,23 +870,23 @@ export const MetricDimension: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, internalName: { serializedName: "internalName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { @@ -873,19 +901,19 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -897,46 +925,46 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - } - } - } + className: "PrivateLinkServiceConnectionState", + }, + }, + }, + }, }; export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { @@ -951,19 +979,19 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } + className: "PrivateLinkResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -975,29 +1003,29 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, groupId: { serializedName: "properties.groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -1006,10 +1034,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -1018,13 +1046,13 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const KeyValue: coreClient.CompositeMapper = { @@ -1036,79 +1064,79 @@ export const KeyValue: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, key: { serializedName: "properties.key", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "properties.label", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, contentType: { serializedName: "properties.contentType", type: { - name: "String" - } + name: "String", + }, }, eTag: { serializedName: "properties.eTag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, lastModified: { serializedName: "properties.lastModified", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, locked: { serializedName: "properties.locked", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, tags: { serializedName: "properties.tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const DeletedConfigurationStoreListResult: coreClient.CompositeMapper = { @@ -1123,19 +1151,19 @@ export const DeletedConfigurationStoreListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeletedConfigurationStore" - } - } - } + className: "DeletedConfigurationStore", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeletedConfigurationStore: coreClient.CompositeMapper = { @@ -1147,68 +1175,68 @@ export const DeletedConfigurationStore: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, configurationStoreId: { serializedName: "properties.configurationStoreId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "properties.location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, deletionDate: { serializedName: "properties.deletionDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, scheduledPurgeDate: { serializedName: "properties.scheduledPurgeDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, tags: { serializedName: "properties.tags", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, purgeProtectionEnabled: { serializedName: "properties.purgeProtectionEnabled", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ReplicaListResult: coreClient.CompositeMapper = { @@ -1223,19 +1251,19 @@ export const ReplicaListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Replica" - } - } - } + className: "Replica", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Replica: coreClient.CompositeMapper = { @@ -1247,52 +1275,264 @@ export const Replica: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, endpoint: { serializedName: "properties.endpoint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const Snapshot: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Snapshot", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String", + }, + }, + filters: { + constraints: { + MinItems: 1, + MaxItems: 3, + }, + serializedName: "properties.filters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KeyValueFilter", + }, + }, + }, + }, + compositionType: { + serializedName: "properties.compositionType", + type: { + name: "String", + }, + }, + created: { + serializedName: "properties.created", + readOnly: true, + type: { + name: "DateTime", + }, + }, + expires: { + serializedName: "properties.expires", + readOnly: true, + type: { + name: "DateTime", + }, + }, + retentionPeriod: { + constraints: { + InclusiveMaximum: 7776000, + InclusiveMinimum: 3600, + }, + serializedName: "properties.retentionPeriod", + type: { + name: "Number", + }, + }, + size: { + serializedName: "properties.size", + readOnly: true, + type: { + name: "Number", + }, + }, + itemsCount: { + serializedName: "properties.itemsCount", + readOnly: true, + type: { + name: "Number", + }, + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + etag: { + serializedName: "properties.etag", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const KeyValueFilter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyValueFilter", + modelProperties: { + key: { + serializedName: "key", + required: true, + type: { + name: "String", + }, + }, + label: { + serializedName: "label", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, +}; + +export const ErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const KeyValueListResult: coreClient.CompositeMapper = { @@ -1307,19 +1547,19 @@ export const KeyValueListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeyValue" - } - } - } + className: "KeyValue", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -1332,18 +1572,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConfigurationStore: coreClient.CompositeMapper = { @@ -1356,50 +1596,50 @@ export const ConfigurationStore: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "ResourceIdentity" - } + className: "ResourceIdentity", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationDate: { serializedName: "properties.creationDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endpoint: { serializedName: "properties.endpoint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -1409,47 +1649,54 @@ export const ConfigurationStore: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnectionReference" - } - } - } + className: "PrivateEndpointConnectionReference", + }, + }, + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, disableLocalAuth: { defaultValue: false, serializedName: "properties.disableLocalAuth", type: { - name: "Boolean" - } + name: "Boolean", + }, }, softDeleteRetentionInDays: { defaultValue: 7, serializedName: "properties.softDeleteRetentionInDays", type: { - name: "Number" - } + name: "Number", + }, }, enablePurgeProtection: { defaultValue: false, serializedName: "properties.enablePurgeProtection", type: { - name: "Boolean" - } + name: "Boolean", + }, + }, + dataPlaneProxy: { + serializedName: "properties.dataPlaneProxy", + type: { + name: "Composite", + className: "DataPlaneProxyProperties", + }, }, createMode: { serializedName: "properties.createMode", type: { name: "Enum", - allowedValues: ["Recover", "Default"] - } - } - } - } + allowedValues: ["Recover", "Default"], + }, + }, + }, + }, }; export const ReplicasDeleteHeaders: coreClient.CompositeMapper = { @@ -1460,9 +1707,9 @@ export const ReplicasDeleteHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts index b9d751b20a2d..c99906374dd6 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { ConfigurationStore as ConfigurationStoreMapper, @@ -18,7 +18,8 @@ import { CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, KeyValue as KeyValueMapper, - Replica as ReplicaMapper + Replica as ReplicaMapper, + Snapshot as SnapshotMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -28,9 +29,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -39,10 +40,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { @@ -51,21 +52,21 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-03-01", + defaultValue: "2024-05-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skipToken: OperationQueryParameter = { @@ -73,9 +74,9 @@ export const skipToken: OperationQueryParameter = { mapper: { serializedName: "$skipToken", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -84,9 +85,9 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const configStoreName: OperationURLParameter = { @@ -95,14 +96,14 @@ export const configStoreName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]*$"), MaxLength: 50, - MinLength: 5 + MinLength: 5, }, serializedName: "configStoreName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -112,24 +113,24 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const configStoreCreationParameters: OperationParameter = { parameterPath: "configStoreCreationParameters", - mapper: ConfigurationStoreMapper + mapper: ConfigurationStoreMapper, }; export const configStoreUpdateParameters: OperationParameter = { parameterPath: "configStoreUpdateParameters", - mapper: ConfigurationStoreUpdateParametersMapper + mapper: ConfigurationStoreUpdateParametersMapper, }; export const regenerateKeyParameters: OperationParameter = { parameterPath: "regenerateKeyParameters", - mapper: RegenerateKeyParametersMapper + mapper: RegenerateKeyParametersMapper, }; export const location: OperationURLParameter = { @@ -138,9 +139,9 @@ export const location: OperationURLParameter = { serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -149,15 +150,15 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const checkNameAvailabilityParameters: OperationParameter = { parameterPath: "checkNameAvailabilityParameters", - mapper: CheckNameAvailabilityParametersMapper + mapper: CheckNameAvailabilityParametersMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -166,14 +167,14 @@ export const privateEndpointConnectionName: OperationURLParameter = { serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateEndpointConnection: OperationParameter = { parameterPath: "privateEndpointConnection", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const groupName: OperationURLParameter = { @@ -182,9 +183,9 @@ export const groupName: OperationURLParameter = { serializedName: "groupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const keyValueName: OperationURLParameter = { @@ -193,33 +194,33 @@ export const keyValueName: OperationURLParameter = { serializedName: "keyValueName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const keyValueParameters: OperationParameter = { parameterPath: ["options", "keyValueParameters"], - mapper: KeyValueMapper + mapper: KeyValueMapper, }; export const replicaName: OperationURLParameter = { parameterPath: "replicaName", mapper: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]*$") + Pattern: new RegExp("^[a-zA-Z0-9]*$"), }, serializedName: "replicaName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const replicaCreationParameters: OperationParameter = { parameterPath: "replicaCreationParameters", - mapper: ReplicaMapper + mapper: ReplicaMapper, }; export const replicaName1: OperationURLParameter = { @@ -228,7 +229,41 @@ export const replicaName1: OperationURLParameter = { serializedName: "replicaName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const resourceGroupName1: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const snapshotName: OperationURLParameter = { + parameterPath: "snapshotName", + mapper: { + constraints: { + Pattern: new RegExp("^[^\\x00-\\x1F\\x7F]+$"), + }, + serializedName: "snapshotName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const body: OperationParameter = { + parameterPath: "body", + mapper: SnapshotMapper, }; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts index b62af583a242..32622a945335 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts @@ -16,7 +16,7 @@ import { AppConfigurationManagementClient } from "../appConfigurationManagementC import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -52,7 +52,7 @@ import { ConfigurationStoresListNextResponse, ConfigurationStoresListByResourceGroupNextResponse, ConfigurationStoresListKeysNextResponse, - ConfigurationStoresListDeletedNextResponse + ConfigurationStoresListDeletedNextResponse, } from "../models"; /// @@ -73,7 +73,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores { * @param options The options parameters. */ public list( - options?: ConfigurationStoresListOptionalParams + options?: ConfigurationStoresListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -88,13 +88,13 @@ export class ConfigurationStoresImpl implements ConfigurationStores { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ConfigurationStoresListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationStoresListResponse; let continuationToken = settings?.continuationToken; @@ -115,7 +115,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores { } private async *listPagingAll( - options?: ConfigurationStoresListOptionalParams + options?: ConfigurationStoresListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -129,7 +129,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores { */ public listByResourceGroup( resourceGroupName: string, - options?: ConfigurationStoresListByResourceGroupOptionalParams + options?: ConfigurationStoresListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -146,16 +146,16 @@ export class ConfigurationStoresImpl implements ConfigurationStores { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ConfigurationStoresListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationStoresListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -170,7 +170,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -181,11 +181,11 @@ export class ConfigurationStoresImpl implements ConfigurationStores { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ConfigurationStoresListByResourceGroupOptionalParams + options?: ConfigurationStoresListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -200,12 +200,12 @@ export class ConfigurationStoresImpl implements ConfigurationStores { public listKeys( resourceGroupName: string, configStoreName: string, - options?: ConfigurationStoresListKeysOptionalParams + options?: ConfigurationStoresListKeysOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listKeysPagingAll( resourceGroupName, configStoreName, - options + options, ); return { next() { @@ -222,9 +222,9 @@ export class ConfigurationStoresImpl implements ConfigurationStores { resourceGroupName, configStoreName, options, - settings + settings, ); - } + }, }; } @@ -232,7 +232,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores { resourceGroupName: string, configStoreName: string, options?: ConfigurationStoresListKeysOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationStoresListKeysResponse; let continuationToken = settings?.continuationToken; @@ -240,7 +240,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores { result = await this._listKeys( resourceGroupName, configStoreName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -252,7 +252,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores { resourceGroupName, configStoreName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -264,12 +264,12 @@ export class ConfigurationStoresImpl implements ConfigurationStores { private async *listKeysPagingAll( resourceGroupName: string, configStoreName: string, - options?: ConfigurationStoresListKeysOptionalParams + options?: ConfigurationStoresListKeysOptionalParams, ): AsyncIterableIterator { for await (const page of this.listKeysPagingPage( resourceGroupName, configStoreName, - options + options, )) { yield* page; } @@ -280,7 +280,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores { * @param options The options parameters. */ public listDeleted( - options?: ConfigurationStoresListDeletedOptionalParams + options?: ConfigurationStoresListDeletedOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listDeletedPagingAll(options); return { @@ -295,13 +295,13 @@ export class ConfigurationStoresImpl implements ConfigurationStores { throw new Error("maxPageSize is not supported by this operation."); } return this.listDeletedPagingPage(options, settings); - } + }, }; } private async *listDeletedPagingPage( options?: ConfigurationStoresListDeletedOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationStoresListDeletedResponse; let continuationToken = settings?.continuationToken; @@ -322,7 +322,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores { } private async *listDeletedPagingAll( - options?: ConfigurationStoresListDeletedOptionalParams + options?: ConfigurationStoresListDeletedOptionalParams, ): AsyncIterableIterator { for await (const page of this.listDeletedPagingPage(options)) { yield* page; @@ -334,7 +334,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores { * @param options The options parameters. */ private _list( - options?: ConfigurationStoresListOptionalParams + options?: ConfigurationStoresListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -346,11 +346,11 @@ export class ConfigurationStoresImpl implements ConfigurationStores { */ private _listByResourceGroup( resourceGroupName: string, - options?: ConfigurationStoresListByResourceGroupOptionalParams + options?: ConfigurationStoresListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -363,11 +363,11 @@ export class ConfigurationStoresImpl implements ConfigurationStores { get( resourceGroupName: string, configStoreName: string, - options?: ConfigurationStoresGetOptionalParams + options?: ConfigurationStoresGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, options }, - getOperationSpec + getOperationSpec, ); } @@ -382,7 +382,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores { resourceGroupName: string, configStoreName: string, configStoreCreationParameters: ConfigurationStore, - options?: ConfigurationStoresCreateOptionalParams + options?: ConfigurationStoresCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -391,21 +391,20 @@ export class ConfigurationStoresImpl implements ConfigurationStores { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -414,8 +413,8 @@ export class ConfigurationStoresImpl implements ConfigurationStores { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -423,8 +422,8 @@ export class ConfigurationStoresImpl implements ConfigurationStores { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -434,16 +433,16 @@ export class ConfigurationStoresImpl implements ConfigurationStores { resourceGroupName, configStoreName, configStoreCreationParameters, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< ConfigurationStoresCreateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -460,13 +459,13 @@ export class ConfigurationStoresImpl implements ConfigurationStores { resourceGroupName: string, configStoreName: string, configStoreCreationParameters: ConfigurationStore, - options?: ConfigurationStoresCreateOptionalParams + options?: ConfigurationStoresCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, configStoreName, configStoreCreationParameters, - options + options, ); return poller.pollUntilDone(); } @@ -480,25 +479,24 @@ export class ConfigurationStoresImpl implements ConfigurationStores { async beginDelete( resourceGroupName: string, configStoreName: string, - options?: ConfigurationStoresDeleteOptionalParams + options?: ConfigurationStoresDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -507,8 +505,8 @@ export class ConfigurationStoresImpl implements ConfigurationStores { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -516,19 +514,19 @@ export class ConfigurationStoresImpl implements ConfigurationStores { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, configStoreName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -543,12 +541,12 @@ export class ConfigurationStoresImpl implements ConfigurationStores { async beginDeleteAndWait( resourceGroupName: string, configStoreName: string, - options?: ConfigurationStoresDeleteOptionalParams + options?: ConfigurationStoresDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, configStoreName, - options + options, ); return poller.pollUntilDone(); } @@ -564,7 +562,7 @@ export class ConfigurationStoresImpl implements ConfigurationStores { resourceGroupName: string, configStoreName: string, configStoreUpdateParameters: ConfigurationStoreUpdateParameters, - options?: ConfigurationStoresUpdateOptionalParams + options?: ConfigurationStoresUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -573,21 +571,20 @@ export class ConfigurationStoresImpl implements ConfigurationStores { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -596,8 +593,8 @@ export class ConfigurationStoresImpl implements ConfigurationStores { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -605,8 +602,8 @@ export class ConfigurationStoresImpl implements ConfigurationStores { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -616,16 +613,16 @@ export class ConfigurationStoresImpl implements ConfigurationStores { resourceGroupName, configStoreName, configStoreUpdateParameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ConfigurationStoresUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -642,13 +639,13 @@ export class ConfigurationStoresImpl implements ConfigurationStores { resourceGroupName: string, configStoreName: string, configStoreUpdateParameters: ConfigurationStoreUpdateParameters, - options?: ConfigurationStoresUpdateOptionalParams + options?: ConfigurationStoresUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, configStoreName, configStoreUpdateParameters, - options + options, ); return poller.pollUntilDone(); } @@ -662,11 +659,11 @@ export class ConfigurationStoresImpl implements ConfigurationStores { private _listKeys( resourceGroupName: string, configStoreName: string, - options?: ConfigurationStoresListKeysOptionalParams + options?: ConfigurationStoresListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, options }, - listKeysOperationSpec + listKeysOperationSpec, ); } @@ -681,11 +678,11 @@ export class ConfigurationStoresImpl implements ConfigurationStores { resourceGroupName: string, configStoreName: string, regenerateKeyParameters: RegenerateKeyParameters, - options?: ConfigurationStoresRegenerateKeyOptionalParams + options?: ConfigurationStoresRegenerateKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, regenerateKeyParameters, options }, - regenerateKeyOperationSpec + regenerateKeyOperationSpec, ); } @@ -694,11 +691,11 @@ export class ConfigurationStoresImpl implements ConfigurationStores { * @param options The options parameters. */ private _listDeleted( - options?: ConfigurationStoresListDeletedOptionalParams + options?: ConfigurationStoresListDeletedOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listDeletedOperationSpec + listDeletedOperationSpec, ); } @@ -711,11 +708,11 @@ export class ConfigurationStoresImpl implements ConfigurationStores { getDeleted( location: string, configStoreName: string, - options?: ConfigurationStoresGetDeletedOptionalParams + options?: ConfigurationStoresGetDeletedOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, configStoreName, options }, - getDeletedOperationSpec + getDeletedOperationSpec, ); } @@ -728,25 +725,24 @@ export class ConfigurationStoresImpl implements ConfigurationStores { async beginPurgeDeleted( location: string, configStoreName: string, - options?: ConfigurationStoresPurgeDeletedOptionalParams + options?: ConfigurationStoresPurgeDeletedOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -755,8 +751,8 @@ export class ConfigurationStoresImpl implements ConfigurationStores { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -764,19 +760,19 @@ export class ConfigurationStoresImpl implements ConfigurationStores { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { location, configStoreName, options }, - spec: purgeDeletedOperationSpec + spec: purgeDeletedOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -791,12 +787,12 @@ export class ConfigurationStoresImpl implements ConfigurationStores { async beginPurgeDeletedAndWait( location: string, configStoreName: string, - options?: ConfigurationStoresPurgeDeletedOptionalParams + options?: ConfigurationStoresPurgeDeletedOptionalParams, ): Promise { const poller = await this.beginPurgeDeleted( location, configStoreName, - options + options, ); return poller.pollUntilDone(); } @@ -808,11 +804,11 @@ export class ConfigurationStoresImpl implements ConfigurationStores { */ private _listNext( nextLink: string, - options?: ConfigurationStoresListNextOptionalParams + options?: ConfigurationStoresListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -825,11 +821,11 @@ export class ConfigurationStoresImpl implements ConfigurationStores { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ConfigurationStoresListByResourceGroupNextOptionalParams + options?: ConfigurationStoresListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -844,11 +840,11 @@ export class ConfigurationStoresImpl implements ConfigurationStores { resourceGroupName: string, configStoreName: string, nextLink: string, - options?: ConfigurationStoresListKeysNextOptionalParams + options?: ConfigurationStoresListKeysNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, nextLink, options }, - listKeysNextOperationSpec + listKeysNextOperationSpec, ); } @@ -859,11 +855,11 @@ export class ConfigurationStoresImpl implements ConfigurationStores { */ private _listDeletedNext( nextLink: string, - options?: ConfigurationStoresListDeletedNextOptionalParams + options?: ConfigurationStoresListDeletedNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listDeletedNextOperationSpec + listDeletedNextOperationSpec, ); } } @@ -871,85 +867,81 @@ export class ConfigurationStoresImpl implements ConfigurationStores { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/configurationStores", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/configurationStores", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationStoreListResult + bodyMapper: Mappers.ConfigurationStoreListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationStoreListResult + bodyMapper: Mappers.ConfigurationStoreListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationStore + bodyMapper: Mappers.ConfigurationStore, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.configStoreName + Parameters.configStoreName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ConfigurationStore + bodyMapper: Mappers.ConfigurationStore, }, 201: { - bodyMapper: Mappers.ConfigurationStore + bodyMapper: Mappers.ConfigurationStore, }, 202: { - bodyMapper: Mappers.ConfigurationStore + bodyMapper: Mappers.ConfigurationStore, }, 204: { - bodyMapper: Mappers.ConfigurationStore + bodyMapper: Mappers.ConfigurationStore, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.configStoreCreationParameters, queryParameters: [Parameters.apiVersion], @@ -957,15 +949,14 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.configStoreName + Parameters.configStoreName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}", httpMethod: "DELETE", responses: { 200: {}, @@ -973,39 +964,38 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.configStoreName + Parameters.configStoreName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ConfigurationStore + bodyMapper: Mappers.ConfigurationStore, }, 201: { - bodyMapper: Mappers.ConfigurationStore + bodyMapper: Mappers.ConfigurationStore, }, 202: { - bodyMapper: Mappers.ConfigurationStore + bodyMapper: Mappers.ConfigurationStore, }, 204: { - bodyMapper: Mappers.ConfigurationStore + bodyMapper: Mappers.ConfigurationStore, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.configStoreUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -1013,45 +1003,43 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.configStoreName + Parameters.configStoreName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiKeyListResult + bodyMapper: Mappers.ApiKeyListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.configStoreName + Parameters.configStoreName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/regenerateKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/regenerateKey", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiKey + bodyMapper: Mappers.ApiKey, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.regenerateKeyParameters, queryParameters: [Parameters.apiVersion], @@ -1059,54 +1047,51 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.configStoreName + Parameters.configStoreName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listDeletedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/deletedConfigurationStores", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/deletedConfigurationStores", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedConfigurationStoreListResult + bodyMapper: Mappers.DeletedConfigurationStoreListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getDeletedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/locations/{location}/deletedConfigurationStores/{configStoreName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/locations/{location}/deletedConfigurationStores/{configStoreName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedConfigurationStore + bodyMapper: Mappers.DeletedConfigurationStore, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.configStoreName, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const purgeDeletedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/locations/{location}/deletedConfigurationStores/{configStoreName}/purge", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/locations/{location}/deletedConfigurationStores/{configStoreName}/purge", httpMethod: "POST", responses: { 200: {}, @@ -1114,95 +1099,95 @@ const purgeDeletedOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.configStoreName, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationStoreListResult + bodyMapper: Mappers.ConfigurationStoreListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationStoreListResult + bodyMapper: Mappers.ConfigurationStoreListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listKeysNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiKeyListResult + bodyMapper: Mappers.ApiKeyListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listDeletedNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedConfigurationStoreListResult + bodyMapper: Mappers.DeletedConfigurationStoreListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts index d89b90237128..2a23425b1db3 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts @@ -12,3 +12,4 @@ export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./keyValues"; export * from "./replicas"; +export * from "./snapshots"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts index 67b67e232da4..b38ebf2cfee6 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts @@ -14,7 +14,7 @@ import { AppConfigurationManagementClient } from "../appConfigurationManagementC import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -22,7 +22,7 @@ import { KeyValuesGetResponse, KeyValuesCreateOrUpdateOptionalParams, KeyValuesCreateOrUpdateResponse, - KeyValuesDeleteOptionalParams + KeyValuesDeleteOptionalParams, } from "../models"; /** Class containing KeyValues operations. */ @@ -38,7 +38,9 @@ export class KeyValuesImpl implements KeyValues { } /** - * Gets the properties of the specified key-value. + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM + * Template deployments. For all other scenarios involving App Configuration key-values the data plane + * API should be used instead. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ @@ -49,16 +51,17 @@ export class KeyValuesImpl implements KeyValues { resourceGroupName: string, configStoreName: string, keyValueName: string, - options?: KeyValuesGetOptionalParams + options?: KeyValuesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, keyValueName, options }, - getOperationSpec + getOperationSpec, ); } /** - * Creates a key-value. + * Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all + * other scenarios involving App Configuration key-values the data plane API should be used instead. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ @@ -69,16 +72,17 @@ export class KeyValuesImpl implements KeyValues { resourceGroupName: string, configStoreName: string, keyValueName: string, - options?: KeyValuesCreateOrUpdateOptionalParams + options?: KeyValuesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, keyValueName, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } /** - * Deletes a key-value. + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all + * other scenarios involving App Configuration key-values the data plane API should be used instead. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ @@ -89,25 +93,24 @@ export class KeyValuesImpl implements KeyValues { resourceGroupName: string, configStoreName: string, keyValueName: string, - options?: KeyValuesDeleteOptionalParams + options?: KeyValuesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -116,8 +119,8 @@ export class KeyValuesImpl implements KeyValues { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -125,26 +128,27 @@ export class KeyValuesImpl implements KeyValues { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, configStoreName, keyValueName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; } /** - * Deletes a key-value. + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all + * other scenarios involving App Configuration key-values the data plane API should be used instead. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ @@ -155,13 +159,13 @@ export class KeyValuesImpl implements KeyValues { resourceGroupName: string, configStoreName: string, keyValueName: string, - options?: KeyValuesDeleteOptionalParams + options?: KeyValuesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, configStoreName, keyValueName, - options + options, ); return poller.pollUntilDone(); } @@ -170,16 +174,15 @@ export class KeyValuesImpl implements KeyValues { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KeyValue + bodyMapper: Mappers.KeyValue, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -187,22 +190,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.keyValueName + Parameters.keyValueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.KeyValue + bodyMapper: Mappers.KeyValue, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.keyValueParameters, queryParameters: [Parameters.apiVersion], @@ -211,15 +213,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.keyValueName + Parameters.keyValueName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}", httpMethod: "DELETE", responses: { 200: {}, @@ -227,8 +228,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -236,8 +237,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.keyValueName + Parameters.keyValueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts index 69f93998b5f8..d78df4cb2e02 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts @@ -23,7 +23,7 @@ import { OperationsCheckNameAvailabilityResponse, OperationsRegionalCheckNameAvailabilityOptionalParams, OperationsRegionalCheckNameAvailabilityResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -44,7 +44,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -59,13 +59,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -86,7 +86,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -101,11 +101,11 @@ export class OperationsImpl implements Operations { */ checkNameAvailability( checkNameAvailabilityParameters: CheckNameAvailabilityParameters, - options?: OperationsCheckNameAvailabilityOptionalParams + options?: OperationsCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { checkNameAvailabilityParameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -114,7 +114,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -129,11 +129,11 @@ export class OperationsImpl implements Operations { regionalCheckNameAvailability( location: string, checkNameAvailabilityParameters: CheckNameAvailabilityParameters, - options?: OperationsRegionalCheckNameAvailabilityOptionalParams + options?: OperationsRegionalCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, checkNameAvailabilityParameters, options }, - regionalCheckNameAvailabilityOperationSpec + regionalCheckNameAvailabilityOperationSpec, ); } @@ -144,11 +144,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -156,75 +156,73 @@ export class OperationsImpl implements Operations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NameAvailabilityStatus + bodyMapper: Mappers.NameAvailabilityStatus, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.checkNameAvailabilityParameters, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.AppConfiguration/operations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationDefinitionListResult + bodyMapper: Mappers.OperationDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const regionalCheckNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/locations/{location}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/locations/{location}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NameAvailabilityStatus + bodyMapper: Mappers.NameAvailabilityStatus, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.checkNameAvailabilityParameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationDefinitionListResult + bodyMapper: Mappers.OperationDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts index 9ad78f22579b..ba758fa17257 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts @@ -16,7 +16,7 @@ import { AppConfigurationManagementClient } from "../appConfigurationManagementC import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,13 +29,14 @@ import { PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, - PrivateEndpointConnectionsListByConfigurationStoreNextResponse + PrivateEndpointConnectionsListByConfigurationStoreNextResponse, } from "../models"; /// /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl - implements PrivateEndpointConnections { + implements PrivateEndpointConnections +{ private readonly client: AppConfigurationManagementClient; /** @@ -55,12 +56,12 @@ export class PrivateEndpointConnectionsImpl public listByConfigurationStore( resourceGroupName: string, configStoreName: string, - options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams + options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByConfigurationStorePagingAll( resourceGroupName, configStoreName, - options + options, ); return { next() { @@ -77,9 +78,9 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, configStoreName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +88,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, configStoreName: string, options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionsListByConfigurationStoreResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +96,7 @@ export class PrivateEndpointConnectionsImpl result = await this._listByConfigurationStore( resourceGroupName, configStoreName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +108,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, configStoreName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -119,12 +120,12 @@ export class PrivateEndpointConnectionsImpl private async *listByConfigurationStorePagingAll( resourceGroupName: string, configStoreName: string, - options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams + options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByConfigurationStorePagingPage( resourceGroupName, configStoreName, - options + options, )) { yield* page; } @@ -139,11 +140,11 @@ export class PrivateEndpointConnectionsImpl private _listByConfigurationStore( resourceGroupName: string, configStoreName: string, - options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams + options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, options }, - listByConfigurationStoreOperationSpec + listByConfigurationStoreOperationSpec, ); } @@ -158,16 +159,16 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, configStoreName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, privateEndpointConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -186,7 +187,7 @@ export class PrivateEndpointConnectionsImpl configStoreName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -195,21 +196,20 @@ export class PrivateEndpointConnectionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -218,8 +218,8 @@ export class PrivateEndpointConnectionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -227,8 +227,8 @@ export class PrivateEndpointConnectionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -239,16 +239,16 @@ export class PrivateEndpointConnectionsImpl configStoreName, privateEndpointConnectionName, privateEndpointConnection, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PrivateEndpointConnectionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -269,14 +269,14 @@ export class PrivateEndpointConnectionsImpl configStoreName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, configStoreName, privateEndpointConnectionName, privateEndpointConnection, - options + options, ); return poller.pollUntilDone(); } @@ -292,25 +292,24 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, configStoreName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -319,8 +318,8 @@ export class PrivateEndpointConnectionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -328,8 +327,8 @@ export class PrivateEndpointConnectionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -339,13 +338,13 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, configStoreName, privateEndpointConnectionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -362,13 +361,13 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, configStoreName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, configStoreName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -385,11 +384,11 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, configStoreName: string, nextLink: string, - options?: PrivateEndpointConnectionsListByConfigurationStoreNextOptionalParams + options?: PrivateEndpointConnectionsListByConfigurationStoreNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, nextLink, options }, - listByConfigurationStoreNextOperationSpec + listByConfigurationStoreNextOperationSpec, ); } } @@ -397,38 +396,36 @@ export class PrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByConfigurationStoreOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.configStoreName + Parameters.configStoreName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -436,31 +433,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 202: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.privateEndpointConnection, queryParameters: [Parameters.apiVersion], @@ -469,15 +465,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -485,8 +480,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -494,29 +489,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByConfigurationStoreNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts index d7df4f117d8f..947d2ecb6ba6 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts @@ -20,7 +20,7 @@ import { PrivateLinkResourcesListByConfigurationStoreResponse, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse, - PrivateLinkResourcesListByConfigurationStoreNextResponse + PrivateLinkResourcesListByConfigurationStoreNextResponse, } from "../models"; /// @@ -45,12 +45,12 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { public listByConfigurationStore( resourceGroupName: string, configStoreName: string, - options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams + options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByConfigurationStorePagingAll( resourceGroupName, configStoreName, - options + options, ); return { next() { @@ -67,9 +67,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { resourceGroupName, configStoreName, options, - settings + settings, ); - } + }, }; } @@ -77,7 +77,7 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { resourceGroupName: string, configStoreName: string, options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateLinkResourcesListByConfigurationStoreResponse; let continuationToken = settings?.continuationToken; @@ -85,7 +85,7 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { result = await this._listByConfigurationStore( resourceGroupName, configStoreName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -97,7 +97,7 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { resourceGroupName, configStoreName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -109,12 +109,12 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { private async *listByConfigurationStorePagingAll( resourceGroupName: string, configStoreName: string, - options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams + options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByConfigurationStorePagingPage( resourceGroupName, configStoreName, - options + options, )) { yield* page; } @@ -129,11 +129,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { private _listByConfigurationStore( resourceGroupName: string, configStoreName: string, - options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams + options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, options }, - listByConfigurationStoreOperationSpec + listByConfigurationStoreOperationSpec, ); } @@ -148,11 +148,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { resourceGroupName: string, configStoreName: string, groupName: string, - options?: PrivateLinkResourcesGetOptionalParams + options?: PrivateLinkResourcesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, groupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -168,11 +168,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { resourceGroupName: string, configStoreName: string, nextLink: string, - options?: PrivateLinkResourcesListByConfigurationStoreNextOptionalParams + options?: PrivateLinkResourcesListByConfigurationStoreNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, nextLink, options }, - listByConfigurationStoreNextOperationSpec + listByConfigurationStoreNextOperationSpec, ); } } @@ -180,38 +180,36 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByConfigurationStoreOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.PrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.configStoreName + Parameters.configStoreName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources/{groupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources/{groupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResource + bodyMapper: Mappers.PrivateLinkResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -219,29 +217,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.groupName + Parameters.groupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByConfigurationStoreNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.PrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/replicas.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/replicas.ts index 78aaea25a9e0..ae631bd8f833 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operations/replicas.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/replicas.ts @@ -16,7 +16,7 @@ import { AppConfigurationManagementClient } from "../appConfigurationManagementC import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { ReplicasCreateOptionalParams, ReplicasCreateResponse, ReplicasDeleteOptionalParams, - ReplicasListByConfigurationStoreNextResponse + ReplicasListByConfigurationStoreNextResponse, } from "../models"; /// @@ -54,12 +54,12 @@ export class ReplicasImpl implements Replicas { public listByConfigurationStore( resourceGroupName: string, configStoreName: string, - options?: ReplicasListByConfigurationStoreOptionalParams + options?: ReplicasListByConfigurationStoreOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByConfigurationStorePagingAll( resourceGroupName, configStoreName, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class ReplicasImpl implements Replicas { resourceGroupName, configStoreName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class ReplicasImpl implements Replicas { resourceGroupName: string, configStoreName: string, options?: ReplicasListByConfigurationStoreOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReplicasListByConfigurationStoreResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class ReplicasImpl implements Replicas { result = await this._listByConfigurationStore( resourceGroupName, configStoreName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class ReplicasImpl implements Replicas { resourceGroupName, configStoreName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class ReplicasImpl implements Replicas { private async *listByConfigurationStorePagingAll( resourceGroupName: string, configStoreName: string, - options?: ReplicasListByConfigurationStoreOptionalParams + options?: ReplicasListByConfigurationStoreOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByConfigurationStorePagingPage( resourceGroupName, configStoreName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ReplicasImpl implements Replicas { private _listByConfigurationStore( resourceGroupName: string, configStoreName: string, - options?: ReplicasListByConfigurationStoreOptionalParams + options?: ReplicasListByConfigurationStoreOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, options }, - listByConfigurationStoreOperationSpec + listByConfigurationStoreOperationSpec, ); } @@ -157,11 +157,11 @@ export class ReplicasImpl implements Replicas { resourceGroupName: string, configStoreName: string, replicaName: string, - options?: ReplicasGetOptionalParams + options?: ReplicasGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, replicaName, options }, - getOperationSpec + getOperationSpec, ); } @@ -178,7 +178,7 @@ export class ReplicasImpl implements Replicas { configStoreName: string, replicaName: string, replicaCreationParameters: Replica, - options?: ReplicasCreateOptionalParams + options?: ReplicasCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -187,21 +187,20 @@ export class ReplicasImpl implements Replicas { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -210,8 +209,8 @@ export class ReplicasImpl implements Replicas { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -219,8 +218,8 @@ export class ReplicasImpl implements Replicas { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -231,9 +230,9 @@ export class ReplicasImpl implements Replicas { configStoreName, replicaName, replicaCreationParameters, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< ReplicasCreateResponse, @@ -241,7 +240,7 @@ export class ReplicasImpl implements Replicas { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -260,14 +259,14 @@ export class ReplicasImpl implements Replicas { configStoreName: string, replicaName: string, replicaCreationParameters: Replica, - options?: ReplicasCreateOptionalParams + options?: ReplicasCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, configStoreName, replicaName, replicaCreationParameters, - options + options, ); return poller.pollUntilDone(); } @@ -283,25 +282,24 @@ export class ReplicasImpl implements Replicas { resourceGroupName: string, configStoreName: string, replicaName: string, - options?: ReplicasDeleteOptionalParams + options?: ReplicasDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -310,8 +308,8 @@ export class ReplicasImpl implements Replicas { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -319,20 +317,20 @@ export class ReplicasImpl implements Replicas { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, configStoreName, replicaName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -349,13 +347,13 @@ export class ReplicasImpl implements Replicas { resourceGroupName: string, configStoreName: string, replicaName: string, - options?: ReplicasDeleteOptionalParams + options?: ReplicasDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, configStoreName, replicaName, - options + options, ); return poller.pollUntilDone(); } @@ -372,11 +370,11 @@ export class ReplicasImpl implements Replicas { resourceGroupName: string, configStoreName: string, nextLink: string, - options?: ReplicasListByConfigurationStoreNextOptionalParams + options?: ReplicasListByConfigurationStoreNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configStoreName, nextLink, options }, - listByConfigurationStoreNextOperationSpec + listByConfigurationStoreNextOperationSpec, ); } } @@ -384,38 +382,36 @@ export class ReplicasImpl implements Replicas { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByConfigurationStoreOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/replicas", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/replicas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReplicaListResult + bodyMapper: Mappers.ReplicaListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skipToken], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.configStoreName + Parameters.configStoreName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/replicas/{replicaName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/replicas/{replicaName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -423,31 +419,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.replicaName + Parameters.replicaName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/replicas/{replicaName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/replicas/{replicaName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, 201: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, 202: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, 204: { - bodyMapper: Mappers.Replica + bodyMapper: Mappers.Replica, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.replicaCreationParameters, queryParameters: [Parameters.apiVersion], @@ -456,15 +451,14 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.replicaName1 + Parameters.replicaName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/replicas/{replicaName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/replicas/{replicaName}", httpMethod: "DELETE", responses: { 200: {}, @@ -472,8 +466,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -481,29 +475,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.replicaName1 + Parameters.replicaName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByConfigurationStoreNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReplicaListResult + bodyMapper: Mappers.ReplicaListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configStoreName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/snapshots.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/snapshots.ts new file mode 100644 index 000000000000..6c3c6de3e90a --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/snapshots.ts @@ -0,0 +1,222 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { Snapshots } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AppConfigurationManagementClient } from "../appConfigurationManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + SnapshotsGetOptionalParams, + SnapshotsGetResponse, + Snapshot, + SnapshotsCreateOptionalParams, + SnapshotsCreateResponse, +} from "../models"; + +/** Class containing Snapshots operations. */ +export class SnapshotsImpl implements Snapshots { + private readonly client: AppConfigurationManagementClient; + + /** + * Initialize a new instance of the class Snapshots class. + * @param client Reference to the service client + */ + constructor(client: AppConfigurationManagementClient) { + this.client = client; + } + + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure + * Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration + * snapshots the data plane API should be used instead. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + configStoreName: string, + snapshotName: string, + options?: SnapshotsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, configStoreName, snapshotName, options }, + getOperationSpec, + ); + } + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) + * Template deployments. For all other scenarios involving App Configuration snapshots the data plane + * API should be used instead. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + configStoreName: string, + snapshotName: string, + body: Snapshot, + options?: SnapshotsCreateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + SnapshotsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, configStoreName, snapshotName, body, options }, + spec: createOperationSpec, + }); + const poller = await createHttpPoller< + SnapshotsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) + * Template deployments. For all other scenarios involving App Configuration snapshots the data plane + * API should be used instead. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + configStoreName: string, + snapshotName: string, + body: Snapshot, + options?: SnapshotsCreateOptionalParams, + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + configStoreName, + snapshotName, + body, + options, + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/snapshots/{snapshotName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Snapshot, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.configStoreName, + Parameters.resourceGroupName1, + Parameters.snapshotName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/snapshots/{snapshotName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Snapshot, + }, + 201: { + bodyMapper: Mappers.Snapshot, + }, + 202: { + bodyMapper: Mappers.Snapshot, + }, + 204: { + bodyMapper: Mappers.Snapshot, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + requestBody: Parameters.body, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.configStoreName, + Parameters.resourceGroupName1, + Parameters.snapshotName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/configurationStores.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/configurationStores.ts index dbe75b375017..fd7c9608ec66 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/configurationStores.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/configurationStores.ts @@ -29,7 +29,7 @@ import { ConfigurationStoresRegenerateKeyResponse, ConfigurationStoresGetDeletedOptionalParams, ConfigurationStoresGetDeletedResponse, - ConfigurationStoresPurgeDeletedOptionalParams + ConfigurationStoresPurgeDeletedOptionalParams, } from "../models"; /// @@ -40,7 +40,7 @@ export interface ConfigurationStores { * @param options The options parameters. */ list( - options?: ConfigurationStoresListOptionalParams + options?: ConfigurationStoresListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the configuration stores for a given resource group. @@ -49,7 +49,7 @@ export interface ConfigurationStores { */ listByResourceGroup( resourceGroupName: string, - options?: ConfigurationStoresListByResourceGroupOptionalParams + options?: ConfigurationStoresListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the access key for the specified configuration store. @@ -60,14 +60,14 @@ export interface ConfigurationStores { listKeys( resourceGroupName: string, configStoreName: string, - options?: ConfigurationStoresListKeysOptionalParams + options?: ConfigurationStoresListKeysOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the deleted configuration stores in a subscription. * @param options The options parameters. */ listDeleted( - options?: ConfigurationStoresListDeletedOptionalParams + options?: ConfigurationStoresListDeletedOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the properties of the specified configuration store. @@ -78,7 +78,7 @@ export interface ConfigurationStores { get( resourceGroupName: string, configStoreName: string, - options?: ConfigurationStoresGetOptionalParams + options?: ConfigurationStoresGetOptionalParams, ): Promise; /** * Creates a configuration store with the specified parameters. @@ -91,7 +91,7 @@ export interface ConfigurationStores { resourceGroupName: string, configStoreName: string, configStoreCreationParameters: ConfigurationStore, - options?: ConfigurationStoresCreateOptionalParams + options?: ConfigurationStoresCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -109,7 +109,7 @@ export interface ConfigurationStores { resourceGroupName: string, configStoreName: string, configStoreCreationParameters: ConfigurationStore, - options?: ConfigurationStoresCreateOptionalParams + options?: ConfigurationStoresCreateOptionalParams, ): Promise; /** * Deletes a configuration store. @@ -120,7 +120,7 @@ export interface ConfigurationStores { beginDelete( resourceGroupName: string, configStoreName: string, - options?: ConfigurationStoresDeleteOptionalParams + options?: ConfigurationStoresDeleteOptionalParams, ): Promise, void>>; /** * Deletes a configuration store. @@ -131,7 +131,7 @@ export interface ConfigurationStores { beginDeleteAndWait( resourceGroupName: string, configStoreName: string, - options?: ConfigurationStoresDeleteOptionalParams + options?: ConfigurationStoresDeleteOptionalParams, ): Promise; /** * Updates a configuration store with the specified parameters. @@ -144,7 +144,7 @@ export interface ConfigurationStores { resourceGroupName: string, configStoreName: string, configStoreUpdateParameters: ConfigurationStoreUpdateParameters, - options?: ConfigurationStoresUpdateOptionalParams + options?: ConfigurationStoresUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -162,7 +162,7 @@ export interface ConfigurationStores { resourceGroupName: string, configStoreName: string, configStoreUpdateParameters: ConfigurationStoreUpdateParameters, - options?: ConfigurationStoresUpdateOptionalParams + options?: ConfigurationStoresUpdateOptionalParams, ): Promise; /** * Regenerates an access key for the specified configuration store. @@ -175,7 +175,7 @@ export interface ConfigurationStores { resourceGroupName: string, configStoreName: string, regenerateKeyParameters: RegenerateKeyParameters, - options?: ConfigurationStoresRegenerateKeyOptionalParams + options?: ConfigurationStoresRegenerateKeyOptionalParams, ): Promise; /** * Gets a deleted Azure app configuration store. @@ -186,7 +186,7 @@ export interface ConfigurationStores { getDeleted( location: string, configStoreName: string, - options?: ConfigurationStoresGetDeletedOptionalParams + options?: ConfigurationStoresGetDeletedOptionalParams, ): Promise; /** * Permanently deletes the specified configuration store. @@ -197,7 +197,7 @@ export interface ConfigurationStores { beginPurgeDeleted( location: string, configStoreName: string, - options?: ConfigurationStoresPurgeDeletedOptionalParams + options?: ConfigurationStoresPurgeDeletedOptionalParams, ): Promise, void>>; /** * Permanently deletes the specified configuration store. @@ -208,6 +208,6 @@ export interface ConfigurationStores { beginPurgeDeletedAndWait( location: string, configStoreName: string, - options?: ConfigurationStoresPurgeDeletedOptionalParams + options?: ConfigurationStoresPurgeDeletedOptionalParams, ): Promise; } diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/index.ts index d89b90237128..2a23425b1db3 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/index.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/index.ts @@ -12,3 +12,4 @@ export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./keyValues"; export * from "./replicas"; +export * from "./snapshots"; diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/keyValues.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/keyValues.ts index 446763557a11..f3cf7fe3502e 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/keyValues.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/keyValues.ts @@ -12,13 +12,15 @@ import { KeyValuesGetResponse, KeyValuesCreateOrUpdateOptionalParams, KeyValuesCreateOrUpdateResponse, - KeyValuesDeleteOptionalParams + KeyValuesDeleteOptionalParams, } from "../models"; /** Interface representing a KeyValues. */ export interface KeyValues { /** - * Gets the properties of the specified key-value. + * Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM + * Template deployments. For all other scenarios involving App Configuration key-values the data plane + * API should be used instead. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ @@ -29,10 +31,11 @@ export interface KeyValues { resourceGroupName: string, configStoreName: string, keyValueName: string, - options?: KeyValuesGetOptionalParams + options?: KeyValuesGetOptionalParams, ): Promise; /** - * Creates a key-value. + * Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all + * other scenarios involving App Configuration key-values the data plane API should be used instead. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ @@ -43,10 +46,11 @@ export interface KeyValues { resourceGroupName: string, configStoreName: string, keyValueName: string, - options?: KeyValuesCreateOrUpdateOptionalParams + options?: KeyValuesCreateOrUpdateOptionalParams, ): Promise; /** - * Deletes a key-value. + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all + * other scenarios involving App Configuration key-values the data plane API should be used instead. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ @@ -57,10 +61,11 @@ export interface KeyValues { resourceGroupName: string, configStoreName: string, keyValueName: string, - options?: KeyValuesDeleteOptionalParams + options?: KeyValuesDeleteOptionalParams, ): Promise, void>>; /** - * Deletes a key-value. + * Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all + * other scenarios involving App Configuration key-values the data plane API should be used instead. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ @@ -71,6 +76,6 @@ export interface KeyValues { resourceGroupName: string, configStoreName: string, keyValueName: string, - options?: KeyValuesDeleteOptionalParams + options?: KeyValuesDeleteOptionalParams, ): Promise; } diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/operations.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/operations.ts index 39f495c2bdd5..867179f7f9fc 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/operations.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/operations.ts @@ -14,7 +14,7 @@ import { OperationsCheckNameAvailabilityOptionalParams, OperationsCheckNameAvailabilityResponse, OperationsRegionalCheckNameAvailabilityOptionalParams, - OperationsRegionalCheckNameAvailabilityResponse + OperationsRegionalCheckNameAvailabilityResponse, } from "../models"; /// @@ -25,7 +25,7 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; /** * Checks whether the configuration store name is available for use. @@ -35,7 +35,7 @@ export interface Operations { */ checkNameAvailability( checkNameAvailabilityParameters: CheckNameAvailabilityParameters, - options?: OperationsCheckNameAvailabilityOptionalParams + options?: OperationsCheckNameAvailabilityOptionalParams, ): Promise; /** * Checks whether the configuration store name is available for use. @@ -47,6 +47,6 @@ export interface Operations { regionalCheckNameAvailability( location: string, checkNameAvailabilityParameters: CheckNameAvailabilityParameters, - options?: OperationsRegionalCheckNameAvailabilityOptionalParams + options?: OperationsRegionalCheckNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateEndpointConnections.ts index ad6cfe1f2292..cab02d216e58 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateEndpointConnections.ts @@ -15,7 +15,7 @@ import { PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, - PrivateEndpointConnectionsDeleteOptionalParams + PrivateEndpointConnectionsDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface PrivateEndpointConnections { listByConfigurationStore( resourceGroupName: string, configStoreName: string, - options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams + options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the specified private endpoint connection associated with the configuration store. @@ -43,7 +43,7 @@ export interface PrivateEndpointConnections { resourceGroupName: string, configStoreName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise; /** * Update the state of the specified private endpoint connection associated with the configuration @@ -60,7 +60,7 @@ export interface PrivateEndpointConnections { configStoreName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -82,7 +82,7 @@ export interface PrivateEndpointConnections { configStoreName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a private endpoint connection. @@ -95,7 +95,7 @@ export interface PrivateEndpointConnections { resourceGroupName: string, configStoreName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a private endpoint connection. @@ -108,6 +108,6 @@ export interface PrivateEndpointConnections { resourceGroupName: string, configStoreName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateLinkResources.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateLinkResources.ts index c9c528826c87..fd4a8f6f04a3 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateLinkResources.ts @@ -11,7 +11,7 @@ import { PrivateLinkResource, PrivateLinkResourcesListByConfigurationStoreOptionalParams, PrivateLinkResourcesGetOptionalParams, - PrivateLinkResourcesGetResponse + PrivateLinkResourcesGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface PrivateLinkResources { listByConfigurationStore( resourceGroupName: string, configStoreName: string, - options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams + options?: PrivateLinkResourcesListByConfigurationStoreOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a private link resource that need to be created for a configuration store. @@ -39,6 +39,6 @@ export interface PrivateLinkResources { resourceGroupName: string, configStoreName: string, groupName: string, - options?: PrivateLinkResourcesGetOptionalParams + options?: PrivateLinkResourcesGetOptionalParams, ): Promise; } diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/replicas.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/replicas.ts index 20ee6bf8a547..a5a2884d40b4 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/replicas.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/replicas.ts @@ -15,7 +15,7 @@ import { ReplicasGetResponse, ReplicasCreateOptionalParams, ReplicasCreateResponse, - ReplicasDeleteOptionalParams + ReplicasDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface Replicas { listByConfigurationStore( resourceGroupName: string, configStoreName: string, - options?: ReplicasListByConfigurationStoreOptionalParams + options?: ReplicasListByConfigurationStoreOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the properties of the specified replica. @@ -43,7 +43,7 @@ export interface Replicas { resourceGroupName: string, configStoreName: string, replicaName: string, - options?: ReplicasGetOptionalParams + options?: ReplicasGetOptionalParams, ): Promise; /** * Creates a replica with the specified parameters. @@ -58,7 +58,7 @@ export interface Replicas { configStoreName: string, replicaName: string, replicaCreationParameters: Replica, - options?: ReplicasCreateOptionalParams + options?: ReplicasCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -78,7 +78,7 @@ export interface Replicas { configStoreName: string, replicaName: string, replicaCreationParameters: Replica, - options?: ReplicasCreateOptionalParams + options?: ReplicasCreateOptionalParams, ): Promise; /** * Deletes a replica. @@ -91,7 +91,7 @@ export interface Replicas { resourceGroupName: string, configStoreName: string, replicaName: string, - options?: ReplicasDeleteOptionalParams + options?: ReplicasDeleteOptionalParams, ): Promise, void>>; /** * Deletes a replica. @@ -104,6 +104,6 @@ export interface Replicas { resourceGroupName: string, configStoreName: string, replicaName: string, - options?: ReplicasDeleteOptionalParams + options?: ReplicasDeleteOptionalParams, ): Promise; } diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/snapshots.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/snapshots.ts new file mode 100644 index 000000000000..1e4dc8c67abf --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/snapshots.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + SnapshotsGetOptionalParams, + SnapshotsGetResponse, + Snapshot, + SnapshotsCreateOptionalParams, + SnapshotsCreateResponse, +} from "../models"; + +/** Interface representing a Snapshots. */ +export interface Snapshots { + /** + * Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure + * Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration + * snapshots the data plane API should be used instead. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + configStoreName: string, + snapshotName: string, + options?: SnapshotsGetOptionalParams, + ): Promise; + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) + * Template deployments. For all other scenarios involving App Configuration snapshots the data plane + * API should be used instead. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + configStoreName: string, + snapshotName: string, + body: Snapshot, + options?: SnapshotsCreateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + SnapshotsCreateResponse + > + >; + /** + * Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) + * Template deployments. For all other scenarios involving App Configuration snapshots the data plane + * API should be used instead. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param configStoreName The name of the configuration store. + * @param snapshotName The name of the snapshot. + * @param body The parameters for creating a snapshot. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + configStoreName: string, + snapshotName: string, + body: Snapshot, + options?: SnapshotsCreateOptionalParams, + ): Promise; +} diff --git a/sdk/appconfiguration/arm-appconfiguration/src/pagingHelper.ts b/sdk/appconfiguration/arm-appconfiguration/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/appconfiguration/arm-appconfiguration/src/pagingHelper.ts +++ b/sdk/appconfiguration/arm-appconfiguration/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts b/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts new file mode 100644 index 000000000000..1f0368d5f246 --- /dev/null +++ b/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts @@ -0,0 +1,112 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + Recorder, + RecorderStartOptions, + delay, + isPlaybackMode, +} from "@azure-tools/test-recorder"; +import { createTestCredential } from "@azure-tools/test-credential"; +import { assert } from "chai"; +import { Context } from "mocha"; +import { AppConfigurationManagementClient } from "../src/appConfigurationManagementClient"; + +const replaceableVariables: Record = { + SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, + removeCentralSanitizers: [ + "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section + "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section + ], +}; + +export const testPollingOptions = { + updateIntervalInMs: isPlaybackMode() ? 0 : undefined, +}; + +describe("AppConfiguration test", () => { + let recorder: Recorder; + let subscriptionId: string; + let client: AppConfigurationManagementClient; + let location: string; + let resourceGroup: string; + let resourcename: string; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + subscriptionId = env.SUBSCRIPTION_ID || ''; + // This is an example of how the environment variables are used + const credential = createTestCredential(); + client = new AppConfigurationManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); + location = "eastus"; + resourceGroup = "myjstest"; + resourcename = "resourcetest"; + + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("operations list test", async function () { + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + assert.notEqual(resArray.length, 0); + }); + + + it("configurationStores create test", async function () { + const res = await client.configurationStores.beginCreateAndWait( + resourceGroup, + resourcename, + { + dataPlaneProxy: { + authenticationMode: "Pass-through", + privateLinkDelegation: "Enabled", + }, + location, + sku: { name: "Standard" }, + }, + testPollingOptions); + assert.equal(res.name, resourcename); + }); + + it("configurationStores get test", async function () { + const res = await client.configurationStores.get( + resourceGroup, + resourcename + ); + assert.equal(res.name, resourcename); + }); + + it("configurationStores list test", async function () { + const resArray = new Array(); + for await (let item of client.configurationStores.listByResourceGroup(resourceGroup)) { + resArray.push(item); + } + assert.equal(resArray.length, 1); + }); + + it("configurationStores delete test", async function () { + const resArray = new Array(); + const res = await client.configurationStores.beginDeleteAndWait(resourceGroup, resourcename + ) + for await (let item of client.configurationStores.listByResourceGroup(resourceGroup)) { + resArray.push(item); + } + assert.equal(resArray.length, 0); + }); +}) diff --git a/sdk/appconfiguration/arm-appconfiguration/test/sampleTest.ts b/sdk/appconfiguration/arm-appconfiguration/test/sampleTest.ts deleted file mode 100644 index 8ff7deb0acbe..000000000000 --- a/sdk/appconfiguration/arm-appconfiguration/test/sampleTest.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - Recorder, - RecorderStartOptions, - env -} from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { Context } from "mocha"; - -const replaceableVariables: Record = { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" -}; - -const recorderOptions: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], -}; - -describe("My test", () => { - let recorder: Recorder; - - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); - await recorder.start(recorderOptions); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("sample test", async function () { - console.log("Hi, I'm a test!"); - }); -}); diff --git a/sdk/appservice/arm-appservice-rest/package.json b/sdk/appservice/arm-appservice-rest/package.json index 35e8f0f1cc9f..b4c6a701aef3 100644 --- a/sdk/appservice/arm-appservice-rest/package.json +++ b/sdk/appservice/arm-appservice-rest/package.json @@ -95,7 +95,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/batch/batch-rest/package.json b/sdk/batch/batch-rest/package.json index 7c62ebeb41f6..c1ada9617852 100644 --- a/sdk/batch/batch-rest/package.json +++ b/sdk/batch/batch-rest/package.json @@ -61,52 +61,49 @@ "disableDocsMs": true }, "dependencies": { - "@azure-rest/core-client": "^1.4.0", - "@azure/core-auth": "^1.6.0", - "@azure/core-paging": "^1.5.0", - "@azure/core-rest-pipeline": "^1.16.0", - "@azure/logger": "^1.0.0", - "tslib": "^2.6.2" + "@azure-rest/core-client": "^2.3.1", + "@azure/core-auth": "^1.9.0", + "@azure/core-paging": "^1.6.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^4.0.0", - "@azure-tools/vite-plugin-browser-test-map": "~1.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", "@azure/core-util": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^4.0.1", + "@azure/identity": "^4.5.0", "@types/node": "^18.0.0", - "@vitest/browser": "~1.6.0", - "@vitest/coverage-istanbul": "^1.3.1", + "@vitest/browser": "^2.1.6", + "@vitest/coverage-istanbul": "^2.1.6", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "loupe": "~3.1.0", - "moment": "~2.30.1", + "moment": "^2.30.1", "playwright": "^1.41.2", - "prettier": "^3.2.5", "typescript": "~5.6.2", - "vitest": "~1.6.0" + "vitest": "^2.1.6" }, "scripts": { - "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", + "build": "npm run clean && dev-tool run build-package && npm run extract-api", "build:samples": "echo skipped", - "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test", + "build:test": "echo skipped", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm dist-test temp types *.tgz *.log", "execute:samples": "echo skipped", + "extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", "generate:client": "echo skipped", - "integration-test:browser": "echo skipped", - "integration-test:node": "echo skipped", + "integration-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "pack": "npm pack 2>&1", "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser", "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", - "unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser", + "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, diff --git a/sdk/batch/batch-rest/samples-dev/quick-start.ts b/sdk/batch/batch-rest/samples-dev/quick-start.ts index 2f98782f9046..df193acee16a 100644 --- a/sdk/batch/batch-rest/samples-dev/quick-start.ts +++ b/sdk/batch/batch-rest/samples-dev/quick-start.ts @@ -5,26 +5,21 @@ * @summary Azure Batch quickstart sample */ -import createClient, { +import type { BatchClient, CreateJobParameters, CreatePoolParameters, CreateTaskParameters, - isUnexpected, - paginate, } from "@azure-rest/batch"; +import createClient, { isUnexpected, paginate } from "@azure-rest/batch"; import { DefaultAzureCredential } from "@azure/identity"; - -// Load the .env file if it exists -// eslint-disable-next-line import/no-extraneous-dependencies -import * as dotenv from "dotenv"; -dotenv.config(); +import "dotenv/config"; const batchAccountEndpoint = process.env["BATCH_ACCOUNT_ENDPOINT"] || ""; const poolName = "samplepool"; const jobId = "samplejob2"; -async function main() { +async function main(): Promise { const credentials = new DefaultAzureCredential(); const client = createClient(batchAccountEndpoint, credentials); @@ -41,7 +36,7 @@ async function main() { await cleanup(client); } -async function createPool(client: BatchClient) { +async function createPool(client: BatchClient): Promise { const poolParams: CreatePoolParameters = { body: { id: poolName, @@ -69,7 +64,7 @@ async function createPool(client: BatchClient) { console.log(`Pool ${poolName} created`); } -async function createJob(client: BatchClient) { +async function createJob(client: BatchClient): Promise { const jobAddParam: CreateJobParameters = { body: { id: jobId, @@ -85,7 +80,7 @@ async function createJob(client: BatchClient) { console.log(`Job ${jobId} created`); } -async function submitTasks(client: BatchClient) { +async function submitTasks(client: BatchClient): Promise { for (let i = 1; i < 6; i++) { const addTaskParam: CreateTaskParameters = { body: { @@ -103,7 +98,7 @@ async function submitTasks(client: BatchClient) { } } -async function listTasks(client: BatchClient) { +async function listTasks(client: BatchClient): Promise { const result = await client .path("/jobs/{jobId}/tasks", jobId) .get({ queryParameters: { maxresults: 1 } }); @@ -118,7 +113,7 @@ async function listTasks(client: BatchClient) { } } -async function waitForTasks(client: BatchClient) { +async function waitForTasks(client: BatchClient): Promise { console.log("Waiting for tasks to complete"); while (true) { const result = await client @@ -144,7 +139,7 @@ async function waitForTasks(client: BatchClient) { } } -async function cleanup(client: BatchClient) { +async function cleanup(client: BatchClient): Promise { const result = await client.path("/pools/{poolId}", poolName).delete(); if (isUnexpected(result)) { throw new Error(`Failed to delete pool: ${result.body.message}`); diff --git a/sdk/batch/batch-rest/test/browser/batchSharedKeyCredentials.spec.ts b/sdk/batch/batch-rest/test/browser/batchSharedKeyCredentials.spec.ts index e721c874c1aa..abfe939cf210 100644 --- a/sdk/batch/batch-rest/test/browser/batchSharedKeyCredentials.spec.ts +++ b/sdk/batch/batch-rest/test/browser/batchSharedKeyCredentials.spec.ts @@ -3,10 +3,12 @@ import { createBatchSharedKeyCredentialsPolicy } from "../../src/credentials/batchSharedKeyCredentials.js"; import { AzureNamedKeyCredential } from "@azure/core-auth"; -import { expect, it } from "vitest"; +import { describe, expect, it } from "vitest"; -it("should throw error in browser environment", () => { - expect(() => - createBatchSharedKeyCredentialsPolicy(new AzureNamedKeyCredential("name", "key")), - ).toThrowError("BatchSharedKeyCredentialsPolicy is not supported in browser environment"); +describe("createBatchSharedKeyCredentialsPolicy", () => { + it("should throw error in browser environment", () => { + expect(() => + createBatchSharedKeyCredentialsPolicy(new AzureNamedKeyCredential("name", "key")), + ).toThrowError("BatchSharedKeyCredentialsPolicy is not supported in browser environment"); + }); }); diff --git a/sdk/batch/batch-rest/test/jobSchedules.spec.ts b/sdk/batch/batch-rest/test/jobSchedules.spec.ts index 111f2c0661b1..047c73cc16fd 100644 --- a/sdk/batch/batch-rest/test/jobSchedules.spec.ts +++ b/sdk/batch/batch-rest/test/jobSchedules.spec.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Recorder, VitestTestContext } from "@azure-tools/test-recorder"; +import type { Recorder } from "@azure-tools/test-recorder"; import { isPlaybackMode } from "@azure-tools/test-recorder"; import { createBatchClient, createRecorder } from "./utils/recordedClient.js"; import type { @@ -27,7 +27,7 @@ describe("Job Schedule Operations Test", () => { /** * Provision helper resources needed for testing jobs */ - beforeAll(async function () { + beforeAll(async () => { if (!isPlaybackMode()) { batchClient = createBatchClient(); @@ -70,7 +70,7 @@ describe("Job Schedule Operations Test", () => { /** * Unprovision helper resources after all tests ran */ - afterAll(async function () { + afterAll(async () => { if (!isPlaybackMode()) { batchClient = createBatchClient(); @@ -83,12 +83,12 @@ describe("Job Schedule Operations Test", () => { } }); - beforeEach(async function (ctx: VitestTestContext) { + beforeEach(async (ctx) => { recorder = await createRecorder(ctx); batchClient = createBatchClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); diff --git a/sdk/batch/batch-rest/test/utils/env.browser.ts b/sdk/batch/batch-rest/test/utils/env-browser.mts similarity index 100% rename from sdk/batch/batch-rest/test/utils/env.browser.ts rename to sdk/batch/batch-rest/test/utils/env-browser.mts diff --git a/sdk/batch/batch-rest/test/utils/helpers.ts b/sdk/batch/batch-rest/test/utils/helpers.ts index 1eddb27fe0db..91dd6895eb2a 100644 --- a/sdk/batch/batch-rest/test/utils/helpers.ts +++ b/sdk/batch/batch-rest/test/utils/helpers.ts @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. + import { isPlaybackMode } from "@azure-tools/test-recorder"; import { wait } from "./wait.js"; diff --git a/sdk/batch/batch-rest/test/utils/recordedClient.ts b/sdk/batch/batch-rest/test/utils/recordedClient.ts index 4a8cdb3b78cf..e65fcbbfddbd 100644 --- a/sdk/batch/batch-rest/test/utils/recordedClient.ts +++ b/sdk/batch/batch-rest/test/utils/recordedClient.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { RecorderStartOptions, VitestTestContext } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, env, isPlaybackMode } from "@azure-tools/test-recorder"; import type { ClientOptions } from "@azure-rest/core-client"; import type { BatchClient } from "../../src/index.js"; @@ -57,7 +57,7 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(ctx: VitestTestContext): Promise { +export async function createRecorder(ctx: TestInfo): Promise { const recorder = new Recorder(ctx); await recorder.setMatcher("CustomDefaultMatcher", { excludedHeaders: ["client-request-id", "ocp-date", "accept-encoding"], diff --git a/sdk/batch/batch-rest/tsconfig.browser.config.json b/sdk/batch/batch-rest/tsconfig.browser.config.json index 1b37aebc5457..f772e6eb3b76 100644 --- a/sdk/batch/batch-rest/tsconfig.browser.config.json +++ b/sdk/batch/batch-rest/tsconfig.browser.config.json @@ -1,6 +1,6 @@ { "extends": "./.tshy/build.json", - "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts"], + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], "exclude": ["./test/**/node/**/*.ts"], "compilerOptions": { "outDir": "./dist-test/browser", diff --git a/sdk/batch/batch-rest/tsconfig.json b/sdk/batch/batch-rest/tsconfig.json index 02da0737d639..1998492a3f1c 100644 --- a/sdk/batch/batch-rest/tsconfig.json +++ b/sdk/batch/batch-rest/tsconfig.json @@ -4,14 +4,17 @@ "module": "NodeNext", "moduleResolution": "NodeNext", "rootDir": ".", - "paths": { "@azure-rest/batch": ["./src/index"] } + "paths": { + "@azure-rest/batch": ["./src/index"] + } }, "include": [ - "./src/**/*.ts", - "./src/**/*.mts", - "./src/**/*.cts", + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", "test/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "test/**/*.mts", + "test/**/*.cts" ] } diff --git a/sdk/batch/batch-rest/vitest.browser.config.ts b/sdk/batch/batch-rest/vitest.browser.config.ts index 943f0b6541a8..f82c9609c760 100644 --- a/sdk/batch/batch-rest/vitest.browser.config.ts +++ b/sdk/batch/batch-rest/vitest.browser.config.ts @@ -1,50 +1,16 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { defineConfig } from "vitest/config"; -import { isPlaybackMode, relativeRecordingsPath } from "@azure-tools/test-recorder"; +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); -export default defineConfig({ - define: { - "process.env": process.env, - __env__: process.env, - }, - optimizeDeps: { - include: ["@azure-tools/test-recorder"], - }, - test: { - testTimeout: 600000, - hookTimeout: 600000, - reporters: ["basic", "junit"], - outputFile: { - junit: "test-results.browser.xml", +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 500000, + testTImeout: 500000, }, - browser: { - enabled: true, - headless: isPlaybackMode(), - name: "chromium", - provider: "playwright", - providerOptions: { - launch: { - args: ["--disable-web-security"], - }, - }, - }, - fakeTimers: { - toFake: ["setTimeout", "Date"], - }, - watch: false, - include: ["dist-test/browser/**/*.spec.js"], - coverage: { - include: ["dist-test/browser/**/*.js"], - exclude: [ - "dist-test/browser/**/*./*-browser.mjs", - "dist-test/browser/**/*./*-react-native.mjs", - ], - provider: "istanbul", - reporter: ["text", "json", "html"], - reportsDirectory: "coverage-browser", - }, - }, -}); + }), +); diff --git a/sdk/batch/batch-rest/vitest.config.ts b/sdk/batch/batch-rest/vitest.config.ts index adc1bc8ee747..dd0df7bb85c0 100644 --- a/sdk/batch/batch-rest/vitest.config.ts +++ b/sdk/batch/batch-rest/vitest.config.ts @@ -1,33 +1,16 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { defineConfig } from "vitest/config"; +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; -export default defineConfig({ - test: { - reporters: ["basic", "junit"], - outputFile: { - junit: "test-results.xml", +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 500000, + testTImeout: 500000, }, - fakeTimers: { - toFake: ["setTimeout", "Date"], - }, - watch: false, - testTimeout: 600000, - hookTimeout: 600000, - include: ["test/**/*.spec.ts"], - exclude: ["test/**/browser/*.spec.ts"], - coverage: { - include: ["src/**/*.ts"], - exclude: [ - "src/**/*-browser.mts", - "src/**/*-react-native.mts", - "vitest*.config.ts", - "samples-dev/**/*.ts", - ], - provider: "istanbul", - reporter: ["text", "json", "html"], - reportsDirectory: "coverage", - }, - }, -}); + }), +); diff --git a/sdk/cognitivelanguage/ai-language-conversations/package.json b/sdk/cognitivelanguage/ai-language-conversations/package.json index e3bc2682968e..50e45b0a3f83 100644 --- a/sdk/cognitivelanguage/ai-language-conversations/package.json +++ b/sdk/cognitivelanguage/ai-language-conversations/package.json @@ -49,7 +49,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/cognitivelanguage/ai-language-text/package.json b/sdk/cognitivelanguage/ai-language-text/package.json index ad91963a2f34..20b7e0ee11dc 100644 --- a/sdk/cognitivelanguage/ai-language-text/package.json +++ b/sdk/cognitivelanguage/ai-language-text/package.json @@ -122,7 +122,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/communication/communication-call-automation/.nycrc b/sdk/communication/communication-call-automation/.nycrc deleted file mode 100644 index 29174b423579..000000000000 --- a/sdk/communication/communication-call-automation/.nycrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "include": ["dist-esm/src/**/*.js"], - "exclude": ["**/*.d.ts", "dist-esm/src/generated/*"], - "reporter": ["text-summary", "html", "cobertura"], - "exclude-after-remap": false, - "sourceMap": true, - "produce-source-map": true, - "instrument": true, - "all": true -} diff --git a/sdk/communication/communication-call-automation/api-extractor.json b/sdk/communication/communication-call-automation/api-extractor.json index f864609c48ed..322fbbd60b1e 100644 --- a/sdk/communication/communication-call-automation/api-extractor.json +++ b/sdk/communication/communication-call-automation/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/communication-call-automation.d.ts" + "publicTrimmedFilePath": "dist/communication-call-automation.d.ts" }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/communication/communication-call-automation/karma.conf.js b/sdk/communication/communication-call-automation/karma.conf.js deleted file mode 100644 index 9add6f23e5b7..000000000000 --- a/sdk/communication/communication-call-automation/karma.conf.js +++ /dev/null @@ -1,127 +0,0 @@ -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); - -require("dotenv").config(); - -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-edge-launcher", - "karma-firefox-launcher", - "karma-ie-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - ], - - // list of files / patterns to load in the browser - files: ["dist-test/index.browser.js"], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - //"dist-test/index.browser.js": ["coverage"] - }, - - // inject following environment values into browser testing with window.__env__ - // environment values MUST be exported or set with same console running "karma start" - // https://www.npmjs.com/package/karma-env-preprocessor - envPreprocessor: [ - "TEST_MODE", - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING", - "BASE_URL", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // start these browsers - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - // 'ChromeHeadless', 'Chrome', 'Firefox', 'Edge', 'IE' - browsers: ["HeadlessChrome"], - - customLaunchers: { - HeadlessChrome: { - base: "ChromeHeadless", - flags: ["--no-sandbox"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: true, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 600000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/communication/communication-call-automation/package.json b/sdk/communication/communication-call-automation/package.json index 31eec365ee45..64d248d736a0 100644 --- a/sdk/communication/communication-call-automation/package.json +++ b/sdk/communication/communication-call-automation/package.json @@ -3,23 +3,21 @@ "version": "1.3.0-beta.1", "description": "Azure client library for Azure Communication Call Automation services", "sdk-type": "client", - "main": "dist/index.js", - "module": "dist-esm/src/index.js", - "types": "types/communication-call-automation.d.ts", - "browser": { - "./dist-esm/src/credential/cryptoUtils.js": "./dist-esm/src/credential/cryptoUtils.browser.js" - }, + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", + "browser": "./dist/browser/index.js", "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", "build:autorest": "autorest ./swagger/README.md && rushx format", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:node": "tsc -p . && dev-tool run bundle", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:node": "dev-tool run build-package && dev-tool run bundle", "build:samples": "dev-tool samples publish --force", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", - "extract-api": "tsc -p . && dev-tool run extract-api", + "extract-api": "dev-tool run build-package && dev-tool run extract-api", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -32,14 +30,12 @@ "test:browser": "npm run build:test && npm run unit-test:browser", "test:node": "npm run build:test && npm run unit-test:node", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'", + "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "files": [ "dist/", - "dist-esm/src", - "types/communication-call-automation.d.ts", "README.md", "LICENSE" ], @@ -74,49 +70,73 @@ } }, "dependencies": { - "@azure/abort-controller": "^2.0.0", + "@azure/abort-controller": "^2.1.2", "@azure/communication-common": "^2.3.1", - "@azure/core-auth": "^1.3.0", - "@azure/core-client": "^1.3.0", - "@azure/core-paging": "^1.1.1", - "@azure/core-rest-pipeline": "^1.3.0", - "@azure/core-tracing": "^1.0.0", - "@azure/core-util": "^1.6.1", - "@azure/logger": "^1.0.0", + "@azure/core-auth": "^1.9.0", + "@azure/core-client": "^1.9.2", + "@azure/core-paging": "^1.6.2", + "@azure/core-rest-pipeline": "^1.17.0", + "@azure/core-tracing": "^1.2.0", + "@azure/core-util": "^1.11.0", + "@azure/logger": "^1.1.4", "events": "^3.0.0", - "tslib": "^2.2.0" + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.1", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", + "@azure-tools/vite-plugin-browser-test-map": "^1.0.0", "@azure/communication-identity": "^1.2.0", "@azure/communication-phone-numbers": "^1.2.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/service-bus": "^7.8.1", - "@types/chai": "^4.1.6", - "@types/mocha": "^10.0.0", + "@azure/service-bus": "^7.9.5", "@types/node": "^18.0.0", - "@types/sinon": "^17.0.0", - "chai": "^4.2.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "dotenv": "^16.0.0", "eslint": "^9.9.0", "inherits": "^2.0.3", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-json-preprocessor": "^0.3.3", - "karma-json-to-file-reporter": "^1.0.1", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "sinon": "^17.0.0", - "ts-node": "^10.0.0", + "playwright": "^1.48.2", "typescript": "~5.6.2", - "util": "^0.12.1" + "vitest": "^2.1.5" + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/communication/communication-call-automation/src/callAutomationClient.ts b/sdk/communication/communication-call-automation/src/callAutomationClient.ts index a5cfb3ff7849..e869021cdd24 100644 --- a/sdk/communication/communication-call-automation/src/callAutomationClient.ts +++ b/sdk/communication/communication-call-automation/src/callAutomationClient.ts @@ -10,7 +10,7 @@ import type { MicrosoftTeamsAppIdentifier, } from "@azure/communication-common"; import { parseClientArguments, isKeyCredential } from "@azure/communication-common"; -import { logger } from "./models/logger"; +import { logger } from "./models/logger.js"; import type { AnswerCallRequest, CallAutomationApiClient, @@ -20,17 +20,21 @@ import type { RedirectCallRequest, RejectCallRequest, CustomCallingContextInternal, -} from "./generated/src"; -import { CallConnection } from "./callConnection"; -import { CallRecording } from "./callRecording"; +} from "./generated/src/index.js"; +import { CallConnection } from "./callConnection.js"; +import { CallRecording } from "./callRecording.js"; import type { AnswerCallOptions, CreateCallOptions, RedirectCallOptions, RejectCallOptions, -} from "./models/options"; -import type { AnswerCallResult, CreateCallResult } from "./models/responses"; -import type { CallConnectionProperties, CallInvite, CustomCallingContext } from "./models/models"; +} from "./models/options.js"; +import type { AnswerCallResult, CreateCallResult } from "./models/responses.js"; +import type { + CallConnectionProperties, + CallInvite, + CustomCallingContext, +} from "./models/models.js"; import { communicationIdentifierConverter, communicationIdentifierModelConverter, @@ -39,11 +43,14 @@ import { microsoftTeamsAppIdentifierModelConverter, phoneNumberIdentifierConverter, PhoneNumberIdentifierModelConverter, -} from "./utli/converters"; +} from "./utli/converters.js"; import { randomUUID } from "@azure/core-util"; -import { createCustomCallAutomationApiClient } from "./credential/callAutomationAuthPolicy"; -import { CallAutomationEventProcessor } from "./eventprocessor/callAutomationEventProcessor"; -import type { AnswerCallEventResult, CreateCallEventResult } from "./eventprocessor/eventResponses"; +import { createCustomCallAutomationApiClient } from "./credential/callAutomationAuthPolicy.js"; +import { CallAutomationEventProcessor } from "./eventprocessor/callAutomationEventProcessor.js"; +import type { + AnswerCallEventResult, + CreateCallEventResult, +} from "./eventprocessor/eventResponses.js"; /** * Client options used to configure CallAutomation Client API requests. */ diff --git a/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts b/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts index 1636a5f59ca4..c991a01ea19d 100644 --- a/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts +++ b/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts @@ -2,9 +2,7 @@ // Licensed under the MIT License. import { createSerializer } from "@azure/core-client"; - -import { communicationIdentifierConverter, callParticipantConverter } from "./utli/converters"; - +import { communicationIdentifierConverter, callParticipantConverter } from "./utli/converters.js"; import type { CallAutomationEvent, AddParticipantSucceeded, @@ -37,10 +35,9 @@ import type { CreateCallFailed, AnswerFailed, HoldFailed, -} from "./models/events"; - -import { CloudEventMapper } from "./models/mapper"; -import type { CallParticipantInternal } from "./generated/src"; +} from "./models/events.js"; +import { CloudEventMapper } from "./models/mapper.js"; +import type { CallParticipantInternal } from "./generated/src/index.js"; const serializer = createSerializer(); diff --git a/sdk/communication/communication-call-automation/src/callConnection.ts b/sdk/communication/communication-call-automation/src/callConnection.ts index 44ef5622f019..13c0297d0c99 100644 --- a/sdk/communication/communication-call-automation/src/callConnection.ts +++ b/sdk/communication/communication-call-automation/src/callConnection.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import type { CommunicationIdentifier } from "@azure/communication-common"; -import { CallMedia } from "./callMedia"; +import { CallMedia } from "./callMedia.js"; import type { AddParticipantRequest, CallAutomationApiClient, @@ -11,14 +11,14 @@ import type { MuteParticipantsRequest, RemoveParticipantRequest, TransferToParticipantRequest, -} from "./generated/src"; -import { CallConnectionImpl } from "./generated/src/operations"; +} from "./generated/src/index.js"; +import { CallConnectionImpl } from "./generated/src/operations/index.js"; import type { CallConnectionProperties, CallInvite, CallParticipant, CustomCallingContext, -} from "./models/models"; +} from "./models/models.js"; import type { AddParticipantOptions, CancelAddParticipantOperationOptions, @@ -28,7 +28,7 @@ import type { MuteParticipantOption, RemoveParticipantsOption, TransferCallToParticipantOptions, -} from "./models/options"; +} from "./models/options.js"; import type { ListParticipantsResult, TransferCallResult, @@ -36,7 +36,7 @@ import type { RemoveParticipantResult, MuteParticipantResult, CancelAddParticipantOperationResult, -} from "./models/responses"; +} from "./models/responses.js"; import { callParticipantConverter, communicationIdentifierConverter, @@ -44,17 +44,17 @@ import { communicationUserIdentifierConverter, phoneNumberIdentifierConverter, PhoneNumberIdentifierModelConverter, -} from "./utli/converters"; +} from "./utli/converters.js"; import { randomUUID } from "@azure/core-util"; import type { KeyCredential, TokenCredential } from "@azure/core-auth"; -import type { CallAutomationEventProcessor } from "./eventprocessor/callAutomationEventProcessor"; +import type { CallAutomationEventProcessor } from "./eventprocessor/callAutomationEventProcessor.js"; import type { AddParticipantEventResult, CancelAddParticipantEventResult, RemoveParticipantEventResult, TransferCallToParticipantEventResult, -} from "./eventprocessor/eventResponses"; -import { createCustomCallAutomationApiClient } from "./credential/callAutomationAuthPolicy"; +} from "./eventprocessor/eventResponses.js"; +import { createCustomCallAutomationApiClient } from "./credential/callAutomationAuthPolicy.js"; /** * CallConnection class represents call connection based APIs. diff --git a/sdk/communication/communication-call-automation/src/callMedia.ts b/sdk/communication/communication-call-automation/src/callMedia.ts index 0bcd081438e0..5faaea4320aa 100644 --- a/sdk/communication/communication-call-automation/src/callMedia.ts +++ b/sdk/communication/communication-call-automation/src/callMedia.ts @@ -23,15 +23,15 @@ import type { UpdateTranscriptionRequest, HoldRequest, UnholdRequest, -} from "./generated/src"; -import { KnownPlaySourceType, KnownRecognizeInputType } from "./generated/src"; +} from "./generated/src/index.js"; +import { KnownPlaySourceType, KnownRecognizeInputType } from "./generated/src/index.js"; -import { CallMediaImpl } from "./generated/src/operations"; +import { CallMediaImpl } from "./generated/src/operations/index.js"; import type { CommunicationIdentifier } from "@azure/communication-common"; import { serializeCommunicationIdentifier } from "@azure/communication-common"; -import type { FileSource, TextSource, SsmlSource, DtmfTone } from "./models/models"; +import type { FileSource, TextSource, SsmlSource, DtmfTone } from "./models/models.js"; import type { PlayOptions, CallMediaRecognizeDtmfOptions, @@ -44,23 +44,23 @@ import type { StopTranscriptionOptions, HoldOptions, UnholdOptions, -} from "./models/options"; +} from "./models/options.js"; import type { KeyCredential, TokenCredential } from "@azure/core-auth"; import type { CancelAllMediaOperationsResult, PlayResult, SendDtmfTonesResult, StartRecognizingResult, -} from "./models/responses"; +} from "./models/responses.js"; import type { CancelAllMediaOperationsEventResult, PlayEventResult, SendDtmfEventResult, StartRecognizingEventResult, -} from "./eventprocessor/eventResponses"; -import type { CallAutomationEventProcessor } from "./eventprocessor/callAutomationEventProcessor"; +} from "./eventprocessor/eventResponses.js"; +import type { CallAutomationEventProcessor } from "./eventprocessor/callAutomationEventProcessor.js"; import { randomUUID } from "@azure/core-util"; -import { createCustomCallAutomationApiClient } from "./credential/callAutomationAuthPolicy"; +import { createCustomCallAutomationApiClient } from "./credential/callAutomationAuthPolicy.js"; /** * CallMedia class represents call media related APIs. diff --git a/sdk/communication/communication-call-automation/src/callRecording.ts b/sdk/communication/communication-call-automation/src/callRecording.ts index c02f240dee3e..84ce938047ac 100644 --- a/sdk/communication/communication-call-automation/src/callRecording.ts +++ b/sdk/communication/communication-call-automation/src/callRecording.ts @@ -1,11 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { CallRecordingImpl } from "./generated/src/operations"; +import { CallRecordingImpl } from "./generated/src/operations/index.js"; import type { CallAutomationApiClientOptionalParams, StartCallRecordingRequest, -} from "./generated/src/models/index"; -import type { RecordingStateResult } from "./models/responses"; +} from "./generated/src/models/index.js"; +import type { RecordingStateResult } from "./models/responses.js"; import type { StartRecordingOptions, StopRecordingOptions, @@ -14,14 +14,14 @@ import type { ResumeRecordingOptions, DeleteRecordingOptions, DownloadRecordingOptions, -} from "./models/options"; -import { communicationIdentifierModelConverter } from "./utli/converters"; -import { ContentDownloaderImpl } from "./contentDownloader"; -import * as fs from "fs"; +} from "./models/options.js"; +import { communicationIdentifierModelConverter } from "./utli/converters.js"; +import { ContentDownloaderImpl } from "./contentDownloader.js"; +import * as fs from "node:fs"; import { randomUUID } from "@azure/core-util"; import type { KeyCredential, TokenCredential } from "@azure/core-auth"; -import type { CallAutomationApiClient } from "./generated/src"; -import { createCustomCallAutomationApiClient } from "./credential/callAutomationAuthPolicy"; +import type { CallAutomationApiClient } from "./generated/src/index.js"; +import { createCustomCallAutomationApiClient } from "./credential/callAutomationAuthPolicy.js"; /** * CallRecording class represents call recording related APIs. diff --git a/sdk/communication/communication-call-automation/src/contentDownloader.ts b/sdk/communication/communication-call-automation/src/contentDownloader.ts index faa29a1e796b..c6ce9fe0ce7d 100644 --- a/sdk/communication/communication-call-automation/src/contentDownloader.ts +++ b/sdk/communication/communication-call-automation/src/contentDownloader.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { CallAutomationApiClient } from "./generated/src/callAutomationApiClient"; +import type { CallAutomationApiClient } from "./generated/src/callAutomationApiClient.js"; import type { AddPipelineOptions, PipelineRequest, @@ -10,7 +10,7 @@ import type { SendRequest, } from "@azure/core-rest-pipeline"; import { createHttpHeaders, createPipelineRequest } from "@azure/core-rest-pipeline"; -import type { DeleteRecordingOptions, DownloadRecordingOptions } from "./models/options"; +import type { DeleteRecordingOptions, DownloadRecordingOptions } from "./models/options.js"; /** Class containing ContentDownloading operations. */ export class ContentDownloaderImpl { diff --git a/sdk/communication/communication-call-automation/src/credential/callAutomationAccessKeyCredentialPolicy.ts b/sdk/communication/communication-call-automation/src/credential/callAutomationAccessKeyCredentialPolicy.ts index 69d010cb0529..6f1404f3e467 100644 --- a/sdk/communication/communication-call-automation/src/credential/callAutomationAccessKeyCredentialPolicy.ts +++ b/sdk/communication/communication-call-automation/src/credential/callAutomationAccessKeyCredentialPolicy.ts @@ -8,7 +8,7 @@ import type { SendRequest, } from "@azure/core-rest-pipeline"; import type { KeyCredential } from "@azure/core-auth"; -import { shaHMAC, shaHash } from "./cryptoUtils"; +import { shaHMAC, shaHash } from "./cryptoUtils.js"; import { isNode } from "@azure/core-util"; const callAutomationAccessKeyCredentialPolicy = "CallAutomationAccessKeyCredentialPolicy"; diff --git a/sdk/communication/communication-call-automation/src/credential/callAutomationAuthPolicy.ts b/sdk/communication/communication-call-automation/src/credential/callAutomationAuthPolicy.ts index 5ce86340272f..093f9f9b78f4 100644 --- a/sdk/communication/communication-call-automation/src/credential/callAutomationAuthPolicy.ts +++ b/sdk/communication/communication-call-automation/src/credential/callAutomationAuthPolicy.ts @@ -8,9 +8,9 @@ import type { import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; import type { KeyCredential, TokenCredential } from "@azure/core-auth"; import { isTokenCredential } from "@azure/core-auth"; -import { createCallAutomationAccessKeyCredentialPolicy } from "./callAutomationAccessKeyCredentialPolicy"; -import type { CallAutomationApiClientOptionalParams } from "./../generated/src"; -import { CallAutomationApiClient } from "./../generated/src"; +import { createCallAutomationAccessKeyCredentialPolicy } from "./callAutomationAccessKeyCredentialPolicy.js"; +import type { CallAutomationApiClientOptionalParams } from "./../generated/src/index.js"; +import { CallAutomationApiClient } from "./../generated/src/index.js"; import { createCommunicationAuthPolicy } from "@azure/communication-common"; /** * Creates a pipeline policy to authenticate request based diff --git a/sdk/communication/communication-call-automation/src/credential/cryptoUtils-browser.mts b/sdk/communication/communication-call-automation/src/credential/cryptoUtils-browser.mts new file mode 100644 index 000000000000..1c73bc746f6f --- /dev/null +++ b/sdk/communication/communication-call-automation/src/credential/cryptoUtils-browser.mts @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/// + +import { encodeBase64, encodeUTF8, encodeUTF8fromBase64 } from "./encodeUtils.browser.js"; + +const subtle = (globalThis as any)?.crypto?.subtle as SubtleCrypto; + +export const shaHash = async (content: string): Promise => { + const data = encodeUTF8(content); + const hash = await subtle.digest("SHA-256", data); + return encodeBase64(hash); +}; + +export const shaHMAC = async (secret: string, content: string): Promise => { + const importParams: HmacImportParams = { name: "HMAC", hash: { name: "SHA-256" } }; + const encodedMessage = encodeUTF8(content); + const encodedKey = encodeUTF8fromBase64(secret); + const crypto = subtle; + const cryptoKey = await crypto.importKey("raw", encodedKey, importParams, false, ["sign"]); + const signature = await crypto.sign(importParams, cryptoKey, encodedMessage); + return encodeBase64(signature); +}; diff --git a/sdk/communication/communication-call-automation/src/credential/cryptoUtils.browser.ts b/sdk/communication/communication-call-automation/src/credential/cryptoUtils.browser.ts deleted file mode 100644 index 7819e5885208..000000000000 --- a/sdk/communication/communication-call-automation/src/credential/cryptoUtils.browser.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/// - -import { encodeBase64, encodeUTF8, encodeUTF8fromBase64 } from "./encodeUtils.browser"; - -const subtle = (globalThis as any)?.crypto?.subtle as SubtleCrypto; - -export const shaHash = async (content: string): Promise => { - const data = encodeUTF8(content); - const hash = await subtle.digest("SHA-256", data); - return encodeBase64(hash); -}; - -export const shaHMAC = async (secret: string, content: string): Promise => { - const importParams: HmacImportParams = { name: "HMAC", hash: { name: "SHA-256" } }; - const encodedMessage = encodeUTF8(content); - const encodedKey = encodeUTF8fromBase64(secret); - const crypto = subtle; - const cryptoKey = await crypto.importKey("raw", encodedKey, importParams, false, ["sign"]); - const signature = await crypto.sign(importParams, cryptoKey, encodedMessage); - return encodeBase64(signature); -}; diff --git a/sdk/communication/communication-call-automation/src/credential/cryptoUtils.ts b/sdk/communication/communication-call-automation/src/credential/cryptoUtils.ts index 9393596d80e1..bb5be4cf8ff8 100644 --- a/sdk/communication/communication-call-automation/src/credential/cryptoUtils.ts +++ b/sdk/communication/communication-call-automation/src/credential/cryptoUtils.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { createHash, createHmac } from "crypto"; +import { createHash, createHmac } from "node:crypto"; export const shaHash = async (content: string): Promise => createHash("sha256").update(content).digest("base64"); diff --git a/sdk/communication/communication-call-automation/src/eventprocessor/callAutomationEventProcessor.ts b/sdk/communication/communication-call-automation/src/eventprocessor/callAutomationEventProcessor.ts index 753595b480e2..0da46a26102d 100644 --- a/sdk/communication/communication-call-automation/src/eventprocessor/callAutomationEventProcessor.ts +++ b/sdk/communication/communication-call-automation/src/eventprocessor/callAutomationEventProcessor.ts @@ -2,8 +2,8 @@ // Licensed under the MIT License. import { EventEmitter } from "events"; -import type { CallAutomationEvent } from "../models/events"; -import { parseCallAutomationEvent } from "../callAutomationEventParser"; +import type { CallAutomationEvent } from "../models/events.js"; +import { parseCallAutomationEvent } from "../callAutomationEventParser.js"; import type { AbortSignalLike } from "@azure/abort-controller"; /** diff --git a/sdk/communication/communication-call-automation/src/eventprocessor/eventResponses.ts b/sdk/communication/communication-call-automation/src/eventprocessor/eventResponses.ts index 6acec873b3b6..844965c61af1 100644 --- a/sdk/communication/communication-call-automation/src/eventprocessor/eventResponses.ts +++ b/sdk/communication/communication-call-automation/src/eventprocessor/eventResponses.ts @@ -21,7 +21,7 @@ import type { CancelAddParticipantFailed, CreateCallFailed, AnswerFailed, -} from "../models/events"; +} from "../models/events.js"; /** * AddParticipant event result diff --git a/sdk/communication/communication-call-automation/src/generated/src/callAutomationApiClient.ts b/sdk/communication/communication-call-automation/src/generated/src/callAutomationApiClient.ts index 017c7964ea4f..cd760b618a22 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/callAutomationApiClient.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/callAutomationApiClient.ts @@ -17,15 +17,15 @@ import { CallMediaImpl, CallDialogImpl, CallRecordingImpl, -} from "./operations"; +} from "./operations/index.js"; import { CallConnection, CallMedia, CallDialog, CallRecording, -} from "./operationsInterfaces"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +} from "./operationsInterfaces/index.js"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { CallAutomationApiClientOptionalParams, CreateCallRequest, @@ -38,7 +38,7 @@ import { RedirectCallOptionalParams, RejectCallRequest, RejectCallOptionalParams, -} from "./models"; +} from "./models/index.js"; export class CallAutomationApiClient extends coreClient.ServiceClient { endpoint: string; diff --git a/sdk/communication/communication-call-automation/src/generated/src/index.ts b/sdk/communication/communication-call-automation/src/generated/src/index.ts index 9e17818e8dd7..25051937501e 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/index.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { CallAutomationApiClient } from "./callAutomationApiClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { CallAutomationApiClient } from "./callAutomationApiClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/communication/communication-call-automation/src/generated/src/models/parameters.ts b/sdk/communication/communication-call-automation/src/generated/src/models/parameters.ts index 955b0b20b73f..e78989bb9ef8 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/models/parameters.ts @@ -38,7 +38,7 @@ import { StartDialogRequest as StartDialogRequestMapper, UpdateDialogRequest as UpdateDialogRequestMapper, StartCallRecordingRequest as StartCallRecordingRequestMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/sdk/communication/communication-call-automation/src/generated/src/operations/callConnection.ts b/sdk/communication/communication-call-automation/src/generated/src/operations/callConnection.ts index bee6ed521a63..cab5532a9e38 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operations/callConnection.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operations/callConnection.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { CallConnection } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { CallConnection } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { CallAutomationApiClient } from "../callAutomationApiClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { CallAutomationApiClient } from "../callAutomationApiClient.js"; import { CallParticipantInternal, CallConnectionGetParticipantsNextOptionalParams, @@ -43,7 +43,7 @@ import { CallConnectionGetParticipantOptionalParams, CallConnectionGetParticipantResponse, CallConnectionGetParticipantsNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing CallConnection operations. */ diff --git a/sdk/communication/communication-call-automation/src/generated/src/operations/callDialog.ts b/sdk/communication/communication-call-automation/src/generated/src/operations/callDialog.ts index 02330c389d27..8d3a768299bb 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operations/callDialog.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operations/callDialog.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { CallDialog } from "../operationsInterfaces"; +import { CallDialog } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { CallAutomationApiClient } from "../callAutomationApiClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { CallAutomationApiClient } from "../callAutomationApiClient.js"; import { StartDialogRequest, CallDialogStartDialogOptionalParams, @@ -18,7 +18,7 @@ import { CallDialogStopDialogOptionalParams, UpdateDialogRequest, CallDialogUpdateDialogOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing CallDialog operations. */ export class CallDialogImpl implements CallDialog { diff --git a/sdk/communication/communication-call-automation/src/generated/src/operations/callMedia.ts b/sdk/communication/communication-call-automation/src/generated/src/operations/callMedia.ts index 222203b43c57..b563938d3763 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operations/callMedia.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operations/callMedia.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { CallMedia } from "../operationsInterfaces"; +import { CallMedia } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { CallAutomationApiClient } from "../callAutomationApiClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { CallAutomationApiClient } from "../callAutomationApiClient.js"; import { PlayRequest, CallMediaPlayOptionalParams, @@ -41,7 +41,7 @@ import { CallMediaStartMediaStreamingOptionalParams, StopMediaStreamingRequest, CallMediaStopMediaStreamingOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing CallMedia operations. */ export class CallMediaImpl implements CallMedia { diff --git a/sdk/communication/communication-call-automation/src/generated/src/operations/callRecording.ts b/sdk/communication/communication-call-automation/src/generated/src/operations/callRecording.ts index 77a91a7b2a67..8059b42bc4b6 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operations/callRecording.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operations/callRecording.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { CallRecording } from "../operationsInterfaces"; +import { CallRecording } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { CallAutomationApiClient } from "../callAutomationApiClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { CallAutomationApiClient } from "../callAutomationApiClient.js"; import { StartCallRecordingRequest, CallRecordingStartRecordingOptionalParams, @@ -20,7 +20,7 @@ import { CallRecordingStopRecordingOptionalParams, CallRecordingPauseRecordingOptionalParams, CallRecordingResumeRecordingOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing CallRecording operations. */ export class CallRecordingImpl implements CallRecording { diff --git a/sdk/communication/communication-call-automation/src/generated/src/operations/index.ts b/sdk/communication/communication-call-automation/src/generated/src/operations/index.ts index 0e60c378238d..829c6a0bef97 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operations/index.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operations/index.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./callConnection"; -export * from "./callMedia"; -export * from "./callDialog"; -export * from "./callRecording"; +export * from "./callConnection.js"; +export * from "./callMedia.js"; +export * from "./callDialog.js"; +export * from "./callRecording.js"; diff --git a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callConnection.ts b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callConnection.ts index abf0d138172f..65e3d775b292 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callConnection.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callConnection.ts @@ -34,7 +34,7 @@ import { CallConnectionCancelAddParticipantResponse, CallConnectionGetParticipantOptionalParams, CallConnectionGetParticipantResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a CallConnection. */ diff --git a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callDialog.ts b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callDialog.ts index 4fccc524812b..9099de30b228 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callDialog.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callDialog.ts @@ -13,7 +13,7 @@ import { CallDialogStopDialogOptionalParams, UpdateDialogRequest, CallDialogUpdateDialogOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a CallDialog. */ export interface CallDialog { diff --git a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callMedia.ts b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callMedia.ts index 6f2b4f3f461a..8391e8d95f38 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callMedia.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callMedia.ts @@ -36,7 +36,7 @@ import { CallMediaStartMediaStreamingOptionalParams, StopMediaStreamingRequest, CallMediaStopMediaStreamingOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a CallMedia. */ export interface CallMedia { diff --git a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callRecording.ts b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callRecording.ts index 4b783a500955..b4dd60293ae8 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callRecording.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callRecording.ts @@ -15,7 +15,7 @@ import { CallRecordingStopRecordingOptionalParams, CallRecordingPauseRecordingOptionalParams, CallRecordingResumeRecordingOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a CallRecording. */ export interface CallRecording { diff --git a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/index.ts b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/index.ts index 0e60c378238d..829c6a0bef97 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/index.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/index.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./callConnection"; -export * from "./callMedia"; -export * from "./callDialog"; -export * from "./callRecording"; +export * from "./callConnection.js"; +export * from "./callMedia.js"; +export * from "./callDialog.js"; +export * from "./callRecording.js"; diff --git a/sdk/communication/communication-call-automation/src/index.ts b/sdk/communication/communication-call-automation/src/index.ts index c93540573c04..c802829985a3 100644 --- a/sdk/communication/communication-call-automation/src/index.ts +++ b/sdk/communication/communication-call-automation/src/index.ts @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export * from "./callAutomationClient"; -export * from "./callConnection"; -export * from "./callMedia"; -export * from "./callRecording"; -export * from "./callAutomationEventParser"; -export * from "./models/models"; -export * from "./models/options"; -export * from "./models/responses"; -export * from "./models/events"; -export * from "./eventprocessor/callAutomationEventProcessor"; -export * from "./eventprocessor/eventResponses"; +export * from "./callAutomationClient.js"; +export * from "./callConnection.js"; +export * from "./callMedia.js"; +export * from "./callRecording.js"; +export * from "./callAutomationEventParser.js"; +export * from "./models/models.js"; +export * from "./models/options.js"; +export * from "./models/responses.js"; +export * from "./models/events.js"; +export * from "./eventprocessor/callAutomationEventProcessor.js"; +export * from "./eventprocessor/eventResponses.js"; diff --git a/sdk/communication/communication-call-automation/src/models/events.ts b/sdk/communication/communication-call-automation/src/models/events.ts index 4b25abc05042..df00dc5cf443 100644 --- a/sdk/communication/communication-call-automation/src/models/events.ts +++ b/sdk/communication/communication-call-automation/src/models/events.ts @@ -36,9 +36,9 @@ import type { RestCreateCallFailed, RestAnswerFailed, RestHoldFailed, -} from "../generated/src/models"; +} from "../generated/src/models/index.js"; -import type { CallParticipant } from "./models"; +import type { CallParticipant } from "./models.js"; /** Callback events for Call Automation */ export type CallAutomationEvent = diff --git a/sdk/communication/communication-call-automation/src/models/models.ts b/sdk/communication/communication-call-automation/src/models/models.ts index 7f310cb8e9c3..c0515a9c8354 100644 --- a/sdk/communication/communication-call-automation/src/models/models.ts +++ b/sdk/communication/communication-call-automation/src/models/models.ts @@ -8,7 +8,7 @@ import type { MicrosoftTeamsAppIdentifier, PhoneNumberIdentifier, } from "@azure/communication-common"; -import type { CallConnectionStateModel } from "../generated/src"; +import type { CallConnectionStateModel } from "../generated/src/index.js"; export { CallConnectionStateModel, @@ -29,7 +29,7 @@ export { SpeechResult, RecordingState, Tone, -} from "../generated/src/models/index"; +} from "../generated/src/models/index.js"; /** Properties of a call connection */ export interface CallConnectionProperties { diff --git a/sdk/communication/communication-call-automation/src/models/options.ts b/sdk/communication/communication-call-automation/src/models/options.ts index a4f49951f974..17d23a535b70 100644 --- a/sdk/communication/communication-call-automation/src/models/options.ts +++ b/sdk/communication/communication-call-automation/src/models/options.ts @@ -20,7 +20,7 @@ import type { ChannelAffinity, CallIntelligenceOptions, CustomCallingContext, -} from "./models"; +} from "./models.js"; /** Options to configure the recognize operation. */ export interface CallMediaRecognizeOptions extends OperationOptions { diff --git a/sdk/communication/communication-call-automation/src/models/responses.ts b/sdk/communication/communication-call-automation/src/models/responses.ts index 32efdaea173f..346397bb8b8b 100644 --- a/sdk/communication/communication-call-automation/src/models/responses.ts +++ b/sdk/communication/communication-call-automation/src/models/responses.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { CallConnection } from "../callConnection"; -import type { CallConnectionProperties, CallParticipant } from "./models"; -import type { RecordingState } from "../generated/src"; +import type { CallConnection } from "../callConnection.js"; +import type { CallConnectionProperties, CallParticipant } from "./models.js"; +import type { RecordingState } from "../generated/src/index.js"; import type { AddParticipantEventResult, AnswerCallEventResult, @@ -15,7 +15,7 @@ import type { StartRecognizingEventResult, TransferCallToParticipantEventResult, CancelAddParticipantEventResult, -} from "../eventprocessor/eventResponses"; +} from "../eventprocessor/eventResponses.js"; import type { AbortSignalLike } from "@azure/abort-controller"; /** diff --git a/sdk/communication/communication-call-automation/src/utli/converters.ts b/sdk/communication/communication-call-automation/src/utli/converters.ts index e24a15b791e8..b598ed51465a 100644 --- a/sdk/communication/communication-call-automation/src/utli/converters.ts +++ b/sdk/communication/communication-call-automation/src/utli/converters.ts @@ -27,9 +27,9 @@ import type { PhoneNumberIdentifierModel, CommunicationUserIdentifierModel, MicrosoftTeamsAppIdentifierModel, -} from "../generated/src"; -import { KnownCommunicationIdentifierModelKind } from "../generated/src"; -import type { CallParticipant } from "../models/models"; +} from "../generated/src/index.js"; +import { KnownCommunicationIdentifierModelKind } from "../generated/src/index.js"; +import type { CallParticipant } from "../models/models.js"; function extractKind( identifierModel: CommunicationIdentifierModel, diff --git a/sdk/communication/communication-call-automation/src/utli/streamingDataParser.ts b/sdk/communication/communication-call-automation/src/utli/streamingDataParser.ts index 802be4b1dc6d..c51235a7ef0b 100644 --- a/sdk/communication/communication-call-automation/src/utli/streamingDataParser.ts +++ b/sdk/communication/communication-call-automation/src/utli/streamingDataParser.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { createIdentifierFromRawId } from "@azure/communication-common"; -import type { TranscriptionMetadata, TranscriptionData } from "../models/transcription"; +import type { TranscriptionMetadata, TranscriptionData } from "../models/transcription.js"; /** Parse the incoming package. */ export function streamingData( diff --git a/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts b/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts deleted file mode 100644 index dee7538a6561..000000000000 --- a/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts +++ /dev/null @@ -1,373 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { Recorder } from "@azure-tools/test-recorder"; -import type { SinonStubbedInstance } from "sinon"; -import Sinon from "sinon"; -import type { CallConnectionProperties } from "../src/models/models"; -import type { AnswerCallResult, CreateCallResult } from "../src/models/responses"; -import { - CALL_CALLBACK_URL, - CALL_INCOMING_CALL_CONTEXT, - CALL_TARGET_ID, - CALL_TARGET_ID_2, -} from "./utils/connectionUtils"; -import type { - CommunicationIdentifier, - CommunicationUserIdentifier, - MicrosoftTeamsAppIdentifier, -} from "@azure/communication-common"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { CallInvite, CallConnection, CreateCallOptions, AnswerCallOptions } from "../src"; -import { CallAutomationClient } from "../src"; -import { - createRecorder, - createTestUser, - dispatcherCallback, - serviceBusWithNewCall, - createCallAutomationClient, - waitForIncomingCallContext, - waitForEvent, - events, - serviceBusReceivers, - incomingCallContexts, - loadPersistedEvents, - persistEvents, -} from "./utils/recordedClient"; -import type { - AnswerCallEventResult, - CreateCallEventResult, -} from "../src/eventprocessor/eventResponses"; -import { randomUUID } from "@azure/core-util"; -import { KnownCommunicationCloudEnvironmentModel } from "../src/generated/src"; - -function createOPSCallAutomationClient( - oPSSourceIdentity: MicrosoftTeamsAppIdentifier, -): CallAutomationClient { - const connectionString = "endpoint=https://redacted.communication.azure.com/;accesskey=redacted"; - - return new CallAutomationClient(connectionString, { - opsSourceIdentity: oPSSourceIdentity, - }); -} - -describe("Call Automation Client Unit Tests", () => { - let targets: CommunicationIdentifier[]; - let target: CallInvite; - let client: SinonStubbedInstance & CallAutomationClient; - - beforeEach(() => { - // set up - targets = [ - { - communicationUserId: CALL_TARGET_ID, - }, - { - communicationUserId: CALL_TARGET_ID_2, - }, - ]; - target = { - targetParticipant: { communicationUserId: CALL_TARGET_ID }, - }; - // stub CallAutomationClient - client = Sinon.createStubInstance( - CallAutomationClient, - ) as SinonStubbedInstance & CallAutomationClient; - }); - - it("RepeatabilityHeadersGeneration", async () => { - // mocks - const repeatabilityFirstSent: string = new Date().toUTCString(); - const repeatabilityRequestID: string = randomUUID(); - - // asserts - assert.isNotNull(repeatabilityFirstSent); - assert.isNotNull(repeatabilityRequestID); - assert.typeOf(repeatabilityFirstSent, "string"); - assert.typeOf(repeatabilityRequestID, "string"); - }); - - it("CreateCall", async () => { - // mocks - const createCallResultMock: CreateCallResult = { - callConnectionProperties: {} as CallConnectionProperties, - callConnection: {} as CallConnection, - waitForEventProcessor: async () => { - return {} as CreateCallEventResult; - }, - }; - client.createCall.returns( - new Promise((resolve) => { - resolve(createCallResultMock); - }), - ); - - const promiseResult = client.createCall(target, CALL_CALLBACK_URL); - - // asserts - promiseResult - .then((result: CreateCallResult) => { - assert.isNotNull(result); - assert.isTrue(client.createCall.calledWith(target, CALL_CALLBACK_URL)); - assert.equal(result, createCallResultMock); - return; - }) - .catch((error) => console.error(error)); - }); - - it("CreateGroupCall", async () => { - // mocks - const createGroupCallResultMock: CreateCallResult = { - callConnectionProperties: {} as CallConnectionProperties, - callConnection: {} as CallConnection, - waitForEventProcessor: async () => { - return {} as CreateCallEventResult; - }, - }; - client.createGroupCall.returns( - new Promise((resolve) => { - resolve(createGroupCallResultMock); - }), - ); - - const promiseResult = client.createGroupCall(targets, CALL_CALLBACK_URL); - - // asserts - promiseResult - .then((result: CreateCallResult) => { - assert.isNotNull(result); - assert.isTrue(client.createGroupCall.calledWith(targets, CALL_CALLBACK_URL)); - assert.equal(result, createGroupCallResultMock); - return; - }) - .catch((error) => console.error(error)); - }); - - it("CreateOPSCall", async () => { - // defined dummy variables - const appId = "28:acs:redacted"; - const appCloud = KnownCommunicationCloudEnvironmentModel.Public; - const oPSSouceStub = { - teamsAppId: appId, - cloud: appCloud, - }; - - // stub an OPS CallAutomationClient - const createOPSClientStub = Sinon.stub().callsFake(() => - createOPSCallAutomationClient(oPSSouceStub), - ); - - // Use the stubbed factory function to create the client - const oPSClient: SinonStubbedInstance & CallAutomationClient = - createOPSClientStub(); - - // Explicitly stub the createCall method - oPSClient.createCall = Sinon.stub(); - - // mocks - const createCallResultMock: CreateCallResult = { - callConnectionProperties: { - source: { - rawId: appId, - teamsAppId: appId, - cloud: appCloud, - } as MicrosoftTeamsAppIdentifier, - } as CallConnectionProperties, - callConnection: {} as CallConnection, - waitForEventProcessor: async () => { - return {} as CreateCallEventResult; - }, - }; - - (oPSClient.createCall as Sinon.SinonStub).returns(Promise.resolve(createCallResultMock)); - - const promiseResult = oPSClient.createCall(target, CALL_CALLBACK_URL); - - // asserts - promiseResult - .then((result: CreateCallResult) => { - assert.isNotNull(result); - assert.isTrue(oPSClient.createCall.calledWith(target, CALL_CALLBACK_URL)); - assert.equal(result, createCallResultMock); - return; - }) - .catch((error) => console.error(error)); - }); - - it("AnswerCall", async () => { - // mocks - const answerCallResultMock: AnswerCallResult = { - callConnectionProperties: {} as CallConnectionProperties, - callConnection: {} as CallConnection, - waitForEventProcessor: async () => { - return {} as AnswerCallEventResult; - }, - }; - client.answerCall.returns( - new Promise((resolve) => { - resolve(answerCallResultMock); - }), - ); - - const promiseResult = client.answerCall(CALL_INCOMING_CALL_CONTEXT, CALL_CALLBACK_URL); - - // asserts - promiseResult - .then((result: AnswerCallResult) => { - assert.isNotNull(result); - assert.isTrue(client.answerCall.calledWith(CALL_INCOMING_CALL_CONTEXT, CALL_CALLBACK_URL)); - assert.equal(result, answerCallResultMock); - return; - }) - .catch((error) => console.error(error)); - }); - - it("RedirectCall", async () => { - // mocks - client.redirectCall.returns( - new Promise((resolve) => { - resolve(undefined); - }), - ); - - const promiseResult = client.redirectCall(CALL_INCOMING_CALL_CONTEXT, target); - - // asserts - promiseResult - .then(() => { - assert.isTrue(client.redirectCall.calledWith(CALL_INCOMING_CALL_CONTEXT, target)); - return; - }) - .catch((error) => console.error(error)); - }); - - it("RejectCall", async () => { - // mocks - client.rejectCall.returns( - new Promise((resolve) => { - resolve(undefined); - }), - ); - - const promiseResult = client.rejectCall(CALL_INCOMING_CALL_CONTEXT); - - // asserts - promiseResult - .then(() => { - assert.isTrue(client.rejectCall.calledWith(CALL_INCOMING_CALL_CONTEXT)); - return; - }) - .catch((error) => console.error(error)); - }); -}); - -describe("Call Automation Main Client Live Tests", function () { - let recorder: Recorder; - let callerCallAutomationClient: CallAutomationClient; - let receiverCallAutomationClient: CallAutomationClient; - let callConnection: CallConnection; - let testUser: CommunicationUserIdentifier; - let testUser2: CommunicationUserIdentifier; - let testName: string; - - beforeEach(async function (this: Context) { - recorder = await createRecorder(this.currentTest); - testUser = await createTestUser(recorder); - testUser2 = await createTestUser(recorder); - callerCallAutomationClient = createCallAutomationClient(recorder, testUser); - receiverCallAutomationClient = createCallAutomationClient(recorder, testUser2); - }); - - afterEach(async function (this: Context) { - persistEvents(testName); - serviceBusReceivers.forEach((receiver) => { - receiver.close(); - }); - events.forEach((callConnectionEvents) => { - callConnectionEvents.clear(); - }); - events.clear(); - serviceBusReceivers.clear(); - incomingCallContexts.clear(); - await recorder.stop(); - if (callConnection) { - try { - await callConnection.hangUp(true); - } catch { - return; - } - } - }); - - it("Create a call and hangup", async function () { - testName = this.test?.fullTitle() - ? this.test?.fullTitle().replace(/ /g, "_") - : "create_call_and_hang_up"; - await loadPersistedEvents(testName); - - const callInvite: CallInvite = { targetParticipant: testUser2 }; - const uniqueId = await serviceBusWithNewCall(testUser, testUser2); - const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; - const createCallOption: CreateCallOptions = { operationContext: "operationContextCreateCall" }; - - const result = await callerCallAutomationClient.createCall( - callInvite, - callBackUrl, - createCallOption, - ); - const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); - const callConnectionId: string = result.callConnectionProperties.callConnectionId - ? result.callConnectionProperties.callConnectionId - : ""; - assert.isDefined(incomingCallContext); - - if (incomingCallContext) { - const answerCallOptions: AnswerCallOptions = { - operationContext: "operationContextAnswerCall", - }; - await receiverCallAutomationClient.answerCall( - incomingCallContext, - callBackUrl, - answerCallOptions, - ); - } - - const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); - assert.isDefined(callConnectedEvent); - callConnection = result.callConnection; - - await callConnection.hangUp(true); - - const callDisconnectedEvent = await waitForEvent("CallDisconnected", callConnectionId, 8000); - assert.isDefined(callDisconnectedEvent); - }).timeout(60000); - - it("Reject call", async function () { - testName = this.test?.fullTitle() ? this.test?.fullTitle().replace(/ /g, "_") : "reject_call"; - await loadPersistedEvents(testName); - - const callInvite: CallInvite = { targetParticipant: testUser2 }; - const uniqueId = await serviceBusWithNewCall(testUser, testUser2); - const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; - const createCallOption: CreateCallOptions = { operationContext: "operationContextRejectCall" }; - - const result = await callerCallAutomationClient.createCall( - callInvite, - callBackUrl, - createCallOption, - ); - const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); - const callConnectionId: string = result.callConnectionProperties.callConnectionId - ? result.callConnectionProperties.callConnectionId - : ""; - assert.isDefined(incomingCallContext); - - if (incomingCallContext) { - await receiverCallAutomationClient.rejectCall(incomingCallContext); - } - - const createCallFailedEvent = await waitForEvent("CreateCallFailed", callConnectionId, 8000); - assert.isDefined(createCallFailedEvent); - }).timeout(60000); -}); diff --git a/sdk/communication/communication-call-automation/test/callAutomationEventProcessor.spec.ts b/sdk/communication/communication-call-automation/test/callAutomationEventProcessor.spec.ts index 46bd6082af1e..904b31410eb9 100644 --- a/sdk/communication/communication-call-automation/test/callAutomationEventProcessor.spec.ts +++ b/sdk/communication/communication-call-automation/test/callAutomationEventProcessor.spec.ts @@ -1,17 +1,17 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { assert, expect } from "chai"; -import type { CallAutomationEventProcessor } from "../src/eventprocessor/callAutomationEventProcessor"; -import type { CallConnected, CallDisconnected } from "../src/models/events"; +import type { CallAutomationEventProcessor } from "../src/eventprocessor/callAutomationEventProcessor.js"; +import type { CallConnected, CallDisconnected } from "../src/models/events.js"; import { CALL_CALLBACK_URL, MOCK_CONNECTION_STRING, CALL_CALLER_ID, CALL_TARGET_ID, -} from "./utils/connectionUtils"; -import type { CallInvite } from "../src"; -import { CallAutomationClient } from "../src"; -import { generateHttpClient } from "./utils/mockClient"; +} from "./utils/connectionUtils.js"; +import type { CallInvite } from "../src/index.js"; +import { CallAutomationClient } from "../src/index.js"; +import { generateHttpClient } from "./utils/mockClient.js"; +import { describe, it, assert, expect, beforeEach } from "vitest"; describe("Call Automation Event Processor Unit Tests", () => { const CALL_CONNECTION_CALL_ID = "callConnectionId"; diff --git a/sdk/communication/communication-call-automation/test/callConnection.spec.ts b/sdk/communication/communication-call-automation/test/callConnection.spec.ts deleted file mode 100644 index 50ef375166f6..000000000000 --- a/sdk/communication/communication-call-automation/test/callConnection.spec.ts +++ /dev/null @@ -1,641 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { Recorder } from "@azure-tools/test-recorder"; -import type { CommunicationUserIdentifier } from "@azure/communication-common"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { - CallAutomationClient, - CallInvite, - CallConnectionProperties, - CallParticipant, - ListParticipantsResult, - AddParticipantResult, - TransferCallResult, - RemoveParticipantResult, - MuteParticipantResult, - CancelAddParticipantOperationResult, - AddParticipantEventResult, - TransferCallToParticipantEventResult, - RemoveParticipantEventResult, - CancelAddParticipantEventResult, - CancelAddParticipantSucceeded, - CreateCallOptions, - AnswerCallOptions, - AddParticipantOptions, - RemoveParticipantsOption, - CancelAddParticipantOperationOptions, -} from "../src"; -import { CallConnection } from "../src"; -import type { SinonStubbedInstance } from "sinon"; -import Sinon from "sinon"; -import { CALL_TARGET_ID, CALL_TARGET_ID_2 } from "./utils/connectionUtils"; -import { - createRecorder, - createTestUser, - dispatcherCallback, - serviceBusWithNewCall, - createCallAutomationClient, - waitForIncomingCallContext, - waitForEvent, - events, - serviceBusReceivers, - incomingCallContexts, - persistEvents, - loadPersistedEvents, -} from "./utils/recordedClient"; - -describe("CallConnection Unit Tests", () => { - let target: CallInvite; - let callConnection: SinonStubbedInstance & CallConnection; - - beforeEach(() => { - // set up - target = { - targetParticipant: { communicationUserId: CALL_TARGET_ID }, - }; - - // stub CallConnection - callConnection = Sinon.createStubInstance( - CallConnection, - ) as SinonStubbedInstance & CallConnection; - }); - - it("GetCallConnectionProperties", async () => { - // mocks - const callConnectionPropertiesMock: CallConnectionProperties = {}; - callConnection.getCallConnectionProperties.returns( - new Promise((resolve) => { - resolve(callConnectionPropertiesMock); - }), - ); - - const promiseResult = callConnection.getCallConnectionProperties(); - - // asserts - promiseResult - .then((result: CallConnectionProperties) => { - assert.isNotNull(result); - assert.isTrue(callConnection.getCallConnectionProperties.calledWith()); - assert.equal(result, callConnectionPropertiesMock); - return; - }) - .catch((error) => console.error(error)); - }); - - it("HangUp", async () => { - // mocks - callConnection.hangUp.returns( - new Promise((resolve) => { - resolve(undefined); - }), - ); - - const promiseResult = callConnection.hangUp(false); - - // asserts - promiseResult - .then(() => { - assert.isTrue(callConnection.hangUp.calledWith(false)); - return; - }) - .catch((error) => console.error(error)); - }); - - it("Terminate", async () => { - // mocks - callConnection.hangUp.returns( - new Promise((resolve) => { - resolve(undefined); - }), - ); - - const promiseResult = callConnection.hangUp(true); - - // asserts - promiseResult - .then(() => { - assert.isTrue(callConnection.hangUp.calledWith(true)); - return; - }) - .catch((error) => console.error(error)); - }); - - it("GetParticipant", async () => { - // mocks - const callParticipantMock: CallParticipant = {}; - callConnection.getParticipant.returns( - new Promise((resolve) => { - resolve(callParticipantMock); - }), - ); - - const promiseResult = callConnection.getParticipant(target.targetParticipant); - - // asserts - promiseResult - .then((result: CallParticipant) => { - assert.isNotNull(result); - assert.isTrue(callConnection.getParticipant.calledWith(target.targetParticipant)); - assert.equal(result, callParticipantMock); - return; - }) - .catch((error) => console.error(error)); - }); - - it("ListParticipants", async () => { - // mocks - const listParticipantsResultMock: ListParticipantsResult = {}; - callConnection.listParticipants.returns( - new Promise((resolve) => { - resolve(listParticipantsResultMock); - }), - ); - - const promiseResult = callConnection.listParticipants(); - - // asserts - promiseResult - .then((result: ListParticipantsResult) => { - assert.isNotNull(result); - assert.isTrue(callConnection.listParticipants.calledWith()); - assert.equal(result, listParticipantsResultMock); - return; - }) - .catch((error) => console.error(error)); - }); - - it("AddParticipant", async () => { - // mocks - const addParticipantResultMock: AddParticipantResult = { - waitForEventProcessor: async () => { - return {} as AddParticipantEventResult; - }, - }; - callConnection.addParticipant.returns( - new Promise((resolve) => { - resolve(addParticipantResultMock); - }), - ); - - const promiseResult = callConnection.addParticipant(target); - - // asserts - promiseResult - .then((result: AddParticipantResult) => { - assert.isNotNull(result); - assert.isTrue(callConnection.addParticipant.calledWith(target)); - assert.equal(result, addParticipantResultMock); - return; - }) - .catch((error) => console.error(error)); - }); - - it("TransferCallToParticipant", async () => { - // mocks - const transferCallResultMock: TransferCallResult = { - waitForEventProcessor: async () => { - return {} as TransferCallToParticipantEventResult; - }, - }; - callConnection.transferCallToParticipant.returns( - new Promise((resolve) => { - resolve(transferCallResultMock); - }), - ); - - const promiseResult = callConnection.transferCallToParticipant(target.targetParticipant); - - // asserts - promiseResult - .then((result: TransferCallResult) => { - assert.isNotNull(result); - assert.isTrue( - callConnection.transferCallToParticipant.calledWith(target.targetParticipant), - ); - assert.equal(result, transferCallResultMock); - return; - }) - .catch((error) => console.error(error)); - }); - - it("TransferCallToParticipantWithTransferee", async () => { - // mocks - const transferCallResultMock: TransferCallResult = { - waitForEventProcessor: async () => { - return {} as TransferCallToParticipantEventResult; - }, - }; - callConnection.transferCallToParticipant.returns( - new Promise((resolve) => { - resolve(transferCallResultMock); - }), - ); - - const transferee = { communicationUserId: CALL_TARGET_ID_2 }; - - const promiseResult = callConnection.transferCallToParticipant(target.targetParticipant, { - transferee: transferee, - }); - - // asserts - promiseResult - .then((result: TransferCallResult) => { - assert.isNotNull(result); - assert.isTrue( - callConnection.transferCallToParticipant.calledWith(target.targetParticipant), - ); - assert.equal(result, transferCallResultMock); - return; - }) - .catch((error) => console.error(error)); - }); - - it("RemoveParticipant", async () => { - // mocks - const removeParticipantResultMock: RemoveParticipantResult = { - waitForEventProcessor: async () => { - return {} as RemoveParticipantEventResult; - }, - }; - callConnection.removeParticipant.returns( - new Promise((resolve) => { - resolve(removeParticipantResultMock); - }), - ); - - const promiseResult = callConnection.removeParticipant(target.targetParticipant); - - // asserts - promiseResult - .then((result: RemoveParticipantResult) => { - assert.isNotNull(result); - assert.isTrue(callConnection.removeParticipant.calledWith(target.targetParticipant)); - assert.equal(result, removeParticipantResultMock); - return; - }) - .catch((error) => console.error(error)); - }); - - it("MuteParticipant", async () => { - // mocks - const muteParticipantResultMock: MuteParticipantResult = {}; - callConnection.muteParticipant.returns( - new Promise((resolve) => { - resolve(muteParticipantResultMock); - }), - ); - - const promiseResult = callConnection.muteParticipant(target.targetParticipant); - - // asserts - promiseResult - .then((result: MuteParticipantResult) => { - assert.isNotNull(result); - assert.isTrue(callConnection.muteParticipant.calledWith(target.targetParticipant)); - assert.equal(result, muteParticipantResultMock); - return; - }) - .catch((error) => console.error(error)); - }); - - it("CancelAddParticipant", async () => { - const invitationId = "invitationId"; - const cancelAddParticipantResultMock: CancelAddParticipantOperationResult = { - invitationId, - waitForEventProcessor: async () => { - return {} as CancelAddParticipantEventResult; - }, - }; - callConnection.cancelAddParticipantOperation.returns( - new Promise((resolve) => { - resolve(cancelAddParticipantResultMock); - }), - ); - - callConnection - .cancelAddParticipantOperation(invitationId) - .then((result: CancelAddParticipantOperationResult) => { - assert.isNotNull(result); - assert.isTrue(callConnection.cancelAddParticipantOperation.calledWith(invitationId)); - assert.equal(result, cancelAddParticipantResultMock); - return; - }) - .catch((error) => console.error(error)); - }); -}); - -describe("CallConnection Live Tests", function () { - let recorder: Recorder; - let callerCallAutomationClient: CallAutomationClient; - let receiverCallAutomationClient: CallAutomationClient; - let callConnection: CallConnection; - let testUser: CommunicationUserIdentifier; - let testUser2: CommunicationUserIdentifier; - let callConnectionId: string; - let testName: string; - - beforeEach(async function (this: Context) { - recorder = await createRecorder(this.currentTest); - testUser = await createTestUser(recorder); - testUser2 = await createTestUser(recorder); - callerCallAutomationClient = createCallAutomationClient(recorder, testUser); - receiverCallAutomationClient = createCallAutomationClient(recorder, testUser2); - }); - - afterEach(async function (this: Context) { - persistEvents(testName); - serviceBusReceivers.forEach((receiver) => { - receiver.close(); - }); - events.forEach((callConnectionEvents) => { - callConnectionEvents.clear(); - }); - events.clear(); - serviceBusReceivers.clear(); - incomingCallContexts.clear(); - await recorder.stop(); - if (callConnection) { - try { - await callConnection.hangUp(true); - } catch { - return; - } - } - }); - - it("List all participants", async function () { - testName = this.test?.fullTitle() - ? this.test?.fullTitle().replace(/ /g, "_") - : "list_all_participants"; - await loadPersistedEvents(testName); - - const callInvite: CallInvite = { targetParticipant: testUser2 }; - const uniqueId = await serviceBusWithNewCall(testUser, testUser2); - const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; - const createCallOption: CreateCallOptions = { operationContext: "listParticipantsCreateCall" }; - - const result = await callerCallAutomationClient.createCall( - callInvite, - callBackUrl, - createCallOption, - ); - const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); - callConnectionId = result.callConnectionProperties.callConnectionId - ? result.callConnectionProperties.callConnectionId - : ""; - assert.isDefined(incomingCallContext); - if (incomingCallContext) { - const answerCallOptions: AnswerCallOptions = { operationContext: "listParticipantsAnswer" }; - await receiverCallAutomationClient.answerCall( - incomingCallContext, - callBackUrl, - answerCallOptions, - ); - } - const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); - assert.isDefined(callConnectedEvent); - callConnection = result.callConnection; - const allParticipants = await callConnection.listParticipants(); - assert.isDefined(allParticipants); - assert.isDefined(allParticipants.values); - }).timeout(60000); - - it("Add a participant and get call properties", async function () { - testName = this.test?.fullTitle() - ? this.test?.fullTitle().replace(/ /g, "_") - : "add_participant_and_get_call_props"; - await loadPersistedEvents(testName); - - const callInvite: CallInvite = { targetParticipant: testUser2 }; - const uniqueId = await serviceBusWithNewCall(testUser, testUser2); - const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; - const createCallOption: CreateCallOptions = { operationContext: "addParticipantsCreateCall" }; - const result = await callerCallAutomationClient.createCall( - callInvite, - callBackUrl, - createCallOption, - ); - - const incomingCallContext = await waitForIncomingCallContext(uniqueId, 10000); - callConnectionId = result.callConnectionProperties.callConnectionId - ? result.callConnectionProperties.callConnectionId - : ""; - assert.isDefined(incomingCallContext); - if (incomingCallContext) { - const answerCallOptions: AnswerCallOptions = { operationContext: "addParticipantsAnswer" }; - await receiverCallAutomationClient.answerCall( - incomingCallContext, - callBackUrl, - answerCallOptions, - ); - } - const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 10000); - assert.isDefined(callConnectedEvent); - callConnection = result.callConnection; - const testUser3: CommunicationUserIdentifier = await createTestUser(recorder); - const participantInvite: CallInvite = { targetParticipant: testUser3 }; - const uniqueId2 = await serviceBusWithNewCall(testUser, testUser3); - const callBackUrl2: string = dispatcherCallback + `?q=${uniqueId2}`; - - const addParticipantOptions: AddParticipantOptions = { operationContext: "addParticipants" }; - const addResult = await callConnection.addParticipant(participantInvite, addParticipantOptions); - assert.isDefined(addResult); - - const anotherReceiverCallAutomationClient: CallAutomationClient = createCallAutomationClient( - recorder, - testUser3, - ); - const anotherIncomingCallContext = await waitForIncomingCallContext(uniqueId2, 20000); - if (anotherIncomingCallContext) { - const answerCallOption2: AddParticipantOptions = { - operationContext: "addParticipantsAnswer2", - }; - await anotherReceiverCallAutomationClient.answerCall( - anotherIncomingCallContext, - callBackUrl2, - answerCallOption2, - ); - } - const participantAddedEvent = await waitForEvent( - "AddParticipantSucceeded", - callConnectionId, - 10000, - ); - assert.isDefined(participantAddedEvent); - - const callProperties = await callConnection.getCallConnectionProperties(); - assert.isDefined(callProperties); - }).timeout(90000); - - it("Remove a participant", async function () { - testName = this.test?.fullTitle() - ? this.test?.fullTitle().replace(/ /g, "_") - : "remove_a_participant"; - await loadPersistedEvents(testName); - - const callInvite: CallInvite = { targetParticipant: testUser2 }; - const uniqueId = await serviceBusWithNewCall(testUser, testUser2); - const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; - const createCallOption: CreateCallOptions = { operationContext: "removeParticipantCreateCall" }; - const result = await callerCallAutomationClient.createCall( - callInvite, - callBackUrl, - createCallOption, - ); - const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); - callConnectionId = result.callConnectionProperties.callConnectionId - ? result.callConnectionProperties.callConnectionId - : ""; - assert.isDefined(incomingCallContext); - if (incomingCallContext) { - const answerCallOption: AnswerCallOptions = { operationContext: "removeParticipantsAnswer" }; - await receiverCallAutomationClient.answerCall( - incomingCallContext, - callBackUrl, - answerCallOption, - ); - } - const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); - assert.isDefined(callConnectedEvent); - callConnection = result.callConnection; - const removeParticipantOptions: RemoveParticipantsOption = { - operationContext: "removeParticipants", - }; - const removeResult = await callConnection.removeParticipant( - testUser2, - removeParticipantOptions, - ); - assert.isDefined(removeResult); - - // A call needs at least 2 participants, removing one of the only 2 participants would end the call. - const callEndedEvent = await waitForEvent("CallDisconnected", callConnectionId, 8000); - assert.isDefined(callEndedEvent); - }).timeout(60000); - - it("Mute a participant", async function () { - testName = this.test?.fullTitle() - ? this.test?.fullTitle().replace(/ /g, "_") - : "mute_participant"; - await loadPersistedEvents(testName); - - const callInvite: CallInvite = { targetParticipant: testUser2 }; - const uniqueId = await serviceBusWithNewCall(testUser, testUser2); - const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; - const result = await callerCallAutomationClient.createCall(callInvite, callBackUrl); - const incomingCallContext = await waitForIncomingCallContext(uniqueId, 20000); - callConnectionId = result.callConnectionProperties.callConnectionId - ? result.callConnectionProperties.callConnectionId - : ""; - assert.isDefined(incomingCallContext); - if (incomingCallContext) { - await receiverCallAutomationClient.answerCall(incomingCallContext, callBackUrl); - } - const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); - assert.isDefined(callConnectedEvent); - callConnection = result.callConnection; - const testUser3: CommunicationUserIdentifier = await createTestUser(recorder); - const participantInvite: CallInvite = { targetParticipant: testUser3 }; - const uniqueId2 = await serviceBusWithNewCall(testUser, testUser3); - const callBackUrl2: string = dispatcherCallback + `?q=${uniqueId2}`; - - const addParticipantOption: AddParticipantOptions = { operationContext: "addParticipant" }; - const addResult = await callConnection.addParticipant(participantInvite, addParticipantOption); - assert.isDefined(addResult); - - // A call needs at least 3 participants to mute a participant. So adding one more participant. - const anotherReceiverCallAutomationClient: CallAutomationClient = createCallAutomationClient( - recorder, - testUser3, - ); - const anotherIncomingCallContext = await waitForIncomingCallContext(uniqueId2, 20000); - if (anotherIncomingCallContext) { - await anotherReceiverCallAutomationClient.answerCall( - anotherIncomingCallContext, - callBackUrl2, - ); - } - const participantAddedEvent = await waitForEvent( - "AddParticipantSucceeded", - callConnectionId, - 8000, - ); - assert.isDefined(participantAddedEvent); - - const muteResult = await callConnection.muteParticipant(testUser2); - assert.isDefined(muteResult); - - await new Promise((resolve) => setTimeout(resolve, 3000)); - - const participantLists = await callConnection.listParticipants(); - let isMuted = false; - for (const participant of participantLists.values!) { - const communicationUser = participant.identifier as CommunicationUserIdentifier; - if (communicationUser.communicationUserId === testUser2.communicationUserId) { - isMuted = participant.isMuted!; - } - } - assert.isTrue(isMuted); - }).timeout(90000); - - it("Add a participant cancels add participant request", async function () { - testName = this.test?.fullTitle() - ? this.test?.fullTitle().replace(/ /g, "_") - : "cancel_add_participant"; - await loadPersistedEvents(testName); - - const callInvite: CallInvite = { targetParticipant: testUser2 }; - const uniqueId = await serviceBusWithNewCall(testUser, testUser2); - const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; - const createCallOption: CreateCallOptions = { operationContext: "cancelAddCreateCall" }; - const result = await callerCallAutomationClient.createCall( - callInvite, - callBackUrl, - createCallOption, - ); - const incomingCallContext = await waitForIncomingCallContext(uniqueId, 10000); - callConnectionId = result.callConnectionProperties.callConnectionId - ? result.callConnectionProperties.callConnectionId - : ""; - assert.isDefined(incomingCallContext); - if (incomingCallContext) { - const answerCallOption: AnswerCallOptions = { operationContext: "cancelAddCreateAnswer" }; - await receiverCallAutomationClient.answerCall( - incomingCallContext, - callBackUrl, - answerCallOption, - ); - } - const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 10000); - assert.isDefined(callConnectedEvent); - callConnection = result.callConnection; - const testUser3: CommunicationUserIdentifier = await createTestUser(recorder); - const participantInvite: CallInvite = { targetParticipant: testUser3 }; - - const addParticipantOptions: AddParticipantOptions = { operationContext: "cancelAdd" }; - const addResult = await callConnection.addParticipant(participantInvite, addParticipantOptions); - assert.isDefined(addResult); - - // ensure invitation is sent out - await ((ms: number): Promise => new Promise((resolve) => setTimeout(resolve, ms)))(3000); - - // cancel add participant - const cancelParticipantOption: CancelAddParticipantOperationOptions = { - operationContext: "cancelOp", - }; - await callConnection.cancelAddParticipantOperation( - addResult.invitationId!, - cancelParticipantOption, - ); - - const addParticipantCancelledEvent = (await waitForEvent( - "CancelAddParticipantSucceeded", - callConnectionId, - 10000, - )) as CancelAddParticipantSucceeded; - - assert.isDefined(addParticipantCancelledEvent); - assert.equal(addResult.invitationId, addParticipantCancelledEvent?.invitationId); - }).timeout(90000); -}); diff --git a/sdk/communication/communication-call-automation/test/node/callAutomationClient.live.spec.ts b/sdk/communication/communication-call-automation/test/node/callAutomationClient.live.spec.ts new file mode 100644 index 000000000000..6290834543f9 --- /dev/null +++ b/sdk/communication/communication-call-automation/test/node/callAutomationClient.live.spec.ts @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import type { Recorder } from "@azure-tools/test-recorder"; +import type { CallAutomationClient } from "../../src/index.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; +import { + createRecorder, + createTestUser, + dispatcherCallback, + serviceBusWithNewCall, + createCallAutomationClient, + waitForIncomingCallContext, + waitForEvent, + events, + serviceBusReceivers, + incomingCallContexts, + loadPersistedEvents, + persistEvents, +} from "../utils/recordedClient.js"; +import type { CommunicationUserIdentifier } from "@azure/communication-common"; +import type { + CallInvite, + CallConnection, + CreateCallOptions, + AnswerCallOptions, +} from "../../src/index.js"; +import { isNodeLike } from "@azure/core-util"; + +describe("Call Automation Main Client Live Tests", { skip: !isNodeLike }, () => { + let recorder: Recorder; + let callerCallAutomationClient: CallAutomationClient; + let receiverCallAutomationClient: CallAutomationClient; + let callConnection: CallConnection; + let testUser: CommunicationUserIdentifier; + let testUser2: CommunicationUserIdentifier; + let testName: string; + + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); + testUser = await createTestUser(recorder); + testUser2 = await createTestUser(recorder); + callerCallAutomationClient = createCallAutomationClient(recorder, testUser); + receiverCallAutomationClient = createCallAutomationClient(recorder, testUser2); + }); + + afterEach(async () => { + persistEvents(testName); + serviceBusReceivers.forEach((receiver) => { + receiver.close(); + }); + events.forEach((callConnectionEvents) => { + callConnectionEvents.clear(); + }); + events.clear(); + serviceBusReceivers.clear(); + incomingCallContexts.clear(); + await recorder.stop(); + if (callConnection) { + try { + await callConnection.hangUp(true); + } catch { + return; + } + } + }); + + it("Create a call and hangup", { timeout: 60000 }, async (ctx) => { + const fullTitle: string | undefined = + ctx.task.suite && ctx.task.suite.name && ctx.task.name + ? `${ctx.task.suite.name} ${ctx.task.name}` + : undefined; + + testName = fullTitle ? fullTitle.replace(/ /g, "_") : "create_call_and_hang_up"; + await loadPersistedEvents(testName); + + const callInvite: CallInvite = { targetParticipant: testUser2 }; + const uniqueId = await serviceBusWithNewCall(testUser, testUser2); + const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; + const createCallOption: CreateCallOptions = { operationContext: "operationContextCreateCall" }; + + const result = await callerCallAutomationClient.createCall( + callInvite, + callBackUrl, + createCallOption, + ); + const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); + const callConnectionId: string = result.callConnectionProperties.callConnectionId + ? result.callConnectionProperties.callConnectionId + : ""; + assert.isDefined(incomingCallContext); + + if (incomingCallContext) { + const answerCallOptions: AnswerCallOptions = { + operationContext: "operationContextAnswerCall", + }; + await receiverCallAutomationClient.answerCall( + incomingCallContext, + callBackUrl, + answerCallOptions, + ); + } + + const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); + + assert.isDefined(callConnectedEvent); + callConnection = result.callConnection; + + await callConnection.hangUp(true); + + const callDisconnectedEvent = await waitForEvent("CallDisconnected", callConnectionId, 8000); + assert.isDefined(callDisconnectedEvent); + }); + + it("Reject call", { timeout: 60000 }, async (ctx) => { + const fullTitle: string | undefined = + ctx.task.suite && ctx.task.suite.name && ctx.task.name + ? `${ctx.task.suite.name} ${ctx.task.name}` + : undefined; + testName = fullTitle ? fullTitle.replace(/ /g, "_") : "reject_call"; + await loadPersistedEvents(testName); + + const callInvite: CallInvite = { targetParticipant: testUser2 }; + const uniqueId = await serviceBusWithNewCall(testUser, testUser2); + const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; + const createCallOption: CreateCallOptions = { operationContext: "operationContextRejectCall" }; + + const result = await callerCallAutomationClient.createCall( + callInvite, + callBackUrl, + createCallOption, + ); + const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); + const callConnectionId: string = result.callConnectionProperties.callConnectionId + ? result.callConnectionProperties.callConnectionId + : ""; + assert.isDefined(incomingCallContext); + + if (incomingCallContext) { + await receiverCallAutomationClient.rejectCall(incomingCallContext); + } + + const createCallFailedEvent = await waitForEvent("CreateCallFailed", callConnectionId, 8000); + assert.isDefined(createCallFailedEvent); + }); +}); diff --git a/sdk/communication/communication-call-automation/test/node/callAutomationClient.spec.ts b/sdk/communication/communication-call-automation/test/node/callAutomationClient.spec.ts new file mode 100644 index 000000000000..bced07a5ff99 --- /dev/null +++ b/sdk/communication/communication-call-automation/test/node/callAutomationClient.spec.ts @@ -0,0 +1,230 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import type { CallConnectionProperties } from "../../src/models/models.js"; +import type { AnswerCallResult, CreateCallResult } from "../../src/models/responses.js"; +import { + CALL_CALLBACK_URL, + CALL_INCOMING_CALL_CONTEXT, + CALL_TARGET_ID, + CALL_TARGET_ID_2, +} from "../utils/connectionUtils.js"; +import type { + CommunicationIdentifier, + MicrosoftTeamsAppIdentifier, +} from "@azure/communication-common"; +import type { CallInvite, CallConnection } from "../../src/index.js"; +import type { + AnswerCallEventResult, + CreateCallEventResult, +} from "../../src/eventprocessor/eventResponses.js"; +import { randomUUID } from "@azure/core-util"; +import { KnownCommunicationCloudEnvironmentModel } from "../../src/generated/src/index.js"; +import type { MockedObject } from "vitest"; +import { describe, it, assert, expect, vi, beforeEach } from "vitest"; + +vi.mock("../src/index.js", async (importActual) => { + const CallAutomationClient = vi.fn(); + CallAutomationClient.prototype.createCall = vi.fn(); + CallAutomationClient.prototype.createGroupCall = vi.fn(); + CallAutomationClient.prototype.answerCall = vi.fn(); + CallAutomationClient.prototype.redirectCall = vi.fn(); + CallAutomationClient.prototype.rejectCall = vi.fn(); + + return { + ...(await importActual()), + CallAutomationClient, + }; +}); + +import { CallAutomationClient } from "../../src/index.js"; + +function createOPSCallAutomationClient( + oPSSourceIdentity: MicrosoftTeamsAppIdentifier, +): CallAutomationClient { + const connectionString = "endpoint=https://redacted.communication.azure.com/;accesskey=redacted"; + + return new CallAutomationClient(connectionString, { + opsSourceIdentity: oPSSourceIdentity, + }); +} + +describe("Call Automation Client Unit Tests", () => { + let targets: CommunicationIdentifier[]; + let target: CallInvite; + let client: MockedObject; + + beforeEach(() => { + // set up + targets = [ + { + communicationUserId: CALL_TARGET_ID, + }, + { + communicationUserId: CALL_TARGET_ID_2, + }, + ]; + target = { + targetParticipant: { communicationUserId: CALL_TARGET_ID }, + }; + // stub CallAutomationClient + client = vi.mocked( + new CallAutomationClient( + "endpoint=https://redacted.communication.azure.com/;accesskey=redacted", + ), + ); + }); + + it("RepeatabilityHeadersGeneration", async () => { + // mocks + const repeatabilityFirstSent: string = new Date().toUTCString(); + const repeatabilityRequestID: string = randomUUID(); + + // asserts + assert.isNotNull(repeatabilityFirstSent); + assert.isNotNull(repeatabilityRequestID); + assert.typeOf(repeatabilityFirstSent, "string"); + assert.typeOf(repeatabilityRequestID, "string"); + }); + + it("CreateCall", async () => { + // mocks + const createCallResultMock: CreateCallResult = { + callConnectionProperties: {} as CallConnectionProperties, + callConnection: {} as CallConnection, + waitForEventProcessor: async () => { + return {} as CreateCallEventResult; + }, + }; + vi.spyOn(client, "createCall").mockResolvedValue(createCallResultMock); + + const promiseResult = client.createCall(target, CALL_CALLBACK_URL); + + // asserts + const result = await promiseResult; + assert.isNotNull(result); + expect(client.createCall).toHaveBeenCalledWith(target, CALL_CALLBACK_URL); + assert.equal(result, createCallResultMock); + }); + + it("CreateGroupCall", async () => { + // mocks + const createGroupCallResultMock: CreateCallResult = { + callConnectionProperties: {} as CallConnectionProperties, + callConnection: {} as CallConnection, + waitForEventProcessor: async () => { + return {} as CreateCallEventResult; + }, + }; + + vi.spyOn(client, "createGroupCall").mockResolvedValue(createGroupCallResultMock); + + const promiseResult = client.createGroupCall(targets, CALL_CALLBACK_URL); + + // asserts + const result = await promiseResult; + assert.isNotNull(result); + expect(client.createGroupCall).toHaveBeenCalledWith(targets, CALL_CALLBACK_URL); + assert.equal(result, createGroupCallResultMock); + }); + + it("CreateOPSCall", async () => { + // defined dummy variables + const appId = "28:acs:redacted"; + const appCloud = KnownCommunicationCloudEnvironmentModel.Public; + const oPSSouceStub = { + teamsAppId: appId, + cloud: appCloud, + }; + + // stub an OPS CallAutomationClient + const createOPSClientStub = vi + .fn() + .mockImplementation(() => createOPSCallAutomationClient(oPSSouceStub)); + + // Use the stubbed factory function to create the client + const oPSClient: MockedObject = createOPSClientStub(); + + // Explicitly stub the createCall method + oPSClient.createCall = vi.fn(); + + // mocks + const createCallResultMock: CreateCallResult = { + callConnectionProperties: { + source: { + rawId: appId, + teamsAppId: appId, + cloud: appCloud, + } as MicrosoftTeamsAppIdentifier, + } as CallConnectionProperties, + callConnection: {} as CallConnection, + waitForEventProcessor: async () => { + return {} as CreateCallEventResult; + }, + }; + + vi.spyOn(oPSClient, "createCall").mockResolvedValue(createCallResultMock); + const promiseResult = oPSClient.createCall(target, CALL_CALLBACK_URL); + + // asserts + promiseResult + .then((result: CreateCallResult) => { + assert.isNotNull(result); + expect(oPSClient.createCall).toHaveBeenCalledWith(target, CALL_CALLBACK_URL); + assert.equal(result, createCallResultMock); + return; + }) + .catch((error) => console.error(error)); + }); + + it("AnswerCall", async () => { + // mocks + const answerCallResultMock: AnswerCallResult = { + callConnectionProperties: {} as CallConnectionProperties, + callConnection: {} as CallConnection, + waitForEventProcessor: async () => { + return {} as AnswerCallEventResult; + }, + }; + vi.spyOn(client, "answerCall").mockResolvedValue(answerCallResultMock); + + const promiseResult = client.answerCall(CALL_INCOMING_CALL_CONTEXT, CALL_CALLBACK_URL); + + // asserts + const result = await promiseResult; + + assert.isNotNull(result); + expect(client.answerCall).toHaveBeenCalledWith(CALL_INCOMING_CALL_CONTEXT, CALL_CALLBACK_URL); + assert.equal(result, answerCallResultMock); + }); + + it("RedirectCall", async () => { + // mocks + vi.spyOn(client, "redirectCall").mockReturnValue( + new Promise((resolve) => { + resolve(undefined); + }), + ); + + const promiseResult = client.redirectCall(CALL_INCOMING_CALL_CONTEXT, target); + + // asserts + await promiseResult; + expect(client.redirectCall).toHaveBeenCalledWith(CALL_INCOMING_CALL_CONTEXT, target); + }); + + it("RejectCall", async () => { + // mocks + vi.spyOn(client, "rejectCall").mockReturnValue( + new Promise((resolve) => { + resolve(undefined); + }), + ); + + const promiseResult = client.rejectCall(CALL_INCOMING_CALL_CONTEXT); + + // asserts + await promiseResult; + expect(client.rejectCall).toHaveBeenCalledWith(CALL_INCOMING_CALL_CONTEXT); + }); +}); diff --git a/sdk/communication/communication-call-automation/test/node/callConnection.spec.ts b/sdk/communication/communication-call-automation/test/node/callConnection.spec.ts new file mode 100644 index 000000000000..23188c58cbcd --- /dev/null +++ b/sdk/communication/communication-call-automation/test/node/callConnection.spec.ts @@ -0,0 +1,630 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import type { Recorder } from "@azure-tools/test-recorder"; +import type { CommunicationUserIdentifier } from "@azure/communication-common"; +import type { + CallAutomationClient, + CallInvite, + CallConnectionProperties, + CallParticipant, + ListParticipantsResult, + AddParticipantResult, + TransferCallResult, + RemoveParticipantResult, + MuteParticipantResult, + CancelAddParticipantOperationResult, + AddParticipantEventResult, + TransferCallToParticipantEventResult, + RemoveParticipantEventResult, + CancelAddParticipantEventResult, + CancelAddParticipantSucceeded, + CreateCallOptions, + AnswerCallOptions, + AddParticipantOptions, + RemoveParticipantsOption, + CancelAddParticipantOperationOptions, +} from "../../src/index.js"; +import { CALL_TARGET_ID, CALL_TARGET_ID_2 } from "../utils/connectionUtils.js"; +import { + createRecorder, + createTestUser, + dispatcherCallback, + serviceBusWithNewCall, + createCallAutomationClient, + waitForIncomingCallContext, + waitForEvent, + events, + serviceBusReceivers, + incomingCallContexts, + persistEvents, + loadPersistedEvents, +} from "../utils/recordedClient.js"; +import type { MockedObject } from "vitest"; +import { describe, it, assert, expect, vi, beforeEach, afterEach } from "vitest"; + +vi.mock(import("../../src/index.js"), async (importOriginal) => { + const mod = await importOriginal(); + + const CallConnection = vi.fn(); + CallConnection.prototype.getCallConnectionProperties = vi.fn(); + CallConnection.prototype.hangUp = vi.fn(); + CallConnection.prototype.getParticipant = vi.fn(); + CallConnection.prototype.listParticipants = vi.fn(); + CallConnection.prototype.addParticipant = vi.fn(); + CallConnection.prototype.transferCallToParticipant = vi.fn(); + CallConnection.prototype.removeParticipant = vi.fn(); + CallConnection.prototype.muteParticipant = vi.fn(); + CallConnection.prototype.cancelAddParticipantOperation = vi.fn(); + + return { + ...mod, + CallConnection, + }; +}); + +import { CallConnection } from "../../src/index.js"; + +describe("CallConnection Unit Tests", () => { + let target: CallInvite; + let callConnection: MockedObject; + + beforeEach(() => { + // set up + target = { + targetParticipant: { communicationUserId: CALL_TARGET_ID }, + }; + + // stub CallConnection + callConnection = vi.mocked( + new CallConnection( + expect.anything(), + expect.anything(), + expect.anything(), + expect.anything(), + expect.anything(), + ), + ); + }); + + it("GetCallConnectionProperties", async () => { + // mocks + const callConnectionPropertiesMock: CallConnectionProperties = {}; + callConnection.getCallConnectionProperties.mockReturnValue( + new Promise((resolve) => { + resolve(callConnectionPropertiesMock); + }), + ); + + const promiseResult = callConnection.getCallConnectionProperties(); + + // asserts + const result = await promiseResult; + assert.isNotNull(result); + expect(callConnection.getCallConnectionProperties).toHaveBeenCalled(); + assert.equal(result, callConnectionPropertiesMock); + }); + + it("HangUp", async () => { + // mocks + callConnection.hangUp.mockReturnValue( + new Promise((resolve) => { + resolve(undefined); + }), + ); + + const promiseResult = callConnection.hangUp(false); + + // asserts + await promiseResult; + expect(callConnection.hangUp).toHaveBeenCalledWith(false); + }); + + it("Terminate", async () => { + // mocks + callConnection.hangUp.mockReturnValue( + new Promise((resolve) => { + resolve(undefined); + }), + ); + + const promiseResult = callConnection.hangUp(true); + + // asserts + await promiseResult; + expect(callConnection.hangUp).toHaveBeenCalledWith(true); + }); + + it("GetParticipant", async () => { + // mocks + const callParticipantMock: CallParticipant = {}; + callConnection.getParticipant.mockReturnValue( + new Promise((resolve) => { + resolve(callParticipantMock); + }), + ); + + const promiseResult = callConnection.getParticipant(target.targetParticipant); + + // asserts + const result = await promiseResult; + assert.isNotNull(result); + expect(callConnection.getParticipant).toHaveBeenCalledWith(target.targetParticipant); + assert.equal(result, callParticipantMock); + }); + + it("ListParticipants", async () => { + // mocks + const listParticipantsResultMock: ListParticipantsResult = {}; + callConnection.listParticipants.mockReturnValue( + new Promise((resolve) => { + resolve(listParticipantsResultMock); + }), + ); + + const promiseResult = callConnection.listParticipants(); + + // asserts + const result = await promiseResult; + assert.isNotNull(result); + expect(callConnection.listParticipants).toHaveBeenCalled(); + assert.equal(result, listParticipantsResultMock); + }); + + it("AddParticipant", async () => { + // mocks + const addParticipantResultMock: AddParticipantResult = { + waitForEventProcessor: async () => { + return {} as AddParticipantEventResult; + }, + }; + callConnection.addParticipant.mockReturnValue( + new Promise((resolve) => { + resolve(addParticipantResultMock); + }), + ); + + const promiseResult = callConnection.addParticipant(target); + + // asserts + const result = await promiseResult; + assert.isNotNull(result); + expect(callConnection.addParticipant).toHaveBeenCalledWith(target); + assert.equal(result, addParticipantResultMock); + }); + + it("TransferCallToParticipant", async () => { + // mocks + const transferCallResultMock: TransferCallResult = { + waitForEventProcessor: async () => { + return {} as TransferCallToParticipantEventResult; + }, + }; + callConnection.transferCallToParticipant.mockReturnValue( + new Promise((resolve) => { + resolve(transferCallResultMock); + }), + ); + + const promiseResult = callConnection.transferCallToParticipant(target.targetParticipant); + + // asserts + const result = await promiseResult; + assert.isNotNull(result); + expect(callConnection.transferCallToParticipant).toHaveBeenCalledWith(target.targetParticipant); + assert.equal(result, transferCallResultMock); + }); + + it("TransferCallToParticipantWithTransferee", async () => { + // mocks + const transferCallResultMock: TransferCallResult = { + waitForEventProcessor: async () => { + return {} as TransferCallToParticipantEventResult; + }, + }; + callConnection.transferCallToParticipant.mockReturnValue( + new Promise((resolve) => { + resolve(transferCallResultMock); + }), + ); + + const transferee = { communicationUserId: CALL_TARGET_ID_2 }; + + const promiseResult = callConnection.transferCallToParticipant(target.targetParticipant, { + transferee: transferee, + }); + + // asserts + const result = await promiseResult; + assert.isNotNull(result); + expect(callConnection.transferCallToParticipant).toHaveBeenCalledWith( + target.targetParticipant, + { transferee: transferee }, + ); + assert.equal(result, transferCallResultMock); + }); + + it("RemoveParticipant", async () => { + // mocks + const removeParticipantResultMock: RemoveParticipantResult = { + waitForEventProcessor: async () => { + return {} as RemoveParticipantEventResult; + }, + }; + callConnection.removeParticipant.mockReturnValue( + new Promise((resolve) => { + resolve(removeParticipantResultMock); + }), + ); + + const promiseResult = callConnection.removeParticipant(target.targetParticipant); + + // asserts + const result = await promiseResult; + assert.isNotNull(result); + expect(callConnection.removeParticipant).toHaveBeenCalledWith(target.targetParticipant); + assert.equal(result, removeParticipantResultMock); + }); + + it("MuteParticipant", async () => { + // mocks + const muteParticipantResultMock: MuteParticipantResult = {}; + callConnection.muteParticipant.mockReturnValue( + new Promise((resolve) => { + resolve(muteParticipantResultMock); + }), + ); + + const promiseResult = callConnection.muteParticipant(target.targetParticipant); + + // asserts + const result = await promiseResult; + assert.isNotNull(result); + expect(callConnection.muteParticipant).toHaveBeenCalledWith(target.targetParticipant); + assert.equal(result, muteParticipantResultMock); + }); + + it("CancelAddParticipant", async () => { + const invitationId = "invitationId"; + const cancelAddParticipantResultMock: CancelAddParticipantOperationResult = { + invitationId, + waitForEventProcessor: async () => { + return {} as CancelAddParticipantEventResult; + }, + }; + callConnection.cancelAddParticipantOperation.mockReturnValue( + new Promise((resolve) => { + resolve(cancelAddParticipantResultMock); + }), + ); + + const result = await callConnection.cancelAddParticipantOperation(invitationId); + assert.isNotNull(result); + expect(callConnection.cancelAddParticipantOperation).toHaveBeenCalledWith(invitationId); + assert.equal(result, cancelAddParticipantResultMock); + }); +}); + +describe("CallConnection Live Tests", function () { + let recorder: Recorder; + let callerCallAutomationClient: CallAutomationClient; + let receiverCallAutomationClient: CallAutomationClient; + let callConnection: CallConnection; + let testUser: CommunicationUserIdentifier; + let testUser2: CommunicationUserIdentifier; + let callConnectionId: string; + let testName: string; + + beforeEach(async function (ctx) { + recorder = await createRecorder(ctx); + testUser = await createTestUser(recorder); + testUser2 = await createTestUser(recorder); + callerCallAutomationClient = createCallAutomationClient(recorder, testUser); + receiverCallAutomationClient = createCallAutomationClient(recorder, testUser2); + }); + + afterEach(async function () { + persistEvents(testName); + serviceBusReceivers.forEach((receiver) => { + receiver.close(); + }); + events.forEach((callConnectionEvents) => { + callConnectionEvents.clear(); + }); + events.clear(); + serviceBusReceivers.clear(); + incomingCallContexts.clear(); + await recorder.stop(); + if (callConnection) { + try { + await callConnection.hangUp(true); + } catch { + return; + } + } + }); + + it("List all participants", { timeout: 60000 }, async function (ctx) { + const fullTitle: string | undefined = + ctx.task.suite && ctx.task.suite.name && ctx.task.name + ? `${ctx.task.suite.name} ${ctx.task.name}` + : undefined; + testName = fullTitle ? fullTitle.replace(/ /g, "_") : "list_all_participants"; + await loadPersistedEvents(testName); + + const callInvite: CallInvite = { targetParticipant: testUser2 }; + const uniqueId = await serviceBusWithNewCall(testUser, testUser2); + const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; + const createCallOption: CreateCallOptions = { operationContext: "listParticipantsCreateCall" }; + + const result = await callerCallAutomationClient.createCall( + callInvite, + callBackUrl, + createCallOption, + ); + const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); + callConnectionId = result.callConnectionProperties.callConnectionId + ? result.callConnectionProperties.callConnectionId + : ""; + assert.isDefined(incomingCallContext); + if (incomingCallContext) { + const answerCallOptions: AnswerCallOptions = { operationContext: "listParticipantsAnswer" }; + await receiverCallAutomationClient.answerCall( + incomingCallContext, + callBackUrl, + answerCallOptions, + ); + } + const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); + assert.isDefined(callConnectedEvent); + callConnection = result.callConnection; + const allParticipants = await callConnection.listParticipants(); + assert.isDefined(allParticipants); + assert.isDefined(allParticipants.values); + }); + + it("Add a participant and get call properties", { timeout: 90000 }, async function (ctx) { + const fullTitle: string | undefined = + ctx.task.suite && ctx.task.suite.name && ctx.task.name + ? `${ctx.task.suite.name} ${ctx.task.name}` + : undefined; + testName = fullTitle ? fullTitle.replace(/ /g, "_") : "add_participant_and_get_call_props"; + await loadPersistedEvents(testName); + + const callInvite: CallInvite = { targetParticipant: testUser2 }; + const uniqueId = await serviceBusWithNewCall(testUser, testUser2); + const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; + const createCallOption: CreateCallOptions = { operationContext: "addParticipantsCreateCall" }; + const result = await callerCallAutomationClient.createCall( + callInvite, + callBackUrl, + createCallOption, + ); + + const incomingCallContext = await waitForIncomingCallContext(uniqueId, 10000); + callConnectionId = result.callConnectionProperties.callConnectionId + ? result.callConnectionProperties.callConnectionId + : ""; + assert.isDefined(incomingCallContext); + if (incomingCallContext) { + const answerCallOptions: AnswerCallOptions = { operationContext: "addParticipantsAnswer" }; + await receiverCallAutomationClient.answerCall( + incomingCallContext, + callBackUrl, + answerCallOptions, + ); + } + const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 10000); + assert.isDefined(callConnectedEvent); + callConnection = result.callConnection; + const testUser3: CommunicationUserIdentifier = await createTestUser(recorder); + const participantInvite: CallInvite = { targetParticipant: testUser3 }; + const uniqueId2 = await serviceBusWithNewCall(testUser, testUser3); + const callBackUrl2: string = dispatcherCallback + `?q=${uniqueId2}`; + + const addParticipantOptions: AddParticipantOptions = { operationContext: "addParticipants" }; + const addResult = await callConnection.addParticipant(participantInvite, addParticipantOptions); + assert.isDefined(addResult); + + const anotherReceiverCallAutomationClient: CallAutomationClient = createCallAutomationClient( + recorder, + testUser3, + ); + const anotherIncomingCallContext = await waitForIncomingCallContext(uniqueId2, 20000); + if (anotherIncomingCallContext) { + const answerCallOption2: AddParticipantOptions = { + operationContext: "addParticipantsAnswer2", + }; + await anotherReceiverCallAutomationClient.answerCall( + anotherIncomingCallContext, + callBackUrl2, + answerCallOption2, + ); + } + const participantAddedEvent = await waitForEvent( + "AddParticipantSucceeded", + callConnectionId, + 10000, + ); + assert.isDefined(participantAddedEvent); + + const callProperties = await callConnection.getCallConnectionProperties(); + assert.isDefined(callProperties); + }); + + it("Remove a participant", { timeout: 60000 }, async function (ctx) { + const fullTitle: string | undefined = + ctx.task.suite && ctx.task.suite.name && ctx.task.name + ? `${ctx.task.suite.name} ${ctx.task.name}` + : undefined; + testName = fullTitle ? fullTitle.replace(/ /g, "_") : "remove_a_participant"; + await loadPersistedEvents(testName); + + const callInvite: CallInvite = { targetParticipant: testUser2 }; + const uniqueId = await serviceBusWithNewCall(testUser, testUser2); + const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; + const createCallOption: CreateCallOptions = { operationContext: "removeParticipantCreateCall" }; + const result = await callerCallAutomationClient.createCall( + callInvite, + callBackUrl, + createCallOption, + ); + const incomingCallContext = await waitForIncomingCallContext(uniqueId, 8000); + callConnectionId = result.callConnectionProperties.callConnectionId + ? result.callConnectionProperties.callConnectionId + : ""; + assert.isDefined(incomingCallContext); + if (incomingCallContext) { + const answerCallOption: AnswerCallOptions = { operationContext: "removeParticipantsAnswer" }; + await receiverCallAutomationClient.answerCall( + incomingCallContext, + callBackUrl, + answerCallOption, + ); + } + const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); + assert.isDefined(callConnectedEvent); + callConnection = result.callConnection; + const removeParticipantOptions: RemoveParticipantsOption = { + operationContext: "removeParticipants", + }; + const removeResult = await callConnection.removeParticipant( + testUser2, + removeParticipantOptions, + ); + assert.isDefined(removeResult); + + // A call needs at least 2 participants, removing one of the only 2 participants would end the call. + const callEndedEvent = await waitForEvent("CallDisconnected", callConnectionId, 8000); + assert.isDefined(callEndedEvent); + }); + + it("Mute a participant", { timeout: 90000 }, async function (ctx) { + const fullTitle: string | undefined = + ctx.task.suite && ctx.task.suite.name && ctx.task.name + ? `${ctx.task.suite.name} ${ctx.task.name}` + : undefined; + testName = fullTitle ? fullTitle.replace(/ /g, "_") : "mute_participant"; + await loadPersistedEvents(testName); + + const callInvite: CallInvite = { targetParticipant: testUser2 }; + const uniqueId = await serviceBusWithNewCall(testUser, testUser2); + const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; + const result = await callerCallAutomationClient.createCall(callInvite, callBackUrl); + const incomingCallContext = await waitForIncomingCallContext(uniqueId, 20000); + callConnectionId = result.callConnectionProperties.callConnectionId + ? result.callConnectionProperties.callConnectionId + : ""; + assert.isDefined(incomingCallContext); + if (incomingCallContext) { + await receiverCallAutomationClient.answerCall(incomingCallContext, callBackUrl); + } + const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 8000); + assert.isDefined(callConnectedEvent); + callConnection = result.callConnection; + const testUser3: CommunicationUserIdentifier = await createTestUser(recorder); + const participantInvite: CallInvite = { targetParticipant: testUser3 }; + const uniqueId2 = await serviceBusWithNewCall(testUser, testUser3); + const callBackUrl2: string = dispatcherCallback + `?q=${uniqueId2}`; + + const addParticipantOption: AddParticipantOptions = { operationContext: "addParticipant" }; + const addResult = await callConnection.addParticipant(participantInvite, addParticipantOption); + assert.isDefined(addResult); + + // A call needs at least 3 participants to mute a participant. So adding one more participant. + const anotherReceiverCallAutomationClient: CallAutomationClient = createCallAutomationClient( + recorder, + testUser3, + ); + const anotherIncomingCallContext = await waitForIncomingCallContext(uniqueId2, 20000); + if (anotherIncomingCallContext) { + await anotherReceiverCallAutomationClient.answerCall( + anotherIncomingCallContext, + callBackUrl2, + ); + } + const participantAddedEvent = await waitForEvent( + "AddParticipantSucceeded", + callConnectionId, + 8000, + ); + assert.isDefined(participantAddedEvent); + + const muteResult = await callConnection.muteParticipant(testUser2); + assert.isDefined(muteResult); + + await new Promise((resolve) => setTimeout(resolve, 3000)); + + const participantLists = await callConnection.listParticipants(); + let isMuted = false; + for (const participant of participantLists.values!) { + const communicationUser = participant.identifier as CommunicationUserIdentifier; + if (communicationUser.communicationUserId === testUser2.communicationUserId) { + isMuted = participant.isMuted!; + } + } + assert.isTrue(isMuted); + }); + + it("Add a participant cancels add participant request", { timeout: 90000 }, async function (ctx) { + const fullTitle: string | undefined = + ctx.task.suite && ctx.task.suite.name && ctx.task.name + ? `${ctx.task.suite.name} ${ctx.task.name}` + : undefined; + testName = fullTitle ? fullTitle.replace(/ /g, "_") : "cancel_add_participant"; + await loadPersistedEvents(testName); + + const callInvite: CallInvite = { targetParticipant: testUser2 }; + const uniqueId = await serviceBusWithNewCall(testUser, testUser2); + const callBackUrl: string = dispatcherCallback + `?q=${uniqueId}`; + const createCallOption: CreateCallOptions = { operationContext: "cancelAddCreateCall" }; + const result = await callerCallAutomationClient.createCall( + callInvite, + callBackUrl, + createCallOption, + ); + const incomingCallContext = await waitForIncomingCallContext(uniqueId, 10000); + callConnectionId = result.callConnectionProperties.callConnectionId + ? result.callConnectionProperties.callConnectionId + : ""; + assert.isDefined(incomingCallContext); + if (incomingCallContext) { + const answerCallOption: AnswerCallOptions = { operationContext: "cancelAddCreateAnswer" }; + await receiverCallAutomationClient.answerCall( + incomingCallContext, + callBackUrl, + answerCallOption, + ); + } + const callConnectedEvent = await waitForEvent("CallConnected", callConnectionId, 10000); + assert.isDefined(callConnectedEvent); + callConnection = result.callConnection; + const testUser3: CommunicationUserIdentifier = await createTestUser(recorder); + const participantInvite: CallInvite = { targetParticipant: testUser3 }; + + const addParticipantOptions: AddParticipantOptions = { operationContext: "cancelAdd" }; + const addResult = await callConnection.addParticipant(participantInvite, addParticipantOptions); + assert.isDefined(addResult); + + // ensure invitation is sent out + await ((ms: number): Promise => new Promise((resolve) => setTimeout(resolve, ms)))(3000); + + // cancel add participant + const cancelParticipantOption: CancelAddParticipantOperationOptions = { + operationContext: "cancelOp", + }; + await callConnection.cancelAddParticipantOperation( + addResult.invitationId!, + cancelParticipantOption, + ); + + const addParticipantCancelledEvent = (await waitForEvent( + "CancelAddParticipantSucceeded", + callConnectionId, + 10000, + )) as CancelAddParticipantSucceeded; + + assert.isDefined(addParticipantCancelledEvent); + assert.equal(addResult.invitationId, addParticipantCancelledEvent?.invitationId); + }); +}); diff --git a/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts b/sdk/communication/communication-call-automation/test/node/callMediaClient.spec.ts similarity index 86% rename from sdk/communication/communication-call-automation/test/callMediaClient.spec.ts rename to sdk/communication/communication-call-automation/test/node/callMediaClient.spec.ts index c317f024ff08..9013e07f9c24 100644 --- a/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts +++ b/sdk/communication/communication-call-automation/test/node/callMediaClient.spec.ts @@ -1,9 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -// External module imports -import type { Context } from "mocha"; -// Internal module imports import type { Recorder } from "@azure-tools/test-recorder"; import type { CommunicationIdentifier, @@ -11,11 +8,14 @@ import type { PhoneNumberIdentifier, } from "@azure/communication-common"; import { serializeCommunicationIdentifier } from "@azure/communication-common"; - -// Parent directory imports -import { CallMedia } from "../src/callMedia"; -import type { FileSource, TextSource, SsmlSource, RecognitionChoice } from "../src/models/models"; -import { DtmfTone } from "../src/models/models"; +import { CallMedia } from "../../src/callMedia.js"; +import type { + FileSource, + TextSource, + SsmlSource, + RecognitionChoice, +} from "../../src/models/models.js"; +import { DtmfTone } from "../../src/models/models.js"; import type { CallMediaRecognizeDtmfOptions, CallMediaRecognizeChoiceOptions, @@ -32,8 +32,8 @@ import type { StopTranscriptionOptions, HoldOptions, UnholdOptions, -} from "../src"; -import { CallAutomationEventProcessor } from "../src"; +} from "../../src/index.js"; +import { CallAutomationEventProcessor } from "../../src/index.js"; // Current directory imports import { @@ -51,10 +51,8 @@ import { persistEvents, fileSourceUrl, getPhoneNumbers, -} from "./utils/recordedClient"; -import sinon from "sinon"; -import { assert } from "chai"; -import { createMediaClient, generateHttpClient } from "./utils/mockClient"; +} from "../utils/recordedClient.js"; +import { createMediaClient, generateHttpClient } from "../utils/mockClient.js"; import { CALL_CONNECTION_ID, CALL_TARGET_ID, @@ -62,13 +60,14 @@ import { MEDIA_URL_WAV, baseUri, generateToken, -} from "./utils/connectionUtils"; +} from "../utils/connectionUtils.js"; +import { describe, it, assert, vi, beforeEach, afterEach } from "vitest"; describe("CallMedia Unit Tests", async function () { let callMedia: CallMedia; afterEach(function () { - sinon.restore(); + vi.restoreAllMocks(); }); it("can instantiate", async function () { @@ -84,7 +83,7 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(202); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const playSource: FileSource[] = [ { @@ -96,7 +95,7 @@ describe("CallMedia Unit Tests", async function () { const playTo: CommunicationIdentifier[] = [{ communicationUserId: CALL_TARGET_ID }]; await callMedia.play(playSource, playTo); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.playTo[0].rawId, CALL_TARGET_ID); @@ -109,7 +108,7 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(202); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const playSource: TextSource[] = [ { @@ -122,7 +121,7 @@ describe("CallMedia Unit Tests", async function () { const playTo: CommunicationIdentifier[] = [{ communicationUserId: CALL_TARGET_ID }]; await callMedia.play(playSource, playTo); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.playTo[0].rawId, CALL_TARGET_ID); @@ -135,7 +134,7 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(202); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const playSource: SsmlSource[] = [ { @@ -149,7 +148,7 @@ describe("CallMedia Unit Tests", async function () { const playTo: CommunicationIdentifier[] = [{ communicationUserId: CALL_TARGET_ID }]; await callMedia.play(playSource, playTo); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.playTo[0].rawId, CALL_TARGET_ID); @@ -162,7 +161,7 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(202); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const playSource: FileSource[] = [ { @@ -174,7 +173,7 @@ describe("CallMedia Unit Tests", async function () { const playTo: CommunicationIdentifier[] = []; await callMedia.play(playSource, playTo); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.playSources[0].kind, "file"); @@ -186,7 +185,7 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(202); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const targetParticipant: CommunicationIdentifier = { communicationUserId: CALL_TARGET_ID }; const recognizeOptions: CallMediaRecognizeDtmfOptions = { kind: "callMediaRecognizeDtmfOptions", @@ -194,7 +193,7 @@ describe("CallMedia Unit Tests", async function () { }; await callMedia.startRecognizing(targetParticipant, recognizeOptions); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.recognizeInputType, "dtmf"); @@ -206,7 +205,7 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(202); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const targetParticipant: CommunicationIdentifier = { communicationUserId: CALL_TARGET_ID }; const choice: RecognitionChoice = { label: "choice", @@ -218,7 +217,7 @@ describe("CallMedia Unit Tests", async function () { }; await callMedia.startRecognizing(targetParticipant, recognizeOptions); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.recognizeInputType, "choices"); @@ -230,7 +229,7 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(202); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const targetParticipant: CommunicationIdentifier = { communicationUserId: CALL_TARGET_ID }; const recognizeOptions: CallMediaRecognizeSpeechOptions = { kind: "callMediaRecognizeSpeechOptions", @@ -238,7 +237,7 @@ describe("CallMedia Unit Tests", async function () { }; await callMedia.startRecognizing(targetParticipant, recognizeOptions); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.recognizeInputType, "speech"); @@ -250,10 +249,10 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(202); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); await callMedia.cancelAllOperations(); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.method, "POST"); }); @@ -262,7 +261,7 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(200); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const targetParticipant: CommunicationIdentifier = { communicationUserId: CALL_TARGET_ID }; const continuousDtmfRecognitionOptions: ContinuousDtmfRecognitionOptions = { operationContext: "test_operation_context", @@ -272,7 +271,7 @@ describe("CallMedia Unit Tests", async function () { targetParticipant, continuousDtmfRecognitionOptions, ); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.deepEqual(data.targetParticipant, serializeCommunicationIdentifier(targetParticipant)); @@ -284,7 +283,7 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(200); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const targetParticipant: CommunicationIdentifier = { communicationUserId: CALL_TARGET_ID }; const continuousDtmfRecognitionOptions: ContinuousDtmfRecognitionOptions = { operationContext: "test_operation_context", @@ -294,7 +293,7 @@ describe("CallMedia Unit Tests", async function () { targetParticipant, continuousDtmfRecognitionOptions, ); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.deepEqual(data.targetParticipant, serializeCommunicationIdentifier(targetParticipant)); @@ -306,7 +305,7 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(202); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const targetParticipant: CommunicationIdentifier = { communicationUserId: CALL_TARGET_ID }; const sendDtmfOptions: SendDtmfTonesOptions = { operationContext: "test_operation_context", @@ -314,7 +313,7 @@ describe("CallMedia Unit Tests", async function () { const tones = ["one", "two", "three", "pound"]; await callMedia.sendDtmfTones(tones, targetParticipant, sendDtmfOptions); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.deepEqual(data.targetParticipant, serializeCommunicationIdentifier(targetParticipant)); @@ -327,7 +326,7 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(200); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const playSource: TextSource = { text: "test test test", @@ -342,7 +341,7 @@ describe("CallMedia Unit Tests", async function () { operationCallbackUri: "https://localhost", }; await callMedia.hold(participantToHold, options); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.targetParticipant.rawId, CALL_TARGET_ID); assert.equal(data.playSourceInfo.kind, "text"); @@ -356,11 +355,11 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(200); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const participantToHold: CommunicationIdentifier = { communicationUserId: CALL_TARGET_ID }; await callMedia.hold(participantToHold); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.targetParticipant.rawId, CALL_TARGET_ID); assert.equal(request.method, "POST"); @@ -371,14 +370,14 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(200); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const participantToUnhold: CommunicationIdentifier = { communicationUserId: CALL_TARGET_ID }; const options: UnholdOptions = { operationContext: "unholdContext", }; await callMedia.unhold(participantToUnhold, options); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.targetParticipant.rawId, CALL_TARGET_ID); assert.equal(request.method, "POST"); @@ -389,7 +388,7 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(200); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const playSource: TextSource = { text: "test test test", @@ -400,7 +399,7 @@ describe("CallMedia Unit Tests", async function () { const participantToHold: CommunicationIdentifier = { communicationUserId: CALL_TARGET_ID }; await callMedia.startHoldMusic(participantToHold, playSource); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.targetParticipant.rawId, CALL_TARGET_ID); assert.equal(data.playSourceInfo.kind, "text"); @@ -412,11 +411,11 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(200); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const participantToHold: CommunicationIdentifier = { communicationUserId: CALL_TARGET_ID }; await callMedia.startHoldMusic(participantToHold); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.targetParticipant.rawId, CALL_TARGET_ID); assert.equal(request.method, "POST"); @@ -427,12 +426,12 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(200); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const participantToUnhold: CommunicationIdentifier = { communicationUserId: CALL_TARGET_ID }; await callMedia.stopHoldMusic(participantToUnhold); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.targetParticipant.rawId, CALL_TARGET_ID); assert.equal(request.method, "POST"); @@ -442,14 +441,14 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(202); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const startTranscriptionOptions: StartTranscriptionOptions = { locale: "en-US", operationContext: "test_operation_context", }; await callMedia.startTranscription(startTranscriptionOptions); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.locale, startTranscriptionOptions.locale); @@ -461,13 +460,13 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(202); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const stopTranscriptionOptions: StopTranscriptionOptions = { operationContext: "test_operation_context", }; await callMedia.stopTranscription(stopTranscriptionOptions); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.operationContext, stopTranscriptionOptions.operationContext); @@ -478,11 +477,11 @@ describe("CallMedia Unit Tests", async function () { const mockHttpClient = generateHttpClient(202); callMedia = createMediaClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const locale = "en-US"; await callMedia.updateTranscription(locale); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.locale, locale); @@ -501,15 +500,15 @@ describe("Call Media Client Live Tests", function () { let receiverPhoneUser: PhoneNumberIdentifier; let testName: string; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this.currentTest); + beforeEach(async function (ctx) { + recorder = await createRecorder(ctx); testUser = await createTestUser(recorder); testUser2 = await createTestUser(recorder); callerCallAutomationClient = createCallAutomationClient(recorder, testUser); receiverCallAutomationClient = createCallAutomationClient(recorder, testUser2); }); - afterEach(async function (this: Context) { + afterEach(async function () { persistEvents(testName); serviceBusReceivers.forEach((receiver) => { receiver.close(); @@ -530,10 +529,12 @@ describe("Call Media Client Live Tests", function () { } }); - it("Play audio to target participant", async function () { - testName = this.test?.fullTitle() - ? this.test?.fullTitle().replace(/ /g, "_") - : "create_call_and_hang_up"; + it("Play audio to target participant", { timeout: 60000 }, async function (ctx) { + const fullTitle: string | undefined = + ctx.task.suite && ctx.task.suite.name && ctx.task.name + ? `${ctx.task.suite.name} ${ctx.task.name}` + : undefined; + testName = fullTitle ? fullTitle.replace(/ /g, "_") : "create_call_and_hang_up"; await loadPersistedEvents(testName); const callInvite: CallInvite = { targetParticipant: testUser2 }; @@ -578,12 +579,14 @@ describe("Call Media Client Live Tests", function () { await callConnection.hangUp(true); const callDisconnectedEvent = await waitForEvent("CallDisconnected", callConnectionId, 8000); assert.isDefined(callDisconnectedEvent); - }).timeout(60000); + }); - it("Play audio to all participants", async function () { - testName = this.test?.fullTitle() - ? this.test?.fullTitle().replace(/ /g, "_") - : "create_call_and_hang_up"; + it("Play audio to all participants", { timeout: 60000 }, async function (ctx) { + const fullTitle: string | undefined = + ctx.task.suite && ctx.task.suite.name && ctx.task.name + ? `${ctx.task.suite.name} ${ctx.task.name}` + : undefined; + testName = fullTitle ? fullTitle.replace(/ /g, "_") : "create_call_and_hang_up"; await loadPersistedEvents(testName); const callInvite: CallInvite = { targetParticipant: testUser2 }; @@ -630,12 +633,14 @@ describe("Call Media Client Live Tests", function () { await callConnection.hangUp(true); const callDisconnectedEvent = await waitForEvent("CallDisconnected", callConnectionId, 8000); assert.isDefined(callDisconnectedEvent); - }).timeout(60000); + }); - it("Cancel all media operations", async function () { - testName = this.test?.fullTitle() - ? this.test?.fullTitle().replace(/ /g, "_") - : "create_call_and_hang_up"; + it("Cancel all media operations", { timeout: 60000 }, async function (ctx) { + const fullTitle: string | undefined = + ctx.task.suite && ctx.task.suite.name && ctx.task.name + ? `${ctx.task.suite.name} ${ctx.task.name}` + : undefined; + testName = fullTitle ? fullTitle.replace(/ /g, "_") : "create_call_and_hang_up"; await loadPersistedEvents(testName); const callInvite: CallInvite = { targetParticipant: testUser2 }; @@ -683,11 +688,15 @@ describe("Call Media Client Live Tests", function () { await callConnection.hangUp(true); const callDisconnectedEvent = await waitForEvent("CallDisconnected", callConnectionId, 8000); assert.isDefined(callDisconnectedEvent); - }).timeout(60000); + }); - it("Trigger DTMF actions", async function () { - testName = this.test?.fullTitle() - ? this.test?.fullTitle().replace(/ /g, "_") + it("Trigger DTMF actions", { timeout: 60000 }, async function (ctx) { + const fullTitle: string | undefined = + ctx.task.suite && ctx.task.suite.name && ctx.task.name + ? `${ctx.task.suite.name} ${ctx.task.name}` + : undefined; + testName = fullTitle + ? fullTitle.replace(/ /g, "_") : "create_call_and_trigger_dtmf_actions_then_hang_up"; await loadPersistedEvents(testName); @@ -753,5 +762,5 @@ describe("Call Media Client Live Tests", function () { await callConnection.hangUp(true); const callDisconnectedEvent = await waitForEvent("CallDisconnected", callConnectionId, 8000); assert.isDefined(callDisconnectedEvent); - }).timeout(60000); + }); }); diff --git a/sdk/communication/communication-call-automation/test/callRecordingClient.spec.ts b/sdk/communication/communication-call-automation/test/node/callRecordingClient.spec.ts similarity index 81% rename from sdk/communication/communication-call-automation/test/callRecordingClient.spec.ts rename to sdk/communication/communication-call-automation/test/node/callRecordingClient.spec.ts index 9826eb4d97cc..0ed23051c77f 100644 --- a/sdk/communication/communication-call-automation/test/callRecordingClient.spec.ts +++ b/sdk/communication/communication-call-automation/test/node/callRecordingClient.spec.ts @@ -1,10 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import sinon from "sinon"; -import { assert } from "chai"; -import type * as RestModel from "../src/generated/src/models"; -import { createRecordingClient, generateHttpClient } from "./utils/mockClient"; +import type * as RestModel from "../../src/generated/src/models/index.js"; +import { createRecordingClient, generateHttpClient } from "../utils/mockClient.js"; import { baseUri, CALL_CALLBACK_URL, @@ -13,23 +11,22 @@ import { generateToken, RECORDING_ID, RECORDING_STATE, -} from "./utils/connectionUtils"; -import { CallRecording } from "../src/callRecording"; +} from "../utils/connectionUtils.js"; +import { CallRecording } from "../../src/callRecording.js"; import type { AnswerCallOptions, CreateCallOptions, PlayOptions, StartRecordingOptions, -} from "../src/models/options"; -import { apiVersion } from "../src/generated/src/models/parameters"; +} from "../../src/models/options.js"; +import { apiVersion } from "../../src/generated/src/models/parameters.js"; import type { ChannelAffinity } from "@azure/communication-call-automation"; import type { CommunicationIdentifier, CommunicationUserIdentifier, } from "@azure/communication-common"; -import type { CallAutomationClient, CallInvite, CallConnection } from "../src"; +import type { CallAutomationClient, CallInvite, CallConnection } from "../../src/index.js"; import type { Recorder } from "@azure-tools/test-recorder"; -import type { Context } from "mocha"; import { createRecorder, createTestUser, @@ -44,21 +41,22 @@ import { loadPersistedEvents, persistEvents, fileSourceUrl, -} from "./utils/recordedClient"; -import type { FileSource } from "../src/models/models"; +} from "../utils/recordedClient.js"; +import type { FileSource } from "../../src/models/models.js"; +import { describe, it, assert, vi, beforeEach, afterEach } from "vitest"; -describe("CallRecording Unit Tests", async function () { +describe("CallRecording Unit Tests", () => { let callRecording: CallRecording; - afterEach(function () { - sinon.restore(); + afterEach(() => { + vi.restoreAllMocks(); }); - it("can instantiate", async function () { + it("can instantiate", async () => { new CallRecording(baseUri, { key: generateToken() }); }); - it("makes successful startRecording request with channel affinity", async function () { + it("makes successful startRecording request with channel affinity", async () => { const mockResponse: RestModel.RecordingStateResponse = { recordingId: RECORDING_ID, recordingState: RECORDING_STATE, @@ -66,7 +64,7 @@ describe("CallRecording Unit Tests", async function () { const mockHttpClient = generateHttpClient(200, mockResponse); callRecording = createRecordingClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const channelZeroParticipant: CommunicationIdentifier = { communicationUserId: CALL_TARGET_ID }; const channelAffinity: ChannelAffinity = { @@ -84,7 +82,7 @@ describe("CallRecording Unit Tests", async function () { }; await callRecording.start(recOptions); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.callLocator.kind, "serverCallLocator"); @@ -100,7 +98,7 @@ describe("CallRecording Unit Tests", async function () { ); }); - it("makes successful startRecording request", async function () { + it("makes successful startRecording request", async () => { const mockResponse: RestModel.RecordingStateResponse = { recordingId: RECORDING_ID, recordingState: RECORDING_STATE, @@ -108,7 +106,7 @@ describe("CallRecording Unit Tests", async function () { const mockHttpClient = generateHttpClient(200, mockResponse); callRecording = createRecordingClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const recOptions: StartRecordingOptions = { recordingStateCallbackEndpointUrl: CALL_CALLBACK_URL, @@ -119,7 +117,7 @@ describe("CallRecording Unit Tests", async function () { }; await callRecording.start(recOptions); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; const data = JSON.parse(request.body?.toString() || ""); assert.equal(data.callLocator.kind, "serverCallLocator"); @@ -131,7 +129,7 @@ describe("CallRecording Unit Tests", async function () { ); }); - it("makes successful getRecordingProperties request", async function () { + it("makes successful getRecordingProperties request", async () => { const mockResponse: RestModel.RecordingStateResponse = { recordingId: RECORDING_ID, recordingState: RECORDING_STATE, @@ -139,10 +137,10 @@ describe("CallRecording Unit Tests", async function () { const mockHttpClient = generateHttpClient(200, mockResponse); callRecording = createRecordingClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); await callRecording.getState(RECORDING_ID); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.method, "GET"); assert.equal( @@ -154,9 +152,9 @@ describe("CallRecording Unit Tests", async function () { it("Sends correct args to stop a recording", async () => { const mockHttpClient = generateHttpClient(204); callRecording = createRecordingClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); await callRecording.stop(RECORDING_ID); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal( request.url, @@ -168,9 +166,9 @@ describe("CallRecording Unit Tests", async function () { it("Sends correct args to pause a recording", async () => { const mockHttpClient = generateHttpClient(202); callRecording = createRecordingClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); await callRecording.pause(RECORDING_ID); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal( request.url, @@ -182,9 +180,9 @@ describe("CallRecording Unit Tests", async function () { it("Sends correct args to resume a recording", async () => { const mockHttpClient = generateHttpClient(202); callRecording = createRecordingClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); await callRecording.resume(RECORDING_ID); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal( request.url, @@ -194,7 +192,7 @@ describe("CallRecording Unit Tests", async function () { }); }); -describe("CallRecording Live Tests", function () { +describe("CallRecording Live Tests", () => { let recorder: Recorder; let callerCallAutomationClient: CallAutomationClient; let receiverCallAutomationClient: CallAutomationClient; @@ -203,15 +201,15 @@ describe("CallRecording Live Tests", function () { let testUser2: CommunicationUserIdentifier; let testName: string; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this.currentTest); + beforeEach(async function (ctx) { + recorder = await createRecorder(ctx); testUser = await createTestUser(recorder); testUser2 = await createTestUser(recorder); callerCallAutomationClient = createCallAutomationClient(recorder, testUser); receiverCallAutomationClient = createCallAutomationClient(recorder, testUser2); }); - afterEach(async function (this: Context) { + afterEach(async () => { persistEvents(testName); serviceBusReceivers.forEach((receiver) => { receiver.close(); @@ -232,10 +230,12 @@ describe("CallRecording Live Tests", function () { } }); - it("Creates a call, start recording, and hangs up", async function () { - testName = this.test?.fullTitle() - ? this.test?.fullTitle().replace(/ /g, "_") - : "create_call_start_recording_and_hang_up"; + it("Creates a call, start recording, and hangs up", { timeout: 60000 }, async function (ctx) { + const fullTitle: string | undefined = + ctx.task.suite && ctx.task.suite.name && ctx.task.name + ? `${ctx.task.suite.name} ${ctx.task.name}` + : undefined; + testName = fullTitle ? fullTitle.replace(/ /g, "_") : "create_call_start_recording_and_hang_up"; await loadPersistedEvents(testName); const callInvite: CallInvite = { targetParticipant: testUser2 }; @@ -300,5 +300,5 @@ describe("CallRecording Live Tests", function () { .getState(recordingStateResult.recordingId); assert.equal(recStatus.recordingState, "active"); await callerCallAutomationClient.getCallRecording().stop(recordingStateResult.recordingId); - }).timeout(60000); + }); }); diff --git a/sdk/communication/communication-call-automation/test/streamingDataParser.spec.ts b/sdk/communication/communication-call-automation/test/streamingDataParser.spec.ts index c2fc18f99bc6..a94f24924089 100644 --- a/sdk/communication/communication-call-automation/test/streamingDataParser.spec.ts +++ b/sdk/communication/communication-call-automation/test/streamingDataParser.spec.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { TranscriptionData, TranscriptionMetadata } from "../src/models/transcription"; -import { streamingData } from "../src/utli/streamingDataParser"; -import { assert } from "chai"; +import type { TranscriptionData, TranscriptionMetadata } from "../src/models/transcription.js"; +import { streamingData } from "../src/utli/streamingDataParser.js"; +import { describe, it, assert } from "vitest"; describe("Stream data parser unit tests", function () { const encoder = new TextEncoder(); diff --git a/sdk/communication/communication-call-automation/test/utils/connectionUtils.ts b/sdk/communication/communication-call-automation/test/utils/connectionUtils.ts index 5a7da8bda6f7..46cda2380d2b 100644 --- a/sdk/communication/communication-call-automation/test/utils/connectionUtils.ts +++ b/sdk/communication/communication-call-automation/test/utils/connectionUtils.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { isNode } from "@azure/core-util"; +import { isNodeLike } from "@azure/core-util"; export const baseUri = "https://contoso.api.fake"; @@ -30,6 +30,6 @@ export const generateToken = (): string => { const validForMinutes = 60; const expiresOn = (Date.now() + validForMinutes * 60 * 1000) / 1000; const tokenString = JSON.stringify({ exp: expiresOn }); - const base64Token = isNode ? Buffer.from(tokenString).toString("base64") : btoa(tokenString); + const base64Token = isNodeLike ? Buffer.from(tokenString).toString("base64") : btoa(tokenString); return `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.${base64Token}.adM-ddBZZlQ1WlN3pdPBOF5G4Wh9iZpxNP_fSvpF4cWs`; }; diff --git a/sdk/communication/communication-call-automation/test/utils/mockClient.ts b/sdk/communication/communication-call-automation/test/utils/mockClient.ts index 0ecf349dabc0..2c69954cf70f 100644 --- a/sdk/communication/communication-call-automation/test/utils/mockClient.ts +++ b/sdk/communication/communication-call-automation/test/utils/mockClient.ts @@ -3,10 +3,10 @@ import type { HttpClient, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline"; import { createHttpHeaders } from "@azure/core-rest-pipeline"; -import { baseUri, CALL_CONNECTION_ID, generateToken } from "../utils/connectionUtils"; -import { CallMedia } from "../../src/callMedia"; -import { CallRecording } from "../../src/callRecording"; -import { CallAutomationEventProcessor } from "../../src/eventprocessor/callAutomationEventProcessor"; +import { baseUri, CALL_CONNECTION_ID, generateToken } from "../utils/connectionUtils.js"; +import { CallMedia } from "../../src/callMedia.js"; +import { CallRecording } from "../../src/callRecording.js"; +import { CallAutomationEventProcessor } from "../../src/eventprocessor/callAutomationEventProcessor.js"; export const generateHttpClient = (status: number, parsedBody?: unknown): HttpClient => { const mockHttpClient: HttpClient = { diff --git a/sdk/communication/communication-call-automation/test/utils/recordedClient.ts b/sdk/communication/communication-call-automation/test/utils/recordedClient.ts index c25176706134..1792d03b83e7 100644 --- a/sdk/communication/communication-call-automation/test/utils/recordedClient.ts +++ b/sdk/communication/communication-call-automation/test/utils/recordedClient.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import * as dotenv from "dotenv"; -import { isNode } from "@azure/core-util"; -import fs from "fs"; -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import { isNodeLike } from "@azure/core-util"; +import fs from "node:fs"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, env, @@ -12,8 +12,7 @@ import { isRecordMode, isPlaybackMode, } from "@azure-tools/test-recorder"; -import type { Test } from "mocha"; -import { generateToken } from "./connectionUtils"; +import { generateToken } from "./connectionUtils.js"; import type { CommunicationIdentityClientOptions } from "@azure/communication-identity"; import { CommunicationIdentityClient } from "@azure/communication-identity"; import type { @@ -26,10 +25,9 @@ import { isPhoneNumberIdentifier, createIdentifierFromRawId, } from "@azure/communication-common"; -import type { CallAutomationClientOptions, CallAutomationEvent } from "../../src"; -import { CallAutomationClient, parseCallAutomationEvent } from "../../src"; -import type { CommunicationIdentifierModel } from "../../src/generated/src"; -import { assert } from "chai"; +import type { CallAutomationClientOptions, CallAutomationEvent } from "../../src/index.js"; +import { CallAutomationClient, parseCallAutomationEvent } from "../../src/index.js"; +import type { CommunicationIdentifierModel } from "../../src/generated/src/index.js"; import { createDefaultHttpClient, createHttpHeaders, @@ -43,8 +41,9 @@ import type { import { ServiceBusClient } from "@azure/service-bus"; import type { PhoneNumbersClientOptions } from "@azure/communication-phone-numbers"; import { PhoneNumbersClient } from "@azure/communication-phone-numbers"; +import { assert } from "vitest"; -if (isNode) { +if (isNodeLike) { dotenv.config(); } @@ -126,7 +125,7 @@ export const recorderOptions: RecorderStartOptions = { ], }; -export async function createRecorder(context: Test | undefined): Promise { +export async function createRecorder(context: TestInfo | undefined): Promise { const recorder = new Recorder(context); await recorder.start(recorderOptions); await recorder.setMatcher("HeaderlessMatcher"); @@ -272,7 +271,7 @@ export async function waitForEvent( export function persistEvents(testName: string): void { if (isRecordMode()) { // sanitize the events values accordingly - const sanatizedEvents: any[] = []; + const sanitizedEvents: any[] = []; for (const event of eventsToPersist) { const jsonData = JSON.parse(event); sanitizeObject(jsonData, [ @@ -283,10 +282,10 @@ export function persistEvents(testName: string): void { "correlationId", "serverCallId", ]); - sanatizedEvents.push(jsonData); + sanitizedEvents.push(jsonData); } - const jsonArrayString = JSON.stringify(sanatizedEvents, null, 2); + const jsonArrayString = JSON.stringify(sanitizedEvents, null, 2); fs.writeFile(`recordings\\${testName}.json`, jsonArrayString, (err) => { if (err) throw err; }); @@ -300,10 +299,10 @@ export function persistEvents(testName: string): void { export async function loadPersistedEvents(testName: string): Promise { if (isPlaybackMode()) { let data: string = ""; - // Different OS has differnt file system path format. + // Different OS has different file system path format. try { data = fs.readFileSync(`recordings\\${testName}.json`, "utf-8"); - } catch (e) { + } catch { console.log("original path doesn't work"); data = fs.readFileSync(`recordings/${testName}.json`, "utf-8"); } @@ -328,7 +327,7 @@ export async function getPhoneNumbers(recorder: Recorder): Promise { return phoneNumbers; } -function sanitizeObject(obj: any, keysToSanitize: string[]) { +function sanitizeObject(obj: any, keysToSanitize: string[]): void { for (const key in obj) { if (typeof obj[key] === "object") { sanitizeObject(obj[key], keysToSanitize); diff --git a/sdk/communication/communication-call-automation/tsconfig.browser.config.json b/sdk/communication/communication-call-automation/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/communication/communication-call-automation/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/communication/communication-call-automation/tsconfig.json b/sdk/communication/communication-call-automation/tsconfig.json index c855b0981450..2e4d07ebd740 100644 --- a/sdk/communication/communication-call-automation/tsconfig.json +++ b/sdk/communication/communication-call-automation/tsconfig.json @@ -1,11 +1,12 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "paths": { "@azure/communication-call-automation": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": ["src/**/*.ts", "src/**/*.mts", "src/**/*.cts", "samples-dev/**/*.ts", "test/**/*.ts"] } diff --git a/sdk/communication/communication-call-automation/vitest.browser.config.ts b/sdk/communication/communication-call-automation/vitest.browser.config.ts new file mode 100644 index 000000000000..77088f87f1a6 --- /dev/null +++ b/sdk/communication/communication-call-automation/vitest.browser.config.ts @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; +import browserMap from "@azure-tools/vite-plugin-browser-test-map"; + +export default mergeConfig( + viteConfig, + defineConfig({ + plugins: [browserMap()], + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-call-automation/vitest.config.ts b/sdk/communication/communication-call-automation/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/communication/communication-call-automation/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-chat/.nycrc b/sdk/communication/communication-chat/.nycrc deleted file mode 100644 index 67064d0c1c56..000000000000 --- a/sdk/communication/communication-chat/.nycrc +++ /dev/null @@ -1,18 +0,0 @@ -{ - "include": [ - "dist-esm/src/**/*.js" - ], - "exclude": [ - "**/*.d.ts" - ], - "reporter": [ - "text-summary", - "html", - "cobertura" - ], - "exclude-after-remap": false, - "sourceMap": true, - "produce-source-map": true, - "instrument": true, - "all": true -} diff --git a/sdk/communication/communication-chat/api-extractor.json b/sdk/communication/communication-chat/api-extractor.json index 2a104fbc673f..0bf786c9a4ea 100644 --- a/sdk/communication/communication-chat/api-extractor.json +++ b/sdk/communication/communication-chat/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/communication-chat.d.ts" + "publicTrimmedFilePath": "dist/communication-chat.d.ts" }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/communication/communication-chat/karma.conf.js b/sdk/communication/communication-chat/karma.conf.js deleted file mode 100644 index 5d2e27fbbd74..000000000000 --- a/sdk/communication/communication-chat/karma.conf.js +++ /dev/null @@ -1,125 +0,0 @@ -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); - -require("dotenv").config(); - -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - ], - - // list of files / patterns to load in the browser - files: ["dist-test/index.browser.js"], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - //"dist-test/index.browser.js": ["coverage"] - }, - - // inject following environment values into browser testing with window.__env__ - // environment values MUST be exported or set with same console running "karma start" - // https://www.npmjs.com/package/karma-env-preprocessor - envPreprocessor: [ - "TEST_MODE", - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING", - "BASE_URL", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // start these browsers - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - // 'ChromeHeadless', 'Chrome', 'Firefox', 'Edge', 'IE' - browsers: ["HeadlessChrome"], - - customLaunchers: { - HeadlessChrome: { - base: "ChromeHeadless", - flags: ["--no-sandbox"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: true, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 600000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/communication/communication-chat/package.json b/sdk/communication/communication-chat/package.json index 18ef9fb36904..48f0f30418a1 100644 --- a/sdk/communication/communication-chat/package.json +++ b/sdk/communication/communication-chat/package.json @@ -3,24 +3,24 @@ "version": "1.5.5", "description": "Azure client library for Azure Communication Chat services", "sdk-type": "client", - "main": "dist/index.js", - "module": "dist-esm/src/index.js", - "types": "types/communication-chat.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:node": "tsc -p . && dev-tool run bundle", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:node": "dev-tool run build-package && dev-tool run bundle", "build:samples": "echo Obsolete.", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", - "extract-api": "tsc -p . && dev-tool run extract-api", + "extract-api": "dev-tool run build-package && dev-tool run extract-api", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json README.md src test", "lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -28,20 +28,16 @@ "test:browser": "npm run build:test && npm run unit-test:browser", "test:node": "npm run build:test && npm run unit-test:node", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run test:browser", - "unit-test:node": "dev-tool run vendored cross-env TS_NODE_FILES=true dev-tool run test:node-ts-input -- --timeout 1200000 'test/**/*.spec.ts'", + "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "files": [ "dist/", - "dist-esm/src/", - "types/communication-chat.d.ts", "README.md", "LICENSE" ], - "browser": { - "./dist-esm/src/signaling/signalingClient.js": "./dist-esm/src/signaling/signalingClient.browser.js" - }, + "browser": "./dist/browser/index.js", "repository": "github:Azure/azure-sdk-for-js", "keywords": [ "azure", @@ -62,52 +58,34 @@ "sideEffects": false, "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "dependencies": { - "@azure/abort-controller": "^2.0.0", + "@azure/abort-controller": "^2.1.2", "@azure/communication-common": "^2.3.1", "@azure/communication-signaling": "1.0.0-beta.29", - "@azure/core-auth": "^1.3.0", + "@azure/core-auth": "^1.9.0", "@azure/core-client": "^1.9.2", "@azure/core-paging": "^1.1.1", - "@azure/core-rest-pipeline": "^1.16.3", + "@azure/core-rest-pipeline": "^1.18.0", "@azure/core-tracing": "^1.0.0", "@azure/logger": "^1.0.0", "events": "^3.0.0", - "tslib": "^2.2.0", - "uuid": "^8.3.0" + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.5.1", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/communication-identity": "^1.3.1", - "@azure/core-util": "^1.0.0", + "@azure/core-util": "^1.11.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@types/chai": "^4.1.6", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "@types/sinon": "^17.0.3", - "@types/uuid": "^8.0.0", - "chai": "^4.2.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "inherits": "^2.0.3", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-json-preprocessor": "^0.3.3", - "karma-json-to-file-reporter": "^1.0.1", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "sinon": "^19.0.2", - "ts-node": "^10.0.0", + "playwright": "^1.48.2", "typescript": "~5.6.2", - "util": "^0.12.1" + "vitest": "^2.1.5" }, "//metadata": { "constantPaths": [ @@ -134,5 +112,42 @@ "requiredResources": { "Azure Communication Services account": "https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource" } + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/communication/communication-chat/src/chatClient.ts b/sdk/communication/communication-chat/src/chatClient.ts index 50d6790f20b9..43129217fb46 100644 --- a/sdk/communication/communication-chat/src/chatClient.ts +++ b/sdk/communication/communication-chat/src/chatClient.ts @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -/// import type { ChatClientOptions, CreateChatThreadOptions, DeleteChatThreadOptions, ListChatThreadsOptions, -} from "./models/options"; +} from "./models/options.js"; import type { ChatEventId, ChatMessageDeletedEvent, @@ -20,28 +19,27 @@ import type { ParticipantsRemovedEvent, ReadReceiptReceivedEvent, TypingIndicatorReceivedEvent, -} from "./models/events"; -import type { ChatThreadItem, CreateChatThreadResult, ListPageSettings } from "./models/models"; +} from "./models/events.js"; +import type { ChatThreadItem, CreateChatThreadResult, ListPageSettings } from "./models/models.js"; import type { SignalingClient, SignalingClientOptions } from "@azure/communication-signaling"; import { ConnectionState } from "@azure/communication-signaling"; import { mapToChatParticipantRestModel, mapToCreateChatThreadOptionsRestModel, mapToCreateChatThreadResultSdkModel, -} from "./models/mappers"; - -import { ChatApiClient } from "./generated/src"; -import { ChatThreadClient } from "./chatThreadClient"; +} from "./models/mappers.js"; +import { ChatApiClient } from "./generated/src/index.js"; +import { ChatThreadClient } from "./chatThreadClient.js"; import type { CommunicationTokenCredential } from "@azure/communication-common"; -import type { CreateChatThreadRequest } from "./models/requests"; +import type { CreateChatThreadRequest } from "./models/requests.js"; import { EventEmitter } from "events"; import type { InternalPipelineOptions } from "@azure/core-rest-pipeline"; import type { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { createCommunicationTokenCredentialPolicy } from "./credential/communicationTokenCredentialPolicy"; -import { generateUuid } from "./models/uuid"; -import { getSignalingClient } from "./signaling/signalingClient"; -import { logger } from "./models/logger"; -import { tracingClient } from "./generated/src/tracing"; +import { createCommunicationTokenCredentialPolicy } from "./credential/communicationTokenCredentialPolicy.js"; +import { generateUuid } from "./models/uuid.js"; +import { getSignalingClient } from "./signaling/signalingClient.js"; +import { logger } from "./models/logger.js"; +import { tracingClient } from "./generated/src/tracing.js"; declare interface InternalChatClientOptions extends ChatClientOptions { signalingClientOptions?: SignalingClientOptions; diff --git a/sdk/communication/communication-chat/src/chatThreadClient.ts b/sdk/communication/communication-chat/src/chatThreadClient.ts index 47d151e327a5..8737cbead5f6 100644 --- a/sdk/communication/communication-chat/src/chatThreadClient.ts +++ b/sdk/communication/communication-chat/src/chatThreadClient.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { logger } from "./models/logger"; +import { logger } from "./models/logger.js"; import type { CommunicationIdentifier, CommunicationTokenCredential, @@ -12,7 +12,7 @@ import type { AddParticipantsRequest, SendMessageRequest, SendReadReceiptRequest, -} from "./models/requests"; +} from "./models/requests.js"; import type { AddChatParticipantsResult, @@ -22,14 +22,14 @@ import type { ChatThreadProperties, ListPageSettings, SendChatMessageResult, -} from "./models/models"; +} from "./models/models.js"; import { mapToAddChatParticipantsRequestRestModel, mapToChatMessageSdkModel, mapToChatParticipantSdkModel, mapToChatThreadPropertiesSdkModel, mapToReadReceiptSdkModel, -} from "./models/mappers"; +} from "./models/mappers.js"; import type { AddParticipantsOptions, ChatThreadClientOptions, @@ -45,11 +45,11 @@ import type { SendTypingNotificationOptions, UpdateMessageOptions, UpdateTopicOptions, -} from "./models/options"; -import { ChatApiClient } from "./generated/src"; +} from "./models/options.js"; +import { ChatApiClient } from "./generated/src/index.js"; import type { InternalPipelineOptions } from "@azure/core-rest-pipeline"; -import { createCommunicationTokenCredentialPolicy } from "./credential/communicationTokenCredentialPolicy"; -import { tracingClient } from "./generated/src/tracing"; +import { createCommunicationTokenCredentialPolicy } from "./credential/communicationTokenCredentialPolicy.js"; +import { tracingClient } from "./generated/src/tracing.js"; const minimumTypingIntervalInMilliSeconds: number = 8000; diff --git a/sdk/communication/communication-chat/src/generated/src/chatApiClient.ts b/sdk/communication/communication-chat/src/generated/src/chatApiClient.ts index ce8fc717920a..410a5eb545ae 100644 --- a/sdk/communication/communication-chat/src/generated/src/chatApiClient.ts +++ b/sdk/communication/communication-chat/src/generated/src/chatApiClient.ts @@ -12,9 +12,9 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import { ChatThreadImpl, ChatImpl } from "./operations"; -import { ChatThread, Chat } from "./operationsInterfaces"; -import { ChatApiClientOptionalParams } from "./models"; +import { ChatThreadImpl, ChatImpl } from "./operations/index.js"; +import { ChatThread, Chat } from "./operationsInterfaces/index.js"; +import { ChatApiClientOptionalParams } from "./models/index.js"; export class ChatApiClient extends coreClient.ServiceClient { endpoint: string; diff --git a/sdk/communication/communication-chat/src/generated/src/index.ts b/sdk/communication/communication-chat/src/generated/src/index.ts index 5fbcb82d87b8..401c33a0b740 100644 --- a/sdk/communication/communication-chat/src/generated/src/index.ts +++ b/sdk/communication/communication-chat/src/generated/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { ChatApiClient } from "./chatApiClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { ChatApiClient } from "./chatApiClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/communication/communication-chat/src/generated/src/models/parameters.ts b/sdk/communication/communication-chat/src/generated/src/models/parameters.ts index 0a776737a053..e20be5d3844f 100644 --- a/sdk/communication/communication-chat/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-chat/src/generated/src/models/parameters.ts @@ -20,7 +20,7 @@ import { UpdateChatThreadRequest as UpdateChatThreadRequestMapper, SendTypingNotificationRequest as SendTypingNotificationRequestMapper, CreateChatThreadRequest as CreateChatThreadRequestMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/communication/communication-chat/src/generated/src/operations/chat.ts b/sdk/communication/communication-chat/src/generated/src/operations/chat.ts index c27cc83c3336..b4275363eedc 100644 --- a/sdk/communication/communication-chat/src/generated/src/operations/chat.ts +++ b/sdk/communication/communication-chat/src/generated/src/operations/chat.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { tracingClient } from "../tracing"; -import { Chat } from "../operationsInterfaces"; +import { tracingClient } from "../tracing.js"; +import { Chat } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ChatApiClient } from "../chatApiClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ChatApiClient } from "../chatApiClient.js"; import { CreateChatThreadRequest, ChatCreateChatThreadOptionalParams, @@ -21,7 +21,7 @@ import { ChatDeleteChatThreadOptionalParams, ChatListChatThreadsNextOptionalParams, ChatListChatThreadsNextResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Chat operations. */ export class ChatImpl implements Chat { diff --git a/sdk/communication/communication-chat/src/generated/src/operations/chatThread.ts b/sdk/communication/communication-chat/src/generated/src/operations/chatThread.ts index 6b64f7a6df85..197ed97ff95b 100644 --- a/sdk/communication/communication-chat/src/generated/src/operations/chatThread.ts +++ b/sdk/communication/communication-chat/src/generated/src/operations/chatThread.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { tracingClient } from "../tracing"; -import { ChatThread } from "../operationsInterfaces"; +import { tracingClient } from "../tracing.js"; +import { ChatThread } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ChatApiClient } from "../chatApiClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ChatApiClient } from "../chatApiClient.js"; import { ChatThreadListChatReadReceiptsOptionalParams, ChatThreadListChatReadReceiptsResponse, @@ -45,7 +45,7 @@ import { ChatThreadListChatMessagesNextResponse, ChatThreadListChatParticipantsNextOptionalParams, ChatThreadListChatParticipantsNextResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing ChatThread operations. */ export class ChatThreadImpl implements ChatThread { diff --git a/sdk/communication/communication-chat/src/generated/src/operations/index.ts b/sdk/communication/communication-chat/src/generated/src/operations/index.ts index 504f4a5f4ea3..ee6ace6812b6 100644 --- a/sdk/communication/communication-chat/src/generated/src/operations/index.ts +++ b/sdk/communication/communication-chat/src/generated/src/operations/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./chatThread"; -export * from "./chat"; +export * from "./chatThread.js"; +export * from "./chat.js"; diff --git a/sdk/communication/communication-chat/src/generated/src/operationsInterfaces/chat.ts b/sdk/communication/communication-chat/src/generated/src/operationsInterfaces/chat.ts index 91f81f122c1e..1c69466f51e0 100644 --- a/sdk/communication/communication-chat/src/generated/src/operationsInterfaces/chat.ts +++ b/sdk/communication/communication-chat/src/generated/src/operationsInterfaces/chat.ts @@ -15,7 +15,7 @@ import { ChatDeleteChatThreadOptionalParams, ChatListChatThreadsNextOptionalParams, ChatListChatThreadsNextResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Chat. */ export interface Chat { diff --git a/sdk/communication/communication-chat/src/generated/src/operationsInterfaces/chatThread.ts b/sdk/communication/communication-chat/src/generated/src/operationsInterfaces/chatThread.ts index e7e9e69d109a..de952d00a650 100644 --- a/sdk/communication/communication-chat/src/generated/src/operationsInterfaces/chatThread.ts +++ b/sdk/communication/communication-chat/src/generated/src/operationsInterfaces/chatThread.ts @@ -39,7 +39,7 @@ import { ChatThreadListChatMessagesNextResponse, ChatThreadListChatParticipantsNextOptionalParams, ChatThreadListChatParticipantsNextResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ChatThread. */ export interface ChatThread { diff --git a/sdk/communication/communication-chat/src/generated/src/operationsInterfaces/index.ts b/sdk/communication/communication-chat/src/generated/src/operationsInterfaces/index.ts index 504f4a5f4ea3..ee6ace6812b6 100644 --- a/sdk/communication/communication-chat/src/generated/src/operationsInterfaces/index.ts +++ b/sdk/communication/communication-chat/src/generated/src/operationsInterfaces/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./chatThread"; -export * from "./chat"; +export * from "./chatThread.js"; +export * from "./chat.js"; diff --git a/sdk/communication/communication-chat/src/index.ts b/sdk/communication/communication-chat/src/index.ts index fb1d72ffe543..ff9c47365cd8 100644 --- a/sdk/communication/communication-chat/src/index.ts +++ b/sdk/communication/communication-chat/src/index.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export * from "./models/options"; -export * from "./models/requests"; -export * from "./models/models"; -export * from "./models/events"; -export * from "./chatClient"; -export * from "./chatThreadClient"; +export * from "./models/options.js"; +export * from "./models/requests.js"; +export * from "./models/models.js"; +export * from "./models/events.js"; +export * from "./chatClient.js"; +export * from "./chatThreadClient.js"; diff --git a/sdk/communication/communication-chat/src/models/mappers.ts b/sdk/communication/communication-chat/src/models/mappers.ts index 754e22d2e1df..2b98a5c22327 100644 --- a/sdk/communication/communication-chat/src/models/mappers.ts +++ b/sdk/communication/communication-chat/src/models/mappers.ts @@ -6,9 +6,9 @@ import { deserializeCommunicationIdentifier, serializeCommunicationIdentifier, } from "@azure/communication-common"; -import type * as RestModel from "../generated/src/models"; -import type { AddParticipantsRequest } from "./requests"; -import type { CreateChatThreadOptions } from "./options"; +import type * as RestModel from "../generated/src/models/index.js"; +import type { AddParticipantsRequest } from "./requests.js"; +import type { CreateChatThreadOptions } from "./options.js"; import type { ChatMessage, ChatMessageContent, @@ -16,7 +16,7 @@ import type { ChatParticipant, ChatThreadProperties, CreateChatThreadResult, -} from "./models"; +} from "./models.js"; export const mapToCreateChatThreadOptionsRestModel = ( options: CreateChatThreadOptions, diff --git a/sdk/communication/communication-chat/src/models/models.ts b/sdk/communication/communication-chat/src/models/models.ts index db9505b68c76..bfb800b6721b 100644 --- a/sdk/communication/communication-chat/src/models/models.ts +++ b/sdk/communication/communication-chat/src/models/models.ts @@ -5,7 +5,7 @@ import type { CommunicationIdentifier, CommunicationIdentifierKind, } from "@azure/communication-common"; -import type { ChatError, ChatMessageType } from "../generated/src"; +import type { ChatError, ChatMessageType } from "../generated/src/index.js"; export { AddChatParticipantsResult, @@ -13,7 +13,7 @@ export { ChatThreadItem, ChatError, SendChatMessageResult, -} from "../generated/src/models"; +} from "../generated/src/models/index.js"; /** Chat thread. */ export interface ChatThreadProperties { diff --git a/sdk/communication/communication-chat/src/models/options.ts b/sdk/communication/communication-chat/src/models/options.ts index c1c7611362af..d30f72dc24c3 100644 --- a/sdk/communication/communication-chat/src/models/options.ts +++ b/sdk/communication/communication-chat/src/models/options.ts @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import type { CommonClientOptions, OperationOptions } from "@azure/core-client"; -import type { ChatMessageType } from "../generated/src/models"; +import type { ChatMessageType } from "../generated/src/models/index.js"; import { ChatListChatThreadsOptionalParams as RestListChatThreadsOptions, ChatThreadListChatMessagesOptionalParams as RestListMessagesOptions, ChatThreadListChatParticipantsOptionalParams as RestListParticipantsOptions, ChatThreadListChatReadReceiptsOptionalParams as RestListReadReceiptsOptions, -} from "../generated/src/models"; -import type { ChatParticipant } from "./models"; +} from "../generated/src/models/index.js"; +import type { ChatParticipant } from "./models.js"; export { RestListMessagesOptions, diff --git a/sdk/communication/communication-chat/src/models/requests.ts b/sdk/communication/communication-chat/src/models/requests.ts index bc1d5f08638f..70b3cf12c7bb 100644 --- a/sdk/communication/communication-chat/src/models/requests.ts +++ b/sdk/communication/communication-chat/src/models/requests.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { ChatParticipant } from "./models"; +import type { ChatParticipant } from "./models.js"; -export { SendReadReceiptRequest } from "../generated/src/models"; +export { SendReadReceiptRequest } from "../generated/src/models/index.js"; /** Participants to be added to the thread. */ export interface AddParticipantsRequest { diff --git a/sdk/communication/communication-chat/src/models/uuid.ts b/sdk/communication/communication-chat/src/models/uuid.ts index ebdd946ae2c0..5da555263c58 100644 --- a/sdk/communication/communication-chat/src/models/uuid.ts +++ b/sdk/communication/communication-chat/src/models/uuid.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { v4 as uuidv4 } from "uuid"; +import { randomUUID } from "@azure/core-util"; /** * Generated Universally Unique Identifier @@ -10,5 +10,5 @@ import { v4 as uuidv4 } from "uuid"; * @internal */ export function generateUuid(): string { - return uuidv4(); + return randomUUID(); } diff --git a/sdk/communication/communication-chat/src/signaling/signalingClient-browser.mts b/sdk/communication/communication-chat/src/signaling/signalingClient-browser.mts new file mode 100644 index 000000000000..e1e1a59c161c --- /dev/null +++ b/sdk/communication/communication-chat/src/signaling/signalingClient-browser.mts @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import type { SignalingClient } from "@azure/communication-signaling"; +import { CommunicationSignalingClient } from "@azure/communication-signaling"; +import type { CommunicationTokenCredential } from "@azure/communication-common"; +import type { AzureLogger } from "@azure/logger"; +import type { SignalingClientOptions } from "./signalingClientOptions.js"; + +export const getSignalingClient = ( + credential: CommunicationTokenCredential, + logger: AzureLogger, + options?: SignalingClientOptions, +): SignalingClient | undefined => { + return new CommunicationSignalingClient(credential, logger, { + resourceEndpoint: options?.resourceEndpoint ?? undefined, + gatewayApiVersion: options?.gatewayApiVersion ?? undefined, + additionalPolicies: options?.additionalPolicies ?? undefined, + userAgentOptions: options?.userAgentOptions ?? undefined, + }); +}; diff --git a/sdk/communication/communication-chat/src/signaling/signalingClient-react-native.mts b/sdk/communication/communication-chat/src/signaling/signalingClient-react-native.mts new file mode 100644 index 000000000000..e1e1a59c161c --- /dev/null +++ b/sdk/communication/communication-chat/src/signaling/signalingClient-react-native.mts @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import type { SignalingClient } from "@azure/communication-signaling"; +import { CommunicationSignalingClient } from "@azure/communication-signaling"; +import type { CommunicationTokenCredential } from "@azure/communication-common"; +import type { AzureLogger } from "@azure/logger"; +import type { SignalingClientOptions } from "./signalingClientOptions.js"; + +export const getSignalingClient = ( + credential: CommunicationTokenCredential, + logger: AzureLogger, + options?: SignalingClientOptions, +): SignalingClient | undefined => { + return new CommunicationSignalingClient(credential, logger, { + resourceEndpoint: options?.resourceEndpoint ?? undefined, + gatewayApiVersion: options?.gatewayApiVersion ?? undefined, + additionalPolicies: options?.additionalPolicies ?? undefined, + userAgentOptions: options?.userAgentOptions ?? undefined, + }); +}; diff --git a/sdk/communication/communication-chat/src/signaling/signalingClient.browser.ts b/sdk/communication/communication-chat/src/signaling/signalingClient.browser.ts deleted file mode 100644 index c61d6859c722..000000000000 --- a/sdk/communication/communication-chat/src/signaling/signalingClient.browser.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { SignalingClient } from "@azure/communication-signaling"; -import { CommunicationSignalingClient } from "@azure/communication-signaling"; -import type { CommunicationTokenCredential } from "@azure/communication-common"; -import type { AzureLogger } from "@azure/logger"; -import type { SignalingClientOptions } from "./signalingClient"; - -export const getSignalingClient = ( - credential: CommunicationTokenCredential, - logger: AzureLogger, - options?: SignalingClientOptions, -): SignalingClient | undefined => { - return new CommunicationSignalingClient(credential, logger, { - resourceEndpoint: options?.resourceEndpoint ?? undefined, - gatewayApiVersion: options?.gatewayApiVersion ?? undefined, - additionalPolicies: options?.additionalPolicies ?? undefined, - userAgentOptions: options?.userAgentOptions ?? undefined, - }); -}; diff --git a/sdk/communication/communication-chat/src/signaling/signalingClient.ts b/sdk/communication/communication-chat/src/signaling/signalingClient.ts index df7a25836733..ad1e2771f917 100644 --- a/sdk/communication/communication-chat/src/signaling/signalingClient.ts +++ b/sdk/communication/communication-chat/src/signaling/signalingClient.ts @@ -2,31 +2,15 @@ // Licensed under the MIT License. import type { SignalingClient } from "@azure/communication-signaling"; -import { CommunicationSignalingClient } from "@azure/communication-signaling"; import type { CommunicationTokenCredential } from "@azure/communication-common"; import type { AzureLogger } from "@azure/logger"; -import type { ChatClientOptions } from "@azure/communication-chat"; - -export interface SignalingClientOptions extends ChatClientOptions { - resourceEndpoint?: string; - gatewayApiVersion?: string; -} +import type { SignalingClientOptions } from "./signalingClientOptions.js"; export const getSignalingClient = ( - credential: CommunicationTokenCredential, - logger: AzureLogger, - options?: SignalingClientOptions, + _credential: CommunicationTokenCredential, + _logger: AzureLogger, + _options?: SignalingClientOptions, ): SignalingClient | undefined => { - if (typeof navigator !== "undefined" && navigator.product === "ReactNative") { - // In React Native - return new CommunicationSignalingClient(credential, logger, { - resourceEndpoint: options?.resourceEndpoint ?? undefined, - gatewayApiVersion: options?.gatewayApiVersion ?? undefined, - additionalPolicies: options?.additionalPolicies ?? undefined, - userAgentOptions: options?.userAgentOptions ?? undefined, - }); - } - // In node js return undefined; }; diff --git a/sdk/communication/communication-chat/src/signaling/signalingClientOptions.ts b/sdk/communication/communication-chat/src/signaling/signalingClientOptions.ts new file mode 100644 index 000000000000..0e79943e0890 --- /dev/null +++ b/sdk/communication/communication-chat/src/signaling/signalingClientOptions.ts @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import type { ChatClientOptions } from "../models/options.js"; + +export interface SignalingClientOptions extends ChatClientOptions { + resourceEndpoint?: string; + gatewayApiVersion?: string; +} diff --git a/sdk/communication/communication-chat/test/internal/chatClient.mocked.spec.ts b/sdk/communication/communication-chat/test/internal/chatClient.mocked.spec.ts index 6b50c5faf3f7..69758244785e 100644 --- a/sdk/communication/communication-chat/test/internal/chatClient.mocked.spec.ts +++ b/sdk/communication/communication-chat/test/internal/chatClient.mocked.spec.ts @@ -1,13 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import sinon from "sinon"; -import { assert, expect } from "chai"; -import type { ChatClientOptions, CreateChatThreadRequest } from "../../src"; -import { ChatClient } from "../../src"; -import type * as RestModel from "../../src/generated/src/models"; -import { apiVersion } from "../../src/generated/src/models/parameters"; -import { baseUri, generateToken } from "../public/utils/connectionUtils"; +import type { ChatClientOptions, CreateChatThreadRequest } from "../../src/index.js"; +import { ChatClient } from "../../src/index.js"; +import type * as RestModel from "../../src/generated/src/models/index.js"; +import { apiVersion } from "../../src/generated/src/models/parameters.js"; +import { baseUri, generateToken } from "../public/utils/connectionUtils.js"; import type { CommunicationUserIdentifier } from "@azure/communication-common"; import { AzureCommunicationTokenCredential } from "@azure/communication-common"; import { @@ -16,26 +14,23 @@ import { mockCreateThreadResult, mockThread, mockThreadItem, -} from "./utils/mockClient"; -import { isNode } from "@azure/core-util"; +} from "./utils/mockClient.js"; +import { isNodeLike } from "@azure/core-util"; +import { describe, it, assert, expect, vi } from "vitest"; const API_VERSION = apiVersion.mapper.defaultValue; -describe("[Mocked] ChatClient", async function () { +describe("[Mocked] ChatClient", async () => { let chatClient: ChatClient; - let listener: () => { + const listener = (): void => { // Intentionally empty listener for testing purposes }; - afterEach(function () { - sinon.restore(); - }); - - it("can instantiate", async function () { + it("can instantiate", async () => { new ChatClient(baseUri, new AzureCommunicationTokenCredential(generateToken())); }); - it("can instantiate with custom api version policy", async function () { + it("can instantiate with custom api version policy", async () => { const customizedVersion = `2021-03-07`; const mockHttpClient = generateHttpClient(201, mockCreateThreadResult); const options = { apiVersion: customizedVersion, httpClient: mockHttpClient }; @@ -45,17 +40,17 @@ describe("[Mocked] ChatClient", async function () { options as ChatClientOptions, ); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); await chatClient.createChatThread({ topic: mockThread.topic }); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.url, `${baseUri}/chat/threads?api-version=${customizedVersion}`); }); - it("makes successful create thread request", async function () { + it("makes successful create thread request", async () => { const mockHttpClient = generateHttpClient(201, mockCreateThreadResult); chatClient = createChatClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const sendRequest: CreateChatThreadRequest = { topic: mockThread.topic!, @@ -65,7 +60,7 @@ describe("[Mocked] ChatClient", async function () { const createThreadResult = await chatClient.createChatThread(sendRequest, sendOptions); - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.isDefined(createThreadResult.chatThread); assert.equal(createThreadResult.chatThread?.id, mockThread.id); assert.equal(createThreadResult.chatThread?.createdBy?.kind, "communicationUser"); @@ -74,7 +69,7 @@ describe("[Mocked] ChatClient", async function () { mockCreateThreadResult.chatThread?.createdByCommunicationIdentifier.communicationUser?.id, ); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.url, `${baseUri}/chat/threads?api-version=${API_VERSION}`); assert.equal(request.method, "POST"); @@ -82,14 +77,14 @@ describe("[Mocked] ChatClient", async function () { assert.isNotEmpty(request.headers.get("repeatability-request-id")); }); - it("makes successful list threads request", async function () { + it("makes successful list threads request", async () => { const mockResponse: RestModel.ChatThreadsItemCollection = { value: [mockThreadItem, mockThreadItem], }; const mockHttpClient = generateHttpClient(200, mockResponse); chatClient = createChatClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); let count = 0; for await (const info of chatClient.listChatThreads()) { @@ -98,22 +93,22 @@ describe("[Mocked] ChatClient", async function () { assert.deepEqual(info, mockThreadItem); } - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.equal(count, mockResponse.value?.length); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.url, `${baseUri}/chat/threads?api-version=${API_VERSION}`); assert.equal(request.method, "GET"); }); - it("makes successful list threads request by page", async function () { + it("makes successful list threads request by page", async () => { const mockResponse: RestModel.ChatThreadsItemCollection = { value: [mockThreadItem, mockThreadItem, mockThreadItem, mockThreadItem, mockThreadItem], }; const mockHttpClient = generateHttpClient(200, mockResponse); chatClient = createChatClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const chatThreadsIterator = chatClient.listChatThreads({ maxPageSize: 2 }); let count = 0; @@ -127,23 +122,23 @@ describe("[Mocked] ChatClient", async function () { } } - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.equal(count, mockResponse.value?.length); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.url, `${baseUri}/chat/threads?maxPageSize=2&api-version=${API_VERSION}`); assert.equal(request.method, "GET"); }); - it("makes successful delete thread request", async function () { + it("makes successful delete thread request", async () => { const mockHttpClient = generateHttpClient(204); chatClient = createChatClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); await chatClient.deleteChatThread(mockThread.id!); - sinon.assert.calledOnce(spy); - const request = spy.getCall(0).args[0]; + expect(spy).toHaveBeenCalledOnce(); + const request = spy.mock.calls[0][0]; assert.equal( request.url, `${baseUri}/chat/threads/${mockThread.id}?api-version=${API_VERSION}`, @@ -151,9 +146,9 @@ describe("[Mocked] ChatClient", async function () { assert.equal(request.method, "DELETE"); }); - it("should throw an error to start real time notifications in node", async function () { - if (!isNode) { - this.skip(); + it("should throw an error to start real time notifications in node", async function (ctx) { + if (!isNodeLike) { + ctx.skip(); } try { @@ -167,9 +162,9 @@ describe("[Mocked] ChatClient", async function () { } }); - it("should throw an error to stop real time notifications in node", async function () { - if (!isNode) { - this.skip(); + it("should throw an error to stop real time notifications in node", async function (ctx) { + if (!isNodeLike) { + ctx.skip(); } try { @@ -183,9 +178,9 @@ describe("[Mocked] ChatClient", async function () { } }); - it("should throw an error to unsubscribe an event in node", function () { - if (!isNode) { - this.skip(); + it("should throw an error to unsubscribe an event in node", function (ctx) { + if (!isNodeLike) { + ctx.skip(); } try { @@ -199,163 +194,163 @@ describe("[Mocked] ChatClient", async function () { } }); - it("should throw an error to subscribe chatMessageReceived event in node", function () { - if (!isNode) { - this.skip(); - } - - try { - chatClient.on("chatMessageReceived", listener); - throw new Error("Error is expected."); - } catch (error) { - expect(error).to.be.an.instanceof(Error); - expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser.", - ); - } - }); - - it("should throw an error to subscribe chatMessageEdited event in node", function () { - if (!isNode) { - this.skip(); - } - - try { - chatClient.on("chatMessageEdited", listener); - throw new Error("Error is expected."); - } catch (error) { - expect(error).to.be.an.instanceof(Error); - expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser.", - ); - } - }); - - it("should throw an error to subscribe chatMessageDeleted event in node", function () { - if (!isNode) { - this.skip(); - } - - try { - chatClient.on("chatMessageDeleted", listener); - throw new Error("Error is expected."); - } catch (error) { - expect(error).to.be.an.instanceof(Error); - expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser.", - ); - } - }); - - it("should throw an error to subscribe typingIndicatorReceived event in node", function () { - if (!isNode) { - this.skip(); - } - - try { - chatClient.on("typingIndicatorReceived", listener); - throw new Error("Error is expected."); - } catch (error) { - expect(error).to.be.an.instanceof(Error); - expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser.", - ); - } - }); - - it("should throw an error to subscribe readReceiptReceived event in node", function () { - if (!isNode) { - this.skip(); - } - - try { - chatClient.on("readReceiptReceived", listener); - throw new Error("Error is expected."); - } catch (error) { - expect(error).to.be.an.instanceof(Error); - expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser.", - ); - } - }); - - it("should throw an error to subscribe chatThreadCreated event in node", function () { - if (!isNode) { - this.skip(); - } - - try { - chatClient.on("chatThreadCreated", listener); - throw new Error("Error is expected."); - } catch (error) { - expect(error).to.be.an.instanceof(Error); - expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser.", - ); - } - }); - - it("should throw an error to subscribe chatThreadDeleted event in node", function () { - if (!isNode) { - this.skip(); - } - - try { - chatClient.on("chatThreadDeleted", listener); - throw new Error("Error is expected."); - } catch (error) { - expect(error).to.be.an.instanceof(Error); - expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser.", - ); - } - }); - - it("should throw an error to subscribe chatThreadPropertiesUpdated event in node", function () { - if (!isNode) { - this.skip(); - } - - try { - chatClient.on("chatThreadPropertiesUpdated", listener); - throw new Error("Error is expected."); - } catch (error) { - expect(error).to.be.an.instanceof(Error); - expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser.", - ); - } - }); - - it("should throw an error to subscribe participantsAdded event in node", function () { - if (!isNode) { - this.skip(); - } - - try { - chatClient.on("participantsAdded", listener); - throw new Error("Error is expected."); - } catch (error) { - expect(error).to.be.an.instanceof(Error); - expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser.", - ); - } - }); - - it("should throw an error to subscribe participantsRemoved event in node", function () { - if (!isNode) { - this.skip(); - } - - try { - chatClient.on("participantsRemoved", listener); - throw new Error("Error is expected."); - } catch (error) { - expect(error).to.be.an.instanceof(Error); - expect((error as Error).message).to.equal( - "Realtime notifications are only supported in the browser.", - ); - } - }); + it( + "should throw an error to subscribe chatMessageReceived event in node", + { skip: !isNodeLike }, + () => { + try { + chatClient.on("chatMessageReceived", listener); + throw new Error("Error is expected."); + } catch (error) { + expect(error).to.be.an.instanceof(Error); + expect((error as Error).message).to.equal( + "Realtime notifications are only supported in the browser.", + ); + } + }, + ); + + it( + "should throw an error to subscribe chatMessageEdited event in node", + { skip: !isNodeLike }, + () => { + try { + chatClient.on("chatMessageEdited", listener); + throw new Error("Error is expected."); + } catch (error) { + expect(error).to.be.an.instanceof(Error); + expect((error as Error).message).to.equal( + "Realtime notifications are only supported in the browser.", + ); + } + }, + ); + + it( + "should throw an error to subscribe chatMessageDeleted event in node", + { skip: !isNodeLike }, + () => { + try { + chatClient.on("chatMessageDeleted", listener); + throw new Error("Error is expected."); + } catch (error) { + expect(error).to.be.an.instanceof(Error); + expect((error as Error).message).to.equal( + "Realtime notifications are only supported in the browser.", + ); + } + }, + ); + + it( + "should throw an error to subscribe typingIndicatorReceived event in node", + { skip: !isNodeLike }, + () => { + try { + chatClient.on("typingIndicatorReceived", listener); + throw new Error("Error is expected."); + } catch (error) { + expect(error).to.be.an.instanceof(Error); + expect((error as Error).message).to.equal( + "Realtime notifications are only supported in the browser.", + ); + } + }, + ); + + it( + "should throw an error to subscribe readReceiptReceived event in node", + { skip: !isNodeLike }, + () => { + try { + chatClient.on("readReceiptReceived", listener); + throw new Error("Error is expected."); + } catch (error) { + expect(error).to.be.an.instanceof(Error); + expect((error as Error).message).to.equal( + "Realtime notifications are only supported in the browser.", + ); + } + }, + ); + + it( + "should throw an error to subscribe chatThreadCreated event in node", + { skip: !isNodeLike }, + () => { + try { + chatClient.on("chatThreadCreated", listener); + throw new Error("Error is expected."); + } catch (error) { + expect(error).to.be.an.instanceof(Error); + expect((error as Error).message).to.equal( + "Realtime notifications are only supported in the browser.", + ); + } + }, + ); + + it( + "should throw an error to subscribe chatThreadDeleted event in node", + { skip: !isNodeLike }, + () => { + try { + chatClient.on("chatThreadDeleted", listener); + throw new Error("Error is expected."); + } catch (error) { + expect(error).to.be.an.instanceof(Error); + expect((error as Error).message).to.equal( + "Realtime notifications are only supported in the browser.", + ); + } + }, + ); + + it( + "should throw an error to subscribe chatThreadPropertiesUpdated event in node", + { skip: !isNodeLike }, + () => { + try { + chatClient.on("chatThreadPropertiesUpdated", listener); + throw new Error("Error is expected."); + } catch (error) { + expect(error).to.be.an.instanceof(Error); + expect((error as Error).message).to.equal( + "Realtime notifications are only supported in the browser.", + ); + } + }, + ); + + it( + "should throw an error to subscribe participantsAdded event in node", + { skip: !isNodeLike }, + () => { + try { + chatClient.on("participantsAdded", listener); + throw new Error("Error is expected."); + } catch (error) { + expect(error).to.be.an.instanceof(Error); + expect((error as Error).message).to.equal( + "Realtime notifications are only supported in the browser.", + ); + } + }, + ); + + it( + "should throw an error to subscribe participantsRemoved event in node", + { skip: !isNodeLike }, + () => { + try { + chatClient.on("participantsRemoved", listener); + throw new Error("Error is expected."); + } catch (error) { + expect(error).to.be.an.instanceof(Error); + expect((error as Error).message).to.equal( + "Realtime notifications are only supported in the browser.", + ); + } + }, + ); }); diff --git a/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts b/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts index 072f476a560f..4248d152965c 100644 --- a/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts +++ b/sdk/communication/communication-chat/test/internal/chatThreadClient.mocked.spec.ts @@ -1,8 +1,5 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. - -import sinon from "sinon"; -import { assert } from "chai"; import type { CommunicationUserIdentifier } from "@azure/communication-common"; import { AzureCommunicationTokenCredential } from "@azure/communication-common"; import type { @@ -10,11 +7,11 @@ import type { SendMessageOptions, SendMessageRequest, UpdateMessageOptions, -} from "../../src"; -import { ChatThreadClient } from "../../src"; -import type * as RestModel from "../../src/generated/src/models"; -import { apiVersion } from "../../src/generated/src/models/parameters"; -import { baseUri, generateToken } from "../public/utils/connectionUtils"; +} from "../../src/index.js"; +import { ChatThreadClient } from "../../src/index.js"; +import type * as RestModel from "../../src/generated/src/models/index.js"; +import { apiVersion } from "../../src/generated/src/models/parameters.js"; +import { baseUri, generateToken } from "../public/utils/connectionUtils.js"; import { createChatThreadClient, generateHttpClient, @@ -25,32 +22,33 @@ import { mockParticipant, mockSdkModelParticipant, mockThread, -} from "./utils/mockClient"; +} from "./utils/mockClient.js"; +import { describe, it, assert, expect, vi, afterEach } from "vitest"; const API_VERSION = apiVersion.mapper.defaultValue; -describe("[Mocked] ChatThreadClient", async function () { +describe("[Mocked] ChatThreadClient", async () => { const threadId: string = "threadId"; let chatThreadClient: ChatThreadClient; - afterEach(function () { - sinon.restore(); + afterEach(() => { + vi.restoreAllMocks(); }); - it("can instantiate", async function () { + it("can instantiate", async () => { new ChatThreadClient(threadId, baseUri, new AzureCommunicationTokenCredential(generateToken())); }); - it("makes successful get properties request", async function () { + it("makes successful get properties request", async () => { const mockHttpClient = generateHttpClient(200, mockThread); chatThreadClient = createChatThreadClient(mockThread.id, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const { createdBy: responseUser, ...response } = await chatThreadClient.getProperties(); const { createdByCommunicationIdentifier: expectedIdentifier, ...expected } = mockThread; - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.deepEqual(response, expected); assert.equal(responseUser?.kind, "communicationUser"); @@ -59,7 +57,7 @@ describe("[Mocked] ChatThreadClient", async function () { expectedIdentifier.communicationUser?.id, ); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal( request.url, @@ -68,29 +66,29 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(request.method, "GET"); }); - it("makes successful update thread topic", async function () { + it("makes successful update thread topic", async () => { const mockHttpClient = generateHttpClient(204); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const topic = "mockTopic"; await chatThreadClient.updateTopic(topic); - sinon.assert.calledOnce(spy); - const request = spy.getCall(0).args[0]; + expect(spy).toHaveBeenCalledOnce(); + const request = spy.mock.calls[0][0]; assert.equal(request.url, `${baseUri}/chat/threads/${threadId}?api-version=${API_VERSION}`); assert.equal(request.method, "PATCH"); assert.deepEqual(JSON.parse(request.body as string), { topic: topic }); }); - it("makes successful send message request", async function () { + it("makes successful send message request", async () => { const mockHttpClient = generateHttpClient(201, { id: mockMessage.id, }); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const sendRequest: SendMessageRequest = { content: mockMessage.content?.message as string, @@ -103,10 +101,10 @@ describe("[Mocked] ChatThreadClient", async function () { const response = await chatThreadClient.sendMessage(sendRequest, sendOptions); - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.equal(response.id, mockMessage.id); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal( request.url, @@ -119,10 +117,10 @@ describe("[Mocked] ChatThreadClient", async function () { }); }); - it("makes successful get message request", async function () { + it("makes successful get message request", async () => { const mockHttpClient = generateHttpClient(200, mockMessage); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const { sender: responseUser, @@ -137,7 +135,7 @@ describe("[Mocked] ChatThreadClient", async function () { const { participants: expectedParticipants, ...expectedContents } = expectedContent!; const { participants: responseParticipants, ...repsonseContents } = responseContent!; - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.deepEqual(responseMessage, expectedMessage); assert.equal(responseUser?.kind, "communicationUser"); assert.equal( @@ -146,7 +144,7 @@ describe("[Mocked] ChatThreadClient", async function () { ); assert.deepEqual(repsonseContents, expectedContents); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal( request.url, @@ -155,10 +153,10 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(request.method, "GET"); }); - it("makes successful get message with image attachments request", async function () { + it("makes successful get message with image attachments request", async () => { const mockHttpClient = generateHttpClient(200, mockMessageWithImageAttachment); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const { sender: responseUser, @@ -180,20 +178,20 @@ describe("[Mocked] ChatThreadClient", async function () { attachments: responseAttachments, ...repsonseContents } = responseContent!; - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.deepEqual(responseMessage, expectedMessage); assert.deepEqual(responseAttachments, expectedAttachments); assert.deepEqual(repsonseContents, expectedContents); assert.equal(responseAttachments![0].attachmentType, "image"); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.method, "GET"); }); - it("makes successful get message with file attachments request", async function () { + it("makes successful get message with file attachments request", async () => { const mockHttpClient = generateHttpClient(200, mockMessageWithFileAttachment); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const { sender: responseUser, @@ -215,17 +213,17 @@ describe("[Mocked] ChatThreadClient", async function () { attachments: responseAttachments, ...repsonseContents } = responseContent!; - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.deepEqual(responseMessage, expectedMessage); assert.deepEqual(responseAttachments, expectedAttachments); assert.deepEqual(repsonseContents, expectedContents); assert.equal(responseAttachments![0].attachmentType, "file"); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.method, "GET"); }); - it("makes successful list messages request", async function () { + it("makes successful list messages request", async () => { const { senderCommunicationIdentifier, ...rest } = mockMessage; const mockResponse: RestModel.ChatMessagesCollection = { @@ -235,7 +233,7 @@ describe("[Mocked] ChatThreadClient", async function () { const mockHttpClient = generateHttpClient(200, mockResponse); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); let count = 0; for await (const message of chatThreadClient.listMessages()) { @@ -263,10 +261,10 @@ describe("[Mocked] ChatThreadClient", async function () { ++count; } - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.equal(count, mockResponse.value?.length); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal( request.url, @@ -275,7 +273,7 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(request.method, "GET"); }); - it("makes successful list messages request by page", async function () { + it("makes successful list messages request by page", async () => { const { senderCommunicationIdentifier, ...rest } = mockMessage; const mockResponse: RestModel.ChatMessagesCollection = { @@ -285,7 +283,7 @@ describe("[Mocked] ChatThreadClient", async function () { const mockHttpClient = generateHttpClient(200, mockResponse); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const iterator = chatThreadClient.listMessages({ maxPageSize: 2 }); @@ -298,10 +296,10 @@ describe("[Mocked] ChatThreadClient", async function () { } } - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.equal(count, mockResponse.value?.length); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal( request.url, @@ -310,10 +308,10 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(request.method, "GET"); }); - it("makes successful update message request", async function () { + it("makes successful update message request", async () => { const mockHttpClient = generateHttpClient(204); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const sendOptions: UpdateMessageOptions = { content: mockMessage.content?.message, @@ -322,8 +320,8 @@ describe("[Mocked] ChatThreadClient", async function () { await chatThreadClient.updateMessage(mockMessage.id!, sendOptions); - sinon.assert.calledOnce(spy); - const request = spy.getCall(0).args[0]; + expect(spy).toHaveBeenCalledOnce(); + const request = spy.mock.calls[0][0]; assert.equal( request.url, `${baseUri}/chat/threads/${threadId}/messages/${mockMessage.id}?api-version=${API_VERSION}`, @@ -335,15 +333,15 @@ describe("[Mocked] ChatThreadClient", async function () { }); }); - it("makes successful delete message request", async function () { + it("makes successful delete message request", async () => { const mockHttpClient = generateHttpClient(204); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); await chatThreadClient.deleteMessage(mockMessage.id!); - sinon.assert.calledOnce(spy); - const request = spy.getCall(0).args[0]; + expect(spy).toHaveBeenCalledOnce(); + const request = spy.mock.calls[0][0]; assert.equal( request.url, `${baseUri}/chat/threads/${threadId}/messages/${mockMessage.id}?api-version=${API_VERSION}`, @@ -351,10 +349,10 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(request.method, "DELETE"); }); - it("makes successful add chat participants request", async function () { + it("makes successful add chat participants request", async () => { const mockHttpClient = generateHttpClient(201); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const sendRequest: AddParticipantsRequest = { participants: [mockSdkModelParticipant], @@ -362,8 +360,8 @@ describe("[Mocked] ChatThreadClient", async function () { await chatThreadClient.addParticipants(sendRequest); - sinon.assert.calledOnce(spy); - const request = spy.getCall(0).args[0]; + expect(spy).toHaveBeenCalledOnce(); + const request = spy.mock.calls[0][0]; assert.equal( request.url, @@ -382,12 +380,12 @@ describe("[Mocked] ChatThreadClient", async function () { ); }); - it("makes successful list chat participants request", async function () { + it("makes successful list chat participants request", async () => { const mockHttpClient = generateHttpClient(200, { value: [mockParticipant], }); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); let count = 0; for await (const participant of chatThreadClient.listParticipants()) { @@ -402,10 +400,10 @@ describe("[Mocked] ChatThreadClient", async function () { assert.deepEqual(requestParticipant, expectedParticipant); } - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.equal(count, 1); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal( request.url, @@ -414,12 +412,12 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(request.method, "GET"); }); - it("makes successful list chat participants request by page", async function () { + it("makes successful list chat participants request by page", async () => { const mockHttpClient = generateHttpClient(200, { value: [mockParticipant, mockParticipant, mockParticipant], }); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const iterator = chatThreadClient.listParticipants({ maxPageSize: 2 }); let count = 0; @@ -431,10 +429,10 @@ describe("[Mocked] ChatThreadClient", async function () { } } - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.equal(count, 3); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal( request.url, @@ -443,15 +441,15 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(request.method, "GET"); }); - it("makes successful remove chat participant request", async function () { + it("makes successful remove chat participant request", async () => { const mockHttpClient = generateHttpClient(204); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); await chatThreadClient.removeParticipant(mockSdkModelParticipant.id); - sinon.assert.calledOnce(spy); - const request = spy.getCall(0).args[0]; + expect(spy).toHaveBeenCalledOnce(); + const request = spy.mock.calls[0][0]; assert.equal( request.url, `${baseUri}/chat/threads/${threadId}/participants/:remove?api-version=${API_VERSION}`, @@ -461,16 +459,16 @@ describe("[Mocked] ChatThreadClient", async function () { assert.deepEqual(mockParticipant.communicationIdentifier, requestJson); }); - it("makes successful sent typing notification request", async function () { + it("makes successful sent typing notification request", async () => { const mockHttpClient = generateHttpClient(200); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const result = await chatThreadClient.sendTypingNotification(); assert.isTrue(result); - sinon.assert.calledOnce(spy); - const request = spy.getCall(0).args[0]; + expect(spy).toHaveBeenCalledOnce(); + const request = spy.mock.calls[0][0]; assert.equal( request.url, `${baseUri}/chat/threads/${threadId}/typing?api-version=${API_VERSION}`, @@ -478,10 +476,10 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(request.method, "POST"); }); - it("makes only one sent typing notification request within 8 secs", async function () { + it("makes only one sent typing notification request within 8 secs", async () => { const mockHttpClient = generateHttpClient(400); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); try { await chatThreadClient.sendTypingNotification(); @@ -492,8 +490,8 @@ describe("[Mocked] ChatThreadClient", async function () { const result = await chatThreadClient.sendTypingNotification(); assert.isFalse(result); - sinon.assert.calledOnce(spy); - const request = spy.getCall(0).args[0]; + expect(spy).toHaveBeenCalledOnce(); + const request = spy.mock.calls[0][0]; assert.equal( request.url, `${baseUri}/chat/threads/${threadId}/typing?api-version=${API_VERSION}`, @@ -502,17 +500,17 @@ describe("[Mocked] ChatThreadClient", async function () { } }); - it("makes successful sent typing notification request with sender display name", async function () { + it("makes successful sent typing notification request with sender display name", async () => { const mockHttpClient = generateHttpClient(200); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const options = { senderDisplayName: "Bob Admin" }; const result = await chatThreadClient.sendTypingNotification(options); assert.isTrue(result); - sinon.assert.calledOnce(spy); - const request = spy.getCall(0).args[0]; + expect(spy).toHaveBeenCalledOnce(); + const request = spy.mock.calls[0][0]; assert.equal( request.url, `${baseUri}/chat/threads/${threadId}/typing?api-version=${API_VERSION}`, @@ -521,15 +519,15 @@ describe("[Mocked] ChatThreadClient", async function () { assert.deepEqual(JSON.parse(request.body as string), options); }); - it("makes successful sent read receipt request", async function () { + it("makes successful sent read receipt request", async () => { const mockHttpClient = generateHttpClient(200); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); await chatThreadClient.sendReadReceipt({ chatMessageId: mockMessage.id! }); - sinon.assert.calledOnce(spy); - const request = spy.getCall(0).args[0]; + expect(spy).toHaveBeenCalledOnce(); + const request = spy.mock.calls[0][0]; assert.equal( request.url, `${baseUri}/chat/threads/${threadId}/readReceipts?api-version=${API_VERSION}`, @@ -537,12 +535,12 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(request.method, "POST"); }); - it("makes successful list read receipts request", async function () { + it("makes successful list read receipts request", async () => { const mockHttpClient = generateHttpClient(200, { value: [mockChatMessageReadReceipt, mockChatMessageReadReceipt], }); chatThreadClient = createChatThreadClient(threadId, mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); let count = 0; for await (const readReceipt of chatThreadClient.listReadReceipts()) { @@ -560,8 +558,8 @@ describe("[Mocked] ChatThreadClient", async function () { assert.equal(count, 2); - sinon.assert.calledOnce(spy); - const request = spy.getCall(0).args[0]; + expect(spy).toHaveBeenCalledOnce(); + const request = spy.mock.calls[0][0]; assert.equal( request.url, `${baseUri}/chat/threads/${threadId}/readReceipts?api-version=${API_VERSION}`, diff --git a/sdk/communication/communication-chat/test/internal/utils/mockClient.ts b/sdk/communication/communication-chat/test/internal/utils/mockClient.ts index 87cf11d3c71a..ccff7fa59f20 100644 --- a/sdk/communication/communication-chat/test/internal/utils/mockClient.ts +++ b/sdk/communication/communication-chat/test/internal/utils/mockClient.ts @@ -4,11 +4,11 @@ import { AzureCommunicationTokenCredential } from "@azure/communication-common"; import type { HttpClient, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline"; import { createHttpHeaders } from "@azure/core-rest-pipeline"; -import type * as RestModel from "../../../src/generated/src/models"; -import type { ChatParticipant } from "../../../src"; -import { ChatClient, ChatThreadClient } from "../../../src"; -import type { CommunicationIdentifierModel } from "../../../src/generated/src"; -import { baseUri, generateToken } from "../../public/utils/connectionUtils"; +import type * as RestModel from "../../../src/generated/src/models/index.js"; +import type { ChatParticipant } from "../../../src/index.js"; +import { ChatClient, ChatThreadClient } from "../../../src/index.js"; +import type { CommunicationIdentifierModel } from "../../../src/generated/src/index.js"; +import { baseUri, generateToken } from "../../public/utils/connectionUtils.js"; export const mockCommunicationIdentifier: CommunicationIdentifierModel = { communicationUser: { id: "id" }, diff --git a/sdk/communication/communication-chat/test/public/chatClient.spec.ts b/sdk/communication/communication-chat/test/public/chatClient.spec.ts index b987f7d4aeb9..465dc0571d41 100644 --- a/sdk/communication/communication-chat/test/public/chatClient.spec.ts +++ b/sdk/communication/communication-chat/test/public/chatClient.spec.ts @@ -3,16 +3,14 @@ import type { Recorder } from "@azure-tools/test-recorder"; import { isLiveMode } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { ChatClient, ChatThreadClient } from "../../src"; -import { createChatClient, createRecorder, createTestUser } from "./utils/recordedClient"; -import { isNode } from "@azure/core-util"; -import sinon from "sinon"; +import { isNodeLike } from "@azure/core-util"; +import type { ChatClient, ChatThreadClient } from "../../src/index.js"; +import { createChatClient, createRecorder, createTestUser } from "./utils/recordedClient.js"; import type { CommunicationIdentifier } from "@azure/communication-common"; -import type { Context } from "mocha"; import type { CommunicationUserToken } from "@azure/communication-identity"; +import { describe, it, assert, expect, vi, beforeEach, afterEach, beforeAll } from "vitest"; -describe("ChatClient", function () { +describe("ChatClient", () => { let threadId: string | undefined; let recorder: Recorder; let chatClient: ChatClient; @@ -21,15 +19,9 @@ describe("ChatClient", function () { let testUser: CommunicationIdentifier; let testUser2: CommunicationIdentifier; - after(async function () { - // await deleteTestUser(testUser); - // await deleteTestUser(testUser2); - // await deleteTestUser(testUser3); - }); - - describe("Chat Operations", function () { - beforeEach(async function (this: Context) { - recorder = await createRecorder(this.currentTest); + describe("Chat Operations", () => { + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); await recorder.setMatcher("HeaderlessMatcher"); if (!communicationUserToken) { communicationUserToken = await createTestUser(recorder); @@ -37,11 +29,11 @@ describe("ChatClient", function () { chatClient = createChatClient(communicationUserToken.token, recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("successfully creates a thread", async function () { + it("successfully creates a thread", { timeout: 8000 }, async () => { testUser = communicationUserToken.user; testUser2 = (await createTestUser(recorder)).user; @@ -59,29 +51,24 @@ describe("ChatClient", function () { assert.isDefined(chatThread); assert.isDefined(chatThread?.id); - }).timeout(8000); + }); - it("successfully retrieves a thread client", async function () { + it("successfully retrieves a thread client", async () => { chatThreadClient = chatClient.getChatThreadClient(threadId!); assert.isNotNull(chatThreadClient); assert.equal(chatThreadClient.threadId, threadId); }); - it("successfully deletes a thread", async function () { + it("successfully deletes a thread", async () => { await chatClient.deleteChatThread(threadId!); }); }); - describe("Realtime Notifications", function () { - before(async function (this: Context) { - // Realtime notifications are browser only - if (isNode || !isLiveMode()) { - this.skip(); - } - + describe("Realtime Notifications", { skip: isNodeLike || !isLiveMode() }, () => { + beforeAll(async () => { // Create a thread const request = { - topic: "notifcation tests", + topic: "notification tests", participants: [{ id: testUser }], }; const chatThreadResult = await chatClient.createChatThread(request); @@ -91,13 +78,13 @@ describe("ChatClient", function () { chatThreadClient = chatClient.getChatThreadClient(threadId!); }); - beforeEach(async function () { + beforeEach(async () => { // Start notifications await chatClient.startRealtimeNotifications(); }); - it("successfully stops realtime notifications", async function () { - const listener = sinon.spy(); + it("successfully stops realtime notifications", async () => { + const listener = vi.fn(); chatClient.on("typingIndicatorReceived", listener); await chatClient.stopRealtimeNotifications(); @@ -106,173 +93,227 @@ describe("ChatClient", function () { // Allow time to see if notification comes in await new Promise((resolve) => setTimeout(resolve, 5000)); - sinon.assert.notCalled(listener); + expect(listener).not.toHaveBeenCalled(); }); - it("successfully unsubscribes a listener", function (done) { - function listener(): void { - assert.fail(); - } - - chatClient.on("typingIndicatorReceived", listener); - chatClient.off("typingIndicatorReceived", listener); - - // Send typing notification - chatThreadClient.sendTypingNotification(); - - // Wait a bit and fail if the notification comes in - setTimeout(done, 5000); - }).timeout(8000); - - it("successfully listens to typingIndicatorReceivedEvents", function (done) { - function listener(): void { - done(); - } - - chatClient.on("typingIndicatorReceived", listener); - - // Send typing notification - chatThreadClient.sendTypingNotification(); - }).timeout(8000); - - it("successfully listens to chatMessageEditedEvents", function (done) { - function listener(): void { - done(); - } - - chatClient.on("chatMessageEdited", listener); - - // Edit message - const message = { content: "content" }; - chatThreadClient - .sendMessage(message) - .then((result) => { - return chatThreadClient.updateMessage(result.id, { - content: "new content", - }); - }) - .catch((error) => console.error(error)); - }).timeout(8000); - - it("successfully listens to chatMessageReceivedEvents", function (done) { - function listener(): void { - done(); - } - - chatClient.on("chatMessageReceived", listener); - - // Send message - const message = { content: `content` }; - chatThreadClient.sendMessage(message); - }).timeout(8000); - - it("successfully listens to chatMessageDeletedEvents", function (done) { - function listener(): void { - done(); - } - - chatClient.on("chatMessageDeleted", listener); - - // Delete message - const message = { content: `content` }; - chatThreadClient - .sendMessage(message) - .then((result) => { - return chatThreadClient.deleteMessage(result.id); - }) - .catch((error) => console.error(error)); - }).timeout(8000); - - it("successfully listens to chatThreadCreatedEvents", function (done) { - function listener(): void { - done(); - } - - chatClient.on("chatThreadCreated", listener); - - // Create thread - const request = { - topic: "test create thread event", - participants: [{ id: testUser }], - }; - chatClient.createChatThread(request); - }).timeout(8000); - - it("successfully listens to chatThreadDeletedEvents", function (done) { - function listener(): void { - done(); - } - - chatClient.on("chatThreadDeleted", listener); - - // Delete thread - const request = { - topic: "test delete thread event", - participants: [{ id: testUser }], - }; - chatClient - .createChatThread(request) - .then((result) => { - return chatClient.deleteChatThread(result.chatThread?.id as string); - }) - .catch((error) => console.error(error)); - }).timeout(8000); - - it("successfully listens to chatThreadPropertiesUpdatedEvents", function (done) { - function listener(): void { - done(); - } - - chatClient.on("chatThreadPropertiesUpdated", listener); - - // Update thread - chatThreadClient.updateTopic("updated topic"); - }).timeout(8000); - - it("successfully listens to participantsAddedEvents", function (done) { - function listener(): void { - done(); - } - - chatClient.on("participantsAdded", listener); - - // Add participant - const request = { - participants: [{ id: testUser2 }], - }; - chatThreadClient.addParticipants(request); - }).timeout(8000); - - it("successfully listens to participantsRemovedEvents", function (done) { - function listener(): void { - done(); - } - - chatClient.on("participantsRemoved", listener); - - // Remove participant - chatThreadClient.removeParticipant(testUser2); - }).timeout(8000); - - it("successfully listens to readReceiptReceivedEvents", function (this: Context, done) { - // TODO: Read receipt notification is timing out even with increased timeout - this.skip(); - function listener(): void { - done(); - } - - chatClient.on("readReceiptReceived", listener); - - // Send read receipt - const message = { content: "content" }; - chatThreadClient - .sendMessage(message) - .then((result) => { - return chatThreadClient.sendReadReceipt({ - chatMessageId: result.id, - }); - }) - .catch((error) => console.error(error)); - }).timeout(8000); + it( + "successfully unsubscribes a listener", + { timeout: 8000 }, + () => + new Promise((resolve) => { + function listener(): void { + assert.fail(); + } + + chatClient.on("typingIndicatorReceived", listener); + chatClient.off("typingIndicatorReceived", listener); + + // Send typing notification + chatThreadClient.sendTypingNotification(); + + // Wait a bit and fail if the notification comes in + setTimeout(resolve, 5000); + }), + ); + + it( + "successfully listens to typingIndicatorReceivedEvents", + { timeout: 8000 }, + () => + new Promise((resolve) => { + function listener(): void { + resolve(); + } + + chatClient.on("typingIndicatorReceived", listener); + + // Send typing notification + chatThreadClient.sendTypingNotification(); + }), + ); + + it( + "successfully listens to chatMessageEditedEvents", + { timeout: 8000 }, + () => + new Promise((resolve) => { + function listener(): void { + resolve(); + } + + chatClient.on("chatMessageEdited", listener); + + // Edit message + const message = { content: "content" }; + chatThreadClient + .sendMessage(message) + .then((result) => { + return chatThreadClient.updateMessage(result.id, { + content: "new content", + }); + }) + .catch((error) => console.error(error)); + }), + ); + + it( + "successfully listens to chatMessageReceivedEvents", + { timeout: 8000 }, + () => + new Promise((resolve) => { + function listener(): void { + resolve(); + } + + chatClient.on("chatMessageReceived", listener); + + // Send message + const message = { content: `content` }; + chatThreadClient.sendMessage(message); + }), + ); + + it( + "successfully listens to chatMessageDeletedEvents", + { timeout: 8000 }, + () => + new Promise((resolve) => { + function listener(): void { + resolve(); + } + + chatClient.on("chatMessageDeleted", listener); + + // Delete message + const message = { content: `content` }; + chatThreadClient + .sendMessage(message) + .then((result) => { + return chatThreadClient.deleteMessage(result.id); + }) + .catch((error) => console.error(error)); + }), + ); + + it( + "successfully listens to chatThreadCreatedEvents", + { timeout: 8000 }, + () => + new Promise((resolve) => { + function listener(): void { + resolve(); + } + + chatClient.on("chatThreadCreated", listener); + + // Create thread + const request = { + topic: "test create thread event", + participants: [{ id: testUser }], + }; + chatClient.createChatThread(request); + }), + ); + + it( + "successfully listens to chatThreadDeletedEvents", + { timeout: 8000 }, + () => + new Promise((resolve) => { + function listener(): void { + resolve(); + } + + chatClient.on("chatThreadDeleted", listener); + + // Delete thread + const request = { + topic: "test delete thread event", + participants: [{ id: testUser }], + }; + chatClient + .createChatThread(request) + .then((result) => { + return chatClient.deleteChatThread(result.chatThread?.id as string); + }) + .catch((error) => console.error(error)); + }), + ); + + it( + "successfully listens to chatThreadPropertiesUpdatedEvents", + { timeout: 8000 }, + () => + new Promise((resolve) => { + function listener(): void { + resolve(); + } + + chatClient.on("chatThreadPropertiesUpdated", listener); + + // Update thread + chatThreadClient.updateTopic("updated topic"); + }), + ); + + it( + "successfully listens to participantsAddedEvents", + { timeout: 8000 }, + () => + new Promise((resolve) => { + function listener(): void { + resolve(); + } + + chatClient.on("participantsAdded", listener); + + // Add participant + const request = { + participants: [{ id: testUser2 }], + }; + chatThreadClient.addParticipants(request); + }), + ); + + it( + "successfully listens to participantsRemovedEvents", + { timeout: 8000 }, + () => + new Promise((resolve) => { + function listener(): void { + resolve(); + } + + chatClient.on("participantsRemoved", listener); + + // Remove participant + chatThreadClient.removeParticipant(testUser2); + }), + ); + + // TODO: Read receipt notification is timing out even with increased timeout + it( + "successfully listens to readReceiptReceivedEvents", + { timeout: 8000, skip: true }, + () => + new Promise((resolve) => { + function listener(): void { + resolve(); + } + + chatClient.on("readReceiptReceived", listener); + + // Send read receipt + const message = { content: "content" }; + chatThreadClient + .sendMessage(message) + .then((result) => { + return chatThreadClient.sendReadReceipt({ + chatMessageId: result.id, + }); + }) + .catch((error) => console.error(error)); + }), + ); }); }); diff --git a/sdk/communication/communication-chat/test/public/chatThreadClient.spec.ts b/sdk/communication/communication-chat/test/public/chatThreadClient.spec.ts index 69a0de1a2d55..d1bf9fad5445 100644 --- a/sdk/communication/communication-chat/test/public/chatThreadClient.spec.ts +++ b/sdk/communication/communication-chat/test/public/chatThreadClient.spec.ts @@ -1,17 +1,17 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -/* eslint-disable @typescript-eslint/no-invalid-this */ import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { ChatClient, ChatMessage, ChatThreadClient } from "../../src"; -import { createChatClient, createRecorder, createTestUser } from "./utils/recordedClient"; +import type { ChatClient, ChatMessage, ChatThreadClient } from "../../src/index.js"; +import { createChatClient, createRecorder, createTestUser } from "./utils/recordedClient.js"; import type { CommunicationIdentifier } from "@azure/communication-common"; import { getIdentifierKind } from "@azure/communication-common"; -import type { Context } from "mocha"; import type { CommunicationUserToken } from "@azure/communication-identity"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; +import { isNodeLike } from "@azure/core-util"; -describe("ChatThreadClient", function () { +// TODO: Re-record the tests with the new recorder +describe("ChatThreadClient", { skip: !isNodeLike }, () => { let messageId: string; let recorder: Recorder; let chatClient: ChatClient; @@ -22,8 +22,8 @@ describe("ChatThreadClient", function () { let testUser2: CommunicationIdentifier; let testUser3: CommunicationIdentifier; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this.currentTest); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); if (!communicationUserToken) { communicationUserToken = await createTestUser(recorder); await recorder.setMatcher("HeaderlessMatcher"); @@ -33,14 +33,14 @@ describe("ChatThreadClient", function () { chatThreadClient = chatClient.getChatThreadClient(threadId); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); /** * This test intialized chatThreadClient for other tests with recorder enabled */ - it("successfully initializes chatThreadClient", async function () { + it("successfully initializes chatThreadClient", { timeout: 8000 }, async () => { // Create ChatClient testUser = communicationUserToken.user; testUser2 = (await createTestUser(recorder)).user; @@ -53,15 +53,15 @@ describe("ChatThreadClient", function () { const chatThreadResult = await chatClient.createChatThread(request, options); threadId = chatThreadResult.chatThread?.id as string; - }).timeout(8000); + }); - it("successfully gets the thread properties", async function () { + it("successfully gets the thread properties", async () => { const thread = await chatThreadClient.getProperties(); assert.equal(threadId, thread.id); }); - it("successfully updates the thread topic", async function () { + it("successfully updates the thread topic", async () => { const topic = "new topic"; await chatThreadClient.updateTopic(topic); @@ -69,7 +69,7 @@ describe("ChatThreadClient", function () { assert.equal(topic, thread.topic); }); - it("successfully sends a message", async function () { + it("successfully sends a message", async () => { const request = { content: `content` }; const options = { metadata: { tags: "sometag" } }; const result = await chatThreadClient.sendMessage(request, options); @@ -78,17 +78,17 @@ describe("ChatThreadClient", function () { messageId = result.id!; }); - it("successfully sends typing notification", async function () { + it("successfully sends typing notification", async () => { const result = await chatThreadClient.sendTypingNotification(); assert.isTrue(result); }); - it("successfully sends read receipt", async function () { + it("successfully sends read receipt", async () => { await chatThreadClient.sendReadReceipt({ chatMessageId: messageId }); }); - it("successfully retrieves a message", async function () { + it("successfully retrieves a message", async () => { const message = await chatThreadClient.getMessage(messageId); assert.isNotNull(message); @@ -96,7 +96,7 @@ describe("ChatThreadClient", function () { assert.isDefined(message.metadata?.tags); }); - it("successfully lists messages one by one and by page", async function () { + it("successfully lists messages one by one and by page", async () => { const receivedItems: ChatMessage[] = []; for await (const message of chatThreadClient.listMessages()) { receivedItems.push(message); @@ -119,18 +119,18 @@ describe("ChatThreadClient", function () { assert.deepEqual(receivedPagedItems, receivedItems); }); - it("successfully deletes a message", async function () { + it("successfully deletes a message", async () => { await chatThreadClient.deleteMessage(messageId); }); - it("successfully adds participants", async function () { + it("successfully adds participants", async () => { testUser3 = (await createTestUser(recorder)).user; const request = { participants: [{ id: testUser3 }] }; await chatThreadClient.addParticipants(request); }); - it("successfully lists participants", async function () { + it("successfully lists participants", async () => { const list: string[] = []; for await (const participant of chatThreadClient.listParticipants()) { const id = getIdentifierKind(participant.id); @@ -151,11 +151,11 @@ describe("ChatThreadClient", function () { } }); - it("successfully remove a participant", async function () { + it("successfully remove a participant", async () => { await chatThreadClient.removeParticipant(testUser2); }); - it("successfully lists read receipts", async function () { + it("successfully lists read receipts", async () => { const list: string[] = []; for await (const receipt of chatThreadClient.listReadReceipts()) { list.push(receipt.chatMessageId!); diff --git a/sdk/communication/communication-chat/test/public/utils/connectionUtils.ts b/sdk/communication/communication-chat/test/public/utils/connectionUtils.ts index 50c6b8245229..5200c78a6a74 100644 --- a/sdk/communication/communication-chat/test/public/utils/connectionUtils.ts +++ b/sdk/communication/communication-chat/test/public/utils/connectionUtils.ts @@ -1,16 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { isNode } from "@azure/core-util"; +import { getToken } from "./getToken.js"; export const baseUri = "https://contoso.api.fake"; -declare function btoa(stringToEncode: string): string; - export const generateToken = (): string => { const validForMinutes = 60; const expiresOn = (Date.now() + validForMinutes * 60 * 1000) / 1000; const tokenString = JSON.stringify({ exp: expiresOn }); - const base64Token = isNode ? Buffer.from(tokenString).toString("base64") : btoa(tokenString); + const base64Token = getToken(tokenString); return `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.${base64Token}.adM-ddBZZlQ1WlN3pdPBOF5G4Wh9iZpxNP_fSvpF4cWs`; }; diff --git a/sdk/communication/communication-chat/test/public/utils/getToken-browser.mts b/sdk/communication/communication-chat/test/public/utils/getToken-browser.mts new file mode 100644 index 000000000000..537f640b72d8 --- /dev/null +++ b/sdk/communication/communication-chat/test/public/utils/getToken-browser.mts @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +export function getToken(tokenString: string): string { + return btoa(tokenString); +} diff --git a/sdk/communication/communication-chat/test/public/utils/getToken.ts b/sdk/communication/communication-chat/test/public/utils/getToken.ts new file mode 100644 index 000000000000..3fda5484c077 --- /dev/null +++ b/sdk/communication/communication-chat/test/public/utils/getToken.ts @@ -0,0 +1,8 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { Buffer } from "node:buffer"; + +export function getToken(tokenString: string): string { + return Buffer.from(tokenString).toString("base64"); +} diff --git a/sdk/communication/communication-chat/test/public/utils/recordedClient.ts b/sdk/communication/communication-chat/test/public/utils/recordedClient.ts index c264f74f5871..da7a730b5c39 100644 --- a/sdk/communication/communication-chat/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-chat/test/public/utils/recordedClient.ts @@ -1,16 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Test } from "mocha"; - -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, assertEnvironmentVariable, env, isPlaybackMode, } from "@azure-tools/test-recorder"; -import { ChatClient } from "../../../src"; +import { ChatClient } from "../../../src/index.js"; import type { CommunicationUserIdentifier } from "@azure/communication-common"; import { AzureCommunicationTokenCredential, @@ -18,7 +16,7 @@ import { } from "@azure/communication-common"; import type { CommunicationUserToken } from "@azure/communication-identity"; import { CommunicationIdentityClient } from "@azure/communication-identity"; -import { generateToken } from "./connectionUtils"; +import { generateToken } from "./connectionUtils.js"; import { NoOpCredential } from "@azure-tools/test-credential"; export interface RecordedClient { @@ -67,7 +65,7 @@ export async function deleteTestUser(testUser: CommunicationUserIdentifier): Pro } } -export async function createRecorder(context: Test | undefined): Promise { +export async function createRecorder(context: TestInfo | undefined): Promise { const recorder = new Recorder(context); await recorder.start(recorderOptions); return recorder; diff --git a/sdk/communication/communication-chat/tsconfig.browser.config.json b/sdk/communication/communication-chat/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/communication/communication-chat/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/communication/communication-chat/tsconfig.json b/sdk/communication/communication-chat/tsconfig.json index 0b6b6563bf0f..f056035f201d 100644 --- a/sdk/communication/communication-chat/tsconfig.json +++ b/sdk/communication/communication-chat/tsconfig.json @@ -1,11 +1,20 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "paths": { "@azure/communication-chat": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/communication/communication-chat/vitest.browser.config.ts b/sdk/communication/communication-chat/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/communication/communication-chat/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-chat/vitest.config.ts b/sdk/communication/communication-chat/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/communication/communication-chat/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-email/api-extractor.json b/sdk/communication/communication-email/api-extractor.json index e27476cd788c..0d4fb29a2b04 100644 --- a/sdk/communication/communication-email/api-extractor.json +++ b/sdk/communication/communication-email/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -12,7 +12,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/communication-email.d.ts" + "publicTrimmedFilePath": "dist/communication-email.d.ts" }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/communication/communication-email/karma.conf.js b/sdk/communication/communication-email/karma.conf.js deleted file mode 100644 index 64bb1597db5c..000000000000 --- a/sdk/communication/communication-email/karma.conf.js +++ /dev/null @@ -1,126 +0,0 @@ -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); - -require("dotenv").config(); - -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - ], - - // list of files / patterns to load in the browser - files: ["dist-test/index.browser.js"], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - //"dist-test/index.browser.js": ["coverage"] - }, - - // inject following environment values into browser testing with window.__env__ - // environment values MUST be exported or set with same console running "karma start" - // https://www.npmjs.com/package/karma-env-preprocessor - envPreprocessor: [ - "COMMUNICATION_CONNECTION_STRING_EMAIL", - "RECIPIENT_ADDRESS", - "SENDER_ADDRESS", - "TEST_MODE", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // start these browsers - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - // 'ChromeHeadless', 'Chrome', 'Firefox', 'Edge', 'IE' - browsers: ["HeadlessChrome"], - - customLaunchers: { - HeadlessChrome: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: true, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 600000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/communication/communication-email/package.json b/sdk/communication/communication-email/package.json index 416b1188937c..46f6dbde9809 100644 --- a/sdk/communication/communication-email/package.json +++ b/sdk/communication/communication-email/package.json @@ -5,22 +5,22 @@ "author": "Microsoft Corporation", "license": "MIT", "sdk-type": "client", - "main": "dist/index.js", - "module": "dist-esm/src/index.js", - "types": "types/communication-email.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle --browser-test=false && dev-tool run extract-api", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", "build:samples": "dev-tool samples publish -f", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", - "extract-api": "tsc -p . && dev-tool run extract-api", + "extract-api": "dev-tool run build-package && dev-tool run extract-api", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -28,14 +28,12 @@ "test:browser": "npm run build:test && npm run unit-test:browser && npm run integration-test:browser", "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "files": [ "dist/", - "dist-esm/", - "types/communication-email.d.ts", "README.md", "LICENSE" ], @@ -47,41 +45,28 @@ "email" ], "dependencies": { - "@azure/communication-common": "^2.2.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-client": "^1.3.2", + "@azure/communication-common": "^2.3.1", + "@azure/core-auth": "^1.9.0", + "@azure/core-client": "^1.9.2", "@azure/core-lro": "^2.5.0", - "@azure/core-rest-pipeline": "^1.8.0", - "@azure/core-util": "^1.6.1", - "@azure/logger": "^1.0.0", - "tslib": "^1.9.3" + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/core-util": "^1.11.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-utils": "^1.0.1", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@types/chai": "^4.1.6", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "chai": "^4.2.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-json-preprocessor": "^0.3.3", - "karma-json-to-file-reporter": "^1.0.1", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.48.2", + "typescript": "~5.6.2", + "vitest": "^2.1.5" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/communication-email/", "bugs": { @@ -103,5 +88,43 @@ "Azure Communication Services Resource": "https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource", "Email Communication Services Resource": "https://aka.ms/acsemail/createemailresource" } + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "browser": "./dist/browser/index.js", + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/communication/communication-email/src/emailClient.ts b/sdk/communication/communication-email/src/emailClient.ts index b22fd75fc12d..7e2c071b0b98 100644 --- a/sdk/communication/communication-email/src/emailClient.ts +++ b/sdk/communication/communication-email/src/emailClient.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { EmailClientOptions, EmailMessage, EmailSendOptionalParams } from "./models"; +import type { EmailClientOptions, EmailMessage, EmailSendOptionalParams } from "./models.js"; import type { KeyCredential, TokenCredential } from "@azure/core-auth"; import { isTokenCredential } from "@azure/core-auth"; import type { PollerLike, PollOperationState } from "@azure/core-lro"; @@ -10,10 +10,10 @@ import { isKeyCredential, parseClientArguments, } from "@azure/communication-common"; -import { EmailRestApiClient } from "./generated/src/emailRestApiClient"; +import { EmailRestApiClient } from "./generated/src/emailRestApiClient.js"; import type { InternalPipelineOptions } from "@azure/core-rest-pipeline"; -import { logger } from "./logger"; -import type { EmailSendResponse } from "./generated/src"; +import { logger } from "./logger.js"; +import type { EmailSendResponse } from "./generated/src/index.js"; /** * Checks whether the type of a value is EmailClientOptions or not. diff --git a/sdk/communication/communication-email/src/generated/src/emailRestApiClient.ts b/sdk/communication/communication-email/src/generated/src/emailRestApiClient.ts index 477d93633021..856a2319bd43 100644 --- a/sdk/communication/communication-email/src/generated/src/emailRestApiClient.ts +++ b/sdk/communication/communication-email/src/generated/src/emailRestApiClient.ts @@ -12,9 +12,9 @@ import { PipelineResponse, SendRequest } from "@azure/core-rest-pipeline"; -import { EmailImpl } from "./operations"; -import { Email } from "./operationsInterfaces"; -import { EmailRestApiClientOptionalParams } from "./models"; +import { EmailImpl } from "./operations/index.js"; +import { Email } from "./operationsInterfaces/index.js"; +import { EmailRestApiClientOptionalParams } from "./models/index.js"; export class EmailRestApiClient extends coreClient.ServiceClient { endpoint: string; diff --git a/sdk/communication/communication-email/src/generated/src/index.ts b/sdk/communication/communication-email/src/generated/src/index.ts index a824fdd2f59b..4a35a8d24f71 100644 --- a/sdk/communication/communication-email/src/generated/src/index.ts +++ b/sdk/communication/communication-email/src/generated/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { EmailRestApiClient } from "./emailRestApiClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { EmailRestApiClient } from "./emailRestApiClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/communication/communication-email/src/generated/src/models/parameters.ts b/sdk/communication/communication-email/src/generated/src/models/parameters.ts index f136a47bda68..b753b729ec6f 100644 --- a/sdk/communication/communication-email/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-email/src/generated/src/models/parameters.ts @@ -11,7 +11,7 @@ import { OperationURLParameter, OperationQueryParameter } from "@azure/core-client"; -import { EmailMessage as EmailMessageMapper } from "../models/mappers"; +import { EmailMessage as EmailMessageMapper } from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/communication/communication-email/src/generated/src/operations/email.ts b/sdk/communication/communication-email/src/generated/src/operations/email.ts index a5a36f3d5683..b445a98e9fdd 100644 --- a/sdk/communication/communication-email/src/generated/src/operations/email.ts +++ b/sdk/communication/communication-email/src/generated/src/operations/email.ts @@ -6,20 +6,20 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Email } from "../operationsInterfaces"; +import { Email } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { EmailRestApiClient } from "../emailRestApiClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { EmailRestApiClient } from "../emailRestApiClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { EmailGetSendResultOptionalParams, EmailGetSendResultResponse, EmailMessage, EmailSendOptionalParams, EmailSendResponse -} from "../models"; +} from "../models/index.js"; /** Class containing Email operations. */ export class EmailImpl implements Email { diff --git a/sdk/communication/communication-email/src/generated/src/operations/index.ts b/sdk/communication/communication-email/src/generated/src/operations/index.ts index b9bab2d9d16d..bac350e31d1b 100644 --- a/sdk/communication/communication-email/src/generated/src/operations/index.ts +++ b/sdk/communication/communication-email/src/generated/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./email"; +export * from "./email.js"; diff --git a/sdk/communication/communication-email/src/generated/src/operationsInterfaces/email.ts b/sdk/communication/communication-email/src/generated/src/operationsInterfaces/email.ts index 1773ab6709ef..50dc30bdbdef 100644 --- a/sdk/communication/communication-email/src/generated/src/operationsInterfaces/email.ts +++ b/sdk/communication/communication-email/src/generated/src/operationsInterfaces/email.ts @@ -13,7 +13,7 @@ import { EmailMessage, EmailSendOptionalParams, EmailSendResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a Email. */ export interface Email { diff --git a/sdk/communication/communication-email/src/generated/src/operationsInterfaces/index.ts b/sdk/communication/communication-email/src/generated/src/operationsInterfaces/index.ts index b9bab2d9d16d..bac350e31d1b 100644 --- a/sdk/communication/communication-email/src/generated/src/operationsInterfaces/index.ts +++ b/sdk/communication/communication-email/src/generated/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./email"; +export * from "./email.js"; diff --git a/sdk/communication/communication-email/src/index.ts b/sdk/communication/communication-email/src/index.ts index a0ff08fa82bb..4c0a82202a9f 100644 --- a/sdk/communication/communication-email/src/index.ts +++ b/sdk/communication/communication-email/src/index.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export * from "./emailClient"; -export * from "./models"; +export * from "./emailClient.js"; +export * from "./models.js"; diff --git a/sdk/communication/communication-email/src/models.ts b/sdk/communication/communication-email/src/models.ts index 867ac18fe968..dda30a61a786 100644 --- a/sdk/communication/communication-email/src/models.ts +++ b/sdk/communication/communication-email/src/models.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import type { CommonClientOptions, OperationOptions } from "@azure/core-client"; -import type { EmailRecipients, EmailAttachment, EmailAddress } from "./models"; +import type { EmailRecipients, EmailAttachment, EmailAddress } from "./models.js"; /** * Client options used to configure Email Client API requests. @@ -71,4 +71,4 @@ export { ErrorDetail, ErrorAdditionalInfo, KnownEmailSendStatus, -} from "./generated/src/models"; +} from "./generated/src/models/index.js"; diff --git a/sdk/communication/communication-email/test/public/emailClient.spec.ts b/sdk/communication/communication-email/test/public/emailClient.spec.ts index 29f32b827ed7..2a2c268eb4d4 100644 --- a/sdk/communication/communication-email/test/public/emailClient.spec.ts +++ b/sdk/communication/communication-email/test/public/emailClient.spec.ts @@ -1,29 +1,28 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { EmailClient, EmailMessage } from "../../src"; -import { KnownEmailSendStatus } from "../../src"; +import type { EmailClient, EmailMessage } from "../../src/index.js"; +import { KnownEmailSendStatus } from "../../src/index.js"; import type { Recorder } from "@azure-tools/test-recorder"; import { env } from "@azure-tools/test-recorder"; -import type { Context } from "mocha"; -import { assert } from "chai"; -import { createRecordedEmailClientWithConnectionString } from "./utils/recordedClient"; +import { createRecordedEmailClientWithConnectionString } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe(`EmailClient [Playback/Live]`, function () { +describe(`EmailClient [Playback/Live]`, () => { let recorder: Recorder; let client: EmailClient; - beforeEach(async function (this: Context) { - ({ client, recorder } = await createRecordedEmailClientWithConnectionString(this)); + beforeEach(async (ctx) => { + ({ client, recorder } = await createRecordedEmailClientWithConnectionString(ctx)); }); - afterEach(async function (this: Context) { - if (!this.currentTest?.isPending()) { + afterEach(async (ctx) => { + if (!ctx.task.pending) { await recorder.stop(); } }); - it("successfully sends an email to a single recipient", async function () { + it("successfully sends an email to a single recipient", { timeout: 120000 }, async () => { const emailMessage: EmailMessage = { senderAddress: env.SENDER_ADDRESS || "", recipients: { @@ -45,49 +44,53 @@ describe(`EmailClient [Playback/Live]`, function () { const response = await poller.pollUntilDone(); assert.isTrue(response.status === KnownEmailSendStatus.Succeeded); - }).timeout(120000); + }); - it("successfully sends an email to multiple types of recipients", async function () { - const emailMessage: EmailMessage = { - senderAddress: env.SENDER_ADDRESS ?? "", - recipients: { - to: [ - { - address: env.RECIPIENT_ADDRESS ?? "", - displayName: "someRecipient", - }, - { - address: env.RECIPIENT_ADDRESS ?? "", - displayName: "someRecipient", - }, - ], - cc: [ - { - address: env.RECIPIENT_ADDRESS ?? "", - displayName: "someRecipient", - }, - ], - bcc: [ - { - address: env.RECIPIENT_ADDRESS ?? "", - displayName: "someRecipient", - }, - ], - }, - content: { - subject: "someSubject", - plainText: "somePlainTextBody", - html: "

someHtmlBody", - }, - }; + it( + "successfully sends an email to multiple types of recipients", + { timeout: 120000 }, + async () => { + const emailMessage: EmailMessage = { + senderAddress: env.SENDER_ADDRESS ?? "", + recipients: { + to: [ + { + address: env.RECIPIENT_ADDRESS ?? "", + displayName: "someRecipient", + }, + { + address: env.RECIPIENT_ADDRESS ?? "", + displayName: "someRecipient", + }, + ], + cc: [ + { + address: env.RECIPIENT_ADDRESS ?? "", + displayName: "someRecipient", + }, + ], + bcc: [ + { + address: env.RECIPIENT_ADDRESS ?? "", + displayName: "someRecipient", + }, + ], + }, + content: { + subject: "someSubject", + plainText: "somePlainTextBody", + html: "

someHtmlBody", + }, + }; - const poller = await client.beginSend(emailMessage); - const response = await poller.pollUntilDone(); + const poller = await client.beginSend(emailMessage); + const response = await poller.pollUntilDone(); - assert.isTrue(response.status === KnownEmailSendStatus.Succeeded); - }).timeout(120000); + assert.isTrue(response.status === KnownEmailSendStatus.Succeeded); + }, + ); - it("successfully sends an email with an attachment", async function () { + it("successfully sends an email with an attachment", { timeout: 120000 }, async () => { const emailMessage: EmailMessage = { senderAddress: env.SENDER_ADDRESS ?? "", recipients: { @@ -116,9 +119,9 @@ describe(`EmailClient [Playback/Live]`, function () { const response = await poller.pollUntilDone(); assert.isTrue(response.status === KnownEmailSendStatus.Succeeded); - }).timeout(120000); + }); - it("successfully sends an email with an inline attachment", async function () { + it("successfully sends an email with an inline attachment", { timeout: 120000 }, async () => { const emailMessage: EmailMessage = { senderAddress: env.SENDER_ADDRESS ?? "", recipients: { @@ -148,5 +151,5 @@ describe(`EmailClient [Playback/Live]`, function () { const response = await poller.pollUntilDone(); assert.isTrue(response.status === KnownEmailSendStatus.Succeeded); - }).timeout(120000); + }); }); diff --git a/sdk/communication/communication-email/test/public/utils/recordedClient.ts b/sdk/communication/communication-email/test/public/utils/recordedClient.ts index 5f6c0ce20a25..0365edf3b4cd 100644 --- a/sdk/communication/communication-email/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-email/test/public/utils/recordedClient.ts @@ -1,10 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. - -import type { Context, Test } from "mocha"; -import type { SanitizerOptions } from "@azure-tools/test-recorder"; +import type { SanitizerOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, env } from "@azure-tools/test-recorder"; -import { EmailClient } from "../../../src"; +import { EmailClient } from "../../../src/index.js"; export interface RecordedEmailClient { client: EmailClient; @@ -47,7 +45,7 @@ const sanitizerOptions: SanitizerOptions = { ], }; -export async function createRecorder(context: Test | undefined): Promise { +export async function createRecorder(context: TestInfo | undefined): Promise { const recorder = new Recorder(context); await recorder.start({ envSetupForPlayback }); await recorder.addSanitizers(sanitizerOptions, ["record", "playback"]); @@ -61,9 +59,9 @@ export async function createRecorder(context: Test | undefined): Promise { - const recorder = await createRecorder(context.currentTest); + const recorder = await createRecorder(context); const client = new EmailClient( env.COMMUNICATION_CONNECTION_STRING_EMAIL ?? "", diff --git a/sdk/communication/communication-email/tsconfig.browser.config.json b/sdk/communication/communication-email/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/communication/communication-email/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/communication/communication-email/tsconfig.json b/sdk/communication/communication-email/tsconfig.json index 2cd0ee859621..3a3ac9f7007e 100644 --- a/sdk/communication/communication-email/tsconfig.json +++ b/sdk/communication/communication-email/tsconfig.json @@ -1,11 +1,12 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "paths": { "@azure/communication-email": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": ["src/**/*.ts", "src/**/*.mts", "src/**/*.cts", "samples-dev/**/*.ts", "test/**/*.ts"] } diff --git a/sdk/communication/communication-email/vitest.browser.config.ts b/sdk/communication/communication-email/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/communication/communication-email/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-email/vitest.config.ts b/sdk/communication/communication-email/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/communication/communication-email/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-identity/.nycrc b/sdk/communication/communication-identity/.nycrc deleted file mode 100644 index 29174b423579..000000000000 --- a/sdk/communication/communication-identity/.nycrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "include": ["dist-esm/src/**/*.js"], - "exclude": ["**/*.d.ts", "dist-esm/src/generated/*"], - "reporter": ["text-summary", "html", "cobertura"], - "exclude-after-remap": false, - "sourceMap": true, - "produce-source-map": true, - "instrument": true, - "all": true -} diff --git a/sdk/communication/communication-identity/api-extractor.json b/sdk/communication/communication-identity/api-extractor.json index 373e39769308..4c6770d2fae1 100644 --- a/sdk/communication/communication-identity/api-extractor.json +++ b/sdk/communication/communication-identity/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/communication-identity.d.ts" + "publicTrimmedFilePath": "dist/communication-identity.d.ts" }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/communication/communication-identity/karma.conf.js b/sdk/communication/communication-identity/karma.conf.js deleted file mode 100644 index ddf5f8d0dae5..000000000000 --- a/sdk/communication/communication-identity/karma.conf.js +++ /dev/null @@ -1,128 +0,0 @@ -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); - -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - ], - - // list of files / patterns to load in the browser - files: ["dist-test/index.browser.js"], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - //"dist-test/index.browser.js": ["coverage"] - }, - - // inject following environment values into browser testing with window.__env__ - // environment values MUST be exported or set with same console running "karma start" - // https://www.npmjs.com/package/karma-env-preprocessor - envPreprocessor: [ - "TEST_MODE", - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING", - "INCLUDE_PHONENUMBER_TESTS", - "COMMUNICATION_ENDPOINT", - "AZURE_CLIENT_ID", - "AZURE_CLIENT_SECRET", - "AZURE_TENANT_ID", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // start these browsers - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - // 'ChromeHeadless', 'Chrome', 'Firefox', 'Edge', 'IE' - browsers: ["HeadlessChrome"], - - customLaunchers: { - HeadlessChrome: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: true, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 600000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/communication/communication-identity/package.json b/sdk/communication/communication-identity/package.json index a07ee2b7c4d9..3200a1209378 100644 --- a/sdk/communication/communication-identity/package.json +++ b/sdk/communication/communication-identity/package.json @@ -3,27 +3,26 @@ "version": "1.3.2", "description": "SDK for Azure Communication service which facilitates user token administration.", "sdk-type": "client", - "main": "dist/index.js", - "module": "dist-esm/src/index.js", - "types": "types/communication-identity.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:clean": "rush update --recheck && rush rebuild && npm run build", - "build:node": "tsc -p . && dev-tool run bundle", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:node": "dev-tool run build-package && dev-tool run bundle", "build:samples": "echo Obsolete.", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-* temp types *.tgz *.log", "execute:js-samples": "dev-tool samples run dist-samples/javascript", "execute:samples": "dev-tool samples run samples-dev", "execute:ts-samples": "dev-tool samples run dist-samples/typescript/dist/dist-samples/typescript/src/", - "extract-api": "tsc -p . && dev-tool run extract-api", + "extract-api": "dev-tool run build-package && dev-tool run extract-api", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 --exclude 'dist-esm/test/**/browser/*.spec.js' 'dist-esm/test/**/*.spec.js'", + "integration-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json README.md src test", "lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -32,8 +31,8 @@ "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node", "test:watch": "npm run test -- --watch --reporter min", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "//metadata": { @@ -71,8 +70,6 @@ }, "files": [ "dist/", - "dist-esm/src/", - "types/communication-identity.d.ts", "README.md", "LICENSE" ], @@ -94,49 +91,72 @@ "sideEffects": false, "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "dependencies": { - "@azure/abort-controller": "^2.0.0", + "@azure/abort-controller": "^2.1.2", "@azure/communication-common": "^2.3.1", - "@azure/core-auth": "^1.3.2", - "@azure/core-client": "^1.6.0", + "@azure/core-auth": "^1.9.0", + "@azure/core-client": "^1.9.2", "@azure/core-lro": "^2.2.0", - "@azure/core-paging": "^1.1.1", - "@azure/core-rest-pipeline": "^1.3.0", - "@azure/core-tracing": "^1.0.0", - "@azure/logger": "^1.0.0", + "@azure/core-paging": "^1.6.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/core-tracing": "^1.2.0", + "@azure/logger": "^1.1.4", "events": "^3.0.0", "tslib": "^2.2.0" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-utils": "^1.0.1", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/core-util": "^1.6.1", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^4.0.1", - "@azure/msal-node": "^2.9.2", - "@types/chai": "^4.1.6", - "@types/mocha": "^10.0.0", + "@azure/identity": "^4.5.0", + "@azure/msal-node": "^2.16.1", "@types/node": "^18.0.0", - "@types/sinon": "^17.0.0", - "chai": "^4.2.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "inherits": "^2.0.3", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "process": "^0.11.10", - "sinon": "^17.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.48.2", + "typescript": "~5.6.2", + "vitest": "^2.1.5" + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "browser": "./dist/browser/index.js", + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/communication/communication-identity/samples-dev/createUserAndToken.ts b/sdk/communication/communication-identity/samples-dev/createUserAndToken.ts index 861b5bc89769..fb53e84d40e7 100644 --- a/sdk/communication/communication-identity/samples-dev/createUserAndToken.ts +++ b/sdk/communication/communication-identity/samples-dev/createUserAndToken.ts @@ -6,7 +6,7 @@ */ import { CommunicationIdentityClient, TokenScope } from "@azure/communication-identity"; -import { CreateUserAndTokenOptions } from "../src"; +import { CreateUserAndTokenOptions } from "../src/index.js"; // Load the .env file if it exists import * as dotenv from "dotenv"; diff --git a/sdk/communication/communication-identity/samples-dev/issueToken.ts b/sdk/communication/communication-identity/samples-dev/issueToken.ts index d3e0ba0d2262..538db0499016 100644 --- a/sdk/communication/communication-identity/samples-dev/issueToken.ts +++ b/sdk/communication/communication-identity/samples-dev/issueToken.ts @@ -11,7 +11,7 @@ import { TokenScope, } from "@azure/communication-identity"; -import { GetTokenOptions } from "../src"; +import { GetTokenOptions } from "../src/index.js"; // Load the .env file if it exists import * as dotenv from "dotenv"; diff --git a/sdk/communication/communication-identity/src/communicationIdentityClient.ts b/sdk/communication/communication-identity/src/communicationIdentityClient.ts index 11ea37113735..3c3b0f13c77a 100644 --- a/sdk/communication/communication-identity/src/communicationIdentityClient.ts +++ b/sdk/communication/communication-identity/src/communicationIdentityClient.ts @@ -9,7 +9,7 @@ import type { CreateUserAndTokenOptions, GetTokenOptions, TokenScope, -} from "./models"; +} from "./models.js"; import type { CommunicationUserIdentifier } from "@azure/communication-common"; import { createCommunicationAuthPolicy, @@ -19,9 +19,9 @@ import { import type { InternalClientPipelineOptions, OperationOptions } from "@azure/core-client"; import type { KeyCredential, TokenCredential } from "@azure/core-auth"; import { isTokenCredential } from "@azure/core-auth"; -import { IdentityRestClient } from "./generated/src/identityRestClient"; -import { logger } from "./common/logger"; -import { tracingClient } from "./generated/src/tracing"; +import { IdentityRestClient } from "./generated/src/identityRestClient.js"; +import { logger } from "./common/logger.js"; +import { tracingClient } from "./generated/src/tracing.js"; const isCommunicationIdentityClientOptions = ( options: any, diff --git a/sdk/communication/communication-identity/src/generated/src/identityRestClient.ts b/sdk/communication/communication-identity/src/generated/src/identityRestClient.ts index 2694861084a4..1b8322501a74 100644 --- a/sdk/communication/communication-identity/src/generated/src/identityRestClient.ts +++ b/sdk/communication/communication-identity/src/generated/src/identityRestClient.ts @@ -12,9 +12,9 @@ import { PipelineResponse, SendRequest } from "@azure/core-rest-pipeline"; -import { CommunicationIdentityOperationsImpl } from "./operations"; -import { CommunicationIdentityOperations } from "./operationsInterfaces"; -import { IdentityRestClientOptionalParams } from "./models"; +import { CommunicationIdentityOperationsImpl } from "./operations/index.js"; +import { CommunicationIdentityOperations } from "./operationsInterfaces/index.js"; +import { IdentityRestClientOptionalParams } from "./models/index.js"; export class IdentityRestClient extends coreClient.ServiceClient { endpoint: string; diff --git a/sdk/communication/communication-identity/src/generated/src/index.ts b/sdk/communication/communication-identity/src/generated/src/index.ts index 47655697cd93..8b271d84ad95 100644 --- a/sdk/communication/communication-identity/src/generated/src/index.ts +++ b/sdk/communication/communication-identity/src/generated/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { IdentityRestClient } from "./identityRestClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { IdentityRestClient } from "./identityRestClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/communication/communication-identity/src/generated/src/models/parameters.ts b/sdk/communication/communication-identity/src/generated/src/models/parameters.ts index 76d37faa7914..7097302c040c 100644 --- a/sdk/communication/communication-identity/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-identity/src/generated/src/models/parameters.ts @@ -15,7 +15,7 @@ import { CommunicationIdentityCreateRequest as CommunicationIdentityCreateRequestMapper, TeamsUserExchangeTokenRequest as TeamsUserExchangeTokenRequestMapper, CommunicationIdentityAccessTokenRequest as CommunicationIdentityAccessTokenRequestMapper -} from "../models/mappers"; +} from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/sdk/communication/communication-identity/src/generated/src/operations/communicationIdentityOperations.ts b/sdk/communication/communication-identity/src/generated/src/operations/communicationIdentityOperations.ts index f12d59c5f440..ad24671409f9 100644 --- a/sdk/communication/communication-identity/src/generated/src/operations/communicationIdentityOperations.ts +++ b/sdk/communication/communication-identity/src/generated/src/operations/communicationIdentityOperations.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { tracingClient } from "../tracing"; -import { CommunicationIdentityOperations } from "../operationsInterfaces"; +import { tracingClient } from "../tracing.js"; +import { CommunicationIdentityOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { IdentityRestClient } from "../identityRestClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { IdentityRestClient } from "../identityRestClient.js"; import { CommunicationIdentityCreateOptionalParams, CommunicationIdentityCreateResponse, @@ -22,7 +22,7 @@ import { CommunicationIdentityTokenScope, CommunicationIdentityIssueAccessTokenOptionalParams, CommunicationIdentityIssueAccessTokenResponse -} from "../models"; +} from "../models/index.js"; /** Class containing CommunicationIdentityOperations operations. */ export class CommunicationIdentityOperationsImpl diff --git a/sdk/communication/communication-identity/src/generated/src/operations/index.ts b/sdk/communication/communication-identity/src/generated/src/operations/index.ts index c0e3fc741e5a..2c4ebd08eebf 100644 --- a/sdk/communication/communication-identity/src/generated/src/operations/index.ts +++ b/sdk/communication/communication-identity/src/generated/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./communicationIdentityOperations"; +export * from "./communicationIdentityOperations.js"; diff --git a/sdk/communication/communication-identity/src/generated/src/operationsInterfaces/communicationIdentityOperations.ts b/sdk/communication/communication-identity/src/generated/src/operationsInterfaces/communicationIdentityOperations.ts index 0f7afc177653..5f67f6e2fc12 100644 --- a/sdk/communication/communication-identity/src/generated/src/operationsInterfaces/communicationIdentityOperations.ts +++ b/sdk/communication/communication-identity/src/generated/src/operationsInterfaces/communicationIdentityOperations.ts @@ -16,7 +16,7 @@ import { CommunicationIdentityTokenScope, CommunicationIdentityIssueAccessTokenOptionalParams, CommunicationIdentityIssueAccessTokenResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a CommunicationIdentityOperations. */ export interface CommunicationIdentityOperations { diff --git a/sdk/communication/communication-identity/src/generated/src/operationsInterfaces/index.ts b/sdk/communication/communication-identity/src/generated/src/operationsInterfaces/index.ts index c0e3fc741e5a..2c4ebd08eebf 100644 --- a/sdk/communication/communication-identity/src/generated/src/operationsInterfaces/index.ts +++ b/sdk/communication/communication-identity/src/generated/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./communicationIdentityOperations"; +export * from "./communicationIdentityOperations.js"; diff --git a/sdk/communication/communication-identity/src/index.ts b/sdk/communication/communication-identity/src/index.ts index 7837fc8e0a34..8ab7b2c6ea6c 100644 --- a/sdk/communication/communication-identity/src/index.ts +++ b/sdk/communication/communication-identity/src/index.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export * from "./communicationIdentityClient"; -export * from "./models"; +export * from "./communicationIdentityClient.js"; +export * from "./models.js"; diff --git a/sdk/communication/communication-identity/test/public/communicationIdentityClient.mocked.spec.ts b/sdk/communication/communication-identity/test/public/communicationIdentityClient.mocked.spec.ts index 1fbc27f7fb36..1ada7d5d68de 100644 --- a/sdk/communication/communication-identity/test/public/communicationIdentityClient.mocked.spec.ts +++ b/sdk/communication/communication-identity/test/public/communicationIdentityClient.mocked.spec.ts @@ -3,38 +3,33 @@ import type { CommunicationUserIdentifier } from "@azure/communication-common"; import { isCommunicationUserIdentifier } from "@azure/communication-common"; -import { getTokenForTeamsUserHttpClient, getTokenHttpClient } from "./utils/mockHttpClients"; -import { CommunicationIdentityClient } from "../../src"; -import { TestCommunicationIdentityClient } from "./utils/testCommunicationIdentityClient"; -import { assert } from "chai"; -import { isNode } from "@azure/core-util"; -import sinon from "sinon"; - -describe("CommunicationIdentityClient [Mocked]", function () { +import { getTokenForTeamsUserHttpClient, getTokenHttpClient } from "./utils/mockHttpClients.js"; +import { CommunicationIdentityClient } from "../../src/index.js"; +import { TestCommunicationIdentityClient } from "./utils/testCommunicationIdentityClient.js"; +import { isNodeLike } from "@azure/core-util"; +import { describe, it, assert, expect, vi } from "vitest"; + +describe("CommunicationIdentityClient [Mocked]", () => { const dateHeader = "x-ms-date"; const user: CommunicationUserIdentifier = { communicationUserId: "ACS_ID" }; - afterEach(function () { - sinon.restore(); - }); - - it("creates instance of CommunicationIdentityClient", function () { + it("creates instance of CommunicationIdentityClient", () => { const client = new CommunicationIdentityClient( "endpoint=https://contoso.spool.azure.local;accesskey=banana", ); assert.instanceOf(client, CommunicationIdentityClient); }); - it("sets correct headers", async function () { + it("sets correct headers", async () => { const client = new TestCommunicationIdentityClient(); - const spy = sinon.spy(getTokenHttpClient, "sendRequest"); + const spy = vi.spyOn(getTokenHttpClient, "sendRequest"); await client.getTokenTest(user, ["chat"]); - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; - if (isNode) { + if (isNodeLike) { assert.equal(request.headers.get("host"), "contoso.spool.azure.local"); } @@ -46,27 +41,27 @@ describe("CommunicationIdentityClient [Mocked]", function () { ); }); - it("sends scopes in issue token request", async function () { + it("sends scopes in issue token request", async () => { const client = new TestCommunicationIdentityClient(); - const spy = sinon.spy(getTokenHttpClient, "sendRequest"); + const spy = vi.spyOn(getTokenHttpClient, "sendRequest"); const response = await client.getTokenTest(user, ["chat"]); assert.equal(response.token, "token"); assert.equal(response.expiresOn.toDateString(), new Date("2011/11/30").toDateString()); - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.deepEqual(JSON.parse(request.body as string), { scopes: ["chat"] }); }); - it("[getToken] excludes _response from results", async function () { + it("[getToken] excludes _response from results", async () => { const client = new TestCommunicationIdentityClient(); const response = await client.getTokenTest(user, ["chat"]); assert.isFalse("_response" in response); }); - it("[createUser] excludes _response from results", async function () { + it("[createUser] excludes _response from results", async () => { const client = new TestCommunicationIdentityClient(); const newUser = await client.createUserTest(); @@ -75,17 +70,17 @@ describe("CommunicationIdentityClient [Mocked]", function () { assert.isFalse("_response" in newUser); }); - it("exchanges Teams token for ACS token", async function () { + it("exchanges Teams token for ACS token", async () => { const client = new TestCommunicationIdentityClient(); - const spy = sinon.spy(getTokenForTeamsUserHttpClient, "sendRequest"); + const spy = vi.spyOn(getTokenForTeamsUserHttpClient, "sendRequest"); const response = await client.getTokenForTeamsUserTest("TeamsToken", "appId", "userId"); assert.equal(response.token, "token"); assert.equal(response.expiresOn.toDateString(), new Date("2011/11/30").toDateString()); - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); }); - it("[getTokenForTeamsUser] excludes _response from results", async function () { + it("[getTokenForTeamsUser] excludes _response from results", async () => { const client = new TestCommunicationIdentityClient(); const response = await client.getTokenForTeamsUserTest("TeamsToken", "appId", "userId"); diff --git a/sdk/communication/communication-identity/test/public/communicationIdentityClient.spec.ts b/sdk/communication/communication-identity/test/public/communicationIdentityClient.spec.ts index 31a5550d7821..b3c19a01f23c 100644 --- a/sdk/communication/communication-identity/test/public/communicationIdentityClient.spec.ts +++ b/sdk/communication/communication-identity/test/public/communicationIdentityClient.spec.ts @@ -8,14 +8,13 @@ import { isPlaybackMode } from "@azure-tools/test-recorder"; import { createRecordedCommunicationIdentityClient, createRecordedCommunicationIdentityClientWithToken, -} from "./utils/recordedClient"; -import type { CommunicationIdentityClient, TokenScope } from "../../src"; -import type { Context } from "mocha"; -import { assert } from "chai"; -import { matrix } from "@azure-tools/test-utils"; - -matrix([[true, false]], async function (useAad: boolean) { - describe(`CommunicationIdentityClient [Playback/Live]${useAad ? " [AAD]" : ""}`, function () { +} from "./utils/recordedClient.js"; +import type { CommunicationIdentityClient, TokenScope } from "../../src/index.js"; +import { matrix } from "@azure-tools/test-utils-vitest"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; + +matrix([[true, false]], async (useAad: boolean) => { + describe(`CommunicationIdentityClient [Playback/Live]${useAad ? " [AAD]" : ""}`, () => { let recorder: Recorder; let client: CommunicationIdentityClient; @@ -33,27 +32,27 @@ matrix([[true, false]], async function (useAad: boolean) { { scopes: ["chat.join", "voip.join"], description: "ChatJoinVoipJoinScopes" }, ]; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { if (useAad) { - ({ client, recorder } = await createRecordedCommunicationIdentityClientWithToken(this)); + ({ client, recorder } = await createRecordedCommunicationIdentityClientWithToken(ctx)); } else { - ({ client, recorder } = await createRecordedCommunicationIdentityClient(this)); + ({ client, recorder } = await createRecordedCommunicationIdentityClient(ctx)); } }); - afterEach(async function (this: Context) { - if (!this.currentTest?.isPending()) { + afterEach(async (ctx) => { + if (!ctx.task.pending) { await recorder.stop(); } }); - it("successfully creates a user", async function () { + it("successfully creates a user", async () => { const user: CommunicationUserIdentifier = await client.createUser(); assert.isString(user.communicationUserId); }); tokenScopeScenarios.forEach((scenario) => - it(`successfully creates a user and token <${scenario.description}>`, async function () { + it(`successfully creates a user and token <${scenario.description}>`, async () => { const { user: newUser, token, @@ -67,7 +66,7 @@ matrix([[true, false]], async function (useAad: boolean) { ); tokenScopeScenarios.forEach((scenario) => - it(`successfully gets a token for a user <${scenario.description}>`, async function () { + it(`successfully gets a token for a user <${scenario.description}>`, async () => { const user: CommunicationUserIdentifier = await client.createUser(); const { token, expiresOn } = await client.getToken(user, scenario.scopes as TokenScope[]); assert.isString(token); @@ -75,24 +74,24 @@ matrix([[true, false]], async function (useAad: boolean) { }), ); - it("successfully revokes tokens issued for a user", async function () { + it("successfully revokes tokens issued for a user", async () => { const { user } = await client.createUserAndToken(scopes); await client.revokeTokens(user); }); - it("successfully deletes a user", async function () { + it("successfully deletes a user", async () => { const user: CommunicationUserIdentifier = await client.createUser(); await client.deleteUser(user); }); - describe("Error Cases: ", async function () { + describe("Error Cases: ", async () => { const fakeUser: CommunicationUserIdentifier = { communicationUserId: isPlaybackMode() ? "sanitized" : "8:acs:00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000", }; - it("throws an error when attempting to issue a token without any scopes", async function () { + it("throws an error when attempting to issue a token without any scopes", async () => { try { const user: CommunicationUserIdentifier = await client.createUser(); await client.getToken(user, []); @@ -103,7 +102,7 @@ matrix([[true, false]], async function (useAad: boolean) { } }); - it("throws an error when attempting to issue a token for an invalid user", async function () { + it("throws an error when attempting to issue a token for an invalid user", async () => { try { await client.getToken(fakeUser, scopes); assert.fail("Should have thrown an error"); @@ -112,7 +111,7 @@ matrix([[true, false]], async function (useAad: boolean) { } }); - it("throws an error when attempting to revoke a token from an invalid user", async function () { + it("throws an error when attempting to revoke a token from an invalid user", async () => { try { await client.revokeTokens(fakeUser); assert.fail("Should have thrown an error"); @@ -121,7 +120,7 @@ matrix([[true, false]], async function (useAad: boolean) { } }); - it("throws an error when attempting to delete an invalid user", async function () { + it("throws an error when attempting to delete an invalid user", async () => { try { await client.deleteUser(fakeUser); assert.fail("Should have thrown an error"); diff --git a/sdk/communication/communication-identity/test/public/node/getTokenForTeamsUser.node.spec.ts b/sdk/communication/communication-identity/test/public/node/getTokenForTeamsUser.node.spec.ts index 10c40a4bc280..83a2b0990a02 100644 --- a/sdk/communication/communication-identity/test/public/node/getTokenForTeamsUser.node.spec.ts +++ b/sdk/communication/communication-identity/test/public/node/getTokenForTeamsUser.node.spec.ts @@ -5,158 +5,162 @@ import type { CommunicationAccessToken, CommunicationIdentityClient, GetTokenForTeamsUserOptions, -} from "../../../src"; +} from "../../../src/index.js"; import type { Recorder } from "@azure-tools/test-recorder"; import { env, isPlaybackMode } from "@azure-tools/test-recorder"; import { createRecordedCommunicationIdentityClient, createRecordedCommunicationIdentityClientWithToken, -} from "../utils/recordedClient"; +} from "../utils/recordedClient.js"; import { PublicClientApplication } from "@azure/msal-node"; -import { matrix } from "@azure-tools/test-utils"; -import type { Context } from "mocha"; -import { assert } from "chai"; +import { matrix } from "@azure-tools/test-utils-vitest"; +import { describe, it, assert, beforeEach, afterEach, beforeAll } from "vitest"; -matrix([[true, false]], async function (useAad) { - describe(`Get Token For Teams User [Playback/Live]${useAad ? " [AAD]" : ""}`, function () { - let recorder: Recorder; - let client: CommunicationIdentityClient; - const sanitizedValue = "sanitized"; - let options: GetTokenForTeamsUserOptions = { - teamsUserAadToken: sanitizedValue, - clientId: sanitizedValue, - userObjectId: sanitizedValue, - }; +matrix([[true, false]], async (useAad) => { + describe( + `Get Token For Teams User [Playback/Live]${useAad ? " [AAD]" : ""}`, + { skip: env.SKIP_INT_IDENTITY_EXCHANGE_TOKEN_TEST === "true" }, + () => { + let recorder: Recorder; + let client: CommunicationIdentityClient; + const sanitizedValue = "sanitized"; + let options: GetTokenForTeamsUserOptions = { + teamsUserAadToken: sanitizedValue, + clientId: sanitizedValue, + userObjectId: sanitizedValue, + }; - before(async function (this: Context) { - const skipTests = env.SKIP_INT_IDENTITY_EXCHANGE_TOKEN_TEST === "true"; - if (skipTests) { - this.skip(); - } - if (!isPlaybackMode()) { - options = await fetchParamsForGetTokenForTeamsUser(); - } - }); + beforeAll(async () => { + if (!isPlaybackMode()) { + options = await fetchParamsForGetTokenForTeamsUser(); + } + }); - beforeEach(async function (this: Context) { - if (useAad) { - ({ client, recorder } = await createRecordedCommunicationIdentityClientWithToken(this)); - } else { - ({ client, recorder } = await createRecordedCommunicationIdentityClient(this)); - } - }); + beforeEach(async (ctx) => { + if (useAad) { + ({ client, recorder } = await createRecordedCommunicationIdentityClientWithToken(ctx)); + } else { + ({ client, recorder } = await createRecordedCommunicationIdentityClient(ctx)); + } + }); - afterEach(async function (this: Context) { - if (!this.currentTest?.isPending()) { - await recorder.stop(); - } - }); + afterEach(async (ctx) => { + if (!ctx.task.pending) { + await recorder.stop(); + } + }); - async function fetchParamsForGetTokenForTeamsUser(): Promise { - const msalConfig = { - auth: { + async function fetchParamsForGetTokenForTeamsUser(): Promise { + const msalConfig = { + auth: { + clientId: env.COMMUNICATION_M365_APP_ID ?? "", + authority: + env.COMMUNICATION_M365_AAD_AUTHORITY + "/" + env.COMMUNICATION_M365_AAD_TENANT, + }, + }; + const msalInstance = new PublicClientApplication(msalConfig); + const usernamePasswordRequest = { + scopes: [ + "https://auth.msft.communication.azure.com/Teams.ManageCalls", + "https://auth.msft.communication.azure.com/Teams.ManageChats", + ], + username: env.COMMUNICATION_MSAL_USERNAME ?? "", + password: env.COMMUNICATION_MSAL_PASSWORD ?? "", + }; + const response = await msalInstance.acquireTokenByUsernamePassword(usernamePasswordRequest); + const getTokenForTeamsUserOptions: GetTokenForTeamsUserOptions = { + teamsUserAadToken: response!.accessToken, clientId: env.COMMUNICATION_M365_APP_ID ?? "", - authority: env.COMMUNICATION_M365_AAD_AUTHORITY + "/" + env.COMMUNICATION_M365_AAD_TENANT, - }, - }; - const msalInstance = new PublicClientApplication(msalConfig); - const usernamePasswordRequest = { - scopes: [ - "https://auth.msft.communication.azure.com/Teams.ManageCalls", - "https://auth.msft.communication.azure.com/Teams.ManageChats", - ], - username: env.COMMUNICATION_MSAL_USERNAME ?? "", - password: env.COMMUNICATION_MSAL_PASSWORD ?? "", - }; - const response = await msalInstance.acquireTokenByUsernamePassword(usernamePasswordRequest); - const getTokenForTeamsUserOptions: GetTokenForTeamsUserOptions = { - teamsUserAadToken: response!.accessToken, - clientId: env.COMMUNICATION_M365_APP_ID ?? "", - userObjectId: response!.uniqueId, - }; - return getTokenForTeamsUserOptions; - } + userObjectId: response!.uniqueId, + }; + return getTokenForTeamsUserOptions; + } - it("successfully exchanges a Teams User AAD token for a Communication access token", async function () { - const { token, expiresOn }: CommunicationAccessToken = - await client.getTokenForTeamsUser(options); - assert.isString(token); - assert.instanceOf(expiresOn, Date); - }).timeout(5000); + it( + "successfully exchanges a Teams User AAD token for a Communication access token", + { timeout: 5000 }, + async () => { + const { token, expiresOn }: CommunicationAccessToken = + await client.getTokenForTeamsUser(options); + assert.isString(token); + assert.instanceOf(expiresOn, Date); + }, + ); - [ - { teamsUserAadToken: "", description: "an empty teamsUserAadToken" }, - { teamsUserAadToken: "invalid", description: "an invalid teamsUserAadToken" }, - { - teamsUserAadToken: env.COMMUNICATION_EXPIRED_TEAMS_TOKEN ?? "", - description: "an expired teamsUserAadToken", - }, - ].forEach((input) => - it(`throws an error when attempting to exchange <${input.description}>`, async function () { - try { - if (isPlaybackMode()) { - input.teamsUserAadToken = sanitizedValue; + [ + { teamsUserAadToken: "", description: "an empty teamsUserAadToken" }, + { teamsUserAadToken: "invalid", description: "an invalid teamsUserAadToken" }, + { + teamsUserAadToken: env.COMMUNICATION_EXPIRED_TEAMS_TOKEN ?? "", + description: "an expired teamsUserAadToken", + }, + ].forEach((input) => + it(`throws an error when attempting to exchange <${input.description}>`, async () => { + try { + if (isPlaybackMode()) { + input.teamsUserAadToken = sanitizedValue; + } + await client.getTokenForTeamsUser({ + teamsUserAadToken: input.teamsUserAadToken, + clientId: options.clientId, + userObjectId: options.clientId, + }); + } catch (e: any) { + assert.equal(e.statusCode, 401); + return; } - await client.getTokenForTeamsUser({ - teamsUserAadToken: input.teamsUserAadToken, - clientId: options.clientId, - userObjectId: options.clientId, - }); - } catch (e: any) { - assert.equal(e.statusCode, 401); - return; - } - assert.fail("Should have thrown an error"); - }), - ); + assert.fail("Should have thrown an error"); + }), + ); - [ - { clientId: "", description: "an empty clientId" }, - { clientId: "invalid", description: "an invalid clientId" }, - { clientId: options.userObjectId, description: "a wrong clientId" }, - ].forEach((input) => - it(`throws an error when attempting to exchange <${input.description}>`, async function () { - try { - if (isPlaybackMode()) { - input.clientId = sanitizedValue; + [ + { clientId: "", description: "an empty clientId" }, + { clientId: "invalid", description: "an invalid clientId" }, + { clientId: options.userObjectId, description: "a wrong clientId" }, + ].forEach((input) => + it(`throws an error when attempting to exchange <${input.description}>`, async () => { + try { + if (isPlaybackMode()) { + input.clientId = sanitizedValue; + } + await client.getTokenForTeamsUser({ + teamsUserAadToken: options.teamsUserAadToken, + clientId: input.clientId, + userObjectId: options.userObjectId, + }); + } catch (e: any) { + assert.equal(e.statusCode, 400); + return; } - await client.getTokenForTeamsUser({ - teamsUserAadToken: options.teamsUserAadToken, - clientId: input.clientId, - userObjectId: options.userObjectId, - }); - } catch (e: any) { - assert.equal(e.statusCode, 400); - return; - } - assert.fail("Should have thrown an error"); - }), - ); + assert.fail("Should have thrown an error"); + }), + ); - [ - { userObjectId: "", description: "an empty userObjectId" }, - { userObjectId: "invalid", description: "an invalid userObjectId" }, - { userObjectId: options.clientId, description: "a wrong userObjectId" }, - ].forEach((input) => - it(`throws an error when attempting to exchange <${input.description}>`, async function () { - try { - if (isPlaybackMode()) { - input.userObjectId = sanitizedValue; + [ + { userObjectId: "", description: "an empty userObjectId" }, + { userObjectId: "invalid", description: "an invalid userObjectId" }, + { userObjectId: options.clientId, description: "a wrong userObjectId" }, + ].forEach((input) => + it(`throws an error when attempting to exchange <${input.description}>`, async () => { + try { + if (isPlaybackMode()) { + input.userObjectId = sanitizedValue; + } + await client.getTokenForTeamsUser({ + teamsUserAadToken: options.teamsUserAadToken, + clientId: options.clientId, + userObjectId: input.userObjectId, + }); + } catch (e: any) { + assert.equal(e.statusCode, 400); + return; } - await client.getTokenForTeamsUser({ - teamsUserAadToken: options.teamsUserAadToken, - clientId: options.clientId, - userObjectId: input.userObjectId, - }); - } catch (e: any) { - assert.equal(e.statusCode, 400); - return; - } - assert.fail("Should have thrown an error"); - }), - ); - }); + assert.fail("Should have thrown an error"); + }), + ); + }, + ); }); diff --git a/sdk/communication/communication-identity/test/public/node/tokenCustomExpiration.node.spec.ts b/sdk/communication/communication-identity/test/public/node/tokenCustomExpiration.node.spec.ts index 99da3a6303f4..a01841dfa34e 100644 --- a/sdk/communication/communication-identity/test/public/node/tokenCustomExpiration.node.spec.ts +++ b/sdk/communication/communication-identity/test/public/node/tokenCustomExpiration.node.spec.ts @@ -4,34 +4,31 @@ import type { CommunicationUserIdentifier } from "@azure/communication-common"; import type { Recorder } from "@azure-tools/test-recorder"; import { isLiveMode } from "@azure-tools/test-recorder"; -import type { Context } from "mocha"; -import { assert } from "chai"; -import { matrix } from "@azure-tools/test-utils"; -import type { CommunicationIdentityClient } from "../../../src/communicationIdentityClient"; +import { matrix } from "@azure-tools/test-utils-vitest"; +import type { CommunicationIdentityClient } from "../../../src/communicationIdentityClient.js"; import { createRecordedCommunicationIdentityClient, createRecordedCommunicationIdentityClientWithToken, -} from "../utils/recordedClient"; -import type { CreateUserAndTokenOptions, GetTokenOptions } from "../../../src/models"; +} from "../utils/recordedClient.js"; +import type { CreateUserAndTokenOptions, GetTokenOptions } from "../../../src/models.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -matrix([[true, false]], async function (useAad: boolean) { - describe(`Get Token With Custom Expiration [Playback/Live]${ - useAad ? " [AAD]" : "" - }`, function () { +matrix([[true, false]], async (useAad: boolean) => { + describe(`Get Token With Custom Expiration [Playback/Live]${useAad ? " [AAD]" : ""}`, () => { const TOKEN_EXPIRATION_ALLOWED_DEVIATION: number = 0.05; let recorder: Recorder; let client: CommunicationIdentityClient; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { if (useAad) { - ({ client, recorder } = await createRecordedCommunicationIdentityClientWithToken(this)); + ({ client, recorder } = await createRecordedCommunicationIdentityClientWithToken(ctx)); } else { - ({ client, recorder } = await createRecordedCommunicationIdentityClient(this)); + ({ client, recorder } = await createRecordedCommunicationIdentityClient(ctx)); } }); - afterEach(async function (this: Context) { - if (!this.currentTest?.isPending()) { + afterEach(async (ctx) => { + if (!ctx.task.pending) { await recorder.stop(); } }); @@ -40,7 +37,10 @@ matrix([[true, false]], async function (useAad: boolean) { expectedTokenExpiration: number, tokenExpiresIn: Date, allowedDeviation: number, - ) { + ): { + withinAllowedDeviation: boolean; + tokenExpirationInMinutes: number; + } { const timeNow = Date.now(); const expiration = tokenExpiresIn.getTime(); const tokenSeconds = (expiration - timeNow) / 1000; @@ -57,7 +57,7 @@ matrix([[true, false]], async function (useAad: boolean) { { tokenExpiresInMinutes: 60, description: "min valid" }, { tokenExpiresInMinutes: 1440, description: "max valid" }, ].forEach((input) => - it(`successfully gets a valid custom expiration token <${input.description}>`, async function () { + it(`successfully gets a valid custom expiration token <${input.description}>`, async () => { const user: CommunicationUserIdentifier = await client.createUser(); const tokenOptions: GetTokenOptions = { tokenExpiresInMinutes: input.tokenExpiresInMinutes, @@ -90,7 +90,7 @@ matrix([[true, false]], async function (useAad: boolean) { { tokenExpiresInMinutes: 60, description: "min valid" }, { tokenExpiresInMinutes: 1440, description: "max valid" }, ].forEach((input) => - it(`successfully gets user and valid custom expiration token <${input.description}>`, async function () { + it(`successfully gets user and valid custom expiration token <${input.description}>`, async () => { const tokenOptions: CreateUserAndTokenOptions = { tokenExpiresInMinutes: input.tokenExpiresInMinutes, }; @@ -122,7 +122,7 @@ matrix([[true, false]], async function (useAad: boolean) { { tokenExpiresInMinutes: 59, description: "lo inval" }, { tokenExpiresInMinutes: 1441, description: "hi inval" }, ].forEach((input) => - it(`throws error when attempting to issue an invalid expiration token <${input.description}>`, async function () { + it(`throws error when attempting to issue an invalid expiration token <${input.description}>`, async () => { const user: CommunicationUserIdentifier = await client.createUser(); const tokenOptions: GetTokenOptions = { tokenExpiresInMinutes: input.tokenExpiresInMinutes, @@ -140,7 +140,7 @@ matrix([[true, false]], async function (useAad: boolean) { { tokenExpiresInMinutes: 59, description: "lo inval" }, { tokenExpiresInMinutes: 1441, description: "hi inval" }, ].forEach((input) => - it(`throws error when attempting to issue user and invalid expiration token <${input.description}>`, async function () { + it(`throws error when attempting to issue user and invalid expiration token <${input.description}>`, async () => { const tokenOptions: CreateUserAndTokenOptions = { tokenExpiresInMinutes: input.tokenExpiresInMinutes, }; diff --git a/sdk/communication/communication-identity/test/public/utils/matrix.ts b/sdk/communication/communication-identity/test/public/utils/matrix.ts deleted file mode 100644 index 23c8f86591c9..000000000000 --- a/sdk/communication/communication-identity/test/public/utils/matrix.ts +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @internal - * Takes a jagged 2D array and a function and runs the function with every - * possible combination of elements of each of the arrays - * - * For strong type-checking, it is important that the `matrix` have a strong - * type, such as a `const` literal. - * - * @param values - jagged 2D array specifying the arguments and their possible - * values - * @param handler - the function to run with the different argument combinations - * - * @example - * ```typescript - * matrix([ - * [true, false], - * [1, 2, 3] - * ] as const, - * (useLabels: boolean, attempts: number) => { - * // This body will run six times with the following parameters: - * // - true, 1 - * // - true, 2 - * // - true, 3 - * // - false, 1 - * // - false, 2 - * // - false, 3 - * }); - * ``` - */ -export function matrix>( - values: T, - handler: ( - ...args: { [idx in keyof T]: T[idx] extends ReadonlyArray ? U : never } - ) => Promise, -): void { - // Classic recursive approach - if (values.length === 0) { - (handler as () => Promise)(); - } else { - for (const v of values[0]) { - matrix(values.slice(1), (...args) => (handler as any)(v, ...args)); - } - } -} diff --git a/sdk/communication/communication-identity/test/public/utils/mockHttpClients.ts b/sdk/communication/communication-identity/test/public/utils/mockHttpClients.ts index 364ec845b24e..9151a2940d65 100644 --- a/sdk/communication/communication-identity/test/public/utils/mockHttpClients.ts +++ b/sdk/communication/communication-identity/test/public/utils/mockHttpClients.ts @@ -3,7 +3,7 @@ import type { HttpClient, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline"; import { createHttpHeaders } from "@azure/core-rest-pipeline"; -import type { CommunicationAccessToken } from "../../../src"; +import type { CommunicationAccessToken } from "../../../src/index.js"; export const createMockHttpClient = >( status: number = 200, diff --git a/sdk/communication/communication-identity/test/public/utils/recordedClient.ts b/sdk/communication/communication-identity/test/public/utils/recordedClient.ts index a42dba769a4a..0c10ec6cbdae 100644 --- a/sdk/communication/communication-identity/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-identity/test/public/utils/recordedClient.ts @@ -1,10 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. - -import type { Context, Test } from "mocha"; -import type { RecorderStartOptions, SanitizerOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, SanitizerOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, env, isPlaybackMode } from "@azure-tools/test-recorder"; -import { CommunicationIdentityClient } from "../../../src"; +import { CommunicationIdentityClient } from "../../../src/index.js"; import type { TokenCredential } from "@azure/core-auth"; import { createTestCredential } from "@azure-tools/test-credential"; import { parseConnectionString } from "@azure/communication-common"; @@ -63,7 +61,7 @@ const recorderOptions: RecorderStartOptions = { sanitizerOptions: sanitizerOptions, }; -export async function createRecorder(context: Test | undefined): Promise { +export async function createRecorder(context: TestInfo | undefined): Promise { const recorder = new Recorder(context); await recorder.start(recorderOptions); await recorder.setMatcher("CustomDefaultMatcher", { @@ -76,9 +74,9 @@ export async function createRecorder(context: Test | undefined): Promise> { - const recorder = await createRecorder(context.currentTest); + const recorder = await createRecorder(context); const client = new CommunicationIdentityClient( env.COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING ?? "", @@ -92,9 +90,9 @@ export async function createRecordedCommunicationIdentityClient( } export async function createRecordedCommunicationIdentityClientWithToken( - context: Context, + context: TestInfo, ): Promise> { - const recorder = await createRecorder(context.currentTest); + const recorder = await createRecorder(context); let credential: TokenCredential; const endpoint = parseConnectionString( diff --git a/sdk/communication/communication-identity/test/public/utils/testCommunicationIdentityClient.ts b/sdk/communication/communication-identity/test/public/utils/testCommunicationIdentityClient.ts index b676a4e94ac1..2a7c5d64269f 100644 --- a/sdk/communication/communication-identity/test/public/utils/testCommunicationIdentityClient.ts +++ b/sdk/communication/communication-identity/test/public/utils/testCommunicationIdentityClient.ts @@ -6,15 +6,15 @@ import type { CommunicationIdentityClientOptions, CommunicationUserToken, TokenScope, -} from "../../../src"; -import { CommunicationIdentityClient } from "../../../src"; +} from "../../../src/index.js"; +import { CommunicationIdentityClient } from "../../../src/index.js"; import { createUserAndTokenHttpClient, createUserHttpClient, getTokenForTeamsUserHttpClient, getTokenHttpClient, revokeTokensHttpClient, -} from "./mockHttpClients"; +} from "./mockHttpClients.js"; import type { CommunicationUserIdentifier } from "@azure/communication-common"; import type { OperationOptions } from "@azure/core-client"; diff --git a/sdk/communication/communication-identity/tsconfig.browser.config.json b/sdk/communication/communication-identity/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/communication/communication-identity/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/communication/communication-identity/tsconfig.json b/sdk/communication/communication-identity/tsconfig.json index d7b0722fc5b6..96edb1c3057b 100644 --- a/sdk/communication/communication-identity/tsconfig.json +++ b/sdk/communication/communication-identity/tsconfig.json @@ -1,11 +1,12 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "paths": { "@azure/communication-identity": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": ["src/**/*.ts", "src/**/*.mts", "src/**/*.cts", "samples-dev/**/*.ts", "test/**/*.ts"] } diff --git a/sdk/communication/communication-identity/vitest.browser.config.ts b/sdk/communication/communication-identity/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/communication/communication-identity/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-identity/vitest.config.ts b/sdk/communication/communication-identity/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/communication/communication-identity/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-job-router-rest/api-extractor.json b/sdk/communication/communication-job-router-rest/api-extractor.json index 5ff7f4621cde..36ac0211cff7 100644 --- a/sdk/communication/communication-job-router-rest/api-extractor.json +++ b/sdk/communication/communication-job-router-rest/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "mainEntryPointFilePath": "dist/esm/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/communication-job-router.d.ts" + "publicTrimmedFilePath": "dist/communication-job-router.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } } diff --git a/sdk/communication/communication-job-router-rest/karma.conf.js b/sdk/communication/communication-job-router-rest/karma.conf.js deleted file mode 100644 index 6465833a538c..000000000000 --- a/sdk/communication/communication-job-router-rest/karma.conf.js +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: [ - "TEST_MODE", - "ENDPOINT", - "AZURE_CLIENT_SECRET", - "AZURE_CLIENT_ID", - "AZURE_TENANT_ID", - "SUBSCRIPTION_ID", - "RECORDINGS_RELATIVE_PATH", - "COMMUNICATION_CONNECTION_STRING", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/communication/communication-job-router-rest/package.json b/sdk/communication/communication-job-router-rest/package.json index cc41c36a7c50..abafd2bfeb5e 100644 --- a/sdk/communication/communication-job-router-rest/package.json +++ b/sdk/communication/communication-job-router-rest/package.json @@ -13,31 +13,28 @@ "isomorphic" ], "license": "MIT", - "main": "dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/communication-job-router.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/", - "dist-esm/src/", - "types/communication-job-router.d.ts", "README.md", - "LICENSE", - "review/*" + "LICENSE" ], "engines": { "node": ">=18.0.0" }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run vendored cross-env ONLY_BROWSER=true rollup -c 2>&1", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run vendored cross-env ONLY_NODE=true rollup -c 2>&1", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run vendored cross-env ONLY_BROWSER=true rollup -c 2>&1", + "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api", + "build:node": "dev-tool run build-package && dev-tool run vendored cross-env ONLY_NODE=true rollup -c 2>&1", "build:samples": "dev-tool samples publish --force", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", @@ -45,8 +42,8 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "generate:client": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -54,50 +51,38 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.1.4", - "@azure/communication-common": "^2.2.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-paging": "^1.5.0", - "@azure/core-rest-pipeline": "^1.12.0", - "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "@azure-rest/core-client": "^2.3.1", + "@azure/communication-common": "^2.3.1", + "@azure/core-auth": "^1.9.0", + "@azure/core-paging": "^1.6.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure/core-util": "^1.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", + "@azure/core-util": "^1.11.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "autorest": "latest", - "chai": "^4.2.0", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^2.1.2", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.4.0", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.48.2", + "typescript": "~5.6.2", + "vitest": "^2.1.5" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/communication-job-router-rest/README.md", "//metadata": { @@ -108,14 +93,49 @@ } ] }, - "browser": { - "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" - }, + "browser": "./dist/browser/index.js", "//sampleConfiguration": { "productName": "Azure client library for Azure Communication Job Router services", "productSlugs": [ "azure", "azure-communication-services" ] + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/communication/communication-job-router-rest/src/azureCommunicationRoutingServiceClient.ts b/sdk/communication/communication-job-router-rest/src/azureCommunicationRoutingServiceClient.ts index 9350d3e0a573..0a9d7c7882d4 100644 --- a/sdk/communication/communication-job-router-rest/src/azureCommunicationRoutingServiceClient.ts +++ b/sdk/communication/communication-job-router-rest/src/azureCommunicationRoutingServiceClient.ts @@ -5,8 +5,8 @@ import type { ClientOptions } from "@azure-rest/core-client"; import { getClient } from "@azure-rest/core-client"; import type { KeyCredential, TokenCredential } from "@azure/core-auth"; import { isTokenCredential } from "@azure/core-auth"; -import { logger } from "./logger"; -import type { AzureCommunicationRoutingServiceClient } from "./clientDefinitions"; +import { logger } from "./logger.js"; +import type { AzureCommunicationRoutingServiceClient } from "./clientDefinitions.js"; import { createCommunicationAuthPolicy, isKeyCredential, diff --git a/sdk/communication/communication-job-router-rest/src/clientDefinitions.ts b/sdk/communication/communication-job-router-rest/src/clientDefinitions.ts index 2eb1025edc1b..7d09555b462e 100644 --- a/sdk/communication/communication-job-router-rest/src/clientDefinitions.ts +++ b/sdk/communication/communication-job-router-rest/src/clientDefinitions.ts @@ -35,7 +35,7 @@ import type { GetWorkerParameters, DeleteWorkerParameters, ListWorkersParameters, -} from "./parameters"; +} from "./parameters.js"; import type { UpsertClassificationPolicy200Response, UpsertClassificationPolicy201Response, @@ -109,7 +109,7 @@ import type { DeleteWorkerDefaultResponse, ListWorkers200Response, ListWorkersDefaultResponse, -} from "./responses"; +} from "./responses.js"; import type { Client, StreamableMethod } from "@azure-rest/core-client"; export interface UpsertClassificationPolicy { diff --git a/sdk/communication/communication-job-router-rest/src/index.ts b/sdk/communication/communication-job-router-rest/src/index.ts index b818ef7aa9ac..1c1e0181dcda 100644 --- a/sdk/communication/communication-job-router-rest/src/index.ts +++ b/sdk/communication/communication-job-router-rest/src/index.ts @@ -1,15 +1,15 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import AzureCommunicationRoutingServiceClient from "./azureCommunicationRoutingServiceClient"; +import AzureCommunicationRoutingServiceClient from "./azureCommunicationRoutingServiceClient.js"; -export * from "./azureCommunicationRoutingServiceClient"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./paginateHelper"; +export * from "./azureCommunicationRoutingServiceClient.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./paginateHelper.js"; export default AzureCommunicationRoutingServiceClient; diff --git a/sdk/communication/communication-job-router-rest/src/isUnexpected.ts b/sdk/communication/communication-job-router-rest/src/isUnexpected.ts index 246ce83cfd09..2a4c05d342b5 100644 --- a/sdk/communication/communication-job-router-rest/src/isUnexpected.ts +++ b/sdk/communication/communication-job-router-rest/src/isUnexpected.ts @@ -74,7 +74,7 @@ import type { DeleteWorkerDefaultResponse, ListWorkers200Response, ListWorkersDefaultResponse, -} from "./responses"; +} from "./responses.js"; const responseMap: Record = { "PATCH /routing/classificationPolicies/{classificationPolicyId}": ["200", "201"], diff --git a/sdk/communication/communication-job-router-rest/src/parameters.ts b/sdk/communication/communication-job-router-rest/src/parameters.ts index 0c1853137bf2..e55abc76993d 100644 --- a/sdk/communication/communication-job-router-rest/src/parameters.ts +++ b/sdk/communication/communication-job-router-rest/src/parameters.ts @@ -16,7 +16,7 @@ import type { UnassignJobOptions, DeclineJobOfferOptions, RouterWorker, -} from "./models"; +} from "./models.js"; export interface UpsertClassificationPolicyHeaders { /** The request should only proceed if an entity matches this string. */ diff --git a/sdk/communication/communication-job-router-rest/src/responses.ts b/sdk/communication/communication-job-router-rest/src/responses.ts index dcd846fd6022..3d0bcf93bd69 100644 --- a/sdk/communication/communication-job-router-rest/src/responses.ts +++ b/sdk/communication/communication-job-router-rest/src/responses.ts @@ -25,7 +25,7 @@ import type { RouterQueueStatisticsOutput, RouterWorkerOutput, PagedRouterWorkerOutput, -} from "./outputModels"; +} from "./outputModels.js"; export interface UpsertClassificationPolicy200Headers { /** The entity tag for the response. */ diff --git a/sdk/communication/communication-job-router-rest/test/internal/utils/mockClient.ts b/sdk/communication/communication-job-router-rest/test/internal/utils/mockClient.ts index 6cb9b9f7e42f..0f5db06ffc29 100644 --- a/sdk/communication/communication-job-router-rest/test/internal/utils/mockClient.ts +++ b/sdk/communication/communication-job-router-rest/test/internal/utils/mockClient.ts @@ -3,15 +3,14 @@ import type { ClientOptions } from "@azure-rest/core-client"; import * as dotenv from "dotenv"; -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, env } from "@azure-tools/test-recorder"; -import JobRouter from "../../../src"; -import type { AzureCommunicationRoutingServiceClient } from "../../../src"; -import type { Context, Test } from "mocha"; -import { isNode } from "@azure/core-util"; -import { generateToken } from "../../public/utils/connection"; +import JobRouter from "../../../src/index.js"; +import type { AzureCommunicationRoutingServiceClient } from "../../../src/index.js"; +import { isNodeLike } from "@azure/core-util"; +import { generateToken } from "../../public/utils/connection.js"; -if (isNode) { +if (isNodeLike) { dotenv.config(); } @@ -31,7 +30,7 @@ export const recorderOptions: RecorderStartOptions = { ], }; -export async function createRecorder(context: Test | undefined): Promise { +export async function createRecorder(context: TestInfo | undefined): Promise { const recorder = new Recorder(context); await recorder.start(recorderOptions); await recorder.addSanitizers(recorderOptions.sanitizerOptions!, ["record", "playback"]); @@ -45,9 +44,9 @@ export interface RecordedRouterClient { } export async function createRecordedRouterClientWithConnectionString( - context: Context, + context: TestInfo, ): Promise { - const recorder = await createRecorder(context.currentTest); + const recorder = await createRecorder(context); return { routerClient: JobRouter( diff --git a/sdk/communication/communication-job-router-rest/test/public/methods/classificationPolicies.spec.ts b/sdk/communication/communication-job-router-rest/test/public/methods/classificationPolicies.spec.ts index 6fefad420e43..a5abc09e5a97 100644 --- a/sdk/communication/communication-job-router-rest/test/public/methods/classificationPolicies.spec.ts +++ b/sdk/communication/communication-job-router-rest/test/public/methods/classificationPolicies.spec.ts @@ -2,23 +2,22 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; import type { AzureCommunicationRoutingServiceClient, ClassificationPolicyOutput, -} from "../../../src"; -import { paginate } from "../../../src"; +} from "../../../src/index.js"; +import { paginate } from "../../../src/index.js"; import { getClassificationPolicyRequest, getDistributionPolicyRequest, getExceptionPolicyRequest, getQueueRequest, -} from "../utils/testData"; -import { createRecordedRouterClientWithConnectionString } from "../../internal/utils/mockClient"; -import { timeoutMs } from "../utils/constants"; +} from "../utils/testData.js"; +import { createRecordedRouterClientWithConnectionString } from "../../internal/utils/mockClient.js"; +import { timeoutMs } from "../utils/constants.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("JobRouterClient", function () { +describe("JobRouterClient", () => { let routerClient: AzureCommunicationRoutingServiceClient; let recorder: Recorder; @@ -34,9 +33,9 @@ describe("JobRouterClient", function () { const { queueId, queueRequest } = getQueueRequest(testRunId); - describe("classification Policy Operations", function () { - this.beforeEach(async function (this: Context) { - ({ routerClient, recorder } = await createRecordedRouterClientWithConnectionString(this)); + describe("classification Policy Operations", () => { + beforeEach(async (ctx) => { + ({ routerClient, recorder } = await createRecordedRouterClientWithConnectionString(ctx)); await routerClient .path("/routing/distributionPolicies/{distributionPolicyId}", distributionPolicyId) @@ -56,7 +55,7 @@ describe("JobRouterClient", function () { }); }); - this.afterEach(async function (this: Context) { + afterEach(async (ctx) => { await routerClient .path("/routing/distributionPolicies/{distributionPolicyId}", distributionPolicyId) .delete(); @@ -65,12 +64,12 @@ describe("JobRouterClient", function () { .delete(); await routerClient.path("/routing/queues/{queueId}", queueId).delete(); - if (!this.currentTest?.isPending() && recorder) { + if (!ctx.task.pending && recorder) { await recorder.stop(); } }); - it("should create a classification policy", async function () { + it("should create a classification policy", { timeout: timeoutMs }, async () => { const response = await routerClient .path("/routing/classificationPolicies/{classificationPolicyId}", classificationPolicyId) .patch({ @@ -86,9 +85,9 @@ describe("JobRouterClient", function () { assert.isDefined(result); assert.isDefined(result?.id); assert.equal(result.name, classificationPolicyRequest.name); - }).timeout(timeoutMs); + }); - it("should get a classification policy", async function () { + it("should get a classification policy", { timeout: timeoutMs }, async () => { const response = await routerClient .path("/routing/classificationPolicies/{classificationPolicyId}", classificationPolicyId) .get(); @@ -100,9 +99,9 @@ describe("JobRouterClient", function () { assert.equal(result.id, classificationPolicyId); assert.equal(result.name, classificationPolicyRequest.name); - }).timeout(timeoutMs); + }); - it("should update a classification policy", async function () { + it("should update a classification policy", { timeout: timeoutMs }, async () => { const updatePatch = { ...classificationPolicyRequest, name: "new-name" }; let response = await routerClient .path("/routing/classificationPolicies/{classificationPolicyId}", classificationPolicyId) @@ -135,9 +134,9 @@ describe("JobRouterClient", function () { assert.isDefined(removeResult.id); assert.equal(updateResult.name, updatePatch.name); assert.isUndefined(removeResult.name); - }).timeout(timeoutMs); + }); - it("should list classification policies", async function () { + it("should list classification policies", { timeout: timeoutMs }, async () => { const result: ClassificationPolicyOutput[] = []; const response = await routerClient .path("/routing/classificationPolicies") @@ -154,9 +153,9 @@ describe("JobRouterClient", function () { } assert.isNotEmpty(result); - }).timeout(timeoutMs); + }); - it("should delete a classification policy", async function () { + it("should delete a classification policy", { timeout: timeoutMs }, async () => { const response = await routerClient .path("/routing/classificationPolicies/{classificationPolicyId}", classificationPolicyId) .delete(); @@ -166,6 +165,6 @@ describe("JobRouterClient", function () { } assert.isDefined(response); - }).timeout(timeoutMs); + }); }); }); diff --git a/sdk/communication/communication-job-router-rest/test/public/methods/distributionPolicies.spec.ts b/sdk/communication/communication-job-router-rest/test/public/methods/distributionPolicies.spec.ts index 695949c358d9..5e11d7810216 100644 --- a/sdk/communication/communication-job-router-rest/test/public/methods/distributionPolicies.spec.ts +++ b/sdk/communication/communication-job-router-rest/test/public/methods/distributionPolicies.spec.ts @@ -2,18 +2,17 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; import type { AzureCommunicationRoutingServiceClient, DistributionPolicyOutput, -} from "../../../src"; -import { paginate } from "../../../src"; -import { getDistributionPolicyRequest } from "../utils/testData"; -import { createRecordedRouterClientWithConnectionString } from "../../internal/utils/mockClient"; -import { timeoutMs } from "../utils/constants"; - -describe("JobRouterClient", function () { +} from "../../../src/index.js"; +import { paginate } from "../../../src/index.js"; +import { getDistributionPolicyRequest } from "../utils/testData.js"; +import { createRecordedRouterClientWithConnectionString } from "../../internal/utils/mockClient.js"; +import { timeoutMs } from "../utils/constants.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; + +describe("JobRouterClient", () => { let routerClient: AzureCommunicationRoutingServiceClient; let recorder: Recorder; @@ -22,18 +21,18 @@ describe("JobRouterClient", function () { const { distributionPolicyIdForCreationAndDeletionTest, distributionPolicyRequest } = getDistributionPolicyRequest(testRunId); - describe("Distribution Policy Operations", function () { - this.beforeEach(async function (this: Context) { - ({ routerClient, recorder } = await createRecordedRouterClientWithConnectionString(this)); + describe("Distribution Policy Operations", () => { + beforeEach(async (ctx) => { + ({ routerClient, recorder } = await createRecordedRouterClientWithConnectionString(ctx)); }); - this.afterEach(async function (this: Context) { - if (!this.currentTest?.isPending() && recorder) { + afterEach(async (ctx) => { + if (!ctx.task.pending && recorder) { await recorder.stop(); } }); - it("should create a distribution policy", async function () { + it("should create a distribution policy", { timeout: timeoutMs }, async () => { const response = await routerClient .path( "/routing/distributionPolicies/{distributionPolicyId}", @@ -52,9 +51,9 @@ describe("JobRouterClient", function () { assert.isDefined(result); assert.isDefined(result?.id); assert.equal(result.name, distributionPolicyRequest.name); - }).timeout(timeoutMs); + }); - it("should get a distribution policy", async function () { + it("should get a distribution policy", { timeout: timeoutMs }, async () => { const response = await routerClient .path( "/routing/distributionPolicies/{distributionPolicyId}", @@ -74,9 +73,9 @@ describe("JobRouterClient", function () { distributionPolicyRequest.offerExpiresAfterSeconds, ); assert.deepEqual(result.mode, distributionPolicyRequest.mode); - }).timeout(timeoutMs); + }); - it("should update a distribution policy", async function () { + it("should update a distribution policy", { timeout: timeoutMs }, async () => { const updatePatch = { ...distributionPolicyRequest, name: "new-name" }; let response = await routerClient .path( @@ -115,9 +114,9 @@ describe("JobRouterClient", function () { assert.isDefined(removeResult.id); assert.equal(updateResult.name, updatePatch.name); assert.isUndefined(removeResult.name); - }).timeout(timeoutMs); + }); - it("should list distribution policies", async function () { + it("should list distribution policies", { timeout: timeoutMs }, async () => { const result: DistributionPolicyOutput[] = []; const response = await routerClient .path("/routing/distributionPolicies") @@ -134,9 +133,9 @@ describe("JobRouterClient", function () { } assert.isNotEmpty(result); - }).timeout(timeoutMs); + }); - it("should delete a distribution policy", async function () { + it("should delete a distribution policy", { timeout: timeoutMs }, async () => { const response = await routerClient .path( "/routing/distributionPolicies/{distributionPolicyId}", @@ -149,6 +148,6 @@ describe("JobRouterClient", function () { } assert.isDefined(response); - }).timeout(timeoutMs); + }); }); }); diff --git a/sdk/communication/communication-job-router-rest/test/public/methods/exceptionPolicies.spec.ts b/sdk/communication/communication-job-router-rest/test/public/methods/exceptionPolicies.spec.ts index b3dd868bd7e5..a4f8e943d9c3 100644 --- a/sdk/communication/communication-job-router-rest/test/public/methods/exceptionPolicies.spec.ts +++ b/sdk/communication/communication-job-router-rest/test/public/methods/exceptionPolicies.spec.ts @@ -2,15 +2,17 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureCommunicationRoutingServiceClient, ExceptionPolicyOutput } from "../../../src"; -import { paginate } from "../../../src"; -import { getExceptionPolicyRequest } from "../utils/testData"; -import { createRecordedRouterClientWithConnectionString } from "../../internal/utils/mockClient"; -import { timeoutMs } from "../utils/constants"; - -describe("JobRouterClient", function () { +import type { + AzureCommunicationRoutingServiceClient, + ExceptionPolicyOutput, +} from "../../../src/index.js"; +import { paginate } from "../../../src/index.js"; +import { getExceptionPolicyRequest } from "../utils/testData.js"; +import { createRecordedRouterClientWithConnectionString } from "../../internal/utils/mockClient.js"; +import { timeoutMs } from "../utils/constants.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; + +describe("JobRouterClient", () => { let routerClient: AzureCommunicationRoutingServiceClient; let recorder: Recorder; @@ -19,18 +21,18 @@ describe("JobRouterClient", function () { const { exceptionPolicyIdForCreationAndDeletionTest, exceptionPolicyRequest } = getExceptionPolicyRequest(testRunId); - describe("exception Policy Operations", function () { - this.beforeEach(async function (this: Context) { - ({ routerClient, recorder } = await createRecordedRouterClientWithConnectionString(this)); + describe("exception Policy Operations", () => { + beforeEach(async (ctx) => { + ({ routerClient, recorder } = await createRecordedRouterClientWithConnectionString(ctx)); }); - this.afterEach(async function (this: Context) { - if (!this.currentTest?.isPending() && recorder) { + afterEach(async (ctx) => { + if (!ctx.task.pending && recorder) { await recorder.stop(); } }); - it("should create a exception policy", async function () { + it("should create a exception policy", { timeout: timeoutMs }, async () => { // TODO. we have a transient bug for creating existed exception policy return 400, try rotate the id for Record testing if this fails const response = await routerClient .path( @@ -50,9 +52,9 @@ describe("JobRouterClient", function () { assert.isDefined(result); assert.isDefined(result?.id); assert.equal(result.name, exceptionPolicyRequest.name); - }).timeout(timeoutMs); + }); - it("should get a exception policy", async function () { + it("should get a exception policy", { timeout: timeoutMs }, async () => { const response = await routerClient .path( "/routing/exceptionPolicies/{exceptionPolicyId}", @@ -69,9 +71,9 @@ describe("JobRouterClient", function () { assert.equal(result.name, exceptionPolicyRequest.name); // TODO. Minor. need to fix "id" in actions in exceptionRules on service repo // assert.deepEqual(result.exceptionRules, exceptionPolicyRequest.exceptionRules); - }).timeout(timeoutMs); + }); - it("should update a exception policy", async function () { + it("should update a exception policy", { timeout: timeoutMs }, async () => { const updatePatch = { ...exceptionPolicyRequest, name: "new-name" }; let response = await routerClient .path( @@ -110,9 +112,9 @@ describe("JobRouterClient", function () { assert.isDefined(removeResult.id); assert.equal(updateResult.name, updatePatch.name); assert.isUndefined(removeResult.name); - }).timeout(timeoutMs); + }); - it("should list exception policies", async function () { + it("should list exception policies", { timeout: timeoutMs }, async () => { const result: ExceptionPolicyOutput[] = []; const response = await routerClient .path("/routing/exceptionPolicies") @@ -129,9 +131,9 @@ describe("JobRouterClient", function () { } assert.isNotEmpty(result); - }).timeout(timeoutMs); + }); - it("should delete a exception policy", async function () { + it("should delete a exception policy", { timeout: timeoutMs }, async () => { const response = await routerClient .path( "/routing/exceptionPolicies/{exceptionPolicyId}", @@ -144,6 +146,6 @@ describe("JobRouterClient", function () { } assert.isDefined(response); - }).timeout(timeoutMs); + }); }); }); diff --git a/sdk/communication/communication-job-router-rest/test/public/methods/jobs.spec.ts b/sdk/communication/communication-job-router-rest/test/public/methods/jobs.spec.ts index d1beab1ea444..325ae20be164 100644 --- a/sdk/communication/communication-job-router-rest/test/public/methods/jobs.spec.ts +++ b/sdk/communication/communication-job-router-rest/test/public/methods/jobs.spec.ts @@ -2,27 +2,26 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; import type { AzureCommunicationRoutingServiceClient, RouterJob, RouterJobOutput, RouterJobPositionDetailsOutput, -} from "../../../src"; -import { paginate } from "../../../src"; -import type { Context } from "mocha"; +} from "../../../src/index.js"; +import { paginate } from "../../../src/index.js"; import { getClassificationPolicyRequest, getDistributionPolicyRequest, getExceptionPolicyRequest, getJobRequest, getQueueRequest, -} from "../utils/testData"; -import { createRecordedRouterClientWithConnectionString } from "../../internal/utils/mockClient"; -import { timeoutMs } from "../utils/constants"; -import { pollForJobQueued, retry } from "../utils/polling"; +} from "../utils/testData.js"; +import { createRecordedRouterClientWithConnectionString } from "../../internal/utils/mockClient.js"; +import { timeoutMs } from "../utils/constants.js"; +import { pollForJobQueued, retry } from "../utils/polling.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("JobRouterClient", function () { +describe("JobRouterClient", () => { let routerClient: AzureCommunicationRoutingServiceClient; let recorder: Recorder; @@ -36,21 +35,9 @@ describe("JobRouterClient", function () { getClassificationPolicyRequest(testRunId); const { jobId, jobRequest } = getJobRequest(testRunId); - // function getScheduledJob(scheduledTime: string) { - // const matchingMode: ScheduleAndSuspendMode = { - // kind: "schedule-and-suspend", - // scheduleAt: new Date(scheduledTime) - // } - // return { - // ...jobRequest, - // notes: [], - // matchingMode: matchingMode, - // }; - // } - - describe("Job Operations", function () { - this.beforeEach(async function (this: Context) { - ({ routerClient, recorder } = await createRecordedRouterClientWithConnectionString(this)); + describe("Job Operations", () => { + beforeEach(async (ctx) => { + ({ routerClient, recorder } = await createRecordedRouterClientWithConnectionString(ctx)); await routerClient .path("/routing/distributionPolicies/{distributionPolicyId}", distributionPolicyId) @@ -76,7 +63,7 @@ describe("JobRouterClient", function () { }); }); - this.afterEach(async function (this: Context) { + afterEach(async (ctx) => { await routerClient .path("/routing/classificationPolicies/{classificationPolicyId}", classificationPolicyId) .delete(); @@ -88,12 +75,12 @@ describe("JobRouterClient", function () { .delete(); await routerClient.path("/routing/queues/{queueId}", queueId).delete(); - if (!this.currentTest?.isPending() && recorder) { + if (!ctx.task.pending && recorder) { await recorder.stop(); } }); - it("should create a job", async function () { + it("should create a job", { timeout: timeoutMs }, async () => { const response = await routerClient.path("/routing/jobs/{jobId}", jobId).patch({ contentType: "application/merge-patch+json", body: jobRequest, @@ -106,10 +93,10 @@ describe("JobRouterClient", function () { assert.isDefined(result); assert.isDefined(result.id); assert.equal(result.id, jobId); - }).timeout(timeoutMs); + }); // TODO. Fix the transient bug on existing job - // it("should create a scheduled job", async function () { + // it("should create a scheduled job", async () => { // const currentTime: Date = new Date(); // currentTime.setSeconds(currentTime.getSeconds() + 5); // const scheduledTime: string = recorder.variable("scheduledTime", currentTime.toISOString()); @@ -136,7 +123,7 @@ describe("JobRouterClient", function () { // ); // }).timeout(timeoutMs); - it("should get a job", async function () { + it("should get a job", { timeout: timeoutMs }, async () => { const response = await routerClient.path("/routing/jobs/{jobId}", jobId).get(); if (response.status !== "200") { @@ -147,9 +134,9 @@ describe("JobRouterClient", function () { assert.isDefined(result); assert.isDefined(result.id); assert.equal(result.id, jobId); - }).timeout(timeoutMs); + }); - it("should update a job", async function () { + it("should update a job", { timeout: timeoutMs }, async () => { const updatePatch = { ...jobRequest, priority: 25, dispositionCode: "testCode" }; let response = await routerClient.path("/routing/jobs/{jobId}", jobId).patch({ contentType: "application/merge-patch+json", @@ -181,9 +168,9 @@ describe("JobRouterClient", function () { assert.equal(updateResult.priority, updatePatch.priority); assert.equal(removeResult.priority, 1); assert.isUndefined(removeResult.dispositionCode); - }).timeout(timeoutMs); + }); - it("should get queue position for a job", async function () { + it("should get queue position for a job", { timeout: timeoutMs }, async () => { await pollForJobQueued(jobId, routerClient); const response = await routerClient.path("/routing/jobs/{jobId}/position", jobId).get(); @@ -195,9 +182,9 @@ describe("JobRouterClient", function () { assert.isDefined(result); assert.isDefined(result.position); assert.equal(jobId, result.jobId); - }).timeout(timeoutMs); + }); - it("should reclassify a job", async function () { + it("should reclassify a job", { timeout: timeoutMs }, async () => { let result; await retry( async () => { @@ -214,9 +201,9 @@ describe("JobRouterClient", function () { ); assert.isDefined(result); - }).timeout(timeoutMs); + }); - it("should list jobs", async function () { + it("should list jobs", { timeout: timeoutMs }, async () => { const result: RouterJob[] = []; const response = await routerClient .path("/routing/jobs") @@ -233,9 +220,9 @@ describe("JobRouterClient", function () { } assert.isNotEmpty(result); - }).timeout(timeoutMs); + }); - // it("should list scheduled jobs", async function () { + // it("should list scheduled jobs", async () => { // const currentTime: Date = new Date(); // currentTime.setSeconds(currentTime.getSeconds() + 30); // const scheduledTime: string = recorder.variable("scheduledTime", currentTime.toISOString()); @@ -261,7 +248,7 @@ describe("JobRouterClient", function () { // assert.isNotEmpty(result); // }).timeout(timeoutMs); - it("should cancel a job", async function () { + it("should cancel a job", { timeout: timeoutMs }, async () => { let result; await retry( async () => { @@ -276,9 +263,9 @@ describe("JobRouterClient", function () { ); assert.isDefined(result); - }).timeout(timeoutMs); + }); - it("should delete a job", async function () { + it("should delete a job", { timeout: timeoutMs * 4 }, async () => { let deleted = false; await retry( async () => { @@ -304,10 +291,10 @@ describe("JobRouterClient", function () { ); assert.isTrue(deleted); - }).timeout(timeoutMs * 4); + }); // TODO. Fix the transient bug on existing job - // it("should delete a scheduled job", async function () { + // it("should delete a scheduled job", async () => { // let deleted = false; // await retry( // async () => { diff --git a/sdk/communication/communication-job-router-rest/test/public/methods/queues.spec.ts b/sdk/communication/communication-job-router-rest/test/public/methods/queues.spec.ts index 101108aadeac..c8bb26684a3c 100644 --- a/sdk/communication/communication-job-router-rest/test/public/methods/queues.spec.ts +++ b/sdk/communication/communication-job-router-rest/test/public/methods/queues.spec.ts @@ -2,19 +2,21 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { AzureCommunicationRoutingServiceClient, RouterQueueOutput } from "../../../src"; -import { paginate } from "../../../src"; -import type { Context } from "mocha"; +import type { + AzureCommunicationRoutingServiceClient, + RouterQueueOutput, +} from "../../../src/index.js"; +import { paginate } from "../../../src/index.js"; import { getQueueRequest, getExceptionPolicyRequest, getDistributionPolicyRequest, -} from "../utils/testData"; -import { createRecordedRouterClientWithConnectionString } from "../../internal/utils/mockClient"; -import { timeoutMs } from "../utils/constants"; +} from "../utils/testData.js"; +import { createRecordedRouterClientWithConnectionString } from "../../internal/utils/mockClient.js"; +import { timeoutMs } from "../utils/constants.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("JobRouterClient", function () { +describe("JobRouterClient", () => { let routerClient: AzureCommunicationRoutingServiceClient; let recorder: Recorder; @@ -25,9 +27,9 @@ describe("JobRouterClient", function () { const { exceptionPolicyId, exceptionPolicyRequest } = getExceptionPolicyRequest(testRunId); const { queueId, queueRequest } = getQueueRequest(testRunId); - describe("Queue Operations", function () { - this.beforeEach(async function (this: Context) { - ({ routerClient, recorder } = await createRecordedRouterClientWithConnectionString(this)); + describe("Queue Operations", () => { + beforeEach(async (ctx) => { + ({ routerClient, recorder } = await createRecordedRouterClientWithConnectionString(ctx)); await routerClient .path("/routing/distributionPolicies/{distributionPolicyId}", distributionPolicyId) @@ -43,7 +45,7 @@ describe("JobRouterClient", function () { }); }); - this.afterEach(async function (this: Context) { + afterEach(async (ctx) => { await routerClient .path("/routing/distributionPolicies/{distributionPolicyId}", distributionPolicyId) .delete(); @@ -51,12 +53,12 @@ describe("JobRouterClient", function () { .path("/routing/exceptionPolicies/{exceptionPolicyId}", exceptionPolicyId) .delete(); - if (!this.currentTest?.isPending() && recorder) { + if (!ctx.task.pending && recorder) { await recorder.stop(); } }); - it("should create a queue", async function () { + it("should create a queue", { timeout: timeoutMs }, async () => { const response = await routerClient.path("/routing/queues/{queueId}", queueId).patch({ contentType: "application/merge-patch+json", body: queueRequest, @@ -70,9 +72,9 @@ describe("JobRouterClient", function () { assert.isDefined(result); assert.isDefined(result?.id); assert.equal(result.name, queueRequest.name); - }).timeout(timeoutMs); + }); - it("should get a queue", async function () { + it("should get a queue", { timeout: timeoutMs }, async () => { const response = await routerClient.path("/routing/queues/{queueId}", queueId).get(); if (response.status !== "200") { @@ -82,9 +84,9 @@ describe("JobRouterClient", function () { assert.equal(result.id, queueId); assert.equal(result.name, queueRequest.name); - }).timeout(timeoutMs); + }); - it("should update a queue", async function () { + it("should update a queue", { timeout: timeoutMs }, async () => { const updatePatch = { ...queueRequest, name: "new-name" }; let response = await routerClient.path("/routing/queues/{queueId}", queueId).patch({ contentType: "application/merge-patch+json", @@ -113,9 +115,9 @@ describe("JobRouterClient", function () { assert.isDefined(removeResult.id); assert.equal(updateResult.name, updatePatch.name); assert.isUndefined(removeResult.name); - }).timeout(timeoutMs); + }); - it("should list queues", async function () { + it("should list queues", { timeout: timeoutMs }, async () => { const result: RouterQueueOutput[] = []; const response = await routerClient .path("/routing/queues") @@ -132,9 +134,9 @@ describe("JobRouterClient", function () { } assert.isNotEmpty(result); - }).timeout(timeoutMs); + }); - it("should delete a queue", async function () { + it("should delete a queue", { timeout: timeoutMs }, async () => { const response = await routerClient.path("/routing/queues/{queueId}", queueId).delete(); if (response.status !== "204") { @@ -142,6 +144,6 @@ describe("JobRouterClient", function () { } assert.isDefined(response); - }).timeout(timeoutMs); + }); }); }); diff --git a/sdk/communication/communication-job-router-rest/test/public/methods/workers.spec.ts b/sdk/communication/communication-job-router-rest/test/public/methods/workers.spec.ts index 7b601bb6659b..20846758964e 100644 --- a/sdk/communication/communication-job-router-rest/test/public/methods/workers.spec.ts +++ b/sdk/communication/communication-job-router-rest/test/public/methods/workers.spec.ts @@ -2,20 +2,22 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureCommunicationRoutingServiceClient, RouterWorkerOutput } from "../../../src"; -import { paginate } from "../../../src"; +import type { + AzureCommunicationRoutingServiceClient, + RouterWorkerOutput, +} from "../../../src/index.js"; +import { paginate } from "../../../src/index.js"; import { getDistributionPolicyRequest, getExceptionPolicyRequest, getQueueRequest, getWorkerRequest, -} from "../utils/testData"; -import { createRecordedRouterClientWithConnectionString } from "../../internal/utils/mockClient"; -import { sleep, timeoutMs } from "../utils/constants"; +} from "../utils/testData.js"; +import { createRecordedRouterClientWithConnectionString } from "../../internal/utils/mockClient.js"; +import { sleep, timeoutMs } from "../utils/constants.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("JobRouterClient", function () { +describe("JobRouterClient", () => { let routerClient: AzureCommunicationRoutingServiceClient; let recorder: Recorder; @@ -27,9 +29,9 @@ describe("JobRouterClient", function () { const { queueId, queueRequest } = getQueueRequest(testRunId); const { workerId, workerRequest } = getWorkerRequest(testRunId); - describe("Worker Operations", function () { - this.beforeEach(async function (this: Context) { - ({ routerClient, recorder } = await createRecordedRouterClientWithConnectionString(this)); + describe("Worker Operations", () => { + beforeEach(async (ctx) => { + ({ routerClient, recorder } = await createRecordedRouterClientWithConnectionString(ctx)); await routerClient .path("/routing/distributionPolicies/{distributionPolicyId}", distributionPolicyId) @@ -49,7 +51,7 @@ describe("JobRouterClient", function () { }); }); - this.afterEach(async function (this: Context) { + afterEach(async (ctx) => { await routerClient .path("/routing/distributionPolicies/{distributionPolicyId}", distributionPolicyId) .delete(); @@ -58,12 +60,12 @@ describe("JobRouterClient", function () { .delete(); await routerClient.path("/routing/queues/{queueId}", queueId).delete(); - if (!this.currentTest?.isPending() && recorder) { + if (!ctx.task.pending && recorder) { await recorder.stop(); } }); - it("should create a worker", async function () { + it("should create a worker", { timeout: timeoutMs }, async () => { const response = await routerClient.path("/routing/workers/{workerId}", workerId).patch({ contentType: "application/merge-patch+json", body: workerRequest, @@ -77,9 +79,9 @@ describe("JobRouterClient", function () { assert.isDefined(result); assert.isDefined(result?.id); assert.equal(result.capacity, workerRequest.capacity); - }).timeout(timeoutMs); + }); - it("should get a worker", async function () { + it("should get a worker", { timeout: timeoutMs }, async () => { const response = await routerClient.path("/routing/workers/{workerId}", workerId).get(); if (response.status !== "200") { @@ -90,9 +92,9 @@ describe("JobRouterClient", function () { assert.equal(result.id, workerId); assert.equal(result.capacity, workerRequest.capacity); assert.deepEqual(result.channels, workerRequest.channels); - }).timeout(timeoutMs); + }); - it("should update a worker", async function () { + it("should update a worker", { timeout: timeoutMs }, async () => { const updatePatch = { ...workerRequest, capacity: 100, @@ -126,9 +128,9 @@ describe("JobRouterClient", function () { assert.isDefined(removeResult.id); assert.equal(updateResult.capacity, updatePatch.capacity); assert.isEmpty(removeResult.tags); - }).timeout(timeoutMs); + }); - it("should register and deregister a worker", async function () { + it("should register and deregister a worker", { timeout: timeoutMs }, async () => { const registerPatch = { ...workerRequest, availableForOffers: true }; let response = await routerClient.path("/routing/workers/{workerId}", workerId).patch({ contentType: "application/merge-patch+json", @@ -159,9 +161,9 @@ describe("JobRouterClient", function () { assert.isDefined(deregisterResult); assert.isDefined(deregisterResult?.id); assert.equal(deregisterResult.availableForOffers, false); - }).timeout(timeoutMs); + }); - it("should list workers", async function () { + it("should list workers", { timeout: timeoutMs }, async () => { const result: RouterWorkerOutput[] = []; const response = await routerClient .path("/routing/workers") @@ -178,9 +180,9 @@ describe("JobRouterClient", function () { } assert.isNotEmpty(result); - }).timeout(timeoutMs); + }); - it("should delete a worker", async function () { + it("should delete a worker", { timeout: timeoutMs }, async () => { const response = await routerClient.path("/routing/workers/{workerId}", workerId).delete(); if (response.status !== "204") { @@ -188,6 +190,6 @@ describe("JobRouterClient", function () { } assert.isDefined(response); - }).timeout(timeoutMs); + }); }); }); diff --git a/sdk/communication/communication-job-router-rest/test/public/sampleTest.spec.ts b/sdk/communication/communication-job-router-rest/test/public/sampleTest.spec.ts deleted file mode 100644 index 707dd944309e..000000000000 --- a/sdk/communication/communication-job-router-rest/test/public/sampleTest.spec.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { createRecorder } from "./utils/recordedClient"; -import type { Context } from "mocha"; - -describe("My test", () => { - let recorder: Recorder; - - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("sample test", async function () { - assert.equal(1, 1); - }); -}); diff --git a/sdk/communication/communication-job-router-rest/test/public/utils/connection.ts b/sdk/communication/communication-job-router-rest/test/public/utils/connection.ts index 50c6b8245229..339bb57667cf 100644 --- a/sdk/communication/communication-job-router-rest/test/public/utils/connection.ts +++ b/sdk/communication/communication-job-router-rest/test/public/utils/connection.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { isNode } from "@azure/core-util"; +import { isNodeLike } from "@azure/core-util"; export const baseUri = "https://contoso.api.fake"; @@ -11,6 +11,6 @@ export const generateToken = (): string => { const validForMinutes = 60; const expiresOn = (Date.now() + validForMinutes * 60 * 1000) / 1000; const tokenString = JSON.stringify({ exp: expiresOn }); - const base64Token = isNode ? Buffer.from(tokenString).toString("base64") : btoa(tokenString); + const base64Token = isNodeLike ? Buffer.from(tokenString).toString("base64") : btoa(tokenString); return `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.${base64Token}.adM-ddBZZlQ1WlN3pdPBOF5G4Wh9iZpxNP_fSvpF4cWs`; }; diff --git a/sdk/communication/communication-job-router-rest/test/public/utils/env.browser.ts b/sdk/communication/communication-job-router-rest/test/public/utils/env-browser.mts similarity index 100% rename from sdk/communication/communication-job-router-rest/test/public/utils/env.browser.ts rename to sdk/communication/communication-job-router-rest/test/public/utils/env-browser.mts diff --git a/sdk/communication/communication-job-router-rest/test/public/utils/polling.ts b/sdk/communication/communication-job-router-rest/test/public/utils/polling.ts index 7edf1fbdd66b..59616a34696e 100644 --- a/sdk/communication/communication-job-router-rest/test/public/utils/polling.ts +++ b/sdk/communication/communication-job-router-rest/test/public/utils/polling.ts @@ -1,32 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { AzureCommunicationRoutingServiceClient, RouterJobOutput } from "../../../src"; -import type { RouterJob } from "../../../src"; - -// export async function pollForJobOffer( -// workerId: string, -// client: JobRouterClient -// ): Promise { -// let worker: RouterWorker = {}; -// while (worker.offers?.length === undefined || worker.offers.length < 1) { -// worker = await client.getWorker(workerId); -// } -// -// return worker.offers[0]; -// } -// -// export async function pollForJobAssignment( -// jobId: string, -// client: JobRouterClient -// ): Promise { -// let job: RouterJob = {}; -// while (job.assignments === undefined || Object.keys(job.assignments).length < 1) { -// job = await client.getJob(jobId); -// } -// -// return Object.values(job.assignments)[0]; -// } +import type { + AzureCommunicationRoutingServiceClient, + RouterJobOutput, +} from "../../../src/index.js"; +import type { RouterJob } from "../../../src/index.js"; export async function pollForJobQueued( jobId: string, @@ -47,18 +26,6 @@ export async function pollForJobQueued( return job; } -// export async function pollForJobCancelled( -// jobId: string, -// client: JobRouterClient -// ): Promise { -// let job: RouterJob = {}; -// while (job.status !== "cancelled") { -// job = await client.getJob(jobId); -// } -// -// return job; -// } - /** * Runs the function `fn` * and retries automatically if it fails. @@ -72,7 +39,7 @@ export const retry = async ( fn: () => Promise | T, { retries, retryIntervalMs }: { retries: number; retryIntervalMs: number }, ): Promise => { - const sleep = (ms = 0) => new Promise((resolve) => setTimeout(resolve, ms)); + const sleep = (ms = 0): Promise => new Promise((resolve) => setTimeout(resolve, ms)); try { return await fn(); } catch (error) { diff --git a/sdk/communication/communication-job-router-rest/test/public/utils/recordedClient.ts b/sdk/communication/communication-job-router-rest/test/public/utils/recordedClient.ts index d7508a2c1842..7c20ce5e5829 100644 --- a/sdk/communication/communication-job-router-rest/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-job-router-rest/test/public/utils/recordedClient.ts @@ -1,10 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. - -import type { Context } from "mocha"; -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder } from "@azure-tools/test-recorder"; -import "./env"; +import "./env.js"; const envSetupForPlayback: Record = { ENDPOINT: "https://endpoint", @@ -27,8 +25,8 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); +export async function createRecorder(context: TestInfo): Promise { + const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; } diff --git a/sdk/communication/communication-job-router-rest/test/public/utils/testData.ts b/sdk/communication/communication-job-router-rest/test/public/utils/testData.ts index 249679c4716a..977538601509 100644 --- a/sdk/communication/communication-job-router-rest/test/public/utils/testData.ts +++ b/sdk/communication/communication-job-router-rest/test/public/utils/testData.ts @@ -14,7 +14,7 @@ import type { RouterWorker, StaticQueueSelectorAttachment, RouterJob, -} from "../../../src"; +} from "../../../src/index.js"; const queueId = "test-a-queue"; const exceptionPolicyId = "test-e-policy"; diff --git a/sdk/communication/communication-job-router-rest/tsconfig.browser.config.json b/sdk/communication/communication-job-router-rest/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/communication/communication-job-router-rest/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/communication/communication-job-router-rest/tsconfig.json b/sdk/communication/communication-job-router-rest/tsconfig.json index a0d40848cb98..d01783fe7c9f 100644 --- a/sdk/communication/communication-job-router-rest/tsconfig.json +++ b/sdk/communication/communication-job-router-rest/tsconfig.json @@ -1,5 +1,17 @@ { "extends": "../../../tsconfig", - "compilerOptions": { "outDir": "./dist-esm", "declarationDir": "./types" }, - "include": ["src/**/*.ts", "./test/**/*.ts"] + "compilerOptions": { + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." + }, + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/communication/communication-job-router-rest/vitest.browser.config.ts b/sdk/communication/communication-job-router-rest/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/communication/communication-job-router-rest/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-job-router-rest/vitest.config.ts b/sdk/communication/communication-job-router-rest/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/communication/communication-job-router-rest/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-messages-rest/api-extractor.json b/sdk/communication/communication-messages-rest/api-extractor.json index e4a0816f672e..b5983fcc4f78 100644 --- a/sdk/communication/communication-messages-rest/api-extractor.json +++ b/sdk/communication/communication-messages-rest/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "mainEntryPointFilePath": "dist/esm/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/communication-messages.d.ts" + "publicTrimmedFilePath": "dist/communication-messages.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } } diff --git a/sdk/communication/communication-messages-rest/karma.conf.js b/sdk/communication/communication-messages-rest/karma.conf.js deleted file mode 100644 index e9819f9fe275..000000000000 --- a/sdk/communication/communication-messages-rest/karma.conf.js +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: [ - "TEST_MODE", - "AZURE_CLIENT_SECRET", - "AZURE_CLIENT_ID", - "AZURE_TENANT_ID", - "CHANNEL_ID", - "RECIPIENT_PHONE_NUMBER", - "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/communication/communication-messages-rest/package.json b/sdk/communication/communication-messages-rest/package.json index ea0c3727d42c..c5b4527f238b 100644 --- a/sdk/communication/communication-messages-rest/package.json +++ b/sdk/communication/communication-messages-rest/package.json @@ -13,31 +13,28 @@ "isomorphic" ], "license": "MIT", - "main": "dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/communication-messages.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/", - "dist-esm/src/", - "types/communication-messages.d.ts", "README.md", - "LICENSE", - "review/*" + "LICENSE" ], "engines": { "node": ">=18.0.0" }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run vendored cross-env ONLY_BROWSER=true rollup -c 2>&1", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run vendored cross-env ONLY_NODE=true rollup -c 2>&1", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run vendored cross-env ONLY_BROWSER=true rollup -c 2>&1", + "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api", + "build:node": "dev-tool run build-package && dev-tool run vendored cross-env ONLY_NODE=true rollup -c 2>&1", "build:samples": "echo skipped.", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", @@ -54,15 +51,15 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.4.0", - "@azure/communication-common": "^2.2.0", + "@azure-rest/core-client": "^2.3.1", + "@azure/communication-common": "^2.3.1", "@azure/core-auth": "^1.6.0", "@azure/core-paging": "^1.5.0", "@azure/core-rest-pipeline": "^1.12.0", @@ -71,33 +68,22 @@ "tslib": "^2.2.0" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^4.2.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "autorest": "latest", - "chai": "^4.2.0", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^2.1.2", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.4.0", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.48.2", + "typescript": "~5.6.2", + "vitest": "^2.1.5" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/communication-messages-rest-rest/README.md", "//metadata": { @@ -108,9 +94,7 @@ } ] }, - "browser": { - "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" - }, + "browser": "./dist/browser/index.js", "//sampleConfiguration": { "productName": "Azure client library for Azure Communication Messages Services", "productSlugs": [ @@ -118,5 +102,42 @@ "azure-communication-services" ], "apiRefLink": "https://learn.microsoft.com/javascript/api/overview/azure/communication-messages-rest-readme?view=azure-node-latest" + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/communication/communication-messages-rest/samples-dev/DownloadMedia.ts b/sdk/communication/communication-messages-rest/samples-dev/DownloadMedia.ts index 0d37d9255385..d2e4454bdd2b 100644 --- a/sdk/communication/communication-messages-rest/samples-dev/DownloadMedia.ts +++ b/sdk/communication/communication-messages-rest/samples-dev/DownloadMedia.ts @@ -7,7 +7,7 @@ import NotificationClient from "@azure-rest/communication-messages"; import { AzureKeyCredential } from "@azure/core-auth"; -import * as fs from "fs"; +import * as fs from "node:fs"; // Load the .env file if it exists import * as dotenv from "dotenv"; diff --git a/sdk/communication/communication-messages-rest/src/generated/src/clientDefinitions.ts b/sdk/communication/communication-messages-rest/src/generated/src/clientDefinitions.ts index 26e53c5baca3..30b588cbdff9 100644 --- a/sdk/communication/communication-messages-rest/src/generated/src/clientDefinitions.ts +++ b/sdk/communication/communication-messages-rest/src/generated/src/clientDefinitions.ts @@ -5,7 +5,7 @@ import { GetMediaParameters, SendParameters, ListTemplatesParameters, -} from "./parameters"; +} from "./parameters.js"; import { GetMedia200Response, GetMediaDefaultResponse, @@ -13,7 +13,7 @@ import { SendDefaultResponse, ListTemplates200Response, ListTemplatesDefaultResponse, -} from "./responses"; +} from "./responses.js"; import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface GetMedia { diff --git a/sdk/communication/communication-messages-rest/src/generated/src/index.ts b/sdk/communication/communication-messages-rest/src/generated/src/index.ts index f2046b303f34..56dbb282687a 100644 --- a/sdk/communication/communication-messages-rest/src/generated/src/index.ts +++ b/sdk/communication/communication-messages-rest/src/generated/src/index.ts @@ -1,15 +1,15 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import MessagesServiceClient from "./messagesServiceClient"; +import MessagesServiceClient from "./messagesServiceClient.js"; -export * from "./messagesServiceClient"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./paginateHelper"; +export * from "./messagesServiceClient.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./paginateHelper.js"; export default MessagesServiceClient; diff --git a/sdk/communication/communication-messages-rest/src/generated/src/isUnexpected.ts b/sdk/communication/communication-messages-rest/src/generated/src/isUnexpected.ts index 8d5724f47831..4ba236a0785a 100644 --- a/sdk/communication/communication-messages-rest/src/generated/src/isUnexpected.ts +++ b/sdk/communication/communication-messages-rest/src/generated/src/isUnexpected.ts @@ -8,7 +8,7 @@ import { SendDefaultResponse, ListTemplates200Response, ListTemplatesDefaultResponse, -} from "./responses"; +} from "./responses.js"; const responseMap: Record = { "GET /messages/streams/{id}": ["200"], diff --git a/sdk/communication/communication-messages-rest/src/generated/src/messagesServiceClient.ts b/sdk/communication/communication-messages-rest/src/generated/src/messagesServiceClient.ts index 81c04ef3a03d..2ccd514458b1 100644 --- a/sdk/communication/communication-messages-rest/src/generated/src/messagesServiceClient.ts +++ b/sdk/communication/communication-messages-rest/src/generated/src/messagesServiceClient.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "./logger"; +import { logger } from "./logger.js"; import { TokenCredential, KeyCredential } from "@azure/core-auth"; -import { MessagesServiceClient } from "./clientDefinitions"; +import { MessagesServiceClient } from "./clientDefinitions.js"; /** The optional parameters for the client */ export interface MessagesServiceClientOptions extends ClientOptions { diff --git a/sdk/communication/communication-messages-rest/src/generated/src/parameters.ts b/sdk/communication/communication-messages-rest/src/generated/src/parameters.ts index a168bd0214c8..f46c2e46e766 100644 --- a/sdk/communication/communication-messages-rest/src/generated/src/parameters.ts +++ b/sdk/communication/communication-messages-rest/src/generated/src/parameters.ts @@ -3,7 +3,7 @@ import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; import { RequestParameters } from "@azure-rest/core-client"; -import { NotificationContent } from "./models"; +import { NotificationContent } from "./models.js"; export interface GetMediaHeaders { /** An opaque, globally-unique, client-generated string identifier for the request. */ diff --git a/sdk/communication/communication-messages-rest/src/generated/src/responses.ts b/sdk/communication/communication-messages-rest/src/generated/src/responses.ts index 0c622f0ec8d3..188eefd8dfeb 100644 --- a/sdk/communication/communication-messages-rest/src/generated/src/responses.ts +++ b/sdk/communication/communication-messages-rest/src/generated/src/responses.ts @@ -7,7 +7,7 @@ import { RepeatabilityResultOutput, SendMessageResultOutput, PagedMessageTemplateItemOutput, -} from "./outputModels"; +} from "./outputModels.js"; export interface GetMedia200Headers { /** An opaque, globally-unique, client-generated string identifier for the request. */ diff --git a/sdk/communication/communication-messages-rest/src/index.ts b/sdk/communication/communication-messages-rest/src/index.ts index 258a5af85f13..e69027f27809 100644 --- a/sdk/communication/communication-messages-rest/src/index.ts +++ b/sdk/communication/communication-messages-rest/src/index.ts @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import MessagesServiceClient from "./messagesServiceClient"; -export * from "./generated/src/messagesServiceClient"; -export * from "./generated/src/parameters"; -export * from "./generated/src/responses"; -export * from "./generated/src/clientDefinitions"; -export * from "./generated/src/isUnexpected"; -export * from "./generated/src/models"; -export * from "./generated/src/outputModels"; -export * from "./generated/src/paginateHelper"; +import MessagesServiceClient from "./messagesServiceClient.js"; +export * from "./generated/src/messagesServiceClient.js"; +export * from "./generated/src/parameters.js"; +export * from "./generated/src/responses.js"; +export * from "./generated/src/clientDefinitions.js"; +export * from "./generated/src/isUnexpected.js"; +export * from "./generated/src/models.js"; +export * from "./generated/src/outputModels.js"; +export * from "./generated/src/paginateHelper.js"; export default MessagesServiceClient; diff --git a/sdk/communication/communication-messages-rest/src/messagesServiceClient.ts b/sdk/communication/communication-messages-rest/src/messagesServiceClient.ts index bf96056bd9b4..0732b0ca6794 100644 --- a/sdk/communication/communication-messages-rest/src/messagesServiceClient.ts +++ b/sdk/communication/communication-messages-rest/src/messagesServiceClient.ts @@ -5,8 +5,8 @@ import type { TokenCredential, KeyCredential } from "@azure/core-auth"; import { isTokenCredential, isKeyCredential } from "@azure/core-auth"; import type { ClientOptions } from "@azure-rest/core-client"; import { parseClientArguments, createCommunicationAuthPolicy } from "@azure/communication-common"; -import type { MessagesServiceClient } from "./generated/src/clientDefinitions"; -import GeneratedAzureCommunicationMessageServiceClient from "./generated/src/messagesServiceClient"; +import type { MessagesServiceClient } from "./generated/src/clientDefinitions.js"; +import GeneratedAzureCommunicationMessageServiceClient from "./generated/src/messagesServiceClient.js"; /** * Initialize a new instance of `MessagesServiceClient` diff --git a/sdk/communication/communication-messages-rest/test/public/messageTest.spec.ts b/sdk/communication/communication-messages-rest/test/public/messageTest.spec.ts index 455e125b579d..2ce8b5eed45f 100644 --- a/sdk/communication/communication-messages-rest/test/public/messageTest.spec.ts +++ b/sdk/communication/communication-messages-rest/test/public/messageTest.spec.ts @@ -3,9 +3,7 @@ import type { Recorder } from "@azure-tools/test-recorder"; import { env } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { createRecorderWithConnectionString } from "./utils/recordedClient"; -import type { Context } from "mocha"; +import { createRecorderWithConnectionString } from "./utils/recordedClient.js"; import type { MessagesServiceClient, Send202Response, @@ -17,23 +15,24 @@ import type { AudioNotificationContent, VideoNotificationContent, DocumentNotificationContent, -} from "../../src/generated/src"; +} from "../../src/generated/src/index.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; describe("Notification Messages Test", () => { let recorder: Recorder; let client: MessagesServiceClient; - beforeEach(async function (this: Context) { - ({ client, recorder } = await createRecorderWithConnectionString(this)); + beforeEach(async (ctx) => { + ({ client, recorder } = await createRecorderWithConnectionString(ctx)); }); - afterEach(async function () { - if (!this.currentTest?.isPending()) { + afterEach(async (ctx) => { + if (!ctx.task.pending) { await recorder.stop(); } }); - it("send simple text message test", async function () { + it("send simple text message test", async () => { const result = await client.path("/messages/notifications:send").post({ contentType: "application/json", body: { @@ -49,7 +48,7 @@ describe("Notification Messages Test", () => { assert.isDefined(response.body.receipts[0].messageId); }); - it("send document message test", async function () { + it("send document message test", async () => { const documentMessage: DocumentNotificationContent = { kind: "document", mediaUri: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", @@ -67,7 +66,7 @@ describe("Notification Messages Test", () => { assert.isDefined(response.body.receipts[0].messageId); }); - it("send video message test", async function () { + it("send video message test", async () => { const videoMessage: VideoNotificationContent = { kind: "video", mediaUri: "https://sample-videos.com/video321/mp4/480/big_buck_bunny_480p_1mb.mp4", @@ -85,7 +84,7 @@ describe("Notification Messages Test", () => { assert.isDefined(response.body.receipts[0].messageId); }); - it("send audio message test", async function () { + it("send audio message test", async () => { const audioMessage: AudioNotificationContent = { kind: "audio", mediaUri: "https://sample-videos.com/audio/mp3/wave.mp3", @@ -103,7 +102,7 @@ describe("Notification Messages Test", () => { assert.isDefined(response.body.receipts[0].messageId); }); - it("send image message test", async function () { + it("send image message test", async () => { const imageMessage: ImageNotificationContent = { kind: "image", mediaUri: "https://www.w3schools.com/w3css/img_lights.jpg", @@ -122,7 +121,7 @@ describe("Notification Messages Test", () => { assert.isDefined(response.body.receipts[0].messageId); }); - it("send simple text template message test", async function () { + it("send simple text template message test", async () => { const DaysTemplateValue: MessageTemplateValue = { kind: "text", name: "Days", @@ -160,7 +159,7 @@ describe("Notification Messages Test", () => { assert.isDefined(response.body.receipts[0].messageId); }); - it("send template message with video test", async function () { + it("send template message with video test", async () => { const HeaderVideo: MessageTemplateValue = { kind: "video", name: "HappyHourVideo", @@ -218,7 +217,7 @@ describe("Notification Messages Test", () => { assert.isDefined(response.body.receipts[0].messageId); }); - it("send template message with image test", async function () { + it("send template message with image test", async () => { const HeaderImage: MessageTemplateValue = { kind: "image", name: "CompanyPhoto", @@ -267,7 +266,7 @@ describe("Notification Messages Test", () => { assert.isDefined(response.body.receipts[0].messageId); }); - it("send template message with document test", async function () { + it("send template message with document test", async () => { const HeaderDoc: MessageTemplateValue = { kind: "document", name: "BoardingPass", @@ -334,7 +333,7 @@ describe("Notification Messages Test", () => { assert.isDefined(response.body.receipts[0].messageId); }); - it("send template message with quick reply buttons test", async function () { + it("send template message with quick reply buttons test", async () => { const NameTemplateValue: MessageTemplateValue = { kind: "text", name: "NameValue", @@ -399,17 +398,17 @@ describe("Message Template Read Test", () => { let recorder: Recorder; let client: MessagesServiceClient; - beforeEach(async function (this: Context) { - ({ client, recorder } = await createRecorderWithConnectionString(this)); + beforeEach(async (ctx) => { + ({ client, recorder } = await createRecorderWithConnectionString(ctx)); }); - afterEach(async function () { - if (!this.currentTest?.isPending()) { + afterEach(async (ctx) => { + if (!ctx.task.pending) { await recorder.stop(); } }); - it("get template test", async function () { + it("get template test", async () => { const result = await client .path("/messages/channels/{channelId}/templates", env.CHANNEL_ID || "") .get(); diff --git a/sdk/communication/communication-messages-rest/test/public/utils/env.browser.ts b/sdk/communication/communication-messages-rest/test/public/utils/env-browser.mts similarity index 100% rename from sdk/communication/communication-messages-rest/test/public/utils/env.browser.ts rename to sdk/communication/communication-messages-rest/test/public/utils/env-browser.mts diff --git a/sdk/communication/communication-messages-rest/test/public/utils/recordedClient.ts b/sdk/communication/communication-messages-rest/test/public/utils/recordedClient.ts index 4adaeff1146f..434976aa17c6 100644 --- a/sdk/communication/communication-messages-rest/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-messages-rest/test/public/utils/recordedClient.ts @@ -1,11 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. - -import type { Context, Test } from "mocha"; -import type { RecorderStartOptions, SanitizerOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, SanitizerOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, env } from "@azure-tools/test-recorder"; -import type { MessagesServiceClient } from "../../../src"; -import MessageClient from "../../../src"; +import type { MessagesServiceClient } from "../../../src/index.js"; +import MessageClient from "../../../src/index.js"; import { parseConnectionString } from "@azure/communication-common"; import type { TokenCredential } from "@azure/core-auth"; import { createTestCredential } from "@azure-tools/test-credential"; @@ -57,7 +55,7 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: Test | undefined): Promise { +export async function createRecorder(context: TestInfo | undefined): Promise { const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); await recorder.setMatcher("CustomDefaultMatcher", { @@ -71,8 +69,8 @@ export async function createRecorder(context: Test | undefined): Promise { - const recorder = await createRecorder(context.currentTest); +export async function createRecorderWithToken(context: TestInfo): Promise { + const recorder = await createRecorder(context); const credential: TokenCredential = createTestCredential(); const endpoint = parseConnectionString( @@ -86,9 +84,9 @@ export async function createRecorderWithToken(context: Context): Promise { - const recorder = await createRecorder(context.currentTest); + const recorder = await createRecorder(context); const client = MessageClient( env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "", diff --git a/sdk/communication/communication-messages-rest/tsconfig.browser.config.json b/sdk/communication/communication-messages-rest/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/communication/communication-messages-rest/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/communication/communication-messages-rest/tsconfig.json b/sdk/communication/communication-messages-rest/tsconfig.json index 7a24ea1fe5d3..e803d4d78e1a 100644 --- a/sdk/communication/communication-messages-rest/tsconfig.json +++ b/sdk/communication/communication-messages-rest/tsconfig.json @@ -1,11 +1,20 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "paths": { "@azure-rest/communication-messages": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/communication/communication-messages-rest/vitest.browser.config.ts b/sdk/communication/communication-messages-rest/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/communication/communication-messages-rest/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-messages-rest/vitest.config.ts b/sdk/communication/communication-messages-rest/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/communication/communication-messages-rest/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-rooms/.nycrc b/sdk/communication/communication-rooms/.nycrc deleted file mode 100644 index 29174b423579..000000000000 --- a/sdk/communication/communication-rooms/.nycrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "include": ["dist-esm/src/**/*.js"], - "exclude": ["**/*.d.ts", "dist-esm/src/generated/*"], - "reporter": ["text-summary", "html", "cobertura"], - "exclude-after-remap": false, - "sourceMap": true, - "produce-source-map": true, - "instrument": true, - "all": true -} diff --git a/sdk/communication/communication-rooms/api-extractor.json b/sdk/communication/communication-rooms/api-extractor.json index f47cb6f46dc6..65ad997b8933 100644 --- a/sdk/communication/communication-rooms/api-extractor.json +++ b/sdk/communication/communication-rooms/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/communication-rooms.d.ts" + "publicTrimmedFilePath": "dist/communication-rooms.d.ts" }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/communication/communication-rooms/karma.conf.js b/sdk/communication/communication-rooms/karma.conf.js deleted file mode 100644 index f95d5eee9346..000000000000 --- a/sdk/communication/communication-rooms/karma.conf.js +++ /dev/null @@ -1,127 +0,0 @@ -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); - -require("dotenv").config(); - -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - ], - - // list of files / patterns to load in the browser - files: ["dist-test/index.browser.js"], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - //"dist-test/index.browser.js": ["coverage"] - }, - - // inject following environment values into browser testing with window.__env__ - // environment values MUST be exported or set with same console running "karma start" - // https://www.npmjs.com/package/karma-env-preprocessor - envPreprocessor: [ - "TEST_MODE", - "COMMUNICATION_CONNECTION_STRING_ROOMS", - "COMMUNICATION_SAMPLES_CONNECTION_STRING", - "BASE_URL", - "COMMUNICATION_ENDPOINT", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // start these browsers - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - // 'ChromeHeadless', 'Chrome', 'Firefox', 'Edge', 'IE' - browsers: ["HeadlessChrome"], - - customLaunchers: { - HeadlessChrome: { - base: "ChromeHeadless", - flags: ["--no-sandbox"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: true, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 600000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/communication/communication-rooms/package.json b/sdk/communication/communication-rooms/package.json index 7995fb4f44fc..183061454bac 100644 --- a/sdk/communication/communication-rooms/package.json +++ b/sdk/communication/communication-rooms/package.json @@ -9,14 +9,14 @@ }, "dependencies": { "@azure/communication-common": "^2.3.1", - "@azure/core-auth": "^1.3.2", - "@azure/core-client": "^1.6.0", - "@azure/core-paging": "^1.5.0", - "@azure/core-rest-pipeline": "^1.3.0", - "@azure/core-tracing": "^1.0.0", - "@azure/core-util": "^1.6.1", - "@azure/logger": "^1.0.0", - "tslib": "^1.9.3" + "@azure/core-auth": "^1.9.0", + "@azure/core-client": "^1.9.2", + "@azure/core-paging": "^1.6.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/core-tracing": "^1.2.0", + "@azure/core-util": "^1.11.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" }, "keywords": [ "node", @@ -30,31 +30,24 @@ "cloud" ], "license": "MIT", - "main": "dist/index.js", - "module": "dist-esm/src/index.js", - "types": "types/communication-rooms.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-utils": "~1.0.0", - "@azure/communication-identity": "^1.1.0-beta.2", - "@azure/core-auth": "^1.3.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", + "@azure/communication-identity": "^1.3.1", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@types/chai": "~4.3.1", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "@types/sinon": "^17.0.0", - "chai": "^4.2.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-env-preprocessor": "^0.1.1", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "sinon": "^17.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.49.0", + "typescript": "~5.6.2", + "vitest": "^2.1.5" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/communication-rooms/", "repository": "github:Azure/azure-sdk-for-js", @@ -63,35 +56,33 @@ }, "files": [ "dist/", - "dist-esm/src/", - "types/communication-rooms.d.ts", "README.md", "LICENSE" ], "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:node": "tsc -p . && dev-tool run bundle", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:node": "dev-tool run build-package && dev-tool run bundle", "build:samples": "dev-tool samples publish --force", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", - "extract-api": "tsc -p . && dev-tool run extract-api", + "extract-api": "dev-tool run build-package && dev-tool run extract-api", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript --disable-async-iterators ./swagger/README.md && rushx format", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "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'", - "lint": "eslint package.json api-extractor.json README.md src test", - "lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]", + "integration-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", + "lint": "dev-tool run vendored eslint package.json api-extractor.json README.md src test", + "lint:fix": "dev-tool run vendored eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", "test": "npm run build:test && npm run unit-test && npm run integration-test", "test:browser": "npm run build:test && npm run unit-test:browser", "test:node": "npm run build:test && npm run unit-test:node", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run test:browser", - "unit-test:node": "dev-tool run vendored cross-env TS_NODE_FILES=true TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\":\\\"commonjs\\\"}\" dev-tool run test:node-ts-input -- --timeout 1200000 'test/**/*.spec.ts'", + "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -118,5 +109,43 @@ "requiredResources": { "Azure Communication Services account": "https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource" } + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "browser": "./dist/browser/index.js", + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/communication/communication-rooms/src/generated/src/index.ts b/sdk/communication/communication-rooms/src/generated/src/index.ts index 71e47769e5a4..fce4bd93d32b 100644 --- a/sdk/communication/communication-rooms/src/generated/src/index.ts +++ b/sdk/communication/communication-rooms/src/generated/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { RoomsRestClient } from "./roomsRestClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { RoomsRestClient } from "./roomsRestClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/communication/communication-rooms/src/generated/src/models/parameters.ts b/sdk/communication/communication-rooms/src/generated/src/models/parameters.ts index 8d5371288937..85a8e0132847 100644 --- a/sdk/communication/communication-rooms/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-rooms/src/generated/src/models/parameters.ts @@ -15,7 +15,7 @@ import { CreateRoomRequest as CreateRoomRequestMapper, UpdateRoomRequest as UpdateRoomRequestMapper, UpdateParticipantsRequest as UpdateParticipantsRequestMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/sdk/communication/communication-rooms/src/generated/src/operations/index.ts b/sdk/communication/communication-rooms/src/generated/src/operations/index.ts index f6a3087c1549..937d8ab195a4 100644 --- a/sdk/communication/communication-rooms/src/generated/src/operations/index.ts +++ b/sdk/communication/communication-rooms/src/generated/src/operations/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./rooms"; -export * from "./participants"; +export * from "./rooms.js"; +export * from "./participants.js"; diff --git a/sdk/communication/communication-rooms/src/generated/src/operations/participants.ts b/sdk/communication/communication-rooms/src/generated/src/operations/participants.ts index 2ba1a5739fe9..9c70122cdaf0 100644 --- a/sdk/communication/communication-rooms/src/generated/src/operations/participants.ts +++ b/sdk/communication/communication-rooms/src/generated/src/operations/participants.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { tracingClient } from "../tracing"; -import { Participants } from "../operationsInterfaces"; +import { tracingClient } from "../tracing.js"; +import { Participants } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { RoomsRestClient } from "../roomsRestClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { RoomsRestClient } from "../roomsRestClient.js"; import { ParticipantsListOptionalParams, ParticipantsListResponse, @@ -19,7 +19,7 @@ import { ParticipantsUpdateResponse, ParticipantsListNextOptionalParams, ParticipantsListNextResponse -} from "../models"; +} from "../models/index.js"; /** Class containing Participants operations. */ export class ParticipantsImpl implements Participants { diff --git a/sdk/communication/communication-rooms/src/generated/src/operations/rooms.ts b/sdk/communication/communication-rooms/src/generated/src/operations/rooms.ts index 86a105eb7fe1..30593f9c7663 100644 --- a/sdk/communication/communication-rooms/src/generated/src/operations/rooms.ts +++ b/sdk/communication/communication-rooms/src/generated/src/operations/rooms.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { tracingClient } from "../tracing"; -import { Rooms } from "../operationsInterfaces"; +import { tracingClient } from "../tracing.js"; +import { Rooms } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { RoomsRestClient } from "../roomsRestClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { RoomsRestClient } from "../roomsRestClient.js"; import { RoomsCreateOptionalParams, RoomsCreateResponse, @@ -24,7 +24,7 @@ import { RoomsDeleteOptionalParams, RoomsListNextOptionalParams, RoomsListNextResponse -} from "../models"; +} from "../models/index.js"; /** Class containing Rooms operations. */ export class RoomsImpl implements Rooms { diff --git a/sdk/communication/communication-rooms/src/generated/src/operationsInterfaces/index.ts b/sdk/communication/communication-rooms/src/generated/src/operationsInterfaces/index.ts index f6a3087c1549..937d8ab195a4 100644 --- a/sdk/communication/communication-rooms/src/generated/src/operationsInterfaces/index.ts +++ b/sdk/communication/communication-rooms/src/generated/src/operationsInterfaces/index.ts @@ -6,5 +6,5 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./rooms"; -export * from "./participants"; +export * from "./rooms.js"; +export * from "./participants.js"; diff --git a/sdk/communication/communication-rooms/src/generated/src/operationsInterfaces/participants.ts b/sdk/communication/communication-rooms/src/generated/src/operationsInterfaces/participants.ts index 333b5ef1d0f9..7e04d0709ccb 100644 --- a/sdk/communication/communication-rooms/src/generated/src/operationsInterfaces/participants.ts +++ b/sdk/communication/communication-rooms/src/generated/src/operationsInterfaces/participants.ts @@ -13,7 +13,7 @@ import { ParticipantsUpdateResponse, ParticipantsListNextOptionalParams, ParticipantsListNextResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a Participants. */ export interface Participants { diff --git a/sdk/communication/communication-rooms/src/generated/src/operationsInterfaces/rooms.ts b/sdk/communication/communication-rooms/src/generated/src/operationsInterfaces/rooms.ts index 137e93a486d3..5a5b60809e1c 100644 --- a/sdk/communication/communication-rooms/src/generated/src/operationsInterfaces/rooms.ts +++ b/sdk/communication/communication-rooms/src/generated/src/operationsInterfaces/rooms.ts @@ -18,7 +18,7 @@ import { RoomsDeleteOptionalParams, RoomsListNextOptionalParams, RoomsListNextResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a Rooms. */ export interface Rooms { diff --git a/sdk/communication/communication-rooms/src/generated/src/roomsRestClient.ts b/sdk/communication/communication-rooms/src/generated/src/roomsRestClient.ts index 6608067babc7..74c7c216fd72 100644 --- a/sdk/communication/communication-rooms/src/generated/src/roomsRestClient.ts +++ b/sdk/communication/communication-rooms/src/generated/src/roomsRestClient.ts @@ -12,9 +12,9 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import { RoomsImpl, ParticipantsImpl } from "./operations"; -import { Rooms, Participants } from "./operationsInterfaces"; -import { RoomsRestClientOptionalParams } from "./models"; +import { RoomsImpl, ParticipantsImpl } from "./operations/index.js"; +import { Rooms, Participants } from "./operationsInterfaces/index.js"; +import { RoomsRestClientOptionalParams } from "./models/index.js"; export class RoomsRestClient extends coreClient.ServiceClient { endpoint: string; diff --git a/sdk/communication/communication-rooms/src/index.ts b/sdk/communication/communication-rooms/src/index.ts index de20c30512e4..c88c8d372816 100644 --- a/sdk/communication/communication-rooms/src/index.ts +++ b/sdk/communication/communication-rooms/src/index.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export * from "./models/options"; -export * from "./models/models"; -export * from "./roomsClient"; +export * from "./models/options.js"; +export * from "./models/models.js"; +export * from "./roomsClient.js"; diff --git a/sdk/communication/communication-rooms/src/models/mappers.ts b/sdk/communication/communication-rooms/src/models/mappers.ts index 8e5f73c01f27..68ef1f661231 100644 --- a/sdk/communication/communication-rooms/src/models/mappers.ts +++ b/sdk/communication/communication-rooms/src/models/mappers.ts @@ -1,19 +1,19 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type * as RestModel from "../generated/src/models"; +import type * as RestModel from "../generated/src/models/index.js"; import type { CommunicationRoom, ParticipantRole, RoomParticipant, RoomParticipantPatch, -} from "./models"; +} from "./models.js"; import type { CommunicationIdentifier } from "@azure/communication-common"; import { getIdentifierKind, getIdentifierRawId } from "@azure/communication-common"; import type { ParticipantProperties, RoomParticipant as RESTRoomParticipant, -} from "../generated/src/models"; +} from "../generated/src/models/index.js"; import { createIdentifierFromRawId } from "@azure/communication-common"; const defaultRole: ParticipantRole = "Attendee"; diff --git a/sdk/communication/communication-rooms/src/models/options.ts b/sdk/communication/communication-rooms/src/models/options.ts index e9acf3e80390..3da303285dc3 100644 --- a/sdk/communication/communication-rooms/src/models/options.ts +++ b/sdk/communication/communication-rooms/src/models/options.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import type { CommonClientOptions, OperationOptions } from "@azure/core-client"; -import type { RoomParticipantPatch } from "./models"; +import type { RoomParticipantPatch } from "./models.js"; /** * Options to create rooms client. diff --git a/sdk/communication/communication-rooms/src/roomsClient.ts b/sdk/communication/communication-rooms/src/roomsClient.ts index 13e4f8d3d2ba..7eff38998e80 100644 --- a/sdk/communication/communication-rooms/src/roomsClient.ts +++ b/sdk/communication/communication-rooms/src/roomsClient.ts @@ -10,16 +10,16 @@ import { parseClientArguments, } from "@azure/communication-common"; -import { logger } from "./logger"; -import { tracingClient } from "./tracing"; -import { RoomsRestClient } from "./generated/src"; +import { logger } from "./logger.js"; +import { tracingClient } from "./tracing.js"; +import { RoomsRestClient } from "./generated/src/index.js"; import { mapCommunicationRoomToSDKModel, mapRoomParticipantForRemoval, mapRoomParticipantToRawId, mapToRoomParticipantSDKModel, -} from "./models/mappers"; -import type { CommunicationRoom, RoomParticipantPatch, RoomParticipant } from "./models/models"; +} from "./models/mappers.js"; +import type { CommunicationRoom, RoomParticipantPatch, RoomParticipant } from "./models/models.js"; import type { CreateRoomOptions, DeleteRoomOptions, @@ -30,7 +30,7 @@ import type { RoomsClientOptions, UpdateRoomOptions, AddOrUpdateParticipantsOptions, -} from "./models/options"; +} from "./models/options.js"; import { randomUUID } from "@azure/core-util"; import type { PagedAsyncIterableIterator } from "@azure/core-paging"; diff --git a/sdk/communication/communication-rooms/test/internal/roomsClient.mocked.spec.ts b/sdk/communication/communication-rooms/test/internal/roomsClient.mocked.spec.ts index fbab3f57100f..84861be5a97c 100644 --- a/sdk/communication/communication-rooms/test/internal/roomsClient.mocked.spec.ts +++ b/sdk/communication/communication-rooms/test/internal/roomsClient.mocked.spec.ts @@ -1,9 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import sinon from "sinon"; -import { assert } from "chai"; -import type { RoomsClient } from "../../src"; +import type { RoomsClient } from "../../src/index.js"; import { createRoomsClient, generateHttpClient, @@ -13,26 +11,23 @@ import { mockListRoomsResultWithoutNextLink, mockCreateRoomsWithPstnDialOutEnabledResult, mockUpdateRoomsWithPstnEnabledResult, -} from "./utils/mockedClient"; +} from "./utils/mockedClient.js"; +import { describe, it, assert, expect, vi } from "vitest"; -describe("[Mocked] RoomsClient", async function () { +describe("[Mocked] RoomsClient", async () => { let roomsClient: RoomsClient; - afterEach(function () { - sinon.restore(); - }); - - it("makes successful create Rooms request", async function () { + it("makes successful create Rooms request", async () => { const mockHttpClient = generateHttpClient(201, mockCreateRoomsResult); roomsClient = createRoomsClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const sendOptions = {}; const createRoomsResult = await roomsClient.createRoom(sendOptions); - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.isDefined(createRoomsResult); assert.equal(createRoomsResult.id, mockCreateRoomsResult.id); assert.deepEqual(createRoomsResult.validFrom, mockCreateRoomsResult.validFrom); @@ -42,17 +37,17 @@ describe("[Mocked] RoomsClient", async function () { mockCreateRoomsResult.pstnDialOutEnabled, ); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.method, "POST"); assert.deepEqual(JSON.parse(request.body as string), { participants: {} }); assert.isNotEmpty(request.headers.get("repeatability-request-id")); }); - it("makes successful create Rooms request with Pstn Dial-Out Enabled", async function () { + it("makes successful create Rooms request with Pstn Dial-Out Enabled", async () => { const mockHttpClient = generateHttpClient(201, mockCreateRoomsWithPstnDialOutEnabledResult); roomsClient = createRoomsClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const sendOptions = { pstnDialOutEnabled: true, @@ -60,7 +55,7 @@ describe("[Mocked] RoomsClient", async function () { const createRoomsResult = await roomsClient.createRoom(sendOptions); - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.isDefined(createRoomsResult); assert.equal(createRoomsResult.id, mockCreateRoomsWithPstnDialOutEnabledResult.id); assert.deepEqual( @@ -76,15 +71,15 @@ describe("[Mocked] RoomsClient", async function () { mockCreateRoomsWithPstnDialOutEnabledResult.pstnDialOutEnabled, ); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.method, "POST"); assert.isNotEmpty(request.headers.get("repeatability-request-id")); }); - it("makes update Rooms request", async function () { + it("makes update Rooms request", async () => { const mockHttpClient = generateHttpClient(200, mockUpdateRoomsResult); roomsClient = createRoomsClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const sendOptions = { validFrom: new Date("2022-08-16T18:06:06Z"), validUntil: new Date("2022-08-17T18:06:06Z"), @@ -92,44 +87,44 @@ describe("[Mocked] RoomsClient", async function () { const updateRoomResult = await roomsClient.updateRoom("id", sendOptions); - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.isDefined(updateRoomResult); assert.equal(updateRoomResult.id, mockUpdateRoomsResult.id); assert.deepEqual(updateRoomResult.validFrom, mockUpdateRoomsResult.validFrom); assert.deepEqual(updateRoomResult.validUntil, mockUpdateRoomsResult.validUntil); assert.deepEqual(updateRoomResult.pstnDialOutEnabled, mockUpdateRoomsResult.pstnDialOutEnabled); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.method, "PATCH"); assert.deepEqual(request.body as string, JSON.stringify(sendOptions)); }); - it("makes update Rooms request with PSTN Dial-Out", async function () { + it("makes update Rooms request with PSTN Dial-Out", async () => { const mockHttpClient = generateHttpClient(200, mockUpdateRoomsWithPstnEnabledResult); roomsClient = createRoomsClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const sendOptions = { pstnDialOutEnabled: true, }; const updateRoomResult = await roomsClient.updateRoom("id", sendOptions); - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.isDefined(updateRoomResult); assert.equal(updateRoomResult.id, mockUpdateRoomsResult.id); assert.deepEqual(updateRoomResult.validFrom, mockUpdateRoomsResult.validFrom); assert.deepEqual(updateRoomResult.validUntil, mockUpdateRoomsResult.validUntil); assert.deepEqual(updateRoomResult.pstnDialOutEnabled, sendOptions.pstnDialOutEnabled); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.method, "PATCH"); assert.deepEqual(request.body as string, JSON.stringify(sendOptions)); }); - it("makes add Participant request", async function () { + it("makes add Participant request", async () => { const mockHttpClient = generateHttpClient(200, mockUpdateRoomsResult); roomsClient = createRoomsClient(mockHttpClient); - const spy = sinon.spy(mockHttpClient, "sendRequest"); + const spy = vi.spyOn(mockHttpClient, "sendRequest"); const sendOptions = { validFrom: new Date("2022-08-16T18:06:06Z"), validUntil: new Date("2022-08-17T18:06:06Z"), @@ -137,18 +132,18 @@ describe("[Mocked] RoomsClient", async function () { const updateRoomResult = await roomsClient.updateRoom("id", sendOptions); - sinon.assert.calledOnce(spy); + expect(spy).toHaveBeenCalledOnce(); assert.isDefined(updateRoomResult); assert.equal(updateRoomResult.id, mockUpdateRoomsResult.id); assert.deepEqual(updateRoomResult.validFrom, mockUpdateRoomsResult.validFrom); assert.deepEqual(updateRoomResult.validUntil, mockUpdateRoomsResult.validUntil); - const request = spy.getCall(0).args[0]; + const request = spy.mock.calls[0][0]; assert.equal(request.method, "PATCH"); assert.deepEqual(request.body as string, JSON.stringify(sendOptions)); }); - it("successfully list rooms request with nextLink", async function () { + it("successfully list rooms request with nextLink", async () => { const mockHttpClient = generateHttpClient(200, mockListRoomsResultWithNextLink); roomsClient = createRoomsClient(mockHttpClient); @@ -164,7 +159,7 @@ describe("[Mocked] RoomsClient", async function () { } }); - it("successfully list rooms request without nextLink", async function () { + it("successfully list rooms request without nextLink", async () => { const mockHttpClient = generateHttpClient(200, mockListRoomsResultWithoutNextLink); roomsClient = createRoomsClient(mockHttpClient); diff --git a/sdk/communication/communication-rooms/test/internal/utils/mockedClient.ts b/sdk/communication/communication-rooms/test/internal/utils/mockedClient.ts index 32d88625735c..123f17b91cac 100644 --- a/sdk/communication/communication-rooms/test/internal/utils/mockedClient.ts +++ b/sdk/communication/communication-rooms/test/internal/utils/mockedClient.ts @@ -3,8 +3,8 @@ import type { HttpClient, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline"; import { createHttpHeaders } from "@azure/core-rest-pipeline"; -import type * as RestModel from "../../../src/generated/src/models"; -import { RoomsClient } from "../../../src"; +import type * as RestModel from "../../../src/generated/src/models/index.js"; +import { RoomsClient } from "../../../src/index.js"; export const mockCreateRoomsResult: RestModel.RoomsCreateResponse = { id: "id", diff --git a/sdk/communication/communication-rooms/test/public/roomsClient.spec.ts b/sdk/communication/communication-rooms/test/public/roomsClient.spec.ts index cbd41fc5c098..cdf60b29052d 100644 --- a/sdk/communication/communication-rooms/test/public/roomsClient.spec.ts +++ b/sdk/communication/communication-rooms/test/public/roomsClient.spec.ts @@ -3,16 +3,14 @@ import type { Recorder } from "@azure-tools/test-recorder"; import { isPlaybackMode } from "@azure-tools/test-recorder"; -import { createRecordedRoomsClient, createTestUser } from "./utils/recordedClient"; -import { assert, expect } from "chai"; -import type { Context } from "mocha"; -import sinon from "sinon"; -import type { RoomsClient } from "../../src/roomsClient"; +import { createRecordedRoomsClient, createTestUser } from "./utils/recordedClient.js"; +import type { RoomsClient } from "../../src/roomsClient.js"; import type { CommunicationUserIdentifier } from "@azure/communication-common"; -import type { CreateRoomOptions, UpdateRoomOptions } from "../../src/models/options"; -import type { CommunicationRoom, RoomParticipantPatch } from "../../src/models/models"; +import type { CreateRoomOptions, UpdateRoomOptions } from "../../src/models/options.js"; +import type { CommunicationRoom, RoomParticipantPatch } from "../../src/models/models.js"; +import { describe, it, assert, expect, vi, beforeEach, afterEach } from "vitest"; -describe("RoomsClient", function () { +describe("RoomsClient", () => { let recorder: Recorder; let client: RoomsClient; const validFrom = new Date(); @@ -20,27 +18,24 @@ describe("RoomsClient", function () { const over180DaysValidUntil = new Date(validUntil.getTime() + 288000 * 60 * 1000); // 200 days from validUntil const expiredValidUntil = new Date(validFrom.getTime() - 5 * 60 * 1000); // 5 days from validFrom - describe("Room Operations", function () { + describe("Room Operations", () => { let testUser1: CommunicationUserIdentifier; let testUser2: CommunicationUserIdentifier; let roomId = ""; - beforeEach(async function (this: Context) { - ({ client, recorder } = await createRecordedRoomsClient(this)); + beforeEach(async (ctx) => { + ({ client, recorder } = await createRecordedRoomsClient(ctx)); }); - afterEach(async function () { + afterEach(async () => { if (roomId !== "") { await client.deleteRoom(roomId); roomId = ""; } await recorder.stop(); - if (isPlaybackMode()) { - sinon.restore(); - } }); - it("successfully creates a room with no attributes", async function () { + it("successfully creates a room with no attributes", async () => { const options = {}; const createRoomResult = await client.createRoom(options); @@ -48,7 +43,7 @@ describe("RoomsClient", function () { roomId = createRoomResult?.id; }); - it("successfully creates a room with only participants attributes", async function () { + it("successfully creates a room with only participants attributes", async () => { testUser1 = (await createTestUser(recorder)).user; testUser2 = (await createTestUser(recorder)).user; @@ -68,7 +63,7 @@ describe("RoomsClient", function () { verifyRoomsParticipantsAttributes(addParticipantsResult, 1, 1, 0, 0); }); - it("successfully creates a room with an invalid MRI attribute", async function () { + it("successfully creates a room with an invalid MRI attribute", async () => { testUser1 = (await createTestUser(recorder)).user; testUser2 = (await createTestUser(recorder)).user; testUser1.communicationUserId = "invalid MRI Values"; @@ -93,7 +88,7 @@ describe("RoomsClient", function () { } }); - it("successfully creates a room with only valid time range attributes", async function () { + it("successfully creates a room with only valid time range attributes", async () => { testUser1 = (await createTestUser(recorder)).user; const options: CreateRoomOptions = { @@ -109,7 +104,7 @@ describe("RoomsClient", function () { verifyRoomsParticipantsAttributes(addParticipantsResult, 0, 0, 0, 0); }); - it("successfully creates a room with an expired validUntil", async function () { + it("successfully creates a room with an expired validUntil", async () => { testUser1 = (await createTestUser(recorder)).user; const options: CreateRoomOptions = { @@ -126,7 +121,7 @@ describe("RoomsClient", function () { } }); - it("successfully creates a room with validUntil greater than 180 days from current date", async function () { + it("successfully creates a room with validUntil greater than 180 days from current date", async () => { testUser1 = (await createTestUser(recorder)).user; const options: CreateRoomOptions = { @@ -143,7 +138,7 @@ describe("RoomsClient", function () { } }); - it("successfully creates a room with only PSTN Dial-Out attribute", async function () { + it("successfully creates a room with only PSTN Dial-Out attribute", async () => { testUser1 = (await createTestUser(recorder)).user; testUser2 = (await createTestUser(recorder)).user; @@ -165,7 +160,7 @@ describe("RoomsClient", function () { verifyRoomsParticipantsAttributes(addParticipantsResult, 0, 0, 0, 0); }); - it("successfully creates a room with PSTN Dial-Out and valid time range attributes", async function () { + it("successfully creates a room with PSTN Dial-Out and valid time range attributes", async () => { testUser1 = (await createTestUser(recorder)).user; const options: CreateRoomOptions = { @@ -188,7 +183,7 @@ describe("RoomsClient", function () { verifyRoomsParticipantsAttributes(addParticipantsResult, 0, 0, 0, 0); }); - it("successfully creates a room with PSTN Dial-Out and Valid Particpants attributes", async function () { + it("successfully creates a room with PSTN Dial-Out and Valid Particpants attributes", async () => { testUser1 = (await createTestUser(recorder)).user; testUser2 = (await createTestUser(recorder)).user; @@ -216,7 +211,7 @@ describe("RoomsClient", function () { verifyRoomsParticipantsAttributes(addParticipantsResult, 1, 1, 0, 0); }); - it("successfully creates a room with all optional attributes", async function () { + it("successfully creates a room with all optional attributes", async () => { testUser1 = (await createTestUser(recorder)).user; const options: CreateRoomOptions = { @@ -238,14 +233,14 @@ describe("RoomsClient", function () { verifyRoomsParticipantsAttributes(addParticipantsResult, 1, 1, 0, 0); }); - it("successfully gets a valid room", async function () { + it("successfully gets a valid room", async () => { const createRoom = await client.createRoom({}); roomId = createRoom.id; await client.getRoom(roomId); }); - it("successfully gets an invalid room", async function () { + it("successfully gets an invalid room", async () => { try { await client.getRoom("non-existingroomId"); } catch (e: any) { @@ -253,7 +248,7 @@ describe("RoomsClient", function () { } }); - it("successfully update room with a valid time range", async function () { + it("successfully update room with a valid time range", async () => { const createRoom = await client.createRoom({}); roomId = createRoom.id; testUser1 = (await createTestUser(recorder)).user; @@ -276,7 +271,7 @@ describe("RoomsClient", function () { await client.updateRoom(roomId, options); }); - it("successfully updates a room with validUntil greater than 180 days from current date", async function () { + it("successfully updates a room with validUntil greater than 180 days from current date", async () => { testUser1 = (await createTestUser(recorder)).user; const createRoom = await client.createRoom({ validFrom: new Date(recorder.variable("validFrom", validFrom.toString())), @@ -306,7 +301,7 @@ describe("RoomsClient", function () { } }); - it("successfully updates a room with an expired validUntil", async function () { + it("successfully updates a room with an expired validUntil", async () => { testUser1 = (await createTestUser(recorder)).user; const createRoom = await client.createRoom({ validFrom: new Date(recorder.variable("validFrom", validFrom.toString())), @@ -336,7 +331,7 @@ describe("RoomsClient", function () { } }); - it("successfully updates a room with an empty option", async function () { + it("successfully updates a room with an empty option", async () => { testUser1 = (await createTestUser(recorder)).user; const createRoom = await client.createRoom({ validFrom: new Date(recorder.variable("validFrom", validFrom.toString())), @@ -361,7 +356,7 @@ describe("RoomsClient", function () { } }); - it("successfully update room with an invalid room Id", async function () { + it("successfully update room with an invalid room Id", async () => { const createRoom = await client.createRoom({}); roomId = createRoom.id; testUser1 = (await createTestUser(recorder)).user; @@ -388,7 +383,7 @@ describe("RoomsClient", function () { } }); - it("successfully update room with PSTN Dial-Out", async function () { + it("successfully update room with PSTN Dial-Out", async () => { const createRoom = await client.createRoom({}); roomId = createRoom.id; testUser1 = (await createTestUser(recorder)).user; @@ -405,7 +400,7 @@ describe("RoomsClient", function () { verifyRoomsAttributes(updateRoomResult, updateOptions); }); - it("successfully update room with PSTN Dial-Out and valid time range", async function () { + it("successfully update room with PSTN Dial-Out and valid time range", async () => { const createRoom = await client.createRoom({}); roomId = createRoom.id; testUser1 = (await createTestUser(recorder)).user; @@ -434,7 +429,7 @@ describe("RoomsClient", function () { verifyRoomsAttributes(updateRoomResult, updateOptions); }); - it("successfully list rooms", async function () { + it("successfully list rooms", async () => { const roomsPages = client.listRooms().byPage(); let counter: number = 1; // loop over each page @@ -457,7 +452,7 @@ describe("RoomsClient", function () { } }); - it("successfully deletes a room", async function () { + it("successfully deletes a room", async () => { const createRoom = await client.createRoom({}); roomId = createRoom.id; @@ -469,18 +464,18 @@ describe("RoomsClient", function () { }); }); -describe("Participants Operations", function () { +describe("Participants Operations", () => { let recorder: Recorder; let client: RoomsClient; let testUser1: CommunicationUserIdentifier; let roomId = ""; const delayInMs = 1000; - beforeEach(async function (this: Context) { - ({ client, recorder } = await createRecordedRoomsClient(this)); + beforeEach(async (ctx) => { + ({ client, recorder } = await createRecordedRoomsClient(ctx)); }); - afterEach(async function () { + afterEach(async () => { if (roomId !== "") { await client.deleteRoom(roomId); roomId = ""; @@ -488,11 +483,11 @@ describe("Participants Operations", function () { await recorder.stop(); if (isPlaybackMode()) { - sinon.restore(); + vi.restoreAllMocks(); } }); - it("successfully adds participants to the room", async function () { + it("successfully adds participants to the room", async () => { testUser1 = (await createTestUser(recorder)).user; const participants: RoomParticipantPatch[] = [ { @@ -517,7 +512,7 @@ describe("Participants Operations", function () { roomId = curRoomId; }); - it("successfully adds participants to the room with null role", async function () { + it("successfully adds participants to the room with null role", async () => { testUser1 = (await createTestUser(recorder)).user; const participants = [ { @@ -542,7 +537,7 @@ describe("Participants Operations", function () { roomId = curRoomId; }); - it("successfully updates a participant with role not specified", async function () { + it("successfully updates a participant with role not specified", async () => { testUser1 = (await createTestUser(recorder)).user; const participants = [ @@ -568,7 +563,7 @@ describe("Participants Operations", function () { roomId = curRoomId; }); - it("successfully removes participant not in the room", async function () { + it("successfully removes participant not in the room", async () => { testUser1 = (await createTestUser(recorder)).user; // Create a room @@ -589,7 +584,7 @@ describe("Participants Operations", function () { roomId = curRoomId; }); - it("successfully removes participants in the room", async function () { + it("successfully removes participants in the room", async () => { testUser1 = (await createTestUser(recorder)).user; // Create a room diff --git a/sdk/communication/communication-rooms/test/public/utils/connectionUtils.ts b/sdk/communication/communication-rooms/test/public/utils/connectionUtils.ts index 50c6b8245229..339bb57667cf 100644 --- a/sdk/communication/communication-rooms/test/public/utils/connectionUtils.ts +++ b/sdk/communication/communication-rooms/test/public/utils/connectionUtils.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { isNode } from "@azure/core-util"; +import { isNodeLike } from "@azure/core-util"; export const baseUri = "https://contoso.api.fake"; @@ -11,6 +11,6 @@ export const generateToken = (): string => { const validForMinutes = 60; const expiresOn = (Date.now() + validForMinutes * 60 * 1000) / 1000; const tokenString = JSON.stringify({ exp: expiresOn }); - const base64Token = isNode ? Buffer.from(tokenString).toString("base64") : btoa(tokenString); + const base64Token = isNodeLike ? Buffer.from(tokenString).toString("base64") : btoa(tokenString); return `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.${base64Token}.adM-ddBZZlQ1WlN3pdPBOF5G4Wh9iZpxNP_fSvpF4cWs`; }; diff --git a/sdk/communication/communication-rooms/test/public/utils/recordedClient.ts b/sdk/communication/communication-rooms/test/public/utils/recordedClient.ts index 2d8778466867..d1caa2e15422 100644 --- a/sdk/communication/communication-rooms/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-rooms/test/public/utils/recordedClient.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { RecorderStartOptions, SanitizerOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, SanitizerOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, assertEnvironmentVariable, @@ -12,11 +12,10 @@ import type { TokenCredential } from "@azure/core-auth"; import type { CommunicationUserIdentifier } from "@azure/communication-common"; import { parseConnectionString } from "@azure/communication-common"; import { createTestCredential } from "@azure-tools/test-credential"; -import type { Context, Test } from "mocha"; -import { RoomsClient } from "../../../src"; +import { RoomsClient } from "../../../src/index.js"; import type { CommunicationUserToken } from "@azure/communication-identity"; import { CommunicationIdentityClient } from "@azure/communication-identity"; -import { generateToken } from "./connectionUtils"; +import { generateToken } from "./connectionUtils.js"; export interface RecordedClient { client: T; @@ -66,7 +65,7 @@ const recorderOptions: RecorderStartOptions = { ], }; -export async function createRecorder(context: Test | undefined): Promise { +export async function createRecorder(context: TestInfo | undefined): Promise { const recorder = new Recorder(context); await recorder.start(recorderOptions); await recorder.setMatcher("HeaderlessMatcher"); @@ -74,9 +73,9 @@ export async function createRecorder(context: Test | undefined): Promise> { - const recorder = await createRecorder(context.currentTest); + const recorder = await createRecorder(context); const client = new RoomsClient( env.COMMUNICATION_CONNECTION_STRING_ROOMS ?? "", @@ -89,9 +88,9 @@ export async function createRecordedRoomsClient( } export async function createRecordedRoomsClientWithToken( - context: Context, + context: TestInfo, ): Promise> { - const recorder = await createRecorder(context.currentTest); + const recorder = await createRecorder(context); let credential: TokenCredential; const endpoint = parseConnectionString(env.COMMUNICATION_CONNECTION_STRING_ROOMS ?? "").endpoint; diff --git a/sdk/communication/communication-rooms/tsconfig.browser.config.json b/sdk/communication/communication-rooms/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/communication/communication-rooms/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/communication/communication-rooms/tsconfig.json b/sdk/communication/communication-rooms/tsconfig.json index 53166d96d55e..e287c0d8c4f2 100644 --- a/sdk/communication/communication-rooms/tsconfig.json +++ b/sdk/communication/communication-rooms/tsconfig.json @@ -1,11 +1,12 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "paths": { "@azure/communication-rooms": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": ["src/**/*.ts", "src/**/*.mts", "src/**/*.cts", "samples-dev/**/*.ts", "test/**/*.ts"] } diff --git a/sdk/communication/communication-rooms/vitest.browser.config.ts b/sdk/communication/communication-rooms/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/communication/communication-rooms/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-rooms/vitest.config.ts b/sdk/communication/communication-rooms/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/communication/communication-rooms/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-sms/.nycrc b/sdk/communication/communication-sms/.nycrc deleted file mode 100644 index 29174b423579..000000000000 --- a/sdk/communication/communication-sms/.nycrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "include": ["dist-esm/src/**/*.js"], - "exclude": ["**/*.d.ts", "dist-esm/src/generated/*"], - "reporter": ["text-summary", "html", "cobertura"], - "exclude-after-remap": false, - "sourceMap": true, - "produce-source-map": true, - "instrument": true, - "all": true -} diff --git a/sdk/communication/communication-sms/api-extractor.json b/sdk/communication/communication-sms/api-extractor.json index 181c06b1fa3d..b888844e31b2 100644 --- a/sdk/communication/communication-sms/api-extractor.json +++ b/sdk/communication/communication-sms/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/communication-sms.d.ts" + "publicTrimmedFilePath": "dist/communication-sms.d.ts" }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/communication/communication-sms/karma.conf.js b/sdk/communication/communication-sms/karma.conf.js deleted file mode 100644 index 61eea14c5b14..000000000000 --- a/sdk/communication/communication-sms/karma.conf.js +++ /dev/null @@ -1,128 +0,0 @@ -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); - -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - ], - - // list of files / patterns to load in the browser - files: ["dist-test/index.browser.js"], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.browser.js": ["coverage"] - }, - - // inject following environment values into browser testing with window.__env__ - // environment values MUST be exported or set with same console running "karma start" - // https://www.npmjs.com/package/karma-env-preprocessor - envPreprocessor: [ - "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING", - "AZURE_PHONE_NUMBER", - "TEST_MODE", - "AZURE_CLIENT_ID", - "AZURE_CLIENT_SECRET", - "AZURE_TENANT_ID", - "COMMUNICATION_SKIP_INT_SMS_TEST", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // start these browsers - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - // 'ChromeHeadless', 'Chrome', 'Firefox', 'Edge', 'IE' - browsers: ["HeadlessChrome"], - - customLaunchers: { - HeadlessChrome: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: true, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 600000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/communication/communication-sms/package.json b/sdk/communication/communication-sms/package.json index 099c196175fe..835f545295da 100644 --- a/sdk/communication/communication-sms/package.json +++ b/sdk/communication/communication-sms/package.json @@ -3,23 +3,20 @@ "version": "1.2.0-beta.1", "description": "SDK for Azure Communication SMS service which facilitates the sending of SMS messages.", "sdk-type": "client", - "main": "dist/index.js", - "module": "dist-esm/src/index.js", - "browser": { - "stream": "./node_modules/stream-browserify/index.js", - "./dist-esm/src/credentials/cryptoUtils.js": "./dist-esm/src/credentials/cryptoUtils.browser.js" - }, - "types": "types/communication-sms.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "browser": "./dist/browser/index.js", + "types": "./dist/commonjs/index.d.ts", "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:node": "tsc -p . && dev-tool run bundle", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:node": "dev-tool run build-package && dev-tool run bundle", "build:samples": "dev-tool samples publish --force", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-* temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", - "extract-api": "tsc -p . && dev-tool run extract-api", + "extract-api": "dev-tool run build-package && dev-tool run extract-api", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && rushx format", "integration-test": "npm run integration-test:node && npm run integration-test:browser", @@ -32,14 +29,12 @@ "test:browser": "npm run build:test && npm run unit-test:browser && npm run integration-test:browser", "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "files": [ "dist/", - "dist-esm/src", - "types/communication-sms.d.ts", "README.md", "LICENSE" ], @@ -75,35 +70,20 @@ "tslib": "^2.2.0" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-utils": "^1.0.1", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.1.6", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "@types/sinon": "^17.0.0", - "chai": "^4.2.0", + "@vitest/browser": "^2.1.4", + "@vitest/coverage-istanbul": "^2.1.4", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "inherits": "^2.0.3", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "sinon": "^17.0.0", - "ts-node": "^10.0.0", + "playwright": "^1.48.2", "typescript": "~5.6.2", - "util": "^0.12.1" + "vitest": "^2.1.4" }, "//metadata": { "constantPaths": [ @@ -134,5 +114,42 @@ "requiredResources": { "Azure Communication Services account": "https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource" } + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/communication/communication-sms/samples-dev/sendSmsWithOptions.ts b/sdk/communication/communication-sms/samples-dev/sendSmsWithOptions.ts index 280681e7d70d..d4ed0ca0a067 100644 --- a/sdk/communication/communication-sms/samples-dev/sendSmsWithOptions.ts +++ b/sdk/communication/communication-sms/samples-dev/sendSmsWithOptions.ts @@ -9,7 +9,7 @@ import { SmsClient, SmsSendRequest } from "@azure/communication-sms"; // Load the .env file if it exists import * as dotenv from "dotenv"; -import { SmsSendOptions } from "../src/generated/src/models"; +import { SmsSendOptions } from "../src/generated/src/models/index.js"; dotenv.config(); export async function main() { diff --git a/sdk/communication/communication-sms/src/generated/src/index.ts b/sdk/communication/communication-sms/src/generated/src/index.ts index edcd173ba72a..063c3726f6bd 100644 --- a/sdk/communication/communication-sms/src/generated/src/index.ts +++ b/sdk/communication/communication-sms/src/generated/src/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { SmsApiClient } from "./smsApiClient"; -export * from "./operationsInterfaces"; +export * from "./models/index.js"; +export { SmsApiClient } from "./smsApiClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/communication/communication-sms/src/generated/src/models/parameters.ts b/sdk/communication/communication-sms/src/generated/src/models/parameters.ts index 542a5364a5d6..95e82d1d23bf 100644 --- a/sdk/communication/communication-sms/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-sms/src/generated/src/models/parameters.ts @@ -11,7 +11,7 @@ import { OperationURLParameter, OperationQueryParameter, } from "@azure/core-client"; -import { SendMessageRequest as SendMessageRequestMapper } from "../models/mappers"; +import { SendMessageRequest as SendMessageRequestMapper } from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/sdk/communication/communication-sms/src/generated/src/operations/index.ts b/sdk/communication/communication-sms/src/generated/src/operations/index.ts index 6f4eb2ba2dec..85dd98349a2f 100644 --- a/sdk/communication/communication-sms/src/generated/src/operations/index.ts +++ b/sdk/communication/communication-sms/src/generated/src/operations/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./sms"; +export * from "./sms.js"; diff --git a/sdk/communication/communication-sms/src/generated/src/operations/sms.ts b/sdk/communication/communication-sms/src/generated/src/operations/sms.ts index bf822309c4dc..37df7e40694d 100644 --- a/sdk/communication/communication-sms/src/generated/src/operations/sms.ts +++ b/sdk/communication/communication-sms/src/generated/src/operations/sms.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { tracingClient } from "../tracing"; -import { Sms } from "../operationsInterfaces"; +import { tracingClient } from "../tracing.js"; +import { Sms } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SmsApiClient } from "../smsApiClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SmsApiClient } from "../smsApiClient.js"; import { SendMessageRequest, SmsSendOptionalParams, SmsSendOperationResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Sms operations. */ export class SmsImpl implements Sms { diff --git a/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/index.ts b/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/index.ts index 6f4eb2ba2dec..85dd98349a2f 100644 --- a/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/index.ts +++ b/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/index.ts @@ -6,4 +6,4 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./sms"; +export * from "./sms.js"; diff --git a/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/sms.ts b/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/sms.ts index 3848f552c036..1342eeb63ba5 100644 --- a/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/sms.ts +++ b/sdk/communication/communication-sms/src/generated/src/operationsInterfaces/sms.ts @@ -10,7 +10,7 @@ import { SendMessageRequest, SmsSendOptionalParams, SmsSendOperationResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Sms. */ export interface Sms { diff --git a/sdk/communication/communication-sms/src/generated/src/smsApiClient.ts b/sdk/communication/communication-sms/src/generated/src/smsApiClient.ts index fd89dd160dee..44db02afc95a 100644 --- a/sdk/communication/communication-sms/src/generated/src/smsApiClient.ts +++ b/sdk/communication/communication-sms/src/generated/src/smsApiClient.ts @@ -12,9 +12,9 @@ import { PipelineResponse, SendRequest, } from "@azure/core-rest-pipeline"; -import { SmsImpl } from "./operations"; -import { Sms } from "./operationsInterfaces"; -import { SmsApiClientOptionalParams } from "./models"; +import { SmsImpl } from "./operations/index.js"; +import { Sms } from "./operationsInterfaces/index.js"; +import { SmsApiClientOptionalParams } from "./models/index.js"; export class SmsApiClient extends coreClient.ServiceClient { endpoint: string; diff --git a/sdk/communication/communication-sms/src/index.ts b/sdk/communication/communication-sms/src/index.ts index 700915dedbbf..5d1ff338d77b 100644 --- a/sdk/communication/communication-sms/src/index.ts +++ b/sdk/communication/communication-sms/src/index.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export * from "./smsClient"; +export * from "./smsClient.js"; diff --git a/sdk/communication/communication-sms/src/smsClient.ts b/sdk/communication/communication-sms/src/smsClient.ts index 87f9c27a1590..12a14e59448d 100644 --- a/sdk/communication/communication-sms/src/smsClient.ts +++ b/sdk/communication/communication-sms/src/smsClient.ts @@ -11,11 +11,11 @@ import type { KeyCredential, TokenCredential } from "@azure/core-auth"; import { isTokenCredential } from "@azure/core-auth"; import type { CommonClientOptions, OperationOptions } from "@azure/core-client"; import type { InternalPipelineOptions } from "@azure/core-rest-pipeline"; -import { SmsApiClient } from "./generated/src/smsApiClient"; -import { extractOperationOptions } from "./extractOperationOptions"; -import { generateSendMessageRequest } from "./utils/smsUtils"; -import { logger } from "./logger"; -import { tracingClient } from "./generated/src/tracing"; +import { SmsApiClient } from "./generated/src/smsApiClient.js"; +import { extractOperationOptions } from "./extractOperationOptions.js"; +import { generateSendMessageRequest } from "./utils/smsUtils.js"; +import { logger } from "./logger.js"; +import { tracingClient } from "./generated/src/tracing.js"; /** * Client options used to configure SMS Client API requests. diff --git a/sdk/communication/communication-sms/src/utils/smsUtils.ts b/sdk/communication/communication-sms/src/utils/smsUtils.ts index b3d958acc3f4..179d7b8a582a 100644 --- a/sdk/communication/communication-sms/src/utils/smsUtils.ts +++ b/sdk/communication/communication-sms/src/utils/smsUtils.ts @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { SendMessageRequest } from "../generated/src/models"; -import type { SmsSendOptions, SmsSendRequest } from "../smsClient"; -import { Uuid } from "./uuid"; -import type { SmsSendOptions as InternalOptions } from "../generated/src/models"; +import type { SendMessageRequest } from "../generated/src/models/index.js"; +import type { SmsSendOptions, SmsSendRequest } from "../smsClient.js"; +import { Uuid } from "./uuid.js"; +import type { SmsSendOptions as InternalOptions } from "../generated/src/models/index.js"; export function generateSendMessageRequest( smsRequest: SmsSendRequest, diff --git a/sdk/communication/communication-sms/test/internal/smsClient.internal.mocked.spec.ts b/sdk/communication/communication-sms/test/internal/smsClient.internal.mocked.spec.ts index a235cc35c32c..57778b6784aa 100644 --- a/sdk/communication/communication-sms/test/internal/smsClient.internal.mocked.spec.ts +++ b/sdk/communication/communication-sms/test/internal/smsClient.internal.mocked.spec.ts @@ -1,26 +1,25 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { HttpClient } from "@azure/core-rest-pipeline"; +import type { HttpClient, SendRequest } from "@azure/core-rest-pipeline"; -import { generateSendMessageRequest } from "../../src/utils/smsUtils"; -import { Uuid } from "../../src/utils/uuid"; - -import { assert } from "chai"; -import sinon from "sinon"; -import { apiVersion } from "../../src/generated/src/models/parameters"; -import type { SmsSendRequest } from "../../src/smsClient"; -import { SmsClient } from "../../src/smsClient"; -import { MockHttpClient } from "../public/utils/mockHttpClient"; +import { generateSendMessageRequest } from "../../src/utils/smsUtils.js"; +import { Uuid } from "../../src/utils/uuid.js"; +import { apiVersion } from "../../src/generated/src/models/parameters.js"; +import type { SmsSendRequest } from "../../src/smsClient.js"; +import { SmsClient } from "../../src/smsClient.js"; +import { MockHttpClient } from "../public/utils/mockHttpClient.js"; +import type { MockInstance } from "vitest"; +import { describe, it, assert, expect, vi, beforeEach, afterEach } from "vitest"; const API_VERSION = apiVersion.mapper.defaultValue; const TEST_NUMBER = "+14255550123"; -describe("[mocked] SmsClient Internal", async function () { +describe("[mocked] SmsClient Internal", async () => { const baseUri = "https://contoso.api.fake"; const connectionString = `endpoint=${baseUri};accesskey=banana`; - let sendRequestSpy: sinon.SinonSpy; - let uuidStub: sinon.SinonStub; + let sendRequestSpy: MockInstance; + let uuidStub: MockInstance<() => string>; const mockHttpClient: HttpClient = new MockHttpClient(TEST_NUMBER); const mockedGuid = "42bf408f-1931-4314-8971-2b538625a2b0"; @@ -30,35 +29,36 @@ describe("[mocked] SmsClient Internal", async function () { message: "message", }; - describe("when sending an SMS", function () { + describe("when sending an SMS", () => { let smsClient: SmsClient; - beforeEach(function () { - uuidStub = sinon.stub(Uuid, "generateUuid"); - uuidStub.returns(mockedGuid); - sendRequestSpy = sinon.spy(mockHttpClient, "sendRequest"); - sinon.useFakeTimers(); + beforeEach(() => { + uuidStub = vi.spyOn(Uuid, "generateUuid"); + uuidStub.mockReturnValue(mockedGuid); + sendRequestSpy = vi.spyOn(mockHttpClient, "sendRequest"); + vi.useFakeTimers(); smsClient = new SmsClient(connectionString, { httpClient: mockHttpClient }); }); - it("sends with the correct request body", async function () { + it("sends with the correct request body", async () => { await smsClient.send(testSendRequest); - const request = sendRequestSpy.getCall(0).args[0]; + const request = sendRequestSpy.mock.calls[0][0]; assert.equal(request.url, `${baseUri}/sms?api-version=${API_VERSION}`); assert.equal(request.method, "POST"); const expectedRequestBody = generateSendMessageRequest(testSendRequest); assert.deepEqual(JSON.parse(request.body as string), expectedRequestBody); }); - it("generates a new repeatability id each time", async function () { + it("generates a new repeatability id each time", async () => { await smsClient.send(testSendRequest); - assert.isTrue(uuidStub.calledOnce); + expect(uuidStub).toHaveBeenCalledOnce(); await smsClient.send(testSendRequest); - assert.isTrue(uuidStub.calledTwice); + expect(uuidStub).toHaveBeenCalledTimes(2); }); - afterEach(function () { - sinon.restore(); + afterEach(() => { + vi.restoreAllMocks(); + vi.useRealTimers(); }); }); }); diff --git a/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts b/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts index 1eef236ebf3d..53da62fc43e3 100644 --- a/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts +++ b/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts @@ -9,48 +9,165 @@ */ import type { Recorder } from "@azure-tools/test-recorder"; -import { isLiveMode, isPlaybackMode } from "@azure-tools/test-recorder"; -import { matrix } from "@azure-tools/test-utils"; -import type { Context } from "mocha"; -import * as sinon from "sinon"; -import type { SmsClient } from "../../src"; -import { Uuid } from "../../src/utils/uuid"; -import sendSmsSuites from "../public/suites/smsClient.send"; +import { env, isLiveMode, isPlaybackMode } from "@azure-tools/test-recorder"; +import { matrix } from "@azure-tools/test-utils-vitest"; +import type { SmsClient, SmsSendOptions, SmsSendRequest } from "../../src/index.js"; +import { Uuid } from "../../src/utils/uuid.js"; import { createRecordedSmsClient, createRecordedSmsClientWithToken, -} from "../public/utils/recordedClient"; +} from "../public/utils/recordedClient.js"; +import { assertIsFailureResult, assertIsSuccessResult } from "../public/utils/assertHelpers.js"; +import { describe, it, assert, vi, beforeEach, afterEach } from "vitest"; matrix([[true, false]], async function (useAad: boolean) { - describe(`SmsClient [Playback/Record]${useAad ? " [AAD]" : ""}`, async function () { + describe(`SmsClient [Playback/Record]${useAad ? " [AAD]" : ""}`, async () => { let recorder: Recorder; let client: SmsClient; - beforeEach(async function (this: Context) { + beforeEach(async function (ctx) { if (isLiveMode()) { - this.skip(); + ctx.skip(); } else if (isPlaybackMode()) { - sinon.stub(Uuid, "generateUuid").returns("sanitized"); - sinon.stub(Date, "now").returns(0); + vi.spyOn(Uuid, "generateUuid").mockReturnValue("sanitized"); + vi.spyOn(Date, "now").mockReturnValue(0); } if (useAad) { - ({ client, recorder } = await createRecordedSmsClientWithToken(this)); + ({ client, recorder } = await createRecordedSmsClientWithToken(ctx)); } else { - ({ client, recorder } = await createRecordedSmsClient(this)); + ({ client, recorder } = await createRecordedSmsClient(ctx)); } - this.smsClient = client; }); - afterEach(async function (this: Context) { - if (!this.currentTest?.isPending()) { + afterEach(async function (ctx) { + if (!ctx.task.pending) { await recorder.stop(); } if (isPlaybackMode()) { - sinon.restore(); + vi.restoreAllMocks(); } }); - describe("when sending SMS", sendSmsSuites); + describe("when sending SMS", async () => { + it("can send an SMS message", { timeout: 5000 }, async () => { + const fromNumber = env.AZURE_PHONE_NUMBER as string; + const validToNumber = env.AZURE_PHONE_NUMBER as string; + const results = await client.send({ + from: fromNumber, + to: [validToNumber], + message: "test message", + }); + + assert.lengthOf(results, 1, "must return as many results as there were recipients"); + assertIsSuccessResult(results[0], validToNumber); + }); + + it("can send an SMS message with options passed in", { timeout: 4000 }, async () => { + const fromNumber = env.AZURE_PHONE_NUMBER as string; + const validToNumber = env.AZURE_PHONE_NUMBER as string; + const results = await client.send( + { + from: fromNumber, + to: [validToNumber], + message: "test message", + }, + { + enableDeliveryReport: true, + tag: "SMS_LIVE_TEST", + deliveryReportTimeoutInSeconds: 300, + }, + ); + + assert.lengthOf(results, 1, "must return as many results as there were recipients"); + assertIsSuccessResult(results[0], validToNumber); + }); + + it("sends a new message each time send is called", { timeout: 4000 }, async () => { + const fromNumber = env.AZURE_PHONE_NUMBER as string; + const validToNumber = env.AZURE_PHONE_NUMBER as string; + + const sendRequest: SmsSendRequest = { + from: fromNumber, + to: [validToNumber], + message: "test message", + }; + const options: SmsSendOptions = { + enableDeliveryReport: true, + tag: "SMS_LIVE_TEST", + }; + + const firstResults = await client.send(sendRequest, options); + const secondResults = await client.send(sendRequest, options); + + assertIsSuccessResult(firstResults[0], validToNumber); + assertIsSuccessResult(secondResults[0], validToNumber); + assert.notEqual(firstResults[0].messageId, secondResults[0].messageId); + }); + + it("can send an SMS message to multiple recipients", { timeout: 4000 }, async () => { + const fromNumber = env.AZURE_PHONE_NUMBER as string; + const validToNumber = env.AZURE_PHONE_NUMBER as string; + const invalidToNumber = "+1425555012345"; // invalid number that's too long + const recipients = [validToNumber, invalidToNumber]; + + const results = await client.send({ + from: fromNumber, + to: recipients, + message: "test message", + }); + + assert.lengthOf( + results, + recipients.length, + "must return as many results as there were recipients", + ); + + assertIsSuccessResult(results[0], validToNumber); + assertIsFailureResult(results[1], invalidToNumber, "Unknown country code."); + }); + + it("throws an exception when sending from a number you don't own", async () => { + const fromNumber = "+14255550123"; + const validToNumber = env.AZURE_PHONE_NUMBER as string; + try { + await client.send( + { + from: fromNumber, + to: [validToNumber], + message: "test message", + }, + { + enableDeliveryReport: true, + tag: "SMS_LIVE_TEST", + }, + ); + assert.fail("Should have thrown an error"); + } catch (e: any) { + assert.equal(e.statusCode, 401); + } + }); + + it("throws an exception when sending from an invalid number", async () => { + const fromNumber = "+1425555012345"; // invalid number that's too long + const validToNumber = env.AZURE_PHONE_NUMBER as string; + try { + await client.send( + { + from: fromNumber, + to: [validToNumber], + message: "test message", + }, + { + enableDeliveryReport: true, + tag: "SMS_LIVE_TEST", + }, + ); + assert.fail("Should have thrown an error"); + } catch (e: any) { + assert.equal(e.statusCode, 401); + } + }); + }); }); }); diff --git a/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts b/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts index 6e7cf712a244..be9cc3116db1 100644 --- a/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts +++ b/sdk/communication/communication-sms/test/public/smsClient.mocked.spec.ts @@ -2,14 +2,14 @@ // Licensed under the MIT License. import { AzureKeyCredential } from "@azure/core-auth"; -import type { HttpClient } from "@azure/core-rest-pipeline"; -import { isNode } from "@azure/core-util"; +import type { HttpClient, SendRequest } from "@azure/core-rest-pipeline"; +import { isNodeLike } from "@azure/core-util"; import type { TokenCredential } from "@azure/identity"; -import { assert } from "chai"; -import sinon from "sinon"; -import type { SmsClientOptions, SmsSendRequest } from "../../src"; -import { SmsClient } from "../../src"; -import { MockHttpClient } from "./utils/mockHttpClient"; +import type { SmsClientOptions, SmsSendRequest } from "../../src/index.js"; +import { SmsClient } from "../../src/index.js"; +import { MockHttpClient } from "./utils/mockHttpClient.js"; +import type { MockInstance } from "vitest"; +import { describe, it, assert, expect, vi, beforeEach, afterEach } from "vitest"; const TEST_NUMBER = "+14255550123"; @@ -17,7 +17,7 @@ describe("[mocked] SmsClient", async function () { const baseUri = "https://contoso.api.fake"; const connectionString = `endpoint=${baseUri};accesskey=banana`; const dateHeader = "x-ms-date"; - let sendRequestSpy: sinon.SinonSpy; + let sendRequestSpy: MockInstance; const mockHttpClient: HttpClient = new MockHttpClient(TEST_NUMBER); const testSendRequest: SmsSendRequest = { @@ -48,8 +48,8 @@ describe("[mocked] SmsClient", async function () { describe("when sending an SMS", function () { let smsClient: SmsClient; beforeEach(function () { - sendRequestSpy = sinon.spy(mockHttpClient, "sendRequest"); - sinon.useFakeTimers(); + sendRequestSpy = vi.spyOn(mockHttpClient, "sendRequest"); + vi.useFakeTimers(); // workaround: casting because min testing has issues with httpClient newer versions having extra optional fields smsClient = new SmsClient(connectionString, { httpClient: mockHttpClient, @@ -59,8 +59,8 @@ describe("[mocked] SmsClient", async function () { it("sends with the correct headers", async function () { await smsClient.send(testSendRequest); - const request = sendRequestSpy.getCall(0).args[0]; - if (isNode) { + const request = sendRequestSpy.mock.calls[0][0]; + if (isNodeLike) { assert.equal(request.headers.get("host"), "contoso.api.fake"); } assert.typeOf(request.headers.get(dateHeader), "string"); @@ -75,13 +75,14 @@ describe("[mocked] SmsClient", async function () { const smsTestResults = await smsClient.send(testSendRequest); const smsTestResult = smsTestResults[0]; - sinon.assert.calledOnce(sendRequestSpy); + expect(sendRequestSpy).toHaveBeenCalled(); assert.equal(smsTestResult.httpStatusCode, 202); assert.equal(smsTestResult.messageId, "id"); }); afterEach(function () { - sinon.restore(); + vi.restoreAllMocks(); + vi.useRealTimers(); }); }); }); diff --git a/sdk/communication/communication-sms/test/public/smsClient.spec.ts b/sdk/communication/communication-sms/test/public/smsClient.spec.ts index fda727ca6d0f..cefc5dc8c125 100644 --- a/sdk/communication/communication-sms/test/public/smsClient.spec.ts +++ b/sdk/communication/communication-sms/test/public/smsClient.spec.ts @@ -8,48 +8,167 @@ import type { Recorder } from "@azure-tools/test-recorder"; import { env, isPlaybackMode } from "@azure-tools/test-recorder"; -import { matrix } from "@azure-tools/test-utils"; -import type { Context } from "mocha"; -import sinon from "sinon"; -import type { SmsClient } from "../../src"; -import { Uuid } from "../../src/utils/uuid"; -import sendSmsSuites from "./suites/smsClient.send"; -import { createRecordedSmsClient, createRecordedSmsClientWithToken } from "./utils/recordedClient"; +import { matrix } from "@azure-tools/test-utils-vitest"; +import type { SmsClient, SmsSendOptions, SmsSendRequest } from "../../src/index.js"; +import { Uuid } from "../../src/utils/uuid.js"; +import { + createRecordedSmsClient, + createRecordedSmsClientWithToken, +} from "./utils/recordedClient.js"; +import { assertIsFailureResult, assertIsSuccessResult } from "./utils/assertHelpers.js"; +import { describe, it, assert, vi, beforeEach, afterEach } from "vitest"; matrix([[true, false]], async function (useAad: boolean) { - describe(`SmsClient [Live]${useAad ? " [AAD]" : ""}`, async function () { - let recorder: Recorder; - let client: SmsClient; - - before(function (this: Context) { - const skipIntSMSTests = env.COMMUNICATION_SKIP_INT_SMS_TEST === "true"; - if (skipIntSMSTests) { - this.skip(); - } - }); - - beforeEach(async function (this: Context) { - if (isPlaybackMode()) { - sinon.stub(Uuid, "generateUuid").returns("sanitized"); - sinon.stub(Date, "now").returns(0); - } - if (useAad) { - ({ client, recorder } = await createRecordedSmsClientWithToken(this)); - } else { - ({ client, recorder } = await createRecordedSmsClient(this)); - } - this.smsClient = client; - }); - - afterEach(async function (this: Context) { - if (!this.currentTest?.isPending()) { - await recorder.stop(); - } - if (isPlaybackMode()) { - sinon.restore(); - } - }); - - describe("test send method", sendSmsSuites); - }); + const skipIntSMSTests = env.COMMUNICATION_SKIP_INT_SMS_TEST === "true"; + + describe( + `SmsClient [Live]${useAad ? " [AAD]" : ""}`, + { skip: skipIntSMSTests }, + async function () { + let recorder: Recorder; + let client: SmsClient; + + beforeEach(async function (ctx) { + if (isPlaybackMode()) { + vi.spyOn(Uuid, "generateUuid").mockReturnValue("sanitized"); + vi.spyOn(Date, "now").mockReturnValue(0); + } + if (useAad) { + ({ client, recorder } = await createRecordedSmsClientWithToken(ctx)); + } else { + ({ client, recorder } = await createRecordedSmsClient(ctx)); + } + }); + + afterEach(async function (ctx) { + if (!ctx.task.pending) { + await recorder.stop(); + } + if (isPlaybackMode()) { + vi.restoreAllMocks(); + } + }); + + describe("test send method", async () => { + it("can send an SMS message", { timeout: 5000 }, async () => { + const fromNumber = env.AZURE_PHONE_NUMBER as string; + const validToNumber = env.AZURE_PHONE_NUMBER as string; + const results = await client.send({ + from: fromNumber, + to: [validToNumber], + message: "test message", + }); + + assert.lengthOf(results, 1, "must return as many results as there were recipients"); + assertIsSuccessResult(results[0], validToNumber); + }); + + it("can send an SMS message with options passed in", { timeout: 4000 }, async () => { + const fromNumber = env.AZURE_PHONE_NUMBER as string; + const validToNumber = env.AZURE_PHONE_NUMBER as string; + const results = await client.send( + { + from: fromNumber, + to: [validToNumber], + message: "test message", + }, + { + enableDeliveryReport: true, + tag: "SMS_LIVE_TEST", + deliveryReportTimeoutInSeconds: 300, + }, + ); + + assert.lengthOf(results, 1, "must return as many results as there were recipients"); + assertIsSuccessResult(results[0], validToNumber); + }); + + it("sends a new message each time send is called", { timeout: 4000 }, async () => { + const fromNumber = env.AZURE_PHONE_NUMBER as string; + const validToNumber = env.AZURE_PHONE_NUMBER as string; + + const sendRequest: SmsSendRequest = { + from: fromNumber, + to: [validToNumber], + message: "test message", + }; + const options: SmsSendOptions = { + enableDeliveryReport: true, + tag: "SMS_LIVE_TEST", + }; + + const firstResults = await client.send(sendRequest, options); + const secondResults = await client.send(sendRequest, options); + + assertIsSuccessResult(firstResults[0], validToNumber); + assertIsSuccessResult(secondResults[0], validToNumber); + assert.notEqual(firstResults[0].messageId, secondResults[0].messageId); + }); + + it("can send an SMS message to multiple recipients", { timeout: 4000 }, async () => { + const fromNumber = env.AZURE_PHONE_NUMBER as string; + const validToNumber = env.AZURE_PHONE_NUMBER as string; + const invalidToNumber = "+1425555012345"; // invalid number that's too long + const recipients = [validToNumber, invalidToNumber]; + + const results = await client.send({ + from: fromNumber, + to: recipients, + message: "test message", + }); + + assert.lengthOf( + results, + recipients.length, + "must return as many results as there were recipients", + ); + + assertIsSuccessResult(results[0], validToNumber); + assertIsFailureResult(results[1], invalidToNumber, "Unknown country code."); + }); + + it("throws an exception when sending from a number you don't own", async () => { + const fromNumber = "+14255550123"; + const validToNumber = env.AZURE_PHONE_NUMBER as string; + try { + await client.send( + { + from: fromNumber, + to: [validToNumber], + message: "test message", + }, + { + enableDeliveryReport: true, + tag: "SMS_LIVE_TEST", + }, + ); + assert.fail("Should have thrown an error"); + } catch (e: any) { + assert.equal(e.statusCode, 401); + } + }); + + it("throws an exception when sending from an invalid number", async () => { + const fromNumber = "+1425555012345"; // invalid number that's too long + const validToNumber = env.AZURE_PHONE_NUMBER as string; + try { + await client.send( + { + from: fromNumber, + to: [validToNumber], + message: "test message", + }, + { + enableDeliveryReport: true, + tag: "SMS_LIVE_TEST", + }, + ); + assert.fail("Should have thrown an error"); + } catch (e: any) { + assert.equal(e.statusCode, 401); + } + }); + }); + }, + ); }); diff --git a/sdk/communication/communication-sms/test/public/suites/smsClient.send.ts b/sdk/communication/communication-sms/test/public/suites/smsClient.send.ts deleted file mode 100644 index 5e61f049eb1c..000000000000 --- a/sdk/communication/communication-sms/test/public/suites/smsClient.send.ts +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { assert } from "chai"; -import type { SmsSendOptions, SmsSendRequest } from "../../../src"; -import { env } from "@azure-tools/test-recorder"; -import type { Context } from "mocha"; -import { assertIsFailureResult, assertIsSuccessResult } from "../utils/assertHelpers"; - -export default function testCases(): void { - it("can send an SMS message", async function (this: Context) { - const fromNumber = env.AZURE_PHONE_NUMBER as string; - const validToNumber = env.AZURE_PHONE_NUMBER as string; - const results = await this.smsClient.send({ - from: fromNumber, - to: [validToNumber], - message: "test message", - }); - - assert.lengthOf(results, 1, "must return as many results as there were recipients"); - assertIsSuccessResult(results[0], validToNumber); - }).timeout(5000); - - it("can send an SMS message with options passed in", async function (this: Context) { - const fromNumber = env.AZURE_PHONE_NUMBER as string; - const validToNumber = env.AZURE_PHONE_NUMBER as string; - const results = await this.smsClient.send( - { - from: fromNumber, - to: [validToNumber], - message: "test message", - }, - { - enableDeliveryReport: true, - tag: "SMS_LIVE_TEST", - deliveryReportTimeoutInSeconds: 300, - }, - ); - - assert.lengthOf(results, 1, "must return as many results as there were recipients"); - assertIsSuccessResult(results[0], validToNumber); - }).timeout(4000); - - it("sends a new message each time send is called", async function (this: Context) { - const fromNumber = env.AZURE_PHONE_NUMBER as string; - const validToNumber = env.AZURE_PHONE_NUMBER as string; - - const sendRequest: SmsSendRequest = { - from: fromNumber, - to: [validToNumber], - message: "test message", - }; - const options: SmsSendOptions = { - enableDeliveryReport: true, - tag: "SMS_LIVE_TEST", - }; - - const firstResults = await this.smsClient.send(sendRequest, options); - const secondResults = await this.smsClient.send(sendRequest, options); - - assertIsSuccessResult(firstResults[0], validToNumber); - assertIsSuccessResult(secondResults[0], validToNumber); - assert.notEqual(firstResults[0].messageId, secondResults[0].messageId); - }).timeout(4000); - - it("can send an SMS message to multiple recipients", async function (this: Context) { - const fromNumber = env.AZURE_PHONE_NUMBER as string; - const validToNumber = env.AZURE_PHONE_NUMBER as string; - const invalidToNumber = "+1425555012345"; // invalid number that's too long - const recipients = [validToNumber, invalidToNumber]; - - const results = await this.smsClient.send({ - from: fromNumber, - to: recipients, - message: "test message", - }); - - assert.lengthOf( - results, - recipients.length, - "must return as many results as there were recipients", - ); - - assertIsSuccessResult(results[0], validToNumber); - assertIsFailureResult(results[1], invalidToNumber, "Unknown country code."); - }).timeout(4000); - - it("throws an exception when sending from a number you don't own", async function (this: Context) { - const fromNumber = "+14255550123"; - const validToNumber = env.AZURE_PHONE_NUMBER as string; - try { - await this.smsClient.send( - { - from: fromNumber, - to: [validToNumber], - message: "test message", - }, - { - enableDeliveryReport: true, - tag: "SMS_LIVE_TEST", - }, - ); - assert.fail("Should have thrown an error"); - } catch (e: any) { - assert.equal(e.statusCode, 401); - } - }); - - it("throws an exception when sending from an invalid number", async function (this: Context) { - const fromNumber = "+1425555012345"; // invalid number that's too long - const validToNumber = env.AZURE_PHONE_NUMBER as string; - try { - await this.smsClient.send( - { - from: fromNumber, - to: [validToNumber], - message: "test message", - }, - { - enableDeliveryReport: true, - tag: "SMS_LIVE_TEST", - }, - ); - assert.fail("Should have thrown an error"); - } catch (e: any) { - assert.equal(e.statusCode, 401); - } - }); -} diff --git a/sdk/communication/communication-sms/test/public/utils/assertHelpers.ts b/sdk/communication/communication-sms/test/public/utils/assertHelpers.ts index 63f10660953a..79e843d39780 100644 --- a/sdk/communication/communication-sms/test/public/utils/assertHelpers.ts +++ b/sdk/communication/communication-sms/test/public/utils/assertHelpers.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { assert } from "chai"; -import type { SmsSendResult } from "../../../src"; +import type { SmsSendResult } from "../../../src/index.js"; +import { assert } from "vitest"; export const assertIsSuccessResult = ( actualSmsResult: SmsSendResult, diff --git a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts index e18e022f225f..4ff29d8842a6 100644 --- a/sdk/communication/communication-sms/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-sms/test/public/utils/recordedClient.ts @@ -1,10 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. - -import type { Context, Test } from "mocha"; -import type { RecorderStartOptions, SanitizerOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, SanitizerOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, env, isPlaybackMode } from "@azure-tools/test-recorder"; -import { SmsClient } from "../../../src"; +import { SmsClient } from "../../../src/index.js"; import { parseConnectionString } from "@azure/communication-common"; import type { TokenCredential } from "@azure/core-auth"; import { createTestCredential } from "@azure-tools/test-credential"; @@ -54,7 +52,7 @@ const recorderOptions: RecorderStartOptions = { ], }; -export async function createRecorder(context: Test | undefined): Promise { +export async function createRecorder(context: TestInfo | undefined): Promise { const recorder = new Recorder(context); await recorder.start(recorderOptions); await recorder.setMatcher("CustomDefaultMatcher", { @@ -69,9 +67,9 @@ export async function createRecorder(context: Test | undefined): Promise> { - const recorder = await createRecorder(context.currentTest); + const recorder = await createRecorder(context); const client = new SmsClient( env.COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING ?? "", @@ -84,9 +82,9 @@ export async function createRecordedSmsClient( } export async function createRecordedSmsClientWithToken( - context: Context, + context: TestInfo, ): Promise> { - const recorder = await createRecorder(context.currentTest); + const recorder = await createRecorder(context); let credential: TokenCredential; const endpoint = parseConnectionString( diff --git a/sdk/communication/communication-sms/tsconfig.browser.config.json b/sdk/communication/communication-sms/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/communication/communication-sms/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/communication/communication-sms/tsconfig.json b/sdk/communication/communication-sms/tsconfig.json index 7c806c956fdd..4ba9f40c4cb4 100644 --- a/sdk/communication/communication-sms/tsconfig.json +++ b/sdk/communication/communication-sms/tsconfig.json @@ -1,11 +1,12 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "paths": { "@azure/communication-sms": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": ["src/**/*.ts", "src/**/*.mts", "src/**/*.cts", "samples-dev/**/*.ts", "test/**/*.ts"] } diff --git a/sdk/communication/communication-sms/vitest.browser.config.ts b/sdk/communication/communication-sms/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/communication/communication-sms/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/communication/communication-sms/vitest.config.ts b/sdk/communication/communication-sms/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/communication/communication-sms/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/compute/arm-compute-rest/package.json b/sdk/compute/arm-compute-rest/package.json index 0c04be72b226..f819615b21f9 100644 --- a/sdk/compute/arm-compute-rest/package.json +++ b/sdk/compute/arm-compute-rest/package.json @@ -87,7 +87,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/computefleet/arm-computefleet/package.json b/sdk/computefleet/arm-computefleet/package.json index 459951d90ebb..17cffd45e82d 100644 --- a/sdk/computefleet/arm-computefleet/package.json +++ b/sdk/computefleet/arm-computefleet/package.json @@ -68,7 +68,7 @@ "devDependencies": { "dotenv": "^16.0.0", "@types/node": "^18.0.0", - "eslint": "^8.55.0", + "eslint": "^9.9.0", "typescript": "~5.6.2", "@azure/identity": "^4.2.1", "@vitest/browser": "^2.0.5", diff --git a/sdk/computeschedule/arm-computeschedule/package.json b/sdk/computeschedule/arm-computeschedule/package.json index 3f79b1f0f1c9..5e9c54a7119d 100644 --- a/sdk/computeschedule/arm-computeschedule/package.json +++ b/sdk/computeschedule/arm-computeschedule/package.json @@ -66,7 +66,7 @@ "devDependencies": { "dotenv": "^16.0.0", "@types/node": "^18.0.0", - "eslint": "^8.55.0", + "eslint": "^9.9.0", "prettier": "^3.2.5", "typescript": "~5.6.2", "@azure/identity": "^4.2.1", diff --git a/sdk/confidentialledger/confidential-ledger-rest/api-extractor.json b/sdk/confidentialledger/confidential-ledger-rest/api-extractor.json index 74fc7fc4ff39..47fdef9d9008 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/api-extractor.json +++ b/sdk/confidentialledger/confidential-ledger-rest/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/confidential-ledger.d.ts" + "publicTrimmedFilePath": "dist/confidential-ledger.d.ts" }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/confidentialledger/confidential-ledger-rest/package.json b/sdk/confidentialledger/confidential-ledger-rest/package.json index 3c19dff7231b..dc7a7c49e5b0 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/package.json +++ b/sdk/confidentialledger/confidential-ledger-rest/package.json @@ -13,9 +13,9 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/confidential-ledger.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/confidentialledger/confidential-ledger-rest/README.md", "repository": "github:Azure/azure-sdk-for-js", "bugs": { @@ -23,8 +23,6 @@ }, "files": [ "dist/", - "dist-esm/src/", - "types/confidential-ledger.d.ts", "README.md", "LICENSE" ], @@ -51,16 +49,16 @@ "apiRefLink": "https://docs.microsoft.com/azure/confidential-ledger" }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle --browser-test=false && dev-tool run extract-api", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", "build:browser": "echo \"Browser is not supported.\" && exit 0", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run bundle --browser-test=false", + "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api", + "build:node": "dev-tool run build-package && dev-tool run bundle --browser-test=false", "build:samples": "echo Obsolete.", - "build:test": "tsc -p . && dev-tool run bundle --browser-test=false", + "build:test": "dev-tool run build-package && dev-tool run bundle --browser-test=false", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm dist-test temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", - "extract-api": "tsc -p . && dev-tool run extract-api", + "extract-api": "dev-tool run build-package && dev-tool run extract-api", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md && rushx format", "integration-test": "npm run integration-test:node", @@ -74,36 +72,56 @@ "test:node": "npm run clean && npm run build:test && npm run unit-test:node", "unit-test": "npm run unit-test:node", "unit-test:browser": "echo \"Browser is not supported.\" && exit 0", - "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/**/*.spec.ts'", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-paging": "^1.3.0", - "@azure/core-rest-pipeline": "^1.1.0", - "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "@azure-rest/core-client": "^2.3.1", + "@azure/core-auth": "^1.9.0", + "@azure/core-paging": "^1.6.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-utils": "^1.0.1", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.1.6", - "@types/mocha": "^10.0.0", + "@azure/identity": "^4.5.0", "@types/node": "^18.0.0", - "chai": "^4.2.0", + "@vitest/coverage-istanbul": "^2.1.5", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "typescript": "~5.6.2", + "vitest": "^2.1.5" + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/confidentialledger/confidential-ledger-rest/src/confidentialLedger.ts b/sdk/confidentialledger/confidential-ledger-rest/src/confidentialLedger.ts index 650c6bae5a47..de10978e2cb2 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/src/confidentialLedger.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/src/confidentialLedger.ts @@ -5,8 +5,8 @@ import type { TokenCredential } from "@azure/core-auth"; import { isTokenCredential } from "@azure/core-auth"; import type { ClientOptions } from "@azure-rest/core-client"; -import type { ConfidentialLedgerClient } from "./generated/src/clientDefinitions"; -import GeneratedConfidentialLedger from "./generated/src/confidentialLedger"; +import type { ConfidentialLedgerClient } from "./generated/src/clientDefinitions.js"; +import GeneratedConfidentialLedger from "./generated/src/confidentialLedger.js"; export default function ConfidentialLedger( ledgerEndpoint: string, diff --git a/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/clientDefinitions.ts b/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/clientDefinitions.ts index 22251c658ea2..0d0d273f3079 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/clientDefinitions.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/clientDefinitions.ts @@ -15,7 +15,7 @@ import { DeleteUserParameters, GetUserParameters, CreateOrUpdateUserParameters -} from "./parameters"; +} from "./parameters.js"; import { GetConstitution200Response, GetConstitutionDefaultResponse, @@ -43,7 +43,7 @@ import { GetUserDefaultResponse, CreateOrUpdateUser200Response, CreateOrUpdateUserDefaultResponse -} from "./responses"; +} from "./responses.js"; import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface GetConstitution { diff --git a/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/confidentialLedger.ts b/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/confidentialLedger.ts index 07d3f4600407..e6afb70fe170 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/confidentialLedger.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/confidentialLedger.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "./logger"; +import { logger } from "./logger.js"; import { TokenCredential } from "@azure/core-auth"; -import { ConfidentialLedgerClient } from "./clientDefinitions"; +import { ConfidentialLedgerClient } from "./clientDefinitions.js"; /** * Initialize a new instance of `ConfidentialLedgerClient` diff --git a/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/index.ts b/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/index.ts index 0b91b2c98675..e757ca5e69c1 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/index.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/index.ts @@ -1,15 +1,15 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import ConfidentialLedger from "./confidentialLedger"; +import ConfidentialLedger from "./confidentialLedger.js"; -export * from "./confidentialLedger"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./paginateHelper"; +export * from "./confidentialLedger.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./paginateHelper.js"; export default ConfidentialLedger; diff --git a/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/isUnexpected.ts b/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/isUnexpected.ts index aadc84f79253..b6efcf318537 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/isUnexpected.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/isUnexpected.ts @@ -28,7 +28,7 @@ import { GetUserDefaultResponse, CreateOrUpdateUser200Response, CreateOrUpdateUserDefaultResponse -} from "./responses"; +} from "./responses.js"; const responseMap: Record = { "GET /app/governance/constitution": ["200"], diff --git a/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/parameters.ts b/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/parameters.ts index d2d65d8dc642..eaca363de5fe 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/parameters.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/parameters.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { RequestParameters } from "@azure-rest/core-client"; -import { LedgerEntry, LedgerUser } from "./models"; +import { LedgerEntry, LedgerUser } from "./models.js"; export type GetConstitutionParameters = RequestParameters; export type ListConsortiumMembersParameters = RequestParameters; diff --git a/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/responses.ts b/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/responses.ts index 6def9365f264..70ab81281bfb 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/responses.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/src/generated/src/responses.ts @@ -16,7 +16,7 @@ import { TransactionStatusOutput, LedgerEntryOutput, LedgerUserOutput -} from "./outputModels"; +} from "./outputModels.js"; /** The constitution is a script that assesses and applies proposals from consortium members. */ export interface GetConstitution200Response extends HttpResponse { diff --git a/sdk/confidentialledger/confidential-ledger-rest/src/index.ts b/sdk/confidentialledger/confidential-ledger-rest/src/index.ts index 77462a624e78..798a7307441e 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/src/index.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/src/index.ts @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import ConfidentialLedger from "./confidentialLedger"; -export * from "./generated/src/confidentialLedger"; -export * from "./generated/src/models"; -export * from "./generated/src/parameters"; -export * from "./generated/src/responses"; -export * from "./generated/src/clientDefinitions"; -export * from "./generated/src/isUnexpected"; -export * from "./generated/src/outputModels"; -export * from "./generated/src/paginateHelper"; -export { LedgerIdentity, getLedgerIdentity } from "./getLedgerIdentity"; +import ConfidentialLedger from "./confidentialLedger.js"; +export * from "./generated/src/confidentialLedger.js"; +export * from "./generated/src/models.js"; +export * from "./generated/src/parameters.js"; +export * from "./generated/src/responses.js"; +export * from "./generated/src/clientDefinitions.js"; +export * from "./generated/src/isUnexpected.js"; +export * from "./generated/src/outputModels.js"; +export * from "./generated/src/paginateHelper.js"; +export { LedgerIdentity, getLedgerIdentity } from "./getLedgerIdentity.js"; export default ConfidentialLedger; diff --git a/sdk/confidentialledger/confidential-ledger-rest/test/public/colderEndpoints.spec.ts b/sdk/confidentialledger/confidential-ledger-rest/test/public/colderEndpoints.spec.ts index fee5b80b2f61..580746b5cf75 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/test/public/colderEndpoints.spec.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/test/public/colderEndpoints.spec.ts @@ -1,27 +1,26 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { ConfidentialLedgerClient } from "../../src"; -import { isUnexpected } from "../../src"; -import { createClient, createRecorder } from "./utils/recordedClient"; +import type { ConfidentialLedgerClient } from "../../src/index.js"; +import { isUnexpected } from "../../src/index.js"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("Colder endpoints", function () { +describe("Colder endpoints", () => { let recorder: Recorder; let client: ConfidentialLedgerClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should obtain constitution from ledger", async function () { + it("should obtain constitution from ledger", async () => { const result = await client.path("/app/governance/constitution").get(); assert.equal(result.status, "200"); @@ -39,7 +38,7 @@ describe("Colder endpoints", function () { assert.typeOf(result.body.script, "string"); }); - it("should retrieve a list of consortium members", async function () { + it("should retrieve a list of consortium members", async () => { const result = await client.path("/app/governance/members").get(); assert.equal(result.status, "200"); @@ -54,7 +53,7 @@ describe("Colder endpoints", function () { } }); - it("should retrieve a list of enclave quotes", async function () { + it("should retrieve a list of enclave quotes", async () => { const result = await client.path("/app/enclaveQuotes").get(); assert.equal(result.status, "200"); diff --git a/sdk/confidentialledger/confidential-ledger-rest/test/public/getCollections.spec.ts b/sdk/confidentialledger/confidential-ledger-rest/test/public/getCollections.spec.ts index 9f2f3ae2109d..685becc52710 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/test/public/getCollections.spec.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/test/public/getCollections.spec.ts @@ -1,27 +1,30 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { ConfidentialLedgerClient, CreateLedgerEntryParameters, LedgerEntry } from "../../src"; -import { isUnexpected } from "../../src"; -import { createClient, createRecorder, getRecorderUniqueVariable } from "./utils/recordedClient"; +import type { + ConfidentialLedgerClient, + CreateLedgerEntryParameters, + LedgerEntry, +} from "../../src/index.js"; +import { isUnexpected } from "../../src/index.js"; +import { createClient, createRecorder, getRecorderUniqueVariable } from "./utils/recordedClient.js"; import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("Get Collections", function () { +describe("Get Collections", () => { let recorder: Recorder; let client: ConfidentialLedgerClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should list collections created by entries", async function () { + it("should list collections created by entries", async () => { const knownCollections: string[] = []; for (let i = 0; i < 5; i++) { const collectionId = getRecorderUniqueVariable(recorder, `collection${i}`); diff --git a/sdk/confidentialledger/confidential-ledger-rest/test/public/historicalRangeQuery.spec.ts b/sdk/confidentialledger/confidential-ledger-rest/test/public/historicalRangeQuery.spec.ts index 8e0ad028f572..e0aa38305897 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/test/public/historicalRangeQuery.spec.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/test/public/historicalRangeQuery.spec.ts @@ -1,29 +1,31 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { ConfidentialLedgerClient, CreateLedgerEntryParameters, LedgerEntry } from "../../src"; -import { isUnexpected, paginate } from "../../src"; - -import { createClient, createRecorder, getRecorderUniqueVariable } from "./utils/recordedClient"; - +import type { + ConfidentialLedgerClient, + CreateLedgerEntryParameters, + LedgerEntry, + TransactionStatusOutput, +} from "../../src/index.js"; +import { isUnexpected, paginate } from "../../src/index.js"; +import { createClient, createRecorder, getRecorderUniqueVariable } from "./utils/recordedClient.js"; import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("Range query should be successful", function () { +describe("Range query should be successful", () => { let recorder: Recorder; let client: ConfidentialLedgerClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should paginate queries", async function () { - async function getTransactionStatus(transactionId: string) { + it("should paginate queries", async () => { + async function getTransactionStatus(transactionId: string): Promise { const status = await client .path("/app/transactions/{transactionId}/status", transactionId) .get(); @@ -35,7 +37,7 @@ describe("Range query should be successful", function () { return status.body; } - async function waitForTransactionToCommit(transactionId: string) { + async function waitForTransactionToCommit(transactionId: string): Promise { let status = await getTransactionStatus(transactionId); while (status.state !== "Committed") { status = await getTransactionStatus(transactionId); diff --git a/sdk/confidentialledger/confidential-ledger-rest/test/public/ledgerHistory.spec.ts b/sdk/confidentialledger/confidential-ledger-rest/test/public/ledgerHistory.spec.ts index bed77d450e21..abd1d26776e4 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/test/public/ledgerHistory.spec.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/test/public/ledgerHistory.spec.ts @@ -1,32 +1,26 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { ConfidentialLedgerClient } from "../../src"; -import { isUnexpected } from "../../src"; -import { createClient, createRecorder } from "./utils/recordedClient"; - -import type { Context } from "mocha"; +import type { ConfidentialLedgerClient } from "../../src/index.js"; +import { isUnexpected } from "../../src/index.js"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; import type { Recorder } from "@azure-tools/test-recorder"; import { isLiveMode } from "@azure-tools/test-recorder"; -import { assert } from "chai"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("Get ledger history", function () { +describe("Get ledger history", () => { let recorder: Recorder; let client: ConfidentialLedgerClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should obtain ledger entries from ledger", async function () { - if (isLiveMode()) { - this.skip(); - } - + it("should obtain ledger entries from ledger", { skip: isLiveMode() }, async () => { const result = await client.path("/app/transactions").get(); assert.equal(result.status, "200"); diff --git a/sdk/confidentialledger/confidential-ledger-rest/test/public/listEnclaveQuotes.spec.ts b/sdk/confidentialledger/confidential-ledger-rest/test/public/listEnclaveQuotes.spec.ts index cdc80740764b..36b1f5c12c1c 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/test/public/listEnclaveQuotes.spec.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/test/public/listEnclaveQuotes.spec.ts @@ -1,27 +1,26 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { ConfidentialLedgerClient } from "../../src"; -import { isUnexpected } from "../../src"; -import { createClient, createRecorder } from "./utils/recordedClient"; +import type { ConfidentialLedgerClient } from "../../src/index.js"; +import { isUnexpected } from "../../src/index.js"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("List Enclaves", function () { +describe("List Enclaves", () => { let recorder: Recorder; let client: ConfidentialLedgerClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should list all available document formats", async function () { + it("should list all available document formats", async () => { const result = await client.path("/app/enclaveQuotes").get(); assert.equal(result.status, "200"); diff --git a/sdk/confidentialledger/confidential-ledger-rest/test/public/postTransaction.spec.ts b/sdk/confidentialledger/confidential-ledger-rest/test/public/postTransaction.spec.ts index a77678473693..94d6ed53ebe6 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/test/public/postTransaction.spec.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/test/public/postTransaction.spec.ts @@ -1,29 +1,32 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { ConfidentialLedgerClient, CreateLedgerEntryParameters, LedgerEntry } from "../../src"; -import { isUnexpected } from "../../src"; -import { createClient, createRecorder, getRecorderUniqueVariable } from "./utils/recordedClient"; -import type { Context } from "mocha"; +import type { + ConfidentialLedgerClient, + CreateLedgerEntryParameters, + LedgerEntry, +} from "../../src/index.js"; +import { isUnexpected } from "../../src/index.js"; +import { createClient, createRecorder, getRecorderUniqueVariable } from "./utils/recordedClient.js"; import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("Post transaction", function () { +describe("Post transaction", () => { let recorder: Recorder; let client: ConfidentialLedgerClient; let contentBody: string; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { contentBody = "typescript post test"; - recorder = await createRecorder(this); + recorder = await createRecorder(ctx); client = await createClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should post to default ledger", async function () { + it("should post to default ledger", async () => { const entry: LedgerEntry = { contents: contentBody, }; @@ -63,7 +66,7 @@ describe("Post transaction", function () { ); }); - it("should post to collection", async function () { + it("should post to collection", async () => { const entry: LedgerEntry = { contents: "post ledger entry test", }; diff --git a/sdk/confidentialledger/confidential-ledger-rest/test/public/usersEndpoint.spec.ts b/sdk/confidentialledger/confidential-ledger-rest/test/public/usersEndpoint.spec.ts index 1c536b782617..f4591ba521e6 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/test/public/usersEndpoint.spec.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/test/public/usersEndpoint.spec.ts @@ -1,34 +1,30 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { ConfidentialLedgerClient } from "../../src"; -import { isUnexpected } from "../../src"; + +import type { ConfidentialLedgerClient } from "../../src/index.js"; +import { isUnexpected } from "../../src/index.js"; import type { Recorder } from "@azure-tools/test-recorder"; import { env } from "@azure-tools/test-recorder"; -import { createClient, createRecorder } from "./utils/recordedClient"; - -import type { Context } from "mocha"; -import { assert } from "chai"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("Get user", function () { +describe("Get user", () => { let recorder: Recorder; let client: ConfidentialLedgerClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should obtain user data", async function () { + it("should obtain user data", { skip: !env.AZURE_CLIENT_OID }, async () => { // If using a test app, it needs to be the oid. const userId = env.AZURE_CLIENT_OID; - if (!userId) { - this.skip(); - } - const result = await client.path("/app/users/{userId}", userId).get(); + const result = await client.path("/app/users/{userId}", userId!).get(); assert.equal(result.status, "200"); if (isUnexpected(result)) { diff --git a/sdk/confidentialledger/confidential-ledger-rest/test/public/utils/recordedClient.ts b/sdk/confidentialledger/confidential-ledger-rest/test/public/utils/recordedClient.ts index 001a226e9fe5..887fe6f5847a 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/test/public/utils/recordedClient.ts +++ b/sdk/confidentialledger/confidential-ledger-rest/test/public/utils/recordedClient.ts @@ -1,17 +1,16 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { ConfidentialLedgerClient } from "../../../src"; -import ConfidentialLedger, { getLedgerIdentity } from "../../../src"; +import type { ConfidentialLedgerClient } from "../../../src/index.js"; +import ConfidentialLedger, { getLedgerIdentity } from "../../../src/index.js"; import { Recorder, env, assertEnvironmentVariable, isPlaybackMode, } from "@azure-tools/test-recorder"; +import type { TestInfo } from "@azure-tools/test-recorder"; import { createTestCredential } from "@azure-tools/test-credential"; -import type { Context } from "mocha"; - const replaceableVariables: { [k: string]: string } = { LEDGER_URI: "https://test-ledger.confidential-ledger.azure.com", AZURE_CLIENT_OID: "azure_client_oid", @@ -48,9 +47,9 @@ export async function createClient(recorder: Recorder): Promise { +export async function createRecorder(context: TestInfo): Promise { const ledgerIdentityCertificate = await getledgerIdentityCertificate(); - const recorder = new Recorder(context.currentTest); + const recorder = new Recorder(context); const uriSanitizers = []; if (env.AZURE_CLIENT_OID) { uriSanitizers.push({ diff --git a/sdk/confidentialledger/confidential-ledger-rest/tsconfig.json b/sdk/confidentialledger/confidential-ledger-rest/tsconfig.json index 666803f4be63..981df6cf27a1 100644 --- a/sdk/confidentialledger/confidential-ledger-rest/tsconfig.json +++ b/sdk/confidentialledger/confidential-ledger-rest/tsconfig.json @@ -1,11 +1,12 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "paths": { "@azure-rest/confidential-ledger": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": ["src/**/*.ts", "src/**/*.mts", "src/**/*.cts", "samples-dev/**/*.ts", "test/**/*.ts"] } diff --git a/sdk/confidentialledger/confidential-ledger-rest/vitest.config.ts b/sdk/confidentialledger/confidential-ledger-rest/vitest.config.ts new file mode 100644 index 000000000000..39267dd2f56f --- /dev/null +++ b/sdk/confidentialledger/confidential-ledger-rest/vitest.config.ts @@ -0,0 +1,15 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + }, + }), +); diff --git a/sdk/connectedcache/arm-connectedcache/CHANGELOG.md b/sdk/connectedcache/arm-connectedcache/CHANGELOG.md new file mode 100644 index 000000000000..c70842647d83 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/CHANGELOG.md @@ -0,0 +1,7 @@ +# Release History + +## 1.0.0-beta.1 (2024-11-19) + +### Features Added + +Initial release of the Azure ConnectedCache package diff --git a/sdk/connectedcache/arm-connectedcache/LICENSE b/sdk/connectedcache/arm-connectedcache/LICENSE new file mode 100644 index 000000000000..7d5934740965 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2024 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/sdk/connectedcache/arm-connectedcache/README.md b/sdk/connectedcache/arm-connectedcache/README.md new file mode 100644 index 000000000000..90da7dfe1a6a --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/README.md @@ -0,0 +1,102 @@ +# Azure ConnectedCache client library for JavaScript + +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ConnectedCache client. + +Microsoft Connected Cache Rest Api version 2023-05-01-preview + +Key links: + +- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-connectedcache) +- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-connectedcache?view=azure-node-preview) + +## Getting started + +### Currently supported environments + +- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule) +- Latest versions of Safari, Chrome, Edge and Firefox. + +See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. + +### Prerequisites + +- An [Azure subscription][azure_sub]. + +### Install the `@azure/arm-connectedcache` package + +Install the Azure ConnectedCache client library for JavaScript with `npm`: + +```bash +npm install @azure/arm-connectedcache +``` + +### Create and authenticate a `ConnectedCacheClient` + +To create a client object to access the Azure ConnectedCache API, you will need the `endpoint` of your Azure ConnectedCache resource and a `credential`. The Azure ConnectedCache client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure ConnectedCache resource in the [Azure Portal][azure_portal]. + +You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). + +To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: + +```bash +npm install @azure/identity +``` + +You will also need to **register a new AAD application and grant access to Azure ConnectedCache** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. + +For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). + +```javascript +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); +// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. + +const subscriptionId = "00000000-0000-0000-0000-000000000000"; +const client = new ConnectedCacheClient(new DefaultAzureCredential(), subscriptionId); + +// For client-side applications running in the browser, use this code instead: +// const credential = new InteractiveBrowserCredential({ +// tenantId: "", +// clientId: "" +// }); +// const client = new ConnectedCacheClient(credential, subscriptionId); +``` + + +### JavaScript Bundle +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). + +## Key concepts + +### ConnectedCacheClient + +`ConnectedCacheClient` is the primary interface for developers using the Azure ConnectedCache client library. Explore the methods on this client object to understand the different features of the Azure ConnectedCache service that you can access. + +## Troubleshooting + +### Logging + +Enabling 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`: + +```javascript +const { setLogLevel } = require("@azure/logger"); +setLogLevel("info"); +``` + +For 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). + + +## Contributing + +If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. + +## Related projects + +- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) + +[azure_sub]: https://azure.microsoft.com/free/ +[azure_portal]: https://portal.azure.com +[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity +[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential diff --git a/sdk/connectedcache/arm-connectedcache/api-extractor.json b/sdk/connectedcache/arm-connectedcache/api-extractor.json new file mode 100644 index 000000000000..b29cdcc05a82 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/api-extractor.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./dist/esm/index.d.ts", + "docModel": { "enabled": true }, + "apiReport": { "enabled": true, "reportFolder": "./review" }, + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "", + "publicTrimmedFilePath": "./types/arm-connectedcache.d.ts" + }, + "messages": { + "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "extractorMessageReporting": { + "ae-missing-release-tag": { "logLevel": "none" }, + "ae-unresolved-link": { "logLevel": "none" } + } + } +} diff --git a/sdk/connectedcache/arm-connectedcache/assets.json b/sdk/connectedcache/arm-connectedcache/assets.json new file mode 100644 index 000000000000..b77abda6fd33 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "js", + "TagPrefix": "js/connectedcache/arm-connectedcache", + "Tag": "js/connectedcache/arm-connectedcache_c716744a2d" +} diff --git a/sdk/connectedcache/arm-connectedcache/eslint.config.mjs b/sdk/connectedcache/arm-connectedcache/eslint.config.mjs new file mode 100644 index 000000000000..03244d34a19f --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/eslint.config.mjs @@ -0,0 +1,17 @@ +import azsdkEslint from "@azure/eslint-plugin-azure-sdk"; + +export default [ + ...azsdkEslint.configs.recommended, + { + rules: { + "@azure/azure-sdk/ts-modules-only-named": "warn", + "@azure/azure-sdk/ts-apiextractor-json-types": "warn", + "@azure/azure-sdk/ts-package-json-types": "warn", + "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", + "@azure/azure-sdk/ts-package-json-module": "off", + "@azure/azure-sdk/ts-package-json-files-required": "off", + "@azure/azure-sdk/ts-package-json-main-is-cjs": "off", + "tsdoc/syntax": "warn", + }, + }, +]; diff --git a/sdk/connectedcache/arm-connectedcache/package.json b/sdk/connectedcache/arm-connectedcache/package.json new file mode 100644 index 000000000000..b0d16ada2749 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/package.json @@ -0,0 +1,160 @@ +{ + "name": "@azure/arm-connectedcache", + "version": "1.0.0-beta.1", + "description": "A generated SDK for ConnectedCacheClient.", + "engines": { + "node": ">=18.0.0" + }, + "sideEffects": false, + "autoPublish": false, + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts", + "./models": "./src/models/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "type": "module", + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "files": [ + "dist", + "README.md", + "LICENSE", + "review/*", + "CHANGELOG.md" + ], + "sdk-type": "mgmt", + "repository": "github:Azure/azure-sdk-for-js", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", + "//metadata": { + "constantPaths": [ + { + "path": "src/api/connectedCacheContext.ts", + "prefix": "userAgentInfo" + } + ] + }, + "dependencies": { + "@azure/core-util": "^1.9.2", + "@azure-rest/core-client": "^2.3.1", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.5.0", + "@azure/logger": "^1.0.0", + "tslib": "^2.6.2", + "@azure/core-lro": "^3.1.0", + "@azure/abort-controller": "^2.1.2" + }, + "devDependencies": { + "dotenv": "^16.0.0", + "@microsoft/api-extractor": "^7.40.3", + "@types/node": "^18.0.0", + "eslint": "^9.9.0", + "typescript": "~5.6.2", + "tshy": "^2.0.0", + "@azure/identity": "^4.2.1", + "@vitest/browser": "^2.0.5", + "@vitest/coverage-istanbul": "^2.0.5", + "playwright": "^1.41.2", + "vitest": "^2.0.5", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.0.0", + "@azure/dev-tool": "^1.0.0", + "@azure/eslint-plugin-azure-sdk": "^3.0.0" + }, + "scripts": { + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", + "pack": "npm pack 2>&1", + "lint": "echo skipped", + "lint:fix": "echo skipped", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "echo skipped", + "build:samples": "dev-tool run typecheck --paths samples-dev/*.ts && dev-tool samples publish -f", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"", + "execute:samples": "dev-tool samples run samples-dev", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"", + "generate:client": "echo skipped", + "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", + "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", + "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", + "update-snippets": "echo skipped" + }, + "//sampleConfiguration": { + "productName": "@azure/arm-connectedcache", + "productSlugs": [ + "azure" + ], + "disableDocsMs": true, + "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-connectedcache?view=azure-node-preview" + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + }, + "./models": { + "browser": { + "types": "./dist/browser/models/index.d.ts", + "default": "./dist/browser/models/index.js" + }, + "react-native": { + "types": "./dist/react-native/models/index.d.ts", + "default": "./dist/react-native/models/index.js" + }, + "import": { + "types": "./dist/esm/models/index.d.ts", + "default": "./dist/esm/models/index.js" + }, + "require": { + "types": "./dist/commonjs/models/index.d.ts", + "default": "./dist/commonjs/models/index.js" + } + } + }, + "main": "./dist/commonjs/index.js", + "types": "./dist/commonjs/index.d.ts", + "module": "./dist/esm/index.js" +} diff --git a/sdk/connectedcache/arm-connectedcache/review/arm-connectedcache-models.api.md b/sdk/connectedcache/arm-connectedcache/review/arm-connectedcache-models.api.md new file mode 100644 index 000000000000..3098b9173d57 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/review/arm-connectedcache-models.api.md @@ -0,0 +1,441 @@ +## API Report File for "@azure/arm-connectedcache" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +// @public +export type ActionType = string; + +// @public +export interface AdditionalCacheNodeProperties { + readonly aggregatedStatusCode?: number; + readonly aggregatedStatusDetails?: string; + readonly aggregatedStatusText?: string; + readonly autoUpdateAppliedVersion?: string; + readonly autoUpdateLastAppliedDateTime?: Date; + readonly autoUpdateLastAppliedDetails?: string; + readonly autoUpdateLastAppliedState?: string; + readonly autoUpdateLastTriggeredDateTime?: Date; + readonly autoUpdateNextAvailableDateTime?: Date; + readonly autoUpdateNextAvailableVersion?: string; + autoUpdateVersion?: string; + bgpConfiguration?: BgpConfiguration; + cacheNodePropertiesDetailsIssuesList?: string[]; + readonly cacheNodeState?: number; + readonly cacheNodeStateDetailedText?: string; + readonly cacheNodeStateShortText?: string; + driveConfiguration?: CacheNodeDriveConfiguration[]; + readonly isProvisioned?: boolean; + isProxyRequired?: ProxyRequired; + optionalProperty1?: string; + optionalProperty2?: string; + optionalProperty3?: string; + optionalProperty4?: string; + optionalProperty5?: string; + osType?: OsType; + readonly productVersion?: string; + proxyUrl?: string; + proxyUrlConfiguration?: ProxyUrlConfiguration; + updateCycleType?: CycleType; + updateInfoDetails?: string; + updateRequestedDateTime?: Date; +} + +// @public +export interface AdditionalCustomerProperties { + customerAsn?: string; + readonly customerAsnEstimatedEgressPeekGbps?: number; + customerEmail?: string; + customerEntitlementExpiration?: Date; + customerEntitlementSkuGuid?: string; + customerEntitlementSkuId?: string; + customerEntitlementSkuName?: string; + readonly customerOrgName?: string; + readonly customerPropertiesOverviewAverageEgressMbps?: number; + readonly customerPropertiesOverviewAverageMissMbps?: number; + readonly customerPropertiesOverviewCacheEfficiency?: number; + readonly customerPropertiesOverviewCacheNodesHealthyCount?: number; + readonly customerPropertiesOverviewCacheNodesUnhealthyCount?: number; + readonly customerPropertiesOverviewEgressMbpsMax?: number; + readonly customerPropertiesOverviewEgressMbpsMaxDateTime?: Date; + readonly customerPropertiesOverviewMissMbpsMax?: number; + readonly customerPropertiesOverviewMissMbpsMaxDateTime?: Date; + customerTransitAsn?: string; + customerTransitState?: CustomerTransitState; + optionalProperty1?: string; + optionalProperty2?: string; + optionalProperty3?: string; + optionalProperty4?: string; + optionalProperty5?: string; + readonly peeringDbLastUpdateDate?: Date; + readonly peeringDbLastUpdateTime?: Date; + readonly signupPhaseStatusCode?: number; + readonly signupPhaseStatusText?: string; + readonly signupStatus?: boolean; + readonly signupStatusCode?: number; + readonly signupStatusText?: string; +} + +// @public +export type AutoUpdateRingType = string; + +// @public +export interface BgpCidrsConfiguration { + readonly bgpCidrs?: string[]; +} + +// @public +export interface BgpConfiguration { + asnToIpAddressMapping?: string; +} + +// @public +export type BgpReviewStateEnum = string; + +// @public +export interface CacheNodeDriveConfiguration { + cacheNumber?: number; + nginxMapping?: string; + physicalPath?: string; + sizeInGb?: number; +} + +// @public +export interface CacheNodeEntity { + readonly addressSpace?: number; + autoUpdateRequestedDay?: number; + autoUpdateRequestedTime?: string; + autoUpdateRequestedWeek?: number; + autoUpdateRingType?: AutoUpdateRingType; + readonly bgpAddressSpace?: number; + readonly bgpCidrBlocksCount?: number; + readonly bgpCidrCsvLastUpdateTime?: Date; + readonly bgpFileBytesTruncated?: number; + readonly bgpLastReportedTime?: Date; + readonly bgpNumberOfRecords?: number; + readonly bgpNumberOfTimesUpdated?: number; + readonly bgpReviewFeedback?: string; + readonly bgpReviewState?: BgpReviewStateEnum; + readonly bgpReviewStateText?: string; + cacheNodeId?: string; + cacheNodeName?: string; + readonly category?: string; + cidrCsv?: string[]; + readonly cidrCsvLastUpdateTime?: Date; + cidrSelectionType?: number; + readonly clientTenantId?: string; + readonly configurationState?: ConfigurationState; + readonly configurationStateText?: string; + readonly containerConfigurations?: string; + readonly containerResyncTrigger?: number; + readonly createAsyncOperationId?: string; + customerAsn?: number; + readonly customerId?: string; + customerIndex?: string; + customerName?: string; + readonly deleteAsyncOperationId?: string; + fullyQualifiedDomainName?: string; + fullyQualifiedResourceId?: string; + readonly imageUri?: string; + ipAddress?: string; + isEnabled?: boolean; + isEnterpriseManaged?: boolean; + readonly isFrozen?: boolean; + readonly lastSyncWithAzureTimestamp?: Date; + readonly lastUpdatedTimestamp?: Date; + maxAllowableEgressInMbps?: number; + readonly maxAllowableProbability?: number; + readonly releaseVersion?: number; + readonly reviewFeedback?: string; + readonly reviewState?: number; + readonly reviewStateText?: string; + shouldMigrate?: boolean; + readonly synchWithAzureAttemptsCount?: number; + readonly workerConnections?: number; + readonly workerConnectionsLastUpdatedDateTime?: Date; + readonly xCid?: string; +} + +// @public +export interface CacheNodeInstallProperties { + cacheNodeId?: string; + customerId?: string; + readonly primaryAccountKey?: string; + readonly registrationKey?: string; + readonly secondaryAccountKey?: string; +} + +// @public +export interface CacheNodeOldResponse { + error?: ErrorDetail; + readonly provisioningState?: ProvisioningState; + readonly status?: string; + statusCode?: string; + statusDetails?: string; + statusText?: string; +} + +// @public +export interface CacheNodePreviewResource extends TrackedResource { + properties?: CacheNodeOldResponse; +} + +// @public +export interface CacheNodeProperty { + additionalCacheNodeProperties?: AdditionalCacheNodeProperties; + cacheNode?: CacheNodeEntity; + error?: ErrorDetail; + readonly provisioningState?: ProvisioningState; + readonly status?: string; + statusCode?: string; + statusDetails?: string; + statusText?: string; +} + +// @public +export type ConfigurationState = string; + +// @public +export interface ConnectedCachePatchResource { + tags?: Record; +} + +// @public +export type CreatedByType = string; + +// @public +export interface CustomerEntity { + clientTenantId?: string; + contactEmail?: string; + contactName?: string; + contactPhone?: string; + readonly createAsyncOperationId?: string; + readonly customerId?: string; + customerName?: string; + readonly deleteAsyncOperationId?: string; + fullyQualifiedResourceId?: string; + isEnterpriseManaged?: boolean; + isEntitled?: boolean; + readonly lastSyncWithAzureTimestamp?: Date; + releaseVersion?: number; + resendSignupCode?: boolean; + shouldMigrate?: boolean; + readonly synchWithAzureAttemptsCount?: number; + verifySignupCode?: boolean; + verifySignupPhrase?: string; +} + +// @public +export interface CustomerProperty { + additionalCustomerProperties?: AdditionalCustomerProperties; + customer?: CustomerEntity; + readonly error?: ErrorDetail; + readonly provisioningState?: ProvisioningState; + readonly status?: string; + readonly statusCode?: string; + readonly statusDetails?: string; + readonly statusText?: string; +} + +// @public +export type CustomerTransitState = string; + +// @public +export type CycleType = string; + +// @public +export interface EnterpriseMccCacheNodeResource extends TrackedResource { + properties?: CacheNodeProperty; +} + +// @public +export interface EnterpriseMccCustomerResource extends TrackedResource { + properties?: CustomerProperty; +} + +// @public +export interface EnterprisePreviewResource extends TrackedResource { + properties?: CacheNodeOldResponse; +} + +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface IspCacheNodeResource extends TrackedResource { + properties?: CacheNodeProperty; +} + +// @public +export interface IspCustomerResource extends TrackedResource { + properties?: CustomerProperty; +} + +// @public +export enum KnownActionType { + Internal = "Internal" +} + +// @public +export enum KnownAutoUpdateRingType { + Fast = "Fast", + Preview = "Preview", + Slow = "Slow" +} + +// @public +export enum KnownBgpReviewStateEnum { + Approved = "Approved", + AttentionRequired = "AttentionRequired", + InReview = "InReview", + NotConfigured = "NotConfigured" +} + +// @public +export enum KnownConfigurationState { + Configured = "Configured", + NotConfigured_Ip = "NotConfigured_Ip" +} + +// @public +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" +} + +// @public +export enum KnownCustomerTransitState { + CombinedTransit = "CombinedTransit", + NoTransit = "NoTransit", + TransitOnly = "TransitOnly" +} + +// @public +export enum KnownCycleType { + Fast = "Fast", + Preview = "Preview", + Slow = "Slow" +} + +// @public +export enum KnownOrigin { + System = "system", + User = "user", + UserSystem = "user,system" +} + +// @public +export enum KnownOsType { + Eflow = "Eflow", + Linux = "Linux", + Windows = "Windows" +} + +// @public +export enum KnownProvisioningState { + Accepted = "Accepted", + Canceled = "Canceled", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Unknown = "Unknown", + Upgrading = "Upgrading" +} + +// @public +export enum KnownProxyRequired { + None = "None", + Required = "Required" +} + +// @public +export enum KnownVersions { + v2023_05_01_preview = "2023-05-01-preview" +} + +// @public +export interface MccCacheNodeBgpCidrDetails extends TrackedResource { + properties?: BgpCidrsConfiguration; +} + +// @public +export interface MccCacheNodeInstallDetails extends TrackedResource { + properties?: CacheNodeInstallProperties; +} + +// @public +export interface Operation { + actionType?: ActionType; + readonly display?: OperationDisplay; + readonly isDataAction?: boolean; + readonly name?: string; + readonly origin?: Origin; +} + +// @public +export interface OperationDisplay { + readonly description?: string; + readonly operation?: string; + readonly provider?: string; + readonly resource?: string; +} + +// @public +export type Origin = string; + +// @public +export type OsType = string; + +// @public +export type ProvisioningState = string; + +// @public +export type ProxyRequired = string; + +// @public +export interface ProxyUrlConfiguration { + proxyUrl?: string; +} + +// @public +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface TrackedResource extends Resource { + location: string; + tags?: Record; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/sdk/connectedcache/arm-connectedcache/review/arm-connectedcache.api.md b/sdk/connectedcache/arm-connectedcache/review/arm-connectedcache.api.md new file mode 100644 index 000000000000..13c710d3ae35 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/review/arm-connectedcache.api.md @@ -0,0 +1,723 @@ +## API Report File for "@azure/arm-connectedcache" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { AbortSignalLike } from '@azure/abort-controller'; +import { ClientOptions } from '@azure-rest/core-client'; +import { OperationOptions } from '@azure-rest/core-client'; +import { OperationState } from '@azure/core-lro'; +import { PathUncheckedResponse } from '@azure-rest/core-client'; +import { Pipeline } from '@azure/core-rest-pipeline'; +import { PollerLike } from '@azure/core-lro'; +import { TokenCredential } from '@azure/core-auth'; + +// @public +export type ActionType = string; + +// @public +export interface AdditionalCacheNodeProperties { + readonly aggregatedStatusCode?: number; + readonly aggregatedStatusDetails?: string; + readonly aggregatedStatusText?: string; + readonly autoUpdateAppliedVersion?: string; + readonly autoUpdateLastAppliedDateTime?: Date; + readonly autoUpdateLastAppliedDetails?: string; + readonly autoUpdateLastAppliedState?: string; + readonly autoUpdateLastTriggeredDateTime?: Date; + readonly autoUpdateNextAvailableDateTime?: Date; + readonly autoUpdateNextAvailableVersion?: string; + autoUpdateVersion?: string; + bgpConfiguration?: BgpConfiguration; + cacheNodePropertiesDetailsIssuesList?: string[]; + readonly cacheNodeState?: number; + readonly cacheNodeStateDetailedText?: string; + readonly cacheNodeStateShortText?: string; + driveConfiguration?: CacheNodeDriveConfiguration[]; + readonly isProvisioned?: boolean; + isProxyRequired?: ProxyRequired; + optionalProperty1?: string; + optionalProperty2?: string; + optionalProperty3?: string; + optionalProperty4?: string; + optionalProperty5?: string; + osType?: OsType; + readonly productVersion?: string; + proxyUrl?: string; + proxyUrlConfiguration?: ProxyUrlConfiguration; + updateCycleType?: CycleType; + updateInfoDetails?: string; + updateRequestedDateTime?: Date; +} + +// @public +export interface AdditionalCustomerProperties { + customerAsn?: string; + readonly customerAsnEstimatedEgressPeekGbps?: number; + customerEmail?: string; + customerEntitlementExpiration?: Date; + customerEntitlementSkuGuid?: string; + customerEntitlementSkuId?: string; + customerEntitlementSkuName?: string; + readonly customerOrgName?: string; + readonly customerPropertiesOverviewAverageEgressMbps?: number; + readonly customerPropertiesOverviewAverageMissMbps?: number; + readonly customerPropertiesOverviewCacheEfficiency?: number; + readonly customerPropertiesOverviewCacheNodesHealthyCount?: number; + readonly customerPropertiesOverviewCacheNodesUnhealthyCount?: number; + readonly customerPropertiesOverviewEgressMbpsMax?: number; + readonly customerPropertiesOverviewEgressMbpsMaxDateTime?: Date; + readonly customerPropertiesOverviewMissMbpsMax?: number; + readonly customerPropertiesOverviewMissMbpsMaxDateTime?: Date; + customerTransitAsn?: string; + customerTransitState?: CustomerTransitState; + optionalProperty1?: string; + optionalProperty2?: string; + optionalProperty3?: string; + optionalProperty4?: string; + optionalProperty5?: string; + readonly peeringDbLastUpdateDate?: Date; + readonly peeringDbLastUpdateTime?: Date; + readonly signupPhaseStatusCode?: number; + readonly signupPhaseStatusText?: string; + readonly signupStatus?: boolean; + readonly signupStatusCode?: number; + readonly signupStatusText?: string; +} + +// @public +export type AutoUpdateRingType = string; + +// @public +export interface BgpCidrsConfiguration { + readonly bgpCidrs?: string[]; +} + +// @public +export interface BgpConfiguration { + asnToIpAddressMapping?: string; +} + +// @public +export type BgpReviewStateEnum = string; + +// @public +export interface CacheNodeDriveConfiguration { + cacheNumber?: number; + nginxMapping?: string; + physicalPath?: string; + sizeInGb?: number; +} + +// @public +export interface CacheNodeEntity { + readonly addressSpace?: number; + autoUpdateRequestedDay?: number; + autoUpdateRequestedTime?: string; + autoUpdateRequestedWeek?: number; + autoUpdateRingType?: AutoUpdateRingType; + readonly bgpAddressSpace?: number; + readonly bgpCidrBlocksCount?: number; + readonly bgpCidrCsvLastUpdateTime?: Date; + readonly bgpFileBytesTruncated?: number; + readonly bgpLastReportedTime?: Date; + readonly bgpNumberOfRecords?: number; + readonly bgpNumberOfTimesUpdated?: number; + readonly bgpReviewFeedback?: string; + readonly bgpReviewState?: BgpReviewStateEnum; + readonly bgpReviewStateText?: string; + cacheNodeId?: string; + cacheNodeName?: string; + readonly category?: string; + cidrCsv?: string[]; + readonly cidrCsvLastUpdateTime?: Date; + cidrSelectionType?: number; + readonly clientTenantId?: string; + readonly configurationState?: ConfigurationState; + readonly configurationStateText?: string; + readonly containerConfigurations?: string; + readonly containerResyncTrigger?: number; + readonly createAsyncOperationId?: string; + customerAsn?: number; + readonly customerId?: string; + customerIndex?: string; + customerName?: string; + readonly deleteAsyncOperationId?: string; + fullyQualifiedDomainName?: string; + fullyQualifiedResourceId?: string; + readonly imageUri?: string; + ipAddress?: string; + isEnabled?: boolean; + isEnterpriseManaged?: boolean; + readonly isFrozen?: boolean; + readonly lastSyncWithAzureTimestamp?: Date; + readonly lastUpdatedTimestamp?: Date; + maxAllowableEgressInMbps?: number; + readonly maxAllowableProbability?: number; + readonly releaseVersion?: number; + readonly reviewFeedback?: string; + readonly reviewState?: number; + readonly reviewStateText?: string; + shouldMigrate?: boolean; + readonly synchWithAzureAttemptsCount?: number; + readonly workerConnections?: number; + readonly workerConnectionsLastUpdatedDateTime?: Date; + readonly xCid?: string; +} + +// @public +export interface CacheNodeInstallProperties { + cacheNodeId?: string; + customerId?: string; + readonly primaryAccountKey?: string; + readonly registrationKey?: string; + readonly secondaryAccountKey?: string; +} + +// @public +export interface CacheNodeOldResponse { + error?: ErrorDetail; + readonly provisioningState?: ProvisioningState; + readonly status?: string; + statusCode?: string; + statusDetails?: string; + statusText?: string; +} + +// @public +export interface CacheNodePreviewResource extends TrackedResource { + properties?: CacheNodeOldResponse; +} + +// @public +export interface CacheNodeProperty { + additionalCacheNodeProperties?: AdditionalCacheNodeProperties; + cacheNode?: CacheNodeEntity; + error?: ErrorDetail; + readonly provisioningState?: ProvisioningState; + readonly status?: string; + statusCode?: string; + statusDetails?: string; + statusText?: string; +} + +// @public +export interface CacheNodesOperationsCreateorUpdateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface CacheNodesOperationsDeleteOptionalParams extends OperationOptions { +} + +// @public +export interface CacheNodesOperationsGetOptionalParams extends OperationOptions { +} + +// @public +export interface CacheNodesOperationsListByResourceGroupOptionalParams extends OperationOptions { +} + +// @public +export interface CacheNodesOperationsListBySubscriptionOptionalParams extends OperationOptions { +} + +// @public +export interface CacheNodesOperationsOperations { + createorUpdate: (resourceGroupName: string, customerResourceName: string, resource: CacheNodePreviewResource, options?: CacheNodesOperationsCreateorUpdateOptionalParams) => PollerLike, CacheNodePreviewResource>; + delete: (resourceGroupName: string, customerResourceName: string, options?: CacheNodesOperationsDeleteOptionalParams) => Promise; + get: (resourceGroupName: string, customerResourceName: string, options?: CacheNodesOperationsGetOptionalParams) => Promise; + listByResourceGroup: (resourceGroupName: string, options?: CacheNodesOperationsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; + listBySubscription: (options?: CacheNodesOperationsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; + update: (resourceGroupName: string, customerResourceName: string, properties: ConnectedCachePatchResource, options?: CacheNodesOperationsUpdateOptionalParams) => Promise; +} + +// @public +export interface CacheNodesOperationsUpdateOptionalParams extends OperationOptions { +} + +// @public +export type ConfigurationState = string; + +// @public (undocumented) +export class ConnectedCacheClient { + constructor(credential: TokenCredential, subscriptionId: string, options?: ConnectedCacheClientOptionalParams); + readonly cacheNodesOperations: CacheNodesOperationsOperations; + readonly enterpriseCustomerOperations: EnterpriseCustomerOperationsOperations; + readonly enterpriseMccCacheNodesOperations: EnterpriseMccCacheNodesOperationsOperations; + readonly enterpriseMccCustomers: EnterpriseMccCustomersOperations; + readonly ispCacheNodesOperations: IspCacheNodesOperationsOperations; + readonly ispCustomers: IspCustomersOperations; + readonly operations: OperationsOperations; + readonly pipeline: Pipeline; +} + +// @public +export interface ConnectedCacheClientOptionalParams extends ClientOptions { + apiVersion?: string; +} + +// @public +export interface ConnectedCachePatchResource { + tags?: Record; +} + +// @public +export type ContinuablePage = TPage & { + continuationToken?: string; +}; + +// @public +export type CreatedByType = string; + +// @public +export interface CustomerEntity { + clientTenantId?: string; + contactEmail?: string; + contactName?: string; + contactPhone?: string; + readonly createAsyncOperationId?: string; + readonly customerId?: string; + customerName?: string; + readonly deleteAsyncOperationId?: string; + fullyQualifiedResourceId?: string; + isEnterpriseManaged?: boolean; + isEntitled?: boolean; + readonly lastSyncWithAzureTimestamp?: Date; + releaseVersion?: number; + resendSignupCode?: boolean; + shouldMigrate?: boolean; + readonly synchWithAzureAttemptsCount?: number; + verifySignupCode?: boolean; + verifySignupPhrase?: string; +} + +// @public +export interface CustomerProperty { + additionalCustomerProperties?: AdditionalCustomerProperties; + customer?: CustomerEntity; + readonly error?: ErrorDetail; + readonly provisioningState?: ProvisioningState; + readonly status?: string; + readonly statusCode?: string; + readonly statusDetails?: string; + readonly statusText?: string; +} + +// @public +export type CustomerTransitState = string; + +// @public +export type CycleType = string; + +// @public +export interface EnterpriseCustomerOperationsCreateOrUpdateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface EnterpriseCustomerOperationsDeleteOptionalParams extends OperationOptions { +} + +// @public +export interface EnterpriseCustomerOperationsGetOptionalParams extends OperationOptions { +} + +// @public +export interface EnterpriseCustomerOperationsListByResourceGroupOptionalParams extends OperationOptions { +} + +// @public +export interface EnterpriseCustomerOperationsListBySubscriptionOptionalParams extends OperationOptions { +} + +// @public +export interface EnterpriseCustomerOperationsOperations { + createOrUpdate: (resourceGroupName: string, customerResourceName: string, resource: EnterprisePreviewResource, options?: EnterpriseCustomerOperationsCreateOrUpdateOptionalParams) => PollerLike, EnterprisePreviewResource>; + delete: (resourceGroupName: string, customerResourceName: string, options?: EnterpriseCustomerOperationsDeleteOptionalParams) => Promise; + get: (resourceGroupName: string, customerResourceName: string, options?: EnterpriseCustomerOperationsGetOptionalParams) => Promise; + listByResourceGroup: (resourceGroupName: string, options?: EnterpriseCustomerOperationsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; + listBySubscription: (options?: EnterpriseCustomerOperationsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; + update: (resourceGroupName: string, customerResourceName: string, properties: ConnectedCachePatchResource, options?: EnterpriseCustomerOperationsUpdateOptionalParams) => Promise; +} + +// @public +export interface EnterpriseCustomerOperationsUpdateOptionalParams extends OperationOptions { +} + +// @public +export interface EnterpriseMccCacheNodeResource extends TrackedResource { + properties?: CacheNodeProperty; +} + +// @public +export interface EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface EnterpriseMccCacheNodesOperationsDeleteOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams extends OperationOptions { +} + +// @public +export interface EnterpriseMccCacheNodesOperationsGetOptionalParams extends OperationOptions { +} + +// @public +export interface EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams extends OperationOptions { +} + +// @public +export interface EnterpriseMccCacheNodesOperationsOperations { + createOrUpdate: (resourceGroupName: string, customerResourceName: string, cacheNodeResourceName: string, resource: EnterpriseMccCacheNodeResource, options?: EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams) => PollerLike, EnterpriseMccCacheNodeResource>; + delete: (resourceGroupName: string, customerResourceName: string, cacheNodeResourceName: string, options?: EnterpriseMccCacheNodesOperationsDeleteOptionalParams) => PollerLike, void>; + get: (resourceGroupName: string, customerResourceName: string, cacheNodeResourceName: string, options?: EnterpriseMccCacheNodesOperationsGetOptionalParams) => Promise; + getCacheNodeInstallDetails: (resourceGroupName: string, customerResourceName: string, cacheNodeResourceName: string, options?: EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams) => Promise; + listByEnterpriseMccCustomerResource: (resourceGroupName: string, customerResourceName: string, options?: EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams) => PagedAsyncIterableIterator; + update: (resourceGroupName: string, customerResourceName: string, cacheNodeResourceName: string, properties: ConnectedCachePatchResource, options?: EnterpriseMccCacheNodesOperationsUpdateOptionalParams) => Promise; +} + +// @public +export interface EnterpriseMccCacheNodesOperationsUpdateOptionalParams extends OperationOptions { +} + +// @public +export interface EnterpriseMccCustomerResource extends TrackedResource { + properties?: CustomerProperty; +} + +// @public +export interface EnterpriseMccCustomersCreateOrUpdateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface EnterpriseMccCustomersDeleteOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface EnterpriseMccCustomersGetOptionalParams extends OperationOptions { +} + +// @public +export interface EnterpriseMccCustomersListByResourceGroupOptionalParams extends OperationOptions { +} + +// @public +export interface EnterpriseMccCustomersListBySubscriptionOptionalParams extends OperationOptions { +} + +// @public +export interface EnterpriseMccCustomersOperations { + createOrUpdate: (resourceGroupName: string, customerResourceName: string, resource: EnterpriseMccCustomerResource, options?: EnterpriseMccCustomersCreateOrUpdateOptionalParams) => PollerLike, EnterpriseMccCustomerResource>; + delete: (resourceGroupName: string, customerResourceName: string, options?: EnterpriseMccCustomersDeleteOptionalParams) => PollerLike, void>; + get: (resourceGroupName: string, customerResourceName: string, options?: EnterpriseMccCustomersGetOptionalParams) => Promise; + listByResourceGroup: (resourceGroupName: string, options?: EnterpriseMccCustomersListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; + listBySubscription: (options?: EnterpriseMccCustomersListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; + update: (resourceGroupName: string, customerResourceName: string, properties: ConnectedCachePatchResource, options?: EnterpriseMccCustomersUpdateOptionalParams) => Promise; +} + +// @public +export interface EnterpriseMccCustomersUpdateOptionalParams extends OperationOptions { +} + +// @public +export interface EnterprisePreviewResource extends TrackedResource { + properties?: CacheNodeOldResponse; +} + +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface IspCacheNodeResource extends TrackedResource { + properties?: CacheNodeProperty; +} + +// @public +export interface IspCacheNodesOperationsCreateOrUpdateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface IspCacheNodesOperationsDeleteOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface IspCacheNodesOperationsGetBgpCidrsOptionalParams extends OperationOptions { +} + +// @public +export interface IspCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams extends OperationOptions { +} + +// @public +export interface IspCacheNodesOperationsGetOptionalParams extends OperationOptions { +} + +// @public +export interface IspCacheNodesOperationsListByIspCustomerResourceOptionalParams extends OperationOptions { +} + +// @public +export interface IspCacheNodesOperationsOperations { + createOrUpdate: (resourceGroupName: string, customerResourceName: string, cacheNodeResourceName: string, resource: IspCacheNodeResource, options?: IspCacheNodesOperationsCreateOrUpdateOptionalParams) => PollerLike, IspCacheNodeResource>; + delete: (resourceGroupName: string, customerResourceName: string, cacheNodeResourceName: string, options?: IspCacheNodesOperationsDeleteOptionalParams) => PollerLike, void>; + get: (resourceGroupName: string, customerResourceName: string, cacheNodeResourceName: string, options?: IspCacheNodesOperationsGetOptionalParams) => Promise; + getBgpCidrs: (resourceGroupName: string, customerResourceName: string, cacheNodeResourceName: string, options?: IspCacheNodesOperationsGetBgpCidrsOptionalParams) => Promise; + getCacheNodeInstallDetails: (resourceGroupName: string, customerResourceName: string, cacheNodeResourceName: string, options?: IspCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams) => Promise; + listByIspCustomerResource: (resourceGroupName: string, customerResourceName: string, options?: IspCacheNodesOperationsListByIspCustomerResourceOptionalParams) => PagedAsyncIterableIterator; + update: (resourceGroupName: string, customerResourceName: string, cacheNodeResourceName: string, properties: ConnectedCachePatchResource, options?: IspCacheNodesOperationsUpdateOptionalParams) => Promise; +} + +// @public +export interface IspCacheNodesOperationsUpdateOptionalParams extends OperationOptions { +} + +// @public +export interface IspCustomerResource extends TrackedResource { + properties?: CustomerProperty; +} + +// @public +export interface IspCustomersCreateOrUpdateOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface IspCustomersDeleteOptionalParams extends OperationOptions { + updateIntervalInMs?: number; +} + +// @public +export interface IspCustomersGetOptionalParams extends OperationOptions { +} + +// @public +export interface IspCustomersListByResourceGroupOptionalParams extends OperationOptions { +} + +// @public +export interface IspCustomersListBySubscriptionOptionalParams extends OperationOptions { +} + +// @public +export interface IspCustomersOperations { + createOrUpdate: (resourceGroupName: string, customerResourceName: string, resource: IspCustomerResource, options?: IspCustomersCreateOrUpdateOptionalParams) => PollerLike, IspCustomerResource>; + delete: (resourceGroupName: string, customerResourceName: string, options?: IspCustomersDeleteOptionalParams) => PollerLike, void>; + get: (resourceGroupName: string, customerResourceName: string, options?: IspCustomersGetOptionalParams) => Promise; + listByResourceGroup: (resourceGroupName: string, options?: IspCustomersListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; + listBySubscription: (options?: IspCustomersListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; + update: (resourceGroupName: string, customerResourceName: string, properties: ConnectedCachePatchResource, options?: IspCustomersUpdateOptionalParams) => Promise; +} + +// @public +export interface IspCustomersUpdateOptionalParams extends OperationOptions { +} + +// @public +export enum KnownActionType { + Internal = "Internal" +} + +// @public +export enum KnownAutoUpdateRingType { + Fast = "Fast", + Preview = "Preview", + Slow = "Slow" +} + +// @public +export enum KnownBgpReviewStateEnum { + Approved = "Approved", + AttentionRequired = "AttentionRequired", + InReview = "InReview", + NotConfigured = "NotConfigured" +} + +// @public +export enum KnownConfigurationState { + Configured = "Configured", + NotConfigured_Ip = "NotConfigured_Ip" +} + +// @public +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" +} + +// @public +export enum KnownCustomerTransitState { + CombinedTransit = "CombinedTransit", + NoTransit = "NoTransit", + TransitOnly = "TransitOnly" +} + +// @public +export enum KnownCycleType { + Fast = "Fast", + Preview = "Preview", + Slow = "Slow" +} + +// @public +export enum KnownOrigin { + System = "system", + User = "user", + UserSystem = "user,system" +} + +// @public +export enum KnownOsType { + Eflow = "Eflow", + Linux = "Linux", + Windows = "Windows" +} + +// @public +export enum KnownProvisioningState { + Accepted = "Accepted", + Canceled = "Canceled", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Unknown = "Unknown", + Upgrading = "Upgrading" +} + +// @public +export enum KnownProxyRequired { + None = "None", + Required = "Required" +} + +// @public +export enum KnownVersions { + v2023_05_01_preview = "2023-05-01-preview" +} + +// @public +export interface MccCacheNodeBgpCidrDetails extends TrackedResource { + properties?: BgpCidrsConfiguration; +} + +// @public +export interface MccCacheNodeInstallDetails extends TrackedResource { + properties?: CacheNodeInstallProperties; +} + +// @public +export interface Operation { + actionType?: ActionType; + readonly display?: OperationDisplay; + readonly isDataAction?: boolean; + readonly name?: string; + readonly origin?: Origin; +} + +// @public +export interface OperationDisplay { + readonly description?: string; + readonly operation?: string; + readonly provider?: string; + readonly resource?: string; +} + +// @public +export interface OperationsListOptionalParams extends OperationOptions { +} + +// @public +export interface OperationsOperations { + list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator; +} + +// @public +export type Origin = string; + +// @public +export type OsType = string; + +// @public +export interface PagedAsyncIterableIterator { + [Symbol.asyncIterator](): PagedAsyncIterableIterator; + byPage: (settings?: TPageSettings) => AsyncIterableIterator>; + next(): Promise>; +} + +// @public +export interface PageSettings { + continuationToken?: string; +} + +// @public +export type ProvisioningState = string; + +// @public +export type ProxyRequired = string; + +// @public +export interface ProxyUrlConfiguration { + proxyUrl?: string; +} + +// @public +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public +export function restorePoller(client: ConnectedCacheClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike, TResult>, options?: RestorePollerOptions): PollerLike, TResult>; + +// @public (undocumented) +export interface RestorePollerOptions extends OperationOptions { + abortSignal?: AbortSignalLike; + processResponseBody?: (result: TResponse) => Promise; + updateIntervalInMs?: number; +} + +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface TrackedResource extends Resource { + location: string; + tags?: Record; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/sdk/connectedcache/arm-connectedcache/sample.env b/sdk/connectedcache/arm-connectedcache/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsCreateorUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsCreateorUpdateSample.ts new file mode 100644 index 000000000000..0d69ddf1e6d7 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsCreateorUpdateSample.ts @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to creates a cacheNodes with the specified create parameters + * + * @summary creates a cacheNodes with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_CreateorUpdate_MaximumSet_Gen.json + */ +async function cacheNodesOperationsCreateorUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.cacheNodesOperations.createorUpdate( + "rgConnectedCache", + "lwrsyhvfpcfrwrim", + { + location: "westus", + properties: { + statusCode: "movtzupooyhdqk", + statusText: "bjnsrpzaofjntleoesjwammgbi", + statusDetails: "quuziibkwtgf", + error: {}, + }, + tags: { key8256: "oreqiywrjkmate" }, + }, + ); + console.log(result); +} + +async function main() { + cacheNodesOperationsCreateorUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsDeleteSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsDeleteSample.ts new file mode 100644 index 000000000000..d2ff82232347 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsDeleteSample.ts @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to deletes an existing cache Node + * + * @summary deletes an existing cache Node + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Delete_MaximumSet_Gen.json + */ +async function cacheNodesOperationsDelete() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.cacheNodesOperations.delete( + "rgConnectedCache", + "otvtvhmovthjwzjzbsqkbnmpcmmeianpqxmmaspvdczmrenquxigrtuarmlcmvsnaclhcbw", + ); +} + +async function main() { + cacheNodesOperationsDelete(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsGetSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsGetSample.ts new file mode 100644 index 000000000000..4a7fadc930da --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsGetSample.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to retrieves the properties of a cacheNodes + * + * @summary retrieves the properties of a cacheNodes + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Get_MaximumSet_Gen.json + */ +async function cacheNodesOperationsGet() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.cacheNodesOperations.get( + "rgConnectedCache", + "nqoxkgorhuzbhjwcegymzqbeydzjupemekt", + ); + console.log(result); +} + +async function main() { + cacheNodesOperationsGet(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsListByResourceGroupSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsListByResourceGroupSample.ts new file mode 100644 index 000000000000..4819ad5652cd --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsListByResourceGroupSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to retrieves the properties of all ConnectedCache + * + * @summary retrieves the properties of all ConnectedCache + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListByResourceGroup_MaximumSet_Gen.json + */ +async function cacheNodesPrivatePreviewLegacyGetOperationListByResourceGroupGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cacheNodesOperations.listByResourceGroup("rgConnectedCache")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + cacheNodesPrivatePreviewLegacyGetOperationListByResourceGroupGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsListBySubscriptionSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsListBySubscriptionSample.ts new file mode 100644 index 000000000000..b757e797b1b6 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsListBySubscriptionSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to retrieves the properties of all ConnectedCaches + * + * @summary retrieves the properties of all ConnectedCaches + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListBySubscription_MaximumSet_Gen.json + */ +async function cacheNodesPrivatePreviewLegacyResourceListBySubscriptionGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cacheNodesOperations.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + cacheNodesPrivatePreviewLegacyResourceListBySubscriptionGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsUpdateSample.ts new file mode 100644 index 000000000000..00693315ba63 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/cacheNodesOperationsUpdateSample.ts @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to updates an existing Cache Node + * + * @summary updates an existing Cache Node + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Update_MaximumSet_Gen.json + */ +async function cacheNodesPrivatePreviewLegacyUpdateOperationGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.cacheNodesOperations.update("rgConnectedCache", "wlrwpdbcv", { + tags: { key5032: "esiuyjbpcwkpqriqiqztxuocv" }, + }); + console.log(result); +} + +async function main() { + cacheNodesPrivatePreviewLegacyUpdateOperationGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsCreateOrUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..510742afa1d3 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsCreateOrUpdateSample.ts @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to creates a cacheNodes with the specified create parameters + * + * @summary creates a cacheNodes with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_CreateOrUpdate_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsCreateOrUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseCustomerOperations.createOrUpdate("rgConnectedCache", "l", { + properties: { + statusCode: "oldkroffqtkryqffpsi", + statusText: "bs", + statusDetails: "lhwvcz", + error: {}, + }, + tags: { key4215: "zjbszvlzf" }, + location: "zdzhhkjyogrqxwihkifnmeyhwpujbr", + }); + console.log(result); +} + +async function main() { + enterpriseCustomerOperationsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsDeleteSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsDeleteSample.ts new file mode 100644 index 000000000000..038a8a9d1008 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsDeleteSample.ts @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to deletes an existing customer Enterprise resource + * + * @summary deletes an existing customer Enterprise resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Delete_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsDelete() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.enterpriseCustomerOperations.delete( + "rgConnectedCache", + "jeubxmhiaihcusgnahblvvckbdcetacvqgwbohlrqucodtlwuyefpejskvamgrdnwgucziodcfpjhqy", + ); +} + +async function main() { + enterpriseCustomerOperationsDelete(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsGetSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsGetSample.ts new file mode 100644 index 000000000000..397d50b0cbed --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsGetSample.ts @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to retrieves the properties of a Enterprise customer + * + * @summary retrieves the properties of a Enterprise customer + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Get_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsGet() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseCustomerOperations.get("rgConnectedCache", "MCCTPTest2"); + console.log(result); +} + +async function main() { + enterpriseCustomerOperationsGet(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsListByResourceGroupSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsListByResourceGroupSample.ts new file mode 100644 index 000000000000..8752130d4200 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsListByResourceGroupSample.ts @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to retrieves the properties of all ConnectedCache enterpriseCustomers + * + * @summary retrieves the properties of all ConnectedCache enterpriseCustomers + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListByResourceGroup_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsListByResourceGroup() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseCustomerOperations.listByResourceGroup( + "rgConnectedCache", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseCustomerOperationsListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsListBySubscriptionSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsListBySubscriptionSample.ts new file mode 100644 index 000000000000..a0372d2f38b5 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsListBySubscriptionSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to retrieves the properties of all ConnectedCaches + * + * @summary retrieves the properties of all ConnectedCaches + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListBySubscription_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsListBySubscription() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseCustomerOperations.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseCustomerOperationsListBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsUpdateSample.ts new file mode 100644 index 000000000000..25168f64f830 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseCustomerOperationsUpdateSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to updates an existing enterpriseCustomers + * + * @summary updates an existing enterpriseCustomers + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Update_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseCustomerOperations.update( + "rgConnectedCache", + "MCCTPTest2", + { tags: { key1653: "nzjczrhclhkndesgy" } }, + ); + console.log(result); +} + +async function main() { + enterpriseCustomerOperationsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsCreateOrUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..48fbbf68aec9 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsCreateOrUpdateSample.ts @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api creates an ispCacheNode with the specified create parameters + * + * @summary this api creates an ispCacheNode with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + */ +async function createsAnEnterpriseMccCacheNodeResourceGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCacheNodesOperations.createOrUpdate( + "rgConnectedCache", + "nhdkvstdrrtsxxuz", + "fgduqdovidpemlnmhelomffuafdrbgaasqznvrdkbvspfzsnrhncdtqquhijhdpwyzwleukqldpceyxqhqlftqrr", + { + location: "westus", + properties: { + cacheNode: { + fullyQualifiedResourceId: "yeinlleavzbehelhsucb", + customerName: "zsklcocjfjhkcpmzyefzkwamdzc", + ipAddress: "gbfkdhloyphnpnhemwrcrxlk", + customerIndex: "vafvezmelfgmjsrccjukrhppljvipg", + cacheNodeId: "fmrjefyddfn", + cacheNodeName: "qppvqxliajjfoalzjbgmxggr", + customerAsn: 25, + isEnabled: true, + maxAllowableEgressInMbps: 27, + isEnterpriseManaged: true, + cidrCsv: ["nlqlvrthafvvljuupcbcw"], + shouldMigrate: true, + cidrSelectionType: 11, + }, + statusCode: "1", + statusText: "Success", + statusDetails: "lgljxmyyoakw", + additionalCacheNodeProperties: { + cacheNodePropertiesDetailsIssuesList: ["ennbzfpuszgalzpawmwicaofqcwcj"], + driveConfiguration: [ + { + physicalPath: "pcbkezoofhamkycot", + sizeInGb: 14, + cacheNumber: 11, + nginxMapping: "cirlpkpuxg", + }, + ], + bgpConfiguration: { asnToIpAddressMapping: "fjbggfvumrn" }, + proxyUrlConfiguration: { proxyUrl: "hplstyg" }, + proxyUrl: "ihkzxlzvpcywtzrogupqozkdud", + optionalProperty1: "ph", + optionalProperty2: "soqqgpgcbhb", + optionalProperty3: "fpnycrbagptsujiotnjfuhlm", + optionalProperty4: "gesqugrxvhxlxxyvatgrautxwlmxsf", + optionalProperty5: "zknjgzpaqtvdqjydd", + }, + error: {}, + }, + tags: { key259: "qbkixjuyjkoj" }, + }, + ); + console.log(result); +} + +async function main() { + createsAnEnterpriseMccCacheNodeResourceGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsDeleteSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsDeleteSample.ts new file mode 100644 index 000000000000..6194639f7395 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsDeleteSample.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api deletes an existing ispCacheNode resource + * + * @summary this api deletes an existing ispCacheNode resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Delete_MaximumSet_Gen.json + */ +async function enterpriseMccCacheNodesOperationsDeleteOperationGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.enterpriseMccCacheNodesOperations.delete( + "rgConnectedCache", + "hsincngmssuzeyispnufqwinpopadvhsbsemisguxgovwdjwviqexocelijvuyr", + "vwtrhdoxvkrunpliwcao", + ); +} + +async function main() { + enterpriseMccCacheNodesOperationsDeleteOperationGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts new file mode 100644 index 000000000000..9b86b69aed76 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets secrets of the ispCacheNode resource install details + * + * @summary this api gets secrets of the ispCacheNode resource install details + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + */ +async function getsRequiredPropertiesForEnterpriseMccCacheNodeResourceInstallKeyDetailsGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCacheNodesOperations.getCacheNodeInstallDetails( + "rgConnectedCache", + "fzwxcjmdpxxzayecabqqlh", + "ccexmqqttritxvtctivraso", + ); + console.log(result); +} + +async function main() { + getsRequiredPropertiesForEnterpriseMccCacheNodeResourceInstallKeyDetailsGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsGetSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsGetSample.ts new file mode 100644 index 000000000000..d509e82a96ce --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsGetSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets ispCacheNode resource information + * + * @summary this api gets ispCacheNode resource information + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Get_MaximumSet_Gen.json + */ +async function getsEnterpriseMccCacheNodeResourceInformationOfAnEnterpriseMccCustomerParentResourceGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCacheNodesOperations.get( + "rgConnectedCache", + "cygqjgtcetihsajgyqwwrbclssqsvhgltrboemcqqtpoxdbhykqxblaihmrumyhbsx", + "fqxfadsultwjfzdwlqkvneakfsbyhratytmssmiukpbnus", + ); + console.log(result); +} + +async function main() { + getsEnterpriseMccCacheNodeResourceInformationOfAnEnterpriseMccCustomerParentResourceGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.ts new file mode 100644 index 000000000000..8b1f20e38149 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.ts @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api retrieves information about all ispCacheNode resources under the given subscription and resource group + * + * @summary this api retrieves information about all ispCacheNode resources under the given subscription and resource group + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource_MaximumSet_Gen.json + */ +async function enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseMccCacheNodesOperations.listByEnterpriseMccCustomerResource( + "rgConnectedCache", + "syjjjzk", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsUpdateSample.ts new file mode 100644 index 000000000000..5b6f134134b0 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCacheNodesOperationsUpdateSample.ts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api updates an existing ispCacheNode resource + * + * @summary this api updates an existing ispCacheNode resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Update_MaximumSet_Gen.json + */ +async function enterpriseMccCacheNodesOperationsUpdateGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCacheNodesOperations.update( + "rgConnectedCache", + "qanjqtvrxzjkljdysdjvdiqcxkttskpdzykzuefhbhz", + "kllmlvazrcxmfjfozulzqnsgvspgwmhogcafvauchunlgfr", + { tags: { key1653: "nzjczrhclhkndesgy" } }, + ); + console.log(result); +} + +async function main() { + enterpriseMccCacheNodesOperationsUpdateGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersCreateOrUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersCreateOrUpdateSample.ts new file mode 100644 index 000000000000..1ff4fdeb44b4 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersCreateOrUpdateSample.ts @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api creates an enterprise mcc customer with the specified create parameters + * + * @summary this api creates an enterprise mcc customer with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_CreateOrUpdate_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersCreateOrUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCustomers.createOrUpdate( + "rgConnectedCache", + "MccRPTest1", + { + properties: { + customer: { + fullyQualifiedResourceId: "uqsbtgae", + customerName: "mkpzynfqihnjfdbaqbqwyhd", + contactEmail: "xquos", + contactPhone: "vue", + contactName: "wxyqjoyoscmvimgwhpitxky", + isEntitled: true, + releaseVersion: 20, + clientTenantId: "fproidkpgvpdnac", + isEnterpriseManaged: true, + shouldMigrate: true, + resendSignupCode: true, + verifySignupCode: true, + verifySignupPhrase: "tprjvttkgmrqlsyicnidhm", + }, + additionalCustomerProperties: { + customerEmail: "zdjgibsidydyzm", + customerTransitAsn: "habgklnxqzmozqpazoyejwiphezpi", + customerAsn: "hgrelgnrtdkleisnepfolu", + customerEntitlementSkuId: "b", + customerEntitlementSkuGuid: "rvzmdpxyflgqetvpwupnfaxsweiiz", + customerEntitlementSkuName: "waaqfijr", + customerEntitlementExpiration: new Date("2024-01-30T00:54:04.773Z"), + optionalProperty1: "qhmwxza", + optionalProperty2: "l", + optionalProperty3: "mblwwvbie", + optionalProperty4: "vzuek", + optionalProperty5: "fzjodscdfcdr", + }, + error: {}, + }, + tags: { key3379: "dpyqeaqhcnutzezom" }, + location: "westus", + }, + ); + console.log(result); +} + +async function main() { + enterpriseMccCustomersCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersDeleteSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersDeleteSample.ts new file mode 100644 index 000000000000..727b6f7f3407 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersDeleteSample.ts @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api deletes an existing enterprise mcc customer resource + * + * @summary this api deletes an existing enterprise mcc customer resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Delete_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersDelete() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.enterpriseMccCustomers.delete("rgConnectedCache", "zktb"); +} + +async function main() { + enterpriseMccCustomersDelete(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersGetSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersGetSample.ts new file mode 100644 index 000000000000..007b07ef0719 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersGetSample.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to gets the enterprise mcc customer resource information using this get call + * + * @summary gets the enterprise mcc customer resource information using this get call + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Get_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersGet() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCustomers.get( + "rgConnectedCache", + "pvilvqkofbjbykupeewgvzlmjao", + ); + console.log(result); +} + +async function main() { + enterpriseMccCustomersGet(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersListByResourceGroupSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersListByResourceGroupSample.ts new file mode 100644 index 000000000000..4a6aad773930 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersListByResourceGroupSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets the information about all enterprise mcc customer resources under the given subscription and resource group + * + * @summary this api gets the information about all enterprise mcc customer resources under the given subscription and resource group + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListByResourceGroup_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersListByResourceGroup() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseMccCustomers.listByResourceGroup("rgConnectedCache")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseMccCustomersListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersListBySubscriptionSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersListBySubscriptionSample.ts new file mode 100644 index 000000000000..4ea2b46dd19d --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersListBySubscriptionSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets information about all enterpriseMccCustomer resources under the given subscription + * + * @summary this api gets information about all enterpriseMccCustomer resources under the given subscription + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListBySubscription_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersListBySubscription() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseMccCustomers.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseMccCustomersListBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersUpdateSample.ts new file mode 100644 index 000000000000..182893050b08 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/enterpriseMccCustomersUpdateSample.ts @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api updates an existing enterprise mcc customer resource + * + * @summary this api updates an existing enterprise mcc customer resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Update_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCustomers.update("rgConnectedCache", "MccRPTest1", { + tags: { key1878: "warz" }, + }); + console.log(result); +} + +async function main() { + enterpriseMccCustomersUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsCreateOrUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..284bd0f4f6a0 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsCreateOrUpdateSample.ts @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api creates an ispCacheNode with the specified create parameters + * + * @summary this api creates an ispCacheNode with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + */ +async function ispCacheNodesOperationsCreateOrUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.createOrUpdate( + "rgConnectedCache", + "zpqzbmanlljgmkrthtydrtneavhlnlqkdmviq", + "cabakm", + { + location: "westus", + properties: { + cacheNode: { + fullyQualifiedResourceId: "hskxkpbiqbrbjiwdzrxndru", + customerName: "xwyqk", + ipAddress: "voctagljcwqgcpnionqdcbjk", + customerIndex: "qtoiglqaswivmkjhzogburcxtszmek", + cacheNodeId: "xjzffjftwcgsehanoxsl", + cacheNodeName: "mfjxb", + customerAsn: 4, + isEnabled: true, + maxAllowableEgressInMbps: 29, + isEnterpriseManaged: true, + cidrCsv: ["nlqlvrthafvvljuupcbcw"], + shouldMigrate: true, + cidrSelectionType: 4, + }, + additionalCacheNodeProperties: { + driveConfiguration: [ + { + physicalPath: "/mcc", + sizeInGb: 500, + cacheNumber: 1, + nginxMapping: "lijygenjq", + }, + ], + bgpConfiguration: { asnToIpAddressMapping: "pafcimhoog" }, + cacheNodePropertiesDetailsIssuesList: ["ex"], + proxyUrlConfiguration: { proxyUrl: "hplstyg" }, + proxyUrl: "qhux", + optionalProperty1: "hvpmt", + optionalProperty2: "talanelmsgxvksrzoeeontqkjzbpv", + optionalProperty3: "bxkoxq", + optionalProperty4: "pqlkcekupusoc", + optionalProperty5: "nyvvmrjigqdufzjdvazdca", + }, + statusCode: "1", + statusText: "Success", + statusDetails: "djruqvptzxak", + error: {}, + }, + tags: { key4171: "qtjlszkawsdujzpgohsbw" }, + }, + ); + console.log(result); +} + +async function main() { + ispCacheNodesOperationsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsDeleteSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsDeleteSample.ts new file mode 100644 index 000000000000..9d5f41ab077d --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsDeleteSample.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api deletes an existing ispCacheNode resource + * + * @summary this api deletes an existing ispCacheNode resource + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Delete_MaximumSet_Gen.json + */ +async function ispCacheNodesDeleteOperationGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.ispCacheNodesOperations.delete( + "rgConnectedCache", + "lvpcosvbfxtpzscakewx", + "wsiruvexelltpbouqxvsogqpxdizcwqwfowybncvjunlakjwcpgmqbdbgzjrsmxlkczxnsxfonhnqqa", + ); +} + +async function main() { + ispCacheNodesDeleteOperationGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsGetBgpCidrsSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsGetBgpCidrsSample.ts new file mode 100644 index 000000000000..abcb0e45e09b --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsGetBgpCidrsSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets ispCacheNode resource information + * + * @summary this api gets ispCacheNode resource information + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetBgpCidrs_MaximumSet_Gen.json + */ +async function ispCacheNodesResourceBgpCidrsDetailsGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.getBgpCidrs( + "rgConnectedCache", + "MccRPTest1", + "MCCCachenode1", + ); + console.log(result); +} + +async function main() { + ispCacheNodesResourceBgpCidrsDetailsGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts new file mode 100644 index 000000000000..5c4758c14eac --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets secrets of the ispCacheNode resource install details + * + * @summary this api gets secrets of the ispCacheNode resource install details + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + */ +async function ispCacheNodeResourceGetInstallDetailsGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.getCacheNodeInstallDetails( + "rgConnectedCache", + "MccRPTest1", + "MCCCachenode1", + ); + console.log(result); +} + +async function main() { + ispCacheNodeResourceGetInstallDetailsGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsGetSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsGetSample.ts new file mode 100644 index 000000000000..648edef4c396 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsGetSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets ispCacheNode resource information + * + * @summary this api gets ispCacheNode resource information + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Get_MaximumSet_Gen.json + */ +async function ispCacheNodesGetResourceGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.get( + "rgConnectedCache", + "sgtqjsitdrskmgyrrkntszwrrjjkretscpjgaezraucvcwececlelcsorfunrnvxyxcsrg", + "lbsziwmudcjnwnwy", + ); + console.log(result); +} + +async function main() { + ispCacheNodesGetResourceGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsListByIspCustomerResourceSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsListByIspCustomerResourceSample.ts new file mode 100644 index 000000000000..50ad1580e0bc --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsListByIspCustomerResourceSample.ts @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api retrieves information about all ispCacheNode resources under the given subscription and resource group + * + * @summary this api retrieves information about all ispCacheNode resources under the given subscription and resource group + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_ListByIspCustomerResource_MaximumSet_Gen.json + */ +async function ispCacheNodesOperationsListByIspCustomerResource() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.ispCacheNodesOperations.listByIspCustomerResource( + "rgConnectedCache", + "MccRPTest1", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + ispCacheNodesOperationsListByIspCustomerResource(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsUpdateSample.ts new file mode 100644 index 000000000000..523386d6fcd3 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCacheNodesOperationsUpdateSample.ts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api updates an existing ispCacheNode resource + * + * @summary this api updates an existing ispCacheNode resource + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Update_MaximumSet_Gen.json + */ +async function ispCacheNodesOperationsUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.update( + "rgConnectedCache", + "MccRPTest1", + "MCCCachenode1", + { tags: { key1653: "nzjczrhclhkndesgy" } }, + ); + console.log(result); +} + +async function main() { + ispCacheNodesOperationsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersCreateOrUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersCreateOrUpdateSample.ts new file mode 100644 index 000000000000..1432c3d8db9e --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersCreateOrUpdateSample.ts @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api creates an ispCustomer with the specified create parameters + * + * @summary this api creates an ispCustomer with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json + */ +async function ispCustomerCreateOrUpdateGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCustomers.createOrUpdate("rgConnectedCache", "MccRPTest2", { + location: "westus", + properties: { + customer: { + fullyQualifiedResourceId: "uqsbtgae", + customerName: "mkpzynfqihnjfdbaqbqwyhd", + contactEmail: "xquos", + contactPhone: "vue", + contactName: "wxyqjoyoscmvimgwhpitxky", + isEntitled: true, + releaseVersion: 20, + clientTenantId: "fproidkpgvpdnac", + isEnterpriseManaged: true, + shouldMigrate: true, + resendSignupCode: true, + verifySignupCode: true, + verifySignupPhrase: "tprjvttkgmrqlsyicnidhm", + }, + additionalCustomerProperties: { + customerEmail: "zdjgibsidydyzm", + customerTransitAsn: "habgklnxqzmozqpazoyejwiphezpi", + customerAsn: "hgrelgnrtdkleisnepfolu", + customerEntitlementSkuId: "b", + customerEntitlementSkuGuid: "rvzmdpxyflgqetvpwupnfaxsweiiz", + customerEntitlementSkuName: "waaqfijr", + customerEntitlementExpiration: new Date("2024-01-30T00:54:04.773Z"), + optionalProperty1: "qhmwxza", + optionalProperty2: "l", + optionalProperty3: "mblwwvbie", + optionalProperty4: "vzuek", + optionalProperty5: "fzjodscdfcdr", + }, + error: {}, + }, + tags: { key1878: "warz" }, + }); + console.log(result); +} + +async function main() { + ispCustomerCreateOrUpdateGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersDeleteSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersDeleteSample.ts new file mode 100644 index 000000000000..a9d3fe436896 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersDeleteSample.ts @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api deletes an existing ispCustomer resource + * + * @summary this api deletes an existing ispCustomer resource + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Delete_MaximumSet_Gen.json + */ +async function ispCustomersDeleteGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.ispCustomers.delete( + "rgConnectedCache", + "hdontfoythjsaeyjhrakckgimgchxwzttbcnvntpvdsgeumxpgnjurptd", + ); +} + +async function main() { + ispCustomersDeleteGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersGetSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersGetSample.ts new file mode 100644 index 000000000000..11758a937819 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersGetSample.ts @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to gets the ispCustomer resource information using this get call + * + * @summary gets the ispCustomer resource information using this get call + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Get_MaximumSet_Gen.json + */ +async function ispCustomersGetGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCustomers.get("rgConnectedCache", "cmcjfueweicolcjkwmsuvcj"); + console.log(result); +} + +async function main() { + ispCustomersGetGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersListByResourceGroupSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersListByResourceGroupSample.ts new file mode 100644 index 000000000000..791edfcdc966 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersListByResourceGroupSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets the information about all ispCustomer resources under the given subscription and resource group + * + * @summary this api gets the information about all ispCustomer resources under the given subscription and resource group + * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListByResourceGroup_MaximumSet_Gen.json + */ +async function ispCustomersResourceListByResourceGroupGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.ispCustomers.listByResourceGroup("rgConnectedCache")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + ispCustomersResourceListByResourceGroupGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersListBySubscriptionSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersListBySubscriptionSample.ts new file mode 100644 index 000000000000..70e33e5e5917 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersListBySubscriptionSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets information about all ispCustomer resources under the given subscription + * + * @summary this api gets information about all ispCustomer resources under the given subscription + * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListBySubscription_MaximumSet_Gen.json + */ +async function ispCustomerListBySubscriptionGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.ispCustomers.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + ispCustomerListBySubscriptionGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersUpdateSample.ts new file mode 100644 index 000000000000..8b24fd3143fd --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/ispCustomersUpdateSample.ts @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api updates an existing ispCustomer resource + * + * @summary this api updates an existing ispCustomer resource + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Update_MaximumSet_Gen.json + */ +async function ispCustomerUpdateDetailsGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCustomers.update("rgConnectedCache", "MccRPTest2", { + tags: { key1653: "nzjczrhclhkndesgy" }, + }); + console.log(result); +} + +async function main() { + ispCustomerUpdateDetailsGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples-dev/operationsListSample.ts b/sdk/connectedcache/arm-connectedcache/samples-dev/operationsListSample.ts new file mode 100644 index 000000000000..913ce5c48be9 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples-dev/operationsListSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list the operations for the provider + * + * @summary list the operations for the provider + * x-ms-original-file: 2023-05-01-preview/Operations_List_MaximumSet_Gen.json + */ +async function listTheOperationsForTheProviderGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "00000000-0000-0000-0000-00000000000"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + listTheOperationsForTheProviderGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/README.md b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/README.md new file mode 100644 index 000000000000..db5ae918ae04 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/README.md @@ -0,0 +1,124 @@ +# @azure/arm-connectedcache client library samples for JavaScript (Beta) + +These sample programs show how to use the JavaScript client libraries for @azure/arm-connectedcache in some common scenarios. + +| **File Name** | **Description** | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [cacheNodesOperationsCreateorUpdateSample.js][cachenodesoperationscreateorupdatesample] | creates a cacheNodes with the specified create parameters x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_CreateorUpdate_MaximumSet_Gen.json | +| [cacheNodesOperationsDeleteSample.js][cachenodesoperationsdeletesample] | deletes an existing cache Node x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Delete_MaximumSet_Gen.json | +| [cacheNodesOperationsGetSample.js][cachenodesoperationsgetsample] | retrieves the properties of a cacheNodes x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Get_MaximumSet_Gen.json | +| [cacheNodesOperationsListByResourceGroupSample.js][cachenodesoperationslistbyresourcegroupsample] | retrieves the properties of all ConnectedCache x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListByResourceGroup_MaximumSet_Gen.json | +| [cacheNodesOperationsListBySubscriptionSample.js][cachenodesoperationslistbysubscriptionsample] | retrieves the properties of all ConnectedCaches x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListBySubscription_MaximumSet_Gen.json | +| [cacheNodesOperationsUpdateSample.js][cachenodesoperationsupdatesample] | updates an existing Cache Node x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Update_MaximumSet_Gen.json | +| [enterpriseCustomerOperationsCreateOrUpdateSample.js][enterprisecustomeroperationscreateorupdatesample] | creates a cacheNodes with the specified create parameters x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_CreateOrUpdate_MaximumSet_Gen.json | +| [enterpriseCustomerOperationsDeleteSample.js][enterprisecustomeroperationsdeletesample] | deletes an existing customer Enterprise resource x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Delete_MaximumSet_Gen.json | +| [enterpriseCustomerOperationsGetSample.js][enterprisecustomeroperationsgetsample] | retrieves the properties of a Enterprise customer x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Get_MaximumSet_Gen.json | +| [enterpriseCustomerOperationsListByResourceGroupSample.js][enterprisecustomeroperationslistbyresourcegroupsample] | retrieves the properties of all ConnectedCache enterpriseCustomers x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListByResourceGroup_MaximumSet_Gen.json | +| [enterpriseCustomerOperationsListBySubscriptionSample.js][enterprisecustomeroperationslistbysubscriptionsample] | retrieves the properties of all ConnectedCaches x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListBySubscription_MaximumSet_Gen.json | +| [enterpriseCustomerOperationsUpdateSample.js][enterprisecustomeroperationsupdatesample] | updates an existing enterpriseCustomers x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Update_MaximumSet_Gen.json | +| [enterpriseMccCacheNodesOperationsCreateOrUpdateSample.js][enterprisemcccachenodesoperationscreateorupdatesample] | this api creates an ispCacheNode with the specified create parameters x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json | +| [enterpriseMccCacheNodesOperationsDeleteSample.js][enterprisemcccachenodesoperationsdeletesample] | this api deletes an existing ispCacheNode resource x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Delete_MaximumSet_Gen.json | +| [enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.js][enterprisemcccachenodesoperationsgetcachenodeinstalldetailssample] | this api gets secrets of the ispCacheNode resource install details x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json | +| [enterpriseMccCacheNodesOperationsGetSample.js][enterprisemcccachenodesoperationsgetsample] | this api gets ispCacheNode resource information x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Get_MaximumSet_Gen.json | +| [enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.js][enterprisemcccachenodesoperationslistbyenterprisemcccustomerresourcesample] | this api retrieves information about all ispCacheNode resources under the given subscription and resource group x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource_MaximumSet_Gen.json | +| [enterpriseMccCacheNodesOperationsUpdateSample.js][enterprisemcccachenodesoperationsupdatesample] | this api updates an existing ispCacheNode resource x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Update_MaximumSet_Gen.json | +| [enterpriseMccCustomersCreateOrUpdateSample.js][enterprisemcccustomerscreateorupdatesample] | this api creates an enterprise mcc customer with the specified create parameters x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_CreateOrUpdate_MaximumSet_Gen.json | +| [enterpriseMccCustomersDeleteSample.js][enterprisemcccustomersdeletesample] | this api deletes an existing enterprise mcc customer resource x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Delete_MaximumSet_Gen.json | +| [enterpriseMccCustomersGetSample.js][enterprisemcccustomersgetsample] | gets the enterprise mcc customer resource information using this get call x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Get_MaximumSet_Gen.json | +| [enterpriseMccCustomersListByResourceGroupSample.js][enterprisemcccustomerslistbyresourcegroupsample] | this api gets the information about all enterprise mcc customer resources under the given subscription and resource group x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListByResourceGroup_MaximumSet_Gen.json | +| [enterpriseMccCustomersListBySubscriptionSample.js][enterprisemcccustomerslistbysubscriptionsample] | this api gets information about all enterpriseMccCustomer resources under the given subscription x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListBySubscription_MaximumSet_Gen.json | +| [enterpriseMccCustomersUpdateSample.js][enterprisemcccustomersupdatesample] | this api updates an existing enterprise mcc customer resource x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Update_MaximumSet_Gen.json | +| [ispCacheNodesOperationsCreateOrUpdateSample.js][ispcachenodesoperationscreateorupdatesample] | this api creates an ispCacheNode with the specified create parameters x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json | +| [ispCacheNodesOperationsDeleteSample.js][ispcachenodesoperationsdeletesample] | this api deletes an existing ispCacheNode resource x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Delete_MaximumSet_Gen.json | +| [ispCacheNodesOperationsGetBgpCidrsSample.js][ispcachenodesoperationsgetbgpcidrssample] | this api gets ispCacheNode resource information x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetBgpCidrs_MaximumSet_Gen.json | +| [ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.js][ispcachenodesoperationsgetcachenodeinstalldetailssample] | this api gets secrets of the ispCacheNode resource install details x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json | +| [ispCacheNodesOperationsGetSample.js][ispcachenodesoperationsgetsample] | this api gets ispCacheNode resource information x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Get_MaximumSet_Gen.json | +| [ispCacheNodesOperationsListByIspCustomerResourceSample.js][ispcachenodesoperationslistbyispcustomerresourcesample] | this api retrieves information about all ispCacheNode resources under the given subscription and resource group x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_ListByIspCustomerResource_MaximumSet_Gen.json | +| [ispCacheNodesOperationsUpdateSample.js][ispcachenodesoperationsupdatesample] | this api updates an existing ispCacheNode resource x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Update_MaximumSet_Gen.json | +| [ispCustomersCreateOrUpdateSample.js][ispcustomerscreateorupdatesample] | this api creates an ispCustomer with the specified create parameters x-ms-original-file: 2023-05-01-preview/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json | +| [ispCustomersDeleteSample.js][ispcustomersdeletesample] | this api deletes an existing ispCustomer resource x-ms-original-file: 2023-05-01-preview/IspCustomers_Delete_MaximumSet_Gen.json | +| [ispCustomersGetSample.js][ispcustomersgetsample] | gets the ispCustomer resource information using this get call x-ms-original-file: 2023-05-01-preview/IspCustomers_Get_MaximumSet_Gen.json | +| [ispCustomersListByResourceGroupSample.js][ispcustomerslistbyresourcegroupsample] | this api gets the information about all ispCustomer resources under the given subscription and resource group x-ms-original-file: 2023-05-01-preview/IspCustomers_ListByResourceGroup_MaximumSet_Gen.json | +| [ispCustomersListBySubscriptionSample.js][ispcustomerslistbysubscriptionsample] | this api gets information about all ispCustomer resources under the given subscription x-ms-original-file: 2023-05-01-preview/IspCustomers_ListBySubscription_MaximumSet_Gen.json | +| [ispCustomersUpdateSample.js][ispcustomersupdatesample] | this api updates an existing ispCustomer resource x-ms-original-file: 2023-05-01-preview/IspCustomers_Update_MaximumSet_Gen.json | +| [operationsListSample.js][operationslistsample] | list the operations for the provider x-ms-original-file: 2023-05-01-preview/Operations_List_MaximumSet_Gen.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node cacheNodesOperationsCreateorUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env node cacheNodesOperationsCreateorUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[cachenodesoperationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsCreateorUpdateSample.js +[cachenodesoperationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsDeleteSample.js +[cachenodesoperationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsGetSample.js +[cachenodesoperationslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsListByResourceGroupSample.js +[cachenodesoperationslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsListBySubscriptionSample.js +[cachenodesoperationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsUpdateSample.js +[enterprisecustomeroperationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsCreateOrUpdateSample.js +[enterprisecustomeroperationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsDeleteSample.js +[enterprisecustomeroperationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsGetSample.js +[enterprisecustomeroperationslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsListByResourceGroupSample.js +[enterprisecustomeroperationslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsListBySubscriptionSample.js +[enterprisecustomeroperationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsUpdateSample.js +[enterprisemcccachenodesoperationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsCreateOrUpdateSample.js +[enterprisemcccachenodesoperationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsDeleteSample.js +[enterprisemcccachenodesoperationsgetcachenodeinstalldetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.js +[enterprisemcccachenodesoperationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsGetSample.js +[enterprisemcccachenodesoperationslistbyenterprisemcccustomerresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.js +[enterprisemcccachenodesoperationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsUpdateSample.js +[enterprisemcccustomerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersCreateOrUpdateSample.js +[enterprisemcccustomersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersDeleteSample.js +[enterprisemcccustomersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersGetSample.js +[enterprisemcccustomerslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersListByResourceGroupSample.js +[enterprisemcccustomerslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersListBySubscriptionSample.js +[enterprisemcccustomersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersUpdateSample.js +[ispcachenodesoperationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsCreateOrUpdateSample.js +[ispcachenodesoperationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsDeleteSample.js +[ispcachenodesoperationsgetbgpcidrssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsGetBgpCidrsSample.js +[ispcachenodesoperationsgetcachenodeinstalldetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.js +[ispcachenodesoperationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsGetSample.js +[ispcachenodesoperationslistbyispcustomerresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsListByIspCustomerResourceSample.js +[ispcachenodesoperationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsUpdateSample.js +[ispcustomerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersCreateOrUpdateSample.js +[ispcustomersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersDeleteSample.js +[ispcustomersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersGetSample.js +[ispcustomerslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersListByResourceGroupSample.js +[ispcustomerslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersListBySubscriptionSample.js +[ispcustomersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersUpdateSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/operationsListSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-connectedcache?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/connectedcache/arm-connectedcache/README.md diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsCreateorUpdateSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsCreateorUpdateSample.js new file mode 100644 index 000000000000..ec80edd45fe5 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsCreateorUpdateSample.js @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to creates a cacheNodes with the specified create parameters + * + * @summary creates a cacheNodes with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_CreateorUpdate_MaximumSet_Gen.json + */ +async function cacheNodesOperationsCreateorUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.cacheNodesOperations.createorUpdate( + "rgConnectedCache", + "lwrsyhvfpcfrwrim", + { + location: "westus", + properties: { + statusCode: "movtzupooyhdqk", + statusText: "bjnsrpzaofjntleoesjwammgbi", + statusDetails: "quuziibkwtgf", + error: {}, + }, + tags: { key8256: "oreqiywrjkmate" }, + }, + ); + console.log(result); +} + +async function main() { + cacheNodesOperationsCreateorUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsDeleteSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsDeleteSample.js new file mode 100644 index 000000000000..ebfe0cd305c6 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsDeleteSample.js @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to deletes an existing cache Node + * + * @summary deletes an existing cache Node + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Delete_MaximumSet_Gen.json + */ +async function cacheNodesOperationsDelete() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.cacheNodesOperations.delete( + "rgConnectedCache", + "otvtvhmovthjwzjzbsqkbnmpcmmeianpqxmmaspvdczmrenquxigrtuarmlcmvsnaclhcbw", + ); +} + +async function main() { + cacheNodesOperationsDelete(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsGetSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsGetSample.js new file mode 100644 index 000000000000..6dd50adbe10c --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsGetSample.js @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to retrieves the properties of a cacheNodes + * + * @summary retrieves the properties of a cacheNodes + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Get_MaximumSet_Gen.json + */ +async function cacheNodesOperationsGet() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.cacheNodesOperations.get( + "rgConnectedCache", + "nqoxkgorhuzbhjwcegymzqbeydzjupemekt", + ); + console.log(result); +} + +async function main() { + cacheNodesOperationsGet(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsListByResourceGroupSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsListByResourceGroupSample.js new file mode 100644 index 000000000000..6008f32c4155 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsListByResourceGroupSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to retrieves the properties of all ConnectedCache + * + * @summary retrieves the properties of all ConnectedCache + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListByResourceGroup_MaximumSet_Gen.json + */ +async function cacheNodesPrivatePreviewLegacyGetOperationListByResourceGroupGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cacheNodesOperations.listByResourceGroup("rgConnectedCache")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + cacheNodesPrivatePreviewLegacyGetOperationListByResourceGroupGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsListBySubscriptionSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsListBySubscriptionSample.js new file mode 100644 index 000000000000..5e6f43483bc8 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsListBySubscriptionSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to retrieves the properties of all ConnectedCaches + * + * @summary retrieves the properties of all ConnectedCaches + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListBySubscription_MaximumSet_Gen.json + */ +async function cacheNodesPrivatePreviewLegacyResourceListBySubscriptionGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cacheNodesOperations.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + cacheNodesPrivatePreviewLegacyResourceListBySubscriptionGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsUpdateSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsUpdateSample.js new file mode 100644 index 000000000000..01acab46fe76 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/cacheNodesOperationsUpdateSample.js @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to updates an existing Cache Node + * + * @summary updates an existing Cache Node + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Update_MaximumSet_Gen.json + */ +async function cacheNodesPrivatePreviewLegacyUpdateOperationGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.cacheNodesOperations.update("rgConnectedCache", "wlrwpdbcv", { + tags: { key5032: "esiuyjbpcwkpqriqiqztxuocv" }, + }); + console.log(result); +} + +async function main() { + cacheNodesPrivatePreviewLegacyUpdateOperationGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsCreateOrUpdateSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsCreateOrUpdateSample.js new file mode 100644 index 000000000000..ea86f5cedef9 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsCreateOrUpdateSample.js @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to creates a cacheNodes with the specified create parameters + * + * @summary creates a cacheNodes with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_CreateOrUpdate_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsCreateOrUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseCustomerOperations.createOrUpdate("rgConnectedCache", "l", { + properties: { + statusCode: "oldkroffqtkryqffpsi", + statusText: "bs", + statusDetails: "lhwvcz", + error: {}, + }, + tags: { key4215: "zjbszvlzf" }, + location: "zdzhhkjyogrqxwihkifnmeyhwpujbr", + }); + console.log(result); +} + +async function main() { + enterpriseCustomerOperationsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsDeleteSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsDeleteSample.js new file mode 100644 index 000000000000..6ce9d67d85ef --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsDeleteSample.js @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to deletes an existing customer Enterprise resource + * + * @summary deletes an existing customer Enterprise resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Delete_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsDelete() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.enterpriseCustomerOperations.delete( + "rgConnectedCache", + "jeubxmhiaihcusgnahblvvckbdcetacvqgwbohlrqucodtlwuyefpejskvamgrdnwgucziodcfpjhqy", + ); +} + +async function main() { + enterpriseCustomerOperationsDelete(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsGetSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsGetSample.js new file mode 100644 index 000000000000..9caac6cd74f1 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsGetSample.js @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to retrieves the properties of a Enterprise customer + * + * @summary retrieves the properties of a Enterprise customer + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Get_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsGet() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseCustomerOperations.get("rgConnectedCache", "MCCTPTest2"); + console.log(result); +} + +async function main() { + enterpriseCustomerOperationsGet(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsListByResourceGroupSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsListByResourceGroupSample.js new file mode 100644 index 000000000000..a4b80433ece1 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsListByResourceGroupSample.js @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to retrieves the properties of all ConnectedCache enterpriseCustomers + * + * @summary retrieves the properties of all ConnectedCache enterpriseCustomers + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListByResourceGroup_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsListByResourceGroup() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseCustomerOperations.listByResourceGroup( + "rgConnectedCache", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseCustomerOperationsListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsListBySubscriptionSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsListBySubscriptionSample.js new file mode 100644 index 000000000000..04f3b97d0da9 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsListBySubscriptionSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to retrieves the properties of all ConnectedCaches + * + * @summary retrieves the properties of all ConnectedCaches + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListBySubscription_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsListBySubscription() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseCustomerOperations.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseCustomerOperationsListBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsUpdateSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsUpdateSample.js new file mode 100644 index 000000000000..505dff1f630a --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseCustomerOperationsUpdateSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to updates an existing enterpriseCustomers + * + * @summary updates an existing enterpriseCustomers + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Update_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseCustomerOperations.update( + "rgConnectedCache", + "MCCTPTest2", + { tags: { key1653: "nzjczrhclhkndesgy" } }, + ); + console.log(result); +} + +async function main() { + enterpriseCustomerOperationsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsCreateOrUpdateSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsCreateOrUpdateSample.js new file mode 100644 index 000000000000..aa9e6a8ba2cc --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsCreateOrUpdateSample.js @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api creates an ispCacheNode with the specified create parameters + * + * @summary this api creates an ispCacheNode with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + */ +async function createsAnEnterpriseMccCacheNodeResourceGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCacheNodesOperations.createOrUpdate( + "rgConnectedCache", + "nhdkvstdrrtsxxuz", + "fgduqdovidpemlnmhelomffuafdrbgaasqznvrdkbvspfzsnrhncdtqquhijhdpwyzwleukqldpceyxqhqlftqrr", + { + location: "westus", + properties: { + cacheNode: { + fullyQualifiedResourceId: "yeinlleavzbehelhsucb", + customerName: "zsklcocjfjhkcpmzyefzkwamdzc", + ipAddress: "gbfkdhloyphnpnhemwrcrxlk", + customerIndex: "vafvezmelfgmjsrccjukrhppljvipg", + cacheNodeId: "fmrjefyddfn", + cacheNodeName: "qppvqxliajjfoalzjbgmxggr", + customerAsn: 25, + isEnabled: true, + maxAllowableEgressInMbps: 27, + isEnterpriseManaged: true, + cidrCsv: ["nlqlvrthafvvljuupcbcw"], + shouldMigrate: true, + cidrSelectionType: 11, + }, + statusCode: "1", + statusText: "Success", + statusDetails: "lgljxmyyoakw", + additionalCacheNodeProperties: { + cacheNodePropertiesDetailsIssuesList: ["ennbzfpuszgalzpawmwicaofqcwcj"], + driveConfiguration: [ + { + physicalPath: "pcbkezoofhamkycot", + sizeInGb: 14, + cacheNumber: 11, + nginxMapping: "cirlpkpuxg", + }, + ], + bgpConfiguration: { asnToIpAddressMapping: "fjbggfvumrn" }, + proxyUrlConfiguration: { proxyUrl: "hplstyg" }, + proxyUrl: "ihkzxlzvpcywtzrogupqozkdud", + optionalProperty1: "ph", + optionalProperty2: "soqqgpgcbhb", + optionalProperty3: "fpnycrbagptsujiotnjfuhlm", + optionalProperty4: "gesqugrxvhxlxxyvatgrautxwlmxsf", + optionalProperty5: "zknjgzpaqtvdqjydd", + }, + error: {}, + }, + tags: { key259: "qbkixjuyjkoj" }, + }, + ); + console.log(result); +} + +async function main() { + createsAnEnterpriseMccCacheNodeResourceGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsDeleteSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsDeleteSample.js new file mode 100644 index 000000000000..d6b7e322a035 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsDeleteSample.js @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api deletes an existing ispCacheNode resource + * + * @summary this api deletes an existing ispCacheNode resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Delete_MaximumSet_Gen.json + */ +async function enterpriseMccCacheNodesOperationsDeleteOperationGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.enterpriseMccCacheNodesOperations.delete( + "rgConnectedCache", + "hsincngmssuzeyispnufqwinpopadvhsbsemisguxgovwdjwviqexocelijvuyr", + "vwtrhdoxvkrunpliwcao", + ); +} + +async function main() { + enterpriseMccCacheNodesOperationsDeleteOperationGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.js new file mode 100644 index 000000000000..cd4eac61a5ac --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api gets secrets of the ispCacheNode resource install details + * + * @summary this api gets secrets of the ispCacheNode resource install details + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + */ +async function getsRequiredPropertiesForEnterpriseMccCacheNodeResourceInstallKeyDetailsGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCacheNodesOperations.getCacheNodeInstallDetails( + "rgConnectedCache", + "fzwxcjmdpxxzayecabqqlh", + "ccexmqqttritxvtctivraso", + ); + console.log(result); +} + +async function main() { + getsRequiredPropertiesForEnterpriseMccCacheNodeResourceInstallKeyDetailsGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsGetSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsGetSample.js new file mode 100644 index 000000000000..fd8605e3a452 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsGetSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api gets ispCacheNode resource information + * + * @summary this api gets ispCacheNode resource information + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Get_MaximumSet_Gen.json + */ +async function getsEnterpriseMccCacheNodeResourceInformationOfAnEnterpriseMccCustomerParentResourceGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCacheNodesOperations.get( + "rgConnectedCache", + "cygqjgtcetihsajgyqwwrbclssqsvhgltrboemcqqtpoxdbhykqxblaihmrumyhbsx", + "fqxfadsultwjfzdwlqkvneakfsbyhratytmssmiukpbnus", + ); + console.log(result); +} + +async function main() { + getsEnterpriseMccCacheNodeResourceInformationOfAnEnterpriseMccCustomerParentResourceGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.js new file mode 100644 index 000000000000..f422314a30b2 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.js @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api retrieves information about all ispCacheNode resources under the given subscription and resource group + * + * @summary this api retrieves information about all ispCacheNode resources under the given subscription and resource group + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource_MaximumSet_Gen.json + */ +async function enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseMccCacheNodesOperations.listByEnterpriseMccCustomerResource( + "rgConnectedCache", + "syjjjzk", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsUpdateSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsUpdateSample.js new file mode 100644 index 000000000000..3b94d7909a8e --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCacheNodesOperationsUpdateSample.js @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api updates an existing ispCacheNode resource + * + * @summary this api updates an existing ispCacheNode resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Update_MaximumSet_Gen.json + */ +async function enterpriseMccCacheNodesOperationsUpdateGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCacheNodesOperations.update( + "rgConnectedCache", + "qanjqtvrxzjkljdysdjvdiqcxkttskpdzykzuefhbhz", + "kllmlvazrcxmfjfozulzqnsgvspgwmhogcafvauchunlgfr", + { tags: { key1653: "nzjczrhclhkndesgy" } }, + ); + console.log(result); +} + +async function main() { + enterpriseMccCacheNodesOperationsUpdateGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersCreateOrUpdateSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersCreateOrUpdateSample.js new file mode 100644 index 000000000000..ebb81e88a6dc --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersCreateOrUpdateSample.js @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api creates an enterprise mcc customer with the specified create parameters + * + * @summary this api creates an enterprise mcc customer with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_CreateOrUpdate_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersCreateOrUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCustomers.createOrUpdate( + "rgConnectedCache", + "MccRPTest1", + { + properties: { + customer: { + fullyQualifiedResourceId: "uqsbtgae", + customerName: "mkpzynfqihnjfdbaqbqwyhd", + contactEmail: "xquos", + contactPhone: "vue", + contactName: "wxyqjoyoscmvimgwhpitxky", + isEntitled: true, + releaseVersion: 20, + clientTenantId: "fproidkpgvpdnac", + isEnterpriseManaged: true, + shouldMigrate: true, + resendSignupCode: true, + verifySignupCode: true, + verifySignupPhrase: "tprjvttkgmrqlsyicnidhm", + }, + additionalCustomerProperties: { + customerEmail: "zdjgibsidydyzm", + customerTransitAsn: "habgklnxqzmozqpazoyejwiphezpi", + customerAsn: "hgrelgnrtdkleisnepfolu", + customerEntitlementSkuId: "b", + customerEntitlementSkuGuid: "rvzmdpxyflgqetvpwupnfaxsweiiz", + customerEntitlementSkuName: "waaqfijr", + customerEntitlementExpiration: new Date("2024-01-30T00:54:04.773Z"), + optionalProperty1: "qhmwxza", + optionalProperty2: "l", + optionalProperty3: "mblwwvbie", + optionalProperty4: "vzuek", + optionalProperty5: "fzjodscdfcdr", + }, + error: {}, + }, + tags: { key3379: "dpyqeaqhcnutzezom" }, + location: "westus", + }, + ); + console.log(result); +} + +async function main() { + enterpriseMccCustomersCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersDeleteSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersDeleteSample.js new file mode 100644 index 000000000000..df1213de012f --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersDeleteSample.js @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api deletes an existing enterprise mcc customer resource + * + * @summary this api deletes an existing enterprise mcc customer resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Delete_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersDelete() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.enterpriseMccCustomers.delete("rgConnectedCache", "zktb"); +} + +async function main() { + enterpriseMccCustomersDelete(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersGetSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersGetSample.js new file mode 100644 index 000000000000..0d926e538ac6 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersGetSample.js @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to gets the enterprise mcc customer resource information using this get call + * + * @summary gets the enterprise mcc customer resource information using this get call + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Get_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersGet() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCustomers.get( + "rgConnectedCache", + "pvilvqkofbjbykupeewgvzlmjao", + ); + console.log(result); +} + +async function main() { + enterpriseMccCustomersGet(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersListByResourceGroupSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersListByResourceGroupSample.js new file mode 100644 index 000000000000..5d93bd1318ce --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersListByResourceGroupSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api gets the information about all enterprise mcc customer resources under the given subscription and resource group + * + * @summary this api gets the information about all enterprise mcc customer resources under the given subscription and resource group + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListByResourceGroup_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersListByResourceGroup() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseMccCustomers.listByResourceGroup("rgConnectedCache")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseMccCustomersListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersListBySubscriptionSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersListBySubscriptionSample.js new file mode 100644 index 000000000000..37e5ecb83894 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersListBySubscriptionSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api gets information about all enterpriseMccCustomer resources under the given subscription + * + * @summary this api gets information about all enterpriseMccCustomer resources under the given subscription + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListBySubscription_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersListBySubscription() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseMccCustomers.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseMccCustomersListBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersUpdateSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersUpdateSample.js new file mode 100644 index 000000000000..3d96175f63a6 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/enterpriseMccCustomersUpdateSample.js @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api updates an existing enterprise mcc customer resource + * + * @summary this api updates an existing enterprise mcc customer resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Update_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCustomers.update("rgConnectedCache", "MccRPTest1", { + tags: { key1878: "warz" }, + }); + console.log(result); +} + +async function main() { + enterpriseMccCustomersUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsCreateOrUpdateSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsCreateOrUpdateSample.js new file mode 100644 index 000000000000..fdb0bb41d881 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsCreateOrUpdateSample.js @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api creates an ispCacheNode with the specified create parameters + * + * @summary this api creates an ispCacheNode with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + */ +async function ispCacheNodesOperationsCreateOrUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.createOrUpdate( + "rgConnectedCache", + "zpqzbmanlljgmkrthtydrtneavhlnlqkdmviq", + "cabakm", + { + location: "westus", + properties: { + cacheNode: { + fullyQualifiedResourceId: "hskxkpbiqbrbjiwdzrxndru", + customerName: "xwyqk", + ipAddress: "voctagljcwqgcpnionqdcbjk", + customerIndex: "qtoiglqaswivmkjhzogburcxtszmek", + cacheNodeId: "xjzffjftwcgsehanoxsl", + cacheNodeName: "mfjxb", + customerAsn: 4, + isEnabled: true, + maxAllowableEgressInMbps: 29, + isEnterpriseManaged: true, + cidrCsv: ["nlqlvrthafvvljuupcbcw"], + shouldMigrate: true, + cidrSelectionType: 4, + }, + additionalCacheNodeProperties: { + driveConfiguration: [ + { + physicalPath: "/mcc", + sizeInGb: 500, + cacheNumber: 1, + nginxMapping: "lijygenjq", + }, + ], + bgpConfiguration: { asnToIpAddressMapping: "pafcimhoog" }, + cacheNodePropertiesDetailsIssuesList: ["ex"], + proxyUrlConfiguration: { proxyUrl: "hplstyg" }, + proxyUrl: "qhux", + optionalProperty1: "hvpmt", + optionalProperty2: "talanelmsgxvksrzoeeontqkjzbpv", + optionalProperty3: "bxkoxq", + optionalProperty4: "pqlkcekupusoc", + optionalProperty5: "nyvvmrjigqdufzjdvazdca", + }, + statusCode: "1", + statusText: "Success", + statusDetails: "djruqvptzxak", + error: {}, + }, + tags: { key4171: "qtjlszkawsdujzpgohsbw" }, + }, + ); + console.log(result); +} + +async function main() { + ispCacheNodesOperationsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsDeleteSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsDeleteSample.js new file mode 100644 index 000000000000..0148f657e603 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsDeleteSample.js @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api deletes an existing ispCacheNode resource + * + * @summary this api deletes an existing ispCacheNode resource + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Delete_MaximumSet_Gen.json + */ +async function ispCacheNodesDeleteOperationGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.ispCacheNodesOperations.delete( + "rgConnectedCache", + "lvpcosvbfxtpzscakewx", + "wsiruvexelltpbouqxvsogqpxdizcwqwfowybncvjunlakjwcpgmqbdbgzjrsmxlkczxnsxfonhnqqa", + ); +} + +async function main() { + ispCacheNodesDeleteOperationGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsGetBgpCidrsSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsGetBgpCidrsSample.js new file mode 100644 index 000000000000..3ca05c76305a --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsGetBgpCidrsSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api gets ispCacheNode resource information + * + * @summary this api gets ispCacheNode resource information + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetBgpCidrs_MaximumSet_Gen.json + */ +async function ispCacheNodesResourceBgpCidrsDetailsGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.getBgpCidrs( + "rgConnectedCache", + "MccRPTest1", + "MCCCachenode1", + ); + console.log(result); +} + +async function main() { + ispCacheNodesResourceBgpCidrsDetailsGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.js new file mode 100644 index 000000000000..d30b6dff7c75 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api gets secrets of the ispCacheNode resource install details + * + * @summary this api gets secrets of the ispCacheNode resource install details + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + */ +async function ispCacheNodeResourceGetInstallDetailsGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.getCacheNodeInstallDetails( + "rgConnectedCache", + "MccRPTest1", + "MCCCachenode1", + ); + console.log(result); +} + +async function main() { + ispCacheNodeResourceGetInstallDetailsGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsGetSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsGetSample.js new file mode 100644 index 000000000000..16026a7e0a8d --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsGetSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api gets ispCacheNode resource information + * + * @summary this api gets ispCacheNode resource information + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Get_MaximumSet_Gen.json + */ +async function ispCacheNodesGetResourceGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.get( + "rgConnectedCache", + "sgtqjsitdrskmgyrrkntszwrrjjkretscpjgaezraucvcwececlelcsorfunrnvxyxcsrg", + "lbsziwmudcjnwnwy", + ); + console.log(result); +} + +async function main() { + ispCacheNodesGetResourceGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsListByIspCustomerResourceSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsListByIspCustomerResourceSample.js new file mode 100644 index 000000000000..940d5cd78194 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsListByIspCustomerResourceSample.js @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api retrieves information about all ispCacheNode resources under the given subscription and resource group + * + * @summary this api retrieves information about all ispCacheNode resources under the given subscription and resource group + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_ListByIspCustomerResource_MaximumSet_Gen.json + */ +async function ispCacheNodesOperationsListByIspCustomerResource() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.ispCacheNodesOperations.listByIspCustomerResource( + "rgConnectedCache", + "MccRPTest1", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + ispCacheNodesOperationsListByIspCustomerResource(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsUpdateSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsUpdateSample.js new file mode 100644 index 000000000000..6820e59557eb --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCacheNodesOperationsUpdateSample.js @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api updates an existing ispCacheNode resource + * + * @summary this api updates an existing ispCacheNode resource + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Update_MaximumSet_Gen.json + */ +async function ispCacheNodesOperationsUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.update( + "rgConnectedCache", + "MccRPTest1", + "MCCCachenode1", + { tags: { key1653: "nzjczrhclhkndesgy" } }, + ); + console.log(result); +} + +async function main() { + ispCacheNodesOperationsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersCreateOrUpdateSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersCreateOrUpdateSample.js new file mode 100644 index 000000000000..df37e4cf23af --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersCreateOrUpdateSample.js @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api creates an ispCustomer with the specified create parameters + * + * @summary this api creates an ispCustomer with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json + */ +async function ispCustomerCreateOrUpdateGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCustomers.createOrUpdate("rgConnectedCache", "MccRPTest2", { + location: "westus", + properties: { + customer: { + fullyQualifiedResourceId: "uqsbtgae", + customerName: "mkpzynfqihnjfdbaqbqwyhd", + contactEmail: "xquos", + contactPhone: "vue", + contactName: "wxyqjoyoscmvimgwhpitxky", + isEntitled: true, + releaseVersion: 20, + clientTenantId: "fproidkpgvpdnac", + isEnterpriseManaged: true, + shouldMigrate: true, + resendSignupCode: true, + verifySignupCode: true, + verifySignupPhrase: "tprjvttkgmrqlsyicnidhm", + }, + additionalCustomerProperties: { + customerEmail: "zdjgibsidydyzm", + customerTransitAsn: "habgklnxqzmozqpazoyejwiphezpi", + customerAsn: "hgrelgnrtdkleisnepfolu", + customerEntitlementSkuId: "b", + customerEntitlementSkuGuid: "rvzmdpxyflgqetvpwupnfaxsweiiz", + customerEntitlementSkuName: "waaqfijr", + customerEntitlementExpiration: new Date("2024-01-30T00:54:04.773Z"), + optionalProperty1: "qhmwxza", + optionalProperty2: "l", + optionalProperty3: "mblwwvbie", + optionalProperty4: "vzuek", + optionalProperty5: "fzjodscdfcdr", + }, + error: {}, + }, + tags: { key1878: "warz" }, + }); + console.log(result); +} + +async function main() { + ispCustomerCreateOrUpdateGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersDeleteSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersDeleteSample.js new file mode 100644 index 000000000000..53576d375288 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersDeleteSample.js @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api deletes an existing ispCustomer resource + * + * @summary this api deletes an existing ispCustomer resource + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Delete_MaximumSet_Gen.json + */ +async function ispCustomersDeleteGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.ispCustomers.delete( + "rgConnectedCache", + "hdontfoythjsaeyjhrakckgimgchxwzttbcnvntpvdsgeumxpgnjurptd", + ); +} + +async function main() { + ispCustomersDeleteGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersGetSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersGetSample.js new file mode 100644 index 000000000000..932606d69d86 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersGetSample.js @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to gets the ispCustomer resource information using this get call + * + * @summary gets the ispCustomer resource information using this get call + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Get_MaximumSet_Gen.json + */ +async function ispCustomersGetGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCustomers.get("rgConnectedCache", "cmcjfueweicolcjkwmsuvcj"); + console.log(result); +} + +async function main() { + ispCustomersGetGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersListByResourceGroupSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersListByResourceGroupSample.js new file mode 100644 index 000000000000..6be72f481df8 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersListByResourceGroupSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api gets the information about all ispCustomer resources under the given subscription and resource group + * + * @summary this api gets the information about all ispCustomer resources under the given subscription and resource group + * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListByResourceGroup_MaximumSet_Gen.json + */ +async function ispCustomersResourceListByResourceGroupGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.ispCustomers.listByResourceGroup("rgConnectedCache")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + ispCustomersResourceListByResourceGroupGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersListBySubscriptionSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersListBySubscriptionSample.js new file mode 100644 index 000000000000..82a4e137e758 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersListBySubscriptionSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api gets information about all ispCustomer resources under the given subscription + * + * @summary this api gets information about all ispCustomer resources under the given subscription + * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListBySubscription_MaximumSet_Gen.json + */ +async function ispCustomerListBySubscriptionGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.ispCustomers.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + ispCustomerListBySubscriptionGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersUpdateSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersUpdateSample.js new file mode 100644 index 000000000000..508f5dd64b6b --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/ispCustomersUpdateSample.js @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to this api updates an existing ispCustomer resource + * + * @summary this api updates an existing ispCustomer resource + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Update_MaximumSet_Gen.json + */ +async function ispCustomerUpdateDetailsGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCustomers.update("rgConnectedCache", "MccRPTest2", { + tags: { key1653: "nzjczrhclhkndesgy" }, + }); + console.log(result); +} + +async function main() { + ispCustomerUpdateDetailsGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/operationsListSample.js b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/operationsListSample.js new file mode 100644 index 000000000000..50ef1b417965 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/operationsListSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { ConnectedCacheClient } = require("@azure/arm-connectedcache"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list the operations for the provider + * + * @summary list the operations for the provider + * x-ms-original-file: 2023-05-01-preview/Operations_List_MaximumSet_Gen.json + */ +async function listTheOperationsForTheProviderGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "00000000-0000-0000-0000-00000000000"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + listTheOperationsForTheProviderGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/package.json b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/package.json new file mode 100644 index 000000000000..df7403e2f7aa --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/package.json @@ -0,0 +1,33 @@ +{ + "name": "@azure-samples/arm-connectedcache-js-beta", + "private": true, + "version": "1.0.0", + "description": "@azure/arm-connectedcache client library samples for JavaScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/connectedcache/arm-connectedcache" + }, + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/connectedcache/arm-connectedcache", + "dependencies": { + "@azure/arm-connectedcache": "next", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + } +} diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/sample.env b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/javascript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/README.md b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/README.md new file mode 100644 index 000000000000..5ee7096f0f88 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/README.md @@ -0,0 +1,137 @@ +# @azure/arm-connectedcache client library samples for TypeScript (Beta) + +These sample programs show how to use the TypeScript client libraries for @azure/arm-connectedcache in some common scenarios. + +| **File Name** | **Description** | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [cacheNodesOperationsCreateorUpdateSample.ts][cachenodesoperationscreateorupdatesample] | creates a cacheNodes with the specified create parameters x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_CreateorUpdate_MaximumSet_Gen.json | +| [cacheNodesOperationsDeleteSample.ts][cachenodesoperationsdeletesample] | deletes an existing cache Node x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Delete_MaximumSet_Gen.json | +| [cacheNodesOperationsGetSample.ts][cachenodesoperationsgetsample] | retrieves the properties of a cacheNodes x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Get_MaximumSet_Gen.json | +| [cacheNodesOperationsListByResourceGroupSample.ts][cachenodesoperationslistbyresourcegroupsample] | retrieves the properties of all ConnectedCache x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListByResourceGroup_MaximumSet_Gen.json | +| [cacheNodesOperationsListBySubscriptionSample.ts][cachenodesoperationslistbysubscriptionsample] | retrieves the properties of all ConnectedCaches x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListBySubscription_MaximumSet_Gen.json | +| [cacheNodesOperationsUpdateSample.ts][cachenodesoperationsupdatesample] | updates an existing Cache Node x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Update_MaximumSet_Gen.json | +| [enterpriseCustomerOperationsCreateOrUpdateSample.ts][enterprisecustomeroperationscreateorupdatesample] | creates a cacheNodes with the specified create parameters x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_CreateOrUpdate_MaximumSet_Gen.json | +| [enterpriseCustomerOperationsDeleteSample.ts][enterprisecustomeroperationsdeletesample] | deletes an existing customer Enterprise resource x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Delete_MaximumSet_Gen.json | +| [enterpriseCustomerOperationsGetSample.ts][enterprisecustomeroperationsgetsample] | retrieves the properties of a Enterprise customer x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Get_MaximumSet_Gen.json | +| [enterpriseCustomerOperationsListByResourceGroupSample.ts][enterprisecustomeroperationslistbyresourcegroupsample] | retrieves the properties of all ConnectedCache enterpriseCustomers x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListByResourceGroup_MaximumSet_Gen.json | +| [enterpriseCustomerOperationsListBySubscriptionSample.ts][enterprisecustomeroperationslistbysubscriptionsample] | retrieves the properties of all ConnectedCaches x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListBySubscription_MaximumSet_Gen.json | +| [enterpriseCustomerOperationsUpdateSample.ts][enterprisecustomeroperationsupdatesample] | updates an existing enterpriseCustomers x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Update_MaximumSet_Gen.json | +| [enterpriseMccCacheNodesOperationsCreateOrUpdateSample.ts][enterprisemcccachenodesoperationscreateorupdatesample] | this api creates an ispCacheNode with the specified create parameters x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json | +| [enterpriseMccCacheNodesOperationsDeleteSample.ts][enterprisemcccachenodesoperationsdeletesample] | this api deletes an existing ispCacheNode resource x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Delete_MaximumSet_Gen.json | +| [enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts][enterprisemcccachenodesoperationsgetcachenodeinstalldetailssample] | this api gets secrets of the ispCacheNode resource install details x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json | +| [enterpriseMccCacheNodesOperationsGetSample.ts][enterprisemcccachenodesoperationsgetsample] | this api gets ispCacheNode resource information x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Get_MaximumSet_Gen.json | +| [enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.ts][enterprisemcccachenodesoperationslistbyenterprisemcccustomerresourcesample] | this api retrieves information about all ispCacheNode resources under the given subscription and resource group x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource_MaximumSet_Gen.json | +| [enterpriseMccCacheNodesOperationsUpdateSample.ts][enterprisemcccachenodesoperationsupdatesample] | this api updates an existing ispCacheNode resource x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Update_MaximumSet_Gen.json | +| [enterpriseMccCustomersCreateOrUpdateSample.ts][enterprisemcccustomerscreateorupdatesample] | this api creates an enterprise mcc customer with the specified create parameters x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_CreateOrUpdate_MaximumSet_Gen.json | +| [enterpriseMccCustomersDeleteSample.ts][enterprisemcccustomersdeletesample] | this api deletes an existing enterprise mcc customer resource x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Delete_MaximumSet_Gen.json | +| [enterpriseMccCustomersGetSample.ts][enterprisemcccustomersgetsample] | gets the enterprise mcc customer resource information using this get call x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Get_MaximumSet_Gen.json | +| [enterpriseMccCustomersListByResourceGroupSample.ts][enterprisemcccustomerslistbyresourcegroupsample] | this api gets the information about all enterprise mcc customer resources under the given subscription and resource group x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListByResourceGroup_MaximumSet_Gen.json | +| [enterpriseMccCustomersListBySubscriptionSample.ts][enterprisemcccustomerslistbysubscriptionsample] | this api gets information about all enterpriseMccCustomer resources under the given subscription x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListBySubscription_MaximumSet_Gen.json | +| [enterpriseMccCustomersUpdateSample.ts][enterprisemcccustomersupdatesample] | this api updates an existing enterprise mcc customer resource x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Update_MaximumSet_Gen.json | +| [ispCacheNodesOperationsCreateOrUpdateSample.ts][ispcachenodesoperationscreateorupdatesample] | this api creates an ispCacheNode with the specified create parameters x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json | +| [ispCacheNodesOperationsDeleteSample.ts][ispcachenodesoperationsdeletesample] | this api deletes an existing ispCacheNode resource x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Delete_MaximumSet_Gen.json | +| [ispCacheNodesOperationsGetBgpCidrsSample.ts][ispcachenodesoperationsgetbgpcidrssample] | this api gets ispCacheNode resource information x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetBgpCidrs_MaximumSet_Gen.json | +| [ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts][ispcachenodesoperationsgetcachenodeinstalldetailssample] | this api gets secrets of the ispCacheNode resource install details x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json | +| [ispCacheNodesOperationsGetSample.ts][ispcachenodesoperationsgetsample] | this api gets ispCacheNode resource information x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Get_MaximumSet_Gen.json | +| [ispCacheNodesOperationsListByIspCustomerResourceSample.ts][ispcachenodesoperationslistbyispcustomerresourcesample] | this api retrieves information about all ispCacheNode resources under the given subscription and resource group x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_ListByIspCustomerResource_MaximumSet_Gen.json | +| [ispCacheNodesOperationsUpdateSample.ts][ispcachenodesoperationsupdatesample] | this api updates an existing ispCacheNode resource x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Update_MaximumSet_Gen.json | +| [ispCustomersCreateOrUpdateSample.ts][ispcustomerscreateorupdatesample] | this api creates an ispCustomer with the specified create parameters x-ms-original-file: 2023-05-01-preview/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json | +| [ispCustomersDeleteSample.ts][ispcustomersdeletesample] | this api deletes an existing ispCustomer resource x-ms-original-file: 2023-05-01-preview/IspCustomers_Delete_MaximumSet_Gen.json | +| [ispCustomersGetSample.ts][ispcustomersgetsample] | gets the ispCustomer resource information using this get call x-ms-original-file: 2023-05-01-preview/IspCustomers_Get_MaximumSet_Gen.json | +| [ispCustomersListByResourceGroupSample.ts][ispcustomerslistbyresourcegroupsample] | this api gets the information about all ispCustomer resources under the given subscription and resource group x-ms-original-file: 2023-05-01-preview/IspCustomers_ListByResourceGroup_MaximumSet_Gen.json | +| [ispCustomersListBySubscriptionSample.ts][ispcustomerslistbysubscriptionsample] | this api gets information about all ispCustomer resources under the given subscription x-ms-original-file: 2023-05-01-preview/IspCustomers_ListBySubscription_MaximumSet_Gen.json | +| [ispCustomersUpdateSample.ts][ispcustomersupdatesample] | this api updates an existing ispCustomer resource x-ms-original-file: 2023-05-01-preview/IspCustomers_Update_MaximumSet_Gen.json | +| [operationsListSample.ts][operationslistsample] | list the operations for the provider x-ms-original-file: 2023-05-01-preview/Operations_List_MaximumSet_Gen.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/cacheNodesOperationsCreateorUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env node dist/cacheNodesOperationsCreateorUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[cachenodesoperationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsCreateorUpdateSample.ts +[cachenodesoperationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsDeleteSample.ts +[cachenodesoperationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsGetSample.ts +[cachenodesoperationslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsListByResourceGroupSample.ts +[cachenodesoperationslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsListBySubscriptionSample.ts +[cachenodesoperationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsUpdateSample.ts +[enterprisecustomeroperationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsCreateOrUpdateSample.ts +[enterprisecustomeroperationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsDeleteSample.ts +[enterprisecustomeroperationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsGetSample.ts +[enterprisecustomeroperationslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsListByResourceGroupSample.ts +[enterprisecustomeroperationslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsListBySubscriptionSample.ts +[enterprisecustomeroperationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsUpdateSample.ts +[enterprisemcccachenodesoperationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsCreateOrUpdateSample.ts +[enterprisemcccachenodesoperationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsDeleteSample.ts +[enterprisemcccachenodesoperationsgetcachenodeinstalldetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts +[enterprisemcccachenodesoperationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsGetSample.ts +[enterprisemcccachenodesoperationslistbyenterprisemcccustomerresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.ts +[enterprisemcccachenodesoperationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsUpdateSample.ts +[enterprisemcccustomerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersCreateOrUpdateSample.ts +[enterprisemcccustomersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersDeleteSample.ts +[enterprisemcccustomersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersGetSample.ts +[enterprisemcccustomerslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersListByResourceGroupSample.ts +[enterprisemcccustomerslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersListBySubscriptionSample.ts +[enterprisemcccustomersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersUpdateSample.ts +[ispcachenodesoperationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsCreateOrUpdateSample.ts +[ispcachenodesoperationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsDeleteSample.ts +[ispcachenodesoperationsgetbgpcidrssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsGetBgpCidrsSample.ts +[ispcachenodesoperationsgetcachenodeinstalldetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts +[ispcachenodesoperationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsGetSample.ts +[ispcachenodesoperationslistbyispcustomerresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsListByIspCustomerResourceSample.ts +[ispcachenodesoperationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsUpdateSample.ts +[ispcustomerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersCreateOrUpdateSample.ts +[ispcustomersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersDeleteSample.ts +[ispcustomersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersGetSample.ts +[ispcustomerslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersListByResourceGroupSample.ts +[ispcustomerslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersListBySubscriptionSample.ts +[ispcustomersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersUpdateSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/operationsListSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-connectedcache?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/connectedcache/arm-connectedcache/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/package.json b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/package.json new file mode 100644 index 000000000000..057fc03a44a2 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/package.json @@ -0,0 +1,42 @@ +{ + "name": "@azure-samples/arm-connectedcache-ts-beta", + "private": true, + "version": "1.0.0", + "description": "@azure/arm-connectedcache client library samples for TypeScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/connectedcache/arm-connectedcache" + }, + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/connectedcache/arm-connectedcache", + "dependencies": { + "@azure/arm-connectedcache": "next", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.6.2", + "rimraf": "latest" + } +} diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/sample.env b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsCreateorUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsCreateorUpdateSample.ts new file mode 100644 index 000000000000..0d69ddf1e6d7 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsCreateorUpdateSample.ts @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to creates a cacheNodes with the specified create parameters + * + * @summary creates a cacheNodes with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_CreateorUpdate_MaximumSet_Gen.json + */ +async function cacheNodesOperationsCreateorUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.cacheNodesOperations.createorUpdate( + "rgConnectedCache", + "lwrsyhvfpcfrwrim", + { + location: "westus", + properties: { + statusCode: "movtzupooyhdqk", + statusText: "bjnsrpzaofjntleoesjwammgbi", + statusDetails: "quuziibkwtgf", + error: {}, + }, + tags: { key8256: "oreqiywrjkmate" }, + }, + ); + console.log(result); +} + +async function main() { + cacheNodesOperationsCreateorUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsDeleteSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsDeleteSample.ts new file mode 100644 index 000000000000..d2ff82232347 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsDeleteSample.ts @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to deletes an existing cache Node + * + * @summary deletes an existing cache Node + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Delete_MaximumSet_Gen.json + */ +async function cacheNodesOperationsDelete() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.cacheNodesOperations.delete( + "rgConnectedCache", + "otvtvhmovthjwzjzbsqkbnmpcmmeianpqxmmaspvdczmrenquxigrtuarmlcmvsnaclhcbw", + ); +} + +async function main() { + cacheNodesOperationsDelete(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsGetSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsGetSample.ts new file mode 100644 index 000000000000..4a7fadc930da --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsGetSample.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to retrieves the properties of a cacheNodes + * + * @summary retrieves the properties of a cacheNodes + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Get_MaximumSet_Gen.json + */ +async function cacheNodesOperationsGet() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.cacheNodesOperations.get( + "rgConnectedCache", + "nqoxkgorhuzbhjwcegymzqbeydzjupemekt", + ); + console.log(result); +} + +async function main() { + cacheNodesOperationsGet(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsListByResourceGroupSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsListByResourceGroupSample.ts new file mode 100644 index 000000000000..294629a3fd91 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsListByResourceGroupSample.ts @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to retrieves the properties of all ConnectedCache + * + * @summary retrieves the properties of all ConnectedCache + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListByResourceGroup_MaximumSet_Gen.json + */ +async function cacheNodesPrivatePreviewLegacyGetOperationListByResourceGroupGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cacheNodesOperations.listByResourceGroup( + "rgConnectedCache", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + cacheNodesPrivatePreviewLegacyGetOperationListByResourceGroupGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsListBySubscriptionSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsListBySubscriptionSample.ts new file mode 100644 index 000000000000..b757e797b1b6 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsListBySubscriptionSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to retrieves the properties of all ConnectedCaches + * + * @summary retrieves the properties of all ConnectedCaches + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListBySubscription_MaximumSet_Gen.json + */ +async function cacheNodesPrivatePreviewLegacyResourceListBySubscriptionGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cacheNodesOperations.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + cacheNodesPrivatePreviewLegacyResourceListBySubscriptionGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsUpdateSample.ts new file mode 100644 index 000000000000..b6ccee08f0cb --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/cacheNodesOperationsUpdateSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to updates an existing Cache Node + * + * @summary updates an existing Cache Node + * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Update_MaximumSet_Gen.json + */ +async function cacheNodesPrivatePreviewLegacyUpdateOperationGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.cacheNodesOperations.update( + "rgConnectedCache", + "wlrwpdbcv", + { tags: { key5032: "esiuyjbpcwkpqriqiqztxuocv" } }, + ); + console.log(result); +} + +async function main() { + cacheNodesPrivatePreviewLegacyUpdateOperationGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsCreateOrUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..196c7afea1cb --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsCreateOrUpdateSample.ts @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to creates a cacheNodes with the specified create parameters + * + * @summary creates a cacheNodes with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_CreateOrUpdate_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsCreateOrUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseCustomerOperations.createOrUpdate( + "rgConnectedCache", + "l", + { + properties: { + statusCode: "oldkroffqtkryqffpsi", + statusText: "bs", + statusDetails: "lhwvcz", + error: {}, + }, + tags: { key4215: "zjbszvlzf" }, + location: "zdzhhkjyogrqxwihkifnmeyhwpujbr", + }, + ); + console.log(result); +} + +async function main() { + enterpriseCustomerOperationsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsDeleteSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsDeleteSample.ts new file mode 100644 index 000000000000..038a8a9d1008 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsDeleteSample.ts @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to deletes an existing customer Enterprise resource + * + * @summary deletes an existing customer Enterprise resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Delete_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsDelete() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.enterpriseCustomerOperations.delete( + "rgConnectedCache", + "jeubxmhiaihcusgnahblvvckbdcetacvqgwbohlrqucodtlwuyefpejskvamgrdnwgucziodcfpjhqy", + ); +} + +async function main() { + enterpriseCustomerOperationsDelete(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsGetSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsGetSample.ts new file mode 100644 index 000000000000..b32f021b13a9 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsGetSample.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to retrieves the properties of a Enterprise customer + * + * @summary retrieves the properties of a Enterprise customer + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Get_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsGet() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseCustomerOperations.get( + "rgConnectedCache", + "MCCTPTest2", + ); + console.log(result); +} + +async function main() { + enterpriseCustomerOperationsGet(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsListByResourceGroupSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsListByResourceGroupSample.ts new file mode 100644 index 000000000000..8752130d4200 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsListByResourceGroupSample.ts @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to retrieves the properties of all ConnectedCache enterpriseCustomers + * + * @summary retrieves the properties of all ConnectedCache enterpriseCustomers + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListByResourceGroup_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsListByResourceGroup() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseCustomerOperations.listByResourceGroup( + "rgConnectedCache", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseCustomerOperationsListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsListBySubscriptionSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsListBySubscriptionSample.ts new file mode 100644 index 000000000000..a0372d2f38b5 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsListBySubscriptionSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to retrieves the properties of all ConnectedCaches + * + * @summary retrieves the properties of all ConnectedCaches + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListBySubscription_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsListBySubscription() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseCustomerOperations.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseCustomerOperationsListBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsUpdateSample.ts new file mode 100644 index 000000000000..25168f64f830 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseCustomerOperationsUpdateSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to updates an existing enterpriseCustomers + * + * @summary updates an existing enterpriseCustomers + * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Update_MaximumSet_Gen.json + */ +async function enterpriseCustomerOperationsUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseCustomerOperations.update( + "rgConnectedCache", + "MCCTPTest2", + { tags: { key1653: "nzjczrhclhkndesgy" } }, + ); + console.log(result); +} + +async function main() { + enterpriseCustomerOperationsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsCreateOrUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..9de31869c9b3 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsCreateOrUpdateSample.ts @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api creates an ispCacheNode with the specified create parameters + * + * @summary this api creates an ispCacheNode with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + */ +async function createsAnEnterpriseMccCacheNodeResourceGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCacheNodesOperations.createOrUpdate( + "rgConnectedCache", + "nhdkvstdrrtsxxuz", + "fgduqdovidpemlnmhelomffuafdrbgaasqznvrdkbvspfzsnrhncdtqquhijhdpwyzwleukqldpceyxqhqlftqrr", + { + location: "westus", + properties: { + cacheNode: { + fullyQualifiedResourceId: "yeinlleavzbehelhsucb", + customerName: "zsklcocjfjhkcpmzyefzkwamdzc", + ipAddress: "gbfkdhloyphnpnhemwrcrxlk", + customerIndex: "vafvezmelfgmjsrccjukrhppljvipg", + cacheNodeId: "fmrjefyddfn", + cacheNodeName: "qppvqxliajjfoalzjbgmxggr", + customerAsn: 25, + isEnabled: true, + maxAllowableEgressInMbps: 27, + isEnterpriseManaged: true, + cidrCsv: ["nlqlvrthafvvljuupcbcw"], + shouldMigrate: true, + cidrSelectionType: 11, + }, + statusCode: "1", + statusText: "Success", + statusDetails: "lgljxmyyoakw", + additionalCacheNodeProperties: { + cacheNodePropertiesDetailsIssuesList: [ + "ennbzfpuszgalzpawmwicaofqcwcj", + ], + driveConfiguration: [ + { + physicalPath: "pcbkezoofhamkycot", + sizeInGb: 14, + cacheNumber: 11, + nginxMapping: "cirlpkpuxg", + }, + ], + bgpConfiguration: { asnToIpAddressMapping: "fjbggfvumrn" }, + proxyUrlConfiguration: { proxyUrl: "hplstyg" }, + proxyUrl: "ihkzxlzvpcywtzrogupqozkdud", + optionalProperty1: "ph", + optionalProperty2: "soqqgpgcbhb", + optionalProperty3: "fpnycrbagptsujiotnjfuhlm", + optionalProperty4: "gesqugrxvhxlxxyvatgrautxwlmxsf", + optionalProperty5: "zknjgzpaqtvdqjydd", + }, + error: {}, + }, + tags: { key259: "qbkixjuyjkoj" }, + }, + ); + console.log(result); +} + +async function main() { + createsAnEnterpriseMccCacheNodeResourceGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsDeleteSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsDeleteSample.ts new file mode 100644 index 000000000000..6194639f7395 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsDeleteSample.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api deletes an existing ispCacheNode resource + * + * @summary this api deletes an existing ispCacheNode resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Delete_MaximumSet_Gen.json + */ +async function enterpriseMccCacheNodesOperationsDeleteOperationGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.enterpriseMccCacheNodesOperations.delete( + "rgConnectedCache", + "hsincngmssuzeyispnufqwinpopadvhsbsemisguxgovwdjwviqexocelijvuyr", + "vwtrhdoxvkrunpliwcao", + ); +} + +async function main() { + enterpriseMccCacheNodesOperationsDeleteOperationGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts new file mode 100644 index 000000000000..508d2912b92e --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets secrets of the ispCacheNode resource install details + * + * @summary this api gets secrets of the ispCacheNode resource install details + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + */ +async function getsRequiredPropertiesForEnterpriseMccCacheNodeResourceInstallKeyDetailsGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = + await client.enterpriseMccCacheNodesOperations.getCacheNodeInstallDetails( + "rgConnectedCache", + "fzwxcjmdpxxzayecabqqlh", + "ccexmqqttritxvtctivraso", + ); + console.log(result); +} + +async function main() { + getsRequiredPropertiesForEnterpriseMccCacheNodeResourceInstallKeyDetailsGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsGetSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsGetSample.ts new file mode 100644 index 000000000000..d509e82a96ce --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsGetSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets ispCacheNode resource information + * + * @summary this api gets ispCacheNode resource information + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Get_MaximumSet_Gen.json + */ +async function getsEnterpriseMccCacheNodeResourceInformationOfAnEnterpriseMccCustomerParentResourceGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCacheNodesOperations.get( + "rgConnectedCache", + "cygqjgtcetihsajgyqwwrbclssqsvhgltrboemcqqtpoxdbhykqxblaihmrumyhbsx", + "fqxfadsultwjfzdwlqkvneakfsbyhratytmssmiukpbnus", + ); + console.log(result); +} + +async function main() { + getsEnterpriseMccCacheNodeResourceInformationOfAnEnterpriseMccCustomerParentResourceGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.ts new file mode 100644 index 000000000000..8b1f20e38149 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSample.ts @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api retrieves information about all ispCacheNode resources under the given subscription and resource group + * + * @summary this api retrieves information about all ispCacheNode resources under the given subscription and resource group + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource_MaximumSet_Gen.json + */ +async function enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseMccCacheNodesOperations.listByEnterpriseMccCustomerResource( + "rgConnectedCache", + "syjjjzk", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsUpdateSample.ts new file mode 100644 index 000000000000..5b6f134134b0 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCacheNodesOperationsUpdateSample.ts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api updates an existing ispCacheNode resource + * + * @summary this api updates an existing ispCacheNode resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Update_MaximumSet_Gen.json + */ +async function enterpriseMccCacheNodesOperationsUpdateGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCacheNodesOperations.update( + "rgConnectedCache", + "qanjqtvrxzjkljdysdjvdiqcxkttskpdzykzuefhbhz", + "kllmlvazrcxmfjfozulzqnsgvspgwmhogcafvauchunlgfr", + { tags: { key1653: "nzjczrhclhkndesgy" } }, + ); + console.log(result); +} + +async function main() { + enterpriseMccCacheNodesOperationsUpdateGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersCreateOrUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersCreateOrUpdateSample.ts new file mode 100644 index 000000000000..1ff4fdeb44b4 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersCreateOrUpdateSample.ts @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api creates an enterprise mcc customer with the specified create parameters + * + * @summary this api creates an enterprise mcc customer with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_CreateOrUpdate_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersCreateOrUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCustomers.createOrUpdate( + "rgConnectedCache", + "MccRPTest1", + { + properties: { + customer: { + fullyQualifiedResourceId: "uqsbtgae", + customerName: "mkpzynfqihnjfdbaqbqwyhd", + contactEmail: "xquos", + contactPhone: "vue", + contactName: "wxyqjoyoscmvimgwhpitxky", + isEntitled: true, + releaseVersion: 20, + clientTenantId: "fproidkpgvpdnac", + isEnterpriseManaged: true, + shouldMigrate: true, + resendSignupCode: true, + verifySignupCode: true, + verifySignupPhrase: "tprjvttkgmrqlsyicnidhm", + }, + additionalCustomerProperties: { + customerEmail: "zdjgibsidydyzm", + customerTransitAsn: "habgklnxqzmozqpazoyejwiphezpi", + customerAsn: "hgrelgnrtdkleisnepfolu", + customerEntitlementSkuId: "b", + customerEntitlementSkuGuid: "rvzmdpxyflgqetvpwupnfaxsweiiz", + customerEntitlementSkuName: "waaqfijr", + customerEntitlementExpiration: new Date("2024-01-30T00:54:04.773Z"), + optionalProperty1: "qhmwxza", + optionalProperty2: "l", + optionalProperty3: "mblwwvbie", + optionalProperty4: "vzuek", + optionalProperty5: "fzjodscdfcdr", + }, + error: {}, + }, + tags: { key3379: "dpyqeaqhcnutzezom" }, + location: "westus", + }, + ); + console.log(result); +} + +async function main() { + enterpriseMccCustomersCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersDeleteSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersDeleteSample.ts new file mode 100644 index 000000000000..727b6f7f3407 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersDeleteSample.ts @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api deletes an existing enterprise mcc customer resource + * + * @summary this api deletes an existing enterprise mcc customer resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Delete_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersDelete() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.enterpriseMccCustomers.delete("rgConnectedCache", "zktb"); +} + +async function main() { + enterpriseMccCustomersDelete(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersGetSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersGetSample.ts new file mode 100644 index 000000000000..007b07ef0719 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersGetSample.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to gets the enterprise mcc customer resource information using this get call + * + * @summary gets the enterprise mcc customer resource information using this get call + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Get_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersGet() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCustomers.get( + "rgConnectedCache", + "pvilvqkofbjbykupeewgvzlmjao", + ); + console.log(result); +} + +async function main() { + enterpriseMccCustomersGet(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersListByResourceGroupSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersListByResourceGroupSample.ts new file mode 100644 index 000000000000..b9aae22f0ae3 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersListByResourceGroupSample.ts @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets the information about all enterprise mcc customer resources under the given subscription and resource group + * + * @summary this api gets the information about all enterprise mcc customer resources under the given subscription and resource group + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListByResourceGroup_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersListByResourceGroup() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseMccCustomers.listByResourceGroup( + "rgConnectedCache", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseMccCustomersListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersListBySubscriptionSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersListBySubscriptionSample.ts new file mode 100644 index 000000000000..4ea2b46dd19d --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersListBySubscriptionSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets information about all enterpriseMccCustomer resources under the given subscription + * + * @summary this api gets information about all enterpriseMccCustomer resources under the given subscription + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListBySubscription_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersListBySubscription() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.enterpriseMccCustomers.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + enterpriseMccCustomersListBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersUpdateSample.ts new file mode 100644 index 000000000000..44d6975caadb --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/enterpriseMccCustomersUpdateSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api updates an existing enterprise mcc customer resource + * + * @summary this api updates an existing enterprise mcc customer resource + * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Update_MaximumSet_Gen.json + */ +async function enterpriseMccCustomersUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.enterpriseMccCustomers.update( + "rgConnectedCache", + "MccRPTest1", + { tags: { key1878: "warz" } }, + ); + console.log(result); +} + +async function main() { + enterpriseMccCustomersUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsCreateOrUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..284bd0f4f6a0 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsCreateOrUpdateSample.ts @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api creates an ispCacheNode with the specified create parameters + * + * @summary this api creates an ispCacheNode with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + */ +async function ispCacheNodesOperationsCreateOrUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.createOrUpdate( + "rgConnectedCache", + "zpqzbmanlljgmkrthtydrtneavhlnlqkdmviq", + "cabakm", + { + location: "westus", + properties: { + cacheNode: { + fullyQualifiedResourceId: "hskxkpbiqbrbjiwdzrxndru", + customerName: "xwyqk", + ipAddress: "voctagljcwqgcpnionqdcbjk", + customerIndex: "qtoiglqaswivmkjhzogburcxtszmek", + cacheNodeId: "xjzffjftwcgsehanoxsl", + cacheNodeName: "mfjxb", + customerAsn: 4, + isEnabled: true, + maxAllowableEgressInMbps: 29, + isEnterpriseManaged: true, + cidrCsv: ["nlqlvrthafvvljuupcbcw"], + shouldMigrate: true, + cidrSelectionType: 4, + }, + additionalCacheNodeProperties: { + driveConfiguration: [ + { + physicalPath: "/mcc", + sizeInGb: 500, + cacheNumber: 1, + nginxMapping: "lijygenjq", + }, + ], + bgpConfiguration: { asnToIpAddressMapping: "pafcimhoog" }, + cacheNodePropertiesDetailsIssuesList: ["ex"], + proxyUrlConfiguration: { proxyUrl: "hplstyg" }, + proxyUrl: "qhux", + optionalProperty1: "hvpmt", + optionalProperty2: "talanelmsgxvksrzoeeontqkjzbpv", + optionalProperty3: "bxkoxq", + optionalProperty4: "pqlkcekupusoc", + optionalProperty5: "nyvvmrjigqdufzjdvazdca", + }, + statusCode: "1", + statusText: "Success", + statusDetails: "djruqvptzxak", + error: {}, + }, + tags: { key4171: "qtjlszkawsdujzpgohsbw" }, + }, + ); + console.log(result); +} + +async function main() { + ispCacheNodesOperationsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsDeleteSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsDeleteSample.ts new file mode 100644 index 000000000000..9d5f41ab077d --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsDeleteSample.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api deletes an existing ispCacheNode resource + * + * @summary this api deletes an existing ispCacheNode resource + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Delete_MaximumSet_Gen.json + */ +async function ispCacheNodesDeleteOperationGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.ispCacheNodesOperations.delete( + "rgConnectedCache", + "lvpcosvbfxtpzscakewx", + "wsiruvexelltpbouqxvsogqpxdizcwqwfowybncvjunlakjwcpgmqbdbgzjrsmxlkczxnsxfonhnqqa", + ); +} + +async function main() { + ispCacheNodesDeleteOperationGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsGetBgpCidrsSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsGetBgpCidrsSample.ts new file mode 100644 index 000000000000..abcb0e45e09b --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsGetBgpCidrsSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets ispCacheNode resource information + * + * @summary this api gets ispCacheNode resource information + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetBgpCidrs_MaximumSet_Gen.json + */ +async function ispCacheNodesResourceBgpCidrsDetailsGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.getBgpCidrs( + "rgConnectedCache", + "MccRPTest1", + "MCCCachenode1", + ); + console.log(result); +} + +async function main() { + ispCacheNodesResourceBgpCidrsDetailsGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts new file mode 100644 index 000000000000..6558d4ff4c3e --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsGetCacheNodeInstallDetailsSample.ts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets secrets of the ispCacheNode resource install details + * + * @summary this api gets secrets of the ispCacheNode resource install details + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + */ +async function ispCacheNodeResourceGetInstallDetailsGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = + await client.ispCacheNodesOperations.getCacheNodeInstallDetails( + "rgConnectedCache", + "MccRPTest1", + "MCCCachenode1", + ); + console.log(result); +} + +async function main() { + ispCacheNodeResourceGetInstallDetailsGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsGetSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsGetSample.ts new file mode 100644 index 000000000000..648edef4c396 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsGetSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets ispCacheNode resource information + * + * @summary this api gets ispCacheNode resource information + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Get_MaximumSet_Gen.json + */ +async function ispCacheNodesGetResourceGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.get( + "rgConnectedCache", + "sgtqjsitdrskmgyrrkntszwrrjjkretscpjgaezraucvcwececlelcsorfunrnvxyxcsrg", + "lbsziwmudcjnwnwy", + ); + console.log(result); +} + +async function main() { + ispCacheNodesGetResourceGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsListByIspCustomerResourceSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsListByIspCustomerResourceSample.ts new file mode 100644 index 000000000000..50ad1580e0bc --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsListByIspCustomerResourceSample.ts @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api retrieves information about all ispCacheNode resources under the given subscription and resource group + * + * @summary this api retrieves information about all ispCacheNode resources under the given subscription and resource group + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_ListByIspCustomerResource_MaximumSet_Gen.json + */ +async function ispCacheNodesOperationsListByIspCustomerResource() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.ispCacheNodesOperations.listByIspCustomerResource( + "rgConnectedCache", + "MccRPTest1", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + ispCacheNodesOperationsListByIspCustomerResource(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsUpdateSample.ts new file mode 100644 index 000000000000..523386d6fcd3 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCacheNodesOperationsUpdateSample.ts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api updates an existing ispCacheNode resource + * + * @summary this api updates an existing ispCacheNode resource + * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Update_MaximumSet_Gen.json + */ +async function ispCacheNodesOperationsUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCacheNodesOperations.update( + "rgConnectedCache", + "MccRPTest1", + "MCCCachenode1", + { tags: { key1653: "nzjczrhclhkndesgy" } }, + ); + console.log(result); +} + +async function main() { + ispCacheNodesOperationsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersCreateOrUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersCreateOrUpdateSample.ts new file mode 100644 index 000000000000..02479a5229cf --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersCreateOrUpdateSample.ts @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api creates an ispCustomer with the specified create parameters + * + * @summary this api creates an ispCustomer with the specified create parameters + * x-ms-original-file: 2023-05-01-preview/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json + */ +async function ispCustomerCreateOrUpdateGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCustomers.createOrUpdate( + "rgConnectedCache", + "MccRPTest2", + { + location: "westus", + properties: { + customer: { + fullyQualifiedResourceId: "uqsbtgae", + customerName: "mkpzynfqihnjfdbaqbqwyhd", + contactEmail: "xquos", + contactPhone: "vue", + contactName: "wxyqjoyoscmvimgwhpitxky", + isEntitled: true, + releaseVersion: 20, + clientTenantId: "fproidkpgvpdnac", + isEnterpriseManaged: true, + shouldMigrate: true, + resendSignupCode: true, + verifySignupCode: true, + verifySignupPhrase: "tprjvttkgmrqlsyicnidhm", + }, + additionalCustomerProperties: { + customerEmail: "zdjgibsidydyzm", + customerTransitAsn: "habgklnxqzmozqpazoyejwiphezpi", + customerAsn: "hgrelgnrtdkleisnepfolu", + customerEntitlementSkuId: "b", + customerEntitlementSkuGuid: "rvzmdpxyflgqetvpwupnfaxsweiiz", + customerEntitlementSkuName: "waaqfijr", + customerEntitlementExpiration: new Date("2024-01-30T00:54:04.773Z"), + optionalProperty1: "qhmwxza", + optionalProperty2: "l", + optionalProperty3: "mblwwvbie", + optionalProperty4: "vzuek", + optionalProperty5: "fzjodscdfcdr", + }, + error: {}, + }, + tags: { key1878: "warz" }, + }, + ); + console.log(result); +} + +async function main() { + ispCustomerCreateOrUpdateGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersDeleteSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersDeleteSample.ts new file mode 100644 index 000000000000..a9d3fe436896 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersDeleteSample.ts @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api deletes an existing ispCustomer resource + * + * @summary this api deletes an existing ispCustomer resource + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Delete_MaximumSet_Gen.json + */ +async function ispCustomersDeleteGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + await client.ispCustomers.delete( + "rgConnectedCache", + "hdontfoythjsaeyjhrakckgimgchxwzttbcnvntpvdsgeumxpgnjurptd", + ); +} + +async function main() { + ispCustomersDeleteGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersGetSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersGetSample.ts new file mode 100644 index 000000000000..69690a4d6bbc --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersGetSample.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to gets the ispCustomer resource information using this get call + * + * @summary gets the ispCustomer resource information using this get call + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Get_MaximumSet_Gen.json + */ +async function ispCustomersGetGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCustomers.get( + "rgConnectedCache", + "cmcjfueweicolcjkwmsuvcj", + ); + console.log(result); +} + +async function main() { + ispCustomersGetGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersListByResourceGroupSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersListByResourceGroupSample.ts new file mode 100644 index 000000000000..a4be25c2d0b6 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersListByResourceGroupSample.ts @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets the information about all ispCustomer resources under the given subscription and resource group + * + * @summary this api gets the information about all ispCustomer resources under the given subscription and resource group + * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListByResourceGroup_MaximumSet_Gen.json + */ +async function ispCustomersResourceListByResourceGroupGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.ispCustomers.listByResourceGroup( + "rgConnectedCache", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + ispCustomersResourceListByResourceGroupGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersListBySubscriptionSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersListBySubscriptionSample.ts new file mode 100644 index 000000000000..70e33e5e5917 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersListBySubscriptionSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api gets information about all ispCustomer resources under the given subscription + * + * @summary this api gets information about all ispCustomer resources under the given subscription + * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListBySubscription_MaximumSet_Gen.json + */ +async function ispCustomerListBySubscriptionGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.ispCustomers.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + ispCustomerListBySubscriptionGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersUpdateSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersUpdateSample.ts new file mode 100644 index 000000000000..c2747892225f --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/ispCustomersUpdateSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to this api updates an existing ispCustomer resource + * + * @summary this api updates an existing ispCustomer resource + * x-ms-original-file: 2023-05-01-preview/IspCustomers_Update_MaximumSet_Gen.json + */ +async function ispCustomerUpdateDetailsGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "12345678-1234-1234-1234-123456789098"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const result = await client.ispCustomers.update( + "rgConnectedCache", + "MccRPTest2", + { tags: { key1653: "nzjczrhclhkndesgy" } }, + ); + console.log(result); +} + +async function main() { + ispCustomerUpdateDetailsGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/operationsListSample.ts new file mode 100644 index 000000000000..913ce5c48be9 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/src/operationsListSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "@azure/arm-connectedcache"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list the operations for the provider + * + * @summary list the operations for the provider + * x-ms-original-file: 2023-05-01-preview/Operations_List_MaximumSet_Gen.json + */ +async function listTheOperationsForTheProviderGeneratedByMaximumSetRule() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "00000000-0000-0000-0000-00000000000"; + const client = new ConnectedCacheClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + listTheOperationsForTheProviderGeneratedByMaximumSetRule(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/tsconfig.json b/sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/tsconfig.json similarity index 100% rename from sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/tsconfig.json rename to sdk/connectedcache/arm-connectedcache/samples/v1-beta/typescript/tsconfig.json diff --git a/sdk/connectedcache/arm-connectedcache/src/api/cacheNodesOperations/index.ts b/sdk/connectedcache/arm-connectedcache/src/api/cacheNodesOperations/index.ts new file mode 100644 index 000000000000..4453d0fff8a1 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/api/cacheNodesOperations/index.ts @@ -0,0 +1,338 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + CacheNodesOperationsCreateorUpdateOptionalParams, + CacheNodesOperationsDeleteOptionalParams, + CacheNodesOperationsGetOptionalParams, + CacheNodesOperationsListByResourceGroupOptionalParams, + CacheNodesOperationsListBySubscriptionOptionalParams, + CacheNodesOperationsUpdateOptionalParams, + ConnectedCacheContext as Client, +} from "../index.js"; +import { + ConnectedCachePatchResource, + connectedCachePatchResourceSerializer, + CacheNodePreviewResource, + cacheNodePreviewResourceSerializer, + cacheNodePreviewResourceDeserializer, + _CacheNodePreviewResourceListResult, + _cacheNodePreviewResourceListResultDeserializer, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +export function _cacheNodesOperationsGetSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: CacheNodesOperationsGetOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _cacheNodesOperationsGetDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return cacheNodePreviewResourceDeserializer(result.body); +} + +/** Retrieves the properties of a cacheNodes */ +export async function cacheNodesOperationsGet( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: CacheNodesOperationsGetOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _cacheNodesOperationsGetSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ); + return _cacheNodesOperationsGetDeserialize(result); +} + +export function _cacheNodesOperationsCreateorUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + resource: CacheNodePreviewResource, + options: CacheNodesOperationsCreateorUpdateOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .put({ + ...operationOptionsToRequestParameters(options), + body: cacheNodePreviewResourceSerializer(resource), + }); +} + +export async function _cacheNodesOperationsCreateorUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200", "201"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return cacheNodePreviewResourceDeserializer(result.body); +} + +/** Creates a cacheNodes with the specified create parameters */ +export function cacheNodesOperationsCreateorUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + resource: CacheNodePreviewResource, + options: CacheNodesOperationsCreateorUpdateOptionalParams = { + requestOptions: {}, + }, +): PollerLike, CacheNodePreviewResource> { + return getLongRunningPoller( + context, + _cacheNodesOperationsCreateorUpdateDeserialize, + ["200", "201"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _cacheNodesOperationsCreateorUpdateSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + resource, + options, + ), + resourceLocationConfig: "azure-async-operation", + }, + ) as PollerLike, CacheNodePreviewResource>; +} + +export function _cacheNodesOperationsDeleteSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: CacheNodesOperationsDeleteOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .delete({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _cacheNodesOperationsDeleteDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200", "204"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return; +} + +/** Deletes an existing cache Node */ +export async function cacheNodesOperationsDelete( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: CacheNodesOperationsDeleteOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _cacheNodesOperationsDeleteSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ); + return _cacheNodesOperationsDeleteDeserialize(result); +} + +export function _cacheNodesOperationsUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options: CacheNodesOperationsUpdateOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .patch({ + ...operationOptionsToRequestParameters(options), + body: connectedCachePatchResourceSerializer(properties), + }); +} + +export async function _cacheNodesOperationsUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return cacheNodePreviewResourceDeserializer(result.body); +} + +/** updates an existing Cache Node */ +export async function cacheNodesOperationsUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options: CacheNodesOperationsUpdateOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _cacheNodesOperationsUpdateSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + properties, + options, + ); + return _cacheNodesOperationsUpdateDeserialize(result); +} + +export function _cacheNodesOperationsListByResourceGroupSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: CacheNodesOperationsListByResourceGroupOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes", + subscriptionId, + resourceGroupName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _cacheNodesOperationsListByResourceGroupDeserialize( + result: PathUncheckedResponse, +): Promise<_CacheNodePreviewResourceListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _cacheNodePreviewResourceListResultDeserializer(result.body); +} + +/** Retrieves the properties of all ConnectedCache */ +export function cacheNodesOperationsListByResourceGroup( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: CacheNodesOperationsListByResourceGroupOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => + _cacheNodesOperationsListByResourceGroupSend( + context, + subscriptionId, + resourceGroupName, + options, + ), + _cacheNodesOperationsListByResourceGroupDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} + +export function _cacheNodesOperationsListBySubscriptionSend( + context: Client, + subscriptionId: string, + options: CacheNodesOperationsListBySubscriptionOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/cacheNodes", + subscriptionId, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _cacheNodesOperationsListBySubscriptionDeserialize( + result: PathUncheckedResponse, +): Promise<_CacheNodePreviewResourceListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _cacheNodePreviewResourceListResultDeserializer(result.body); +} + +/** Retrieves the properties of all ConnectedCaches */ +export function cacheNodesOperationsListBySubscription( + context: Client, + subscriptionId: string, + options: CacheNodesOperationsListBySubscriptionOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _cacheNodesOperationsListBySubscriptionSend(context, subscriptionId, options), + _cacheNodesOperationsListBySubscriptionDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/sdk/connectedcache/arm-connectedcache/src/api/connectedCacheContext.ts b/sdk/connectedcache/arm-connectedcache/src/api/connectedCacheContext.ts new file mode 100644 index 000000000000..3d6d62350f66 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/api/connectedCacheContext.ts @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { logger } from "../logger.js"; +import { KnownVersions } from "../models/models.js"; +import { Client, ClientOptions, getClient } from "@azure-rest/core-client"; +import { TokenCredential } from "@azure/core-auth"; + +/** Microsoft Connected Cache Rest Api version 2023-05-01-preview */ +export interface ConnectedCacheContext extends Client {} + +/** Optional parameters for the client. */ +export interface ConnectedCacheClientOptionalParams extends ClientOptions { + /** The API version to use for this operation. */ + /** Known values of {@link KnownVersions} that the service accepts. */ + apiVersion?: string; +} + +/** Microsoft Connected Cache Rest Api version 2023-05-01-preview */ +export function createConnectedCache( + credential: TokenCredential, + options: ConnectedCacheClientOptionalParams = {}, +): ConnectedCacheContext { + const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; + const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; + const userAgentInfo = `azsdk-js-arm-connectedcache/1.0.0-beta.1`; + const userAgentPrefix = prefixFromOptions + ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}` + : `azsdk-js-api ${userAgentInfo}`; + const { apiVersion: _, ...updatedOptions } = { + ...options, + userAgentOptions: { userAgentPrefix }, + loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info }, + credentials: { + scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], + }, + }; + const clientContext = getClient(endpointUrl, credential, updatedOptions); + clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + const apiVersion = options.apiVersion ?? "2023-05-01-preview"; + clientContext.pipeline.addPolicy({ + name: "ClientApiVersionPolicy", + sendRequest: (req, next) => { + // Use the apiVersion defined in request url directly + // Append one if there is no apiVersion and we have one at client options + const url = new URL(req.url); + if (!url.searchParams.get("api-version")) { + req.url = `${req.url}${ + Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; + } + + return next(req); + }, + }); + return clientContext; +} diff --git a/sdk/connectedcache/arm-connectedcache/src/api/enterpriseCustomerOperations/index.ts b/sdk/connectedcache/arm-connectedcache/src/api/enterpriseCustomerOperations/index.ts new file mode 100644 index 000000000000..55b4206fe53f --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/api/enterpriseCustomerOperations/index.ts @@ -0,0 +1,350 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + ConnectedCacheContext as Client, + EnterpriseCustomerOperationsCreateOrUpdateOptionalParams, + EnterpriseCustomerOperationsDeleteOptionalParams, + EnterpriseCustomerOperationsGetOptionalParams, + EnterpriseCustomerOperationsListByResourceGroupOptionalParams, + EnterpriseCustomerOperationsListBySubscriptionOptionalParams, + EnterpriseCustomerOperationsUpdateOptionalParams, +} from "../index.js"; +import { + ConnectedCachePatchResource, + connectedCachePatchResourceSerializer, + EnterprisePreviewResource, + enterprisePreviewResourceSerializer, + enterprisePreviewResourceDeserializer, + _EnterprisePreviewResourceListResult, + _enterprisePreviewResourceListResultDeserializer, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +export function _enterpriseCustomerOperationsGetSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: EnterpriseCustomerOperationsGetOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _enterpriseCustomerOperationsGetDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return enterprisePreviewResourceDeserializer(result.body); +} + +/** Retrieves the properties of a Enterprise customer */ +export async function enterpriseCustomerOperationsGet( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: EnterpriseCustomerOperationsGetOptionalParams = { + requestOptions: {}, + }, +): Promise { + const result = await _enterpriseCustomerOperationsGetSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ); + return _enterpriseCustomerOperationsGetDeserialize(result); +} + +export function _enterpriseCustomerOperationsCreateOrUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + resource: EnterprisePreviewResource, + options: EnterpriseCustomerOperationsCreateOrUpdateOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .put({ + ...operationOptionsToRequestParameters(options), + body: enterprisePreviewResourceSerializer(resource), + }); +} + +export async function _enterpriseCustomerOperationsCreateOrUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200", "201"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return enterprisePreviewResourceDeserializer(result.body); +} + +/** Creates a cacheNodes with the specified create parameters */ +export function enterpriseCustomerOperationsCreateOrUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + resource: EnterprisePreviewResource, + options: EnterpriseCustomerOperationsCreateOrUpdateOptionalParams = { + requestOptions: {}, + }, +): PollerLike, EnterprisePreviewResource> { + return getLongRunningPoller( + context, + _enterpriseCustomerOperationsCreateOrUpdateDeserialize, + ["200", "201"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _enterpriseCustomerOperationsCreateOrUpdateSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + resource, + options, + ), + resourceLocationConfig: "azure-async-operation", + }, + ) as PollerLike, EnterprisePreviewResource>; +} + +export function _enterpriseCustomerOperationsUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options: EnterpriseCustomerOperationsUpdateOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .patch({ + ...operationOptionsToRequestParameters(options), + body: connectedCachePatchResourceSerializer(properties), + }); +} + +export async function _enterpriseCustomerOperationsUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return enterprisePreviewResourceDeserializer(result.body); +} + +/** updates an existing enterpriseCustomers */ +export async function enterpriseCustomerOperationsUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options: EnterpriseCustomerOperationsUpdateOptionalParams = { + requestOptions: {}, + }, +): Promise { + const result = await _enterpriseCustomerOperationsUpdateSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + properties, + options, + ); + return _enterpriseCustomerOperationsUpdateDeserialize(result); +} + +export function _enterpriseCustomerOperationsDeleteSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: EnterpriseCustomerOperationsDeleteOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .delete({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _enterpriseCustomerOperationsDeleteDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200", "204"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return; +} + +/** Deletes an existing customer Enterprise resource */ +export async function enterpriseCustomerOperationsDelete( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: EnterpriseCustomerOperationsDeleteOptionalParams = { + requestOptions: {}, + }, +): Promise { + const result = await _enterpriseCustomerOperationsDeleteSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ); + return _enterpriseCustomerOperationsDeleteDeserialize(result); +} + +export function _enterpriseCustomerOperationsListByResourceGroupSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: EnterpriseCustomerOperationsListByResourceGroupOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers", + subscriptionId, + resourceGroupName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _enterpriseCustomerOperationsListByResourceGroupDeserialize( + result: PathUncheckedResponse, +): Promise<_EnterprisePreviewResourceListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _enterprisePreviewResourceListResultDeserializer(result.body); +} + +/** Retrieves the properties of all ConnectedCache enterpriseCustomers */ +export function enterpriseCustomerOperationsListByResourceGroup( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: EnterpriseCustomerOperationsListByResourceGroupOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => + _enterpriseCustomerOperationsListByResourceGroupSend( + context, + subscriptionId, + resourceGroupName, + options, + ), + _enterpriseCustomerOperationsListByResourceGroupDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} + +export function _enterpriseCustomerOperationsListBySubscriptionSend( + context: Client, + subscriptionId: string, + options: EnterpriseCustomerOperationsListBySubscriptionOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseCustomers", + subscriptionId, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _enterpriseCustomerOperationsListBySubscriptionDeserialize( + result: PathUncheckedResponse, +): Promise<_EnterprisePreviewResourceListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _enterprisePreviewResourceListResultDeserializer(result.body); +} + +/** Retrieves the properties of all ConnectedCaches */ +export function enterpriseCustomerOperationsListBySubscription( + context: Client, + subscriptionId: string, + options: EnterpriseCustomerOperationsListBySubscriptionOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _enterpriseCustomerOperationsListBySubscriptionSend(context, subscriptionId, options), + _enterpriseCustomerOperationsListBySubscriptionDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/sdk/connectedcache/arm-connectedcache/src/api/enterpriseMccCacheNodesOperations/index.ts b/sdk/connectedcache/arm-connectedcache/src/api/enterpriseMccCacheNodesOperations/index.ts new file mode 100644 index 000000000000..578a622ca5e5 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/api/enterpriseMccCacheNodesOperations/index.ts @@ -0,0 +1,393 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + ConnectedCacheContext as Client, + EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams, + EnterpriseMccCacheNodesOperationsDeleteOptionalParams, + EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams, + EnterpriseMccCacheNodesOperationsGetOptionalParams, + EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams, + EnterpriseMccCacheNodesOperationsUpdateOptionalParams, +} from "../index.js"; +import { + EnterpriseMccCacheNodeResource, + enterpriseMccCacheNodeResourceSerializer, + enterpriseMccCacheNodeResourceDeserializer, + ConnectedCachePatchResource, + connectedCachePatchResourceSerializer, + _EnterpriseMccCacheNodeResourceListResult, + _enterpriseMccCacheNodeResourceListResultDeserializer, + MccCacheNodeInstallDetails, + mccCacheNodeInstallDetailsDeserializer, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +export function _enterpriseMccCacheNodesOperationsGetSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: EnterpriseMccCacheNodesOperationsGetOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _enterpriseMccCacheNodesOperationsGetDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return enterpriseMccCacheNodeResourceDeserializer(result.body); +} + +/** This api gets ispCacheNode resource information */ +export async function enterpriseMccCacheNodesOperationsGet( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: EnterpriseMccCacheNodesOperationsGetOptionalParams = { + requestOptions: {}, + }, +): Promise { + const result = await _enterpriseMccCacheNodesOperationsGetSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ); + return _enterpriseMccCacheNodesOperationsGetDeserialize(result); +} + +export function _enterpriseMccCacheNodesOperationsCreateOrUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + resource: EnterpriseMccCacheNodeResource, + options: EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + ) + .put({ + ...operationOptionsToRequestParameters(options), + body: enterpriseMccCacheNodeResourceSerializer(resource), + }); +} + +export async function _enterpriseMccCacheNodesOperationsCreateOrUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200", "201"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return enterpriseMccCacheNodeResourceDeserializer(result.body); +} + +/** This api creates an ispCacheNode with the specified create parameters */ +export function enterpriseMccCacheNodesOperationsCreateOrUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + resource: EnterpriseMccCacheNodeResource, + options: EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams = { + requestOptions: {}, + }, +): PollerLike, EnterpriseMccCacheNodeResource> { + return getLongRunningPoller( + context, + _enterpriseMccCacheNodesOperationsCreateOrUpdateDeserialize, + ["200", "201"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _enterpriseMccCacheNodesOperationsCreateOrUpdateSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + resource, + options, + ), + resourceLocationConfig: "azure-async-operation", + }, + ) as PollerLike, EnterpriseMccCacheNodeResource>; +} + +export function _enterpriseMccCacheNodesOperationsUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + properties: ConnectedCachePatchResource, + options: EnterpriseMccCacheNodesOperationsUpdateOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + ) + .patch({ + ...operationOptionsToRequestParameters(options), + body: connectedCachePatchResourceSerializer(properties), + }); +} + +export async function _enterpriseMccCacheNodesOperationsUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return enterpriseMccCacheNodeResourceDeserializer(result.body); +} + +/** This api updates an existing ispCacheNode resource */ +export async function enterpriseMccCacheNodesOperationsUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + properties: ConnectedCachePatchResource, + options: EnterpriseMccCacheNodesOperationsUpdateOptionalParams = { + requestOptions: {}, + }, +): Promise { + const result = await _enterpriseMccCacheNodesOperationsUpdateSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + properties, + options, + ); + return _enterpriseMccCacheNodesOperationsUpdateDeserialize(result); +} + +export function _enterpriseMccCacheNodesOperationsDeleteSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: EnterpriseMccCacheNodesOperationsDeleteOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + ) + .delete({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _enterpriseMccCacheNodesOperationsDeleteDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["202", "204", "200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return; +} + +/** This api deletes an existing ispCacheNode resource */ +export function enterpriseMccCacheNodesOperationsDelete( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: EnterpriseMccCacheNodesOperationsDeleteOptionalParams = { + requestOptions: {}, + }, +): PollerLike, void> { + return getLongRunningPoller( + context, + _enterpriseMccCacheNodesOperationsDeleteDeserialize, + ["202", "204", "200"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _enterpriseMccCacheNodesOperationsDeleteSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ), + resourceLocationConfig: "location", + }, + ) as PollerLike, void>; +} + +export function _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceDeserialize( + result: PathUncheckedResponse, +): Promise<_EnterpriseMccCacheNodeResourceListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _enterpriseMccCacheNodeResourceListResultDeserializer(result.body); +} + +/** This api retrieves information about all ispCacheNode resources under the given subscription and resource group */ +export function enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => + _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ), + _enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} + +export function _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}/getCacheNodeInstallDetails", + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + ) + .post({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return mccCacheNodeInstallDetailsDeserializer(result.body); +} + +/** This api gets secrets of the ispCacheNode resource install details */ +export async function enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetails( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams = { + requestOptions: {}, + }, +): Promise { + const result = await _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ); + return _enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsDeserialize(result); +} diff --git a/sdk/connectedcache/arm-connectedcache/src/api/enterpriseMccCustomers/index.ts b/sdk/connectedcache/arm-connectedcache/src/api/enterpriseMccCustomers/index.ts new file mode 100644 index 000000000000..5e494147eaff --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/api/enterpriseMccCustomers/index.ts @@ -0,0 +1,348 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + ConnectedCacheContext as Client, + EnterpriseMccCustomersCreateOrUpdateOptionalParams, + EnterpriseMccCustomersDeleteOptionalParams, + EnterpriseMccCustomersGetOptionalParams, + EnterpriseMccCustomersListByResourceGroupOptionalParams, + EnterpriseMccCustomersListBySubscriptionOptionalParams, + EnterpriseMccCustomersUpdateOptionalParams, +} from "../index.js"; +import { + ConnectedCachePatchResource, + connectedCachePatchResourceSerializer, + EnterpriseMccCustomerResource, + enterpriseMccCustomerResourceSerializer, + enterpriseMccCustomerResourceDeserializer, + _EnterpriseMccCustomerResourceListResult, + _enterpriseMccCustomerResourceListResultDeserializer, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +export function _enterpriseMccCustomersGetSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: EnterpriseMccCustomersGetOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _enterpriseMccCustomersGetDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return enterpriseMccCustomerResourceDeserializer(result.body); +} + +/** Gets the enterprise mcc customer resource information using this get call */ +export async function enterpriseMccCustomersGet( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: EnterpriseMccCustomersGetOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _enterpriseMccCustomersGetSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ); + return _enterpriseMccCustomersGetDeserialize(result); +} + +export function _enterpriseMccCustomersCreateOrUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + resource: EnterpriseMccCustomerResource, + options: EnterpriseMccCustomersCreateOrUpdateOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .put({ + ...operationOptionsToRequestParameters(options), + body: enterpriseMccCustomerResourceSerializer(resource), + }); +} + +export async function _enterpriseMccCustomersCreateOrUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200", "201"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return enterpriseMccCustomerResourceDeserializer(result.body); +} + +/** This api creates an enterprise mcc customer with the specified create parameters */ +export function enterpriseMccCustomersCreateOrUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + resource: EnterpriseMccCustomerResource, + options: EnterpriseMccCustomersCreateOrUpdateOptionalParams = { + requestOptions: {}, + }, +): PollerLike, EnterpriseMccCustomerResource> { + return getLongRunningPoller( + context, + _enterpriseMccCustomersCreateOrUpdateDeserialize, + ["200", "201"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _enterpriseMccCustomersCreateOrUpdateSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + resource, + options, + ), + resourceLocationConfig: "azure-async-operation", + }, + ) as PollerLike, EnterpriseMccCustomerResource>; +} + +export function _enterpriseMccCustomersUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options: EnterpriseMccCustomersUpdateOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .patch({ + ...operationOptionsToRequestParameters(options), + body: connectedCachePatchResourceSerializer(properties), + }); +} + +export async function _enterpriseMccCustomersUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return enterpriseMccCustomerResourceDeserializer(result.body); +} + +/** This api updates an existing enterprise mcc customer resource */ +export async function enterpriseMccCustomersUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options: EnterpriseMccCustomersUpdateOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _enterpriseMccCustomersUpdateSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + properties, + options, + ); + return _enterpriseMccCustomersUpdateDeserialize(result); +} + +export function _enterpriseMccCustomersDeleteSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: EnterpriseMccCustomersDeleteOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .delete({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _enterpriseMccCustomersDeleteDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["202", "204", "200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return; +} + +/** This api deletes an existing enterprise mcc customer resource */ +export function enterpriseMccCustomersDelete( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: EnterpriseMccCustomersDeleteOptionalParams = { requestOptions: {} }, +): PollerLike, void> { + return getLongRunningPoller( + context, + _enterpriseMccCustomersDeleteDeserialize, + ["202", "204", "200"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _enterpriseMccCustomersDeleteSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ), + resourceLocationConfig: "location", + }, + ) as PollerLike, void>; +} + +export function _enterpriseMccCustomersListByResourceGroupSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: EnterpriseMccCustomersListByResourceGroupOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers", + subscriptionId, + resourceGroupName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _enterpriseMccCustomersListByResourceGroupDeserialize( + result: PathUncheckedResponse, +): Promise<_EnterpriseMccCustomerResourceListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _enterpriseMccCustomerResourceListResultDeserializer(result.body); +} + +/** This api gets the information about all enterprise mcc customer resources under the given subscription and resource group */ +export function enterpriseMccCustomersListByResourceGroup( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: EnterpriseMccCustomersListByResourceGroupOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => + _enterpriseMccCustomersListByResourceGroupSend( + context, + subscriptionId, + resourceGroupName, + options, + ), + _enterpriseMccCustomersListByResourceGroupDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} + +export function _enterpriseMccCustomersListBySubscriptionSend( + context: Client, + subscriptionId: string, + options: EnterpriseMccCustomersListBySubscriptionOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers", + subscriptionId, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _enterpriseMccCustomersListBySubscriptionDeserialize( + result: PathUncheckedResponse, +): Promise<_EnterpriseMccCustomerResourceListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _enterpriseMccCustomerResourceListResultDeserializer(result.body); +} + +/** This api gets information about all enterpriseMccCustomer resources under the given subscription */ +export function enterpriseMccCustomersListBySubscription( + context: Client, + subscriptionId: string, + options: EnterpriseMccCustomersListBySubscriptionOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _enterpriseMccCustomersListBySubscriptionSend(context, subscriptionId, options), + _enterpriseMccCustomersListBySubscriptionDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/sdk/connectedcache/arm-connectedcache/src/api/index.ts b/sdk/connectedcache/arm-connectedcache/src/api/index.ts new file mode 100644 index 000000000000..7d8d4b81309c --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/api/index.ts @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +export { + createConnectedCache, + ConnectedCacheContext, + ConnectedCacheClientOptionalParams, +} from "./connectedCacheContext.js"; +export { + OperationsListOptionalParams, + EnterpriseCustomerOperationsGetOptionalParams, + EnterpriseCustomerOperationsCreateOrUpdateOptionalParams, + EnterpriseCustomerOperationsUpdateOptionalParams, + EnterpriseCustomerOperationsDeleteOptionalParams, + EnterpriseCustomerOperationsListByResourceGroupOptionalParams, + EnterpriseCustomerOperationsListBySubscriptionOptionalParams, + CacheNodesOperationsGetOptionalParams, + CacheNodesOperationsCreateorUpdateOptionalParams, + CacheNodesOperationsDeleteOptionalParams, + CacheNodesOperationsUpdateOptionalParams, + CacheNodesOperationsListByResourceGroupOptionalParams, + CacheNodesOperationsListBySubscriptionOptionalParams, + IspCustomersGetOptionalParams, + IspCustomersCreateOrUpdateOptionalParams, + IspCustomersUpdateOptionalParams, + IspCustomersDeleteOptionalParams, + IspCustomersListByResourceGroupOptionalParams, + IspCustomersListBySubscriptionOptionalParams, + IspCacheNodesOperationsGetOptionalParams, + IspCacheNodesOperationsCreateOrUpdateOptionalParams, + IspCacheNodesOperationsUpdateOptionalParams, + IspCacheNodesOperationsDeleteOptionalParams, + IspCacheNodesOperationsListByIspCustomerResourceOptionalParams, + IspCacheNodesOperationsGetBgpCidrsOptionalParams, + IspCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams, + EnterpriseMccCustomersGetOptionalParams, + EnterpriseMccCustomersCreateOrUpdateOptionalParams, + EnterpriseMccCustomersUpdateOptionalParams, + EnterpriseMccCustomersDeleteOptionalParams, + EnterpriseMccCustomersListByResourceGroupOptionalParams, + EnterpriseMccCustomersListBySubscriptionOptionalParams, + EnterpriseMccCacheNodesOperationsGetOptionalParams, + EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams, + EnterpriseMccCacheNodesOperationsUpdateOptionalParams, + EnterpriseMccCacheNodesOperationsDeleteOptionalParams, + EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams, + EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams, +} from "./options.js"; +export { + cacheNodesOperationsGet, + cacheNodesOperationsCreateorUpdate, + cacheNodesOperationsDelete, + cacheNodesOperationsUpdate, + cacheNodesOperationsListByResourceGroup, + cacheNodesOperationsListBySubscription, +} from "./cacheNodesOperations/index.js"; +export { + enterpriseCustomerOperationsGet, + enterpriseCustomerOperationsCreateOrUpdate, + enterpriseCustomerOperationsUpdate, + enterpriseCustomerOperationsDelete, + enterpriseCustomerOperationsListByResourceGroup, + enterpriseCustomerOperationsListBySubscription, +} from "./enterpriseCustomerOperations/index.js"; +export { + enterpriseMccCacheNodesOperationsGet, + enterpriseMccCacheNodesOperationsCreateOrUpdate, + enterpriseMccCacheNodesOperationsUpdate, + enterpriseMccCacheNodesOperationsDelete, + enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource, + enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetails, +} from "./enterpriseMccCacheNodesOperations/index.js"; +export { + enterpriseMccCustomersGet, + enterpriseMccCustomersCreateOrUpdate, + enterpriseMccCustomersUpdate, + enterpriseMccCustomersDelete, + enterpriseMccCustomersListByResourceGroup, + enterpriseMccCustomersListBySubscription, +} from "./enterpriseMccCustomers/index.js"; +export { + ispCacheNodesOperationsGet, + ispCacheNodesOperationsCreateOrUpdate, + ispCacheNodesOperationsUpdate, + ispCacheNodesOperationsDelete, + ispCacheNodesOperationsListByIspCustomerResource, + ispCacheNodesOperationsGetBgpCidrs, + ispCacheNodesOperationsGetCacheNodeInstallDetails, +} from "./ispCacheNodesOperations/index.js"; +export { + ispCustomersGet, + ispCustomersCreateOrUpdate, + ispCustomersUpdate, + ispCustomersDelete, + ispCustomersListByResourceGroup, + ispCustomersListBySubscription, +} from "./ispCustomers/index.js"; +export { operationsList } from "./operations/index.js"; diff --git a/sdk/connectedcache/arm-connectedcache/src/api/ispCacheNodesOperations/index.ts b/sdk/connectedcache/arm-connectedcache/src/api/ispCacheNodesOperations/index.ts new file mode 100644 index 000000000000..743f9586907b --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/api/ispCacheNodesOperations/index.ts @@ -0,0 +1,438 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + ConnectedCacheContext as Client, + IspCacheNodesOperationsCreateOrUpdateOptionalParams, + IspCacheNodesOperationsDeleteOptionalParams, + IspCacheNodesOperationsGetBgpCidrsOptionalParams, + IspCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams, + IspCacheNodesOperationsGetOptionalParams, + IspCacheNodesOperationsListByIspCustomerResourceOptionalParams, + IspCacheNodesOperationsUpdateOptionalParams, +} from "../index.js"; +import { + ConnectedCachePatchResource, + connectedCachePatchResourceSerializer, + MccCacheNodeInstallDetails, + mccCacheNodeInstallDetailsDeserializer, + IspCacheNodeResource, + ispCacheNodeResourceSerializer, + ispCacheNodeResourceDeserializer, + _IspCacheNodeResourceListResult, + _ispCacheNodeResourceListResultDeserializer, + MccCacheNodeBgpCidrDetails, + mccCacheNodeBgpCidrDetailsDeserializer, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +export function _ispCacheNodesOperationsGetSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: IspCacheNodesOperationsGetOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _ispCacheNodesOperationsGetDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return ispCacheNodeResourceDeserializer(result.body); +} + +/** This api gets ispCacheNode resource information */ +export async function ispCacheNodesOperationsGet( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: IspCacheNodesOperationsGetOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _ispCacheNodesOperationsGetSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ); + return _ispCacheNodesOperationsGetDeserialize(result); +} + +export function _ispCacheNodesOperationsCreateOrUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + resource: IspCacheNodeResource, + options: IspCacheNodesOperationsCreateOrUpdateOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + ) + .put({ + ...operationOptionsToRequestParameters(options), + body: ispCacheNodeResourceSerializer(resource), + }); +} + +export async function _ispCacheNodesOperationsCreateOrUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200", "201"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return ispCacheNodeResourceDeserializer(result.body); +} + +/** This api creates an ispCacheNode with the specified create parameters */ +export function ispCacheNodesOperationsCreateOrUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + resource: IspCacheNodeResource, + options: IspCacheNodesOperationsCreateOrUpdateOptionalParams = { + requestOptions: {}, + }, +): PollerLike, IspCacheNodeResource> { + return getLongRunningPoller( + context, + _ispCacheNodesOperationsCreateOrUpdateDeserialize, + ["200", "201"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _ispCacheNodesOperationsCreateOrUpdateSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + resource, + options, + ), + resourceLocationConfig: "azure-async-operation", + }, + ) as PollerLike, IspCacheNodeResource>; +} + +export function _ispCacheNodesOperationsUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + properties: ConnectedCachePatchResource, + options: IspCacheNodesOperationsUpdateOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + ) + .patch({ + ...operationOptionsToRequestParameters(options), + body: connectedCachePatchResourceSerializer(properties), + }); +} + +export async function _ispCacheNodesOperationsUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return ispCacheNodeResourceDeserializer(result.body); +} + +/** This api updates an existing ispCacheNode resource */ +export async function ispCacheNodesOperationsUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + properties: ConnectedCachePatchResource, + options: IspCacheNodesOperationsUpdateOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _ispCacheNodesOperationsUpdateSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + properties, + options, + ); + return _ispCacheNodesOperationsUpdateDeserialize(result); +} + +export function _ispCacheNodesOperationsDeleteSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: IspCacheNodesOperationsDeleteOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + ) + .delete({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _ispCacheNodesOperationsDeleteDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["202", "204", "200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return; +} + +/** This api deletes an existing ispCacheNode resource */ +export function ispCacheNodesOperationsDelete( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: IspCacheNodesOperationsDeleteOptionalParams = { requestOptions: {} }, +): PollerLike, void> { + return getLongRunningPoller( + context, + _ispCacheNodesOperationsDeleteDeserialize, + ["202", "204", "200"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _ispCacheNodesOperationsDeleteSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ), + resourceLocationConfig: "location", + }, + ) as PollerLike, void>; +} + +export function _ispCacheNodesOperationsListByIspCustomerResourceSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: IspCacheNodesOperationsListByIspCustomerResourceOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _ispCacheNodesOperationsListByIspCustomerResourceDeserialize( + result: PathUncheckedResponse, +): Promise<_IspCacheNodeResourceListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _ispCacheNodeResourceListResultDeserializer(result.body); +} + +/** This api retrieves information about all ispCacheNode resources under the given subscription and resource group */ +export function ispCacheNodesOperationsListByIspCustomerResource( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: IspCacheNodesOperationsListByIspCustomerResourceOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => + _ispCacheNodesOperationsListByIspCustomerResourceSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ), + _ispCacheNodesOperationsListByIspCustomerResourceDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} + +export function _ispCacheNodesOperationsGetBgpCidrsSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: IspCacheNodesOperationsGetBgpCidrsOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}/getBgpCidrs", + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + ) + .post({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _ispCacheNodesOperationsGetBgpCidrsDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return mccCacheNodeBgpCidrDetailsDeserializer(result.body); +} + +/** This api gets ispCacheNode resource information */ +export async function ispCacheNodesOperationsGetBgpCidrs( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: IspCacheNodesOperationsGetBgpCidrsOptionalParams = { + requestOptions: {}, + }, +): Promise { + const result = await _ispCacheNodesOperationsGetBgpCidrsSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ); + return _ispCacheNodesOperationsGetBgpCidrsDeserialize(result); +} + +export function _ispCacheNodesOperationsGetCacheNodeInstallDetailsSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: IspCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}/getCacheNodeInstallDetails", + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + ) + .post({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _ispCacheNodesOperationsGetCacheNodeInstallDetailsDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return mccCacheNodeInstallDetailsDeserializer(result.body); +} + +/** This api gets secrets of the ispCacheNode resource install details */ +export async function ispCacheNodesOperationsGetCacheNodeInstallDetails( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options: IspCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams = { + requestOptions: {}, + }, +): Promise { + const result = await _ispCacheNodesOperationsGetCacheNodeInstallDetailsSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ); + return _ispCacheNodesOperationsGetCacheNodeInstallDetailsDeserialize(result); +} diff --git a/sdk/connectedcache/arm-connectedcache/src/api/ispCustomers/index.ts b/sdk/connectedcache/arm-connectedcache/src/api/ispCustomers/index.ts new file mode 100644 index 000000000000..d1d69d3c6a16 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/api/ispCustomers/index.ts @@ -0,0 +1,326 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + ConnectedCacheContext as Client, + IspCustomersCreateOrUpdateOptionalParams, + IspCustomersDeleteOptionalParams, + IspCustomersGetOptionalParams, + IspCustomersListByResourceGroupOptionalParams, + IspCustomersListBySubscriptionOptionalParams, + IspCustomersUpdateOptionalParams, +} from "../index.js"; +import { + ConnectedCachePatchResource, + connectedCachePatchResourceSerializer, + IspCustomerResource, + ispCustomerResourceSerializer, + ispCustomerResourceDeserializer, + _IspCustomerResourceListResult, + _ispCustomerResourceListResultDeserializer, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +export function _ispCustomersGetSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: IspCustomersGetOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _ispCustomersGetDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return ispCustomerResourceDeserializer(result.body); +} + +/** Gets the ispCustomer resource information using this get call */ +export async function ispCustomersGet( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: IspCustomersGetOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _ispCustomersGetSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ); + return _ispCustomersGetDeserialize(result); +} + +export function _ispCustomersCreateOrUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + resource: IspCustomerResource, + options: IspCustomersCreateOrUpdateOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .put({ + ...operationOptionsToRequestParameters(options), + body: ispCustomerResourceSerializer(resource), + }); +} + +export async function _ispCustomersCreateOrUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200", "201"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return ispCustomerResourceDeserializer(result.body); +} + +/** This api creates an ispCustomer with the specified create parameters */ +export function ispCustomersCreateOrUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + resource: IspCustomerResource, + options: IspCustomersCreateOrUpdateOptionalParams = { requestOptions: {} }, +): PollerLike, IspCustomerResource> { + return getLongRunningPoller(context, _ispCustomersCreateOrUpdateDeserialize, ["200", "201"], { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _ispCustomersCreateOrUpdateSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + resource, + options, + ), + resourceLocationConfig: "azure-async-operation", + }) as PollerLike, IspCustomerResource>; +} + +export function _ispCustomersUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options: IspCustomersUpdateOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .patch({ + ...operationOptionsToRequestParameters(options), + body: connectedCachePatchResourceSerializer(properties), + }); +} + +export async function _ispCustomersUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return ispCustomerResourceDeserializer(result.body); +} + +/** This api updates an existing ispCustomer resource */ +export async function ispCustomersUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options: IspCustomersUpdateOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _ispCustomersUpdateSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + properties, + options, + ); + return _ispCustomersUpdateDeserialize(result); +} + +export function _ispCustomersDeleteSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: IspCustomersDeleteOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}", + subscriptionId, + resourceGroupName, + customerResourceName, + ) + .delete({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _ispCustomersDeleteDeserialize(result: PathUncheckedResponse): Promise { + const expectedStatuses = ["202", "204", "200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return; +} + +/** This api deletes an existing ispCustomer resource */ +export function ispCustomersDelete( + context: Client, + subscriptionId: string, + resourceGroupName: string, + customerResourceName: string, + options: IspCustomersDeleteOptionalParams = { requestOptions: {} }, +): PollerLike, void> { + return getLongRunningPoller(context, _ispCustomersDeleteDeserialize, ["202", "204", "200"], { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _ispCustomersDeleteSend( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ), + resourceLocationConfig: "location", + }) as PollerLike, void>; +} + +export function _ispCustomersListByResourceGroupSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: IspCustomersListByResourceGroupOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers", + subscriptionId, + resourceGroupName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _ispCustomersListByResourceGroupDeserialize( + result: PathUncheckedResponse, +): Promise<_IspCustomerResourceListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _ispCustomerResourceListResultDeserializer(result.body); +} + +/** This api gets the information about all ispCustomer resources under the given subscription and resource group */ +export function ispCustomersListByResourceGroup( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: IspCustomersListByResourceGroupOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _ispCustomersListByResourceGroupSend(context, subscriptionId, resourceGroupName, options), + _ispCustomersListByResourceGroupDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} + +export function _ispCustomersListBySubscriptionSend( + context: Client, + subscriptionId: string, + options: IspCustomersListBySubscriptionOptionalParams = { + requestOptions: {}, + }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/ispCustomers", + subscriptionId, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _ispCustomersListBySubscriptionDeserialize( + result: PathUncheckedResponse, +): Promise<_IspCustomerResourceListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _ispCustomerResourceListResultDeserializer(result.body); +} + +/** This api gets information about all ispCustomer resources under the given subscription */ +export function ispCustomersListBySubscription( + context: Client, + subscriptionId: string, + options: IspCustomersListBySubscriptionOptionalParams = { + requestOptions: {}, + }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _ispCustomersListBySubscriptionSend(context, subscriptionId, options), + _ispCustomersListBySubscriptionDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/sdk/connectedcache/arm-connectedcache/src/api/operations/index.ts b/sdk/connectedcache/arm-connectedcache/src/api/operations/index.ts new file mode 100644 index 000000000000..5236d030b19a --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/api/operations/index.ts @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheContext as Client, OperationsListOptionalParams } from "../index.js"; +import { + _OperationListResult, + _operationListResultDeserializer, + Operation, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; + +export function _operationsListSend( + context: Client, + options: OperationsListOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path("/providers/Microsoft.ConnectedCache/operations") + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _operationsListDeserialize( + result: PathUncheckedResponse, +): Promise<_OperationListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _operationListResultDeserializer(result.body); +} + +/** List the operations for the provider */ +export function operationsList( + context: Client, + options: OperationsListOptionalParams = { requestOptions: {} }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _operationsListSend(context, options), + _operationsListDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/sdk/connectedcache/arm-connectedcache/src/api/options.ts b/sdk/connectedcache/arm-connectedcache/src/api/options.ts new file mode 100644 index 000000000000..b2bce9d483c3 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/api/options.ts @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { OperationOptions } from "@azure-rest/core-client"; + +/** Optional parameters. */ +export interface OperationsListOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseCustomerOperationsGetOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseCustomerOperationsCreateOrUpdateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface EnterpriseCustomerOperationsUpdateOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseCustomerOperationsDeleteOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseCustomerOperationsListByResourceGroupOptionalParams + extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseCustomerOperationsListBySubscriptionOptionalParams + extends OperationOptions {} + +/** Optional parameters. */ +export interface CacheNodesOperationsGetOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface CacheNodesOperationsCreateorUpdateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface CacheNodesOperationsDeleteOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface CacheNodesOperationsUpdateOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface CacheNodesOperationsListByResourceGroupOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface CacheNodesOperationsListBySubscriptionOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface IspCustomersGetOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface IspCustomersCreateOrUpdateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface IspCustomersUpdateOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface IspCustomersDeleteOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface IspCustomersListByResourceGroupOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface IspCustomersListBySubscriptionOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface IspCacheNodesOperationsGetOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface IspCacheNodesOperationsCreateOrUpdateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface IspCacheNodesOperationsUpdateOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface IspCacheNodesOperationsDeleteOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface IspCacheNodesOperationsListByIspCustomerResourceOptionalParams + extends OperationOptions {} + +/** Optional parameters. */ +export interface IspCacheNodesOperationsGetBgpCidrsOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface IspCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams + extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseMccCustomersGetOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseMccCustomersCreateOrUpdateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface EnterpriseMccCustomersUpdateOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseMccCustomersDeleteOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface EnterpriseMccCustomersListByResourceGroupOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseMccCustomersListBySubscriptionOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseMccCacheNodesOperationsGetOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams + extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface EnterpriseMccCacheNodesOperationsUpdateOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseMccCacheNodesOperationsDeleteOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams + extends OperationOptions {} + +/** Optional parameters. */ +export interface EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams + extends OperationOptions {} diff --git a/sdk/connectedcache/arm-connectedcache/src/classic/cacheNodesOperations/index.ts b/sdk/connectedcache/arm-connectedcache/src/classic/cacheNodesOperations/index.ts new file mode 100644 index 000000000000..c67f07f6161c --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/classic/cacheNodesOperations/index.ts @@ -0,0 +1,135 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheContext } from "../../api/connectedCacheContext.js"; +import { + cacheNodesOperationsGet, + cacheNodesOperationsCreateorUpdate, + cacheNodesOperationsDelete, + cacheNodesOperationsUpdate, + cacheNodesOperationsListByResourceGroup, + cacheNodesOperationsListBySubscription, +} from "../../api/cacheNodesOperations/index.js"; +import { ConnectedCachePatchResource, CacheNodePreviewResource } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; +import { + CacheNodesOperationsGetOptionalParams, + CacheNodesOperationsCreateorUpdateOptionalParams, + CacheNodesOperationsDeleteOptionalParams, + CacheNodesOperationsUpdateOptionalParams, + CacheNodesOperationsListByResourceGroupOptionalParams, + CacheNodesOperationsListBySubscriptionOptionalParams, +} from "../../api/options.js"; + +/** Interface representing a CacheNodesOperations operations. */ +export interface CacheNodesOperationsOperations { + /** Retrieves the properties of a cacheNodes */ + get: ( + resourceGroupName: string, + customerResourceName: string, + options?: CacheNodesOperationsGetOptionalParams, + ) => Promise; + /** Creates a cacheNodes with the specified create parameters */ + createorUpdate: ( + resourceGroupName: string, + customerResourceName: string, + resource: CacheNodePreviewResource, + options?: CacheNodesOperationsCreateorUpdateOptionalParams, + ) => PollerLike, CacheNodePreviewResource>; + /** Deletes an existing cache Node */ + delete: ( + resourceGroupName: string, + customerResourceName: string, + options?: CacheNodesOperationsDeleteOptionalParams, + ) => Promise; + /** updates an existing Cache Node */ + update: ( + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options?: CacheNodesOperationsUpdateOptionalParams, + ) => Promise; + /** Retrieves the properties of all ConnectedCache */ + listByResourceGroup: ( + resourceGroupName: string, + options?: CacheNodesOperationsListByResourceGroupOptionalParams, + ) => PagedAsyncIterableIterator; + /** Retrieves the properties of all ConnectedCaches */ + listBySubscription: ( + options?: CacheNodesOperationsListBySubscriptionOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getCacheNodesOperations(context: ConnectedCacheContext, subscriptionId: string) { + return { + get: ( + resourceGroupName: string, + customerResourceName: string, + options?: CacheNodesOperationsGetOptionalParams, + ) => + cacheNodesOperationsGet( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ), + createorUpdate: ( + resourceGroupName: string, + customerResourceName: string, + resource: CacheNodePreviewResource, + options?: CacheNodesOperationsCreateorUpdateOptionalParams, + ) => + cacheNodesOperationsCreateorUpdate( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + resource, + options, + ), + delete: ( + resourceGroupName: string, + customerResourceName: string, + options?: CacheNodesOperationsDeleteOptionalParams, + ) => + cacheNodesOperationsDelete( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ), + update: ( + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options?: CacheNodesOperationsUpdateOptionalParams, + ) => + cacheNodesOperationsUpdate( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + properties, + options, + ), + listByResourceGroup: ( + resourceGroupName: string, + options?: CacheNodesOperationsListByResourceGroupOptionalParams, + ) => + cacheNodesOperationsListByResourceGroup(context, subscriptionId, resourceGroupName, options), + listBySubscription: (options?: CacheNodesOperationsListBySubscriptionOptionalParams) => + cacheNodesOperationsListBySubscription(context, subscriptionId, options), + }; +} + +export function getCacheNodesOperationsOperations( + context: ConnectedCacheContext, + subscriptionId: string, +): CacheNodesOperationsOperations { + return { + ...getCacheNodesOperations(context, subscriptionId), + }; +} diff --git a/sdk/connectedcache/arm-connectedcache/src/classic/enterpriseCustomerOperations/index.ts b/sdk/connectedcache/arm-connectedcache/src/classic/enterpriseCustomerOperations/index.ts new file mode 100644 index 000000000000..66d6c8928917 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/classic/enterpriseCustomerOperations/index.ts @@ -0,0 +1,143 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheContext } from "../../api/connectedCacheContext.js"; +import { + enterpriseCustomerOperationsGet, + enterpriseCustomerOperationsCreateOrUpdate, + enterpriseCustomerOperationsUpdate, + enterpriseCustomerOperationsDelete, + enterpriseCustomerOperationsListByResourceGroup, + enterpriseCustomerOperationsListBySubscription, +} from "../../api/enterpriseCustomerOperations/index.js"; +import { + EnterpriseCustomerOperationsGetOptionalParams, + EnterpriseCustomerOperationsCreateOrUpdateOptionalParams, + EnterpriseCustomerOperationsUpdateOptionalParams, + EnterpriseCustomerOperationsDeleteOptionalParams, + EnterpriseCustomerOperationsListByResourceGroupOptionalParams, + EnterpriseCustomerOperationsListBySubscriptionOptionalParams, +} from "../../api/options.js"; +import { ConnectedCachePatchResource, EnterprisePreviewResource } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +/** Interface representing a EnterpriseCustomerOperations operations. */ +export interface EnterpriseCustomerOperationsOperations { + /** Retrieves the properties of a Enterprise customer */ + get: ( + resourceGroupName: string, + customerResourceName: string, + options?: EnterpriseCustomerOperationsGetOptionalParams, + ) => Promise; + /** Creates a cacheNodes with the specified create parameters */ + createOrUpdate: ( + resourceGroupName: string, + customerResourceName: string, + resource: EnterprisePreviewResource, + options?: EnterpriseCustomerOperationsCreateOrUpdateOptionalParams, + ) => PollerLike, EnterprisePreviewResource>; + /** updates an existing enterpriseCustomers */ + update: ( + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options?: EnterpriseCustomerOperationsUpdateOptionalParams, + ) => Promise; + /** Deletes an existing customer Enterprise resource */ + delete: ( + resourceGroupName: string, + customerResourceName: string, + options?: EnterpriseCustomerOperationsDeleteOptionalParams, + ) => Promise; + /** Retrieves the properties of all ConnectedCache enterpriseCustomers */ + listByResourceGroup: ( + resourceGroupName: string, + options?: EnterpriseCustomerOperationsListByResourceGroupOptionalParams, + ) => PagedAsyncIterableIterator; + /** Retrieves the properties of all ConnectedCaches */ + listBySubscription: ( + options?: EnterpriseCustomerOperationsListBySubscriptionOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getEnterpriseCustomerOperations( + context: ConnectedCacheContext, + subscriptionId: string, +) { + return { + get: ( + resourceGroupName: string, + customerResourceName: string, + options?: EnterpriseCustomerOperationsGetOptionalParams, + ) => + enterpriseCustomerOperationsGet( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ), + createOrUpdate: ( + resourceGroupName: string, + customerResourceName: string, + resource: EnterprisePreviewResource, + options?: EnterpriseCustomerOperationsCreateOrUpdateOptionalParams, + ) => + enterpriseCustomerOperationsCreateOrUpdate( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + resource, + options, + ), + update: ( + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options?: EnterpriseCustomerOperationsUpdateOptionalParams, + ) => + enterpriseCustomerOperationsUpdate( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + properties, + options, + ), + delete: ( + resourceGroupName: string, + customerResourceName: string, + options?: EnterpriseCustomerOperationsDeleteOptionalParams, + ) => + enterpriseCustomerOperationsDelete( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ), + listByResourceGroup: ( + resourceGroupName: string, + options?: EnterpriseCustomerOperationsListByResourceGroupOptionalParams, + ) => + enterpriseCustomerOperationsListByResourceGroup( + context, + subscriptionId, + resourceGroupName, + options, + ), + listBySubscription: (options?: EnterpriseCustomerOperationsListBySubscriptionOptionalParams) => + enterpriseCustomerOperationsListBySubscription(context, subscriptionId, options), + }; +} + +export function getEnterpriseCustomerOperationsOperations( + context: ConnectedCacheContext, + subscriptionId: string, +): EnterpriseCustomerOperationsOperations { + return { + ...getEnterpriseCustomerOperations(context, subscriptionId), + }; +} diff --git a/sdk/connectedcache/arm-connectedcache/src/classic/enterpriseMccCacheNodesOperations/index.ts b/sdk/connectedcache/arm-connectedcache/src/classic/enterpriseMccCacheNodesOperations/index.ts new file mode 100644 index 000000000000..f148cf69edf9 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/classic/enterpriseMccCacheNodesOperations/index.ts @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheContext } from "../../api/connectedCacheContext.js"; +import { + enterpriseMccCacheNodesOperationsGet, + enterpriseMccCacheNodesOperationsCreateOrUpdate, + enterpriseMccCacheNodesOperationsUpdate, + enterpriseMccCacheNodesOperationsDelete, + enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource, + enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetails, +} from "../../api/enterpriseMccCacheNodesOperations/index.js"; +import { + EnterpriseMccCacheNodesOperationsGetOptionalParams, + EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams, + EnterpriseMccCacheNodesOperationsUpdateOptionalParams, + EnterpriseMccCacheNodesOperationsDeleteOptionalParams, + EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams, + EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams, +} from "../../api/options.js"; +import { + EnterpriseMccCacheNodeResource, + ConnectedCachePatchResource, + MccCacheNodeInstallDetails, +} from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +/** Interface representing a EnterpriseMccCacheNodesOperations operations. */ +export interface EnterpriseMccCacheNodesOperationsOperations { + /** This api gets ispCacheNode resource information */ + get: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: EnterpriseMccCacheNodesOperationsGetOptionalParams, + ) => Promise; + /** This api creates an ispCacheNode with the specified create parameters */ + createOrUpdate: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + resource: EnterpriseMccCacheNodeResource, + options?: EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams, + ) => PollerLike, EnterpriseMccCacheNodeResource>; + /** This api updates an existing ispCacheNode resource */ + update: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + properties: ConnectedCachePatchResource, + options?: EnterpriseMccCacheNodesOperationsUpdateOptionalParams, + ) => Promise; + /** This api deletes an existing ispCacheNode resource */ + delete: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: EnterpriseMccCacheNodesOperationsDeleteOptionalParams, + ) => PollerLike, void>; + /** This api retrieves information about all ispCacheNode resources under the given subscription and resource group */ + listByEnterpriseMccCustomerResource: ( + resourceGroupName: string, + customerResourceName: string, + options?: EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams, + ) => PagedAsyncIterableIterator; + /** This api gets secrets of the ispCacheNode resource install details */ + getCacheNodeInstallDetails: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams, + ) => Promise; +} + +export function getEnterpriseMccCacheNodesOperations( + context: ConnectedCacheContext, + subscriptionId: string, +) { + return { + get: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: EnterpriseMccCacheNodesOperationsGetOptionalParams, + ) => + enterpriseMccCacheNodesOperationsGet( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ), + createOrUpdate: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + resource: EnterpriseMccCacheNodeResource, + options?: EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams, + ) => + enterpriseMccCacheNodesOperationsCreateOrUpdate( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + resource, + options, + ), + update: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + properties: ConnectedCachePatchResource, + options?: EnterpriseMccCacheNodesOperationsUpdateOptionalParams, + ) => + enterpriseMccCacheNodesOperationsUpdate( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + properties, + options, + ), + delete: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: EnterpriseMccCacheNodesOperationsDeleteOptionalParams, + ) => + enterpriseMccCacheNodesOperationsDelete( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ), + listByEnterpriseMccCustomerResource: ( + resourceGroupName: string, + customerResourceName: string, + options?: EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams, + ) => + enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ), + getCacheNodeInstallDetails: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams, + ) => + enterpriseMccCacheNodesOperationsGetCacheNodeInstallDetails( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ), + }; +} + +export function getEnterpriseMccCacheNodesOperationsOperations( + context: ConnectedCacheContext, + subscriptionId: string, +): EnterpriseMccCacheNodesOperationsOperations { + return { + ...getEnterpriseMccCacheNodesOperations(context, subscriptionId), + }; +} diff --git a/sdk/connectedcache/arm-connectedcache/src/classic/enterpriseMccCustomers/index.ts b/sdk/connectedcache/arm-connectedcache/src/classic/enterpriseMccCustomers/index.ts new file mode 100644 index 000000000000..dca70f70e1d6 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/classic/enterpriseMccCustomers/index.ts @@ -0,0 +1,140 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheContext } from "../../api/connectedCacheContext.js"; +import { + enterpriseMccCustomersGet, + enterpriseMccCustomersCreateOrUpdate, + enterpriseMccCustomersUpdate, + enterpriseMccCustomersDelete, + enterpriseMccCustomersListByResourceGroup, + enterpriseMccCustomersListBySubscription, +} from "../../api/enterpriseMccCustomers/index.js"; +import { + EnterpriseMccCustomersGetOptionalParams, + EnterpriseMccCustomersCreateOrUpdateOptionalParams, + EnterpriseMccCustomersUpdateOptionalParams, + EnterpriseMccCustomersDeleteOptionalParams, + EnterpriseMccCustomersListByResourceGroupOptionalParams, + EnterpriseMccCustomersListBySubscriptionOptionalParams, +} from "../../api/options.js"; +import { ConnectedCachePatchResource, EnterpriseMccCustomerResource } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +/** Interface representing a EnterpriseMccCustomers operations. */ +export interface EnterpriseMccCustomersOperations { + /** Gets the enterprise mcc customer resource information using this get call */ + get: ( + resourceGroupName: string, + customerResourceName: string, + options?: EnterpriseMccCustomersGetOptionalParams, + ) => Promise; + /** This api creates an enterprise mcc customer with the specified create parameters */ + createOrUpdate: ( + resourceGroupName: string, + customerResourceName: string, + resource: EnterpriseMccCustomerResource, + options?: EnterpriseMccCustomersCreateOrUpdateOptionalParams, + ) => PollerLike, EnterpriseMccCustomerResource>; + /** This api updates an existing enterprise mcc customer resource */ + update: ( + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options?: EnterpriseMccCustomersUpdateOptionalParams, + ) => Promise; + /** This api deletes an existing enterprise mcc customer resource */ + delete: ( + resourceGroupName: string, + customerResourceName: string, + options?: EnterpriseMccCustomersDeleteOptionalParams, + ) => PollerLike, void>; + /** This api gets the information about all enterprise mcc customer resources under the given subscription and resource group */ + listByResourceGroup: ( + resourceGroupName: string, + options?: EnterpriseMccCustomersListByResourceGroupOptionalParams, + ) => PagedAsyncIterableIterator; + /** This api gets information about all enterpriseMccCustomer resources under the given subscription */ + listBySubscription: ( + options?: EnterpriseMccCustomersListBySubscriptionOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getEnterpriseMccCustomers(context: ConnectedCacheContext, subscriptionId: string) { + return { + get: ( + resourceGroupName: string, + customerResourceName: string, + options?: EnterpriseMccCustomersGetOptionalParams, + ) => + enterpriseMccCustomersGet( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ), + createOrUpdate: ( + resourceGroupName: string, + customerResourceName: string, + resource: EnterpriseMccCustomerResource, + options?: EnterpriseMccCustomersCreateOrUpdateOptionalParams, + ) => + enterpriseMccCustomersCreateOrUpdate( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + resource, + options, + ), + update: ( + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options?: EnterpriseMccCustomersUpdateOptionalParams, + ) => + enterpriseMccCustomersUpdate( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + properties, + options, + ), + delete: ( + resourceGroupName: string, + customerResourceName: string, + options?: EnterpriseMccCustomersDeleteOptionalParams, + ) => + enterpriseMccCustomersDelete( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ), + listByResourceGroup: ( + resourceGroupName: string, + options?: EnterpriseMccCustomersListByResourceGroupOptionalParams, + ) => + enterpriseMccCustomersListByResourceGroup( + context, + subscriptionId, + resourceGroupName, + options, + ), + listBySubscription: (options?: EnterpriseMccCustomersListBySubscriptionOptionalParams) => + enterpriseMccCustomersListBySubscription(context, subscriptionId, options), + }; +} + +export function getEnterpriseMccCustomersOperations( + context: ConnectedCacheContext, + subscriptionId: string, +): EnterpriseMccCustomersOperations { + return { + ...getEnterpriseMccCustomers(context, subscriptionId), + }; +} diff --git a/sdk/connectedcache/arm-connectedcache/src/classic/index.ts b/sdk/connectedcache/arm-connectedcache/src/classic/index.ts new file mode 100644 index 000000000000..3b57ed341145 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/classic/index.ts @@ -0,0 +1,10 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +export { CacheNodesOperationsOperations } from "./cacheNodesOperations/index.js"; +export { EnterpriseCustomerOperationsOperations } from "./enterpriseCustomerOperations/index.js"; +export { EnterpriseMccCacheNodesOperationsOperations } from "./enterpriseMccCacheNodesOperations/index.js"; +export { EnterpriseMccCustomersOperations } from "./enterpriseMccCustomers/index.js"; +export { IspCacheNodesOperationsOperations } from "./ispCacheNodesOperations/index.js"; +export { IspCustomersOperations } from "./ispCustomers/index.js"; +export { OperationsOperations } from "./operations/index.js"; diff --git a/sdk/connectedcache/arm-connectedcache/src/classic/ispCacheNodesOperations/index.ts b/sdk/connectedcache/arm-connectedcache/src/classic/ispCacheNodesOperations/index.ts new file mode 100644 index 000000000000..99cc2cb6742d --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/classic/ispCacheNodesOperations/index.ts @@ -0,0 +1,198 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheContext } from "../../api/connectedCacheContext.js"; +import { + ispCacheNodesOperationsGet, + ispCacheNodesOperationsCreateOrUpdate, + ispCacheNodesOperationsUpdate, + ispCacheNodesOperationsDelete, + ispCacheNodesOperationsListByIspCustomerResource, + ispCacheNodesOperationsGetBgpCidrs, + ispCacheNodesOperationsGetCacheNodeInstallDetails, +} from "../../api/ispCacheNodesOperations/index.js"; +import { + IspCacheNodesOperationsGetOptionalParams, + IspCacheNodesOperationsCreateOrUpdateOptionalParams, + IspCacheNodesOperationsUpdateOptionalParams, + IspCacheNodesOperationsDeleteOptionalParams, + IspCacheNodesOperationsListByIspCustomerResourceOptionalParams, + IspCacheNodesOperationsGetBgpCidrsOptionalParams, + IspCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams, +} from "../../api/options.js"; +import { + ConnectedCachePatchResource, + MccCacheNodeInstallDetails, + IspCacheNodeResource, + MccCacheNodeBgpCidrDetails, +} from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +/** Interface representing a IspCacheNodesOperations operations. */ +export interface IspCacheNodesOperationsOperations { + /** This api gets ispCacheNode resource information */ + get: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: IspCacheNodesOperationsGetOptionalParams, + ) => Promise; + /** This api creates an ispCacheNode with the specified create parameters */ + createOrUpdate: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + resource: IspCacheNodeResource, + options?: IspCacheNodesOperationsCreateOrUpdateOptionalParams, + ) => PollerLike, IspCacheNodeResource>; + /** This api updates an existing ispCacheNode resource */ + update: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + properties: ConnectedCachePatchResource, + options?: IspCacheNodesOperationsUpdateOptionalParams, + ) => Promise; + /** This api deletes an existing ispCacheNode resource */ + delete: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: IspCacheNodesOperationsDeleteOptionalParams, + ) => PollerLike, void>; + /** This api retrieves information about all ispCacheNode resources under the given subscription and resource group */ + listByIspCustomerResource: ( + resourceGroupName: string, + customerResourceName: string, + options?: IspCacheNodesOperationsListByIspCustomerResourceOptionalParams, + ) => PagedAsyncIterableIterator; + /** This api gets ispCacheNode resource information */ + getBgpCidrs: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: IspCacheNodesOperationsGetBgpCidrsOptionalParams, + ) => Promise; + /** This api gets secrets of the ispCacheNode resource install details */ + getCacheNodeInstallDetails: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: IspCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams, + ) => Promise; +} + +export function getIspCacheNodesOperations(context: ConnectedCacheContext, subscriptionId: string) { + return { + get: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: IspCacheNodesOperationsGetOptionalParams, + ) => + ispCacheNodesOperationsGet( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ), + createOrUpdate: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + resource: IspCacheNodeResource, + options?: IspCacheNodesOperationsCreateOrUpdateOptionalParams, + ) => + ispCacheNodesOperationsCreateOrUpdate( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + resource, + options, + ), + update: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + properties: ConnectedCachePatchResource, + options?: IspCacheNodesOperationsUpdateOptionalParams, + ) => + ispCacheNodesOperationsUpdate( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + properties, + options, + ), + delete: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: IspCacheNodesOperationsDeleteOptionalParams, + ) => + ispCacheNodesOperationsDelete( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ), + listByIspCustomerResource: ( + resourceGroupName: string, + customerResourceName: string, + options?: IspCacheNodesOperationsListByIspCustomerResourceOptionalParams, + ) => + ispCacheNodesOperationsListByIspCustomerResource( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + options, + ), + getBgpCidrs: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: IspCacheNodesOperationsGetBgpCidrsOptionalParams, + ) => + ispCacheNodesOperationsGetBgpCidrs( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ), + getCacheNodeInstallDetails: ( + resourceGroupName: string, + customerResourceName: string, + cacheNodeResourceName: string, + options?: IspCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams, + ) => + ispCacheNodesOperationsGetCacheNodeInstallDetails( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + cacheNodeResourceName, + options, + ), + }; +} + +export function getIspCacheNodesOperationsOperations( + context: ConnectedCacheContext, + subscriptionId: string, +): IspCacheNodesOperationsOperations { + return { + ...getIspCacheNodesOperations(context, subscriptionId), + }; +} diff --git a/sdk/connectedcache/arm-connectedcache/src/classic/ispCustomers/index.ts b/sdk/connectedcache/arm-connectedcache/src/classic/ispCustomers/index.ts new file mode 100644 index 000000000000..65943d9a8317 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/classic/ispCustomers/index.ts @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheContext } from "../../api/connectedCacheContext.js"; +import { + ispCustomersGet, + ispCustomersCreateOrUpdate, + ispCustomersUpdate, + ispCustomersDelete, + ispCustomersListByResourceGroup, + ispCustomersListBySubscription, +} from "../../api/ispCustomers/index.js"; +import { + IspCustomersGetOptionalParams, + IspCustomersCreateOrUpdateOptionalParams, + IspCustomersUpdateOptionalParams, + IspCustomersDeleteOptionalParams, + IspCustomersListByResourceGroupOptionalParams, + IspCustomersListBySubscriptionOptionalParams, +} from "../../api/options.js"; +import { ConnectedCachePatchResource, IspCustomerResource } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +/** Interface representing a IspCustomers operations. */ +export interface IspCustomersOperations { + /** Gets the ispCustomer resource information using this get call */ + get: ( + resourceGroupName: string, + customerResourceName: string, + options?: IspCustomersGetOptionalParams, + ) => Promise; + /** This api creates an ispCustomer with the specified create parameters */ + createOrUpdate: ( + resourceGroupName: string, + customerResourceName: string, + resource: IspCustomerResource, + options?: IspCustomersCreateOrUpdateOptionalParams, + ) => PollerLike, IspCustomerResource>; + /** This api updates an existing ispCustomer resource */ + update: ( + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options?: IspCustomersUpdateOptionalParams, + ) => Promise; + /** This api deletes an existing ispCustomer resource */ + delete: ( + resourceGroupName: string, + customerResourceName: string, + options?: IspCustomersDeleteOptionalParams, + ) => PollerLike, void>; + /** This api gets the information about all ispCustomer resources under the given subscription and resource group */ + listByResourceGroup: ( + resourceGroupName: string, + options?: IspCustomersListByResourceGroupOptionalParams, + ) => PagedAsyncIterableIterator; + /** This api gets information about all ispCustomer resources under the given subscription */ + listBySubscription: ( + options?: IspCustomersListBySubscriptionOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getIspCustomers(context: ConnectedCacheContext, subscriptionId: string) { + return { + get: ( + resourceGroupName: string, + customerResourceName: string, + options?: IspCustomersGetOptionalParams, + ) => ispCustomersGet(context, subscriptionId, resourceGroupName, customerResourceName, options), + createOrUpdate: ( + resourceGroupName: string, + customerResourceName: string, + resource: IspCustomerResource, + options?: IspCustomersCreateOrUpdateOptionalParams, + ) => + ispCustomersCreateOrUpdate( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + resource, + options, + ), + update: ( + resourceGroupName: string, + customerResourceName: string, + properties: ConnectedCachePatchResource, + options?: IspCustomersUpdateOptionalParams, + ) => + ispCustomersUpdate( + context, + subscriptionId, + resourceGroupName, + customerResourceName, + properties, + options, + ), + delete: ( + resourceGroupName: string, + customerResourceName: string, + options?: IspCustomersDeleteOptionalParams, + ) => + ispCustomersDelete(context, subscriptionId, resourceGroupName, customerResourceName, options), + listByResourceGroup: ( + resourceGroupName: string, + options?: IspCustomersListByResourceGroupOptionalParams, + ) => ispCustomersListByResourceGroup(context, subscriptionId, resourceGroupName, options), + listBySubscription: (options?: IspCustomersListBySubscriptionOptionalParams) => + ispCustomersListBySubscription(context, subscriptionId, options), + }; +} + +export function getIspCustomersOperations( + context: ConnectedCacheContext, + subscriptionId: string, +): IspCustomersOperations { + return { + ...getIspCustomers(context, subscriptionId), + }; +} diff --git a/sdk/connectedcache/arm-connectedcache/src/classic/operations/index.ts b/sdk/connectedcache/arm-connectedcache/src/classic/operations/index.ts new file mode 100644 index 000000000000..386932db432f --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/classic/operations/index.ts @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheContext } from "../../api/connectedCacheContext.js"; +import { operationsList } from "../../api/operations/index.js"; +import { OperationsListOptionalParams } from "../../api/options.js"; +import { Operation } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; + +/** Interface representing a Operations operations. */ +export interface OperationsOperations { + /** List the operations for the provider */ + list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator; +} + +export function getOperations(context: ConnectedCacheContext) { + return { + list: (options?: OperationsListOptionalParams) => operationsList(context, options), + }; +} + +export function getOperationsOperations(context: ConnectedCacheContext): OperationsOperations { + return { + ...getOperations(context), + }; +} diff --git a/sdk/connectedcache/arm-connectedcache/src/connectedCacheClient.ts b/sdk/connectedcache/arm-connectedcache/src/connectedCacheClient.ts new file mode 100644 index 000000000000..e83c6f97a7b2 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/connectedCacheClient.ts @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { getOperationsOperations, OperationsOperations } from "./classic/operations/index.js"; +import { + getEnterpriseCustomerOperationsOperations, + EnterpriseCustomerOperationsOperations, +} from "./classic/enterpriseCustomerOperations/index.js"; +import { + getCacheNodesOperationsOperations, + CacheNodesOperationsOperations, +} from "./classic/cacheNodesOperations/index.js"; +import { getIspCustomersOperations, IspCustomersOperations } from "./classic/ispCustomers/index.js"; +import { + getIspCacheNodesOperationsOperations, + IspCacheNodesOperationsOperations, +} from "./classic/ispCacheNodesOperations/index.js"; +import { + getEnterpriseMccCustomersOperations, + EnterpriseMccCustomersOperations, +} from "./classic/enterpriseMccCustomers/index.js"; +import { + getEnterpriseMccCacheNodesOperationsOperations, + EnterpriseMccCacheNodesOperationsOperations, +} from "./classic/enterpriseMccCacheNodesOperations/index.js"; +import { + createConnectedCache, + ConnectedCacheContext, + ConnectedCacheClientOptionalParams, +} from "./api/index.js"; +import { Pipeline } from "@azure/core-rest-pipeline"; +import { TokenCredential } from "@azure/core-auth"; + +export { ConnectedCacheClientOptionalParams } from "./api/connectedCacheContext.js"; + +export class ConnectedCacheClient { + private _client: ConnectedCacheContext; + /** The pipeline used by this client to make requests */ + public readonly pipeline: Pipeline; + + /** Microsoft Connected Cache Rest Api version 2023-05-01-preview */ + constructor( + credential: TokenCredential, + subscriptionId: string, + options: ConnectedCacheClientOptionalParams = {}, + ) { + const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; + const userAgentPrefix = prefixFromOptions + ? `${prefixFromOptions} azsdk-js-client` + : `azsdk-js-client`; + this._client = createConnectedCache(credential, { + ...options, + userAgentOptions: { userAgentPrefix }, + }); + this.pipeline = this._client.pipeline; + this.operations = getOperationsOperations(this._client); + this.enterpriseCustomerOperations = getEnterpriseCustomerOperationsOperations( + this._client, + subscriptionId, + ); + this.cacheNodesOperations = getCacheNodesOperationsOperations(this._client, subscriptionId); + this.ispCustomers = getIspCustomersOperations(this._client, subscriptionId); + this.ispCacheNodesOperations = getIspCacheNodesOperationsOperations( + this._client, + subscriptionId, + ); + this.enterpriseMccCustomers = getEnterpriseMccCustomersOperations(this._client, subscriptionId); + this.enterpriseMccCacheNodesOperations = getEnterpriseMccCacheNodesOperationsOperations( + this._client, + subscriptionId, + ); + } + + /** The operation groups for Operations */ + public readonly operations: OperationsOperations; + /** The operation groups for EnterpriseCustomerOperations */ + public readonly enterpriseCustomerOperations: EnterpriseCustomerOperationsOperations; + /** The operation groups for CacheNodesOperations */ + public readonly cacheNodesOperations: CacheNodesOperationsOperations; + /** The operation groups for IspCustomers */ + public readonly ispCustomers: IspCustomersOperations; + /** The operation groups for IspCacheNodesOperations */ + public readonly ispCacheNodesOperations: IspCacheNodesOperationsOperations; + /** The operation groups for EnterpriseMccCustomers */ + public readonly enterpriseMccCustomers: EnterpriseMccCustomersOperations; + /** The operation groups for EnterpriseMccCacheNodesOperations */ + public readonly enterpriseMccCacheNodesOperations: EnterpriseMccCacheNodesOperationsOperations; +} diff --git a/sdk/connectedcache/arm-connectedcache/src/helpers/serializerHelpers.ts b/sdk/connectedcache/arm-connectedcache/src/helpers/serializerHelpers.ts new file mode 100644 index 000000000000..7518a16c2ee9 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/helpers/serializerHelpers.ts @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +export function serializeRecord( + item: Record, +): Record; +export function serializeRecord( + item: Record, + serializer: (item: T) => R, +): Record; +export function serializeRecord( + item: Record, + serializer?: (item: T) => R, +): Record { + return Object.keys(item).reduce( + (acc, key) => { + if (isSupportedRecordType(item[key])) { + acc[key] = item[key] as any; + } else if (serializer) { + const value = item[key]; + if (value !== undefined) { + acc[key] = serializer(value); + } + } else { + console.warn(`Don't know how to serialize ${item[key]}`); + acc[key] = item[key] as any; + } + return acc; + }, + {} as Record, + ); +} + +function isSupportedRecordType(t: any) { + return ["number", "string", "boolean", "null"].includes(typeof t) || t instanceof Date; +} diff --git a/sdk/connectedcache/arm-connectedcache/src/index.ts b/sdk/connectedcache/arm-connectedcache/src/index.ts new file mode 100644 index 000000000000..b62ace21ec12 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/index.ts @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + PageSettings, + ContinuablePage, + PagedAsyncIterableIterator, +} from "./static-helpers/pagingHelpers.js"; + +export { ConnectedCacheClient } from "./connectedCacheClient.js"; +export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js"; +export { + EnterpriseMccCacheNodeResource, + CacheNodeProperty, + KnownProvisioningState, + ProvisioningState, + CacheNodeEntity, + KnownBgpReviewStateEnum, + BgpReviewStateEnum, + KnownConfigurationState, + ConfigurationState, + KnownAutoUpdateRingType, + AutoUpdateRingType, + AdditionalCacheNodeProperties, + CacheNodeDriveConfiguration, + BgpConfiguration, + ProxyUrlConfiguration, + KnownProxyRequired, + ProxyRequired, + KnownOsType, + OsType, + KnownCycleType, + CycleType, + ErrorDetail, + ErrorAdditionalInfo, + TrackedResource, + Resource, + SystemData, + KnownCreatedByType, + CreatedByType, + ConnectedCachePatchResource, + MccCacheNodeInstallDetails, + CacheNodeInstallProperties, + EnterpriseMccCustomerResource, + CustomerProperty, + CustomerEntity, + AdditionalCustomerProperties, + KnownCustomerTransitState, + CustomerTransitState, + IspCacheNodeResource, + MccCacheNodeBgpCidrDetails, + BgpCidrsConfiguration, + IspCustomerResource, + CacheNodePreviewResource, + CacheNodeOldResponse, + EnterprisePreviewResource, + Operation, + OperationDisplay, + KnownOrigin, + Origin, + KnownActionType, + ActionType, + KnownVersions, +} from "./models/index.js"; +export { + ConnectedCacheClientOptionalParams, + OperationsListOptionalParams, + EnterpriseCustomerOperationsGetOptionalParams, + EnterpriseCustomerOperationsCreateOrUpdateOptionalParams, + EnterpriseCustomerOperationsUpdateOptionalParams, + EnterpriseCustomerOperationsDeleteOptionalParams, + EnterpriseCustomerOperationsListByResourceGroupOptionalParams, + EnterpriseCustomerOperationsListBySubscriptionOptionalParams, + CacheNodesOperationsGetOptionalParams, + CacheNodesOperationsCreateorUpdateOptionalParams, + CacheNodesOperationsDeleteOptionalParams, + CacheNodesOperationsUpdateOptionalParams, + CacheNodesOperationsListByResourceGroupOptionalParams, + CacheNodesOperationsListBySubscriptionOptionalParams, + IspCustomersGetOptionalParams, + IspCustomersCreateOrUpdateOptionalParams, + IspCustomersUpdateOptionalParams, + IspCustomersDeleteOptionalParams, + IspCustomersListByResourceGroupOptionalParams, + IspCustomersListBySubscriptionOptionalParams, + IspCacheNodesOperationsGetOptionalParams, + IspCacheNodesOperationsCreateOrUpdateOptionalParams, + IspCacheNodesOperationsUpdateOptionalParams, + IspCacheNodesOperationsDeleteOptionalParams, + IspCacheNodesOperationsListByIspCustomerResourceOptionalParams, + IspCacheNodesOperationsGetBgpCidrsOptionalParams, + IspCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams, + EnterpriseMccCustomersGetOptionalParams, + EnterpriseMccCustomersCreateOrUpdateOptionalParams, + EnterpriseMccCustomersUpdateOptionalParams, + EnterpriseMccCustomersDeleteOptionalParams, + EnterpriseMccCustomersListByResourceGroupOptionalParams, + EnterpriseMccCustomersListBySubscriptionOptionalParams, + EnterpriseMccCacheNodesOperationsGetOptionalParams, + EnterpriseMccCacheNodesOperationsCreateOrUpdateOptionalParams, + EnterpriseMccCacheNodesOperationsUpdateOptionalParams, + EnterpriseMccCacheNodesOperationsDeleteOptionalParams, + EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceOptionalParams, + EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsOptionalParams, +} from "./api/index.js"; +export { + CacheNodesOperationsOperations, + EnterpriseCustomerOperationsOperations, + EnterpriseMccCacheNodesOperationsOperations, + EnterpriseMccCustomersOperations, + IspCacheNodesOperationsOperations, + IspCustomersOperations, + OperationsOperations, +} from "./classic/index.js"; +export { PageSettings, ContinuablePage, PagedAsyncIterableIterator }; diff --git a/sdk/connectedcache/arm-connectedcache/src/logger.ts b/sdk/connectedcache/arm-connectedcache/src/logger.ts new file mode 100644 index 000000000000..dca00da0b628 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/logger.ts @@ -0,0 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { createClientLogger } from "@azure/logger"; +export const logger = createClientLogger("arm-connectedcache"); diff --git a/sdk/connectedcache/arm-connectedcache/src/models/index.ts b/sdk/connectedcache/arm-connectedcache/src/models/index.ts new file mode 100644 index 000000000000..33010303a2ad --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/models/index.ts @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +export { + EnterpriseMccCacheNodeResource, + CacheNodeProperty, + KnownProvisioningState, + ProvisioningState, + CacheNodeEntity, + KnownBgpReviewStateEnum, + BgpReviewStateEnum, + KnownConfigurationState, + ConfigurationState, + KnownAutoUpdateRingType, + AutoUpdateRingType, + AdditionalCacheNodeProperties, + CacheNodeDriveConfiguration, + BgpConfiguration, + ProxyUrlConfiguration, + KnownProxyRequired, + ProxyRequired, + KnownOsType, + OsType, + KnownCycleType, + CycleType, + ErrorDetail, + ErrorAdditionalInfo, + TrackedResource, + Resource, + SystemData, + KnownCreatedByType, + CreatedByType, + ConnectedCachePatchResource, + MccCacheNodeInstallDetails, + CacheNodeInstallProperties, + EnterpriseMccCustomerResource, + CustomerProperty, + CustomerEntity, + AdditionalCustomerProperties, + KnownCustomerTransitState, + CustomerTransitState, + IspCacheNodeResource, + MccCacheNodeBgpCidrDetails, + BgpCidrsConfiguration, + IspCustomerResource, + CacheNodePreviewResource, + CacheNodeOldResponse, + EnterprisePreviewResource, + Operation, + OperationDisplay, + KnownOrigin, + Origin, + KnownActionType, + ActionType, + KnownVersions, +} from "./models.js"; diff --git a/sdk/connectedcache/arm-connectedcache/src/models/models.ts b/sdk/connectedcache/arm-connectedcache/src/models/models.ts new file mode 100644 index 000000000000..fe5b88b1cd94 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/models/models.ts @@ -0,0 +1,1735 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** Represents the high level Nodes needed to provision cache node resources */ +export interface EnterpriseMccCacheNodeResource extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: CacheNodeProperty; +} + +export function enterpriseMccCacheNodeResourceSerializer( + item: EnterpriseMccCacheNodeResource, +): any { + return { + tags: item["tags"], + location: item["location"], + properties: !item["properties"] + ? item["properties"] + : cacheNodePropertySerializer(item["properties"]), + }; +} + +export function enterpriseMccCacheNodeResourceDeserializer( + item: any, +): EnterpriseMccCacheNodeResource { + return { + tags: item["tags"], + location: item["location"], + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : cacheNodePropertyDeserializer(item["properties"]), + }; +} + +/** Model representing an Mcc cache node connectedCache resource */ +export interface CacheNodeProperty { + /** The provisioned state of the resource */ + readonly provisioningState?: ProvisioningState; + /** Mcc cache node resource (cache node entity). */ + cacheNode?: CacheNodeEntity; + /** Mcc cache node resource additional properties. */ + additionalCacheNodeProperties?: AdditionalCacheNodeProperties; + /** Mcc response status code. */ + statusCode?: string; + /** Mcc response status text as string for retrieving status details. */ + statusText?: string; + /** Mcc response status details for retrieving response inner details. */ + statusDetails?: string; + /** HTTP error status code. */ + readonly status?: string; + /** Mcc response error details. */ + error?: ErrorDetail; +} + +export function cacheNodePropertySerializer(item: CacheNodeProperty): any { + return { + cacheNode: !item["cacheNode"] + ? item["cacheNode"] + : cacheNodeEntitySerializer(item["cacheNode"]), + additionalCacheNodeProperties: !item["additionalCacheNodeProperties"] + ? item["additionalCacheNodeProperties"] + : additionalCacheNodePropertiesSerializer(item["additionalCacheNodeProperties"]), + statusCode: item["statusCode"], + statusText: item["statusText"], + statusDetails: item["statusDetails"], + error: !item["error"] ? item["error"] : errorDetailSerializer(item["error"]), + }; +} + +export function cacheNodePropertyDeserializer(item: any): CacheNodeProperty { + return { + provisioningState: item["provisioningState"], + cacheNode: !item["cacheNode"] + ? item["cacheNode"] + : cacheNodeEntityDeserializer(item["cacheNode"]), + additionalCacheNodeProperties: !item["additionalCacheNodeProperties"] + ? item["additionalCacheNodeProperties"] + : additionalCacheNodePropertiesDeserializer(item["additionalCacheNodeProperties"]), + statusCode: item["statusCode"], + statusText: item["statusText"], + statusDetails: item["statusDetails"], + status: item["status"], + error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]), + }; +} + +/** provisioning state of the resource */ +export enum KnownProvisioningState { + /** Resource has been created. */ + Succeeded = "Succeeded", + /** Resource creation failed. */ + Failed = "Failed", + /** Resource creation was canceled. */ + Canceled = "Canceled", + /** unknown state of the provisioning state */ + Unknown = "Unknown", + /** Accepted state of the provisioning state during the Async Operations */ + Accepted = "Accepted", + /** Upgrading state of the provisioning state */ + Upgrading = "Upgrading", + /** Deleting state of the provisioning state */ + Deleting = "Deleting", +} + +/** + * provisioning state of the resource \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded**: Resource has been created. \ + * **Failed**: Resource creation failed. \ + * **Canceled**: Resource creation was canceled. \ + * **Unknown**: unknown state of the provisioning state \ + * **Accepted**: Accepted state of the provisioning state during the Async Operations \ + * **Upgrading**: Upgrading state of the provisioning state \ + * **Deleting**: Deleting state of the provisioning state + */ +export type ProvisioningState = string; + +/** Model representing Cache Node for ConnectedCache resource */ +export interface CacheNodeEntity { + /** Cache node resource Azure fully qualified resource Id. */ + fullyQualifiedResourceId?: string; + /** Cache node resource customer resource GUID Id. */ + readonly customerId?: string; + /** Cache node resource customer resource name. */ + customerName?: string; + /** Cache node resource Ip address. */ + ipAddress?: string; + /** Cache node resource customer index as string. */ + customerIndex?: string; + /** Cache node resource identifier of the cache node */ + cacheNodeId?: string; + /** Cache node resource name. */ + cacheNodeName?: string; + /** Cache node resource customer resource Asn (autonomous system number) */ + customerAsn?: number; + /** Cache node resource flag for indicating if cache node is enabled. */ + isEnabled?: boolean; + /** Cache node resource maximum allowed egress in Mbps. */ + maxAllowableEgressInMbps?: number; + /** Cache node resource maximum allowed probability of egress. */ + readonly maxAllowableProbability?: number; + /** Cache node resource Azure XCid. */ + readonly xCid?: string; + /** Cache node resource flag for determining if managed by enterprise as boolean. */ + isEnterpriseManaged?: boolean; + /** Cache node resource create async operation Id. */ + readonly createAsyncOperationId?: string; + /** Cache node resource deletion async operation Id. */ + readonly deleteAsyncOperationId?: string; + /** Cache node resource customer resource client tenant Id of subscription. */ + readonly clientTenantId?: string; + /** Cache node resource category. */ + readonly category?: string; + /** Cache node resource release version. */ + readonly releaseVersion?: number; + /** Cache node resource last sync timestamp. */ + readonly lastSyncWithAzureTimestamp?: Date; + /** Cache node resource last backend updated timestamp. */ + readonly lastUpdatedTimestamp?: Date; + /** Cache node resource attempts to sync with Azure. */ + readonly synchWithAzureAttemptsCount?: number; + /** Cache node resource container configuration details. */ + readonly containerConfigurations?: string; + /** Cache node resource comma separated values of Cidrs. */ + cidrCsv?: string[]; + /** Cache node resource last Cidr Csv update timestamp */ + readonly cidrCsvLastUpdateTime?: Date; + /** Cache node resource last Bgp Cidr Csv update timestamp */ + readonly bgpCidrCsvLastUpdateTime?: Date; + /** Cache node resource last Bgp report timestamp. */ + readonly bgpLastReportedTime?: Date; + /** Cache node resource Bgp review state string text in detail. */ + readonly bgpReviewStateText?: string; + /** Cache node resource Bgp review state string text. */ + readonly bgpReviewState?: BgpReviewStateEnum; + /** Cache node resource Bgp review feedback text. */ + readonly bgpReviewFeedback?: string; + /** Cache node resource Bgp update count. */ + readonly bgpNumberOfTimesUpdated?: number; + /** Cache node resource Bgp record count. */ + readonly bgpNumberOfRecords?: number; + /** Cache node resource Bgp block count. */ + readonly bgpCidrBlocksCount?: number; + /** Cache node resource total addressable space defined by Bgp and Cidr Csv blocks. */ + readonly bgpAddressSpace?: number; + /** Cache node resource flag for determining if customer will be migrated. */ + shouldMigrate?: boolean; + /** Cache node resource bytes truncated from Bgp output file. */ + readonly bgpFileBytesTruncated?: number; + /** Cache node resource current Cidr range precedence selection type. */ + cidrSelectionType?: number; + /** Cache node resource flag for indicating the cache node resource is frozen (not selectable, not editable in UI). */ + readonly isFrozen?: boolean; + /** Cache node resource review process state as integer */ + readonly reviewState?: number; + /** Cache node resource review state text. */ + readonly reviewStateText?: string; + /** Cache node resource review feedback text. */ + readonly reviewFeedback?: string; + /** Cache node resource configuration state. */ + readonly configurationState?: ConfigurationState; + /** Cache node resource configuration state text. */ + readonly configurationStateText?: string; + /** Cache node resource total addressable space defined by the Cidr Csv block. */ + readonly addressSpace?: number; + /** Cache node resource Mcc container deployment worker connection count. */ + readonly workerConnections?: number; + /** Cache node resource last updated Mcc container deployment worker connection count timestamp. */ + readonly workerConnectionsLastUpdatedDateTime?: Date; + /** Cache node resource Mcc container configuration details re-sync trigger. */ + readonly containerResyncTrigger?: number; + /** Cache node resource Mcc Container Id Uri. */ + readonly imageUri?: string; + /** FQDN(fully qualified domain name) value of the mcc cache node */ + fullyQualifiedDomainName?: string; + /** Auto Update Ring Type which is slow or fast etc. */ + autoUpdateRingType?: AutoUpdateRingType; + /** Customer requested week of month for mcc install of auto update cycle */ + autoUpdateRequestedWeek?: number; + /** Customer requested day of week for mcc install of auto update cycle */ + autoUpdateRequestedDay?: number; + /** Customer requested time of the day for mcc install of auto update cycle, should be hh:mm */ + autoUpdateRequestedTime?: string; +} + +export function cacheNodeEntitySerializer(item: CacheNodeEntity): any { + return { + fullyQualifiedResourceId: item["fullyQualifiedResourceId"], + customerName: item["customerName"], + ipAddress: item["ipAddress"], + customerIndex: item["customerIndex"], + cacheNodeId: item["cacheNodeId"], + cacheNodeName: item["cacheNodeName"], + customerAsn: item["customerAsn"], + isEnabled: item["isEnabled"], + maxAllowableEgressInMbps: item["maxAllowableEgressInMbps"], + isEnterpriseManaged: item["isEnterpriseManaged"], + cidrCsv: !item["cidrCsv"] + ? item["cidrCsv"] + : item["cidrCsv"].map((p: any) => { + return p; + }), + shouldMigrate: item["shouldMigrate"], + cidrSelectionType: item["cidrSelectionType"], + fullyQualifiedDomainName: item["fullyQualifiedDomainName"], + autoUpdateRingType: item["autoUpdateRingType"], + autoUpdateRequestedWeek: item["autoUpdateRequestedWeek"], + autoUpdateRequestedDay: item["autoUpdateRequestedDay"], + autoUpdateRequestedTime: item["autoUpdateRequestedTime"], + }; +} + +export function cacheNodeEntityDeserializer(item: any): CacheNodeEntity { + return { + fullyQualifiedResourceId: item["fullyQualifiedResourceId"], + customerId: item["customerId"], + customerName: item["customerName"], + ipAddress: item["ipAddress"], + customerIndex: item["customerIndex"], + cacheNodeId: item["cacheNodeId"], + cacheNodeName: item["cacheNodeName"], + customerAsn: item["customerAsn"], + isEnabled: item["isEnabled"], + maxAllowableEgressInMbps: item["maxAllowableEgressInMbps"], + maxAllowableProbability: item["maxAllowableProbability"], + xCid: item["xCid"], + isEnterpriseManaged: item["isEnterpriseManaged"], + createAsyncOperationId: item["createAsyncOperationId"], + deleteAsyncOperationId: item["deleteAsyncOperationId"], + clientTenantId: item["clientTenantId"], + category: item["category"], + releaseVersion: item["releaseVersion"], + lastSyncWithAzureTimestamp: !item["lastSyncWithAzureTimestamp"] + ? item["lastSyncWithAzureTimestamp"] + : new Date(item["lastSyncWithAzureTimestamp"]), + lastUpdatedTimestamp: !item["lastUpdatedTimestamp"] + ? item["lastUpdatedTimestamp"] + : new Date(item["lastUpdatedTimestamp"]), + synchWithAzureAttemptsCount: item["synchWithAzureAttemptsCount"], + containerConfigurations: item["containerConfigurations"], + cidrCsv: !item["cidrCsv"] + ? item["cidrCsv"] + : item["cidrCsv"].map((p: any) => { + return p; + }), + cidrCsvLastUpdateTime: !item["cidrCsvLastUpdateTime"] + ? item["cidrCsvLastUpdateTime"] + : new Date(item["cidrCsvLastUpdateTime"]), + bgpCidrCsvLastUpdateTime: !item["bgpCidrCsvLastUpdateTime"] + ? item["bgpCidrCsvLastUpdateTime"] + : new Date(item["bgpCidrCsvLastUpdateTime"]), + bgpLastReportedTime: !item["bgpLastReportedTime"] + ? item["bgpLastReportedTime"] + : new Date(item["bgpLastReportedTime"]), + bgpReviewStateText: item["bgpReviewStateText"], + bgpReviewState: item["bgpReviewState"], + bgpReviewFeedback: item["bgpReviewFeedback"], + bgpNumberOfTimesUpdated: item["bgpNumberOfTimesUpdated"], + bgpNumberOfRecords: item["bgpNumberOfRecords"], + bgpCidrBlocksCount: item["bgpCidrBlocksCount"], + bgpAddressSpace: item["bgpAddressSpace"], + shouldMigrate: item["shouldMigrate"], + bgpFileBytesTruncated: item["bgpFileBytesTruncated"], + cidrSelectionType: item["cidrSelectionType"], + isFrozen: item["isFrozen"], + reviewState: item["reviewState"], + reviewStateText: item["reviewStateText"], + reviewFeedback: item["reviewFeedback"], + configurationState: item["configurationState"], + configurationStateText: item["configurationStateText"], + addressSpace: item["addressSpace"], + workerConnections: item["workerConnections"], + workerConnectionsLastUpdatedDateTime: !item["workerConnectionsLastUpdatedDateTime"] + ? item["workerConnectionsLastUpdatedDateTime"] + : new Date(item["workerConnectionsLastUpdatedDateTime"]), + containerResyncTrigger: item["containerResyncTrigger"], + imageUri: item["imageUri"], + fullyQualifiedDomainName: item["fullyQualifiedDomainName"], + autoUpdateRingType: item["autoUpdateRingType"], + autoUpdateRequestedWeek: item["autoUpdateRequestedWeek"], + autoUpdateRequestedDay: item["autoUpdateRequestedDay"], + autoUpdateRequestedTime: item["autoUpdateRequestedTime"], + }; +} + +/** Cache node resource Bgp review state as integer */ +export enum KnownBgpReviewStateEnum { + /** bgp not configured */ + NotConfigured = "NotConfigured", + /** bgp is in review state */ + InReview = "InReview", + /** bgp is in Approved state */ + Approved = "Approved", + /** bgp is setup need an attention for more troubleshoot */ + AttentionRequired = "AttentionRequired", +} + +/** + * Cache node resource Bgp review state as integer \ + * {@link KnownBgpReviewStateEnum} can be used interchangeably with BgpReviewStateEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotConfigured**: bgp not configured \ + * **InReview**: bgp is in review state \ + * **Approved**: bgp is in Approved state \ + * **AttentionRequired**: bgp is setup need an attention for more troubleshoot + */ +export type BgpReviewStateEnum = string; + +/** Cache node configuration setup state */ +export enum KnownConfigurationState { + /** connected cache setup configured */ + Configured = "Configured", + /** connected cache setup not configured */ + NotConfigured_Ip = "NotConfigured_Ip", +} + +/** + * Cache node configuration setup state \ + * {@link KnownConfigurationState} can be used interchangeably with ConfigurationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Configured**: connected cache setup configured \ + * **NotConfigured_Ip**: connected cache setup not configured + */ +export type ConfigurationState = string; + +/** Auto update Ring type */ +export enum KnownAutoUpdateRingType { + /** customer selection of preview update install mcc on their physical vm */ + Preview = "Preview", + /** customer selection of slow update to install mcc on their physical vm */ + Slow = "Slow", + /** customer selection of fast / auto update to install mcc on their physical vm */ + Fast = "Fast", +} + +/** + * Auto update Ring type \ + * {@link KnownautoUpdateRingType} can be used interchangeably with autoUpdateRingType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Preview**: customer selection of preview update install mcc on their physical vm \ + * **Slow**: customer selection of slow update to install mcc on their physical vm \ + * **Fast**: customer selection of fast \/ auto update to install mcc on their physical vm + */ +export type AutoUpdateRingType = string; + +/** Model representing cache node for connected cache resource */ +export interface AdditionalCacheNodeProperties { + /** issues list to return the issues as part of the additional cache node properties */ + cacheNodePropertiesDetailsIssuesList?: string[]; + /** Cache node resource aggregated status details. */ + readonly aggregatedStatusDetails?: string; + /** Cache node resource aggregated status text. */ + readonly aggregatedStatusText?: string; + /** Cache node resource aggregated status code. */ + readonly aggregatedStatusCode?: number; + /** Cache node resource Mcc product version. */ + readonly productVersion?: string; + /** Cache node resource flag indicating if cache node has been physically installed or provisioned on their physical lab. */ + readonly isProvisioned?: boolean; + /** Cache node resource detailed state text. */ + readonly cacheNodeStateDetailedText?: string; + /** Cache node resource short state text. */ + readonly cacheNodeStateShortText?: string; + /** Cache node resource state as integer. */ + readonly cacheNodeState?: number; + /** Cache node resource drive configurations. */ + driveConfiguration?: CacheNodeDriveConfiguration[]; + /** Cache node resource Bgp configuration. */ + bgpConfiguration?: BgpConfiguration; + /** proxyUrl configuration of the cache node */ + proxyUrlConfiguration?: ProxyUrlConfiguration; + /** Cache node resource Mcc proxy Url */ + proxyUrl?: string; + /** Cache node resource requires a proxy */ + isProxyRequired?: ProxyRequired; + /** Operating system of the cache node */ + osType?: OsType; + /** Update Cycle Type */ + updateCycleType?: CycleType; + /** Auto update or fast update version */ + autoUpdateVersion?: string; + /** Update related information details */ + updateInfoDetails?: string; + /** customer requested date time for mcc install of update cycle */ + updateRequestedDateTime?: Date; + /** Auto update version that is the Next available version to update on mcc cache node */ + readonly autoUpdateNextAvailableVersion?: string; + /** Auto update last applied date time of mcc install */ + readonly autoUpdateNextAvailableDateTime?: Date; + /** Auto update version that is the applied to update on mcc cache node */ + readonly autoUpdateAppliedVersion?: string; + /** Auto Update status details from the backend after applying the new version details */ + readonly autoUpdateLastAppliedDetails?: string; + /** Last applied auto update state for mcc install of auto update cycle */ + readonly autoUpdateLastAppliedState?: string; + /** Auto update last applied date time of mcc install */ + readonly autoUpdateLastAppliedDateTime?: Date; + /** Auto update last triggered date time of mcc install */ + readonly autoUpdateLastTriggeredDateTime?: Date; + /** Optional property #1 of Mcc response object */ + optionalProperty1?: string; + /** Optional property #2 of Mcc response object */ + optionalProperty2?: string; + /** Optional property #3 of Mcc response object */ + optionalProperty3?: string; + /** Optional property #4 of Mcc response object */ + optionalProperty4?: string; + /** Optional property #5 of Mcc response object */ + optionalProperty5?: string; +} + +export function additionalCacheNodePropertiesSerializer(item: AdditionalCacheNodeProperties): any { + return { + cacheNodePropertiesDetailsIssuesList: !item["cacheNodePropertiesDetailsIssuesList"] + ? item["cacheNodePropertiesDetailsIssuesList"] + : item["cacheNodePropertiesDetailsIssuesList"].map((p: any) => { + return p; + }), + driveConfiguration: !item["driveConfiguration"] + ? item["driveConfiguration"] + : cacheNodeDriveConfigurationArraySerializer(item["driveConfiguration"]), + bgpConfiguration: !item["bgpConfiguration"] + ? item["bgpConfiguration"] + : bgpConfigurationSerializer(item["bgpConfiguration"]), + proxyUrlConfiguration: !item["proxyUrlConfiguration"] + ? item["proxyUrlConfiguration"] + : proxyUrlConfigurationSerializer(item["proxyUrlConfiguration"]), + proxyUrl: item["proxyUrl"], + isProxyRequired: item["isProxyRequired"], + osType: item["osType"], + updateCycleType: item["updateCycleType"], + autoUpdateVersion: item["autoUpdateVersion"], + updateInfoDetails: item["updateInfoDetails"], + updateRequestedDateTime: item["updateRequestedDateTime"]?.toISOString(), + optionalProperty1: item["optionalProperty1"], + optionalProperty2: item["optionalProperty2"], + optionalProperty3: item["optionalProperty3"], + optionalProperty4: item["optionalProperty4"], + optionalProperty5: item["optionalProperty5"], + }; +} + +export function additionalCacheNodePropertiesDeserializer( + item: any, +): AdditionalCacheNodeProperties { + return { + cacheNodePropertiesDetailsIssuesList: !item["cacheNodePropertiesDetailsIssuesList"] + ? item["cacheNodePropertiesDetailsIssuesList"] + : item["cacheNodePropertiesDetailsIssuesList"].map((p: any) => { + return p; + }), + aggregatedStatusDetails: item["aggregatedStatusDetails"], + aggregatedStatusText: item["aggregatedStatusText"], + aggregatedStatusCode: item["aggregatedStatusCode"], + productVersion: item["productVersion"], + isProvisioned: item["isProvisioned"], + cacheNodeStateDetailedText: item["cacheNodeStateDetailedText"], + cacheNodeStateShortText: item["cacheNodeStateShortText"], + cacheNodeState: item["cacheNodeState"], + driveConfiguration: !item["driveConfiguration"] + ? item["driveConfiguration"] + : cacheNodeDriveConfigurationArrayDeserializer(item["driveConfiguration"]), + bgpConfiguration: !item["bgpConfiguration"] + ? item["bgpConfiguration"] + : bgpConfigurationDeserializer(item["bgpConfiguration"]), + proxyUrlConfiguration: !item["proxyUrlConfiguration"] + ? item["proxyUrlConfiguration"] + : proxyUrlConfigurationDeserializer(item["proxyUrlConfiguration"]), + proxyUrl: item["proxyUrl"], + isProxyRequired: item["isProxyRequired"], + osType: item["osType"], + updateCycleType: item["updateCycleType"], + autoUpdateVersion: item["autoUpdateVersion"], + updateInfoDetails: item["updateInfoDetails"], + updateRequestedDateTime: !item["updateRequestedDateTime"] + ? item["updateRequestedDateTime"] + : new Date(item["updateRequestedDateTime"]), + autoUpdateNextAvailableVersion: item["autoUpdateNextAvailableVersion"], + autoUpdateNextAvailableDateTime: !item["autoUpdateNextAvailableDateTime"] + ? item["autoUpdateNextAvailableDateTime"] + : new Date(item["autoUpdateNextAvailableDateTime"]), + autoUpdateAppliedVersion: item["autoUpdateAppliedVersion"], + autoUpdateLastAppliedDetails: item["autoUpdateLastAppliedDetails"], + autoUpdateLastAppliedState: item["autoUpdateLastAppliedState"], + autoUpdateLastAppliedDateTime: !item["autoUpdateLastAppliedDateTime"] + ? item["autoUpdateLastAppliedDateTime"] + : new Date(item["autoUpdateLastAppliedDateTime"]), + autoUpdateLastTriggeredDateTime: !item["autoUpdateLastTriggeredDateTime"] + ? item["autoUpdateLastTriggeredDateTime"] + : new Date(item["autoUpdateLastTriggeredDateTime"]), + optionalProperty1: item["optionalProperty1"], + optionalProperty2: item["optionalProperty2"], + optionalProperty3: item["optionalProperty3"], + optionalProperty4: item["optionalProperty4"], + optionalProperty5: item["optionalProperty5"], + }; +} + +export function cacheNodeDriveConfigurationArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return cacheNodeDriveConfigurationSerializer(item); + }); +} + +export function cacheNodeDriveConfigurationArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return cacheNodeDriveConfigurationDeserializer(item); + }); +} + +/** Drive configuration for cache node */ +export interface CacheNodeDriveConfiguration { + /** physical path location of the folder used for caching content */ + physicalPath?: string; + /** physical size of the drive used for caching content */ + sizeInGb?: number; + /** corresponding nginx cache number. Valid cache numbers are 1 - 20 */ + cacheNumber?: number; + /** full binding for corresponding nginx cache drive */ + nginxMapping?: string; +} + +export function cacheNodeDriveConfigurationSerializer(item: CacheNodeDriveConfiguration): any { + return { + physicalPath: item["physicalPath"], + sizeInGb: item["sizeInGb"], + cacheNumber: item["cacheNumber"], + nginxMapping: item["nginxMapping"], + }; +} + +export function cacheNodeDriveConfigurationDeserializer(item: any): CacheNodeDriveConfiguration { + return { + physicalPath: item["physicalPath"], + sizeInGb: item["sizeInGb"], + cacheNumber: item["cacheNumber"], + nginxMapping: item["nginxMapping"], + }; +} + +/** Bgp configuration of cache node */ +export interface BgpConfiguration { + /** Asn to ip address mapping */ + asnToIpAddressMapping?: string; +} + +export function bgpConfigurationSerializer(item: BgpConfiguration): any { + return { asnToIpAddressMapping: item["asnToIpAddressMapping"] }; +} + +export function bgpConfigurationDeserializer(item: any): BgpConfiguration { + return { + asnToIpAddressMapping: item["asnToIpAddressMapping"], + }; +} + +/** ProxyUrl configuration of cache node */ +export interface ProxyUrlConfiguration { + /** Host Proxy Address configuration along with port number. This can be a proxy or ip address. ex: xx.xx.xx.xxxx:80 or host name http://exampleproxy.com:80 */ + proxyUrl?: string; +} + +export function proxyUrlConfigurationSerializer(item: ProxyUrlConfiguration): any { + return { proxyUrl: item["proxyUrl"] }; +} + +export function proxyUrlConfigurationDeserializer(item: any): ProxyUrlConfiguration { + return { + proxyUrl: item["proxyUrl"], + }; +} + +/** Proxy details enum */ +export enum KnownProxyRequired { + /** Proxy is not required in setup */ + None = "None", + /** proxy is required in setup */ + Required = "Required", +} + +/** + * Proxy details enum \ + * {@link KnownProxyRequired} can be used interchangeably with ProxyRequired, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Proxy is not required in setup \ + * **Required**: proxy is required in setup + */ +export type ProxyRequired = string; + +/** Operating System of the cache node */ +export enum KnownOsType { + /** cache node installs on windows operating system */ + Windows = "Windows", + /** cache node installs on Linux Operating system */ + Linux = "Linux", + /** cache node installs on Azure Eflow */ + Eflow = "Eflow", +} + +/** + * Operating System of the cache node \ + * {@link KnownOsType} can be used interchangeably with OsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Windows**: cache node installs on windows operating system \ + * **Linux**: cache node installs on Linux Operating system \ + * **Eflow**: cache node installs on Azure Eflow + */ +export type OsType = string; + +/** Update Cycle type */ +export enum KnownCycleType { + /** customer selection of preview update install mcc on their physical vm */ + Preview = "Preview", + /** customer selection of slow update to install mcc on their physical vm */ + Slow = "Slow", + /** customer selection of fast / auto update to install mcc on their physical vm */ + Fast = "Fast", +} + +/** + * Update Cycle type \ + * {@link KnownCycleType} can be used interchangeably with CycleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Preview**: customer selection of preview update install mcc on their physical vm \ + * **Slow**: customer selection of slow update to install mcc on their physical vm \ + * **Fast**: customer selection of fast \/ auto update to install mcc on their physical vm + */ +export type CycleType = string; + +/** The error detail. */ +export interface ErrorDetail { + /** The error code. */ + readonly code?: string; + /** The error message. */ + readonly message?: string; + /** The error target. */ + readonly target?: string; + /** The error details. */ + readonly details?: ErrorDetail[]; + /** The error additional info. */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +export function errorDetailSerializer(item: ErrorDetail): any { + return item; +} + +export function errorDetailDeserializer(item: any): ErrorDetail { + return { + code: item["code"], + message: item["message"], + target: item["target"], + details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]), + additionalInfo: !item["additionalInfo"] + ? item["additionalInfo"] + : errorAdditionalInfoArrayDeserializer(item["additionalInfo"]), + }; +} + +export function errorDetailArraySerializer(result: Array): any[] { + return result.map((item) => { + return errorDetailSerializer(item); + }); +} + +export function errorDetailArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return errorDetailDeserializer(item); + }); +} + +export function errorAdditionalInfoArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return errorAdditionalInfoDeserializer(item); + }); +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** The additional info type. */ + readonly type?: string; + /** The additional info. */ + readonly info?: Record; +} + +export function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo { + return { + type: item["type"], + info: !item["info"] ? item["info"] : _errorAdditionalInfoInfoDeserializer(item["info"]), + }; +} + +/** model interface _ErrorAdditionalInfoInfo */ +export interface _ErrorAdditionalInfoInfo {} + +export function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo { + return item; +} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: Record; + /** The geo-location where the resource lives */ + location: string; +} + +export function trackedResourceSerializer(item: TrackedResource): any { + return { tags: item["tags"], location: item["location"] }; +} + +export function trackedResourceDeserializer(item: any): TrackedResource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + tags: item["tags"], + location: item["location"], + }; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ + readonly id?: string; + /** The name of the resource */ + readonly name?: string; + /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ + readonly type?: string; + /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ + readonly systemData?: SystemData; +} + +export function resourceSerializer(item: Resource): any { + return item; +} + +export function resourceDeserializer(item: any): Resource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + }; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +export function systemDataDeserializer(item: any): SystemData { + return { + createdBy: item["createdBy"], + createdByType: item["createdByType"], + createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]), + lastModifiedBy: item["lastModifiedBy"], + lastModifiedByType: item["lastModifiedByType"], + lastModifiedAt: !item["lastModifiedAt"] + ? item["lastModifiedAt"] + : new Date(item["lastModifiedAt"]), + }; +} + +/** The kind of entity that created the resource. */ +export enum KnownCreatedByType { + /** The entity was created by a user. */ + User = "User", + /** The entity was created by an application. */ + Application = "Application", + /** The entity was created by a managed identity. */ + ManagedIdentity = "ManagedIdentity", + /** The entity was created by a key. */ + Key = "Key", +} + +/** + * The kind of entity that created the resource. \ + * {@link KnowncreatedByType} can be used interchangeably with createdByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User**: The entity was created by a user. \ + * **Application**: The entity was created by an application. \ + * **ManagedIdentity**: The entity was created by a managed identity. \ + * **Key**: The entity was created by a key. + */ +export type CreatedByType = string; + +/** Mcc PATCH operation properties. */ +export interface ConnectedCachePatchResource { + /** Resource tags. */ + tags?: Record; +} + +export function connectedCachePatchResourceSerializer(item: ConnectedCachePatchResource): any { + return { tags: item["tags"] }; +} + +/** The response of a EnterpriseMccCacheNodeResource list operation. */ +export interface _EnterpriseMccCacheNodeResourceListResult { + /** The EnterpriseMccCacheNodeResource items on this page */ + value: EnterpriseMccCacheNodeResource[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _enterpriseMccCacheNodeResourceListResultDeserializer( + item: any, +): _EnterpriseMccCacheNodeResourceListResult { + return { + value: enterpriseMccCacheNodeResourceArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function enterpriseMccCacheNodeResourceArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return enterpriseMccCacheNodeResourceSerializer(item); + }); +} + +export function enterpriseMccCacheNodeResourceArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return enterpriseMccCacheNodeResourceDeserializer(item); + }); +} + +/** Mcc cache node resource all install details. */ +export interface MccCacheNodeInstallDetails extends TrackedResource { + /** Mcc cache node resource install script details. */ + properties?: CacheNodeInstallProperties; +} + +export function mccCacheNodeInstallDetailsDeserializer(item: any): MccCacheNodeInstallDetails { + return { + tags: item["tags"], + location: item["location"], + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : cacheNodeInstallPropertiesDeserializer(item["properties"]), + }; +} + +/** Mcc cache node resource install script properties. */ +export interface CacheNodeInstallProperties { + /** Mcc customer resource Id. */ + customerId?: string; + /** Mcc cache node resource Id. */ + cacheNodeId?: string; + /** Mcc primary account key. Internal to Mcc. */ + readonly primaryAccountKey?: string; + /** Mcc secondary account key. Internal to Mcc. */ + readonly secondaryAccountKey?: string; + /** Mcc Iot Central temporary device registration key, used once. */ + readonly registrationKey?: string; +} + +export function cacheNodeInstallPropertiesDeserializer(item: any): CacheNodeInstallProperties { + return { + customerId: item["customerId"], + cacheNodeId: item["cacheNodeId"], + primaryAccountKey: item["primaryAccountKey"], + secondaryAccountKey: item["secondaryAccountKey"], + registrationKey: item["registrationKey"], + }; +} + +/** Represents the high level Nodes needed to provision customer resources */ +export interface EnterpriseMccCustomerResource extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: CustomerProperty; +} + +export function enterpriseMccCustomerResourceSerializer(item: EnterpriseMccCustomerResource): any { + return { + tags: item["tags"], + location: item["location"], + properties: !item["properties"] + ? item["properties"] + : customerPropertySerializer(item["properties"]), + }; +} + +export function enterpriseMccCustomerResourceDeserializer( + item: any, +): EnterpriseMccCustomerResource { + return { + tags: item["tags"], + location: item["location"], + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : customerPropertyDeserializer(item["properties"]), + }; +} + +/** Model representing customer for connectedCache resource */ +export interface CustomerProperty { + /** The provisioned state of the resource */ + readonly provisioningState?: ProvisioningState; + /** Mcc customer resource (customer entity). */ + customer?: CustomerEntity; + /** Mcc customer resource additional properties. */ + additionalCustomerProperties?: AdditionalCustomerProperties; + /** Mcc response status code. */ + readonly statusCode?: string; + /** Mcc response status text as string for retrieving status details. */ + readonly statusText?: string; + /** Mcc response status details for retrieving response inner details. */ + readonly statusDetails?: string; + /** HTTP error status code. */ + readonly status?: string; + /** Mcc response error details. */ + readonly error?: ErrorDetail; +} + +export function customerPropertySerializer(item: CustomerProperty): any { + return { + customer: !item["customer"] ? item["customer"] : customerEntitySerializer(item["customer"]), + additionalCustomerProperties: !item["additionalCustomerProperties"] + ? item["additionalCustomerProperties"] + : additionalCustomerPropertiesSerializer(item["additionalCustomerProperties"]), + }; +} + +export function customerPropertyDeserializer(item: any): CustomerProperty { + return { + provisioningState: item["provisioningState"], + customer: !item["customer"] ? item["customer"] : customerEntityDeserializer(item["customer"]), + additionalCustomerProperties: !item["additionalCustomerProperties"] + ? item["additionalCustomerProperties"] + : additionalCustomerPropertiesDeserializer(item["additionalCustomerProperties"]), + statusCode: item["statusCode"], + statusText: item["statusText"], + statusDetails: item["statusDetails"], + status: item["status"], + error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]), + }; +} + +/** Model representing Customer resource for ConnectedCache resource */ +export interface CustomerEntity { + /** Customer resource Azure fully qualified resource Id. */ + fullyQualifiedResourceId?: string; + /** Customer resource Guid Id. */ + readonly customerId?: string; + /** Customer resource name. */ + customerName?: string; + /** Customer resource contact email. */ + contactEmail?: string; + /** Customer resource contact phone. */ + contactPhone?: string; + /** Customer resource contact full name. */ + contactName?: string; + /** Customer resource entitlement flag as boolean. */ + isEntitled?: boolean; + /** Customer resource Mcc release version. */ + releaseVersion?: number; + /** Customer resource create async operation Id. */ + readonly createAsyncOperationId?: string; + /** Customer resource deletion async operation Id. */ + readonly deleteAsyncOperationId?: string; + /** Customer resource client tenant Id of subscription. */ + clientTenantId?: string; + /** Customer resource sync attempts. */ + readonly synchWithAzureAttemptsCount?: number; + /** Customer resource last Azure sync timestamp. */ + readonly lastSyncWithAzureTimestamp?: Date; + /** Customer resource flag for enterprise management as boolean. */ + isEnterpriseManaged?: boolean; + /** Customer resource flag for migration. */ + shouldMigrate?: boolean; + /** Customer resource flag for resending signup code as boolean. */ + resendSignupCode?: boolean; + /** Customer resource flag for requiring verification of signup code as boolean. */ + verifySignupCode?: boolean; + /** Customer resource phrase for verifying signup. */ + verifySignupPhrase?: string; +} + +export function customerEntitySerializer(item: CustomerEntity): any { + return { + fullyQualifiedResourceId: item["fullyQualifiedResourceId"], + customerName: item["customerName"], + contactEmail: item["contactEmail"], + contactPhone: item["contactPhone"], + contactName: item["contactName"], + isEntitled: item["isEntitled"], + releaseVersion: item["releaseVersion"], + clientTenantId: item["clientTenantId"], + isEnterpriseManaged: item["isEnterpriseManaged"], + shouldMigrate: item["shouldMigrate"], + resendSignupCode: item["resendSignupCode"], + verifySignupCode: item["verifySignupCode"], + verifySignupPhrase: item["verifySignupPhrase"], + }; +} + +export function customerEntityDeserializer(item: any): CustomerEntity { + return { + fullyQualifiedResourceId: item["fullyQualifiedResourceId"], + customerId: item["customerId"], + customerName: item["customerName"], + contactEmail: item["contactEmail"], + contactPhone: item["contactPhone"], + contactName: item["contactName"], + isEntitled: item["isEntitled"], + releaseVersion: item["releaseVersion"], + createAsyncOperationId: item["createAsyncOperationId"], + deleteAsyncOperationId: item["deleteAsyncOperationId"], + clientTenantId: item["clientTenantId"], + synchWithAzureAttemptsCount: item["synchWithAzureAttemptsCount"], + lastSyncWithAzureTimestamp: !item["lastSyncWithAzureTimestamp"] + ? item["lastSyncWithAzureTimestamp"] + : new Date(item["lastSyncWithAzureTimestamp"]), + isEnterpriseManaged: item["isEnterpriseManaged"], + shouldMigrate: item["shouldMigrate"], + resendSignupCode: item["resendSignupCode"], + verifySignupCode: item["verifySignupCode"], + verifySignupPhrase: item["verifySignupPhrase"], + }; +} + +/** Model representing customer for connected cache resource */ +export interface AdditionalCustomerProperties { + /** Customer resource last PeeringDB update timestamp. */ + readonly peeringDbLastUpdateTime?: Date; + /** Customer resource cache efficiency. */ + readonly customerPropertiesOverviewCacheEfficiency?: number; + /** Customer resource average egress in Mbps. */ + readonly customerPropertiesOverviewAverageEgressMbps?: number; + /** Customer resource average cache miss throughput in Mbps. */ + readonly customerPropertiesOverviewAverageMissMbps?: number; + /** Customer resource maximum egress in Mbps. */ + readonly customerPropertiesOverviewEgressMbpsMax?: number; + /** Customer resource peak egress timestamp. */ + readonly customerPropertiesOverviewEgressMbpsMaxDateTime?: Date; + /** Customer resource maximum cache miss throughput in Mbps. */ + readonly customerPropertiesOverviewMissMbpsMax?: number; + /** Customer resource peak cache miss throughput timestamp. */ + readonly customerPropertiesOverviewMissMbpsMaxDateTime?: Date; + /** Customer resource total healthy cache nodes. */ + readonly customerPropertiesOverviewCacheNodesHealthyCount?: number; + /** Customer resource total unhealthy cache nodes. */ + readonly customerPropertiesOverviewCacheNodesUnhealthyCount?: number; + /** Customer resource signup status as boolean. */ + readonly signupStatus?: boolean; + /** Customer resource signup status as integer code. */ + readonly signupStatusCode?: number; + /** Customer resource signup status as string text. */ + readonly signupStatusText?: string; + /** Customer resource signup phase status code as integer. */ + readonly signupPhaseStatusCode?: number; + /** Customer resource signup phase status as string text. */ + readonly signupPhaseStatusText?: string; + /** Customer resource last PeeringDB update timestamp. */ + readonly peeringDbLastUpdateDate?: Date; + /** Customer resource owner organization name. */ + readonly customerOrgName?: string; + /** Customer resource contact email. */ + customerEmail?: string; + /** Customer resource transit Asn (autonomous system number). */ + customerTransitAsn?: string; + /** Customer resource transit state. */ + customerTransitState?: CustomerTransitState; + /** Customer resource Asn (autonomous system number). */ + customerAsn?: string; + /** Customer resource estimated Asn peering peak in Gbps. */ + readonly customerAsnEstimatedEgressPeekGbps?: number; + /** Customer resource entitlement Sku Id. */ + customerEntitlementSkuId?: string; + /** Customer resource entitlement Sku Guid. */ + customerEntitlementSkuGuid?: string; + /** Customer resource entitlement Sku name. */ + customerEntitlementSkuName?: string; + /** Customer resource entitlement expiration date string. */ + customerEntitlementExpiration?: Date; + /** Optional property #1 of Mcc response object. */ + optionalProperty1?: string; + /** Optional property #2 of Mcc response object. */ + optionalProperty2?: string; + /** Optional property #3 of Mcc response object. */ + optionalProperty3?: string; + /** Optional property #4 of Mcc response object. */ + optionalProperty4?: string; + /** Optional property #5 of Mcc response object. */ + optionalProperty5?: string; +} + +export function additionalCustomerPropertiesSerializer(item: AdditionalCustomerProperties): any { + return { + customerEmail: item["customerEmail"], + customerTransitAsn: item["customerTransitAsn"], + customerTransitState: item["customerTransitState"], + customerAsn: item["customerAsn"], + customerEntitlementSkuId: item["customerEntitlementSkuId"], + customerEntitlementSkuGuid: item["customerEntitlementSkuGuid"], + customerEntitlementSkuName: item["customerEntitlementSkuName"], + customerEntitlementExpiration: item["customerEntitlementExpiration"]?.toISOString(), + optionalProperty1: item["optionalProperty1"], + optionalProperty2: item["optionalProperty2"], + optionalProperty3: item["optionalProperty3"], + optionalProperty4: item["optionalProperty4"], + optionalProperty5: item["optionalProperty5"], + }; +} + +export function additionalCustomerPropertiesDeserializer(item: any): AdditionalCustomerProperties { + return { + peeringDbLastUpdateTime: !item["peeringDbLastUpdateTime"] + ? item["peeringDbLastUpdateTime"] + : new Date(item["peeringDbLastUpdateTime"]), + customerPropertiesOverviewCacheEfficiency: item["customerPropertiesOverviewCacheEfficiency"], + customerPropertiesOverviewAverageEgressMbps: + item["customerPropertiesOverviewAverageEgressMbps"], + customerPropertiesOverviewAverageMissMbps: item["customerPropertiesOverviewAverageMissMbps"], + customerPropertiesOverviewEgressMbpsMax: item["customerPropertiesOverviewEgressMbpsMax"], + customerPropertiesOverviewEgressMbpsMaxDateTime: !item[ + "customerPropertiesOverviewEgressMbpsMaxDateTime" + ] + ? item["customerPropertiesOverviewEgressMbpsMaxDateTime"] + : new Date(item["customerPropertiesOverviewEgressMbpsMaxDateTime"]), + customerPropertiesOverviewMissMbpsMax: item["customerPropertiesOverviewMissMbpsMax"], + customerPropertiesOverviewMissMbpsMaxDateTime: !item[ + "customerPropertiesOverviewMissMbpsMaxDateTime" + ] + ? item["customerPropertiesOverviewMissMbpsMaxDateTime"] + : new Date(item["customerPropertiesOverviewMissMbpsMaxDateTime"]), + customerPropertiesOverviewCacheNodesHealthyCount: + item["customerPropertiesOverviewCacheNodesHealthyCount"], + customerPropertiesOverviewCacheNodesUnhealthyCount: + item["customerPropertiesOverviewCacheNodesUnhealthyCount"], + signupStatus: item["signupStatus"], + signupStatusCode: item["signupStatusCode"], + signupStatusText: item["signupStatusText"], + signupPhaseStatusCode: item["signupPhaseStatusCode"], + signupPhaseStatusText: item["signupPhaseStatusText"], + peeringDbLastUpdateDate: !item["peeringDbLastUpdateDate"] + ? item["peeringDbLastUpdateDate"] + : new Date(item["peeringDbLastUpdateDate"]), + customerOrgName: item["customerOrgName"], + customerEmail: item["customerEmail"], + customerTransitAsn: item["customerTransitAsn"], + customerTransitState: item["customerTransitState"], + customerAsn: item["customerAsn"], + customerAsnEstimatedEgressPeekGbps: item["customerAsnEstimatedEgressPeekGbps"], + customerEntitlementSkuId: item["customerEntitlementSkuId"], + customerEntitlementSkuGuid: item["customerEntitlementSkuGuid"], + customerEntitlementSkuName: item["customerEntitlementSkuName"], + customerEntitlementExpiration: !item["customerEntitlementExpiration"] + ? item["customerEntitlementExpiration"] + : new Date(item["customerEntitlementExpiration"]), + optionalProperty1: item["optionalProperty1"], + optionalProperty2: item["optionalProperty2"], + optionalProperty3: item["optionalProperty3"], + optionalProperty4: item["optionalProperty4"], + optionalProperty5: item["optionalProperty5"], + }; +} + +/** Customer resource transit states */ +export enum KnownCustomerTransitState { + /** do not have transit */ + NoTransit = "NoTransit", + /** transit provider and have own subscribers */ + CombinedTransit = "CombinedTransit", + /** pure transit provider or network service provider */ + TransitOnly = "TransitOnly", +} + +/** + * Customer resource transit states \ + * {@link KnownCustomerTransitState} can be used interchangeably with CustomerTransitState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NoTransit**: do not have transit \ + * **CombinedTransit**: transit provider and have own subscribers \ + * **TransitOnly**: pure transit provider or network service provider + */ +export type CustomerTransitState = string; + +/** The response of a EnterpriseMccCustomerResource list operation. */ +export interface _EnterpriseMccCustomerResourceListResult { + /** The EnterpriseMccCustomerResource items on this page */ + value: EnterpriseMccCustomerResource[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _enterpriseMccCustomerResourceListResultDeserializer( + item: any, +): _EnterpriseMccCustomerResourceListResult { + return { + value: enterpriseMccCustomerResourceArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function enterpriseMccCustomerResourceArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return enterpriseMccCustomerResourceSerializer(item); + }); +} + +export function enterpriseMccCustomerResourceArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return enterpriseMccCustomerResourceDeserializer(item); + }); +} + +/** Represents the high level Nodes needed to provision cache node resources */ +export interface IspCacheNodeResource extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: CacheNodeProperty; +} + +export function ispCacheNodeResourceSerializer(item: IspCacheNodeResource): any { + return { + tags: item["tags"], + location: item["location"], + properties: !item["properties"] + ? item["properties"] + : cacheNodePropertySerializer(item["properties"]), + }; +} + +export function ispCacheNodeResourceDeserializer(item: any): IspCacheNodeResource { + return { + tags: item["tags"], + location: item["location"], + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : cacheNodePropertyDeserializer(item["properties"]), + }; +} + +/** The response of a IspCacheNodeResource list operation. */ +export interface _IspCacheNodeResourceListResult { + /** The IspCacheNodeResource items on this page */ + value: IspCacheNodeResource[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _ispCacheNodeResourceListResultDeserializer( + item: any, +): _IspCacheNodeResourceListResult { + return { + value: ispCacheNodeResourceArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function ispCacheNodeResourceArraySerializer(result: Array): any[] { + return result.map((item) => { + return ispCacheNodeResourceSerializer(item); + }); +} + +export function ispCacheNodeResourceArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return ispCacheNodeResourceDeserializer(item); + }); +} + +/** Represents all Cidr details of the Bgp request for a specific cache node resource */ +export interface MccCacheNodeBgpCidrDetails extends TrackedResource { + /** Mcc cache node resource Bgp Cidr properties. */ + properties?: BgpCidrsConfiguration; +} + +export function mccCacheNodeBgpCidrDetailsDeserializer(item: any): MccCacheNodeBgpCidrDetails { + return { + tags: item["tags"], + location: item["location"], + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : bgpCidrsConfigurationDeserializer(item["properties"]), + }; +} + +/** Mcc cache node Bgp Cidr details. */ +export interface BgpCidrsConfiguration { + /** Mcc cache node Bgp Cidr details. */ + readonly bgpCidrs?: string[]; +} + +export function bgpCidrsConfigurationDeserializer(item: any): BgpCidrsConfiguration { + return { + bgpCidrs: !item["bgpCidrs"] + ? item["bgpCidrs"] + : item["bgpCidrs"].map((p: any) => { + return p; + }), + }; +} + +/** Represents the high level Nodes needed to provision isp customer resources */ +export interface IspCustomerResource extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: CustomerProperty; +} + +export function ispCustomerResourceSerializer(item: IspCustomerResource): any { + return { + tags: item["tags"], + location: item["location"], + properties: !item["properties"] + ? item["properties"] + : customerPropertySerializer(item["properties"]), + }; +} + +export function ispCustomerResourceDeserializer(item: any): IspCustomerResource { + return { + tags: item["tags"], + location: item["location"], + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : customerPropertyDeserializer(item["properties"]), + }; +} + +/** The response of a IspCustomerResource list operation. */ +export interface _IspCustomerResourceListResult { + /** The IspCustomerResource items on this page */ + value: IspCustomerResource[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _ispCustomerResourceListResultDeserializer( + item: any, +): _IspCustomerResourceListResult { + return { + value: ispCustomerResourceArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function ispCustomerResourceArraySerializer(result: Array): any[] { + return result.map((item) => { + return ispCustomerResourceSerializer(item); + }); +} + +export function ispCustomerResourceArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return ispCustomerResourceDeserializer(item); + }); +} + +/** Concrete tracked resource types can be created by aliasing this type using a specific property type. */ +export interface CacheNodePreviewResource extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: CacheNodeOldResponse; +} + +export function cacheNodePreviewResourceSerializer(item: CacheNodePreviewResource): any { + return { + tags: item["tags"], + location: item["location"], + properties: !item["properties"] + ? item["properties"] + : cacheNodeOldResponseSerializer(item["properties"]), + }; +} + +export function cacheNodePreviewResourceDeserializer(item: any): CacheNodePreviewResource { + return { + tags: item["tags"], + location: item["location"], + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : cacheNodeOldResponseDeserializer(item["properties"]), + }; +} + +/** Model representing Cache Node for ConnectedCache resource */ +export interface CacheNodeOldResponse { + /** The provisioned state of the resource */ + readonly provisioningState?: ProvisioningState; + /** statusCode used to get code details of Mcc response object */ + statusCode?: string; + /** statusText used to get status details in string format of Mcc response object */ + statusText?: string; + /** statusDetails used to get inner details of Mcc response object */ + statusDetails?: string; + /** status of the HTTP error code */ + readonly status?: string; + /** The error details */ + error?: ErrorDetail; +} + +export function cacheNodeOldResponseSerializer(item: CacheNodeOldResponse): any { + return { + statusCode: item["statusCode"], + statusText: item["statusText"], + statusDetails: item["statusDetails"], + error: !item["error"] ? item["error"] : errorDetailSerializer(item["error"]), + }; +} + +export function cacheNodeOldResponseDeserializer(item: any): CacheNodeOldResponse { + return { + provisioningState: item["provisioningState"], + statusCode: item["statusCode"], + statusText: item["statusText"], + statusDetails: item["statusDetails"], + status: item["status"], + error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]), + }; +} + +/** The response of a CacheNodePreviewResource list operation. */ +export interface _CacheNodePreviewResourceListResult { + /** The CacheNodePreviewResource items on this page */ + value: CacheNodePreviewResource[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _cacheNodePreviewResourceListResultDeserializer( + item: any, +): _CacheNodePreviewResourceListResult { + return { + value: cacheNodePreviewResourceArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function cacheNodePreviewResourceArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return cacheNodePreviewResourceSerializer(item); + }); +} + +export function cacheNodePreviewResourceArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return cacheNodePreviewResourceDeserializer(item); + }); +} + +/** ConnectedCache Resource. Represents the high level Nodes needed to provision CacheNode and customer resources used in private preview */ +export interface EnterprisePreviewResource extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: CacheNodeOldResponse; +} + +export function enterprisePreviewResourceSerializer(item: EnterprisePreviewResource): any { + return { + tags: item["tags"], + location: item["location"], + properties: !item["properties"] + ? item["properties"] + : cacheNodeOldResponseSerializer(item["properties"]), + }; +} + +export function enterprisePreviewResourceDeserializer(item: any): EnterprisePreviewResource { + return { + tags: item["tags"], + location: item["location"], + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : cacheNodeOldResponseDeserializer(item["properties"]), + }; +} + +/** The response of a EnterprisePreviewResource list operation. */ +export interface _EnterprisePreviewResourceListResult { + /** The EnterprisePreviewResource items on this page */ + value: EnterprisePreviewResource[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _enterprisePreviewResourceListResultDeserializer( + item: any, +): _EnterprisePreviewResourceListResult { + return { + value: enterprisePreviewResourceArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function enterprisePreviewResourceArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return enterprisePreviewResourceSerializer(item); + }); +} + +export function enterprisePreviewResourceArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return enterprisePreviewResourceDeserializer(item); + }); +} + +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface _OperationListResult { + /** The Operation items on this page */ + value: Operation[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _operationListResultDeserializer(item: any): _OperationListResult { + return { + value: operationArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function operationArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return operationDeserializer(item); + }); +} + +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { + /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ + readonly name?: string; + /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + readonly display?: OperationDisplay; + /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ + readonly origin?: Origin; + /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ + actionType?: ActionType; +} + +export function operationDeserializer(item: any): Operation { + return { + name: item["name"], + isDataAction: item["isDataAction"], + display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]), + origin: item["origin"], + actionType: item["actionType"], + }; +} + +/** Localized display information for and operation. */ +export interface OperationDisplay { + /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ + readonly provider?: string; + /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ + readonly resource?: string; + /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ + readonly operation?: string; + /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ + readonly description?: string; +} + +export function operationDisplayDeserializer(item: any): OperationDisplay { + return { + provider: item["provider"], + resource: item["resource"], + operation: item["operation"], + description: item["description"], + }; +} + +/** Known values of {@link Origin} that the service accepts. */ +export enum KnownOrigin { + /** user */ + User = "user", + /** system */ + System = "system", + /** user,system */ + UserSystem = "user,system", +} + +/** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" \ + * {@link KnownOrigin} can be used interchangeably with Origin, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **user** \ + * **system** \ + * **user,system** + */ +export type Origin = string; + +/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ +export enum KnownActionType { + /** Actions are for internal-only APIs. */ + Internal = "Internal", +} + +/** + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. \ + * {@link KnownActionType} can be used interchangeably with ActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Internal**: Actions are for internal-only APIs. + */ +export type ActionType = string; + +/** The available API versions. */ +export enum KnownVersions { + /** Microsoft Connected Cache Rest Api version 2023-05-01-preview */ + v2023_05_01_preview = "2023-05-01-preview", +} diff --git a/sdk/connectedcache/arm-connectedcache/src/restorePollerHelpers.ts b/sdk/connectedcache/arm-connectedcache/src/restorePollerHelpers.ts new file mode 100644 index 000000000000..0ea35ff9340e --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/restorePollerHelpers.ts @@ -0,0 +1,216 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ConnectedCacheClient } from "./connectedCacheClient.js"; +import { _enterpriseCustomerOperationsCreateOrUpdateDeserialize } from "./api/enterpriseCustomerOperations/index.js"; +import { _cacheNodesOperationsCreateorUpdateDeserialize } from "./api/cacheNodesOperations/index.js"; +import { + _ispCustomersCreateOrUpdateDeserialize, + _ispCustomersDeleteDeserialize, +} from "./api/ispCustomers/index.js"; +import { + _ispCacheNodesOperationsCreateOrUpdateDeserialize, + _ispCacheNodesOperationsDeleteDeserialize, +} from "./api/ispCacheNodesOperations/index.js"; +import { + _enterpriseMccCustomersCreateOrUpdateDeserialize, + _enterpriseMccCustomersDeleteDeserialize, +} from "./api/enterpriseMccCustomers/index.js"; +import { + _enterpriseMccCacheNodesOperationsCreateOrUpdateDeserialize, + _enterpriseMccCacheNodesOperationsDeleteDeserialize, +} from "./api/enterpriseMccCacheNodesOperations/index.js"; +import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js"; +import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; +import { + PollerLike, + OperationState, + deserializeState, + ResourceLocationConfig, +} from "@azure/core-lro"; + +export interface RestorePollerOptions< + TResult, + TResponse extends PathUncheckedResponse = PathUncheckedResponse, +> extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** + * The signal which can be used to abort requests. + */ + abortSignal?: AbortSignalLike; + /** Deserialization function for raw response body */ + processResponseBody?: (result: TResponse) => Promise; +} + +/** + * Creates a poller from the serialized state of another poller. This can be + * useful when you want to create pollers on a different host or a poller + * needs to be constructed after the original one is not in scope. + */ +export function restorePoller( + client: ConnectedCacheClient, + serializedState: string, + sourceOperation: (...args: any[]) => PollerLike, TResult>, + options?: RestorePollerOptions, +): PollerLike, TResult> { + const pollerConfig = deserializeState(serializedState).config; + const { initialRequestUrl, requestMethod, metadata } = pollerConfig; + if (!initialRequestUrl || !requestMethod) { + throw new Error( + `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`, + ); + } + const resourceLocationConfig = metadata?.["resourceLocationConfig"] as + | ResourceLocationConfig + | undefined; + const { deserializer, expectedStatuses = [] } = + getDeserializationHelper(initialRequestUrl, requestMethod) ?? {}; + const deserializeHelper = options?.processResponseBody ?? deserializer; + if (!deserializeHelper) { + throw new Error( + `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`, + ); + } + return getLongRunningPoller( + (client as any)["_client"] ?? client, + deserializeHelper as (result: TResponse) => Promise, + expectedStatuses, + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + resourceLocationConfig, + restoreFrom: serializedState, + initialRequestUrl, + }, + ); +} + +interface DeserializationHelper { + deserializer: Function; + expectedStatuses: string[]; +} + +const deserializeMap: Record = { + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}": + { + deserializer: _enterpriseCustomerOperationsCreateOrUpdateDeserialize, + expectedStatuses: ["200", "201"], + }, + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}": + { + deserializer: _cacheNodesOperationsCreateorUpdateDeserialize, + expectedStatuses: ["200", "201"], + }, + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}": + { + deserializer: _ispCustomersCreateOrUpdateDeserialize, + expectedStatuses: ["200", "201"], + }, + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}": + { + deserializer: _ispCustomersDeleteDeserialize, + expectedStatuses: ["202", "204", "200"], + }, + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}": + { + deserializer: _ispCacheNodesOperationsCreateOrUpdateDeserialize, + expectedStatuses: ["200", "201"], + }, + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}": + { + deserializer: _ispCacheNodesOperationsDeleteDeserialize, + expectedStatuses: ["202", "204", "200"], + }, + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}": + { + deserializer: _enterpriseMccCustomersCreateOrUpdateDeserialize, + expectedStatuses: ["200", "201"], + }, + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}": + { + deserializer: _enterpriseMccCustomersDeleteDeserialize, + expectedStatuses: ["202", "204", "200"], + }, + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}": + { + deserializer: _enterpriseMccCacheNodesOperationsCreateOrUpdateDeserialize, + expectedStatuses: ["200", "201"], + }, + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}": + { + deserializer: _enterpriseMccCacheNodesOperationsDeleteDeserialize, + expectedStatuses: ["202", "204", "200"], + }, +}; + +function getDeserializationHelper( + urlStr: string, + method: string, +): DeserializationHelper | undefined { + const path = new URL(urlStr).pathname; + const pathParts = path.split("/"); + + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, + matchedValue: DeserializationHelper | undefined; + + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(deserializeMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + + // track if we have found a match to return the values found. + let found = true; + for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { + if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { + const start = candidateParts[i]!.indexOf("}") + 1, + end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( + pathParts[j] || "", + ); + + if (!isMatched) { + found = false; + break; + } + continue; + } + + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + + return matchedValue; +} + +function getPathFromMapKey(mapKey: string): string { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} diff --git a/sdk/connectedcache/arm-connectedcache/src/static-helpers/pagingHelpers.ts b/sdk/connectedcache/arm-connectedcache/src/static-helpers/pagingHelpers.ts new file mode 100644 index 000000000000..ce33af5f4178 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/static-helpers/pagingHelpers.ts @@ -0,0 +1,241 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; +import { RestError } from "@azure/core-rest-pipeline"; + +/** + * Options for the byPage method + */ +export interface PageSettings { + /** + * A reference to a specific page to start iterating from. + */ + continuationToken?: string; +} + +/** + * An interface that describes a page of results. + */ +export type ContinuablePage = TPage & { + /** + * The token that keeps track of where to continue the iterator + */ + continuationToken?: string; +}; + +/** + * An interface that allows async iterable iteration both to completion and by page. + */ +export interface PagedAsyncIterableIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +> { + /** + * The next method, part of the iteration protocol + */ + next(): Promise>; + /** + * The connection to the async iterator, part of the iteration protocol + */ + [Symbol.asyncIterator](): PagedAsyncIterableIterator; + /** + * Return an AsyncIterableIterator that works a page at a time + */ + byPage: (settings?: TPageSettings) => AsyncIterableIterator>; +} + +/** + * An interface that describes how to communicate with the service. + */ +export interface PagedResult< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +> { + /** + * Link to the first page of results. + */ + firstPageLink?: string; + /** + * A method that returns a page of results. + */ + getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>; + /** + * a function to implement the `byPage` method on the paged async iterator. + */ + byPage?: (settings?: TPageSettings) => AsyncIterableIterator>; + + /** + * A function to extract elements from a page. + */ + toElements?: (page: TPage) => TElement[]; +} + +/** + * Options for the paging helper + */ +export interface BuildPagedAsyncIteratorOptions { + itemName?: string; + nextLinkName?: string; +} + +/** + * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator + */ +export function buildPagedAsyncIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, + TResponse extends PathUncheckedResponse = PathUncheckedResponse, +>( + client: Client, + getInitialResponse: () => PromiseLike, + processResponseBody: (result: TResponse) => PromiseLike, + expectedStatuses: string[], + options: BuildPagedAsyncIteratorOptions = {}, +): PagedAsyncIterableIterator { + const itemName = options.itemName ?? "value"; + const nextLinkName = options.nextLinkName ?? "nextLink"; + const pagedResult: PagedResult = { + getPage: async (pageLink?: string) => { + const result = + pageLink === undefined + ? await getInitialResponse() + : await client.pathUnchecked(pageLink).get(); + checkPagingRequest(result, expectedStatuses); + const results = await processResponseBody(result as TResponse); + const nextLink = getNextLink(results, nextLinkName); + const values = getElements(results, itemName) as TPage; + return { + page: values, + nextPageLink: nextLink, + }; + }, + byPage: (settings?: TPageSettings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken, + }); + }, + }; + return getPagedAsyncIterator(pagedResult); +} + +/** + * returns an async iterator that iterates over results. It also has a `byPage` + * method that returns pages of items at once. + * + * @param pagedResult - an object that specifies how to get pages. + * @returns a paged async iterator that iterates over results. + */ + +function getPagedAsyncIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +>( + pagedResult: PagedResult, +): PagedAsyncIterableIterator { + const iter = getItemAsyncIterator(pagedResult); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: + pagedResult?.byPage ?? + ((settings?: TPageSettings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken, + }); + }), + }; +} + +async function* getItemAsyncIterator( + pagedResult: PagedResult, +): AsyncIterableIterator { + const pages = getPageAsyncIterator(pagedResult); + for await (const page of pages) { + yield* page as unknown as TElement[]; + } +} + +async function* getPageAsyncIterator( + pagedResult: PagedResult, + options: { + pageLink?: string; + } = {}, +): AsyncIterableIterator> { + const { pageLink } = options; + let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink); + if (!response) { + return; + } + let result = response.page as ContinuablePage; + result.continuationToken = response.nextPageLink; + yield result; + while (response.nextPageLink) { + response = await pagedResult.getPage(response.nextPageLink); + if (!response) { + return; + } + result = response.page as ContinuablePage; + result.continuationToken = response.nextPageLink; + yield result; + } +} + +/** + * Gets for the value of nextLink in the body + */ +function getNextLink(body: unknown, nextLinkName?: string): string | undefined { + if (!nextLinkName) { + return undefined; + } + + const nextLink = (body as Record)[nextLinkName]; + + if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) { + throw new RestError( + `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`, + ); + } + + if (nextLink === null) { + return undefined; + } + + return nextLink; +} + +/** + * Gets the elements of the current request in the body. + */ +function getElements(body: unknown, itemName: string): T[] { + const value = (body as Record)[itemName] as T[]; + if (!Array.isArray(value)) { + throw new RestError( + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, + ); + } + + return value ?? []; +} + +/** + * Checks if a request failed + */ +function checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void { + if (!expectedStatuses.includes(response.status)) { + throw createRestError( + `Pagination failed with unexpected statusCode ${response.status}`, + response, + ); + } +} diff --git a/sdk/connectedcache/arm-connectedcache/src/static-helpers/pollingHelpers.ts b/sdk/connectedcache/arm-connectedcache/src/static-helpers/pollingHelpers.ts new file mode 100644 index 000000000000..f01c41bab69d --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/src/static-helpers/pollingHelpers.ts @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + PollerLike, + OperationState, + ResourceLocationConfig, + RunningOperation, + createHttpPoller, + OperationResponse, +} from "@azure/core-lro"; + +import { Client, PathUncheckedResponse, createRestError } from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; + +export interface GetLongRunningPollerOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** + * The signal which can be used to abort requests. + */ + abortSignal?: AbortSignalLike; + /** + * The potential location of the result of the LRO if specified by the LRO extension in the swagger. + */ + resourceLocationConfig?: ResourceLocationConfig; + /** + * The original url of the LRO + * Should not be null when restoreFrom is set + */ + initialRequestUrl?: string; + /** + * A serialized poller which can be used to resume an existing paused Long-Running-Operation. + */ + restoreFrom?: string; + /** + * The function to get the initial response + */ + getInitialResponse?: () => PromiseLike; +} +export function getLongRunningPoller( + client: Client, + processResponseBody: (result: TResponse) => Promise, + expectedStatuses: string[], + options: GetLongRunningPollerOptions, +): PollerLike, TResult> { + const { restoreFrom, getInitialResponse } = options; + if (!restoreFrom && !getInitialResponse) { + throw new Error("Either restoreFrom or getInitialResponse must be specified"); + } + let initialResponse: TResponse | undefined = undefined; + const pollAbortController = new AbortController(); + const poller: RunningOperation = { + sendInitialRequest: async () => { + if (!getInitialResponse) { + throw new Error("getInitialResponse is required when initializing a new poller"); + } + initialResponse = await getInitialResponse(); + return getLroResponse(initialResponse, expectedStatuses); + }, + sendPollRequest: async ( + path: string, + pollOptions?: { + abortSignal?: AbortSignalLike; + }, + ) => { + // The poll request would both listen to the user provided abort signal and the poller's own abort signal + function abortListener(): void { + pollAbortController.abort(); + } + const abortSignal = pollAbortController.signal; + if (options.abortSignal?.aborted) { + pollAbortController.abort(); + } else if (pollOptions?.abortSignal?.aborted) { + pollAbortController.abort(); + } else if (!abortSignal.aborted) { + options.abortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + pollOptions?.abortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + } + let response; + try { + response = await client.pathUnchecked(path).get({ abortSignal }); + } finally { + options.abortSignal?.removeEventListener("abort", abortListener); + pollOptions?.abortSignal?.removeEventListener("abort", abortListener); + } + + return getLroResponse(response as TResponse, expectedStatuses); + }, + }; + return createHttpPoller(poller, { + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: options?.resourceLocationConfig, + restoreFrom: options?.restoreFrom, + processResult: (result: unknown) => { + return processResponseBody(result as TResponse); + }, + }); +} +/** + * Converts a Rest Client response to a response that the LRO implementation understands + * @param response - a rest client http response + * @param deserializeFn - deserialize function to convert Rest response to modular output + * @returns - An LRO response that the LRO implementation understands + */ +function getLroResponse( + response: TResponse, + expectedStatuses: string[], +): OperationResponse { + if (!expectedStatuses.includes(response.status)) { + throw createRestError(response); + } + + return { + flatResponse: response, + rawResponse: { + ...response, + statusCode: Number.parseInt(response.status), + body: response.body, + }, + }; +} diff --git a/sdk/connectedcache/arm-connectedcache/test/public/connectedcache_operations_test.spec.ts b/sdk/connectedcache/arm-connectedcache/test/public/connectedcache_operations_test.spec.ts new file mode 100644 index 000000000000..d57c283c7e5a --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/test/public/connectedcache_operations_test.spec.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { env, Recorder, isPlaybackMode } from "@azure-tools/test-recorder"; +import { createTestCredential } from "@azure-tools/test-credential"; +import { assert, beforeEach, afterEach, it, describe } from "vitest"; +import { createRecorder } from "./utils/recordedClient.js"; +import { ConnectedCacheClient } from "../../src/connectedCacheClient.js"; + +export const testPollingOptions = { + updateIntervalInMs: isPlaybackMode() ? 0 : undefined, +}; + +describe("ConnectedCache test", () => { + let recorder: Recorder; + let subscriptionId: string; + let client: ConnectedCacheClient; + + beforeEach(async (context) => { + process.env.SystemRoot = process.env.SystemRoot || "C:\\Windows"; + recorder = await createRecorder(context); + subscriptionId = env.SUBSCRIPTION_ID || ""; + // This is an example of how the environment variables are used + const credential = createTestCredential(); + client = new ConnectedCacheClient( + credential, + subscriptionId, + recorder.configureClientOptions({}), + ); + }); + + afterEach(async function () { + await recorder.stop(); + }); + it("operations list test", async function () { + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + assert.notEqual(resArray.length, 0); + }); +}); diff --git a/sdk/connectedcache/arm-connectedcache/test/public/utils/recordedClient.ts b/sdk/connectedcache/arm-connectedcache/test/public/utils/recordedClient.ts new file mode 100644 index 000000000000..14dcd9fa397c --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/test/public/utils/recordedClient.ts @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { Recorder, RecorderStartOptions, VitestTestContext } from "@azure-tools/test-recorder"; + +const replaceableVariables: Record = { + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderEnvSetup: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +/** + * creates the recorder and reads the environment variables from the `.env` file. + * Should be called first in the test suite to make sure environment variables are + * read before they are being used. + */ +export async function createRecorder(context: VitestTestContext): Promise { + const recorder = new Recorder(context); + await recorder.start(recorderEnvSetup); + return recorder; +} diff --git a/sdk/connectedcache/arm-connectedcache/tsconfig.browser.config.json b/sdk/connectedcache/arm-connectedcache/tsconfig.browser.config.json new file mode 100644 index 000000000000..091177fcb991 --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["src/**/*.ts", "src/**/*.mts", "test/**/*.spec.ts"], + "exclude": ["test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/connectedcache/arm-connectedcache/tsconfig.json b/sdk/connectedcache/arm-connectedcache/tsconfig.json new file mode 100644 index 000000000000..b9014fa1b76d --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/tsconfig.json @@ -0,0 +1,18 @@ +{ + "extends": "../../../tsconfig", + "compilerOptions": { + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": ".", + "skipLibCheck": true, + "paths": { "@azure/arm-connectedcache": ["./src/index"] } + }, + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "test/**/*.ts", + "test/**/*.ts", + "samples-dev/**/*.ts" + ] +} diff --git a/sdk/connectedcache/arm-connectedcache/tsp-location.yaml b/sdk/connectedcache/arm-connectedcache/tsp-location.yaml new file mode 100644 index 000000000000..ddb9a7d0443d --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/connectedcache/ConnectedCache.Management +commit: 60c67f112c66537f1d006bf1b497857ccd2afacd +repo: ../azure-rest-api-specs +additionalDirectories: diff --git a/sdk/connectedcache/arm-connectedcache/vitest.browser.config.ts b/sdk/connectedcache/arm-connectedcache/vitest.browser.config.ts new file mode 100644 index 000000000000..da68c1d231aa --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/vitest.browser.config.ts @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig } from "vitest/config"; +import { relativeRecordingsPath } from "@azure-tools/test-recorder"; + +process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); + +export default defineConfig({ + define: { + "process.env": process.env, + }, + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.browser.xml", + }, + browser: { + enabled: true, + headless: true, + name: "chromium", + provider: "playwright", + }, + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["dist-test/browser/**/*.spec.js"], + coverage: { + include: ["dist-test/browser/**/*.spec.js"], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage-browser", + }, + testTimeout: 1200000, + hookTimeout: 1200000, + }, +}); diff --git a/sdk/connectedcache/arm-connectedcache/vitest.config.ts b/sdk/connectedcache/arm-connectedcache/vitest.config.ts new file mode 100644 index 000000000000..2cf5d0e02c2e --- /dev/null +++ b/sdk/connectedcache/arm-connectedcache/vitest.config.ts @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig } from "vitest/config"; +import { relativeRecordingsPath } from "@azure-tools/test-recorder"; + +export default defineConfig({ + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.browser.xml", + }, + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["test/**/*.spec.ts"], + exclude: ["test/**/browser/*.spec.ts"], + coverage: { + include: ["src/**/*.ts"], + exclude: [ + "src/**/*-browser.mts", + "src/**/*-react-native.mts", + "vitest*.config.ts", + "samples-dev/**/*.ts", + ], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage", + }, + testTimeout: 1200000, + hookTimeout: 1200000, + }, +}); diff --git a/sdk/connectedcache/ci.mgmt.yml b/sdk/connectedcache/ci.mgmt.yml new file mode 100644 index 000000000000..e2071197a709 --- /dev/null +++ b/sdk/connectedcache/ci.mgmt.yml @@ -0,0 +1,32 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. + +trigger: + branches: + include: + - main + - release/* + - hotfix/* + paths: + include: + - sdk/connectedcache/ci.mgmt.yml + - sdk/connectedcache/arm-connectedcache +pr: + branches: + include: + - main + - feature/* + - release/* + - hotfix/* + exclude: + - feature/v4 + paths: + include: + - sdk/connectedcache/ci.mgmt.yml + - sdk/connectedcache/arm-connectedcache +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: connectedcache + Artifacts: + - name: azure-arm-connectedcache + safeName: azurearmconnectedcache diff --git a/sdk/containerregistry/container-registry/package.json b/sdk/containerregistry/container-registry/package.json index c569ee772e25..452b71581d17 100644 --- a/sdk/containerregistry/container-registry/package.json +++ b/sdk/containerregistry/container-registry/package.json @@ -107,7 +107,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/containerservice/arm-containerservice-rest/package.json b/sdk/containerservice/arm-containerservice-rest/package.json index b144be530b9c..bbc10c53dc2b 100644 --- a/sdk/containerservice/arm-containerservice-rest/package.json +++ b/sdk/containerservice/arm-containerservice-rest/package.json @@ -95,7 +95,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/containerservice/arm-containerservice/CHANGELOG.md b/sdk/containerservice/arm-containerservice/CHANGELOG.md index 5936598e966b..84a180eb56ef 100644 --- a/sdk/containerservice/arm-containerservice/CHANGELOG.md +++ b/sdk/containerservice/arm-containerservice/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 21.2.1 (Unreleased) +## 21.3.1 (Unreleased) ### Features Added @@ -10,6 +10,30 @@ ### Other Changes +## 21.3.0 (2024-11-15) + +### Features Added + + - Added Interface AdvancedNetworking + - Added Interface AdvancedNetworkingObservability + - Added Interface AdvancedNetworkingSecurity + - Added Interface ManagedClusterNodeResourceGroupProfile + - Added Type Alias RestrictionLevel + - Interface AgentPool has a new optional parameter eTag + - Interface AgentPoolsCreateOrUpdateOptionalParams has a new optional parameter ifMatch + - Interface AgentPoolsCreateOrUpdateOptionalParams has a new optional parameter ifNoneMatch + - Interface AgentPoolsDeleteOptionalParams has a new optional parameter ifMatch + - Interface ContainerServiceNetworkProfile has a new optional parameter advancedNetworking + - Interface ManagedCluster has a new optional parameter eTag + - Interface ManagedCluster has a new optional parameter nodeResourceGroupProfile + - Interface ManagedClusterAgentPoolProfileProperties has a new optional parameter eTag + - Interface ManagedClustersCreateOrUpdateOptionalParams has a new optional parameter ifMatch + - Interface ManagedClustersCreateOrUpdateOptionalParams has a new optional parameter ifNoneMatch + - Interface ManagedClustersDeleteOptionalParams has a new optional parameter ifMatch + - Interface ManagedClustersUpdateTagsOptionalParams has a new optional parameter ifMatch + - Added Enum KnownRestrictionLevel + + ## 21.2.0 (2024-10-15) ### Features Added diff --git a/sdk/containerservice/arm-containerservice/_meta.json b/sdk/containerservice/arm-containerservice/_meta.json index f98c5410861c..d964aa73bc82 100644 --- a/sdk/containerservice/arm-containerservice/_meta.json +++ b/sdk/containerservice/arm-containerservice/_meta.json @@ -1,8 +1,8 @@ { - "commit": "f0573da04ed934620c566b96e04ddd80d46d2742", + "commit": "ff7b8e12e78b352561e2e470dd045be310a313fa", "readme": "specification/containerservice/resource-manager/Microsoft.ContainerService/aks/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\Microsoft.ContainerService\\aks\\readme.md --use=@autorest/typescript@6.0.27 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\containerservice\\resource-manager\\Microsoft.ContainerService\\aks\\readme.md --use=@autorest/typescript@6.0.28 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.13", - "use": "@autorest/typescript@6.0.27" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.15", + "use": "@autorest/typescript@6.0.28" } \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/assets.json b/sdk/containerservice/arm-containerservice/assets.json index 2b0850467726..18e1bc159b10 100644 --- a/sdk/containerservice/arm-containerservice/assets.json +++ b/sdk/containerservice/arm-containerservice/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/containerservice/arm-containerservice", - "Tag": "js/containerservice/arm-containerservice_ac83844a87" + "Tag": "js/containerservice/arm-containerservice_1cb77746c8" } diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index 40b42c9abff4..6f6c5f0b7af4 100644 --- a/sdk/containerservice/arm-containerservice/package.json +++ b/sdk/containerservice/arm-containerservice/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ContainerServiceClient.", - "version": "21.2.1", + "version": "21.3.1", "engines": { "node": ">=18.0.0" }, @@ -28,6 +28,7 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-containerservice.d.ts", "devDependencies": { + "@microsoft/api-extractor": "^7.31.1", "typescript": "~5.6.2", "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", @@ -89,7 +90,8 @@ "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped" + "integration-test:browser": "echo skipped", + "update-snippets": "echo skipped" }, "sideEffects": false, "//metadata": { diff --git a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md index f06b1b333492..1e371223706d 100644 --- a/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md +++ b/sdk/containerservice/arm-containerservice/review/arm-containerservice.api.md @@ -16,6 +16,23 @@ export interface AbsoluteMonthlySchedule { intervalMonths: number; } +// @public +export interface AdvancedNetworking { + enabled?: boolean; + observability?: AdvancedNetworkingObservability; + security?: AdvancedNetworkingSecurity; +} + +// @public +export interface AdvancedNetworkingObservability { + enabled?: boolean; +} + +// @public +export interface AdvancedNetworkingSecurity { + enabled?: boolean; +} + // @public export interface AgentPool extends SubResource { availabilityZones?: string[]; @@ -28,6 +45,7 @@ export interface AgentPool extends SubResource { enableFips?: boolean; enableNodePublicIP?: boolean; enableUltraSSD?: boolean; + readonly eTag?: string; gpuInstanceProfile?: GPUInstanceProfile; hostGroupID?: string; kubeletConfig?: KubeletConfig; @@ -140,6 +158,8 @@ export type AgentPoolsAbortLatestOperationResponse = AgentPoolsAbortLatestOperat // @public export interface AgentPoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -168,6 +188,7 @@ export type AgentPoolsDeleteMachinesResponse = AgentPoolsDeleteMachinesHeaders; // @public export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; ignorePodDisruptionBudget?: boolean; resumeFrom?: string; updateIntervalInMs?: number; @@ -349,6 +370,7 @@ export interface ContainerServiceLinuxProfile { // @public export interface ContainerServiceNetworkProfile { + advancedNetworking?: AdvancedNetworking; dnsServiceIP?: string; ipFamilies?: IpFamily[]; loadBalancerProfile?: ManagedClusterLoadBalancerProfile; @@ -744,6 +766,12 @@ export enum KnownPublicNetworkAccess { Enabled = "Enabled" } +// @public +export enum KnownRestrictionLevel { + ReadOnly = "ReadOnly", + Unrestricted = "Unrestricted" +} + // @public export enum KnownScaleDownMode { Deallocate = "Deallocate", @@ -1016,6 +1044,7 @@ export interface ManagedCluster extends TrackedResource { dnsPrefix?: string; enablePodSecurityPolicy?: boolean; enableRbac?: boolean; + readonly eTag?: string; extendedLocation?: ExtendedLocation; readonly fqdn?: string; fqdnSubdomain?: string; @@ -1031,6 +1060,7 @@ export interface ManagedCluster extends TrackedResource { metricsProfile?: ManagedClusterMetricsProfile; networkProfile?: ContainerServiceNetworkProfile; nodeResourceGroup?: string; + nodeResourceGroupProfile?: ManagedClusterNodeResourceGroupProfile; oidcIssuerProfile?: ManagedClusterOidcIssuerProfile; podIdentityProfile?: ManagedClusterPodIdentityProfile; readonly powerState?: PowerState; @@ -1096,6 +1126,7 @@ export interface ManagedClusterAgentPoolProfileProperties { enableFips?: boolean; enableNodePublicIP?: boolean; enableUltraSSD?: boolean; + readonly eTag?: string; gpuInstanceProfile?: GPUInstanceProfile; hostGroupID?: string; kubeletConfig?: KubeletConfig; @@ -1258,6 +1289,11 @@ export interface ManagedClusterNATGatewayProfile { managedOutboundIPProfile?: ManagedClusterManagedOutboundIPProfile; } +// @public +export interface ManagedClusterNodeResourceGroupProfile { + restrictionLevel?: RestrictionLevel; +} + // @public export interface ManagedClusterOidcIssuerProfile { enabled?: boolean; @@ -1408,6 +1444,8 @@ export type ManagedClustersAbortLatestOperationResponse = ManagedClustersAbortLa // @public export interface ManagedClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -1422,6 +1460,7 @@ export interface ManagedClustersDeleteHeaders { // @public export interface ManagedClustersDeleteOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -1749,6 +1788,7 @@ export interface ManagedClusterStorageProfileSnapshotController { // @public export interface ManagedClustersUpdateTagsOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -2053,6 +2093,9 @@ export interface ResourceReference { id?: string; } +// @public +export type RestrictionLevel = string; + // @public export interface RunCommandRequest { clusterToken?: string; diff --git a/sdk/containerservice/arm-containerservice/sample.env b/sdk/containerservice/arm-containerservice/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/containerservice/arm-containerservice/sample.env +++ b/sdk/containerservice/arm-containerservice/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsAbortLatestOperationSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsAbortLatestOperationSample.ts index 11ec557eae87..be23fd85b9d7 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsAbortLatestOperationSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsAbortLatestOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. * * @summary Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsAbortOperation.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsAbortOperation.json */ async function abortOperationOnAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsCreateOrUpdateSample.ts index b9a51ec3b5ca..c6426680bfb6 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Snapshot.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Snapshot.json */ async function createAgentPoolUsingAnAgentPoolSnapshot() { const subscriptionId = @@ -54,7 +54,7 @@ async function createAgentPoolUsingAnAgentPoolSnapshot() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_CRG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_CRG.json */ async function createAgentPoolWithCapacityReservationGroup() { const subscriptionId = @@ -87,7 +87,7 @@ async function createAgentPoolWithCapacityReservationGroup() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_DedicatedHostGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_DedicatedHostGroup.json */ async function createAgentPoolWithDedicatedHostGroup() { const subscriptionId = @@ -120,7 +120,7 @@ async function createAgentPoolWithDedicatedHostGroup() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_EnableEncryptionAtHost.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_EnableEncryptionAtHost.json */ async function createAgentPoolWithEncryptionAtHostEnabled() { const subscriptionId = @@ -152,7 +152,7 @@ async function createAgentPoolWithEncryptionAtHostEnabled() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Ephemeral.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Ephemeral.json */ async function createAgentPoolWithEphemeralOSDisk() { const subscriptionId = @@ -185,7 +185,7 @@ async function createAgentPoolWithEphemeralOSDisk() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_EnableFIPS.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_EnableFIPS.json */ async function createAgentPoolWithFipsEnabledOS() { const subscriptionId = @@ -217,7 +217,7 @@ async function createAgentPoolWithFipsEnabledOS() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_GPUMIG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_GPUMIG.json */ async function createAgentPoolWithGpumig() { const subscriptionId = @@ -270,7 +270,7 @@ async function createAgentPoolWithGpumig() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_WasmWasi.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_WasmWasi.json */ async function createAgentPoolWithKrustletAndTheWasiRuntime() { const subscriptionId = @@ -304,7 +304,7 @@ async function createAgentPoolWithKrustletAndTheWasiRuntime() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_CustomNodeConfig.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_CustomNodeConfig.json */ async function createAgentPoolWithKubeletConfigAndLinuxOSConfig() { const subscriptionId = @@ -356,7 +356,7 @@ async function createAgentPoolWithKubeletConfigAndLinuxOSConfig() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_OSSKU.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_OSSKU.json */ async function createAgentPoolWithOssku() { const subscriptionId = @@ -409,7 +409,7 @@ async function createAgentPoolWithOssku() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_PPG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_PPG.json */ async function createAgentPoolWithPpg() { const subscriptionId = @@ -442,7 +442,7 @@ async function createAgentPoolWithPpg() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_EnableUltraSSD.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_EnableUltraSSD.json */ async function createAgentPoolWithUltraSsdEnabled() { const subscriptionId = @@ -474,7 +474,7 @@ async function createAgentPoolWithUltraSsdEnabled() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_WindowsOSSKU.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_WindowsOSSKU.json */ async function createAgentPoolWithWindowsOssku() { const subscriptionId = @@ -506,7 +506,7 @@ async function createAgentPoolWithWindowsOssku() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Spot.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Spot.json */ async function createSpotAgentPool() { const subscriptionId = @@ -542,7 +542,7 @@ async function createSpotAgentPool() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json */ async function createWindowsAgentPoolWithDisablingOutboundNat() { const subscriptionId = @@ -575,7 +575,7 @@ async function createWindowsAgentPoolWithDisablingOutboundNat() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Update.json */ async function createOrUpdateAgentPool() { const subscriptionId = @@ -612,7 +612,7 @@ async function createOrUpdateAgentPool() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPools_Start.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPools_Start.json */ async function startAgentPool() { const subscriptionId = @@ -638,7 +638,7 @@ async function startAgentPool() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPools_Stop.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPools_Stop.json */ async function stopAgentPool() { const subscriptionId = @@ -664,7 +664,7 @@ async function stopAgentPool() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPools_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPools_Update.json */ async function updateAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteMachinesSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteMachinesSample.ts index 38a8ee6df373..b2d93cfb8a6a 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteMachinesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteMachinesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific machines in an agent pool. * * @summary Deletes specific machines in an agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsDeleteMachines.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsDeleteMachines.json */ async function deleteSpecificMachinesInAnAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteSample.ts index b7ab02352229..b1ac4b193263 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an agent pool in the specified managed cluster. * * @summary Deletes an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsDelete.json */ async function deleteAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetAvailableAgentPoolVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetAvailableAgentPoolVersionsSample.ts index 4f7596647752..67e35d440225 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetAvailableAgentPoolVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetAvailableAgentPoolVersionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. * * @summary See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json */ async function getAvailableVersionsForAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetSample.ts index 2c507c9b7726..41ed5b93b708 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified managed cluster agent pool. * * @summary Gets the specified managed cluster agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGet.json */ async function getAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetUpgradeProfileSample.ts index d0b6a59f55b5..a3ca34b8fc1a 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetUpgradeProfileSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the upgrade profile for an agent pool. * * @summary Gets the upgrade profile for an agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGetUpgradeProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGetUpgradeProfile.json */ async function getUpgradeProfileForAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsListSample.ts index 9937f972007c..d616aea11cc6 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of agent pools in the specified managed cluster. * * @summary Gets a list of agent pools in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsList.json */ async function listAgentPoolsByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsUpgradeNodeImageVersionSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsUpgradeNodeImageVersionSample.ts index 96d24fb24cda..bd366cc4ac67 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsUpgradeNodeImageVersionSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsUpgradeNodeImageVersionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade * * @summary Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsUpgradeNodeImageVersion.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsUpgradeNodeImageVersion.json */ async function upgradeAgentPoolNodeImageVersion() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/machinesGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/machinesGetSample.ts index 16a27ac521af..77792a4b0d26 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/machinesGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/machinesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a specific machine in the specified agent pool. * * @summary Get a specific machine in the specified agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MachineGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MachineGet.json */ async function getAMachineInAnAgentPoolsByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/machinesListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/machinesListSample.ts index 32ec62e4f4f1..f9aa0939a787 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/machinesListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/machinesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of machines in the specified agent pool. * * @summary Gets a list of machines in the specified agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MachineList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MachineList.json */ async function listMachinesInAnAgentpoolByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.ts index 275bdd7a5718..150041bf1f0f 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a maintenance configuration in the specified managed cluster. * * @summary Creates or updates a maintenance configuration in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsCreate_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsCreate_Update.json */ async function createOrUpdateMaintenanceConfiguration() { const subscriptionId = @@ -55,7 +55,7 @@ async function createOrUpdateMaintenanceConfiguration() { * This sample demonstrates how to Creates or updates a maintenance configuration in the specified managed cluster. * * @summary Creates or updates a maintenance configuration in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json */ async function createOrUpdateMaintenanceConfigurationWithMaintenanceWindow() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsDeleteSample.ts index 6a8bb3a58a48..af8a77316e8a 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a maintenance configuration. * * @summary Deletes a maintenance configuration. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsDelete.json */ async function deleteMaintenanceConfiguration() { const subscriptionId = @@ -42,7 +42,7 @@ async function deleteMaintenanceConfiguration() { * This sample demonstrates how to Deletes a maintenance configuration. * * @summary Deletes a maintenance configuration. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsDelete_MaintenanceWindow.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsDelete_MaintenanceWindow.json */ async function deleteMaintenanceConfigurationForNodeOSUpgrade() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsGetSample.ts index f4d01765ade9..9b35a32eb289 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified maintenance configuration of a managed cluster. * * @summary Gets the specified maintenance configuration of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsGet.json */ async function getMaintenanceConfiguration() { const subscriptionId = @@ -42,7 +42,7 @@ async function getMaintenanceConfiguration() { * This sample demonstrates how to Gets the specified maintenance configuration of a managed cluster. * * @summary Gets the specified maintenance configuration of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsGet_MaintenanceWindow.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsGet_MaintenanceWindow.json */ async function getMaintenanceConfigurationConfiguredWithMaintenanceWindow() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsListByManagedClusterSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsListByManagedClusterSample.ts index 7c63dd5dd30d..f1615ce26e31 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsListByManagedClusterSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsListByManagedClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of maintenance configurations in the specified managed cluster. * * @summary Gets a list of maintenance configurations in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsList.json */ async function listMaintenanceConfigurationsByManagedCluster() { const subscriptionId = @@ -43,7 +43,7 @@ async function listMaintenanceConfigurationsByManagedCluster() { * This sample demonstrates how to Gets a list of maintenance configurations in the specified managed cluster. * * @summary Gets a list of maintenance configurations in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsList_MaintenanceWindow.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsList_MaintenanceWindow.json */ async function listMaintenanceConfigurationsConfiguredWithMaintenanceWindowByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersAbortLatestOperationSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersAbortLatestOperationSample.ts index f1944da30d2e..53c09beb2301 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersAbortLatestOperationSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersAbortLatestOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. * * @summary Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersAbortOperation.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersAbortOperation.json */ async function abortOperationOnManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersCreateOrUpdateSample.ts index da798cef5b72..f201dce40cc3 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Snapshot.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_Snapshot.json */ async function createManagedClusterUsingAnAgentPoolSnapshot() { const subscriptionId = @@ -87,7 +87,7 @@ async function createManagedClusterUsingAnAgentPoolSnapshot() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_ManagedNATGateway.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_ManagedNATGateway.json */ async function createManagedClusterWithAksManagedNatGatewayAsOutboundType() { const subscriptionId = @@ -148,7 +148,7 @@ async function createManagedClusterWithAksManagedNatGatewayAsOutboundType() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_AzureKeyvaultSecretsProvider.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_AzureKeyvaultSecretsProvider.json */ async function createManagedClusterWithAzureKeyVaultSecretsProviderAddon() { const subscriptionId = @@ -214,7 +214,7 @@ async function createManagedClusterWithAzureKeyVaultSecretsProviderAddon() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_CRG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_CRG.json */ async function createManagedClusterWithCapacityReservationGroup() { const subscriptionId = @@ -277,7 +277,7 @@ async function createManagedClusterWithCapacityReservationGroup() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_DedicatedHostGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_DedicatedHostGroup.json */ async function createManagedClusterWithDedicatedHostGroup() { const subscriptionId = @@ -339,7 +339,7 @@ async function createManagedClusterWithDedicatedHostGroup() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_EnableEncryptionAtHost.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_EnableEncryptionAtHost.json */ async function createManagedClusterWithEncryptionAtHostEnabled() { const subscriptionId = @@ -401,7 +401,7 @@ async function createManagedClusterWithEncryptionAtHostEnabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_EnabledFIPS.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_EnabledFIPS.json */ async function createManagedClusterWithFipsEnabledOS() { const subscriptionId = @@ -463,7 +463,7 @@ async function createManagedClusterWithFipsEnabledOS() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_GPUMIG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_GPUMIG.json */ async function createManagedClusterWithGpumig() { const subscriptionId = @@ -531,7 +531,7 @@ async function createManagedClusterWithGpumig() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_HTTPProxy.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_HTTPProxy.json */ async function createManagedClusterWithHttpProxyConfigured() { const subscriptionId = @@ -598,7 +598,7 @@ async function createManagedClusterWithHttpProxyConfigured() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Premium.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_Premium.json */ async function createManagedClusterWithLongTermSupport() { const subscriptionId = @@ -660,7 +660,7 @@ async function createManagedClusterWithLongTermSupport() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_NodePublicIPPrefix.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_NodePublicIPPrefix.json */ async function createManagedClusterWithNodePublicIPPrefix() { const subscriptionId = @@ -723,7 +723,7 @@ async function createManagedClusterWithNodePublicIPPrefix() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_OSSKU.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_OSSKU.json */ async function createManagedClusterWithOssku() { const subscriptionId = @@ -791,7 +791,7 @@ async function createManagedClusterWithOssku() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PPG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_PPG.json */ async function createManagedClusterWithPpg() { const subscriptionId = @@ -854,7 +854,7 @@ async function createManagedClusterWithPpg() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PodIdentity.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_PodIdentity.json */ async function createManagedClusterWithPodIdentityEnabled() { const subscriptionId = @@ -916,7 +916,7 @@ async function createManagedClusterWithPodIdentityEnabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_DisableRunCommand.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_DisableRunCommand.json */ async function createManagedClusterWithRunCommandDisabled() { const subscriptionId = @@ -977,7 +977,7 @@ async function createManagedClusterWithRunCommandDisabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_SecurityProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_SecurityProfile.json */ async function createManagedClusterWithSecurityProfileConfigured() { const subscriptionId = @@ -1035,7 +1035,7 @@ async function createManagedClusterWithSecurityProfileConfigured() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_EnableUltraSSD.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_EnableUltraSSD.json */ async function createManagedClusterWithUltraSsdEnabled() { const subscriptionId = @@ -1097,7 +1097,7 @@ async function createManagedClusterWithUltraSsdEnabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_IngressProfile_WebAppRouting.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_IngressProfile_WebAppRouting.json */ async function createManagedClusterWithWebAppRoutingIngressProfileConfigured() { const subscriptionId = @@ -1155,7 +1155,7 @@ async function createManagedClusterWithWebAppRoutingIngressProfileConfigured() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UserAssignedNATGateway.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_UserAssignedNATGateway.json */ async function createManagedClusterWithUserAssignedNatGatewayAsOutboundType() { const subscriptionId = @@ -1215,7 +1215,7 @@ async function createManagedClusterWithUserAssignedNatGatewayAsOutboundType() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PrivateClusterPublicFQDN.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_PrivateClusterPublicFQDN.json */ async function createManagedPrivateClusterWithPublicFqdnSpecified() { const subscriptionId = @@ -1279,7 +1279,7 @@ async function createManagedPrivateClusterWithPublicFqdnSpecified() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PrivateClusterFQDNSubdomain.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_PrivateClusterFQDNSubdomain.json */ async function createManagedPrivateClusterWithFqdnSubdomainSpecified() { const subscriptionId = @@ -1344,7 +1344,7 @@ async function createManagedPrivateClusterWithFqdnSubdomainSpecified() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UpdateWithEnableAzureRBAC.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_UpdateWithEnableAzureRBAC.json */ async function createOrUpdateAadManagedClusterWithEnableAzureRbac() { const subscriptionId = @@ -1407,7 +1407,7 @@ async function createOrUpdateAadManagedClusterWithEnableAzureRbac() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_Update.json */ async function createOrUpdateManagedCluster() { const subscriptionId = @@ -1491,7 +1491,7 @@ async function createOrUpdateManagedCluster() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_AzureServiceMesh.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_AzureServiceMesh.json */ async function createOrUpdateManagedClusterWithAzureServiceMesh() { const subscriptionId = @@ -1576,7 +1576,7 @@ async function createOrUpdateManagedClusterWithAzureServiceMesh() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UpdateWithAHUB.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_UpdateWithAHUB.json */ async function createOrUpdateManagedClusterWithEnableAhub() { const subscriptionId = @@ -1646,7 +1646,7 @@ async function createOrUpdateManagedClusterWithEnableAhub() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UpdateWindowsGmsa.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_UpdateWindowsGmsa.json */ async function createOrUpdateManagedClusterWithWindowsGMsaEnabled() { const subscriptionId = @@ -1716,7 +1716,7 @@ async function createOrUpdateManagedClusterWithWindowsGMsaEnabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_DualStackNetworking.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_DualStackNetworking.json */ async function createOrUpdateManagedClusterWithDualStackNetworking() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersDeleteSample.ts index 5e92fead65dc..b6dffd8e0f59 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a managed cluster. * * @summary Deletes a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersDelete.json */ async function deleteManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetAccessProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetAccessProfileSample.ts index 2e730b9bad35..0638030dc50e 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetAccessProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetAccessProfileSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . * * @summary **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGetAccessProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGetAccessProfile.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetCommandResultSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetCommandResultSample.ts index 6d0ae74f1ef2..70b1e54c3ec2 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetCommandResultSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetCommandResultSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the results of a command which has been run on the Managed Cluster. * * @summary Gets the results of a command which has been run on the Managed Cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandResultFailed.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandResultFailed.json */ async function commandFailedResult() { const subscriptionId = @@ -42,7 +42,7 @@ async function commandFailedResult() { * This sample demonstrates how to Gets the results of a command which has been run on the Managed Cluster. * * @summary Gets the results of a command which has been run on the Managed Cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandResultSucceed.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandResultSucceed.json */ async function commandSucceedResult() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshRevisionProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshRevisionProfileSample.ts index b9c70d028e90..2213aa12f0a7 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshRevisionProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshRevisionProfileSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades * * @summary Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet_MeshRevisionProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet_MeshRevisionProfile.json */ async function getAMeshRevisionProfileForAMeshMode() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshUpgradeProfileSample.ts index a8b1948453a1..d3bafe13663a 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshUpgradeProfileSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets available upgrades for a service mesh in a cluster. * * @summary Gets available upgrades for a service mesh in a cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet_MeshUpgradeProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet_MeshUpgradeProfile.json */ async function getsVersionCompatibilityAndUpgradeProfileForAServiceMeshInACluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetSample.ts index ce025fb26c73..05b55dccceba 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a managed cluster. * * @summary Gets a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetUpgradeProfileSample.ts index 9f1b3dfc700c..bdf6e77a29ed 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetUpgradeProfileSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the upgrade profile of a managed cluster. * * @summary Gets the upgrade profile of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGetUpgradeProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGetUpgradeProfile.json */ async function getUpgradeProfileForManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListByResourceGroupSample.ts index ff8c391e73be..1336e0c609d6 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists managed clusters in the specified subscription and resource group. * * @summary Lists managed clusters in the specified subscription and resource group. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListByResourceGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListByResourceGroup.json */ async function getManagedClustersByResourceGroup() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterAdminCredentialsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterAdminCredentialsSample.ts index 80dea3975b61..6f98741b979d 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterAdminCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterAdminCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the admin credentials of a managed cluster. * * @summary Lists the admin credentials of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterAdminCredentials.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterAdminCredentials.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.ts index c38c724d3ba2..630e4e20c446 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the cluster monitoring user credentials of a managed cluster. * * @summary Lists the cluster monitoring user credentials of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterUserCredentialsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterUserCredentialsSample.ts index f968adce703c..28058dc75583 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterUserCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterUserCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the user credentials of a managed cluster. * * @summary Lists the user credentials of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterUserCredentials.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterUserCredentials.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListKubernetesVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListKubernetesVersionsSample.ts index d1bc519504ed..b15a4fca38e9 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListKubernetesVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListKubernetesVersionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version * * @summary Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/KubernetesVersions_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/KubernetesVersions_List.json */ async function listKubernetesVersions() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshRevisionProfilesSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshRevisionProfilesSample.ts index 35551f85cc36..ecf4b84dc852 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshRevisionProfilesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshRevisionProfilesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades * * @summary Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList_MeshRevisionProfiles.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList_MeshRevisionProfiles.json */ async function listMeshRevisionProfilesInALocation() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshUpgradeProfilesSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshUpgradeProfilesSample.ts index 6643c8eb30ab..59e3b05196cd 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshUpgradeProfilesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshUpgradeProfilesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists available upgrades for all service meshes in a specific cluster. * * @summary Lists available upgrades for all service meshes in a specific cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList_MeshUpgradeProfiles.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList_MeshUpgradeProfiles.json */ async function listsVersionCompatibilityAndUpgradeProfileForAllServiceMeshesInACluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts index d8d25244d810..c9f0a943f62f 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. * * @summary Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/OutboundNetworkDependenciesEndpointsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/OutboundNetworkDependenciesEndpointsList.json */ async function listOutboundNetworkDependenciesEndpointsByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListSample.ts index ca982dd21be7..551476d56bfd 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of managed clusters in the specified subscription. * * @summary Gets a list of managed clusters in the specified subscription. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList.json */ async function listManagedClusters() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetAadProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetAadProfileSample.ts index 189b14744403..ee60914e670b 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetAadProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetAadProfileSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. * * @summary **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersResetAADProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersResetAADProfile.json */ async function resetAadProfile() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetServicePrincipalProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetServicePrincipalProfileSample.ts index 4ec7f5f16d69..d349987804d7 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetServicePrincipalProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetServicePrincipalProfileSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to This action cannot be performed on a cluster that is not using a service principal * * @summary This action cannot be performed on a cluster that is not using a service principal - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersResetServicePrincipalProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersResetServicePrincipalProfile.json */ async function resetServicePrincipalProfile() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateClusterCertificatesSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateClusterCertificatesSample.ts index 9d59b2f3ddf2..253c3a401dfd 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateClusterCertificatesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateClusterCertificatesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. * * @summary See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersRotateClusterCertificates.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersRotateClusterCertificates.json */ async function rotateClusterCertificates() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.ts index 3bb99470a351..71e21f39af7d 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Rotates the service account signing keys of a managed cluster. * * @summary Rotates the service account signing keys of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json */ async function rotateClusterServiceAccountSigningKeys() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRunCommandSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRunCommandSample.ts index 6b91b9bdad02..b485beec4e64 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRunCommandSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRunCommandSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). * * @summary AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandRequest.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandRequest.json */ async function submitNewCommand() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStartSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStartSample.ts index f014f36f7fc9..f2b7d731b209 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStartSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. * * @summary See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersStart.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersStart.json */ async function startManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStopSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStopSample.ts index 55144ae1bb00..babfe05af301 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStopSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStopSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. * * @summary This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersStop.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersStop.json */ async function stopManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersUpdateTagsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersUpdateTagsSample.ts index 3ec15b9e96f8..028b331d3c31 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersUpdateTagsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates tags on a managed cluster. * * @summary Updates tags on a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersUpdateTags.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersUpdateTags.json */ async function updateManagedClusterTags() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/operationsListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/operationsListSample.ts index 7e1fc5593a9e..3b0b1ba4f6ec 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/operationsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of operations. * * @summary Gets a list of operations. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/Operation_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/Operation_List.json */ async function listAvailableOperationsForTheContainerServiceResourceProvider() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsDeleteSample.ts index 0ef87f742fcb..c8f7cdc7c83e 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a private endpoint connection. * * @summary Deletes a private endpoint connection. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsDelete.json */ async function deletePrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsGetSample.ts index cf55806a76e9..00899f089e4c 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters * * @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsGet.json */ async function getPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsListSample.ts index 7a7071b4c485..69e929501b13 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters * * @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsList.json */ async function listPrivateEndpointConnectionsByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsUpdateSample.ts index cfec91b849b0..a4ee8474fd06 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a private endpoint connection. * * @summary Updates a private endpoint connection. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsUpdate.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsUpdate.json */ async function updatePrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/privateLinkResourcesListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/privateLinkResourcesListSample.ts index 0f5ce2e249dc..1745cf4d561a 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/privateLinkResourcesListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/privateLinkResourcesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters * * @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateLinkResourcesList.json */ async function listPrivateLinkResourcesByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/resolvePrivateLinkServiceIdPostSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/resolvePrivateLinkServiceIdPostSample.ts index a16e53eef968..c4b21d57a932 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/resolvePrivateLinkServiceIdPostSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/resolvePrivateLinkServiceIdPostSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link service ID for the specified managed cluster. * * @summary Gets the private link service ID for the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ResolvePrivateLinkServiceId.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ResolvePrivateLinkServiceId.json */ async function resolveThePrivateLinkServiceIdForManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsCreateOrUpdateSample.ts index f5cf0f876a23..cfd79e400923 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a snapshot. * * @summary Creates or updates a snapshot. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsCreate.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsCreate.json */ async function createOrUpdateSnapshot() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsDeleteSample.ts index 3a90b7231233..f39263f6377f 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a snapshot. * * @summary Deletes a snapshot. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsDelete.json */ async function deleteSnapshot() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsGetSample.ts index 41d9f5bbc688..85e8f4c6fe4d 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a snapshot. * * @summary Gets a snapshot. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsGet.json */ async function getSnapshot() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListByResourceGroupSample.ts index 5a7f37013bb4..583a5b9d1ac4 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists snapshots in the specified subscription and resource group. * * @summary Lists snapshots in the specified subscription and resource group. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsListByResourceGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsListByResourceGroup.json */ async function listSnapshotsByResourceGroup() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListSample.ts index 52241a218cc2..3fb5ceab6801 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of snapshots in the specified subscription. * * @summary Gets a list of snapshots in the specified subscription. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsList.json */ async function listSnapshots() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsUpdateTagsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsUpdateTagsSample.ts index fc696a355666..4d2f734e2f32 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsUpdateTagsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates tags on a snapshot. * * @summary Updates tags on a snapshot. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsUpdateTags.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsUpdateTags.json */ async function updateSnapshotTags() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsCreateOrUpdateSample.ts index c515bb2db10f..026f11ce7040 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a trusted access role binding * * @summary Create or update a trusted access role binding - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json */ async function createOrUpdateATrustedAccessRoleBinding() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsDeleteSample.ts index f79a3e04cb75..5b8cba149f0e 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a trusted access role binding. * * @summary Delete a trusted access role binding. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_Delete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_Delete.json */ async function deleteATrustedAccessRoleBinding() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsGetSample.ts index 87ff561ef611..d5b9e3a4fc6e 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a trusted access role binding. * * @summary Get a trusted access role binding. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_Get.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_Get.json */ async function getATrustedAccessRoleBinding() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsListSample.ts index 519905e062c1..5115805c6534 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List trusted access role bindings. * * @summary List trusted access role bindings. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_List.json */ async function listTrustedAccessRoleBindings() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRolesListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRolesListSample.ts index cd9729883713..a78d08fe54ea 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRolesListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRolesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List supported trusted access roles. * * @summary List supported trusted access roles. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoles_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoles_List.json */ async function listTrustedAccessRoles() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/README.md b/sdk/containerservice/arm-containerservice/samples/v21/javascript/README.md index 599ff8543ea8..01d669c0d36b 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/README.md +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/README.md @@ -4,65 +4,65 @@ These sample programs show how to use the JavaScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [agentPoolsAbortLatestOperationSample.js][agentpoolsabortlatestoperationsample] | Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsAbortOperation.json | -| [agentPoolsCreateOrUpdateSample.js][agentpoolscreateorupdatesample] | Creates or updates an agent pool in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Snapshot.json | -| [agentPoolsDeleteMachinesSample.js][agentpoolsdeletemachinessample] | Deletes specific machines in an agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsDeleteMachines.json | -| [agentPoolsDeleteSample.js][agentpoolsdeletesample] | Deletes an agent pool in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsDelete.json | -| [agentPoolsGetAvailableAgentPoolVersionsSample.js][agentpoolsgetavailableagentpoolversionssample] | See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json | -| [agentPoolsGetSample.js][agentpoolsgetsample] | Gets the specified managed cluster agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGet.json | -| [agentPoolsGetUpgradeProfileSample.js][agentpoolsgetupgradeprofilesample] | Gets the upgrade profile for an agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGetUpgradeProfile.json | -| [agentPoolsListSample.js][agentpoolslistsample] | Gets a list of agent pools in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsList.json | -| [agentPoolsUpgradeNodeImageVersionSample.js][agentpoolsupgradenodeimageversionsample] | Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsUpgradeNodeImageVersion.json | -| [machinesGetSample.js][machinesgetsample] | Get a specific machine in the specified agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MachineGet.json | -| [machinesListSample.js][machineslistsample] | Gets a list of machines in the specified agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MachineList.json | -| [maintenanceConfigurationsCreateOrUpdateSample.js][maintenanceconfigurationscreateorupdatesample] | Creates or updates a maintenance configuration in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsCreate_Update.json | -| [maintenanceConfigurationsDeleteSample.js][maintenanceconfigurationsdeletesample] | Deletes a maintenance configuration. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsDelete.json | -| [maintenanceConfigurationsGetSample.js][maintenanceconfigurationsgetsample] | Gets the specified maintenance configuration of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsGet.json | -| [maintenanceConfigurationsListByManagedClusterSample.js][maintenanceconfigurationslistbymanagedclustersample] | Gets a list of maintenance configurations in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsList.json | -| [managedClustersAbortLatestOperationSample.js][managedclustersabortlatestoperationsample] | Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersAbortOperation.json | -| [managedClustersCreateOrUpdateSample.js][managedclusterscreateorupdatesample] | Creates or updates a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Snapshot.json | -| [managedClustersDeleteSample.js][managedclustersdeletesample] | Deletes a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersDelete.json | -| [managedClustersGetAccessProfileSample.js][managedclustersgetaccessprofilesample] | **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGetAccessProfile.json | -| [managedClustersGetCommandResultSample.js][managedclustersgetcommandresultsample] | Gets the results of a command which has been run on the Managed Cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandResultFailed.json | -| [managedClustersGetMeshRevisionProfileSample.js][managedclustersgetmeshrevisionprofilesample] | Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet_MeshRevisionProfile.json | -| [managedClustersGetMeshUpgradeProfileSample.js][managedclustersgetmeshupgradeprofilesample] | Gets available upgrades for a service mesh in a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet_MeshUpgradeProfile.json | -| [managedClustersGetSample.js][managedclustersgetsample] | Gets a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet.json | -| [managedClustersGetUpgradeProfileSample.js][managedclustersgetupgradeprofilesample] | Gets the upgrade profile of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGetUpgradeProfile.json | -| [managedClustersListByResourceGroupSample.js][managedclusterslistbyresourcegroupsample] | Lists managed clusters in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListByResourceGroup.json | -| [managedClustersListClusterAdminCredentialsSample.js][managedclusterslistclusteradmincredentialssample] | Lists the admin credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterAdminCredentials.json | -| [managedClustersListClusterMonitoringUserCredentialsSample.js][managedclusterslistclustermonitoringusercredentialssample] | Lists the cluster monitoring user credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json | -| [managedClustersListClusterUserCredentialsSample.js][managedclusterslistclusterusercredentialssample] | Lists the user credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterUserCredentials.json | -| [managedClustersListKubernetesVersionsSample.js][managedclusterslistkubernetesversionssample] | Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/KubernetesVersions_List.json | -| [managedClustersListMeshRevisionProfilesSample.js][managedclusterslistmeshrevisionprofilessample] | Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList_MeshRevisionProfiles.json | -| [managedClustersListMeshUpgradeProfilesSample.js][managedclusterslistmeshupgradeprofilessample] | Lists available upgrades for all service meshes in a specific cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList_MeshUpgradeProfiles.json | -| [managedClustersListOutboundNetworkDependenciesEndpointsSample.js][managedclusterslistoutboundnetworkdependenciesendpointssample] | Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/OutboundNetworkDependenciesEndpointsList.json | -| [managedClustersListSample.js][managedclusterslistsample] | Gets a list of managed clusters in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList.json | -| [managedClustersResetAadProfileSample.js][managedclustersresetaadprofilesample] | **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersResetAADProfile.json | -| [managedClustersResetServicePrincipalProfileSample.js][managedclustersresetserviceprincipalprofilesample] | This action cannot be performed on a cluster that is not using a service principal x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersResetServicePrincipalProfile.json | -| [managedClustersRotateClusterCertificatesSample.js][managedclustersrotateclustercertificatessample] | See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersRotateClusterCertificates.json | -| [managedClustersRotateServiceAccountSigningKeysSample.js][managedclustersrotateserviceaccountsigningkeyssample] | Rotates the service account signing keys of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json | -| [managedClustersRunCommandSample.js][managedclustersruncommandsample] | AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandRequest.json | -| [managedClustersStartSample.js][managedclustersstartsample] | See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersStart.json | -| [managedClustersStopSample.js][managedclustersstopsample] | This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersStop.json | -| [managedClustersUpdateTagsSample.js][managedclustersupdatetagssample] | Updates tags on a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersUpdateTags.json | -| [operationsListSample.js][operationslistsample] | Gets a list of operations. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/Operation_List.json | -| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsDelete.json | -| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsGet.json | -| [privateEndpointConnectionsListSample.js][privateendpointconnectionslistsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsList.json | -| [privateEndpointConnectionsUpdateSample.js][privateendpointconnectionsupdatesample] | Updates a private endpoint connection. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsUpdate.json | -| [privateLinkResourcesListSample.js][privatelinkresourceslistsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateLinkResourcesList.json | -| [resolvePrivateLinkServiceIdPostSample.js][resolveprivatelinkserviceidpostsample] | Gets the private link service ID for the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ResolvePrivateLinkServiceId.json | -| [snapshotsCreateOrUpdateSample.js][snapshotscreateorupdatesample] | Creates or updates a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsCreate.json | -| [snapshotsDeleteSample.js][snapshotsdeletesample] | Deletes a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsDelete.json | -| [snapshotsGetSample.js][snapshotsgetsample] | Gets a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsGet.json | -| [snapshotsListByResourceGroupSample.js][snapshotslistbyresourcegroupsample] | Lists snapshots in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsListByResourceGroup.json | -| [snapshotsListSample.js][snapshotslistsample] | Gets a list of snapshots in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsList.json | -| [snapshotsUpdateTagsSample.js][snapshotsupdatetagssample] | Updates tags on a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsUpdateTags.json | -| [trustedAccessRoleBindingsCreateOrUpdateSample.js][trustedaccessrolebindingscreateorupdatesample] | Create or update a trusted access role binding x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json | -| [trustedAccessRoleBindingsDeleteSample.js][trustedaccessrolebindingsdeletesample] | Delete a trusted access role binding. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_Delete.json | -| [trustedAccessRoleBindingsGetSample.js][trustedaccessrolebindingsgetsample] | Get a trusted access role binding. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_Get.json | -| [trustedAccessRoleBindingsListSample.js][trustedaccessrolebindingslistsample] | List trusted access role bindings. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_List.json | -| [trustedAccessRolesListSample.js][trustedaccessroleslistsample] | List supported trusted access roles. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoles_List.json | +| [agentPoolsAbortLatestOperationSample.js][agentpoolsabortlatestoperationsample] | Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsAbortOperation.json | +| [agentPoolsCreateOrUpdateSample.js][agentpoolscreateorupdatesample] | Creates or updates an agent pool in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Snapshot.json | +| [agentPoolsDeleteMachinesSample.js][agentpoolsdeletemachinessample] | Deletes specific machines in an agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsDeleteMachines.json | +| [agentPoolsDeleteSample.js][agentpoolsdeletesample] | Deletes an agent pool in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsDelete.json | +| [agentPoolsGetAvailableAgentPoolVersionsSample.js][agentpoolsgetavailableagentpoolversionssample] | See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json | +| [agentPoolsGetSample.js][agentpoolsgetsample] | Gets the specified managed cluster agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGet.json | +| [agentPoolsGetUpgradeProfileSample.js][agentpoolsgetupgradeprofilesample] | Gets the upgrade profile for an agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGetUpgradeProfile.json | +| [agentPoolsListSample.js][agentpoolslistsample] | Gets a list of agent pools in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsList.json | +| [agentPoolsUpgradeNodeImageVersionSample.js][agentpoolsupgradenodeimageversionsample] | Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsUpgradeNodeImageVersion.json | +| [machinesGetSample.js][machinesgetsample] | Get a specific machine in the specified agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MachineGet.json | +| [machinesListSample.js][machineslistsample] | Gets a list of machines in the specified agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MachineList.json | +| [maintenanceConfigurationsCreateOrUpdateSample.js][maintenanceconfigurationscreateorupdatesample] | Creates or updates a maintenance configuration in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsCreate_Update.json | +| [maintenanceConfigurationsDeleteSample.js][maintenanceconfigurationsdeletesample] | Deletes a maintenance configuration. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsDelete.json | +| [maintenanceConfigurationsGetSample.js][maintenanceconfigurationsgetsample] | Gets the specified maintenance configuration of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsGet.json | +| [maintenanceConfigurationsListByManagedClusterSample.js][maintenanceconfigurationslistbymanagedclustersample] | Gets a list of maintenance configurations in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsList.json | +| [managedClustersAbortLatestOperationSample.js][managedclustersabortlatestoperationsample] | Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersAbortOperation.json | +| [managedClustersCreateOrUpdateSample.js][managedclusterscreateorupdatesample] | Creates or updates a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_Snapshot.json | +| [managedClustersDeleteSample.js][managedclustersdeletesample] | Deletes a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersDelete.json | +| [managedClustersGetAccessProfileSample.js][managedclustersgetaccessprofilesample] | **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGetAccessProfile.json | +| [managedClustersGetCommandResultSample.js][managedclustersgetcommandresultsample] | Gets the results of a command which has been run on the Managed Cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandResultFailed.json | +| [managedClustersGetMeshRevisionProfileSample.js][managedclustersgetmeshrevisionprofilesample] | Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet_MeshRevisionProfile.json | +| [managedClustersGetMeshUpgradeProfileSample.js][managedclustersgetmeshupgradeprofilesample] | Gets available upgrades for a service mesh in a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet_MeshUpgradeProfile.json | +| [managedClustersGetSample.js][managedclustersgetsample] | Gets a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet.json | +| [managedClustersGetUpgradeProfileSample.js][managedclustersgetupgradeprofilesample] | Gets the upgrade profile of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGetUpgradeProfile.json | +| [managedClustersListByResourceGroupSample.js][managedclusterslistbyresourcegroupsample] | Lists managed clusters in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListByResourceGroup.json | +| [managedClustersListClusterAdminCredentialsSample.js][managedclusterslistclusteradmincredentialssample] | Lists the admin credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterAdminCredentials.json | +| [managedClustersListClusterMonitoringUserCredentialsSample.js][managedclusterslistclustermonitoringusercredentialssample] | Lists the cluster monitoring user credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json | +| [managedClustersListClusterUserCredentialsSample.js][managedclusterslistclusterusercredentialssample] | Lists the user credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterUserCredentials.json | +| [managedClustersListKubernetesVersionsSample.js][managedclusterslistkubernetesversionssample] | Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/KubernetesVersions_List.json | +| [managedClustersListMeshRevisionProfilesSample.js][managedclusterslistmeshrevisionprofilessample] | Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList_MeshRevisionProfiles.json | +| [managedClustersListMeshUpgradeProfilesSample.js][managedclusterslistmeshupgradeprofilessample] | Lists available upgrades for all service meshes in a specific cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList_MeshUpgradeProfiles.json | +| [managedClustersListOutboundNetworkDependenciesEndpointsSample.js][managedclusterslistoutboundnetworkdependenciesendpointssample] | Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/OutboundNetworkDependenciesEndpointsList.json | +| [managedClustersListSample.js][managedclusterslistsample] | Gets a list of managed clusters in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList.json | +| [managedClustersResetAadProfileSample.js][managedclustersresetaadprofilesample] | **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersResetAADProfile.json | +| [managedClustersResetServicePrincipalProfileSample.js][managedclustersresetserviceprincipalprofilesample] | This action cannot be performed on a cluster that is not using a service principal x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersResetServicePrincipalProfile.json | +| [managedClustersRotateClusterCertificatesSample.js][managedclustersrotateclustercertificatessample] | See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersRotateClusterCertificates.json | +| [managedClustersRotateServiceAccountSigningKeysSample.js][managedclustersrotateserviceaccountsigningkeyssample] | Rotates the service account signing keys of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json | +| [managedClustersRunCommandSample.js][managedclustersruncommandsample] | AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandRequest.json | +| [managedClustersStartSample.js][managedclustersstartsample] | See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersStart.json | +| [managedClustersStopSample.js][managedclustersstopsample] | This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersStop.json | +| [managedClustersUpdateTagsSample.js][managedclustersupdatetagssample] | Updates tags on a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersUpdateTags.json | +| [operationsListSample.js][operationslistsample] | Gets a list of operations. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/Operation_List.json | +| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsDelete.json | +| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsGet.json | +| [privateEndpointConnectionsListSample.js][privateendpointconnectionslistsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsList.json | +| [privateEndpointConnectionsUpdateSample.js][privateendpointconnectionsupdatesample] | Updates a private endpoint connection. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsUpdate.json | +| [privateLinkResourcesListSample.js][privatelinkresourceslistsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateLinkResourcesList.json | +| [resolvePrivateLinkServiceIdPostSample.js][resolveprivatelinkserviceidpostsample] | Gets the private link service ID for the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ResolvePrivateLinkServiceId.json | +| [snapshotsCreateOrUpdateSample.js][snapshotscreateorupdatesample] | Creates or updates a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsCreate.json | +| [snapshotsDeleteSample.js][snapshotsdeletesample] | Deletes a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsDelete.json | +| [snapshotsGetSample.js][snapshotsgetsample] | Gets a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsGet.json | +| [snapshotsListByResourceGroupSample.js][snapshotslistbyresourcegroupsample] | Lists snapshots in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsListByResourceGroup.json | +| [snapshotsListSample.js][snapshotslistsample] | Gets a list of snapshots in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsList.json | +| [snapshotsUpdateTagsSample.js][snapshotsupdatetagssample] | Updates tags on a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsUpdateTags.json | +| [trustedAccessRoleBindingsCreateOrUpdateSample.js][trustedaccessrolebindingscreateorupdatesample] | Create or update a trusted access role binding x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json | +| [trustedAccessRoleBindingsDeleteSample.js][trustedaccessrolebindingsdeletesample] | Delete a trusted access role binding. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_Delete.json | +| [trustedAccessRoleBindingsGetSample.js][trustedaccessrolebindingsgetsample] | Get a trusted access role binding. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_Get.json | +| [trustedAccessRoleBindingsListSample.js][trustedaccessrolebindingslistsample] | List trusted access role bindings. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_List.json | +| [trustedAccessRolesListSample.js][trustedaccessroleslistsample] | List supported trusted access roles. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoles_List.json | ## Prerequisites diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsAbortLatestOperationSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsAbortLatestOperationSample.js index 231fe807522b..c2b693f36bf6 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsAbortLatestOperationSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsAbortLatestOperationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. * * @summary Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsAbortOperation.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsAbortOperation.json */ async function abortOperationOnAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsCreateOrUpdateSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsCreateOrUpdateSample.js index 4263bdb2ed2e..70e2b0f7d524 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsCreateOrUpdateSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Snapshot.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Snapshot.json */ async function createAgentPoolUsingAnAgentPoolSnapshot() { const subscriptionId = @@ -50,7 +50,7 @@ async function createAgentPoolUsingAnAgentPoolSnapshot() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_CRG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_CRG.json */ async function createAgentPoolWithCapacityReservationGroup() { const subscriptionId = @@ -81,7 +81,7 @@ async function createAgentPoolWithCapacityReservationGroup() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_DedicatedHostGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_DedicatedHostGroup.json */ async function createAgentPoolWithDedicatedHostGroup() { const subscriptionId = @@ -112,7 +112,7 @@ async function createAgentPoolWithDedicatedHostGroup() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_EnableEncryptionAtHost.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_EnableEncryptionAtHost.json */ async function createAgentPoolWithEncryptionAtHostEnabled() { const subscriptionId = @@ -142,7 +142,7 @@ async function createAgentPoolWithEncryptionAtHostEnabled() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Ephemeral.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Ephemeral.json */ async function createAgentPoolWithEphemeralOSDisk() { const subscriptionId = @@ -173,7 +173,7 @@ async function createAgentPoolWithEphemeralOSDisk() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_EnableFIPS.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_EnableFIPS.json */ async function createAgentPoolWithFipsEnabledOS() { const subscriptionId = @@ -203,7 +203,7 @@ async function createAgentPoolWithFipsEnabledOS() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_GPUMIG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_GPUMIG.json */ async function createAgentPoolWithGpumig() { const subscriptionId = @@ -254,7 +254,7 @@ async function createAgentPoolWithGpumig() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_WasmWasi.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_WasmWasi.json */ async function createAgentPoolWithKrustletAndTheWasiRuntime() { const subscriptionId = @@ -286,7 +286,7 @@ async function createAgentPoolWithKrustletAndTheWasiRuntime() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_CustomNodeConfig.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_CustomNodeConfig.json */ async function createAgentPoolWithKubeletConfigAndLinuxOSConfig() { const subscriptionId = @@ -336,7 +336,7 @@ async function createAgentPoolWithKubeletConfigAndLinuxOSConfig() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_OSSKU.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_OSSKU.json */ async function createAgentPoolWithOssku() { const subscriptionId = @@ -387,7 +387,7 @@ async function createAgentPoolWithOssku() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_PPG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_PPG.json */ async function createAgentPoolWithPpg() { const subscriptionId = @@ -418,7 +418,7 @@ async function createAgentPoolWithPpg() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_EnableUltraSSD.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_EnableUltraSSD.json */ async function createAgentPoolWithUltraSsdEnabled() { const subscriptionId = @@ -448,7 +448,7 @@ async function createAgentPoolWithUltraSsdEnabled() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_WindowsOSSKU.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_WindowsOSSKU.json */ async function createAgentPoolWithWindowsOssku() { const subscriptionId = @@ -478,7 +478,7 @@ async function createAgentPoolWithWindowsOssku() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Spot.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Spot.json */ async function createSpotAgentPool() { const subscriptionId = @@ -512,7 +512,7 @@ async function createSpotAgentPool() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json */ async function createWindowsAgentPoolWithDisablingOutboundNat() { const subscriptionId = @@ -543,7 +543,7 @@ async function createWindowsAgentPoolWithDisablingOutboundNat() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Update.json */ async function createOrUpdateAgentPool() { const subscriptionId = @@ -578,7 +578,7 @@ async function createOrUpdateAgentPool() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPools_Start.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPools_Start.json */ async function startAgentPool() { const subscriptionId = @@ -602,7 +602,7 @@ async function startAgentPool() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPools_Stop.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPools_Stop.json */ async function stopAgentPool() { const subscriptionId = @@ -626,7 +626,7 @@ async function stopAgentPool() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPools_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPools_Update.json */ async function updateAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsDeleteMachinesSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsDeleteMachinesSample.js index b6da8c8d731b..c0838c9c1b51 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsDeleteMachinesSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsDeleteMachinesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes specific machines in an agent pool. * * @summary Deletes specific machines in an agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsDeleteMachines.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsDeleteMachines.json */ async function deleteSpecificMachinesInAnAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsDeleteSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsDeleteSample.js index 94dc46eae9c2..09c74baa6e81 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsDeleteSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an agent pool in the specified managed cluster. * * @summary Deletes an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsDelete.json */ async function deleteAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsGetAvailableAgentPoolVersionsSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsGetAvailableAgentPoolVersionsSample.js index 9b40436ed0ec..c527e97b2319 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsGetAvailableAgentPoolVersionsSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsGetAvailableAgentPoolVersionsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. * * @summary See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json */ async function getAvailableVersionsForAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsGetSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsGetSample.js index c53a9cea72ed..51455349bb15 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsGetSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the specified managed cluster agent pool. * * @summary Gets the specified managed cluster agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGet.json */ async function getAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsGetUpgradeProfileSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsGetUpgradeProfileSample.js index eae3d291c4b2..398640a56b57 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsGetUpgradeProfileSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsGetUpgradeProfileSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the upgrade profile for an agent pool. * * @summary Gets the upgrade profile for an agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGetUpgradeProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGetUpgradeProfile.json */ async function getUpgradeProfileForAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsListSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsListSample.js index 78eb31751460..249c39367f96 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsListSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of agent pools in the specified managed cluster. * * @summary Gets a list of agent pools in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsList.json */ async function listAgentPoolsByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsUpgradeNodeImageVersionSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsUpgradeNodeImageVersionSample.js index db473b1ec517..0a0cbbc87899 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsUpgradeNodeImageVersionSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/agentPoolsUpgradeNodeImageVersionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade * * @summary Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsUpgradeNodeImageVersion.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsUpgradeNodeImageVersion.json */ async function upgradeAgentPoolNodeImageVersion() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/machinesGetSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/machinesGetSample.js index 8bf72f78bd0e..f1987c1f726a 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/machinesGetSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/machinesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a specific machine in the specified agent pool. * * @summary Get a specific machine in the specified agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MachineGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MachineGet.json */ async function getAMachineInAnAgentPoolsByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/machinesListSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/machinesListSample.js index ee068a86a99b..2185d5581334 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/machinesListSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/machinesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of machines in the specified agent pool. * * @summary Gets a list of machines in the specified agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MachineList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MachineList.json */ async function listMachinesInAnAgentpoolByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsCreateOrUpdateSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsCreateOrUpdateSample.js index 5ca665ae3343..edbad47bd13b 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsCreateOrUpdateSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates a maintenance configuration in the specified managed cluster. * * @summary Creates or updates a maintenance configuration in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsCreate_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsCreate_Update.json */ async function createOrUpdateMaintenanceConfiguration() { const subscriptionId = @@ -48,7 +48,7 @@ async function createOrUpdateMaintenanceConfiguration() { * This sample demonstrates how to Creates or updates a maintenance configuration in the specified managed cluster. * * @summary Creates or updates a maintenance configuration in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json */ async function createOrUpdateMaintenanceConfigurationWithMaintenanceWindow() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsDeleteSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsDeleteSample.js index 4d9d525644b8..4b7ff86f1f1b 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsDeleteSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a maintenance configuration. * * @summary Deletes a maintenance configuration. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsDelete.json */ async function deleteMaintenanceConfiguration() { const subscriptionId = @@ -38,7 +38,7 @@ async function deleteMaintenanceConfiguration() { * This sample demonstrates how to Deletes a maintenance configuration. * * @summary Deletes a maintenance configuration. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsDelete_MaintenanceWindow.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsDelete_MaintenanceWindow.json */ async function deleteMaintenanceConfigurationForNodeOSUpgrade() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsGetSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsGetSample.js index 256049e35106..b054acd165e9 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsGetSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the specified maintenance configuration of a managed cluster. * * @summary Gets the specified maintenance configuration of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsGet.json */ async function getMaintenanceConfiguration() { const subscriptionId = @@ -38,7 +38,7 @@ async function getMaintenanceConfiguration() { * This sample demonstrates how to Gets the specified maintenance configuration of a managed cluster. * * @summary Gets the specified maintenance configuration of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsGet_MaintenanceWindow.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsGet_MaintenanceWindow.json */ async function getMaintenanceConfigurationConfiguredWithMaintenanceWindow() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsListByManagedClusterSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsListByManagedClusterSample.js index 29b88ba92ed5..6dadc9e26344 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsListByManagedClusterSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/maintenanceConfigurationsListByManagedClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of maintenance configurations in the specified managed cluster. * * @summary Gets a list of maintenance configurations in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsList.json */ async function listMaintenanceConfigurationsByManagedCluster() { const subscriptionId = @@ -39,7 +39,7 @@ async function listMaintenanceConfigurationsByManagedCluster() { * This sample demonstrates how to Gets a list of maintenance configurations in the specified managed cluster. * * @summary Gets a list of maintenance configurations in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsList_MaintenanceWindow.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsList_MaintenanceWindow.json */ async function listMaintenanceConfigurationsConfiguredWithMaintenanceWindowByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersAbortLatestOperationSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersAbortLatestOperationSample.js index 582d0968c365..85d19a00305a 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersAbortLatestOperationSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersAbortLatestOperationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. * * @summary Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersAbortOperation.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersAbortOperation.json */ async function abortOperationOnManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersCreateOrUpdateSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersCreateOrUpdateSample.js index 0abdbaded664..97396d17ad16 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersCreateOrUpdateSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Snapshot.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_Snapshot.json */ async function createManagedClusterUsingAnAgentPoolSnapshot() { const subscriptionId = @@ -80,7 +80,7 @@ async function createManagedClusterUsingAnAgentPoolSnapshot() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_ManagedNATGateway.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_ManagedNATGateway.json */ async function createManagedClusterWithAksManagedNatGatewayAsOutboundType() { const subscriptionId = @@ -139,7 +139,7 @@ async function createManagedClusterWithAksManagedNatGatewayAsOutboundType() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_AzureKeyvaultSecretsProvider.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_AzureKeyvaultSecretsProvider.json */ async function createManagedClusterWithAzureKeyVaultSecretsProviderAddon() { const subscriptionId = @@ -203,7 +203,7 @@ async function createManagedClusterWithAzureKeyVaultSecretsProviderAddon() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_CRG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_CRG.json */ async function createManagedClusterWithCapacityReservationGroup() { const subscriptionId = @@ -264,7 +264,7 @@ async function createManagedClusterWithCapacityReservationGroup() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_DedicatedHostGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_DedicatedHostGroup.json */ async function createManagedClusterWithDedicatedHostGroup() { const subscriptionId = @@ -324,7 +324,7 @@ async function createManagedClusterWithDedicatedHostGroup() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_EnableEncryptionAtHost.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_EnableEncryptionAtHost.json */ async function createManagedClusterWithEncryptionAtHostEnabled() { const subscriptionId = @@ -384,7 +384,7 @@ async function createManagedClusterWithEncryptionAtHostEnabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_EnabledFIPS.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_EnabledFIPS.json */ async function createManagedClusterWithFipsEnabledOS() { const subscriptionId = @@ -444,7 +444,7 @@ async function createManagedClusterWithFipsEnabledOS() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_GPUMIG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_GPUMIG.json */ async function createManagedClusterWithGpumig() { const subscriptionId = @@ -510,7 +510,7 @@ async function createManagedClusterWithGpumig() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_HTTPProxy.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_HTTPProxy.json */ async function createManagedClusterWithHttpProxyConfigured() { const subscriptionId = @@ -575,7 +575,7 @@ async function createManagedClusterWithHttpProxyConfigured() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Premium.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_Premium.json */ async function createManagedClusterWithLongTermSupport() { const subscriptionId = @@ -635,7 +635,7 @@ async function createManagedClusterWithLongTermSupport() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_NodePublicIPPrefix.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_NodePublicIPPrefix.json */ async function createManagedClusterWithNodePublicIPPrefix() { const subscriptionId = @@ -696,7 +696,7 @@ async function createManagedClusterWithNodePublicIPPrefix() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_OSSKU.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_OSSKU.json */ async function createManagedClusterWithOssku() { const subscriptionId = @@ -762,7 +762,7 @@ async function createManagedClusterWithOssku() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PPG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_PPG.json */ async function createManagedClusterWithPpg() { const subscriptionId = @@ -823,7 +823,7 @@ async function createManagedClusterWithPpg() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PodIdentity.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_PodIdentity.json */ async function createManagedClusterWithPodIdentityEnabled() { const subscriptionId = @@ -883,7 +883,7 @@ async function createManagedClusterWithPodIdentityEnabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_DisableRunCommand.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_DisableRunCommand.json */ async function createManagedClusterWithRunCommandDisabled() { const subscriptionId = @@ -942,7 +942,7 @@ async function createManagedClusterWithRunCommandDisabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_SecurityProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_SecurityProfile.json */ async function createManagedClusterWithSecurityProfileConfigured() { const subscriptionId = @@ -998,7 +998,7 @@ async function createManagedClusterWithSecurityProfileConfigured() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_EnableUltraSSD.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_EnableUltraSSD.json */ async function createManagedClusterWithUltraSsdEnabled() { const subscriptionId = @@ -1058,7 +1058,7 @@ async function createManagedClusterWithUltraSsdEnabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_IngressProfile_WebAppRouting.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_IngressProfile_WebAppRouting.json */ async function createManagedClusterWithWebAppRoutingIngressProfileConfigured() { const subscriptionId = @@ -1114,7 +1114,7 @@ async function createManagedClusterWithWebAppRoutingIngressProfileConfigured() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UserAssignedNATGateway.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_UserAssignedNATGateway.json */ async function createManagedClusterWithUserAssignedNatGatewayAsOutboundType() { const subscriptionId = @@ -1172,7 +1172,7 @@ async function createManagedClusterWithUserAssignedNatGatewayAsOutboundType() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PrivateClusterPublicFQDN.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_PrivateClusterPublicFQDN.json */ async function createManagedPrivateClusterWithPublicFqdnSpecified() { const subscriptionId = @@ -1234,7 +1234,7 @@ async function createManagedPrivateClusterWithPublicFqdnSpecified() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PrivateClusterFQDNSubdomain.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_PrivateClusterFQDNSubdomain.json */ async function createManagedPrivateClusterWithFqdnSubdomainSpecified() { const subscriptionId = @@ -1297,7 +1297,7 @@ async function createManagedPrivateClusterWithFqdnSubdomainSpecified() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UpdateWithEnableAzureRBAC.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_UpdateWithEnableAzureRBAC.json */ async function createOrUpdateAadManagedClusterWithEnableAzureRbac() { const subscriptionId = @@ -1358,7 +1358,7 @@ async function createOrUpdateAadManagedClusterWithEnableAzureRbac() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_Update.json */ async function createOrUpdateManagedCluster() { const subscriptionId = @@ -1440,7 +1440,7 @@ async function createOrUpdateManagedCluster() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_AzureServiceMesh.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_AzureServiceMesh.json */ async function createOrUpdateManagedClusterWithAzureServiceMesh() { const subscriptionId = @@ -1523,7 +1523,7 @@ async function createOrUpdateManagedClusterWithAzureServiceMesh() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UpdateWithAHUB.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_UpdateWithAHUB.json */ async function createOrUpdateManagedClusterWithEnableAhub() { const subscriptionId = @@ -1591,7 +1591,7 @@ async function createOrUpdateManagedClusterWithEnableAhub() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UpdateWindowsGmsa.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_UpdateWindowsGmsa.json */ async function createOrUpdateManagedClusterWithWindowsGMsaEnabled() { const subscriptionId = @@ -1659,7 +1659,7 @@ async function createOrUpdateManagedClusterWithWindowsGMsaEnabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_DualStackNetworking.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_DualStackNetworking.json */ async function createOrUpdateManagedClusterWithDualStackNetworking() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersDeleteSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersDeleteSample.js index ea3978f52132..b881813c73e4 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersDeleteSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a managed cluster. * * @summary Deletes a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersDelete.json */ async function deleteManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetAccessProfileSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetAccessProfileSample.js index 53114a508e62..70f404170317 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetAccessProfileSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetAccessProfileSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . * * @summary **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGetAccessProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGetAccessProfile.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetCommandResultSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetCommandResultSample.js index 6731bda7691e..7bfd720ae8cf 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetCommandResultSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetCommandResultSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the results of a command which has been run on the Managed Cluster. * * @summary Gets the results of a command which has been run on the Managed Cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandResultFailed.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandResultFailed.json */ async function commandFailedResult() { const subscriptionId = @@ -38,7 +38,7 @@ async function commandFailedResult() { * This sample demonstrates how to Gets the results of a command which has been run on the Managed Cluster. * * @summary Gets the results of a command which has been run on the Managed Cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandResultSucceed.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandResultSucceed.json */ async function commandSucceedResult() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetMeshRevisionProfileSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetMeshRevisionProfileSample.js index 40db2c3a5a8e..d7ca253b16d6 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetMeshRevisionProfileSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetMeshRevisionProfileSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades * * @summary Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet_MeshRevisionProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet_MeshRevisionProfile.json */ async function getAMeshRevisionProfileForAMeshMode() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetMeshUpgradeProfileSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetMeshUpgradeProfileSample.js index 5777491a4ef8..e2975bb660cd 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetMeshUpgradeProfileSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetMeshUpgradeProfileSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets available upgrades for a service mesh in a cluster. * * @summary Gets available upgrades for a service mesh in a cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet_MeshUpgradeProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet_MeshUpgradeProfile.json */ async function getsVersionCompatibilityAndUpgradeProfileForAServiceMeshInACluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetSample.js index 1e069b758bfb..cfe9d58e55d0 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a managed cluster. * * @summary Gets a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetUpgradeProfileSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetUpgradeProfileSample.js index 0ee28a9d38e0..37fa5c2e3246 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetUpgradeProfileSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersGetUpgradeProfileSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the upgrade profile of a managed cluster. * * @summary Gets the upgrade profile of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGetUpgradeProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGetUpgradeProfile.json */ async function getUpgradeProfileForManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListByResourceGroupSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListByResourceGroupSample.js index 89186a964d7f..70955f6b4ea8 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListByResourceGroupSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists managed clusters in the specified subscription and resource group. * * @summary Lists managed clusters in the specified subscription and resource group. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListByResourceGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListByResourceGroup.json */ async function getManagedClustersByResourceGroup() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListClusterAdminCredentialsSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListClusterAdminCredentialsSample.js index dafe84f9ae58..e1612cb820bd 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListClusterAdminCredentialsSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListClusterAdminCredentialsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the admin credentials of a managed cluster. * * @summary Lists the admin credentials of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterAdminCredentials.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterAdminCredentials.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListClusterMonitoringUserCredentialsSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListClusterMonitoringUserCredentialsSample.js index 3b269fa7cf59..adf13affdbaf 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListClusterMonitoringUserCredentialsSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListClusterMonitoringUserCredentialsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the cluster monitoring user credentials of a managed cluster. * * @summary Lists the cluster monitoring user credentials of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListClusterUserCredentialsSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListClusterUserCredentialsSample.js index a2dedbe8d7f1..66cfe34f9763 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListClusterUserCredentialsSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListClusterUserCredentialsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the user credentials of a managed cluster. * * @summary Lists the user credentials of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterUserCredentials.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterUserCredentials.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListKubernetesVersionsSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListKubernetesVersionsSample.js index f77a077a2391..bbad890b0c0f 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListKubernetesVersionsSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListKubernetesVersionsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version * * @summary Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/KubernetesVersions_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/KubernetesVersions_List.json */ async function listKubernetesVersions() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListMeshRevisionProfilesSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListMeshRevisionProfilesSample.js index bb035fc3f6f1..bc4629ebd12c 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListMeshRevisionProfilesSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListMeshRevisionProfilesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades * * @summary Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList_MeshRevisionProfiles.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList_MeshRevisionProfiles.json */ async function listMeshRevisionProfilesInALocation() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListMeshUpgradeProfilesSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListMeshUpgradeProfilesSample.js index 19304149734e..477798f0cc2f 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListMeshUpgradeProfilesSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListMeshUpgradeProfilesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists available upgrades for all service meshes in a specific cluster. * * @summary Lists available upgrades for all service meshes in a specific cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList_MeshUpgradeProfiles.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList_MeshUpgradeProfiles.json */ async function listsVersionCompatibilityAndUpgradeProfileForAllServiceMeshesInACluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListOutboundNetworkDependenciesEndpointsSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListOutboundNetworkDependenciesEndpointsSample.js index 6c50dada8da6..395a209ec7b1 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListOutboundNetworkDependenciesEndpointsSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListOutboundNetworkDependenciesEndpointsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. * * @summary Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/OutboundNetworkDependenciesEndpointsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/OutboundNetworkDependenciesEndpointsList.json */ async function listOutboundNetworkDependenciesEndpointsByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListSample.js index 5a06acf21876..636ece85a286 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of managed clusters in the specified subscription. * * @summary Gets a list of managed clusters in the specified subscription. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList.json */ async function listManagedClusters() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersResetAadProfileSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersResetAadProfileSample.js index 503f0775d131..f2bc073283d7 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersResetAadProfileSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersResetAadProfileSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. * * @summary **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersResetAADProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersResetAADProfile.json */ async function resetAadProfile() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersResetServicePrincipalProfileSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersResetServicePrincipalProfileSample.js index fcf6b58c7e13..66e7387fb426 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersResetServicePrincipalProfileSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersResetServicePrincipalProfileSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This action cannot be performed on a cluster that is not using a service principal * * @summary This action cannot be performed on a cluster that is not using a service principal - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersResetServicePrincipalProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersResetServicePrincipalProfile.json */ async function resetServicePrincipalProfile() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersRotateClusterCertificatesSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersRotateClusterCertificatesSample.js index 22e964b8c5e1..141c3c6b0b96 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersRotateClusterCertificatesSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersRotateClusterCertificatesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. * * @summary See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersRotateClusterCertificates.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersRotateClusterCertificates.json */ async function rotateClusterCertificates() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersRotateServiceAccountSigningKeysSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersRotateServiceAccountSigningKeysSample.js index b5158e2eef19..08f5f5f0bf70 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersRotateServiceAccountSigningKeysSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersRotateServiceAccountSigningKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Rotates the service account signing keys of a managed cluster. * * @summary Rotates the service account signing keys of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json */ async function rotateClusterServiceAccountSigningKeys() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersRunCommandSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersRunCommandSample.js index fed96e658926..2b0bd2616c08 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersRunCommandSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersRunCommandSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). * * @summary AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandRequest.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandRequest.json */ async function submitNewCommand() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersStartSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersStartSample.js index 6829eaa8a29d..8992fe9b345e 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersStartSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersStartSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. * * @summary See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersStart.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersStart.json */ async function startManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersStopSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersStopSample.js index 4c07379d20f1..f7ecc1d6d33b 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersStopSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersStopSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. * * @summary This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersStop.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersStop.json */ async function stopManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersUpdateTagsSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersUpdateTagsSample.js index 9e362bd495a4..2595485e6b5b 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersUpdateTagsSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/managedClustersUpdateTagsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates tags on a managed cluster. * * @summary Updates tags on a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersUpdateTags.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersUpdateTags.json */ async function updateManagedClusterTags() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/operationsListSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/operationsListSample.js index b12bb7798590..d798e53b8a5c 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/operationsListSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of operations. * * @summary Gets a list of operations. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/Operation_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/Operation_List.json */ async function listAvailableOperationsForTheContainerServiceResourceProvider() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsDeleteSample.js index 4e5d3c0421c5..bd437b133b9c 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsDeleteSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a private endpoint connection. * * @summary Deletes a private endpoint connection. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsDelete.json */ async function deletePrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsGetSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsGetSample.js index 266678e10ca0..1ccafe103835 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsGetSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters * * @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsGet.json */ async function getPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsListSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsListSample.js index 640e49b5a7a3..3a236f658c12 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsListSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters * * @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsList.json */ async function listPrivateEndpointConnectionsByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsUpdateSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsUpdateSample.js index 43dc603f74db..ae3f9cdfd1f3 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsUpdateSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateEndpointConnectionsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates a private endpoint connection. * * @summary Updates a private endpoint connection. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsUpdate.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsUpdate.json */ async function updatePrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateLinkResourcesListSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateLinkResourcesListSample.js index 25fc0b564ca2..ed2193e67f94 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateLinkResourcesListSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/privateLinkResourcesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters * * @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateLinkResourcesList.json */ async function listPrivateLinkResourcesByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/resolvePrivateLinkServiceIdPostSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/resolvePrivateLinkServiceIdPostSample.js index 19f690ce7de8..e5835664fa56 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/resolvePrivateLinkServiceIdPostSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/resolvePrivateLinkServiceIdPostSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the private link service ID for the specified managed cluster. * * @summary Gets the private link service ID for the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ResolvePrivateLinkServiceId.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ResolvePrivateLinkServiceId.json */ async function resolveThePrivateLinkServiceIdForManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/sample.env b/sdk/containerservice/arm-containerservice/samples/v21/javascript/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/sample.env +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsCreateOrUpdateSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsCreateOrUpdateSample.js index 780c4b744ea7..a9f69f1ca109 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsCreateOrUpdateSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates a snapshot. * * @summary Creates or updates a snapshot. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsCreate.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsCreate.json */ async function createOrUpdateSnapshot() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsDeleteSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsDeleteSample.js index 4a55d2c71899..c6022c96b8f3 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsDeleteSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a snapshot. * * @summary Deletes a snapshot. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsDelete.json */ async function deleteSnapshot() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsGetSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsGetSample.js index a479ef599e1a..b316dfcc1857 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsGetSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a snapshot. * * @summary Gets a snapshot. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsGet.json */ async function getSnapshot() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsListByResourceGroupSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsListByResourceGroupSample.js index 316fd37b91f5..3b8586afd47c 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsListByResourceGroupSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists snapshots in the specified subscription and resource group. * * @summary Lists snapshots in the specified subscription and resource group. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsListByResourceGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsListByResourceGroup.json */ async function listSnapshotsByResourceGroup() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsListSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsListSample.js index c2f3da6affd1..76c98358287e 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsListSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of snapshots in the specified subscription. * * @summary Gets a list of snapshots in the specified subscription. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsList.json */ async function listSnapshots() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsUpdateTagsSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsUpdateTagsSample.js index 30f5f6ab05c6..fef44d7bf1bd 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsUpdateTagsSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/snapshotsUpdateTagsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates tags on a snapshot. * * @summary Updates tags on a snapshot. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsUpdateTags.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsUpdateTags.json */ async function updateSnapshotTags() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsCreateOrUpdateSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsCreateOrUpdateSample.js index 0e100b9d0d4c..36469adaa304 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsCreateOrUpdateSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a trusted access role binding * * @summary Create or update a trusted access role binding - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json */ async function createOrUpdateATrustedAccessRoleBinding() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsDeleteSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsDeleteSample.js index fbf81cc95b14..b61c4b64ef62 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsDeleteSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a trusted access role binding. * * @summary Delete a trusted access role binding. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_Delete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_Delete.json */ async function deleteATrustedAccessRoleBinding() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsGetSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsGetSample.js index 7c6da7ef2280..38e77459c863 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsGetSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a trusted access role binding. * * @summary Get a trusted access role binding. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_Get.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_Get.json */ async function getATrustedAccessRoleBinding() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsListSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsListSample.js index 23c94edd92fc..2d11e4139dea 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsListSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRoleBindingsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List trusted access role bindings. * * @summary List trusted access role bindings. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_List.json */ async function listTrustedAccessRoleBindings() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRolesListSample.js b/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRolesListSample.js index 8d21d04bd360..a31c410a385d 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRolesListSample.js +++ b/sdk/containerservice/arm-containerservice/samples/v21/javascript/trustedAccessRolesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List supported trusted access roles. * * @summary List supported trusted access roles. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoles_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoles_List.json */ async function listTrustedAccessRoles() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/README.md b/sdk/containerservice/arm-containerservice/samples/v21/typescript/README.md index d2eb087e7795..3b98e786b602 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/README.md +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/README.md @@ -4,65 +4,65 @@ These sample programs show how to use the TypeScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [agentPoolsAbortLatestOperationSample.ts][agentpoolsabortlatestoperationsample] | Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsAbortOperation.json | -| [agentPoolsCreateOrUpdateSample.ts][agentpoolscreateorupdatesample] | Creates or updates an agent pool in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Snapshot.json | -| [agentPoolsDeleteMachinesSample.ts][agentpoolsdeletemachinessample] | Deletes specific machines in an agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsDeleteMachines.json | -| [agentPoolsDeleteSample.ts][agentpoolsdeletesample] | Deletes an agent pool in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsDelete.json | -| [agentPoolsGetAvailableAgentPoolVersionsSample.ts][agentpoolsgetavailableagentpoolversionssample] | See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json | -| [agentPoolsGetSample.ts][agentpoolsgetsample] | Gets the specified managed cluster agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGet.json | -| [agentPoolsGetUpgradeProfileSample.ts][agentpoolsgetupgradeprofilesample] | Gets the upgrade profile for an agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGetUpgradeProfile.json | -| [agentPoolsListSample.ts][agentpoolslistsample] | Gets a list of agent pools in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsList.json | -| [agentPoolsUpgradeNodeImageVersionSample.ts][agentpoolsupgradenodeimageversionsample] | Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsUpgradeNodeImageVersion.json | -| [machinesGetSample.ts][machinesgetsample] | Get a specific machine in the specified agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MachineGet.json | -| [machinesListSample.ts][machineslistsample] | Gets a list of machines in the specified agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MachineList.json | -| [maintenanceConfigurationsCreateOrUpdateSample.ts][maintenanceconfigurationscreateorupdatesample] | Creates or updates a maintenance configuration in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsCreate_Update.json | -| [maintenanceConfigurationsDeleteSample.ts][maintenanceconfigurationsdeletesample] | Deletes a maintenance configuration. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsDelete.json | -| [maintenanceConfigurationsGetSample.ts][maintenanceconfigurationsgetsample] | Gets the specified maintenance configuration of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsGet.json | -| [maintenanceConfigurationsListByManagedClusterSample.ts][maintenanceconfigurationslistbymanagedclustersample] | Gets a list of maintenance configurations in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsList.json | -| [managedClustersAbortLatestOperationSample.ts][managedclustersabortlatestoperationsample] | Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersAbortOperation.json | -| [managedClustersCreateOrUpdateSample.ts][managedclusterscreateorupdatesample] | Creates or updates a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Snapshot.json | -| [managedClustersDeleteSample.ts][managedclustersdeletesample] | Deletes a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersDelete.json | -| [managedClustersGetAccessProfileSample.ts][managedclustersgetaccessprofilesample] | **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGetAccessProfile.json | -| [managedClustersGetCommandResultSample.ts][managedclustersgetcommandresultsample] | Gets the results of a command which has been run on the Managed Cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandResultFailed.json | -| [managedClustersGetMeshRevisionProfileSample.ts][managedclustersgetmeshrevisionprofilesample] | Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet_MeshRevisionProfile.json | -| [managedClustersGetMeshUpgradeProfileSample.ts][managedclustersgetmeshupgradeprofilesample] | Gets available upgrades for a service mesh in a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet_MeshUpgradeProfile.json | -| [managedClustersGetSample.ts][managedclustersgetsample] | Gets a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet.json | -| [managedClustersGetUpgradeProfileSample.ts][managedclustersgetupgradeprofilesample] | Gets the upgrade profile of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGetUpgradeProfile.json | -| [managedClustersListByResourceGroupSample.ts][managedclusterslistbyresourcegroupsample] | Lists managed clusters in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListByResourceGroup.json | -| [managedClustersListClusterAdminCredentialsSample.ts][managedclusterslistclusteradmincredentialssample] | Lists the admin credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterAdminCredentials.json | -| [managedClustersListClusterMonitoringUserCredentialsSample.ts][managedclusterslistclustermonitoringusercredentialssample] | Lists the cluster monitoring user credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json | -| [managedClustersListClusterUserCredentialsSample.ts][managedclusterslistclusterusercredentialssample] | Lists the user credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterUserCredentials.json | -| [managedClustersListKubernetesVersionsSample.ts][managedclusterslistkubernetesversionssample] | Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/KubernetesVersions_List.json | -| [managedClustersListMeshRevisionProfilesSample.ts][managedclusterslistmeshrevisionprofilessample] | Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList_MeshRevisionProfiles.json | -| [managedClustersListMeshUpgradeProfilesSample.ts][managedclusterslistmeshupgradeprofilessample] | Lists available upgrades for all service meshes in a specific cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList_MeshUpgradeProfiles.json | -| [managedClustersListOutboundNetworkDependenciesEndpointsSample.ts][managedclusterslistoutboundnetworkdependenciesendpointssample] | Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/OutboundNetworkDependenciesEndpointsList.json | -| [managedClustersListSample.ts][managedclusterslistsample] | Gets a list of managed clusters in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList.json | -| [managedClustersResetAadProfileSample.ts][managedclustersresetaadprofilesample] | **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersResetAADProfile.json | -| [managedClustersResetServicePrincipalProfileSample.ts][managedclustersresetserviceprincipalprofilesample] | This action cannot be performed on a cluster that is not using a service principal x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersResetServicePrincipalProfile.json | -| [managedClustersRotateClusterCertificatesSample.ts][managedclustersrotateclustercertificatessample] | See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersRotateClusterCertificates.json | -| [managedClustersRotateServiceAccountSigningKeysSample.ts][managedclustersrotateserviceaccountsigningkeyssample] | Rotates the service account signing keys of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json | -| [managedClustersRunCommandSample.ts][managedclustersruncommandsample] | AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandRequest.json | -| [managedClustersStartSample.ts][managedclustersstartsample] | See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersStart.json | -| [managedClustersStopSample.ts][managedclustersstopsample] | This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersStop.json | -| [managedClustersUpdateTagsSample.ts][managedclustersupdatetagssample] | Updates tags on a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersUpdateTags.json | -| [operationsListSample.ts][operationslistsample] | Gets a list of operations. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/Operation_List.json | -| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsDelete.json | -| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsGet.json | -| [privateEndpointConnectionsListSample.ts][privateendpointconnectionslistsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsList.json | -| [privateEndpointConnectionsUpdateSample.ts][privateendpointconnectionsupdatesample] | Updates a private endpoint connection. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsUpdate.json | -| [privateLinkResourcesListSample.ts][privatelinkresourceslistsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateLinkResourcesList.json | -| [resolvePrivateLinkServiceIdPostSample.ts][resolveprivatelinkserviceidpostsample] | Gets the private link service ID for the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ResolvePrivateLinkServiceId.json | -| [snapshotsCreateOrUpdateSample.ts][snapshotscreateorupdatesample] | Creates or updates a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsCreate.json | -| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Deletes a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsDelete.json | -| [snapshotsGetSample.ts][snapshotsgetsample] | Gets a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsGet.json | -| [snapshotsListByResourceGroupSample.ts][snapshotslistbyresourcegroupsample] | Lists snapshots in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsListByResourceGroup.json | -| [snapshotsListSample.ts][snapshotslistsample] | Gets a list of snapshots in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsList.json | -| [snapshotsUpdateTagsSample.ts][snapshotsupdatetagssample] | Updates tags on a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsUpdateTags.json | -| [trustedAccessRoleBindingsCreateOrUpdateSample.ts][trustedaccessrolebindingscreateorupdatesample] | Create or update a trusted access role binding x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json | -| [trustedAccessRoleBindingsDeleteSample.ts][trustedaccessrolebindingsdeletesample] | Delete a trusted access role binding. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_Delete.json | -| [trustedAccessRoleBindingsGetSample.ts][trustedaccessrolebindingsgetsample] | Get a trusted access role binding. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_Get.json | -| [trustedAccessRoleBindingsListSample.ts][trustedaccessrolebindingslistsample] | List trusted access role bindings. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_List.json | -| [trustedAccessRolesListSample.ts][trustedaccessroleslistsample] | List supported trusted access roles. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoles_List.json | +| [agentPoolsAbortLatestOperationSample.ts][agentpoolsabortlatestoperationsample] | Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsAbortOperation.json | +| [agentPoolsCreateOrUpdateSample.ts][agentpoolscreateorupdatesample] | Creates or updates an agent pool in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Snapshot.json | +| [agentPoolsDeleteMachinesSample.ts][agentpoolsdeletemachinessample] | Deletes specific machines in an agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsDeleteMachines.json | +| [agentPoolsDeleteSample.ts][agentpoolsdeletesample] | Deletes an agent pool in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsDelete.json | +| [agentPoolsGetAvailableAgentPoolVersionsSample.ts][agentpoolsgetavailableagentpoolversionssample] | See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json | +| [agentPoolsGetSample.ts][agentpoolsgetsample] | Gets the specified managed cluster agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGet.json | +| [agentPoolsGetUpgradeProfileSample.ts][agentpoolsgetupgradeprofilesample] | Gets the upgrade profile for an agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGetUpgradeProfile.json | +| [agentPoolsListSample.ts][agentpoolslistsample] | Gets a list of agent pools in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsList.json | +| [agentPoolsUpgradeNodeImageVersionSample.ts][agentpoolsupgradenodeimageversionsample] | Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsUpgradeNodeImageVersion.json | +| [machinesGetSample.ts][machinesgetsample] | Get a specific machine in the specified agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MachineGet.json | +| [machinesListSample.ts][machineslistsample] | Gets a list of machines in the specified agent pool. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MachineList.json | +| [maintenanceConfigurationsCreateOrUpdateSample.ts][maintenanceconfigurationscreateorupdatesample] | Creates or updates a maintenance configuration in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsCreate_Update.json | +| [maintenanceConfigurationsDeleteSample.ts][maintenanceconfigurationsdeletesample] | Deletes a maintenance configuration. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsDelete.json | +| [maintenanceConfigurationsGetSample.ts][maintenanceconfigurationsgetsample] | Gets the specified maintenance configuration of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsGet.json | +| [maintenanceConfigurationsListByManagedClusterSample.ts][maintenanceconfigurationslistbymanagedclustersample] | Gets a list of maintenance configurations in the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsList.json | +| [managedClustersAbortLatestOperationSample.ts][managedclustersabortlatestoperationsample] | Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersAbortOperation.json | +| [managedClustersCreateOrUpdateSample.ts][managedclusterscreateorupdatesample] | Creates or updates a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_Snapshot.json | +| [managedClustersDeleteSample.ts][managedclustersdeletesample] | Deletes a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersDelete.json | +| [managedClustersGetAccessProfileSample.ts][managedclustersgetaccessprofilesample] | **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGetAccessProfile.json | +| [managedClustersGetCommandResultSample.ts][managedclustersgetcommandresultsample] | Gets the results of a command which has been run on the Managed Cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandResultFailed.json | +| [managedClustersGetMeshRevisionProfileSample.ts][managedclustersgetmeshrevisionprofilesample] | Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet_MeshRevisionProfile.json | +| [managedClustersGetMeshUpgradeProfileSample.ts][managedclustersgetmeshupgradeprofilesample] | Gets available upgrades for a service mesh in a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet_MeshUpgradeProfile.json | +| [managedClustersGetSample.ts][managedclustersgetsample] | Gets a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet.json | +| [managedClustersGetUpgradeProfileSample.ts][managedclustersgetupgradeprofilesample] | Gets the upgrade profile of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGetUpgradeProfile.json | +| [managedClustersListByResourceGroupSample.ts][managedclusterslistbyresourcegroupsample] | Lists managed clusters in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListByResourceGroup.json | +| [managedClustersListClusterAdminCredentialsSample.ts][managedclusterslistclusteradmincredentialssample] | Lists the admin credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterAdminCredentials.json | +| [managedClustersListClusterMonitoringUserCredentialsSample.ts][managedclusterslistclustermonitoringusercredentialssample] | Lists the cluster monitoring user credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json | +| [managedClustersListClusterUserCredentialsSample.ts][managedclusterslistclusterusercredentialssample] | Lists the user credentials of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterUserCredentials.json | +| [managedClustersListKubernetesVersionsSample.ts][managedclusterslistkubernetesversionssample] | Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/KubernetesVersions_List.json | +| [managedClustersListMeshRevisionProfilesSample.ts][managedclusterslistmeshrevisionprofilessample] | Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList_MeshRevisionProfiles.json | +| [managedClustersListMeshUpgradeProfilesSample.ts][managedclusterslistmeshupgradeprofilessample] | Lists available upgrades for all service meshes in a specific cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList_MeshUpgradeProfiles.json | +| [managedClustersListOutboundNetworkDependenciesEndpointsSample.ts][managedclusterslistoutboundnetworkdependenciesendpointssample] | Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/OutboundNetworkDependenciesEndpointsList.json | +| [managedClustersListSample.ts][managedclusterslistsample] | Gets a list of managed clusters in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList.json | +| [managedClustersResetAadProfileSample.ts][managedclustersresetaadprofilesample] | **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersResetAADProfile.json | +| [managedClustersResetServicePrincipalProfileSample.ts][managedclustersresetserviceprincipalprofilesample] | This action cannot be performed on a cluster that is not using a service principal x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersResetServicePrincipalProfile.json | +| [managedClustersRotateClusterCertificatesSample.ts][managedclustersrotateclustercertificatessample] | See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersRotateClusterCertificates.json | +| [managedClustersRotateServiceAccountSigningKeysSample.ts][managedclustersrotateserviceaccountsigningkeyssample] | Rotates the service account signing keys of a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json | +| [managedClustersRunCommandSample.ts][managedclustersruncommandsample] | AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandRequest.json | +| [managedClustersStartSample.ts][managedclustersstartsample] | See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersStart.json | +| [managedClustersStopSample.ts][managedclustersstopsample] | This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersStop.json | +| [managedClustersUpdateTagsSample.ts][managedclustersupdatetagssample] | Updates tags on a managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersUpdateTags.json | +| [operationsListSample.ts][operationslistsample] | Gets a list of operations. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/Operation_List.json | +| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsDelete.json | +| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsGet.json | +| [privateEndpointConnectionsListSample.ts][privateendpointconnectionslistsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsList.json | +| [privateEndpointConnectionsUpdateSample.ts][privateendpointconnectionsupdatesample] | Updates a private endpoint connection. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsUpdate.json | +| [privateLinkResourcesListSample.ts][privatelinkresourceslistsample] | To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateLinkResourcesList.json | +| [resolvePrivateLinkServiceIdPostSample.ts][resolveprivatelinkserviceidpostsample] | Gets the private link service ID for the specified managed cluster. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ResolvePrivateLinkServiceId.json | +| [snapshotsCreateOrUpdateSample.ts][snapshotscreateorupdatesample] | Creates or updates a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsCreate.json | +| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Deletes a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsDelete.json | +| [snapshotsGetSample.ts][snapshotsgetsample] | Gets a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsGet.json | +| [snapshotsListByResourceGroupSample.ts][snapshotslistbyresourcegroupsample] | Lists snapshots in the specified subscription and resource group. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsListByResourceGroup.json | +| [snapshotsListSample.ts][snapshotslistsample] | Gets a list of snapshots in the specified subscription. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsList.json | +| [snapshotsUpdateTagsSample.ts][snapshotsupdatetagssample] | Updates tags on a snapshot. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsUpdateTags.json | +| [trustedAccessRoleBindingsCreateOrUpdateSample.ts][trustedaccessrolebindingscreateorupdatesample] | Create or update a trusted access role binding x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json | +| [trustedAccessRoleBindingsDeleteSample.ts][trustedaccessrolebindingsdeletesample] | Delete a trusted access role binding. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_Delete.json | +| [trustedAccessRoleBindingsGetSample.ts][trustedaccessrolebindingsgetsample] | Get a trusted access role binding. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_Get.json | +| [trustedAccessRoleBindingsListSample.ts][trustedaccessrolebindingslistsample] | List trusted access role bindings. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_List.json | +| [trustedAccessRolesListSample.ts][trustedaccessroleslistsample] | List supported trusted access roles. x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoles_List.json | ## Prerequisites diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/sample.env b/sdk/containerservice/arm-containerservice/samples/v21/typescript/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/sample.env +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsAbortLatestOperationSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsAbortLatestOperationSample.ts index 11ec557eae87..be23fd85b9d7 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsAbortLatestOperationSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsAbortLatestOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. * * @summary Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsAbortOperation.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsAbortOperation.json */ async function abortOperationOnAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsCreateOrUpdateSample.ts index b9a51ec3b5ca..c6426680bfb6 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Snapshot.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Snapshot.json */ async function createAgentPoolUsingAnAgentPoolSnapshot() { const subscriptionId = @@ -54,7 +54,7 @@ async function createAgentPoolUsingAnAgentPoolSnapshot() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_CRG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_CRG.json */ async function createAgentPoolWithCapacityReservationGroup() { const subscriptionId = @@ -87,7 +87,7 @@ async function createAgentPoolWithCapacityReservationGroup() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_DedicatedHostGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_DedicatedHostGroup.json */ async function createAgentPoolWithDedicatedHostGroup() { const subscriptionId = @@ -120,7 +120,7 @@ async function createAgentPoolWithDedicatedHostGroup() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_EnableEncryptionAtHost.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_EnableEncryptionAtHost.json */ async function createAgentPoolWithEncryptionAtHostEnabled() { const subscriptionId = @@ -152,7 +152,7 @@ async function createAgentPoolWithEncryptionAtHostEnabled() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Ephemeral.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Ephemeral.json */ async function createAgentPoolWithEphemeralOSDisk() { const subscriptionId = @@ -185,7 +185,7 @@ async function createAgentPoolWithEphemeralOSDisk() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_EnableFIPS.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_EnableFIPS.json */ async function createAgentPoolWithFipsEnabledOS() { const subscriptionId = @@ -217,7 +217,7 @@ async function createAgentPoolWithFipsEnabledOS() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_GPUMIG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_GPUMIG.json */ async function createAgentPoolWithGpumig() { const subscriptionId = @@ -270,7 +270,7 @@ async function createAgentPoolWithGpumig() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_WasmWasi.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_WasmWasi.json */ async function createAgentPoolWithKrustletAndTheWasiRuntime() { const subscriptionId = @@ -304,7 +304,7 @@ async function createAgentPoolWithKrustletAndTheWasiRuntime() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_CustomNodeConfig.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_CustomNodeConfig.json */ async function createAgentPoolWithKubeletConfigAndLinuxOSConfig() { const subscriptionId = @@ -356,7 +356,7 @@ async function createAgentPoolWithKubeletConfigAndLinuxOSConfig() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_OSSKU.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_OSSKU.json */ async function createAgentPoolWithOssku() { const subscriptionId = @@ -409,7 +409,7 @@ async function createAgentPoolWithOssku() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_PPG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_PPG.json */ async function createAgentPoolWithPpg() { const subscriptionId = @@ -442,7 +442,7 @@ async function createAgentPoolWithPpg() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_EnableUltraSSD.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_EnableUltraSSD.json */ async function createAgentPoolWithUltraSsdEnabled() { const subscriptionId = @@ -474,7 +474,7 @@ async function createAgentPoolWithUltraSsdEnabled() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_WindowsOSSKU.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_WindowsOSSKU.json */ async function createAgentPoolWithWindowsOssku() { const subscriptionId = @@ -506,7 +506,7 @@ async function createAgentPoolWithWindowsOssku() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Spot.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Spot.json */ async function createSpotAgentPool() { const subscriptionId = @@ -542,7 +542,7 @@ async function createSpotAgentPool() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_WindowsDisableOutboundNAT.json */ async function createWindowsAgentPoolWithDisablingOutboundNat() { const subscriptionId = @@ -575,7 +575,7 @@ async function createWindowsAgentPoolWithDisablingOutboundNat() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsCreate_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsCreate_Update.json */ async function createOrUpdateAgentPool() { const subscriptionId = @@ -612,7 +612,7 @@ async function createOrUpdateAgentPool() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPools_Start.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPools_Start.json */ async function startAgentPool() { const subscriptionId = @@ -638,7 +638,7 @@ async function startAgentPool() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPools_Stop.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPools_Stop.json */ async function stopAgentPool() { const subscriptionId = @@ -664,7 +664,7 @@ async function stopAgentPool() { * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. * * @summary Creates or updates an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPools_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPools_Update.json */ async function updateAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsDeleteMachinesSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsDeleteMachinesSample.ts index 38a8ee6df373..b2d93cfb8a6a 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsDeleteMachinesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsDeleteMachinesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Deletes specific machines in an agent pool. * * @summary Deletes specific machines in an agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsDeleteMachines.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsDeleteMachines.json */ async function deleteSpecificMachinesInAnAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsDeleteSample.ts index b7ab02352229..b1ac4b193263 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an agent pool in the specified managed cluster. * * @summary Deletes an agent pool in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsDelete.json */ async function deleteAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsGetAvailableAgentPoolVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsGetAvailableAgentPoolVersionsSample.ts index 4f7596647752..67e35d440225 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsGetAvailableAgentPoolVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsGetAvailableAgentPoolVersionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. * * @summary See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGetAgentPoolAvailableVersions.json */ async function getAvailableVersionsForAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsGetSample.ts index 2c507c9b7726..41ed5b93b708 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified managed cluster agent pool. * * @summary Gets the specified managed cluster agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGet.json */ async function getAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsGetUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsGetUpgradeProfileSample.ts index d0b6a59f55b5..a3ca34b8fc1a 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsGetUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsGetUpgradeProfileSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the upgrade profile for an agent pool. * * @summary Gets the upgrade profile for an agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsGetUpgradeProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsGetUpgradeProfile.json */ async function getUpgradeProfileForAgentPool() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsListSample.ts index 9937f972007c..d616aea11cc6 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of agent pools in the specified managed cluster. * * @summary Gets a list of agent pools in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsList.json */ async function listAgentPoolsByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsUpgradeNodeImageVersionSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsUpgradeNodeImageVersionSample.ts index 96d24fb24cda..bd366cc4ac67 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsUpgradeNodeImageVersionSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/agentPoolsUpgradeNodeImageVersionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade * * @summary Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/AgentPoolsUpgradeNodeImageVersion.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/AgentPoolsUpgradeNodeImageVersion.json */ async function upgradeAgentPoolNodeImageVersion() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/machinesGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/machinesGetSample.ts index 16a27ac521af..77792a4b0d26 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/machinesGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/machinesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a specific machine in the specified agent pool. * * @summary Get a specific machine in the specified agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MachineGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MachineGet.json */ async function getAMachineInAnAgentPoolsByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/machinesListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/machinesListSample.ts index 32ec62e4f4f1..f9aa0939a787 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/machinesListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/machinesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of machines in the specified agent pool. * * @summary Gets a list of machines in the specified agent pool. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MachineList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MachineList.json */ async function listMachinesInAnAgentpoolByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsCreateOrUpdateSample.ts index 275bdd7a5718..150041bf1f0f 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a maintenance configuration in the specified managed cluster. * * @summary Creates or updates a maintenance configuration in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsCreate_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsCreate_Update.json */ async function createOrUpdateMaintenanceConfiguration() { const subscriptionId = @@ -55,7 +55,7 @@ async function createOrUpdateMaintenanceConfiguration() { * This sample demonstrates how to Creates or updates a maintenance configuration in the specified managed cluster. * * @summary Creates or updates a maintenance configuration in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json */ async function createOrUpdateMaintenanceConfigurationWithMaintenanceWindow() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsDeleteSample.ts index 6a8bb3a58a48..af8a77316e8a 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a maintenance configuration. * * @summary Deletes a maintenance configuration. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsDelete.json */ async function deleteMaintenanceConfiguration() { const subscriptionId = @@ -42,7 +42,7 @@ async function deleteMaintenanceConfiguration() { * This sample demonstrates how to Deletes a maintenance configuration. * * @summary Deletes a maintenance configuration. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsDelete_MaintenanceWindow.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsDelete_MaintenanceWindow.json */ async function deleteMaintenanceConfigurationForNodeOSUpgrade() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsGetSample.ts index f4d01765ade9..9b35a32eb289 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified maintenance configuration of a managed cluster. * * @summary Gets the specified maintenance configuration of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsGet.json */ async function getMaintenanceConfiguration() { const subscriptionId = @@ -42,7 +42,7 @@ async function getMaintenanceConfiguration() { * This sample demonstrates how to Gets the specified maintenance configuration of a managed cluster. * * @summary Gets the specified maintenance configuration of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsGet_MaintenanceWindow.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsGet_MaintenanceWindow.json */ async function getMaintenanceConfigurationConfiguredWithMaintenanceWindow() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsListByManagedClusterSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsListByManagedClusterSample.ts index 7c63dd5dd30d..f1615ce26e31 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsListByManagedClusterSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/maintenanceConfigurationsListByManagedClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of maintenance configurations in the specified managed cluster. * * @summary Gets a list of maintenance configurations in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsList.json */ async function listMaintenanceConfigurationsByManagedCluster() { const subscriptionId = @@ -43,7 +43,7 @@ async function listMaintenanceConfigurationsByManagedCluster() { * This sample demonstrates how to Gets a list of maintenance configurations in the specified managed cluster. * * @summary Gets a list of maintenance configurations in the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/MaintenanceConfigurationsList_MaintenanceWindow.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/MaintenanceConfigurationsList_MaintenanceWindow.json */ async function listMaintenanceConfigurationsConfiguredWithMaintenanceWindowByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersAbortLatestOperationSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersAbortLatestOperationSample.ts index f1944da30d2e..53c09beb2301 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersAbortLatestOperationSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersAbortLatestOperationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. * * @summary Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersAbortOperation.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersAbortOperation.json */ async function abortOperationOnManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersCreateOrUpdateSample.ts index da798cef5b72..f201dce40cc3 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Snapshot.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_Snapshot.json */ async function createManagedClusterUsingAnAgentPoolSnapshot() { const subscriptionId = @@ -87,7 +87,7 @@ async function createManagedClusterUsingAnAgentPoolSnapshot() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_ManagedNATGateway.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_ManagedNATGateway.json */ async function createManagedClusterWithAksManagedNatGatewayAsOutboundType() { const subscriptionId = @@ -148,7 +148,7 @@ async function createManagedClusterWithAksManagedNatGatewayAsOutboundType() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_AzureKeyvaultSecretsProvider.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_AzureKeyvaultSecretsProvider.json */ async function createManagedClusterWithAzureKeyVaultSecretsProviderAddon() { const subscriptionId = @@ -214,7 +214,7 @@ async function createManagedClusterWithAzureKeyVaultSecretsProviderAddon() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_CRG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_CRG.json */ async function createManagedClusterWithCapacityReservationGroup() { const subscriptionId = @@ -277,7 +277,7 @@ async function createManagedClusterWithCapacityReservationGroup() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_DedicatedHostGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_DedicatedHostGroup.json */ async function createManagedClusterWithDedicatedHostGroup() { const subscriptionId = @@ -339,7 +339,7 @@ async function createManagedClusterWithDedicatedHostGroup() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_EnableEncryptionAtHost.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_EnableEncryptionAtHost.json */ async function createManagedClusterWithEncryptionAtHostEnabled() { const subscriptionId = @@ -401,7 +401,7 @@ async function createManagedClusterWithEncryptionAtHostEnabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_EnabledFIPS.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_EnabledFIPS.json */ async function createManagedClusterWithFipsEnabledOS() { const subscriptionId = @@ -463,7 +463,7 @@ async function createManagedClusterWithFipsEnabledOS() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_GPUMIG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_GPUMIG.json */ async function createManagedClusterWithGpumig() { const subscriptionId = @@ -531,7 +531,7 @@ async function createManagedClusterWithGpumig() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_HTTPProxy.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_HTTPProxy.json */ async function createManagedClusterWithHttpProxyConfigured() { const subscriptionId = @@ -598,7 +598,7 @@ async function createManagedClusterWithHttpProxyConfigured() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Premium.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_Premium.json */ async function createManagedClusterWithLongTermSupport() { const subscriptionId = @@ -660,7 +660,7 @@ async function createManagedClusterWithLongTermSupport() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_NodePublicIPPrefix.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_NodePublicIPPrefix.json */ async function createManagedClusterWithNodePublicIPPrefix() { const subscriptionId = @@ -723,7 +723,7 @@ async function createManagedClusterWithNodePublicIPPrefix() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_OSSKU.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_OSSKU.json */ async function createManagedClusterWithOssku() { const subscriptionId = @@ -791,7 +791,7 @@ async function createManagedClusterWithOssku() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PPG.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_PPG.json */ async function createManagedClusterWithPpg() { const subscriptionId = @@ -854,7 +854,7 @@ async function createManagedClusterWithPpg() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PodIdentity.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_PodIdentity.json */ async function createManagedClusterWithPodIdentityEnabled() { const subscriptionId = @@ -916,7 +916,7 @@ async function createManagedClusterWithPodIdentityEnabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_DisableRunCommand.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_DisableRunCommand.json */ async function createManagedClusterWithRunCommandDisabled() { const subscriptionId = @@ -977,7 +977,7 @@ async function createManagedClusterWithRunCommandDisabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_SecurityProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_SecurityProfile.json */ async function createManagedClusterWithSecurityProfileConfigured() { const subscriptionId = @@ -1035,7 +1035,7 @@ async function createManagedClusterWithSecurityProfileConfigured() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_EnableUltraSSD.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_EnableUltraSSD.json */ async function createManagedClusterWithUltraSsdEnabled() { const subscriptionId = @@ -1097,7 +1097,7 @@ async function createManagedClusterWithUltraSsdEnabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_IngressProfile_WebAppRouting.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_IngressProfile_WebAppRouting.json */ async function createManagedClusterWithWebAppRoutingIngressProfileConfigured() { const subscriptionId = @@ -1155,7 +1155,7 @@ async function createManagedClusterWithWebAppRoutingIngressProfileConfigured() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UserAssignedNATGateway.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_UserAssignedNATGateway.json */ async function createManagedClusterWithUserAssignedNatGatewayAsOutboundType() { const subscriptionId = @@ -1215,7 +1215,7 @@ async function createManagedClusterWithUserAssignedNatGatewayAsOutboundType() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PrivateClusterPublicFQDN.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_PrivateClusterPublicFQDN.json */ async function createManagedPrivateClusterWithPublicFqdnSpecified() { const subscriptionId = @@ -1279,7 +1279,7 @@ async function createManagedPrivateClusterWithPublicFqdnSpecified() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_PrivateClusterFQDNSubdomain.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_PrivateClusterFQDNSubdomain.json */ async function createManagedPrivateClusterWithFqdnSubdomainSpecified() { const subscriptionId = @@ -1344,7 +1344,7 @@ async function createManagedPrivateClusterWithFqdnSubdomainSpecified() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UpdateWithEnableAzureRBAC.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_UpdateWithEnableAzureRBAC.json */ async function createOrUpdateAadManagedClusterWithEnableAzureRbac() { const subscriptionId = @@ -1407,7 +1407,7 @@ async function createOrUpdateAadManagedClusterWithEnableAzureRbac() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_Update.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_Update.json */ async function createOrUpdateManagedCluster() { const subscriptionId = @@ -1491,7 +1491,7 @@ async function createOrUpdateManagedCluster() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_AzureServiceMesh.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_AzureServiceMesh.json */ async function createOrUpdateManagedClusterWithAzureServiceMesh() { const subscriptionId = @@ -1576,7 +1576,7 @@ async function createOrUpdateManagedClusterWithAzureServiceMesh() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UpdateWithAHUB.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_UpdateWithAHUB.json */ async function createOrUpdateManagedClusterWithEnableAhub() { const subscriptionId = @@ -1646,7 +1646,7 @@ async function createOrUpdateManagedClusterWithEnableAhub() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_UpdateWindowsGmsa.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_UpdateWindowsGmsa.json */ async function createOrUpdateManagedClusterWithWindowsGMsaEnabled() { const subscriptionId = @@ -1716,7 +1716,7 @@ async function createOrUpdateManagedClusterWithWindowsGMsaEnabled() { * This sample demonstrates how to Creates or updates a managed cluster. * * @summary Creates or updates a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersCreate_DualStackNetworking.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersCreate_DualStackNetworking.json */ async function createOrUpdateManagedClusterWithDualStackNetworking() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersDeleteSample.ts index 5e92fead65dc..b6dffd8e0f59 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a managed cluster. * * @summary Deletes a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersDelete.json */ async function deleteManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetAccessProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetAccessProfileSample.ts index 2e730b9bad35..0638030dc50e 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetAccessProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetAccessProfileSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . * * @summary **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGetAccessProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGetAccessProfile.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetCommandResultSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetCommandResultSample.ts index 6d0ae74f1ef2..70b1e54c3ec2 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetCommandResultSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetCommandResultSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the results of a command which has been run on the Managed Cluster. * * @summary Gets the results of a command which has been run on the Managed Cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandResultFailed.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandResultFailed.json */ async function commandFailedResult() { const subscriptionId = @@ -42,7 +42,7 @@ async function commandFailedResult() { * This sample demonstrates how to Gets the results of a command which has been run on the Managed Cluster. * * @summary Gets the results of a command which has been run on the Managed Cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandResultSucceed.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandResultSucceed.json */ async function commandSucceedResult() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetMeshRevisionProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetMeshRevisionProfileSample.ts index b9c70d028e90..2213aa12f0a7 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetMeshRevisionProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetMeshRevisionProfileSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades * * @summary Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet_MeshRevisionProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet_MeshRevisionProfile.json */ async function getAMeshRevisionProfileForAMeshMode() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetMeshUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetMeshUpgradeProfileSample.ts index a8b1948453a1..d3bafe13663a 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetMeshUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetMeshUpgradeProfileSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets available upgrades for a service mesh in a cluster. * * @summary Gets available upgrades for a service mesh in a cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet_MeshUpgradeProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet_MeshUpgradeProfile.json */ async function getsVersionCompatibilityAndUpgradeProfileForAServiceMeshInACluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetSample.ts index ce025fb26c73..05b55dccceba 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a managed cluster. * * @summary Gets a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGet.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetUpgradeProfileSample.ts index 9f1b3dfc700c..bdf6e77a29ed 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersGetUpgradeProfileSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the upgrade profile of a managed cluster. * * @summary Gets the upgrade profile of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersGetUpgradeProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersGetUpgradeProfile.json */ async function getUpgradeProfileForManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListByResourceGroupSample.ts index ff8c391e73be..1336e0c609d6 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists managed clusters in the specified subscription and resource group. * * @summary Lists managed clusters in the specified subscription and resource group. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListByResourceGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListByResourceGroup.json */ async function getManagedClustersByResourceGroup() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListClusterAdminCredentialsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListClusterAdminCredentialsSample.ts index 80dea3975b61..6f98741b979d 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListClusterAdminCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListClusterAdminCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the admin credentials of a managed cluster. * * @summary Lists the admin credentials of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterAdminCredentials.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterAdminCredentials.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListClusterMonitoringUserCredentialsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListClusterMonitoringUserCredentialsSample.ts index c38c724d3ba2..630e4e20c446 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListClusterMonitoringUserCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListClusterMonitoringUserCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the cluster monitoring user credentials of a managed cluster. * * @summary Lists the cluster monitoring user credentials of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterMonitoringUserCredentials.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListClusterUserCredentialsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListClusterUserCredentialsSample.ts index f968adce703c..28058dc75583 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListClusterUserCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListClusterUserCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the user credentials of a managed cluster. * * @summary Lists the user credentials of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersListClusterUserCredentials.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersListClusterUserCredentials.json */ async function getManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListKubernetesVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListKubernetesVersionsSample.ts index d1bc519504ed..b15a4fca38e9 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListKubernetesVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListKubernetesVersionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version * * @summary Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/KubernetesVersions_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/KubernetesVersions_List.json */ async function listKubernetesVersions() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListMeshRevisionProfilesSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListMeshRevisionProfilesSample.ts index 35551f85cc36..ecf4b84dc852 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListMeshRevisionProfilesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListMeshRevisionProfilesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades * * @summary Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList_MeshRevisionProfiles.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList_MeshRevisionProfiles.json */ async function listMeshRevisionProfilesInALocation() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListMeshUpgradeProfilesSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListMeshUpgradeProfilesSample.ts index 6643c8eb30ab..59e3b05196cd 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListMeshUpgradeProfilesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListMeshUpgradeProfilesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists available upgrades for all service meshes in a specific cluster. * * @summary Lists available upgrades for all service meshes in a specific cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList_MeshUpgradeProfiles.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList_MeshUpgradeProfiles.json */ async function listsVersionCompatibilityAndUpgradeProfileForAllServiceMeshesInACluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts index d8d25244d810..c9f0a943f62f 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. * * @summary Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/OutboundNetworkDependenciesEndpointsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/OutboundNetworkDependenciesEndpointsList.json */ async function listOutboundNetworkDependenciesEndpointsByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListSample.ts index ca982dd21be7..551476d56bfd 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of managed clusters in the specified subscription. * * @summary Gets a list of managed clusters in the specified subscription. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersList.json */ async function listManagedClusters() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersResetAadProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersResetAadProfileSample.ts index 189b14744403..ee60914e670b 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersResetAadProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersResetAadProfileSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. * * @summary **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersResetAADProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersResetAADProfile.json */ async function resetAadProfile() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersResetServicePrincipalProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersResetServicePrincipalProfileSample.ts index 4ec7f5f16d69..d349987804d7 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersResetServicePrincipalProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersResetServicePrincipalProfileSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to This action cannot be performed on a cluster that is not using a service principal * * @summary This action cannot be performed on a cluster that is not using a service principal - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersResetServicePrincipalProfile.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersResetServicePrincipalProfile.json */ async function resetServicePrincipalProfile() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersRotateClusterCertificatesSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersRotateClusterCertificatesSample.ts index 9d59b2f3ddf2..253c3a401dfd 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersRotateClusterCertificatesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersRotateClusterCertificatesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. * * @summary See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersRotateClusterCertificates.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersRotateClusterCertificates.json */ async function rotateClusterCertificates() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersRotateServiceAccountSigningKeysSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersRotateServiceAccountSigningKeysSample.ts index 3bb99470a351..71e21f39af7d 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersRotateServiceAccountSigningKeysSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersRotateServiceAccountSigningKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Rotates the service account signing keys of a managed cluster. * * @summary Rotates the service account signing keys of a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersRotateServiceAccountSigningKeys.json */ async function rotateClusterServiceAccountSigningKeys() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersRunCommandSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersRunCommandSample.ts index 6b91b9bdad02..b485beec4e64 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersRunCommandSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersRunCommandSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). * * @summary AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/RunCommandRequest.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/RunCommandRequest.json */ async function submitNewCommand() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersStartSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersStartSample.ts index f014f36f7fc9..f2b7d731b209 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersStartSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersStartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. * * @summary See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersStart.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersStart.json */ async function startManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersStopSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersStopSample.ts index 55144ae1bb00..babfe05af301 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersStopSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersStopSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. * * @summary This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersStop.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersStop.json */ async function stopManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersUpdateTagsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersUpdateTagsSample.ts index 3ec15b9e96f8..028b331d3c31 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersUpdateTagsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/managedClustersUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates tags on a managed cluster. * * @summary Updates tags on a managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ManagedClustersUpdateTags.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ManagedClustersUpdateTags.json */ async function updateManagedClusterTags() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/operationsListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/operationsListSample.ts index 7e1fc5593a9e..3b0b1ba4f6ec 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/operationsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of operations. * * @summary Gets a list of operations. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/Operation_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/Operation_List.json */ async function listAvailableOperationsForTheContainerServiceResourceProvider() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsDeleteSample.ts index 0ef87f742fcb..c8f7cdc7c83e 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a private endpoint connection. * * @summary Deletes a private endpoint connection. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsDelete.json */ async function deletePrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsGetSample.ts index cf55806a76e9..00899f089e4c 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters * * @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsGet.json */ async function getPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsListSample.ts index 7a7071b4c485..69e929501b13 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters * * @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsList.json */ async function listPrivateEndpointConnectionsByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsUpdateSample.ts index cfec91b849b0..a4ee8474fd06 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateEndpointConnectionsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a private endpoint connection. * * @summary Updates a private endpoint connection. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateEndpointConnectionsUpdate.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateEndpointConnectionsUpdate.json */ async function updatePrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateLinkResourcesListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateLinkResourcesListSample.ts index 0f5ce2e249dc..1745cf4d561a 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateLinkResourcesListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/privateLinkResourcesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters * * @summary To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/PrivateLinkResourcesList.json */ async function listPrivateLinkResourcesByManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/resolvePrivateLinkServiceIdPostSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/resolvePrivateLinkServiceIdPostSample.ts index a16e53eef968..c4b21d57a932 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/resolvePrivateLinkServiceIdPostSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/resolvePrivateLinkServiceIdPostSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link service ID for the specified managed cluster. * * @summary Gets the private link service ID for the specified managed cluster. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/ResolvePrivateLinkServiceId.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/ResolvePrivateLinkServiceId.json */ async function resolveThePrivateLinkServiceIdForManagedCluster() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts index f5cf0f876a23..cfd79e400923 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a snapshot. * * @summary Creates or updates a snapshot. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsCreate.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsCreate.json */ async function createOrUpdateSnapshot() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsDeleteSample.ts index 3a90b7231233..f39263f6377f 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a snapshot. * * @summary Deletes a snapshot. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsDelete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsDelete.json */ async function deleteSnapshot() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsGetSample.ts index 41d9f5bbc688..85e8f4c6fe4d 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a snapshot. * * @summary Gets a snapshot. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsGet.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsGet.json */ async function getSnapshot() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts index 5a7f37013bb4..583a5b9d1ac4 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists snapshots in the specified subscription and resource group. * * @summary Lists snapshots in the specified subscription and resource group. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsListByResourceGroup.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsListByResourceGroup.json */ async function listSnapshotsByResourceGroup() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsListSample.ts index 52241a218cc2..3fb5ceab6801 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of snapshots in the specified subscription. * * @summary Gets a list of snapshots in the specified subscription. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsList.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsList.json */ async function listSnapshots() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsUpdateTagsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsUpdateTagsSample.ts index fc696a355666..4d2f734e2f32 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsUpdateTagsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/snapshotsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates tags on a snapshot. * * @summary Updates tags on a snapshot. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/SnapshotsUpdateTags.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/SnapshotsUpdateTags.json */ async function updateSnapshotTags() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsCreateOrUpdateSample.ts index c515bb2db10f..026f11ce7040 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a trusted access role binding * * @summary Create or update a trusted access role binding - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_CreateOrUpdate.json */ async function createOrUpdateATrustedAccessRoleBinding() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsDeleteSample.ts index f79a3e04cb75..5b8cba149f0e 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a trusted access role binding. * * @summary Delete a trusted access role binding. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_Delete.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_Delete.json */ async function deleteATrustedAccessRoleBinding() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsGetSample.ts index 87ff561ef611..d5b9e3a4fc6e 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a trusted access role binding. * * @summary Get a trusted access role binding. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_Get.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_Get.json */ async function getATrustedAccessRoleBinding() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsListSample.ts index 519905e062c1..5115805c6534 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRoleBindingsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List trusted access role bindings. * * @summary List trusted access role bindings. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoleBindings_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoleBindings_List.json */ async function listTrustedAccessRoleBindings() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRolesListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRolesListSample.ts index cd9729883713..a78d08fe54ea 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRolesListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21/typescript/src/trustedAccessRolesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List supported trusted access roles. * * @summary List supported trusted access roles. - * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-08-01/examples/TrustedAccessRoles_List.json + * x-ms-original-file: specification/containerservice/resource-manager/Microsoft.ContainerService/aks/stable/2024-09-01/examples/TrustedAccessRoles_List.json */ async function listTrustedAccessRoles() { const subscriptionId = diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts index 97396138dd05..e7bedcbfa530 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts @@ -74,7 +74,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-containerservice/21.2.1`; + const packageDetails = `azsdk-js-arm-containerservice/21.3.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -128,7 +128,7 @@ export class ContainerServiceClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2024-08-01"; + this.apiVersion = options.apiVersion || "2024-09-01"; this.operations = new OperationsImpl(this); this.managedClusters = new ManagedClustersImpl(this); this.maintenanceConfigurations = new MaintenanceConfigurationsImpl(this); diff --git a/sdk/containerservice/arm-containerservice/src/models/index.ts b/sdk/containerservice/arm-containerservice/src/models/index.ts index 64d2a8a4e0fe..bbc83c760aa1 100644 --- a/sdk/containerservice/arm-containerservice/src/models/index.ts +++ b/sdk/containerservice/arm-containerservice/src/models/index.ts @@ -182,6 +182,11 @@ export interface PowerState { /** Properties for the container service agent pool profile. */ export interface ManagedClusterAgentPoolProfileProperties { + /** + * Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly eTag?: string; /** Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. */ count?: number; /** VM size availability varies by region. If a node contains insufficient compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions */ @@ -589,6 +594,12 @@ export interface ManagedClusterOidcIssuerProfile { enabled?: boolean; } +/** Node resource group lockdown profile for a managed cluster. */ +export interface ManagedClusterNodeResourceGroupProfile { + /** The restriction level applied to the cluster's node resource group. If not specified, the default is 'Unrestricted' */ + restrictionLevel?: RestrictionLevel; +} + /** Profile of network configuration. */ export interface ContainerServiceNetworkProfile { /** Network plugin used for building the Kubernetes network. */ @@ -601,6 +612,8 @@ export interface ContainerServiceNetworkProfile { networkMode?: NetworkMode; /** Network dataplane used in the Kubernetes cluster. */ networkDataplane?: NetworkDataplane; + /** Advanced Networking profile for enabling observability and security feature suite on a cluster. For more information see aka.ms/aksadvancednetworking. */ + advancedNetworking?: AdvancedNetworking; /** A CIDR notation IP range from which to assign pod IPs when kubenet is used. */ podCidr?: string; /** A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. */ @@ -623,6 +636,28 @@ export interface ContainerServiceNetworkProfile { ipFamilies?: IpFamily[]; } +/** Advanced Networking profile for enabling observability and security feature suite on a cluster. For more information see aka.ms/aksadvancednetworking. */ +export interface AdvancedNetworking { + /** Indicates the enablement of Advanced Networking functionalities of observability and security on AKS clusters. When this is set to true, all observability and security features will be set to enabled unless explicitly disabled. If not specified, the default is false. */ + enabled?: boolean; + /** Observability profile to enable advanced network metrics and flow logs with historical contexts. */ + observability?: AdvancedNetworkingObservability; + /** Security profile to enable security features on cilium based cluster. */ + security?: AdvancedNetworkingSecurity; +} + +/** Observability profile to enable advanced network metrics and flow logs with historical contexts. */ +export interface AdvancedNetworkingObservability { + /** Indicates the enablement of Advanced Networking observability functionalities on clusters. */ + enabled?: boolean; +} + +/** Security profile to enable security features on cilium based cluster. */ +export interface AdvancedNetworkingSecurity { + /** This feature allows user to configure network policy based on DNS (FQDN) names. It can be enabled only on cilium based clusters. If not specified, the default is false. */ + enabled?: boolean; +} + /** Profile of the managed cluster load balancer. */ export interface ManagedClusterLoadBalancerProfile { /** Desired managed outbound IPs for the cluster load balancer. */ @@ -1761,6 +1796,11 @@ export interface MaintenanceConfiguration extends SubResource { /** Agent Pool. */ export interface AgentPool extends SubResource { + /** + * Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly eTag?: string; /** Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to 1000 (inclusive) for user pools and in the range of 1 to 1000 (inclusive) for system pools. The default value is 1. */ count?: number; /** VM size availability varies by region. If a node contains insufficient compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions */ @@ -1876,6 +1916,11 @@ export interface MeshUpgradeProfileProperties extends MeshRevision {} /** Managed cluster. */ export interface ManagedCluster extends TrackedResource { + /** + * Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly eTag?: string; /** The managed cluster SKU. */ sku?: ManagedClusterSKU; /** The extended location of the Virtual Machine. */ @@ -1939,6 +1984,8 @@ export interface ManagedCluster extends TrackedResource { oidcIssuerProfile?: ManagedClusterOidcIssuerProfile; /** The name of the resource group containing agent pool nodes. */ nodeResourceGroup?: string; + /** Profile of the node resource group configuration. */ + nodeResourceGroupProfile?: ManagedClusterNodeResourceGroupProfile; /** Whether to enable Kubernetes Role-Based Access Control. */ enableRbac?: boolean; /** The support plan for the Managed Cluster. If unspecified, the default is 'KubernetesOfficial'. */ @@ -1959,7 +2006,7 @@ export interface ManagedCluster extends TrackedResource { apiServerAccessProfile?: ManagedClusterAPIServerAccessProfile; /** This is of the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{encryptionSetName}' */ diskEncryptionSetID?: string; - /** Identities associated with the cluster. */ + /** The user identity associated with the managed cluster. This identity will be used by the kubelet. Only one user assigned identity is allowed. The only accepted key is "kubeletidentity", with value of "resourceId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}". */ identityProfile?: { [propertyName: string]: UserAssignedIdentity }; /** Private link resources associated with the cluster. */ privateLinkResources?: PrivateLinkResource[]; @@ -2508,6 +2555,24 @@ export enum KnownManagedClusterPodIdentityProvisioningState { */ export type ManagedClusterPodIdentityProvisioningState = string; +/** Known values of {@link RestrictionLevel} that the service accepts. */ +export enum KnownRestrictionLevel { + /** All RBAC permissions are allowed on the managed node resource group */ + Unrestricted = "Unrestricted", + /** Only *\/read RBAC permissions allowed on the managed node resource group */ + ReadOnly = "ReadOnly", +} + +/** + * Defines values for RestrictionLevel. \ + * {@link KnownRestrictionLevel} can be used interchangeably with RestrictionLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unrestricted**: All RBAC permissions are allowed on the managed node resource group \ + * **ReadOnly**: Only *\/read RBAC permissions allowed on the managed node resource group + */ +export type RestrictionLevel = string; + /** Known values of {@link NetworkPlugin} that the service accepts. */ export enum KnownNetworkPlugin { /** Use the Azure CNI network plugin. See [Azure CNI (advanced) networking](https:\//docs.microsoft.com\/azure\/aks\/concepts-network#azure-cni-advanced-networking) for more information. */ @@ -3117,6 +3182,10 @@ export type ManagedClustersGetResponse = ManagedCluster; /** Optional parameters. */ export interface ManagedClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + /** The request should only proceed if an entity matches this string. */ + ifMatch?: string; + /** The request should only proceed if no entity matches this string. */ + ifNoneMatch?: string; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3129,6 +3198,8 @@ export type ManagedClustersCreateOrUpdateResponse = ManagedCluster; /** Optional parameters. */ export interface ManagedClustersUpdateTagsOptionalParams extends coreClient.OperationOptions { + /** The request should only proceed if an entity matches this string. */ + ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3141,6 +3212,8 @@ export type ManagedClustersUpdateTagsResponse = ManagedCluster; /** Optional parameters. */ export interface ManagedClustersDeleteOptionalParams extends coreClient.OperationOptions { + /** The request should only proceed if an entity matches this string. */ + ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3392,6 +3465,10 @@ export type AgentPoolsGetResponse = AgentPool; /** Optional parameters. */ export interface AgentPoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + /** The request should only proceed if an entity matches this string. */ + ifMatch?: string; + /** The request should only proceed if no entity matches this string. */ + ifNoneMatch?: string; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -3404,6 +3481,8 @@ export type AgentPoolsCreateOrUpdateResponse = AgentPool; /** Optional parameters. */ export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOptions { + /** The request should only proceed if an entity matches this string. */ + ifMatch?: string; /** ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget */ ignorePodDisruptionBudget?: boolean; /** Delay to wait until next poll, in milliseconds. */ diff --git a/sdk/containerservice/arm-containerservice/src/models/mappers.ts b/sdk/containerservice/arm-containerservice/src/models/mappers.ts index 39a460480ff8..339230230c18 100644 --- a/sdk/containerservice/arm-containerservice/src/models/mappers.ts +++ b/sdk/containerservice/arm-containerservice/src/models/mappers.ts @@ -439,6 +439,13 @@ export const ManagedClusterAgentPoolProfileProperties: coreClient.CompositeMappe name: "Composite", className: "ManagedClusterAgentPoolProfileProperties", modelProperties: { + eTag: { + serializedName: "eTag", + readOnly: true, + type: { + name: "String", + }, + }, count: { serializedName: "count", type: { @@ -1670,13 +1677,28 @@ export const ManagedClusterOidcIssuerProfile: coreClient.CompositeMapper = { }, }; +export const ManagedClusterNodeResourceGroupProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ManagedClusterNodeResourceGroupProfile", + modelProperties: { + restrictionLevel: { + serializedName: "restrictionLevel", + type: { + name: "String", + }, + }, + }, + }, + }; + export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", className: "ContainerServiceNetworkProfile", modelProperties: { networkPlugin: { - defaultValue: "kubenet", serializedName: "networkPlugin", type: { name: "String", @@ -1706,6 +1728,13 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { name: "String", }, }, + advancedNetworking: { + serializedName: "advancedNetworking", + type: { + name: "Composite", + className: "AdvancedNetworking", + }, + }, podCidr: { defaultValue: "10.244.0.0/16", constraints: { @@ -1806,6 +1835,65 @@ export const ContainerServiceNetworkProfile: coreClient.CompositeMapper = { }, }; +export const AdvancedNetworking: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdvancedNetworking", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + observability: { + serializedName: "observability", + type: { + name: "Composite", + className: "AdvancedNetworkingObservability", + }, + }, + security: { + serializedName: "security", + type: { + name: "Composite", + className: "AdvancedNetworkingSecurity", + }, + }, + }, + }, +}; + +export const AdvancedNetworkingObservability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdvancedNetworkingObservability", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const AdvancedNetworkingSecurity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdvancedNetworkingSecurity", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + export const ManagedClusterLoadBalancerProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4873,6 +4961,13 @@ export const AgentPool: coreClient.CompositeMapper = { className: "AgentPool", modelProperties: { ...SubResource.type.modelProperties, + eTag: { + serializedName: "properties.eTag", + readOnly: true, + type: { + name: "String", + }, + }, count: { serializedName: "properties.count", type: { @@ -5211,6 +5306,13 @@ export const ManagedCluster: coreClient.CompositeMapper = { className: "ManagedCluster", modelProperties: { ...TrackedResource.type.modelProperties, + eTag: { + serializedName: "eTag", + readOnly: true, + type: { + name: "String", + }, + }, sku: { serializedName: "sku", type: { @@ -5364,6 +5466,13 @@ export const ManagedCluster: coreClient.CompositeMapper = { name: "String", }, }, + nodeResourceGroupProfile: { + serializedName: "properties.nodeResourceGroupProfile", + type: { + name: "Composite", + className: "ManagedClusterNodeResourceGroupProfile", + }, + }, enableRbac: { serializedName: "properties.enableRBAC", type: { diff --git a/sdk/containerservice/arm-containerservice/src/models/parameters.ts b/sdk/containerservice/arm-containerservice/src/models/parameters.ts index 9b723910ef20..1032f08af791 100644 --- a/sdk/containerservice/arm-containerservice/src/models/parameters.ts +++ b/sdk/containerservice/arm-containerservice/src/models/parameters.ts @@ -53,7 +53,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-08-01", + defaultValue: "2024-09-01", isConstant: true, serializedName: "api-version", type: { @@ -168,6 +168,26 @@ export const parameters: OperationParameter = { mapper: ManagedClusterMapper, }; +export const ifMatch: OperationParameter = { + parameterPath: ["options", "ifMatch"], + mapper: { + serializedName: "If-Match", + type: { + name: "String", + }, + }, +}; + +export const ifNoneMatch: OperationParameter = { + parameterPath: ["options", "ifNoneMatch"], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String", + }, + }, +}; + export const parameters1: OperationParameter = { parameterPath: "parameters", mapper: TagsObjectMapper, diff --git a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts index a9e05e33d090..6947aa7345bd 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts @@ -825,7 +825,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceName, Parameters.agentPoolName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + Parameters.ifNoneMatch, + ], mediaType: "json", serializer, }; @@ -860,7 +865,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceName, Parameters.agentPoolName, ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.ifMatch], serializer, }; const getUpgradeProfileOperationSpec: coreClient.OperationSpec = { diff --git a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts index f4e5d6d49165..d5ff22c4f06c 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts @@ -2048,7 +2048,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + Parameters.ifNoneMatch, + ], mediaType: "json", serializer, }; @@ -2080,7 +2085,11 @@ const updateTagsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], mediaType: "json", serializer, }; @@ -2111,7 +2120,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceName, ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.ifMatch], serializer, }; const resetServicePrincipalProfileOperationSpec: coreClient.OperationSpec = { diff --git a/sdk/containerservice/arm-containerservice/tsconfig.json b/sdk/containerservice/arm-containerservice/tsconfig.json index 5bad5556bbfd..8ed6d45d047a 100644 --- a/sdk/containerservice/arm-containerservice/tsconfig.json +++ b/sdk/containerservice/arm-containerservice/tsconfig.json @@ -23,8 +23,8 @@ } }, "include": [ - "./src/**/*.ts", - "./test/**/*.ts", + "src/**/*.ts", + "test/**/*.ts", "samples-dev/**/*.ts" ], "exclude": [ diff --git a/sdk/contentsafety/ai-content-safety-rest/README.md b/sdk/contentsafety/ai-content-safety-rest/README.md index aec9cde296a4..d84d39af810d 100644 --- a/sdk/contentsafety/ai-content-safety-rest/README.md +++ b/sdk/contentsafety/ai-content-safety-rest/README.md @@ -1312,7 +1312,7 @@ async function removeBlockItems() { Enabling 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`: -```javascript +```ts const { setLogLevel } = require("@azure/logger"); setLogLevel("info"); diff --git a/sdk/contentsafety/ai-content-safety-rest/api-extractor.json b/sdk/contentsafety/ai-content-safety-rest/api-extractor.json index c3efb349c43a..bcb04c42bfdd 100644 --- a/sdk/contentsafety/ai-content-safety-rest/api-extractor.json +++ b/sdk/contentsafety/ai-content-safety-rest/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "mainEntryPointFilePath": "dist/esm/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/ai-content-safety.d.ts" + "publicTrimmedFilePath": "dist/ai-content-safety.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } } diff --git a/sdk/contentsafety/ai-content-safety-rest/karma.conf.js b/sdk/contentsafety/ai-content-safety-rest/karma.conf.js deleted file mode 100644 index 4c5e19985f37..000000000000 --- a/sdk/contentsafety/ai-content-safety-rest/karma.conf.js +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - { - pattern: "./samples-dev/example-data/*.png", - watched: false, - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: [ - "TEST_MODE", - "ENDPOINT", - "AZURE_CLIENT_SECRET", - "AZURE_CLIENT_ID", - "AZURE_TENANT_ID", - "AZURE_SUBSCRIPTION_ID", - "SUBSCRIPTION_ID", - "RECORDINGS_RELATIVE_PATH", - "CONTENT_SAFETY_ENDPOINT", - "CONTENT_SAFETY_API_KEY", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/contentsafety/ai-content-safety-rest/package.json b/sdk/contentsafety/ai-content-safety-rest/package.json index 56631a7e041d..8243d04bcc97 100644 --- a/sdk/contentsafety/ai-content-safety-rest/package.json +++ b/sdk/contentsafety/ai-content-safety-rest/package.json @@ -13,31 +13,28 @@ "isomorphic" ], "license": "MIT", - "main": "dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/ai-content-safety.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/", - "dist-esm/src/", - "types/ai-content-safety.d.ts", "README.md", - "LICENSE", - "review/*" + "LICENSE" ], "engines": { "node": ">=18.0.0" }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run vendored cross-env ONLY_BROWSER=true rollup -c 2>&1", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run vendored cross-env ONLY_NODE=true rollup -c 2>&1", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run vendored cross-env ONLY_BROWSER=true rollup -c 2>&1", + "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api", + "build:node": "dev-tool run build-package && dev-tool run vendored cross-env ONLY_NODE=true rollup -c 2>&1", "build:samples": "echo skipped.", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", @@ -45,8 +42,8 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "generate:client": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -54,49 +51,38 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.1.4", - "@azure/core-auth": "^1.3.0", - "@azure/core-paging": "^1.5.0", - "@azure/core-rest-pipeline": "^1.12.0", - "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "@azure-rest/core-client": "^2.3.1", + "@azure/core-auth": "^1.9.0", + "@azure/core-paging": "^1.6.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/core-util": "^1.6.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "autorest": "latest", - "chai": "^4.2.0", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^2.1.2", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.4.0", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.49.0", + "rollup-plugin-copy": "^3.5.0", + "typescript": "~5.6.2", + "vitest": "^2.1.5" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/contentsafety/ai-content-safety-rest/README.md", "//metadata": { @@ -107,9 +93,7 @@ } ] }, - "browser": { - "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" - }, + "browser": "./dist/browser/index.js", "//sampleConfiguration": { "productName": "ContentSafety", "productSlugs": [ @@ -123,5 +107,42 @@ }, "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure-rest/ai-content-safety?view=azure-node-preview" + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/contentsafety/ai-content-safety-rest/samples-dev/sampleAnalyzeImage.ts b/sdk/contentsafety/ai-content-safety-rest/samples-dev/sampleAnalyzeImage.ts index 1354b7d0d33f..2be1548eb740 100644 --- a/sdk/contentsafety/ai-content-safety-rest/samples-dev/sampleAnalyzeImage.ts +++ b/sdk/contentsafety/ai-content-safety-rest/samples-dev/sampleAnalyzeImage.ts @@ -5,18 +5,13 @@ * @summary Demonstrates how to analyze image. */ -import ContentSafetyClient, { - isUnexpected, -} from "@azure-rest/ai-content-safety"; +import ContentSafetyClient, { isUnexpected } from "@azure-rest/ai-content-safety"; import { AzureKeyCredential } from "@azure/core-auth"; -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; +import "dotenv/config"; -// Load the .env file if it exists -import * as dotenv from "dotenv"; -dotenv.config(); - -async function main() { +async function main(): Promise { const endpoint = process.env["CONTENT_SAFETY_ENDPOINT"] || ""; const key = process.env["CONTENT_SAFETY_API_KEY"] || ""; @@ -38,7 +33,11 @@ async function main() { for (let i = 0; i < result.body.categoriesAnalysis.length; i++) { const imageCategoriesAnalysisOutput = result.body.categoriesAnalysis[i]; - console.log(imageCategoriesAnalysisOutput.category, " severity: ", imageCategoriesAnalysisOutput.severity) + console.log( + imageCategoriesAnalysisOutput.category, + " severity: ", + imageCategoriesAnalysisOutput.severity, + ); } } diff --git a/sdk/contentsafety/ai-content-safety-rest/samples-dev/sampleAnalyzeText.ts b/sdk/contentsafety/ai-content-safety-rest/samples-dev/sampleAnalyzeText.ts index 6bf2755e714a..d7830c1e2527 100644 --- a/sdk/contentsafety/ai-content-safety-rest/samples-dev/sampleAnalyzeText.ts +++ b/sdk/contentsafety/ai-content-safety-rest/samples-dev/sampleAnalyzeText.ts @@ -5,16 +5,11 @@ * @summary Demonstrates how to analyze text. */ -import ContentSafetyClient, { - isUnexpected -} from "@azure-rest/ai-content-safety"; +import ContentSafetyClient, { isUnexpected } from "@azure-rest/ai-content-safety"; import { AzureKeyCredential } from "@azure/core-auth"; +import "dotenv/config"; -// Load the .env file if it exists -import * as dotenv from "dotenv"; -dotenv.config(); - -async function main() { +async function main(): Promise { const endpoint = process.env["CONTENT_SAFETY_ENDPOINT"] || ""; const key = process.env["CONTENT_SAFETY_API_KEY"] || ""; @@ -33,7 +28,11 @@ async function main() { for (let i = 0; i < result.body.categoriesAnalysis.length; i++) { const textCategoriesAnalysisOutput = result.body.categoriesAnalysis[i]; - console.log(textCategoriesAnalysisOutput.category, " severity: ", textCategoriesAnalysisOutput.severity) + console.log( + textCategoriesAnalysisOutput.category, + " severity: ", + textCategoriesAnalysisOutput.severity, + ); } } diff --git a/sdk/contentsafety/ai-content-safety-rest/samples-dev/sampleManageBlocklist.ts b/sdk/contentsafety/ai-content-safety-rest/samples-dev/sampleManageBlocklist.ts index c6ab2377c673..e96903c067ef 100644 --- a/sdk/contentsafety/ai-content-safety-rest/samples-dev/sampleManageBlocklist.ts +++ b/sdk/contentsafety/ai-content-safety-rest/samples-dev/sampleManageBlocklist.ts @@ -5,15 +5,10 @@ * @summary Demonstrates how to manage blocklist. */ -import ContentSafetyClient, { - CreateOrUpdateTextBlocklistParameters, - isUnexpected -} from "@azure-rest/ai-content-safety"; +import type { CreateOrUpdateTextBlocklistParameters } from "@azure-rest/ai-content-safety"; +import ContentSafetyClient, { isUnexpected } from "@azure-rest/ai-content-safety"; import { AzureKeyCredential } from "@azure/core-auth"; - -// Load the .env file if it exists -import * as dotenv from "dotenv"; -dotenv.config(); +import "dotenv/config"; const endpoint = process.env["CONTENT_SAFETY_ENDPOINT"] || ""; const key = process.env["CONTENT_SAFETY_API_KEY"] || ""; @@ -21,26 +16,33 @@ const key = process.env["CONTENT_SAFETY_API_KEY"] || ""; const credential = new AzureKeyCredential(key); const client = ContentSafetyClient(endpoint, credential); -async function createOrUpdateTextBlocklist() { +async function createOrUpdateTextBlocklist(): Promise { const blocklistName = "TestBlocklist"; const blocklistDescription = "Test blocklist management."; const createOrUpdateTextBlocklistParameters: CreateOrUpdateTextBlocklistParameters = { contentType: "application/merge-patch+json", body: { description: blocklistDescription, - } - } + }, + }; - const result = await client.path("/text/blocklists/{blocklistName}", blocklistName).patch(createOrUpdateTextBlocklistParameters); + const result = await client + .path("/text/blocklists/{blocklistName}", blocklistName) + .patch(createOrUpdateTextBlocklistParameters); if (isUnexpected(result)) { throw result; } - console.log("Blocklist created or updated: Name", result.body.blocklistName, ", Description: ", result.body.description); + console.log( + "Blocklist created or updated: Name", + result.body.blocklistName, + ", Description: ", + result.body.description, + ); } -async function addBlockItems() { +async function addBlockItems(): Promise { const blocklistName = "TestBlocklist"; const blockItemText1 = "sample"; const blockItemText2 = "text"; @@ -49,17 +51,19 @@ async function addBlockItems() { blocklistItems: [ { description: "Test block item 1", - text: blockItemText1 + text: blockItemText1, }, { description: "Test block item 2", - text: blockItemText2 - } - ] - } + text: blockItemText2, + }, + ], + }, }; - const result = await client.path("/text/blocklists/{blocklistName}:addOrUpdateBlocklistItems", blocklistName).post(addOrUpdateBlocklistItemsParameters); + const result = await client + .path("/text/blocklists/{blocklistName}:addOrUpdateBlocklistItems", blocklistName) + .post(addOrUpdateBlocklistItemsParameters); if (isUnexpected(result)) { throw result; @@ -68,20 +72,27 @@ async function addBlockItems() { console.log("Block items added: "); if (result.body.blocklistItems) { for (const blockItem of result.body.blocklistItems) { - console.log("BlockItemId: ", blockItem.blocklistItemId, ", Text: ", blockItem.text, ", Description: ", blockItem.description); + console.log( + "BlockItemId: ", + blockItem.blocklistItemId, + ", Text: ", + blockItem.text, + ", Description: ", + blockItem.description, + ); } } } -async function analyzeTextWithBlocklists() { +async function analyzeTextWithBlocklists(): Promise { const blocklistName = "TestBlocklist"; const inputText = "This is a sample to test text with blocklist."; const analyzeTextParameters = { body: { text: inputText, blocklistNames: [blocklistName], - haltOnBlocklistHit: false - } + haltOnBlocklistHit: false, + }, }; const result = await client.path("/text:analyze").post(analyzeTextParameters); @@ -93,12 +104,19 @@ async function analyzeTextWithBlocklists() { console.log("Blocklist match results: "); if (result.body.blocklistsMatch) { for (const blocklistMatchResult of result.body.blocklistsMatch) { - console.log("BlocklistName: ", blocklistMatchResult.blocklistName, ", BlockItemId: ", blocklistMatchResult.blocklistItemId, ", BlockItemText: ", blocklistMatchResult.blocklistItemText); + console.log( + "BlocklistName: ", + blocklistMatchResult.blocklistName, + ", BlockItemId: ", + blocklistMatchResult.blocklistItemId, + ", BlockItemText: ", + blocklistMatchResult.blocklistItemText, + ); } } } -async function listTextBlocklists() { +async function listTextBlocklists(): Promise { const result = await client.path("/text/blocklists").get(); if (isUnexpected(result)) { @@ -108,12 +126,17 @@ async function listTextBlocklists() { console.log("List blocklists: "); if (result.body.value) { for (const blocklist of result.body.value) { - console.log("BlocklistName: ", blocklist.blocklistName, ", Description: ", blocklist.description); + console.log( + "BlocklistName: ", + blocklist.blocklistName, + ", Description: ", + blocklist.description, + ); } } } -async function getTextBlocklist() { +async function getTextBlocklist(): Promise { const blocklistName = "TestBlocklist"; const result = await client.path("/text/blocklists/{blocklistName}", blocklistName).get(); @@ -126,10 +149,12 @@ async function getTextBlocklist() { console.log("Name: ", result.body.blocklistName, ", Description: ", result.body.description); } -async function listBlockItems() { +async function listBlockItems(): Promise { const blocklistName = "TestBlocklist"; - const result = await client.path("/text/blocklists/{blocklistName}/blocklistItems", blocklistName).get(); + const result = await client + .path("/text/blocklists/{blocklistName}/blocklistItems", blocklistName) + .get(); if (isUnexpected(result)) { throw result; @@ -138,12 +163,19 @@ async function listBlockItems() { console.log("List block items: "); if (result.body.value) { for (const blockItem of result.body.value) { - console.log("BlockItemId: ", blockItem.blocklistItemId, ", Text: ", blockItem.text, ", Description: ", blockItem.description); + console.log( + "BlockItemId: ", + blockItem.blocklistItemId, + ", Text: ", + blockItem.text, + ", Description: ", + blockItem.description, + ); } } } -async function getBlockItem() { +async function getBlockItem(): Promise { const blocklistName = "TestBlocklist"; const blockItemText = "sample"; const addOrUpdateBlocklistItemsParameters = { @@ -151,28 +183,43 @@ async function getBlockItem() { blocklistItems: [ { description: "Test block item 1", - text: blockItemText - } - ] - } + text: blockItemText, + }, + ], + }, }; - const result = await client.path("/text/blocklists/{blocklistName}:addOrUpdateBlocklistItems", blocklistName).post(addOrUpdateBlocklistItemsParameters); + const result = await client + .path("/text/blocklists/{blocklistName}:addOrUpdateBlocklistItems", blocklistName) + .post(addOrUpdateBlocklistItemsParameters); if (isUnexpected(result) || result.body.blocklistItems === undefined) { throw new Error("Block item not added."); } const blockItemId = result.body.blocklistItems[0].blocklistItemId; - const blockItem = await client.path("/text/blocklists/{blocklistName}/blocklistItems/{blocklistItemId}", blocklistName, blockItemId).get(); + const blockItem = await client + .path( + "/text/blocklists/{blocklistName}/blocklistItems/{blocklistItemId}", + blocklistName, + blockItemId, + ) + .get(); if (isUnexpected(blockItem)) { throw blockItem; } console.log("Get blockitem: "); - console.log("BlockItemId: ", blockItem.body.blocklistItemId, ", Text: ", blockItem.body.text, ", Description: ", blockItem.body.description); + console.log( + "BlockItemId: ", + blockItem.body.blocklistItemId, + ", Text: ", + blockItem.body.text, + ", Description: ", + blockItem.body.description, + ); } -async function removeBlockItems() { +async function removeBlockItems(): Promise { const blocklistName = "TestBlocklist"; const blockItemText = "sample"; const addOrUpdateBlocklistItemsParameters = { @@ -180,12 +227,14 @@ async function removeBlockItems() { blocklistItems: [ { description: "Test block item 1", - text: blockItemText - } - ] - } + text: blockItemText, + }, + ], + }, }; - const result = await client.path("/text/blocklists/{blocklistName}:addOrUpdateBlocklistItems", blocklistName).post(addOrUpdateBlocklistItemsParameters); + const result = await client + .path("/text/blocklists/{blocklistName}:addOrUpdateBlocklistItems", blocklistName) + .post(addOrUpdateBlocklistItemsParameters); if (isUnexpected(result) || result.body.blocklistItems === undefined) { throw new Error("Block item not added."); } @@ -193,10 +242,12 @@ async function removeBlockItems() { const removeBlocklistItemsParameters = { body: { - blocklistItemIds: [blockItemId] - } + blocklistItemIds: [blockItemId], + }, }; - const removeBlockItem = await client.path("/text/blocklists/{blocklistName}:removeBlocklistItems", blocklistName).post(removeBlocklistItemsParameters); + const removeBlockItem = await client + .path("/text/blocklists/{blocklistName}:removeBlocklistItems", blocklistName) + .post(removeBlocklistItemsParameters); if (isUnexpected(removeBlockItem)) { throw removeBlockItem; @@ -205,7 +256,7 @@ async function removeBlockItems() { console.log("Removed blockItem: ", blockItemText); } -async function deleteBlocklist() { +async function deleteBlocklist(): Promise { const blocklistName = "TestBlocklist"; const result = await client.path("/text/blocklists/{blocklistName}", blocklistName).delete(); diff --git a/sdk/contentsafety/ai-content-safety-rest/src/clientDefinitions.ts b/sdk/contentsafety/ai-content-safety-rest/src/clientDefinitions.ts index 89e32d0c316d..ffbd905cfc8a 100644 --- a/sdk/contentsafety/ai-content-safety-rest/src/clientDefinitions.ts +++ b/sdk/contentsafety/ai-content-safety-rest/src/clientDefinitions.ts @@ -12,7 +12,7 @@ import type { RemoveBlocklistItemsParameters, GetTextBlocklistItemParameters, ListTextBlocklistItemsParameters, -} from "./parameters"; +} from "./parameters.js"; import type { AnalyzeText200Response, AnalyzeTextDefaultResponse, @@ -35,7 +35,7 @@ import type { GetTextBlocklistItemDefaultResponse, ListTextBlocklistItems200Response, ListTextBlocklistItemsDefaultResponse, -} from "./responses"; +} from "./responses.js"; import type { Client, StreamableMethod } from "@azure-rest/core-client"; export interface AnalyzeText { diff --git a/sdk/contentsafety/ai-content-safety-rest/src/contentSafetyClient.ts b/sdk/contentsafety/ai-content-safety-rest/src/contentSafetyClient.ts index 11de9651d47e..b283bcc5e8a8 100644 --- a/sdk/contentsafety/ai-content-safety-rest/src/contentSafetyClient.ts +++ b/sdk/contentsafety/ai-content-safety-rest/src/contentSafetyClient.ts @@ -3,9 +3,9 @@ import type { ClientOptions } from "@azure-rest/core-client"; import { getClient } from "@azure-rest/core-client"; -import { logger } from "./logger"; +import { logger } from "./logger.js"; import type { TokenCredential, KeyCredential } from "@azure/core-auth"; -import type { ContentSafetyClient } from "./clientDefinitions"; +import type { ContentSafetyClient } from "./clientDefinitions.js"; /** * Initialize a new instance of `ContentSafetyClient` diff --git a/sdk/contentsafety/ai-content-safety-rest/src/index.ts b/sdk/contentsafety/ai-content-safety-rest/src/index.ts index 93e02975a8e5..445b49c6bfe9 100644 --- a/sdk/contentsafety/ai-content-safety-rest/src/index.ts +++ b/sdk/contentsafety/ai-content-safety-rest/src/index.ts @@ -1,15 +1,16 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import ContentSafetyClient from "./contentSafetyClient"; +import ContentSafetyClient from "./contentSafetyClient.js"; -export * from "./contentSafetyClient"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./paginateHelper"; +export * from "./contentSafetyClient.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./paginateHelper.js"; +// eslint-disable-next-line @azure/azure-sdk/ts-modules-only-named export default ContentSafetyClient; diff --git a/sdk/contentsafety/ai-content-safety-rest/src/isUnexpected.ts b/sdk/contentsafety/ai-content-safety-rest/src/isUnexpected.ts index 860c320bc851..382b7d3dd252 100644 --- a/sdk/contentsafety/ai-content-safety-rest/src/isUnexpected.ts +++ b/sdk/contentsafety/ai-content-safety-rest/src/isUnexpected.ts @@ -23,7 +23,7 @@ import type { GetTextBlocklistItemDefaultResponse, ListTextBlocklistItems200Response, ListTextBlocklistItemsDefaultResponse, -} from "./responses"; +} from "./responses.js"; const responseMap: Record = { "POST /text:analyze": ["200"], diff --git a/sdk/contentsafety/ai-content-safety-rest/src/parameters.ts b/sdk/contentsafety/ai-content-safety-rest/src/parameters.ts index b14ff16dd770..b787eb2d0e7b 100644 --- a/sdk/contentsafety/ai-content-safety-rest/src/parameters.ts +++ b/sdk/contentsafety/ai-content-safety-rest/src/parameters.ts @@ -8,7 +8,7 @@ import type { TextBlocklist, AddOrUpdateTextBlocklistItemsOptions, RemoveTextBlocklistItemsOptions, -} from "./models"; +} from "./models.js"; export interface AnalyzeTextBodyParam { /** The text analysis request. */ diff --git a/sdk/contentsafety/ai-content-safety-rest/src/responses.ts b/sdk/contentsafety/ai-content-safety-rest/src/responses.ts index bbf9b343850d..b5bef7d4fce1 100644 --- a/sdk/contentsafety/ai-content-safety-rest/src/responses.ts +++ b/sdk/contentsafety/ai-content-safety-rest/src/responses.ts @@ -11,7 +11,7 @@ import type { AddOrUpdateTextBlocklistItemsResultOutput, TextBlocklistItemOutput, PagedTextBlocklistItemOutput, -} from "./outputModels"; +} from "./outputModels.js"; /** The request has succeeded. */ export interface AnalyzeText200Response extends HttpResponse { diff --git a/sdk/contentsafety/ai-content-safety-rest/test/public/contentSafety.spec.ts b/sdk/contentsafety/ai-content-safety-rest/test/public/contentSafety.spec.ts index 11f2a29e819f..29bff673d55b 100644 --- a/sdk/contentsafety/ai-content-safety-rest/test/public/contentSafety.spec.ts +++ b/sdk/contentsafety/ai-content-safety-rest/test/public/contentSafety.spec.ts @@ -3,15 +3,14 @@ import type { Recorder } from "@azure-tools/test-recorder"; import { isPlaybackMode } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { createRecorder, createClient } from "./utils/recordedClient"; -import type { Context } from "mocha"; -import type { ContentSafetyClient, TextBlocklistItemOutput } from "../../src"; -import { isUnexpected, paginate } from "../../src"; +import { createRecorder, createClient } from "./utils/recordedClient.js"; +import type { ContentSafetyClient, TextBlocklistItemOutput } from "../../src/index.js"; +import { isUnexpected, paginate } from "../../src/index.js"; import type { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; import { isBrowser } from "@azure/core-util"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; describe("Content Safety Client Test", () => { let recorder: Recorder; @@ -19,12 +18,12 @@ describe("Content Safety Client Test", () => { function sleep(time: number): Promise { return new Promise((resolve) => setTimeout(resolve, time)); } - function uint8ArrayToBase64(binary: Uint8Array) { + function uint8ArrayToBase64(binary: Uint8Array): string { let binaryString = ""; binary.forEach((byte) => { binaryString += String.fromCharCode(byte); }); - return self.btoa(binaryString); + return globalThis.btoa(binaryString); } const blocklistName = "TestBlocklist"; const blockItemText1 = "sample"; @@ -32,16 +31,16 @@ describe("Content Safety Client Test", () => { const blockItemText3 = "image"; let blockItemId: string; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); - client = await createClient(recorder); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); + client = createClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("analyze text", async function () { + it("analyze text", async () => { const response = await client.path("/text:analyze").post({ body: { text: "This is a sample text", @@ -57,11 +56,11 @@ describe("Content Safety Client Test", () => { assert.notExists(response.body.categoriesAnalysis[1]); }); - it("analyze image", async function () { + it("analyze image", async () => { let base64Image: string; if (isBrowser) { - const imagePath = "/base/samples-dev/example-data/image.png"; - const response = await fetch(imagePath); + const imagePath = "../../../samples-dev/example-data/image.png"; + const response = await globalThis.fetch(imagePath); const buffer = await response.arrayBuffer(); const binary = new Uint8Array(buffer); base64Image = uint8ArrayToBase64(binary); @@ -87,7 +86,7 @@ describe("Content Safety Client Test", () => { assert.notExists(response.body.categoriesAnalysis[1]); }); - it("create blocklist", async function () { + it("create blocklist", async () => { const createBlockListResponse = await client .path("/text/blocklists/{blocklistName}", blocklistName) .patch({ @@ -103,7 +102,7 @@ describe("Content Safety Client Test", () => { assert.equal(createBlockListResponse.body.blocklistName, blocklistName); }); - it("add block items", async function () { + it("add block items", async () => { const addBlockItemsResponse = await client .path("/text/blocklists/{blocklistName}:addOrUpdateBlocklistItems", blocklistName) .post({ @@ -135,7 +134,7 @@ describe("Content Safety Client Test", () => { } }); - it("analyze text with blocklist", async function () { + it("analyze text with blocklist", async () => { const analyzeTextResponse = await client.path("/text:analyze").post({ body: { text: "This is a sample to test.", @@ -150,7 +149,7 @@ describe("Content Safety Client Test", () => { assert.isArray(analyzeTextResponse.body.blocklistsMatch); }); - it("list text blocklists", async function () { + it("list text blocklists", async () => { const listTextBlocklistsResponse = await client.path("/text/blocklists").get(); if (isUnexpected(listTextBlocklistsResponse)) { throw new Error(listTextBlocklistsResponse.body?.error.message); @@ -159,7 +158,7 @@ describe("Content Safety Client Test", () => { assert.isArray(listTextBlocklistsResponse.body.value); }); - it("get text blocklist", async function () { + it("get text blocklist", async () => { const getTextBlocklistResponse = await client .path("/text/blocklists/{blocklistName}", blocklistName) .get(); @@ -170,7 +169,7 @@ describe("Content Safety Client Test", () => { assert.equal(getTextBlocklistResponse.body.blocklistName, blocklistName); }); - it("list block items", async function () { + it("list block items", async () => { const listBlockItemsResponse = await client .path("/text/blocklists/{blocklistName}/blocklistItems", blocklistName) .get(); @@ -182,7 +181,7 @@ describe("Content Safety Client Test", () => { blockItemId = listBlockItemsResponse.body.value[1].blocklistItemId; }); - it("list block items with pagination helper", async function () { + it("list block items with pagination helper", async () => { const dataSources = await client .path("/text/blocklists/{blocklistName}/blocklistItems", blocklistName) .get(); @@ -199,7 +198,7 @@ describe("Content Safety Client Test", () => { assert.equal(items[1].blocklistItemId, blockItemId); }); - it("list block items with pagination 1", async function () { + it("list block items with pagination 1", async () => { const listBlockItemsResponse = await client .path("/text/blocklists/{blocklistName}/blocklistItems", blocklistName) .get({ @@ -219,7 +218,7 @@ describe("Content Safety Client Test", () => { assert.equal(skip, "1"); }); - it("list block items with pagination 2", async function () { + it("list block items with pagination 2", async () => { const listBlockItemsResponse = await client .path("/text/blocklists/{blocklistName}/blocklistItems", blocklistName) .get({ @@ -240,7 +239,7 @@ describe("Content Safety Client Test", () => { assert.equal(skip, "2"); }); - it("list block items with pagination 3", async function () { + it("list block items with pagination 3", async () => { const listBlockItemsResponse = await client .path("/text/blocklists/{blocklistName}/blocklistItems", blocklistName) .get({ @@ -259,7 +258,7 @@ describe("Content Safety Client Test", () => { assert.notExists(listBlockItemsResponse.body.nextLink); }); - it("get block item", async function () { + it("get block item", async () => { const getBlockItemResponse = await client .path( "/text/blocklists/{blocklistName}/blocklistItems/{blocklistItemId}", @@ -274,7 +273,7 @@ describe("Content Safety Client Test", () => { assert.equal(getBlockItemResponse.body.blocklistItemId, blockItemId); }); - it("remove block item", async function () { + it("remove block item", async () => { const removeBlockItemResponse = await client .path("/text/blocklists/{blocklistName}:removeBlocklistItems", blocklistName) .post({ @@ -288,7 +287,7 @@ describe("Content Safety Client Test", () => { assert.strictEqual(removeBlockItemResponse.status, "204"); }); - it("delete blocklist", async function () { + it("delete blocklist", async () => { const deleteBlockListResponse = await client .path("/text/blocklists/{blocklistName}", blocklistName) .delete(); diff --git a/sdk/contentsafety/ai-content-safety-rest/test/public/contentSafety_AADAuth.spec.ts b/sdk/contentsafety/ai-content-safety-rest/test/public/contentSafety_AADAuth.spec.ts index ae7a6c508438..e461966ae139 100644 --- a/sdk/contentsafety/ai-content-safety-rest/test/public/contentSafety_AADAuth.spec.ts +++ b/sdk/contentsafety/ai-content-safety-rest/test/public/contentSafety_AADAuth.spec.ts @@ -2,37 +2,36 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { createAADRecorder, createAADClient } from "./utils/recordedAADClient"; -import type { Context } from "mocha"; -import type { ContentSafetyClient } from "../../src"; -import { isUnexpected } from "../../src"; -import fs from "fs"; -import path from "path"; +import { createAADRecorder, createAADClient } from "./utils/recordedAADClient.js"; +import type { ContentSafetyClient } from "../../src/index.js"; +import { isUnexpected } from "../../src/index.js"; +import fs from "node:fs"; +import path from "node:path"; import { isBrowser } from "@azure/core-util"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; describe("Content Safety AAD Client Test", () => { let recorder: Recorder; let client: ContentSafetyClient; - function uint8ArrayToBase64(binary: Uint8Array) { + function uint8ArrayToBase64(binary: Uint8Array): string { let binaryString = ""; binary.forEach((byte) => { binaryString += String.fromCharCode(byte); }); - return self.btoa(binaryString); + return globalThis.btoa(binaryString); } - beforeEach(async function (this: Context) { - recorder = await createAADRecorder(this); - client = await createAADClient(recorder); + beforeEach(async (ctx) => { + recorder = await createAADRecorder(ctx); + client = createAADClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("analyze text with aad auth", async function () { + it("analyze text with aad auth", async () => { const response = await client.path("/text:analyze").post({ body: { text: "This is a sample text", @@ -48,11 +47,11 @@ describe("Content Safety AAD Client Test", () => { assert.notExists(response.body.categoriesAnalysis[1]); }); - it("analyze image with aad auth", async function () { + it("analyze image with aad auth", async () => { let base64Image: string; if (isBrowser) { - const imagePath = "/base/samples-dev/example-data/image.png"; - const response = await fetch(imagePath); + const imagePath = "../../../samples-dev/example-data/image.png"; + const response = await globalThis.fetch(imagePath); const buffer = await response.arrayBuffer(); const binary = new Uint8Array(buffer); base64Image = uint8ArrayToBase64(binary); diff --git a/sdk/contentsafety/ai-content-safety-rest/test/public/utils/env.browser.ts b/sdk/contentsafety/ai-content-safety-rest/test/public/utils/env-browser.mts similarity index 100% rename from sdk/contentsafety/ai-content-safety-rest/test/public/utils/env.browser.ts rename to sdk/contentsafety/ai-content-safety-rest/test/public/utils/env-browser.mts diff --git a/sdk/contentsafety/ai-content-safety-rest/test/public/utils/env.ts b/sdk/contentsafety/ai-content-safety-rest/test/public/utils/env.ts index 866412f4082d..54ee1e71af77 100644 --- a/sdk/contentsafety/ai-content-safety-rest/test/public/utils/env.ts +++ b/sdk/contentsafety/ai-content-safety-rest/test/public/utils/env.ts @@ -1,6 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; diff --git a/sdk/contentsafety/ai-content-safety-rest/test/public/utils/recordedAADClient.ts b/sdk/contentsafety/ai-content-safety-rest/test/public/utils/recordedAADClient.ts index 63bf606dc5f2..464bb5021e9b 100644 --- a/sdk/contentsafety/ai-content-safety-rest/test/public/utils/recordedAADClient.ts +++ b/sdk/contentsafety/ai-content-safety-rest/test/public/utils/recordedAADClient.ts @@ -1,12 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Context } from "mocha"; -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, assertEnvironmentVariable } from "@azure-tools/test-recorder"; -import "./env"; -import type { ContentSafetyClient } from "../../../src"; -import ContentSafety from "../../../src"; +import "./env.js"; +import type { ContentSafetyClient } from "../../../src/index.js"; +import ContentSafety from "../../../src/index.js"; import { createTestCredential } from "@azure-tools/test-credential"; // import { AzureKeyCredential } from "@azure/core-auth"; // import { ClientOptions } from "@azure-rest/core-client"; @@ -28,8 +27,8 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createAADRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); +export async function createAADRecorder(context: TestInfo): Promise { + const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; } diff --git a/sdk/contentsafety/ai-content-safety-rest/test/public/utils/recordedClient.ts b/sdk/contentsafety/ai-content-safety-rest/test/public/utils/recordedClient.ts index ba5fb0931250..22766a7f8e46 100644 --- a/sdk/contentsafety/ai-content-safety-rest/test/public/utils/recordedClient.ts +++ b/sdk/contentsafety/ai-content-safety-rest/test/public/utils/recordedClient.ts @@ -1,12 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Context } from "mocha"; -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, assertEnvironmentVariable } from "@azure-tools/test-recorder"; -import "./env"; -import type { ContentSafetyClient } from "../../../src"; -import ContentSafety from "../../../src"; +import "./env.js"; +import type { ContentSafetyClient } from "../../../src/index.js"; +import ContentSafety from "../../../src/index.js"; import { AzureKeyCredential } from "@azure/core-auth"; // import { ClientOptions } from "@azure-rest/core-client"; @@ -24,8 +23,8 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); +export async function createRecorder(context: TestInfo): Promise { + const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; } diff --git a/sdk/contentsafety/ai-content-safety-rest/tsconfig.browser.config.json b/sdk/contentsafety/ai-content-safety-rest/tsconfig.browser.config.json new file mode 100644 index 000000000000..d1145edb4e72 --- /dev/null +++ b/sdk/contentsafety/ai-content-safety-rest/tsconfig.browser.config.json @@ -0,0 +1,16 @@ +{ + "extends": "./.tshy/build.json", + "include": [ + "./src/**/*.ts", + "./src/**/*.mts", + "./samples-dev/**/*.ts", + "./test/**/*.spec.ts", + "./test/**/*.mts" + ], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/contentsafety/ai-content-safety-rest/tsconfig.json b/sdk/contentsafety/ai-content-safety-rest/tsconfig.json index 63e57f77f784..d8f4dd007142 100644 --- a/sdk/contentsafety/ai-content-safety-rest/tsconfig.json +++ b/sdk/contentsafety/ai-content-safety-rest/tsconfig.json @@ -1,12 +1,21 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", - "lib": ["es6", "dom"], + "lib": ["dom"], "paths": { "@azure-rest/ai-content-safety": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/contentsafety/ai-content-safety-rest/vitest.browser.config.ts b/sdk/contentsafety/ai-content-safety-rest/vitest.browser.config.ts new file mode 100644 index 000000000000..51359cbd89c1 --- /dev/null +++ b/sdk/contentsafety/ai-content-safety-rest/vitest.browser.config.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; +import copy from "rollup-plugin-copy"; +import { dirname, resolve } from "path"; +import { fileURLToPath } from "node:url"; + +const __dirname = dirname(fileURLToPath(import.meta.url)); +const sourceImage = resolve(__dirname, "./samples-dev/example-data/image.png"); +const dest = resolve(__dirname, "./dist-test/browser/samples-dev/example-data"); + +export default mergeConfig( + viteConfig, + defineConfig({ + plugins: [ + copy({ + targets: [{ src: sourceImage, dest: dest }], + }), + ], + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/contentsafety/ai-content-safety-rest/vitest.config.ts b/sdk/contentsafety/ai-content-safety-rest/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/contentsafety/ai-content-safety-rest/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/core/core-rest-pipeline/CHANGELOG.md b/sdk/core/core-rest-pipeline/CHANGELOG.md index 7a2b16b088e4..e0633507968d 100644 --- a/sdk/core/core-rest-pipeline/CHANGELOG.md +++ b/sdk/core/core-rest-pipeline/CHANGELOG.md @@ -1,5 +1,21 @@ # Release History +## 1.18.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + +## 1.18.1 (2024-11-26) + +### Bugs Fixed + +- Fix `this` not being bound correctly for `ChallengeCallbacks` implementations in `bearerTokenAuthenticationPolicy`. [PR #31961](https://github.com/Azure/azure-sdk-for-js/pull/31961) + ## 1.18.0 (2024-11-12) ### Features Added diff --git a/sdk/core/core-rest-pipeline/package.json b/sdk/core/core-rest-pipeline/package.json index c5d30524f859..5eec856cf5e3 100644 --- a/sdk/core/core-rest-pipeline/package.json +++ b/sdk/core/core-rest-pipeline/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-rest-pipeline", - "version": "1.18.0", + "version": "1.18.2", "description": "Isomorphic client library for making HTTP requests in node.js and browser.", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-rest-pipeline/src/constants.ts b/sdk/core/core-rest-pipeline/src/constants.ts index 266b63d8f6fa..b32fff79fb89 100644 --- a/sdk/core/core-rest-pipeline/src/constants.ts +++ b/sdk/core/core-rest-pipeline/src/constants.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export const SDK_VERSION: string = "1.18.0"; +export const SDK_VERSION: string = "1.18.2"; export const DEFAULT_RETRY_POLICY_COUNT = 3; diff --git a/sdk/core/core-rest-pipeline/src/policies/bearerTokenAuthenticationPolicy.ts b/sdk/core/core-rest-pipeline/src/policies/bearerTokenAuthenticationPolicy.ts index 898e5a615b25..c0e38ca77459 100644 --- a/sdk/core/core-rest-pipeline/src/policies/bearerTokenAuthenticationPolicy.ts +++ b/sdk/core/core-rest-pipeline/src/policies/bearerTokenAuthenticationPolicy.ts @@ -7,7 +7,8 @@ import type { PipelineRequest, PipelineResponse, SendRequest } from "../interfac import type { PipelinePolicy } from "../pipeline.js"; import { createTokenCycler } from "../util/tokenCycler.js"; import { logger as coreLogger } from "../log.js"; -import { isRestError, RestError } from "../restError.js"; +import type { RestError } from "../restError.js"; +import { isRestError } from "../restError.js"; /** * The programmatic identifier of the bearerTokenAuthenticationPolicy. @@ -188,8 +189,10 @@ export function bearerTokenAuthenticationPolicy( const { credential, scopes, challengeCallbacks } = options; const logger = options.logger || coreLogger; const callbacks = { - authorizeRequest: challengeCallbacks?.authorizeRequest ?? defaultAuthorizeRequest, - authorizeRequestOnChallenge: challengeCallbacks?.authorizeRequestOnChallenge, + authorizeRequest: + challengeCallbacks?.authorizeRequest?.bind(challengeCallbacks) ?? defaultAuthorizeRequest, + authorizeRequestOnChallenge: + challengeCallbacks?.authorizeRequestOnChallenge?.bind(challengeCallbacks), }; // This function encapsulates the entire process of reliably retrieving the token diff --git a/sdk/core/core-rest-pipeline/test/bearerTokenAuthenticationPolicy.spec.ts b/sdk/core/core-rest-pipeline/test/bearerTokenAuthenticationPolicy.spec.ts index b454779c8025..261d09a16d84 100644 --- a/sdk/core/core-rest-pipeline/test/bearerTokenAuthenticationPolicy.spec.ts +++ b/sdk/core/core-rest-pipeline/test/bearerTokenAuthenticationPolicy.spec.ts @@ -4,6 +4,7 @@ import { AccessToken, TokenCredential } from "@azure/core-auth"; import type { AuthorizeRequestOnChallengeOptions, + ChallengeCallbacks, PipelinePolicy, PipelineResponse, SendRequest, @@ -437,6 +438,48 @@ describe("BearerTokenAuthenticationPolicy", function () { expectedClaims: `Bearer authorization_uri="https://login.windows.net/", error="invalid_token"`, }; + it("ChallengeCallbacks are able to access class fields", async function () { + const policy = bearerTokenAuthenticationPolicy({ + scopes: [], + challengeCallbacks: new (class implements ChallengeCallbacks { + private field = "field value"; + + async authorizeRequest(): Promise { + assert.equal(this.field, "field value"); + } + + async authorizeRequestOnChallenge(): Promise { + assert.equal(this.field, "field value"); + return true; + } + })(), + }); + + const request = createPipelineRequest({ url: "https://example.com" }); + + const challengeResponse: PipelineResponse = { + headers: createHttpHeaders({ + "WWW-Authenticate": `Basic realm="test"`, + }), + request, + status: 401, + }; + + const successResponse: PipelineResponse = { + headers: createHttpHeaders(), + request, + status: 200, + }; + + const next = vi.fn(); + // Mocked a challenge response and a successful response + next.mockResolvedValueOnce(challengeResponse).mockResolvedValueOnce(successResponse); + + await policy.sendRequest(request, next); + + expect(next).toHaveBeenCalledTimes(2); + }); + matrix([caeTestCases] as const, async function (testCase: Challenge) { // Test different scenarios when we have only 1 CAE challenge returned it(`Single CAE Challenge: ${testCase.testName}`, async function () { diff --git a/sdk/core/ts-http-runtime/review/azure-core-comparison.diff b/sdk/core/ts-http-runtime/review/azure-core-comparison.diff index e1a664dead1b..56b54034c6b0 100644 --- a/sdk/core/ts-http-runtime/review/azure-core-comparison.diff +++ b/sdk/core/ts-http-runtime/review/azure-core-comparison.diff @@ -779,14 +779,14 @@ index 9e947e6..2f30ba0 100644 throw e; diff --git a/src/constants.ts b/src/constants.ts -index 266b63d..60da499 100644 +index b32fff7..60da499 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. --export const SDK_VERSION: string = "1.18.0"; +-export const SDK_VERSION: string = "1.18.2"; +export const SDK_VERSION: string = "1.0.0-beta.1"; export const DEFAULT_RETRY_POLICY_COUNT = 3; @@ -1428,10 +1428,10 @@ index 55110a0..0000000 - }; -} diff --git a/src/policies/bearerTokenAuthenticationPolicy.ts b/src/policies/bearerTokenAuthenticationPolicy.ts -index 898e5a6..87e8f5e 100644 +index c0e38ca..87e8f5e 100644 --- a/src/policies/bearerTokenAuthenticationPolicy.ts +++ b/src/policies/bearerTokenAuthenticationPolicy.ts -@@ -1,13 +1,12 @@ +@@ -1,14 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. @@ -1443,11 +1443,12 @@ index 898e5a6..87e8f5e 100644 import type { PipelinePolicy } from "../pipeline.js"; import { createTokenCycler } from "../util/tokenCycler.js"; import { logger as coreLogger } from "../log.js"; --import { isRestError, RestError } from "../restError.js"; +-import type { RestError } from "../restError.js"; +-import { isRestError } from "../restError.js"; /** * The programmatic identifier of the bearerTokenAuthenticationPolicy. -@@ -33,7 +32,7 @@ export interface AuthorizeRequestOptions { +@@ -34,7 +32,7 @@ export interface AuthorizeRequestOptions { /** * A logger, if one was sent through the HTTP pipeline. */ @@ -1456,7 +1457,7 @@ index 898e5a6..87e8f5e 100644 } /** -@@ -59,7 +58,7 @@ export interface AuthorizeRequestOnChallengeOptions { +@@ -60,7 +58,7 @@ export interface AuthorizeRequestOnChallengeOptions { /** * A logger, if one was sent through the HTTP pipeline. */ @@ -1465,7 +1466,7 @@ index 898e5a6..87e8f5e 100644 } /** -@@ -100,43 +99,18 @@ export interface BearerTokenAuthenticationPolicyOptions { +@@ -101,43 +99,18 @@ export interface BearerTokenAuthenticationPolicyOptions { /** * A logger can be sent for debugging purposes. */ @@ -1511,7 +1512,7 @@ index 898e5a6..87e8f5e 100644 const accessToken = await getAccessToken(scopes, getTokenOptions); if (accessToken) { -@@ -148,34 +122,12 @@ async function defaultAuthorizeRequest(options: AuthorizeRequestOptions): Promis +@@ -149,34 +122,12 @@ async function defaultAuthorizeRequest(options: AuthorizeRequestOptions): Promis * We will retrieve the challenge only if the response status code was 401, * and if the response contained the header "WWW-Authenticate" with a non-empty value. */ @@ -1551,16 +1552,22 @@ index 898e5a6..87e8f5e 100644 } /** -@@ -190,6 +142,8 @@ export function bearerTokenAuthenticationPolicy( +@@ -189,10 +140,10 @@ export function bearerTokenAuthenticationPolicy( + const { credential, scopes, challengeCallbacks } = options; + const logger = options.logger || coreLogger; const callbacks = { - authorizeRequest: challengeCallbacks?.authorizeRequest ?? defaultAuthorizeRequest, - authorizeRequestOnChallenge: challengeCallbacks?.authorizeRequestOnChallenge, +- authorizeRequest: +- challengeCallbacks?.authorizeRequest?.bind(challengeCallbacks) ?? defaultAuthorizeRequest, +- authorizeRequestOnChallenge: +- challengeCallbacks?.authorizeRequestOnChallenge?.bind(challengeCallbacks), ++ authorizeRequest: challengeCallbacks?.authorizeRequest ?? defaultAuthorizeRequest, ++ authorizeRequestOnChallenge: challengeCallbacks?.authorizeRequestOnChallenge, + // keep all other properties + ...challengeCallbacks, }; // This function encapsulates the entire process of reliably retrieving the token -@@ -231,40 +185,20 @@ export function bearerTokenAuthenticationPolicy( +@@ -234,40 +185,20 @@ export function bearerTokenAuthenticationPolicy( let response: PipelineResponse; let error: Error | undefined; @@ -1614,7 +1621,7 @@ index 898e5a6..87e8f5e 100644 scopes: Array.isArray(scopes) ? scopes : [scopes], request, response, -@@ -272,41 +206,8 @@ export function bearerTokenAuthenticationPolicy( +@@ -275,41 +206,8 @@ export function bearerTokenAuthenticationPolicy( logger, }); @@ -1657,7 +1664,7 @@ index 898e5a6..87e8f5e 100644 } } -@@ -318,64 +219,3 @@ export function bearerTokenAuthenticationPolicy( +@@ -321,64 +219,3 @@ export function bearerTokenAuthenticationPolicy( }, }; } diff --git a/sdk/core/ts-http-runtime/scripts/azure-diff.ts b/sdk/core/ts-http-runtime/scripts/azure-diff.ts index 6952b2f4b08c..2101e94da22b 100644 --- a/sdk/core/ts-http-runtime/scripts/azure-diff.ts +++ b/sdk/core/ts-http-runtime/scripts/azure-diff.ts @@ -95,6 +95,8 @@ async function calculatePatchFileContents(): Promise { try { // Initialize temp git repo await run(["git", "init"], { cwd: tmpDir }); + await run(["git", "config", "user.name", "azsdkbot"], { cwd: tmpDir }); + await run(["git", "config", "user.email", "cloudtest@noreply.dx.internal.cloudapp.net"], { cwd: tmpDir }); // Copy over the Azure Core files to where are expected to be in the unbranded Core package for (const [azurePath, newLocation] of Object.entries(AZURE_SOURCES)) { diff --git a/sdk/cosmosdb/cosmos/CHANGELOG.md b/sdk/cosmosdb/cosmos/CHANGELOG.md index 3f82addd3173..fcf947fb92cf 100644 --- a/sdk/cosmosdb/cosmos/CHANGELOG.md +++ b/sdk/cosmosdb/cosmos/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 4.1.2 (Unreleased) +## 4.2.1 (Unreleased) ### Features Added @@ -8,8 +8,18 @@ ### Bugs Fixed +- Fixed issue for incorrect `ParallelizeCrossPartitionQuery` header value. It was set to true if `maxDegreeOfParallelism` was set to 0 or 1 in `FeedOptions` while executing a query. [#31232](https://github.com/Azure/azure-sdk-for-js/issues/31232) + ### Other Changes +## 4.2.0 (2024-11-19) + +### Features Added + +- Full Text Support: This feature adds support for full text search policy and indexing policy. It also enables performing full text search queries. [docs](https://learn.microsoft.com/azure/cosmos-db/gen-ai/full-text-search) +- Hybrid Search Support: This feature adds support for performing hybrid search queries. [docs](https://learn.microsoft.com/azure/cosmos-db/gen-ai/hybrid-search) +- Added support for three optional properties to support `quantizedFlat` and `diskANN` vector indexing policies. The properties are: `quantizationByteSize`, `vectorIndexShardKey` and `indexingSearchListSize`. + ## 4.1.1 (2024-08-30) ### Bugs Fixed diff --git a/sdk/cosmosdb/cosmos/package.json b/sdk/cosmosdb/cosmos/package.json index 83ba6f07f05a..61254fca837a 100644 --- a/sdk/cosmosdb/cosmos/package.json +++ b/sdk/cosmosdb/cosmos/package.json @@ -1,6 +1,6 @@ { "name": "@azure/cosmos", - "version": "4.1.2", + "version": "4.2.1", "description": "Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API", "sdk-type": "client", "keywords": [ @@ -141,7 +141,8 @@ "ChangeFeedIteratorLatestVersion.ts", "ChangeFeedIteratorAllVersionsAndDeletes.ts", "Diagnostics.ts", - "HierarchicalPartitioning.ts" + "HierarchicalPartitioning.ts", + "FullTextSearch.ts" ], "productName": "Azure Cosmos DB", "productSlugs": [ diff --git a/sdk/cosmosdb/cosmos/review/cosmos.api.md b/sdk/cosmosdb/cosmos/review/cosmos.api.md index c587f04500eb..454f36a290fc 100644 --- a/sdk/cosmosdb/cosmos/review/cosmos.api.md +++ b/sdk/cosmosdb/cosmos/review/cosmos.api.md @@ -634,6 +634,7 @@ export interface ContainerDefinition { computedProperties?: ComputedProperty[]; conflictResolutionPolicy?: ConflictResolutionPolicy; defaultTtl?: number; + fullTextPolicy?: FullTextPolicy; geospatialConfig?: { type: GeospatialType; }; @@ -1095,6 +1096,23 @@ export class FeedResponse { readonly resources: TResource[]; } +// @public +export interface FullTextIndex { + path: string; +} + +// @public +export interface FullTextPath { + language: string; + path: string; +} + +// @public +export interface FullTextPolicy { + defaultLanguage: string; + fullTextPaths: FullTextPath[]; +} + // @public (undocumented) export type GatewayStatistics = { activityId?: string; @@ -1161,6 +1179,15 @@ export enum HTTPMethod { put = "PUT" } +// @public +export interface HybridSearchQueryInfo { + componentQueryInfos: QueryInfo[]; + globalStatisticsQuery: string; + requiresGlobalStatistics: boolean; + skip: number; + take: number; +} + // @public (undocumented) export interface Index { // (undocumented) @@ -1192,6 +1219,7 @@ export interface IndexingPolicy { automatic?: boolean; compositeIndexes?: CompositePath[][]; excludedPaths?: IndexedPath[]; + fullTextIndexes?: FullTextIndex[]; includedPaths?: IndexedPath[]; indexingMode?: keyof typeof IndexingMode; // (undocumented) @@ -1452,10 +1480,11 @@ export type OperationWithItem = OperationBase & { // @public (undocumented) export interface PartitionedQueryExecutionInfo { + hybridSearchQueryInfo?: HybridSearchQueryInfo; // (undocumented) partitionedQueryExecutionInfoVersion: number; // (undocumented) - queryInfo: QueryInfo; + queryInfo?: QueryInfo; // (undocumented) queryRanges: QueryRange[]; } @@ -2569,8 +2598,11 @@ export interface VectorEmbeddingPolicy { // @public export interface VectorIndex { + indexingSearchListSize?: number; path: string; + quantizationByteSize?: number; type: VectorIndexType; + vectorIndexShardKey?: string[]; } // @public diff --git a/sdk/cosmosdb/cosmos/samples-dev/ContainerManagement.ts b/sdk/cosmosdb/cosmos/samples-dev/ContainerManagement.ts index 0cfff509c515..ae24c6ba785e 100644 --- a/sdk/cosmosdb/cosmos/samples-dev/ContainerManagement.ts +++ b/sdk/cosmosdb/cosmos/samples-dev/ContainerManagement.ts @@ -161,8 +161,19 @@ async function run(): Promise { spatialIndexes: [{ path: "/location/*", types: ["Point", "Polygon"] }] as SpatialIndex[], vectorIndexes: [ { path: "/vector1", type: VectorIndexType.Flat }, - { path: "/vector2", type: VectorIndexType.QuantizedFlat }, - { path: "/vector3", type: VectorIndexType.DiskANN }, + { + path: "/vector2", + type: VectorIndexType.QuantizedFlat, + quantizationByteSize: 2, + vectorIndexShardKey: ["/Country"], + }, + { + path: "/vector3", + type: VectorIndexType.DiskANN, + quantizationByteSize: 2, + indexingSearchListSize: 50, + vectorIndexShardKey: ["/ZipCode"], + }, ], }; @@ -174,6 +185,33 @@ async function run(): Promise { }; await database.containers.createIfNotExists(containerDefinition); console.log("Container with vector embedding and indexing policies created"); + + logStep("Create container with full text search container policy"); + + // Create a container with full text policy and full text indexes + const indexingPolicyFTS: IndexingPolicy = { + automatic: true, + includedPaths: [{ path: "/*" }], + excludedPaths: [{ path: '/"_etag"/?' }], + fullTextIndexes: [{ path: "/text1" }, { path: "/text2" }], + }; + + const fullTextPolicy = { + defaultLanguage: "en-US", + fullTextPaths: [ + { path: "/text1", language: "1033" }, + { path: "/text2", language: "en-US" }, + ], + }; + + await database.containers.createIfNotExists({ + id: "ContainerWithFTSPolicy", + partitionKey: { paths: ["/id"] }, + fullTextPolicy: fullTextPolicy, + indexingPolicy: indexingPolicyFTS, + }); + console.log("Container with full text search policy created"); + await finish(); } diff --git a/sdk/cosmosdb/cosmos/samples-dev/Query/FullTextSearch.ts b/sdk/cosmosdb/cosmos/samples-dev/Query/FullTextSearch.ts new file mode 100644 index 000000000000..5a917a5380c8 --- /dev/null +++ b/sdk/cosmosdb/cosmos/samples-dev/Query/FullTextSearch.ts @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary Demonstrates full text search queries. + */ + +import * as dotenv from "dotenv"; +dotenv.config(); + +import { finish, handleError, logSampleHeader } from "./../Shared/handleError"; +import { CosmosClient, IndexingPolicy } from "@azure/cosmos"; +const key = process.env.COSMOS_KEY || ""; +const endpoint = process.env.COSMOS_ENDPOINT || ""; +const databaseId = process.env.COSMOS_DATABASE || ""; +const containerId = process.env.COSMOS_CONTAINER || ""; +logSampleHeader("Full Text Search Queries"); + +// Establish a new instance of the CosmosClient to be used throughout this demo +const client = new CosmosClient({ endpoint, key }); + +async function run(): Promise { + // create a database + const { database } = await client.databases.createIfNotExists({ id: databaseId }); + + // Create a container with full text policy and full text indexes + const indexingPolicy: IndexingPolicy = { + automatic: true, + includedPaths: [{ path: "/*" }], + excludedPaths: [{ path: '/"_etag"/?' }], + fullTextIndexes: [{ path: "/text1" }], + }; + + const fullTextPolicy = { + defaultLanguage: "en-US", + fullTextPaths: [{ path: "/text1", language: "en-US" }], + }; + + const { container } = await database.containers.createIfNotExists({ + id: containerId, + partitionKey: { paths: ["/id"] }, + fullTextPolicy: fullTextPolicy, + indexingPolicy: indexingPolicy, + }); + + const sample_texts: string[] = [ + "Common popular pop music artists include Taylor Swift and The Weekend.", + "The weekend is coming up soon, do you have any plans?", + "Depending on the artist, their music can be very different.", + "Mozart and Beethoven are some of the most recognizable names in classical music.", + "Taylor acts in many movies, and is considered a great artist.", + ]; + + // Create some items to use with full text search + for (let i = 0; i < 10; i++) { + await container.items.create({ id: "full_text_item" + i, text1: "some-text" }); + } + for (let i = 10; i < 15; i++) { + await container.items.create({ + id: "full_text_item" + i, + text1: sample_texts[i - 10], + vector: [1, 2, 3], + }); + } + + // Run full text search queries using full text score ranking + let query = "SELECT TOP 3 c.text1 FROM c ORDER BY RANK FullTextScore(c.text1, ['artist'])"; + let response = await container.items.query(query, { forceQueryPlan: true }).fetchAll(); + console.log("Response: ", response.resources); + + // Run full text search queries with full text contains + query = + "SELECT TOP 3 c.text1 FROM c WHERE FullTextContains(c.text1, 'artist') ORDER BY RANK RRF (FullTextScore(c.text1, ['movies']),FullTextScore(c.text1, ['music']))"; + response = await container.items.query(query, { forceQueryPlan: true }).fetchAll(); + console.log("Response: ", response.resources); + + // Run hybrid search queries using RRF ranking wth vector distances + query = + "SELECT TOP 3 c.text1 FROM c ORDER BY RANK RRF(FullTextScore(c.text1, ['music']), VectorDistance(c.vector, [1, 2, 3]))"; + response = await container.items.query(query, { forceQueryPlan: true }).fetchAll(); + console.log("Response: ", response.resources); + + await finish(); +} + +run().catch(handleError); diff --git a/sdk/cosmosdb/cosmos/samples/v4/javascript/ContainerManagement.js b/sdk/cosmosdb/cosmos/samples/v4/javascript/ContainerManagement.js index 8289634b41bb..d916ead111aa 100644 --- a/sdk/cosmosdb/cosmos/samples/v4/javascript/ContainerManagement.js +++ b/sdk/cosmosdb/cosmos/samples/v4/javascript/ContainerManagement.js @@ -157,8 +157,19 @@ async function run() { spatialIndexes: [{ path: "/location/*", types: ["Point", "Polygon"] }], vectorIndexes: [ { path: "/vector1", type: VectorIndexType.Flat }, - { path: "/vector2", type: VectorIndexType.QuantizedFlat }, - { path: "/vector3", type: VectorIndexType.DiskANN }, + { + path: "/vector2", + type: VectorIndexType.QuantizedFlat, + quantizationByteSize: 2, + vectorIndexShardKey: ["/Country"], + }, + { + path: "/vector3", + type: VectorIndexType.DiskANN, + quantizationByteSize: 2, + indexingSearchListSize: 50, + vectorIndexShardKey: ["/ZipCode"], + }, ], }; @@ -170,6 +181,33 @@ async function run() { }; await database.containers.createIfNotExists(containerDefinition); console.log("Container with vector embedding and indexing policies created"); + + logStep("Create container with full text search container policy"); + + // Create a container with full text policy and full text indexes + const indexingPolicyFTS = { + automatic: true, + includedPaths: [{ path: "/*" }], + excludedPaths: [{ path: '/"_etag"/?' }], + fullTextIndexes: [{ path: "/text1" }, { path: "/text2" }], + }; + + const fullTextPolicy = { + defaultLanguage: "en-US", + fullTextPaths: [ + { path: "/text1", language: "1033" }, + { path: "/text2", language: "en-US" }, + ], + }; + + await database.containers.createIfNotExists({ + id: "ContainerWithFTSPolicy", + partitionKey: { paths: ["/id"] }, + fullTextPolicy: fullTextPolicy, + indexingPolicy: indexingPolicyFTS, + }); + console.log("Container with full text search policy created"); + await finish(); } diff --git a/sdk/cosmosdb/cosmos/samples/v4/javascript/Query/FullTextSearch.js b/sdk/cosmosdb/cosmos/samples/v4/javascript/Query/FullTextSearch.js new file mode 100644 index 000000000000..fe71dc3c2cdd --- /dev/null +++ b/sdk/cosmosdb/cosmos/samples/v4/javascript/Query/FullTextSearch.js @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary Demonstrates full text search queries. + */ + +require("dotenv").config(); + +const { finish, handleError, logSampleHeader } = require("./../Shared/handleError"); +const { CosmosClient } = require("@azure/cosmos"); +const key = process.env.COSMOS_KEY || ""; +const endpoint = process.env.COSMOS_ENDPOINT || ""; +const databaseId = process.env.COSMOS_DATABASE || ""; +const containerId = process.env.COSMOS_CONTAINER || ""; +logSampleHeader("Full Text Search Queries"); + +// Establish a new instance of the CosmosClient to be used throughout this demo +const client = new CosmosClient({ endpoint, key }); + +async function run() { + // create a database + const { database } = await client.databases.createIfNotExists({ id: databaseId }); + + // Create a container with full text policy and full text indexes + const indexingPolicy = { + automatic: true, + includedPaths: [{ path: "/*" }], + excludedPaths: [{ path: '/"_etag"/?' }], + fullTextIndexes: [{ path: "/text1" }], + }; + + const fullTextPolicy = { + defaultLanguage: "en-US", + fullTextPaths: [{ path: "/text1", language: "en-US" }], + }; + + const { container } = await database.containers.createIfNotExists({ + id: containerId, + partitionKey: { paths: ["/id"] }, + fullTextPolicy: fullTextPolicy, + indexingPolicy: indexingPolicy, + }); + + const sample_texts = [ + "Common popular pop music artists include Taylor Swift and The Weekend.", + "The weekend is coming up soon, do you have any plans?", + "Depending on the artist, their music can be very different.", + "Mozart and Beethoven are some of the most recognizable names in classical music.", + "Taylor acts in many movies, and is considered a great artist.", + ]; + + // Create some items to use with full text search + for (let i = 0; i < 10; i++) { + await container.items.create({ id: "full_text_item" + i, text1: "some-text" }); + } + for (let i = 10; i < 15; i++) { + await container.items.create({ + id: "full_text_item" + i, + text1: sample_texts[i - 10], + vector: [1, 2, 3], + }); + } + + // Run full text search queries using full text score ranking + let query = "SELECT TOP 3 c.text1 FROM c ORDER BY RANK FullTextScore(c.text1, ['artist'])"; + let response = await container.items.query(query, { forceQueryPlan: true }).fetchAll(); + console.log("Response: ", response.resources); + + // Run full text search queries with full text contains + query = + "SELECT TOP 3 c.text1 FROM c WHERE FullTextContains(c.text1, 'artist') ORDER BY RANK RRF (FullTextScore(c.text1, ['movies']),FullTextScore(c.text1, ['music']))"; + response = await container.items.query(query, { forceQueryPlan: true }).fetchAll(); + console.log("Response: ", response.resources); + + // Run hybrid search queries using RRF ranking wth vector distances + query = + "SELECT TOP 3 c.text1 FROM c ORDER BY RANK RRF(FullTextScore(c.text1, ['music']), VectorDistance(c.vector, [1, 2, 3]))"; + response = await container.items.query(query, { forceQueryPlan: true }).fetchAll(); + console.log("Response: ", response.resources); + + await finish(); +} + +run().catch(handleError); diff --git a/sdk/cosmosdb/cosmos/samples/v4/typescript/src/ContainerManagement.ts b/sdk/cosmosdb/cosmos/samples/v4/typescript/src/ContainerManagement.ts index 0cfff509c515..ae24c6ba785e 100644 --- a/sdk/cosmosdb/cosmos/samples/v4/typescript/src/ContainerManagement.ts +++ b/sdk/cosmosdb/cosmos/samples/v4/typescript/src/ContainerManagement.ts @@ -161,8 +161,19 @@ async function run(): Promise { spatialIndexes: [{ path: "/location/*", types: ["Point", "Polygon"] }] as SpatialIndex[], vectorIndexes: [ { path: "/vector1", type: VectorIndexType.Flat }, - { path: "/vector2", type: VectorIndexType.QuantizedFlat }, - { path: "/vector3", type: VectorIndexType.DiskANN }, + { + path: "/vector2", + type: VectorIndexType.QuantizedFlat, + quantizationByteSize: 2, + vectorIndexShardKey: ["/Country"], + }, + { + path: "/vector3", + type: VectorIndexType.DiskANN, + quantizationByteSize: 2, + indexingSearchListSize: 50, + vectorIndexShardKey: ["/ZipCode"], + }, ], }; @@ -174,6 +185,33 @@ async function run(): Promise { }; await database.containers.createIfNotExists(containerDefinition); console.log("Container with vector embedding and indexing policies created"); + + logStep("Create container with full text search container policy"); + + // Create a container with full text policy and full text indexes + const indexingPolicyFTS: IndexingPolicy = { + automatic: true, + includedPaths: [{ path: "/*" }], + excludedPaths: [{ path: '/"_etag"/?' }], + fullTextIndexes: [{ path: "/text1" }, { path: "/text2" }], + }; + + const fullTextPolicy = { + defaultLanguage: "en-US", + fullTextPaths: [ + { path: "/text1", language: "1033" }, + { path: "/text2", language: "en-US" }, + ], + }; + + await database.containers.createIfNotExists({ + id: "ContainerWithFTSPolicy", + partitionKey: { paths: ["/id"] }, + fullTextPolicy: fullTextPolicy, + indexingPolicy: indexingPolicyFTS, + }); + console.log("Container with full text search policy created"); + await finish(); } diff --git a/sdk/cosmosdb/cosmos/samples/v4/typescript/src/Query/FullTextSearch.ts b/sdk/cosmosdb/cosmos/samples/v4/typescript/src/Query/FullTextSearch.ts new file mode 100644 index 000000000000..5a917a5380c8 --- /dev/null +++ b/sdk/cosmosdb/cosmos/samples/v4/typescript/src/Query/FullTextSearch.ts @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @summary Demonstrates full text search queries. + */ + +import * as dotenv from "dotenv"; +dotenv.config(); + +import { finish, handleError, logSampleHeader } from "./../Shared/handleError"; +import { CosmosClient, IndexingPolicy } from "@azure/cosmos"; +const key = process.env.COSMOS_KEY || ""; +const endpoint = process.env.COSMOS_ENDPOINT || ""; +const databaseId = process.env.COSMOS_DATABASE || ""; +const containerId = process.env.COSMOS_CONTAINER || ""; +logSampleHeader("Full Text Search Queries"); + +// Establish a new instance of the CosmosClient to be used throughout this demo +const client = new CosmosClient({ endpoint, key }); + +async function run(): Promise { + // create a database + const { database } = await client.databases.createIfNotExists({ id: databaseId }); + + // Create a container with full text policy and full text indexes + const indexingPolicy: IndexingPolicy = { + automatic: true, + includedPaths: [{ path: "/*" }], + excludedPaths: [{ path: '/"_etag"/?' }], + fullTextIndexes: [{ path: "/text1" }], + }; + + const fullTextPolicy = { + defaultLanguage: "en-US", + fullTextPaths: [{ path: "/text1", language: "en-US" }], + }; + + const { container } = await database.containers.createIfNotExists({ + id: containerId, + partitionKey: { paths: ["/id"] }, + fullTextPolicy: fullTextPolicy, + indexingPolicy: indexingPolicy, + }); + + const sample_texts: string[] = [ + "Common popular pop music artists include Taylor Swift and The Weekend.", + "The weekend is coming up soon, do you have any plans?", + "Depending on the artist, their music can be very different.", + "Mozart and Beethoven are some of the most recognizable names in classical music.", + "Taylor acts in many movies, and is considered a great artist.", + ]; + + // Create some items to use with full text search + for (let i = 0; i < 10; i++) { + await container.items.create({ id: "full_text_item" + i, text1: "some-text" }); + } + for (let i = 10; i < 15; i++) { + await container.items.create({ + id: "full_text_item" + i, + text1: sample_texts[i - 10], + vector: [1, 2, 3], + }); + } + + // Run full text search queries using full text score ranking + let query = "SELECT TOP 3 c.text1 FROM c ORDER BY RANK FullTextScore(c.text1, ['artist'])"; + let response = await container.items.query(query, { forceQueryPlan: true }).fetchAll(); + console.log("Response: ", response.resources); + + // Run full text search queries with full text contains + query = + "SELECT TOP 3 c.text1 FROM c WHERE FullTextContains(c.text1, 'artist') ORDER BY RANK RRF (FullTextScore(c.text1, ['movies']),FullTextScore(c.text1, ['music']))"; + response = await container.items.query(query, { forceQueryPlan: true }).fetchAll(); + console.log("Response: ", response.resources); + + // Run hybrid search queries using RRF ranking wth vector distances + query = + "SELECT TOP 3 c.text1 FROM c ORDER BY RANK RRF(FullTextScore(c.text1, ['music']), VectorDistance(c.vector, [1, 2, 3]))"; + response = await container.items.query(query, { forceQueryPlan: true }).fetchAll(); + console.log("Response: ", response.resources); + + await finish(); +} + +run().catch(handleError); diff --git a/sdk/cosmosdb/cosmos/src/client/Container/ContainerDefinition.ts b/sdk/cosmosdb/cosmos/src/client/Container/ContainerDefinition.ts index bc359af7965b..62c4da0ae301 100644 --- a/sdk/cosmosdb/cosmos/src/client/Container/ContainerDefinition.ts +++ b/sdk/cosmosdb/cosmos/src/client/Container/ContainerDefinition.ts @@ -7,6 +7,7 @@ import type { GeospatialType } from "../../documents/GeospatialType"; import type { ChangeFeedPolicy } from "../ChangeFeed/ChangeFeedPolicy"; import type { ComputedProperty } from "../../documents/ComputedProperty"; import type { VectorEmbeddingPolicy } from "../../documents/VectorEmbeddingPolicy"; +import type { FullTextPolicy } from "../../documents/FullTextPolicy"; export interface ContainerDefinition { /** The id of the container. */ @@ -31,4 +32,6 @@ export interface ContainerDefinition { computedProperties?: ComputedProperty[]; /** The vector embedding policy information for storing items in a container. */ vectorEmbeddingPolicy?: VectorEmbeddingPolicy; + /** The full text policy information for storing items in a container. */ + fullTextPolicy?: FullTextPolicy; } diff --git a/sdk/cosmosdb/cosmos/src/common/constants.ts b/sdk/cosmosdb/cosmos/src/common/constants.ts index bd86087492d7..75328fa7909a 100644 --- a/sdk/cosmosdb/cosmos/src/common/constants.ts +++ b/sdk/cosmosdb/cosmos/src/common/constants.ts @@ -204,7 +204,7 @@ export const Constants = { AzureNamespace: "Azure.Cosmos", AzurePackageName: "@azure/cosmos", SDKName: "azure-cosmos-js", - SDKVersion: "4.1.2", + SDKVersion: "4.2.1", // Diagnostics CosmosDbDiagnosticLevelEnvVarName: "AZURE_COSMOSDB_DIAGNOSTICS_LEVEL", @@ -491,4 +491,6 @@ export enum QueryFeature { MultipleAggregates = "MultipleAggregates", NonStreamingOrderBy = "NonStreamingOrderBy", ListAndSetAggregate = "ListAndSetAggregate", + CountIf = "CountIf", + HybridSearch = "HybridSearch", } diff --git a/sdk/cosmosdb/cosmos/src/documents/FullTextPolicy.ts b/sdk/cosmosdb/cosmos/src/documents/FullTextPolicy.ts new file mode 100644 index 000000000000..4f53b3c1a396 --- /dev/null +++ b/sdk/cosmosdb/cosmos/src/documents/FullTextPolicy.ts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * Represents a full text policy for a collection in the Azure Cosmos DB service. + */ +export interface FullTextPolicy { + /** + * The default language for the full text . + */ + defaultLanguage: string; + /** + * The paths to be indexed for full text search. + */ + fullTextPaths: FullTextPath[]; +} + +/** + * Represents a full text path to be indexed in the Azure Cosmos DB service. + */ +export interface FullTextPath { + /** + * The path to be indexed for full text search. + */ + path: string; + /** + * The language for the full text path. + */ + language: string; +} diff --git a/sdk/cosmosdb/cosmos/src/documents/IndexingPolicy.ts b/sdk/cosmosdb/cosmos/src/documents/IndexingPolicy.ts index fa907ef69911..e60c52c2bc51 100644 --- a/sdk/cosmosdb/cosmos/src/documents/IndexingPolicy.ts +++ b/sdk/cosmosdb/cosmos/src/documents/IndexingPolicy.ts @@ -15,6 +15,8 @@ export interface IndexingPolicy { vectorIndexes?: VectorIndex[]; /** An array of {@link CompositeIndexes} representing composite indexes to be included. */ compositeIndexes?: CompositePath[][]; + /** An array of {@link FullTextIndex} representing full text indexes to be included. */ + fullTextIndexes?: FullTextIndex[]; } /* The target data type of a spatial path */ @@ -68,7 +70,26 @@ export interface VectorIndex { * Currently, flat, diskANN, and quantizedFlat are supported. */ type: VectorIndexType; + /** + * The number of bytes used in product quantization of the vectors. + * This is an optional parameter and applies to index types DiskANN and quantizedFlat. + * The allowed range for this parameter is between 1 and min(Dimensions, 512). + */ + quantizationByteSize?: number; + /** + * The list of string containing the shard keys used for partitioning the vector indexes. + * This is an optional parameter and applies to index types DiskANN and quantizedFlat. + */ + vectorIndexShardKey?: string[]; + /** + * The size of the candidate list of approximate neighbors stored while building + * the diskANN index as part of the optimization processes. + * This is an optional parameter and applies to index type DiskANN only. + * The allowed range is between 25 and 500. + */ + indexingSearchListSize?: number; } + /** * Represents the index type of the vector. */ @@ -96,3 +117,11 @@ export interface CompositePath { /** The order of the composite index, either "ascending" or "descending". */ order: "ascending" | "descending"; } + +/** + * Represents a full text index in the indexing policy. + */ +export interface FullTextIndex { + /** The path in the JSON document to index. */ + path: string; +} diff --git a/sdk/cosmosdb/cosmos/src/documents/index.ts b/sdk/cosmosdb/cosmos/src/documents/index.ts index 543101750ce8..5887935b233a 100644 --- a/sdk/cosmosdb/cosmos/src/documents/index.ts +++ b/sdk/cosmosdb/cosmos/src/documents/index.ts @@ -22,3 +22,4 @@ export * from "./UserDefinedFunctionType"; export * from "./GeospatialType"; export * from "./ComputedProperty"; export * from "./VectorEmbeddingPolicy"; +export * from "./FullTextPolicy"; diff --git a/sdk/cosmosdb/cosmos/src/index.ts b/sdk/cosmosdb/cosmos/src/index.ts index 356feb645fb0..fb9ee1e5cc46 100644 --- a/sdk/cosmosdb/cosmos/src/index.ts +++ b/sdk/cosmosdb/cosmos/src/index.ts @@ -68,6 +68,9 @@ export { VectorEmbeddingDataType, VectorEmbeddingDistanceFunction, VectorIndexType, + FullTextIndex, + FullTextPolicy, + FullTextPath, } from "./documents"; export { UniqueKeyPolicy, UniqueKey } from "./client/Container/UniqueKeyPolicy"; diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/Aggregators/GlobalStatisticsAggregator.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/Aggregators/GlobalStatisticsAggregator.ts new file mode 100644 index 000000000000..8b548cd72b32 --- /dev/null +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/Aggregators/GlobalStatisticsAggregator.ts @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { GlobalStatistics } from "../../request/globalStatistics"; +import { Aggregator } from "./Aggregator"; + +export class GlobalStatisticsAggregator implements Aggregator { + private globalStatistics: GlobalStatistics; + + constructor() { + this.globalStatistics = { + documentCount: 0, + fullTextStatistics: [], + }; + } + + public aggregate(other: GlobalStatistics): void { + if (!other) { + return; + } + // Aggregate document count + this.globalStatistics.documentCount += other.documentCount; + // Ensure `fullTextStatistics` is initialized + if (!other.fullTextStatistics || other.fullTextStatistics.length === 0) { + return; + } + + // Initialize `this.globalStatistics.fullTextStatistics` if it's empty + if (this.globalStatistics.fullTextStatistics.length === 0) { + this.globalStatistics.fullTextStatistics = other.fullTextStatistics.map((stat) => ({ + totalWordCount: stat.totalWordCount, + hitCounts: [...stat.hitCounts], + })); + } else { + // Loop through `other.fullTextStatistics` to add values to `this.globalStatistics.fullTextStatistics` + for (let i = 0; i < other.fullTextStatistics.length; i++) { + const otherStat = other.fullTextStatistics[i]; + + // Ensure the index `i` is initialized + if (!this.globalStatistics.fullTextStatistics[i]) { + this.globalStatistics.fullTextStatistics[i] = { + totalWordCount: 0, + hitCounts: [], + }; + } + + // Add totalWordCount + this.globalStatistics.fullTextStatistics[i].totalWordCount += otherStat.totalWordCount; + + // Aggregate `hitCounts` + for (let j = 0; j < otherStat.hitCounts.length; j++) { + // Initialize hit count if necessary + if (this.globalStatistics.fullTextStatistics[i].hitCounts.length <= j) { + this.globalStatistics.fullTextStatistics[i].hitCounts.push(0); + } + this.globalStatistics.fullTextStatistics[i].hitCounts[j] += otherStat.hitCounts[j]; + } + } + } + } + + public getResult(): GlobalStatistics { + return this.globalStatistics; + } +} diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.ts index 2bd7a21df670..b70612c0520a 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.ts @@ -39,6 +39,7 @@ export class NonStreamingOrderByDistinctEndpointComponent implements ExecutionCo private executionContext: ExecutionContext, private queryInfo: QueryInfo, private priorityQueueBufferSize: number, + private emitRawOrderByPayload: boolean = false, ) { this.sortOrders = this.queryInfo.orderBy; const comparator = new OrderByComparator(this.sortOrders); @@ -128,7 +129,11 @@ export class NonStreamingOrderByDistinctEndpointComponent implements ExecutionCo this.finalResultArray = new Array(finalArraySize); // Only keep the final result array size number of items in the final result array and discard the rest. for (let count = finalArraySize - 1; count >= 0; count--) { - this.finalResultArray[count] = this.nonStreamingOrderByPQ.dequeue()?.payload; + if (this.emitRawOrderByPayload) { + this.finalResultArray[count] = this.nonStreamingOrderByPQ.dequeue(); + } else { + this.finalResultArray[count] = this.nonStreamingOrderByPQ.dequeue()?.payload; + } } } } diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.ts index 324a370112c6..05b2213309cc 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.ts @@ -33,6 +33,7 @@ export class NonStreamingOrderByEndpointComponent implements ExecutionContext { private sortOrders: any[], private priorityQueueBufferSize: number, private offset: number = 0, + private emitRawOrderByPayload: boolean = false, ) { const comparator = new OrderByComparator(this.sortOrders); this.nonStreamingOrderByPQ = new FixedSizePriorityQueue( @@ -88,7 +89,12 @@ export class NonStreamingOrderByEndpointComponent implements ExecutionContext { } // If pq is not empty, return the result from pq. if (!this.nonStreamingOrderByPQ.isEmpty()) { - const item = this.nonStreamingOrderByPQ.dequeue()?.payload; + let item; + if (this.emitRawOrderByPayload) { + item = this.nonStreamingOrderByPQ.dequeue(); + } else { + item = this.nonStreamingOrderByPQ.dequeue()?.payload; + } return { result: item, headers: resHeaders, diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.ts index 0086962ecf8f..3588dd752e8b 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.ts @@ -13,16 +13,26 @@ export class OrderByEndpointComponent implements ExecutionContext { * @param executionContext - Underlying Execution Context * @hidden */ - constructor(private executionContext: ExecutionContext) {} + constructor( + private executionContext: ExecutionContext, + private emitRawOrderByPayload: boolean = false, + ) {} /** * Execute a provided function on the next element in the OrderByEndpointComponent. */ public async nextItem(diagnosticNode: DiagnosticNodeInternal): Promise> { const { result: item, headers } = await this.executionContext.nextItem(diagnosticNode); - return { - result: item !== undefined ? item.payload : undefined, - headers, - }; + if (this.emitRawOrderByPayload) { + return { + result: item !== undefined ? item : undefined, + headers, + }; + } else { + return { + result: item !== undefined ? item.payload : undefined, + headers, + }; + } } /** diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/hybridQueryExecutionContext.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/hybridQueryExecutionContext.ts new file mode 100644 index 000000000000..4e687fa335d1 --- /dev/null +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/hybridQueryExecutionContext.ts @@ -0,0 +1,467 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { AzureLogger, createClientLogger } from "@azure/logger"; +import { ClientContext } from "../ClientContext"; +import { DiagnosticNodeInternal } from "../diagnostics/DiagnosticNodeInternal"; +import { + FeedOptions, + GlobalStatistics, + PartitionedQueryExecutionInfo, + QueryInfo, + QueryRange, + Response, +} from "../request"; +import { HybridSearchQueryResult } from "../request/hybridSearchQueryResult"; +import { GlobalStatisticsAggregator } from "./Aggregators/GlobalStatisticsAggregator"; +import { CosmosHeaders } from "./CosmosHeaders"; +import { ExecutionContext } from "./ExecutionContext"; +import { getInitialHeader, mergeHeaders } from "./headerUtils"; +import { ParallelQueryExecutionContext } from "./parallelQueryExecutionContext"; +import { PipelinedQueryExecutionContext } from "./pipelinedQueryExecutionContext"; + +/** @hidden */ +export enum HybridQueryExecutionContextBaseStates { + uninitialized = "uninitialized", + initialized = "initialized", + draining = "draining", + done = "done", +} +export class HybridQueryExecutionContext implements ExecutionContext { + private globalStatisticsExecutionContext: ExecutionContext; + private componentsExecutionContext: ExecutionContext[] = []; + private pageSize: number; + private state: HybridQueryExecutionContextBaseStates; + private globalStatisticsAggregator: GlobalStatisticsAggregator; + private emitRawOrderByPayload: boolean = true; + private buffer: HybridSearchQueryResult[] = []; + private DEFAULT_PAGE_SIZE = 10; + private TOTAL_WORD_COUNT_PLACEHOLDER = "documentdb-formattablehybridsearchquery-totalwordcount"; + private HIT_COUNTS_ARRAY_PLACEHOLDER = "documentdb-formattablehybridsearchquery-hitcountsarray"; + private TOTAL_DOCUMENT_COUNT_PLACEHOLDER = + "documentdb-formattablehybridsearchquery-totaldocumentcount"; + private RRF_CONSTANT = 60; // Constant for RRF score calculation + private logger: AzureLogger = createClientLogger("HybridQueryExecutionContext"); + + constructor( + private clientContext: ClientContext, + private collectionLink: string, + private options: FeedOptions, + private partitionedQueryExecutionInfo: PartitionedQueryExecutionInfo, + private correlatedActivityId: string, + private allPartitionsRanges: QueryRange[], + ) { + this.state = HybridQueryExecutionContextBaseStates.uninitialized; + this.pageSize = this.options.maxItemCount; + if (this.pageSize === undefined) { + this.pageSize = this.DEFAULT_PAGE_SIZE; + } + if (partitionedQueryExecutionInfo.hybridSearchQueryInfo.requiresGlobalStatistics) { + const globalStaticsQueryOptions: FeedOptions = { maxItemCount: this.pageSize }; + this.globalStatisticsAggregator = new GlobalStatisticsAggregator(); + + const globalStatisticsQuery = + this.partitionedQueryExecutionInfo.hybridSearchQueryInfo.globalStatisticsQuery; + const globalStatisticsQueryExecutionInfo: PartitionedQueryExecutionInfo = { + partitionedQueryExecutionInfoVersion: 1, + queryInfo: { + distinctType: "None", + hasSelectValue: false, + groupByAliasToAggregateType: {}, + rewrittenQuery: globalStatisticsQuery, + hasNonStreamingOrderBy: false, + }, + queryRanges: this.allPartitionsRanges, + }; + + this.globalStatisticsExecutionContext = new ParallelQueryExecutionContext( + this.clientContext, + this.collectionLink, + globalStatisticsQuery, + globalStaticsQueryOptions, + globalStatisticsQueryExecutionInfo, + this.correlatedActivityId, + ); + } else { + this.createComponentExecutionContexts(); + this.state = HybridQueryExecutionContextBaseStates.initialized; + } + } + public async nextItem(diagnosticNode: DiagnosticNodeInternal): Promise> { + const nextItemRespHeaders = getInitialHeader(); + while ( + (this.state === HybridQueryExecutionContextBaseStates.uninitialized || + this.state === HybridQueryExecutionContextBaseStates.initialized) && + this.buffer.length === 0 + ) { + await this.fetchMoreInternal(diagnosticNode, nextItemRespHeaders); + } + + if (this.state === HybridQueryExecutionContextBaseStates.draining && this.buffer.length > 0) { + return this.drainOne(nextItemRespHeaders); + } else { + return this.done(nextItemRespHeaders); + } + } + + public hasMoreResults(): boolean { + switch (this.state) { + case HybridQueryExecutionContextBaseStates.uninitialized: + return true; + case HybridQueryExecutionContextBaseStates.initialized: + return true; + case HybridQueryExecutionContextBaseStates.draining: + return this.buffer.length > 0; + case HybridQueryExecutionContextBaseStates.done: + return false; + default: + return false; + } + } + + public async fetchMore(diagnosticNode: DiagnosticNodeInternal): Promise> { + const fetchMoreRespHeaders = getInitialHeader(); + return this.fetchMoreInternal(diagnosticNode, fetchMoreRespHeaders); + } + + private async fetchMoreInternal( + diagnosticNode: DiagnosticNodeInternal, + headers: CosmosHeaders, + ): Promise> { + switch (this.state) { + case HybridQueryExecutionContextBaseStates.uninitialized: + await this.initialize(diagnosticNode, headers); + return { + result: [], + headers: headers, + }; + + case HybridQueryExecutionContextBaseStates.initialized: + await this.executeComponentQueries(diagnosticNode, headers); + return { + result: [], + headers: headers, + }; + case HybridQueryExecutionContextBaseStates.draining: + return this.drain(headers); + case HybridQueryExecutionContextBaseStates.done: + return this.done(headers); + default: + throw new Error(`Invalid state: ${this.state}`); + } + } + + private async initialize( + diagnosticNode: DiagnosticNodeInternal, + fetchMoreRespHeaders: CosmosHeaders, + ): Promise { + try { + while (this.globalStatisticsExecutionContext.hasMoreResults()) { + const result = await this.globalStatisticsExecutionContext.nextItem(diagnosticNode); + const globalStatistics: GlobalStatistics = result.result; + mergeHeaders(fetchMoreRespHeaders, result.headers); + if (globalStatistics) { + // iterate over the components update placeholders from globalStatistics + this.globalStatisticsAggregator.aggregate(globalStatistics); + } + } + } catch (error) { + this.state = HybridQueryExecutionContextBaseStates.done; + throw error; + } + + // create component execution contexts for each component query + this.createComponentExecutionContexts(); + this.state = HybridQueryExecutionContextBaseStates.initialized; + } + + private async executeComponentQueries( + diagnosticNode: DiagnosticNodeInternal, + fetchMoreRespHeaders: CosmosHeaders, + ): Promise { + if (this.componentsExecutionContext.length === 1) { + await this.drainSingleComponent(diagnosticNode, fetchMoreRespHeaders); + return; + } + try { + const hybridSearchResult: HybridSearchQueryResult[] = []; + const uniqueItems = new Map(); + + for (const componentExecutionContext of this.componentsExecutionContext) { + while (componentExecutionContext.hasMoreResults()) { + const result = await componentExecutionContext.fetchMore(diagnosticNode); + const response = result.result; + mergeHeaders(fetchMoreRespHeaders, result.headers); + if (response) { + response.forEach((item: any) => { + const hybridItem = HybridSearchQueryResult.create(item); + if (!uniqueItems.has(hybridItem.rid)) { + uniqueItems.set(hybridItem.rid, hybridItem); + } + }); + } + } + } + uniqueItems.forEach((item) => hybridSearchResult.push(item)); + if (hybridSearchResult.length === 0 || hybridSearchResult.length === 1) { + // return the result as no or one element is present + hybridSearchResult.forEach((item) => this.buffer.push(item.data)); + this.state = HybridQueryExecutionContextBaseStates.draining; + return; + } + + // Initialize an array to hold ranks for each document + const sortedHybridSearchResult = this.sortHybridSearchResultByRRFScore(hybridSearchResult); + // store the result to buffer + // add only data from the sortedHybridSearchResult in the buffer + sortedHybridSearchResult.forEach((item) => this.buffer.push(item.data)); + this.applySkipAndTakeToBuffer(); + this.state = HybridQueryExecutionContextBaseStates.draining; + } catch (error) { + this.state = HybridQueryExecutionContextBaseStates.done; + throw error; + } + } + + private applySkipAndTakeToBuffer(): void { + const { skip, take } = this.partitionedQueryExecutionInfo.hybridSearchQueryInfo; + if (skip) { + this.buffer = skip >= this.buffer.length ? [] : this.buffer.slice(skip); + } + if (take) { + this.buffer = take <= 0 ? [] : this.buffer.slice(0, take); + } + } + + private async drain(fetchMoreRespHeaders: CosmosHeaders): Promise> { + try { + if (this.buffer.length === 0) { + this.state = HybridQueryExecutionContextBaseStates.done; + return this.done(fetchMoreRespHeaders); + } + const result = this.buffer.slice(0, this.pageSize); + this.buffer = this.buffer.slice(this.pageSize); + if (this.buffer.length === 0) { + this.state = HybridQueryExecutionContextBaseStates.done; + } + return { + result: result, + headers: fetchMoreRespHeaders, + }; + } catch (error) { + this.state = HybridQueryExecutionContextBaseStates.done; + throw error; + } + } + + private async drainOne(nextItemRespHeaders: CosmosHeaders): Promise> { + try { + if (this.buffer.length === 0) { + this.state = HybridQueryExecutionContextBaseStates.done; + return this.done(nextItemRespHeaders); + } + const result = this.buffer.shift(); + if (this.buffer.length === 0) { + this.state = HybridQueryExecutionContextBaseStates.done; + } + return { + result: result, + headers: nextItemRespHeaders, + }; + } catch (error) { + this.state = HybridQueryExecutionContextBaseStates.done; + throw error; + } + } + + private done(fetchMoreRespHeaders: CosmosHeaders): Response { + return { + result: undefined, + headers: fetchMoreRespHeaders, + }; + } + + private sortHybridSearchResultByRRFScore( + hybridSearchResult: HybridSearchQueryResult[], + ): HybridSearchQueryResult[] { + const ranksArray: { rid: string; ranks: number[] }[] = hybridSearchResult.map((item) => ({ + rid: item.rid, + ranks: new Array(item.componentScores.length).fill(0), + })); + // Compute ranks for each component score + for (let i = 0; i < hybridSearchResult[0].componentScores.length; i++) { + // Sort based on the i-th component score + hybridSearchResult.sort((a, b) => b.componentScores[i] - a.componentScores[i]); + + // Assign ranks + let rank = 1; + for (let j = 0; j < hybridSearchResult.length; j++) { + if ( + j > 0 && + hybridSearchResult[j].componentScores[i] !== hybridSearchResult[j - 1].componentScores[i] + ) { + rank = j + 1; + } + const rankIndex = ranksArray.findIndex( + (rankItem) => rankItem.rid === hybridSearchResult[j].rid, + ); + ranksArray[rankIndex].ranks[i] = rank; // 1-based rank + } + } + + // Function to compute RRF score + const computeRRFScore = (ranks: number[], k: number): number => { + return ranks.reduce((acc, rank) => acc + 1 / (k + rank), 0); + }; + + // Compute RRF scores and sort based on them + const rrfScores = ranksArray.map((item) => ({ + rid: item.rid, + rrfScore: computeRRFScore(item.ranks, this.RRF_CONSTANT), + })); + + // Sort based on RRF scores + rrfScores.sort((a, b) => b.rrfScore - a.rrfScore); + + // Map sorted RRF scores back to hybridSearchResult + const sortedHybridSearchResult = rrfScores.map((scoreItem) => + hybridSearchResult.find((item) => item.rid === scoreItem.rid), + ); + return sortedHybridSearchResult; + } + + private async drainSingleComponent( + diagNode: DiagnosticNodeInternal, + fetchMoreRespHeaders: CosmosHeaders, + ): Promise { + if (this.componentsExecutionContext && this.componentsExecutionContext.length !== 1) { + this.logger.error("drainSingleComponent called on multiple components"); + return; + } + try { + const componentExecutionContext = this.componentsExecutionContext[0]; + const hybridSearchResult: HybridSearchQueryResult[] = []; + while (componentExecutionContext.hasMoreResults()) { + const result = await componentExecutionContext.fetchMore(diagNode); + const response = result.result; + mergeHeaders(fetchMoreRespHeaders, result.headers); + if (response) { + response.forEach((item: any) => { + hybridSearchResult.push(HybridSearchQueryResult.create(item)); + }); + } + } + hybridSearchResult.forEach((item) => this.buffer.push(item.data)); + this.applySkipAndTakeToBuffer(); + this.state = HybridQueryExecutionContextBaseStates.draining; + } catch (error) { + this.state = HybridQueryExecutionContextBaseStates.done; + throw error; + } + } + + private createComponentExecutionContexts(): void { + // rewrite queries based on global statistics + let queryInfos: QueryInfo[] = + this.partitionedQueryExecutionInfo.hybridSearchQueryInfo.componentQueryInfos; + if (this.partitionedQueryExecutionInfo.hybridSearchQueryInfo.requiresGlobalStatistics) { + queryInfos = this.processComponentQueries( + this.partitionedQueryExecutionInfo.hybridSearchQueryInfo.componentQueryInfos, + this.globalStatisticsAggregator.getResult(), + ); + } + // create component execution contexts + for (const componentQueryInfo of queryInfos) { + const componentPartitionExecutionInfo: PartitionedQueryExecutionInfo = { + partitionedQueryExecutionInfoVersion: 1, + queryInfo: componentQueryInfo, + queryRanges: this.partitionedQueryExecutionInfo.queryRanges, + }; + this.componentsExecutionContext.push( + new PipelinedQueryExecutionContext( + this.clientContext, + this.collectionLink, + componentQueryInfo.rewrittenQuery, + this.options, + componentPartitionExecutionInfo, + this.correlatedActivityId, + this.emitRawOrderByPayload, + ), + ); + } + } + private processComponentQueries( + componentQueryInfos: QueryInfo[], + globalStats: GlobalStatistics, + ): QueryInfo[] { + return componentQueryInfos.map((queryInfo) => { + if (!queryInfo.hasNonStreamingOrderBy) { + throw new Error("The component query must have a non-streaming order by clause."); + } + return { + ...queryInfo, + rewrittenQuery: this.replacePlaceholdersWorkaroud( + queryInfo.rewrittenQuery, + globalStats, + componentQueryInfos.length, + ), + orderByExpressions: queryInfo.orderByExpressions.map((expr) => + this.replacePlaceholdersWorkaroud(expr, globalStats, componentQueryInfos.length), + ), + }; + }); + } + // This method is commented currently, but we will switch back to using this + // once the gateway has been redeployed with the fix for placeholder indexes + // private replacePlaceholders(query: string, globalStats: GlobalStatistics): string { + // // Replace total document count + // query = query.replace( + // new RegExp(`{${this.TOTAL_DOCUMENT_COUNT_PLACEHOLDER}}`, "g"), + // globalStats.documentCount.toString(), + // ); + + // // Replace total word counts and hit counts from fullTextStatistics + // globalStats.fullTextStatistics.forEach((stats, index) => { + // // Replace total word counts + // query = query.replace( + // new RegExp(`{${this.TOTAL_WORD_COUNT_PLACEHOLDER}-${index}}`, "g"), + // stats.totalWordCount.toString(), + // ); + // // Replace hit counts + // query = query.replace( + // new RegExp(`{${this.HIT_COUNTS_ARRAY_PLACEHOLDER}-${index}}`, "g"), + // `[${stats.hitCounts.join(",")}]`, + // ); + // }); + + // return query; + // } + + private replacePlaceholdersWorkaroud( + query: string, + globalStats: GlobalStatistics, + componentCount: number, + ): string { + // Replace total document count + query = query.replace( + new RegExp(`{${this.TOTAL_DOCUMENT_COUNT_PLACEHOLDER}}`, "g"), + globalStats.documentCount.toString(), + ); + let statisticsIndex: number = 0; + for (let i = 0; i < componentCount; i++) { + // Replace total word counts and hit counts from fullTextStatistics + const wordCountPlaceholder = `{${this.TOTAL_WORD_COUNT_PLACEHOLDER}-${i}}`; + const hitCountPlaceholder = `{${this.HIT_COUNTS_ARRAY_PLACEHOLDER}-${i}}`; + if (!query.includes(wordCountPlaceholder)) { + continue; + } + const stats = globalStats.fullTextStatistics[statisticsIndex]; + // Replace total word counts + query = query.replace(new RegExp(wordCountPlaceholder, "g"), stats.totalWordCount.toString()); + // Replace hit counts + query = query.replace(new RegExp(hitCountPlaceholder, "g"), `[${stats.hitCounts.join(",")}]`); + statisticsIndex++; + } + return query; + } +} diff --git a/sdk/cosmosdb/cosmos/src/queryExecutionContext/pipelinedQueryExecutionContext.ts b/sdk/cosmosdb/cosmos/src/queryExecutionContext/pipelinedQueryExecutionContext.ts index dc5cda84938b..fac35e33cdd7 100644 --- a/sdk/cosmosdb/cosmos/src/queryExecutionContext/pipelinedQueryExecutionContext.ts +++ b/sdk/cosmosdb/cosmos/src/queryExecutionContext/pipelinedQueryExecutionContext.ts @@ -38,6 +38,7 @@ export class PipelinedQueryExecutionContext implements ExecutionContext { private options: FeedOptions, private partitionedQueryExecutionInfo: PartitionedQueryExecutionInfo, correlatedActivityId: string, + private emitRawOrderByPayload: boolean = false, ) { this.endpoint = null; this.pageSize = options["maxItemCount"]; @@ -86,12 +87,14 @@ export class PipelinedQueryExecutionContext implements ExecutionContext { sortOrders, this.vectorSearchBufferSize, partitionedQueryExecutionInfo.queryInfo.offset, + this.emitRawOrderByPayload, ); } else { this.endpoint = new NonStreamingOrderByDistinctEndpointComponent( context, partitionedQueryExecutionInfo.queryInfo, this.vectorSearchBufferSize, + this.emitRawOrderByPayload, ); } } else { @@ -107,6 +110,7 @@ export class PipelinedQueryExecutionContext implements ExecutionContext { this.partitionedQueryExecutionInfo, correlatedActivityId, ), + this.emitRawOrderByPayload, ); } else { this.endpoint = new ParallelQueryExecutionContext( @@ -284,7 +288,7 @@ export class PipelinedQueryExecutionContext implements ExecutionContext { const hasLimit = queryInfo.limit || queryInfo.limit === 0; if (!hasTop && !hasLimit) { throw new ErrorResponse( - "Executing a vector search query without TOP or LIMIT can consume a large number of RUs " + + "Executing a non-streaming search query without TOP or LIMIT can consume a large number of RUs " + "very fast and have long runtimes. Please ensure you are using one of the above two filters " + "with your vector search query.", ); diff --git a/sdk/cosmosdb/cosmos/src/queryIterator.ts b/sdk/cosmosdb/cosmos/src/queryIterator.ts index 4d382cf3ede7..937438f2ef1a 100644 --- a/sdk/cosmosdb/cosmos/src/queryIterator.ts +++ b/sdk/cosmosdb/cosmos/src/queryIterator.ts @@ -18,7 +18,11 @@ import { PipelinedQueryExecutionContext, } from "./queryExecutionContext"; import type { Response } from "./request"; -import type { ErrorResponse, PartitionedQueryExecutionInfo } from "./request/ErrorResponse"; +import type { + ErrorResponse, + PartitionedQueryExecutionInfo, + QueryRange, +} from "./request/ErrorResponse"; import type { FeedOptions } from "./request/FeedOptions"; import { FeedResponse } from "./request/FeedResponse"; import { @@ -28,6 +32,8 @@ import { } from "./utils/diagnostics"; import { MetadataLookUpType } from "./CosmosDiagnostics"; import { randomUUID } from "@azure/core-util"; +import { HybridQueryExecutionContext } from "./queryExecutionContext/hybridQueryExecutionContext"; +import { PartitionKeyRangeCache } from "./routing"; /** * Represents a QueryIterator Object, an implementation of feed or query response that enables @@ -42,6 +48,8 @@ export class QueryIterator { private isInitialized: boolean; private correlatedActivityId: string; private nonStreamingOrderBy: boolean = false; + private partitionKeyRangeCache: PartitionKeyRangeCache; + /** * @hidden */ @@ -60,6 +68,7 @@ export class QueryIterator { this.fetchAllLastResHeaders = getInitialHeader(); this.reset(); this.isInitialized = false; + this.partitionKeyRangeCache = new PartitionKeyRangeCache(this.clientContext); } /** @@ -98,7 +107,7 @@ export class QueryIterator { response = await this.queryExecutionContext.fetchMore(diagnosticNode); } catch (error: any) { if (this.needsQueryPlan(error)) { - await this.createPipelinedExecutionContext(); + await this.createExecutionContext(diagnosticNode); try { response = await this.queryExecutionContext.fetchMore(diagnosticNode); } catch (queryError: any) { @@ -176,15 +185,14 @@ export class QueryIterator { MetadataLookUpType.QueryPlanLookUp, ); if (!this.isInitialized) { - await this.init(); + await this.init(diagnosticNode); } - let response: Response; try { response = await this.queryExecutionContext.fetchMore(diagnosticNode); } catch (error: any) { if (this.needsQueryPlan(error)) { - await this.createPipelinedExecutionContext(); + await this.createExecutionContext(diagnosticNode); try { response = await this.queryExecutionContext.fetchMore(diagnosticNode); } catch (queryError: any) { @@ -231,7 +239,7 @@ export class QueryIterator { // this.queryPlanPromise = this.fetchQueryPlan(diagnosticNode); if (!this.isInitialized) { - await this.init(); + await this.init(diagnosticNode); } while (this.queryExecutionContext.hasMoreResults()) { let response: Response; @@ -239,7 +247,7 @@ export class QueryIterator { response = await this.queryExecutionContext.nextItem(diagnosticNode); } catch (error: any) { if (this.needsQueryPlan(error)) { - await this.createPipelinedExecutionContext(); + await this.createExecutionContext(diagnosticNode); response = await this.queryExecutionContext.nextItem(diagnosticNode); } else { throw error; @@ -268,7 +276,7 @@ export class QueryIterator { ); } - private async createPipelinedExecutionContext(): Promise { + private async createExecutionContext(diagnosticNode?: DiagnosticNodeInternal): Promise { const queryPlanResponse = await this.queryPlanPromise; // We always coerce queryPlanPromise to resolved. So if it errored, we need to manually inspect the resolved value @@ -276,7 +284,45 @@ export class QueryIterator { throw queryPlanResponse; } - const queryPlan = queryPlanResponse.result; + const queryPlan: PartitionedQueryExecutionInfo = queryPlanResponse.result; + if (queryPlan.hybridSearchQueryInfo && queryPlan.hybridSearchQueryInfo !== null) { + await this.createHybridQueryExecutionContext(queryPlan, diagnosticNode); + } else { + await this.createPipelinedExecutionContext(queryPlan); + } + } + + private async createHybridQueryExecutionContext( + queryPlan: PartitionedQueryExecutionInfo, + diagnosticNode?: DiagnosticNodeInternal, + ): Promise { + const allPartitionKeyRanges = ( + await this.partitionKeyRangeCache.onCollectionRoutingMap(this.resourceLink, diagnosticNode) + ).getOrderedParitionKeyRanges(); + + // convert allPartitionKeyRanges to QueryRanges + const queryRanges: QueryRange[] = allPartitionKeyRanges.map((partitionKeyRange) => { + return { + min: partitionKeyRange.minInclusive, + max: partitionKeyRange.maxExclusive, + isMinInclusive: true, + isMaxInclusive: false, + }; + }); + + this.queryExecutionContext = new HybridQueryExecutionContext( + this.clientContext, + this.resourceLink, + this.options, + queryPlan, + this.correlatedActivityId, + queryRanges, + ); + } + + private async createPipelinedExecutionContext( + queryPlan: PartitionedQueryExecutionInfo, + ): Promise { const queryInfo = queryPlan.queryInfo; this.nonStreamingOrderBy = queryInfo.hasNonStreamingOrderBy ? true : false; if (queryInfo.aggregates.length > 0 && queryInfo.hasSelectValue === false) { @@ -321,18 +367,18 @@ export class QueryIterator { } private initPromise: Promise; - private async init(): Promise { + private async init(diagnosticNode: DiagnosticNodeInternal): Promise { if (this.isInitialized === true) { return; } if (this.initPromise === undefined) { - this.initPromise = this._init(); + this.initPromise = this._init(diagnosticNode); } return this.initPromise; } - private async _init(): Promise { + private async _init(diagnosticNode: DiagnosticNodeInternal): Promise { if (this.options.forceQueryPlan === true && this.resourceType === ResourceType.item) { - await this.createPipelinedExecutionContext(); + await this.createExecutionContext(diagnosticNode); } this.isInitialized = true; } diff --git a/sdk/cosmosdb/cosmos/src/request/ErrorResponse.ts b/sdk/cosmosdb/cosmos/src/request/ErrorResponse.ts index 8d264e48b020..944928f4462f 100644 --- a/sdk/cosmosdb/cosmos/src/request/ErrorResponse.ts +++ b/sdk/cosmosdb/cosmos/src/request/ErrorResponse.ts @@ -16,7 +16,11 @@ export interface ErrorBody { */ export interface PartitionedQueryExecutionInfo { partitionedQueryExecutionInfoVersion: number; - queryInfo: QueryInfo; + queryInfo?: QueryInfo; + /** + * Represents hybrid query information. + */ + hybridSearchQueryInfo?: HybridSearchQueryInfo; queryRanges: QueryRange[]; } @@ -51,6 +55,33 @@ export interface QueryInfo { hasNonStreamingOrderBy: boolean; } +/** + * @hidden + * Represents the hybrid search query information + */ +export interface HybridSearchQueryInfo { + /** + * The query to be used for fetching global statistics + */ + globalStatisticsQuery: string; + /** + * Query information for the subsequent queries + */ + componentQueryInfos: QueryInfo[]; + /** + * The number of results in the final result set + */ + take: number; + /** + * The number of results to skip in the final result set + */ + skip: number; + /** + * Whether the query requires global statistics + */ + requiresGlobalStatistics: boolean; +} + export type GroupByExpressions = string[]; export type AggregateType = "Average" | "Count" | "Max" | "Min" | "Sum" | "MakeSet" | "MakeList"; diff --git a/sdk/cosmosdb/cosmos/src/request/globalStatistics.ts b/sdk/cosmosdb/cosmos/src/request/globalStatistics.ts new file mode 100644 index 000000000000..a4ce6810b1c1 --- /dev/null +++ b/sdk/cosmosdb/cosmos/src/request/globalStatistics.ts @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * @internal + * Represents the full text statistics for a text. + */ +export interface FullTextStatistics { + totalWordCount: number; + hitCounts: number[]; +} + +/** + * @internal + * Represents the global statistics for a full text query + */ +export interface GlobalStatistics { + documentCount: number; + fullTextStatistics: FullTextStatistics[]; +} diff --git a/sdk/cosmosdb/cosmos/src/request/hybridSearchQueryResult.ts b/sdk/cosmosdb/cosmos/src/request/hybridSearchQueryResult.ts new file mode 100644 index 000000000000..828534eb7907 --- /dev/null +++ b/sdk/cosmosdb/cosmos/src/request/hybridSearchQueryResult.ts @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { ItemDefinition } from "../client"; + +const FieldNames = { + Rid: "_rid", + Payload: "payload", + ComponentScores: "componentScores", +}; + +export class HybridSearchQueryResult { + rid: string; + componentScores: number[]; + data: any; + score: number; + ranks: number[]; + + constructor(rid: string, componentScores: number[], data: Record) { + this.rid = rid; + this.componentScores = componentScores; + this.data = data; + } + + public static create(document: T): HybridSearchQueryResult { + const rid = document[FieldNames.Rid]; + if (!rid) { + throw new Error(`${FieldNames.Rid} must exist.`); + } + + const outerPayload = document[FieldNames.Payload]; + if (!outerPayload || typeof outerPayload !== "object") { + throw new Error(`${FieldNames.Payload} must exist.`); + } + + const innerPayload = outerPayload[FieldNames.Payload]; + if (!innerPayload || typeof innerPayload !== "object") { + throw new Error(`${FieldNames.Payload} must exist nested within the outer payload field.`); + } + + const componentScores = outerPayload[FieldNames.ComponentScores]; + if (!Array.isArray(componentScores)) { + throw new Error(`${FieldNames.ComponentScores} must exist.`); + } + + return new HybridSearchQueryResult(rid, componentScores, innerPayload); + } +} diff --git a/sdk/cosmosdb/cosmos/src/request/index.ts b/sdk/cosmosdb/cosmos/src/request/index.ts index 0800bc03dab3..1061b85c2e77 100644 --- a/sdk/cosmosdb/cosmos/src/request/index.ts +++ b/sdk/cosmosdb/cosmos/src/request/index.ts @@ -9,6 +9,7 @@ export { AggregateType, GroupByExpressions, GroupByAliasToAggregateType, + HybridSearchQueryInfo, } from "./ErrorResponse"; export { FeedOptions } from "./FeedOptions"; export { RequestOptions } from "./RequestOptions"; @@ -19,3 +20,4 @@ export { StatusCode, SubStatusCode } from "./StatusCodes"; export { FeedResponse } from "./FeedResponse"; export { RequestContext } from "./RequestContext"; export { TimeoutError } from "./TimeoutError"; +export * from "./globalStatistics"; diff --git a/sdk/cosmosdb/cosmos/src/request/request.ts b/sdk/cosmosdb/cosmos/src/request/request.ts index 0f97b637b70e..ce731aa20ef3 100644 --- a/sdk/cosmosdb/cosmos/src/request/request.ts +++ b/sdk/cosmosdb/cosmos/src/request/request.ts @@ -176,7 +176,11 @@ export async function getHeaders({ headers[Constants.HttpHeaders.PopulateQueryMetrics] = options.populateQueryMetrics; } - if (options.maxDegreeOfParallelism !== undefined) { + if ( + options.maxDegreeOfParallelism !== undefined && + options.maxDegreeOfParallelism !== 0 && + options.maxDegreeOfParallelism !== 1 + ) { headers[Constants.HttpHeaders.ParallelizeCrossPartitionQuery] = true; } diff --git a/sdk/cosmosdb/cosmos/src/utils/envUtils.browser.ts b/sdk/cosmosdb/cosmos/src/utils/envUtils.browser.ts index 5618ae9d0175..3d11238bcbbf 100644 --- a/sdk/cosmosdb/cosmos/src/utils/envUtils.browser.ts +++ b/sdk/cosmosdb/cosmos/src/utils/envUtils.browser.ts @@ -1,5 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export const disableListAndSetAggregate: boolean = false; export const diagnosticLevelFromEnv: string | undefined = undefined; diff --git a/sdk/cosmosdb/cosmos/src/utils/envUtils.ts b/sdk/cosmosdb/cosmos/src/utils/envUtils.ts index 53d4e652f940..6450718b3b89 100644 --- a/sdk/cosmosdb/cosmos/src/utils/envUtils.ts +++ b/sdk/cosmosdb/cosmos/src/utils/envUtils.ts @@ -4,7 +4,5 @@ import process from "node:process"; import { Constants } from "../common/constants"; -export const disableListAndSetAggregate: boolean = - process.env.DISABLE_LIST_AND_SET_AGGREGATE === "true"; export const diagnosticLevelFromEnv: string | undefined = process.env[Constants.CosmosDbDiagnosticLevelEnvVarName]; diff --git a/sdk/cosmosdb/cosmos/src/utils/supportedQueryFeaturesBuilder.ts b/sdk/cosmosdb/cosmos/src/utils/supportedQueryFeaturesBuilder.ts index fc92520f6ec6..be415f769fe5 100644 --- a/sdk/cosmosdb/cosmos/src/utils/supportedQueryFeaturesBuilder.ts +++ b/sdk/cosmosdb/cosmos/src/utils/supportedQueryFeaturesBuilder.ts @@ -2,23 +2,12 @@ // Licensed under the MIT License. import { QueryFeature } from "../common"; -import { disableListAndSetAggregate } from "./envUtils"; export function supportedQueryFeaturesBuilder(disableNonStreamingOrderByQuery?: boolean): string { - if (disableNonStreamingOrderByQuery && disableListAndSetAggregate) { - return Object.keys(QueryFeature) - .filter( - (k) => k !== QueryFeature.NonStreamingOrderBy && k !== QueryFeature.ListAndSetAggregate, - ) - .join(", "); - } else if (disableNonStreamingOrderByQuery) { + if (disableNonStreamingOrderByQuery) { return Object.keys(QueryFeature) .filter((k) => k !== QueryFeature.NonStreamingOrderBy) .join(", "); - } else if (disableListAndSetAggregate) { - return Object.keys(QueryFeature) - .filter((k) => k !== QueryFeature.ListAndSetAggregate) - .join(", "); } else { return Object.keys(QueryFeature).join(", "); } diff --git a/sdk/cosmosdb/cosmos/test/internal/unit/getHeader.spec.ts b/sdk/cosmosdb/cosmos/test/internal/unit/getHeader.spec.ts new file mode 100644 index 000000000000..c1c759bfa889 --- /dev/null +++ b/sdk/cosmosdb/cosmos/test/internal/unit/getHeader.spec.ts @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import assert from "assert"; +import { Constants } from "../../../src/common/constants"; +import { getHeaders } from "../../../src/request/request"; +import { CosmosHeaders, FeedOptions } from "../../../src"; + +describe("Test x-ms-documentdb-query-parallelizecrosspartitionquery header value", function () { + const mockedEndpoint = "https://localhost:8081"; + function getHeadersFunc(feedOptions: FeedOptions): Promise { + return getHeaders({ + clientOptions: { endpoint: mockedEndpoint }, + defaultHeaders: null, + verb: null, + path: null, + resourceId: null, + resourceType: null, + options: feedOptions, + partitionKeyRangeId: null, + useMultipleWriteLocations: null, + partitionKey: null, + }); + } + it("If maxDegreeOfParallelism > 1 then x-ms-documentdb-query-parallelizecrosspartitionquery header should be true", async function () { + const headers = await getHeadersFunc({ maxDegreeOfParallelism: 2 }); + assert.equal( + headers[Constants.HttpHeaders.ParallelizeCrossPartitionQuery], + true, + "incorrect header value", + ); + }); + it("If maxDegreeOfParallelism == 0 then x-ms-documentdb-query-parallelizecrosspartitionquery header should be null", async function () { + const headers = await getHeadersFunc({ maxDegreeOfParallelism: 0 }); + assert.equal( + headers[Constants.HttpHeaders.ParallelizeCrossPartitionQuery], + null, + "incorrect header value", + ); + }); +}); diff --git a/sdk/cosmosdb/cosmos/test/internal/unit/globalStatisticsAggregator.spec.ts b/sdk/cosmosdb/cosmos/test/internal/unit/globalStatisticsAggregator.spec.ts new file mode 100644 index 000000000000..5e79e544a66d --- /dev/null +++ b/sdk/cosmosdb/cosmos/test/internal/unit/globalStatisticsAggregator.spec.ts @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { Suite } from "mocha"; +import assert from "assert"; +import { GlobalStatisticsAggregator } from "../../../src/queryExecutionContext/Aggregators/GlobalStatisticsAggregator"; +import { GlobalStatistics } from "../../../src/request/globalStatistics"; + +describe("global statistics aggregator", function (this: Suite) { + this.timeout(process.env.MOCHA_TIMEOUT || 10000); + + let aggregator: GlobalStatisticsAggregator; + + beforeEach(function () { + aggregator = new GlobalStatisticsAggregator(); + }); + + it("should aggregate document count and full text statistics", async function () { + const stats1: GlobalStatistics = { + documentCount: 2, + fullTextStatistics: [ + { totalWordCount: 100, hitCounts: [1, 2, 3] }, + { totalWordCount: 150, hitCounts: [4, 5, 6] }, + ], + }; + + const stats2: GlobalStatistics = { + documentCount: 3, + fullTextStatistics: [ + { totalWordCount: 200, hitCounts: [1, 1, 8] }, + { totalWordCount: 250, hitCounts: [2, 2, 2] }, + ], + }; + + aggregator.aggregate(stats1); + aggregator.aggregate(stats2); + + const result = aggregator.getResult(); + + assert.strictEqual(result.documentCount, 5); + assert.strictEqual(result.fullTextStatistics.length, 2); + assert.strictEqual(result.fullTextStatistics[0].totalWordCount, 300); + assert.strictEqual(result.fullTextStatistics[1].totalWordCount, 400); + assert.deepStrictEqual(result.fullTextStatistics[0].hitCounts, [2, 3, 11]); + assert.deepStrictEqual(result.fullTextStatistics[1].hitCounts, [6, 7, 8]); + }); + + it("should handle empty full text statistics correctly", async function () { + const stats: GlobalStatistics = { + documentCount: 1, + fullTextStatistics: [], + }; + + aggregator.aggregate(stats); + const result = aggregator.getResult(); + + assert.strictEqual(result.documentCount, 1); + assert.deepStrictEqual(result.fullTextStatistics, []); + }); + + it("should handle one Global Statistics correctly", async function () { + const stats1: GlobalStatistics = { + documentCount: 2, + fullTextStatistics: [ + { totalWordCount: 100, hitCounts: [1, 2] }, + { totalWordCount: 150, hitCounts: [4, 5, 6, 7] }, + ], + }; + + aggregator.aggregate(stats1); + const result = aggregator.getResult(); + + assert.strictEqual(result.documentCount, 2); + assert.strictEqual(result.fullTextStatistics.length, 2); + assert.strictEqual(result.fullTextStatistics[0].totalWordCount, 100); + assert.strictEqual(result.fullTextStatistics[1].totalWordCount, 150); + assert.deepStrictEqual(result.fullTextStatistics[0].hitCounts, [1, 2]); + assert.deepStrictEqual(result.fullTextStatistics[1].hitCounts, [4, 5, 6, 7]); + }); + + it("should handle null and undefined Global Statistics correctly", async function () { + const stats1: GlobalStatistics = { + documentCount: 2, + fullTextStatistics: [ + { totalWordCount: 100, hitCounts: [1, 2] }, + { totalWordCount: 150, hitCounts: [4, 5, 6, 7] }, + ], + }; + const stats2 = null as any; + const stats3 = undefined as any; + + aggregator.aggregate(stats1); + aggregator.aggregate(stats2); + aggregator.aggregate(stats3); + + const result = aggregator.getResult(); + + assert.strictEqual(result.documentCount, 2); + assert.strictEqual(result.fullTextStatistics.length, 2); + assert.strictEqual(result.fullTextStatistics[0].totalWordCount, 100); + assert.strictEqual(result.fullTextStatistics[1].totalWordCount, 150); + assert.deepStrictEqual(result.fullTextStatistics[0].hitCounts, [1, 2]); + assert.deepStrictEqual(result.fullTextStatistics[1].hitCounts, [4, 5, 6, 7]); + }); +}); diff --git a/sdk/cosmosdb/cosmos/test/mocha.env.ts b/sdk/cosmosdb/cosmos/test/mocha.env.ts index 755fc8732d05..65af76a9424a 100644 --- a/sdk/cosmosdb/cosmos/test/mocha.env.ts +++ b/sdk/cosmosdb/cosmos/test/mocha.env.ts @@ -5,5 +5,3 @@ * Specify test tsconfig file for Windows */ process.env.TS_NODE_PROJECT = "test/tsconfig.json"; -// TODO:Remove after emulator statrts supporitng MakeList and MakeSet -process.env.DISABLE_LIST_AND_SET_AGGREGATE = "true"; diff --git a/sdk/cosmosdb/cosmos/test/public/common/TestHelpers.ts b/sdk/cosmosdb/cosmos/test/public/common/TestHelpers.ts index 74484adba670..4a9f80b7650b 100644 --- a/sdk/cosmosdb/cosmos/test/public/common/TestHelpers.ts +++ b/sdk/cosmosdb/cosmos/test/public/common/TestHelpers.ts @@ -46,6 +46,7 @@ export const defaultClient = new CosmosClient({ endpoint, key: masterKey, connectionPolicy: { enableBackgroundEndpointRefreshing: false }, + diagnosticLevel: CosmosDbDiagnosticLevel.info, }); export const defaultComputeGatewayClient = new CosmosClient({ diff --git a/sdk/cosmosdb/cosmos/test/public/functional/NonStreamingQueryPolicy.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/NonStreamingQueryPolicy.spec.ts new file mode 100644 index 000000000000..9670dfddcacc --- /dev/null +++ b/sdk/cosmosdb/cosmos/test/public/functional/NonStreamingQueryPolicy.spec.ts @@ -0,0 +1,674 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import assert from "assert"; +import type { IndexingPolicy, VectorEmbeddingPolicy } from "../../../src/documents"; +import { + VectorEmbeddingDataType, + VectorEmbeddingDistanceFunction, + VectorIndexType, +} from "../../../src/documents"; +import { getTestDatabase } from "../common/TestHelpers"; +import type { Database } from "../../../src/client/Database/Database"; +import type { Container } from "../../../src/client"; + +// Skipping these tests as they are not supported by public emulator +describe("Vector search feature", async () => { + describe("VectorEmbeddingPolicy", async () => { + let database: Database; + before(async function () { + // removeAllDatabases(); + database = await getTestDatabase("vector embedding database"); + }); + + it("validate VectorEmbeddingPolicy", async function () { + const indexingPolicy: IndexingPolicy = { + vectorIndexes: [ + { path: "/vector1", type: VectorIndexType.Flat }, + { path: "/vector2", type: VectorIndexType.QuantizedFlat }, + ], + }; + const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { + vectorEmbeddings: [ + { + path: "/vector1", + dataType: VectorEmbeddingDataType.Float32, + dimensions: 500, + distanceFunction: VectorEmbeddingDistanceFunction.Euclidean, + }, + { + path: "/vector2", + dataType: VectorEmbeddingDataType.Int8, + dimensions: 200, + distanceFunction: VectorEmbeddingDistanceFunction.DotProduct, + }, + { + path: "/vector3", + dataType: VectorEmbeddingDataType.UInt8, + dimensions: 400, + distanceFunction: VectorEmbeddingDistanceFunction.Cosine, + }, + ], + }; + const containerName = "JSApp-vector embedding container"; + // create container + const { resource: containerdef } = await database.containers.createIfNotExists({ + id: containerName, + vectorEmbeddingPolicy: vectorEmbeddingPolicy, + indexingPolicy: indexingPolicy, + }); + + assert(containerdef.indexingPolicy !== undefined); + assert(containerdef.vectorEmbeddingPolicy !== undefined); + assert(containerdef.vectorEmbeddingPolicy.vectorEmbeddings.length === 3); + assert(containerdef.vectorEmbeddingPolicy.vectorEmbeddings[0].path === "/vector1"); + assert(containerdef.vectorEmbeddingPolicy.vectorEmbeddings[1].path === "/vector2"); + assert(containerdef.vectorEmbeddingPolicy.vectorEmbeddings[2].path === "/vector3"); + }); + + // skipping the test case for now. Will enable it once the changes are live on backend + it.skip("validate VectorEmbeddingPolicy", async function () { + const indexingPolicy: IndexingPolicy = { + vectorIndexes: [ + { path: "/vector1", type: VectorIndexType.Flat }, + { + path: "/vector2", + type: VectorIndexType.QuantizedFlat, + quantizationByteSize: 1, + vectorIndexShardKey: ["/Country"], + }, + { + path: "/vector3", + type: VectorIndexType.DiskANN, + quantizationByteSize: 2, + indexingSearchListSize: 100, + vectorIndexShardKey: ["/ZipCode"], + }, + ], + }; + const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { + vectorEmbeddings: [ + { + path: "/vector1", + dataType: VectorEmbeddingDataType.Float32, + dimensions: 500, + distanceFunction: VectorEmbeddingDistanceFunction.Euclidean, + }, + { + path: "/vector2", + dataType: VectorEmbeddingDataType.Int8, + dimensions: 200, + distanceFunction: VectorEmbeddingDistanceFunction.DotProduct, + }, + { + path: "/vector3", + dataType: VectorEmbeddingDataType.UInt8, + dimensions: 400, + distanceFunction: VectorEmbeddingDistanceFunction.Cosine, + }, + ], + }; + const containerName = "JSApp-vector embedding container"; + // create container + const { resource: containerdef } = await database.containers.createIfNotExists({ + id: containerName, + vectorEmbeddingPolicy: vectorEmbeddingPolicy, + indexingPolicy: indexingPolicy, + }); + + assert(containerdef.indexingPolicy !== undefined); + assert(containerdef.vectorEmbeddingPolicy !== undefined); + assert(containerdef.vectorEmbeddingPolicy.vectorEmbeddings.length === 3); + assert(containerdef.vectorEmbeddingPolicy.vectorEmbeddings[0].path === "/vector1"); + assert(containerdef.vectorEmbeddingPolicy.vectorEmbeddings[1].path === "/vector2"); + assert(containerdef.vectorEmbeddingPolicy.vectorEmbeddings[2].path === "/vector3"); + + assert(containerdef.indexingPolicy.vectorIndexes.length === 3); + assert(containerdef.indexingPolicy.vectorIndexes[0].path === "/vector1"); + assert(containerdef.indexingPolicy.vectorIndexes[1].path === "/vector2"); + assert(containerdef.indexingPolicy.vectorIndexes[2].path === "/vector3"); + + assert(containerdef.indexingPolicy.vectorIndexes[0].type === VectorIndexType.Flat); + assert(containerdef.indexingPolicy.vectorIndexes[1].type === VectorIndexType.QuantizedFlat); + assert(containerdef.indexingPolicy.vectorIndexes[2].type === VectorIndexType.DiskANN); + + assert(containerdef.indexingPolicy.vectorIndexes[1].quantizationByteSize === 1); + assert(containerdef.indexingPolicy.vectorIndexes[2].quantizationByteSize === 2); + assert(containerdef.indexingPolicy.vectorIndexes[2].indexingSearchListSize === 100); + assert(containerdef.indexingPolicy.vectorIndexes[1].vectorIndexShardKey[0] === "/Country"); + assert(containerdef.indexingPolicy.vectorIndexes[2].vectorIndexShardKey[0] === "/ZipCode"); + }); + + it("should fail to create vector indexing policy", async function () { + const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { + vectorEmbeddings: [ + { + path: "/vector1", + dataType: VectorEmbeddingDataType.Float32, + dimensions: 500, + distanceFunction: VectorEmbeddingDistanceFunction.Euclidean, + }, + ], + }; + + // Pass a vector indexing policy without embedding policy + let indexingPolicy: IndexingPolicy = { + vectorIndexes: [{ path: "/vector1", type: VectorIndexType.Flat }], + }; + const containerName = "JSApp- vector embedding container failed"; + // create container + try { + await database.containers.createIfNotExists({ + id: containerName, + indexingPolicy: indexingPolicy, + }); + assert.fail("Container creation should have failed for missing vectorEmbeddingPolicy."); + } catch (e) { + assert(e.code === 400); + } + + // Pass a vector indexing policy with non-matching path + indexingPolicy = { + vectorIndexes: [{ path: "/vector2", type: VectorIndexType.Flat }], + }; + try { + await database.containers.createIfNotExists({ + id: containerName, + vectorEmbeddingPolicy: vectorEmbeddingPolicy, + indexingPolicy: indexingPolicy, + }); + assert.fail("Container creation should have failed for index mismatch."); + } catch (e) { + assert(e.code === 400); + assert(e.body.message.includes("vector2 not matching in Embedding's path")); + } + }); + + it("should fail to replace vector indexing policy", async function () { + const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { + vectorEmbeddings: [ + { + path: "/vector1", + dataType: VectorEmbeddingDataType.Float32, + dimensions: 500, + distanceFunction: VectorEmbeddingDistanceFunction.Euclidean, + }, + ], + }; + const indexingPolicy: IndexingPolicy = { + vectorIndexes: [{ path: "/vector1", type: VectorIndexType.Flat }], + }; + const containerId = "replace vector indexing policy"; + await database.containers.createIfNotExists({ + id: containerId, + indexingPolicy: indexingPolicy, + vectorEmbeddingPolicy: vectorEmbeddingPolicy, + }); + const newIndexingPolicy: IndexingPolicy = { + vectorIndexes: [{ path: "/vector1", type: VectorIndexType.QuantizedFlat }], + }; + try { + await database.container(containerId).replace({ + id: containerId, + indexingPolicy: newIndexingPolicy, + }); + assert.fail("Container replace should have failed for indexing policy."); + } catch (e) { + assert(e.code === 400); + } + }); + + it.skip("should fail to create vector embedding policy", async function () { + // Using too many dimensions + const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { + vectorEmbeddings: [ + { + path: "/vector1", + dataType: VectorEmbeddingDataType.Float32, + dimensions: 2000, + distanceFunction: VectorEmbeddingDistanceFunction.Euclidean, + }, + ], + }; + try { + await database.containers.create({ + id: "vector container with too many dimensions", + vectorEmbeddingPolicy: vectorEmbeddingPolicy, + }); + assert.fail("Container creation should have failed but succeeded."); + } catch (e) { + assert(e.code === 400); + assert( + e.body.message.includes( + "Vector Embedding Policy has Dimensions:2000 which is more than max:1536", + ), + ); + } + + // Using negative dimensions + vectorEmbeddingPolicy.vectorEmbeddings[0].dimensions = -1; + try { + await database.containers.create({ + id: "vector container with negative dimensions", + vectorEmbeddingPolicy: vectorEmbeddingPolicy, + }); + assert.fail("Container creation should have failed but succeeded."); + } catch (e) { + assert(e.code === 400); + assert( + e.body.message.includes( + "Vector Embedding Policy has invalid Dimensions:-1, it should be positive integer", + ), + ); + } + }); + + after(async function () { + await database.delete(); + }); + }); + + describe("Vector Search Query", async () => { + let database: Database; + let container: Container; + + before(async function () { + database = await getTestDatabase("vector search database"); + const indexingPolicy: IndexingPolicy = { + vectorIndexes: [{ path: "/vector1", type: VectorIndexType.Flat }], + }; + const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { + vectorEmbeddings: [ + { + path: "/vector1", + dataType: VectorEmbeddingDataType.Float32, + dimensions: 2, + distanceFunction: VectorEmbeddingDistanceFunction.Euclidean, + }, + { + path: "/vector2", + dataType: VectorEmbeddingDataType.Float32, + dimensions: 2, + distanceFunction: VectorEmbeddingDistanceFunction.DotProduct, + }, + ], + }; + const containerName1 = "vector embedding container 1"; + + container = ( + await database.containers.createIfNotExists({ + id: containerName1, + vectorEmbeddingPolicy: vectorEmbeddingPolicy, + indexingPolicy: indexingPolicy, + throughput: 1000, + }) + ).container; + // insert some items + await container.items.create({ + id: "1", + vector1: [0.056419, -0.021141], + vector2: [0.056419, -0.021141], + }); + await container.items.create({ + id: "2", + vector1: [0.066419, -0.031141], + vector2: [0.066419, -0.031141], + }); + await container.items.create({ + id: "3", + vector1: [0.076419, -0.041141], + vector2: [0.076419, -0.041141], + }); + }); + + it("should execute vector search query", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT TOP 10 c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'}) AS similarityScore from c ORDER BY VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'})"; + await executeQueryAndVerifyOrder(container, query, 3, false); + }); + + it("should execute distinct vector search query", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT distinct TOP 10 c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'}) AS similarityScore from c ORDER BY VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'})"; + await executeQueryAndVerifyOrder(container, query, 3, false); + }); + + it("should execute vector search query with limit in query", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector2, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'}) OFFSET 0 LIMIT 2"; + await executeQueryAndVerifyOrder(container, query, 2, true); + }); + + it("should execute distinct vector search query with limit in query", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT distinct c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector2, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'}) OFFSET 0 LIMIT 2"; + await executeQueryAndVerifyOrder(container, query, 2, true); + }); + + it("should execute vector search query with top in query", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT TOP 2 c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector2, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'})"; + await executeQueryAndVerifyOrder(container, query, 2, true); + }); + + it("should execute distinct vector search query with top in query", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT distinct TOP 2 c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector2, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'})"; + await executeQueryAndVerifyOrder(container, query, 2, true); + }); + + it("should execute vector search query with filter in query", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'}) AS similarityScore from c WHERE VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'}) >= 0.0"; + const iterator = container.items.query(query); + // execute order by query on it + let id = 1; + while (iterator.hasMoreResults()) { + const { resources: result } = await iterator.fetchNext(); + if (result !== undefined) { + assert.equal(result[0].Id, id.toString()); + id++; + } + } + }); + it("should execute distinct vector search query with filter in query", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT distinct c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'}) AS similarityScore from c WHERE VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'}) >= 0.0"; + const iterator = container.items.query(query); + // execute distinct order by query on it + let id = 1; + while (iterator.hasMoreResults()) { + const { resources: result } = await iterator.fetchNext(); + if (result !== undefined) { + assert.equal(result[0].Id, id.toString()); + id++; + } + } + }); + after(async function () { + await database.delete(); + }); + }); + + describe.skip("Vector Search Query large dataset", async () => { + let database: Database; + let container: Container; + + before(async function () { + database = await getTestDatabase("vector search database"); + const indexingPolicy: IndexingPolicy = { + vectorIndexes: [{ path: "/vector1", type: VectorIndexType.Flat }], + }; + const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { + vectorEmbeddings: [ + { + path: "/vector1", + dataType: VectorEmbeddingDataType.Float32, + dimensions: 2, + distanceFunction: VectorEmbeddingDistanceFunction.DotProduct, + }, + ], + }; + const containerName = "vector embedding container 2"; + + container = ( + await database.containers.createIfNotExists({ + id: containerName, + vectorEmbeddingPolicy: vectorEmbeddingPolicy, + indexingPolicy: indexingPolicy, + throughput: 10000, + }) + ).container; + // insert some items + let vector1Value = 0.0001; + const increment = 0.0001; + for (let i = 0; i <= 2000; i++) { + await container.items.create({ + id: i.toString(), + vector1: [vector1Value, vector1Value], + }); + vector1Value += increment; + } + }); + + it("should execute vector search query, large data OFFSET 0 LIMIT 1000", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT c.id AS Id, VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'}) OFFSET 0 LIMIT 1000"; + await executeQueryAndVerifyOrder(container, query, 1000, true); + }); + + it("should execute distinct vector search query, large data OFFSET 0 LIMIT", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT DISTINCT c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'}) OFFSET 0 LIMIT 1000"; + await executeQueryAndVerifyOrder(container, query, 1000, true); + }); + + it("should execute vector search query with top in query, large data", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT TOP 1000 c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'})"; + await executeQueryAndVerifyOrder(container, query, 1000, true); + }); + + it("should execute distinct vector search query with top in query, large data", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT DISTINCT TOP 1000 c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'})"; + await executeQueryAndVerifyOrder(container, query, 1000, true); + }); + + it.skip("should execute vector search query, large data with offset 1000 and limit 500", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'}) OFFSET 1000 LIMIT 500"; + const iterator = container.items.query(query); + // execute order by query on it + // offset is set to 1000, so id should start from 1000 + let id = 1000; + while (iterator.hasMoreResults()) { + const { resources: result } = await iterator.fetchNext(); + if (result !== undefined) { + for (const item of result) { + assert.equal(item.Id, id.toString()); + id--; + } + } + } + // id should be 500 after fetching 500 items + assert.equal(id, 500); + }); + + it.skip("should execute distinct vector search query, large data with offset 1000 and limit 500", async function () { + // create a queryiterator to run vector search query + const query = + "SELECT DISTINCT c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotproduct'}) AS similarityScore from c ORDER BY VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'}) OFFSET 1000 LIMIT 500"; + const iterator = container.items.query(query); + // execute order by query on it + // offset is set to 1000, so id should start from 1000 + let id = 1000; + while (iterator.hasMoreResults()) { + const { resources: result } = await iterator.fetchNext(); + if (result !== undefined) { + for (const item of result) { + assert.equal(item.Id, id.toString()); + id--; + } + } + } + // id should be 500 after fetching 500 items + assert.equal(id, 500); + }); + + after(async function () { + await database.delete(); + }); + }); +}); + +async function executeQueryAndVerifyOrder( + container: Container, + query: string, + size: number, + isDescending: boolean, +): Promise { + const iterator = container.items.query(query); + let prevScore = isDescending ? Number.MAX_VALUE : -Number.MIN_VALUE; + let count = 0; + // execute order by query on it + while (iterator.hasMoreResults()) { + const { resources: result } = await iterator.fetchNext(); + if (result !== undefined) { + // check for order of similarityScore for items + for (const item of result) { + const currentScore = item.similarityScore; + if (isDescending) { + assert(prevScore > currentScore, "Elements are not in descending order"); + } else { + assert(prevScore < currentScore, "Elements are not in ascending order"); + } + prevScore = currentScore; + count++; + } + } + } + assert.equal(count, size); +} + +describe.skip("Full text search feature", async () => { + let database: Database; + + before(async function () { + database = await getTestDatabase("full text search database"); + }); + + after(async function () { + await database.delete(); + }); + + const indexingPolicy: IndexingPolicy = { + includedPaths: [{ path: "/*" }], + excludedPaths: [{ path: '/"_etag"/?' }], + fullTextIndexes: [{ path: "/text1" }, { path: "/text2" }], + }; + + const fullTextPolicy = { + defaultLanguage: "en-US", + fullTextPaths: [ + { path: "/text1", language: "1033" }, + { path: "/text2", language: "en-US" }, + ], + }; + + it("validate full text search policy", async function () { + const containerName = "full text search container policy"; + const { resource: containerdef } = await database.containers.createIfNotExists({ + id: containerName, + fullTextPolicy: fullTextPolicy, + indexingPolicy: indexingPolicy, + throughput: 1000, + }); + + assert(containerdef.indexingPolicy !== undefined); + assert(containerdef.fullTextPolicy !== undefined); + assert(containerdef.fullTextPolicy.defaultLanguage === "en-US"); + assert(containerdef.fullTextPolicy.fullTextPaths.length === 2); + assert(containerdef.fullTextPolicy.fullTextPaths[0].path === "/text1"); + assert(containerdef.fullTextPolicy.fullTextPaths[1].path === "/text2"); + }); + + it("should execute a full text query", async function () { + const containerName = "full text search container 1"; + const query = "SELECT TOP 10 * FROM c ORDER BY RANK FullTextScore(c.text1, ['swim', 'run'])"; + + const { container } = await database.containers.createIfNotExists({ + id: containerName, + throughput: 22000, + }); + + await container.items.create({ id: "1", text1: "I like to swim", text2: "I like to swim" }); + await container.items.create({ id: "2", text1: "I like to run", text2: "I like to run" }); + + const queryOptions = { forceQueryPlan: true }; + const queryIterator = container.items.query(query, queryOptions); + const result = []; + while (queryIterator.hasMoreResults()) { + result.push(...(await queryIterator.fetchNext()).resources); + } + assert(result.length === 2); + }); + + it("should execute a full text query with RRF score", async function () { + const containerName = "full text search container 2"; + const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { + vectorEmbeddings: [ + { + path: "/image", + dataType: VectorEmbeddingDataType.Float32, + dimensions: 3, + distanceFunction: VectorEmbeddingDistanceFunction.Euclidean, + }, + ], + }; + + const query = + "SELECT TOP 10 c FROM c WHERE FullTextContains(c.text, 'swim') AND FullTextContains(c.text2, 'swim') ORDER BY RANK RRF (FullTextScore(c.text, ['swim', 'run']),FullTextScore(c.text2, ['swim', 'run']))"; + + const { container } = await database.containers.createIfNotExists({ + id: containerName, + throughput: 15000, + vectorEmbeddingPolicy: vectorEmbeddingPolicy, + }); + + const items = [ + { id: "1", text: "I like to swim", image: [1, 2, 3], text2: "I do not like to swim" }, + { id: "2", text: "I like to run", image: [2, 2, 3], text2: "I do not like to run" }, + { + id: "3", + text: "I like to run and swim", + image: [2, 2, 3], + text2: "I do not like to run and swim", + }, + ]; + + for (const item of items) { + await container.items.create(item); + } + + const queryOptions = { forceQueryPlan: true }; + const queryIterator = container.items.query(query, queryOptions); + const result = []; + + while (queryIterator.hasMoreResults()) { + result.push(...(await queryIterator.fetchNext()).resources); + } + + assert(result.length === 2); + }); + + it("should execute a full text query with fetchAll", async function () { + const containerName = "full text search container 3"; + const query = "SELECT TOP 10 * FROM c ORDER BY RANK FullTextScore(c.text, ['swim', 'run'])"; + + const { container } = await database.containers.createIfNotExists({ + id: containerName, + throughput: 22000, + }); + + await container.items.create({ id: "1", text: "I like to swim" }); + await container.items.create({ id: "2", text: "I like to run" }); + + const queryOptions = { forceQueryPlan: true }; + const queryIterator = container.items.query(query, queryOptions); + const result = await queryIterator.fetchAll(); + assert(result.resources.length === 2); + }); +}); diff --git a/sdk/cosmosdb/cosmos/test/public/functional/query.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/query.spec.ts index 063116a9dc8e..065ceae49f00 100644 --- a/sdk/cosmosdb/cosmos/test/public/functional/query.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/functional/query.spec.ts @@ -268,7 +268,7 @@ describe("Queries", function (this: Suite) { }); }); - describe.skip("MakeList query iterator", function (this: Suite) { + describe("MakeList query iterator", function (this: Suite) { this.timeout(process.env.MOCHA_TIMEOUT || 30000); it("returns all documents for query iterator with makeList", async function () { @@ -325,7 +325,7 @@ describe("Queries", function (this: Suite) { }); }); - describe.skip("MakeSet query iterator", function (this: Suite) { + describe("MakeSet query iterator", function (this: Suite) { this.timeout(process.env.MOCHA_TIMEOUT || 30000); it("returns all documents for query iterator with makeSet", async function () { diff --git a/sdk/cosmosdb/cosmos/test/public/functional/vectorEmbeddingPolicy.spec.ts b/sdk/cosmosdb/cosmos/test/public/functional/vectorEmbeddingPolicy.spec.ts deleted file mode 100644 index 689a24b2f4fb..000000000000 --- a/sdk/cosmosdb/cosmos/test/public/functional/vectorEmbeddingPolicy.spec.ts +++ /dev/null @@ -1,479 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import assert from "assert"; -import type { IndexingPolicy, VectorEmbeddingPolicy } from "../../../src/documents"; -import { - VectorEmbeddingDataType, - VectorEmbeddingDistanceFunction, - VectorIndexType, -} from "../../../src/documents"; -import { getTestDatabase } from "../common/TestHelpers"; -import type { Database } from "../../../src/client/Database/Database"; -import type { Container } from "../../../src/client"; - -// Skipping these tests as they are not supported by public emulator -describe("Vector search feature", async () => { - describe("VectorEmbeddingPolicy", async () => { - let database: Database; - before(async function () { - // removeAllDatabases(); - database = await getTestDatabase("vector embedding database"); - }); - - it("validate VectorEmbeddingPolicy", async function () { - const indexingPolicy: IndexingPolicy = { - vectorIndexes: [ - { path: "/vector1", type: VectorIndexType.Flat }, - { path: "/vector2", type: VectorIndexType.QuantizedFlat }, - ], - }; - const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { - vectorEmbeddings: [ - { - path: "/vector1", - dataType: VectorEmbeddingDataType.Float32, - dimensions: 500, - distanceFunction: VectorEmbeddingDistanceFunction.Euclidean, - }, - { - path: "/vector2", - dataType: VectorEmbeddingDataType.Int8, - dimensions: 200, - distanceFunction: VectorEmbeddingDistanceFunction.DotProduct, - }, - { - path: "/vector3", - dataType: VectorEmbeddingDataType.UInt8, - dimensions: 400, - distanceFunction: VectorEmbeddingDistanceFunction.Cosine, - }, - ], - }; - const containerName = "JSApp-vector embedding container"; - // create container - const { resource: containerdef } = await database.containers.createIfNotExists({ - id: containerName, - vectorEmbeddingPolicy: vectorEmbeddingPolicy, - indexingPolicy: indexingPolicy, - }); - - assert(containerdef.indexingPolicy !== undefined); - assert(containerdef.vectorEmbeddingPolicy !== undefined); - assert(containerdef.vectorEmbeddingPolicy.vectorEmbeddings.length === 3); - assert(containerdef.vectorEmbeddingPolicy.vectorEmbeddings[0].path === "/vector1"); - assert(containerdef.vectorEmbeddingPolicy.vectorEmbeddings[1].path === "/vector2"); - assert(containerdef.vectorEmbeddingPolicy.vectorEmbeddings[2].path === "/vector3"); - }); - - it("should fail to create vector indexing policy", async function () { - const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { - vectorEmbeddings: [ - { - path: "/vector1", - dataType: VectorEmbeddingDataType.Float32, - dimensions: 500, - distanceFunction: VectorEmbeddingDistanceFunction.Euclidean, - }, - ], - }; - - // Pass a vector indexing policy without embedding policy - let indexingPolicy: IndexingPolicy = { - vectorIndexes: [{ path: "/vector1", type: VectorIndexType.Flat }], - }; - const containerName = "JSApp- vector embedding container failed"; - // create container - try { - await database.containers.createIfNotExists({ - id: containerName, - indexingPolicy: indexingPolicy, - }); - assert.fail("Container creation should have failed for missing vectorEmbeddingPolicy."); - } catch (e) { - assert(e.code === 400); - assert( - e.body.message.includes( - "Vector Indexing Policy's path::\\/vector1 not matching in Embedding's path", - ), - ); - } - - // Pass a vector indexing policy with non-matching path - indexingPolicy = { - vectorIndexes: [{ path: "/vector2", type: VectorIndexType.Flat }], - }; - try { - await database.containers.createIfNotExists({ - id: containerName, - vectorEmbeddingPolicy: vectorEmbeddingPolicy, - indexingPolicy: indexingPolicy, - }); - assert.fail("Container creation should have failed for index mismatch."); - } catch (e) { - assert(e.code === 400); - assert(e.body.message.includes("vector2 not matching in Embedding's path")); - } - }); - - it("should fail to replace vector indexing policy", async function () { - const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { - vectorEmbeddings: [ - { - path: "/vector1", - dataType: VectorEmbeddingDataType.Float32, - dimensions: 500, - distanceFunction: VectorEmbeddingDistanceFunction.Euclidean, - }, - ], - }; - const indexingPolicy: IndexingPolicy = { - vectorIndexes: [{ path: "/vector1", type: VectorIndexType.Flat }], - }; - const containerId = "replace vector indexing policy"; - await database.containers.createIfNotExists({ - id: containerId, - indexingPolicy: indexingPolicy, - vectorEmbeddingPolicy: vectorEmbeddingPolicy, - }); - const newIndexingPolicy: IndexingPolicy = { - vectorIndexes: [{ path: "/vector1", type: VectorIndexType.QuantizedFlat }], - }; - try { - await database.container(containerId).replace({ - id: containerId, - indexingPolicy: newIndexingPolicy, - }); - assert.fail("Container replace should have failed for indexing policy."); - } catch (e) { - assert(e.code === 400); - assert( - e.body.message.includes("Vector Indexing Policy cannot be changed in Collection Replace"), - ); - } - }); - - it.skip("should fail to create vector embedding policy", async function () { - // Using too many dimensions - const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { - vectorEmbeddings: [ - { - path: "/vector1", - dataType: VectorEmbeddingDataType.Float32, - dimensions: 2000, - distanceFunction: VectorEmbeddingDistanceFunction.Euclidean, - }, - ], - }; - try { - await database.containers.create({ - id: "vector container with too many dimensions", - vectorEmbeddingPolicy: vectorEmbeddingPolicy, - }); - assert.fail("Container creation should have failed but succeeded."); - } catch (e) { - assert(e.code === 400); - assert( - e.body.message.includes( - "Vector Embedding Policy has Dimensions:2000 which is more than max:1536", - ), - ); - } - - // Using negative dimensions - vectorEmbeddingPolicy.vectorEmbeddings[0].dimensions = -1; - try { - await database.containers.create({ - id: "vector container with negative dimensions", - vectorEmbeddingPolicy: vectorEmbeddingPolicy, - }); - assert.fail("Container creation should have failed but succeeded."); - } catch (e) { - assert(e.code === 400); - assert( - e.body.message.includes( - "Vector Embedding Policy has invalid Dimensions:-1, it should be positive integer", - ), - ); - } - }); - - after(async function () { - await database.delete(); - }); - }); - - describe("Vector Search Query", async () => { - let database: Database; - let container: Container; - - before(async function () { - database = await getTestDatabase("vector search database"); - const indexingPolicy: IndexingPolicy = { - vectorIndexes: [{ path: "/vector1", type: VectorIndexType.Flat }], - }; - const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { - vectorEmbeddings: [ - { - path: "/vector1", - dataType: VectorEmbeddingDataType.Float32, - dimensions: 2, - distanceFunction: VectorEmbeddingDistanceFunction.Euclidean, - }, - { - path: "/vector2", - dataType: VectorEmbeddingDataType.Float32, - dimensions: 2, - distanceFunction: VectorEmbeddingDistanceFunction.DotProduct, - }, - ], - }; - const containerName1 = "vector embedding container 1"; - - container = ( - await database.containers.createIfNotExists({ - id: containerName1, - vectorEmbeddingPolicy: vectorEmbeddingPolicy, - indexingPolicy: indexingPolicy, - throughput: 1000, - }) - ).container; - // insert some items - await container.items.create({ - id: "1", - vector1: [0.056419, -0.021141], - vector2: [0.056419, -0.021141], - }); - await container.items.create({ - id: "2", - vector1: [0.066419, -0.031141], - vector2: [0.066419, -0.031141], - }); - await container.items.create({ - id: "3", - vector1: [0.076419, -0.041141], - vector2: [0.076419, -0.041141], - }); - }); - - it("should execute vector search query", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT TOP 10 c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'}) AS similarityScore from c ORDER BY VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'})"; - await executeQueryAndVerifyOrder(container, query, 3, false); - }); - - it("should execute distinct vector search query", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT distinct TOP 10 c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'}) AS similarityScore from c ORDER BY VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'})"; - await executeQueryAndVerifyOrder(container, query, 3, false); - }); - - it("should execute vector search query with limit in query", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector2, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'}) OFFSET 0 LIMIT 2"; - await executeQueryAndVerifyOrder(container, query, 2, true); - }); - - it("should execute distinct vector search query with limit in query", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT distinct c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector2, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'}) OFFSET 0 LIMIT 2"; - await executeQueryAndVerifyOrder(container, query, 2, true); - }); - - it("should execute vector search query with top in query", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT TOP 2 c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector2, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'})"; - await executeQueryAndVerifyOrder(container, query, 2, true); - }); - - it("should execute distinct vector search query with top in query", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT distinct TOP 2 c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector2, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'})"; - await executeQueryAndVerifyOrder(container, query, 2, true); - }); - - it("should execute vector search query with filter in query", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'}) AS similarityScore from c WHERE VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'}) >= 0.0"; - const iterator = container.items.query(query); - // execute order by query on it - let id = 1; - while (iterator.hasMoreResults()) { - const { resources: result } = await iterator.fetchNext(); - if (result !== undefined) { - assert.equal(result[0].Id, id.toString()); - id++; - } - } - }); - it("should execute distinct vector search query with filter in query", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT distinct c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'}) AS similarityScore from c WHERE VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'euclidean'}) >= 0.0"; - const iterator = container.items.query(query); - // execute distinct order by query on it - let id = 1; - while (iterator.hasMoreResults()) { - const { resources: result } = await iterator.fetchNext(); - if (result !== undefined) { - assert.equal(result[0].Id, id.toString()); - id++; - } - } - }); - after(async function () { - await database.delete(); - }); - }); - - describe.skip("Vector Search Query large dataset", async () => { - let database: Database; - let container: Container; - - before(async function () { - database = await getTestDatabase("vector search database"); - const indexingPolicy: IndexingPolicy = { - vectorIndexes: [{ path: "/vector1", type: VectorIndexType.Flat }], - }; - const vectorEmbeddingPolicy: VectorEmbeddingPolicy = { - vectorEmbeddings: [ - { - path: "/vector1", - dataType: VectorEmbeddingDataType.Float32, - dimensions: 2, - distanceFunction: VectorEmbeddingDistanceFunction.DotProduct, - }, - ], - }; - const containerName = "vector embedding container 2"; - - container = ( - await database.containers.createIfNotExists({ - id: containerName, - vectorEmbeddingPolicy: vectorEmbeddingPolicy, - indexingPolicy: indexingPolicy, - throughput: 10000, - }) - ).container; - // insert some items - let vector1Value = 0.0001; - const increment = 0.0001; - for (let i = 0; i <= 2000; i++) { - await container.items.create({ - id: i.toString(), - vector1: [vector1Value, vector1Value], - }); - vector1Value += increment; - } - }); - - it("should execute vector search query, large data OFFSET 0 LIMIT 1000", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT c.id AS Id, VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'}) OFFSET 0 LIMIT 1000"; - await executeQueryAndVerifyOrder(container, query, 1000, true); - }); - - it("should execute distinct vector search query, large data OFFSET 0 LIMIT", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT DISTINCT c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'}) OFFSET 0 LIMIT 1000"; - await executeQueryAndVerifyOrder(container, query, 1000, true); - }); - - it("should execute vector search query with top in query, large data", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT TOP 1000 c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'})"; - await executeQueryAndVerifyOrder(container, query, 1000, true); - }); - - it("should execute distinct vector search query with top in query, large data", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT DISTINCT TOP 1000 c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'})"; - await executeQueryAndVerifyOrder(container, query, 1000, true); - }); - - it.skip("should execute vector search query, large data with offset 1000 and limit 500", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotProduct'}) AS similarityScore from c ORDER BY VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'}) OFFSET 1000 LIMIT 500"; - const iterator = container.items.query(query); - // execute order by query on it - // offset is set to 1000, so id should start from 1000 - let id = 1000; - while (iterator.hasMoreResults()) { - const { resources: result } = await iterator.fetchNext(); - if (result !== undefined) { - for (const item of result) { - assert.equal(item.Id, id.toString()); - id--; - } - } - } - // id should be 500 after fetching 500 items - assert.equal(id, 500); - }); - - it.skip("should execute distinct vector search query, large data with offset 1000 and limit 500", async function () { - // create a queryiterator to run vector search query - const query = - "SELECT DISTINCT c.id AS Id, VectorDistance([0.056419, -0.021141], c.vector1, true, {distanceFunction:'dotproduct'}) AS similarityScore from c ORDER BY VectorDistance([0.0001, 0.0001], c.vector1, true, {distanceFunction:'dotProduct'}) OFFSET 1000 LIMIT 500"; - const iterator = container.items.query(query); - // execute order by query on it - // offset is set to 1000, so id should start from 1000 - let id = 1000; - while (iterator.hasMoreResults()) { - const { resources: result } = await iterator.fetchNext(); - if (result !== undefined) { - for (const item of result) { - assert.equal(item.Id, id.toString()); - id--; - } - } - } - // id should be 500 after fetching 500 items - assert.equal(id, 500); - }); - - after(async function () { - await database.delete(); - }); - }); -}); - -async function executeQueryAndVerifyOrder( - container: Container, - query: string, - size: number, - isDescending: boolean, -): Promise { - const iterator = container.items.query(query); - let prevScore = isDescending ? Number.MAX_VALUE : -Number.MIN_VALUE; - let count = 0; - // execute order by query on it - while (iterator.hasMoreResults()) { - const { resources: result } = await iterator.fetchNext(); - if (result !== undefined) { - // check for order of similarityScore for items - for (const item of result) { - const currentScore = item.similarityScore; - if (isDescending) { - assert(prevScore > currentScore, "Elements are not in descending order"); - } else { - assert(prevScore < currentScore, "Elements are not in ascending order"); - } - prevScore = currentScore; - count++; - } - } - } - assert.equal(count, size); -} diff --git a/sdk/cosmosdb/cosmos/test/public/integration/aggregates/groupBy.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/aggregates/groupBy.spec.ts index 030a22fe515e..dbac0aa8fbef 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/aggregates/groupBy.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/aggregates/groupBy.spec.ts @@ -656,7 +656,7 @@ describe("Cross partition GROUP BY", () => { ); }); - it.skip("with MakeSet", async () => { + it("with MakeSet", async () => { const queryIterator = container.items.query( "SELECT c.name, MakeSet(c.age) AS ages FROM c GROUP BY c.name", options, diff --git a/sdk/cosmosdb/cosmos/test/public/integration/fullTextSearch.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/fullTextSearch.spec.ts new file mode 100644 index 000000000000..74d2b247b002 --- /dev/null +++ b/sdk/cosmosdb/cosmos/test/public/integration/fullTextSearch.spec.ts @@ -0,0 +1,297 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { Suite } from "mocha"; +import assert from "assert"; +import { ContainerDefinition, Container } from "../../../src"; +import items from "./text-3properties-1536dimensions-100documents"; +import { getTestContainer, removeAllDatabases } from "../common/TestHelpers"; + +describe.skip("Validate full text search queries", function (this: Suite) { + this.timeout(process.env.MOCHA_TIMEOUT || 20000); + + const partitionKey = "id"; + let container: Container; + const containerDefinition: ContainerDefinition = { + id: "sample container", + indexingPolicy: { + includedPaths: [ + { + path: "/*", + }, + ], + compositeIndexes: [ + [ + { path: "/index", order: "ascending" }, + { path: "/mixedTypefield", order: "ascending" }, + ], + ], + }, + partitionKey: { + paths: ["/" + partitionKey], + }, + }; + + const sampleVector = [ + 0.02, 0, -0.02, 0, -0.04, -0.01, -0.04, -0.01, 0.06, 0.08, -0.05, -0.04, -0.03, 0.05, -0.03, 0, + -0.03, 0, 0.05, 0, 0.03, 0.02, 0, 0.04, 0.05, 0.03, 0, 0, 0, -0.03, -0.01, 0.01, 0, -0.01, + -0.03, -0.02, -0.05, 0.01, 0, 0.01, 0, 0.01, -0.03, -0.02, 0.02, 0.02, 0.04, 0.01, 0.04, 0.02, + -0.01, -0.01, 0.02, 0.01, 0.02, -0.04, -0.01, 0.06, -0.01, -0.03, -0.04, -0.01, -0.01, 0, 0.03, + -0.02, 0.03, 0.05, 0.01, 0.04, 0.05, -0.05, -0.01, 0.03, 0.02, -0.02, 0, -0.02, -0.02, -0.04, + 0.01, -0.05, 0.01, 0.05, 0, -0.02, 0.03, -0.07, 0.05, 0.02, 0.03, 0.05, 0.05, -0.01, 0.03, + -0.08, -0.01, -0.03, 0.04, -0.01, -0.02, -0.01, -0.02, -0.03, 0.03, 0.03, -0.04, 0.04, 0.02, 0, + 0.03, -0.02, -0.04, 0.02, 0.01, 0.02, -0.01, 0.03, 0.02, 0.01, -0.02, 0, 0.02, 0, -0.01, 0.02, + -0.05, 0.03, 0.03, 0.04, -0.02, 0.04, -0.04, 0.03, 0.03, -0.03, 0, 0.02, 0.06, 0.02, 0.02, + -0.01, 0.03, 0, -0.03, -0.06, 0.02, 0, 0.02, -0.04, -0.05, 0.01, 0.02, 0.02, 0.07, 0.05, -0.01, + 0.03, -0.03, -0.06, 0.04, 0.01, -0.01, 0.04, 0.02, 0.03, -0.03, 0.03, -0.01, 0.03, -0.04, -0.02, + 0.02, -0.02, -0.03, -0.02, 0.02, -0.01, -0.05, -0.07, 0.02, -0.01, 0, -0.01, -0.02, -0.02, + -0.03, -0.03, 0, -0.08, -0.01, 0, -0.01, -0.03, 0.01, 0, -0.02, -0.03, -0.04, -0.01, 0.02, 0, 0, + -0.04, 0.04, -0.01, 0.04, 0, -0.06, 0.02, 0.03, 0.01, 0.06, -0.02, 0, 0.01, 0.01, 0.01, 0, + -0.02, 0.03, 0.02, 0.01, -0.01, -0.05, 0.03, -0.04, 0, 0.01, -0.02, -0.04, 0.02, 0, 0.09, -0.04, + -0.01, 0.02, 0.01, -0.03, 0.04, 0.02, -0.02, -0.02, -0.01, 0.01, -0.04, -0.01, 0.02, 0, 0, 0.07, + 0.02, 0, 0, -0.01, 0.01, 0.03, -0.02, 0, 0.03, -0.02, -0.07, -0.04, -0.03, 0, -0.03, -0.02, 0, + -0.02, -0.02, -0.05, -0.02, 0, 0.05, 0.01, -0.01, -0.04, 0.02, 0, 0, 0.03, 0.02, -0.03, -0.01, + -0.02, 0.06, -0.02, 0.01, 0.01, 0.04, -0.04, 0.06, -0.02, 0.01, 0.03, 0.01, 0.02, -0.02, 0.01, + -0.04, 0.05, -0.03, 0.01, -0.01, 0, -0.03, -0.03, 0.04, 0.02, -0.03, -0.03, -0.02, 0.06, 0.04, + -0.01, 0.01, 0.01, -0.01, -0.02, -0.02, 0.04, 0.01, -0.01, 0.01, -0.01, 0, 0.01, -0.04, 0.01, 0, + -0.04, 0.05, 0.01, 0.01, 0.09, -0.04, -0.02, 0.04, 0, 0.04, -0.04, -0.04, 0, 0, -0.01, 0.05, + -0.01, 0.02, 0.01, -0.03, 0, -0.06, 0.02, 0.04, 0.01, 0.03, 0.01, -0.04, 0, 0.01, 0.05, 0.02, + -0.02, 0.02, 0, -0.02, -0.04, -0.07, -0.02, -0.05, 0.06, 0.01, 0.02, -0.03, 0.06, -0.01, -0.02, + -0.02, -0.01, 0, -0.05, 0.06, -0.05, 0, -0.02, -0.02, 0, -0.01, 0.01, 0, -0.01, 0.05, 0.02, 0, + 0.02, -0.02, 0.02, 0, 0.08, -0.02, 0.01, -0.03, 0.02, -0.03, 0, -0.01, -0.02, -0.04, 0.06, 0.01, + -0.03, -0.03, 0.01, -0.01, 0.01, -0.01, 0.02, -0.03, 0.03, 0.04, 0.02, -0.02, 0.04, 0.01, 0.01, + 0.02, 0.01, 0, -0.03, 0.03, -0.02, -0.03, -0.02, 0.02, 0, -0.01, -0.02, -0.02, 0, -0.01, -0.03, + 0.02, -0.01, 0.01, -0.08, 0.01, -0.04, -0.05, 0.02, -0.01, -0.03, 0.02, 0.01, -0.03, 0.01, 0.02, + 0.03, 0.04, -0.04, 0.02, 0, 0.02, 0.02, 0.04, -0.04, -0.1, 0, 0.05, -0.01, 0.03, 0.05, 0.03, + -0.02, 0.01, 0.02, -0.05, 0.01, 0, 0.05, -0.01, 0.03, -0.01, 0, 0.04, 0, 0, 0.08, 0.01, 0, + -0.04, -0.03, 0, -0.02, -0.01, 0.02, 0.03, 0, -0.01, 0, 0, 0, 0.06, 0, 0, 0.01, -0.01, 0.01, + 0.04, 0.07, -0.01, 0.01, 0, -0.01, -0.02, 0.01, 0.01, 0, 0.02, 0.01, 0, -0.02, 0.03, 0.02, 0.06, + 0.02, -0.01, 0.03, 0.02, -0.02, 0.01, -0.01, 0.03, 0.05, 0.02, 0.01, 0, 0, 0.01, 0.03, -0.03, + -0.01, -0.04, 0.03, -0.02, 0.02, -0.02, -0.01, -0.02, 0.01, -0.04, 0.01, -0.04, 0.03, -0.02, + -0.02, -0.01, -0.01, 0.07, 0.04, -0.01, 0.08, -0.04, -0.04, 0, 0, -0.01, -0.01, 0.03, -0.04, + 0.02, -0.01, -0.04, 0.02, -0.07, -0.02, 0.02, -0.01, 0.02, 0.01, 0, 0.07, -0.01, 0.03, 0.01, + -0.05, 0.02, 0.02, -0.01, 0.02, 0.02, -0.03, -0.02, 0.03, -0.01, 0.02, 0, 0, 0.02, -0.01, -0.02, + 0.05, 0.02, 0.01, 0.01, -0.03, -0.05, -0.03, 0.01, 0.03, -0.02, -0.01, -0.01, -0.01, 0.03, + -0.01, -0.03, 0.02, -0.02, -0.03, -0.02, -0.01, -0.01, -0.01, 0, -0.01, -0.04, -0.02, -0.02, + -0.03, 0.04, 0.03, 0, -0.02, -0.01, -0.03, -0.01, -0.04, -0.04, 0.02, 0.01, -0.05, 0.04, -0.03, + 0.01, -0.01, -0.03, 0.01, 0.01, 0.01, 0.02, -0.01, -0.02, -0.03, -0.01, -0.01, -0.01, -0.01, + -0.03, 0, 0.01, -0.02, -0.01, -0.01, 0.01, 0, -0.04, 0.01, -0.01, 0.02, 0, 0, -0.01, 0, 0, 0.03, + -0.01, -0.06, -0.04, -0.01, 0, 0.02, -0.05, -0.02, 0.02, -0.01, 0.01, 0.01, -0.01, -0.02, 0, + 0.02, -0.01, -0.02, 0.04, -0.01, 0, -0.02, -0.04, -0.03, -0.03, 0, 0.03, -0.01, -0.02, 0, 0.01, + -0.01, -0.04, 0.01, -0.03, 0.01, 0.03, 0, -0.02, 0, -0.04, -0.02, -0.02, 0.03, -0.02, 0.05, + 0.02, 0.03, -0.02, -0.05, -0.01, 0.02, -0.04, 0.02, 0.01, -0.03, 0.01, 0.02, 0, 0.04, 0, -0.01, + 0.02, 0.01, 0.02, 0.02, -0.02, 0.04, -0.01, 0, -0.01, 0, 0.01, -0.02, -0.04, 0.06, 0.01, 0, + 0.01, -0.02, 0.02, 0.05, 0, 0.03, -0.02, 0.02, -0.03, -0.02, 0.01, 0, 0.06, -0.01, 0, -0.02, + -0.02, 0.01, -0.01, 0, -0.03, 0.02, 0, -0.01, -0.02, -0.01, 0.03, -0.03, 0, 0, 0, -0.03, -0.06, + 0.04, 0.02, -0.03, -0.06, -0.03, -0.01, -0.03, -0.02, -0.04, 0.01, 0, -0.01, 0.02, -0.01, 0.03, + 0.02, -0.02, -0.01, -0.02, -0.03, -0.01, 0.01, -0.04, 0.04, 0.03, 0.02, 0, -0.07, -0.02, -0.01, + 0, 0.03, -0.01, -0.03, 0, 0.03, 0, -0.01, 0.02, 0.01, 0.02, -0.03, 0, 0.01, -0.02, 0.04, -0.04, + 0, -0.05, 0, -0.02, -0.01, 0.03, 0.01, 0, -0.02, 0, -0.05, 0.01, -0.01, 0, -0.08, -0.01, -0.02, + 0.02, 0.01, -0.01, -0.01, -0.01, 0, 0, -0.01, -0.03, 0, 0, -0.02, 0.05, -0.03, 0.02, 0.01, + -0.02, 0.01, 0.01, 0, 0.01, -0.01, 0, -0.04, -0.06, 0.03, -0.02, 0, -0.02, 0.01, 0.03, 0.03, + -0.03, -0.01, 0, 0, 0.01, -0.02, -0.01, -0.01, -0.03, -0.02, 0.03, -0.02, 0.03, 0.01, 0.04, + -0.04, 0.02, 0.02, 0.02, 0.03, 0, 0.06, -0.01, 0.02, -0.01, 0.01, -0.01, -0.01, -0.03, -0.01, + 0.02, 0.01, 0.01, 0, -0.02, 0.03, 0.02, -0.01, -0.02, 0.01, 0.01, 0.04, -0.01, -0.05, 0, -0.01, + 0, 0.03, -0.01, 0.02, 0.02, -0.04, 0.01, -0.03, -0.02, 0, 0.02, 0, -0.01, 0.02, 0.01, 0.04, + -0.04, 0, -0.01, -0.02, 0, -0.02, 0.01, -0.02, 0, 0, 0.03, 0.04, -0.01, 0, 0, 0.03, -0.02, 0.01, + -0.02, 0, -0.03, 0.04, 0, 0.01, 0.04, 0, 0.03, -0.02, 0.01, 0.01, -0.02, 0.02, -0.05, 0.03, + -0.02, -0.01, 0.01, -0.01, 0.02, 0.04, 0.02, 0, -0.02, 0.02, -0.01, -0.03, -0.06, -0.01, -0.01, + -0.04, 0.01, -0.01, -0.01, -0.01, -0.02, 0.03, -0.03, 0.05, 0, -0.01, -0.03, 0.03, 0.01, -0.01, + -0.01, 0, 0.01, 0.01, 0.02, -0.01, 0.02, -0.02, -0.03, 0.03, -0.02, 0.01, 0, -0.03, 0.02, 0.02, + -0.02, 0.01, 0.02, -0.01, 0.02, 0, 0.02, 0.01, 0, 0.05, -0.03, 0.01, 0.03, 0.04, 0.01, 0.01, + -0.01, 0.02, -0.03, 0.02, 0.01, 0, -0.01, -0.03, -0.01, 0.02, 0.03, 0, 0.03, 0.02, 0, 0.01, + 0.01, 0.02, 0.01, 0.02, 0.03, 0.01, -0.03, 0.02, 0.01, 0.02, 0.03, -0.01, 0.01, -0.03, -0.01, + -0.02, 0.01, 0, 0, -0.01, -0.02, -0.01, -0.01, 0.01, 0.06, 0.01, 0, -0.01, 0.01, 0, 0, -0.01, + -0.01, 0, -0.02, -0.02, -0.01, -0.02, -0.01, -0.05, -0.02, 0.03, 0.02, 0, 0.03, -0.03, -0.03, + 0.03, 0, 0.02, -0.03, 0.04, -0.04, 0, -0.04, 0.04, 0.01, -0.03, 0.01, -0.02, -0.01, -0.04, 0.02, + -0.01, 0.01, 0.01, 0.02, -0.02, 0.03, -0.01, 0, 0.01, 0, 0.02, 0.01, 0.01, 0.03, -0.06, 0.02, 0, + -0.02, 0, 0.04, -0.03, 0, 0, -0.02, 0.06, 0.01, -0.03, -0.02, -0.01, -0.03, -0.04, 0.04, 0.03, + -0.02, 0, 0.03, -0.04, -0.01, -0.02, -0.02, -0.01, 0.02, 0.02, 0.01, 0.01, 0.01, -0.02, -0.02, + -0.03, -0.01, 0.01, 0, 0, 0, 0.02, -0.04, -0.01, -0.01, 0.04, -0.01, 0.01, -0.01, 0.01, -0.03, + 0.01, -0.01, 0, -0.01, 0.01, 0, 0.01, -0.04, 0.01, 0, 0, 0, 0, 0.02, 0.04, 0.01, 0.01, -0.01, + -0.02, 0, 0, 0.01, -0.01, 0.01, -0.01, 0, 0.04, -0.01, -0.02, -0.01, -0.01, -0.01, 0, 0, 0.01, + 0.01, 0.04, -0.01, -0.01, 0, -0.03, -0.01, 0.01, -0.01, -0.02, 0.01, -0.02, 0.01, -0.03, 0.02, + 0, 0.03, 0.01, -0.03, -0.01, -0.01, 0.02, 0.01, 0, -0.01, 0.03, -0.04, 0.01, -0.01, -0.03, + -0.02, 0.02, -0.01, 0, -0.01, 0.02, 0.02, 0.01, 0.03, 0, -0.03, 0, 0.02, -0.03, -0.01, 0.01, + 0.06, -0.01, -0.02, 0.01, 0, 0.04, -0.04, 0.01, -0.02, 0, -0.04, 0, 0.02, 0.02, -0.02, 0.04, + -0.01, 0.01, 0, 0.03, -0.03, 0.04, -0.01, -0.02, -0.02, 0.01, -0.02, -0.01, 0, -0.03, -0.01, + 0.02, -0.01, -0.05, 0.02, 0.01, 0, -0.02, -0.03, 0, 0, 0, -0.01, 0.02, 0, 0.02, 0.03, -0.02, + 0.02, -0.02, 0.02, -0.01, 0.02, 0, -0.07, -0.01, 0.01, 0.01, -0.01, 0.02, 0, -0.01, 0, 0.01, + 0.01, -0.06, 0.04, 0, -0.04, -0.01, -0.03, -0.04, -0.01, -0.01, 0.03, -0.02, -0.01, 0.02, 0, + -0.04, 0.01, 0.01, -0.01, 0.02, 0.01, 0.03, -0.01, 0, -0.02, -0.02, -0.01, 0.04, -0.02, 0.06, 0, + 0, -0.02, 0, 0.01, 0, -0.02, 0.02, 0.02, -0.06, -0.02, 0, 0.02, 0.01, -0.01, 0, 0, -0.01, 0.01, + -0.04, -0.01, -0.01, 0.01, -0.02, -0.03, 0.01, 0.03, -0.01, -0.01, 0, -0.01, 0, -0.01, 0.05, + 0.02, 0, 0, 0.02, -0.01, 0.02, -0.03, -0.01, -0.02, 0.02, 0, 0.01, -0.06, -0.01, 0.01, 0.01, + 0.02, 0.02, -0.02, 0.03, 0.01, -0.01, -0.01, 0, 0, 0.03, 0.05, 0.05, -0.01, 0.01, -0.03, 0, + -0.01, -0.01, 0, -0.02, 0.02, 0, 0.02, -0.01, 0.01, -0.02, 0.01, 0, -0.02, 0.02, 0.01, -0.03, + 0.03, -0.04, -0.02, -0.01, 0.01, -0.04, -0.03, -0.02, -0.03, 0.01, 0, 0, -0.02, -0.01, 0.02, + 0.01, -0.01, 0.01, 0.03, -0.01, -0.02, -0.01, 0, 0, -0.03, 0, 0.02, 0.03, 0.01, -0.01, 0.02, + 0.04, -0.04, 0.02, 0.01, -0.02, -0.01, 0.03, -0.04, -0.01, 0, 0.01, 0.01, 0, 0.03, 0.05, 0, 0, + 0.05, 0.01, -0.01, 0, -0.01, 0, -0.01, -0.01, 0.03, -0.01, 0.02, 0, 0, -0.01, 0, -0.02, -0.02, + 0.05, -0.02, -0.01, -0.01, -0.01, 0.02, 0, -0.01, 0, 0, 0, -0.02, -0.04, 0.01, 0.01, -0.01, + 0.01, 0, -0.06, -0.01, -0.04, -0.03, 0.01, 0, -0.01, 0.03, -0.04, -0.01, 0, 0.04, 0.03, + ]; + + const queriesMap = new Map([ + [ + `SELECT c.index AS Index, c.title AS Title, c.text AS Text + FROM c + WHERE FullTextContains(c.title, 'John') OR FullTextContains(c.text, 'John') + ORDER BY RANK FullTextScore(c.title, ['John'])`, + { + expected1: [2, 57, 85], + expected2: [2, 85, 57], + }, + ], + [ + `SELECT TOP 10 c.index AS Index, c.title AS Title, c.text AS Text + FROM c + WHERE FullTextContains(c.title, 'John') OR FullTextContains(c.text, 'John') + ORDER BY RANK FullTextScore(c.title, ['John'])`, + { + expected1: [2, 57, 85], + expected2: [2, 85, 57], + }, + ], + [ + `SELECT c.index AS Index, c.title AS Title, c.text AS Text + FROM c + WHERE FullTextContains(c.title, 'John') OR FullTextContains(c.text, 'John') + ORDER BY RANK FullTextScore(c.title, ['John']) + OFFSET 1 LIMIT 5`, + { + expected1: [57, 85], + expected2: [85, 57], + }, + ], + [ + `SELECT c.index AS Index, c.title AS Title, c.text AS Text + FROM c + WHERE FullTextContains(c.title, 'John') OR FullTextContains(c.text, 'John') OR FullTextContains(c.text, 'United States') + ORDER BY RANK RRF(FullTextScore(c.title, ['John']), FullTextScore(c.text, ['United States']))`, + { + expected1: [61, 51, 49, 54, 75, 24, 77, 76, 80, 25, 22, 2, 66, 57, 85], + expected2: [61, 51, 49, 54, 75, 24, 77, 76, 80, 25, 22, 2, 66, 85, 57], + }, + ], + [ + `SELECT TOP 10 c.index AS Index, c.title AS Title, c.text AS Text + FROM c + WHERE FullTextContains(c.title, 'John') OR FullTextContains(c.text, 'John') OR FullTextContains(c.text, 'United States') + ORDER BY RANK RRF(FullTextScore(c.title, ['John']), FullTextScore(c.text, ['United States']))`, + { + expected1: [61, 51, 49, 54, 75, 24, 77, 76, 80, 25], + expected2: [61, 51, 49, 54, 75, 24, 77, 76, 80, 25], + }, + ], + [ + `SELECT c.index AS Index, c.title AS Title, c.text AS Text + FROM c + WHERE FullTextContains(c.title, 'John') OR FullTextContains(c.text, 'John') OR FullTextContains(c.text, 'United States') + ORDER BY RANK RRF(FullTextScore(c.title, ['John']), FullTextScore(c.text, ['United States'])) + OFFSET 5 LIMIT 10`, + { + expected1: [24, 77, 76, 80, 25, 22, 2, 66, 57, 85], + expected2: [24, 77, 76, 80, 25, 22, 2, 66, 85, 57], + }, + ], + [ + `SELECT TOP 10 c.index AS Index, c.title AS Title, c.text AS Text + FROM c + ORDER BY RANK RRF(FullTextScore(c.title, ['John']), FullTextScore(c.text, ['United States']))`, + { + expected1: [61, 51, 49, 54, 75, 24, 77, 76, 80, 25], + expected2: [61, 51, 49, 54, 75, 24, 77, 76, 80, 25], + }, + ], + [ + `SELECT c.index AS Index, c.title AS Title, c.text AS Text + FROM c + ORDER BY RANK RRF(FullTextScore(c.title, ['John']), FullTextScore(c.text, ['United States'])) + OFFSET 0 LIMIT 13`, + { + expected1: [61, 51, 49, 54, 75, 24, 77, 76, 80, 25, 22, 2, 66], + expected2: [61, 51, 49, 54, 75, 24, 77, 76, 80, 25, 22, 2, 66], + }, + ], + [ + `SELECT TOP 10 c.index AS Index, c.title AS Title, c.text AS Text + FROM c + ORDER BY RANK RRF(VectorDistance(c.vector,[${sampleVector}]),FullTextScore(c.title, ['John']), FullTextScore(c.text, ['United States']))`, + { + expected1: [21, 75, 37, 24, 26, 35, 49, 87, 55, 9], + expected2: [21, 75, 37, 24, 26, 35, 49, 87, 55, 9], + }, + ], + [ + `SELECT TOP 10 c.index AS Index, c.title AS Title, c.text AS Text + FROM c + ORDER BY RANK + RRF( + VectorDistance(c.vector, [${sampleVector}]), + FullTextScore(c.title, ['John']), + VectorDistance(c.image, [${sampleVector}]), + VectorDistance(c.backup_image, [${sampleVector}]), + FullTextScore(c.text, ['United States']) + )`, + { + expected1: [21, 75, 37, 24, 26, 35, 49, 87, 55, 9], + expected2: [21, 75, 37, 24, 26, 35, 49, 87, 55, 9], + }, + ], + // TODO: Add test case of just RRF with vector search no FullTextScore + ]); + + const containerOptions = { offerThroughput: 25000 }; + + before(async function () { + await removeAllDatabases(); + container = await getTestContainer( + "Validate FTS Query", + undefined, + containerDefinition, + containerOptions, + ); + for (const item of items) { + await container.items.create(item); + } + }); + + it("FetchNext: should return correct expected values for all the queries", async function () { + for (const [query, { expected1, expected2 }] of queriesMap) { + const queryOptions = { allowUnboundedNonStreamingQueries: true, forceQueryPlan: true }; + const queryIterator = container.items.query(query, queryOptions); + + const results: any[] = []; + while (queryIterator.hasMoreResults()) { + const { resources: result } = await queryIterator.fetchNext(); + if (result !== undefined) { + results.push(...result); + } + } + + const indexes = results.map((result) => result.Index); + const isMatch = + JSON.stringify(indexes) === JSON.stringify(expected1) || + JSON.stringify(indexes) === JSON.stringify(expected2); + + assert.ok(isMatch, `The indexes array did not match expected values for query:\n${query}`); + } + }); + + it("FetchAll: should return correct expected values for all the queries", async function () { + for (const [query, { expected1, expected2 }] of queriesMap) { + const queryOptions = { allowUnboundedNonStreamingQueries: true }; + const queryIterator = container.items.query(query, queryOptions); + + const { resources: results } = await queryIterator.fetchAll(); + + const indexes = results.map((result) => result.Index); + const isMatch = + JSON.stringify(indexes) === JSON.stringify(expected1) || + JSON.stringify(indexes) === JSON.stringify(expected2); + + assert.ok(isMatch, `The indexes array did not match expected values for query:\n${query}`); + } + }); +}); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/nonStreamingOrderBy/nonStreamingOrderBy.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/nonStreamingOrderBy/nonStreamingOrderBy.spec.ts index 3face617dec2..4250bb1ff0b4 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/nonStreamingOrderBy/nonStreamingOrderBy.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/nonStreamingOrderBy/nonStreamingOrderBy.spec.ts @@ -508,7 +508,7 @@ describe("Test nonStreaming Queries", function () { } catch (err) { assert.equal( err.message, - "Executing a vector search query without TOP or LIMIT can consume a large number of RUs very fast and have long runtimes. Please ensure you are using one of the above two filters with your vector search query.", + "Executing a non-streaming search query without TOP or LIMIT can consume a large number of RUs very fast and have long runtimes. Please ensure you are using one of the above two filters with your vector search query.", ); } }); diff --git a/sdk/cosmosdb/cosmos/test/public/integration/split.spec.ts b/sdk/cosmosdb/cosmos/test/public/integration/split.spec.ts index 5021a5fbbd11..5d717541f38b 100644 --- a/sdk/cosmosdb/cosmos/test/public/integration/split.spec.ts +++ b/sdk/cosmosdb/cosmos/test/public/integration/split.spec.ts @@ -123,7 +123,7 @@ describe("Partition Splits", () => { .container(container.id) .items.query("SELECT * FROM root r", { maxItemCount: 2, - maxDegreeOfParallelism: 1, + maxDegreeOfParallelism: 2, }) .fetchAll(); assert.fail("Expected query to fail"); @@ -138,7 +138,7 @@ describe("Partition Splits", () => { .container(container.id) .items.query("SELECT * FROM root r", { maxItemCount: 2, - maxDegreeOfParallelism: 1, + maxDegreeOfParallelism: 2, }) .fetchNext(); assert.fail("Expected query to fail"); @@ -153,7 +153,7 @@ describe("Partition Splits", () => { .container(container.id) .items.query("SELECT * FROM root r", { maxItemCount: 2, - maxDegreeOfParallelism: 1, + maxDegreeOfParallelism: 2, }) .getAsyncIterator(); const results = []; diff --git a/sdk/cosmosdb/cosmos/test/public/integration/text-3properties-1536dimensions-100documents.ts b/sdk/cosmosdb/cosmos/test/public/integration/text-3properties-1536dimensions-100documents.ts new file mode 100644 index 000000000000..2c09cea83810 --- /dev/null +++ b/sdk/cosmosdb/cosmos/test/public/integration/text-3properties-1536dimensions-100documents.ts @@ -0,0 +1,39113 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +/* eslint-disable no-loss-of-precision */ +const items = [ + { + title: "Parabolic reflector", + text: "A parabolic (or paraboloid or paraboloidal) reflector (or dish or mirror) is a reflective surface used to collect or project energy such as light, sound, or radio waves. Its shape is part of a circular paraboloid, that is, the surface generated by a parabola revolving around its axis. The parabolic reflector transforms an incoming plane wave traveling along the axis into a spherical wave converging toward the focus.", + vector: [ + -0.02738949842751026, 0.03491175174713135, -0.021398993209004402, -0.018760139122605324, + -0.042221687734127045, 0.019897576421499252, -0.024750644341111183, -0.015590478666126728, + -0.03924918174743652, 0.0045838737860322, -0.004727949388325214, 0.005251170601695776, + 0.008606611751019955, -0.040553443133831024, 0.0018720327643677592, 0.03312218561768532, + 0.024614151567220688, -0.004254017025232315, 0.026919357478618622, -0.009835043922066689, + -0.00032867208938114345, -0.046255797147750854, -0.08153153210878372, -0.021019848063588142, + -0.019017957150936127, 0.018744973465800285, 0.032121241092681885, -0.039340175688266754, + -0.05620458722114563, -0.025508934631943703, 0.06970217823982239, 0.011510869488120079, + 0.010593336075544357, -0.03545772284269333, -0.040735434740781784, -0.01607578620314598, + -0.03160560131072998, -0.06051168218255043, -0.03206057474017143, 0.0011326983803883195, + -0.015029342845082283, 0.013573423027992249, -0.02282458171248436, 0.004489087499678135, + -0.02534211054444313, 0.037732597440481186, -0.0015601853374391794, 0.029133569449186325, + -0.02189946547150612, -0.038005582988262177, 0.005296668037772179, -0.07534386962652206, + -0.011723190546035767, 0.05875244736671448, -0.018183836713433266, 0.02467481419444084, + 0.029770534485578537, 0.0629078820347786, 0.0020265348721295595, -0.0036852979101240635, + 0.04458755627274513, -0.028026463463902473, -0.04301030933856964, 0.0448908731341362, + 0.004272974096238613, -0.005967756267637014, 0.0010644521098583937, 0.009569642134010792, + -0.023218894377350807, -0.007052113302052021, 0.033516496419906616, -0.01188243180513382, + -0.0016511803260073066, 0.026995187625288963, 0.013080532662570477, 0.04200936481356621, + 0.03010418266057968, 0.037368617951869965, 0.05380838364362717, -0.03779326379299164, + -0.039522167295217514, 0.011093808338046074, 0.021747808903455734, 0.02851177006959915, + 0.010676748119294643, 0.03075631521642208, 0.011738356202840805, -0.041281405836343765, + 0.04713541641831398, 0.011821769177913666, -0.031120294705033302, 0.0269496887922287, + 0.03585203364491463, 0.06230125203728676, 0.08232015371322632, -0.006377233657985926, + 0.0031241620890796185, 0.035882364958524704, -0.04813636094331741, 0.034638769924640656, + -0.017061565071344376, -0.002250230871140957, -0.006180077791213989, 0.016864409670233727, + -0.005505198147147894, -0.050926875323057175, -0.013816076330840588, -0.008667275309562683, + 0.016712751239538193, 0.004216102417558432, 0.016667252406477928, -0.011283381842076778, + 0.0552036426961422, -0.01841132342815399, -0.02684352919459343, -0.029012242332100868, + 0.013436930254101753, -0.020079566165804863, -0.04067477211356163, 0.03136294707655907, + -0.032606545835733414, -0.006119414698332548, -0.013262523338198662, 0.018350660800933838, + -0.014847353100776672, -0.040068138390779495, 0.01916961558163166, -0.017835022881627083, + 0.023052070289850235, -0.013186694122850895, -0.003920368384569883, -0.004951645154505968, + -0.012519396841526031, -0.0012786694569513202, 0.009599973447620869, 0.03151460736989975, + -0.014938347972929478, 0.018851133063435555, -0.006597138475626707, 0.021762974560260773, + 0.008849265053868294, -0.04759038984775543, 0.07146141678094864, -0.006532683502882719, + 0.005910884588956833, 0.004530793521553278, -0.022324109449982643, 0.03976482152938843, + -0.016909906640648842, -0.02984636463224888, 0.004242642316967249, 0.0026976228691637516, + -0.04637712612748146, -0.018183836713433266, 0.016591424122452736, -0.04804536700248718, + -0.006126997526735067, 0.028572434559464455, 0.02834494598209858, -0.07382728904485703, + -0.008204717189073563, 0.01777435839176178, -0.029057741165161133, 0.048106029629707336, + 0.012549729086458683, 0.023598039522767067, 0.0030976219568401575, -0.02403784915804863, + -0.040917422622442245, 0.0055734445340931416, 0.0067942943423986435, 0.010343099944293499, + 0.023689035326242447, -0.01023693848401308, -0.07231070101261139, -0.018001846969127655, + -0.007802822161465883, 0.01768336445093155, 0.0060739172622561455, -0.011556366458535194, + -0.031059630215168, -0.05647757276892662, 0.036246348172426224, 0.0033573368564248085, + 0.02450799010694027, 0.03788425773382187, -0.00373079557903111, 0.004481504205614328, + -0.05656856670975685, -0.02470514550805092, -0.026054905727505684, 0.004856858868151903, + 0.06069367378950119, -0.03336483612656593, 0.047469064593315125, -0.0872945487499237, + -0.022035958245396614, -0.010790491476655006, -0.02748049423098564, -0.007143108639866114, + 0.0025023629423230886, 0.025296613574028015, -0.032879531383514404, 0.0034672890324145555, + -0.04304064065217972, 0.05032024160027504, 0.054384686052799225, -0.018547816202044487, + 0.003628426231443882, -0.03524539992213249, 0.025463437661528587, -0.050835881382226944, + -8.761824574321508e-5, 0.0007848319946788251, 0.023158229887485504, 0.004128898493945599, + 0.0009094761917367578, -0.02488713525235653, 0.008735520765185356, -0.02629755809903145, + 0.01953359693288803, -0.03115062601864338, 0.022020792588591576, 0.03345583379268646, + -0.009440732188522816, 0.00981987826526165, -0.041584718972444534, -0.004617996979504824, + -0.053838714957237244, -0.018274832516908646, -0.0674576386809349, 0.041281405836343765, + 0.015355408191680908, -0.03104446455836296, -0.02403784915804863, -0.00958480779081583, + 0.0037497528828680515, -0.019852079451084137, 0.0021611314732581377, 0.01842649094760418, + 0.006437897216528654, -0.02001890353858471, -0.03136294707655907, -0.003821790451183915, + 0.028663428500294685, -0.027374332770705223, 0.024917468428611755, -0.06909554451704025, + -0.05235246568918228, -0.026585709303617477, -0.03776292875409126, 0.03133261576294899, + -0.05665956065058708, 0.05399037525057793, -0.004382926505059004, 0.006305195856839418, + 0.00523600447922945, 0.01982174627482891, 0.01094973273575306, 0.04237334430217743, + 0.03266720846295357, -0.04492120444774628, 0.02796580083668232, -0.021641647443175316, + -0.02619139850139618, 0.02112600952386856, -0.014824604615569115, -0.026798030361533165, + -0.011290964670479298, 0.023719366639852524, -0.008803767152130604, 0.03560938313603401, + 0.02347671240568161, -0.041008420288562775, 0.035033080726861954, 0.0023791403509676456, + -0.010403763502836227, 0.014089060947299004, 0.042525000870227814, -0.019017957150936127, + 0.027616987004876137, -0.056447237730026245, 0.010835989378392696, -0.013634085655212402, + 0.02282458171248436, 0.013406598940491676, 0.010001868940889835, 0.014195222407579422, + 0.020428379997611046, 0.00539903761819005, -0.022506099194288254, -0.031575269997119904, + -0.044648218899965286, 0.07182539999485016, 0.04564916342496872, -0.022035958245396614, + -0.010032200254499912, -0.028071962296962738, -0.004060652572661638, 0.044648218899965286, + -0.001304261852055788, 0.023082401603460312, -0.04021979495882988, 0.03442644700407982, + -0.01750137470662594, -0.028269117698073387, -0.007939314469695091, 0.03733828663825989, + -0.0172890517860651, -0.034092798829078674, 0.0561135895550251, -0.015014177188277245, + -0.011146889068186283, -0.016621755436062813, 0.002627481007948518, 0.0026312724221497774, + -0.0009071065578609705, -0.04728707671165466, -0.010555421933531761, -0.010373431257903576, + -0.032970525324344635, 0.01785018853843212, -0.0794689804315567, 0.00869002379477024, + 0.039704158902168274, 0.0065933470614254475, 0.059996046125888824, -0.01795634999871254, + 0.008341209031641483, 0.04674110561609268, -0.009016089141368866, -0.004140273202210665, + 0.04589181765913963, -0.020549707114696503, -0.006745005492120981, 0.007855902425944805, + -0.007567751687020063, 0.007215146441012621, -0.030741147696971893, -0.0025440689641982317, + 0.016758248209953308, 0.02208145707845688, -0.01374024711549282, -0.017744027078151703, + -0.011996176093816757, -0.06454579532146454, -0.0107980752363801, -0.01944260112941265, + 0.015370573848485947, 0.000463979784399271, 0.0006545005599036813, -0.020792359486222267, + -0.07588984072208405, 0.04555816948413849, 0.039886146783828735, -0.017653033137321472, + 5.05034186062403e-5, -0.05526430532336235, 0.01552223227918148, 0.012178165838122368, + -0.026449216529726982, -0.059723060578107834, -0.028951579704880714, -0.014104226604104042, + -0.03172692656517029, -0.01374024711549282, 0.003110891906544566, -0.0062104095704853535, + 0.01619711145758629, -0.012951623648405075, 0.011632195673882961, 0.008811349980533123, + -0.029012242332100868, 0.01916961558163166, 0.03767193481326103, 0.03077148087322712, + 0.041099414229393005, -0.031666263937950134, -0.007745950482785702, 0.002784826559945941, + -0.004708991851657629, 0.01757720299065113, -0.010540255345404148, -0.004568708129227161, + 0.02384069375693798, 0.037823595106601715, -0.012375322170555592, -0.04516385868191719, + -0.03924918174743652, -0.026403719559311867, 0.01098764780908823, -0.009084335528314114, + 0.004197144880890846, -0.01514308713376522, 0.0060928743332624435, -0.013436930254101753, + 0.016667252406477928, 0.017471041530370712, -0.01309569925069809, 0.015431237407028675, + 0.029421720653772354, 0.047924041748046875, -0.002581983571872115, -0.0024435953237116337, + 0.005319416988641024, 0.009660637006163597, -0.03542739152908325, 0.036792315542697906, + -0.016667252406477928, 0.01121513545513153, 0.04434490203857422, -0.028875751420855522, + 0.03500274941325188, 0.02617623284459114, 0.016758248209953308, 0.03852122277021408, + -0.010631250217556953, 0.04871266335248947, -0.0187904704362154, -0.01299712061882019, + -0.028178121894598007, 0.014544036239385605, 0.02843594178557396, -0.019700421020388603, + -0.019017957150936127, 0.009675802662968636, 0.04856100678443909, -0.0015355407958850265, + 0.017258720472455025, -0.030437830835580826, -0.041857704520225525, 0.007962063886225224, + 0.013884322717785835, -0.004458755720406771, -0.018562981858849525, 0.002204733435064554, + 0.0010919400956481695, 0.024341166019439697, 0.011753522790968418, -0.0027753477916121483, + -0.022005626931786537, 0.02449282445013523, 0.017319384962320328, -0.011298547498881817, + -0.022187616676092148, -0.006142163183540106, 0.0036132603418082, -0.03982548415660858, + 0.07218937575817108, 0.005922258831560612, 0.0105705875903368, 0.012739301659166813, + -0.05617425590753555, -0.021732641384005547, -0.010964899323880672, -0.004083401057869196, + -0.007700453046709299, -0.024553487077355385, -0.014885267242789268, 0.015529815107584, + 0.0038691838271915913, 0.02523595094680786, 0.01464261393994093, -0.056447237730026245, + 0.051199860870838165, 0.013641669414937496, -0.011988593265414238, -0.0021706102415919304, + -0.0033402752596884966, -0.04379893094301224, -0.003890036838129163, -0.06105765327811241, + -0.011245466768741608, 0.020155394449830055, -0.008758270181715488, -0.01853265054523945, + -0.048682332038879395, -0.0014853039756417274, 0.005239796359091997, -0.03715629503130913, + -0.03482075780630112, 0.031575269997119904, 0.007764907553792, -0.0029971483163535595, + 0.03040749952197075, -0.0032094698399305344, -0.00921324547380209, 3.450820076977834e-5, + 0.006945952773094177, -0.009895707480609417, 0.052413128316402435, -0.00015059200813993812, + -0.014953513629734516, -0.017880519852042198, -0.022566763684153557, -0.019518429413437843, + -0.010858737863600254, 0.03573070839047432, 0.031180957332253456, 0.07807371765375137, + 0.013224608264863491, -0.004015155136585236, -0.01627294160425663, 0.03251555189490318, + -0.023704200983047485, 0.06202826648950577, 0.029694706201553345, -0.02497813105583191, + -0.007165857125073671, 0.016758248209953308, 0.023491879925131798, -0.01599995605647564, + 0.02778381109237671, -0.02907290682196617, 0.025326944887638092, -0.008144053630530834, + -0.02738949842751026, 0.006415148265659809, -0.04552783817052841, 0.009152581915259361, + -0.013262523338198662, -0.014415126293897629, 0.005838846787810326, -0.022794250398874283, + 0.03645866736769676, -0.01104072853922844, 0.05638657510280609, -0.0021933589596301317, + 0.027844473719596863, -0.008530782535672188, 0.00023862493981141597, -0.03039233386516571, + 0.043738268315792084, 0.012504231184720993, -0.013072949834167957, 0.000957817304879427, + -0.010790491476655006, 0.048227354884147644, 0.025417940691113472, -0.02385585941374302, + -0.0370653010904789, 0.004375343676656485, 0.006551641039550304, 0.006005670875310898, + 0.01145778875797987, -0.0029061532113701105, 0.010244522243738174, -0.020443545654416084, + -0.0062748645432293415, -0.016803745180368423, 0.07728509604930878, 0.006782920099794865, + 0.023264391347765923, 0.07546519488096237, 0.017653033137321472, 0.008667275309562683, + -0.007787656504660845, -0.008075807243585587, 0.010441677644848824, -0.0011507077142596245, + -0.01145778875797987, 0.0011867266148328781, -0.02318856306374073, 0.02963404171168804, + -0.024811306968331337, 0.021747808903455734, -0.0019772457890212536, 0.03721696138381958, + -0.0041099414229393005, -0.0034255830105394125, -0.005907092709094286, 0.01663692109286785, + -0.022293778136372566, 0.027525991201400757, 0.005744060035794973, -0.013626502826809883, + -0.006312779150903225, 0.003927951212972403, -0.015969624742865562, 0.023734532296657562, + 0.008068224415183067, -0.008591446094214916, -0.009789546951651573, 0.01374024711549282, + 0.009948788210749626, -0.029785700142383575, 0.027616987004876137, 0.040280457586050034, + 0.004159230273216963, -0.006312779150903225, -0.027905136346817017, 0.038763877004384995, + 0.008712772279977798, 0.028466273099184036, 0.0196397565305233, 0.014779106713831425, + 0.014187638647854328, -0.04112974554300308, 0.021853968501091003, 0.02086818963289261, + 0.011806602589786053, 0.03739894926548004, -0.0008033153717406094, -0.04216102138161659, + -0.014104226604104042, 0.04640745744109154, 0.015696639195084572, -0.044102247804403305, + -0.0302103441208601, 0.01380091067403555, -0.04983493685722351, -0.0396738238632679, + -0.010926984250545502, 0.02440182864665985, -0.014308965764939785, 0.0023260600864887238, + -0.012595226056873798, -0.025645427405834198, -0.008561113849282265, -0.02030705288052559, + -0.00892509426921606, -0.023886190727353096, 0.01505209133028984, -0.0491979718208313, + -0.019958239048719406, -0.013831241987645626, 0.033698488026857376, -0.015082423575222492, + -0.03049849532544613, 0.029421720653772354, -0.010502341203391552, -0.06527375429868698, + -0.028132624924182892, -0.013891905546188354, 0.03843022882938385, 0.023446381092071533, + 0.0018805635627359152, -0.01926061138510704, 0.00963030569255352, 0.005854012444615364, + -0.03263687714934349, 0.012185748666524887, 0.036337342113256454, -0.05171550065279007, + 0.010487175546586514, 0.021489989012479782, -0.023067235946655273, -0.025417940691113472, + 0.01486251875758171, 0.021019848063588142, -0.009175330400466919, -0.016151614487171173, + -0.0041099414229393005, 0.014726025983691216, 0.024902300909161568, -0.008856847882270813, + -0.017986681312322617, 0.03882453963160515, 0.007753533311188221, -0.02347671240568161, + -0.00163127516862005, 0.00240757642313838, -0.044011253863573074, 0.012678638100624084, + -0.020352551713585854, 0.007385761942714453, -0.02000373788177967, 0.04385959729552269, + 0.0029914609622210264, 0.0020208475179970264, -0.028269117698073387, 0.006782920099794865, + -0.03245488926768303, -0.021671978756785393, 0.04461788758635521, -0.035670045763254166, + -0.009372486732900143, 0.01739521324634552, 0.01841132342815399, -0.017804691568017006, + -0.013080532662570477, 0.024750644341111183, 0.0014435979537665844, 0.01674308255314827, + 0.01637910306453705, -0.005641690921038389, 0.027450162917375565, -0.055051982402801514, + -0.033152516931295395, -0.019518429413437843, -0.06497044116258621, -0.01647009700536728, + -0.02534211054444313, -0.00640756543725729, -0.00279240938834846, -0.03524539992213249, + -0.027177177369594574, -0.014346879906952381, -0.02720750868320465, -0.04170604795217514, + 0.010911818593740463, -0.009903290309011936, -0.0028739257249981165, -0.009516561403870583, + -0.02385585941374302, 0.010267270728945732, -0.014604699797928333, -0.028390444815158844, + -0.019518429413437843, -0.017046399414539337, 0.014066312462091446, -0.036246348172426224, + 0.0009497604332864285, 0.01234498992562294, 0.026858694851398468, -0.013270106166601181, + -0.001313740503974259, 0.010873904451727867, -0.04367760568857193, 0.02141415886580944, + 0.020807527005672455, 0.01906345598399639, 0.0058691781014204025, 0.013725081458687782, + 0.04771171882748604, 0.02675253339111805, 0.005122261121869087, -0.03545772284269333, + -0.03597336262464523, 0.015742138028144836, -0.03994680941104889, 0.01029001921415329, + -0.008614194579422474, -0.01127579901367426, -0.012087170965969563, 0.03394113853573799, + -0.04740840196609497, 0.033061522990465164, -0.02280941605567932, 0.00252321595326066, + -0.00011812763841589913, -0.01352034229785204, 0.02963404171168804, -0.0159847903996706, + -0.010676748119294643, -0.014574367552995682, 0.006779128219932318, 0.02393168769776821, + 0.013762995600700378, -0.007711827289313078, -0.004674868658185005, 0.011723190546035767, + -0.030907971784472466, 0.011078642681241035, -0.026858694851398468, 0.02553926780819893, + -0.024644482880830765, 0.009410400874912739, -0.0015819862019270658, 0.036155350506305695, + -0.027541156858205795, 0.04173637926578522, 0.0035848242696374655, -0.0006293821497820318, + -0.04734773933887482, -0.049622613936662674, 0.018638812005519867, 0.01533265970647335, + 0.011116557754576206, -0.02132316492497921, 0.025872915983200073, 0.023052070289850235, + -0.0026142108254134655, -0.017273886129260063, -0.01572697050869465, 0.015029342845082283, + 0.00617628637701273, -0.05444534868001938, 0.01589379645884037, 0.008485284633934498, + -0.00481515284627676, -0.019958239048719406, -0.05638657510280609, -0.034365784376859665, + -0.02431083470582962, -0.025463437661528587, 0.014142141677439213, -0.00017452558677177876, + 0.00981987826526165, 0.022035958245396614, 0.03767193481326103, 0.024068180471658707, + -0.013194276951253414, -0.0055734445340931416, -0.004735532216727734, 0.021929798647761345, + 0.00847011897712946, 0.0007753533427603543, -0.027738312259316444, -0.024144010618329048, + 0.05435435473918915, -0.0019450184190645814, -0.004443589597940445, 0.001195257413201034, + 0.003863496473059058, -0.04143306240439415, 0.04768138751387596, -0.03479042649269104, + -0.025311779230833054, -0.003361128270626068, -0.02552410028874874, 0.036337342113256454, + 0.018911797553300858, 0.02534211054444313, -0.0191847812384367, -0.015355408191680908, + -0.009531727991998196, -0.034274786710739136, -0.009137416258454323, -0.005414203274995089, + 0.01210991945117712, -0.049319297075271606, -0.024917468428611755, 0.03654966503381729, + -0.03330417349934578, 0.012322241440415382, 0.002917527686804533, -0.004197144880890846, + 0.018441656604409218, -0.010631250217556953, 0.019093787297606468, -0.03148427605628967, + -0.009471064433455467, 0.010123195126652718, -0.03439611569046974, -0.004128898493945599, + 0.030452998355031013, 0.02365870401263237, 0.013254940509796143, 0.01257247757166624, + 0.03721696138381958, -0.02907290682196617, -0.01935160532593727, -0.025493768975138664, + -0.041857704520225525, 0.027328835800290108, 0.046346794813871384, 0.009084335528314114, + 0.011086225509643555, 0.0340624675154686, 0.016758248209953308, -0.013186694122850895, + 0.004284348338842392, 0.032121241092681885, 0.006202826742082834, -0.017926016822457314, + -0.02226344682276249, 0.011981010437011719, 0.0005374393076635897, 0.0018445447785779834, + 0.015878628939390182, 0.022399939596652985, 0.0017099479446187615, -0.036792315542697906, + 0.0042464337311685085, -0.004602830857038498, 0.03178759291768074, -0.010873904451727867, + 0.012708970345556736, -0.0065705981105566025, -0.009706134907901287, 0.01927577704191208, + 0.016151614487171173, -0.05620458722114563, 0.03676198422908783, 0.012314658612012863, + -0.009986702352762222, -0.03542739152908325, 0.026782864704728127, 0.05656856670975685, + 0.03621601685881615, 0.016106117516756058, -0.024280503392219543, 0.024841638281941414, + 0.026858694851398468, -0.026600874960422516, -0.07552585750818253, -0.008060641586780548, + 0.03284920006990433, 0.015544981695711613, -0.021641647443175316, -0.0021516529377549887, + -0.0005488136666826904, -0.0039507001638412476, -0.027268171310424805, 0.038581885397434235, + -0.014324131421744823, -0.020989516749978065, -0.011010396294295788, -0.006892872042953968, + 0.01692507229745388, -0.0005199037841521204, -0.02086818963289261, -0.012481482699513435, + 0.028587600216269493, -0.005835055373609066, 0.041099414229393005, 0.033152516931295395, + -0.0004222737334202975, -0.012921291403472424, 0.01627294160425663, -0.03397146984934807, + 0.04759038984775543, -0.009129832498729229, 0.05013825371861458, 0.007704244460910559, + 0.019154449924826622, 0.030073851346969604, 0.007374387700110674, -0.039340175688266754, + 0.0401894636452198, 0.02010989747941494, 0.04704442247748375, -0.004530793521553278, + 0.01005494873970747, -0.028921248391270638, -0.012701387517154217, 0.006081500090658665, + 0.026070071384310722, 0.024432161822915077, 0.024265335872769356, -0.00841703824698925, + 0.0474993959069252, 0.03733828663825989, 0.02142932638525963, 0.017653033137321472, + -0.030255841091275215, -0.01010802946984768, 0.014999011531472206, -0.010744994506239891, + 0.01897246018052101, 0.012671055272221565, 0.017137393355369568, -0.013118447735905647, + 0.02356770820915699, -0.025842582806944847, -0.057569511234760284, 0.011336461640894413, + -0.010365848429501057, 0.025008462369441986, 0.016106117516756058, 0.0002462078700773418, + -0.03348616510629654, -0.044466231018304825, 0.009471064433455467, -0.006066333968192339, + 0.007886234670877457, -0.009046420454978943, 0.041190408170223236, 0.003129849210381508, + -0.02320372872054577, 0.013831241987645626, 0.03048332966864109, -0.0003400464775040746, + 0.0047469064593315125, -0.010858737863600254, 0.003562075551599264, -0.040341123938560486, + 0.005907092709094286, -0.030923139303922653, 0.0015772469341754913, -0.02020089328289032, + -0.018669143319129944, 0.010919401422142982, 0.05496098846197128, 0.012648306787014008, + 0.06685100495815277, -0.003071081591770053, 0.019761083647608757, 0.027935469523072243, + 0.03943117335438728, 0.03573070839047432, -0.005262544844299555, -0.01417247299104929, + -0.008917511440813541, -0.012663472443819046, 0.0034066257067024708, 0.0006971544935368001, + -0.02599424123764038, 0.001672981190495193, -0.013368683867156506, -0.02758665382862091, + 0.007143108639866114, 0.01628810726106167, 0.004356386139988899, 0.009266325272619724, + -0.011389542371034622, -0.013072949834167957, -0.0053497483022511005, -0.026161065325140953, + -0.002953546354547143, -0.03218190371990204, -0.00897817499935627, 0.019033122807741165, + -0.038581885397434235, 0.03506341204047203, -0.009152581915259361, 0.007726992946118116, + -0.004163021687418222, 0.013914654031395912, 0.010934567078948021, 0.018214168027043343, + -0.052140142768621445, -0.020746862515807152, 0.039704158902168274, 0.029998023062944412, + 0.0021383827552199364, 0.014498538337647915, 0.06478844583034515, 0.043252963572740555, + -0.016970569267868996, 0.02030705288052559, 0.0015544980997219682, 0.028572434559464455, + -0.027814142405986786, 0.02385585941374302, -0.02264259196817875, -0.0036416961811482906, + 0.0629078820347786, -0.011010396294295788, 0.006062542553991079, -0.027616987004876137, + 0.0048303185030817986, -0.020701365545392036, 0.0004232215869706124, 0.024053014814853668, + -0.02729850448668003, -0.05835813656449318, -0.0035412225406616926, -0.03086247481405735, + -0.02514495514333248, 0.0017630283255130053, -0.014263467863202095, 0.005550695583224297, + -0.001238859142176807, -0.019412269815802574, -0.012898542918264866, -0.00511846924200654, + -0.03448710963129997, -0.007954481057822704, -0.01628810726106167, -0.05414203181862831, + -0.030634988099336624, 0.029512716457247734, -0.02394685335457325, -0.029967691749334335, + -0.03533639758825302, 0.013391432352364063, 0.004663494415581226, 0.021656813099980354, + -0.02224828116595745, -0.009675802662968636, 0.04052311182022095, 0.009554476477205753, + 0.03321317955851555, -0.0017781942151486874, 0.04610414057970047, -0.043434951454401016, + 0.01757720299065113, 0.003370607038959861, -0.021368661895394325, 0.010426511988043785, + 0.015271996147930622, 0.022566763684153557, 0.037368617951869965, 0.04728707671165466, + 0.015453985892236233, -0.001555445953272283, -0.015302328392863274, -0.022672923281788826, + -0.010418929159641266, -0.010418929159641266, -0.017425544559955597, -0.00032345883664675057, + -0.009266325272619724, 0.0030369586311280727, 0.067336305975914, -0.018365826457738876, + -0.010744994506239891, 0.011670110747218132, -0.006684341933578253, 0.04525485262274742, + 0.020428379997611046, 0.021353496238589287, -0.0033099434804171324, -0.0053307912312448025, + 0.00016990475705824792, 0.020079566165804863, -0.004894773475825787, 0.0003170607378706336, + -0.006020836532115936, 0.05744818598031998, -0.02535727620124817, 0.024053014814853668, + 0.022415105253458023, 0.05432402342557907, -0.002115634037181735, 0.00040521216578781605, + -0.022142119705677032, -0.036337342113256454, -0.03433545306324959, -0.01028243638575077, + -0.02309756726026535, -0.006540266331285238, 0.01730421744287014, -0.021914632990956306, + -0.01663692109286785, -0.009880541823804379, 0.018653977662324905, -0.013907071202993393, + 0.032121241092681885, -0.008667275309562683, 0.009008506312966347, 0.022308943793177605, + -0.03421412408351898, 0.015939293429255486, 0.0006625574314966798, 0.007764907553792, + -0.02271842211484909, 0.015226499177515507, -0.01757720299065113, 0.005922258831560612, + 0.05365672707557678, 0.012708970345556736, 0.008326043374836445, 0.02047387696802616, + 0.030240675434470177, -0.010835989378392696, -0.007654955610632896, 0.0018369618337601423, + 0.010638833977282047, -0.021262500435113907, -0.037641603499650955, 0.022005626931786537, + -0.004762072116136551, -0.004538376349955797, 0.003402834292501211, 0.02544827200472355, + -0.01869947463274002, 0.03500274941325188, 0.008401872590184212, -0.023294722661376, + 0.010244522243738174, 0.0024379079695791006, 0.001664450392127037, 0.008591446094214916, + -0.00959239061921835, -0.020140228793025017, 0.007518462836742401, -0.01906345598399639, + -0.0010056844912469387, 0.01992790773510933, 0.03852122277021408, 0.009835043922066689, + 0.02224828116595745, -0.00523600447922945, -0.03154493868350983, -0.004447381477802992, + -0.00446633854880929, -0.019017957150936127, 0.014005648903548717, 0.004917521961033344, + -0.007040739059448242, -0.011776271276175976, -0.011670110747218132, -0.024007517844438553, + -0.009918455965816975, -0.0044284239411354065, -0.015590478666126728, -0.007662538439035416, + 0.024811306968331337, 0.016576258465647697, 0.008909928612411022, -0.03227289766073227, + 0.01323977392166853, -0.011859683319926262, -0.00012653993326239288, 0.011708024889230728, + 0.01692507229745388, -0.027616987004876137, 0.059237752109766006, 0.0224454365670681, + -0.03843022882938385, 0.03906719386577606, -0.009910873137414455, -0.005880552809685469, + 0.011078642681241035, 0.01258764322847128, -0.004542167764157057, 0.004034112207591534, + -0.01486251875758171, 0.023628370836377144, 0.019002791494131088, -0.01080565806478262, + 0.016712751239538193, 0.0159847903996706, -0.02751082554459572, -0.016515593975782394, + -0.011783854104578495, 0.013110864907503128, 0.018305163830518723, 0.001071087084710598, + -0.021459657698869705, -0.008674858137965202, 0.015939293429255486, -0.0034995165187865496, + 0.01581796631217003, 0.014362046495079994, 0.006566806696355343, 0.0006113727577030659, + -0.029118403792381287, 0.023355387151241302, 0.0030331669840961695, 0.0063696508295834064, + 0.05292876437306404, -0.011905181221663952, 0.05814581364393234, -0.021444492042064667, + 0.014892850071191788, 0.03788425773382187, -0.005395245738327503, -0.01692507229745388, + 0.007848319597542286, 0.03095347061753273, -0.015544981695711613, 0.0278596393764019, + 0.0039507001638412476, 0.011981010437011719, -0.013452095910906792, 0.010600918903946877, + 0.00012535510177258402, -0.02647954784333706, 0.04862166941165924, 0.038854870945215225, + -0.015438820235431194, -0.019488098099827766, -0.011245466768741608, 0.013254940509796143, + 0.007848319597542286, -0.02666153945028782, -0.006346902344375849, -0.004921313375234604, + 0.020079566165804863, 0.016515593975782394, 0.023127898573875427, 0.01304261852055788, + 0.02095918543636799, 0.03903685882687569, -0.0146805290132761, -0.052898433059453964, + -0.01589379645884037, -0.03900652751326561, -0.0072492691688239574, -0.003639800474047661, + -0.029876695945858955, 0.023598039522767067, -0.02124733477830887, 0.0015611331909894943, + 0.011366793885827065, 0.009463481605052948, 0.020322220399975777, 0.03630701079964638, + 0.014308965764939785, 0.007825571112334728, -0.00066066172439605, -0.006688133347779512, + -0.013308020308613777, -0.018259664997458458, 0.003135536564514041, -0.009569642134010792, + 0.026115568354725838, -0.007901400327682495, 0.019093787297606468, -0.006062542553991079, + -0.0003696672501973808, 0.020170561969280243, 0.000715163943823427, -0.012822713702917099, + -0.004288139753043652, -0.0057137287221848965, 0.024068180471658707, 0.013368683867156506, + 0.028648262843489647, -0.0013516551116481423, 0.0020227432250976562, 0.00605875113978982, + -0.011799019761383533, 0.019215114414691925, 0.016712751239538193, -0.008113722316920757, + 0.03218190371990204, -0.03239422291517258, 0.02496296539902687, -0.02001890353858471, + -0.015370573848485947, -0.03958282992243767, -0.0105705875903368, -0.00940281804651022, + 0.030346836894750595, 0.05062355846166611, 0.04434490203857422, -0.010980064980685711, + 0.02133833058178425, 0.01804734393954277, 0.025948744267225266, -0.015393323265016079, + 0.04291931539773941, -0.0056682308204472065, -0.029800865799188614, -0.01860848069190979, + 0.005262544844299555, -0.016970569267868996, -0.0027071016374975443, -0.03233356028795242, + -0.019381938502192497, 0.01860848069190979, 0.0034066257067024708, -0.012557311914861202, + 0.007893817499279976, -0.04813636094331741, 0.03160560131072998, -0.005717520136386156, + -0.025190452113747597, -0.003347858088091016, 0.00264075119048357, -0.007817988283932209, + 0.00940281804651022, -0.0018625541124492884, -0.03973449021577835, -0.011890014633536339, + 0.011905181221663952, -0.019321274012327194, -0.0001368479715893045, 0.0422823503613472, + 0.0012786694569513202, 0.00011475087376311421, -0.0064530628733336926, -0.03946150466799736, + -0.02039804868400097, 0.03882453963160515, 0.013831241987645626, -0.0005454961210489273, + 0.018487153574824333, 0.018775304779410362, 0.026691870763897896, -0.0007421780610457063, + 0.01333076972514391, 0.018380992114543915, 0.03309185430407524, 0.03579137101769447, + 0.006263489834964275, -0.002976295305415988, -0.037368617951869965, -0.03518473729491234, + -0.01619711145758629, 0.03991647809743881, 0.012928875163197517, -0.01417247299104929, + 0.003010418266057968, 0.011730773374438286, -0.0037345869932323694, 0.016970569267868996, + 0.028572434559464455, -1.4491963156615384e-5, 0.013376266695559025, 0.003347858088091016, + 0.002030326286330819, -0.001514687784947455, -0.01103314571082592, -0.025599930435419083, + -0.007347847335040569, -0.013163944706320763, 0.03776292875409126, -0.0031999913044273853, + -0.0008090025512501597, -0.0013848303351551294, 0.011586698703467846, -0.018729805946350098, + 0.007287183776497841, 0.019002791494131088, 0.011518452316522598, 0.009054004214704037, + 0.021580982953310013, 0.021171506494283676, 0.02635822258889675, -0.035882364958524704, + -0.0003594776790123433, -0.011541200801730156, -0.020595204085111618, -0.0013781952438876033, + -0.00217440165579319, -0.03949183598160744, 0.009622722864151001, 0.020898520946502686, + 0.023294722661376, 0.009038837626576424, -0.039795152842998505, 0.0452851839363575, + -0.026813197880983353, 0.0051298439502716064, 0.009038837626576424, -0.013998066075146198, + -0.004223685245960951, 0.008576279506087303, -0.014043563976883888, -0.022308943793177605, + -0.029315559193491936, 0.023537376895546913, 0.017076730728149414, 0.01853265054523945, + 0.02161131612956524, -0.020792359486222267, -0.00039644440403208137, -0.017152559012174606, + 0.0004677712277043611, -0.041493725031614304, -0.002483405638486147, 0.015924127772450447, + 0.029512716457247734, -0.014475789852440357, 0.04243400692939758, -0.006502351723611355, + -0.012557311914861202, -0.016242610290646553, 0.0025535474997013807, -0.00869760662317276, + -0.050168585032224655, 0.022945908829569817, 0.023734532296657562, -0.02470514550805092, + -0.002204733435064554, -0.003939325921237469, -0.024720311164855957, -0.019017957150936127, + -0.010623667389154434, 0.0063696508295834064, -0.014938347972929478, -0.01121513545513153, + 0.023340221494436264, 0.028678594157099724, -0.04947095364332199, -0.004515627399086952, + -0.0409780889749527, 0.011715607717633247, 0.01285304594784975, -0.019154449924826622, + 0.017471041530370712, 0.029512716457247734, -0.015651142224669456, -0.020807527005672455, + 0.003992406185716391, 0.018183836713433266, 0.006305195856839418, 0.005876761395484209, + -0.001638858113437891, -0.005103303585201502, -0.014058729633688927, -0.015484318137168884, + 0.007730784825980663, -0.004280556924641132, -0.003827477805316448, 0.0022881454788148403, + 0.014627448283135891, 0.019230280071496964, 0.05210981145501137, 0.005292876623570919, + -0.03748994693160057, 0.005842638202011585, 0.009099501185119152, -0.008545948192477226, + -0.029482383280992508, 0.04701409116387367, -0.048500340431928635, 0.0375809408724308, + 0.007321306969970465, -0.010608501732349396, -0.009478647261857986, 0.013778161257505417, + -0.00804547592997551, 0.01721322350203991, 0.029254896566271782, -0.02907290682196617, + 0.01374782994389534, -0.0038691838271915913, -0.006926995236426592, -0.019472932443022728, + 0.007268226705491543, 0.015067257918417454, -0.0006763014825992286, 0.019503263756632805, + 0.018092840909957886, -0.032788537442684174, 0.03657999634742737, -0.010009451769292355, + 0.009895707480609417, -0.009175330400466919, -0.043252963572740555, 0.0017279573949053884, + 0.005804723594337702, 0.001999994507059455, -0.007620832417160273, -0.008955425582826138, + -0.027798976749181747, 0.022051123902201653, 0.015757303684949875, 0.018760139122605324, + 0.007734576240181923, -0.028375277295708656, -0.02021605893969536, 0.02458381839096546, + -0.010176275856792927, -0.009023671969771385, -0.028936414048075676, 0.011010396294295788, + -0.018911797553300858, -0.020792359486222267, -0.06272589415311813, -0.038945864886045456, + 0.025023628026247025, 0.007359221577644348, 0.010403763502836227, -0.023825528100132942, + 0.0035146824084222317, -0.004894773475825787, 0.0020530750043690205, 0.005562070291489363, + ], + index: 1, + }, + { + title: "John Baird (Canadian politician)", + text: "John Russell Baird, PC (born May 26, 1969) served from 2011 to 2015 as Canada's Minister of Foreign Affairs in the cabinet of Prime Minister Stephen Harper. He had been a member of the federal cabinet, in various positions, since 2006. Previously he was a provincial cabinet minister in Ontario during the governments of Premiers Mike Harris and Ernie Eves. Baird resigned from cabinet on February 3, 2015, and as a Member of Parliament on March 16, 2015.", + vector: [ + -0.010904606431722641, -0.013850467279553413, -0.008957103826105595, 6.772535562049598e-5, + 0.006471754051744938, 0.02263883501291275, 0.00030825199792161584, -0.001327922334894538, + -0.08166854083538055, 0.05962028354406357, -0.013105213642120361, -0.006485815159976482, + -0.03866881877183914, 0.00401452649384737, -0.026561962440609932, 0.01598779857158661, + -0.0026312372647225857, 0.016395578160881996, -0.05258959159255028, -0.032706789672374725, + 0.03509722277522087, -0.006485815159976482, 0.007944684475660324, 0.046093229204416275, + 0.02016402967274189, 0.025929199531674385, 0.026758821681141853, 0.009273485280573368, + 0.002865007845684886, -0.0007228432223200798, -0.011277233250439167, 0.02578858658671379, + 0.046740055084228516, 0.010932729579508305, 0.00228321785107255, -0.004858209751546383, + 0.015678448602557182, 0.00958283618092537, -0.02761656604707241, 0.019278163090348244, + 0.00041283355676569045, 0.0012874958338215947, -0.011727198027074337, -0.01353408582508564, + 0.01056713331490755, 0.026758821681141853, -0.06670722365379333, 0.013154428452253342, + 0.03594090789556503, -0.017900146543979645, 0.016072167083621025, -0.026055751368403435, + -0.013063029386103153, 0.05416446551680565, 0.011066311970353127, 0.00045787394628860056, + 0.04285911098122597, 0.07221928983926773, -0.016339333727955818, -0.006851411424577236, + 0.011213957332074642, -0.029050827026367188, 0.003446797840297222, -0.043618425726890564, + 0.03262241929769516, 0.10394178330898285, 0.0028034893330186605, 0.021949827671051025, + -0.12599003314971924, 0.004144594073295593, 0.0149472551420331, -0.005142952781170607, + 0.038612570613622665, 0.026632269844412804, -0.018743829801678658, 0.009371914900839329, + 0.020923346281051636, -0.0051605296321213245, -0.025057394057512283, -0.011692044325172901, + 0.014651966281235218, -0.03259429708123207, 0.01653619296848774, 0.0120717016980052, + -0.03349422663450241, -0.048118069767951965, 0.02183733507990837, -0.066032275557518, + 0.01046870369464159, 0.007860315963625908, -0.038275096565485, 0.020445257425308228, + 0.06856332719326019, 0.04280286654829979, 0.05798916518688202, 0.0006657188641838729, + -0.012127947062253952, -0.05188652127981186, 0.03560343384742737, -0.04319658502936363, + 0.04254975914955139, 0.04007495567202568, 0.014019204303622246, 0.010243721306324005, + 0.03979372978210449, -0.027799364179372787, -0.046290088444948196, -0.02642134763300419, + 0.012486512772738934, 0.09111779183149338, -0.03464725986123085, 0.04530579224228859, + -0.039090659469366074, 0.0580454096198082, 0.006250286940485239, 0.002372859278693795, + -0.017843902111053467, 0.016128411516547203, -0.0012751921312883496, 0.04148109629750252, + 0.014244185760617256, -0.03970935940742493, 0.033184874802827835, 0.018771953880786896, + -0.01611435040831566, -0.024073095992207527, 0.03425354138016701, 0.00019015830184798688, + 0.015523772686719894, -0.029753897339105606, -0.05416446551680565, 0.03895004466176033, + -0.03619401156902313, -0.025296436622738838, -0.004306300077587366, -0.020895222201943398, + 0.04887738451361656, 0.005568309687077999, -0.025422990322113037, -0.020346827805042267, + 0.04229665547609329, -0.0051605296321213245, 0.018040761351585388, 0.02158423140645027, + 0.02571827918291092, -0.010820237919688225, -0.01515817642211914, 0.0006099127349443734, + -0.017576735466718674, 0.05756732448935509, 0.015411281026899815, 0.03220057860016823, + -0.0077689168974757195, 0.0038457897026091814, 0.045418284833431244, -0.02386217564344406, + 0.011713135987520218, 0.02696974202990532, -0.01427230890840292, 0.02741970680654049, + -0.05596432462334633, -0.00288609997369349, -0.00045128268538974226, 0.039990589022636414, + 0.006313563324511051, 0.02261071279644966, -0.008732122369110584, 0.026786943897604942, + -0.00821888167411089, 0.01631120964884758, 0.029838265851140022, -0.014595720916986465, + 0.013667669147253036, -0.05883284658193588, 0.010763992555439472, -0.01858915574848652, + 0.006854926701635122, 0.003213027259334922, -0.027250969782471657, -0.01768922619521618, + 0.008352464064955711, -0.01891256682574749, -0.04350593313574791, 0.028024345636367798, + -0.04716189578175545, -0.010897575877606869, 0.05005853995680809, -0.007076393347233534, + -0.07266925275325775, -0.011973272077739239, 0.015889368951320648, 0.026533838361501694, + -0.02106395922601223, -0.007181853987276554, 0.0642886683344841, 0.0022709141485393047, + 0.038134485483169556, 0.03011949360370636, -0.015284729190170765, 0.02389029785990715, + 0.0432809516787529, 0.0055120643228292465, 0.001624090364202857, 0.020149968564510345, + 0.02793997898697853, 0.01295756921172142, 0.06636974960565567, -0.02841806598007679, + -0.03366296365857124, 0.013119274750351906, 0.059001583606004715, -0.04735875502228737, + 0.06288252770900726, 0.02581670880317688, -0.012535727582871914, 0.004510190337896347, + 0.03630650416016579, 0.06794462352991104, 0.04980543628334999, 0.0064014471136033535, + -0.02854461781680584, 0.01245838962495327, 0.00017807430413085967, -0.0286430474370718, + 0.03821885213255882, -0.03571592643857002, -0.009603927843272686, -0.014131695032119751, + -0.024073095992207527, 0.015594079159200191, 0.013955927453935146, 0.06833834946155548, + -0.01085539162158966, 0.0550362728536129, -0.024607429280877113, 0.08470579981803894, + 0.005983120761811733, -0.04190293699502945, -0.0205155648291111, -0.008387617766857147, + -0.014806641265749931, -0.005476910620927811, -0.032734911888837814, -0.0263932254165411, + -0.0036489302292466164, 0.044265247881412506, -0.019095364958047867, -0.016929911449551582, + -0.048118069767951965, 0.03619401156902313, 0.020853038877248764, -0.035884663462638855, + 0.013316134922206402, -0.027236908674240112, -0.01451135240495205, -0.02793997898697853, + -0.03082256205379963, 0.022877877578139305, 0.0012707979185506701, 0.014258247800171375, + 0.016972094774246216, 0.034956611692905426, 0.015551894903182983, 0.021049898117780685, + 0.0036629915703088045, -0.01753455027937889, -0.022793510928750038, 4.3145391828147694e-5, + -0.004035618156194687, -0.03194747492671013, 0.046543195843696594, 0.005469880066812038, + 0.03540657460689545, 0.034787874668836594, -0.046290088444948196, 0.021851396188139915, + -0.06456989049911499, -0.017675165086984634, -0.018701646476984024, 0.06226382777094841, + 0.05838288366794586, 0.013400502502918243, 0.030710071325302124, -0.05596432462334633, + -0.008436832576990128, 0.02674476057291031, 0.016747113317251205, -0.003193692769855261, + 0.01183265820145607, -0.01583312265574932, -0.01683148182928562, 0.03281927853822708, + 0.05048038437962532, -0.031188158318400383, -0.02176702953875065, 0.013576270081102848, + -0.020304644480347633, -0.03644711896777153, -0.021204574033617973, 0.06074519827961922, + 0.009189116768538952, 0.03124440461397171, -0.0032956379000097513, -0.055148765444755554, + 0.0237637460231781, 0.020248398184776306, -0.034731630235910416, 0.023004431277513504, + 0.05917032063007355, -0.004137563519179821, -0.017703287303447723, -0.029107073321938515, + 0.019798435270786285, -0.022484159097075462, 0.003350125625729561, 0.006928748916834593, + 0.011755320243537426, 0.0002416801144136116, 0.0035399545449763536, -0.03574404865503311, + 0.01549564953893423, 0.028685230761766434, -0.02116238884627819, 0.002146119251847267, + 0.028825845569372177, -0.0450245663523674, 0.03504097834229469, -0.00017258156731259078, + 0.015903430059552193, 0.02947266958653927, 0.027785303071141243, -0.09145526587963104, + 0.02176702953875065, 0.012816955335438251, 0.01037027407437563, -0.022695079445838928, + -0.02481834962964058, 0.006056942977011204, -0.019517207518219948, 0.03940000757575035, + 0.0008638965082354844, 0.016353394836187363, 0.01936253160238266, -0.013337226584553719, + -0.02241385169327259, -0.042943477630615234, 0.039512500166893005, 0.06023898720741272, + 0.01295756921172142, -0.01656431518495083, 0.0005831081653013825, 0.013358318246901035, + 0.02386217564344406, -0.021007712930440903, 0.039540622383356094, -0.024227771908044815, + -0.057876672595739365, -0.04820244014263153, 0.06974448263645172, 0.016929911449551582, + 0.06310751289129257, -0.0001834571739891544, -0.004882817156612873, 0.07891251146793365, + 0.024044973775744438, 0.011706105433404446, 0.0542769581079483, -0.016015920788049698, + -0.039990589022636414, -0.00020652663079090416, -0.014876948669552803, -0.022245116531848907, + -0.02353876270353794, 0.010278875008225441, -0.04370279237627983, -0.03785325586795807, + -0.07070066034793854, -0.00042381903040222824, -0.019643759354948997, -0.0071923998184502125, + -0.02966952882707119, 0.00288609997369349, 0.004102409817278385, 0.029725775122642517, + 0.005276536103338003, -0.0136325154453516, -0.03343798220157623, 0.008373556658625603, + 0.01460978202521801, -0.0211342666298151, 0.004700019024312496, -0.0008348948904313147, + 0.049299225211143494, -0.016690867021679878, -0.025774523615837097, -0.002490623388439417, + 0.02944454737007618, -0.03380357846617699, 0.01898287422955036, 0.004608619958162308, + -0.03450664505362511, -0.007269737776368856, -0.010813207365572453, -0.0035961999092251062, + 0.012388083152472973, -0.040187448263168335, -0.00951955933123827, -0.059226565062999725, + -0.038162607699632645, 0.07896875590085983, 0.008675876073539257, -0.015889368951320648, + -0.018392296507954597, 0.04100300744175911, -0.016367455944418907, 0.021654536947607994, + 0.013723914511501789, -0.020782731473445892, -0.0260135680437088, -0.00713615445420146, + 0.047246262431144714, -0.02924768626689911, -0.02844618819653988, 0.014919132925570011, + -0.00821888167411089, 0.04238102212548256, 0.03760015219449997, -0.01611435040831566, + 0.03442227840423584, -0.02154204621911049, 0.017843902111053467, -0.031103789806365967, + -0.032088086009025574, 0.03880942985415459, -0.016142472624778748, -0.015945613384246826, + -0.07227553427219391, -0.006007728166878223, 0.018518848344683647, 0.032734911888837814, + 0.014152786694467068, -0.04046867415308952, -0.009906248189508915, 0.014497291296720505, + 0.004629712086170912, 0.011199895292520523, -0.026547901332378387, 0.011066311970353127, + 0.04997417330741882, 0.060126494616270065, -0.020768670365214348, -0.016465885564684868, + -0.0021250273566693068, -0.016648683696985245, -0.01279586274176836, -0.01678929664194584, + -0.025830769911408424, -0.017590796574950218, -0.018968813121318817, -0.028080591931939125, + -0.018125129863619804, -0.01149518508464098, -0.02164047583937645, -0.002720878692343831, + -0.03234119340777397, -0.03962499275803566, -0.013133336789906025, -0.013625484891235828, + -0.01865946128964424, -0.0017137316754087806, -0.0043766070157289505, -0.008408710360527039, + 0.0015898157143965364, 0.04668380692601204, 0.016817420721054077, 0.058551620692014694, + -0.029500791803002357, -0.004967185202986002, 0.04572763293981552, 0.017323629930615425, + -0.006419023498892784, -0.035012856125831604, 0.002306067617610097, 0.017478305846452713, + 0.0477805957198143, -0.01733769103884697, -0.06738217175006866, -0.008401679806411266, + -0.04074990376830101, -0.02986638806760311, 0.0022146685514599085, 0.018771953880786896, + 0.05031164735555649, -0.013316134922206402, 0.0076634567230939865, 0.0041902936063706875, + -0.041115500032901764, 0.06513234972953796, 0.03425354138016701, -0.04434961825609207, + 0.03805011510848999, 0.04311221465468407, 0.027757180854678154, -0.02803840860724449, + -0.007132639177143574, -0.021331125870347023, -0.04060928896069527, -0.012816955335438251, + 0.007276768330484629, -0.027433767914772034, -0.0007628303137607872, 0.03968123719096184, + -0.005754623096436262, -0.01018044538795948, 0.011122558265924454, -0.02363719418644905, + -0.03549094498157501, -0.007410351652652025, -0.027785303071141243, 0.011164742521941662, + 0.04190293699502945, -0.003916096407920122, -0.0012831016210839152, -0.0003882261225953698, + 0.0597890205681324, 0.020121846348047256, -0.016423700377345085, -0.025760462507605553, + -0.017731409519910812, -0.0038563357666134834, -0.017168954014778137, 0.0005593795794993639, + 0.0036454149521887302, -0.010074984282255173, -0.01640963926911354, 0.029950756579637527, + -0.015200360678136349, -0.01718301698565483, -0.024930840358138084, 0.025099577382206917, + 0.0029370724223554134, -0.005846022162586451, 0.04032805934548378, -0.053095802664756775, + -0.006102642510086298, 0.023060675710439682, 0.010953821241855621, -0.014216063544154167, + -0.0013604393461719155, 0.006257317494601011, 0.0039653112180531025, -0.07610023021697998, + -0.017126770690083504, -0.0012057640124112368, 0.030935054644942284, -0.0029528914019465446, + -0.06586354225873947, 0.028080591931939125, -0.008549324236810207, -0.03560343384742737, + -0.0015467526391148567, -0.035209715366363525, -0.01482070330530405, 0.001225098385475576, + -0.012655248865485191, 0.01030699722468853, -0.023623131215572357, 0.002835127292200923, + -0.02919144183397293, 0.0010449369437992573, 0.009561743587255478, 0.006021789275109768, + -0.017872024327516556, 0.014152786694467068, -0.00010540548100834712, -0.010454641655087471, + 0.03731892257928848, 0.05596432462334633, -0.011502215638756752, 0.030906930565834045, + 0.00747362757101655, -0.0327630341053009, 0.01756267435848713, 0.0023007947020232677, + -0.0007470112177543342, 0.009210209362208843, -0.017098648473620415, -0.041115500032901764, + -0.0008471986511722207, -0.017773594707250595, -0.023257534950971603, 0.004425821825861931, + 0.020853038877248764, 0.01348487101495266, -0.0025205037090927362, -0.0001285298785660416, + -0.0450245663523674, 0.005687831435352564, 0.021949827671051025, 0.05098659172654152, + 0.022202931344509125, 0.01408248022198677, -0.008043114095926285, -0.01621278002858162, + -0.029978878796100616, 0.019924987107515335, 0.03279115632176399, -0.009308638982474804, + 0.0009166267118416727, -0.03740329295396805, 0.0460369847714901, 0.0057440767996013165, + 0.007227553520351648, -0.01183265820145607, 0.007600180339068174, 0.04004683345556259, + 0.014862887561321259, 0.01830792799592018, 0.0003078125591855496, 0.006021789275109768, + 0.02356688678264618, -0.013604393228888512, -0.01212091650813818, 0.022484159097075462, + 0.019292224198579788, 0.01939065381884575, -0.029585160315036774, -0.025521419942378998, + 0.060576461255550385, 0.0022129109129309654, 0.029360178858041763, 0.02209044061601162, + -0.02831963635981083, -0.03231307119131088, -0.009097717702388763, 0.025704218074679375, + 0.04668380692601204, -0.0043379380367696285, 0.015594079159200191, -0.0009579320903867483, + 0.03014761582016945, 0.007782978471368551, 0.027827486395835876, 0.012648218311369419, + -0.016353394836187363, -0.007874377071857452, 0.009315669536590576, -0.0647948756814003, + -0.0015616929158568382, 0.029810141772031784, -0.010792115703225136, 0.013210673816502094, + -0.013414564542472363, -0.005374965723603964, -0.01279586274176836, -0.020149968564510345, + -0.014497291296720505, -0.0027665779925882816, -0.046796299517154694, 0.0012400386622175574, + 0.04569951072335243, -0.051492802798748016, 0.0009043230093084276, -0.027982162311673164, + 0.013998111709952354, 0.02966952882707119, -0.012156070210039616, 0.04347781091928482, + -1.3518981177185196e-5, 0.0010115411132574081, -0.016353394836187363, 0.006071004085242748, + -0.017970453947782516, -0.024227771908044815, 0.011895934119820595, -0.013070059940218925, + -0.07728138566017151, 0.024171525612473488, 0.02116238884627819, -0.014553536660969257, + 0.016704928129911423, -0.04524954780936241, -0.0312725268304348, -0.026660392060875893, + 0.025858892127871513, 0.004049679730087519, -0.0022252146154642105, -0.0352659597992897, + -0.02992263436317444, -0.0156362634152174, -0.012444328516721725, -0.019503144547343254, + 0.033016137778759, 0.02193576470017433, -0.017520489171147346, -0.002346494235098362, + 0.0027261516079306602, -0.03490036353468895, 0.005083191674202681, 0.0023746169172227383, + -0.002863250207155943, -0.02584483101963997, 0.03970935940742493, 0.021921703591942787, + -0.016198718920350075, 0.018068883568048477, 0.001817434444092214, -0.04620572179555893, + -0.010960851795971394, -0.03290364891290665, 0.006612367928028107, -0.029163319617509842, + -0.032284945249557495, -0.0034626168198883533, 0.025451112538576126, 0.025662032887339592, + 0.013527055270969868, -0.05340515077114105, -0.0069182030856609344, -0.01280992478132248, + 0.010482764802873135, 0.035687804222106934, -0.013224735856056213, 0.03279115632176399, + 0.02158423140645027, 0.014778519049286842, 0.013611423783004284, -0.03394418954849243, + -0.022174809128046036, 0.01482070330530405, -0.010236690752208233, 0.006570183672010899, + 0.0017225199844688177, -0.003554015886038542, 0.04167795553803444, 0.02681506611406803, + -0.044996440410614014, 0.012606034055352211, 0.0007320709992200136, 0.042943477630615234, + 0.02369343861937523, -0.01730956882238388, -0.0033044260926544666, -0.01711270958185196, + -0.016676805913448334, 0.012627126649022102, -0.033634841442108154, -0.03104754537343979, + -0.009512528777122498, 0.019629698246717453, 0.013351287692785263, -0.003898519789800048, + -0.0066756438463926315, -0.0029933180194348097, -0.01718301698565483, 0.01903911866247654, + -0.042015425860881805, -0.044462110847234726, 0.020768670365214348, 0.004119986668229103, + 0.029360178858041763, -0.01593155227601528, 0.0050620995461940765, -0.010103107430040836, + 0.022681018337607384, 0.01059525553137064, 0.05067724362015724, -0.004000464919954538, + 0.014398861676454544, 0.01615653559565544, 0.0010256024543195963, -0.0337754525244236, + 0.0049144551157951355, 0.027377523481845856, 0.062151335179805756, -0.00747362757101655, + -0.017323629930615425, 0.014054357074201107, -0.02273726463317871, -0.0036454149521887302, + 0.004555889870971441, 0.0038352436386048794, -0.017393937334418297, -0.002669906010851264, + -0.04010307788848877, -0.05531750246882439, -0.009723450057208538, 0.027855610474944115, + -0.002471288898959756, -0.03324112296104431, 0.012528697028756142, -0.02176702953875065, + -0.017295507714152336, 0.0003060548915527761, 0.01631120964884758, -0.023102860897779465, + -0.06445740163326263, -0.023749684914946556, -0.013027875684201717, -0.04550265148282051, + -0.023946544155478477, 0.015537833794951439, 0.008338402956724167, 0.0031005360651761293, + 0.057876672595739365, -0.03487224131822586, 0.019320346415042877, 0.006014758720993996, + -0.02706817165017128, 0.003750875359401107, 0.0010572406463325024, -0.019179733470082283, + 0.027700934559106827, 0.029528914019465446, 0.007097485475242138, 0.024410570040345192, + -0.01656431518495083, 0.017168954014778137, -0.03456289321184158, -0.03537845239043236, + -0.028108714148402214, -0.005754623096436262, 0.02941642329096794, -0.019320346415042877, + -0.031385019421577454, -3.257188654970378e-5, -0.005055068992078304, -0.0021900611463934183, + 0.009062564931809902, 0.032988015562295914, -0.0075439345091581345, -0.00928051583468914, + -0.04058116674423218, -0.0018859836272895336, -0.0017383390804752707, 0.008830551989376545, + 0.017604857683181763, -0.008907889015972614, 0.0290227048099041, 0.04094676300883293, + 0.03175061568617821, -0.04229665547609329, -0.0227653868496418, -0.008457925170660019, + 0.009871094487607479, 0.0034977702889591455, -0.016803359612822533, -0.018898505717515945, + 0.004179747775197029, -0.01020856760442257, -0.026983803138136864, -0.024649612605571747, + -0.02771499566733837, 0.03124440461397171, 0.0031550240237265825, 0.0029687106143683195, + 0.012964599765837193, 0.04007495567202568, -0.029838265851140022, -0.016578376293182373, + -0.005568309687077999, 0.006042881403118372, -0.039315640926361084, 0.039962463080883026, + -0.0002139967546099797, 0.0078181317076087, 0.0041902936063706875, -0.046740055084228516, + 0.012036547996103764, -0.011825627647340298, 0.032931771129369736, 0.049242980778217316, + 0.030007002875208855, 0.013280981220304966, -0.003691114252433181, -0.021752966567873955, + 0.009892186149954796, 0.012591972947120667, 0.041284237056970596, 0.03214433416724205, + -0.01290835440158844, -0.011502215638756752, -0.017492366954684258, 0.0017989788902923465, + 0.011959210969507694, -0.00839464832097292, -0.013815313577651978, 0.026182305067777634, + -0.0026154182851314545, -0.009477376006543636, 0.010412457399070263, 0.020276522263884544, + -0.009449252858757973, -0.012451359070837498, -0.020796792581677437, -0.018406357616186142, + -0.008563385345041752, 0.020192153751850128, -0.004735172260552645, -0.024326201528310776, + 0.011228018440306187, -0.0075861187651753426, 0.022793510928750038, 0.0028720383998006582, + 0.009097717702388763, 0.003559288801625371, 0.02841806598007679, 0.02398872748017311, + 0.006760012358427048, -0.0005092858918942511, -0.024199649691581726, -0.024298079311847687, + 0.0015783908311277628, 0.015945613384246826, 0.019896864891052246, 0.005547217559069395, + -0.02148580178618431, 0.014019204303622246, -0.011790473945438862, 0.030428843572735786, + -0.0017251565586775541, 0.003191935131326318, -0.08223100006580353, -0.030850686132907867, + 0.0053257509134709835, 0.006837349850684404, -0.03335361182689667, -0.02045932039618492, + 0.01576281525194645, 0.037234555929899216, -0.003877427661791444, -0.004295754246413708, + 0.00011732470738934353, -0.011312386952340603, -0.015003501437604427, -0.028361819684505463, + 0.026252610608935356, -0.0053046587854623795, -0.0034678897354751825, -0.0006011243676766753, + -0.004418791271746159, 0.004942577797919512, -0.043337199836969376, -0.030428843572735786, + 0.014680089429020882, -0.013688761740922928, -0.0156362634152174, -0.02344033308327198, + -0.013520024716854095, 5.500968836713582e-5, 0.029528914019465446, 0.0006169434054754674, + 0.016240904107689857, -0.004109440837055445, -0.010672593489289284, 0.014680089429020882, + -0.04342156648635864, -0.006974448449909687, -0.004028587602078915, -0.009013350121676922, + -0.00474571855738759, -0.022034194320440292, -0.05498002842068672, -0.0036278381012380123, + 0.00041019704076461494, 0.006665098015218973, -0.030935054644942284, -0.020220275968313217, + -0.030456965789198875, -0.009449252858757973, 0.015565956942737103, -0.008739152923226357, + -0.023679377511143684, 0.015875307843089104, 0.009871094487607479, 0.029557038098573685, + 0.011080374009907246, -0.007403320632874966, 0.024551182985305786, 0.010264812968671322, + 0.017225200310349464, 0.030288230627775192, -0.0377688892185688, -0.01319661270827055, + 0.04235289990901947, 0.06951950490474701, 0.005026946309953928, 0.02799622341990471, + -0.02561984956264496, -0.010391365736722946, -0.05849537253379822, -0.019728127866983414, + 0.03197559714317322, 0.021556107327342033, 0.017000218853354454, -0.025999506935477257, + 0.023482518270611763, 0.0045629204250872135, -0.011073343455791473, 0.02453712187707424, + -0.0005418028449639678, 0.009892186149954796, -0.015130053274333477, 0.014694150537252426, + -0.0296414066106081, 0.03686895966529846, -0.0017515216022729874, 0.05410822108387947, + -0.014314493164420128, 0.009160994552075863, 0.005719469394534826, 0.03144126385450363, + -0.01593155227601528, -0.006475269328802824, -0.018406357616186142, -0.06113891676068306, + 0.04980543628334999, -0.005708923563361168, 0.013836406171321869, -0.011551430448889732, + -0.010482764802873135, 0.010510887950658798, 0.006127249915152788, 0.020051538944244385, + -0.023595008999109268, 0.014919132925570011, 0.006907656788825989, -0.01678929664194584, + -0.019868740811944008, 0.0038739123847335577, 0.011776412837207317, 0.01353408582508564, + -0.0014122906140983105, -0.011635798960924149, -7.86009622970596e-5, -0.007501750718802214, + 0.016465885564684868, 0.030231984332203865, -0.0003910823434125632, 0.011966241523623466, + 0.0070482706651091576, -0.028882091864943504, 0.001054604072123766, -0.006946325767785311, + -0.021471738815307617, 0.04910236597061157, 0.0032675149850547314, 0.01695803366601467, + 0.02308879978954792, -0.002710332628339529, 0.010904606431722641, -0.03141314163804054, + -0.031834982335567474, 0.017014279961586, -0.022877877578139305, -0.04035618528723717, + -0.043393444269895554, 0.01933440938591957, 0.017253322526812553, 0.033156752586364746, + 0.002133815549314022, -0.012606034055352211, -0.00032209366327151656, 0.015945613384246826, + 0.013843436725437641, 0.012247469276189804, -0.016817420721054077, 0.046093229204416275, + 0.03450664505362511, 0.007593149784952402, 0.003075928660109639, 0.03101942129433155, + 0.010131229646503925, -0.010827268473803997, 0.0004600710526574403, 0.01846260204911232, + -0.009871094487607479, -0.00016939578927122056, 0.004119986668229103, 0.028375880792737007, + 0.02941642329096794, 0.0066756438463926315, 0.012036547996103764, -0.05666739493608475, + 0.017520489171147346, 0.0009535378776490688, 0.01996717043220997, -0.012613065540790558, + -0.010314027778804302, -0.01539721991866827, 0.0034098864998668432, 0.01598779857158661, + -0.005357388872653246, -0.00821888167411089, -0.0062362258322536945, -0.0027384553104639053, + 0.006907656788825989, 0.041115500032901764, -0.03490036353468895, -0.02876959927380085, + 0.007403320632874966, 0.0005659708986058831, -0.016972094774246216, 0.013618454337120056, + -0.026336979120969772, -0.0010352696990594268, -0.021626414731144905, 0.018476663157343864, + -0.044715214520692825, -0.02594326063990593, -0.013815313577651978, 9.299191151512787e-5, + -0.006222164258360863, 0.01529879029840231, 0.009610958397388458, -5.599837822956033e-5, + -0.019826557487249374, -0.016901789233088493, 0.0022181840613484383, -0.009976554661989212, + 0.027630627155303955, -0.015130053274333477, 0.01708458736538887, -0.02947266958653927, + 0.01217013131827116, -0.0013692276552319527, 0.012823985889554024, -0.0005092858918942511, + 0.013372380286455154, 0.010581194423139095, 0.005782745778560638, -0.014483229257166386, + 0.012627126649022102, 0.0007641485426574945, 0.033634841442108154, -0.0007166913710534573, + 0.016648683696985245, -0.010440580546855927, -0.004759779665619135, -0.005884690675884485, + 0.015467527322471142, -0.010925698094069958, -0.0205155648291111, 0.048146191984415054, + 0.01830792799592018, 0.017450181767344475, 0.013428625650703907, -0.015031623654067516, + -0.024649612605571747, 0.0008225911878980696, -0.0024765620473772287, -0.005181621294468641, + -0.015903430059552193, 0.00671782810240984, 0.0052062286995351315, 0.01377312932163477, + 0.002154907677322626, -0.0008072115597315133, -0.03357859328389168, 0.0043976991437375546, + -0.013098183088004589, -0.01070774719119072, 0.00532926619052887, 0.004067256581038237, + -0.019053181633353233, 0.008626661263406277, -0.014891009777784348, -0.011776412837207317, + -0.009793756529688835, -0.0017321872292086482, 0.014891009777784348, -0.020121846348047256, + -0.026111997663974762, -0.022554466500878334, 0.0051394375041127205, -0.012395113706588745, + 0.0014975378289818764, 0.0013885620282962918, -0.028347758576273918, 0.008211850188672543, + 0.04741499945521355, -0.01598779857158661, 0.018518848344683647, 0.001421957858838141, + -0.026449471712112427, 0.0237637460231781, 0.008134513162076473, -0.03625025972723961, + -0.000981660676188767, -0.013330196030437946, 0.04620572179555893, 0.0009675992769189179, + -0.017225200310349464, -0.003740329295396805, -0.022695079445838928, -0.0057440767996013165, + -0.0030987784266471863, 0.00865478441119194, -0.006042881403118372, -0.014110603369772434, + -0.009892186149954796, -0.005737046245485544, -0.014244185760617256, -0.007860315963625908, + 0.006781104486435652, -0.04344968870282173, -0.013372380286455154, -0.03968123719096184, + -0.010925698094069958, -0.005768684670329094, 0.00021201936760917306, 7.9205165093299e-5, + 0.02058587223291397, 0.03262241929769516, 0.04454647749662399, 0.0012751921312883496, + 0.023960605263710022, -0.008767275139689445, 0.013351287692785263, 0.013224735856056213, + 0.005610493943095207, -0.033859822899103165, -0.002720878692343831, -0.021021775901317596, + -0.010918667539954185, 0.0014861129457131028, 0.020473381504416466, -0.045783881098032, + 0.0061377957463264465, 0.005543702282011509, -0.026083875447511673, 0.00671782810240984, + 0.02176702953875065, 0.01284507755190134, -0.012725556269288063, -0.022259177640080452, + -0.019151611253619194, 0.01176938135176897, -0.031610000878572464, 0.012106855399906635, + 0.009983585216104984, 0.004186778329312801, -0.005874144844710827, -0.0005848658620379865, + -0.029107073321938515, 0.009899217635393143, -0.05180215463042259, 0.01252166647464037, + -0.006868988275527954, 0.0038809431716799736, -0.004861725028604269, 0.007825162261724472, + -0.004932031966745853, 0.013252858072519302, 0.016620561480522156, 0.008577446453273296, + -0.0034995279274880886, 0.0025978414341807365, -0.0005084070726297796, 0.00807826779782772, + 0.024396508932113647, -0.0034204325638711452, 0.011410816572606564, -0.022006072103977203, + 0.025324560701847076, 0.0015836638631299138, 0.020445257425308228, -0.027630627155303955, + 0.0025310497730970383, -0.008486047387123108, -0.03467538207769394, 0.015326913446187973, + 0.001086242264136672, -0.00047545068082399666, -0.011551430448889732, -0.008071236312389374, + -0.024382447823882103, -0.0015757542569190264, -0.012184192426502705, 0.01775953359901905, + 0.011860780417919159, -0.005962028633803129, -0.03917502611875534, 0.007895469665527344, + 0.017014279961586, -0.0016680321423336864, 0.025760462507605553, -0.009484406560659409, + -0.03580029308795929, 0.0011064554564654827, 0.0005026946309953928, 0.012142008170485497, + -0.032931771129369736, -0.01549564953893423, -0.009596897289156914, -0.00019773826352320611, + 0.012205285020172596, -0.002448439132422209, 0.0010959093924611807, 0.03461913764476776, + 0.0215139240026474, -0.02081085368990898, 1.4088851457927376e-5, 0.010749931447207928, + 0.020107785239815712, 0.008043114095926285, 0.026801005005836487, -0.023370027542114258, + 0.01978437229990959, -0.004067256581038237, 0.02816496044397354, -0.014905070886015892, + -0.039259396493434906, -0.00011545718007255346, -0.03616588935256004, -0.00642253877595067, + -0.027658751234412193, -0.037290800362825394, 0.006686190143227577, -0.0021355734206736088, + 0.006724858656525612, -0.0052870819345116615, 0.012767740525305271, -0.03056945838034153, + -0.025212068110704422, -0.0009043230093084276, 0.0013015571748837829, -0.015369096770882607, + -0.023355966433882713, -0.00802905298769474, -0.01576281525194645, -0.0017567946342751384, + 0.027560319751501083, -0.030681949108839035, 0.006485815159976482, -0.008950073271989822, + -0.02816496044397354, 0.017028341069817543, 0.03194747492671013, 0.02924768626689911, + 0.024452753365039825, 0.0026962710544466972, -7.816154538886622e-5, 0.015256606042385101, + -0.04046867415308952, 0.004468006081879139, 0.014455107040703297, -0.0029511337634176016, + 0.008647753857076168, -0.008324341848492622, 0.051099084317684174, -0.023552825674414635, + -0.03796574845910072, -0.049242980778217316, 0.015003501437604427, 0.0068408651277422905, + 0.030935054644942284, 0.014525413513183594, -0.01791420765221119, -0.014876948669552803, + 0.004608619958162308, -0.030288230627775192, 0.009857033379375935, -0.04645882546901703, + -0.00642253877595067, 0.01683148182928562, -0.016353394836187363, 0.022006072103977203, + -0.005582371260970831, -0.009885155595839024, 0.019826557487249374, 0.042212288826704025, + -0.007347075268626213, 0.013857497833669186, 0.035856541246175766, -0.018125129863619804, + 0.003063624957576394, 0.02944454737007618, -0.00610967306420207, -0.044687092304229736, + 0.004886332433670759, 0.006995540577918291, 0.013512994162738323, 0.021373309195041656, + 0.0038317283615469933, -0.05416446551680565, -0.006601821631193161, 0.015565956942737103, + -0.01266931090503931, 0.033381734043359756, 0.007853285409510136, 0.014194970950484276, + -0.005719469394534826, -0.005399573128670454, -0.012922415509819984, 0.050845980644226074, + -0.04921485856175423, 0.006141311023384333, -0.016901789233088493, -0.0201359074562788, + 0.010623378679156303, -4.122293830732815e-5, 0.011586584150791168, 0.021078020334243774, + -0.006580729503184557, -0.03844383358955383, -0.0007878771284595132, 0.02992263436317444, + 0.017604857683181763, -7.73925639805384e-5, -0.024930840358138084, -0.01653619296848774, + 0.00807826779782772, 0.009139901958405972, 0.024002788588404655, 0.03605340048670769, + 0.015889368951320648, 0.026801005005836487, 0.001059877104125917, -0.0006683553801849484, + -0.044293373823165894, 0.0037051758263260126, 0.008471986278891563, -0.015945613384246826, + 0.05320829153060913, -0.026196366176009178, -0.005789776332676411, -0.026210427284240723, + 0.002522261580452323, -5.503715146915056e-5, 0.00899225752800703, -0.026055751368403435, + 0.0029370724223554134, -0.005673769861459732, 0.04370279237627983, 0.02588701620697975, + -0.009660173207521439, 0.024354323744773865, -0.05213962867856026, -0.02254040539264679, + 0.018195435404777527, -0.021218635141849518, -0.002724393969401717, 0.028432127088308334, + 0.01020856760442257, -0.024776166304945946, -0.0012874958338215947, 0.01566438563168049, + 0.022399790585041046, -0.0071045164950191975, -0.012261530384421349, -0.021443616598844528, + -0.011270202696323395, 0.0019105911487713456, 0.02424183301627636, 0.01718301698565483, + 0.013955927453935146, 0.0025802648160606623, 0.002348251873627305, 0.011488153599202633, + -0.008732122369110584, 0.016592437401413918, -0.02732127718627453, -0.016690867021679878, + -0.039512500166893005, -0.0019088333938270807, -0.014497291296720505, 0.015903430059552193, + 0.02093740738928318, -0.004239508416503668, 0.015214421786367893, 0.020332766696810722, + -0.022343546152114868, 0.02006560005247593, 0.012767740525305271, -0.001448323018848896, + -0.011087404564023018, -0.002351767150685191, -0.015214421786367893, -0.0058038379065692425, + -0.006513937842100859, 0.02584483101963997, 0.007452535443007946, 0.011213957332074642, + 0.018701646476984024, 0.02691349759697914, -0.0003888852661475539, -0.0069006262347102165, + 0.015369096770882607, -0.010574163869023323, -0.0019932016730308533, -0.014834764413535595, + 0.004932031966745853, -0.005332781467586756, -0.007101000752300024, -0.0012127946829423308, + -0.023876236751675606, -0.017590796574950218, 0.018926627933979034, 0.03785325586795807, + 0.00958283618092537, -0.006120219361037016, -0.025071455165743828, -0.021823273971676826, + 0.011959210969507694, 0.08296219259500504, -0.024354323744773865, -0.010503856465220451, + -0.024129342287778854, -0.018392296507954597, 0.04148109629750252, -0.0016653956845402718, + -0.02341221086680889, -0.011129588820040226, 0.019700003787875175, -0.02353876270353794, + 0.004081317689269781, 0.0014456864446401596, -0.013737976551055908, -0.01881413720548153, + 0.005888206418603659, 0.02793997898697853, -0.006833834573626518, -0.0056386166252195835, + -0.002733182394877076, -0.015101931057870388, 0.0038387589156627655, 0.03307238593697548, + -0.0027472437359392643, 0.02549329586327076, -0.014581659808754921, -0.006584244780242443, + 0.021429555490612984, -0.006802196614444256, 0.03312863036990166, 0.010813207365572453, + ], + index: 2, + }, + { + title: "The 80s: A Look Back at the Tumultuous Decade 1980-1989", + text: "The 80s: A Look Back at the Tumultuous Decade 1980-1989 is a humor book published in 1979.It was edited by Tony Hendra, Christopher Cerf and Peter Elbling, with art direction by Michael Gross. Contributors to the book included Henry Beard, Valerie Curtin, Amy Ephron, Jeff Greenfield, Abbie Hoffman, Sean Kelly, B.", + vector: [ + -0.00752367964014411, -0.0036515758838504553, -0.04269421845674515, -0.051015473902225494, + -0.01003402378410101, -0.06568793952465057, -0.009151911363005638, 0.026492761448025703, + -0.03531388193368912, 0.05613172426819801, 0.01989162340760231, 0.009004892781376839, + 0.009732634760439396, 0.048427946865558624, -0.021861674264073372, -0.04534055292606354, + -0.03152079880237579, -0.0022604118566960096, 0.02966836467385292, 0.01473862025886774, + 0.02199399098753929, 0.004836913663893938, -0.07174510508775711, -0.018553754314780235, + -0.012084933929145336, 0.012423076666891575, 0.019303549081087112, 0.026816202327609062, + -0.009887004271149635, 0.04525234177708626, 0.008291852660477161, 0.00430029584094882, + 0.04181210696697235, -0.007240668870508671, -0.03649003058671951, 0.015951523557305336, + -0.026875009760260582, 0.06004241853952408, -0.00876966305077076, -0.04772225767374039, + 0.030491668730974197, -0.01959758624434471, -0.009129858575761318, -0.01708356849849224, + -0.010945538990199566, -0.027786526829004288, -0.02728666178882122, -0.02240564301609993, + 0.00441055977717042, -0.013841806910932064, 0.013937368988990784, -0.021846972405910492, + 0.011798246763646603, -0.010600045323371887, -0.01692184805870056, -0.016598407179117203, + 0.03290277719497681, 0.008262448944151402, -0.0019094047602266073, -0.06509985774755478, + 0.005807236768305302, -0.012974396347999573, 0.029242010787129402, -0.012621551752090454, + 0.05033918842673302, 0.02434629015624523, -0.023287754505872726, 0.04657550901174545, + -0.0026977923698723316, 0.02516959421336651, 0.025845879688858986, 0.00739503838121891, + 0.05172116309404373, 0.03507865220308304, 0.05889567360281944, -0.0013718678383156657, + -0.016730723902583122, 0.035990167409181595, -0.07309767603874207, -0.03402011841535568, + -0.008938734419643879, -0.03748975694179535, -0.009600318036973476, -0.016098542138934135, + -0.036107782274484634, -0.009365088306367397, 0.027742421254515648, -0.07192152738571167, + 0.0064541189931333065, 0.050809647887945175, 0.0504273995757103, -0.011445402167737484, + 0.023537686094641685, -0.013805052265524864, 0.02250855602324009, -0.02512548863887787, + 0.009695880115032196, 0.045722801238298416, 0.019171232357621193, -0.040459536015987396, + 0.02480204775929451, 0.018318524584174156, -0.018303822726011276, -0.014415179379284382, + 0.03431415557861328, -0.02744838409125805, -0.04869258031249046, 0.020464997738599777, + 0.03940099850296974, 0.046310875564813614, -0.0014692676486447453, -0.041077014058828354, + -0.015628082677721977, 0.007747883442789316, -0.019303549081087112, 0.023199543356895447, + 0.028683340176939964, 0.004006258212029934, -0.028154073283076286, 0.0345199815928936, + 0.0016355825355276465, -0.019038915634155273, 0.025346016511321068, 0.0859765112400055, + 0.01470921654254198, 0.01709827035665512, -0.020641420036554337, -0.02743368223309517, + -0.015789803117513657, -0.009717932902276516, -0.025934090837836266, 0.020714929327368736, + 0.03657824173569679, 0.04763404652476311, 0.005255917087197304, 0.008387414738535881, + 0.006009387783706188, -0.030462265014648438, 0.03210887312889099, -0.021832270547747612, + -0.0014113790821284056, 0.06268875300884247, 0.06509985774755478, -0.015936821699142456, + -0.03534328565001488, -0.0394304022192955, -0.005741078406572342, 0.06198306754231453, + -0.020729631185531616, -0.008380063809454441, -0.025875283405184746, -0.008402116596698761, + 0.03757796809077263, 0.0012165793450549245, -0.027757123112678528, -0.003335485700517893, + -0.027727719396352768, -0.0016962277004495263, -0.00213177059777081, 0.007214940618723631, + -0.03696049004793167, 0.008203641511499882, -0.026345742866396904, -0.010526536032557487, + 0.025566544383764267, -0.05769012123346329, 0.0026996301021426916, 0.007192887831479311, + 0.00843887124210596, 0.0298300851136446, 0.03963622823357582, -0.0027676261961460114, + -0.004844264592975378, 0.004612710326910019, -0.00020525182480923831, 0.04948648065328598, + 0.009784091264009476, 0.021523531526327133, 0.024213973432779312, -0.015775101259350777, + -0.00216117431409657, 0.03210887312889099, -0.013812403194606304, -0.03002120926976204, + -0.02469913475215435, -0.02758070081472397, 0.02246445044875145, 0.02469913475215435, + 0.02733076922595501, -0.038254253566265106, 0.020553208887577057, 0.0038482132367789745, + -0.000869247829541564, 0.0450759194791317, 0.001313060405664146, -0.0033998063299804926, + -0.030491668730974197, -0.00868145190179348, -0.0657467469573021, -0.04728119820356369, + -0.021214792504906654, 0.00747957406565547, 0.03443177044391632, -0.020729631185531616, + 0.01490769162774086, 0.051015473902225494, -0.023552387952804565, 0.005402935668826103, + -0.032961584627628326, -0.003239923622459173, 0.04413500055670738, -0.04731060564517975, + -0.013327240943908691, 0.01971520110964775, -0.061042144894599915, 0.009835547767579556, + 0.018936002627015114, 0.012121688574552536, 0.05971897765994072, 0.00745384581387043, + 0.018744878470897675, -0.007615566253662109, -0.007211265154182911, 0.018612561747431755, + -0.05613172426819801, -0.010247200727462769, -0.023611195385456085, 0.028198178857564926, + 0.0016704994486644864, -0.033049795776605606, -0.0006684754625894129, 0.023978743702173233, + -0.047869276255369186, 0.004109171684831381, 0.025522438809275627, 0.06939280778169632, + -0.03469640389084816, -0.0067224279046058655, 0.004822211805731058, 0.06245352700352669, + 0.060806915163993835, -0.003012044820934534, -0.04181210696697235, -0.014598952606320381, + 0.06480582058429718, -0.013731542974710464, -0.005252241622656584, -0.02489025890827179, + -0.036107782274484634, -0.014135844074189663, 0.01975930668413639, 0.009225420653820038, + 0.03003591112792492, 0.008343309164047241, 0.0355491116642952, 0.020803140476346016, + 0.018200909718871117, 0.009784091264009476, -0.02208220213651657, 0.018245015293359756, + -0.0009482703171670437, 0.013158169575035572, -0.00215749884955585, 0.008181587792932987, + -0.011915862560272217, 0.012974396347999573, -0.008431520313024521, -0.04207674041390419, + -0.010306008160114288, -0.08938734233379364, -0.021846972405910492, -0.043517522513866425, + 0.023273052647709846, 0.016010330989956856, 0.012540691532194614, 0.038842327892780304, + 0.003412670688703656, 0.03234410285949707, -0.0038004321977496147, 0.02218511514365673, + 0.0449289008975029, -0.014466635882854462, -0.028859762474894524, -0.03257933259010315, + -0.006773884408175945, 0.028256986290216446, 0.00015184270159807056, -0.053132541477680206, + -0.0299771036952734, -0.0035486628767102957, 0.00876231212168932, 0.02212630771100521, + 0.01470186561346054, 0.04207674041390419, 0.0038114585913717747, -0.0016686617163941264, + 0.020920755341649055, -0.0022530609276145697, -0.057954754680395126, 0.018392033874988556, + 0.07121583819389343, 0.043664541095495224, -0.05195639282464981, 0.014540145173668861, + -0.04469367116689682, 0.009982566349208355, 0.0008504110155627131, 0.05016276612877846, + -0.028359899297356606, -0.03763677552342415, -0.031167956069111824, 0.015378151088953018, + -0.028359899297356606, -0.0501333624124527, 0.04201793298125267, -0.009945811703801155, + 0.0589250773191452, -0.02446390502154827, -0.0009932947577908635, -0.029183203354477882, + 0.05713145062327385, -0.030991533771157265, -0.061277374625205994, 0.006233591120690107, + 0.011121961288154125, -0.019141828641295433, 0.06001301482319832, -0.007211265154182911, + -0.025787072256207466, 0.015289939939975739, -0.05283850431442261, 0.046399086713790894, + -0.043546926230192184, 0.04745762422680855, 0.0009602155769243836, 0.0037857303395867348, + -0.055631861090660095, -0.0025029927492141724, -0.023170139640569687, 0.010283955372869968, + 0.024228675290942192, 0.04654610529541969, 0.002914644777774811, 0.033049795776605606, + 0.015348747372627258, -0.08774073421955109, -0.014194651506841183, 0.01978871040046215, + -0.007997814565896988, -0.026081109419465065, 0.0007677130633965135, -0.02743368223309517, + 0.005252241622656584, -0.017906872555613518, 0.011408647522330284, 0.02511078678071499, + 0.021685251966118813, -0.050868455320596695, 0.04869258031249046, 0.03010942041873932, + 0.009938460774719715, -0.046193260699510574, 0.020582612603902817, 0.031285569071769714, + -0.021023668348789215, -0.0392833836376667, -0.05771952494978905, -0.03425534814596176, + -0.033079199492931366, -0.016363175585865974, 0.015319343656301498, -0.036254800856113434, + -0.07356813549995422, -0.019009511917829514, 0.020670823752880096, 0.0346670001745224, + -0.004917773883789778, -0.0174070093780756, 0.005391909275203943, 0.014518092386424541, + -0.027668911963701248, -0.003482504514977336, 0.03269694745540619, 0.01485623512417078, + -0.014326968230307102, -0.01743641309440136, -0.04145926237106323, 0.041106417775154114, + 0.002403754973784089, -0.019303549081087112, 0.004671517759561539, -0.021200090646743774, + -0.08174237608909607, -0.021802866831421852, -0.041106417775154114, -0.018803685903549194, + -0.012621551752090454, 0.06280636787414551, 0.022979015484452248, 0.030932726338505745, + -0.006689348723739386, 0.033432044088840485, 0.012136390432715416, -0.0012689548311755061, + 0.00747222313657403, 0.020523805171251297, -0.00426354119554162, -0.035813745111227036, + 0.0177745558321476, 0.0449289008975029, -0.014143195003271103, -0.002001291373744607, + -0.017950978130102158, 0.005138302221894264, 0.009460650384426117, 0.06221829727292061, + -0.022831996902823448, 0.025772370398044586, 0.048604369163513184, 0.00742811756208539, + 0.012136390432715416, 0.03710750862956047, 0.026669183745980263, -0.03413773328065872, + -0.023361263796687126, 0.018818387761712074, -0.010725011117756367, -0.03707810491323471, + 0.022846698760986328, -0.01483418233692646, 0.002881565596908331, -0.001524399733170867, + -0.012871483340859413, -0.023919936269521713, 0.011687982827425003, -0.04201793298125267, + -0.02280259318649769, 0.018142102286219597, 0.03513745963573456, 0.03531388193368912, + 0.022920208051800728, -0.004020960070192814, -0.04010669142007828, 0.021464724093675613, + -0.02499317191541195, 0.0012367944000288844, -0.04275302588939667, 0.001747684320434928, + 0.0201562587171793, -0.0401654988527298, -0.006321802269667387, -0.02762480638921261, + -0.009372439235448837, 0.045840416103601456, 0.02719845063984394, 0.02439039573073387, + 0.009857600554823875, -0.04698716104030609, 0.016466090455651283, -0.009600318036973476, + -0.004542876500636339, 0.03969503566622734, 0.016569003462791443, -0.04904542490839958, + -0.04672252759337425, -0.05630814656615257, 0.005292671732604504, 0.023390667513012886, + -0.028551023453474045, 0.020935457199811935, -0.000878436490893364, 0.012989098206162453, + -0.07386217266321182, 0.0496923066675663, 0.05627874284982681, -0.050545014441013336, + 0.004495095461606979, 0.0005517794052138925, -0.05621993541717529, -0.020450295880436897, + 0.02194988541305065, -0.009997268207371235, -0.009504755958914757, -0.04137105122208595, + 0.010695607401430607, -0.005979984067380428, -0.010658852756023407, -0.025992898270487785, + 0.000879814790096134, 0.025360718369483948, 0.02468443289399147, 0.03193245083093643, + -0.03178543224930763, -0.009960513561964035, -0.0022457099985331297, 0.015422256663441658, + -0.0017044974956661463, 0.017892170697450638, 0.031461991369724274, -0.03431415557861328, + -0.013319890014827251, 0.02969776839017868, 0.001487645087763667, 0.03816604241728783, + -0.0014012715546414256, -0.07786107808351517, -0.0067297788336873055, -0.03781319782137871, + -0.005281645338982344, 0.00846827495843172, 0.002598554827272892, 0.043370503932237625, + -0.010827924124896526, 0.002442347351461649, -0.018230313435196877, -0.01723058708012104, + -0.0026830905117094517, -0.018950704485177994, 0.009276877157390118, -0.055426035076379776, + 0.04669312387704849, -0.007659671828150749, 0.04869258031249046, 0.02489025890827179, + -0.005998361390084028, 0.012217250652611256, 0.011166066862642765, 0.01495914813131094, + -0.018524350598454475, -0.0015685053076595068, 0.015422256663441658, 0.007828743197023869, + 0.024125762283802032, -0.01512821950018406, -0.0017927087610587478, 0.00868880283087492, + 0.03193245083093643, 0.04992753639817238, 0.03725452721118927, -0.06404132395982742, + -0.02458151988685131, -0.027933545410633087, -0.05669039487838745, -0.03152079880237579, + -0.016304368153214455, -0.032961584627628326, 0.004156952723860741, 0.011754141189157963, + -0.03000650741159916, -0.020435594022274017, -0.005230188835412264, 0.007821392267942429, + -0.010467728599905968, 0.023670004680752754, -0.029344923794269562, -0.013452206738293171, + 0.0010034022852778435, 0.016260262578725815, 0.026860307902097702, 0.009526808746159077, + 0.029065588489174843, 0.026904413476586342, -0.028830358758568764, 0.04513472691178322, + -0.03269694745540619, -0.04266481474041939, 0.011276330798864365, 0.02202339470386505, + -0.04751643165946007, 0.026213426142930984, 0.038695309311151505, 0.02506668120622635, + 0.009012243710458279, -0.03487282618880272, -0.04442903771996498, 0.04407619312405586, + -0.008960787206888199, -0.03796021640300751, -0.01354776881635189, -0.03381429240107536, + 0.010519185103476048, -0.030815109610557556, 0.021288301795721054, 0.004171654582023621, + 0.005616112612187862, 0.06592316925525665, -0.019332952797412872, -0.012989098206162453, + -0.011041101068258286, 0.038930539041757584, -0.02750719152390957, -0.01701005920767784, + -0.014010878279805183, -0.004024635534733534, 0.01978871040046215, -0.0169659536331892, + -0.018245015293359756, -0.020553208887577057, 0.034225944429636, -0.005527901463210583, + -0.00040315272053703666, -0.006505575496703386, 0.004498770926147699, -0.0016181240789592266, + -0.00875496119260788, -0.008909330703318119, 0.016025032848119736, -0.018788984045386314, + 0.019347654655575752, -0.02242034487426281, -0.012790623120963573, 0.011665930040180683, + -0.03810723498463631, 0.016421984881162643, -0.026360444724559784, -0.06262994557619095, + -0.02940373122692108, 0.02003864385187626, 0.03178543224930763, 0.025728264823555946, + -0.011511560529470444, 0.026816202327609062, 0.018318524584174156, 0.01958288438618183, + 0.016789531335234642, 0.005351479165256023, -0.031256165355443954, 0.046252068132162094, + -0.011386594735085964, -0.02477264404296875, -0.002390890847891569, 0.018788984045386314, + -0.035725533962249756, 0.01699535734951496, 0.031050341203808784, 0.0007782800239510834, + 0.006079221609979868, -0.02949194237589836, -0.023258350789546967, -0.0003533042035996914, + -0.0004654059302993119, -0.0005242134211584926, -0.05989539995789528, 0.05039799585938454, + -0.027771824970841408, -0.038607098162174225, 0.0438997708261013, 0.029300818219780922, + -0.004954528529196978, 0.021655848249793053, -0.016657214611768723, 0.002558124717324972, + 0.020391488447785378, 0.009431246668100357, 0.0014720242470502853, -0.016583705320954323, + -0.0031020937021821737, 0.0147680239751935, 0.0050537665374577045, 0.01497384998947382, + -0.014407828450202942, -0.03254992887377739, -0.0014527280582115054, -0.028521619737148285, + 0.025243103504180908, -0.009379790164530277, -0.003679141867905855, 0.02209690399467945, + 0.026683885604143143, 0.02240564301609993, -0.026272233575582504, 0.031109148636460304, + -0.033667273819446564, 0.002379864454269409, -0.01004137471318245, -0.014275511726737022, + 0.003973179031163454, 0.03428475186228752, -0.015745697543025017, -0.02711023949086666, + -0.00869615375995636, 0.02981538325548172, -0.06198306754231453, 0.03290277719497681, + -0.03937159478664398, -0.0016365014016628265, 0.009629721753299236, -0.00746119674295187, + 0.004050363786518574, 0.002039883751422167, -0.03787200525403023, -0.025287209078669548, + -0.040430132299661636, 0.020656121894717216, 0.02981538325548172, -0.053838230669498444, + -0.018450841307640076, -0.033373236656188965, -0.02489025890827179, 0.02002394199371338, + 0.005101547576487064, 0.006255643907934427, -0.014326968230307102, 0.053808826953172684, + -0.006553356535732746, 0.028036458417773247, -0.009710581973195076, -0.003973179031163454, + -0.018553754314780235, -0.03963622823357582, -0.007200238760560751, 0.048486754298210144, + -0.018950704485177994, -0.013937368988990784, 0.04037132486701012, 0.020479699596762657, + 0.030991533771157265, 0.024111060425639153, -0.04207674041390419, 0.00441423524171114, + 0.026772096753120422, -0.004068741109222174, -0.03254992887377739, -0.018950704485177994, + -0.022964313626289368, 0.016627810895442963, -0.02494906634092331, 0.004759728908538818, + -0.005638165399432182, 0.007887550629675388, -0.007038518320769072, 0.017848065122961998, + -0.040400728583335876, -0.007012790068984032, 0.0541616715490818, -0.033549658954143524, + -0.018200909718871117, -0.012577446177601814, -0.022964313626289368, -0.012761219404637814, + 0.0027327092830091715, -0.02206750027835369, 0.014275511726737022, 0.014356371946632862, + -0.003250950016081333, 0.02727195993065834, -0.0013479773188009858, 0.0024974793195724487, + -0.019097723066806793, -0.026492761448025703, 0.03416713699698448, -0.0147312693297863, + 0.0177745558321476, 0.01756872981786728, 0.018333226442337036, 0.004656815901398659, + -0.0003519259043969214, -0.009828196838498116, -0.0346670001745224, 0.010541237890720367, + -0.018936002627015114, 0.021141283214092255, -0.019083021208643913, -0.00747222313657403, + -0.014099089428782463, 0.02242034487426281, 0.0019167556893080473, 0.000639071746263653, + -0.029065588489174843, 0.023258350789546967, -0.01950937509536743, 0.03513745963573456, + -0.02977127768099308, 0.031344376504421234, -0.003054312663152814, 0.033608466386795044, + 0.011408647522330284, -0.026772096753120422, 0.03010942041873932, 0.016201455146074295, + -0.036137185990810394, 0.02199399098753929, -0.013687437400221825, -0.0013966772239655256, + -0.02755129709839821, 0.006281372159719467, -0.03719571977853775, 0.0018349766032770276, + 0.024184569716453552, 0.018803685903549194, -0.018568456172943115, -0.009482703171670437, + -0.011026399210095406, 0.030521072447299957, -0.009276877157390118, 0.02205279842019081, + -0.012018775567412376, -0.03669585660099983, -0.03687227889895439, 0.033432044088840485, + -0.00426721666008234, -0.02984478697180748, -0.02214100956916809, 0.00882847048342228, + 0.023978743702173233, -0.02497847005724907, 0.011599771678447723, -0.038430675864219666, + 0.033667273819446564, 0.014400477521121502, 0.0067040505819022655, 0.021008966490626335, + -0.007791989017277956, 0.033343832939863205, 0.011261628940701485, -0.007148782256990671, + 0.0023375966120511293, 0.006862096022814512, -0.018230313435196877, 0.011937915347516537, + 0.01721588522195816, -0.0007755234255455434, 0.003892319044098258, 0.0025379096623510122, + -0.01978871040046215, 0.04142985865473747, 0.0033759158104658127, -0.011665930040180683, + -0.007931656204164028, 0.006082897074520588, -0.028198178857564926, 0.024213973432779312, + -0.016333771869540215, 0.02256736345589161, 0.0013406263897195458, 0.033549658954143524, + -0.009210718795657158, 0.031491395086050034, 0.029256712645292282, 0.016172051429748535, + 0.00219792895950377, -0.007733181584626436, -0.012856781482696533, 0.012423076666891575, + -0.010519185103476048, 0.005189758725464344, 0.010254551656544209, 0.023596493527293205, + -0.01476067304611206, 0.006608488503843546, 0.0023118683602660894, -0.0059175011701881886, + 0.03993026539683342, 0.00740606477484107, 0.01728939451277256, -0.02466973103582859, + -0.030432861298322678, 0.05183877795934677, 0.007622917182743549, 0.030903320759534836, + -0.01990632526576519, 0.013672735542058945, 0.02762480638921261, 0.01001932192593813, + 0.031256165355443954, 0.016613109037280083, -0.00847562588751316, -0.020303277298808098, + 0.026478059589862823, -0.036107782274484634, -0.02972717210650444, 0.010350113734602928, + 0.06421774625778198, -0.0496923066675663, -0.01775985397398472, -0.005781508516520262, + 0.00756410975009203, 0.030932726338505745, 0.021891077980399132, 0.011857055127620697, + -0.00846827495843172, -0.012342216446995735, 0.029344923794269562, -0.03660764545202255, + 0.0201562587171793, -0.01753932610154152, -0.0058403159491717815, -0.02225862443447113, + -0.006865771487355232, 0.009600318036973476, -0.02437569387257099, -0.03287337347865105, + -0.022905506193637848, -0.015319343656301498, 0.01003402378410101, -0.009666476398706436, + 0.03163841366767883, -0.014349021017551422, -0.004829562734812498, -0.002034370554611087, + 0.003454938530921936, 0.03163841366767883, 0.018509648740291595, -0.013092011213302612, + -0.0027198451571166515, 0.01361392717808485, 0.015863312408328056, 0.01987692154943943, + -0.0017724937060847878, -0.03981265053153038, 0.03722512349486351, -0.021126581355929375, + 0.01359922531992197, -0.02234683558344841, -0.007001763675361872, -0.018936002627015114, + -0.026272233575582504, -0.016201455146074295, 0.03155020251870155, 0.011019048281013966, + -0.001518886536359787, 0.024228675290942192, 0.0016943899681791663, 0.020656121894717216, + -0.002543422859162092, 0.005965282209217548, -0.014084387570619583, -0.0019112424924969673, + 0.035872552543878555, 0.003261976409703493, -0.02441979944705963, 0.004090793896466494, + -0.0018836765084415674, -0.026669183745980263, -0.0061894855462014675, 0.026830904185771942, + -0.02471383661031723, -0.01007812935858965, 0.010173691436648369, 0.019479971379041672, + 0.04663431644439697, 0.03269694745540619, 0.016569003462791443, -0.005156679544597864, + -0.02222922071814537, -0.010217797011137009, 0.02262617088854313, 0.01364333089441061, + 0.0301976315677166, -0.026139916852116585, 0.011812948621809483, -0.016230858862400055, + 0.011224874295294285, 0.012173145078122616, -0.043488118797540665, 0.04025371000170708, + -0.003497206373140216, 0.024228675290942192, -0.015628082677721977, -0.04181210696697235, + -0.006634216755628586, 0.0004238272085785866, 0.01996513269841671, 0.003515583695843816, + 0.0059211766347289085, 0.014429881237447262, 0.0035523383412510157, 0.010798520408570766, + 0.01750992238521576, 0.00876966305077076, 0.006240942049771547, 0.022979015484452248, + 0.0011348002590239048, 0.031491395086050034, -0.022890804335474968, 0.018200909718871117, + 0.025963494554162025, -0.000641368911601603, 0.02762480638921261, 0.015481065027415752, + -0.007902252487838268, 0.029344923794269562, -0.003024908946827054, 0.003061663592234254, + -0.00215198565274477, -0.001068641897290945, -0.05133891478180885, -0.005557305179536343, + -0.03446117416024208, 0.007020140998065472, -0.019038915634155273, -0.050692033022642136, + -0.021538233384490013, -0.02487555705010891, -0.007880199700593948, 0.04195912554860115, + 0.028580427169799805, -0.008078674785792828, 0.04272362217307091, 0.00434072595089674, + 0.02713964320719242, -0.00879906676709652, 0.031256165355443954, 0.06268875300884247, + -0.004002582747489214, 0.05136831849813461, 0.0003239004872739315, 0.04034192115068436, + -0.0755675882101059, 0.020391488447785378, -0.023846426978707314, 0.013871210627257824, + 0.012717113830149174, -0.02268497832119465, -0.0053404527716338634, 0.011577718891203403, + 0.014635707251727581, 0.030609283596277237, 0.006395311560481787, 0.053455982357263565, + -0.010364815592765808, 0.01771574839949608, -0.016657214611768723, 0.026522165164351463, + -0.01479007676243782, 0.03716631606221199, -0.00048608044744469225, -0.050750840455293655, + -0.016524897888302803, -0.0035266100894659758, -0.047869276255369186, 0.03716631606221199, + -0.02937432751059532, -0.004101820755749941, -0.04213554784655571, -0.00034044007770717144, + 0.00876231212168932, 0.028139371424913406, 0.0044546653516590595, 0.017833363264799118, + -0.003245436819270253, -0.003034097608178854, 0.005546278785914183, 0.0002474048233125359, + 0.02741898037493229, -0.019141828641295433, 0.006637892220169306, -0.00220895535312593, + 0.03769558295607567, -0.019288847222924232, -0.0036534136161208153, -0.023375965654850006, + -0.021376512944698334, 0.0008986515458673239, 0.018583158031105995, -0.023655302822589874, + -0.038313060998916626, -0.019391760230064392, -0.0062078628689050674, 0.00214831018820405, + 0.005961606744676828, -0.015672188252210617, -0.025243103504180908, -0.0014536469243466854, + -0.017921574413776398, 0.005219162441790104, 0.008328607305884361, 0.005171381402760744, + 0.004079767502844334, -0.020362084731459618, 0.01752462424337864, -0.03925397992134094, + -0.011313085444271564, -0.018009785562753677, -0.01995043084025383, -0.009320982731878757, + -0.03249112144112587, -0.04398798197507858, -0.030315246433019638, 0.011033750139176846, + 0.0047192987985908985, -0.012915588915348053, -0.0038224849849939346, 0.0297565758228302, + 0.010261902585625648, 0.009548861533403397, 0.01743641309440136, -0.009100454859435558, + 0.004179005511105061, -0.025978196412324905, -0.021802866831421852, 0.03219708427786827, + 0.023331860080361366, 0.001088856952264905, 0.007828743197023869, 0.018715474754571915, + 0.025419525802135468, 0.05968957394361496, -0.012217250652611256, 0.03160900995135307, + -0.016392581164836884, -0.012937641702592373, -0.02018566243350506, -0.005759455729275942, + 0.04119462892413139, 0.04978051781654358, -0.03796021640300751, 0.035666726529598236, + -0.004789132624864578, -0.016524897888302803, -0.01999453641474247, 0.012143741361796856, + 0.00033377829822711647, -0.0008366280235350132, 0.025934090837836266, 0.015701591968536377, + -0.016260262578725815, -0.0022567363921552896, 0.004884694702923298, -0.013297837227582932, + -0.003443912137299776, -0.00854178424924612, -0.011835002340376377, 0.02763950824737549, + -0.006766533479094505, -0.018921300768852234, -0.0016907145036384463, 0.028301091864705086, + -0.004013609141111374, -0.0026610377244651318, 0.0011164229363203049, 0.00430764677003026, + -0.0009096779394894838, 0.014488688670098782, 0.008975489065051079, 0.010122234933078289, + 0.011077855713665485, 0.0002864566631615162, -0.02696322090923786, -0.012952343560755253, + -0.04513472691178322, -0.03172662481665611, 0.03234410285949707, 0.04019490256905556, + 0.0073141781613230705, -0.0027437356766313314, 0.00429294491186738, 0.005281645338982344, + 0.0003537636366672814, -0.010842625983059406, -0.001306628342717886, 0.02974187396466732, + -0.010996995493769646, 0.00865204818546772, -0.006285047624260187, 0.01990632526576519, + 0.010408921167254448, 0.0053183999843895435, 0.006693024188280106, 0.016760127618908882, + -0.026037003844976425, -0.038607098162174225, 0.018068592995405197, 0.014437232166528702, + -0.018700772896409035, -0.016421984881162643, 0.0008311148267239332, -0.010798520408570766, + 0.01774515211582184, -0.018627263605594635, 0.005130951292812824, 0.009504755958914757, + 0.0035486628767102957, 0.015554574318230152, -0.013981474563479424, -0.05236804485321045, + 0.02203809656202793, 0.0032325726933777332, 0.00846092402935028, -0.016436686739325523, + 0.012180496007204056, -0.03413773328065872, -0.01739230751991272, -0.0354020930826664, + 0.010945538990199566, 0.025654755532741547, -0.0049912831746041775, -0.008019867353141308, + 0.01759813353419304, -0.009012243710458279, -0.004127549007534981, 0.012136390432715416, + 0.03763677552342415, -0.0005504011060111225, -0.03234410285949707, 0.00858588982373476, + -0.0024974793195724487, -0.005527901463210583, -0.029080290347337723, 0.0003964909410569817, + -0.009129858575761318, 0.021641146391630173, -0.021391214802861214, 0.011092557571828365, + -0.02219981700181961, 0.003306081984192133, 0.0038114585913717747, -0.010754414834082127, + -0.023493580520153046, 0.020347382873296738, -0.006516601890325546, -0.04269421845674515, + -0.010526536032557487, -0.0058366404846310616, -0.006310775876045227, 0.00219057803042233, + 0.019274145364761353, -0.05671979859471321, -0.0348140187561512, -0.0033648894168436527, + 0.00218138936907053, -0.007038518320769072, 0.016789531335234642, 0.00442158617079258, + 0.013709490187466145, -0.03910696133971214, 0.020288575440645218, -0.01504735928028822, + 0.030374053865671158, -0.00426354119554162, 0.0024919661227613688, -0.03549030423164368, + -0.0005164030590094626, 0.02274378575384617, 0.019450567662715912, -0.019171232357621193, + -0.002433158690109849, 0.008416818454861641, -0.00851238053292036, 0.003423697082325816, + 0.008299203589558601, 0.001110909739509225, 0.016436686739325523, -0.018612561747431755, + -0.0041863564401865005, 0.012114337645471096, 0.047898679971694946, -0.02256736345589161, + -0.025757668539881706, -0.00033952121157199144, 0.03687227889895439, -0.0168924443423748, + -0.018862493336200714, -0.012070232070982456, 0.048427946865558624, 0.0880935788154602, + -0.00440320884808898, -0.013907965272665024, 0.012423076666891575, -0.006953982636332512, + 0.011423349380493164, -0.024111060425639153, 0.012820026837289333, -0.00882847048342228, + 0.032961584627628326, -0.005759455729275942, -0.006226240191608667, 0.00211339327506721, + 0.014554847031831741, -0.005498497746884823, 0.012503936886787415, 0.031167956069111824, + -0.00860794261097908, 0.045693397521972656, -0.0018239502096548676, -0.0201562587171793, + 0.019377058371901512, -0.029065588489174843, -0.011518911458551884, 0.0014591601211577654, + 0.008335958234965801, 0.002907293848693371, -0.018509648740291595, 0.009629721753299236, + 0.0044730426743626595, -0.007983112707734108, 0.002861350541934371, -0.030344650149345398, + -0.03157960623502731, -0.003506395034492016, 0.009240122511982918, 0.01476067304611206, + 0.009468001313507557, -0.021126581355929375, 0.0001852664863690734, -0.0058513423427939415, + -0.006546005606651306, -0.00858588982373476, -0.011636526323854923, 0.015539872460067272, + -0.01004872564226389, 0.0011292870622128248, -0.017818661406636238, -0.04292944818735123, + 0.02255266159772873, 0.008100727573037148, 0.016319070011377335, 0.018524350598454475, + -0.004807509947568178, 0.038342464715242386, -0.026051705703139305, 0.01007077842950821, + 0.04134164750576019, 0.003951126243919134, 0.020612016320228577, 0.021082475781440735, + -0.0201562587171793, -0.005226513370871544, -0.01750992238521576, 0.013437504880130291, + 0.02500787377357483, 0.0174070093780756, 0.043194081634283066, 0.0011412323219701648, + 0.0011421511881053448, -0.003462289460003376, -0.006983386352658272, -0.011386594735085964, + -0.035901956260204315, -0.0294625386595726, 0.055867090821266174, 0.05216221883893013, + 0.00037949191755615175, 0.003050637198612094, 0.026272233575582504, -0.012430427595973015, + 0.03266754373908043, 0.026375146582722664, 0.030550476163625717, -0.0015878014964982867, + -0.01773045025765896, 0.00011457117943791673, 2.4881184799596667e-5, 0.00868145190179348, + -0.005399260204285383, 0.010769116692245007, 0.026713289320468903, -0.0064430925995111465, + 0.023861128836870193, -0.000429340434493497, -0.04469367116689682, -0.01959758624434471, + -0.03654883801937103, -0.025390122085809708, 0.0038004321977496147, -0.0025085059460252523, + 0.010952889919281006, -0.00865939911454916, 0.003048799466341734, 0.0005807236884720623, + 0.016480792313814163, 0.016848338767886162, -0.016627810895442963, -0.026492761448025703, + -0.023699408397078514, 0.008063972927629948, -0.01971520110964775, -0.03537268936634064, + -0.02192048169672489, -0.001273549161851406, -0.011467454954981804, -0.016451388597488403, + 0.00754205696284771, 0.027771824970841408, 0.033402640372514725, -0.001319492468610406, + 0.00047459459165111184, 0.017803959548473358, 0.016172051429748535, -0.006858420558273792, + 0.03746035322546959, -0.01730409637093544, 0.030344650149345398, -0.023728812113404274, + 0.006057168822735548, -0.02743368223309517, 0.007762585300952196, -0.0005301860510371625, + -0.002892591990530491, 0.012753868475556374, 0.043429311364889145, 0.05927792191505432, + 0.014312266372144222, -0.0035982816480100155, -0.0007713885279372334, 0.028771551325917244, + 0.006277696695178747, -0.015878014266490936, -0.01706886664032936, -0.02756599895656109, + -0.025860581547021866, 0.026919115334749222, -0.020641420036554337, -0.04172389581799507, + -0.0016778503777459264, 0.023684706538915634, 0.017789257690310478, -0.006546005606651306, + -0.004179005511105061, -0.046105049550533295, 0.011849704198539257, -0.00869615375995636, + 0.012048179283738136, -0.01476067304611206, -0.002370675792917609, 0.01717177964746952, + -0.0012276057386770844, -0.02231743186712265, -0.010320710018277168, 0.031167956069111824, + -0.0038518887013196945, -0.04260600730776787, 0.005965282209217548, -0.021303003653883934, + 0.007843445055186749, -0.00443261256441474, -0.01481948047876358, 0.0005784265231341124, + 0.019038915634155273, 0.015289939939975739, -0.011687982827425003, 0.009945811703801155, + 0.03413773328065872, 0.016392581164836884, 0.008416818454861641, -0.027713017538189888, + 0.018333226442337036, -0.001510616741143167, 0.007997814565896988, -0.025566544383764267, + 0.013305188156664371, 0.01470921654254198, 0.01501060463488102, -0.018318524584174156, + 0.0013415452558547258, -0.020479699596762657, 0.0003450344083830714, 0.0059322030283510685, + 0.005869719665497541, 0.0070421937853097916, -0.015422256663441658, 0.00441791070625186, + -0.006865771487355232, 0.036078378558158875, -0.006406337954103947, 0.0027235206216573715, + 0.026154618710279465, -0.02486085519194603, -0.028109967708587646, 0.027771824970841408, + 0.04916303977370262, 0.030756302177906036, 0.010107533074915409, -0.012540691532194614, + 0.0053110490553081036, 0.02738957665860653, 0.007255370728671551, -0.05971897765994072, + 0.001076911692507565, 0.010364815592765808, 0.004774430766701698, -0.004623736720532179, + 0.00442158617079258, 0.011937915347516537, 0.040753573179244995, -0.0061821346171200275, + 0.015598679892718792, -0.03257933259010315, -0.0176275372505188, 0.02262617088854313, + 0.02705143205821514, 0.00434440141543746, 0.002604068024083972, -0.006211538333445787, + 0.009357737377285957, 0.04754583537578583, -0.015922119840979576, 0.028007054701447487, + 0.020700227469205856, 0.02444920316338539, -0.009048998355865479, 0.019479971379041672, + -0.05916030704975128, 0.010607396252453327, 0.011805597692728043, -0.0270073264837265, + -0.008240396156907082, -0.012989098206162453, 0.010438324883580208, 0.01508411392569542, + 0.0027749771252274513, 0.0013985149562358856, 0.030932726338505745, -0.0018193558789789677, + -0.0005338615155778825, 0.0014775374438613653, -0.011151365004479885, -0.0148415332660079, + 0.00746854767203331, -0.0002167376660509035, -0.006762858014553785, 0.0005949661135673523, + 0.006127002649009228, 0.0055977352894842625, -0.0005003228434361517, -0.020685525611042976, + -0.03793081268668175, -0.010974942706525326, -0.011349840089678764, 0.028139371424913406, + -0.01483418233692646, -0.002447860548272729, 0.019127126783132553, 0.01980341225862503, + 0.018465543165802956, 0.006575409322977066, -0.018774282187223434, 0.0002199536975240335, + 0.016054436564445496, -0.011629175394773483, -0.045722801238298416, -0.0543086901307106, + -0.016025032848119736, 0.0017881144303828478, -0.008968138135969639, -0.038489483296871185, + ], + index: 3, + }, + { + title: "Shin Sang-ok", + text: 'Shin Sang-ok (October 18, 1926 \u2013 April 11, 2006) was a prolific South Korean film producer and director with more than 100 producer and 70 director credits to his name. His best-known films were made in the 1950s and 60s when he was known as the "Prince of Korean Cinema". He received the Gold Crown Cultural Medal, the country\'s top honor for an artist.', + vector: [ + 0.041343480348587036, -0.008456620387732983, -0.021819371730089188, -0.022823551669716835, + -0.014460176229476929, -0.002359820296987891, -0.013549242168664932, -0.02652466855943203, + -0.03626520186662674, 0.011756065301597118, 0.00045994980609975755, -0.02861909754574299, + -0.03319528326392174, -0.01073036901652813, 0.01159826572984457, 0.003980852197855711, + -0.03959333896636963, 0.0111248679459095, -0.023612549528479576, -0.0214033555239439, + 0.07172705978155136, -0.04237635061144829, -0.005200211890041828, -0.00976205337792635, + 0.012114700861275196, 0.03118692710995674, -0.02936505898833275, 0.012494854629039764, + 0.038359634578228, -0.011734547093510628, 0.0002224659692728892, -0.015736917033791542, + 0.02831784449517727, 0.060480259358882904, 0.035834841430187225, -0.0009459006250835955, + 0.000751789310015738, 0.027543192729353905, 0.019151125103235245, -0.012896525673568249, + -0.013642487116158009, -0.019194161519408226, -0.005365184508264065, 0.011770411394536495, + -0.011727374978363514, -0.010264142416417599, -0.04441339895129204, -0.07511258125305176, + -0.030871327966451645, -0.0022773342207074165, 0.06541508436203003, -0.010113515891134739, + -0.01658329740166664, -0.0387326143682003, 0.03302314132452011, -0.019179817289114, + 0.04854487627744675, 0.020427867770195007, 0.032564084976911545, -0.04094180837273598, + -0.001970701152458787, -0.024530654773116112, -0.03709723800420761, 0.02880558930337429, + 0.07884238660335541, -0.030785255134105682, 0.02186240814626217, 0.024258092045783997, + -0.03029751218855381, 0.04409779980778694, 0.015478700399398804, -0.03606436774134636, + -0.013420133851468563, 0.009597080759704113, -0.010809268802404404, 0.009840953163802624, + 0.03322397544980049, -0.009661635383963585, -0.031473834067583084, -0.024961018934845924, + 0.016870204359292984, -0.008427930064499378, -0.08211313933134079, 0.014345413073897362, + -0.02672550454735756, -0.02562090754508972, -0.003268960863351822, -0.06363625079393387, + -0.02329695038497448, -0.0058063059113919735, 0.03695378452539444, -0.04708164557814598, + -0.0055803656578063965, 0.004095615353435278, 0.0179891474545002, -0.03184681758284569, + 0.06214432790875435, -0.05046716332435608, 0.01976797915995121, 0.0005944380536675453, + -0.008707665838301182, -0.06076716631650925, -0.003503866959363222, 0.016167279332876205, + 0.03893344849348068, 0.03546186164021492, -0.05218861252069473, -0.018892908468842506, + -0.014166095294058323, 0.0346585176885128, -0.017472712323069572, 0.037039853632450104, + 0.02051394060254097, 0.03445767983794212, -0.05052454397082329, 0.03867523372173309, + -0.015665190294384956, 0.04441339895129204, -0.0037871890235692263, -0.022134970873594284, + -0.004579773172736168, -0.0359782949090004, -0.017903074622154236, 0.003744152607396245, + 0.01688455045223236, -0.000735650712158531, -0.036839019507169724, 0.07958834618330002, + 0.035777460783720016, 0.005630574654787779, -0.031072163954377174, 0.015019646845757961, + 0.03933512046933174, 0.0010068686679005623, 0.03055572882294655, 0.011454812251031399, + 0.011418948881328106, 0.01236574538052082, -0.02884862571954727, 0.028145698830485344, + 0.004823645111173391, -0.019093744456768036, -0.021589845418930054, -0.022565335035324097, + -0.004339487291872501, -0.04097049683332443, 0.019653216004371643, -0.02333998680114746, + -0.06461174041032791, 0.01704235002398491, -0.05657830834388733, -0.027887482196092606, + -0.051987774670124054, 0.008090812712907791, -0.027198903262615204, 0.0023060250096023083, + -0.0014892331091687083, -0.03224848583340645, -0.02747146598994732, -0.005892378278076649, + 0.011512193828821182, -0.004127892665565014, -0.025663943961262703, 0.012121873907744884, + 0.0035773871932178736, -0.07637497782707214, -0.06593151390552521, 0.005106966942548752, + 0.008241439238190651, 0.02884862571954727, 0.012573754414916039, 0.011440466158092022, + 0.006329913157969713, -0.017558785155415535, -0.039363812655210495, 0.001603996497578919, + 0.03526102378964424, -0.009324518032371998, -0.028303498402237892, 0.002413615584373474, + 0.009998752735555172, 0.012157737277448177, -0.029723694548010826, -0.0210590660572052, + -0.030584419146180153, 0.026108650490641594, 0.018118256703019142, -0.03744152560830116, + 0.025592215359210968, -0.008872637525200844, -0.05038109049201012, -0.030871327966451645, + -0.02006923221051693, -0.0030627455562353134, 0.01599513553082943, 0.027457119897007942, + -0.022292770445346832, -0.037527598440647125, -0.061570510268211365, -0.043495289981365204, + 0.028733860701322556, 0.002739973831921816, 0.043638743460178375, -0.00649488577619195, + -0.04016715660691261, 0.01734360307455063, -0.010206760838627815, 0.002234298037365079, + -0.0373554527759552, -0.028676480054855347, -1.581637843628414e-5, -0.011748893186450005, + -0.031416453421115875, 0.012129046022891998, -0.021475082263350487, -0.005591124761849642, + -0.0020442213863134384, 0.02180502749979496, -0.006684962194412947, 0.028446953743696213, + 0.014689702540636063, 0.0244445838034153, 0.027543192729353905, -0.031961578875780106, + 0.02186240814626217, -0.005379529669880867, -0.043294455856084824, 0.015320900827646255, + -0.004583359230309725, 0.004988617263734341, -0.008363375440239906, -0.028489990159869194, + 0.004694536328315735, -0.00787563156336546, -0.029723694548010826, 0.08940061181783676, + 0.04977858066558838, -0.0356626957654953, -0.025348344817757607, 0.01346316933631897, + -0.003606078214943409, 0.050036799162626266, 0.0016954484162852168, 0.0008938985411077738, + 0.041745152324438095, 0.024961018934845924, -0.03244932368397713, -0.0002978914708364755, + 0.01714276894927025, 0.04693818837404251, 0.02821742743253708, -0.004127892665565014, + 0.01823301985859871, 0.030469655990600586, -0.029867149889469147, -0.0009024161263369024, + 0.012229464016854763, 0.04071228206157684, 0.012666999362409115, 0.035490550100803375, + 0.002078291727229953, -0.018519926816225052, -0.005870860069990158, -0.02260836958885193, + -0.04220420494675636, 0.012860662303864956, -0.026510322466492653, -0.03279361501336098, + 0.011834965087473392, 0.011010103859007359, 0.00748830521479249, -0.029121188446879387, + 0.019997505471110344, 0.0028672893531620502, -0.024372855201363564, -0.0232539139688015, + 0.010350215248763561, 0.01261679083108902, 0.04237635061144829, -0.006760275922715664, + 0.013793114572763443, -0.015234827995300293, -0.05161479488015175, 0.03029751218855381, + -0.010694504715502262, -0.027744028717279434, 0.05543067306280136, -0.029235951602458954, + 0.052532900124788284, 0.014546248130500317, 0.01015655230730772, 0.056205328553915024, + -0.014646666124463081, 0.0019509760895743966, 0.019983159378170967, 0.008693319745361805, + -0.02638121321797371, -0.017171459272503853, 0.0312443096190691, -0.04163038730621338, + 0.0030340547673404217, 0.018448200076818466, -0.011813446879386902, 0.03632258623838425, + -0.04137216880917549, -0.00034496234729886055, -0.023813385516405106, 0.043437909334897995, + 0.03870392218232155, -0.01712842285633087, 0.018003493547439575, -0.034543752670288086, + 0.03663818538188934, 0.038359634578228, 0.018448200076818466, -0.028274808079004288, + -0.010335870087146759, -0.0624886192381382, -0.0198683962225914, 0.041888605803251266, + 0.021489428356289864, 0.006663443986326456, 0.022680098190903664, -0.011483502574265003, + 0.08607247471809387, 0.03600698709487915, 0.003130886238068342, -0.047311171889305115, + -0.012710035778582096, 0.03184681758284569, 0.010429115034639835, -0.01589471660554409, + 0.008427930064499378, -0.02410029247403145, 0.019151125103235245, -0.001277638366445899, + -0.0202126856893301, 0.049491673707962036, -0.0056234016083180904, -0.0029946048744022846, + 0.0009934197878465056, -0.01882118172943592, 0.001090251374989748, 0.028977733105421066, + -0.04544626548886299, -0.02329695038497448, 0.02989584021270275, 0.005074689630419016, + 0.021891100332140923, -0.020140958949923515, 0.0005204695044085383, -0.028877316042780876, + 0.02438720129430294, -0.009618598967790604, -0.0006607855902984738, 0.00356483506038785, + 0.06145574897527695, 0.019237197935581207, -0.03959333896636963, -0.008485311642289162, + 0.007624587044119835, 0.0058457558043301105, 0.0005505052395164967, -0.00401312904432416, + -0.011949729174375534, 0.023368677124381065, 0.02975238673388958, 0.012093182653188705, + -0.031014781445264816, -0.015464355237782001, 0.006957524921745062, -0.005838582757860422, + -0.040253229439258575, -0.0019115261966362596, 0.009704671800136566, -0.024702800437808037, + -0.013642487116158009, 0.03867523372173309, -0.0488891676068306, -0.004777022637426853, + -0.0036347690038383007, 0.0276723001152277, -0.024774527177214622, -0.014990956522524357, + -0.05316409841179848, -0.0009530733805149794, 0.013585105538368225, 0.026409905403852463, + -0.026051269844174385, 0.029465477913618088, 0.0013215711805969477, -0.0099341981112957, + 0.052332065999507904, 0.006548680830746889, -0.0136640053242445, -0.054024823009967804, + 0.03302314132452011, 0.017573131248354912, 0.019796669483184814, 0.025520488619804382, + 0.05181562900543213, -0.01085230428725481, 0.02618037723004818, 0.004382523708045483, + 0.032850995659828186, 0.04665128141641617, 0.011770411394536495, -0.03511757031083107, + 0.022034553810954094, 0.026409905403852463, 0.05950477346777916, 0.03681032732129097, + -0.023038731887936592, -0.03856046870350838, 0.05032370612025261, -0.00102749012876302, + 0.017114076763391495, -0.011548057198524475, 0.03899083286523819, -0.0015995134599506855, + 0.03629389405250549, -0.05150002986192703, 0.0263238325715065, -0.05807023122906685, + -0.03133038058876991, -0.0031434386037290096, 0.02583608776330948, 0.06220170855522156, + -0.03824486956000328, -0.025893470272421837, -0.01487619336694479, -0.0038983658887445927, + 0.028289154171943665, -0.023899458348751068, -0.040454063564538956, 0.002562449313700199, + -0.06753820180892944, -0.00404899287968874, 0.02483190968632698, 0.02424374781548977, + 0.007832595147192478, -0.029522858560085297, -0.029494168236851692, 0.016611987724900246, + -0.019007671624422073, -0.04320838302373886, -0.0032259246800094843, -0.019796669483184814, + -0.006613235455006361, -0.03029751218855381, -0.05875881016254425, -0.024014221504330635, + 0.029293332248926163, -0.024702800437808037, 0.027729682624340057, 0.031359072774648666, + -0.024659764021635056, 0.025563525035977364, -0.016411151736974716, -0.01585168018937111, + -0.02622341364622116, 0.062316473573446274, 0.0266681220382452, -0.02408594824373722, + -0.005870860069990158, 0.028977733105421066, -0.045073285698890686, -0.06552984565496445, + 0.016081208363175392, 0.03408470004796982, 0.04191729426383972, 0.06174265593290329, + 0.04647913575172424, -0.03293706849217415, 0.022335806861519814, 0.039507266134023666, + 0.05368053540587425, -0.006957524921745062, 0.049147382378578186, 0.02577870711684227, + 0.035088878124952316, -0.002594726625829935, -0.0366668738424778, 0.0029802594799548388, + 0.021145138889551163, 0.004185274243354797, -0.027141520753502846, -0.008406411856412888, + 0.0037513254210352898, -0.02170460857450962, 0.035347096621990204, 0.03491673618555069, + 0.009977234527468681, 0.02791617251932621, -0.038617849349975586, 0.020255722105503082, + -0.040310610085725784, -0.019438033923506737, 0.02180502749979496, -0.011964074335992336, + 0.0059999688528478146, 0.06375101208686829, -0.016425497829914093, -0.015378282405436039, + 0.021475082263350487, 0.0034070354886353016, 0.026094306260347366, 0.01962452381849289, + 0.0009620392229408026, -0.016411151736974716, -0.0007889976841397583, 0.04165907949209213, + -0.014947920106351376, -0.033310048282146454, -0.02057132124900818, -0.003797947894781828, + 0.006093213800340891, -0.004382523708045483, 0.01718580350279808, 0.002010151045396924, + 0.0030412275809794664, 0.028002245351672173, -0.004253414925187826, 0.05875881016254425, + -0.015363937243819237, -0.025965197011828423, -0.00574892433360219, -0.006502058357000351, + -0.01928023435175419, 0.035777460783720016, 0.005802719388157129, 0.002110568806529045, + 0.030326202511787415, -0.013986777514219284, -0.017544439062476158, 0.013563587330281734, + -0.0020818780176341534, 0.017271876335144043, 0.006398053839802742, 0.0019222853006795049, + -0.0332813560962677, 0.019093744456768036, -0.001968907890841365, -0.009697498753666878, + -0.03933512046933174, 0.008205575868487358, 0.033396121114492416, -0.036035675555467606, + -0.0017725550569593906, 0.028748206794261932, 0.009604253806173801, 0.03594960272312164, + 0.010787750594317913, 0.02840391732752323, 0.03669556602835655, 0.03813010826706886, + -0.04102788120508194, -0.00844227522611618, -0.037527598440647125, -0.0011817034101113677, + -0.02410029247403145, -0.00976205337792635, -0.0024512724485248327, -0.0008365168469026685, + -0.01942368783056736, 0.0015394421061500907, -0.026237759739160538, -0.011397430673241615, + -0.061914801597595215, -0.0512705035507679, -0.004949167370796204, 0.016712406650185585, + 0.02519054524600506, -0.03133038058876991, -0.0536518432199955, 0.025750014930963516, + -0.038876067847013474, -0.00864311121404171, 0.0026377628091722727, -0.023870766162872314, + 0.049577746540308, -0.032018959522247314, 0.030240129679441452, 0.016511570662260056, + -0.028690826147794724, -0.002684385282918811, 0.032908376306295395, 0.022479262202978134, + -0.01658329740166664, 0.004328728187829256, -0.03187550604343414, -0.0047590904869139194, + 0.0010140413651242852, -0.021030375733971596, -0.01202145591378212, -0.0161385890096426, + -0.011777583509683609, 0.029278988018631935, -0.00328509951941669, 0.008176885545253754, + 0.00961142685264349, 0.027342356741428375, -0.03336742892861366, -0.024272438138723373, + 0.011010103859007359, -0.019007671624422073, 0.023827729746699333, -0.03899083286523819, + 0.02285224199295044, -0.03055572882294655, -0.01224381010979414, -0.006204390898346901, + -0.01430237665772438, 0.006365776993334293, 0.025563525035977364, -0.013477515429258347, + -0.0013341234298422933, 0.005487120244652033, 0.02563525177538395, 0.004906130954623222, + -0.013283852487802505, 0.0451880507171154, 0.031014781445264816, -0.01517744641751051, + 0.005257593933492899, -0.028246117755770683, -0.016812823712825775, 0.02210628055036068, + -0.00842075701802969, 0.03729807212948799, -0.006563026458024979, 0.01562215480953455, + -0.024128984659910202, -0.02989584021270275, -0.06174265593290329, 0.014639494009315968, + 0.004016715567559004, -0.060021206736564636, -0.018304746598005295, -0.06633318960666656, + -0.013441652059555054, -0.016468534246087074, 0.0020209099166095257, -0.04122871533036232, + -0.02315349690616131, 0.028977733105421066, 0.01383615005761385, -0.020886920392513275, + -0.013126052916049957, 0.023325640708208084, 0.02682592160999775, -0.004260587505996227, + -0.01996881514787674, 0.01420913077890873, 0.057984158396720886, 0.005630574654787779, + 0.0438108891248703, -0.009927025996148586, -0.023311296477913857, -0.028203081339597702, + 0.006968284025788307, -0.026639431715011597, -0.03267884999513626, 0.016568951308727264, + -0.021618537604808807, 0.005347252357751131, -0.0232539139688015, 0.0003171681019011885, + -0.02890600636601448, -0.006634753197431564, 0.023813385516405106, 0.0059282416477799416, + -0.007595895789563656, -0.00039674033178016543, -0.006903729867190123, -0.015306555666029453, + 0.008858292363584042, -0.004956339951604605, 0.04762677103281021, -0.022221043705940247, + 0.01887856237590313, -0.01862034574151039, -0.005193039309233427, 0.02285224199295044, + -0.02463107369840145, 0.0016488258261233568, 0.01907939836382866, -0.029637621715664864, + -0.006401640363037586, 0.014704047702252865, 0.028647789731621742, -0.03015405684709549, + -0.043839581310749054, -0.004916890058666468, 0.04513067007064819, -0.0519590862095356, + -0.03233455866575241, -0.009848126210272312, 0.0007365472847595811, 0.011834965087473392, + -0.015822989866137505, 0.04372481629252434, -0.03617912903428078, 0.006225909106433392, + -0.005447670351713896, -0.02890600636601448, -0.0008499657269567251, -0.0010642502456903458, + -0.05339362472295761, -0.08802345395088196, 0.02354082278907299, 0.03506018966436386, + 0.021618537604808807, 0.008635938167572021, -0.0015779953682795167, 0.004547495860606432, + 0.012968253344297409, -0.04501590505242348, 0.01813260093331337, 0.01982535980641842, + 0.006247427314519882, -0.01704235002398491, -0.014402794651687145, 0.010213933885097504, + 0.01050801482051611, 0.03655211254954338, 0.024573691189289093, -0.040999189019203186, + -0.01258809957653284, -0.010400423780083656, 0.04240503907203674, -0.004597704857587814, + 0.01966756023466587, 0.0026915580965578556, 0.038962140679359436, -0.005881619174033403, + -0.010142207145690918, 0.014445830136537552, 0.03184681758284569, -0.01030717883259058, + 0.011153558269143105, -0.01090251374989748, 0.00589955085888505, -0.013979604467749596, + 0.03531840443611145, -0.010938377119600773, 0.02031310461461544, 0.041257407516241074, + -0.012910871766507626, -0.04429863393306732, 0.0078039043582975864, 0.013850496150553226, + -0.0018935945117846131, -0.032908376306295395, 0.0028906005900353193, -8.383100794162601e-5, + 0.005583951715379953, -0.027973555028438568, 0.02861909754574299, -0.004748331382870674, + -0.018247364088892937, 0.026653775945305824, 0.01708538644015789, -0.0048702675849199295, + 0.02607996016740799, 0.03322397544980049, -0.012559408321976662, -0.021087756380438805, + -0.013527723960578442, 0.009604253806173801, -0.00047295031254179776, 0.0006854417733848095, + -0.010493669658899307, -0.004127892665565014, 0.000364239007467404, 0.0067925527691841125, + -0.03244932368397713, -0.03437160700559616, 0.01318343449383974, -0.040310610085725784, + -0.00668137613683939, 0.017501402646303177, -0.051729559898376465, -0.01522048283368349, + -0.018591655418276787, 0.002497894922271371, 0.01758747547864914, 0.004239069297909737, + -0.012337055057287216, 0.01793176494538784, -0.006172113586217165, 0.039908938109874725, + -0.006175700109452009, -0.05147134140133858, 0.005099794361740351, 0.005139244254678488, + 0.0028637030627578497, 0.010895340703427792, -0.008528348058462143, -0.025147508829832077, + -0.04240503907203674, 0.011734547093510628, -0.02529096230864525, -0.018864218145608902, + 0.02592216059565544, -0.014359758235514164, -0.03356826677918434, 0.03170336037874222, + 0.006849934346973896, -0.0008598282001912594, 0.0099341981112957, -0.051987774670124054, + 0.015320900827646255, -0.06633318960666656, -0.0006728895241394639, -0.00449728686362505, + 0.007603068836033344, -0.0010319731663912535, -0.028920352458953857, 0.022321462631225586, + 0.011045968160033226, 0.00842075701802969, 0.036437347531318665, 0.06484126299619675, + 0.07258778810501099, 0.04097049683332443, 0.02136031910777092, -0.0001409885153407231, + -0.015923408791422844, 0.016655024141073227, -0.03724069148302078, 0.003347860649228096, + 0.015163101255893707, 0.03778581693768501, -0.017558785155415535, -0.0380440354347229, + 0.0461922287940979, -0.011397430673241615, 0.03184681758284569, 0.005297043826431036, + 0.047913677990436554, 0.01708538644015789, -0.0012166702654212713, -0.02721324749290943, + 0.01271720789372921, 0.0010481117060407996, 0.008549866266548634, -0.020772157236933708, + 0.036839019507169724, 0.01092403195798397, 0.004622809123247862, -0.05276242643594742, + 0.01813260093331337, 0.025147508829832077, 0.0031882680486887693, -0.03784319758415222, + 0.038072723895311356, 0.003295858623459935, 0.009102164767682552, 0.008062121458351612, + -0.004547495860606432, 0.0016640678513795137, 0.024760182946920395, -0.033510882407426834, + -0.0173292588442564, 0.01827605627477169, 0.012329882010817528, 0.006487712729722261, + -0.02592216059565544, -0.006451849360018969, -0.012803280726075172, 0.058443211019039154, + 0.011418948881328106, -0.007990394718945026, -0.060480259358882904, -0.004099201876670122, + -0.010866650380194187, -0.03649472817778587, -0.019925778731703758, 0.009209754876792431, + -0.018347783014178276, 0.013255161233246326, -0.0046443273313343525, 0.005293457303196192, + 0.014101540669798851, 0.010364560410380363, 0.008930019102990627, -0.024301128461956978, + 0.010651469230651855, -0.022565335035324097, -0.006365776993334293, 0.0037513254210352898, + 0.00196173507720232, 0.03606436774134636, 0.0034680035896599293, 0.02037048526108265, + 0.040454063564538956, -0.007262364961206913, -0.05150002986192703, -0.06099669635295868, + 0.005279111675918102, 0.009023264981806278, 0.023024387657642365, -0.02866213396191597, + 0.004924063105136156, -0.022077590227127075, 0.03084263764321804, -0.029723694548010826, + 0.01907939836382866, -0.019854051992297173, 0.024616727605462074, -0.0071619474329054356, + 0.051729559898376465, 0.011878001503646374, -0.03663818538188934, -0.02787313610315323, + 0.05557413026690483, 0.011834965087473392, -0.02230711653828621, 0.009381899610161781, + -0.006398053839802742, 0.027041103690862656, 0.004300037398934364, -0.002904945984482765, + -0.01032869704067707, -0.010651469230651855, 0.004680190701037645, 0.012437473051249981, + -0.030928710475564003, 0.010034616105258465, 0.02717021107673645, -0.016253352165222168, + -0.03417077288031578, -0.001673930324614048, 0.049405600875616074, -0.007746522780507803, + -0.01758747547864914, -0.007395060267299414, 0.02041352167725563, 0.017888730391860008, + 0.014904883690178394, 0.0263238325715065, 0.001051698112860322, -0.018290400505065918, + -0.010027443058788776, 0.004881026688963175, -0.016468534246087074, -0.021919790655374527, + -0.009769226424396038, -0.03701116517186165, -0.03818748891353607, -0.03394124656915665, + 0.0011404602555558085, -0.007222915068268776, -0.01813260093331337, 0.008757874369621277, + 0.019251544028520584, -0.002874462166801095, -0.04610615596175194, -0.015464355237782001, + -0.027758372947573662, -0.020929956808686256, -0.018864218145608902, -0.003665252821519971, + 0.03724069148302078, -0.03244932368397713, 0.0022396775893867016, -0.0067531028762459755, + 0.0390482135117054, -0.009840953163802624, -0.005150003358721733, 0.04036799073219299, + -0.020929956808686256, 0.018993325531482697, -0.03239194303750992, 0.008485311642289162, + -0.01443148497492075, 0.03342481330037117, 0.029666313901543617, -0.017099732533097267, + -0.033453501760959625, 0.023913802579045296, 0.0013601244427263737, -0.016167279332876205, + 0.029192915186285973, 0.016282042488455772, -0.021417701616883278, -0.0058457558043301105, + -0.01922285370528698, -0.030756564810872078, -0.05881619080901146, -0.013305370695888996, + 0.019954469054937363, 0.0059282416477799416, 0.020671740174293518, 0.0025355517864227295, + 0.04033929854631424, -0.034199465066194534, 0.02369862236082554, -0.07029252499341965, + -0.00216615735553205, 0.022134970873594284, -0.033453501760959625, -0.006846348289400339, + 0.021632881835103035, 0.04733986034989357, 0.029666313901543617, 0.012745899148285389, + -0.02344040386378765, 0.00677820760756731, -0.016009479761123657, 0.015406972728669643, + -0.013398615643382072, 0.005160761997103691, 0.019452380016446114, -0.024372855201363564, + -0.030871327966451645, 0.04590532183647156, 0.00440762797370553, 0.038359634578228, + 0.04088442772626877, -0.0325927771627903, 0.030268820002675056, 0.023913802579045296, + -0.0019330444047227502, 0.020886920392513275, 0.028002245351672173, 0.02250795252621174, + 0.007273124065250158, -0.01443148497492075, -0.02285224199295044, 0.014761429280042648, + -0.0031039887107908726, -0.00903761014342308, 0.010565396398305893, -0.04693818837404251, + -0.02587912417948246, 0.04444208741188049, -0.004647913854569197, 0.016611987724900246, + 0.04868832975625992, -0.0075026508420705795, -0.0013897118624299765, -0.0006858900305815041, + 0.01793176494538784, 0.027155866846442223, 0.032564084976911545, 0.018864218145608902, + 0.03660949319601059, 0.006304808892309666, -0.013520551845431328, 0.026108650490641594, + 0.00711532449349761, 0.013355579227209091, 0.0032833062577992678, -0.0033765514381229877, + -0.008148194290697575, 0.029278988018631935, -0.017314912751317024, -0.014309548772871494, + -0.0014130230993032455, 0.013821804895997047, 0.011562402360141277, -0.0043861097656190395, + -0.019983159378170967, 0.024200711399316788, 0.010816440917551517, -0.018562963232398033, + -0.0027310079894959927, 0.013915049843490124, 0.0008898638770915568, -0.016626333817839622, + 0.01906505413353443, -0.04754069820046425, -0.04645044729113579, 0.03551924228668213, + 0.005795546807348728, -0.022479262202978134, -0.0080692945048213, 0.01932327076792717, + -0.006376536097377539, -0.030383583158254623, 0.006157768424600363, -0.005587538238614798, + -0.0014802672667428851, -0.015005301684141159, 0.009503835812211037, 0.0173292588442564, + -0.003659873502328992, 0.037470217794179916, 0.001355641521513462, 0.0008486208389513195, + 0.003948574885725975, -0.02628079615533352, 0.0001474887685617432, 0.018304746598005295, + 0.010572569444775581, 0.03207634389400482, 0.013341234065592289, -0.0036939438432455063, + 0.0077608684077858925, -0.006839175708591938, -0.019394997507333755, 0.006986216176301241, + 0.043638743460178375, 0.019509760662913322, -0.0380440354347229, 0.035232335329055786, + 0.0035020739305764437, -0.018591655418276787, -0.019610179588198662, 0.014962265267968178, + -0.029494168236851692, 0.006537921726703644, -0.004673018120229244, 0.005903137382119894, + -0.00961142685264349, -0.01658329740166664, 0.011325703002512455, 0.002618037862703204, + -0.0210590660572052, 0.0025445176288485527, -0.012351400218904018, -0.030182749032974243, + 0.02011226862668991, 0.009331691078841686, -0.01017807051539421, -0.030756564810872078, + 0.041802532970905304, -0.009008918888866901, -0.02214931696653366, -0.004178101662546396, + -0.030067984014749527, -0.02289527840912342, 0.002453065477311611, 0.0014390242286026478, + -0.01797480136156082, 0.0011144592426717281, 0.0006164044607430696, 0.029121188446879387, + 0.02940809540450573, -0.0733911320567131, -0.01847689226269722, 0.02051394060254097, + 0.007889976724982262, -0.007423751056194305, 0.01738663949072361, 0.015206137672066689, + -0.0322771780192852, -0.004637154750525951, -0.0013027427485212684, -0.020284414291381836, + -0.009080646559596062, -0.01872076280415058, -0.00901609193533659, -0.0035702146124094725, + -0.04366743564605713, 0.001720552914775908, -0.02111644670367241, -0.0076174139976501465, + 0.005684369709342718, 0.028647789731621742, -0.009869643487036228, 0.04028191789984703, + -0.006268945522606373, -0.012301191687583923, 0.008700492791831493, -0.006530749145895243, + -0.05468471348285675, -0.008262957446277142, 0.010586914606392384, -0.011203767731785774, + 0.020241377875208855, -0.051040977239608765, -0.018046529963612556, -0.033855173736810684, + 0.014331066980957985, -0.006362190470099449, -0.01497661042958498, 0.000821723195258528, + 0.009970061480998993, -0.023368677124381065, -0.014187613502144814, -0.015435663983225822, + -0.00252120615914464, 0.02319653145968914, 0.011892346665263176, -0.021417701616883278, + -0.014094367623329163, -0.009719016961753368, -0.008600074797868729, -0.022909624502062798, + 0.01484750211238861, -0.02006923221051693, 0.00011313823779346421, -0.030125366523861885, + -0.027930518612265587, 0.023110460489988327, -0.0011458398075774312, -0.002601899206638336, + -0.0026198308914899826, -0.040253229439258575, 0.02841826155781746, -0.007567205000668764, + -0.03265015780925751, -0.0011969453189522028, 0.008578556589782238, -0.003424967173486948, + -0.006720826029777527, -0.04114264249801636, -0.010759059339761734, 0.017300568521022797, + 0.0031165408436208963, -0.02085823006927967, 0.0034285536967217922, -0.012552236206829548, + 0.014402794651687145, -0.019394997507333755, -0.0005159865831956267, 0.030785255134105682, + -0.014051332138478756, 0.01035738829523325, 0.03471589833498001, -0.009532527066767216, + -0.00023804418742656708, 0.01922285370528698, 0.04464292526245117, 0.004479355178773403, + 0.041544314473867416, -0.01783134788274765, -0.02131728269159794, -0.006046591326594353, + 0.007043597754091024, 0.010515187866985798, -0.01256658136844635, -0.01966756023466587, + -0.03164597973227501, 0.005566020030528307, -0.008305993862450123, -0.010321523994207382, + -0.002765078330412507, -0.001945596537552774, -0.003704702714458108, -0.03927773982286453, + -0.018792491406202316, 0.01742967590689659, 0.017200149595737457, -0.015607808716595173, + 0.002840391593053937, -0.0021679503843188286, -0.019653216004371643, -0.006344258785247803, + -0.032908376306295395, -0.028030935674905777, 0.024745836853981018, -0.019782323390245438, + -0.02110210247337818, 0.03233455866575241, 0.001128804637119174, 0.00023199222050607204, + -0.029666313901543617, 0.009288654662668705, 0.006233081687241793, 0.0179891474545002, + -0.036236513406038284, -0.019093744456768036, 0.0017653823597356677, -0.07040728628635406, + 0.031072163954377174, 0.013793114572763443, -0.0010077651822939515, 0.008262957446277142, + -0.004185274243354797, -0.022335806861519814, 0.01254506316035986, -0.0015403387369588017, + -0.029924530535936356, -0.013549242168664932, 0.047454625368118286, -0.00953969918191433, + 0.014474521391093731, -0.002218159381300211, 0.016066862270236015, 0.011045968160033226, + -0.01296108029782772, 0.025219235569238663, 0.007703486364334822, -0.043983034789562225, + 0.002772250911220908, -0.0010920445201918483, 0.029723694548010826, 0.02200586348772049, + 0.023426059633493423, 0.014833156950771809, 0.024903636425733566, 0.004472182597965002, + 0.021345974877476692, -0.007961704395711422, 0.004895371850579977, 0.029178569093346596, + 0.021288592368364334, 0.011562402360141277, -0.01241595484316349, -0.02529096230864525, + 0.008320339024066925, -0.00879373773932457, 0.003294065361842513, -0.0485735684633255, + 0.004425559658557177, 0.05313540995121002, 0.018519926816225052, -0.02975238673388958, + -0.03586352989077568, -0.03483066335320473, 0.008184057660400867, 0.005863687489181757, + 0.03669556602835655, -0.019782323390245438, -0.0397367924451828, -0.026998067274689674, + 0.030383583158254623, -0.007983222603797913, 0.0127387261018157, -0.008922846987843513, + -0.014646666124463081, 0.008169712498784065, -0.006476953625679016, -0.02896338887512684, + -0.0214033555239439, -0.0021069825161248446, -0.008894155733287334, 0.012322709895670414, + 0.024114638566970825, -0.009518180973827839, -0.016698060557246208, -0.016927586868405342, + 0.03511757031083107, -0.0020047714933753014, 0.026897648349404335, -0.0045331502333283424, + -0.023110460489988327, 0.0059282416477799416, -0.00014771292626392096, -0.015191791579127312, + -0.005576779134571552, 0.008894155733287334, -0.002243263879790902, -0.02592216059565544, + -0.011605438776314259, -0.06025073304772377, -0.007703486364334822, 0.013628141954541206, + 0.028992079198360443, 0.0011933590285480022, -0.01000592578202486, 0.042835403233766556, + 0.01807522028684616, -0.01966756023466587, -0.021675918251276016, 0.018806835636496544, + 0.013054325245320797, 0.0488891676068306, 0.01125397626310587, -0.010414769873023033, + 0.004343073815107346, 0.015148756094276905, 0.007968876510858536, 0.009977234527468681, + -0.0035630417987704277, 0.007839768193662167, -0.00030484001035802066, 0.03830225020647049, + 0.025706980377435684, 0.040454063564538956, -0.031617291271686554, -0.051873013377189636, + 0.0017375880852341652, -0.03221979737281799, -0.03878999501466751, -0.009726190008223057, + 0.019509760662913322, 0.010321523994207382, -0.010070479474961758, 0.01445300318300724, + -0.004450664389878511, -0.00422113761305809, 0.0012390849879011512, -0.052332065999507904, + -0.025420071557164192, 0.012824798934161663, 0.01484750211238861, 0.006175700109452009, + -0.017573131248354912, -0.06851369142532349, 0.004848749376833439, -0.01595209911465645, + -0.0055480883456766605, 0.019036361947655678, -0.00896588247269392, 0.024473274126648903, + -0.022178007289767265, 0.011813446879386902, 0.006975457072257996, -0.01122528500854969, + 0.03302314132452011, 0.02583608776330948, -0.022579679265618324, -0.03457244485616684, + -0.03133038058876991, -0.0031721293926239014, 0.012107528746128082, -0.0015824782894924283, + 0.009747708216309547, 0.000950383604504168, 0.020298758521676064, -0.01107465848326683, + 0.01609555259346962, 0.022909624502062798, 0.04263456538319588, 0.03695378452539444, + -0.010773404501378536, 0.0006719929515384138, -0.003851743182167411, 0.013341234065592289, + -0.008535520173609257, -0.02860475331544876, -0.01787438429892063, -0.03526102378964424, + -0.008908500894904137, 0.03411339223384857, -0.00896588247269392, -0.009740535169839859, + -0.028375227004289627, 0.007681968621909618, -0.00046981225023046136, 0.012523544952273369, + -0.005142830312252045, 0.0025839675217866898, 0.008908500894904137, -0.02428678423166275, + -0.028073972091078758, -0.005307802464812994, -0.0030250889249145985, 0.021919790655374527, + 0.0016246179584413767, -0.0007585136918351054, -0.021718954667448997, -0.004213965032249689, + 0.0019599420484155416, 0.029838457703590393, 0.002015530364587903, 0.004694536328315735, + 0.020729120820760727, -0.017357949167490005, 8.119727863231674e-5, 0.020140958949923515, + -0.00733767868950963, -0.002897773403674364, -0.010866650380194187, 0.005612642504274845, + 0.02285224199295044, -0.025391381233930588, -0.03187550604343414, -0.028891660273075104, + 0.0077608684077858925, 0.02622341364622116, -0.020499594509601593, -0.0004438112082425505, + -0.021977171301841736, -0.030928710475564003, -0.048057131469249725, -0.02686895802617073, + 0.01504833810031414, 0.0002978914708364755, 0.015435663983225822, -0.035433169454336166, + 0.04891785606741905, -0.012444645166397095, -0.0047949543222785, 0.0077608684077858925, + 0.03706854581832886, 0.02319653145968914, -0.0011530125048011541, 0.01331254281103611, + -0.02870517037808895, 0.009317345917224884, -0.010436288081109524, 9.459006832912564e-5, + 0.0011781170032918453, 0.024358510971069336, 0.0008947951137088239, 0.01559346355497837, + -0.01847689226269722, 0.023928148671984673, -0.04028191789984703, 0.018763799220323563, + 0.006376536097377539, -0.02001185156404972, 0.028346534818410873, 0.0048379902727901936, + -0.0016075827879831195, 0.010579741559922695, 0.006139836739748716, -0.019007671624422073, + 0.028475644066929817, 0.01853427290916443, -0.022981351241469383, -0.012796107679605484, + 0.0043861097656190395, 0.0424337312579155, -0.0010615605860948563, -0.018692072480916977, + -0.01728622242808342, -0.014338240027427673, -0.017501402646303177, -0.01708538644015789, + 0.04685211926698685, -0.010199588723480701, 0.003543316852301359, -0.03069918230175972, + 0.020126614719629288, 0.012250982224941254, -0.009776398539543152, -0.022938314825296402, + 3.13525706587825e-5, -0.030383583158254623, 0.021001683548092842, -0.034400299191474915, + -0.015779953449964523, -0.01902201771736145, 0.009769226424396038, -0.0027292147278785706, + -0.022809205576777458, 0.013699868693947792, 0.005028067156672478, -0.006932420656085014, + ], + index: 4, + }, + { + title: "G\u00e9za Anda", + text: "G\u00e9za Anda (Hungarian pronunciation: [\u02c8\u0261e\u02d0z\u0252 \u02c8\u0252nd\u0252]; 19 November 1921 \u2013 14 June 1976) was a Swiss-Hungarian pianist. A celebrated interpreter of classical and romantic repertoire, particularly noted for his performances and recordings of Mozart, he was also a tremendous interpreter of Beethoven, Schumann, Brahms and Bart\u00f3k.In his heyday he was regarded as an amazing artist, possessed of a beautiful, natural and flawless technique that gave his concerts a unique quality.", + vector: [ + -0.016788292676210403, 0.008837295696139336, -0.019498568028211594, -0.02080874890089035, + -0.0061591328121721745, 0.007006896659731865, 0.016672689467668533, -0.012228351086378098, + 0.0063453842885792255, 0.009569455869495869, -0.051456697285175323, -0.008124403655529022, + -0.002411631401628256, 0.03108467534184456, 0.007276639807969332, 0.031932439655065536, + -0.06689627468585968, -0.01726355589926243, -0.0675642117857933, -0.030596569180488586, + 0.02561274543404579, -0.053588952869176865, -0.013121072202920914, -0.03455280140042305, + 0.04631873592734337, 0.03313986212015152, 0.009209798648953438, 0.037635575979948044, + -0.021450994536280632, -0.05125118046998978, -0.007816125638782978, -0.017469072714447975, + -0.022953849285840988, 0.004081469029188156, -0.030802087858319283, -0.0397164523601532, + 0.05261274054646492, 0.015709321945905685, -0.010096097365021706, 0.009306135587394238, + 0.029851563274860382, 0.02725689299404621, -0.025060413405299187, -0.002559347776696086, + -0.007739056367427111, 0.021964790299534798, 0.046293046325445175, 0.01867649517953396, + -0.03352520614862442, -0.003991554956883192, 0.012298998422920704, 0.009575878269970417, + 0.027436722069978714, -0.005243933293968439, 0.02038486674427986, 0.009216221049427986, + -0.002684585517272353, 0.028926730155944824, -0.017610367387533188, -0.004518195986747742, + -0.009974069893360138, -0.026434818282723427, -0.06674213707447052, 0.0041007366962730885, + -0.014630349352955818, -0.03501521795988083, 0.01107230968773365, 0.006615126971155405, + 0.005478352773934603, 0.0020600019488483667, -0.013538531959056854, -0.03432159125804901, + 0.030262600630521774, 0.026794476434588432, 0.010764031670987606, -0.047166500240564346, + 0.09731301665306091, 0.03147002309560776, -0.08035773783922195, -0.01916460134088993, + -0.00767483189702034, -0.03935679420828819, 0.008336344733834267, -0.002801795257255435, + 0.03221502527594566, -0.04765460640192032, -0.012196239084005356, -0.05333205312490463, + -0.03311416879296303, 0.0336022786796093, 0.0127935279160738, -0.030827777460217476, + -0.057904839515686035, 0.05754518508911133, 0.031855370849370956, -0.04372406378388405, + -0.047166500240564346, -0.012196239084005356, -0.015054231509566307, 0.030981915071606636, + -0.0248163603246212, -0.04806564375758171, 0.05027496814727783, -0.03504090756177902, + 0.03935679420828819, 0.051713597029447556, -0.031521402299404144, -0.04796288162469864, + 0.009717172011733055, -0.0022735486272722483, 0.05369171127676964, 0.00378924747928977, + 0.033653657883405685, 0.0366593636572361, -0.03108467534184456, 0.024610841646790504, + -0.02030779793858528, -0.015940530225634575, -0.019794002175331116, 0.0011616612318903208, + 0.009312557987868786, -0.00895289983600378, -0.02187487669289112, 0.017841575667262077, + 0.010738342069089413, -0.0018239767523482442, 0.0025143905077129602, -0.023660318925976753, + 0.010449332185089588, -0.02283824421465397, 0.0336022786796093, 0.04513700306415558, + 0.0068591805174946785, 0.021399615332484245, 0.03457849100232124, -0.006066007539629936, + 0.03296003118157387, 0.04403234273195267, -0.005359537433832884, 0.028438623994588852, + -0.0034777584951370955, -0.0013695881934836507, 0.011547571048140526, -0.06288866698741913, + -0.051867734640836716, -0.03298572078347206, 0.02661464735865593, 0.029543286189436913, + -0.01863796077668667, -0.00969790481030941, 0.05243290960788727, -0.02897811122238636, + 0.0014241790631785989, -0.06211797147989273, -0.03483538702130318, 0.01448905561119318, + -0.030827777460217476, 0.008631777949631214, -0.038817308843135834, 0.059805888682603836, + -0.03527211397886276, 0.015439578332006931, 0.026974305510520935, 0.03046811930835247, + -0.025676969438791275, -0.006165555212646723, 0.02825879491865635, -0.016865363344550133, + 0.008850141428411007, 0.06324832141399384, 0.01912606693804264, -0.03414176404476166, + -0.03570884093642235, 0.022118929773569107, -0.0347583182156086, 0.04066697508096695, + 0.009216221049427986, 0.008978590369224548, -0.036864884197711945, 0.012485249899327755, + 0.020988577976822853, -0.03519504517316818, 0.02485489472746849, 0.012665078043937683, + 0.020975733175873756, 0.000504965428262949, 0.06329970061779022, -0.025728348642587662, + -0.007238104939460754, -0.01748191937804222, -0.041643187403678894, -0.007071121130138636, + 0.010693385265767574, -0.02890104055404663, 0.05811036005616188, 0.013397238217294216, + 0.026434818282723427, -0.014668883755803108, -0.05137962847948074, -0.02324928157031536, + 0.004521407186985016, -0.04446906968951225, 0.03635108843445778, 0.0009834382217377424, + -0.014553279615938663, 0.05888105556368828, -0.015568027272820473, 0.027744999155402184, + -0.040230248123407364, -0.03909989818930626, 0.0484766811132431, -0.004672334995120764, + 0.0044250707142055035, 0.010205279104411602, -0.009351092390716076, -0.018355371430516243, + -0.016929587349295616, 0.05266411975026131, 0.015067076310515404, 0.029183628037571907, + -0.007886772975325584, -0.019267359748482704, -0.012812795117497444, 0.006705041509121656, + 0.049504272639751434, 0.012106324546039104, 0.027205513790249825, 0.014912936836481094, + 0.039921972900629044, 0.007218837738037109, -0.007809703703969717, 0.03265175223350525, + -0.009453851729631424, -0.022517122328281403, -0.011175069026648998, 0.018984772264957428, + -0.024983344599604607, -0.07249665260314941, 0.020140813663601875, 0.006672929041087627, + -0.04508562386035919, 0.03177829831838608, -0.017494764178991318, 0.007983109913766384, + -0.014155087992548943, -0.018869169056415558, 0.01848382130265236, -0.020513316616415977, + -0.01420646719634533, -0.024610841646790504, -0.007006896659731865, -0.04860512912273407, + -0.027282582595944405, 0.005940769333392382, -0.026820166036486626, 0.00042709315312094986, + 0.031058985739946365, 0.011887961067259312, -0.03290865197777748, 0.054616544395685196, + -0.016698379069566727, 0.02715413272380829, -0.012909132055938244, 0.02260703593492508, + -0.04231112450361252, -0.011971453204751015, -0.0097364392131567, -0.014874402433633804, + 0.008766649290919304, 0.011457657441496849, 0.003326830919831991, 0.011245716363191605, + 0.009691482409834862, -0.028361555188894272, -0.01614604890346527, -0.016698379069566727, + -0.005475141573697329, 0.04061559587717056, 0.025343000888824463, -0.053743090480566025, + 0.03334537893533707, 0.005253566894680262, 0.0031052562408149242, 0.018779253587126732, + -0.02279970981180668, -0.02595955692231655, 0.023930061608552933, -0.01637725718319416, + -0.05471930280327797, 0.012215506285429, 0.0031871425453573465, -0.026897234842181206, + 0.020795904099941254, 0.026010936126112938, -0.09274023026227951, 0.05302377790212631, + 0.0435185469686985, 0.03491245582699776, 0.007366554345935583, -0.015979064628481865, + 0.005276045762002468, -0.024842049926519394, 0.010905326344072819, 0.010108942165970802, + -0.018650805577635765, 0.003619052469730377, -0.017314935103058815, 0.01660846546292305, + 0.004527829587459564, 0.024289719760417938, -0.015092765912413597, 0.018997617065906525, + -0.018920548260211945, -0.016891052946448326, -0.002019861713051796, -0.013178874738514423, + 0.01809847354888916, 0.040076110512018204, 0.01695527695119381, 0.017880110070109367, + 0.00989057868719101, -0.021476684138178825, -0.0219519454985857, -0.03555470332503319, + 0.029774494469165802, -0.0004840924229938537, -0.012363223358988762, -0.04074404388666153, + 0.025522829964756966, -0.04254233092069626, -0.0006141471094451845, -0.04025593772530556, + 0.0347583182156086, 0.042285434901714325, 0.04436630755662918, -0.02080874890089035, + -0.019074687734246254, 0.024597996845841408, -0.017212174832820892, 0.026820166036486626, + -0.026242144405841827, 0.021284010261297226, -0.009781396947801113, 0.012928399257361889, + -0.038971446454524994, -0.001094225561246276, 0.039767831563949585, -0.015979064628481865, + 0.01889485865831375, -0.0008493695058859885, 0.0004684377054218203, -0.007482158485800028, + 0.018008559942245483, 0.06627972424030304, -0.037173159420490265, -0.005558633711189032, + 0.004116792697459459, -0.0014281930634751916, -0.03134157508611679, 0.01683967374265194, + 0.03948524594306946, 0.024520928040146828, -0.0031823257450014353, 0.03845765069127083, + 0.0412321500480175, -0.058470018208026886, -0.02069314569234848, -0.044237859547138214, + -0.014270692132413387, -0.03306278958916664, -0.004778305534273386, -0.02313367836177349, + -0.027616551145911217, -0.0028740479610860348, 0.011027352884411812, 0.007989532314240932, + -0.05261274054646492, 0.022427206858992577, 0.052715498954057693, 0.010327305644750595, + 0.0008854957995936275, -0.026640336960554123, -0.019832536578178406, -0.005979304201900959, + -0.026743097230792046, -0.00029222163720987737, 0.0011062676785513759, 0.024572307243943214, + 0.024906273931264877, -0.007687676697969437, -0.063402459025383, 0.06155279651284218, + -0.03188106045126915, -0.002533657941967249, -0.036479536443948746, -0.03886868804693222, + 0.05322929471731186, 0.04834822937846184, 0.023043762892484665, 0.00473334826529026, + 0.0339876227080822, 0.024752136319875717, -0.01668553426861763, -0.02795051783323288, + -0.00818862859159708, -0.036864884197711945, -0.03367934748530388, 0.0038695281837135553, + 0.023660318925976753, -0.011618218384683132, -0.009286867454648018, 0.01084110140800476, + -0.03445003926753998, -0.020076589658856392, 0.0150799211114645, 0.01067411806434393, + -0.005654970183968544, 0.024687912315130234, 0.02012796886265278, -0.025831108912825584, + -0.00521182082593441, 0.0098327761515975, -0.020872974768280983, 0.06093623861670494, + -0.032703135162591934, -0.012478827498853207, 0.0013511236757040024, -0.013358703814446926, + 0.0035066595301032066, 0.030596569180488586, 0.007295907009392977, 0.011669598519802094, + 0.032471925020217896, 0.005154018756002188, 0.012196239084005356, -0.08087153732776642, + -0.029389146715402603, 0.011894384399056435, -0.0008646228234283626, -0.03447572886943817, + 0.007199570536613464, -0.03832920268177986, -0.03272882476449013, 0.011194336228072643, + -0.002506362507119775, -0.024944810196757317, -0.021977635100483894, 0.03188106045126915, + 0.0018496665870770812, -0.025497140362858772, -0.00017942729755304754, -0.0664338618516922, + 0.009017124772071838, 0.009068503975868225, 0.055541377514600754, 0.011348475702106953, + 0.0009794242214411497, 0.021592289209365845, -0.03696764260530472, 0.0018239767523482442, + 0.00030466512544080615, 0.009723594412207603, -0.0015052625676617026, -0.044648896902799606, + 0.05369171127676964, 0.018470976501703262, 0.03886868804693222, -0.051867734640836716, + -0.013859654776751995, 0.014000948518514633, 0.031187433749437332, -0.028618453070521355, + 0.03981921076774597, -0.029851563274860382, 0.04454613849520683, -0.005006302613765001, + 0.0009063687757588923, 0.010128209367394447, 0.01939580962061882, 0.023005228489637375, + -0.0060210502706468105, -0.021707892417907715, 0.043158888816833496, -0.009318980388343334, + 0.048168402165174484, -0.02543291635811329, 0.04891340434551239, -0.058367256075143814, + -0.060730721801519394, -0.019948139786720276, -0.014553279615938663, 0.05456516519188881, + -0.003419956425204873, 0.020988577976822853, -0.023159367963671684, 0.0058990237303078175, + -0.023647474125027657, 0.018432442098855972, -0.021707892417907715, -0.015670787543058395, + 0.0052503556944429874, -0.03311416879296303, -0.0012893076054751873, -0.022863933816552162, + 0.04601045697927475, -0.05143100768327713, 9.623645019019023e-5, 0.016274496912956238, + -0.0032128323800861835, -0.03825213387608528, 0.014065173454582691, 0.015670787543058395, + 0.002191662322729826, 0.001377616310492158, -0.023814458400011063, -0.034270212054252625, + -0.035760220140218735, -0.004004399757832289, 0.02088581956923008, 0.0015983880730345845, + -0.00047606436419300735, 0.022915314882993698, 0.0009625652455724776, 0.05096859112381935, + 0.029029490426182747, 0.0006819842965342104, -0.02371169812977314, 0.023223591968417168, + -0.00757849495857954, -0.06931111961603165, -0.018111318349838257, -0.0086831571534276, + 0.004418647848069668, -0.036068499088287354, -0.03822644427418709, 0.004319100175052881, + 0.022427206858992577, -0.011354898102581501, -0.0006703435792587698, -0.028438623994588852, + 0.022632725536823273, 0.021014267578721046, -0.03468124940991402, 0.04881064593791962, + -0.03306278958916664, 0.002658895682543516, 0.01745622791349888, -0.06288866698741913, + 0.024084201082587242, 0.006220146082341671, 0.012498094700276852, -0.01581208035349846, + 0.017687436193227768, 0.008368456736207008, -0.00409431429579854, -0.0003409921482671052, + -0.008426259271800518, 0.014116552658379078, 0.01641579158604145, -0.02409704588353634, + 0.036479536443948746, -0.032317787408828735, 0.04482872411608696, -0.022324448451399803, + -0.008060179650783539, 0.009742861613631248, 0.005035203415900469, 0.028387244790792465, + -0.009620835073292255, 0.01786726526916027, 0.0003327633603475988, -0.03838058188557625, + -0.015837769955396652, -0.004299832507967949, -0.026139385998249054, -0.014450520277023315, + 0.04577925056219101, 0.011322785168886185, -0.017314935103058815, -0.00569992745295167, + 0.012485249899327755, 0.01019243337213993, 0.04187439754605293, 0.023005228489637375, + 0.05137962847948074, -0.007347286678850651, 0.03794385492801666, -0.023223591968417168, + 0.041900087147951126, -0.021810652688145638, -0.008464793674647808, -0.00243892683647573, + 0.014078018255531788, 0.0017886533169075847, -0.014476209878921509, -0.006197667680680752, + -0.010558513924479485, 0.02065461128950119, -0.030904846265912056, -0.011149379424750805, + -0.010500711388885975, -0.007347286678850651, 0.04210560396313667, 0.004938866943120956, + 0.030288290232419968, -0.010320883244276047, 0.009954802691936493, 0.00924191065132618, + -0.04187439754605293, -0.030211221426725388, 0.016980966553092003, 0.019832536578178406, + 0.014617504552006721, -0.01741769351065159, 0.01879209838807583, 0.01338439341634512, + 0.06895145773887634, 0.005719194654375315, -0.0005732039571739733, 0.02115556225180626, + 0.04184870794415474, 0.007051853928714991, 0.0177516620606184, -0.003917696885764599, + 0.009267600253224373, 0.035220734775066376, 0.0019315528916195035, 0.005712772253900766, + -0.0381750650703907, 0.010969550348818302, -0.02833586558699608, -0.0026460508815944195, + -0.020641766488552094, -0.0012877018889412284, 0.04233681410551071, 0.016711223870515823, + -0.02524024248123169, -0.04061559587717056, 0.03927972540259361, 0.01641579158604145, + -0.009614412672817707, 0.01452759001404047, -0.003220860380679369, -0.047783054411411285, + -0.011277828365564346, 0.00786750577390194, -0.0013575460761785507, -0.014232156798243523, + -0.022170308977365494, 0.021361080929636955, 0.008959322236478329, -0.03504090756177902, + 0.015979064628481865, -0.012491672299802303, 0.009351092390716076, 0.01916460134088993, + 0.0401018001139164, 0.004832896403968334, 0.022889625281095505, -0.01393672451376915, + 0.03876592963933945, 0.0020503683481365442, -0.012851329520344734, -0.006322905421257019, + 0.004595265723764896, 0.0027006417512893677, -0.03486107662320137, -0.043775442987680435, + 0.01515698991715908, 0.046678394079208374, 0.014823023229837418, -0.020436247810721397, + 0.0021515218541026115, -0.03707040101289749, 0.03594005107879639, -0.028156036511063576, + -0.0013695881934836507, -0.0439038909971714, 0.015336818993091583, 0.004033301025629044, + 0.029157938435673714, 0.02661464735865593, 0.002360251732170582, -0.0086831571534276, + -0.028798282146453857, -0.006583014968782663, -0.04053852707147598, 0.02882397174835205, + 0.019113222137093544, 0.005895812530070543, -0.032780203968286514, -0.021977635100483894, + 0.005295312963426113, 0.06119313836097717, -0.01610751263797283, -0.0001550420420244336, + 0.005362748634070158, 0.006743576377630234, -0.030673637986183167, -0.0032802680507302284, + -0.05322929471731186, 0.06982491165399551, 0.022825399413704872, -0.018689339980483055, + 0.014347760938107967, 0.0017051614122465253, 0.018946237862110138, -0.023390576243400574, + -0.010128209367394447, -0.021592289209365845, 0.005658181384205818, 0.026434818282723427, + -0.05769932270050049, -0.004659490194171667, -0.047860123217105865, 0.015799235552549362, + -0.024032821878790855, -0.05166221782565117, -0.0126008540391922, 0.007809703703969717, + -0.022619880735874176, 0.0032545782160013914, -0.016158893704414368, -0.04523976147174835, + -0.0020696355495601892, -0.02561274543404579, 0.021245475858449936, 0.0355033241212368, + -0.013769740238785744, 0.02175927348434925, -0.03573453053832054, 0.022131774574518204, + 0.027976207435131073, -0.007617029827088118, -0.013628446497023106, -0.02676878683269024, + 0.014784487895667553, -0.01433491613715887, 0.035760220140218735, 0.024122735485434532, + -0.013988103717565536, 0.037815406918525696, -0.012363223358988762, -0.021784963086247444, + -0.006640817038714886, -0.006865602917969227, -0.008882253430783749, 0.023737387731671333, + -0.013692670501768589, 0.049041856080293655, -0.0051122731529176235, 0.029260698705911636, + 0.0038438383489847183, 0.004823262803256512, 0.00163692282512784, 0.004145693965256214, + 0.013499997556209564, -0.0336022786796093, 0.004177805967628956, -0.007000474259257317, + 0.004759037867188454, 0.002316900063306093, -0.011380587704479694, -0.0051636528223752975, + -0.015015696175396442, 0.04529114067554474, 0.02638343907892704, -0.018843479454517365, + -0.02249143272638321, -0.00989057868719101, -0.013255944475531578, 0.00864462275058031, + -0.013872499577701092, 0.04721787944436073, 0.0442892387509346, -0.020564695820212364, + 0.024495238438248634, 0.0016923164948821068, 0.004447549115866423, 0.015722166746854782, + -0.035297803580760956, 0.019537104293704033, -0.021772118285298347, 0.015452423132956028, + -0.03257468342781067, -0.04413510113954544, -0.004537463653832674, -0.015221214853227139, + -0.017584677785634995, 0.007071121130138636, -0.060114163905382156, -0.0074757360853254795, + -0.03139295428991318, -0.058624155819416046, -0.01558087207376957, -0.02890104055404663, + 0.02470075711607933, -0.016659844666719437, 0.0036351087037473917, -0.006660084240138531, + 0.011483347043395042, -0.03994766250252724, 0.03180399164557457, -0.04737201705574989, + 0.02375023253262043, -0.01254305150359869, -0.015002851374447346, 0.005314580164849758, + -0.043158888816833496, 6.04613778705243e-5, -0.011329208500683308, -0.013358703814446926, + -0.032471925020217896, -0.0036062076687812805, 0.009691482409834862, 0.018535200506448746, + -0.014823023229837418, -0.004874642007052898, 0.006794956047087908, 0.009222643449902534, + -0.033088479191064835, 0.02982587367296219, -0.045265451073646545, -0.012857751920819283, + 0.022632725536823273, 0.005154018756002188, -0.0021242264192551374, 0.006717886310070753, + 0.01558087207376957, 0.016094667837023735, -0.012844907119870186, -0.03141864389181137, + -0.03077639825642109, 0.0056967162527143955, -0.008387723937630653, 0.0031213124748319387, + 0.020153658464550972, 0.015632251277565956, -0.0005017541698180139, 0.045496661216020584, + 0.016248807311058044, 0.0011191124795004725, -0.002980018500238657, -0.01424500159919262, + 0.006406397558748722, 0.0012788710882887244, -0.026640336960554123, -0.03331968933343887, + -0.01993529498577118, -0.025330156087875366, -0.01622311770915985, -0.007873928174376488, + 0.005571478512138128, 0.030031392350792885, -0.005500831641256809, 0.007096811197698116, + 0.028310175985097885, -0.019485723227262497, -0.010340150445699692, -0.02715413272380829, + 0.03981921076774597, 0.02707706391811371, -0.011798047460615635, -0.014630349352955818, + 0.026409128680825233, -0.004967767745256424, 0.0023843359667807817, -0.038200754672288895, + -0.03362796828150749, -0.011213603429496288, -0.04755184426903725, 0.009550188668072224, + 0.05548999831080437, -0.039999041706323624, -0.01817554421722889, 0.08010084182024002, + -0.025599900633096695, 0.0021611556876450777, -0.025381537154316902, -0.012934821657836437, + 0.03439866006374359, 0.018149854615330696, 0.02156659960746765, -0.015144145116209984, + 0.0223372932523489, 0.03344813734292984, -0.03303709998726845, 0.01244671456515789, + -0.04575355723500252, 0.03845765069127083, 0.0171864852309227, -0.0013085749233141541, + -0.037815406918525696, -0.01600475423038006, 0.012305420823395252, 0.022478587925434113, + -0.028053276240825653, -0.00023140902339946479, -0.043775442987680435, 0.0026894023176282644, + 0.0010637188097462058, 0.023185057565569878, -0.0027166977524757385, 0.05055755376815796, + -0.05785346031188965, -0.043313026428222656, -0.0012395335361361504, -0.03421883285045624, + -0.0052824681624770164, -0.004980612546205521, 0.021206941455602646, 0.04025593772530556, + 0.032548993825912476, -0.02446954883635044, -0.015298284590244293, -0.022311603650450706, + -0.020705990493297577, -0.0412321500480175, 0.04680684208869934, -0.008484060876071453, + -0.01120718102902174, -0.025638435035943985, 0.015246904455125332, -0.004575998056679964, + -0.005558633711189032, -0.04436630755662918, -0.02779637835919857, 0.006884870119392872, + -0.00204715714789927, -0.010494288988411427, -0.016929587349295616, -0.015940530225634575, + -0.01626165211200714, 0.02524024248123169, 0.018239768221974373, 0.008946477435529232, + -0.035374872386455536, 0.0295946653932333, 0.010963127948343754, -0.010590625926852226, + 0.02717982418835163, 0.011502614244818687, 0.051148418337106705, 0.027308272197842598, + -0.01588914915919304, -0.012979778461158276, -0.05502758175134659, 0.003222465980798006, + 0.0064641996286809444, 0.008349189534783363, -0.01244671456515789, -0.028644142672419548, + 0.0022494643926620483, -0.004017244558781385, 0.00507694948464632, -0.006181611679494381, + 0.0051829200237989426, -0.02715413272380829, 0.01653139479458332, 0.04254233092069626, + -0.016711223870515823, 0.03935679420828819, -0.029312077909708023, 0.013898189179599285, + 0.012838484719395638, -0.02810465730726719, -0.024649376049637794, 0.033191241323947906, + -0.03838058188557625, -0.0074950032867491245, -0.03326831012964249, 0.019729778170585632, + -0.0031164956744760275, 0.0037282342091202736, 0.00522145489230752, -0.03272882476449013, + -0.039305415004491806, 0.02287677861750126, 0.009447429329156876, 0.002385941566899419, + -0.006814223248511553, 0.025574209168553352, -0.0004106356354895979, 0.011155801825225353, + 0.01608182303607464, -0.054205507040023804, -0.02897811122238636, -0.008098714053630829, + 0.011097999289631844, 0.01034657284617424, -0.048964787274599075, -0.025291621685028076, + 0.037481438368558884, 0.0015783179551362991, 0.021810652688145638, 0.007411511614918709, + -0.018162699416279793, -0.02967173606157303, -0.0021772116888314486, -0.006865602917969227, + -0.018047094345092773, -0.07809703797101974, -0.0035837290342897177, -0.03868886083364487, + -0.01374405063688755, 0.06170693412423134, 0.009453851729631424, -0.0030570877715945244, + -0.014553279615938663, 0.026023780927062035, 0.004026878159493208, -0.026126541197299957, + 0.016557084396481514, 0.024919120594859123, 0.02913224883377552, 0.022003326565027237, + -0.01734062470495701, -0.0227226410061121, 0.00836203433573246, 0.037327300757169724, + 0.03457849100232124, -0.018509510904550552, -0.034989528357982635, 0.02967173606157303, + -0.010076829232275486, 0.03825213387608528, 0.018843479454517365, -0.04082111641764641, + -0.00329792988486588, -0.032934341579675674, 0.03257468342781067, -0.0008176586125046015, + 0.0007193147903308272, -0.0008557919063605368, -0.03470693901181221, 0.024610841646790504, + -0.010815411806106567, -0.022118929773569107, -0.054051369428634644, 0.011059464886784554, + 0.020834438502788544, -0.019023306667804718, -0.02287677861750126, -0.020102279260754585, + -0.010731919668614864, -0.02684585563838482, -0.009704327210783958, 0.001135168713517487, + 0.0033846329897642136, -0.020397711545228958, -0.0012852934887632728, -0.009607990272343159, + 0.005532943643629551, 0.004344789776951075, 0.0043929582461714745, -0.00010426451626699418, + -0.017623212188482285, -0.017494764178991318, -0.011412699706852436, -0.013846809975802898, + 0.0006390341441147029, -0.04184870794415474, 0.011059464886784554, -0.04462320730090141, + -0.003840627148747444, -0.012170549482107162, 0.05094290152192116, 0.009325402788817883, + -0.02283824421465397, 0.015041385777294636, -0.008586820214986801, -0.020025210455060005, + -0.017353469505906105, 0.006865602917969227, -0.0038277823477983475, -0.006615126971155405, + -0.0204234030097723, -0.028310175985097885, 0.0099291130900383, -0.021810652688145638, + 0.032857272773981094, -0.0068463352508842945, -0.018843479454517365, -0.026010936126112938, + -0.018920548260211945, -0.02764224074780941, 0.015041385777294636, 0.03306278958916664, + 0.03054518811404705, -0.009537343867123127, -0.004582420457154512, -0.00288207596167922, + 0.02375023253262043, -0.02256850153207779, -0.0389457568526268, -0.01267792284488678, + -0.0009208192932419479, -0.07383252680301666, -0.012254041619598866, 0.004007610958069563, + 0.025869643315672874, -0.035066597163677216, 0.019755467772483826, -0.0124081801623106, + 0.0007739056600257754, 0.011887961067259312, -0.011579683981835842, -0.01641579158604145, + 0.008233585394918919, 0.03493814542889595, -0.011175069026648998, 0.020821593701839447, + -0.01821407862007618, -0.01703234761953354, 0.022504277527332306, 0.05975450947880745, + 0.029646046459674835, -0.02390437200665474, -0.030493808910250664, 0.02439247816801071, + -0.03712178021669388, -0.003050665371119976, 0.02179780788719654, 0.012530206702649593, + -0.006454566027969122, 0.0059504033997654915, -0.013069692999124527, 0.008766649290919304, + 0.005940769333392382, 0.010410796850919724, -0.0021964791230857372, -0.02061607502400875, + 0.016749758273363113, 0.011483347043395042, 0.015362508594989777, -0.019614173099398613, + -0.004913176875561476, -0.03830351307988167, -0.015298284590244293, -0.0401018001139164, + -0.0015967824729159474, 0.006666506640613079, -0.01223477441817522, 0.042439572513103485, + -0.03344813734292984, 0.004126426298171282, -0.0010259869741275907, -0.022774020209908485, + 0.0008076235535554588, 0.0030892002396285534, -0.006583014968782663, -0.02386583760380745, + 0.012247619219124317, 0.011598951183259487, 0.04834822937846184, 0.001353532075881958, + 0.008773071691393852, 0.010134631767868996, -0.01726355589926243, -0.031213123351335526, + -0.017392003908753395, 0.012292576022446156, -0.00581232039257884, 0.003490603528916836, + -0.0043608457781374454, -0.010436487384140491, -0.012979778461158276, -0.046061836183071136, + -0.008753804489970207, 0.01978115737438202, 0.026871545240283012, 0.007591340225189924, + -0.008612509816884995, -0.028310175985097885, 0.00714819086715579, -0.015863459557294846, + 0.010905326344072819, -0.027847759425640106, 0.0027118809521198273, 0.01691674254834652, + 0.04143767058849335, -0.016544239595532417, -0.025458605960011482, -0.011772356927394867, + 0.003177508944645524, 0.013133917935192585, 0.011521881446242332, -0.01680113933980465, + 0.011457657441496849, 0.03462987020611763, -0.016171738505363464, -0.0009906634222716093, + -0.014514745213091373, -0.00822716299444437, 5.6497519835829735e-5, -0.02423834055662155, + -0.010764031670987606, 0.009286867454648018, 0.013031158596277237, 0.03452711179852486, + 0.013448617421090603, -0.004983823746442795, 0.030725017189979553, -0.0011014507617801428, + -0.014501900412142277, -0.000690413755364716, 0.009819931350648403, -0.010969550348818302, + -0.007745478767901659, 0.02603662572801113, 0.002467827871441841, 0.0036094188690185547, + -0.020025210455060005, 0.0037764026783406734, -0.0038952180184423923, -0.0006314074853435159, + 0.010083251632750034, 0.0021852399222552776, -0.006660084240138531, -0.028798282146453857, + -0.005481563974171877, 0.030596569180488586, -0.011765934526920319, -0.024944810196757317, + -0.013846809975802898, -0.001516501884907484, -0.00590865733101964, -0.014630349352955818, + 0.013371548615396023, -0.008715269155800343, -0.017687436193227768, -0.0006145485094748437, + 0.016659844666719437, 0.006647239439189434, 0.011598951183259487, -0.02458515204489231, + -0.00031128828413784504, 0.0032610008493065834, -0.0009505231282673776, 0.02715413272380829, + -0.031136054545640945, -0.027693619951605797, 0.010365840047597885, 0.04539390280842781, + -0.030802087858319283, -0.01618458330631256, -0.004926021676510572, -0.008991435170173645, + 0.014553279615938663, 0.007784013636410236, 0.01759752258658409, 0.004502139985561371, + -0.02454661764204502, 0.029723115265369415, 0.02561274543404579, -0.00975570734590292, + 0.01889485865831375, -0.010956705547869205, -0.006027472671121359, 0.024264030158519745, + -0.04978685826063156, -0.024752136319875717, 0.01920313574373722, -0.006075641140341759, + -0.005285679362714291, -0.018548045307397842, -0.03555470332503319, -0.006627972237765789, + 0.006634394638240337, 0.012337532825767994, 0.017584677785634995, -0.014733108691871166, + 0.02577972784638405, 0.007103233598172665, -0.02818172611296177, 0.01531112939119339, + 0.021219786256551743, 0.006518790498375893, 0.008830873295664787, 0.005629280582070351, + 0.0015060653677210212, 0.02279970981180668, -0.014938627369701862, 0.02351902425289154, + 0.03493814542889595, 0.009196953848004341, 0.00016357186541426927, -0.014514745213091373, + -0.029183628037571907, -0.012562318705022335, -0.0374300591647625, 0.0018496665870770812, + -0.022247379645705223, 0.05096859112381935, 0.03540056571364403, -0.016390101984143257, + -0.040230248123407364, 0.0032850850839167833, -0.010815411806106567, 0.005157230421900749, + -0.014155087992548943, 0.022350138053297997, -0.0068591805174946785, 0.042362503707408905, + 0.009884156286716461, 0.050300657749176025, -0.015465267933905125, 0.0047879391349852085, + -0.005738462321460247, 0.04028162732720375, 0.010070406831800938, -0.013178874738514423, + -0.00822716299444437, 0.006470622029155493, -0.009055659174919128, 0.04462320730090141, + 0.029774494469165802, -0.026588957756757736, -0.025394381955266, 0.01805993914604187, + -0.0061559216119349, -8.31908400868997e-5, -0.038971446454524994, 0.014103707857429981, + 0.0021338602527976036, -0.002143493853509426, 0.04115508124232292, -0.051790665835142136, + -0.005911868531256914, -0.02707706391811371, -0.012742147780954838, 0.022915314882993698, + 0.021707892417907715, -0.01931874081492424, -0.007411511614918709, -0.00081244035391137, + 0.028618453070521355, 0.022825399413704872, -0.016480015590786934, -0.0051315403543412685, + 0.01726355589926243, 0.036941953003406525, -0.00012614100705832243, 0.01939580962061882, + -0.01763605698943138, -0.008008799515664577, 0.016582775861024857, 0.024084201082587242, + -0.02554851956665516, -0.026023780927062035, -0.017404848709702492, 0.028001897037029266, + 0.033807795494794846, 0.001767780282534659, 0.0005475141806527972, -0.028644142672419548, + -0.0065541137009859085, 0.029337767511606216, -0.003323619719594717, -0.0009633680456317961, + 0.012318265624344349, 0.016929587349295616, 0.01641579158604145, -0.016274496912956238, + -0.010513556189835072, 0.006647239439189434, 0.04585631936788559, -0.007250950206071138, + -0.017854420468211174, -0.04249095171689987, 0.013076115399599075, 0.007456468418240547, + -0.04246526211500168, 0.011380587704479694, 0.006608704570680857, 0.006794956047087908, + 0.0018159487517550588, 0.016120359301567078, -0.0011640697484835982, 0.009871311485767365, + 0.011695288121700287, 0.00198614364489913, 0.014386296272277832, -0.002657290082424879, + -0.018740719184279442, 0.01067411806434393, -0.0032256771810352802, -0.00315021350979805, + -0.05292101576924324, 0.013628446497023106, 0.01025023590773344, 0.007026164326816797, + 0.004216340836137533, -0.047705985605716705, 0.00501272501423955, -0.008792338892817497, + 0.02489342913031578, -0.030057081952691078, 0.03288296237587929, 0.011920074000954628, + -0.004126426298171282, 0.017957180738449097, 0.0014354183804243803, 0.03226640820503235, + -0.035683151334524155, -0.010924593545496464, 0.01951141469180584, -0.00011751082638511434, + 0.03989627957344055, 0.038817308843135834, -0.0005001485696993768, 0.007899617776274681, + -0.009254755452275276, 0.01236964575946331, -0.017443383112549782, 0.02890104055404663, + 0.02603662572801113, 0.011830159462988377, -0.020179349929094315, 0.028772592544555664, + -0.003320408519357443, -0.04058990627527237, 0.007989532314240932, 0.008708846755325794, + 0.010070406831800938, 0.03352520614862442, 0.028078967705368996, 0.013063270598649979, + -0.03134157508611679, -0.030725017189979553, 0.014604659751057625, -0.01637725718319416, + 0.008021644316613674, -0.012607276439666748, 0.028849661350250244, -0.0019074686570093036, + -0.009254755452275276, 0.024302564561367035, 0.003203198779374361, -0.009922690689563751, + 0.007751901634037495, -0.03722454234957695, 0.011868693865835667, 0.007013319060206413, + -0.025420071557164192, 0.017648901790380478, -0.04051283746957779, -0.024803515523672104, + 0.016017599031329155, -0.0036543761380016804, 0.01038510724902153, 0.058932434767484665, + -0.01338439341634512, -0.010038294829428196, 0.0034039004240185022, 0.045111313462257385, + 0.025381537154316902, 0.04868219792842865, 0.001229899819009006, 0.023891527205705643, + 0.023852992802858353, -0.017276400700211525, 0.016197428107261658, -0.08410844951868057, + -0.030416740104556084, -0.029543286189436913, -0.01342292781919241, 0.02974880486726761, + -0.01825261302292347, -0.017995715141296387, -0.01649286039173603, -0.004633800126612186, + 0.01943434402346611, 0.007668409496545792, 0.0246236864477396, 0.02866983227431774, + -0.02367316372692585, -0.019832536578178406, -0.003962653689086437, -0.045907698571681976, + -0.009614412672817707, -0.007360131945461035, 0.002952723065391183, 0.021707892417907715, + -0.00757849495857954, 0.02493196539580822, -0.018997617065906525, 0.011701710522174835, + 0.0173791591078043, -0.0013045609230175614, -0.0038245711475610733, 0.03909989818930626, + -0.008837295696139336, -0.008394146338105202, -0.008830873295664787, 0.0009336642106063664, + 0.0008854957995936275, 0.006255469750612974, -0.03645384684205055, 0.013718361034989357, + 0.0008028066949918866, -0.013063270598649979, 0.01511845551431179, -0.007572072558104992, + -0.013397238217294216, 0.013121072202920914, 0.027462411671876907, -0.01630018651485443, + -0.020911509171128273, -0.003946597687900066, 0.021695047616958618, -0.023583250120282173, + -0.0024726446717977524, 0.02206755056977272, 0.002753627020865679, -0.0067243087105453014, + 0.027539480477571487, 0.008272119797766209, 0.00046201524673961103, 0.009389626793563366, + 0.014964316971600056, -0.007976687513291836, 0.02321074716746807, -0.005722406320273876, + -0.03180399164557457, -0.01924167014658451, -0.011708132922649384, -0.019614173099398613, + 0.00826569739729166, -0.01993529498577118, 0.003029792569577694, 0.05466792359948158, + 0.03660798445343971, 0.044237859547138214, -0.004967767745256424, 0.011252138763666153, + ], + index: 5, + }, + { + title: "Marge vs. the Monorail", + text: "\"Marge vs. the Monorail\" is the twelfth episode of The Simpsons\u2019 fourth season and originally aired on January 14, 1993. The plot revolves around Springfield's purchase of a monorail from a conman, and Marge's dislike of the purchase. It was written by Conan O'Brien and directed by Rich Moore. Guest stars include Leonard Nimoy as himself and Phil Hartman as Lyle Lanley.", + vector: [ + -0.019495300948619843, -0.020162204280495644, -0.025202756747603416, 0.006118453573435545, + -0.008142429403960705, -0.013849884271621704, -0.009445217438042164, 0.017618665471673012, + -0.029638441279530525, 0.0849914476275444, -0.0018650039564818144, 0.012267926707863808, + -0.03560955449938774, 0.012089568190276623, 0.035237330943346024, 0.009476236067712307, + -0.032104432582855225, 0.0029758638702332973, 0.009724386967718601, 0.01561019942164421, + 0.00892565306276083, 0.0330970361828804, 0.004579146858304739, 0.05797409638762474, + 0.005121975671499968, 0.009522764943540096, -0.009111765772104263, 0.007669392507523298, + -0.02442728728055954, -0.004931985400617123, -0.039393845945596695, -0.004579146858304739, + 0.004334873985499144, 0.008235485292971134, 0.006102944258600473, 0.013772336766123772, + 0.01592814177274704, 0.02241106703877449, -0.0321974903345108, -0.002266309456899762, + 0.014989824034273624, -0.023372648283839226, 0.00970887765288353, -0.03421371057629585, + -0.007502666674554348, 0.019976092502474785, -0.03619891405105591, -0.008607710711658001, + 0.0004723093588836491, -0.006250283680856228, 0.004873825237154961, -0.01367152575403452, + 0.0335623174905777, 0.02138744667172432, -0.0272965244948864, 0.016936251893639565, + 0.002588129136711359, 0.0301967803388834, -0.01820802129805088, -0.03976607322692871, + 0.02188374660909176, -0.019650395959615707, -0.006316198501735926, 0.042247574776411057, + -0.031344473361968994, 0.012291190214455128, -0.01557142660021782, 0.008041618391871452, + 0.042247574776411057, -0.014446995221078396, 0.043147120624780655, 0.017727231606841087, + -0.00885586068034172, 0.019247151911258698, 0.038804490119218826, 0.010895345360040665, + 0.002359365811571479, -0.010228442028164864, -0.03843226656317711, -0.01682768575847149, + -0.010174158960580826, -0.023729365319013596, 0.018052928149700165, 0.053569428622722626, + 0.05329025909304619, 0.008786068297922611, 0.06315422803163528, -0.061044953763484955, + 0.029095612466335297, -0.0037649041041731834, 0.036881327629089355, 0.047986049205064774, + 0.0010594851337373257, 0.0016052217688411474, -0.041813310235738754, -0.02734305150806904, + 1.7372332877130248e-5, 0.012834019027650356, -0.00127467792481184, 0.03989014774560928, + 0.01077902503311634, -0.028971537947654724, 0.02993311919271946, 0.013299300335347652, + 0.044046662747859955, 0.0187973789870739, -0.018192512914538383, -0.0003489612427074462, + -0.009879480116069317, 0.03260073438286781, -0.006521698087453842, 0.0007037385366857052, + -0.0031193257309496403, -0.036757249385118484, 0.025264794006943703, -0.010313743725419044, + 0.005195645149797201, -0.004164271056652069, -0.011399400420486927, -0.035237330943346024, + -0.019712433218955994, -0.05508934706449509, -0.0545930489897728, -0.011236552149057388, + -0.002615270670503378, 0.017246440052986145, -0.011725097894668579, 0.0035012445878237486, + -0.001704094116576016, -0.005509710405021906, 0.015106144361197948, 0.04578371345996857, + -0.03204239532351494, -0.02148050256073475, -0.008266503922641277, -0.019619377329945564, + -0.0648912787437439, -0.014726164750754833, 0.055895835161209106, 0.025357849895954132, + -0.05561666935682297, 0.05493425577878952, -0.012066304683685303, 0.024768494069576263, + 0.017122365534305573, -0.021682124584913254, -0.036881327629089355, 0.080524742603302, + 0.010988402180373669, -0.008902388624846935, 0.04054154083132744, -0.004939740058034658, + -0.01062393095344305, 0.03038289211690426, 0.04125497490167618, 0.03750170022249222, + -0.04029339179396629, -0.029917610809206963, -0.04721057787537575, -0.020193224772810936, + -0.05208052694797516, -0.045163340866565704, 0.0009635207825340331, -0.030165761709213257, + 0.007971826009452343, -0.011011665686964989, 0.05797409638762474, 0.011864682659506798, + -0.04764484241604805, 0.01650198921561241, -0.03430676832795143, 0.0012378430692479014, + -0.005982746835798025, -0.013880902901291847, 0.06544961780309677, 0.002041423227638006, + -0.0007555980118922889, -0.012919320724904537, -0.030662061646580696, 0.016982780769467354, + -0.010895345360040665, -0.013066659681499004, 0.037780869752168655, 0.039300791919231415, + -0.0024233420845121145, -0.014028241857886314, -0.004365893080830574, 0.04804808646440506, + 0.006102944258600473, -0.05167728289961815, 0.017959872260689735, 0.03954894095659256, + 0.018363116309046745, -0.09746100008487701, 0.011089213192462921, 0.006444151047617197, + -0.015315521508455276, -0.01958835870027542, -0.004272836726158857, -0.026412488892674446, + -0.01870432309806347, 0.008894634433090687, 0.023682836443185806, -0.022876348346471786, + -0.0014540051342919469, -0.06132412329316139, -0.0076034776866436005, 0.03055349551141262, + 0.042743876576423645, -0.0015305827837437391, 0.05980420112609863, -0.0500953234732151, + 0.029560893774032593, 0.026427997276186943, -0.008917898871004581, -0.001761284889653325, + -0.06383664160966873, 0.016036707907915115, 0.00566868158057332, -0.014353939332067966, + 0.0022818187717348337, -0.013493168167769909, 0.06681444495916367, -0.028800934553146362, + -0.02376038394868374, -0.009034219197928905, -0.011089213192462921, 0.008026108145713806, + -0.05431387946009636, 0.0030340240336954594, -0.047303635627031326, -0.0018058744026347995, + -0.060145407915115356, 0.06495331972837448, -0.053352296352386475, 0.051336076110601425, + 0.04503926634788513, -0.009677858091890812, -0.000997447525151074, -0.030615532770752907, + -0.020860128104686737, 0.0460939034819603, -0.017153384163975716, 0.027622221037745476, + 0.0018853601068258286, -0.00035671592922881246, 0.02264370769262314, -0.043457306921482086, + -0.03033636324107647, -0.06538758426904678, -0.006800866685807705, -0.00505606085062027, + 0.05958707258105278, 0.0275136549025774, 0.01022068690508604, 0.010841062292456627, + 0.019340207800269127, 0.012958094477653503, -0.01236873771995306, 0.011841418221592903, + -0.037873927503824234, 0.020782580599188805, -0.028149539604783058, 0.003691234393045306, + -0.051553208380937576, 0.04268183559179306, -0.028552783653140068, 0.0053352294489741325, + -0.022752273827791214, -0.00743675185367465, 0.04044848680496216, -0.05124301835894585, + -0.012345473282039165, 0.029560893774032593, 0.028568293899297714, 0.007587968371808529, + 0.056578248739242554, 0.03368639200925827, 0.010399045422673225, -0.07674045115709305, + 0.022628197446465492, 0.03923875465989113, -0.01578855700790882, -0.030879192054271698, + 0.05149117112159729, 0.024706456810235977, 0.01584284007549286, 0.009297878481447697, + -0.036167893558740616, -0.015175936743617058, -0.0066031222231686115, -0.013369092717766762, + 0.05288701504468918, 0.030413910746574402, 0.03886652737855911, 0.013896412216126919, + 0.05108792707324028, 0.015144918113946915, 0.0037048051599413157, 0.020239751785993576, + -0.016889724880456924, 0.043426286429166794, -0.000159819406690076, 0.026815732941031456, + 0.02487706020474434, -0.011507966555655003, 0.011601022444665432, 0.05713658779859543, + -0.04144108667969704, -0.033034998923540115, 0.02312449924647808, 0.016315877437591553, + -0.0034857350401580334, -0.008871369995176792, -0.030088214203715324, 0.03691234439611435, + 0.017572136595845222, 0.01749459095299244, 0.007328186184167862, -0.011911210604012012, + 0.031034287065267563, 0.028971537947654724, -0.011283080093562603, 0.009041973389685154, + 0.020007111132144928, 0.013586224056780338, 0.0033442119602113962, -0.03135998547077179, + -0.022426575422286987, 0.03793596476316452, -0.005571747664362192, 0.008421598002314568, + -0.028568293899297714, 0.017975380644202232, -0.0035109377931803465, -0.10720089077949524, + -0.02307797037065029, -0.020829109475016594, -0.02411709912121296, 0.0028808689676225185, + 0.00023748751846142113, 0.015641218051314354, 0.03604381904006004, -0.00538951251655817, + -0.03278684616088867, -0.03905263915657997, 0.0009843615116551518, 0.0025939452461898327, + 0.02523377537727356, -0.010864326730370522, 0.0007885554805397987, -0.003123203059658408, + -0.008204466663300991, -0.02492358721792698, -0.017680702731013298, -0.007014120928943157, + 0.015137162990868092, 0.012035285122692585, 0.03719151392579079, -0.003348089288920164, + 0.03644706308841705, -0.017680702731013298, 0.00821222085505724, -0.02894051931798458, + -0.004548128228634596, -0.004377524834126234, -0.0469934456050396, 0.005021164659410715, + -0.03719151392579079, -0.028242597356438637, -0.01999160274863243, 0.0013279913691803813, + -0.017075836658477783, -0.07674045115709305, 0.09094705432653427, -0.030972249805927277, + 0.0194642823189497, 0.03722253441810608, -0.010654949583113194, 0.012787491083145142, + -0.003993667662143707, 0.010267214849591255, -0.021713143214583397, 0.037284571677446365, + -0.034151673316955566, 0.015780802816152573, -0.040014222264289856, -0.037998002022504807, + 0.03731558844447136, -0.011771625839173794, -0.01223690714687109, 0.005261559970676899, + -0.015625709667801857, -0.003381046699360013, 0.02957640402019024, -0.010073347948491573, + 0.007444506511092186, 0.019448773935437202, 0.07190152257680893, -0.00481954263523221, + 0.00636272644624114, -0.0011767748510465026, 0.010654949583113194, -0.0019357656128704548, + -0.04097580537199974, 0.019200623035430908, 0.013144207186996937, -0.0006184368976391852, + -0.0007914634770713747, -0.03159262612462044, 0.043550364673137665, 0.010662704706192017, + 0.0018989307573065162, -0.03852532058954239, 0.039610978215932846, -0.00739410100504756, + 0.003745517460629344, 0.018983490765094757, 0.018580246716737747, 0.053166184574365616, + 0.013043396174907684, 0.07016447186470032, 0.06476720422506332, 0.05909077078104019, + -0.02693980745971203, 0.06538758426904678, -0.0010604544077068567, 0.012834019027650356, + -0.060052353888750076, -0.0165485180914402, 0.0150983901694417, -0.014555561356246471, + -0.0357956700026989, 0.018363116309046745, 0.019262660294771194, 0.055368516594171524, + -0.012647906318306923, 0.07270801067352295, 0.03731558844447136, 0.01994507387280464, + 0.026071282103657722, 0.0067659709602594376, -0.012880546972155571, -0.025528453290462494, + 0.014640863053500652, 0.007774081081151962, -0.03104979544878006, -0.022969404235482216, + 0.002303144196048379, 0.03700540214776993, -0.02269023470580578, -0.01505186129361391, + -0.041627198457717896, 0.03319009020924568, 0.013221753761172295, 0.02155805006623268, + -0.008080391213297844, -0.02196129411458969, -0.006188245955854654, 0.02421015501022339, + 0.034027598798274994, -0.004811787977814674, 0.03238360211253166, -0.0492267981171608, + 0.0140902791172266, -0.02501664310693741, -0.011042684316635132, 0.05564768612384796, + -0.005971114616841078, -0.033128052949905396, -0.015152672305703163, 0.010631686076521873, + -0.05409674718976021, 0.018037419766187668, 0.023775892332196236, -0.021945785731077194, + -0.020053640007972717, -0.012663415633141994, 0.014578824862837791, -0.021496012806892395, + -0.031515076756477356, 0.037998002022504807, -0.045256394892930984, -0.012399756349623203, + 0.06250283867120743, 0.04925781860947609, 0.04215451702475548, -0.018130475655198097, + -0.05856345221400261, -0.008491390384733677, 0.03923875465989113, -0.03750170022249222, + -0.009701122529804707, -0.01678115874528885, 0.009367670863866806, 0.061665330082178116, + 0.02188374660909176, -0.0019435202702879906, -0.0015577242011204362, -0.026148829609155655, + 0.006785357370972633, 0.026583092287182808, 0.07177744805812836, -0.03588872402906418, + -0.011042684316635132, -0.03405861556529999, 0.022380048409104347, -0.015897123143076897, + 0.02509419061243534, -0.014865748584270477, 0.06433294713497162, 0.035051219165325165, + 0.07798120379447937, 0.023186536505818367, -0.02397751435637474, -0.004222431220114231, + 0.009964781813323498, 0.027048373594880104, 0.018719831481575966, -0.016005689278244972, + 0.010864326730370522, 0.008894634433090687, -0.0008161815931089222, 0.04702446609735489, + -0.021170316264033318, 0.01802190952003002, 0.008150183595716953, -0.002780057955533266, + 0.011771625839173794, 0.006994734052568674, 0.01570325531065464, 0.04280591383576393, + -0.021263372153043747, 0.0016653205966576934, -0.0033694147132337093, -0.02822708711028099, + -0.03992116451263428, 0.04156516119837761, 0.005800511222332716, -0.017277458682656288, + -0.02604026347398758, -0.00754919508472085, -0.0019696922972798347, 0.012353228405117989, + 0.01882839761674404, 0.008809332735836506, -0.014951050281524658, -0.026288414373993874, + 0.011787135154008865, -0.021821709349751472, 0.023295100778341293, 0.003322886535897851, + -0.0026870016008615494, 0.04488417133688927, -0.042433686554431915, 0.0015451228246092796, + -0.014183335937559605, -0.021061750128865242, 0.008886879310011864, 0.0025687424931675196, + -0.026024753227829933, -0.00465281680226326, -0.0015964977210387588, -0.0012329963501542807, + -0.021945785731077194, 0.033034998923540115, -0.014578824862837791, 0.03300397843122482, + -0.06017642840743065, -0.004121620208024979, 0.022736763581633568, 0.043457306921482086, + 0.04196840524673462, -0.022876348346471786, -0.006207632832229137, 0.02711041085422039, + 0.009623575955629349, 0.023558761924505234, -0.045876771211624146, -0.007987335324287415, + 0.011127986013889313, 0.04454296454787254, 0.03855634108185768, 0.007126564159989357, + -0.025171738117933273, 0.0005224725464358926, -0.038680415600538254, 0.004365893080830574, + 0.011771625839173794, 0.04311610013246536, 0.05561666935682297, 0.03660215809941292, + 0.03188730403780937, -0.011213287711143494, -0.004109987989068031, 0.010003555566072464, + -0.006948206108063459, -0.011275325901806355, 0.0037610267754644156, -0.038091059774160385, + 0.018533719703555107, -0.032104432582855225, -0.007355327717959881, 0.010980647057294846, + -0.043736476451158524, 0.0014423731481656432, 0.015044107101857662, -0.0042650820687413216, + 0.02473747543990612, -0.011779380962252617, -0.0505606085062027, 0.018580246716737747, + -0.0051491172052919865, 0.024799512699246407, 0.009949272498488426, -0.018052928149700165, + 0.0008244209457188845, 0.008941162377595901, 0.027947917580604553, -0.01107370387762785, + 0.020301789045333862, 0.027389580383896828, 0.008762804791331291, -0.0012436590623110533, + -0.029064593836665154, 0.006537207402288914, -0.015493879094719887, 0.0635264590382576, + -0.03154609724879265, -0.006021520122885704, 0.00014624868344981223, 0.039083659648895264, + 0.02376038394868374, -0.01140715554356575, 0.006172736641019583, -0.002960354555398226, + -0.007653883192688227, -0.013058905489742756, 0.000980484182946384, 0.01422986388206482, + -0.010903100483119488, -0.013857638463377953, -0.0051607489585876465, 0.05403470993041992, + -0.015137162990868092, 0.02219393476843834, 0.017370514571666718, 0.012733208015561104, + 0.0183476060628891, 0.017866816371679306, 0.0004909691051580012, 0.03824615105986595, + -0.006626386195421219, 0.013051150366663933, 0.035144273191690445, -0.04904068633913994, + -0.006855149753391743, -0.04761382192373276, -0.0034159428905695677, 0.040417466312646866, + -0.011624286882579327, 0.05015736445784569, -0.012159360572695732, 0.054065730422735214, + -0.013407866470515728, 0.005788879469037056, 0.03294194117188454, 0.015858350321650505, + -0.0004599503008648753, 0.03480306640267372, 0.013345829211175442, 0.044760096818208694, + -0.05664028599858284, -0.0015674176393076777, -0.0010061715729534626, -0.00885586068034172, + -0.023108989000320435, 0.04379851371049881, -0.013609488494694233, 0.013656016439199448, + 0.005374003201723099, 0.00970887765288353, -0.013624997809529305, -0.04085173085331917, + -0.012066304683685303, -0.0017254194244742393, -0.005707454867660999, -0.009499500505626202, + -0.006161104422062635, -0.016796667128801346, -0.006199878174811602, -0.0008186048944480717, + -0.0002063475694740191, 0.06973021477460861, 0.010592912323772907, -0.026071282103657722, + -0.023915477097034454, 0.007483279798179865, 0.013617243617773056, -0.004172025714069605, + -0.027281014248728752, 0.0033500278368592262, -0.03149956837296486, 0.0069210645742714405, + -0.015912633389234543, 0.008654238656163216, -0.009034219197928905, -0.04308508336544037, + -0.00116611213888973, 0.008320786990225315, -0.005273192189633846, 0.021356428042054176, + 0.006040906999260187, -0.004745872691273689, 0.016719121485948563, -0.04866846278309822, + -0.00772755267098546, -0.014167826622724533, -0.018595756962895393, -0.0057578603737056255, + 0.038587357848882675, 0.017789268866181374, -0.028878482058644295, -0.02272125519812107, + -0.005362370982766151, 0.005292579066008329, 0.029715988785028458, 0.000669327040668577, + 0.017742739990353584, -0.0055833798833191395, -0.03601279854774475, 0.0014249250525608659, + -0.008313031867146492, 0.018626775592565536, 0.0234967228025198, 0.004920353647321463, + 0.007487157359719276, -0.008468125946819782, 0.012624641880393028, 0.031080814078450203, + 0.019185112789273262, 0.026024753227829933, 0.042030442506074905, 0.027451617643237114, + -0.011942229233682156, 0.019448773935437202, 0.012787491083145142, 0.0015674176393076777, + -0.008336296305060387, 8.766439714236185e-5, -0.03126692771911621, -0.017835797742009163, + 0.04358138144016266, -0.00925910472869873, -0.008801577612757683, 0.030475948005914688, + 0.03114285320043564, 0.008142429403960705, 0.007452261168509722, -0.013361338526010513, + -0.01478820201009512, -0.026645129546523094, -0.005509710405021906, -0.0039568329229950905, + -0.020193224772810936, -0.01941775530576706, 0.002126724924892187, -0.04550454765558243, + -0.005342984572052956, 0.041006822139024734, 0.04109987989068031, 0.008894634433090687, + 0.00027311063604429364, -0.029328253120183945, 0.04854438453912735, -0.02331061102449894, + -0.013524186797440052, 0.020518921315670013, -0.018905945122241974, 0.01682768575847149, + -0.011065948754549026, -0.002035607350990176, 0.046466127038002014, 0.03213545307517052, + -0.01951081119477749, -0.013586224056780338, -0.03256971761584282, 0.00153542950283736, + 0.010577403008937836, 0.03905263915657997, 0.0023050829768180847, -0.021852727979421616, + -0.01614527404308319, 0.016936251893639565, -0.006068048067390919, -0.01882839761674404, + 0.03632298856973648, 0.024442795664072037, -0.006859027314931154, 0.01270994357764721, + -0.015160427428781986, -0.014074769802391529, 0.012291190214455128, -0.01856473833322525, + 0.009654594585299492, -0.012314454652369022, -0.00026899095973931253, 0.0006092281546443701, + -0.011632041074335575, 0.012531585991382599, 0.015300012193620205, 0.06780704855918884, + 0.015377558767795563, -0.0053817578591406345, 0.04255776107311249, 0.04311610013246536, + 0.048203181475400925, -0.053755540400743484, -0.04258878156542778, -0.007859382778406143, + 0.002134479582309723, 0.01955733820796013, 0.018890434876084328, 0.012446284294128418, + 0.03294194117188454, 0.03539242595434189, 0.04593880847096443, 0.006638018414378166, + -0.025078682228922844, 0.056795381009578705, 0.004063460044562817, 0.05986623838543892, + -0.03573363274335861, -0.007622864563018084, -0.017649684101343155, 0.0023748751264065504, + -0.003439206862822175, 0.03784290701150894, 0.014865748584270477, 0.0014045690186321735, + -0.05968012660741806, -0.047179561108350754, -0.006444151047617197, -0.0010594851337373257, + 0.006157227326184511, -0.00785162765532732, -0.005436040926724672, 0.018580246716737747, + 0.005342984572052956, -0.004090601112693548, 0.00618436885997653, 0.012694434262812138, + 0.014687390998005867, 0.012151606380939484, -0.03078613616526127, -0.014912277460098267, + 0.037780869752168655, 0.009290123358368874, -0.0010139262303709984, 0.012120586819946766, + 0.005350739229470491, 0.02675369568169117, 0.031422022730112076, -0.00821222085505724, + 0.009057482704520226, 0.024442795664072037, 0.015300012193620205, 0.019216133281588554, + 0.027544673532247543, -0.043860550969839096, -0.00021907011978328228, -0.005765615031123161, + 0.013485413044691086, 0.012275680899620056, -0.0019396429415792227, 0.004935862962156534, + -0.00932889711111784, -0.0150983901694417, 0.013741318136453629, 0.02926621586084366, + -0.0015286441193893552, 0.022628197446465492, -0.005563993006944656, -0.051553208380937576, + 0.006320076063275337, 0.01022068690508604, -0.0165485180914402, -0.004683835431933403, + -0.01982099935412407, 0.009096256457269192, -0.0028595435433089733, 0.023202044889330864, + -0.017168892547488213, 0.0012853406369686127, -0.002586190588772297, -0.00829752255231142, + -0.016672592610120773, -0.029560893774032593, -0.002413648646324873, -0.011228797025978565, + 0.02501664310693741, 0.011445928364992142, -0.0037048051599413157, 0.007041262462735176, + -0.04016931727528572, -0.019836507737636566, 0.03601279854774475, 0.021123787388205528, + 0.008724031038582325, -0.034461859613657, -0.004528741352260113, 0.027079392224550247, + 0.034865107387304306, -0.005672558676451445, -0.008305277675390244, -0.03498918190598488, + 0.04801706597208977, 0.0014898705994710326, 0.009468481875956059, -0.007211865857243538, + -0.043023042380809784, -0.02053442969918251, 0.03985912725329399, -0.015470615588128567, + 0.0006412162911146879, -0.014749428257346153, 0.044046662747859955, -0.03306601569056511, + 0.018006399273872375, -0.008724031038582325, -0.011686324141919613, -0.008817087858915329, + -0.014974314719438553, -0.018580246716737747, -0.009584802202880383, -0.030398402363061905, + -0.009034219197928905, 0.01382661983370781, -0.02371385507285595, 0.001846586586907506, + -0.0025803744792938232, 0.04693140834569931, 0.00575010571628809, 0.027839353308081627, + -0.016517499461770058, 0.03477204963564873, -0.011624286882579327, 0.010026820003986359, + 0.013935185968875885, -0.03588872402906418, 0.04671427980065346, 0.018192512914538383, + -0.01958835870027542, -0.0033752305898815393, -0.003840512363240123, 0.01317522581666708, + 0.014989824034273624, -0.02335713990032673, 0.00796407088637352, 0.013562960550189018, + -0.038494303822517395, -0.02416362799704075, -0.04106885939836502, -0.007076158653944731, + -0.027312032878398895, 0.013136452063918114, -0.009755405597388744, -0.017959872260689735, + 0.04584575444459915, 0.009871725924313068, -0.0035070604644715786, 0.006401500198990107, + -0.0013173286570236087, -0.028831953182816505, -0.00573847396299243, 0.03340722247958183, + 0.022224953398108482, -0.0008622250752523541, -0.012733208015561104, 0.012229152955114841, + 0.051522187888622284, -0.02532683126628399, 0.043643418699502945, 0.013229508884251118, + 0.005377880297601223, 0.021728653460741043, -0.04268183559179306, -0.005331352353096008, + -7.197325612651184e-5, -0.0020821355283260345, 0.025668038055300713, 0.015641218051314354, + -0.037470683455467224, -0.0035109377931803465, -0.004935862962156534, 0.0420614629983902, + 0.011725097894668579, -0.00478852353990078, -0.04454296454787254, 0.010143140330910683, + -0.03871143236756325, -0.04407768324017525, -0.029855573549866676, -0.0029409679118543863, + -0.001110859913751483, -0.0025648651644587517, -0.04175127297639847, 0.01628485880792141, + -4.52862041129265e-5, -0.008002844639122486, 0.0045364960096776485, 0.010189668275415897, + -0.029002556577324867, -0.0011787135154008865, 0.029111122712492943, 0.017277458682656288, + 0.035547517240047455, -0.0010749944485723972, -0.032414622604846954, 0.05744677409529686, + -0.03216647356748581, -0.015959160402417183, 0.016408933326601982, -0.01664157398045063, + -0.0006339462706819177, -0.0158816147595644, -0.04271285608410835, -0.01977447047829628, + 0.042743876576423645, 0.01937122642993927, 0.010406799614429474, -0.006467415019869804, + -0.004493845161050558, -0.0008617403800599277, -0.002446606056764722, 0.015385313890874386, + -0.03294194117188454, 0.07494136691093445, -0.021914765238761902, 0.012089568190276623, + 0.0062386514618992805, -0.00910401064902544, -0.022380048409104347, 0.0038308189250528812, + 0.0080493725836277, 0.012329963967204094, -0.00261139334179461, 0.0032259528525173664, + 0.028428709134459496, -0.018456172198057175, -0.01704481802880764, 0.025714566931128502, + -0.005664804019033909, -0.005505832843482494, -0.0045364960096776485, 0.024659927934408188, + 0.00018780899699777365, 0.0054786913096904755, 0.0022566160187125206, -0.011872436851263046, + 0.0037125598173588514, -0.007712043356150389, 0.00803386326879263, 0.011872436851263046, + 0.035454463213682175, -0.0036989892832934856, 0.023543251678347588, 0.024985624477267265, + 0.014074769802391529, -0.024768494069576263, 0.004296100698411465, 0.005878058262169361, + -0.011554494500160217, -0.026691658422350883, -0.005447672680020332, 0.041720256209373474, + -0.031080814078450203, 0.007006366271525621, 0.008941162377595901, -0.016408933326601982, + 0.007568581495434046, -0.0074483840726315975, -0.01659504510462284, 0.024815021082758904, + 0.0029351518023759127, -0.03923875465989113, 0.0205809585750103, 0.005199522711336613, + 0.0025319077540189028, 0.02115480601787567, -0.009724386967718601, 0.018440663814544678, + 0.0424957238137722, -0.03135998547077179, 0.0653255432844162, 0.03750170022249222, + 0.001533490838482976, 0.030088214203715324, -0.02304695174098015, -0.06026948243379593, + 0.021325409412384033, -0.02872338704764843, 0.02894051931798458, -0.03194934129714966, + 0.01147694792598486, 0.007867136970162392, -0.041410066187381744, 0.0022333520464599133, + -0.004683835431933403, 0.016207311302423477, -0.0033965560141950846, 0.0031891181133687496, + -0.018999001011252403, 0.0035051219165325165, 0.03244563937187195, 0.01566448248922825, + 0.011601022444665432, 0.002163559664040804, 0.011507966555655003, -0.00012419627455528826, + 0.017742739990353584, -0.026179848238825798, -0.005870303604751825, 0.01606772653758526, + -0.015773048624396324, -0.0036427676677703857, 0.012469548732042313, 0.022162916138768196, + -0.03877347335219383, 0.004966881591826677, -0.02362079918384552, 0.009941518306732178, + 0.030537985265254974, -0.009189312346279621, 0.005963359959423542, 0.0009436493855901062, + -0.02227148227393627, -0.02084461785852909, 0.020999712869524956, 0.003660215763375163, + 0.006855149753391743, -0.023899968713521957, -0.007308799307793379, -0.0021150929387658834, + -0.005796634126454592, 0.011756116524338722, -0.03100326843559742, -0.014555561356246471, + 0.004745872691273689, 0.006335585378110409, -0.00036955965333618224, 0.012585869058966637, + 0.007793467957526445, 0.0005011471221223474, -0.02934376336634159, -0.007087790407240391, + 0.017168892547488213, -0.04603186622262001, -0.013880902901291847, 0.004272836726158857, + 0.019169604405760765, 0.004990145564079285, 0.0007429966353811324, 0.005664804019033909, + -0.0011961616110056639, -0.009003199636936188, -0.0158816147595644, -0.02380691096186638, + 0.016889724880456924, -0.0187973789870739, 0.018983490765094757, 0.03291092440485954, + -0.013291546143591404, -0.04044848680496216, -0.02402404323220253, -0.014004978351294994, + -0.0047962781973183155, -0.0290801040828228, 0.007107177283614874, -0.005327474791556597, + 0.007677147164940834, 0.020115677267313004, -0.006564348936080933, 0.0082742590457201, + 0.01228343602269888, -0.008483635261654854, -0.027839353308081627, 0.004625675268471241, + 0.019836507737636566, 0.009220331907272339, -0.04016931727528572, 0.03604381904006004, + 0.010530875064432621, 0.022829819470643997, -0.05000226944684982, -0.01664157398045063, + -0.021371938288211823, -0.0433952696621418, 0.0006921064923517406, 0.026102300733327866, + -0.02746712788939476, 0.010934119112789631, 0.05077773705124855, 0.004063460044562817, + 0.01592814177274704, -0.021092768758535385, 0.012717698700726032, -0.04795502871274948, + 0.009297878481447697, -0.005715209525078535, 0.024706456810235977, -0.023326121270656586, + -0.020642995834350586, -0.03287990391254425, -0.005191768053919077, -0.006568226031959057, + -0.01574978418648243, -0.004156515933573246, -0.027079392224550247, -0.00511034345254302, + -0.05676436051726341, 0.02711041085422039, -0.02501664310693741, -0.03598178178071976, + -0.015478369779884815, 0.00022573430032934994, 0.015137162990868092, -0.026908788830041885, + 0.012834019027650356, -0.010592912323772907, -0.013338074088096619, -0.019123075529932976, + 0.011949984356760979, -0.016626063734292984, 0.009158293716609478, 0.0017544996226206422, + -0.03703641891479492, -0.011469192802906036, -0.003123203059658408, 0.002644350752234459, + 0.028956027701497078, -0.0075647043995559216, 0.03213545307517052, 0.010406799614429474, + 0.042216554284095764, 0.014423731714487076, 0.021806200966238976, 0.020425865426659584, + -0.020425865426659584, -0.05229765921831131, -0.011934474110603333, -0.02027077041566372, + -0.036571137607097626, -0.007165337447077036, -0.022116387262940407, -0.029545385390520096, + 0.03350028023123741, 0.03033636324107647, -0.030181270092725754, -0.018999001011252403, + 0.023202044889330864, 0.0063239531591534615, 0.0055833798833191395, 0.012818509712815285, + -0.007917542941868305, 0.01046883687376976, -0.016036707907915115, -0.009476236067712307, + -0.0060176425613462925, -0.005032796412706375, 0.007211865857243538, 0.016874214634299278, + -0.014284146949648857, 0.03539242595434189, 0.03216647356748581, 0.02774629555642605, + -0.010282725095748901, -0.0031076937448233366, -0.002500888891518116, -0.004276713822036982, + 0.00591683154925704, -0.019541829824447632, 0.034337785094976425, 0.016362404450774193, + 0.007382468786090612, -0.021728653460741043, -0.0292972344905138, -0.03784290701150894, + -0.012097323313355446, -0.017339495941996574, 0.006606999319046736, 0.014338430017232895, + 0.02200782299041748, -0.01277198176831007, -0.018999001011252403, 0.007064526434987783, + 0.0005748167168349028, -0.026784714311361313, 0.03502019867300987, 0.012609132565557957, + 0.02340366691350937, -0.05521342158317566, -0.02501664310693741, -0.02138744667172432, + -0.020379336550831795, -0.04615594074130058, -0.011259816586971283, 0.01758764684200287, + 0.009871725924313068, 0.006510065868496895, 0.06008337065577507, 0.0487615168094635, + 0.0005883874255232513, 0.021496012806892395, 0.012632397003471851, -0.04035542905330658, + 0.01999160274863243, 0.016889724880456924, -0.002613331889733672, -0.011670814827084541, + -0.030972249805927277, -0.07072281092405319, -0.012609132565557957, 0.0013561021769419312, + -0.03663317486643791, -0.01650198921561241, 0.0014152317307889462, 0.07717471569776535, + 0.0032240140717476606, -0.028475238010287285, 0.018177002668380737, -0.038277171552181244, + 0.014167826622724533, -0.002648228080943227, -0.006750461179763079, -0.03430676832795143, + -0.013144207186996937, -0.0036815411876887083, 0.03346925973892212, 0.010647195391356945, + 0.024706456810235977, -0.012849528342485428, -9.432858496438712e-5, 0.004710976965725422, + 0.01754111796617508, -0.00874729547649622, 0.0003128534590359777, -0.03194934129714966, + -0.02782384306192398, 0.035361405462026596, -0.011259816586971283, 0.00204723933711648, + 0.009290123358368874, -0.019247151911258698, 0.0002745646343100816, 0.0234967228025198, + -0.007200233638286591, 0.008778314106166363, 0.013376847840845585, 0.03855634108185768, + -0.001761284889653325, 0.016486480832099915, 0.029684970155358315, -0.011523475870490074, + -0.015493879094719887, -0.011151250451803207, -0.012360982596874237, -0.04392258822917938, + -0.0057578603737056255, -0.040014222264289856, -0.006975347641855478, 0.013803355395793915, + 0.005230541341006756, 0.008824842050671577, 0.0035361405462026596, -0.02613331936299801, + 0.004327119328081608, -0.015106144361197948, -0.018130475655198097, 0.012880546972155571, + -0.03275582939386368, -0.003951016813516617, 0.003892856650054455, -0.0353303886950016, + -0.010050083510577679, -0.009437463246285915, 0.012764226645231247, 0.010251705534756184, + -0.01118226908147335, 0.015300012193620205, 0.004897089675068855, -0.001847555860877037, + 0.0016662899870425463, 0.003828880377113819, -0.008305277675390244, 0.027451617643237114, + -0.021868238225579262, -0.012678924947977066, -0.0021441730204969645, 0.008382824249565601, + -0.010430064052343369, -0.006467415019869804, -0.00011292773706372827, -0.04029339179396629, + 0.0025067050009965897, -0.03557853773236275, -0.029049085453152657, 0.011329608038067818, + -0.0038153096102178097, -0.02048790268599987, 0.012136096134781837, 0.01223690714687109, + -0.01190345548093319, -0.03886652737855911, 0.01937122642993927, -0.023915477097034454, + -0.019603867083787918, 0.025885170325636864, 0.03830818831920624, 0.026319433003664017, + -0.016874214634299278, 0.0016333324601873755, -0.02219393476843834, -0.03247665986418724, + 0.0042650820687413216, -0.013950695283710957, -0.0006116515141911805, -0.029374781996011734, + -0.010934119112789631, -0.003377169370651245, -0.025931697338819504, -0.028506256639957428, + 0.021402956917881966, 0.016812177374958992, 0.008871369995176792, -1.1132226973131765e-5, + -0.0056997002102434635, 0.02165110595524311, 0.031918320804834366, -0.01270218938589096, + -0.006215387489646673, 0.02309347875416279, -0.02421015501022339, 0.03256971761584282, + 0.01927817054092884, 0.010274969972670078, 0.01986752636730671, -0.006110698916018009, + 0.0014724226202815771, 0.01118226908147335, -0.023140007629990578, -0.02228699065744877, + -0.008095900528132915, 0.014935540966689587, -0.0058625489473342896, 0.02680022269487381, + -0.011678569950163364, -0.006095189601182938, -0.01037578098475933, -0.04144108667969704, + -0.007366959471255541, -0.01084881741553545, 0.0024737475905567408, 0.00768490182235837, + 0.026427997276186943, 0.004765259567648172, 0.01955733820796013, 0.02264370769262314, + 0.020906655117869377, -0.003611748805269599, -0.015912633389234543, -0.008227731101214886, + 0.004811787977814674, 0.017386024817824364, -0.0019396429415792227, 0.005920709110796452, + 0.030351873487234116, 0.02402404323220253, -0.009809688664972782, -0.0014947173185646534, + -0.0036737865302711725, 0.010205177590250969, 0.004823419731110334, 0.024086080491542816, + -0.049723099917173386, -0.006459660362452269, -0.011376136913895607, -0.009003199636936188, + 0.005994378589093685, 0.011825908906757832, -0.0044783358462154865, 0.02072054333984852, + -0.00998029112815857, -0.01754111796617508, -0.02250412292778492, 0.028614822775125504, + 0.03439982235431671, 0.007289412431418896, 0.003443084191530943, -0.012516076676547527, + 0.002725775120779872, -0.0003870077198371291, -0.009902744553983212, -0.01735500618815422, + -0.02245759405195713, 0.01246179360896349, -0.02680022269487381, 0.02227148227393627, + 0.00545930489897728, -0.035671595484018326, 0.0088325971737504, 0.011717342771589756, + -0.019448773935437202, -0.006459660362452269, -0.0015703255776315928, 0.0032530941534787416, + -0.013958449475467205, -0.029995158314704895, 0.02689328044652939, 0.014408222399652004, + 0.03520631045103073, 0.008313031867146492, -0.03734660893678665, -0.020022621378302574, + -0.013159716501832008, 0.0447290763258934, -0.044667039066553116, -0.01963488571345806, + 0.0019163788529112935, -0.016486480832099915, -0.022876348346471786, -0.02008465863764286, + 0.0150983901694417, -0.030134741216897964, 0.03750170022249222, -0.023202044889330864, + ], + index: 6, + }, + { + title: "Quebec general election, 1989", + text: "The Quebec general election of 1989 was held on September 25, 1989, to elect members of the National Assembly of the Province of Quebec, Canada. The incumbent Quebec Liberal Party, led by Robert Bourassa, won re-election, defeating the Parti Qu\u00e9b\u00e9cois, led by Jacques Parizeau.This election was notable for the arrival of the Equality Party, which advocated English-speaking minority rights. It won four seats, but never had any success in any subsequent election.", + vector: [ + 0.03476601466536522, 0.007190298289060593, -0.01965864561498165, 0.016584748402237892, + 0.003618977963924408, 0.015810316428542137, 0.037077397108078, 0.02412651851773262, + 0.030524514615535736, 0.0353379026055336, -0.05061207711696625, -0.029356909915804863, + -0.0020924543496221304, -0.003788757137954235, -0.026473641395568848, 0.03128703311085701, + -0.042176730930805206, 0.008608103729784489, -0.00694009754806757, -0.011610515415668488, + -0.04336816072463989, -0.023471230641007423, -0.017275778576731682, 0.006153751630336046, + 0.00021538874716497958, 0.012140702456235886, 0.007476242259144783, 0.02257765643298626, + 0.016465604305267334, 0.03393201157450676, 0.014261453412473202, -0.006123965606093407, + 0.051803506910800934, -0.02552049607038498, -0.0023054229095578194, -0.049325328320264816, + 0.032883550971746445, -0.00614183722063899, 0.007214127108454704, -0.01494057010859251, + 0.013701479882001877, 0.01340362150222063, -0.02230362594127655, -0.04036575183272362, + 0.03383670002222061, -0.020468819886446, -0.005129119381308556, 0.020969221368432045, + -0.032049547880887985, -0.013034277595579624, 0.03826883062720299, 0.040889982134103775, + -0.00129642803221941, 0.04498851299285889, 0.006409909576177597, -0.028141647577285767, + 0.00757751427590847, 0.021636424586176872, 0.011562857776880264, -0.045917827636003494, + -0.02985731139779091, -0.005578885320574045, -0.005081461742520332, 0.007780057843774557, + 0.006159708835184574, -0.023375915363430977, -0.01906292885541916, 0.031930405646562576, + 0.0037440783344209194, -0.0059333364479243755, 0.03397966921329498, 0.0221487395465374, + 0.008220887742936611, -0.0013165335403755307, 0.02480563521385193, 0.05432934686541557, + 0.01796681061387062, -0.0037768427282571793, -0.09164503216743469, 0.04055638238787651, + 0.02835610695183277, -0.018753156065940857, 0.02244659885764122, 0.03619573637843132, + -0.03531407564878464, -0.033026523888111115, 0.06338423490524292, -0.056330952793359756, + 0.02399546094238758, 0.024019289761781693, -0.008739161305129528, -0.003866200102493167, + 0.04741903394460678, -0.01934887282550335, 0.06004822626709938, -0.0026479598600417376, + 0.013105763122439384, -0.03588596358895302, -0.0009203820372931659, -0.015643516555428505, + 0.013367878273129463, -0.010055694729089737, 0.0252583809196949, 0.018133610486984253, + 0.06257406622171402, -0.043963879346847534, -0.056855183094739914, 0.016477519646286964, + 0.041318897157907486, 0.05080270394682884, -0.026449812576174736, 0.012498132884502411, + -0.017466409131884575, 0.01093735545873642, -0.030953429639339447, -0.003991300705820322, + 0.02706935815513134, 0.010055694729089737, -0.041581012308597565, 0.031072573736310005, + 0.029833482578396797, -0.04596548527479172, 0.020528391003608704, -0.00896553322672844, + -0.011038627475500107, -0.023900147527456284, 0.008250674232840538, -0.01725194975733757, + -0.05390043184161186, 0.014094652608036995, -0.017025578767061234, 0.009209777228534222, + -0.037792254239320755, -0.014511654153466225, 0.017216207459568977, -0.003118576016277075, + -0.011759444139897823, -0.034146469086408615, -0.004718075040727854, -0.011413928121328354, + 0.0035385561641305685, 0.042700961232185364, 0.08096978813409805, 0.017573637887835503, + 0.019110586494207382, -0.0282131340354681, 0.044678740203380585, 0.05528249219059944, + -0.011693915352225304, 0.026878729462623596, 0.02976199798285961, -0.0207785926759243, + 0.014392510987818241, -0.01614391803741455, 0.013081934303045273, 0.05413871631026268, + 0.00037902462645433843, 0.03173977509140968, 0.022804027423262596, 0.0316682904958725, + -0.030476856976747513, -0.0017082170816138387, -0.007839629426598549, -0.017561722546815872, + -0.0009322963305748999, -0.014142310246825218, 0.030619829893112183, 0.025163065642118454, + -0.04739520698785782, 0.009930594824254513, 0.028975650668144226, 0.009215734899044037, + -0.03657699376344681, -0.01696600578725338, -0.021255165338516235, -0.01458314061164856, + -0.020552219823002815, 0.028093991801142693, -0.01003782358020544, 0.02692638710141182, + -0.02985731139779091, 0.043272849172353745, -0.013629994355142117, -1.1286035714874743e-6, + 0.03550470620393753, -0.09788814187049866, 0.030119426548480988, -0.029356909915804863, + 0.008596189320087433, -0.02747444622218609, -0.023530801758170128, 0.006612453144043684, + 0.05571140721440315, 0.01739492267370224, -0.034146469086408615, 0.020647535100579262, + -0.01628688909113407, 0.026759585365653038, -0.04000832140445709, 0.009853151626884937, + 0.03814968466758728, -0.05223242565989494, 0.017323436215519905, -0.012450475245714188, + 0.020587962120771408, 0.034027326852083206, 0.020290104672312737, 0.05537780746817589, + 0.015619686804711819, -0.010204624384641647, 0.0066481963731348515, -0.03305035084486008, + 0.0169540923088789, 0.011282870545983315, -0.018598269671201706, 0.01697792112827301, + 0.021684080362319946, 0.028927994892001152, 0.008715332485735416, -0.029785826802253723, + 0.019468015059828758, 0.002155004534870386, 0.0019599073566496372, -0.01557203009724617, + 0.008542574942111969, -0.01922972872853279, 0.02426949143409729, 0.042176730930805206, + 0.023173373192548752, 0.008709375746548176, -0.01653709076344967, 0.03383670002222061, + -0.019420359283685684, 0.0426771305501461, 0.002362015889957547, 0.0647663027048111, + -0.019813532009720802, -0.012087088078260422, -0.03445624187588692, -0.0009777197847142816, + 0.05008784309029579, -0.036553166806697845, -0.018264668062329292, 0.047323718667030334, + 0.0006403952720575035, 0.018681669607758522, -0.0230184867978096, 0.03467070311307907, + -0.03843563050031662, 0.040937639772892, 0.00933487806469202, -0.02888033725321293, + -0.015941374003887177, -0.014440168626606464, 0.013475107960402966, -0.01725194975733757, + -0.018622098490595818, -0.02761741727590561, 0.0035355775617063046, -0.048729609698057175, + -0.001976289553567767, 0.0025020092725753784, -0.013260649517178535, 0.07320164889097214, + -0.024877121672034264, -0.014880998991429806, 0.011676044203341007, 0.0063384235836565495, + -0.02092156372964382, -0.03283589333295822, 0.009793579578399658, -0.06500458717346191, + -0.0094718923792243, 0.007231998723000288, -0.009513592347502708, 0.04587017372250557, + -0.006481395568698645, -0.04315370321273804, 0.00018253126472700387, 0.041438039392232895, + 0.011908372864127159, 0.0350281298160553, -0.04220055788755417, -0.06076308339834213, + 0.04377324879169464, 0.001992671750485897, -0.009614864364266396, 0.0013277032412588596, + -0.017907237634062767, -0.01725194975733757, -0.018574440851807594, 0.004411280620843172, + 0.006085244473069906, -0.020027989521622658, 0.006344380788505077, 0.020373504608869553, + 0.0059333364479243755, -0.01311767753213644, 0.02216065488755703, 0.07358290255069733, + 0.023352088406682014, 0.02835610695183277, 0.012158574536442757, -0.03362223878502846, + -0.03660082444548607, -0.01080629788339138, 0.06514755636453629, 0.05299494042992592, + 0.02621152624487877, -0.029380738735198975, -0.02540135197341442, 0.0013708926271647215, + -0.050707388669252396, -0.0319780632853508, 0.04072318226099014, -0.01809786818921566, + 0.03745865449309349, 0.014392510987818241, 0.026854900643229485, 0.018836556002497673, + 0.05780833214521408, 0.05204179510474205, -0.00918594840914011, 0.0256634671241045, + 0.04305839166045189, -0.034027326852083206, 0.0442974790930748, 0.0012346224393695593, + -0.05204179510474205, -0.01458314061164856, -0.015536286868155003, -0.0282131340354681, + -0.03419412672519684, 0.00828641653060913, -0.0006463524186983705, -0.007220084313303232, + -0.0015980096068233252, 0.023483145982027054, -0.013999338261783123, -0.015595858916640282, + -0.007077112328261137, 0.022077254951000214, -0.005495484918355942, 0.04193844273686409, + -0.03266909345984459, -0.06057245656847954, -0.0004765732155647129, -0.018205096945166588, + 0.017180465161800385, 0.02845142036676407, 0.00048513663932681084, 0.040747009217739105, + 0.060667771846055984, -0.024055033922195435, 0.02105262130498886, 0.0527566559612751, + -0.008709375746548176, -0.044273652136325836, 0.03617190569639206, -0.07258210331201553, + 0.04553657025098801, 0.02428140491247177, -0.012641104869544506, 0.06738745421171188, + 0.04336816072463989, 0.01878889836370945, 0.0035206845495849848, 0.023947803303599358, + -0.010901612229645252, 0.013070020824670792, 0.03824499994516373, -0.007118812296539545, + -0.03776842728257179, 0.027951018884778023, 0.003615999361500144, -0.004086615517735481, + -0.03993683680891991, 0.02623535506427288, -0.015012056566774845, -0.027522103860974312, + -0.03369372710585594, 0.05690284073352814, -0.08144636452198029, 0.03538556024432182, + 0.015643516555428505, -0.05223242565989494, 0.04162866994738579, 0.029428396373987198, + -0.005316769704222679, -0.02258956991136074, -0.04108061268925667, 0.013010448776185513, + -0.08035024255514145, 0.014559311792254448, -0.04193844273686409, -0.032764408737421036, + 0.01199177373200655, 0.013856366276741028, 0.02368568815290928, -0.010764597915112972, + -0.008888090029358864, 0.020468819886446, -0.007297527510672808, 0.003779821330681443, + 0.043820906430482864, 0.005897593684494495, 0.015429058112204075, -0.059095077216625214, + -0.01052631065249443, 0.030929600819945335, -0.01432102546095848, -0.00680903997272253, + -0.046513546258211136, -7.083441596478224e-5, 0.027402959764003754, -0.007827715016901493, + -0.03478984534740448, 0.036386363208293915, -0.017204293981194496, 0.0072022126987576485, + -0.013737223111093044, 0.03929346054792404, -0.01557203009724617, -0.005540163721889257, + 0.05332854390144348, -0.04329667612910271, -0.021529195830225945, -0.0032228264026343822, + 0.04672800377011299, -0.022613398730754852, 0.01653709076344967, 0.00470318179577589, + -0.012295588850975037, 0.010151009075343609, 0.028522906824946404, -0.0002606259658932686, + -0.023173373192548752, -0.007321355864405632, 0.03671996667981148, -0.0176689513027668, + 0.003097725799307227, 0.02723615989089012, -0.013761051930487156, -0.04961127042770386, + 0.0024230768904089928, 0.04880109801888466, -0.025020094588398933, 0.052280083298683167, + 0.007857500575482845, 0.03407498449087143, -0.0024052055086940527, -0.012807904742658138, + 0.02666427195072174, 0.005352512933313847, 0.030834287405014038, 0.004709139000624418, + 0.005373362917453051, -0.04563188552856445, 0.012927048839628696, -0.01046078186482191, + -0.036982081830501556, -0.03953174874186516, -0.04584634304046631, -0.010162923485040665, + -0.04670417681336403, 0.01654900424182415, -0.001986714545637369, -0.016763463616371155, + -0.018979528918862343, -0.010728854686021805, 0.04208141565322876, -0.004333837889134884, + -0.03552853316068649, 0.020587962120771408, 0.02286360040307045, 0.017466409131884575, + -0.04470256716012955, -0.010573968291282654, -0.05289962515234947, 0.018848471343517303, + 0.009775708429515362, 0.002737317467108369, 0.011342442594468594, 0.0011378185590729117, + -0.014845255762338638, -0.02020670473575592, -0.008304288610816002, -0.062049832195043564, + 0.004977211356163025, 0.028570564463734627, 0.009835279546678066, -0.012426646426320076, + 0.007690700236707926, 0.013808708637952805, 0.059095077216625214, -0.0033598411828279495, + -0.002545198891311884, 0.050993334501981735, 0.06433738768100739, -0.0052035837434232235, + 0.008405559696257114, -0.007416670676320791, 0.03126320242881775, -0.032740578055381775, + 0.02020670473575592, -0.005340598523616791, -0.0017797030741348863, 0.0239835474640131, + -0.014178053475916386, 0.028093991801142693, 0.07286804169416428, -0.03042919933795929, + 0.002874332247301936, 0.01880081370472908, -0.028713535517454147, -0.04260564595460892, + 0.020945392549037933, -0.02244659885764122, -0.004762753378599882, -0.023602288216352463, + 0.021386222913861275, 0.03717271238565445, 0.023626117035746574, 0.046894803643226624, + -0.0015726916026324034, 0.05146990716457367, 0.0070473263040184975, -0.02339974418282509, + -0.0019435251597315073, 0.022839771583676338, -0.003633870743215084, 0.007470285054296255, + 0.01507162768393755, 0.0202186182141304, 0.03152531757950783, -0.028856508433818817, + -0.009978251531720161, -0.01199773047119379, -0.019718216732144356, -0.034146469086408615, + 0.04405919462442398, 0.0006690641166642308, 0.010794383473694324, -0.013939766213297844, + -0.014142310246825218, 0.0017648101784288883, -0.011259042657911777, -0.002012032549828291, + 0.018002552911639214, -0.013761051930487156, 0.008328116498887539, -0.03624339401721954, + 0.024591177701950073, 0.014690369367599487, -0.0033300553914159536, -0.03252612054347992, + 0.007428585086017847, -0.004152144305408001, 0.03157297521829605, -0.025496667250990868, + 0.007172426674515009, -0.002035861136391759, 0.02247042767703533, -0.005263155326247215, + 0.014845255762338638, 0.00479849660769105, 0.0035921705421060324, 0.032740578055381775, + -0.027545932680368423, -0.012438560836017132, 0.029070965945720673, -0.004744882229715586, + 0.01177731528878212, -0.04903938248753548, 0.01866975612938404, 0.0353379026055336, + 0.021695995703339577, -0.010013994760811329, -0.013415535911917686, -0.018896127119660378, + -0.03069131448864937, -0.00994846597313881, 0.03662465140223503, 0.058570846915245056, + -0.007541771046817303, 0.026688100770115852, -0.00890000443905592, 0.02876119315624237, + 0.00662436755374074, 0.022911258041858673, -0.02256574109196663, -0.0005960888229310513, + -0.006296723615378141, -0.01906292885541916, -0.03069131448864937, 0.04034192115068436, + 0.0017469386802986264, -0.03235932067036629, 0.049706585705280304, 0.06834059953689575, + 0.013808708637952805, 0.039484091103076935, -0.03059600107371807, -0.009293178096413612, + -0.004727010615170002, 0.0037738641258329153, -0.014142310246825218, 0.008870218880474567, + -0.004762753378599882, -0.013355964794754982, -0.06977032124996185, 0.022506169974803925, + 0.0092693492770195, -0.020814334973692894, -0.010484610684216022, -0.015452886931598186, + -0.005459741689264774, -0.008149402216076851, 0.05985759571194649, -0.028093991801142693, + -0.005629521328955889, -0.040889982134103775, -0.008375774137675762, -0.00013673555804416537, + 0.057713016867637634, 0.04372559115290642, -0.04641823098063469, 0.014332939870655537, + 0.0304530281573534, -0.005346555728465319, -0.04780029505491257, 0.03412264212965965, + 0.023316344246268272, 0.04053255170583725, -0.009543378837406635, 0.013725308701395988, + 0.042581815272569656, 0.009346792474389076, -0.02511540800333023, 0.04513148218393326, + 0.012367075309157372, 0.02286360040307045, 0.025877926498651505, 0.014487825334072113, + -0.011253084987401962, -0.017895324155688286, 0.038078200072050095, -0.02623535506427288, + -0.00473594618961215, -0.026545127853751183, -0.03633870929479599, 0.028951823711395264, + 0.03979386389255524, 0.0009263391839340329, -0.014988227747380733, 0.009078719653189182, + -0.01582222990691662, 0.010979055427014828, -0.007887287065386772, -0.01753789372742176, + -0.002752210246399045, -0.02329251542687416, -0.021672166883945465, 0.014952484518289566, + -0.013927851803600788, -0.008715332485735416, 0.05971462279558182, 0.01038929633796215, + 0.02330443076789379, -0.03405115753412247, -0.027283815667033195, 0.04305839166045189, + 0.005004018545150757, -0.0022130869328975677, 0.015333742834627628, 0.040484894067049026, + 0.0031960192136466503, -0.024174176156520844, -0.011533072218298912, 0.022529998794198036, + 3.316000220365822e-5, 0.007702614646404982, 0.005173798184841871, 0.0022130869328975677, + -0.019968418404459953, 0.01074076909571886, 0.026878729462623596, 0.005307834129780531, + -0.019420359283685684, -0.007106897886842489, 0.025449009612202644, -0.035957448184490204, + -0.01382062304764986, 0.03884071856737137, -0.03886454552412033, -0.05399574711918831, + 0.012795991264283657, 0.016918350011110306, -0.04682331904768944, -0.013379792682826519, + -0.026330670341849327, -0.00988293718546629, 0.027665074914693832, 0.02036159113049507, + -0.021695995703339577, 0.002914543030783534, -0.004706160631030798, 0.055044207721948624, + -0.03269292414188385, 0.00960294995456934, -0.014058910310268402, -0.004280223045498133, + -0.025139236822724342, 0.01016888115555048, 0.02902330830693245, -0.008036215789616108, + 0.016751548275351524, -0.0137491375207901, -0.030214741826057434, -0.002569027477875352, + 0.03550470620393753, 0.04196227341890335, -0.014261453412473202, 0.029904969036579132, + -0.03741099685430527, 0.033336296677589417, -0.014225710183382034, 0.008054086938500404, + -0.012772162444889545, 0.016858777031302452, -0.018038297072052956, 0.03917431831359863, + 0.0013344050385057926, 0.00393172912299633, 0.05218476802110672, 0.0021147937513887882, + -0.006201408803462982, -0.010627582669258118, -0.01975395902991295, -0.02471032179892063, + 0.046060800552368164, -0.04849132522940636, 0.008757032454013824, 0.00975187961012125, + -0.03071514330804348, 0.014916741289198399, 0.021255165338516235, -0.04320136085152626, + -0.01794298179447651, 0.02592558227479458, -0.0015071628149598837, 0.0004966786364093423, + 0.04353496432304382, -0.02652129903435707, -0.009662522003054619, 0.02036159113049507, + 0.0061358800157904625, -0.025973239913582802, -0.022935086861252785, 0.005263155326247215, + 0.008542574942111969, 0.005832064896821976, 0.01478568371385336, 0.011372228153049946, + -0.023506972938776016, 0.02227979712188244, 0.009126377291977406, 0.03285972401499748, + -0.002921989420428872, 0.03042919933795929, 0.02175556682050228, 0.029142452403903008, + 0.02637832798063755, 0.010681197047233582, 0.0224585123360157, 0.018622098490595818, + -0.02088582143187523, -0.005668242461979389, -0.0004929554415866733, 0.04293924570083618, + -0.07124769687652588, 0.04903938248753548, 0.030262399464845657, 0.011676044203341007, + -0.030119426548480988, -0.02904713712632656, 0.022637227550148964, 0.016620490700006485, + -0.02230362594127655, -0.04022277891635895, -0.028141647577285767, -0.0007759207510389388, + 0.02355463057756424, -0.008947662077844143, -0.004041936714202166, 0.00043152214493602514, + 0.02049264870584011, -0.021672166883945465, -0.019563330337405205, -0.017180465161800385, + 0.02930925227701664, -0.021517280489206314, -0.03576682135462761, -0.01423762459307909, + 0.0035981277469545603, -0.028522906824946404, 0.018300412222743034, -0.01570308767259121, + 0.035409390926361084, -0.030905773863196373, 0.03319332376122475, -0.05432934686541557, + 0.004569145850837231, -0.03517110273241997, 0.029213938862085342, 0.013070020824670792, + -0.019182071089744568, -0.009281263686716557, -0.01452356856316328, 0.009942508302628994, + -0.02230362594127655, -0.011014798656105995, -0.006856697145849466, -0.051279276609420776, + -0.04701394587755203, 0.015655430033802986, -0.0010358020663261414, 0.029666682705283165, + 0.003130490193143487, 0.058856792747974396, 0.008971490897238255, 0.016799205914139748, + 0.023912061005830765, 0.021493451669812202, 0.028570564463734627, 0.015667345374822617, + 0.008250674232840538, 0.0367676243185997, 0.022255968302488327, 0.032621435821056366, + -0.03195423260331154, -0.020373504608869553, -0.0056027136743068695, 0.0006344380672089756, + -0.00286092865280807, -0.01810978166759014, -0.042867761105298996, 0.0095969932153821, + -0.007833672687411308, -0.006284809205681086, -0.015893716365098953, 0.004161079879850149, + -0.007696657441556454, 0.024221833795309067, -0.07115238159894943, -0.002354569500312209, + 0.01276024803519249, 0.005641435272991657, 0.0024498840793967247, 0.0033300553914159536, + 0.024877121672034264, -0.005298898555338383, 0.029118623584508896, -0.013260649517178535, + 0.016894521191716194, -0.0010186752770096064, 0.0167038906365633, -0.05342385917901993, + -0.041723985224962234, -0.047895606607198715, 0.009442106820642948, 0.036386363208293915, + 0.03159680590033531, -0.02119559422135353, 0.020135218277573586, 0.0010328234639018774, + -0.004619781393557787, -0.03955557569861412, 0.03366989642381668, 0.019277386367321014, + -0.006535010412335396, -0.04615611582994461, -0.029833482578396797, -0.04231970012187958, + 0.0013277032412588596, 0.03834031522274017, -0.013558507896959782, -0.005727814510464668, + -0.025067750364542007, 0.013558507896959782, 0.005671221297234297, -0.017335351556539536, + 0.01234324648976326, -0.016465604305267334, 0.01473802700638771, -0.02552049607038498, + -0.011699872091412544, -0.045226797461509705, 0.010550139471888542, 0.01276024803519249, + 0.010615668259561062, 0.0033628197852522135, 0.04801475256681442, -0.0005011465400457382, + 0.034432414919137955, 0.0361480787396431, 0.030905773863196373, 0.030119426548480988, + -0.0013291924260556698, 0.02807016298174858, -0.031930405646562576, 0.0609060563147068, + -0.022267883643507957, -0.016477519646286964, 0.03266909345984459, 0.005227412562817335, + 0.015035885386168957, -0.028236962854862213, -0.013379792682826519, 0.01754980906844139, + 0.013677651062607765, 0.007470285054296255, 0.010180795565247536, 0.011670086532831192, + -0.02818930521607399, -0.005951208062469959, 0.009799536317586899, -0.016727719455957413, + 0.023328259587287903, 0.008208973333239555, -0.011211385019123554, -0.0026479598600417376, + 0.0330980084836483, 0.017704695463180542, 0.039341118186712265, 0.025615809485316277, + 0.055044207721948624, -0.03319332376122475, 0.013570422306656837, 0.02451969124376774, + -0.008739161305129528, 0.0073570990934967995, 0.01291513442993164, -0.04363027960062027, + -0.009459977969527245, 0.04293924570083618, -0.0066422391682863235, 0.02678341418504715, + 0.020123304799199104, -0.01128882821649313, 0.01821701042354107, -0.023733345791697502, + 0.0195037592202425, 0.022375112399458885, 0.007607299834489822, 0.024638835340738297, + -0.015464800409972668, -0.025973239913582802, -0.07191489636898041, -0.04072318226099014, + -0.013093848712742329, -0.008864262141287327, -0.02158876694738865, 0.019742045551538467, + 0.024472035467624664, 0.012295588850975037, 0.016298804432153702, -0.002147558145225048, + 0.013320221565663815, -0.013939766213297844, -0.0095969932153821, 0.04401153698563576, + -0.02088582143187523, 0.05780833214521408, -0.011181599460542202, 0.006463524419814348, + 0.029833482578396797, 0.007410713471472263, 0.011056498624384403, 0.053948089480400085, + 0.051136307418346405, 0.036672309041023254, 0.0042444802820682526, -0.029261594638228416, + 0.0011832419550046325, 0.057855989784002304, -0.006963925901800394, 0.047919437289237976, + -0.002211597515270114, -0.016382204368710518, -0.006749468389898539, -0.0010156966745853424, + 0.00856640376150608, -0.010627582669258118, 0.043582621961832047, -0.031024916097521782, + -0.007887287065386772, -0.007220084313303232, 0.01017483789473772, -0.007619214244186878, + 0.011652215383946896, -0.009376578032970428, -0.029690511524677277, 0.02017096057534218, + -0.012295588850975037, 0.043820906430482864, -0.0692460909485817, 0.006278852000832558, + -0.02876119315624237, -0.0037947141099721193, 0.011967944912612438, -0.016858777031302452, + -0.006511181592941284, -0.016501348465681076, -0.031024916097521782, -0.003806628519669175, + -0.019956503063440323, 0.018002552911639214, 0.01920589990913868, -0.00042407569708302617, + -0.03459921479225159, 0.027259988710284233, -0.0057367500849068165, 0.028713535517454147, + -0.02244659885764122, 0.005843978840857744, 0.03073897212743759, -0.015035885386168957, + -0.020861992612481117, -0.020016074180603027, 0.007273698691278696, -0.004041936714202166, + -0.00498614739626646, 0.023066144436597824, -0.046656519174575806, -0.04334433376789093, + 0.0030173042323440313, 0.06896014511585236, -0.008691503666341305, 0.0002150164364138618, + -0.009102548472583294, 0.007857500575482845, 0.008739161305129528, -0.02176748216152191, + 0.02761741727590561, 0.013594251126050949, -0.0013411068357527256, 0.004286180250346661, + 0.016322633251547813, 0.036982081830501556, 0.027259988710284233, -0.010311853140592575, + -0.010907569900155067, 0.03131086006760597, -0.027688903734087944, 0.0041640582494437695, + -0.005662285722792149, -0.0020567113533616066, -0.020123304799199104, -0.0024364804849028587, + 0.006552881561219692, 0.0010075055761262774, 0.004027043469250202, 0.023375915363430977, + -0.004619781393557787, 0.015643516555428505, 0.005692071281373501, 0.036386363208293915, + -0.005373362917453051, -0.021362394094467163, 0.016072431579232216, 0.016215404495596886, + 0.01906292885541916, 0.011497328989207745, 0.007684743031859398, 0.025973239913582802, + -0.01922972872853279, 0.004015129525214434, -0.04105678200721741, 0.003059004433453083, + 0.019456101581454277, 0.0013656801311299205, -0.009853151626884937, -0.024924779310822487, + -0.011467543430626392, -0.01570308767259121, 0.005614628084003925, -0.013236820697784424, + 0.022506169974803925, -0.010002080351114273, 0.0010253770742565393, 0.0066481963731348515, + 0.013892109505832195, -0.02482946403324604, 8.149215864250436e-5, 0.017561722546815872, + -0.01807403936982155, 0.039007518440485, -0.02807016298174858, -0.005093376152217388, + -0.012676847167313099, -0.04489319771528244, -0.02523455210030079, -0.03800671547651291, + -0.016370289027690887, 0.04322519153356552, -0.035576190799474716, 0.010496525093913078, + -0.012075173668563366, 0.021350480616092682, 0.022827856242656708, -0.01964673027396202, + 0.015166942961513996, -0.0006981053156778216, 0.006022694054991007, -0.009293178096413612, + -0.01234324648976326, -0.0017216207925230265, 0.01696600578725338, -0.014845255762338638, + -0.008864262141287327, -0.02764124609529972, 0.026711929589509964, 0.01225984562188387, + 0.012879391200840473, -0.019146328791975975, -0.002701574470847845, -0.008524703793227673, + 0.02256574109196663, 0.004503617063164711, 0.0013686587335541844, -0.022923171520233154, + -0.005388255696743727, -0.008137487806379795, 0.024019289761781693, 0.01683494821190834, + -0.020099475979804993, -0.03216869384050369, 0.02357845939695835, -0.012784076854586601, + -0.0006359273684211075, -0.02088582143187523, 0.01029993873089552, 0.03884071856737137, + 0.030238570645451546, -0.03266909345984459, -0.0015295022167265415, -0.0535668283700943, + 0.028141647577285767, 0.01045482512563467, 0.013582336716353893, 0.014475911855697632, + -0.016787292435765266, 0.02145770937204361, -0.007208169903606176, -0.004718075040727854, + 0.010556097142398357, -0.02188662439584732, 0.019003357738256454, 0.027593588456511497, + -0.0353379026055336, 0.007077112328261137, 0.0011750508565455675, -0.00579036446288228, + 0.0027924212627112865, 0.00017192006635013968, -0.01781192421913147, -0.03281206637620926, + 0.022387025877833366, -0.018753156065940857, 0.0037262067198753357, -0.020302018150687218, + -0.024233747273683548, -0.02273254282772541, 0.023185286670923233, 0.02018287591636181, + 0.0014796109171584249, -0.01740683615207672, 0.019384615123271942, -0.021267078816890717, + -0.014249539002776146, 0.023769089952111244, 0.01410656701773405, 0.012533875182271004, + -0.0038870503194630146, 0.018014468252658844, 0.03800671547651291, 0.005745685659348965, + -0.010752683505415916, -0.0022726585157215595, 0.011878587305545807, 0.01951567269861698, + 0.055759064853191376, 0.002303933724761009, -0.06238343566656113, -0.00588865764439106, + 0.027117015793919563, -0.03717271238565445, 0.007023497950285673, 0.03383670002222061, + 0.017871495336294174, -0.002913053845986724, 0.026283012703061104, 0.019265472888946533, + -0.007214127108454704, -0.010043780319392681, -0.02454352006316185, -0.0011757954489439726, + 0.017990639433264732, 0.025901753455400467, 0.03965089097619057, -0.014606969431042671, + 0.02202959731221199, 0.03300269693136215, 0.028022505342960358, -0.030405370518565178, + 0.012426646426320076, 0.016036689281463623, 0.00882851891219616, -0.018062124028801918, + 0.03448007255792618, -0.021505367010831833, 0.008679589256644249, 0.020528391003608704, + -0.021827053278684616, 0.02243468351662159, 0.00030530471121892333, -0.014225710183382034, + -0.007017540745437145, -0.011938159354031086, -0.019003357738256454, -0.055187176913022995, + -0.014749941416084766, -0.023876318708062172, -0.004167037084698677, -0.008363859727978706, + -0.04022277891635895, 0.00691031152382493, -0.023733345791697502, 0.002729870844632387, + 0.04679948836565018, 0.011610515415668488, -0.01544097252190113, 0.016477519646286964, + -0.008977447636425495, 0.0066481963731348515, -0.013439364731311798, -0.021088365465402603, + 0.016858777031302452, -0.013415535911917686, 0.01129478495568037, -0.0301432553678751, + -0.004604888614267111, -0.021004963666200638, -0.016334546729922295, 0.014690369367599487, + 0.00027198181487619877, -0.011479456909000874, -0.005590799730271101, -0.006832868326455355, + 0.06076308339834213, 0.011241170577704906, 0.0006441184668801725, 0.021088365465402603, + 0.040937639772892, 0.005036782938987017, -0.008584274910390377, -0.0028028462547808886, + 0.010264195501804352, 0.008846390061080456, 0.01024036668241024, 0.0330980084836483, + -0.0010075055761262774, 0.036672309041023254, 0.006368209607899189, 0.004762753378599882, + 0.007815800607204437, 0.0055550565011799335, -0.02048073336482048, 0.014475911855697632, + 0.005295919720083475, -0.028665879741311073, -0.021517280489206314, 0.012390903197228909, + -0.0028892250265926123, -0.013165335170924664, -0.025711124762892723, -0.014201881363987923, + 0.00010853210551431403, 0.025329865515232086, 0.00826258771121502, 0.026330670341849327, + 0.01782383769750595, -0.012015602551400661, 0.0092693492770195, -0.02299465797841549, + 0.0092693492770195, -0.012617276050150394, 0.0032406977843493223, 0.03619573637843132, + 0.014023167081177235, 0.004214694257825613, -0.01905101351439953, -0.01416613906621933, + 0.03643402084708214, -0.0013545104302465916, 0.0011988794431090355, -0.014428254216909409, + -0.03426561504602432, 0.025901753455400467, 0.018062124028801918, -0.015679258853197098, + -0.014880998991429806, -0.01093735545873642, -0.009555293247103691, -0.01353467907756567, + -0.017776180058717728, 0.003809607122093439, 0.02092156372964382, -0.03138234466314316, + 0.018455298617482185, 0.01783575303852558, 0.0021147937513887882, 0.008137487806379795, + -0.005248262546956539, -0.00988293718546629, -0.007559642661362886, -0.030405370518565178, + -0.03321715444326401, -0.007321355864405632, -0.008161316625773907, -0.006963925901800394, + -0.004610845819115639, -0.03464687243103981, -0.03164445981383324, -0.03169211745262146, + 0.014440168626606464, 0.015786487609148026, 0.03181126341223717, 0.0005115715321153402, + -0.008018344640731812, 0.035409390926361084, -4.230518243275583e-5, 0.014225710183382034, + 0.004655524622648954, -0.013487022370100021, 0.045369770377874374, -0.02471032179892063, + -0.008208973333239555, 0.0028311428613960743, -0.022196397185325623, -0.011866672895848751, + 0.0009300624369643629, -0.010579925030469894, 0.02412651851773262, 0.0322878360748291, + -0.0012606850359588861, 0.026711929589509964, -0.013093848712742329, 0.0079945158213377, + -0.0015190771082416177, -0.010204624384641647, -0.001805021078325808, -0.007887287065386772, + 0.013653822243213654, -0.01740683615207672, -0.00997229479253292, 0.0057784500531852245, + -0.030667485669255257, 0.02357845939695835, 0.013641907833516598, 0.004551274236291647, + -0.01136031374335289, 0.019468015059828758, 0.03903134539723396, -0.03521876037120819, + -0.009674436412751675, 0.036100421100854874, -0.023221030831336975, -0.004461916629225016, + 0.009728050790727139, -0.003291333792731166, -0.03378904238343239, -0.009990165941417217, + -0.006850739941000938, -0.02540135197341442, -0.0005309323314577341, 0.020576048642396927, + -0.013808708637952805, -0.005298898555338383, -0.0009993144776672125, 0.046918634325265884, + -0.02413843385875225, 0.0020864971447736025, -0.01740683615207672, 0.016656232997775078, + 0.018741242587566376, 0.0017365136882290244, 0.008620018139481544, -0.037506312131881714, + -0.016334546729922295, 0.016656232997775078, 0.020004160702228546, -0.01478568371385336, + 0.01078842580318451, 0.013582336716353893, 0.01906292885541916, -0.02062370628118515, + -0.005525270942598581, -0.015631601214408875, 0.016036689281463623, 0.004476809408515692, + 0.01709706336259842, 0.014618883840739727, 0.024900950491428375, 0.03519493341445923, + -0.011110113002359867, 0.026878729462623596, -0.010258238762617111, -0.027164673432707787, + 0.0055818636901676655, -0.004840196575969458, 0.003273462178185582, 0.00047024371451698244, + -0.017156636342406273, -0.043129876255989075, -0.01625114679336548, 0.015107370913028717, + 0.03888837620615959, 0.0015280129155144095, -0.004265330266207457, -0.0019211857579648495, + -0.026044726371765137, -0.034003499895334244, -0.020981136709451675, 0.026902558282017708, + -0.018705498427152634, -0.011652215383946896, -0.019718216732144356, -0.01684686355292797, + -9.559388854540884e-5, 0.019575245678424835, 0.019670559093356133, 0.019527588039636612, + 0.00848300289362669, -0.009346792474389076, -0.017716608941555023, 0.03545704856514931, + -0.009626778773963451, -0.002396269701421261, -0.016620490700006485, -0.015238428488373756, + -0.025973239913582802, 0.030238570645451546, -0.028403762727975845, 0.022768285125494003, + 0.006451610010117292, -0.0032138905953615904, 0.004661481827497482, -0.02339974418282509, + -0.02005181834101677, 0.038769230246543884, -0.030905773863196373, 0.014189967885613441, + -0.012378989718854427, 0.009781665168702602, -0.006707767955958843, 0.02818930521607399, + 0.021004963666200638, 0.009525506757199764, -0.01851486973464489, 0.02664044313132763, + 0.04965892806649208, 0.011181599460542202, -0.030214741826057434, -0.0364578515291214, + 0.038078200072050095, -0.007750271819531918, -0.039221975952386856, -0.010210581123828888, + 0.007786015048623085, 0.0071545555256307125, -0.026425985619425774, -0.0031692117918282747, + 0.028713535517454147, 0.03336012363433838, 0.016501348465681076, 0.012462389655411243, + 0.019610987976193428, 0.018765069544315338, -0.01115777064114809, 0.004569145850837231, + -0.0007420394103974104, -0.018717413768172264, 0.01809786818921566, -0.007547728251665831, + 0.025067750364542007, -0.032073378562927246, -0.005593778099864721, 0.019110586494207382, + -0.0024498840793967247, 0.008095787838101387, -0.011253084987401962, -0.01713280752301216, + -0.0005294430302456021, 0.01628688909113407, 0.0008347477996721864, -0.0015786488074809313, + -0.0022369155194610357, 0.008399602957069874, 0.005447827745229006, 0.004673396237194538, + 0.027665074914693832, -0.009829322807490826, 0.009632736444473267, -0.06214514747262001, + 0.019873103126883507, -0.006403952371329069, 0.009245520457625389, 0.008751075714826584, + -0.002400737488642335, 0.01403508149087429, 0.009346792474389076, 0.012021559290587902, + -0.004819346591830254, 9.526810026727617e-5, -0.024066947400569916, 0.03848328813910484, + 0.006386081222444773, 0.018836556002497673, -0.006666067987680435, -0.02723615989089012, + -0.0009308070875704288, -0.012807904742658138, 0.00012742748367600143, 0.015607772395014763, + ], + index: 7, + }, + { + title: "D. P. Todd Secondary School", + text: "D.P. Todd Secondary School is a public high school in Prince George, British Columbia and is part of School District 57 Prince George.", + vector: [ + 0.030391348525881767, 0.004553459584712982, -0.024085406213998795, 0.015098313800990582, + 0.03978285938501358, 0.011728154495358467, 0.01950198784470558, 0.003330840729176998, + -0.026077544316649437, 0.07231613248586655, 0.022123223170638084, -0.030181650072336197, + -0.006545598153024912, 0.016296593472361565, -0.06530620157718658, 0.005856588017195463, + -0.0421794168651104, 0.023201674222946167, 0.050327714532613754, -0.044366274029016495, + 0.0013555529294535518, -0.042329199612140656, 0.000637053744867444, 0.01837860234081745, + 0.014409303665161133, 0.019531946629285812, -0.03978285938501358, -0.009286661632359028, + -0.0006927549839019775, 0.0319940447807312, -0.013218513689935207, 0.025208791717886925, + 0.03714664652943611, -0.042538899928331375, 0.01996632106602192, 0.009354064241051674, + 0.013188556768000126, 0.0040329573675990105, -0.035798583179712296, -0.015652518719434738, + -0.010290219448506832, -0.026437027379870415, -0.03828500956296921, 0.00985584408044815, + 0.023830771446228027, -0.013757739216089249, -0.01950198784470558, -0.03133499249815941, + -0.0061187115497887135, 0.023725921288132668, -0.029267961159348488, -0.04835055395960808, + -0.026287242770195007, 0.028399208560585976, -0.011143993586301804, 0.020610395818948746, + 0.05272427201271057, 0.11449554562568665, -0.027800070121884346, -0.01785435527563095, + -0.051975347101688385, 0.021763740107417107, 0.050717152655124664, -0.021104685962200165, + 0.05700811743736267, 0.0827411562204361, 0.0496087446808815, 0.006466961465775967, + -0.0017440575174987316, -0.00650815200060606, -0.011039144359529018, 0.0012460227590054274, + 0.054641515016555786, 0.02694629691541195, 0.035139527171850204, 0.01610187254846096, + 0.006339644081890583, 0.03193413093686104, -0.013226003386080265, -0.024549739435315132, + 0.006047563627362251, -0.002681148936972022, 0.02522377111017704, 0.02627226524055004, + 0.010177881456911564, -0.018992720171809196, 0.00450103497132659, -0.04802102595567703, + 0.031275078654289246, 0.027350716292858124, 0.01673096790909767, 0.012664309702813625, + 0.028159553185105324, 0.013989905826747417, -0.02705114521086216, 0.02574801817536354, + 0.0036322828382253647, -0.024549739435315132, 0.03591841086745262, -0.009421467781066895, + 0.04101109504699707, 0.03370159491896629, 0.002499534748494625, 0.01610187254846096, + 0.004568438045680523, -0.0030368880834430456, 0.016790883615612984, -0.008972113020718098, + 0.02519381418824196, 0.027066124603152275, -0.03094555251300335, 0.06626482307910919, + 0.0041902316734194756, 0.025388533249497414, -0.004766903351992369, 0.08028468489646912, + -0.023201674222946167, 0.010604768060147762, -0.016895731911063194, -0.046643003821372986, + -0.0006342452834360301, -0.037026818841695786, -0.044995371252298355, -0.03591841086745262, + -0.018917826935648918, -0.07423337548971176, -0.024325061589479446, 0.03543909639120102, + 0.014656448736786842, -0.012896476313471794, 0.005085195880383253, -0.01740500144660473, + -0.023441331461071968, 0.03325223922729492, 0.00502528203651309, -0.0031436097342520952, + 0.010664681904017925, 0.006803977303206921, -0.003473136341199279, 0.03232357278466225, + -0.01863323710858822, 0.046223606914281845, -0.008987091481685638, -0.042538899928331375, + 0.010687150061130524, 0.0032241190783679485, 0.025598231703042984, 0.08004502952098846, + 0.05673850327730179, -0.012701756320893764, -0.01526307687163353, 0.04391692206263542, + -0.0020108616445213556, 0.01683581806719303, -0.008792371489107609, 0.0007812216645106673, + -0.027725176885724068, 0.03957315906882286, -0.05077706649899483, 0.017569763585925102, + 0.0015895918477326632, 0.03214383125305176, 0.029477659612894058, -0.008268124423921108, + -0.03600827977061272, -0.0007082015508785844, 0.009848354384303093, 0.008642585948109627, + 0.05272427201271057, -0.013218513689935207, 0.031035423278808594, 0.02877367101609707, + 0.0367572046816349, -0.0033008838072419167, -0.03888414800167084, -0.051346249878406525, + 0.00676278630271554, -0.03507961332798004, 0.006759041920304298, -0.0005677782464772463, + -0.009114408865571022, 0.009136876091361046, 0.01410224474966526, -0.08340021222829819, + -0.019337225705385208, 0.001917246263474226, 0.06147170811891556, 0.039633072912693024, + -0.02389068529009819, -0.028758693486452103, 0.0014407431008294225, 0.004377462435513735, + 0.01026026252657175, 0.0027017444372177124, 0.03603823855519295, -0.013817653059959412, + -0.022302964702248573, -0.017375044524669647, 0.0681820660829544, 0.02684144675731659, + -0.005317362491041422, -0.018228817731142044, -0.017105430364608765, 0.004703244660049677, + 0.05554022639989853, 0.028788650408387184, 0.01730015128850937, 0.035798583179712296, + -0.005856588017195463, -0.01568247564136982, 0.058565881103277206, 0.009211769327521324, + 0.018183881416916847, 0.03786561265587807, 0.011555901728570461, 0.04098113626241684, + 0.011533434502780437, 0.021913524717092514, -0.004935411270707846, -0.016446378082036972, + 0.018198860809206963, 0.05377276614308357, 0.021913524717092514, -0.001088748686015606, + -0.018543366342782974, 0.006365856621414423, -0.0022823468316346407, 0.02365102991461754, + -0.018947783857584, -0.025238748639822006, -0.03340202197432518, 0.007594092283397913, + 0.01312115415930748, -0.0015736771747469902, -0.030601046979427338, 0.013495615683495998, + 0.007976043969392776, 0.02431008219718933, -0.019801558926701546, 0.005381021182984114, + -0.011818025261163712, -0.022707384079694748, -0.02255759947001934, -0.029208047315478325, + 5.447254079626873e-5, 0.046613048762083054, -0.007953575812280178, 0.054851215332746506, + 0.026227328926324844, 0.011810536496341228, 0.0019284801091998816, 0.001770269824191928, + 0.0170904528349638, -0.018468473106622696, 0.004564693663269281, 0.028968391939997673, + -0.02263249270617962, -0.011391138657927513, -0.004721967503428459, 0.007268310524523258, + -0.0025557042099535465, -0.0027953600510954857, -0.03978285938501358, 0.04718223214149475, + -0.007796301972121, 0.01061225775629282, -0.033491894602775574, 0.00029699530568905175, + 0.006343388929963112, 0.017270194366574287, -0.002954506315290928, 0.0008359867497347295, + -0.025628188624978065, -0.032713014632463455, -0.001276915892958641, -0.02995697222650051, + -0.0004701840225607157, 0.00201273406855762, -0.007871194742619991, 0.020370740443468094, + 0.004950389731675386, -0.014776276424527168, -0.03939341753721237, -0.026466984301805496, + 0.0030705896206200123, -0.07189673185348511, -0.031484778970479965, 0.06147170811891556, + 0.08232175558805466, -0.008178253658115864, -0.011735644191503525, -0.016401441767811775, + -0.015697453171014786, -0.028923455625772476, 0.04062165319919586, 0.01989142969250679, + -0.00903202686458826, -0.05823635309934616, -0.006466961465775967, -0.008425398729741573, + -0.0023703454062342644, 0.007459286134690046, 0.012372229248285294, -0.02501407079398632, + 0.001840481418184936, 0.002048308029770851, -0.03034641221165657, -0.017390022054314613, + -0.010964252054691315, -0.041520364582538605, 0.02402549237012863, -0.0018442260334268212, + -0.03573866933584213, 0.009286661632359028, 0.008065914735198021, -0.07501225918531418, + -0.022782277315855026, 0.05985403060913086, 0.020999837666749954, -0.020355762913823128, + 0.01968173123896122, 0.008328038267791271, -0.0186631940305233, -0.002608128823339939, + 0.0982588678598404, -0.025208791717886925, -0.01538290549069643, -0.004665798507630825, + 0.04077143967151642, -0.020505547523498535, -0.0021381787955760956, -0.023800814524292946, + -0.004841795656830072, -0.027770113199949265, 0.05539043992757797, -0.01884293556213379, + -0.018333666026592255, -0.04844042286276817, -0.014117223210632801, 0.028683800250291824, + 0.013465658761560917, 0.030616024509072304, 0.03912380710244179, 0.012993836775422096, + -0.038404837250709534, 0.003435690188780427, 0.010402558371424675, -0.021074729040265083, + -0.03379146382212639, -0.04565442353487015, 0.0004891412099823356, -0.012057681567966938, + 0.039483290165662766, 0.02493917942047119, 0.025478404015302658, -0.044156577438116074, + -0.016551226377487183, -0.04155031964182854, -0.017839375883340836, -0.06542602926492691, + 0.027380673214793205, 0.003694069106131792, -0.05026780068874359, 0.010672171600162983, + 0.02694629691541195, -0.004736945964396, 0.031005466356873512, 0.06518637388944626, + 0.009174322709441185, 0.012551971711218357, -0.00505149457603693, 0.02648196369409561, + 0.02582290954887867, -0.00927917193621397, -0.024759437888860703, 0.013697825372219086, + 0.0033907548058778048, -0.0029470170848071575, 0.00426137913018465, -0.013555529527366161, + -0.0105448542162776, 0.00033303728559985757, -0.02088000997900963, -0.00927917193621397, + 0.012716734781861305, 0.005223746877163649, 0.05904519185423851, -0.010028095915913582, + -0.030511176213622093, 0.006317176390439272, 0.008897220715880394, -0.027904920279979706, + 0.012162530794739723, 0.0020108616445213556, 0.019621817395091057, 0.035978324711322784, + -0.049908313900232315, -0.00857518333941698, 0.009743505157530308, -0.06542602926492691, + -0.04140053689479828, -0.02111966535449028, -0.06344886869192123, -0.07183682173490524, + 0.05014796927571297, -0.006882614456117153, -0.016955645754933357, -0.0050065587274730206, + -0.0006122456397861242, 0.07812778651714325, -0.024504803121089935, -0.025867845863103867, + 0.00013878503523301333, 0.011885428801178932, 0.03274296969175339, -0.02073022536933422, + -0.009668612852692604, 0.05820639804005623, -0.016790883615612984, 0.027605349197983742, + 0.06458722800016403, 0.023531202226877213, -0.045624468475580215, -0.024864286184310913, + 0.02887852117419243, 0.04059169813990593, 0.025688104331493378, 0.008065914735198021, + 0.01575736701488495, -0.0025238748639822006, -0.021284429356455803, -0.026077544316649437, + -0.050747111439704895, 0.022287987172603607, -0.025418490171432495, 0.008328038267791271, + -0.04343760758638382, 0.00785621628165245, 0.016041958704590797, 0.04924926161766052, + -0.06704370677471161, -0.04304816946387291, 0.022183137014508247, -0.015652518719434738, + 0.03055611066520214, 0.014326921664178371, -0.02739565074443817, 0.006193603854626417, + -0.027455564588308334, 0.022048331797122955, 0.022407814860343933, 0.00424640066921711, + -0.031005466356873512, -0.05083698034286499, -0.001774014439433813, 0.00350871030241251, + -0.009421467781066895, -0.009885801002383232, 0.002859018510207534, -0.004235167056322098, + 0.027455564588308334, 0.0029788464307785034, 0.02210824564099312, -0.04002251476049423, + -0.04430636018514633, 0.04349752143025398, 0.01184049341827631, 0.0011861089151352644, + -0.027830027043819427, 0.013323362916707993, -0.033132411539554596, 0.025733038783073425, + -0.04700249060988426, 0.05089689418673515, 0.02273734100162983, -0.007976043969392776, + 0.030601046979427338, -0.03672724589705467, 0.0039730435237288475, 0.016566205769777298, + 0.0034600303042680025, -0.06006372720003128, 0.03367163613438606, 0.021479148417711258, + -0.008680032566189766, -0.024085406213998795, 0.006186114624142647, 0.007249587215483189, + 0.010956762358546257, -0.015427840873599052, 0.02389068529009819, -0.0013415106805041432, + -0.025912780314683914, -0.0496087446808815, 0.020715245977044106, -0.010117967613041401, + 0.04137057811021805, -0.04283846914768219, 0.021628933027386665, 0.025807932019233704, + 0.010956762358546257, 0.0021737527567893267, 0.03202400356531143, 0.00931661855429411, + 0.004684521351009607, 0.0015577625017613173, -0.03630784898996353, 0.009384021162986755, + -0.01800413988530636, 0.035169485956430435, 0.027800070121884346, 0.007676474284380674, + -0.019816536456346512, -0.029582509770989418, -0.0036603675689548254, 0.015427840873599052, + 0.02483432926237583, -0.004403674975037575, 0.0062010930851101875, -0.0027654028963297606, + 0.002171880565583706, 0.050717152655124664, -0.038854192942380905, 0.029597489163279533, + -0.028953412547707558, -0.018753064796328545, -0.006399557925760746, -0.00704363314434886, + 0.01305375061929226, -0.01680586114525795, -0.02869877964258194, -0.003553645685315132, + 0.02231794409453869, -0.029897058382630348, -0.0031286312732845545, 0.0035330504179000854, + -0.0157124325633049, -0.05455164611339569, -0.008500291034579277, -0.016251657158136368, + -0.003085568081587553, -0.026407070457935333, 0.0014632107922807336, -0.024055449292063713, + -0.01617676578462124, -0.021374300122261047, -0.0024452379439026117, -0.03600827977061272, + -0.03343198075890541, -0.008747436106204987, 0.017180323600769043, -0.0006281602545641363, + -0.022362880408763885, 0.016820840537548065, 0.005328596569597721, -0.10790501534938812, + -0.04697253182530403, -0.017030538991093636, 0.03214383125305176, -0.008635097183287144, + 0.01628161408007145, 0.0395132452249527, -0.04289838299155235, -0.015877194702625275, + -0.027919897809624672, -0.016056936234235764, -0.02368098683655262, 0.06710361689329147, + 0.029267961159348488, 0.010777020826935768, 0.016925688832998276, -0.026856426149606705, + 0.0055045937187969685, 0.019801558926701546, 0.06093247979879379, -0.009496360085904598, + -0.0036154319532215595, -0.003452541073784232, -0.04301821067929268, -0.028354274109005928, + -0.026407070457935333, 0.010222816839814186, 0.011877939105033875, -0.005036516115069389, + 0.01384012121707201, 0.05557018145918846, -0.00676278630271554, 0.005871566478163004, + -0.007159716449677944, 0.001088748686015606, -0.009833375923335552, -0.026466984301805496, + 0.0221382025629282, 0.003040632698684931, -0.00044701420119963586, -0.027830027043819427, + 0.0033870101906359196, -0.01459653489291668, -0.043587394058704376, -0.0011889173183590174, + 0.017075473442673683, 0.024115363135933876, -0.01557762548327446, -0.004673287738114595, + -0.07423337548971176, 0.0021063496824353933, 0.05377276614308357, -0.0002974633825942874, + 0.011428584344685078, -0.03645763546228409, -0.050357669591903687, -0.024924200028181076, + 0.020340783521533012, -0.009271683171391487, 0.05640897899866104, 0.025912780314683914, + 0.0346602164208889, 0.052784185856580734, 0.005070217419415712, -0.02020597830414772, + 0.0367572046816349, -0.03163456171751022, 0.0027335737831890583, -0.008133318275213242, + 0.005014047957956791, -0.003076206659898162, 0.020969880744814873, -0.01715036667883396, + -0.007796301972121, -0.03136495128273964, 0.008125828579068184, 0.019097570329904556, + 0.04062165319919586, -0.013405744917690754, -0.03220374509692192, 0.007766345050185919, + 0.0024920455180108547, 0.0036659843754023314, -0.04754171520471573, 0.00265680905431509, + 0.038225095719099045, -0.013667868450284004, 0.021344343200325966, 0.006848912686109543, + -0.01712040975689888, -0.038644492626190186, 0.032533273100852966, -0.023695964366197586, + 0.0432279109954834, 0.03855462372303009, -0.012214954942464828, 0.008814838714897633, + -0.00425388989970088, 0.020161041989922523, 0.028998348861932755, -0.0005935225053690374, + 0.040891267359256744, -0.023441331461071968, 0.005714292172342539, 0.02634715661406517, + -0.0538925938308239, 0.0047294567339122295, -0.009384021162986755, 0.019846493378281593, + 0.0011964065488427877, -0.013323362916707993, -0.018094010651111603, -0.020011257380247116, + 0.013458169996738434, 0.047062404453754425, -0.04595399647951126, -0.019846493378281593, + 0.01008801069110632, -0.0226624496281147, -0.013293405994772911, -0.03235353156924248, + -0.030511176213622093, -0.06470706313848495, -0.03672724589705467, 0.04367726668715477, + 0.002121328143402934, 0.004886731039732695, 0.01677590422332287, 0.028159553185105324, + 0.04565442353487015, 0.0016504419036209583, -0.00477064773440361, -0.0073357135988771915, + -0.022812234237790108, 0.029178090393543243, 0.0034076054580509663, -0.023321501910686493, + 0.025942737236618996, 0.007302011828869581, -0.015225631184875965, 0.022153180092573166, + 0.007373159751296043, -0.025568274781107903, -0.037895567715168, -0.048859819769859314, + 0.02407042682170868, -0.007069845218211412, -0.03543909639120102, 0.010425026528537273, + 0.040082428604364395, -0.015173206105828285, -0.008477822877466679, 0.009324107319116592, + 0.01638646423816681, -0.028848564252257347, -0.013944970443844795, 0.015547668561339378, + -0.006126200780272484, 0.03567875176668167, 0.02799479104578495, 0.0336117222905159, + -0.02168884687125683, -0.03615806624293327, -0.01082195620983839, 0.016641097143292427, + 0.03633780777454376, 0.01897774264216423, -0.022228073328733444, 0.030825724825263023, + -0.01701555959880352, 0.026332179084420204, 0.020445633679628372, 0.002404046943411231, + -0.029672380536794662, 0.0025032793637365103, -0.036217980086803436, 0.003330840729176998, + -0.004688266199082136, 0.0063958135433495045, 0.031454820185899734, 0.010425026528537273, + -0.015075846575200558, 0.017839375883340836, 0.03481000289320946, 0.005912757478654385, + 0.05428203195333481, -0.02705114521086216, 0.01792924851179123, 0.03861453756690025, + 0.02621234953403473, 0.012372229248285294, 0.02174876071512699, 0.032083917409181595, + -0.02757539227604866, -0.017794441431760788, -0.0033233514986932278, -0.01683581806719303, + 0.028084661811590195, 0.008305570110678673, -0.017479892820119858, -0.006107477471232414, + -0.009091940708458424, -0.030406326055526733, 0.013443191535770893, 0.030645981431007385, + -0.005766717251390219, 0.031874217092990875, 0.010372601449489594, 0.050537411123514175, + -0.0066729155369102955, -0.011436074040830135, -0.0037240260280668736, 0.014881125651299953, + 0.026676682755351067, 0.006687893997877836, 0.02386072836816311, 0.022228073328733444, + 0.041310664266347885, -0.0037146646063774824, 0.036996860057115555, 0.025103943422436714, + 0.045834168791770935, -0.012716734781861305, -0.024789394810795784, -0.02606256492435932, + 0.011877939105033875, -0.0651264563202858, 0.012477078475058079, 0.022752320393919945, + -0.0016822712495923042, -0.01852838695049286, 0.03325223922729492, 0.04289838299155235, + -0.0011533434735611081, -0.020535504445433617, -0.002471450250595808, 0.0067328293807804585, + 0.01774950511753559, 0.0020164786837995052, -0.00980341900140047, -0.010267752222716808, + -0.007642772514373064, 0.04367726668715477, -0.003767089219763875, -0.029582509770989418, + 0.024444889277219772, -0.004987835884094238, 0.04143049195408821, -0.0056955693289637566, + 0.002171880565583706, 0.009376532398164272, 0.001238533528521657, -0.00650066277012229, + -0.01887289248406887, -0.01285903062671423, 0.03235353156924248, -0.05350315198302269, + -0.028009768575429916, -0.031035423278808594, -0.011293778195977211, -0.053203582763671875, + 0.024190254509449005, -0.01876804232597351, -0.018678171560168266, 0.008717479184269905, + 0.012791627086699009, -0.042568858712911606, -0.0075641353614628315, -0.007197162602096796, + 0.014439260587096214, 0.018079033121466637, 0.0341809056699276, -0.021359320729970932, + 0.0004044191155117005, 0.06231050193309784, 0.026856426149606705, 0.015300523489713669, + 0.007238353136926889, 0.0016504419036209583, 0.024040469899773598, 0.0448455885052681, + 0.015532690100371838, 0.005837864708155394, 0.0004947581328451633, 0.00528740556910634, + -0.017030538991093636, 0.00362292118370533, 0.0006089690723456442, -0.012948901392519474, + 0.03606819361448288, -0.029732294380664825, -0.0023104315623641014, -0.014409303665161133, + 0.0032915223855525255, 0.020146064460277557, 0.018258774653077126, 0.018573323264718056, + -0.014027352444827557, 0.03600827977061272, -0.018648214638233185, 0.02634715661406517, + 0.01203521341085434, 0.0362778939306736, -0.021044772118330002, -0.0162366796284914, + -0.004231422208249569, -0.03000190667808056, -0.014162158593535423, -0.014469217509031296, + 0.008006000891327858, 0.020760182291269302, 0.05736760050058365, 0.008650075644254684, + 0.0170455165207386, 0.001579294097609818, -0.033132411539554596, 0.017315130680799484, + 0.021074729040265083, 0.003976787906140089, -0.012027724646031857, -0.015337970107793808, + -0.007938597351312637, -0.04667296260595322, 0.035558924078941345, 0.001041004783473909, + -0.003048121929168701, -0.023725921288132668, -0.008410420268774033, 0.01531550195068121, + 0.0058640772476792336, -0.013892545364797115, -0.007773834280669689, 0.017030538991093636, + 0.0023834516759961843, -0.012424654327332973, 0.013465658761560917, 0.00479686027392745, + 0.010132946074008942, 0.010582299903035164, 0.041730061173439026, 0.026811489835381508, + 0.002840295433998108, 0.028923455625772476, -0.021419234573841095, -0.0050814514979720116, + 0.016041958704590797, -2.5071411073440686e-5, 0.03774578496813774, 0.02634715661406517, + 0.06123204901814461, 0.0010999825317412615, 0.014356878586113453, 0.038225095719099045, + -0.02098485827445984, 0.021988417953252792, 0.025628188624978065, -0.0319940447807312, + -0.02642204985022545, -0.012447121553122997, -0.0011926619336009026, -0.004744435660541058, + 0.03430073335766792, 0.004268868360668421, -0.004340016283094883, 0.030256541445851326, + -0.06213076040148735, -0.009706058539450169, -0.026302222162485123, 0.020325805991888046, + -0.008867263793945312, -0.005343575030565262, 0.03244340047240257, 0.02216815948486328, + 0.019846493378281593, 0.029163112863898277, -0.011997767724096775, 0.007474264595657587, + -0.018932806327939034, 0.01992138661444187, 0.020220955833792686, 0.01436436828225851, + 0.02224305085837841, -0.01512078195810318, -0.010207838378846645, -0.021808676421642303, + 0.04238911718130112, 0.01792924851179123, 0.01059727929532528, -0.02007117122411728, + 0.005448424257338047, 0.017674613744020462, -0.017419978976249695, 0.024819351732730865, + 0.01855834387242794, -0.029447702690958977, 0.031904175877571106, -0.06416783481836319, + -0.07249587029218674, 0.002304814523085952, 0.02171880379319191, 0.012836562469601631, + -0.01733010821044445, 0.03798544034361839, 0.009548785164952278, -0.023021932691335678, + -0.006223560776561499, 0.01008801069110632, -0.027455564588308334, -0.008874752558767796, + 0.014843679964542389, 0.003744621528312564, -0.02652689814567566, -0.02336643822491169, + 0.004066659137606621, 0.004411164205521345, -0.022962018847465515, -0.0085227582603693, + -0.004366228822618723, 0.03406107798218727, -0.005212513264268637, 0.05940467491745949, + -0.013967438600957394, 0.00679648807272315, -0.023411372676491737, -0.0054297009482979774, + 0.025762995705008507, 0.02098485827445984, 0.019831515848636627, 0.002068903297185898, + 0.01691071130335331, 0.013795185834169388, 0.029807187616825104, 0.03978285938501358, + -0.002639958169311285, -0.01157836988568306, -0.01255946047604084, 0.021988417953252792, + -0.002812210703268647, -0.015352948568761349, 0.040681567043066025, -0.040471870452165604, + -0.013413234613835812, -0.017839375883340836, 0.0031922897323966026, 0.00805093627423048, + -0.015652518719434738, -0.01800413988530636, -0.035798583179712296, 0.007268310524523258, + 0.0038494709879159927, -0.006010117474943399, 0.010162902995944023, 0.005905268248170614, + -0.016656076535582542, -0.011286289431154728, -0.03933350369334221, -0.03588845208287239, + -0.009189301170408726, 0.0014210838126018643, -0.007215885445475578, -0.015098313800990582, + -0.012956390157341957, 0.058116525411605835, -0.0005322043434716761, 0.03996260091662407, + -0.003299011616036296, 0.02305188961327076, -0.016760926693677902, 0.04400679096579552, + -0.017989162355661392, 0.03478004410862923, 0.0022280497942119837, 0.01003558561205864, + 0.014446749351918697, 0.01300132554024458, -0.0015165717341005802, -0.02114962227642536, + 0.017659634351730347, 0.0043699732050299644, 0.012784137390553951, -0.006174881011247635, + -0.008695011027157307, -0.010664681904017925, 0.015622560866177082, 0.037625957280397415, + 0.04080139473080635, -0.01610187254846096, -0.023695964366197586, -0.014229562133550644, + 0.008844795636832714, -0.002581916516646743, 0.020340783521533012, 0.02224305085837841, + -0.005628166254609823, -0.028953412547707558, 0.0061187115497887135, -0.005650633946061134, + 0.013997395522892475, 0.002767275320366025, -0.00900206994265318, 0.0058416095562279224, + 0.0021512850653380156, 0.053413279354572296, -0.039063893258571625, -0.034360647201538086, + -0.02603260800242424, -0.009159344248473644, 0.019097570329904556, -0.020535504445433617, + -0.01177308987826109, -0.0030593557748943567, -0.046852704137563705, 0.025073984637856483, + 0.029447702690958977, -0.031065380200743675, 0.028369251638650894, -0.03382142260670662, + 0.02263249270617962, -0.019876450300216675, 0.03307249769568443, -0.010290219448506832, + 0.0005794801982119679, -0.001994010992348194, -0.05083698034286499, 0.005875311326235533, + -0.0007653069915249944, 0.026916339993476868, -0.03510957211256027, -0.02132936380803585, + -0.021269449964165688, 0.005718037020415068, 0.03711668774485588, 0.0006342452834360301, + -0.025523340329527855, -0.01075455266982317, -0.0069013372994959354, -0.003995511215180159, + -0.00927917193621397, 0.025598231703042984, -0.011233864352107048, -0.007215885445475578, + -0.021239493042230606, 0.04697253182530403, 0.016551226377487183, -0.009930736385285854, + 0.004512269049882889, -0.03735634312033653, 0.006006373092532158, -0.032263658940792084, + -0.011548412963747978, -0.0077813235111534595, 0.015622560866177082, 0.010694638825953007, + -0.0367572046816349, 0.006908826529979706, 0.008402930572628975, 0.019876450300216675, + -0.00011011527385562658, -0.02922302670776844, 0.008447865955531597, 0.010252773761749268, + -0.025553297251462936, 0.00824565626680851, 0.013742760755121708, -0.017734527587890625, + 0.02673659659922123, 0.00984086561948061, -0.019172461703419685, 0.0012956390855833888, + -0.03828500956296921, -0.016131829470396042, -0.02129940688610077, 0.021883567795157433, + 0.03445051610469818, 0.010417536832392216, -0.00454222597181797, -0.020745202898979187, + -0.015907151624560356, -0.017599720507860184, 0.016146807000041008, -0.0066991280764341354, + 0.004164019133895636, -0.018992720171809196, 0.010619746521115303, -0.004036701750010252, + 0.010829444974660873, 0.010791999287903309, 0.019412117078900337, 0.008417909033596516, + 0.001359297544695437, 0.011301267892122269, 0.021374300122261047, 0.008163275197148323, + -0.0176146999001503, -0.018258774653077126, -0.05613936483860016, 0.011952831409871578, + 0.0030368880834430456, 0.030121736228466034, 0.00972103700041771, -0.003049994120374322, + 0.016566205769777298, -0.04873999208211899, -0.013091196306049824, -0.023036912083625793, + 0.019217398017644882, -0.027350716292858124, -0.0031117803882807493, 0.004298825282603502, + -0.004482312127947807, -0.00031033551204018295, 0.035169485956430435, -0.01831868849694729, + 0.0011486626463010907, -0.03031645528972149, 0.008178253658115864, 0.01100169774144888, + 0.0013340214500203729, 0.008410420268774033, 0.0006089690723456442, -0.01276915892958641, + -0.010552342981100082, 0.025688104331493378, -0.023381415754556656, -0.013323362916707993, + 0.023126782849431038, -0.001614868058823049, 0.016790883615612984, 0.021658889949321747, + -0.03382142260670662, -0.004519758280366659, -0.006422026082873344, -0.035768624395132065, + -0.017944226041436195, -0.030301477760076523, -0.022183137014508247, -0.0036191765684634447, + -0.012462100014090538, -0.013607954606413841, -0.0049241771921515465, -0.006350878160446882, + -0.01449168473482132, -0.02031082659959793, 0.011368670500814915, -0.02634715661406517, + 0.02487926557660103, -0.016146807000041008, 0.019307268783450127, 0.013345831073820591, + -0.008784881792962551, 0.02487926557660103, 0.025628188624978065, -0.019531946629285812, + -0.010320177301764488, -0.010469961911439896, -0.025148877874016762, -0.007096057757735252, + 0.04220937192440033, -0.0030237818136811256, -0.007140993140637875, 0.001544656348414719, + -0.02543346956372261, -0.011952831409871578, 0.013390766456723213, 0.038674451410770416, + 0.0683618113398552, 0.015697453171014786, 0.0005247151129879057, 0.012409675866365433, + 0.017884312197566032, 0.014926061034202576, 0.0085227582603693, -0.01944207400083542, + 0.022932061925530434, -0.027440587058663368, -0.02929791808128357, 0.0014660193119198084, + 0.013780207373201847, 0.020041214302182198, -0.014371857047080994, 3.817758624791168e-5, + 0.019636794924736023, 0.001540911733172834, 0.00023286865325644612, -0.015772346407175064, + -0.0010494302259758115, 0.004055425059050322, -0.006103733088821173, 0.023561159148812294, + 0.0059502036310732365, 0.013810164295136929, 0.021284429356455803, 0.023126782849431038, + 0.019412117078900337, -0.01764465682208538, 0.030885638669133186, 0.005448424257338047, + 0.009601209312677383, -0.007361925672739744, 0.005029026884585619, 0.022287987172603607, + -0.011720665730535984, 0.020745202898979187, 0.009181811474263668, 0.009631166234612465, + 0.016820840537548065, -0.004062914289534092, 0.0003587815444916487, -0.011870450340211391, + 0.04853029549121857, -0.005953948013484478, -0.027530457824468613, -0.004721967503428459, + 0.030151693150401115, -0.006556832231581211, 0.011406117118895054, -0.005339830182492733, + 0.008440377190709114, -0.02480437234044075, -0.01538290549069643, -0.0013040644116699696, + -0.021179579198360443, -0.026511920616030693, -0.009466403163969517, 0.016251657158136368, + 0.024924200028181076, -0.012147552333772182, 0.007706431206315756, 0.00750796590000391, + 0.003722153836861253, 0.00829808134585619, -0.007463030517101288, -0.0021250727586448193, + 0.0077588558197021484, 0.01475380826741457, -0.04119083657860756, -0.01954692415893078, + 0.01589217409491539, 0.026646725833415985, -0.016641097143292427, -0.013750250451266766, + 0.038045354187488556, -0.02739565074443817, -0.015143249183893204, -0.00677027553319931, + -0.013585486449301243, -0.017689591273665428, 0.02017602138221264, -0.04769149795174599, + -0.07489243149757385, 0.03753608465194702, -0.04490550234913826, 0.01154092326760292, + -0.013196046464145184, -0.0027972322423011065, -0.00011508860188769177, + -0.0008542417781427503, 0.01313613262027502, -0.04927922040224075, -0.00034637749195098877, + -0.0014978485414758325, -0.0022467728704214096, 0.002098860451951623, -0.016536248847842216, + -0.0005242470069788396, -0.016955645754933357, -0.0221382025629282, -0.018498430028557777, + 0.022782277315855026, 0.012881497852504253, -0.011196418665349483, -0.009945714846253395, + -0.01926233246922493, -0.012387207709252834, 0.0024920455180108547, 0.020535504445433617, + -0.007901151664555073, -0.016865774989128113, -0.015832260251045227, -0.00288523081690073, + -0.030571090057492256, -0.0037577275652438402, 0.035978324711322784, 0.03430073335766792, + 0.04262877255678177, 0.010440004989504814, -0.012447121553122997, -0.00026984678697772324, + -0.011061611585319042, 0.009421467781066895, 0.00826063472777605, 0.049099478870630264, + -0.004909198731184006, 0.01730015128850937, -0.026182392612099648, -0.014544109813869, + -0.01222993340343237, -0.02252764254808426, -0.0022411560639739037, 0.002913315547630191, + 0.018258774653077126, 0.01475380826741457, 0.01308370754122734, 0.0018395453225821257, + 0.06249024346470833, 0.005088940728455782, 0.03259318694472313, -0.006302197929471731, + 0.0221382025629282, 0.00977346207946539, 0.0008626671624369919, -0.015180695801973343, + -0.021883567795157433, -0.015502733178436756, 0.022692406550049782, 0.014476706273853779, + -0.0031136528123170137, -0.02459467388689518, 0.029882078990340233, -0.001824566861614585, + -0.0028646355494856834, 0.012761670164763927, -0.016326550394296646, 0.003211013041436672, + -0.024609653279185295, 0.05089689418673515, -0.029133155941963196, 0.009556273929774761, + 0.0176146999001503, -0.018123967573046684, -0.006912571378052235, -0.034360647201538086, + 0.014207093976438046, -0.015300523489713669, 0.02216815948486328, 0.015532690100371838, + 0.03337206691503525, 0.03540914133191109, -0.0271859522908926, 0.023201674222946167, + 0.005497104488313198, 0.008335527032613754, -0.015352948568761349, -0.00627224100753665, + 0.02648196369409561, 0.02231794409453869, 0.012529503554105759, 0.026466984301805496, + 0.010477450676262379, -0.013338341377675533, 0.04065161198377609, 0.014686405658721924, + 0.011076590046286583, -0.010043075308203697, -0.0261374581605196, -0.03301258385181427, + 0.011937852948904037, 0.03582853823900223, 0.023441331461071968, -0.010866891592741013, + 0.015442819334566593, -0.0012319805100560188, -0.005894034169614315, 0.02459467388689518, + -0.04011238366365433, 0.011458542197942734, -0.00552706141024828, 0.010694638825953007, + 0.00028412314713932574, 0.03756604343652725, -0.02206330932676792, 0.0036847074516117573, + 0.0245647169649601, 0.005931480322033167, 0.05245465785264969, 0.002980718621984124, + 0.001060664071701467, -0.04196971654891968, 0.0018348644953221083, 0.020056191831827164, + 0.021778719499707222, 0.03486991673707962, 0.02182365395128727, 0.03442056104540825, + -0.014641470275819302, 0.0017047389410436153, 0.026916339993476868, 0.0030724620446562767, + 0.006624235305935144, 0.02368098683655262, 0.01262686401605606, 0.015832260251045227, + -0.027874961495399475, -9.496125858277082e-5, 0.04250894486904144, -0.014716362580657005, + -0.0491294339299202, -0.03016667068004608, -0.027515478432178497, 0.014791254885494709, + -0.00729826744645834, 0.015517711639404297, -0.014521642588078976, 0.013780207373201847, + 0.019996277987957, -0.020056191831827164, -0.03489987179636955, 0.02911817654967308, + 0.025208791717886925, -0.008013489656150341, 0.02210824564099312, -0.00450103497132659, + -0.012274869717657566, 0.00033584574703127146, 0.023381415754556656, -0.02360609360039234, + 0.005579486023634672, 0.05509087070822716, -0.007006186991930008, -0.004882986657321453, + -0.023830771446228027, 0.018947783857584, -0.008597650565207005, -0.0036996861454099417, + 0.016012001782655716, 0.012536992318928242, 0.00015879535931162536, -0.01753980666399002, + -0.00043858878780156374, 0.02540351264178753, 0.024040469899773598, 0.009780951775610447, + 0.0029470170848071575, 0.02697625383734703, 0.04844042286276817, 0.010514897294342518, + 0.007133503910154104, 0.003935597371309996, 0.03223370015621185, 0.019981300458312035, + -0.01410224474966526, 0.025987673550844193, -0.00954129546880722, -0.009241726249456406, + 0.0065381089225411415, 0.011937852948904037, -0.016581183299422264, -0.036817118525505066, + -0.022437771782279015, 0.0085227582603693, 0.0012535119894891977, 0.0034506686497479677, + -0.017060495913028717, -0.0076989419758319855, -0.021778719499707222, 0.03097550943493843, + 0.01301630400121212, 0.01536792702972889, 0.00656806631013751, 0.00551582733169198, + -0.04430636018514633, 0.004497290588915348, -0.001856396091170609, 0.002566938055679202, + 0.013877566903829575, -0.011158972047269344, 0.03115525096654892, -0.018498430028557777, + 0.04652317613363266, 0.009076962247490883, 0.03259318694472313, -0.0028739969711750746, + -0.018932806327939034, -0.019457053393125534, -0.011713176034390926, 0.0271859522908926, + -0.04220937192440033, -0.01855834387242794, -0.02571806125342846, 0.01957688108086586, + -0.011353692039847374, + ], + index: 8, + }, + { + title: "Dennis Gamsy", + text: "Dennis Gamsy (born 17 February 1940 in Glenwood, Natal) is a former South African cricketer who played in two Tests as a wicketkeeper in 1970 against Australia.He played for Natal from 1958-59 to 1972-73. In 1970 he became one of the first prominent South African cricketers to speak out in favour of mixed-race sport in South Africa. Shortly afterwards he founded the Cricket Club of South Africa, one of the country's first multi-racial teams.", + vector: [ + 0.029236363247036934, 0.020947067067027092, -0.024204127490520477, 0.004287433810532093, + -0.01691819168627262, 0.06909290701150894, -0.0037741768173873425, -0.009200038388371468, + 0.0289276372641325, 0.026226283982396126, -0.05458277836441994, -0.000350211194017902, + -0.013823212124407291, 0.016285302117466927, -0.007143150549381971, 0.008644331246614456, + -0.023231640458106995, 0.014780262485146523, 0.015305097214877605, -0.03507128730416298, + 0.030857175588607788, -0.008698358200490475, 0.03173704445362091, -0.02588668465614319, + 0.02793971262872219, 0.03152093663811684, 0.007532916963100433, 0.003091120161116123, + -0.0069579146802425385, -0.04411696270108223, 0.0028672937769442797, 0.036584045737981796, + 0.05214384198188782, -0.046957243233919144, -0.04600019007921219, -0.013792338781058788, + -0.043623000383377075, -0.01852356642484665, 0.010118498466908932, -0.00019934542069677263, + -0.00794969778507948, -0.039177343249320984, -0.006822847295552492, -0.008605740033090115, + -0.030857175588607788, -0.007548353634774685, -0.04590757191181183, -0.011561793275177479, + -0.04167802631855011, -0.04942705109715462, 0.04204849526286125, 0.02563970349729061, + 0.00597770931199193, 0.002533483784645796, 0.03754109516739845, -0.02743031457066536, + -0.034947797656059265, 0.09447018802165985, 0.038652509450912476, -0.014811134897172451, + -0.022444387897849083, -0.03862163797020912, 0.018785983324050903, 0.023602111265063286, + 0.030579321086406708, 0.007162445690482855, -0.026411518454551697, 0.01762826181948185, + 0.007393990643322468, -0.005283075384795666, -0.05090893432497978, 0.00749046728014946, + -0.021070556715130806, 0.030810866504907608, 0.01371515728533268, -0.023185331374406815, + 0.06458549946546555, 0.04195587709546089, -0.05378009006381035, 0.014062474481761456, + -0.004005721304565668, -0.03615182638168335, -0.009115138091146946, 0.030733684077858925, + 0.009879235178232193, -0.052946530282497406, 0.01010306179523468, -0.06754927337169647, + 0.005908246152102947, -0.004738945979624987, 0.05177336931228638, 0.02485245279967785, + -9.34620061343594e-7, -0.04630891606211662, -0.04603106528520584, -0.02124035730957985, + -0.0017529854085296392, -0.02091619372367859, 0.004893308971077204, 3.2078572985483333e-5, + -0.02232089824974537, -0.03269409388303757, 0.01847725734114647, -0.040906209498643875, + 0.013360122218728065, 0.024018891155719757, -0.06257878243923187, -0.00013760018919128925, + 0.025670576840639114, 0.05359485372900963, -0.01687188260257244, -0.002363684354349971, + -0.03590484708547592, 0.027260515838861465, -0.05044584721326828, -0.01134568452835083, + -0.058441855013370514, 0.03497866913676262, 0.007042814511805773, 0.04383910819888115, + -0.045413609594106674, 0.02475983463227749, -0.04899483546614647, 0.02029874175786972, + 0.05476801097393036, 0.018276585265994072, -0.04584582895040512, 0.023694729432463646, + -0.04880959913134575, 0.013514485210180283, 0.008937620557844639, 0.011384275741875172, + -0.017226917669177055, 0.025192050263285637, -0.0016121291555464268, -0.0334659107029438, + -0.0018967360956594348, 0.010990649461746216, 0.027399443089962006, 0.04476528614759445, + 0.011916828341782093, 0.0017008879221975803, 0.05967675894498825, -0.007119996007531881, + -0.002477527130395174, 0.014857443980872631, -0.0052676391787827015, -0.00543743884190917, + 0.004812268074601889, 0.028680656105279922, -0.05269954726099968, 0.01767457090318203, + 0.007610098924487829, -0.03235449641942978, 0.025531649589538574, 0.020221561193466187, + -0.023941710591316223, -0.013321531936526299, 0.004248843062669039, 0.014610463753342628, + -0.0012638475745916367, 0.033496782183647156, -0.022104790434241295, 0.004183238837867975, + -0.034145109355449677, 0.018924910575151443, -0.06270227581262589, 0.015127579681575298, + 0.04204849526286125, 0.018585311248898506, -0.040103521198034286, -0.03488605096936226, + 0.002718719420954585, 0.04618542641401291, -0.012881597504019737, -0.008312450721859932, + -0.01795242354273796, -0.014571872539818287, 0.06736403703689575, 0.012225554324686527, + -0.04640153422951698, -0.03905385360121727, 0.004908745177090168, 0.005788614507764578, + -0.06489422917366028, -0.010959777049720287, 0.03122764639556408, -0.043623000383377075, + -0.001797364791855216, -0.02667393535375595, 0.012765824794769287, -0.007251204457134008, + -0.03374376520514488, 0.010527560487389565, 0.04439481347799301, 0.023416874930262566, + 0.012063472531735897, -0.002782394178211689, -0.04143104329705238, -0.03967130556702614, + 0.027739040553569794, 0.038652509450912476, 0.035657867789268494, -0.023972582072019577, + -0.015366842038929462, 0.019187327474355698, -0.029653143137693405, 0.026920916512608528, + -0.060973405838012695, -0.0632271096110344, 0.004310588352382183, 0.015305097214877605, + 0.004179379902780056, -0.02591755799949169, -0.016007449477910995, -0.0026627627667039633, + 0.017551079392433167, 0.025577958673238754, 0.028588037937879562, -0.006105058826506138, + -0.027183333411812782, -0.0036545454058796167, -0.008466813713312149, 0.026982663199305534, + -0.017087990418076515, 0.0056419698521494865, -0.009431582875549793, -0.010959777049720287, + -0.06001635640859604, -0.026504136621952057, 0.01969672553241253, 0.021302102133631706, + -0.005472170189023018, 0.009771181270480156, 0.011747028678655624, 0.003606306854635477, + 0.02513030543923378, -0.0027920417487621307, -0.03822029381990433, 0.02503768727183342, + -0.020885322242975235, 0.043900854885578156, 0.030718248337507248, -0.017504770308732986, + 0.0031856675632297993, 0.041554536670446396, -0.00595455477014184, -0.01448697317391634, + -0.010643333196640015, -0.022567879408597946, 0.01378462091088295, -0.030841737985610962, + -0.040010903030633926, -0.04603106528520584, 0.008814130909740925, -0.00016618147492408752, + 0.005066967569291592, 0.006352039985358715, -0.002126350998878479, -0.015081270597875118, + -0.031582679599523544, 0.01903296448290348, 0.0217034462839365, -0.0033033695071935654, + -0.053563982248306274, 0.03596659377217293, -0.0031258519738912582, 0.015737313777208328, + 0.014633617363870144, 0.008875875733792782, -0.06575866043567657, -0.02587124891579151, + -0.03609008342027664, 0.003967130556702614, 0.057268694043159485, -0.03135113790631294, + -0.05097068101167679, 0.011446020565927029, -0.018585311248898506, 0.02156451903283596, + 0.017504770308732986, 0.022938350215554237, -0.009037956595420837, -0.05418143421411514, + -0.03609008342027664, -0.005908246152102947, 0.009971853345632553, 0.04269682243466377, + 0.01392354816198349, 0.01861618459224701, -0.028850454837083817, 0.011229912750422955, + 0.032323624938726425, -0.011839646846055984, -0.015667850151658058, 0.02587124891579151, + -0.016532283276319504, -0.024682652205228806, 0.061529114842414856, 0.007803052663803101, + 0.06254790723323822, 0.010087626054883003, -0.06971035897731781, -0.002896236954256892, + -0.050754573196172714, 0.004650187212973833, 0.0018977008294314146, 0.013306095264852047, + -0.024204127490520477, -0.03553437441587448, -0.029421597719192505, -0.013954420574009418, + -0.04621629789471626, 0.0015764327254146338, -0.0070273783057928085, 0.011638974770903587, + 0.00895305722951889, 0.007251204457134008, -0.04075184836983681, -0.05316263809800148, + 0.03822029381990433, -0.014201400801539421, -0.01263461634516716, -0.03173704445362091, + 0.04856261610984802, -0.01935712806880474, 0.02020612359046936, 0.02391083724796772, + -0.011199039407074451, 0.032045770436525345, -0.037386734038591385, -0.032941076904535294, + 0.03686189651489258, -0.020514849573373795, 0.0074402992613613605, -0.004480387549847364, + -0.015320532955229282, 0.009717154316604137, -0.04016526788473129, 0.033589400351047516, + 0.01068964134901762, 0.013414149172604084, 0.018832292407751083, 0.013043678365647793, + -0.04853174462914467, -0.00029111906769685447, 0.09064199030399323, -0.03278671205043793, + -0.016671210527420044, -0.05856534466147423, 0.0006748560117557645, 0.010944340378046036, + -0.02798602171242237, 0.015691004693508148, 0.020036324858665466, 0.04411696270108223, + -0.014834289439022541, -0.07304459810256958, -0.029498780146241188, -0.018492694944143295, + 0.013846365734934807, 0.015582950785756111, 0.038282036781311035, 0.029035691171884537, + 0.0016844868659973145, -0.007370836101472378, 0.02996186912059784, -0.009238628670573235, + -0.005445156712085009, -0.0012165738735347986, 0.0411531925201416, -0.021487336605787277, + -0.032848458737134933, -0.029190054163336754, -0.019279945641756058, -0.0334659107029438, + -0.023077277466654778, 0.018338331952691078, 0.030455831438302994, -0.020036324858665466, + 0.030069923028349876, 0.023802783340215683, -0.040010903030633926, -0.026643063873052597, + -0.011361121200025082, 0.0013921618228778243, 0.05720694735646248, 0.0013410290703177452, + 0.012125218287110329, 0.0035098299849778414, -0.01875511184334755, 0.06051031872630119, + 0.0003357396344654262, -0.005503043066710234, 0.016146374866366386, 0.001421104883775115, + 0.030177976936101913, 0.01507355272769928, 0.048037782311439514, -0.013259786181151867, + -0.008899030275642872, -0.07174795120954514, -0.032231006771326065, 0.019588671624660492, + -0.015436305664479733, -0.04038137570023537, -0.027785349637269974, -0.052761293947696686, + 0.0019652347546070814, 0.004958913195878267, 0.018631620332598686, 0.01622355729341507, + -0.005263780243694782, 0.026550445705652237, 0.037294115871191025, -0.004345320165157318, + -0.006398348603397608, 0.0686606839299202, 0.015212479047477245, -0.05026061087846756, + 0.03831291198730469, 0.008026879280805588, 0.02817125804722309, 0.0217034462839365, + -0.016331611201167107, 0.019094709306955338, -0.012997369281947613, 0.016748391091823578, + 0.019048402085900307, -0.009740308858454227, -0.018261149525642395, -0.008628894574940205, + -0.02326251193881035, 0.040998827666044235, -0.03362027555704117, -0.05251431092619896, + -0.028433674946427345, -0.013383276760578156, 0.06248616427183151, 0.011523202061653137, + -0.01576818712055683, -0.05779352784156799, -0.01894034631550312, -0.01569872349500656, + -0.08817217499017715, -0.04572233557701111, 0.0012127148220315576, -0.003116204170510173, + 0.031582679599523544, 0.012271863408386707, -0.015389996580779552, -0.0741560161113739, + 0.014340328052639961, -0.003154794918373227, 0.03269409388303757, -0.03769546002149582, + -0.04609280824661255, 0.021780626848340034, -0.04186326265335083, 0.05507673695683479, + -0.01200172770768404, 0.02540815994143486, -0.024312181398272514, -0.023849092423915863, + 0.0084822503849864, 0.04871698096394539, 0.029082000255584717, 0.01317488681524992, + -0.013089987449347973, 0.023030968382954597, -0.011430583894252777, -0.04711160436272621, + -0.017736315727233887, 0.02559339441359043, 0.036738406866788864, -0.008899030275642872, + 1.4418776117963716e-5, 0.004052030388265848, -0.003920821473002434, 0.00953963678330183, + 0.012387635186314583, 0.058164000511169434, -0.0180913507938385, 0.01843094825744629, + -0.009192319586873055, -0.07841642946004868, -0.012920187786221504, -0.04951966926455498, + -0.00836647767573595, -0.03868338093161583, 0.010280579328536987, 0.05603379011154175, + -0.013977575115859509, 0.03216926008462906, -0.02363298460841179, 0.024837015196681023, + -0.005047671962529421, 0.05804051086306572, -0.0024003456346690655, -0.004596159793436527, + 0.0018851588247343898, -0.050414975732564926, 0.025439031422138214, -0.03726324066519737, + -0.014541000127792358, 0.02002088911831379, 0.04084446653723717, 0.022058481350541115, + -0.024265872314572334, 0.00895305722951889, 0.03374376520514488, 0.05828749015927315, + 0.02287660539150238, 0.004144648090004921, 0.0010593164479359984, -0.017242353409528732, + -0.003909244202077389, -0.01776718720793724, 0.03278671205043793, 0.013120859861373901, + -0.005796332843601704, 0.008644331246614456, -0.01202488224953413, 0.048068657517433167, + 0.011986291036009789, 0.0007081405492499471, 0.02432761713862419, 0.004773677326738834, + -0.04300554841756821, 0.014726235531270504, -0.007864797487854958, 0.010504405945539474, + 0.05893581360578537, 0.007718152832239866, -0.03201489895582199, -0.013892674818634987, + -0.055200230330228806, 5.264021456241608e-5, 0.035843100398778915, -0.0012107852380722761, + 0.01204803679138422, -0.012673206627368927, -0.03309543803334236, 0.021626263856887817, + 0.021348411217331886, -0.0005036094808019698, -0.019187327474355698, -0.0018591100815683603, + -0.01432489138096571, -0.03633706271648407, -0.0357196107506752, 0.001405668561346829, + 0.0214719008654356, -0.015976576134562492, 0.011700719594955444, -0.048778727650642395, + -0.027831658720970154, 0.020700085908174515, 0.012526562437415123, 0.0004558534128591418, + 0.0084822503849864, 0.010635614395141602, -0.02232089824974537, 0.03226187825202942, + 0.03642968088388443, 0.025161178782582283, -0.017087990418076515, 0.010705078020691872, + 0.0016082701040431857, -0.005827205255627632, 0.022444387897849083, -0.03587397560477257, + -0.026457827538251877, -0.022706804797053337, 0.025238359346985817, -0.033682018518447876, + -0.03550350293517113, -0.016393356025218964, -0.003527195891365409, -0.05124853551387787, + -0.002228616736829281, 0.003909244202077389, 0.0021514350082725286, 0.012981932610273361, + -0.009809772484004498, 0.009570509195327759, 0.02860347367823124, -0.02338600344955921, + -0.0036236727610230446, -0.03794243931770325, 0.019480617716908455, -0.04007264971733093, + -0.014641336165368557, -0.03269409388303757, 0.014641336165368557, -0.0005750023992732167, + 0.02381821908056736, 0.027723604813218117, 0.05686734989285469, -0.019048402085900307, + 0.039115600287914276, 0.03735585883259773, 0.010380915366113186, -0.002477527130395174, + 0.023941710591316223, -0.017365843057632446, -0.048315636813640594, 0.05884319543838501, + 0.001247446401976049, -0.04238809645175934, -0.023602111265063286, -0.017057117074728012, + 0.01969672553241253, -0.016702082008123398, 0.0023463184479624033, -0.001215609023347497, + -0.027739040553569794, -0.003042881842702627, -0.02315445803105831, 0.04028875753283501, + -0.009354401379823685, -0.0357196107506752, 0.0009695929475128651, 0.00787251628935337, + 0.017134299501776695, -0.01974303461611271, 0.002882729982957244, -0.003411423647776246, + -0.003998002968728542, 0.005796332843601704, -0.030116232112050056, 0.017196044325828552, + -0.008374195545911789, 0.017381280660629272, -0.008289296180009842, -0.008899030275642872, + 0.008505403995513916, -0.0053679752163589, -0.04106057435274124, -0.002303868532180786, + -0.014896035194396973, 0.014317173510789871, -0.0015957280993461609, -0.005703715141862631, + -0.032508861273527145, -0.04214111343026161, 0.032601479440927505, 0.04504314064979553, + -0.025099432095885277, 0.044147834181785583, 0.0016912402352318168, -0.022475261241197586, + 0.01631617546081543, -0.0030351635068655014, 0.008420504629611969, 0.04809952899813652, + 0.058071382343769073, -0.029421597719192505, 0.007517480757087469, -0.026241719722747803, + 0.010751387104392052, -0.024111509323120117, -0.004437937866896391, -0.007162445690482855, + 0.012433944270014763, 0.007177882362157106, -0.0010979071957990527, 0.008721512742340565, + 0.024975942447781563, 0.012217835523188114, 0.00026314076967537403, 0.025022251531481743, + -0.01082856860011816, -0.040906209498643875, 0.016069194301962852, -0.0014992512296885252, + -0.0840969905257225, -0.009748026728630066, -0.028958508744835854, -0.005865796003490686, + 0.011831928044557571, -0.04609280824661255, -0.0239571463316679, 0.021394720301032066, + -0.024111509323120117, -0.0030390226747840643, -0.01799873262643814, 0.04951966926455498, + 0.0007563789840787649, 0.0019816358108073473, -0.014070192351937294, 0.011762465350329876, + -0.000581755768507719, 0.0393008328974247, 0.014857443980872631, 0.009122856892645359, + 0.004430219531059265, -0.048223018646240234, -0.01721148006618023, 0.004052030388265848, + 0.01578362286090851, 0.010296016000211239, 0.043345145881175995, -0.005773178301751614, + 0.01317488681524992, 0.01960410736501217, -0.01495778001844883, 0.028294747695326805, + 0.012464816682040691, -0.033126313239336014, -0.004476528614759445, -0.0071122776716947556, + -0.005908246152102947, 0.003044811310246587, -0.047142475843429565, 0.02729138918220997, + -0.016238993033766747, -0.021780626848340034, -0.026658499613404274, 0.006707074586302042, + 0.013352404348552227, 0.016933627426624298, 0.03362027555704117, -0.02066921256482601, + -0.007108418736606836, 0.031026974320411682, -0.036491427570581436, -0.025145741179585457, + -0.015914831310510635, 0.019959142431616783, -0.027229642495512962, -0.013800057582557201, + 0.02602561190724373, -0.004106057342141867, 0.03269409388303757, -0.019496053457260132, + 0.021317537873983383, 0.013637975789606571, 0.03541088476777077, -0.025346413254737854, + -0.009508764371275902, -0.00022491179697681218, -0.0010255496017634869, -0.028325621038675308, + -0.018647057935595512, -0.0077451663091778755, 0.013437303714454174, -0.01843094825744629, + -0.008806412108242512, 0.004931899718940258, -0.022259153425693512, 0.003760670078918338, + 0.03534914180636406, -0.0012406930327415466, -0.022907476872205734, -0.05152639001607895, + -0.01907927356660366, -0.010766822844743729, -0.04078271985054016, 0.011337966658174992, + 0.029267234727740288, 0.028958508744835854, -0.014641336165368557, -0.009925544261932373, + 0.02752293273806572, 0.022861167788505554, 0.01622355729341507, -0.022521570324897766, + 0.00749046728014946, -4.5856682845624164e-5, 0.008829566650092602, -0.025053124874830246, + -0.008528558537364006, 0.025423595681786537, 0.009531918913125992, 0.015320532955229282, + 0.022938350215554237, -0.028804145753383636, -0.04522837698459625, -0.050939809530973434, + -0.06538818776607513, 0.010211116634309292, -0.058071382343769073, -0.009616818279027939, + -0.005225189495831728, -0.006830565165728331, -0.0017481616232544184, 0.0056303925812244415, + -0.03056388534605503, -0.026689372956752777, -0.03023972362279892, -0.004079043865203857, + 0.0010120427468791604, -0.017890678718686104, -0.00909198448061943, 0.0026068061124533415, + 0.049766648560762405, 0.0289276372641325, -0.038189418613910675, -0.03365114703774452, + -0.04902570694684982, -0.020746394991874695, 0.007386272307485342, -0.04979752376675606, + 0.0465250238776207, -0.024404799565672874, -0.043345145881175995, -0.03257060423493385, + 0.006301871966570616, -0.002514188177883625, 0.009964135475456715, -0.0072859362699091434, + 0.007011941634118557, -0.03951694071292877, -0.01603832095861435, -0.018724238499999046, + -0.013020523823797703, -0.04939617961645126, 0.004542132839560509, 0.0030216567683964968, + -0.0015687145059928298, -0.015081270597875118, -0.012403071857988834, 0.01204803679138422, + 0.011777901090681553, 0.05198947712779045, 0.010095343925058842, -0.026735682040452957, + 0.03417598083615303, -0.011098703369498253, -0.031767915934324265, -0.017690006643533707, + -0.02443567104637623, 0.006510261911898851, -0.03670753538608551, 0.004839282017201185, + 0.004704214166849852, 0.018816856667399406, 0.032045770436525345, 0.032941076904535294, + 0.016702082008123398, -0.030548449605703354, -0.018168531358242035, -0.046957243233919144, + 0.023972582072019577, -0.006900028791278601, 0.010982931591570377, -0.06094253435730934, + 0.006533416453748941, 0.007486608345061541, 0.008613458834588528, 0.07440299540758133, + 0.0006734088528901339, 0.017643697559833527, -0.030579321086406708, 0.011175884865224361, + 0.047049861401319504, -0.005838782526552677, 0.015644695609807968, -0.005773178301751614, + 0.04819214716553688, 0.00624784454703331, 0.01071279589086771, -0.025068560615181923, + 0.026133665814995766, -0.012379917316138744, 0.013645694591104984, -0.04979752376675606, + 0.031767915934324265, -0.038899488747119904, -0.013537639752030373, -0.021024247631430626, + 0.011175884865224361, -0.010566150769591331, -0.030733684077858925, 0.029930995777249336, + 0.007224190980195999, -0.017690006643533707, -0.0314437560737133, 0.022675933316349983, + 0.032508861273527145, -0.002902025356888771, -0.06878417730331421, -0.011839646846055984, + -0.009246347472071648, -6.572489655809477e-5, -0.005449016112834215, -0.018832292407751083, + -0.0038108378648757935, -0.0013091916916891932, 0.011600383557379246, -0.004048170987516642, + -0.03689277172088623, -0.009284937754273415, 0.021672572940587997, 0.020113505423069, + -0.03023972362279892, 0.004017298575490713, -0.020761830732226372, -0.015621541067957878, + -0.009964135475456715, -0.006984928157180548, 0.029699452221393585, -0.009130574762821198, + 0.015930267050862312, 0.016254430636763573, -0.004958913195878267, 0.019758470356464386, + 0.0016574732726439834, -0.026643063873052597, -0.020375924184918404, 0.028665220364928246, + -0.023602111265063286, 0.029884688556194305, 0.010087626054883003, -0.026890045031905174, + -0.043437764048576355, -0.013537639752030373, -0.003083402058109641, -0.027322260662913322, + 0.034021615982055664, 0.01721148006618023, 0.002058817306533456, -0.008675203658640385, + 0.044333070516586304, -0.03454645350575447, -0.014996371231973171, -0.03399074450135231, + 0.013545358553528786, 0.028572602197527885, -0.010465815663337708, -0.014062474481761456, + 0.0024292885791510344, -0.017967859283089638, -0.004326024558395147, 0.014996371231973171, + -0.014818853698670864, 0.01511986181139946, -0.007328385952860117, 0.0013275223318487406, + -0.019820217043161392, -0.009400710463523865, 0.03179879114031792, 0.0442713238298893, + 0.0180913507938385, -0.028526293113827705, -0.036831025034189224, -0.021070556715130806, + -0.018276585265994072, 8.345252717845142e-5, 0.006016300059854984, -0.016254430636763573, + 0.013483612798154354, 0.0063250260427594185, -0.0018735815538093448, 0.009146011434495449, + -0.011129576712846756, 0.028726965188980103, 0.0022517710458487272, 0.017381280660629272, + 0.00478139566257596, -0.006479389499872923, -0.009832927025854588, 0.0016092348378151655, + -0.022197406738996506, -0.010280579328536987, 0.0262108463793993, -0.009647690691053867, + -0.0343303419649601, -0.00749046728014946, 0.010234270244836807, 0.07452648133039474, + 0.029220927506685257, -0.0053139482624828815, -0.02442023530602455, -0.010002725757658482, + 0.012179245240986347, 0.012271863408386707, 0.03791156783699989, 0.005082403775304556, + -0.01721148006618023, -0.0015069693326950073, -0.0009985360084101558, 0.0035484207328408957, + 0.0070389555767178535, -0.014602744951844215, -0.0032203993760049343, -0.0004954089527018368, + 0.011283939704298973, -0.037016261368989944, -0.04701898619532585, -0.008613458834588528, + 0.00041026805411092937, -0.040906209498643875, -0.022444387897849083, 0.027075279504060745, + -0.001615023473277688, 0.007089123595505953, -0.005811769049614668, -0.031212210655212402, + 0.07668756693601608, 0.015220197848975658, 0.007548353634774685, -0.03141288086771965, + -0.005993145518004894, -0.0020047901198267937, 0.02634977363049984, 0.020406795665621758, + 0.012935624457895756, 0.015058116056025028, -0.0339290015399456, -0.01569872349500656, + 0.009740308858454227, -0.04553710296750069, -0.0023887683637440205, -0.065079465508461, + -0.04618542641401291, -0.0019343621097505093, -0.0038667945191264153, 0.0456605926156044, + -0.009763463400304317, 0.010396352037787437, -0.04556797444820404, 0.023555802181363106, + -0.01926450990140438, 0.032323624938726425, 0.04646328091621399, -0.011739310808479786, + 0.01617724820971489, 0.003967130556702614, -0.018153095617890358, 0.015791339799761772, + 0.01776718720793724, 0.04683374986052513, -0.006097340956330299, -0.006051031872630119, + 0.008698358200490475, 0.039547815918922424, -0.020468540489673615, 0.028047766536474228, + 0.0352565236389637, 0.0016835221322253346, -0.04056661203503609, -0.0028672937769442797, + -0.034299470484256744, -0.05174249783158302, 0.010311451740562916, 0.003253201488405466, + 0.02451285347342491, -0.02713702619075775, 0.026550445705652237, -0.0007853220449760556, + 0.006626034155488014, -0.028294747695326805, -0.027646424248814583, 0.014185965061187744, + -0.010697360150516033, -0.0339290015399456, -0.009346683509647846, -0.013460458256304264, + 0.001144216163083911, -0.026195410639047623, 0.014610463753342628, -0.02715246193110943, + -0.0028672937769442797, 0.03315718472003937, 0.024682652205228806, -0.010550715029239655, + 0.007799193263053894, -0.019063837826251984, 0.019990015774965286, 0.0008851756574586034, + -0.011361121200025082, -0.001357430126518011, 0.02611823007464409, -0.014016165398061275, + -0.0025662858970463276, -0.0055840834975242615, -0.009755745530128479, 0.022768551483750343, + 0.0316135548055172, -0.004928040783852339, 0.010789977386593819, 0.01129937544465065, + -0.053656596690416336, 0.0041870977729558945, 0.002552779158577323, 0.03442296013236046, + -0.01511986181139946, -0.0001877681934274733, -0.01739671640098095, -0.00180508301127702, + 0.03189140930771828, -0.03153637424111366, 0.012889315374195576, -0.010380915366113186, + -0.015243351459503174, 0.05316263809800148, 0.017983296886086464, 0.014973216690123081, + 0.013583948835730553, -0.040010903030633926, -0.030039051547646523, 0.005553211085498333, + 0.01739671640098095, -0.041986752301454544, -0.0442713238298893, 0.027445752173662186, + -0.017319535836577415, 0.023432312533259392, -0.020036324858665466, -0.018971219658851624, + 0.010041316971182823, -0.015706440433859825, 0.021456465125083923, 0.008644331246614456, + 0.023169895634055138, -0.0030660361517220736, 0.003264778759330511, -0.016810137778520584, + 0.010789977386593819, -0.030918920412659645, 0.028943073004484177, 0.01617724820971489, + -0.03491692245006561, -0.031212210655212402, -0.017412152141332626, 0.0012561293551698327, + -0.02232089824974537, 0.05884319543838501, -0.013352404348552227, -0.036676663905382156, + -0.0014114571968093514, 0.013236632570624352, 0.020360486581921577, -0.024960506707429886, + 0.0030390226747840643, 0.014896035194396973, 0.02296922355890274, -0.026504136621952057, + 0.005383411422371864, 0.019634980708360672, 0.029745761305093765, 0.007143150549381971, + 0.0024215704761445522, 0.004445656202733517, -0.003986426163464785, -0.017643697559833527, + 0.006379053462296724, 0.009392991662025452, -0.01371515728533268, -0.014309455640614033, + 0.01626986637711525, -0.0018108716467395425, 0.04908745363354683, 0.020360486581921577, + 0.0010429153917357326, 0.007042814511805773, -0.00784936174750328, 0.0022093213628977537, + -0.001120096887461841, 0.019372563809156418, 0.019249072298407555, 0.005113276187330484, + 0.02574775740504265, -0.028402801603078842, -0.003940117079764605, -0.029606834053993225, + 0.018292022868990898, 0.0066877794452011585, -0.0023019390646368265, -0.02333969436585903, + -0.05995460972189903, 0.002676269505172968, -0.01024198904633522, 0.017612824216485023, + -0.02499137818813324, -0.024358490481972694, 0.007035096175968647, 0.020561158657073975, + 0.008173523470759392, -0.02952965348958969, 0.04439481347799301, -0.016161812469363213, + -0.018014168366789818, -0.0239571463316679, 0.021965863183140755, -0.03880687430500984, + -0.005522338207811117, 0.023509493097662926, 0.012210117653012276, 8.254805288743228e-5, + 0.015150734223425388, 0.020144378766417503, 0.008798694238066673, -0.03423772752285004, + 0.055632445961236954, 0.03309543803334236, -0.0065681482665240765, 0.0041137756779789925, + 0.013653412461280823, -0.022722242400050163, 0.004106057342141867, 0.004376192577183247, + 0.014054756611585617, -0.021487336605787277, -0.035565249621868134, -0.006984928157180548, + 0.004306729417294264, 0.01603832095861435, -0.01907927356660366, -0.01716517098248005, + -0.002739944262430072, 0.033589400351047516, -0.005175021477043629, 0.022336333990097046, + -0.0051595852710306644, -0.008675203658640385, -0.010164807550609112, -0.0017558797262609005, + -0.019341690465807915, -0.01626986637711525, -0.011376556940376759, 0.013398713432252407, + -0.014795699156820774, -0.016485974192619324, -0.0011982432333752513, -0.02414238266646862, + 0.004823845345526934, 0.004345320165157318, -0.034855179488658905, -0.027785349637269974, + 0.020329615101218224, -0.04143104329705238, -0.004214111249893904, -0.055817682296037674, + -0.007065969053655863, -0.004009580239653587, -0.02321620285511017, -0.0009642867371439934, + 0.03010079637169838, -0.013668849132955074, -0.0013072621077299118, 0.00030896731186658144, + -0.037201497703790665, 0.02335513010621071, -0.022938350215554237, -0.00965540949255228, + 0.04887134209275246, 0.025577958673238754, -0.007660266477614641, 0.036923643201589584, + 0.004206393379718065, -0.000302937492961064, -0.01608463004231453, 0.0069463374093174934, + 0.018785983324050903, -0.01753564365208149, 0.006016300059854984, -0.0021340693347156048, + -0.009848362766206264, 0.004495824221521616, -0.0018234136514365673, -0.0118628004565835, + 0.03538001328706741, 0.010450378991663456, 0.018322894349694252, -0.01498093456029892, + 0.006846001371741295, 0.02574775740504265, -0.005232907831668854, -0.02428130805492401, + 0.0015494191320613027, -0.00397484889253974, 0.0009174954029731452, -0.02404976449906826, + 0.038745127618312836, 0.015135297551751137, 0.026272593066096306, -0.02320076711475849, + -0.004931899718940258, 0.023617547005414963, 0.004885590635240078, -0.0032049629371613264, + -0.018631620332598686, -0.003994144033640623, 0.003384409938007593, -0.01880142092704773, + -0.033126313239336014, 0.01875511184334755, -0.013668849132955074, 0.010087626054883003, + -0.012186963111162186, 0.0019102428341284394, 0.03609008342027664, 0.014216837473213673, + -0.0089299026876688, 0.0035059708170592785, -0.029328981414437294, 0.022444387897849083, + -0.04664851725101471, 0.010033599101006985, -0.011654410511255264, -0.017103426158428192, + -0.011422866024076939, 0.0125419981777668, -0.02625715546309948, 0.014494691044092178, + 0.0038552172482013702, -0.006934760138392448, -0.0009285902488045394, -0.005962273105978966, + -0.008644331246614456, -0.0070158010348677635, 0.014093346893787384, 0.000561978027690202, + 0.0501679927110672, -0.02400345541536808, 0.0051827398128807545, -0.006398348603397608, + -0.030841737985610962, 0.0025547086261212826, -0.0038552172482013702, -0.005919823423027992, + -0.02807863987982273, -0.00509783998131752, -0.014764826744794846, 0.010380915366113186, + -0.03939345106482506, -0.014131938107311726, 0.000518563378136605, -0.023478621616959572, + 0.004507401026785374, -0.02676655352115631, -0.016254430636763573, -0.04729684069752693, + 0.0035252664238214493, -0.0016478255856782198, 0.020190687850117683, -0.023988019675016403, + -0.021394720301032066, -0.03695451468229294, -0.0001309674116782844, -0.023277949541807175, + -0.004796831868588924, -0.0021880962885916233, -0.023123586550354958, 0.0070158010348677635, + -0.017597388476133347, -0.01861618459224701, 0.008327886462211609, -0.015112143009901047, + 0.010404069907963276, 0.024960506707429886, -0.00949332769960165, 0.016022885218262672, + -0.019619544968008995, 0.009933263063430786, 0.017381280660629272, 0.0029039550572633743, + -0.0015725736739113927, 0.0004105092666577548, 0.03216926008462906, 0.014872880652546883, + 0.005885091610252857, 0.005981568247079849, 0.01907927356660366, 0.006487107370048761, + -0.017875241115689278, -0.008806412108242512, 0.002327023074030876, -0.03139744699001312, + -0.0003475580597296357, 0.019187327474355698, 0.02188868075609207, -0.0024910338688641787, + 0.02354036644101143, 0.013352404348552227, -0.012912469916045666, -0.009130574762821198, + 0.022382643073797226, -0.03272496908903122, -0.0002672410337254405, -0.001504075014963746, + 0.020236996933817863, 0.04130755364894867, -0.020036324858665466, 0.005248344037681818, + -0.033126313239336014, 0.009663127362728119, -0.010774541646242142, 0.004692636895924807, + 0.007664125878363848, 0.008505403995513916, 0.0034172122832387686, 0.008466813713312149, + -0.005248344037681818, -0.016377920284867287, 0.003531054826453328, 0.00749046728014946, + 0.00600086385384202, -0.028943073004484177, 0.0066414703615009785, 0.01716517098248005, + 0.0012464816682040691, 0.009223192930221558, 0.007556071504950523, 0.015150734223425388, + -0.009084265679121017, 5.788614726043306e-5, -0.02043766900897026, 0.007749025244265795, + -0.016146374866366386, 0.008837285451591015, 0.01562925986945629, 0.006132072303444147, + -0.00836647767573595, 0.035935718566179276, 0.0007597556686960161, 0.00897621177136898, + -0.0009218368795700371, -0.008659767918288708, 0.0029753479175269604, 0.03534914180636406, + 0.003799260826781392, 0.026920916512608528, 0.015065833926200867, 0.043345145881175995, + -0.013035960495471954, -0.012881597504019737, 0.004592300858348608, 0.0006463953177444637, + 0.024543726816773415, -0.016655772924423218, -0.007640971336513758, 0.014023883268237114, + 0.019943706691265106, 0.012796697206795216, -0.00665690703317523, -0.002014437923207879, + 0.00832016859203577, -0.015274224802851677, 0.020730959251523018, -0.004704214166849852, + 0.02198129892349243, 0.03488605096936226, -0.003419141750782728, 0.019449744373559952, + 0.030548449605703354, -0.00024119227600749582, 0.0628257617354393, -0.016192683950066566, + 0.0037085723597556353, 0.008922184817492962, -0.03500954061746597, 0.029792070388793945, + 0.003123922273516655, -0.016949063166975975, 0.01572187803685665, 0.0049511948600411415, + 0.006606739014387131, -0.014942344278097153, 0.019094709306955338, -0.034114234149456024, + -0.018878601491451263, 0.018060477450489998, -0.019727598875761032, -0.02724508009850979, + 0.005514620337635279, 0.0027959009166806936, -0.01735040731728077, -0.026226283982396126, + 0.06995733827352524, 0.04992101341485977, 0.037016261368989944, 0.017134299501776695, + -0.016192683950066566, -0.01935712806880474, 0.041801515966653824, -0.017365843057632446, + -0.005090121645480394, -0.024173254147171974, -0.058071382343769073, 0.011253067292273045, + 0.015019525773823261, -0.005997004918754101, 0.002236334839835763, 0.047852545976638794, + -0.003967130556702614, 0.010867158882319927, 0.010604741983115673, -0.012109781615436077, + 0.002905884524807334, -0.020761830732226372, 0.013599385507404804, 0.0003277802898082882, + 0.012788979336619377, -0.036645788699388504, 0.014556435868144035, 0.011808773502707481, + 0.022490696981549263, 0.014294018968939781, -0.012395353056490421, 0.001979706110432744, + -0.005429720506072044, -0.007166305091232061, -0.022614188492298126, -0.017010807991027832, + -0.014857443980872631, 0.015312815085053444, -0.0023540365509688854, -0.00044210543273948133, + -0.01687188260257244, 0.022984659299254417, 0.04075184836983681, 0.014286301098763943, + -0.00888359360396862, 0.006973350886255503, 0.009146011434495449, -0.02071552164852619, + -0.015474896878004074, -0.006514120846986771, 0.016022885218262672, -0.004457233473658562, + -0.03463907167315483, -0.008312450721859932, -0.012734952382743359, -0.017967859283089638, + -0.0015310886083170772, -0.009925544261932373, 0.011901391670107841, -0.007328385952860117, + 0.0010786118218675256, -0.02480614371597767, 0.004592300858348608, -0.011283939704298973, + ], + index: 9, + }, + { + title: "Gourmet Night", + text: '"Gourmet Night" is the fifth episode in the first series of the BBC TV sitcom Fawlty Towers.', + vector: [ + -0.019300807267427444, 0.03594567999243736, -0.024250507354736328, 0.036156948655843735, + 0.05160966515541077, -0.00436871312558651, -0.02621227689087391, 0.009740946814417839, + -0.04756540060043335, 0.04859155789017677, 0.021549299359321594, 0.02732897736132145, + -0.04693159833550453, 0.014253020286560059, -0.021519118919968605, -0.014177567325532436, + -0.017957748845219612, 0.0019174424232915044, -0.01405684370547533, -0.008548794314265251, + 0.013075958006083965, 0.001959884539246559, 0.03748491406440735, 0.023420527577400208, + 0.007771630771458149, 0.028415497392416, 0.0061456249095499516, 0.011008553206920624, + 0.02055332250893116, 0.002425805199891329, -0.04481891915202141, -0.006643612869083881, + 0.020402418449521065, -0.04835010692477226, -0.08800806105136871, -0.030226362869143486, + 0.03120724856853485, 0.0735815018415451, 0.03805835545063019, 0.00016528862761333585, + -0.034496989101171494, -0.017520124092698097, 0.014253020286560059, 0.02001006342470646, + -0.047987934201955795, -0.05260564386844635, -0.02281690575182438, -0.016388332471251488, + -0.031327974051237106, -0.026242459192872047, 0.022394370287656784, 0.039265599101781845, + 0.024310868233442307, 0.047655943781137466, 0.05372234061360359, 0.02029678411781788, + 0.023541251197457314, 0.01337776891887188, -0.0020768363028764725, -0.033651918172836304, + 0.0026050054002553225, -0.02334507368505001, -0.005225101485848427, 0.0006224850076250732, + 0.007552817929536104, 0.03016600012779236, 0.008699699304997921, 0.0591549389064312, + -0.005964538082480431, 0.0037650910671800375, 0.002208878519013524, 0.018908454105257988, + -0.027721332386136055, 0.022424550727009773, -0.0007267040782608092, -0.04506037011742592, + -0.0034613939933478832, -0.014305837452411652, -0.03733401000499725, -0.020930586382746696, + -0.05483904108405113, 0.010163482278585434, 0.013777668587863445, 0.0019712024368345737, + 0.0316297821700573, 0.02867203578352928, -0.022288735955953598, -0.05127767473459244, + -0.007997988723218441, 0.07913482189178467, 0.025095578283071518, 0.02476358599960804, + 0.015920525416731834, 0.003817908000200987, 0.015845073387026787, -0.003561368677765131, + 0.008458251133561134, -0.020674047991633415, -0.006134307011961937, 0.03793762996792793, + -0.021322941407561302, -0.06138833984732628, -0.030015096068382263, -0.019270626828074455, + 0.006032445468008518, 0.02059859409928322, -0.011212275363504887, -0.03099597990512848, + -0.006454980932176113, -0.05435614660382271, 0.03654929995536804, 0.010495474562048912, + 8.506116137141362e-5, 0.04472837597131729, 0.016991954296827316, -0.026966804638504982, + -0.03860161453485489, -0.007677315268665552, 0.0060928077436983585, -0.0009478749125264585, + -0.04810865968465805, -0.038088537752628326, -0.025789743289351463, 0.013513583689928055, + 0.011325454339385033, 0.012608150951564312, 0.012691148556768894, 0.004330986645072699, + -0.07400403916835785, -0.05622737482190132, 0.0037858407013118267, 0.030875256285071373, + 0.01000503171235323, -0.0003657099441625178, -0.0019655434880405664, 0.02059859409928322, + -0.060030192136764526, 0.03920523822307587, -0.0027483655139803886, -0.014139841310679913, + 0.028777670115232468, 0.012789237312972546, 0.005896630696952343, -0.021609662100672722, + 0.023133806884288788, 0.02897384762763977, -0.020719319581985474, 0.01014839205890894, + 0.007171781733632088, -0.0011233024997636676, 0.019768614321947098, 0.0005258112214505672, + -0.005466550122946501, 0.02084004320204258, -0.03540242090821266, 0.012547789141535759, + -0.0017505033174529672, -0.003783954307436943, -0.07545273005962372, 0.0038707249332219362, + -0.06422536075115204, -0.008616701699793339, -0.03156942129135132, 0.01601106859743595, + 0.005240192171186209, 0.031026162207126617, 0.008209256455302238, -0.002697434974834323, + -0.030467811971902847, -0.0017948318272829056, 0.027374248951673508, -0.03322938084602356, + 0.004259306471794844, -0.011989438906311989, 0.00789235532283783, 0.0535714365541935, + 0.024582499638199806, 0.08082496374845505, 0.010918010026216507, -0.0018712276360020041, + -0.020206240937113762, 0.02930583991110325, -0.027178073301911354, -0.04189135506749153, + -0.06199195981025696, -0.021458756178617477, -0.028475860133767128, 0.03510060906410217, + -0.02563883736729622, 0.007054829970002174, -0.011189639568328857, 0.04143863916397095, + -0.005726862233132124, -0.06899397820234299, 0.01631288044154644, 0.03820926323533058, + -0.0325653962790966, -0.00703973975032568, -0.016131794080138206, 0.06126761436462402, + -0.010042757727205753, -0.0013015595031902194, -0.01197434775531292, -0.03974849730730057, + -0.00789235532283783, 0.028838032856583595, -0.031388334929943085, 0.046267613768577576, + 0.005745725240558386, 0.016146883368492126, 0.03836016729474068, -0.013445676304399967, + -0.01658450998365879, 0.05130785331130028, 0.002569165313616395, -0.005149648524820805, + -0.00884305965155363, 0.06476861983537674, 0.015950705856084824, -0.004798793699592352, + -0.02950201742351055, -0.029954733327031136, -0.009891852736473083, 0.007156691048294306, + 0.019602619111537933, -0.03603622317314148, -0.00337650952860713, -0.05483904108405113, + -0.04059356823563576, 0.05405433475971222, -0.02082495205104351, -0.012608150951564312, + -0.08197184652090073, -0.021519118919968605, -0.028626764193177223, 0.053299807012081146, + 0.013739941641688347, -0.05064387246966362, 0.01572434790432453, 0.0006951082614250481, + -0.023797789588570595, 0.05800805613398552, -0.01776157133281231, -0.006300302688032389, + 0.018802819773554802, 0.007066147867590189, 0.03141851723194122, -0.012909961864352226, + -0.038722340017557144, -0.038118720054626465, -0.010812375694513321, -0.00753772770985961, + 0.017278674989938736, 0.013468312099575996, 0.024114692583680153, -0.0018731140298768878, + 0.0024842810817062855, 0.04638833552598953, -0.00900905579328537, 0.029396383091807365, + -0.06525152176618576, 0.010389840230345726, 0.029773646965622902, 0.01462273858487606, + -0.0388430655002594, -0.0032029682770371437, -0.012140343897044659, -0.04678069055080414, + -0.008050805889070034, 0.010767104104161263, 0.05272636562585831, -0.006673793774098158, + 0.0054061878472566605, 0.04086519777774811, -0.01747485250234604, -0.04735413193702698, + 0.032203223556280136, -0.016493966802954674, 0.034225355833768845, -0.0049798800610005856, + 0.065432608127594, -0.0033802823163568974, -0.027751512825489044, -0.03377263993024826, + -0.010155937634408474, 0.02900402806699276, -0.02588028647005558, 0.022364187985658646, + 0.007439638953655958, 0.04415493831038475, -0.03410463407635689, -0.00860161054879427, + 0.05514085292816162, 0.024688132107257843, 0.01024648081511259, 0.058672040700912476, + 0.016207246109843254, 0.05139840021729469, 0.05903421342372894, 0.01012575626373291, + 0.024537228047847748, 0.005617455579340458, -0.021292759105563164, 0.003246353706344962, + -0.003949950449168682, 0.00754150003194809, -0.05160966515541077, -0.011325454339385033, + -0.010072939097881317, -0.009046781808137894, 0.022847086191177368, -0.021277669817209244, + -0.05173039063811302, 0.04189135506749153, -0.03063380718231201, 0.03959759324789047, + -0.024537228047847748, -0.026619723066687584, 0.028536221012473106, -0.03040744923055172, + 0.03175050765275955, 0.0049987430684268475, -0.032233405858278275, -0.022017106413841248, + 0.06603622436523438, -0.020326964557170868, 0.031720325350761414, 0.020915497094392776, + -0.0010186118306592107, -0.02563883736729622, 0.014456742443144321, -0.02025151252746582, + -0.0018683981616050005, 0.05855131521821022, 0.022590545937418938, -0.00780935725197196, + -0.015301813371479511, 0.02052314206957817, 0.010789739899337292, -0.049979887902736664, + 0.022575456649065018, 0.070865198969841, 0.05761570483446121, 0.050855137407779694, + -0.0016712779179215431, 0.07056339085102081, 0.04554326832294464, 0.016720324754714966, + -0.004036720842123032, -0.0388430655002594, 0.0007625441066920757, 0.01069165114313364, + -0.026649903506040573, 0.04134809598326683, -0.03253521770238876, 0.015196179039776325, + -0.008993965573608875, -0.017671028152108192, 0.022605637088418007, 0.06344065070152283, + -0.0055155945010483265, -0.030603626742959023, 0.022847086191177368, 0.03066398948431015, + -0.01801811158657074, 0.008065897040069103, 0.035885319113731384, 0.02139839343726635, + 0.012140343897044659, -0.020402418449521065, -0.06603622436523438, -0.026514088734984398, + -0.02108149230480194, -0.032173044979572296, -0.002422032644972205, 0.011981893330812454, + 0.018636824563145638, -0.02420523576438427, 0.004730885848402977, -0.020689137279987335, + -0.012494971975684166, -0.032173044979572296, -0.016146883368492126, -0.03654929995536804, + 0.002631413983181119, 0.03398390859365463, -0.004202716983854771, -0.027147890999913216, + 0.014524649828672409, 0.008677063509821892, -0.03513079136610031, -0.010382295586168766, + 0.007473592646420002, 0.015543261542916298, -0.004674296360462904, -0.0338028222322464, + -0.01747485250234604, 0.020749500021338463, 0.03576459363102913, -0.06989941000938416, + -0.004330986645072699, 0.039839040488004684, 0.0489235483109951, -0.0019268740434199572, + -0.022454731166362762, 0.004678069148212671, 0.0247334036976099, 0.028249502182006836, + 0.034798797219991684, 0.01715794950723648, -0.002959633246064186, 0.012774147093296051, + -0.03923541679978371, 0.013702215626835823, 0.02281690575182438, 0.027510065585374832, + 0.006413481663912535, 0.016539238393306732, 0.0001283875317312777, -0.006873743608593941, + 0.04587525874376297, 0.04895373061299324, -0.0022843312472105026, 0.028249502182006836, + -0.003410463221371174, 0.0049421535804867744, 0.021277669817209244, 0.006862425711005926, + -0.036971837282180786, -0.03232394903898239, 0.008646883070468903, -0.026559360325336456, + -0.02698189578950405, 0.02471831440925598, 0.005447687115520239, 0.0011534836376085877, + -0.013340041972696781, 0.0676056444644928, 0.020432598888874054, 0.012268614023923874, + 0.005994719453155994, -0.02195674367249012, 0.005028924439102411, 0.01025402545928955, + -0.03796781226992607, -0.0009554201969876885, 0.026091553270816803, 0.003336896887049079, + 0.032837025821208954, -0.004021630622446537, 0.019587527960538864, -0.030829984694719315, + -0.03748491406440735, 0.020311875268816948, 0.0913279801607132, -0.013340041972696781, + 0.010578472167253494, 0.020960768684744835, 0.036156948655843735, -0.013838030397891998, + -0.004059356637299061, 0.02277163416147232, 0.041800811886787415, -0.028611674904823303, + 0.016659962013363838, -0.004263079259544611, -0.0163581520318985, 0.021443665027618408, + 0.003152037737891078, -0.006877516396343708, -0.00437248544767499, 0.00214474368840456, + -0.05064387246966362, -0.013219318352639675, 0.0026446180418133736, 0.009167506359517574, + -0.018787728622555733, 0.02591046690940857, 0.013777668587863445, -0.04506037011742592, + -0.012849600054323673, 0.009552315808832645, 0.0507042333483696, 0.02109658345580101, + 0.040895380079746246, 0.04204225912690163, 0.010465293191373348, -0.041800811886787415, + -0.024009058251976967, 0.01742958091199398, -0.015384810976684093, -0.04146881774067879, + 0.007930081337690353, 0.026936624199151993, -0.003112425096333027, -0.0030030186753720045, + 0.032233405858278275, 0.02817404828965664, -0.0314788781106472, -0.006021127570420504, + 0.010306842625141144, -0.04071429371833801, -0.00675301905721426, 0.053903430700302124, + 0.013543765060603619, -0.013445676304399967, 0.019587527960538864, 0.05550302565097809, + 0.01916499249637127, 0.036730386316776276, 0.007002013269811869, 0.05432596430182457, + 0.002425805199891329, 0.04104628413915634, -0.006730383262038231, -0.02477867528796196, + 0.0010572813916951418, -0.03826962411403656, 0.04916499927639961, -0.012668512761592865, + 0.025186121463775635, -0.04340041056275368, -0.0224849134683609, -0.018244469538331032, + -0.005168511997908354, 0.07104628533124924, -0.01579980179667473, 0.02477867528796196, + 0.0006908640498295426, 0.007914991118013859, 0.012147889472544193, -0.017052317038178444, + 0.00045719638001173735, -0.006730383262038231, -0.009763582609593868, 0.02025151252746582, + -0.00640216376632452, 0.04665996879339218, 0.011423543095588684, -0.010940645821392536, + 0.01394366379827261, -0.05483904108405113, -0.02052314206957817, -0.015241450630128384, + 0.010752013884484768, 0.002024019369855523, -0.003127515548840165, -0.010223845019936562, + 0.004338531754910946, -0.021730385720729828, -0.02023642137646675, 0.017293766140937805, + 0.022077469155192375, 0.022017106413841248, -0.031961776316165924, -0.06440644711256027, + -0.05987928435206413, 0.003008677624166012, -0.009167506359517574, 0.00913732498884201, + 0.0338028222322464, 0.007960262708365917, -0.022183101624250412, 0.007300051394850016, + -0.026634812355041504, 0.026363182812929153, -0.0012534584384411573, -0.017852116376161575, + 0.003972586244344711, -0.009627767838537693, 0.0665191262960434, 0.031056342646479607, + 0.01029929704964161, 0.01027666125446558, 5.597059862338938e-5, 0.05151912197470665, + -0.0120950723066926, -0.033621735870838165, -0.014260565862059593, -0.03516096994280815, + -0.002088154200464487, 0.0037254784256219864, 0.0033312379382550716, -0.010193663649260998, + -0.0035160970874130726, 0.012411973439157009, -0.01631288044154644, 0.030045276507735252, + -0.04451711103320122, 0.011906440369784832, 0.0377565436065197, 0.008850605227053165, + -0.00668888445943594, -0.00857143010944128, -0.02986419014632702, 0.03099597990512848, + 0.01265342254191637, 0.052454736083745956, 0.03190141171216965, -0.00971831101924181, + 0.010495474562048912, 0.009212777949869633, 0.00019440866890363395, 0.015279177576303482, + 0.006073944736272097, 0.052484918385744095, -0.029154933989048004, 0.01282696332782507, + -0.020613685250282288, -0.014856642112135887, -0.0697786808013916, -0.009974850341677666, + -0.026800809428095818, 0.010510564781725407, 0.028415497392416, -0.01632796972990036, + 0.016418512910604477, 0.006371982861310244, 0.01800302043557167, -0.005858904216438532, + 0.0014185112668201327, -0.0066851116716861725, 0.029713284224271774, 0.01913481205701828, + 0.01572434790432453, 0.016825959086418152, 0.0020900405943393707, 0.010525655932724476, + -0.02924547716975212, -0.0157394390553236, 0.006681338883936405, 0.013958754949271679, + 0.014826460741460323, 0.001825012848712504, 0.015264087356626987, 0.013838030397891998, + 0.0057985419407486916, -0.004798793699592352, 0.020040243864059448, 0.028475860133767128, + 0.009408955462276936, -0.019255535677075386, -0.022288735955953598, 0.0205835048109293, + -0.035583507269620895, -0.01223843265324831, 0.05182093381881714, 0.005376006942242384, + -0.012434609234333038, 0.016735415905714035, -0.00857897475361824, 0.03639839589595795, + 0.033682096749544144, 0.020160969346761703, 0.0019862931221723557, -0.022092558443546295, + 0.046871233731508255, -0.0505533292889595, -0.01916499249637127, 0.014532195404171944, + -0.05257546156644821, -0.0002349645073991269, 0.0060928077436983585, 0.015331994742155075, + 0.02001006342470646, 0.011076460592448711, -0.005783451721072197, -0.019285717979073524, + -0.012872235849499702, -0.0078697195276618, -0.03712274134159088, -0.036156948655843735, + -0.020870225504040718, 0.010231389664113522, 0.01549798995256424, 0.015218814834952354, + -0.014803824946284294, 0.0411670096218586, -0.0014826460974290967, -0.0005739122861996293, + -0.03150906041264534, 0.005417505744844675, -0.02052314206957817, 0.008005534298717976, + -0.0157394390553236, 0.021292759105563164, -0.03015091083943844, 0.02170020528137684, + 0.021881291642785072, 0.018169017508625984, -0.0031671281903982162, 0.011996983550488949, + 0.0003614657325670123, 0.04391348734498024, -0.018244469538331032, -0.016463784500956535, + -0.004961017053574324, 0.0018061497248709202, 0.014675555750727654, 0.006651157978922129, + -0.03516096994280815, -0.00457998039200902, -0.022620728239417076, -0.041559360921382904, + -0.013038231059908867, 0.034798797219991684, -0.018108654767274857, 0.015369720757007599, + -0.02447686530649662, -0.009914488531649113, -0.026861170306801796, -0.005213783588260412, + 0.008661973290145397, -0.0014213407412171364, -0.04201208055019379, 0.028309863060712814, + -0.045150913298130035, -0.01503772847354412, 0.010495474562048912, -0.008669518865644932, + 0.02415996417403221, 0.007854629307985306, -0.04958753287792206, -0.041529182344675064, + -0.010442657396197319, -0.02280181460082531, -0.027676060795783997, 0.016841048374772072, + -0.003289738902822137, -0.002522007329389453, -0.034225355833768845, -0.04137827455997467, + -0.004478119313716888, 0.007579226512461901, 0.0270573478192091, 0.006119216326624155, + -0.038088537752628326, 0.004764840006828308, 0.0012553447159007192, -0.01693159155547619, + 0.04439638555049896, 0.01997988298535347, 0.02956237830221653, -0.0010450202971696854, + -0.013702215626835823, -0.00390467862598598, 0.01605634018778801, -0.0009375001536682248, + -0.004361167550086975, -0.017550304532051086, 0.006364437751471996, 0.030452720820903778, + -0.01886318251490593, -0.012019619345664978, -0.029683103784918785, -0.017806842923164368, + 0.006134307011961937, -0.007960262708365917, -0.02417505346238613, 0.024144873023033142, + 0.005130785517394543, -0.03359155356884003, -0.0017646506894379854, -0.0427967868745327, + 0.03322938084602356, -0.001184607855975628, 0.015875253826379776, -0.01095573604106903, + -0.009748492389917374, 0.01712776906788349, 0.017655938863754272, -0.009529680013656616, + -0.04270624369382858, -0.03187123313546181, 0.02613682486116886, 0.01994970068335533, + 0.0049232905730605125, 0.022982900962233543, -0.010985917411744595, -0.01546780951321125, + -0.004527163691818714, -0.006477616727352142, 0.020191149786114693, 0.012110162526369095, + -0.03657948225736618, -0.05311872065067291, 0.006070171948522329, 0.004734658636152744, + -0.007032194174826145, 0.026333002373576164, -0.027796784415841103, -0.02983400784432888, + -0.014200203120708466, -0.02026660367846489, -0.0077791763469576836, -0.03437626361846924, + 0.02563883736729622, 0.027404431253671646, -0.03778672590851784, -0.01774648204445839, + 0.010480384342372417, 0.007715041283518076, 0.008910967037081718, 0.03042254038155079, + -0.0182595606893301, -0.01095573604106903, -0.025955738499760628, -0.02503521554172039, + -0.03778672590851784, -0.018968814983963966, 0.01109909638762474, 0.011151913553476334, + 0.022409459576010704, -0.020613685250282288, 0.010525655932724476, 0.05553320795297623, + -0.013392859138548374, -0.009771128185093403, 0.008352616801857948, -0.005711771547794342, + -0.05803823843598366, 0.01634306088089943, -0.008043261244893074, 0.020900405943393707, + -0.015588534064590931, 0.09519115835428238, -0.008692154660820961, 0.01911972090601921, + -0.00428948737680912, 0.026272639632225037, -0.030845075845718384, -0.015000002458691597, + -0.024537228047847748, -0.00874497089534998, -0.04415493831038475, -0.02192656323313713, + 0.006039991043508053, 0.050251517444849014, -0.01685613952577114, -0.012487426400184631, + -0.004032948520034552, 0.0031633556354790926, -0.022877266630530357, 0.021202215924859047, + -0.020221330225467682, 0.012351611629128456, 0.004357395227998495, -0.00014430333976633847, + 0.010880283080041409, 0.05061369016766548, -0.020206240937113762, 0.04415493831038475, + 0.03510060906410217, -0.005360916256904602, -0.0022220828104764223, 0.027132801711559296, + -0.04644870012998581, 0.014034206978976727, -0.0011751762358471751, 0.032505035400390625, + 0.0056815906427800655, 0.026936624199151993, 0.006511570420116186, 0.02394869551062584, + 0.013822940178215504, -0.04976861923933029, -0.005568411201238632, -0.007405685260891914, + 0.01195171196013689, -0.054175060242414474, -0.02898893877863884, -0.027781695127487183, + 0.03657948225736618, -0.01503018382936716, -0.03431589901447296, 0.009356138296425343, + 0.022711271420121193, -0.04445674642920494, -0.0002225855423603207, 0.02396378666162491, + -0.039778679609298706, 0.05432596430182457, -0.010646379552781582, -0.01862173341214657, + -0.011778171174228191, -0.006224850192666054, 0.008684609085321426, -0.010201209224760532, + 0.0010101234074681997, -0.005032696761190891, 0.031026162207126617, 0.01042002160102129, + -0.07376258820295334, 0.06476861983537674, 0.0009723970433697104, 0.040684111416339874, + 0.0006248428835533559, -0.007194417528808117, 0.025548294186592102, -0.023797789588570595, + -0.005723089445382357, 0.030543264001607895, 0.06875252723693848, 0.01476609893143177, + 0.018138835206627846, -0.002005156362429261, 0.030905436724424362, -1.7315811362550448e-7, + -0.03144869580864906, -0.01549798995256424, -0.023163987323641777, 0.014343563467264175, + 0.031690146774053574, 0.002273013349622488, 0.04385312646627426, 0.0013864438515156507, + 0.021534208208322525, 0.012396883219480515, 0.024054329842329025, 0.01911972090601921, + 0.006466298829764128, 0.03229376673698425, 0.007307596504688263, -0.003770750015974045, + -0.001344001735560596, -0.06718310713768005, 0.04421529918909073, -0.04146881774067879, + 0.00639839144423604, -0.013483402319252491, -0.013415494933724403, -0.01637324132025242, + -0.011785715818405151, 0.0010148391593247652, -0.023163987323641777, 0.025789743289351463, + -0.03582495450973511, -0.02986419014632702, -0.02447686530649662, 0.011929076164960861, + 0.03959759324789047, -0.009642858989536762, 0.01112173218280077, -0.00010634119098540395, + 0.00971076637506485, 0.018093563616275787, 0.028340045362710953, 0.004568662494421005, + -0.004715795628726482, -0.04756540060043335, 0.045422542840242386, -0.01721831224858761, + -0.029668012633919716, 0.02423541620373726, -0.014509559608995914, -0.028008053079247475, + 0.00944668147712946, -0.03627767041325569, -0.010910464450716972, -0.004059356637299061, + -0.01423038449138403, -0.01294014323502779, 0.0035802319180220366, 0.010963281616568565, + -0.01352112926542759, -0.02417505346238613, 0.008088532835245132, 0.02818913944065571, + -0.005145876202732325, -0.0052779181860387325, 0.0026936624199151993, -0.02844567783176899, + -0.010472838766872883, -0.017097588628530502, -0.010118210688233376, 0.009989941492676735, + 0.02055332250893116, 0.007156691048294306, -0.027359159663319588, 0.021624751389026642, + 0.008511067368090153, 0.004564890172332525, -0.019361170008778572, -0.016146883368492126, + 0.0205835048109293, 0.0365191213786602, -0.03491952270269394, 0.003152037737891078, + 0.009046781808137894, -0.00372736481949687, 0.004904427099972963, -0.011672536842525005, + -0.008956238627433777, 0.012502516619861126, -0.007967808283865452, 0.04337022826075554, + 0.002752138301730156, 0.006345574278384447, -0.047112684696912766, -0.011846078559756279, + -0.040623750537633896, -0.018169017508625984, -0.022635817527770996, -0.01656941883265972, + -0.001535463030450046, 0.033621735870838165, -0.03817908093333244, -0.0052779181860387325, + 0.022997992113232613, 0.027962781488895416, -0.02618209645152092, 0.04077465459704399, + -0.04777666926383972, 0.022152921184897423, 0.023511070758104324, 0.007160463836044073, + 0.005606137681752443, -0.006055081263184547, 0.0009247675188817084, 0.0541146956384182, + -0.022741451859474182, -0.002488053636625409, -0.01774648204445839, -0.06507043540477753, + -0.016418512910604477, 0.03654929995536804, -0.02873239852488041, 0.006447435822337866, + 0.032837025821208954, -0.002263581845909357, 0.0258953757584095, 0.004561117384582758, + -0.005085513927042484, 0.00818662066012621, -0.02135312184691429, -0.013853120617568493, + -0.02197183482348919, 0.04672032967209816, -0.010767104104161263, 0.01661469042301178, + 0.004059356637299061, -0.0039989943616092205, 0.005542003083974123, 0.007937626913189888, + -0.006447435822337866, -0.009401409886777401, -0.00983149092644453, 0.016780687496066093, + -0.007292506285011768, -0.010880283080041409, -0.019798796623945236, -0.0010808603838086128, + 0.008518612943589687, 0.005674045067280531, -0.005111922509968281, 0.0267102662473917, + -0.006243713200092316, -0.04898391291499138, 0.006300302688032389, -0.005907948594540358, + -0.007156691048294306, 0.014290746301412582, 0.04026157408952713, -0.004097083117812872, + 0.016509056091308594, -0.015196179039776325, -0.03178068995475769, -0.013196682557463646, + 0.007884809747338295, -0.06645876169204712, -0.030015096068382263, -0.004304578062146902, + -0.0015533830737695098, -0.0004847837844863534, 0.011182093992829323, 0.04638833552598953, + -0.005621228367090225, 0.016509056091308594, 0.03259557858109474, 0.0009143927600234747, + 0.004606388974934816, -0.02001006342470646, -0.0043498496524989605, -0.006319166161119938, + -0.017384309321641922, -0.022952720522880554, 0.015588534064590931, -0.00319919572211802, + -0.029758555814623833, -0.041499000042676926, -0.013423040509223938, 0.016524147242307663, + 0.08263582736253738, 0.0033897138200700283, 0.013898392207920551, 0.010020121932029724, + -0.010880283080041409, -0.006039991043508053, -0.005723089445382357, -0.020643865689635277, + -0.008880785666406155, -0.04587525874376297, -0.013106138445436954, 0.014637828804552555, + 0.01970825344324112, 0.006073944736272097, -0.008926058188080788, 0.013566400855779648, + -0.0028351363725960255, 0.022394370287656784, -0.03573441132903099, 0.061780694872140884, + -0.03410463407635689, -0.005251510068774223, 0.021232398226857185, -0.0008219631854444742, + 0.022937629371881485, 0.00414235470816493, 0.013694670051336288, 0.009899398311972618, + -0.013340041972696781, -0.03205231949687004, 0.007952717132866383, 0.027977870777249336, + -0.0019032950513064861, 0.015513081103563309, 0.004444165620952845, 0.0019825203344225883, + -0.012872235849499702, 0.03685111179947853, -0.03627767041325569, 0.02085513435304165, + 0.034738436341285706, 0.018727367743849754, 0.005360916256904602, -0.036156948655843735, + 0.001176119432784617, 0.014532195404171944, -0.022168012335896492, 0.0025238937232643366, + -0.025804832577705383, 0.0020353372674435377, 0.03413481265306473, -0.009484407491981983, + 0.012079982087016106, 0.03519115224480629, -0.02838531695306301, 0.00507419602945447, + 0.012623241171240807, 0.005689135752618313, -0.0024465546011924744, -0.012472336180508137, + 0.013166501186788082, 0.03383300453424454, 0.0157394390553236, -0.003766977461054921, + 0.03914487361907959, 0.00048761325888335705, -0.010631289333105087, 0.05523139610886574, + -0.01862173341214657, -0.014690645970404148, 0.04252515733242035, -0.011566903442144394, + 0.005945675075054169, 0.001008237130008638, 0.04859155789017677, -0.03905433043837547, + -0.01447183359414339, -0.006802063435316086, 0.027917509898543358, 0.016765596345067024, + -0.0399295836687088, 0.0186066422611475, -0.03633803501725197, 0.01940644159913063, + -0.015286723151803017, -0.016222337260842323, 0.005123240407556295, -0.006681338883936405, + -0.012555333785712719, 0.006866198033094406, -0.0028973848093301058, 0.006311620585620403, + 0.010186118073761463, 0.03144869580864906, -0.02281690575182438, 0.016433604061603546, + 0.05004024878144264, 0.01607143133878708, 0.023299802094697952, 0.015150907449424267, + -0.02559356577694416, 0.010171027854084969, -0.006175805814564228, -0.0027879783883690834, + -0.012955233454704285, -0.019753525033593178, -0.022620728239417076, 0.006990695372223854, + -0.011219820939004421, 0.01581489108502865, 0.003702842630445957, 0.01070674229413271, + 0.000751697807572782, 0.0054627773351967335, -0.006296530365943909, -0.01854628138244152, + 3.849268250633031e-5, -0.013453221879899502, -0.01100100763142109, 0.012721329927444458, + 0.028340045362710953, -0.01886318251490593, 0.024114692583680153, 0.0014590671053156257, + 0.019255535677075386, 0.0041800811886787415, 0.004342304542660713, 0.007764085661619902, + 0.0025106894318014383, 0.0037782953586429358, -0.021594570949673653, 0.0011487677693367004, + -0.01631288044154644, -0.012736420147120953, -0.005492958705872297, -0.021187126636505127, + 0.0174446702003479, -0.0020504279527813196, -0.06989941000938416, -0.005553320981562138, + 0.03820926323533058, 0.027917509898543358, 0.014871732331812382, 0.018169017508625984, + 0.0005380722577683628, -0.05091550201177597, -0.023797789588570595, -0.049949705600738525, + 0.01967807114124298, -0.02956237830221653, 0.007417003158479929, -0.008209256455302238, + -0.004840292502194643, 0.016493966802954674, 0.040684111416339874, -0.020643865689635277, + 0.012668512761592865, -0.007786721456795931, -0.016841048374772072, -0.019889339804649353, + -0.015369720757007599, -0.01141599752008915, -0.01770121045410633, 0.0003954194544348866, + 0.004568662494421005, 0.0038669523783028126, 0.010563381947577, -0.008729880675673485, + 0.01282696332782507, -0.006703974679112434, 0.008103623054921627, 0.012411973439157009, + 0.020311875268816948, -0.02340543642640114, -0.007975352928042412, 0.021775657311081886, + 0.006654930766671896, -0.03374246135354042, 0.040925558656454086, 0.013340041972696781, + -0.009348592720925808, 0.03494970500469208, -0.013332497328519821, 0.008073441684246063, + -0.012298794463276863, -0.010261571034789085, -0.033923547714948654, 0.011770625598728657, + -0.004263079259544611, -0.016237426549196243, 0.03144869580864906, 0.026333002373576164, + -0.01629778929054737, -0.03745473548769951, -0.018169017508625984, -0.021504027768969536, + -0.021836020052433014, 0.01658450998365879, -0.0301207285374403, -0.0003664173127617687, + -0.008797788061201572, 0.009620223194360733, 0.02987927943468094, -0.006824699230492115, + 0.007571681402623653, 0.007884809747338295, 0.016237426549196243, 0.03751509636640549, + -0.010623743757605553, -0.04340041056275368, -0.024657951667904854, 0.004957244265824556, + -0.06446681171655655, -0.02788732759654522, -0.01853119023144245, 0.0029181342106312513, + -0.012608150951564312, -0.010284206829965115, -0.0393863245844841, -0.002584255998954177, + 0.029366202652454376, 0.028219319880008698, -0.01294014323502779, -0.00124779948964715, + 0.005598592571914196, 0.02200201526284218, -0.002273013349622488, 0.00828470941632986, + -0.01631288044154644, -0.044094573706388474, -0.013158955611288548, 0.005670272745192051, + -0.0253521166741848, 0.02139839343726635, -0.024612680077552795, -0.01853119023144245, + -0.016192154958844185, -0.03627767041325569, 0.00927314069122076, -0.03006036765873432, + 0.005704226437956095, 0.028641855344176292, 0.018380284309387207, -0.04533199965953827, + 0.0038273397367447615, 0.02029678411781788, -0.029336020350456238, 0.005028924439102411, + 0.003359532682225108, -0.07340041548013687, -7.786957576172426e-5, -0.011981893330812454, + 0.025714289397001266, 0.03063380718231201, -0.0013977617491036654, 0.007628270890563726, + -0.02809859625995159, -0.012600605376064777, 0.013279680162668228, 0.011363181285560131, + -0.009605132043361664, 0.016146883368492126, 0.00814134906977415, 0.010171027854084969, + -0.005262827966362238, -0.00228999019600451, 0.013475857675075531, -0.021036220714449883, + 0.003191650379449129, -0.00675301905721426, -0.019572436809539795, -0.014690645970404148, + -0.0017212653765454888, -0.003965040668845177, 0.018908454105257988, -0.022952720522880554, + 0.006971831899136305, 0.019587527960538864, -0.003783954307436943, -0.01126509252935648, + 0.03350101038813591, 0.002737047616392374, 0.019059360027313232, -0.006345574278384447, + -0.005511821713298559, 0.021292759105563164, -0.04807847738265991, -0.02332998439669609, + 0.006100352853536606, 0.03178068995475769, -0.014456742443144321, 0.004651660565286875, + 0.025487931445240974, 0.007417003158479929, 0.017957748845219612, -0.011672536842525005, + 0.004395121242851019, 0.030030185356736183, -0.005730634555220604, 0.007239689119160175, + 0.0039989943616092205, 0.02698189578950405, 0.0010233275825157762, 0.014305837452411652, + 0.007466047536581755, 0.0050515602342784405, -0.004304578062146902, -0.007990444079041481, + 0.00375754595734179, 0.01774648204445839, -0.0007111419690772891, 0.033319924026727676, + 0.021307850256562233, 0.016222337260842323, -0.02142857387661934, 0.030603626742959023, + -0.0051647392101585865, 0.004210262093693018, 0.012042255140841007, -0.010653925128281116, + -0.0016099725617095828, -0.0011883804108947515, -0.026830989867448807, -0.02557847462594509, + -0.03190141171216965, -0.0013241954147815704, -0.004557344596832991, 0.005153421312570572, + -0.005504276603460312, -0.05097586289048195, -0.03522133454680443, -0.007013331167399883, + 0.028521131724119186, -0.014735917560756207, 0.04578471556305885, 0.006187123712152243, + 0.00041027419501915574, -0.013687124475836754, 0.02447686530649662, -0.007526409812271595, + -0.022303827106952667, 0.019270626828074455, 0.009929578751325607, 0.025563383474946022, + -0.026302821934223175, 0.007567908614873886, -0.015113181434571743, -0.0038348848465830088, + 0.001167631009593606, -0.0005465606809593737, 0.0007535841432400048, 0.005964538082480431, + 0.006353119853883982, 0.009242959320545197, -0.025955738499760628, 0.031086523085832596, + -0.001592052518390119, 0.001062940340489149, 0.00299358693882823, -0.018229378387331963, + -0.06165996938943863, 0.007288733497262001, 0.007545272819697857, 0.031720325350761414, + 0.01629778929054737, 0.031358152627944946, 0.027706241235136986, -0.02613682486116886, + -0.003184105036780238, 0.015633804723620415, 0.011514086276292801, -0.011348090134561062, + -0.018123745918273926, -0.0099823959171772, -0.0062210774049162865, -0.012736420147120953, + -0.017505032941699028, -0.002650276990607381, -0.018636824563145638, 0.0007988557335920632, + 0.023782700300216675, -0.01447183359414339, -0.018727367743849754, 0.009899398311972618, + -0.019195174798369408, -0.01364939846098423, 0.0008012136677280068, -0.026529179885983467, + -0.005036469548940659, 0.007945172488689423, -0.03404426947236061, 0.01853119023144245, + 0.010223845019936562, 0.016946682706475258, -0.007424548268318176, 0.011544267646968365, + 0.005044014658778906, -0.034738436341285706, 0.031116705387830734, 0.017037225887179375, + 0.009642858989536762, -0.00625503109768033, 0.00648516183719039, -0.006405936554074287, + 0.0056815906427800655, -0.015384810976684093, 0.021820928901433945, -0.03175050765275955, + 0.018968814983963966, -0.024869218468666077, 0.003118084045127034, 0.007405685260891914, + 0.004791248124092817, 0.05830986797809601, -0.02840040624141693, -0.005119467619806528, + -0.018063383176922798, 0.01604125089943409, 0.0005616512498818338, -0.007058602757751942, + -0.01881791092455387, 0.02108149230480194, 0.006304075475782156, 0.00930332113057375, + 0.0019334761891514063, 0.04789739102125168, 0.025186121463775635, 0.026061372831463814, + -0.01579980179667473, 0.005809859838336706, -0.038692157715559006, -0.004613934550434351, + 0.010616199113428593, 0.02366197481751442, -0.04071429371833801, -0.006002264562994242, + 0.023767609149217606, -0.0077791763469576836, -0.020975857973098755, 7.480430940631777e-5, + -0.0267102662473917, -0.021217307075858116, 0.0523340106010437, -0.015528171323239803, + ], + index: 10, + }, + { + title: "817 Squadron RAN", + text: "817 Squadron was a Royal Australian Navy Fleet Air Arm squadron. It was originally formed as part of the Royal Navy's Fleet Air Arm for service during World War II and took part in combat operations in Norway, North Africa, Sicily and off the coast of France. Following the conclusion of hostilities, the squadron was disbanded in 1945. In 1950, it was re-raised as part of the Royal Australian Navy and subsequently took part in the Korean War.", + vector: [ + -0.03873995319008827, 0.019384324550628662, -0.01606990583240986, -0.022784831002354622, + -0.0018580828327685595, -0.025754893198609352, 0.014262041077017784, 0.018193429335951805, + 0.009670639410614967, 0.015539024956524372, 0.030360642820596695, -0.03552597016096115, + -0.017691245302557945, 0.06640314310789108, 0.018021252006292343, 0.04938626289367676, + -0.039945196360349655, 0.030963264405727386, 0.010402394458651543, -0.03564075380563736, + 0.007374939043074846, 4.141901808907278e-5, 0.021522196009755135, -0.03739122673869133, + -0.01402529701590538, 0.011815684847533703, -0.028638867661356926, 0.02683100290596485, + -0.02021651528775692, -0.039514750242233276, 0.004272155929356813, -0.02124958112835884, + 0.001189101254567504, 0.015653809532523155, -0.009455418214201927, 0.009663465432822704, + 0.007335481699556112, 0.03739122673869133, -0.04783666506409645, 0.005258589517325163, + 0.012009385041892529, -0.05911429598927498, -0.0192121472209692, 0.048324503004550934, + 0.014721181243658066, -0.006614488083869219, -0.03351723402738571, 0.006955256219953299, + -0.01782037690281868, -0.007489724084734917, 0.046889688819646835, 0.0608360730111599, + -0.024822264909744263, 0.05194023251533508, 0.013558982871472836, -0.008895840495824814, + 0.03285721689462662, 0.10600398480892181, -0.029284533113241196, -0.027433624491095543, + -0.017203407362103462, -0.03650164231657982, 0.022354386746883392, -0.024894006550312042, + 0.02218220941722393, -0.03767818957567215, 0.004178892821073532, -0.009268891997635365, + -0.0485253781080246, -0.013587679713964462, -0.010969145223498344, -0.01792081445455551, + 0.02129262499511242, 0.06978930532932281, -0.00878105591982603, -0.009677814319729805, + 0.04046172648668289, 0.04318787157535553, -0.0077264681458473206, 0.040806081146001816, + 0.010883056558668613, 0.01365224551409483, -0.0435035303235054, 0.015754247084259987, + 0.007862775586545467, 0.04927147924900055, -0.08792534470558167, -0.05782296508550644, + -0.02124958112835884, -0.03664512559771538, -0.0485253781080246, 0.04554096609354019, + 0.05248546227812767, -0.03624337539076805, 0.03380419313907623, -0.021063055843114853, + 0.005950887221843004, -0.01947041228413582, -0.00919715128839016, -0.025281405076384544, + -0.02701753005385399, 0.014764226041734219, 0.03162327781319618, 0.05125151947140694, + 0.0055706617422401905, 0.04551227018237114, -0.02340180054306984, 0.02218220941722393, + -0.031365010887384415, 0.033861588686704636, 0.005775122437626123, 0.026529692113399506, + 0.00047034965245984495, -0.032225899398326874, -0.03928517922759056, 0.01657208986580372, + -0.01856647990643978, -0.009670639410614967, -0.015266411006450653, 0.03681730106472969, + 0.005133043508976698, 0.00826452299952507, -0.003759210230782628, -0.005567074753344059, + -0.005269350949674845, -0.046000104397535324, 0.04186784476041794, 0.009706510230898857, + -0.006072846241295338, 0.017031230032444, 0.0011774434242397547, -0.0369894802570343, + 0.0271610114723444, -0.005344678647816181, 0.010796967893838882, 0.02060391567647457, + -0.060893464833498, 0.008278870955109596, 0.012052429839968681, -0.018509088084101677, + 0.04238437861204147, -0.017346888780593872, 0.04318787157535553, -0.006861993111670017, + 0.037161655724048615, 0.025640109553933144, 0.017834726721048355, 0.027146661654114723, + 0.000986433937214315, -0.005384135991334915, 0.03199633210897446, 0.018437348306179047, + -0.001724465866573155, 0.007920168340206146, -0.044852256774902344, -0.019011272117495537, + -0.04100695624947548, 0.004103565122932196, 0.01842299848794937, 0.02934192679822445, + 0.00020928092999383807, -0.03954344615340233, -0.05986040085554123, 0.037764277309179306, + -0.0009433895465917885, 0.011794162914156914, -0.002319016493856907, -0.02919844537973404, + 0.02457834780216217, 0.021837854757905006, 0.016471654176712036, 0.03851038217544556, + 0.02157958783209324, 0.007052105851471424, 0.01082566473633051, 0.0019423781195655465, + -0.012647876515984535, 0.04881234094500542, -0.003452518954873085, -0.008573007769882679, + -0.034693777561187744, 0.023129185661673546, -0.048181019723415375, 0.012317869812250137, + -0.06887102872133255, -0.019240843132138252, 0.02601316012442112, 0.01817908138036728, + 0.005437941290438175, -0.02826581709086895, -0.017432978376746178, -0.04482355713844299, + 0.014039645902812481, 0.04069129750132561, -0.019398672506213188, 0.016256431117653847, + -0.031824152916669846, 0.025496628135442734, -0.009254544042050838, 0.028610171750187874, + 0.000238313470617868, -0.045167915523052216, -0.05133761093020439, -0.014441393315792084, + -0.012798531912267208, -0.018451696261763573, 0.0123250437900424, 0.05423593148589134, + -0.017332540825009346, 0.011349370703101158, 0.008766707964241505, -0.018078643828630447, + 0.007174065336585045, 0.007009061519056559, 0.04031824693083763, -0.0006232468876987696, + 0.025281405076384544, 0.018810398876667023, 0.06582922488451004, 0.03248416632413864, + -0.012655050493776798, -0.047922756522893906, 0.0071920002810657024, 0.045024432241916656, + -0.004817384760826826, -0.02046043425798416, -0.025984464213252068, -0.012281999923288822, + -0.0057966448366642, -0.015539024956524372, -0.05744991451501846, -0.014075515791773796, + -0.025525324046611786, 0.012927665375173092, -0.02383224479854107, -0.019456064328551292, + 0.0027117966674268246, 0.02139306254684925, 0.003570890985429287, -0.032512862235307693, + -0.04143739864230156, 0.017490370199084282, -0.01892518438398838, -0.04998888447880745, + 0.04436441883444786, 0.002744079800322652, -0.0009613247239030898, 0.020474782213568687, + -0.024822264909744263, -0.016902096569538116, 0.020991314202547073, -0.010323479771614075, + -0.05142369866371155, -0.007131020538508892, 0.00644948473200202, -0.006227088626474142, + -0.04264264181256294, 0.039486054331064224, -0.023416148498654366, -0.01578294299542904, + -0.026271427050232887, 0.042843516916036606, 0.028222771361470222, 0.0012240748619660735, + -0.013185931369662285, -0.023674415424466133, -0.053547222167253494, -0.04683229699730873, + 0.053977664560079575, -0.022139165550470352, -0.025955768302083015, -0.009010626003146172, + -0.02107740379869938, 0.02891148254275322, 0.015352499671280384, -0.013924860395491123, + -0.005093586165457964, 0.0033126245252788067, -0.012138518504798412, 0.02872495725750923, + -0.033861588686704636, 0.0017872389871627092, -0.022598305717110634, -0.031680673360824585, + -0.08867144584655762, 0.031508494168519974, 0.0031494146678596735, 0.020517826080322266, + 0.0738641768693924, 0.07053540647029877, 0.009082366712391376, 0.03449290618300438, + -0.023315710946917534, 0.027821024879813194, 0.017260801047086716, 0.03931387513875961, + -0.016729919239878654, 0.006399265956133604, 0.03159458190202713, -0.03902691602706909, + -0.00883844867348671, -0.013171583414077759, 0.01875300705432892, 0.029758021235466003, + -0.05156718194484711, 0.018379954621195793, -0.031365010887384415, -0.008738011121749878, + 0.027103617787361145, -0.00937650352716446, 0.0027656021993607283, 0.06410744786262512, + -0.01717471145093441, -0.017045577988028526, 0.002744079800322652, -0.048209719359874725, + -0.05592901259660721, -0.017031230032444, -0.026429256424307823, -0.005997518543154001, + 0.016371216624975204, 0.029815414920449257, -0.020847832784056664, 0.0010814903071150184, + 0.032398078590631485, -0.019456064328551292, 0.024563999846577644, 0.012174388393759727, + -0.013845945708453655, 0.009971950203180313, 0.06158217415213585, -0.008199956268072128, + -0.00420400220900774, 0.014749878086149693, -0.0004905267269350588, 0.011198715306818485, + 0.014484437182545662, 0.04614358767867088, 0.02150784805417061, -0.028437994420528412, + 0.007991908118128777, -0.04915669560432434, 0.012296347878873348, 0.04163827374577522, + -0.06433701515197754, 0.041552186012268066, 0.005283698905259371, -0.010761098004877567, + 0.025711849331855774, -0.03756340593099594, 0.00046855612890794873, 0.020187819376587868, + 0.05478116124868393, -0.028667563572525978, 0.03475117310881615, -0.06714925169944763, + -0.016127297654747963, 0.007453853730112314, -0.03968692943453789, 0.009548680856823921, + 0.039055611938238144, 0.01925519108772278, -0.012726791203022003, -0.03337375074625015, + -0.0009218673803843558, 0.005319569259881973, 0.0019477587193250656, 0.010380872525274754, + 0.021880898624658585, -0.018437348306179047, 0.02869626134634018, 0.06984669715166092, + -0.04740622267127037, -0.022928312420845032, 0.019226495176553726, -0.011586114764213562, + -0.03495204448699951, -0.04396267235279083, 0.04436441883444786, -0.005441528279334307, + 0.019527805969119072, 0.0022687981836497784, -0.04046172648668289, -0.046574030071496964, + 0.04975931718945503, -0.032512862235307693, 0.009943254292011261, 0.012411132454872131, + 0.0030400101095438004, -0.004383353982120752, 0.01379572693258524, 0.04304439201951027, + -0.045024432241916656, 0.010423916392028332, 0.019484760239720345, -0.028524082154035568, + 0.010947623290121555, 0.013975079171359539, 0.0681823119521141, -0.00012868479825556278, + -0.03727644309401512, -0.005255002528429031, -0.011650681495666504, 0.06789535284042358, + -0.011500026099383831, -0.008824099786579609, -0.04473746940493584, 0.011062408797442913, + -0.03102065809071064, 0.011327848769724369, 0.024233991280198097, 0.008967581205070019, + -0.014893359504640102, 0.0008492299821227789, -0.005165326874703169, 0.03736253082752228, + -0.026142293587327003, -0.006180457305163145, 0.02407616190612316, -0.03394767642021179, + 0.007504072040319443, 0.01906866580247879, -0.0027135901618748903, 0.06336134672164917, + 0.0014939990360289812, 0.025697501376271248, -0.018150385469198227, 0.0015522883040830493, + 0.04476616531610489, -0.04740622267127037, -0.019398672506213188, -0.03785036876797676, + 0.032225899398326874, -0.00710232462733984, -0.07214239984750748, -0.00511510856449604, + -0.052255891263484955, 0.01238243654370308, 0.015653809532523155, 0.009957602247595787, + -0.050648901611566544, -0.014247693121433258, -0.07128150761127472, -0.030532822012901306, + 0.017002534121274948, -0.02193829044699669, 0.018982576206326485, 0.007697771769016981, + -0.010423916392028332, 0.021880898624658585, -0.03618598356842995, -0.009082366712391376, + -0.010237391106784344, -0.012009385041892529, 0.029901502653956413, 0.008300392888486385, + 0.04720534756779671, 0.022957008332014084, -0.020245211198925972, -0.009390851482748985, + 0.0377068854868412, 0.04975931718945503, 0.014584874734282494, -0.02908365987241268, + 0.007575812749564648, -0.026601433753967285, 0.008386482484638691, -0.040203459560871124, + -0.021378714591264725, -0.06416483968496323, -0.0009048289502970874, -0.0011657855939120054, + -0.004487377591431141, 0.00948411412537098, -0.04330265894532204, 0.017834726721048355, + -0.010854360647499561, -0.0071202595718204975, 0.0235739778727293, -0.00786994956433773, + 0.036042504012584686, -0.020474782213568687, 0.004125087521970272, 0.011234586127102375, + 0.01581163890659809, -0.07483984529972076, -0.014039645902812481, -0.0072386316023766994, + -0.06295959651470184, 0.049644529819488525, 0.025884026661515236, -0.012439829297363758, + 0.00888866651803255, -0.01261200662702322, -0.007098737638443708, -0.04100695624947548, + -0.02723275125026703, -0.009398025460541248, 0.009433895349502563, -0.022196557372808456, + 0.01180851086974144, 0.03015976957976818, -0.00570696871727705, -0.00761168310418725, + 0.012669399380683899, 0.019484760239720345, 0.00906801875680685, 0.04387658089399338, + -0.006370570044964552, 0.012533091939985752, 0.021636979654431343, 0.02196698822081089, + -0.022139165550470352, -0.0019029207760468125, -0.012296347878873348, -0.03635816276073456, + 0.023631369695067406, -0.015194670297205448, 0.010201520286500454, -0.025697501376271248, + 0.0235739778727293, 0.012439829297363758, -0.001899333787150681, -0.03641555458307266, + 0.02017347142100334, -0.048066236078739166, 0.030360642820596695, 0.01782037690281868, + 0.005211958196014166, 0.010366524569690228, 0.02321527525782585, -0.019872160628437996, + -0.026199685409665108, -0.0033861587289720774, 0.00114964391104877, 0.025023140013217926, + -0.027275795117020607, 0.01681600883603096, -0.0036659473553299904, 0.00913975853472948, + -0.0037054046988487244, 0.016342520713806152, 0.008451048284769058, -0.041380006819963455, + -0.061696961522102356, 0.0034901825711131096, 0.0018356639193370938, 0.018767355009913445, + -0.023157881572842598, -0.027462320402264595, -0.036013808101415634, 0.02168002538383007, + -0.009075192734599113, 0.03635816276073456, 0.022411778569221497, -0.03231199085712433, + -0.018882138654589653, 0.00434748362749815, 0.022153513506054878, -0.05882733315229416, + 0.00018787082808557898, -0.013185931369662285, 0.06714925169944763, -0.00019930450071115047, + -0.03030325099825859, 0.022713089361786842, -0.0398591049015522, -0.002200644463300705, + -0.03308678790926933, -0.018953880295157433, 0.05228458717465401, 0.0023530933540314436, + -0.000391883309930563, -0.005412832368165255, -0.005599357653409243, -0.03170936927199364, + 0.043130479753017426, 0.014893359504640102, 0.02153654396533966, -0.03466508165001869, + -0.004042585846036673, -0.023516586050391197, 0.009957602247595787, 0.04462268576025963, + 0.003244471037760377, -0.0051043471321463585, 0.002984411083161831, -0.0014787542168051004, + -0.014692485332489014, -0.02955714799463749, -0.028653215616941452, -0.013099842704832554, + 0.03664512559771538, 0.000426184298703447, 0.01010825764387846, 0.046172283589839935, + -0.05736382305622101, 0.008049300871789455, 0.008687793277204037, -0.03173806518316269, + -0.033287663012742996, 0.02203872799873352, 0.012253303080797195, 0.023530934005975723, + -0.0369320884346962, 0.028452342376112938, 0.022268299013376236, 0.0246500875800848, + 0.005240654572844505, 0.00828604493290186, 0.05076368525624275, -0.02941366657614708, + 0.005936538800597191, 0.02064695954322815, -0.013444198295474052, -0.05911429598927498, + 0.02618533745408058, 0.012418306432664394, 0.0318528488278389, -0.01599816605448723, + 0.0492427833378315, -0.008329089730978012, 0.0275484099984169, 0.006725686136633158, + 0.03159458190202713, -0.02289961650967598, -0.022440476343035698, 0.001337963156402111, + 0.025984464213252068, 0.034578993916511536, -0.004336722195148468, 0.03670251742005348, + -0.009491288103163242, 0.000607105263043195, 0.009986299090087414, 0.005595770664513111, + 0.03810863569378853, -0.03928517922759056, 0.010976319201290607, -0.031393710523843765, + 0.0077192941680550575, -0.023387452587485313, -0.010667834430932999, -0.011507200077176094, + 0.008063648827373981, -0.019413020461797714, -0.015940772369503975, -0.016658179461956024, + 0.00585045013576746, -0.030791087076067924, 0.003441757755354047, 0.0018491152441129088, + -0.02103435806930065, 0.012597658671438694, 0.02747667022049427, -0.02776363119482994, + 0.028739305213093758, 0.026888396590948105, 0.016084253787994385, -0.0622708834707737, + 0.01343702431768179, -0.0057177296839654446, -0.03845299035310745, -0.010423916392028332, + 0.03687469661235809, -0.012841576710343361, -0.0015307661378756166, 0.01667252741754055, + 0.00544870225712657, 0.014864662662148476, 0.012834402732551098, -0.00670057674869895, + 0.044852256774902344, 0.008357785642147064, -0.006826122757047415, -0.019011272117495537, + -0.013960730284452438, 0.007970386184751987, 0.01551032904535532, -0.006097955163568258, + 0.019126057624816895, -0.025554019957780838, -0.030389340594410896, 0.0015495980624109507, + 0.011636333540081978, -0.0010689357295632362, 0.049328871071338654, -0.007898645475506783, + -0.002853484358638525, -0.018580827862024307, -0.03578423708677292, -0.013558982871472836, + -0.015524677000939846, -0.010947623290121555, -0.010617616586387157, 0.0355546660721302, + -0.024463562294840813, -0.012310695834457874, -0.03027455508708954, 0.02307179383933544, + 0.002892941702157259, 0.025668805465102196, 0.010718053206801414, -0.021766113117337227, + -0.03971562534570694, -0.019240843132138252, -0.00121421052608639, -0.004386940971016884, + 0.010868708603084087, 0.046746209263801575, -0.04172436147928238, 0.000966705265454948, + 0.0012617387110367417, 0.03437811881303787, -0.005326743237674236, 0.026744915172457695, + 0.009498462080955505, -0.005972409155219793, 0.003088434925302863, -0.013924860395491123, + 0.023703111335635185, 0.008824099786579609, -0.0005541965365409851, 0.005940125789493322, + 0.012411132454872131, 0.017691245302557945, 0.041666969656944275, -0.046602725982666016, + -0.02640056051313877, 0.030475428327918053, -0.049214087426662445, -0.01064631249755621, + -0.01573989912867546, 0.015180321410298347, -0.04244177043437958, 0.010266087017953396, + 0.022196557372808456, 0.002710003172978759, -0.008903014473617077, 0.0023477128706872463, + 0.011370893567800522, -0.017877770587801933, -0.005405657924711704, 0.004322374239563942, + 0.014678137376904488, -0.014627918601036072, 0.010553049854934216, -0.05664641782641411, + -0.018595177680253983, -0.011643507517874241, -0.0723719671368599, -0.010244565084576607, + 0.013408327475190163, -0.04318787157535553, -0.018939532339572906, 0.015036840923130512, + 0.012798531912267208, -0.03366071358323097, -0.008931711316108704, 0.06112303584814072, + 0.019656937569379807, 0.0752989873290062, -0.02486531063914299, 0.008257349021732807, + 0.04777927324175835, -0.03825211524963379, 0.0006958843441680074, -0.01064631249755621, + 0.025195317342877388, 0.016399912536144257, -0.0012115202844142914, 0.04292960464954376, + -0.03727644309401512, -0.010990668088197708, -0.01799255609512329, 0.05851167440414429, + -0.013272020034492016, 1.6043563846324105e-6, -0.018839094787836075, -0.04651663824915886, + 0.009111062623560429, -0.009663465432822704, -0.0006555301952175796, -0.016830356791615486, + 0.017834726721048355, -0.001691285870037973, -0.014068341813981533, -0.010696531273424625, + -0.013996601104736328, 0.01870996132493019, 0.02579793892800808, 0.022340038791298866, + 0.012891795486211777, -0.013429850339889526, 0.025195317342877388, 0.002304668538272381, + -0.0019172688480466604, -0.008221478201448917, -0.0449383445084095, 0.02172306925058365, + 0.007740816101431847, 0.004067694768309593, 0.02239743061363697, 0.020560869947075844, + 0.008393656462430954, -0.023602673783898354, -0.03337375074625015, -0.0024068988859653473, + -0.03538249060511589, 0.01971433125436306, -0.0005564384046010673, -0.003004139754921198, + 0.026630129665136337, 0.026386210694909096, -0.002297494327649474, -0.017547763884067535, + -0.016414260491728783, -0.015983816236257553, -0.010746749117970467, -0.014534655958414078, + -0.00027821920230053365, 0.008415178395807743, -0.023315710946917534, 0.007048518862575293, + 0.0018688439158722758, -0.00684405816718936, -0.05027584731578827, -0.008601703681051731, + 0.00701264850795269, 0.0008227755897678435, -0.032541558146476746, -0.036013808101415634, + -0.030647605657577515, -0.03664512559771538, 0.012827228754758835, 0.02462139166891575, + 0.029327578842639923, -0.027247099205851555, -0.009225848130881786, 0.04215480759739876, + 0.0031978394836187363, -0.01236091461032629, 0.00088779057841748, -0.033574625849723816, + -0.02297135628759861, 0.024492258206009865, 0.0006120374309830368, -0.01343702431768179, + -0.03750601410865784, -0.030102377757430077, 0.03452160209417343, 0.006144586950540543, + -0.02086218073964119, -0.023602673783898354, 0.046287067234516144, -0.010122605599462986, + -0.020618263632059097, -0.02594142034649849, -0.02165132947266102, -0.009347806684672832, + -0.0016697637038305402, 0.03796515241265297, -0.001644654432311654, 0.016299476847052574, + 0.02124958112835884, -0.027892764657735825, -0.02117783948779106, -0.0013110603904351592, + -0.0063956789672374725, -0.006438723299652338, 0.02701753005385399, -0.01456335186958313, + -0.02347354032099247, -0.006890689488500357, -0.0347798690199852, 0.009347806684672832, + -0.02289961650967598, -0.012504395097494125, -0.01073240116238594, 0.01839430257678032, + -0.021923942491412163, 0.01573989912867546, -0.0007510349387302995, 0.004422811325639486, + 0.03102065809071064, 0.044134847819805145, 0.0032462645322084427, -0.034578993916511536, + 0.01856647990643978, -0.004770753439515829, 0.03896952047944069, -0.017834726721048355, + -0.008522788994014263, -0.0028570713475346565, 0.0036246965173631907, 0.0064207883551716805, + 0.023057445883750916, 0.02053217403590679, -0.01368811633437872, 0.04089217260479927, + -0.0019674873910844326, -0.006424375344067812, -0.012748314067721367, -0.02414790354669094, + 0.014749878086149693, -0.025166619569063187, -0.048640161752700806, 0.008343437686562538, + -0.04826711118221283, -0.016615135595202446, 0.01585468463599682, -0.008795403875410557, + -0.04955844208598137, 0.03736253082752228, -0.039486054331064224, -0.039514750242233276, + -0.03162327781319618, -0.00171101454179734, 0.017232105135917664, -0.018308214843273163, + 0.0063956789672374725, 0.011564592830836773, 0.005567074753344059, -0.04711925983428955, + -0.022842222824692726, -0.015452936291694641, 0.01300658006221056, 0.027318840846419334, + -0.018451696261763573, -0.017662547528743744, 0.014656615443527699, -0.010101083666086197, + -0.039773017168045044, -0.035296399146318436, -0.0177773330360651, 0.020632611587643623, + -0.008250175043940544, 0.022354386746883392, 0.04447920247912407, -0.021694373339414597, + -0.020273908972740173, 0.008960407227277756, -0.028222771361470222, -0.010560223832726479, + 0.03127892315387726, -0.05248546227812767, -0.008099519647657871, -0.005082825198769569, + -0.000463623960968107, 0.011830033734440804, 0.008522788994014263, 0.010158476419746876, + -0.044708773493766785, -0.02651534415781498, 0.0006949875387363136, -0.02766319550573826, + -0.037046872079372406, -0.052083712071180344, -0.0005923087592236698, 0.01599816605448723, + -0.028667563572525978, 0.0063885049894452095, 0.04433572292327881, 0.010976319201290607, + 0.0035565427970141172, -0.025137923657894135, -0.046459246426820755, 0.007669075392186642, + -0.02987280674278736, 0.00801343098282814, 0.022885268554091454, 0.028036246076226234, + -0.006876341532915831, 0.0010976319899782538, -0.04204002022743225, 0.009398025460541248, + -0.006040562875568867, 0.05119412764906883, 0.0037914933636784554, 0.007862775586545467, + -0.08069388568401337, 0.0049716271460056305, -0.008085171692073345, -0.019298234954476357, + 0.01218156237155199, 0.02350223809480667, -0.01870996132493019, 0.04338874667882919, + -0.00585045013576746, -0.004483790602535009, -0.022354386746883392, 0.03420594334602356, + -0.0017262594774365425, 0.029528452083468437, 0.03288591280579567, 0.04186784476041794, + 0.004946517758071423, -0.003061532275751233, -0.022784831002354622, -0.008192782290279865, + -0.012447003275156021, 0.007306785322725773, -0.010811315849423409, 0.03489465266466141, + 0.008451048284769058, 0.0028301686979830265, 0.03380419313907623, 0.004548357333987951, + -0.03274243324995041, -0.023416148498654366, -0.015596417710185051, 0.009111062623560429, + -0.0015782943228259683, -0.012475699186325073, 0.014003775082528591, -0.006836884189397097, + 0.08092345297336578, 0.003920626360923052, 0.037305139005184174, 0.04445050656795502, + 0.010596094653010368, -0.017648199573159218, 0.018021252006292343, -0.03452160209417343, + -0.03581293299794197, 0.044134847819805145, -0.008350611664354801, 0.007762338500469923, + 0.03188154473900795, 0.00865909643471241, -0.049041908234357834, -0.005975996144115925, + -0.0012464937753975391, -0.012942013330757618, -0.007539942394942045, 0.028237121179699898, + -0.015352499671280384, 0.06732142716646194, -0.00309560913592577, -0.0007550703594461083, + -0.02114914357662201, 0.005907842423766851, 0.021923942491412163, 0.030446732416749, + 0.006417201366275549, -0.0096060736104846, -0.015008144080638885, 0.046574030071496964, + 0.03323027119040489, -0.011779814958572388, -0.009541506879031658, -0.006915798876434565, + 0.008494093082845211, -0.009017799980938435, 0.010596094653010368, 0.021522196009755135, + -0.04975931718945503, -0.0022939073387533426, -0.014412696473300457, -0.034148551523685455, + 0.008845622651278973, 0.01105523481965065, -0.02651534415781498, -0.015338150784373283, + -0.03173806518316269, -0.02562575973570347, -0.03684599697589874, 0.0173899345099926, + 0.009168455377221107, -0.018021252006292343, 0.0005900668329559267, 0.027806676924228668, + -0.003420235589146614, 0.005714142695069313, 0.016873400658369064, -0.0037627972196787596, + -0.005473811645060778, 0.004928582813590765, 0.0010205107973888516, 0.008465397171676159, + 0.01842299848794937, -0.0031745238229632378, 0.007783860433846712, -0.017648199573159218, + -0.009778250940144062, 0.0011505406582728028, -0.001546907820738852, 0.020632611587643623, + -0.04961583390831947, 0.008515615016222, -0.0033467013854533434, 0.02436312474310398, + -0.03345983847975731, -0.006370570044964552, -0.020661307498812675, -0.0022957008332014084, + -0.0181073397397995, 0.0550394281744957, -0.017189059406518936, -0.019585197791457176, + 0.022210905328392982, -0.004476616624742746, 0.023961378261446953, 0.001879605115391314, + 0.018049947917461395, -0.025051835924386978, 0.017160363495349884, 0.007489724084734917, + 0.030331946909427643, -0.0006129341782070696, 0.007582986727356911, 0.0005855830386281013, + -0.023416148498654366, 0.006237849593162537, 0.030188465490937233, 0.020374344661831856, + -0.019771723076701164, -0.017016882076859474, 0.012942013330757618, 0.023000052198767662, + 0.002866039052605629, -0.00292522506788373, 0.021737417206168175, 0.014276389963924885, + -0.015395543538033962, -0.011966340243816376, -0.03939996659755707, -0.014764226041734219, + 0.022454824298620224, 0.005082825198769569, 0.03234068676829338, -0.03871125727891922, + 0.004695425741374493, -0.011980689130723476, 0.0015854684170335531, -0.0003806738241109997, + 0.0011370893334969878, 0.00479586236178875, 0.012389610521495342, -0.009900209493935108, + -0.014735530130565166, -0.06031953915953636, -0.0020141187123954296, 0.03564075380563736, + -0.01419030036777258, 0.006180457305163145, -0.011256108060479164, 0.04522530734539032, + -0.022512216120958328, 0.02165132947266102, -0.008745185099542141, -0.014340955764055252, + 0.010639138519763947, 0.00828604493290186, -0.01456335186958313, -0.019628241658210754, + -0.028237121179699898, 0.004426398314535618, -0.031651973724365234, 0.010689357295632362, + 0.008623226545751095, 0.003283928381279111, -0.017074275761842728, 0.004067694768309593, + -0.015768595039844513, -0.024965746328234673, -0.014979448169469833, -0.04513921961188316, + -0.009046495892107487, 0.023947030305862427, 0.01856647990643978, 0.006639597471803427, + -0.01767689734697342, -0.004677490331232548, -0.016973838210105896, -0.005315982270985842, + -0.029112355783581734, 0.030963264405727386, 0.002110968576744199, -0.013358109630644321, + -0.021995684131979942, 0.005215545184910297, 0.024894006550312042, 0.01753341592848301, + 0.007016235496848822, -0.0048389071598649025, -0.04740622267127037, -0.010782619938254356, + 0.006230675615370274, 0.02246917225420475, -0.02579793892800808, 0.027935810387134552, + 0.010574571788311005, 0.010954797267913818, -0.006632423028349876, -0.006592965684831142, + -0.02371745929121971, -0.0036659473553299904, -0.004275742918252945, 0.010237391106784344, + -0.02483661286532879, -0.012274825014173985, 0.01741863042116165, -0.008623226545751095, + 0.005606532096862793, -0.009806946851313114, -0.0005398484063334763, -0.006270132958889008, + -0.007848427630960941, 0.03799384832382202, 0.017432978376746178, -0.026673173531889915, + 0.0031691433396190405, 0.018164733424782753, -0.004820971749722958, 0.03750601410865784, + 0.029958896338939667, 0.04519661143422127, -0.02637186273932457, -0.0007523800595663488, + 0.001624925760552287, 0.01236091461032629, 0.0063813310116529465, -0.037620797753334045, + 0.019542153924703598, 0.017117319628596306, 0.06215609982609749, 0.0012581517221406102, + -0.010452613234519958, 0.027634499594569206, -0.020159123465418816, 0.021852202713489532, + 0.0033933327067643404, 0.0035206724423915148, 0.013142887502908707, 0.012152866460382938, + -0.014556177891790867, -0.009369328618049622, 0.013171583414077759, 0.005893494468182325, + -0.03902691602706909, -0.01311419066041708, -0.0034166486002504826, -0.006022627465426922, + -0.027950158342719078, 0.04307308793067932, -0.0027835373766720295, 0.0163138248026371, + 0.028882786631584167, -0.01257613580673933, 0.01315006148070097, -0.020976966246962547, + -0.03348853439092636, -0.012353739701211452, -0.001990803051739931, -0.014470089226961136, + 0.011069582775235176, 0.012547439895570278, -0.0405765138566494, 0.01127045601606369, + -0.021923942491412163, 0.006582204718142748, -0.007956038229167461, 0.003759210230782628, + -0.03162327781319618, -0.0006604623631574214, -0.009649117477238178, 0.0162851270288229, + -0.014735530130565166, 0.0030400101095438004, 0.0637630894780159, 0.011837207712233067, + -0.014477263204753399, 0.018437348306179047, -0.024176599457859993, -0.02582663483917713, + -0.02397572621703148, -0.02762015163898468, 0.007109498605132103, -0.003461486427113414, + -0.003827363718301058, 0.03030325099825859, -0.008379308506846428, 0.03271373733878136, + 0.01419030036777258, 0.042413074523210526, 0.026127945631742477, 0.010739575140178204, + -0.030504124239087105, 0.03394767642021179, 0.009885861538350582, 0.010129779577255249, + 0.015051188878715038, -0.03348853439092636, 0.0010985287372022867, -0.0202882569283247, + 0.014032470993697643, -0.004498139023780823, -0.013932034373283386, 0.007453853730112314, + -0.028280165046453476, -0.020130427554249763, 0.011966340243816376, 0.010653486475348473, + -0.002358473837375641, -0.02307179383933544, -0.03041803650557995, 0.01635686866939068, + -0.02017347142100334, 0.008056474849581718, 0.023803548887372017, 0.05130891501903534, + 0.013680942356586456, -0.007884297519922256, -0.009986299090087414, 0.006922972854226828, + 0.020202167332172394, 0.03561205789446831, 0.004394114948809147, 0.008343437686562538, + 0.023961378261446953, -0.02944236248731613, -0.007582986727356911, -0.0036838825326412916, + -0.004110739100724459, -0.03512422367930412, 0.005968822166323662, -0.007683423813432455, + -0.005527617409825325, -0.007374939043074846, -0.03248416632413864, 0.005233480595052242, + -0.006560682784765959, 0.008099519647657871, 0.03523900732398033, -0.022139165550470352, + -0.0003409922937862575, 0.03277112916111946, -0.02397572621703148, 0.008917363360524178, + -0.009383677504956722, -0.00971368420869112, -0.00021241958893369883, -0.028796697035431862, + -0.009125410579144955, -0.003565510269254446, -0.005208371207118034, 0.008573007769882679, + -0.014498786069452763, 0.006445897743105888, -0.011543070897459984, -0.016686875373125076, + -0.0033520818687975407, 0.018451696261763573, 0.031680673360824585, -0.020474782213568687, + 0.0015558754093945026, -0.017432978376746178, 0.0054917470552027225, 0.03911300376057625, + -0.0064279623329639435, 0.001273396541364491, 0.013659420423209667, -0.058482978492975235, + -0.009670639410614967, -0.019699983298778534, 0.007396460976451635, -0.024176599457859993, + 0.004125087521970272, 0.024305732920765877, 0.020029990002512932, -0.0016410674434155226, + 0.0008635781123302877, 0.035726845264434814, 0.0009048289502970874, -0.027964506298303604, + 0.012310695834457874, 0.026988832280039787, 0.05133761093020439, -0.013874641619622707, + 0.003011313732713461, -0.008501267060637474, 9.920386946760118e-5, 0.0021235232707113028, + 0.024320080876350403, -0.021378714591264725, -0.006750795058906078, -0.016199039295315742, + -0.015008144080638885, -0.0005434354534372687, 0.019915204495191574, -0.015495981089770794, + 0.005534791387617588, -0.0235739778727293, 0.021493498235940933, -0.035009436309337616, + 0.002245482290163636, 0.02021651528775692, 0.015180321410298347, 0.013458546251058578, + 0.042413074523210526, 0.00040129927219823003, -0.019628241658210754, 0.027146661654114723, + -0.021593935787677765, 0.027433624491095543, 0.035870324820280075, -0.00764037948101759, + 0.02479356899857521, 0.007292437367141247, 0.01868126541376114, 0.004928582813590765, + 0.02632881887257099, 0.007855601608753204, -0.009534332901239395, -0.016486002132296562, + -0.01039522048085928, 0.028739305213093758, -0.005007497500628233, -0.010531527921557426, + 0.01889648847281933, 0.0043187872506678104, 0.00445509422570467, 0.014003775082528591, + -0.0033054505474865437, 0.03001628816127777, -0.00037708680611103773, 0.0061625218950212, + 0.006327525246888399, 0.045282699167728424, -0.03449290618300438, 0.000626833934802562, + -0.015983816236257553, 0.012447003275156021, -0.013063972815871239, -0.022024380043148994, + -0.001338859903626144, 0.004182479809969664, -0.0355546660721302, -0.02411920763552189, + -0.04815232381224632, -0.009584550745785236, 0.023028749972581863, -0.019169101491570473, + 0.0012491841334849596, -0.0005802024970762432, 0.018724309280514717, 0.013680942356586456, + -0.003120718291029334, 0.02081913687288761, 0.010043690912425518, -0.009111062623560429, + -0.042700037360191345, -0.0009227641276083887, 0.003827363718301058, -0.015452936291694641, + -0.03308678790926933, -0.048783641308546066, -0.022282646968960762, 0.05624467134475708, + 0.02246917225420475, 0.02343049645423889, -0.04981670901179314, -0.020259559154510498, + 0.006352634634822607, 0.01932693086564541, -0.01263352856040001, -0.05331765115261078, + 0.019183449447155, 0.007518420461565256, -0.03285721689462662, 0.018293866887688637, + -0.02922714129090309, 0.022813526913523674, 0.025683153420686722, -0.034722473472356796, + -0.041380006819963455, 0.024449214339256287, 0.015625113621354103, 0.025539672002196312, + 0.007582986727356911, -0.015424240380525589, -0.01456335186958313, -0.008271696977317333, + 0.024994442239403725, 0.017619503661990166, -0.01023021712899208, -0.0003501840401440859, + -0.0376494936645031, 0.01443421933799982, 0.03228329122066498, -0.00278174364939332, + -0.01203808095306158, -0.011177193373441696, 0.0014401936205103993, 0.01820777729153633, + 0.018021252006292343, -0.053547222167253494, 0.015381195582449436, -0.02060391567647457, + 0.013953556306660175, 0.005785883404314518, -0.02225394919514656, -0.03245547041296959, + -0.002996965777128935, -0.012525917962193489, -0.02193829044699669, -0.02912670373916626, + 0.021278277039527893, -0.032972004264593124, -0.005907842423766851, -0.04083477705717087, + 0.00047483344678767025, 0.010631964541971684, 0.0056495764292776585, -0.02057521790266037, + -0.010696531273424625, 0.021134795621037483, 0.028007550165057182, -0.013085494749248028, + -0.019513458013534546, -0.012109821662306786, 0.01792081445455551, 0.016557741910219193, + -0.006704163737595081, 0.01741863042116165, -0.016930794343352318, 0.017088623717427254, + -0.009641943499445915, 0.017935162410140038, -0.005628054030239582, -0.013680942356586456, + 0.01507988478988409, -0.019398672506213188, 0.011134149506688118, 0.023660067468881607, + ], + index: 11, + }, + { + title: "The Standard (Philippines)", + text: "The Standard is a majority broadsheet newspaper in the Philippines. It is owned by the Romualdez family. Romualdezes also owns Journal Publications, Inc., the proprietor of the People's Journal, a tabloid newspaper.Initially established as the Manila Standard, it merged with another newspaper of record, Today, on March 6, 2005 and became Manila Standard Today or MST and recently rebranded as The Standard.", + vector: [ + -0.001696532592177391, -0.02142198197543621, -0.025242570787668228, 0.0060270181857049465, + -0.011845489032566547, -0.033083949238061905, -0.023273883387446404, -0.018168644979596138, + -0.004170946776866913, 0.00034462448093108833, 0.062297262251377106, 0.02527593821287155, + -0.032766956835985184, -0.0422433502972126, -0.036003611981868744, -0.019970493391156197, + -0.01796843856573105, -0.0033075606916099787, 0.03700463846325874, 0.02150540240108967, + 0.003680860623717308, -0.007849722169339657, -0.03677106648683548, 0.016441872343420982, + 0.010727674700319767, 0.017534660175442696, -0.004450400359928608, -0.03970741480588913, + -0.01414785161614418, -0.0008607791387476027, -0.01277143880724907, 0.0014327202225103974, + 0.0003678253560792655, -0.01838553324341774, -0.02597665600478649, 0.021839076653122902, + 0.0398075170814991, 0.01096124853938818, -0.043911729007959366, -0.012754755094647408, + 0.04588041454553604, 0.014314689673483372, 0.006047872826457024, 0.021188409999012947, + -0.013405422680079937, -0.03335088863968849, -0.07988197356462479, 0.00032116289366967976, + -0.04354468360543251, 0.024291593581438065, 0.009376288391649723, 0.010569179430603981, + -0.011336633004248142, 0.029580354690551758, -0.0022231147158890963, 0.03313400223851204, + -0.0050927260890603065, 0.08028238266706467, 0.022589847445487976, -0.08195076137781143, + 0.005947770085185766, -0.022756686434149742, -0.0014942416455596685, 0.0036433220375329256, + 0.0010057195322588086, 0.03416839614510536, 0.005597410723567009, -0.043811626732349396, + 0.03750515356659889, -0.027628351002931595, -0.024875527247786522, 0.019570082426071167, + 0.02667737565934658, 0.029930714517831802, -0.03607034683227539, 0.029964081943035126, + 0.05862682685256004, -0.026694059371948242, -0.03241659700870514, 0.05685834586620331, + 0.012362685985863209, -0.011353316716849804, 0.007311669643968344, -0.01706751435995102, + -0.0093429209664464, -0.011703676544129848, -0.018652474507689476, -0.054188940674066544, + -0.035302892327308655, 0.03640402480959892, 0.06112939491868019, 0.033000532537698746, + 0.017701497301459312, -0.06800311803817749, 0.06920434534549713, 0.008650543168187141, + -0.028646063059568405, 0.007745448034256697, -0.016316743567585945, -0.020687896758317947, + 0.021789025515317917, 0.008020730689167976, 0.037238214164972305, -0.0006788215832784772, + 0.05819305032491684, -0.0039957668632268906, 0.024391695857048035, 0.013071747496724129, + 0.017918387427926064, 0.047248486429452896, 0.022606531158089638, -0.0418095700442791, + 0.02424154244363308, 0.0036349801812320948, -0.08181729167699814, 0.045112960040569305, + -0.003970741294324398, -0.008817381225526333, 0.04614735394716263, -0.004788246937096119, + -0.05041840299963951, -0.012179164215922356, -0.0026840041391551495, -0.06713555753231049, + 0.0038581257686018944, -0.061963584274053574, 0.014164535328745842, 0.0015213527949526906, + 0.02193918079137802, -0.0037455102428793907, -0.06780291348695755, -0.0011553522199392319, + 0.008183397352695465, -0.016675444319844246, -0.03191608563065529, 0.0157494954764843, + 0.023357301950454712, -0.015899648889899254, -0.02527593821287155, -0.014456501230597496, + 0.033601146191358566, -0.02375771291553974, -0.0019196782959625125, 0.0127797806635499, + -0.014815202914178371, -0.01504877582192421, 0.039874251931905746, 0.04294406622648239, + 0.04891686514019966, -0.013363713398575783, -0.03994098678231239, -0.033083949238061905, + -0.0026840041391551495, 0.01465670671314001, -0.026610640808939934, 0.03224975988268852, + -0.05088555067777634, -0.029847295954823494, -0.06563401967287064, 0.017601395025849342, + -0.03910679742693901, 0.04881676286458969, -0.012788122519850731, -0.006410744972527027, + 0.02706110291182995, -0.022689949721097946, 0.09109348058700562, 0.011845489032566547, + 0.0013388738734647632, 0.018819311633706093, -0.02911320887506008, 0.018001805990934372, + -0.06326492130756378, -0.06279777735471725, -0.03727158159017563, -0.0067986431531608105, + -0.022005915641784668, 0.03550310060381889, 0.043911729007959366, 0.01536576822400093, + 0.03940710425376892, 0.0038310145027935505, -0.004771563224494457, -0.04174283519387245, + -0.007457653060555458, 0.0323665477335453, 0.05202004685997963, 0.0505518764257431, + -0.02263989858329296, -0.02859601192176342, -0.010277212597429752, 0.06213042140007019, + 0.008608833886682987, -0.039874251931905746, -0.047548793256282806, 0.02627696469426155, + 1.1111663297924679e-5, -0.016433529555797577, -0.04070844128727913, -0.008016559295356274, + 0.04454571008682251, 0.046814706176519394, 0.029463568702340126, -0.002713200869038701, + 0.018819311633706093, 0.0008070782059803605, -0.014990382827818394, 0.0090926643460989, + 0.017134249210357666, 0.04721511900424957, -0.026110127568244934, -0.047115013003349304, + -0.006243907380849123, 0.03290042653679848, -0.017451241612434387, 0.0013409593375399709, + 0.0231237281113863, -0.002239798428490758, 0.07794665545225143, -0.021071624010801315, + 0.016650419682264328, -0.06356523185968399, -0.025342673063278198, -0.011378343217074871, + 0.02495894581079483, -0.009518100880086422, -0.024007970467209816, -0.004679802339524031, + 0.0015682759694755077, 0.02515915036201477, 0.020154014229774475, -0.001731985597871244, + 0.02282342128455639, 0.04264375939965248, -0.00864220131188631, 0.01990375854074955, + -0.01708419807255268, -0.032283127307891846, -0.07627827674150467, 0.011903882026672363, + 0.0007012404385022819, -0.012304292991757393, -0.016341770067811012, -0.018452268093824387, + 0.004779905080795288, 0.025426091626286507, -0.04327774420380592, -0.05952775105834007, + -0.01808522455394268, 0.022906839847564697, -0.004150092136114836, -0.04881676286458969, + 0.030347809195518494, 0.03403492644429207, -0.0013711987994611263, 0.004888349678367376, + 0.002446260303258896, 0.022806737571954727, 0.010585863143205643, -0.012504498474299908, + 0.005793445277959108, -0.01668378710746765, 0.02666069194674492, -0.0036662621423602104, + 0.0018591994885355234, 0.01718430034816265, -0.018252063542604446, 0.020053911954164505, + 0.023073676973581314, 0.06279777735471725, -0.005101067945361137, 0.03647075966000557, + 0.02666069194674492, -0.008496218360960484, -0.005192828830331564, 0.029346780851483345, + 0.05822641775012016, 0.04297743737697601, -0.012104087509214878, -0.008492047898471355, + 0.03375130146741867, -0.013789149932563305, 0.0024817134253680706, -0.01938655972480774, + 0.0026005853433161974, -0.0032658514101058245, 0.017901703715324402, -0.05789273977279663, + 0.03243328258395195, 0.015974726527929306, -0.008175055496394634, 0.014564946293830872, + 0.02727799117565155, 0.046714603900909424, 0.03730494901537895, -0.03366788104176521, + -0.007666200399398804, 0.020888101309537888, 0.010343948379158974, -0.0011782924411818385, + -0.006398232188075781, 0.015599341131746769, -0.0255595613270998, -0.02072126418352127, + 0.04918380454182625, 0.021572137251496315, -0.03830597549676895, 0.007991533726453781, + -0.023490771651268005, -0.06660167872905731, -0.016058145090937614, -0.021755658090114594, + -0.03413502871990204, -0.022372959181666374, -0.02504236437380314, -0.012496156617999077, + -0.0017278146697208285, -0.04070844128727913, 0.0021751488093286753, -0.041575998067855835, + 0.06900414079427719, -0.024908894672989845, 0.01424795389175415, -0.005793445277959108, + 0.05392200127243996, -0.0359368771314621, 0.04351131618022919, 0.041976407170295715, + -0.017551343888044357, 0.0006136505398899317, 0.011937249451875687, -0.023107044398784637, + 0.0098434342071414, -0.029330097138881683, 0.013121798634529114, 0.000133144436404109, + 0.035202790051698685, -0.016033118590712547, -0.019069569185376167, -0.0049217171035707, + -0.0015839170664548874, 0.023373985663056374, 0.028729481622576714, 0.025843186303973198, + 0.017801601439714432, -0.01041068322956562, 0.03183266520500183, 0.047148384153842926, + 0.031098579987883568, 0.020270802080631256, 0.0008951894706115127, 0.01622498221695423, + -0.00878401380032301, 0.047014910727739334, 0.06336501985788345, -0.0060562146827578545, + -0.02857932820916176, -0.018969465047121048, 0.036737699061632156, -0.01414785161614418, + 0.02789529226720333, -0.005488966125994921, -0.01000193040817976, 0.023173781111836433, + 0.05095228552818298, -0.06256420165300369, -0.008600492030382156, 0.043778255581855774, + -0.02909652516245842, -0.00033915010862983763, 0.005247050896286964, -0.0042647928930819035, + -0.000218192653846927, -0.00040510320104658604, 0.027711769565939903, 0.02769508585333824, + -0.0018487721681594849, 0.05518996715545654, -0.021438665688037872, -0.033484362065792084, + -0.0638655349612236, 0.04928390681743622, 0.007165686693042517, 0.000961924612056464, + -0.0013472158461809158, -0.0806160569190979, -0.015123853459954262, 0.01212911307811737, + 0.02525925450026989, 0.013213559053838253, 0.009509759023785591, 0.011169795878231525, + 0.07434295862913132, 0.01908625289797783, 0.012154138647019863, -0.033684566617012024, + -0.01606648787856102, -0.014256295748054981, 0.06326492130756378, 0.006573412101715803, + -0.04988452419638634, -0.03760525584220886, 0.05008472874760628, 0.04604725167155266, + 0.021889127790927887, -0.021555453538894653, -0.016516949981451035, -0.015499237924814224, + 0.008658885955810547, -0.03173256292939186, -0.02739477902650833, -0.030848322436213493, + -0.06303134560585022, 0.05372179299592972, -0.012237558141350746, -0.02232290804386139, + -0.04921717196702957, 0.005722539033740759, 0.01090285461395979, -0.01494867354631424, + 0.06453289091587067, 0.017818285152316093, -0.013046721927821636, 0.05589068681001663, + 0.009860117919743061, 0.0336511991918087, -0.02515915036201477, 0.0050259907729923725, + -0.006473309360444546, 0.034602172672748566, -0.0037538520991802216, -0.035202790051698685, + 0.006590095814317465, -0.020354220643639565, -0.006548386532813311, -0.01374744065105915, + 0.0332174189388752, 0.02344072051346302, 0.047448690980672836, 0.026310332119464874, + -0.024992313235998154, -0.038139138370752335, 0.04361141845583916, 0.050051361322402954, + -0.028228968381881714, 0.021288512274622917, -0.007591123227030039, -0.004492109641432762, + -0.011578548699617386, 0.018368849530816078, -0.003778877668082714, -0.006089582107961178, + -0.02090478502213955, -0.005155290011316538, -0.0023399011697620153, 0.0005200649029575288, + -0.0013148909201845527, 0.02253979630768299, 0.05165300518274307, -0.00787474773824215, + 0.018452268093824387, 0.016358453780412674, 0.01768481358885765, -0.03396819159388542, + 0.002329473849385977, -0.0077704740688204765, 0.012245899997651577, -0.021438665688037872, + -0.029964081943035126, 0.017351139336824417, -0.04331111162900925, -0.010327264666557312, + -0.0359368771314621, -0.03870638459920883, 0.04871665686368942, -0.018352165818214417, + 0.03131546825170517, -0.020654529333114624, 0.06059551611542702, -0.021455349400639534, + 0.02979724295437336, -0.02052105776965618, -0.003718398977071047, 0.010077007114887238, + 0.025576245039701462, 0.003174090525135398, -0.043678153306245804, 0.004646434914320707, + -0.037638623267412186, 0.034802380949258804, 0.00217097788117826, 0.055924054235219955, + -0.004004108719527721, -0.003449372947216034, -0.006398232188075781, -0.01860242336988449, + -0.0029843123629689217, -0.00029092354816384614, -0.0045254770666360855, + 0.0018852679058909416, -0.005067700520157814, 0.02921331115067005, 0.05091891810297966, + 0.06419920921325684, -0.03290042653679848, 0.013096773065626621, 0.03246665000915527, + 0.03353441134095192, -0.008817381225526333, 0.02819560095667839, 0.05078544840216637, + -0.006723565980792046, -0.028812900185585022, 0.07834706455469131, 0.023056993260979652, + -0.028562642633914948, 0.006631805561482906, 0.03231649473309517, 0.05445588007569313, + 0.01602477766573429, 0.021672239527106285, -0.012954960577189922, -0.003222056431695819, + -0.005893548019230366, -0.006777788512408733, -0.0248421598225832, -0.03426849842071533, + -0.0026840041391551495, 0.006590095814317465, -0.00394780095666647, -0.001147010363638401, + -0.016291718930006027, 0.009176082909107208, 0.003641236573457718, -0.0456802099943161, + 0.00402079289779067, -0.02547614276409149, -0.006410744972527027, -0.008700595237314701, + 0.014690074138343334, 0.0037455102428793907, 0.03101515956223011, -0.002260653069242835, + -0.04384499415755272, 0.014164535328745842, 0.011862172745168209, -0.019136304035782814, + -0.01978697068989277, -0.0008769415435381234, 0.027444830164313316, 0.01788502000272274, + 0.01938655972480774, -0.02696100063621998, 0.05625772848725319, -0.004658947698771954, + -0.011078034527599812, 0.03860628232359886, -0.015641050413250923, -0.04878339171409607, + 0.002333644777536392, 0.02332393452525139, 0.03381803631782532, 0.01796843856573105, + -0.005288760643452406, -0.041075482964515686, 0.02090478502213955, 0.006736079230904579, + 0.00030317570781335235, -0.00772459339350462, 0.004362810403108597, -0.012003985233604908, + 0.019453296437859535, -0.004400348756462336, -0.014506553299725056, 0.03840607777237892, + 0.018035173416137695, -0.01930314116179943, -0.011645283550024033, 0.016258349642157555, + -0.0432443767786026, 0.019219722598791122, -0.010018614120781422, 0.019770286977291107, + 0.011578548699617386, -0.019436612725257874, 0.04574694484472275, -0.01066093984991312, + -0.0018644132651388645, -0.0015818316023796797, 0.002137610223144293, 0.011812121607363224, + 0.020954836159944534, 0.020237434655427933, 0.005438914522528648, -0.042176615446805954, + -0.004817443434149027, -0.023373985663056374, -0.036437392234802246, 0.03019765391945839, + 0.019837023690342903, 0.04164273291826248, 0.026226913556456566, 0.06129623204469681, + -0.027444830164313316, -0.0255595613270998, 0.010544153861701488, 0.01055249571800232, + -0.0030114236287772655, 0.03083163872361183, 0.01608317159116268, -0.018835995346307755, + 0.0038643821608275175, 0.01788502000272274, 0.03059806488454342, -0.00823344849050045, + 0.010827777907252312, 0.007294985931366682, -0.042376819998025894, -0.012412738054990768, + 0.0072699603624641895, -0.011595232412219048, 0.061963584274053574, 0.02656058967113495, + 0.01920303888618946, 0.015549289993941784, -0.0067694466561079025, -0.024324961006641388, + 0.022689949721097946, 0.03194945305585861, 0.0016370966332033277, 0.04134242609143257, + 0.018535686656832695, 0.019119620323181152, 0.006727737374603748, -0.0019697295501828194, + 0.008742304518818855, 0.001641267561353743, -0.030431227758526802, -0.04110885038971901, + -0.010602546855807304, -0.03386808931827545, 0.02899642288684845, 0.07327519357204437, + 0.024074705317616463, -0.011053008958697319, -0.0008425312698818743, -0.00039467585156671703, + -0.01686730794608593, 0.037438418716192245, 0.014531578868627548, 0.014448159374296665, + 0.01846895180642605, -0.00035974415368400514, -0.003015594556927681, 0.006694369483739138, + 0.019019518047571182, -0.03316736966371536, 0.04204314202070236, 0.009551468305289745, + -0.00545559823513031, -0.02435832843184471, -0.039540573954582214, 0.023373985663056374, + 0.03703800588846207, 0.020671213045716286, -0.004064587410539389, -0.010043639689683914, + 0.014214586466550827, -0.018118591979146004, 0.021488718688488007, -0.02160550467669964, + -0.03163246065378189, 0.01455660443753004, -0.023307250812649727, -0.0015557631850242615, + -0.010360632091760635, -0.043778255581855774, 0.022790053859353065, -0.002005182672291994, + -0.005509820766746998, 0.010110374540090561, -0.0015203100629150867, 0.030631432309746742, + 0.006723565980792046, 0.02587655372917652, -0.01870252564549446, 0.008600492030382156, + -0.030364492908120155, 0.030364492908120155, -0.0004645391891244799, 0.031665828078985214, + -0.038239240646362305, -0.02203928306698799, 0.02082136645913124, 0.031198682263493538, + -0.03009755164384842, 0.028929686173796654, -0.005601581651717424, -0.006973823066800833, + -0.03800566866993904, 0.01383920107036829, 0.01850231923162937, -0.01928645744919777, + -0.003463971195742488, -0.0007976935594342649, 0.008496218360960484, 0.013638995587825775, + -0.029880663380026817, -0.003261680481955409, -0.003783048829063773, 0.03161577507853508, + -0.022356275469064713, -0.014931989833712578, 0.011528496630489826, 0.025426091626286507, + 0.021989231929183006, 0.002294020727276802, -0.01978697068989277, -0.004492109641432762, + 0.02869611419737339, 0.05181984230875969, 0.0226232148706913, -0.031382203102111816, + 0.01090285461395979, -0.019870391115546227, 0.010477418079972267, -0.029964081943035126, + -0.015974726527929306, 0.07000517100095749, 0.0038351856637746096, 0.005572384689003229, + 0.006072898395359516, -0.010068665258586407, -0.019036201760172844, 0.0329337939620018, + -0.019970493391156197, 0.01121984701603651, -0.01640850491821766, -0.03760525584220886, + -0.009935195557773113, 0.025826502591371536, -0.04291069880127907, -0.029363464564085007, + 0.016617052257061005, -0.013814175501465797, 0.013597286306321621, -0.006235565524548292, + 0.02544277533888817, -0.0009191724238917232, -0.0017643105238676071, -0.026010023429989815, + -0.027928659692406654, -0.034602172672748566, -0.07881420850753784, -0.028762849047780037, + 0.013280294835567474, 0.03290042653679848, -0.03687116876244545, 0.003970741294324398, + 0.057325493544340134, -0.027111154049634933, -0.009426339529454708, -0.013063405640423298, + -0.011453419923782349, 0.011378343217074871, -0.009551468305289745, -0.02787860855460167, + 0.013947646133601665, -0.023273883387446404, 0.0010067622642964125, -0.03285037726163864, + 0.033601146191358566, -0.016550317406654358, -0.006581753958016634, 0.032883744686841965, + 0.007053071167320013, -0.029129892587661743, -0.028562642633914948, 0.004804930649697781, + 0.040441498160362244, -0.04838298261165619, 0.034602172672748566, -0.012637969106435776, + 0.009526442736387253, 0.01698409579694271, -0.02636038325726986, -0.00919276662170887, + -0.014089458622038364, 0.03463554382324219, -0.025242570787668228, 0.008658885955810547, + -0.029930714517831802, -0.026493854820728302, 0.0077537898905575275, 0.05919407680630684, + -0.004492109641432762, -0.018252063542604446, -0.013447131961584091, -0.02152208611369133, + 0.011795437894761562, -0.0042647928930819035, -0.03994098678231239, -0.0063356682658195496, + -0.04040813073515892, 0.024124756455421448, -0.0020010117441415787, -0.016934044659137726, + -0.013296978548169136, -0.019336508587002754, 0.020220749080181122, -0.022673266008496284, + 0.022289538756012917, 0.02342403680086136, -0.02686089649796486, -0.02222280390560627, + 0.007924798876047134, 0.03890659287571907, -0.0248421598225832, 0.021655555814504623, + -0.016959069296717644, -0.04241018742322922, 0.005943599157035351, 0.03203286975622177, + 0.04958421364426613, -0.027311358600854874, 0.010068665258586407, 0.027444830164313316, + 0.02646048553287983, -0.002857098588719964, 0.02545945905148983, -0.04027466103434563, + -0.01490696333348751, -0.03260011970996857, -0.01398935541510582, -0.0687372013926506, + 0.015799546614289284, -0.01383920107036829, 0.006439941935241222, 0.02789529226720333, + 0.010677623562514782, 0.019336508587002754, 0.00325750932097435, 0.002673576818779111, + -0.048449717462062836, 0.00282998732291162, -0.029163260012865067, -0.002700688084587455, + 0.04351131618022919, 0.05388863384723663, -0.03401824086904526, 0.029163260012865067, + 0.017401190474629402, -0.011628599837422371, 0.008371090516448021, 0.02342403680086136, + 0.005843496415764093, -0.056224361062049866, -0.020220749080181122, -0.011762069538235664, + -0.03241659700870514, 0.005013477988541126, 0.007069754879921675, 0.011336633004248142, + -0.012979986146092415, 0.02392455004155636, -0.014231270179152489, 0.029079841449856758, + -0.01982033997774124, 0.0292800460010767, -0.04074180871248245, -0.004588041454553604, + 0.04678133875131607, -0.006965481210500002, 0.024007970467209816, 0.04007445648312569, + -0.031665828078985214, -0.0011657796567305923, 0.008583808317780495, -0.0012596258893609047, + 0.0015401220880448818, 0.02284010499715805, 0.005038503557443619, -0.006907087750732899, + -0.03021433763206005, 0.07534398138523102, -0.0511191226541996, 0.0216221883893013, + 0.02242301031947136, 0.0010208392050117254, -0.00803324393928051, 0.002563046757131815, + 0.010936222039163113, -0.0031010988168418407, -0.02485884353518486, -0.006227223668247461, + 0.06746923178434372, 0.01349718403071165, -0.00904261227697134, -0.04774899780750275, + -0.07641174644231796, 0.01910293661057949, -0.0037204844411462545, 0.02404133789241314, + -0.025709716603159904, 0.019670184701681137, 0.020070595666766167, 0.02172229066491127, + -0.012404395267367363, -0.00540971802547574, -0.004483767785131931, -0.005889376625418663, + -0.03747178614139557, 0.015257323160767555, -0.01662539318203926, -0.035302892327308655, + 0.008592150174081326, -0.005747564602643251, -0.016058145090937614, 0.021905813366174698, + 0.004135493654757738, -0.046914808452129364, -0.0014869425212964416, 0.012637969106435776, + -0.03415171056985855, -0.03787219524383545, 0.022256171330809593, -0.009818408638238907, + 0.04144252836704254, -0.007916457019746304, -0.018669158220291138, -0.006110437214374542, + -0.03373461589217186, -0.027962027117609978, -0.016041461378335953, 0.028746165335178375, + 0.03660422936081886, -0.027761822566390038, 0.04604725167155266, -0.014097800478339195, + 0.03710474073886871, 0.007766302675008774, 0.008700595237314701, -0.01096959039568901, + -0.05305444449186325, -0.00822510663419962, 0.00863385945558548, -0.010886170901358128, + -0.0125295240432024, 0.010927880182862282, -0.01980365440249443, 0.01796843856573105, + 0.008959193713963032, -0.027011051774024963, 0.011511812917888165, 0.009217792190611362, + 0.003503595246002078, -0.0026777477469295263, -0.010702649131417274, -0.010761043056845665, + 0.01700912043452263, 0.0505518764257431, 0.022906839847564697, 0.01081943605095148, + -0.01308008935302496, -0.0043502976186573505, -0.02869611419737339, 0.035102687776088715, + 0.0080540981143713, -0.012204190716147423, -0.004239767324179411, 0.006085411179810762, + 0.013697389513254166, -0.010569179430603981, -0.005242879968136549, -0.003935288172215223, + -0.0216221883893013, 0.005280418787151575, 0.004031219985336065, 0.006181342992931604, + -0.033300839364528656, 0.04327774420380592, -0.006669343914836645, 0.009401313960552216, + 0.03927363455295563, 0.01910293661057949, -0.0009926853235810995, 0.0015828743344172835, + 0.004971768707036972, 0.014206244610249996, 0.03727158159017563, -0.04504622519016266, + 0.01888604648411274, -0.004275220446288586, -0.029480252414941788, 0.015582657419145107, + 0.004867495037615299, 0.00659426674246788, 0.013263611122965813, -0.03401824086904526, + -0.03627055138349533, -0.013121798634529114, -0.015974726527929306, -0.03907343000173569, + 1.4907876675351872e-6, 0.006214710883796215, 0.016675444319844246, -0.01237102784216404, + 0.015857940539717674, -0.0589938722550869, 0.02153876982629299, -0.02172229066491127, + -0.007491020485758781, 0.00829184241592884, 0.02282342128455639, -0.007086438592523336, + -0.04140916094183922, -0.007532729767262936, -0.029930714517831802, -0.0012241728836670518, + -0.0019394902046769857, -0.03486911579966545, 0.007833038456737995, -0.032483331859111786, + -0.004437887575477362, -0.018352165818214417, -0.003111526370048523, 0.009309553541243076, + -0.001064634183421731, -0.003518193494528532, -0.015582657419145107, 0.016291718930006027, + 0.022806737571954727, 0.010477418079972267, 0.020537741482257843, -0.016233325004577637, + -0.021855760365724564, -0.025225885212421417, 0.00363915110938251, -0.006168830208480358, + -0.003078158712014556, -0.013864226639270782, 0.005580727010965347, 0.031765930354595184, + 0.04604725167155266, -0.02282342128455639, -0.0402412936091423, -0.013380397111177444, + -0.006569241173565388, 0.010769384913146496, -0.008750646375119686, -0.014072773978114128, + 0.007557755336165428, -0.014931989833712578, -0.0027924489695578814, 0.04898359999060631, + -0.05759243294596672, -0.011269898153841496, 0.027811873704195023, -0.018635790795087814, + 0.010327264666557312, 0.0026944316923618317, 0.011770411394536495, -0.021472033113241196, + -0.011645283550024033, -0.03757188841700554, -0.0034660566598176956, 0.02465863712131977, + -0.0003065645869355649, 0.01495701540261507, -0.00714483205229044, 0.023207148537039757, + -0.0038789804093539715, -0.003119868226349354, -0.0100936908274889, -0.019019518047571182, + -0.0158245712518692, -0.006348181050270796, 0.023791080340743065, -0.003299218835309148, + -0.01746792532503605, 0.01680891588330269, 0.020437639206647873, 0.02070458047091961, + 0.0029572013299912214, 0.012946618720889091, 0.011820463463664055, 0.025242570787668228, + 0.023474087938666344, -0.03840607777237892, -0.0196868684142828, -0.020754631608724594, + 0.015624366700649261, -0.03356777876615524, -0.023874498903751373, 0.027411462739109993, + 0.015123853459954262, 0.007699567824602127, 0.04544663429260254, -0.01131994929164648, + -0.012804806232452393, 0.00284250034019351, -0.020170697942376137, -0.03199950233101845, + -0.004967597778886557, 0.023807764053344727, -0.006669343914836645, 0.014197902753949165, + 0.02052105776965618, 0.01106969267129898, -0.010143742896616459, -0.003353441134095192, + 0.022556480020284653, -0.017501292750239372, 0.009860117919743061, 0.017801601439714432, + 0.022756686434149742, -0.01748460903763771, -0.026026707142591476, 0.013280294835567474, + -0.008141688071191311, -0.011503471061587334, -0.022756686434149742, 0.00023409439017996192, + 0.0010813178960233927, -0.04788246750831604, 0.010827777907252312, 0.0037079716566950083, + -0.008437825366854668, -0.03817250579595566, -0.0036996298003941774, -0.018635790795087814, + -0.010877829045057297, -0.020370904356241226, 0.008208422921597958, -0.02050437405705452, + -0.014364740811288357, 0.0029446883127093315, -0.04264375939965248, 0.02607676014304161, + 0.015741152688860893, 0.01343879010528326, 0.011545180343091488, 0.03376798331737518, + -0.010227161459624767, 0.02545945905148983, 0.04231008514761925, 0.05715865641832352, + -0.001819575554691255, -0.03241659700870514, 0.02931341342628002, -0.03255007043480873, + 0.007812183350324631, 0.016475239768624306, 0.013755782507359982, -0.00015028442430775613, + 0.013597286306321621, 0.018018489703536034, 0.012721387669444084, 0.020938152447342873, + 0.022289538756012917, -0.003853954840451479, 0.0323665477335453, -0.007194883190095425, + 0.02666069194674492, 0.0053346408531069756, 0.015023750253021717, 0.031782615929841995, + -0.02897973731160164, 0.004683973267674446, 0.01652529090642929, 0.016275035217404366, + -0.004988452419638634, 0.008758988231420517, 0.010293896310031414, 0.03091505728662014, + -0.010727674700319767, 0.011486787348985672, 0.034802380949258804, -0.004829956218600273, + 0.009568152017891407, 0.0013086345279589295, -0.007908115163445473, -0.01980365440249443, + 0.010769384913146496, -0.004980110563337803, 0.016416845843195915, 0.014114484190940857, + -0.0025651322212070227, -0.004917546175420284, -0.003511937102302909, 0.0428105965256691, + -0.025592928752303123, -0.028662746772170067, -0.009926853701472282, 0.032883744686841965, + 0.003261680481955409, -0.01479851920157671, -0.030481278896331787, -0.004337784834206104, + 0.0074159433133900166, 0.017334455624222755, 0.011136427521705627, -0.044111933559179306, + -0.00012069677177350968, -0.030164286494255066, -0.013038380071520805, -0.005113580729812384, + -0.01026052888482809, -0.012204190716147423, 0.003401407040655613, 0.01202066894620657, + 0.02203928306698799, -0.035603202879428864, 0.024174807593226433, 0.022956890985369682, + -0.0029446883127093315, 0.0060145054012537, -0.0408085435628891, 0.0336511991918087, + -0.04000772163271904, 0.016875650733709335, 0.03650412708520889, -0.015933016315102577, + 0.0018737978534772992, 0.03019765391945839, 0.04314427450299263, 0.022556480020284653, + -0.043477948755025864, 0.001558891381137073, -0.004072929732501507, -0.01880262792110443, + -0.011837147176265717, -0.005893548019230366, -0.006681856699287891, 0.010327264666557312, + -0.014614997431635857, 0.029680456966161728, -0.006248078308999538, -0.022473061457276344, + -0.001937404740601778, 0.028512591496109962, 0.0023461575619876385, -0.013205217197537422, + -0.0019280201522633433, 0.03657086193561554, 0.03710474073886871, 0.03426849842071533, + -0.013372055254876614, 0.01728440262377262, 0.018235379830002785, -0.015499237924814224, + 0.012504498474299908, 0.009326237253844738, 0.0164668969810009, -0.03371793404221535, + -0.02666069194674492, -0.03526952490210533, 0.02364092692732811, -0.011261556297540665, + -0.007219908758997917, -0.020137330517172813, -0.02969714067876339, -0.008884117007255554, + 0.003000996308401227, 0.04030802845954895, -0.028345754370093346, 0.007591123227030039, + -0.025592928752303123, 0.026193546131253242, -0.005876863840967417, 0.015515921637415886, + -0.002590158022940159, -0.008708937093615532, 0.009067637845873833, -0.018852679058909416, + -0.016558658331632614, 0.0034243473783135414, 0.01806854084134102, 0.01292993500828743, + -0.020737947896122932, -0.013397080823779106, -0.017918387427926064, -0.008358577266335487, + 0.0156076829880476, 0.013288636691868305, 0.003057304071262479, 0.016291718930006027, + -0.007987363263964653, -0.009951879270374775, 0.020787999033927917, -0.006927942391484976, + -0.002857098588719964, 0.03433523327112198, -0.0019488749094307423, -0.01848563551902771, + 0.010744359344244003, -0.022956890985369682, -0.015182246454060078, -0.01318853348493576, + 0.015265665017068386, 0.005393034312874079, -0.006823668722063303, 0.01196227502077818, + -0.037538520991802216, -0.004925888031721115, -0.007236592471599579, -0.01388925313949585, + 0.00018013275985140353, 0.016291718930006027, 0.0007022831705398858, -0.005051016341894865, + 0.0017465839628130198, -0.00414592120796442, 0.05088555067777634, 0.0036287237890064716, + -0.02911320887506008, 0.026510538533329964, -0.02008727937936783, -0.025743084028363228, + -0.010285554453730583, -0.0003910262603312731, -0.020587792620062828, -0.008767330087721348, + -0.0036099543794989586, -0.03747178614139557, -0.00109904445707798, 0.004256451036781073, + 0.024875527247786522, 0.016033118590712547, -0.03513605520129204, -0.013313662260770798, + 0.00039415445644408464, 0.0021626357920467854, -0.007553584408015013, -0.03523615747690201, + 0.0058142999187111855, 0.00026681023882701993, 0.03947383910417557, 0.012337660416960716, + 0.009301211684942245, 0.0032804496586322784, -0.010544153861701488, -0.00023383370717056096, + 0.005551530048251152, -0.01055249571800232, 0.019119620323181152, 0.004102126229554415, + 0.02847922407090664, 0.011294923722743988, 0.009226134046912193, -0.03486911579966545, + 0.016300059854984283, -0.020871417596936226, 0.018835995346307755, -0.02445843257009983, + -0.0053346408531069756, -0.013322004117071629, -0.023557506501674652, -0.015223955735564232, + 0.01171201840043068, -0.02414144016802311, 0.04307753965258598, -0.009267843328416348, + -0.020070595666766167, -0.0408085435628891, 0.005309615284204483, 0.01318853348493576, + -0.006106266286224127, -0.020654529333114624, -0.0004754879337269813, 0.035402994602918625, + 0.009726648218929768, 0.024491799995303154, -0.018835995346307755, 0.0021563793998211622, + -0.010118717327713966, -0.005559871904551983, -0.005676658358424902, -0.0031052699778229, + -0.014197902753949165, 0.03690453618764877, 0.01202066894620657, 0.016300059854984283, + 0.00692377146333456, 0.00820425245910883, -0.0181853286921978, 0.0442454032599926, + -0.017801601439714432, -0.007019703276455402, 0.02150540240108967, -0.017334455624222755, + 0.0009264715481549501, -0.0018487721681594849, -0.0010823607444763184, 0.015173904597759247, + 0.024291593581438065, -0.016391821205615997, 0.008967535570263863, -0.035202790051698685, + 0.0010531640145927668, -0.00975167378783226, -0.013021695427596569, -0.021238461136817932, + 0.0019405329367145896, 0.004120895639061928, 0.03817250579595566, 0.004567186813801527, + -0.014381424523890018, 0.005134435370564461, -0.021889127790927887, -0.02352413907647133, + -0.014790177345275879, -0.012946618720889091, -0.0022210292518138885, -0.005201170686632395, + 0.0035974415950477123, 0.0043794941157102585, 0.0051219225861132145, -0.031465623527765274, + 0.006669343914836645, -0.00045098361442796886, -0.009785041213035583, 0.02292352356016636, + -0.012846516445279121, -0.022773370146751404, 0.02465863712131977, 0.0058142999187111855, + 0.006306471303105354, 0.0221227016299963, -0.06119612976908684, -0.009643228724598885, + 0.01860242336988449, 0.018969465047121048, -0.01000193040817976, 0.004433716647326946, + -0.034902483224868774, 0.003365954151377082, -0.027861924842000008, -0.0026965171564370394, + -0.005789274349808693, 0.019069569185376167, 0.026343699544668198, 0.0221227016299963, + 0.04020792618393898, 0.0015484639443457127, 0.009518100880086422, -0.02819560095667839, + 0.018535686656832695, 0.021288512274622917, -0.011928907595574856, -0.0035161080304533243, + 0.008379432372748852, 0.009826750494539738, 0.01746792532503605, 0.01187051460146904, + 0.008809039369225502, 0.012471131049096584, 0.006902916822582483, 0.026727426797151566, + 0.014748468063771725, 0.0038894079625606537, 0.0333675742149353, -0.024408381432294846, + -0.002120926510542631, -0.023557506501674652, 0.0027090299408882856, -0.042276717722415924, + 0.002571388613432646, -0.04961758106946945, 0.026543905958533287, -0.021588820964097977, + 0.005509820766746998, 0.007632832508534193, 0.007440968882292509, 0.001930105616338551, + -0.02334061823785305, -0.02072126418352127, -0.015257323160767555, -0.008250133134424686, + -0.018435584381222725, -0.05615762621164322, -0.007370063103735447, 0.004759050440043211, + 0.010736016556620598, -0.00327002233825624, -0.021155042573809624, -0.016917360946536064, + -0.008137517608702183, 0.027328044176101685, -0.02374102920293808, -0.030281074345111847, + 0.004387835972011089, -0.005146948155015707, 0.02454185113310814, -0.005551530048251152, + -0.01608317159116268, 0.003632894717156887, 0.04040813073515892, -0.012587917037308216, + 0.004383665043860674, -0.0030531331431120634, -0.02182239294052124, -0.0125295240432024, + -0.007870576344430447, -0.017017463222146034, -0.0007439926266670227, -0.0043502976186573505, + 0.010594204999506474, 0.01662539318203926, -0.028545958921313286, 0.024308277294039726, + -0.029763875529170036, -0.004646434914320707, -0.017317771911621094, 0.004243938252329826, + 0.02527593821287155, -0.03720484673976898, -0.018318798393011093, 0.0064607965759932995, + -0.01682559959590435, 0.023907866328954697, 0.0029843123629689217, -0.004371152259409428, + -0.029730508103966713, -0.0015474212123081088, -0.008308526128530502, -0.021155042573809624, + -0.001202275394462049, 0.03727158159017563, -0.011595232412219048, 0.0432443767786026, + -0.023290567100048065, 0.0037455102428793907, -0.013622311875224113, -0.02414144016802311, + -0.01308843120932579, + ], + index: 12, + }, + { + title: "William Cochrane", + text: "William Cochrane (after 1659 \u2013 August 1717) was a Scottish MP in the British Parliament.He represented Wigtown Burghs 1708-1713.", + vector: [ + 0.0335075706243515, -0.059773098677396774, -0.01916780136525631, -0.024586213752627373, + 0.016766905784606934, 0.029912788420915604, -0.04906747117638588, -0.03432099148631096, + -0.03941141068935394, 0.056099601089954376, -0.06360403448343277, 0.0534231923520565, + -0.016399554908275604, 0.013552593067288399, 0.041221924126148224, 0.01248990185558796, + 0.0005944838630966842, 0.009544541127979755, -0.01267357636243105, 0.006008797325193882, + 0.049172427505254745, 0.0004247484903316945, 0.014969514682888985, 0.009938131086528301, + 0.03227432444691658, 0.009026315063238144, 0.0028158037457615137, 0.004437719937413931, + 0.020348569378256798, -0.013362357392907143, 0.00047763704787939787, 0.03930645436048508, + 0.029886549338698387, -0.017672160640358925, -0.01540246233344078, -0.04169423133134842, + 0.002702646655961871, -0.0799773558974266, 0.048385247588157654, 0.019351474940776825, + -0.007891465909779072, -0.021555576473474503, -0.03453090414404869, -0.018734851852059364, + 0.014759600162506104, 0.01597972773015499, -0.05646694824099541, -0.003447186667472124, + 0.023326728492975235, 0.04762430861592293, 0.06969155371189117, -0.012339025735855103, + -0.007773389108479023, -0.03132971003651619, -0.03802073001861572, 0.004283563699573278, + 0.026645997539162636, 0.06008797138929367, 0.005349535029381514, 0.027262620627880096, + -0.0008011182653717697, -0.010312040336430073, -0.020506003871560097, -0.0025894897989928722, + -0.002681327285245061, -0.010863065719604492, 0.029466722160577774, -0.014090497978031635, + 0.006333508528769016, -0.0013480434427037835, -0.02285442128777504, -0.005441372282803059, + 0.019731944426894188, 0.024625573307275772, -0.025858819484710693, 0.008226017467677593, + 0.03878166899085045, 0.021817969158291817, 0.002983079059049487, 0.03555423766374588, + -0.01785583607852459, -0.008317854255437851, -0.010561313480138779, 0.032825350761413574, + 0.024966683238744736, -0.048962511122226715, 0.018000151962041855, -0.03240552172064781, + 0.0010446517262607813, 0.03788953274488449, 0.0236678384244442, 0.061662327498197556, + 0.008927918039262295, 0.06344660371541977, -0.008350653573870659, -0.03996243700385094, + 0.02067655883729458, -0.04473798722028732, -0.012050393037497997, -0.03579039126634598, + -0.04027730971574783, 0.022880660369992256, -0.01932523585855961, 0.02449437603354454, + 0.029151849448680878, -0.05914335697889328, -0.031802017241716385, 0.0025074919685721397, + -0.01592724770307541, 0.052819687873125076, -0.027210142463445663, 0.020584722980856895, + -0.05145524442195892, -0.018695494160056114, -0.0030781966634094715, -0.012831011787056923, + -0.03781081363558769, 0.02650168165564537, -0.024769889190793037, -0.03439970687031746, + -0.019180919975042343, -0.030253900215029716, 0.017462246119976044, 0.015612376853823662, + 0.011335372924804688, -0.009085353463888168, -0.03534432128071785, 0.02412702515721321, + 0.005251137539744377, -0.004752591252326965, -0.05331823602318764, -0.06491599977016449, + -0.056624386459589005, -0.036315176635980606, 0.015914129093289375, 0.022828180342912674, + 0.020086174830794334, -0.0050149839371442795, 0.038729190826416016, -0.024153266102075577, + 0.01704241894185543, -0.023641599342226982, 0.05279345065355301, 0.022421471774578094, + 0.07751085609197617, -0.00015374583017546684, -0.020492885261774063, -0.0021877007093280554, + -0.0287057813256979, 0.027210142463445663, -0.028312193229794502, -0.014877676963806152, + 0.04911994934082031, 0.0301489420235157, -0.01698993891477585, 0.005024823825806379, + -0.006005517207086086, -0.0168718621134758, 0.002837123116478324, -0.030831163749098778, + -0.033612530678510666, 0.007130526937544346, -0.02183108776807785, 0.019640108570456505, + -0.0002525531454011798, -0.004896907135844231, -0.023746555671095848, 0.03051629289984703, + -0.042245253920555115, 0.015061351470649242, -0.023733437061309814, 0.013565712608397007, + 0.0010913903824985027, -0.025793220847845078, 0.036026544868946075, 0.006422066129744053, + -0.0236284788697958, 0.030122702941298485, -0.01064659096300602, 0.05951070785522461, + -0.023248009383678436, -0.015245026908814907, 0.04235021024942398, -0.04938234016299248, + -0.001712113618850708, 0.008035781793296337, 0.0253077931702137, 0.004887067712843418, + 0.0073666805401444435, -0.01731793023645878, 0.01267357636243105, -0.04804413765668869, + 0.01435289066284895, 0.010515394620597363, 0.028049800544977188, 0.02833843231201172, + -0.022801941260695457, -0.01597972773015499, -0.04221901670098305, 0.0014267612714320421, + 0.05292464420199394, -0.08475290238857269, 0.01279821339994669, -0.0013021246995776892, + -0.025045400485396385, -0.01372314803302288, 0.0011922477278858423, 0.0169112216681242, + -0.020256731659173965, -0.025858819484710693, 0.010744988918304443, -0.013880583457648754, + 0.004716512281447649, 0.02306433394551277, -0.00950518250465393, 0.017475366592407227, + 0.01372314803302288, 0.010640031658113003, 0.0074913171119987965, 0.02671159617602825, + -0.01267357636243105, -0.010712189599871635, 0.0026714876294136047, -0.03886038810014725, + 0.0008097280515357852, 0.06176728755235672, -0.004775550682097673, 0.008350653573870659, + -0.0019597469363361597, -0.0406184196472168, -0.04578755795955658, 0.03463586047291756, + -0.008193218149244785, 0.06832710653543472, -0.005388894118368626, 0.04796541854739189, + 0.023903992027044296, -0.010915543884038925, 0.05893344432115555, -0.016202760860323906, + 0.003548863809555769, 0.026554159820079803, 0.0007613493362441659, -0.035081930458545685, + 0.03657756745815277, 0.014628403820097446, -0.04891003295779228, -0.02637048438191414, + -0.020742157474160194, 0.05746404081583023, 0.0030781966634094715, -0.0026239289436489344, + 0.025648904964327812, -0.0016268359031528234, -0.016373315826058388, -0.024179505184292793, + -0.02736757881939411, 0.04909370839595795, 0.046627216041088104, -0.03893910348415375, + -0.021962285041809082, -0.02621304988861084, -0.02781364694237709, 0.03914901986718178, + -0.03439970687031746, -0.04891003295779228, -0.024022068828344345, -0.0370236374437809, + 0.013867463916540146, -0.016596350818872452, 0.01887916773557663, 0.03285158798098564, + -0.018157588317990303, 0.0400673933327198, 0.0074191587045788765, -0.04940858110785484, + -0.05163891986012459, -0.0639713853597641, -0.07992487400770187, 0.00896727666258812, + 0.0027862845454365015, -0.035449277609586716, -0.023116813972592354, -0.019312117248773575, + -0.020833995193243027, -0.0075831543654203415, -0.06622796505689621, 0.002469773171469569, + 0.06213463470339775, 0.005060902796685696, -0.012398064136505127, -0.013880583457648754, + 0.00010823706543305889, 0.026409843936562538, -0.005074022337794304, -0.04410824552178383, + 0.00833097379654646, -0.009144391864538193, -0.026344245299696922, 0.010023408569395542, + -0.035527996718883514, 0.022001642733812332, -0.03403235599398613, -0.022618267685174942, + -0.0014792399015277624, 0.022093480452895164, 0.009977489709854126, -0.00896727666258812, + 0.07525428384542465, -0.02067655883729458, -0.0169112216681242, -0.023562882095575333, + 0.02736757881939411, 0.018498698249459267, 0.010863065719604492, 0.03857175633311272, + 0.009583900682628155, 0.0067828563041985035, -0.031723301857709885, 0.0023238169960677624, + -0.005953038576990366, 0.01901036500930786, -0.05730660632252693, -0.05788386985659599, + -0.01412985660135746, -0.04429192095994949, -0.014982634223997593, -0.017226092517375946, + -0.036682527512311935, 0.010167724452912807, 0.030490053817629814, -0.022828180342912674, + 0.05198002979159355, 0.0052872165106236935, 0.05352814868092537, 0.04080209508538246, + -0.055522333830595016, -0.003130675060674548, -0.049172427505254745, 0.041221924126148224, + 0.004447559360414743, -0.019600749015808105, 0.031146036460995674, 0.02665911801159382, + -0.015822291374206543, -0.0009118152665905654, 0.004122848156839609, -0.05536489933729172, + 0.05221618339419365, -0.0012291467282921076, 0.00034726058947853744, 0.0538954995572567, + 0.024756768718361855, 0.028574585914611816, 0.007360120303928852, 0.003252031747251749, + -0.03636765480041504, -0.03009646385908127, -0.01435289066284895, -0.011394411325454712, + 0.007471637334674597, -0.016307717189192772, -0.008514649234712124, 0.03896534442901611, + 0.027787405997514725, 0.022762583568692207, 0.033927399665117264, -0.0011807680130004883, + 0.016242120414972305, 0.025858819484710693, -0.004352441988885403, 0.06276437640190125, + 0.009439583867788315, 0.01351323351264, 0.004001491703093052, 0.01105985976755619, + -0.021896686404943466, -0.04602371156215668, -0.01288349088281393, -0.03634141385555267, + 0.03256295621395111, 0.04287499934434891, 0.03332389518618584, -0.031067317351698875, + 0.0007162505644373596, -0.04688961058855057, -0.021844208240509033, 0.03416355326771736, + 0.03896534442901611, -0.010935223661363125, -0.021489977836608887, 0.01142721064388752, + 0.033927399665117264, 0.014825197868049145, -0.01822318695485592, -0.027918603271245956, + 0.033481333404779434, 0.06307925283908844, -0.00770123116672039, 0.01576981320977211, + -0.033481333404779434, -0.03699739649891853, 0.009282148443162441, 0.0186298955231905, + 0.05213746801018715, 0.0031962734647095203, 0.0010503915837034583, -0.03930645436048508, + 0.003906374331563711, 0.009754455648362637, 0.011558406986296177, 0.030988600105047226, + -0.01675378531217575, 0.019771303981542587, -0.0069074928760528564, -0.0045951553620398045, + -0.045682601630687714, -0.033481333404779434, -0.003794857067987323, -0.03941141068935394, + -0.018315022811293602, -0.06339412182569504, -0.028968174010515213, -1.984602386073675e-5, + 0.007123966701328754, 0.03576415032148361, -0.018708612769842148, -0.032169368118047714, + 0.013959301635622978, 0.033192701637744904, -0.010712189599871635, 0.030857402831315994, + 0.010272681713104248, 0.03849303722381592, 0.010705629363656044, -0.04628610610961914, + -0.07913769781589508, 0.03707611560821533, 0.06113754212856293, 0.00874424260109663, + 0.028653303161263466, -0.014484087005257607, -0.04442311450839043, 0.008829521015286446, + -0.05657190829515457, 0.008593367412686348, -0.0438196137547493, -0.006887813098728657, + 0.09094537794589996, 0.04219277575612068, -0.030201422050595284, -0.017685281112790108, + 0.007019009906798601, 0.010108686052262783, 0.027839886024594307, 0.0042146858759224415, + -0.020755277946591377, 0.007399479392915964, -0.036630045622587204, 0.043478500097990036, + -0.008442491292953491, -0.016740666702389717, 0.014917035587131977, -0.011709282174706459, + -0.047650549560785294, 0.006356467492878437, -0.015507419593632221, -0.02399582974612713, + -0.03539679944515228, 0.012050393037497997, -0.03723355010151863, -0.0008052181801758707, + -0.05040567368268967, 0.033560048788785934, -0.012378384359180927, -0.015035112388432026, + 0.04080209508538246, -0.017501605674624443, 0.0703737735748291, 0.04828029125928879, + 0.02142437919974327, -0.03964756429195404, -0.03502945229411125, 0.0014849797589704394, + 0.0015210587298497558, -0.040487222373485565, 0.008881999179720879, -0.004234365187585354, + -0.020571602508425713, 0.004047410096973181, 0.027997320517897606, 0.03985748067498207, + 0.05087798088788986, 0.01752784475684166, 0.022920018061995506, 0.03337637707591057, + 0.033192701637744904, 0.04148431494832039, 0.0021827807649970055, -0.011879838071763515, + 0.025124119594693184, 0.07173821330070496, 0.03277287259697914, -0.0285483468323946, + -0.03117227554321289, 0.005051062908023596, 0.020781517028808594, 0.005352814681828022, + 0.0023582561407238245, 0.04715200141072273, 0.01130257360637188, 0.019968098029494286, + -0.02904689311981201, 0.004762431140989065, -0.019194040447473526, -0.04862140119075775, + -0.01752784475684166, 0.000317126396112144, 0.027997320517897606, 0.03224808722734451, + -0.0033356696367263794, 0.025793220847845078, 0.009957809932529926, 0.006044876296073198, + 0.00708460807800293, 0.02059784159064293, 0.04111696407198906, 0.005064182914793491, + -0.0438983291387558, -0.034216031432151794, 0.023208651691675186, -0.028023559600114822, + -0.01159120537340641, -0.050274476408958435, -0.02744629606604576, -0.03195945546030998, + 0.03765337914228439, -0.03198569267988205, 0.0009396945242770016, -0.003680060151964426, + 0.042612604796886444, 0.044003285467624664, -0.01924651861190796, -0.03605278208851814, + -0.04767678678035736, -0.009183751419186592, -0.0055988081730902195, -0.03185449540615082, + -0.014142977073788643, 0.023208651691675186, -0.025281554087996483, -0.005818562116473913, + -0.017947673797607422, -0.05541737750172615, 0.0406184196472168, 0.027839886024594307, + -0.0013062246143817902, -0.0060514360666275024, -0.011341932229697704, 0.007373240310698748, + 0.007989863865077496, -0.0572541281580925, 0.002435334026813507, -0.03825688362121582, + 0.0023434965405613184, 0.03426850959658623, -0.0040900493040680885, 0.016478274017572403, + -0.02092583291232586, -6.303578993538395e-5, 0.011748641729354858, -0.011263214983046055, + -0.025701383128762245, 0.015664855018258095, 0.011420650407671928, -0.012148790992796421, + -0.002699366770684719, 0.02318241074681282, 0.01851181872189045, 0.022631386294960976, + -0.01880045048892498, -0.014024900272488594, 0.002605889458209276, -0.0020171452779322863, + -0.007425718940794468, 0.008153858594596386, -0.0041982862167060375, 0.0070386892184615135, + -0.023694077506661415, -0.02555706724524498, -0.03584286943078041, -0.020138654857873917, + -0.026436083018779755, 0.013683789409697056, 0.024113906547427177, 0.018656134605407715, + -0.0337437242269516, -0.003545583924278617, -0.03416355326771736, -0.0029453602619469166, + -0.019561389461159706, 0.034557145088911057, -0.03875542804598808, -0.041012007743120193, + 0.02497980371117592, -0.03883414715528488, 0.006477824412286282, 0.0047427513636648655, + 0.0108565054833889, -0.032536718994379044, 0.00023881852393969893, 0.02944048121571541, + -0.02839091047644615, 0.01876109093427658, 0.03096236102283001, 0.023536641150712967, + 0.0011545286979526281, 0.030542531982064247, -0.0037784576416015625, -0.0015915768453851342, + 0.017790237441658974, 0.015100711025297642, 0.017357289791107178, 0.010371078737080097, + 0.05237362161278725, -0.05051063001155853, -0.04211405664682388, -0.022723224014043808, + 0.004385241307318211, 0.003147074719890952, -0.016688188537955284, 0.006005517207086086, + -0.015376223251223564, 0.006881253328174353, 0.024599332362413406, 0.0027994040865451097, + 0.02215907908976078, 0.021962285041809082, 0.02486172690987587, -0.014549685642123222, + 0.01982378214597702, 0.02563578449189663, 0.005880880635231733, -0.006359747610986233, + -0.013880583457648754, -0.007930825464427471, 0.03526560589671135, -0.0012152070412412286, + 0.037627141922712326, -0.008107940666377544, -0.00016409804811701179, -0.027866125106811523, + -0.0037554982118308544, 0.00312247546389699, -0.0436621755361557, 0.0029551999177783728, + -0.020020578056573868, 0.003258591750636697, -0.027105186134576797, -0.037128593772649765, + -0.001999105792492628, -0.03746970370411873, -0.01449720747768879, 0.01945643313229084, + 0.011466569267213345, 0.016268359497189522, -0.02928304672241211, -0.01708177663385868, + -0.006586061324924231, 0.00821289699524641, -0.016360197216272354, -0.0058710407465696335, + 0.024428777396678925, -0.06386642903089523, 0.016766905784606934, -0.029729114845395088, + -0.006750056985765696, 0.002696086885407567, -0.04767678678035736, 0.016898101195693016, + -0.016858743503689766, 0.0023041374515742064, -0.04324234649538994, -0.037574660032987595, + -0.046469781547784805, 0.025504589080810547, -0.032169368118047714, 0.017186734825372696, + 0.007812748663127422, 0.017029298469424248, 0.014208574779331684, 0.054157890379428864, + -0.008914798498153687, -0.015153189189732075, -0.023746555671095848, 0.03607902303338051, + 0.019640108570456505, -0.06460113078355789, -0.005156020168215036, 0.03146090731024742, + 0.0038079768419265747, 0.03862423449754715, -0.00043827813351526856, -0.03489825502038002, + -0.008534329012036324, 0.04602371156215668, -0.01048259623348713, -0.011578085832297802, + -0.010023408569395542, 0.024887965992093086, -0.0040670898742973804, -0.029912788420915604, + -0.045813798904418945, -0.021161986514925957, 0.009656058624386787, -0.007930825464427471, + 0.03731226921081543, -0.023930231109261513, -0.02441565878689289, -0.006736937444657087, + -0.008626165799796581, 0.04518405348062515, 0.0535806268453598, 0.023116813972592354, + -0.017868956550955772, 0.03314022347331047, 0.01416921615600586, -0.019430194050073624, + -0.0775633379817009, 0.0032126728910952806, -0.04715200141072273, 0.002135222079232335, + -0.02461245283484459, 0.006789416074752808, 0.012181589379906654, 0.006208871491253376, + -0.005949758924543858, 0.021083269268274307, 0.00941990502178669, 0.013152443803846836, + 0.057201649993658066, 0.0021860606502741575, 0.02273634448647499, -0.03644637390971184, + -0.019141560420393944, 0.030621249228715897, -0.009977489709854126, 0.0027174062561243773, + 0.013801866210997105, -0.010941782966256142, 0.00395229272544384, -0.01609780453145504, + 0.028889456763863564, -0.010987701825797558, -0.027105186134576797, 0.03353381156921387, + -0.02617369033396244, 0.010954903438687325, 0.005165860056877136, -0.02133254148066044, + 0.03287782892584801, 0.019810663536190987, 0.03878166899085045, 0.020624080672860146, + 0.031880736351013184, -0.005113381426781416, -0.03161834180355072, -0.006940291728824377, + 0.03875542804598808, 0.006162953097373247, 0.005939919035881758, -0.020296089351177216, + 0.008691764436662197, 0.04109072685241699, -0.01986314170062542, -0.03466210141777992, + -0.01638643629848957, 0.0473356768488884, -0.030201422050595284, 0.011433769948780537, + -0.039017822593450546, 0.012240627780556679, -0.05263601243495941, -0.01584853045642376, + -0.052898406982421875, 0.013565712608397007, -0.027656210586428642, 0.021358780562877655, + -0.022946257144212723, -0.007248603738844395, -0.02768244966864586, 0.020938951522111893, + 0.0009347746381536126, -0.012745734304189682, -0.005270817317068577, -0.010141485370695591, + 0.025124119594693184, 0.01478583924472332, 0.006894373334944248, -0.025950657203793526, + -0.0020466644782572985, 0.009150952100753784, -0.022054122760891914, -0.012634217739105225, + -0.016320837661623955, -0.03600030392408371, -0.01332955900579691, -0.006723817903548479, + -0.0012947448994964361, -0.00790458545088768, 0.02661975845694542, 0.03563295304775238, + 0.04256012663245201, -0.03030637837946415, -0.006264630239456892, 0.014011779800057411, + -0.022434592247009277, 0.005920239724218845, -0.05051063001155853, 0.006776296533644199, + 0.0017662320751696825, -0.04111696407198906, 0.003565263468772173, -0.043268587440252304, + -0.008409691974520683, 0.020414166152477264, 0.027183903381228447, -0.011000821366906166, + -0.005165860056877136, -0.024953562766313553, 0.01621588133275509, 0.005825121887028217, + -0.05966814234852791, 0.03153962641954422, 0.0004011741257272661, 0.039463888853788376, + 0.028810739517211914, -0.01117793656885624, 0.014602163806557655, 0.02891569584608078, + 0.022552669048309326, -0.02928304672241211, 0.012188149616122246, -0.04360969737172127, + 0.018603656440973282, 0.018288783729076385, 0.033560048788785934, -0.04481670632958412, + -0.012975328601896763, -0.017619682475924492, -0.02040104754269123, -0.009754455648362637, + -0.04295371472835541, -0.004103168845176697, -0.006379426922649145, 0.004513157531619072, + -0.014024900272488594, 0.0037325387820601463, -0.02281506173312664, -0.02134566195309162, + 0.04206157848238945, -0.016452034935355186, -0.025950657203793526, -0.034058596938848495, + 0.0005686545628122985, 0.012253748252987862, -0.03568543121218681, -0.011223855428397655, + -0.005592248402535915, -0.010253001935780048, 0.008409691974520683, 0.008672084659337997, + -0.022093480452895164, -0.020086174830794334, -0.023313608020544052, -0.00790458545088768, + -0.025819459930062294, -0.00970853678882122, 0.04985464736819267, 0.0024828927125781775, + -0.01003652811050415, -0.0201124157756567, 0.006549982354044914, -0.011748641729354858, + 0.04242892935872078, -0.009328067302703857, 0.016333958134055138, 0.02818099595606327, + -0.0012594858417287469, 0.030647490173578262, -0.004985464736819267, -0.010476035997271538, + 0.0006043236353434622, -0.012594858184456825, -0.025281554087996483, 0.01022020261734724, + -0.0201124157756567, -0.020584722980856895, -0.01698993891477585, 0.03736474737524986, + 0.00597927812486887, 0.01159120537340641, 0.0018810289911925793, 0.04914618656039238, + 0.028285954147577286, -0.03993619605898857, 0.044213201850652695, -0.020624080672860146, + -0.0043786815367639065, -0.02665911801159382, -0.025622665882110596, 0.038886625319719315, + -0.00876392237842083, 0.055102504789829254, 0.026186810806393623, 0.02096519246697426, + -0.01876109093427658, 0.06192472204566002, -0.007432278711348772, 0.02731509879231453, + -0.0005444652633741498, -0.033192701637744904, -0.03628893569111824, 0.030542531982064247, + -0.03752218186855316, 0.002837123116478324, 0.0029371604323387146, -0.016976820304989815, + -0.03167081996798515, -0.00037144991802051663, -0.013710028491914272, -0.012870371341705322, + 0.02555706724524498, -0.018419981002807617, -0.002135222079232335, -0.012155350297689438, + 0.06685771048069, -0.009590459987521172, 0.0268296729773283, -0.02244771085679531, + -0.019482672214508057, 0.0369449183344841, -0.01412985660135746, -0.006687738932669163, + -0.02134566195309162, 0.02395647019147873, 0.028154756873846054, 0.0033684687223285437, + -0.04754558950662613, 0.040775854140520096, -0.015166308730840683, 0.006284309551119804, + -0.0010471115820109844, 0.010823706164956093, 0.05009080097079277, -0.0040670898742973804, + -0.022959377616643906, -0.03765337914228439, 0.012234068475663662, -0.004814909305423498, + -0.013801866210997105, 0.01895788684487343, -0.013080285862088203, -0.005093702115118504, + -0.04185166582465172, 0.010659711435437202, 0.0038965344429016113, -0.0021713010501116514, + -0.03484577685594559, -0.010043087415397167, 0.028233474120497704, 0.030699968338012695, + -0.0016596349887549877, -0.03841431811451912, -0.010180843994021416, 0.008593367412686348, + -0.019548270851373672, -0.005575848743319511, 0.010298920795321465, 0.03568543121218681, + -0.014943274669349194, -0.029388003051280975, -0.013388597406446934, -0.005529929883778095, + 0.03146090731024742, 0.042166538536548615, 0.00854088831692934, 0.014864557422697544, + 0.03628893569111824, -0.018616775050759315, -0.024389419704675674, -0.019180919975042343, + -0.00675661675632, -0.0008863959810696542, 0.014366010203957558, -0.011683043092489243, + -0.0016071564750745893, 0.02113574743270874, 0.010312040336430073, -0.009052555076777935, + 0.024271342903375626, 0.022513309493660927, 0.03621022030711174, -0.009610139764845371, + -0.045525167137384415, -0.002822363516315818, -0.013427956029772758, 0.03644637390971184, + -0.005293776281177998, 0.01868237368762493, -0.03146090731024742, -0.007235483732074499, + 0.014077378436923027, -0.03248424082994461, 0.0026829673442989588, -0.06155737116932869, + 0.008265376091003418, 0.018734851852059364, 0.011551846750080585, 0.023812154307961464, + -0.00814729928970337, 0.0022483791690319777, 0.003742378670722246, -0.002938800258561969, + -0.02040104754269123, 0.022539548575878143, -0.020020578056573868, 0.023077454417943954, + 0.008206337690353394, 0.02875826135277748, 0.010377638973295689, -0.022106600925326347, + -0.0030798364896327257, -0.005103541538119316, -0.020296089351177216, 0.02744629606604576, + 0.0570966936647892, 0.034425947815179825, -0.00227789836935699, 0.011847038753330708, + 0.014484087005257607, -0.005920239724218845, -0.044055767357349396, -0.01048259623348713, + 0.005018264055252075, -0.007123966701328754, 0.011866718530654907, 0.012260307557880878, + 0.02330048754811287, 0.00044483793317340314, 0.05192755162715912, -0.018157588317990303, + -0.023772794753313065, -0.012955648824572563, -9.7013617050834e-5, 0.018000151962041855, + -0.009977489709854126, 0.007438838481903076, -0.008094820193946362, 0.024966683238744736, + 0.011446889489889145, -0.010784347541630268, 0.004778830334544182, -0.029151849448680878, + 0.004001491703093052, -0.021371901035308838, -0.01128289382904768, 0.01569109410047531, + 0.017960792407393456, -0.02547834999859333, -0.02568826451897621, 0.018078869208693504, + 0.01191919669508934, -0.020794635638594627, 0.0602978840470314, 0.026344245299696922, + 0.034872014075517654, -0.020243611186742783, 0.002141781849786639, -0.025176597759127617, + 0.006412226241081953, -0.0070386892184615135, -0.03972628340125084, -0.017173614352941513, + -0.015126950107514858, 0.004926426336169243, 0.0435047410428524, 0.017226092517375946, + 0.0013882223283872008, 0.023851513862609863, -0.01563861593604088, 0.005421692971140146, + 0.01150592789053917, -0.01592724770307541, 0.004936266224831343, 0.022631386294960976, + 0.01405113935470581, 0.026593519374728203, -0.03739098832011223, 0.005972717888653278, + 0.03306150436401367, -0.0367874838411808, -0.027498774230480194, -0.00856056809425354, + -0.0012053673854097724, -0.017947673797607422, -0.01394618209451437, -0.009019755758345127, + -0.050274476408958435, 0.00015651325520593673, 0.001838390133343637, 0.01405113935470581, + -0.0029191209468990564, 0.003273351350799203, 0.024638691917061806, -0.023366086184978485, + 0.0013382036704570055, 0.005943198688328266, 0.008593367412686348, 0.0036243018694221973, + -0.002117182593792677, -0.02187044732272625, 0.02503228187561035, -0.015153189189732075, + -0.0026714876294136047, -0.019718825817108154, -0.0038571753539144993, -0.007012450136244297, + -0.02825971320271492, 0.016005966812372208, -0.002405814826488495, -0.008153858594596386, + -0.019508911296725273, -0.015546778216958046, 0.01752784475684166, -0.00035648533958010375, + 3.320910036563873e-5, -0.0023992550559341908, 0.005956318695098162, -0.004860828164964914, + -0.013631310313940048, 0.00734044099226594, 0.0018154308199882507, 0.019758185371756554, + -0.02076839655637741, -0.0032077529467642307, 0.001958106877282262, 0.05302960425615311, + 0.009393665008246899, 0.016898101195693016, -0.046627216041088104, 0.017094897106289864, + 0.023405445739626884, 0.048673879355192184, 0.011230415664613247, -0.003302870551124215, + -0.03600030392408371, -0.002430414082482457, -0.011440330184996128, -0.014798958785831928, + 0.007307642139494419, -0.01982378214597702, 0.00591695960611105, 0.005497131031006575, + -0.044501833617687225, 0.015415581874549389, -0.003827656153589487, -0.01932523585855961, + 0.006572941783815622, 0.0015423782169818878, -0.020020578056573868, 0.011578085832297802, + -0.015310624614357948, 0.015363103710114956, 0.007045248989015818, -0.02661975845694542, + -0.02068967930972576, 0.026632878929376602, 0.0038112567272037268, -0.025137238204479218, + 0.0017645921325311065, -0.02744629606604576, -0.0201124157756567, 0.01384122483432293, + 0.012115991674363613, -0.017055537551641464, -0.025425869971513748, -0.008468730375170708, + 0.005792323034256697, -0.0029027212876826525, 0.011820799671113491, -0.001119269640184939, + -0.032667916268110275, -0.007615953683853149, -0.04193038493394852, -0.012942529283463955, + -0.010928663425147533, -0.013696908950805664, 0.01056787371635437, 0.011617445386946201, + -0.03059501014649868, -0.03169706091284752, 0.03568543121218681, -0.022880660369992256, + -0.0005563549348153174, 0.0032257926650345325, -0.016268359497189522, -0.03243176266551018, + 0.02752501331269741, 0.014641523361206055, -0.010508835315704346, 0.019954979419708252, + -0.01949579082429409, 0.01306716538965702, 0.016937460750341415, -0.02928304672241211, + 0.007589714135974646, -0.014877676963806152, -0.017186734825372696, 0.00782586820423603, + 0.004336042329668999, -0.04439687728881836, -0.02428446151316166, -0.018039511516690254, + -0.009393665008246899, -0.003384868148714304, -0.00983317382633686, 0.015310624614357948, + 0.027183903381228447, 0.00506746256724, -0.01716049574315548, -0.043478500097990036, + -0.010725309140980244, -0.006300709210336208, -0.02654104121029377, -0.07252539694309235, + -0.002996198832988739, -0.014707121066749096, -0.0303850956261158, 0.011361612007021904, + 0.028023559600114822, 0.0010840105824172497, -0.01716049574315548, 0.02920432761311531, + -0.0201124157756567, 0.009780694730579853, -0.03707611560821533, 0.00367022049613297, + 0.0013054045848548412, -0.02162117324769497, 0.002661647740751505, -0.028285954147577286, + 0.00968885701149702, -0.0067828563041985035, -0.007497876882553101, 0.01588789001107216, + -0.017763998359441757, 0.009439583867788315, 0.014628403820097446, 0.008206337690353394, + -0.00991189107298851, -0.00010239472612738609, 0.007812748663127422, 0.013959301635622978, + -0.02314305305480957, -0.026632878929376602, 0.0008888558950275183, -0.022592026740312576, + 0.017016177996993065, -0.013775626197457314, -0.019968098029494286, 0.022657625377178192, + -0.028600824996829033, 0.007373240310698748, 0.01286381110548973, -0.004732911940664053, + -0.02269698493182659, -0.009373986162245274, -0.020873354747891426, 0.020860234275460243, + 0.025976896286010742, 0.006776296533644199, -0.017212973907589912, -0.0031454346608370543, + 0.001977786421775818, -0.0014530005864799023, 0.006986210588365793, 0.00591695960611105, + -0.03235304355621338, 0.01097458228468895, 0.018013272434473038, -0.0017498325323686004, + 0.0006059635779820383, -0.009341186843812466, 0.012214388698339462, 0.014733361080288887, + -8.461145625915378e-5, 0.004723072052001953, 0.0025993294548243284, 0.0035390241537243128, + 0.01756720431149006, 0.0025878497399389744, 0.004119568504393101, -0.020374808460474014, + 0.02547834999859333, 0.00198106630705297, -0.024717409163713455, -0.021240703761577606, + -0.030726207420229912, -0.0012307866709306836, 0.01716049574315548, 0.003975252155214548, + 0.002469773171469569, -0.012135671451687813, 0.026265528053045273, 0.005903840065002441, + -0.024586213752627373, -0.03592158481478691, -0.01332955900579691, 0.0017629521898925304, + 0.01719985343515873, -0.013165563344955444, -0.010193963535130024, -0.0019285876769572496, + 0.010423557832837105, -0.003850615583360195, -0.028207235038280487, -0.05405293405056, + -0.03867671266198158, -0.037705857306718826, -0.0006941111641936004, -0.0108565054833889, + -0.0032274324912577868, -0.02105702832341194, -0.01489079650491476, 0.016124043613672256, + 0.02518971636891365, 0.01613716222345829, 0.007753709796816111, 0.006399106699973345, + -0.02588505856692791, 0.012437422759830952, 2.0115079678362235e-5, 0.002968319458886981, + -0.03251047804951668, 0.012909729965031147, 0.007268283050507307, 0.017685281112790108, + -0.007681551855057478, -0.022749463096261024, -0.00983317382633686, -0.016648828983306885, + -0.024835485965013504, -0.042166538536548615, -0.018328143283724785, -0.00449347821995616, + 0.006789416074752808, -0.011879838071763515, -0.005290496628731489, 0.010449796915054321, + 0.005005144514143467, -0.03300902619957924, -0.011145138181746006, 8.090874871413689e-6, + 0.026895271614193916, 0.009846293367445469, -0.016491392627358437, 0.0058021629229187965, + 0.006576221901923418, 0.012660456821322441, 0.024599332362413406, -0.02256578765809536, + 0.02129318192601204, -0.012063512578606606, 0.0009651138680055737, -0.02702646702528, + 0.0014612004160881042, -0.023969590663909912, -0.002886321861296892, 0.015664855018258095, + 0.032956548035144806, 0.0203092098236084, -0.0009208350675180554, 0.01507447101175785, + -0.04738815501332283, -0.006789416074752808, -0.015861650928854942, 0.030699968338012695, + 0.037049874663352966, 0.009118152782320976, 0.005165860056877136, 0.021765489131212234, + -0.01986314170062542, -0.010954903438687325, 0.005493850912898779, 0.01818382740020752, + -0.003411107463762164, -0.018905406817793846, 0.016307717189192772, -0.015599257312715054, + 0.011105778627097607, -0.010915543884038925, 0.0335862897336483, -0.013552593067288399, + -0.009610139764845371, -0.008573687635362148, 0.01109921932220459, 0.01818382740020752, + 0.01818382740020752, 0.010987701825797558, 0.003712859470397234, -0.016858743503689766, + 0.001557957730256021, -0.029965268447995186, -0.008613046258687973, 0.007143646478652954, + -0.01224718801677227, -0.004683712963014841, -0.01654387079179287, 0.03783705458045006, + 0.02326112985610962, -0.018170706927776337, -0.02486172690987587, 0.009190310724079609, + 0.018275665119290352, -0.01478583924472332, -0.00991189107298851, 0.011755201034247875, + -0.0013726428151130676, 0.01540246233344078, -0.01638643629848957, 0.00680909538641572, + 0.010797467082738876, -0.02781364694237709, 0.040565941482782364, -0.02825971320271492, + 0.0036472610663622618, 0.020702797919511795, 0.02862706407904625, -0.008186657913029194, + 0.0005723444628529251, -0.016780024394392967, 0.02167365327477455, -0.004040850326418877, + -0.04140559583902359, -0.024914205074310303, 0.018196946009993553, -0.020624080672860146, + 0.03195945546030998, 0.012581738643348217, -0.029755353927612305, 0.01588789001107216, + -0.014090497978031635, 0.005736564286053181, -0.003384868148714304, 0.028076039627194405, + 0.0026091693434864283, 0.013277079910039902, -0.016635708510875702, 0.0018039511051028967, + -0.022670745849609375, 0.02694774977862835, 0.012752294540405273, -0.011932316236197948, + 0.0016383156180381775, 0.02789236418902874, 0.014444728381931782, -0.006582781672477722, + -0.009373986162245274, 0.014392250217497349, -5.124861218064325e-6, 0.001425941358320415, + 6.59825855109375e-6, 0.018341263756155968, 0.0013308238703757524, -0.021450618281960487, + 0.04287499934434891, -0.00962325930595398, -0.027734927833080292, -0.026737835258245468, + 0.021398140117526054, 0.016491392627358437, -0.028128517791628838, -0.03127723187208176, + 0.013178682886064053, 0.021148866042494774, -0.01986314170062542, 0.004552516620606184, + -0.008573687635362148, -0.008914798498153687, -0.010987701825797558, 0.004122848156839609, + -0.0169112216681242, -0.04132688045501709, -0.027131425216794014, 0.010705629363656044, + -0.01351323351264, -0.05218994617462158, -0.00016266308375634253, 0.055679772049188614, + 0.007484757341444492, -0.006169512867927551, -0.018039511516690254, 0.00416548689827323, + -0.00035402539651840925, 0.020794635638594627, -0.025124119594693184, -0.02453373558819294, + -0.034425947815179825, -0.027393817901611328, -0.038073208183050156, -0.02482236735522747, + -0.012621098197996616, -0.01797391287982464, 0.0040506902150809765, -0.031880736351013184, + 0.01851181872189045, 0.0033881482668220997, 0.01822318695485592, -0.027918603271245956, + -0.02215907908976078, 0.008593367412686348, -0.011309133842587471, -0.007806188426911831, + -0.02068967930972576, -0.018367502838373184, -0.05171763896942139, -0.009000075981020927, + -0.01731793023645878, -0.029886549338698387, -0.03314022347331047, -0.03841431811451912, + 0.009203430265188217, -0.027577493339776993, 0.0005178159917704761, -0.0027502053417265415, + ], + index: 13, + }, + { + title: "Clovis culture", + text: 'The Clovis culture is a prehistoric Paleo-Indian culture, named after distinct stone tools found at sites near Clovis, New Mexico, in the 1920s and 1930s. The Clovis culture appears around 11,500\u201311,000 uncal RCYBP (uncalibrated radiocarbon years before present), at the end of the last glacial period, and is characterized by the manufacture of "Clovis points" and distinctive bone and ivory tools.', + vector: [ + -0.06872909516096115, -0.0008887971634976566, -0.02674921229481697, 0.011020402424037457, + -0.04705677554011345, -0.027977492660284042, 0.042880624532699585, -0.032617662101984024, + -0.004844882525503635, 0.031553152948617935, -0.008011115714907646, 0.019993670284748077, + -0.030270282179117203, -0.008434190414845943, 0.05205178260803223, 0.04389054328203201, + -0.022013509646058083, -0.004012381657958031, 0.005121245980262756, -0.008898206986486912, + -0.0004077207704540342, -0.04329004883766174, 0.017455225810408592, -0.022805066779255867, + 0.028059376403689384, 0.025957653298974037, -0.022040804848074913, -0.011695955879986286, + -0.04189800098538399, -0.014097926206886768, 0.04588308557868004, -0.009901302866637707, + 0.036657337099313736, 0.04375406727194786, -0.01892916113138199, 0.0113957105204463, + 0.026558145880699158, 0.006462118122726679, 0.026544498279690742, 0.00049813580699265, + -0.02107182703912258, 0.015749281272292137, 0.03630250319838524, 0.02692662924528122, + 0.00950552336871624, -0.0002761497744359076, 0.010958988219499588, -0.009382694959640503, + 0.01079521793872118, -0.03799479827284813, 0.0318806916475296, -0.0322355292737484, + -0.03971439227461815, -0.02664003148674965, 0.03597496077418327, -0.02391052059829235, + 0.01415251661092043, 0.04924038425087929, -0.028605278581380844, -0.032044462859630585, + -0.008420542813837528, 0.01174372248351574, 0.01281505636870861, -0.011061345227062702, + 0.03002462536096573, 0.04539177566766739, 0.030461346730589867, 0.012746818363666534, + 0.020744286477565765, 0.009826241061091423, 0.007860993035137653, 0.010993107222020626, + 0.04031488299369812, -0.00026889951550401747, -0.0028199264779686928, -0.007710869889706373, + -0.011518537998199463, -0.005673971958458424, -0.01838325895369053, 0.015872107818722725, + 0.0057046785950660706, 0.023391911759972572, 0.013238130137324333, 0.00938951876014471, + 0.023118961602449417, 0.057701870799064636, 0.002408793894574046, -0.05781105160713196, + 0.04672923684120178, -0.01619965024292469, 0.04842153191566467, -0.04050594940781593, + -0.035456351935863495, -0.0006120076286606491, -0.0003008859930559993, -0.009280338883399963, + 0.060485973954200745, 0.00711720110848546, -0.04762997478246689, 0.012972002848982811, + -0.03534717112779617, 0.04896743595600128, 0.03794020786881447, -0.04356300085783005, + -0.038950126618146896, -0.033791352063417435, 0.04924038425087929, 0.03239930048584938, + -0.0637613832950592, 0.03420077636837959, -0.03935955464839935, -0.016295183449983597, + 0.054754000157117844, 0.005179247818887234, 0.025711996480822563, -0.0037326067686080933, + -0.0010431851260364056, 0.0098057696595788, -0.022122690454125404, 0.012262330390512943, + -0.045173414051532745, 0.004387689754366875, 0.03897742182016373, 0.002964931773021817, + -0.05000464990735054, 0.016349773854017258, 0.047438908368349075, -0.006557651329785585, + -0.0024480305146425962, -0.011382062919437885, -0.030979953706264496, 0.012719523161649704, + 0.014793951995670795, -0.009457756765186787, 0.08728977292776108, -0.044518329203128815, + 0.012637637555599213, 0.004435455892235041, -0.020689696073532104, 0.03062511794269085, + -0.028605278581380844, 0.05270686373114586, -0.003527893451973796, 0.028687164187431335, + -0.028550690039992332, -0.03168962895870209, 0.014016040600836277, 0.026503555476665497, + -0.004142033401876688, -0.015244320966303349, -0.02273683063685894, -0.0181785449385643, + 0.0059639825485646725, -0.015817519277334213, -0.026448965072631836, -0.021153712645173073, + 0.0073833283968269825, -0.005438551306724548, 0.04727513715624809, -0.047957513481378555, + -0.018847275525331497, 0.05101456865668297, -0.006209638435393572, -0.012262330390512943, + 0.02528892271220684, -0.05126022547483444, -0.027308762073516846, -0.032017167657613754, + 0.004281920846551657, 0.03422807157039642, -0.01281505636870861, 0.04320816695690155, + 0.014712066389620304, -0.014657475985586643, -0.015694690868258476, 0.008038410916924477, + -0.033791352063417435, 0.02887823060154915, 0.023664863780140877, 0.025302570313215256, + -0.013784032315015793, 0.02749982662498951, -0.005151952616870403, -0.017960185185074806, + 0.027936549857258797, 0.03521069511771202, 0.001054273801855743, 0.049758993089199066, + 0.013224482536315918, -0.03531987592577934, 0.016213297843933105, -0.02127654105424881, + 0.02388322539627552, 0.020553220063447952, -0.006963666062802076, 0.014875836670398712, + 0.0028847523499280214, 0.021003590896725655, -0.042334720492362976, -0.010686037130653858, + 0.0029444603715091944, -0.05715596675872803, 0.01797383278608322, 0.07626254856586456, + 0.004084031563252211, 0.022573059424757957, -0.007444742135703564, 0.017728175967931747, + -0.049595221877098083, -0.0173733402043581, 0.03534717112779617, 0.025793882086873055, + 0.00708990590646863, 0.011006754823029041, 0.02093535289168358, -0.00711720110848546, + 0.023555682972073555, -0.014016040600836277, -0.033108972012996674, 0.027677245438098907, + 0.03122561052441597, 0.030242986977100372, -0.021699614822864532, -0.020034613087773323, + -0.06889286637306213, -0.0026851568836718798, -0.053143586963415146, 0.047384317964315414, + -0.005919627845287323, 0.01209855917841196, 0.01565374806523323, 0.0250296201556921, + 0.012958355247974396, 0.03062511794269085, 0.02299613319337368, 0.03935955464839935, + 0.017468873411417007, 0.027131343260407448, 0.013845446519553661, 0.04814857989549637, + 0.016377069056034088, -0.008004291914403439, -0.03531987592577934, -0.01248751487582922, + -0.03567471355199814, -0.015271616168320179, -0.03005192056298256, -0.032726842910051346, + -0.0455828420817852, -0.012630813755095005, 0.02208174765110016, 0.03444643318653107, + 0.006318818777799606, 0.08450566977262497, 0.0272678192704916, 0.005281604360789061, + 0.006953430362045765, -0.018874570727348328, 0.008625255897641182, 0.041161030530929565, + 0.015517272055149078, 0.0010679212864488363, -0.040014635771512985, 0.008748084306716919, + -0.02187703363597393, 0.01267175655812025, -0.022600354626774788, -0.02526162751019001, + -0.006762364413589239, -0.010617799125611782, -0.018601620569825172, -0.004592402838170528, + 0.022955190390348434, -0.03750348836183548, 0.0465654656291008, 0.017305102199316025, + 0.012794584967195988, 0.023978756740689278, 0.016786495223641396, 0.017878299579024315, + 0.008843616582453251, 0.04031488299369812, 0.021099122241139412, -0.018601620569825172, + -0.008761731907725334, 0.0010977754136547446, -0.054835882037878036, -0.038950126618146896, + 0.053007110953330994, -0.01708674058318138, -0.030979953706264496, 0.011839255690574646, + -0.028605278581380844, 0.00018530823581386358, -0.03354569524526596, 0.006137988530099392, + -0.03742160275578499, 0.005302075762301683, -0.021153712645173073, -0.007622160483151674, + 0.04667464643716812, -0.01927035115659237, 0.043972428888082504, -0.038813650608062744, + 0.09449568390846252, -0.005012065172195435, 0.016336126253008842, -0.008229476399719715, + -0.030952658504247665, -0.047957513481378555, -0.06032220274209976, -0.05491776764392853, + 0.006881780456751585, -0.0007237470126710832, 0.024824906140565872, 0.004636757541447878, + -0.0065201204270124435, 0.0041863881051540375, -0.01846514455974102, -0.005680795758962631, + -0.03234471008181572, -0.0006034779362380505, -0.047466203570365906, 0.0025384456384927034, + 0.04102455452084541, -0.04086078703403473, 0.00011323207581881434, -0.024238061159849167, + -0.05721055716276169, -0.002125607104972005, -0.029915444552898407, -0.013047064654529095, + 0.03676651790738106, -0.012153149582445621, -0.017823709174990654, 0.01645895279943943, + -0.03196257725358009, 0.043426524847745895, -0.007335561793297529, -0.007171791046857834, + 0.04080619663000107, 0.007356033194810152, 0.0455828420817852, 0.04473669081926346, + 0.018628915771842003, -0.013859094120562077, 0.021426664665341377, -0.04465480521321297, + 0.011593599803745747, -0.00475276168435812, 0.0006491119274869561, 0.03471938520669937, + -0.038295045495033264, -0.07740893959999084, -0.010181077755987644, -0.018219487741589546, + 0.05617334321141243, -0.018328668549656868, 0.007901935838162899, 0.05393514409661293, + -0.03002462536096573, 0.010604151524603367, 0.021481255069375038, -0.005424903705716133, + -0.0369848795235157, 0.00544878700748086, -0.02904200181365013, 0.008127120323479176, + -0.00555455544963479, 0.01019472535699606, -0.05278874933719635, -0.009771650657057762, + -0.049758993089199066, -0.0133882537484169, -0.012078087776899338, -0.017823709174990654, + 0.020225679501891136, 0.004807352088391781, 0.03073429875075817, -0.012050792574882507, + -0.010160606354475021, 0.07642631977796555, 0.08101189881563187, 0.06408892571926117, + 0.04877636954188347, -0.01065191812813282, -0.02648990787565708, 0.007963349111378193, + -0.0449550524353981, -0.05437186732888222, 0.0019464828073978424, -0.0449550524353981, + -0.001361343776807189, 0.027117695659399033, -0.015994936227798462, -0.037749141454696655, + -0.04154316335916519, 0.0024514424148947, -0.02434724196791649, 0.031553152948617935, + 0.0011003342224285007, 0.04547366127371788, 0.02062145806849003, 0.0272678192704916, + 0.04140668734908104, 0.021808795630931854, -0.005496553611010313, 0.023187199607491493, + 0.015530919656157494, -0.04318087175488472, 0.008249947801232338, 0.02614871971309185, + 0.021890681236982346, 0.009942245669662952, -0.02062145806849003, -0.008468309417366982, + -0.04664735123515129, 0.03848611190915108, -0.023951461538672447, 0.0816669836640358, + -0.00445251539349556, -0.022491173818707466, -0.024319946765899658, 0.03783102706074715, + -0.02520703710615635, 0.03190798684954643, 0.002705628052353859, -0.005022300872951746, + 0.012078087776899338, 0.012910588644444942, -0.042307425290346146, 0.05639170482754707, + 0.02893282100558281, 0.09657011181116104, 0.02004826068878174, -0.046347104012966156, + -0.03245389088988304, -0.012310096062719822, -0.02156314067542553, -0.010153782553970814, + 0.013183539733290672, 0.011962084099650383, -0.024156175553798676, -0.015257968567311764, + -0.04945874586701393, -0.04380865767598152, -0.00820218212902546, 0.019980022683739662, + 0.007976996712386608, 0.02107182703912258, 0.012439748272299767, 0.05112374946475029, + 0.001148100709542632, -0.0318806916475296, -0.013340487144887447, 0.029860854148864746, + 0.008427366614341736, -0.01950235851109028, 0.055354490876197815, 0.016104117035865784, + 0.007758636027574539, -0.024265356361865997, 0.01685473322868347, -0.01765993796288967, + -0.015203378163278103, -0.02296883799135685, 0.031034544110298157, 0.03630250319838524, + -0.027417941018939018, -0.014698418788611889, 0.020007317885756493, -0.014684771187603474, + -0.049595221877098083, 0.026858391240239143, -0.000957034935709089, -0.05448104813694954, + 0.020867114886641502, -0.017496168613433838, -0.0058923326432704926, -0.013524728827178478, + -0.00911656767129898, -0.007854169234633446, -0.008618432097136974, 0.07140401750802994, + 0.0027892193756997585, 0.04588308557868004, -0.04984087869524956, -0.003449419979006052, + 0.01134112011641264, 0.009007387794554234, 0.021740557625889778, 0.010283433832228184, + 0.022873304784297943, 0.0024241472128778696, -0.045692019164562225, -0.02073063887655735, + -0.014398172497749329, 0.007772283628582954, -0.01682743802666664, -0.009430461563169956, + -0.02557552233338356, 0.011648190207779408, 0.01877903752028942, 0.0235966257750988, + -0.012446572072803974, 0.01583116687834263, 0.03794020786881447, 0.029697084799408913, + 0.05813859403133392, 0.017468873411417007, -0.0602676123380661, 0.02004826068878174, + -0.025984948500990868, -0.0424439013004303, 0.005902568344026804, 0.006489413324743509, + 0.06583581119775772, 0.015312558971345425, -0.047957513481378555, -0.006056103389710188, + 0.04096996784210205, 0.009409990161657333, -0.041734229773283005, -0.04929497465491295, + 0.015640100464224815, 0.014070631004869938, 0.021453959867358208, 0.017646290361881256, + 0.04009652137756348, 0.011423004791140556, -0.002163137774914503, 0.014657475985586643, + -0.00202836818061769, 0.008522898890078068, 0.04596497118473053, -0.023664863780140877, + 0.013135773129761219, -0.00881632138043642, -0.04148857295513153, -0.027936549857258797, + 0.023269085213541985, -0.006342702079564333, 0.038376931101083755, -0.022668592631816864, + 0.014439115300774574, -0.005404432769864798, -0.05748350918292999, 0.0028028669767081738, + 0.006769188214093447, -0.022927895188331604, -0.007956525310873985, 0.04877636954188347, + -0.0027704541571438313, 0.03016110137104988, 0.05371678248047829, 0.021262893453240395, + 0.027199581265449524, -0.0026766271330416203, -0.011150053702294827, 0.01508055068552494, + 0.0007531745359301567, -0.030461346730589867, 0.012132678180932999, 0.0028676928486675024, + -0.012985650449991226, -0.009307634085416794, 0.011491242796182632, 0.022013509646058083, + 0.0025179742369800806, 0.010426733642816544, 5.730907651013695e-5, 0.026967572048306465, + -0.018819980323314667, 0.00766310328617692, 0.04135209694504738, -0.03065241314470768, + -0.029424132779240608, -0.019543301314115524, -0.02494773454964161, 0.03354569524526596, + -0.01276046596467495, 0.0026561557315289974, -0.021713262423872948, -0.01711403578519821, + -0.02789560705423355, 0.02331002801656723, -0.04255308210849762, 0.028277738019824028, + 0.02734970487654209, -0.02044404111802578, -0.011463947594165802, 0.00851607508957386, + -0.010269786231219769, 0.022286459803581238, 0.01989813894033432, 0.020976295694708824, + -0.017250511795282364, 0.013900036923587322, -0.031471267342567444, -0.0028438097797334194, + 0.040560539811849594, 0.011859727092087269, 0.014834894798696041, 0.025684701278805733, + 0.032644957304000854, -0.0006930400268174708, 0.010065073147416115, -0.045118823647499084, + 0.012583047151565552, -0.005414668004959822, -0.011409357190132141, -0.05841154232621193, + 0.010754275135695934, -0.019857196137309074, 0.014166164211928844, -0.014957722276449203, + 0.0055067893117666245, 0.0033368277363479137, 0.033818647265434265, -0.017537111416459084, + 0.038322340697050095, 0.0659995824098587, 0.0022194338962435722, 0.03335462883114815, + 0.04326275736093521, 0.00368142849765718, -0.013258601538836956, 0.0027329232543706894, + -0.01505325548350811, 0.013354134745895863, 0.010454028844833374, -0.03119831532239914, + -0.015558214858174324, 0.02414252795279026, -0.006219874136149883, -0.026448965072631836, + -0.02273683063685894, -0.033764056861400604, -0.045173414051532745, -0.05442645773291588, + -0.04610144719481468, -0.034937746822834015, -0.04151586815714836, -0.03534717112779617, + 0.00893232598900795, 0.04031488299369812, 0.0436994768679142, 0.017141330987215042, + 0.003940732218325138, -0.009191629476845264, -0.008488780818879604, -0.011177348904311657, + -0.016131412237882614, 0.013340487144887447, 0.01532620657235384, 0.0051314812153577805, + 0.06720057129859924, -0.018970103934407234, -0.0004533547908067703, 0.010133311152458191, + -0.007458389736711979, -0.0030997013673186302, -0.004312627948820591, -0.024251708760857582, + -0.018396906554698944, -0.002970049623399973, 0.010140134952962399, -0.0235966257750988, + 0.0029103416018188, 0.03690299391746521, -0.011927965097129345, 0.01420710701495409, + -0.014875836670398712, -0.020007317885756493, 0.0013749913778156042, 0.0010030954144895077, + -0.018315020948648453, 0.012978826649487019, 0.03862258791923523, -0.009014211595058441, + -0.027158638462424278, 0.010365319438278675, 0.022927895188331604, -0.025398103520274162, + -0.004397925455123186, -0.01705944538116455, 0.03935955464839935, -0.05117833986878395, + -0.04724784195423126, -0.005360078066587448, 0.010740627534687519, 0.009273515082895756, + -0.01614505983889103, -0.011593599803745747, -0.01529891137033701, -0.01281505636870861, + -0.045664723962545395, -0.02489314414560795, 0.047384317964315414, 0.017127683386206627, + -0.053034406155347824, 0.02107182703912258, 0.022777773439884186, -0.0328633189201355, + 0.015872107818722725, 0.010638270527124405, -0.007185438647866249, -0.007478861138224602, + -0.02365121617913246, -0.02603953890502453, 0.013272249139845371, -0.00962152797728777, + 0.0019481887575238943, -0.016554486006498337, -0.02411523275077343, -0.03815856948494911, + 0.010030954144895077, 0.018833627924323082, 0.0235966257750988, 0.02471572533249855, + -0.018342316150665283, 0.02898741140961647, 0.048476122319698334, 0.02015744149684906, + -0.0008333539590239525, 0.04473669081926346, 0.007055786903947592, -0.027417941018939018, + -0.05494506284594536, 0.004906296730041504, -0.03294520080089569, 0.00808617752045393, + 0.03559282794594765, 0.010358495637774467, 0.03515610843896866, -0.012562575750052929, + 0.01366120483726263, 0.026912981644272804, 0.039523325860500336, -0.029260361567139626, + 0.021754205226898193, -0.021140065044164658, -0.0005292693385854363, -0.016936618834733963, + -0.012692227959632874, -0.03750348836183548, -0.004633345641195774, 0.005766092799603939, + -0.030979953706264496, -0.026448965072631836, 0.017127683386206627, -0.017646290361881256, + 0.01820584014058113, 0.01752346381545067, -0.021890681236982346, -0.04045135900378227, + 0.012084911577403545, -0.03242659568786621, 0.016308831050992012, 0.011839255690574646, + -0.02351474016904831, -0.011327472515404224, -0.010822512209415436, -0.0004533547908067703, + 0.06752811372280121, -0.033108972012996674, 0.015667395666241646, 0.015803871676325798, + -0.025220684707164764, 0.03398241847753525, 0.024265356361865997, 0.000556137936655432, + 0.020321212708950043, -0.006574710365384817, -0.00041518427315168083, 0.040041930973529816, + -0.0017605348257347941, 0.015257968567311764, -0.012248682789504528, -0.061686959117650986, + -0.04353570565581322, 0.05682842805981636, 0.028141262009739876, -3.009393003594596e-5, + 0.0002050332259386778, -0.02466113492846489, -0.03813127428293228, 0.010842983610928059, + 0.00835912860929966, 0.008345481008291245, -0.011163701303303242, 0.006724833510816097, + -0.003886141814291477, -0.021440312266349792, -0.00010342289169784635, -0.00662247696891427, + 0.010160606354475021, -0.010385790839791298, -0.06943877041339874, -0.005472670309245586, + 0.0034579497296363115, -0.018683506175875664, -0.01209855917841196, -0.013224482536315918, + 0.023760396987199783, -0.015339854173362255, 0.02528892271220684, -0.054262686520814896, + -0.043945133686065674, -0.01147077139467001, 0.010822512209415436, 0.05207907781004906, + 0.023432854562997818, -0.04806669428944588, -0.0035722479224205017, 0.0003546232474036515, + 0.02526162751019001, -0.015517272055149078, -0.019802605733275414, 0.017182273790240288, + -0.023528387770056725, -0.04866718873381615, -0.001799771562218666, -0.0013852270785719156, + 0.013285896740853786, 0.036575451493263245, -0.011552657000720501, -0.00923257227987051, + -1.944510222529061e-5, -0.0016701198183000088, -0.023419206961989403, 0.0003162394859828055, + -0.05065973103046417, -0.0040499125607311726, 0.02956060878932476, 0.019925432279706, + -0.042307425290346146, 0.0098057696595788, 0.011989378370344639, 0.016650019213557243, + 0.004885825328528881, -0.045091528445482254, -0.00811347272247076, -0.009021035395562649, + -0.002529915887862444, 0.03185339644551277, -0.043945133686065674, -0.025425398722290993, + -0.04986817389726639, 0.03414618596434593, 0.016963914036750793, -0.0074310945346951485, + 0.04031488299369812, -0.010181077755987644, -0.0156264528632164, -0.012228211387991905, + -0.017386987805366516, -0.018192192539572716, -0.022518469020724297, 0.011047697626054287, + -0.030434051528573036, 0.013135773129761219, 0.0032105876598507166, 0.05661006644368172, + -0.025616465136408806, 0.029396837577223778, -0.0029052237514406443, 0.021126417443156242, + 0.016295183449983597, 0.011204644106328487, 0.010576856322586536, -0.04318087175488472, + 0.04765726998448372, -0.006376821082085371, 0.007854169234633446, 0.0032668840140104294, + -0.05284333974123001, 0.02434724196791649, 0.021453959867358208, 0.014002392999827862, + 5.672265979228541e-5, -0.003869082313030958, -0.0013920507626608014, 0.03534717112779617, + 0.005278192460536957, -0.027076752856373787, -0.03248118609189987, 0.033764056861400604, + 0.01937953010201454, -0.011975730769336224, -0.01177101768553257, 0.048639893531799316, + -0.019911784678697586, 0.009860360063612461, 0.009662470780313015, 0.012528457678854465, + -0.036684632301330566, -0.0057046785950660706, 0.015558214858174324, -0.005039360374212265, + -0.011716427281498909, 0.014384524896740913, 0.0014287285739555955, -0.03695758432149887, + 0.033736761659383774, -0.036111436784267426, 0.015612805262207985, -0.010146958753466606, + -0.013565671630203724, 0.00863207969814539, 0.021085474640130997, 0.03933225944638252, + -0.01568104326725006, -0.03458290919661522, 0.0059469230473041534, 0.013654381036758423, + 0.01316306833177805, 0.019256703555583954, 0.012999298050999641, 0.0010090662399306893, + 0.048476122319698334, 0.05581850931048393, -0.0036063669249415398, 0.004387689754366875, + 0.027909254655241966, 0.006489413324743509, 0.029123887419700623, -0.028850935399532318, + 0.0015660572098568082, 0.011211467906832695, -0.023064371198415756, 0.013743089511990547, + 0.020976295694708824, -0.0005851390305906534, -0.02294154278934002, 0.01583116687834263, + -0.054781295359134674, -0.044081609696149826, 0.014985017478466034, -0.014548296108841896, + -0.03875906020402908, 0.019652482122182846, -0.03504692763090134, -0.015899403020739555, + 0.017878299579024315, -0.0299973301589489, 0.005366901867091656, 0.012842350639402866, + 0.008966444991528988, 0.024279003962874413, 0.015421739779412746, -0.008052058517932892, + 0.011061345227062702, 0.002359321340918541, 0.0173733402043581, -0.005394197069108486, + -0.001398874563165009, -0.01453464850783348, -0.038840945810079575, -0.014630180783569813, + 0.05038677901029587, -0.02164502441883087, 0.00478005688637495, 0.017195921391248703, + 0.03974168747663498, -0.02307801879942417, -0.012521633878350258, -0.002912047551944852, + 0.005745621398091316, 0.036056846380233765, 0.006301759276539087, 0.004322863649576902, + -0.007779107429087162, 0.03073429875075817, 0.0526522733271122, 0.051342111080884933, + -0.011259234510362148, 0.0010807159123942256, -0.008707141503691673, 0.030515937134623528, + -0.0072127338498830795, 0.03340921923518181, -0.00047766449279151857, 0.007403799798339605, + 0.0033538872376084328, -0.00992177426815033, 0.025398103520274162, 0.017441578209400177, + 0.013408725149929523, 0.04045135900378227, -0.007335561793297529, -0.0025589170400053263, + 0.01955694891512394, -0.020566867664456367, 0.0033538872376084328, 0.025616465136408806, + 0.0016752376686781645, 0.01820584014058113, -0.005929863546043634, -0.009464580565690994, + 0.000745924306102097, 0.014111573807895184, 0.01765993796288967, -0.040587835013866425, + 0.004694759380072355, 0.0035313053522258997, 0.00019458431052044034, -0.003544952953234315, + -0.019229408353567123, -0.013156244531273842, -0.0074652135372161865, 0.005349842365831137, + 0.02247752621769905, -0.03070700354874134, 0.04419079050421715, -0.029697084799408913, + -0.04200718179345131, -0.027144990861415863, 0.014056983403861523, 0.012808232568204403, + -0.031089134514331818, -0.017905594781041145, 0.004704995080828667, -0.06037679314613342, + -0.03073429875075817, -0.012603518553078175, -0.021672319620847702, 0.025984948500990868, + 0.04577390477061272, -0.015135141089558601, 0.025984948500990868, -0.0192976463586092, + -0.02640802226960659, 0.008939149789512157, 0.021481255069375038, -0.014903131872415543, + 0.006107281893491745, -0.039960045367479324, 0.007731340825557709, -0.0013587848516181111, + -0.03193528205156326, 0.02130383625626564, -0.018970103934407234, -0.002695392584428191, + -0.009566937573254108, -0.008017939515411854, -0.006230109836906195, -0.008754908107221127, + -0.03229011967778206, -0.0009519170853309333, -0.004022617358714342, 0.03971439227461815, + 0.035101518034935, 0.010112839750945568, 0.031116429716348648, -0.03253577649593353, + -0.0044218082912266254, 0.02093535289168358, 0.033163562417030334, -0.009519170969724655, + 0.004568519536405802, -0.007035315502434969, -0.0033624167554080486, -0.01502596028149128, + 0.001704238704405725, -0.004892649129033089, -0.015926698222756386, -0.006424587219953537, + -0.014930427074432373, -0.014193459413945675, -0.020894410088658333, 0.021781500428915024, + 0.009355400688946247, -0.016895676031708717, 0.002813102677464485, -0.028032081201672554, + -0.035456351935863495, 0.004428632091730833, 0.022259164601564407, -0.0013502552174031734, + 0.04588308557868004, -0.010529090650379658, 0.012692227959632874, 0.00475276168435812, + 0.015517272055149078, 0.01450735330581665, 0.03171692416071892, -0.0019823077600449324, + -0.00769039848819375, -0.010576856322586536, -0.008318185806274414, -0.011409357190132141, + -0.018656210973858833, 0.005711502395570278, 0.022777773439884186, 0.0046435813419520855, + 0.017482521012425423, 0.043426524847745895, -0.02474302053451538, -0.037776436656713486, + -0.021999862045049667, -0.012200916185975075, 0.05912121757864952, -0.010262962430715561, + -0.0014807599363848567, 0.02101723849773407, 0.00736285699531436, -0.020744286477565765, + 0.03297249600291252, 0.006632712669670582, 0.029287656769156456, 0.00420685950666666, + -0.012521633878350258, -0.024797610938549042, 0.010290257632732391, -0.012064440175890923, + -0.026135072112083435, -0.016554486006498337, -0.009184805676341057, 0.015162435360252857, + -0.003637074027210474, -0.026012243703007698, -0.008065706118941307, 0.002855751197785139, + -0.013449667021632195, -0.006195990834385157, -0.0031491736881434917, 0.02565740793943405, + -0.0019413649570196867, -0.0010755980620160699, -0.010842983610928059, -0.02190432883799076, + -0.02015744149684906, -0.005482906010001898, -0.012780937366187572, 0.004889237228780985, + 0.011593599803745747, -0.01789194718003273, 0.01196890790015459, -0.013831798918545246, + 0.021754205226898193, -0.007983820512890816, -0.004834646824747324, 0.020321212708950043, + 0.027336057275533676, -0.02354203537106514, -0.011661837808787823, -0.022955190390348434, + -0.03747619315981865, 0.024824906140565872, -0.005725149996578693, 0.013592966832220554, + 0.008106648921966553, -0.014889484271407127, 0.028168557211756706, -0.009771650657057762, + 0.004295568447560072, 0.017277806997299194, -0.014630180783569813, 0.0017690645763650537, + 0.004971122834831476, 0.017154978588223457, -0.012555751949548721, -0.034309957176446915, + 0.029424132779240608, -0.0023081430699676275, -0.011600423604249954, 0.03523799031972885, + -0.032726842910051346, 0.018069365993142128, -0.00447981059551239, -0.0006683038081973791, + 0.002495796885341406, -0.0060117486864328384, 0.024524660781025887, -0.02161773107945919, + -0.038895536214113235, -0.04659276083111763, 0.03073429875075817, -0.004670876543968916, + -0.0009834771044552326, -0.014630180783569813, 0.012535281479358673, -0.01423440221697092, + -0.007833697833120823, 0.0012402217835187912, -0.006264228839427233, 0.011634542606770992, + -0.004687936045229435, 0.00925986748188734, 0.06294253468513489, 0.007874640636146069, + 0.01708674058318138, -0.019447768107056618, 0.02471572533249855, 0.028659868985414505, + 0.03575659915804863, -0.02724052406847477, -0.025944005697965622, 0.0058991564437747, + -0.016035879030823708, 0.014111573807895184, -0.011429828591644764, 0.06993008404970169, + -0.018055718392133713, 0.0136339096352458, -0.01559915766119957, 0.011559480801224709, + -0.020539572462439537, -0.0016760906437411904, -0.01149806659668684, -0.003137232270091772, + 0.002088076202198863, 0.01723686419427395, -0.003643897594884038, -0.0009954186389222741, + -0.01053591351956129, -0.016786495223641396, 0.01508055068552494, 0.010433557443320751, + 0.027131343260407448, 0.036111436784267426, 0.003718959167599678, -0.030297575518488884, + 0.0181785449385643, 0.03351840004324913, -0.01838325895369053, -0.004623109940439463, + 0.05923039838671684, 0.0196115393191576, 0.009212100878357887, 0.03013380616903305, + 0.009566937573254108, 0.010849807411432266, 0.02067604847252369, 0.020171089097857475, + 0.019679777324199677, 0.02221822179853916, 0.005018888972699642, 0.0050666555762290955, + 0.0034408902283757925, -6.72715259497636e-6, 0.002782395575195551, -0.014589237980544567, + -0.024783963337540627, 0.005244073923677206, 0.0023473796900361776, -0.014848542399704456, + 0.01502596028149128, 0.011832431890070438, 0.00868667010217905, 0.021986214444041252, + -0.005445375107228756, -0.01251481007784605, 0.025097858160734177, 0.014111573807895184, + 0.005360078066587448, 0.00666683167219162, -0.021972566843032837, 0.0003944996860809624, + -0.04872177913784981, -0.02648990787565708, -0.004333099350333214, 0.020225679501891136, + 0.03597496077418327, 0.025589169934391975, 0.0067384811118245125, -0.01723686419427395, + 0.007567570544779301, 0.024470070376992226, -0.027158638462424278, 0.010842983610928059, + 0.012664932757616043, 0.01104087382555008, 0.03190798684954643, 0.027226876467466354, + -0.023146256804466248, 0.009812593460083008, 0.0073492093943059444, 0.011948436498641968, + -0.047357022762298584, 0.000594095210544765, 0.031471267342567444, 0.009641999378800392, + -0.002030074130743742, 0.014016040600836277, 0.010570032522082329, -0.03867717459797859, + -0.016704609617590904, 0.0032088819425553083, 0.021344779059290886, -0.017618995159864426, + 0.006158459931612015, -0.027950197458267212, -0.015721986070275307, 0.023159904405474663, + -0.02687203884124756, 0.017987480387091637, -0.01708674058318138, -0.02492043934762478, + -0.01843784935772419, -0.03744889795780182, 0.0008226917707361281, -0.033163562417030334, + -0.011293353512883186, -0.0005710649420507252, -0.017618995159864426, -0.0039339084178209305, + -0.022463878616690636, 0.029806263744831085, 0.019488710910081863, 0.003910025116056204, + -0.022545764222741127, 0.039932750165462494, 0.019966375082731247, -0.017755471169948578, + 0.018710801377892494, 0.0019447768572717905, 0.029724378138780594, -0.0363570898771286, + 0.014630180783569813, -0.0007143642869777977, -0.014125221408903599, 0.016786495223641396, + -0.01935223489999771, -0.01952965371310711, -0.0376126654446125, -0.028223147615790367, + -0.0014517589006572962, -0.022641297429800034, -0.03927766904234886, 0.002127313055098057, + -0.027254171669483185, 0.03594766557216644, 0.03482856601476669, 0.014848542399704456, + 0.020307565107941628, 0.008106648921966553, -0.015667395666241646, 0.05830236151814461, + -0.017141330987215042, -0.02887823060154915, -7.1969538112171e-5, -0.010065073147416115, + 0.024838553741574287, 0.019925432279706, -0.007581217680126429, 0.022695887833833694, + 0.016759200021624565, 0.013565671630203724, -0.020321212708950043, 0.0060629271902143955, + 0.0010576857021078467, 0.03452831879258156, -0.01619965024292469, -0.0008589430944994092, + 0.029314951971173286, -0.006813542917370796, 0.010153782553970814, 0.01308800745755434, + -0.0029205773025751114, -0.009416813962161541, -0.015435387380421162, -0.015435387380421162, + -0.0035040101502090693, -0.031061839312314987, -0.03130749613046646, 0.03289061412215233, + 0.021781500428915024, 0.005056419875472784, -0.04247119650244713, 2.82280525425449e-5, + -0.00517583591863513, 0.006731657311320305, -0.009880831465125084, -0.005557967349886894, + -0.009812593460083008, -0.0016146765556186438, -0.032672252506017685, -0.03354569524526596, + 0.026189662516117096, 0.047411613166332245, -0.022272812202572823, -0.0031150549184530973, + -0.006973901763558388, -0.0012973708799108863, -0.0018680093344300985, -0.005684207659214735, + -0.004469574894756079, 0.010030954144895077, 0.035401761531829834, -0.019365882501006126, + 0.03638438507914543, -0.0035210696514695883, -0.03234471008181572, -0.019420472905039787, + -0.012105382978916168, -0.025957653298974037, -0.011382062919437885, 0.01711403578519821, + -0.012385157868266106, -0.014875836670398712, -0.017427930608391762, 0.004950651433318853, + 0.01565374806523323, 0.04197988659143448, 0.010529090650379658, -0.006339290179312229, + 0.004534400999546051, 0.012030321173369884, 0.009143862873315811, 0.009853536263108253, + -0.004640169441699982, -0.0018867747858166695, 0.021167360246181488, 0.0016052938299253583, + -0.020771581679582596, 0.005847977939993143, -0.009744355455040932, 0.0046435813419520855, + 0.022327402606606483, -0.0008845322881825268, 0.02635343186557293, -0.007028491701930761, + -0.00923257227987051, -0.0019106579711660743, -0.0029291068203747272, 0.009239396080374718, + 0.024442775174975395, 0.002773866057395935, 0.032726842910051346, -0.01346331462264061, + 0.000919504149351269, 0.003065582597628236, 0.02904200181365013, -0.0007450713310390711, + 0.0066565959714353085, -0.0029461663216352463, 0.011347943916916847, -0.03807668387889862, + 0.006793071515858173, -0.024551954120397568, 0.006359761580824852, -0.005472670309245586, + -0.0014423761749640107, 0.009641999378800392, -0.023296380415558815, -0.020403098315000534, + -1.3107784980093129e-5, -0.03753077983856201, -0.03706676512956619, 0.014275345019996166, + -0.027977492660284042, -0.01723686419427395, 0.025439046323299408, 0.013695323839783669, + 0.009041506797075272, 0.018246782943606377, -0.01570833846926689, 0.0047971163876354694, + 0.021890681236982346, 0.0015097609721124172, -0.014875836670398712, 0.005865037441253662, + -0.006008336786180735, 0.04713866114616394, 0.016622724011540413, 0.0027260994538664818, + -0.033190857619047165, -0.015844814479351044, 0.031007248908281326, 0.008229476399719715, + 0.0026680973824113607, -0.0049028848297894, 0.0017375046154484153, 0.008475133217871189, + -0.039523325860500336, -0.01950235851109028, -0.022641297429800034, 0.008884559385478497, + 0.00865937490016222, 0.023187199607491493, 0.015749281272292137, 0.011695955879986286, + -0.028577983379364014, 0.008495604619383812, -0.028632573783397675, 0.006004924885928631, + -0.05183342099189758, 0.04203447699546814, -0.02893282100558281, 0.0008777084876783192, + 0.00890503078699112, 0.009744355455040932, -0.026503555476665497, -0.013067536056041718, + -0.011402533389627934, -0.0178646519780159, -0.02687203884124756, 0.01273317076265812, + -0.0028386919293552637, 0.017045797780156136, 0.004298980347812176, -0.02792290225625038, + -0.05145128816366196, 0.011259234510362148, 3.171990829287097e-5, -0.00890503078699112, + -0.030379461124539375, -0.000688775151502341, -0.021262893453240395, -0.022122690454125404, + 0.04648358002305031, 0.012855998240411282, -0.002814808627590537, -0.04421808570623398, + -0.0023286144714802504, 0.012726346962153912, -0.014288991689682007, 0.01901104673743248, + 0.006776012014597654, 0.012282800860702991, -0.010754275135695934, -0.0012717817444354296, + -0.009150686673820019, -0.019748015329241753, -0.0577564612030983, -0.012658108957111835, + -0.015394444577395916, -0.019174817949533463, -0.011307001113891602, 0.001667560893110931, + -0.001339166541583836, -0.008174886927008629, 0.00938951876014471, -0.01666366681456566, + ], + index: 14, + }, + { + title: "Office of Migrant Education", + text: "The Office of Migrant Education (OME) is a program within the U.S. Department of Education's Office of Elementary and Secondary Education (OESE) that administers grant programs that provide academic and supportive services to the children of families who migrate to find work in the agricultural and fishing industries. OME also administers several contracts and special initiatives.The Office of Migrant Education was created out of a response from the public out-cry resulting from Edward R.", + vector: [ + -0.036061640828847885, -0.005345136392861605, -0.020434929057955742, 0.006410958245396614, + -0.00444359565153718, 0.01939314976334572, 0.01886424422264099, -0.015258081257343292, + -0.03231123089790344, -0.003790479153394699, 0.015394313260912895, -0.034971777349710464, + -0.038049038499593735, -0.017549999058246613, -0.03776054456830025, -0.001331275561824441, + -0.031109174713492393, -0.01572287455201149, -0.0075168488547205925, 0.013591231778264046, + -0.003015153808519244, -0.029570546001195908, 0.026573421433568, -0.026733696460723877, + 0.010826505720615387, 0.022149860858917236, 0.014905477873980999, 0.029666708782315254, + 0.028881367295980453, 0.041959721595048904, -0.013294724747538567, 0.04513314738869667, + 0.023063423112034798, -0.034619174897670746, -0.012389176525175571, -0.0016027395613491535, + -0.039203010499477386, -0.0451972559094429, 0.012413217686116695, -0.03368958458304405, + -0.01590719074010849, -0.004924417473375797, 0.023928901180624962, 0.02331986092031002, + 0.024185340851545334, 0.008029725402593613, -0.048050131648778915, -0.05830766633152962, + -0.026653559878468513, -0.0054292804561555386, 0.018543697893619537, 0.01801479235291481, + -0.024201367050409317, 0.009167670272290707, -0.052441637963056564, 0.03862602263689041, + 0.10443451255559921, 0.05580739304423332, -0.006923834793269634, -0.029426299035549164, + -0.0365104079246521, -0.0003593642613850534, 0.008959313854575157, -0.04577424377202988, + -0.01310239639133215, 0.01220486219972372, -0.026060545817017555, 0.015234040096402168, + -0.03827342018485069, 0.02801588736474514, -0.008750958368182182, -0.008198012597858906, + -0.013166505843400955, 0.050999172031879425, -0.020499039441347122, -0.022823011502623558, + -0.0066153076477348804, -0.03006739541888237, 0.01644410751760006, -0.017758354544639587, + 0.009287876076996326, -0.006879759486764669, 0.07225149869918823, 0.00131825334392488, + 0.04933232441544533, -0.06334026902914047, -0.01897643692791462, -0.049556706100702286, + -0.01319054700434208, 0.020322738215327263, -0.031013010069727898, 0.008718903176486492, + -0.020563147962093353, 0.03471533954143524, 0.02867301180958748, -0.000364873674698174, + 0.025018764659762383, -0.025627806782722473, -0.013094382360577583, -0.010241505689918995, + -0.0023600340355187654, 0.018239175900816917, -0.028352463617920876, 0.015586642548441887, + 0.0025744005106389523, 0.036959175020456314, 0.011716026812791824, 0.030756572261452675, + 0.027855614200234413, 0.06478273123502731, -0.04221615940332413, 0.0031113182194530964, + 0.005966198164969683, 0.027246572077274323, 0.0356769822537899, 0.02054712176322937, + 0.0045557874254882336, 0.017742326483130455, -0.0037203591782599688, 0.03945944830775261, + 0.018896300345659256, 0.013943834230303764, 0.013310751877725124, -0.038465749472379684, + -0.07270026952028275, 0.0233839713037014, -0.020450957119464874, 0.06439808011054993, + -0.011315341107547283, -0.013487054035067558, 0.048114243894815445, -0.001110898912884295, + -0.031173285096883774, -0.0186238344758749, 0.029057668522000313, 0.0016107532428577542, + 0.023223696276545525, 0.03115725703537464, -0.010321643203496933, 0.0269901342689991, + -0.018335340544581413, 0.0428893119096756, -0.07109753042459488, 0.03692711889743805, + 0.0033857873640954494, -0.03548465296626091, 0.02856081910431385, 0.03862602263689041, + -0.04183150455355644, 0.027214517816901207, -0.03349725902080536, -0.03872218728065491, + 0.013454998843371868, -0.03200671076774597, 0.031365614384412766, -0.02380068227648735, + 0.015634724870324135, 0.009384040720760822, -0.010714313946664333, 0.050454240292310715, + -0.017101231962442398, -0.010401779785752296, 0.013422943651676178, 0.02114013582468033, + 0.000522392918355763, -0.010650204494595528, -0.010345684364438057, -0.044972874224185944, + 0.009712602011859417, 0.03631807863712311, -0.046190954744815826, 0.03522821515798569, + -0.03175027295947075, -0.040998078882694244, -0.02801588736474514, -0.018880272284150124, + 0.005196882877498865, 0.04705643281340599, -0.0643339678645134, -0.0014204279286786914, + -0.04231232404708862, 0.05615999549627304, 0.06718683987855911, 0.015290135517716408, + 0.025563696399331093, -0.010978765785694122, -0.01650821790099144, 0.01403999887406826, + -0.027631230652332306, -0.0008324228692799807, 0.03234328329563141, -0.016492189839482307, + 0.05237752944231033, 0.03683095425367355, 0.04516519978642464, -0.017501916736364365, + -0.020050272345542908, 0.06176958233118057, 0.03163807839155197, -0.058532048016786575, + -0.020803559571504593, 0.003199468832463026, 0.048402734100818634, 0.026365065947175026, + 0.029602600261569023, 0.05285835266113281, 0.012733765877783298, 0.0010818492155522108, + -0.04378684610128403, -0.013727464713156223, 0.01843150518834591, -0.023720545694231987, + 0.016844792291522026, 0.021893423050642014, -0.0075048282742500305, -0.005769862327724695, + -0.03231123089790344, -0.02626890130341053, 8.877674554241821e-5, 0.003491968847811222, + 0.059493694454431534, 0.020466985180974007, 0.009624451398849487, 0.01657232642173767, + -0.032679859548807144, -0.03465123102068901, 0.0044716433621943, -0.038465749472379684, + -0.03037191554903984, 0.0062506841495633125, -0.04253670945763588, 0.09571560472249985, + 0.013150478713214397, -0.04625506326556206, -0.040869858115911484, 0.05917314440011978, + 0.03689506649971008, -0.019793834537267685, -0.00867883488535881, 0.013094382360577583, + -0.04971698299050331, -0.00587404053658247, 0.0008624742622487247, -0.011876299977302551, + -0.01421630010008812, -0.003167414106428623, -0.014657053165137768, 0.04369068145751953, + -0.043530408293008804, 0.03423451632261276, 0.03522821515798569, -0.04417150467634201, + -0.02790369652211666, -0.011275272816419601, 0.048723284155130386, 0.0818038284778595, + -0.0040128594264388084, -0.00855862908065319, -0.022790957242250443, -0.039074789732694626, + -0.018816161900758743, 0.03285616263747215, -0.04019670933485031, 0.005549485795199871, + -0.01602739654481411, -0.0077211977913975716, 0.05644848942756653, -0.0031313523650169373, + -0.022694792598485947, 0.0007507833070121706, -0.043049585074186325, 0.017421780154109, + 0.0051087322644889355, -0.013735477812588215, 0.017870547249913216, 0.015650752931833267, + 0.03532437980175018, -0.003291626460850239, 0.059076979756355286, 0.005405239295214415, + -0.04712054505944252, -0.030339859426021576, -0.008113869465887547, 0.023480134084820747, + 0.027390819042921066, 0.058115337044000626, 0.02735876478254795, -0.013879724778234959, + 0.06930246204137802, 0.01729355938732624, -0.024297531694173813, 0.029714791104197502, + -0.02194150537252426, 0.015995340421795845, 0.027919722720980644, 0.005285033956170082, + -0.03574109449982643, -0.006775581743568182, 0.018062874674797058, -0.007761266548186541, + 0.0030351881869137287, -0.0038966606371104717, 0.00435544503852725, -0.021861368790268898, + 0.008398354984819889, 0.015530546195805073, -0.017197396606206894, 0.01764616370201111, + -0.014144176617264748, -0.05718574672937393, 0.04054931178689003, -0.06494300812482834, + -0.0024101196322590113, -0.010538012720644474, -0.003828544169664383, 0.00988088920712471, + 0.02319164201617241, -0.023351915180683136, 0.012164792977273464, -0.03615780547261238, + -0.012429245747625828, 0.011988491751253605, -0.016251780092716217, 0.002153681358322501, + 0.006519143469631672, -0.0325356125831604, -0.0548136942088604, 0.0020034245681017637, + 0.012180821038782597, 0.030580271035432816, -0.04157506301999092, -0.03872218728065491, + 0.023031366989016533, -0.01573088951408863, 0.01578698493540287, -0.03259972482919693, + 0.015402327291667461, 0.034202463924884796, 0.010738355107605457, 0.027503011748194695, + -0.0063388352282345295, -0.03426657244563103, -0.019473286345601082, 0.017806436866521835, + -0.012068629264831543, 0.008686848916113377, 0.052217256277799606, 0.03788876533508301, + 0.013991916552186012, -0.012060615234076977, 0.0008549613994546235, -0.01644410751760006, + 0.015009656548500061, 0.01093869749456644, 0.031670134514570236, 0.014833354391157627, + -0.012228903360664845, -0.03285616263747215, 0.05436492711305618, 0.06705862283706665, + -0.04115835204720497, 0.004439588636159897, -0.0146730812266469, 0.003181437961757183, + -0.06401342153549194, 0.03878629952669144, -0.02788766846060753, 0.028336435556411743, + 0.024249449372291565, -0.0641416385769844, 0.025515614077448845, -0.017245477065443993, + 0.04070958495140076, -0.0317021906375885, -0.007256403565406799, 0.035388488322496414, + -0.0013473029248416424, 0.025050818920135498, -0.0020294690039008856, 0.031109174713492393, + -0.029843011870980263, 0.008061779662966728, 0.0019653593190014362, 0.05234547331929207, + -0.009023424237966537, -0.013302738778293133, 0.029490407556295395, -0.04157506301999092, + -0.011796163395047188, -0.00338178058154881, 0.036478351801633835, -0.005569519940763712, + 0.001465504989027977, -0.006230650003999472, 0.018543697893619537, 0.049556706100702286, + -0.029907120391726494, 0.006146506406366825, 0.013631300069391727, 0.008398354984819889, + 0.009295889176428318, -0.05237752944231033, 0.020883696153759956, 0.034555066376924515, + 0.02017849124968052, -0.048530954867601395, -0.01698903925716877, 0.0087108900770545, + 0.023239724338054657, 0.017982738092541695, -0.0005454323254525661, -0.0025964381638914347, + 0.018639860674738884, 0.03394602611660957, -0.0012190837878733873, 0.020803559571504593, + -0.05122355744242668, 0.04824246093630791, -0.024233423173427582, 0.03747205063700676, + 0.008189999498426914, 0.007324520032852888, 0.026797804981470108, 0.03481150418519974, + 0.031109174713492393, 0.07205916941165924, 0.04561396688222885, -0.03933122754096985, + -0.049556706100702286, 0.0040008388459682465, -0.012525409460067749, -0.014793286100029945, + -0.005805924069136381, 0.03590136766433716, 0.015562601387500763, -2.0895091438433155e-5, + -0.00010893620492424816, 0.02421739511191845, 0.029810955747961998, 0.021797258406877518, + 0.010746369138360023, -0.0022638696245849133, -0.016460135579109192, 0.012910067103803158, + -0.06253889948129654, -0.02759917639195919, 0.004435581620782614, 0.012429245747625828, + 0.03176629915833473, -0.01771027222275734, -0.007977636530995369, 0.013887738808989525, + -0.021829312667250633, -0.004475650377571583, 0.04433177784085274, 0.016428081318736076, + 0.05090300738811493, -0.03223109245300293, -0.006495102308690548, -0.00685171177610755, + -0.0007062071235850453, -0.018768081441521645, 0.07872656732797623, -0.001086857751943171, + 0.017758354544639587, -0.006226643454283476, -0.015009656548500061, 0.0029029620345681906, + -0.010241505689918995, 0.008847122080624104, 0.039074789732694626, 0.0009240795625373721, + -0.020531093701720238, -0.003255564719438553, 0.007396643050014973, -0.011860272847115993, + 0.03542054444551468, 0.0022378251887857914, 0.014312464743852615, -0.006783595308661461, + 0.05019780248403549, 0.013246642425656319, -0.010153355076909065, 0.02229410782456398, + 0.029730819165706635, -0.03945944830775261, 0.012004519812762737, 0.013607258908450603, + -0.03926711902022362, 0.04272903874516487, 0.03878629952669144, 0.028352463617920876, + -0.00012796874216292053, -0.04035698249936104, -0.0015676796901971102, -0.01301424577832222, + 0.006551198195666075, -0.027454929426312447, 0.017822464928030968, -0.006451027002185583, + -0.013711437582969666, 0.00049309286987409, 0.01608349196612835, 0.02548355981707573, + -0.045581914484500885, 0.04135068133473396, 0.0029089723248034716, 0.02307944931089878, + -0.010650204494595528, -0.015201984904706478, 0.054557256400585175, 0.03320876508951187, + 0.01039376575499773, 0.003966780379414558, 0.007633047178387642, 0.02283903956413269, + 0.07250794023275375, -0.022181915119290352, 0.01615561544895172, 0.04083780571818352, + -0.020450957119464874, 0.028336435556411743, 0.014392601326107979, 0.0025623799301683903, + -0.005954177584499121, -0.018960408866405487, 0.040453147143125534, 0.025323284789919853, + 0.01639602519571781, -0.012998217716813087, -0.007717191241681576, 0.006226643454283476, + 0.050037529319524765, 0.038113147020339966, 0.00040218746289610863, 0.022630682215094566, + -0.022678764536976814, -0.013078355230391026, 0.006318800617009401, -0.024377668276429176, + -0.03072451800107956, -0.010802464559674263, -0.024618079885840416, -0.06407752633094788, + -0.05526246130466461, -0.01280588936060667, 0.01361527293920517, 0.008518560789525509, + 0.007436711806803942, -0.011347396299242973, 0.03843369334936142, 0.0059982528910040855, + -0.004411540925502777, 0.02216588892042637, -0.00564564997330308, -0.03248753026127815, + -0.011772122234106064, 0.0008449442684650421, 0.005713766440749168, -0.02325575053691864, + -0.010161369107663631, -0.027486983686685562, 0.019232874736189842, -0.0037043318152427673, + -0.01825520396232605, 0.0006741523393429816, -0.010137327946722507, 0.009640478529036045, + -0.010834519751369953, -0.0365104079246521, -0.030387941747903824, -0.025387395173311234, + 0.01614760048687458, -0.005974211730062962, 0.041543010622262955, 0.04327397048473358, + 0.0010538012720644474, -0.01340691652148962, 0.021300408989191055, -0.01358321774750948, + -0.027134381234645844, 0.011187122203409672, 0.032567668706178665, 0.0023359928745776415, + 0.004062945023179054, -0.004487670958042145, 0.02561177872121334, -0.021540820598602295, + 0.004535752814263105, -0.02194150537252426, 0.021172190085053444, 0.002171712229028344, + -0.028721094131469727, -0.01319054700434208, 0.01662040874361992, 0.030083421617746353, + -0.02747095562517643, -0.002287910785526037, -0.00931191723793745, 0.03602958470582962, + 0.024441778659820557, 0.028063969686627388, -0.009760684333741665, -0.014953560195863247, + 7.688141340622678e-5, 0.03404218703508377, 0.019136710092425346, -0.004800205118954182, + -0.020771505311131477, -0.014400615356862545, 0.058660268783569336, 0.005585547536611557, + 0.035164106637239456, -0.005565513391047716, 0.030339859426021576, -0.01608349196612835, + -0.015634724870324135, 0.038593970239162445, 0.02993917465209961, -0.010505957528948784, + 0.016235752031207085, 0.016412053257226944, 0.0014604964526370168, 0.028336435556411743, + -0.0035941435489803553, -0.019553422927856445, 0.014985615387558937, 0.03721561282873154, + -0.00831020437180996, 0.041414789855480194, -0.018784107640385628, 0.03785670921206474, + -0.0018080906011164188, 0.008510546758770943, -0.001004216494038701, 0.020162463188171387, + 0.014985615387558937, -0.04869122803211212, 0.0037223626859486103, -0.0321669839322567, + 0.023784656077623367, -0.03078862652182579, -0.025403423234820366, 0.05577533692121506, + -0.013463012874126434, -0.008686848916113377, 0.033657532185316086, -0.005417259875684977, + 0.020226573571562767, 0.022213971242308617, 0.020931778475642204, -0.029474381357431412, + -0.007344554178416729, -0.010345684364438057, -0.020386846736073494, -0.0238487645983696, + -0.052633967250585556, -0.04554985836148262, 0.013166505843400955, 0.01637999899685383, + 0.01663643680512905, -0.002179725794121623, 0.031782325357198715, -0.01174808107316494, + 0.0341062992811203, -0.012020546942949295, -0.0214446559548378, 0.02825629897415638, + 0.002227808116003871, 0.004663972184062004, -0.008863150142133236, -0.03760027140378952, + 0.032920271158218384, -0.03500383347272873, -0.012581505812704563, -0.023303832858800888, + -0.00727643771097064, -0.03436273708939552, 0.004115033894777298, 0.03183040767908096, + -0.010554039850831032, -0.03175027295947075, 0.038241367787122726, -0.011948423460125923, + 0.03200671076774597, 0.01602739654481411, -0.07430300861597061, -0.0436265729367733, + -0.020034244284033775, -0.04420355707406998, -0.0030231676064431667, 0.02764725871384144, + 0.012533423490822315, 0.03994027152657509, -0.0030171573162078857, -0.019553422927856445, + 0.002618475817143917, -0.00421520508825779, 0.021412601694464684, -0.003101301146671176, + -0.019681641831994057, 0.0186238344758749, -0.023880818858742714, 0.017982738092541695, + 0.014857395552098751, 0.0065552047453820705, -0.004016865976154804, -0.009167670272290707, + 0.02548355981707573, 0.02035479247570038, 0.014881436713039875, 0.0027266608085483313, + -0.0023219690192490816, 0.0036662667989730835, 0.015835067257285118, -0.042023830115795135, + 0.005902088712900877, 0.002612465526908636, -0.004627910442650318, -0.0039367289282381535, + 0.043466296046972275, 0.011387464590370655, 0.026605477556586266, -0.008246094919741154, + -0.025739997625350952, -0.0011990495258942246, -0.008574657142162323, -0.010898629203438759, + 0.045646023005247116, 0.009920958429574966, 0.008598698303103447, -0.022374244406819344, + -0.012525409460067749, 0.008202020078897476, 0.02096383459866047, 0.035516709089279175, + 0.03586931154131889, 0.01825520396232605, -0.027454929426312447, -0.0038004962261766195, + -0.048947665840387344, 0.012301025912165642, 0.02205369621515274, -0.00415510218590498, + -0.019313011318445206, -0.00721633480861783, 0.04670383036136627, -0.020499039441347122, + -0.026284929364919662, 0.008935273624956608, -0.009864862076938152, 0.0028829278890043497, + -0.018335340544581413, -0.00879904069006443, 0.04247259721159935, 0.008967327885329723, + 0.01753397099673748, -0.04260081797838211, 0.034747395664453506, 0.0036001538392156363, + -0.027855614200234413, 0.00012934609549120069, -0.01904054544866085, -0.0357731468975544, + 0.010618149302899837, 0.04349835216999054, 0.02266273833811283, -0.013967875391244888, + -0.0286089014261961, 0.021588902920484543, -0.032808080315589905, -0.014200272969901562, + 0.012886025942862034, -0.013519108295440674, -0.006635341793298721, 0.023271778598427773, + -0.013743491843342781, -0.043722737580537796, -0.011683971621096134, 0.018046848475933075, + 0.016123559325933456, 0.014633012004196644, 0.018832189962267876, -0.027967805042862892, + -0.006394931115210056, -0.040998078882694244, 0.028240270912647247, 0.0119243822991848, + -0.030035339295864105, 0.006451027002185583, 0.0020064297132194042, -0.03772848844528198, + -0.01382362935692072, -0.03673478960990906, 0.0001843150530476123, 0.02139657363295555, + 0.011403491720557213, 0.017453834414482117, -0.004435581620782614, -0.01764616370201111, + 0.021412601694464684, 0.004271300975233316, 0.010433834977447987, 0.010321643203496933, + -0.047986023128032684, -0.023512190207839012, 0.010642190463840961, -0.005849999375641346, + -0.03580520302057266, -0.008758971467614174, 0.011507670395076275, 0.03141369670629501, + -0.032022736966609955, 0.005012568086385727, 0.026284929364919662, 0.05349944904446602, + 0.005609588697552681, -0.02017849124968052, 0.012220889329910278, 0.015434382483363152, + -0.002949040848761797, 0.019056573510169983, -0.01873602531850338, -0.01910465583205223, + -0.010281573981046677, 0.012068629264831543, 0.02958657220005989, -0.035035885870456696, + -0.01759808138012886, -0.02054712176322937, 0.023480134084820747, -0.0452934205532074, + -0.0074767800979316235, -0.009504245594143867, 0.0396517775952816, 0.04093397036194801, + 0.01928095705807209, -0.0008128894842229784, 0.01093869749456644, 0.0241693127900362, + -0.05183259770274162, -0.01964958757162094, -0.013767533004283905, -0.018944382667541504, + -0.039203010499477386, 0.01963355951011181, 0.003802499733865261, -0.07257204502820969, + -0.000505113392136991, 0.025387395173311234, -0.015674792230129242, -0.01246931403875351, + 0.010826505720615387, 0.06337232142686844, 4.6830045903334394e-5, 0.005629622843116522, + -0.020531093701720238, 0.028721094131469727, -0.003369760001078248, 0.0007758261053822935, + -0.03519616276025772, 0.015626711770892143, 0.03266383334994316, 0.023351915180683136, + -0.006166540551930666, 0.036414243280887604, -0.00801770482212305, 0.01153972465544939, + 0.001598732778802514, 0.012012532912194729, -0.0022498457692563534, 0.028881367295980453, + -0.025034792721271515, 0.025018764659762383, -0.06680218875408173, 0.022310135886073112, + 0.009047465398907661, 0.03561287373304367, 0.0769956111907959, 0.00727643771097064, + -0.002922996412962675, 0.03910684585571289, 0.009768697433173656, -0.03644629940390587, + 0.020803559571504593, -0.006491095293313265, 0.019313011318445206, -0.022919176146388054, + 0.018207121640443802, -0.07148218899965286, -0.004583835136145353, -0.02812808007001877, + 0.030644381418824196, 0.04397917538881302, 0.01178013626486063, 0.0698794424533844, + -0.03181438148021698, -0.0069078076630830765, 0.0025623799301683903, 0.0325356125831604, + 0.0020975854713469744, -0.05077479034662247, -0.001526609412394464, 0.013006231747567654, + -0.01855972409248352, -0.021781230345368385, 0.03753616288304329, -0.021236298605799675, + 0.001172003336250782, -0.005116746295243502, 0.034202463924884796, 0.012092670425772667, + 0.019056573510169983, 0.01433650590479374, 0.009560341946780682, -0.013230615295469761, + -0.0006130479159764946, 0.002856883220374584, -0.028528764843940735, 0.04067752882838249, + -0.022871093824505806, -0.043177805840969086, 0.026573421433568, 0.012036574073135853, + 0.032984379678964615, 0.017758354544639587, 0.005445307586342096, 0.04026081785559654, + 0.06680218875408173, 0.002101592253893614, -0.020274655893445015, -0.0120846563950181, + -0.04936438053846359, -0.005345136392861605, 0.016187669709324837, -0.017806436866521835, + -0.002918989397585392, 0.056416433304548264, -0.04189561307430267, 0.029025614261627197, + 0.008823081851005554, 0.051351774483919144, 0.010521985590457916, 0.01621171087026596, + 0.011307328008115292, 0.002012440003454685, 0.010169382207095623, 0.005277019925415516, + -0.003491968847811222, -0.04538958519697189, 0.007284451276063919, -2.2992426238488406e-5, + 0.015931231901049614, 0.03397807851433754, 0.024569997563958168, 0.051544103771448135, + -0.007805341854691505, 0.03011547587811947, 0.050518352538347244, 0.012164792977273464, + 0.020018218085169792, -0.009560341946780682, -0.04423561319708824, 0.014480751939117908, + -0.008438424207270145, -0.02000219002366066, -0.027631230652332306, -0.020643286406993866, + 0.009384040720760822, -0.004671985749155283, 0.0007347559439949691, 0.01060212217271328, + 0.002295924350619316, 0.028817256912589073, -0.028047943487763405, 0.04224821552634239, + 0.03295232728123665, 0.009624451398849487, -0.0011018834775313735, 0.009103560820221901, + 0.008470478467643261, -0.04138273745775223, 0.06712273508310318, 0.0064470199868083, + 0.009808766655623913, 0.013150478713214397, 0.022085752338171005, -0.014841368421912193, + -0.021556846797466278, 0.011387464590370655, -0.02904164046049118, -0.02386479265987873, + 0.003103304421529174, -0.021669039502739906, -0.02229410782456398, 0.01945725828409195, + -0.00552945164963603, 0.013727464713156223, -0.014264382421970367, -0.028656983748078346, + -0.033336982131004333, -0.03718355670571327, -0.033048491925001144, -0.016371984034776688, + 0.0015356248477473855, -0.033336982131004333, -0.00280880113132298, 0.034010134637355804, + -0.03163807839155197, -0.014985615387558937, 0.02910575084388256, 0.04458821564912796, + -0.009111574850976467, 0.041959721595048904, -0.01843150518834591, -0.006162533536553383, + 0.02017849124968052, 0.033336982131004333, 0.00031053079874254763, -0.03239136561751366, + -0.01268568355590105, -0.050454240292310715, -0.026541367173194885, -0.014168217778205872, + -0.0022017634473741055, 0.01764616370201111, -0.019954107701778412, -0.0269901342689991, + -0.02825629897415638, -0.020386846736073494, -0.006647362373769283, -0.004175136797130108, + -0.02615671046078205, 0.030227668583393097, -0.009287876076996326, 0.03157396987080574, + 0.00470003392547369, -0.029073696583509445, 0.029682736843824387, -0.02565986104309559, + 0.033529311418533325, 0.04487670958042145, -0.031782325357198715, -0.013134450651705265, + -0.034747395664453506, 0.008871163241565228, 0.008630752563476562, -0.036125749349594116, + -0.034747395664453506, -0.019024519249796867, -0.02548355981707573, 0.005797910504043102, + -0.004659965168684721, -0.0017820460489019752, -2.4682814910192974e-5, 0.002844862872734666, + 0.018094930797815323, -0.01045787613838911, -0.01400794368237257, -0.027583148330450058, + 0.027583148330450058, -0.006523150019347668, 0.009848834946751595, -0.028352463617920876, + -0.012116711586713791, 0.0002012189506785944, -0.004627910442650318, 0.04837068170309067, + 0.037375885993242264, 0.03820931166410446, -0.0013543149689212441, -0.01382362935692072, + 0.005489382892847061, -0.002638509962707758, 0.005357156973332167, 0.01928095705807209, + 0.0023399998899549246, -0.022726846858859062, 0.01238116342574358, -0.0029851023573428392, + 0.056416433304548264, -0.006823663599789143, 0.032439447939395905, -0.0071882870979607105, + 0.03391396999359131, 0.005321095231920481, -0.0257880799472332, -0.0034398797433823347, + -0.021076025441288948, -0.016051437705755234, -0.0031954620499163866, 0.0245860256254673, + 0.02150876447558403, 0.0011489639291539788, 0.022694792598485947, -0.03500383347272873, + -0.0013623286504298449, 0.03628602251410484, 0.009760684333741665, -0.004692020360380411, + 0.008566643111407757, 0.003161403816193342, 0.014576916582882404, 0.0023159587290138006, + 0.033112600445747375, 0.01051397155970335, 0.0039367289282381535, 0.015803012996912003, + -0.0074888006784021854, 0.017998766154050827, -0.02000219002366066, 0.015169929713010788, + -0.02650931291282177, 0.0016217720694839954, 0.019970135763287544, -0.002027465496212244, + 0.00710815005004406, -0.015169929713010788, 0.008230067789554596, -0.0034759414847940207, + 0.021909449249505997, -0.035164106637239456, 0.0025243149138987064, 0.00023089467140380293, + 0.013230615295469761, -0.0060463352128863335, -0.015041710808873177, -0.02162095718085766, + 0.003191455267369747, 0.01988999731838703, 0.021252326667308807, 0.021829312667250633, + 0.012413217686116695, -0.025355340912938118, -0.016780683770775795, -0.01000109501183033, + -0.02469821646809578, 0.001355316606350243, -0.02035479247570038, -0.014977601356804371, + -0.01880013570189476, -0.011187122203409672, 0.0035821229685097933, 0.018832189962267876, + -0.027310682460665703, 0.03239136561751366, 0.01584308035671711, -0.0014665067428722978, + -0.0010072216391563416, 0.03628602251410484, 0.004407533910125494, -0.014576916582882404, + -0.0202426016330719, -0.011531711556017399, -0.010489930398762226, -0.002265873132273555, + 0.01460897084325552, -0.0023600340355187654, 0.005417259875684977, -0.034074243158102036, + -0.00804575253278017, -0.007356574758887291, -0.021284380927681923, 0.06362876296043396, + -0.00412705447524786, 0.0202426016330719, 0.0018301282543689013, -0.005773869343101978, + 0.0019142720848321915, -0.014416642487049103, 0.02939424477517605, 0.026284929364919662, + -0.03542054444551468, -0.007540889550000429, -0.028705066069960594, -0.009720615111291409, + -0.004784177523106337, 0.021476710215210915, -0.0013262670254334807, -0.013911779969930649, + -0.008526574820280075, 0.006699451245367527, 0.014913491904735565, 0.0119243822991848, + -0.014560889452695847, -0.009432122111320496, 0.005649656988680363, 0.020034244284033775, + -0.011283286847174168, -0.007032020017504692, -0.019601505249738693, -0.0022578593343496323, + 0.004040907137095928, -0.010137327946722507, 0.01246931403875351, -0.025836162269115448, + -0.04369068145751953, 0.015073766000568867, 0.013038286939263344, 0.019922053441405296, + 0.002490256680175662, 0.012357122264802456, -0.02554766833782196, 0.01790260151028633, + -0.0026144690345972776, -0.025884244590997696, 0.01541835442185402, 0.015746915712952614, + -0.004203184507787228, -0.004291335120797157, 0.009087533690035343, -0.024137258529663086, + -0.0016748628113418818, 0.024265477433800697, -0.047633420675992966, -0.01310239639133215, + -0.0333690382540226, 0.010962738655507565, 0.005942157004028559, -0.004972499329596758, + 0.03522821515798569, 0.02517903968691826, 0.01698903925716877, 4.513965905061923e-5, + 0.016973013058304787, -0.02150876447558403, -0.004736095666885376, 0.0031954620499163866, + -0.017277533188462257, 0.00536116398870945, 0.017133286222815514, 0.024025065824389458, + 0.015770956873893738, -0.04080574959516525, -0.0010788440704345703, 0.018992463126778603, + -0.020755477249622345, 0.01897643692791462, -0.0017980734119191766, 0.050037529319524765, + -0.0005754836602136493, 0.011699998751282692, -0.05330711975693703, 0.0241693127900362, + 0.025227120146155357, 0.025050818920135498, 0.0006461043958552182, -0.026076573878526688, + -0.01916876621544361, 0.0003736386715900153, -0.026589449495077133, 0.028945477679371834, + -0.023576298728585243, -0.0027446914464235306, 0.02674972452223301, 0.004099006298929453, + -0.029378216713666916, -0.019248902797698975, -0.011884314008057117, 0.0006225641700439155, + 0.04429972171783447, 0.07000766694545746, 0.01509780716150999, 0.0065912664867937565, + 0.015402327291667461, -0.030804654583334923, -0.0022518490441143513, 0.0015436385292559862, + -0.016796709969639778, -0.010946711525321007, 0.010329656302928925, 0.05141588672995567, + -0.04429972171783447, 0.01670054718852043, 0.025146983563899994, -0.01681273803114891, + -0.02783958613872528, -0.009119587950408459, -0.020867669954895973, -0.0036282017827033997, + 0.009359999559819698, 0.013639314100146294, -0.008702876046299934, -0.004599862731993198, + 0.033529311418533325, -0.0026665579061955214, 0.010345684364438057, -0.024505889043211937, + -0.027310682460665703, -0.02356027252972126, 0.00581393763422966, 0.0017870545852929354, + 0.0066193146631121635, -0.007821368984878063, 0.03490766882896423, -0.0024882531724870205, + -0.020162463188171387, -0.0021336469799280167, -0.015073766000568867, 0.045517805963754654, + -0.004684006329625845, -0.0009426111937500536, -0.00825410895049572, -0.005457328166812658, + -0.010978765785694122, -0.023416025564074516, -0.015314176678657532, -0.01162787526845932, + 0.018896300345659256, 0.01591520383954048, -0.009424109011888504, -0.02343205362558365, + 0.0427931472659111, 0.017854519188404083, 0.0026044517289847136, -0.04192766919732094, + 0.01054602675139904, 0.018543697893619537, -0.019361093640327454, -0.01627582125365734, + 0.011555752716958523, -0.03500383347272873, -0.004792191553860903, -0.028272327035665512, + -0.012397190555930138, 0.01472917664796114, -0.0014434673357754946, 0.02259862795472145, + -0.013575204648077488, 0.02368849143385887, -0.0011078937677666545, -0.03705533966422081, + -0.006915821228176355, -0.016404040157794952, 0.03165410831570625, -0.03929917514324188, + 0.007116163615137339, 0.01400794368237257, 0.054204653948545456, 0.026108628138899803, + 0.03958766907453537, -0.032631777226924896, -0.0002313955337740481, 0.0013973885215818882, + -0.03433068096637726, 0.006815650034695864, 0.0048322598449885845, -0.013366848230361938, + 0.021364519372582436, 0.04452410712838173, -0.010473903268575668, -0.01766218990087509, + -0.036061640828847885, -0.013935821130871773, 0.027006162330508232, 0.005990239325910807, + -0.009207738563418388, -0.00013585721899289638, 0.00834225956350565, 0.022855065762996674, + 0.01443266961723566, 0.003483955282717943, -0.02386479265987873, -0.021460682153701782, + 0.017421780154109, -0.005393218714743853, -8.683592750458047e-5, -0.01000109501183033, + -0.03251958638429642, 0.013871710747480392, -0.02174917608499527, -0.008903218433260918, + -0.004159109201282263, -0.015987327322363853, -0.020450957119464874, 0.020338764414191246, + 0.014256368391215801, -0.0018030820647254586, -0.020274655893445015, 0.0198258887976408, + -0.005449314601719379, -0.0137034235522151, -0.023704517632722855, 0.014088081195950508, + 0.014296436682343483, 0.0041991774924099445, 0.018816161900758743, 0.02463410794734955, + -0.02513095736503601, 0.02777547761797905, -0.0024201367050409317, -0.006082396488636732, + 0.02362438105046749, -0.00273467437364161, -0.021957531571388245, -0.020018218085169792, + -0.01494554616510868, 0.05048629641532898, -0.005000547505915165, -0.0017409758875146508, + -0.04615889862179756, -0.026733696460723877, -0.031237393617630005, 0.035997532308101654, + -0.025387395173311234, -0.02194150537252426, -0.000705706246662885, -0.000528403208591044, + -0.003772448282688856, 0.014921505935490131, 0.006839691195636988, 0.02295123040676117, + 0.014480751939117908, 0.012974176555871964, -0.019793834537267685, -0.017005067318677902, + 0.002508287550881505, 0.0099129443988204, -0.0054413010366261005, 0.02415328472852707, + -0.012196848168969154, -0.01674862951040268, -0.021364519372582436, -0.008999383077025414, + 0.02915383316576481, -0.005757841747254133, -0.017694244161248207, 0.0009611428831703961, + 0.01039376575499773, -0.02242232672870159, 0.02065931260585785, -0.008686848916113377, + 0.0031433729454874992, 0.027198491618037224, 0.039908215403556824, -0.012549450621008873, + -0.0014244348276406527, 0.006170547567307949, -0.0039247083477675915, -0.029554517939686775, + 0.029538489878177643, -0.012012532912194729, 0.007825376465916634, 0.05548684298992157, + 0.013454998843371868, -0.010217464528977871, 0.005224931053817272, -0.009095546789467335, + -0.031606025993824005, 0.005849999375641346, -0.016476163640618324, -0.01619568280875683, + -0.013647327199578285, -0.01145157404243946, 0.019425204023718834, 0.013727464713156223, + 0.0023920887615531683, -0.015250067226588726, -0.006050341762602329, -0.03782465308904648, + 0.011804177425801754, -0.02325575053691864, -0.009359999559819698, -0.010281573981046677, + 0.009416094981133938, 0.04830656945705414, -0.0071722595021128654, -0.027807531878352165, + 0.022742874920368195, 0.049075886607170105, 0.019569450989365578, -0.003261575009673834, + 0.017453834414482117, -0.008823081851005554, 0.020883696153759956, -0.03240739554166794, + -0.005689725745469332, -0.018591778352856636, -0.018591778352856636, 0.011371437460184097, + 0.0034338694531470537, 0.0060583557933568954, 0.0037263694684952497, 0.002534331986680627, + -0.02397698350250721, -0.012597532942891121, 0.028464654460549355, -0.02114013582468033, + -0.003802499733865261, -0.016299862414598465, 0.007729211822152138, 0.025355340912938118, + -0.05183259770274162, 0.02844862826168537, -0.014536848291754723, -0.01484938245266676, + -0.01825520396232605, 0.008518560789525509, 0.013903765939176083, -0.01518595777451992, + 0.011940409429371357, 0.010409793816506863, 0.02692602574825287, 0.01844753324985504, + -0.013759518973529339, 0.006014280486851931, -0.03157396987080574, -0.0013623286504298449, + 0.0072363694198429585, 0.006098424084484577, 0.0022458387538790703, 0.02602849155664444, + -0.020162463188171387, -0.021220272406935692, 0.007404657080769539, -0.01400794368237257, + 0.02386479265987873, -0.026797804981470108, -0.005369177553802729, 0.012092670425772667, + -0.005910102277994156, 0.0022899142932146788, -0.0022638696245849133, 0.008101848885416985, + 0.01418424490839243, -0.018303286284208298, -0.05183259770274162, -0.03301643580198288, + 0.011219177395105362, -0.028528764843940735, -0.006006266456097364, 0.014921505935490131, + -0.00653517059981823, 0.0023359928745776415, -0.033465202897787094, 0.007116163615137339, + ], + index: 15, + }, + { + title: "August Penguin", + text: "August Penguin is an annual gathering (since 2002) of the Israeli Free Software community, organized by Hamakor. The conference is held on the first Friday in August (hence its name), usually in the Tel Aviv area. It lasts one day and includes technical talks, projects' status updates, social meetings and followed by a keysigning party.During the conference, the winner of Hamakor Prize for free software-related achievements is announced.", + vector: [ + -0.046535201370716095, 0.022717414423823357, -0.021049104630947113, -0.0025867680087685585, + -0.028041807934641838, 0.03436008840799332, -0.030845988541841507, 0.042240191251039505, + 0.005089233163744211, 0.042701639235019684, -0.023551568388938904, -0.08597121387720108, + 0.016434628516435623, 0.010764149948954582, -0.03409386798739433, -0.009903372265398502, + -0.021066851913928986, -0.01883060671389103, 0.02085387520492077, -0.01477519329637289, + 0.022628674283623695, 0.03608164191246033, -0.0627213567495346, 0.015059160999953747, + 0.018076317384839058, 0.001227938337251544, 0.051291659474372864, -0.0014808470150455832, + 0.0054086968302726746, 0.028574246913194656, 0.04078485816717148, 0.0055107478983700275, + 0.06673240661621094, -0.007316604722291231, -0.01468645315617323, -0.033579178154468536, + 0.012166240252554417, 0.042098209261894226, -0.021137842908501625, -0.00961053092032671, + -0.03189311921596527, 0.0032434433232992887, -0.038797084242105484, -0.0005740362103097141, + -0.05565766245126724, -0.0002394590701442212, -0.03331295773386955, -0.032620787620544434, + -0.03425360098481178, 0.010879511944949627, 0.021049104630947113, 0.05853283777832985, + 0.023036876693367958, 0.04465391859412193, -0.0034675116185098886, 0.0005634983535856009, + 0.014180636033415794, 0.03579767420887947, 0.03915204480290413, -0.04089134559035301, + -0.018040820956230164, -0.0038868074771016836, -0.0180496945977211, -0.02328534983098507, + 0.03618812933564186, 0.0015352002810686827, -0.03602840006351471, 0.04291461408138275, + 0.01690495014190674, 0.04369552433490753, 0.009752514772117138, -0.025592586025595665, + 0.00992999505251646, 0.049197398126125336, 0.05597712844610214, -0.04834549501538277, + 0.04823900759220123, 0.0019522777292877436, -0.03148491680622101, 0.004805265460163355, + 0.018564386293292046, -0.012556695379316807, 0.006797476205974817, -0.032691776752471924, + 0.022788405418395996, -0.024332480505108833, 0.00010898368782363832, -0.08511930704116821, + 0.011598304845392704, 0.001750394469127059, 0.001897924579679966, -0.03214159235358238, + -0.03979096934199333, -0.0012124088825657964, -0.0019445130601525307, 0.03173338621854782, + 0.00222737155854702, -0.028787223622202873, 0.004854072351008654, 0.00015002589498180896, + -0.06914612650871277, -0.027402879670262337, 0.001524107763543725, -0.022096235305070877, + -0.0023737922310829163, 0.0536343939602375, 0.00867876224219799, 0.002904013264924288, + -0.012219483964145184, 0.025805562734603882, 0.02335634082555771, 0.010835141874849796, + 0.0023582628928124905, 0.02907119132578373, -0.04507986828684807, 0.04525734856724739, + 0.013337606564164162, -0.027864327654242516, -0.03663183003664017, 0.05214356258511543, + -0.01027608010917902, -0.04011043533682823, 0.036702822893857956, -0.020694144070148468, + -0.014340367168188095, -0.02994084171950817, -0.02046342007815838, 0.021457307040691376, + 0.04593177139759064, -0.03331295773386955, -0.015511734411120415, -0.012831789441406727, + 0.027314141392707825, -0.02392427623271942, 0.0367383174598217, -0.02429698407649994, + 0.010160718113183975, 0.01867087371647358, 0.0055329324677586555, 0.02321435697376728, + 0.03798067569732666, -0.020889371633529663, -0.030508777126669884, -0.008629955351352692, + -0.023817788809537888, 0.002307237358763814, -0.04681916907429695, -2.7644558940664865e-5, + -0.03352593258023262, 0.012556695379316807, 0.013807928189635277, -0.03617038205265999, + 0.04135279357433319, -0.0035385035444051027, 0.039187539368867874, -0.007458588574081659, + -0.033099982887506485, 0.0014209476066753268, 0.0018003106815740466, 0.026923684403300285, + -0.01090613380074501, -0.018724119290709496, 0.06964307278394699, 0.044866893440485, + 0.00814188551157713, 0.0006039859144948423, -0.05725498124957085, -0.10066653788089752, + 0.0033277461770921946, 0.02539735846221447, 0.002633356489241123, -0.02468743920326233, + -0.00925557129085064, -0.037093278020620346, -0.03565569221973419, 0.00438596960157156, + -0.015068034641444683, 0.01802307367324829, -0.05512522533535957, 0.037945181131362915, + 0.005080359056591988, 0.0370577797293663, 0.016745219007134438, 0.033419445157051086, + 0.00660668546333909, 0.012290475890040398, 0.04980083182454109, -0.03579767420887947, + -0.025219878181815147, -0.03256754204630852, -0.0015562759945169091, 0.00996549054980278, + 0.06414119899272919, 0.005306645762175322, 0.05619010329246521, 0.009237823076546192, + 0.018883850425481796, 0.03961348906159401, -0.03256754204630852, 0.00282414723187685, + -0.0022495563607662916, -0.013550582341849804, -0.030615264549851418, 0.031076712533831596, + 0.017898837104439735, 0.051078684628009796, 0.05473477020859718, 0.02383553609251976, + 0.059278253465890884, -0.03313547745347023, 0.00208095065318048, -0.04689016193151474, + -0.033028990030288696, 0.07113390415906906, 0.019984224811196327, -0.02610727772116661, + 0.026834946125745773, -0.006535693537443876, -0.0023693551775068045, 0.025663578882813454, + -0.0012445771135389805, -0.011225597001612186, -0.010267206467688084, -0.003309998195618391, + 0.02158154360949993, -0.05359889939427376, 0.033011242747306824, -0.04667718708515167, + 0.015848945826292038, 0.03267402946949005, -0.05512522533535957, -0.0533149316906929, + -0.005311083048582077, -0.0243857242166996, 0.00529333483427763, 0.006433642469346523, + -0.021084599196910858, 0.011358707211911678, 0.00662443321198225, 0.00957503542304039, + 0.018102940171957016, -0.021049104630947113, -0.035282984375953674, -0.04025241732597351, + 0.011633800342679024, 0.012308224104344845, 0.003019375028088689, 0.030650760978460312, + -0.0679747611284256, 0.02328534983098507, 0.02703017368912697, 0.01738414540886879, + -0.03386314585804939, 0.006997141055762768, -0.011811280623078346, 0.053811874240636826, + -0.008434727787971497, 0.013665944337844849, 0.0027043484151363373, 0.01160717848688364, + -0.02578781358897686, 0.047387104481458664, -0.011181226931512356, 0.011784658767282963, + -0.027491619810461998, -0.026160521432757378, -0.014091895893216133, 0.022238219156861305, + -0.006446953397244215, -0.0022828339133411646, 0.015094656497240067, 0.01738414540886879, + 0.04103332757949829, -0.021759023889899254, 0.015174522995948792, 0.02624926157295704, + -0.02156379446387291, 0.02335634082555771, -0.013594952411949635, -0.021049104630947113, + -0.06744232028722763, -0.023693552240729332, -0.04071386530995369, -0.00738315936177969, + 0.04547032341361046, 0.021634787321090698, -0.03152041137218475, -0.006668803282082081, + 0.008079768158495426, -0.05012029409408569, -0.015671465545892715, 0.013816801831126213, + 0.025610335171222687, 0.02720765210688114, -0.016203904524445534, -0.019824493676424026, + 0.007400907576084137, 0.024953659623861313, -0.015582726337015629, 0.014287123456597328, + -5.806223634863272e-5, 0.0360993891954422, -0.07170183956623077, -0.011119109578430653, + 0.04383751004934311, -0.011642674915492535, -0.0487714484333992, 0.04657069966197014, + -0.011367580853402615, -0.026763953268527985, 0.06229540705680847, -0.04586077854037285, + -0.0178899634629488, -0.03954249992966652, -0.012716427445411682, -0.037554726004600525, + -0.0040997834876179695, -0.01724216155707836, 0.022220470011234283, -0.01867087371647358, + 0.017685862258076668, -0.00929994136095047, -0.05377637967467308, 0.030118321999907494, + 0.036152634769678116, -0.017508381977677345, 0.016975942999124527, -0.0393650196492672, + -0.0009533992852084339, -0.021049104630947113, -0.04280812665820122, -0.005763656459748745, + 0.02314336597919464, 0.046215739101171494, 0.06751331686973572, -0.023640308529138565, + -0.011474069207906723, 0.03031354956328869, 0.01828041858971119, 0.034271348267793655, + 0.010852889157831669, 0.0006866249605081975, 0.08362848311662674, 0.011332085356116295, + -0.025823310017585754, 0.0002441733668092638, 0.0177923496812582, -0.01473082322627306, + 0.02882271818816662, -0.001486393273808062, 0.001151400152593851, -0.003527411026880145, + 0.07014001905918121, 0.019593769684433937, 0.04642871394753456, -0.0029461646918207407, + 0.0481325201690197, -0.056864526122808456, 0.007214553654193878, 0.0308814849704504, + 0.026710709556937218, -0.03464405611157417, 0.05913626775145531, 0.0178899634629488, + 0.018777363002300262, -0.011234471574425697, 0.05246302857995033, 0.016780715435743332, + 0.010213962756097317, 0.020534412935376167, -0.07709722220897675, 0.05065273493528366, + -0.022859398275613785, -0.050439756363630295, 0.03345494344830513, -0.02165253460407257, + -0.016913823783397675, 0.0009606094099581242, -0.009770262986421585, -0.039436012506484985, + -0.024350227788090706, 0.015156774781644344, 0.007511832285672426, 0.05015578866004944, + 0.09051469713449478, 0.007205679547041655, 0.02845001220703125, 0.002571238437667489, + 0.008328239433467388, -0.03483928367495537, -0.037235260009765625, 0.027757840231060982, + 0.009761388413608074, 0.0336679182946682, -0.02266417071223259, -0.04042989760637283, + 0.03389864042401314, 0.019647013396024704, 0.011474069207906723, -0.015769079327583313, + 0.014233879745006561, -0.018546639010310173, 0.006056498270481825, 0.02665746584534645, + 0.017605995759367943, 0.00929994136095047, -0.03634786233305931, -0.055302705615758896, + -0.004831887315958738, -0.00558617664501071, -0.015023664571344852, -0.03469730168581009, + -0.024261487647891045, 0.01875961385667324, 0.0024691876024007797, 0.02727864496409893, + -0.05963321030139923, 0.03017156571149826, -0.0009267773129977286, -0.031165452674031258, + 0.03400512784719467, -0.01899033784866333, -0.029124435037374496, -0.001708243042230606, + 0.0016516713658347726, 0.0028330213390290737, 0.042240191251039505, 0.011349832639098167, + -0.0022761784493923187, 0.0016494528390467167, 0.003491915063932538, 0.0071125030517578125, + -0.0031125519890338182, -0.012698679231107235, 0.027491619810461998, -0.02461644820868969, + -0.07525143027305603, 0.015955433249473572, 0.02220272272825241, -0.023196609690785408, + -0.020498916506767273, -0.015201144851744175, -0.01761486940085888, -0.043802015483379364, + -0.014863932505249977, -0.08029185980558395, -0.06715835630893707, -0.020818380638957024, + 0.045612309128046036, 0.02007296495139599, 0.02798856422305107, -0.00854121521115303, + -0.02820153906941414, -0.018848353996872902, 0.04795503988862038, -0.009504043497145176, + -0.0001365762436762452, 0.013257740996778011, 0.006424768827855587, 0.01719779148697853, + 0.020747387781739235, 0.025060147047042847, 0.06651942431926727, -0.04532834142446518, + 0.020339185371994972, 0.0037514790892601013, 0.028503255918622017, -0.02750936895608902, + 0.010187339968979359, 0.013373102992773056, -0.006331591866910458, -0.006256162654608488, + -0.015760205686092377, 0.02681719698011875, -0.005568428430706263, -0.023888779804110527, + -0.006930585950613022, -0.012796293012797832, -0.02142181061208248, -0.008847367949783802, + 0.008550088852643967, -0.013160127215087414, -0.013736936263740063, -0.03150266408920288, + -0.010222836397588253, -0.004084253683686256, -0.02000197395682335, -0.044866893440485, + -0.018653126433491707, 0.04397949203848839, 0.032478801906108856, 0.0533149316906929, + 0.02734963595867157, -0.032159339636564255, -0.005217906087636948, 0.012840663082897663, + -0.019203314557671547, -0.02220272272825241, 0.002928416710346937, 0.003531847847625613, + -0.04632222652435303, -0.014393611811101437, 0.006677677389234304, 0.020285941660404205, + 0.006375961471349001, -0.05228554829955101, -0.047884050756692886, 0.014553342945873737, + 0.025113390758633614, -0.01938079297542572, 0.0004905652604065835, 0.04745809733867645, + -0.032159339636564255, -0.023267600685358047, 0.0015784609131515026, 0.019363045692443848, + 0.008629955351352692, 0.02491816319525242, 0.005612798500806093, -0.001560712931677699, + 0.01156280841678381, -0.012317097745835781, -0.010489055886864662, -0.0025557090993970633, + 0.028343522921204567, -0.03201735392212868, -0.04571879655122757, 0.005351015832275152, + 0.00320351030677557, -0.050901204347610474, -0.026231514289975166, -0.005674916319549084, + -0.013355354778468609, 0.028804970905184746, 0.010329323820769787, 0.023658057674765587, + -0.010311576537787914, 0.03336620330810547, 0.02546835131943226, -0.03783869370818138, + -0.06676790118217468, 0.0054974365048110485, -0.024598699063062668, 0.06751331686973572, + -0.022397950291633606, -0.016665352508425713, 0.02774009294807911, 0.02672845683991909, + 0.022380203008651733, -0.003500788938254118, -0.04859396815299988, 0.025432854890823364, + -0.03620588034391403, 0.007023762911558151, -0.03079274483025074, 0.02688818983733654, + -0.043269574642181396, 0.04025241732597351, 0.003385427175089717, -0.036383356899023056, + 0.0412818007171154, -0.005240091122686863, 0.06101755425333977, 0.0006855156971141696, + -0.03581542149186134, -0.018812857568264008, 0.04767107218503952, 0.032461054623126984, + -0.012654309161007404, -0.008785249665379524, 0.01641688123345375, 0.017801223322749138, + -0.0025157760828733444, 0.019948728382587433, 0.010702031664550304, -0.008408105000853539, + -0.0141451396048069, 0.01977124996483326, 0.009894498623907566, -0.03986196219921112, + 0.006806350313127041, 0.020179452374577522, -0.011136856861412525, 0.012973773293197155, + 0.028148295357823372, 0.001048239995725453, 0.0019533869344741106, -0.008381483145058155, + -0.06183396279811859, -0.032194834202528, 0.006216229870915413, 0.018014200031757355, + 0.00662443321198225, 0.029479393735527992, -0.02493591234087944, -0.008119700476527214, + -0.013373102992773056, -0.0011281059123575687, 0.01059554424136877, -0.035442713648080826, + 0.006362650543451309, 0.000334993121214211, 0.0007121376693248749, 0.00937980692833662, + -0.048274505883455276, 0.0021364130079746246, 0.006220666691660881, -0.013532834127545357, + 0.004354910459369421, -0.046464212238788605, -0.0013433002168312669, -0.0019145633559674025, + 0.009601657278835773, 0.041920728981494904, -0.02314336597919464, -0.004201834090054035, + 0.030065078288316727, 0.01922106184065342, -0.026781700551509857, -0.018937094137072563, + -0.0009173487196676433, -0.006566752679646015, 0.022948138415813446, -0.011110235005617142, + 0.0168339591473341, 0.013852298259735107, 0.006100867874920368, -0.011855650693178177, + 0.02337408997118473, -0.016567738726735115, -0.026462238281965256, 9.532606054563075e-5, + -0.008811871521174908, 0.0333484522998333, 0.04465391859412193, -0.010515677742660046, + 0.03597515448927879, -0.018848353996872902, -0.005067048128694296, -0.038264643400907516, + -0.04994281381368637, 0.016106290742754936, -0.021386316046118736, 0.010160718113183975, + -0.013071387074887753, -0.028804970905184746, 0.02220272272825241, -0.01375468447804451, + 0.033011242747306824, -0.015928812325000763, -0.032709527760744095, -0.036773812025785446, + 0.012672057375311852, 0.004232893232256174, 0.01050680410116911, -0.0002823038084898144, + 0.0007126923301257193, -0.029656874015927315, -0.011651548556983471, 0.041991718113422394, + -0.0396844819188118, -0.04078485816717148, -0.025273123756051064, -0.005839085206389427, + -0.013373102992773056, -0.03503451123833656, -0.036844804883003235, -0.030278053134679794, + -0.002702130004763603, -0.034892529249191284, 0.01196213811635971, 0.009832380339503288, + -0.010639913380146027, -0.005257838871330023, -0.02337408997118473, 0.0012956025311723351, + -0.04007493704557419, -0.004368221387267113, -0.001297821057960391, 0.005262276157736778, + 0.059207260608673096, -0.006926149129867554, -0.030597517266869545, -0.018564386293292046, + -0.05086570978164673, -0.009051470085978508, -0.01285841129720211, 0.021066851913928986, + -0.01962926611304283, -0.02711891382932663, -0.009433051571249962, -0.004836324602365494, + -0.04018142446875572, 0.0050759222358465195, 0.015609348192811012, 0.024101756513118744, + -0.013053638860583305, 0.025663578882813454, -0.013781306333839893, -0.0487714484333992, + -0.01954052597284317, 0.0261782705783844, -0.010063104331493378, 0.008248373866081238, + -0.025361862033605576, 4.634579818230122e-5, -0.014899428933858871, 0.008754190988838673, + -0.01157168298959732, -0.006806350313127041, -0.02158154360949993, 0.01410076953470707, + -0.005657168570905924, -0.015627095475792885, -0.04795503988862038, 0.015281010419130325, + 0.018351411446928978, 0.01685170643031597, -0.002562364563345909, -0.006429205648601055, + 0.02335634082555771, -0.0007337680435739458, -0.044263459742069244, -0.06215342506766319, + -0.017091304063796997, 0.013053638860583305, -0.0032146028243005276, 0.0018424621084704995, + 0.02971011772751808, 0.009459673427045345, -0.045221854001283646, 0.009424176998436451, + 0.023178860545158386, 0.016390258446335793, 0.0012911654775962234, -0.0070104519836604595, + -0.033561430871486664, 0.03702228516340256, 0.04969434440135956, -0.03437783569097519, + 0.017206666991114616, -0.019948728382587433, 0.022131729871034622, -0.003270065179094672, + 0.004115312825888395, -0.023817788809537888, 0.014659831300377846, 0.013550582341849804, + -0.009486295282840729, 0.00881630927324295, -0.03409386798739433, -0.03375665843486786, + 0.020747387781739235, -0.013355354778468609, 0.02500690333545208, -0.0068374089896678925, + 0.012822914868593216, -0.017783476039767265, -0.0011624926701188087, 0.0029683494940400124, + -0.0355846993625164, -0.020729640498757362, -0.02140406332910061, 0.02882271818816662, + -0.024740682914853096, 0.06651942431926727, -0.007392033468931913, 0.002983879065141082, + -0.013683692552149296, 0.030420036986470222, 0.000557952094823122, -0.03570893406867981, + 0.012618813663721085, 0.013745809905230999, 0.026125026866793633, -0.006708736531436443, + -0.014704201370477676, -0.006353776901960373, -0.005319956690073013, -0.009175705723464489, + -0.03386314585804939, 0.022096235305070877, -0.040678370743989944, -0.009237823076546192, + -0.007325478829443455, -0.030508777126669884, 0.049587856978178024, 0.01761486940085888, + -0.0034475449938327074, 0.01535200234502554, -0.00662443321198225, -0.020658647641539574, + 0.046606194227933884, -0.024421220645308495, 0.011979886330664158, 0.006948334164917469, + 0.041991718113422394, 0.008390357717871666, 0.026444489136338234, -0.02836127206683159, + 0.01293827686458826, -0.004432558082044125, 0.01701143942773342, -0.013071387074887753, + -0.022167226299643517, -0.013807928189635277, -0.025574838742613792, -0.025805562734603882, + -0.018156183883547783, 0.040358904749155045, -0.00674423249438405, -0.010160718113183975, + 0.031449418514966965, 0.038016173988580704, -0.03634786233305931, -0.03593965992331505, + -0.023249853402376175, -0.016390258446335793, -0.03109445981681347, -0.013692566193640232, + -0.021688031032681465, 0.0014009810984134674, -0.0037736641243100166, -0.010027608834207058, + 0.05807138979434967, 0.03688030317425728, 0.019505029544234276, 0.03308223560452461, + -0.026373498141765594, 0.027260897681117058, -0.02626701071858406, -0.04767107218503952, + -0.04082035273313522, 0.002411506837233901, -0.005368764046579599, 0.030136069282889366, + 0.016727471724152565, 0.016940446570515633, -0.0002433414338156581, 0.05246302857995033, + -0.008212877437472343, 0.0002978332922793925, 0.05807138979434967, -0.03819365054368973, + -0.0159376859664917, -0.002606734400615096, -0.03281601518392563, -0.048097025603055954, + 0.007081443909555674, 0.0093443114310503, 0.04046539217233658, -0.005626109428703785, + 0.002344951732084155, -0.019238809123635292, -0.02578781358897686, -0.0282902792096138, + -0.005142476875334978, -0.0037514790892601013, -0.014837310649454594, -0.003755916142836213, + 0.003394301049411297, -0.021865511313080788, -0.03281601518392563, -0.026000790297985077, + -0.004297229461371899, -0.014704201370477676, 0.010391442105174065, -0.04603825882077217, + 0.001153618679381907, -0.03134293109178543, 0.006926149129867554, 0.042169198393821716, + 0.041210807859897614, 0.02736738510429859, 0.010560047812759876, -0.007174620870500803, + 0.0073387897573411465, 0.0018003106815740466, 0.016869455575942993, -0.007023762911558151, + -0.020445672795176506, 0.002342733321711421, 0.008878426626324654, -0.02241569757461548, + 0.03595740720629692, -0.029035694897174835, 0.015263262204825878, 0.01946953311562538, + -0.0396844819188118, 0.010205088183283806, 0.008536778390407562, 0.00595888402312994, + -0.06666141003370285, 0.0022894893772900105, 0.000965046405326575, 0.027012424543499947, + -0.026373498141765594, -0.010142970830202103, -0.06350227445363998, -0.019327549263834953, + 0.003245661733672023, 0.023303097113966942, 0.05917176604270935, -0.00640702061355114, + -0.020445672795176506, -0.0021020262502133846, 0.0064513906836509705, -0.021120095625519753, + -0.0017370835412293673, -0.015564978122711182, -0.0093443114310503, 0.022255966439843178, + -0.03444882854819298, -0.02397751994431019, -0.012450207956135273, -0.009663774631917477, + -0.01125221885740757, -0.018617630004882812, -0.008088641799986362, -0.016337014734745026, + 0.006446953397244215, 0.028432263061404228, 0.006118616089224815, 0.01625715009868145, + -0.0020632026717066765, -0.031005719676613808, 0.010293828323483467, 0.03925853222608566, + 0.02507789433002472, 0.021315323188900948, 0.01531650684773922, 0.04507986828684807, + 0.04018142446875572, 0.03313547745347023, -0.03688030317425728, 0.033951885998249054, + 0.004226237535476685, 0.007893414236605167, 0.005444192793220282, 0.005577302537858486, + -0.0007143561961129308, 0.013319858349859715, 0.002083169063553214, -0.01071090530604124, + 0.014020903967320919, -0.02976336143910885, -0.01582232303917408, -0.013701439835131168, + -0.006966081913560629, -0.005750345531851053, 0.011598304845392704, -0.023001382127404213, + 0.0064203315414488316, 0.01019621454179287, 0.0006771963671781123, 0.02001972123980522, + -0.0370577797293663, -0.012308224104344845, 0.02734963595867157, 0.03306448459625244, + -0.010835141874849796, 0.020179452374577522, -0.009291067719459534, 0.007835732772946358, + -0.01657661236822605, -0.017330901697278023, -0.024261487647891045, 0.007906724698841572, + -0.03790968284010887, 0.008887301199138165, 0.010302701964974403, -0.004110876005142927, + 0.024509960785508156, 0.006047624163329601, 0.036702822893857956, -0.03420035541057587, + -0.01579570211470127, 0.007006015162914991, -0.005697101354598999, -0.0016616545617580414, + -0.009903372265398502, -0.023267600685358047, -0.01090613380074501, -0.0001421224878868088, + -0.0299230944365263, -0.013665944337844849, -0.005994379986077547, 0.018102940171957016, + 0.002793088322505355, 0.03288700804114342, 0.005750345531851053, 0.004787517711520195, + 0.033170975744724274, -0.015298758633434772, 0.036383356899023056, 0.04649970680475235, + -0.007130250800400972, 0.006859594024717808, 0.01191776804625988, -0.013035890646278858, + 0.0063493396155536175, -0.0007814657292328775, 0.043731022626161575, 0.01187339797616005, + 0.03540721908211708, 0.06268586218357086, -0.0016904950607568026, 0.033330705016851425, + 0.00312586291693151, 0.005195721052587032, 0.02798856422305107, 0.03063301369547844, + 0.019167818129062653, -0.03320647031068802, 0.05682903155684471, 0.009149083867669106, + 0.01391441561281681, -0.02103135548532009, -0.008749754168093204, 0.003840218996629119, + -0.025805562734603882, 0.011491816490888596, -0.015254388563334942, -0.021528299897909164, + -0.01641688123345375, 0.022397950291633606, 0.01930980198085308, 0.009362059645354748, + 0.02876947447657585, -0.007139124907553196, -0.006495760753750801, 0.014872807078063488, + 0.024563204497098923, 0.011127983219921589, -0.014304871670901775, -0.0016095199389383197, + -0.006690988317131996, 0.008274995721876621, 0.007037073839455843, 0.014721949584782124, + -0.00527558708563447, -0.009184579364955425, -0.012095248326659203, 0.015005916357040405, + -0.032798267900943756, -0.016097417101264, -0.0009129117242991924, -0.007179057691246271, + 0.00594113627448678, 0.011083613149821758, -0.03393413871526718, -0.03579767420887947, + 0.0064868866465985775, -0.005705975461751223, -0.04330506920814514, 0.004578978754580021, + -0.014642083086073399, -0.015990929678082466, 0.017801223322749138, 0.006464701611548662, + 0.0007121376693248749, -0.0052001578733325005, 0.00646913843229413, 0.0011458538938313723, + -0.015210018493235111, -0.01747288554906845, -0.009628279134631157, 0.02836127206683159, + -0.008785249665379524, 0.009308815002441406, -0.014003155753016472, -0.02758035995066166, + 0.01410964410752058, 0.007161309942603111, 0.018883850425481796, -0.016478998586535454, + -0.03492802381515503, -0.025450602173805237, -0.0017293187556788325, 0.0005304982187226415, + -0.012796293012797832, 0.013497338630259037, 0.00437931390479207, 0.018617630004882812, + 0.005612798500806093, -0.004632222466170788, -0.021084599196910858, 0.004618911538273096, + 0.024953659623861313, -0.03214159235358238, -0.01687832921743393, 0.017055807635188103, + -0.0010881730122491717, 0.019238809123635292, -0.03203510493040085, 0.01227272767573595, + -0.036702822893857956, 0.012618813663721085, -0.028591996058821678, 0.021350819617509842, + -0.0352652370929718, -0.01117235329002142, -0.013319858349859715, 0.005018241237848997, + -0.012902781367301941, 0.007494084537029266, -0.004991619382053614, 0.045363835990428925, + 0.0013543927343562245, 0.0049383752048015594, 0.0057370346039533615, 0.028964702039957047, + -0.015156774781644344, -0.0027553739491850138, -4.204746073810384e-5, 0.0007920035859569907, + 0.026604222133755684, -0.010329323820769787, 0.03127194195985794, 0.005102544091641903, + -0.008243936114013195, -0.0053377049043774605, 0.016567738726735115, 0.023782292380928993, + 0.0006483558681793511, 0.035904161632061005, -0.023959772661328316, -0.021368566900491714, + 0.005262276157736778, -0.008115263655781746, 0.012485703453421593, -0.006398146506398916, + -0.010994873009622097, -0.04259515181183815, 0.00881630927324295, -0.007613883353769779, + -0.022167226299643517, -0.007702623028308153, -0.006473575718700886, -0.0390455536544323, + -0.051291659474372864, 0.014278249815106392, -0.014828437007963657, 0.0026688524521887302, + 0.00304821552708745, -0.015298758633434772, -0.005559554789215326, 0.029798857867717743, + 0.0030326859559863806, 0.006850719917565584, 0.007165746763348579, 0.01120784878730774, + 0.03432459384202957, 0.022380203008651733, 0.021279826760292053, -0.015769079327583313, + -0.004261733498424292, -0.03625912219285965, 0.016177283599972725, 0.025699075311422348, + -0.022948138415813446, -0.017135674133896828, 0.02062315307557583, -0.019238809123635292, + -0.022096235305070877, 0.0001421224878868088, 0.02314336597919464, -0.023817788809537888, + 0.036152634769678116, 0.03773220628499985, -0.00020368579134810716, -0.031538158655166626, + 0.0055329324677586555, -0.027385132387280464, 0.0026577599346637726, 0.006859594024717808, + -0.017641492187976837, 0.0269769299775362, 0.019913233816623688, 0.01970025710761547, + 0.021865511313080788, 0.03178663179278374, -0.014863932505249977, -0.023871032521128654, + -0.009362059645354748, -0.015147900208830833, -0.0014165106695145369, -0.024669691920280457, + 0.017508381977677345, 0.018724119290709496, -0.010737528093159199, 0.008252810686826706, + 0.007125813979655504, 0.036454349756240845, -0.016958193853497505, -0.009646027348935604, + -0.023161113262176514, 0.028698483482003212, 0.024651944637298584, 0.027935320511460304, + -0.01852888986468315, 0.019363045692443848, 0.019274305552244186, 0.007396470755338669, + -0.02477617934346199, -0.030295800417661667, -0.013417473062872887, 0.05164662003517151, + 0.006983830127865076, 0.00023127836175262928, -0.009867876768112183, 3.334679058752954e-5, + 0.0013477371539920568, 0.021794518455863, 0.005106981378048658, -0.025184383615851402, + -0.0022207158617675304, -0.007179057691246271, -0.03652534261345863, -0.005106981378048658, + -0.002759810769930482, 0.026692962273955345, -0.009521790780127048, -0.02273516170680523, + -0.037483733147382736, -0.006753106135874987, 0.055764153599739075, 0.007525143213570118, + 0.038477618247270584, -0.015174522995948792, -0.02484717220067978, -0.02782883122563362, + 0.010852889157831669, 0.0018502268940210342, 0.004996056202799082, -0.005053737200796604, + -0.012121870182454586, 0.0010105256224051118, -0.03581542149186134, -0.010107474401593208, + 0.020889371633529663, -0.000744305900298059, 0.019274305552244186, 0.02023269608616829, + 0.0089449817314744, 0.01731315441429615, 0.012618813663721085, -0.025752319023013115, + -0.01641688123345375, -0.0003416486142668873, 0.02087162435054779, 0.013009268790483475, + -0.029639126732945442, -0.016097417101264, -0.03940051421523094, 0.023249853402376175, + 0.03070400469005108, 0.000706591468770057, 0.0300828255712986, 0.012672057375311852, + -0.016700848937034607, 0.009850128553807735, -0.0036982353776693344, 0.01543186791241169, + 0.0364188551902771, 0.0008901720866560936, -0.03444882854819298, 0.013541708700358868, + 0.015653718262910843, -0.014473477378487587, 0.0013277707621455193, 0.035282984375953674, + 0.01899033784866333, 0.012769671157002449, -0.008598895743489265, 0.018724119290709496, + -0.0007276671822182834, -0.029337409883737564, 0.0168339591473341, -0.02305462583899498, + 0.035602446645498276, 0.006682114209979773, -0.019345298409461975, 0.008856241591274738, + 0.009202327579259872, -0.022326959297060966, 0.025113390758633614, 0.02663971669971943, + -0.019718006253242493, -0.008257247507572174, -0.026373498141765594, 0.025894302874803543, + -0.005195721052587032, -0.011864524334669113, 0.01793433353304863, -0.010391442105174065, + -0.003097022417932749, -0.001344409422017634, -0.03922303393483162, 0.02195425145328045, + -0.004867383278906345, 0.021705778315663338, -0.020108461380004883, -0.003966673277318478, + -0.004911753349006176, 0.010222836397588253, -0.008297180756926537, -0.004836324602365494, + 0.029053442180156708, 0.02431473135948181, -0.009752514772117138, -0.021208835765719414, + -0.023888779804110527, 0.008514593355357647, -0.019558273255825043, 0.026000790297985077, + 0.04195622354745865, -0.06424768269062042, -0.014828437007963657, -0.019114574417471886, + -0.005129165947437286, -0.007019326090812683, -0.010027608834207058, 0.018191678449511528, + 0.01690495014190674, 0.004195178858935833, -0.01749950833618641, -0.0263380017131567, + 0.008199566975235939, 0.0035850917920470238, 0.01071090530604124, 0.008785249665379524, + 0.01669197529554367, 0.012281602248549461, -0.04593177139759064, -0.02601853758096695, + 0.01836915872991085, 0.008887301199138165, -0.015689214691519737, -0.03063301369547844, + -0.006806350313127041, -0.039577994495630264, -0.000306984584312886, 0.06584500521421432, + 0.018848353996872902, -0.0032611913047730923, 0.02431473135948181, -0.015848945826292038, + 0.0030948040075600147, -0.02062315307557583, -0.019664760679006577, 0.014970420859754086, + 0.01962926611304283, -0.018493395298719406, 0.006810787133872509, 0.05704200640320778, + 0.025184383615851402, 0.030544273555278778, 0.023267600685358047, 0.05047525465488434, + 0.026852693408727646, -0.04742260277271271, 0.01579570211470127, -0.02158154360949993, + 0.019647013396024704, 0.00018358066154178232, 0.027633603662252426, -0.0367383174598217, + 0.004703214392066002, -0.004836324602365494, -0.0006361541454680264, 0.01586669310927391, + -0.0008835166227072477, 0.018866103142499924, 0.003498570527881384, -0.012707553803920746, + 0.001226829132065177, 0.023107869550585747, 0.042701639235019684, 0.006997141055762768, + 0.018777363002300262, 0.0017404112732037902, 0.005395385902374983, 0.011048117652535439, + 0.017561625689268112, 0.012254980392754078, 0.014198383316397667, 0.007059258874505758, + -0.0015363094862550497, 0.004916190169751644, -0.005053737200796604, -0.01899033784866333, + -0.014127391390502453, -0.008146322332322598, 0.014313745312392712, 0.005506310611963272, + 0.01586669310927391, 0.041459280997514725, -0.01383455004543066, 0.015050286427140236, + 0.003380990121513605, -0.024722935631871223, 0.024563204497098923, 0.005319956690073013, + 0.021279826760292053, 0.01222835760563612, -0.018156183883547783, -0.004654407501220703, + -0.012654309161007404, 0.005719286389648914, 0.01701143942773342, 0.014402485452592373, + 0.0005928934551775455, 0.013266614638268948, -0.022770658135414124, 0.026941433548927307, + -0.038477618247270584, 0.03666732460260391, -0.018724119290709496, 0.016434628516435623, + -0.022788405418395996, -0.031076712533831596, -0.01907907798886299, 0.002611171454191208, + 0.02955038659274578, 0.03033129684627056, 0.0011403076350688934, 0.017872216179966927, + -0.011456320993602276, 0.014020903967320919, -0.020303688943386078, -0.0014753007562831044, + 0.053563401103019714, -0.029053442180156708, -0.017366398125886917, -0.02110234834253788, + -0.04635772109031677, 0.0015784609131515026, -0.02158154360949993, -0.04344705492258072, + 0.009450798854231834, -0.018848353996872902, -0.016514495015144348, 0.012130743823945522, + 0.0060964310541749, 0.0005851287278346717, -0.04429895803332329, -0.01812068745493889, + 0.029426150023937225, 0.0007842388586141169, -0.0034453265834599733, -0.005466377828270197, + 0.006265036761760712, -0.01598205603659153, 0.010852889157831669, 0.01786334067583084, + -0.03281601518392563, -0.014739696867763996, 0.005688227713108063, 0.02914218232035637, + -0.00527558708563447, -0.012867284938693047, 0.04082035273313522, -0.011048117652535439, + 0.020356932654976845, 0.014198383316397667, 0.033011242747306824, 0.0017947644228115678, + 0.011926642619073391, 0.01277854572981596, -0.017481759190559387, -0.002935072174295783, + 0.03267402946949005, 0.017650365829467773, 0.0009916683193296194, -0.002462532138451934, + -0.015218892134726048, -0.01148294284939766, -0.025503845885396004, -0.01117235329002142, + -0.04167225584387779, -0.004035446792840958, -0.01253894716501236, 0.009264444932341576, + 0.008448038250207901, -0.008612207137048244, 0.003416486084461212, -0.0010010970290750265, + -0.0064868866465985775, 0.022220470011234283, 0.027544863522052765, 0.0403234101831913, + 0.002779777394607663, -0.01589331589639187, -0.02931966260075569, -0.01812068745493889, + -0.0006461373995989561, -0.030029581859707832, 0.025361862033605576, -0.0007714824751019478, + 0.004419247154146433, -0.043340567499399185, 0.0044835833832621574, 0.005164661910384893, + 0.010533425956964493, 0.008390357717871666, 0.0640702098608017, 0.0004816912696696818, + -0.000611750700045377, 0.015289884060621262, -0.0002527700562495738, -0.016798462718725204, + -0.002717659343034029, -0.021244332194328308, 0.021759023889899254, 0.019487282261252403, + -0.009246697649359703, 0.027935320511460304, 0.051291659474372864, 0.006930585950613022, + 0.017996450886130333, -0.015698088333010674, -0.018386906012892723, 0.033738911151885986, + -0.030526524409651756, -0.01813843473792076, 0.0054086968302726746, 0.021705778315663338, + 0.0003799176774919033, 0.017712483182549477, -0.03751922771334648, -0.035211991518735886, + -0.02820153906941414, 0.014251627959311008, -0.023888779804110527, -0.014926050789654255, + ], + index: 16, + }, + { + title: "Preston Sturges", + text: "Preston Sturges (/\u02c8st\u025crd\u0292\u026as/; born Edmund Preston Biden; August 29, 1898 \u2013 August 6, 1959) was an American playwright, screenwriter, and film director.", + vector: [ + 0.00044372514821588993, 0.04317275434732437, -0.030205989256501198, 0.006393750198185444, + -0.035494279116392136, 0.01280990894883871, -0.04580195993185043, -0.008888508193194866, + -0.057304736226797104, 0.041738640516996384, 0.020152265205979347, 0.08658452332019806, + -0.03274556249380112, 0.006434831768274307, 0.013325292617082596, 0.005710306111723185, + -0.03991612419486046, 0.013063866645097733, -0.0015060045989230275, -0.030594393610954285, + 0.1147887334227562, -0.035285137593746185, -0.07003247737884521, 0.0316699780523777, + 0.08377605676651001, 0.0423959419131279, -0.0023677791468799114, 0.043202631175518036, + 0.019943123683333397, 0.016776125878095627, -0.033701635897159576, 0.006457239855080843, + 0.011973343789577484, -0.02278147079050541, 0.019987938925623894, 0.039348453283309937, + -0.03140108287334442, 0.05058233439922333, -0.010449599474668503, 0.041141096502542496, + -0.014057287946343422, -0.005056739319115877, 0.0034713733475655317, -0.0019009456736966968, + -0.0039923591539263725, 0.03310409188270569, -0.014804220758378506, -0.043889809399843216, + -0.03352237492799759, 0.04858055338263512, 0.002586257178336382, -0.009695196524262428, + 0.010927636176347733, 0.03588268160820007, -0.00542273698374629, -0.016193516552448273, + 0.003036284586414695, 0.026321934536099434, -0.021989721804857254, 0.023871993646025658, + 0.006154731847345829, 0.004171623382717371, -0.007312478497624397, -0.0035367298405617476, + 0.06232412904500961, 0.03773507848381996, 0.0569760836660862, 0.0029541219118982553, + 0.04123072698712349, 0.05443651229143143, 0.03447844833135605, -0.04006551206111908, + -0.005198657047003508, 0.03134132921695709, 0.009276913478970528, -0.0393783301115036, + -0.03178948909044266, -0.009814705699682236, 0.003430292010307312, -0.012847255915403366, + 0.04143986850976944, -0.01782183162868023, -0.06590940803289413, -0.01245884969830513, + 0.02209429256618023, -0.017119714990258217, 0.026187486946582794, -0.0662679374217987, + 0.08969177305698395, 0.018972110003232956, 0.06453505158424377, 0.0006082839099690318, + 0.0039176661521196365, -0.06399726122617722, 0.001890675281174481, 0.02325950749218464, + 0.05279325693845749, 0.008918385952711105, -0.0040894607082009315, -0.034657713025808334, + -0.019330637529492378, 0.011248817667365074, -0.010001438669860363, 0.017657507210969925, + 0.022408002987504005, -0.00665891170501709, -0.05554197356104851, -0.018434317782521248, + 0.016895635053515434, 0.02575426548719406, 0.02581402100622654, -0.007129479665309191, + 0.016641678288578987, 0.024559171870350838, -0.024738436564803123, 0.011293633840978146, + -0.004784108605235815, 0.0342693068087101, 0.05126951262354851, 0.017657507210969925, + -0.015924621373414993, -0.018284931778907776, 0.0016665952280163765, -0.004208969883620739, + 0.03546440228819847, 0.006218221038579941, -0.0020671384409070015, 0.04562269523739815, + 0.031281571835279465, -0.00953087117522955, -0.027770986780524254, -0.003456434467807412, + -0.008335777558386326, -0.0156258475035429, 0.025649694725871086, 0.0568864531815052, + -0.008656959049403667, 0.00493723014369607, 0.035554032772779465, 0.0053667169995605946, + -0.004735558293759823, -0.020839443430304527, 0.023229630663990974, -0.039199069142341614, + -0.0235433429479599, -0.04923785477876663, 0.06262290477752686, 0.027442336082458496, + -0.02092907577753067, -0.01602919213473797, -0.0037290651816874743, 0.033014457672834396, + -0.030116356909275055, -0.001271654269658029, 0.019255945459008217, -0.006976358592510223, + -0.049058590084314346, -0.01322072185575962, -0.011965873651206493, -0.002845816547051072, + -0.02615761011838913, 0.06393750756978989, -0.03247666731476784, -0.006629034411162138, + 0.005101555492728949, -0.009486055001616478, -0.007835332304239273, -0.02167600952088833, + -0.005123963579535484, 0.0039512780494987965, 0.003594617359340191, 0.05013417452573776, + -0.0055310423485934734, -0.06698499619960785, -0.030265742912888527, 0.002679623896256089, + 0.01705995947122574, 0.031132185831665993, -0.022602206096053123, 0.05452614277601242, + 0.05422737076878548, 0.011136777698993683, 0.0036375659983605146, -0.013004111126065254, + -0.022661961615085602, 0.026829849928617477, 0.03077365830540657, 0.03077365830540657, + 0.04179839789867401, -0.05431700125336647, -0.010950044728815556, 0.02278147079050541, + 0.0214071124792099, -0.026874665170907974, 0.038930170238018036, -0.03271568566560745, + -0.022348249331116676, 0.015536216087639332, -0.050492700189352036, 0.016910573467612267, + 0.03447844833135605, -0.022124169394373894, 0.06304118037223816, 0.015237442217767239, + -0.0010466405656188726, -0.009426300413906574, 0.0020615363027900457, 0.06017296016216278, + -0.043262384831905365, 0.04117097333073616, 0.020137326791882515, -0.03152059018611908, + 0.01679106429219246, -0.004186562262475491, -0.06262290477752686, 0.0008524378063157201, + -0.053928595036268234, 0.024813128635287285, 0.03973685950040817, -0.020197080448269844, + -0.014236551709473133, 0.003910196479409933, -0.04054354876279831, -0.053719453513622284, + 0.02360309660434723, 0.03331323340535164, -0.01637278124690056, 0.030191050842404366, + 0.0668654814362526, 0.03131145238876343, 0.008970670402050018, -0.017030082643032074, + -0.05500417947769165, 0.04657876864075661, -0.022258616983890533, 0.010173234157264233, + 0.004130541812628508, 0.020047694444656372, -0.0633399561047554, -0.028936201706528664, + -0.019644349813461304, 0.0074207838624715805, -0.009814705699682236, 0.04170876368880272, + -0.009971561841666698, 0.010068663395941257, 0.02024189755320549, -0.028951140120625496, + 0.021511683240532875, 0.008126636035740376, 0.0004448922409210354, -0.019509902223944664, + 0.014580140821635723, -0.00956821721047163, 0.02497745491564274, -0.010038785636425018, + -0.015297196805477142, -0.0028402144089341164, -0.009329198859632015, -0.028308779001235962, + -0.046250119805336, -0.017164530232548714, 0.05031343922019005, -0.0037850853987038136, + -0.0629216730594635, -0.030071541666984558, 0.0038205645978450775, -0.06722401082515717, + 0.014415815472602844, -0.03274556249380112, 0.024125950410962105, -0.029683135449886322, + 0.020958952605724335, 0.04084232077002525, -0.04445748031139374, -0.00977735873311758, + -0.0018066453048959374, -0.04018501937389374, -0.0004637989914044738, 0.015229973010718822, + -0.02939930185675621, -0.045533064752817154, 0.008410470560193062, 0.009859521873295307, + -0.014415815472602844, 0.007558966521173716, 0.003854176728054881, -0.028966080397367477, + 0.022079352289438248, -0.007006235886365175, -0.0033798739314079285, 0.019644349813461304, + 0.040095388889312744, 0.04568244889378548, -0.022183923050761223, 0.02284122444689274, + -0.01749318093061447, -0.0004642658168449998, 0.021586377173662186, -0.014363530091941357, + 0.03193887323141098, 0.06447529792785645, -0.0035628725308924913, 0.009762420319020748, + -0.02836853265762329, 0.02539573796093464, -0.04810251295566559, -0.02064524032175541, + -0.0011213338002562523, -0.043053243309259415, -0.006856848951429129, 0.008044472895562649, + 0.020570548251271248, 0.02045103721320629, -0.003129651304334402, 0.020869320258498192, + 0.08162488788366318, -0.014251490123569965, -0.01892729476094246, 0.0010569108417257667, + 0.02493263967335224, -0.018329747021198273, -0.03779483214020729, -0.03235715627670288, + 0.07319948077201843, -0.042784348130226135, -0.011181593872606754, 0.035912562161684036, + -0.04096183180809021, -0.0030717637855559587, -0.018299870193004608, -0.069375179708004, + 0.000432754575740546, -0.056139517575502396, 0.06877763569355011, -0.0028159392531961203, + -0.043949563056230545, 0.03456807881593704, 0.01414691936224699, -0.015805112197995186, + 0.05168779566884041, -0.01318337582051754, -0.020958952605724335, 0.05602001026272774, + -0.002429401036351919, -0.016193516552448273, 0.0754104033112526, 0.016686493530869484, + 0.008403001353144646, 0.0008459021337330341, 0.0006666381377726793, -0.013235661201179028, + -0.03205838426947594, -0.0027860617265105247, 0.04451723396778107, -0.014535324648022652, + 0.04287398234009743, 0.00925450585782528, 0.0067186662927269936, 0.005512368865311146, + 0.031699854880571365, 0.0022295964881777763, 0.02835359424352646, -0.028263961896300316, + -0.011457959190011024, 0.0018309206934645772, 0.035822927951812744, -0.024529295042157173, + 0.02340889535844326, -0.0254704300314188, -0.01170444767922163, -0.01394524797797203, + -0.0005083815776742995, -0.033552251756191254, 0.006042691878974438, 0.03860152140259743, + -0.007768108043819666, 0.0666862204670906, -0.013213252648711205, 0.013071335852146149, + -0.03809360787272453, 0.02201959863305092, -0.03627108782529831, 0.010068663395941257, + 0.01714959181845188, -0.014019940979778767, 0.007656068075448275, -0.0148714454844594, + 0.0023304324131458998, -0.05258411541581154, -0.04992503300309181, 0.014654834754765034, + -0.0227067768573761, -0.0009392688516527414, 0.0008533714571967721, -0.02249763533473015, + 0.008925855159759521, 0.0028364798054099083, 0.008559857495129108, 0.05252436175942421, + 0.004171623382717371, -0.00829843059182167, 0.021168094128370285, -0.0449952706694603, + 0.0021119543816894293, 0.004365826025605202, -0.016148701310157776, 0.00774569995701313, + 0.006393750198185444, 0.0018551959656178951, 0.0018309206934645772, -0.043471526354551315, + -0.03821311518549919, 0.06345946341753006, 0.05897786468267441, 0.02600822225213051, + 0.02024189755320549, 0.005217330064624548, 0.010367436334490776, -0.012884601950645447, + 0.004679538309574127, 0.005773795768618584, -0.01033008936792612, -0.035613786429166794, + 0.02306530438363552, 0.02325950749218464, 0.00994168408215046, 0.003646902507171035, + -0.04108133912086487, 0.031012676656246185, -0.009545809589326382, -0.04819214716553688, + -0.04042403772473335, 0.035344891250133514, -0.020600425079464912, -0.03337298706173897, + -0.03244679048657417, -0.03313396871089935, 0.08019077777862549, 0.028413347899913788, + 0.004518947564065456, -0.007043582387268543, -0.006927807815372944, -0.021929966285824776, + -0.026277119293808937, 0.038930170238018036, -0.06423627585172653, -0.007917494513094425, + 0.012107791379094124, -0.025096964091062546, -0.007204173132777214, 0.005587062332779169, + 0.009022955782711506, 0.002410727785900235, 0.017254162579774857, -0.07774083316326141, + -0.015476461499929428, 0.006289179902523756, 0.009105118922889233, 0.02512684091925621, + 0.002599328523501754, 0.015192626975476742, 0.032387033104896545, -0.012966765090823174, + -0.04451723396778107, -0.007614986505359411, 0.024066196754574776, 0.01638771966099739, + -0.020271774381399155, 0.0009803501889109612, -0.04132035747170448, 0.03274556249380112, + 0.004619783256202936, 0.009866991080343723, 0.04075269028544426, 0.04813239350914955, + 0.009837113320827484, -0.02284122444689274, -0.0131534980610013, 0.030803535133600235, + 0.01632796600461006, -0.01623833365738392, 0.025216473266482353, -0.02926485240459442, + 0.00043415508116595447, 0.02451435662806034, -0.017403550446033478, -0.014184266328811646, + -0.018090728670358658, 0.014378469437360764, -0.04152949899435043, 0.0020708730444312096, + 0.002184780314564705, 0.003045621095225215, 0.028876448050141335, 0.025978345423936844, + -0.016850817948579788, 0.03543452173471451, 0.004040909931063652, -0.0012137668672949076, + -0.0010793188121169806, 0.01671637035906315, -0.0032640991266816854, 0.034179676324129105, + -0.005979202222079039, -0.029683135449886322, 0.03429918363690376, 0.012802439741790295, + -0.004664599429816008, 0.014363530091941357, -0.011017268523573875, 0.05542246252298355, + -0.01290701050311327, -0.004048379138112068, 0.014557733200490475, -0.013033988885581493, + 0.02836853265762329, 0.05927664041519165, -0.006871787831187248, 0.03241691365838051, + 0.02842828817665577, 0.003742136526852846, 0.00925450585782528, -0.027024053037166595, + 0.014946138486266136, -0.02190008945763111, 0.0035124546848237514, 0.014751935377717018, + -0.010875350795686245, -0.025799082592129707, -0.019450146704912186, -0.0029447851702570915, + 0.016357842832803726, -0.01934557594358921, 0.02478325180709362, 0.02533598244190216, + -0.04878969490528107, 0.02919016033411026, 0.015267319977283478, -0.009919276461005211, + -0.020600425079464912, 0.0011129308259114623, 0.026127733290195465, -0.009142465889453888, + 0.06118878722190857, -0.013683821074664593, -0.022527514025568962, -0.011502775363624096, + -0.019465085119009018, 0.006535667926073074, 0.011913588270545006, 0.033492498099803925, + -0.04899883642792702, 0.01472952775657177, 0.017702322453260422, 0.0024163296911865473, + -0.08162488788366318, 0.006875522434711456, 0.005049270112067461, -0.023901870474219322, + -0.00683444133028388, -0.00669252360239625, 0.008380593731999397, -0.001865466358140111, + -0.02884656935930252, 0.023423833772540092, 0.009381484240293503, -0.0019438943127170205, + -0.026590831577777863, 0.013541903346776962, 0.009799767285585403, 0.02733776532113552, + 0.012817378155887127, -0.01235427986830473, -0.04469649866223335, 0.04018501937389374, + 0.026904543861746788, 0.023797299712896347, -0.017254162579774857, 0.015610909089446068, + 0.01871815323829651, 0.004242582246661186, -0.019375454634428024, -0.0034116185270249844, + -0.008940793573856354, -0.016417598351836205, -0.02913040481507778, -0.007051052059978247, + 0.0013239395339041948, 0.0156258475035429, 0.023662852123379707, -0.014348591677844524, + 0.025216473266482353, 0.028607551008462906, -0.027038991451263428, 0.022333310917019844, + -0.020256835967302322, -0.052703626453876495, 0.02167600952088833, 0.030519701540470123, + 0.03205838426947594, 0.031132185831665993, 0.012451380491256714, 0.007947372272610664, + -0.029623381793498993, -0.027382580563426018, 0.03155047073960304, -0.044636745005846024, + 0.012802439741790295, -0.07469334453344345, -0.03904968127608299, -0.008193859830498695, + 0.004291132558137178, -0.014931200072169304, 0.0024051256477832794, -0.04589159041643143, + -0.018479133024811745, 0.010464537888765335, -0.004406907595694065, 0.01631302759051323, + 0.043949563056230545, -0.012062975205481052, -0.007346090395003557, 0.03214801475405693, + 0.010270334780216217, 0.017403550446033478, 0.004750496707856655, 0.011913588270545006, + -0.021735763177275658, -0.03525526076555252, -0.030952922999858856, -0.026725279167294502, + 0.0021959843579679728, -0.029160281643271446, -0.004018501844257116, 0.0016749983187764883, + 0.009859521873295307, -0.032387033104896545, 0.0280249435454607, 0.021586377173662186, + -0.010531761683523655, 0.00514637166634202, 0.012645583599805832, -0.005878366529941559, + -0.015506338328123093, -0.05557185038924217, 0.02600822225213051, -0.009859521873295307, + 0.02491769939661026, -0.0071145412512123585, 0.024589048698544502, -0.007024909369647503, + 0.02505214884877205, 0.031490713357925415, 0.00901548657566309, -0.034807100892066956, + 0.00024111945822369307, 0.02781580202281475, 0.025828959420323372, -0.06232412904500961, + -0.023513466119766235, -0.021974781528115273, -0.007618721108883619, 0.01873309165239334, + -0.0006437632837332785, 0.0432325080037117, -0.020152265205979347, 0.008993078954517841, + -0.017806893214583397, 0.012010689824819565, 0.00547128776088357, -0.017463304102420807, + -0.0002611932868603617, 0.012742685154080391, 0.02960844151675701, -0.02747221291065216, + -0.024529295042157173, -0.0029615911189466715, 0.0005037132650613785, 0.006838175933808088, + -0.010688617825508118, 0.007969779893755913, 0.03585280478000641, -0.0065095252357423306, + -0.014326184056699276, 0.01576029509305954, 0.029653258621692657, -0.013370108790695667, + 0.0065095252357423306, 0.006640238221734762, -0.03241691365838051, -0.037137530744075775, + -0.005038066301494837, 0.04508490487933159, 0.025903651490807533, -0.05288288742303848, + 0.020869320258498192, -0.03253642097115517, -0.029234975576400757, 0.05309202894568443, + -0.015013362281024456, 0.02092907577753067, -0.007009970489889383, -0.06381799280643463, + 0.03794422000646591, 0.005900774151086807, 0.00488867936655879, 0.030205989256501198, + -0.03441869467496872, -0.02201959863305092, 0.00994168408215046, 0.04356116056442261, + -0.03964722901582718, 0.026874665170907974, 0.023304324597120285, 0.06363873183727264, + 0.05590049922466278, -0.020212018862366676, -0.03779483214020729, -0.0054003288969397545, + 0.014759405516088009, 0.013571781106293201, -0.0034284244757145643, 0.03229740262031555, + 0.011062084697186947, 0.0015172086423262954, -0.009022955782711506, 0.00030904370942153037, + 0.02911546640098095, 0.007917494513094425, 0.0033929452765733004, -0.03839237987995148, + 0.02216898463666439, 0.018299870193004608, 0.021377235651016235, -0.034807100892066956, + -0.027427395805716515, 0.012541012838482857, 0.007327417377382517, -0.004481600597500801, + 0.02478325180709362, -0.02836853265762329, 0.021705886349081993, -0.004690742120146751, + 0.009583156555891037, -0.019659288227558136, -0.00633399561047554, 0.028189267963171005, + -0.013302884995937347, -0.008500102907419205, 0.01749318093061447, 0.03791434317827225, + -0.01438593864440918, 0.03588268160820007, -0.03531501442193985, -0.023767422884702682, + 0.024887822568416595, -0.0075178854167461395, 0.024618927389383316, -0.022258616983890533, + 0.03022092767059803, -0.009232097305357456, 0.017045021057128906, 0.02485794574022293, + 0.007476803846657276, -0.010277803987264633, -0.027248132973909378, 0.02175070159137249, + 0.004709415603429079, 0.016746249049901962, -0.012862194329500198, 0.0021773111075162888, + 0.012585829012095928, -0.0029261119198054075, 0.03674912452697754, -0.029145343229174614, + 0.0028271430637687445, 0.008171452209353447, 0.0031856712885200977, -0.002293085679411888, + -0.0027841944247484207, -0.004134276881814003, -0.011973343789577484, -0.016820941120386124, + -0.016566984355449677, -0.034687589854002, 0.014154389500617981, 0.021093400195240974, + -0.0020988830365240574, 0.005829815752804279, -0.037286918610334396, 0.006789625156670809, + -0.013601657934486866, 0.012518605217337608, -0.023095183074474335, -0.009329198859632015, + -0.01410957332700491, -0.000579807092435658, 0.007312478497624397, -0.022736653685569763, + 0.008403001353144646, 0.009374015033245087, -0.03890029340982437, -0.05046282336115837, + 0.01707489974796772, -0.037406425923109055, 0.02451435662806034, 0.0038242992013692856, + 0.02842828817665577, -0.0014770609559491277, 0.010852943174540997, 0.0312516950070858, + -0.004007298033684492, -0.012443911284208298, -0.03244679048657417, 0.014393407851457596, + 0.005587062332779169, 0.005542246159166098, -0.025649694725871086, 0.015655726194381714, + -0.022408002987504005, 0.019719043746590614, -0.007095867767930031, 0.04633975028991699, + 0.005258411634713411, 0.010711025446653366, 0.01077825017273426, -0.005508634261786938, + -0.002905571134760976, -0.0034078839235007763, -0.05918700620532036, 0.048490919172763824, + -0.010091071017086506, -0.008589734323322773, -0.0436507910490036, 0.008350715972483158, + -0.0367790050804615, -0.007715822663158178, -0.0022725451271981, -0.014669773168861866, + 0.017866648733615875, 0.006879257038235664, 0.021377235651016235, -0.05796203762292862, + 0.010457068681716919, 0.033074215054512024, -0.02953374944627285, -0.007902556098997593, + -0.0415593758225441, -0.013243130408227444, 0.03435893729329109, -0.019450146704912186, + 0.011106900870800018, 0.012428972870111465, -0.0013771585654467344, -0.011577468365430832, + -0.011330980807542801, 0.017791954800486565, -0.016283148899674416, -0.0025040945038199425, + 0.0177620779722929, 0.009321729652583599, 0.027980126440525055, 0.02966819703578949, + 0.01590968295931816, -0.010367436334490776, 0.05129938945174217, 0.01671637035906315, + -0.0003176801255904138, -0.03701802343130112, -0.010815596207976341, 0.03119194135069847, + -0.033283356577157974, -0.03289495036005974, -0.027756046503782272, 0.004078256897628307, + -0.0316699780523777, -0.005273350048810244, -0.015879806131124496, -0.005351778119802475, + -0.02911546640098095, 0.012690399773418903, -0.01366141252219677, -0.024245459586381912, + 0.04200753942131996, 0.006599157117307186, 0.011181593872606754, -0.016402658075094223, + 0.021661071106791496, 0.003984889946877956, -0.023125059902668, -0.0359424389898777, + -0.02575426548719406, -0.002154903020709753, -0.017194408923387527, -0.012331871315836906, + 0.02333420142531395, -0.012503665871918201, -0.01680600270628929, -0.012055505998432636, + 0.005452614277601242, 0.0218253955245018, -0.020152265205979347, 0.005796203855425119, + 0.03815336152911186, 0.0072863358072936535, 0.047116562724113464, -0.007656068075448275, + 0.02409607358276844, 0.02560487948358059, 0.029145343229174614, 0.04012526571750641, + -0.00487000634893775, -0.018075790256261826, 0.03842225670814514, 0.031042555347085, + 0.0214071124792099, -0.004063318017870188, 0.010143356397747993, -0.013444802723824978, + 0.021735763177275658, 0.012294524349272251, 0.010382374748587608, 0.022079352289438248, + -0.03001178614795208, 0.02245282009243965, -0.014789282344281673, 0.0017889055889099836, + -0.0017646303167566657, 0.03361200541257858, 0.007947372272610664, 0.0196891650557518, + 0.011764202266931534, -0.045055028051137924, -0.0065095252357423306, 0.01077078003436327, + -0.0023547078017145395, -0.011569999158382416, 0.027935311198234558, 0.01466230396181345, + -0.008261083625257015, 0.0043508876115083694, -0.030474884435534477, -0.02795024961233139, + -0.05354018881917, 0.002875693840906024, -0.02113821730017662, -0.010486945509910583, + -0.03680888190865517, -0.02506708726286888, -0.035404644906520844, -0.02003275603055954, + -0.003981155343353748, 0.0022202597465366125, -0.02705392986536026, 0.009299321100115776, + -0.01294435653835535, -0.027830740436911583, -0.003307047998532653, -0.021705886349081993, + -0.01680600270628929, -0.028741998597979546, -0.00784280151128769, 0.012817378155887127, + 0.017537998035550117, -0.017851710319519043, -0.011159186251461506, 0.018284931778907776, + 0.009179811924695969, 0.013048927299678326, -0.007398375775665045, 0.01225717831403017, + -0.002771123079583049, -0.030803535133600235, -0.021108340471982956, 0.013698759488761425, + -0.002608665032312274, 0.008701775223016739, 0.0035329952370375395, -0.009306791238486767, + 0.02106352336704731, 0.03134132921695709, -0.012428972870111465, -0.0041230726055800915, + 0.03785458952188492, -0.0038168299943208694, 0.003910196479409933, -0.006789625156670809, + -0.037077777087688446, 0.023632975295186043, -0.05838032066822052, 0.0196891650557518, + 0.017881587147712708, 0.0037085246294736862, 0.054077982902526855, 0.012428972870111465, + 0.01610388606786728, 0.009037895128130913, 0.00430233683437109, -0.03952771797776222, + 0.007092133164405823, 0.03731679543852806, -0.003732800018042326, -0.04699705168604851, + 0.006819502450525761, 0.03827286884188652, 0.030161172151565552, 0.061158910393714905, + -0.020734872668981552, -0.0007679409463889897, 0.00805194303393364, -0.0641765221953392, + 0.04170876368880272, -0.0320882610976696, 0.01816542260348797, -0.02106352336704731, + -0.006629034411162138, 0.00019256878294982016, 0.016417598351836205, 0.054824914783239365, + 0.004810251295566559, -0.013235661201179028, 0.05061221122741699, -0.02291591838002205, + -0.019330637529492378, 0.02249763533473015, -0.01414691936224699, 0.01056910865008831, + 0.016223395243287086, -2.5384066248079762e-5, -0.015551154501736164, -0.0026926950085908175, + -0.03884053975343704, 0.010628863237798214, 0.01844925619661808, 0.007700883783400059, + -0.04681779071688652, 0.03881066292524338, 0.008559857495129108, -0.016432536765933037, + 0.016133762896060944, -0.003628229256719351, -0.04535380005836487, 0.00888103898614645, + -0.031132185831665993, -0.03456807881593704, -0.013519495725631714, -0.001299664261750877, + 0.019480025395751, -0.021048584952950478, 0.0013696892419829965, 0.017463304102420807, + 0.013937778770923615, 0.009605564177036285, 0.00795484147965908, -0.0005405931151472032, + 0.002575053134933114, -0.028547797352075577, -0.0066813197918236256, 0.04066305607557297, + -0.0039176661521196365, -0.06190584599971771, -0.02768135443329811, 0.007368498481810093, + 0.01919618993997574, 0.000285935471765697, 0.0005363915697671473, -0.0023528404999524355, + -0.010905228555202484, -0.02615761011838913, -0.00714441854506731, -0.0008776467875577509, + 0.0402148962020874, 0.011734324507415295, -0.015730418264865875, 0.01686575822532177, + 0.00964291114360094, -0.014878914691507816, -0.04577208310365677, -0.01214513834565878, + 0.00478784367442131, 0.0056318785063922405, 0.004601110238581896, -0.009814705699682236, + -0.010882820934057236, 0.008335777558386326, 0.0177620779722929, -0.016701431944966316, + 0.015446583740413189, -0.0010522424709051847, -0.002886897884309292, 0.02781580202281475, + 0.02077968791127205, -0.033283356577157974, 0.009635441936552525, 0.02210923098027706, + 0.008059412240982056, 0.026411566883325577, -0.015954498201608658, 0.004380764905363321, + -0.0035199238918721676, -0.03158034756779671, 0.00607256917282939, 0.020690057426691055, + 0.0109126977622509, 0.03806372731924057, -0.01686575822532177, 0.010748372413218021, + -0.026456383988261223, -0.021855272352695465, -0.01521503459662199, 0.00044162440462969244, + -0.04275447130203247, 0.005105290096253157, 0.0010466405656188726, 0.01976385898888111, + -0.012473789043724537, -0.02789049595594406, 0.010135887190699577, 0.017732201144099236, + -0.03537476807832718, -0.0022538716439157724, -0.02167600952088833, 0.022945795208215714, + 0.0070771947503089905, 0.021810457110404968, 0.004713150206953287, 0.007204173132777214, + 0.013780922628939152, -0.0022800143342465162, 0.0032267526257783175, -0.006345199886709452, + -0.03683875873684883, 0.020899198949337006, 0.030474884435534477, 0.028263961896300316, + -0.004952169023454189, -0.012817378155887127, 0.0015246779657900333, 0.012623175047338009, + 0.026456383988261223, -0.07140684127807617, 0.035135749727487564, -0.014811690896749496, + -0.00901548657566309, 0.013915370218455791, 0.015140341594815254, 0.006939011625945568, + -0.03564366325736046, -0.04872993752360344, -0.04027465358376503, -0.03758569061756134, + -0.009852052666246891, -0.00721164233982563, -0.004653395619243383, 0.003958747256547213, + 0.03196875378489494, -0.04311300069093704, -0.02169094793498516, 0.034687589854002, + -6.004644819768146e-5, 0.0004593640915118158, -0.00726019311696291, 0.007241520099341869, + -0.0024984923657029867, 0.04466662183403969, 0.009299321100115776, -0.015043240040540695, + -0.013571781106293201, 0.00014775276940781623, 0.017448365688323975, -0.020704995840787888, + -0.02249763533473015, -0.04744521155953407, -0.01962941139936447, -0.040304530411958694, + 0.021929966285824776, 0.011181593872606754, 0.018837662413716316, -0.007431988138705492, + 0.020944014191627502, -0.0016199119854718447, -0.011293633840978146, -0.0008823151583783329, + -0.04087219759821892, 0.026874665170907974, -0.004048379138112068, -0.015924621373414993, + 0.036510106176137924, 0.014191735535860062, 0.010793188586831093, 0.00850757211446762, + 0.005560919642448425, 0.0037888200022280216, -0.017523059621453285, 0.006655177101492882, + -0.030131295323371887, 0.01287713274359703, -0.0050978208892047405, -0.007443191949278116, + 0.01858370378613472, -0.008612142875790596, -0.009441238828003407, 0.002050332259386778, + -0.0014723925851285458, -0.0449056401848793, 0.010001438669860363, -0.01339251734316349, + -0.027711231261491776, -0.02148180641233921, -0.002050332259386778, -0.030161172151565552, + -0.011726855300366879, -0.021496744826436043, 0.008007126860320568, -0.013683821074664593, + 0.04311300069093704, -0.008940793573856354, 0.022557390853762627, 0.05195669084787369, + 0.004537620581686497, 0.0016217792872339487, 0.02472349815070629, -0.028204208239912987, + 0.007984718307852745, 0.04798300564289093, 0.023842116817831993, -0.035404644906520844, + -0.008171452209353447, -0.01211526058614254, -0.016850817948579788, 0.00545634888112545, + -0.0036487700417637825, -0.007443191949278116, 0.006263037212193012, 0.02699417434632778, + 0.0013724901946261525, -0.0066775851882994175, -0.011233879253268242, -0.0014509182656183839, + -0.023169875144958496, -0.03077365830540657, 0.008126636035740376, 0.01955471746623516, + 0.006042691878974438, 0.0017030083108693361, -0.01625327207148075, 0.002393921837210655, + -0.009695196524262428, 0.0014163726009428501, -0.012369218282401562, 0.017388610169291496, + -0.006744808983057737, 0.023662852123379707, 0.0248430073261261, 0.029653258621692657, + 0.0075552319176495075, -0.026142671704292297, 0.041828274726867676, -0.011764202266931534, + 0.02305036596953869, 0.007820392958819866, 0.017732201144099236, 0.003056825138628483, + -0.038930170238018036, -0.010994860902428627, 0.020197080448269844, 0.010188172571361065, + -0.011853833682835102, -0.04069293662905693, -0.042156923562288284, 0.0155212776735425, + -0.027502089738845825, -0.020824505016207695, 0.003303313162177801, 0.007969779893755913, + 0.007999657653272152, 0.01149530615657568, 0.018464194610714912, -0.01015082560479641, + 0.013631535694003105, -0.0042239087633788586, -0.0023901870008558035, 0.028532858937978745, + -0.0018337216461077332, -0.005751387681812048, -0.013676351867616177, -0.010046254843473434, + 0.007465600036084652, -0.022348249331116676, 0.01726910099387169, 0.0007361962925642729, + 0.01107702311128378, 0.020958952605724335, 0.0035217911936342716, -0.0022183924447745085, + -0.005654286127537489, -0.025440553203225136, -0.02079462818801403, -0.010076132602989674, + 0.040513671934604645, 0.015058178454637527, 0.01707489974796772, -0.009784827940165997, + -0.024335091933608055, -0.016163639724254608, 0.009321729652583599, -0.031012676656246185, + 0.0014901323011144996, 0.0039512780494987965, 0.017104776576161385, -0.0019102822989225388, + -0.01907668076455593, -0.026187486946582794, -0.03567354381084442, -0.0016432536067441106, + 0.006614095997065306, 0.00860467366874218, 0.005859693046659231, -0.02697923593223095, + 0.026889605447649956, -0.011891180649399757, -0.02058548666536808, -0.010628863237798214, + 0.018987048417329788, 0.019450146704912186, -0.022213801741600037, -0.003129651304334402, + -0.009336668066680431, -0.021705886349081993, 0.0027785925194621086, -0.009351606480777264, + 0.022482696920633316, -0.015670664608478546, -0.007700883783400059, 0.005796203855425119, + 0.052076201885938644, 0.015461522154510021, 0.059575412422418594, 0.04132035747170448, + -0.009769889526069164, 0.02003275603055954, -0.00019186853023711592, 0.052076201885938644, + -0.01576029509305954, 0.006640238221734762, 0.019838552922010422, -0.013302884995937347, + -0.005250942427664995, -0.032387033104896545, -0.0011119971750304103, 0.019943123683333397, + 0.0181803610175848, 0.013698759488761425, -0.03158034756779671, 0.008208799175918102, + -0.045951347798109055, -0.013758514076471329, -0.01665661670267582, -0.01865839771926403, + 0.0026590831112116575, -0.01063633244484663, -0.03860152140259743, -0.0029317138250917196, + 0.0018878743285313249, -0.010225518606603146, 0.018703212961554527, -0.010203110985457897, + 0.01417679712176323, -0.011525182984769344, -0.012481258250772953, 0.013116151094436646, + -0.0038653805386275053, -0.029279790818691254, 0.019943123683333397, -0.018284931778907776, + -0.002604930428788066, -0.026127733290195465, 0.0031277837697416544, -0.024006441235542297, + 0.046250119805336, -0.02678503468632698, -0.008500102907419205, -0.027920372784137726, + -0.01596943661570549, 0.00609124219045043, 0.00915740430355072, 0.022661961615085602, + 0.030026724562048912, 0.0025507777463644743, 0.02575426548719406, -0.0026385425589978695, + 0.003041886491701007, -0.04645926132798195, -0.012077913619577885, 0.07935421168804169, + -0.029444117099046707, 0.016283148899674416, 0.014460631646215916, 0.014370999298989773, + 0.004171623382717371, 0.017194408923387527, 0.0027935311663895845, -0.04657876864075661, + 0.036599740386009216, -0.004186562262475491, -0.0036674432922154665, -0.01246631983667612, + 0.0138033302500844, -0.026814911514520645, -0.028039881959557533, -0.008500102907419205, + 0.017164530232548714, -0.0010811862302944064, 0.011039676144719124, 0.0016236465889960527, + 0.02016720362007618, 0.0025115637108683586, -0.0218253955245018, 0.009919276461005211, + 0.0012128332164138556, -0.01066621020436287, -0.02058548666536808, -0.00873912125825882, + 0.01531213615089655, -0.040364284068346024, -0.015088056214153767, -0.02553018555045128, + -0.014490509405732155, -0.008276022970676422, 0.004679538309574127, 0.011480366811156273, + 0.0059343865141272545, -0.0056654904037714005, -0.0004892414435744286, 0.04185815155506134, + -0.008627081289887428, 0.027158500626683235, 0.016059068962931633, -0.024260398000478745, + -0.011599876917898655, -0.0016609933227300644, 0.013048927299678326, -0.01768738403916359, + -0.012653052806854248, -0.004511477891355753, 0.006154731847345829, 0.021631192415952682, + 0.007148153148591518, 0.010158294811844826, -0.03737654909491539, -0.021212909370660782, + -0.007424518465995789, 0.02913040481507778, 0.030549578368663788, 0.03943808749318123, + 0.030923044309020042, 0.006830706261098385, 0.019644349813461304, -0.014348591677844524, + -0.0006306919385679066, -0.011667100712656975, -0.04418858513236046, -0.03411991894245148, + -0.025291167199611664, -0.004373295232653618, 0.019659288227558136, -0.011831426061689854, + 0.007558966521173716, 0.00767847616225481, -0.03943808749318123, 0.04418858513236046, + 0.004231377970427275, 0.009926745668053627, -0.027442336082458496, -0.006423627957701683, + -0.013564311899244785, -0.014714589342474937, -0.017254162579774857, -0.0036431679036468267, + 0.008313369005918503, -0.02201959863305092, 0.008358185179531574, 0.008096758276224136, + 0.008895977400243282, 0.035613786429166794, -0.00497084204107523, -0.0002469548780936748, + 0.004421846009790897, 0.02512684091925621, -0.003898992668837309, 0.016133762896060944, + -0.017702322453260422, -0.012929418124258518, -0.040722813457250595, -0.004414376802742481, + 0.005075412802398205, -0.00036973206442780793, 0.012645583599805832, 0.000986885861493647, + -0.005725244991481304, -0.02871212176978588, 0.0015050709480419755, 0.014811690896749496, + -0.026829849928617477, 0.06525211036205292, -0.003603953868150711, -0.023125059902668, + -0.02079462818801403, -0.003021345939487219, 0.002164239762350917, -0.04433796927332878, + -0.004724354017525911, -0.016492290422320366, -0.019569655880331993, -0.0035161892883479595, + 0.009314260445535183, 0.0201074481010437, -0.023662852123379707, -0.0006148195825517178, + -0.001586299971677363, 0.004063318017870188, 0.01632796600461006, -0.017313918098807335, + 0.008918385952711105, -0.006341465283185244, 0.04353128373622894, 0.00485506746917963, + -0.026142671704292297, 0.029279790818691254, -0.032805316150188446, 0.016088945791125298, + 0.005482491571456194, 0.0011950935004279017, -0.012593298219144344, -0.013713697902858257, + ], + index: 17, + }, + { + title: "1997 Denver Broncos season", + text: "The 1997 Denver Broncos season was the team's 38th, and 28th in the National Football League (NFL). The Broncos finished the season with a record of 12\u20134, finishing second in the AFC West, and winning Super Bowl XXXII.", + vector: [ + 0.03407149761915207, -0.031749021261930466, -0.013922098092734814, -0.015478922985494137, + -0.0009554693824611604, -0.02710406668484211, -0.03210632503032684, 0.019498594105243683, + -0.01330957654863596, 0.07406403124332428, 0.012193001806735992, -0.006262391805648804, + -0.019256137311458588, -0.006559081841260195, -0.024679502472281456, 0.04295305535197258, + -0.062375083565711975, -0.02157861366868019, 0.02032805047929287, -0.0276910662651062, + 0.003009967738762498, -0.010419242084026337, 0.044994793832302094, 0.027946284040808678, + -0.050915829837322235, -0.005021398421376944, -0.02184659242630005, 0.013564794324338436, + 0.012301469221711159, -0.023633113130927086, 0.0362408421933651, -0.024015938863158226, + -0.010246970690786839, 0.019587919116020203, -0.044152576476335526, 0.05982290953397751, + -0.02452637255191803, 0.0024357291404157877, -0.00935371033847332, 0.007477863691747189, + -0.035653840750455856, -0.04244261980056763, 0.03190214931964874, 0.002282598754391074, + 0.02748689241707325, 0.025164416059851646, -0.018005574122071266, 0.0038123067934066057, + 0.008938982151448727, 0.0019141290104016662, -0.027359284460544586, -0.011771893128752708, + 0.007394918240606785, -0.007356635760515928, -0.016576357185840607, 0.015185423195362091, + 0.007235407363623381, 0.0624261274933815, -0.04933348298072815, 0.002499533351510763, + -0.05869995430111885, 0.0030370845925062895, -0.02567484974861145, 0.006878103595227003, + -0.027333762496709824, 0.02549619786441326, -0.013756207190454006, 0.02138720080256462, + 0.0037102201022207737, -0.009041069075465202, -0.01718887872993946, -0.009947090409696102, + -0.0016158438520506024, 0.016818813979625702, -0.0018614904256537557, 0.03749140724539757, + -0.045301053673028946, -0.008084004744887352, -0.039941489696502686, 0.001612653722986579, + 0.02604491449892521, -0.03065158613026142, -0.02604491449892521, 0.004881029017269611, + 0.039762839674949646, -0.013207489624619484, 0.03772110119462013, -0.04992048442363739, + -0.017112312838435173, -0.02968176081776619, -0.0033305843826383352, 0.015963835641741753, + 0.03445432335138321, -0.0419832281768322, 0.01670396514236927, -0.010093839839100838, + -0.011114709079265594, 0.009417514316737652, -0.024309437721967697, 0.0034454320557415485, + 0.0033592963591217995, -3.980291512561962e-5, 0.00807124376296997, -0.014317684806883335, + 0.007937255315482616, 0.0004043597436975688, 0.028175977990031242, -0.0011524651199579239, + -0.08723323792219162, -0.05594360828399658, -0.004188752267509699, 0.012626870535314083, + -0.0618136040866375, 0.008849656209349632, -0.016844335943460464, 0.05420813336968422, + 0.03054949827492237, -0.03128962963819504, -0.031544845551252365, 0.04208531603217125, + -0.019830375909805298, -0.04063057899475098, 0.01025335118174553, -0.02568761073052883, + -0.03062606416642666, -0.004077094607055187, -0.000522796472068876, -0.025343067944049835, + -0.026670197024941444, -0.02692541480064392, -0.009998133406043053, -0.020825723186135292, + -0.04647505283355713, 0.024743307381868362, -0.002242721151560545, 0.054361261427402496, + -0.044101532548666, -0.005975272506475449, 0.03800183907151222, 0.025623805820941925, + 0.010808448307216167, 0.004641762934625149, 0.030090108513832092, -0.022165613248944283, + 0.046347443014383316, -0.001244183862581849, 0.010093839839100838, 0.00560520775616169, + -0.015338554047048092, -0.010240590199828148, 0.047853223979473114, 0.028609847649931908, + -0.006319815758615732, -0.01402418501675129, 0.015185423195362091, 0.020838484168052673, + 0.02347998134791851, -0.016844335943460464, -0.0023160960990935564, -0.021425483748316765, + 0.03971179574728012, -0.008077624253928661, -0.03601114824414253, -0.05915934592485428, + -0.014126271940767765, 0.0030673916917294264, 0.028711935505270958, 0.006412331946194172, + -0.017916247248649597, 0.0029365927912294865, 0.014662227593362331, 0.011727230623364449, + 0.039456579834222794, 0.040502969175577164, -0.001087863347493112, -0.007095037959516048, + 0.023824525997042656, 0.018056616187095642, 0.029554150998592377, -0.024283915758132935, + 0.0029668998904526234, 0.010904154740273952, 0.016640162095427513, -0.016627401113510132, + -0.0039941491559147835, 0.020544985309243202, -0.020098354667425156, 0.04999705031514168, + -0.016818813979625702, -0.01909024640917778, 0.014636706560850143, 0.0039750076830387115, + 0.04798083379864693, 0.011606002226471901, -0.019026441499590874, 0.03026876039803028, + 0.03396940976381302, 0.0385633185505867, -0.010591513477265835, 0.0015161496121436357, + -0.01088501326739788, -0.026466023176908493, -0.019638963043689728, -0.04496927186846733, + 0.06763255596160889, 0.0007261727005243301, -0.01727820374071598, 0.03690440580248833, + 0.011357164941728115, 0.02568761073052883, 0.0656418651342392, -0.005426555871963501, + -0.018630854785442352, -0.027257196605205536, 0.013207489624619484, 0.020659832283854485, + 0.0092133404687047, 0.03167245537042618, -0.02243359200656414, -0.03728723153471947, + -0.00037146065733395517, -0.07018472999334335, -0.04489270597696304, 0.006616505794227123, + -0.006211348343640566, 0.0015504445182159543, 0.0022953597363084555, 0.055024828761816025, + -0.0015336958458647132, -0.03560280054807663, -0.047853223979473114, 0.02633841522037983, + -0.026363937184214592, 0.028941629454493523, 0.013871055096387863, 0.0031758591067045927, + -0.004357833880931139, 0.03912479802966118, 0.008607200346887112, 0.00270689744502306, + 0.0032731606625020504, 0.004463110584765673, 0.005640299990773201, -0.010151264257729053, + -0.01422835886478424, 0.009915187954902649, 0.0007485041860491037, -0.003834638511762023, + 0.02110646292567253, 0.02146376669406891, 0.01532579306513071, -0.016206292435526848, + -0.03789975494146347, 0.028711935505270958, 0.06661169230937958, -6.186026439536363e-5, + -0.03723618760704994, 0.010617035441100597, -0.006466565653681755, 0.019064724445343018, + -0.022752612829208374, 0.035730406641960144, -0.00496078422293067, 0.029094761237502098, + -0.008032961748540401, 0.05208982899785042, -0.014853640459477901, 0.043769750744104385, + 0.03601114824414253, -0.007452342193573713, 0.022459113970398903, -0.006083739921450615, + -0.04246814176440239, 0.03340793028473854, 0.025611046701669693, 0.005490359850227833, + 0.06615229696035385, -0.041549358516931534, 0.03218288719654083, 0.026848848909139633, + -0.023071635514497757, 0.0020529034081846476, 0.045964617282152176, -0.05252369865775108, + 0.018745703622698784, 0.0063134352676570415, -0.008275417611002922, -0.022408070042729378, + -0.0005216001300141215, 0.018758464604616165, 0.0064187124371528625, 0.029171325266361237, + -0.02243359200656414, 0.0013741850852966309, 0.03248915076255798, 0.027614500373601913, + 0.02473054639995098, 0.009245242923498154, 0.016844335943460464, 0.005563735030591488, + 0.05186013504862785, 0.007911733351647854, 0.014879162423312664, -0.026363937184214592, + -0.019919702783226967, 0.04953765869140625, 0.044050488620996475, 0.008728427812457085, + -0.02231874316930771, 0.002228365046903491, -0.06962325423955917, 0.004450350068509579, + -0.026363937184214592, -0.0068717231042683125, 0.03254019096493721, -0.018388399854302406, + 0.0310088898986578, 0.025930067524313927, -0.01235251221805811, -0.008479591459035873, + 0.017405813559889793, 0.03169797733426094, 0.02377348206937313, 0.023339612409472466, + -0.019243376329541206, -0.07758602499961853, 0.007203505374491215, -0.012869327329099178, + 0.03692992776632309, 0.01965172402560711, -0.0038314482662826777, 0.0068525816313922405, + 0.04525000974535942, -0.02404146082699299, -0.004351453389972448, -0.04216188192367554, + 0.04272335767745972, -0.026414979249238968, 0.04188114032149315, -0.02815045602619648, + -0.02756345644593239, -0.02032805047929287, -0.015683095902204514, -0.015593770891427994, + -0.018630854785442352, -0.013284055516123772, -0.012620490044355392, -0.03863988444209099, + -0.00801382027566433, 0.026363937184214592, 0.0003971817495767027, 0.026363937184214592, + 0.027742110192775726, 0.04486718401312828, -0.011931403540074825, 0.039482101798057556, + -0.03358658403158188, -0.04706205055117607, 0.014777075499296188, 0.014113510958850384, + 0.016384944319725037, -8.090186020126566e-5, -0.00691638607531786, -0.020940570160746574, + -0.026797804981470108, -0.013973142020404339, -0.010425622574985027, 0.019702767953276634, + 0.005751957651227713, -0.035934582352638245, 0.010617035441100597, 0.05604569613933563, + -0.01173361111432314, -0.00782240740954876, 0.09366471320390701, -0.015606531873345375, + -0.039277926087379456, -0.009621688164770603, -0.06166047602891922, -0.011714469641447067, + -0.02156585268676281, 0.06023125723004341, -0.0479297898709774, 0.006240060552954674, + -0.0006364478613249958, -0.012046251446008682, -0.0013040003832429647, 0.05640299990773201, + -0.033254802227020264, -0.041549358516931534, 0.024679502472281456, 0.048618875443935394, + -0.04211083799600601, -0.007522527128458023, 0.010597893968224525, 0.008147808723151684, + 0.0022411260288208723, 0.036036666482686996, 0.06380429863929749, 0.025253741070628166, + -0.046806834638118744, 0.03299958258867264, 0.033280324190855026, -0.05109448358416557, + -0.02022596262395382, 0.009577025659382343, 0.03218288719654083, 0.0026367127429693937, + 0.009060210548341274, -0.02586626261472702, 0.02804837003350258, 0.014509097672998905, + -0.010540470480918884, 0.034326713532209396, 0.05466752499341965, 0.005018208175897598, + -0.005541403312236071, 0.02968176081776619, -0.042315009981393814, -0.017201639711856842, + -0.029043717309832573, 0.0884072408080101, 0.025942828506231308, -0.005219191778451204, + 0.009774819016456604, 0.01494296733289957, -0.06446786224842072, 0.005375512409955263, + 0.04759800806641579, 0.005388272926211357, -0.010514948517084122, 0.011739990673959255, + -0.0257769376039505, 0.036700233817100525, 0.02988593466579914, -0.03731275349855423, + -0.0003188221016898751, 0.04075818508863449, 0.010655318386852741, 0.06349804252386093, + 0.020455658435821533, 0.04277440160512924, -0.02442428655922413, -7.49202081351541e-5, + 0.034709539264440536, -0.0022443162743002176, -0.00646337540820241, -0.011995208449661732, + -0.023620352149009705, 0.030753672122955322, -0.054157089442014694, -0.039762839674949646, + -0.011759132146835327, 0.0136924022808671, -0.01717611774802208, 0.00968549307435751, + -0.022484635934233665, -0.029247891157865524, 0.07360464334487915, -0.03274436667561531, + 0.004683235660195351, -0.009947090409696102, 0.017724834382534027, 0.025062328204512596, + -0.041574880480766296, 0.03700649365782738, -0.018873311579227448, -0.030370846390724182, + -0.0385633185505867, -0.035551756620407104, 0.038716450333595276, -0.007126940414309502, + -0.06702003628015518, -0.036419495940208435, -0.02022596262395382, -0.03989044949412346, + 0.03807840496301651, -0.004625811707228422, 0.04124309867620468, 0.020672593265771866, + 0.004115377087146044, 0.025827979668974876, 0.03744036331772804, 0.022203896194696426, + 0.03654710203409195, -0.005863615311682224, -0.0017530231270939112, -0.029809368774294853, + 0.026874370872974396, 0.02069811522960663, 0.03894614428281784, -0.010661698877811432, + -0.010757405310869217, -0.029273413121700287, 0.0513496994972229, 0.05099239572882652, + -0.024360481649637222, 0.007088657468557358, 0.06400847434997559, -0.042621273547410965, + -0.00028851506067439914, 0.019409267231822014, 0.02043013647198677, 0.005550974048674107, + 0.03481162711977959, 0.01652531325817108, -0.01670396514236927, 0.04479061812162399, + -0.012224903330206871, 0.045301053673028946, 0.05584152415394783, 0.029477586969733238, + -0.011376306414604187, 0.024360481649637222, -0.03187662735581398, -0.05767908692359924, + -0.017712073400616646, 0.023160960525274277, 0.052370570600032806, 0.004708757158368826, + 0.027129588648676872, -0.028992673382163048, -0.006878103595227003, 0.05431022122502327, + 0.03925240412354469, 0.00915591698139906, 0.01274171844124794, 0.012110056355595589, + -0.0009235672187060118, 0.027155110612511635, 0.03310167044401169, 0.03761901333928108, + -0.005308517720550299, -0.01984313689172268, -0.017609987407922745, 0.02148928865790367, + -0.013373381458222866, -0.025075089186429977, 0.0024564655032008886, -0.03399493172764778, + 0.034045975655317307, 0.018388399854302406, -0.026695718988776207, 0.005940180271863937, + -0.053697697818279266, -0.02214009128510952, -0.023607591167092323, 0.019128529354929924, + -0.025560002774000168, -0.0108722522854805, -0.009634449146687984, 0.007656516041606665, + 0.02310991659760475, 0.014866401441395283, -0.018554290756583214, -0.015402358025312424, + 0.026976458728313446, 0.006980190519243479, -0.0066292667761445045, 0.004491822794079781, + -0.0037389318458735943, 0.012614109553396702, -0.013488229364156723, 0.012269566766917706, + -0.017507899552583694, 0.004855507053434849, 0.011861219070851803, 0.00807124376296997, + -0.013016076758503914, -0.05191117897629738, -0.0035762309562414885, 0.02559828571975231, + 0.010674458928406239, 0.007414059713482857, 0.026848848909139633, 0.022867461666464806, + 0.051222093403339386, 0.022752612829208374, 0.02393937297165394, 0.030753672122955322, + 0.0033433453645557165, 0.0062368703074753284, 0.02863536961376667, -0.01383277215063572, + -0.011535817757248878, 0.024258393794298172, -0.0017865203553810716, 0.023046113550662994, + -0.014572901651263237, 0.00493845297023654, -0.011331643909215927, -0.02807389199733734, + 0.01198244746774435, 0.002604810521006584, 0.014802597463130951, 0.023058874532580376, + 0.033356886357069016, 0.013009696267545223, 0.03396940976381302, -0.0058125718496739864, + 0.020009027794003487, 0.002957329386845231, 0.045964617282152176, -0.008747569285333157, + 0.06191569194197655, -0.0011628333013504744, 0.013411663472652435, 0.011682567186653614, + 0.00825627613812685, 0.040502969175577164, -0.05089030787348747, -0.010802067816257477, + -0.0027244435623288155, -0.006667549256235361, 0.011510295793414116, -0.03312719240784645, + 0.0022570770233869553, -0.019536877050995827, 0.03052397631108761, -0.06650960445404053, + 0.025827979668974876, 0.007905352860689163, -0.013730685226619244, -0.017201639711856842, + 0.017163356766104698, -0.018388399854302406, 0.02319924347102642, -0.03874197229743004, + -0.019728289917111397, -0.011580480262637138, -0.06023125723004341, -0.024411525577306747, + -0.027818674221634865, 0.016461508348584175, -0.01822250708937645, -0.008371124044060707, + 0.025317545980215073, -0.06671377271413803, -0.014547380618751049, 0.028788499534130096, + -0.02489643730223179, -0.01388381514698267, 0.009219720959663391, 0.04609222710132599, + -0.025611046701669693, -0.012154718860983849, -0.003461383283138275, 0.02156585268676281, + -0.018094899132847786, -0.015236467123031616, 0.017112312838435173, -0.0009658375638537109, + 0.006125212647020817, 0.008345602080225945, -0.00934732984751463, -0.04925692081451416, + 0.026593631133437157, 0.03981388360261917, 0.023633113130927086, 0.01140820886939764, + -0.02136167883872986, 0.0138455331325531, 0.02434772066771984, 0.017354769632220268, + 0.039277926087379456, -0.011657045222818851, 0.08830515295267105, 0.03305062651634216, + -0.0034103398211300373, 0.028865065425634384, 0.0370575375854969, -0.008849656209349632, + 0.049384526908397675, -0.05066061392426491, -0.024411525577306747, -0.003140766639262438, + 0.0034550027921795845, 0.052829958498477936, 0.00429402943700552, -0.01145925186574459, + -0.01440701074898243, 0.059976041316986084, -0.014904684387147427, -0.002464441116899252, + -0.009009166620671749, 0.0011987233301624656, -0.03437775745987892, 0.014394249767065048, + -0.01833735592663288, -0.001512161921709776, 0.007126940414309502, -0.006307054776698351, + -0.0027292289305478334, 0.039099276065826416, -0.030319802463054657, -0.049001701176166534, + -0.01689537800848484, -0.046143271028995514, 0.009889665991067886, -0.031264107674360275, + -0.03754245117306709, -0.01564481481909752, -0.05191117897629738, 0.0016716726822778583, + 0.0077203200198709965, -0.02031528949737549, -0.014241119846701622, 0.004306790418922901, + 0.04101340472698212, -0.047751136124134064, -0.03034532442688942, 0.004105806816369295, + -0.014445293694734573, -0.009915187954902649, -0.0037772145587950945, 0.01670396514236927, + -0.0165125522762537, -0.02194867841899395, -0.019524116069078445, -0.021999722346663475, + -0.008696526288986206, 0.0033497256226837635, 0.016665682196617126, 0.02557276375591755, + 0.027333762496709824, -0.024845393374562263, -0.02451361157000065, -0.020736398175358772, + 0.021897636353969574, 0.016257336363196373, -0.04274887964129448, -0.006667549256235361, + -0.0007983513060025871, 0.0014244309859350324, -0.008543395437300205, -0.006910005584359169, + 0.05487169697880745, 0.00897088460624218, 0.008332841098308563, -0.009659971110522747, + -0.03248915076255798, -0.006329386495053768, 0.044433314353227615, 0.011184893548488617, + -0.010853111743927002, 0.01956239901483059, 0.06553977727890015, 0.026772284880280495, + -0.012677914462983608, -0.005270235240459442, 0.003215736709535122, -0.015900030732154846, + 0.0063134352676570415, -0.009200580418109894, -0.04392287880182266, -0.0035411387216299772, + 0.035373102873563766, -0.05058404803276062, -0.009117634035646915, 0.015581009909510612, + 0.0029764706268906593, 0.03922688215970993, -0.0041089970618486404, 0.012805523350834846, + 0.014713271521031857, -0.0051681483164429665, -0.017137834802269936, 0.031544845551252365, + -0.023709677159786224, 0.030217716470360756, 0.033254802227020264, 0.0443057045340538, + -0.03797632083296776, 0.018924355506896973, 0.014585662633180618, 0.0015568248927593231, + 0.011714469641447067, 0.03437775745987892, -0.040783707052469254, -0.008996406570076942, + -0.03435223549604416, 0.022459113970398903, 0.00711417943239212, 0.0044056870974600315, + -0.004881029017269611, -0.03958418592810631, 0.00691638607531786, 0.03310167044401169, + 0.030141150578856468, 0.03973731771111488, -0.03560280054807663, 0.013373381458222866, + 0.013156446628272533, 0.01766102947294712, 0.0092133404687047, -0.0029413781594485044, + 0.0015448615886271, 0.00033636827720329165, 0.03228497505187988, -0.008804993703961372, + 0.013590315356850624, -0.0027962233871221542, -0.017622748389840126, 0.007458722684532404, + 0.013590315356850624, -0.011829317547380924, -0.015287510119378567, -0.011491154320538044, + 7.058350456645712e-5, 0.033280324190855026, 0.012346131727099419, 0.014394249767065048, + 0.030855759978294373, -0.006571842823177576, -0.02922236919403076, 0.022408070042729378, + -0.029911454766988754, -0.014751554466784, 0.0013199514942243695, -0.02165517956018448, + -0.06120108440518379, 0.03677679970860481, 0.02748689241707325, -0.021884875372052193, + -0.016372183337807655, 0.005573305767029524, -0.018477724865078926, -0.031238585710525513, + -0.009889665991067886, 0.027844196185469627, 0.008728427812457085, 0.011637904681265354, + 0.027793152257800102, -0.015198184177279472, 0.012473740614950657, 0.037185147404670715, + 0.03062606416642666, 0.004884219262748957, 0.012728957459330559, 0.023339612409472466, + 0.01173361111432314, 0.03557727858424187, -0.0018726561684161425, -0.027257196605205536, + 0.01698470488190651, -0.0032077610958367586, -0.05219191685318947, -0.011082806624472141, + -0.018860550597310066, 0.01602764055132866, -0.006801538169384003, 0.0334334522485733, + -0.0438973568379879, -0.022165613248944283, -0.047853223979473114, 0.011376306414604187, + 0.023314090445637703, -0.015810705721378326, 0.005854044575244188, -0.008326461538672447, + 0.04045192524790764, 0.02224217914044857, 0.0654376894235611, 0.013411663472652435, + 0.005854044575244188, -0.007535287644714117, 0.004351453389972448, -0.043948400765657425, + 0.01006831880658865, -0.06656064838171005, -0.01795453019440174, 0.011280599981546402, + 0.005984843242913485, -0.029834890738129616, -0.049486614763736725, 0.004118567332625389, + 0.008186091668903828, 0.011133850552141666, 0.03652158007025719, 0.01159324124455452, + -0.0037421220913529396, 0.0021023517474532127, -0.04619431123137474, 0.020570505410432816, + 0.028278065845370293, -0.0313151516020298, -0.018949877470731735, -0.03596010431647301, + -0.017010226845741272, -0.04264679551124573, 0.00124179117847234, -0.03789975494146347, + -0.014011424034833908, 0.004711947403848171, -0.046143271028995514, -0.0010846731020137668, + 0.02224217914044857, -0.05487169697880745, -0.0017865203553810716, 0.0010639367392286658, + 0.005968892015516758, -0.001010500593110919, 0.0026797805912792683, 0.012448218651115894, + 0.025343067944049835, 0.007452342193573713, -0.013181968592107296, 0.0011030167806893587, + -0.020468419417738914, -0.00412494782358408, 0.027410326525568962, -0.02758897840976715, + -0.03243810683488846, 0.034607451409101486, 0.012709815986454487, 0.006705831736326218, + -0.037567973136901855, -0.02081296220421791, 0.019524116069078445, 0.01804385520517826, + 0.018822267651557922, -0.029145803302526474, 0.0551779568195343, 0.0038027362897992134, + 0.019613441079854965, -0.04167696833610535, 0.009570645168423653, 0.006007174961268902, + 0.0017865203553810716, 0.010738263837993145, 0.008415787480771542, 0.0009211745928041637, + -0.0061092618852853775, 0.0003796355740632862, -0.020481180399656296, -0.009009166620671749, + 0.007816026918590069, 0.019064724445343018, -0.019409267231822014, -0.021042658016085625, + 0.007343874778598547, -0.0038824917282909155, -0.004412067122757435, 0.023926611989736557, + -0.01795453019440174, -0.021412722766399384, 0.013794489204883575, -0.01764826849102974, + -0.011612382717430592, -0.025432392954826355, 0.04468853026628494, 0.014534619636833668, + -0.011369925923645496, -0.03904823213815689, -0.02539411187171936, -0.01604040153324604, + -0.0038473992608487606, 0.013985902070999146, 0.03700649365782738, 0.020251484587788582, + -0.0002775487082544714, -0.023033352568745613, -0.030575020238757133, 0.002730824053287506, + -0.002277813386172056, -0.0017115502851083875, 0.013220250606536865, -0.006479326635599136, + -0.021336156874895096, 0.01567033678293228, -0.010846731252968311, 0.013960381038486958, + 0.004549246747046709, -0.01235251221805811, -0.015210945159196854, 0.045479703694581985, + 0.01140820886939764, -0.005700914189219475, -0.013335098512470722, 0.002288979245349765, + 0.014713271521031857, 0.017035748809576035, 0.025075089186429977, 0.023263048380613327, + 0.023339612409472466, 0.02626184932887554, -0.002646283246576786, 0.048899613320827484, + 0.004153660032898188, 0.025891784578561783, -0.02252291701734066, -0.0027132779359817505, + -0.026312893256545067, -0.015274749137461185, -0.01746961660683155, 0.037950798869132996, + -0.002606405643746257, -0.039456579834222794, -0.0008589653880335391, -0.006718592718243599, + -0.01421559788286686, 0.045479703694581985, -0.0024229681584984064, 0.008039341308176517, + -0.026874370872974396, -0.03044741228222847, -0.007458722684532404, 0.04236605390906334, + -0.050150178372859955, 0.03330584615468979, -0.019358225166797638, -0.006833440624177456, + -0.009583406150341034, -0.0036049429327249527, 0.02473054639995098, 0.03884405642747879, + 0.020570505410432816, 0.04782770201563835, 0.00477575184777379, 0.02177002653479576, + 0.009443036280572414, -0.03618979826569557, 0.014470814727246761, 0.012103675864636898, + -0.0067441146820783615, 0.022854700684547424, -0.010361818596720695, -0.028482239693403244, + -0.004603479988873005, 0.004794893320649862, 0.010100220330059528, -0.004077094607055187, + -0.020111115649342537, 0.01926889829337597, 0.011963305994868279, 0.03519445285201073, + -0.022101810202002525, 0.10285253077745438, -0.010999861173331738, 0.001925294753164053, + 0.019932463765144348, 0.023454461246728897, 0.0383591465651989, -0.0009969421662390232, + -0.0016158438520506024, -0.018094899132847786, 0.010655318386852741, -0.016742248088121414, + -0.005445696879178286, -0.011197654530405998, -0.03636845201253891, -0.004635382443666458, + 0.008084004744887352, 0.060741692781448364, 0.010221448726952076, -0.009896046482026577, + -0.0033433453645557165, -0.014292162843048573, -0.025815218687057495, 0.031136497855186462, + -0.021234070882201195, -0.002600025152787566, -0.05142626538872719, 0.01350098941475153, + 0.018273551017045975, 0.0010615440551191568, 0.012913989834487438, -0.02470502443611622, + -0.030217716470360756, -0.031085453927516937, -0.03902271017432213, -0.03738931939005852, + 0.003512426745146513, -0.026414979249238968, -0.00949408020824194, 0.01513438019901514, + 0.0007341481978073716, 0.0006380429840646684, -0.03299958258867264, -0.03447984158992767, + -0.007101418450474739, -0.01754618249833584, -0.0015456591499969363, 0.036649189889431, + -0.02996249869465828, 0.03715962544083595, 0.0048204148188233376, 0.011752751655876637, + 0.0400690995156765, -0.015261988155543804, 0.000445832556579262, -0.0031327910255640745, + 0.009002787061035633, -0.015083336271345615, 0.03728723153471947, -0.013934859074652195, + -0.02483263425529003, -0.006827060133218765, 0.0005403426475822926, 0.026466023176908493, + -0.016869856044650078, -0.021055418998003006, -0.001647746074013412, -0.013437185436487198, + 0.034403279423713684, -0.007503385655581951, 0.005617968738079071, -0.021629657596349716, + 0.01125507801771164, 0.011293360963463783, -0.024118024855852127, 0.018758464604616165, + 0.010859491303563118, -0.01605316251516342, 0.021502049639821053, -0.0036496059037745, + -0.017112312838435173, 0.012448218651115894, -0.009130395017564297, -0.016065923497080803, + 0.010030035860836506, -0.023250287398695946, 0.01421559788286686, -0.00439292611554265, + -0.008122287690639496, 0.022484635934233665, -0.008517874404788017, 0.025240980088710785, + -0.02080020122230053, 0.0010766976047307253, -0.015695856884121895, -0.014534619636833668, + -0.03647053614258766, -0.000130699118017219, 0.028405673801898956, 0.011491154320538044, + -0.007101418450474739, -0.011044524610042572, -0.016091443598270416, -0.009028308093547821, + 0.024066980928182602, -0.03159588947892189, 0.013909337110817432, -0.018248029053211212, + -0.004077094607055187, -0.008568917401134968, -0.02212733030319214, 0.000807523145340383, + 0.007975537329912186, 0.00486826803535223, 0.04849126935005188, 0.011944164521992207, + 0.017775878310203552, -0.015236467123031616, 0.016474269330501556, 0.01879674568772316, + 0.03006458654999733, -0.019358225166797638, -0.009519601240754128, -0.01517266221344471, + 0.010336296632885933, 0.029094761237502098, 0.007299211807549, -0.005637109745293856, + -0.01344994641840458, -0.02231874316930771, 0.010712741874158382, 0.005461648106575012, + 0.012065392918884754, -0.02912028320133686, 0.0125120235607028, 0.02557276375591755, + -0.036980971693992615, 0.05686239153146744, 0.0038729209918528795, 0.047955311834812164, + 0.00047015794552862644, 0.03521997481584549, 0.017329247668385506, -0.019817614927887917, + -0.00413132831454277, 0.019447550177574158, 0.013245772570371628, 0.02291850373148918, + -0.015823466703295708, -0.02566208876669407, 0.04019670933485031, -0.013539272360503674, + -0.04272335767745972, -0.0033784375991672277, -0.01456014160066843, 0.01049580704420805, + 0.012473740614950657, 0.04139623045921326, -0.008907080627977848, -0.011248698458075523, + -0.011822937056422234, 0.024590177461504936, 0.010470285080373287, -0.008460449986159801, + 0.017775878310203552, -0.0022395309060811996, 0.057985346764326096, 0.025049567222595215, + 0.0029700901359319687, 0.0014643087051808834, -0.01498124934732914, -0.018184226006269455, + -0.014432532712817192, 0.023901090025901794, 0.005554164294153452, -0.008734808303415775, + -0.004332311917096376, -0.003968627657741308, 0.00189020240213722, -0.024105263873934746, + -0.023403417319059372, -0.036036666482686996, -0.019690006971359253, 0.009283525869250298, + -0.01313092466443777, -0.0005303732468746603, 0.0008047317387536168, 0.0027738919015973806, + -0.005372322164475918, 0.009430275298655033, -0.023033352568745613, -0.03491371124982834, + 0.01217386033385992, 0.007356635760515928, -0.011956925503909588, -0.022561199963092804, + 0.011727230623364449, -0.008607200346887112, 0.016742248088121414, -0.011089187115430832, + 0.006386810448020697, -0.018937116488814354, 0.007522527128458023, 0.022012483328580856, + 0.04226396977901459, -0.05956769362092018, -0.025521719828248024, 0.02243359200656414, + 0.0037261710967868567, 0.023352373391389847, 0.03667471185326576, -0.014126271940767765, + 0.0032619948033243418, -0.007241787854582071, -0.020825723186135292, -0.03315271437168121, + -0.011350784450769424, -0.006648407783359289, -0.02080020122230053, -0.01178465411067009, + 0.03141723573207855, 0.020940570160746574, -0.024373242631554604, -0.00877947174012661, + 0.012224903330206871, -0.036215320229530334, -0.007324733771383762, 0.04897617921233177, + -0.03662366792559624, -0.0165125522762537, -0.030141150578856468, -0.0004681640421040356, + 0.0034709537867456675, -0.015249227173626423, 0.0005758337792940438, 0.01813318207859993, + -0.044611964374780655, 0.0030721770599484444, 0.014241119846701622, 0.008887939155101776, + -0.018196986988186836, -0.000594975077547133, 0.0172654427587986, 0.008983645588159561, + 0.01947307214140892, -0.013207489624619484, -0.011625143699347973, -0.0082052331417799, + 0.041268620640039444, 0.010438383556902409, -0.04849126935005188, -0.010438383556902409, + -0.028865065425634384, 0.02863536961376667, 0.013047979213297367, 0.022561199963092804, + 0.030370846390724182, -0.052625786513090134, 0.013717924244701862, 0.0007018473115749657, + 0.019715528935194016, -0.0332292802631855, 0.004472681321203709, 0.00710779894143343, + 6.860208486614283e-6, -0.034505363553762436, 0.01612972654402256, 0.023722438141703606, + -0.020749157294631004, -0.031187541782855988, -0.016844335943460464, -0.030039064586162567, + 0.0020640690345317125, 0.04818500578403473, -0.01011298131197691, -0.03256571292877197, + 0.02756345644593239, 0.0175717044621706, 0.013679642230272293, -0.009296286851167679, + -0.008926221169531345, -0.018005574122071266, -0.028482239693403244, 0.006737734191119671, + 0.019702767953276634, -0.015453401021659374, -0.020098354667425156, -0.02128511480987072, + -0.042136359959840775, 0.002968495013192296, -0.010189546272158623, 0.03146827965974808, + -0.02242083102464676, -0.006032696459442377, 0.019524116069078445, -0.007439581211656332, + -0.013603076338768005, -8.130063361022621e-5, 0.00182480295188725, -0.01928165927529335, + -0.003923964221030474, -0.027078544721007347, 0.021923156455159187, -0.013398902490735054, + -0.018082138150930405, -0.03159588947892189, -0.00020028567814733833, -0.014828119426965714, + -0.011663425713777542, -0.017290964722633362, 0.04660265892744064, 0.004603479988873005, + -0.03136619180440903, -0.012027110904455185, -0.0006264784606173635, -0.01967724598944187, + -0.023735199123620987, 0.017316486686468124, -0.013194729574024677, 0.005598827265202999, + -0.02922236919403076, -0.03960970789194107, -0.010699980892241001, 0.026032153517007828, + -0.015797944739460945, 0.00902192760258913, -0.004632192198187113, -0.02797180414199829, + 0.048338137567043304, -0.01083397027105093, 0.012537544593214989, 0.014917445369064808, + 0.012658772990107536, -0.0022060335613787174, -0.0020736397709697485, 0.007152461912482977, + 0.002877573948353529, 0.0005826129927299917, -0.002545791445299983, 0.010604274459183216, + 0.00048132368829101324, -0.02566208876669407, -0.02626184932887554, 0.033458974212408066, + 0.0016764579340815544, -0.007745841983705759, 0.011663425713777542, -0.010093839839100838, + 0.007229027338325977, 0.005094773136079311, 0.01307988166809082, -0.010400100611150265, + -0.008530634455382824, 0.012460979633033276, 0.03481162711977959, -0.01669120416045189, + -0.020060071721673012, -0.04361661896109581, 0.012486501596868038, 0.014751554466784, + -0.0005730423727072775, -0.01813318207859993, -0.0003124416689388454, 0.011082806624472141, + 0.015198184177279472, 0.03710858151316643, -0.022076288238167763, -0.021693462505936623, + -0.020277006551623344, 0.01031077466905117, 0.015708617866039276, 0.01493020635098219, + 0.03305062651634216, -0.01584898866713047, -0.047674573957920074, 0.019051963463425636, + 0.0022650526370853186, 0.027078544721007347, 0.022931264713406563, -0.011759132146835327, + 0.023684155195951462, 0.014623945578932762, -0.016665682196617126, 0.015427879989147186, + 0.008549775928258896, -0.01698470488190651, 0.004086665343493223, 0.00802020076662302, + -0.023135438561439514, -0.005828522611409426, 0.008135047741234303, -0.009098493494093418, + -0.01937098614871502, -0.017980052158236504, -0.019128529354929924, 0.016180770471692085, + -0.005972082260996103, 0.0016206292202696204, 0.010023655369877815, 0.013577555306255817, + 0.015619292855262756, 0.01216109935194254, 0.00749062467366457, -0.008900700137019157, + -0.01965172402560711, 0.020264245569705963, 0.04277440160512924, 0.011204035021364689, + 0.025036806240677834, -0.003017943352460861, -0.011503915302455425, 0.008913460187613964, + 0.015593770891427994, -0.02319924347102642, 0.008862417191267014, -0.023645874112844467, + -0.041268620640039444, -0.023645874112844467, 0.021782787516713142, -0.011382686905562878, + 0.027844196185469627, -0.02661915309727192, -0.014139032922685146, -0.01888607256114483, + -0.03083023801445961, 0.02155309170484543, -0.00974291656166315, 0.0004314765683375299, + 0.04236605390906334, 0.012409936636686325, 0.007905352860689163, -0.013552033342421055, + 0.011114709079265594, -0.006182636599987745, -0.018375638872385025, 0.012224903330206871, + -0.015568248927593231, 0.046245355159044266, 0.010342677123844624, -0.032131846994161606, + 0.04468853026628494, -0.03414805978536606, 0.015797944739460945, 0.03968627378344536, + -0.025164416059851646, -0.001960386987775564, -0.016627401113510132, 0.013666881248354912, + 0.00012691074516624212, 0.029988020658493042, 0.029145803302526474, 0.012384414672851562, + 0.012148338370025158, 0.007675657048821449, 0.027231674641370773, 0.011918643489480019, + -0.011944164521992207, 0.026312893256545067, -4.9498179578222334e-5, 0.021642418578267097, + 0.04205979406833649, 0.011676186695694923, -0.03185110539197922, -0.0313151516020298, + -0.0005953738582320511, 0.012913989834487438, 0.0553821325302124, -0.02689989283680916, + -0.002170941326767206, 0.02873745560646057, -0.03407149761915207, 0.007056755479425192, + 0.0028807641938328743, -0.03894614428281784, 0.0013351049274206161, 0.0007333506946451962, + -0.0272827185690403, 0.010527709499001503, -0.020213201642036438, 0.010891393758356571, + -0.0010192736517637968, 0.0031758591067045927, -0.02527926303446293, -0.030702628195285797, + 0.027461370453238487, -0.03846123069524765, -0.022765373811125755, -0.058853086084127426, + 0.023786243051290512, 0.0074012987315654755, -0.00206247391179204, 0.029477586969733238, + -0.01614248752593994, 0.007637374568730593, -0.003758073318749666, -0.027895240113139153, + 0.0013079881900921464, 0.005458457861095667, 0.006737734191119671, 0.015057814307510853, + ], + index: 18, + }, + { + title: "Foreign Economic Administration", + text: "In the administration of Franklin Delano Roosevelt, the Foreign Economic Administration was formed to relieve friction between US agencies operating abroad. As described by the biographer of the FEA's chief, Leo Crowley, the agency was designed and run by \"The Nation's #1 Pinch-hitter\".S. L.", + vector: [ + -0.005764643661677837, 0.010161272250115871, -0.010556652210652828, -0.024418683722615242, + -0.006618665065616369, -0.008374153636395931, -0.03770345821976662, 0.011015293188393116, + -0.07793734967708588, 0.03077639639377594, 0.010865048505365849, 0.030048897489905357, + -0.06439953297376633, -0.049375083297491074, 0.0011129953199997544, 0.0183772724121809, + -0.041593998670578, 0.00693101529031992, -0.0027399850077927113, -0.030586615204811096, + -0.011719070374965668, -0.03982269763946533, 0.012051189318299294, -0.02067047916352749, + 0.010888771153986454, 0.029827484861016273, -0.013181976974010468, 0.01298428699374199, + 0.024434497579932213, 0.025051292032003403, 0.019183848053216934, 0.01951596885919571, + 0.018092598766088486, -0.030681505799293518, 0.01719113253057003, -0.01060409750789404, + 0.01654270850121975, -0.012936840765178204, -0.007456871215254068, -0.004250337369740009, + -0.0004571583995129913, 0.000445791200036183, -0.044662151485681534, 0.06443116068840027, + 0.041119541972875595, 0.047635409981012344, -0.061932358890771866, 0.019642489030957222, + 0.011149722151458263, 0.015206323936581612, 0.002866506576538086, -0.03669128566980362, + -0.022631565108895302, 0.02906835451722145, 0.02785058319568634, -0.0072196428664028645, + 0.059496816247701645, 0.03022286482155323, -0.0486159548163414, -0.0050371442921459675, + 0.02378607541322708, -0.049786277115345, -0.040044110268354416, -0.018551239743828773, + -0.004388720728456974, 0.02894183248281479, 0.018108414486050606, 0.03131411597132683, + 0.017950262874364853, -0.01418624259531498, -0.0148267587646842, 0.009259805083274841, + -0.029368843883275986, 0.0377667210996151, -0.04273269698023796, -0.05019747465848923, + 2.990062967000995e-5, -0.043586716055870056, -0.0005050982581451535, 0.010208717547357082, + -0.007247319445014, -0.0001155869395006448, 0.01660596951842308, 0.014352302066981792, + 0.007472686469554901, -0.004143584985285997, -0.03482509031891823, -0.05807344987988472, + 0.0009172821301035583, -0.002866506576538086, -0.011916760355234146, 0.030317755416035652, + -0.04456726089119911, 0.00831880047917366, 0.05336051434278488, 0.010248255915939808, + -0.0711684376001358, 0.007638745941221714, -0.0011723024072125554, -0.01330059114843607, + -0.05272790789604187, 0.01668504625558853, -0.07363561540842056, -0.005871396511793137, + -0.013189884833991528, 0.037608567625284195, -0.038715630769729614, 0.02082863077521324, + -0.022346891462802887, 0.13208863139152527, -0.04902714863419533, -0.029874930158257484, + 0.03555259108543396, 0.014107166789472103, 0.029890745878219604, 0.0534554086625576, + 0.024497758597135544, 0.028103627264499664, -0.0002970293862745166, 0.028309224173426628, + 0.02136634849011898, -0.017412545159459114, 0.02957444079220295, 0.038241174072027206, + 0.008014357648789883, 0.029305582866072655, 0.01181396096944809, 0.05275953933596611, + 0.01959504373371601, -0.038146283477544785, -0.05921214446425438, -0.002524502808228135, + 0.0437764972448349, -0.009615647606551647, 0.009860782884061337, -0.012573091313242912, + -0.005487877409905195, -0.009829152375459671, 0.01831401139497757, 0.04583247750997543, + 0.026316508650779724, 0.03922171890735626, -0.03311704844236374, 0.0017189155332744122, + 0.0018968366784974933, -0.055353231728076935, 0.04804660379886627, -0.026743518188595772, + -0.021571945399045944, 0.004792008548974991, -0.023928411304950714, 0.025114553049206734, + 0.017001349478960037, -0.0005243730265647173, -0.007437102030962706, -0.061299752444028854, + 0.012059097178280354, 0.005187388509511948, -0.006685879547148943, 0.035331178456544876, + -0.01715950109064579, 0.01271542813628912, -0.02378607541322708, 0.012620536610484123, + -0.009354696609079838, 0.008903962559998035, 0.019310370087623596, -0.000600977975409478, + -0.05864279717206955, 0.025288520380854607, 0.04330204427242279, 0.00914119090884924, + 0.0039063566364347935, -0.009157005697488785, -0.00028862757608294487, -0.031677864491939545, + 0.009299343451857567, 0.025826236233115196, 0.004183122888207436, -0.01149765681475401, + 0.007448963355273008, 0.027391942217946053, -0.011212983168661594, 0.05687149241566658, + 0.003200602950528264, 0.0007250285125337541, -0.005183434579521418, -0.004958068020641804, + -0.00280917645432055, -0.017618143931031227, 0.017317654564976692, 0.03419248387217522, + 0.024766618385910988, 0.037608567625284195, 0.038778893649578094, 0.0012088750954717398, + -0.01334803644567728, 0.043555084615945816, 0.007848297245800495, -0.008279262110590935, + 0.01668504625558853, 0.022837162017822266, 0.04731910675764084, 0.01831401139497757, + 0.010627820156514645, 0.028688790276646614, 0.028894387185573578, -0.061932358890771866, + -0.03202579915523529, 0.035805635154247284, 0.03205743059515953, -0.08382061123847961, + 0.02125564031302929, -0.02131890133023262, -0.050102584064006805, 0.010453852824866772, + -0.009560293518006802, 0.013949014246463776, -0.0022081986535340548, 0.012628444470465183, + -0.03030194155871868, 0.019231295213103294, -0.024134010076522827, 0.007520131766796112, + -0.0055432310327887535, -0.028862757608294487, 0.01451836246997118, -0.0034417849965393543, + -0.00394391780719161, 0.008176462724804878, -0.03688106685876846, 0.060635510832071304, + 0.0037897194270044565, 0.03656476363539696, -0.04576921463012695, 0.022362705320119858, + 0.002350535476580262, -0.033433351665735245, -0.047603778541088104, 0.037608567625284195, + -0.012501922436058521, 0.026838410645723343, -0.026411399245262146, -0.01779210940003395, + 0.02611090987920761, 0.024703357368707657, -0.022789716720581055, -0.010248255915939808, + -0.01589428447186947, 0.028672974556684494, 0.02082863077521324, -0.03371802717447281, + 0.0064842356368899345, 0.005661844741553068, 0.02258411794900894, 0.06775235384702682, + 0.008437413722276688, -0.030412647873163223, -0.004744562786072493, 0.015506812371313572, + 0.010311516001820564, -0.007504316978156567, 0.005321817938238382, 0.03318030759692192, + -0.0392533503472805, -0.02788221463561058, 0.01245447713881731, -0.03257933259010315, + 0.039316609501838684, -0.026743518188595772, -0.009497033432126045, -0.02305857464671135, + 0.043555084615945816, 0.05500529706478119, -0.017602328211069107, 0.013253144919872284, + 0.003406200557947159, 0.044029541313648224, 0.0604773610830307, 0.048805736005306244, + -0.012541460804641247, 0.024039117619395256, 0.037576936185359955, -0.014795128256082535, + -0.07306626439094543, 0.014716052450239658, -0.027107268571853638, -0.038747262209653854, + 0.00921235978603363, 0.007195920217782259, -0.016305480152368546, 0.001842471887357533, + 0.03722900152206421, 0.028720419853925705, 0.023912595584988594, 0.04580084607005119, + 0.003981478977948427, -0.011070646345615387, -0.0008619289146736264, 0.01066735852509737, + 0.04453562945127487, 0.034065961837768555, 0.048173125833272934, 0.006175839342176914, + -0.02598438784480095, 0.015997083857655525, -0.03732389211654663, -0.01391738373786211, + 0.009884505532681942, -0.030934549868106842, 0.03129829838871956, -0.01097575481981039, + -0.030428461730480194, -0.03158297389745712, -1.3954141650174279e-5, -0.013490373268723488, + 0.016843197867274284, -0.05323399230837822, 0.044693782925605774, -0.07110518217086792, + -0.0027360310778021812, 0.03416085243225098, -0.030396832153201103, 0.012794503942131996, + 0.009671000763773918, -0.07838017493486404, -0.011133907362818718, -0.04678138718008995, + -0.010643635876476765, 0.01769721880555153, -0.005084589589387178, -0.07009300589561462, + -0.009006761945784092, 0.025272704660892487, -0.07091540098190308, -0.013759232126176357, + -0.044092804193496704, 0.011315782554447651, -0.0022338982671499252, 0.007136613130569458, + 0.0190415121614933, 0.0038035577163100243, -0.023232541978359222, 0.0022655287757515907, + -0.02482987754046917, 0.00215284526348114, -0.011616270989179611, -0.010216625407338142, + 0.0019383515464141965, -0.04153073951601982, 0.0008930650656111538, -0.01589428447186947, + 0.025272704660892487, 0.000450239225756377, 0.03264259174466133, -0.011711162514984608, + -0.012952656485140324, -0.011157630011439323, 0.01041431538760662, 0.05513181909918785, + 0.03387617692351341, 0.029226506128907204, 0.02184080332517624, 0.037576936185359955, + -0.05209529772400856, 0.013427112251520157, -0.027471018955111504, -0.021144933998584747, + -0.012509830296039581, -0.005175527185201645, -0.02495639957487583, 0.0018345642602071166, + 0.04096139222383499, -0.028071995824575424, 0.024466129019856453, -0.01711205579340458, + -0.03447715565562248, -0.002089584479108453, 0.012240971438586712, 0.0007996564963832498, + -0.039885956794023514, -0.02120819501578808, -0.016321295872330666, 0.038905415683984756, + 0.015158877708017826, -0.04674975946545601, -0.0248140636831522, 0.03270585089921951, + 0.013015917502343655, 0.009868690744042397, -0.04798334464430809, -0.0065514505840837955, + -0.05402475595474243, -0.0296535175293684, -0.05506855994462967, -0.06724626570940018, + 0.027123084291815758, 0.028103627264499664, 0.012604721821844578, 0.005748828407377005, + -0.0133638521656394, 0.00856393575668335, 0.002660908969119191, -0.01774466410279274, + -0.012976379133760929, -0.049343451857566833, -0.024545203894376755, 0.016938088461756706, + -0.008951408788561821, 0.05339214578270912, -0.02258411794900894, -0.04197356477379799, + 0.016795752570033073, -0.024640096351504326, 0.03545770049095154, 0.02664862759411335, + -0.04425095394253731, -0.008160647936165333, -0.021635206416249275, -0.014391840435564518, + -3.496644058031961e-5, 0.04697117209434509, 0.004657579120248556, 0.013158254325389862, + 0.05057704076170921, 0.015103524550795555, -0.0032045566476881504, -0.03612193837761879, + 0.006049317307770252, -0.01097575481981039, 0.023817704990506172, -0.01891499012708664, + -0.017017165198922157, 0.019231295213103294, 0.017649773508310318, -0.014605345204472542, + 0.03023868054151535, 0.017396729439496994, 0.002854645252227783, 0.0023900733795017004, + -0.006480282172560692, -0.007310580462217331, 0.0097737992182374, -0.0472874753177166, + -0.057630620896816254, 0.0002799786161631346, 0.009038392454385757, 0.05386660248041153, + 0.044092804193496704, 0.008975131437182426, -0.05408801510930061, -0.02544667199254036, + -0.023343248292803764, -0.003350847400724888, -0.00855602789670229, 0.03390780836343765, + 0.012644260190427303, -0.037545304745435715, -0.012628444470465183, 0.003532722359523177, + -0.011924667283892632, 0.035299547016620636, 0.061236489564180374, -0.023343248292803764, + -0.013632710091769695, -0.009931951761245728, -0.006120485719293356, -0.01603662222623825, + -0.01298428699374199, -0.029732592403888702, -0.030554983764886856, 0.010793880559504032, + 0.016432002186775208, 0.025241073220968246, 0.0015528558287769556, 0.048268020153045654, + 0.021050043404102325, -0.06110996752977371, 0.03327520191669464, 0.0007151439785957336, + -0.03189927712082863, -0.005072728265076876, 0.06231192499399185, -0.004701070953160524, + 0.0037007590290158987, -0.048900626599788666, -0.022062215954065323, 0.028767865151166916, + -0.03564748167991638, 0.0031689724419265985, 0.05260138586163521, -0.012114450335502625, + -0.0059900106862187386, -0.00952075608074665, -0.015459367074072361, -0.003779835067689419, + -0.026490475982427597, 0.03716574236750603, 0.0007620953838340938, -0.008093433454632759, + -0.013775046914815903, 0.004507334437221289, 0.028119441121816635, -0.06392507255077362, + -0.022014770656824112, 0.013197791762650013, 0.044693782925605774, 0.0019205594435334206, + -0.0025541563518345356, -0.013585264794528484, 0.016384556889533997, 0.0377667210996151, + -0.004479657858610153, -0.0008149775094352663, -0.002188429469242692, 0.003083965741097927, + 0.03215232118964195, 0.0159575454890728, 0.0017762456554919481, 0.02720215916633606, + -0.004179168958216906, 0.05870605632662773, 0.01708042621612549, -0.02008531615138054, + 0.08723669499158859, -0.0033034018706530333, 0.007302672602236271, 0.0182981975376606, + -0.01719113253057003, -0.040581826120615005, 0.024371236562728882, -0.010572466999292374, + 0.02728123590350151, 0.02781895361840725, 0.0009874621173366904, 0.02369118295609951, + -0.00021894180099479854, 0.004111954476684332, -0.011639993637800217, -0.04599062725901604, + -0.0032757252920418978, -0.019800642505288124, 0.030507538467645645, -0.033401720225811005, + -0.0272337906062603, 0.006764955818653107, 0.04456726089119911, -0.000455675704870373, + 0.012865672819316387, -0.0011624179314821959, 0.030539168044924736, -0.016859013587236404, + -0.0342557430267334, 0.07534365355968475, 0.06762583553791046, -0.004677348304539919, + 0.0028783681336790323, 0.013197791762650013, 0.004606179893016815, -0.003467484610155225, + 0.02952699549496174, -0.018171675503253937, 0.003030589548870921, -0.0016724583692848682, + -0.04633856192231178, 0.019231295213103294, -0.03139318898320198, 0.0004675371164921671, + -0.0546257309615612, 0.007583392783999443, 0.009560293518006802, 0.02362792193889618, + 0.0005960356793366373, -0.008943500928580761, -0.031235037371516228, -0.014573715627193451, + 0.007583392783999443, 0.005748828407377005, -0.0035030688159167767, 0.008334615267813206, + 0.022900423035025597, -0.0427643246948719, 0.014043905772268772, 0.011268336325883865, + -0.011442303657531738, 0.026443028822541237, 0.013332221657037735, 0.010319423861801624, + 5.136854088050313e-5, -0.015198416076600552, -0.014621160924434662, 0.02663281187415123, + -0.006879616063088179, 0.0115688256919384, 0.035805635154247284, 0.018503794446587563, + -0.04067671671509743, 0.0027241697534918785, -0.020923521369695663, -0.010517113842070103, + 0.012193526141345501, -0.01514306291937828, 0.027534279972314835, 0.039885956794023514, + -0.02312183566391468, 0.03779834881424904, -0.04077161103487015, -0.05642866715788841, + 0.0029554672073572874, -0.021508684381842613, 0.0738253965973854, -0.011861407198011875, + 0.004270106554031372, 0.004404535982757807, 0.03447715565562248, 0.012517738156020641, + -0.004708978347480297, -0.004432212561368942, -0.006278638262301683, -0.019832272082567215, + 0.03751367703080177, -0.03359150514006615, -0.009410049766302109, 0.025731345638632774, + 0.013205699622631073, -0.018804283812642097, 0.00856393575668335, -0.0079787727445364, + -0.0011327643878757954, -0.0020144623704254627, -0.028056181967258453, 0.050070952624082565, + -0.00976589135825634, -0.0011584641179069877, 0.013688063248991966, 0.04210008680820465, + 0.014684421941637993, -0.022979499772191048, 0.009378419257700443, -0.02435542270541191, + 0.04108791425824165, -0.020860260352492332, -0.007860158570110798, 0.011584640480577946, + 0.0017604305176064372, -0.032864004373550415, 0.003995317034423351, -0.02068629302084446, + 0.009576109237968922, -0.011125999502837658, -0.01298428699374199, -0.040455304086208344, + -0.0018553216941654682, 0.0031096655875444412, 0.012343770824372768, -0.017491621896624565, + 0.02133471705019474, -0.018124230206012726, 0.029400473460555077, -0.002504733856767416, + -0.03151971101760864, 0.03025449439883232, 0.018108414486050606, -0.02607928030192852, + 0.005816043354570866, -0.02073373831808567, -0.024118194356560707, 0.008722088299691677, + 0.05617562308907509, -0.0005204192129895091, 0.035141393542289734, 0.009868690744042397, + 0.01883591338992119, 0.010319423861801624, -0.00430569052696228, 0.006776817142963409, + 0.015751948580145836, 0.020037870854139328, 0.02734449692070484, 0.014621160924434662, + -0.034666936844587326, -0.009718446061015129, 0.024070749059319496, -0.05136780068278313, + -0.0034971381537616253, -0.00530204875394702, -0.022663194686174393, -0.02968514710664749, + -0.012944748625159264, -0.028688790276646614, -0.024023301899433136, -0.0008149775094352663, + 0.008437413722276688, -0.014225780963897705, -0.019990423694252968, -0.03330682963132858, + 0.02302694506943226, 0.0033587550278753042, -0.047129321843385696, 0.0731927901506424, + -0.028862757608294487, -0.0006919153966009617, -0.025794606655836105, -0.030064713209867477, + 0.02957444079220295, -0.018045153468847275, -0.013150346465408802, -0.031662046909332275, + -0.013387574814260006, -0.02541504055261612, -0.0059267496690154076, -0.03077639639377594, + -0.02255248837172985, 0.0017683380283415318, 0.0023011129815131426, 0.0004326942435000092, + 0.009259805083274841, -0.019895533099770546, -0.06787887960672379, -0.0004766802885569632, + 0.004368951544165611, 0.014320671558380127, 0.02244178205728531, -0.006266776472330093, + -0.0365963950753212, -0.021192381158471107, -0.005740921013057232, -0.016171051189303398, + -0.01655852422118187, -0.0071721975691616535, 0.002908021677285433, 0.021192381158471107, + -0.007017998956143856, 0.022773901000618935, 9.384102304466069e-5, 0.03903193771839142, + 0.012059097178280354, 0.04545291140675545, -0.021192381158471107, 0.04304900020360947, + 0.01953178271651268, 0.019373631104826927, 0.012501922436058521, -0.01214608084410429, + -0.024750802665948868, 0.00945749506354332, 0.033401720225811005, 0.025715529918670654, + -0.008548120968043804, -0.007856205105781555, 0.002635209122672677, -0.044219326227903366, + -0.013719693757593632, 0.008231816813349724, 0.006535635329782963, -0.0031887416262179613, + -0.0020658615976572037, -0.07173778861761093, 0.022805532440543175, 0.03684943914413452, + -0.02664862759411335, -0.024466129019856453, 0.013126623816788197, -0.027044007554650307, + 0.05105149373412132, -0.019800642505288124, 0.03199416771531105, -0.03153552860021591, + -0.009275619871914387, 0.02131890133023262, 0.005816043354570866, -0.010153364390134811, + -0.05130453780293465, -0.048331279307603836, -0.006741232704371214, -0.004902714863419533, + -0.01780792511999607, -0.024007488042116165, 0.028736235573887825, -0.02841993048787117, + -0.022093847393989563, 0.011165537871420383, -0.009805429726839066, -0.03131411597132683, + -0.028198517858982086, -0.07939235121011734, -0.04383976012468338, -0.02895764820277691, + 0.004123815800994635, -0.0017604305176064372, -0.006824262905865908, 0.037608567625284195, + -0.021571945399045944, -0.01092040166258812, 0.005867442581802607, -0.03716574236750603, + 0.005602537654340267, -0.024418683722615242, -0.045927368104457855, 0.014486731961369514, + -0.013174069114029408, 0.006883569993078709, -0.006286545656621456, -0.004325459711253643, + -0.013189884833991528, 0.005258556921035051, 0.028846941888332367, -0.012240971438586712, + -0.06307105720043182, 0.034097589552402496, -0.01652689278125763, 0.02906835451722145, + 0.015530535019934177, 0.028704604133963585, -0.0013798769796267152, 0.03966454416513443, + 0.025146182626485825, -0.028040366247296333, -0.024149823933839798, 0.011450211517512798, + -0.04665486887097359, 0.04311225935816765, -0.04320714995265007, 0.02721797488629818, + 0.01831401139497757, 0.022647378966212273, 0.02432379126548767, -0.01244656927883625, + 0.02018020674586296, -0.0202118381857872, -0.004515242297202349, 0.009046299383044243, + -0.03254770115017891, -0.011545103043317795, -0.016416186466813087, 0.02081281505525112, + 0.04197356477379799, -0.013087085448205471, -0.03387617692351341, 0.043649978935718536, + -0.014842573553323746, 0.012248879298567772, -0.012501922436058521, 0.008216001093387604, + -0.01834564283490181, 0.01181396096944809, 0.035900525748729706, -0.057630620896816254, + -0.01067526638507843, -0.04096139222383499, -0.0001254096714546904, -0.029906559735536575, + 0.018029337748885155, -0.02375444397330284, 0.0284831915050745, -0.008690457791090012, + -0.03299052640795708, -0.016859013587236404, 0.0005362344090826809, 0.023295802995562553, + -0.021461239084601402, 0.044788673520088196, 0.01329268328845501, 0.028894387185573578, + 0.0007047652616165578, 0.00215679919347167, -0.009014668874442577, -0.024149823933839798, + 0.0012484131148084998, -0.036438241600990295, -0.03963291272521019, -0.010319423861801624, + 0.0036434289067983627, 0.002293205354362726, -0.0008896054932847619, -0.006373529322445393, + 0.03019123338162899, -0.013276868499815464, 0.041119541972875595, 0.031061070039868355, + -0.03305378556251526, 0.011371135711669922, -0.03605867549777031, -0.014059720560908318, + 0.0133638521656394, 0.0027676615864038467, -0.001203932799398899, -0.023975856602191925, + -0.014684421941637993, -0.03858910873532295, 0.035331178456544876, 0.018661946058273315, + 0.01329268328845501, -0.016210589557886124, -0.008587658405303955, -0.007990634068846703, + 0.0017268231604248285, 0.0049224840477108955, -0.029827484861016273, 0.02892601676285267, + -0.0011475911596789956, 0.01004265807569027, -0.0003281655954197049, -0.014146704226732254, + 0.022141292691230774, 0.0027617309242486954, 0.027123084291815758, -0.004788054618984461, + -0.013909476809203625, 0.018725207075476646, 0.0354260690510273, -0.008271354250609875, + 0.019199663773179054, -0.010208717547357082, 0.002097492106258869, -0.0031867646612226963, + -0.0034220158122479916, 0.03193090856075287, -0.013569449074566364, 0.013885753229260445, + -0.00025254912907257676, 0.02309020608663559, -0.021113304421305656, -0.03612193837761879, + 0.03631171956658363, -0.0015459366841241717, -0.011703254655003548, -0.007947142235934734, + 0.019784826785326004, -0.013585264794528484, -0.02955862507224083, -0.017887001857161522, + -0.0066542490385472775, -0.03158297389745712, -0.023406509310007095, 0.009338880889117718, + -0.061204858124256134, -0.011062738485634327, -0.018598686903715134, 0.0182981975376606, + 0.010129641741514206, -0.011276244185864925, 0.012905210256576538, -0.03365476429462433, + 0.026269063353538513, -0.03137737512588501, 0.021682651713490486, -0.01187722198665142, + 0.012565183453261852, -0.011323689483106136, 0.004254291299730539, 0.006298406980931759, + 0.013806677423417568, -0.03745041415095329, 0.010801787488162518, -0.004384766798466444, + -0.025003844872117043, -0.0412776954472065, 0.03979106619954109, -0.022283630445599556, + -0.022631565108895302, -0.03922171890735626, 0.004649671725928783, -0.002775569213554263, + -0.003044427838176489, -0.002271459437906742, -0.04674975946545601, -0.053075842559337616, + -0.031187592074275017, 0.0019442823249846697, -0.01714368723332882, 0.014795128256082535, + 0.003684943774715066, 0.019879717379808426, -0.0026470706798136234, 0.01391738373786211, + -0.01419415045529604, 0.01215398870408535, -0.05582768842577934, 0.01717531681060791, + -0.03615356981754303, 0.010762250050902367, 0.01246238499879837, 0.012565183453261852, + -0.018234936520457268, 0.019721565768122673, -0.023390693590044975, -0.03672291710972786, + -0.03219976648688316, 0.0016981580993160605, -0.03798813372850418, 0.010651543736457825, + 0.014486731961369514, -0.013435020111501217, 0.001800956903025508, -0.028008734807372093, + 0.01663760095834732, -0.012422846630215645, 0.03205743059515953, 0.007872020825743675, + -0.02715471386909485, -0.011260428465902805, -0.04368160665035248, -0.042289867997169495, + -0.023248357698321342, -0.008896054700016975, 0.005792320240288973, 0.0003464519395492971, + -0.030665690079331398, 0.010018935427069664, -0.018219120800495148, 0.032927267253398895, + 0.02065466344356537, 0.0075517622753977776, -0.053645189851522446, -0.006369575392454863, + 0.05965496972203255, 0.005313910078257322, -0.016076160594820976, -0.013094993308186531, + 0.03735552355647087, -0.022093847393989563, -0.017048794776201248, -0.013427112251520157, + -0.018551239743828773, 0.00952866394072771, -0.011948390863835812, -0.003101757960394025, + 0.025051292032003403, -0.024655910208821297, -0.003951825201511383, 0.03504650294780731, + -0.047603778541088104, 0.002158776158466935, -0.02663281187415123, -0.003795650089159608, + -0.005191342439502478, 0.02851482294499874, 0.002949536545202136, -0.014099258929491043, + 0.01361689530313015, 0.0012375401565805078, -0.025177812203764915, 0.009924043901264668, + -0.02141379378736019, -0.020227652043104172, -0.0159575454890728, -0.0021014458034187555, + 0.006942876614630222, -0.02726542018353939, -0.005262510851025581, 0.01591010019183159, + 0.020433250814676285, -0.023564660921692848, 0.011695346795022488, 0.009093745611608028, + -0.035331178456544876, 0.010588282719254494, 0.008136925287544727, 0.03555259108543396, + 0.01780792511999607, -0.028245963156223297, -0.0016665277071297169, -0.01512724719941616, + -0.004788054618984461, 0.0007082248339429498, 0.0027241697534918785, -0.025905312970280647, + 0.03602704778313637, -0.004191030282527208, -0.007528039626777172, 0.0012424823362380266, + -0.02970096282660961, -0.006855892948806286, -0.01391738373786211, 0.017317654564976692, + -0.03393943980336189, -0.021587761119008064, 0.017618143931031227, -0.011402766220271587, + 0.016400372609496117, 0.011734885163605213, 0.005381125025451183, -0.04928019270300865, + 0.014581622555851936, -0.018725207075476646, -0.010841325856745243, 0.00823972374200821, + -0.018535425886511803, -0.003062219824641943, -0.006867754738777876, 0.00196998193860054, + 0.0039043796714395285, -0.00273405434563756, -0.024592651054263115, -0.01953178271651268, + -0.047097694128751755, 0.07287648320198059, 0.0011159606510773301, -0.020575586706399918, + 0.0018750907620415092, -0.01276287343353033, 0.018219120800495148, -0.009497033432126045, + 0.02195150963962078, 0.037007588893175125, 0.009172821417450905, -0.0008634115802124143, + 0.016171051189303398, -0.03501487150788307, 0.004301737062633038, 0.012233064509928226, + 0.0044757043942809105, 0.0019027673406526446, 0.005760689731687307, 0.002467172686010599, + -0.010698989033699036, -0.0027992920950055122, 0.035868894308805466, 0.004451981279999018, + -0.03072895109653473, -0.0236437376588583, -0.00740547152236104, -0.0050331903621554375, + 0.0065988958813250065, 0.01951596885919571, -0.020227652043104172, 0.009077929891645908, + 0.00370668969117105, 0.015751948580145836, -0.0021231917198747396, -0.007460825145244598, + 0.025889497250318527, 0.020480696111917496, 0.010627820156514645, 0.029400473460555077, + 0.024418683722615242, 0.001921547926031053, -0.007919466122984886, -0.040455304086208344, + -0.010865048505365849, -0.03555259108543396, 0.016171051189303398, 0.007777129299938679, + 0.03248443827033043, -0.022299444302916527, 0.028309224173426628, 0.012928933836519718, + 0.007650607265532017, 0.019689936190843582, 0.0076150232926011086, 0.006958691868931055, + -0.00784039031714201, -0.033464983105659485, -0.021603574976325035, -0.021445423364639282, + -0.0018395065562799573, -0.004337321035563946, -0.00855602789670229, -0.02361210808157921, + -0.014115073718130589, -0.008026218973100185, -0.03381291776895523, 0.009243989363312721, + 0.0023722813930362463, 0.014423470944166183, 0.01602080650627613, -0.022331075742840767, + -0.007804805878549814, 0.04637019336223602, 0.01451836246997118, 0.011355319991707802, + -0.007520131766796112, -0.004823638591915369, -0.03839932754635811, -0.008690457791090012, + 0.014652791433036327, 0.04754051938652992, 0.0002881333348341286, 0.007484547793865204, + 0.012051189318299294, 0.04102465137839317, -0.016906458884477615, -0.005436478182673454, + -0.012897303327918053, 0.05206367000937462, 0.005582768935710192, 0.014779312536120415, + 0.015467274934053421, 0.013577356934547424, 0.048236388713121414, 0.017966076731681824, + -0.03212068974971771, 0.016226405277848244, -0.016700860112905502, -0.012588906101882458, + -0.03849421814084053, -0.018741022795438766, -0.0036888974718749523, 0.007524085696786642, + -0.0026470706798136234, -0.0273128654807806, 0.010872956365346909, 0.007496409118175507, + -0.0007754394900985062, 0.04181541129946709, -0.01885172910988331, -0.008022264577448368, + -0.013110808096826077, -0.007800851948559284, 0.04848943278193474, -0.032895635813474655, + 0.014360209926962852, -0.014581622555851936, -0.049343451857566833, 0.0038035577163100243, + 0.014795128256082535, -0.0037323893047869205, 0.04621203988790512, -0.009686815552413464, + -0.01665341481566429, 0.018487978726625443, 0.03963291272521019, -0.03327520191669464, + 0.016874827444553375, 0.012905210256576538, -0.0010724688181653619, 0.025114553049206734, + 0.015261677093803883, 0.04504171386361122, 0.0015311099123209715, 0.014494638890028, + 0.035267915576696396, -0.003797627054154873, -0.025842051953077316, 0.007943188771605492, + -0.005076682195067406, -0.00489085353910923, -0.020385805517435074, 0.013419205322861671, + -0.00012985769717488438, -0.020986782386898994, -0.022900423035025597, -0.03548932820558548, + -0.017665589228272438, 0.027059823274612427, 0.018661946058273315, 0.0449468232691288, + -0.028562268242239952, 0.044124431908130646, -0.013174069114029408, 0.0022358752321451902, + -0.032247211784124374, -0.000688950065523386, 0.022852977737784386, -0.02843574620783329, + 0.01387784630060196, -0.013174069114029408, -0.009323066100478172, -0.013387574814260006, + 0.022947868332266808, 0.0045271036215126514, 0.04561106488108635, 0.018582871183753014, + -0.0006583080976270139, 0.02497221529483795, -0.02019602246582508, -0.025161998346447945, + 0.015095616690814495, 0.003779835067689419, 0.003764019813388586, 0.03387617692351341, + 0.0034595769830048084, 0.02541504055261612, -0.01946852169930935, 0.0056578912772238255, + 0.011015293188393116, -0.002109353430569172, -0.01886754482984543, 0.004254291299730539, + 0.05585931986570358, 0.00799458846449852, -0.01847216486930847, 0.0377667210996151, + 0.030365200713276863, 0.026221616193652153, 0.0026470706798136234, -0.03072895109653473, + -0.028530636802315712, 0.007622930686920881, -0.014937465079128742, 0.01099947839975357, + -0.03012797422707081, -0.003449692390859127, -0.007694099098443985, 0.01777629554271698, + -0.012573091313242912, 0.01826656609773636, -0.012818226590752602, 0.019310370087623596, + 0.047097694128751755, 0.0001424604415660724, 0.008793256245553493, 0.005313910078257322, + 0.011608363129198551, -0.02421308495104313, -0.006409113295376301, 0.005262510851025581, + -0.025826236233115196, 0.014486731961369514, 0.02062303200364113, -0.017032980918884277, + 0.03182020038366318, -0.012573091313242912, -0.018203305080533028, 0.020385805517435074, + -0.010952032171189785, -0.02309020608663559, -0.014692328870296478, 0.010058472864329815, + -0.006243053823709488, -0.02539922669529915, 0.006788678467273712, 0.0026253247633576393, + -0.03087128885090351, -0.002981166820973158, -0.006883569993078709, 0.009125376120209694, + 0.001210851944051683, -0.016716675832867622, 0.045263130217790604, -0.02301112934947014, + -0.03729226440191269, -0.022821346297860146, 0.025589007884263992, -0.011102276854217052, + 0.006847985554486513, -7.598714000778273e-5, -0.00185136788059026, 0.017649773508310318, + -0.009805429726839066, 0.024497758597135544, -0.00017792110156733543, 0.011726977303624153, + -0.024023301899433136, -0.04023389145731926, -0.00041070120641961694, 0.03767182677984238, + 0.01652689278125763, 0.031108517199754715, -0.010169179178774357, 0.009750076569616795, + -0.008595566265285015, -0.015111432410776615, 0.011007385328412056, -0.014708144590258598, + -0.02422890067100525, -0.008342523127794266, 0.006796586327254772, 0.03903193771839142, + 0.012992193922400475, -0.0032638637349009514, -0.008144833147525787, 0.012414938770234585, + 0.012509830296039581, -0.005661844741553068, 0.0012148057576268911, -0.018804283812642097, + -0.03767182677984238, -0.006685879547148943, 0.016273850575089455, -0.001252366928383708, + -0.014075536280870438, -0.01714368723332882, -0.03390780836343765, -0.017507435753941536, + -0.0018770676106214523, 0.01592591591179371, 0.020322544500231743, 0.008484859950840473, + -0.010485483333468437, 0.024750802665948868, -0.00952866394072771, -0.006919153966009617, + 0.023580476641654968, 0.0024375191424041986, 0.00783248245716095, -0.012090727686882019, + 0.029985636472702026, 0.03912682831287384, -0.019879717379808426, 0.010256162844598293, + 0.026205802336335182, 0.0124070318415761, -0.005796274170279503, -0.013822493143379688, + 0.006171885412186384, -0.011845591478049755, -0.036501504480838776, -0.018614500761032104, + -0.017301838845014572, -0.031567156314849854, -0.019879717379808426, 0.017507435753941536, + -0.009568201377987862, 0.03270585089921951, 0.01575985550880432, -0.023279987275600433, + -0.01665341481566429, 0.006405159831047058, 0.00023401567887049168, -0.010445945896208286, + 0.0015923938481137156, -0.04899551719427109, 0.022331075742840767, 0.009497033432126045, + -0.007812713272869587, 0.0017643842147663236, -0.03564748167991638, -0.02139797806739807, + 0.019848087802529335, -0.01660596951842308, -0.0037916963919997215, -0.016969719901680946, + -0.016012899577617645, -0.04387139156460762, -0.009046299383044243, -0.030602429062128067, + 0.002908021677285433, -0.009259805083274841, -0.0033449167385697365, -0.007006137631833553, + 0.012620536610484123, -0.01782374083995819, 0.031630419194698334, -0.006108624394983053, + -0.025067105889320374, 0.023343248292803764, -0.026743518188595772, -0.022726455703377724, + -0.026221616193652153, -0.03669128566980362, 0.003898449009284377, 0.008057849481701851, + -0.00317885703407228, -0.029906559735536575, -0.0031966492533683777, 0.01419415045529604, + -0.018788468092679977, -0.0231376513838768, 0.020543957129120827, -0.02547830156981945, + -0.02242596633732319, -0.004372905474156141, 0.0021409839391708374, 0.017665589228272438, + -0.03280074521899223, 0.0014095305232331157, -0.04858432337641716, -0.02307439036667347, + 0.002913952339440584, -0.015886377543210983, -0.013110808096826077, -0.01709624193608761, + -0.007267088629305363, 0.009987304918467999, -0.00825553946197033, 0.015562165528535843, + 0.00042725776438601315, 0.0023703044280409813, 0.002467172686010599, 0.0499444305896759, + -0.03488835319876671, -0.01900988072156906, -0.00017977444804273546, -0.006460512988269329, + -0.01182977668941021, 0.022805532440543175, -0.03830443695187569, -0.028103627264499664, + 0.05225345119833946, 0.0024394961073994637, -0.03621682897210121, 0.004578502848744392, + -0.00030345431878231466, 0.029463734477758408, 0.015886377543210983, 0.019120587036013603, + 0.02611090987920761, 0.026854224503040314, -0.016985533758997917, 0.027676615864038467, + -0.03390780836343765, -0.021682651713490486, -0.03077639639377594, 0.010849233716726303, + -0.01188512984663248, -0.02775569260120392, 0.04203682765364647, -0.002904067747294903, + 0.01961085945367813, 0.0277398768812418, 0.05497366562485695, -0.03868400305509567, + -0.0010181041434407234, 0.03801976144313812, -0.0195475984364748, 0.028752049431204796, + -0.013893661089241505, 0.011766515672206879, 0.013442927971482277, -0.02078118547797203, + -0.010319423861801624, 0.0029613978695124388, -0.00887233205139637, -0.04383976012468338, + 0.02718634530901909, 0.03196253627538681, 0.008729995228350163, 0.038209546357393265, + -0.009615647606551647, -0.0006795597728341818, -0.015609611757099628, -0.0012869626516476274, + -0.009536570869386196, -0.01004265807569027, -0.02729705162346363, -0.011655809357762337, + -0.006417021155357361, -0.010888771153986454, 0.00013714752276428044, -0.001360108028165996, + 0.029179060831665993, -0.007911558263003826, -0.0065435427241027355, 0.017554882913827896, + ], + index: 19, + }, + { + title: "Wenceslaus III of Bohemia", + text: "Wenceslaus III (Czech: V\u00e1clav III., Hungarian: Vencel, Polish: Wac\u0142aw, Slovak: V\u00e1clav; 6 October 1289 \u2013 4 August 1306) was King of Hungary between 1301 and 1305, and King of Bohemia and Poland from 1305. He was the son of Wenceslaus II, King of Bohemia, who was later also crowned king of Poland, and Judith of Habsburg. Still a child, Wenceslaus was betrothed to Elizabeth, the sole daughter of Andrew III of Hungary.", + vector: [ + 0.0009226285619661212, -0.005976993124932051, -0.01476205699145794, 0.03747594356536865, + 0.04673995450139046, 0.0049010030925273895, 0.0018583789933472872, -0.05267101898789406, + 0.01840992644429207, -0.01265600323677063, -0.0056587886065244675, 0.04482416808605194, + -0.045244064182043076, 0.018974164500832558, 0.013948503881692886, 0.0277657900005579, + -0.03545518219470978, 0.037370968610048294, -0.054481834173202515, 0.003365749027580023, + -0.06015046313405037, 0.005055184476077557, -0.058470867574214935, 0.004914124961942434, + 0.053327109664678574, -0.022307109087705612, 0.011101067066192627, 0.0201288852840662, + -0.07731381058692932, 0.04532279446721077, 0.0002995467511937022, -0.0006741339457221329, + 0.014276549220085144, -0.020325712859630585, -0.0012383725261315703, -0.07789117097854614, + 0.047920916229486465, -0.03821076452732086, 0.0103793665766716, -0.005609581712633371, + -0.008266751654446125, -0.016389163210988045, 0.0006847954355180264, -0.02275324985384941, + 0.009060622192919254, -0.05358954891562462, 0.0009701952221803367, 0.01659911312162876, + -0.010412170551717281, 0.004632005468010902, 0.008233947679400444, 0.012813465669751167, + -0.01944654993712902, 0.03369685634970665, -0.011967107653617859, -0.05537411570549011, + -0.01177684124559164, 0.02616492658853531, 0.0033624686766415834, 0.00317056174390018, + -0.018685484305024147, -0.008457018062472343, -0.01419781893491745, 0.002995057264342904, + 0.010392487980425358, -0.03157112002372742, -0.04736980050802231, -0.0032853777520358562, + -0.010215343907475471, 0.007722196169197559, 0.048550765961408615, -0.01046465802937746, + 0.0516737625002861, 0.027293402701616287, 0.0005150317447260022, 0.04177990183234215, + -0.028080713003873825, 0.027293402701616287, -0.05631888657808304, -0.013305534608662128, + 0.030468886718153954, -0.023251879960298538, -0.03346066176891327, -0.021401703357696533, + -0.0063575259409844875, -0.08959584683179855, -0.005511167924851179, -0.04248848184943199, + -0.010668046772480011, 0.0009669147548265755, -0.027634570375084877, -0.010143173858523369, + -0.005370108410716057, -0.032358430325984955, -0.003598661394789815, -0.03535020723938942, + 0.03553391247987747, -0.0005207725916989148, -0.05542660504579544, 0.023356854915618896, + 0.012236105278134346, -0.0004592640034388751, 0.011822767555713654, 0.05537411570549011, + 0.07841604948043823, 0.0026801335625350475, -0.06156761944293976, -0.028815535828471184, + 0.033040765672922134, 0.009244328364729881, 0.02628302201628685, 0.014053478837013245, + 0.01796378381550312, -0.015772437676787376, -0.009664226323366165, -0.017071498557925224, + 0.022989444434642792, 0.03500903770327568, -0.005937627516686916, -0.010228465311229229, + -0.0017156790709123015, 0.01977459527552128, 0.036347463726997375, -0.06193502992391586, + 0.013686067424714565, -0.022084036841988564, -0.0031541595235466957, 0.040179040282964706, + -0.023081297054886818, 0.003314901841804385, -0.0026653714012354612, -0.03681985288858414, + -0.03619000315666199, 0.014460255391895771, -0.0068955207243561745, 0.029156703501939774, + -0.03398553654551506, -0.005881859455257654, -0.003065587254241109, -0.009657666087150574, + -0.01439464557915926, 0.040913861244916916, -0.023068174719810486, 0.0352189876139164, + 0.03356563672423363, 0.021008048206567764, -0.014210940338671207, 0.019013529643416405, + -0.01624482311308384, -0.010366244241595268, 0.020968681201338768, -0.02434099279344082, + 0.008247069083154202, 0.02382924035191536, -0.018632996827363968, -0.008194581605494022, + 0.013804163783788681, -0.019249722361564636, 0.01784568652510643, -0.013390826061367989, + -0.009670787490904331, -0.0017944100545719266, 0.017071498557925224, 0.020680001005530357, + 0.007000495679676533, -0.01825246401131153, -0.019971422851085663, 0.023094417527318, + -0.028894266113638878, 0.01687467098236084, 0.0022848383523523808, -0.022031549364328384, + -0.014000991359353065, -0.04010030999779701, -0.04736980050802231, 0.049574267119169235, + -0.017084620893001556, 0.0011210961965844035, -0.014447133056819439, 0.033670611679553986, + 0.009939785115420818, -0.03380183130502701, -0.0013130030129104853, 0.018265584483742714, + -0.01049090176820755, -0.038630664348602295, 0.0067971074022352695, 0.011560331098735332, + -0.05726366117596626, -0.0072694928385317326, 0.011796523816883564, 0.015772437676787376, + 0.034589141607284546, -0.007157957646995783, -0.017937539145350456, -0.005324182100594044, + 0.04293462261557579, 0.03957543522119522, -0.005589899141341448, 0.04080888628959656, + -0.04298711195588112, -0.03482533246278763, 0.017819443717598915, 0.038919344544410706, + 0.006993934512138367, 0.0699131041765213, -0.015549367293715477, 0.008443896658718586, + -0.04408934339880943, -0.025115180760622025, 0.033775586634874344, 0.0032624145969748497, + -0.014460255391895771, 0.03443167731165886, -0.0014499620301648974, -0.015037615783512592, + 0.0394442155957222, 0.05610894039273262, -0.015090103261172771, 0.06067533418536186, + 0.07531929761171341, -0.03506152704358101, -0.006223027128726244, -0.014919519424438477, + -0.03878812491893768, 0.024262260645627975, 0.06665889173746109, 0.00869321171194315, + -0.004297398962080479, 0.06062284857034683, -0.0009004854946397245, 0.03592756763100624, + -0.002678493270650506, 0.01659911312162876, -0.05335335433483124, 0.003966072574257851, + -0.0103793665766716, -0.02703096717596054, 0.017701346427202225, -0.027267159894108772, + -0.0004760763549711555, 0.001955152489244938, -0.02617804892361164, -0.024603428319096565, + 0.005760482978075743, 0.01624482311308384, 0.007138274610042572, -0.030888784676790237, + 0.0012006473261862993, -0.04865574091672897, 0.06356213986873627, 0.03894558548927307, + -0.0334344208240509, -0.015929900109767914, -0.0199058149009943, 0.016454773023724556, + -0.030915027484297752, -0.008457018062472343, 0.015116347000002861, 0.019197234883904457, + -0.0749518871307373, -0.04338076710700989, -0.03889309987425804, 0.006147576496005058, + -0.021126143634319305, -0.020207615569233894, -0.04768472537398338, -0.019066017121076584, + -0.0005170820513740182, -0.015759315341711044, 0.057788532227277756, 0.005734239239245653, + -0.024196652695536613, -0.04988919198513031, -0.02029946818947792, 0.0018764215055853128, + 0.017071498557925224, 0.04351198300719261, -0.058575842529535294, 0.020338835194706917, + -0.021401703357696533, -0.02605995163321495, -0.040913861244916916, 0.034799087792634964, + 0.011934302747249603, -0.013804163783788681, -0.01859363168478012, 0.03582259267568588, + 0.05075523257255554, -0.007000495679676533, 0.016690965741872787, -0.030180206522345543, + 0.004635286051779985, -0.0271359421312809, -0.026479849591851234, 0.017071498557925224, + 0.011658744886517525, 0.008135533891618252, -0.04710736498236656, -0.013266168534755707, + 0.042672187089920044, -0.01619233563542366, 0.03844695910811424, 0.014958884567022324, + -0.025863124057650566, -0.0073351021856069565, -0.037029799073934555, -0.0004568036529235542, + 0.035376448184251785, 0.01072053425014019, -0.009651104919612408, 0.030311424285173416, + 0.03933924064040184, -0.001276917988434434, 0.0072301276959478855, -0.02256954461336136, + -0.02029946818947792, 0.028815535828471184, -0.06277482956647873, 0.00843733549118042, + -0.01502449344843626, 0.01842304691672325, 0.005065025761723518, -0.04185863211750984, + 0.013896016404032707, -0.010280952788889408, -0.01989269256591797, -0.052198633551597595, + -0.03598005324602127, 0.0009488722425885499, 0.020850585773587227, -0.03277832642197609, + 0.013148072175681591, 0.03359188139438629, 0.068653404712677, -0.02445908822119236, + 0.035665128380060196, 0.01578556001186371, 0.01320055965334177, -0.03582259267568588, + -0.0026276460848748684, 0.07012305408716202, 0.01613985002040863, 0.015129468403756618, + -0.005855616182088852, 0.015510001219809055, 0.01613985002040863, 0.045244064182043076, + 0.04317081719636917, -0.005612862296402454, 0.00039262970676645637, 0.043538227677345276, + 0.04849827662110329, 0.014302792958915234, 0.0010218623792752624, 0.032069750130176544, + 0.0004588539304677397, 0.0184624120593071, 0.01733393594622612, -0.013167754746973515, + 0.032069750130176544, 0.005383230280131102, 2.2642843759967946e-5, 0.0010948525741696358, + 0.002158540766686201, -0.022254621610045433, 0.019354697316884995, 0.013449874706566334, + 0.010989531874656677, 0.001784568652510643, 0.01245917659252882, 0.05096518248319626, + 0.021913453936576843, 0.002429178450256586, -0.00510111078619957, -0.0013466277159750462, + -0.008995013311505318, 0.028474368155002594, -0.040179040282964706, -0.006167259532958269, + -0.054376859217882156, 0.022438326850533485, -0.05810345709323883, 0.0068955207243561745, + -0.01283314824104309, -0.02188720926642418, -0.03193853050470352, -0.0173864234238863, + 0.014184696599841118, -0.07232751697301865, -0.03283081576228142, 0.05999299883842468, + 0.01859363168478012, 0.04784218594431877, -0.04776345565915108, -0.08261503279209137, + 0.02234647423028946, 0.03739721328020096, 0.04513908922672272, 0.012196740135550499, + -0.03842071443796158, -0.04406309872865677, 0.00011358582560205832, 0.022989444434642792, + 0.028185687959194183, 0.005753921810537577, -0.006134455092251301, -0.03445792198181152, + -0.028815535828471184, -0.023619292303919792, -0.019302209839224815, -0.006967690773308277, + -0.06555665284395218, -0.0038545371498912573, -0.0064231352880597115, 0.007394150365144014, + -0.0017288009403273463, -0.003510089125484228, 0.03096751496195793, -0.03130868449807167, + -0.033670611679553986, -0.055794015526771545, 0.06503178179264069, 0.04083513095974922, + -0.03238467127084732, 0.03524523228406906, -0.05946812778711319, 0.019761472940444946, + 0.0355863980948925, 0.061830054968595505, 0.013804163783788681, -0.0026817736215889454, + 0.0021060535218566656, 0.03267335146665573, -0.044509243220090866, 0.0029753746930509806, + -0.048839446157217026, -0.021677261218428612, 0.020430687814950943, -0.008863795548677444, + 0.026925992220640182, -0.048104625195264816, 0.04180614650249481, 0.04429929330945015, + -0.07810112088918686, 0.01705837808549404, -0.06823351234197617, -0.02548259124159813, + 0.01451274286955595, 0.0307313222438097, -0.023763632401823997, -0.01915786974132061, + -0.01733393594622612, -0.02314690500497818, 0.02348807267844677, -0.04545401409268379, + -0.053510818630456924, -0.0069020818918943405, -0.038683149963617325, 0.01470956951379776, + -0.03529771789908409, 0.010392487980425358, -0.005872018169611692, -0.03078380972146988, + -0.021847844123840332, -0.026768529787659645, 0.01502449344843626, -0.028815535828471184, + -0.007289175875484943, -0.009224645793437958, 0.004960051272064447, 0.024498453363776207, + -0.03472035750746727, -0.007741878740489483, -0.026296144351363182, 0.013148072175681591, + -0.010608998127281666, -0.04634629935026169, 0.024157285690307617, -0.014027235098183155, + 0.02766081504523754, 0.018619874492287636, -0.011068262159824371, 0.0216116514056921, + 0.02981279417872429, -0.009585496038198471, 0.027188429608941078, -0.046556249260902405, + -0.03141365945339203, 0.07820609956979752, -0.0436694473028183, 0.005133915226906538, + 0.011927742511034012, -0.03424797207117081, 0.020916195586323738, 0.017806321382522583, + -0.0032214089296758175, -0.01117323711514473, -0.005576777271926403, 0.006882399320602417, + 0.014119087718427181, -0.020430687814950943, -0.0033788708969950676, -0.04020528122782707, + 0.02565317414700985, -0.03821076452732086, 0.016782818362116814, -0.015982387587428093, + 0.01011693011969328, -0.00467465166002512, 0.0064657810144126415, -0.022320229560136795, + -0.024485332891345024, -0.04012655094265938, 0.04639878496527672, -0.01795066148042679, + -0.019407184794545174, 0.02515454590320587, 0.007459759712219238, 0.01977459527552128, + 0.031282439827919006, 0.0022979602217674255, -0.017005890607833862, 0.020784975960850716, + 0.02651921473443508, 0.008896599523723125, 0.03626873344182968, 0.014434011653065681, + -0.0013015213189646602, -0.017740711569786072, -0.006777424365282059, -0.028028225526213646, + -0.011809646151959896, 0.006547792349010706, -0.028264418244361877, -0.021992184221744537, + -0.003592100692912936, -0.008174899034202099, -0.002320923376828432, -0.01419781893491745, + -0.005839213728904724, -0.01383040752261877, 0.008575115352869034, 0.02525952085852623, + -0.046503759920597076, -0.00262928637675941, -0.033723101019859314, 0.0038250130601227283, + -0.020207615569233894, -0.04083513095974922, -0.032017260789871216, -0.05999299883842468, + 0.008279873989522457, 0.030547617003321648, 0.013213681057095528, 0.026807894930243492, + 0.00016781588783487678, -0.00021856045350432396, 0.012846270576119423, -0.04031025618314743, + 0.050151627510786057, -0.0012834788067266345, 0.010333440266549587, -0.00011850651208078489, + -0.007525368593633175, 0.02970781922340393, -0.0010620480170473456, 0.06078030914068222, + -0.010687729343771935, -0.019748352468013763, 0.009893858805298805, -0.004435177892446518, + -0.03511401265859604, -0.002270076423883438, -0.03721350431442261, 0.0003768425085581839, + 0.059888023883104324, 0.001974835293367505, 0.03713477402925491, 0.028658073395490646, + -0.003414955921471119, -0.010189100168645382, 0.030600104480981827, 0.04340700805187225, + -0.041543710976839066, 0.031203707680106163, -0.05099142715334892, -0.03786959871649742, + -0.01159969624131918, 0.026427362114191055, -0.001626286655664444, 0.0322534553706646, + -0.00041907839477062225, 0.03807954490184784, 0.07159269601106644, 0.007249810267239809, + 0.010576194152235985, -0.01619233563542366, -0.014565229415893555, 0.04873447120189667, + -0.04293462261557579, 0.0066855717450380325, 0.003972633741796017, 0.0054357172921299934, + -0.004287557676434517, -0.03311949595808983, -0.00929681584239006, 0.0034247972071170807, + -0.0088047469034791, -0.004205545876175165, -0.02314690500497818, -0.005954029504209757, + -0.015549367293715477, 0.00801087636500597, 0.02205779403448105, 0.0022487533278763294, + 0.027188429608941078, -0.004494226071983576, 0.035376448184251785, -0.031229952350258827, + -0.02981279417872429, 0.015641219913959503, -0.0017041974933817983, 0.008109290152788162, + 0.037265993654727936, -0.014932640828192234, -0.027345890179276466, -0.013220242224633694, + 0.011251968331634998, -0.005783446133136749, -0.054376859217882156, -0.035087767988443375, + 0.02737213484942913, -0.006518268492072821, -0.004258033353835344, -0.012072082608938217, + 0.0018715007463470101, -0.01562809757888317, 0.01978771761059761, -0.027057209983468056, + -0.015562488697469234, 0.02674228698015213, -0.019538402557373047, -0.021362336352467537, + -0.015614976175129414, 0.016887793317437172, 0.0066396454349160194, 0.018856067210435867, + -0.0054422784596681595, 0.00591466436162591, 0.010097247548401356, 0.029917769134044647, + -0.004185863304883242, -0.002591561060398817, -0.004923966247588396, -0.005507887341082096, + 0.010071003809571266, 0.012446054257452488, -0.009224645793437958, -0.017478276044130325, + 0.000869321171194315, -0.020955560728907585, 0.005035501904785633, -0.005078147631138563, + -0.01711086370050907, -0.008371726609766483, -0.005311060231178999, -0.03660990297794342, + 0.019302209839224815, -0.018908554688096046, 0.02205779403448105, 0.002150339772924781, + 0.01476205699145794, -0.02834315039217472, 0.03821076452732086, 0.0061377352103590965, + -0.02640111930668354, 0.012524785473942757, -0.03141365945339203, 0.002025682246312499, + 0.019144747406244278, 0.0019731950014829636, -0.00047812663251534104, 0.06099025905132294, + 0.0192759670317173, 0.006065565161406994, 0.026479849591851234, 0.014643960632383823, + -0.00022635154891759157, -0.006560914218425751, -0.009172158315777779, -0.007964950054883957, + 0.014604595489799976, -0.0005461961263790727, 0.0029261677991598845, 0.01772759109735489, + 0.01659911312162876, -0.00695456936955452, -0.045532744377851486, 0.02897299826145172, + -0.01328585110604763, 0.019170992076396942, -0.011763718910515308, 0.013922260142862797, + -0.008253630250692368, 0.004923966247588396, 0.00018042513693217188, -0.01194086391478777, + -0.0058785793371498585, 0.013351460918784142, -0.02662418968975544, -0.015444392338395119, + -0.025443226099014282, -0.02297632209956646, 0.002294679870828986, 0.00634112348780036, + 0.024669038131833076, -0.022451449185609818, -0.013633579947054386, -0.013751676306128502, + 0.0321747250854969, 0.01012349035590887, 0.02965533174574375, -0.023343732580542564, + -0.010031637735664845, -0.03582259267568588, 0.029576601460576057, 0.046844929456710815, + -0.0016148050781339407, 0.016271067783236504, -0.05070274695754051, 0.046949904412031174, + 0.016520382836461067, 0.006869277451187372, 0.021021168678998947, -0.028763048350811005, + 0.007643464952707291, 0.004399092867970467, 0.055059194564819336, 0.006948008202016354, + -0.019813960418105125, 0.006285355892032385, 0.013010293245315552, 0.019407184794545174, + -0.032017260789871216, -0.015523123554885387, 0.01277410052716732, -0.022267743945121765, + 0.010635241866111755, 0.033381931483745575, 0.01135038211941719, -0.01921035721898079, + -0.03039015457034111, -0.06193502992391586, 0.013646701350808144, -0.0015910216607153416, + 0.001946951262652874, 0.003414955921471119, 0.015929900109767914, -0.007131713908165693, + -0.04671370983123779, 0.007295736577361822, 0.012491980567574501, -0.0103793665766716, + 0.05763107165694237, -0.036058783531188965, -0.003706916468217969, -0.008286435157060623, + -0.016690965741872787, 0.01331209484487772, 0.002005999442189932, -0.006675730459392071, + 0.027109697461128235, 0.018777336925268173, 0.03923426568508148, -0.06345716118812561, + -0.005498046055436134, -0.007105470169335604, 0.04516533389687538, -0.049915436655282974, + -0.06655391305685043, -0.041071321815252304, -0.004730419255793095, -0.041832391172647476, + -0.04288213700056076, 0.027162184938788414, 0.030626347288489342, -0.029839038848876953, + 0.005386510863900185, 0.034641627222299576, -0.05726366117596626, -0.005465241614729166, + -0.031177464872598648, -0.016835305839776993, 0.03296203166246414, 0.003969353158026934, + 0.012728173285722733, -0.0018452571239322424, 0.018659239634871483, -0.024721525609493256, + 0.027582082897424698, -0.043249547481536865, -0.01417157519608736, -0.03786959871649742, + 0.026387996971607208, -0.006301758345216513, -0.009342742152512074, -0.03616375848650932, + 0.01847553439438343, -0.012505102902650833, -0.020391320809721947, 0.03723974898457527, + 0.0033952731173485518, -0.024262260645627975, -0.024905230849981308, 0.022084036841988564, + -0.024826500564813614, 0.004973173141479492, -0.001381072448566556, 0.003444480011239648, + 5.2282284741522744e-5, 0.038341984152793884, -0.003214847994968295, 0.025075813755393028, + -0.01989269256591797, -0.015260687097907066, 0.015457513742148876, 0.017255203798413277, + 0.01596926525235176, 0.006459220312535763, 0.011553769931197166, 0.022438326850533485, + -0.023356854915618896, 0.005970431957393885, -0.032988276332616806, -0.0063115996308624744, + 0.033040765672922134, -0.027582082897424698, 0.014972005970776081, 0.017714468762278557, + -0.047527264803647995, -0.004120253957808018, -0.027529597282409668, -0.00029995679506100714, + -0.00940835103392601, -0.003601941978558898, -0.048314571380615234, -0.03044264204800129, + -0.0013909138506278396, -0.033329445868730545, 0.0028425161726772785, -0.006157418247312307, + -0.0004559835360851139, 0.03317198157310486, -0.017937539145350456, 0.038971830159425735, + 0.03301452100276947, -0.016047995537519455, -0.015523123554885387, -0.05689624696969986, + -0.019512159749865532, 0.029287921264767647, -0.007604099810123444, -0.02394733764231205, + -0.00618366152048111, -0.002998337848111987, 0.03403802216053009, 0.025272641330957413, + 0.030993759632110596, 0.0038840612396597862, 0.015457513742148876, 0.027949495241045952, + -0.00491740508005023, -0.01259695552289486, -0.023304367437958717, -0.011429112404584885, + -0.013961625285446644, 0.03716101869940758, -0.008345482870936394, 0.02907797135412693, + 0.0022782774176448584, -0.015562488697469234, 0.023107539862394333, 0.013403947465121746, + 0.028553098440170288, -0.02502332627773285, 0.02178223617374897, 0.034641627222299576, + 0.034064266830682755, 0.012426371686160564, 0.05012538656592369, 0.00674461992457509, + 0.008174899034202099, -0.031282439827919006, 0.04679244011640549, -0.015116347000002861, + -0.049626756459474564, -0.0020863707177340984, -0.019341574981808662, 0.0031016722787171602, + 0.005908103194087744, 0.006288636475801468, 0.00021630513947457075, -0.006475622300058603, + -0.0035560154356062412, -0.028421880677342415, 0.042619697749614716, 0.016809063032269478, + 0.03238467127084732, -0.002274997066706419, -0.024026067927479744, 0.004658249206840992, + -9.856748511083424e-5, -0.04946929216384888, -0.003785647451877594, 0.008174899034202099, + -0.026269901543855667, -0.007151396479457617, -0.037554673850536346, -0.0011924462160095572, + 0.00525857275351882, -0.018095001578330994, 0.015286929905414581, -0.0036150638479739428, + -0.003979194443672895, 0.00433348398655653, -0.012649443000555038, -0.05348457396030426, + 0.025850001722574234, -0.024774013087153435, 0.06660640239715576, -0.003011459717527032, + 0.009769201278686523, -0.021060535684227943, 0.061147719621658325, 0.002388172782957554, + -0.05862833186984062, 0.002201186725869775, -0.023304367437958717, 0.016848428174853325, + -0.008699771948158741, -0.02554820105433464, 0.02646672911942005, 7.258011464728042e-5, + 0.01687467098236084, -0.01728144846856594, -0.04167492687702179, 0.002457062480971217, + 0.016113605350255966, 0.00708578759804368, 0.04666122421622276, -0.005343864671885967, + -0.003680672962218523, -0.014315915293991566, -0.01830495148897171, 0.023501195013523102, + -0.009664226323366165, -0.04083513095974922, -0.0070136175490915775, 0.02565317414700985, + 0.02918294630944729, -0.004126815125346184, 0.010766460560262203, -0.00564238615334034, + -0.04647751525044441, -0.013751676306128502, 0.021965941414237022, -0.03624248877167702, + 0.03849944472312927, 0.01932845264673233, -1.4326371456263587e-5, 0.05474426969885826, + 0.03096751496195793, 0.02960284613072872, -0.0055472529493272305, 0.003165641101077199, + -0.03162360563874245, 0.030285179615020752, 0.035271476954221725, 0.021191753447055817, + -0.017491398379206657, 0.0016992768505588174, -0.04214731231331825, 0.016389163210988045, + 0.07133025676012039, 0.00812241155654192, -0.003759403945878148, 0.007492564152926207, + 0.005619422998279333, 0.0034576018806546926, 0.04639878496527672, -0.021427946165204048, + 0.009559252299368382, -0.030862540006637573, -0.020680001005530357, 0.011330698616802692, + -0.02810695767402649, -2.2873500711284578e-5, 0.0033444261644035578, -0.02634863182902336, + -0.0028129920829087496, -0.01541814859956503, -0.006875838153064251, -0.019066017121076584, + 0.060465388000011444, 0.02121799625456333, -0.010792704299092293, 0.015588732436299324, + -0.010589315555989742, -0.01939406245946884, -0.020509418100118637, -0.026545459404587746, + -0.0016008630627766252, 0.01439464557915926, 0.0008545590681023896, -0.029576601460576057, + -0.03710853308439255, -0.023120662197470665, 0.014538985677063465, 0.059153202921152115, + -0.011055140756070614, -0.01743891090154648, -0.005209365859627724, 0.06135766953229904, + -0.0186461191624403, 0.03626873344182968, 0.005452119745314121, 5.9560799854807556e-5, + 0.020509418100118637, -0.013298973441123962, 0.04254096746444702, -0.023802997544407845, + -0.00843733549118042, 0.0037134774029254913, -0.030075231567025185, -0.0051175132393836975, + -0.0003430127981118858, 0.03130868449807167, -0.007413832936435938, 0.0222414992749691, + 0.03482533246278763, -0.019000407308340073, -0.04282964766025543, -0.026899749413132668, + 0.015483757480978966, -0.031439900398254395, -0.0037954889703541994, 0.011704671196639538, + -0.0008479981916025281, -0.035612642765045166, 0.02029946818947792, 0.0013154633343219757, + -0.017176473513245583, -0.020627515390515327, -0.013062780722975731, -0.011724353767931461, + -0.0028966437093913555, -0.024564063176512718, -0.02844812348484993, -0.02931416593492031, + 0.007000495679676533, -0.004773064982146025, 0.010018516331911087, -0.04156995192170143, + 0.02120487578213215, 0.011547208763659, 0.0091196708381176, 0.019932057708501816, + -0.019695864990353584, -0.00209621200338006, -0.017766956239938736, 0.004707456100732088, + -0.00803712010383606, 0.03813203424215317, 0.0015959424199536443, -0.011370064690709114, + -0.013069340959191322, 0.007715635001659393, 0.01687467098236084, -0.005206085275858641, + 0.019485915079712868, -0.02868431806564331, 0.025850001722574234, -0.03369685634970665, + -0.0035789788234978914, 0.014525864273309708, 0.0070070563815534115, 0.019984545186161995, + 0.015496879816055298, 0.016782818362116814, -0.001963353715837002, -0.0194990374147892, + -0.0017730870749801397, 0.03130868449807167, -0.021231118589639664, -0.021979063749313354, + -0.047920916229486465, 0.0009480520966462791, -0.008424214087426662, -0.015995509922504425, + 0.0022684361319988966, 0.02302880957722664, -0.016218580305576324, -0.0326208658516407, + 0.02258266694843769, 0.007328541483730078, 0.013699188828468323, 0.010799264535307884, + 0.0008635803242214024, 0.0194990374147892, 0.003998877480626106, 0.01671721041202545, + 0.005868738051503897, 0.0072301276959478855, -0.04595264419913292, 0.0029884965624660254, + 0.027345890179276466, 2.8370828658808023e-5, 0.005448839161545038, 0.001776367542333901, + -0.020037032663822174, 0.006783985532820225, 0.03876188024878502, -0.012951244600117207, + 0.008863795548677444, 0.010707411915063858, -0.016166092827916145, -0.004438458476215601, + 0.0016164452536031604, -0.024367235600948334, 0.01114699337631464, -0.00015079851436894387, + -0.0072301276959478855, 0.002532512880861759, 0.004395812749862671, 0.02913045883178711, + -0.007866536267101765, -0.020732488483190536, -0.02548259124159813, -0.003552735084667802, + -0.014289671555161476, 0.013364582322537899, 0.010530267842113972, -0.010425292886793613, + 0.00986105389893055, -0.02333061210811138, 0.0031557998154312372, -0.009099988266825676, + -0.03660990297794342, 0.008069925010204315, -0.043984368443489075, -0.002258594846352935, + 0.05343208461999893, -0.021309848874807358, 0.007820609956979752, 0.016507260501384735, + 0.002294679870828986, -0.0035461741499602795, 0.005885140039026737, -0.010713973082602024, + -0.01470956951379776, 0.027949495241045952, 0.0011694829445332289, -0.029392896220088005, + -0.0184624120593071, 0.01961713284254074, -0.020312590524554253, 0.005603021010756493, + 0.011606257408857346, 0.0013367863139137626, -0.009073744527995586, 0.01985332742333412, + -0.024209773167967796, -0.04010030999779701, 0.011678427457809448, 0.023343732580542564, + -0.015129468403756618, 0.02241208404302597, 0.03716101869940758, 0.04133376106619835, + -0.014538985677063465, 0.01043185405433178, 0.005786726251244545, 0.011304454877972603, + 0.02897299826145172, 0.00021958560682833195, 0.00288680219091475, -0.04676619544625282, + 0.005750641226768494, 0.041753657162189484, -0.010189100168645382, 0.023763632401823997, + -0.03923426568508148, -0.01020222157239914, 0.0005388151039369404, -0.008043681271374226, + -0.01955152489244938, -0.0012514943955466151, 0.01842304691672325, -0.006816789973527193, + 0.015063859522342682, -0.01268224697560072, -0.010300635360181332, 0.0009414912201464176, + -0.005652227438986301, -0.0034838453866541386, -0.014604595489799976, 0.018396804109215736, + 0.011245407164096832, 0.01268224697560072, -0.006039321422576904, -0.01938094012439251, + -0.03301452100276947, -0.02633550949394703, 0.0470811203122139, -0.00419242400676012, + -0.008030558936297894, -0.008627601899206638, 0.013298973441123962, -0.011921181343495846, + -0.000769267207942903, 0.010504024103283882, -0.019512159749865532, -0.00909342709928751, + -0.008653845638036728, -0.013377704657614231, -0.02566629648208618, 0.03650492802262306, + -0.0047861868515610695, 0.03277832642197609, -0.01248542033135891, -0.018514899536967278, + 0.013672945089638233, 0.01789817400276661, -0.008922843262553215, 0.016953403130173683, + -0.023816118016839027, -0.015943022444844246, 0.0182393416762352, -0.01812124438583851, + 0.009054061956703663, 0.053117163479328156, -0.010976409539580345, -0.020732488483190536, + -0.01757012866437435, -0.00604588259011507, -0.010025077499449253, -0.02047005295753479, + -0.012669125571846962, -0.016900915652513504, 0.02195281907916069, -0.014040356501936913, + -0.038237009197473526, 0.030757566913962364, -0.006961130071431398, -0.014158452861011028, + 0.010654924437403679, 0.01757012866437435, 0.014355280436575413, -0.026729164645075798, + -0.03325071185827255, -0.03004898689687252, 0.017543883994221687, 0.008207703940570354, + -0.017202718183398247, -0.04503411427140236, -0.04647751525044441, 0.015313173644244671, + -0.015103224664926529, 0.010340000502765179, 0.0008996653486974537, -0.017360178753733635, + -0.028264418244361877, -0.03067883476614952, -0.001376971835270524, 0.012984049506485462, + -0.03290954604744911, 0.0004691053763963282, -0.013371143490076065, -0.017294570803642273, + -0.015405027195811272, -0.030652591958642006, 0.008581675589084625, 0.01704525575041771, + -0.020653758198022842, -0.006508427206426859, -0.011055140756070614, -0.006551072932779789, + -0.0006950468523427844, 0.007348224055022001, -0.015378783456981182, 0.013777920044958591, + 0.03461538255214691, 0.03162360563874245, 0.00995290745049715, 0.0031000319868326187, + 0.012190178968012333, -0.010399049147963524, 0.023448707535862923, -0.010825508274137974, + 0.04010030999779701, 0.021874088793992996, -0.040861375629901886, 0.04054645076394081, + -0.009821688756346703, -0.010143173858523369, 0.01881670206785202, 0.0062033445574343204, + -0.022372717037796974, 0.019485915079712868, 0.0006499405717477202, -0.04482416808605194, + 0.004999416880309582, -0.014315915293991566, -0.0036117832642048597, 0.027293402701616287, + -0.04886569082736969, -0.027739545330405235, -0.004317081533372402, -0.01225578784942627, + 0.009014695882797241, -0.02326500229537487, -0.031676094979047775, 0.059730563312768936, + -0.003182043321430683, 0.007886218838393688, -0.002324203960597515, 0.019708987325429916, + -0.009828249923884869, 0.001984676579013467, 0.03330320119857788, 0.011658744886517525, + 0.006518268492072821, 0.0018403364811092615, -0.016677843406796455, 0.0005425055860541761, + -0.0033378652296960354, -0.013049658387899399, 0.01451274286955595, 0.0051207938231527805, + -0.0338805615901947, 0.024498453363776207, -6.381513958331198e-5, 0.0036085029132664204, + -0.024026067927479744, -0.0016033233841881156, -0.015588732436299324, 0.0027194989379495382, + 0.0014729253016412258, 0.00044450192945078015, -0.022333351895213127, 0.0037823671009391546, + 0.007761561777442694, -0.0024505015462636948, 0.008201142773032188, -0.019604012370109558, + -0.033828072249889374, 0.02121799625456333, -0.013423630967736244, 0.0032214089296758175, + 0.0057637630961835384, -0.004153058864176273, -0.005671910475939512, 0.019945180043578148, + 0.001884622615762055, 0.02536449395120144, 0.013935381546616554, 0.002919606864452362, + -0.016323555260896683, 0.031229952350258827, -0.013462996110320091, 0.04590015485882759, + 0.018265584483742714, -0.003444480011239648, -0.01767510361969471, -0.012308275327086449, + 0.012085204012691975, -0.022595789283514023, -0.015090103261172771, -0.02863183058798313, + -0.0190922599285841, 0.010497462935745716, -0.01003819890320301, -0.027897007763385773, + -0.05731614679098129, -0.005625984165817499, -0.015811802819371223, 0.012610076926648617, + 0.04973173141479492, 0.03393304720520973, -0.017937539145350456, 0.02468216046690941, + -0.021454188972711563, -0.00604588259011507, -0.021073656156659126, 0.017084620893001556, + 0.006508427206426859, 0.0011826048139482737, -0.0019108662381768227, 0.010910800658166409, + -0.008916282095015049, -0.00553085096180439, 0.01562809757888317, 0.00692832563072443, + -0.03083629719913006, -0.006101650185883045, 0.001933829509653151, -0.042803406715393066, + 0.01869860664010048, 0.028264418244361877, 0.023684900254011154, 0.007577856071293354, + 0.057053711265325546, 0.01539190486073494, 0.02531200647354126, -0.020653758198022842, + -0.002324203960597515, -0.02474776841700077, -0.02212340384721756, 0.021742869168519974, + -0.0025390738155692816, 0.03325071185827255, 0.006908642593771219, 0.0073351021856069565, + -0.007951827719807625, -0.007407272234559059, -0.00020431097073014826, 0.012925000861287117, + -0.002995057264342904, 0.002133937319740653, -0.023789875209331512, -0.013659823685884476, + -0.05324837937951088, -0.00934930332005024, 0.010759899392724037, 0.006757741793990135, + -0.004225228913128376, 0.008870355784893036, 0.019971422851085663, -0.012177056632936, + -0.005370108410716057, -0.012150812894105911, -0.011566892266273499, 0.021060535684227943, + 0.016349798068404198, -0.01536566112190485, 0.03403802216053009, -0.022149646654725075, + 0.0029163265135139227, 0.04080888628959656, -0.022307109087705612, 0.02365865744650364, + -0.012341080233454704, 0.001597582595422864, -0.013016854412853718, 0.00048345737741328776, + -0.0043105208314955235, 0.018291829153895378, -0.026834139600396156, 6.07909714744892e-5, + 0.011612818576395512, 0.03716101869940758, -0.009998833760619164, -0.036688633263111115, + -0.009178719483315945, -0.03889309987425804, -0.017425788566470146, -0.010891118086874485, + 0.00012404228618834168, -0.02703096717596054, -0.006718376185745001, -0.054481834173202515, + 0.0282119307667017, 0.009533008560538292, -0.014552108012139797, 0.015286929905414581, + 0.01607424020767212, 0.004005438182502985, 0.024760890752077103, -0.002599762286990881, + 0.04668746516108513, -0.013672945089638233, 0.029917769134044647, 0.006282075308263302, + 0.044666703790426254, 0.02577127143740654, -0.004579517990350723, 0.01325304713100195, + 0.011074823327362537, 0.02514142356812954, -0.013843528926372528, -0.02149355597794056, + 0.020509418100118637, 0.009224645793437958, -0.01921035721898079, -0.006088528316468, + -0.030573859810829163, 0.000898025173228234, 0.009578934870660305, 0.02057502791285515, + 0.0013490880373865366, -0.023724265396595, -0.0012088484363630414, -0.012905318289995193, + -0.001976475352421403, -0.00738102849572897, 0.010713973082602024, 0.002762144897133112, + 0.02159852907061577, -0.014434011653065681, -0.007184201385825872, 0.0015295131597667933, + 0.021336093544960022, -0.013095584698021412, 0.027634570375084877, -0.046897415071725845, + 0.04805213585495949, 0.031781069934368134, -0.024616550654172897, -0.020955560728907585, + -0.012124569155275822, 0.03524523228406906, -0.0017025573179125786, -0.017005890607833862, + -0.02520703338086605, 0.018842946738004684, 0.04041523113846779, 0.00449094595387578, + -0.03154487535357475, 0.0024800256360322237, -0.031151220202445984, -0.008358605206012726, + -0.011317577213048935, -0.0027441023848950863, -0.042331017553806305, 0.04311832785606384, + ], + index: 20, + }, + { + title: "Melissa Gilbert", + text: "Melissa Ellen Gilbert (born May 8, 1964) is an American actress, television director, and 2016 Democratic candidate for Michigan's 8th congressional district.Gilbert began her career as a child actress in the late 1960s appearing in numerous commercials and guest starring roles on television. From 1974 to 1984, she starred as Laura Ingalls Wilder on the NBC series Little House on the Prairie.", + vector: [ + 0.023501215502619743, -0.0014370293356478214, -0.02314792014658451, -0.002298187231644988, + -0.03679925948381424, -0.00917155109345913, -0.03532954677939415, -0.011128807440400124, + 0.05986238643527031, 0.07670751214027405, -0.046521950513124466, -0.036120928823947906, + -0.02525356039404869, 0.0547749325633049, -0.032842349261045456, -0.0002612178504932672, + -0.028857175260782242, -0.001039571943692863, 0.045956674963235855, 0.001017490983940661, + 0.03066604770720005, 0.015643924474716187, 0.00459990743547678, 0.035668712109327316, + 0.05002664029598236, 0.03490559384226799, -0.003165527479723096, 0.0022928877733647823, + -0.0010510541032999754, -0.030920421704649925, -0.0055184755474328995, 0.013771457597613335, + -0.001714366371743381, -0.014640565030276775, -0.034679483622312546, -0.018258310854434967, + -0.05324869602918625, 0.0050450596027076244, 0.004183018580079079, 0.014280203729867935, + -0.003245019121095538, 0.01459816936403513, -0.028645198792219162, -0.019770415499806404, + 0.015686320140957832, 0.017749564722180367, 0.04397822171449661, 0.00664548808708787, + 0.03914513811469078, 0.024872001260519028, -0.0068115368485450745, -0.009454187005758286, + 0.01632225140929222, 0.011665817350149155, 0.016378778964281082, -0.040332213044166565, + -0.008648673072457314, 0.056838177144527435, -0.013983434997498989, -0.03496212139725685, + -0.03922992944717407, -0.008775860071182251, -0.005532607436180115, -0.0012153364950791001, + 0.02727441117167473, -0.02285115234553814, 0.03394462913274765, 0.0547749325633049, + 0.014979728497564793, 0.03996478393673897, 0.04946136847138405, -0.053503070026636124, + -0.007037646137177944, 0.025140507146716118, 0.02077377401292324, -0.015898296609520912, + -0.003925113007426262, -0.01626572385430336, -0.017933279275894165, -0.042169347405433655, + 0.007942082360386848, -0.05093107745051384, 0.009044364094734192, 0.04714374989271164, + 0.0018230046844109893, -0.022893548011779785, 0.02648302912712097, -0.07461600750684738, + 0.04999837651848793, 0.024123014882206917, 0.029026757925748825, 0.053022585809230804, + 0.04776554927229881, -0.01429433561861515, 0.03157048299908638, -0.07834680378437042, + -0.007864357903599739, -0.02549380250275135, 0.03869292140007019, -0.0061932699754834175, + -0.02384037896990776, -0.00802687369287014, -0.018258310854434967, -0.03024209290742874, + 0.029139811173081398, 0.029055019840598106, -0.043158575892448425, 0.037873275578022, + 0.015855900943279266, -0.004122958518564701, 0.03196617588400841, -0.018145255744457245, + -0.039399512112140656, 0.023246843367815018, 0.005101586692035198, 0.023006601259112358, + -0.006511235609650612, 0.030072512105107307, 0.02167821116745472, 0.013941040262579918, + -0.024660024791955948, -0.0038297229912132025, 0.019657360389828682, -0.0011217131977900863, + -0.007843160070478916, 0.01695818267762661, -0.05180725082755089, 0.03174006566405296, + 0.034679483622312546, 0.039003822952508926, -0.019742151722311974, 0.035216495394706726, + -0.0420280322432518, 0.02504158392548561, 0.02519703470170498, -0.03453816846013069, + -0.0025578592903912067, 0.01632225140929222, 0.06331054866313934, 0.023275107145309448, + 0.01683099754154682, -0.008344839327037334, 0.026256920769810677, 0.004995597992092371, + -0.0340859480202198, -0.057827405631542206, 0.023911038413643837, 0.004331402480602264, + 0.015177574008703232, -0.04355426877737045, -0.05135503038764, 0.00910795759409666, + 0.01773543283343315, 0.019162748008966446, 0.06636302173137665, 0.048811305314302444, + -0.01401169877499342, 0.031316112726926804, -0.02540901117026806, -0.056809913367033005, + 0.03855160251259804, 0.014301401562988758, -0.006384049542248249, 0.038919031620025635, + 0.015446078963577747, 0.031853120774030685, -0.026553688570857048, 0.029422447085380554, + -0.012513726018369198, 0.026977643370628357, -0.04476960375905037, -0.022497856989502907, + 0.023430556058883667, -0.01512104645371437, -0.029422447085380554, -0.015615660697221756, + 0.02317618392407894, -0.010888567194342613, -0.045532722026109695, -0.06698482483625412, + 0.02335989661514759, -0.012824625708162785, -0.0019731551874428988, -0.013192052952945232, + -0.022413065657019615, -0.016633151099085808, -0.031429167836904526, -0.03289887681603432, + -0.0027027104515582323, -0.08473438769578934, -0.01295887865126133, 0.0020155508536845446, + -0.00718603003770113, -0.03448164090514183, 0.007730105426162481, 0.003684871830046177, + -0.018512682989239693, -0.03224881365895271, -0.037505850195884705, -0.014979728497564793, + 0.022285878658294678, -0.00019696223898790777, 0.002347648609429598, -0.03719494864344597, + 0.03549912944436073, -0.011722343973815441, 0.03643183037638664, 0.0017797260079532862, + -0.06087987869977951, 0.01938885636627674, 0.03315324708819389, 0.006359318736940622, + 0.06359318643808365, -0.022144561633467674, -0.002935885451734066, 0.007334414403885603, + 0.010987489484250546, 0.00802687369287014, -0.0009203347144648433, -0.017424533143639565, + 0.03346414864063263, 0.022653305903077126, 0.014350862242281437, -0.008789991959929466, + -0.048783041536808014, 0.027797289192676544, -0.044486965984106064, 0.00036588162765838206, + 0.0072319586761295795, -0.02213042974472046, -0.035555656999349594, 0.01738213747739792, + -0.002284055342897773, 0.0871085375547409, -0.044995713979005814, -0.011644619517028332, + 0.024674156680703163, 0.008549750782549381, -0.02696351148188114, 0.036997102200984955, + 0.024165410548448563, -0.016548359766602516, -0.02128252014517784, -0.008726398460566998, + 0.010189041495323181, -0.038042858242988586, -0.009185682982206345, 0.02074551023542881, + 0.004274875391274691, 0.004423259291797876, 0.06834147870540619, 0.01743866503238678, + -0.0023794451262801886, -0.002911154879257083, -0.006306324619799852, 0.006454708520323038, + 0.02928113006055355, -0.019176878035068512, 0.002391810528934002, 0.03340762108564377, + -0.020674852654337883, -0.06749357283115387, -0.03990825638175011, -0.03493385761976242, + -0.001354004954919219, -0.03125958517193794, -0.01509278267621994, -2.8401644158293493e-5, + -0.02114120125770569, -0.024603497236967087, -0.04917873069643974, -0.015615660697221756, + 0.0023829780984669924, 0.05220293998718262, 0.014909069053828716, -0.006977585610002279, + -0.04021915793418884, 0.022172825410962105, 0.004656434524804354, -0.0007207227754406631, + 0.03157048299908638, 0.021551024168729782, -0.03315324708819389, -0.009885207749903202, + -0.018738793209195137, 0.05844920501112938, -0.015417815186083317, 0.005497277714312077, + 0.014103556051850319, 0.04298899322748184, -0.03527302294969559, 0.06025807932019234, + -0.023472951725125313, 0.008768794126808643, 0.027048302814364433, 0.014485115185379982, + 0.02047700621187687, -0.021098805591464043, 0.014428587630391121, -0.03623398393392563, + 0.04561751335859299, -0.029507238417863846, 0.01205444149672985, -0.008634542115032673, + 0.0005136033287271857, -0.02597428485751152, -0.02733093872666359, 0.037477586418390274, + 0.023204447701573372, -0.03066604770720005, -0.025211166590452194, -0.017240820452570915, + 0.058675315231084824, 0.03597961366176605, -0.005755183286964893, 0.006864531431347132, + 0.014216610230505466, -0.012379474006593227, -0.018894242122769356, -0.0199965238571167, + 0.03880597651004791, 0.011807135306298733, -0.0066490210592746735, 0.009652032516896725, + -0.008987837471067905, -0.003230887232348323, 0.009659098461270332, -0.03736453130841255, + 0.00927753932774067, -0.004391463007777929, -0.03990825638175011, 0.051694195717573166, + 0.005744584370404482, 0.009623768739402294, 0.09072627872228622, -0.043073784559965134, + -0.02485787123441696, 0.04383690282702446, 0.004232479725033045, 0.042169347405433655, + -0.038890767842531204, -0.03917340189218521, 0.00393924443051219, -0.0044797868467867374, + -0.006009556353092194, 0.046013202518224716, -0.007242557592689991, 0.015262365341186523, + 0.010711919516324997, -0.028334297239780426, 0.0006840683636255562, -0.055029306560754776, + 0.023345764726400375, 0.03603614121675491, 0.012308814562857151, 0.03332282975316048, + 0.011248928494751453, -0.04468481242656708, 0.001960790017619729, 0.010775512084364891, + 0.045589249581098557, 0.01656249165534973, -0.01930406503379345, 0.020095447078347206, + -0.0006169422413222492, -0.01752345636487007, -0.03809938579797745, -0.06958507746458054, + -0.02309139259159565, -0.04564577713608742, 0.06285833567380905, 0.013566547073423862, + 0.01770716905593872, -0.03060952015221119, 0.05599026754498482, -0.0133475037291646, + -0.015686320140957832, -0.024617629125714302, -0.010980423539876938, 0.004585775546729565, + -0.04567404091358185, 0.061049461364746094, -0.053983550518751144, 0.0018548013176769018, + -0.021240124478936195, -0.018597474321722984, -0.0012100370367988944, -0.013142592273652554, + 0.009143287315964699, -0.0035753503907471895, -0.005299432203173637, 0.04530661180615425, + 0.02386864274740219, 0.0009989429963752627, 0.018597474321722984, -0.017594115808606148, + 0.018272442743182182, -0.004313738085329533, 0.07964693754911423, -0.02357187494635582, + 0.007503996137529612, -0.029535502195358276, 0.018018070608377457, -0.0344533771276474, + 0.004073496907949448, -0.011135873384773731, -0.02020850218832493, -0.04154754802584648, + 0.05974933132529259, 0.011467971839010715, -0.027853816747665405, -0.030920421704649925, + 0.013432294130325317, -0.006970520131289959, 0.00805513747036457, -0.006115545053035021, + 0.020307425409555435, -0.025140507146716118, 0.027429861947894096, 0.035131704062223434, + 0.02477307990193367, -0.022017374634742737, 0.038919031620025635, 0.014202478341758251, + 0.014711223542690277, 0.018272442743182182, 0.014322599396109581, 0.0020579462870955467, + -0.0348208025097847, 0.03109000250697136, -0.021720606833696365, -0.027401598170399666, + -0.017777828499674797, 0.019077956676483154, 0.0040558320470154285, -0.010464612394571304, + -0.024094752967357635, -0.021579287946224213, 0.0007927067345008254, -0.007383875548839569, + -0.03428379446268082, 0.01632225140929222, -0.014569905586540699, 0.012019112706184387, + -0.08309509605169296, 0.013524151407182217, -0.03965388610959053, -0.04875477775931358, + 0.018018070608377457, -0.01465469691902399, -0.03117479383945465, 0.023614270612597466, + 0.006670218892395496, -0.02706243470311165, 0.011354916729032993, 0.018060464411973953, + 0.031231321394443512, 0.03914513811469078, -0.04400648549199104, 0.022356538102030754, + 0.00035704925539903343, 0.01698644645512104, 0.02296420745551586, 0.03872118517756462, + -0.03857986629009247, -0.10497115552425385, 0.0004047441470902413, 0.05152461305260658, + -0.014336730353534222, 0.03244665637612343, 0.050252750515937805, 0.02754291519522667, + -0.022893548011779785, 0.0061014131642878056, 0.016788601875305176, -0.045532722026109695, + 0.013672535307705402, 0.003942777402698994, 0.04669152945280075, -0.00793501641601324, + 0.028998494148254395, -0.014061160385608673, 0.002596721751615405, 0.03954083099961281, + 0.0025578592903912067, -9.759787644725293e-5, 0.07732931524515152, 0.00816112570464611, + 0.0015403683064505458, -0.0420280322432518, -0.03222054988145828, -0.0016640217509120703, + -0.018173519521951675, -0.010824973694980145, 0.017693037167191505, 0.030920421704649925, + 0.003822657046839595, -0.006751476787030697, -0.0038297229912132025, 0.0022663904819637537, + 0.000992760295048356, 0.06268875300884247, 0.004144155886024237, -0.0036248117685317993, + 0.01169408019632101, -0.006023688241839409, 0.010443414561450481, 0.043130312114953995, + 0.06738051772117615, -0.011100544594228268, 0.010196107439696789, -0.0006708197761327028, + -0.012082705274224281, -0.01885184645652771, 0.014386191964149475, 0.01259851735085249, + 0.0042784083634614944, 0.016915787011384964, 0.013891578651964664, -0.002552559832111001, + -0.023713193833827972, 0.029648557305336, 0.01767890527844429, 0.059692803770303726, + 0.01767890527844429, -0.011241862550377846, 0.0301573034375906, 0.017608247697353363, + -0.02140970714390278, 0.005133383441716433, -0.009150353260338306, 0.03120305761694908, + 0.04751117527484894, 0.02170647494494915, 0.01390571054071188, -0.004585775546729565, + -0.0036318774800747633, 0.013192052952945232, 0.03385983780026436, -0.030355148017406464, + -0.008881848305463791, -0.04058658704161644, 0.03165527433156967, -0.02077377401292324, + 0.017565852031111717, -0.021127069368958473, -0.012824625708162785, -0.021423839032649994, + 0.006419378798455, -0.043610796332359314, 0.009319934993982315, -0.03589482232928276, + 0.026539556682109833, -0.024900265038013458, -0.01531889196485281, -0.011849530972540379, + -0.01459816936403513, 0.0744464248418808, 0.04474133998155594, -0.010372755117714405, + 0.0817384421825409, -0.043215103447437286, -0.04327163100242615, -0.0016790367662906647, + -0.003776728641241789, -0.012690373696386814, -0.006129676476120949, 0.028645198792219162, + -0.04279115051031113, 0.02197497896850109, -0.010422216728329659, -0.03764716535806656, + 0.02140970714390278, -0.06851106137037277, -0.022356538102030754, 0.02146623283624649, + -0.009263407438993454, 0.022978337481617928, 0.00846495945006609, 0.002686812076717615, + 0.0696416050195694, -0.009510714560747147, 0.03196617588400841, 0.011178269051015377, + -0.053107377141714096, 0.02375558763742447, 0.018724661320447922, -0.012322946451604366, + 0.020575929433107376, 0.023826247081160545, -0.02786794863641262, -0.0181028600782156, + 0.028899570927023888, -0.007398007437586784, 0.020547665655612946, 0.00434553436934948, + 0.00393924443051219, 0.01534715574234724, -0.009736823849380016, -0.02044874243438244, + 0.05324869602918625, 0.02095748856663704, 0.011418510228395462, 0.007864357903599739, + -0.027316806837916374, -0.04776554927229881, -0.03428379446268082, 0.011644619517028332, + 0.025931889191269875, -0.021452100947499275, -0.010450480505824089, -0.00846495945006609, + -0.01273276936262846, 0.02799513377249241, -0.006935190409421921, -0.030439939349889755, + 0.019459515810012817, -0.018512682989239693, -0.03125958517193794, -0.01743866503238678, + -0.01169408019632101, -0.006624290253967047, -0.0053170970641076565, -0.0019731551874428988, + -0.005129850469529629, -0.038438547402620316, -0.02104227989912033, -0.015219969674944878, + -0.03018556535243988, 0.03501864895224571, 0.03069431148469448, 0.0010510541032999754, + -0.02482960745692253, -0.01142557617276907, -0.030920421704649925, -0.013262712396681309, + -0.03956909477710724, -0.04476960375905037, 0.02309139259159565, 0.014449785463511944, + -0.0541248694062233, 0.037534113973379135, -0.029394185170531273, 0.014025830663740635, + -0.00986400991678238, -0.02610146999359131, 0.00849322322756052, 0.008761728182435036, + 0.014725355431437492, 0.018837714567780495, -0.0060837483033537865, -0.023684930056333542, + -0.027260279282927513, -0.006917525548487902, -0.005101586692035198, -0.011121741496026516, + -0.009977064095437527, -0.03162701055407524, -0.0006385815795511007, 0.012181628495454788, + -0.021551024168729782, -0.011658751405775547, -0.007468666415661573, 0.011178269051015377, + 0.004338468424975872, -0.03674273192882538, 0.012125100940465927, -0.010351557284593582, + 0.01815938763320446, -0.0005295015871524811, 0.004469187930226326, -0.013623073697090149, + 0.004380864091217518, -0.004716494586318731, 0.030439939349889755, -0.012209892272949219, + -0.06461067497730255, -0.035103440284729004, -0.013531217351555824, 0.0011826566187664866, + 0.01656249165534973, -0.04578709602355957, -0.024617629125714302, 0.01879531890153885, + -0.00858508050441742, 0.014463917352259159, 0.008903046138584614, -0.005129850469529629, + -0.02131078392267227, -0.0028139986097812653, 0.017240820452570915, -0.013354569673538208, + -0.018498551100492477, 0.03809938579797745, -0.012817559763789177, 0.0005277351592667401, + -0.015333023853600025, -0.03730800375342369, -0.026497161015868187, -0.026921115815639496, + -0.0027433393988758326, 0.029337657615542412, -0.008797057904303074, -0.022568516433238983, + 0.0021127068903297186, 0.0093058031052351, -0.010245569050312042, -0.03682751953601837, + 0.00554673932492733, -0.02522529847919941, 0.01201204676181078, 0.03431205824017525, + -0.0018247711705043912, -0.01746692880988121, -0.0007538442150689662, -0.036629676818847656, + -0.01869639754295349, -0.019770415499806404, 0.02727441117167473, -0.01512104645371437, + 0.05240078642964363, 0.015728715807199478, 0.025606857612729073, -0.018470287322998047, + -0.0472002774477005, -0.010740182362496853, 0.018936637789011, -0.03575350344181061, + 0.01587003283202648, 0.013460557907819748, -0.02861693501472473, 0.013036603108048439, + 0.01978454738855362, 0.004924939014017582, 0.0437803752720356, 0.00012299099762458354, + -0.00780076440423727, 0.020392214879393578, 0.01234414428472519, 0.023769719526171684, + 0.022413065657019615, -0.0172266885638237, 0.03581003099679947, -0.014287269674241543, + 0.002006718423217535, -0.007189563009887934, -0.0021091741509735584, 0.007362677715718746, + -0.0172266885638237, -0.04493918642401695, 0.059636276215314865, 0.011475037783384323, + 0.0005264102946966887, 0.009009035304188728, -0.0191203523427248, 0.015064519830048084, + 0.05336175113916397, -0.00411235960200429, 0.030976947396993637, -0.0218901876360178, + 0.017452796921133995, -0.0327010303735733, -0.01981281116604805, 0.00849322322756052, + 0.0006721446407027543, 0.06280180811882019, -0.014004632830619812, -0.00493200495839119, + -0.023925170302391052, -0.018993165343999863, 0.008012741804122925, -0.014301401562988758, + 0.0003466712078079581, -0.033746786415576935, 0.02140970714390278, -0.0011614589020609856, + -0.008344839327037334, -0.018922505900263786, -0.010881501249969006, 0.028758252039551735, + -0.02597428485751152, 0.0045893085189163685, -0.002388277556747198, 0.004610505886375904, + -0.029111547395586967, -0.05946669727563858, 0.0434129498898983, 0.015488473698496819, + -0.03024209290742874, -0.060597240924835205, -0.027288543060421944, -0.010669523850083351, + -0.025211166590452194, -0.01807459630072117, -0.03688404709100723, 0.011708212085068226, + 0.0008130212081596255, -0.010443414561450481, 0.021565156057476997, -0.0057198540307581425, + 0.031344376504421234, 0.02122599259018898, -0.015446078963577747, -0.006956388242542744, + -0.024066489189863205, -0.030750839039683342, -0.011595157906413078, 0.006670218892395496, + -0.04349774122238159, 0.03971041366457939, 0.03431205824017525, 0.022116297855973244, + 0.003289181040599942, -0.06619343906641006, -0.024546969681978226, -0.005582068581134081, + -0.004020502790808678, 0.02591775730252266, -0.009086759760975838, -0.03298366814851761, + -0.0031443298794329166, 0.03261623904109001, -0.0031761263962835073, -0.012859955430030823, + 0.024193674325942993, 0.00933406688272953, 0.018173519521951675, -0.028306033462285995, + 0.0019007297232747078, 0.007744236849248409, -0.024123014882206917, 0.0444304384291172, + -0.038353756070137024, -0.004688231274485588, -0.0527399517595768, -0.00046811651554889977, + -0.021989110857248306, -0.012457198463380337, 0.026285184547305107, 0.007405073381960392, + -0.00040805627941153944, -0.01914861612021923, -0.001015724497847259, -0.051185451447963715, + 0.008994903415441513, -0.009397659450769424, 0.0021074076648801565, -0.07795111835002899, + -0.01423780806362629, -0.01855507865548134, 0.01855507865548134, 0.009899339638650417, + -0.01086736936122179, -0.014937332831323147, -0.008175257593393326, 0.0022027974482625723, + -0.0038509208243340254, -0.009750955738127232, -0.03258797526359558, 0.004829549230635166, + -0.004271342419087887, -0.01741040125489235, 0.04527834802865982, -0.027797289192676544, + 0.017099501565098763, 0.006020155269652605, -0.01978454738855362, 0.011460905894637108, + 0.007327348459511995, 0.00033253937726840377, 0.0067585427314043045, -0.010323294438421726, + 0.002324684290215373, -0.035555656999349594, -0.05556631460785866, 0.029648557305336, + -0.024038225412368774, -0.00024465713067911565, -0.017099501565098763, 0.010499942116439342, + 0.027514653280377388, 0.032870613038539886, -0.027458125725388527, -0.006903393659740686, + -0.002324684290215373, 0.0014334964798763394, 0.009475384838879108, -0.0172266885638237, + -0.0068115368485450745, -0.007638248614966869, -0.030468203127384186, -0.018654001876711845, + 0.031231321394443512, -0.023289239034056664, 0.03171180188655853, 0.010803775861859322, + 0.04355426877737045, -0.03691231086850166, 0.017057105898857117, 0.021551024168729782, + 0.015361287631094456, 0.025055715814232826, 0.0036212787963449955, 0.06087987869977951, + -0.008139927871525288, 0.019205141812562943, -0.013114328496158123, 0.013637205585837364, + -0.005578535608947277, -0.01022437121719122, -0.028970230370759964, -0.011072280816733837, + 0.01975628361105919, 0.006218000315129757, 0.012690373696386814, 0.0020632457453757524, + -0.01914861612021923, 0.026271052658557892, 0.016972314566373825, -0.014923200942575932, + -0.024193674325942993, 0.0109450938180089, 0.009962933138012886, 0.04329989477992058, + -0.009828680194914341, -0.054407503455877304, -0.004009903874248266, -0.0058293757028877735, + 0.0030189098324626684, 0.026172129437327385, -0.008373103104531765, 0.022045638412237167, + 0.02140970714390278, -0.04163233935832977, 0.009765087626874447, -0.02762770652770996, + -0.018442023545503616, 0.0018530348315835, 0.018738793209195137, -0.0019925865344703197, + -0.00529236625880003, 0.01668967865407467, 0.00614027539268136, 0.036997102200984955, + -0.04493918642401695, 5.895618232898414e-5, -0.005603266414254904, -0.017184292897582054, + 0.004886076785624027, -0.01962909661233425, 0.011411444284021854, -0.019614964723587036, + -0.0035594520159065723, -0.0006588960532099009, 0.030750839039683342, 0.039823468774557114, + -0.012132166884839535, -0.0015421347925439477, -0.003153162309899926, 0.02546553872525692, + -0.015954824164509773, 0.008408432826399803, -0.02311965636909008, -0.0038933162577450275, + -0.025154639035463333, 0.03866465762257576, 0.0004985882551409304, 0.008966639637947083, + 0.03857986629009247, 0.0017002344829961658, 0.026313448324799538, -0.016166800633072853, + 0.009221011772751808, 0.013750260695815086, -0.022073902189731598, 0.02245546132326126, + -0.0509876050055027, 0.029959456995129585, -0.02471655234694481, -0.011800069361925125, + 0.006041352637112141, -0.0077795665711164474, 0.01701471023261547, 0.03928645700216293, + 0.016619019210338593, 0.004080562852323055, -0.02005305141210556, 0.021367311477661133, + -0.011835399083793163, -0.030383411794900894, -0.05861878767609596, -0.007256689481437206, + -0.013078998774290085, -0.03990825638175011, 0.014640565030276775, -0.012266418896615505, + -0.011800069361925125, -0.012033244594931602, -0.01560152880847454, 0.03202270343899727, + -0.030468203127384186, 0.04751117527484894, 0.001874232548289001, -0.011934321373701096, + -0.031400904059410095, 0.03439684957265854, 0.009178617037832737, -0.006684350781142712, + -0.007518128026276827, -0.0006160589982755482, 0.014160082675516605, 0.014202478341758251, + 0.022540252655744553, -0.014711223542690277, 0.02333163470029831, -0.01749519258737564, + -0.033690258860588074, 0.02540901117026806, -0.015898296609520912, 0.010139580816030502, + -0.002100341720506549, -0.03450990468263626, 0.01562979258596897, 0.01789088360965252, + -0.017608247697353363, 0.010323294438421726, 0.024787211790680885, -0.00994880124926567, + 0.018682265654206276, 0.0032503183465451, 0.019318196922540665, 0.008323641493916512, + -0.003903915174305439, 0.048330821096897125, -0.03255971148610115, 0.006755009759217501, + 0.028009265661239624, 0.040388740599155426, 0.01158809196203947, 0.011135873384773731, + -0.010245569050312042, 0.022229351103305817, -0.030298620462417603, 0.01927580125629902, + 0.0076877097599208355, -0.004179485607892275, -0.006210934836417437, -0.030100775882601738, + -0.008337773382663727, 0.015587396919727325, 0.02612973377108574, -0.0013504719827324152, + 0.028306033462285995, 0.017537588253617287, 0.0049532027915120125, 0.011121741496026516, + 0.005175778642296791, 0.024900265038013458, 0.007398007437586784, 0.01834310218691826, + 0.030948683619499207, 0.009093825705349445, -0.033294565975666046, 0.020378082990646362, + 0.011503300629556179, 0.01698644645512104, 0.025960152968764305, -0.012471330352127552, + 0.009037298150360584, -0.028433220461010933, -0.013078998774290085, -0.018201783299446106, + 0.005246438086032867, 0.00021186689264141023, 0.0008929543546400964, -0.013820919208228588, + -0.018710529431700706, -0.013594809919595718, -0.011828333139419556, 0.009581374004483223, + 0.05531194061040878, 0.005765782203525305, 0.0005741051863878965, -0.00787848886102438, + 0.01070485357195139, -0.00012630312994588166, 0.0021127068903297186, -0.007751302793622017, + -0.008062203414738178, 0.0004725327016785741, -0.017452796921133995, -0.016407042741775513, + -0.010075987316668034, -0.017028842121362686, -0.014428587630391121, -0.04847213998436928, + -0.020660720765590668, 0.029026757925748825, 0.01960083283483982, -0.003001245204359293, + 0.03196617588400841, -0.03012903966009617, -0.031824856996536255, 0.03151395544409752, + -0.0027910342905670404, 0.01531889196485281, -0.031429167836904526, 0.041745394468307495, + -0.04349774122238159, 0.0036159793380647898, -0.04098227620124817, 0.04434565082192421, + 0.014781882986426353, -0.030044248327612877, 0.013601875863969326, -0.019191009923815727, + -0.013368701562285423, -0.04208455979824066, 0.023684930056333542, -0.005221707280725241, + 0.013870380818843842, 0.005076856352388859, 0.015954824164509773, -0.018032200634479523, + 0.026285184547305107, -0.008726398460566998, -0.004631703719496727, 0.007942082360386848, + 0.0037590640131384134, 0.016067879274487495, 0.011164137162268162, 0.013220316730439663, + 0.03219228610396385, -0.06274528056383133, 0.023218579590320587, 0.0010907998075708747, + -0.020038919523358345, -0.0022434263955801725, 0.04366732016205788, -0.03487733006477356, + -0.0015659822383895516, -0.0012594984145835042, -0.02266743779182434, 0.05952322483062744, + 0.013997566886246204, -0.032418392598629, -0.021932583302259445, -0.00874759629368782, + -0.029931193217635155, -0.038042858242988586, 0.03626224771142006, 0.030835630372166634, + -0.01954430714249611, 0.0008708733948878944, 0.03450990468263626, -0.03640356659889221, + -0.012188694439828396, -0.019982391968369484, -0.02338816039264202, -0.013163790106773376, + 0.01717016100883484, 0.016972314566373825, 0.005705722142010927, 0.006514768581837416, + 0.006023688241839409, -0.017933279275894165, -0.015333023853600025, -0.03298366814851761, + -0.012591451406478882, 0.007398007437586784, 0.0025189968291670084, -0.00019022753986064345, + 0.001309843035414815, 0.015474341809749603, -0.038466811180114746, -0.011029885150492191, + -0.012895285151898861, 0.04041700437664986, -0.0076170507818460464, 0.007016448304057121, + -0.013156724162399769, 0.007249623537063599, -0.029507238417863846, 0.014061160385608673, + -0.006613691337406635, 0.002077377401292324, -0.005306498147547245, 0.008373103104531765, + 0.0020703114569187164, 0.0056279972195625305, -0.04197150468826294, 0.01050700806081295, + -0.002446571132168174, -0.0029606162570416927, -0.0014140651328489184, 3.425310205784626e-5, + 0.015912428498268127, 0.03959735855460167, 0.013566547073423862, 0.007956214249134064, + -0.00608728127554059, -0.022780492901802063, 0.0012383006978780031, 0.004575176630169153, + 0.013997566886246204, -0.009835746139287949, 0.005603266414254904, -0.0064653074368834496, + -0.0028069326654076576, 0.03603614121675491, -0.008309509605169296, -0.02482960745692253, + -0.007609984837472439, -0.007405073381960392, -0.007652380038052797, -0.0021604017820209265, + -0.0027433393988758326, 0.008648673072457314, 0.00841549877077341, 0.04010610282421112, + -0.006221533287316561, -0.009595504961907864, 0.0004698830016423017, -0.029422447085380554, + -0.008881848305463791, 0.008429630659520626, -0.005804644897580147, -0.016223328188061714, + 0.014322599396109581, -0.020999884232878685, 0.005437217652797699, -0.028546275570988655, + 0.023289239034056664, -0.0028828911017626524, 0.03109000250697136, 0.013658403418958187, + -0.025479670614004135, -0.013255646452307701, -0.0059530287981033325, 0.01602548360824585, + 0.006232132203876972, 0.0034834935795515776, -0.01250666007399559, 0.031372640281915665, + -0.04106706753373146, 0.008203521370887756, -0.00790675263851881, -0.028376692906022072, + -0.02314792014658451, 0.016308119520545006, -0.011460905894637108, -0.003766129957512021, + -0.009150353260338306, 0.015205837786197662, 0.021536892279982567, 0.013750260695815086, + 0.03109000250697136, -0.0009627302060835063, -0.03222054988145828, -0.0031266650184988976, + 0.022709833458065987, -0.026030810549855232, -0.007164832670241594, 0.006804470904171467, + 0.05596200376749039, -0.006281593814492226, -0.024575233459472656, 0.00933406688272953, + 0.0020226165652275085, 0.03883424028754234, -0.044091276824474335, 0.00933406688272953, + -0.023642534390091896, -0.0007759252330288291, -0.035159967839717865, -0.004536313936114311, + 0.016604887321591377, 0.015728715807199478, -0.02386864274740219, 0.03544260188937187, + -0.005786980036646128, 0.008924243971705437, 0.0011835398618131876, 0.03210749477148056, + -0.0260025467723608, 0.039879992604255676, -0.013856248930096626, -0.016887525096535683, + -0.01914861612021923, 0.0055361404083669186, -0.015855900943279266, -0.012266418896615505, + 0.0018883643206208944, -0.027769025415182114, -0.011354916729032993, 0.01996826007962227, + -0.005783447064459324, -0.0451652966439724, 0.017848487943410873, 0.010189041495323181, + -0.004260743502527475, -0.01623746007680893, -0.032842349261045456, -0.0005016796058043838, + -0.001985520590096712, 0.001194138778373599, -0.01437206007540226, 0.024886133149266243, + -0.002056179801002145, 0.019798679277300835, 0.03292714059352875, -0.015728715807199478, + 0.024278465658426285, -0.01978454738855362, 0.01989760249853134, -0.014979728497564793, + 0.01650596596300602, -0.0017496958607807755, -0.06630649417638779, -0.0111994668841362, + 0.005143982358276844, 0.014209544286131859, -0.008818255737423897, 0.020392214879393578, + 0.00024841088452376425, -0.005613865330815315, 0.004522182047367096, 0.0063027916476130486, + 0.008797057904303074, -0.055424995720386505, 0.039399512112140656, 0.004059365019202232, + -0.04445870220661163, -0.013644271530210972, -0.03154221922159195, -0.04352600499987602, + -0.012845823541283607, -0.012061507441103458, 0.029111547395586967, -0.020858565345406532, + -0.008839452639222145, 0.016887525096535683, -3.4536012663011206e-6, -0.03569697588682175, + 0.007652380038052797, 0.01109347864985466, -0.014244874007999897, 0.023105524480342865, + 0.006023688241839409, 0.0344533771276474, -0.013580678030848503, 0.0028334297239780426, + -0.018145255744457245, -0.016152668744325638, -0.007419205270707607, 0.03535781055688858, + -0.023345764726400375, 0.06427151709794998, 0.004564577713608742, 0.0042960732243955135, + -0.024702420458197594, 0.001714366371743381, 0.005009729880839586, -0.0022416599094867706, + -0.024970924481749535, 0.0170429740101099, 0.02143797092139721, -0.055877212435007095, + -0.018442023545503616, 0.00221339613199234, 0.022992469370365143, 0.008076334372162819, + -0.013997566886246204, -0.004267809446901083, -0.00043124129297211766, -0.009503648616373539, + 0.009404725395143032, -0.04284767806529999, -0.009319934993982315, -0.012753967195749283, + 0.014640565030276775, -0.020434610545635223, -0.025182902812957764, 0.0067903390154242516, + 0.03391636535525322, -0.014965596608817577, -0.010203173384070396, 0.0008077218080870807, + -0.009009035304188728, -0.00025260625989176333, -0.012019112706184387, 0.04717201367020607, + 0.01855507865548134, -0.0013133760076016188, 0.0022699234541505575, 0.018922505900263786, + -0.01270450558513403, 0.01512104645371437, -0.027203751727938652, -0.011354916729032993, + -0.01786261983215809, 0.016520095989108086, -0.002052646828815341, 0.01058473251760006, + -0.05712081491947174, -0.011347850784659386, 0.008019807748496532, 0.00672674598172307, + 0.01599721983075142, 0.017664773389697075, -0.02213042974472046, 0.032842349261045456, + 0.014909069053828716, -0.008450827561318874, -0.011255994439125061, -0.002935885451734066, + 0.0005272935377433896, 0.03496212139725685, 0.045023977756500244, 0.051637668162584305, + -0.014463917352259159, 0.009065561927855015, -0.02648302912712097, 0.0018336036009714007, + -0.010485810227692127, -0.011255994439125061, 0.004465654958039522, -0.023430556058883667, + 0.021452100947499275, 0.0003932620456907898, 0.017127765342593193, -0.008888914249837399, + 0.012845823541283607, -0.015587396919727325, 0.009955867193639278, 0.0015686319675296545, + -0.020420478656888008, 0.024758948013186455, 0.007723039481788874, -0.0327010303735733, + 0.03473601117730141, -0.03527302294969559, -0.018272442743182182, -0.005889435764402151, + 0.006956388242542744, -0.03634703904390335, -0.027670102193951607, -0.02143797092139721, + -0.03253144770860672, 0.014781882986426353, -0.001649889862164855, 0.0034658287186175585, + -0.01960083283483982, -0.0077795665711164474, 0.018950769677758217, 0.008069268427789211, + -0.007062376942485571, 0.006730278953909874, 0.03289887681603432, -0.007553457282483578, + -0.023911038413643837, -0.008662804961204529, 0.002866992959752679, -0.004264276474714279, + -0.03496212139725685, -0.0036212787963449955, 0.01717016100883484, 0.032729294151067734, + 0.010047723539173603, -0.012513726018369198, 0.022752229124307632, 0.04041700437664986, + -0.0413779653608799, 0.018781188875436783, 0.014386191964149475, -0.019925866276025772, + -0.01319911889731884, 0.02685045637190342, -0.038862504065036774, -0.005493744742125273, + 0.002146270126104355, 0.01070485357195139, 0.007920884527266026, -0.0009062029421329498, + 0.026271052658557892, 0.053983550518751144, -0.004515116102993488, 0.0024289065040647984, + 0.05358785763382912, 0.012520791962742805, -0.011736475862562656, -0.002354714320972562, + -0.007482798304408789, -0.003027742262929678, -0.01365133747458458, -0.012775165028870106, + 0.03301193192601204, -0.0070517780259251595, 0.018526814877986908, 0.004638769663870335, + 0.003744932124391198, -0.005755183286964893, 0.00042925402522087097, -0.01683099754154682, + -0.024250201880931854, 0.050281014293432236, -0.023953434079885483, -0.009383528493344784, + -0.0056279972195625305, -0.01417421456426382, 0.016859261319041252, -0.003720201551914215, + -0.013375767506659031, 0.00012056208652211353, -0.004818950314074755, -3.679241126519628e-5, + -0.0186116062104702, -0.04279115051031113, 0.005560870748013258, 0.010796709917485714, + -0.006242731120437384, 0.0061932699754834175, 0.0033580735325813293, -0.05567936971783638, + -0.014584037475287914, -0.037901539355516434, -0.02642650157213211, 0.01429433561861515, + -0.0012745134299620986, -0.007899686694145203, 0.03012903966009617, -0.037958066910505295, + -0.013156724162399769, -0.001667554723098874, 0.035668712109327316, 0.03411421179771423, + ], + index: 21, + }, + { + title: "Jacob K. Javits Federal Building", + text: "The Jacob K. Javits Federal Office Building at 26 Federal Plaza on Foley Square in the Civic Center district of Manhattan, New York City houses many Federal government agencies, and, at over 41 stories, is the tallest federal building in the United States. It was built in 1963-69 and was designed by Alfred Easton Poor and Kahn & Jacobs, with Eggers & Higgins as associate architects.", + vector: [ + 0.02560940943658352, -0.013634005561470985, -0.015596937388181686, 0.0291244275867939, + -0.015049141831696033, 0.01211235299706459, 0.02559419348835945, 0.023113900795578957, + -0.06902215629816055, 0.05900967866182327, -0.010438535362482071, -0.019674966111779213, + 0.016814259812235832, -0.01946193352341652, -0.00637191953137517, 0.017453353852033615, + -0.041084613651037216, -0.006200733594596386, -0.009167955256998539, 0.0019952666480094194, + -0.034358911216259, -0.006832219194620848, 0.0005582562298513949, -0.007760427426546812, + 0.013086210936307907, -0.004294863902032375, 0.04385402053594589, -0.017468569800257683, + -0.021166184917092323, 0.02859184890985489, 0.020024945959448814, 0.04668429493904114, + 0.033932849764823914, -0.007478921674191952, 0.035302337259054184, 0.03694571927189827, + 0.04391488805413246, -0.02512248046696186, 0.05015366151928902, -0.04485831409692764, + -5.462494300445542e-5, 0.011404784396290779, -0.014531780034303665, 0.004306276328861713, + 0.031224306672811508, -0.026233287528157234, 0.006539301015436649, 0.0015815674560144544, + -0.050092797726392746, 0.0834474191069603, 0.006227362435311079, -0.029611356556415558, + 0.016692526638507843, 0.010773299261927605, 0.0013828015653416514, -0.008566902950406075, + 0.008795150555670261, 0.09823787957429886, -0.005976289976388216, 0.07023947685956955, + 0.021044453606009483, -0.021440083160996437, -0.028394034132361412, 0.00021909417409915477, + 0.023600827902555466, 0.10529834777116776, -0.0015092890243977308, 0.027602775022387505, + -0.027785371989011765, 0.003670986508950591, 0.03155907243490219, 0.03114822506904602, + -0.005839340854436159, 0.008224531076848507, 0.029017910361289978, -0.028926612809300423, + 0.05949660763144493, 0.005143185146152973, 0.01658601127564907, 0.00607139291241765, + 0.07096986472606659, -0.030935192480683327, -0.030691727995872498, 0.0067827655002474785, + -0.018457643687725067, -0.002575396792963147, -0.08229096233844757, -0.04930153861641884, + 0.039836861193180084, -0.00431008031591773, 0.010248328559100628, 0.03636749088764191, + -0.0139307277277112, -0.027252795174717903, 0.01952280104160309, 0.015338256023824215, + 0.020542306825518608, -0.011511300690472126, -0.000816937128547579, 0.0009595920564606786, + -0.004926349502056837, 0.03527190163731575, -0.027587557211518288, -0.01390029489994049, + 0.003303887788206339, -0.0001974581682588905, -0.033263321965932846, 0.0007375258719548583, + 0.027404960244894028, 0.022703053429722786, -0.016844691708683968, -0.030235232785344124, + -0.01605343259871006, -0.016570795327425003, -0.02017711102962494, 0.041571542620658875, + 0.023250848054885864, 0.007726190146058798, 0.018305478617548943, 0.008848409168422222, + 0.009000574238598347, -0.023585611954331398, 0.03612402826547623, 0.00017926967120729387, + -0.028835313394665718, 0.003925863187760115, 0.04074985161423683, 0.06034873425960541, + 0.00411606952548027, 0.0006428981432691216, -0.06211385130882263, 0.01789463311433792, + 0.031224306672811508, -0.07297845184803009, -0.0003792243078351021, -0.016327330842614174, + 0.022063959389925003, 0.009624451398849487, -0.0375848151743412, 0.036489225924015045, + -0.011092846281826496, 0.007022425998002291, -0.03706745430827141, 0.00040252460166811943, + 0.05191877856850624, -0.054505590349435806, 0.002908258233219385, 0.02344866283237934, + -0.005550227127969265, -0.007452292833477259, -0.0024859996046870947, 0.014699161984026432, + 0.020557524636387825, -0.022368289530277252, 0.074987031519413, -0.0030375986825674772, + 0.02124226838350296, 0.006227362435311079, -0.01701207458972931, 0.03301985561847687, + -0.028181001543998718, -0.026583267375826836, 0.04196717217564583, -0.019203253090381622, + 0.0017508512828499079, -0.011184144765138626, 0.01381660345941782, 0.004743751138448715, + 0.023707345128059387, 0.0023014992475509644, 0.012896004132926464, -0.010438535362482071, + -0.007642499171197414, -0.0316503681242466, -0.011541733518242836, -0.03807174414396286, + 0.02238350734114647, 0.020983586087822914, 0.014858935959637165, -0.022474806755781174, + 0.036610957235097885, 0.02649196796119213, 0.011944971047341824, 0.04321492835879326, + -0.03241119533777237, 0.0009548368980176747, 0.0037965227384120226, -0.010484185069799423, + 0.03253292664885521, -0.04516264423727989, -0.03855867311358452, 0.026339802891016006, + 0.031832966953516006, 0.014744811691343784, 0.02005537785589695, -0.07523049414157867, + 0.05061015859246254, -0.005177422426640987, -0.05657503753900528, -0.022657403722405434, + 0.026400668546557426, 0.030813461169600487, -0.05143184959888458, 0.00431008031591773, + 0.03090476058423519, 0.03466324135661125, 0.05322740226984024, -0.044188786298036575, + -0.006136063486337662, -0.005633918102830648, -0.05873578414320946, 0.012089528143405914, + 0.0036139243748039007, -0.018122879788279533, -0.012454724870622158, 0.01515565812587738, + -0.0204053595662117, -0.004275843035429716, 0.007330560591071844, 0.0007513158489018679, + 0.013945944607257843, 0.017514219507575035, -0.021820494905114174, -0.002116998890414834, + 0.024863800033926964, -0.017803333699703217, 0.04190630838274956, 0.011922146193683147, + -0.022155258804559708, 0.024452954530715942, -0.015581720508635044, -0.026841947808861732, + -0.010735257528722286, 0.046927761286497116, 0.030478697270154953, 0.008795150555670261, + 0.011397176422178745, -0.04370185732841492, -0.011374351568520069, 0.008467995561659336, + 0.061444323509931564, 0.00732675613835454, -0.07523049414157867, 0.013892685994505882, + -0.029109209775924683, 0.015718668699264526, -0.03676312044262886, 0.009951606392860413, + -0.02112053520977497, -0.016920775175094604, 0.03831520676612854, 0.015855617821216583, + 0.05216224491596222, 0.02710063010454178, 0.07845639437437057, 0.01576431840658188, + -0.04501047730445862, -0.028683148324489594, -0.002482195384800434, -0.0446452796459198, + -0.04309319704771042, 0.05420126020908356, 0.00031550510902889073, -0.018640242516994476, + -0.0006752332556061447, -0.022596538066864014, -0.004675277043133974, -0.009609234519302845, + 0.0074028391391038895, 0.020024945959448814, -0.005850753281265497, 0.011792805977165699, + 0.02853098325431347, 0.04838854447007179, -0.024681201204657555, 0.028744013980031013, + -0.01880762353539467, 0.04893634095788002, 0.002788427984341979, -0.003100366797298193, + -0.005550227127969265, -0.0030547170899808407, 0.030600430443882942, 0.012340600602328777, + -0.009350554086267948, 0.019614098593592644, 0.052010077983140945, 0.008247355930507183, + 0.03782827779650688, -0.03734134882688522, -0.006383331958204508, 0.0119677959010005, + 0.04318449646234512, 0.00735338544473052, -0.011267836205661297, -0.01345140766352415, + 0.013763345777988434, -0.020085811614990234, 0.012097136117517948, -0.01390029489994049, + -0.010453752242028713, 0.020131461322307587, -0.009236429817974567, -0.014470914378762245, + 0.005858361721038818, -0.012211260385811329, -0.02249002270400524, 0.0510970875620842, + 0.03624575957655907, -0.044675715267658234, 0.04354969039559364, -0.0004179788811597973, + -0.00693493103608489, -0.002025699708610773, 0.0271614957600832, 0.016327330842614174, + 0.05657503753900528, -0.003585393540561199, 0.026826731860637665, -0.05295350402593613, + -0.017407704144716263, 0.02411819063127041, -0.022368289530277252, 0.03055478073656559, + 0.023676911368966103, -0.05931400880217552, 0.03298942372202873, -0.02148573100566864, + -0.03658052533864975, 0.003884017700329423, 0.018427209928631783, -0.027526691555976868, + 0.009632059372961521, 0.002073251409456134, 0.01456221379339695, -0.021287916228175163, + -0.022094393149018288, 0.026461536064743996, -0.025974607095122337, 0.02869836427271366, + 0.03508930280804634, 0.02387472614645958, 0.013535098172724247, -0.01628168113529682, + -0.03155907243490219, 0.01473720371723175, 0.038832567632198334, 0.017149021849036217, + 0.03533276915550232, -0.030585212633013725, 0.0007028132095001638, -0.0031536247115582228, + -0.04601476714015007, -0.008369088172912598, 0.0074294679798185825, 0.002288184827193618, + 0.00023335966398008168, -0.055662043392658234, 0.04382358863949776, 0.04230193793773651, + 0.06750050187110901, 0.033263321965932846, -0.012728622183203697, 0.04625823348760605, + -0.03445021063089371, 0.019081521779298782, -0.01053744275122881, -0.011815630830824375, + -0.012317775748670101, 0.05106665566563606, -0.05267960578203201, -0.02142486535012722, + 0.01641863025724888, 0.04662343114614487, -0.015977350994944572, -0.01874675787985325, + -0.006676250137388706, -0.004614410921931267, -0.020755339413881302, -0.009708141908049583, + -0.04510177671909332, -0.06634404510259628, 0.04351925849914551, 0.04814508184790611, + 0.03861953690648079, -0.04245410114526749, 0.014935018494725227, -0.01148847583681345, + -0.019127171486616135, -0.035119738429784775, -0.026339802891016006, 0.004888308234512806, + 0.013055777177214622, 0.0008240698953159153, 0.0065164766274392605, -0.021227050572633743, + 0.0041122655384242535, -0.003866899060085416, 0.02089228667318821, 0.006079001352190971, + -0.010948289185762405, 0.053683895617723465, -0.018335910513997078, 0.029580922797322273, + 0.007030033972114325, -0.06780482828617096, -0.0054551237262785435, 0.010575484484434128, + 0.006527888588607311, 0.028074486181139946, -0.03049391321837902, -0.06701356917619705, + -0.0005159352440387011, -0.010491793043911457, 0.03359808400273323, -0.018701108172535896, + 0.02489423379302025, -0.012972086668014526, 0.02667456679046154, 0.025442028418183327, + 0.047353822737932205, 0.004340513609349728, -0.03256336227059364, 0.00025511454441584647, + -0.003319104202091694, 0.03682398796081543, 0.03222859650850296, 0.008194098249077797, + -0.02350953035056591, 0.003788914531469345, 0.009594018571078777, 0.0524057075381279, + -0.01580996811389923, 0.018335910513997078, 0.038589105010032654, 0.01772725023329258, + 0.03621532768011093, 0.009015790186822414, 0.022231342270970345, -0.002145529957488179, + 0.048540711402893066, 0.035576231777668, 0.002219710499048233, 0.015596937388181686, + -0.04625823348760605, 0.02471163496375084, -0.03581969812512398, -0.0093962037935853, + 0.011526516638696194, 0.0014902682742103934, 0.024848584085702896, -0.02452903613448143, + -0.06756136566400528, -0.03962382674217224, 0.0705438032746315, 0.05018409714102745, + 0.016205597668886185, -0.013109035789966583, -0.046927761286497116, -0.02507683075964451, + -0.02780058979988098, -0.030569996684789658, -0.00014515136717818677, -0.10669826716184616, + 0.010628742165863514, -0.0027751135639846325, 0.02452903613448143, -0.001273432862944901, + 0.0016795238479971886, -0.029991768300533295, -0.006463218480348587, 0.040202055126428604, + -0.059161845594644547, 0.01507196668535471, -0.016570795327425003, -0.029611356556415558, + -0.0009006279869936407, -0.05526641383767128, 0.024513820186257362, -0.0007204072899185121, + -0.0017204182222485542, 0.02291608601808548, -0.006866456475108862, -0.03210686519742012, + 0.01873154193162918, 0.011747156269848347, -0.055175114423036575, -0.01964453235268593, + -0.039958592504262924, 0.050762325525283813, 0.0866733193397522, 0.03770654648542404, + 0.015855617821216583, -0.035484932363033295, 0.02548767812550068, 0.0004324821347836405, + -0.01952280104160309, -0.015718668699264526, -0.04802335053682327, -0.006067588925361633, + -0.016814259812235832, 0.010605917312204838, 0.01660122722387314, -0.01964453235268593, + -0.0204053595662117, -0.008665810339152813, 0.02565505914390087, 0.00264196889474988, + -0.037919577211141586, -0.025761574506759644, 0.023707345128059387, -0.02936789207160473, + -0.022185692563652992, -0.03734134882688522, -0.06774396449327469, -0.046106066554784775, + -0.0065735382959246635, -0.004686689469963312, 0.0021512361709028482, -0.032624226063489914, + 0.015094791539013386, 0.021927010267972946, -0.006622991990298033, -0.023783426731824875, + 0.03639792650938034, -0.014417656697332859, -0.009472286328673363, -0.011868888512253761, + 0.022292207926511765, -0.015657803043723106, -0.01903587207198143, -0.024011675268411636, + 0.00862016063183546, -0.019553232938051224, 0.01719467155635357, 0.015163266099989414, + 0.009867915883660316, -0.03752394765615463, -0.007052858825773001, -0.04720165580511093, + 0.036915287375450134, -0.017468569800257683, 0.006733311805874109, -0.0317416675388813, + -0.020694471895694733, -0.02411819063127041, 0.041754141449928284, 0.009023399092257023, + -0.013101426884531975, -0.0016852300614118576, 0.04035422205924988, 0.005489361006766558, + -0.003642455441877246, 0.009061439894139767, 0.041449811309576035, 0.007935416884720325, + 0.04339752718806267, -0.0021569423843175173, 0.038467373698949814, 0.010126596316695213, + 0.017757683992385864, 0.018275044858455658, -0.04701906070113182, 0.018518509343266487, + -0.0033495372626930475, -0.001213517738506198, 0.0076843444257974625, 0.02728322707116604, + -0.07334364205598831, 0.018640242516994476, 0.018275044858455658, -0.004043791443109512, + 0.01121457852423191, 0.04038465395569801, 0.018761973828077316, 0.013634005561470985, + -0.02309868298470974, -0.038102176040410995, -0.012584065087139606, -0.00640235235914588, + 0.02734409272670746, 0.019020654261112213, -0.009145131334662437, 0.02524421364068985, + 0.017316404730081558, 0.02058795653283596, -0.012485157698392868, -0.041449811309576035, + 0.0033894807565957308, 0.007779447827488184, 0.02643110230565071, 0.022124825045466423, + 0.0226269718259573, -0.03527190163731575, -0.00791259203106165, 0.012393859215080738, + -0.028972262516617775, -0.03633705899119377, -0.0017223203321918845, 0.002584906993433833, + 0.014037243090569973, 0.009358162060379982, -0.009601626545190811, -0.005892599001526833, + -0.01605343259871006, 0.01987278088927269, 0.0401107557117939, -0.03247206285595894, + -0.010042905807495117, -0.01088742259889841, 0.03718918561935425, 0.013808995485305786, + 0.020633606240153313, -0.035424068570137024, -0.038406506180763245, -0.023798642680048943, + -0.01062113419175148, -0.005884990561753511, -0.03283726051449776, -0.02953527309000492, + -0.02017711102962494, -0.015627369284629822, 0.015231740660965443, 0.019857563078403473, + 0.017225105315446854, 0.014881760813295841, 0.03274596109986305, 0.027907105162739754, + 0.014197017066180706, -0.0027865259908139706, -0.020724905654788017, 0.0034085013903677464, + -0.0037147339899092913, -0.0342676118016243, -0.028683148324489594, 0.003594903741031885, + 0.01860980875790119, -0.021257484331727028, 0.01628168113529682, -0.003621532814577222, + -0.010126596316695213, 0.047049492597579956, -0.01766638457775116, 0.03770654648542404, + -0.018929356709122658, -0.020085811614990234, 0.002347148722037673, 0.004720926750451326, + 0.028667930513620377, 0.04345839098095894, 0.019842347130179405, 0.004089440684765577, + 0.0005829830770380795, -0.0051888348534703255, -0.0003571127890609205, 0.007262086030095816, + -0.016083866357803345, -0.0004346219648141414, -0.00928207952529192, 0.014387223869562149, + -0.006493651773780584, 0.01964453235268593, -0.03037218190729618, -0.010210287757217884, + -0.016753392294049263, -0.032502494752407074, 0.002434643916785717, 0.02475728467106819, + -0.01689034141600132, -0.007345777004957199, -0.00020589858468156308, -0.00598389795050025, + 0.017027290537953377, 0.024559469893574715, -0.005569247994571924, 0.008156056515872478, + 0.00607139291241765, -0.03402414917945862, 0.0005687176017090678, 0.01689034141600132, + -0.0036500636488199234, -0.00817127339541912, 0.010187462903559208, -0.008673418313264847, + -0.022033527493476868, -0.021577030420303345, 0.007178395055234432, -0.011785198003053665, + 0.007756622973829508, 0.01856415905058384, 0.00023847146076150239, 0.03323289006948471, + -0.014372006990015507, -0.010605917312204838, -0.0029367890674620867, 0.01406006794422865, + 0.08904709666967392, 0.008049541153013706, -0.03228946402668953, 0.0038992343470454216, + -0.0032867691479623318, 0.01127544417977333, -0.0013314458774402738, 0.0004465098900254816, + -0.015163266099989414, 0.01832069456577301, -0.006170300301164389, 0.008156056515872478, + 0.008376696147024632, 0.0020123852882534266, 0.03588056191802025, -0.014158975332975388, + 0.01629689708352089, -0.02507683075964451, -0.02242915704846382, -0.003728048410266638, + 0.014197017066180706, -0.03998902440071106, 0.029915686696767807, -0.02250523865222931, + 0.06293554604053497, -0.019355418160557747, -0.04939283803105354, -0.02804405428469181, + 0.01795549876987934, 0.0076653240248560905, -0.012926436960697174, -0.0226269718259573, + -0.01825982891023159, 0.026537617668509483, 0.029733087867498398, 0.04558870568871498, + -0.007380014285445213, 0.022124825045466423, -0.007764231413602829, 0.04062812030315399, + 0.0008877890650182962, -0.01707294024527073, 0.027481041848659515, -0.05319696664810181, + 0.05258830636739731, -0.03038739785552025, -0.0725523829460144, -0.011716723442077637, + 0.025578977540135384, 0.02255088835954666, 0.03922819718718529, 0.02124226838350296, + -0.02195744402706623, 0.02553332783281803, -0.0011583579471334815, 0.029885252937674522, + 0.036550089716911316, -0.007049054838716984, 0.018838057294487953, 0.033385053277015686, + 0.012135177850723267, -0.06890042126178741, 0.012972086668014526, 0.02553332783281803, + -0.04969716817140579, 0.019538016989827156, -0.019248902797698975, 0.03938036412000656, + -0.022961733862757683, -0.03402414917945862, 0.03712831810116768, -0.025944173336029053, + -0.007064271252602339, 0.006292032543569803, 0.01956845074892044, -0.0065583218820393085, + 0.021211834624409676, -0.004561153240501881, -0.02959613874554634, 9.040754957823083e-5, + -0.005957269109785557, 0.01364161353558302, 0.023905159905552864, 0.008338655345141888, + 0.006257795728743076, -0.04105418175458908, -0.005458928178995848, -0.002487901598215103, + 0.004663864616304636, 0.0043329051695764065, 0.021409649401903152, -0.012378642335534096, + 0.010788515210151672, 0.056483738124370575, 0.014630687423050404, 0.011655857786536217, + 0.0021189008839428425, -0.008612552657723427, 0.00771477771922946, -0.0395020954310894, + 0.04488874599337578, 0.011085237376391888, 0.03292855620384216, -0.035119738429784775, + 0.005968681536614895, 0.01074286550283432, 0.05210137739777565, 0.007943025790154934, + -0.03639792650938034, -0.003212588606402278, 0.006702878978103399, 0.035180602222681046, + -0.03575883060693741, 0.009031007066369057, -0.008711460046470165, -0.0330502912402153, + 0.03928906470537186, 0.03359808400273323, -0.011328701861202717, 0.017164239659905434, + -0.0038193475920706987, -0.02189657837152481, 0.0037223421968519688, 0.002208298072218895, + -0.010271153412759304, 0.058279287070035934, 0.05663590133190155, 0.02334214746952057, + 0.007524570915848017, 0.014455697499215603, 0.005211659241467714, -0.009943998418748379, + 0.0035093107726424932, -0.005044277757406235, -0.03317202255129814, -0.01927933655679226, + -0.023981241509318352, -0.01952280104160309, -0.009685317985713482, -0.017407704144716263, + 0.013497056439518929, 0.05992267280817032, 0.007376209832727909, 0.020101027563214302, + -0.023920375853776932, 0.02757234126329422, 0.003986729308962822, 0.007243065629154444, + 0.0023870922159403563, -0.0027199536561965942, 0.019142387434840202, -0.053501296788454056, + -0.031954701989889145, 0.027191927656531334, 0.023479096591472626, 0.00841473788022995, + 0.013732912950217724, 0.003326712641865015, 0.012119960971176624, 0.005158401560038328, + -0.052497006952762604, 0.0032163928262889385, 0.011206969618797302, 0.008604944683611393, + 0.013291633687913418, 0.0027960361912846565, 0.02734409272670746, 0.02673543244600296, + -0.0005844096303917468, 0.012294951826334, 0.025700708851218224, -0.028744013980031013, + 0.015977350994944572, 0.021455299109220505, 0.041145481169223785, -0.0017955498769879341, + 0.049331970512866974, -0.05806625634431839, -0.008148448541760445, 0.02279435284435749, + -0.02130313403904438, 0.027907105162739754, 0.0056757633574306965, -0.005592072382569313, + -0.006098022218793631, 0.03308072313666344, 0.007866943255066872, -0.012759055010974407, + -0.015148049220442772, 0.009350554086267948, 0.002037112135440111, 0.021105319261550903, + -0.0033894807565957308, -0.022033527493476868, -0.009335337206721306, 0.0408107191324234, + -0.007756622973829508, -0.015498029999434948, -0.013314458541572094, 0.014052459970116615, + -0.01909673772752285, -0.0006253040046431124, 0.019659748300909996, 0.020618390291929245, + 0.00852886214852333, -0.0013656830415129662, 0.01754465140402317, -0.002021895721554756, + -0.017635950818657875, -0.002390896435827017, 0.0329589918255806, -0.012119960971176624, + 0.01428831648081541, 0.024985533207654953, 0.032015565782785416, -0.009548368863761425, + 0.01623603142797947, -0.019248902797698975, -0.044919177889823914, 0.0162208154797554, + 0.004907329101115465, -0.02338779717683792, 0.01772725023329258, 0.020101027563214302, + 0.00195532338693738, 0.004507895093411207, 0.01193736307322979, 0.006303444970399141, + 0.0054551237262785435, -0.02757234126329422, -0.021942228078842163, 0.0607747957110405, + 0.006166496314108372, 0.028439683839678764, -0.028317950665950775, -0.04123678058385849, + 0.008216923102736473, -0.06323987245559692, -0.016799042001366615, 0.03222859650850296, + -0.03728048503398895, -0.01399159338325262, 0.046166934072971344, 0.0197510477155447, + 0.023479096591472626, 0.05003193020820618, 0.008506037294864655, -0.039532531052827835, + 0.0011631130473688245, 0.02338779717683792, 0.010590700432658195, 0.018366344273090363, + -0.00413509039208293, 0.025152914226055145, 0.026050688698887825, 0.0038478784263134003, + 0.012431900016963482, 0.017514219507575035, -0.01628168113529682, 0.03091997653245926, + -0.005763258319348097, 0.04452354833483696, -0.02793753892183304, -0.04348882660269737, + 0.0003395186795387417, -0.035424068570137024, 0.022824786603450775, 0.006432785652577877, + 0.010735257528722286, 0.014744811691343784, 0.016205597668886185, -0.027131062000989914, + -0.0008854115149006248, 0.022520454600453377, 0.001154553727246821, -0.023357363417744637, + 0.03761524707078934, -0.004903524648398161, -0.02107488550245762, -0.05204051360487938, + 0.04637996479868889, 0.0045953900553286076, -0.011769981123507023, -0.019659748300909996, + 0.004720926750451326, 0.01850329339504242, -0.0034237178042531013, 0.011587383225560188, + -0.011731940321624279, 0.007874551229178905, 0.028211435303092003, -0.025228997692465782, + -0.0362761914730072, 0.04047595337033272, 0.009274471551179886, -0.0162208154797554, + 0.047353822737932205, -0.03323289006948471, -0.014151367358863354, -0.05167531594634056, + -0.004408987704664469, -0.013808995485305786, 0.002411819063127041, -0.043367091566324234, + 0.033567652106285095, -0.03998902440071106, -0.073769710958004, -0.02249002270400524, + 0.030935192480683327, -0.008985357359051704, -0.03776741400361061, 0.04671472683548927, + -0.007943025790154934, -0.025807224214076996, -0.027435392141342163, 0.011450434103608131, + 0.019674966111779213, -0.010286370292305946, -0.031254738569259644, 3.0091270673437975e-5, + 0.025883307680487633, 0.03014393337070942, 0.016981640830636024, -0.013055777177214622, + 0.010963505133986473, 0.006851240061223507, 0.0047475555911660194, -0.007585437037050724, + -0.011754765175282955, 0.011815630830824375, -0.025381162762641907, 0.03317202255129814, + -0.0016833279514685273, -0.013938335701823235, 0.05115795508027077, -0.014760028570890427, + 0.0011507496237754822, -0.009479894302785397, -0.06211385130882263, 0.004899720661342144, + -0.008536470122635365, 0.06050090119242668, -0.012013445608317852, 0.013679655268788338, + 0.004291059914976358, 0.013976377435028553, -0.019111953675746918, -0.011556950397789478, + -0.010917856357991695, 0.015977350994944572, 0.004614410921931267, 0.022398723289370537, + -0.010362452827394009, -0.0033000835683196783, -0.0018098152941092849, 0.01313186064362526, + 0.0329589918255806, 0.04817551374435425, -0.0210140198469162, 0.021927010267972946, + -0.03676312044262886, 0.01897500455379486, 0.041449811309576035, 0.024574685841798782, + 0.020740121603012085, -0.02124226838350296, 0.011944971047341824, -5.655672794091515e-5, + -0.014927409589290619, -0.011944971047341824, -0.026005038991570473, 0.021394433453679085, + 0.020314060151576996, 0.029017910361289978, -0.01095589715987444, 0.019309768453240395, + 0.014067676849663258, -0.01670774258673191, 0.010332019999623299, -0.00534099992364645, + -0.014607863500714302, -0.01065156701952219, -0.035058870911598206, -0.043062761425971985, + 0.017285970970988274, 0.02416384033858776, 0.0009386693127453327, 0.011435218155384064, + 0.017514219507575035, -0.00645941449329257, -0.016981640830636024, 0.052070945501327515, + -0.031041709706187248, -0.010773299261927605, -0.013649222441017628, 0.030767811462283134, + -0.0011364840902388096, 0.0484798438847065, -0.018229395151138306, -0.039836861193180084, + -0.02256610430777073, 0.05073188990354538, -0.03956296294927597, 0.023646477609872818, + 0.03055478073656559, -0.038102176040410995, -0.015886051580309868, 0.0388021357357502, + 0.0194010678678751, 0.00495297834277153, -0.027770156040787697, 0.010210287757217884, + 0.03222859650850296, 0.006836023181676865, -0.045862603932619095, 0.032502494752407074, + 0.002991948975250125, 0.03676312044262886, 0.005458928178995848, -0.0034750737249851227, + -0.003123191650956869, -0.020572740584611893, 0.029398323968052864, -0.023768210783600807, + -0.019964080303907394, -0.033932849764823914, -0.04397575557231903, 0.002815056825056672, + 0.006874064914882183, 0.023722561076283455, -0.015315431170165539, -0.005226876121014357, + 0.036884855479002, 0.030889544636011124, 0.0014465207932516932, -0.001219223951920867, + 0.001510240021161735, 0.006059980485588312, 0.0011726233642548323, -0.010750474408268929, + 0.0018079133005812764, -0.00984509103000164, 0.0069653638638556, 0.005131772719323635, + -0.011610208079218864, 0.00788215920329094, -0.01658601127564907, -0.020664039999246597, + 0.04519307613372803, -0.028378818184137344, 0.02326606586575508, 0.017742466181516647, + -0.026705000549554825, 0.005508381873369217, -0.00948750227689743, 0.014402439817786217, + 0.025411594659090042, 0.03158950433135033, -0.04589303582906723, -0.003359047695994377, + 0.011960187926888466, -0.01462307944893837, -0.005299154669046402, 0.04415835440158844, + -0.02792232111096382, -0.018062014132738113, -0.004119873978197575, 0.0197510477155447, + 0.027237577363848686, 0.006299640983343124, 0.011914538219571114, -0.016692526638507843, + 0.007889768108725548, 0.039471663534641266, 0.011625424027442932, -0.012599281966686249, + -0.022870436310768127, -0.011678681708872318, -0.04653213173151016, -0.02238350734114647, + -0.03922819718718529, -0.006999601144343615, 0.038710836321115494, -0.002664793748408556, + -0.007109920959919691, -0.022703053429722786, -0.009160347282886505, 0.010818948969244957, + -0.0009129914687946439, -0.00087067048298195, -0.016129516065120697, 0.009350554086267948, + -0.005668155383318663, 0.0015539875021204352, 0.020877070724964142, -0.0035112129990011454, + -0.012378642335534096, 0.013770954683423042, -0.019172819331288338, -0.017757683992385864, + -0.008003891445696354, -0.005858361721038818, 0.01711858995258808, 0.032502494752407074, + 0.003771795891225338, -0.010697216726839542, -0.012850354425609112, 0.04762772098183632, + 0.0011536027304828167, -0.033871982246637344, -0.0039030383341014385, -0.0013000618200749159, + -0.024589903652668, -0.006455610506236553, -0.005626309663057327, 0.017985930666327477, + -0.02953527309000492, -0.01860980875790119, -0.025563759729266167, 0.004945370368659496, + 0.00799628347158432, 0.002567788353189826, 0.023311715573072433, 0.00862016063183546, + 0.00015192748105619103, 0.002316715894266963, 0.015612153336405754, 0.015117616392672062, + -0.038528237491846085, 0.0037756001111119986, 0.004907329101115465, -0.02524421364068985, + 0.006759940646588802, 0.001090834615752101, 0.00102140917442739, -0.06463979184627533, + 0.03721961751580238, -0.02501596510410309, -0.02948962338268757, -0.012485157698392868, + -0.004287255462259054, 0.007486529648303986, 0.008148448541760445, -0.010636350139975548, + 0.03740221634507179, 0.0291244275867939, -0.0005102290888316929, 0.014006810262799263, + 0.005964877549558878, 0.016722960397601128, 0.01927933655679226, 0.053501296788454056, + 0.009525544010102749, 0.010902639478445053, -0.006417568773031235, -0.007688148878514767, + -0.00827018078416586, 0.00897774938493967, 0.03585013002157211, 0.0003668608842417598, + -0.03332418575882912, 0.0063528986647725105, -0.019294552505016327, -0.007166982628405094, + 0.0204053595662117, 0.007341973017901182, 0.01611429825425148, -0.015946917235851288, + -0.0021360195241868496, -0.02799840457737446, -0.018244612962007523, -0.019948862493038177, + 0.0026571855414658785, -0.02112053520977497, -0.03280682489275932, 0.0027066392358392477, + -0.00047789394739083946, 0.01868589222431183, -0.018761973828077316, 0.016555577516555786, + -0.01297969464212656, -0.005557835567742586, -0.001552085392177105, -0.009274471551179886, + 0.021196618676185608, -1.876803617051337e-5, -0.02189657837152481, -0.0014379614731296897, + -0.0022063960786908865, 0.005078515037894249, 0.0063262698240578175, -0.015612153336405754, + 0.03472410887479782, 0.003925863187760115, 0.017803333699703217, 0.019203253090381622, + -0.014927409589290619, -0.030661296099424362, 0.00833104643970728, -0.01915760338306427, + 0.017316404730081558, -0.01868589222431183, -0.010933072306215763, 0.018214179202914238, + 0.018883707001805305, -0.019735831767320633, -0.05992267280817032, -0.022748703137040138, + -0.025457244366407394, -0.0204053595662117, -0.0090690478682518, 0.004157915245741606, + -0.0242855716496706, -0.016570795327425003, -0.036610957235097885, 0.019538016989827156, + 0.006505064200609922, -0.005961073096841574, 0.008483212441205978, -0.042819298803806305, + -0.0007798468577675521, -0.0158251840621233, -0.017164239659905434, -0.017270755022764206, + -0.005755650345236063, -0.006550713442265987, -0.016966424882411957, -0.0004431812558323145, + -0.018716324120759964, -0.019127171486616135, -0.008894057944417, 0.03992816060781479, + 0.009449461475014687, 0.013504665344953537, 0.010286370292305946, 0.02734409272670746, + -0.0004251116479281336, -0.0015073869144544005, -0.018122879788279533, -0.010773299261927605, + 0.01587083376944065, 0.01803158037364483, -0.012614498846232891, -0.024559469893574715, + -0.008521253243088722, -0.017529435455799103, -0.00016060566122177988, 0.05742716044187546, + -0.0001818850141717121, 0.0038497806526720524, 0.00699579669162631, 0.0016899851616472006, + 0.01576431840658188, -0.00963966827839613, -0.007836509495973587, 0.0014018223155289888, + 0.0033780683297663927, -0.02083142101764679, 0.00043390868813730776, -0.006817002780735493, + 0.004294863902032375, 0.027526691555976868, 0.019598882645368576, 0.0005525500164367259, + 0.023083467036485672, -0.014508955180644989, 0.015855617821216583, -0.017590301111340523, + 0.003277258947491646, -0.03158950433135033, 0.014478522352874279, -0.03198513388633728, + -0.0029253766406327486, 0.01157977432012558, 0.05271003767848015, -0.001397067098878324, + -0.023798642680048943, 0.005786083173006773, -0.02489423379302025, 0.016099082306027412, + 0.0071974159218370914, -0.006702878978103399, 0.00820170622318983, 0.017316404730081558, + -0.02046622522175312, 0.013740520924329758, -0.007094704546034336, -0.009708141908049583, + 0.05161444842815399, -0.004066615831106901, 0.04172370955348015, 0.008703852072358131, + 0.017392486333847046, 0.0033057897817343473, -0.025518110021948814, -0.030448265373706818, + -0.010126596316695213, -0.022231342270970345, 0.003456053091213107, -0.0028892375994473696, + -0.025822442024946213, 0.011146103963255882, -0.023205198347568512, 0.007128941360861063, + 0.019918430596590042, -0.0223226398229599, 0.007768035400658846, -0.010339627973735332, + 0.014820894226431847, 0.04190630838274956, 0.011328701861202717, -0.004736143164336681, + 0.015452380292117596, -0.0065469094552099705, -0.02107488550245762, 0.0051888348534703255, + -0.007284910883754492, -0.01381660345941782, -0.01623603142797947, -0.018168529495596886, + -0.0011098552495241165, 0.017575085163116455, -0.021379215642809868, 0.003313397988677025, + 0.003212588606402278, -0.000359965895768255, -0.0002815056941471994, -0.008741892874240875, + 0.005017648916691542, 0.005401866044849157, -0.0317416675388813, -0.03268509358167648, + 0.01742292009294033, -0.015733886510133743, -0.010309195145964622, 0.0045839776284992695, + -0.00677135307341814, -0.021516164764761925, -0.027648424729704857, -0.026157204061746597, + 0.006661033257842064, 0.016555577516555786, -0.008726676926016808, -0.025944173336029053, + 0.018275044858455658, -0.002101782476529479, 0.009122306481003761, 0.02501596510410309, + -0.028561415150761604, 0.003406599396839738, 0.017681600525975227, 0.010735257528722286, + 0.031193874776363373, -0.015170874074101448, 0.02005537785589695, 0.021287916228175163, + -0.02977873757481575, -0.011587383225560188, 0.027465825900435448, 0.044736579060554504, + 0.006170300301164389, 0.014356790110468864, 0.0249398835003376, 0.0029215726535767317, + 0.009228821843862534, -0.0020295039284974337, -0.0038022289518266916, 0.00205232878215611, + -0.01605343259871006, 0.021531380712985992, -0.0453452430665493, 0.007646303158253431, + 0.021866144612431526, -0.020390141755342484, -0.005105143878608942, 0.02769407443702221, + 0.01666209287941456, -0.03773697838187218, 0.028865745291113853, -0.02113575115799904, + -0.01854894310235977, -0.017864199355244637, -0.02017711102962494, -0.00408563669770956, + -0.0028245672583580017, 0.005637722089886665, -0.030220016837120056, 0.01605343259871006, + 0.026111554354429245, -0.004154111258685589, 0.0043291011825203896, -0.008597335778176785, + -0.012287342920899391, 0.0275114756077528, -0.036489225924015045, -0.007516962941735983, + -0.005432298872619867, 0.003547352273017168, 0.014600254595279694, -0.00862016063183546, + -0.0050252568908035755, -0.021196618676185608, 0.011450434103608131, 0.015300215221941471, + 0.005382845178246498, 0.02565505914390087, 0.015733886510133743, 0.032198164612054825, + 0.0008302516071125865, 0.009989648126065731, -0.012462332844734192, 0.012812313623726368, + -0.018716324120759964, -0.009502719156444073, -0.0021531381644308567, 0.010225503705441952, + -0.025928957387804985, -0.020572740584611893, 0.017681600525975227, 0.0226269718259573, + -0.026887597516179085, -0.023083467036485672, -0.01574910245835781, 0.003963904455304146, + -0.023418230935931206, -0.002649577334523201, -0.028744013980031013, -0.006193125154823065, + 6.99009106028825e-5, -0.049210239201784134, 0.013862253166735172, 0.016859909519553185, + -7.48343882150948e-5, 0.028896179050207138, 0.009898348711431026, 0.020846636965870857, + -0.010027688927948475, 0.012462332844734192, -0.0004039511550217867, 0.0012553632259368896, + ], + index: 22, + }, + { + title: "Iron-sulfur protein", + text: "Iron-sulfur proteins are proteins characterized by the presence of iron-sulfur clusters containing sulfide-linked di-, tri-, and tetrairon centers in variable oxidation states. Iron-sulfur clusters are found in a variety of metalloproteins, such as the ferredoxins, as well as NADH dehydrogenase, hydrogenases, Coenzyme Q - cytochrome c reductase, Succinate - coenzyme Q reductase and nitrogenase.", + vector: [ + 0.0017397718038409948, 0.024693535640835762, -0.027004428207874298, 0.030134037137031555, + -0.0013097807532176375, -0.006054538302123547, 0.012346767820417881, -0.06491626799106598, + 0.02242225967347622, 0.030398139730095863, -0.033567361533641815, 0.008332417346537113, + 0.04101504012942314, 0.018632395192980766, 0.03142813593149185, 0.025102894753217697, + -0.003322733100503683, 0.008325815200805664, -0.018183421343564987, 0.00779761141166091, + 0.03924555703997612, -0.002695490838959813, -0.05551423877477646, 0.02038867399096489, + 0.0066850814037024975, -0.012696702964603901, -0.005047649145126343, 0.028417373076081276, + -0.10770078748464584, 0.053639113903045654, 0.04109426960349083, -0.010821579024195671, + 0.008517289534211159, 0.007791008800268173, -0.01397099532186985, -0.029869934543967247, + 0.013066445477306843, -0.005965403746813536, 0.021511107683181763, -0.008636134676635265, + -0.027281735092401505, -0.0438409298658371, 0.008048508316278458, 0.01898893341422081, + -0.005737615749239922, 0.04072452709078789, -0.019530342891812325, -0.0038723954930901527, + 0.02565750852227211, -0.009415236301720142, 0.005394283216446638, 0.004935405682772398, + -0.06370139867067337, 0.021735593676567078, 0.01867200993001461, 0.005691397935152054, + -0.01898893341422081, 0.0768536776304245, 0.014050225727260113, -0.01873803697526455, + -0.024733150377869606, 0.02412571758031845, -0.028998399153351784, -0.029896344989538193, + 0.03774017468094826, -0.0039285169914364815, -0.032035570591688156, -0.027730708941817284, + 0.007691970560699701, -0.007025112863630056, -0.017509961500763893, 0.010181131772696972, + 0.0104782460257411, -0.04106786102056503, -0.01995290443301201, 0.05186963081359863, + 0.0007498020422644913, 0.03253736346960068, 0.014538814313709736, -0.05614808201789856, + -0.0106367077678442, -0.0037535494193434715, -0.0051499889232218266, 0.004318067338317633, + -0.009454851038753986, -0.017179833725094795, -0.011726127937436104, -0.03715914860367775, + 0.04584810510277748, 0.04259965196251869, 0.006886459421366453, 0.003697427920997143, + 0.0002812273451127112, 0.019200215116143227, 0.04426349326968193, -0.031401727348566055, + 0.09555210173130035, 0.03961529955267906, 0.052107322961091995, 0.018632395192980766, + -0.03887581452727318, -0.0311112143099308, -0.0022234085481613874, -0.025881994515657425, + 0.0628562718629837, -0.01152805145829916, -0.03187711164355278, 0.020850852131843567, + -0.014657660387456417, 0.08678391575813293, -0.001743073109537363, -0.05519731715321541, + -0.006411075592041016, 0.002711997367441654, 0.013944584876298904, -0.030134037137031555, + -0.003558774245902896, -0.01397099532186985, -0.018275856971740723, 0.06121883913874626, + 0.040803756564855576, -0.0014979534316807985, 0.041569653898477554, 0.03594427928328514, + -0.061324480921030045, 0.06882497668266296, 0.026264943182468414, -0.008616327308118343, + 0.007546714507043362, 0.006269121076911688, -0.03222044184803963, -0.009956644847989082, + 0.052688345313072205, -0.02623853273689747, -0.019147394225001335, 0.005004732869565487, + -0.013125868514180183, 0.02115456946194172, 0.016545990481972694, -0.0039087096229195595, + -0.06391268223524094, -0.019781239330768585, -0.020401878282427788, 0.0451086200773716, + 0.08266392350196838, 0.005183001514524221, -0.03779299557209015, 0.0381099171936512, + 0.01390497013926506, -0.06697626411914825, -0.006100756116211414, 0.023782383650541306, + 0.04629707708954811, -0.06518036872148514, 0.030820701271295547, 0.055725518614053726, + -0.010458438657224178, -0.004859476815909147, 0.0168232973664999, -0.015925349667668343, + 0.003187380963936448, 0.026278147473931313, -0.009606709703803062, 0.008999275043606758, + -0.018711626529693604, -0.011072475463151932, -0.009435043670237064, -0.05300527065992355, + -0.00695248506963253, -0.0064341844990849495, 0.009771773591637611, -0.031586598604917526, + 0.002969496650621295, -0.030398139730095863, 0.014723685570061207, 0.018381498754024506, + 0.0004803354968316853, 0.0024132318794727325, 0.05609526112675667, 0.04310144484043121, + 0.0013956140028312802, 0.03924555703997612, -0.020098160952329636, -0.010418823920190334, + 0.0438409298658371, 0.04711579531431198, 0.004651496186852455, 0.024350203573703766, + 0.008530493825674057, -0.017193039879202843, 0.014393558725714684, -0.011732731014490128, + 0.03853248059749603, 0.024310588836669922, -0.010240554809570312, 0.008715366013348103, + -0.008986069820821285, 0.027836348861455917, -0.006123865023255348, -0.08525212109088898, + -0.013508817180991173, -0.04241478070616722, 0.010722540318965912, 0.00905209593474865, + 0.04101504012942314, 0.036419663578271866, 0.010603695176541805, -0.0015631536953151226, + 0.01772124320268631, 0.03163941949605942, 0.00689306203275919, -0.03462377190589905, + -0.04624425992369652, 0.010537669062614441, -0.02147149108350277, 0.0012602616334334016, + 0.00030474894447252154, 0.021563926711678505, -0.009745363146066666, 0.020969698205590248, + 0.003433325793594122, 0.04278452321887016, 0.052239373326301575, 0.014684070833027363, + 0.021748797968029976, 0.008167354390025139, -0.014406763948500156, 0.008754980750381947, + -0.029817113652825356, -0.004866078961640596, 0.019015343859791756, 0.017259065061807632, + 0.028945578262209892, -0.00681383116170764, -0.0546162910759449, 0.00047579623060300946, + 0.0021012614015489817, -0.03074147179722786, -0.0495455339550972, -0.00790325179696083, + 0.033118389546871185, 0.05931730568408966, -0.019226625561714172, -0.0019477522000670433, + -0.04777605086565018, 0.03200916200876236, -0.012293947860598564, -0.03142813593149185, + -0.02089046686887741, 0.03377864509820938, -0.04009068012237549, -0.00757312448695302, + 0.013224907219409943, 0.011343180201947689, 0.018064575269818306, 0.04090939834713936, + 0.013106061145663261, -0.0222373865544796, -0.007348638027906418, 0.03671017661690712, + -0.0042652469128370285, -0.007850431837141514, 0.047591179609298706, -0.0336465947329998, + 0.015093429014086723, 0.006731299217790365, 0.024878406897187233, -0.046455539762973785, + -0.014155866578221321, -0.003634703578427434, 0.04352400824427605, -0.006965689826756716, + -0.03219403326511383, 0.0051499889232218266, 0.001403867150656879, -0.0020946587901562452, + -0.0013815835118293762, 0.023174948990345, 0.008840814232826233, 0.023465462028980255, + 0.0024908119812607765, 0.020335853099822998, 0.0041695102117955685, -0.021313030272722244, + 0.025802765041589737, -0.008787993341684341, -0.004096881952136755, 0.006123865023255348, + -0.033884286880493164, -0.04154324159026146, -0.019068162888288498, -0.0323789045214653, + 0.02685917168855667, -0.023584308102726936, 0.01168651320040226, 0.004625086206942797, + -0.0009293088805861771, 0.028470193967223167, 0.02305610291659832, 0.09127365052700043, + 0.005229219328612089, 0.0011554461671039462, -0.016942143440246582, 0.011138501577079296, + 0.035284027457237244, 0.0026030552107840776, -0.0412791408598423, 0.023095719516277313, + 0.01346259843558073, -0.06972292810678482, -0.02802122011780739, 0.02413892187178135, + -0.025300970301032066, 0.0022613732144236565, 0.015397146344184875, -0.051790401339530945, + 0.03692145645618439, -0.029737884178757668, 0.0014319280162453651, -0.026634685695171356, + 0.026264943182468414, 0.007632547523826361, -0.07199420034885406, 0.008074918761849403, + 0.026212122291326523, -0.018143806606531143, -0.020164186134934425, 0.0565178245306015, + 0.0023901229724287987, -0.051156554371118546, 0.016545990481972694, 0.007276009768247604, + -0.020718801766633987, 0.02660827524960041, 0.008840814232826233, -0.044554006308317184, + -0.06586703658103943, 0.00646389601752162, -0.040750935673713684, -0.019966110587120056, + 0.0037667546421289444, -0.02744019590318203, 0.00017465806740801781, -0.019279444590210915, + 0.05609526112675667, -0.008206969127058983, 0.019860468804836273, 0.02343905158340931, + -0.01860598474740982, -0.07627265155315399, 0.0006350827752612531, 0.028549425303936005, + -0.028285322710871696, -0.06945881992578506, 0.009269979782402515, 0.012406190857291222, + 0.02050752006471157, -0.029817113652825356, 0.0050080339424312115, -0.04576887562870979, + -0.02293725684285164, -0.009435043670237064, 0.02470674179494381, 0.01988687925040722, + 0.004390695597976446, 0.018592780455946922, -0.012756126001477242, 0.028945578262209892, + -0.011098885908722878, -0.04450118541717529, -0.04178093373775482, 0.021933671087026596, + 0.03253736346960068, 0.06956446170806885, -0.0276250671595335, -0.031005574390292168, + -0.0038294787518680096, -0.008345622569322586, -0.03396351635456085, 0.0244558434933424, + 0.04872681573033333, 0.019319061189889908, -0.0857275053858757, -0.017008168622851372, + 0.06702908128499985, -0.012379780411720276, 0.013297535479068756, -0.038638122379779816, + -0.02450866438448429, -0.005539539270102978, -0.07204702496528625, -0.010095298290252686, + 0.015648042783141136, 0.002632766729220748, 0.04679887369275093, -0.040988627821207047, + -0.041252732276916504, 0.037634532898664474, -0.015898939222097397, 0.003433325793594122, + -0.026080071926116943, 0.047591179609298706, -0.0704624131321907, 0.00385919027030468, + -0.010247156955301762, -0.05873628333210945, -0.011257347650825977, -0.026330968365073204, + 0.015331120230257511, 0.020296238362789154, -0.004199221730232239, -0.04428990185260773, + 0.010035875253379345, 0.0020831043366342783, 0.013601252809166908, -0.016876116394996643, + -0.013422983698546886, 0.035099152475595474, 0.008721968159079552, -0.008385238237679005, + 0.03317121043801308, 0.0026047059800475836, -0.02388802543282509, -0.01917380467057228, + 0.0476175881922245, 0.028866346925497055, 0.01663842611014843, -0.009375620633363724, + 0.025129303336143494, 0.004248740617185831, -0.046006567776203156, 0.011303565464913845, + -0.045504771173000336, -0.010616900399327278, -0.00835222564637661, 0.024733150377869606, + 0.013720097951591015, -0.0052490271627902985, 0.0012833706568926573, 0.015304709784686565, + -0.02293725684285164, 0.054140906780958176, -0.023346615955233574, -0.0038955044001340866, + -0.0374760739505291, 0.018051370978355408, 0.03079429268836975, -0.007348638027906418, + 0.006361556705087423, 0.02883993647992611, 0.003377204295247793, -0.06787420809268951, + -0.010082093067467213, 0.010425426065921783, 0.019398290663957596, -0.007130753714591265, + -0.002617910970002413, -0.01374650839716196, 0.04178093373775482, 0.03264300525188446, + -0.020428288727998734, -0.00147732044570148, -0.03531043604016304, 0.00010811675019795075, + 0.05313732102513313, 0.014802916906774044, 0.011349783279001713, 0.02185443975031376, + -0.015780093148350716, 0.03884940221905708, 0.004598675761371851, -0.01834188401699066, + -0.02501045912504196, 0.002370315371081233, 0.010108503513038158, -0.02217136137187481, + -0.001405517803505063, 0.007982482202351093, 0.011501641944050789, 0.016149837523698807, + 0.024878406897187233, 0.028364554047584534, -0.04545195400714874, -0.012525036931037903, + 0.016981758177280426, 0.04186016693711281, 0.023518282920122147, 0.05429936945438385, + 0.011442218907177448, 0.04737989604473114, 0.022633539512753487, -0.016981758177280426, + -0.03142813593149185, -0.029130449518561363, 0.030134037137031555, -0.015515991486608982, + 0.0013972645392641425, 0.010663118213415146, -0.004661399871110916, 0.016030991449952126, + 0.016215862706303596, 0.00907850544899702, 0.005622071214020252, 0.04928142949938774, + -0.038268379867076874, 0.0076787653379142284, 0.01720624417066574, -0.019081369042396545, + -0.007586329709738493, 0.020850852131843567, 0.007817419245839119, -0.06370139867067337, + -0.023650333285331726, -0.005087264347821474, -0.019517136737704277, 0.009910427033901215, + 0.038902223110198975, -0.01041222084313631, -0.0324053131043911, 0.04394657164812088, + 0.02388802543282509, 0.02965865284204483, 0.006671876646578312, -0.025433020666241646, + 0.01690252684056759, -0.02120739035308361, -0.014116250909864902, -0.039536066353321075, + -0.018368292599916458, 0.04146401211619377, 0.033435311168432236, 0.020877262577414513, + -0.011263949796557426, -0.002116117160767317, -0.026687506586313248, 0.010709336027503014, + 0.030503779649734497, 0.034201208502054214, 0.0022663252893835306, 0.02947378158569336, + 0.010458438657224178, 0.02172238938510418, -0.031533777713775635, -0.011158308945596218, + -0.02287123166024685, -0.01140260323882103, -0.027836348861455917, -0.015608427114784718, + 0.002943086437880993, -0.04769681766629219, 0.011495038866996765, 0.016215862706303596, + -0.01968880370259285, 0.011613884940743446, 0.002142527373507619, -0.029579423367977142, + 0.038955044001340866, -0.02273918129503727, 0.00511367479339242, -0.030635830014944077, + 0.0009169291006401181, -0.009263377636671066, 0.02052072435617447, -0.029764294624328613, + 0.028047630563378334, 0.05131501704454422, -0.00579373724758625, -0.013297535479068756, + 0.005381077993661165, -0.040671706199645996, 0.012868368998169899, -0.011996832676231861, + 0.018566370010375977, 0.0046911113895475864, -0.0055857570841908455, 0.06761010736227036, + -0.002456148387864232, -0.017813678830862045, 0.017919320613145828, -0.014433173462748528, + -0.01766842231154442, -0.04465964809060097, -0.016598809510469437, 0.006655369885265827, + -0.000272974168183282, 0.0033706016838550568, -0.007058125454932451, -0.013759713619947433, + -0.023003283888101578, -0.007665560115128756, 0.012848561629652977, -0.0015466472832486033, + -0.02013777755200863, 0.033303260803222656, 0.003324383869767189, 0.0048330663703382015, + 0.007526906672865152, -0.027915580198168755, -0.009441645815968513, 0.015317915007472038, + 0.030635830014944077, 0.025895200669765472, 0.020415084436535835, -0.04611220583319664, + 0.019464315846562386, 0.047802459448575974, 0.01784008927643299, -0.012293947860598564, + 0.009164338931441307, 0.010709336027503014, 0.013198496773838997, -0.01181856356561184, + 0.03969452902674675, 0.014287917874753475, 0.0317450575530529, 0.019979314878582954, + -0.0012239476200193167, 0.01315227895975113, 0.008266392163932323, -0.027413787320256233, + 0.024059690535068512, 0.02502366341650486, 0.04267888143658638, 0.006080948282033205, + -0.011389398016035557, 0.00689306203275919, -0.01677047647535801, -0.02210533618927002, + -0.005975307431071997, 0.01076215598732233, -0.003167573129758239, -0.03105839341878891, + -0.03660453483462334, 0.014169071801006794, -0.020745210349559784, 0.0012817200040444732, + 0.010280169546604156, 0.012234524823725224, 0.004308163654059172, 0.0035158577375113964, + -0.004288355819880962, -0.0016778729623183608, 0.041120678186416626, -0.05348065122961998, + -0.00581354508176446, 0.026330968365073204, 0.014129456132650375, -0.014934967271983624, + 0.0010349496733397245, 0.006807228550314903, 0.011131898500025272, 0.0034795436076819897, + 0.007025112863630056, -0.0035554729402065277, 0.022329824045300484, -0.00853709690272808, + -0.025116099044680595, -0.0203226488083601, 0.041886575520038605, -0.01140260323882103, + 0.01339657325297594, -0.00779761141166091, -0.012492024339735508, -0.02279200218617916, + -0.007005305029451847, 0.03232608363032341, -0.005232520867139101, 0.014987788163125515, + -0.029447371140122414, 0.02217136137187481, -0.04653476923704147, -0.04428990185260773, + -0.03142813593149185, 0.014063430950045586, -0.012379780411720276, -0.006011621560901403, + 0.013865354470908642, 0.034835051745176315, 0.0016465107910335064, -0.03087352216243744, + -0.03224685415625572, 0.005430597346276045, 0.021933671087026596, 0.018394703045487404, + -0.018011756241321564, -0.012676895596086979, 0.02560468763113022, -0.03866453096270561, + -0.015846120193600655, 0.01098664291203022, -0.0020913577172905207, -0.01346259843558073, + -0.003383806673809886, -0.022395849227905273, 0.003710632910951972, -0.0077778035774827, + 0.019530342891812325, -0.015199069865047932, -0.056623466312885284, -0.013825738802552223, + 0.024931227788329124, 0.018896497786045074, 0.016308298334479332, 0.042150676250457764, + 0.017311885952949524, -0.013667277991771698, -0.0016085461247712374, -0.03259018436074257, + 6.762455450370908e-5, -0.004935405682772398, 0.015489581972360611, -0.00779761141166091, + 0.003400313202291727, -0.00315931998193264, 0.0010745649924501777, 0.06755729019641876, + -0.03232608363032341, 0.015991374850273132, 0.0016729210037738085, 0.0044402144849300385, + 0.03332966938614845, 0.028153272345662117, -0.010247156955301762, 0.014023815281689167, + 0.00848427601158619, 0.01045183651149273, -0.011693115346133709, -0.01187798660248518, + 9.527272777631879e-5, 0.01720624417066574, 0.005833352450281382, 0.04542554169893265, + -0.026766736060380936, 0.020547134801745415, -0.023650333285331726, 0.04159606248140335, + -0.0009664482204243541, 0.027598658576607704, 0.013891764916479588, -0.01000286266207695, + 0.01327772717922926, -0.0016035942826420069, -0.018817266449332237, 0.04872681573033333, + -0.029447371140122414, -0.00940203107893467, -0.014697276055812836, 0.04751194640994072, + -0.012624074704945087, 0.020877262577414513, 0.052107322961091995, -0.02419174276292324, + -0.014499199576675892, -0.022976873442530632, -0.050839632749557495, -0.01123753935098648, + 0.013865354470908642, -0.013548431918025017, 0.012518433853983879, 0.06454652547836304, + -0.003045425983145833, -0.011891191825270653, -0.004126593470573425, 0.042203497141599655, + 0.01438035350292921, -0.0005112849175930023, -0.006384665612131357, -0.034254029393196106, + -0.009976452216506004, -0.006794023793190718, -0.007322227582335472, 0.047987330704927444, + 0.0038922030944377184, 0.018830472603440285, -0.039351195096969604, 0.016413938254117966, + -0.01537073589861393, 0.007982482202351093, 0.023954050615429878, 0.01362766232341528, + -0.022897642105817795, 0.026212122291326523, -0.04386734217405319, 0.001316383364610374, + 0.030715061351656914, -0.0355481281876564, 0.028734296560287476, -0.01860598474740982, + -0.01537073589861393, -0.009065301157534122, 0.018526755273342133, -0.013449394144117832, + 0.035785820335149765, 0.038136325776576996, 0.05746859312057495, 0.01612342707812786, + -0.03362018242478371, -0.004067170433700085, -0.010689527727663517, 0.00157965999096632, + 0.018909702077507973, 0.0029513398185372353, -0.01873803697526455, 0.02692519687116146, + 0.029896344989538193, -0.0032913710456341505, -0.03156018629670143, -0.05086604133248329, + -0.001427801325917244, -0.011970422230660915, -0.006378063000738621, -0.03760812431573868, + 0.02192046493291855, 0.08139622956514359, -0.007599534932523966, -0.013079650700092316, + -0.0002368664718233049, -0.0034201208036392927, 0.022752385586500168, 0.00975196622312069, + 0.008200366981327534, 0.0035554729402065277, -0.014552019536495209, 0.0279419906437397, + 0.032167620956897736, -0.01397099532186985, 0.03929837420582771, 0.006860048975795507, + 0.03377864509820938, -0.012392985634505749, -0.0021969983354210854, -0.02083764784038067, + 0.014406763948500156, 0.007236394565552473, -0.01327112503349781, 0.028417373076081276, + 0.01695534773170948, 0.013165484182536602, 0.0022102035582065582, -0.019992521032691002, + 0.05488039180636406, -0.027783529832959175, -0.01988687925040722, -0.03163941949605942, + 0.0035389666445553303, 0.031533777713775635, -0.024178536608815193, 0.022659949958324432, + 0.03626120463013649, 0.034967102110385895, 9.599488112144172e-5, -0.020362263545393944, + 0.04212426766753197, -0.0362083837389946, -0.035970691591501236, 0.011904397048056126, + -0.013535226695239544, -0.035151973366737366, 0.04603297635912895, -0.018460728228092194, + 0.023531487211585045, 0.004380791913717985, 0.004215728025883436, 0.05593680217862129, + -0.001165349967777729, 0.018619190901517868, 0.004116689786314964, -0.020415084436535835, + 0.005430597346276045, -0.01162709016352892, -0.005219315644353628, -0.0025898502208292484, + 0.014842531643807888, -0.0004035808378830552, -0.031348906457424164, -0.004885886795818806, + -0.001365077099762857, 0.00946145411580801, -0.027070453390479088, 0.040301963686943054, + 0.007784406188875437, -0.03486146405339241, 0.03182429075241089, 0.004186016507446766, + -0.005602263379842043, 0.02305610291659832, 0.025815969333052635, -0.009857607074081898, + -0.011263949796557426, -0.024680331349372864, -0.02248828485608101, -0.03169224038720131, + 0.02617250755429268, 0.04331272467970848, 0.012723113410174847, 1.4804154488956556e-5, + 0.052556294947862625, 0.018645599484443665, -0.0238220002502203, -0.012115678749978542, + -0.0008315086015500128, 0.017457140609622, -0.031797878444194794, -0.057891156524419785, + 0.013706893660128117, -0.02947378158569336, 0.013409778475761414, -0.02235623262822628, + 0.004905694629997015, 0.0009796533267945051, 0.007962674833834171, 0.014829326421022415, + 0.0016572399763390422, -0.0380835086107254, -0.009613312780857086, 0.0037766583263874054, + -0.0041596065275371075, 0.01257125474512577, 0.025551866739988327, 0.01637432351708412, + 0.01175253838300705, -0.03898145258426666, 0.01595176011323929, 0.02812686190009117, + -0.014974582940340042, -0.035099152475595474, -0.0007894173613749444, 0.011158308945596218, + -0.005219315644353628, -0.041754525154829025, -0.03156018629670143, -0.034069158136844635, + 0.040169913321733475, -0.00549332145601511, -0.021418672055006027, -0.02820609323680401, + 0.019596368074417114, 0.03541607782244682, -0.01123753935098648, 0.0032946723513305187, + 0.003585184458643198, 0.04241478070616722, -0.002895218087360263, 0.006767613347619772, + 0.017509961500763893, 0.06803267449140549, -0.004915598314255476, 0.007599534932523966, + -0.012181703932583332, 0.02412571758031845, -0.012029845267534256, -0.017628807574510574, + -0.054774753749370575, -0.012208114378154278, 0.01467086561024189, 0.007982482202351093, + -0.010029273107647896, -0.01644034869968891, -0.01817021705210209, -0.011184719391167164, + -0.028364554047584534, 0.03398992493748665, -0.005242424551397562, 0.004975021351128817, + -0.003997843712568283, -0.0042652469128370285, -0.006384665612131357, -0.04843630641698837, + -0.026951607316732407, -0.007559919264167547, 0.005466911010444164, -0.023544691503047943, + 0.04275811091065407, 0.040354784578084946, 0.03269582614302635, -0.010649912990629673, + 0.038638122379779816, -0.01088760420680046, 0.015423555858433247, 0.014974582940340042, + -0.024931227788329124, 0.0023373025469481945, -0.0168232973664999, 0.015476376749575138, + 0.03060941956937313, -0.0008038604282774031, 0.009131326340138912, 0.03277505561709404, + -0.005440501030534506, 0.03676299750804901, 0.01438035350292921, 0.013944584876298904, + 0.052239373326301575, -0.014472789131104946, 0.028734296560287476, 0.019081369042396545, + 0.005298546049743891, -0.01925303414463997, -0.010630104690790176, -0.006529921665787697, + -0.021616747602820396, -0.00924356933683157, -0.012333562597632408, 0.0146048404276371, + 0.013416380621492863, 0.024231357499957085, -0.016149837523698807, 0.001392312697134912, + -0.01696855202317238, 0.018658805638551712, -0.014565224759280682, -0.019913289695978165, + 0.023703154176473618, 0.010399015620350838, -0.022277003154158592, -0.023161744698882103, + 0.020177392289042473, 0.00010667244350770488, 0.0016399082960560918, 0.04819861426949501, + -0.026449814438819885, 0.013931379653513432, -0.021180979907512665, 0.05498603358864784, + -0.0168232973664999, 0.0022762289736419916, -0.007936264388263226, 0.035284027457237244, + -0.002294386038556695, -0.004687810316681862, -0.013838944025337696, 0.03235249221324921, + -0.020098160952329636, -0.027096863836050034, -0.027545837685465813, 0.0008987720939330757, + -0.040988627821207047, -0.07627265155315399, -0.0025238245725631714, 0.0292096808552742, + 0.015278300270438194, 0.0038294787518680096, 0.0122279217466712, -0.004846271593123674, + 0.03599710017442703, -0.012056255713105202, -0.008992672897875309, -0.03222044184803963, + 0.007975880056619644, -0.005552744492888451, -0.021484697237610817, 0.032299675047397614, + -0.007956072688102722, -0.011594077572226524, -0.004701015539467335, -0.010847989469766617, + 0.031084803864359856, -0.005097168497741222, 0.03119044564664364, -0.000940038007684052, + -0.01508022379130125, -0.007216586731374264, -0.007071330677717924, 0.04141119122505188, + 0.02502366341650486, -0.004790149629116058, -0.007731585763394833, 0.02102251909673214, + 0.0001611434854567051, -0.014710480347275734, -0.002944737207144499, 0.043207086622714996, + 0.016796886920928955, -0.011653500609099865, 0.012729715555906296, 0.016308298334479332, + 0.0035554729402065277, 0.01760239712893963, 0.017259065061807632, -0.02450866438448429, + -0.03586504980921745, -0.014142661355435848, -0.019715214148163795, 0.0298435240983963, + 0.006140371318906546, 0.06174704432487488, 0.012690100818872452, -0.01251183170825243, + 0.00288201286457479, 0.008550302125513554, 0.000940038007684052, -0.012459011748433113, + 0.017298679798841476, -0.0056715901009738445, 0.040618885308504105, 0.020745210349559784, + -0.01374650839716196, 0.04056606441736221, -0.0025650905445218086, 0.019741622731089592, + -0.007282612379640341, -0.01438035350292921, -0.005955500062555075, 0.019530342891812325, + -0.008556904271245003, 0.004483131226152182, -0.03354095295071602, 0.0034432297106832266, + 0.01438035350292921, 0.024469049647450447, -0.01968880370259285, 0.021946875378489494, + 0.02293725684285164, 0.017193039879202843, -0.04413144290447235, -0.0038459852803498507, + 0.008041905239224434, -0.019543547183275223, -0.01688932254910469, 0.012412793934345245, + -0.003319431794807315, 0.010029273107647896, 0.03472940996289253, -0.03222044184803963, + 0.01187138445675373, 0.026185711845755577, -0.00040750112384557724, -0.024165332317352295, + -0.004770342260599136, -0.00819376390427351, 0.02952660247683525, -0.03372582420706749, + 0.015700863674283028, -0.035917870700359344, 0.006774215959012508, 0.04241478070616722, + 0.02654225006699562, -0.033567361533641815, 0.002981051104143262, 0.019002137705683708, + 0.01432753261178732, -0.0036644150968641043, 0.015766888856887817, 0.010095298290252686, + 0.02939455211162567, -0.011897794902324677, 0.006846844218671322, 0.039034273475408554, + -0.026146097108721733, -0.015159454196691513, 0.008173956535756588, 0.003000858938321471, + -0.013733303174376488, -0.014816121198236942, 0.0012016640976071358, -0.014485994353890419, + 0.002434690250083804, 0.0077645983546972275, 0.004875983111560345, -0.006526620592921972, + 0.025802765041589737, -0.004743931815028191, -0.02279200218617916, -0.004242138005793095, + 0.0029034712351858616, -0.0022498187609016895, 0.02262033522129059, -0.014816121198236942, + -0.023359820246696472, 0.004859476815909147, 0.0212866198271513, -0.04524067044258118, + -0.026766736060380936, 0.03227326273918152, -0.013614457100629807, 0.020494313910603523, + -0.007810816168785095, -0.0022135048639029264, 0.0005612167296931148, -0.034518130123615265, + -0.010682925581932068, 0.018394703045487404, 0.010649912990629673, 0.003964831121265888, + 0.006734600756317377, 0.002674032701179385, 0.009983055293560028, -0.024733150377869606, + -0.021484697237610817, 0.022369438782334328, 0.07067368924617767, 0.002723551820963621, + -0.02965865284204483, 0.016744066029787064, 0.005044348072260618, 0.013191894628107548, + -0.009164338931441307, 0.04069811478257179, -0.039034273475408554, 0.028813527897000313, + -0.02020380273461342, 0.051843222230672836, -0.003961530048400164, -0.01817021705210209, + -0.011600679717957973, 0.019358675926923752, -0.002119418466463685, 0.000877313781529665, + 0.006622357293963432, 0.005859762895852327, -0.016928937286138535, -0.024086100980639458, + 0.004701015539467335, 0.029605833813548088, -0.0008814404136501253, -0.019451111555099487, + -0.0063483514823019505, 0.0002898931852541864, 0.0010869447141885757, -0.012300550006330013, + 0.00018982330220751464, -0.021577132865786552, 0.026819556951522827, 0.016215862706303596, + 0.031216854229569435, -0.026383789256215096, 0.022646745666861534, -0.01638752780854702, + 0.016057400032877922, 0.005879570730030537, -0.002730154199525714, -0.004859476815909147, + 0.017430732026696205, 0.037185560911893845, 0.015093429014086723, -0.010068888776004314, + 0.01574047841131687, 0.030318908393383026, -0.010649912990629673, -0.0008929948671720922, + -0.0212866198271513, 0.017298679798841476, 0.008754980750381947, -0.014552019536495209, + -0.003387107979506254, 0.022897642105817795, 0.010960232466459274, -0.009256774559617043, + 0.040935806930065155, -0.025749944150447845, -0.00192959513515234, 0.06153576448559761, + -0.0615885853767395, -0.014908556826412678, 0.005849859211593866, 0.004489733837544918, + 0.011858179233968258, 0.008325815200805664, 0.025300970301032066, -0.005209411960095167, + 0.023716358467936516, 0.02965865284204483, -0.011013053357601166, -0.03766094520688057, + -0.062328070402145386, 0.02217136137187481, -0.011679910123348236, 0.020626366138458252, + -0.016849707812070847, -0.0177872683852911, 0.012234524823725224, 0.008325815200805664, + 0.021682772785425186, 0.01943790726363659, 0.021048927679657936, 0.03148095682263374, + 0.013224907219409943, -0.010557477362453938, -0.02394084446132183, 0.031586598604917526, + 0.04452759400010109, -0.006483703851699829, -0.013680483214557171, -0.0017826884286478162, + 0.014367148280143738, 0.023227769881486893, -0.00385919027030468, -0.031586598604917526, + -0.012029845267534256, 0.011204526759684086, 0.022184567525982857, 0.05556705966591835, + 0.005816846154630184, -0.026766736060380936, 0.005301847588270903, -0.004047363065183163, + 0.0451086200773716, -0.029896344989538193, -0.021748797968029976, 0.022686360403895378, + 0.0070119076408445835, 0.023016488179564476, 0.021511107683181763, 0.014578429982066154, + -0.004053965676575899, -0.015859324485063553, -0.022699566558003426, -0.036419663578271866, + -0.011217731982469559, 0.0027895772363990545, -0.007104343269020319, 0.03148095682263374, + -0.04793450981378555, 0.0006004193564876914, -0.003558774245902896, -0.009045492857694626, + 0.012234524823725224, 0.02725532464683056, 0.024152126163244247, -0.006308736279606819, + 0.01514624897390604, 0.04428990185260773, -0.04598015546798706, -0.021260209381580353, + 0.03396351635456085, 0.01257125474512577, -0.012782536447048187, -0.03156018629670143, + 0.002332350704818964, 0.00771838054060936, 0.0065992483869194984, 0.011673307977616787, + -0.03148095682263374, -0.024680331349372864, 0.001429451978765428, -0.008735173381865025, + 0.0010877700988203287, -0.022118542343378067, -0.006054538302123547, 0.036049921065568924, + -0.035151973366737366, -0.02693840302526951, -0.0001091484009521082, 0.04183375462889671, + -0.0009037239942699671, -0.005278738681226969, 0.014182277023792267, 0.020784826949238777, + -0.006539825350046158, -0.04167529568076134, -0.01521227415651083, -0.007414663210511208, + -0.02928891032934189, -0.008787993341684341, 0.03544248640537262, 0.02780994027853012, + 0.03520479425787926, -0.00806831568479538, 0.020375467836856842, 0.03568017855286598, + -0.005262231919914484, -0.009672734886407852, 0.008642737753689289, -0.013073048554360867, + -0.013614457100629807, -0.011283757165074348, 0.009619914926588535, -0.024020075798034668, + 0.01432753261178732, 0.03346172347664833, 0.02515571378171444, -0.026370583102107048, + -0.021960079669952393, 0.007909854874014854, 0.004126593470573425, 0.007309022359549999, + 0.01304663810878992, 0.014565224759280682, 0.0012082665925845504, 0.031850699335336685, + 0.016361117362976074, 0.019596368074417114, -0.0043642851524055, 0.01638752780854702, + 0.00981138925999403, 0.01362766232341528, 0.022818412631750107, 0.01702137291431427, + 0.02272597700357437, -0.03742325305938721, 8.865727977536153e-6, 0.013522021472454071, + -0.01261087041348219, 0.00031774770468473434, 0.008345622569322586, 0.013772918842732906, + 0.004796752240508795, -0.03993222117424011, -0.017496757209300995, 0.04732707515358925, + 0.013165484182536602, 0.0292096808552742, 0.015119838528335094, -0.03163941949605942, + 0.03322403132915497, 0.028734296560287476, -0.007989085279405117, 0.011495038866996765, + -0.0012107425136491656, -0.010900809429585934, 0.014948172494769096, -0.005189604125916958, + 0.006972292438149452, -0.018777651712298393, -0.00040502517367713153, 0.00636815931648016, + 0.0026657795533537865, 0.021035723388195038, -0.018896497786045074, 0.015278300270438194, + 0.054827574640512466, -0.004172811284661293, -0.00048735071322880685, 0.009672734886407852, + -0.009375620633363724, -0.0257235337048769, -0.0247727669775486, -0.015582017600536346, + 0.023993665352463722, 0.026014046743512154, 0.023003283888101578, 0.026132890954613686, + -0.012432601302862167, 0.001819002442061901, -0.009534081444144249, -0.006179986521601677, + -0.00930299237370491, 0.04230913892388344, -0.024297382682561874, -0.02140546590089798, + 0.02217136137187481, -0.005896077025681734, 0.03222044184803963, 0.0033260344062000513, + 0.020798031240701675, -0.01496137771755457, -0.036102741956710815, -0.0190549585968256, + -0.020177392289042473, 0.02584237977862358, -0.007639150135219097, -0.057943977415561676, + -0.018262652680277824, 0.011283757165074348, 0.04458041489124298, -0.012148691341280937, + 0.02470674179494381, 0.009210556745529175, -0.019345469772815704, -0.03726479038596153, + -0.057257309556007385, 0.04344477877020836, -0.03145454823970795, 0.025116099044680595, + -0.026146097108721733, 0.025736737996339798, -0.052107322961091995, 0.001555725815705955, + 0.0010968485148623586, 0.010326387360692024, -0.02876070700585842, 0.014565224759280682, + 0.02692519687116146, -0.0007828148081898689, 0.00601822417229414, 0.005483417771756649, + -0.02979070506989956, -0.004050664138048887, -0.007183574140071869, 0.008649339899420738, + 0.028892757371068, -0.020850852131843567, -0.009045492857694626, 0.030847111716866493, + -0.009989657439291477, 0.002282831585034728, 0.0022118540946394205, 0.03702709823846817, + 0.008550302125513554, 0.010498054325580597, -0.04053965583443642, 4.330344017944299e-5, + -0.026317764073610306, 0.018962522968649864, -0.025670712813735008, -0.020626366138458252, + 0.009613312780857086, -0.008200366981327534, 0.007348638027906418, 0.012267537415027618, + 0.010471643880009651, -0.007434471044689417, -0.017549576237797737, 0.03393710404634476, + 0.018962522968649864, -0.009190749377012253, -0.008147546090185642, 0.006807228550314903, + 0.007995687425136566, -0.020599955692887306, 0.014274712651968002, -0.018830472603440285, + -0.03449172154068947, 0.001580485375598073, 0.005367872770875692, -0.039852991700172424, + 0.005367872770875692, 0.020296238362789154, 0.01644034869968891, 0.006794023793190718, + 0.023174948990345, -0.0008224301273003221, 0.008306007832288742, -0.0019378483993932605, + 0.030081216245889664, -0.010042478330433369, 0.029104039072990417, 0.010775361210107803, + -0.016427144408226013, 0.00135352264624089, 0.0330127477645874, -0.02680635266005993, + 0.01575368270277977, -0.009553889743983746, -0.01209587138146162, -0.016347913071513176, + ], + index: 23, + }, + { + title: "Thomas W. Osborn", + text: "Thomas Ward Osborn (March 9, 1833 \u2013 December 18, 1898) was a Union Army officer and United States Senator representing Florida.", + vector: [ + 0.019104544073343277, -0.03285294026136398, -0.018417123705148697, 0.004163902718573809, + 0.011328106746077538, 0.0011752373538911343, 0.03989899531006813, -0.016741538420319557, + -0.02066555991768837, 0.061524078249931335, -0.03763623908162117, 0.020722845569252968, + -0.01825959049165249, 0.019763320684432983, -0.0496947281062603, 0.050954997539520264, + -0.03434235230088234, 0.011951080523431301, 0.013046656735241413, 0.012130096554756165, + 0.04708826169371605, 0.028842991217970848, 0.010117961093783379, 0.024331798776984215, + 0.029315592721104622, 0.051928844302892685, 0.017443278804421425, 0.01634054258465767, + 0.03302479535341263, 0.013576542027294636, -0.014643475413322449, 0.023114493116736412, + 0.025420213118195534, 0.03457149118185043, 0.0011868734145537019, -0.012144417501986027, + -0.00537404790520668, 0.030045976862311363, -0.002015715464949608, 0.03789402171969414, + 0.027983717620372772, -0.035115696489810944, 0.018660584464669228, 0.015395340509712696, + 0.02248435840010643, -0.034514207392930984, -0.06559131294488907, -0.019176149740815163, + -0.012316272594034672, 0.032108236104249954, -0.01532373484224081, 0.011900956742465496, + -0.020350491628050804, -0.005893193185329437, 0.05018164962530136, 0.005356146488338709, + 0.03428506478667259, 0.07441320270299911, 0.0036913014482706785, 0.02824150025844574, + -0.030532898381352425, -0.0312776044011116, -0.011213536374270916, -0.017744025215506554, + -0.01222318410873413, -0.0013936363393440843, 0.03600361570715904, 0.03391271457076073, + -0.052673548460006714, -0.020135672762989998, -0.0011430145241320133, -0.021324336528778076, + 0.0061402348801493645, 0.08334966003894806, 0.0004222530114930123, 0.03941207379102707, + 0.03680560365319252, -0.008678675629198551, -0.012309111654758453, 0.0037306849844753742, + 0.039039719849824905, -0.04903595149517059, -0.00776211591437459, 0.03319665044546127, + -0.031420815736055374, -0.023687342181801796, -0.006834815256297588, -0.0480334646999836, + -0.00034505254006944597, -0.008914976380765438, 0.05599607527256012, 0.06272706389427185, + 0.01947689615190029, 0.028313105925917625, 0.012258987873792648, -0.005739239975810051, + 0.0006681756931357086, 0.005452814977616072, -0.005939737427979708, -0.01864626444876194, + -0.012989371083676815, -0.0179158803075552, -0.029086453840136528, 0.013791360892355442, + 0.053561463952064514, 0.0030880188569426537, -0.0015833928482607007, 0.005635411012917757, + 0.055967435240745544, 0.0695439800620079, 0.013275796547532082, 0.003981306683272123, + -0.043364737182855606, -0.016813144087791443, 0.016984999179840088, -0.01589658483862877, + 0.01470792107284069, 0.04597120359539986, -0.054048385471105576, 0.03666239231824875, + -0.029931407421827316, 0.029201023280620575, 0.008406572043895721, -0.0222408976405859, + 0.0034353092778474092, -0.029845479875802994, -0.01161453127861023, 0.049121879041194916, + 0.002615417819470167, 0.032050952315330505, 0.030217831954360008, 0.03669103607535362, + -0.0009344613645225763, -0.04628627002239227, -0.013397526927292347, 0.03987035155296326, + 0.051928844302892685, 0.030819324776530266, 0.0038703170139342546, 0.05462123826146126, + 0.007769276853650808, 0.043765731155872345, -0.009559432975947857, -0.000540179549716413, + -0.014034822583198547, -0.014228159561753273, 0.00809150468558073, -0.018875403329730034, + 0.031306248158216476, 0.01939096860587597, -0.011793547309935093, -0.033282577991485596, + 0.011034521274268627, -0.0029555473010987043, 0.004077975172549486, -0.03606089949607849, + -0.0191904716193676, -0.020722845569252968, 0.025663675740361214, 0.047116901725530624, + -0.007948292419314384, -0.009745609015226364, -0.018560336902737617, 0.025377249345183372, + 0.01016092486679554, -0.022813746705651283, 0.028513602912425995, 0.01407062541693449, + 0.03248059004545212, 0.009695484302937984, -0.025964422151446342, 0.005237996112555265, + 0.0038953793700784445, 0.003762907814234495, -0.040070850402116776, -0.010347100906074047, + -0.009101152420043945, 0.010082158260047436, -0.027926431968808174, -0.01288912259042263, + -0.010017712600529194, 0.005528001580387354, 0.014894097112119198, -0.006387276109308004, + -0.040815554559230804, -0.03385542705655098, -0.009931785054504871, 0.050496719777584076, + 0.0038130320608615875, -0.0214102640748024, 0.030074618756771088, -0.02975955232977867, + 0.003521236591041088, 0.008836209774017334, 0.04505464434623718, -0.00505540007725358, + -0.022856710478663445, 0.026680484414100647, -0.008585588075220585, -0.02818421460688114, + 0.028742743656039238, -0.0054814573377370834, 0.05264490470290184, 0.023429561406373978, + -0.02779754064977169, 0.028613852337002754, 0.01593954861164093, -0.010225370526313782, + -0.02785482630133629, -0.03036104515194893, -0.04052912816405296, -0.048978663980960846, + 0.003694881685078144, 0.016111403703689575, 0.00569627620279789, 0.0366051085293293, + -0.02056531049311161, 0.011421194300055504, -0.021367300301790237, 0.056654855608940125, + 0.007669027894735336, 0.025892814621329308, 0.004511192906647921, -0.00716062355786562, + 0.0021249151322990656, 0.011729101650416851, 0.01252393051981926, 0.01662696897983551, + 0.025821208953857422, 0.03497248515486717, -0.041502974927425385, 0.04113062098622322, + 0.01573905162513256, 0.02824150025844574, -0.052673548460006714, 0.03016054630279541, + 0.0784231498837471, -0.014478781260550022, -0.011328106746077538, -0.03491520136594772, + -0.009752769023180008, 0.051098208874464035, -0.014657796360552311, -0.04058641567826271, + 0.0023630058858543634, 0.036920174956321716, -0.0374930240213871, 0.011192054487764835, + -0.010153763927519321, 0.05705584958195686, 0.014865454286336899, -0.02864249423146248, + 0.011807868257164955, -0.013590863905847073, -0.011328106746077538, -0.06530489027500153, + -0.01192959863692522, -0.0008606174378655851, 0.007790758740156889, -0.03460013493895531, + -0.0014920949470251799, -0.013698273338377476, -0.009810054674744606, -0.02411697991192341, + -0.03775080665946007, -0.023973768576979637, -0.019247757270932198, 0.009659681469202042, + 0.007633224595338106, 0.019863570109009743, 0.00374500616453588, -0.008148789405822754, + -0.002636899705976248, 0.020107030868530273, 0.05728498846292496, 0.0014509214088320732, + -0.011285142973065376, -0.023429561406373978, -0.05258762091398239, 0.04052912816405296, + 0.004754654131829739, -0.0017498773522675037, -0.002731777960434556, -0.025806887075304985, + 0.040471844375133514, 0.020006783306598663, 0.04325016587972641, 0.06003466993570328, + 0.023300670087337494, -0.022713497281074524, -0.02996004931628704, 0.025019219145178795, + 0.012352075427770615, -0.014127910137176514, 0.029014846310019493, -0.030933894217014313, + 0.051986128091812134, -0.07034596800804138, -0.027640007436275482, -0.03213687986135483, + 0.03288158401846886, 0.07532975822687149, -0.002110593719407916, -0.0486922413110733, + 0.008456696756184101, -0.017786988988518715, -0.011721940711140633, -0.02941584214568138, + 0.05831611901521683, 0.013555060140788555, -0.017744025215506554, 0.0186892282217741, + 0.0575714148581028, -0.034857917577028275, 0.02312881499528885, 4.076800451002782e-6, + -0.0011242178734391928, 0.007106918841600418, -0.02927262894809246, -0.008334966376423836, + -0.033969998359680176, -0.008191753178834915, 0.01505163125693798, -0.024217229336500168, + -0.04173211380839348, -0.019749000668525696, 0.0006972657283768058, 0.0072572920471429825, + -0.07223637402057648, 0.039784424006938934, 0.036089543253183365, -0.011113287881016731, + 0.04511192813515663, -0.044854145497083664, 0.06879927217960358, -0.04768975451588631, + -0.01084834523499012, 0.005775042809545994, -0.050153009593486786, 0.0008118356927298009, + 0.008485338650643826, 0.014750884845852852, 0.010919950902462006, -0.006258385255932808, + -0.00719642685726285, 0.014722242020070553, 0.05533729866147041, 0.04854902997612953, + -0.05066857114434242, 0.011900956742465496, 0.0004891601274721324, -0.005839488469064236, + 0.040471844375133514, -0.011056003160774708, 0.04642948508262634, 0.009036706760525703, + -0.033282577991485596, 0.0217396542429924, 0.05029622092843056, -0.013691112399101257, + -0.006133073940873146, -0.007590261287987232, -0.02244139462709427, 0.04872088506817818, + -0.029644981026649475, -0.004926509223878384, 0.05029622092843056, 0.02715308405458927, + 0.004579219035804272, 0.03620411455631256, -0.016455113887786865, 0.0339413546025753, + 0.02804100140929222, -0.05797240883111954, 0.01399901881814003, -0.009974748827517033, + 0.0015986092621460557, -0.027482474222779274, -0.016555361449718475, -0.0031596252229064703, + 0.028599530458450317, -0.036633752286434174, 0.03551669418811798, -0.008900655433535576, + -0.0004994535120204091, -0.08518277853727341, -0.01682746596634388, 0.058029692620038986, + -0.02244139462709427, 0.012967889197170734, -0.02139594405889511, 0.003079068148508668, + 0.03457149118185043, -0.00187250308226794, -0.015223485417664051, -0.04009949415922165, + 0.003642967203631997, 0.010540437884628773, 0.017185496166348457, 0.0056533124297857285, + -0.01751488633453846, -0.04806210473179817, -0.0050339181907474995, 0.012638500891625881, + -0.0008418208453804255, 0.014586190693080425, -0.04196125268936157, 0.0007209852919913828, + 0.013476293534040451, 0.02017863653600216, 0.00839225109666586, -0.019462574273347855, + 0.010590562596917152, 0.05304589867591858, -0.005452814977616072, -0.04640084132552147, + 0.008012738078832626, -0.021968793123960495, 0.02135298028588295, 0.0029215344693511724, + -0.018818119540810585, -0.014600511640310287, 0.00687777902930975, 0.04456772282719612, + 0.05338960886001587, 0.0050625610165297985, 0.033483076840639114, 0.04135976359248161, + -0.02563503198325634, -0.019706036895513535, 0.017486242577433586, -0.009681163355708122, + -0.011743422597646713, 0.053561463952064514, -0.01638350635766983, 0.04456772282719612, + -0.041932612657547, -0.017085248604416847, -0.016211651265621185, 0.011507121846079826, + -0.029086453840136528, -0.013390365988016129, -0.039097003638744354, -0.019548501819372177, + -0.07825129479169846, 0.018388481810688972, -0.055824220180511475, -0.006530488841235638, + 0.03680560365319252, 0.03351171687245369, -0.038151804357767105, -0.010590562596917152, + 0.05605336278676987, 0.038209088146686554, 0.006258385255932808, -0.038295015692710876, + 0.0006959231104701757, 0.00600060261785984, -0.06410190463066101, 0.01528077106922865, + -0.028112608939409256, -0.01707092672586441, 0.043422020971775055, -0.003066536970436573, + -0.005649731960147619, -0.006147395353764296, -0.0209090206772089, -0.030876608565449715, + -0.05023893713951111, -0.008306323550641537, -0.008062861859798431, 0.05081178620457649, + 0.011499961838126183, 0.06793999671936035, 0.004507612437009811, 0.06450289487838745, + 0.011227858252823353, 0.0410446934401989, 0.055222731083631516, 0.006433820351958275, + 0.00687419855967164, -0.01923343539237976, 0.039240218698978424, -0.00925152562558651, + -0.04402351379394531, -0.04857767000794411, -0.002482946263626218, 0.003816612297669053, + -0.03646189719438553, 0.02647998556494713, 0.012309111654758453, 0.010733774863183498, + -0.013927413150668144, 0.001028444617986679, -0.0032222806476056576, -0.006491105537861586, + -0.05333232507109642, 0.02499057725071907, -0.002148187020793557, 0.0028105448000133038, + 0.029788194224238396, 0.07424134761095047, 0.014292605221271515, -0.0505826435983181, + -0.008836209774017334, -0.00149478018283844, 0.04276324436068535, 0.0209090206772089, + -0.01805909350514412, 0.020379135385155678, 0.040271345525979996, -0.05485037714242935, + 0.0022287440951913595, 0.0037235242780297995, 0.0008185487822629511, 0.004811939317733049, + 0.006505426485091448, 0.02716740593314171, 0.01983492821455002, 0.03302479535341263, + 0.016311900690197945, -0.002473995555192232, -0.06163864955306053, 0.0038130320608615875, + 0.043221525847911835, 0.01598251238465309, 0.025520462542772293, 0.0005415221676230431, + -0.005535162054002285, -0.011943920515477657, -0.009366095997393131, -0.004486130550503731, + 0.00868583656847477, -0.013082459568977356, 0.0026028866413980722, 0.03371221572160721, + -0.008943619206547737, 0.03064746968448162, 0.023973768576979637, 0.016541041433811188, + 0.02587849460542202, -0.005531581584364176, 0.024045374244451523, -0.053905174136161804, + -0.009631038643419743, -0.0011421195231378078, 0.035402122884988785, -0.03276701271533966, + -0.007933970540761948, 0.0026923944242298603, 0.0008619600557722151, 0.025792567059397697, + -0.0002503980649635196, 0.029730908572673798, 0.01682746596634388, -0.025062182918190956, + -0.09646791964769363, 0.03531619533896446, -0.0005643466720357537, -0.01894701085984707, + 0.018875403329730034, -0.009280168451368809, -0.012975050136446953, -0.04224767908453941, + -0.0063228304497897625, -0.0005124321323819458, -0.0331680104136467, -0.04035727307200432, + 0.004367980640381575, -0.021023590117692947, 0.014371371828019619, -0.0012307321885600686, + 0.013390365988016129, 0.03299615532159805, -0.04771839454770088, 0.037865377962589264, + 0.008334966376423836, -0.003388765035197139, 0.020450741052627563, 0.0120083661749959, + 0.028055323287844658, -0.029143737629055977, 0.00597912073135376, 0.026938267052173615, + -0.012151578441262245, 0.030246473848819733, -0.011356748640537262, -0.010404386557638645, + 0.024904649704694748, 0.020336171612143517, 0.00799841620028019, -0.0005621089367195964, + 0.025305643677711487, 0.03242330253124237, 0.03852415457367897, 0.048634957522153854, + -0.009695484302937984, -0.004897866398096085, 0.037521667778491974, 0.031019821763038635, + 0.010604883544147015, -0.0019942335784435272, -0.0024972674436867237, -0.0022717078682035208, + -0.003379814326763153, -0.044052157551050186, -0.0014186985790729523, 0.005538742523640394, + 0.023014243692159653, 0.041302476078271866, 0.07034596800804138, -0.0235154889523983, + -0.013562221080064774, 0.02519107423722744, 0.005925416015088558, 0.0036125346086919308, + 0.007063955068588257, 0.04545563831925392, 0.024145623669028282, 0.01825959049165249, + -0.004661566112190485, -0.03196502476930618, -0.017772667109966278, 0.013075298629701138, + 0.0038201927673071623, -0.03523026779294014, -0.006222581956535578, 0.004117358475923538, + -0.024976255372166634, -0.01707092672586441, -0.046916406601667404, 0.034313708543777466, + -0.020493704825639725, -0.0186892282217741, -0.014836812391877174, 0.021854223683476448, + 0.04127383604645729, -0.05333232507109642, 0.024532295763492584, -0.004994534887373447, + 0.019319362938404083, 0.04201854020357132, 0.019691715016961098, -0.024088338017463684, + -0.027582721784710884, -0.009129795245826244, 0.04428129643201828, -0.037865377962589264, + 0.008098665624856949, 0.00390970055013895, -0.01957714557647705, -0.0541343130171299, + -0.03617547079920769, -0.01170761976391077, 0.013290117494761944, -0.013376045040786266, + -0.016598325222730637, 0.02027888596057892, -0.028599530458450317, 0.014507423155009747, + -0.02662319876253605, -0.0444817952811718, -0.010733774863183498, 0.03952664136886597, + -0.009466344490647316, -0.018517373129725456, 0.026981228962540627, -0.006376535166054964, + -0.0031130812130868435, 0.012287629768252373, -0.001385580631904304, 0.01205132994800806, + 0.006480364594608545, -0.013956055045127869, -0.038896508514881134, -0.011134769767522812, + -0.03543076664209366, -0.035745833069086075, -0.015409662388265133, -0.0023826975375413895, + 0.011356748640537262, -0.012194542214274406, -0.01573905162513256, 0.03806587681174278, + 0.0019727519247680902, 0.009946106001734734, 0.006347892805933952, -0.017443278804421425, + 0.013297278434038162, 0.006326410919427872, -0.01168613787740469, 0.027339261025190353, + 0.016813144087791443, 0.010275495238602161, 0.012674303725361824, 0.025520462542772293, + 0.0009098467417061329, -0.015295092016458511, -0.019376646727323532, 0.012760231271386147, + 0.0070138308219611645, 0.046028487384319305, -0.026207882910966873, 0.00048334209714084864, + 0.005334664601832628, -0.015423983335494995, 0.013562221080064774, -0.03689153119921684, + 0.03757895156741142, -0.018918367102742195, -0.013146905228495598, -0.009387577883899212, + -0.01498002465814352, -0.05101228132843971, 0.00027904054149985313, -0.03502977266907692, + 0.04090148210525513, -0.0011376440525054932, -0.055766936391592026, 0.006995929405093193, + 0.01470792107284069, 0.0356026217341423, -0.0045040324330329895, 0.02779754064977169, + 0.01532373484224081, 0.013576542027294636, -0.04284917190670967, 0.019849248230457306, + -0.0004963207175023854, 0.0156388022005558, 0.01634054258465767, -0.02204039879143238, + -0.004726011771708727, -0.018431445583701134, -0.010805381461977959, 0.023085851222276688, + -0.015767693519592285, -0.023257706314325333, -0.012044169008731842, -0.0023737468291074038, + 0.024618223309516907, 0.038209088146686554, -0.007669027894735336, -0.03843822702765465, + 0.0038595760706812143, 0.012309111654758453, 0.028800027444958687, 0.0020497285295277834, + 0.00374500616453588, -0.010103640146553516, 0.019376646727323532, -0.004085135646164417, + -0.02480440028011799, -0.009086831472814083, -0.015438304282724857, -0.015552874654531479, + -0.011199215427041054, -0.005961219314485788, 0.06719528883695602, 0.018574656918644905, + -0.009230043739080429, 0.016197331249713898, -0.025076504796743393, 0.014428656548261642, + -0.01632622256875038, 0.006419498939067125, 0.05072585865855217, 0.005510099697858095, + 0.007368281949311495, 0.03133488819003105, -0.005606768187135458, -0.005728499032557011, + -0.00343709927983582, -0.0035176563542336226, -0.006147395353764296, 0.02858521044254303, + -0.01815934106707573, 0.012860479764640331, -0.024217229336500168, 0.010518955998122692, + -0.020823093131184578, 0.025606390088796616, -0.023257706314325333, 0.004060073755681515, + -0.025692317634820938, -0.02975955232977867, -0.010361422784626484, 0.0417034737765789, + -0.00839225109666586, 0.004751073662191629, -0.022026078775525093, -0.025319965556263924, + -0.002534860745072365, -0.031649958342313766, 0.022641891613602638, 0.009008064866065979, + 0.0038595760706812143, 0.02262757159769535, 0.028671137988567352, -0.028456319123506546, + 0.000274341378826648, 0.02095198445022106, -0.029387200251221657, 0.03236601874232292, + -0.00691358232870698, -0.0179158803075552, -0.04688776284456253, -0.0002058679237961769, + -0.042677316814661026, -0.010332779958844185, 0.017844274640083313, 0.029243987053632736, + 0.003635806730017066, -0.030676111578941345, -0.007339639123529196, 0.05539458617568016, + 0.023630058392882347, -0.013941734097898006, -0.0031327728647738695, -0.03331122174859047, + -0.001010542968288064, 0.015495589934289455, 0.02371598593890667, -0.04207582399249077, + 0.020107030868530273, 0.0037808092311024666, 0.001917256973683834, -0.0037987108808010817, + -0.024732794612646103, 0.006372955162078142, -0.01977764256298542, 0.007020991295576096, + -0.01114193070679903, -0.026136275380849838, -0.004557737149298191, 0.05848797410726547, + -0.02711012028157711, 0.02499057725071907, 0.05605336278676987, 0.06393004953861237, + 0.010261173360049725, -0.02636541612446308, -0.0032312313560396433, -0.046228986233472824, + 0.03806587681174278, 0.024489331990480423, -0.0029018428176641464, -0.03654782474040985, + -0.008843369781970978, -0.03543076664209366, 0.01874651201069355, 0.04310695454478264, + -0.061180368065834045, 0.003791550174355507, 0.01192959863692522, -0.0004513430467341095, + 0.0010794639820232987, 0.019963819533586502, -0.007962613366544247, -0.009903142228722572, + 0.020994948223233223, -0.007568779401481152, 0.006491105537861586, -0.01943393237888813, + -0.010819702409207821, 0.0008239192538894713, 0.03448556363582611, -0.03236601874232292, + -0.01099871750921011, -0.02027888596057892, 0.03577447682619095, 0.021138161420822144, + -0.035803116858005524, -0.01293924730271101, -0.01168613787740469, 0.03617547079920769, + -0.029358556494116783, 0.025506140664219856, 0.05387653410434723, 0.028313105925917625, + -0.040815554559230804, 0.003884638426825404, -0.028570888563990593, -0.02519107423722744, + 0.026651840656995773, 0.024861685931682587, 0.019118865951895714, 0.03356900438666344, + 0.0011519653489813209, 0.04539835453033447, 0.0024005991872400045, -0.01878947578370571, + 0.025420213118195534, -0.017343031242489815, -0.009136956185102463, 0.02480440028011799, + 0.018073413521051407, -0.024317478761076927, 0.005155649036169052, -0.018861083313822746, + 0.005628250073641539, 0.004955151583999395, -0.015266449190676212, 0.0244034044444561, + -0.012266147881746292, -0.032108236104249954, -0.0007800604216754436, -0.01021104957908392, + -0.009287328459322453, -8.318630716530606e-5, 0.014879776164889336, -0.0049909548833966255, + -0.005699856206774712, 0.039927639067173004, -0.000208553159609437, 0.030962536111474037, + -0.0037378454580903053, 0.01593954861164093, -0.010805381461977959, -0.0053382450714707375, + -0.010168085806071758, -0.027124442160129547, -0.003392345504835248, 0.04121654853224754, + 0.014600511640310287, -0.00445390772074461, 0.00749001232907176, -0.0065949345007538795, + -0.037120673805475235, 0.0018563916673883796, -0.004937250167131424, 0.02052234672009945, + -0.025549104437232018, 0.0019190470920875669, -0.006756048183888197, 0.017686739563941956, + 0.03159267082810402, 0.017944522202014923, -0.014937060885131359, -0.02066555991768837, + -0.0005433123442344368, -0.021281372755765915, -0.037865377962589264, 0.03311072289943695, + -0.02420290745794773, -0.002975239185616374, -0.010955753736197948, -0.008270520716905594, + -0.005907514598220587, 0.0331680104136467, 0.023400917649269104, 0.02967362478375435, + 0.006709504406899214, 0.015037309378385544, -0.0008476388175040483, 0.001616510795429349, + -0.006448141764849424, 0.04419536888599396, -0.032050952315330505, -0.006226162426173687, + -0.026508629322052002, -0.018861083313822746, -0.011872313916683197, -0.021295694634318352, + 0.012538252398371696, -0.004486130550503731, -0.00838509015738964, -0.01692771352827549, + 0.012402200140058994, 0.02400241047143936, -0.02597874216735363, 0.044854145497083664, + -0.0039848871529102325, 0.0037485864013433456, -0.006906421389430761, -0.009351774118840694, + -0.00016044272342696786, 0.050697214901447296, 0.029286950826644897, 0.01987789198756218, + 0.011542925611138344, 0.014278283342719078, -0.04304967075586319, 0.0011609160574153066, + 0.0055494834668934345, 0.07916785776615143, -0.029014846310019493, 0.029845479875802994, + 0.0020300368778407574, -0.011807868257164955, -0.031764525920152664, -0.009509308263659477, + 0.040271345525979996, -0.017385995015501976, 0.046515412628650665, 0.005084042903035879, + -0.002354054944589734, -0.014478781260550022, 0.016798822209239006, 0.016297578811645508, + 0.008306323550641537, 0.023100171238183975, -0.025806887075304985, -0.005087622907012701, + -0.04213310778141022, -0.020679881796240807, 0.014937060885131359, 0.045885276049375534, + -0.012258987873792648, -0.01632622256875038, -0.025420213118195534, -0.0012853319058194757, + 0.034027282148599625, -0.012781713157892227, -0.010862666182219982, -0.026694804430007935, + 0.015466947108507156, 0.03336850553750992, 0.00300030130892992, 0.029186701402068138, + -0.0013291907962411642, -0.011843671090900898, -0.0239594466984272, 0.024675508961081505, + -0.03757895156741142, 0.02106655389070511, -0.019863570109009743, -0.016598325222730637, + -0.0005325714009813964, 0.006154555827379227, 0.03720660135149956, 0.008406572043895721, + -0.008528302423655987, -0.01161453127861023, 0.017199818044900894, 0.012638500891625881, + 0.0017794149462133646, 0.03497248515486717, -0.02670912630856037, 0.031907737255096436, + -0.010690811090171337, -0.03462877497076988, -0.013784200884401798, -0.0023630058858543634, + -0.011449837125837803, -0.008263359777629375, -0.0063228304497897625, 0.007447048556059599, + 0.023930804803967476, 0.0011367490515112877, 0.03414185345172882, 0.029115095734596252, + -0.018961330875754356, 0.01188663486391306, -0.017944522202014923, -0.02814125083386898, + -0.00749001232907176, -0.0009854808449745178, 0.0010508215054869652, 0.0067381467670202255, + 0.008786085061728954, -0.04038591682910919, 0.006963706575334072, -0.021195445209741592, + 0.03531619533896446, 0.0014312296407297254, 0.018588978797197342, -0.004844161681830883, + -0.01350493635982275, -0.01800180785357952, 0.015667444095015526, 0.007389763370156288, + -0.015681765973567963, 0.008062861859798431, -0.018417123705148697, 0.02085173688828945, + 0.0011734472354874015, 0.010891309008002281, -0.02434612065553665, -0.02145322784781456, + 0.01751488633453846, 0.01259553711861372, -0.005216514226049185, 0.013168387115001678, + 0.0034209878649562597, 0.034514207392930984, -0.0012593746650964022, -0.007697670254856348, + -0.02411697991192341, -0.04133111983537674, -0.010769577696919441, 0.0001040528150042519, + -0.029788194224238396, 0.010719453915953636, 0.0005580810829997063, -0.01397753693163395, + -0.03236601874232292, 0.0067381467670202255, -0.023100171238183975, -0.019548501819372177, + 0.02046506293118, -0.031134391203522682, -0.013390365988016129, -0.01662696897983551, + 0.021882865577936172, -0.02076580934226513, -0.015782015398144722, 0.02961633913218975, + -0.05132735148072243, -0.00446464866399765, 0.012824676930904388, 0.009043867699801922, + -0.03852415457367897, 0.0060077630914747715, -0.0366051085293293, -0.00799841620028019, + -0.03322529420256615, 0.004425265360623598, -0.0018125328933820128, 0.011034521274268627, + 0.019706036895513535, 0.023100171238183975, 0.00930165033787489, 0.03895379230380058, + -0.0028624592814594507, -0.004879964981228113, -0.005008856300264597, -0.0038774777203798294, + -0.0044718096032738686, -0.0018062673043459654, -0.01559583842754364, -0.011521443724632263, + -0.03119167685508728, -0.026107633486390114, 0.024389084428548813, -0.002778321970254183, + -0.017042284831404686, -0.023114493116736412, 0.011514282785356045, 0.002806964563205838, + -0.008506820537149906, -0.012144417501986027, -0.036719679832458496, 0.0032079594675451517, + -0.0031846873462200165, -0.026336774230003357, 0.04038591682910919, 0.031363531947135925, + -0.010117961093783379, -0.009230043739080429, 0.012688624672591686, -0.03425642475485802, + -0.043364737182855606, 0.011256500147283077, 0.014851133339107037, 0.014643475413322449, + 0.03428506478667259, -0.0226848553866148, -0.012502448633313179, -0.003617905080318451, + -0.0160827599465847, -0.003927601967006922, -0.02941584214568138, 0.0444817952811718, + 0.011872313916683197, 0.03557397797703743, 0.01771538332104683, -0.03162131458520889, + 0.02199743501842022, 0.014922739937901497, 0.009187079966068268, -0.029444484040141106, + 0.024661187082529068, -0.054535310715436935, 0.0120083661749959, 0.03734981268644333, + 0.010891309008002281, 0.009101152420043945, 0.008886333554983139, -0.008936458267271519, + -0.05969095975160599, -0.004582799039781094, 0.009115474298596382, 0.01884676143527031, + 0.0034478402230888605, 0.027725934982299805, 0.00446464866399765, 0.013905931264162064, + -0.01490841805934906, -0.012258987873792648, -0.011442676186561584, -0.018316876143217087, + -0.01662696897983551, 0.0026225782930850983, -0.020107030868530273, -0.01498002465814352, + 0.006344312336295843, 0.003258083714172244, -0.009537951089441776, 0.04571342095732689, + 0.012788874097168446, -0.008886333554983139, 0.03182180970907211, 0.0024865265004336834, + -0.007805079687386751, -0.03703474625945091, 0.00993894599378109, -0.03577447682619095, + -0.015237807296216488, -0.01825959049165249, -0.012509609572589397, -0.026293810456991196, + -0.03030375950038433, 0.03952664136886597, 0.020722845569252968, -0.06461746990680695, + -0.003284936072304845, 0.022398430854082108, -0.01687042973935604, 0.028513602912425995, + 0.015567195601761341, 0.0019584305118769407, -0.0035069154109805822, -0.031420815736055374, + -0.004901446867734194, -0.0006422184524126351, -0.020579632371664047, -0.02947312779724598, + -0.009043867699801922, -0.004357239697128534, -0.020393455401062965, -0.022298181429505348, + 0.028757063671946526, -0.007948292419314384, -0.02509082481265068, -0.045541565865278244, + -0.01840280182659626, 0.014822490513324738, 0.00314888427965343, 0.027539758011698723, + 0.005803685635328293, 0.020751487463712692, 0.010074997320771217, 0.011127608828246593, + -0.025864172726869583, 0.02066555991768837, 0.001144804758951068, 0.007554457988590002, + -0.017643775790929794, -0.02460390329360962, 0.011399712413549423, 0.012423682026565075, + -0.004425265360623598, -0.008893494494259357, 0.0174719225615263, -0.008850530721247196, + 0.017629455775022507, 0.033139366656541824, -0.01727142371237278, 0.014199516735970974, + -0.021381622180342674, -0.004883545450866222, 0.02086605690419674, 0.03414185345172882, + 0.015495589934289455, 0.03408456966280937, 0.015767693519592285, 0.019548501819372177, + -0.038638725876808167, 0.0011797127081081271, -0.03523026779294014, -0.004256990738213062, + -0.04937966167926788, 0.05101228132843971, -0.01898997463285923, -0.0019208373269066215, + -0.0486922413110733, -0.027382224798202515, 0.024876005947589874, 0.024589581415057182, + -0.008528302423655987, 0.021668046712875366, 0.012165899388492107, -0.005914675071835518, + 0.003673400031402707, 0.016598325222730637, 0.030246473848819733, -0.01079822052270174, + -0.0013802101602777839, -0.01666993275284767, -0.0015234226593747735, -0.0001288912317249924, + 0.02209768444299698, -0.018388481810688972, 0.027625685557723045, 0.008349287323653698, + -0.007676188368350267, 0.006233322899788618, 0.009287328459322453, 0.006061467807739973, + 0.03268108516931534, 0.003558829892426729, 0.01666993275284767, 0.003315368667244911, + -0.014879776164889336, -0.008864851668477058, 0.019161829724907875, -0.021539155393838882, + -0.0006695183110423386, 0.012137257494032383, -0.040128134191036224, 0.01281751599162817, + 0.0287857074290514, -0.005402690730988979, -0.009810054674744606, -0.0013130793813616037, + -0.0033243196085095406, -0.023544130846858025, -0.02365870028734207, -0.007439888082444668, + 0.022842388600111008, -0.027983717620372772, 0.0004708110063802451, -0.0011537554673850536, + 0.011277982033789158, 0.004274892155081034, -0.031105749309062958, 0.033683571964502335, + -0.02331499010324478, -0.019605787470936775, 0.009516469202935696, -0.02961633913218975, + -0.04680183529853821, -0.03620411455631256, 0.02135298028588295, -0.04385165870189667, + -0.026437021791934967, -0.00023204895842354745, 0.005531581584364176, -0.007035312708467245, + -0.054019745439291, -0.02120976708829403, -0.0001372825790895149, 0.013189869001507759, + -0.015481268055737019, -0.0005800105282105505, 0.006691602990031242, -0.027239011600613594, + 0.021037911996245384, -0.015882262960076332, -0.029143737629055977, -0.009702645242214203, + -0.01532373484224081, 0.021625082939863205, -0.02519107423722744, 0.018245268613100052, + -0.007439888082444668, 0.031163034960627556, -0.01045451033860445, 0.0226848553866148, + -0.010962914675474167, 0.008564106188714504, -0.015509910881519318, -0.029845479875802994, + -0.005828747525811195, -0.002047938294708729, 0.010612044483423233, -0.010017712600529194, + 0.009767090901732445, 0.0584593303501606, -0.009702645242214203, -0.0339413546025753, + -0.015867941081523895, 0.015538553707301617, 0.007404084783047438, -0.04296374320983887, + 0.002923324704170227, -0.02347252517938614, -0.0504680760204792, 0.017887238413095474, + -0.054879020899534225, -0.015080273151397705, 0.0063120899721980095, -0.018660584464669228, + 0.008571266196668148, -0.04565613716840744, -0.0011483849957585335, -0.0022931897547096014, + 0.015366698615252972, -0.020135672762989998, -0.022154970094561577, -0.028370391577482224, + -0.011320945806801319, -0.01230195164680481, -0.004436006303876638, 0.006326410919427872, + -0.010282655246555805, 0.016412150114774704, -0.012495288625359535, -0.013640987686812878, + -0.018130699172616005, -0.06862741708755493, 0.04345066472887993, 0.01992085576057434, + 0.0036071641370654106, -0.02357277274131775, 0.019620109349489212, -0.02553478442132473, + -0.01109180599451065, 0.009580914862453938, 0.023186098784208298, -0.018288232386112213, + 0.017772667109966278, 0.0305042564868927, 0.006204680539667606, 0.00346216163598001, + 0.028470639139413834, 0.004385882057249546, -0.02716740593314171, 0.03336850553750992, + 0.0009353564819321036, -0.04743197187781334, -0.004901446867734194, -0.022154970094561577, + -0.00570701714605093, -0.00952362921088934, -0.003284936072304845, -0.06032109260559082, + 0.007235810160636902, 0.017944522202014923, -0.019405290484428406, 0.003977726213634014, + -0.020049747079610825, -0.019147507846355438, -0.019720356911420822, -0.02882867120206356, + 0.02327202633023262, 0.010970075614750385, -0.01834551803767681, -0.015710407868027687, + 0.02484736405313015, -0.022513000294566154, 0.013590863905847073, 0.00044821028131991625, + 0.014385692775249481, 0.005664053373038769, -0.03491520136594772, 0.0027675810270011425, + 0.00804137997329235, 0.04654405266046524, 0.011793547309935093, -0.02489032782614231, + -0.044395867735147476, 0.0035409284755587578, 0.021668046712875366, 0.027439510449767113, + 0.0005701646441593766, -0.003974146209657192, 0.011836511082947254, -0.02848496101796627, + -0.0018331196624785662, -0.014543226920068264, -0.0059361569583415985, 0.008241877891123295, + 0.019004294648766518, 0.012473806738853455, 0.005248737055808306, -0.015366698615252972, + 0.016942035406827927, 0.014679278247058392, -0.0008136258693411946, 0.018775155767798424, + 0.01223034504801035, 0.05098364129662514, -0.02434612065553665, -0.012495288625359535, + 0.018875403329730034, -0.021467549726366997, -0.055079516023397446, -0.011593049392104149, + 0.020307527855038643, 0.0209663063287735, 0.006437400821596384, 0.006075789220631123, + -0.018374159932136536, 0.037865377962589264, -0.015194843523204327, 0.013125423341989517, + 0.04044320061802864, -0.021925829350948334, 0.004382301587611437, -0.018617620691657066, + 0.004138840362429619, 0.011729101650416851, -0.004188964609056711, 0.0021070134826004505, + 0.02559206821024418, -0.003487223759293556, 0.004937250167131424, 0.0037700682878494263, + 0.0008118356927298009, 0.004117358475923538, -0.005538742523640394, 0.03723524138331413, + -0.03202230855822563, 0.022355467081069946, -0.03411320969462395, 0.019706036895513535, + 0.013512096367776394, -0.03288158401846886, 0.010117961093783379, 0.016311900690197945, + 0.005116265732795, -0.02503354102373123, 0.032108236104249954, -0.023945124819874763, + 0.007984095253050327, -0.03365493193268776, 0.029000526294112206, -0.006204680539667606, + -0.0036913014482706785, 0.010332779958844185, 0.009709805250167847, -0.008671515621244907, + 0.0014518164098262787, -0.02468983083963394, 0.007028152234852314, 0.009623878635466099, + -0.021238408982753754, 0.014550386928021908, -0.04213310778141022, -0.026694804430007935, + 0.015581517480313778, 0.007071116007864475, -0.02002110332250595, -0.02656591311097145, + ], + index: 24, + }, + { + title: "Baron Birdwood", + text: "Baron Birdwood, of Anzac and of Totnes in the County of Devon, was a title in the Peerage of the United Kingdom. It was created on 25 January 1938 for Sir William Birdwood, 1st Baronet. He is chiefly remembered as the commander of the Australian and New Zealand Army Corps (ANZAC) during the Gallipoli Campaign of 1915. Birdwood had already been created a Baronet, of Anzac and Totnes, on 6 October 1919.", + vector: [ + 0.015234222635626793, 0.005028111394494772, -0.028315488249063492, 0.002980757039040327, + 0.0014648291980847716, 0.04186004772782326, -0.0008469608146697283, -0.022238150238990784, + -0.004067455884069204, 0.06001030281186104, 0.0016087570693343878, 0.04537563771009445, + -0.059356238692998886, 0.008305240422487259, 0.028015708550810814, 0.026489561423659325, + -0.04867320507764816, 0.003798336023464799, -0.0495452918112278, -0.01648784428834915, + 0.05197077617049217, 0.005290417931973934, 0.004360421560704708, -0.02861526608467102, + 0.009919959120452404, 0.022578807547688484, 0.029214825481176376, 0.005716240033507347, + 0.048209913074970245, -0.0008635678677819669, -0.03752687945961952, -0.039134785532951355, + 0.028588013723492622, -0.02790669910609722, 0.0329756885766983, -0.02559022419154644, + -0.03401128947734833, 0.01561576034873724, 0.013381043449044228, -0.0021972437389194965, + -0.04938177391886711, -0.05066264793276787, -0.019349370151758194, -0.013312912546098232, + 0.014893565326929092, -0.046274974942207336, -0.04104246944189072, 0.030631961300969124, + -0.014144117943942547, 0.0013745548203587532, 0.04733782634139061, -0.02742977812886238, + 0.00439108069986105, 0.0659513771533966, 0.01849091239273548, 0.008584580384194851, + 0.03938005864620209, 0.035700950771570206, -0.034447330981492996, -0.003185151843354106, + -0.013721701689064503, -0.03788116201758385, -0.0509079210460186, 0.009061501361429691, + -0.002514055697247386, -0.024922534823417664, 0.06840411573648453, 0.0591382198035717, + -0.04605695232748985, -0.0509079210460186, 0.015206970274448395, -0.012243246659636497, + 0.014089612290263176, 0.05058089271187782, 0.0419418066740036, -0.0005987063050270081, + 0.027375271543860435, 0.013108517974615097, -0.06518830358982086, 0.03125877305865288, + 0.02069837599992752, 0.005389208439737558, -0.01507070753723383, 0.04581167921423912, + 0.020984528586268425, 0.029950646683573723, -0.036954574286937714, -0.03551018238067627, + 0.0007490216521546245, -0.059628766030073166, 0.022047381848096848, 0.008141724392771721, + 0.049736060202121735, -0.023369135335087776, -0.00658491812646389, -0.018368275836110115, + 0.03551018238067627, -0.013871591538190842, 0.0419963113963604, -0.04387674108147621, + -0.014675543643534184, -0.019076844677329063, -0.028369992971420288, -0.013019946403801441, + 0.011316657066345215, 0.001078182365745306, 0.0021410351619124413, -0.02620340883731842, + 0.012399949133396149, 0.025440335273742676, 0.032103605568408966, 0.015329607762396336, + 0.01692388579249382, -0.0018276298651471734, -0.026966482400894165, 0.03142228722572327, + 0.04139675199985504, -0.019049592316150665, -0.06082788109779358, 0.002634989097714424, + -0.03730885684490204, -0.007024366874247789, -0.02103903517127037, -0.05423274263739586, + 0.04085170105099678, -0.049027491360902786, -0.010526330210268497, 0.0838836133480072, + -0.017755091190338135, 0.03878049924969673, -0.01056720968335867, -0.025494839996099472, + 0.017727838829159737, -0.0247453935444355, 0.03191283717751503, 0.03065921552479267, + -0.01770058646798134, -0.0071333772502839565, 0.016528723761439323, -0.0021069692447781563, + 0.02103903517127037, 0.008543700911104679, 0.0014920817920938134, 0.002718450268730521, + 0.03202184662222862, 0.0008925237925723195, 0.05186176300048828, 0.02392781339585781, + 0.026244288310408592, -0.015888286754488945, 0.0012289235601201653, 0.04221433028578758, + 0.030359435826539993, 0.020643871277570724, 0.0020473541226238012, -0.06764104217290878, + -0.06431622058153152, -0.03041394054889679, -0.0036143807228654623, 0.06633291393518448, + -0.0398978590965271, 0.005075803492218256, -0.03905302658677101, -0.0019247173331677914, + 0.03812643513083458, 0.040797196328639984, -0.023873308673501015, -0.012434015050530434, + -0.008605019189417362, 0.005927448160946369, -0.03425656259059906, -0.023260124027729034, + 0.0647522583603859, 0.019390249624848366, -0.04014313220977783, 0.061863481998443604, + -0.012590717524290085, 0.03139503672719002, -0.021297933533787727, 0.008128098212182522, + -0.021488703787326813, -0.063335120677948, -0.045348383486270905, 0.0003906920610461384, + -0.011153141036629677, 0.001892354805022478, 0.05327890068292618, 0.04624772071838379, + -0.06262655556201935, 0.048237163573503494, 0.005576570518314838, -0.013210714794695377, + 0.03055020421743393, -0.025562971830368042, 0.03000515140593052, 0.031722068786621094, + 0.0019264206057414412, 0.024186713621020317, -0.01104413066059351, 0.03139503672719002, + 0.0116913802921772, -0.0591927245259285, 0.03068646788597107, -0.0004556299827527255, + -0.0158065278083086, 0.02670758217573166, -0.04594794288277626, 0.0398978590965271, + -0.009299961850047112, 0.007998648099601269, -0.026516813784837723, -0.0016377130523324013, + -0.020957276225090027, 0.005344923119992018, -0.039025772362947464, 0.015343233942985535, + -0.016610480844974518, -0.026625825092196465, 0.000436893809819594, -0.0032192175276577473, + -0.03346623480319977, 0.0021393317729234695, 0.01879069209098816, 0.012910936027765274, + -0.0104990778490901, -0.012917748652398586, -0.014075986109673977, -0.002551527926698327, + -0.0051882206462323666, 0.004036796744912863, -0.03409304842352867, -0.008005461655557156, + -0.01701926998794079, 0.02738889865577221, 0.005157561041414738, 0.04324993118643761, + -0.008870732970535755, -0.04186004772782326, 0.025331323966383934, -0.03177657350897789, + -0.031994592398405075, 0.06360764801502228, 0.00948391668498516, -0.04186004772782326, + 0.011711820028722286, -0.010730724781751633, 0.03346623480319977, -0.024990666657686234, + -0.06426171213388443, 0.013374230824410915, 0.08039527386426926, 0.01562938652932644, + -0.010097101330757141, -0.012583903968334198, 0.019594645127654076, -0.013054012320935726, + 0.008496008813381195, 0.02984163537621498, 0.06415270268917084, 0.03782665729522705, + 0.0027133405674248934, 0.041178733110427856, 0.014171370305120945, 0.04166927933692932, + -0.03311195224523544, -0.046711016446352005, -0.04210532084107399, -0.005988766439259052, + -0.011820830404758453, -0.04921825975179672, -0.00179697060957551, -0.0011463139671832323, + 0.021257055923342705, -0.055513616651296616, -0.02943284623324871, 0.008557327091693878, + 0.026762086898088455, 0.009347653947770596, -0.02467726171016693, 0.03382052108645439, + 0.020275959745049477, -0.047937385737895966, -0.007235574536025524, -0.03463809937238693, + -0.049163755029439926, 0.01838190294802189, 0.0134082967415452, 0.006295358762145042, + 0.019144976511597633, -0.010090287774801254, -0.021079912781715393, 0.06682346016168594, + -0.00023547980526927859, -0.01644696481525898, -0.007991835474967957, -0.004537563771009445, + -0.01763245463371277, -0.04499410092830658, -0.002507242374122143, -0.03188558295369148, + 0.020984528586268425, -0.02392781339585781, -0.036273255944252014, 0.01060127466917038, + 0.05366043746471405, 0.0025958134792745113, -0.021897492930293083, 0.009047875180840492, + -0.009736004285514355, 0.038044679909944534, -0.039134785532951355, -0.005603823345154524, + 0.007896451279520988, -0.019144976511597633, -0.03850797191262245, -0.004302509594708681, + -0.00044030038407072425, 8.53241654112935e-5, -0.03946181759238243, 0.044258277863264084, + -0.03354799374938011, -0.04033390060067177, -0.04791013151407242, -0.06393468379974365, + 0.023846056312322617, -0.013163022696971893, 0.07309156656265259, -0.008475570008158684, + -0.04295015335083008, -0.024241218343377113, -0.018668055534362793, -0.06110040843486786, + 0.04224158450961113, 0.008707216940820217, 0.02093002386391163, 0.05526834353804588, + 0.002313067438080907, 0.025917256250977516, 0.001451202784664929, -0.008673151023685932, + -0.01594279147684574, 0.0502266064286232, 0.011957094073295593, 0.02406407706439495, + -0.014089612290263176, 0.0769614428281784, -0.009994903579354286, 0.03586446866393089, + 0.001808893634006381, -0.0271572507917881, 0.0005450526950880885, 0.023137487471103668, + 0.050689902156591415, 0.02426847256720066, -0.01043094601482153, 0.010199299082159996, + -0.0020558706019073725, -0.027879446744918823, -0.03605523705482483, 0.06153644993901253, + -0.017986739054322243, 0.020275959745049477, -0.005344923119992018, 0.04275938495993614, + -0.05352417379617691, -0.021434197202324867, 0.028942298144102097, -0.0018906515324488282, + -0.025276819244027138, -0.03820819407701492, -0.0025327918119728565, 0.01090786699205637, + -0.03442007675766945, -0.03027767688035965, -0.016937512904405594, -0.011636875569820404, + -0.031667560338974, -0.009572488255798817, -0.011159953661262989, -0.003920972812920809, + 0.015111586079001427, -0.03188558295369148, 0.010233364067971706, -0.036954574286937714, + 0.013469615019857883, -0.01066940650343895, 0.01090786699205637, 0.04771936312317848, + 0.001016863971017301, 0.011493799276649952, -0.041478510946035385, 0.052624840289354324, + -0.009477104060351849, -0.0058593167923390865, -0.032675910741090775, -0.018123002722859383, + 0.014634665101766586, 0.003123833332210779, 0.03621875122189522, 0.009613366797566414, + 0.020330466330051422, 0.018368275836110115, 0.056358449161052704, 0.024213965982198715, + 0.044094763696193695, -0.007923703640699387, 0.015220596455037594, 0.0032072945032268763, + -0.042868394404649734, -0.009122819639742374, -0.005750305950641632, -0.016269823536276817, + 0.01903596520423889, 0.020671123638749123, -0.007569419220089912, 0.00064767588628456, + -0.041314996778964996, 0.02368254028260708, 0.011800390668213367, -0.039679836481809616, + 0.03463809937238693, -0.019267613068223, -0.05349692329764366, 0.05581339821219444, + -0.013776207342743874, -0.006090964190661907, 0.003208997892215848, 0.03630051016807556, + -0.04543014243245125, -0.028424497693777084, -0.004670420195907354, -0.04815540462732315, + 0.014334886334836483, 0.05581339821219444, -0.018545418977737427, -0.0481826588511467, + -0.031694814562797546, -0.000923182989936322, 0.006721181329339743, 0.021829361096024513, + -0.02538583055138588, 0.03283942490816116, -0.04071543738245964, 0.00781469326466322, + -0.08415614068508148, -0.002946691121906042, 0.020752882584929466, -0.03248514235019684, + 0.016188064590096474, -0.010015343315899372, -0.02484077773988247, -0.014621038921177387, + -0.015043454244732857, 0.026053519919514656, -0.027811314910650253, -0.03499238193035126, + 0.03725435212254524, 0.0209981556981802, -0.028996804729104042, -0.003621193813160062, + -0.04251411184668541, 0.04123323783278465, 0.016664985567331314, 0.001810596906580031, + 0.04791013151407242, -0.016596855595707893, -0.022442545741796494, -0.007964582182466984, + -0.007535353768616915, 0.011800390668213367, -0.002369276015087962, -0.016869381070137024, + -0.003968664910644293, 0.07663440704345703, -0.023369135335087776, 0.009558862075209618, + 0.0007102718227542937, -0.013013133779168129, 0.06251754611730576, 0.08448316901922226, + 0.0019213107880204916, -0.03739061579108238, 0.018817944452166557, -0.015424991957843304, + -0.010015343315899372, -0.061972491443157196, -0.0398978590965271, 0.025140555575489998, + -0.0038971267640590668, 0.0398978590965271, -0.00980413518846035, 0.04049741476774216, + -0.04652024805545807, -0.00827798806130886, -0.027743183076381683, 0.029787130653858185, + -0.047256071120500565, 0.037227097898721695, 0.0030028996989130974, 0.017278170213103294, + -0.017659706994891167, -0.010785230435431004, 0.03499238193035126, 0.00548118632286787, + 0.019703654572367668, 0.0037540504708886147, -0.02627154067158699, 0.08039527386426926, + 0.02127068117260933, 0.038889508694410324, -0.003972071688622236, 0.053878460079431534, + 0.004864595364779234, 0.012359069660305977, 0.013088078238070011, -0.03373876214027405, + 0.005470966454595327, 0.0010730725480243564, -0.026448681950569153, 0.00469767302274704, + 0.01947200857102871, -0.0020405410323292017, -0.037772152572870255, 0.023369135335087776, + 0.029814383015036583, 0.00915688555687666, -0.0025344949681311846, 0.020684750750660896, + 0.025835497304797173, -0.02429572492837906, -0.00639755604788661, 0.02110716514289379, + -0.010948746465146542, -0.03455634042620659, -0.029351087287068367, 0.033902280032634735, + 0.01746893860399723, 0.011555117554962635, -0.031449541449546814, 0.00773974834010005, + -0.010451385751366615, -0.051507480442523956, -0.00402657687664032, -0.0029892735183238983, + -0.020548487082123756, 0.017305422574281693, 0.04333169013261795, 0.041751038283109665, + -0.011739072389900684, -0.003651853185147047, -0.009136445820331573, 0.006901729851961136, + -0.013680823147296906, 0.008707216940820217, -0.0014205436455085874, 0.00270652724429965, + -0.04488509148359299, 0.01883157156407833, -0.029759878292679787, 0.006131842732429504, + 0.03741787001490593, -3.071244282182306e-5, 0.021093539893627167, -0.005736679770052433, + 0.028179224580526352, 0.0042003123089671135, 0.029405593872070312, 0.005593603476881981, + 0.028315488249063492, 0.01726454496383667, 0.0196082703769207, 0.00015414772497024387, + 0.04224158450961113, 0.015261475928127766, -0.01498894952237606, -0.019499260932207108, + 0.004632947966456413, 0.0154794966802001, 0.0077329352498054504, 0.035700950771570206, + 0.0035905346740037203, -0.011957094073295593, 0.03264865651726723, -0.004016357008367777, + 0.009647432714700699, 0.008203043602406979, -0.01562938652932644, 0.024186713621020317, + 0.03646402433514595, -0.033766016364097595, 0.03621875122189522, -0.005702613852918148, + -0.026257913559675217, -0.013721701689064503, 0.036273255944252014, 0.041314996778964996, + -0.04594794288277626, 0.059901293367147446, -0.012883683666586876, 0.005474373232573271, + 0.013517307117581367, -0.007535353768616915, 0.015424991957843304, 0.003645039862021804, + 0.0035632820799946785, -0.0031936680898070335, 0.019581018015742302, -0.007365024648606777, + 0.0034678978845477104, 0.026039892807602882, 0.0028819660656154156, -0.026802966371178627, + -0.01849091239273548, 0.03403853997588158, -0.003099987283349037, -0.018341023474931717, + 0.01967640221118927, 0.0371180884540081, 0.03000515140593052, -0.009613366797566414, + 0.039162036031484604, -0.02623066119849682, 0.029242077842354774, -0.012767859734594822, + 0.024881655350327492, -0.02627154067158699, 0.00167603709269315, -0.010328749194741249, + 0.002060980536043644, 0.012631596066057682, -0.019049592316150665, 0.008427876979112625, + -0.013265220448374748, 0.007446782663464546, -0.014403018169105053, -0.0042684441432356834, + -0.006107996683567762, -0.042023561894893646, -0.04624772071838379, -0.003226030617952347, + -0.010267429985105991, -0.0005965772434137762, -0.03842621669173241, -0.017087401822209358, + -0.009933585301041603, -0.006053491495549679, 0.02083463966846466, -0.04731057584285736, + -0.007160630077123642, -0.003931192681193352, -0.013776207342743874, 0.031449541449546814, + -0.027811314910650253, 0.0048952545039355755, 0.011173580773174763, -0.021624965593218803, + -0.0014929333701729774, -0.016133559867739677, 0.015261475928127766, 0.019076844677329063, + 0.03551018238067627, -0.07363662123680115, -0.005736679770052433, 0.012856430374085903, + 0.011050943285226822, 0.004425146616995335, -0.01631070300936699, 0.028233729302883148, + 0.029214825481176376, -0.008802601136267185, 0.0659513771533966, -0.002537901746109128, + 0.0056821745820343494, -0.025208687409758568, -0.036382269114255905, -0.015356860123574734, + -0.025372203439474106, 0.017278170213103294, 0.03191283717751503, -0.017387181520462036, + 0.0008678261074237525, -0.011173580773174763, -0.01610630750656128, -0.02283770777285099, + 0.022456170991063118, -0.011888962239027023, 0.0021291121374815702, 0.03491062670946121, + 0.04033390060067177, 0.03700907900929451, 0.017864102497696877, -0.02144782431423664, + -0.025917256250977516, -0.03880775347352028, -0.01992167718708515, 0.012025224976241589, + 0.008414250798523426, 0.029242077842354774, 0.016365207731723785, 0.015016201883554459, + -0.039816100150346756, 0.04000686854124069, 0.003173228818923235, -0.00256174779497087, + 0.007760188076645136, -0.023028476163744926, -0.0007447634125128388, 0.03134053200483322, + 0.01648784428834915, -0.007637551054358482, -0.017577949911355972, 0.04041565954685211, + -0.01573839597404003, -0.0010126057313755155, 0.03237612918019295, -0.007555793039500713, + 0.030795477330684662, 0.03801742568612099, 0.008659524843096733, -0.03869874030351639, + -0.027988456189632416, -0.0009529906092211604, 0.02127068117260933, 0.024759018793702126, + 0.0029228450730443, 0.008264361880719662, -0.01060127466917038, 0.00820985622704029, + -0.021624965593218803, -6.806505552958697e-6, -0.04183279350399971, -0.023082982748746872, + 0.004799870308488607, 0.01783685013651848, 0.015138838440179825, -0.0042105321772396564, + -0.04071543738245964, -0.008380184881389141, 0.022129138931632042, 0.024486493319272995, + -0.007317332550883293, 0.022646939381957054, 0.03436557203531265, -0.024554625153541565, + 0.030359435826539993, 0.03177657350897789, -0.02779768779873848, -0.023573528975248337, + -0.01601092331111431, -0.008645898662507534, 0.00047990187886171043, 0.0027933951932936907, + 0.015111586079001427, -0.008066779933869839, -0.015683891251683235, -0.009252269752323627, + 0.024309350177645683, -0.022101886570453644, 0.012583903968334198, 0.009170511737465858, + 0.008468756452202797, 0.029378341510891914, -0.03278492018580437, 0.008298427797853947, + 0.019117724150419235, -0.006683708634227514, 0.020875519141554832, 0.025344951078295708, + 0.026053519919514656, -0.0010832922998815775, -0.0018361463444307446, -0.01507070753723383, + -0.030495699495077133, 0.02454099804162979, 0.04572992026805878, -0.029514603316783905, + 0.02877878211438656, 0.00827798806130886, -0.0069460151717066765, -0.007828319445252419, + -0.004053829703480005, 0.04196905717253685, -0.034065794199705124, -0.006871070712804794, + -0.004435366485267878, -0.013299286365509033, -0.043277185410261154, -0.012352257035672665, + -0.03452908992767334, 0.024786271154880524, 0.00803952757269144, 0.01126896496862173, + -0.00010214415669906884, 0.009388532489538193, 0.03150404617190361, -0.028806036338210106, + 0.038998521864414215, 0.017523445188999176, 0.03237612918019295, -0.019649149850010872, + -0.004881628323346376, 0.011568743735551834, -0.00045307507389225066, 0.016610480844974518, + 0.003052295185625553, -0.04989957436919212, -0.02501791901886463, -0.0035155899822711945, + -0.03619150072336197, 0.02351902425289154, 0.044912341982126236, 0.007126564159989357, + 0.017823223024606705, 0.011316657066345215, -0.0077465614303946495, 0.009170511737465858, + -0.06366215646266937, -0.040797196328639984, 0.02409132942557335, -0.018368275836110115, + -0.06404369324445724, 0.0018020805437117815, -0.0087685352191329, -0.012604343704879284, + -0.013415109366178513, 0.012434015050530434, 0.02018057554960251, -0.002093343064188957, + -0.010751164518296719, 0.019935302436351776, 0.01767333410680294, -0.018886076286435127, + -0.039298299700021744, 9.868434426607564e-5, -0.042977407574653625, 0.08350207656621933, + -0.01917222887277603, -0.0337115079164505, -0.008080406114459038, 0.016542349010705948, + 0.008073593489825726, 0.013769393786787987, -0.004765804391354322, -0.009736004285514355, + -0.011486985720694065, 0.029242077842354774, 0.015929164364933968, -0.010015343315899372, + -0.0419418066740036, 0.020916396751999855, 0.022415293380618095, 0.059356238692998886, + -0.026598572731018066, 0.01838190294802189, 0.0002623066247906536, -0.01910409703850746, + -0.004230971448123455, 0.005770745687186718, -0.02490890771150589, -0.031177014112472534, + 0.018327396363019943, 0.004360421560704708, -0.02722538262605667, -0.02090277150273323, + 0.013605877757072449, 0.0008908205199986696, 0.017346302047371864, -0.036109741777181625, + 0.006196567788720131, 0.005116682033985853, -0.020889144390821457, -0.012604343704879284, + 0.021597713232040405, -0.012747419998049736, -0.010846548713743687, -0.005160967819392681, + -0.031994592398405075, -0.016024550423026085, -0.016051802784204483, 0.010144793428480625, + -0.039816100150346756, 0.03496513143181801, 0.009681498631834984, 0.004012950696051121, + -0.001773124560713768, 0.01184127014130354, 0.01842278055846691, 0.04153301566839218, + 0.006608764175325632, 0.017755091190338135, 0.002776362234726548, 0.009347653947770596, + 0.01451202854514122, -0.04142400622367859, 0.04098796471953392, -0.009068313986063004, + 0.024527370929718018, -0.04145125672221184, -0.008829853497445583, -0.005678767804056406, + 0.005896789021790028, 0.016773996874690056, -0.009708750993013382, -0.0006255331682041287, + -0.0016036472516134381, -0.026802966371178627, 0.02484077773988247, -0.011439293622970581, + -0.01498894952237606, -0.0058525032363832, 0.014103238470852375, 0.021638592705130577, + -0.018749812617897987, 0.06938520818948746, 0.023777924478054047, 0.012284125201404095, + -0.022197270765900612, -0.03799017518758774, -0.013244780711829662, -0.03221261501312256, + 0.005396021995693445, 0.02440473437309265, -0.055758893489837646, -0.02905130945146084, + -0.007508100941777229, 0.00016639010573271662, 0.013060825876891613, 0.04480333253741264, + 0.02256518229842186, 0.003256689989939332, 0.010764790698885918, -0.02395506575703621, + 0.0010398583253845572, -0.03924379497766495, -0.00451031094416976, 0.019621897488832474, + -0.03106800466775894, -0.034447330981492996, 0.01175951212644577, -0.02905130945146084, + 0.014770927838981152, -0.00234542996622622, 0.003306085243821144, -0.0087821613997221, + -0.007147003430873156, -0.05739405006170273, -0.02035771869122982, 0.018668055534362793, + -0.021079912781715393, 0.028860541060566902, 0.03657303750514984, 0.0032396570313721895, + 0.0011539787519723177, 0.00938171986490488, -0.028424497693777084, 0.020602991804480553, + -0.0005829508882015944, -0.018640803173184395, -0.006302171852439642, 0.01994892954826355, + -0.025535719469189644, -0.026857471093535423, -0.03327546641230583, -0.02242891862988472, + -0.010049409233033657, -0.004636354744434357, -0.016256196424365044, 0.021079912781715393, + -0.034856121987104416, 0.01430763304233551, 3.494405245874077e-5, 0.039434563368558884, + -0.01770058646798134, -0.010648966766893864, 0.02875152975320816, 0.008114472031593323, + -0.031449541449546814, 0.047801122069358826, -5.264229912427254e-5, 0.009204577654600143, + -0.013851151801645756, 0.027102746069431305, 0.005075803492218256, 0.03553743660449982, + 0.006509973201900721, 0.022578807547688484, -0.04357696324586868, 0.05554087087512016, + -0.005086022894829512, 0.017523445188999176, -0.0743451863527298, -0.034747108817100525, + 0.006128436420112848, 0.00773974834010005, 0.047664858400821686, -0.028560761362314224, + -0.009919959120452404, 0.06273556500673294, -0.011888962239027023, 0.015561254695057869, + -0.026121651753783226, -0.005453933496028185, 0.015329607762396336, -0.01498894952237606, + -0.03799017518758774, 0.017278170213103294, 0.01610630750656128, 0.019594645127654076, + 0.010403693653643131, -0.011752698570489883, -0.005494812503457069, -0.0024340010713785887, + -0.004643167834728956, 0.01685575395822525, 0.022742323577404022, -0.017319049686193466, + -0.020480355247855186, 0.006087557412683964, 0.0055663506500422955, 0.033929530531167984, + -0.013544559478759766, -0.028588013723492622, -0.0014707907103002071, 0.015397738665342331, + -0.019117724150419235, 0.02984163537621498, 0.02022145502269268, -0.014294006861746311, + -0.011861709877848625, -0.002875152975320816, 0.031722068786621094, 0.020344091579318047, + 0.01444389671087265, -0.03139503672719002, -0.03332997113466263, 0.034883372485637665, + 0.0247726459056139, 0.04551190137863159, -0.011153141036629677, -0.000347471097484231, + -0.03150404617190361, -0.018599923700094223, -0.00968831218779087, 0.008972929790616035, + -0.005941074341535568, 0.04289564862847328, -0.014907191507518291, -0.005896789021790028, + 0.021216176450252533, -0.022115513682365417, -0.009320401586592197, -0.019553765654563904, + -0.011595996096730232, 0.006775686517357826, -0.019417501986026764, -0.0024510337971150875, + -0.025671983137726784, -0.028560761362314224, -0.0015184828080236912, 0.0072151352651417255, + 0.0036143807228654623, -0.024827150627970695, 0.0071333772502839565, -0.03698182478547096, + 0.011132701300084591, -0.0027610326651483774, -0.007841945625841618, -0.00031085035880096257, + -0.002992680063471198, 0.00810765940696001, -0.011623249389231205, 0.04245960712432861, + 0.01862717606127262, 0.002408451633527875, 0.016501471400260925, 0.014294006861746311, + 0.005740086082369089, 0.0009964244673028588, 0.0031425694469362497, 0.027647798880934715, + 0.006615577265620232, 0.0071333772502839565, -0.04523937404155731, 0.0016726304311305285, + -0.028560761362314224, 0.04030664637684822, -0.014416644349694252, 0.026244288310408592, + 0.005917228292673826, -0.007439969573169947, -0.00014233114779926836, 0.041778288781642914, + -0.009763256646692753, -0.05044462904334068, 0.013135770335793495, -0.031177014112472534, + -0.01553400233387947, 0.025372203439474106, -0.04687453433871269, -0.0005846542189829051, + -0.0350741408765316, -0.019458381459116936, -0.025971760973334312, -0.01692388579249382, + 0.04333169013261795, 2.688004133233335e-5, -0.006959641817957163, 0.040224891155958176, + -0.00925908237695694, -0.00749447476118803, -0.013687635771930218, 0.03136778250336647, + -0.007637551054358482, -0.005392615217715502, 0.004609101917594671, 0.01359225157648325, + 0.0010253804503008723, -0.02052123472094536, 0.010301495902240276, 0.026462309062480927, + 0.0038664676249027252, -0.03551018238067627, 0.007126564159989357, 0.010941932909190655, + -0.007310519460588694, 0.012202367186546326, -0.011343909427523613, -0.017577949911355972, + -0.03327546641230583, 0.03248514235019684, 0.002396528609097004, -0.0010943636298179626, + -0.02932383492588997, 0.035428427159786224, 0.003055701730772853, -0.012508959509432316, + -0.0037199847865849733, 0.018163882195949554, -0.02745703049004078, 0.010342375375330448, + -0.016460591927170753, -0.0018071903614327312, -0.0030744378454983234, 0.0057060206308960915, + -0.006128436420112848, -0.013926096260547638, -0.032566897571086884, 0.01493444386869669, + -0.028233729302883148, 0.010063035413622856, -0.03553743660449982, -0.004377454519271851, + 0.024350229650735855, 0.028642520308494568, 0.020466728135943413, 0.005419868044555187, + 0.02752516232430935, 0.015220596455037594, -0.01917222887277603, 0.03725435212254524, + -0.010771604254841805, -0.010519517585635185, 0.010546769946813583, 0.0024765832349658012, + 0.0049429466016590595, 0.037199847400188446, 0.0077806273475289345, -0.056358449161052704, + -0.040797196328639984, 0.014907191507518291, -0.005201846826821566, 0.022878587245941162, + 0.004285477101802826, -0.005525471642613411, -0.004639761056751013, -0.014839059673249722, + -0.030877236276865005, 0.010137979872524738, 0.018068498000502586, -0.024827150627970695, + 0.022524302825331688, 0.007767001166939735, -0.004711299203336239, 0.0009708751458674669, + 0.031122509390115738, 0.02365528792142868, -0.009770069271326065, 0.0026860879734158516, + 0.03425656259059906, 0.012910936027765274, 0.0013515603495761752, -0.008734469301998615, + 0.014430270530283451, -0.008877545595169067, -0.004081082064658403, 0.01780959777534008, + -0.010465011931955814, -0.014130491763353348, 0.004012950696051121, -0.0006847224431112409, + 0.021297933533787727, 0.0026639450807124376, 0.04622047021985054, 0.006864257622510195, + -0.001592575921677053, -0.004057236015796661, -0.011814017780125141, -0.010376441292464733, + 0.00469085993245244, 0.004721519071608782, 0.017550697550177574, -0.02606714516878128, + 0.002813834697008133, 0.02946009859442711, 0.011800390668213367, -0.005007671657949686, + 0.009742816910147667, 0.0009998310124501586, -0.025372203439474106, 0.02372341975569725, + 0.020466728135943413, -0.04755584895610809, 0.014198622666299343, -0.03837171196937561, + -0.02704824134707451, -0.04240509867668152, -0.00012199812772450969, -0.011180393397808075, + 0.033220961689949036, 0.007801066618412733, -0.008945677429437637, 0.005447120405733585, + 0.03864423558115959, 0.0047896504402160645, 0.0024152647238224745, -0.006731400731950998, + 0.004489871673285961, -0.04856419563293457, -0.015465870499610901, -0.0006898323190398514, + -0.009831388480961323, 0.008809414692223072, 0.010683032684028149, 0.00500426534563303, + -0.020207829773426056, -0.03932555392384529, 0.011262151412665844, 0.010137979872524738, + -0.003968664910644293, -0.02807021513581276, -0.0005105611053295434, 0.0027508127968758345, + 0.0035428425762802362, -0.02736164629459381, 0.00718788243830204, 0.0024237812031060457, + 0.02959636226296425, 0.030713720247149467, -0.026557693257927895, -0.007221948355436325, + -0.007385463919490576, 0.0543145015835762, -0.005855910014361143, 0.019362997263669968, + 0.019553765654563904, 0.01655597612261772, -0.04758309945464134, -0.012243246659636497, + -0.019867170602083206, 0.00445239944383502, -0.011507425457239151, 0.0031050972174853086, + -0.0364367738366127, 0.0070379930548369884, -0.02554934471845627, -0.015997296199202538, + -0.02845175191760063, 0.010301495902240276, 0.019349370151758194, -0.04483058676123619, + -0.020207829773426056, 0.01845003478229046, -0.0004345517954789102, 0.013040386140346527, + 0.0055663506500422955, 0.006932388991117477, 0.031204266473650932, -0.008434690535068512, + -0.02103903517127037, 0.02529044635593891, -0.005644701886922121, 0.028124719858169556, + -0.004241191316395998, -0.038862258195877075, 0.01794585958123207, -0.010424133390188217, + -0.03025042451918125, -0.004588662646710873, 0.021938370540738106, 0.02079376019537449, + 0.04145125672221184, -0.015424991957843304, -0.005157561041414738, -0.0009189248085021973, + -0.02725263498723507, 0.02324649877846241, -0.014825433492660522, -0.019894422963261604, + 0.029541855677962303, 0.02786581963300705, 0.003651853185147047, 0.020889144390821457, + 0.0063668969087302685, 0.05308813229203224, 0.0104990778490901, 0.038317203521728516, + -0.038562480360269547, -0.025712860748171806, -0.054123733192682266, -0.015016201883554459, + 0.00028061697958037257, -0.021624965593218803, 0.0010330452350899577, 0.004466025624424219, + 0.04344069957733154, -0.016160812228918076, -0.04632947966456413, -0.012529399245977402, + -0.027688676491379738, -0.01885882392525673, 0.0005552724469453096, -0.03741787001490593, + -0.008639085106551647, 0.002660538535565138, 0.016201691702008247, 0.02640780434012413, + -0.00788282509893179, 0.0158065278083086, -0.03700907900929451, -0.0009325511055067182, + -0.028588013723492622, -0.01808212324976921, -7.281563739525154e-5, -0.0037574570160359144, + 0.010083475150167942, 0.008434690535068512, -0.009647432714700699, -0.012904122471809387, + -0.0023164739832282066, -0.01974453404545784, 0.031449541449546814, 0.009109193459153175, + 0.02559022419154644, 0.02406407706439495, 0.01004259567707777, 0.0027695491444319487, + 0.0018668054835870862, -0.01089424081146717, -0.004380861297249794, 0.022946719080209732, + 0.00797139573842287, 0.04254136234521866, 0.015097959898412228, -0.02263331413269043, + -0.0012680991785600781, -0.006421402096748352, -0.00749447476118803, 0.0057196468114852905, + -0.015125212259590626, -0.006373709999024868, -0.004970199428498745, -0.02172034978866577, + 0.01357862539589405, -0.02024870738387108, 0.015329607762396336, 0.000634475436527282, + 0.005143934860825539, -0.0012706541456282139, 0.021842986345291138, 0.00675524678081274, + -0.009150072000920773, 0.0013277143007144332, -0.006097777280956507, -0.001305571524426341, + 0.017686959356069565, -0.031449541449546814, 0.007385463919490576, -0.028969550505280495, + -0.015193344093859196, -0.015125212259590626, -0.006452061235904694, -0.006881290581077337, + 0.009892706759274006, -0.024145834147930145, 0.018191134557127953, 0.003447458380833268, + -0.02613527700304985, 0.002405045088380575, 0.001712657744064927, -0.014294006861746311, + 0.044367291033267975, -0.033766016364097595, 0.013040386140346527, 0.04859144985675812, + -0.01190940197557211, -0.011739072389900684, 0.02286496013402939, 0.04305916279554367, + -0.0019093877635896206, -0.004374047741293907, -0.008352932520210743, 0.012938188388943672, + 0.03188558295369148, 0.020957276225090027, -0.018095750361680984, -0.02290583960711956, + -0.0037540504708886147, -0.015125212259590626, -0.012740607373416424, 0.015343233942985535, + -0.04030664637684822, -0.01658322848379612, -0.021297933533787727, -0.0007192140910774469, + 0.01933574490249157, -0.00529382424429059, -0.011568743735551834, 0.0012757639633491635, + 0.0005305747617967427, 0.0013719998532906175, -0.00615909555926919, 0.029269330203533173, + 0.0007677578250877559, 0.026285165920853615, 0.02093002386391163, 0.010717098601162434, + -0.020207829773426056, -0.0029279550071805716, 0.008734469301998615, -0.008877545595169067, + 0.006090964190661907, 0.0020030688028782606, 0.010860174894332886, -0.000491399085149169, + -0.027279887348413467, 0.0014213952235877514, -0.008502822369337082, 0.026516813784837723, + 0.01262478344142437, 0.003365700365975499, 0.0030352622270584106, 0.01395334955304861, + -0.06202699616551399, -0.006441841833293438, 0.03932555392384529, 0.0171964131295681, + -0.014225875958800316, -0.033220961689949036, 0.04158752039074898, 0.016283448785543442, + -0.020344091579318047, -0.02001706138253212, -0.00026422282098792493, 0.015561254695057869, + 0.007324145641177893, -0.002779768779873848, 0.01910409703850746, -0.007712495978921652, + -0.0009478807332925498, -0.013026759959757328, -0.012052478268742561, -0.009967651218175888, + -0.00659173121675849, 0.011132701300084591, 0.019935302436351776, 0.029650866985321045, + 0.029923394322395325, -0.01665136031806469, 0.008087219670414925, 0.008352932520210743, + -0.003934598993510008, 0.026285165920853615, -0.001005792524665594, -0.007848759181797504, + 0.009054687805473804, -0.007521727122366428, -0.012570277787744999, 0.00029275292763486505, + 0.0015789495082572103, 0.007365024648606777, 0.04166927933692932, -0.017686959356069565, + -0.0034185023978352547, 0.007712495978921652, -0.005985360126942396, -0.02629879303276539, + -0.01678762398660183, -0.031585805118083954, 0.014130491763353348, -0.00020907880389131606, + 0.00810765940696001, 0.019349370151758194, -0.010710285976529121, -0.018027618527412415, + -0.010233364067971706, -0.0023318035528063774, 0.010049409233033657, -0.0015593616990372539, + 0.021161671727895737, -0.011391601525247097, -0.004227565135806799, -0.00866633839905262, + 0.005103055853396654, -0.024254845455288887, 0.016092680394649506, -0.0026980109978467226, + 0.015888286754488945, -0.01145291980355978, 0.042977407574653625, 0.02470451407134533, + -0.006431621965020895, -0.05464153364300728, 0.017455313354730606, 0.0029228450730443, + -0.03657303750514984, -0.016542349010705948, -0.014961697161197662, 0.01146654598414898, + -0.022578807547688484, 0.03305744752287865, -0.021093539893627167, -0.019485633820295334, + 0.013919283635914326, 0.009497543796896935, 0.005334703251719475, -0.010015343315899372, + ], + index: 25, + }, + { + title: "Bill Johnson (center)", + text: 'William Levi Johnson, Sr. (September 14, 1926 \u2013 January 7, 2011), known as Bill "Tiger" Johnson, was a professional football player and coach. He was born in Tyler, Texas, where he was raised by his single mother and five older siblings. Among his siblings was older brother Gilbert Johnson, who played quarterback at Southern Methodist University with the iconic running back Doak Walker.', + vector: [ + 0.07187927514314651, -0.03665780648589134, -0.014136985875666142, -0.007833498530089855, + -0.03672025352716446, 0.04143518581986427, 0.0021954872645437717, -0.0465872623026371, + 0.01088961586356163, 0.0881161242723465, -0.06207471713423729, 0.0063581308349967, + -0.022060254588723183, 0.044776227325201035, -0.02248178794980049, 0.054799359291791916, + -0.04302764683961868, 0.04274662211537361, 0.04440153390169144, -0.028773566707968712, + 0.04768012464046478, -0.007404158357530832, 0.02081126719713211, -0.004839829634875059, + 0.05973286181688309, 0.011826357804238796, 0.018375739455223083, -0.003979198634624481, + -0.013028508983552456, -0.07394010573625565, 0.003674757666885853, 0.012880191206932068, + 0.03703249990940094, -0.000524477509316057, 0.02499537728726864, 0.003684515366330743, + -0.04646236449480057, -0.019890137016773224, 0.017189200967550278, 0.030287964269518852, + 0.013824738562107086, -0.024136697873473167, -0.04958483204245567, -0.04883544147014618, + 0.04627501592040062, 0.024761192500591278, -0.07194172590970993, 0.009632822126150131, + 0.0005493596545420587, -0.013504685834050179, 0.015760671347379684, -0.015401585958898067, + 0.012591362930834293, 0.05873367190361023, 0.014246271923184395, -0.004718833602964878, + 0.003508876310661435, 0.09092634171247482, -0.008883428759872913, 0.0008235516143031418, + -0.04743032902479172, -0.003065875731408596, 0.02216954156756401, -0.00829015951603651, + 0.06594657897949219, -0.001378765911795199, 0.001493907067924738, 0.0473678782582283, + -0.011061351746320724, 0.05536140501499176, -0.002232566475868225, 0.002765337936580181, + 0.03943680226802826, 0.0330045148730278, -0.023231182247400284, -0.014222853817045689, + 0.014418007805943489, 0.01840696483850479, -0.014371170662343502, -0.020873716101050377, + 0.017267262563109398, -0.03987395018339157, -0.007833498530089855, 0.028867240995168686, + -0.010468082502484322, 0.00832919031381607, 0.03387880697846413, -0.07906095683574677, + -0.04583786800503731, -0.011787327006459236, 0.06235573813319206, 0.0018959251465275884, + -0.0018090814119204879, 0.014823929406702518, 0.08068463951349258, -0.016392970457673073, + -0.007732017897069454, -0.028242746368050575, 0.019359318539500237, -0.01531571801751852, + 0.02702498249709606, -0.0075563788414001465, -0.02295015938580036, -0.008485313504934311, + 0.028430094942450523, -0.025135887786746025, -0.034222278743982315, 0.03734475001692772, + 0.009383024647831917, 0.03653290495276451, 0.0013924267841503024, 0.01812594197690487, + -0.02457384392619133, 0.0007293896051123738, -0.022700361907482147, 0.0054174866527318954, + 0.003555713454261422, -0.013934025540947914, -0.023434141650795937, 0.006350324489176273, + -0.03241124376654625, -0.06191859394311905, -0.019437380135059357, 0.012427433393895626, + 0.010905228555202484, -0.04671216011047363, -0.004098242614418268, 0.014293109066784382, + 0.011069158092141151, -0.008055973798036575, -0.024292821064591408, -0.01723603717982769, + -0.01444142684340477, 0.0174702238291502, 0.005444807931780815, -0.03384758159518242, + 0.025526197627186775, -0.045431949198246, 0.049709733575582504, 0.047149308025836945, + 0.0017944448627531528, 0.009999711997807026, -0.00452367914840579, 0.05080259591341019, + 0.0714421272277832, -0.04677461087703705, 0.0295073464512825, 0.011701459065079689, + 0.018547475337982178, -0.03734475001692772, -0.016908178105950356, 0.026915697380900383, + -0.009172257035970688, 0.00434804055839777, 0.015385974198579788, 0.018297677859663963, + -0.046680934727191925, -0.005183301400393248, -0.008758530020713806, 0.005440905224531889, + -0.02752457931637764, -0.002650196896865964, -0.018001042306423187, 0.011123801581561565, + -0.014222853817045689, 0.005273072049021721, 0.01932809315621853, -0.011147219687700272, + -0.005034984089434147, 0.01449606940150261, -0.013020702637732029, -0.030881233513355255, + -0.006982624996453524, -0.009906037710607052, -0.04849196970462799, 0.009398636408150196, + 0.015659190714359283, -0.014699030667543411, 0.010647624731063843, 0.035970862954854965, + -0.013668615370988846, 0.020452182739973068, -0.005554094444960356, -0.010608593933284283, + -0.0003359095426276326, -0.0043831681832671165, 0.028367646038532257, 0.015838732942938805, + 0.01634613424539566, -0.011342374607920647, 0.02686885930597782, -0.01995258778333664, + 0.02718110755085945, -0.015448423102498055, 0.030647048726677895, 0.006955303251743317, + 0.0014177968259900808, -0.02185729518532753, -0.0061161392368376255, 0.00318882311694324, + 0.07150457799434662, -0.007298775017261505, -0.013637389987707138, 0.020717592909932137, + -0.0026326330844312906, -0.0008552641957066953, -0.01309876423329115, -0.01121747586876154, + -0.030116228386759758, 0.02081126719713211, 0.023387305438518524, 0.01195906288921833, + -0.013075346127152443, 0.005792182870209217, 7.915950845927e-5, 0.008009137585759163, + 0.030506538227200508, 0.04006129875779152, 0.017595121636986732, 0.049366261810064316, + 0.009312768466770649, 0.04137273505330086, -0.011201863177120686, 0.01867237500846386, + 0.009000521153211594, -0.039655376225709915, -0.01793859340250492, -0.004332427866756916, + -0.018453801050782204, -0.029241938143968582, -0.04218457639217377, 0.0481484979391098, + -0.012841160409152508, 0.046837057918310165, -0.02721233107149601, 0.013012896291911602, + 0.042715396732091904, -0.030225515365600586, -0.03887476027011871, -0.06607148051261902, + 0.006955303251743317, 0.004320718813687563, 0.006479126401245594, -0.04596276581287384, + 0.0021642623469233513, 0.014691224321722984, -0.07350295782089233, -0.04611889272928238, + -0.044276632368564606, 0.010959872044622898, -0.018625536933541298, -0.04749277979135513, + -0.009625015780329704, -0.0562981441617012, 0.01611194759607315, -0.013379786163568497, + -0.016486644744873047, 0.024776805192232132, 0.043308667838573456, -0.055298954248428345, + -0.02279403619468212, 0.030287964269518852, -0.01914074458181858, 0.005901469383388758, + -0.009250319562852383, -0.03490922227501869, -0.03465942293405533, 0.0613253228366375, + 0.05739101022481918, -0.014058924280107021, -0.03768822178244591, 0.0033195766154676676, + -0.009273737668991089, 0.005093530286103487, 0.0014763431390747428, -0.017673183232545853, + -0.05907714366912842, -0.037438422441482544, -0.005573609843850136, 0.05536140501499176, + 0.01556551642715931, 0.04633746296167374, 0.04040477052330971, -0.035346366465091705, + 0.04405806213617325, 0.008040362037718296, -0.03618943318724632, 0.03987395018339157, + 0.03784434497356415, -0.03987395018339157, -0.01207615528255701, 0.041091714054346085, + 0.011201863177120686, -0.014277497306466103, 0.029101425781846046, 0.0043831681832671165, + -0.018812885507941246, -0.05158321559429169, 0.012700648978352547, 0.0005108166951686144, + 0.04243437573313713, 0.021029839292168617, -0.03141205385327339, -0.0512397438287735, + -0.020311672240495682, -0.01316121406853199, 0.0029643955640494823, -0.014347752556204796, + -0.007899850606918335, 0.00044836726738139987, -0.06644617766141891, -0.012646006420254707, + 0.055298954248428345, 0.03381635621190071, 0.024167923256754875, -0.0014236514689400792, + 0.03005377948284149, 0.035034120082855225, 0.0054174866527318954, -0.02690008468925953, + 0.0046563842333853245, 0.024511395022273064, -0.015073726885020733, -0.030568987131118774, + 0.04789869859814644, -0.03746964782476425, -0.007653956301510334, -0.0007362200412899256, + 0.002462848788127303, 0.012286921963095665, -0.017407773062586784, 0.0013621777761727571, + -0.040592119097709656, -0.003442523768171668, 0.011982480995357037, -0.012357177212834358, + -0.07462704926729202, 0.006100527010858059, -0.0686943531036377, -0.011701459065079689, + -0.023824451491236687, 0.0018832400674000382, 0.013457848690450191, 0.02352781593799591, + -0.001623684773221612, -0.02491731569170952, 0.03634555637836456, 0.041872330009937286, + -0.016908178105950356, -0.002453091088682413, 0.0008206242928281426, 0.028789179399609566, + -0.005261362995952368, -0.008860010653734207, 0.04511969909071922, -0.017907369881868362, + -0.05773448199033737, -0.01778247021138668, 0.022684749215841293, 0.0017105283914133906, + -0.009023940190672874, 0.0102885402739048, 0.0011192106176167727, 0.07550133764743805, + -0.04290274530649185, 0.017907369881868362, 0.062324512749910355, -0.016627155244350433, + -0.01597924344241619, 0.024292821064591408, -0.012060542590916157, 0.02744651585817337, + 0.05058402568101883, 0.019515441730618477, 0.025292012840509415, 0.002745822537690401, + 0.007251937873661518, -0.017282875254750252, 0.02170117013156414, 0.007763242349028587, + -0.021576272323727608, -0.00908638909459114, 0.02368393912911415, -0.012927028350532055, + -0.01590118184685707, -0.026697123423218727, -0.014027698896825314, -0.025245174765586853, + -0.06419799476861954, 0.012895803898572922, 0.08055974543094635, 0.04752400144934654, + 0.006689893081784248, -0.03266104310750961, 0.025338849052786827, -0.001320219598710537, + 0.0003932361432816833, 0.026681510731577873, 0.022653523832559586, 0.02449578233063221, + 0.019421767443418503, -0.067570261657238, -0.015526484698057175, -0.06582167744636536, + -0.027430905029177666, -0.020951777696609497, 0.015425004996359348, 0.027071820572018623, + 0.015924600884318352, -0.0017319953767582774, 0.03186481446027756, 0.01181855145841837, + -0.04646236449480057, -0.014800510369241238, 0.0034073961433023214, -0.03188042342662811, + -0.037407197058200836, -0.007993524894118309, 0.0174702238291502, 0.00011721462215064093, + -0.012482075951993465, -0.010046549141407013, 0.016517870128154755, -0.020358508452773094, + 0.01723603717982769, 0.024823641404509544, 0.03831271454691887, -0.00157489615958184, + -0.01614317297935486, -0.021404536440968513, -0.045244600623846054, 0.00881317351013422, + -0.01987452618777752, 0.0756886899471283, -0.0162992961704731, -0.02379322610795498, + 0.021482598036527634, 0.016205621883273125, 0.031084194779396057, 0.006451805122196674, + -0.007665665354579687, 0.0384376123547554, -0.0043909745290875435, 0.014121373184025288, + -0.037906792014837265, -0.05564242601394653, -0.02981959469616413, -0.00039030882180668414, + 0.03968660160899162, 0.0068225981667637825, -0.03834393993020058, -0.001300704199820757, + -0.00035249764914624393, -0.01720481365919113, -0.01389499381184578, -0.013543716631829739, + 0.03712617605924606, -0.01658031903207302, -0.0531756728887558, 0.03531514108181, + 0.015893375501036644, -0.013348561711609364, 0.03856251388788223, -0.011350180953741074, + -0.061013076454401016, 0.0026423907838761806, 0.010007518343627453, 0.013481266796588898, + -0.03993640094995499, -0.02112351357936859, 0.035471267998218536, -0.01253671944141388, + 0.003944070544093847, 0.013301724568009377, -0.032161448150873184, -0.007146554533392191, + 0.023746389895677567, 0.04040477052330971, 0.036314334720373154, 0.03253614529967308, + 0.06226206570863724, 0.00021088874200358987, 0.005663380958139896, -0.01455851923674345, + 0.04199723154306412, -0.0349404476583004, 0.014566325582563877, -0.013223662972450256, + 0.011194056831300259, 0.0011640960583463311, 0.03737597167491913, 0.04608766734600067, + -0.021763620898127556, -0.024636292830109596, -0.012286921963095665, 0.07593848556280136, + -0.017688795924186707, 0.009398636408150196, -0.0011045739520341158, 0.009164451621472836, + 0.01789175719022751, 0.02227882854640484, 0.035502489656209946, 0.0019017797894775867, + -0.016096336767077446, -0.009258124977350235, 0.046025216579437256, 0.052270159125328064, + 0.016205621883273125, -0.012880191206932068, 0.00046934635611250997, 0.002310628304257989, + -0.024043023586273193, -0.020358508452773094, -0.01199809368699789, -0.024121085181832314, + 0.019156357273459435, -0.018703598529100418, 0.037594545632600784, 0.05567365139722824, + -0.024292821064591408, 0.019093908369541168, 0.0322238951921463, 0.045712970197200775, + 0.0663837268948555, -0.003606453537940979, -0.005304296966642141, 0.0021135222632437944, + 0.0008318456821143627, -0.002417963230982423, 0.0007869601831771433, 0.0018149360548704863, + 0.03063143603503704, -0.000141243013786152, -0.044745005667209625, 0.0333792120218277, + -0.00622932892292738, -0.0205770805478096, -0.005963918752968311, -0.017485834658145905, + 0.04989708214998245, -0.04886666685342789, 0.010413439944386482, 7.37927621230483e-5, + -0.011225282214581966, -0.0034932640846818686, -0.048273395746946335, -0.01681450381875038, + 0.02384006232023239, -0.025682320818305016, 0.03250491991639137, -0.01637735776603222, + 0.011576559394598007, -0.0019310528878122568, 0.017985431477427483, -0.00690846610814333, + -0.058171626180410385, -0.006362034007906914, -0.00818867888301611, -0.0023477075155824423, + -0.0007854964933358133, -0.04583786800503731, -0.03906210884451866, 0.008883428759872913, + -0.001251915586180985, 0.0075485724955797195, -0.036439232528209686, 0.019359318539500237, + -0.03403493016958237, 0.020904941484332085, -0.007048977538943291, -0.017766857519745827, + 0.019047070294618607, -0.005948306526988745, 0.042715396732091904, -0.014324333518743515, + 0.008618018589913845, 0.02643171325325966, 0.014987858943641186, 0.007048977538943291, + -0.000664012914057821, -0.008243322372436523, 0.015838732942938805, 0.01801665499806404, + -0.0349404476583004, 0.004000665619969368, -0.00754076661542058, -0.019109521061182022, + 0.044432755559682846, -0.047024406492710114, 0.02329363115131855, -0.03419105336070061, + 0.030459700152277946, 0.03269226849079132, 0.06500983983278275, -0.012294728308916092, + 0.02783682569861412, 0.056391820311546326, -0.0012636248720809817, -0.013208050280809402, + 0.04240315034985542, 0.021763620898127556, 0.032005324959754944, 0.008711692877113819, + 0.004519776441156864, -0.03593963757157326, 0.006022465415298939, -0.02869550511240959, + 0.006443998776376247, -0.009039552882313728, -0.02647855132818222, -0.01253671944141388, + 0.04911646246910095, 0.0192188061773777, 0.013411011546850204, 0.0016031934646889567, + -0.010226091369986534, -0.0211547389626503, 0.01906268298625946, -0.0007220713305287063, + 0.008883428759872913, 0.018219616264104843, 0.0022189056035131216, -0.015222044661641121, + -0.0005161834415048361, 0.02391812577843666, 0.008664855733513832, -0.030600212514400482, + -0.01201370544731617, 0.03478432446718216, -0.003729400923475623, 0.00013172923354431987, + -0.047929923981428146, -0.001975938444957137, -0.007357321213930845, 0.0004947164561599493, + 0.038031693547964096, -0.032785940915346146, 0.052238933742046356, 0.01572163961827755, + 0.05632936954498291, 0.024058636277914047, 0.028789179399609566, 0.00037567224353551865, + -0.015737252309918404, -0.027618251740932465, 0.02452700585126877, -0.008899041451513767, + 0.0003481066960375756, 0.020015036687254906, 0.002802417380735278, -0.020936165004968643, + 0.053050775080919266, -0.01715797558426857, -0.03425350412726402, -0.0039694407023489475, + -0.030256740748882294, 0.017376549541950226, 0.013543716631829739, 0.004063114989548922, + 0.016236847266554832, -0.013504685834050179, 0.002398447832092643, -0.011943450197577477, + 0.016986239701509476, -0.011834163218736649, 0.029835207387804985, 0.025245174765586853, + -0.004781282972544432, -0.03133399412035942, -0.004492454696446657, 0.011841969564557076, + -0.01668960601091385, -0.001271430985070765, 0.012138604186475277, 0.0089302659034729, + -0.05726611241698265, -0.01825084164738655, 0.0051442701369524, 0.005058402195572853, + -0.013699839822947979, 0.004273881670087576, -0.02480802871286869, -0.015292299911379814, + 0.027227943763136864, -0.010101192630827427, -0.0018783612176775932, -0.0174702238291502, + -0.010725686326622963, 0.04102926328778267, -0.01259916927665472, 0.05732855945825577, + 0.028367646038532257, 0.01668960601091385, -0.01859431341290474, 0.036283109337091446, + 0.02243495173752308, -0.04574419558048248, -0.03016306646168232, -0.04102926328778267, + -0.007993524894118309, 0.03447207435965538, 0.01804788038134575, 0.014925409108400345, + -0.01133456826210022, -0.0030814881902188063, -0.020436570048332214, -0.0640731006860733, + 0.04639991372823715, -0.029991330578923225, -0.015682607889175415, 0.008524345234036446, + -0.02418353408575058, 0.0021291347220540047, -0.038843534886837006, -0.020826879888772964, + 0.003981150221079588, -0.015456229448318481, -0.03303574025630951, -0.012146410532295704, + -0.006213716696947813, 0.04318377003073692, 0.03703249990940094, 0.0027789988089352846, + 0.01692379079759121, 0.022466175258159637, -0.014784898608922958, 0.03250491991639137, + 0.01073349267244339, -0.012778710573911667, 0.004508066922426224, 0.007029462140053511, + 0.03856251388788223, -0.006049786694347858, 0.06632127612829208, -0.0013709597988054156, + -0.02298138290643692, 0.01339539885520935, 0.006010755896568298, -0.014160403981804848, + 0.009804558008909225, -0.023621490225195885, 0.012583556585013866, -0.021576272323727608, + -0.03800046816468239, 0.017876144498586655, -0.002146698534488678, 0.012333759106695652, + 0.004816411063075066, -0.06357350200414658, 0.031974099576473236, 0.00014356046449393034, + -0.026416100561618805, -0.026915697380900383, 0.030147453770041466, -0.0004154349444434047, + -0.015393780544400215, -0.033785130828619, 0.0029936686623841524, -0.02953857183456421, + -0.02279403619468212, 0.0063073905184865, -0.009109808132052422, -0.002080345991998911, + 0.006986528169363737, -0.006682087201625109, -0.005530675873160362, -0.015908988192677498, + 0.0137779014185071, -0.0102885402739048, -0.0016851583495736122, 0.006428386550396681, + -0.00968746468424797, -0.0020530244801193476, -0.019749626517295837, -0.004035793244838715, + 0.021732395514845848, 0.026837635785341263, -0.03712617605924606, 0.014839541167020798, + -0.046056441962718964, -0.008860010653734207, -0.01279432326555252, -0.007404158357530832, + -0.020483408123254776, -0.01836012676358223, 0.03228634595870972, 0.03105296939611435, + -0.0075212512165308, 0.012029318138957024, 0.021904131397604942, 0.02627559006214142, + 0.0044104899279773235, 0.027774376794695854, 0.014371170662343502, 0.01395744364708662, + -0.0034581362269818783, -0.024214759469032288, -0.004691512323915958, -0.029913268983364105, + 0.004992050118744373, -0.002359416801482439, 0.005585319362580776, -0.040435995906591415, + 0.012208860367536545, -0.008610213175415993, -0.01720481365919113, -0.00900832749903202, + 0.00252334657125175, 0.0017388258129358292, 0.004176304675638676, -0.004059211816638708, + 0.034846771508455276, -0.012107379734516144, 0.004160691983997822, 0.03465942293405533, + 0.0014070633333176374, 0.01147507969290018, -0.03447207435965538, -0.001024560653604567, + -0.04643113911151886, 0.03544004261493683, 0.001523180166259408, -0.01141262985765934, + 0.014293109066784382, 0.0019749626517295837, -0.018656762316823006, 0.008594600483775139, + -0.00033322616945952177, -0.010304152965545654, -0.004094339441508055, 0.008024749346077442, + -0.014300915412604809, -0.03447207435965538, -0.0152376564219594, 0.020483408123254776, + -0.0024804126005619764, -0.0043909745290875435, 0.017142362892627716, 0.01661154441535473, + 0.03634555637836456, -0.015620158985257149, -0.017595121636986732, 0.014628774486482143, + 0.007103620562702417, 0.016392970457673073, 0.02379322610795498, -0.028398869559168816, + 0.008500926196575165, -0.014628774486482143, -0.020389733836054802, 0.031115420162677765, + 0.00036249932600185275, 0.014012087136507034, -0.021810457110404968, 0.01925003156065941, + 0.010405633598566055, 0.042340703308582306, -0.04177865758538246, 0.024464556947350502, + 0.012232278473675251, 0.02457384392619133, 0.023777613416314125, 0.009437667205929756, + 0.027571415528655052, -0.035190243273973465, -0.0003381050191819668, -0.015417198650538921, + 0.033285535871982574, -0.038406386971473694, 0.009788945317268372, 0.01139701809734106, + 0.017407773062586784, 0.014527294784784317, -0.031146643683314323, 0.06819476187229156, + -0.03447207435965538, -0.027149882167577744, 0.027274779975414276, -0.01189661305397749, + -0.0050466931425035, -0.032473694533109665, -0.03178675100207329, -0.005534579046070576, + -0.007439286448061466, 0.02752457931637764, -0.017954206094145775, -0.019203193485736847, + -0.0018081056186929345, -0.007271453272551298, -0.012474270537495613, -0.022575462237000465, + 0.007314387243241072, -0.020202385261654854, -0.020436570048332214, 0.017829306423664093, + -0.026181915774941444, -0.0360957607626915, -0.022185154259204865, 0.012778710573911667, + 0.011240893974900246, 0.016830116510391235, -0.016002662479877472, -0.016018275171518326, + 0.06301146000623703, -0.002890236908569932, -0.014371170662343502, 0.005924887955188751, + 0.02713426947593689, -0.008376027457416058, 0.02530762366950512, 0.024433333426713943, + 0.026837635785341263, 0.0031458891462534666, 0.009367411956191063, 0.05717243626713753, + -0.047805026173591614, 0.026369264349341393, -0.0009006375912576914, 0.03089684620499611, + 0.0061902981251478195, 0.028929689899086952, -0.008009137585759163, 0.04905401170253754, + 0.005917081609368324, 0.006826501339673996, -0.0025311526842415333, -0.0007986694108694792, + -0.0005093530053272843, 0.03637678176164627, -0.02977275662124157, 0.0026326330844312906, + -0.004832023289054632, 0.002958540804684162, 0.0137779014185071, -0.02060830593109131, + 0.03384758159518242, 0.03475309908390045, -0.005222332198172808, -0.008922459557652473, + 0.023652715608477592, 0.021763620898127556, -0.02650977484881878, 0.02512027695775032, + -0.02465190552175045, 0.02833642065525055, 0.011428242549300194, -0.008899041451513767, + -0.04749277979135513, 0.03141205385327339, 0.0500844269990921, 0.006611831486225128, + 0.012927028350532055, -0.02752457931637764, 0.01642419584095478, 0.03005377948284149, + -0.003846493549644947, 0.01249768864363432, 0.016002662479877472, -0.023621490225195885, + -0.015830926597118378, 0.017173588275909424, -0.03668902814388275, 0.013723257929086685, + -0.037750668823719025, 0.020155547186732292, -0.006112236063927412, -0.043808262795209885, + 0.011069158092141151, -0.04021742194890976, -0.01867237500846386, 0.03606453537940979, + -0.044620104134082794, 0.014613162726163864, 0.012544525787234306, 0.04096681624650955, + -0.011389211751520634, -0.02838325873017311, -0.008938072249293327, 0.032785940915346146, + 0.016314908862113953, 0.023121895268559456, -0.015729445964097977, -0.004297300241887569, + 0.03890598565340042, 0.025885282084345818, -0.04196600615978241, 0.07718747109174728, + 0.021342087537050247, 0.0007503686938434839, -0.06001388654112816, 0.008282353170216084, + 0.00439487723633647, -0.07462704926729202, 0.018469413742423058, -0.0004617841332219541, + -0.006369839888066053, 0.012146410532295704, -0.012544525787234306, 0.00881317351013422, + -0.011881000362336636, 0.028679892420768738, -0.023043833673000336, 0.012450851500034332, + -0.04358968883752823, 0.021404536440968513, -0.009913844056427479, 0.0030814881902188063, + 0.00817306712269783, -0.009422055445611477, 0.0062371352687478065, -0.02794611267745495, + -0.014901991002261639, -0.04624379053711891, -0.0023516106884926558, -0.07206661999225616, + 0.01203712448477745, 0.02686885930597782, 0.03515901789069176, 0.034877996891736984, + 0.03109980747103691, 0.005479936022311449, -0.008266741409897804, 0.002792659681290388, + -0.00881317351013422, 0.006725021172314882, -0.011553141288459301, -0.01611194759607315, + 0.030756335705518723, -0.007525154389441013, -0.029413674026727676, 0.005557997617870569, + 0.0029117038939148188, 0.02635365165770054, -0.02274719811975956, -0.011365792714059353, + 0.02616630308330059, 0.03618943318724632, 0.0178605318069458, 0.04871053993701935, + 0.04327744245529175, -0.0010460276389494538, -0.011756101623177528, -0.019499829038977623, + -0.04243437573313713, 0.0047305431216955185, 0.0012099574087187648, 0.023512203246355057, + -0.01968717761337757, 0.01279432326555252, 0.015807507559657097, 0.0005225259228609502, + 0.00767737440764904, 0.036002084612846375, -0.030912458896636963, -0.004746155347675085, + -0.01385596301406622, -0.001081155496649444, 0.0030678273178637028, 0.00968746468424797, + 0.04608766734600067, -0.03350410982966423, -6.720630335621536e-5, -0.00929715670645237, + 0.013535910286009312, -0.025729157030582428, -0.0007957421476021409, 0.0376569963991642, + -0.034690648317337036, 0.000722559227142483, -0.025135887786746025, 0.002486267127096653, + 0.01193564385175705, -0.027977336198091507, -0.009406442753970623, 0.011881000362336636, + -0.00441439263522625, 0.009781138971447945, -0.01075691170990467, -0.0016090481076389551, + 0.001232400070875883, 0.002041315194219351, 0.008984909392893314, 0.03381635621190071, + -0.02224760316312313, 0.010819360613822937, -0.009000521153211594, -0.0022501302883028984, + 0.041747432202100754, -0.021107900887727737, 0.0021545046474784613, -0.006276166066527367, + 0.003731352277100086, -0.007084105163812637, -0.006092720665037632, -0.027493353933095932, + -0.0004856905434280634, 0.04905401170253754, -0.01778247021138668, -0.005952209699898958, + 0.006221522577106953, -0.03800046816468239, 0.0038055111654102802, -0.004059211816638708, + 0.030022554099559784, -0.028117848560214043, -0.02888285368680954, 0.01137359905987978, + 0.016314908862113953, -0.014472651295363903, -0.026384877040982246, 0.05005320534110069, + -0.013504685834050179, 0.01812594197690487, -0.028601830825209618, 0.007228519301861525, + -0.028742341324687004, 0.004679802805185318, -0.007119232788681984, 0.003908942919224501, + 0.038031693547964096, -0.0211547389626503, 0.024745579808950424, -0.01750144734978676, + 0.019968200474977493, 0.027649477124214172, -0.02081126719713211, 0.01645541936159134, + 0.03350410982966423, 0.015440616756677628, -0.037906792014837265, -0.007271453272551298, + -0.04558807238936424, 0.007665665354579687, 0.004262172617018223, 0.003596695838496089, + -0.008524345234036446, 0.013653002679347992, 0.002940976992249489, -0.007571991067379713, + -0.008235516026616096, 0.014238465577363968, -0.020467795431613922, 0.015815313905477524, + 0.038031693547964096, -0.029679082334041595, -0.01840696483850479, -0.006584509741514921, + 0.00025272497441619635, -0.006205910351127386, -0.020904941484332085, -0.040123745799064636, + -0.012981671839952469, 0.037094950675964355, -0.017532672733068466, 0.03800046816468239, + -0.007829595357179642, 0.022887710481882095, -0.01948421634733677, -0.04127906262874603, + 0.0037957532331347466, -0.0020374120213091373, -0.014917603693902493, 0.011576559394598007, + -0.0015358652453869581, 0.02177923172712326, -0.01956227794289589, -0.04721175506711006, + 0.006030271295458078, 0.007490026298910379, -0.0013826689682900906, 0.015948018059134483, + 0.01968717761337757, 0.010834973305463791, 0.0035693743266165257, -0.017282875254750252, + -0.022778423503041267, 0.015807507559657097, -0.018500639125704765, -0.021638721227645874, + -0.04049844294786453, -0.03659535571932793, 0.020873716101050377, 0.010452470742166042, + -0.0007767145871184766, -0.007154360879212618, 0.00013002162449993193, -0.017033077776432037, + -0.007564185187220573, -0.033722683787345886, -0.02825835905969143, 0.00031200313242152333, + -0.007985718548297882, 0.015284493565559387, -0.007415867876261473, -0.0011240894673392177, + 0.0019476410234346986, 0.024698741734027863, 0.0071699731051921844, -0.015651384368538857, + 0.011482886038720608, 0.006982624996453524, 0.018157167360186577, 0.0035635195672512054, + 0.004301203414797783, -0.044620104134082794, 0.009484504349529743, -0.005292587913572788, + -0.007755436468869448, -0.0008172091329470277, 0.019031457602977753, -0.010717879980802536, + -0.025292012840509415, 0.04199723154306412, -0.01976523920893669, -0.019671564921736717, + 0.025338849052786827, -0.016439808532595634, -0.008087199181318283, 0.04661848768591881, + -0.019421767443418503, -0.028586218133568764, 0.001630515092983842, 0.0004425126244314015, + 0.0004778843722306192, 0.005920984782278538, -0.022138316184282303, -0.0493038110435009, + -0.002646293956786394, -0.02778998762369156, 0.004102145787328482, -0.01987452618777752, + -0.008454089052975178, -0.0043909745290875435, 0.005335521884262562, -0.021482598036527634, + -0.006459611002355814, 0.008508732542395592, -0.006276166066527367, 0.007240228820592165, + 0.04374581202864647, 0.01579970121383667, 0.0020354604348540306, -0.004742252174764872, + -0.004613450262695551, 0.025010989978909492, 0.0295073464512825, -0.0009879692224785686, + 0.007970105856657028, -0.017673183232545853, 0.00817306712269783, 0.023356080055236816, + -0.01832890324294567, -0.0225130133330822, 0.007771048694849014, 0.021794844418764114, + 9.16615899768658e-5, 0.047305431216955185, -0.00945327989757061, -0.021529434248805046, + -0.03412860259413719, 0.004418295808136463, -0.004203625954687595, 0.0030307481065392494, + 0.02344975434243679, -0.0034347176551818848, 0.006756245624274015, -0.0001247768523171544, + -0.02274719811975956, -0.022606687620282173, -0.009445473551750183, -0.000857215782161802, + -0.0019915509037673473, -0.023434141650795937, 0.004320718813687563, -0.012232278473675251, + -0.012739679776132107, -0.001518301316536963, -0.016627155244350433, 0.04643113911151886, + -0.01193564385175705, -0.0098982322961092, -0.03721984848380089, 0.012286921963095665, + 0.030490925535559654, -0.0089302659034729, 0.005058402195572853, -0.02551058493554592, + -0.0015602594939991832, -0.00637764623388648, -0.006514254491776228, -0.012325952760875225, + -0.03194287419319153, -0.014410201460123062, -0.013738870620727539, 0.014847347512841225, + -0.004882763605564833, -0.005472129676491022, 0.04355846345424652, 0.004660287406295538, + -0.002224760362878442, 0.035845961421728134, -0.0014168210327625275, -0.015651384368538857, + 0.008493119850754738, -0.06582167744636536, 0.0038074625190347433, -0.009500117041170597, + -0.002453091088682413, 0.005597028415650129, -0.002289161318913102, -0.005319909192621708, + -0.019312480464577675, 0.0021427953615784645, 0.05183301120996475, 0.03993640094995499, + 0.001383644761517644, -0.010788136161863804, -0.020124323666095734, 0.013629584573209286, + -0.009141032584011555, 0.021420149132609367, -0.024433333426713943, -0.0058507295325398445, + -0.047180529683828354, 0.01723603717982769, -0.011162832379341125, -1.1419582733651623e-5, + -0.02216954156756401, 0.0036591452080756426, 0.0037352554500102997, 0.018766049295663834, + -0.02337169274687767, -0.01875043660402298, -0.040154971182346344, -0.027868051081895828, + 0.010858391411602497, 0.003987004514783621, 0.047929923981428146, -0.013988668099045753, + 0.013738870620727539, 0.001706625334918499, 2.4394300908170408e-6, 0.019125131890177727, + -0.038062915205955505, -0.010343183763325214, 0.004789089318364859, -0.002870721509680152, + 0.004098242614418268, -0.0024882187135517597, 0.007517348043620586, -0.01971840113401413, + 0.0026814215816557407, -0.021529434248805046, -0.007048977538943291, -0.009367411956191063, + -0.02922632545232773, 0.022840872406959534, -0.008633631281554699, 0.006381549406796694, + 0.01117844507098198, 0.009788945317268372, -0.00564776873216033, -0.035471267998218536, + 0.019093908369541168, 0.027321618050336838, 0.014667805284261703, -0.02065514400601387, + -0.010116804391145706, 0.039155781269073486, 0.01500347163528204, -0.023480979725718498, + 0.013153407722711563, 0.01723603717982769, 0.026369264349341393, -0.014222853817045689, + -0.0057297335006296635, 0.015112757682800293, -0.008454089052975178, 0.038031693547964096, + 0.041091714054346085, 0.01587776280939579, 0.020015036687254906, -0.029257548972964287, + 0.004886666312813759, -0.021997805684804916, 0.004746155347675085, -0.0021291347220540047, + 0.005901469383388758, -0.002068636706098914, -0.034565750509500504, -0.01856308802962303, + -0.008141841739416122, -0.031006133183836937, 0.013411011546850204, 0.02729039266705513, + -0.016798891127109528, 0.020249221473932266, -0.013504685834050179, -0.03109980747103691, + -0.009172257035970688, 0.04118538647890091, 0.025213949382305145, 0.004496357869356871, + -0.05198913440108299, 0.02324679307639599, 0.014792704954743385, 0.061512671411037445, + 0.00688895070925355, 0.013442235998809338, -0.0018227421678602695, 0.010842779651284218, + -0.011631202884018421, -0.0027789988089352846, 0.027399679645895958, 0.009031746536493301, + 0.020561469718813896, 0.03063143603503704, -0.009906037710607052, 0.04983463138341904, + -0.030928071588277817, 0.0019076344324275851, -0.016236847266554832, -0.007205100730061531, + 0.00018137163715437055, -0.020483408123254776, 0.006412773858755827, -0.017563898116350174, + -0.02279403619468212, -0.009859200567007065, 0.007993524894118309, 0.01339539885520935, + -0.0026931308675557375, 0.010358796454966068, 0.024089861661195755, 0.01622123457491398, + -0.006678184028714895, -0.014589743688702583, 0.022107092663645744, -0.0022950158454477787, + 0.0011211620876565576, -0.023199956864118576, 0.04671216011047363, 0.04321499168872833, + -0.0229033213108778, -0.0015300106024369597, 0.007177779451012611, -0.005928791128098965, + 0.0025370074436068535, 0.008500926196575165, 0.027758764103055, -0.002222808776423335, + 0.02127963677048683, 0.01707991398870945, 0.035346366465091705, 0.015393780544400215, + 0.025963343679904938, 0.00016478350153192878, 0.03175552561879158, -7.922049553599209e-5, + -0.06938129663467407, -0.030803171917796135, -0.0007967178826220334, -0.0009030770743265748, + -0.02010871097445488, 0.015503066591918468, 0.0025389590300619602, -0.0019320286810398102, + 0.02674396149814129, 0.026541000232100487, -0.03105296939611435, -0.01177952066063881, + -0.007232422474771738, 0.03409738093614578, 0.001816887641325593, 0.0087351119145751, + 0.019936975091695786, -0.020061872899532318, 0.013715452514588833, 0.0022208571899682283, + 0.026619061827659607, 0.04664970934391022, 0.01914074458181858, 0.012778710573911667, + -0.017360936850309372, 0.01968717761337757, 0.006709408946335316, 0.023824451491236687, + 0.03768822178244591, -0.02733723074197769, 0.008571181446313858, 0.01351249124854803, + -0.02760264091193676, -0.0014607307966798544, -0.019858913496136665, 0.008547763340175152, + 0.010077773593366146, -0.018969008699059486, -0.00028907248633913696, -0.001503664767369628, + 0.006151267327368259, 0.02721233107149601, -0.0017934690695255995, -0.017064301297068596, + 0.008984909392893314, -0.009679659269750118, -0.04180988296866417, -0.010764717124402523, + -0.01329391822218895, -0.03186481446027756, 0.012646006420254707, 0.010608593933284283, + -0.018001042306423187, -0.03384758159518242, -0.012083961628377438, 0.0007230471237562597, + 0.012872384861111641, -0.0165022574365139, 0.0022462273482233286, 0.007895947434008121, + 0.01259916927665472, -0.0068967570550739765, 0.029054589569568634, -0.01878166012465954, + 0.01463658083230257, -0.028430094942450523, 0.038843534886837006, 0.010483695194125175, + -0.042996421456336975, -0.010952065698802471, 0.002675567055121064, -0.03105296939611435, + 0.007275356445461512, -0.02073320560157299, -0.019905749708414078, 0.009070777334272861, + ], + index: 26, + }, + { + title: "Eumetcast", + text: "EUMETCast is a scheme for dissemination of various (mainly satellite based) meteorological data operated by EUMETSAT, the European Organisation for the Exploitation of Meteorological Satellites. The main purpose is the dissemination of EUMETSAT's own data, but various data from other providers are broadcast as well.EUMETCast is a contribution to GEONETCast and IGDDS (WMO's Integrated Global Data Dissemination Service) and provides data for GEOSS and GMES.", + vector: [ + -0.05129781365394592, 0.025064459070563316, -0.029005305841565132, -0.0011000141967087984, + -0.024079246446490288, -0.009493101388216019, -0.060916151851415634, 0.02346140146255493, + -0.04485218971967697, -0.020505767315626144, 0.02048906870186329, -0.05527205765247345, + -0.029756739735603333, -0.023745276033878326, 0.020205194130539894, -0.03523384779691696, + 0.0059154462069272995, -0.013283662497997284, 0.019303474575281143, 0.060648977756500244, + 0.023711880668997765, -0.04271478205919266, 0.03967565298080444, 0.004817519336938858, + 0.00010325678158551455, 0.002686372259631753, 0.02139078825712204, -0.006583386566489935, + -0.0032562087289988995, 0.021490978077054024, 0.013074930757284164, 0.001496603712439537, + -0.019103091210126877, -0.03720427304506302, -0.048692844808101654, -0.028086887672543526, + 0.03977584466338158, 0.018418453633785248, -0.018952805548906326, -0.0679963231086731, + -0.010929172858595848, 0.014444208703935146, 0.012164861895143986, 0.04368329420685768, + -0.0413455031812191, 0.03149338439106941, -0.04652203992009163, -0.0632205456495285, + 0.044418029487133026, -0.020288685336709023, 0.00888360571116209, -0.04595429077744484, + -0.021223802119493484, -0.00997735746204853, -0.05039609223604202, 0.04298195615410805, + 0.07173678278923035, 0.04508597031235695, -0.030023915693163872, -0.03947526961565018, + 0.03513365983963013, -0.01833496056497097, 0.007042595185339451, 0.006236892193555832, + -0.04184645786881447, 0.002087313449010253, -0.01620590128004551, -0.01213146559894085, + -0.012649118900299072, -0.004220547620207071, 0.0314599871635437, -0.01249048300087452, + 0.0074851056560873985, -0.019036298617720604, 0.0146028446033597, 0.004817519336938858, + 0.010611901059746742, -0.0024797283113002777, 0.035100262612104416, -0.01893610693514347, + -0.013884808868169785, -0.009952310472726822, 0.03747145086526871, 0.04471860080957413, + 0.0022856080904603004, -0.013509091921150684, -0.0640888661146164, -0.05239991471171379, + 0.0031831529922783375, -0.00708434171974659, -0.009376212023198605, 0.03259548544883728, + -0.007589471526443958, -0.018017688766121864, -0.03267897665500641, 0.04021000489592552, + 0.012715913355350494, 0.0002249080134788528, -0.05143140256404877, 0.05914610996842384, + -0.013417250476777554, -0.03483308479189873, 0.023294417187571526, -0.06555833667516708, + -0.00888360571116209, 0.032127927988767624, 0.025632208213210106, 0.008102950640022755, + 0.02255968190729618, 0.06295336782932281, 0.003005731152370572, 0.03950866684317589, + 0.008036156184971333, -0.0062535908073186874, -0.016155805438756943, -0.020722847431898117, + 0.006767069920897484, -0.019403664395213127, 0.02112361043691635, 0.017984291538596153, + -0.03177725896239281, -0.011096158064901829, -0.0317605584859848, 0.05907931923866272, + -0.006061558146029711, 0.037972405552864075, -0.038840726017951965, 0.015279133804142475, + 0.04421764612197876, -0.03874053433537483, -0.0380392000079155, 0.002730205887928605, + -0.013801315799355507, -0.017366446554660797, 0.00039737229235470295, 0.03166037052869797, + -0.04331592842936516, 0.06986655294895172, 0.029172291979193687, -0.06676062941551208, + 0.00268845958635211, -0.00641222670674324, 0.019754333421587944, 0.02252628654241562, + -0.03807259723544121, -0.05199915170669556, 0.05754305422306061, 0.021106911823153496, + -0.0317605584859848, -0.05179876834154129, 0.02561550959944725, -0.0019537252373993397, + 0.0029326751828193665, -0.03274577111005783, 0.02354489453136921, -0.01442751009017229, + 0.015312531031668186, -0.004537819419056177, -0.04107832536101341, 0.05463751405477524, + 0.0011699391761794686, -0.02705158106982708, -0.014293922111392021, -0.012615721672773361, + 0.016189202666282654, -0.044050659984350204, 0.030207598581910133, -0.014218778349459171, + 0.0024985140189528465, 0.014978560619056225, -0.005577301140874624, -0.021490978077054024, + 0.0009267671266570687, 0.013951602391898632, -0.025832589715719223, 0.03787221387028694, + 0.015112148597836494, 0.018501944839954376, -0.040844548493623734, 0.05390277877449989, + -0.058377981185913086, -0.005105568561702967, 0.02708497829735279, 0.01776721142232418, + -0.008967097848653793, 0.04919379949569702, 0.04238080978393555, 0.0040326896123588085, + 0.014761480502784252, -0.0587119497358799, -0.011021014302968979, 0.022008631378412247, + 0.025832589715719223, -0.0025924432557076216, -0.006671053357422352, 0.0008798025664873421, + -0.008825160562992096, -0.009868817403912544, 0.004788296762853861, -0.04415085166692734, + -0.0050512985326349735, -0.0307085532695055, 0.0428483672440052, -0.024530107155442238, + 0.007585296873003244, 0.05737606808543205, 0.04431783780455589, 0.006783768534660339, + 0.006103304214775562, 8.70148724061437e-5, -0.00030396500369533896, -0.028470953926444054, + 0.06372150033712387, 0.028504351153969765, 0.01920328289270401, -0.01256562676280737, + 0.0012523879995569587, -0.013976650312542915, -0.015496214851737022, 0.019453760236501694, + 0.03199433907866478, -0.028688034042716026, 0.018201371654868126, -0.01069539412856102, + -0.0012784794671460986, -0.03157687559723854, 0.03526724502444267, -0.06455642729997635, + -0.04167947173118591, -0.02120710350573063, -0.04648864269256592, 0.054570719599723816, + 0.021257199347019196, -0.04244760423898697, -0.032161325216293335, -0.054570719599723816, + 0.002794912550598383, -0.011739050038158894, -0.03152678161859512, 0.02346140146255493, + -0.05036269500851631, -0.012699214741587639, -0.02780301310122013, -0.01556300837546587, + -0.021557772532105446, 0.02528153918683529, -0.008107124827802181, 0.02504776045680046, + -0.055672820657491684, -0.06696101278066635, -0.03044137731194496, 0.021323993802070618, + 0.011346635408699512, 0.024730488657951355, -0.01731635257601738, 0.007138611748814583, + 0.0057609849609434605, -0.008203141391277313, -0.017516734078526497, -0.032127927988767624, + 0.0035588692408055067, -0.002734380541369319, -0.033563997596502304, 0.012323497794568539, + 0.02297714538872242, -0.04271478205919266, 0.02516465075314045, -0.0491270087659359, + -0.05757645145058632, 0.0037237671203911304, -0.03643614053726196, 0.00885020848363638, + 0.011396731249988079, -0.07687992602586746, -0.01780060864984989, 0.03351390361785889, + 0.03252869099378586, 0.0034085826482623816, 0.013442298397421837, -0.004562866874039173, + 0.05236651748418808, -0.045553527772426605, -0.003112184116616845, 0.0033710110001266003, + -0.027151772752404213, 0.014811575412750244, -0.025181347504258156, 0.010987617075443268, + 0.011864288710057735, 0.018268166109919548, -0.0014903417322784662, -0.013609282672405243, + 0.015137196518480778, 0.07026731967926025, 0.050195712596178055, 0.01576339080929756, + -0.05824439227581024, -0.023227622732520103, 0.039976224303245544, -0.0038218707777559757, + 0.010770536959171295, 0.01405179314315319, 0.005477110389620066, -0.03406495228409767, + -0.048692844808101654, -0.004070261027663946, -0.015362625941634178, -0.005105568561702967, + -0.015045355074107647, -0.01309162937104702, 0.029606452211737633, 0.009827070869505405, + -0.010778886266052723, -0.024964267387986183, 0.03500007092952728, -0.0254652239382267, + -0.01244873646646738, 0.006775419227778912, 0.004038951359689236, 0.020054906606674194, + 0.03753824532032013, -0.00019268511096015573, -0.07988565415143967, 0.0036194014828652143, + 0.029639849439263344, 0.0039700698107481, -0.004596264101564884, 0.0023816246539354324, + 0.0021770677994936705, 0.009593292139470577, -0.03870714083313942, -0.004445977509021759, + 0.08683223277330399, 0.027853108942508698, -0.003473289543762803, 0.00751850288361311, + 0.006074082106351852, -0.01947045885026455, -0.010194438509643078, 0.04458501189947128, + 0.003602702869102359, 0.011288190260529518, -0.029439467936754227, 0.014218778349459171, + -0.02369518205523491, 0.06428924947977066, 0.0039366730488836765, 0.04017660766839981, + -0.007334819063544273, -0.026968088001012802, 0.000786395336035639, 0.011630509980022907, + -0.03052487038075924, 0.06632646918296814, 0.04077775403857231, -0.007030071225017309, + 0.015479516237974167, -0.03316323459148407, 0.02180824987590313, 0.04575390741229057, + 0.012874549254775047, 0.007293072994798422, 0.021006722003221512, -0.022392697632312775, + -0.0395420640707016, 0.015112148597836494, -0.010945871472358704, -0.04121191427111626, + 0.021140309050679207, 0.013559187762439251, 0.04271478205919266, -0.029940422624349594, + 0.004408405628055334, 0.027435647323727608, 0.004437628202140331, 0.01469468604773283, + -0.01132158748805523, 0.024947568774223328, -0.017984291538596153, 0.021457580849528313, + -0.008215665817260742, -0.035901788622140884, -0.03747145086526871, 0.022693270817399025, + 0.02671761065721512, 0.03513365983963013, 0.0425477959215641, 0.011830892413854599, + 0.04782452434301376, -0.002454680623486638, -0.048692844808101654, 0.03079204633831978, + -0.016648411750793457, -0.014644590206444263, 0.0323450081050396, -0.014227127656340599, + -0.004316564183682203, 0.02648383192718029, 0.0185687392950058, 0.03184405341744423, + -0.01734974794089794, 0.03546762838959694, -0.017299653962254524, 0.05146479979157448, + -0.035367436707019806, 9.392909851158038e-5, -0.013250265270471573, -0.033447109162807465, + -0.02459689974784851, -0.006800467148423195, 0.0028763178270310163, -0.04829208180308342, + 0.010595202445983887, -0.026199957355856895, 0.0247137900441885, 0.026467133313417435, + -0.022125521674752235, 0.044351235032081604, -0.00450859684497118, -0.014736432582139969, + -0.02384546771645546, -0.031593576073646545, 0.021323993802070618, 0.024630296975374222, + 0.055439043790102005, 0.016823746263980865, 0.00952649861574173, -0.021040119230747223, + -0.04067756235599518, -0.022392697632312775, 0.06295336782932281, -0.033747684210538864, + -0.0069924998097121716, 0.003110097022727132, -0.0011125380406156182, 0.009058940224349499, + -0.023711880668997765, 0.013108327984809875, -0.014160334132611752, -0.004408405628055334, + -0.024580202996730804, -0.014928464777767658, 0.012164861895143986, 0.008537111803889275, + -0.01041151862591505, -0.007864996790885925, 0.01412693690508604, -0.02803679369390011, + 0.00537691917270422, -0.03496667370200157, -0.008395174518227577, 0.008783414959907532, + -0.029339276254177094, -0.008169744163751602, 0.009142432361841202, 0.0025423476472496986, + 0.002886754460632801, -0.00901719368994236, -0.004145404323935509, 0.028771527111530304, + -0.020990023389458656, 0.02690129540860653, 0.02274336665868759, -0.02381207048892975, + 0.03312983736395836, 0.016940634697675705, -0.032161325216293335, -0.017383145168423653, + 0.005773508921265602, 0.024313025176525116, -0.021975234150886536, -0.046154674142599106, + 0.006704450584948063, 0.012073020450770855, -0.0011334111914038658, 0.012315148487687111, + -0.008800113573670387, 0.009726880118250847, 0.012766008265316486, -0.010895775631070137, + 0.012398641556501389, 0.01446925662457943, 0.020455671474337578, 0.055739615112543106, + -0.01078723557293415, 0.013567537069320679, 0.003974244464188814, 0.022993844002485275, + -0.06933219730854034, -0.0247137900441885, 0.0383397713303566, -0.01866893097758293, + 0.02252628654241562, -0.014477605931460857, -0.001374495797790587, 0.03022429719567299, + -0.007409962359815836, 0.053034458309412, -0.006220194045454264, 0.009785325266420841, + 0.001418329426087439, -0.01273261196911335, -0.0037634260952472687, 0.019336871802806854, + 0.020873133093118668, 0.02882162295281887, 0.04528634995222092, 0.06425585597753525, + -0.015320880338549614, -0.007318120449781418, 0.02599957585334778, 0.0524333119392395, + 0.030023915693163872, 0.0254652239382267, 0.02187504433095455, 0.007681312970817089, + 0.03610217198729515, 0.005902922246605158, -0.012064671143889427, 0.02564890682697296, + -0.0077147101983428, 0.0008265760843642056, 0.03297955170273781, -0.017550131306052208, + 0.0013577973004430532, 0.005911271553486586, 0.0009841682622209191, 0.038206182420253754, + -0.003320915624499321, -0.024212835356593132, -0.00309757306240499, 0.006291162688285112, + 0.026166560128331184, -0.016548220068216324, -0.01596377231180668, 0.014794876798987389, + -0.0030286917462944984, -0.009601641446352005, 0.016155805438756943, -0.015045355074107647, + -0.059212904423475266, 0.01039482094347477, -0.009735229425132275, 0.004185063298791647, + 0.0191698856651783, 0.014218778349459171, -0.020021509379148483, 0.007217929698526859, + -0.018201371654868126, -0.015721643343567848, 0.017834005877375603, -0.015212339349091053, + 0.007126087788492441, 0.013550838455557823, -0.02264317497611046, -0.025331635028123856, + -0.004020165652036667, -0.03281256556510925, -0.046989597380161285, 0.002427545376121998, + 0.05006212368607521, 0.015738341957330704, 0.01309162937104702, 0.0023774500004947186, + -0.024379819631576538, 0.03603537753224373, 0.05797721445560455, -0.020121701061725616, + -0.04458501189947128, -0.028320668265223503, 0.022175617516040802, -0.007685487624257803, + -0.0024296327028423548, 0.005435363855212927, 0.004775772802531719, 0.005631571635603905, + 0.005222457926720381, 0.023979056626558304, -0.006863086484372616, 0.008950399234890938, + 0.05056307837367058, -0.03660312667489052, 0.010311327874660492, 0.01572999358177185, + 0.018886011093854904, 0.003055826760828495, 0.025064459070563316, -0.022776763886213303, + -0.03553442284464836, 0.020856434479355812, -0.014711384661495686, -0.02501436322927475, + -0.04124531149864197, -0.0416460745036602, 0.02972334250807762, -0.01908639259636402, + -0.011872638016939163, 0.024396518245339394, 0.013116677291691303, -0.004913535434752703, + 0.025749098509550095, 0.06893143802881241, -0.04137890040874481, -0.029873628169298172, + 0.004625486209988594, 0.04688940569758415, -0.009910563938319683, -0.00480917003005743, + -0.0061909714713692665, -0.018268166109919548, -0.017900798469781876, -0.02513125352561474, + 0.027335455641150475, 0.06225203350186348, -0.0016124495305120945, -0.012306799180805683, + 0.01947045885026455, 0.007226279005408287, 0.006833863910287619, -0.004496072884649038, + 0.0326455794274807, -0.003007818479090929, -0.016698507592082024, -0.004917710088193417, + 0.003226986387744546, -0.015830185264348984, 0.008215665817260742, -0.024830680340528488, + -0.00622436823323369, 0.015629801899194717, -0.027135074138641357, 0.02950626239180565, + -0.006270289421081543, 0.008031981997191906, 0.06519097089767456, 0.010611901059746742, + -0.0007002936326898634, -0.05814420059323311, 0.031192811205983162, -0.006967451889067888, + -0.03670331835746765, 0.014344017021358013, -0.042013444006443024, 0.02705158106982708, + -0.0013317059492692351, 0.04187985509634018, 0.005694190971553326, 0.021524375304579735, + -0.021908441558480263, 0.03830637410283089, -0.038272976875305176, -0.010937522165477276, + 0.0025903559289872646, 0.013049882836639881, -0.0044668507762253284, -0.037404656410217285, + 0.007247151806950569, 0.010110946372151375, 0.0016364536713808775, -0.020722847431898117, + -0.061283521354198456, -0.02468039281666279, 0.03920809552073479, -0.014410811476409435, + 0.009000495076179504, -0.0521327368915081, -0.04445142671465874, -0.04949437454342842, + -0.024313025176525116, -0.013575886376202106, -0.028120284900069237, -0.02018849551677704, + 0.01611405983567238, 0.015546309761703014, 0.024813981726765633, -0.0010196525836363435, + -0.03693709895014763, 0.01938696578145027, 0.014452558010816574, -0.04976155236363411, + 0.0010760100558400154, 0.0031267954036593437, 0.0009314636117778718, -0.026283450424671173, + -0.006608434021472931, -0.014327319338917732, -0.017600227147340775, -0.015487865544855595, + 0.007480931002646685, -0.057142291218042374, -0.022876953706145287, 0.01908639259636402, + 0.009276020340621471, 0.009760277345776558, 0.014911767095327377, 0.009952310472726822, + -0.038206182420253754, -0.005477110389620066, 0.018017688766121864, -0.00472567742690444, + -0.026867898181080818, 0.005556428339332342, -0.0022292507346719503, -0.0063704801723361015, + -0.03553442284464836, 0.03583499416708946, -0.013550838455557823, -0.03252869099378586, + -0.058077406138181686, -0.02825387381017208, -0.007460057735443115, -0.03169376775622368, + -0.03543423116207123, 0.04572051018476486, 0.027251962572336197, -0.031626973301172256, + 0.0027573409024626017, 0.0032499469816684723, -0.012932993471622467, -0.00781907606869936, + 0.000293267541565001, 0.03904110938310623, 0.016005519777536392, -0.0028804924804717302, + 0.014586145989596844, 0.009267671033740044, 0.029756739735603333, -0.02573239989578724, + 0.03636934980750084, 0.0012503006728366017, 0.006708625238388777, -0.015003608539700508, + -0.0014026745921000838, 0.01503700576722622, 0.00619514612480998, 0.01105441153049469, + -0.026550626382231712, 0.01920328289270401, 0.0037613387685269117, 0.008061204105615616, + 0.03663652390241623, -0.013016486540436745, -0.00761034432798624, -0.05073006451129913, + 0.00945135485380888, -0.006879784632474184, -0.006437274627387524, 0.009593292139470577, + -0.06405547261238098, -0.008532936684787273, 0.0015560920583084226, -0.011939432471990585, + -3.900666706613265e-5, -0.039742447435855865, -0.03456591069698334, 0.014836623333394527, + -0.016431331634521484, -0.015003608539700508, 0.0033021296840161085, 0.0431489422917366, + 0.024813981726765633, 0.04041038826107979, -0.03753824532032013, 0.046989597380161285, + -0.013667727820575237, 0.03037458471953869, -0.01369277574121952, 0.04431783780455589, + 0.009735229425132275, 0.01821807026863098, -0.02768612466752529, 0.0063704801723361015, + -0.0005891441833227873, 0.0007436053710989654, 0.0011751573765650392, 0.0308588407933712, + 0.012081369757652283, -0.02504776045680046, -0.021140309050679207, -0.03089223802089691, + 0.014502652920782566, -0.013342106714844704, -0.02999051846563816, -0.007831599563360214, + -0.033931367099285126, -0.009476402774453163, 0.025699002668261528, 0.003577655181288719, + -0.07093525677919388, 0.004020165652036667, -0.02855444699525833, -0.0036360998637974262, + 0.02731875702738762, 0.03055826760828495, 0.014569447375833988, 0.08375971019268036, + 0.015980470925569534, 0.017550131306052208, -0.0431489422917366, 0.0033981462474912405, + 0.037972405552864075, 0.016255997121334076, 0.008303332142531872, -0.004692280665040016, + 0.008470317348837852, -0.026834500953555107, -0.029522961005568504, -0.03643614053726196, + 0.01758352853357792, -0.004587914794683456, 0.00537691917270422, 0.029940422624349594, + 0.005756810307502747, 0.01901960000395775, -0.027435647323727608, 0.01162216067314148, + -0.011597112752497196, -0.018835915252566338, -0.0007070773863233626, 0.0032395103480666876, + -0.004320738837122917, 0.0011156690306961536, -0.010803934186697006, 0.025147952139377594, + -0.028120284900069237, 0.018769122660160065, 0.028604542836546898, 0.0015039092395454645, + 0.03613556921482086, -0.04064416512846947, -0.00834507867693901, -0.030057312920689583, + -0.03349720314145088, -0.02558211237192154, -0.013751220889389515, -0.007551899645477533, + 0.01886931248009205, -0.021641265600919724, -0.005381093826144934, 0.0037258544471114874, + 0.0004876485909335315, -0.004997028037905693, -0.0011845503468066454, -0.008036156184971333, + -0.017683718353509903, 0.00027030709316022694, -0.03192754462361336, -0.03540083393454552, + -0.026951389387249947, 0.01492011547088623, -0.0019641618710011244, 0.009384561330080032, + 0.03361409530043602, -0.010194438509643078, -0.041145119816064835, 0.03870714083313942, + -0.010277930647134781, -0.011229746043682098, 0.023344513028860092, -0.03194424510002136, + 0.00041146166040562093, -0.017249558120965958, 0.009309417568147182, -0.011329936794936657, + 0.009651737287640572, 0.045186158269643784, 0.012849501334130764, -0.01866893097758293, + -0.027068279683589935, 0.0019224155694246292, -0.051097430288791656, -0.013308710418641567, + -0.011371683329343796, 0.01995471492409706, -0.018318261951208115, -0.022810161113739014, + -0.028303969651460648, 0.01456109806895256, 0.022693270817399025, 0.01088742632418871, + 0.05036269500851631, 0.021824948489665985, 0.005410316400229931, 0.03543423116207123, + 0.03950866684317589, -0.010728790424764156, 0.003965895157307386, 0.014193730428814888, + 0.009952310472726822, -0.014110238291323185, -0.010044151917099953, -0.00312262075021863, + 0.005719238426536322, -0.017533432692289352, -0.021624566987156868, 0.019821127876639366, + -0.015187292359769344, 0.024930870160460472, 0.031560178846120834, 0.02255968190729618, + -0.015613104216754436, -0.03237840533256531, -0.02309403568506241, 0.031560178846120834, + 0.014744781889021397, -0.045553527772426605, -0.003548432607203722, -0.018117880448698997, + 0.021741455420851707, 0.00323116104118526, 0.013843062333762646, -0.022776763886213303, + -0.0011845503468066454, 0.017266256734728813, -0.019103091210126877, -0.042614590376615524, + 0.015713294968008995, -0.009676785208284855, 0.002907627495005727, -0.037638433277606964, + 0.01866893097758293, 0.006003112997859716, 0.02120710350573063, -0.03990942984819412, + -0.011663907207548618, -0.033296823501586914, -0.02962315082550049, 0.010244534350931644, + 0.026417037472128868, -0.021891742944717407, 0.014151984825730324, -0.020539162680506706, + -0.0017888275906443596, -0.013233566656708717, -0.0013233566423878074, -0.034766290336847305, + -0.00667940266430378, -0.012323497794568539, -0.006107478868216276, 0.030324488878250122, + -0.0010306109907105565, 0.04982834309339523, 0.006662704050540924, 0.018117880448698997, + -0.01773381419479847, -0.0017335137818008661, -0.040844548493623734, -0.05493808910250664, + 0.01486167125403881, -0.04632165655493736, -0.023795371875166893, -0.029706643894314766, + -0.021624566987156868, -0.02478058449923992, -0.017040826380252838, 0.011004315689206123, + -0.002882579807192087, -0.034465719014406204, 0.027101676911115646, 0.007376565597951412, + 0.015145545825362206, 0.026851199567317963, -0.015178943052887917, 0.01890270970761776, + 0.024363121017813683, -0.03007401153445244, 0.008140522055327892, -0.036536332219839096, + -0.024429915472865105, 0.009743578732013702, -0.019403664395213127, -0.00619514612480998, + -0.02867133542895317, 0.012983089312911034, -0.021908441558480263, 0.017416542395949364, + -0.015320880338549614, 0.003861529752612114, 0.03154347836971283, -0.012548928149044514, + 0.0016980294603854418, -0.013934903778135777, 0.05420335382223129, -0.006988325156271458, + -0.0007723059388808906, -0.005715063773095608, 0.009401259012520313, -0.021190404891967773, + -0.00849119108170271, 0.03640274330973625, 0.008724969811737537, 0.0018326611025258899, + -0.0058820489794015884, -0.027986697852611542, -0.0036319252103567123, 0.050229109823703766, + 0.008031981997191906, -0.002091488102450967, -0.013049882836639881, -0.04749055206775665, + -0.026417037472128868, -0.014360715635120869, 0.004959456622600555, 0.03513365983963013, + -0.02746904455125332, 0.006178447511047125, 0.0029389371629804373, 0.029756739735603333, + -0.02109021507203579, 0.017533432692289352, 0.01578843779861927, -0.04385028034448624, + 0.020572559908032417, -0.0017950894543901086, 0.007890044711530209, 0.023377910256385803, + -0.048158492892980576, 0.011480223387479782, 0.07614519447088242, 0.024045849218964577, + -0.026099765673279762, 0.003876140806823969, -0.02025528810918331, -0.009326116181910038, + 0.00219794106669724, 0.04678921774029732, 0.0026154036168009043, -0.0031393193639814854, + 0.026767706498503685, -0.01973763480782509, 6.278247019508854e-5, -0.029940422624349594, + -0.02327771857380867, 0.03904110938310623, 0.004913535434752703, 0.04304875060915947, + 0.008875256404280663, -0.06108313798904419, 0.012615721672773361, 0.020990023389458656, + -0.024830680340528488, 0.00044851144775748253, -0.011572064831852913, -0.013467345386743546, + -0.02942276932299137, -0.012582325376570225, -0.008608080446720123, 0.015521261841058731, + 0.017566829919815063, 0.02025528810918331, -0.035367436707019806, -0.014736432582139969, + 0.047290172427892685, 0.02614986151456833, -0.03967565298080444, 0.01734974794089794, + -0.02474718727171421, -0.02052246406674385, 0.019437061622738838, 0.003995117731392384, + 0.0005787076079286635, -0.03132639825344086, 0.05290086939930916, -0.011830892413854599, + 0.00865817628800869, 0.011521969921886921, 0.049026817083358765, -0.005343522410839796, + 0.03990942984819412, -0.003375185653567314, 0.03381447494029999, -0.007080167066305876, + -0.04304875060915947, 0.007627042941749096, 0.013342106714844704, 0.009518149308860302, + 0.002073745708912611, -0.01201457530260086, 0.04308214783668518, -0.026667514815926552, + 0.021474279463291168, -0.015579706989228725, 0.01947045885026455, -0.058912333101034164, + -0.008591381832957268, -0.015863580629229546, 0.0068046413362026215, 0.012139814905822277, + 0.000818748667370528, 0.0009158087195828557, -0.01848524622619152, 0.04241420701146126, + 0.02776961773633957, 0.006729498505592346, -0.0020319996401667595, -0.009125733748078346, + -0.01195613108575344, 0.032729074358940125, -0.04007641598582268, -0.015955423936247826, + -0.007230453658849001, 0.009234274737536907, 0.007668789476156235, 0.008249062113463879, + 0.05433694273233414, 0.017249558120965958, 0.016130758449435234, 0.01770041696727276, + 0.014911767095327377, 0.02478058449923992, 0.00838682521134615, 0.009301068261265755, + 0.0010410475078970194, -0.00010221312550129369, 0.024346422404050827, -0.05096384137868881, + -0.014318970032036304, -0.01082898210734129, 0.02606636844575405, -0.03466609865427017, + -0.047891318798065186, -0.004817519336938858, -0.016406282782554626, 0.016882190480828285, + 0.01041151862591505, -0.02765272743999958, -0.0021645440720021725, 0.02274336665868759, + 0.006733672693371773, 0.02984023094177246, 0.004604613408446312, -0.003439892316237092, + 0.010403170250356197, 0.00027135072741657495, 0.005606523714959621, 0.016464726999402046, + -0.015070402063429356, -0.01780060864984989, -0.03516705706715584, -0.038640346378088, + -0.014569447375833988, -0.021190404891967773, 0.022426094859838486, 0.020923228934407234, + -0.030324488878250122, 0.013492393307387829, -0.028170380741357803, -0.012682516127824783, + -0.02018849551677704, 0.03780541941523552, -0.008065379224717617, -0.005372744519263506, + 0.03321332857012749, -0.012974740006029606, -0.00015654849994461983, 0.022325903177261353, + 0.0026028796564787626, -0.008432745933532715, 0.015095449984073639, 0.010728790424764156, + 0.0302576944231987, 0.003659060224890709, -0.008261586539447308, 0.010578503832221031, + 0.009893865324556828, -0.005189061164855957, 0.022209014743566513, -0.004888487979769707, + -0.03753824532032013, 0.011338286101818085, 0.025899384170770645, -0.0022876954171806574, + 0.02214222028851509, 0.020171796903014183, -0.019720936194062233, -0.0005693146958947182, + -0.036202363669872284, 0.014410811476409435, -0.011730700731277466, 0.00931776687502861, + 0.017065873369574547, 0.0126574682071805, -0.016097361221909523, -0.015596405602991581, + 0.03304634615778923, -0.002584093948826194, 0.022476190701127052, -0.013634330593049526, + -0.0023273543920367956, -0.009793674573302269, 0.000807790260296315, 0.020322082564234734, + 0.008094601333141327, 0.04308214783668518, 0.029673246666789055, 0.016665110364556313, + -0.010378122329711914, 0.02681780233979225, -0.006654355209320784, 0.01656491868197918, + 0.013843062333762646, -0.00535604590550065, -0.024763885885477066, -0.013984999619424343, + -0.02897190861403942, -0.0050512985326349735, -0.009200877510011196, -0.003700806526467204, + -0.014060142450034618, 0.0009930393425747752, 0.009125733748078346, 0.0025089506525546312, + -0.043482910841703415, 0.019370267167687416, 0.02327771857380867, -0.016013868153095245, + 0.003577655181288719, 0.016130758449435234, -0.018518643453717232, 0.015838533639907837, + -0.028604542836546898, 0.017249558120965958, -0.0003172716242261231, 0.034081652760505676, + 0.01815127767622471, -0.0062535908073186874, -0.0029869454447180033, 0.013651029206812382, + -0.004445977509021759, 0.00019020642503164709, 0.004997028037905693, 0.012298449873924255, + 0.015078751370310783, 0.009651737287640572, -0.020772943273186684, 0.00011741137859644368, + -0.031059222295880318, -0.003554694587364793, 0.016080662608146667, -0.04795811325311661, + -0.015646500512957573, 0.007009198423475027, -0.023144129663705826, 0.0059404936619102955, + 0.006487370003014803, -0.0008004846749827266, -0.01476982980966568, 0.03247859701514244, + -0.014118587598204613, -0.025448525324463844, -0.0030182551126927137, 0.023945659399032593, + -0.0197710320353508, -0.0023774500004947186, -0.02316082827746868, -0.014536050148308277, + 0.008061204105615616, -0.0019756420515477657, -0.003646536497399211, 0.008399348706007004, + 0.019069693982601166, 0.02399575524032116, 0.016798697412014008, -0.03850675746798515, + -0.0160222165286541, -0.034799687564373016, -0.012056321837008, 0.0002370405272813514, + 0.03877393156290054, -0.005932144355028868, 0.05246670916676521, 0.04071095958352089, + 0.022876953706145287, -0.019453760236501694, -0.027552535757422447, -0.0005129572818987072, + 0.02584928832948208, -0.005456237122416496, -0.002577831968665123, -0.010344725102186203, + 0.03636934980750084, 0.017449939623475075, 0.03636934980750084, -0.0018587525701150298, + -0.02274336665868759, -0.01626434549689293, -0.030491473153233528, -0.026834500953555107, + -0.01082898210734129, -0.024997664615511894, 0.007902568206191063, 0.005147314630448818, + 0.030207598581910133, -0.0062869880348443985, 0.02852104976773262, 0.002314830431714654, + 0.002245949115604162, -0.0005922751734033227, -0.006082430947571993, 0.020806340500712395, + 0.018802518025040627, -0.006065732799470425, -0.03411504998803139, -0.009518149308860302, + 0.005581475794315338, 0.03723767027258873, -0.022275807335972786, 0.009668435901403427, + 0.017533432692289352, -0.01256562676280737, 0.005276727955788374, -0.010403170250356197, + 0.014536050148308277, 0.04425104334950447, -0.024847378954291344, 0.00023338772007264197, + 0.02558211237192154, -0.014060142450034618, -0.007752281613647938, 0.04161268100142479, + 0.008132172748446465, -0.003554694587364793, -0.031176112592220306, 0.0029097148217260838, + 0.015646500512957573, -0.027368852868676186, 0.018719026818871498, -0.007794028148055077, + -0.007802377454936504, -0.03723767027258873, 0.011304888874292374, -0.05206594616174698, + 0.012674166820943356, 0.010261232033371925, -0.005360220558941364, -0.04658883437514305, + 0.020472370088100433, -0.060949549078941345, -0.00211966666392982, 0.006140876095741987, + -0.026350243017077446, -0.03312983736395836, -0.0003524950298015028, 0.02187504433095455, + 0.022175617516040802, 0.021474279463291168, 0.01818467490375042, 0.02139078825712204, + 0.027752919122576714, 0.02863794006407261, 0.006270289421081543, 0.0026759356260299683, + -0.004671407397836447, -0.022325903177261353, 0.0075226775370538235, 0.007242977153509855, + -0.03787221387028694, 0.018201371654868126, 0.023628387600183487, 0.01122139673680067, + -0.013116677291691303, 0.0012649118434637785, -0.03760503605008125, -0.0658923089504242, + 0.0017314264550805092, -0.009935611858963966, 0.003650711150839925, 0.005013726651668549, + -0.03309644013643265, 0.02052246406674385, -0.0012200346682220697, -0.0029785961378365755, + 0.03403155878186226, -0.008165569975972176, 0.01731635257601738, 0.0148282740265131, + 0.019754333421587944, 0.014686336740851402, 0.04124531149864197, 0.031075920909643173, + 0.013809665106236935, -0.00546041177585721, 0.0007138611981645226, 0.02882162295281887, + 0.03007401153445244, 0.0076019954867661, -0.01213146559894085, -0.02776961773633957, + -0.024279629811644554, 0.03640274330973625, 0.018652232363820076, -0.015688247978687286, + 0.029890326783061028, 0.034081652760505676, -0.002559046261012554, -0.006712799891829491, + 0.01644802838563919, 0.020021509379148483, -0.011830892413854599, 0.005305950529873371, + -0.005335173103958368, -0.049627963453531265, 0.0004226809542160481, 0.04121191427111626, + 0.03500007092952728, 0.022092124447226524, -0.004268555901944637, -0.007105214521288872, + -0.03331352025270462, -0.020438972860574722, 0.04501917585730553, 0.06305356323719025, + 0.008474492467939854, 0.012098068371415138, 0.015487865544855595, -0.0008484928985126317, + 0.011513620615005493, -0.012123116292059422, 0.015120497904717922, -0.0009079813025891781, + -0.0031789783388376236, -0.0008672787225805223, -0.030641760677099228, 0.005986414849758148, + 0.021190404891967773, 0.00997735746204853, 0.03550102561712265, -0.009643387980759144, + -0.0027051582001149654, 0.018101181834936142, 0.026116464287042618, -0.0055689518339931965, + 0.052500106394290924, -0.0077355834655463696, 0.020455671474337578, 0.006458147428929806, + -0.02003820799291134, 0.003752989461645484, 0.003101747715845704, -0.053401824086904526, + 0.018084483221173286, -0.01244873646646738, -0.0107120918110013, 0.011004315689206123, + 0.028871718794107437, -0.025699002668261528, 0.047891318798065186, -0.0033480506390333176, + 0.019036298617720604, 0.023411307483911514, -0.05056307837367058, -0.022092124447226524, + -0.012123116292059422, -0.001472599571570754, 0.0012690864969044924, -0.0007279505371116102, + 0.022726668044924736, -0.015888629481196404, -0.008649826981127262, -0.019370267167687416, + 0.002730205887928605, -0.022760065272450447, -0.01292464416474104, -0.0092843696475029, + -0.03067515790462494, 0.008825160562992096, -0.012348545715212822, -0.003254121635109186, + 0.012649118900299072, -0.0008944137953221798, -0.01279105618596077, -0.013158423826098442, + 0.04161268100142479, 0.020388877019286156, 0.009943961165845394, -0.005318474490195513, + -0.01576339080929756, -0.001572790672071278, 0.0017481249524280429, 0.0032374230213463306, + 0.004030602052807808, -0.019403664395213127, -0.020589258521795273, -0.001281610457226634, + 0.000629846821539104, 0.014778178185224533, -0.008733319118618965, 0.014661288820207119, + -0.031743861734867096, 0.016940634697675705, 0.005986414849758148, -0.01286619994789362, + -0.011964480392634869, 0.009008844383060932, -0.010837331414222717, -0.01701577939093113, + -0.019670840352773666, -0.004078610334545374, -0.034048255532979965, -0.021340692415833473, + 0.01848524622619152, -0.040310196578502655, 0.016514822840690613, -0.016781998798251152, + -0.023795371875166893, -0.0014298096066340804, -0.0028283095452934504, -0.0401432104408741, + 0.006508243270218372, -0.0019359831931069493, -0.027552535757422447, 0.004596264101564884, + 0.027485743165016174, 0.018819216638803482, -0.024379819631576538, -0.013475694693624973, + -0.04602108523249626, -0.00728054903447628, 0.03967565298080444, -0.0040911342948675156, + -0.045553527772426605, 0.05323484167456627, -0.009685133583843708, -0.03262888267636299, + -0.060949549078941345, -0.016155805438756943, -0.025532016530632973, -0.019286775961518288, + -0.03067515790462494, 0.02671761065721512, 0.02165796421468258, -0.008407698012888432, + -0.02474718727171421, 0.03456591069698334, 0.004867614712566137, 0.019971413537859917, + ], + index: 27, + }, + { + title: "Lake Miccosukee", + text: "Lake Miccosukee is a large swampy prairie lake in northern Jefferson County, Florida, located east of the settlement of Miccosukee. A small portion of the lake, its northwest corner, is located in Leon County.", + vector: [ + 0.02749829925596714, -0.033846087753772736, -0.01946479268372059, -0.011892224662005901, + -0.02899964340031147, 0.05244167894124985, 0.012827271595597267, -0.0391666404902935, + -0.02174314670264721, -0.0047542559914290905, -0.02645789459347725, -0.010166996158659458, + 0.015592905692756176, 0.04846443608403206, -0.0005560075514949858, -0.039693426340818405, + -0.017476169392466545, -0.0014527806779369712, -0.019306756556034088, 0.05794660747051239, + 0.006621058564633131, -0.009152930229902267, 0.012642895802855492, 0.01656746119260788, + 0.035031359642744064, 0.02267819456756115, -0.0034735039807856083, 0.020808100700378418, + 0.004211006220430136, 0.008171788416802883, 0.027682675048708916, 0.03086973913013935, + 0.014341785572469234, -0.004869490396231413, -0.005639916751533747, -0.02475900575518608, + -0.015922147780656815, -0.002941778162494302, 0.042801473289728165, -0.012096354737877846, + -0.015592905692756176, -0.03574252128601074, 0.033793408423662186, 0.04309120401740074, + 0.015079287812113762, 0.012260975316166878, -0.014829063788056374, -0.04519835487008095, + -0.0051756855100393295, -0.039693426340818405, -0.017989788204431534, -0.02154560200870037, + -0.02345520630478859, -0.028341159224510193, -0.0010955530451610684, -0.011971242725849152, + 0.041036732494831085, 0.08686723560094833, -0.08212614804506302, -0.007276250049471855, + -0.0374809205532074, -0.009495342150330544, 0.008533954620361328, 0.019912561401724815, + -0.004352580290287733, 0.013722809962928295, 0.004105648957192898, 0.017002061009407043, + 0.04079968109726906, 0.03184429556131363, 7.652306521777064e-6, 0.04770059511065483, + -0.0041319881565868855, 0.002006730530411005, 0.0031277998350560665, 0.0025960737839341164, + 0.006275354418903589, -0.03945637121796608, -0.0024281605146825314, 0.021190021187067032, + 0.015974825248122215, -0.020584214478731155, 0.012840441428124905, 0.013176267966628075, + 0.017858091741800308, 0.043986741453409195, 0.0027162472251802683, -0.039693426340818405, + -0.006262184586375952, 0.009337306022644043, 0.01216878741979599, 0.03561082482337952, + -0.0036447099409997463, 0.01232682354748249, 0.011951487511396408, -0.041089411824941635, + 0.07143236696720123, 0.014117901213467121, -0.01610652357339859, 0.014368124306201935, + -0.006999686826020479, -0.016119692474603653, -0.0039377352222800255, -0.014644687995314598, + 0.005188855342566967, -0.026392046362161636, -0.008915876038372517, 0.010687198489904404, + 0.006815311033278704, -0.030948756262660027, 0.04946533218026161, -0.001521921600215137, + 0.0011046072468161583, -0.04022021219134331, -0.029947860166430473, 0.005774906370788813, + 0.017779072746634483, 0.02620767056941986, -0.016593800857663155, -0.01455250009894371, + -0.01693621277809143, 0.0011531703639775515, 0.04469790682196617, 0.006647397764027119, + 0.019741356372833252, 0.04090503603219986, -0.03329296037554741, -0.03242376074194908, + 0.025193603709340096, 0.07201182842254639, 0.05757785588502884, -0.003098167944699526, + -0.0004922169027850032, -0.0036973885726183653, -0.046673357486724854, 0.06358323246240616, + 0.026760796085000038, 0.015553396195173264, 0.04029923304915428, 0.001327668665908277, + 0.010213089175522327, 0.011293003335595131, 0.027103208005428314, -0.031975992023944855, + 0.03142286464571953, -0.030105896294116974, -0.02770901471376419, -0.00913976039737463, + 0.03376706689596176, -0.05462784692645073, 0.01162224542349577, -0.03745457902550697, + 0.07037878781557083, 0.0374809205532074, 0.05863143131136894, 0.043828707188367844, + -0.018819477409124374, 0.012280729599297047, 0.0004930400173179805, -0.008599803782999516, + 0.026326198130846024, -0.009034402668476105, 0.047252826392650604, -0.038244761526584625, + -0.013327719643712044, -0.0036677569150924683, -0.010397464968264103, -0.05133542791008949, + -0.018160993233323097, 0.03276617452502251, 0.012254390865564346, 0.02770901471376419, + -0.02842017635703087, -0.03345099464058876, 0.03700681030750275, -0.051967572420835495, + -0.00991677213460207, -0.0523889996111393, -0.034873321652412415, -0.006940423045307398, + -0.014117901213467121, -0.029631787911057472, 0.044355493038892746, -0.0053468914702534676, + -0.005659671500325203, -0.029236696660518646, -0.002042947104200721, 0.022862570360302925, + 0.045277372002601624, -0.05215194821357727, 0.018503405153751373, -0.0390612818300724, + 0.028709910809993744, -0.010456728748977184, 0.02921035885810852, 0.012847025878727436, + -0.05789392814040184, 0.04240638017654419, 0.01708108000457287, 0.015803620219230652, + 0.023902975022792816, 0.008428597822785378, -0.04804300516843796, 0.023428866639733315, + -0.004941923543810844, 0.016751836985349655, -0.003865302074700594, -0.046620678156614304, + -0.009093666449189186, 0.002678384305909276, -0.02050519734621048, -0.033530015498399734, + -0.042748793959617615, -0.025193603709340096, 0.008533954620361328, 0.01584312878549099, + -0.014908081851899624, -0.017370812594890594, -0.008527370169758797, -0.005231656599789858, + 0.08049310743808746, -0.0036677569150924683, -0.0009918417781591415, 0.012445351108908653, + -0.04172155633568764, 0.016396256163716316, 0.02428489737212658, 0.06495288014411926, + 0.02030765265226364, -0.02439025416970253, 0.05531267076730728, -0.05436445400118828, + 0.028393838554620743, 0.027629995718598366, -0.007052365690469742, -0.021111002191901207, + 0.025865258648991585, 0.00731575908139348, 0.02475900575518608, -0.014078391715884209, + -0.02112417295575142, 0.046673357486724854, -0.03511037677526474, 0.023336678743362427, + -0.017897600308060646, -0.022401630878448486, 0.00731575908139348, 0.009515096433460712, + -0.0382184199988842, -0.005172393284738064, -0.034451890736818314, 0.01159590668976307, + 0.039640747010707855, -0.03993048146367073, 0.012313653714954853, 0.03345099464058876, + 0.041616201400756836, -0.04143182560801506, -0.013472585938870907, -0.01880630850791931, + -0.008211297914385796, -0.02506190724670887, 0.033740729093551636, -0.04975506290793419, + -0.010265768505632877, 0.03308224678039551, 0.05075595900416374, -0.0014091561315581203, + -0.04364433139562607, -0.04533005133271217, -0.011325927451252937, 0.00738160777837038, + -0.007724019233137369, 0.015922147780656815, 0.05425909534096718, 0.02453511953353882, + -0.023955654352903366, -0.02184850536286831, -0.010726707056164742, 0.01791076920926571, + 0.07190646976232529, -0.017568357288837433, 0.008138864301145077, -0.02693200297653675, + 0.04008851572871208, -0.0029845794197171926, 0.03708582744002342, 0.024377083405852318, + -0.016738668084144592, -0.03092241659760475, 0.01431544590741396, -0.06974664330482483, + 0.028446516022086143, 0.023850297555327415, -0.0301849152892828, -0.005304090213030577, + 0.01744983159005642, 0.020083768293261528, -0.04635728523135185, -0.006709953770041466, + 0.04438183456659317, 0.051388103514909744, 0.033108584582805634, -0.03226572647690773, + 0.05441713333129883, -0.019715016707777977, 0.006420220714062452, 0.011325927451252937, + -0.023784449324011803, -0.011767112649977207, 0.0021005645394325256, 0.010048468597233295, + -0.022493818774819374, -0.03563716262578964, 0.03558448329567909, -0.04432915523648262, + 0.028130443766713142, 0.0184770654886961, -0.02500922977924347, -0.011154722422361374, + 0.04143182560801506, -0.0008276323205791414, -0.00306195137090981, -0.001674195984378457, + 0.027629995718598366, -0.03147554397583008, -0.0033154678530991077, -0.0037599445786327124, + -0.02697151154279709, 0.039430033415555954, -0.03226572647690773, 0.02868357114493847, + -0.050782300531864166, -0.03877154737710953, 0.053626950830221176, 0.030421968549489975, + 0.044618889689445496, 0.020413009449839592, -0.015434869565069675, 0.04488228261470795, + 0.013340889476239681, -0.04964970797300339, 0.029816163703799248, 0.01806880533695221, + 0.007407946977764368, 0.017107419669628143, 0.005234949290752411, 0.013485755771398544, + 0.02329717017710209, 0.009067326784133911, 0.0005193793913349509, -0.018766799941658974, + 0.03887690603733063, -0.0019738064147531986, 0.02899964340031147, 0.021427074447274208, + 0.012162202969193459, 0.007585737854242325, 0.03755993768572807, -0.019912561401724815, + -0.015026608482003212, -0.014433973468840122, 0.01662014052271843, 0.007276250049471855, + 0.05763053521513939, 0.04975506290793419, -0.04345995560288429, 0.029289375990629196, + 0.02776169218122959, 0.005402862560003996, 0.01064110454171896, -0.010357956402003765, + -0.03500501811504364, 0.0005123830051161349, 0.02589159831404686, -0.028499195352196693, + 0.026023294776678085, -0.012491445057094097, -0.03597957640886307, 0.01584312878549099, + 0.007737189065665007, 0.03400412201881409, 0.055944815278053284, 0.02050519734621048, + -0.004230760969221592, -0.052072927355766296, 0.01159590668976307, -0.04008851572871208, + -0.03703315183520317, 0.008250806480646133, -0.016909873113036156, 0.0008156972471624613, + -0.03558448329567909, -0.021045153960585594, -0.03210768848657608, 0.01791076920926571, + -0.05252069979906082, 0.005452249199151993, 0.010140656493604183, -0.01646210439503193, + -0.0024281605146825314, 0.05257337540388107, -0.04411844164133072, 0.020650064572691917, + -0.045488085597753525, 0.021940693259239197, -0.007816207595169544, 0.03558448329567909, + -0.05436445400118828, -0.012333408929407597, -0.005294212605804205, -0.006762632634490728, + 0.009890432469546795, 0.007677925284951925, 0.011246909387409687, -0.028393838554620743, + 0.015316342003643513, -0.009403154253959656, -0.009488756768405437, -0.003509720554575324, + -0.02444293349981308, -0.010377710685133934, -0.00039982335874810815, 0.040984056890010834, + -0.04095771536231041, -0.0016445642104372382, -0.0012593510327860713, 0.04822738096117973, + -0.011003270745277405, -0.0770689845085144, -0.007131383754312992, -0.0009877262637019157, + -0.03410948067903519, -0.03152822330594063, -0.017568357288837433, 0.005791368428617716, + 2.5824925614870153e-5, -0.006614473648369312, 0.0010766215855255723, 0.022902078926563263, + 0.046067554503679276, 0.03437287360429764, 0.006614473648369312, -0.002614182187244296, + -0.009890432469546795, 0.012366333045065403, -0.012991893105208874, -0.003960782196372747, + 0.0760154128074646, -0.01178028155118227, -0.0001105018745874986, 0.04604121297597885, + -0.019688677042722702, 0.020162785425782204, -0.008316654711961746, -0.029737144708633423, + 0.01776590384542942, -0.004800349473953247, -0.03700681030750275, 0.06384662538766861, + 0.0186351016163826, -0.023323509842157364, 0.021967032924294472, -0.04685773327946663, + -0.0027047237381339073, -0.06869307160377502, -0.003802746068686247, 0.029710806906223297, + -0.03126483038067818, -0.020031088963150978, -0.05504927784204483, 0.026536911725997925, + -0.027524638921022415, -0.024614138528704643, -0.024877531453967094, -0.038613513112068176, + 0.046673357486724854, -0.029789824038743973, 0.017423491925001144, 0.03553180769085884, + 0.030474647879600525, 0.05425909534096718, -0.04127378761768341, 0.04633094742894173, + -0.03263447433710098, 0.007361853029578924, -0.0001594766363268718, 0.025601865723729134, + 0.02174314670264721, -0.03755993768572807, 0.059158217161893845, 0.03576885908842087, + 0.02776169218122959, -0.00820471253246069, -0.006515700835734606, 0.035136714577674866, + -0.012438765726983547, 0.01870094984769821, 0.0052020251750946045, 0.025667713955044746, + 0.029025983065366745, 0.06611181050539017, 0.02899964340031147, 0.05254703760147095, + 0.032186705619096756, -0.016027504578232765, -0.0033171139657497406, 0.0233630184084177, + 0.007710849866271019, -0.04633094742894173, 0.0038488400168716908, -0.04583049938082695, + -0.014921251684427261, 0.031817954033613205, -0.022915249690413475, 0.025193603709340096, + 0.024732666090130806, -0.009416324086487293, 0.010555501095950603, 0.00851420033723116, + -0.04612023010849953, 0.02018912509083748, 0.030474647879600525, -0.028446516022086143, + -0.006081101484596729, 0.03576885908842087, 0.011707848869264126, 0.02226993441581726, + 0.05441713333129883, -0.017160097137093544, -0.05868411064147949, 0.013156513683497906, + 0.04345995560288429, -0.024245386943221092, 0.07259129732847214, -0.02414003014564514, + -0.011576151475310326, 0.0012461813166737556, 0.020373500883579254, 0.01573777198791504, + -0.017844920977950096, -0.01750250905752182, -0.018858985975384712, -0.0059263575822114944, + -0.02718222700059414, 0.005379815585911274, 0.011747357435524464, -0.008744670078158379, + -0.0062654768116772175, 0.032292064279317856, 0.025746731087565422, -0.002126903971657157, + 0.052889447659254074, 0.0011136613320559263, 0.02537797950208187, -0.011246909387409687, + -0.0021861675195395947, 0.0025730268098413944, 0.010140656493604183, -0.009666548110544682, + 0.0116024911403656, 0.002016607904806733, 0.016330407932400703, 0.02947375178337097, + 0.012030505575239658, 0.0192145686596632, -0.01787126064300537, 0.012840441428124905, + 0.03987780213356018, -0.006035007536411285, 0.0268266461789608, 0.0022898786701261997, + 0.02936839498579502, -0.04182691499590874, 0.04261709749698639, -0.004227468278259039, + -0.03869253024458885, 0.019715016707777977, 0.03408314287662506, -0.00020248389046173543, + 0.019754525274038315, 0.012175372801721096, -0.004115526098757982, 0.048490773886442184, + 0.04638362675905228, 0.0005004479899071157, -0.010041884146630764, 0.05017649382352829, + -0.046936750411987305, 0.05710374936461449, 0.009620454162359238, -0.03597957640886307, + 0.018187332898378372, 0.0004230760969221592, 0.031975992023944855, 0.01120740082114935, + -0.021255869418382645, -0.019635997712612152, -0.027682675048708916, 0.010469898581504822, + 0.06063322350382805, 0.0225728377699852, -0.018964344635605812, -0.04701577126979828, + -0.004951801151037216, -0.006347787566483021, 0.002844651695340872, 0.020439349114894867, + 0.009725810959935188, 0.005040696356445551, 0.0035294753033667803, -0.04361799359321594, + 0.04327557981014252, 0.013077495619654655, 0.033108584582805634, -0.029631787911057472, + 0.0038521324750036, 0.012484859675168991, 0.022151406854391098, 0.022770382463932037, + 0.02408735081553459, -0.010061638429760933, -0.007974243722856045, -0.01677817665040493, + 0.017423491925001144, -0.025233114138245583, 0.0028989766724407673, -0.01978086493909359, + -0.030632684007287025, 0.004457938019186258, 0.023494714871048927, -0.06558502465486526, + -0.0032874823082238436, -0.0012363040586933494, -0.011372021399438381, -0.014052052050828934, + 0.016541123390197754, -0.008191543631255627, -0.026918834075331688, 0.027471959590911865, + 0.011273249052464962, 0.04622558876872063, 0.0012363040586933494, -0.04812202230095863, + 0.013169683516025543, -0.020834438502788544, 0.0016124631511047482, 0.004171497188508511, + 0.014894912019371986, 0.07285469025373459, -0.0027952652890235186, -0.026813475415110588, + 0.03645368292927742, 0.004500739276409149, -0.0019738064147531986, -0.0009111774852499366, + 0.004234053194522858, 0.016857195645570755, 0.015579735860228539, -0.019596489146351814, + -0.05349525436758995, 0.020057428628206253, -0.026852983981370926, 0.021427074447274208, + -0.009021232835948467, -0.0001911661820486188, -0.011635415256023407, 0.0384291373193264, + -0.002620767103508115, -0.0006909968215040863, 0.004757548216730356, 0.019965240731835365, + -0.02097930572926998, -0.013288211077451706, 0.01423642784357071, -0.04648898169398308, + -0.010219674557447433, -0.031817954033613205, -0.04469790682196617, 0.028815267607569695, + -0.021519262343645096, -0.0018141239415854216, 0.008461521938443184, 0.01864827238023281, + -0.03416216000914574, 0.006222675554454327, 0.014934421516954899, -0.0043887970969080925, + -0.017844920977950096, -0.029078660532832146, 0.01796344853937626, -0.013321135193109512, + -0.0047542559914290905, 0.008929045870900154, -0.03424117714166641, 0.0004420074983499944, + -0.03489966318011284, -0.01827952079474926, 0.0021087955683469772, -0.016014335677027702, + 0.022902078926563263, 0.03924565762281418, -0.02096613682806492, 0.017476169392466545, + -0.002671799622476101, 0.007500134874135256, 0.003168955212458968, 0.013775489293038845, + 0.013459417037665844, 0.019807204604148865, 0.01702840067446232, 0.006021837703883648, + -0.009284626692533493, -0.004122111015021801, -0.007197231985628605, -0.03848181664943695, + -0.04143182560801506, -0.005551021546125412, -0.016699159517884254, 0.011325927451252937, + 0.0024907162878662348, 0.05173051729798317, 0.0004066139808855951, -0.006304985843598843, + -0.024719495326280594, 0.04335459694266319, 0.006594718899577856, -0.039271995425224304, + -0.02195386216044426, 0.007177477702498436, -0.0015120443422347307, 0.011569567024707794, + -0.07965024560689926, 0.003875179449096322, 0.02454829029738903, 0.02770901471376419, + -0.015711432322859764, -0.016712328419089317, 0.023573733866214752, -0.00026421676739118993, + 0.060001078993082047, -0.02392931468784809, -0.022638686001300812, -0.009501926600933075, + -0.019556980580091476, 0.006947007961571217, -0.02030765265226364, -0.010614764876663685, + 0.0021812289487570524, 0.006647397764027119, 0.011536642909049988, 0.006061346735805273, + -0.039904139935970306, -0.023033777251839638, -0.02066323347389698, 0.001507928711362183, + 0.028262140229344368, -0.013169683516025543, 0.05768321454524994, -0.0017104126745834947, + 0.017634205520153046, -0.009758735075592995, 0.04064164310693741, 0.0188984964042902, + -0.039851460605859756, 0.022981097921729088, 0.014868572354316711, -0.03189697489142418, + -0.007763528265058994, -0.01175394281744957, -0.023942485451698303, 0.030685363337397575, + -0.005824292544275522, 0.015513887628912926, -0.01136543694883585, -0.0379023477435112, + -0.005103252362459898, -0.03397778421640396, -0.03086973913013935, 0.007664755918085575, + 0.006400466430932283, 0.02267819456756115, -0.004382212180644274, -0.0012791055487468839, + -0.04754255712032318, 0.008112524636089802, -0.004839858505874872, 0.007348683197051287, + -0.03645368292927742, 0.03447823226451874, -0.03252911940217018, 0.007111629005521536, + 0.02899964340031147, -0.04988676309585571, 0.020794929936528206, 0.0011581090511754155, + 0.04359165206551552, -0.02039984054863453, 0.012234635651111603, -0.011773697100579739, + 0.023376189172267914, 0.02242797054350376, 0.006235845386981964, 0.022098729386925697, + 0.029394732788205147, -0.04195861145853996, -0.014868572354316711, 0.02253332920372486, + -0.009284626692533493, 0.05101935565471649, 0.00890270620584488, 0.031817954033613205, + 0.01942528411746025, -0.04040458798408508, 0.020228633657097816, 0.025496507063508034, + 0.03279251232743263, -0.043064866214990616, 0.032239384949207306, 0.0026421677321195602, + 0.008915876038372517, -0.003348391968756914, 0.01651478372514248, -0.05125640705227852, + -0.03194965049624443, 0.005751859396696091, 0.02558869495987892, -0.0012033798266202211, + -0.00623913761228323, -0.021861674264073372, -0.023784449324011803, -0.05070328339934349, + -0.015553396195173264, -0.03640100359916687, -0.012847025878727436, 0.027261244133114815, + 0.02997419983148575, 0.008580048568546772, -0.007012856658548117, 0.021980201825499535, + 0.0116024911403656, -0.045962195843458176, 0.024350745603442192, -0.019754525274038315, + 0.005939527414739132, 0.03158090263605118, -0.019701845943927765, -0.03226572647690773, + 0.028446516022086143, -0.033319298177957535, 0.048596132546663284, 0.014275937341153622, + 0.008092770352959633, 0.00604488467797637, 0.0046423133462667465, -0.02149292267858982, + 0.027103208005428314, -0.008310070261359215, 0.006077808793634176, -0.00525470357388258, + -0.010002374649047852, 0.02583891898393631, 0.020268142223358154, 0.02552284672856331, + 0.007677925284951925, -0.03387242555618286, 0.02419270947575569, 0.022348953410983086, + 0.040062177926301956, 0.019148720428347588, 0.005386400502175093, -0.05244167894124985, + -0.009594114497303963, 0.014065221883356571, -0.03687511384487152, 0.014671027660369873, + -0.016949383541941643, 0.0038488400168716908, 0.017844920977950096, 0.010246014222502708, + -0.0004154623602516949, 0.01766054518520832, 0.032134026288986206, -0.018450725823640823, + -0.01278776302933693, 0.013538435101509094, 0.0033269913401454687, 0.007822792045772076, + 0.023178642615675926, -0.020386669784784317, -0.059526968747377396, 0.006769217550754547, + -0.024996059015393257, 0.017700055614113808, -0.017318133264780045, 0.012741669081151485, + 0.012985307723283768, -0.045909516513347626, 0.0193726047873497, -0.004905707202851772, + -0.0026964927092194557, 0.021045153960585594, -0.04359165206551552, 0.009666548110544682, + -0.024153199046850204, 0.05710374936461449, -0.0054555414244532585, -0.02382395789027214, + -0.017107419669628143, 0.07037878781557083, 0.01263631135225296, -0.019346265122294426, + -0.044092100113630295, -0.037876009941101074, -0.012438765726983547, 0.01983354426920414, + -0.017265455797314644, 0.021980201825499535, -0.01870094984769821, 0.07132700830698013, + 0.029868843033909798, -0.0013935171300545335, 0.01568509265780449, 0.047147467732429504, + 0.0011416469933465123, 0.014829063788056374, 0.045962195843458176, -0.03447823226451874, + 0.01771322451531887, -0.008033506572246552, -0.004079309292137623, 0.0041122338734567165, + 0.005244826432317495, 0.02407418191432953, 0.010996685363352299, -0.032028671354055405, + 0.04008851572871208, 0.0009424554882571101, -0.019715016707777977, 0.021427074447274208, + -0.004935339093208313, 0.03466260805726051, -0.020518366247415543, 0.056313566863536835, + -0.053047485649585724, 0.001944174524396658, 0.012465105392038822, -0.02454829029738903, + -0.02200654149055481, -0.0013400153256952763, -0.06742878258228302, 0.019741356372833252, + 0.015566566027700901, 0.008158618584275246, 0.026813475415110588, -0.019082872197031975, + -0.009231948293745518, 0.02707687020301819, 0.02366592176258564, -0.025812579318881035, + -0.045119334012269974, -0.017647376284003258, 0.00428673205897212, 0.007269665133208036, + -0.010232844389975071, 0.012366333045065403, -0.045962195843458176, -0.04485594108700752, + 0.019715016707777977, 0.0005366646219044924, -0.010226259008049965, 0.03774431347846985, + -0.011747357435524464, 0.03977244347333908, 0.039271995425224304, -0.03924565762281418, + 0.017212776467204094, -0.0005420147790573537, 0.012847025878727436, 0.04174789786338806, + 0.03766529634594917, -0.011826375499367714, -0.008553709834814072, 0.06885110586881638, + -0.012926043942570686, 0.050044797360897064, 0.01121398527175188, -0.005919772665947676, + 0.013696471229195595, 0.034504570066928864, 0.009179269894957542, -0.05568142235279083, + -0.008138864301145077, 0.007210401818156242, -0.017700055614113808, 0.002270124154165387, + -0.04772693291306496, -0.009080496616661549, -0.06616449356079102, -0.004721331410109997, + 0.007375022862106562, 0.03297688812017441, -0.004484277218580246, 0.005185563117265701, + -0.04361799359321594, -0.02739294245839119, -0.019333096221089363, -0.01771322451531887, + 0.009343890473246574, 0.020900288596749306, 0.044197458773851395, 0.018727289512753487, + 0.025970615446567535, -0.006166704464703798, 0.011642000637948513, -0.004211006220430136, + -0.015908977016806602, 0.0192145686596632, 0.042327363044023514, 0.035031359642744064, + -0.01667281985282898, 0.005659671500325203, -0.01255729328840971, -0.010825480334460735, + -0.021822165697813034, 0.007618661969900131, -0.0004292493686079979, 0.002701431280001998, + 0.025496507063508034, -0.020268142223358154, 0.02180899679660797, 0.0059889135882258415, + -0.021413905546069145, 0.011655169539153576, 0.00422088336199522, 0.0004113468457944691, + 0.016949383541941643, 0.02884160727262497, 0.00406284723430872, -0.0064366827718913555, + -0.005080205388367176, 0.01573777198791504, -0.02776169218122959, -0.0134133230894804, + 0.0010864988435059786, -0.01838487759232521, 0.013084081001579762, -0.03416216000914574, + -0.04027289152145386, 0.01750250905752182, -0.020900288596749306, 0.017067909240722656, + -0.004810227081179619, 0.04166887700557709, -0.013643791899085045, -0.011016440577805042, + -0.008718330413103104, 0.0032710202503949404, -0.013097249902784824, 0.005972451530396938, + -0.005109837278723717, -0.02407418191432953, -0.01286678109318018, 0.011642000637948513, + 0.013801828026771545, -0.011016440577805042, 0.04438183456659317, 0.025904767215251923, + 0.017160097137093544, -0.003542644903063774, -0.005475295707583427, -0.0023244491312652826, + 0.003015857422724366, 0.01367013156414032, -0.02087394893169403, -0.04540906846523285, + 0.03713850677013397, -0.016383087262511253, 0.004237345885485411, -0.03421483933925629, + -0.033530015498399734, -0.009133175946772099, -0.01548754796385765, 0.013564773835241795, + 0.01305115595459938, 0.0007309174397960305, -0.018305860459804535, 0.03360903263092041, + 0.008448352105915546, 0.013393567875027657, -0.006028422620147467, 0.06384662538766861, + -0.0189511738717556, 0.006854820065200329, -0.03708582744002342, 0.03397778421640396, + -0.003954197280108929, 0.041616201400756836, -0.07327611744403839, -0.0005053866188973188, + 0.024416593834757805, -0.01025259867310524, -0.009166100062429905, 0.010232844389975071, + 0.0014066868461668491, 0.032239384949207306, -0.0035591069608926773, -0.008665652014315128, + -0.00841542799025774, -0.012287314981222153, 0.0002477546804584563, 0.0013095603790134192, + -0.029895180836319923, 0.00715772295370698, -0.009745566174387932, -0.022744042798876762, + 0.012886535376310349, 0.0037928689271211624, 0.05001845955848694, 6.51282025501132e-5, + -0.030527327209711075, 0.013044571503996849, -0.005373230669647455, -0.009817998856306076, + -0.007151138037443161, -0.02020229399204254, 0.003858717391267419, 0.028104104101657867, + -0.006341202650219202, -0.003430702490732074, -0.010377710685133934, -0.030158575624227524, + 0.03516305610537529, 0.01589580811560154, -0.018450725823640823, 0.03687511384487152, + -0.0030175037682056427, -0.04930729418992996, 0.01294579915702343, -0.010608180426061153, + 0.0014791201101616025, 0.0042801471427083015, -0.0022273226641118526, 0.008020337671041489, + 0.024521950632333755, -0.0019063117215409875, 0.0007646647281944752, 0.01802929677069187, + 0.012386087328195572, -0.03537376970052719, 0.00230469461530447, 0.008948800154030323, + -0.0374809205532074, -0.03126483038067818, -0.00888295192271471, -0.017423491925001144, + 0.00507691316306591, -0.013163099065423012, 0.005824292544275522, -0.028657231479883194, + 0.027893390506505966, -0.02138756588101387, 0.006874574813991785, 0.025338470935821533, + -0.0009177623433060944, 0.02475900575518608, 0.02936839498579502, -0.0011811560252681375, + -0.012781177647411823, -0.01535585056990385, 0.0022503696382045746, -0.011951487511396408, + 0.02133488655090332, -0.0029170848429203033, 0.004793765023350716, 0.0007420293404720724, + -0.012129278853535652, 0.02718222700059414, -0.021242698654532433, -0.006867989897727966, + -0.03287152945995331, 0.008705160580575466, -0.01730496436357498, -0.02066323347389698, + 0.008560294285416603, -0.010871573351323605, 0.010272352956235409, -0.00488266022875905, + -0.017423491925001144, -0.005679426249116659, 0.002426514169201255, 0.015382190234959126, + -0.02341569773852825, 0.01935943402349949, 0.0028545288369059563, 0.02776169218122959, + 0.04799032583832741, 5.797747508040629e-5, 0.021269038319587708, 0.006104148458689451, + -0.0002553683880250901, -0.03439921513199806, 0.001487351139076054, 0.01978086493909359, + -0.021716808900237083, -0.023442037403583527, -0.016225049272179604, -0.04485594108700752, + 0.02557552605867386, -0.014499821700155735, 0.00507691316306591, -0.01719960756599903, + -0.008547124452888966, 0.03432019427418709, -0.011273249052464962, -0.028657231479883194, + -0.0028183122631162405, -0.00044900388456881046, -0.011839545331895351, 0.008869782090187073, + -0.007862301543354988, 0.0373755618929863, -0.023178642615675926, 0.018319029361009598, + -0.018240012228488922, -0.008066431619226933, -0.024574629962444305, -0.015922147780656815, + -0.0029961029067635536, -0.04533005133271217, 0.022019710391759872, 0.010904498398303986, + -0.02283623069524765, -0.004948508460074663, -0.019082872197031975, -0.04111575335264206, + 0.007803037296980619, 0.0017960155382752419, -0.0017005354166030884, 0.021348057314753532, + 0.003073474857956171, -0.007269665133208036, 0.007533058989793062, 0.044302813708782196, + 0.0134133230894804, 0.012741669081151485, -0.005501635372638702, 0.006038299761712551, + -0.0016289252089336514, -0.017542017623782158, 0.011688094586133957, 0.02765633538365364, + -0.01136543694883585, 0.00512629933655262, 0.038666192442178726, 0.0006292639300227165, + 0.007210401818156242, 0.01884581707417965, -0.022717704996466637, 0.007572568021714687, + 0.006788971833884716, -0.019240908324718475, -0.02537797950208187, -0.0268266461789608, + 0.006028422620147467, 0.01822684146463871, 0.012445351108908653, 0.026010125875473022, + 0.05360061302781105, 0.0005712350248359144, 0.013973033986985683, -0.020175954326987267, + -0.039798785001039505, 0.021993370726704597, 0.023231321945786476, 0.04799032583832741, + -0.0022503696382045746, -0.018938004970550537, 0.03634832799434662, 0.019096041098237038, + -0.0050275265239179134, 0.002452853601425886, 0.010884743183851242, -0.023007437586784363, + -0.0017515679355710745, -0.011312758550047874, -0.0025219942908734083, -0.006953592877835035, + -0.009804829023778439, 0.011839545331895351, -0.01162224542349577, 0.0032183413859456778, + -0.015553396195173264, -1.1150503269163892e-5, 0.008152034133672714, 0.019227737560868263, + 0.007803037296980619, 0.023442037403583527, -0.01642259582877159, -0.014091561548411846, + -0.002925315871834755, 0.013735979795455933, 0.0008650835952721536, 0.003073474857956171, + 0.0057123503647744656, -0.00999579019844532, -0.039430033415555954, -0.004115526098757982, + 0.007677925284951925, 0.027577318251132965, -0.0017647376516833901, -0.000396119401557371, + -0.015777280554175377, -0.011661754921078682, 0.04359165206551552, -0.0093175508081913, + 0.028051426634192467, 0.004951801151037216, -0.0018338784575462341, -0.010107732377946377, + 0.02190118283033371, 0.021255869418382645, -0.03126483038067818, 0.0037928689271211624, + 0.01796344853937626, 0.017489340156316757, -0.012952383607625961, 0.023705430328845978, + -0.008784178644418716, -0.009225362911820412, -0.005096667446196079, -0.013959864154458046, + -0.01351209543645382, -0.02475900575518608, 0.0069733476266264915, 0.01452616136521101, + -0.04185325279831886, -0.001875033718533814, 0.017726393416523933, -0.022849401459097862, + 0.0034438723232597113, 0.0038949339650571346, -7.52626801840961e-5, 0.00493204640224576, + -0.005781491287052631, 0.0032002332154661417, 0.015987996011972427, 0.027629995718598366, + -0.010687198489904404, 0.011339097283780575, -0.04293316975235939, 0.013294795528054237, + -0.023916145786643028, 0.009976034983992577, -0.008112524636089802, 0.020689573138952255, + -0.024153199046850204, 0.002120319055393338, 0.038192082196474075, -0.02324449084699154, + 0.008000582456588745, -0.005653086584061384, -0.0004080544167663902, -0.00722357165068388, + 0.010397464968264103, 0.020808100700378418, 0.005600407719612122, -0.0307117011398077, + -0.020492028445005417, 0.032239384949207306, 0.016290899366140366, -0.028051426634192467, + -0.004382212180644274, -0.0187931377440691, -0.03410948067903519, 0.004082601983100176, + 0.006574964616447687, -0.00784913171082735, -0.048754166811704636, 0.00033356339554302394, + -0.01730496436357498, -0.010595010593533516, -0.013117005117237568, 0.015184645541012287, + 0.021005645394325256, 0.0071643078699707985, 0.012629726901650429, 0.030790720134973526, + 0.027050530537962914, 0.006410343572497368, 0.010107732377946377, -0.005244826432317495, + 0.01951747015118599, 0.024521950632333755, -0.0006683614337816834, 0.010924252681434155, + -0.031765278428792953, 0.0059889135882258415, -0.050624262541532516, 0.022098729386925697, + -0.041616201400756836, -0.03287152945995331, 0.0154085299000144, -0.010206504724919796, + 0.03276617452502251, -0.0013515388127416372, 0.007519889157265425, -0.01222146674990654, + -0.015803620219230652, -0.009093666449189186, -0.011497133411467075, 0.003470211522653699, + 0.0009473941172473133, 0.01476321555674076, 0.0152504937723279, -0.012688989751040936, + 0.002385359024628997, 0.033108584582805634, -0.022967929020524025, 0.028262140229344368, + 0.00041443348163738847, 0.0027425866574048996, 0.00332040642388165, -0.010107732377946377, + -0.010608180426061153, -0.025825750082731247, -0.008237636648118496, 0.0031903558410704136, + 0.018134653568267822, -0.03761261701583862, 0.006169996690005064, 0.033688049763441086, + -0.010456728748977184, 0.000609509414061904, 0.047463539987802505, -0.005040696356445551, + -0.0007070474093779922, 0.04027289152145386, -0.011846130713820457, -0.01007480826228857, + 0.0006342025590129197, -0.006347787566483021, 0.024930210784077644, -0.014671027660369873, + 0.009956280700862408, 0.0042175911366939545, 0.014973930083215237, -0.0015383836580440402, + -0.025206774473190308, 0.01941211335361004, -0.022862570360302925, -0.032028671354055405, + 0.018556084483861923, 0.03226572647690773, 0.032186705619096756, 0.004421721212565899, + -0.012656065635383129, -0.01667281985282898, -0.008152034133672714, -0.0052876281552016735, + -0.023389358073472977, 0.01463151816278696, 0.011635415256023407, -0.01642259582877159, + -0.009008063934743404, -0.02236212231218815, -0.013018231838941574, 0.03434653580188751, + -0.04775327071547508, 0.02087394893169403, -0.009008063934743404, 0.023679090663790703, + 0.023165473714470863, 0.018108315765857697, -0.009653378278017044, -0.006960177794098854, + 0.0027656336314976215, 0.022019710391759872, -0.009429492987692356, -0.010766216553747654, + 0.055944815278053284, 0.03806038573384285, -0.02169046923518181, 0.0003759532992262393, + -0.0013112066080793738, 0.028209462761878967, 0.019148720428347588, 0.029394732788205147, + -0.019715016707777977, -0.014460312202572823, 0.014842233620584011, -0.0077042649500072, + 0.003136030863970518, 0.01812148466706276, -0.00825739186257124, 0.017897600308060646, + 0.02403467334806919, -0.005304090213030577, -0.013999373652040958, 0.017581528052687645, + 0.0047509633004665375, 0.008073016069829464, -0.009014648385345936, 0.03753359988331795, + -0.027788031846284866, -0.029631787911057472, -0.008869782090187073, -0.03484698385000229, + -0.009495342150330544, -0.017173267900943756, -0.045224692672491074, 0.0379023477435112, + 0.02412685938179493, -0.0025713806971907616, 0.021005645394325256, -0.018503405153751373, + -0.006347787566483021, 0.009106836281716824, 0.0152768325060606, 0.0011671632528305054, + -0.0019803910981863737, 0.00393444299697876, 0.000322039908496663, 0.005557606462389231, + -0.036585379391908646, -0.014289106242358685, -0.008566878736019135, -0.007645001169294119, + 0.010812310501933098, -0.02158511057496071, -0.01931992545723915, -0.006874574813991785, + -0.011984411627054214, 0.015606074593961239, -0.0016560876974835992, 0.0010889682453125715, + ], + index: 28, + }, + { + title: "Floro Dery", + text: "Floro Dery is a Filipino illustrator best known for his works in the 1980s The Transformers TV series and was the visual creator of The Transformers: The Movie. He interpreted some of the toys' box art and created the models that would become the visual guidelines both for the comics book and the animated cartoon appearances of those characters.", + vector: [ + -0.0020521909464150667, 0.015754757449030876, -0.024402707815170288, -0.036891527473926544, + 0.026351090520620346, 0.019276222214102745, 0.014796536415815353, -0.03168519213795662, + -0.05292576551437378, 0.10061325877904892, -0.012967931106686592, 0.03944678604602814, + -0.023188959807157516, -0.020761465653777122, -0.005006707273423672, 0.003830889705568552, + -0.019435925409197807, 0.010149162262678146, -0.05334099754691124, -0.02561645396053791, + 0.048262421041727066, -0.03564583882689476, 0.007881371304392815, 0.020330265164375305, + 0.034144625067710876, 0.023412544280290604, 0.023700011894106865, -0.03759422153234482, + -0.04973169416189194, -0.0076098754070699215, 0.03210042044520378, 0.0030024272855371237, + 0.026910053566098213, 0.022055065259337425, -0.0056734695099294186, 0.017599334940314293, + 0.007769579067826271, 0.03580554202198982, 0.01436533685773611, 0.006811357568949461, + 0.017551423981785774, -0.017599334940314293, 0.0275169275701046, 0.0035254566464573145, + 0.000530016259290278, 0.02414718084037304, -0.033346109092235565, 0.03016800619661808, + -0.019499806687235832, 0.039255138486623764, -0.0027488977648317814, -0.02338060364127159, + -0.012113516218960285, 0.026191387325525284, -0.013718537986278534, -0.020122651010751724, + 0.08266257494688034, 0.0673949122428894, 0.01141880638897419, -0.03202056884765625, + 0.028938287869095802, -0.0630190297961235, 0.03989395499229431, -0.024402707815170288, + 0.061326175928115845, 0.03016800619661808, -0.010963650420308113, 0.02599974349141121, + 0.002724942285567522, 0.024674203246831894, 0.04212980344891548, -0.06452024728059769, + -0.052095308899879456, 0.015395425260066986, 0.030663087964057922, 0.029018141329288483, + 0.016657084226608276, -0.05084962025284767, -0.005162418354302645, -0.05043439194560051, + -0.021384309977293015, 0.011314998380839825, -0.023188959807157516, 0.07193049043416977, + -0.021687746047973633, -0.01807844452559948, -0.02093713916838169, -0.05557684600353241, + 0.019691450521349907, -0.007637823931872845, -0.01807844452559948, -0.03144563362002373, + -0.011834035627543926, -0.03775392472743988, 0.007821482606232166, 0.005086558870971203, + 0.037147052586078644, 0.01177813857793808, -0.004180241376161575, -0.008967355825006962, + 0.009781843982636929, -0.00861600786447525, -0.011035517789423466, -0.001972339116036892, + 0.010540436021983624, 0.011235146783292294, -0.02473808452486992, 0.018254119902849197, + 0.0326593816280365, 0.045483577996492386, 0.008855563588440418, -0.04161875322461128, + -0.02140028029680252, 0.039925895631313324, 0.004176248796284199, 0.026175417006015778, + -0.06253992021083832, -0.034112684428691864, 0.008320556953549385, -0.058547332882881165, + 0.004463715013116598, -0.09218090772628784, -0.024051358923316002, 0.008560111746191978, + 0.017583364620804787, -0.057365525513887405, 0.008839593268930912, -0.00042745660175569355, + 0.04267279803752899, -0.0005499792168848217, -0.04909288138151169, -0.00616056565195322, + 0.06733103096485138, 0.0020072744227945805, 0.04382266104221344, 0.0126644941046834, + -0.0380733348429203, -0.006128625012934208, -0.010947680100798607, 0.05608789622783661, + 0.042864441871643066, 0.008176823146641254, 0.021464161574840546, -0.003952663391828537, + -0.05171201750636101, -0.026989905163645744, -0.026303179562091827, 0.07729653269052505, + 0.04928452521562576, -0.0218634195625782, -0.044685062021017075, -0.01913248933851719, + 0.031158167868852615, -0.014716684818267822, 0.06474383175373077, -0.012361057102680206, + -0.072505421936512, -0.056726712733507156, -0.012696434743702412, 0.01656126044690609, + -0.009047207422554493, 0.042161744087934494, -0.03612494841217995, -0.0038907784037292004, + -0.0483582429587841, -0.04193815961480141, 0.05726970359683037, 0.030599206686019897, + -0.019020697101950645, 0.037945572286844254, 0.03130190074443817, 0.06081512197852135, + 0.0545228011906147, 0.02772454172372818, -0.03998977690935135, 0.02435479685664177, + -0.06579787284135818, 0.0010710121132433414, -0.03539031371474266, -0.020889228209853172, + -0.02173565700650215, 0.03388909995555878, 0.012935989536345005, -0.028363356366753578, + -0.0008309576660394669, 0.037434518337249756, 0.056439246982336044, 0.05289382487535477, + 0.010636258870363235, -0.01748754270374775, -0.0018815078074112535, 0.014229589141905308, + -0.027820363640785217, -0.022023124620318413, 0.03131787106394768, -0.03408074378967285, + -0.07327200472354889, -0.014572951942682266, -0.06084706261754036, -0.04142710939049721, + 0.031621307134628296, 0.050083041191101074, 0.0666283369064331, -0.0010410677641630173, + -0.009342659264802933, -0.037434518337249756, -0.023188959807157516, 0.027660660445690155, + -0.0036771749146282673, -0.030231887474656105, 0.0352306105196476, 0.006252394989132881, + 0.008759741671383381, 0.009087134152650833, 0.0037450490053743124, -0.005401973612606525, + -0.015874536707997322, -0.017040371894836426, 0.029976362362504005, -0.015754757449030876, + 0.017072312533855438, 0.03733869642019272, -0.01573878712952137, 0.0018116375431418419, + 0.027708571404218674, -0.018813081085681915, -0.04516417160630226, -0.011171265505254269, + -0.011307013221085072, 0.012592627666890621, -0.024003447964787483, 0.004443752113729715, + 0.029848599806427956, -0.02077743597328663, -0.05110514536499977, -0.0021919317077845335, + 0.031126227229833603, -0.027373192831873894, -0.029864570125937462, 0.01782291941344738, + -0.01895681582391262, -0.004463715013116598, -0.020154591649770737, -0.012249264866113663, + 0.08911459892988205, 0.007953238673508167, -0.026319149881601334, -0.06110259145498276, + -0.032084450125694275, 0.003010412445291877, 0.007050913292914629, 0.02397150732576847, + 0.07550784945487976, 0.041267406195402145, -0.01527564786374569, 0.029050081968307495, + 0.003226012224331498, 0.04848600551486015, -0.00021971718524582684, 0.03896767273545265, + -0.05953749641776085, 0.004200204275548458, 0.017727097496390343, -0.026191387325525284, + -0.013175545260310173, 0.027916185557842255, 0.00273891631513834, 0.01550721749663353, + 0.031078316271305084, -0.013638685457408428, 0.010676184669137001, -0.03951066732406616, + 0.009941548109054565, -0.010117221623659134, 0.01284815277904272, 0.041395168751478195, + -0.026015713810920715, 0.07001405209302902, 0.06471189111471176, 0.04315190762281418, + 0.030327709391713142, -0.04264085739850998, -0.013622715137898922, 0.01523572113364935, + -0.01975533366203308, 0.0339529812335968, 0.019052637740969658, -0.01651334948837757, + -0.001149865798652172, -0.02805991843342781, -0.028874406591057777, -0.006356202531605959, + -0.005917017813771963, -0.029896510764956474, 0.034144625067710876, 0.0061685508117079735, + 0.03989395499229431, -0.016625143587589264, 0.008033090271055698, 0.006919157691299915, + -0.0018535596318542957, -0.03210042044520378, -0.0044158040545880795, -0.04382266104221344, + 0.016297750174999237, -0.005382010713219643, -0.012169413268566132, 0.03922319784760475, + 0.009749903343617916, -0.03050338290631771, -0.048677653074264526, -0.012273220345377922, + -0.022534174844622612, -0.04133128747344017, -0.01874919980764389, -0.02764469012618065, + 0.012840167619287968, -0.006499935872852802, -0.03356969356536865, -0.0014173692325130105, + 0.027453046292066574, 0.0137584637850523, -0.05164813622832298, 0.006128625012934208, + 0.03016800619661808, 0.039670370519161224, 0.07499679923057556, -0.009781843982636929, + 0.03539031371474266, 0.0009776853257790208, -0.027836333960294724, -0.0020442057866603136, + 0.043119966983795166, 0.004779129754751921, -0.020250413566827774, 0.004443752113729715, + -0.043375492095947266, 0.024578381329774857, -0.02708572708070278, -0.05496997386217117, + 0.0043519227765500546, 0.03289893642067909, -0.03224415332078934, -0.0008614012040197849, + -0.03130190074443817, -0.08010731637477875, 0.021480131894350052, 0.022486263886094093, + -0.00891145970672369, -0.022310590371489525, 0.0007810503011569381, -0.043503254652023315, + -0.03251564875245094, -0.028842465952038765, -0.007661779411137104, -0.0058211954310536385, + 0.009542289189994335, -0.015171839855611324, 0.0012347083538770676, 0.02603168413043022, + 0.007354349829256535, 0.023013286292552948, 0.03733869642019272, 0.012904048897325993, + 0.04149099066853523, 0.002155998256057501, -0.01628177985548973, -0.025856008753180504, + -0.01921234093606472, 0.06611727923154831, -0.0006228439742699265, 0.005609588231891394, + -0.06343426555395126, -0.012760316021740437, 0.027884244918823242, -0.009598185308277607, + 0.030199946835637093, 0.015467291697859764, -0.0627635046839714, 0.013502937741577625, + -0.022693878039717674, 0.004395841155201197, -0.009694007225334644, -0.006268365308642387, + -0.0045435670763254166, 0.0034655677154660225, -0.04289638251066208, -0.04302414506673813, + -0.016401557251811028, -0.01284815277904272, 0.012033664621412754, -0.01306375302374363, + 0.033186402171850204, -0.006755461450666189, -0.002106091007590294, 0.05199948698282242, + 0.0390954352915287, 0.03555001690983772, 0.031030405312776566, -0.017806949093937874, + -0.0302159171551466, 0.0013874248834326863, -0.00931071862578392, -0.02898620069026947, + 0.021591924130916595, -0.01612207666039467, -0.0017417671624571085, 0.009622140787541866, + 0.017535453662276268, 0.0486137680709362, -0.02684617228806019, 0.05608789622783661, + 0.05011498183012009, 0.0052542476914823055, 0.012856137938797474, -0.05212724953889847, + 0.01694454997777939, -0.0006373170763254166, -0.009198926389217377, -0.003727082395926118, + 0.06880030035972595, 0.07084450870752335, -0.013111663982272148, 0.037690043449401855, + 0.04097994044423103, 0.045483577996492386, 0.023652100935578346, 0.009302733466029167, + 0.0056654843501746655, -0.0023536314256489277, -0.024322854354977608, 0.027708571404218674, + -0.007737638428807259, -0.02183147892355919, -0.0018515633419156075, -0.005952951032668352, + -0.013055767863988876, 0.010141177102923393, -0.003263941965997219, 0.0799795538187027, + 0.003645234275609255, -0.005701418034732342, -0.027532897889614105, -0.014421232976019382, + -0.051552314311265945, -0.001959363231435418, 0.010229013860225677, -0.06381755322217941, + -0.03641241788864136, 0.026766320690512657, 0.006076721008867025, -0.024961668998003006, + -0.011562539264559746, -0.05043439194560051, 0.02528107725083828, -0.0028606904670596123, + 0.010772006586194038, 0.0029884532559663057, -0.02245432324707508, 0.010835887864232063, + -0.01428548526018858, 0.08112941682338715, 0.00301839760504663, -0.02347642555832863, + 0.026957964524626732, -0.019531747326254845, 0.005382010713219643, -0.022310590371489525, + -0.03205250948667526, -0.016209913417696953, -0.007250542752444744, 0.03864826634526253, + 0.030519355088472366, -0.0003520964819472283, 0.05152037367224693, 0.01656126044690609, + 0.04260891675949097, -0.01354286354035139, 0.017040371894836426, -0.018637407571077347, + 0.07550784945487976, -0.02767663076519966, 0.011482687667012215, -0.00918295606970787, + 0.010939694941043854, 0.0136945815756917, 0.014572951942682266, 0.01921234093606472, + 0.0023656091652810574, 0.07774370163679123, 0.03749839961528778, -0.013151589781045914, + -0.017966652289032936, 0.015219750814139843, -0.03602912649512291, -0.043119966983795166, + -0.07026957720518112, -0.0021480130963027477, -0.0007356345886364579, -0.03631659597158432, + -0.022725818678736687, 0.03264341130852699, 0.029273666441440582, 0.029688894748687744, + -0.01609812118113041, -0.002601172076538205, -0.011003576219081879, 0.05778075382113457, + 0.02895425818860531, 0.01236904226243496, 0.02936948835849762, 0.037147052586078644, + 0.039255138486623764, 0.01333524938672781, 0.003910741303116083, -0.00451961113139987, + 0.023061197251081467, 0.007426216267049313, -0.016058195382356644, -0.006923150271177292, + 0.03526255115866661, -0.011722242459654808, 0.027245430275797844, 0.017327837646007538, + -0.007613867986947298, 0.013431071303784847, 0.0017367764376103878, 0.03205250948667526, + -0.005677462089806795, 0.028714703395962715, 0.022518204525113106, 0.006887217052280903, + 0.007214609067887068, 0.0176153052598238, 0.002571227727457881, -0.007370320148766041, + 0.009598185308277607, 0.0060966843739151955, -0.019739363342523575, -0.03325028717517853, + -0.019643539562821388, -0.018860992044210434, -0.020969079807400703, -0.05206336826086044, + -0.006280343513935804, -0.008719815872609615, 0.049891397356987, -0.029018141329288483, + 0.0009068169165402651, -0.021815508604049683, 0.005988884251564741, 0.029609043151140213, + -0.017599334940314293, 0.056567009538412094, 0.0068153501488268375, 0.0028606904670596123, + -0.07154720276594162, 0.030311739072203636, -0.004627411253750324, -0.024450618773698807, + 0.023013286292552948, 0.008560111746191978, 0.0018226171378046274, 0.04369489848613739, + 0.01882905140519142, -0.021416250616312027, -0.027532897889614105, -0.01913248933851719, + -0.03855244442820549, -0.020250413566827774, 0.011985753662884235, -0.019787274301052094, + -0.018429793417453766, 0.03516672924160957, -0.025600483641028404, 0.042576976120471954, + 0.026047654449939728, -0.0003603312070481479, -0.032803114503622055, -0.01803053356707096, + 0.010340807028114796, -0.015251691453158855, 0.004647374153137207, 0.03877602890133858, + 0.01561102457344532, -0.000684729078784585, -0.025808097794651985, 0.021927300840616226, + 0.01833397150039673, 0.008520185947418213, -0.021815508604049683, 0.0032539605163037777, + 0.03551807627081871, 0.004994729533791542, 0.0067794169299304485, -0.0020382169168442488, + 0.0065877726301550865, 0.011586494743824005, 0.01184202078729868, -0.026047654449939728, + 0.013710551895201206, 0.024003447964787483, 0.010077295824885368, -0.020202502608299255, + 0.0008698854362592101, -0.030199946835637093, 0.015619009733200073, -0.031062345951795578, + 0.03740257769823074, -0.008831608109176159, 0.011179250665009022, -0.020202502608299255, + 0.01638558693230152, 0.04979557543992996, 0.01367062609642744, 0.007789541967213154, + -0.032675351947546005, 0.012313146144151688, -0.0359971858561039, -0.042289506644010544, + -0.010396703146398067, -0.018126355484128, 0.020761465653777122, 0.03791363164782524, + -0.03289893642067909, -0.011203206144273281, 0.020889228209853172, -0.02401941828429699, + -0.033729396760463715, -0.0029345531947910786, 0.0028766607865691185, 0.010883798822760582, + -0.018845021724700928, -0.0486137680709362, 0.022358501330018044, -0.028411267325282097, + 0.006871246732771397, 0.005725373513996601, 0.026399001479148865, -0.02203909493982792, + -0.010524465702474117, -0.024035388603806496, 0.010636258870363235, -0.02144819125533104, + 0.007917304523289204, -0.0099016223102808, -0.0035074898041784763, -0.0318928062915802, + 0.01175418309867382, 0.012201353907585144, -0.018525615334510803, 0.007014979608356953, + -0.03753034025430679, 0.008759741671383381, 0.015427365899085999, -0.031126227229833603, + 0.01615401729941368, 0.005070588551461697, -0.014820491895079613, 0.01327136717736721, + -0.001716813538223505, 0.02708572708070278, -0.008655933663249016, 0.0013664637226611376, + 0.007593905087560415, 0.012337101623415947, 0.023460455238819122, 0.01681678742170334, + -0.004966781474649906, 0.0011578509584069252, 0.019499806687235832, 0.056854475289583206, + -0.048677653074264526, -0.008344512432813644, 0.019978918135166168, -0.0035015009343624115, + 0.018573526293039322, 0.025057490915060043, -0.02831544540822506, 0.019867125898599625, + -0.02540883980691433, 0.0063322470523417, -0.007649801671504974, 0.03125398978590965, + 0.019403984770178795, 0.005401973612606525, 0.012297175824642181, -0.030870702117681503, + 0.012696434743702412, 0.0434713140130043, 0.0017397708725184202, -0.03826497867703438, + -0.04724032059311867, 0.006791394669562578, -0.0005025672144256532, 0.0004464214143808931, + -0.008456304669380188, -0.03970231115818024, 0.012456879019737244, 0.005641528870910406, + -0.006891209632158279, 0.009166985750198364, -0.04407818987965584, 0.012959945946931839, + -0.009765873663127422, 0.03243579715490341, -0.003497508354485035, -0.008735786192119122, + -0.002251820405945182, -0.02358821965754032, 0.012233294546604156, 0.0059409732930362225, + 0.01828606054186821, -0.017631275579333305, 0.016673054546117783, -0.01684872806072235, + 0.004339944571256638, 0.00044667095062322915, -0.033729396760463715, -0.0074182311072945595, + 0.026494823396205902, 0.04452535882592201, 0.007629838772118092, -0.005278203170746565, + 0.0016918597975745797, 0.0059130252338945866, 0.00036706868559122086, -0.037945572286844254, + 0.00377100077457726, 0.001421361812390387, 0.015052062459290028, 0.0016100116772577167, + -0.01841382309794426, -0.0019603613764047623, 0.034272387623786926, 0.010340807028114796, + -0.007478120271116495, 0.005661491770297289, -0.005186373833566904, 0.0067434837110340595, + 0.0030742939561605453, 0.020074740052223206, -0.02371598221361637, 0.020378176122903824, + -0.013510922901332378, -0.013239426538348198, -0.03034367971122265, 0.021847449243068695, + 0.031541455537080765, -0.02199118211865425, 0.08477065712213516, -0.01112335454672575, + 0.020202502608299255, 0.026957964524626732, -0.023141048848628998, 0.0007725660689175129, + 0.01862143725156784, -0.01926025189459324, 0.02312507852911949, 0.00466733705252409, + -0.024849876761436462, -0.0030962531454861164, -0.01777500845491886, 0.05771687254309654, + 0.04845406487584114, 0.010316851548850536, 0.00819279346615076, -0.04056470841169357, + 0.0011728231329470873, 0.05861121416091919, 0.0050266701728105545, -0.00618452113121748, + -0.018254119902849197, -0.04014948010444641, 0.00103008805308491, 0.003283904865384102, + -0.010907754302024841, -0.02397150732576847, -0.0026391015853732824, -0.013367190025746822, + -0.04740002378821373, 0.016233868896961212, -0.034911204129457474, -0.021975211799144745, + -0.025776157155632973, 0.033729396760463715, 0.022358501330018044, 0.01684872806072235, + 0.010548421181738377, 0.04292832314968109, 0.017679186537861824, 0.034783441573381424, + -0.02435479685664177, -0.009965503588318825, 0.01756739430129528, -0.02384374476969242, + -0.016042225062847137, 0.034911204129457474, -0.021208634600043297, -0.02569630555808544, + -0.027437075972557068, -0.0023157019168138504, 0.01731186732649803, -0.0077296532690525055, + 0.010963650420308113, 0.025776157155632973, 0.0041123670525848866, -0.03186086565256119, + -0.004371885675936937, -0.024322854354977608, 0.0295771025121212, 0.00743819447234273, + 0.027660660445690155, -0.03542225435376167, 0.012416953220963478, -0.007462149951606989, + -0.013982048258185387, -0.023204930126667023, -0.04040500521659851, -0.02651079371571541, + -0.020330265164375305, 0.007258527912199497, -0.018781140446662903, 0.006635683588683605, + -0.014253544621169567, 0.009382585063576698, 0.011698286980390549, -0.016233868896961212, + 0.0293215773999691, -0.01095566526055336, -0.03312252089381218, -0.010213043540716171, + 0.010077295824885368, -0.01080394722521305, 0.01592244766652584, 0.015251691453158855, + -0.008344512432813644, -0.014932285062968731, 0.0024774018675088882, -0.0018146319780498743, + -0.0037510378751903772, 0.014796536415815353, -0.014469143934547901, -0.022310590371489525, + -0.012377027422189713, -0.007721668109297752, -0.0169764906167984, -0.0046793147921562195, + -0.0016469431575387716, -0.033857159316539764, 0.017663216218352318, 0.0003735566569957882, + -0.019483836367726326, 0.018318001180887222, -0.016114091500639915, -0.013718537986278534, + -0.0008169836364686489, 0.03753034025430679, 0.0068153501488268375, 0.006563817150890827, + -0.027836333960294724, 0.012712405063211918, 0.020537881180644035, -0.03144563362002373, + 0.02641497179865837, -0.025392869487404823, 0.011873961426317692, 0.024754054844379425, + -0.001185799133963883, -0.047847192734479904, -0.00683531304821372, -0.010692154988646507, + 0.008735786192119122, 0.011434776708483696, -0.02536092884838581, -0.0015111950924620032, + -0.0126644941046834, -0.01175418309867382, 0.013798389583826065, 0.0028147755656391382, + 0.021352369338274002, 0.0011848009889945388, -0.012385012581944466, -0.0011598472483456135, + 0.010572376661002636, -0.016784846782684326, -0.005605595652014017, 0.010093266144394875, + -0.008464289829134941, -0.019372044131159782, -0.05778075382113457, 0.02528107725083828, + -0.02312507852911949, -0.06860865652561188, 0.015020121820271015, -0.014429218135774136, + -0.010165132582187653, -0.015595054253935814, -0.02507346123456955, -0.017168134450912476, + 0.010748051106929779, -0.018349941819906235, 0.038616325706243515, -0.005928995553404093, + 0.040181420743465424, 0.04899705946445465, 0.013814359903335571, 0.007038935087621212, + 0.024450618773698807, -0.022518204525113106, 0.006388143170624971, -0.02072952501475811, + 0.04343937337398529, 0.038488563150167465, -0.01537945494055748, -0.0031481569167226553, + 0.018557555973529816, -0.003269930835813284, 0.028842465952038765, -0.0035015009343624115, + -0.03513478860259056, -0.0203142948448658, 0.0025452757254242897, -0.002443464705720544, + -0.01988309621810913, -0.029848599806427956, -0.01287210825830698, -0.031749073415994644, + -0.025392869487404823, 0.03906349465250969, -0.01900472678244114, -0.0013095693429931998, + -0.053788166493177414, -0.024450618773698807, 0.027948126196861267, 0.034112684428691864, + -0.041011881083250046, 0.035965245217084885, 0.017503513023257256, -0.023955537006258965, + 0.03179698437452316, 0.018845021724700928, -0.008172830566763878, -0.008272645063698292, + -0.03356969356536865, -0.03590136393904686, -0.02178356796503067, 0.01141880638897419, + 0.017184104770421982, -0.007210616488009691, 0.03008815459907055, -0.034112684428691864, + -0.03871214762330055, 0.017535453662276268, -0.01638558693230152, 0.02451450005173683, + -0.00136945815756917, -0.02607959508895874, 0.03257953003048897, 0.016864698380231857, + -0.0015151876723393798, 0.025392869487404823, -0.0342085063457489, -0.019451895728707314, + -0.023604189977049828, -0.05532132089138031, -0.02072952501475811, 0.012656508944928646, + -0.0077655864879488945, -0.015674905851483345, -0.004787114914506674, 0.008735786192119122, + 0.009861696511507034, -0.006503928452730179, 0.007709690369665623, 0.06483965367078781, + 0.007621853146702051, 0.0047990926541388035, -0.018557555973529816, 0.009262807667255402, + -0.054714445024728775, 0.015443336218595505, -0.029209785163402557, 0.05861121416091919, + 0.019946977496147156, 0.027564838528633118, -0.021623864769935608, -0.011291042901575565, + -0.020026829093694687, 0.007286475971341133, -0.042033981531858444, 0.017295897006988525, + -0.009973488748073578, -0.03356969356536865, 0.02839529700577259, -0.0030084161553531885, + -0.0352306105196476, -0.0031261974945664406, 0.03160533681511879, -0.011442761868238449, + 0.0026311164256185293, -0.01866934821009636, -0.039287079125642776, 0.014077870175242424, + -0.0028367347549647093, 0.04315190762281418, 0.042289506644010544, -0.005765299312770367, + 0.009063177742064, 0.01327136717736721, 0.0021400279365479946, -0.010628273710608482, + -0.025249136611819267, -0.016752906143665314, -0.010101251304149628, -0.006268365308642387, + 0.029768748208880424, 0.0196754802018404, -0.00878369715064764, 0.05944167077541351, + -0.003313849214464426, -0.0031102271750569344, -0.02679826132953167, 0.03016800619661808, + 0.005537721794098616, 0.027245430275797844, 0.02409926988184452, 0.020378176122903824, + -0.005621565971523523, -0.0028307458851486444, 0.015419380739331245, 0.006064743269234896, + -0.015778712928295135, 0.010540436021983624, -0.004511625971645117, -0.007581927347928286, + -0.0008089984767138958, -0.016209913417696953, 0.006627698428928852, 0.004032515455037355, + 0.015746772289276123, 0.02726140059530735, -0.005058610811829567, 0.025297047570347786, + -0.025057490915060043, -0.03366551548242569, -0.03353775292634964, 0.002092116978019476, + 0.01882905140519142, 0.006667624693363905, 0.007490098010748625, 0.0010126205161213875, + 0.011802094988524914, -0.03131787106394768, -0.008009134791791439, 0.012480834499001503, + 0.006503928452730179, -0.003962645307183266, -0.005086558870971203, 0.0031641272362321615, + 0.029513221234083176, -0.018270090222358704, -0.01854158565402031, 0.02823559381067753, + 0.009869681671261787, -0.01215344201773405, -0.0024274943862110376, 0.013031812384724617, + -0.0071627055294811726, -0.025600483641028404, -0.0067434837110340595, -0.026367060840129852, + -0.0017946689622476697, -0.03328222781419754, -0.0040405006147921085, 0.026271238923072815, + 0.006619713269174099, -0.030934583395719528, -0.05279800295829773, 0.042033981531858444, + 0.02136833965778351, 0.009981473907828331, 0.0069351280108094215, -0.005781269632279873, + 0.0004207191232126206, 0.03516672924160957, 0.022645967081189156, 0.001318552647717297, + -0.011738212779164314, -0.03235594555735588, -0.004212182015180588, -0.00022533176525030285, + -0.016465438529849052, -0.014964225701987743, 0.0253289882093668, 0.00743819447234273, + 0.013470997102558613, 0.032419826835393906, 0.015986328944563866, -0.017854860052466393, + -0.009741918183863163, -0.024386737495660782, -0.004850996192544699, -0.03555001690983772, + 0.02317298948764801, -0.0033158455044031143, 0.01518781017512083, 0.009342659264802933, + 0.014509070664644241, 0.008184808306396008, -0.014612877741456032, -0.02481793612241745, + -0.03350581228733063, 0.0019114522729068995, -0.0048350258730351925, -0.008879519067704678, + -0.02389165572822094, -0.0268781129270792, 0.004942825995385647, 0.004375878255814314, + 0.036891527473926544, -0.01756739430129528, 0.015155869536101818, 0.003778985934332013, + -0.04420595243573189, 0.02001085877418518, -0.0034935157746076584, 0.04580298811197281, + -0.003986600786447525, -0.00901526678353548, -0.0010720102582126856, -0.008847578428685665, + 0.0025093425065279007, 0.011267087422311306, 0.02355627715587616, -0.014013988897204399, + 0.02085728757083416, 0.006164558231830597, 0.005154433194547892, 0.0004132330068387091, + 0.003367749275639653, -0.02582406811416149, -0.0033178417943418026, 0.01985115557909012, + -0.021559983491897583, 0.048901237547397614, -0.019244281575083733, -0.019052637740969658, + -0.017407691106200218, 0.012113516218960285, 0.007577934768050909, -0.018813081085681915, + 0.021639835089445114, 0.011698286980390549, -0.012560687027871609, -0.015810653567314148, + 0.022007152438163757, 0.0006987031665630639, 0.008879519067704678, 0.0191644299775362, + 0.009662066586315632, 0.0029505237471312284, -0.02409926988184452, -0.00356538244523108, + 0.008655933663249016, -0.01550721749663353, 0.0006303300615400076, -0.02018653228878975, + 0.011514628306031227, -0.018637407571077347, 0.004719240590929985, -0.013606744818389416, + 0.019739363342523575, -0.02312507852911949, -0.02633512020111084, -0.012329116463661194, + 0.04676120728254318, -0.012959945946931839, 0.0028008015360683203, -0.019244281575083733, + 0.03198862820863724, 0.00740625336766243, 0.016992460936307907, -0.03606106713414192, + 0.00356538244523108, -0.008156860247254372, -0.04490864649415016, 0.014820491895079613, + -0.005553692113608122, 0.014381307177245617, -0.005829180590808392, 0.01731186732649803, + 0.027612749487161636, -0.0101571474224329, -0.01632969081401825, 0.003475549165159464, + 0.0031341826543211937, -0.02136833965778351, -0.0109317097812891, 0.020697584375739098, + -0.03896767273545265, -0.006827327888458967, 0.005230292212218046, -0.003146160626783967, + 0.012065605260431767, 0.024386737495660782, 0.01097962073981762, -0.014596907421946526, + -0.021001020446419716, 0.006408106070011854, -0.025041520595550537, -0.008903474546968937, + -0.007038935087621212, 0.01651334948837757, -0.02052191086113453, 0.010516480542719364, + 0.010189088061451912, -0.00824070442467928, -0.004008559975773096, 0.0003802941646426916, + -0.026941994205117226, -0.026686469092965126, 0.029257696121931076, -0.0026530756149441004, + -0.0021919317077845335, -0.0031122234649956226, -0.025584513321518898, -0.021512072533369064, + 0.0014942266279831529, 0.03762616217136383, -0.020889228209853172, -0.037274815142154694, + 0.014293470419943333, 0.027580808848142624, 0.012672479264438152, -0.04660150408744812, + 0.020713554695248604, 0.015459306538105011, -0.02700587548315525, 0.013646670617163181, + -0.03309058025479317, -0.03181295469403267, -0.007478120271116495, -0.04123546555638313, + 0.004284048452973366, 0.005825188010931015, 0.03906349465250969, -0.005972913932055235, + 0.011179250665009022, -0.0336974561214447, -0.02039414644241333, 0.015563113614916801, + -0.005813210271298885, 0.039670370519161224, 0.036380477249622345, 0.015595054253935814, + -0.0027269385755062103, 0.00011428787547629327, 0.003249967936426401, 0.035581957548856735, + -0.012712405063211918, -0.00013412605039775372, 0.0021220613270998, -0.03868020698428154, + 0.023332692682743073, 0.0271336380392313, -0.030008303001523018, -0.00245943502523005, + -0.000846928043756634, 0.03535837307572365, -0.01946786604821682, -0.0049068923108279705, + -0.02347642555832863, 0.0196754802018404, -0.008839593268930912, 0.0147885512560606, + 0.003078286536037922, -0.01643349789083004, 0.030327709391713142, 0.009885651990771294, + 0.018046503886580467, -0.0244346484541893, -0.0068632615730166435, 0.037147052586078644, + -3.290767199359834e-5, -0.013247411698102951, -0.01070014014840126, -0.04200204089283943, + -0.020745495334267616, 0.03896767273545265, -0.01828606054186821, 0.014884374104440212, + 0.00035783584462478757, 0.015068032778799534, -0.012560687027871609, 0.019403984770178795, + -0.016992460936307907, 0.002217883476987481, 0.011235146783292294, 0.0018505651969462633, + 0.0061685508117079735, -0.01244889385998249, -0.0005100533016957343, -0.015730801969766617, + 0.006268365308642387, 0.018477704375982285, -0.015850581228733063, -0.016960520297288895, + 0.005585632752627134, 0.04053276777267456, 0.01972339302301407, 0.030439501628279686, + -0.0008374456665478647, -0.01314360462129116, 0.004236137494444847, 0.009821769781410694, + 0.03227609395980835, -0.030854731798171997, -0.0393509604036808, -0.011322983540594578, + 0.004759166855365038, -0.005928995553404093, 0.022981345653533936, 0.007797527126967907, + -0.0403730645775795, -0.0033158455044031143, -0.02574421651661396, -0.022390441969037056, + -0.03194071725010872, -0.014604892581701279, 0.004659351892769337, -0.006639676168560982, + -0.032132361084222794, 0.00451961113139987, 0.022278649732470512, -0.03868020698428154, + 0.018940845504403114, 0.018733229488134384, 0.0010999584337696433, 0.03647629916667938, + -0.005517758894711733, -0.019020697101950645, -0.0003131687408313155, -0.008053053170442581, + -0.031956687569618225, -0.014141752384603024, -0.0025073462165892124, 0.01795068196952343, + 0.011770153418183327, -0.010684169828891754, 0.008671903982758522, -0.004515618551522493, + -0.008871533907949924, 0.021384309977293015, -0.023364633321762085, 0.011171265505254269, + 0.00819279346615076, 0.015850581228733063, -0.012488819658756256, 0.03535837307572365, + -0.010795962065458298, -0.008041075430810452, -0.01137887965887785, -0.01535549946129322, + 0.010205058380961418, 0.02111281268298626, 0.028012007474899292, -0.012089560739696026, + -0.022997315973043442, -0.017806949093937874, -0.037690043449401855, -0.011283057741820812, + -0.009342659264802933, 0.018110385164618492, 0.011314998380839825, -0.029976362362504005, + 0.011171265505254269, -0.01934010349214077, -0.0159464031457901, 0.008927430026233196, + 0.011434776708483696, 0.005142455454915762, 0.016401557251811028, 0.0026331127155572176, + -0.00781749002635479, -0.01346301194280386, -0.012161427177488804, -0.0008604030590504408, + -0.007865400984883308, 0.01165037602186203, 0.02026638388633728, 0.0054099587723612785, + 0.02651079371571541, -0.03947872668504715, 0.019563687965273857, 0.02195924147963524, + 0.020026829093694687, -0.0347195565700531, -0.0069351280108094215, 0.02090519852936268, + -0.0008564104209654033, -0.007893349044024944, -0.013399130664765835, -0.03205250948667526, + 0.02191133052110672, -0.006639676168560982, 0.009190941229462624, 0.014588922262191772, + 0.0070828539319336414, -0.02127251774072647, 0.007086846511811018, 0.024578381329774857, + -0.02103296108543873, 0.017407691106200218, -0.0020741501357406378, -0.01030088122934103, + -0.022997315973043442, 0.004052478354424238, 0.041395168751478195, 0.034368209540843964, + -0.0321483314037323, -0.005641528870910406, 0.01735977828502655, 0.018892932683229446, + -0.008831608109176159, -0.019707422703504562, -0.010069310665130615, -0.06432860344648361, + 0.04883735626935959, -0.004998722113668919, -0.007893349044024944, 0.024003447964787483, + -0.0029804680962115526, 0.010684169828891754, 0.01558706909418106, -0.005194358993321657, + -0.020026829093694687, 0.008232719264924526, 0.004032515455037355, -0.02144819125533104, + 0.03331416845321655, 0.01428548526018858, 0.017184104770421982, 0.026175417006015778, + -0.03016800619661808, 0.025632424280047417, 0.010173117741942406, -0.01196978334337473, + -0.0073822978883981705, -0.022182827815413475, 0.030535325407981873, 0.005960936192423105, + 0.011115369386970997, -0.006927142851054668, 0.0003196566831320524, 0.009869681671261787, + 0.0017427653074264526, -0.002068161265924573, -0.0023436499759554863, 0.009813784621655941, + 0.0031800975557416677, -0.022725818678736687, -0.0046074483543634415, -0.01836591213941574, + -0.013175545260310173, 0.04516417160630226, -0.026399001479148865, -0.015547143295407295, + 0.03299475833773613, -0.01055640634149313, 0.029337547719478607, 0.022741788998246193, + -0.015579083934426308, 0.01815829798579216, 0.037562280893325806, 0.003607304533943534, + 0.024594351649284363, -0.02620735764503479, -0.028203653171658516, -0.011834035627543926, + 0.0067195282317698, 0.018302030861377716, 0.0061326175928115845, 0.002930560614913702, + -0.007234571967273951, 0.0432157889008522, -0.020841317251324654, 0.003381723305210471, + 0.014996166341006756, -0.0005195357371121645, 0.009622140787541866, 0.003593330504372716, + -0.044940587133169174, 0.023141048848628998, -0.02363613061606884, 0.03150951489806175, + 0.01101954746991396, -0.037019290030002594, 0.020042799413204193, 0.013662640936672688, + 0.011003576219081879, 0.006340232212096453, 0.01681678742170334, 0.019611598923802376, + -0.013255396857857704, 0.010708125308156013, 0.022773729637265205, -0.013638685457408428, + -0.006679602432996035, -0.015459306538105011, 0.0012646527029573917, -0.0019633558113127947, + -0.018349941819906235, -0.021144753322005272, -0.030774880200624466, 0.01777500845491886, + -0.029129933565855026, 0.006176535971462727, -0.0200587697327137, 0.02350836619734764, + -0.007861408405005932, 0.00506659597158432, -0.0034495973959565163, 0.02350836619734764, + 0.0014523044228553772, 0.005334099754691124, -0.044046249240636826, -0.004898907151073217, + 0.03868020698428154, -0.01887696236371994, -0.020330265164375305, -0.0380733348429203, + -0.01694454997777939, -0.004827040713280439, 0.0007076864712871611, 0.0023576240055263042, + ], + index: 29, + }, + { + title: "MP4 (disambiguation)", + text: "MP4 is MPEG-4 Part 14, a file format.MP4 may also refer to: M\u00f8ller\u2013Plesset perturbation theory of the fourth order in computational chemistry Mario Party 4, a video game for Nintendo GameCube MP4 (band), a band made up of UK Members of Parliament Mammal Paleogene zone 4, a division of the Paleogene period McLaren MP4/1, the McLaren team's Formula One car MP4: Days Since a Lost Time Accident, the fourth album by Michael Penn", + vector: [ + -0.02004411444067955, 0.057410698384046555, -0.030754586681723595, 0.03198733180761337, + -0.028945494443178177, -0.00789677258580923, -0.07326027750968933, 0.009349650703370571, + 0.018571224063634872, 0.036502059549093246, 0.04831720143556595, 0.008765297941863537, + 0.043674394488334656, 0.0197239201515913, -0.029137609526515007, -0.030226267874240875, + -0.06864949315786362, 0.023214029148221016, 0.0016279838746413589, 0.03169915825128555, + -0.026271877810359, -0.023053932934999466, -0.03458090126514435, 0.0016089724376797676, + -0.012423508800566196, 0.009429698809981346, 0.043482281267642975, 0.004546748008579016, + -0.02667211927473545, 0.02596769481897354, 0.001192720839753747, -0.003071856452152133, + 0.04101679101586342, 0.007212358992546797, -0.012599614448845387, -0.001095662242732942, + 0.057955026626586914, -0.008901380002498627, 0.02745659463107586, 0.018010884523391724, + 0.00537124602124095, 0.0030478420667350292, -0.030130209401249886, 0.011414898559451103, + 0.014208586886525154, 0.016345879063010216, 0.0036021771375089884, 0.0006163725047372282, + 0.0003141898778267205, -0.014480751939117908, 0.006980218458920717, 0.02713640034198761, + -0.05808310583233833, 0.011975237168371677, 0.012495552189648151, -0.011422903276979923, + 0.03566955775022507, 0.057058483362197876, -0.0003084363997913897, -0.06704851984977722, + -0.009141525253653526, -0.015073109418153763, 0.017962856218218803, -0.00692418497055769, + 0.0026776182930916548, 0.0019801966845989227, 0.05395260825753212, -0.017962856218218803, + 0.005855538882315159, 0.012263411656022072, 0.035861674696207047, 0.03281983733177185, + -0.005535345524549484, 0.024590862914919853, -0.014688877388834953, -0.03621388599276543, + 0.02649601362645626, 0.04620392620563507, 0.009685853496193886, 0.06730467826128006, + 0.008565176278352737, -0.011478937231004238, -0.02121281996369362, 0.03573359549045563, + -0.010806531645357609, 0.007800714578479528, 0.0025635494384914637, -0.08491531759500504, + 0.00788876786828041, 0.018475165590643883, 0.022845806553959846, 0.0383271649479866, + 0.031170839443802834, 0.06147715449333191, 0.08690051734447479, -0.051134902983903885, + 0.024190619587898254, 0.014929022639989853, 0.02760068140923977, -0.029633909463882446, + 0.00693619204685092, 0.008260992355644703, 0.043354202061891556, 0.04149708151817322, + 0.03947985917329788, -0.010678453370928764, 0.030978722497820854, 0.012543581426143646, + 0.012743702158331871, 0.028497222810983658, -0.0011216779239475727, 0.018667282536625862, + -0.015361283905804157, 0.015057099983096123, -0.01998007483780384, 0.04156111925840378, + -0.049726054072380066, -0.04079265519976616, -0.05241568014025688, 0.017354488372802734, + -0.005895562935620546, -0.03477301448583603, -0.0022253450006246567, 0.0038443233352154493, + -0.04133698344230652, 0.03906361013650894, 0.0017090329201892018, 0.018283050507307053, + -0.0023654296528548002, 0.0016169772716239095, -0.0416891947388649, 0.050270382314920425, + 0.024478795006871223, -0.01630585454404354, 0.016457946971058846, 0.057698871940374374, + -0.03454887866973877, -0.012551586143672466, 0.03842322155833244, 0.03230752423405647, + -0.0211647916585207, 0.006868151016533375, 0.02588764578104019, 0.009357655420899391, + -0.016650062054395676, -0.03477301448583603, 0.0043866513296961784, 0.06272590905427933, + 0.011550981551408768, 0.04703642800450325, -0.023934464901685715, -0.06003628298640251, + -0.007028247695416212, -0.0396079383790493, 0.02598370425403118, 0.03422868624329567, + -0.0026916267815977335, 0.016537996008992195, -0.04956595599651337, -0.03781485557556152, + 0.03387647494673729, -0.015137148089706898, 0.0128557700663805, 0.018715310841798782, + 0.05228760093450546, -0.01348014734685421, 0.0279528945684433, -0.029281696304678917, + 0.014040485955774784, 0.021420946344733238, 0.009565780870616436, -0.021917246282100677, + 0.09804325550794601, -0.031330935657024384, -0.016858188435435295, -0.06154119223356247, + -0.0028116994071751833, 0.07089084386825562, -0.024847017601132393, 0.006059662438929081, + -0.0017690692329779267, -0.018186992034316063, 0.022445565089583397, -0.018651273101568222, + -0.018379107117652893, -0.02082858793437481, 0.013207982294261456, 0.018555214628577232, + 0.03778283670544624, -0.0073964702896773815, 0.005739468615502119, -0.006503930781036615, + 0.0836985856294632, -0.018363097682595253, 0.08779706060886383, 0.0006193743320181966, + -0.04629998281598091, -0.007756688166409731, 0.004214547108858824, 0.01967589184641838, + 0.0018801363185048103, -0.037270523607730865, 0.022285468876361847, 0.03317204862833023, + 0.044314783066511154, 0.028785396367311478, -0.011310836300253868, 0.031426992267370224, + 0.0402483232319355, 0.006227763835340738, 0.029842035844922066, -0.02135690674185753, + 0.03349224105477333, 0.01592162251472473, 0.06182936951518059, -0.010286216624081135, + -0.03861533850431442, 0.024222640320658684, 0.04620392620563507, -0.02625586837530136, + 0.06826525926589966, 0.022109363228082657, -0.022429555654525757, 0.0017630655784159899, + -0.02734452672302723, 0.008397075347602367, -0.05949195474386215, 0.0383271649479866, + -0.02113277278840542, 0.0019111550645902753, -0.02636793628334999, 0.02689625509083271, + -0.0060956841334700584, -0.011198768392205238, -0.02638394571840763, 0.06832929700613022, + 0.01007809117436409, 0.007180339656770229, 0.023117972537875175, 0.03381243720650673, + -0.024366727098822594, -0.036502059549093246, -0.015561404637992382, 0.01901949569582939, + 0.01372829731553793, 0.0551053024828434, 0.002021221676841378, 2.8063835998182185e-5, + -0.04498719051480293, -0.006543954834342003, 0.007300412282347679, 0.018379107117652893, + -0.02588764578104019, 0.021885227411985397, 0.008581186644732952, 0.004084468353539705, + 0.0421694852411747, 0.02604774199426174, -0.0007969816797412932, -0.037174466997385025, + -0.04678027331829071, -0.015697486698627472, -0.05923580005764961, -0.03403656929731369, + 0.01905151456594467, -0.036598119884729385, 0.007520545274019241, 9.424446034245193e-5, + -0.03198733180761337, 0.014977051876485348, 0.022141382098197937, -0.00499501870945096, + 0.04780489206314087, -0.03254767134785652, -0.012815745547413826, 0.0037102424539625645, + -0.031218867748975754, 0.024927064776420593, 0.038199085742235184, 0.011382879689335823, + -0.008717268705368042, 0.08728475123643875, -0.028545251116156578, -0.021949265152215958, + -0.012047281488776207, 0.010702468454837799, -0.007292407564818859, 0.004254571162164211, + -0.015505370683968067, 0.04012024775147438, 0.024558842182159424, -0.012023266404867172, + 0.01632186397910118, 0.017290450632572174, -0.02134089730679989, 0.016698092222213745, + -0.024734949693083763, 0.08062472939491272, 0.05609790235757828, 0.04678027331829071, + -0.04028034582734108, 0.03557350113987923, -0.0038863488007336855, -0.02721644937992096, + 0.03557350113987923, 0.07332431524991989, 0.005559360142797232, -0.005543350242078304, + -0.009237582795321941, -0.05315212532877922, 0.018763341009616852, -0.029890064150094986, + -0.025407355278730392, 0.05321616306900978, -0.021949265152215958, -0.04044044017791748, + -0.036502059549093246, -0.04082467406988144, -0.07543759047985077, 1.098320080927806e-5, + -0.02598370425403118, 0.02756866253912449, -0.024430764839053154, 0.01577753573656082, + 0.0316191092133522, -0.05356837436556816, -0.029393764212727547, -0.0050150309689342976, + -0.0400882288813591, 0.03867937624454498, -0.06432687491178513, -0.02689625509083271, + 0.037718795239925385, 0.029313717037439346, 0.03205136954784393, -0.016858188435435295, + 0.006247776094824076, 0.006455902010202408, 0.024398745968937874, -0.010182153433561325, + 0.008485128171741962, 0.03134694695472717, 0.07562971115112305, 0.02590365521609783, + 0.014929022639989853, 0.00472285458818078, 0.009221573360264301, -0.016938237473368645, + -0.017658673226833344, -0.02122882939875126, 0.0008920390973798931, -0.01957983337342739, + 0.023742349818348885, 0.023982495069503784, 0.0006203749217092991, -0.003972400911152363, + -0.030946703627705574, -0.03378041461110115, 0.024430764839053154, 0.02030026912689209, + -0.0010756500996649265, -0.017994875088334084, 0.014240606687963009, -0.04546748101711273, + 0.007576579228043556, 0.009565780870616436, -0.018859397619962692, 0.023166000843048096, + 0.011895189061760902, -0.009117510169744492, -0.0018651272403076291, -0.02620784007012844, + -0.02006012387573719, 0.022189410403370857, -0.0410488098859787, 0.02002810500562191, + 0.023262059316039085, 0.005899565760046244, -0.022269459441304207, 0.013215987011790276, + -0.03397253155708313, 0.04690834879875183, 0.042489681392908096, -0.037622738629579544, + -0.009309626184403896, 0.003950387705117464, -0.01397644728422165, -0.008693253621459007, + -0.010158139280974865, 0.0030558467842638493, 0.00667603500187397, 0.0420093908905983, + -0.007180339656770229, -0.04543545842170715, -0.025919664651155472, 0.023518214002251625, + -0.009077486582100391, -0.001904150820337236, -0.029297707602381706, -0.037014368921518326, + 0.03259570151567459, -0.0194037277251482, -0.0018881411524489522, 0.024126581847667694, + -0.003570157801732421, 0.015881597995758057, -0.018138961866497993, -0.06221359968185425, + -0.011182758957147598, -0.013288031332194805, 0.03807101026177406, 0.0032719774171710014, + 0.04562757536768913, -0.03410061076283455, 0.0002574055688455701, -0.03310801088809967, + -0.02721644937992096, 0.014336665160953999, -0.00789677258580923, 0.008677244186401367, + 0.04213746637105942, 0.029409773647785187, 0.024158600717782974, -0.001530925277620554, + 0.03384445607662201, 0.07332431524991989, 0.030658530071377754, 0.0004455192538443953, + 0.0029117597732692957, 0.015689482912421227, 0.0021933256648480892, -0.023646291345357895, + 0.009101500734686852, 0.012015261687338352, 0.04242563992738724, -0.01031023170799017, + -0.015801550820469856, -0.013584209606051445, -0.03155507147312164, -0.0013978448696434498, + -0.03592571243643761, 0.050814710557460785, -0.005255176220089197, 0.037558700889348984, + -0.00509908189997077, -0.01336007472127676, 0.015681477263569832, -0.04902162775397301, + 0.0018100939923897386, 0.006119698751717806, 0.025423364713788033, -0.011198768392205238, + -0.04172121360898018, 0.008341041393578053, 0.0277927964925766, 0.03925572335720062, + 0.029601890593767166, -0.013664258643984795, -0.0005378250498324633, -0.025151200592517853, + 0.006595986429601908, 0.02007613331079483, 0.07434893399477005, -0.029970113188028336, + 0.02744058519601822, -0.09477727860212326, -0.0808168426156044, 0.02662409096956253, + -0.0027496619150042534, -0.003742261789739132, -0.04117688536643982, -0.05372847244143486, + 0.010550376027822495, 0.005391258280724287, -0.010134125128388405, -0.049437880516052246, + -0.002731650834903121, -0.011262807063758373, 0.003009818959981203, -0.007984825409948826, + 0.04066457599401474, 0.022013304755091667, -0.02792087383568287, -0.006115696392953396, + -0.017050305381417274, 0.006503930781036615, 0.024334706366062164, -0.037558700889348984, + 0.017306460067629814, -0.006315817125141621, 0.043994590640068054, -0.0656396746635437, + 0.03310801088809967, -0.00960580538958311, -0.006003628484904766, 0.04018428549170494, + -3.223823296139017e-5, -0.013424113392829895, 0.03352425992488861, 0.018667282536625862, + -0.005547352600842714, -0.02737654559314251, -0.00670004915446043, 0.04681229218840599, + 0.010270207189023495, -0.0277127493172884, 0.001817098236642778, -0.04754873737692833, + -0.012439518235623837, 0.036117829382419586, -0.015177172608673573, 0.022877827286720276, + -0.018843388184905052, 0.03909562900662422, -0.0038803452625870705, -0.011807136237621307, + 0.030402373522520065, 0.02095666527748108, -0.02811299078166485, 0.016714101657271385, + 0.0018000879790633917, 0.04594777151942253, -0.009389675222337246, 0.021420946344733238, + -0.04149708151817322, -0.02006012387573719, -0.02734452672302723, -0.0383271649479866, + 0.015217197127640247, 0.006291802506893873, -0.0019131562439724803, 0.015441332012414932, + 0.023774368688464165, 0.01398445200175047, -0.03297993168234825, -0.00011175504187121987, + -0.005987618584185839, 0.03368435800075531, 0.0028036944568157196, 0.001049634418450296, + -0.03221146762371063, 0.017050305381417274, 0.013344064354896545, 0.022829797118902206, + -0.02625586837530136, 0.0020752542186528444, 0.009205563925206661, -0.02081257849931717, + -0.0008995436364784837, 0.011166748590767384, 0.02017219178378582, 0.015177172608673573, + 0.021949265152215958, 0.017194392159581184, 0.02630389668047428, 0.01921161077916622, + 0.013047886081039906, 0.01359221525490284, 0.03560552000999451, 0.011238791979849339, + 0.024911055341362953, -0.01314394362270832, -0.018186992034316063, 0.039768036454916, + -0.01937170699238777, 0.025647500529885292, -0.06246975436806679, -0.0070482599548995495, + -0.022589651867747307, -0.036566101014614105, 0.014168563298881054, -0.011855164542794228, + 0.037494659423828125, 0.002775677479803562, 0.03323608636856079, 0.00031243881676346064, + 0.004306602757424116, 0.016810160130262375, -0.02105272375047207, -0.0060996864922344685, + 0.007152322679758072, -0.01060640998184681, 0.007860750891268253, 0.029345735907554626, + -0.007180339656770229, 0.007016240619122982, -0.008493132889270782, 0.004934982396662235, + -0.07037853449583054, 0.0015709494473412633, 0.00694819912314415, -0.00046453074901364744, + -0.021901236847043037, -0.002939776750281453, -0.0009830942144617438, -0.0022853813134133816, + 0.017370497807860374, -0.02752063237130642, 0.03346022218465805, 0.023838406428694725, + -0.01359221525490284, 0.025071151554584503, -0.042745836079120636, 0.012847764417529106, + -0.005607388913631439, 0.022957874462008476, 0.01951579563319683, -0.011647039093077183, + -0.01914757303893566, 0.050334420055150986, 0.014985056594014168, -0.030674539506435394, + 0.03842322155833244, 0.025743559002876282, -0.012407498434185982, 0.007836736738681793, + -0.022909846156835556, -0.015185177326202393, 0.017722710967063904, -0.04930980131030083, + 0.023230040445923805, -0.0025195227935910225, 0.07556567341089249, 0.010638429783284664, + -0.017098333686590195, 0.00248950463719666, 0.011502952314913273, 0.013832359574735165, + 0.03192329406738281, -0.02676817774772644, -0.010942613705992699, -0.011871174909174442, + 0.008749287575483322, -0.02006012387573719, 0.04127294570207596, -0.016682082787156105, + 0.014953036792576313, -0.043642375618219376, -0.02129286900162697, 0.016057705506682396, + -0.013183968141674995, -0.031058771535754204, -0.015353279188275337, 0.02697630412876606, + -0.012079300358891487, 0.023198019713163376, 0.00042700808262452483, -0.016650062054395676, + -0.0004630298353731632, -0.04293794929981232, -0.050334420055150986, -0.030482422560453415, + -0.007832733914256096, 0.018491175025701523, -0.006203749217092991, -0.007848743349313736, + 0.003071856452152133, -0.001076650689356029, 0.010782516561448574, -0.009797921404242516, + -0.018170982599258423, 0.005895562935620546, -0.02066849172115326, 0.02785683609545231, + -0.029649918898940086, -0.0005263180937618017, -0.01999608427286148, -0.024462785571813583, + -0.0312989167869091, 0.04847729951143265, 0.013952432200312614, 0.004646808374673128, + 0.03627792373299599, 0.002255363157019019, 0.005455296952277422, -0.03627792373299599, + -0.04149708151817322, 0.0011336851166561246, 0.0009270603186450899, 0.022189410403370857, + 0.02012416161596775, -0.007456506602466106, -0.036117829382419586, 0.02635192684829235, + -0.014616833999752998, 0.018395118415355682, -0.012247402220964432, 0.015273231081664562, + -0.017770739272236824, -0.028929485008120537, 0.008525152690708637, -0.009901984594762325, + 0.009125514887273312, 0.01921161077916622, -0.01949978433549404, -0.018603242933750153, + -0.0008915388025343418, -0.023166000843048096, 0.0032459618523716927, -0.014816954731941223, + 0.008373060263693333, -0.02739255502820015, -0.016409918665885925, -0.006155720446258783, + -0.01314394362270832, -0.013207982294261456, -0.0050870743580162525, -0.015377293340861797, + 0.044666994363069534, -0.029105590656399727, 0.01020616851747036, 0.043290164321660995, + -0.01324000209569931, 0.03217944875359535, -0.014072504825890064, 0.01980396918952465, + -0.002669613342732191, -0.0399281308054924, -0.0019912035204470158, 0.002091263886541128, + 0.037750814110040665, 0.017994875088334084, -0.02002810500562191, 0.05910772457718849, + -0.0023053933400660753, 0.028769386932253838, -0.013175963424146175, -0.024350717663764954, + -0.0053512342274188995, 0.0038783440832048655, -0.0637185126543045, 0.024174610152840614, + -0.025071151554584503, 0.0038863488007336855, 0.02159705199301243, 0.06202148273587227, + -0.03163512051105499, 0.006199746858328581, -0.017354488372802734, 0.014464742504060268, + 0.02694428525865078, -0.023886436596512794, 0.04588373005390167, 0.011222782544791698, + -0.0019942051731050014, -0.01047833263874054, 0.07486124336719513, -0.0022253450006246567, + -0.009189553558826447, 0.006483918521553278, 0.015161163173615932, -0.028353136032819748, + 0.042809873819351196, -0.03238757327198982, -0.00200020894408226, 0.0014228599611669779, + 0.016906218603253365, 0.015393303707242012, -0.0074645113199949265, -0.0005688437959179282, + -0.0038643355946987867, -0.030482422560453415, -0.025711540132761, -0.018875407055020332, + -0.04774085432291031, -0.036438021808862686, 0.01008609589189291, -0.007648622617125511, + -0.003067854093387723, 0.03515724837779999, 0.012815745547413826, -0.01373630203306675, + -0.010870570316910744, -0.0008530155173502862, -0.00341006089001894, -0.00014971548807807267, + -0.03166713938117027, -0.006772093009203672, 0.0064478968270123005, 0.008277002722024918, + -0.036950331181287766, -0.006499928422272205, -0.022605663165450096, -0.00048154103569686413, + 0.008180944249033928, -0.02752063237130642, 0.008637219667434692, -0.008076881058514118, + -0.023550232872366905, 0.02122882939875126, 0.029009532183408737, 0.03413262963294983, + -0.040888711810112, -0.02017219178378582, 0.01073448732495308, -0.0019962063524872065, + -0.006836131680756807, 0.007668634876608849, -0.008901380002498627, 0.022541623562574387, + -0.004590774420648813, 0.03925572335720062, 0.035861674696207047, -0.02121281996369362, + -0.018379107117652893, -0.01008609589189291, 0.023502204567193985, -0.03890351206064224, + -0.015753520652651787, -0.037206485867500305, -0.014432722702622414, 0.03371637687087059, + 0.02001209557056427, -0.044442858546972275, 0.003576161339879036, -0.015881597995758057, + 0.0007329429499804974, 0.00982994120568037, 0.025519423186779022, 0.018475165590643883, + 0.023646291345357895, -0.010150134563446045, 0.0033800427336245775, 0.014416713267564774, + 0.04044044017791748, -0.013560195453464985, 0.036630138754844666, 0.011855164542794228, + 0.018154973164200783, 0.0019241629634052515, 0.011462927795946598, -0.02135690674185753, + -0.02798491343855858, -0.015681477263569832, -0.0013598218793049455, 0.014640848152339458, + -0.003634196473285556, -0.0033280113711953163, -0.006271790713071823, 0.02678418718278408, + -0.017786750569939613, 0.024654900655150414, -0.024078551679849625, -0.024286678060889244, + -0.007300412282347679, -0.02002810500562191, 0.011566990986466408, 0.014905008487403393, + 0.02046036534011364, 0.028945494443178177, 0.015977656468749046, -0.022157391533255577, + 0.01359221525490284, 0.002327406546100974, 0.008757292293012142, -0.028961503878235817, + 0.011703073047101498, -0.024526823312044144, -0.0023694320116192102, 0.005875551141798496, + 0.0197239201515913, -0.0015909615904092789, -0.007108296267688274, 0.010790521278977394, + -0.01938771829009056, 0.010270207189023495, 0.03291589394211769, -0.04197736829519272, + -0.009309626184403896, -0.021500995382666588, 0.022413546219468117, 0.02031627856194973, + -0.003974401857703924, 0.04658815637230873, -0.050622593611478806, 0.005307207349687815, + -0.030066171661019325, 0.03174718841910362, 0.05561761558055878, 0.04191333055496216, + 0.044506900012493134, -0.001674011698924005, 0.03265973925590515, -0.022845806553959846, + 0.0420093908905983, -0.00995001383125782, 0.02604774199426174, -0.012847764417529106, + -0.03624590486288071, 0.03269175812602043, -0.005883555859327316, 0.006664027459919453, + 0.01922762021422386, -0.022461574524641037, 0.035829655826091766, 0.009629820473492146, + 0.02734452672302723, -0.021613063290715218, -0.05267183482646942, -0.04921374469995499, + 0.017082324251532555, -0.02792087383568287, 0.02057243324816227, 0.018122952431440353, + 0.004630798939615488, 0.014048490673303604, 0.009877970442175865, -0.010382275097072124, + 0.012151343747973442, -0.02025224082171917, -0.015073109418153763, 0.0026415965985506773, + -0.021629072725772858, -0.014416713267564774, 0.01326401624828577, -0.0029257682617753744, + -0.0018371102632954717, 0.011142734438180923, 0.008156930096447468, 0.04863739386200905, + -0.015737511217594147, -0.025103172287344933, 0.018859397619962692, 0.03839120268821716, + 0.01019816379994154, -0.044218726456165314, 0.021693110466003418, 0.014953036792576313, + 0.03317204862833023, -0.005487316288053989, -0.01980396918952465, 0.007032250054180622, + 0.0097018638625741, -0.02058844268321991, 0.04626796394586563, 0.01033424586057663, + 0.004782890435308218, -0.007160327397286892, 0.015217197127640247, -0.02635192684829235, + 0.009765902534127235, 0.03176319599151611, 0.024638891220092773, 0.04018428549170494, + 0.012487547472119331, 0.03342820331454277, -0.016730111092329025, 0.018122952431440353, + -0.024126581847667694, -0.017130352556705475, 0.028177030384540558, -0.02644798532128334, + 0.008821330964565277, -0.036438021808862686, -0.016169773414731026, 0.04850931838154793, + -0.009029457345604897, -0.023198019713163376, -0.011727087199687958, 0.016457946971058846, + 0.002014217432588339, -0.010430303402245045, 0.02691226452589035, 0.005539347883313894, + 0.042745836079120636, 0.016714101657271385, -0.029906073585152626, 0.006952201947569847, + -0.017258429899811745, -0.015081115067005157, 0.02041233703494072, -0.05475309118628502, + 0.02752063237130642, 0.04796499013900757, 0.051871348172426224, 0.037334565073251724, + 0.011815140955150127, -0.00657597417011857, -6.582103196706157e-6, 0.0035341358743608, + 0.044859111309051514, -0.04015226662158966, 0.05978012830018997, -0.02814500965178013, + -0.017418527975678444, 0.036758214235305786, 0.018491175025701523, 0.008429094217717648, + 0.05260779336094856, 0.02644798532128334, -0.014184572733938694, -0.028945494443178177, + 0.00957378651946783, -0.043578337877988815, 0.04678027331829071, 0.015217197127640247, + -0.005915575195103884, -0.00667603500187397, 0.00485093193128705, 0.022637682035565376, + -0.03320406749844551, -0.00035796634620055556, -0.006335829384624958, 0.010534366592764854, + 0.012423508800566196, 0.028321117162704468, 0.0267521683126688, 0.0001440870837541297, + -0.04127294570207596, 0.02583961747586727, -0.016121743246912956, -0.0020272252149879932, + 0.005719456821680069, 0.024158600717782974, 0.04226554557681084, 0.002701632911339402, + -0.026271877810359, 0.018379107117652893, 0.043130066245794296, 0.04034438356757164, + -0.03426070511341095, -0.0018331079045310616, 0.012623629532754421, -0.012895793654024601, + 0.01323199737817049, 0.023230040445923805, 0.005627401173114777, -0.015265226364135742, + 0.01021417323499918, 0.008701259270310402, -0.014152553863823414, -0.011639034375548363, + 0.012503556907176971, 0.021533014252781868, -0.012879784218966961, 0.023117972537875175, + -0.002995810704305768, -0.018827378749847412, 0.003682225476950407, -0.044346801936626434, + -0.00046102862688712776, -0.008421089500188828, -0.04988614842295647, 0.02729649655520916, + 0.017434537410736084, -0.022349506616592407, -0.00679610762745142, -0.007252383045852184, + 0.016634052619338036, -0.016730111092329025, 0.0017800758359953761, 0.015337269753217697, + 0.014752916060388088, -0.022109363228082657, -0.0020112155470997095, 0.004806905053555965, + 0.023166000843048096, -0.006607993505895138, 0.036726195365190506, 0.029521841555833817, + 0.004690835252404213, -0.008901380002498627, 0.0056954422034323215, 0.0029657925479114056, + 0.018875407055020332, -0.016073714941740036, 0.024654900655150414, 0.02764870971441269, + -0.005323217250406742, -0.010022057220339775, -0.009797921404242516, -0.01633787341415882, + -0.004334619734436274, -0.0004267579352017492, 0.007556566968560219, 0.0022893836721777916, + -0.009653834626078606, -0.01398445200175047, 0.025615481659770012, -0.0039043596480041742, + -0.03201935067772865, -0.002945780288428068, -0.0024014513473957777, 0.003516125027090311, + -0.009037462063133717, -0.009141525253653526, 0.012015261687338352, -0.014961042441427708, + -0.002041233703494072, 0.012655648402869701, -0.0019591841846704483, 0.016890207305550575, + 0.008421089500188828, -0.00341006089001894, -0.02639995515346527, 0.03245161473751068, + 0.013824354857206345, 0.0517432726919651, 0.04207342863082886, -0.013696277514100075, + 0.010918598622083664, -0.05212750285863876, -0.00014871488383505493, 0.001863126060925424, + 0.03349224105477333, -0.0016670074546709657, 0.024254659190773964, 0.02638394571840763, + -0.013920413330197334, 0.015913616865873337, 0.008893375284969807, 0.04197736829519272, + 0.01962786167860031, 0.008733278140425682, 0.022989895194768906, -0.015457342378795147, + 0.004630798939615488, -0.002887745387852192, 0.016778139397501945, 0.011574995703995228, + 0.0038223101291805506, 0.003618186805397272, -0.013207982294261456, -0.04245765879750252, + 0.008565176278352737, -0.012823750264942646, 0.0039603933691978455, -0.003231953363865614, + 0.0012917807325720787, 0.0202042106539011, 0.018283050507307053, -0.024350717663764954, + -0.0022373523097485304, -0.011038671247661114, 0.004374643787741661, 0.003632195293903351, + 0.00667603500187397, -0.022253450006246567, 0.015489361248910427, -0.017386507242918015, + -0.015089119784533978, 0.007096288725733757, -0.05225558206439018, 0.02681620791554451, + -0.012047281488776207, 0.006383858155459166, -0.03877543658018112, 0.022285468876361847, + 0.0038643355946987867, 0.009525757282972336, 0.04207342863082886, 0.006059662438929081, + 0.012519566342234612, -0.009157534688711166, 0.037398602813482285, -0.022381527349352837, + -0.029761986806988716, -0.01400846615433693, 0.003978404216468334, 0.01609772816300392, + 0.02646399475634098, -0.008317026309669018, -0.0009490735828876495, -0.0077486829832196236, + -0.018186992034316063, -0.038167066872119904, 0.030002132058143616, -0.016265830025076866, + 0.012527571059763432, 0.018795359879732132, -0.009269602596759796, 0.023774368688464165, + -0.009909989312291145, -0.03378041461110115, 0.022397536784410477, -0.012735697440803051, + -0.0405685193836689, -0.0202042106539011, -0.006299807224422693, -0.011342855170369148, + 0.0015679476782679558, -0.008204959332942963, -0.023262059316039085, 0.029073571786284447, + 0.02121281996369362, -0.012295431457459927, -0.011903193779289722, -0.017146361991763115, + -0.01340009830892086, 0.014480751939117908, 0.030946703627705574, 0.005599384196102619, + -0.024766968563199043, 0.006836131680756807, -0.029121600091457367, 0.02681620791554451, + -0.021869217976927757, 0.014360679313540459, 0.0008019846864044666, 0.006455902010202408, + 0.036117829382419586, -0.00200020894408226, -0.006732068490236998, 0.02680019661784172, + -0.010150134563446045, 0.021773159503936768, 0.013960436917841434, -0.01010210532695055, + 0.004578767344355583, -0.010974632576107979, -0.02681620791554451, 0.01959584280848503, + -0.024158600717782974, -0.012335455045104027, 0.008252987638115883, -0.022029314190149307, + -0.03531734645366669, 0.0001409601973136887, -0.012119324877858162, 0.003578162519261241, + -0.015185177326202393, 0.009093496017158031, -0.0070602670311927795, -0.02649601362645626, + -0.015569409355521202, 0.003237956902012229, 0.04159313812851906, -0.023566242307424545, + 0.03525330498814583, -0.029569871723651886, -0.036309946328401566, -0.002339413855224848, + -0.008429094217717648, 0.015993665903806686, 0.01362423412501812, 0.017194392159581184, + 0.016345879063010216, -0.00027066358597949147, 0.016025684773921967, 0.010774511843919754, + 0.014993061311542988, 0.0002819203946273774, -0.0024794985074549913, 0.0019361701561138034, + -0.01617777720093727, 0.008925394155085087, 0.011863170191645622, 0.011342855170369148, + 0.011198768392205238, -0.009045466780662537, -0.009021452628076077, 0.0030738578643649817, + -0.017082324251532555, -0.012495552189648151, -0.023950474336743355, 0.00655996473506093, + 0.015313254669308662, 0.0016630050959065557, 0.03595773130655289, 0.03342820331454277, + 0.015721501782536507, -0.037558700889348984, -0.015457342378795147, -0.03336416557431221, + -0.012287425808608532, 0.014280631206929684, -0.0021352905314415693, -0.029425784945487976, + 0.006527945399284363, 0.022957874462008476, -0.009437703527510166, 0.02796890400350094, + -0.004122491460293531, 0.0038883499801158905, -0.02667211927473545, -0.006423882208764553, + 0.017738720402121544, -0.024078551679849625, 0.015513376332819462, 0.014560800045728683, + 0.002277376363053918, -0.010678453370928764, 0.0023694320116192102, 0.010406289249658585, + -0.007688646670430899, 0.017786750569939613, -0.010382275097072124, 0.016489965841174126, + -0.0023314091376960278, 0.005059057381004095, -0.0003099373134318739, 0.0036021771375089884, + -0.013464136980473995, 0.01031023170799017, -0.030642518773674965, 0.0007099290378391743, + -0.000910550297703594, -0.0196438729763031, 0.017626652494072914, 0.014993061311542988, + -0.03352425992488861, -0.024606872349977493, -0.03173117712140083, 0.03925572335720062, + -0.002451481530442834, -0.02628788724541664, -0.02606375142931938, 0.0009260596707463264, + 0.00799283105880022, 0.03166713938117027, -0.0038263124879449606, -0.005587376654148102, + -0.024366727098822594, 0.01946776546537876, 0.003536137053743005, -0.0077326735481619835, + 0.03365233913064003, -0.03842322155833244, -0.025199228897690773, -0.00961381010711193, + -0.0035521467216312885, -0.04271381348371506, -0.05472107231616974, -0.00999003741890192, + -0.011302831582725048, -0.006844136398285627, -0.008389069698750973, 0.018539205193519592, + -0.018058914691209793, 0.014921017922461033, -0.03160310164093971, -0.03909562900662422, + 0.044699013233184814, -0.0037582714576274157, -0.010702468454837799, 0.0024194621946662664, + -0.02121281996369362, 0.0011216779239475727, -0.00242746714502573, -0.0032219472341239452, + -0.00537124602124095, -0.0008710264228284359, -0.00017935839423444122, 0.003952388651669025, + 0.014712892472743988, 0.010542371310293674, 0.01384836994111538, -0.014264620840549469, + 0.016682082787156105, -0.04255371913313866, -0.014256616123020649, -0.0033140028826892376, + -0.006235768552869558, 0.012207377701997757, 0.017866797745227814, 0.017962856218218803, + 0.0005783495143987238, 0.01399245671927929, 0.0069281873293221, 0.03576561436057091, + -0.012823750264942646, 0.010982637293636799, -0.0027056352701038122, -0.0013968441635370255, + 0.008333036676049232, -0.006539952475577593, -0.010990642011165619, -0.08139318972826004, + -0.010702468454837799, 0.02094065584242344, -0.04149708151817322, 0.04879749193787575, + -0.03251565247774124, 0.012767716310918331, -0.0029918081127107143, 0.0016109736170619726, + 0.008164934813976288, -0.005747473798692226, 0.015273231081664562, -0.008164934813976288, + -0.012735697440803051, -0.008309021592140198, 0.04767681285738945, 0.0006784099969081581, + -0.0012327450094744563, 0.028449194505810738, 0.008717268705368042, 0.04838123917579651, + 0.0005158117273822427, -0.0011526966700330377, 0.004782890435308218, -0.0010526361875236034, + 0.03163512051105499, -0.011286821216344833, 0.02082858793437481, -0.031122809275984764, + -0.017802760004997253, 0.012191368266940117, -0.02572754956781864, 0.036662157624959946, + -0.0006749078747816384, -0.0013518170453608036, 0.005303204990923405, -0.00800884049385786, + -0.004610786680132151, 0.0019121556542813778, -0.008453109301626682, 0.0022433558478951454, + -0.00510708661749959, 0.0023754355497658253, -0.036726195365190506, 0.021244840696454048, + 0.011911198496818542, -0.015017076395452023, -0.04178525507450104, 0.02004411444067955, + -0.023470185697078705, 0.050270382314920425, 0.004238561727106571, -0.006992226000875235, + -0.028577271848917007, -0.03294791281223297, 0.023214029148221016, -0.036758214235305786, + 0.03477301448583603, 0.010390279814600945, 0.03310801088809967, 0.013536181300878525, + -0.0025235251523554325, 0.02667211927473545, -0.001426862319931388, 0.0028577272314578295, + 0.005879553500562906, -0.010918598622083664, 0.0627579316496849, -0.02046036534011364, + -0.023198019713163376, 0.017818769440054893, 0.006139710545539856, -0.0426497757434845, + 0.005583374295383692, 0.003003815421834588, 0.03307599201798439, -0.017866797745227814, + -0.016858188435435295, 0.006996228359639645, -0.009389675222337246, -0.05971609055995941, + -0.03589369356632233, 0.0032199460547417402, -0.018411127850413322, -0.030930694192647934, + -0.0031899278983473778, -0.009781911969184875, -0.012295431457459927, -0.0009280609083361924, + -0.0020552421920001507, 1.7573120203451253e-5, -0.009629820473492146, 0.0158095546066761, + -0.010518357157707214, -0.0128557700663805, 0.01302387099713087, -0.023342106491327286, + -0.018523195758461952, 0.017370497807860374, -0.007640617899596691, 0.01325601153075695, + 0.016778139397501945, -0.0018311067251488566, 0.011350859887897968, 0.04898960888385773, + -0.012143339030444622, -0.006063664797693491, 0.018987474963068962, -0.028177030384540558, + -0.03214742988348007, -0.009461718611419201, -0.03855130076408386, -0.00657197181135416, + -0.01035025529563427, -0.0037322556599974632, -0.04098476842045784, 0.012399493716657162, + 0.05404866486787796, 0.02073252946138382, -0.015769530087709427, 0.02111676335334778, + 0.021773159503936768, 0.00472685694694519, 0.04060053825378418, -0.000482291477965191, + -0.01376832090318203, 0.011799131520092487, -0.010286216624081135, -0.004682830069214106, + 0.02622384950518608, 0.0033960524015128613, 0.022669700905680656, 0.001381835201755166, + 0.006499928422272205, -0.03877543658018112, -0.012551586143672466, 0.0019531804136931896, + -0.031074780970811844, 0.025391345843672752, -0.021549023687839508, -0.01624181680381298, + 0.0009976029396057129, 0.005567364860326052, -0.008685248903930187, 0.03221146762371063, + -0.037878893315792084, -0.006351838819682598, 0.007812721654772758, -0.051871348172426224, + -0.005143108312040567, -0.017882807180285454, 0.03589369356632233, -0.00024314694746863097, + 0.016281839460134506, 0.023534223437309265, -0.001387838739901781, -0.0035301335155963898, + -0.019243629649281502, 0.014416713267564774, -0.007756688166409731, -0.00011000398080796003, + 0.014376688748598099, -0.0017370497807860374, 0.009149529971182346, -0.015641452744603157, + -0.01620979607105255, 0.007144317962229252, 0.006343834102153778, 0.010782516561448574, + ], + index: 30, + }, + { + title: "Cadore", + text: "Cadore (Ladin: Cad\u00f2r; Venetian: Cad\u00f2r or, rarely, Cad\u00f2ria; German: Cadober or Kadober; Sappada German: Kadour; Friulian: Cjadovri) is an historical region in the Italian region of Veneto, in the northernmost part of the province of Belluno bordering on Austria, the Trentino-Alto Adige/S\u00fcdtirol and Friuli-Venezia Giulia. It is watered by the Piave River poured forth from the Carnic Alps.", + vector: [ + -0.015382952056825161, 0.029189366847276688, -0.017014123499393463, 0.018606269732117653, + 0.023975864052772522, -0.020760351791977882, -0.0171233881264925, -0.033934589475393295, + -0.049637533724308014, 0.015297100879251957, -0.019199423491954803, 0.00024084642063826323, + -0.058909449726343155, -0.05531931295990944, -0.03624476492404938, -0.03096882440149784, + -0.05747339501976967, -0.03352874889969826, -0.0036408661399036646, -0.04145826771855354, + 0.025365091860294342, 0.00854608416557312, 0.010044575668871403, -0.037712037563323975, + 0.06462244689464569, 0.027566000819206238, 0.015921473503112793, 0.01765410415828228, + -0.007258318364620209, 0.015749771147966385, 0.006083719432353973, -0.022742731496691704, + -0.009108019061386585, -0.013939092867076397, 0.011519653722643852, 0.04907559975981712, + -0.060501594096422195, -0.006454440299421549, 0.011761597357690334, 0.0259738527238369, + -0.015617091208696365, -0.0178570244461298, 0.0363072007894516, 0.05044921487569809, + -0.035058457404375076, -0.006411514710634947, 0.01629609614610672, 0.022805167362093925, + -0.014149818569421768, -0.012378164567053318, -0.0287835244089365, -0.04732735827565193, + -0.04024074226617813, 0.01865309849381447, -0.01304936408996582, 0.053914476186037064, + 0.036681823432445526, 0.07061641663312912, -0.038867123425006866, -0.013174237683415413, + 0.021556425839662552, -0.06237471103668213, -0.02795623242855072, -0.008210484869778156, + 0.0124718202278018, 0.02570849470794201, -0.027581609785556793, 0.0383676253259182, + -0.0051939901895821095, 0.012776201590895653, -0.003601843025535345, -0.018106773495674133, + 0.012385969050228596, 0.04408062621951103, 0.01937112584710121, 0.03524576872587204, + 0.00887387990951538, -0.009771413169801235, -0.0640605166554451, -0.020651087164878845, + -0.012744982726871967, 0.0174199640750885, -0.006731505040079355, -0.04595373943448067, + 0.0015287345740944147, -0.08816125243902206, 0.002472120802849531, -0.048638537526130676, + -0.004370600450783968, 0.021572034806013107, -0.010528463870286942, 0.04383087903261185, + -0.014664924703538418, -0.07492457330226898, -0.0652468204498291, -0.023897817358374596, + -0.022805167362093925, -0.004027196206152439, 0.011246491223573685, 0.017341917380690575, + -0.024631455540657043, 0.037680819630622864, 0.014742971397936344, 0.018309693783521652, + 0.015468803234398365, 0.006485658697783947, -0.021478379145264626, -0.040958769619464874, + -0.019652092829346657, 0.02381977252662182, 0.020994490012526512, -0.018840409815311432, + 0.044798653572797775, -0.014040553942322731, -0.012893270701169968, -0.043706003576517105, + 0.025052905082702637, -0.006766625680029392, -0.049699969589710236, -0.026161164045333862, + -0.013783000409603119, -0.04704638943076134, -0.019402343779802322, -0.0191838126629591, + 0.023757334798574448, -0.025614839047193527, 0.008881684392690659, 0.038180314004421234, + -0.03060981072485447, 0.06824380159378052, -0.010903086513280869, -0.055132001638412476, + -0.03007909655570984, -0.018465787172317505, -0.01126210018992424, -0.00664955610409379, + 0.001985306153073907, 0.05497590824961662, 0.022040313109755516, 0.04342503473162651, + -0.003547210479155183, -0.015094180591404438, -0.028112325817346573, -0.018934065476059914, + -0.040490489453077316, -0.043674785643815994, -0.009006558917462826, 0.0481078214943409, + 0.02378855273127556, 0.013509837910532951, 0.04617227241396904, 0.0078124478459358215, + 0.0174199640750885, -0.012300117872655392, 0.0310000441968441, -0.04767076298594475, + -0.003738424275070429, 0.002306272042915225, 0.04180166870355606, -0.025115342810750008, + -0.018403349444270134, 0.03843006491661072, 0.03621354699134827, -0.002197007182985544, + -0.01927747018635273, -0.03199903666973114, -0.0014897113433107734, -0.011301123537123203, + -0.04186410829424858, 0.017872633412480354, -0.01533612422645092, 0.03465261682868004, + 0.015780989080667496, -0.010239692404866219, -0.025333872064948082, -0.014298106543719769, + 0.016108784824609756, -0.004214507527649403, -0.017903851345181465, -0.030531765893101692, + 0.013517642393708229, -0.02928302250802517, 0.008577303029596806, -0.040552929043769836, + 0.004569618962705135, 0.02043255604803562, 0.06462244689464569, 0.023804161697626114, + 0.06662043929100037, 0.0030145435594022274, -0.031452711671590805, -0.024303659796714783, + 0.0037637893110513687, -0.005186185706406832, -0.03702522814273834, -0.006302249617874622, + -0.009014363400638103, -0.005353985354304314, 0.057317301630973816, 0.0717402845621109, + -0.058316294103860855, 0.030750295147299767, 0.028377683833241463, 0.010044575668871403, + -0.02692602016031742, 0.021603252738714218, -0.013697149232029915, -0.014618096873164177, + 0.0211037565022707, -0.007367583457380533, 0.061094749718904495, -0.026613833382725716, + 0.03821153566241264, 0.03090638853609562, -0.005982259288430214, 0.0017706784419715405, + -0.029126929119229317, -1.3749586287303828e-5, -0.018262865021824837, 0.03537064418196678, + -0.0070124720223248005, -0.017076559364795685, -0.031031262129545212, -0.03199903666973114, + -0.00016645841242279857, -0.02033890038728714, -0.0287835244089365, 0.04348747432231903, + 0.011878667399287224, 0.033903371542692184, -0.0036291591823101044, -0.03521455079317093, + -0.02742551639676094, -0.01300253625959158, 0.023897817358374596, -0.02666066214442253, + 0.008616326376795769, -0.04763954505324364, -0.01699851267039776, 0.002083839848637581, + -0.03096882440149784, 0.051885269582271576, -0.015757575631141663, -0.051885269582271576, + -0.00021853001089766622, 0.01735752634704113, -0.0026906507555395365, 0.0024916324764490128, + 0.02010476216673851, -0.004206702578812838, 0.04954387620091438, 0.009365571662783623, + 0.03271706402301788, -0.011371365748345852, -0.06549657136201859, -0.03430921211838722, + -0.0035764777567237616, 0.023866599425673485, 0.024303659796714783, 0.02222762443125248, + -0.03908565267920494, 0.025599230080842972, -0.022212015464901924, -0.019199423491954803, + -0.020292073488235474, -0.02683236449956894, -0.04885706678032875, -0.02010476216673851, + -0.024069519713521004, -0.039928555488586426, -0.010856258682906628, -0.022477373480796814, + 0.02090083435177803, 0.01907454803586006, 0.026426522061228752, 0.05247842147946358, + 0.03733741492033005, 0.03037567250430584, 0.03070346638560295, -0.0023004186805337667, + 0.031452711671590805, -0.05606855824589729, -0.03331021964550018, -0.04757710546255112, + -0.010856258682906628, -0.02146277017891407, -0.03252975270152092, 0.01835652068257332, + 0.08341602981090546, -0.05478859692811966, -0.030188361182808876, 0.04454890638589859, + 0.026676271110773087, -0.0460473969578743, 0.028705477714538574, -0.0369003526866436, + -0.00173458200879395, -0.02553679421544075, -0.009451422840356827, -0.008944121189415455, + -0.01904333010315895, -0.043144069612026215, -0.0009550932445563376, -0.005404715426266193, + 0.03324778005480766, -0.014649315737187862, 0.013205456547439098, 0.0052720364183187485, + 0.007172467187047005, -0.01053626835346222, -0.027737703174352646, 0.001163867418654263, + -0.009279721416532993, -0.00597055209800601, 0.006860281806439161, 0.008553889580070972, + -0.03196781873703003, 0.015624895691871643, -0.007652452681213617, 0.003779398510232568, + -0.01251864805817604, -0.012666936032474041, -0.060595251619815826, -0.04439281299710274, + 0.05759826675057411, -0.01382982823997736, 0.03515211492776871, -0.00764464819803834, + 0.03952271491289139, 0.034996021538972855, -0.01567172445356846, 0.03430921211838722, + 0.003002836601808667, 0.007535383105278015, -0.006083719432353973, 0.0053227669559419155, + 0.004276944790035486, -0.008007564581930637, -0.0030086899641901255, -0.034371647983789444, + -0.016311705112457275, 0.027706483379006386, 0.06031428277492523, 0.03179611638188362, + -0.01653023436665535, 0.013408377766609192, 0.029204975813627243, 0.01361129805445671, + 0.010208473540842533, 0.008241703733801842, 0.0006404685555025935, 0.005962747614830732, + -0.07804643362760544, 0.042613353580236435, 0.04823269695043564, 0.018965283408761024, + -0.05716120824217796, 0.00139508000575006, -0.032873157411813736, 0.026223601773381233, + -0.012229876592755318, 0.011777207255363464, -0.05987722426652908, -0.02653578855097294, + 0.0158668402582407, -0.026676271110773087, -0.01101235207170248, -0.0259738527238369, + 0.00023413929739035666, 0.060564033687114716, -0.024584626778960228, -0.025552403181791306, + -0.032873157411813736, 0.028408901765942574, 0.0010965523542836308, -0.011995736509561539, + -0.005014483351260424, -0.0046008373610675335, 0.0023179790005087852, 0.016982903704047203, + 0.02175934612751007, -0.05812898278236389, -0.06893061101436615, 0.0025423625484108925, + 0.0007443678914569318, -0.015125398524105549, 0.02149398811161518, 0.023211009800434113, + -0.018528223037719727, -0.020916445180773735, -0.04835757240653038, 0.04813903942704201, + 0.046359583735466, 0.00849925633519888, 0.00955288391560316, 0.019995495676994324, + -0.032841939479112625, 0.032311223447322845, 0.02411634847521782, 0.0001282888260902837, + -0.01055187825113535, -0.029267413541674614, 0.020526211708784103, -0.000830218952614814, + 0.05266573280096054, -0.0043901121243834496, 0.05972113087773323, -0.014063967391848564, + -0.015952691435813904, 0.005275939125567675, -0.05260329693555832, -0.030859559774398804, + 0.01304936408996582, 0.007547090295702219, 0.02219640649855137, -0.0389607809484005, + 0.06911791861057281, 0.008101220242679119, -0.08541401475667953, -0.0018975039711222053, + 0.013018145225942135, 0.0324673168361187, 0.016186829656362534, -0.01340057235211134, + -0.01179281622171402, 0.011777207255363464, -0.008530475199222565, 0.023632461205124855, + 0.02851816639304161, -0.01818481832742691, -0.005494468845427036, 0.0369003526866436, + 0.07030422985553741, 0.06006453558802605, -0.017778977751731873, -0.016951685771346092, + 0.03262341022491455, 0.014961501583456993, 0.04273822903633118, 0.047483451664447784, + 0.013143019750714302, 0.0035237965639680624, 0.054070569574832916, 0.03043811023235321, + -0.01629609614610672, -0.008257312700152397, 0.02040133811533451, -0.03618232533335686, + 0.0327795036137104, -0.021868610754609108, -0.03312290832400322, -0.03889834135770798, + -0.02225884236395359, -0.03677548095583916, 0.00960751622915268, -0.0219934843480587, + 0.01841895841062069, 0.03380971401929855, 0.03462139889597893, -0.004799855872988701, + -0.05038677901029587, 0.027300642803311348, 0.019761357456445694, -0.03961636871099472, + 0.0009287525899708271, 0.008304140530526638, -0.00949044618755579, -0.009958725422620773, + 0.01167574618011713, -0.008187071420252323, 0.0042964559979736805, 0.005592027213424444, + -0.11045131087303162, 0.010754798538982868, -0.0071763694286346436, 0.013025949709117413, + 0.028908399865031242, -0.042020201683044434, -0.01603073813021183, 0.010341152548789978, + 0.013072777539491653, -0.016811201348900795, -0.025052905082702637, 0.00414816802367568, + 0.010762603022158146, 0.012549866922199726, 0.037743255496025085, -0.022805167362093925, + -0.04623470827937126, 0.035589173436164856, -0.018590660765767097, -0.0252402164041996, + 0.02269590273499489, 0.008304140530526638, -0.039866119623184204, 0.015265882946550846, + -0.0025794345419853926, -0.02311735413968563, -0.014649315737187862, 0.05332132428884506, + -0.010684557259082794, 0.011168444529175758, 0.05444519221782684, 0.01626487635076046, + 0.02666066214442253, 0.027675265446305275, -0.0022887117229402065, 0.010044575668871403, + -0.021853001788258553, 0.04255091771483421, -0.005065213423222303, 0.03746228665113449, + -0.015304905362427235, -0.014173232018947601, 0.012362555600702763, 0.006696383934468031, + 0.03199903666973114, 0.012136220932006836, -0.05141698941588402, -0.010622119531035423, + 0.028596213087439537, -0.013939092867076397, -0.047951728105545044, -0.006126645021140575, + 0.049731187522411346, 0.02948594279587269, 0.009092409163713455, 0.03126540035009384, + 0.039304185658693314, -0.06040794029831886, 0.002556020626798272, 0.03983490169048309, + 0.012417187914252281, -0.02911132015287876, 0.024787547066807747, 0.010528463870286942, + -0.009006558917462826, -0.0191838126629591, -0.02193104848265648, 0.0010809431551024318, + -0.022883214056491852, 0.019230641424655914, 0.006072012707591057, 0.02527143619954586, + -0.014961501583456993, 0.042113855481147766, -0.015476607717573643, -0.010497245006263256, + -0.020198417827486992, -0.03843006491661072, 0.007574406452476978, 0.030453719198703766, + -0.06843111664056778, 0.02453779987990856, 0.044798653572797775, 0.002784306649118662, + -0.05478859692811966, 0.002540411427617073, -0.017435573041439056, 0.004998873919248581, + 0.05154186487197876, 0.029626427218317986, 0.029923003166913986, 0.024803156033158302, + -0.050730183720588684, 0.014383957721292973, 0.0037403753958642483, 0.001253620837815106, + 0.00740270409733057, -0.03977246209979057, -0.007199783343821764, 0.01570294238626957, + 0.008475842885673046, 0.004799855872988701, 0.05547540634870529, 0.015585873275995255, + 0.014766385778784752, 0.011472825892269611, -0.003043810836970806, -0.005213501863181591, + -0.005041799508035183, -0.006583216600120068, -0.02772209420800209, 0.019948668777942657, + 0.015031742863357067, -0.018668707460165024, -0.003385264193639159, -0.022898823022842407, + -0.02987617440521717, -0.016936076804995537, -0.0006146156811155379, 0.04788929224014282, + 0.05703633278608322, 0.021306676790118217, -0.007418313529342413, -0.0005853482289239764, + -0.0035784291103482246, 0.04354991018772125, -0.022243233397603035, -0.017825806513428688, + 0.01877797208726406, -0.0072739277966320515, 0.0034496523439884186, -0.0053149620071053505, + -0.0017462889663875103, 0.006481756456196308, 0.05154186487197876, -0.014852236025035381, + -0.022368108853697777, 0.00521740410476923, -0.03736863285303116, -0.03843006491661072, + -0.019199423491954803, 0.008749005384743214, 0.03971002623438835, -0.026988457888364792, + -0.0008141218568198383, 0.012300117872655392, -0.013244479894638062, -0.02030768245458603, + 0.03324778005480766, 0.018106773495674133, 0.007874885573983192, 0.025786541402339935, + -0.001108259311877191, 0.020791569724678993, 0.02928302250802517, -0.009443618357181549, + -0.0034672128967940807, -0.027285033836960793, -0.0028935715090483427, -0.020682305097579956, + -0.004909120500087738, -0.009779218584299088, -0.007000765297561884, 0.010138232260942459, + -0.012151829898357391, -0.012666936032474041, -0.010364566929638386, -0.022352498024702072, + 0.006454440299421549, -0.008429015055298805, -0.01768532209098339, -0.07879567891359329, + -0.00010274081432726234, 0.011199663393199444, -0.020260853692889214, -0.004003782290965319, + 0.007707085460424423, 0.01944917067885399, -0.019261859357357025, -0.0030769805889576674, + -0.03515211492776871, -0.0038691519293934107, -0.023632461205124855, -0.01933990605175495, + 0.016811201348900795, -0.0034555059392005205, 0.022212015464901924, 0.013634712435305119, + -0.021150583401322365, -0.04501718282699585, 0.004998873919248581, -0.033278997987508774, + 0.0171233881264925, -0.004905218258500099, 0.011347951367497444, -0.009053386747837067, + 0.008077805861830711, 0.05634952709078789, 0.0033540455624461174, -0.0073090484365820885, + 0.010903086513280869, -0.0024623649660497904, -6.73760223435238e-5, -0.011386974714696407, + 0.021119365468621254, -0.02338271215558052, 0.0061617661267519, 0.014446395449340343, + 0.025224607437849045, 0.0028564995154738426, -0.01477419026196003, 0.008218289352953434, + -0.0259738527238369, -0.0020214025862514973, -0.027441127225756645, -0.01455566007643938, + 0.01765410415828228, 0.0006843696464784443, -0.0011199663858860731, -0.017451182007789612, + 0.010489440523087978, 0.007110030390322208, -0.005900310352444649, 0.008842661045491695, + -0.023242227733135223, -0.004834976512938738, -0.052946701645851135, -0.008920707739889622, + -0.005467152688652277, -0.02948594279587269, -0.02246176451444626, 0.003071127226576209, + -0.02072913385927677, -0.008936316706240177, 0.006653458345681429, 0.05466372147202492, + -0.0069695464335381985, -0.019901840016245842, 0.007355876266956329, 0.030859559774398804, + -0.01983940415084362, 0.009677757509052753, -0.035589173436164856, 0.003631110303103924, + 0.0637795478105545, -0.006602728273719549, -0.03221756964921951, 0.0006316883373074234, + -0.002031158423051238, -0.004924729932099581, -0.01346301008015871, 0.0030633225105702877, + 0.019901840016245842, 0.02232128009200096, 0.007484653033316135, 0.02057304047048092, + 0.02358563244342804, 0.0025813858956098557, -0.0383676253259182, 0.016093173995614052, + -0.012237681075930595, -0.010403589345514774, 0.02179056406021118, -0.03374727815389633, + 0.004027196206152439, -0.014688339084386826, 0.03633841872215271, 0.025755323469638824, + 0.003562819678336382, -0.03249853476881981, 0.034465305507183075, 0.008725591003894806, + 0.023632461205124855, 0.0004936436889693141, 0.05279060825705528, 0.009662148542702198, + -0.015741966664791107, 0.020947663113474846, 0.0090768001973629, 0.0001813360140658915, + 0.0068641840480268, -0.01606195606291294, 0.010036771185696125, 0.014165427535772324, + 0.027768921107053757, -0.0028233297634869814, 0.009396790526807308, 0.035464297980070114, + 0.04105242341756821, -0.01759166643023491, -0.04245726019144058, -0.003139417851343751, + 0.03949149698019028, -0.018887236714363098, 0.0005814459291286767, -0.014438590034842491, + 0.010692361742258072, 0.0178570244461298, -0.002991129644215107, 0.01137917023152113, + -0.03752472624182701, 0.005471054930239916, 0.01593708246946335, 0.000879973522387445, + 0.04682786017656326, -0.02964203618466854, -0.021837392821907997, -0.012456211261451244, + 0.036057453602552414, 0.014173232018947601, -0.010840649716556072, -0.04895072430372238, + 0.03527698665857315, -0.04136461019515991, -0.012183048762381077, 0.01632731407880783, + -0.017872633412480354, 0.02381977252662182, 0.025489965453743935, 0.014547855593264103, + -0.0014789799461141229, -0.032810721546411514, 0.01732630841434002, -0.023367103189229965, + 0.005759826861321926, -0.022446153685450554, -0.009264111518859863, -0.0357140488922596, + 0.040989987552165985, -0.014688339084386826, -0.003744277637451887, -0.005154966842383146, + 0.0602206289768219, -0.0010087501723319292, 0.026738708838820457, -0.0010906988754868507, + -0.00412475410848856, 0.006157863885164261, 0.014914673753082752, 0.01059870608150959, + -0.002883815672248602, 0.003923784475773573, -0.021322285756468773, 0.014641511254012585, + -0.02461584471166134, -0.0587533563375473, -0.0059588453732430935, -0.01086406409740448, + 0.0024584627244621515, 0.03309168666601181, -0.00391012616455555, -0.00017584837041795254, + -0.04177045077085495, 0.04945022240281105, 0.00453840009868145, -0.0003377947141416371, + 0.020089151337742805, 0.0043823071755468845, 0.03468383476138115, 0.029033273458480835, + -0.026176774874329567, -0.03296681493520737, 0.006415416952222586, 0.014118599705398083, + -0.0137283680960536, 0.006473951507359743, 0.011550872586667538, 0.04092755168676376, + -0.013486423529684544, 0.0030886875465512276, -0.008639739826321602, 0.018059944733977318, + 0.03858615830540657, -0.0001271912915399298, -0.002655529882758856, -0.060532815754413605, + -0.03780569136142731, -0.015890253707766533, 0.04436159506440163, -0.010856258682906628, + -0.01901211217045784, 0.007878787815570831, -0.008889488875865936, 0.005428129341453314, + 0.029595207422971725, -0.020588649436831474, -0.0006682726088911295, -0.01235475018620491, + 0.023772943764925003, 0.031109308823943138, -0.02305491641163826, -0.015031742863357067, + 0.02229006215929985, 0.011254295706748962, 0.009053386747837067, 0.005307157523930073, + 0.004909120500087738, 0.014368348754942417, -0.0019209178863093257, -0.007461239118129015, + -0.04873219504952431, -0.049731187522411346, 0.008507061749696732, -0.0038028124254196882, + -0.03861737623810768, -0.002179446630179882, -0.021088145673274994, 0.0007243684958666563, + 0.024194395169615746, 0.025162169709801674, 0.021181803196668625, 0.00348282209597528, + 0.034902364015579224, -0.047951728105545044, 0.026207992807030678, 0.028892790898680687, + 0.01729509048163891, -0.008218289352953434, 0.009849459864199162, -0.02149398811161518, + 0.033903371542692184, 0.0028038180898875, 0.021525206044316292, -0.05057409033179283, + 0.002952106297016144, 0.031842947006225586, -0.04120851680636406, -0.014750775881111622, + 0.009162651374936104, 0.0037462287582457066, -0.014305911026895046, -0.002146276878193021, + -0.01508637610822916, 0.006817356217652559, 0.03730619698762894, 0.001015579211525619, + 0.0056115384213626385, -0.0039218333549797535, -0.03014153242111206, -0.04667176678776741, + -0.013884460553526878, 0.038273971527814865, 0.018668707460165024, -0.04017830267548561, + 0.01791946217417717, 0.0015638554468750954, 0.050168249756097794, -0.025692885741591454, + 0.0032603899016976357, 0.016717545688152313, 0.011597700417041779, -0.03176489844918251, + -0.00965434405952692, -0.029532771557569504, 0.0037852521054446697, 0.028705477714538574, + 0.01548441220074892, -0.024319268763065338, 0.02163447067141533, -0.011683551594614983, + -0.006224202923476696, -0.031031262129545212, 0.00031121016945689917, 0.012947903014719486, + -0.03892956301569939, -0.032841939479112625, 0.013915679417550564, -0.013338135555386543, + -0.0053578875958919525, -0.016124393790960312, 0.02653578855097294, -0.004518888425081968, + 0.018465787172317505, -0.06562144309282303, 0.028237199410796165, -0.032186347991228104, + -0.001951160840690136, 0.0021774955093860626, -0.02858060412108898, -0.01980818435549736, + -0.040989987552165985, 0.007574406452476978, 0.048513662070035934, 0.00209944904781878, + -0.03430921211838722, 0.015351733192801476, -0.009474837221205235, 0.028408901765942574, + 0.01162891834974289, -0.009474837221205235, 0.02414756640791893, 0.010200669057667255, + 0.00030755173065699637, -0.04114608094096184, 0.027831358835101128, -0.020526211708784103, + 0.004772539250552654, 0.02719137817621231, -0.01278400607407093, 0.005693487357348204, + -0.05357107147574425, 0.024490971118211746, 0.013010340742766857, -0.007952931337058544, + 0.007492457516491413, 0.011465021409094334, 0.07717231661081314, 0.0011628918582573533, + -0.0027491855435073376, 0.02957959845662117, -0.009615320712327957, 0.018934065476059914, + 0.02488120272755623, 0.04511084035038948, -0.012393773533403873, 0.01053626835346222, + 0.02530265413224697, 0.03137466683983803, 0.01924625039100647, 0.0026438229251652956, + 0.036057453602552414, 0.030812732875347137, 0.03465261682868004, 0.026941629126667976, + -0.005353985354304314, 0.002460413845255971, -0.003133564256131649, -0.0009297281503677368, + -0.004070121329277754, 0.04648445546627045, 0.009747999720275402, -0.01096552424132824, + -0.028627432882785797, 0.026879191398620605, 0.024849984794855118, 0.02934546023607254, + -0.03271706402301788, -0.021291067823767662, -0.02072913385927677, -0.029985440894961357, + 0.0007146126590669155, -0.021056927740573883, -0.03983490169048309, 0.039803680032491684, + -0.021010100841522217, -0.01344740018248558, -0.0027218693867325783, 0.03037567250430584, + 0.0413333922624588, -0.023866599425673485, -0.01096552424132824, -0.022945651784539223, + -0.010739189572632313, 0.06118840351700783, 0.029954221099615097, -0.013533251360058784, + 0.029267413541674614, -0.037680819630622864, 0.04826391488313675, -0.010013357736170292, + -0.00136386149097234, -0.01027091033756733, -0.0009365571895614266, -0.008772418834269047, + -0.03465261682868004, 0.026207992807030678, -0.007769522722810507, 0.03427799418568611, + -0.03268584609031677, 0.009747999720275402, 0.0036467197351157665, -0.02205592207610607, + -0.0017160460120067, 0.053383760154247284, -0.005080822855234146, -0.0062359101139009, + -0.0032311223912984133, -0.043737221509218216, -0.005439836531877518, 0.02216518670320511, + -0.032935597002506256, 0.026816755533218384, 0.00443693995475769, -0.024662673473358154, + 0.005732510704547167, -0.006052501033991575, -0.02748795412480831, 0.02385099045932293, + -0.006903206929564476, 0.0006121767219156027, 0.02686358243227005, 0.0045579117722809315, + -0.012362555600702763, 0.024693891406059265, 0.018231647089123726, -0.010957719758152962, + 0.011340146884322166, -0.02630164846777916, 0.049106817692518234, 0.025115342810750008, + -0.014251278713345528, 0.025365091860294342, 0.0060017709620296955, -0.011293319053947926, + 0.0147585803642869, -0.03493358567357063, -0.01179281622171402, 0.008538279682397842, + -0.007172467187047005, 0.020619867369532585, -0.013166433200240135, -0.010466027073562145, + -0.012549866922199726, 0.013088387437164783, 0.011948908679187298, -0.02182178385555744, + 0.00824950821697712, -0.00991970207542181, -0.012401578016579151, 0.01480540819466114, + -0.0008614375256001949, 0.013837632723152637, 0.009170455858111382, -0.025193389505147934, + -0.01791946217417717, -0.025927025824785233, 0.01824725605547428, -0.01623365841805935, + -0.018637487664818764, 0.00048632684047333896, 0.016015129163861275, -0.0014370299177244306, + -0.010247496888041496, -0.0017355575691908598, 0.039366621524095535, 0.008733396418392658, + 0.0023901720996946096, -0.035526737570762634, 0.0206666961312294, -0.03262341022491455, + 0.013619102537631989, 0.027768921107053757, 0.030828341841697693, 0.008749005384743214, + 0.030328843742609024, -0.01841895841062069, 0.004331577103585005, -0.0059159197844564915, + -0.0076992809772491455, -0.008631935343146324, -0.005638855043798685, -0.007874885573983192, + -0.014586878940463066, 0.02080717869102955, -0.025521183386445045, 0.01436054427176714, + -0.027441127225756645, 0.015531240031123161, -0.030750295147299767, -0.01868431642651558, + -0.007988052442669868, -0.007765620015561581, -0.004651567433029413, 0.03182733431458473, + 0.040896330028772354, -0.04292554035782814, -0.028564995154738426, 0.0023570023477077484, + 0.003990123979747295, -0.0216969083994627, 0.00027730874717235565, 0.021244239062070847, + 0.03574526682496071, -0.015624895691871643, -0.0035725755151361227, 0.0061617661267519, + -0.019948668777942657, 0.009373377077281475, 0.0004114510375075042, -0.027316251769661903, + 0.028143543750047684, 0.014618096873164177, 0.03252975270152092, 0.006407612469047308, + 0.02355441451072693, -0.00032267323695123196, -0.013704953715205193, -0.037087664008140564, + -0.00516667403280735, 0.015148812904953957, -0.018918456509709358, 0.004070121329277754, + 0.0005429105367511511, -0.0024369999300688505, 0.01580440253019333, -0.006669067777693272, + -0.00068193074548617, -0.00814804807305336, 0.012019150890409946, 0.012830833904445171, + -0.0076056248508393764, -0.03799300268292427, 0.03805544227361679, -0.04439281299710274, + 0.02093205414712429, -0.004237921442836523, 0.0037950079422444105, 0.0029462529346346855, + 0.04011586681008339, 0.03736863285303116, 0.04083389416337013, -0.04401819035410881, + 0.014181037433445454, -0.015531240031123161, -0.016748765483498573, -0.002019451465457678, + 0.011753792874515057, -0.04657811298966408, -0.05716120824217796, 0.008210484869778156, + -0.008772418834269047, 0.00209944904781878, 0.027815749868750572, 0.015882449224591255, + 0.005088627338409424, -0.00938898604363203, 0.013658125884830952, -0.00803097803145647, + -0.0017111680936068296, -0.018824800848960876, 0.01673315465450287, 0.04898194223642349, + -0.020323291420936584, -0.015492217615246773, 0.009349962696433067, -0.007855373434722424, + 0.019901840016245842, -0.012378164567053318, 0.03162441402673721, -0.03162441402673721, + -0.0137283680960536, 0.010466027073562145, 0.018340911716222763, -0.0053149620071053505, + -0.03958515077829361, 0.0010946012334898114, 0.017451182007789612, 0.019620873034000397, + 0.0023257837165147066, -0.02984495647251606, -0.00069754000287503, 0.039803680032491684, + 0.010801626369357109, -0.0006180302007123828, 0.004374502692371607, 0.0029969830065965652, + 0.010575291700661182, 0.0066807749681174755, 0.001954087521880865, -0.02733186073601246, + -0.006548095960170031, 0.03905443474650383, 0.001558977528475225, -0.021306676790118217, + -0.027503563091158867, 0.01272156834602356, -0.0003809641639236361, -0.02004232443869114, + -0.017935071140527725, -0.001567757804878056, -0.016186829656362534, 0.009630929678678513, + -0.014165427535772324, 0.015258077532052994, 0.03412190079689026, 0.008741200901567936, + -0.005791045259684324, -0.06918036192655563, 0.025130951777100563, -0.0008077805978246033, + 0.04292554035782814, 0.018934065476059914, 0.006489560939371586, 0.033278997987508774, + 0.027909405529499054, 0.005791045259684324, -0.0016340971924364567, 0.011824035085737705, + -0.019948668777942657, -0.01656145416200161, 0.011332342401146889, -0.003244780469685793, + 0.021837392821907997, 0.05968991294503212, -0.027644047513604164, 0.03123418241739273, + 0.02040133811533451, 0.02948594279587269, 0.025365091860294342, 0.029002055525779724, + -0.022087140008807182, -0.019168203696608543, -0.008944121189415455, 0.0203701201826334, + -0.011995736509561539, -0.008382187224924564, -0.0037130590062588453, -0.03020397014915943, + 0.017529228702187538, 0.03256097063422203, 0.014711752533912659, 0.012807419523596764, + -0.01579659804701805, -0.021088145673274994, -0.021884219720959663, -0.011441607028245926, + 0.011176249012351036, 0.013478619046509266, 0.011800620704889297, -0.006302249617874622, + 0.0007619283278472722, 0.02517778053879738, 0.0034008733928203583, 0.01656145416200161, + 0.03852371871471405, 0.007188076619058847, -0.014781994745135307, -0.022071531042456627, + -0.018137991428375244, 0.004725711420178413, -0.008062196895480156, -0.0054008131846785545, + -0.014477613382041454, 0.012440601363778114, -0.018824800848960876, -0.0012897172709926963, + -0.013057168573141098, 0.011558677069842815, 0.013111800886690617, -0.012698154896497726, + -0.009037776850163937, 0.007410509046167135, -0.00650126812979579, -0.016483407467603683, + 0.001725801732391119, -0.015343928709626198, 0.004448646679520607, -0.02328905649483204, + -0.009584101848304272, -0.005623245611786842, -0.015242468565702438, -0.007890494540333748, + 0.014430785551667213, -0.010778212919831276, -0.012760591693222523, -0.0017667762003839016, + 0.004394014365971088, -0.013158628717064857, 0.0033657525200396776, -0.017201434820890427, + -0.01455566007643938, -0.006189082283526659, 0.011441607028245926, 0.005428129341453314, + 0.020026715472340584, 0.004577423445880413, 4.149265441810712e-5, 0.03405946493148804, + -0.0028135739266872406, -0.00881144218146801, -0.00022779802384320647, -0.0184501763433218, + 0.010200669057667255, 0.003240878228098154, 0.008413405157625675, 0.013025949709117413, + 0.005658366717398167, -0.006786137353628874, -0.00751977413892746, -0.003086736425757408, + 0.006075914949178696, 0.011066984385251999, 0.006438830867409706, -0.016140002757310867, + -0.015882449224591255, 0.0013404474593698978, -0.027144549414515495, 0.003990123979747295, + 0.00725441612303257, 0.00913923792541027, -0.0027706483379006386, -0.051822833716869354, + 0.006868086289614439, -0.001762873842380941, 0.024241222068667412, -0.024896811693906784, + -0.00990409217774868, 0.012495233677327633, -0.010590901598334312, -0.014305911026895046, + 0.00959190633147955, -0.01023188792169094, -0.017794586718082428, -0.03046932816505432, + 0.02054182067513466, -0.023367103189229965, -0.02252420037984848, -0.0693676695227623, + 0.011558677069842815, 0.015780989080667496, -0.0021657885517925024, 0.020557431504130363, + 0.015773184597492218, -0.02033890038728714, -0.04020952433347702, -0.03643207624554634, + 0.020323291420936584, 0.004483767785131931, 0.04070901870727539, -0.04626592621207237, + -0.026723099872469902, -0.042051419615745544, -0.0010253350483253598, 0.01606195606291294, + -0.019964277744293213, -0.03377849608659744, 0.003361850045621395, 0.034902364015579224, + 0.007074909284710884, -0.04067780077457428, 0.0191838126629591, -0.022414935752749443, + 0.006142254453152418, -0.01251864805817604, 0.029751300811767578, -0.007707085460424423, + -0.00919387023895979, 0.013892265036702156, -0.02030768245458603, -0.016639498993754387, + 0.005459348205476999, 0.047514669597148895, 0.008819246664643288, -0.036057453602552414, + -0.024693891406059265, 0.0009960676543414593, -0.01765410415828228, 0.02193104848265648, + -0.0317336805164814, 0.018200429156422615, -0.017201434820890427, -0.03415311872959137, + 0.021384723484516144, 0.002926741261035204, 0.024272441864013672, -0.0034184337127953768, + -0.009630929678678513, -0.005256427451968193, 0.001586293801665306, 0.01070016622543335, + 0.004202800337225199, 0.026051899418234825, 0.04167679697275162, 0.04292554035782814, + -0.023273447528481483, -0.027472345158457756, -0.0022399327717721462, -0.03677548095583916, + -0.02143155038356781, -0.03185855597257614, -0.016405360773205757, 0.012659131549298763, + 0.005826166365295649, -0.011987932026386261, -0.009568492881953716, 0.021150583401322365, + 0.01566391997039318, -0.007761717773973942, -0.023601241409778595, -0.02477193810045719, + -0.007863177917897701, -0.009279721416532993, -0.024366097524762154, -0.00018170184921473265, + -0.02709772251546383, 0.026723099872469902, 0.012042565271258354, 0.010512854903936386, + 0.014852236025035381, 0.011886471882462502, 0.0031784409657120705, -0.0057403151877224445, + 0.05684902146458626, -0.03967880830168724, 0.02659822441637516, -0.002706260187551379, + -0.015874644741415977, 0.023538803681731224, -0.004542302340269089, 0.004932534880936146, + -0.0163897518068552, 0.0008243654738180339, -0.02769087441265583, 0.01507076621055603, + 0.0035881847143173218, -0.02520899847149849, -0.010107013396918774, 0.003342338604852557, + -0.029766909778118134, -0.019792575389146805, -2.7301008231006563e-5, -0.008764614351093769, + -0.011465021409094334, 0.005435934290289879, 0.03377849608659744, 0.009451422840356827, + -0.00854608416557312, 0.009154846891760826, 0.05597490444779396, -0.004081828519701958, + 0.005775436293333769, 0.01567172445356846, -0.000799488159827888, -0.017373137176036835, + -0.00985726434737444, -0.008912903256714344, 0.022368108853697777, 0.043706003576517105, + 0.0022574930917471647, -0.037836913019418716, 0.014001530595123768, -0.02957959845662117, + 0.0010507000843062997, -0.008452428504824638, 0.008538279682397842, 0.03596379607915878, + -0.004585227929055691, 0.0050261905416846275, 0.0026360182091593742, 0.022508591413497925, + -0.013439595699310303, 0.001441907836124301, 0.017966289073228836, -0.015180031768977642, + 0.0056622689589858055, -0.0245065800845623, -0.02573971450328827, -0.00759391812607646, + 0.00342038506641984, -0.003049664432182908, -0.036681823432445526, 0.0504804328083992, + -0.03702522814273834, -0.018325302749872208, -0.004866195376962423, -0.03530820831656456, + -0.03156197816133499, 0.003207708476111293, -0.011917690746486187, -0.03259219229221344, + -0.0019365272019058466, 0.012300117872655392, 0.00764464819803834, 0.014618096873164177, + ], + index: 31, + }, + { + title: "Heart rot", + text: "In trees, heart rot is a fungal disease that causes the decay of wood at the center of the trunk and branches. Fungi enter the tree through wounds in the bark and decay the heartwood. The diseased heartwood softens resulting in trees being structurally weaker and prone to breakage. Heart rot is a major factor in the economics of logging and the natural growth dynamic of many older forests.", + vector: [ + -0.015310668386518955, 0.005258948542177677, -0.01632007770240307, -0.00492376321926713, + -0.024703575298190117, -0.024272071197628975, -0.020943330600857735, -0.06756111979484558, + 0.012582950294017792, -0.008707123808562756, -0.026198426261544228, 0.06552688777446747, + -0.0003390384663362056, 0.006179746240377426, -0.018832044675946236, -0.002571683842688799, + -0.014794405549764633, 0.002344373846426606, 0.03892777860164642, -0.008036752231419086, + 0.019217316061258316, -0.0011683342745527625, -0.03516753390431404, 0.006961846258491278, + 0.011049571447074413, 0.010379199869930744, 0.013191677629947662, -0.01753753423690796, + -0.05624956265091896, 0.05436943843960762, 0.05310574918985367, 0.014470777474343777, + 0.03102201782166958, 0.031253181397914886, -0.005551754496991634, -0.003559903707355261, + -0.02240736037492752, 0.08284866809844971, -0.008969108574092388, -0.03310248255729675, + -0.016058094799518585, -0.0016990449512377381, -0.013769584707915783, 0.006187452003359795, + 0.03368809446692467, 0.07409531623125076, 0.02712307684123516, -0.008344968780875206, + -0.019987858831882477, 0.0442599281668663, -0.0078055900521576405, 0.05803721770644188, + -0.016936512663960457, 0.019386835396289825, 0.03310248255729675, 0.009130922146141529, + 0.05702010542154312, 0.05720503255724907, -0.032763443887233734, 0.029003199189901352, + -0.007062016986310482, 0.0331641249358654, -0.0111266253516078, 0.004846708849072456, + 0.051071520894765854, -0.02169846184551716, 0.008568426594138145, -0.003956732805818319, + -0.0694720596075058, -0.03458192199468613, -0.02390221133828163, 0.025998085737228394, + -0.004850561730563641, 0.03633875772356987, 0.059115976095199585, -0.039020244032144547, + 0.03424288332462311, -0.03633875772356987, -0.015857752412557602, 0.011172858066856861, + -0.01134237740188837, 0.015688233077526093, -0.051287271082401276, 0.02618301473557949, + -0.004916057456284761, -0.019617997109889984, -0.04197912663221359, -0.03729423135519028, + -0.013669414445757866, 0.025042613968253136, -0.02513507753610611, 0.025936441496014595, + 0.02861792780458927, 0.03966749832034111, 0.04009900242090225, -0.013908281922340393, + -0.01417797151952982, 0.0111266253516078, -0.010941695421934128, -0.027708688750863075, + 0.001927318051457405, 0.008992224000394344, -0.015295257791876793, -0.011758469976484776, + -0.02740047127008438, -0.04626333713531494, -0.027508346363902092, 0.05455436930060387, + 0.023671047762036324, 0.05797557532787323, 0.025813154876232147, -0.0027546873316168785, + 0.03522917628288269, -0.01642795465886593, -0.0050701661966741085, 0.007146776653826237, + 0.058561187237501144, -0.020989563316106796, -0.021945035085082054, 0.030806267634034157, + -0.05584888160228729, -0.04059214890003204, -0.02031148597598076, 0.02246900275349617, + 0.003656221553683281, -0.01930978149175644, -0.05782146751880646, -0.020665934309363365, + -0.014624886214733124, 0.029974080622196198, -0.02223784103989601, 0.0021247693803161383, + 0.05840707942843437, 0.025427883490920067, 0.0019234652863815427, 0.0008760098717175424, + -0.002265393268316984, 0.052335210144519806, 0.006792327389121056, -0.03217783197760582, + -0.021313190460205078, -0.041362691670656204, -0.05902351438999176, 0.055016692727804184, + 0.006364676635712385, -0.03334905579686165, -0.052119456231594086, 0.011165152303874493, + -0.008005931042134762, -0.03421206399798393, 0.0208662748336792, 0.01253671757876873, + 0.047064702957868576, 0.044074997305870056, 0.021482709795236588, -0.03905106708407402, + -0.012143741361796856, 0.0036774114705622196, -0.060780350118875504, -0.020650524646043777, + -0.046848949044942856, 0.037756554782390594, -0.05513998121023178, -0.028772035613656044, + 0.002806698903441429, -0.0375099815428257, -0.02351693995296955, -0.08167744427919388, + -0.01726013980805874, 0.008776472881436348, -0.04231816157698631, 0.021282369270920753, + 0.00432659313082695, 0.021004972979426384, -0.054061222821474075, -0.03723258525133133, + -0.016597473993897438, 0.00926961936056614, -0.007335559464991093, 0.0010777955176308751, + -0.010340672917664051, -0.05677352845668793, 0.033040840178728104, 0.009446844458580017, + 0.03578396886587143, 0.005497816950082779, -0.05948583781719208, 0.05671188607811928, + -0.011411726474761963, -0.04077707976102829, -0.029434701427817345, -0.0045076701790094376, + -0.013299553655087948, -0.04250309243798256, 0.008206271566450596, -0.023177901282906532, + -0.016998155042529106, -0.04937632754445076, 0.04894482344388962, -0.040191467851400375, + 0.034027133136987686, -0.012814112938940525, 0.018939921632409096, 0.05362971872091293, + 0.044753074645996094, -0.006287622265517712, 0.057729002088308334, -0.06688304245471954, + 0.015326078981161118, 0.020958740264177322, 0.02080463245511055, -0.015295257791876793, + -0.009539308957755566, 0.01741424761712551, -0.01852382905781269, 0.0003814182709902525, + -0.005890793167054653, 0.03787984326481819, 0.008005931042134762, 0.031099073588848114, + 0.03301001712679863, -0.000785952783189714, -0.018955331295728683, -0.002159443683922291, + -0.05159548670053482, -0.012598360888659954, -0.031314823776483536, -0.01131926104426384, + -0.02142106555402279, 0.0008986445609480143, -0.027492936700582504, 0.040807902812957764, + -0.0020631260704249144, -0.016011862084269524, -0.066574826836586, -0.0012049349024891853, + -0.009670301340520382, -0.024718984961509705, 0.04037639871239662, -0.06466387957334518, + -0.007389497011899948, 0.061766643077135086, -0.031222360208630562, 0.003365342039614916, + -0.004896793980151415, -0.00948537141084671, -0.03399631008505821, 0.009832114912569523, + -0.030713802203536034, -0.01813855767250061, 0.007998225279152393, -0.033811379224061966, + 0.05279753357172012, 0.0016788182547315955, -0.05609545484185219, -0.036646973341703415, + 0.04111611843109131, 0.011373198591172695, 0.002436838811263442, 0.047958530485630035, + -0.012051275931298733, 0.06521867215633392, -0.02174469269812107, -0.036801084876060486, + -0.01370023563504219, -0.054122865200042725, -0.014748172834515572, 0.019063208252191544, + -0.002452249638736248, 0.03821888193488121, 0.04481472074985504, 0.0152567308396101, + -0.015079505741596222, -0.02091250754892826, 0.009416022337973118, -0.0008639701409265399, + 0.03556821495294571, 0.03945174813270569, -0.019818339496850967, 0.03396548703312874, + 0.0093466741964221, -0.017845751717686653, 0.0034385432954877615, 0.0471571683883667, + 0.018123146146535873, 0.016119737178087234, 0.020558059215545654, -0.000841335509903729, + 0.010240502655506134, 0.04154762253165245, 0.02052723802626133, -0.0011269175447523594, + 0.0458318330347538, -0.07366380840539932, 0.0401606447994709, -0.03612300753593445, + 0.009616363793611526, -0.011404020711779594, -0.03535246476531029, 0.010363789275288582, + -0.011796996928751469, -0.000660739722661674, -0.009076983667910099, 0.007466551382094622, + -0.010633478872478008, 0.04897564649581909, -0.03223947435617447, 0.012082098051905632, + -0.007065869402140379, 0.013523011468350887, -0.010725943371653557, -0.02485768310725689, + -0.013623181730508804, 0.008491371758282185, 0.015611180104315281, -0.021713871508836746, + -6.772341293981299e-5, -0.0006631476571783423, 0.006310738623142242, 0.0320853665471077, + 0.0031091368291527033, -0.023285778239369392, -0.037417516112327576, -0.007115954998880625, + 0.024040909484028816, -0.011242207139730453, 0.0060641649179160595, -0.014933102764189243, + 0.007123660296201706, -0.032979194074869156, 0.007008078973740339, -0.0018859014380723238, + 0.04376678168773651, 0.04364349693059921, -0.03624629229307175, -0.015287552028894424, + 0.004580871667712927, -0.033811379224061966, 0.009909169748425484, -0.01642795465886593, + -0.0020900950767099857, -0.03190043568611145, -0.0270151998847723, -0.008136922493577003, + -0.0208662748336792, -0.033194947987794876, -0.01753753423690796, -0.006179746240377426, + -0.026999790221452713, 0.010309850797057152, 0.0006867455085739493, 0.009909169748425484, + -0.006268358789384365, 0.03624629229307175, 0.0029376910533756018, 0.005767506547272205, + -0.02545870654284954, -0.009277325123548508, -0.007801737170666456, -0.0008504856959916651, + 0.06207485869526863, -0.032424405217170715, 0.012251616455614567, -0.01489457581192255, + -0.013515305705368519, 0.024950148537755013, 0.028155602514743805, 0.027261773124337196, + 0.0035965044517070055, 0.012698531150817871, 0.001541083911433816, 0.03427370637655258, + 0.06990356743335724, 0.02724636346101761, 0.028479229658842087, -0.05131809413433075, + -0.0018338898662477732, -0.02152894251048565, -0.01151189673691988, 0.0005345634999684989, + 0.03227029740810394, -0.034366171807050705, -0.010309850797057152, 0.0034770704805850983, + 0.006364676635712385, -0.020773811265826225, -0.016951922327280045, -0.013338080607354641, + 0.025551170110702515, 0.03439699113368988, -0.016782402992248535, 0.040314752608537674, + 0.009331262670457363, 0.020789220929145813, 0.03985242918133736, -0.0610269233584404, + -0.05430779606103897, -0.0035213767550885677, 0.0013542274245992303, -0.05436943843960762, + 0.006676746066659689, -0.007385644596070051, 0.047249630093574524, 0.011827819049358368, + 0.008468256331980228, -0.013931398279964924, -0.0003664890246000141, -0.0058060334995388985, + -0.002097800374031067, 0.07372545450925827, -0.0033306675031781197, 0.06602003425359726, + 0.016551241278648376, -0.012282438576221466, -0.013422840274870396, 0.00790575984865427, + -0.004511523060500622, -0.016844047233462334, 0.038804493844509125, 0.024842271581292152, + -0.08537604659795761, -0.002097800374031067, -0.03562986105680466, 0.012120625004172325, + -0.030436405912041664, 0.024503232911229134, -0.006776916328817606, -0.0017655042465776205, + 0.024826861917972565, 0.008329558186233044, 0.005883087869733572, -0.017599178478121758, + 0.04755784943699837, 0.031715504825115204, 0.0264141783118248, -0.02114367112517357, + 0.013422840274870396, -0.015603474341332912, 0.003199675353243947, 0.0857459083199501, + 0.01841595210134983, 0.008853526785969734, -0.016165969893336296, -0.024873094633221626, + -0.0016961554065346718, -0.018493006005883217, 0.005139514803886414, 0.00012966776557732373, + -0.0030860204715281725, -0.013076096773147583, -0.011866346001625061, -0.0016470333794131875, + -0.0037621711380779743, 0.03621547296643257, 0.013253320939838886, -0.006692156661301851, + -0.02402549795806408, -0.050732482224702835, 0.008637774735689163, 0.03180797025561333, + 0.00995540153235197, 0.010371494106948376, -0.018123146146535873, -0.004195600748062134, + 0.015071799978613853, -0.019710462540388107, 0.02046559378504753, 0.037972308695316315, + -0.014355196617543697, -0.0075859855860471725, 0.01608891598880291, -0.044753074645996094, + -0.08660891652107239, 0.025751512497663498, 0.03205454349517822, 0.001989924581721425, + 0.0010094098979607224, 0.0010383052285760641, 0.02075839973986149, -0.05803721770644188, + 0.011088098399341106, 0.01779951900243759, -0.004006817936897278, -0.00428806571289897, + 0.005289770197123289, -0.043859247118234634, 0.03205454349517822, -0.012814112938940525, + 0.020450182259082794, -0.00932355783879757, 0.007119807414710522, 0.03199290111660957, + -0.027893617749214172, -0.05199617147445679, -0.007797884289175272, -0.017460480332374573, + -0.03985242918133736, -0.007343264762312174, -0.010394610464572906, 0.030420996248722076, + 0.056557778269052505, -0.02313166856765747, -0.007289326749742031, -0.007844116538763046, + -0.009531604126095772, 0.009886053390800953, 0.01980292797088623, 0.04062297195196152, + 0.005983258131891489, 0.01198192685842514, 0.011866346001625061, -0.043581850826740265, + -0.022700166329741478, -0.01698274351656437, -0.006383940111845732, 0.0152567308396101, + 0.012875756248831749, -0.00879188347607851, 0.03661615401506424, 0.03096037544310093, + 0.011172858066856861, -0.002633327152580023, -0.02057347074151039, 0.005574870854616165, + -0.06004062667489052, 0.0375099815428257, -0.05131809413433075, 0.00021647413086611778, + 0.013569243252277374, 0.001305105397477746, 0.03707847744226456, 0.033287413418293, + 0.01350759994238615, 0.025397062301635742, 0.021344011649489403, -0.010656595230102539, + -0.017121441662311554, 0.036307934671640396, -0.008776472881436348, -0.007859528064727783, + 0.02579774335026741, 0.021004972979426384, -0.024950148537755013, -0.0200186800211668, + -0.0320853665471077, 0.00848366692662239, 0.007474256679415703, 0.0018021049909293652, + -0.06349265575408936, -0.0010768324136734009, 0.02447241172194481, -0.030328530818223953, + 0.030867910012602806, 0.022592289373278618, 0.005833002272993326, -0.007289326749742031, + -0.010340672917664051, 0.005366824567317963, -0.004550050012767315, 0.00635311845690012, + 0.010479370132088661, 0.0034462488256394863, 0.006341560278087854, 0.004623251501470804, + -0.031592220067977905, 0.010140332393348217, 0.021513530984520912, -0.03347234055399895, + -0.01472505647689104, 0.004342003725469112, 0.05421533063054085, -0.0166437067091465, + -0.010733649134635925, -0.012159151956439018, 0.015249025076627731, 0.019571764394640923, + -0.01067971158772707, -0.03202372416853905, -0.025320008397102356, -0.0173063725233078, + -0.015156559646129608, -0.011719943024218082, -0.03766408935189247, 0.016674527898430824, + -0.00610269233584404, -0.017845751717686653, -0.02424125000834465, 0.0156497061252594, + -0.018955331295728683, -0.0027392765041440725, 0.009770471602678299, 0.026984378695487976, + -0.021513530984520912, 0.03538328409194946, 0.03411959856748581, 0.023455297574400902, + -0.0072700632736086845, -0.012267027981579304, -0.0011384757235646248, 0.030929554253816605, + 0.004769654478877783, 0.0005177078419364989, 0.02763163484632969, 0.020604291930794716, + 0.031083662062883377, -0.02552034892141819, 0.04200994595885277, -0.025397062301635742, + -0.012251616455614567, 0.029557988047599792, 0.06213650107383728, 0.010479370132088661, + 0.00643402524292469, 0.0009882199810817838, 0.02219160832464695, -0.009408317506313324, + -0.04117776080965996, -0.004083872307091951, 0.040191467851400375, -0.08778014034032822, + -3.121296686003916e-5, -0.003261318663135171, -0.017075208947062492, 0.03649286553263664, + -0.03985242918133736, 0.013245616108179092, -0.022006677463650703, 0.018770402297377586, + -0.00703119533136487, -0.030467228963971138, 0.02740047127008438, 0.048790715634822845, + -0.014124033972620964, -0.03140728920698166, -0.030590515583753586, 0.011951105669140816, + -0.02723095193505287, -0.0033306675031781197, -0.0016807445790618658, -0.011612066999077797, + 0.020450182259082794, 0.021066617220640182, 0.027385059744119644, -0.06361594051122665, + -0.011727648787200451, -0.013453662395477295, 0.027878208085894585, 0.011311555281281471, + 0.042749665677547455, -0.00027113445685245097, -0.030374763533473015, -0.012444252148270607, + -0.013091507367789745, 0.012159151956439018, 0.006029490847140551, 0.01222850102931261, + 0.010024750605225563, -0.06145842373371124, -0.022006677463650703, -0.01980292797088623, + 0.010047866962850094, 0.006846264936029911, -0.013515305705368519, 0.01836971938610077, + 0.0012993263080716133, -0.00421486422419548, 0.006464846897870302, -0.024549465626478195, + -0.003569535445421934, -0.0026391062419861555, -0.02724636346101761, -0.024888504296541214, + 0.011003338731825352, 0.01048707589507103, 0.0018377425149083138, -0.01670534908771515, + 0.012197678908705711, -0.0013783068861812353, 0.002563978312537074, -0.0037640973459929228, + 0.023393653333187103, -0.03223947435617447, 0.026722393929958344, 0.001243462087586522, + -0.03239358216524124, -0.008899759501218796, 0.00481203431263566, 0.004137810319662094, + -0.02917271852493286, -0.04382842406630516, 0.02118990384042263, -0.018554650247097015, + 0.0029588809702545404, -0.020111145451664925, -0.03072921186685562, 0.0017529829638078809, + -0.0040222289972007275, -0.03988325223326683, 0.00048471902846358716, -0.008945992216467857, + 0.008868937380611897, 0.010672005824744701, -0.0375099815428257, -0.02102038450539112, + -0.017891984432935715, 9.902668352879118e-6, -0.01101104449480772, -0.006888644769787788, + 0.02330118790268898, -0.029665865004062653, -0.022792629897594452, 0.016828635707497597, + -0.05261260271072388, -0.008260210044682026, 0.026383355259895325, -0.0064802574925124645, + 0.00599096342921257, 0.014540126547217369, -0.05742078647017479, 0.0034423961769789457, + -0.011396314948797226, 0.04176337271928787, 0.011496486142277718, 0.0015613106079399586, + -0.00859924778342247, -0.020665934309363365, -0.002718086587265134, -0.007998225279152393, + -0.03430452570319176, 0.013268732465803623, 0.017891984432935715, -0.003018598072230816, + -0.027107665315270424, 0.007770915515720844, -0.025058023631572723, 0.02380974590778351, + 0.03174632787704468, 0.003005113685503602, 0.006626660469919443, 0.012721647508442402, + 0.005440026056021452, -0.008198565803468227, -0.0008861232199706137, -0.008499077521264553, + -0.013738762587308884, 0.022391948848962784, -0.05036262050271034, -0.005397646222263575, + 0.03874284774065018, 0.047126345336437225, 0.008622364141047001, 0.04090036451816559, + -0.018292665481567383, 0.008861232548952103, 0.024888504296541214, 0.023455297574400902, + -0.020003268495202065, -0.05144137889146805, 0.038712028414011, 0.026321712881326675, + -0.012082098051905632, 0.02763163484632969, 0.0011760396882891655, 0.0165820624679327, + 0.04453732445836067, 0.019448477774858475, -0.02601349540054798, 0.006310738623142242, + 0.003623473457992077, -0.008468256331980228, -0.00751663651317358, -0.005443878937512636, + -0.016397131606936455, -0.025705279782414436, -0.044568147510290146, -0.008406613022089005, + 0.02142106555402279, -0.00898451916873455, 0.025998085737228394, -0.03754080459475517, + -0.06303033232688904, 0.008737945929169655, -0.012914283201098442, -0.008614659309387207, + 0.025890208780765533, -0.02852546237409115, -0.0010585320414975286, -0.0018849382176995277, + -0.03405795246362686, 0.020897097885608673, -0.036523688584566116, -0.022653933614492416, + 0.0038970159366726875, -0.017876572906970978, 0.013877460733056068, 0.0031033577397465706, + -0.02174469269812107, -0.017784107476472855, -0.010001634247601032, 0.016551241278648376, + 0.027508346363902092, 0.011927989311516285, -0.029326826333999634, 0.013523011468350887, + 0.002423354424536228, -0.00575594836845994, -0.0104331374168396, -0.041301049292087555, + -0.0043073296546936035, -0.004368972964584827, -0.020265253260731697, 0.0442599281668663, + -0.0050123753026127815, 0.001502556842751801, 0.006210567895323038, 0.012713941745460033, + 0.014686529524624348, 0.010217386297881603, 0.0304518174380064, 0.008375790901482105, + -0.04943796992301941, -0.025212131440639496, -0.013607771135866642, 0.019664229825139046, + 0.04493800550699234, 0.04487636312842369, 0.0249655582010746, 0.013523011468350887, + -0.002411796245723963, 0.014154855161905289, 0.025042613968253136, 0.02545870654284954, + 0.03784902021288872, -0.03430452570319176, 0.023332009091973305, -0.016520420089364052, + 0.004395941738039255, 0.029557988047599792, -0.022823452949523926, 0.026105960831046104, + -0.02795526199042797, -0.06429401785135269, -0.006645924411714077, 0.001257909694686532, + -0.005474700592458248, 0.0016046535456553102, -0.024564877152442932, 0.002702675759792328, + -0.05646531283855438, -0.03017442300915718, 0.033533986657857895, -0.030374763533473015, + -0.010371494106948376, 0.03538328409194946, 0.02690732479095459, 0.009716534055769444, + -0.003295993199571967, 0.013546126894652843, 0.0093158520758152, 0.006341560278087854, + -0.02041936106979847, -0.01880122348666191, -0.01272935327142477, 0.019648820161819458, + 0.002610210794955492, 0.01992621459066868, -0.005366824567317963, 0.026676161214709282, + 0.012359492480754852, -0.009023046121001244, -0.03559903800487518, 0.00776706263422966, + 0.012783290818333626, 0.0006424393504858017, -0.052951641380786896, -0.03313330188393593, + 0.011134331114590168, 0.030251476913690567, 0.02968127466738224, 0.03926681727170944, + 0.048297569155693054, 0.024934737011790276, -0.011927989311516285, 0.009855231270194054, + -0.009439138695597649, -0.04521540179848671, 0.01779951900243759, -0.022715575993061066, + -0.033533986657857895, -0.028540873900055885, -0.016720760613679886, 0.03661615401506424, + -0.015125738456845284, 0.002038083504885435, 0.010086393915116787, 0.05541737750172615, + 0.06108856573700905, -0.004141662735491991, -0.013584654778242111, 0.01134237740188837, + 0.01162747759371996, -0.016458775848150253, -0.03452027961611748, -0.016628295183181763, + 0.04127022624015808, 0.03285590931773186, 0.026814859360456467, -0.0051703364588320255, + -0.002500408561900258, -0.04543115198612213, -0.04586265608668327, -0.02408714033663273, + 0.003868120489642024, 0.0078248530626297, 0.021621406078338623, -0.01284493412822485, + 0.0020708313677459955, 0.016227614134550095, 0.0036061361897736788, 0.010764471255242825, + -0.022099142894148827, 0.019833749160170555, -0.0264141783118248, 0.021821748465299606, + -0.019232727587223053, -0.0038796786684542894, 0.007497373037040234, -0.004195600748062134, + 0.02323954552412033, -0.0008644517511129379, 0.03926681727170944, -0.038588739931583405, + -0.022607700899243355, 0.048513319343328476, 0.016181381419301033, 0.014293553307652473, + 0.03627711534500122, 0.013623181730508804, -0.024272071197628975, -0.03174632787704468, + -0.02046559378504753, 0.05665024369955063, 0.0019032385898754, 0.012906577438116074, + -0.0045962827280163765, 0.0035521984100341797, -0.0015266361879184842, -0.033040840178728104, + -0.003511744784191251, -0.017075208947062492, 0.0047272746451199055, -0.00809839554131031, + -0.058992691338062286, -0.023994676768779755, 0.0005066313315182924, 0.029927849769592285, + -0.0001914315071189776, 0.01836971938610077, -0.047064702957868576, -0.036153826862573624, + -0.03988325223326683, 0.0019677714444696903, -0.04949961602687836, -0.01553412526845932, + 0.003717864863574505, -0.025058023631572723, 0.003469365183264017, -0.04808181896805763, + -0.003852709662169218, 0.012644593603909016, 0.004422910511493683, 0.005752095486968756, + -0.05131809413433075, -0.010356083512306213, 0.007443435024470091, 0.029496345669031143, + 0.018616292625665665, 0.008368085138499737, 0.009801293723285198, 0.03695519268512726, + 0.013923692516982555, 0.02380974590778351, 0.01758376695215702, -0.00033711211290210485, + -0.008167744614183903, 0.01303756982088089, 0.017075208947062492, 0.03282508626580238, + -0.001972587313503027, 0.028263477608561516, -0.014077801257371902, 0.02780115231871605, + -0.027986083179712296, 0.0019225021824240685, -0.004839003551751375, -0.031160715967416763, + -0.04093118757009506, 0.010964811779558659, -1.0948618182737846e-5, 0.005197305232286453, + 0.018385130912065506, -0.013915987685322762, -0.0010922432411462069, -0.04250309243798256, + -0.024318303912878036, 0.011997338384389877, 0.018231023102998734, 0.006133513990789652, + 0.024780629202723503, -0.02462651953101158, -0.008190860971808434, 0.010055572725832462, + -0.028710393235087395, -0.0036523689050227404, -0.0069811102002859116, 0.05008522793650627, + 0.02307002618908882, -0.017876572906970978, -0.06145842373371124, 0.0360613614320755, + 8.871767022355925e-6, 0.0064378781244158745, -0.016289256513118744, 0.040253110229969025, + -0.020511826500296593, 0.019556354731321335, -0.002113211201503873, 0.015464777126908302, + -0.029111074283719063, -0.011635183356702328, 0.01835430972278118, 0.010078688152134418, + -0.008622364141047001, -0.04577019065618515, -0.04111611843109131, 0.029265182092785835, + -0.01470194011926651, -0.01702897623181343, 0.03538328409194946, 0.017321782186627388, + -0.025212131440639496, 0.011118920519948006, 0.01852382905781269, 0.015272141434252262, + 0.007104396820068359, -0.005790622904896736, 0.02080463245511055, -0.041362691670656204, + 0.03267097845673561, -0.05908515676856041, -0.01403927430510521, -0.025643635541200638, + 0.002949249232187867, -0.03538328409194946, -0.025258364155888557, 0.033811379224061966, + -0.013029864057898521, -0.0045962827280163765, 0.012413430958986282, 0.011689120903611183, + -0.017568355426192284, -0.006769211031496525, 0.001219382626004517, -0.008714829571545124, + -0.04999276250600815, 0.015210498124361038, -0.006846264936029911, -0.01095710601657629, + 0.006749947555363178, 0.014046979136765003, 0.01741424761712551, 0.005185747053474188, + 0.0057058632373809814, -0.053568076342344284, -0.006973404437303543, 0.012914283201098442, + -0.012128329835832119, -0.017398837953805923, -0.021960444748401642, -0.01903238520026207, + 0.017999859526753426, 0.0003970699035562575, -0.012112919241189957, -0.016273844987154007, + -0.016381721943616867, -0.00022116961190477014, -0.010232796892523766, -0.02518131025135517, + 0.01232096552848816, -0.00984752643853426, 0.007119807414710522, -0.014486188068985939, + -0.036153826862573624, 0.02263852208852768, 0.003419279819354415, 0.007038900628685951, + 0.016674527898430824, 0.012274732813239098, -0.03926681727170944, -0.007967404089868069, + 0.0047272746451199055, 0.03834216669201851, -0.0020091880578547716, -0.036585330963134766, + -0.002766245510429144, 0.011858640238642693, -0.0010296367108821869, 0.045122936367988586, + -0.013707941398024559, -0.04167090728878975, -0.013214793987572193, -0.016104325652122498, + 0.0024195017758756876, 0.004873677622526884, 0.019001564010977745, 0.037972308695316315, + -0.0015747951110824943, 0.052181098610162735, -0.00649181567132473, -0.028864501044154167, + 0.0020265253260731697, 0.007154481951147318, 0.00471571646630764, -0.028432996943593025, + -0.03211618959903717, 0.0027238656766712666, -0.017121441662311554, 0.02929600514471531, + 0.010070983320474625, -0.030081957578659058, 0.008491371758282185, -0.0005331187276169658, + 0.06768440455198288, 0.0015613106079399586, -0.017244728282094002, 0.03455109894275665, + 0.05248931795358658, 0.006152777466922998, -0.01506409514695406, 0.004842855967581272, + 0.005455437116324902, -0.017352605238556862, 0.018785811960697174, -0.005817591678351164, + -0.014848343096673489, -0.01284493412822485, 0.0026660750154405832, 0.018123146146535873, + -0.00140046002343297, 0.028602516278624535, -0.019617997109889984, 0.034088775515556335, + 0.0304518174380064, -0.0032362760975956917, 0.009285029955208302, 0.017660820856690407, + -0.016720760613679886, -0.02075839973986149, -0.006114250514656305, 0.009446844458580017, + -0.03926681727170944, 0.03083708882331848, -0.012814112938940525, 9.944807243300602e-5, + 0.01963340863585472, -0.0389586016535759, -0.0030609779059886932, -0.03979078680276871, + 0.007928876206278801, 0.0044691432267427444, 0.01541854441165924, -0.01350759994238615, + 0.009593247435986996, 0.03211618959903717, 0.008036752231419086, 0.00998622365295887, + 0.016766993328928947, 0.017845751717686653, 0.030251476913690567, -0.04043804109096527, + 0.014601769857108593, 0.03479767590761185, 0.020511826500296593, 0.014085507020354271, + 0.0048813833855092525, 0.03362645208835602, 0.03787984326481819, 0.0320853665471077, + 0.01536460593342781, 0.017337193712592125, 0.007828705944120884, 0.0029357648454606533, + -0.004557755775749683, -0.008352674543857574, -0.02307002618908882, 0.013885165564715862, + -0.016890279948711395, -0.011719943024218082, -0.007670745253562927, 0.002382901031523943, + -0.0033075513783842325, 0.0100093400105834, -0.00317655922845006, 0.014948513358831406, + 0.004546197596937418, 0.016381721943616867, -0.011296144686639309, -0.054400261491537094, + 0.008553015999495983, 0.03126859292387962, 0.007493520155549049, -0.022314894944429398, + 0.011396314948797226, -0.005205010995268822, -0.01439372356981039, -0.00016759286518208683, + -0.0005384162068367004, 0.019510122016072273, -0.00525509612634778, 0.011165152303874493, + 0.02473439648747444, 0.00033542653545737267, -0.015796110033988953, 0.003914352972060442, + -0.0010845378274098039, 0.014108623377978802, 0.012636887840926647, -0.022037498652935028, + -0.019602587446570396, -0.017044387757778168, -0.01830807700753212, 0.008499077521264553, + 0.02639876678586006, 0.013769584707915783, -0.01598103903234005, -0.01472505647689104, + -0.034859318286180496, -0.006965699139982462, -0.006387792527675629, 0.029712097719311714, + 0.021559763699769974, 0.00984752643853426, 0.008915170095860958, 0.00658813351765275, + -0.006079575978219509, 0.024179605767130852, 0.008506783284246922, 0.006526490207761526, + -0.017660820856690407, 0.012860344722867012, -0.039698321372270584, -0.007801737170666456, + -0.0010489001870155334, 0.015387722291052341, 0.019772106781601906, -0.00859924778342247, + 0.03000490367412567, 0.012945104390382767, -0.004688747692853212, 0.01079529244452715, + -0.021390244364738464, -0.033657271414995193, 0.008568426594138145, 0.019849160686135292, + -0.009939990937709808, 0.016335489228367805, -0.08223223686218262, -0.0017106031300500035, + -0.007882644422352314, -0.0008938286337070167, 0.017830340191721916, -0.008907465264201164, + -0.009107805788516998, 0.047249630093574524, -0.028371354565024376, 0.020450182259082794, + -0.039297640323638916, -0.02102038450539112, 0.026367945596575737, 0.008838116191327572, + -0.003035935340449214, -0.041424334049224854, -0.004646367859095335, 0.005378382746130228, + -0.018015271052718163, -0.004650220740586519, 0.002036157064139843, -0.040962010622024536, + -0.015526420436799526, 0.010764471255242825, -0.034643564373254776, -0.0034462488256394863, + 0.005621103569865227, -0.0334106981754303, -0.045801013708114624, 0.011088098399341106, + 0.014948513358831406, -0.0006655555916950107, 0.004623251501470804, -0.0006775953224860132, + 0.0001058893176377751, -0.00583685515448451, 0.005297475960105658, -0.029604220762848854, + -0.03812641650438309, 0.032979194074869156, -0.02624465897679329, 0.020003268495202065, + 0.013962220400571823, -0.01370023563504219, -0.018446773290634155, -0.003956732805818319, + -0.029527166858315468, -0.0035676092375069857, 0.013322670012712479, 0.030220655724406242, + 0.062383074313402176, -0.032486047595739365, 0.005597987212240696, 0.0022596141789108515, + -0.013777289539575577, 0.021390244364738464, -0.008637774735689163, -0.015888575464487076, + 0.006068017799407244, -0.005370677448809147, -0.036369580775499344, 0.0039027950260788202, + -0.014786699786782265, -0.023732692003250122, 0.012251616455614567, -0.017938217148184776, + -0.06842412799596786, 0.022838862612843513, 0.012243911623954773, -0.014532420784235, + 0.014925397001206875, -0.03396548703312874, -0.023054614663124084, 0.033256590366363525, + -0.004446026869118214, -0.005020080599933863, -0.00023284814960788935, 0.01370023563504219, + -0.016674527898430824, 0.01389287132769823, 0.03301001712679863, -0.0039644381031394005, + 0.01986457034945488, -0.021266957744956017, -0.019879981875419617, 0.0026641488075256348, + 0.006511079613119364, -0.02989702671766281, -0.004711864050477743, 0.020003268495202065, + -0.004719569347798824, 0.0414859764277935, -0.004322740249335766, 0.07575968652963638, + -0.0022056763991713524, 0.01813855767250061, 0.015672823414206505, 0.01753753423690796, + -0.028694981709122658, 0.023147080093622208, 0.00122708803974092, 0.0022904358338564634, + 0.011596656404435635, 0.048235926777124405, 0.015657411888241768, -0.029912438243627548, + 0.03707847744226456, -0.005509374663233757, -0.009724238887429237, -0.04336610063910484, + 0.0071429237723350525, -0.015025568194687366, -0.02863333933055401, 0.024225838482379913, + -0.03145352378487587, 0.010463959537446499, -0.026706984266638756, -0.003569535445421934, + 0.0034462488256394863, 0.011519601568579674, -0.016674527898430824, -0.04111611843109131, + 0.06207485869526863, -0.017999859526753426, 0.0015921322628855705, -0.022653933614492416, + -0.0004433024150785059, 0.0019513975130394101, 0.002845226088538766, -0.0007088985876180232, + -0.0025890208780765533, -0.006422467064112425, 0.0029357648454606533, -0.003215086180716753, + -0.006811590865254402, 0.0017558723920956254, 0.042133234441280365, 0.007828705944120884, + 0.008707123808562756, 0.018061503767967224, 0.005405351519584656, 0.02169846184551716, + -0.005185747053474188, 0.024980969727039337, 0.014470777474343777, -0.01636631041765213, + 0.026337124407291412, 0.01924813725054264, 0.044629789888858795, -0.005817591678351164, + 0.025504937395453453, -0.023100847378373146, -0.037355873733758926, 0.0243028923869133, + -0.009970813058316708, 0.016797814518213272, -0.013885165564715862, -0.00021996564464643598, + -0.022730987519025803, 0.012529011815786362, -0.001958139706403017, 0.002956954762339592, + 0.008044457994401455, -0.02530459687113762, 0.02385597862303257, 0.022207017987966537, + 0.02712307684123516, 0.01270623691380024, 0.001509299036115408, -0.005278212483972311, + -0.029218951240181923, 0.020619701594114304, 0.011095804162323475, -0.021713871508836746, + -0.010201975703239441, 0.01433978509157896, 0.017183085903525352, 0.008005931042134762, + 0.016844047233462334, 0.008136922493577003, -0.01067971158772707, 0.010764471255242825, + 0.013445956632494926, 0.020881686359643936, 0.01769164204597473, -0.024564877152442932, + -0.02336283214390278, -0.029696686193346977, -0.01489457581192255, 0.016165969893336296, + -0.03134564682841301, 0.004711864050477743, -0.007663039490580559, 0.009701123461127281, + 0.014940808527171612, 0.009947696700692177, -0.021236136555671692, -0.005220421589910984, + 0.04765031486749649, -0.004442174453288317, 0.0037698764353990555, 0.025104256346821785, + 0.009231092408299446, -0.0528283566236496, -0.019617997109889984, 0.01564200222492218, + 0.023224133998155594, -0.0018724169349297881, 0.01636631041765213, -0.01719849556684494, + 0.010078688152134418, -0.029943259432911873, 0.0028336679097265005, 0.01300674770027399, + 0.027600811794400215, -0.03957503288984299, 0.028879912570118904, -0.006152777466922998, + 0.008637774735689163, 0.0016614811029285192, -0.034705210477113724, 0.005979405250400305, + 0.019849160686135292, 0.008838116191327572, 0.05893104895949364, -0.010017044842243195, + 0.0020014827605336905, -0.011935695074498653, -0.01647418737411499, -0.02157517522573471, + 0.017599178478121758, 0.030328530818223953, 0.015541831031441689, 0.018508417531847954, + 0.01681322604417801, -0.007990519516170025, -0.013669414445757866, 0.003153442870825529, + -0.009708828292787075, 0.009238798171281815, -0.02114367112517357, -0.010040161199867725, + -0.032147008925676346, -0.002798993606120348, 0.00716989254578948, -0.00863006990402937, + -0.005574870854616165, 0.016458775848150253, 0.002053494332358241, -0.02208373136818409, + -0.017460480332374573, 0.016936512663960457, 0.023439886048436165, 0.035753145813941956, + -0.03439699113368988, -0.005401499103754759, 0.003112989477813244, -0.0020939477253705263, + -0.00467333709821105, -0.02163681760430336, -0.020989563316106796, -0.07273916155099869, + -0.0200186800211668, 0.008522193878889084, -0.0373866967856884, -0.013661708682775497, + 0.008568426594138145, -0.003852709662169218, 0.0006612212746404111, -0.0010546792764216661, + ], + index: 32, + }, + { + title: "Ray Collins (actor)", + text: "Ray Bidwell Collins (December 10, 1889 \u2013 July 11, 1965) was an American character actor in stock and Broadway theatre, radio, films and television. With 900 stage roles to his credit, he became one of the most successful actors in the developing field of radio drama. A friend and associate of Orson Welles for many years, Collins went to Hollywood with the Mercury Theatre company and made his feature film debut in Citizen Kane, as Kane's ruthless political rival.", + vector: [ + 0.007792048156261444, 0.013407074846327305, -0.028745872899889946, -0.006002138368785381, + -0.041455380618572235, -0.028623223304748535, -0.017324179410934448, 8.85582539922325e-6, + -0.028362594544887543, 0.04121008515357971, -0.060312673449516296, 0.05053141340613365, + -0.01983848586678505, -0.023594612255692482, -0.0034763342700898647, -0.018336033448576927, + -0.029497098177671432, 0.036733392626047134, -0.04577876254916191, 0.019240571185946465, + 0.0677022784948349, -0.046116046607494354, -0.013529724441468716, 0.054272208362817764, + 0.020651035010814667, 0.002437649993225932, -0.032042067497968674, -0.052279163151979446, + -0.01755414716899395, -0.00985025241971016, 0.0560506209731102, 0.019424544647336006, + 0.04436829686164856, 0.014464923180639744, -0.015001513063907623, -0.07898599654436111, + 0.007972189225256443, -0.0006362419808283448, -0.0011431275634095073, 0.01451091654598713, + 0.005312237422913313, 0.024959083646535873, -0.059055522084236145, -0.008899722248315811, + -0.004649166017770767, 0.01770745776593685, 0.002269007498398423, 0.01055548433214426, + 0.014671893790364265, -0.009512967430055141, -0.0027826004661619663, -0.061355192214250565, + 0.004526516888290644, -0.010877438820898533, -0.0010530571453273296, 0.01410464197397232, + 0.026108918711543083, 0.062459032982587814, 0.008140831254422665, -0.019547194242477417, + -0.025020407512784004, -0.05252445861697197, -0.03940100967884064, -0.015653086826205254, + 0.06202976033091545, 0.014119972474873066, 0.020758353173732758, 0.0029646577313542366, + -0.003552990034222603, -0.03658008202910423, 0.010724127292633057, -0.027304746210575104, + -0.017891431227326393, 0.06310293823480606, -0.0421912781894207, 0.011590336449444294, + -0.008600764907896519, 0.009290666319429874, -0.0031677952501922846, -0.039002399891614914, + -0.015085834078490734, 0.009022371843457222, -0.032011404633522034, 0.09621818363666534, + 0.00016792380483821034, -0.05479346588253975, -0.009160351939499378, -0.06304161995649338, + -0.02000712789595127, 0.018428022041916847, 0.039370346814394, 0.05408823490142822, + 0.027228090912103653, -0.035752199590206146, -0.0006324092391878366, -0.0396769717335701, + -0.015806397423148155, -0.012563862837851048, -0.007795881014317274, 0.012295568361878395, + -0.013131114654242992, -0.054210882633924484, 0.002907166024670005, -0.017032887786626816, + 0.06003671512007713, 0.022720737382769585, -0.0037733749486505985, -0.026292892172932625, + 0.01743149757385254, 0.05460949242115021, 0.03161279484629631, -0.04228326305747032, + -0.022996699437499046, -0.039125051349401474, 0.007918530143797398, 0.016051694750785828, + -0.03403511270880699, 0.03707067668437958, -0.0005255703581497073, -0.01221891213208437, + -0.035874851047992706, -0.04538015276193619, 0.022782063111662865, 0.024146532639861107, + 0.006082626990973949, 0.007148140575736761, 0.02925180085003376, -0.03363650292158127, + -0.008025847375392914, 0.01513182744383812, -0.013637042604386806, -0.019577855244278908, + -0.01048649474978447, -0.022598089650273323, 0.03749994933605194, 0.0069641671143472195, + 0.003508912865072489, 0.01758480817079544, -0.023701930418610573, 0.05969943106174469, + -0.008646758273243904, -0.06776360422372818, -0.0006678624777123332, 0.04338710382580757, + 0.01284748874604702, -0.026323555037379265, 0.006017469335347414, -0.05859558656811714, + -0.029650410637259483, -0.03943167254328728, -0.015323466621339321, -0.030815575271844864, + 0.03026365488767624, -0.04994883015751839, -0.01454157941043377, -0.027228090912103653, + 0.012824492529034615, -0.04301915690302849, 0.009053033776581287, -0.022674744948744774, + -0.024974415078759193, 0.012916479259729385, -0.0467599555850029, 0.004304215312004089, + -0.015837060287594795, -0.03520027920603752, 0.025955606251955032, -0.014756214804947376, + -0.03501630574464798, 0.017017556354403496, 0.013721363618969917, 0.01400498952716589, + 0.01047882903367281, -0.015024510212242603, -0.020099114626646042, -0.010294855572283268, + -0.03234868869185448, -0.030202331021428108, -0.013338085263967514, 0.013890005648136139, + 0.0017851187149062753, -0.05743042379617691, 0.004710490349680185, 0.01750815287232399, + 0.015308136120438576, -0.007374274544417858, 0.029895707964897156, 0.0030259822960942984, + 0.0006918173748999834, -0.0004000467306468636, 0.02098832093179226, 0.031091537326574326, + 0.012985468842089176, 0.002370576374232769, 0.02324199676513672, 0.012732505798339844, + -0.01057081576436758, -0.050930023193359375, -0.04918227344751358, -0.010195203125476837, + -0.03406577557325363, 0.007159638684242964, 0.006032800767570734, -0.026093587279319763, + -0.00021643246873281896, -0.019102590158581734, 0.03268597275018692, -0.02213815599679947, + -0.023609943687915802, 0.032256703823804855, -0.008754076436161995, -0.046361345797777176, + 0.02233745902776718, 0.06892877072095871, -0.006967999506741762, 0.02696746215224266, + 0.0006755280192010105, 0.0116133326664567, 0.02351795695722103, -0.011743647046387196, + -0.012126925401389599, 0.006201443262398243, 0.02578696422278881, 0.005335234105587006, + 0.04176200553774834, 0.002742356387898326, -0.04078081250190735, 0.027826005592942238, + 0.01411230769008398, -0.02681414969265461, -0.031198853626847267, 0.007673231884837151, + 0.008347801864147186, 0.01986914686858654, -0.01169765368103981, 0.00015666500257793814, + 0.026154911145567894, -0.04430697113275528, -0.03049362264573574, -0.005611194297671318, + -0.05365896224975586, 0.043816376477479935, -0.024207858368754387, -0.043877702206373215, + 0.07659433782100677, -0.034525711089372635, 0.006281931418925524, -0.1023506373167038, + -0.043816376477479935, 0.015407787635922432, 0.016833582893013954, -0.020666366443037987, + 0.05752240866422653, -0.05286174267530441, -0.0058948202058672905, 0.01641964353621006, + 0.012011942453682423, -0.005070772022008896, -0.042743198573589325, 0.02590961381793022, + -0.04461359605193138, 0.004963454324752092, -0.0008096754318103194, -0.001240863581188023, + -0.04350975528359413, -0.041394058614969254, -0.04430697113275528, -0.06512665003538132, + -0.0013443486532196403, 0.006860681809484959, -0.012410551309585571, -0.04884498938918114, + -0.006661376915872097, 0.021831532940268517, -0.016833582893013954, -0.03602816164493561, + 0.03038630448281765, -0.04642266780138016, 0.013322753831744194, -0.08174559473991394, + 0.014196628704667091, -0.03428041189908981, 0.03605882450938225, -0.06733433157205582, + -0.03654941916465759, -0.014748549088835716, 0.019654512405395508, 0.015407787635922432, + 0.0443989597260952, 0.0046223364770412445, -0.019071929156780243, 0.002537302440032363, + 0.00441536633297801, 0.021708883345127106, 0.006477403454482555, -0.04326445609331131, + 0.03820518031716347, -0.04320313036441803, 0.02814795821905136, -0.019071929156780243, + 0.033329881727695465, 0.004963454324752092, -0.020329082384705544, -0.03400444984436035, + 0.0012303233379498124, 0.001423878944478929, -0.003317273687571287, 0.01339941006153822, + 0.03759193792939186, -0.06892877072095871, -0.0658012181520462, -0.008002851158380508, + 0.01634298637509346, 0.0034265080466866493, 0.014786876738071442, -0.0014832870801910758, + 0.03854246810078621, -0.03544557839632034, -0.029987694695591927, -0.013437737710773945, + 0.026430871337652206, 0.021816201508045197, -0.06641446799039841, -0.017308847978711128, + -0.018090736120939255, 0.033329881727695465, 0.017354842275381088, 0.009604954160749912, + -0.013054459355771542, 0.07782083004713058, -0.04105677083134651, -0.011023084633052349, + 0.05365896224975586, -0.015300470404326916, -0.03639610856771469, -0.03838915377855301, + -0.03483233228325844, 0.03354451805353165, 0.013284426182508469, -0.009137354791164398, + 0.004246723838150501, 0.030800245702266693, -0.039033062756061554, 0.02693679928779602, + -0.013246098533272743, -0.056510552763938904, -0.0069411699660122395, -0.02548034116625786, + 0.03032498061656952, -0.0038500307127833366, 0.0006860681460238993, 0.010601477697491646, + -0.026139581575989723, 0.02446848712861538, 0.010179871693253517, 0.025219712406396866, + -0.04111809656023979, 0.01109207421541214, 0.010992421768605709, 0.0329006090760231, + 0.015990370884537697, -0.0023437468335032463, 0.004273553378880024, 0.02209216170012951, + -0.00757357943803072, -0.016143683344125748, 0.01996113359928131, 0.044000349938869476, + -0.04191531613469124, 0.02112630009651184, -0.020589711144566536, 0.01988447830080986, + -0.007684729993343353, 0.021708883345127106, 0.02932845614850521, -0.004534182604402304, + -0.02449914999306202, -0.012057935819029808, -0.03501630574464798, -0.018213385716080666, + -0.028623223304748535, 0.007834208197891712, 0.011299044825136662, 0.021555572748184204, + -0.015959708020091057, -0.029803721234202385, -0.06911274790763855, -0.010846775956451893, + -0.023134678602218628, -0.01108440849930048, -0.00781504437327385, 0.018520008772611618, + 0.00784570723772049, 0.011536677367985249, 0.036886703222990036, -0.015898384153842926, + 0.03308458253741264, 0.04200730100274086, 0.07978321611881256, 0.002610125346109271, + -0.0513286329805851, -0.02822461538016796, 0.03979961946606636, 0.017906762659549713, + -0.0007713476079516113, -0.03133683279156685, 0.004028255119919777, -0.0014190879883244634, + 0.0324406772851944, 0.009911577217280865, 0.015032174997031689, -0.008378463797271252, + -0.012004276737570763, 0.007646402344107628, -0.011467686854302883, -0.03780657425522804, + -0.025449680164456367, 0.028408588841557503, 0.018106067553162575, 0.015990370884537697, + -0.0058986530639231205, -0.004813975654542446, 0.04222193732857704, -0.014188962988555431, + 0.09364255517721176, 0.043785713613033295, 0.015438450500369072, -0.0008503987337462604, + 0.006672875490039587, -0.019347889348864555, -0.052095189690589905, 0.022000174969434738, + 0.028653886169195175, -0.013591049239039421, 0.02908315882086754, -0.017952756956219673, + -0.07064586132764816, 0.0019144751131534576, -0.0043693725019693375, -0.022690076380968094, + 0.007243960164487362, 0.010946428403258324, -0.08800069987773895, -0.042589884251356125, + -0.03869577869772911, -0.010670468211174011, -0.006086459383368492, -0.029665742069482803, + -0.047250550240278244, 0.05994472652673721, -0.02548034116625786, -7.090648432495072e-5, + 0.010034225881099701, 0.04436829686164856, -0.0008992667426355183, 0.03734663873910904, + 0.03354451805353165, 0.006094125099480152, -0.048477042466402054, 0.03759193792939186, + 0.009237007237970829, -0.028807198628783226, 0.005477047059684992, 0.04682127758860588, + -0.0030298151541501284, 0.003936268389225006, -0.008876726031303406, -0.0258942823857069, + -0.0030202330090105534, -0.013966661877930164, -0.05712379887700081, -0.017170868813991547, + -0.0146029032766819, -0.0269981250166893, 0.007910864427685738, -0.034525711089372635, + 0.013422406278550625, -0.011069077998399734, 0.0023073353804647923, -0.004790978971868753, + -0.011896958574652672, -0.020559048280119896, -0.028531236574053764, -0.007926195859909058, + -0.003690970130264759, -0.015101165510714054, -0.03152080997824669, -0.027412064373493195, + -0.05096068233251572, -0.06187644973397255, 0.025173719972372055, 0.023855242878198624, + 0.018075404688715935, -0.02114163152873516, -0.021340936422348022, -0.003549157176166773, + 0.01119939237833023, -0.021800870075821877, -0.005365896504372358, 0.0002970406785607338, + 0.020191101357340813, 0.0673956573009491, 0.03642677143216133, 0.005860325414687395, + -0.02324199676513672, -0.009045368060469627, 0.0683155283331871, 0.0029550758190453053, + 0.01526214275509119, -0.004641500301659107, 0.001572399283759296, 0.05359764024615288, + 0.04792511835694313, 0.041271407157182693, 0.010616809129714966, -0.05372028797864914, + 0.018933948129415512, -0.021678220480680466, -0.010394508019089699, 0.0020160439889878035, + -0.00044843563227914274, -0.011130401864647865, 0.023793917149305344, 0.039217036217451096, + 0.029957031831145287, -0.012211247347295284, 0.021938851103186607, 0.010356180369853973, + -0.01285515446215868, -0.015039840713143349, 0.018075404688715935, -0.011858630925416946, + 0.013054459355771542, -0.002922497224062681, -0.012701842933893204, 0.037959884852170944, + -0.006669042631983757, 0.01296247262507677, 0.015729742124676704, -0.018244046717882156, + 0.018290041014552116, 0.08297208696603775, 0.015806397423148155, 0.005369728896766901, + 0.031168192625045776, 0.027841337025165558, -0.020160438492894173, -0.0004596944199874997, + 0.004584008362144232, 0.01773812063038349, 0.03182743117213249, -0.0012926061172038317, + 0.02682948112487793, 0.011835633777081966, 0.010892769321799278, -0.004748818464577198, + -0.026599515229463577, -0.03170478343963623, -0.014242622070014477, -0.003922853618860245, + 0.011797306127846241, -0.015576430596411228, 0.005369728896766901, 0.011544343084096909, + -0.054548170417547226, -0.00871574878692627, 0.032195378094911575, -0.03492432087659836, + -0.05828896537423134, -0.05712379887700081, -0.015277473255991936, 0.00880006980150938, + -0.01746216043829918, -0.012870485894382, -0.020635703578591347, 0.01879596896469593, + 0.010064888745546341, 0.033176571130752563, -0.006508065853267908, -0.002136776689440012, + 0.010279524140059948, -0.03308458253741264, 0.028914514929056168, -0.03826650604605675, + -0.030631601810455322, -0.020620372146368027, 0.00016995998157653958, 0.029543092474341393, + 0.03351385518908501, -0.007067651953548193, -0.023686598986387253, -0.010110882110893726, + 0.02319600246846676, 0.035537563264369965, 0.020083783194422722, 0.020421069115400314, + -0.007470094133168459, 0.006251269020140171, 0.04994883015751839, 0.003508912865072489, + -0.00033632671693339944, 0.03633478283882141, 0.030984219163656235, -0.024023884907364845, + 0.0006146825617179275, -0.012456544674932957, 0.025204380974173546, 0.0018291957676410675, + -0.016864245757460594, 0.008140831254422665, -0.006082626990973949, -0.021356267854571342, + -0.024897759780287743, 0.042773857712745667, -0.015576430596411228, -0.03633478283882141, + 0.0032578655518591404, -0.0234566330909729, 0.016910238191485405, 0.019194576889276505, + -0.016833582893013954, 0.029635079205036163, -0.016833582893013954, -0.023180672898888588, + 0.035537563264369965, -0.008685086853802204, -0.016051694750785828, -0.021678220480680466, + -0.0067801931872963905, 0.05099134519696236, 0.0021386928856372833, -0.02356395125389099, + -0.021356267854571342, -0.009773597121238708, 0.01118406094610691, -0.04084213823080063, + -0.00871574878692627, -0.020789016038179398, 0.018198054283857346, -0.033176571130752563, + -0.02696746215224266, -0.017937425523996353, 0.03544557839632034, 0.013913002796471119, + -0.01752348430454731, 0.023042691871523857, 0.007447097450494766, 0.01966984197497368, + -0.045226842164993286, -0.0046261693350970745, 0.01890328712761402, -0.021877525374293327, + -0.013905337080359459, -0.01293180976063013, 0.00942098069936037, -0.01635831780731678, + -0.028316602110862732, -0.011498349718749523, -0.012655849568545818, 0.0012169086840003729, + 0.009888580068945885, 0.016051694750785828, 0.004101078025996685, 0.07254692167043686, + -0.016894908621907234, -0.0023839911445975304, -0.019577855244278908, 0.036702729761600494, + -0.004254389088600874, 0.007719225250184536, 0.02233745902776718, 0.0223527904599905, + 6.881043373141438e-5, -0.040167566388845444, -0.00020457479695323855, -0.007140474859625101, + -0.014050982892513275, -0.031980741769075394, -0.0036679734475910664, -0.008784739300608635, + -0.03961564600467682, 0.0009088487131521106, -0.02673749439418316, -0.01985381729900837, + 0.019685173407197, 0.008577768690884113, -0.01408164482563734, -0.024989746510982513, + -0.0005476088845171034, 0.011490684002637863, -0.014480254612863064, 0.005733843427151442, + -0.00731295021250844, 0.0009601121419109404, -0.003144798567518592, 0.011498349718749523, + -0.01278616487979889, -0.028178621083498, -0.009543630294501781, 0.021754877641797066, + 0.004591674078255892, -0.013445403426885605, 0.010724127292633057, 0.0001922380324685946, + -0.025373024865984917, -0.03308458253741264, -0.025235043838620186, -0.034740347415208817, + -0.014940188266336918, -0.02449914999306202, -0.013031462207436562, 0.036794718354940414, + 0.010946428403258324, 0.021846864372491837, 0.023640606552362442, -0.00810250360518694, + 0.043724387884140015, -0.009030036628246307, -0.027504051104187965, 0.018060073256492615, + 0.019654512405395508, 0.006393082439899445, 0.01471788715571165, -0.014495586045086384, + -0.01117639522999525, 0.008570102974772453, 0.007895532995462418, -0.042651209980249405, + -0.026568852365016937, 0.004764149431139231, -0.03878776356577873, -0.006124787498265505, + 0.012870485894382, -0.005484712775796652, 0.0020850340370088816, 0.02100365050137043, + -0.04872233793139458, -0.006910508032888174, 0.034556373953819275, 0.00555753568187356, + -0.03176610544323921, -0.02124894969165325, 0.026538189500570297, -0.033176571130752563, + 0.020237095654010773, 0.04804776981472969, 0.006619216408580542, 0.015300470404326916, + 0.009827256202697754, -0.025265706703066826, 0.011398697271943092, 0.013629376888275146, + -0.011521345935761929, 0.011153399012982845, -0.014871198683977127, 0.029757728800177574, + 0.03857313096523285, -0.062489695847034454, 0.0006501358584500849, 0.008240483701229095, + 0.011237720027565956, 0.00817915890365839, -0.01744682900607586, -0.031214185059070587, + 0.01297013834118843, -0.008777073584496975, -0.001267693005502224, 0.015039840713143349, + 0.024054545909166336, 0.00022505623928736895, -0.014909526333212852, -0.026584183797240257, + -0.02940511144697666, 0.0010089802090078592, 0.003353685140609741, 0.04084213823080063, + -0.005933148320764303, 0.003286611521616578, 0.00041729427175596356, -0.022475440055131912, + -0.034648358821868896, 0.05948479473590851, -0.014311611652374268, -0.013506727293133736, + -0.016925569623708725, 0.003106470685452223, 0.010118547827005386, -0.0023207501508295536, + -0.0037005520425736904, -0.015622423961758614, -0.026400210335850716, -0.04482823237776756, + -0.014848201535642147, -0.02468312345445156, -0.043877702206373215, -0.0448588952422142, + -0.005948479287326336, 0.005572866648435593, -0.048599690198898315, 0.03946233540773392, + 0.01980782300233841, 0.025265706703066826, 0.022521434351801872, -0.05166591703891754, + 0.016956232488155365, 0.004652998875826597, 0.010708795860409737, -0.019209908321499825, + 0.008784739300608635, 0.015461446717381477, 0.009007040411233902, 0.0039707631804049015, + 0.016848914325237274, 0.005603529047220945, 0.02452981099486351, -0.006481236312538385, + 0.01973116770386696, -0.011452356353402138, 0.0006755280192010105, -0.036702729761600494, + -0.013575717806816101, 0.015553433448076248, 0.001031976891681552, 0.009359655901789665, + 0.010662802495062351, -0.0020524554420262575, 0.016956232488155365, -0.052156511694192886, + 0.013529724441468716, -0.008585434406995773, -0.025173719972372055, 0.06874480098485947, + -0.02567964605987072, 0.03403511270880699, -0.036978691816329956, -0.013606379739940166, + 0.029711734503507614, 0.042743198573589325, 0.04065816476941109, 0.041332732886075974, + 0.004066582769155502, -0.03360584378242493, -0.02790266089141369, -0.00011282755440333858, + -0.0043923696503043175, 0.020083783194422722, 0.02106497623026371, -0.028822528198361397, + -0.0033958458807319403, -0.006803189869970083, -0.03593617305159569, -0.01764613389968872, + -0.021448254585266113, 0.025235043838620186, 0.03504696860909462, -0.03047829121351242, + 0.0022153486497700214, -0.028730541467666626, 0.0005250913091003895, 0.0013759691501036286, + 0.04436829686164856, -0.00011821740190498531, -0.013131114654242992, 0.020804347470402718, + 0.0052624111995100975, 0.02903716452419758, 0.023793917149305344, -0.03848114237189293, + 0.02931312471628189, -0.053107041865587234, 0.00996523629873991, 0.010432835668325424, + 0.01651163026690483, -0.03296193480491638, -0.044031012803316116, 0.04093412309885025, + -0.014142969623208046, 0.03841981664299965, 0.02111096866428852, 0.013276760466396809, + 0.005580532364547253, -0.002914831507951021, 0.003581735771149397, 0.0024242352228611708, + 0.014817539602518082, -0.034495048224925995, -0.04461359605193138, 0.003380514681339264, + -0.00643141008913517, -0.0013261429267004132, -0.0035376588348299265, 0.04185399040579796, + -0.0032923605758696795, -0.0013865092769265175, -0.018290041014552116, 0.019424544647336006, + -0.030938224866986275, -0.016634277999401093, -0.04590141028165817, 0.023579280823469162, + -0.0054387194104492664, 0.00378678971901536, -0.017906762659549713, 0.018182722851634026, + 0.005377394612878561, 0.007972189225256443, -0.010294855572283268, 0.003658391535282135, + 0.018136730417609215, -0.06227505952119827, 0.05286174267530441, 0.02085033990442753, + 0.06227505952119827, -0.022812724113464355, 0.005852659698575735, 0.011023084633052349, + -0.009566626511514187, -0.013752025552093983, 0.018320703878998756, 0.00942864641547203, + 0.042620547115802765, 0.030202331021428108, 0.014165966771543026, 0.002056288067251444, + 0.020053120329976082, -0.007025491446256638, 0.0061401184648275375, -0.02564898505806923, + 0.024928420782089233, -0.05945413187146187, 0.01472555287182331, -0.007109812460839748, + -0.047158561646938324, -0.02112630009651184, 0.02787199802696705, 0.018198054283857346, + -0.020114446058869362, -0.03360584378242493, -0.022858718410134315, -0.04651465639472008, + -0.0354149155318737, -0.0020428732968866825, -0.029681071639060974, -0.016879577189683914, + 0.020651035010814667, 0.039094388484954834, -0.012402886524796486, 0.010440501384437084, + -0.04338710382580757, 0.013215435668826103, -5.038013568992028e-6, 0.029543092474341393, + -0.02439183183014393, -0.0023169172927737236, 0.012648183852434158, 0.010287189856171608, + -0.003909438848495483, -0.03035564161837101, 0.013085121288895607, -0.009037702344357967, + -0.018489345908164978, 0.00757357943803072, -0.038082532584667206, -0.015407787635922432, + -0.014832871034741402, -0.0013318920973688364, 0.004035920836031437, -0.046116046607494354, + -0.008915053680539131, -0.0032233705278486013, 0.03253266215324402, 0.02121828682720661, + -0.005998305510729551, -0.01057848148047924, -0.004591674078255892, 0.005607361905276775, + -0.033237896859645844, 0.02088100276887417, -0.008370798081159592, 0.01045583188533783, + 0.01874997466802597, 0.031030211597681046, -0.04553346335887909, -0.001405673217959702, + 0.03550690412521362, 0.036764055490493774, -0.030861569568514824, 0.0021118635777384043, + 0.011460021138191223, -0.0048676347360014915, -0.03400444984436035, 0.028607893735170364, + -0.024913089349865913, -0.021632228046655655, 0.00932132825255394, 0.007213297765702009, + 0.026170242577791214, 0.001082761213183403, -0.007734556216746569, -0.04651465639472008, + -0.03872644156217575, 0.0002824281982611865, 0.008746410720050335, -0.015361794270575047, + -0.06856082379817963, 0.010195203125476837, 0.007151973433792591, -0.0007459553889930248, + -0.03615080937743187, 0.02794865518808365, 0.0034054277930408716, -0.018060073256492615, + 0.027228090912103653, 0.00035668836790136993, 0.04642266780138016, 0.0008911220938898623, + -0.013146446086466312, -0.02443782426416874, 0.04467491805553436, 0.018949279561638832, + 0.0012945225462317467, 0.00643141008913517, 0.028331933543086052, 0.0013941748766228557, + -0.010026560164988041, 0.011069077998399734, -0.007466261275112629, -0.015599426813423634, + 0.004089579451829195, 0.03618147224187851, 0.03354451805353165, -0.01971583627164364, + -0.0076004089787602425, -0.030646933242678642, 0.009053033776581287, 0.010080219246447086, + -0.021417591720819473, 0.02584828995168209, 0.011820303276181221, 0.025955606251955032, + -0.026660839095711708, -0.0009744851267896593, -0.005055441055446863, 0.026538189500570297, + -0.01398199237883091, 0.013844012282788754, -0.015438450500369072, -0.018397359177470207, + -0.005622692871838808, -0.034740347415208817, -0.005158925894647837, -0.01980782300233841, + -0.004242890980094671, 0.016710935160517693, 0.01649629883468151, -0.010655136778950691, + -0.028991172090172768, -0.013767356984317303, 0.006488901562988758, 0.02327265962958336, + -0.007213297765702009, -0.015009178780019283, 0.008754076436161995, -0.00811783503741026, + 0.01980782300233841, -0.008876726031303406, 0.03299259766936302, -0.014564575627446175, + -0.006772527936846018, -0.011322041042149067, -0.01512416172772646, 0.03593617305159569, + -0.06052730977535248, -0.0269214678555727, 0.0007296660915017128, 0.02114163152873516, + -0.01471022143959999, -0.041608694940805435, -0.010233530774712563, -0.005572866648435593, + 0.016848914325237274, 0.0012897314736619592, 0.028730541467666626, -0.029558423906564713, + -0.015047506429255009, -0.035629551857709885, 0.030049020424485207, 0.03768392279744148, + 0.005423387978225946, 0.026093587279319763, -0.013284426182508469, 0.01523914560675621, + -0.04596273601055145, -0.012410551309585571, 0.030922893434762955, -0.026262229308485985, + -0.02344130165874958, 0.05917816981673241, 0.01163632981479168, -0.005101434420794249, + 0.012525535188615322, 0.034648358821868896, -0.005576699506491423, 0.0018474014941602945, + 0.023747924715280533, 0.017922094091773033, -0.014188962988555431, 0.018228717148303986, + -0.028607893735170364, -0.014564575627446175, -0.019087260589003563, 0.0013146445853635669, + -0.006048131734132767, -0.010287189856171608, 0.009689276106655598, -0.012494873255491257, + -0.013759691268205643, -0.0036468931939452887, 0.012188250198960304, -0.00880006980150938, + 0.00010528176062507555, -0.004262054804712534, -0.023947229608893394, -0.01867331936955452, + -0.03418842703104019, -0.016848914325237274, -0.020666366443037987, 0.0469132661819458, + -0.013782688416540623, -0.01755414716899395, -0.03161279484629631, -0.014802208170294762, + 0.0423445887863636, 0.006745698396116495, 0.004698992241173983, -0.007174970116466284, + -6.550166631313914e-7, 0.007117478176951408, -0.005730010569095612, -0.02569497749209404, + 0.016756927594542503, -0.014786876738071442, -0.012609856203198433, -0.012195915915071964, + -0.026185574010014534, -0.0041470713913440704, 0.014303946867585182, 0.029880376532673836, + -0.04099544882774353, 0.01629699394106865, 0.017891431227326393, -0.017983417958021164, + 0.01159800123423338, -0.005864158272743225, -0.019301895052194595, -0.010241196490824223, + 0.01469489000737667, 0.01743149757385254, -0.02577163279056549, -0.029849715530872345, + 0.026630176231265068, -0.0025238876696676016, -0.007726890500634909, -0.03277796134352684, + 0.021816201508045197, -0.0036488096229732037, -0.03286994621157646, 0.0004903567023575306, + -0.03860379010438919, 0.015055172145366669, -0.008892056532204151, -0.02088100276887417, + -0.0017419998766854405, -0.022598089650273323, -0.011030749417841434, -0.023916566744446754, + -0.0016145599074661732, -0.00872341450303793, -0.018290041014552116, -0.04225260019302368, + 0.032195378094911575, 0.007872536778450012, -0.0025296369567513466, -0.0001810990070225671, + -0.03624279797077179, 0.008531775325536728, 0.012134591117501259, 0.008623762056231499, + 0.02226080372929573, -0.009788927622139454, 0.016664940863847733, -0.0018138645682483912, + 0.03771458566188812, -0.006837685126811266, -0.0031352166552096605, -0.006803189869970083, + 0.00246639596298337, -0.02695213072001934, -0.0009505302296020091, 0.025020407512784004, + -0.03375915437936783, -0.02564898505806923, 0.02945110574364662, 0.011467686854302883, + -0.001661511487327516, 0.016710935160517693, -0.004607005510479212, -0.011590336449444294, + -0.0018905202159658074, 0.021862193942070007, 0.01047882903367281, 0.038971737027168274, + -0.009627951309084892, 0.0008599807042628527, 0.027611369267106056, 0.014135303907096386, + 0.0421912781894207, -0.022506102919578552, 0.0029857379850000143, 0.01121472381055355, + 0.0014133388176560402, -0.02088100276887417, 0.02328798919916153, -0.02127961255609989, + -0.006385416723787785, 0.0007593701593577862, -0.021478915587067604, -0.02581762708723545, + 0.022736068814992905, 0.027136104181408882, -0.023579280823469162, -8.773479930823669e-5, + 0.035537563264369965, -0.00414323853328824, -0.01770745776593685, -0.04654531925916672, + -0.008968712761998177, 0.019516531378030777, -0.0074355993419885635, -0.020344411954283714, + -0.011927621439099312, -0.030141007155179977, -0.027534713968634605, 0.009497636929154396, + -0.048538364470005035, 0.005400391295552254, 0.007443264592438936, -0.013690701685845852, + 0.02088100276887417, -0.004476690664887428, -0.028761204332113266, -0.004227559547871351, + -0.008048844523727894, 0.0290524959564209, 0.016664940863847733, -0.028408588841557503, + 0.00871574878692627, 0.020283088088035583, -0.003144798567518592, -0.01225724071264267, + -0.03887975215911865, -0.055560022592544556, -0.041486043483018875, -0.015469112433493137, + 0.01408164482563734, 0.024269182235002518, 0.01172831654548645, -0.02210749313235283, + 0.02810196578502655, 0.018366696313023567, -0.027764679864048958, -0.00883073266595602, + 0.009267669171094894, 0.00810250360518694, -0.018520008772611618, -0.02344130165874958, + -0.04476690664887428, -0.018489345908164978, -0.022705407813191414, 0.0032578655518591404, + -0.02791799232363701, 0.015599426813423634, 0.008125499822199345, -0.017278186976909637, + 0.012916479259729385, -0.015116496942937374, 0.010233530774712563, -0.011575005017220974, + -0.013644707389175892, 0.007021658588200808, 0.02218414843082428, -0.01048649474978447, + 0.004764149431139231, -0.0008820192306302488, -0.012073266319930553, 0.00010438344907015562, + -0.019117921590805054, -0.016618948429822922, 0.028439249843358994, -0.001186246401630342, + 0.012640519067645073, -0.00944397784769535, 0.036764055490493774, -0.007512255106121302, + -0.026660839095711708, 0.013798018917441368, 0.005841161590069532, -0.007021658588200808, + 0.009397984482347965, -0.016036365181207657, 0.042620547115802765, -0.018044743686914444, + -0.014043317176401615, -0.034587033092975616, -0.016940901055932045, -0.03038630448281765, + -0.0037043849006295204, -0.009198679588735104, 0.026584183797240257, 0.01172831654548645, + 0.0004877216415479779, -0.052187174558639526, -0.013131114654242992, 0.04433763399720192, + -0.00995757058262825, -0.00818682461977005, -0.0516352541744709, -0.0025143057573586702, + -0.03949299827218056, -0.05040876194834709, -0.004277385771274567, -0.0036258127074688673, + -0.0420379638671875, -0.021540241315960884, 0.04899829998612404, -0.000905974127817899, + 0.01119939237833023, -0.006527229677885771, -0.016603616997599602, 0.015867721289396286, + 0.00827881135046482, 0.00011785807873820886, -0.00011480382818263024, 0.008838397450745106, + 0.009466974064707756, 0.006485069170594215, -3.419561107875779e-5, 0.014234956353902817, + -0.01640431210398674, -0.03627346083521843, -0.006331757642328739, -0.004189231898635626, + -0.0010511407162994146, -0.012119260616600513, -0.02594027668237686, 0.021938851103186607, + 0.011030749417841434, -0.02452981099486351, -0.03058560937643051, 0.028362594544887543, + -0.0395236611366272, 0.0042122285813093185, 0.003689053701236844, -0.010379176586866379, + -0.006270433310419321, 0.00528924074023962, -0.01634298637509346, -0.0014554993249475956, + 0.006009804084897041, -0.027718687430024147, 0.030033688992261887, 0.028868522495031357, + 0.006186111830174923, 0.005070772022008896, -0.003357517998665571, -0.006013636477291584, + 0.001019520335830748, -0.012571528553962708, 0.010225865058600903, -0.023165341466665268, + -0.02224547229707241, -0.017201529815793037, 0.017891431227326393, -0.030646933242678642, + -0.0006779234972782433, -0.02554166689515114, 0.026492197066545486, -0.01859666407108307, + -0.00528924074023962, 0.0023188337218016386, -0.01887262426316738, -0.031198853626847267, + -0.021739546209573746, -0.018274709582328796, 0.019071929156780243, 0.01283982302993536, + 0.001421962515451014, 0.014756214804947376, -0.02807130292057991, 0.0026580351404845715, + 0.0034092606510967016, -0.010287189856171608, -0.00491746049374342, 0.01225724071264267, + -0.0034035113640129566, 0.013913002796471119, 0.028745872899889946, 0.014771546237170696, + 0.022000174969434738, -0.026078255847096443, 0.006910508032888174, -0.015852391719818115, + 0.016971563920378685, -0.02900650165975094, 0.019041266292333603, -0.015285138972103596, + -0.009781262837350368, 0.005519207566976547, 0.002261342015117407, 0.03740796446800232, + -0.013867009431123734, 0.017830107361078262, 0.029589084908366203, 0.010110882110893726, + -0.001017603906802833, -0.007692395709455013, -0.020727690309286118, -0.028684549033641815, + -0.0027270251885056496, -0.0031256345100700855, 0.0013865092769265175, -0.04117942228913307, + 0.017216861248016357, 0.0022536765318363905, 0.00935199111700058, 0.03529226779937744, + -0.001944179181009531, 0.023134678602218628, -0.022966036573052406, -0.011582670733332634, + -0.01625099964439869, 0.008455119095742702, -0.009022371843457222, 0.00668437359854579, + -0.014119972474873066, -0.03314590826630592, 0.04191531613469124, -0.012479541823267937, + 0.020237095654010773, 0.03182743117213249, -0.017155537381768227, 0.0023437468335032463, + -0.034587033092975616, -0.004522684030234814, 0.006485069170594215, 0.04525750130414963, + 0.024897759780287743, 0.006220607087016106, -0.012433548457920551, -0.010087884962558746, + 0.01287815161049366, 0.005867991130799055, 0.00943631213158369, -0.007328281179070473, + -0.004787146113812923, -0.006086459383368492, 0.0018186555244028568, 0.02452981099486351, + -0.0033306884579360485, 0.007910864427685738, 0.04252856224775314, -0.012402886524796486, + -0.01618967577815056, 0.03884908929467201, 0.022843386977910995, 0.01057081576436758, + 0.020697029307484627, -0.04004491865634918, -0.007627238519489765, 0.018964610993862152, + 0.0006597177707590163, 0.022030837833881378, 0.029635079205036163, 0.0032061231322586536, + 0.02103431336581707, 0.007404936943203211, -0.037837233394384384, -0.01753881573677063, + 0.01107674278318882, 0.007792048156261444, 0.006400747690349817, 0.02791799232363701, + -0.01882662996649742, 0.005745342001318932, -0.004691326525062323, -0.036825381219387054, + -0.011896958574652672, -0.005986807402223349, -0.0015321550890803337, 0.031214185059070587, + 0.001655762316659093, -0.020743021741509438, 0.015975039452314377, -0.014066314324736595, + -0.010908100754022598, 0.01859666407108307, 0.0009136396693065763, 0.01626633107662201, + 0.011222388595342636, 0.012924144975841045, -0.01775345206260681, -0.04688260331749916, + 0.018933948129415512, 0.0031869590748101473, -0.020543716847896576, 0.011306710541248322, + 0.02232212945818901, -0.005749174859374762, -0.014403599314391613, 0.003008734667673707, + 0.0042083957232534885, -0.0017649965593591332, 0.002849674317985773, -0.015116496942937374, + -0.051911212503910065, -0.0013165610143914819, -0.05126730725169182, 0.0008087172172963619, + -0.015714410692453384, -0.013445403426885605, 0.029681071639060974, -0.00038423651130869985, + 0.019056597724556923, -0.0211722943931818, 0.02796398475766182, -0.022828055545687675, + ], + index: 33, + }, + { + title: "Azhdarcho", + text: "Azhdarcho /\u0251\u02d0\u0292\u02c8d\u0251rxo\u028a/ is a genus of pterodactyloid pterosaur from the late Cretaceous Period of the Bissekty Formation (middle Turonian stage, about 92 million years ago) of Uzbekistan. It is known from fragmentary remains including the distinctive, elongated neck vertebrae that characterizes members of the family Azhdarchidae, which also includes such giant pterosaurs as Quetzalcoatlus.", + vector: [ + 0.0036942523438483477, 0.0021034819073975086, -0.028384335339069366, -0.009568016044795513, + 0.02500004880130291, -0.02737060934305191, 0.005770441610366106, -0.02774490788578987, + -0.019089244306087494, 0.041640754789114, -0.0025596588384360075, -0.005770441610366106, + -0.023877151310443878, 0.0166563019156456, 0.04532136023044586, 0.027838481590151787, + -0.06618852913379669, -0.01304587721824646, 0.016157235950231552, -0.056425563991069794, + 0.03462265059351921, 0.02155338041484356, 0.03683725371956825, -0.02389274723827839, + 0.0197442676872015, 0.021116698160767555, -0.013427973724901676, 7.980657392181456e-5, + -0.0616033636033535, -0.025421135127544403, -0.021444208920001984, -0.01476141344755888, + 0.04613234102725983, 0.039488535374403, 0.019806651398539543, 0.06674997508525848, + 0.011572075076401234, -0.012078938074409962, 0.016765473410487175, -0.02935127355158329, + -0.02718345820903778, 0.02825956791639328, -0.012281683273613453, 0.030879661440849304, + 0.022910213097929955, -0.013903644867241383, 0.022910213097929955, 0.056987009942531586, + -0.010012496262788773, -0.001261309371329844, 0.00633968785405159, 0.039488535374403, + -0.07841562479734421, -0.017623240128159523, 0.03170623630285263, 0.03967568650841713, + 0.0361822284758091, 0.09532146155834198, -0.0005619357689283788, 0.040486667305231094, + 0.011587671004235744, -0.000763706280849874, 0.0004885867820121348, 0.031768620014190674, + 0.04416727274656296, 0.025842221453785896, 0.017981944605708122, -0.02010297030210495, + -0.06506562978029251, 0.004604656714946032, -0.01863696798682213, 0.04363701492547989, + 0.01668749377131462, -0.02718345820903778, 0.017248941585421562, 0.0038989470340311527, + -0.009536824189126492, 0.0050257425755262375, 0.0018792925402522087, -0.006316294427961111, + -9.381841664435342e-5, 0.010106070898473263, -0.03955091908574104, 0.021319443359971046, + 0.07585791498422623, 0.014519679360091686, -0.017794795334339142, -0.04151598736643791, + -0.025311963632702827, -0.008086415939033031, 0.006636008154600859, -0.021990060806274414, + -0.028384335339069366, -0.006133043672889471, 0.010620731860399246, -0.014971956610679626, + -0.008710247464478016, 0.0168746430426836, -0.035246480256319046, -0.03209613263607025, + -0.04759834706783295, -0.04675617441534996, 0.007450887933373451, -0.0124922264367342, + -0.010698710568249226, -0.006441060453653336, -0.0051739029586315155, 0.03824087232351303, + 0.004222559742629528, 0.030723702162504196, -0.023409279063344002, -0.03148789703845978, + 0.02662201039493084, -0.00018398156680632383, -0.0351841002702713, 0.010230837389826775, + 0.012234896421432495, -0.035215288400650024, -0.058453015983104706, -0.017825985327363014, + 0.016032470390200615, -0.01756085827946663, 0.046818558126688004, 0.00924050435423851, + -0.0073378183878958225, -0.02013416215777397, 0.02407989650964737, 0.014815999194979668, + 0.025608284398913383, 0.04475991427898407, -0.03873993828892708, -0.026497244834899902, + 0.05670628696680069, 0.011205573566257954, 0.00239785248413682, 0.021319443359971046, + 0.005864016246050596, -0.025951391085982323, -0.005446828901767731, 0.03986283391714096, + 0.025311963632702827, 0.015252681449055672, 0.025592688471078873, -0.0062149218283593655, + -0.022879021242260933, 0.013014685362577438, -0.012936706654727459, -0.0065034436993300915, + 0.07199016213417053, -0.02063322812318802, 0.042826034128665924, 0.03621342033147812, + 0.01958831027150154, 0.011774820275604725, -0.03189338743686676, 0.020368099212646484, + -0.03315664455294609, -0.037741806358098984, 0.030536552891135216, 0.0071935574524104595, + 0.011408318765461445, 0.07011866569519043, -0.007860277779400349, -0.010862466879189014, + 0.001418241998180747, -0.0062500122003257275, 0.049563415348529816, -0.0340300090610981, + -0.021475400775671005, 0.019697479903697968, 0.044323232024908066, 0.03356213495135307, + -0.005228488240391016, 0.042295776307582855, -0.04298199340701103, 0.03281353786587715, + 0.01176702231168747, 0.03640057146549225, -0.033063072711229324, 0.03098883107304573, + -0.0050257425755262375, 0.007131174206733704, 0.02317534200847149, -0.00895978044718504, + 0.04001879319548607, 0.05539624020457268, 0.08970697224140167, -0.009224908426404, + -0.03212732449173927, -0.0043122353963553905, -0.061353832483291626, -0.060449276119470596, + 0.02864946238696575, -0.01991582103073597, -0.005747048184275627, 0.039207812398672104, + 0.011478500440716743, -0.008024033159017563, -0.04831575229763985, 0.014862786047160625, + 0.004499385133385658, -0.04622591659426689, 0.041048113256692886, 0.05000009760260582, + 0.02339368313550949, 0.02682475559413433, -0.012593599036335945, 0.028025630861520767, + 0.03499694913625717, 0.029865935444831848, 0.01994701288640499, -0.06718665361404419, + -0.008203384466469288, 0.02878982573747635, -0.02172493375837803, 0.002629839815199375, + -0.00842172559350729, -0.027277033776044846, 0.0069752163253724575, 0.008990972302854061, + 0.03696201741695404, -0.03133193776011467, 0.01632879115641117, 0.03643176332116127, + -0.016235215589404106, 0.01901126652956009, -0.006456656381487846, -0.005501414183527231, + 0.009022163227200508, 0.012850929982960224, 0.020757993683218956, -0.08521538972854614, + 0.036868441849946976, -0.002249692566692829, 0.01664070598781109, 0.0325951986014843, + 0.022551510483026505, -0.01306147314608097, 0.0361822284758091, 0.003965229261666536, + -0.00788367073982954, -0.0012856777757406235, -0.0033063071314245462, -0.02445419691503048, + 0.018153497949242592, 0.006889439653605223, 0.03655652701854706, -0.019853439182043076, + -0.02336249127984047, -0.01991582103073597, 0.02900816686451435, -0.011470702476799488, + 0.009029961191117764, 0.002471932442858815, 0.04541493579745293, -0.03983164206147194, + 0.04260769486427307, -0.033780477941036224, -0.01058174204081297, 0.0024972755927592516, + -0.007825186476111412, -0.03212732449173927, 0.029631998389959335, 0.006643805652856827, + -0.038303256034851074, -0.009552420116961002, 0.014433901757001877, 0.01868375390768051, + -0.008835013955831528, -0.0547100268304348, 0.023877151310443878, 0.052651382982730865, + 0.023066170513629913, -0.010909253731369972, 0.050124865025281906, 0.023877151310443878, + 0.01737370900809765, 0.00498285423964262, 0.024578962475061417, 0.028743037953972816, + -0.025686264038085938, -0.016188427805900574, 0.023268915712833405, 0.029943913221359253, + 0.047535963356494904, 0.014956360682845116, -0.02225518971681595, -0.031082406640052795, + 0.005641776602715254, 0.001133618876338005, -0.014597658067941666, -0.03477860987186432, + -0.012344066053628922, -0.033593326807022095, -0.0337492860853672, 0.015268276445567608, + -0.020617632195353508, 0.029413657262921333, -0.031815409660339355, -0.04042428359389305, + -0.033593326807022095, 0.04095454141497612, -0.028353143483400345, 0.037242744117975235, + 0.02099193073809147, 0.006281203590333462, 0.007680925540626049, 0.017124176025390625, + -0.012648184783756733, 0.04472872242331505, -0.030739298090338707, 0.03384286165237427, + -0.030474171042442322, 0.0045305765233933926, -0.013100462034344673, -0.02662201039493084, + 0.00548191973939538, -0.017124176025390625, -0.032158516347408295, 0.0070492965169250965, + -0.0061057512648403645, -0.04750477150082588, -0.019120436161756516, -0.015369649045169353, + 0.042295776307582855, -0.014550870284438133, -0.0042030648328363895, 0.003674757666885853, + 0.0033667408861219883, -0.03799134120345116, -0.02916412428021431, 0.023112958297133446, + 0.009279494173824787, -0.009638196788728237, -0.023440469056367874, 0.04148479551076889, + 0.056082453578710556, -0.04563327506184578, 0.0005473147029988468, -0.025608284398913383, + -0.03655652701854706, 0.053368788212537766, 0.030536552891135216, 0.0007539588841609657, + 0.0061057512648403645, -0.010441380552947521, 0.04859647527337074, -0.03593269735574722, + 0.018340647220611572, 0.004475991241633892, 0.0006062862812541425, 0.009903325699269772, + -0.07498455047607422, 0.023190937936306, -0.021147888153791428, -0.037398699671030045, + 0.033437371253967285, -0.013505952432751656, 0.002709768246859312, 0.01286652497947216, + -0.011907384730875492, 0.011681245639920235, 0.013474761508405209, -0.015798533335328102, + 0.0019416756695136428, -0.03041178733110428, 0.024890877306461334, 0.03986283391714096, + -0.013155047781765461, 0.031971365213394165, -0.036151036620140076, -0.00702590262517333, + -0.0011219220468774438, 0.02465694211423397, -0.002581103006377816, 9.716907516121864e-5, + 0.04366820678114891, -0.002540163928642869, 0.017857177183032036, 0.0019738420378416777, + 0.010534955188632011, 0.08134762942790985, 0.011073010042309761, 0.021475400775671005, + 0.06388034671545029, 0.01684345118701458, 0.023097362369298935, 0.04291960969567299, + -0.002364711370319128, 0.026855947449803352, -0.03714916855096817, 0.05146609991788864, + 0.009045557118952274, 0.018699349835515022, 0.010885859839618206, -0.06487847864627838, + -0.013981624506413937, 0.030318211764097214, -0.02428264170885086, 0.004210862796753645, + 0.059731870889663696, 0.09095463901758194, 0.0496881827712059, 0.004713826812803745, + -0.017467282712459564, 0.017124176025390625, -0.02284782938659191, -0.027089884504675865, + -0.02303497865796089, -0.00987213384360075, -0.050655119121074677, 0.007330020423978567, + -0.018169093877077103, -0.050093673169612885, -0.013357792980968952, -0.007115578278899193, + 0.03824087232351303, 0.035090524703264236, -0.03855278715491295, -0.03951972723007202, + 0.013638516888022423, -0.02573304995894432, -0.009466643445193768, -0.007793995086103678, + -0.06288222223520279, 0.039239004254341125, -0.011330340057611465, 0.026668798178434372, + -0.026746777817606926, -0.03424835205078125, 0.05364951118826866, -0.018231475725769997, + 0.011111998930573463, 0.03945734351873398, 0.0066126142628490925, -0.03080168180167675, + 0.01161106489598751, -0.030131062492728233, 0.005801633466035128, -0.021459804847836494, + -0.01868375390768051, 0.0680600181221962, -0.02298819273710251, -0.021335039287805557, + 0.016359981149435043, -0.018418626859784126, -0.019494734704494476, 0.045758042484521866, + 0.03627580404281616, 0.0035402439534664154, 0.006004378665238619, -0.011182180605828762, + -0.0221148282289505, -0.017264537513256073, -0.010215241461992264, -0.021475400775671005, + -0.002585001988336444, -0.004148479551076889, 0.010324412025511265, 0.0054975152015686035, + -0.001987488241866231, 0.034529075026512146, -0.01935437321662903, -0.06469132751226425, + 0.020024992525577545, 0.04001879319548607, 0.011470702476799488, 0.008858407847583294, + 0.025436731055378914, -0.00494386488571763, 0.010285422205924988, -0.025795433670282364, + -0.06110429763793945, -0.029429253190755844, 0.01701500453054905, 0.026497244834899902, + -0.04416727274656296, -0.027588950470089912, -0.0023140250705182552, -0.012250491417944431, + 0.032501623034477234, -0.004569565877318382, 0.029086144641041756, -1.8657070540939458e-5, + -0.035059332847595215, -0.012889918871223927, 0.02122586779296398, -0.007961650379002094, + -0.029990701004862785, 0.01954152248799801, 0.004959460813552141, -0.028119206428527832, + -0.026044966652989388, 0.012000959366559982, -0.02701190486550331, -0.015549001283943653, + -0.011267957277595997, -0.024750515818595886, -0.05892089009284973, -0.0068660457618534565, + -0.011938575655221939, -0.01403620932251215, 0.0040938942693173885, -0.058577779680490494, + 0.03156587481498718, 0.013778879307210445, -0.04585161805152893, 0.041204072535037994, + -0.003930138889700174, -0.06955721974372864, 0.04691212996840477, 0.0019445999059826136, + 0.00697131734341383, 0.014566466212272644, 0.02719905413687229, -0.004561767913401127, + 0.006148639600723982, 0.01718655787408352, 0.0003533420676831156, -0.013880251906812191, + -0.012375257909297943, -0.00693232798948884, -0.016079258173704147, 0.009568016044795513, + 0.031253959983587265, 0.01650034449994564, -0.03126955404877663, -0.004553970415145159, + 0.008811620064079762, -0.023767981678247452, -0.012461034581065178, 0.009154727682471275, + -0.002286732429638505, 0.011104200966656208, -0.025078028440475464, 0.03271996229887009, + -0.03225209191441536, -0.0050257425755262375, 0.005255780648440123, 0.0010653872741386294, + -0.021600166335701942, 0.010722104460000992, -0.022192806005477905, 0.040642622858285904, + -0.022021252661943436, -0.025421135127544403, 0.018730541691184044, -0.028524696826934814, + 0.036681294441223145, 0.017326921224594116, 0.024766111746430397, -0.008647864684462547, + -0.006316294427961111, -0.018059922382235527, 0.0035421934444457293, -0.001118997810408473, + -0.0008036704966798425, -0.0124922264367342, 0.007135073188692331, -0.008312555029988289, + -0.015720555558800697, -0.015198095701634884, -0.00018239761993754655, 0.020212141796946526, + 0.00037576103932224214, 0.001164810499176383, -0.003859957680106163, 0.010542753152549267, + 0.025811029598116875, 0.020726801827549934, 0.022223997861146927, -0.007630239240825176, + 0.0344666913151741, 0.0010634377831593156, 0.025608284398913383, -0.03080168180167675, + -0.0001477944606449455, -0.02772931195795536, 0.016812259331345558, -0.02535875141620636, + 0.0249844528734684, -0.008195586502552032, -0.039394959807395935, 0.030708108097314835, + -0.0010917051695287228, -0.018169093877077103, 0.020945142954587936, 0.016344387084245682, + -0.021054314449429512, 0.006690593436360359, -0.03808491677045822, -0.012874322943389416, + 0.02534315548837185, -0.005380547139793634, 0.002019654493778944, 0.03209613263607025, + -0.007817388512194157, 0.024329429492354393, 0.011236765421926975, -0.015798533335328102, + 0.0291485283523798, 0.011728032492101192, 0.022379957139492035, -0.039769262075424194, + -0.020617632195353508, -0.013576134108006954, 0.010807881131768227, -0.03749227523803711, + -0.025311963632702827, -0.00760294683277607, -0.0021853598300367594, -0.012078938074409962, + 0.03045857511460781, 0.019603906199336052, 0.06762333959341049, -0.013810070231556892, + -0.002298429375514388, -0.032501623034477234, -0.011634457856416702, -0.016344387084245682, + -0.0036864543799310923, 0.025467922911047935, 0.010098272934556007, -0.017436090856790543, + -0.01631319522857666, -0.022598296403884888, -0.018247071653604507, -0.022146020084619522, + -0.011790416203439236, 0.01503434032201767, -0.008211182430386543, 0.018184689804911613, + 0.005014046095311642, -0.014722424559295177, 0.008562088012695312, -0.017280133441090584, + -0.011891788803040981, -0.009661590680480003, 0.019666289910674095, -0.03711797669529915, + -0.050124865025281906, 0.0031971365679055452, 0.011774820275604725, -0.1061137467622757, + -0.024875283241271973, -0.04834694415330887, 0.05268257483839989, 0.002160016680136323, + 0.0009099167655222118, -0.002680526115000248, -0.01403620932251215, 0.011540883220732212, + 0.00924050435423851, -0.004674837458878756, -0.012827536091208458, -0.01614164002239704, + 0.010706508532166481, 0.009521229192614555, 0.028337547555565834, -0.005548201501369476, + 0.017451686784625053, -0.0344666913151741, -0.018215881660580635, 0.006027772091329098, + 0.0058874101378023624, -0.023830365389585495, -0.030692512169480324, -0.01403620932251215, + 0.0104101886972785, -0.013973826542496681, 0.0347474180161953, 0.008024033159017563, + -0.03767942637205124, 0.01632879115641117, 0.016890238970518112, -0.03247043117880821, + 0.013474761508405209, 0.0022282481659203768, -0.03192457929253578, 0.0033024081494659185, + 0.06762333959341049, 0.02320653386414051, 0.00511151971295476, -0.013334399089217186, + -0.08727402985095978, -0.011759224347770214, 0.05527147278189659, -0.0061408416368067265, + 0.012305077165365219, 0.0031425512861460447, -0.021069910377264023, -0.025124814361333847, + -0.05817228928208351, -0.031425513327121735, -0.005727553274482489, -0.014028411358594894, + 0.0027370608877390623, -0.00924050435423851, -0.0022594397887587547, -0.03189338743686676, + -0.008983174338936806, 0.015213691629469395, 0.010511561296880245, -0.017108580097556114, + 0.024688132107257843, -0.01358393207192421, 0.005275275558233261, 0.013194036670029163, + -0.030754894018173218, -0.014714626595377922, -0.004604656714946032, 0.008655662648379803, + -0.040829773992300034, -0.0042030648328363895, 0.013240824453532696, 0.0011765073286369443, + -0.02085156925022602, 0.04335629194974899, 0.019151628017425537, 0.013716495595872402, + -0.026762373745441437, 0.05835944041609764, 0.00905335508286953, -0.025608284398913383, + -0.004413607995957136, 0.018668157979846, 0.009318483993411064, 0.057517267763614655, + -0.03247043117880821, 0.004659241996705532, -0.03480979800224304, 0.015322862192988396, + -0.022411147132515907, 0.01611045002937317, -0.03183100372552872, 0.03137872740626335, + 0.000874826277140528, -0.01176702231168747, 0.00788367073982954, -0.022052444517612457, + 0.013006887398660183, 0.0011121747083961964, -0.0042186607606709, -0.008679056540131569, + -0.015198095701634884, 0.0013617072254419327, -0.0035051533486694098, -0.016437960788607597, + 0.024173472076654434, -0.0037546860985457897, -0.0006467378698289394, -0.009739569388329983, + 0.007969447411596775, -0.004803502932190895, -0.020383695140480995, -0.0024660839699208736, + 0.0013285662280395627, -0.045009445399045944, -0.007283233106136322, 0.015330660156905651, + 0.011267957277595997, 0.05134133622050285, -0.02952282689511776, 0.03621342033147812, + -0.033780477941036224, -0.009170323610305786, -0.006764673162251711, -0.004199165850877762, + -0.016079258173704147, 0.03136312961578369, 0.045945193618535995, -0.006963519379496574, + 0.007045397534966469, -0.007852479815483093, -0.008257970213890076, -0.021069910377264023, + 0.022395551204681396, -0.005856218747794628, 0.02573304995894432, -0.0007661430863663554, + -0.018403030931949615, -0.02624771185219288, -0.006312395446002483, -0.004557868931442499, + -0.01650034449994564, -0.02049286663532257, 0.009045557118952274, -0.016703089699149132, + 0.03789776563644409, 0.02389274723827839, -0.05127895250916481, 0.007871974259614944, + 0.0427948422729969, -0.04532136023044586, -0.027230245992541313, 0.04238935187458992, + 0.045570895075798035, 0.004234256688505411, -0.0063006985001266, -0.05240184813737869, + -0.011291351169347763, -0.020742397755384445, 0.012078938074409962, 0.015876512974500656, + 0.060449276119470596, -0.023050574585795403, 0.029928317293524742, 0.012796344235539436, + 0.01957271434366703, 0.01611045002937317, 0.009801953099668026, 0.019245203584432602, + 0.01593889482319355, 0.05131014436483383, -0.014176571741700172, 0.02503124065697193, + -0.04769192263484001, -0.035402439534664154, -0.002002109307795763, -0.02715226821601391, + -0.016968218609690666, -0.024516578763723373, 0.01699940860271454, 0.03767942637205124, + -0.020212141796946526, -0.018215881660580635, 0.019635098055005074, 0.012804142199456692, + -0.002598648192360997, -0.002093734685331583, -0.02194327488541603, -0.011618861928582191, + -0.008226778358221054, -0.005988782737404108, -0.004051005933433771, -0.003918441943824291, + -0.015307266265153885, -0.019151628017425537, 0.0021834103390574455, 0.0718030110001564, + 0.016593918204307556, -0.018356243148446083, 0.0023861555382609367, -0.02195887081325054, + -0.05330640450119972, -0.024391813203692436, -0.011696841567754745, 0.0021834103390574455, + -0.003688403870910406, 0.023674406111240387, 0.039956409484148026, -0.03767942637205124, + -0.002427094615995884, 0.021990060806274414, 0.04713047295808792, -0.0221148282289505, + -0.01832505129277706, 0.014784807339310646, 0.0010926799150183797, -0.02153778448700905, + 0.0024797304067760706, 0.006678896490484476, -0.05361831933259964, 0.02846231311559677, + 0.02916412428021431, 0.02029012143611908, 0.015057733282446861, -0.047036897391080856, + 0.014433901757001877, 0.02500004880130291, 0.010230837389826775, 0.011899586766958237, + 0.032158516347408295, -0.005517010111361742, 0.015868714079260826, -0.026731181889772415, + -0.043574631214141846, -0.015276074409484863, -0.00687774270772934, 0.004959460813552141, + -0.013544942252337933, -0.0030372797045856714, 0.04675617441534996, 0.027074288576841354, + 0.04660021513700485, -0.04669379070401192, 0.05361831933259964, 0.02646605297923088, + 0.018449816852808, -0.043761782348155975, -0.050623927265405655, 0.02484409138560295, + -0.03764823451638222, 0.001152138807810843, 0.030567744746804237, 0.021693741902709007, + 0.000977660994976759, 0.04603876546025276, -0.028898995369672775, -0.04978175461292267, + 0.005478020757436752, -0.026528436690568924, 0.01846541278064251, -0.02228638157248497, + 0.00296514923684299, -0.0315190888941288, 0.026200924068689346, -0.025655072182416916, + 0.0006369904731400311, 0.0031912880949676037, 0.03265758231282234, 0.028337547555565834, + 0.03714916855096817, 0.036306995898485184, -0.02665320225059986, 0.03746108338236809, + 0.02083597332239151, 0.012258289381861687, -0.013038079254329205, 0.007454786915332079, + 0.027027500793337822, 0.010527157224714756, -0.0037936754524707794, -0.017280133441090584, + 0.0025889009702950716, -0.010020294226706028, 0.02370559796690941, 0.05430453643202782, + -0.008741439320147038, 0.014254550449550152, 0.005454626865684986, 0.03515290841460228, + 0.03356213495135307, -0.040330708026885986, 0.019837843254208565, -0.017857177183032036, + -0.03222090005874634, 0.006417667027562857, 0.05611364543437958, -0.021038718521595, + 0.005154408048838377, -0.0670618936419487, 0.025623880326747894, 0.02066441997885704, + -0.006238315254449844, -0.03356213495135307, 0.0030489766504615545, -0.01203215029090643, + 0.022801043465733528, 0.022223997861146927, -0.006834854371845722, 0.016172831878066063, + -0.01977545954287052, 0.02354964055120945, 0.00941985659301281, 0.01813790202140808, + 0.004682635422796011, -0.0045188795775175095, -0.020602036267518997, -0.010550551116466522, + 0.010722104460000992, 0.05311925336718559, -0.012944504618644714, 0.0016278104158118367, + -0.0064683533273637295, -0.017061792314052582, 0.0012700819643214345, 0.006039469037204981, + -0.06843432039022446, 0.01331100519746542, 0.007189658470451832, 0.003140601795166731, + 0.01203215029090643, -0.014082997106015682, 0.025124814361333847, -0.012266087345778942, + -0.007045397534966469, 0.0016346335178241134, 0.047348812222480774, 0.01476141344755888, + -0.02935127355158329, 0.018028730526566505, 0.0052440837025642395, 0.017326921224594116, + 0.008078617975115776, 0.02774490788578987, 0.005832824856042862, 0.03917662054300308, + 0.026232115924358368, 0.02482849545776844, -0.0601685531437397, 0.03222090005874634, + 0.013303207233548164, 0.00988772977143526, 0.02573304995894432, 0.03808491677045822, + -0.002852079691365361, 0.026044966652989388, -0.018777329474687576, 0.008546492084860802, + 0.015330660156905651, -0.010807881131768227, -0.005279174540191889, 0.014660040847957134, + -0.013981624506413937, 0.02590460516512394, 0.012484428472816944, 0.021069910377264023, + -0.008686854504048824, 0.0028891197871416807, 0.00040037313010543585, 0.013022483326494694, + 0.000405734172090888, -0.01394263468682766, 0.03368690237402916, -0.03200255706906319, + 0.020009396597743034, -0.03955091908574104, 0.009630399756133556, 0.06650044023990631, + -0.037741806358098984, 0.004655343014746904, 0.013240824453532696, -0.006363081745803356, + -0.024033110588788986, 0.02935127355158329, -0.011314744129776955, -0.021147888153791428, + -0.017607644200325012, -0.028914591297507286, 0.028945783153176308, 0.017077388241887093, + 0.0166563019156456, -0.03593269735574722, -0.019978204742074013, -0.004343427252024412, + -0.013186238706111908, 0.0025148207787424326, 0.011119796894490719, 0.016437960788607597, + -0.01832505129277706, 0.006125245708972216, -0.008024033159017563, -0.006916732061654329, + -0.011213371530175209, 0.005649574100971222, 0.011283553205430508, 0.017311325296759605, + 0.011275755241513252, -0.0168746430426836, 0.0177324116230011, 0.023518448695540428, + 0.03041178733110428, 0.018714945763349533, -0.0027526565827429295, -0.030848469585180283, + -0.008218980394303799, -0.013841262087225914, -0.010846870951354504, 0.01579073630273342, + 0.01955711841583252, -0.02370559796690941, -0.0024875281378626823, -0.0003506615466903895, + -0.0293668694794178, 0.0337492860853672, -0.007669229060411453, -0.00661651324480772, + -0.002048896625638008, 0.006316294427961111, 0.014893977902829647, 0.004101692233234644, + -0.007981144823133945, 0.018886499106884003, 0.007595148868858814, 0.0016726483590900898, + -0.005973186809569597, 0.0005955641390755773, 0.0006623336230404675, 0.004382416605949402, + 0.026138540357351303, 0.009529026225209236, -0.008905194699764252, -0.009630399756133556, + 0.0009065052145160735, 0.07517170161008835, 0.004078298807144165, 0.005364951211959124, + -0.00968498457223177, -0.01241424772888422, 0.0018802672857418656, 0.0025284672155976295, + 0.005322062876075506, 0.013014685362577438, -0.0273550134152174, -0.0179507527500391, + 0.0034271744079887867, -0.0029437050689011812, -0.015478819608688354, 0.03696201741695404, + -0.001530336681753397, -0.06462894380092621, -0.017638836055994034, -0.004861987195909023, + 0.027074288576841354, 0.015361851081252098, 0.017295729368925095, 0.021631358191370964, + 0.005864016246050596, 0.027417395263910294, -0.0050257425755262375, 0.01595449075102806, + 0.023596428334712982, 0.007177961524575949, 0.003263418795540929, -0.0019104840466752648, + 0.0011297198943793774, -0.016983812674880028, 0.014847190119326115, -0.0034232756588608027, + -0.04890839383006096, 0.022177211940288544, 0.0030801682732999325, 0.037772998213768005, + -0.033967625349760056, -0.014901775866746902, -0.002690273569896817, -0.004904875531792641, + 0.04915792495012283, 0.01441830676048994, -0.020960738882422447, -0.047910261899232864, + -0.029663190245628357, 0.004437001887708902, 0.01342017576098442, 0.027760503813624382, + 0.020180949941277504, -0.008320352993905544, 0.021475400775671005, -0.028181590139865875, + -0.012468832544982433, -0.0016463304636999965, 0.009256100282073021, 0.0006028746720403433, + -0.01449628546833992, -2.499285983503796e-5, -0.032501623034477234, -0.016968218609690666, + -0.013318803161382675, 0.001906585181131959, -0.012094534002244473, 0.006027772091329098, + 0.02085156925022602, -0.00057655677665025, 0.006370879709720612, -0.025280773639678955, + -0.008226778358221054, -0.02153778448700905, -0.01186059694737196, -0.006218820810317993, + 0.014652242884039879, -0.011002828367054462, -0.029117336496710777, 0.023487256839871407, + 0.004826896358281374, 0.00018337235087528825, -0.013966028578579426, -0.02571745589375496, + -0.012188108637928963, -0.013646314851939678, 0.003702050307765603, 0.023284511640667915, + 0.00747428135946393, 0.013669708743691444, 0.021085506305098534, -0.02534315548837185, + 0.007201355416327715, 0.005540404003113508, 0.029663190245628357, 0.005364951211959124, + -0.039207812398672104, -0.0146834347397089, 0.024890877306461334, -0.0572989247739315, + 0.017981944605708122, 0.036525335162878036, -0.007037599571049213, -0.01575174555182457, + 0.012461034581065178, 0.026731181889772415, 0.004491587169468403, -0.00435122475028038, + -0.0020274524576961994, -0.03880232200026512, 0.01321743056178093, 0.0020469471346586943, + -0.01941675692796707, 0.01514351088553667, -0.01830945536494255, 0.02610735036432743, + -0.010215241461992264, 0.0325951986014843, 0.011299148201942444, -0.005727553274482489, + -0.023596428334712982, 0.006912833079695702, -0.028555888682603836, -0.027604544535279274, + -0.019884631037712097, -0.0002941268321592361, 0.0043122353963553905, -0.012655981816351414, + -0.016016874462366104, -0.00246413447894156, 0.035433631390333176, -0.0492515005171299, + 0.05854658782482147, -0.03752346709370613, -0.03334379568696022, 0.01133813802152872, + -0.006678896490484476, -0.03393643721938133, -0.0002990005013998598, 0.011439510621130466, + 0.0315190888941288, -0.0030002398416399956, 0.008507502265274525, -0.01550221350044012, + -0.020726801827549934, 0.010028092190623283, 0.009716176427900791, 0.027245841920375824, + 0.02030571736395359, 0.026871543377637863, 0.05449168384075165, -0.035995081067085266, + 0.016734281554818153, -0.03718036040663719, -0.014745817519724369, 0.028680654242634773, + -0.0018890398787334561, -0.018808521330356598, -0.018449816852808, -0.01529946830123663, + 0.002746808109804988, 0.02375238575041294, 0.016406768932938576, -0.023190937936306, + 0.00018982998153660446, -0.03368690237402916, 0.00715456809848547, 0.027479778975248337, + 0.009529026225209236, 0.009552420116961002, -0.010074879042804241, 0.005953692365437746, + -0.002612294629216194, -0.0002709768305066973, -0.0052440837025642395, 0.04036189988255501, + -0.054429300129413605, 0.001353909377939999, 0.007661431096494198, 0.02950723096728325, + 0.012055544182658195, 0.04132883995771408, -0.032314471900463104, 0.021849699318408966, + -0.008086415939033031, 0.02684035152196884, 0.03530886396765709, 0.015595788136124611, + 0.010456976480782032, -0.008468513377010822, 0.006558028981089592, 0.02592020109295845, + 0.020742397755384445, -0.003953532315790653, 0.003072370309382677, -0.05611364543437958, + -0.009521229192614555, 0.031020022928714752, -0.015798533335328102, 0.02863386832177639, + -0.01204774621874094, 0.01899567060172558, -0.01865256205201149, -0.02538994327187538, + 0.026372477412223816, 0.03243923932313919, 0.020336907356977463, 0.02935127355158329, + -0.007758904714137316, 0.00665550259873271, -0.03353094682097435, 0.0025674565695226192, + 0.002142471494153142, -0.01412978395819664, 0.003436921862885356, 0.03041178733110428, + -0.022567106410861015, 0.0034759112168103456, 0.008429523557424545, -0.014301338233053684, + -0.005364951211959124, -0.010932647623121738, -0.03421716019511223, 0.02953842282295227, + -0.040330708026885986, 0.013170643709599972, -0.07267637550830841, -0.015814129263162613, + -0.010402390733361244, -0.020399291068315506, -0.015712756663560867, 0.003703999798744917, + -0.00013012735871598125, 0.010995030403137207, 0.015346256084740162, -0.015346256084740162, + 0.020695611834526062, -0.022567106410861015, -0.010191847570240498, 0.012523418292403221, + -0.007427494041621685, -0.03140991926193237, 0.014644444920122623, -0.03206494078040123, + 0.012188108637928963, 0.01904245838522911, -0.023268915712833405, 0.01813790202140808, + -0.022567106410861015, 0.027292629703879356, 0.0058133299462497234, -0.03024023398756981, + 0.0134981544688344, 0.02426704578101635, -0.005021844059228897, 0.017514070495963097, + 0.005988782737404108, -0.010394592769443989, -0.0002485578879714012, -0.013131653890013695, + 0.012086736038327217, -0.033250220119953156, 0.002836483996361494, -0.021880891174077988, + 0.0009172272984869778, -0.03337498754262924, -0.016219619661569595, -0.0028910692781209946, + 0.001152138807810843, 0.018200285732746124, 0.01358393207192421, -0.008484109304845333, + 0.004655343014746904, 0.008912992663681507, -0.013342197053134441, 0.023596428334712982, + 0.00034676259383559227, 0.025265177711844444, 0.009357472881674767, -0.02426704578101635, + -0.0024524377658963203, -0.004635848104953766, 0.009232706390321255, -0.013459165580570698, + -0.022036848589777946, 0.005450727883726358, -0.038116104900836945, 0.009287292137742043, + -0.012102331966161728, 0.007415797561407089, 0.003327751299366355, 0.016437960788607597, + 0.011353733949363232, 0.006791966035962105, -0.019136032089591026, 0.014738019555807114, + 0.06063642352819443, -0.023799173533916473, -0.029429253190755844, 0.03247043117880821, + 0.013264218345284462, 0.018590180203318596, 0.008897397667169571, -0.018980074673891068, + 0.00687774270772934, -0.06066761538386345, 0.010215241461992264, -0.02428264170885086, + 0.008616672828793526, -0.023112958297133446, 0.01941675692796707, -0.03337498754262924, + -0.0018383535789325833, 0.0022438440937548876, 0.01990022510290146, 0.02878982573747635, + -0.022161616012454033, 0.02116348408162594, 0.005041338503360748, -0.002095684176310897, + 0.005754845682531595, 0.016625110059976578, -0.006955721415579319, 0.005489717703312635, + 0.037960149347782135, 0.013880251906812191, -0.008710247464478016, 0.019089244306087494, + -0.029304485768079758, 0.027448587119579315, -0.007177961524575949, 0.017514070495963097, + 0.0003794162767007947, 0.020243333652615547, -0.026029370725154877, 0.036899633705616, + 0.015291670337319374, -0.03148789703845978, 0.07417356967926025, 0.012125725857913494, + 0.02808801457285881, -0.03237685561180115, -0.035433631390333176, -0.00022223997802939266, + 0.016375577077269554, 0.005131014157086611, 0.05839063227176666, -0.004390214569866657, + 0.01955711841583252, 0.027479778975248337, 0.014566466212272644, -0.0004946789122186601, + 0.023315703496336937, -0.0027507070917636156, -0.020383695140480995, -0.03980045020580292, + 0.0024348923470824957, 0.0062500122003257275, -0.004932167939841747, -0.011743628419935703, + -0.0020469471346586943, -0.00013938735355623066, -0.03674367815256119, -0.0039008965250104666, + -0.01611045002937317, 0.029429253190755844, 0.01958831027150154, -0.007704319432377815, + -0.005255780648440123, -0.0016960420180112123, 0.03602627292275429, 0.010566147044301033, + 0.015330660156905651, 0.028119206428527832, 0.0022613892797380686, -0.011455106548964977, + 0.05995021015405655, -0.0033667408861219883, -0.012344066053628922, 0.01830945536494255, + -0.01612604595720768, 0.024235855787992477, -0.01990022510290146, -0.04254531115293503, + 0.000646250497084111, -0.029850339516997337, -0.04578923434019089, -0.008749237284064293, + -0.008920790627598763, -0.006951822433620691, 0.03349975496530533, 0.004136783070862293, + 0.007224748842418194, -0.014558668248355389, -0.02227078564465046, -0.0014270145911723375, + -0.006842652335762978, 0.00457346485927701, 0.041422415524721146, -0.0017291830154135823, + -0.0060082776471972466, 0.007782298605889082, -0.013342197053134441, 0.016204023733735085, + -0.03117598034441471, 0.01651594042778015, -0.04441680386662483, -0.008429523557424545, + 0.009380866773426533, 0.037617042660713196, 0.02046167477965355, -0.018917690962553024, + 0.025655072182416916, 0.006269507110118866, -0.018730541691184044, 0.009731772355735302, + 0.007053195498883724, -0.009107940830290318, -0.008616672828793526, -0.006292900536209345, + 0.007903166115283966, 0.03042738325893879, 0.0001505968248238787, 0.018527796491980553, + 0.015042138285934925, -0.013381186872720718, -0.018247071653604507, -0.03346856310963631, + 0.024048706516623497, -0.0066477046348154545, -0.010043688118457794, 0.0018978124717250466, + 0.01975986361503601, -0.018184689804911613, 0.002298429375514388, 0.0252027940005064, + -0.0004084146930836141, -0.039239004254341125, 0.016952622681856155, 0.02808801457285881, + -0.012445438653230667, -0.0017759704496711493, 0.015065531246364117, -0.008951982483267784, + -0.04778549447655678, -0.001624886179342866, -0.003988622687757015, 0.021631358191370964, + -0.010901455767452717, 0.007505473215132952, -0.007704319432377815, -0.010480369441211224, + ], + index: 34, + }, + { + title: "Heather McKay", + text: "Heather Pamela McKay (n\u00e9e Blundell) AM MBE (born 31 July 1941) is a retired Australian squash player, who is considered by many to be the greatest female player in the history of the game, and possibly also Australia's greatest-ever sportswoman. She dominated the women's squash game in the 1960s and 1970s, winning 16 consecutive British Open titles between 1962 and 1977, and capturing the inaugural women's World Open title in 1979, whilst remaining undefeated during that period.", + vector: [ + 0.0002245446521556005, 0.015260408632457256, -0.020244965329766273, 0.042084988206624985, + -0.028726378455758095, -0.008067311719059944, 0.016702095046639442, -0.04285184293985367, + 0.021211201325058937, 0.03659430891275406, -0.05475342646241188, 0.037023745477199554, + -0.014378526248037815, 0.007208434399217367, -0.005705398973077536, 0.006798167247325182, + 0.000541111861821264, 0.03288273140788078, -0.03996846824884415, -0.045183081179857254, + 0.03177845850586891, 0.0047391620464622974, -0.002509532030671835, -0.07214569300413132, + 0.034385766834020615, 0.03269868344068527, 0.004585791379213333, -0.010651611723005772, + 0.00537948589771986, -0.03613419458270073, -0.025474913418293, 0.038864195346832275, + -0.0382813885807991, 0.009493661113083363, -0.006675470154732466, 0.0014541482087224722, + -0.05487612262368202, 0.003623388474807143, 0.022530192509293556, -0.02849632129073143, + 0.034447114914655685, 0.012292681261897087, -0.0063342200592160225, 0.013995098881423473, + 0.007035891991108656, -0.009094896726310253, -0.010966022498905659, 0.017422938719391823, + 0.008466076105833054, -0.031210986897349358, 0.05760612711310387, 0.023312384262681007, + -0.041900940239429474, 0.031026942655444145, -0.021870696917176247, -0.0606735460460186, + 0.01769900694489479, 0.07668547332286835, 0.03447778895497322, -0.009094896726310253, + -0.02401788905262947, -0.06680838018655777, 0.002170198829844594, 0.025290869176387787, + 0.027530085295438766, -0.08171603828668594, -0.01789838820695877, 0.015214397571980953, + -0.039845772087574005, 0.003550537396222353, -0.012591754086315632, -0.004420917481184006, + 0.00569389620795846, -0.019401423633098602, 0.01717754639685154, -0.017070185393095016, + 0.0224381685256958, 0.014117795042693615, -0.04515240713953972, 0.022744910791516304, + -0.0049883900210261345, -0.04036723077297211, -0.0341096967458725, 0.03361891210079193, + 0.0121086360886693, -0.028480984270572662, 0.016763444989919662, -0.06686972826719284, + -0.004815847612917423, 0.023665135726332664, -0.03549003601074219, 0.06042814999818802, + 0.05506017059087753, 0.04073532298207283, -0.006510596722364426, -0.009961443021893501, + -0.017745018005371094, -0.00493470998480916, 0.005072744097560644, -0.01593524031341076, + -0.03506059944629669, -0.01250740047544241, 0.03745318576693535, 0.012093299068510532, + 0.0024347638245671988, 0.009102565236389637, -0.029186490923166275, 0.006591116078197956, + -5.056448208051734e-5, -3.447850758675486e-5, 0.03631823882460594, -0.0038266051560640335, + -0.02717733196914196, -0.020505694672465324, -0.054600056260824203, -0.0035965486895292997, + -0.02329704724252224, 0.05996803939342499, -0.002547874813899398, -0.02191670797765255, + -0.011395460925996304, -0.006418574135750532, 0.01453956589102745, 0.008872509002685547, + 0.02999935671687126, -0.01723889447748661, -0.024600699543952942, 0.021701987832784653, + -0.0011799976928159595, -0.0073618050664663315, 0.01730024255812168, 0.03969240188598633, + 0.003968473058193922, 0.013251249678432941, -0.02671721763908863, 0.008542761206626892, + 0.03377228230237961, 0.007265948224812746, 0.0463486984372139, 0.04321993142366409, + 0.025474913418293, -0.005789753049612045, 0.03177845850586891, -0.002463520737364888, + -0.0367170050740242, -0.008473744615912437, 0.0211805272847414, -0.002992650493979454, + -0.021686650812625885, -0.008466076105833054, 0.028266264125704765, 0.03180913254618645, + 0.05027499422430992, -0.06852613389492035, 0.026502499356865883, 0.01901799626648426, + -0.0459192618727684, -0.0021011820062994957, 0.014332514256238937, 0.0535571351647377, + -0.04579656198620796, -0.004340397659689188, -0.004696985241025686, -0.023450417444109917, + -0.035305991768836975, 0.02033698745071888, -0.0321158766746521, 0.005187772214412689, + -0.018389176577329636, 0.018711255863308907, -0.04481498897075653, 0.01490765530616045, + 0.022882943972945213, 0.029631266370415688, -0.029385872185230255, 0.0056593879126012325, + 0.024524014443159103, -0.01869591884315014, 0.012530406005680561, 0.0017484287964180112, + -0.03395632654428482, 0.0058971126563847065, -0.02323569729924202, -0.015590156428515911, + -0.026962611824274063, 0.005329640116542578, 0.03015272691845894, -0.010122482664883137, + -0.027806151658296585, 0.0021050162613391876, 0.014225155115127563, -0.051900725811719894, + -0.021011820062994957, -0.0011723291827365756, 0.008910851553082466, -0.03133368492126465, + 0.00769922137260437, 0.022668225690722466, -0.015137712471187115, -0.006253700237721205, + -0.0028565337415784597, -0.051839377731084824, -0.009930768981575966, -0.010237510316073895, + 0.027422724291682243, 0.015781870111823082, 0.038986895233392715, -0.0209197960793972, + -0.003552454523742199, 0.030459469184279442, -0.022223450243473053, 0.013995098881423473, + 0.008757480420172215, -0.03226924687623978, -0.021287886425852776, 0.011395460925996304, + -0.017392264679074287, -0.002465437864884734, -0.009156245738267899, -0.011441471986472607, + -0.008243688382208347, -0.015229734592139721, -0.0473916232585907, 0.020168278366327286, + 0.029984019696712494, 0.07251378148794174, -0.04552049562335014, 0.017929064109921455, + -0.002869953867048025, 0.00039109590579755604, -0.013151558116078377, 0.01960080675780773, + 0.031686436384916306, 0.03389497846364975, 0.023450417444109917, -0.002657151548191905, + 0.008596441708505154, 0.0028546166140586138, 0.03969240188598633, -0.00374416820704937, + 0.03079688549041748, -0.021149853244423866, 0.015781870111823082, -0.020766425877809525, + -0.012169984169304371, 0.00015984127821866423, 0.005279794801026583, -0.04576588794589043, + -0.03533666580915451, -0.04539779946208, 0.04275982081890106, -0.003038661787286401, + 0.026287779211997986, 0.04404813423752785, 0.010582595132291317, 0.007081903517246246, + 0.05521354079246521, -0.06410905718803406, 0.028189579024910927, 0.014401531778275967, + -0.017131533473730087, -0.012898496352136135, -0.010513578541576862, 0.032146550714969635, + -0.00314218713901937, -0.028649691492319107, -0.02059771679341793, 0.01463925652205944, + -0.037085093557834625, -0.011433803476393223, -0.022606877610087395, -0.01849653571844101, + -0.030750874429941177, 0.04125678539276123, 0.00917925126850605, 0.00681350426748395, + -0.06417040526866913, -0.023113001137971878, -0.004443923011422157, -0.013542653992772102, + -0.021287886425852776, -0.02271423675119877, 0.010897005908191204, 0.005091915372759104, + -0.025183508172631264, 0.023527102544903755, 0.039232287555933, 0.00409500440582633, + 0.010383212938904762, -0.021548617631196976, 0.01756097376346588, 0.01408712100237608, + 0.039324309676885605, 0.0020321649499237537, 0.051563311368227005, 0.029370535165071487, + -0.03196250647306442, -0.020122267305850983, 0.04429353028535843, 0.01043689250946045, + 0.03585812821984291, 0.05567365139722824, -0.04693150892853737, 0.020613055676221848, + -0.06453849375247955, -0.020505694672465324, -0.04009116441011429, 0.036164868623018265, + 0.0032303754705935717, -0.024339968338608742, 0.005153263919055462, 0.0027089142240583897, + -0.02771412953734398, 0.023772496730089188, -0.00016259716358035803, 0.048127803951501846, + 0.01651805080473423, 0.057422082871198654, -0.03239194303750992, -0.046164654195308685, + 0.029339861124753952, 0.02263755165040493, 0.010076470673084259, 0.007572690490633249, + 0.004624133929610252, -0.04693150892853737, 0.03190115466713905, -0.007139417342841625, + -0.00224688439629972, 0.023404406383633614, 0.0036387257277965546, -0.03245329111814499, + 0.017131533473730087, -0.04067397490143776, 0.05944657698273659, -0.004773670807480812, + -0.028066882863640785, 0.0489560067653656, -0.04036723077297211, 0.038465432822704315, + -0.048403870314359665, -0.008197677321732044, 0.007354136556386948, 0.05226881802082062, + -0.013619340024888515, 0.005636382382363081, 0.01618063449859619, -0.038404084742069244, + 0.01723889447748661, 0.02383384481072426, 0.0007194055942818522, 0.01250740047544241, + 0.022070078179240227, 0.03573542833328247, -0.006690807640552521, 0.023941203951835632, + 0.021088505163788795, -0.022806258872151375, 0.0027875169180333614, -0.043066561222076416, + 0.06009073555469513, -0.02593502588570118, 0.02276024781167507, -0.009608689695596695, + 0.043066561222076416, -0.005724570248275995, 0.0025612947065383196, -0.029232501983642578, + 0.009332621470093727, -0.04275982081890106, -0.0009000957361422479, -0.03521396964788437, + -0.011602511629462242, -0.011556500568985939, -0.0054063256829977036, -0.024861430749297142, + -0.06061219796538353, -0.03493789955973625, -0.01776035502552986, 0.004286718089133501, + -0.06269804388284683, 0.0703052431344986, -0.01671743206679821, -0.02861901745200157, + -0.0067023104056715965, -0.0112190842628479, 0.06441579759120941, -0.026088397949934006, + 0.03665565699338913, -0.017192883417010307, 0.0021491104271262884, 0.03960037603974342, + 0.031747784465551376, -0.008596441708505154, 0.008136328309774399, -0.010935348458588123, + 0.038465432822704315, 0.030551491305232048, -0.01250740047544241, -0.018588557839393616, + -0.011403129436075687, -0.014125463552772999, -0.023971877992153168, -0.029600592330098152, + -0.006234528962522745, -0.0272540170699358, 0.0489560067653656, -0.02059771679341793, + -0.011686866171658039, -0.0031920326873660088, 0.03598082438111305, 0.05429331585764885, + -0.03407902270555496, -0.028526995331048965, -0.03361891210079193, 0.0054753427393734455, + -4.978564538760111e-5, 0.018741929903626442, -0.008696132339537144, -0.011663860641419888, + -0.01193992793560028, -0.006717647425830364, 0.049661509692668915, -0.01355799101293087, + 0.0008694215212017298, 0.04125678539276123, -0.03276003524661064, 0.017468949779868126, + 0.030030030757188797, 0.07472232729196548, -0.028189579024910927, -0.048005104064941406, + -0.010490572080016136, 0.016732769086956978, 0.018910637125372887, -0.07257512956857681, + -0.02863435447216034, 0.0072429426945745945, 0.0381893664598465, 0.021149853244423866, + -0.014593245461583138, 0.01237703487277031, -0.035704754292964935, -0.011525826528668404, + -0.021809348836541176, 0.024401316419243813, 0.007227605674415827, 0.008949194103479385, + -0.009439981542527676, 0.012400040403008461, -0.020521031692624092, 0.022913619875907898, + 0.030612841248512268, 0.032483965158462524, 0.02993800863623619, -0.013903075829148293, + 0.036103520542383194, 0.061900511384010315, -0.05447736009955406, -0.012215995229780674, + -0.039232287555933, 0.04291319102048874, 0.037085093557834625, -0.019922886043787003, + 0.010950685478746891, -0.02633379027247429, 0.016625409945845604, 0.002549791941419244, + -0.03407902270555496, -0.028726378455758095, 0.0912250354886055, 0.01771434396505356, + -0.07294321805238724, -0.0005166683695279062, 0.026609858497977257, 0.036103520542383194, + 0.05720736086368561, -0.02935519814491272, 0.0677899569272995, 0.016088612377643585, + 0.02841963618993759, 0.008619447238743305, -0.022622214630246162, 0.05033634230494499, + 0.04180891811847687, -0.05082713067531586, -0.017330916598439217, -0.03288273140788078, + -0.014133132062852383, -0.003690488403663039, 0.008527424186468124, 0.029907334595918655, + 0.03139503300189972, 0.025520924478769302, 0.02137991040945053, 0.010521247051656246, + 0.0033185638021677732, -0.03447778895497322, -0.001231760368682444, -0.00040619337232783437, + 0.02225412428379059, -0.005460005719214678, -0.006361059844493866, 0.028051545843482018, + 0.04463094472885132, -0.015283414162695408, -0.012630097568035126, 0.01085866242647171, + -0.04321993142366409, 0.011334112845361233, 0.060918938368558884, 0.08926188945770264, + -0.024600699543952942, -0.008665458299219608, 0.009662369266152382, -0.01815911941230297, + 0.020689740777015686, 0.02329704724252224, 0.02587367780506611, -0.024462666362524033, + -0.011042707599699497, 0.02665586955845356, 0.03349621221423149, 0.04456959664821625, + 0.023726485669612885, -0.009654700756072998, -0.016027264297008514, 0.014792627654969692, + 0.007936946116387844, 0.013044198974967003, 0.03141037002205849, 0.014018104411661625, + -0.0021050162613391876, 0.001081265159882605, 0.02567429654300213, 0.01711619645357132, + -0.015352431684732437, -0.010605600662529469, 0.014110126532614231, -0.0058434330858290195, + 0.030106715857982635, 0.005260623525828123, -0.02631845325231552, -0.07963019609451294, + 0.016027264297008514, 0.00041026726830750704, -0.0011704120552167296, 0.0015816378872841597, + 0.019508784636855125, 0.001944935298524797, -0.01372669916599989, -0.03190115466713905, + -0.03475385531783104, 0.006456916686147451, 0.02389519289135933, -0.019984234124422073, + -0.01372669916599989, -4.6730208850931376e-5, 0.02157929167151451, -0.011755882762372494, + -0.014209818094968796, -0.02841963618993759, 0.043588023632764816, 0.010574926622211933, + 0.0015624664956703782, 0.011081051081418991, -0.0031939498148858547, 0.01395675539970398, + -0.019570132717490196, 0.006410905625671148, -0.010751303285360336, -0.01463925652205944, + 0.06478388607501984, -0.0034949404653161764, -0.0016247734893113375, 0.007752901408821344, + -0.03757588192820549, -0.013074873015284538, -0.008903183043003082, 0.0029696449637413025, + 0.028526995331048965, 0.017208220437169075, 0.02067440375685692, 0.01328959222882986, + 0.02435530535876751, -0.018082434311509132, 0.03947767987847328, 0.008696132339537144, + -0.0041985297575592995, -0.024125250056385994, -0.006598785053938627, -0.03607284650206566, + -0.01543678529560566, -0.029462559148669243, -0.009439981542527676, -0.00044956858619116247, + -0.02263755165040493, 0.0017436358612030745, -0.019861537963151932, 0.015505802817642689, + 0.016962826251983643, 0.026609858497977257, -0.011418466456234455, -0.0133662773296237, + -0.02401788905262947, -0.00432506063953042, -0.015306420624256134, 0.03591947630047798, + 0.005433165468275547, -0.0300760418176651, 0.01408712100237608, -0.04410948231816292, + -0.0047391620464622974, -0.023711148649454117, 0.03171711042523384, -0.020628392696380615, + 0.0006556607550010085, -0.016748106107115746, 0.028910422697663307, -0.038465432822704315, + 0.02757609635591507, -0.020290976390242577, -0.013212907128036022, -0.020827773958444595, + 0.010935348458588123, -0.005682393442839384, -0.04861858859658241, -0.010751303285360336, + -0.016763444989919662, 0.019462773576378822, -0.009992117062211037, -0.0020992648787796497, + 0.039232287555933, -0.0356740802526474, -0.002682074438780546, -0.00822835136204958, + 0.02387985587120056, -0.020950470119714737, -0.010206836275756359, 0.01638001762330532, + 0.04343464970588684, 0.02837362512946129, 0.01227734424173832, -0.05174735561013222, + -0.010897005908191204, -0.018925974145531654, -0.0032821381464600563, -0.011341781355440617, + 0.0208737850189209, -0.01079731434583664, -0.025981036946177483, -0.011832567863166332, + 0.016487376764416695, 0.0020896790083497763, -0.022683562710881233, -0.0054063256829977036, + 0.012806474231183529, -0.07355670630931854, 0.017453612759709358, -0.02743806131184101, + 0.01889530010521412, -0.014194481074810028, 0.004815847612917423, 0.03383363038301468, + 0.0438334159553051, 0.03196250647306442, -0.02961592935025692, 0.019784850999712944, + 0.05088847875595093, -0.0004030780110042542, 0.016870804131031036, -0.035367339849472046, + -0.016794119030237198, 0.0040106503292918205, -0.0015078281285241246, -0.03177845850586891, + -0.03837341070175171, 0.011272764764726162, 0.011058044619858265, -0.0180977713316679, + 0.01591990329325199, -0.049906905740499496, -0.013320266269147396, 0.017085522413253784, + 0.019861537963151932, -0.0300760418176651, -0.02751474641263485, 0.04683948680758476, + 0.0014100541593506932, 0.005751410499215126, 0.02731536515057087, -0.0030942587181925774, + -0.010206836275756359, 0.03739183768630028, 0.0043135578744113445, 0.044845663011074066, + -0.015950577333569527, -0.019830863922834396, -0.003859196323901415, -0.035888802260160446, + -0.007959951646625996, 0.04325060546398163, 0.06226860359311104, 0.025551598519086838, + -0.01861923187971115, 0.018527209758758545, 0.0027606768999248743, -0.007219937164336443, + -0.005130257923156023, -0.008995206095278263, 0.044385552406311035, 0.019232716411352158, + -0.04613398015499115, -0.0015135795110836625, -0.011870911344885826, -0.058986466377973557, + -0.020904459059238434, -0.016686758026480675, 0.015950577333569527, 0.023373732343316078, + 0.007557353470474482, -0.021165190264582634, 0.01098902802914381, -0.006640961859375238, + 0.02771412953734398, 0.04677813872694969, -0.015222066082060337, -0.01056725811213255, + 0.04223835840821266, 0.010605600662529469, -0.01743827573955059, -0.006058152299374342, + -0.006157843396067619, 0.006966874934732914, 0.012031950987875462, 0.030306098982691765, + 0.04159419983625412, -0.006537436507642269, 0.02461603656411171, 0.04555116966366768, + -0.026640532538294792, -0.013642345555126667, -0.0033166466746479273, -0.03371093422174454, + 0.003481520339846611, 0.026425814256072044, 0.06205388531088829, -0.05515219271183014, + 0.01351964846253395, -0.04229970648884773, 0.01191692240536213, -0.007093406282365322, + 0.05033634230494499, -0.02237682044506073, -0.013389283791184425, -0.012614760547876358, + -0.0012518903240561485, -0.04355734959244728, 0.00168228754773736, -0.03987644612789154, + -0.01638001762330532, 0.020290976390242577, -0.002668654313310981, 0.0029102135449647903, + 0.02019895240664482, -0.0127374567091465, -0.018281815573573112, -0.024002552032470703, + 0.0136270085349679, -0.01929406449198723, -0.01644136570394039, -0.016625409945845604, + 0.003356906585395336, 0.0028622851241379976, 0.03665565699338913, -0.028941096737980843, + -0.013903075829148293, -0.008182340301573277, 0.01651805080473423, -0.0017225474584847689, + -0.05855702608823776, -0.01003812812268734, -0.03171711042523384, 0.005536691285669804, + 0.010912342928349972, 0.023542439565062523, 0.018711255863308907, -0.004474597051739693, + -0.0372384637594223, -0.008143996819853783, 0.011702203191816807, 0.032729361206293106, + 0.00506507558748126, 0.017867714166641235, -0.022744910791516304, -0.0011761634377762675, + -0.012653103098273277, -0.031180312857031822, 0.03843475878238678, -0.0007275533862411976, + -0.04723824933171272, 0.038342736661434174, -0.017791029065847397, 0.019125357270240784, + 0.0017263817135244608, -0.08748278766870499, 0.04364937171339989, 0.0004124240658711642, + -0.04914005100727081, 0.016103949397802353, 0.02975396253168583, -0.010068802163004875, + 0.01749962382018566, -0.008335710503160954, -0.02915581688284874, -0.015482796356081963, + -0.01802108623087406, -0.049661509692668915, -0.005375651642680168, -0.006188517436385155, + 0.015551813878118992, 0.018910637125372887, -0.02783682569861412, 0.0011454892810434103, + 0.01180956233292818, -0.021686650812625885, 0.012315686792135239, -0.0331587977707386, + -0.011019702069461346, -0.013404620811343193, -0.007208434399217367, -0.048005104064941406, + -0.0024462665896862745, -0.011188410222530365, -0.01723889447748661, 0.015229734592139721, + -0.01802108623087406, 0.002398338168859482, -0.010897005908191204, 0.02363446168601513, + -0.016548724845051765, -0.024370642378926277, -0.047023531049489975, -0.02685525268316269, + 0.0025191176682710648, -0.0024501008447259665, 0.02559760957956314, -0.05177802965044975, + -0.009232930839061737, -0.02357311360538006, 0.046624768525362015, -0.0027491741348057985, + -0.0016525719547644258, -0.011510489508509636, 0.005095749627798796, -0.017929064109921455, + 0.0229596309363842, -0.014554902911186218, 0.015022683888673782, 0.04303588718175888, + -0.014915323816239834, -0.005839598830789328, 0.015505802817642689, -0.009171582758426666, + 0.008734474889934063, -0.004930875729769468, -0.01633400470018387, -0.04180891811847687, + 0.017867714166641235, -0.05598039552569389, 0.019769513979554176, 0.007350302301347256, + 0.033802956342697144, -0.0065681105479598045, -0.038986895233392715, 0.04877195879817009, + -0.01843518763780594, 0.029002444818615913, 0.03711576759815216, 0.06294343620538712, + -0.031287673860788345, 0.018143782392144203, -0.02883373759686947, 0.052422188222408295, + 0.01849653571844101, 0.027208006009459496, 0.009923100471496582, -0.012392371892929077, + -0.007772072684019804, 0.036747679114341736, -0.00963936373591423, 0.037943970412015915, + 0.004355734679847956, -0.020091593265533447, -0.002386835403740406, -0.005736073479056358, + -0.007396313827484846, 0.0060313125140964985, 0.010084139183163643, -0.01056725811213255, + 0.012814142741262913, 0.0005679517635144293, -0.004305889364331961, -0.01889530010521412, + -0.004236872307956219, -0.04690083488821983, 0.03322014585137367, -0.040428582578897476, + -0.0017167959595099092, -0.013304929248988628, -0.01743827573955059, 0.025766318663954735, + -0.007580359000712633, 0.028051545843482018, 0.0007534347823821008, 0.025582272559404373, + 0.02593502588570118, -0.03555138409137726, -0.0030750874429941177, -0.014961335808038712, + 0.0010573009494692087, 0.015045689418911934, -0.020613055676221848, -0.00858877319842577, + -0.021962719038128853, -0.021794011816382408, -0.057882193475961685, -0.019708165898919106, + 0.06125635653734207, -0.011533495038747787, -0.012706782668828964, 0.036164868623018265, + 0.048526566475629807, -0.012599422596395016, 0.012821811251342297, 0.007078069262206554, + -0.039232287555933, -0.0033530723303556442, -0.021149853244423866, -0.025244858115911484, + 0.04285184293985367, -0.02039833553135395, 0.010720629245042801, 0.013811053708195686, + -0.0315944142639637, -0.02659452147781849, 0.03199318051338196, 0.01563616842031479, + 0.010444561019539833, -0.035766102373600006, 0.05699264258146286, -0.026824578642845154, + 0.033925652503967285, -0.017208220437169075, 0.04187026619911194, 0.00769922137260437, + 0.005774416029453278, 0.028143567964434624, -0.012515068985521793, -0.00763403857126832, + -0.017683669924736023, -0.022146765142679214, -0.06186983734369278, 0.019846200942993164, + -0.057544779032468796, 0.020382998511195183, -0.009117902256548405, 0.0027165827341377735, + -0.02513749711215496, -0.02723868004977703, 0.0504283644258976, 0.0038649477064609528, + -0.007806580979377031, -0.0020359992049634457, -0.013281923718750477, 0.013834059238433838, + 0.028465647250413895, -0.017024174332618713, 0.04969218745827675, 0.02579699270427227, + -0.018327828496694565, 0.01556715089827776, 0.006855681072920561, -0.006587281823158264, + -0.01125742681324482, -0.023803170770406723, -0.0443548783659935, 0.053802527487277985, + -0.0032418782357126474, 0.009884756989777088, -0.03039812110364437, -0.012990518473088741, + 0.0038266051560640335, -0.03868015110492706, -0.0165793988853693, 0.026073060929775238, + 0.008680795319378376, -0.017622321844100952, 0.00044549466110765934, -0.024385979399085045, + 0.028588343411684036, 0.02343508042395115, -0.0044362545013427734, -0.02961592935025692, + -0.01062860619276762, 0.035582058131694794, 0.0030808388255536556, 0.056164439767599106, + 0.026548510417342186, 0.005851101595908403, -0.005134092178195715, 0.03233059495687485, + 0.017024174332618713, 0.011870911344885826, 0.045183081179857254, -0.04073532298207283, + -0.011932259425520897, -0.010283521376550198, -0.008665458299219608, 0.03141037002205849, + 0.012354029342532158, 0.008481413125991821, 0.009524335153400898, 0.024968789890408516, + -0.007591861765831709, 0.014324845746159554, 0.015022683888673782, -0.011817230843007565, + 0.023465754464268684, -0.004842687398195267, 0.015199060551822186, -0.019002659246325493, + 0.0025996374897658825, 0.0007817125297151506, -0.06809669733047485, -0.008282030932605267, + 0.013312597759068012, 0.03785194829106331, -0.009309615939855576, -2.3028107989375712e-6, + -0.008788155391812325, -0.004386409185826778, -0.013343271799385548, -0.010245178826153278, + 0.02387985587120056, -0.016073275357484818, 0.011012033559381962, -0.003320480929687619, + 0.005690061952918768, -0.01776035502552986, -0.0012518903240561485, 0.016763444989919662, + 0.007120246067643166, 0.02973862551152706, -0.02453935146331787, -0.015199060551822186, + -0.021671313792467117, 0.02368047460913658, 0.004907870199531317, 0.0067061446607112885, + 0.01651805080473423, -0.04877195879817009, -0.013887738808989525, -0.009930768981575966, + -0.010935348458588123, -0.0027760141529142857, -0.011464478448033333, -0.0029217165429145098, + 0.010137819685041904, 0.01697816327214241, 0.014853975735604763, 0.013128552585840225, + 0.003937799017876387, -0.025428902357816696, 0.00842006504535675, 0.01318990159779787, + 0.015360100194811821, 0.0027089142240583897, 0.0034125035163015127, -0.00733879953622818, + -0.0017762272618710995, 0.000559803971555084, -0.01644136570394039, -0.006767492741346359, + -0.04533645138144493, -0.00054302898934111, 0.01822046749293804, 0.04561251774430275, + 0.024953452870249748, 0.036287564784288406, -0.0129981879144907, 0.004378740210086107, + 0.002321652602404356, -0.030566828325390816, -0.0034240062814205885, 0.007737563923001289, + -0.006943869404494762, 0.0448763370513916, -0.018588557839393616, 0.04825050011277199, + -0.01960080675780773, -0.037023745477199554, -0.03171711042523384, 0.009976780042052269, + 0.019907549023628235, 0.006249865982681513, -0.021441258490085602, 0.024339968338608742, + -0.001868249848484993, -0.0011857490753754973, -0.012116304598748684, -0.023404406383633614, + -0.023128338158130646, 0.01907934620976448, 0.05260623246431351, -0.016226645559072495, + 0.03113430179655552, -0.005157098174095154, -0.001941101043485105, -0.037146441638469696, + -0.010153156705200672, -0.03941633179783821, 0.018465861678123474, -0.021947382017970085, + 0.01187857985496521, -0.0071930973790585995, -0.05174735561013222, -0.026103734970092773, + -0.023051653057336807, 0.0036042171996086836, 0.015291082672774792, -0.047422297298908234, + -0.019064009189605713, 0.027392050251364708, 0.019846200942993164, -0.009079559706151485, + 0.00011688543600030243, -0.008826497942209244, 0.016686758026480675, -0.05987601727247238, + -0.030229413881897926, -0.021993393078446388, 0.00641473988071084, 0.009232930839061737, + -0.00641473988071084, 0.04993757978081703, 0.0026015546172857285, 0.03987644612789154, + 0.010145488195121288, 0.03693172335624695, -0.01703951135277748, -0.0024098409339785576, + -0.007875598035752773, 0.01929406449198723, 0.03447778895497322, -0.006134837865829468, + -0.0022526357788592577, 0.018005749210715294, -0.005552028305828571, -0.03111896477639675, + -0.024247946217656136, 0.01685546711087227, 0.00881882943212986, 0.01960080675780773, + -0.028051545843482018, -0.020168278366327286, 0.014079452492296696, -0.03190115466713905, + -0.017883051186800003, -0.007239108439534903, 0.0011320692719891667, -0.00182990706525743, + -0.011886248365044594, 0.006115666590631008, -0.009823408909142017, -0.0008718179306015372, + -0.04002981632947922, -0.009976780042052269, -0.0032418782357126474, -0.03297475352883339, + -0.014761953614652157, -0.020582379773259163, 0.01191692240536213, -0.006545105017721653, + 0.01069762371480465, -0.014478216879069805, -0.008995206095278263, -0.040121838450431824, + -0.004512940067797899, 0.032944079488515854, 0.005985300987958908, -0.015260408632457256, + -0.010973691008985043, 0.030950255692005157, 0.0003319043025840074, -0.02975396253168583, + 0.012384703382849693, -0.004785173572599888, -0.012231333181262016, 0.01355799101293087, + -0.007599530275911093, -0.017269568517804146, -0.010920011438429356, 0.00021064540487714112, + -0.0032629668712615967, -0.013120884075760841, -0.012706782668828964, -0.003477686084806919, + 0.03226924687623978, 0.03177845850586891, -0.007530513219535351, -0.008282030932605267, + 0.01881861500442028, -0.0070090522058308125, -0.03966172784566879, -0.01703951135277748, + 0.009332621470093727, -0.010950685478746891, -0.04177824407815933, 0.02429395727813244, + -0.017867714166641235, 0.021947382017970085, -0.03349621221423149, 0.006203854456543922, + -0.018711255863308907, -0.03085823357105255, 0.023603787645697594, 0.005091915372759104, + -0.010390881448984146, -0.008711469359695911, 0.012001276016235352, -0.007641707081347704, + 0.023189686238765717, -0.0290791317820549, 0.00809798575937748, -0.024692721664905548, + 0.009846414439380169, -0.009186919778585434, -0.004792842082679272, -0.006970709189772606, + -0.004217701032757759, -0.021563954651355743, 0.023941203951835632, -0.021563954651355743, + 0.012599422596395016, 0.036563631147146225, -0.03196250647306442, -0.017269568517804146, + 0.008642452768981457, -0.01907934620976448, -0.02493811585009098, 0.0073119597509503365, + -0.024125250056385994, -0.015482796356081963, 0.013964424841105938, 0.019968897104263306, + 0.032146550714969635, -0.008726806379854679, -0.013834059238433838, -0.018787940964102745, + 0.00778357544913888, -0.014754285104572773, -0.010245178826153278, 0.03276003524661064, + 0.021287886425852776, 0.0069400351494550705, 0.017545636743307114, -0.019002659246325493, + 0.0025862175971269608, 0.014731279574334621, -0.0016381933819502592, -0.0037959308829158545, + 0.004056661389768124, -0.009624026715755463, 0.01079731434583664, -0.03460048511624336, + -0.009785066358745098, 0.001602726406417787, -0.00904888566583395, 0.021287886425852776, + -0.04048993065953255, 0.0014915324281901121, -0.02613440901041031, 0.019171368330717087, + -0.006123335100710392, 0.0269932858645916, 0.008282030932605267, -0.03920161351561546, + -0.04539779946208, 0.006249865982681513, -0.04389476403594017, 0.02947789616882801, + -0.04607263207435608, -0.0027127484790980816, -0.006778995506465435, -0.009002874605357647, + 0.0002892480115406215, 0.013028861954808235, 0.016625409945845604, 0.01756097376346588, + -0.026103734970092773, 0.004355734679847956, 0.03910959139466286, 0.012062625028192997, + 0.018803277984261513, 0.007975288666784763, -0.021533280611038208, 0.026027049869298935, + 0.03763723000884056, 0.023803170770406723, -0.006840344052761793, 0.0036214713472872972, + -0.024201935157179832, 0.00026312703266739845, 0.019202042371034622, 0.007657044567167759, + 0.00828969944268465, -0.03647160902619362, -0.022070078179240227, -0.011012033559381962, + -0.032606661319732666, -0.008657789789140224, -0.026947274804115295, 0.03349621221423149, + 0.02171732485294342, -0.003845776431262493, 0.0012614759616553783, 0.007595696020871401, + -0.00028014162671752274, -0.03690104931592941, 0.025766318663954735, 0.005456171464174986, + -0.03456981107592583, -0.04953881353139877, 0.03917093947529793, 0.010107145644724369, + -0.02335839532315731, -0.00404899287968874, 0.017422938719391823, -0.03797464445233345, + 0.015705185011029243, -0.013320266269147396, -0.00015205291856545955, -0.010682285763323307, + 0.0074308221228420734, 0.003979975823312998, 0.0012442218139767647, -0.005655553657561541, + -0.04239172860980034, 0.005068909842520952, -0.02067440375685692, 0.0013582913670688868, + -0.014056446962058544, -0.027407387271523476, -0.005552028305828571, 0.02539822831749916, + 0.010252847336232662, -0.03144104406237602, 0.010996696539223194, 0.006548939272761345, + -0.011832567863166332, -0.023481091484427452, -0.010222173295915127, -0.013703693635761738, + -0.012346360832452774, 0.012653103098273277, -0.017806366086006165, -0.012921501882374287, + -0.014738948084414005, 0.013435294851660728, 0.02685525268316269, 0.01980018801987171, + 0.01326658669859171, -0.010674617253243923, 0.004884864669293165, 0.004233038052916527, + 0.00858877319842577, 0.02769879251718521, -0.019846200942993164, -0.010850993916392326, + -0.0163186676800251, -0.013090210035443306, 0.030459469184279442, 0.04665544256567955, + 0.0165793988853693, -0.00851975567638874, -0.03815869241952896, 0.002193204592913389, + -0.022346146404743195, -0.018864626064896584, -0.004693150985985994, 0.012308018282055855, + -0.0060274782590568066, -0.0016707846662029624, 0.025490250438451767, 0.003696239786222577, + -0.00291213090531528, -0.004961550235748291, -0.00018021085998043418, 0.004635636694729328, + 0.026226431131362915, 0.02935519814491272, -0.04058195278048515, 0.002578549087047577, + -0.011372455395758152, 0.003742251079529524, 0.010950685478746891, 0.06048950180411339, + 0.03625689074397087, 0.005095749627798796, -0.003182447049766779, 0.013281923718750477, + 0.022162102162837982, -0.04180891811847687, 0.04233038052916527, -0.016272656619548798, + 0.016533387824892998, 0.016349341720342636, -0.015107037499547005, 0.05401724576950073, + -0.0331587977707386, -0.01723889447748661, 0.005160932429134846, 0.025950362905859947, + -0.013511979952454567, 0.021962719038128853, 0.021533280611038208, 0.027131319046020508, + -0.006552773527801037, 0.007814249955117702, -0.024247946217656136, 0.014631588011980057, + -0.008005963638424873, 0.001500159502029419, 0.0017187130870297551, -0.007101074792444706, + -0.006928532384335995, 0.012875490821897984, 0.02269889973104, -0.018327828496694565, + 0.008143996819853783, 0.015904566273093224, 0.016671421006321907, 0.033342842012643814, + -0.00022466447262559086, 0.006391733884811401, -0.01450889091938734, 0.015007346868515015, + -0.033864304423332214, -0.024048563092947006, 0.003479603212326765, 3.1003695767140016e-5, + -0.015314089134335518, 0.009877088479697704, -0.0071279145777225494, -0.0032342097256332636, + -0.02455468848347664, -0.0015154966386035085, 0.015413779765367508, 0.0073119597509503365, + 0.002214292995631695, -0.019432097673416138, 0.028787726536393166, -0.006736818701028824, + -0.05021364614367485, 0.044722966849803925, 0.0048695276491343975, 0.026824578642845154, + 0.0010975608602166176, 0.023588450625538826, 0.020965807139873505, -0.01408712100237608, + -0.0018078599823638797, -0.0037556709721684456, 0.015620830468833447, 0.017484286800026894, + -0.002576631959527731, -0.03165576234459877, -0.012185321189463139, 0.011073382571339607, + 0.03604217246174812, -0.003341569332405925, -0.0053603146225214005, -0.010068802163004875, + 0.043403975665569305, -0.021686650812625885, -0.024370642378926277, 0.004187026526778936, + 0.008450739085674286, 0.038802847266197205, -0.004524442832916975, -0.012223663739860058, + -0.03309744969010353, 0.0267325546592474, 0.007538181729614735, 0.019309401512145996, + 0.010122482664883137, -0.007875598035752773, 0.01599659025669098, 0.018864626064896584, + 0.006660133134573698, 0.015689847990870476, -0.01062860619276762, -0.010958353988826275, + 0.007139417342841625, 0.0037920966278761625, -0.044784314930438995, 0.006525933742523193, + -0.012116304598748684, 0.041226111352443695, 0.047422297298908234, 0.02527553215622902, + -0.007074234541505575, 0.019968897104263306, 0.021410584449768066, -0.040121838450431824, + 0.0026322288904339075, -2.911651426984463e-5, -0.04251442477107048, -0.012262007221579552, + 0.002958141965791583, 0.004608796909451485, -0.0026015546172857285, -0.0012288846774026752, + -0.010651611723005772, 0.02427862025797367, 0.0051072523929178715, -0.004528277087956667, + 0.004585791379213333, 0.0015461707953363657, -0.013274255208671093, -0.00805964320898056, + 0.028266264125704765, 0.01075897179543972, 0.010275852866470814, -0.02969261445105076, + ], + index: 35, + }, + { + title: "Hong Kong Economic Times", + text: "Hong Kong Economic Times (26 January 1988), the leading financial daily in Hong Kong, was founded by Mr. Fung Siu Por, Lawrence (Chairman), Mr. Perry Mak (Managing Director), Mr. Arthur Shek (Executive Director) and other founders with HK$20 million of foundation fund in 1988.", + vector: [ + -0.028982525691390038, -0.040694091469049454, -0.010437874123454094, -0.06462991237640381, + 0.012240270152688026, -0.033836979418992996, -0.010213576257228851, 0.010886470787227154, + -0.024833008646965027, 0.03582361713051796, 0.07677405327558517, 0.01986640691757202, + -0.0032423099037259817, -0.024833008646965027, 0.009957235306501389, -0.026899756863713264, + 0.0062563163228333, -0.023839689791202545, -0.006460587959736586, 0.0311293788254261, + -0.02555396780371666, -0.009588745422661304, -0.03109733574092388, 0.026210840791463852, + -0.002931897295638919, -0.010221587494015694, -0.01614946685731411, 0.014795667491853237, + 0.014010624028742313, 0.03165808320045471, 0.02193315513432026, 0.034702129662036896, + 0.004055390600115061, -0.034605998545885086, -0.013241601176559925, 0.03668876737356186, + 0.03627221658825874, -0.01136710960417986, -0.010093417018651962, -0.013818368315696716, + 0.04787163436412811, 0.002887838752940297, -0.030055951327085495, 0.0033164082560688257, + -0.029062630608677864, 0.019545981660485268, -0.021949175745248795, -0.019401790574193, + -0.011150822043418884, 0.04037366807460785, 0.03399718925356865, 0.029911760240793228, + -0.02707599103450775, 0.050627294927835464, -0.009644820354878902, 0.031193463131785393, + 0.037137363106012344, 0.06581548601388931, -0.003917207010090351, -0.04104655981063843, + -0.016566019505262375, -0.033740848302841187, 0.01757536269724369, 0.03611200302839279, + 0.01328966487199068, 0.022638091817498207, -0.025185476988554, 0.015604742802679539, + 0.027524586766958237, -0.0018023957964032888, -0.03652855381369591, -0.016373764723539352, + 0.062451012432575226, 0.022814325988292694, 0.010389810428023338, -0.08138818293809891, + 0.012520642951130867, -0.013033324852585793, -0.03515072539448738, 0.03351655229926109, + -0.022285623475909233, 0.013353750109672546, 0.008198898285627365, -0.003364472184330225, + 0.028998546302318573, -0.018921151757240295, -0.02326292172074318, -0.06703310459852219, + -0.01847255416214466, 0.044378992170095444, 0.022445837035775185, 0.01574893482029438, + -0.04425081983208656, -0.05838160216808319, 0.005066734738647938, 0.050691381096839905, + -0.02725222520530224, -0.0072055780328810215, -0.013505952432751656, -0.03572748973965645, + 0.021772941574454308, 0.010582066141068935, 0.038098644465208054, -0.04498780146241188, + 0.020218875259160995, -0.022173473611474037, -0.01824825629591942, 0.01754331961274147, + -0.0032643391750752926, 0.019097385928034782, 0.029783589765429497, 0.015909146517515182, + 0.00827499944716692, 0.04037366807460785, -0.0355672761797905, 0.06309186667203903, + -0.011775652877986431, -0.010125459171831608, 0.05578615516424179, 0.046974439173936844, + -0.015492593869566917, -0.00126067572273314, 0.03063271939754486, -0.019786300137639046, + 0.016598062589764595, -0.03649651259183884, -0.04152720049023628, 0.017831703647971153, + 0.007786349859088659, -0.008190887980163097, -0.11419980227947235, 0.02299056015908718, + 0.012833057902753353, -0.012929186224937439, -0.01106270495802164, 0.02323088049888611, + 0.027428459376096725, -0.009869118221104145, -0.0055113257840275764, 0.008611447177827358, + 0.055209387093782425, 0.014691528864204884, 0.024640753865242004, -0.032715488225221634, + -0.04409060627222061, -0.03425353020429611, 0.022413793951272964, -0.003138171508908272, + 0.036368343979120255, 0.034541916102170944, -0.010077395476400852, 0.01039782166481018, + 0.019465874880552292, 0.02233368717133999, -0.01828029938042164, -0.04421877861022949, + 0.04953784868121147, 0.011415173299610615, -0.0402134545147419, 0.012416504323482513, + -0.016325701028108597, -0.003432562807574868, -0.023246901109814644, -0.034541916102170944, + -0.0009898156858980656, -0.04159128665924072, 0.034605998545885086, -0.009628798812627792, + -0.02366345375776291, 0.011303024366497993, -0.002737639006227255, 0.023134751245379448, + -0.061489734798669815, -0.014162826351821423, -0.056138623505830765, 0.036400385200977325, + 0.02452860400080681, 0.01387444231659174, -0.0003795044613070786, -0.0017413146561011672, + 0.028229523450136185, 0.04210396483540535, 0.015909146517515182, 0.03784230351448059, + -0.01807202212512493, -0.0023751570843160152, 0.06040028855204582, -0.006100108381360769, + 0.030520569533109665, 0.015708880499005318, -0.011407162994146347, 0.0379384309053421, + -0.019321683794260025, -0.023599369451403618, -0.00220893626101315, -0.013562027364969254, + 0.00965283066034317, -0.030023910105228424, 0.002080765785649419, 0.0066488380543887615, + 0.0021528617944568396, -0.008419191464781761, 0.020555322989821434, 0.032539252191782, + -0.014891794882714748, -0.029655419290065765, 0.018120085820555687, 0.03229893371462822, + -0.008931872434914112, 0.03100120835006237, 0.043385669589042664, -0.05222942680120468, + 0.037233494222164154, 0.02146853692829609, -0.018648788332939148, 0.017126765102148056, + 0.071134552359581, 0.028934461995959282, 0.045148011296987534, -0.00660477951169014, + -0.008443223312497139, -0.026835670694708824, 0.04848044365644455, -0.014082719571888447, + -0.0541519820690155, -0.008050701580941677, -0.04524414241313934, -0.021580686792731285, + 0.0032783576752990484, -0.01279300544410944, 0.0260506272315979, -0.012961228378117085, + -0.006128145847469568, 0.01305735670030117, -0.0007675202214159071, -0.011086736805737019, + -0.030680783092975616, -0.04466737434267998, -0.007421865593641996, -0.008218925446271896, + 0.03409332036972046, 0.026130734011530876, -0.015676839277148247, -0.02545784041285515, + -0.0362081304192543, -0.04783958941698074, -0.032779570668935776, 0.01554866787046194, + -0.027156097814440727, 0.021821005269885063, 0.06286756694316864, -0.04393039271235466, + 0.04393039271235466, -0.03399718925356865, 0.06600774079561234, 0.05094772204756737, + 0.03342042490839958, 0.0089719258248806, -0.034509871155023575, 0.00742587074637413, + -0.004185563884675503, 0.03803455829620361, 0.006592763587832451, 0.049922358244657516, + -0.054119937121868134, -0.004109462723135948, 0.0004368306545075029, 0.009188213385641575, + -0.009380469098687172, 0.021885091438889503, 0.04393039271235466, -0.020811663940548897, + 0.06373271346092224, 0.015188189223408699, -0.0017873758915811777, 0.003014006419107318, + -0.051492445170879364, 0.05562594160437584, -0.042744819074869156, 0.04248847812414169, + -0.015500604175031185, 0.01389046385884285, 0.021212195977568626, -0.02007468417286873, + 0.008419191464781761, -0.03591974452137947, 0.03889970853924751, -0.036464471369981766, + 0.04037366807460785, -0.022654112428426743, 0.011190875433385372, -0.0015260284999385476, + 0.02110004797577858, 0.04255256429314613, 0.0003424551978241652, 0.016189519315958023, + -0.03386902064085007, -0.028389737010002136, -0.0066328165121376514, -0.04591703414916992, + -0.02116413228213787, 0.013778314925730228, -0.0025974526070058346, -0.019321683794260025, + -0.0062402947805821896, 0.007602104917168617, 0.0043898350559175014, -0.00855537224560976, + -0.01096657756716013, -0.055305514484643936, 0.014403145760297775, -0.01741514913737774, + -0.003354458836838603, 0.006748971063643694, -0.012488600797951221, -0.06129748001694679, + 0.043609969317913055, -0.031321633607149124, 0.008234946057200432, -0.04575682058930397, + 0.05911858379840851, -0.00020815168682020158, -0.04213600978255272, 0.005022676195949316, + -0.012921175919473171, -0.004654186777770519, 0.011391141451895237, 0.04780754819512367, + -0.007281679194420576, -0.00347662135027349, 0.0075860838405787945, -0.01917749084532261, + -0.010261639952659607, 0.039348304271698, 0.008070727810263634, 0.027140075340867043, + 0.014707550406455994, 0.02428828552365303, -0.0160533394664526, 0.026627395302057266, + 0.012672845274209976, 0.018857065588235855, 0.01980232261121273, 0.035471148788928986, + 0.007461918983608484, -0.017655467614531517, 0.02681965008378029, 0.012448547407984734, + 0.034702129662036896, 0.0040914383716881275, 0.0005597440176643431, -0.025105372071266174, + 0.011639472097158432, 0.008827733807265759, 0.0037589967250823975, -0.05492100492119789, + 0.01608538068830967, -0.021917132660746574, 0.016870424151420593, 0.009372458793222904, + 0.0026755565777420998, 0.009588745422661304, 0.012945207767188549, 0.03393310680985451, + 0.002991977147758007, -0.006460587959736586, -0.014915826730430126, 0.022541964426636696, + 0.004814399406313896, -0.028357693925499916, 0.005867799744009972, -0.031225506216287613, + 0.00813881866633892, 0.01377030462026596, 0.02478494495153427, 0.03611200302839279, + -0.09189815819263458, 0.029911760240793228, -0.024400433525443077, -0.03954055905342102, + -0.027973182499408722, 0.0003832594375126064, 0.03575953468680382, 0.03303591161966324, + -0.007353775203227997, -0.07645362615585327, -0.024144094437360764, -0.062290798872709274, + 0.0049425698816776276, 0.06405314058065414, -0.0014409152790904045, -0.0004521009686868638, + 0.0017343052895739675, 0.010389810428023338, 0.012881122529506683, -0.00490251649171114, + 0.042712774127721786, 0.021772941574454308, 0.038995835930109024, -0.011823716573417187, + -0.0474550798535347, 0.00925229862332344, 0.05841364711523056, -0.011543343774974346, + -0.013994602486491203, -0.0019305661553516984, 0.005883821286261082, -4.0272283513331786e-5, + 0.018392447382211685, -0.02744447998702526, 0.042648691684007645, 0.023439155891537666, + -0.06696902215480804, -0.0642133578658104, 0.014026644639670849, 0.005331086460500956, + -0.05844568833708763, -0.03056863322854042, 0.03316408395767212, -0.027957161888480186, + 0.03854724019765854, 0.00375499133951962, -0.0007670195773243904, 0.013970570638775826, + 0.06174607574939728, -0.010846417397260666, 0.0185366403311491, 0.024608710780739784, + -0.0024232210125774145, 0.044475119560956955, 0.02462473325431347, -0.05408789590001106, + 0.03175421059131622, 0.010854428634047508, -0.00020502253028098494, -0.01530033815652132, + 0.004469941835850477, 0.05104384943842888, 0.02744447998702526, 0.01674225553870201, + -0.01887308619916439, -0.08010648190975189, 0.011110768653452396, 0.008979936130344868, + -0.015556679107248783, -0.017927831038832664, -0.05174878612160683, 0.017222894355654716, + 0.009372458793222904, -0.03303591161966324, -0.021340366452932358, 0.0056755440309643745, + -0.009396490640938282, 0.04652584344148636, -0.009500628337264061, 0.027732864022254944, + -0.0022670135367661715, -0.013417835347354412, 0.02462473325431347, 0.00340652815066278, + 0.005751645192503929, 0.07139089703559875, 0.004826415330171585, -0.0051588574424386024, + -0.03326021134853363, 0.026531266048550606, -0.010606097988784313, 0.0025453835260123014, + 0.01204801443964243, 0.03524685278534889, 0.0017272960394620895, -0.01884104497730732, + 0.017126765102148056, 0.028197482228279114, 0.04848044365644455, 0.0024532610550522804, + 0.01977027952671051, -0.02787705510854721, 0.015196199528872967, 0.002819748129695654, + 0.015148135833442211, -0.015981243923306465, 0.010918513871729374, 0.04857657104730606, + -0.0004981621750630438, -0.021372409537434578, -0.0115113016217947, -0.030985187739133835, + 0.008507308550179005, 0.06004782021045685, -0.013634122908115387, 0.05187695845961571, + 0.03867540881037712, 0.0062402947805821896, -0.011623450554907322, -0.022477878257632256, + 0.024833008646965027, -0.010710236616432667, -0.009436543099582195, -0.049089252948760986, + -0.0017743585631251335, 0.04389835149049759, -0.015364423394203186, -0.027300288900732994, + 0.01317751593887806, 0.01757536269724369, 0.0036488501355051994, -0.007017327938228846, + -0.05130019038915634, 0.003917207010090351, 0.020715536549687386, 0.002058736514300108, + -7.359783194260672e-5, 0.017431169748306274, -0.014675507321953773, 0.009829064831137657, + 0.012128121219575405, 0.03704123571515083, 0.01840846985578537, 0.003957260400056839, + 0.026435138657689095, -0.04607724770903587, 0.008811713196337223, 0.015172167681157589, + -0.008234946057200432, -0.00813881866633892, -0.007710248697549105, 0.001800393220037222, + 0.04130290076136589, -0.04646176099777222, 0.019481895491480827, 0.0011084733996540308, + -0.013049345463514328, 0.04921742156147957, -0.00652066757902503, 0.005715597420930862, + -0.05267802253365517, 0.03579157590866089, 0.0029038600623607635, -0.03790638595819473, + 0.006568731274455786, 0.030328314751386642, 0.005911858286708593, -0.007025338243693113, + -0.018600724637508392, 0.021612728014588356, -0.014515294693410397, 0.0012666836846619844, + 0.006528678350150585, 0.0037049248348921537, 0.011086736805737019, -0.0011004627449437976, + -0.017030637711286545, 0.0350225530564785, -0.008194892667233944, -0.01320955902338028, + 0.0062683322466909885, -0.06876340508460999, -0.039348304271698, -0.018600724637508392, + -0.012424515560269356, -0.029863696545362473, 0.027124054729938507, -0.014371102675795555, + -0.01461943332105875, 0.02654728852212429, 0.032539252191782, 0.0162135511636734, + -0.016469892114400864, 0.038995835930109024, 0.02738039568066597, 0.0009702897514216602, + -0.01747923344373703, -0.043481796979904175, 0.011030662804841995, 0.01927362009882927, + -0.00276567623950541, -0.017559340223670006, 0.007994626648724079, -0.014050676487386227, + 0.033708807080984116, 0.03861132264137268, 0.03688102588057518, 0.01877695880830288, + -0.014379112981259823, -0.016165487468242645, 0.015228241682052612, -0.0358877032995224, + -0.019594045355916023, 0.0035947782453149557, -0.0546967051923275, 0.036240171641111374, + 0.023807646706700325, -0.006276343017816544, 0.07741490006446838, -0.011583397164940834, + -0.02774888463318348, 0.05046708509325981, 0.03889970853924751, 0.0451800562441349, + -0.008182876743376255, 0.0068170614540576935, -0.0032363019417971373, -0.02026693895459175, + -0.039027877151966095, 0.022509921342134476, -0.008875798434019089, -0.045372311025857925, + -0.02438441291451454, -0.02286238968372345, 0.0064165289513766766, -0.03193044289946556, + -0.03931625932455063, 0.03165808320045471, 0.04332158342003822, 0.016109412536025047, + 0.02375958301126957, 0.013970570638775826, -0.01784772425889969, -0.021051982417702675, + -0.030744867399334908, 0.010437874123454094, 0.01840846985578537, 0.04841635748744011, + 0.01036577858030796, -0.01747923344373703, -0.03335633873939514, 0.020443174988031387, + 0.014010624028742313, -0.026659436523914337, -0.015540657564997673, 0.015708880499005318, + 0.0032282911706715822, 0.037137363106012344, 0.025794286280870438, 0.0066408272832632065, + 0.027796948328614235, -0.014635453931987286, -0.012857090681791306, -0.01249661110341549, + 0.002090779133141041, 0.020587366074323654, -0.012969239614903927, 0.0460452064871788, + -0.009620788507163525, -0.025858372449874878, 0.009789012372493744, 0.05271006375551224, + 0.051652658730745316, -0.0007580075762234628, 0.014859752729535103, 0.013730251230299473, + 0.015164157375693321, 0.0033104002941399813, -0.010902492329478264, -0.021644771099090576, + -0.026803629472851753, -0.014299007132649422, -0.006712923292070627, -0.04322545602917671, + -0.010509970597922802, -0.037169408053159714, 0.0047663357108831406, -0.0134578887373209, + -0.011527322232723236, -0.021180152893066406, -0.006372470408678055, -0.014034655876457691, + 0.00519891083240509, -0.01943383179605007, 0.009756969287991524, 0.011591407470405102, + 0.020843707025051117, -0.030744867399334908, 6.59626821288839e-5, -0.03380493447184563, + 0.026707500219345093, 0.04072613641619682, 0.013650144450366497, -0.01917749084532261, + 0.034413743764162064, -0.02657932974398136, -0.00330238975584507, -0.008947893977165222, + -0.01486776303499937, 0.003454592078924179, -0.008507308550179005, 0.012809026055037975, + 0.04018140956759453, -0.002355130622163415, 0.01754331961274147, -0.001629165606573224, + 0.004079422447830439, 0.013554017059504986, 0.023471198976039886, 0.003899182891473174, + 0.0012456558179110289, -0.0179438516497612, -0.027396416291594505, 0.0008346093818545341, + 0.040982477366924286, 0.03681693971157074, 0.021612728014588356, 0.011639472097158432, + 0.0011945879086852074, -0.0015360417310148478, 0.0015330377500504255, -0.023551305755972862, + -0.03422148898243904, 0.005094772204756737, 0.02295851707458496, -0.02212540991604328, + 0.022509921342134476, -0.02007468417286873, 0.005122809670865536, 0.002571417950093746, + 0.01611742377281189, 0.04380222409963608, -0.013882453553378582, 0.02459269016981125, + 0.020923813804984093, 0.026403095573186874, -0.0022269601467996836, 0.000335195567458868, + -0.010598087683320045, 0.03438170254230499, 0.03861132264137268, -0.021917132660746574, + -0.003610799554735422, 0.01236043032258749, -0.005591432563960552, 0.020923813804984093, + 0.012817037291824818, 0.02568213827908039, -0.011847748421132565, -0.029991867020726204, + 0.01317751593887806, -0.006468598265200853, -0.028726184740662575, -0.02515343576669693, + 0.05633087828755379, 0.018857065588235855, -0.05444036424160004, -0.04851248487830162, + -0.03399718925356865, 0.007461918983608484, -0.005186894908547401, 0.021837027743458748, + -0.01556468941271305, -0.009484607726335526, -0.032715488225221634, -0.04046979546546936, + 0.002489308826625347, -0.046397674828767776, -0.015492593869566917, 0.03338837996125221, + -0.006424539722502232, -0.005347107537090778, 0.011575386859476566, -0.01701461710035801, + -0.01813610829412937, -0.008811713196337223, -0.06424539536237717, -0.007546030450612307, + 0.025890415534377098, 0.027620714157819748, 0.004698245320469141, -0.020058663561940193, + -0.01107872650027275, 0.027796948328614235, 0.0011054694186896086, -0.02239777147769928, + -0.02335904911160469, 0.0071975672617554665, 0.03854724019765854, -0.008042690344154835, + -0.00912412814795971, -0.021772941574454308, 0.022509921342134476, -0.0013517969055101275, + -0.025842351838946342, 0.004313733894377947, -0.02057134360074997, -0.009764980524778366, + 0.0015520630404353142, 0.019658129662275314, 0.0028037268202751875, -0.047134652733802795, + -0.0011425187112763524, 0.015885114669799805, -0.008603435941040516, 0.022638091817498207, + -0.013842400163412094, 0.04947376251220703, 0.022189496085047722, 0.01633371226489544, + -0.03704123571515083, -0.00385912973433733, -0.0036168077494949102, 0.03479825705289841, + -0.035471148788928986, 0.038162726908922195, 0.029783589765429497, 0.004946575034409761, + 0.017767617478966713, 0.013866432011127472, -0.02505730651319027, -0.016918489709496498, + 0.0009492618264630437, -0.008491287007927895, -0.05187695845961571, 0.023999901488423347, + 0.004618138540536165, -0.015885114669799805, 0.03109733574092388, 0.026531266048550606, + -0.01584506221115589, -0.0697246789932251, -0.017190851271152496, -0.020987898111343384, + 0.00714549794793129, -0.027925118803977966, -0.011471248231828213, 0.09426930546760559, + -0.007850435562431812, 0.05770871043205261, 0.025537947192788124, -0.029126716777682304, + -0.0500505305826664, -0.018056001514196396, -0.033548593521118164, -0.02608267031610012, + 0.018792981281876564, -0.05219738185405731, -0.06273939460515976, 0.005254985298961401, + 0.031241528689861298, 0.025009242817759514, 0.02468881756067276, 0.008459244854748249, + -0.0013247609604150057, -0.008763649500906467, -0.04652584344148636, -0.011311035603284836, + -0.04732690751552582, -0.01930566132068634, -0.00681305630132556, -0.0016531975707039237, + -0.004538032226264477, -0.03591974452137947, 0.03790638595819473, 0.013938527554273605, + -0.02193315513432026, 0.019481895491480827, 0.027732864022254944, 0.01671021245419979, + -0.015236252918839455, 0.005623475182801485, 0.029655419290065765, -0.0292388666421175, + -0.01964210905134678, -0.031017228960990906, -0.032715488225221634, 0.02146853692829609, + 0.028005225583910942, -0.01079835370182991, 0.0535111278295517, 0.0030120036099106073, + 0.017831703647971153, 0.011391141451895237, -0.036368343979120255, 0.0010734267998486757, + 0.008038685657083988, -0.02276626229286194, 0.0015190191334113479, -0.03688102588057518, + 0.008875798434019089, 0.008499297313392162, 0.038995835930109024, 0.004550048150122166, + 0.05274210870265961, -0.023743560537695885, -0.05546572804450989, 0.0009392484789714217, + 0.014939858578145504, -0.014515294693410397, 0.0023931812029331923, 0.012985260225832462, + -0.004445909522473812, -0.0358877032995224, 0.03960464522242546, 0.030552612617611885, + 0.022974539548158646, -0.03656059876084328, 0.027828991413116455, 0.02914273738861084, + -0.018600724637508392, -0.013898474164307117, 0.02654728852212429, -0.025858372449874878, + 0.001161544001661241, 0.0031201473902910948, 0.013714229688048363, 0.021244239062070847, + 0.037361662834882736, -0.0353429801762104, 0.0015090059023350477, -0.04014936834573746, + 0.014875773340463638, -0.02524956315755844, 0.004165537189692259, -0.00980503298342228, + 0.005347107537090778, -0.004862463567405939, -0.02963939867913723, 0.005383155774325132, + 0.010421853512525558, -0.013970570638775826, -0.012664834968745708, -0.024400433525443077, + -0.0037189433351159096, 0.014731582254171371, 0.001091450802050531, -0.015388455241918564, + 0.0028738200198858976, -0.019882429391145706, -0.010806364007294178, 0.0405338779091835, + 0.002343114698305726, -0.025233542546629906, 0.008907840587198734, 0.00686913076788187, + 0.02369549684226513, 0.020122747868299484, -0.02110004797577858, 0.02824554592370987, + -0.05405585467815399, -0.022574005648493767, -0.016630105674266815, 0.01051798090338707, + 0.028934461995959282, 0.0005767666734755039, 0.0062523107044398785, 0.009116117842495441, + -0.007081413175910711, 0.005242969375103712, 0.027492543682456017, -0.030889058485627174, + 0.008210914209485054, -0.059727393090724945, -0.01784772425889969, 0.010021320544183254, + 0.04642971605062485, -0.018088042736053467, -0.0030680783092975616, -0.010165512561798096, + -0.017735574394464493, -0.00965283066034317, -0.017895787954330444, 0.014907816424965858, + -0.0350225530564785, 0.01834438368678093, 0.016966553404927254, 0.0005011661560274661, + 0.05668334662914276, 0.021420473232865334, 0.005230953451246023, -0.03867540881037712, + -0.00900396890938282, -0.015596731565892696, -0.003919209819287062, 0.032411083579063416, + -0.06100909784436226, 0.02927090786397457, -0.02861403487622738, 0.020379088819026947, + -0.014643465168774128, 0.051652658730745316, -0.021708857268095016, -0.006140161771327257, + -0.022237559780478477, 0.039893027395009995, -0.018216213211417198, -0.022077346220612526, + 0.01717482879757881, -0.00730170588940382, -0.03255527466535568, 0.0034225494600832462, + -0.04293707385659218, -0.00033619688474573195, -0.0055193365551531315, -0.012993271462619305, + 0.021212195977568626, -0.036176085472106934, -0.002222954761236906, 0.030392399057745934, + -0.03128959238529205, 0.014699539169669151, 0.0029078652150928974, -0.02193315513432026, + -0.023439155891537666, 0.02818145975470543, -0.01319353748112917, -0.002959934528917074, + -0.014971901662647724, 0.0033344323746860027, 0.01837642677128315, 0.03438170254230499, + -0.03700919449329376, -0.02259002812206745, 0.00044834596337750554, -0.005579416640102863, + 0.0016281642019748688, -0.0016912480350583792, -0.015853073447942734, -0.020058663561940193, + 0.014979911968111992, -0.011303024366497993, -0.00801465380936861, 0.0068330829963088036, + -0.007449902594089508, -0.0002998986456077546, -0.010285671800374985, -0.0215646643191576, + -0.011527322232723236, 0.03944443166255951, -0.019914470613002777, 0.016998594626784325, + -0.010125459171831608, -0.011791674420237541, -0.02561805211007595, 0.022702176123857498, + 0.0028658094815909863, -0.01757536269724369, -0.021292302757501602, -0.004237632732838392, + -0.002033703261986375, 0.01389046385884285, 0.009028000757098198, 0.026306968182325363, + 0.007622131612151861, -0.002377159893512726, 0.017270958051085472, 0.021051982417702675, + -0.006925205234438181, -0.00980503298342228, 0.00029664431349374354, 0.004742303863167763, + 0.029286930337548256, -0.037233494222164154, 0.01473959255963564, -0.0009117118897847831, + 0.01441916637122631, -0.0003759998071473092, 0.019674152135849, 0.023711519315838814, + -0.02654728852212429, -0.020475216209888458, -0.008387148380279541, -0.010293683037161827, + 0.021724877879023552, 0.05552981421351433, -0.04242439195513725, -0.020555322989821434, + -0.03518276661634445, 0.02342313528060913, 0.001486976514570415, 0.0031241527758538723, + 0.017751596868038177, -0.007582078687846661, -0.003432562807574868, -0.016189519315958023, + -0.03492642566561699, 0.01441916637122631, -0.006564726121723652, 0.011903823353350163, + -0.025377733632922173, -0.02754060924053192, -0.015508614480495453, -0.004698245320469141, + 0.010173522867262363, 0.015620764344930649, 0.05312661826610565, -0.018023958429694176, + 0.015796998515725136, -0.030232185497879982, -0.016261614859104156, 0.03152991086244583, + -0.006003980990499258, -0.007517993450164795, -0.01787976734340191, -0.0025373727548867464, + -0.0009117118897847831, -0.00413749972358346, -0.028037268668413162, 0.002335103927180171, + 0.01348993182182312, 0.025441817939281464, -0.019594045355916023, -0.013746271841228008, + -0.005975943524390459, 0.000650364498142153, -0.03393310680985451, -0.04130290076136589, + 0.008763649500906467, 0.011238939128816128, 0.003861132310703397, 0.0004448413092177361, + 0.03508663922548294, -0.05213329941034317, 0.03177022933959961, -0.006148172542452812, + 0.01364213414490223, -0.00686913076788187, 0.00829102098941803, -0.02947918511927128, + 0.0038711456581950188, -0.003384498879313469, 0.010301693342626095, -0.02119617536664009, + -0.017719553783535957, -0.008242957293987274, -0.026403095573186874, 0.020587366074323654, + -0.046205420047044754, -0.0232949648052454, -0.023679476231336594, -0.016317689791321754, + -0.026627395302057266, 0.0024833008646965027, -0.009604766964912415, -0.0008015654748305678, + -0.01980232261121273, -0.011639472097158432, -0.014427177608013153, 0.0022670135367661715, + 0.014691528864204884, -0.0024712849408388138, -0.017335042357444763, 0.012288333848118782, + -0.01596522144973278, -0.032443124800920486, 0.022686155512928963, 0.022141432389616966, + 0.02601858600974083, 0.00039903042488731444, 0.02651524543762207, 0.049794189631938934, + -0.035663407295942307, 0.017495255917310715, -0.0055473740212619305, -0.007469929289072752, + 0.029895739629864693, -0.015524636022746563, -0.02638707496225834, -0.00608809245750308, + 0.021292302757501602, 0.0039352308958768845, 0.00015032482042443007, 0.02010672725737095, + 0.03611200302839279, 0.005583421792834997, -0.011206896975636482, 0.020587366074323654, + -0.02366345375776291, -0.009596756659448147, 0.0176714900881052, -0.006160188466310501, + 0.00013993600441608578, 0.01980232261121273, 0.010686204768717289, 0.017335042357444763, + 0.016437850892543793, 0.04505188390612602, 0.03739370405673981, -0.04562865197658539, + -0.0032463150564581156, 0.04409060627222061, 0.018760938197374344, -0.004722277168184519, + 0.015700871124863625, -0.018392447382211685, 0.008234946057200432, -0.01373826153576374, + 0.020923813804984093, 0.02295851707458496, 0.02029898203909397, 0.007802371401339769, + 0.008435212075710297, -0.0048063891008496284, -0.013369771651923656, 0.02901456691324711, + 0.0026575324591249228, 0.0018194185104221106, -0.018792981281876564, -0.04684627056121826, + -0.030584653839468956, -0.01701461710035801, -0.0010634135687723756, 0.004638165235519409, + -0.011575386859476566, -0.007970594801008701, -0.022445837035775185, 0.031978506594896317, + -0.03348451107740402, -0.0030320303048938513, 0.006180215161293745, -0.03492642566561699, + -0.007538020145148039, -0.018696852028369904, -0.03678489476442337, 0.0023611385840922594, + 0.020987898111343384, -0.0012837063986808062, -0.009011979214847088, -0.014274975284934044, + 0.009468586184084415, -0.018264276906847954, 0.010766311548650265, -0.019225556403398514, + -0.014018634334206581, 0.0474550798535347, 0.008002637885510921, -0.014451209455728531, + -0.001399860717356205, 0.01961006596684456, -0.006556715350598097, -0.016774296760559082, + 0.017863744869828224, -0.007926536723971367, -0.04245643690228462, -0.039059922099113464, + 0.02917478047311306, 0.02292647585272789, -0.010109437629580498, -0.030264228582382202, + -0.01553264632821083, -0.002415210474282503, 0.009644820354878902, -0.0024232210125774145, + 0.03591974452137947, 0.015332380309700966, -0.02249390073120594, 0.0038210791535675526, + 0.015612753108143806, 0.038194771856069565, -0.011327056214213371, 0.003200253937393427, + 0.014066698029637337, 0.002589442068710923, 0.007914520800113678, 0.03438170254230499, + -0.03393310680985451, -0.00763414753600955, 0.006921200081706047, -0.04953784868121147, + -0.0089719258248806, -0.002080765785649419, 0.013257622718811035, 0.005659522954374552, + 0.0008851766469888389, -0.016598062589764595, 0.00043107301462441683, 0.022814325988292694, + 0.050691381096839905, -0.015492593869566917, -0.007530009374022484, -0.023134751245379448, + 0.025569988414645195, -0.00365085294470191, 0.012592738494277, 0.030857017263770103, + -0.015572699718177319, -0.004493973683565855, -0.020411131903529167, -0.007890488021075726, + 0.022221537306904793, -0.00392922293394804, -0.017335042357444763, -0.046301547437906265, + -0.042808905243873596, -0.01877695880830288, -0.017719553783535957, 0.01813610829412937, + 0.014955880120396614, 0.014995933510363102, -0.008731606416404247, -0.022686155512928963, + -0.012200216762721539, -0.008667521178722382, -0.05319070443511009, 0.021692834794521332, + 0.026066649705171585, -0.01606134884059429, -0.0058998423628509045, -0.04203988239169121, + 0.0006533684791065753, 0.003138171508908272, 0.004497978836297989, 0.02379162423312664, + 0.0007590089226141572, 0.03229893371462822, -0.005875810515135527, -0.014723571017384529, + -0.009476596489548683, -0.003939236048609018, -0.014347070828080177, 0.00923627708107233, + 0.004509994760155678, -0.006528678350150585, 0.03473417088389397, -0.022205516695976257, + -0.015676839277148247, 0.012961228378117085, -0.017895787954330444, 0.007013322319835424, + 0.026435138657689095, -0.01648591458797455, -0.019962534308433533, 0.02339109219610691, + 0.0005692566628567874, -0.03390106186270714, 0.02678760699927807, -0.005811725277453661, + 0.0070934290997684, 0.006404513027518988, 0.016870424151420593, -0.014875773340463638, + 0.00026810637791641057, -0.05860590189695358, 0.018360406160354614, -0.016077371314167976, + 0.024833008646965027, -0.016469892114400864, -0.023951837792992592, -0.009716915898025036, + 0.023743560537695885, -0.02558601088821888, -0.022718198597431183, -0.00490251649171114, + 0.006036023609340191, 0.03483029827475548, -0.00034871354000642896, 0.01596522144973278, + -0.005999975372105837, -0.002311072079464793, 0.0024953167885541916, 0.05040299892425537, + 0.00568355480208993, -0.012584728188812733, 0.006356449332088232, -0.013345739804208279, + -0.021612728014588356, -0.011487269774079323, 0.01651795580983162, -0.015252274461090565, + -0.040021199733018875, 0.005775677505880594, -0.00994922500103712, 0.0431293286383152, + 0.014699539169669151, 0.05094772204756737, 0.020907791331410408, 0.008763649500906467, + -0.00252135144546628, -0.03060067631304264, 0.007550036069005728, 0.0031221501994878054, + -0.015644796192646027, -0.020619409158825874, 0.03950851783156395, -0.019946513697504997, + 0.02781297080218792, -0.011687535792589188, 0.047262825071811676, -0.005299043841660023, + 0.01093453448265791, 0.027700820937752724, 0.013666165992617607, 0.0027496549300849438, + 0.017335042357444763, -0.004381824750453234, 0.020010599866509438, 0.00040829271893016994, + -0.024448499083518982, -0.006941226776689291, 0.013409825041890144, 0.004205590113997459, + -0.008170860819518566, -0.002459269016981125, -0.0143230389803648, -0.019978556782007217, + 0.01302531361579895, 0.00829102098941803, 0.049025166779756546, 0.017270958051085472, + 0.0025473861023783684, 0.00815484020859003, -0.023487219586968422, -0.026627395302057266, + -0.02289443276822567, -0.014939858578145504, 0.03358063846826553, -0.030392399057745934, + 0.002881830558180809, 0.03479825705289841, 0.02119617536664009, 0.006897168233990669, + 0.007782344706356525, -0.0593428798019886, 0.013842400163412094, -0.01081437524408102, + 0.040918391197919846, -0.03973281383514404, 0.0021969203371554613, 0.007946562953293324, + 0.015628773719072342, 0.02648320235311985, -0.007766323164105415, 0.011671514250338078, + -0.04870473966002464, -0.010357768274843693, -0.02103596180677414, -0.008523330092430115, + 0.007694227620959282, 0.009428532794117928, 0.02883833274245262, -0.004285696893930435, + 0.012945207767188549, -0.017831703647971153, -0.025890415534377098, 0.016806339845061302, + -0.0051588574424386024, -0.019562002271413803, -0.045500483363866806, 0.0011395147303119302, + 0.015043997205793858, 0.0043978458270430565, 0.002739641582593322, -0.02063542976975441, + -0.00880370195955038, 0.02499322220683098, -0.04383426532149315, 0.051556531339883804, + -0.0017503265989944339, -0.006789024453610182, 0.0018294317414984107, 0.007846429944038391, + 0.01933770440518856, -0.01747923344373703, -0.007477940060198307, -0.002979961223900318, + -0.009316383861005306, -0.006284353323280811, -0.011343077756464481, 0.017190851271152496, + -0.019449854269623756, -0.019529961049556732, -0.01236043032258749, 0.01986640691757202, + 0.0021148112136870623, 0.015700871124863625, 0.011767642572522163, 0.021837027743458748, + -0.013786325231194496, 0.03386902064085007, 0.02930295094847679, 0.021148111671209335, + -0.043385669589042664, -0.0062883589416742325, -0.018857065588235855, -0.009628798812627792, + 0.02283034659922123, 0.004301717970520258, -0.009893150068819523, 0.001577096409164369, + 0.04412265121936798, -0.01219220645725727, -0.00010075893078465015, 0.021837027743458748, + -0.02704394795000553, 0.0014689526287838817, 0.0016642122063785791, 0.026226861402392387, + 0.015620764344930649, 0.006600773893296719, -0.01488378457725048, 0.01590113714337349, + -0.016566019505262375, 0.0003912700922228396, -0.0021308325231075287, 0.01189581211656332, + -0.05716398358345032, 0.015180177986621857, -0.03611200302839279, -0.019225556403398514, + 0.022445837035775185, -0.023615390062332153, 0.03569544851779938, -0.005895837210118771, + 0.0068450989201664925, 0.011695546098053455, -0.018424490466713905, -0.020587366074323654, + -0.008074733428657055, 0.005891831591725349, -0.008939883671700954, -0.006184220314025879, + 0.017302999272942543, 0.009781001135706902, -0.006156183313578367, -0.00408342806622386, + -0.0070293438620865345, -0.003931225743144751, 0.021404452621936798, 0.01977027952671051, + -0.027396416291594505, 0.013570037670433521, 0.010854428634047508, 0.011038673110306263, + -0.0031862352043390274, -0.013570037670433521, -0.0012917170533910394, -0.037201449275016785, + -0.025537947192788124, -0.045308224856853485, -0.028085332363843918, 0.017831703647971153, + -0.02598654292523861, 0.01587710529565811, -0.01377030462026596, -0.019065342843532562, + 0.03161001577973366, 0.009052032604813576, -0.03396514803171158, -0.006408518645912409, + ], + index: 36, + }, + { + title: "Dale Reid", + text: "Dale Reid OBE (born 20 March 1959) is a Scottish professional golfer from Ladybank, Fife. She is one of the most successful players in the history of the Ladies European Tour, with 21 tournament victories. She topped the Order of Merit in 1984 and 1987 and was made a life member of the tour after collecting her 20th title at the 1991 Ford Classic. She played for Europe in the first four Solheim Cups (1990, 1992, 1994 and 1996) and was Europe's non-playing captain in 2000 and 2002.", + vector: [ + 0.05349265784025192, -0.01442507840692997, -0.02503391169011593, 0.022082030773162842, + -0.033432912081480026, 0.02674632892012596, 0.030317943543195724, -0.014147830195724964, + 0.007758881896734238, 0.03020378202199936, -0.047654129564762115, 0.01658598706126213, + 0.012606654316186905, -0.0024646578822284937, -0.01751558482646942, -0.0060953907668590546, + -0.03103552758693695, 0.009899403899908066, -0.05251413583755493, -0.050589703023433685, + 0.03193250671029091, 0.013095916248857975, 0.03477022796869278, 0.0027887942269444466, + 0.01999451220035553, 0.032552238553762436, 0.006637656129896641, -0.002529892837628722, + -0.004484903067350388, 0.030790897086262703, 0.05029614642262459, 0.02762700244784355, + 0.02041853964328766, -0.0036633501295000315, -0.02963297627866268, 0.015860246494412422, + -0.03538995981216431, -0.01761343702673912, 0.011041015386581421, 0.05531923845410347, + 0.0009168568649329245, 0.021038271486759186, -0.031948816031217575, 0.004203577060252428, + 0.009711853228509426, -0.010910545475780964, -0.0024483492597937584, 0.019228002056479454, + -0.0023953458294272423, 0.04990473762154579, -0.021462298929691315, 0.02474035508930683, + -0.01756451092660427, 0.058091722428798676, -0.029714519158005714, 0.011057323776185513, + 0.033530764281749725, 0.06308219581842422, -0.03379170596599579, 0.02637122943997383, + 0.012549573555588722, -0.013381319120526314, -0.02867075987160206, 0.002778601134195924, + 0.04833909869194031, -0.02739867940545082, -0.00852946937084198, 0.015762394294142723, + -0.02987760677933693, 0.010323431342840195, -0.02152753435075283, -0.04100016504526138, + -0.029665593057870865, 0.053949303925037384, 0.011693364940583706, 0.022946393117308617, + -0.002660362748429179, 0.022538674995303154, -0.008578396402299404, -0.0394345261156559, + 0.00607092771679163, -0.0038712865207344294, -0.016064107418060303, 0.011783063411712646, + 0.04768674820661545, -0.07143227010965347, 0.04948071017861366, -0.08128274977207184, + 0.03503116965293884, -0.002195563865825534, -0.016186421737074852, 0.0040078721940517426, + 0.05988568440079689, 0.04948071017861366, 0.015419911593198776, -0.04628419876098633, + -0.029649285599589348, -0.015819475054740906, 0.0051127891056239605, 0.011530277319252491, + -0.037020836025476456, 0.01999451220035553, 0.03066042624413967, 0.023272568359971046, + 0.008814872242510319, 0.020255452021956444, -0.03555304929614067, -0.02240820601582527, + 0.0040690298192203045, 0.04621896147727966, 0.005532739218324423, -0.010241887532174587, + -0.10528921335935593, -0.04618634656071663, -0.05336219072341919, -0.0022179882507771254, + -0.030513647943735123, 0.0260450541973114, -0.0029029552824795246, -0.0024993140250444412, + -0.036368485540151596, -0.045468758791685104, 0.0390431173145771, 0.0015676773618906736, + 0.04325077310204506, 0.005055708810687065, 0.001452496973797679, 0.009271517395973206, + 0.03274794667959213, -0.009214436635375023, -0.013291621580719948, 0.009328598156571388, + -0.018852900713682175, 0.007921969518065453, 5.5870168580440804e-5, 0.06973616033792496, + 0.004117956385016441, -0.016015179455280304, 0.03309042751789093, 0.04687131196260452, + 0.053623128682374954, 0.012060311622917652, 0.030676735565066338, 0.015901019796729088, + -0.023827064782381058, -0.05140513926744461, 0.015501455403864384, 0.03535734489560127, + 0.03799935802817345, 0.0056346687488257885, 0.017042631283402443, 0.052220579236745834, + 0.03927144035696983, -0.0179885383695364, 0.012468029744923115, 0.0028703378047794104, + -0.03356338292360306, 0.02250605821609497, -0.05639561638236046, -0.004525674507021904, + -0.01137534435838461, 0.07854288071393967, -0.008586550131440163, 0.022342970594763756, + -0.029893916100263596, 0.040380433201789856, -0.061125148087739944, 0.05313386768102646, + -0.033856939524412155, 0.03382432088255882, -0.03057888336479664, 0.008586550131440163, + 0.015411756932735443, -0.033253517001867294, 0.04445761814713478, 0.030285324901342392, + 0.04540352523326874, -0.006890441756695509, 0.035585664212703705, -0.039304058998823166, + -0.006234014872461557, -0.015615615993738174, -0.02213095687329769, -0.04563184827566147, + -0.0195704847574234, 0.012989909388124943, 0.05633037909865379, -0.022440822795033455, + 0.0019723379518836737, -0.010608834214508533, 0.060929443687200546, 0.02275068871676922, + 0.0197661891579628, 0.008945342153310776, -0.030741970986127853, 0.029665593057870865, + -0.03224237263202667, -0.001264946418814361, -0.02097303606569767, -0.014221219345927238, + 0.030187472701072693, -0.013666721992194653, -0.0008088114554993808, 0.008064670488238335, + 0.017124174162745476, -0.004030296579003334, 0.003932444378733635, 0.003039540955796838, + 0.015460683032870293, -0.044718559831380844, 0.017743906006217003, 0.011937996372580528, + 0.057113200426101685, 0.015175280161201954, -0.03131277486681938, 0.03552043065428734, + -0.025751497596502304, 0.03519425541162491, 0.014408770017325878, -0.04948071017861366, + -0.03770580142736435, -0.03503116965293884, -0.02955143339931965, -0.019211692735552788, + 0.01723833568394184, 0.07208462059497833, -0.044620707631111145, -0.05036138370633125, + -0.024381563067436218, -0.041554663330316544, 0.005275876726955175, 0.01500403881072998, + 0.04067399352788925, 0.020565317943692207, -0.0390431173145771, 0.03692298382520676, + 0.019309544935822487, -0.032976265996694565, 0.053753599524497986, -0.02955143339931965, + -0.009467221796512604, 0.0042158085852861404, 0.02870337851345539, -0.004961933474987745, + 0.00687413290143013, 0.007844503037631512, 0.023990152403712273, -0.015615615993738174, + -0.01418860163539648, 0.00025291283964179456, 0.001114090671762824, -0.015379139222204685, + 0.015379139222204685, -0.008297069929540157, 0.023973844945430756, -0.03574875369668007, + -0.013365010730922222, 0.005822219420224428, 0.06269078701734543, -0.015998871996998787, + 0.01433537993580103, -0.018102698028087616, -0.048404332250356674, 0.04321815446019173, + 0.01097578089684248, -0.017368806526064873, -0.06784434616565704, -0.013226386159658432, + 0.053851451724767685, -0.03998902440071106, -0.007367472164332867, -0.0325685478746891, + -0.009214436635375023, 0.030725661665201187, 0.0230279378592968, 0.00050557084614411, + -0.002847913419827819, -0.007860811427235603, -0.016137495636940002, -0.0007889351691119373, + 0.030970292165875435, -0.013291621580719948, -6.569681772816693e-6, -0.05029614642262459, + -0.054732125252485275, -0.036009691655635834, -0.007253311108797789, 0.004117956385016441, + 0.047980304807424545, 0.007881197147071362, -0.029665593057870865, 0.07188891619443893, + 0.010527290403842926, 0.0012323289411142468, 0.030122239142656326, 0.033155664801597595, + -0.01989666000008583, -0.02200048789381981, 0.0010223540011793375, -0.00904319528490305, + -0.047980304807424545, 0.007587640080600977, -0.03137801215052605, -0.020304378122091293, + -0.05120943486690521, -0.021217668429017067, -0.021266594529151917, 0.0016736842226237059, + -0.026909416541457176, -0.01288390252739191, -0.04514258727431297, 0.008961651474237442, + 0.04031519964337349, -0.022815924137830734, 0.022587601095438004, 0.017222026363015175, + 0.012027693912386894, -0.0038447848055511713, 0.004109801724553108, -0.04100016504526138, + 0.061581794172525406, 0.032829489558935165, 0.017841758206486702, 0.023451965302228928, + 0.05770031362771988, -0.034737613052129745, 0.030872439965605736, 0.009638464078307152, + 0.0061565483920276165, -0.016618603840470314, -0.021967869251966476, -0.016064107418060303, + -0.001248637679964304, 0.009010577574372292, 0.015232360921800137, 0.005532739218324423, + -0.06520233303308487, 0.02694203518331051, -0.035259488970041275, -0.023337803781032562, + -0.01171782799065113, 0.008782255463302135, 0.01803746446967125, 0.019537867978215218, + -0.01882028393447399, -0.03346553072333336, 0.017042631283402443, -0.02069578878581524, + -0.021331828087568283, -0.011571049690246582, 0.0008393903262913227, -0.01678169146180153, + 0.011334572918713093, 0.025082837790250778, 0.001830655848607421, 0.00812990590929985, + 0.019162766635417938, -8.893358608474955e-5, 0.017075248062610626, 0.011407962068915367, + 0.05140513926744461, -0.020989345386624336, -0.059526894241571426, 0.02917633205652237, + -0.0030069234780967236, -0.002379037206992507, 0.03535734489560127, 0.02343565598130226, + -0.013014372438192368, 0.005846682470291853, -0.007909737527370453, -0.02343565598130226, + -0.012916520237922668, -0.0358792245388031, -0.021967869251966476, -0.017319878563284874, + -0.03542257845401764, -0.03173680230975151, -0.0009413199732080102, -0.0018816206138581038, + -0.008505006320774555, 0.07756435871124268, -0.07012756913900375, 0.01924430951476097, + 0.024772971868515015, -0.03336767852306366, 0.0427941270172596, -0.007273696828633547, + 0.0036021925043314695, -0.029910225421190262, 0.0030232323333621025, 0.01102470699697733, + -0.022848540917038918, -0.0061116996221244335, 0.01113886758685112, 0.02004343830049038, + 0.04295721650123596, 0.04034781828522682, 0.00871702004224062, 0.0031088530085980892, + -0.04400097578763962, -0.0523836649954319, -0.016545213758945465, -0.05094849690794945, + -0.003485992783680558, -0.05290554463863373, 0.026273377239704132, -0.022799614816904068, + 0.038423385471105576, 0.05003520846366882, 0.011587358079850674, -0.02144598960876465, + 0.00578960170969367, -0.029584050178527832, 0.017319878563284874, -0.006853747181594372, + 0.03992379084229469, -0.003720430890098214, -0.0228322334587574, -0.01263111736625433, + 0.005536816548556089, 0.007016834337264299, -0.01691216044127941, 0.007974972948431969, + -0.008158446289598942, 0.05985306575894356, 0.010486518032848835, 0.0162353478372097, + 0.009100276045501232, 0.009304135106503963, -0.0587114542722702, -0.036140162497758865, + -0.022473439574241638, 0.044392384588718414, -0.024169549345970154, -0.03454190492630005, + -0.03649895638227463, -0.010486518032848835, 0.020190216600894928, 0.08245697617530823, + 0.015509609133005142, 0.013780883513391018, -0.018852900713682175, -0.001851041684858501, + 0.0005799795035272837, 0.03812982887029648, 0.008309301920235157, 0.02955143339931965, + 0.023696595802903175, 0.028034720569849014, -0.030774587765336037, 0.014449541456997395, + 0.012826821766793728, 0.004362587351351976, 0.029763447120785713, 0.013674876652657986, + -0.03992379084229469, 0.041228488087654114, -0.026648476719856262, 0.012614808976650238, + -0.02353350818157196, 0.01984773389995098, 0.03235653415322304, 0.0039365217089653015, + -0.022245118394494057, 0.026827873662114143, 0.0024646578822284937, -0.017499275505542755, + -0.02162538655102253, -0.02995915152132511, 0.02717035636305809, 0.015582999214529991, + -0.05280769243836403, -0.0009316366631537676, 0.005915994755923748, 0.012272325344383717, + 0.04749104380607605, -0.03173680230975151, -0.0006599941989406943, 0.03878217935562134, + 0.007811885327100754, -0.00787712074816227, -0.02619183249771595, 0.043544329702854156, + 0.038521237671375275, -0.04778460040688515, 0.026305994018912315, -0.002062035957351327, + -0.03388955816626549, 0.006454182788729668, -0.015264978632330894, 0.025947201997041702, + -0.03326982632279396, -0.0044604395516216755, -0.016749072819948196, 0.004908930044621229, + -0.029143713414669037, -0.022147266194224358, 0.010086954571306705, 0.009051349014043808, + 0.04501211643218994, 0.047327958047389984, 0.022082030773162842, 0.029763447120785713, + 0.010616987943649292, -0.023615052923560143, 0.01906491443514824, 0.022212501615285873, + -0.034607142210006714, 0.04390312358736992, 0.05496044456958771, 0.018167933449149132, + -0.05104634910821915, 0.003125161863863468, -0.008154368959367275, -0.014734944328665733, + -0.034737613052129745, 0.006515340879559517, -0.007775190751999617, -0.02245713211596012, + -0.017124174162745476, 0.008839336223900318, -0.010674068704247475, 0.025784114375710487, + 0.015118199400603771, -0.01683061756193638, 0.012321251444518566, 0.017140483483672142, + -0.022196192294359207, -0.008700711652636528, 0.025833040475845337, 0.014359843917191029, + 0.03659680858254433, 0.005903763230890036, -0.02619183249771595, 0.030366869643330574, + 0.019423706457018852, 0.0007874062284827232, 0.031165998429059982, -0.047230105847120285, + 0.0007165651768445969, -0.004016026854515076, -0.015216052532196045, -0.06321267038583755, + 0.002254683058708906, 0.0021629463881254196, -0.0015238476917147636, -0.004052721429616213, + -0.008880107663571835, 0.011962459422647953, -0.02358243428170681, -0.02731713466346264, + -0.06030971184372902, -0.014098904095590115, 0.030040694400668144, -0.004749919753521681, + 0.013519943691790104, -0.008496852591633797, 0.003198551246896386, -0.05766769498586655, + 0.04207654297351837, -0.05933118611574173, 0.019423706457018852, -0.013095916248857975, + -0.02571887895464897, 0.01020926982164383, -0.008456080220639706, 0.050263527780771255, + -0.03773842006921768, -0.011081786826252937, -0.03509640321135521, -0.03402002528309822, + 0.01979880779981613, -0.04073922708630562, -0.006556112319231033, -0.0032637862022966146, + -0.007175844628363848, -0.019162766635417938, 0.011660747230052948, 0.008472389541566372, + -0.004733610898256302, -0.036564189940690994, -0.004839617758989334, -0.004016026854515076, + -0.040804460644721985, 0.01007064525038004, 0.028344586491584778, 0.016373973339796066, + -0.02195156179368496, -0.00929598044604063, -0.04967641457915306, -0.018755048513412476, + 0.012215244583785534, -0.01723833568394184, 0.02968190237879753, 0.008064670488238335, + 0.011986922472715378, 0.015949945896863937, 0.007453093305230141, -0.0032352458219975233, + 0.011758599430322647, 0.01710786670446396, 0.01011141762137413, -0.011978767812252045, + 0.00885564461350441, -0.008578396402299404, 6.513939297292382e-5, 0.025702569633722305, + -0.0008439771481789649, -0.02385968342423439, 0.007110609672963619, -0.004855926614254713, + -0.008337842300534248, 0.015256823971867561, 0.00706168357282877, -0.04719748720526695, + -0.013740111142396927, 0.028556600213050842, -0.016422899439930916, -0.009459068067371845, + -0.002915186807513237, -0.0020589781925082207, -0.0013424130156636238, -0.013927661813795567, + 0.02553948387503624, 0.021788474172353745, 0.006849669851362705, -0.03565090149641037, + 0.017678672447800636, 0.0012221360811963677, 0.026273377239704132, -0.017499275505542755, + -0.017254645004868507, -0.023403039202094078, -0.04325077310204506, 0.008880107663571835, + 0.020483775064349174, -0.04263104125857353, -0.00029024455579929054, -0.016520751640200615, + 0.025702569633722305, 0.008272606879472733, 0.023174716159701347, -0.0017593051306903362, + -0.020728405565023422, -0.013813501223921776, 0.04736057296395302, 0.009214436635375023, + 0.003223014296963811, 0.0001818169403122738, 0.0059119174256920815, -0.014555548317730427, + -0.007714033126831055, -0.00033152606920339167, -0.009548765607178211, -0.05988568440079689, + 0.0044604395516216755, -0.03737962618470192, 0.03402002528309822, 0.01864088699221611, + -0.0025319315027445555, 0.017140483483672142, 0.003329021157696843, -0.006356330588459969, + 0.014408770017325878, -0.005491967312991619, -0.020010821521282196, 0.011220411397516727, + 0.048176009207963943, 0.0051984102465212345, 0.011122559197247028, -0.00915735587477684, + 0.004103686194866896, -0.02940465323626995, 0.02739867940545082, 0.010820847004652023, + -0.017646053805947304, 0.035161636769771576, 0.0077384961768984795, 0.007995358668267727, + -0.008170677348971367, 0.0063033271580934525, -0.01102470699697733, 0.007974972948431969, + 0.024381563067436218, 0.0016482018399983644, -0.03015485592186451, 0.03155740723013878, + -0.03936929255723953, 0.03415049612522125, -0.011636284179985523, -0.018167933449149132, + 0.01137534435838461, 0.04899144917726517, 0.02242451347410679, 0.023451965302228928, + -0.027692236006259918, -0.050491850823163986, -0.017368806526064873, -0.026485389098525047, + -0.013870581053197384, -0.0003751009644474834, 0.059070248156785965, -0.002014129189774394, + -0.006588730029761791, -0.02054900862276554, -0.002780639799311757, -0.025833040475845337, + -0.002627745270729065, -0.03751009702682495, 0.024479415267705917, 0.022294044494628906, + -0.03366123512387276, -0.021282901987433434, 0.0004092473827768117, -0.006075004581362009, + -0.0007114686886779964, -0.011310109868645668, -0.03878217935562134, 0.004411513451486826, + -0.004586832597851753, -0.025555791333317757, 0.02200048789381981, 0.00687413290143013, + 0.036466337740421295, 0.029747137799859047, -0.009817860089242458, -0.01225601602345705, + 0.00036796589847654104, 0.013006218709051609, -0.04814339429140091, 0.019586794078350067, + 0.015689006075263023, 0.0081666000187397, 0.006527572404593229, -0.011986922472715378, + 0.003302519442513585, -0.0020763061475008726, 0.030676735565066338, 0.0197661891579628, + 0.010845310986042023, -0.026257067918777466, 0.05750460922718048, 0.01878766529262066, + -0.028442438691854477, -0.013601487502455711, 0.027708545327186584, -0.01999451220035553, + 0.020581627264618874, -0.07632489502429962, 0.0005239181919023395, 0.021054580807685852, + 0.05942903831601143, 0.0179885383695364, -0.04879574477672577, -0.0359770767390728, + 0.01710786670446396, 0.020353304222226143, -0.005010859575122595, -0.044164061546325684, + 0.010396820493042469, 0.026159215718507767, -0.024772971868515015, -0.04964379593729973, + 0.07104086130857468, 0.007958663627505302, 0.01095131691545248, 0.02483820728957653, + 0.024430489167571068, 0.04589278623461723, 0.03165525943040848, 0.007322623394429684, + -0.03976070135831833, 0.02516438253223896, 0.0010947240516543388, -0.012647425755858421, + 0.03206297755241394, -0.010527290403842926, 0.008231835439801216, 0.015362830832600594, + 0.001993743237107992, -0.0018479838036000729, -0.03057888336479664, -0.008627322502434254, + 0.013528097420930862, -0.03649895638227463, 0.036042310297489166, 0.024544650688767433, + -0.08258745074272156, -0.0492197684943676, -0.021233975887298584, -0.010714841075241566, + -0.041261106729507446, -0.024854516610503197, -0.0246588122099638, -0.007807807996869087, + -0.031345393508672714, -0.033530764281749725, 0.023272568359971046, -0.0075917174108326435, + 0.004705070983618498, 0.03145955502986908, -0.009450913406908512, 0.0006921020685695112, + -0.04295721650123596, -0.00920628197491169, -0.012166318483650684, -0.02405538782477379, + -0.03878217935562134, 0.012843131087720394, 0.06719199568033218, 0.03966284915804863, + -0.013234540820121765, -0.032177139073610306, -0.01761343702673912, -0.005169869866222143, + -0.0037673183251172304, -0.03806459531188011, -0.004709147848188877, -0.003930405713617802, + -0.010967626236379147, -0.0005417558713816106, -0.025131763890385628, -0.027366062626242638, + -0.060374945402145386, 0.00337387016043067, -0.0034717225935310125, -0.03229130059480667, + 0.0212013591080904, -0.0063726394437253475, 0.002774524036794901, 0.006584652699530125, + -0.018934443593025208, -0.03075827844440937, -0.026012437418103218, -0.012508802115917206, + -0.02646908164024353, 0.01481648813933134, 0.028915392234921455, 0.03170418739318848, + 0.022799614816904068, -0.02762700244784355, -0.018167933449149132, -0.010005410760641098, + -0.02050008252263069, -0.04843695089221001, -0.02503391169011593, -0.078477643430233, + 0.0038203217554837465, -0.006817052140831947, -0.0007298160344362259, -0.013862427324056625, + -0.012671888805925846, -0.01263111736625433, 0.024870824068784714, -0.02731713466346264, + 0.0457623191177845, -0.005116866435855627, 0.0020436886698007584, 0.034509290009737015, + -0.005092403385788202, -0.008142136968672276, -0.0005004743579775095, -0.043413858860731125, + 0.0361727811396122, 0.004005833528935909, 0.008586550131440163, 0.036140162497758865, + 0.0011303994106128812, -0.024707738310098648, 0.02358243428170681, 0.012745278887450695, + 0.01723833568394184, 0.02260391041636467, 0.01580316759645939, 0.004101647529751062, + 0.021609077230095863, -0.02167431265115738, 0.01668383926153183, -0.006670273840427399, + 0.01971726305782795, -0.019684646278619766, -0.03335136920213699, 0.010992089286446571, + -0.014147830195724964, -0.033253517001867294, -0.04067399352788925, -0.017923302948474884, + 0.02405538782477379, -0.006315558683127165, -0.023924918845295906, -0.029143713414669037, + -0.014058131724596024, 0.01901598833501339, -0.030269017443060875, 0.0011997114634141326, + -0.0060953907668590546, 0.04703439772129059, 0.0012894095852971077, 0.0019560293294489384, + 0.019929276779294014, 0.015044810250401497, 0.01500403881072998, 0.03398741036653519, + 0.01268004346638918, -0.03437881916761398, 0.025409013032913208, -0.002008013427257538, + -0.03666204214096069, -0.010829001665115356, -0.011489505879580975, 0.025082837790250778, + -0.003834591945633292, -0.005907840095460415, 0.014686018228530884, 0.002181293675675988, + -0.02963297627866268, -0.012035848572850227, 0.003096621483564377, -0.02857290767133236, + 0.00517394719645381, 0.0007991281454451382, -0.054275479167699814, -0.03649895638227463, + -0.02111981436610222, -0.024821897968649864, -0.036466337740421295, 0.009826014749705791, + -0.013250849209725857, 0.016243502497673035, -0.001736880512908101, 0.04328338801860809, + 0.02694203518331051, 0.00019124543177895248, 0.009475376456975937, 0.038195062428712845, + 0.013601487502455711, 0.021217668429017067, -0.014539239928126335, -0.03048103116452694, + -0.030415795743465424, -0.01821685954928398, -0.02343565598130226, -0.014115212485194206, + 0.0066784280352294445, 0.03519425541162491, 0.024772971868515015, 0.016602294519543648, + 0.0016940701752901077, -0.011261183768510818, 0.02591458335518837, -0.030513647943735123, + -0.0009927944047376513, 0.01640659011900425, 0.06086421012878418, 0.02227773517370224, + -0.013854272663593292, 0.022245118394494057, 0.03137801215052605, 0.024772971868515015, + -0.03490069881081581, -0.03369385376572609, -0.05088325962424278, 0.0004915555473417044, + -0.012313096784055233, 0.018950752913951874, 0.010886082425713539, 0.004211731720715761, + -0.041782986372709274, -0.028882773593068123, 0.026827873662114143, 0.014628937467932701, + 0.0035226873587816954, -0.004855926614254713, -0.03946714475750923, 0.018885517492890358, + 0.004513442981988192, 0.0041709598153829575, 0.03561828285455704, 0.006543880794197321, + -0.04621896147727966, 0.028116263449192047, -0.010796383954584599, -0.007962740957736969, + 0.004786614328622818, -0.010388665832579136, -0.04165251553058624, -0.0013913392322137952, + 0.048860978335142136, -0.03398741036653519, -0.021315520629286766, -0.03359599784016609, + -0.03366123512387276, 0.007126918528228998, 0.009263362735509872, 0.028491364791989326, + -0.02368028648197651, -0.035161636769771576, 0.0059649208560585976, 0.02885015681385994, + -0.022766998037695885, 0.010135880671441555, 0.03731439262628555, -0.007151381578296423, + -0.03532472625374794, -0.0015034617390483618, 0.0070535289123654366, -0.008313379250466824, + 0.044392384588718414, -0.006951599381864071, -0.01020926982164383, 0.029111096635460854, + 0.013536252081394196, 0.02754545770585537, 0.00539411511272192, -0.012655580416321754, + 0.003114969003945589, 0.028931699693202972, -0.0075754085555672646, 0.019325854256749153, + 0.009165510535240173, 0.00871702004224062, 0.02200048789381981, 0.034411437809467316, + -0.026778947561979294, 0.023549817502498627, -0.011016552336513996, -0.014302763156592846, + -0.003895749803632498, 0.0006915924022905529, -0.013870581053197384, -0.009002422913908958, + -0.024756664410233498, -0.021168742328882217, -0.031850963830947876, -0.02232666127383709, + 0.00426473468542099, 0.026778947561979294, -0.013332393020391464, 0.02144598960876465, + 0.014408770017325878, 0.02363136038184166, -0.03132908418774605, 0.010282658971846104, + -0.023093173280358315, 0.01593363657593727, -0.020907802507281303, 0.016814308241009712, + -0.0005519488477148116, -0.06464783847332001, 0.012190781533718109, -0.007302237208932638, + -0.0036633501295000315, 0.003987486474215984, 0.0074449386447668076, 0.04915453493595123, + 0.01006249152123928, -0.003155740676447749, -0.011742291040718555, 0.00251562288030982, + -0.011318263597786427, -0.006136162672191858, 0.00871702004224062, 0.014270145446062088, + -0.002503391122445464, -0.0003954868880100548, -0.001559523050673306, 0.014506622217595577, + 0.019684646278619766, -0.00629109563305974, -0.01055175345391035, 0.04302245005965233, + -0.01952155865728855, -0.015648234635591507, -0.010225578211247921, 0.017792832106351852, + 0.0155422268435359, -0.004435976501554251, 0.0024993140250444412, -0.0016940701752901077, + 0.011114404536783695, -0.005369652062654495, 0.012166318483650684, -0.03927144035696983, + -0.007171767298132181, -0.011685210280120373, 0.017499275505542755, 0.024675119668245316, + -0.004774382803589106, -0.0026889031287282705, -0.0279694851487875, -0.015990717336535454, + 0.010250041261315346, -0.034085262566804886, -0.022294044494628906, -0.01181568019092083, + -0.010657760314643383, 0.03057888336479664, -0.005581665318459272, 0.02666478604078293, + 0.000430907413829118, -0.0066091157495975494, -0.012655580416321754, -0.004501211456954479, + -0.01577870361506939, -0.025196999311447144, -0.019407397136092186, 0.013829809613525867, + 0.006711045745760202, -0.006959753576666117, -0.026012437418103218, -0.002904993947595358, + -0.011693364940583706, -0.014588166028261185, 0.018755048513412476, -0.016202731058001518, + -0.00836638268083334, -0.004374818876385689, -0.006123931147158146, -0.038651708513498306, + 0.013136688619852066, -0.0324217714369297, 0.03214452043175697, 0.0037061606999486685, + 0.00624624639749527, -0.007718109991401434, -0.01321007777005434, 0.011709673330187798, + 0.028931699693202972, -0.011391653679311275, -0.009915712289512157, -0.04621896147727966, + 0.0024646578822284937, 0.010771920904517174, 0.03113337978720665, -0.0033045578747987747, + 0.017678672447800636, -0.00440335925668478, 0.007049452047795057, -0.010013564489781857, + 0.00027164240600541234, -0.030725661665201187, 0.007620257791131735, 0.003718392224982381, + -0.010086954571306705, -0.004917084239423275, 0.009573228657245636, 0.0009632348082959652, + -0.022799614816904068, 0.01055990718305111, 0.002144599100574851, -0.01924430951476097, + 0.039401911199092865, 0.006250323727726936, 0.01748296618461609, -0.0028132572770118713, + 0.0011089941253885627, 0.018722431734204292, -0.03225868195295334, -0.005092403385788202, + -0.02885015681385994, 0.004647990223020315, -0.018396256491541862, -0.016251657158136368, + -0.01542806625366211, -0.005292185582220554, 0.012908365577459335, -0.020728405565023422, + -0.00570805836468935, -0.010755612514913082, -0.023044247180223465, -0.0026848260313272476, + -0.025474248453974724, 0.0522858127951622, -0.02032068744301796, 0.019097531214356422, + 0.022342970594763756, -0.00278471689671278, -0.04400097578763962, -0.009051349014043808, + 0.04758889600634575, 0.02521330863237381, 0.0425984226167202, -0.00972000788897276, + -0.04801292344927788, -0.01984773389995098, 0.025506865233182907, -0.045044735074043274, + -0.016047798097133636, -0.0005448137526400387, -0.028719687834382057, -0.015664542093873024, + 0.012549573555588722, 0.044066209346055984, 0.00539411511272192, -0.0006227898993529379, + 0.004468594212085009, -0.013144842348992825, -0.0068252068012952805, 0.02245713211596012, + 0.012410948984324932, -0.006963830906897783, 0.022913776338100433, -0.021185049787163734, + -0.0006013846723362803, 0.009499839507043362, 0.005002705380320549, -0.015305750072002411, + 0.017923302948474884, 0.050491850823163986, 0.027659619227051735, -0.021511225029826164, + 0.0073470864444971085, 0.022489748895168304, -0.005659131798893213, -0.007098378147929907, + 0.005846682470291853, 0.007241079583764076, -0.014824642799794674, 0.008472389541566372, + -0.0006752836634404957, -0.012060311622917652, 0.006050541531294584, -0.02549055777490139, + -0.011032860726118088, -0.015990717336535454, -0.011725982651114464, 0.00794235523790121, + -0.009948330000042915, 0.014783870428800583, -0.019929276779294014, -0.00047804988571442664, + 0.002462619449943304, -0.006205474492162466, 0.03757533058524132, -0.05675440654158592, + 0.004802923183888197, -0.003139432054013014, -0.021690621972084045, -0.012965446338057518, + 0.029192639514803886, -0.03304150328040123, 0.005410423502326012, -0.012614808976650238, + 0.010706686414778233, 0.022587601095438004, 0.0013760497095063329, 0.01780914142727852, + -0.012859439477324486, -0.03969546779990196, 0.016602294519543648, -0.017972229048609734, + -0.021315520629286766, -0.016194576397538185, 0.003952830098569393, 0.07136703282594681, + 0.01002171915024519, 0.005418578162789345, -0.0010580293601378798, 0.014261990785598755, + -0.011195948347449303, -0.003243400249630213, 0.011122559197247028, -0.006405256688594818, + 0.05815695971250534, -0.005667286459356546, 0.0013801269233226776, -0.019130149856209755, + -0.025833040475845337, 0.015028501860797405, -0.004990473855286837, -0.0006125969812273979, + -0.009279672056436539, -0.02596350945532322, -0.003223014296963811, -0.012296788394451141, + -0.022489748895168304, 0.023223642259836197, -0.019211692735552788, 0.025278544053435326, + -0.01090239081531763, 0.002071209717541933, 0.004949701949954033, -0.02712143026292324, + -0.0014351689023897052, -0.017580818384885788, -0.046479903161525726, -0.024870824068784714, + -0.03382432088255882, 0.020059747621417046, -0.0002894800854846835, 0.026599550619721413, + 0.016072260215878487, 0.02880123071372509, -0.025979818776249886, 0.023598743602633476, + 0.003777511417865753, 0.022571293637156487, 0.023696595802903175, 0.0023912687320262194, + -0.015811320394277573, 0.0032821334898471832, 0.04148942977190018, -0.030317943543195724, + 0.023924918845295906, -0.03346553072333336, -0.02679525688290596, 0.008203295059502125, + 0.00972000788897276, -0.01585209369659424, 0.025784114375710487, -0.025099147111177444, + -0.0059567661955952644, 0.004026219714432955, -0.01214185543358326, -0.009141047485172749, + -0.011554740369319916, -0.0032617475371807814, -0.01118779368698597, 0.015525918453931808, + -0.007881197147071362, -0.014743098989129066, 0.009777088649570942, 0.0014932687627151608, + 0.01339762844145298, 0.010339739732444286, 0.004030296579003334, -0.0424027182161808, + -0.04054352268576622, -0.03910835459828377, -0.0008959612459875643, -0.03956499695777893, + -0.02880123071372509, -0.007159535773098469, -0.01761343702673912, 0.006812975276261568, + 0.008048362098634243, 0.021168742328882217, 0.02142968215048313, -0.04641466587781906, + 0.027366062626242638, 0.014694172888994217, -0.0002487082383595407, 0.00830522459000349, + -0.00517394719645381, -0.04990473762154579, 0.061255618929862976, 0.034280966967344284, + -0.03992379084229469, 0.020565317943692207, 0.024218475446105003, 0.006572421174496412, + -0.04073922708630562, -0.04954594373703003, -0.00372858508490026, 0.05323171988129616, + 0.004374818876385689, 0.006751817185431719, -0.020891493186354637, -0.018559344112873077, + 0.01171782799065113, -0.0014698249287903309, 0.008594704791903496, -0.0065031093545258045, + -0.0016176229109987617, 0.019032297655940056, -0.000649291614536196, -0.006486800499260426, + -0.04954594373703003, 0.0261429063975811, 0.04302245005965233, 0.011986922472715378, + 0.0029437271878123283, -0.0018500224687159061, -0.0023973844945430756, -0.0155422268435359, + -0.0029824604280292988, 0.0075224051252007484, -0.01214185543358326, -0.010486518032848835, + 0.02544162981212139, 0.01325900387018919, -0.012215244583785534, 0.029339419677853584, + -0.01496326643973589, 0.006344099063426256, -0.05182916671037674, -0.004586832597851753, + 0.004974165000021458, -0.010258195921778679, 0.022098340094089508, 0.029013244435191154, + -0.025148073211312294, -0.006344099063426256, 0.021266594529151917, 0.02032068744301796, + -0.003598115174099803, -0.015607462264597416, 0.020353304222226143, -0.005332957021892071, + 0.023696595802903175, -0.003076235530897975, -0.0030110005754977465, -0.00634002173319459, + -0.008093210868537426, 0.002748022321611643, 0.013087761588394642, 0.03168787807226181, + 0.0357813686132431, 0.011937996372580528, -0.01263111736625433, 0.023174716159701347, + 0.00997279305011034, -0.0028499518521130085, 0.011611821129918098, 0.006421565543860197, + -0.02977975457906723, 0.048763126134872437, 0.002884607994928956, 0.03584660589694977, + -0.0013475094456225634, -0.006034233141690493, 0.00953245721757412, 0.026354920119047165, + 0.011212256737053394, -0.014539239928126335, 0.014946958050131798, -0.0025584332179278135, + -0.02922525815665722, -0.012419103644788265, -0.013046990148723125, 0.015379139222204685, + -0.003875363850966096, 0.0106985317543149, 0.031850963830947876, 0.0326174758374691, + 0.009964638389647007, 0.020809948444366455, 0.029567740857601166, -0.02036961354315281, + 0.02217988297343254, -0.017972229048609734, 0.016096724197268486, 0.015110045671463013, + 0.01146504282951355, -0.006649887654930353, -0.018119007349014282, -0.0036307326517999172, + -0.025196999311447144, 0.013438399881124496, 0.04152204468846321, -0.03506378456950188, + -0.011432425118982792, 0.00534926587715745, 0.005777370184659958, 0.022114647552371025, + 0.01668383926153183, -0.0138379642739892, -0.00800351332873106, -0.02358243428170681, + 0.032731637358665466, 0.012198936194181442, 0.02368028648197651, -0.018167933449149132, + -0.02456095814704895, -0.011546586640179157, -0.03976070135831833, 0.020842567086219788, + 0.013250849209725857, 0.045273054391145706, 0.010421283543109894, 0.008741483092308044, + -0.02217988297343254, 0.01603148877620697, -0.0026379383634775877, -0.031997743993997574, + 0.015697160735726357, -0.01398474257439375, 0.0016145650297403336, -0.006311481352895498, + -0.03705345094203949, -0.011114404536783695, -0.04915453493595123, 0.009059503674507141, + -0.013813501223921776, 0.061581794172525406, -0.00852946937084198, 0.017548201605677605, + 0.011057323776185513, 0.01481648813933134, -0.02087518386542797, -0.014367997646331787, + 0.004688762128353119, 0.010315276682376862, -0.010315276682376862, -0.002171100815758109, + -0.005072017200291157, -0.020157599821686745, 0.0359770767390728, 0.03415049612522125, + 0.01505296491086483, -0.025833040475845337, 0.014107057824730873, -0.008961651474237442, + -0.004411513451486826, 0.028996935114264488, -0.05336219072341919, -0.004652067553251982, + -0.038097210228443146, 0.014686018228530884, 0.024870824068784714, -0.020793640986084938, + -0.042109161615371704, -0.0023953458294272423, 0.03159002587199211, -0.022212501615285873, + -0.026811564341187477, 0.029747137799859047, 0.006543880794197321, 0.021331828087568283, + 0.014278300106525421, -0.01244356669485569, -0.014017360284924507, -0.0035553048364818096, + -0.013063298538327217, 0.01298175472766161, 0.013275312259793282, -0.028034720569849014, + -0.036694660782814026, 0.0003042598837055266, 0.0011956343660131097, -0.03910835459828377, + 0.004407436121255159, -0.025457939133048058, -0.013772728852927685, 0.007379703689366579, + ], + index: 37, + }, + { + title: "List of African countries by population", + text: "This is a list of African countries and dependent territories sorted by population, which is sorted by the 2015 the mid-year normalized demographic projections.", + vector: [ + 0.0324319452047348, 0.07498246431350708, -0.018316054716706276, -0.02339920774102211, + -0.017242148518562317, -0.014461927115917206, 0.009885896928608418, -0.015750613063573837, + 0.015130135230720043, -0.011675738729536533, 0.009116264060139656, -0.051117900758981705, + -0.04214482381939888, 0.033314935863018036, 0.02149004116654396, -0.023661717772483826, + 0.04627339541912079, -0.00022540829377248883, 0.09722424298524857, 0.008185545913875103, + -0.025320304557681084, -0.00628234725445509, -0.0023670666851103306, 0.018101273104548454, + 0.02009396441280842, 0.034699078649282455, 0.02818405255675316, -0.005232306197285652, + -0.009897829033434391, 0.02794540673494339, 0.04104705527424812, -0.02052352763712406, + 0.032026246190071106, -0.022408828139305115, 0.024437315762043, 0.01496308296918869, + -0.06543663889169693, 0.011156684719026089, 0.037896931171417236, 0.03887537866830826, + 0.05064060911536217, -0.01690804585814476, -0.018041612580418587, 0.04410171881318092, + 0.009050636552274227, -0.07154597342014313, -0.03885151445865631, -0.00714147137477994, + 0.014139755629003048, -0.020845698192715645, -0.008113952353596687, 0.035605933517217636, + -0.07646206766366959, -0.007213065400719643, -0.055843085050582886, 0.011723468080163002, + -0.04414944723248482, 0.047824591398239136, -0.0003389514167793095, 0.019222907721996307, + 0.024771420285105705, 0.01707509718835354, 0.03441270440816879, 4.842829002882354e-5, + 0.00518159382045269, 0.006079498212784529, -0.0370139442384243, 0.012874933890998363, + 0.053408898413181305, 0.04620179906487465, 0.053647544234991074, 0.002472965745255351, + 0.009056602604687214, -0.009653217159211636, -0.011061226949095726, 0.019043924286961555, + 0.02909090556204319, -0.005548511631786823, 0.05250204727053642, 0.03505704924464226, + 0.03446043282747269, 0.0015071965754032135, 0.038517411798238754, 0.04982921481132507, + 0.02971138432621956, 0.0015176372835412621, 0.0020120812114328146, -0.04319486394524574, + -0.00866283755749464, -0.017027368769049644, -0.010607799515128136, 0.02854202128946781, + 0.04443582147359848, 0.015106270089745522, 0.026346480473876, 0.028732938691973686, + 0.031047800555825233, -0.01051830779761076, 0.06997090578079224, 0.0011932282941415906, + -0.0217644851654768, -0.043099407106637955, 0.013960771262645721, 0.00497277919203043, + 0.013972703367471695, 0.011419194750487804, 0.03429338335990906, -0.07536429911851883, + -0.003898873459547758, 0.03367290273308754, 0.004722201265394688, 0.03446043282747269, + 0.005369527265429497, 0.0037765675224363804, 0.008215377107262611, 0.0027354760095477104, + -0.006598552688956261, -0.029902301728725433, 0.006306211464107037, 0.04085613787174225, + 0.03488999605178833, 0.018101273104548454, 0.04856439307332039, 0.07345513254404068, + -0.02194346860051155, 0.06405249238014221, -0.006932656746357679, 0.008012528531253338, + 0.006336042191833258, -0.011711535975337029, -0.023661717772483826, 0.049447380006313324, + -0.00047691844520159066, 0.014211349189281464, -0.0005593257956206799, -0.0005365798715502024, + 0.05140427500009537, -0.04911327734589577, -0.019485417753458023, 0.06052054092288017, + 3.500447201076895e-5, -0.043099407106637955, 0.017552388831973076, 0.010381086729466915, + -0.015082405880093575, -0.011216346174478531, 0.002010589698329568, 0.022647473961114883, + -0.006813333835452795, -0.020845698192715645, -0.009253486059606075, -0.015750613063573837, + 0.05173838138580322, 0.01477216649800539, 0.00723692961037159, 0.02909090556204319, + 0.023232154548168182, 0.009032738395035267, 0.00961741991341114, 0.025224845856428146, + 0.011317770928144455, 0.0496382974088192, -0.031787604093551636, -0.025391899049282074, + 0.012839136645197868, -0.027348792180418968, 0.005196509417146444, 0.0042836894281208515, + -0.029067041352391243, -0.016919977962970734, 0.02534416876733303, -0.030737562105059624, + -0.00527705205604434, 0.005253187846392393, -0.02565440908074379, 0.006264448631554842, + 0.03236035257577896, -0.016657467931509018, -0.005002609919756651, -0.0018032663501799107, + 0.010124541819095612, -0.025988513603806496, 0.022516218945384026, -0.020869562402367592, + -0.025153253227472305, -0.01641882210969925, 0.0007524795946665108, 0.020129762589931488, + -0.003523006569594145, -0.021573567762970924, -0.032408080995082855, -0.014509656466543674, + -0.04445968568325043, -0.012994256801903248, 0.06443432718515396, -0.018005814403295517, + -0.024210602045059204, -0.020953088998794556, -0.026585126295685768, 0.05235885828733444, + -0.020368406549096107, -0.00028917143936268985, 0.021919604390859604, 0.02117980271577835, + -0.0019643520936369896, -0.004716234747320414, 0.01996270939707756, -0.06815720349550247, + -0.03228875994682312, 0.00930121447890997, -0.04687000811100006, -0.016717128455638885, + -0.0374196395277977, 0.03173987194895744, 0.03016481176018715, 0.01603698916733265, + 0.002898053266108036, -0.003534938907250762, 0.04441195726394653, 0.006052650511264801, + 0.06758445501327515, 0.002270116936415434, -0.02458050288259983, -0.033171746879816055, + -0.040736813098192215, -0.05407710745930672, 0.03718099370598793, 0.01847117394208908, + -0.0012775000650435686, 0.015858003869652748, -0.000102356614661403, -0.03016481176018715, + 0.04033111780881882, -0.019950777292251587, -0.01409202627837658, 0.023172494024038315, + 0.0169796384871006, -0.023864567279815674, 0.0060198367573320866, 0.07083003222942352, + -0.018423445522785187, -0.03918561711907387, -0.0129823237657547, -0.006094413809478283, + -0.022420760244131088, 0.05932731181383133, -0.010202102363109589, -0.03916175290942192, + 0.06896859407424927, 0.06419568508863449, -0.03376835957169533, -0.01404429692775011, + -0.024771420285105705, -0.014784098602831364, -0.00440897885710001, 0.03763442113995552, + 0.06433887034654617, -0.02968752011656761, -0.01256469450891018, -0.023494666442275047, + -0.010017151944339275, -0.018733683973550797, -0.014354536309838295, -0.006944588851183653, + 0.006461331155151129, -0.029806843027472496, 0.04987694323062897, -0.028804531320929527, + 0.037610556930303574, -0.016514280810952187, -0.013781786896288395, 0.010756953619420528, + -0.022611675783991814, -0.018351851031184196, 0.03715712949633598, 0.05655902251601219, + 0.0461779348552227, -0.041643667966127396, 0.00812588445842266, 0.03030799888074398, + -0.003955551888793707, -0.008239241316914558, 0.014318739995360374, -0.005142814014106989, + -0.043934665620326996, 0.03338652849197388, -0.03911402449011803, -0.05708404257893562, + -0.013101646676659584, -0.015571629628539085, -0.011801027692854404, 0.045629050582647324, + 0.029520468786358833, 0.01985531859099865, 0.0008814973989501595, -0.013698261231184006, + 0.004483555443584919, 0.021931536495685577, 0.02103661559522152, 0.07006637006998062, + -0.0055872914381325245, 0.015213660895824432, 0.009933625347912312, 0.0033649038523435593, + -0.03267059102654457, -0.024365723133087158, -0.024914607405662537, -0.05479304492473602, + -0.008084122091531754, 0.0370139442384243, -0.007797746919095516, 0.01968826726078987, + -0.0034722944255918264, -0.017194420099258423, 0.030833018943667412, -0.004167350009083748, + 0.046297259628772736, -0.007511372212320566, 0.043481238186359406, 0.009766574017703533, + 0.007839510217308998, -0.032026246190071106, -0.07975538074970245, 0.00911029800772667, + -0.013495412655174732, -0.011341635137796402, -0.007576999720185995, -0.026227157562971115, + 0.011622044257819653, -0.032193299382925034, 0.004769930150359869, -0.037753742188215256, + -0.009987320750951767, -0.052788421511650085, 0.03916175290942192, 0.03648892045021057, + 0.026083970442414284, -0.027826083824038506, -0.02370944619178772, -0.001560145989060402, + -0.0056380038149654865, 0.0008650905219838023, 0.02009396441280842, 0.021752553060650826, + 0.032718319445848465, 0.0022537100594490767, -0.05488850176334381, 0.012182861566543579, + 0.015177864581346512, -0.018208663910627365, 0.00038630765629932284, -0.03801625594496727, + 0.019604740664362907, 0.033410392701625824, 0.027659032493829727, -0.014796030707657337, + 0.0067954352125525475, 0.009677081368863583, -0.003487209789454937, -0.04727570712566376, + -0.010637630708515644, 0.02023715153336525, -0.03107166476547718, 0.00282496795989573, + -0.050354234874248505, -0.026227157562971115, 0.02166902646422386, -0.004653590265661478, + 0.034007005393505096, 0.0316682793200016, 0.009444402530789375, 0.019664403051137924, + -0.004907151684165001, 0.010148406960070133, -0.055699896067380905, 0.028494292870163918, + -0.016478482633829117, 0.01829219050705433, 0.004325452726334333, -0.03918561711907387, + -0.00630024541169405, 0.05827727168798447, 0.03231262415647507, 0.03455589339137077, + -0.033100154250860214, -0.038445815443992615, 0.05312252417206764, -0.01256469450891018, + -0.030427321791648865, 0.018936533480882645, 0.05250204727053642, -0.03932880610227585, + 0.02818405255675316, 0.0015392645727843046, 0.039137888699769974, -0.03429338335990906, + 0.036918483674526215, 0.006485195830464363, -0.04713251814246178, -0.04092773050069809, + -0.04436422884464264, -0.029353417456150055, -0.0012633304577320814, 0.0033499884884804487, + -0.003994331695139408, 0.024079347029328346, -0.0005775970639660954, -0.011150718666613102, + 0.029496604576706886, 0.03333880007266998, -0.00649116188287735, 0.0504019632935524, + -0.05006786063313484, 0.005837869364768267, -0.022611675783991814, -0.004382131155580282, + 0.006580654066056013, 0.023065103217959404, 0.029950030148029327, 0.017791034653782845, + 0.010804682038724422, -0.022086655721068382, -0.015165931545197964, 0.010404950939118862, + -0.06395703554153442, 0.037515100091695786, -0.01579834334552288, 0.012057572603225708, + -0.05947050079703331, -0.0015101796016097069, 0.041786856949329376, 0.01447385922074318, + -0.0534566268324852, -0.012445371598005295, 0.0014430604642257094, 0.004295621998608112, + -0.05231112986803055, -0.04696546494960785, -0.0006476992275565863, 0.0008516667294315994, + -0.065675288438797, -0.022921916097402573, -0.0005701393820345402, 0.021275261417031288, + -0.020153626799583435, -0.030498916283249855, -0.03823103383183479, 0.005107017233967781, + -0.0036721602082252502, -0.014628979377448559, 0.03632187098264694, 0.004483555443584919, + -0.03541501611471176, 0.01745693013072014, -0.04130956530570984, -0.01683645136654377, + 0.035391151905059814, -0.01927063800394535, -0.0004112908791285008, 0.025248711928725243, + -0.005202475469559431, 0.01090014073997736, 0.012695949524641037, -0.03715712949633598, + 0.04185844957828522, -0.014080094173550606, -0.022194046527147293, -0.011908418498933315, + -0.04147661477327347, 0.045843832194805145, -0.05359981581568718, -0.009605487808585167, + -0.03579685091972351, 0.01553583238273859, -0.021704822778701782, -0.010685359127819538, + 0.009104331955313683, 0.06228651851415634, -0.027444250881671906, -0.018626293167471886, + -0.0028264594729989767, 0.030570508912205696, -0.03846967965364456, 0.01791035756468773, + -0.036608245223760605, -0.023065103217959404, -0.023232154548168182, 0.022420760244131088, + -0.03457975760102272, 0.01351927686482668, 0.026847636327147484, 0.03794465959072113, + 0.010577969253063202, 0.005417256616055965, -0.01645461842417717, -0.017158623784780502, + 0.00885375402867794, -0.021120140329003334, 0.008203445002436638, 0.04076068103313446, + -0.025224845856428146, 0.02816018834710121, 0.027444250881671906, 0.006001938600093126, + -0.0027563574258238077, -0.003391751553863287, -0.024461179971694946, -0.04865984991192818, + -0.03551047295331955, -0.019986573606729507, 0.028661344200372696, 0.03586844354867935, + -0.0026981874834746122, -0.01836378313601017, 0.055222608149051666, 0.030809154734015465, + 0.07918263226747513, 0.024747556075453758, -0.006139159668236971, -0.0040689087472856045, + -0.03632187098264694, 0.03343425691127777, -0.007099708542227745, 0.0008539039990864694, + -0.029759114608168602, 0.04925646632909775, -0.005852784961462021, -0.007481541484594345, + 0.00318890274502337, -0.014187484979629517, -0.013936907052993774, -0.0021776417270302773, + 0.009253486059606075, -0.05030650645494461, -0.0030934445094317198, -0.061188749969005585, + 0.0580386258661747, -0.06190468370914459, -0.008412259630858898, 0.02038034051656723, + 0.024389587342739105, 0.02205085940659046, -0.013984635472297668, -0.03403087332844734, + -0.045461997389793396, 0.000855395570397377, -0.00328436098061502, 0.00798269733786583, + -0.02551122196018696, -0.04434036463499069, -0.00029644265305250883, -0.0028294427320361137, + -0.014796030707657337, -0.011812960729002953, -0.02166902646422386, 0.010649562813341618, + 0.03333880007266998, -0.009140129201114178, -0.003171004354953766, -0.03610708937048912, + 0.016323363408446312, -0.021919604390859604, 0.019210975617170334, -0.001032888307236135, + -0.017158623784780502, 0.014748302288353443, -0.039209481328725815, 0.042335741221904755, + -0.02370944619178772, 0.0017257065046578646, 0.035391151905059814, 0.0014937727246433496, + -0.004104705527424812, 0.04992467164993286, 0.01863822713494301, 0.021704822778701782, + 0.00949213095009327, -0.009414571337401867, 0.006383771542459726, -0.02534416876733303, + -0.013578938320279121, 0.02450891025364399, -0.018721751868724823, -0.0062763807363808155, + 0.03023640625178814, -0.008430157788097858, 0.0079170698300004, 0.021394584327936172, + 0.011598179116845131, -0.012779475189745426, 0.049590568989515305, -0.0027578489389270544, + 0.02892385423183441, -0.05107017233967781, -0.0024848980829119682, -0.02839883416891098, + -0.03885151445865631, 0.022969644516706467, -0.008633007295429707, -0.0033082254230976105, + 0.04529494792222977, 0.03562979772686958, 0.010106643661856651, -0.03978223353624344, + -0.02399582229554653, 0.02280259318649769, 0.03696621209383011, -0.032408080995082855, + -0.004137519281357527, 0.006052650511264801, -0.03498545289039612, -0.015189796686172485, + 0.003946602810174227, -0.009969422593712807, -0.04787231981754303, 0.04324259236454964, + -0.027826083824038506, 0.006413602270185947, 0.0229099839925766, 0.02787381410598755, + 0.02923409454524517, -0.00564993591979146, -0.012469235807657242, -0.007117606699466705, + 0.013614735566079617, 0.00817361380904913, -0.0022000146564096212, -0.04071294888854027, + 0.019425757229328156, -0.026370346546173096, -0.0008658362785354257, -0.005599224008619785, + -0.014843760058283806, -0.012158996425569057, -0.023792972788214684, -0.006222685799002647, + -0.029806843027472496, -0.008925347588956356, -0.001980758970603347, 0.020988885313272476, + 0.03770601376891136, 0.04505630210042, -0.053027067333459854, 0.012033707462251186, + -0.008841821923851967, -0.006497128400951624, -0.044006261974573135, -0.02656126208603382, + -0.017337607219815254, 0.024699825793504715, -0.009993286803364754, -0.0004828845849260688, + -0.005903496872633696, -0.009605487808585167, 0.0036095157265663147, -0.006007904652506113, + 0.0023282866459339857, -0.011783129535615444, 0.02211051993072033, 0.028446562588214874, + -0.041882313787937164, 0.013638599775731564, 0.017122825607657433, 0.0024714742321521044, + 0.02263554185628891, -0.004319486673921347, 0.03522409871220589, -0.06467297673225403, + 0.035009317100048065, -0.00028786633629351854, -0.021478109061717987, -0.02732492797076702, + -0.014056229963898659, 0.004749048501253128, 0.032789915800094604, 0.014819895848631859, + -0.0679662823677063, 0.03205011412501335, 0.004892236087471247, -0.015702884644269943, + -0.02123946323990822, -0.00015325525600928813, -0.022504286840558052, 0.016919977962970734, + -0.0015750613529235125, -0.004206129815429449, 0.013924974016845226, 0.04749048873782158, + 0.011639942415058613, 0.006306211464107037, -0.005629054736346006, -0.01767171174287796, + 0.03006935305893421, -0.011383398436009884, 0.007099708542227745, -0.04596315324306488, + -0.0011708552483469248, 0.01530911959707737, 0.053170252591371536, -0.014068162068724632, + -0.043409645557403564, 0.05016331747174263, -0.02061898447573185, -0.052883878350257874, + -0.024317992851138115, 0.010041016153991222, 0.0003652397426776588, -0.016478482633829117, + -0.04968602582812309, -0.021788349375128746, -0.0038571106269955635, -0.014867625199258327, + -0.032479673624038696, 0.022337233647704124, -0.0618569552898407, -0.01770750805735588, + -0.016717128455638885, -0.00666418019682169, 0.0028652395121753216, 0.02038034051656723, + -0.032479673624038696, 0.007266760338097811, -0.011610111221671104, 0.027229471132159233, + -0.0065388912335038185, -0.01978372596204281, -0.02270713448524475, -0.005336713511496782, + 0.015034676529467106, 0.02440151944756508, -0.0023730327375233173, 0.04443582147359848, + 0.031238717958331108, 0.015368781052529812, -0.014175552874803543, -0.006843164563179016, + 0.016752924770116806, 0.01885300688445568, -0.015595493838191032, -0.013889177702367306, + -0.003794466145336628, -0.01707509718835354, -0.0021761502139270306, -0.04901782050728798, + 0.0028294427320361137, 0.0370139442384243, -0.050879254937171936, -0.02385263331234455, + 0.019557012245059013, 0.009080467745661736, -0.015989258885383606, 0.015822207555174828, + 0.008829889819025993, -0.02503393031656742, -0.022337233647704124, -0.021263329312205315, + -0.01808934099972248, -0.009289282374083996, -0.005169661715626717, -0.002868222538381815, + -0.008227309212088585, 0.03281378000974655, -0.015189796686172485, 0.018447309732437134, + -0.049590568989515305, -0.05016331747174263, -0.014223281294107437, 0.005614139139652252, + -0.02149004116654396, -0.01652621291577816, 0.015404577367007732, -0.02932955138385296, + 0.0071832346729934216, 0.012445371598005295, 0.007386083249002695, 0.04457901045680046, + -0.012349912896752357, 0.005548511631786823, 0.0009478707215748727, -0.04099932312965393, + -0.006694010924547911, 0.04114251211285591, -0.038660597056150436, 0.02527257613837719, + 0.0008039375534281135, -0.03906629607081413, -0.005211424548178911, -0.017647847533226013, + 0.024258332327008247, -0.01256469450891018, 0.004349317401647568, -0.033195611089468, + 0.0036840925458818674, -0.04076068103313446, 0.010148406960070133, 0.007559101562947035, + 0.03281378000974655, 0.0047371163964271545, -0.019879184663295746, 0.01783876307308674, + -0.02794540673494339, 0.011067193001508713, -0.036059360951185226, 0.027826083824038506, + -0.01896039769053459, 0.01878141425549984, -0.05612945929169655, -0.02128719352185726, + -0.0032545302528887987, 0.02125139720737934, -0.0035200235433876514, -0.07001863420009613, + -0.018077408894896507, -0.015571629628539085, -0.02663285657763481, -0.057227231562137604, + 0.04739502817392349, -0.035295695066452026, 0.001953911269083619, -0.04030725359916687, + 0.015774479135870934, -0.020750241354107857, 0.002695204457268119, 0.01936609484255314, + 0.023804904893040657, -0.020129762589931488, 0.0124095743522048, -0.025773731991648674, + 0.02092922478914261, 0.010488476604223251, -0.015142067335546017, -0.022432692348957062, + 0.020607052370905876, -0.013030053116381168, -0.003612498752772808, 0.005488850176334381, + 0.039806097745895386, 0.028613615781068802, -0.01419941708445549, -0.006902826018631458, + 0.017898425459861755, -0.038135576993227005, -0.01313744392246008, -0.005784174427390099, + 0.032026246190071106, -0.03412633016705513, 0.004593928810209036, -0.04756208136677742, + 0.05274069309234619, 0.01294652745127678, -0.049972403794527054, 0.037061672657728195, + 0.005837869364768267, 0.012719813734292984, 0.028756802901625633, 0.006413602270185947, + -0.01645461842417717, 0.03486613184213638, 0.03648892045021057, 0.008931313641369343, + -0.03434111177921295, 0.02332761324942112, 0.025821460410952568, -0.003341039177030325, + -0.01515399944037199, 0.029806843027472496, -0.006944588851183653, -0.01745693013072014, + -0.018805278465151787, 0.007111640647053719, -0.02930568717420101, 0.012481167912483215, + -0.028732938691973686, -0.05436348170042038, 0.007600864395499229, 0.005059287883341312, + 0.0035677526611834764, 0.007654559798538685, 0.03221716359257698, 0.011574314907193184, + -0.005080169532448053, 0.013197105377912521, -0.023244088515639305, 0.05402937904000282, + 0.004397046286612749, -0.02069057896733284, 0.013674396090209484, -0.0030352745670825243, + 0.05178610980510712, 0.011824892833828926, 0.02496233582496643, -0.03746736794710159, + -0.011097023263573647, -0.026608992367982864, 0.007350286468863487, 0.037061672657728195, + 0.05985233187675476, -0.0038869413547217846, 0.02003430388867855, 0.03245580941438675, + 0.013555074110627174, -0.0519292950630188, 0.023077035322785378, 0.002881646389141679, + 0.04052203521132469, 0.033171746879816055, 0.003851144341751933, 0.01400850061327219, + 0.027826083824038506, 0.0023849650751799345, -0.05923185497522354, -0.04574837535619736, + -0.015822207555174828, 0.03185919672250748, -0.008579311892390251, -0.031883060932159424, + -0.0024416435044258833, 0.047227974981069565, -0.012445371598005295, 0.018793346360325813, + 0.018447309732437134, -0.02007010020315647, 0.007654559798538685, -0.01847117394208908, + 0.027348792180418968, 0.03147736191749573, -0.038660597056150436, 0.0034543960355222225, + 0.01220075972378254, -0.0018882837612181902, -0.019568944349884987, 0.004191214684396982, + -0.03412633016705513, -0.028231782838702202, 0.05369527265429497, 0.0030337830539792776, + -0.017373403534293175, 0.008167647756636143, -0.009820269420742989, -0.005324781406670809, + 0.010756953619420528, 0.011055259965360165, 0.016502346843481064, 0.017886493355035782, + 0.009885896928608418, -0.0008762770448811352, 0.0060854642651975155, -0.006437466945499182, + 0.04765753820538521, 0.007314489688724279, -0.016848383471369743, -0.01553583238273859, + 0.035916171967983246, -0.03687075525522232, 0.001680960413068533, -0.005008575972169638, + -0.017552388831973076, 0.030665967613458633, -0.048134829849004745, -0.01936609484255314, + -0.012719813734292984, 0.04298008233308792, -0.0022074724547564983, 0.00461779348552227, + 0.05665447935461998, 0.0030606305226683617, -0.05359981581568718, -0.012695949524641037, + 0.0003096800355706364, -0.01166380662471056, -0.06968453526496887, 0.024986201897263527, + 0.05293160676956177, 0.01943768933415413, 0.0035409049596637487, 0.04333805292844772, + -0.01592959836125374, 0.0007897680043242872, 0.02301737479865551, -0.002219404559582472, + -0.01347154751420021, -0.014628979377448559, -0.005569393280893564, -0.018005814403295517, + 0.013638599775731564, 0.028804531320929527, 0.007445744704455137, -0.02218211442232132, + -0.012528897263109684, 0.04068908467888832, 0.0014907895820215344, -0.0014743827050551772, + 0.019604740664362907, -0.026990825310349464, -0.012254455126821995, -0.030140947550535202, + -0.0025788648054003716, 0.006198821123689413, 0.014175552874803543, 0.04176299273967743, + 0.0031053766142576933, 0.06047281250357628, -0.01669326424598694, 0.0351286418735981, + -0.029043177142739296, 0.041118647903203964, 0.010589901357889175, -0.00014356027531903237, + -0.024150941520929337, 0.07927808910608292, -0.004701319616287947, 0.013590870425105095, + 0.004561115056276321, 0.03302856162190437, 0.024795284494757652, -0.005444104317575693, + -0.0015750613529235125, 0.024938471615314484, 0.006843164563179016, -0.02565440908074379, + 0.03388768434524536, 0.003773584496229887, -0.007451710756868124, 0.021716754883527756, + 0.00164218049030751, 0.020463865250349045, -0.006455365102738142, -0.014617047272622585, + -0.014903421513736248, 0.009175925515592098, 0.012636288069188595, -0.03562979772686958, + 0.005629054736346006, 0.003898873459547758, -0.05068833753466606, -0.008597210049629211, + -0.02399582229554653, -0.015249458141624928, 0.03305242583155632, -0.015165931545197964, + 0.0023238121066242456, 0.0019718098919838667, 0.019282570108771324, 0.017647847533226013, + -0.013972703367471695, -0.029878437519073486, -0.02641807496547699, -0.0022537100594490767, + -0.028756802901625633, 0.010148406960070133, 0.0013610260793939233, 0.048874631524086, + 0.009724810719490051, -0.003257513279095292, -0.014366469345986843, 0.039281077682971954, + 0.019330298528075218, -0.00789917167276144, -0.024795284494757652, 0.00038668056367896497, + 0.02356625907123089, -0.01270788162946701, -0.0037676184438169003, -0.03300469368696213, + -0.00628234725445509, -0.006813333835452795, -0.008811990730464458, -0.016084717586636543, + -0.028804531320929527, -0.039281077682971954, -0.008752329275012016, -0.034174058586359024, + 0.009366841986775398, 0.0124095743522048, 0.010303526185452938, 0.03231262415647507, + -0.019497349858283997, -0.0066045187413692474, 0.008979042991995811, -0.02009396441280842, + 0.027826083824038506, -0.024294128641486168, 0.02283838950097561, -0.01934223063290119, + -0.03982996195554733, -0.00912819616496563, 0.008615108206868172, -0.019914980977773666, + -0.03947199136018753, 0.03405473753809929, 0.0034156159963458776, -0.03257513418793678, + 0.016824519261717796, 0.013447683304548264, 0.0015929598594084382, -0.010792749933898449, + -0.04519948735833168, 0.01473637018352747, 0.005157729610800743, -0.012433439493179321, + -0.021322989836335182, 0.01061973161995411, 0.002018047496676445, -0.025606678798794746, + 0.00798269733786583, -0.0026966959703713655, -0.036823026835918427, 0.003976433537900448, + -0.028494292870163918, 0.02141844853758812, -0.004229994490742683, 0.007469609379768372, + -0.030475052073597908, 0.004698336590081453, 0.03288537263870239, 0.026083970442414284, + -0.041261836886405945, 0.025558950379490852, 0.013352224603295326, -0.010166305117309093, + -0.009480198845267296, -0.007051979191601276, -0.006479229778051376, -0.01656200923025608, + 0.01466477569192648, -0.003552837297320366, -0.007654559798538685, 0.013495412655174732, + 0.03994928300380707, 0.006145125720649958, -0.022194046527147293, 0.029568197205662727, + -0.004367215558886528, -0.03839808702468872, 0.003925721161067486, -0.006652248091995716, + 0.01934223063290119, -0.003305242396891117, 0.014998880214989185, -0.015237526036798954, + -0.015786411240696907, -0.006234617903828621, 0.01194421574473381, 0.003660227870568633, + -0.0029741215985268354, 0.0017883509863168001, 0.00583190331235528, -0.01220075972378254, + -0.012994256801903248, 0.00845402292907238, -0.015702884644269943, 0.03006935305893421, + 0.018137071281671524, -0.002459541894495487, 0.004364232532680035, 0.0040480270981788635, + 0.004659556783735752, -0.021275261417031288, -0.011568348854780197, 0.00014104331785347313, + 0.014831827953457832, 0.014032364822924137, 0.002802595030516386, -0.0032604963053017855, + -0.021549703553318977, -0.003687075572088361, 0.002611678559333086, -0.00817361380904913, + -0.002750391373410821, 0.013423818163573742, -0.026752179488539696, -0.02648966945707798, + 0.007815645076334476, 0.008591243997216225, 0.019640538841485977, -0.0048982021398842335, + -0.002361100632697344, -0.024150941520929337, 0.011777163483202457, -0.008322767913341522, + -0.01718248799443245, -0.006067566107958555, -0.02187187597155571, 0.030785290524363518, + -0.006163024343550205, 0.02069057896733284, -0.0036751432344317436, 0.0217644851654768, + -0.013757922686636448, -0.004280706401914358, 0.015464238822460175, -0.03830263018608093, + 0.014688640832901001, 0.007415913976728916, 0.01579834334552288, 0.020404204726219177, + 0.008048324845731258, 0.039424262940883636, -0.007582965772598982, 0.0040987394750118256, + 0.037443503737449646, -0.006652248091995716, -0.008185545913875103, -0.016084717586636543, + 0.007654559798538685, 0.022898051887750626, -0.013161308132112026, 0.011616077274084091, + -0.003707956988364458, 0.02780221961438656, 0.025535086169838905, -0.0006570213590748608, + -0.008096054196357727, 0.04441195726394653, 0.018172867596149445, -0.004367215558886528, + -0.016466550529003143, 0.008245207369327545, 0.01017227116972208, 0.004602878354489803, + -0.004015213344246149, -0.017301810905337334, -0.014426130801439285, -0.01026176381856203, + -0.04641658067703247, -0.03982996195554733, 0.010804682038724422, -0.0007860391633585095, + -0.006228651851415634, -0.009515996091067791, 0.018864938989281654, 0.022229842841625214, + -0.037992388010025024, 0.0362502746284008, -0.03290923684835434, 0.0025893053971230984, + -0.00836453028023243, 0.026513533666729927, -0.005599224008619785, -0.01714669167995453, + 0.02205085940659046, 0.02663285657763481, -0.007380117196589708, -0.011890520341694355, + -0.00014784844825044274, 0.02777835540473461, 0.01781489886343479, -0.030665967613458633, + -0.0061570582911372185, 0.02009396441280842, -0.000147568789543584, 0.008292936719954014, + -0.0013528226409107447, -0.03238421678543091, 0.033171746879816055, 0.011622044257819653, + 0.0127914072945714, -0.0066343494690954685, -0.009510030038654804, 0.03159668669104576, + -0.018733683973550797, -0.01371019333600998, 0.01652621291577816, -0.003496158868074417, + -0.04784845560789108, 0.007541202940046787, 0.007129539269953966, 0.022862253710627556, + -0.014318739995360374, -0.006028786301612854, 0.01850697211921215, 0.01305391825735569, + 0.007541202940046787, -0.05183383822441101, 0.038517411798238754, 0.03398314118385315, + 0.02825564704835415, -0.003824296873062849, 0.006365872919559479, -0.006216719746589661, + 0.01308971457183361, -0.01466477569192648, 0.011186515912413597, -0.028422698378562927, + 0.0033201577607542276, 0.028279511258006096, 0.02749198116362095, -0.03307629004120827, + -0.016740992665290833, 0.009396673180162907, -0.0004433589056134224, -0.019210975617170334, + -0.021657094359397888, -0.010142440907657146, 0.010375120677053928, 0.0060407184064388275, + 0.007433812599629164, 0.00675963843241334, -0.007302557118237019, 0.019557012245059013, + -0.006425534375011921, 0.0013662463752552867, -0.014497724361717701, 0.020105896517634392, + -0.006010887678712606, -0.023721378296613693, 0.018697887659072876, -0.03486613184213638, + -0.005664851516485214, 0.02641807496547699, -0.037133265286684036, -0.001321500400081277, + 0.01251696515828371, 0.02854202128946781, -0.0030636137817054987, 0.028207916766405106, + -0.004644641187041998, 0.01251696515828371, 0.0162159726023674, -0.004441792611032724, + -0.011890520341694355, -0.0328376442193985, -0.008668803609907627, -0.024389587342739105, + 0.01062569860368967, -0.009050636552274227, -0.01381758414208889, 0.02245655655860901, + 0.00047057942720130086, -0.0015586544759571552, 0.026704449206590652, 0.031119395047426224, + -0.010023117996752262, -0.00032925643608905375, 0.011431126855313778, -0.031954653561115265, + 0.03574911877512932, 0.023721378296613693, 0.016025057062506676, 0.002481914823874831, + -0.023518530651926994, 0.003913789056241512, -3.505108179524541e-5, 0.007857408374547958, + 0.01711089350283146, -0.005948243197053671, 0.009092399850487709, 0.019974641501903534, + -0.014163619838654995, -0.00394958583638072, 0.009671115316450596, -0.023649785667657852, + 0.03596390038728714, 0.02149004116654396, -0.006097396835684776, -0.02083376608788967, + 0.01694384217262268, 0.016919977962970734, 0.029735250398516655, 0.0012998731108382344, + 0.02610783651471138, -0.01343575119972229, 0.01023789867758751, -0.006938622798770666, + -0.03543888032436371, 0.030212540179491043, 0.005781191401183605, 0.003132224315777421, + 0.030140947550535202, -0.009032738395035267, 0.04252665862441063, 0.0022000146564096212, + -0.01705123297870159, 0.03228875994682312, -0.017480794340372086, 0.009742708876729012, + -0.01572674885392189, -0.027611304074525833, -0.01649041473865509, 0.012176894582808018, + 0.028303375467658043, 0.009056602604687214, -0.013077782467007637, 0.007099708542227745, + 0.043552834540605545, -0.0005567155894823372, 0.025535086169838905, -0.0006820045528002083, + -0.027372658252716064, -0.010398984886705875, 0.021096276119351387, 0.02163323014974594, + -0.0028055780567228794, 0.008102020248770714, -0.006222685799002647, -0.006956520956009626, + -0.021167870610952377, 0.00036374820047058165, 0.014784098602831364, 0.013590870425105095, + -0.012970391660928726, 0.0022954728920012712, 0.00415840046480298, -0.034007005393505096, + -0.0070818099193274975, -0.009515996091067791, -0.009086433798074722, -0.00668207835406065, + 0.03505704924464226, 0.014748302288353443, 0.0006417331169359386, -0.011801027692854404, + 0.031572822481393814, -0.02999776042997837, -0.02572600170969963, 0.0114549919962883, + 0.0081079863011837, 0.034532029181718826, 0.0267283134162426, -0.014951150864362717, + 0.010804682038724422, -0.012212691828608513, -0.02978297881782055, 0.024079347029328346, + -0.0236736498773098, -0.018351851031184196, 0.003209784161299467, -0.013686329126358032, + 0.010858377441763878, -0.011842790991067886, 0.0035319558810442686, 0.010023117996752262, + 0.043552834540605545, -0.0058289202861487865, 0.021716754883527756, -0.006837198045104742, + 0.02440151944756508, 0.008931313641369343, 0.013423818163573742, -0.035916171967983246, + 0.014127823524177074, -0.02992616593837738, 0.017003502696752548, -0.024079347029328346, + 0.03663210943341255, -0.012528897263109684, -0.024365723133087158, 0.0074397786520421505, + -0.009211722761392593, 0.020559323951601982, -0.015595493838191032, -0.0038153475616127253, + 0.0027712727896869183, 0.031119395047426224, 0.01829219050705433, 0.029973896220326424, + -0.028207916766405106, 0.010297560133039951, -0.005333730485290289, 0.00254306779243052, + -0.01565515622496605, 0.003191885771229863, 0.027468115091323853, -0.00902677234262228, + -0.03329107165336609, 0.03200238198041916, 0.00014244162593968213, -0.001680960413068533, + -0.0052054584957659245, 0.00742784608155489, -0.03651278465986252, 0.026131700724363327, + 0.012493100948631763, 0.027062417939305305, -0.01705123297870159, 0.02128719352185726, + -0.026227157562971115, -0.024628233164548874, 0.01690804585814476, -0.0126004908233881, + -0.006956520956009626, 0.0030531729571521282, 0.00206577661447227, -0.003618464805185795, + -0.02052352763712406, 0.04488924890756607, 0.02503393031656742, 0.041572075337171555, + 0.014724437147378922, -0.0033977176062762737, -0.016335295513272285, 0.0018957414431497455, + -0.003976433537900448, -0.011168616823852062, -0.007648593746125698, 0.01109105721116066, + 0.002695204457268119, -0.02287418767809868, 0.019246771931648254, -0.016538145020604134, + -0.0012118725571781397, -0.02780221961438656, 7.061487849568948e-5, -0.013411886058747768, + -0.01385338045656681, -0.027086282148957253, -0.011067193001508713, -0.00499962642788887, + 0.024103211238980293, -0.025773731991648674, 0.015953462570905685, 0.01909165270626545, + -0.016812587156891823, -0.0018987245857715607, 0.012552761472761631, 0.010118575766682625, + 0.014438062906265259, 0.04212095960974693, 0.01485569216310978, -0.0009515995625406504, + 0.016371091827750206, 0.03620254620909691, -0.010148406960070133, 0.0010492951842024922, + -0.03345812112092972, -0.0033291070722043514, -0.03193078935146332, -0.015237526036798954, + 0.009163993410766125, 0.03634573519229889, -0.0229099839925766, -0.0070818099193274975, + 0.001475874218158424, 0.008567378856241703, 0.014986948110163212, -0.013125511817634106, + ], + index: 38, + }, + { + title: "Statistical hypothesis testing", + text: "A statistical hypothesis is a hypothesis that is testable on the basis of observing a process that is modeled via a set of random variables. A statistical hypothesis test is a method of statistical inference. Commonly, two statistical data sets are compared, or a data set obtained by sampling is compared against a synthetic data set from an idealized model.", + vector: [ + -0.020572399720549583, -0.01049450971186161, -0.02618958242237568, 0.0066335927695035934, + 0.027870427817106247, -0.019078314304351807, -0.05321240425109863, 0.01196704525500536, + 0.007542255334556103, -0.04335719347000122, 0.03485240042209625, -0.0026020780205726624, + -0.02070169523358345, 0.011263101361691952, 0.06924508512020111, -0.012024509720504284, + 0.00013917256728745997, 0.013504228554666042, 0.06441804021596909, 0.015673523768782616, + 0.003950705286115408, 0.006306761875748634, -0.03468000888824463, 0.0008740935008972883, + 0.03827155753970146, -0.010350847616791725, -0.04916113615036011, -0.01640620082616806, + -0.05324113741517067, -0.002673909068107605, 0.05852790176868439, 0.05401691421866417, + 0.016750989481806755, -0.02726704813539982, 0.004011761397123337, -0.025471273809671402, + 0.00393633870407939, -0.008770565502345562, -0.02814338542521, 0.024178314954042435, + -0.029149020090699196, 0.0033652824349701405, 0.027080288156867027, -0.005013803951442242, + -0.01547239813953638, -0.008662818931043148, 0.03177803382277489, 0.0019466201774775982, + -0.021175779402256012, -0.021233243867754936, 0.0007883452344685793, -0.022540567442774773, + 0.061487335711717606, 0.022339440882205963, -0.017340004444122314, -0.020270708948373795, + 0.014251270331442356, -0.01847493276000023, -0.04054141789674759, -0.022339440882205963, + -0.006295987404882908, 0.054074376821517944, 0.032381415367126465, 0.015544228255748749, + -0.00824619922786951, -0.007269297260791063, 0.08930030465126038, 0.03513972461223602, + 0.04071381315588951, -0.0026918668299913406, -0.00617746589705348, 0.064820297062397, + 0.029450710862874985, 0.05654536560177803, -0.011457044631242752, 0.004622324835509062, + 0.04051268473267555, 0.006087677553296089, -0.0498507134616375, -0.011363664641976357, + 0.01363352406769991, 0.02216704748570919, 0.00023838914057705551, -0.015889016911387444, + 0.03973691165447235, 0.0035215148236602545, -0.01288648135960102, -0.045167334377765656, + -0.012750002555549145, -0.004737254697829485, -0.0007232484058476985, 0.00644324067980051, + -0.003904014825820923, -0.02713775262236595, -0.045655783265829086, 0.049074940383434296, + 0.005768029484897852, 0.010049156844615936, 0.002664930187165737, 0.04887381196022034, + 0.022497469559311867, 0.019193243235349655, 0.0024799653328955173, -0.0026236274279654026, + 0.006838311441242695, -0.06401579082012177, 0.004485846031457186, 0.01623380556702614, + 0.037467051297426224, 0.09010481089353561, -0.004144648555666208, -0.024537470191717148, + 0.041575782001018524, -0.03936338797211647, -0.01758422888815403, -0.0203138068318367, + -0.043127331882715225, -0.04384564235806465, 0.007456058170646429, -0.015458031557500362, + 0.04286874085664749, 0.03350197896361351, -0.020285075530409813, 0.02305775135755539, + -0.004309860058128834, 0.0019107046537101269, -0.031002260744571686, -0.015544228255748749, + 0.0058937338180840015, -0.06085522472858429, 0.032668739557266235, 0.0070861284621059895, + -0.005186198279261589, -0.020658595487475395, -0.014495495706796646, -0.01836000382900238, + -0.015544228255748749, -0.03338705003261566, 0.017239440232515335, 0.0025446133222430944, + -0.10975777357816696, -0.0053514097817242146, 0.014703805558383465, -0.015975214540958405, + 0.0021872539073228836, -0.043788179755210876, -0.031002260744571686, 0.0009652290609665215, + -0.005078451707959175, 0.004062043037265539, 0.005760846193879843, -0.024293243885040283, + 0.022626765072345734, -0.019178876653313637, -0.05008057504892349, -0.022511836141347885, + 0.024106483906507492, -0.004496620502322912, -0.009316480718553066, -0.02529887855052948, + 0.0012013735249638557, -0.0007043927325867116, 0.0014572713989764452, 0.030140288174152374, + 0.01649239845573902, -0.005161057226359844, 0.011413945816457272, 0.0031946836970746517, + 0.0057249306701123714, -0.003868099534884095, -0.021420003846287727, -0.008763382211327553, + -0.09154143184423447, -0.00820310041308403, -0.03195042908191681, -0.02629014663398266, + -0.015213806182146072, 0.06631437689065933, 0.01827380619943142, 0.00923028402030468, + -0.04358705133199692, -0.017454933375120163, 0.030312683433294296, 0.012857749126851559, + 0.025327611714601517, 0.013317467644810677, 0.03358817473053932, 0.012074790894985199, + -0.0026272188406437635, 0.03134704753756523, 0.010573523119091988, -0.006378592923283577, + -0.0045181699097156525, 0.03126085177063942, 0.019020849838852882, 0.0076284524984657764, + -0.05579832196235657, -0.03548451513051987, 0.03143324702978134, -0.013698171824216843, + 0.027410710230469704, -0.05508001148700714, -0.029651837423443794, 0.008368311449885368, + -0.042437754571437836, -0.01660732738673687, 0.06867043673992157, 0.0028121836949139833, + 0.028272682800889015, -0.017138876020908356, -0.014438031241297722, -0.05872902646660805, + 0.012383664958178997, 0.015070144087076187, 0.0008525442099198699, -0.019394369795918465, + 0.027496907860040665, 0.010824931785464287, -0.027281414717435837, -0.025758597999811172, + 0.027381977066397667, -0.019767891615629196, 0.04013916477560997, -0.02979549951851368, + 0.008763382211327553, 0.02558620274066925, 0.02021324448287487, -0.05088508129119873, + -0.006026620976626873, -0.004740845877677202, 0.015371833927929401, -0.010925495065748692, + 0.011823383159935474, -0.00825338251888752, -0.022985920310020447, 0.04108733311295509, + 0.0006006867624819279, 0.0007506339461542666, 4.1807888919720426e-5, -0.004909649025648832, + 0.02538507618010044, -0.017124511301517487, 0.0054950714111328125, -0.04916113615036011, + 0.008052255026996136, 0.012864932417869568, 0.021348172798752785, -0.031030992045998573, + 0.03105972521007061, 0.014768454246222973, -0.015027045272290707, -0.016966482624411583, + -0.016865918412804604, -0.00446788826957345, 0.013640707358717918, -0.00864126905798912, + 0.022195778787136078, -0.03818536177277565, 0.005732113961130381, -0.02423577941954136, + -0.009388311766088009, 0.03781183809041977, -0.04519606754183769, -0.025270145386457443, + -0.017268173396587372, -0.005545353516936302, 0.07045184820890427, -0.03223775327205658, + -0.0013746657641604543, 0.022698596119880676, 0.010767467319965363, 0.014710988849401474, + -0.001881972188130021, 0.009991692379117012, -0.0009329051245003939, 0.007125635165721178, + 0.018230708315968513, 0.003117465414106846, -0.047322262078523636, 0.01660732738673687, + -0.0431847982108593, -0.007491973228752613, -0.077692411839962, 0.014193805865943432, + 0.009244649671018124, -0.010221551172435284, -0.0334157831966877, -0.059246208518743515, + -0.018604230135679245, 0.030513809993863106, 0.004363733343780041, -0.01216817181557417, + -0.009725917130708694, -0.03749578446149826, -0.04304113611578941, 0.036576345562934875, + -0.047609586268663406, 0.036375220865011215, 0.024005921557545662, 0.001735616591759026, + 0.00536936754360795, 0.017124511301517487, -0.024393808096647263, 0.04680508002638817, + 0.023704230785369873, -0.013540144078433514, 0.01846056804060936, 0.017110144719481468, + 0.016161974519491196, -0.07752002030611038, -0.023905357345938683, -0.04746592417359352, + -0.06257916986942291, -0.02519831620156765, -0.004248803947120905, -0.03367437422275543, + 0.008957325480878353, -0.05654536560177803, 0.04344338923692703, -0.005563311278820038, + -0.031002260744571686, -0.01583155244588852, -0.07711776345968246, 0.04327099397778511, + 0.03821409121155739, 0.005254437681287527, -0.04105859994888306, 0.07223325222730637, + -0.03913353011012077, -0.005243663210421801, -0.0015452643856406212, -0.06947494298219681, + -0.028085920959711075, -0.011615073308348656, 0.006439649499952793, 0.0032198247499763966, + 0.015687890350818634, -0.05088508129119873, -0.01494084857404232, 0.057665929198265076, + 0.04778198152780533, -0.004823451861739159, -0.03513972461223602, -0.010415495373308659, + 0.04102986678481102, -0.014538594521582127, -0.014193805865943432, -0.020342539995908737, + 0.03910479694604874, 0.05398818105459213, 0.0004888997646048665, 0.035024795681238174, + -0.01846056804060936, 0.006482747849076986, 0.03410536050796509, -0.03065747208893299, + 0.03465127572417259, -0.050454095005989075, 0.026792963966727257, 0.0012965495698153973, + 0.011995777487754822, -0.03200789541006088, 0.0005755458842031658, -0.042552683502435684, + -0.0066874660551548, 0.03447888046503067, -0.010710001923143864, -0.013403665274381638, + 0.028387611731886864, -0.03769690915942192, -0.037064798176288605, 0.02245437167584896, + 0.053097475320100784, -0.021348172798752785, -0.016363102942705154, -0.001617993344552815, + -0.06183212623000145, 0.000757817062549293, 0.014042960479855537, 0.009093805216252804, + 0.029378879815340042, 0.00943141058087349, 0.0058470433577895164, 0.04054141789674759, + -0.01445239782333374, -0.06142987310886383, 0.02294282242655754, 0.018216341733932495, + 0.011004509404301643, 0.017814088612794876, 0.020356906577944756, -0.0116294389590621, + -0.02344563975930214, -0.045655783265829086, 0.05663156136870384, 0.05206311121582985, + -0.010530425235629082, -0.027367612347006798, -0.0035233106464147568, -0.0357431061565876, + -0.03545578196644783, -0.02394845522940159, -0.03786930441856384, 0.006949649192392826, + 0.0058470433577895164, 0.028962260112166405, -0.006647959351539612, 0.02159239910542965, + -0.01435901690274477, 0.019767891615629196, 0.006073310971260071, 0.0015793840866535902, + -0.014258453622460365, -0.0272526815533638, -0.0014734334545210004, 0.0084904246032238, + -0.05413184314966202, -0.014840285293757915, 0.009776199236512184, -0.037840571254491806, + 0.01049450971186161, -0.000860176223795861, 0.04220789670944214, -0.036403950303792953, + -0.0002374912437517196, 0.029350146651268005, -0.019308174028992653, 0.007007114123553038, + -0.015788454562425613, -0.020256342366337776, 0.004414014983922243, 0.0025104933883994818, + -0.03542704880237579, 0.02443690598011017, -0.02323014661669731, -0.01962422952055931, + 0.008777748793363571, -0.004568451549857855, -0.03456507623195648, -0.030054090544581413, + 0.03370310738682747, -0.005484296940267086, 0.00017104757716879249, 0.02248310297727585, + -0.028746766969561577, -0.044793810695409775, -0.041173528879880905, -0.02901972457766533, + -0.05674649029970169, 0.011765917763113976, -0.01294394675642252, 0.04433409497141838, + -0.017354369163513184, -0.00205257092602551, -0.02912028878927231, -0.0008251586114056408, + 0.028387611731886864, -0.04344338923692703, 0.016248172149062157, -0.0031102823559194803, + -0.02940761111676693, -0.0021980286110192537, 0.006741339340806007, -0.06033804267644882, + 0.05292508006095886, -0.04200676828622818, 0.015529862605035305, 0.013360566459596157, + -0.02492535673081875, 0.0048845079727470875, -0.09274818748235703, -0.06740621477365494, + -0.047523390501737595, 0.009797748178243637, -0.0005319983465597034, 0.023574935272336006, + 0.031030992045998573, 0.005380142014473677, -0.02470986358821392, -0.05168958753347397, + -0.012232819572091103, 0.05258029326796532, -0.006023029331117868, -0.0077649313025176525, + 0.029077189043164253, -0.016822820529341698, 0.05390198528766632, 0.02157803252339363, + 0.028344513848423958, 0.044104233384132385, -0.024594934657216072, 0.014782819896936417, + 0.07246311753988266, -0.016822820529341698, -0.01167972106486559, 0.03557071089744568, + -0.02228197641670704, -0.0383002907037735, -0.031232118606567383, 0.022310709580779076, + 0.022885357961058617, -0.03146198019385338, 0.01089676283299923, 0.005566902458667755, + -0.02374732866883278, 0.014430847950279713, 0.001617993344552815, 0.019969018176198006, + -0.0021675005555152893, 0.02315831556916237, 0.0037567613180726767, -0.010041973553597927, + 0.009991692379117012, -0.01117690373212099, 0.029766766354441643, 0.0007052906439639628, + -0.0030869373586028814, -0.025643667206168175, 0.005965564865618944, 0.0511724054813385, + 0.020558033138513565, 0.008016339503228664, 0.0028516908641904593, -0.006181057542562485, + -0.00839704368263483, 0.019092680886387825, 0.00821028370410204, 0.01461042556911707, + -0.07418705523014069, -0.0617171972990036, -0.007014297414571047, 0.019006483256816864, + -0.005085634998977184, 0.040857475250959396, 0.026994090527296066, -0.02831578068435192, + -0.004295493941754103, 0.020428737625479698, 0.016750989481806755, 0.012419580481946468, + 0.02208084985613823, -0.005886550527065992, 0.002966620260849595, 0.02629014663398266, + 0.024839160963892937, -0.01583155244588852, 0.012563242577016354, 0.04709240421652794, + -0.007039438001811504, -0.05691888555884361, 0.030887329950928688, 0.010523241944611073, + 0.05976339429616928, 0.018733525648713112, 0.004482254385948181, -0.0036005289293825626, + -0.03445014730095863, -0.001715863007120788, 0.010516058653593063, -0.012369298376142979, + 0.00605894485488534, 0.034335218369960785, 0.028401978313922882, 0.001226514345034957, + -0.0026918668299913406, 0.04114479944109917, 0.014639157801866531, 0.01293676346540451, + -0.030513809993863106, 0.05105747655034065, -0.03858761489391327, 0.026821695268154144, + -0.02373296208679676, -0.023201413452625275, -0.0023829934652894735, -0.0016871306579560041, + -0.008842396549880505, -0.023804793134331703, -0.04102986678481102, -0.029623104259371758, + 0.011270283721387386, 0.020787891000509262, 0.01640620082616806, -0.0183743704110384, + 0.0331859216094017, 0.02100338414311409, 0.018733525648713112, -0.007060987409204245, + 0.00943141058087349, 0.0013073242735117674, -0.001216637552715838, 0.024767329916357994, + 0.015228171832859516, 0.03577183932065964, -0.007599719800055027, -0.0072764805518090725, + -0.014739721082150936, -0.035886768251657486, 0.02754000574350357, 0.039593249559402466, + 0.017943384125828743, -0.037754375487565994, 0.00031089354888536036, 0.027769865468144417, + 0.0026128527242690325, 0.03654761239886284, 0.0020417962223291397, -0.03450761362910271, + -0.023905357345938683, 0.05352846160531044, -0.025629300624132156, -0.00034029936068691313, + 0.04887381196022034, 0.016865918412804604, 0.00037127648829482496, -0.026936626061797142, + 0.03445014730095863, 0.016679158434271812, -0.004263170063495636, 0.02920648455619812, + 0.03195042908191681, -0.016133243218064308, -0.029967892915010452, 0.033157188445329666, + -0.01260634046047926, -0.017541131004691124, -0.03146198019385338, 0.0052508460357785225, + 0.005322677083313465, 0.0019484158838167787, -0.045081134885549545, 0.012670988216996193, + -0.015170707367360592, 0.01611887663602829, 0.0026900710072368383, 0.004959930665791035, + -0.005401691421866417, 0.012290284037590027, 0.05352846160531044, -0.03827155753970146, + 0.06418818235397339, 0.011449861340224743, 0.018316905945539474, 0.01923634298145771, + -0.01933690533041954, 0.021807892248034477, 0.010135354474186897, 0.04169071465730667, + 0.034220289438962936, 0.035197190940380096, 0.014983946457505226, 0.023474371060729027, + 0.004230846185237169, -0.0010074297897517681, -0.03717972710728645, -0.024781694635748863, + 0.014926481992006302, -0.010810566134750843, -0.01244831271469593, -0.055827055126428604, + -0.024480005726218224, -0.013245636597275734, 0.0159321166574955, 0.022626765072345734, + 0.03723718971014023, 0.010120987892150879, -0.018331270664930344, -0.029421977698802948, + -0.017253806814551353, 0.029738035053014755, -0.0029791907873004675, -0.02393409051001072, + -0.004252395126968622, 0.011643805541098118, 0.0400816984474659, -0.016262538731098175, + -0.028071556240320206, 0.0017706342041492462, 0.010638170875608921, -0.034823670983314514, + -0.024738596752285957, -0.0027098245918750763, 0.020773526281118393, 0.030427612364292145, + -0.01963859610259533, 0.00420211348682642, 0.01547239813953638, 0.024853525683283806, + 0.015946483239531517, -0.032582543790340424, -0.04970705136656761, 0.010480143129825592, + -0.020385637879371643, 0.009323664009571075, 0.021822258830070496, 0.026045920327305794, + 0.014998313039541245, -0.02558620274066925, -0.034335218369960785, 0.022195778787136078, + 0.010587889701128006, 0.026634935289621353, -0.030398879200220108, -0.04950592666864395, + 0.03378930315375328, -0.005627959035336971, -0.01396394707262516, -0.05022423714399338, + -0.05959099903702736, -0.02863183803856373, 0.022641131654381752, -0.01649239845573902, + -0.03137578070163727, -0.041374657303094864, -0.0008543399744667113, 0.023416906595230103, + -0.015170707367360592, -0.0012103524059057236, -0.046632684767246246, 0.03761071339249611, + 0.014280003495514393, 0.009151269681751728, -0.015414932742714882, 0.04160451516509056, + 0.0013064263621345162, -0.01690901815891266, 0.009208734147250652, 0.00304024713113904, + -0.014430847950279713, 0.00034478880115784705, 0.027611836791038513, 0.0017778172623366117, + 0.04993691295385361, 0.008720283396542072, 0.030226485803723335, -0.0010639966931194067, + -0.01866169460117817, -0.004054860211908817, -0.057694658637046814, -0.042236629873514175, + 0.015644792467355728, -0.0027457401156425476, -0.04979325085878372, -0.020083947107195854, + -0.00820310041308403, 0.015127608552575111, -0.025729864835739136, 0.002907359739765525, + -0.0076284524984657764, 0.0050604939460754395, 0.0018155286088585854, 0.013030143454670906, + 0.04005296528339386, -0.039794374257326126, -0.02695099264383316, -0.016075778752565384, + 0.0007982220267876983, 0.017598595470190048, -0.00671619875356555, 0.043213531374931335, + -0.015529862605035305, 0.04510986804962158, 0.025844793766736984, 0.039794374257326126, + 0.02354620210826397, -0.0017562679713591933, -0.02999662607908249, -0.00473366305232048, + 0.028057189658284187, -0.0007043927325867116, 0.04901747405529022, 0.07361240684986115, + 0.002435070928186178, -0.011507326737046242, 0.020945919677615166, -0.0015219193883240223, + 0.03660507872700691, 0.003437113482505083, 0.003965071402490139, 0.025456907227635384, + -0.002444049809128046, -0.04582817852497101, -0.02626141346991062, -0.03367437422275543, + -0.020687328651547432, -0.020141413435339928, 0.01514197513461113, 0.0012453700182959437, + 0.021664230152964592, -0.018230708315968513, 0.0046007754281163216, 0.02705155499279499, + 0.057694658637046814, -0.02088845521211624, -0.02088845521211624, 0.0009571480914019048, + -0.0134323975071311, -0.009725917130708694, -0.01652112975716591, -0.027295781299471855, + 0.03789803758263588, 0.011794649995863438, -0.009014790877699852, -0.004065634682774544, + -0.01290084794163704, 0.03812789544463158, 0.0022554935421794653, -0.01769915781915188, + 0.01649239845573902, 0.0012866727774962783, -0.0015425707679241896, 0.001539877150207758, + 0.002242923015728593, -0.001192394644021988, 0.004015353042632341, 0.03407662734389305, + 0.014955214224755764, 0.04427662864327431, 0.02394845522940159, -0.019796624779701233, + -0.0012633277801796794, -0.06798086315393448, -0.012635072693228722, 0.007851128466427326, + 0.012821833603084087, 0.021463103592395782, -0.015400567092001438, -0.022712962701916695, + 0.01245549600571394, -0.018230708315968513, -0.005735705606639385, 0.0194231029599905, + 0.004428381100296974, -0.025270145386457443, -0.04916113615036011, 0.02228197641670704, + -0.05180451646447182, -0.010559157468378544, 0.037064798176288605, -0.02256930060684681, + 0.015558594837784767, -0.05918874591588974, 0.017138876020908356, 0.0077649313025176525, + -0.009079438634216785, -0.005811127834022045, -0.03200789541006088, 0.03976564109325409, + 0.010975777171552181, 0.025054654106497765, 0.026721132919192314, 0.02851690724492073, + 0.009273381903767586, 0.0617171972990036, -0.0470636710524559, -0.018977750092744827, + -0.03332958370447159, -0.006536621134728193, 0.024968456476926804, -0.022052116692066193, + 0.014754087664186954, -0.034220289438962936, 0.019078314304351807, 0.02363239973783493, + 0.03028395026922226, 0.027396343648433685, 0.026907892897725105, 0.026017189025878906, + -0.013849017210304737, -0.0437307134270668, -0.01962422952055931, -0.017354369163513184, + -0.00620619859546423, -0.014588876627385616, 0.02647690661251545, 0.028373245149850845, + 0.01192394644021988, -0.015946483239531517, -0.02528451196849346, -0.011083523742854595, + 0.011248734779655933, 0.011026058346033096, -0.0017679404700174928, 0.013037326745688915, + 0.037467051297426224, 0.023890990763902664, -0.006852677557617426, -0.02804282307624817, + 0.042351558804512024, 0.04393184185028076, -0.01371972169727087, -0.012635072693228722, + 0.012484228238463402, 0.008167184889316559, 0.010214368812739849, 0.018690425902605057, + 0.014825918711721897, 0.0359729640185833, 0.014969580806791782, -0.039305925369262695, + 0.010853664018213749, -0.03344451263546944, 0.015989581122994423, 0.006033804267644882, + 0.02784169651567936, -0.00632471963763237, -0.026520006358623505, 0.040282826870679855, + -0.004611550364643335, 0.03344451263546944, -0.06263663619756699, 0.025629300624132156, + -0.05243663117289543, -0.02988169714808464, 0.005290353205054998, -0.00787267740815878, + 0.003304226091131568, -0.038041699677705765, 0.0005387325072661042, 0.019983384758234024, + -0.007937326095998287, 0.05976339429616928, 0.02040000446140766, 0.020241975784301758, + 0.03720846027135849, -0.014481130056083202, -0.0023470779415220022, 0.04620169848203659, + -0.0027367612347006798, 0.0038429584819823503, 0.0028570780996233225, -0.020917188376188278, + 0.01935127191245556, 0.01719634234905243, 0.001270510838367045, -0.021563665941357613, + 0.0183743704110384, 0.022626765072345734, -0.031634371727705, -0.005872184410691261, + -0.008547889068722725, 0.006432466208934784, 0.02450873702764511, 0.03887493908405304, + -0.03717972710728645, 0.01913577876985073, 0.011119439266622066, 0.0054950714111328125, + 0.007987607270479202, 0.005193381570279598, -0.006845494266599417, 0.013346199877560139, + -0.030140288174152374, 0.007578170858323574, -0.02489662542939186, -0.0158171858638525, + 0.011945495381951332, 0.037150993943214417, 0.006216973066329956, 0.009086621925234795, + -0.003625669749453664, -0.005035353358834982, 0.0663718432188034, 0.01440929900854826, + 0.023761695250868797, -0.021534934639930725, -0.006795212626457214, -0.04051268473267555, + -0.012864932417869568, -0.00790859293192625, -0.0002583671303000301, 0.0036400360986590385, + -0.03416282311081886, 0.0488450825214386, -0.00026263209292665124, 0.0018442609580233693, + -0.006989156361669302, -0.005265212617814541, -0.01000605896115303, 0.031203387305140495, + 0.002928909147158265, -0.009575072675943375, 0.013037326745688915, 0.0028319372795522213, + 0.0046546487137675285, -0.009294931776821613, 0.03028395026922226, -0.0021082398016005754, + -0.020960286259651184, -0.028775498270988464, -0.00349098676815629, 0.003860916243866086, + -0.013576059602200985, 0.019265074282884598, -0.049563389271497726, 0.015889016911387444, + 0.012433946132659912, 0.011076340451836586, -0.025356343016028404, -0.03850141540169716, + 0.009991692379117012, -0.02443690598011017, -0.0051287333481013775, -0.0036202825140208006, + -8.176387927960604e-5, 0.021218877285718918, -0.007007114123553038, 0.004805494099855423, + 0.004385282751172781, 0.014667890034615993, 0.01846056804060936, -0.0372946560382843, + -0.005028170067816973, -0.04904620721936226, -0.02343127317726612, -0.0009786974405869842, + -0.030513809993863106, -0.03097352758049965, 0.05148846283555031, -0.01313070673495531, + -0.04519606754183769, 0.0033563035540282726, -0.03304225951433182, -0.003857324831187725, + -0.014912116341292858, -0.005940423812717199, -0.0074129593558609486, -0.007229790091514587, + -0.0046869730576872826, 0.024192681536078453, -0.00011492960038594902, -0.04442029073834419, + 0.015027045272290707, 0.024365074932575226, 0.021563665941357613, -0.02101775072515011, + -0.017253806814551353, -0.05648789927363396, 0.018819723278284073, 0.03126085177063942, + -0.006838311441242695, -0.028502540662884712, 0.0003459111612755805, 0.018187610432505608, + 0.032668739557266235, -0.00771464966237545, -0.008950143121182919, 0.0012390847550705075, + 0.030600005760788918, 0.017167609184980392, 0.008425776846706867, -0.005193381570279598, + 0.0011654580011963844, -0.026045920327305794, -0.0017966729355975986, -0.004525353200733662, + -0.012678171508014202, -0.0021423595026135445, -0.010824931785464287, 0.0015784862916916609, + 0.011334932409226894, -0.02999662607908249, 0.027611836791038513, -0.028200851753354073, + -0.03146198019385338, 0.03048507682979107, -0.0018406694289296865, -0.004119507968425751, + 0.018115779384970665, 0.03939212113618851, 0.016664791852235794, 0.006396550685167313, + -0.007294438313692808, -0.005089226644486189, -0.014926481992006302, 0.009934227913618088, + 0.004018944688141346, 0.0042344373650848866, -0.01963859610259533, -0.01795775070786476, + -0.0010927291586995125, -0.010322114452719688, -0.012247186154127121, -0.019308174028992653, + 0.007064579054713249, -0.030255217105150223, -0.009251832962036133, -0.014215354807674885, + 0.003119261236861348, 0.0030617965385317802, -0.012369298376142979, 0.014883383177220821, + 0.03672000765800476, 0.05275268852710724, -0.010674086399376392, -0.0017751236446201801, + 0.009100987575948238, -0.00048665504436939955, -0.00532626872882247, -0.013497045263648033, + 0.02324451133608818, -0.02950817532837391, -0.030456343665719032, 0.008950143121182919, + 0.0059152827598154545, 0.025844793766736984, 0.0062457057647407055, 0.0015650179702788591, + 0.020428737625479698, -0.014926481992006302, 0.041661981493234634, 0.0114354956895113, + 0.04505240544676781, 0.022138314321637154, 0.012146621942520142, 0.023618033155798912, + -0.011521692387759686, -0.0030079232528805733, 0.009804931469261646, -0.013999862596392632, + -0.029335780069231987, -0.0011968840844929218, 0.011564791202545166, 0.013245636597275734, + -0.01122718583792448, -0.036978598684072495, 0.013899298384785652, -0.008282114751636982, + -0.016348736360669136, -0.010243101045489311, -0.01788591966032982, -0.014983946457505226, + 0.0437307134270668, 0.011370847932994366, -0.02450873702764511, -0.01044422760605812, + 0.04407550394535065, -0.012196904048323631, -0.013410847634077072, -0.02452310360968113, + 0.020874088630080223, -0.019609862938523293, 0.0034101768396794796, 0.03445014730095863, + -0.029824232682585716, -0.005699790082871914, 0.025025920942425728, 0.021721694618463516, + -0.007815212942659855, -0.010343664325773716, -0.001407887670211494, 0.003381444374099374, + -0.007901410572230816, -0.006622818298637867, 0.032668739557266235, -0.03174930438399315, + 0.014811552129685879, 0.021132681518793106, 0.01392084825783968, 0.038357753306627274, + -0.026792963966727257, 0.0023776062298566103, -0.012283101677894592, 0.036174092441797256, + -0.0036526063922792673, -0.04594310745596886, -0.0004660036356654018, 0.011765917763113976, + 0.016190707683563232, 0.01797211728990078, 0.01925070770084858, 0.014229721389710903, + -0.02266986481845379, -0.01060225535184145, -0.00889267772436142, -0.003789085429161787, + -0.009575072675943375, 0.011981410905718803, 0.03973691165447235, 0.036174092441797256, + -0.031088456511497498, -0.04197803884744644, -0.033070992678403854, 0.011291833594441414, + 0.003117465414106846, 0.032956063747406006, 0.0024171131663024426, -0.03192169591784477, + 0.01817324385046959, -0.029738035053014755, 0.0113780302926898, 0.019983384758234024, + -0.01640620082616806, 0.029852963984012604, 0.0032719022128731012, 0.01583155244588852, + -0.0063354941084980965, 0.012010143138468266, -0.00840422697365284, -0.027410710230469704, + 0.01746929995715618, 0.004525353200733662, -0.029565639793872833, 0.0004177421797066927, + -0.013655073009431362, -0.04111606627702713, -0.020069582387804985, -0.029824232682585716, + -0.03028395026922226, -0.01758422888815403, -0.00836112815886736, 0.005926057696342468, + -0.027094652876257896, 0.01749803125858307, 0.054763954132795334, 0.018115779384970665, + -0.007251339498907328, 0.009488875046372414, 0.014739721082150936, 0.002508697798475623, + 0.014768454246222973, -0.005064085591584444, 0.026318879798054695, 0.015371833927929401, + -0.015127608552575111, -0.015759721398353577, 0.030829865485429764, -0.002718803472816944, + 0.00348021206445992, -0.003525106469169259, -0.009294931776821613, 0.030312683433294296, + 0.005322677083313465, -0.026247048750519753, 0.013949580490589142, -0.029738035053014755, + -0.019466200843453407, 0.0032629233319312334, -0.017454933375120163, -0.014869017526507378, + 0.03275493532419205, -0.013288735412061214, 0.0003515229618642479, -0.00583626888692379, + 0.004069226328283548, -0.01746929995715618, 0.0006267254939302802, -0.010595072992146015, + -0.015486763790249825, 0.00644324067980051, 0.00407640915364027, 0.047322262078523636, + -0.021319441497325897, 0.031117189675569534, -0.006529437843710184, -0.0063678184524178505, + -0.013547326438128948, -0.018992116674780846, 0.04404677078127861, 0.019107045605778694, + 0.015673523768782616, 0.007258522789925337, 0.014330284669995308, 0.010559157468378544, + 0.02706592157483101, 0.026821695268154144, 0.021333808079361916, 0.0005041638505645096, + -0.009575072675943375, -0.024350710213184357, 0.005807536654174328, 0.00021392169583123177, + -0.004949156194925308, 0.01915014535188675, 0.022727329283952713, -0.0007780195446684957, + 0.015213806182146072, -0.017627328634262085, 0.011112255975604057, -0.002605669666081667, + 0.02108958177268505, -0.021951554343104362, 0.02080225758254528, 0.00235605682246387, + -0.021549301221966743, 0.02041437104344368, 0.012678171508014202, -0.011061973869800568, + -0.02001211792230606, 0.006522255018353462, 0.0045864093117415905, -0.012987044639885426, + 0.038329023867845535, 0.0012193312868475914, -0.010027607902884483, -0.008217466995120049, + 0.017138876020908356, -0.028832964599132538, -0.03016902133822441, 0.028789864853024483, + -0.0013369545340538025, 0.05901635065674782, -0.012024509720504284, -0.004931198433041573, + -0.012663805857300758, -0.021563665941357613, -0.01670789159834385, -0.019178876653313637, + -0.03798423334956169, -0.02001211792230606, -0.004834226332604885, -0.03407662734389305, + -0.031289584934711456, -0.03459380939602852, -0.01420817244797945, 0.0014698418090119958, + 0.024551836773753166, 0.01363352406769991, -0.0174836665391922, 0.035886768251657486, + 0.04358705133199692, 0.04778198152780533, -0.016276905313134193, -0.028876062482595444, + -0.018834087997674942, 0.0015829757321625948, -0.01642056740820408, -0.007994790561497211, + -0.009287748485803604, -0.019667327404022217, -0.007614085916429758, -0.01591775007545948, + -0.00888549443334341, 0.02256930060684681, -0.010063523426651955, -0.014581693336367607, + 0.011485776863992214, -0.03818536177277565, 0.010128171183168888, -0.050856348127126694, + -0.01709577813744545, 0.013245636597275734, -0.00019652512855827808, 0.012283101677894592, + -0.020543666556477547, 0.036001697182655334, -0.007556621450930834, -0.014236904680728912, + -0.027367612347006798, -0.019667327404022217, -0.015572961419820786, 0.018532399088144302, + -0.0036777472123503685, 0.04620169848203659, -0.019121412187814713, -0.022928455844521523, + -0.0004565757990349084, 0.012793101370334625, 0.007987607270479202, 0.008066621609032154, + -0.0008857660577632487, 0.02393409051001072, -0.007405776064842939, 0.01591775007545948, + -0.03505352884531021, -0.015271270647644997, 0.03126085177063942, 0.04114479944109917, + -0.01244831271469593, 0.012319017201662064, 0.0154292993247509, -0.013683806173503399, + -0.025428174063563347, 0.0004987764987163246, 0.022928455844521523, 0.016133243218064308, + -0.007980423979461193, 0.01955239847302437, 0.01746929995715618, -0.00967563595622778, + 0.002918134443461895, -0.02940761111676693, -0.014667890034615993, 0.004715705290436745, + -0.018302539363503456, 0.02169296331703663, -0.010422678664326668, 0.008066621609032154, + 0.011787467636168003, -0.011090707033872604, 0.0488450825214386, -0.017253806814551353, + -0.029321415349841118, -0.001095422776415944, 0.00461514201015234, -0.012189720757305622, + 0.003986620809882879, 0.0011897009098902345, -0.029910428449511528, -0.0016224827850237489, + -0.004209296777844429, 0.009790565818548203, -0.015616059303283691, 0.0004255986714269966, + 0.032668739557266235, -0.01972479373216629, -0.01652112975716591, 0.0027978175785392523, + 0.008598171174526215, 0.011780284345149994, 0.031892966479063034, -0.027812963351607323, + 0.005890142172574997, -0.009438593871891499, 0.00026622365112416446, 0.014926481992006302, + -0.001657500397413969, -0.022210145369172096, -0.05479268729686737, -0.007922959513962269, + 0.04134592413902283, 0.04577071592211723, 0.007251339498907328, -0.0047085219994187355, + -0.011090707033872604, 0.005656691268086433, -0.005387325305491686, 0.003063592128455639, + 0.014466763474047184, -0.032783668488264084, 0.02909155562520027, 0.02101775072515011, + 0.0158171858638525, 0.029824232682585716, 0.021333808079361916, -0.006507888901978731, + -0.017052680253982544, 0.013087608851492405, -0.019767891615629196, -0.0025194722693413496, + -0.022052116692066193, -0.010630988515913486, 0.0036921135615557432, 0.000571954355109483, + -0.01049450971186161, -0.0027116204146295786, -0.03195042908191681, 0.0043421839363873005, + 0.038731276988983154, 0.012979862280189991, -0.023761695250868797, -0.015213806182146072, + -0.012965495698153973, -0.01983972266316414, -0.0016799475997686386, -0.012857749126851559, + 0.019221976399421692, 0.0055920435115695, 0.006867043673992157, 0.0021710919681936502, + 0.01538620050996542, 0.012965495698153973, -0.006288804113864899, -0.014495495706796646, + -0.03562817722558975, -0.026132117956876755, 0.004888099618256092, -0.009129720740020275, + -0.0024997189175337553, -0.026318879798054695, -0.030054090544581413, -0.009100987575948238, + 0.009086621925234795, 0.03269747272133827, -0.012527327053248882, -0.016779722645878792, + -0.027180850505828857, -0.005398099776357412, 0.04192057251930237, -0.01815887726843357, + 0.0248104277998209, 0.002697254065424204, -0.027310146018862724, 0.005067677237093449, + -0.011299016885459423, 0.0017490849131718278, -0.017325637862086296, 0.024752963334321976, + 0.002097465330734849, 0.014215354807674885, 0.026692399755120277, -0.005692606791853905, + 0.009251832962036133, 0.005293944850564003, 0.01591775007545948, 0.012829016894102097, + -0.0003043838660232723, 0.01040831208229065, 0.021606765687465668, -0.03815662860870361, + 0.014416482299566269, -0.020974652841687202, -0.024968456476926804, -0.006295987404882908, + -0.0194231029599905, -0.007843945175409317, -0.0380704291164875, -0.029479442164301872, + 0.03858761489391327, 0.020744793117046356, -0.020385637879371643, -0.03967944532632828, + -0.01190957985818386, 0.020385637879371643, 0.015256904996931553, -0.018834087997674942, + -0.010472959838807583, -0.001930458121933043, 0.0008291990961879492, 0.0009248241549357772, + -0.013798735104501247, -0.0006155018927529454, -0.002532042795792222, -0.005940423812717199, + -0.045454658567905426, 0.009531973861157894, -0.02070169523358345, 0.017555497586727142, + -0.02305775135755539, 0.02412085048854351, -0.000772183237131685, -0.021132681518793106, + -0.012218452990055084, -0.003857324831187725, -0.02656310424208641, 0.0004996744100935757, + ], + index: 39, + }, + { + title: "Horace Farquhar, 1st Earl Farquhar", + text: "Horace Brand Farquhar, 1st Earl Farquhar GCB GCVO PC (19 May 1844 \u2013 30 August 1923), was a British financier, courtier and Conservative politician.", + vector: [ + 0.0055586532689630985, -0.002701384946703911, -0.01830918900668621, -0.00044727849308401346, + -0.02689693681895733, -0.019882192835211754, -0.04296707734465599, -0.01609848253428936, + -0.08196622133255005, 0.008899513632059097, -0.01786988228559494, 0.08508387953042984, + -0.04461093619465828, 0.010281205177307129, -0.017969081178307533, 0.0502510741353035, + -0.02333996631205082, 0.0017200293950736523, -0.08797480911016464, -0.0019928249530494213, + 0.04461093619465828, 0.012449398636817932, -0.015333238057792187, -0.02922101318836212, + 0.009657672606408596, 0.04018952324986458, 0.025196392089128494, 0.004520612768828869, + 0.04356226697564125, -0.005509053822606802, -0.01108187809586525, 0.03795047104358673, + 0.021823646500706673, 0.035371314734220505, 0.017473088577389717, -0.0021115087438374758, + 0.019287003204226494, 0.018337532877922058, 0.0020530526526272297, -0.004595011472702026, + 0.011861294507980347, -0.005292943213135004, -0.041890066117048264, 0.03469109535217285, + 0.022546378895640373, 0.0003195162571500987, 0.012272259220480919, 0.0428253635764122, + -0.0002382532984483987, 0.015304895117878914, 0.051923274993896484, -0.027803894132375717, + -0.017218006774783134, 0.041294876486063004, 0.043193817138671875, 0.005696822423487902, + 0.024331949651241302, 0.03367077186703682, -0.009856069460511208, 0.011847122572362423, + -0.025168050080537796, -0.04030289128422737, -0.028257371857762337, -0.030042942613363266, + -0.0258482675999403, 0.015446607954800129, 0.004407242871820927, 0.016509447246789932, + -0.044979386031627655, -0.03829058259725571, 0.020009733736515045, -0.04251359775662422, + 0.008127182722091675, 0.027081161737442017, 0.02526724897325039, 0.006582522299140692, + 0.049400802701711655, -0.016282707452774048, 0.0015349180903285742, 0.014752218499779701, + 0.01130861695855856, -0.029929572716355324, -0.020874176174402237, 0.04257028177380562, + 0.0031991482246667147, -0.06116289645433426, -0.002109737368300557, -0.04588634520769119, + -0.012669051997363567, 0.05107300356030464, -0.011960492469370365, 0.0236233901232481, + -0.008148440159857273, -0.000751073588617146, 0.01461050659418106, 0.04001946747303009, + 0.03707185760140419, -0.012746994383633137, -0.009530131705105305, -0.02051989734172821, + 0.01026703417301178, 0.024785427376627922, -0.021015889942646027, 0.03653335198760033, + 0.03055310621857643, 0.015276553109288216, -0.019386200234293938, -0.015559976920485497, + 0.03659003600478172, 0.03897079825401306, 0.006323897745460272, -0.03882908821105957, + 0.014057829976081848, 0.02406269684433937, -0.0034223448019474745, 0.01314378809183836, + 0.007209597621113062, 0.007879187352955341, -0.0065789795480668545, -0.03766704723238945, + 0.042315203696489334, -0.06870197504758835, 0.003443601541221142, -0.024700401350855827, + 0.06399713456630707, -0.04840881749987602, -0.0071918838657438755, 0.039934441447257996, + -0.00208848062902689, -0.025508159771561623, -0.02316991053521633, -0.019442886114120483, + 0.032735470682382584, -0.050307758152484894, 0.014072000980377197, 0.0031725773587822914, + 0.01232185773551464, -0.023155739530920982, -0.011549527756869793, 0.02333996631205082, + 0.03296221047639847, 0.02363756112754345, 0.02112925797700882, 0.002611043630167842, + 0.04257028177380562, 0.024700401350855827, 0.03304723650217056, 0.014823074452579021, + 0.007145827170461416, 0.03738362342119217, -0.03327397629618645, 0.013986974023282528, + 0.025649871677160263, -0.0014622906455770135, -0.01906026341021061, -0.06473404169082642, + 0.004967005457729101, -0.03114829584956169, -0.033330660313367844, -0.006352240219712257, + -0.021653592586517334, 0.03647666797041893, -0.06309018284082413, -0.012187231332063675, + 0.024303607642650604, 0.04619811102747917, -0.0003987864183727652, 0.013405954465270042, + -0.006784461904317141, 0.00199459632858634, -0.008502719923853874, 0.01232185773551464, + 0.0023099055979400873, -0.01799742318689823, 0.0006341611733660102, 0.01758645847439766, + -0.004155704285949469, -0.015701688826084137, 0.0176998283714056, -0.03738362342119217, + -0.008984540589153767, -0.005544481799006462, -0.0169912688434124, 0.01948539912700653, + -0.00967892911285162, 0.02747795544564724, 0.04353392496705055, 0.02553650178015232, + 0.005771221127361059, -0.013568923808634281, -0.013767320662736893, 0.025281419977545738, + -0.03970770165324211, -0.020732464268803596, -0.023680074140429497, 0.04367563873529434, + 0.016495276242494583, 0.007248568814247847, -0.013490982353687286, 0.00870820228010416, + 0.04900400713086128, 0.019272832199931145, 0.004251359961926937, 0.00671360595151782, + -0.01728886365890503, 0.0059448182582855225, 0.027704695239663124, 0.00804924126714468, + -0.010451260022819042, 0.04784196987748146, 0.015078156255185604, -0.04710506647825241, + 0.0030025229789316654, 0.011159819550812244, 0.011549527756869793, 0.01920197531580925, + -0.010699255391955376, 0.04050128906965256, 0.025153879076242447, -0.03619324415922165, + -0.021738620474934578, -0.02039235644042492, 0.028144001960754395, -0.0026553284842520952, + -0.012846192345023155, 0.014199541881680489, -0.01202426292002201, -0.031204981729388237, + -0.014780561439692974, 0.0059129330329597, -8.502719720127061e-5, 0.025323932990431786, + -0.04206012189388275, 0.08332665264606476, -0.03888577222824097, 0.01846507377922535, + -0.03327397629618645, -0.040557973086833954, 0.023524191230535507, -0.03466275334358215, + 0.01743057556450367, 0.04931577295064926, 0.0354846827685833, -0.03480446711182594, + -0.004931577481329441, 0.053397081792354584, -0.034039221704006195, -0.0026677283458411694, + -0.031516749411821365, 0.02404852584004402, -0.009246707893908024, -0.08304323256015778, + 0.008956198580563068, 0.024105209857225418, -0.016452763229608536, -0.00017437218048144132, + -0.016424421221017838, 0.05178156495094299, 0.06292012333869934, 0.020123103633522987, + -0.04271199554204941, -0.0066037788055837154, 0.05067620798945427, 0.04203177988529205, + -0.0679083913564682, 0.00620698556303978, -0.0635436624288559, -0.05433237925171852, + 0.008878256194293499, 0.0032629186753183603, 0.019272832199931145, 0.01684955693781376, + -0.010720512829720974, 0.02188033238053322, -0.05274520441889763, -0.01965545304119587, + -0.03746865317225456, -0.03335900232195854, -0.0034152590669691563, 0.04523446783423424, + 0.02197953127324581, -0.015460778959095478, -0.016778700053691864, -0.036249928176403046, + -0.026485972106456757, -0.013391783460974693, 0.01612682454288006, 0.005576367024332285, + 0.026117520406842232, -0.03925422206521034, -0.023850128054618835, 0.016240194439888, + 0.021214285865426064, 0.011131477542221546, -0.036845117807388306, 0.0007794160046614707, + -0.013682292774319649, -0.022121243178844452, -0.01995304971933365, 0.010982680134475231, + 0.018521757796406746, 0.025451473891735077, 0.021611079573631287, -0.019244488328695297, + -0.018436729907989502, -0.002164650708436966, -0.0016961154760792851, 0.02924935519695282, + 0.060482680797576904, 0.016197681427001953, 0.023269109427928925, -0.008899513632059097, + 0.021200114861130714, -8.308972610393539e-5, -0.04529115557670593, -0.0486922413110733, + -0.03590982034802437, -0.01904609240591526, -0.07760149240493774, 0.0060688164085149765, + 0.02424692176282406, 0.009799384512007236, -0.06286343932151794, -0.04563126340508461, + 0.017983252182602882, -0.046169769018888474, 0.02494131214916706, 0.014504223130643368, + -0.034492701292037964, -0.014794732443988323, 0.029135987162590027, -0.035683080554008484, + 0.05387889966368675, -0.010869310237467289, 0.00487489253282547, 0.002154022455215454, + -0.023566704243421555, 0.010302461683750153, 0.016594475135207176, 0.005909390281885862, + 0.01597094163298607, 0.05379387363791466, 0.07204637676477432, 0.021214285865426064, + 0.007694961503148079, 0.02570655569434166, 0.049089036881923676, 0.007060800213366747, + 0.020335670560598373, 0.01653778925538063, 0.00042823594412766397, 0.04418579861521721, + 0.02832822874188423, -0.005824362859129906, 0.03157343342900276, 0.008736544288694859, + -0.024020183831453323, 0.01225100178271532, 0.033302318304777145, 0.01978299394249916, + 0.03588147833943367, -0.03072316013276577, 0.014964786358177662, 0.04619811102747917, + -0.022107072174549103, -0.01670784503221512, 0.02054823935031891, -0.02083166316151619, + 0.022999856621026993, -0.020590752363204956, -0.012165974825620651, 0.008290152065455914, + -0.030184654518961906, -0.033585742115974426, 0.01432708278298378, 0.004697752650827169, + -0.05801689252257347, 0.02479959838092327, -0.01803993619978428, -0.006770290434360504, + 0.025451473891735077, -0.0010991536546498537, 0.0664912685751915, -0.023382479324936867, + 0.04611308500170708, -0.05217835679650307, 0.002614586381241679, -0.0025596730411052704, + -0.003904165467247367, -0.0034365158062428236, -0.015744201838970184, 0.020732464268803596, + 0.03738362342119217, 0.03279215469956398, -0.01801159419119358, -0.0009149280958808959, + 0.014334168285131454, 0.006224699318408966, 0.0605960488319397, -0.042456913739442825, + -0.04744517803192139, 0.025890782475471497, 0.018932722508907318, 0.021625250577926636, + -0.015574147924780846, -0.0136681217700243, 0.000315309182042256, -0.013519324362277985, + 0.01653778925538063, 0.04047294706106186, 0.004548955243080854, 0.007758731953799725, + -0.03956598788499832, 0.0075319926254451275, -0.008630260825157166, -0.0250830240547657, + -0.002102651633322239, -0.03865903243422508, -0.004293873440474272, -0.056061264127492905, + 0.02183781936764717, 0.030241340398788452, 0.03012797050178051, 0.027846407145261765, + 0.03293386846780777, 0.018209991976618767, 0.011322788894176483, 0.012328943237662315, + 0.02377927303314209, -0.02053406834602356, 0.016509447246789932, -0.01830918900668621, + 0.06377039849758148, 0.04461093619465828, -0.014525479637086391, -0.02169610746204853, + -0.0031460062600672245, 0.04818207770586014, -0.0004058720078319311, 0.01829501800239086, + -0.007694961503148079, -0.03973604366183281, -0.05084626376628876, 0.004811122082173824, + 0.0010663827415555716, 0.045262809842824936, -0.03296221047639847, -0.016920411959290504, + 0.0634869709610939, 0.01018200721591711, -0.01917363330721855, -0.014752218499779701, + -0.01092599518597126, -0.0012594653526321054, 0.013335098512470722, -0.053680505603551865, + 0.03341569006443024, 0.007850844413042068, -0.01262653898447752, 0.042598627507686615, + -0.0019733395893126726, 0.011216504499316216, 0.007631191052496433, -0.02984454669058323, + 0.002293962985277176, 0.008878256194293499, -0.016722016036510468, 0.008609003387391567, + -0.010989765636622906, 0.025352276861667633, -0.008984540589153767, 0.007475307676941156, + 0.03072316013276577, 0.009615158662199974, 0.018365874886512756, 0.020789150148630142, + -0.00901996809989214, -0.023424992337822914, 0.0840635597705841, 0.020165616646409035, + 0.009430933743715286, -0.04118150472640991, 0.056486401706933975, 0.06694474816322327, + -0.03928256407380104, -0.0546441450715065, 0.014936444349586964, -0.026386773213744164, + -0.012527340091764927, 0.064960777759552, 0.020321499556303024, 0.0143979387357831, + 0.009218364953994751, -0.01047960203140974, 0.0019981390796601772, 0.050449471920728683, + -0.01049377303570509, 0.08519725501537323, 0.020562410354614258, -0.03613656014204025, + 0.0413799025118351, 0.050449471920728683, 0.05821528658270836, -0.019116947427392006, + -0.0012373228091746569, 0.02586243860423565, -0.0590655617415905, -0.009267964400351048, + -0.007999641820788383, -0.010826796293258667, 0.04418579861521721, 0.011096049100160599, + -0.04013283550739288, 0.029419410973787308, 0.015078156255185604, -0.061219580471515656, + 0.018932722508907318, 0.027364585548639297, -0.009671843610703945, 0.018380045890808105, + -0.015885915607213974, 0.015460778959095478, 0.02970283478498459, 0.008233467116951942, + 0.07215974479913712, 0.03721357136964798, -0.014086171984672546, -0.00835392251610756, + 0.017033781856298447, -0.019556256011128426, 0.0634302869439125, 0.006890745833516121, + -0.028739193454384804, -0.011514099314808846, -0.04067134112119675, 0.036873459815979004, + 0.014064915478229523, 0.006182185839861631, 0.006182185839861631, -0.0191878043115139, + -0.0020512810442596674, -0.006692348979413509, 0.0169912688434124, -0.01669367402791977, + -0.030071286484599113, 0.022206269204616547, 0.017685657367110252, -0.022206269204616547, + -0.03041139431297779, 0.03724191337823868, 0.0077020470052957535, -0.021611079573631287, + 0.0012266944395378232, -0.009253793396055698, 0.04067134112119675, -0.03185685724020004, + -0.04050128906965256, 0.017501430585980415, 0.008630260825157166, -0.018380045890808105, + 0.023878471925854683, -0.007206054870039225, -0.02407686784863472, 0.013384697958827019, + 0.018833523616194725, 0.046424850821495056, 0.0057747638784348965, 0.018209991976618767, + -0.0012160660699009895, -0.01639607734978199, 0.029589464887976646, 0.03146006166934967, + -0.028852561488747597, 0.02379344403743744, -0.05637303367257118, 0.008198038674890995, + 0.014709705486893654, 0.03931090608239174, 0.04741683229804039, 0.06161637604236603, + -0.018380045890808105, 0.00996943935751915, 0.013405954465270042, -0.006912002805620432, + -0.012661966495215893, 0.005317742470651865, -0.013278414495289326, 0.03114829584956169, + -0.005696822423487902, -0.042740337550640106, -0.010536286979913712, -0.008304323069751263, + -0.0003669012221507728, 0.018535928800702095, 0.02376510202884674, 0.07663784921169281, + 0.013271328061819077, -0.023580875247716904, -0.007928785867989063, 0.01040874607861042, + -0.03318895027041435, 0.010096979327499866, -0.049570854753255844, -0.027548812329769135, + 0.006791547406464815, -0.030071286484599113, 0.02821485884487629, 0.0027616124134510756, + 0.005399227142333984, 0.008382264524698257, 0.012300601229071617, 0.008438949473202229, + -0.01978299394249916, 0.027137847617268562, 0.00886408518999815, 0.023722589015960693, + 0.010840967297554016, -0.01388068962842226, 0.007011201232671738, 0.00031420207233168185, + -0.00029338811873458326, -0.02719453163444996, 0.013554752804338932, 0.036108218133449554, + -0.011691239662468433, -0.028285713866353035, -0.035371314734220505, 0.00501660443842411, + -0.01462467759847641, -0.00011979092232650146, -0.02112925797700882, 0.020718293264508247, + -0.015276553109288216, -0.022036215290427208, -0.00945219025015831, -0.00026283145416527987, + 0.028866734355688095, -0.009934010915458202, 0.0056861937046051025, 0.013576009310781956, + -0.04529115557670593, -0.01101102214306593, -0.019542085006833076, -0.0025242448318749666, + -0.009027054533362389, -0.01785571128129959, 0.04965588450431824, 0.005395684391260147, + -0.026259232312440872, -0.04682164266705513, -0.045829661190509796, 0.012725736945867538, + 0.035342972725629807, 0.010217434726655483, 0.002437446266412735, -0.006639207247644663, + -0.008389350026845932, -0.0169912688434124, -0.05580618232488632, 0.014794732443988323, + -0.03412424772977829, -0.06138963624835014, -0.012265173718333244, -0.013278414495289326, + 0.010663827881217003, 0.056939881294965744, 0.011025193147361279, -0.051186371594667435, + 0.007829587906599045, 0.023595048114657402, -0.028129830956459045, -0.02260306291282177, + -0.02995791658759117, -0.027832236140966415, -0.018380045890808105, -0.006214071065187454, + 0.015432436019182205, 0.03613656014204025, 0.02156856656074524, 0.003904165467247367, + -0.014461709186434746, -0.007411537226289511, -0.038318924605846405, -0.01743057556450367, + -0.037610363215208054, 0.012746994383633137, -0.02037818543612957, 0.022064557299017906, + 0.0709126815199852, -0.008743629790842533, 0.003626055782660842, -3.6341378290671855e-5, + -0.01592842862010002, -0.003101721405982971, 0.013335098512470722, 0.023283280432224274, + 0.015347409062087536, -0.047190096229314804, -0.025281419977545738, 0.024912968277931213, + 0.03126166760921478, 0.021625250577926636, 0.006185728590935469, 5.984010567772202e-5, + 0.039622675627470016, 0.00671360595151782, 0.00011912664922419935, -0.018380045890808105, + -0.008701116777956486, -0.047785285860300064, 0.03880074620246887, -0.03233867883682251, + -0.026981964707374573, 0.012378542684018612, -0.031375035643577576, 0.0048217508010566235, + 0.027237046509981155, -0.02261723391711712, -0.02360921911895275, -0.006702977232635021, + 0.038177210837602615, 0.016041798517107964, -0.00634869746863842, 0.01684955693781376, + 0.05379387363791466, 0.014022402465343475, 0.02553650178015232, 0.03177183121442795, + -0.0051618595607578754, 0.007050171960145235, 0.004308044910430908, 0.0016668873140588403, + -0.013561838306486607, -0.013221729546785355, -0.007283996790647507, 0.016041798517107964, + 0.00029515952337533236, -0.0015189754776656628, 0.007928785867989063, 0.006451438646763563, + -0.0019963677041232586, 0.007588677573949099, 0.000950356072280556, -0.04707672446966171, + -0.008871170692145824, 0.00660732202231884, -0.012931219302117825, -0.0038616519887000322, + 0.024912968277931213, 0.01755811646580696, 0.021951187402009964, -0.02111508697271347, + -0.007071428466588259, -0.0009822412393987179, -0.029759518802165985, 0.020633267238736153, + -0.016736187040805817, -0.004067134112119675, -0.015120670199394226, -0.025734897702932358, + -0.003039722330868244, 0.01564500480890274, -0.01123776100575924, 0.020590752363204956, + 0.028144001960754395, -0.0023719044402241707, -0.007099770940840244, 0.011457415297627449, + 0.024997996166348457, 0.009650587104260921, -0.01115273404866457, -0.015446607954800129, + -0.025309761986136436, -0.0053106569685041904, 0.0031991482246667147, 0.003326689125970006, + -0.001783799729309976, 0.060766104608774185, -0.0025065308436751366, -0.007560335099697113, + -0.031686801463365555, 0.004013992380350828, 0.032707128673791885, 0.03945261985063553, + -0.025749070569872856, -0.013009161688387394, -0.023368308320641518, -0.0038474807515740395, + -0.028158172965049744, -0.0014295197324827313, 0.01625436544418335, 0.03202690929174423, + -0.017232179641723633, 0.026344260200858116, 0.03806384280323982, -0.050591181963682175, + 0.010571714490652084, 0.007801245432347059, -0.027279559522867203, -0.0369301475584507, + 0.0038085097912698984, 0.004793408326804638, 0.018124964088201523, 0.0169629268348217, + 0.008318494074046612, -0.008991626091301441, 0.008892428129911423, 0.004885521251708269, + -0.022078728303313255, -0.021355997771024704, 0.0057747638784348965, 0.04120984673500061, + 0.04078471288084984, 0.0034896580036729574, -0.012180145829916, 0.010904737748205662, + 0.008942026644945145, -0.012357286177575588, 0.011039364151656628, -0.01726052165031433, + -0.049712568521499634, 0.010819710791110992, -0.0036561693996191025, -0.02658517099916935, + 0.005353170447051525, 0.0017935424111783504, 0.036419983953237534, -0.031233323737978935, + -0.012095118872821331, -0.017019610852003098, -0.025763241574168205, -0.026103349402546883, + -0.0353996567428112, -0.022050386294722557, -0.03355740010738373, 0.0023010484874248505, + 0.019230317324399948, 0.022971514612436295, 0.00929630734026432, 0.04472430422902107, + 0.023835957050323486, -0.014525479637086391, 0.0009786984883248806, -0.05336873605847359, + -0.04220183193683624, 0.015035643242299557, 0.015134841203689575, -0.014291654340922832, + -0.020888349041342735, -0.041436586529016495, -0.00900579709559679, 0.034747783094644547, + -0.006235328037291765, 0.019570427015423775, -0.01803993619978428, -0.004757980350404978, + 0.00601921696215868, -0.00835392251610756, -0.0005819048965349793, -0.041124820709228516, + 0.04194675013422966, 0.01189672201871872, -0.02404852584004402, 0.017543945461511612, + 0.03225364908576012, -0.007177712395787239, 0.030921557918190956, -0.02054823935031891, + 0.008736544288694859, -0.01934368722140789, -0.022489693015813828, -0.02423275075852871, + -0.003946679178625345, -0.03942427784204483, -0.031119953840970993, -0.00509808911010623, + -0.0015056899283081293, -0.022532207891345024, 0.04390237480401993, 0.026344260200858116, + 0.01948539912700653, 0.009466361254453659, -0.014220798388123512, -0.031119953840970993, + 0.010763025842607021, 0.008609003387391567, 0.04401574656367302, 0.04240022972226143, + -0.008956198580563068, 0.0015003758016973734, -0.012739908881485462, 0.011471586301922798, + -0.04004780948162079, -0.031119953840970993, -0.019527912139892578, 0.0022408210206776857, + -0.004789865575730801, -0.008899513632059097, 0.002115051494911313, 0.0012488369829952717, + 0.023424992337822914, 0.012690309435129166, -0.007138741668313742, 0.043789006769657135, + -0.00044041432556696236, -0.033444032073020935, 0.05195161700248718, -0.008474376983940601, + 0.00952304620295763, -0.014723876491189003, 0.015375752002000809, 0.031828515231609344, + -0.004410786088556051, 0.0546724870800972, 0.03503120690584183, -0.002074309391900897, + -0.0038651947397738695, 0.032140281051397324, -0.044384196400642395, -0.03369911387562752, + -0.007673704531043768, 0.0007298167911358178, -0.03721357136964798, 0.0042903306894004345, + -0.00464815367013216, 0.011577869765460491, -0.011620383709669113, 0.060936156660318375, + -0.002208935795351863, -0.015375752002000809, 0.010330804623663425, 0.00879322923719883, + -1.4627888958784752e-5, -0.009218364953994751, -0.04741683229804039, 0.03865903243422508, + -0.022234613075852394, -0.049400802701711655, -0.015404094010591507, -0.0023541904520243406, + 0.0026978421956300735, 0.013186301104724407, -0.040841396898031235, -0.005126431584358215, + 0.004226560238748789, -0.006153843365609646, 0.0027562982868403196, -0.021370168775320053, + -0.044979386031627655, -0.023254938423633575, -0.020449040457606316, 0.01181169506162405, + 0.0064549813978374004, 0.008701116777956486, 0.004524155519902706, 0.043335527181625366, + -0.003379831090569496, -0.03721357136964798, -0.05699656531214714, -0.002414418151602149, + -0.019556256011128426, -0.01755811646580696, 9.465918265050277e-5, -0.01359726581722498, + -0.009643501602113247, -0.01432708278298378, 0.0033869165927171707, 0.009012882597744465, + -0.03012797050178051, 0.007283996790647507, 0.022829802706837654, 0.04755854606628418, + 0.030071286484599113, -0.013972803018987179, -0.015049814246594906, 0.023099055513739586, + 0.026372602209448814, 0.029164329171180725, 0.011485757306218147, 0.020590752363204956, + -0.040104493498802185, 0.013320927508175373, -0.004155704285949469, -0.003420573193579912, + 0.008694031275808811, 0.0693821907043457, -0.026783566921949387, 0.004173418506979942, + -0.011053536087274551, 0.0007865015650168061, -0.07374691963195801, 0.010600057430565357, + -0.0008378721540793777, -0.0383472666144371, 0.053822215646505356, 0.0057960208505392075, + 0.03231033682823181, 0.012279344722628593, 0.011195247992873192, -0.011414901353418827, + -0.026202548295259476, 0.040217865258455276, 0.01292413379997015, -0.06116289645433426, + -0.053538791835308075, 0.009728528559207916, -0.024360291659832, 0.05390724167227745, + 0.010571714490652084, -0.00018710411677602679, -0.030808188021183014, -0.021044231951236725, + 0.045829661190509796, 0.005693279672414064, 0.009976524859666824, -0.06558430939912796, + 0.003932507708668709, 0.008183867670595646, -0.007957128807902336, 0.0383756086230278, + -0.040246207267045975, 0.005069746635854244, -0.008757801726460457, 0.028455769643187523, + -0.017317205667495728, 0.025508159771561623, -0.016013454645872116, -0.010642570443451405, + 0.00214162259362638, 5.8566911320667714e-5, -0.006596693303436041, 0.002455160254612565, + -0.024459490552544594, -0.03661837801337242, -0.008559404872357845, 0.022206269204616547, + 0.03942427784204483, 0.029334383085370064, -0.02849828265607357, 0.02572072669863701, + -0.045858003199100494, -0.006430181674659252, -0.006316812243312597, 0.010585886426270008, + 0.003943136427551508, 0.0007032458088360727, -0.008892428129911423, -0.0005664051277562976, + 0.017543945461511612, -0.048805613070726395, 0.02995791658759117, -0.0062388707883656025, + -0.012810764834284782, -0.0035746851935982704, -0.009806470014154911, -0.011124392040073872, + -0.04648153483867645, -0.007461136672645807, 0.010961422696709633, 0.020420698449015617, + 0.003904165467247367, -0.01710463874042034, -0.018224162980914116, -0.024615373462438583, + 0.04146492853760719, 0.025479817762970924, -0.06666132062673569, 0.03131835162639618, + 0.03514457494020462, -0.003094635671004653, 0.005810191854834557, 0.005300028715282679, + 0.033444032073020935, -0.0008892428013496101, 0.00431867316365242, 0.02791726402938366, + -0.0020264815539121628, 0.003872280241921544, -0.004407242871820927, 0.001957396976649761, + 0.007857929915189743, -0.013207557611167431, 0.007772902958095074, -0.004385986365377903, + -0.022064557299017906, 0.028583308681845665, 0.008339750580489635, 0.013767320662736893, + 0.003147777635604143, -0.003889994230121374, -0.007872100919485092, 0.039792727679014206, + 0.016622817143797874, 0.0050272331573069096, 0.01874849759042263, 0.009395505301654339, + -0.003587084822356701, 0.04160664230585098, -0.032707128673791885, 0.016296880319714546, + -0.0008334436570294201, -0.019003579393029213, -0.0369584895670414, 0.0013267785543575883, + 0.015885915607213974, 0.012059690430760384, -0.03613656014204025, 0.012300601229071617, + -0.0047544375993311405, 0.020760808140039444, 0.012917048297822475, -0.00827598012983799, + -0.003872280241921544, -0.006741948425769806, -0.013824005611240864, -0.0075107356533408165, + 0.041861724108457565, -0.012527340091764927, 0.016367735341191292, -0.0036561693996191025, + -0.021667763590812683, -0.01818164996802807, -0.0059129330329597, 0.023212425410747528, + -0.005395684391260147, -0.015772545710206032, -0.026627684012055397, 0.008091755211353302, + -0.028441596776247025, 0.04818207770586014, -0.016013454645872116, 0.018422558903694153, + -0.011988834477961063, 0.013802748173475266, 0.031091611832380295, 0.03678843379020691, + 0.03885743021965027, -0.0002271820412715897, -0.01815330609679222, 0.016892069950699806, + -0.01019617822021246, -0.007935871370136738, -0.01202426292002201, 0.006855317857116461, + -0.009303392842411995, 0.012881620787084103, -0.0649040937423706, 0.012378542684018612, + -0.004347015637904406, 0.017926568165421486, -0.0020158530678600073, -0.026188377290964127, + 0.029787860810756683, 0.004003363661468029, -0.01622602343559265, 0.03029802441596985, + 0.01611265353858471, 0.011287360452115536, -0.014723876491189003, 0.018124964088201523, + 0.0057251644320786, -0.005207915790379047, -0.017784856259822845, 0.024303607642650604, + -0.025338103994727135, -0.007298167794942856, 0.00806341227144003, -0.04650987684726715, + 0.002745670033618808, 0.008183867670595646, -0.00929630734026432, -0.040387917309999466, + -0.004031706135720015, 0.002414418151602149, 0.03191354125738144, -0.020576581358909607, + -0.007772902958095074, -0.0029653236269950867, -0.02705281972885132, -0.024105209857225418, + 0.009445104748010635, -0.002906867302954197, 0.009289220906794071, -0.01322881504893303, + 0.006260127294808626, 0.051753219217061996, -0.00015156541485339403, 0.009771042503416538, + 0.015276553109288216, 0.013221729546785355, 0.03605153039097786, 0.011677068658173084, + -0.0027793266344815493, -0.013108359649777412, -0.027520470321178436, -0.012669051997363567, + -0.010238692164421082, -0.01174083910882473, -0.007517821621149778, -0.00431867316365242, + -0.019003579393029213, -0.015446607954800129, 0.0442708283662796, 0.03573976457118988, + -0.006784461904317141, 0.00842477846890688, -0.015262382104992867, -0.01567334681749344, + 0.006260127294808626, 0.015361580066382885, -0.019244488328695297, -0.022702261805534363, + -0.010330804623663425, -0.016041798517107964, 0.004896149504929781, -0.017983252182602882, + 0.044695962220430374, -0.0038297667633742094, -0.009707272052764893, -0.014064915478229523, + -0.011315702460706234, -0.02924935519695282, 0.017473088577389717, -0.025295590981841087, + -0.037015173584222794, -0.014908102340996265, -0.01667950116097927, 0.006040473934262991, + 0.03854566439986229, -0.020406527444720268, -0.062409963458776474, -0.02655682899057865, + 0.017345547676086426, 0.02054823935031891, -0.007638276554644108, -0.023878471925854683, + -0.01641024835407734, -0.03208359703421593, -0.01159912720322609, 0.016466934233903885, + -0.0273079015314579, 0.009728528559207916, -0.03384082391858101, -0.033585742115974426, + -0.045432865619659424, 0.0061148726381361485, -0.0048819780349731445, 0.014362511225044727, + 0.02793143503367901, -0.00893494114279747, -0.03381248190999031, 0.008835743181407452, + 0.027251217514276505, 0.028285713866353035, 0.025026338174939156, -0.007659533526748419, + 0.020463211461901665, 0.026670197024941444, 0.018422558903694153, -0.031686801463365555, + -0.0017386290710419416, 0.005831448826938868, -0.003904165467247367, -0.0037093115970492363, + 0.04563126340508461, -0.01292413379997015, -0.03647666797041893, -0.012796592898666859, + 0.008488548919558525, -0.018507586792111397, -0.006051102187484503, 0.018705982714891434, + 0.0028909246902912855, -0.015021471306681633, -0.002104423241689801, -0.00982064101845026, + 0.0103378901258111, -0.02231963910162449, 0.005764135625213385, 0.008750715292990208, + 0.005505511071532965, -0.05155482515692711, -0.01271156594157219, 0.032565414905548096, + -0.007152913138270378, -0.043930720537900925, 0.024487832561135292, -0.01697709783911705, + -0.022262955084443092, 0.005307114217430353, -0.029306041076779366, 0.006890745833516121, + 0.012364371679723263, -0.0229006577283144, -0.018124964088201523, -0.014525479637086391, + -0.004297416191548109, 0.028739193454384804, -0.010274119675159454, 0.0075532495975494385, + 0.017912397161126137, 0.001681058551184833, 0.0005017490475438535, 0.007857929915189743, + -0.009317563846707344, -0.020434869453310966, 0.004091933835297823, -0.0016739729326218367, + 0.03854566439986229, 0.011988834477961063, -0.009027054533362389, 0.023708416149020195, + -0.018535928800702095, -0.0003848366322927177, -0.016452763229608536, 0.012343115173280239, + -0.011641640216112137, 0.009012882597744465, -0.006575436796993017, -0.000711659959051758, + 0.006476238369941711, -0.050704553723335266, -0.00634869746863842, -0.010316633619368076, + 0.018535928800702095, 0.01932951621711254, -0.013186301104724407, -0.01728886365890503, + -0.05288691818714142, -0.012669051997363567, 0.007461136672645807, -0.02686859481036663, + 0.002231963910162449, -0.0004258002736605704, 0.0013037503231316805, -0.010840967297554016, + 0.013639779761433601, 0.020165616646409035, -0.024856284260749817, 0.0114503288641572, + -0.04313713312149048, 0.02261723391711712, -5.9452610003063455e-5, 0.02613169141113758, + -0.006550637073814869, -0.002217792673036456, 0.015503291971981525, -0.005718078929930925, + -0.0017120580887421966, -0.002244363771751523, -0.0025649871677160263, -0.019414544105529785, + -0.021171772852540016, -0.038772400468587875, -0.002789954887703061, 0.005363799165934324, + -0.009756870567798615, -0.009225451387465, 0.013051674701273441, -0.011110220104455948, + 0.03607987239956856, 0.02420440874993801, -0.012343115173280239, -0.026060836389660835, + -0.010890566743910313, -0.0310349278151989, -0.009423847310245037, -0.005888133309781551, + 0.008084669709205627, -0.007652447558939457, 0.025493988767266273, -0.006734862457960844, + 0.015418265014886856, -0.041408244520425797, 0.004198217764496803, -0.02939106710255146, + 0.013916118070483208, -0.014121600426733494, -0.014582164585590363, 0.012619453482329845, + 0.019386200234293938, -0.020860005170106888, 0.00730525329709053, 0.0034453729167580605, + 0.01130861695855856, -0.005997960455715656, 0.0035339428577572107, 0.014036573469638824, + 0.011804609559476376, -0.012222659774124622, 0.015276553109288216, 0.004782780073583126, + -0.007879187352955341, 0.003719939850270748, 0.0035923991817981005, 0.046623244881629944, + -0.0007289311033673584, 0.00019728967163246125, -0.009707272052764893, -0.02083166316151619, + 0.012208488769829273, -0.015602490864694118, 0.02716618962585926, 0.019697967916727066, + 0.03681677579879761, -0.0052433437667787075, -0.018436729907989502, -0.0029848089907318354, + 0.034464359283447266, -0.0015561748296022415, 0.007779988460242748, -0.01210928987711668, + 0.008198038674890995, -0.0022691632620990276, -0.0427970215678215, 0.016481105238199234, + 0.006249499041587114, 0.004984719678759575, 0.0036012560594826937, 0.02275894582271576, + -0.014107429422438145, -0.016665330156683922, 0.01667950116097927, 0.017954910174012184, + 0.013363441452383995, -0.0013560067163780332, 0.011712496168911457, -0.016211852431297302, + 0.007865015417337418, -0.005994417238980532, -0.018252504989504814, 0.00019230760517530143, + 0.0048819780349731445, -0.021171772852540016, -0.0016916869208216667, 0.01388068962842226, + -0.004113190807402134, 0.006586065050214529, -0.004272616468369961, -0.021667763590812683, + -0.03188519924879074, 0.003787253051996231, 0.003223947947844863, 0.007602848578244448, + -0.038318924605846405, 0.01462467759847641, 0.0018883123993873596, 0.03520125895738602, + -0.002182364696636796, -0.002476417226716876, 0.009600987657904625, -0.00936716329306364, + -0.05402061343193054, 0.006802175659686327, -0.036986831575632095, 0.008538147434592247, + -0.05492756888270378, 0.04500773176550865, 0.015871742740273476, 0.0008113011717796326, + -0.023212425410747528, 0.016722016036510468, 0.012265173718333244, -0.01789822429418564, + -0.006132586859166622, -0.0032877183984965086, 0.011471586301922798, -0.006674635224044323, + -0.042740337550640106, -0.0006983744096942246, -0.047926995903253555, 0.015758374705910683, + 0.007581591606140137, -0.010174921713769436, -0.010486687533557415, 0.006472695618867874, + 0.023127397522330284, -0.01859261468052864, -0.02967449277639389, -0.009027054533362389, + 0.04220183193683624, 0.03999112546443939, 0.02922101318836212, 8.870838428265415e-6, + 0.011684154160320759, 0.014723876491189003, 0.0033160606399178505, -0.017090465873479843, + 0.020477384328842163, -0.02572072669863701, 0.02260306291282177, 0.013122530654072762, + -0.027577154338359833, -0.02394932694733143, -0.007900443859398365, 0.0042442744597792625, + 0.010734683834016323, -0.031970225274562836, 0.018932722508907318, 0.017388062551617622, + -0.0018280846998095512, -0.012761165387928486, -0.0009494703845120966, 0.0018989407690241933, + 0.008155525662004948, 0.05934898555278778, -0.030609790235757828, -0.03341569006443024, + -0.02110091596841812, -0.009848983958363533, -0.03131835162639618, -0.0214268546551466, + 0.010628399439156055, -0.014879759401082993, 0.03959432989358902, -0.01210928987711668, + -0.03041139431297779, 0.00471900962293148, 0.013845262117683887, 0.00332137499935925, + -0.0055161393247544765, -0.0043576438911259174, -0.017458917573094368, -0.006323897745460272, + -0.007074971217662096, -0.033160608261823654, -0.027562983334064484, 0.0011514099314808846, + 0.011563698761165142, 0.014582164585590363, -0.03381248190999031, -0.022631404921412468, + 0.024416977539658546, 0.03585313633084297, 0.000994641100987792, 0.006309726741164923, + ], + index: 40, + }, + { + title: "Shaun Young", + text: "Shaun Young (born 13 June 1970, Burnie, Tasmania) is a former Australian cricketer.He played in one Test at The Oval in London in 1997. He was called into the test team as a replacement as he happened to be in England at the time. He played in 138 first-class cricket matches for Tasmania and Gloucestershire taking 274 wickets with his best bowling 7/64. He was dropped from the Tasmanian team in 2002.", + vector: [ + 0.012097458355128765, 0.030350737273693085, -0.014826327562332153, -0.0204189233481884, + -0.0037938421592116356, 0.03649069368839264, -0.02919255569577217, -0.02049824967980385, + -0.022513171657919884, 0.05054754391312599, -0.036332037299871445, 0.013715741224586964, + 0.024401167407631874, 0.021529508754611015, 0.01913381554186344, 0.015619602985680103, + -0.05410141870379448, -0.007916893810033798, -0.054513923823833466, -0.004831050522625446, + 0.04204362630844116, -0.007254508323967457, -0.041980162262916565, -0.021640567108988762, + 0.011478702537715435, 0.03303201124072075, -0.04597827419638634, -0.0298747718334198, + -0.02290980890393257, -0.026003586128354073, 0.007750305812805891, 0.026987247169017792, + 0.030921896919608116, -0.011843609623610973, -0.035031065344810486, 0.0014407874550670385, + -0.018784774467349052, 0.01055850274860859, -0.039187829941511154, 0.008186607621610165, + -0.007234676741063595, -0.007663045544177294, -0.023972798138856888, 0.02079969458281994, + -0.008055717684328556, -0.008087447844445705, -0.004172631539404392, -0.03168344125151634, + -0.02414732053875923, -0.01761072687804699, 0.023830009624361992, 0.027510810643434525, + -0.030001696199178696, 0.03604646027088165, -0.0011016619391739368, -0.043185941874980927, + 0.013953723944723606, 0.06695248931646347, 0.03544357046484947, -0.08929114043712616, + 0.014421756379306316, -0.011669089086353779, 0.012200583703815937, 0.0022687693126499653, + 0.02414732053875923, -0.015215032733976841, 0.02897043712437153, 0.01762659102678299, + -0.01664292998611927, 0.0033853051718324423, 0.007817734032869339, -0.006782509386539459, + 0.0009762251866050065, 0.026780996471643448, -0.011050334200263023, 0.04502634331583977, + 0.0018582489574328065, 0.04029841721057892, -0.06790442019701004, 0.04052053391933441, + 0.04956388100981712, -0.036300309002399445, -0.05188024789094925, 0.023433370515704155, + -0.013144582509994507, -0.002478987444192171, -0.0032464817631989717, -0.06447746604681015, + -0.009384454227983952, -0.03683973476290703, 0.053974494338035583, 0.027241095900535583, + 0.07291792333126068, 0.02792331390082836, -0.036934927105903625, 0.0014546697493642569, + 0.057084135711193085, -0.019578050822019577, -0.055465854704380035, 0.0030322973616421223, + -0.026193970814347267, -0.046327315270900726, 0.026257432997226715, -0.008234204724431038, + 0.006909433286637068, -0.018816504627466202, -0.07577371597290039, -0.006171687040477991, + 0.04052053391933441, 0.009804890491068363, 0.02167229913175106, -0.014421756379306316, + -0.04264651611447334, -0.00236197910271585, -0.012137121520936489, 0.010027008131146431, + -0.017658323049545288, 0.008718102239072323, -0.004144866950809956, 0.008622909896075726, + 0.016801584511995316, -1.3053417205810547e-5, 0.019324202090501785, -0.0033912546932697296, + 0.04283690080046654, -0.025591082870960236, -0.025242039933800697, 0.0076233819127082825, + 0.030350737273693085, 0.014810461550951004, -0.012240247800946236, -0.008614976890385151, + -0.008369061164557934, 0.018689582124352455, -0.052927371114492416, 0.0006048728828318417, + 0.017531398683786392, 0.007377466186881065, 0.03331758826971054, 0.03899744525551796, + 0.01069336012005806, -0.02739975042641163, 0.0818026140332222, 0.0020922652911394835, + -0.017658323049545288, -0.04835810139775276, 0.0056877885945141315, -0.016849180683493614, + -0.03899744525551796, 0.007492491509765387, 0.002488903235644102, 0.006453299894928932, + 0.0015885350294411182, -0.028145430609583855, -0.00035127249429933727, 0.004957974888384342, + 0.016420811414718628, 0.03595126420259476, 0.03871186450123787, 0.037537816911935806, + -0.01556407380849123, 0.020339595153927803, -0.04873887449502945, 0.004019925836473703, + -0.016404947265982628, -0.05619566887617111, -0.0535302609205246, -0.02484540268778801, + 0.015151570551097393, 0.03433298319578171, -0.011780147440731525, -0.02359202690422535, + 0.03680800274014473, 0.027732927352190018, 0.0029767679516226053, 0.006536593660712242, + -0.034777216613292694, -0.0282564889639616, 0.033412784337997437, 0.0009856453398242593, + -0.04991292208433151, -0.019086219370365143, 0.0298271756619215, -0.03617338463664055, + -0.04185323789715767, -0.018404001370072365, 0.053593721240758896, 0.01665879413485527, + -0.023988664150238037, 0.01193086989223957, 0.030572855845093727, -0.027145903557538986, + 0.0032306162174791098, -0.0025880627799779177, 0.012977994047105312, 0.06999866664409637, + 0.03168344125151634, 0.029462268576025963, -0.04934176430106163, 0.013144582509994507, + 0.005168192554265261, -0.061145711690187454, 0.03044593147933483, -0.025575216859579086, + -0.003831522772088647, 0.016769854351878166, 0.011312115006148815, 0.009130606427788734, + -0.021275660023093224, -0.01759486086666584, 0.054545655846595764, 0.06974481791257858, + 0.011772215366363525, 0.032270465046167374, -0.0376012809574604, 0.002015912439674139, + 0.04128208011388779, -0.0001701824803603813, 0.010963073931634426, 0.016404947265982628, + -0.008218338713049889, 0.014199639670550823, -0.009257529862225056, -0.03274643048644066, + -0.008852959610521793, 0.03683973476290703, -0.005259419325739145, 0.03737916424870491, + -0.010891678743064404, -0.034079134464263916, -0.012486163526773453, 0.06746018677949905, + 0.02517857775092125, -0.02016507461667061, -0.05219755694270134, 0.045121535658836365, + 0.02327471598982811, -0.0470888614654541, 0.07050636410713196, -0.03921956196427345, + 0.026543013751506805, 0.036014728248119354, 0.007532155141234398, -0.009392387233674526, + 0.028716588392853737, 0.009654168039560318, 0.028526203706860542, -0.05188024789094925, + -0.005398242734372616, 0.01886410266160965, -0.013461892493069172, -0.0409964993596077, + 0.004438378848135471, -0.011089997366070747, -0.015659267082810402, 0.00052951171528548, + -0.02049824967980385, -0.013557085767388344, 0.051118701696395874, -0.014231370761990547, + -0.017452070489525795, 0.026654072105884552, 0.02232278510928154, 0.03642722964286804, + 0.004608933348208666, 0.0003492893010843545, -0.02895457111299038, 0.03244498744606972, + -0.011732551269233227, -0.023020867258310318, 0.02708244137465954, 0.0004940622020512819, + -0.043852295726537704, 0.02925601601600647, -0.003904900746420026, -0.05241967365145683, + -0.052007172256708145, -0.023179523646831512, -0.023496832698583603, 0.03357143700122833, + 0.01734101213514805, 0.02860553003847599, 0.028129564598202705, -0.06412842869758606, + 0.012851070612668991, -0.008805363439023495, 0.0314137265086174, 0.0658101737499237, + -0.012882801704108715, -0.022703558206558228, -0.012708280235528946, -0.027891581878066063, + 0.018150154501199722, 0.00801208708435297, 0.024115588515996933, 0.036268576979637146, + -0.035665687173604965, -0.03487240895628929, 0.007111718878149986, -0.04673982039093971, + 0.020974215120077133, 0.020625174045562744, -0.03234979137778282, -0.019942957907915115, + -0.03296854719519615, -0.02133912220597267, 0.01243063434958458, 0.014786663465201855, + 0.0042122951708734035, -0.0407426543533802, -0.016420811414718628, 0.01694437488913536, + -0.0022985171526670456, -0.02581319957971573, 0.025860795751214027, 0.024734344333410263, + 0.0042757573537528515, -0.013192178681492805, -0.017832843586802483, 0.015802057459950447, + -0.022084802389144897, 0.006393804214894772, -0.018134288489818573, -0.018086692318320274, + 0.028827648609876633, -0.021942012012004852, 0.006881668698042631, -0.005584662780165672, + -0.018641984090209007, -0.0019395597046241164, -0.028081968426704407, -0.027145903557538986, + 0.023512698709964752, -0.007555953226983547, 0.004656529985368252, 0.026844458654522896, + 0.0439474880695343, 0.004049673676490784, -0.04182150959968567, 0.04566096514463425, + -0.015413351356983185, 0.03814070671796799, -0.0026554912328720093, 0.018356405198574066, + -0.03706185147166252, 0.02294154092669487, 0.027828119695186615, -0.026574743911623955, + -0.013691943138837814, 0.03306373953819275, 0.0007313012611120939, -0.00271498691290617, + 0.023116061463952065, 0.008702237159013748, -0.03166757524013519, 0.022481439635157585, + 0.007520256098359823, -0.013787135481834412, 0.02416318468749523, -0.025686275213956833, + 0.03414259850978851, 0.019911225885152817, 0.00960657186806202, 0.03363490104675293, + 0.002594012301415205, 0.009344791062176228, 0.01921314373612404, -0.03623684495687485, + 0.012145054526627064, 0.014889789745211601, 0.012502028606832027, 0.009209933690726757, + 0.0024988192599266768, -0.0033178767189383507, -0.01757899485528469, -0.034713756293058395, + -0.046041734516620636, 0.012851070612668991, 0.02614637464284897, -0.0039088670164346695, + 0.011708753183484077, 0.02008574642241001, -0.02706657536327839, -0.0017253751866519451, + -0.025606947019696236, -0.011431106366217136, -0.009757294319570065, -0.027463212609291077, + -0.001186939189210534, -0.001381291775032878, 0.023814143612980843, 0.02324298582971096, + -0.0078692976385355, -0.00977315939962864, 0.0024670881684869528, 0.005303049925714731, + 0.06422361731529236, 0.06777749955654144, 0.054260075092315674, -0.04550230875611305, + -0.000594461162108928, -0.04159938916563988, -0.033507976680994034, -0.026558877900242805, + 0.029160823673009872, 0.005683822091668844, 0.009693832136690617, -0.02330644801259041, + 0.01980016753077507, -0.026257432997226715, 0.0755198672413826, 0.02387760579586029, + -0.019324202090501785, -0.007563886232674122, 0.0014705352950841188, 0.016611197963356972, + -0.007421096321195364, 0.00013237792882137, 0.032556045800447464, -0.007916893810033798, + -0.005541032645851374, 0.015627536922693253, -0.025987720116972923, -0.03022381290793419, + -0.00809538085013628, 0.061463020741939545, 0.019990554079413414, 0.034396443516016006, + 0.006976861972361803, -0.018150154501199722, -0.004093303810805082, -0.05118216574192047, + -0.011772215366363525, 0.04531192034482956, 0.02736802026629448, -0.033476244658231735, + -0.05194370821118355, -0.015453015454113483, 0.021862685680389404, 0.02708244137465954, + -0.018689582124352455, 0.014048917219042778, -0.032254599034786224, -0.026558877900242805, + 0.00811124686151743, -0.03353970870375633, -0.0004184530698694289, 0.0012563507771119475, + 0.04220227897167206, 0.05321295186877251, -0.022227592766284943, -6.804820441175252e-5, + 0.006251014303416014, 0.01662706397473812, -0.00464463047683239, -0.024639150127768517, + -0.03050939366221428, 0.022751154378056526, -0.028526203706860542, 0.03420605883002281, + 0.01019359566271305, 0.0722833052277565, 0.018324675038456917, -0.08408725261688232, + 0.003486447734758258, 0.022560767829418182, 0.014842192642390728, -0.04845329374074936, + -0.0007198979146778584, -0.0057829818688333035, -0.00464463047683239, 0.00897988397628069, + -0.07659872621297836, 0.006362073123455048, -0.005989233497530222, 0.01702370122075081, + 0.0470571294426918, -0.01792803592979908, -0.023798277601599693, -0.003831522772088647, + -0.020577577874064445, 0.016246290877461433, -0.014390025287866592, 0.02922428585588932, + 0.025019923225045204, -0.029969966039061546, -0.036014728248119354, -0.004827084019780159, + -0.030049292370676994, -0.0061002918519079685, -0.017134759575128555, 0.04759655520319939, + 0.026812726631760597, 0.004311454948037863, -0.052610062062740326, -0.05806779861450195, + -0.010201528668403625, -0.020847292616963387, -0.03108055144548416, -0.019324202090501785, + 0.0016926525859162211, -0.006738879252225161, 0.04055226594209671, -0.012295776978135109, + -0.014850125648081303, 0.04734271019697189, -0.0019246857846155763, 0.05781394988298416, + -0.05229274928569794, -0.01980016753077507, 0.02573387138545513, 0.06371592730283737, + 0.022497305646538734, 0.009313059970736504, 0.019022757187485695, -0.00698479451239109, + 0.0021160636097192764, 0.011058266274631023, 0.05562451109290123, 0.05096004530787468, + -0.017515532672405243, 0.018388137221336365, 0.004081404767930508, 0.006568324752151966, + 0.029160823673009872, -0.013691943138837814, 0.001003989833407104, -0.026717534288764, + -0.007274340372532606, 0.027748793363571167, -0.022846346721053123, 0.004565303213894367, + -0.01458834484219551, 0.00819454062730074, -0.016016241163015366, -0.03649069368839264, + -0.032556045800447464, -0.03493587300181389, -0.00910680741071701, -0.005164226517081261, + 0.009923881851136684, -0.011224854737520218, 0.0020605341996997595, -0.00815487653017044, + 0.005164226517081261, 0.015881383791565895, 0.026590609923005104, -0.025844929739832878, + -0.006798374932259321, -0.008234204724431038, -0.021640567108988762, 0.008186607621610165, + -0.00790499523282051, -0.003821606980636716, 0.025416560471057892, -0.013065255247056484, + -0.07736027240753174, 0.034428175538778305, 0.02481367066502571, -0.0036589852534234524, + 0.020180940628051758, -0.029097361490130424, -0.006611954886466265, 0.013557085767388344, + 0.015151570551097393, 0.013858530670404434, 0.0011363677913323045, 0.012795541435480118, + -0.046676356345415115, -0.005453771911561489, -0.017182357609272003, 0.004351118579506874, + -0.005275284871459007, 0.013914059847593307, -0.013731606304645538, -0.030953627079725266, + 0.009995277039706707, 0.05099177733063698, 0.013025591149926186, 0.02448049560189247, + 0.004918310791254044, -0.05321295186877251, 0.011653224006295204, -0.006286711897701025, + -0.035062797367572784, -0.01919727772474289, 0.002562281209975481, -0.040679190307855606, + -0.014326563104987144, -0.01197053398936987, -0.03168344125151634, -0.031937289983034134, + -0.04902445524930954, 0.0117880804464221, 0.030572855845093727, -0.006366039626300335, + -0.032270465046167374, 0.012097458355128765, 0.02294154092669487, 0.012081592343747616, + 0.05489469692111015, 0.027574270963668823, 0.01734101213514805, -0.016833314672112465, + -0.0008537632529623806, -0.04924657195806503, -0.009384454227983952, 0.02895457111299038, + -0.036300309002399445, -0.021291526034474373, 0.029097361490130424, -0.008789497427642345, + -0.01132004801183939, -0.0025008025113493204, 0.00730607146397233, -0.005001605022698641, + 0.027558406814932823, -0.010891678743064404, 0.013795068487524986, 0.01539748627692461, + 0.031318534165620804, 0.011097930371761322, 0.048929259181022644, 0.0008041834807954729, + 0.001228586072102189, -0.033761825412511826, -0.050166770815849304, 0.009241664782166481, + 0.021497778594493866, 0.054228343069553375, -0.0203713271766901, -0.021196333691477776, + -0.029033899307250977, 0.03645896166563034, 0.020625174045562744, 0.005683822091668844, + 0.021212199702858925, 0.0004167177830822766, 0.010280855931341648, -0.041313812136650085, + 0.016404947265982628, 0.03306373953819275, 0.0440744124352932, 0.020577577874064445, + -0.03636376932263374, 0.00768684409558773, -0.0038414387963712215, 0.004898478742688894, + -0.009027480147778988, 0.013779203407466412, -0.046422507613897324, 0.035316646099090576, + 0.020593443885445595, -0.00865464098751545, -0.008305598981678486, -0.009844554588198662, + 0.014390025287866592, -0.01694437488913536, -0.009789025411009789, -0.02614637464284897, + 0.021466046571731567, 0.007476625964045525, -0.004831050522625446, 0.017721785232424736, + -0.006270846351981163, 0.0030084990430623293, -0.012851070612668991, -0.03176276758313179, + 0.03804551437497139, -0.011954668909311295, 0.01305732224136591, -0.029462268576025963, + -0.012684482149779797, -0.0024532058741897345, 0.026558877900242805, -0.014183773659169674, + -0.030906030908226967, 0.012240247800946236, 0.03417432680726051, 0.01303352415561676, + 0.029097361490130424, -0.04848502576351166, -0.041662853211164474, -0.0015151570551097393, + 0.010653696022927761, -0.03353970870375633, 0.0032365659717470407, 0.021846819669008255, + -0.006532627623528242, 0.00833733007311821, 0.0053109824657440186, 0.0036808003205806017, + 0.031207475811243057, 0.0022687693126499653, -0.019419394433498383, -0.019578050822019577, + -0.01055850274860859, -0.05413315072655678, 0.011891206726431847, -0.020958350971341133, + 0.0075757852755486965, 0.025353098288178444, 0.025844929739832878, -0.011058266274631023, + -0.02173576131463051, -0.018340539187192917, -0.013327036052942276, -0.012993860058486462, + 0.013945790939033031, -0.031889691948890686, -0.011232787743210793, 0.004815184976905584, + 0.013810934498906136, -0.009519311599433422, 0.00882122851908207, -0.008027952164411545, + 0.01789630576968193, 0.014104446396231651, -0.05368891730904579, 0.05432353541254997, + -0.018768908455967903, 0.009900083765387535, -0.009789025411009789, 0.018943428993225098, + -0.0020684669725596905, 0.03960033506155014, -0.031572382897138596, -0.014017186127603054, + 0.008503918536007404, 0.005886107683181763, -0.017531398683786392, 0.021180467680096626, + 0.032587774097919464, 0.011367644183337688, 0.021767491474747658, 0.054577384144067764, + 0.008852959610521793, -0.018102556467056274, 0.05410141870379448, 0.0008656623540446162, + 0.015960711985826492, -0.010820283554494381, -0.007155349012464285, -0.07666219025850296, + 0.001380300149321556, 0.007429029326885939, 0.008860892616212368, -0.011518366634845734, + 0.0057869479060173035, -0.028208892792463303, -0.0015121822943910956, -0.021751627326011658, + 0.05527546629309654, -0.01239097025245428, -0.056100476533174515, 0.009900083765387535, + 0.007920860312879086, -0.009154404513537884, -0.027288692072033882, -0.018816504627466202, + 0.02917668968439102, 0.03956860303878784, -0.006588156800717115, -0.02133912220597267, + 0.0014199638972058892, 0.03239738941192627, 0.01851505972445011, -0.0057353852316737175, + 0.03518972173333168, -0.005707620643079281, -0.009090942330658436, -1.9072709619649686e-5, + -0.04677154868841171, 0.03810897469520569, 0.04121861979365349, 0.0029113227501511574, + 0.020276132971048355, -0.02674926444888115, -0.021767491474747658, -0.03373009338974953, + -0.0018166019581258297, -0.01826121285557747, -0.030652182176709175, 8.973934018285945e-5, + -0.030430065467953682, 0.013477758504450321, 0.01859438791871071, 0.0016073753358796239, + -0.030731510370969772, -0.02392520196735859, 0.018118422478437424, 0.023703085258603096, + 0.013929925858974457, -0.019276605919003487, -0.016182828694581985, 0.01951458863914013, + -0.007294172421097755, 0.020815560594201088, 0.011145527474582195, -0.03829936310648918, + -0.021307392045855522, 0.022179994732141495, -0.012145054526627064, -0.036332037299871445, + 0.02701897919178009, -0.02072036825120449, -0.03173103928565979, -0.025876661762595177, + -0.021926147863268852, 0.04524846002459526, 0.03373009338974953, -0.006798374932259321, + 0.021005947142839432, 0.014977050013840199, -0.03636376932263374, 0.015175368636846542, + -0.007270373869687319, -0.02831995114684105, -0.011248652823269367, -0.05949569493532181, + -0.011915004812180996, 0.00972556322813034, 0.006659551523625851, -0.04277344048023224, + -0.012002265080809593, 0.04280516877770424, -0.013485691510140896, -0.016611197963356972, + 0.016111435368657112, -0.0018047027988359332, -0.025416560471057892, -0.0721563771367073, + -0.013128716498613358, -0.021862685680389404, -0.012922464869916439, 0.01303352415561676, + -0.011915004812180996, 0.006564358249306679, 0.05698894336819649, 0.004680328071117401, + 0.006373972166329622, -0.019387664273381233, -0.03082670271396637, -0.01981603354215622, + 0.00448200898244977, -0.036966659128665924, 0.013263573870062828, -0.0014278966700658202, + -0.025210309773683548, -0.03480894863605499, 0.0038275565020740032, 0.0003862262237817049, + 0.008408725261688232, 0.018292943015694618, -0.023417506366968155, -0.009083009324967861, + 0.051055241376161575, 0.018689582124352455, 0.010098402388393879, -0.0047239582054317, + 0.004303521942347288, 0.007286239415407181, -0.002560298191383481, -0.01696023903787136, + 0.01949872262775898, -0.02636849321424961, 0.018356405198574066, -0.020609309896826744, + 0.005648124497383833, -0.04274170845746994, -0.020260266959667206, 0.028240622952580452, + 0.027272827923297882, -0.016166964545845985, 0.012026063166558743, -0.004894512705504894, + -0.03385701775550842, 0.002419491531327367, 0.03353970870375633, -0.012835204601287842, + -0.052070632576942444, -0.07399678230285645, -0.0724736899137497, -0.016246290877461433, + -0.002217206172645092, 0.01697610504925251, -0.013446027413010597, 0.003371422877535224, + 0.0299065038561821, 0.006568324752151966, -0.035665687173604965, -0.018959295004606247, + -0.030017562210559845, 0.007206912152469158, 0.012351306155323982, 0.02013334259390831, + -0.0251151155680418, -0.05146774277091026, -0.010257057845592499, -0.009273395873606205, + 0.025955988094210625, 0.02008574642241001, -0.0011780147906392813, -0.011502501554787159, + 0.02708244137465954, -0.029081495478749275, 0.02801850624382496, 0.03890225291252136, + -0.008392859250307083, 0.021577104926109314, -0.03871186450123787, 0.039441678673028946, + 0.0029926334973424673, 0.020276132971048355, 0.009527243673801422, 0.016151098534464836, + -0.0029767679516226053, 0.02106940932571888, -0.011756349354982376, -0.019086219370365143, + -0.0037065818905830383, 0.021783357486128807, -0.02895457111299038, 0.011589761823415756, + -0.027590136975049973, -0.01887996681034565, 0.0009147463133558631, -0.02765359915792942, + -0.013311170041561127, 0.03142959251999855, 0.019022757187485695, 0.01385059766471386, + 0.028716588392853737, -0.02732042409479618, -0.014318631030619144, 0.003716497914865613, + -0.024766074493527412, -0.013993388041853905, -0.03082670271396637, -0.01590518280863762, + 0.012073660269379616, -0.015698930248618126, 0.012779675424098969, -0.014001320116221905, + -0.03423779085278511, -0.007377466186881065, -0.01919727772474289, 0.013580883853137493, + -0.03969552740454674, -0.012692415155470371, 0.04461383819580078, -0.0061478884890675545, + -0.0038097077049314976, -0.013049389235675335, 0.008559447713196278, 0.03331758826971054, + -0.011407308280467987, 0.00877363234758377, 0.014231370761990547, 0.037886857986450195, + -0.03801378235220909, 0.010772687382996082, -0.040710922330617905, 0.010106335394084454, + 0.015897249802947044, 0.028716588392853737, -0.03541183844208717, 0.018705446273088455, + -0.04458210989832878, -0.027843985706567764, 0.014643874019384384, 0.011089997366070747, + -0.015984511002898216, -0.028351683169603348, 0.01274001132696867, 0.025416560471057892, + -0.0064295013435184956, -0.001107611577026546, 0.06784095615148544, -0.00894021987915039, + -0.02638435736298561, -0.02006988227367401, -0.021926147863268852, -0.017515532672405243, + 0.012200583703815937, -0.004251959268003702, -0.04534365236759186, 0.01116139255464077, + 0.033222395926713943, -0.0376647412776947, -0.021307392045855522, -0.021577104926109314, + -0.01827707700431347, -0.038775328546762466, -0.038489747792482376, 0.025575216859579086, + -0.009217866696417332, -0.007405230775475502, 0.006707148160785437, -0.00502540310844779, + 0.011193123646080494, 0.017182357609272003, -0.04534365236759186, -0.013263573870062828, + -0.022830482572317123, 0.03528491407632828, 0.007984322495758533, 0.01978430151939392, + 0.0075599197298288345, 0.0094479164108634, -0.038521479815244675, -0.003815657226368785, + 0.022893942892551422, -0.030319007113575935, 0.015960711985826492, -0.046359047293663025, + 0.03969552740454674, -0.02322711981832981, 0.03871186450123787, 0.038204170763492584, + 0.013096985407173634, -0.01113759446889162, 0.03741089254617691, -0.02487713284790516, + -0.017103029415011406, 0.022735288366675377, 0.0014596277615055442, -0.02478194050490856, + -0.005445839371532202, 0.014136177487671375, 0.0002177790302084759, -0.021957878023386, + 0.0032722633332014084, -0.0377282053232193, -0.02010161243379116, -0.008043818175792694, + 0.005473603960126638, 0.05806779861450195, -0.011518366634845734, 0.010296721942722797, + 0.007964490912854671, -0.0011819811770692468, -0.036300309002399445, 0.013461892493069172, + -0.035380106419324875, 0.009622436948120594, 0.036903198808431625, 0.008678439073264599, + 0.0016162997344508767, 0.04439172148704529, 0.008575312793254852, 0.03874359652400017, + 0.005354612600058317, -0.007270373869687319, -0.017198221758008003, -0.011375577189028263, + -0.018721312284469604, 0.022893942892551422, 0.06822173297405243, -0.0001202308849315159, + -0.005207856651395559, -0.03212767466902733, 0.018292943015694618, -0.01981603354215622, + 0.04055226594209671, -0.014088580384850502, 0.01334290113300085, 0.010328453034162521, + 0.014580411836504936, 0.0008800405194051564, 0.011899138800799847, -0.02076796442270279, + -0.012652751058340073, -0.017674187198281288, -0.033127203583717346, 0.03956860303878784, + 0.009685899131000042, -0.0008225279743783176, -0.02855793386697769, 0.0034190192818641663, + 0.00928132887929678, 0.0017065348802134395, -0.015532342717051506, 0.012779675424098969, + -0.00849598553031683, 0.025543484836816788, 0.01634148508310318, 0.030350737273693085, + -0.02354443073272705, 0.007008593063801527, -0.01035225111991167, -0.0188482366502285, + -0.0376647412776947, -0.017753515392541885, 0.019609780982136726, 0.012152987532317638, + -0.03528491407632828, 0.08979883790016174, 0.006826139520853758, 0.009178202599287033, + -0.005517234094440937, -0.033222395926713943, -0.043820563703775406, 0.0011700820177793503, + 0.01983189955353737, -0.016000375151634216, 0.005469637457281351, 0.004172631539404392, + -0.015960711985826492, 0.011510433629155159, -0.03296854719519615, -0.0011066199513152242, + -0.04426479712128639, -0.02573387138545513, 0.011454904451966286, -0.019609780982136726, + -0.031651709228754044, -0.03338105231523514, -0.0029271882958710194, -0.005291150417178869, + 0.026336761191487312, -0.032207004725933075, 0.003972329199314117, -0.022386247292160988, + -0.023734815418720245, -0.01726168394088745, -0.016611197963356972, -0.0266858022660017, + -0.009979411028325558, 0.0102173937484622, 0.0010163848055526614, -0.03484068065881729, + 0.018372271209955215, 0.012311642989516258, 0.016016241163015366, 0.013723674230277538, + 0.0036788173019886017, 0.008146943524479866, -0.005608460865914822, 0.012970061972737312, + -0.0031988853588700294, -0.015334024094045162, 0.011859475634992123, 0.018816504627466202, + 0.0470888614654541, -0.0005533099756576121, 0.009915949776768684, -0.010971006006002426, + -0.01567513309419155, 0.02544829249382019, -0.0023342145141214132, 0.004628764931112528, + -0.013453960418701172, 0.01699197106063366, 0.02259249798953533, -0.004898478742688894, + -0.0007015534210950136, 0.015897249802947044, -0.020054016262292862, -0.01622249372303486, + 0.008242136798799038, 0.030715644359588623, -0.0015994426794350147, -0.011954668909311295, + -0.018991027027368546, -0.03334932029247284, 0.015016713179647923, -0.006635753437876701, + -0.03490414097905159, 0.03674454241991043, -0.012422701343894005, -0.0042757573537528515, + -0.037855129688978195, -0.020990081131458282, 0.030556989833712578, 0.020038150250911713, + -0.03176276758313179, 0.0018929546931758523, -0.000867149792611599, -0.02638435736298561, + 0.006366039626300335, -0.01948285661637783, 0.025400696322321892, -0.040679190307855606, + -0.002659457502886653, 0.00030937761766836047, -0.01853092573583126, -0.04045707359910011, + 0.007258474826812744, -0.020006420090794563, -0.013231842778623104, 0.006639719475060701, + -0.011677022092044353, 0.01665879413485527, -0.0012662666849792004, -0.035697419196367264, + 0.028066102415323257, 0.014509016647934914, -0.028351683169603348, 0.021275660023093224, + 0.015000848099589348, -0.024369437247514725, 0.02073623239994049, 0.011883273720741272, + -0.005850410088896751, 0.02479780651628971, -0.017769381403923035, -0.03737916424870491, + 0.0060844263061881065, -0.03161998093128204, -0.012351306155323982, -0.011756349354982376, + 0.058924537152051926, 0.0071672480553388596, 0.025083385407924652, 0.01762659102678299, + -0.02078383043408394, -0.05219755694270134, 0.009654168039560318, -0.004505807533860207, + -0.015445082448422909, -0.0034725654404610395, -0.03499933332204819, 0.009543109685182571, + -0.006909433286637068, 0.018927564844489098, 0.030731510370969772, -0.03079497255384922, + -0.021862685680389404, 0.024988193064928055, -0.02298913709819317, -0.012827271595597267, + 0.012137121520936489, -0.03741089254617691, 0.002451222622767091, -0.0628274530172348, + 0.00030912971124053, -0.0102094616740942, -0.004125034902244806, -0.0203713271766901, + 0.02140258438885212, -0.01019359566271305, -0.02544829249382019, -0.01788043975830078, + -0.013921992853283882, 0.00777013786137104, -0.014659739099442959, 0.027272827923297882, + -0.023116061463952065, -0.01396165695041418, -0.02233865112066269, 0.0220530703663826, + -0.02608291245996952, -0.017721785232424736, -0.0022370382212102413, -0.02298913709819317, + -0.02800264023244381, -0.014334496110677719, 0.010899611748754978, 0.018816504627466202, + -0.022402113303542137, -0.030858434736728668, -0.0022390212398022413, -0.013089053332805634, + -0.0032801961060613394, 0.013858530670404434, -0.020863156765699387, -0.011423173360526562, + -0.005334780551493168, -0.021291526034474373, 0.0001317581773037091, 0.004144866950809956, + 0.014786663465201855, 0.008599110879004002, 0.024956461042165756, -0.013327036052942276, + -0.016151098534464836, 0.0036094055976718664, 0.008408725261688232, 0.01945112645626068, + 0.0029807344544678926, 0.024067992344498634, 0.009757294319570065, -0.0440109483897686, + -0.04109169542789459, 0.024321841076016426, -0.014096513390541077, -0.009336858056485653, + -0.04486768692731857, 0.0050650667399168015, -0.007524222135543823, 0.01083614956587553, + 0.012906599789857864, -0.007714608684182167, 0.012763810344040394, -0.013699875213205814, + 0.008376994170248508, -0.014255168847739697, 0.03585607185959816, 0.010653696022927761, + -0.055148541927337646, 0.03044593147933483, 0.014294832944869995, 0.0006385871092788875, + -0.016166964545845985, -0.005386343691498041, -0.02229105494916439, -0.0022132399026304483, + -0.013977522030472755, 0.037252239882946014, 0.017705919221043587, -0.022497305646538734, + -0.018657850101590157, -0.029144957661628723, -0.00866257306188345, -0.011169325560331345, + 0.0266858022660017, -0.04210708662867546, -0.023655489087104797, -0.007714608684182167, + -0.015492679551243782, -0.013945790939033031, -0.0026931718457490206, 0.03300027921795845, + -0.0282564889639616, 0.03187382593750954, 0.005806779954582453, 0.0049817729741334915, + -0.03966379910707474, -2.478987335052807e-5, -0.004204362630844116, 0.0035201620776206255, + -0.011280383914709091, -0.03306373953819275, -0.0204665195196867, -0.021846819669008255, + -0.005124562419950962, -0.04651769995689392, -0.01005080621689558, -0.027780523523688316, + -0.022449709475040436, 0.012502028606832027, -0.00023587564646732062, -0.04220227897167206, + 0.00989215075969696, 0.0033773723989725113, -0.008020020090043545, 0.009463782422244549, + -0.01384266559034586, -0.04658116400241852, 0.004505807533860207, -0.011558030731976032, + -0.027875715866684914, 0.018324675038456917, 0.014683538116514683, 0.0050135040655732155, + -0.02137085422873497, 0.0173251461237669, 0.034079134464263916, 0.02138672024011612, + -0.02887524478137493, 0.002586079528555274, -0.006960996426641941, -0.0172775499522686, + -0.014929452911019325, -0.009471714496612549, -0.02549588866531849, -0.016769854351878166, + 0.009257529862225056, -0.005763149820268154, 0.012977994047105312, 0.00494210934266448, + -0.006322409491986036, 0.017864573746919632, 0.01891169883310795, -0.0019008874660357833, + 0.008670506067574024, -0.019609780982136726, -0.00023587564646732062, 0.0061796195805072784, + -0.02703484334051609, -0.0003049154474865645, 0.019419394433498383, -0.013358767144382, + 0.06193898618221283, 0.029081495478749275, 0.010328453034162521, 0.014175841584801674, + -0.020545847713947296, -0.03645896166563034, 0.004505807533860207, -0.024972327053546906, + 0.00478345388546586, -0.014318631030619144, 0.021164601668715477, 0.002080366248264909, + -0.00247105467133224, -0.029636789113283157, -0.037886857986450195, -0.009868352673947811, + 0.01853092573583126, -0.031286802142858505, 0.009551042690873146, 0.012145054526627064, + -0.009693832136690617, -0.03246085345745087, 0.03052525781095028, -0.02801850624382496, + -0.01672225631773472, 0.010447444394230843, -0.04591481015086174, -0.014810461550951004, + 0.02771706134080887, -0.007797902449965477, 0.025305502116680145, 0.016452543437480927, + 0.014231370761990547, 0.023417506366968155, -0.006826139520853758, 0.044772494584321976, + -0.03146132454276085, -0.015460948459804058, -0.0005116629763506353, 0.047660019248723984, + -0.010526771657168865, 0.013715741224586964, -0.02105354331433773, 0.0034150530118495226, + -0.019927091896533966, -0.005985266994684935, 0.008765699341893196, 0.012152987532317638, + 0.020529981702566147, 0.03271469846367836, 0.01854679174721241, -0.004037774633616209, + -0.02611464448273182, 0.012462365441024303, -0.0051047308370471, 0.004608933348208666, + -0.002135895425453782, -0.04315420985221863, -0.011383510194718838, 0.02917668968439102, + -0.031508918851614, -0.01180394645780325, -0.05153120681643486, 0.023671355098485947, + 0.006968928966671228, 0.012827271595597267, 0.00831353198736906, -0.011954668909311295, + -0.02014920860528946, -0.009170269593596458, -0.010328453034162521, -0.001276182709261775, + 0.013882328756153584, 0.005901973228901625, 0.002104164334014058, -0.013358767144382, + 0.011446971446275711, 0.021942012012004852, 0.02008574642241001, -0.017103029415011406, + -0.027558406814932823, 0.015968644991517067, 0.025543484836816788, 0.008948152884840965, + -0.013446027413010597, -0.003976295702159405, 0.01856265775859356, 0.0033912546932697296, + -0.03247671574354172, 0.051404282450675964, 0.032524313777685165, 0.001677778665907681, + -0.0038116909563541412, -0.06758710741996765, 0.02735215425491333, 0.0007089903810992837, + 0.030271410942077637, -0.031064685434103012, -0.0012751910835504532, 0.0061280569061636925, + 0.011423173360526562, 0.014334496110677719, -0.0188006404787302, 0.017436204478144646, + 0.017372742295265198, 0.008741901256144047, 0.03344451263546944, -0.008567379787564278, + -0.0034309185575693846, 0.01756312884390354, -0.03426951915025711, 0.027447348460555077, + 0.008718102239072323, -0.00865464098751545, -0.010756821371614933, -0.006373972166329622, + 0.00023265296476893127, 0.015595804899930954, -0.04255132004618645, -0.006251014303416014, + -0.0012940313899889588, 0.02197374403476715, -0.020561711862683296, -0.03268297016620636, + -0.02643195539712906, 0.021640567108988762, -0.007663045544177294, 0.004085371270775795, + -0.03238152340054512, 0.010019075125455856, 0.02387760579586029, 0.003060061950236559, + 0.019070353358983994, -0.005584662780165672, 0.007155349012464285, -0.055148541927337646, + 0.0004541504895314574, -0.03363490104675293, 0.008543581701815128, 0.01694437488913536, + -0.0266699381172657, 0.008305598981678486, 0.010027008131146431, 0.0377282053232193, + -0.02641608938574791, -0.006695249117910862, -0.029398806393146515, 0.009320992045104504, + 0.021878549829125404, 0.008876757696270943, 0.01734101213514805, -0.019244873896241188, + ], + index: 41, + }, + { + title: "Fichtelberg", + text: "The Fichtelberg (German pronunciation: [\u02c8f\u026a\u00e7t\u0259lb\u025b\u0250\u032fk]) is a mountain with two main peaks in the middle of the Ore Mountains in the east German state of Saxony, near the Czech border. At 1,214.6 m (3,985 ft) above sea level, the Fichtelberg is the highest mountain in Saxony, the second highest in the Ore Mountains and used to be the highest mountain in East Germany. Its subpeak is 1,206 m (3,957 ft) high.", + vector: [ + 0.02628307417035103, 0.04610802233219147, -0.007010071538388729, -0.0029493365436792374, + -0.0032196766696870327, -0.00965715292841196, -0.03682634234428406, -0.0024630995467305183, + -0.012818630784749985, 0.03442331776022911, -0.046017907559871674, 0.03223055973649025, + 0.0032440824434161186, 0.024105334654450417, -0.033402033150196075, 0.023819975554943085, + 0.016460714861750603, 0.012886215932667255, -0.02485627867281437, -0.05046350136399269, + 0.0010372428223490715, -0.04703919589519501, -0.0456274189054966, 0.009784813039004803, + -0.01281112153083086, 0.013659689575433731, -0.00562457786872983, -0.019885024055838585, + -0.035594791173934937, -0.027094095945358276, 0.045807644724845886, 0.03190014138817787, + 0.017737319692969322, -0.0005181520245969296, -0.00928167998790741, -0.0037265645805746317, + 0.03901910036802292, -0.03430316597223282, 0.014027652330696583, -0.02372986078262329, + 0.0030150441452860832, 0.012623385526239872, -0.014395615085959435, 0.022843746468424797, + -0.0314796157181263, -0.024240504950284958, 0.013329273089766502, 0.009078924544155598, + -0.011872440576553345, -0.04517684876918793, 0.015664711594581604, 0.001669913879595697, + 0.017061470076441765, 0.037787552922964096, -0.016415657475590706, 0.00476099131628871, + 0.02942202426493168, 0.1589600294828415, 0.0012775451177731156, -0.009116471745073795, + 0.006555749569088221, -0.02419544756412506, -0.059835296124219894, -0.028175456449389458, + -0.018758606165647507, -0.032470859587192535, -0.0376974381506443, 0.012135270982980728, + -0.0219876691699028, 0.0002649427915457636, -0.015033918432891369, 0.01508648507297039, + 0.023023974150419235, 0.05268630012869835, 0.03223055973649025, 0.007393053267151117, + -0.020681025460362434, -0.053827736526727676, 0.009229114279150963, -0.04547723010182381, + 0.012465686537325382, 0.028490852564573288, -0.07251124829053879, -0.017722301185131073, + 0.022843746468424797, -0.03361229598522186, -0.029151683673262596, -0.036225587129592896, + -0.027634775266051292, 0.05911438912153244, -0.011692213825881481, 0.03574497997760773, + -0.049322064965963364, -0.02200268767774105, 0.010415607132017612, 0.0014981352724134922, + 0.04923195391893387, -0.010333003476262093, -0.01620539277791977, 0.027860058471560478, + 0.029271835461258888, -0.05295664072036743, 0.009897454641759396, 0.039529744535684586, + 0.011189080774784088, 0.028325645253062248, -0.017857471480965614, 0.031659841537475586, + 0.012255421839654446, -0.01510150358080864, 0.02137189358472824, 0.028040286153554916, + 0.004250348545610905, 0.009476926177740097, 0.040641143918037415, 0.033101655542850494, + 0.03018798865377903, 0.03724687173962593, -0.012871197424829006, -0.01994509808719158, + -0.022137857973575592, 0.01806773617863655, 0.005951239261776209, -0.00793748814612627, + 0.008928735740482807, 0.0031201764941215515, 0.05169505253434181, -0.008065149188041687, + 0.016716035082936287, 0.022738615050911903, -0.009371793828904629, -0.038117967545986176, + 0.02862602286040783, -0.01572478748857975, 0.016475733369588852, 0.0008588933269493282, + 0.06548240035772324, 0.04589775949716568, 0.0314796157181263, 0.006919958163052797, + -0.02153710275888443, 0.046768855303525925, -0.031059084460139275, 0.05647106468677521, + -0.01587497629225254, -0.028851306065917015, -0.005196539219468832, -0.008605829440057278, + -0.01092624943703413, -0.0408514067530632, 0.018338076770305634, 0.0019655984360724688, + -0.007070146966725588, -0.0180827546864748, -0.0220177061855793, -0.014215388335287571, + 0.010731004178524017, -0.0023072785697877407, 0.035114187747240067, 0.032170481979846954, + -0.016430675983428955, -0.020635968074202538, 0.030533423647284508, -0.019734833389520645, + 0.03649592772126198, -0.007967526093125343, 0.019374379888176918, 0.03787766396999359, + 0.009078924544155598, 0.010956287384033203, 0.027905115857720375, -0.0016502016223967075, + -0.015454447828233242, -0.015634674578905106, -0.02641824446618557, -0.015769844874739647, + 0.04061110317707062, -0.016085240989923477, 0.038117967545986176, 0.018202906474471092, + 0.007002561818808317, -0.00809518713504076, 0.026613490656018257, -0.02014034427702427, + -0.043915264308452606, 0.03376248851418495, 0.008906207978725433, 0.03526437655091286, + -0.02012532576918602, -0.054608721286058426, 7.397981244139373e-5, 0.02249831147491932, + 0.028220511972904205, -0.031659841537475586, 0.04935210570693016, -0.03550468012690544, + -0.011970062740147114, 0.055449776351451874, 0.01743694208562374, 0.01899890787899494, + -0.0581531785428524, 0.01085866428911686, 0.02122170478105545, 0.002502524061128497, + 0.041602350771427155, 0.010948778130114079, 0.03421305492520332, -0.003976253792643547, + -0.011662175878882408, 0.036736227571964264, 0.03478377312421799, -0.020410684868693352, + -0.007535732816904783, 0.03595524653792381, 0.04658862575888634, 0.01227044127881527, + 0.026298092678189278, -0.004813557490706444, 0.003927442245185375, 0.053527358919382095, + 0.09984564781188965, -0.03283131495118141, -0.015769844874739647, 0.005992541089653969, + -0.028701117262244225, 0.013960067182779312, -0.03271116316318512, -0.0180827546864748, + -0.0267486609518528, -0.03238074854016304, -0.04211299493908882, 0.004832331091165543, + -0.049922823905944824, -0.0036495926324278116, -0.041091710329055786, -0.009957530535757542, + -0.014613389037549496, -0.004449348896741867, 0.02955719456076622, -0.0306836124509573, + 0.03817804157733917, 0.0010945022804662585, 0.0049449726939201355, -0.011271684430539608, + -0.01313402783125639, 0.000625161686912179, -0.00936428364366293, -0.043795112520456314, + 0.009619605727493763, 0.01557459868490696, 0.029902629554271698, -0.031990256160497665, + 0.024646013975143433, -0.004937463440001011, 0.017872489988803864, -0.04511677473783493, + -0.011504476889967918, 0.008665905334055424, -0.018833700567483902, -0.0259226206690073, + -0.042863938957452774, 0.009957530535757542, 0.03916928917169571, 0.011279193684458733, + 0.008861150592565536, 0.01359210442751646, 0.005827333312481642, 0.027799982577562332, + -0.040010347962379456, -0.025261789560317993, 0.008665905334055424, 0.01760215125977993, + 0.0005622700555250049, -0.050703804939985275, 0.0012212243163958192, 0.030728669837117195, + 0.0313895009458065, 0.05836344510316849, -0.0029042798560112715, -0.0010184691054746509, + 0.013058933429419994, -0.007501940242946148, -0.0023016463965177536, 0.07515457272529602, + -0.02532186545431614, 0.07124966382980347, -0.009694700129330158, -0.011391835287213326, + 0.06037597730755806, -0.06818580627441406, 0.002123296959325671, -0.003035695059224963, + 0.006897429935634136, -0.01697135716676712, -0.004096405114978552, 0.010400587692856789, + -0.008793565444648266, 0.01695633865892887, 0.044245678931474686, -0.002868609968572855, + -0.022828727960586548, 0.06728467345237732, -0.011174061335623264, 0.011219117790460587, + -0.0016783620230853558, 0.009319227188825607, -0.056531138718128204, 0.03409290313720703, + -0.059805259108543396, -0.01775234006345272, 0.015071465633809566, -0.030938932672142982, + 0.011279193684458733, 0.05112433433532715, -0.014177841134369373, -0.0029080344829708338, + 0.012525762431323528, -0.01712154597043991, -0.011256664991378784, -0.02796519175171852, + 0.031990256160497665, -0.004317933693528175, -0.01484618242830038, 0.02261846326291561, + 0.07407321035861969, -0.004595783539116383, 0.0016117156483232975, -0.01965973898768425, + 0.026643527671694756, 0.012300479225814342, -0.024255523458123207, 0.03478377312421799, + 0.023144124075770378, -0.021777404472231865, -0.03535449132323265, -0.04968252032995224, + -0.04325443133711815, 0.006713448092341423, -0.03032315894961357, 0.01790252886712551, + 0.023639747872948647, 0.009289189241826534, 0.02105649746954441, 0.05295664072036743, + -0.02656843326985836, -0.03208037093281746, 0.04908176511526108, -0.007516959216445684, + -0.009769794531166553, 0.004310424439609051, 0.0006237537018023431, 0.03694649413228035, + -0.07425343990325928, 0.038298193365335464, 0.021011440083384514, 0.014102746732532978, + -0.08050130307674408, -0.04830078035593033, 0.0676451250910759, 0.005523200612515211, + 0.0017881877720355988, -0.0235946923494339, 0.05959499254822731, 0.020350608974695206, + -0.026132885366678238, 0.011594590730965137, 0.008508206345140934, 0.004734707996249199, + 0.0014042671537026763, 0.019299285486340523, -0.013719764538109303, -0.024495825171470642, + 0.020380647853016853, 0.028565946966409683, -0.059685107320547104, -0.024630995467305183, + 0.012300479225814342, -0.0029230534564703703, -0.031209273263812065, 0.009184056892991066, + -0.05139467492699623, -0.0008753202273510396, 0.02251332998275757, 0.011519496329128742, + -0.011151532642543316, -0.0005632087122648954, -0.029166704043745995, -0.03631569817662239, + -0.046468477696180344, 0.02688383124768734, -0.04103163257241249, 0.021356875076889992, + 0.00660080648958683, -0.02027551457285881, -0.0009246010449714959, -0.04421564191579819, + -0.01352451927959919, 0.046017907559871674, -0.02922677807509899, -0.03526437655091286, + 0.005440596491098404, 0.015124032273888588, 0.02326427586376667, 0.045987870544195175, + 0.04106167331337929, 0.021101554855704308, 0.021131591871380806, 0.012307988479733467, + -0.01979490928351879, 0.019254229962825775, -0.015920033678412437, -0.03283131495118141, + 0.059685107320547104, -0.017211658880114555, 0.04538711532950401, -0.012555800378322601, + -0.0062966737896203995, -0.010242889635264874, -0.004355480894446373, 0.031659841537475586, + -0.025877565145492554, -0.015424409881234169, -0.009889945387840271, -0.009942512027919292, + -0.020801175385713577, 0.03424309194087982, 0.006240352988243103, 0.024270541965961456, + -0.010948778130114079, -0.00012144188804086298, -0.05866382271051407, -0.0065632592886686325, + 0.025877565145492554, 0.029016515240073204, 0.02233310416340828, 0.04965248331427574, + 0.005699672270566225, 0.036375775933265686, 0.05280645191669464, 0.04697911813855171, + 0.06506187468767166, 0.003418677020817995, 0.06470142304897308, 0.011061419732868671, + -0.0067697688937187195, 0.019569626078009605, -0.04463617131114006, -0.002797270193696022, + 0.0017177866538986564, -0.048481009900569916, 0.026132885366678238, -0.02185249887406826, + 0.036736227571964264, -0.01077606063336134, 0.020380647853016853, -0.013111499138176441, + 0.062839075922966, 0.018593396991491318, 0.020966384559869766, -0.04962244629859924, + -0.03319177031517029, -0.016250450164079666, 0.011264175176620483, -0.0503433533012867, + 0.04031072556972504, 0.05569007992744446, 0.025426996871829033, 0.04214303195476532, + 0.02294887974858284, 0.009627114981412888, -0.0019900042098015547, -0.02623801864683628, + -0.10050647705793381, 0.014786106534302235, 0.024105334654450417, 0.026222998276352882, + 0.012150289490818977, -0.051484789699316025, 0.04067118093371391, 0.017887510359287262, + 0.07022837549448013, 0.002954968484118581, -0.013486972078680992, -0.005729710217565298, + -0.028881344944238663, 0.010460663586854935, -0.01839815266430378, -0.039559781551361084, + -0.013501990586519241, 0.03913925215601921, -0.0040025366470217705, -0.04649851471185684, + 0.025667300447821617, 0.0033360731322318316, -0.0009353958303108811, 0.052445996552705765, + -0.0050163124687969685, 0.001950579578988254, -0.03018798865377903, -0.00456574559211731, + -0.01335180178284645, 0.0165207888931036, 0.0034862621687352657, 0.0259226206690073, + -0.01650577038526535, 0.05121444910764694, 0.01745196059346199, 0.06151741370558739, + -0.03892898932099342, -0.005444351118057966, 0.05457868054509163, 0.02419544756412506, + 0.03598528355360031, -0.04508673772215843, -0.029196741059422493, -0.003326686332002282, + -0.0005932465428486466, -0.004993784241378307, -0.016130298376083374, 0.00895877368748188, + -0.0024499581195414066, 0.004573254846036434, 0.003223431296646595, 0.0330115407705307, + 0.06301930546760559, 0.016851205378770828, -0.015244183130562305, 0.001301012234762311, + 0.00895877368748188, -0.014275464229285717, -0.08140243589878082, -1.3640211363963317e-5, + -0.0487813875079155, 0.041602350771427155, 0.020996421575546265, 0.025832507759332657, + 0.0004322627210058272, -0.05250607430934906, -0.006334220990538597, -0.010700966231524944, + -0.026688585057854652, -0.03352218493819237, -0.031419537961483, -0.0034055355936288834, + -0.04319435730576515, -0.03995027393102646, 0.008861150592565536, -0.000696501461789012, + 0.007809828035533428, -0.02278367057442665, -0.007997564040124416, -0.013930029235780239, + -0.02451084367930889, 0.02388005144894123, -0.015326786786317825, 0.0157097689807415, + -0.03313169255852699, -0.01650577038526535, -0.005087652243673801, -0.018368113785982132, + 0.028190474957227707, -0.003465611021965742, -0.04385518655180931, 0.040490955114364624, + -0.014951314777135849, -0.015379353426396847, -0.0027390718460083008, 0.024285560473799706, + -0.030908895656466484, -0.005132709164172411, 0.007265392690896988, -0.019584644585847855, + 0.015679731965065002, 0.01778237707912922, -0.01085866428911686, 0.011887459084391594, + 0.012082705274224281, -0.061697639524936676, 0.018608417361974716, -0.029211759567260742, + 0.020485779270529747, -0.02374488115310669, 0.0015751071041449904, -0.02077113837003708, + -0.017346829175949097, 0.001974985236302018, -0.02954217605292797, -0.08002069592475891, + -0.006300428416579962, 0.0019186644349247217, -0.01622041128575802, 0.06500180065631866, + 0.0047159343957901, -0.003321054158732295, -0.002519420348107815, -0.024330617859959602, + 0.0057146912440657616, 0.03241078555583954, -0.07407321035861969, -0.0005937158712185919, + -0.0165207888931036, -0.015619656071066856, 0.018202906474471092, -0.055720116943120956, + -0.034333206713199615, 0.011144023388624191, 0.018923813477158546, -0.05905431509017944, + -0.022708576172590256, -0.0028479588218033314, -0.008410584181547165, 0.0004890529089607298, + 0.040160536766052246, 0.012540780939161777, 0.009033868089318275, -0.01384742558002472, + 0.0057146912440657616, -0.0018454473465681076, 0.019554607570171356, -0.01140685472637415, + 0.022137857973575592, -0.038148004561662674, -0.024886317551136017, 0.020380647853016853, + -0.03190014138817787, 0.023159142583608627, 0.04172250255942345, -0.0044005378149449825, + -0.011572062037885189, 0.00024171041150111705, -0.022753633558750153, 0.0015093993861228228, + 0.03385259956121445, -1.6324253010679968e-5, -0.00895877368748188, 0.010250398889183998, + 0.024180429056286812, -0.005673389416188002, 0.026628509163856506, 0.007952507585287094, + 0.03493396192789078, 0.005598295014351606, -0.004937463440001011, -0.06392043828964233, + -0.005256615113466978, -0.020681025460362434, 0.006593296770006418, 0.016100261360406876, + 0.021927593275904655, -0.024615976959466934, -0.014005123637616634, 0.01359210442751646, + 0.010408097878098488, 0.006886165589094162, -0.004359235521405935, -0.0032159218098968267, + 0.007682167459279299, -0.026538396254181862, -0.0005941851995885372, 0.005628332495689392, + 0.02344450168311596, -0.019584644585847855, -0.01525920256972313, -0.010220360942184925, + -0.020035212859511375, -0.009769794531166553, -0.004896161146461964, -0.01604018546640873, + 0.0074756573885679245, -0.010025115683674812, -0.01179734617471695, -0.0102128516882658, + 0.00778729934245348, 0.025216732174158096, 0.012202856130897999, 0.002433061832562089, + 0.00841809343546629, -0.0227986890822649, 0.016896262764930725, 0.008463149890303612, + 0.00785488449037075, -0.031239312142133713, 0.01328421663492918, -0.02939198724925518, + -0.06319952756166458, -0.008065149188041687, -0.017497017979621887, 0.020996421575546265, + 0.01107643824070692, 0.019584644585847855, 0.008290432393550873, 0.019089020788669586, + -0.057612501084804535, 0.009544510394334793, -0.006157748866826296, 0.012766065075993538, + 0.009086434729397297, -0.0005768196424469352, -0.02057589218020439, -0.0251416377723217, + 0.013584595173597336, 0.02625303715467453, -0.006439353339374065, 0.011572062037885189, + -0.021326838061213493, 0.008680923841893673, -0.020215438678860664, -0.006567013915628195, + -0.016100261360406876, -0.04067118093371391, 0.007982545532286167, -0.04589775949716568, + -0.03129938617348671, -0.010393078438937664, 0.01605520397424698, -0.01794758439064026, + 0.023369407281279564, -0.01281112153083086, 0.0026564679574221373, 0.015033918432891369, + 0.02107151597738266, 0.02123672515153885, 0.01321663148701191, -0.028070323169231415, + -0.009093943983316422, -0.00036866706795990467, 0.030278101563453674, -0.000830732868053019, + 0.02248329296708107, 0.027875078842043877, -0.00816277228295803, 0.004629575647413731, + -0.0009931247914209962, -0.014440672472119331, -0.010070172138512135, -0.010588324628770351, + -0.0012690969742834568, -0.010956287384033203, 0.03051840513944626, -0.00495623704046011, + -0.010715984739363194, -0.027454549446702003, -0.0023204199969768524, 0.008388055488467216, + -0.015754826366901398, 0.009664662182331085, 0.007595808710902929, -0.013494481332600117, + -0.029196741059422493, 0.0534672848880291, 0.01622041128575802, 0.003131440607830882, + 0.01791754737496376, -0.021507063880562782, -0.013689727522432804, 0.021612197160720825, + -0.024270541965961456, -0.03974000737071037, 0.04184265434741974, -0.019779890775680542, + -0.021792422980070114, 0.029151683673262596, -0.039709970355033875, 0.0012512620305642486, + 0.01934434287250042, -0.001478422898799181, -0.031659841537475586, 0.0019900042098015547, + 0.020816195756196976, -0.0029943932313472033, 0.027574699372053146, 0.016385620459914207, + 0.010378059931099415, -0.007430600468069315, -0.016746073961257935, -0.05079391971230507, + 0.028656059876084328, 0.024150390177965164, 0.030848819762468338, 0.007051373366266489, + -0.01540939137339592, 0.0023448257707059383, 0.018308037891983986, 0.014418143779039383, + -0.03724687173962593, 0.0017403149977326393, -0.0037453381810337305, 0.01123413722962141, + -0.05295664072036743, 0.05563000589609146, -0.015664711594581604, 0.00746439304202795, + -0.006506938487291336, 0.0004118463839404285, 0.001384554780088365, -0.003938706591725349, + 0.018668493255972862, -0.01235304493457079, 0.036075398325920105, -0.003664611605927348, + -0.003242204897105694, 0.007922469638288021, 0.024585938081145287, 0.001262526260688901, + 0.053827736526727676, -0.04968252032995224, 0.016625922173261642, 0.009852398186922073, + -0.02562224306166172, 0.022993935272097588, 0.030908895656466484, 0.02485627867281437, + 0.006735976319760084, 0.013254178687930107, -0.04181261733174324, 0.02799522876739502, + -0.02234812267124653, -0.02263348177075386, 0.02392510697245598, 0.022303065285086632, + -0.017481999471783638, -0.012480705976486206, 0.014260445721447468, -0.003227186156436801, + 0.022047745063900948, 0.06578277796506882, -0.012135270982980728, -0.033582258969545364, + 0.013899991288781166, -0.047159343957901, 0.003242204897105694, 0.028100362047553062, + -0.0022059008479118347, -0.04067118093371391, -0.06590293347835541, 0.018788643181324005, + -0.007565770763903856, -0.007284166291356087, -0.026943905279040337, -0.012863687239587307, + -0.0298575721681118, 0.028325645253062248, -0.00793748814612627, 0.0180977750569582, + -0.03664611652493477, -0.00855326373130083, 0.004498160444200039, -0.07689676433801651, + 0.007952507585287094, 0.020681025460362434, 0.03974000737071037, 0.0020331835839897394, + 0.03550468012690544, -0.013704746030271053, -0.02356465347111225, 0.021507063880562782, + -0.024736128747463226, -0.042353298515081406, -0.005575766321271658, 0.014200369827449322, + -0.026598472148180008, 0.008988811634480953, -0.002068853471428156, -0.0019824947230517864, + 0.006262881215661764, 0.004141461569815874, 0.03241078555583954, -0.008117714896798134, + 0.035444602370262146, -0.008290432393550873, -0.028250550851225853, -0.01534180622547865, + 0.010528248734772205, -0.0314796157181263, -0.002384250285103917, 0.006859882269054651, + -0.0228137094527483, -0.010783569887280464, -0.012608366087079048, 0.037186793982982635, + 0.0061952960677444935, 0.018022678792476654, 0.014583352021872997, -0.02894141897559166, + -0.00235796719789505, 0.005677144043147564, 0.007899940945208073, 0.045807644724845886, + 0.03568490594625473, -0.01637060008943081, 0.030938932672142982, 0.025877565145492554, + 0.013291725888848305, -0.0016520789358764887, 0.027139151468873024, 0.030713649466633797, + -0.013096480630338192, 0.0071076941676437855, -0.035144224762916565, 0.012796103022992611, + 0.015469466336071491, -0.026928886771202087, -0.01617535576224327, -0.009379303082823753, + -0.01203013863414526, 0.01476357877254486, 0.014252935536205769, -0.0172717347741127, + -0.0019196030916646123, 0.02811538055539131, -0.005568257067352533, 0.048841461539268494, + 0.0066871652379632, -0.015499504283070564, 0.0005679021705873311, 0.005249105393886566, + -0.029677346348762512, -0.029962705448269844, -0.009807341732084751, 0.027709869667887688, + -0.006758505012840033, -0.007085165940225124, 0.022528350353240967, 0.021326838061213493, + -0.014057690277695656, -0.012901234440505505, 0.034333206713199615, 0.018518302589654922, + 0.008125225082039833, -0.004791028797626495, 0.022242991253733635, -0.007734733168035746, + 0.01172225084155798, -0.027784964069724083, -0.019854985177516937, -0.03129938617348671, + -0.012202856130897999, -0.029992742463946342, -0.0013226018054410815, -0.014012633822858334, + 0.01947951316833496, -0.01791754737496376, 0.05472886934876442, -0.01634056307375431, + -0.022918840870261192, 0.006172767840325832, 0.01697135716676712, 0.005196539219468832, + 0.007749752141535282, 0.002887383569031954, -0.02419544756412506, -0.011061419732868671, + 0.016145316883921623, -0.005012557841837406, 0.043795112520456314, 0.02311408706009388, + -0.004302914720028639, 0.03346210718154907, -0.03000776097178459, -0.03250090032815933, + 0.0007514143362641335, -0.0012690969742834568, -0.017557093873620033, 0.011729761026799679, + -0.006668391637504101, -0.010678437538444996, 0.0018867492908611894, -0.018608417361974716, + -0.039709970355033875, -0.03790770471096039, 0.009882436133921146, 0.044125527143478394, + 0.00040527561213821173, 0.020876269787549973, -0.0027353172190487385, 0.017181621864438057, + 0.0306385550647974, 0.01841317117214203, 0.06410066783428192, -0.013321763835847378, + -0.020696043968200684, 0.03553471714258194, 0.011091457679867744, 0.018142830580472946, + 0.007021335419267416, -0.0043404619209468365, -0.02957221306860447, -0.008117714896798134, + -0.009214094839990139, 0.037667401134967804, 0.05553989112377167, -0.005530709866434336, + 0.024165410548448563, 0.008470659144222736, -0.0009433746454305947, 0.02029053308069706, + -0.05923454090952873, -0.007682167459279299, 0.012788592837750912, -0.029136665165424347, + -0.010633381083607674, -0.014966333284974098, -0.01758713088929653, -0.03574497997760773, + -0.024015219882130623, 0.023714842274785042, -0.046288248151540756, -0.0290765892714262, + 0.004727198742330074, 0.0106033431366086, 0.03220052272081375, 0.042683713138103485, + 0.010182813741266727, 0.0014896871289238334, 0.009874926880002022, -0.023369407281279564, + 0.0027803739067167044, -0.0010034502483904362, -0.006657127290964127, 0.03980008512735367, + 0.02329431287944317, -0.023008953779935837, -0.008733490481972694, 8.864670962793753e-5, + -0.008312961086630821, 0.05445852875709534, -0.04806048050522804, -0.008433111943304539, + 0.0025475809816271067, -0.013990105129778385, 0.0345735065639019, 0.00975477509200573, + -0.03241078555583954, 0.02970738336443901, -0.030608518049120903, 0.0055795214138925076, + -0.020545855164527893, 0.023324351757764816, 0.00432919804006815, -0.01572478748857975, + -0.028175456449389458, -0.02673364244401455, -0.030398253351449966, -0.030398253351449966, + -0.01715158298611641, -0.04019057750701904, -0.01932932436466217, 0.0009903087047860026, + -0.0034074129071086645, -0.004265367519110441, -0.0019862495828419924, 0.029752440750598907, + 0.0061652581207454205, -0.007212826516479254, -0.03421305492520332, 0.023474540561437607, + -0.02969236485660076, -0.02565228007733822, -0.02246827445924282, -0.0013423141790553927, + 0.0012475074036046863, -0.0034505922812968493, 0.01163964718580246, 0.0015798005042597651, + 0.01170723233371973, -0.006135220639407635, 0.006199050694704056, 0.021161628887057304, + -0.010573305189609528, -0.02278367057442665, 0.0034036580473184586, 0.0030413272324949503, + 0.039860159158706665, -0.022573405876755714, 0.02655341476202011, 0.028821269050240517, + -0.021431969478726387, -0.00973975658416748, 0.01695633865892887, -0.053377170115709305, + 0.010723493993282318, 0.06022578850388527, 0.004017555620521307, 0.016400638967752457, + -0.005035086069256067, 0.011594590730965137, -0.0008875231142155826, 0.0330415777862072, + 0.016911281272768974, -0.022393180057406425, -0.017647206783294678, 0.023369407281279564, + 0.029962705448269844, 0.03346210718154907, -0.010558286681771278, -0.05097414553165436, + -0.012052667327225208, -0.029151683673262596, -0.03096897155046463, -0.0003484853950794786, + -0.03493396192789078, -0.033101655542850494, 0.025892583653330803, -0.0038316966965794563, + 0.030908895656466484, 0.028100362047553062, -0.024946391582489014, 0.016746073961257935, + 0.00011979919509030879, -0.025967678055167198, -0.03871872276067734, 0.007629601284861565, + 0.0077422428876161575, -0.008050130680203438, 0.02562224306166172, -0.02297891676425934, + 0.011804855428636074, 0.009649642743170261, 0.017481999471783638, -0.023189181461930275, + -0.001913971034809947, -0.00936428364366293, 0.009574548341333866, 0.0014671587850898504, + 0.022062763571739197, 0.0007485983078368008, 0.015935052186250687, -0.03036821447312832, + 0.05451860651373863, 0.005279143340885639, -0.029947686940431595, -0.01101636327803135, + 0.0029925156850367785, -0.007287920918315649, -0.008748508989810944, 0.035144224762916565, + 0.007520713843405247, -0.010911230929195881, -0.027094095945358276, -0.008125225082039833, + -0.02327929437160492, 0.014072708785533905, 0.005834842566400766, 0.029932666569948196, + 0.015995128080248833, 0.00255321292206645, -0.03721683472394943, 0.03223055973649025, + -0.011534514836966991, -0.01793256588280201, 0.0007063576485961676, 0.029632288962602615, + 0.0054781436920166016, -0.005376765970140696, -0.07371275871992111, 0.008733490481972694, + -0.02545703575015068, -0.018473247066140175, 0.011864930391311646, -0.010235380381345749, + -0.006127710919827223, 0.002384250285103917, 0.015244183130562305, 0.022122839465737343, + -0.04328446835279465, -0.003152091521769762, 0.02874617464840412, -0.02297891676425934, + -0.034994035959243774, 0.01092624943703413, -0.005992541089653969, 0.03391267731785774, + -0.0071677700616419315, 0.007408072240650654, -0.01218032743781805, 0.015439429320394993, + -0.028430776670575142, -0.021507063880562782, 0.017872489988803864, -0.009844888933002949, + -0.014328029938042164, -0.010160285979509354, 0.004118933342397213, -0.012232894077897072, + 0.023774918168783188, -0.003968744073063135, 0.008433111943304539, -0.014162822626531124, + 0.022288046777248383, -0.011549534276127815, -0.017962604761123657, -0.023789936676621437, + -6.928640505066141e-5, 0.0036045359447598457, 0.019719814881682396, -0.012796103022992611, + -0.03505411371588707, -0.024435749277472496, 0.013930029235780239, -0.0051101804710924625, + -0.023054011166095734, 0.02970738336443901, -0.0015976354479789734, -0.011857421137392521, + 0.012255421839654446, 0.004126442596316338, 0.006653372664004564, 0.00012402325228322297, + 0.002575741382315755, -0.0071377321146428585, 0.0149287860840559, -0.030308140441775322, + -0.03817804157733917, -0.002384250285103917, 0.017091507092118263, 0.003225308610126376, + 0.0032159218098968267, -0.00809518713504076, 0.014838673174381256, -0.0059887864626944065, + 0.015664711594581604, 0.003874876070767641, -0.014523276127874851, 0.013532028533518314, + -0.03550468012690544, -0.0036176773719489574, 0.001048506936058402, 0.007794809062033892, + -0.0025100335478782654, 0.009018849581480026, -0.019374379888176918, -0.043164316564798355, + -0.005196539219468832, -0.01637060008943081, 0.0066984291188418865, -0.02403024025261402, + 0.028686098754405975, 0.016580864787101746, 0.02044072188436985, 0.011496967636048794, + 0.03187010437250137, 0.03096897155046463, -0.0027540908195078373, -0.008275413885712624, + 0.014418143779039383, 0.018938831984996796, 0.018202906474471092, -0.0008828297141008079, + -0.019764872267842293, 0.010731004178524017, -0.022663520649075508, 0.007456883788108826, + -0.016295505687594414, 0.011301722377538681, 0.013179084286093712, -0.01946449466049671, + 0.01854834146797657, 0.02864104136824608, 0.013013876974582672, -0.03334195911884308, + -0.03111916035413742, 0.015003880485892296, 0.03328188136219978, 0.017737319692969322, + -0.0038823855575174093, -0.02249831147491932, -0.038268156349658966, 0.011511987075209618, + 0.01841317117214203, 0.013577084988355637, -0.012886215932667255, 0.02814541757106781, + -0.03505411371588707, 0.0007608011364936829, 0.014252935536205769, 0.04019057750701904, + -0.013772331178188324, 0.002770987106487155, 0.03565486893057823, 0.00675475038588047, + 0.028025267645716667, -0.02859598584473133, -0.011294212192296982, 0.025997715070843697, + -0.005440596491098404, -0.02090630866587162, -0.019915061071515083, -0.04136205092072487, + -0.008020092733204365, 0.011384326033294201, -0.002502524061128497, 0.0003498934383969754, + 0.0330115407705307, 0.015754826366901398, 0.004821066744625568, -0.017181621864438057, + 0.024135371670126915, 0.018278000876307487, 0.028971457853913307, 0.02089129015803337, + 0.022843746468424797, 0.02529182657599449, -0.02781500294804573, 0.0346035435795784, + 0.05127452313899994, -0.01248821523040533, 0.009296698495745659, 0.021582158282399178, + 0.007847375236451626, 0.021356875076889992, -0.010175304487347603, -0.019569626078009605, + -0.0008274475112557411, -0.0037453381810337305, 0.007562016136944294, 0.006735976319760084, + -0.006848618388175964, -0.03892898932099342, -0.022573405876755714, -0.0006016946863383055, + -0.01013024803251028, -0.025021487846970558, -0.0149287860840559, -0.01637060008943081, + 0.033552221953868866, 0.0049149347469210625, 0.0002675241557881236, -0.02216789685189724, + -0.01622041128575802, -0.019614683464169502, 0.03346210718154907, 0.018187887966632843, + 0.029346929863095284, 0.014741050079464912, 0.005763502791523933, -0.0011695967987179756, + -0.009597077034413815, -0.013426896184682846, 0.03445335477590561, -0.022047745063900948, + 0.002571986522525549, 0.0014737294986844063, -0.0002891138137783855, 0.017497017979621887, + -0.007997564040124416, -0.009259151294827461, 0.02297891676425934, -0.006762259639799595, + 0.0024199201725423336, -0.03397275134921074, -0.0007528223213739693, 0.006285409443080425, + -0.0314796157181263, -0.026132885366678238, -0.007175279315561056, 0.009942512027919292, + 0.01588999666273594, 0.033251844346523285, 0.007471902761608362, 0.0056921630166471004, + 0.03274120017886162, -0.008185300044715405, -0.03274120017886162, -0.003182129468768835, + 0.0006040413863956928, -0.013179084286093712, 0.013990105129778385, -0.009454397484660149, + 0.005530709866434336, 0.029437042772769928, 0.016610903665423393, 0.004982519894838333, + -0.0023898824583739042, 0.003660856746137142, 0.016595885157585144, 0.000717621820513159, + 0.01209772378206253, -0.007727223914116621, 0.013622142374515533, -0.006394296418875456, + -0.00726914731785655, 0.014245426282286644, -0.0036739984061568975, 0.011113985441625118, + 0.051484789699316025, 0.04199284315109253, -0.0011968185426667333, -0.0251416377723217, + -0.008590810932219028, -0.016070222482085228, 0.015664711594581604, 0.01996011845767498, + 0.0028779967688024044, -0.042203109711408615, 0.003056346205994487, 0.015364334918558598, + 0.028265569359064102, 0.012473195791244507, 0.014726031571626663, 0.005369256716221571, + -0.016595885157585144, -0.013937539421021938, 0.010378059931099415, -0.04103163257241249, + -0.0033079127315431833, 0.005951239261776209, 0.00031375419348478317, 0.005669634789228439, + -0.004366745240986347, -0.019224191084504128, 0.03910921514034271, -0.016550827771425247, + 0.031029047444462776, -0.010137757286429405, 0.008170281536877155, -0.004490651190280914, + -0.0010287946788594127, 0.015063956379890442, -0.00910896249115467, -0.0172717347741127, + -0.007719714660197496, -0.014605879783630371, -0.002265976509079337, 0.0439753383398056, + -0.0036007813178002834, -0.016746073961257935, 0.012593347579240799, -0.013329273089766502, + -0.0005937158712185919, 0.03862861171364784, -0.023038992658257484, 0.04181261733174324, + -0.003750970121473074, 0.010475683026015759, -0.006135220639407635, 0.01602516695857048, + -0.00404759356752038, -0.01399761438369751, -0.004302914720028639, -0.01196255348622799, + 0.04466620832681656, 0.017256716266274452, -0.007535732816904783, 0.028701117262244225, + 0.0036946493200957775, -0.01917913556098938, -0.005947484169155359, -0.015484485775232315, + -0.007182789035141468, 0.027709869667887688, -0.017331810668110847, -0.0007598624797537923, + -0.008065149188041687, -0.026928886771202087, 0.023654766380786896, 0.00424283929169178, + -0.00048060479457490146, -0.010430625639855862, -0.01092624943703413, 0.010348021984100342, + 0.03980008512735367, 0.004926199093461037, 0.014665955677628517, 0.007817337289452553, + -0.03961985930800438, 0.02736443467438221, 0.013329273089766502, 0.03958981856703758, + 0.004310424439609051, 0.018668493255972862, -0.04760991409420967, 0.007982545532286167, + 0.015146560035645962, 0.005703427363187075, -0.005237841513007879, -0.005695917643606663, + -0.005853616166859865, -0.013877463527023792, -0.015664711594581604, -0.02075611986219883, + 0.007430600468069315, -0.0037678664084523916, 0.023234238848090172, 0.042833901941776276, + -0.007246619090437889, 0.008448131382465363, 0.024600958451628685, -0.010746022686362267, + -0.02406027726829052, 0.02861100435256958, 0.011309231631457806, -0.013644670136272907, + 0.025201713666319847, 0.02392510697245598, 0.001421163440681994, -0.0037941494956612587, + 0.025742394849658012, -0.005380521062761545, 0.04415556415915489, 0.02796519175171852, + 0.011159042827785015, -0.0313895009458065, 0.025066543370485306, 0.019254229962825775, + 0.011977572925388813, 0.027514623478055, -0.007092675194144249, 0.0005725955707021058, + -0.014906258322298527, 0.016926299780607224, -0.004096405114978552, 0.008147752843797207, + 0.02578745037317276, -0.010355531238019466, 0.01382489688694477, 0.0086508858948946, + -0.02811538055539131, -0.04785021394491196, -0.024150390177965164, 0.04451601952314377, + -0.029046552255749702, -0.021822461858391762, -0.01131674088537693, 0.03943962976336479, + -0.010423116385936737, -0.04950229451060295, -0.023369407281279564, -0.005237841513007879, + -0.035775020718574524, -0.022573405876755714, -0.013577084988355637, -0.01525920256972313, + 0.011782326735556126, -0.0137648219242692, -0.016145316883921623, -0.005797295365482569, + ], + index: 42, + }, + { + title: "Steve Booth", + text: "Steve Booth is a British political activist and journalist, and was one of the defendants in the GANDALF trial.After involvement in the 1990 anti-Poll Tax movement, and having written a number of articles for 'Freedom' magazine, he first became involved with the UK Green Anarchist magazine in 1990, and published a novel, City-Death, explaining his idea of green anarchism.", + vector: [ + -0.0031693733762949705, 0.006851681508123875, -0.035086631774902344, -0.04351947084069252, + -0.014541000127792358, 0.03900187835097313, -0.026653794571757317, -0.001064104726538062, + -0.03945364058017731, 0.04973116144537926, -0.024677347391843796, 0.005999927408993244, + 0.011971619911491871, 0.02872435748577118, 0.020385634154081345, 0.02861141785979271, + 0.018315071240067482, -0.029910225421190262, -0.015896277502179146, -0.03224431350827217, + 0.03058786503970623, -0.031754907220602036, -0.031510207802057266, -0.01833389513194561, + -0.01518099196255207, 0.00797637365758419, 0.04231477901339531, 3.306945291114971e-5, + -0.0006446980405598879, 0.035274866968393326, -0.04841352999210358, 0.0015917454147711396, + -0.014992759563028812, -0.003527016146108508, -0.009162241593003273, -0.006842270027846098, + -0.020950334146618843, 0.002163503086194396, -0.0331290103495121, -0.022380905225872993, + -0.028649063780903816, 0.01647038757801056, -0.025354987010359764, 0.017053911462426186, + -0.027463195845484734, -0.0035317218862473965, -0.058051060885190964, -0.031867846846580505, + -0.0126398466527462, 0.03907717391848564, 0.04517592117190361, -0.0006464627222158015, + 0.042917124927043915, 0.01810801587998867, -0.0022917368914932013, -0.004757589194923639, + 0.013063371181488037, 0.030399631708860397, -0.023604419082403183, -0.038474828004837036, + 0.014710409566760063, -0.03378782421350479, 0.0034728990867733955, -0.00400465726852417, + -0.02509145997464657, 0.04630532115697861, 0.03201843425631523, 0.018032722175121307, + -0.019237414002418518, -0.0071952068246901035, 0.008823422715067863, 0.010258698835968971, + 0.02175973542034626, 0.05398522689938545, 0.018588010221719742, -0.035839565098285675, + 0.007651671767234802, -0.05466286465525627, -0.043143004179000854, 0.028140835464000702, + 0.021044449880719185, -0.042804185301065445, -0.030983153730630875, -0.022606784477829933, + 0.008879892528057098, -0.03713837265968323, 0.0020729161333292723, -0.09803175181150436, + 0.0029787872917950153, -0.008682247251272202, 0.07845551520586014, 0.0055387564934790134, + -0.011576330289244652, 0.0028729063924402, -0.03002316504716873, -0.003559956792742014, + -0.020686807110905647, -0.023830298334360123, -0.002411735476925969, -0.02351030334830284, + 0.03907717391848564, -0.017976252362132072, -0.029533758759498596, -0.0005841105594299734, + 0.0313972644507885, -0.00037499546306207776, 0.011143393814563751, 0.0038470120634883642, + 0.0381171852350235, 0.11745739728212357, 0.03167961537837982, -0.024376174435019493, + -0.017025675624608994, 0.034823108464479446, -0.0068140351213514805, 0.047660596668720245, + -0.002590556861832738, 0.024112649261951447, -0.0011682211188599467, -0.0011758680921047926, + -0.018070368096232414, -0.05059703439474106, -0.02386794611811638, -0.034634873270988464, + 0.002550557255744934, -0.01153868343681097, -0.0568087212741375, -0.010493990033864975, + 0.03469134494662285, -0.02505381405353546, -0.08131665736436844, 0.0007576378411613405, + 0.011077512986958027, -0.037834834307432175, -0.020837394520640373, 0.0019705642480403185, + 0.003032904351130128, 0.03721366450190544, 0.004399946425110102, 0.04980645328760147, + 0.011971619911491871, -0.01060693059116602, -0.04186302050948143, 0.021797383204102516, + -0.04374535009264946, -0.036385439336299896, -0.02627732791006565, -0.013722186908125877, + -0.058803994208574295, -0.005294053349643946, -0.0034705461002886295, -0.0019270353950560093, + -0.00888459850102663, 0.012178676202893257, -0.02031034231185913, -0.0033529005013406277, + -0.06411216408014297, -0.04276654124259949, -0.023246776312589645, 0.021383270621299744, + -0.062003955245018005, -0.01308219414204359, 0.008719894103705883, 0.0399806909263134, + 0.02927023358643055, -0.01055045984685421, 0.018578598275780678, 0.04619238153100014, + -0.039905399084091187, 0.04295477271080017, 0.013430424965918064, -0.022230317816138268, + 0.08048843592405319, 0.012122205458581448, -0.021383270621299744, -0.01597157120704651, + -0.006056397221982479, -0.004738766234368086, -0.004042304120957851, -0.0058634583838284016, + -0.046117085963487625, 0.018277425318956375, 0.006988150533288717, 0.024922050535678864, + 0.0012246910482645035, 0.0585404671728611, 0.002063504420220852, 0.0232844240963459, + -0.0011270451359450817, -0.028423184528946877, 0.006009338889271021, -0.031623147428035736, + 0.005152878817170858, -0.03444664180278778, 0.016912735998630524, 0.07958491891622543, + -0.0359901525080204, -0.0205550454556942, -0.036856021732091904, -0.04649355262517929, + 0.04961822181940079, 0.0419759601354599, 0.030983153730630875, -0.03083256632089615, + 0.02597615495324135, 0.038587767630815506, -0.00692697474732995, -0.005896399263292551, + -0.022587960585951805, -0.005011703819036484, 0.06392393261194229, 0.0009229299612343311, + 0.0016046863747760653, 0.05887928605079651, -0.024809110909700394, -0.01987740583717823, + -0.008569307625293732, 0.027990248054265976, 0.009646941907703876, 0.011849268339574337, + -0.037288960069417953, -0.0249785203486681, 0.000455288594821468, -0.015378637239336967, + -0.001759978593327105, -0.010051642544567585, -0.02452676184475422, -0.01567981019616127, + 0.01341160200536251, 0.0208562184125185, -0.039943043142557144, 0.042013607919216156, + -0.043030064553022385, 0.002331736497581005, -0.02949611283838749, 0.014089240692555904, + 0.01042810920625925, -0.01462570484727621, -0.00582581153139472, -0.006348158232867718, + -0.026992613449692726, 0.03369370847940445, -0.031867846846580505, -0.01619745045900345, + -0.028216129168868065, 0.03734542801976204, 0.00833872240036726, -0.00858813151717186, + -0.041486553847789764, -0.018748007714748383, -0.0009146947995759547, 0.025656159967184067, + -0.003687014104798436, 0.0010576342465355992, -0.011293980292975903, 0.009496355429291725, + -0.0061363959684967995, -0.0014199827564880252, 0.03369370847940445, -0.010202229022979736, + 0.011773974634706974, 0.007581084500998259, -0.012922195717692375, 0.11790915578603745, + -0.042352426797151566, 0.03823012486100197, -0.01953858695924282, -0.00039411286707036197, + -0.03587721288204193, 0.02607027254998684, 0.031416088342666626, -0.028969060629606247, + -0.03216902166604996, 0.03796659782528877, -0.023943239822983742, 0.006503450684249401, + -0.02407500147819519, 0.05722283571958542, 0.0061458079144358635, 0.014550412073731422, + 0.02870553359389305, -0.07476615160703659, 0.002022328320890665, 0.004823470953851938, + -0.04156184941530228, 0.018202131614089012, -0.02119503729045391, -0.0319996103644371, + 0.0277078989893198, 0.011021043173968792, -0.05278053507208824, 0.05876634642481804, + 0.021910322830080986, 0.059933390468358994, 0.003957598935812712, 0.013609246350824833, + -0.014484530314803123, 0.002262325491756201, -0.001699979417026043, -0.007166971918195486, + -0.0025576159823685884, 0.0465688481926918, -0.04528886079788208, 0.008912833407521248, + 0.002809377619996667, 0.010381050407886505, -0.00896459724754095, 0.005938751623034477, + 0.004536415450274944, -0.08711423724889755, 0.008606954477727413, -0.004734060261398554, + -0.004207007586956024, -0.024564407765865326, 0.014221004210412502, -0.001638803631067276, + 0.031096093356609344, -0.023717358708381653, -8.477838127873838e-5, -0.05933104455471039, + -0.018136249855160713, 0.017533905804157257, -0.06012162193655968, 0.011501036584377289, + 0.05929339677095413, -0.01308219414204359, 0.05500168725848198, 0.027463195845484734, + -0.05522756651043892, -0.008282252587378025, 0.02507263608276844, -0.054512280970811844, + 0.03813600912690163, 0.002785848453640938, -0.01160456519573927, -0.036498378962278366, + -0.015557458624243736, 0.04491239786148071, 0.0001414688740624115, 0.013571600429713726, + 0.023227954283356667, -0.019933875650167465, -0.006235218606889248, -0.02550557255744934, + -0.021609149873256683, -0.013929243199527264, 0.0647898018360138, 0.008470485918223858, + -0.009002244099974632, -0.02913847006857395, 0.0010441049234941602, 0.005783459171652794, + 0.03167961537837982, -0.031303148716688156, 0.016959793865680695, 0.040055982768535614, + 0.011228099465370178, -0.0788319855928421, -0.003117609303444624, -0.006950503680855036, + 0.04031950980424881, -0.05918045714497566, -0.01237632054835558, 0.007957550697028637, + 0.01606568694114685, -0.015783337876200676, 0.01396688912063837, -0.00013705715537071228, + 0.021496210247278214, 0.04272889345884323, -0.05631931498646736, 0.003604662138968706, + -0.008630483411252499, 0.011341039091348648, -0.01359042339026928, -0.0102116409689188, + -0.02010328508913517, 0.004522297997027636, -0.014221004210412502, 0.011698681861162186, + 0.001211749971844256, -0.019707996398210526, 0.010493990033864975, -0.0017305671935901046, + -0.02439499832689762, -0.02143974043428898, -0.0021799735259264708, 0.04261595383286476, + 0.020159754902124405, -0.013684540055692196, -0.056055791676044464, 0.020404458045959473, + -0.027331432327628136, 0.00853166077286005, -0.009543413296341896, -0.018089191988110542, + 0.0302678681910038, 0.04329359158873558, -0.018936241045594215, -0.0008564601885154843, + 0.0008076372323557734, -0.016573917120695114, -0.028329068794846535, 0.02529851719737053, + 0.013421013951301575, -0.05198995769023895, -0.007049326319247484, -0.050634678453207016, + 0.010795162990689278, -0.028027895838022232, 0.004369358532130718, -0.006508156191557646, + -0.017580963671207428, 0.03548192232847214, -0.006955209653824568, 0.027105553075671196, + 0.008541072718799114, 0.006446980405598879, 0.03570780158042908, -0.05398522689938545, + -0.009966937825083733, -0.011002219282090664, -0.0036728966515511274, -0.012056324630975723, + -0.016809208318591118, 0.009623412974178791, 0.023547949269413948, -0.014879819937050343, + -0.0016258626710623503, 0.0008799892966635525, 0.010691635310649872, -0.01870094984769821, + -0.031736087054014206, 0.055491089820861816, -0.03574544936418533, -0.0282725989818573, + 0.012461025267839432, 0.015397460199892521, 0.01557628158479929, 0.056281670928001404, + 0.003724660724401474, 0.0076469662599265575, 0.05835223197937012, -0.05402287468314171, + -0.04973116144537926, 0.010061054490506649, -0.04329359158873558, -0.003482310799881816, + 0.0358583889901638, 0.03047492355108261, -0.06061102822422981, -0.07092619687318802, + -0.07062502205371857, 0.02475264109671116, 0.04973116144537926, -0.04163714125752449, + -0.025147929787635803, 0.005223466083407402, -0.001778801903128624, 0.029514936730265617, + 0.015369225293397903, 0.04935469478368759, 0.04894058406352997, -0.03809836134314537, + -0.028122011572122574, -0.07502967864274979, -0.0048070005141198635, -0.005279935896396637, + 0.013402190059423447, 0.0056328726932406425, -0.026126742362976074, 0.0024376173969358206, + -0.03337371349334717, 0.07740141451358795, 0.013910419307649136, -0.005101114511489868, + 0.015444518066942692, -0.03877599909901619, 0.028460830450057983, 0.027237316593527794, + -0.03237607702612877, -0.036498378962278366, -0.03646073490381241, 0.020592691376805305, + 0.037063080817461014, -0.03975481167435646, -0.008046961389482021, -0.054625220596790314, + 0.0031270207837224007, 0.007868140004575253, 0.0090634198859334, 0.03397605940699577, + -0.05424875393509865, 0.0224185511469841, 0.02409382537007332, -0.0006799917318858206, + -0.0351242795586586, -0.01042810920625925, -0.018550362437963486, 0.003607015125453472, + -0.036592498421669006, -0.011293980292975903, 0.04585356265306473, 0.008409310132265091, + 0.007430498022586107, -0.0032611368224024773, 0.04630532115697861, 0.022155025973916054, + 0.004247007425874472, -0.010776340030133724, 0.03324194997549057, 0.03224431350827217, + -0.0031458442099392414, 0.012809256091713905, -0.0554157979786396, -0.002611733041703701, + -0.0516887828707695, 0.012470437213778496, 0.04799941927194595, -0.009759881533682346, + 0.03610309213399887, -0.001979975961148739, -0.012470437213778496, 0.02044210582971573, + 0.04547709599137306, 0.010239875875413418, 0.012564553879201412, -0.010023407638072968, + -0.07386263459920883, -0.035293690860271454, 0.0030681979842483997, 0.013533953577280045, + 0.015642162412405014, 0.03397605940699577, -0.010032819584012032, 0.006192866247147322, + -0.01175515167415142, 0.007844611071050167, 0.006404628045856953, -0.03004198893904686, + 0.0012317497748881578, 0.009261064231395721, 0.0061411019414663315, 0.034070175141096115, + 0.008094019256532192, -0.005096408538520336, 0.006705801002681255, 0.005656402092427015, + -0.011435155756771564, -0.03303489461541176, -0.018390364944934845, -0.002494087442755699, + -0.008051667362451553, -0.008621071465313435, 0.023773828521370888, -0.02386794611811638, + -0.03821130096912384, 0.01131280418485403, -0.008461073972284794, 0.016432741656899452, + 0.03467252105474472, -0.0379854217171669, -0.04348182678222656, 0.04664414003491402, + -0.011698681861162186, -0.018663302063941956, 0.03137844428420067, 0.03888893872499466, + -0.041486553847789764, -0.005072879604995251, 0.05710989609360695, -0.0038823059294372797, + -0.002271737204864621, -0.011124570854008198, -0.033957235515117645, 0.007054032292217016, + 0.031510207802057266, -0.0039740693755447865, -0.01865389198064804, -0.03476663678884506, + 0.052517011761665344, -0.02904435433447361, -0.015331578440964222, -0.00014830702275503427, + -0.03365606069564819, 0.029006706550717354, -0.017251554876565933, -0.011661035008728504, + -0.023378539830446243, 0.03565133363008499, -0.009374003857374191, 0.019256237894296646, + 0.0015129228122532368, 0.0007864610524848104, 0.02861141785979271, -0.016028041020035744, + -0.00966576486825943, 0.013468071818351746, -0.006856387481093407, -0.012611611746251583, + 0.058051060885190964, 0.018729183822870255, 0.03866305947303772, -0.04664414003491402, + -0.029420819133520126, -0.05214054509997368, 0.012291615828871727, -0.007232853211462498, + 0.017420964315533638, -0.01447511836886406, 0.02130797691643238, 0.047434717416763306, + -0.039717163890600204, -0.027745544910430908, 0.015651574358344078, -0.01860683225095272, + 0.0023752653505653143, 0.024922050535678864, 0.00409642094746232, -0.03271489590406418, + -0.002004681620746851, -0.021289153024554253, 0.03137844428420067, 0.02473381720483303, + 0.02351030334830284, 0.031058447435498238, -0.009901056066155434, -0.00042999477591365576, + 0.023002073168754578, 0.03610309213399887, -0.00554816797375679, -0.011905738152563572, + -0.005830517504364252, 0.0034681931138038635, -0.004247007425874472, -0.0011182216694578528, + 0.034936048090457916, 0.016875090077519417, 0.005199936684221029, -0.03751483932137489, + 0.0023787945974618196, 0.021383270621299744, -0.004395240917801857, 0.003861129516735673, + -0.01833389513194561, 0.02053622156381607, 0.016639798879623413, -0.004258771892637014, + -0.0051858192309737206, -0.012291615828871727, -0.025449102744460106, -0.002245855052024126, + -0.00882812775671482, 0.006823446601629257, 0.015171580947935581, -0.009185770526528358, + -0.0027223199140280485, 0.0343901701271534, 0.028780827298760414, 0.03919011354446411, + -0.02164679579436779, -0.02586321532726288, -0.00889400951564312, 0.003903482109308243, + -0.0016929206904023886, 0.009331651031970978, -0.0181268397718668, 0.01087045669555664, + 0.022042086347937584, 0.001072928193025291, 0.04634296894073486, 0.042352426797151566, + -0.01704449951648712, 0.01418335735797882, 0.01407982874661684, -0.005891693290323019, + -0.04250301420688629, -0.005510521586984396, -0.006785800214856863, -0.04807471111416817, + 0.022173848003149033, -0.00789637491106987, 0.010315168648958206, -0.01485158409923315, + 0.03657367452979088, -0.0022093849256634712, -0.051199380308389664, 0.0035528980661183596, + 0.006997562013566494, 0.015275108627974987, -0.04517592117190361, -0.0010376344434916973, + 0.01976446621119976, 0.00866813026368618, 0.009068124927580357, -0.023115012794733047, + -0.01883271336555481, -0.02981610968708992, -0.02586321532726288, -0.00045911208144389093, + -0.03322312608361244, 0.022907957434654236, -0.024658523499965668, -0.0046446495689451694, + -0.03060668706893921, 0.00963282398879528, 0.0039175995625555515, -0.024658523499965668, + 0.012319850735366344, -0.03397605940699577, -0.00930341612547636, 0.0003829365305136889, + -0.025769099593162537, -0.0051858192309737206, 0.04630532115697861, -0.006437568925321102, + 0.028762003406882286, -0.001977622974663973, -0.02251266874372959, 0.02893141284584999, + -0.0034917222801595926, -0.0038964233826845884, -0.016300978139042854, -0.042126547545194626, + -0.020460927858948708, -0.0036281913053244352, -0.020818570628762245, -0.01039046235382557, + 0.0026799675542861223, 0.003079962683841586, -0.02759495936334133, -0.042578306049108505, + 0.007595201954245567, 0.00626815902069211, 0.00591051671653986, -0.019952699542045593, + -0.03211254999041557, 0.0055387564934790134, 0.03036198392510414, 0.014465706422924995, + 0.06750036031007767, 0.013129252940416336, 0.017091557383537292, 0.012206911109387875, + 0.005948163103312254, -0.0015870395582169294, 0.025787921622395515, 0.014164534397423267, + -0.006211689207702875, 0.01815507374703884, 0.007294028997421265, 0.02418794110417366, + 0.026145564392209053, 0.013562188483774662, -0.0016717443941161036, -0.003785836510360241, + 0.004075244534760714, -0.023830298334360123, -0.011745739728212357, 0.0015635103918612003, + -0.00728932349011302, 0.007359910756349564, 0.00047970007290132344, -0.00015352755144704133, + -0.01826801337301731, 0.035180751234292984, 8.205782796721905e-5, -0.0278396625071764, + 0.008823422715067863, 0.00886106863617897, 0.013675128109753132, -0.03597132861614227, + -0.02221149578690529, -0.0038587767630815506, -0.006009338889271021, -0.016169216483831406, + -0.0009811645140871406, -0.011792798526585102, 0.007279911544173956, -0.031321972608566284, + -0.03691249340772629, 0.05929339677095413, -0.03367488458752632, 0.004898764193058014, + 0.0005711695412173867, -0.008715188130736351, 0.024018531665205956, -0.001499981852248311, + 0.005096408538520336, -0.011613977141678333, 0.00040999503107741475, -0.0018576245056465268, + 0.015472753904759884, 0.01326101552695036, 0.017750373110175133, -0.01649862341582775, + -0.008969303220510483, 0.04227713495492935, 0.01153868343681097, -0.026107918471097946, + 0.007712847553193569, -0.008065784350037575, -0.031961966305971146, -0.014098652638494968, + 0.07446497678756714, -0.0528181828558445, -0.02851730026304722, -0.05044644698500633, + 0.031058447435498238, -0.018795065581798553, 0.009750469587743282, 0.05865340679883957, + 0.006992856506258249, 0.02917611598968506, 0.002303501358255744, 0.027971426025032997, + -0.02859259396791458, -0.03873835504055023, -0.0009611648274585605, 0.010851632803678513, + 0.001697626430541277, 0.00626815902069211, 0.024225588887929916, 0.004287006799131632, + -0.0006305805873125792, 0.06418745964765549, 0.020893864333629608, -0.04227713495492935, + -0.04408417269587517, -0.005228172056376934, 0.01892682909965515, -0.0252796933054924, + -0.05692166090011597, -0.013402190059423447, -0.009430473670363426, 0.026427915319800377, + -0.018249189481139183, 0.01308219414204359, 0.025580866262316704, 0.0468323715031147, + -0.027670253068208694, -0.019406823441386223, 0.006470509804785252, -0.033543121069669724, + 0.018465658649802208, -0.034973692148923874, -0.013957478106021881, -0.010117524303495884, + 0.021402092650532722, -0.03593368083238602, -0.0001368365774396807, 0.03922775760293007, + -0.004310535732656717, 0.02927023358643055, -0.03260195627808571, -0.011265745386481285, + 0.006512862164527178, 0.03533133491873741, -0.02573145180940628, 0.02239972911775112, + 0.011021043173968792, -0.03427723050117493, 0.028122011572122574, -0.024112649261951447, + 0.01579274982213974, 0.011021043173968792, 0.0009982232004404068, -0.03604662045836449, + 0.03542545437812805, -0.014531588181853294, -0.006912857294082642, -0.02913847006857395, + 0.02928905561566353, -0.005830517504364252, 0.013891596347093582, 0.003642308758571744, + -0.0519523099064827, -0.015397460199892521, 0.03768424689769745, -0.0005182290333323181, + -0.011341039091348648, 0.001334101427346468, -0.0488276444375515, -0.0016458623576909304, + 0.005618755239993334, -0.04916646331548691, -0.023340893909335136, 0.010635165497660637, + -0.004009363241493702, 0.004759942181408405, -0.02915729396045208, 0.022832663729786873, + -0.05037115514278412, -0.028630241751670837, 0.010286933742463589, 0.008941068314015865, + 0.007971667684614658, -0.076234370470047, -0.025260869413614273, -0.027256140485405922, + 0.01551039982587099, 0.024131471291184425, -0.009637529961764812, 0.004795236047357321, + 0.057147540152072906, 0.029759639874100685, 0.004025833681225777, 0.0208562184125185, + 0.03678072988986969, 0.02682320401072502, -0.022060908377170563, 0.014484530314803123, + -0.022155025973916054, 0.0011535154189914465, 0.019952699542045593, 0.007966961711645126, + 0.0038093654438853264, -0.026013802736997604, 0.04265360161662102, 0.05022056773304939, + 0.019133886322379112, 0.02704908326268196, -0.02759495936334133, 0.03757130727171898, + -0.036479558795690536, -0.05846517160534859, -0.010173994116485119, 0.023547949269413948, + 0.0028258480597287416, 0.025430278852581978, 0.017524493858218193, -0.009703411720693111, + 0.031660791486501694, -0.006550508551299572, 0.008286958560347557, 0.041900668293237686, + -0.0026164387818425894, 0.0011770445853471756, -0.03574544936418533, -0.013750421814620495, + 0.027086731046438217, 0.02859259396791458, 0.022889133542776108, 0.026352621614933014, + -0.013458659872412682, 0.002004681620746851, -0.03002316504716873, -0.031434912234544754, + -0.014286885038018227, -0.007581084500998259, 0.029025530442595482, -0.0024046767503023148, + -0.014964524656534195, -0.0045881797559559345, 0.010164582170546055, 0.028442008420825005, + -0.020573867484927177, -0.014202180318534374, 0.011736327782273293, -0.0010682223364710808, + -0.0017140968702733517, 0.015228050760924816, -0.006056397221982479, -0.008724600076675415, + 0.032846659421920776, 0.0015129228122532368, 0.012959842570126057, -0.031660791486501694, + -0.038248948752880096, -0.025110283866524696, 3.0900358979124576e-5, 0.007218735758215189, + -0.013646893203258514, -0.01491746585816145, -0.04525121673941612, -0.0014611587394028902, + -0.01160456519573927, 0.039039526134729385, 0.010079877451062202, -0.020235048606991768, + 0.014108064584434032, -0.0278396625071764, -0.0574110671877861, -0.012103382498025894, + 0.028084365651011467, 0.012348085641860962, 0.003661131951957941, -0.003383488394320011, + 0.02439499832689762, 0.026653794571757317, 0.005755224265158176, -0.0008858715882524848, + -0.011877503246068954, -0.027689075097441673, 0.01231043878942728, 0.029571406543254852, + -0.0009823410073295236, -0.022155025973916054, 0.004522297997027636, -0.030870214104652405, + 0.005614049732685089, -0.038154833018779755, -0.010522224940359592, 0.009232829324901104, + 0.008771657943725586, 0.01352454163134098, -0.05089820548892021, -0.002269384218379855, + 0.023943239822983742, 0.03975481167435646, -0.0059152222238481045, 0.023020897060632706, + 0.005491698160767555, 0.020743276923894882, -0.002447029110044241, 0.015124522149562836, + 0.00728932349011302, -0.007430498022586107, -0.01164221204817295, 0.055716972798109055, + 0.004661120008677244, -0.001054104883223772, 0.015275108627974987, 0.005929339677095413, + -0.005406993441283703, 0.017957428470253944, 0.0009623412624932826, 0.019387999549508095, + 0.013204545713961124, -0.005157584324479103, 0.015388048253953457, 0.029778461903333664, + 0.004708178341388702, -0.0257126297801733, -0.040357157588005066, -0.04747236520051956, + -0.006842270027846098, 0.02386794611811638, -0.01436217874288559, -0.03137844428420067, + 0.027011437341570854, 0.007458732929080725, -0.050822913646698, 0.025994978845119476, + -0.02373618260025978, -0.029458466917276382, -0.019689172506332397, 0.006277570966631174, + -0.0033929001074284315, -0.03390076383948326, 0.02166561968624592, 0.009082242846488953, + 0.009609295055270195, -0.006625801790505648, -0.010446932166814804, 0.027463195845484734, + -0.012912784703075886, -0.013825714588165283, -0.032752543687820435, -0.01601862907409668, + 0.011924561113119125, -0.019228002056479454, -0.007326969876885414, -0.01599980518221855, + 0.007995197549462318, -0.036178383976221085, 0.048639409244060516, -0.0004517592315096408, + 0.005228172056376934, -0.03250784054398537, 0.001392924226820469, -0.009195182472467422, + 0.014823349192738533, -0.024432644248008728, 0.012319850735366344, 0.012103382498025894, + -0.00433406513184309, -0.013279838487505913, -0.03791012987494469, 0.008296369574964046, + -0.030211398378014565, -0.013006901368498802, -0.03702543303370476, 0.01944446936249733, + -0.018748007714748383, 0.018428010866045952, 0.005646990146487951, -0.023058542981743813, + -0.022173848003149033, -0.016235096380114555, -0.019199766218662262, 0.03333606570959091, + 0.028554948046803474, 0.015378637239336967, 0.007101090159267187, 0.027783192694187164, + -0.0023764418438076973, 0.0437077060341835, -0.029514936730265617, 0.035086631774902344, + 0.004284653812646866, -0.02253149077296257, -0.04325594753026962, -0.029082000255584717, + 0.01546334195882082, 0.006846975535154343, 0.013185722753405571, 0.002750554820522666, + -0.004992880392819643, -0.020272694528102875, -0.029966695234179497, 0.03501133993268013, + -0.01917153224349022, 0.014042182825505733, -0.009604589082300663, -0.007176383398473263, + -0.01867271400988102, -0.035161927342414856, 0.006169336847960949, -0.05613108351826668, + -0.0041387733072042465, -0.040018338710069656, -0.02162797376513481, 0.012828079983592033, + -0.008865774609148502, -0.03235725313425064, -0.013166898861527443, 0.001983505440875888, + 0.009872821159660816, 0.029966695234179497, 0.004508180543780327, -0.019519763067364693, + 0.002795260166749358, -0.0029246704652905464, -0.01579274982213974, 0.010126936249434948, + 0.025336163118481636, -0.018465658649802208, -0.019482117146253586, -0.007449321448802948, + 0.009355180896818638, -0.021816205233335495, 0.01440923660993576, 0.02861141785979271, + 0.03941599279642105, -0.01076692808419466, -0.01447511836886406, 0.014051593840122223, + -0.02672908827662468, 0.00186350685544312, -0.0151339340955019, -0.008301075547933578, + 0.030776096507906914, 0.02407500147819519, 0.019933875650167465, -0.013421013951301575, + 0.02938317321240902, -0.010136347264051437, 0.028103187680244446, -0.0151339340955019, + 0.010371638461947441, 0.03636661916971207, -0.020611515268683434, -0.029759639874100685, + -0.00773167097941041, -0.012225734069943428, 0.01286572590470314, -0.022380905225872993, + -0.005086997058242559, 0.0031223150435835123, 0.005242289509624243, -0.010013995692133904, + -0.03956658020615578, 0.003967010881751776, 0.01696920581161976, 0.005938751623034477, + 0.012479848228394985, 0.047886479645967484, 0.0014423354296013713, -0.03124667890369892, + 0.02917611598968506, -0.011736327782273293, 0.018823301419615746, -0.014013947919011116, + -0.0012505730846896768, 0.01039046235382557, -0.011661035008728504, -0.02748201973736286, + -0.006541097071021795, 0.032526664435863495, 0.007891668938100338, -0.01645156554877758, + 0.006846975535154343, -0.006009338889271021, 0.0024658525362610817, -0.014126887544989586, + -0.018757419660687447, 0.005872869864106178, -0.013458659872412682, 0.0037528956308960915, + -0.018183309584856033, -0.002127032959833741, -0.0003605838574003428, 0.011058689095079899, + 0.028234951198101044, 0.0063575697131454945, -0.03821130096912384, -0.018588010221719742, + -0.02836671471595764, 0.022117378190159798, -0.002529381075873971, -0.0278396625071764, + 0.00411759689450264, -0.014371590688824654, 0.005298759322613478, -0.016573917120695114, + 0.017891546711325645, -0.012733963318169117, 0.03260195627808571, -0.017251554876565933, + 0.012564553879201412, -0.019482117146253586, -0.0013893948635086417, 0.01473864447325468, + -0.034728989005088806, -0.006771682761609554, -0.00043440648005343974, -0.04559003561735153, + 0.007759905885905027, -0.022475020959973335, -0.03382547199726105, -0.03403252735733986, + 0.04811235889792442, -0.012169264256954193, 0.029100824147462845, -0.030211398378014565, + 0.024903226643800735, 0.011623388156294823, 0.013402190059423447, 0.01054104883223772, + -0.027651429176330566, 0.01490805484354496, 0.0052517009899020195, -0.032093729823827744, + -0.00888459850102663, -0.0017952723428606987, 0.030757274478673935, 0.01226338092237711, + -0.0030070224311202765, -0.009218711405992508, 0.018917417153716087, 0.020159754902124405, + -0.005204642657190561, 0.0017164497403427958, -0.0003152902936562896, 0.020950334146618843, + -0.014192769303917885, -0.004595238249748945, -0.01933152973651886, 0.004091714974492788, + -0.0088140107691288, -0.022060908377170563, -0.005957574583590031, 0.006644625216722488, + 0.05620637536048889, 0.009985760785639286, -0.016592739149928093, -0.006286982446908951, + -0.007910491898655891, -0.02142091654241085, -0.02836671471595764, 0.04016892611980438, + 0.006992856506258249, 0.018870359286665916, 0.014700998552143574, 0.00620698370039463, + -0.022682078182697296, -0.01076692808419466, 0.01599980518221855, -0.016329213976860046, + 0.042578306049108505, 0.03359959274530411, -0.015011582523584366, -0.025204399600625038, + 0.03713837265968323, 0.01440923660993576, 0.020291518419981003, -0.030870214104652405, + -0.009162241593003273, 0.02375500649213791, 0.004183478653430939, 0.016489211469888687, + 0.012451613321900368, 0.022663254290819168, -0.0076940241269767284, -0.010268110781908035, + -0.026013802736997604, -0.015218638814985752, 0.00679521169513464, 0.001737625920213759, + 0.0009029302163980901, -0.0018552716355770826, -0.016460977494716644, -0.020611515268683434, + -0.006239924114197493, 0.041486553847789764, -0.006602272856980562, -0.013063371181488037, + -0.009844586253166199, 0.025411456823349, -0.00021690913126803935, -0.02949611283838749, + 0.006828152574598789, -0.017100969329476357, -0.0005129349301569164, -0.009675176814198494, + 0.012978666462004185, 0.00178115488961339, 0.019613878801465034, -0.022343257442116737, + -0.003357606241479516, -0.008992832154035568, 0.004482298623770475, 0.014343355782330036, + 0.024037355557084084, 0.015783337876200676, 0.03548192232847214, -0.04016892611980438, + 0.0005161702283658087, -0.01892682909965515, 0.027124376967549324, -0.005562285427004099, + 0.002487028716132045, -0.016319802030920982, -0.01608451083302498, -0.02936434932053089, + 0.014371590688824654, 0.007444615475833416, -0.0024187942035496235, -0.01485158409923315, + 0.0012176323216408491, -0.019115062430500984, -0.00027073200908489525, 0.009844586253166199, + 0.0041928901337087154, 0.025223223492503166, 0.004769354127347469, -0.02230561152100563, + 0.003999951295554638, -0.02573145180940628, 0.007435203995555639, -0.02430088073015213, + 0.004475239664316177, -0.00618816027417779, -0.007223441731184721, -0.006955209653824568, + -0.0150680523365736, 0.006602272856980562, 0.05146290361881256, 0.023227954283356667, + 0.019745642319321632, -0.04427240416407585, -0.001821154379285872, -0.02262560836970806, + -0.00094175327103585, 0.012997489422559738, 0.0023976180236786604, 0.01120927557349205, + -0.030399631708860397, -0.0025576159823685884, -0.0224185511469841, 0.0027787897270172834, + -0.0171950850635767, -0.001622333307750523, 0.027783192694187164, 0.014381001703441143, + 0.0063622756861150265, 0.008602248504757881, 0.0229832511395216, -0.02430088073015213, + -0.022682078182697296, -0.0208562184125185, 0.04363241046667099, 0.02913847006857395, + 0.013778656721115112, -0.02561851218342781, 0.01917153224349022, -0.00994811486452818, + -0.04122303053736687, -0.004661120008677244, -0.0009458708809688687, -0.019162120297551155, + 0.011256334371864796, -0.03294077515602112, -0.00955282524228096, 0.017373906448483467, + 0.018164485692977905, -0.026578500866889954, 0.0020987980533391237, -0.02618321217596531, + -0.0024187942035496235, -0.0038752472028136253, 0.01878565363585949, -0.005623461212962866, + -0.008061078377068043, -0.0010835162829607725, 0.02684202790260315, -0.022907957434654236, + 0.0005523462314158678, 0.006164630874991417, -0.03580191731452942, -0.0071999127976596355, + -0.02748201973736286, -0.01060693059116602, -0.006879916414618492, 0.0027576135471463203, + 0.006437568925321102, 0.02913847006857395, -0.043670058250427246, 0.0034517229069024324, + -0.03907717391848564, 0.005392875522375107, -0.011962207965552807, -0.022663254290819168, + 0.010296345688402653, -0.015284520573914051, -0.035613685846328735, -0.007166971918195486, + 0.031510207802057266, 0.008752834983170033, -0.015849219635128975, 0.010183406062424183, + -0.002245855052024126, 0.0065316855907440186, 0.02759495936334133, -0.010861044749617577, + -0.017091557383537292, -0.02253149077296257, 0.006738741882145405, -0.024244410917162895, + 0.04705825075507164, -0.005110526457428932, -0.002109386259689927, 0.0114257438108325, + -0.014315120875835419, 0.015764513984322548, -0.017543315887451172, -0.0023129130713641644, + 0.04649355262517929, -0.04924175515770912, 0.017100969329476357, 0.004124655853956938, + -0.022776193916797638, -0.012912784703075886, 0.006399922538548708, 0.03632897138595581, + -0.0003720543172676116, 0.020027991384267807, 0.01989622972905636, -0.020686807110905647, + 0.00038352474803104997, -0.0036752496380358934, -0.01182103343307972, -0.0017070381436496973, + 0.0025811451487243176, -0.006404628045856953, 0.04250301420688629, -0.004369358532130718, + 0.02462087757885456, -0.005505815614014864, 0.01329866237938404, -0.04107244312763214, + -0.01198103092610836, 0.020385634154081345, -0.0004488180857151747, -0.008404604159295559, + -0.003929364029318094, -0.021458562463521957, 0.0034681931138038635, -0.011529271490871906, + 0.02230561152100563, 0.0005902869743295014, -0.024357352405786514, 0.00035705449408851564, + -0.01164221204817295, -0.00101410539355129, 0.01638568378984928, 0.02586321532726288, + 0.027877308428287506, -0.0039811283349990845, 0.010569283738732338, 0.006089338101446629, + 0.026107918471097946, -0.006842270027846098, 0.022926781326532364, 0.004917587619274855, + 0.0006394039955921471, -0.012545729987323284, -0.0102116409689188, -0.013223368674516678, + 0.004324653185904026, -0.030757274478673935, -0.007915197871625423, 0.034521933645009995, + 0.032639604061841965, -0.006258747540414333, -0.009985760785639286, 0.012018677778542042, + 0.004515239503234625, -0.02751966565847397, 0.06121337413787842, -0.015849219635128975, + -0.014653939753770828, -0.04419711232185364, 0.01640450768172741, -0.006108161062002182, + 0.02087504044175148, 0.018842123448848724, 0.01153868343681097, -0.025336163118481636, + 0.005402287468314171, -0.014286885038018227, -0.03608426824212074, -0.040470097213983536, + -0.02076210081577301, 0.02586321532726288, -0.017119793221354485, -0.022343257442116737, + 0.029420819133520126, -0.021063273772597313, -0.013901007361710072, -0.00789637491106987, + -0.015369225293397903, -0.020159754902124405, 0.013665716163814068, -0.04464887082576752, + ], + index: 43, + }, + { + title: "Menora Mivtachim Arena", + text: "Menora Mivtachim Arena (Hebrew: \u05d4\u05d9\u05db\u05dc \u05de\u05e0\u05d5\u05e8\u05d4 \u05de\u05d1\u05d8\u05d7\u05d9\u05dd\u200e) is a large multi-purpose sports arena in southern Tel Aviv, Israel. It is one of the major sporting facilities in the Greater Tel Aviv Area.The arena is home to the Maccabi Tel Aviv basketball club, a member of the Maccabi Tel Aviv sports club. It hosted the Israeli Super League final four, the State Cup final four and most of the Israeli national basketball team home games.", + vector: [ + 0.05847686529159546, 0.007657866925001144, -0.021507851779460907, 0.013256796635687351, + -0.0230539683252573, 0.04788367450237274, -0.020283205434679985, 0.0104936882853508, + -0.00013119503273628652, 0.015859169885516167, -0.043444328010082245, -0.030294690281152725, + -0.02092614397406578, 0.0645388662815094, 0.019288180395960808, -0.01665518991649151, + 0.0025985464453697205, -0.033340997993946075, -0.01246077660471201, -0.04234214872121811, + -0.003113280748948455, 0.002495216904208064, -0.007332569919526577, 0.013203218579292297, + -0.014006893150508404, -0.00342900981195271, -0.03765787556767464, -0.0007362229516729712, + -0.007347878068685532, 0.02962113358080387, -0.006345198955386877, 0.016349028795957565, + 0.036494459956884384, -0.042495228350162506, -0.012996559962630272, 0.05027173459529877, + -0.02141600288450718, 0.019089175388216972, -0.05272102728486061, 0.055200934410095215, + 0.0023574442602694035, -0.0472407341003418, -0.01349407248198986, -0.01705319993197918, + 0.012116344645619392, -0.004293916281312704, -0.01070800144225359, 0.001680061686784029, + -0.00852659996598959, -0.05057789385318756, 0.003809798276051879, -0.03891313821077347, + -0.00019924422667827457, 0.004986607003957033, 0.022594725713133812, 0.0029774215072393417, + 0.008771529421210289, 0.08401074260473251, 0.024615392088890076, 0.03346346318721771, + -0.018216615542769432, 0.03171833977103233, -0.0031228482257574797, 0.01246077660471201, + 0.018446234986186028, 0.04623040184378624, 0.00037935335421934724, 0.008748567663133144, + 0.006046691443771124, 0.007860698737204075, 0.0011098358081653714, 0.015093766152858734, + -0.07549944519996643, -0.04782244190573692, -0.015185615047812462, -0.027217766270041466, + 0.04313816875219345, 0.05281287431716919, -0.034198250621557236, 0.016027558594942093, + 0.02309989184141159, -0.007271337788552046, -0.01665518991649151, 0.025610417127609253, + 0.024952169507741928, -0.0071565271355211735, -0.009123614989221096, -0.061660945415496826, + -0.03882129117846489, 0.021538468077778816, 0.013784925453364849, -0.044332198798656464, + -0.08835823833942413, 0.08584771305322647, 0.011121319606900215, 0.025855345651507378, + -0.024079609662294388, -0.00913126952946186, 0.001233257120475173, 0.06313052028417587, + -0.03713740035891533, 0.015522392466664314, -0.015859169885516167, 0.018048224970698357, + 0.05486415699124336, 0.02577880583703518, -0.0236203670501709, 0.01751244254410267, + -0.009284350089728832, -0.024753164499998093, 0.017145048826932907, -0.02877919003367424, + 0.0505472794175148, 0.008687335066497326, -0.007749715354293585, 0.00565633550286293, + -0.048618461936712265, -0.025120558217167854, -0.056425582617521286, 0.03487180545926094, + -0.04828168451786041, -0.04812860116362572, -0.05011865124106407, -0.011182552203536034, + -0.014450826682150364, -0.012652128003537655, 0.008626102469861507, 0.01482587493956089, + 0.06637583673000336, 0.029054734855890274, 0.024722548201680183, -0.011167244054377079, + 0.018078841269016266, -0.06466133147478104, 0.011021817103028297, 0.01181783713400364, + -0.016869504004716873, -0.020359745249152184, -0.0031037130393087864, -0.014129357412457466, + 0.02143131196498871, -0.0023765794467180967, -0.046934571117162704, 0.02743207849562168, + -0.014940685592591763, 0.010975892655551434, -0.046016085892915726, -0.003612706670537591, + -0.03986223787069321, 0.015024879947304726, 0.03652507811784744, 0.0032127832528203726, + 0.020665908232331276, 0.024293921887874603, 0.010363569483160973, 0.009115961380302906, + -0.0274167712777853, 0.021890554577112198, -0.015407581813633442, 0.04047456383705139, + -0.016854194924235344, -0.03977039083838463, 0.0011012250324711204, -0.010095678269863129, + -0.0027363193221390247, -0.02928435616195202, -0.040290866047143936, 0.030355921015143394, + 0.004179105628281832, 0.028075017035007477, -0.018874861299991608, 0.031259097158908844, + -0.030218148604035378, -0.034228865057229996, -0.0452812984585762, 0.001076349290087819, + -0.0026789139956235886, -0.016318412497639656, 0.0003556736628524959, 0.013509380631148815, + 0.003231918206438422, -0.06919252127408981, -0.018476851284503937, 0.025151174515485764, + -0.023222357034683228, -0.009758900851011276, 0.002456946764141321, -0.10850366950035095, + -0.010348262265324593, -0.01266743615269661, 0.03444317728281021, 0.010156910866498947, + 0.08094912767410278, -0.005269806366413832, 0.03848451375961304, -0.01875239796936512, + 0.05008803680539131, 0.01371603924781084, 0.037688493728637695, -0.062181420624256134, + 0.015996942296624184, 0.046505946666002274, -0.019992351531982422, 0.025885961949825287, + 0.009337928146123886, 0.03278990462422371, -0.04053579643368721, -0.012613857164978981, + -0.01350172609090805, 0.01700727641582489, 0.021967094391584396, -0.004071949049830437, + 0.000710868916939944, 0.004642175044864416, 0.027187149971723557, 0.03364715725183487, + -0.031182557344436646, -0.026850370690226555, -0.03526981547474861, 0.016058174893260002, + -0.01618064008653164, 0.011366249062120914, -0.029054734855890274, 0.0035495609045028687, + -0.030294690281152725, -0.008549562655389309, 0.005082282237708569, 0.03364715725183487, + -0.0214006956666708, 0.020160740241408348, -0.061722178012132645, -0.010363569483160973, + -0.021951785311102867, -0.007057024631649256, 0.03879067301750183, -0.004117873497307301, + 0.03456564247608185, -0.024646008387207985, 0.0030309997964650393, 0.020696524530649185, + -0.03885190561413765, 0.04782244190573692, -0.056027572602033615, -0.019869888201355934, + 0.010562574490904808, -0.014741680584847927, -0.00731726223602891, 0.0373823307454586, + -0.027278997004032135, -0.02573288232088089, -0.0037523929495364428, -0.027814781293272972, + 0.00919250212609768, 0.03845389559864998, 0.00955989584326744, 0.03909683600068092, + 0.030294690281152725, -0.022334488108754158, -0.017956377938389778, 0.061262935400009155, + -0.00699961930513382, 0.0024320711381733418, -0.015874478965997696, 0.022839654237031937, + -0.01608879119157791, 0.051251448690891266, -0.05896672233939171, 0.01792576164007187, + -0.02833525463938713, -0.011764259077608585, -0.020329128950834274, -0.03233066573739052, + 0.02790662832558155, 0.006004594266414642, 0.03214696794748306, 0.031595874577760696, + -0.039954088628292084, 0.05676236003637314, 0.013517034240067005, -0.06539611518383026, + 0.046077318489551544, -0.01200153399258852, 0.06239573284983635, -0.03713740035891533, + -0.020145433023571968, 0.056884825229644775, 0.046475328505039215, 0.001914466731250286, + -0.0056946054100990295, -0.07905092090368271, -0.01396096870303154, -0.0028645244892686605, + 0.022120175883173943, -0.008105628192424774, 0.032085735350847244, -0.010317645967006683, + 0.0017575589008629322, -0.00676617119461298, -0.010608498938381672, 0.006926905829459429, + -0.037749722599983215, 0.006528895813971758, -0.02394183725118637, -0.05244548246264458, + 0.02406430058181286, -0.0025507088284939528, -0.007696136832237244, 0.08578647673130035, + -0.021140458062291145, 0.016058174893260002, 0.004554153885692358, -0.04494452103972435, + -0.030355921015143394, -0.015767322853207588, -0.039127450436353683, 0.008985842578113079, + -0.028473028913140297, -0.03802527114748955, -0.0009883278980851173, 0.0055874488316476345, + 0.05021050199866295, 0.031151941046118736, 0.018094150349497795, -0.004668964073061943, + 0.0017537318635731936, -0.04111750051379204, -0.0010983546962961555, -0.049077704548835754, + 0.03321853280067444, 0.009911981411278248, -0.025105250999331474, 0.00916188582777977, + -0.02570226602256298, 0.02011481672525406, 0.009651743806898594, -0.0232070479542017, + 0.014565637335181236, -0.025181790813803673, -0.06839650124311447, 0.038178350776433945, + -7.138289220165461e-6, -0.024998094886541367, 0.00392269529402256, 0.02262534201145172, + -0.03499427065253258, -0.036402612924575806, -0.03967854380607605, 0.008863378316164017, + -0.0038346739020198584, 0.0003949006204493344, 0.0007218716200441122, -0.0046230400912463665, + -0.006069653667509556, 0.051220834255218506, 0.04010716825723648, -0.03833143040537834, + -0.030738623812794685, -0.040780723094940186, -0.00229238485917449, -0.005618065129965544, + 0.014573291875422001, -0.02045159414410591, -0.013685422949492931, 0.021461928263306618, + -0.007810947485268116, -0.006096442695707083, -0.022058943286538124, 0.031106017529964447, + -0.019992351531982422, -0.019395336508750916, 0.010830466635525227, -0.004527364391833544, + 0.005051666405051947, 0.10317645967006683, 0.037780340760946274, -0.05924226716160774, + -0.013111370615661144, -0.013333337381482124, 0.031243789941072464, -0.0018302722601220012, + -0.02747800201177597, 0.03530042991042137, 0.0007917147595435381, 0.01616533286869526, + 0.020711831748485565, -0.007275164593011141, 0.06163032725453377, -0.012185231782495975, + -0.033402230590581894, 0.009337928146123886, 0.00097732525318861, -0.0231305081397295, + 0.004221202805638313, 0.01046307198703289, 0.012590895406901836, 0.0037504795473068953, + -0.00775354215875268, -0.003277842653915286, 0.007619596552103758, -0.0434749461710453, + 0.003893992630764842, -0.02141600288450718, 0.011121319606900215, -0.011044779792428017, + 0.016364337876439095, -0.02175278030335903, -0.015981635078787804, -0.027324922382831573, + -0.019839271903038025, -0.06417147070169449, -0.006008421070873737, -0.03263682499527931, + -0.03698432072997093, -0.01353234238922596, -0.02917720004916191, -0.0007496175239793956, + 0.043015703558921814, 0.0006946041248738766, -0.01792576164007187, -0.006636052392423153, + 0.007990817539393902, 0.007730580400675535, -0.003926522564142942, 0.007677001878619194, + 0.00033366828574799, 0.037535410374403, -0.05140453204512596, 0.013647153042256832, + 0.008419443853199482, 0.024936862289905548, 0.04828168451786041, -0.05017988383769989, + -0.015782630071043968, -0.043872956186532974, 0.04812860116362572, -0.012047458440065384, + -0.0011930734617635608, 0.0287332646548748, 0.001491580973379314, 0.02054344303905964, + 0.03533104807138443, -0.00031309807673096657, -0.011419827118515968, 0.03487180545926094, + -0.01198622677475214, -0.049536947160959244, 0.013739001005887985, -0.003295064205303788, + 0.02130884677171707, -0.004852661397308111, 0.0235438272356987, -0.022502876818180084, + -0.035912755876779556, 0.014297746121883392, -0.011932647787034512, 0.016471493989229202, + 0.01783391274511814, 0.014986610040068626, 0.0083122868090868, 0.03386147320270538, + -0.03977039083838463, -0.005480292718857527, -0.003888252191245556, -0.01616533286869526, + -0.011335632763803005, 0.008687335066497326, -0.007458861917257309, 0.007776504382491112, + -0.002303865971043706, -0.022793730720877647, 0.020803680643439293, 0.016379645094275475, + -0.02490624599158764, 0.022854963317513466, -0.01927287131547928, -0.022380411624908447, + -0.010478380136191845, -0.06150786206126213, 0.02230387181043625, 0.009322620928287506, + 0.004760812968015671, -0.021951785311102867, -0.002747800201177597, 0.012315349653363228, + 0.05716037005186081, 0.023268280550837517, -0.023804062977433205, -0.03698432072997093, + -0.04794490709900856, 0.00985074881464243, 0.07053963094949722, 0.0232070479542017, + -0.04313816875219345, 0.020206665620207787, -0.027171840891242027, -0.030340613797307014, + -0.016027558594942093, -0.0452812984585762, -0.0191810242831707, 0.013983930461108685, + -0.013394569978117943, 0.009536933153867722, 0.032055117189884186, 0.018048224970698357, + -0.021982401609420776, -0.012736322358250618, -0.036004602909088135, 0.049904339015483856, + -0.030723316594958305, 0.021125148981809616, 0.027156533673405647, 0.035514745861291885, + -0.005078455433249474, -0.017986994236707687, 0.015905095264315605, 0.012016842141747475, + -0.00046378697152249515, -0.014068124815821648, 0.026697291061282158, -0.010646769776940346, + 0.01751244254410267, 0.006371987983584404, -0.02574818953871727, 0.0076349047012627125, + 0.05030234903097153, -0.0401684008538723, -0.03707616776227951, 0.008725604973733425, + 0.039525460451841354, -0.07268276065587997, 0.03612706810235977, 0.021538468077778816, + -0.030692700296640396, -0.013830849900841713, 0.008021433837711811, 0.015951018780469894, + -0.0083122868090868, -0.03272867575287819, 0.013853811658918858, -0.009682360105216503, + -0.019854579120874405, -0.03147341310977936, 0.0021546122152358294, 0.006528895813971758, + 0.015162653289735317, 0.006276312749832869, 0.01621125638484955, -0.009246080182492733, + 0.038208965212106705, 0.027340229600667953, 0.011381557211279869, 0.011412173509597778, + -0.017160357907414436, 0.0054726386442780495, -0.002556449268013239, 0.00490241264924407, + 0.001691542798653245, -0.034749340265989304, -0.01569078117609024, -0.008029087446630001, + 0.04665902629494667, -0.030340613797307014, 0.024584775790572166, 0.05881364271044731, + 0.012843478471040726, 0.002508611651137471, -0.002990816021338105, 0.04727134853601456, + -0.00740911066532135, 0.006203599274158478, -0.027263689786195755, 0.017527751624584198, + 0.01066973153501749, 0.032912369817495346, -0.0009065253543667495, -0.042127836495637894, + 0.004959817975759506, -0.004883277229964733, -0.038117118179798126, 0.009253733791410923, + 0.011833145283162594, -0.02228856459259987, 0.042464613914489746, 0.042954470962285995, + 0.03799465298652649, -0.015147345140576363, 0.02704937569797039, -0.041239965707063675, + -0.03401455283164978, -0.01697666011750698, -0.017803296446800232, -0.016762347891926765, + 0.023329513147473335, -0.005373136140406132, -0.028243407607078552, 0.0073708402924239635, + -0.001554726855829358, -0.004772293847054243, 0.020788371562957764, -0.01575201377272606, + 0.003930349368602037, -0.001601607771590352, -0.023237664252519608, -0.01610410027205944, + -0.013585920445621014, 0.00829697959125042, -0.027202457189559937, 0.05541524663567543, + -0.03845389559864998, -0.009506317786872387, 0.0022598551586270332, 0.01622656360268593, + 0.00980482529848814, 0.0076310778968036175, -0.011917339637875557, 0.012284734286367893, + 0.005319557618349791, -0.003128588665276766, 0.010149256326258183, -0.06429393589496613, + 0.00870264321565628, 0.011504021473228931, 0.008672026917338371, -0.03432071581482887, + 0.020359745249152184, 0.007030235603451729, 0.037351712584495544, -0.045189451426267624, + -0.0017556453822180629, 0.01875239796936512, 0.020574059337377548, -0.020665908232331276, + -0.015905095264315605, -0.011703026480972767, 0.01353234238922596, -0.021461928263306618, + 0.024309230968356133, -0.042464613914489746, 0.04757751151919365, -0.005629546474665403, + 0.01878301426768303, 0.009399160742759705, 0.0023478767834603786, -0.01569078117609024, + 0.012897057458758354, 0.008717951364815235, -0.028228098526597023, 0.01572139747440815, + -0.015874478965997696, -0.005438195075839758, 0.007217759732156992, -0.03187142312526703, + 0.001343284035101533, -0.0007118256762623787, 0.041178733110427856, 0.003277842653915286, + 0.00610409677028656, 0.03921930119395256, 0.011396865360438824, -0.019563725218176842, + -0.0279831700026989, 0.022594725713133812, -0.044240351766347885, -0.005464984569698572, + 0.012698052451014519, -0.016915427520871162, -0.02962113358080387, 0.026865679770708084, + 0.006946041248738766, -0.028932269662618637, 0.011764259077608585, 0.013631844893097878, + -0.014504405669867992, 0.0012724840780720115, 0.029391512274742126, -0.004048986826092005, + -0.03181019052863121, 0.06380407512187958, -0.05024111643433571, -0.028580185025930405, + 0.035086117684841156, -0.013807888142764568, -0.03787218779325485, 0.005763492081314325, + -0.02698814496397972, -0.0232070479542017, 0.007588980253785849, 0.03181019052863121, + -0.02089552953839302, -0.016440877690911293, 0.03141218051314354, -0.045158833265304565, + -0.023804062977433205, 0.01550708431750536, -0.018461544066667557, 0.005568313878029585, + 0.019334103912115097, 0.00049033691175282, 0.018936093896627426, -0.07500959187746048, + -0.0031955617014318705, 0.02833525463938713, 0.006391123402863741, 0.05670112743973732, + -0.04319940134882927, 0.024783780798316002, 0.00808266643434763, -0.029513977468013763, + 0.005637200083583593, 0.010945277288556099, -0.006184464320540428, -0.045189451426267624, + 0.035086117684841156, 0.010531959123909473, -0.037780340760946274, -0.03762726113200188, + -0.013777271844446659, 0.05094528943300247, -0.018063534051179886, 0.023819372057914734, + 0.03523920103907585, 0.009659398347139359, -0.004091084469109774, -0.040352098643779755, + -0.036831241101026535, 0.008365865796804428, 0.023819372057914734, 0.01613471657037735, + -0.0063031017780303955, -0.0021278229542076588, -0.03548412770032883, 0.01178722083568573, + 0.012476084753870964, 0.007830082438886166, -0.017650214955210686, 0.022594725713133812, + -0.03958669304847717, 0.052996572107076645, 0.011924994178116322, -0.005047839134931564, + -0.003417528700083494, 0.029850754886865616, 0.00011899640230694786, -0.037719108164310455, + 0.02094145305454731, 0.014879452995955944, 0.01375430915504694, -0.01663988269865513, + -0.014519713819026947, -0.0365556925535202, -0.012499047443270683, -0.013394569978117943, + 0.017956377938389778, -0.016915427520871162, 0.022334488108754158, 0.024324538186192513, + 0.01706850901246071, 0.05149637907743454, -0.005591276101768017, -0.008610794320702553, + 0.001024684519506991, 0.024646008387207985, 0.0010973979951813817, -0.0309529360383749, + -0.025365488603711128, -0.054251834750175476, 0.0358821377158165, -0.03621891513466835, + -0.007122084032744169, -0.01835438795387745, 0.010983547195792198, 0.02000766061246395, + -0.027141224592924118, 0.013218526728451252, 0.0029104487039148808, 0.013723693788051605, + -0.004236510954797268, 0.013210873119533062, -0.023758139461278915, -0.003915041219443083, + -0.0314427949488163, 0.01525450125336647, -0.0169613528996706, 0.03827019780874252, + -0.05048604682087898, -0.020574059337377548, 0.056058187037706375, -0.015055496245622635, + 0.0014313054271042347, 0.03970915824174881, 0.03352469578385353, 0.03450440987944603, + 0.0030156916473060846, -0.04218906909227371, -0.011151935905218124, -0.02789132110774517, + 0.04880215600132942, -0.0104936882853508, 0.018109457567334175, 0.010907006449997425, + -0.026942219585180283, -0.006517414934933186, 0.014940685592591763, 0.03520858287811279, + -0.015338695608079433, 0.03138156235218048, 0.013830849900841713, -0.038606975227594376, + -0.013126677833497524, 0.02135477028787136, -0.023865295574069023, -0.010126294568181038, + 0.002146958140656352, -0.0027573679108172655, 0.01421355176717043, 0.02046690322458744, + 0.01781860552728176, -0.04013778641819954, 0.028212791308760643, -0.018461544066667557, + 0.0146115617826581, 0.014466134831309319, -0.005017223302274942, 0.013915044255554676, + 0.00980482529848814, -0.015231539495289326, 0.009651743806898594, -0.001801569596864283, + -0.006582474336028099, -0.003580177202820778, -0.028595492243766785, -0.05991582199931145, + -0.03876005858182907, 0.05795639008283615, -0.012491392903029919, 0.0007233067881315947, + -0.014588600024580956, 0.043811723589897156, 0.01913509890437126, 0.04944509640336037, + 0.022839654237031937, -0.028197482228279114, 0.010501342825591564, 0.006750863045454025, + 0.03061615861952305, -0.007298126816749573, 0.05244548246264458, -0.03496365249156952, + 0.022441644221544266, -0.03404516726732254, 0.03168772533535957, 0.029988527297973633, + 0.014381940476596355, 0.03133564069867134, 0.0033065450843423605, -0.024799088016152382, + 0.010968239046633244, 0.002303865971043706, 0.058293167501688004, -0.014091087505221367, + -0.008541908115148544, -0.0016819752054288983, -0.02352851815521717, -0.035514745861291885, + -0.00144470005761832, -0.008649065159261227, 0.035943370312452316, -0.025840038433670998, + -0.004883277229964733, -0.011419827118515968, -0.0008926523732952774, 0.008932264521718025, + 0.008120936341583729, 0.004910066723823547, -0.0257634986191988, 0.0006458096322603524, + 0.0209873765707016, 0.0014954080106690526, 0.025564493611454964, -0.005893610417842865, + 0.026712598279118538, 0.00044082486419938505, -0.030417153611779213, 0.032575592398643494, + -0.028243407607078552, -0.010577882640063763, -0.046536561101675034, -0.0182778462767601, + -0.013172602280974388, -0.0073976293206214905, 0.013585920445621014, -0.005258325487375259, + 0.006371987983584404, 0.007141218986362219, 0.006712592672556639, 0.029850754886865616, + -0.05229239910840988, 0.031565260142087936, 0.008878686465322971, -0.01174129731953144, + 0.01092231459915638, -0.0061691561713814735, -0.04313816875219345, 0.01836969517171383, + 0.014573291875422001, 0.009919635951519012, -0.011902031488716602, 0.004221202805638313, + 0.00699961930513382, -0.000147220678627491, 0.010348262265324593, 0.0525067113339901, + 0.037780340760946274, -0.008809800259768963, 0.00621508015319705, -0.015361658297479153, + 0.015859169885516167, 0.05008803680539131, -0.001447570277377963, 0.006712592672556639, + -0.015086112543940544, 0.0015068891225382686, -0.018936093896627426, 0.015216231346130371, + -0.013356299139559269, -0.01835438795387745, -0.022885579615831375, 0.03964792564511299, + 0.0020436285994946957, 0.006854192819446325, -0.004022197797894478, 0.0044890944845974445, + 0.010325299575924873, 0.0020474556367844343, -0.024615392088890076, 0.036433231085538864, + -0.010003830306231976, 0.025870654731988907, -0.014971301890909672, -0.06594720482826233, + 0.054282449185848236, -0.031197866424918175, 0.07194797694683075, -0.0013672028435394168, + 0.030631467700004578, -0.0045197103172540665, -0.015223884955048561, -0.0619058720767498, + -0.007619596552103758, 0.016838887706398964, 0.01569078117609024, -0.019869888201355934, + 0.003980100620537996, 0.017956377938389778, -0.00024636441958136857, 0.013815541751682758, + -0.005763492081314325, -0.013830849900841713, 0.03141218051314354, -0.007018754258751869, + 0.0014026027638465166, 0.02129353955388069, -0.031259097158908844, -0.010287029668688774, + -0.0029295836575329304, 0.029590517282485962, 0.04185228794813156, 0.0005668773083016276, + -0.022778421640396118, -0.009889019653201103, -0.0004668964247684926, 0.007585153449326754, + 0.043015703558921814, 0.02143131196498871, 0.0011758519103750587, -0.0226406492292881, + 0.016440877690911293, -0.007730580400675535, 0.014626869931817055, 0.0505472794175148, + 0.0231305081397295, 0.01200153399258852, 0.019104482606053352, 0.011381557211279869, + -0.03481057286262512, -0.0006209340062923729, 0.007906623184680939, -0.024324538186192513, + -0.015024879947304726, 0.02262534201145172, -0.03569843992590904, -0.03563721105456352, + 0.039035603404045105, 0.00805970374494791, -0.023451978340744972, 0.04068887606263161, + -0.011657102964818478, 0.03450440987944603, -0.05008803680539131, -0.04794490709900856, + -0.03986223787069321, -0.015300425700843334, -0.00655185803771019, 0.043321866542100906, + 0.02045159414410591, 0.017803296446800232, -0.03266744315624237, 0.05627249926328659, + -0.003090318525210023, -0.04589362442493439, -0.0083122868090868, 0.04809798672795296, + -0.008342903107404709, -0.004263299982994795, 0.025166483595967293, 0.027324922382831573, + 0.046536561101675034, -0.007462688721716404, 0.014879452995955944, 0.014902415685355663, + 0.007164181210100651, 0.016410261392593384, -0.037351712584495544, 0.007271337788552046, + -0.000757271540351212, 0.0073976293206214905, 0.017236897721886635, 0.02790662832558155, + 0.013034829869866371, -0.027753548696637154, 0.010945277288556099, -0.020359745249152184, + -0.010003830306231976, 0.005200920160859823, 0.03658631071448326, -0.02187524549663067, + -0.0182778462767601, 0.0401684008538723, -0.03398393839597702, 0.0070264083333313465, + -0.015376965515315533, -0.012223501689732075, -0.02484501339495182, -0.015001918189227581, + -0.007477996870875359, -0.014473789371550083, -0.013379261828958988, 0.004435515962541103, + -0.026926912367343903, 0.0015327214496210217, -0.013555304147303104, -0.012613857164978981, + 0.028151558712124825, 0.017757372930645943, -5.7554792874725536e-5, -0.05060851201415062, + -0.0019862232729792595, 0.0007587067084386945, 0.03940299525856972, 0.00446230499073863, + -0.013761963695287704, -0.018415620550513268, 0.021278230473399162, 0.015438198111951351, + -0.03575967252254486, -0.0292231235653162, 0.022839654237031937, -0.026835063472390175, + -0.001421737833879888, -0.00020546313317026943, -0.021216997876763344, -0.02406430058181286, + -0.0021220825146883726, 0.00010518325143493712, 0.016471493989229202, 0.00267508695833385, + -0.02357444167137146, -0.009001150727272034, 0.015797937288880348, 0.026452360674738884, + -0.0017690398963168263, 0.012927672825753689, 0.014060471206903458, 0.03014160878956318, + 0.03548412770032883, -0.02046690322458744, -0.03612706810235977, 0.0033295073080807924, + 0.0029295836575329304, -0.02701876126229763, -8.359646744793281e-5, 0.014665139839053154, + 0.006058172322809696, 0.021553775295615196, -0.01700727641582489, 0.01153463777154684, + -0.0026597788091748953, -0.005595102906227112, -0.02005358412861824, 0.006050518248230219, + -0.012476084753870964, -0.01833907887339592, -0.021630316972732544, -0.023773446679115295, + 0.005709913559257984, 0.0452812984585762, 0.0021239961497485638, -0.007309608161449432, + 0.02662075124680996, -0.02920781634747982, -0.004427861887961626, 0.022365104407072067, + 0.003930349368602037, 0.04745504632592201, 0.024523543193936348, -0.00016240915283560753, + 0.025105250999331474, 0.007011100649833679, 0.027631083503365517, -0.0357290580868721, + -0.018201306462287903, 0.006245696451514959, -0.01463452447205782, 0.0028032921254634857, + -0.022058943286538124, 0.020619982853531837, -0.03321853280067444, -0.01044776476919651, + 0.002692308509722352, 0.005836205556988716, 0.003528512315824628, -0.007076159585267305, + 0.003249139990657568, 0.010631461627781391, 0.0028071191627532244, 0.007003446575254202, + -0.0033562963362783194, -0.03006506897509098, -0.006230388302356005, -0.007382321171462536, + -0.011856107972562313, -0.010088024660944939, -0.04313816875219345, -0.02577880583703518, + -5.271122063277289e-5, -0.0018465371103957295, 0.027722932398319244, 0.03364715725183487, + -0.008549562655389309, 0.04629163444042206, -0.017665524035692215, -0.0010572142200544477, + -0.016349028795957565, 0.01836969517171383, 0.013210873119533062, -0.00522770918905735, + 0.01881363056600094, 0.00783773697912693, 0.005568313878029585, -0.01882893778383732, + -1.9987210180261172e-5, 0.0248603206127882, -0.011764259077608585, -0.014022201299667358, + -0.02704937569797039, -0.01742059364914894, -0.02187524549663067, -0.025595109909772873, + -0.01529277116060257, 0.04754689335823059, 0.006406431086361408, -0.010807503946125507, + -0.01650211028754711, -0.020420977845788002, -0.005308076739311218, -0.0104936882853508, + -0.003101799637079239, -0.0309529360383749, 0.0007620553369633853, -0.04567930847406387, + -0.005438195075839758, 0.035055503249168396, 0.027615776285529137, -0.04243399575352669, + 0.003293150570243597, -0.023222357034683228, 0.024186765775084496, -0.03456564247608185, + -0.0022579417563974857, -0.0444546639919281, 0.00753922900184989, 0.011481059715151787, + -0.03872944042086601, 0.029942603781819344, -0.0024301577359437943, -0.023849988356232643, + -0.0023670117370784283, -0.029468053951859474, -0.022150790318846703, 0.02744738757610321, + -0.007148873060941696, 0.013777271844446659, 0.017328746616840363, -0.0018675856990739703, + -0.0013997325440868735, -0.026804447174072266, -0.034290097653865814, -0.02101799286901951, + 0.0373823307454586, -0.00019553679157979786, -0.025197099894285202, -0.04062764346599579, + -0.00895522627979517, 0.0025641033425927162, -0.029927294701337814, 0.004944509826600552, + -0.015200923196971416, -0.009246080182492733, 0.012942980974912643, 0.0021316499914973974, + -0.023819372057914734, -0.016456184908747673, 0.008970534428954124, 0.0006247609853744507, + -0.03217758238315582, -0.03168772533535957, 0.027600467205047607, -0.0102487588301301, + 0.009889019653201103, 0.003769614500924945, -0.001711634686216712, 0.005407579243183136, + -0.013509380631148815, 0.03168772533535957, -0.026804447174072266, -0.012506701052188873, + 0.011159590445458889, 0.009873711504042149, -0.008756221272051334, 0.0007558364304713905, + -0.014933031983673573, -0.016792964190244675, -0.004527364391833544, 0.033830855041742325, + -0.004064294975250959, -0.005097590386867523, 0.018048224970698357, -0.02219671569764614, + -0.03450440987944603, 0.0025220061652362347, 0.009184847585856915, 0.012093382887542248, + -0.001508802641183138, -0.015935711562633514, -0.017588984221220016, -5.3929588830214925e-6, + 0.03101416863501072, 0.003574436530470848, -0.05244548246264458, 0.028672033920884132, + -0.013670114800333977, -0.012177577242255211, 0.0010409493697807193, -0.007581326644867659, + 0.040290866047143936, 0.036371998488903046, -0.005572141148149967, 0.0035648690536618233, + 0.007221586536616087, 0.012904711067676544, 0.009674706496298313, -0.013685422949492931, + 0.03456564247608185, 0.02571757324039936, 0.019502492621541023, -0.03104478493332863, + -0.033739008009433746, -0.007198624312877655, 0.0006051475065760314, -0.007960201241075993, + 0.01178722083568573, -0.02141600288450718, -0.03958669304847717, -0.003199388738721609, + 0.03147341310977936, -0.011220822110772133, 0.031182557344436646, -0.02444700337946415, + -0.022074250504374504, -0.025564493611454964, 0.010126294568181038, 0.008595487102866173, + -0.007190970238298178, -0.006593955215066671, -0.015514738857746124, 0.011305016465485096, + -0.01829315535724163, 0.011879069730639458, 0.009743592701852322, 0.01504018809646368, + -0.0037275173235684633, -0.0012198626063764095, 0.007179489359259605, -0.036861855536699295, + 0.03539228066802025, 0.022441644221544266, -0.02094145305454731, -0.014121703803539276, + 0.006111750844866037, 0.033769622445106506, -0.018415620550513268, 0.0037351713981479406, + 0.005771146155893803, 0.022533493116497993, -0.03680062294006348, -0.009950251318514347, + 0.03842328116297722, -0.03061615861952305, 0.034228865057229996, 0.011580562219023705, + -0.005204746965318918, -0.02182932198047638, -0.0013298894045874476, -0.03269805759191513, + -0.008388827554881573, 0.007830082438886166, 0.005510908551514149, 0.0019479531329125166, + -0.011389210820198059, 0.05140453204512596, -0.003861463163048029, -0.002916189143434167, + -0.04368925839662552, 0.009529279544949532, 0.021660933271050453, 0.009314966388046741, + 0.02443169429898262, -0.015828553587198257, 0.015323387458920479, 0.014565637335181236, + -0.02611558325588703, 0.0034921555779874325, -0.0001872847933555022, -0.012146960943937302, + -0.010577882640063763, -0.0084806764498353, -0.005897437687963247, 0.0037141228094697, + -0.009659398347139359, 0.010225797072052956, -0.030187532305717468, 0.007898968644440174, + -0.024967478588223457, 0.009881365112960339, -0.015996942296624184, 0.018645241856575012, + -0.02662075124680996, 0.0196708831936121, 0.00043819379061460495, 0.018216615542769432, + 0.006130885798484087, -0.014075779356062412, 0.04087257385253906, -0.010547267273068428, + -0.016379645094275475, 0.00600076699629426, -0.006563338916748762, -0.017129741609096527, + -0.03484118729829788, 0.020267898216843605, -0.005166477058082819, 0.0013394569978117943, + -0.010577882640063763, 0.0032912371680140495, -0.005939534865319729, 0.0040375059470534325, + 0.006938387174159288, 0.015277463011443615, 0.004910066723823547, 0.009667051956057549, + 0.001143322209827602, -0.017359362915158272, 0.013509380631148815, 0.03444317728281021, + 0.006861846894025803, -0.034198250621557236, -0.010409493930637836, -0.011542292311787605, + -0.014787605032324791, 0.04809798672795296, -0.013440493494272232, -0.025533877313137054, + -0.03306545317173004, 0.003585917642340064, 0.01651741750538349, -0.0003078359004575759, + 0.01882893778383732, 0.01546116080135107, 0.008641410619020462, 0.029988527297973633, + -0.01181783713400364, -0.04546499624848366, 0.005859167315065861, 0.01911979168653488, + 0.00895522627979517, 0.032024502754211426, -0.025059325620532036, 0.031259097158908844, + -0.004458478186279535, 0.02089552953839302, 0.014665139839053154, 0.012537317350506783, + 0.00349980965256691, -0.033769622445106506, 0.0011414086911827326, -0.005774972960352898, + 0.01442786492407322, 0.007814774289727211, -0.008427097462117672, 0.0029793349094688892, + -0.031595874577760696, -0.006593955215066671, 0.012774592265486717, 0.006900116801261902, + 0.025044018402695656, 0.01328741293400526, -0.03520858287811279, -0.007148873060941696, + -0.025977810844779015, -0.04895523935556412, -0.033432845026254654, 0.033830855041742325, + 0.024186765775084496, -0.021676240488886833, 0.02703406848013401, -0.04375049099326134, + 0.017634907737374306, -0.006035210564732552, 0.008373519405722618, -0.0035782635677605867, + -0.018170690163969994, -0.025962503626942635, -0.04408726841211319, -0.025442028418183327, + 0.015009571798145771, -0.004297743551433086, -0.03830081596970558, -0.00468809949234128, + 0.0169613528996706, -0.0006836014217697084, -0.01663988269865513, -0.018568700179457664, + 0.0003516074502840638, -0.014955993741750717, -0.0053693088702857494, 0.010072716511785984, + -0.0012418680125847459, 0.037259865552186966, 0.010968239046633244, 0.0011873329058289528, + 0.028626108542084694, -0.00047431126586161554, -0.005985459312796593, -0.0016628401353955269, + -0.021691549569368362, 0.01657865010201931, -0.017986994236707687, -0.002654038369655609, + 0.013869119808077812, 0.019380029290914536, 0.01738997921347618, -0.020267898216843605, + -0.021722164005041122, 0.014542675577104092, 0.032055117189884186, -0.03940299525856972, + -0.008251055143773556, 0.00047765992349013686, 0.02440107800066471, -0.005813243333250284, + -0.04846537858247757, 0.03346346318721771, -0.02666667476296425, -0.004048986826092005, + -0.007646385580301285, 0.020650599151849747, -0.013761963695287704, -0.01414466556161642, + 0.006245696451514959, 0.021538468077778816, 0.01700727641582489, -0.009483355097472668, + -0.01174895092844963, 0.011174897663295269, -0.012782246805727482, 0.04396480321884155, + 0.04026024788618088, 0.005817070137709379, -0.01693073660135269, 0.026880986988544464, + 0.010838120244443417, -0.04965940862894058, 0.026819756254553795, -0.007386148441582918, + 0.012812862172722816, 0.012070421129465103, -0.0030558754224330187, -0.006490625906735659, + 0.010738617740571499, -0.01575201377272606, 0.03716801851987839, 0.035055503249168396, + -0.02835056371986866, 0.003777268575504422, -0.022074250504374504, 0.018078841269016266, + -0.001343284035101533, -0.01659395918250084, -0.01399158500134945, 0.01697666011750698, + 0.010011483915150166, 0.014971301890909672, -0.0059586698189377785, -0.015568316914141178, + 0.007688482757657766, 0.030386537313461304, -0.023314205929636955, -0.01708381623029709, + 0.015522392466664314, 0.015614241361618042, -0.010593190789222717, -0.03355531021952629, + -0.014504405669867992, -0.0013758136192336679, 0.03181019052863121, -0.00114906276576221, + ], + index: 44, + }, + { + title: "The Monkey's Uncle", + text: 'The Monkey\'s Uncle is a 1965 Walt Disney production starring Tommy Kirk as genius college student Merlin Jones and Annette Funicello as his girlfriend, Jennifer. The title plays on the idiom "monkey\'s uncle" and refers to a chimpanzee named Stanley, Merlin\'s legal "nephew" (a legal arrangement resulting from an experiment to raise Stanley as a human); Stanley otherwise has little relevance to the plot. Jones invents a man-powered airplane and a sleep-learning system.', + vector: [ + -0.006288918666541576, -0.010909094475209713, -0.027995027601718903, 0.0008603157475590706, + -0.02231632173061371, 0.009315071627497673, -0.04423413798213005, -0.01894562691450119, + -0.006317976396530867, 0.023312585428357124, 0.029389798641204834, -0.01228726003319025, + -0.08468246459960938, -0.007260276470333338, -0.011033627204596996, 0.012445001862943172, + -0.044134508818387985, 0.03420507535338402, -0.04516398161649704, 0.027181411162018776, + 0.007546702399849892, 0.008024078793823719, -0.003127854783087969, -0.010103780776262283, + 0.0308343805372715, 0.02055625431239605, -0.023777509108185768, 0.0160896684974432, + -0.0028310511261224747, -0.01891241781413555, -0.019227901473641396, 0.006180990021675825, + 0.010585308074951172, 0.030668336898088455, -0.0003821607679128647, 0.008509757928550243, + -0.01470320113003254, -0.04831882193684578, -0.055392295122146606, -0.026218356564641, + -0.006849317345768213, -0.00362391141243279, 0.0023889588192105293, 0.04519719257950783, + 0.012735579162836075, -0.011108347214758396, -0.0988958403468132, 0.01568286120891571, + -0.04317145422101021, 0.015076800249516964, 0.0387214720249176, 0.04167705774307251, + 0.005026983562856913, 0.01243670005351305, 0.010352847166359425, 0.03267747163772583, + -0.021286847069859505, 0.010925699025392532, -0.005292654037475586, -0.017833132296800613, + 0.03354090079665184, 0.0030116240959614515, -0.023229563608765602, 0.011033627204596996, + 0.03237859159708023, -0.03012039139866829, 0.041710264980793, 0.006911583710461855, + 0.0658530741930008, 0.005890412721782923, 0.032694075256586075, 0.023196354508399963, + -0.011432133615016937, -0.006666668690741062, 0.02817767672240734, 0.004777917638421059, + -0.008459944278001785, 0.010029060766100883, -0.0081942742690444, 0.0329265370965004, + -0.020506441593170166, -0.040116243064403534, 0.0028767131734639406, 0.026168543845415115, + 0.017949363216757774, 0.014221672900021076, 0.06645083427429199, -0.05552513152360916, + -0.015732673928141594, 0.04579494893550873, 0.027712753042578697, 0.022864267230033875, + 0.029439611360430717, 0.02078871615231037, -0.009248653426766396, -0.02520548738539219, + 0.0196596160531044, 0.003816937794908881, -0.012860111892223358, 0.034570373594760895, + 0.042108774185180664, 0.005217934492975473, -0.01163138635456562, -0.013424661941826344, + -0.04164385050535202, 0.03755916655063629, -0.0024491497315466404, 0.030336249619722366, + 0.04131175950169563, 0.009066005237400532, -0.01151515543460846, -0.009331676177680492, + 0.0245745200663805, -0.030286435037851334, 0.005628893617540598, 0.05635535344481468, + -0.07126610726118088, 0.0163138285279274, -0.025902872905135155, -0.040979672223329544, + 0.029240358620882034, -0.026351191103458405, -0.0810294970870018, -0.03868826478719711, + 0.005475302692502737, -0.005641346797347069, -0.043569959700107574, 0.0577833317220211, + 0.04376921430230141, -0.01416355837136507, -0.06429225951433182, -0.0013158991932868958, + -0.02415941096842289, -0.007521795574575663, -0.06558740139007568, 0.00999585259705782, + -0.029024500399827957, -0.019858868792653084, -0.001070984173566103, 0.04742218181490898, + -0.036596108227968216, 0.02528850920498371, -0.023644672706723213, -0.015026986598968506, + 0.005392280872911215, -0.05625572428107262, -0.0007544626714661717, 0.055458713322877884, + 0.03825655207037926, -0.015998344868421555, -0.00581569317728281, 0.004296389874070883, + -0.03148195147514343, 0.0420091450214386, -0.01579909212887287, 0.05266917496919632, + -0.012063100934028625, -0.04370279610157013, -0.04536323621869087, 0.03855542838573456, + -0.02400997094810009, 0.041212134063243866, -0.0007684726733714342, -0.018580330535769463, + -0.0006200707866810262, -0.03184724971652031, 0.05529266968369484, 0.009522626176476479, + -0.0034890007227659225, 0.025271905586123466, -0.005944377277046442, -0.04798673093318939, + -0.011249484494328499, -0.01209630910307169, -0.005911168176680803, 0.015184728428721428, + -0.022216694429516792, 0.029871325939893723, 0.015840603038668633, -0.02528850920498371, + -0.033026162534952164, 0.015591536648571491, 0.01924450695514679, 0.04001661762595177, + 0.030369456857442856, -0.04486510530114174, 0.0211540125310421, 0.030136996880173683, + -0.010153594426810741, -0.024973025545477867, 0.020473232492804527, -0.023960156366229057, + -0.01811540685594082, -0.022814452648162842, 0.04503114894032478, 0.00896637886762619, + -0.035168129950761795, 0.04157743230462074, -0.037459537386894226, 0.0018389378674328327, + 0.023644672706723213, -0.06050645560026169, 0.05499378964304924, -0.012768788263201714, + -0.007870487868785858, 0.01149855088442564, -0.03387298807501793, 0.0003341636620461941, + 0.018845999613404274, 0.02588626742362976, 0.02210046350955963, -0.025554180145263672, + -0.023063519969582558, -0.02892487496137619, -0.020772110670804977, -0.004503944888710976, + -0.009090911597013474, 0.009821506217122078, -0.008248238824307919, -0.008825241588056087, + -0.026849323883652687, -0.004873393103480339, 0.024823585525155067, 0.04981321841478348, + -0.04449980705976486, -0.017716901376843452, -0.02615193836390972, 0.0682108998298645, + 0.019975099712610245, 0.0131838982924819, -0.04622666537761688, 0.032212547957897186, + -0.01999170519411564, 0.03297634795308113, -0.018430890515446663, -0.005790786352008581, + -0.003190121380612254, -0.031232886016368866, -0.03709424287080765, 0.037525955587625504, + 0.0211540125310421, 0.033291831612586975, 0.030784567818045616, -0.0025238697417080402, + 0.034902460873126984, -0.00655458914116025, -0.025836454704403877, -0.08674141764640808, + -0.0530344694852829, -0.01236198004335165, 0.03666252642869949, -0.005944377277046442, + 0.026251565665006638, 0.0060813636519014835, -0.05353260412812233, 0.025188883766531944, + -0.008675801567733288, -0.0020641351584345102, -0.017168955877423286, -0.0052843522280454636, + -0.0423080250620842, -0.02228311263024807, -0.005035285837948322, -0.01725197769701481, + -0.03626402094960213, 0.021917816251516342, -0.0065794955007731915, -0.08873394131660461, + -0.013200502842664719, -0.041511014103889465, -0.021220430731773376, -0.006662517786026001, + 0.025089256465435028, 0.015242843888700008, -0.025537576526403427, -0.04157743230462074, + 0.04745539277791977, 0.020323792472481728, 0.027480291202664375, -0.0015846829628571868, + 0.051971789449453354, 0.02967207320034504, -0.07936906069517136, -0.004483189433813095, + 0.03304276615381241, 0.021502705290913582, 0.0032295568380504847, -0.028526369482278824, + -0.01158987544476986, 0.03915318846702576, -0.024292245507240295, 0.009348280727863312, + -0.008493153378367424, 0.05170612037181854, -0.011158160865306854, 0.003161063650622964, + -0.0029618109110742807, 0.018613537773489952, 0.00582399545237422, -0.0098298080265522, + 0.05751766264438629, 0.0035367384552955627, -0.031863853335380554, 0.01057700626552105, + 0.052868425846099854, 0.03586551547050476, -0.006616855505853891, -0.003418432082980871, + -0.046492334455251694, -0.002239519264549017, 0.024890003725886345, 0.044964730739593506, + -0.054827746003866196, 0.029954347759485245, -0.03279370069503784, -0.027779171243309975, + 0.05884601175785065, -0.04234123229980469, -0.0148194320499897, -0.006014945916831493, + -0.015774184837937355, 0.028742225840687752, -0.02997095137834549, -0.01826484687626362, + 0.07724369317293167, 0.007094232365489006, -0.002685762709006667, 0.002080739475786686, + -0.03769199922680855, -0.018962230533361435, -0.05067664757370949, -0.023877134546637535, + -0.008185971528291702, 0.010701538994908333, 0.04948112741112709, -0.03712745010852814, + 0.004396016243845224, 0.04639270901679993, 0.023312585428357124, -0.014205069281160831, + 0.011747617274522781, 0.0390203520655632, 0.04273974150419235, 0.07571608573198318, + 0.014811129309237003, -0.017799923196434975, 0.0601743645966053, 0.01879618689417839, + 0.03169780969619751, 0.017567461356520653, 0.0009147989912889898, -0.059443771839141846, + 0.018580330535769463, -0.05001246929168701, -0.0020973440259695053, 0.02580324560403824, + -0.019476966932415962, -0.022183485329151154, -0.02925696223974228, 0.06718142330646515, + -0.03286011889576912, -0.004196763504296541, 0.02701536752283573, -0.003063512733206153, + 0.0032150279730558395, -0.029605654999613762, 0.04177668318152428, -0.0043295989744365215, + 0.014503948390483856, 0.002926526591181755, -0.0022768790367990732, -0.017119141295552254, + -0.015309262089431286, -0.04592778533697128, 0.035168129950761795, 0.062366146594285965, + 0.01751764863729477, 0.0717974528670311, 0.006185140926390886, -0.0021336660720407963, + -0.0023287679068744183, -0.031050238758325577, 0.0242756400257349, 0.007430471479892731, + -0.010145291686058044, 0.027745962142944336, -0.046691589057445526, -0.03666252642869949, + 0.005620591342449188, 0.019144879654049873, -0.036330439150333405, 0.015965135768055916, + -0.015774184837937355, 0.0003881279844790697, 0.008144460618495941, -0.02532171830534935, + -0.046193454414606094, 0.009373187087476254, 0.008559570647776127, -0.005334165412932634, + -0.026915742084383965, 0.01163138635456562, -0.02757991850376129, -0.07963472604751587, + -0.021735167130827904, 0.015226240269839764, 0.029921138659119606, -0.015350772999227047, + -0.006841015070676804, 0.008181820623576641, 0.016081366688013077, -0.03259444981813431, + -0.05625572428107262, 0.013217106461524963, 0.029090918600559235, -0.002953508635982871, + 0.00322540570050478, 0.01042756624519825, 0.02070569433271885, -0.021519308909773827, + 0.021768376231193542, 0.0198090560734272, 0.027447082102298737, 0.03041927143931389, + -0.021054387092590332, 0.054794538766145706, -0.03466999903321266, -0.059144891798496246, + -0.027031973004341125, -0.02836032398045063, -0.007932755164802074, -0.013590705581009388, + 0.06419263035058975, 0.02180158533155918, -0.024823585525155067, -0.051374029368162155, + 0.01138231996446848, -0.007887092418968678, -0.04552927985787392, -0.01766708679497242, + 0.004391865339130163, -0.01084267720580101, -0.09192199259996414, -0.03819013386964798, + -0.013399755582213402, -0.061834804713726044, 0.01834786869585514, -0.041710264980793, + -0.008866752497851849, -0.00999585259705782, -0.042075563222169876, -0.01148194633424282, + -8.464355050818995e-5, -0.0017932758200913668, 0.0017071404727175832, 0.011066836304962635, + -0.0021855549421161413, -0.0024927363265305758, -0.014396019279956818, 0.012038193643093109, + 0.05871317908167839, 0.044732268899679184, 0.009439604356884956, -0.04536323621869087, + -0.02374430000782013, -0.05157328397035599, -0.029954347759485245, 0.0063553364016115665, + -0.01063512172549963, 0.010369451716542244, -0.0494479201734066, 0.009838109835982323, + -0.06186801567673683, -0.0063304295763373375, 0.040315497666597366, -0.04951433837413788, + 0.02671648934483528, -0.028161071240901947, 0.04307182878255844, 0.022482365369796753, + 0.016039855778217316, 0.018298054113984108, 0.009813203476369381, 0.026284774765372276, + -0.021369870752096176, -0.03249482065439224, -0.047023676335811615, 0.00036892914795316756, + -0.034836042672395706, -0.04366958513855934, 0.03609797731041908, 0.014753014780580997, + 0.00905770342797041, -0.0018026158213615417, -0.007077627815306187, 0.026251565665006638, + 0.027696147561073303, -0.007870487868785858, -0.003347863210365176, 0.013673728331923485, + -0.014852641150355339, -0.0317310206592083, 0.01710253767669201, 0.03593193367123604, + -0.04449980705976486, 0.029024500399827957, 0.006255709566175938, 0.005657951347529888, + 0.03493566811084747, 0.02937319315969944, -0.009572439827024937, 0.06920716166496277, + 0.012909925542771816, 0.013831470161676407, 0.016795355826616287, 0.011921962723135948, + 0.046193454414606094, 0.022648409008979797, 0.04901620373129845, 0.016371943056583405, + 0.016413453966379166, 0.0259194765239954, 0.016081366688013077, 0.024707354605197906, + 0.008567873388528824, 0.006782899610698223, 0.011888754554092884, 0.0064093004912137985, + -0.019078461453318596, -0.021369870752096176, 0.004690744448453188, 0.011988380923867226, + 0.003167290473356843, 0.002748029073700309, -0.008625988848507404, -0.0043835630640387535, + -0.002777086803689599, 0.04014945402741432, 0.02303031086921692, -0.046459127217531204, + -0.008700708858668804, 0.01230386458337307, 0.025089256465435028, 0.02303031086921692, + -0.018995439633727074, -0.048783741891384125, 0.054860956966876984, -0.031050238758325577, + -0.011797429993748665, -0.04984642565250397, 0.015774184837937355, 0.046127039939165115, + 0.017866339534521103, 0.030601918697357178, -0.00021897059923503548, -0.000691158405970782, + -0.05296805500984192, -0.05871317908167839, 0.034304700791835785, -0.006400998216122389, + 0.031116655096411705, -0.026550443843007088, -0.0034433386754244566, 0.007608968764543533, + -0.022748036310076714, 0.02243255265057087, -0.005068494938313961, 0.010311336256563663, + -0.005255294498056173, 0.003212952520698309, 0.049281876534223557, -0.005155668128281832, + 0.01740141771733761, -0.02213367260992527, -0.03372354805469513, 0.009165631607174873, + -0.04028228670358658, -0.028974687680602074, 0.009165631607174873, -0.012735579162836075, + -0.012785391882061958, 0.0010050854180008173, 0.014802827499806881, 0.02502283826470375, + -0.00415525259450078, 0.01662101037800312, 0.01142383087426424, 0.021618936210870743, + -0.005803239531815052, -0.0033810720779001713, -0.01483603660017252, 0.017268581315875053, + -0.03646327555179596, 0.01382316742092371, 0.03023662231862545, 0.02347862906754017, + 0.03510171175003052, 0.022814452648162842, -0.019676219671964645, -0.03712745010852814, + 0.0160149484872818, -0.05877959728240967, 0.009539230726659298, 0.01315068919211626, + 0.033075977116823196, 0.0018877133261412382, 0.009489418007433414, -0.04250727966427803, + 0.026384400203824043, -0.002411789959296584, -0.04689083993434906, 0.019908681511878967, + 0.039518486708402634, 0.018879208713769913, 0.021286847069859505, 0.003686178009957075, + -0.00662100687623024, -0.012934831902384758, 0.014122046530246735, 0.025753432884812355, + -0.04632629081606865, 0.0064881714060902596, 0.0078082215040922165, -0.0035388139076530933, + -0.037227075546979904, 0.006803655065596104, -0.015375679358839989, 0.056521397083997726, + 0.006313825026154518, -0.0032025747932493687, 0.004470736254006624, 0.028194280341267586, + -0.04861769825220108, 0.01369033195078373, 0.004860939923673868, 0.00038579298416152596, + -0.020091330632567406, -0.002758406801149249, 0.020174352452158928, 0.03623081371188164, + -0.029306774958968163, -0.005006228107959032, 0.00890826340764761, 0.006629308685660362, + 0.014728107489645481, -0.03666252642869949, 0.03732670471072197, -0.02317975088953972, + 0.012146122753620148, 0.0012826903257519007, 0.002318390179425478, -0.001099004060961306, + 0.0008468246669508517, 0.00581569317728281, 0.013532590121030807, -0.014885849319398403, + 0.03443753719329834, -0.005159819032996893, 0.0010445208754390478, 0.021403077989816666, + -0.003702782327309251, 0.00988792348653078, -0.014337903819978237, 0.00825238972902298, + -0.0024138654116541147, 0.009223747067153454, 0.04572853446006775, -0.03279370069503784, + 0.002731424756348133, 0.013515986502170563, 0.026168543845415115, 0.003787880064919591, + 0.005363223142921925, 0.02975509501993656, 0.004283936694264412, 0.012536326423287392, + -0.017982570454478264, -0.006990454625338316, -0.0164632685482502, -0.025687014684081078, + -0.016903284937143326, -0.004690744448453188, -0.023810718208551407, 0.02347862906754017, + 0.02570362016558647, 0.007824826054275036, -0.026533840224146843, -0.0031776682008057833, + 0.009896225295960903, -0.04197593778371811, -0.023843925446271896, -0.02412620186805725, + 0.014454134739935398, 0.004333749879151583, 0.013673728331923485, -0.037193868309259415, + 0.021934419870376587, -0.0048692417331039906, 0.025388136506080627, 0.02490660920739174, + -0.001882524462416768, 0.009663764387369156, -0.051971789449453354, 0.013416360132396221, + -0.010660028085112572, -0.0001076691914931871, -0.005080948118120432, 0.025338323786854744, + -0.009746786206960678, -0.0390203520655632, 0.02836032398045063, 0.03144874423742294, + -0.02817767672240734, 0.03453716263175011, -0.0315815806388855, 0.03229556977748871, + 0.008625988848507404, -0.01957659423351288, -0.007467831484973431, -0.0023993365466594696, + 0.03530096635222435, 0.005981737282127142, 0.01555002573877573, 0.015076800249516964, + 0.018447494134306908, -0.001191366114653647, 0.014404322020709515, 0.03256123885512352, + 0.020805319771170616, 0.0011986305471509695, -0.024292245507240295, -0.023362398147583008, + 0.04689083993434906, 0.013582403771579266, 0.0024325454141944647, 0.021585727110505104, + 0.018364472314715385, 0.0017631803639233112, -0.03755916655063629, 0.014711502939462662, + 0.009074307978153229, 0.05721878260374069, 0.02239934355020523, 0.03433791175484657, + 0.021917816251516342, -0.0333748534321785, -0.02314654178917408, 0.030369456857442856, + -0.033590711653232574, 0.03676215559244156, -0.005110005848109722, 0.01065172627568245, + -0.014786222949624062, -0.01155666634440422, 0.0297883041203022, -0.008455793373286724, + 0.027031973004341125, -0.015350772999227047, -0.0019997931085526943, 0.03646327555179596, + -0.01838107779622078, -0.03375675529241562, 0.0007669159676879644, 0.00017253015539608896, + 0.009506022557616234, -0.009838109835982323, -0.044134508818387985, -0.007530097849667072, + -0.016272317618131638, -0.002243670402094722, -0.02543794922530651, -0.042972203344106674, + -0.016828564926981926, -0.022449156269431114, 0.014885849319398403, -0.02434205822646618, + 0.020024912431836128, -0.013316732831299305, -0.038920726627111435, -0.01403072290122509, + -0.026948949322104454, 0.015740975737571716, 0.021021177992224693, 0.024956421926617622, + 0.0006387507310137153, -0.011465341784060001, -0.028526369482278824, -0.011664594523608685, + -0.0005105854943394661, 0.036330439150333405, -0.027895402163267136, 0.018580330535769463, + -0.006400998216122389, 0.007019512355327606, 0.03523454815149307, -0.01894562691450119, + 0.026201751083135605, 0.008899961598217487, -0.04144459590315819, -0.032278966158628464, + -0.010352847166359425, 0.00409921258687973, 0.016073064878582954, -0.023129936307668686, + 0.00080894585698843, 0.017351603135466576, -0.007077627815306187, 0.018762977793812752, + 0.011199671775102615, 0.04775426909327507, -0.009555835276842117, 0.01942715421319008, + 0.011780825443565845, 0.012038193643093109, 0.0488501600921154, 0.020323792472481728, + 0.03410544991493225, 0.030336249619722366, -0.006097967736423016, -0.01632213033735752, + 0.015151520259678364, 0.007405564654618502, 0.033408064395189285, 0.005491907242685556, + 0.004215443506836891, 0.04048154130578041, 0.025089256465435028, 0.00370900915004313, + -0.027281038463115692, 0.021851398050785065, -0.01215442456305027, -0.009597346186637878, + -0.0009682443924248219, -0.010012456215918064, -0.02010793425142765, 0.007999172434210777, + -0.008526362478733063, -0.0420091450214386, -0.01572437211871147, 0.02127024345099926, + -0.013408057391643524, 0.040049824863672256, -0.0007845581858418882, -0.00664176233112812, + 0.016679124906659126, 0.041710264980793, -2.372289600316435e-5, -0.005114156752824783, + 0.02141968347132206, -0.005450396332889795, 0.008941472508013248, -0.014694899320602417, + 0.037160661071538925, 0.019792450591921806, -0.004520549438893795, -0.03437111899256706, + -0.02633458748459816, -0.015674559399485588, 0.023096727207303047, 0.006986303720623255, + 0.0390203520655632, 0.04167705774307251, 0.0033022011630237103, -0.020174352452158928, + 0.025902872905135155, -0.011955171823501587, 0.03447074443101883, -0.012179331853985786, + -0.004665838088840246, -0.01725197769701481, -0.03453716263175011, 0.026417609304189682, + -0.0018254468450322747, 0.024557916447520256, -0.0196596160531044, 0.033408064395189285, + -0.013698634691536427, -0.04330429062247276, 0.03068494237959385, -0.0057824840769171715, + -0.04114571586251259, -0.020091330632567406, -0.003495227312669158, -0.0294894240796566, + -0.013756750151515007, -0.01069323718547821, 0.016239108517766, -0.03915318846702576, + -0.00565379997715354, -0.018729768693447113, -0.01643005944788456, -0.02123703435063362, + -0.027281038463115692, -0.022565387189388275, 0.010834374465048313, 0.0184640996158123, + -0.006886677350848913, -0.015749279409646988, -0.0131091782823205, -0.01763387955725193, + 0.020423417910933495, 0.0002755293680820614, -0.005732670892030001, -0.0032108768355101347, + -0.04244086146354675, 0.034902460873126984, 0.07080118358135223, 0.012818600982427597, + 0.003134081605821848, 0.03332504257559776, -0.006434207316488028, 0.04951433837413788, + -0.018430890515446663, -0.02895808406174183, 0.025637201964855194, -0.023379003629088402, + -0.03390619531273842, -0.005907017271965742, -0.013698634691536427, -0.005965132731944323, + 0.005890412721782923, 0.017866339534521103, 0.004391865339130163, -0.023096727207303047, + 0.003922790754586458, -0.0013989211292937398, 0.02198423258960247, -0.021934419870376587, + 0.0023287679068744183, -0.010344544425606728, -0.03276049345731735, 0.017052724957466125, + -0.009273560717701912, 0.007413866929709911, 0.016870075836777687, -0.07378997653722763, + -0.03375675529241562, 0.04337070882320404, 0.01057700626552105, 0.02764633484184742, + -0.004487340804189444, -0.034869249910116196, -0.020655879750847816, 0.012071402743458748, + -0.03312578797340393, -0.010153594426810741, -0.02389374002814293, 0.02543794922530651, + -0.026218356564641, -0.0315815806388855, 0.019759243354201317, 0.0005863430560566485, + 0.042972203344106674, -0.01808219775557518, -0.027065180242061615, 0.021519308909773827, + 0.018630143254995346, -0.0065255314111709595, 0.002685762709006667, 0.026550443843007088, + -0.030850986018776894, -0.009398093447089195, -0.03395600989460945, -0.021934419870376587, + -0.016064763069152832, 0.03729349374771118, -0.013731843791902065, 0.008767126128077507, + 0.04433376342058182, 0.0006397885154001415, -0.031017029657959938, 0.030253227800130844, + 0.06200085207819939, 0.017451230436563492, 0.009738483466207981, 0.05300126224756241, + 0.024242432788014412, -0.0021160240285098553, -0.012561232782900333, -0.025670411065220833, + 0.02088834159076214, -0.028974687680602074, 0.01462848111987114, 0.004782069008797407, + -0.04858449101448059, -0.0018420512787997723, 0.00658364687114954, -0.02513906918466091, + 0.02513906918466091, 0.018430890515446663, -0.01909506693482399, 0.0006626195390708745, + -0.018580330535769463, -0.051639702171087265, 0.04433376342058182, 0.023063519969582558, + -0.014578668400645256, -0.02535492740571499, -0.01382316742092371, -0.017999175935983658, + -0.015234542079269886, -0.008119554258883, -0.033889591693878174, -0.01237858459353447, + 0.0208551324903965, 0.0163138285279274, 0.03795767202973366, -0.014180161990225315, + -0.004823579918593168, 0.028675807639956474, -0.029655467718839645, 0.0060190968215465546, + -0.012129518203437328, 0.01942715421319008, 0.027928609400987625, -0.02809465490281582, + -0.013773354701697826, -0.018729768693447113, 0.016264015808701515, 0.08023248612880707, + -0.0021398926619440317, -0.020539648830890656, -0.014246580190956593, -0.019144879654049873, + -0.0184640996158123, 0.010643423534929752, 0.00834786519408226, -0.012611046433448792, + 0.027031973004341125, -0.0016064762603491545, -0.014180161990225315, -0.008040683344006538, + 0.01613117940723896, 0.003069739555940032, 0.01867995597422123, 0.014288091100752354, + -0.02445828914642334, 0.01632213033735752, 0.031183073297142982, 0.018696561455726624, + 0.014288091100752354, 0.0011975927045568824, -0.048451654613018036, 0.019609803333878517, + -0.02183479256927967, -0.015342471189796925, 0.03968453034758568, 0.014180161990225315, + -0.029605654999613762, -0.0032938988879323006, -0.03493566811084747, 0.011149858124554157, + 0.027148203924298286, 0.0017133670626208186, -0.007243671920150518, 0.01665421947836876, + 0.024890003725886345, 0.005342467688024044, 0.04835202917456627, -0.013798261061310768, + -0.013740145601332188, -0.0003471358504611999, 0.003156912513077259, 0.025238696485757828, + 0.004404318518936634, 0.004474887158721685, 0.0028393534012138844, 0.01294313371181488, + 0.012627650052309036, -0.00902449432760477, -0.008709010668098927, 0.020273979753255844, + 0.031166469678282738, 0.01170610636472702, -0.009215445257723331, -0.019161483272910118, + 0.004640931263566017, 0.014188464730978012, 0.004219594411551952, -0.005085099022835493, + -0.023129936307668686, -0.02269822172820568, 0.02738066390156746, 0.027629731222987175, + 0.002712744753807783, 0.0015784562565386295, -0.0036882536951452494, 0.02063927613198757, + -0.026052312925457954, -0.02314654178917408, -0.010967209935188293, 0.031050238758325577, + -0.02985472045838833, -0.012204238213598728, 0.03503529727458954, 0.001516189775429666, + 0.024557916447520256, 0.029090918600559235, -0.036894988268613815, 0.013515986502170563, + 0.022266507148742676, -0.03450395539402962, 0.02213367260992527, -0.01395600289106369, + -0.005657951347529888, -0.013706936500966549, -0.0017445003613829613, -0.014769618399441242, + 0.023843925446271896, -0.00810294970870018, -0.022150276228785515, 0.033441271632909775, + -0.01811540685594082, -0.017285186797380447, -0.003916563931852579, 0.02666667476296425, + -0.027114994823932648, -0.008526362478733063, 0.014254882000386715, -0.00033027201425284147, + 0.010593610815703869, -0.02445828914642334, -0.01838107779622078, 0.006836864165961742, + -2.6949728635372594e-5, 0.014968871138989925, 0.0017403492238372564, 0.03789125382900238, + 0.0022914079017937183, 0.03315899893641472, -0.025637201964855194, 0.01217102911323309, + 0.011390621773898602, 0.01942715421319008, 0.010585308074951172, -0.004449980799108744, + -0.014354508370161057, -0.01564965210855007, -0.003322956617921591, -0.006849317345768213, + -0.0027895402163267136, -0.0022229147143661976, -0.0033914498053491116, + -0.0029327531810849905, 0.015674559399485588, 0.010676632635295391, -0.05170612037181854, + 0.022714827209711075, 0.02806144580245018, 0.03523454815149307, -0.05001246929168701, + -0.007787466049194336, -0.027397269383072853, -0.015392283909022808, -0.006006643641740084, + -0.031083447858691216, 0.04190951958298683, -0.007393111474812031, 0.0046326289884746075, + -0.004296389874070883, -0.02967207320034504, -0.019892077893018723, 0.02314654178917408, + 0.006924036890268326, 0.010925699025392532, 0.026650071144104004, 0.0008260691538453102, + -0.027696147561073303, 0.025936082005500793, -0.028841853141784668, -0.006176838651299477, + -0.010610215365886688, 0.006733086425811052, -0.006264011841267347, -0.02224990352988243, + -0.04048154130578041, -0.0028642599936574697, 0.007841430604457855, 0.002721047028899193, + 0.014919058419764042, -0.03231217339634895, 0.008899961598217487, -0.019078461453318596, + 0.018015779554843903, 0.007061023265123367, 0.011041929945349693, 0.01335824467241764, + -0.00567455543205142, 0.016969703137874603, 0.028260698541998863, 0.019294319674372673, + 0.021037781611084938, -0.004138648044317961, -0.014371112920343876, 0.011797429993748665, + -0.002488585188984871, -0.0048401840031147, 0.029804907739162445, 0.01984226517379284, + 0.013366546481847763, 0.019892077893018723, -0.008642593398690224, -0.015201332978904247, + 0.04370279610157013, 0.0065794955007731915, -0.007567457854747772, 0.00481942854821682, + 0.0015193030703812838, -0.028974687680602074, 0.003022001823410392, -0.02749689482152462, + -0.007936906069517136, -0.03360731527209282, 0.005936075001955032, 0.013142387382686138, + -0.03437111899256706, -0.027729356661438942, -0.012071402743458748, 0.003588627092540264, + 0.00923204980790615, -0.022565387189388275, 0.03050229325890541, 0.03765879198908806, + -0.03819013386964798, 0.02678290568292141, -0.0211540125310421, -0.019892077893018723, + 0.0019997931085526943, 0.03732670471072197, -0.038920726627111435, -0.0213034525513649, + 0.03347448259592056, 0.022532178089022636, -0.03828975930809975, 0.027131598442792892, + 0.0022602747194468975, 0.016222504898905754, -0.011324204504489899, -0.027662940323352814, + 0.01849730685353279, -0.006201745476573706, 0.002781237941235304, 0.009032797068357468, + -0.02386053092777729, -0.015018684789538383, 0.0007404527277685702, 0.008592779748141766, + -0.05150686576962471, 0.014678294770419598, -0.031199678778648376, -0.007546702399849892, + -0.019344132393598557, -0.03387298807501793, -0.025687014684081078, -0.042706530541181564, + -0.013989211991429329, 0.026948949322104454, 0.011581572704017162, -0.01688668131828308, + 0.013308431021869183, -0.0476546436548233, -0.008011626079678535, 0.039784155786037445, + -0.019045252352952957, 0.04536323621869087, -0.009464510716497898, -0.019792450591921806, + -0.008298051543533802, -0.005753426346927881, -0.002833126811310649, -0.017434624955058098, + 0.02183479256927967, -0.011789128184318542, 0.03739312291145325, 0.0065794955007731915, + 0.006334580946713686, -0.006185140926390886, -0.005620591342449188, 0.01221254002302885, + -0.01455376110970974, 0.0007155460771173239, 0.01755085587501526, 0.010195105336606503, + 0.02311333268880844, 0.030585315078496933, -0.05207141488790512, 0.018065594136714935, + -0.004682442173361778, -0.01628061942756176, 0.005201329942792654, 0.013391452841460705, + 0.01864674687385559, 0.023163145408034325, -0.0036550448276102543, -0.024524707347154617, + 0.009605648927390575, 0.0010284354211762547, 0.012611046433448792, 0.011490249074995518, + -0.006791201885789633, 0.01330012921243906, 0.027480291202664375, 0.0033997520804405212, + 0.0057036131620407104, -0.023345794528722763, 0.01491075661033392, 0.0027750113513320684, + -0.013233711011707783, 0.004321296699345112, 0.023545047268271446, 0.018065594136714935, + 0.030884195119142532, -0.025222092866897583, -0.005707764532417059, 0.025554180145263672, + 0.004223745781928301, 0.03076796419918537, -0.011124951764941216, 0.0044375271536409855, + -0.024690750986337662, -0.018148615956306458, 0.02836032398045063, -0.0044997939839959145, + -0.009406396187841892, -0.01864674687385559, 0.014562063850462437, -0.026234960183501244, + 0.019012045115232468, 0.022648409008979797, -0.03334164619445801, -0.0020246997009962797, + -0.02787879668176174, 0.033408064395189285, 0.040614377707242966, -0.025537576526403427, + -0.013200502842664719, -0.04131175950169563, 0.0130344582721591, 0.020539648830890656, + 0.01628061942756176, -0.015599839389324188, -0.028792038559913635, -0.0002047011803369969, + 0.026998763903975487, -0.005931924097239971, -0.0017683692276477814, -0.002351599046960473, + -0.019875474274158478, -0.012112913653254509, 0.02344541996717453, -0.009373187087476254, + 0.012021590024232864, 0.02791200578212738, 0.002592362929135561, 0.0008411169401369989, + -0.030884195119142532, 0.027629731222987175, 0.004161478951573372, 0.009647159837186337, + 0.014354508370161057, 0.0057036131620407104, -0.0193607360124588, 0.016720635816454887, + -0.026019103825092316, -0.01330012921243906, -0.01228726003319025, 0.00017914596537593752, + 0.00745537830516696, 0.005761728622019291, 0.0019219599198549986, -0.028144467622041702, + 0.009256956167519093, -0.0034329609479755163, 0.008356167003512383, -0.012353677302598953, + -0.015143217518925667, 0.0037152357399463654, -0.018165219575166702, -0.033706944435834885, + 0.05230387672781944, 0.010792863555252552, -0.016064763069152832, -0.019028648734092712, + -0.029605654999613762, 0.03065173327922821, 0.033889591693878174, -0.018962230533361435, + 0.021403077989816666, -0.005491907242685556, -0.02037360519170761, 0.044134508818387985, + -0.013466172851622105, 0.028293907642364502, -0.02955584228038788, -0.014279788359999657, + -0.005159819032996893, -0.03563305363059044, -0.011000419035553932, -0.027845587581396103, + 0.0323287770152092, 0.0011674972483888268, 0.005163969937711954, 0.017085934057831764, + 0.007721048779785633, -0.006982152350246906, 0.03559984639286995, 0.030402665957808495, + 0.01841428503394127, -0.012536326423287392, 0.011747617274522781, 0.011747617274522781, + 0.03672894462943077, -0.009647159837186337, -0.004740557633340359, -0.012029891833662987, + 0.015043591149151325, -0.006982152350246906, 0.015965135768055916, -0.00412619486451149, + 0.01669573038816452, -0.01687837764620781, 0.019559990614652634, 0.04373600333929062, + 0.0008027192088775337, -0.003885430982336402, -0.0041531771421432495, -0.01912827603518963, + -0.052204251289367676, 0.009290165267884731, -0.015035289339721203, -0.0026359492912888527, + -0.021286847069859505, 0.03735991194844246, 0.022797849029302597, 0.007783315144479275, + -0.0017268582014366984, -0.004420923069119453, 0.006903281435370445, 0.010311336256563663, + -0.03124949149787426, -0.0018576178699731827, -0.02153591439127922, 0.030934007838368416, + 0.009954340755939484, -0.002683687023818493, -0.01170610636472702, 0.003659195965155959, + 0.0011332506546750665, 0.015657953917980194, 0.0031403081957250834, -0.03556663542985916, + -0.03146534785628319, -0.007251974195241928, -0.008875054307281971, -0.0009454133687540889, + 0.022498968988656998, -0.029688676819205284, 0.018364472314715385, -0.016338735818862915, + -0.00121938600204885, 0.02716480754315853, -0.02562059834599495, -0.029506029561161995, + 0.0078082215040922165, -0.0026546292938292027, 0.03496887907385826, -0.023910343647003174, + -0.03231217339634895, -0.01369033195078373, -0.0016500628553330898, 0.010161896236240864, + 0.01677045039832592, -0.018746374174952507, 0.012677463702857494, -0.008659197948873043, + -0.006168536841869354, -0.03423828259110451, 0.007941056974232197, 0.0074802846647799015, + -0.01076795719563961, 0.02580324560403824, 0.0058447509072721004, -0.036894988268613815, + 0.009514324367046356, -0.010593610815703869, 0.0247239600867033, 0.031564973294734955, + 0.0097550880163908, -0.030967216938734055, -0.004769615363329649, 0.004404318518936634, + -0.0080074742436409, -0.013657123781740665, 0.010992116294801235, 0.015018684789538383, + -0.019227901473641396, -0.015184728428721428, 0.022382738068699837, 0.03995019942522049, + -0.02382732182741165, -0.0018814867362380028, -0.0294894240796566, -0.014919058419764042, + 0.01909506693482399, -0.03443753719329834, -0.008858450688421726, 0.004616024903953075, + -0.002949357498437166, 0.017351603135466576, 0.0016801583115011454, -0.011897056363523006, + -0.044400181621313095, -0.021037781611084938, 0.004777917638421059, 0.030220018699765205, + -0.015051893889904022, 0.033590711653232574, -0.0006377129466272891, 0.009630555287003517, + -0.016853472217917442, 0.008742219768464565, -0.010975511744618416, -0.026683280244469643, + -0.003802408929914236, -0.020357001572847366, 0.009182236157357693, -0.021170616149902344, + 0.008472397923469543, 0.03619760274887085, -0.016554592177271843, 0.00013225150178186595, + -0.01969282515347004, -0.010917396284639835, -0.018779583275318146, 0.0015597763704136014, + -0.03407223895192146, + ], + index: 45, + }, + { + title: "Northern Light Group", + text: "Northern Light Group, LLC is a company specializing in strategic research portals, enterprise search technology, and text analytics solutions. The company provides custom, hosted, turnkey solutions for its clients using the software as a service (SaaS) delivery model. Northern Light markets its strategic research portals under the tradename SinglePoint.", + vector: [ + 0.014532499946653843, -0.01595800556242466, -0.024147484451532364, -0.034728750586509705, + 0.01582406461238861, -0.022119248285889626, 0.009681954979896545, 0.02110513113439083, + -0.029715565964579582, 0.04048817604780197, 0.014551633968949318, 0.018923820927739143, + -0.034422602504491806, -0.013690590858459473, -0.006343020126223564, 0.005783341825008392, + -0.06394682824611664, -0.00963411945849657, -0.020856386050581932, -0.0009387765312567353, + 0.016895584762096405, -0.06356413662433624, 0.013604486361145973, 0.04951956495642662, + 0.015230901539325714, 0.006744840182363987, 0.007247115485370159, -0.0026213990058749914, + -0.0705672949552536, 0.006175594870001078, 0.025199871510267258, 0.008825695142149925, + 0.049022071063518524, 0.0353601835668087, -0.029084132984280586, -0.07714949548244476, + 0.02301856130361557, -0.03007911704480648, -0.009629336185753345, -0.00965803675353527, + -0.014580335468053818, -0.0022291457280516624, -0.02508506551384926, 0.023937007412314415, + 0.014790812507271767, -0.0353601835668087, 0.005419790279120207, -0.038306865841150284, + 0.0016718592960387468, -0.022463666275143623, 0.014790812507271767, -0.00440806383267045, + -0.030385266989469528, -0.020091013982892036, 0.04641980677843094, 0.00011615116818575189, + 0.00877785962074995, 0.10026372224092484, 0.008041189052164555, 0.015393543057143688, + -0.01236075721681118, -0.0025974810123443604, 0.023649992421269417, -0.028892790898680687, + 0.026137452572584152, 0.03400164842605591, -0.013681023381650448, -0.026213988661766052, + 0.020473700016736984, -0.004123441409319639, -0.01578579656779766, -0.008155995048582554, + 0.013059158809483051, 0.01947871595621109, 0.02313336730003357, -0.012178980745375156, + -0.013862798921763897, -0.006357370875775814, 0.004807492718100548, -0.03359982743859291, + 0.08595126867294312, -0.007419324479997158, 0.007223197724670172, -0.013834097422659397, + 0.027285510674118996, -0.02110513113439083, -0.04978744313120842, -0.09582456946372986, + -0.016426796093583107, 0.010179447010159492, 0.019115164875984192, 0.012265085242688656, + -0.026003511622548103, 0.003073446685448289, 0.04106220602989197, 0.03834513574838638, + 0.04978744313120842, 0.005587215069681406, -0.016388526186347008, 0.01314526330679655, + -0.005845528095960617, 0.003161942819133401, -0.005276282783597708, -0.03679525479674339, + -0.00883047841489315, 0.021717429161071777, 0.04833323881030083, 0.022291457280516624, + -0.006873996928334236, 0.059507668018341064, 0.023764798417687416, -0.014637738466262817, + 0.00803162157535553, -0.010830013081431389, 0.023764798417687416, 0.034346066415309906, + -0.01242772676050663, -0.011662354692816734, -0.0004708831256721169, -0.009485828690230846, + 0.004195195157080889, 0.008983553387224674, -0.027055898681282997, -0.02294202335178852, + -0.020588506013154984, -0.018177583813667297, 0.008261233568191528, 0.008313852362334728, + 0.014628170989453793, 0.04431503638625145, -0.018837716430425644, 0.018799448385834694, + 0.024338828399777412, -0.025180736556649208, -0.016551168635487556, 0.031035833060741425, + 0.0008072282071225345, -0.006792676169425249, 1.5200929738057312e-5, -0.009988103993237019, + -0.005529812071472406, -0.007213630713522434, -0.05005532503128052, -0.057670775800943375, + -0.05131818726658821, -0.04293736442923546, -0.018349792808294296, 0.04289909824728966, + -0.05082069709897041, -0.045463092625141144, -0.018244553357362747, 0.04898380488157272, + 0.0013154830085113645, 0.027113301679491997, 0.0006667107227258384, -0.008672621101140976, + -0.009586283937096596, -0.003415472339838743, -0.024128351360559464, 0.006089490372687578, + 0.0088735306635499, 0.015383975580334663, -0.0072518992237746716, -0.006773541681468487, + 0.01622588559985161, 0.025659093633294106, -0.007275816984474659, -0.018330657854676247, + -0.06004342809319496, 0.03903396800160408, 0.019019491970539093, 0.04465945437550545, + -0.014733409509062767, -0.030825354158878326, -0.031074101105332375, -0.012121577747166157, + -0.002189681399613619, 0.00984459649771452, 0.022616740316152573, -0.016331123188138008, + -6.974489224376157e-6, 0.016579870134592056, -0.01413067989051342, -0.026960225775837898, + -0.03884262591600418, -0.021832235157489777, 0.11289235949516296, 0.06440605223178864, + 0.03180120512843132, 0.029218073934316635, -0.03863214701414108, -0.028835387900471687, + 0.03696746379137039, -0.006830944679677486, -0.003944057505577803, 0.02835703082382679, + 0.0067544071935117245, -0.020550236105918884, 0.0029012379236519337, -0.04270775616168976, + 0.04232506826519966, 0.014685573987662792, -0.0032719650771468878, 0.03243263438344002, + -0.02663494274020195, -0.0064626093953847885, -0.017086928710341454, -0.002750555519014597, + -0.039646267890930176, 0.00048613076796755195, 0.021602623164653778, -0.03384857252240181, + -0.029658162966370583, 0.024281425401568413, -0.010284685529768467, 0.0002152608649339527, + -0.03249003738164902, -0.038134656846523285, 0.01151884812861681, 0.021832235157489777, + -0.0264627356082201, 0.03941665589809418, 0.06918962299823761, -0.002242300659418106, + -0.012494697235524654, 0.0016192400362342596, -0.030806221067905426, 0.027610793709754944, + 0.027668194845318794, -0.00705098919570446, -0.029122402891516685, -0.020837251096963882, + 0.03757976368069649, 0.023401247337460518, -0.03861301392316818, 0.0006553497514687479, + 0.033140603452920914, -0.050629355013370514, -0.00974892545491457, -0.020856386050581932, + -0.027132434770464897, -0.03358069434762001, -0.024281425401568413, 0.03172466531395912, + 0.020550236105918884, -0.10370789468288422, 0.019880536943674088, -0.017306972295045853, + -0.004362619947642088, 0.03763716667890549, -0.018665507435798645, 0.00895006861537695, + 0.026481868699193, -0.02498939447104931, 0.01059083454310894, -0.001238945871591568, + 0.03867041692137718, 0.027151569724082947, 0.015470080077648163, 0.0009100750903598964, + -0.002025843830779195, 0.005032320506870747, 0.04469772055745125, 0.047108642756938934, + -0.09942181408405304, -0.02135387808084488, -0.013948903419077396, -0.009997670538723469, + 0.022291457280516624, 0.012351189740002155, -0.0029179805424064398, -0.06295184046030045, + 0.008691755123436451, 0.04289909824728966, -0.0351114384829998, 0.040067221969366074, + 0.027955209836363792, -0.02150695212185383, 0.0036259496118873358, 0.010801311582326889, + 0.011853697709739208, -0.046725958585739136, 0.03960799798369408, -0.052466247230768204, + 0.006347803398966789, 0.018875986337661743, -0.025142468512058258, -0.03872781991958618, + 0.007419324479997158, -0.0013142871903255582, -0.03132284805178642, 0.04569270461797714, + 0.025582557544112206, 0.005472409538924694, 0.016417227685451508, -0.01497258897870779, + 0.04087086021900177, 0.015575318597257137, -0.01770879328250885, 0.031361114233732224, + 0.0351114384829998, 0.0057546403259038925, -0.09130886942148209, -0.004553962964564562, + 0.012753009796142578, 0.050629355013370514, -0.0019493066938593984, 0.07691988348960876, + -0.04194238409399986, -0.0178618673235178, -0.0026596675161272287, -0.023956142365932465, + -0.00286057754419744, -0.04446810856461525, -0.010552565567195415, 0.01952655240893364, + 0.03930184990167618, 0.019823133945465088, 0.03859388083219528, -0.0076202345080673695, + 0.05663752555847168, 0.0007749390788376331, -0.04906034097075462, 0.055642541497945786, + 0.0006912265089340508, -0.01410197839140892, 0.004946216009557247, 0.0529254712164402, + 0.01923953741788864, -0.043243516236543655, -0.015441378578543663, -0.01584319956600666, + -0.005902931094169617, -0.008423875086009502, -0.012475562281906605, 0.0014147422043606639, + -0.004759656731039286, 0.0019337600097060204, 0.021966174244880676, 0.003613990731537342, + 0.025754766538739204, -0.04106220602989197, -0.0001599507813807577, -0.010284685529768467, + 0.018742045387625694, -0.04431503638625145, -0.013700157403945923, 0.03352329134941101, + 0.0527723953127861, 0.012781711295247078, 0.0011259338352829218, -0.0078020100481808186, + 0.024090081453323364, 0.004106699023395777, 0.015144797042012215, 0.006534363143146038, + -0.0087348073720932, -0.03742668777704239, 0.033140603452920914, 0.09130886942148209, + -0.010973520576953888, -0.001518784905783832, -0.04198065027594566, -0.004329135175794363, + -0.07244245707988739, 0.045156944543123245, 0.032738786190748215, 0.06697004288434982, + 0.036240361630916595, 0.025314677506685257, -0.01151884812861681, 0.010782177560031414, + -0.0696488469839096, 0.023496918380260468, 0.007596316747367382, 0.0357237346470356, + 0.05196875333786011, 0.012006772682070732, -0.028777984902262688, 0.000656545627862215, + 0.025716496631503105, 0.05135645717382431, 0.0022602390963584185, 0.00786419678479433, + 0.038211192935705185, 0.010141178034245968, 0.037943314760923386, -0.00405168766155839, + 0.048448044806718826, -0.018273254856467247, -0.015489215031266212, -0.006433907896280289, + 0.02655840665102005, -0.014752544462680817, -0.00703663844615221, 0.010217715054750443, + -0.03685265779495239, 0.020244088023900986, -0.0035350616089999676, -0.00786419678479433, + 0.020244088023900986, -0.031303711235523224, -0.0009017038391903043, -0.022425398230552673, + -0.06953404098749161, 0.0088496133685112, 0.0178714357316494, -0.020492833107709885, + 0.003951232880353928, 0.014762111008167267, -0.023401247337460518, -0.06226300820708275, + -0.028835387900471687, 0.006237781140953302, 0.03375290334224701, -0.03323627635836601, + -0.004149750806391239, 0.014178515411913395, 0.03740755468606949, 0.002609439892694354, + 0.029103267937898636, 0.003688136115670204, -0.018206285312771797, -0.020358894020318985, + -0.05449448153376579, -0.0004499549977481365, 0.05901017785072327, -0.0348818264901638, + 0.0714092031121254, -0.04768267273902893, 0.0066396016627550125, -0.00188712019007653, + -0.01603454165160656, -0.02148781716823578, 0.025563422590494156, -0.010055073536932468, + 0.03396337851881981, 0.06008169800043106, -0.034403469413518906, 0.002424076432362199, + -0.055642541497945786, 0.050208400934934616, -0.03164812922477722, 0.019899670034646988, + -0.03884262591600418, -0.0005629669176414609, -0.01932564191520214, -0.02097119204699993, + 0.03784764185547829, -0.02454930543899536, -0.004455899819731712, -0.005816826596856117, + 0.00790724903345108, -0.016292855143547058, 0.003267181571573019, 0.012112011201679707, + 0.014618604443967342, -0.009452343918383121, 0.03321714326739311, 0.011317937634885311, + -0.013614053837954998, 0.022195786237716675, 0.03335108235478401, -0.04768267273902893, + -0.059431131929159164, -0.018818583339452744, -0.05828307196497917, -0.017096495255827904, + 0.012733875773847103, 0.015470080077648163, -0.034422602504491806, -0.0002616017300169915, + 0.04297563433647156, 0.023439515382051468, -0.006797459442168474, -0.020244088023900986, + 0.025793034583330154, -0.01595800556242466, 0.00969152245670557, -0.003472875105217099, + -0.013489680364727974, 0.027457717806100845, -0.02489372156560421, 0.04064125195145607, + 0.022731546312570572, 0.012829546816647053, -0.01589103415608406, -0.012743443250656128, + 0.04944302886724472, -0.006716138683259487, -0.00523801427334547, -0.009189247153699398, + -0.0359342135488987, -0.0262905266135931, -0.02663494274020195, 0.029581625014543533, + -0.04316697642207146, -0.012025906704366207, -0.020588506013154984, -0.012848681770265102, + 0.02655840665102005, 0.04416196048259735, 0.05713501572608948, 0.020760713145136833, + -0.03715880960226059, 0.04802709072828293, -0.019134297966957092, 0.032738786190748215, + -0.01416894793510437, 0.012733875773847103, 0.043587930500507355, -0.008658270351588726, + -0.05801519379019737, -0.0018345009302720428, 0.02301856130361557, 0.01968919299542904, + -0.032509174197912216, -0.034518275409936905, 0.003582897363230586, -0.005376738030463457, + 0.008509979583323002, -0.009567148983478546, -0.016465064138174057, 0.016340691596269608, + 0.04289909824728966, 0.020378027111291885, 0.004714212846010923, 0.01147101167589426, + 0.03241350129246712, 0.017086928710341454, -0.00751977926120162, 0.07443241775035858, + 0.026941092684864998, 0.018866417929530144, -0.03023219108581543, 0.04251641035079956, + 0.009949835017323494, -0.012619069777429104, 0.005228447262197733, -0.020033610984683037, + -0.02320990338921547, -0.008026838302612305, -0.00016712614160496742, 0.026271391659975052, + -0.032949261367321014, 0.04377927631139755, 0.0527723953127861, -0.007242332212626934, + 0.014771678484976292, 0.01413067989051342, -0.016761645674705505, 0.018522001802921295, + 0.020531103014945984, -0.018215851858258247, 0.02328644134104252, -0.007256682496517897, + 0.01953611895442009, 0.005615916568785906, -0.013508814387023449, 0.02137301117181778, + 0.0264053326100111, 0.01497258897870779, -0.006902698427438736, -0.005912498105317354, + -0.026137452572584152, 0.0007157423533499241, 0.009614985436201096, 0.04309044033288956, + -0.039531461894512177, -0.00010964849934680387, 0.03126544505357742, 0.010858714580535889, + -0.020052744075655937, -0.01059083454310894, -0.038000717759132385, 0.005041887518018484, + -0.004757265094667673, -0.013040024787187576, -0.030978430062532425, -0.008897448889911175, + -0.008251666091382504, -0.032585710287094116, 0.009968969970941544, 0.05820653587579727, + -0.047032106667757034, -0.012150279246270657, -0.0010589638259261847, 0.014676007442176342, + 0.0016706634778529406, -0.024511035531759262, 0.0131835313513875, 0.0061086248606443405, + 0.04389408230781555, -0.0037048785015940666, 0.003075838554650545, 0.05548946559429169, + 0.011136162094771862, 0.04018202796578407, -0.004592231474816799, -0.013384441845119, + -0.005563297308981419, 0.00153433158993721, 0.020741580054163933, 0.006213863380253315, + 0.003260006196796894, 0.011136162094771862, 0.01965092495083809, 0.00286057754419744, + 0.01933520846068859, -0.0024826752487570047, -0.028012612834572792, -0.02477891743183136, + 0.030557474121451378, -0.00264053326100111, 0.004190411418676376, 0.01411154493689537, + 0.01065780408680439, 0.040220294147729874, -0.03233696520328522, -0.010428193025290966, + -0.004745305981487036, -0.04485079646110535, 0.005290633533149958, -0.002566387876868248, + 0.026080049574375153, 0.009461910463869572, 0.022655010223388672, 0.018435897305607796, + 0.0017196950502693653, 0.0022064237855374813, 0.013403575867414474, -0.012676472775638103, + -0.03403991833329201, 0.03369550034403801, 0.008122509345412254, -0.020052744075655937, + 0.013097427785396576, 0.02110513113439083, 0.014388992451131344, 0.04423849657177925, + -0.006586982402950525, 0.007438458502292633, -0.006218647118657827, 0.04198065027594566, + -0.005917281843721867, -0.05200702324509621, 0.013547083362936974, -0.008993119932711124, + 0.059507668018341064, -0.013097427785396576, -0.022176651284098625, 0.04488906264305115, + 0.04205719009041786, -0.0004224494332447648, 0.0053193350322544575, -0.016407661139965057, + -0.016426796093583107, -0.0001765438064467162, 0.005434140563011169, 0.03403991833329201, + 0.020569371059536934, 0.009380590170621872, -0.02655840665102005, -0.003341326955705881, + 0.016455497592687607, -0.0009919938165694475, -0.012599935755133629, 0.03203081712126732, + -0.02148781716823578, 0.0024826752487570047, -0.021985309198498726, 0.003169118193909526, + 0.008476493880152702, -0.00619472935795784, -0.009040956385433674, -0.025295542553067207, + 0.04263121634721756, -0.006845295429229736, -0.03417385742068291, 0.04259295016527176, + -0.025639960542321205, -0.011872832663357258, 0.026271391659975052, -0.018694208934903145, + -0.037905044853687286, 0.00526671577244997, 0.01143274363130331, -0.017115630209445953, + -0.01503955852240324, -0.01607281155884266, 0.005132775753736496, -0.007567615248262882, + 0.02131560817360878, -0.011337071657180786, 0.009710656479001045, -0.05013186112046242, + -0.008395173586905003, 0.01929694041609764, -0.019009925425052643, -0.027821270748972893, + -0.021947041153907776, -0.007161011453717947, 0.014991723001003265, -0.006170811131596565, + -0.03671871870756149, 0.017316540703177452, -0.004790749866515398, 0.0007976610795594752, + 0.010418625548481941, 0.031208040192723274, -0.013700157403945923, 0.0013011322589591146, + 0.012006772682070732, 0.016283288598060608, -0.004310000687837601, -0.014149813912808895, + 0.034613944590091705, 0.010801311582326889, -0.004046903923153877, 0.00266923476010561, + 0.021564355120062828, 0.04890726879239082, -0.023726530373096466, -0.04588404670357704, + -0.03206908330321312, -0.023898739367723465, 0.0019528943812474608, 0.01149014662951231, + 0.0027601225301623344, 0.001563032972626388, 0.000700195727404207, -0.027763867750763893, + 0.032719649374485016, 0.009423642419278622, 0.014063709415495396, -0.001039829570800066, + -0.016426796093583107, 0.022329727187752724, 0.041368354111909866, -0.04381754249334335, + 0.029696431010961533, 0.02475978247821331, 0.03025132603943348, -0.05457102134823799, + -0.0046113659627735615, -0.002729029394686222, -0.0018560269381850958, 0.018483731895685196, + 0.036240361630916595, -0.010552565567195415, -0.02146868221461773, -0.023401247337460518, + -0.011145728640258312, -0.052274905145168304, -0.020511968061327934, -0.0030949728097766638, + 0.010026372037827969, 0.004429589956998825, 0.010122044011950493, 0.01600584015250206, + -0.01612064614892006, 0.011346639133989811, -0.030653147026896477, -0.0035278862342238426, + 0.034767020493745804, -0.023382112383842468, -0.05529812350869179, -0.027323778718709946, + -0.011183997616171837, 0.015393543057143688, 0.045042138546705246, -0.03141851723194122, + 0.012064175680279732, -0.053078543394804, -0.0043937130831182, 0.00010479018237674609, + 0.00667787017300725, 0.013097427785396576, -0.018234986811876297, -0.004886421374976635, + -0.04921341687440872, 0.028012612834572792, 0.039722803980112076, -0.005979468114674091, + 0.004343485925346613, -0.01415938138961792, 0.04749133065342903, 0.005419790279120207, + 0.02807001583278179, -0.010705639608204365, 0.009337537921965122, 0.01576666161417961, + -0.024051813408732414, 0.03419299051165581, 0.005147126503288746, 0.0026046563871204853, + 0.06727619469165802, -0.013814963400363922, -0.015651855617761612, 0.0037933746352791786, + 0.08266016840934753, -0.010102909989655018, -0.009696305729448795, -0.010303819552063942, + -0.002227949909865856, -0.04978744313120842, -0.029371147975325584, -0.039990682154893875, + -0.027304643765091896, 0.01957438699901104, 0.029505088925361633, 0.0030327863059937954, + 0.013059158809483051, -0.005945983342826366, 0.032681383192539215, -0.0032791404519230127, + -0.026156585663557053, 0.004329135175794363, -0.023898739367723465, -0.016847750172019005, + -0.03327454626560211, 0.016560735180974007, 0.020014476031064987, 0.006170811131596565, + -0.0360681526362896, 0.03206908330321312, -0.007711122278124094, -0.03719707578420639, + -0.025563422590494156, -0.036412570625543594, -0.010887416079640388, 0.013547083362936974, + -0.01140404213219881, -0.024070948362350464, -0.0359150767326355, -0.007754174526780844, + -0.002705111401155591, 0.046725958585739136, 0.013929769396781921, 0.007586749270558357, + -0.018110614269971848, 0.02841443382203579, 0.06176551431417465, -0.014149813912808895, + -0.01231292076408863, 0.012934786267578602, -0.008581733331084251, -0.01059083454310894, + -0.0069170487113296986, 0.029313744977116585, 0.005381521303206682, 0.027591658756136894, + 0.001157625112682581, 0.018579404801130295, 0.005348036531358957, -0.03415472432971001, + -0.015345707535743713, 0.04289909824728966, -0.029485953971743584, 0.0009339929674752057, + 0.005415006540715694, 0.00895006861537695, 0.023956142365932465, 0.004819451365619898, + 0.010189013555645943, -0.0043674036860466, -0.0036474757362157106, -0.0358385406434536, + 0.06241608038544655, 0.04251641035079956, 0.0012652555014938116, -0.029313744977116585, + 0.034843556582927704, 0.010361222550272942, -0.01624501869082451, -0.027591658756136894, + -0.0019995342008769512, -0.01435072347521782, 0.041674502193927765, 0.00806032307446003, + -0.02150695212185383, -0.0018105830531567335, -0.016551168635487556, -0.0044224145822227, + -0.016828615218400955, -0.013011323288083076, -0.013106994330883026, 0.0032002113293856382, + 0.016599003225564957, -0.03886175900697708, -0.00406603841111064, -0.01154754962772131, + 0.017287839204072952, -0.006132542621344328, 0.0009202401852235198, 0.05801519379019737, + -0.03363809734582901, -0.027783000841736794, 0.007998136803507805, -0.01575709506869316, + 7.418277527904138e-5, -0.0089070163667202, 0.027668194845318794, -0.01604411005973816, + 0.047146912664175034, -0.029792102053761482, -0.009270567446947098, 0.007342786993831396, + -0.013508814387023449, 0.02290375530719757, -0.03683352470397949, 0.03182033821940422, + 0.010523864068090916, -0.0016359825385734439, 0.016474630683660507, 0.008710889145731926, + -0.006333452649414539, 0.05828307196497917, -0.00987329799681902, 0.02477891743183136, + 0.027476852759718895, 0.0014637738931924105, -0.03214562311768532, -0.02091378904879093, + -0.06371721625328064, 0.010849147103726864, 0.040143758058547974, -0.006271266378462315, + -0.005539379548281431, 0.02454930543899536, 0.009461910463869572, 0.0035948562435805798, + -0.007845062762498856, 0.012465995736420155, 0.024013545364141464, -0.010734341107308865, + 0.031131504103541374, 0.003353285836055875, -0.052313171327114105, -0.010160312987864017, + 0.012198115698993206, 0.024262290447950363, 0.006864429451525211, -0.012800845317542553, + 0.01799580827355385, 0.00813207682222128, -0.004702253732830286, -0.027266375720500946, + 0.03400164842605591, 0.01326006930321455, 0.004245422314852476, 0.024032678455114365, + 0.009409291669726372, -0.0032815320882946253, -0.033083200454711914, -0.043396588414907455, + -0.019029060378670692, -0.018713343888521194, 0.011633653193712234, 0.004790749866515398, + 0.013747993856668472, 0.007706338539719582, 0.006783108692616224, 0.0003710260207299143, + -0.02462584152817726, 0.02120080217719078, -0.0018536351853981614, 0.005711588077247143, + 0.04622846469283104, 0.014360290952026844, 0.01626415364444256, 0.022406263276934624, + -0.0071083917282521725, 0.027744732797145844, 0.048448044806718826, 6.65963307255879e-5, + -0.0014613820239901543, 0.020186685025691986, 0.009514530189335346, 0.016484199091792107, + 0.04787401482462883, -0.0010350459488108754, -0.02129647508263588, -0.016886018216609955, + 0.019899670034646988, 0.004556355066597462, -0.03369550034403801, 0.03876608982682228, + -0.013671455904841423, 0.013747993856668472, -0.0035135354846715927, 0.020894654095172882, + 0.020511968061327934, -0.02324817329645157, -0.007969435304403305, 0.0699549987912178, + 0.013394009321928024, -0.040067221969366074, 0.020033610984683037, -0.022616740316152573, + 0.0020019260700792074, -0.03417385742068291, 0.0011887182481586933, 0.04431503638625145, + -0.05185394734144211, -0.05614003166556358, -0.011346639133989811, 0.026711480692029, + -0.004941432736814022, 0.04289909824728966, -0.008576949127018452, 0.04974917694926262, + 0.02311423234641552, 0.009337537921965122, -0.023477783426642418, -0.011107460595667362, + 0.009155761450529099, 0.009710656479001045, 0.01576666161417961, -0.015460513532161713, + 0.01967005804181099, -0.007027070969343185, 0.003613990731537342, -0.008266016840934753, + 0.004077997524291277, 0.01788100227713585, -0.022195786237716675, 0.0032552224583923817, + 0.06811810284852982, -0.016790347173810005, 0.0018667900003492832, 0.001274822629056871, + 0.009538447484374046, 0.010810879059135914, 0.020492833107709885, 0.002676409902051091, + 0.02472151443362236, -0.04752959683537483, -0.04044990614056587, 0.0349774993956089, + 0.012714741751551628, 0.03145678713917732, 0.04397061839699745, 0.06142110005021095, + -0.028988461941480637, 0.008093807846307755, -0.03386770933866501, 0.0019026667578145862, + -0.005888580344617367, -0.004790749866515398, -0.008940501138567924, 0.0021789183374494314, + 0.015460513532161713, 0.038134656846523285, -0.0025926975067704916, -0.018081912770867348, + 0.00036534550599753857, 0.00977762695401907, -0.012982621788978577, 0.013097427785396576, + 0.0016622921684756875, 0.005285849794745445, 0.0021406495943665504, 0.003405905095860362, + 0.007481510750949383, 0.008730024099349976, -0.04982571303844452, -0.007218413986265659, + -0.01414024643599987, -0.023669127374887466, -0.018474165350198746, 0.012035474181175232, + 0.016799913719296455, 0.01231292076408863, -0.005108857527375221, 0.03212648630142212, + -0.009423642419278622, -0.00035278862924315035, -0.016350258141756058, 0.0179766733199358, + -0.009256216697394848, -0.01924910396337509, -0.006520012393593788, 0.005348036531358957, + 0.027342911809682846, -0.005611132830381393, 0.01576666161417961, -0.00978719349950552, + 0.002485067117959261, 0.0004831410478800535, -0.025104200467467308, 0.030614877119660378, + 0.004463075194507837, -0.03344675526022911, 0.014025440439581871, 0.008993119932711124, + -0.011509280651807785, 0.07404973357915878, -0.00717536173760891, -0.0016359825385734439, + 0.009375805966556072, -0.01411154493689537, -0.005123208276927471, 0.03700573369860649, + -0.002999301301315427, -0.008500412106513977, -0.01613021455705166, -0.0037503226194530725, + -0.009433208964765072, -0.025754766538739204, -0.009514530189335346, 0.014666439965367317, + 0.010083775036036968, -0.02307596430182457, 0.023975275456905365, -0.00027640091138891876, + 0.00874915812164545, -0.027266375720500946, 0.020894654095172882, 0.012112011201679707, + 0.015537050552666187, 0.01506826002150774, 0.021621758118271828, 0.0024587572552263737, + -0.026960225775837898, 0.017240002751350403, -0.0005656576831825078, 0.0013465762604027987, + 0.01254253275692463, 0.01972746104001999, -0.013709724880754948, 0.006266482640057802, + -0.003391554346308112, -0.053652573376894, -0.00201986450701952, -0.020091013982892036, + -0.007467160001397133, -0.02498939447104931, 0.017278270795941353, 0.031016698107123375, + 0.008591299876570702, -0.04236333817243576, -0.0033006665762513876, -0.012733875773847103, + 0.02288462035357952, -0.0348818264901638, -0.00580725958570838, -0.01326006930321455, + -0.018885552883148193, -0.005013186018913984, -0.056101761758327484, 0.0009082812466658652, + 0.033064067363739014, 0.011920668184757233, -0.004659201484173536, -0.026309659704566002, + 0.01411154493689537, -0.0043961051851511, -0.014695141464471817, -0.03409732133150101, + -0.009337537921965122, 0.01323136780411005, 0.02127734012901783, -0.004391321446746588, + -0.03170553222298622, -0.0030471370555460453, -0.013795829378068447, -0.007749390788376331, + 0.008868747390806675, 0.023898739367723465, 0.023630859330296516, -0.010112476535141468, + -0.011758026666939259, -0.010877848602831364, 0.016981689259409904, 0.03382943943142891, + 0.016378959640860558, 0.00670657167211175, 0.025180736556649208, -0.021908771246671677, + -0.007146660704165697, -0.0029610327910631895, 0.0012293786276131868, -0.03176293522119522, + -0.0011624086182564497, -0.018464598804712296, 0.01605367660522461, -0.02125820517539978, + 0.02271241322159767, -0.02674974873661995, 0.019899670034646988, 0.016857316717505455, + 0.0008753941510803998, 0.030595744028687477, 0.027936076745390892, -0.02114339917898178, + -0.020626774057745934, 0.016321556642651558, -0.008576949127018452, 0.000435006309999153, + -0.017010390758514404, -0.0018380885012447834, 0.024300558492541313, 0.03182033821940422, + -0.02807001583278179, 0.011222265660762787, -0.018148882314562798, -0.01414024643599987, + -0.03195427730679512, 0.033025797456502914, 0.02456843852996826, 0.004668768960982561, + 0.0021430414635688066, 0.03159072622656822, 0.02665407769382, 0.005061022005975246, + -0.006845295429229736, -0.004960566759109497, 0.0349966324865818, -0.0353410504758358, + 0.0019098421325907111, -0.0013908243272453547, -0.0065630641765892506, 0.010466461069881916, + -0.0008664249326102436, 0.001171377836726606, 0.018292389810085297, -0.02829962782561779, + 0.034422602504491806, -0.030882757157087326, -0.010313387028872967, -0.018416762351989746, + 0.003618774237111211, 0.0029179805424064398, -0.00706533994525671, 0.011710191145539284, + 0.05101203918457031, -0.000342922518029809, 0.011040490120649338, 0.02143041417002678, + 0.002453973749652505, -0.020091013982892036, -0.002779256785288453, 0.017144331708550453, + -0.004233463667333126, 6.226121331565082e-5, 0.0003548814565874636, 0.003929706756025553, + -0.02479805052280426, 0.0177279282361269, -0.023362979292869568, 0.006429124157875776, + -0.029352014884352684, -0.006271266378462315, -0.02506593056023121, 0.031361114233732224, + 0.0028725366573780775, 0.02843356691300869, 0.002683585276827216, 0.004379362799227238, + -0.02474064752459526, 0.0008389194263145328, -0.014235918410122395, -0.020282356068491936, + -0.00664916867390275, 0.0021777222864329815, -0.004058863036334515, -0.010102909989655018, + 0.02114339917898178, -0.03771370276808739, 0.004166493657976389, -0.0015977139119058847, + 0.019823133945465088, 0.005386305041611195, 0.027629926800727844, -0.006763974670320749, + 0.009418858215212822, -0.04209545627236366, 0.004946216009557247, 0.036221228539943695, + -0.004565922077745199, 0.012293786741793156, -0.007687204517424107, 0.029677297919988632, + -0.004185627680271864, 0.01047602854669094, 0.016799913719296455, -0.029218073934316635, + -0.003348502330482006, 0.010992654599249363, -0.045118674635887146, -0.022731546312570572, + 0.02282721735537052, -0.07619277387857437, -0.005199745763093233, 0.015508349053561687, + -0.03025132603943348, -0.0017747061792761087, -0.02665407769382, 0.0029084132984280586, + -0.016579870134592056, 0.0017687267391011119, -0.014723842963576317, -0.03214562311768532, + 0.02870144695043564, 0.020741580054163933, -0.007027070969343185, 0.009519313462078571, + -0.027610793709754944, 0.039531461894512177, -0.018273254856467247, 0.013881933875381947, + -0.011738891713321209, 0.05652271956205368, -0.014838648959994316, 0.003429823089390993, + 0.029390282928943634, 0.004226288292557001, -0.013499247841536999, -0.0022889403626322746, + 0.003164334688335657, 0.0008951264317147434, 0.00990199949592352, -0.022387130185961723, + -0.010370790027081966, 0.004173669032752514, -0.02102859504520893, 0.012676472775638103, + -0.02481718547642231, 0.023516053333878517, 0.022769814357161522, -0.054150063544511795, + -0.018990790471434593, -0.02298029325902462, -0.01320266630500555, -0.02135387808084488, + 0.025314677506685257, 0.011002222076058388, -0.010284685529768467, -0.020014476031064987, + 0.01603454165160656, -0.01596757210791111, -0.0003997274616267532, -0.020722445100545883, + -0.016943421214818954, 0.02154522016644478, -0.006921832449734211, 0.009323187172412872, + 0.03394424542784691, -0.014704708009958267, 0.0180053748190403, -0.023477783426642418, + -0.00265488401055336, -0.023362979292869568, -0.003252830822020769, 0.006520012393593788, + -0.026041779667139053, -0.0264627356082201, 0.032662246376276016, 0.023898739367723465, + -0.0011438722722232342, -0.0029682081658393145, -0.007161011453717947, -0.03304493427276611, + 0.013891500420868397, 0.015106528997421265, 0.004661593586206436, 0.0035494123585522175, + -0.004171276930719614, -0.018301956355571747, -0.029026729986071587, 0.03337021544575691, + 0.032738786190748215, 0.040143758058547974, 0.0008568578050471842, 0.002094009891152382, + 0.009366239421069622, -0.010456894524395466, -0.002235125284641981, 0.01054299809038639, + 0.004774007480591536, -0.026003511622548103, 0.01804364286363125, -0.015613587573170662, + 0.03912964090704918, -0.011576250195503235, 0.01328877080231905, -0.025735631585121155, + -0.023420382291078568, -0.005434140563011169, 0.01320266630500555, -0.014035007916390896, + -0.016369393095374107, -0.00011271297989878803, -0.019009925425052643, + -0.00045772831072099507, 0.014494230970740318, 0.018502866849303246, -0.0005758227780461311, + 0.029658162966370583, -0.023707395419478416, -0.007902465760707855, -0.010275118052959442, + 0.019765730947256088, 0.03382943943142891, 0.020091013982892036, 0.00011353515583323315, + -0.011030923575162888, 0.008548247627913952, 0.03702486678957939, 0.013374874368309975, + 0.005902931094169617, 0.0027242456562817097, 0.006103841122239828, -0.01608237810432911, + 0.03145678713917732, 0.006950533948838711, -0.007811577524989843, 0.01603454165160656, + -0.04439157247543335, 0.01792883686721325, -0.041444890201091766, -0.01970832794904709, + -0.018675075843930244, 0.005606349557638168, -0.03736928477883339, -0.010724774561822414, + -0.029428550973534584, 0.04634327068924904, 0.01518306601792574, -0.001533135655336082, + 0.03342761844396591, 0.022501934319734573, 0.008414307609200478, -0.00972979050129652, + -0.016522467136383057, -0.012322488240897655, -0.008275584317743778, -0.013757560402154922, + -0.04240160435438156, -0.017000824213027954, -0.015163931995630264, 0.006371721625328064, + -0.03717794269323349, 0.01613978110253811, -0.006338236387819052, -0.024090081453323364, + -0.00797900278121233, 0.0016599004156887531, -0.025372080504894257, -0.06677870452404022, + -0.043626200407743454, -0.03185860812664032, -0.010935251601040363, -0.005056238267570734, + 0.006697004660964012, 0.025888705626130104, -0.014465529471635818, 0.018388060852885246, + -0.0178044643253088, -0.03229869529604912, 0.041865844279527664, 0.000154718742123805, + -0.0006427928456105292, -0.008356904610991478, -0.013212232850492, -0.009251433424651623, + -0.005816826596856117, 0.020511968061327934, 0.030461803078651428, 0.02851010486483574, + 0.026424465700984, 0.027553390711545944, 0.019038626924157143, -0.015374409034848213, + -0.043320052325725555, 0.011604951694607735, -0.005596782546490431, -0.05885710194706917, + -0.01970832794904709, 0.006328669376671314, 0.04442984238266945, -0.00490794749930501, + -0.011719757691025734, 0.007696771528571844, -0.022138383239507675, 0.020033610984683037, + 0.034900959581136703, 0.0013214624486863613, -0.01796710677444935, -0.005926848854869604, + -0.002992125926539302, -0.0017340457998216152, -0.008285150863230228, -0.009428425692021847, + -0.02114339917898178, 0.011738891713321209, 0.016254587098956108, 0.007778092287480831, + -0.00378859112970531, 0.010447327047586441, -0.015383975580334663, 0.039799340069293976, + -0.03669958561658859, 0.002463540993630886, -0.0019923588261008263, -0.008151210844516754, + 0.006094274111092091, 0.020741580054163933, -0.019067328423261642, -0.016924286261200905, + -0.027649061754345894, 0.01060040108859539, -0.008940501138567924, 0.0008981161518022418, + 0.0021262988448143005, -0.009170112200081348, 0.0011988834012299776, 0.01064823754131794, + 0.013470546342432499, 0.02133474312722683, -0.0071083917282521725, -0.04427676647901535, + -0.017144331708550453, -0.011758026666939259, -0.032987531274557114, -0.00980632845312357, + -0.0063669378869235516, 0.005123208276927471, 0.016532033681869507, -0.009342321194708347, + -0.01575709506869316, -0.010830013081431389, -0.009681954979896545, 0.009519313462078571, + -0.027036763727664948, + ], + index: 46, + }, + { + title: "Vitelline membrane", + text: "The vitelline membrane is a structure directly adjacent to the outer surface of the plasma membrane of an ovum. It is composed mostly of protein fibers, with protein receptors needed for sperm binding which, in turn, are bound to sperm plasma membrane receptors.", + vector: [ + -0.056395791471004486, 0.0002140840661013499, -0.0029928055591881275, 0.029788170009851456, + -0.019245248287916183, 0.021085841581225395, 0.02456088364124298, -0.025665240362286568, + -0.025356018915772438, -0.03645848110318184, 0.030863076448440552, 0.06461220234632492, + 0.0029375876765698195, -0.03371967747807503, -0.014827823266386986, 0.052479010075330734, + -0.006519383285194635, 0.005823638755828142, -0.03115757182240486, -0.014032687060534954, + -0.007137822452932596, -0.0053414031863212585, -0.0068470085971057415, -0.0015497799031436443, + 0.027461659163236618, 0.0004465740639716387, 0.008142787031829357, 0.00024387867597397417, + -0.009298679418861866, 0.037842608988285065, 0.013797091320157051, 0.012670647352933884, + 0.03198215737938881, 0.03731251507997513, -0.03133426979184151, -0.02248469367623329, + -0.0656723827123642, 0.0013169448357075453, 0.02635730244219303, -0.0650244951248169, + 0.05377478897571564, 0.028006475418806076, -0.00337012717500329, 0.015932179987430573, + -0.0058310008607804775, 0.04037526622414589, 0.015770208090543747, 0.024619782343506813, + -0.023265104740858078, -0.021777905523777008, 0.07391824573278427, 0.005094763357192278, + 0.011153997853398323, 0.020290706306695938, -0.025915559381246567, 0.0031915896106511354, + -0.006283787079155445, 0.07656870037317276, -0.0004104523977730423, -0.05230231210589409, + -0.02186625450849533, -0.0055806804448366165, -0.0005876095383428037, 0.003151096636429429, + 0.009747784584760666, 0.04299626871943474, -0.0053229969926178455, -0.024737579748034477, + -0.004767138045281172, 0.023559600114822388, 0.03280674293637276, -0.015475712716579437, + -0.0020412185695022345, 0.0013381117023527622, -0.03801930323243141, 0.045646727085113525, + -0.0008328686817549169, 0.04013966768980026, 0.026460375636816025, -0.02210184931755066, + -0.016845114529132843, 0.01830286532640457, -0.0018378328531980515, 0.049210116267204285, + 0.03863774612545967, 0.014238833449780941, 0.02905193157494068, -0.030627479776740074, + -0.02961147204041481, -0.011750350706279278, 0.009983380325138569, 0.04611791670322418, + 0.019907861948013306, 0.032129403203725815, 0.01046929694712162, 0.0058346823789179325, + 0.05866340547800064, 0.0005728848045691848, -0.02064410038292408, 0.004829718265682459, + 0.0007877741591073573, -0.008113337680697441, -0.006486252415925264, 0.015254841186106205, + -0.01348050870001316, 0.021763181313872337, 0.022352170199155807, -0.03536884859204292, + 0.017124883830547333, 0.007318201009184122, -0.007299794815480709, -0.03645848110318184, + 0.03268894553184509, -0.03048023208975792, 0.002087233355268836, -0.020526301115751266, + -0.06101936474442482, 0.04025746509432793, -0.04332021623849869, -0.0057868268340826035, + 0.04479268938302994, -0.019215798005461693, -0.009283955208957195, 0.018391212448477745, + -0.021071117371320724, 0.005418708082288504, -0.03607563674449921, 0.014805736020207405, + 0.022249097004532814, 0.015284290537238121, -0.02693156711757183, -0.007502260152250528, + 0.04314351826906204, 0.009276592172682285, 0.0262984037399292, -0.0001463272055843845, + 0.001481677987612784, 0.02696101740002632, -0.012236267328262329, 0.060901567339897156, + -0.011492667719721794, 0.01584383100271225, -0.025841936469078064, 0.07768778502941132, + 0.005297228693962097, -0.05186057090759277, -0.02300005964934826, 0.00709732947871089, + 0.02628367953002453, -0.031039772555232048, 0.040581412613391876, -0.051330480724573135, + 0.01509286928921938, 0.013215463608503342, -0.007020024582743645, -0.048945069313049316, + 0.011603103019297123, -0.010690168477594852, 0.0904688611626625, 0.009909756481647491, + 0.0017881368985399604, -0.05716148018836975, -0.06802834570407867, 0.0016730997012928128, + 0.030067939311265945, -0.017772773280739784, -0.001262647332623601, -0.005808914080262184, + -0.03698857128620148, -0.005661666393280029, -0.003533940063789487, -0.009063083678483963, + -0.0018599199829623103, -0.021777905523777008, -0.015726033598184586, -0.010395674034953117, + -0.016506444662809372, 0.020747173577547073, -0.015056056901812553, -0.04464544355869293, + -0.007980814203619957, -0.0395212285220623, 0.01541681308299303, 0.015637684613466263, + -0.006302193272858858, 0.016977636143565178, 0.0009156953892670572, 0.02336817793548107, + -0.012022758834064007, -0.0191127248108387, 0.027667805552482605, -0.0066408622078597546, + 0.07621530443429947, 0.031245918944478035, 0.024958452209830284, -0.032747846096754074, + 0.02039377950131893, 0.010866865515708923, -0.0017356799216941, -0.05085928738117218, + -0.009040996432304382, -0.01640337146818638, -0.00303145800717175, 0.02962619811296463, + -0.05227286368608475, 0.04223058372735977, -0.018641533330082893, -0.05981193482875824, + -0.025208773091435432, -0.03790150582790375, -0.004340120125561953, -0.0205851998180151, + -0.013789728283882141, 0.0395212285220623, -0.03321903571486473, -0.01939249597489834, + -0.05780936777591705, -0.0911167562007904, 0.03286564350128174, 0.020806072279810905, + -0.02179262973368168, 0.021174190565943718, 0.010108540765941143, 0.027137715369462967, + -0.019893137738108635, -0.02065882459282875, -0.012405602261424065, -0.03410252183675766, + -0.029493674635887146, -0.006033466197550297, 0.01178716216236353, 0.0025621065869927406, + 0.05557120591402054, -0.03472096100449562, -0.05651359260082245, -0.04334966465830803, + 0.0347798615694046, -0.014312457293272018, 0.02487010322511196, -0.03919728472828865, + 0.053156349807977676, -0.027711980044841766, -0.005779464263468981, 0.0006865414907224476, + -0.004086118191480637, 0.023471251130104065, -0.041759390383958817, 0.003533940063789487, + -0.01647699624300003, -0.026740146800875664, 0.07268136739730835, -0.012089019641280174, + 0.04214223474264145, 0.03221775218844414, 0.02484065294265747, 0.053068000823259354, + -0.0061034089885652065, -0.038137104362249374, -0.05474662035703659, 0.010270513594150543, + -0.010999388061463833, 0.0023320321924984455, -0.004995371680706739, 0.009099895134568214, + 0.010955214500427246, -0.0188624057918787, 0.03698857128620148, -0.009629986248910427, + 0.016638968139886856, 0.00433275755494833, 0.006489933468401432, -0.021984051913022995, + 0.042024437338113785, -0.023485977202653885, 0.019878413528203964, 0.04847387596964836, + 0.004251771606504917, -0.013509958051145077, 0.01646227017045021, -0.01046929694712162, + -0.005028502084314823, -0.016580069437623024, -0.05203726515173912, -0.0009626305545680225, + 0.018700432032346725, 0.05719092860817909, 0.006802834570407867, -0.027711980044841766, + -0.026563448831439018, -0.02036432921886444, -0.0013555972836911678, 0.03445591405034065, + -0.016020528972148895, -0.01734575629234314, 0.021925153210759163, 0.017154334113001823, + -0.02933170273900032, 0.0032136766240000725, -0.029537849128246307, -0.0329834409058094, + -0.0008775030728429556, -0.005632217042148113, -0.028845785185694695, 0.023500701412558556, + -0.023132583126425743, -0.01858263462781906, -0.023839371278882027, 0.03374912589788437, + 0.05336249619722366, -0.020761897787451744, 0.056101299822330475, 0.01121289748698473, + 0.022337445989251137, -0.05295019969344139, -0.005205199122428894, -0.040522512048482895, + -0.008194323629140854, -0.006044509820640087, 0.036664627492427826, 0.010115903802216053, + -0.013892801478505135, 0.014680575579404831, -0.006353729870170355, 0.012339340522885323, + 0.05810386314988136, 0.015549336560070515, 0.009791959077119827, -0.03704747185111046, + 0.019053826108574867, 0.013863352127373219, -0.05716148018836975, 0.0048002684488892555, + -0.03533940017223358, 0.011242346838116646, 0.003018573857843876, 0.02782977744936943, + 0.026475099846720695, 0.009313404560089111, -0.008474093861877918, -0.00956372544169426, + 0.02005510963499546, -0.003924145828932524, 0.019834239035844803, -0.011838698759675026, + -0.037842608988285065, -0.03949178010225296, 0.011603103019297123, -0.012000671587884426, + -0.0032891409937292337, -0.018774056807160378, 0.0007049473933875561, -0.015313739888370037, + -0.02725551277399063, -0.011021475307643414, 0.03112812153995037, 0.003983044996857643, + 0.0073439693078398705, -0.022617215290665627, 0.040522512048482895, 0.02927280403673649, + -0.018788781017065048, 0.013951701112091541, 0.03209995478391647, 0.047413695603609085, + -0.053656987845897675, -0.01272218395024538, -0.027682529762387276, 0.006519383285194635, + 0.05589514970779419, -0.02008455991744995, 0.0034308668691664934, -0.04544058069586754, + 0.022823363542556763, 0.06425880640745163, -0.033366285264492035, -0.02419276535511017, + 0.006132858339697123, -0.030362434685230255, 0.06985421478748322, 0.026254229247570038, + 0.010793241672217846, -0.05289130285382271, -0.03207050636410713, -0.011131911538541317, + 0.028286244720220566, -0.025046799331903458, -0.0001016928072203882, -0.04570562392473221, + -0.03448536619544029, 0.03048023208975792, -0.015446262434124947, 0.0073550124652683735, + 0.0400218702852726, -0.003931508399546146, 0.06714486330747604, -0.005046908278018236, + -0.0022896986920386553, 0.037842608988285065, -0.026372026652097702, 0.020261256024241447, + 0.0066445437259972095, 0.01033677440136671, 0.011448493227362633, -0.035987287759780884, + 0.10012830048799515, -0.014636402018368244, 0.022366896271705627, -0.006950082257390022, + 0.020864970982074738, -0.02008455991744995, 0.033955272287130356, -0.04667745903134346, + -0.006037147715687752, -0.03660573065280914, -0.01822924055159092, 0.01540208887308836, + 0.005297228693962097, -0.01332589890807867, 0.03796040639281273, -0.022852811962366104, + -0.0036278103943914175, -0.0509476363658905, -0.019922586157917976, 0.035427749156951904, + 0.009526913054287434, 0.018950752913951874, -0.040551960468292236, -0.005753695964813232, + -0.026165880262851715, 0.05792716518044472, -0.031540416181087494, -0.008731776848435402, + 0.016594793647527695, -0.011315970681607723, 0.021380336955189705, -0.05047644302248955, + 0.04667745903134346, -0.030745279043912888, 0.016815664246678352, -0.025032075121998787, + 0.005337722133845091, 0.01374555379152298, -0.056660838425159454, 0.03698857128620148, + -0.046795256435871124, -0.04064030945301056, 0.020717723295092583, -0.038991138339042664, + 0.04974020645022392, 0.0043106707744300365, 0.04600011929869652, 0.006033466197550297, + -0.02749110758304596, 0.0013132636668160558, 0.023530149832367897, 0.012339340522885323, + 0.03919728472828865, -0.012206817977130413, -0.00022340206487569958, 0.013465783558785915, + -0.04602956771850586, 0.0019013333367183805, 0.07597970962524414, -0.03533940017223358, + 0.009107258170843124, -0.0027608906384557486, 0.028183171525597572, 0.029449500143527985, + 0.016992362216114998, -0.02157175913453102, 0.04794378578662872, 0.008790675550699234, + -0.07327035814523697, 0.016992362216114998, 0.04255452752113342, -0.04464544355869293, + 0.013981150463223457, 0.04128820076584816, -0.010822691023349762, 0.023559600114822388, + 0.05713203176856041, 0.047354795038700104, -0.016094151884317398, 0.05692588537931442, + -0.026224780827760696, 0.020747173577547073, 0.05065314099192619, 0.010461934842169285, + 0.03295399248600006, -0.020850246772170067, 0.05047644302248955, 0.0026688610669225454, + 0.0550411157310009, -0.015549336560070515, -0.03433811664581299, 0.007391824387013912, + 0.013414246961474419, 0.02628367953002453, -0.0014632720267400146, 0.04782598838210106, + -0.013495233841240406, 0.05981193482875824, 0.013414246961474419, 0.06478890031576157, + 0.02002565935254097, 0.036340683698654175, -0.016624242067337036, -0.013694017194211483, + 0.034249767661094666, 0.009350216016173363, -0.01789057068526745, 0.009644711390137672, + 0.026165880262851715, 0.056395791471004486, 0.032718393951654434, -0.011396956630051136, + 0.04187718778848648, 0.0024498302955180407, -0.04791433736681938, -0.004472642671316862, + -0.005300910212099552, -0.009512188844382763, -0.03224720433354378, 0.01680094003677368, + 0.012655923143029213, 0.00641999114304781, 0.017728598788380623, -0.003335156012326479, + 0.07868906110525131, 0.008503543213009834, -0.031187020242214203, -0.001177979982458055, + 0.04985800385475159, 0.023559600114822388, -0.021174190565943718, 0.006162308156490326, + 0.0028878916054964066, -0.014606951735913754, -0.01612360216677189, -0.019657541066408157, + 0.02305895835161209, -0.015063419006764889, 0.015784932300448418, -0.03731251507997513, + -0.0021958283614367247, -0.002928384579718113, 0.006305874325335026, 0.026843219995498657, + -0.009158794768154621, -0.05153662711381912, 0.06437660753726959, -0.04962240904569626, + -0.03525105118751526, 0.035751692950725555, 0.005989292170852423, -0.004748731851577759, + 0.016874562948942184, 0.020437953993678093, -0.03050968237221241, -0.011919685639441013, + 0.0009460651781409979, 0.008871661499142647, 0.02750583365559578, 0.013134476728737354, + 0.015284290537238121, 0.049504611641168594, -0.01769915036857128, -0.026475099846720695, + -0.029964866116642952, -0.028197895735502243, -0.019495569169521332, -0.014135760255157948, + 0.003743767738342285, 0.0413176491856575, 0.006114452611654997, 0.035162702202796936, + -0.026813769713044167, 0.0012212339788675308, 0.002582353074103594, 0.013082940131425858, + 0.030274085700511932, -0.02626895345747471, 0.02668124809861183, 0.018420662730932236, + -0.013789728283882141, -0.0179641954600811, -0.008974735625088215, -0.009342853911221027, + -0.0257241390645504, -0.015593510121107101, 0.034897658973932266, -0.022852811962366104, + -0.01348050870001316, -0.015284290537238121, 0.0016169616719707847, -0.000775350141339004, + 0.005271460395306349, 0.027005191892385483, 0.02330927923321724, 0.030715828761458397, + 0.012641198001801968, 0.02336817793548107, 0.010962576605379581, 0.01317128911614418, + 0.05616019666194916, 0.022263823077082634, -0.008238498121500015, -0.009144069626927376, + 0.0014918012311682105, -0.033366285264492035, -0.061431657522916794, -0.05318579822778702, + -0.0027811371255666018, 0.045970670878887177, 0.0006754979258403182, 0.0020633055828511715, + -0.013193376362323761, -0.03351353108882904, 0.058781202882528305, 0.02246996946632862, + -0.01227307878434658, 0.009048358537256718, 0.035751692950725555, 0.0030701104551553726, + -0.020158182829618454, -0.01909800060093403, -0.04125874862074852, -0.024074966087937355, + -0.01287679374217987, -0.014422892592847347, 0.03310123831033707, -0.010844778269529343, + -0.031216470524668694, -0.01703653670847416, 0.03504490479826927, -0.05350974202156067, + -0.009799321182072163, -0.07268136739730835, 0.01510759349912405, -0.008120699785649776, + -0.0012506834464147687, -0.030274085700511932, 0.013347986154258251, -0.05627799406647682, + -0.009335491806268692, 0.0004463439981918782, 0.027137715369462967, 0.0006538709276355803, + 0.003309387480840087, 0.016226675361394882, 0.030892524868249893, 0.00820168573409319, + -0.03854939714074135, -0.01641809567809105, 0.004921747837215662, 0.008783313445746899, + 0.04108205437660217, -0.023220930248498917, 0.011153997853398323, -0.02305895835161209, + 0.004192872438579798, 0.04105260223150253, -0.007513303775340319, 0.004067711997777224, + -0.0019455075962468982, -0.025208773091435432, 0.014444979839026928, -0.012030120939016342, + 0.011647277511656284, 0.008105974644422531, -0.001233197865076363, -0.024678681045770645, + 0.023162031546235085, -0.026828493922948837, 0.028757436200976372, 0.0032007924746721983, + -0.023456526920199394, 0.010248426347970963, -0.004572034813463688, 0.007461767178028822, + -0.009364941157400608, 0.01731630600988865, 0.02634257823228836, -0.004159742034971714, + 0.008429919369518757, -0.005282504018396139, 0.017816947773098946, -0.012648560106754303, + -0.0050542703829705715, 0.013362710364162922, 0.012361427769064903, 0.0011586537584662437, + 0.008753864094614983, 0.02095331996679306, 0.011934409849345684, 0.007855653762817383, + 0.0042296843603253365, -0.008150149136781693, 0.020835520699620247, -0.03380802646279335, + -0.0119638592004776, 0.03251224756240845, -0.0006934436969459057, 0.03145206719636917, + -0.033660780638456345, 0.024929001927375793, 0.00042793803731910884, -0.013046128675341606, + 0.030656930059194565, -0.01880350522696972, 0.011632552370429039, 0.03165821358561516, + 0.02360377460718155, -0.007049473933875561, -0.016992362216114998, 0.007973452098667622, + -0.011146635748445988, 0.031039772555232048, -0.016697866842150688, -0.008047075942158699, + 0.005385577213019133, 0.04812048375606537, -0.0047855437733232975, -0.0055144187062978745, + -0.002236321335658431, 0.017169058322906494, 0.023397628217935562, 0.005735290236771107, + -0.01406213641166687, -0.006316917948424816, -0.06131386011838913, -0.002595237223431468, + 0.006939038634300232, -0.007634783163666725, -0.0008894669590517879, 0.011713538318872452, + -0.03769535943865776, 0.04308461770415306, -0.01392961386591196, -0.00472296355292201, + -0.020172907039523125, 0.03080417774617672, 0.0024498302955180407, -0.011168722994625568, + -0.018450111150741577, -0.07391824573278427, 0.013959063217043877, 0.02336817793548107, + -0.034897658973932266, -0.0328361913561821, 0.03133426979184151, 0.01733103021979332, + -0.015490436926484108, -0.02691684290766716, 0.04514608532190323, -0.03595783933997154, + 0.055217813700437546, -0.0032670539803802967, -0.0017734121065586805, -0.014415530487895012, + -0.00254001934081316, 0.016830390319228172, 0.010012829676270485, 0.005757377482950687, + -0.016226675361394882, -0.029979592189192772, 0.04600011929869652, -0.0016335269901901484, + -0.0005236489232629538, -0.03539830073714256, 0.0068985456600785255, 0.00884221214801073, + 0.03704747185111046, -0.04585287347435951, -0.02451670914888382, -0.022941160947084427, + -0.0031271688640117645, -0.003003848949447274, 0.006824921816587448, -0.020717723295092583, + 0.0008126221364364028, -0.04482213780283928, -0.00619543856009841, -0.039315082132816315, + -0.0008618580177426338, -0.029979592189192772, 0.03133426979184151, 0.00030001677805557847, + -0.031216470524668694, 0.04340856522321701, 0.012486588209867477, 0.008047075942158699, + -0.007170953322201967, -0.002418540185317397, 0.018700432032346725, -0.014687938615679741, + -0.018729882314801216, -0.028197895735502243, 0.00017439626390114427, -0.03645848110318184, + 0.03819600120186806, -0.00746544823050499, 0.012972504831850529, 0.0472075492143631, + 0.013414246961474419, -0.0037492895498871803, -0.0063279615715146065, -0.01793474517762661, + -0.0334840826690197, -0.01285470649600029, -0.020114008337259293, -0.0347798615694046, + -0.02270556427538395, 0.0006124575738795102, -0.03672352805733681, 0.0334840826690197, + 0.0071046920493245125, -0.028610190376639366, 0.00026412520674057305, 0.044998835772275925, + 0.020526301115751266, 0.00014023024414200336, 0.0023890906013548374, 0.01849428564310074, + -0.05118323117494583, -0.04223058372735977, 0.04782598838210106, -0.0009543478954583406, + 0.027005191892385483, -0.042583975940942764, 0.031893808394670486, -0.007958727888762951, + -0.0013132636668160558, 0.03077472746372223, -0.011735625565052032, 0.03589894250035286, + -0.010086453519761562, -0.031893808394670486, 0.0170659851282835, -0.005197837017476559, + -0.04046361520886421, -0.0014402646338567138, -0.009976018220186234, -0.020246531814336777, + 0.005348765291273594, 0.01647699624300003, 0.0278445016592741, -0.0037989856209605932, + 0.035192154347896576, -0.01029996294528246, -0.0006267221760936081, -0.035722244530916214, + 0.015770208090543747, 0.034838758409023285, -0.024251664057374, -0.007782030384987593, + 0.017743322998285294, -0.0028253113850951195, 0.026872668415308, -0.0070862858556210995, + -0.02606280706822872, 0.028197895735502243, 0.013112390413880348, 0.030332984402775764, + -0.001707150717265904, -0.0006805595476180315, -0.01150002982467413, 0.04985800385475159, + 0.040581412613391876, 0.005775783210992813, 0.0023117857053875923, -0.021674832329154015, + -0.02065882459282875, 0.02426638826727867, -0.012979866936802864, -0.024457810446619987, + -0.014231471344828606, 0.02600390836596489, 0.01105828769505024, 0.0024314243346452713, + -0.011742988601326942, -0.010719617828726768, -0.03109867312014103, 0.022514142096042633, + 0.025326570495963097, -0.012376152910292149, 0.046500761061906815, -0.006666630506515503, + 0.006394222844392061, -0.040228016674518585, -0.0296409223228693, -0.006033466197550297, + 0.027270236983895302, 0.029743995517492294, -0.01822924055159092, -0.01540208887308836, + 0.05495276674628258, 0.028212621808052063, -0.0006115372525528073, 0.027991749346256256, + -8.409212750848383e-5, -0.00016576847701799124, -0.00017485641001258045, -0.0296409223228693, + -0.029964866116642952, -0.01703653670847416, 0.041435446590185165, -0.018788781017065048, + -0.03436756506562233, -0.021409787237644196, 0.009931843727827072, 0.03710636869072914, + -0.011838698759675026, -0.022352170199155807, 0.012030120939016342, 0.01435663178563118, + -0.007443360984325409, 0.01198594644665718, 0.019672265276312828, 0.019539743661880493, + 0.021660108119249344, 0.016992362216114998, 0.033631328493356705, -0.0025289759505540133, + 0.004122930113226175, -0.05828056111931801, -0.02214602380990982, 0.022867536172270775, + 0.01613832637667656, -0.036900222301483154, -0.03106922283768654, -0.02241106890141964, + 0.007296113763004541, 0.002221596660092473, -0.011036200448870659, -0.05981193482875824, + 0.01448915433138609, 0.00942383985966444, 0.010034916922450066, -0.028816336765885353, + 0.014849910512566566, 0.01672731526196003, 0.06255073845386505, 0.0028032243717461824, + -0.0031860677991062403, 0.0017089913599193096, -0.025311846286058426, 0.025061525404453278, + -0.02478175424039364, 0.004086118191480637, 0.003780579660087824, 0.016948187723755836, + -0.014106310904026031, -0.0068948641419410706, 0.024678681045770645, 0.03563389554619789, + 0.011396956630051136, -0.012788445688784122, -0.0010472978465259075, 0.024457810446619987, + 0.004093480762094259, -0.02005510963499546, 0.02635730244219303, 0.026372026652097702, + -0.01825869083404541, 0.015770208090543747, -0.04190663993358612, -0.014187296852469444, + 0.03946233168244362, 0.0037345646414905787, 0.015225391834974289, 1.6450307157356292e-5, + -0.01435663178563118, 0.039315082132816315, 0.021925153210759163, 0.04061086103320122, + 0.026754871010780334, -0.004137654788792133, 0.043261315673589706, 0.042878471314907074, + 0.02569468878209591, -0.023854095488786697, 0.04249563068151474, 0.04155324399471283, + -0.026872668415308, -0.014908809214830399, -0.0014338225591927767, 0.007863016799092293, + -0.0043106707744300365, 0.030951425433158875, 0.00568375363945961, 0.02933170273900032, + 0.002954153111204505, -0.005956161301583052, -0.00754643464460969, -0.008628703653812408, + -0.002333872951567173, 0.03533940017223358, -0.018067268654704094, -0.019289422780275345, + -0.00471191992983222, -0.006375816650688648, 0.024693405255675316, 0.000359605997800827, + -0.02126253955066204, 0.042053885757923126, -0.008326846174895763, 0.010999388061463833, + -0.016565343365073204, 0.007001618854701519, 0.002059624530375004, -0.036635179072618484, + -0.016079427674412727, 0.021424511447548866, 0.045057736337184906, -0.014474429190158844, + -0.010579733178019524, 0.01588800549507141, 0.04211278632283211, 0.05336249619722366, + 0.033071789890527725, 0.04458654299378395, -0.02273501455783844, 0.003195270663127303, + -0.01256757415831089, 0.017404654994606972, -0.025061525404453278, -0.021615933626890182, + -0.01390752661973238, 0.00011561229621293023, 0.021350888535380363, -0.024001343175768852, + 0.0066408622078597546, 0.012383515015244484, 0.006202801130712032, 0.05433432757854462, + -0.010668081231415272, -0.0725046694278717, 0.01939249597489834, -0.03165821358561516, + 0.012685372494161129, 0.003843159880489111, -0.023117857053875923, 0.02273501455783844, + 0.025827212259173393, 0.02755000814795494, 0.007528028450906277, -0.010859503410756588, + -0.006994256284087896, -0.014584865421056747, 0.02542964369058609, -0.020864970982074738, + 0.02182208001613617, 0.021939877420663834, 0.007973452098667622, 0.014363993890583515, + 0.002983602462336421, 0.022499417886137962, 0.005680072586983442, -0.02872798778116703, + 0.007995539344847202, -0.019804788753390312, 0.015181217342615128, -0.026445651426911354, + -0.01909800060093403, 0.00956372544169426, 0.024251664057374, 0.04226003214716911, + 0.033395733684301376, 0.007285070139914751, -0.002545541152358055, -0.010874227620661259, + -0.017713874578475952, 0.017463553696870804, 0.011529479175806046, 0.039904072880744934, + 0.011242346838116646, 0.008429919369518757, -0.020114008337259293, 0.002722238190472126, + 0.0021258858032524586, 0.005367171484977007, 0.017537176609039307, -0.036929674446582794, + 0.011249708943068981, 0.018435386940836906, -0.0008549558115191758, 0.03878499194979668, + 0.0029228630010038614, -0.0008954488439485431, -0.02121836505830288, 0.022823363542556763, + 0.03050968237221241, 0.011176085099577904, 0.011846061795949936, -0.005974567495286465, + -0.020202357321977615, -0.023736298084259033, 0.0057684206403791904, 0.014386081136763096, + -0.002186625497415662, -0.005396620836108923, -0.0001776173012331128, -0.0037916230503469706, + -0.006677674129605293, 0.03018573857843876, 0.019893137738108635, 0.006935357116162777, + 0.01792002096772194, -0.013105027377605438, 0.026843219995498657, -0.0065819635055959225, + 0.00044956503552384675, 0.003463997505605221, 0.05000524967908859, -0.013900164514780045, + 0.005411345511674881, 0.004086118191480637, 0.00018946612544823438, 0.01375291682779789, + 0.007156228646636009, -0.006673993077129126, -0.008488818071782589, -0.002335713477805257, + -0.0070862858556210995, 0.004480005241930485, -0.0025068887043744326, 0.01880350522696972, + -0.019569192081689835, -0.01677148975431919, 0.01435663178563118, -0.015004520304501057, + -0.010137990117073059, 0.045882321894168854, 0.01850901171565056, -0.0012580457841977477, + 0.007561159320175648, -0.02361849881708622, -0.03687077388167381, -0.03083362616598606, + 0.012442413717508316, 0.034249767661094666, -0.017772773280739784, 0.08245860040187836, + -0.003541302401572466, 0.01792002096772194, 0.005392939783632755, 0.024398911744356155, + -0.0035836361348628998, 0.034131970256567, -0.021100567653775215, 0.037253618240356445, + 0.005871494300663471, -0.0365762785077095, 0.037872057408094406, 0.019554467871785164, + 0.01675676554441452, 0.007156228646636009, 0.02062937431037426, 0.015902729704976082, + 0.007137822452932596, 0.032482799142599106, 0.01582910679280758, 0.025945009663701057, + 0.018347037956118584, -0.01678621582686901, 0.005772102158516645, 0.016565343365073204, + -0.03584004193544388, 0.02364794909954071, 0.025179322808980942, 0.0013666409067809582, + -0.009865582920610905, 0.019009651616215706, 0.021984051913022995, 0.010329412296414375, + -0.0044836862944066525, -0.039020586758852005, -0.0038689281791448593, -0.01883295550942421, + -0.005624854471534491, 0.0037695360369980335, -0.026975741609930992, -0.012184730730950832, + -0.048886168748140335, 0.01344369724392891, 0.002674382645636797, -0.02248469367623329, + -0.015770208090543747, -0.005300910212099552, 0.051271580159664154, -0.0033333152532577515, + 0.011735625565052032, -0.022867536172270775, 0.02059992589056492, -0.007759943138808012, + -0.0052935476414859295, 0.003068269696086645, 0.005646941717714071, -0.009799321182072163, + 0.026121707633137703, -0.00018302403623238206, -0.01733103021979332, 0.005363490432500839, + 0.0015120478346943855, 0.0006667550769634545, -0.002701991703361273, 0.003349880687892437, + -0.00792927760630846, 0.0032744163181632757, -0.03704747185111046, -0.014945621602237225, + 0.024649232625961304, 0.019907861948013306, -0.023220930248498917, -0.00650465814396739, + -0.003463997505605221, -0.0004518657806329429, 0.0023927718866616488, -0.028624914586544037, + -7.040271157165989e-5, 0.02780032902956009, 0.04582342132925987, -0.006795471999794245, + 0.004686151631176472, -0.017478277906775475, -0.004156060516834259, 0.011978584341704845, + -0.02872798778116703, 0.005569636821746826, 0.014724750071763992, 0.02934642694890499, + 0.000606475630775094, -0.011588378809392452, -0.019201073795557022, -0.002136929426342249, + -0.0290666576474905, -0.025488542392849922, -0.004995371680706739, -0.0009110938990488648, + 0.009217693470418453, -0.02607753314077854, 0.015946904197335243, 0.017124883830547333, + 0.03257114812731743, -0.0008798038470558822, -0.009828770533204079, 0.018405938521027565, + -0.016933463513851166, -0.012501312419772148, -0.01610887609422207, 0.027947574853897095, + -0.01769915036857128, -0.02358905039727688, -0.018435386940836906, 0.006210163235664368, + 0.009902394376695156, -0.0017089913599193096, -0.011131911538541317, -0.00017474137712270021, + 0.0011402477975934744, 0.001169697381556034, 0.015652408823370934, 0.012398239225149155, + -0.05377478897571564, -0.008304758928716183, 0.012361427769064903, 0.015387363731861115, + -0.003336996538564563, -0.009526913054287434, -0.02545909211039543, -0.005893581081181765, + -0.006648224778473377, 0.042053885757923126, 0.008893748745322227, 0.0011761394562199712, + 0.007575883995741606, 0.016874562948942184, 0.0015645046951249242, -0.001269089407287538, + 0.016211949288845062, 0.03109867312014103, 0.013583581894636154, 0.01089631486684084, + -0.0028860510792583227, -0.010712255723774433, -0.026121707633137703, -0.0359283909201622, + -0.019215798005461693, -0.006688717752695084, 0.0030848351307213306, -0.00024065763864200562, + 0.014864635653793812, -0.01392961386591196, 0.016697866842150688, -0.0054702446796, + -0.015740757808089256, 0.03507435321807861, -0.03316013887524605, 0.013738191686570644, + -0.007483854424208403, 0.02722606249153614, 0.02006983384490013, -0.02514987252652645, + -0.03896168991923332, 0.01526956632733345, -0.04037526622414589, 0.02453143335878849, + 0.0025050481781363487, -0.008967372588813305, -0.0016767808701843023, 0.0025731499772518873, + -0.028536565601825714, 0.04108205437660217, 0.01509286928921938, 0.01945139467716217, + -0.014157847501337528, -0.018347037956118584, -0.014341906644403934, -0.01553461141884327, + 0.01979006454348564, 0.008768588304519653, -0.013605669140815735, -0.004969603382050991, + 0.01120553445070982, 0.05003470182418823, -0.0377248115837574, 0.041729941964149475, + 0.017272131517529488, 0.02360377460718155, -0.012913606129586697, -0.01374555379152298, + -0.009652073495090008, 0.016064701601862907, -0.004641977604478598, 0.009784596040844917, + -0.01643282175064087, -0.01856791041791439, 0.01789057068526745, 0.007966089993715286, + -0.007450723554939032, -0.03115757182240486, -0.00024502904852852225, -0.007380781229585409, + -0.004439512267708778, 0.014283007942140102, 0.038873340934515, 0.004840761423110962, + -0.0032983440905809402, -0.007042111828923225, 0.017787497490644455, -0.0014844388933852315, + -0.01672731526196003, -0.03849049657583237, 0.010115903802216053, 0.014113673008978367, + 0.005967204924672842, 0.010653357021510601, -0.026092257350683212, 0.036635179072618484, + -0.01887713000178337, -0.018950752913951874, -0.011014113202691078, 0.007818842306733131, + 0.009549000300467014, 0.015961628407239914, 0.027432208880782127, -0.024693405255675316, + 0.018435386940836906, 0.004494729917496443, 0.015195942483842373, -0.005013777408748865, + 0.0018001006683334708, 0.009880307130515575, -0.037577562034130096, 0.042878471314907074, + 0.011183448135852814, -0.01300931628793478, -0.015932179987430573, 0.025945009663701057, + 0.000494199397508055, -0.0135983070358634, -0.0014283007476478815, 0.017493003979325294, + 0.004612527787685394, 0.0011384072713553905, -0.005790507886558771, -0.010373586788773537, + 0.024973176419734955, -0.01510759349912405, -0.018008369952440262, -0.01134542003273964, + -0.03737141564488411, -0.014246195554733276, 0.02039377950131893, -0.03878499194979668, + -0.0127000967040658, 0.0248259287327528, -0.019672265276312828, -0.010358861647546291, + -0.0395212285220623, -0.0164917204529047, -0.04046361520886421, 0.011190810240805149, + -0.00925450585782528, -0.0033977359998971224, -0.016830390319228172, -0.006725529674440622, + 0.006177032832056284, 0.013811815530061722, 0.01940722018480301, -0.004958559758961201, + 0.020246531814336777, -0.0323355495929718, -0.02308840863406658, -0.015210666693747044, + 0.0007707486511208117, 0.011713538318872452, 0.010189526714384556, 0.048267729580402374, + -0.011301245540380478, 0.016904013231396675, 0.0008029590244404972, 0.0038983775302767754, + -0.022381620481610298, -0.015991078689694405, -0.005484969355165958, 0.02419276535511017, + 0.014054774306714535, 0.03257114812731743, -0.007145185023546219, 0.03595783933997154, + -0.01448915433138609, 0.0334840826690197, 0.019377771764993668, -0.016992362216114998, + -0.0038063479587435722, -0.005381896160542965, -0.0022620896343141794, -0.021925153210759163, + 0.004730326123535633, -0.022646665573120117, 0.04567617550492287, 0.01152211707085371, + -0.0035247369669377804, -0.01178716216236353, -0.01408422365784645, 0.007303475867956877, + -0.04658911004662514, 0.011028837412595749, 0.0028161085210740566, 0.0043106707744300365, + -0.019583918154239655, -0.021321438252925873, 0.04193608835339546, 3.6840636312263086e-5, + 0.018729882314801216, 0.011426405981183052, -0.010726980865001678, -0.020747173577547073, + -0.040551960468292236, 0.020541027188301086, -0.008290034718811512, -0.025827212259173393, + 0.012972504831850529, 0.017875846475362778, 0.013635118491947651, -0.006604050286114216, + 0.012059570290148258, -0.010130628012120724, -0.004148698411881924, 0.02039377950131893, + 0.019613366574048996, 0.04108205437660217, 0.006335323676466942, 0.01587328128516674, + -0.0188624057918787, 0.0008526550373062491, 0.012295166030526161, 0.005168387200683355, + 0.006129177287220955, 0.008636065758764744, -0.004491048865020275, 0.0209091454744339, + 0.001388728036545217, -0.023132583126425743, 0.030362434685230255, 0.026121707633137703, + -0.07503733038902283, 0.027432208880782127, 0.0128620695322752, -0.0173899307847023, + -0.023265104740858078, 0.010373586788773537, -0.019893137738108635, -0.02002565935254097, + -0.021733731031417847, 0.0454111285507679, 0.008937923237681389, -0.024045517668128014, + 0.008319484069943428, -0.0009966815123334527, -0.030067939311265945, 0.02059992589056492, + -0.0277708787471056, -0.01912745088338852, 0.01678621582686901, 0.010049642063677311, + 0.009806683287024498, 0.020099284127354622, 0.022366896271705627, -0.0023817282635718584, + -0.04667745903134346, -0.01730158179998398, 0.018744606524705887, -0.031245918944478035, + 0.007811479736119509, -0.0278445016592741, 0.035162702202796936, 0.0024001342244446278, + -0.021645382046699524, -0.008915835991501808, -0.0017954992363229394, 0.01762552559375763, + -0.00552914384752512, -0.0038468409329652786, -0.014231471344828606, -0.023780470713973045, + -0.01557878591120243, -0.037548113614320755, 0.03896168991923332, -0.026843219995498657, + 0.018641533330082893, 0.023456526920199394, 0.0005604607868008316, -0.027873951941728592, + ], + index: 47, + }, + { + title: "Andy Sutcliffe", + text: "Andy Sutcliffe (born 9 May 1947 in Mildenhall, Suffolk \u2013 died 13 July 2015 in Pluckley, Kent) was a British former racing driver from England. After a promising start in Formula 3, his single attempt at Formula One was at the 1977 British Grand Prix with the RAM team, in a March 761. He failed to pre-qualify.", + vector: [ + 0.023267796263098717, 0.0511021688580513, -0.024106554687023163, -0.03892463073134422, + -0.01671304926276207, 0.06703858822584152, 0.014018148183822632, -0.018312904983758926, + -0.024261880666017532, -0.030537040904164314, -0.052966076880693436, 0.008566214703023434, + 0.017489679157733917, 0.04137877747416496, 0.014654983766376972, 0.05076045170426369, + -0.020456399768590927, 0.02565981261432171, -0.06747350096702576, -0.05697348341345787, + 0.05231371149420738, -0.013629834167659283, -0.04016723856329918, 0.030987486243247986, + -0.011129089631140232, 0.008340992033481598, 0.0024910366628319025, 0.010204900987446308, + -0.008931229822337627, -0.06958593428134918, -0.03373675048351288, 0.012620216235518456, + 0.042994167655706406, -0.003504537045955658, -0.018576959148049355, 0.007020723540335894, + 0.041782625019550323, -0.02499191276729107, -0.040136173367500305, 0.06865397840738297, + -0.02825375273823738, -0.019664239138364792, -0.026902418583631516, 0.005032554268836975, + -0.03280479833483696, 0.006143133156001568, -0.002473562490195036, -0.009785521775484085, + -0.04460955411195755, 0.012480423785746098, 0.006698422599583864, -0.001643540570512414, + 0.005921794101595879, -0.0035627842880785465, 0.0036035573575645685, 0.007304192986339331, + -0.051381755620241165, 0.07741434872150421, -0.020829182118177414, -0.0063722385093569756, + 0.003071566578000784, -0.009645728394389153, 0.002329886192455888, 0.01289980299770832, + -0.0047063701786100864, -0.017101364210247993, 0.02851780690252781, 0.0015416080132126808, + -0.0705178901553154, -0.025488954037427902, 0.015322884544730186, -0.031966038048267365, + 0.0014930687611922622, 0.037029657512903214, 0.0002824986877385527, -0.016992636024951935, + 0.013963784091174603, 0.027570320293307304, -0.08673389256000519, -0.006158665753901005, + 0.003015260910615325, -0.08375164121389389, -0.0876658484339714, 0.0338299460709095, + 0.013070661574602127, -0.04777820035815239, 0.03463764116168022, -0.07586109638214111, + 0.07026936858892441, -0.003555017989128828, -0.013886121101677418, -0.03516574949026108, + 0.02666942961513996, -0.0028405196499079466, 0.019990423694252968, -0.04215540736913681, + 0.0381169356405735, -0.01530735194683075, -0.014748179353773594, -0.02555108442902565, + -0.029574021697044373, -0.014530722983181477, 0.0345444455742836, -0.034109532833099365, + 0.01890314370393753, -0.012938634492456913, -0.028331415727734566, -0.004531628452241421, + 0.07213327288627625, 0.03898676112294197, 0.022832883521914482, -0.020363204181194305, + -0.040384694933891296, -0.01926039159297943, -0.021528147161006927, 0.010616514831781387, + 0.00956029910594225, 0.01515202596783638, 0.007506116759032011, -0.03184177726507187, + 0.008263329975306988, 0.02544235624372959, -0.0425281897187233, 0.015392781235277653, + 0.030583638697862625, -0.031546659767627716, 0.032929059118032455, -0.0004684042069129646, + -0.002426964696496725, -0.013396845199167728, -0.041782625019550323, -0.017412016168236732, + 0.00011776846076827496, 0.008706008084118366, 0.007785703055560589, -0.004764616955071688, + -0.016837310045957565, 0.01789352484047413, 0.037992678582668304, 0.03504148870706558, + -0.014678282663226128, -0.0016814011614769697, 0.0035783168859779835, 0.029698282480239868, + 0.005187879782170057, -0.02508510835468769, 0.0009431184735149145, 0.019710836932063103, + 0.002438614144921303, -0.02360951341688633, -0.02381143718957901, -0.03479296714067459, + -0.021900929510593414, -0.04224860295653343, -0.0007771141245029867, 0.00824779737740755, + -0.062409885227680206, 0.02477445639669895, 0.016992636024951935, -0.006360589060932398, + -0.020207880064845085, 0.0475296787917614, -0.033861011266708374, -0.009785521775484085, + -0.01747414655983448, -0.0070828539319336414, -0.06946167349815369, -0.02350078523159027, + -0.02238244004547596, 0.019710836932063103, -0.034264858812093735, -0.0013445384101942182, + 0.04277671128511429, 0.028300350531935692, 0.005308257415890694, 0.03243201598525047, + -0.02881292626261711, 0.031236007809638977, 0.03190390765666962, 0.0038015975151211023, + -0.0226930920034647, -0.006593578029423952, -0.008527383208274841, 0.009933081455528736, + -0.012915335595607758, -0.025721943005919456, 0.03923528268933296, -0.015136493369936943, + -0.0026774276047945023, -0.027912035584449768, -0.010103940032422543, 0.023081405088305473, + 0.024960847571492195, 0.049331456422805786, 0.011160154826939106, 0.04557257145643234, + -0.031096214428544044, -0.010080641135573387, -0.06790841370820999, -0.008504084311425686, + -0.008651643991470337, -0.029605086892843246, -0.007117802277207375, 0.005844131112098694, + -0.013319182209670544, 0.0008227410726249218, 0.027119874954223633, 0.07095280289649963, + 0.023267796263098717, -0.03111174702644348, 0.028750795871019363, -0.00436853663995862, + -0.0066867731511592865, 0.057874370366334915, 0.00034584247623570263, 0.041565168648958206, + 0.02534916065633297, 0.030956421047449112, 0.03296012431383133, 0.009599130600690842, + 0.0073663233779370785, -0.009140919893980026, -0.009265180677175522, -0.011641664430499077, + 0.07157409936189651, 0.0027240251656621695, -0.037837352603673935, -0.025846203789114952, + 0.006147016305476427, -0.04367759823799133, -0.02545788884162903, 0.02478998899459839, + -0.009979679249227047, 0.02780330739915371, -0.011859120801091194, 0.003654038067907095, + 7.141343667171896e-5, -0.005343205761164427, -0.0011989205377176404, -0.0030230272095650434, + 0.0018619673792272806, 0.009769989177584648, 0.014258903451263905, -0.04547937586903572, + -0.020611725747585297, 0.00453551160171628, 0.024044424295425415, -0.049393586814403534, + -0.05663176625967026, -0.019990423694252968, 0.06359036266803741, -0.01556363981217146, + -0.019446782767772675, -0.027523722499608994, -0.03463764116168022, -0.028269285336136818, + -0.005801416467875242, -0.0028152791783213615, 0.004830630496144295, -0.004578226245939732, + -0.031204942613840103, 0.0011620307341217995, 0.014903505332767963, 0.04405038058757782, + -0.029247837141156197, -0.02611025795340538, -0.039017826318740845, -0.021170899271965027, + -0.017909057438373566, -0.044329967349767685, 0.0431184247136116, 0.004558810498565435, + -0.03662580996751785, -0.0331154502928257, 0.01380069274455309, -0.07058002054691315, + -0.03755776584148407, -0.009265180677175522, -0.053028207272291183, -0.03224562481045723, + -0.028937185183167458, 0.009078789502382278, -0.010189368389546871, -0.05604152753949165, + -0.04019830375909805, 0.0016940213972702622, 0.04175155982375145, 0.002520160283893347, + 0.014592853374779224, 0.016744114458560944, -0.0359734408557415, 0.00603052182123065, + -0.011734860017895699, 0.020021488890051842, 0.01849929615855217, 0.037992678582668304, + -0.050667256116867065, 0.011447506956756115, -0.008612812496721745, -0.01039905846118927, + 0.037682026624679565, -0.00911762099713087, 0.005677156150341034, -0.0037472336553037167, + -0.012356163002550602, 0.002791980281472206, -0.032121364027261734, -0.025100640952587128, + -0.04190688580274582, -0.03243201598525047, -0.0418136902153492, 0.047902461141347885, + -0.020829182118177414, 0.0172722227871418, 0.05796756595373154, -0.008170134387910366, + 0.056600701063871384, -0.01295416709035635, -0.0067023057490587234, -0.025923866778612137, + 0.01865462213754654, 0.0030366182327270508, -0.033239707350730896, -0.0034132832661271095, + 0.08747945725917816, -0.044733814895153046, 0.03789948299527168, 0.04302522912621498, + -0.0284712091088295, 0.007242062594741583, -0.023112470284104347, -0.015524808317422867, + -0.007098386529833078, 0.030940888449549675, 0.0034928875975310802, -0.04619387537240982, + -0.028704198077321053, 0.06014212965965271, -0.013194922357797623, 0.012231902219355106, + 0.05069832131266594, -0.0032288338989019394, -0.02693348377943039, 0.029294434934854507, + -0.03469977155327797, 0.03417166322469711, 0.08281968533992767, -0.01686837524175644, + -0.012457124888896942, -0.022087320685386658, 0.0007096445187926292, 0.006329523865133524, + 0.006853748578578234, 0.009777755476534367, -0.009086555801331997, 0.030071064829826355, + -0.022258179262280464, -0.053028207272291183, -0.0007373119005933404, -0.001959045883268118, + 0.05663176625967026, -0.030443845316767693, 0.005265542771667242, 0.03606663644313812, + 0.009544766508042812, 0.044485293328762054, 0.0063722385093569756, -0.01588982343673706, + 0.018763350322842598, 0.01736541837453842, -0.012441592290997505, 0.03662580996751785, + -0.019508913159370422, 0.01967977173626423, -0.03839652240276337, -0.009055490605533123, + -0.016060682013630867, 0.026187920942902565, -0.017846927046775818, -0.02601706236600876, + -0.0028424609918147326, -0.023221198469400406, -0.06865397840738297, 0.013653133064508438, + -0.030474910512566566, 0.012480423785746098, -0.023283328860998154, -0.012301798909902573, + -0.015229688957333565, 0.043615467846393585, 0.01380069274455309, 0.031966038048267365, + -0.0010688352631404996, -0.022149451076984406, 0.01584322564303875, -0.017039233818650246, + 0.032276690006256104, 0.07200901210308075, 0.03122047521173954, -0.06865397840738297, + -0.017536276951432228, -0.058278217911720276, 0.010189368389546871, -0.04103706032037735, + 0.02927890233695507, -0.05128856003284454, -0.026296649128198624, -0.01310949306935072, + 0.025566617026925087, -0.012394994497299194, 0.005692688282579184, -0.006084885913878679, + -0.0012018328998237848, -0.007552714087069035, 0.02003702148795128, 0.00799927581101656, + -0.00837982352823019, -0.027414994314312935, -0.047591809183359146, -0.012736710719764233, + -0.045292988419532776, 0.017101364210247993, -0.016573257744312286, 0.032929059118032455, + 0.015680134296417236, 0.028378013521432877, 0.0013222104171290994, 0.019291456788778305, + 0.026048127561807632, -0.006376121658831835, -0.03086322546005249, 0.0022036840673536062, + 0.00799927581101656, 0.01579662784934044, -0.005580077413469553, -0.005525713320821524, + -0.0230503398925066, 0.038303326815366745, 0.05100897327065468, 0.06877823919057846, + -0.03709178790450096, 0.008108003996312618, -0.06697645783424377, -0.004123898688703775, + 0.00868270918726921, -0.058122891932725906, 0.012565853074193, -0.008496318012475967, + 0.0017241158057004213, 0.018281839787960052, -0.006756669841706753, -0.013575470075011253, + -0.01660432107746601, 0.04985956475138664, 0.03286692872643471, -0.015276286751031876, + -0.00015204933879431337, 0.02457253262400627, -0.031034084036946297, -0.006247978191822767, + 0.037029657512903214, 0.026700494810938835, 0.03317758068442345, -0.014740413054823875, + -0.015656834468245506, 0.01034469436854124, 0.006570279132574797, -0.01675964705646038, + -0.0198350977152586, -0.01279884111136198, 0.0007285748142749071, -0.028129491955041885, + -0.0648019015789032, 0.02918570674955845, -0.0048112147487699986, 0.04985956475138664, + 0.015369482338428497, -0.00623244559392333, 0.05507851019501686, -0.00039365366683341563, + 0.024401674047112465, 0.021900929510593414, 0.005420868285000324, 0.010546618141233921, + 0.05063619092106819, -0.015082129277288914, -0.02753925509750843, -0.005925677251070738, + -0.04007404297590256, 0.007657559122890234, 0.028533339500427246, 0.029729347676038742, + 0.0025026861112564802, 0.0016969337593764067, -0.03572491928935051, -0.011874653398990631, + 0.01988169550895691, 0.027679046615958214, 0.018421633169054985, 0.014289968647062778, + 0.008993360213935375, 0.041068125516176224, -0.008853567764163017, -0.023376524448394775, + -0.03970126062631607, 0.0020464167464524508, 0.03333290293812752, 0.016946038231253624, + -0.01722562499344349, -0.045044466853141785, 0.09120727330446243, 0.053835902363061905, + 0.015043298713862896, -0.0015755854547023773, 0.027150940150022507, -0.035538531839847565, + -0.028735263273119926, -0.012829906307160854, 0.022444570437073708, -0.02222711406648159, + 0.007238179445266724, 0.026032594963908195, 0.0030074946116656065, 0.008830268867313862, + -0.011028127744793892, -0.027818839997053146, 0.005102450493723154, -0.006275160238146782, + 0.010181602090597153, -0.002246398478746414, 0.021233029663562775, 0.013303649611771107, + -0.0011057251831516623, 0.01640239916741848, -0.04389505460858345, 0.02131069265305996, + 0.017412016168236732, 0.005521830171346664, 0.023423122242093086, -0.018126513808965683, + -0.0073003098368644714, -0.00853514950722456, -0.009195283986628056, 0.018266307190060616, + 0.03622196242213249, -0.018219709396362305, 0.015882058069109917, -0.005894612055271864, + -0.00750999990850687, -0.016588790342211723, -0.0037064605858176947, 0.008760372176766396, + -0.01977296732366085, 0.0489586740732193, -0.010034043341875076, 0.01952444575726986, + 0.01947784796357155, 0.0065663959830999374, -0.011144622229039669, 0.035383205860853195, + -0.013101726770401001, -0.03734030947089195, -0.02892165258526802, 0.025923866778612137, + 0.028067361563444138, 0.03111174702644348, -0.011874653398990631, 0.026436440646648407, + -0.0618196465075016, -0.01305512897670269, 0.04523085802793503, -0.008271096274256706, + -0.014903505332767963, 0.00650426559150219, -0.006313991267234087, -0.010764073580503464, + 0.009971912950277328, 0.03317758068442345, -0.0029337150044739246, -0.0194157175719738, + 0.017101364210247993, 0.009358376264572144, -0.0036501549184322357, 0.05458146706223488, + -7.911905413493514e-5, 0.009870951063930988, -0.00901665911078453, -0.009956380352377892, + -0.0201302170753479, -0.028191622346639633, -0.02059619314968586, -0.03215242922306061, + -0.02626558393239975, 0.022164983674883842, -0.025271497666835785, 0.010305862873792648, + 0.014173474162817001, 0.014740413054823875, -0.02472785860300064, -0.005428634583950043, + 0.013963784091174603, 0.02249116823077202, -0.029558489099144936, -0.011012595146894455, + -0.028222687542438507, -0.040446825325489044, -0.0010639813262969255, -0.012022212147712708, + -0.013956017792224884, -0.012938634492456913, -0.025022977963089943, -0.02350078523159027, + 0.018732285127043724, -0.025333628058433533, 0.02064279094338417, -0.015377248637378216, + 0.03404740244150162, 0.006341173313558102, 0.030801095068454742, -0.002395899500697851, + 0.007610961329191923, 0.009086555801331997, 0.03258734196424484, 0.026079192757606506, + 0.03050597570836544, 0.010865035466849804, -0.025209367275238037, 0.019229326397180557, + -0.0104534225538373, 0.042900972068309784, 0.04902080446481705, -0.010927165858447552, + 0.02115536667406559, -0.01305512897670269, -0.025411291047930717, -0.0014746238011866808, + -0.005149048287421465, 0.011657197028398514, 0.017800331115722656, -0.0003443862951826304, + -0.008488551713526249, 0.011610599234700203, -0.024339543655514717, 0.028688665479421616, + -0.020363204181194305, -0.03320864215493202, -0.009203050285577774, 0.02371824160218239, + 0.012589151971042156, 0.047094766050577164, -0.017334353178739548, -0.03730924427509308, + 0.03473083674907684, -0.017443081364035606, -0.03504148870706558, -0.05830928310751915, + -0.005836364813148975, 0.03420272842049599, 0.00113387790042907, -0.022366907447576523, + 0.018934208899736404, 0.004131664987653494, -0.025473421439528465, 0.03351929411292076, + -0.03224562481045723, 0.023625046014785767, -0.011377610266208649, 0.006698422599583864, + 0.0002854110498446971, -0.0034928875975310802, 0.00948263704776764, 0.01814204640686512, + -0.027787774801254272, 0.021077703684568405, 0.02918570674955845, -0.007401271723210812, + -0.0374024398624897, 0.023873567581176758, 0.022196048870682716, -0.01109025813639164, + 0.039421673864126205, -0.04001191258430481, -0.013668665662407875, -0.012612449936568737, + -0.018437165766954422, -0.001196008175611496, -0.0659823790192604, 0.032618407160043716, + 0.01001851074397564, -0.017101364210247993, -0.0107796061784029, -0.010865035466849804, + -0.021341757848858833, 0.0042442758567631245, -0.029729347676038742, -0.00873707327991724, + -0.045510441064834595, -0.03202816843986511, -0.026809222996234894, -0.008706008084118366, + -0.0005116041866131127, 0.0032754316926002502, 0.02595493197441101, -0.04249712452292442, + -0.02171453833580017, 0.007370206527411938, -0.017054766416549683, 0.0030230272095650434, + -0.021497083827853203, -0.022801818326115608, 0.0020425335969775915, -0.013280350714921951, + -0.06163325533270836, 0.010026277042925358, 0.028393546119332314, 0.022149451076984406, + 0.028843991458415985, 0.002762856660410762, -0.003426874289289117, -0.007704156916588545, + -0.030925355851650238, -0.04265245050191879, -0.005642207805067301, -0.015858758240938187, + -0.003688986413180828, 0.0011630015214905143, -0.013101726770401001, -0.015967486426234245, + -0.01762947253882885, 0.0091719850897789, -0.030490443110466003, -0.012387228198349476, + 0.054239749908447266, 0.012053277343511581, -0.008473019115626812, -0.014491891488432884, + 0.02084471471607685, -0.04255925491452217, 0.01809544861316681, 0.012992998585104942, + 0.0215592123568058, 0.00848078541457653, -0.007424570620059967, 0.014585087075829506, + -0.00017061561811715364, -0.009505935944616795, -0.04103706032037735, -0.04081960394978523, + -0.028191622346639633, 0.01860802434384823, -0.0005732490681111813, 0.0222737118601799, + -0.00026284027262590826, -0.013474508188664913, -0.05321459844708443, -0.02407548949122429, + -0.020891312509775162, 0.012635748833417892, -0.027880970388650894, -0.026389844715595245, + -0.023842502385377884, 0.011385376565158367, -0.0048927608877420425, -0.00485392939299345, + 0.05315246805548668, 0.01379292644560337, -0.007168283220380545, -0.0025279265828430653, + 0.011517403647303581, 0.009140919893980026, 0.020922377705574036, -0.013031830079853535, + 0.013047362677752972, 0.01870121993124485, 0.007708040066063404, 0.04743648320436478, + 0.021792201325297356, 0.02611025795340538, 3.3370764867868274e-5, -0.0010086465626955032, + -0.014755945652723312, 0.03761989623308182, -0.05100897327065468, 0.03907995671033859, + -0.011098024435341358, 0.02084471471607685, -0.015439379028975964, -0.016107279807329178, + -0.017505211755633354, 0.021838799118995667, 0.023190133273601532, 0.02146601863205433, + -0.01568789966404438, -0.012045511044561863, 0.019788499921560287, -0.04880334809422493, + 0.018048850819468498, 0.007443986367434263, 0.012550320476293564, -0.016728581860661507, + -0.01823524199426174, -0.015804395079612732, -0.0018163403728976846, -0.007704156916588545, + 0.02458806522190571, -0.019508913159370422, 0.023795904591679573, -0.01716349460184574, + -0.02749265730381012, 0.023174600675702095, 0.03317758068442345, -0.012837672606110573, + -0.007020723540335894, -0.007506116759032011, -0.01738095097243786, -0.0018483763560652733, + -0.01767607033252716, 0.006733370944857597, -0.04436103254556656, 0.02693348377943039, + -0.0072847772389650345, 0.018079916015267372, 0.012356163002550602, -0.01200667954981327, + 0.021450486034154892, -0.0026055893395096064, 0.01860802434384823, -0.04007404297590256, + 0.048927608877420425, -0.01584322564303875, -0.028082894161343575, 0.0007853658171370625, + -0.044640619307756424, -0.03650154918432236, -0.007044022437185049, 0.01615387760102749, + 0.01477147825062275, -0.005576194263994694, 0.0006130512920208275, 0.031298138201236725, + 0.027197537943720818, -0.051226429641246796, -0.02708880975842476, -0.026545168831944466, + -0.019244858995079994, -0.010733009316027164, 0.032276690006256104, -0.012076576240360737, + 0.029372097924351692, -0.019089533016085625, 0.0162004753947258, -0.023128002882003784, + -0.024261880666017532, 0.009948614053428173, -0.0396701954305172, 0.03209029883146286, + 0.027834372594952583, -0.012457124888896942, -0.018716752529144287, -0.013280350714921951, + 0.035134684294462204, 0.01644899696111679, -0.009886483661830425, -0.00539368623867631, + 0.019943825900554657, 0.0008703095372766256, 7.226287561934441e-5, 0.017971187829971313, + -0.06147792935371399, -0.03417166322469711, 0.01487244013696909, 0.010585449635982513, + -0.011696028523147106, -0.051630277186632156, -0.05048086494207382, 0.020223412662744522, + -0.0015056888805702329, 0.0023900747764855623, -0.012961933389306068, -0.006123717408627272, + -0.006018872372806072, -0.021077703684568405, -0.05905484780669212, -0.0034249327145516872, + 0.008185666985809803, -0.0183439701795578, 0.01387058850377798, 0.014445293694734573, + -0.03581811487674713, -0.034979358315467834, -0.011866887100040913, 0.013948251493275166, + -0.03693646192550659, -0.03504148870706558, 0.0008877837099134922, 0.00468695443123579, + -0.01809544861316681, -0.010290330275893211, -0.020363204181194305, 0.023190133273601532, + 0.00858174730092287, 0.01392495259642601, -0.01428220234811306, -0.006046054419130087, + -0.002747324062511325, -0.008014808408915997, 0.012076576240360737, 0.0010931049473583698, + -0.004201561212539673, 0.004492796957492828, -0.046939440071582794, 0.08201199024915695, + -0.05231371149420738, 0.003281256416812539, 0.04762287437915802, 0.04501340165734291, + -0.0649261623620987, 0.007544947788119316, 0.03336396813392639, 0.019291456788778305, + -0.009537000209093094, 0.032276690006256104, -0.055327028036117554, -0.004422900732606649, + -0.015470444224774837, -0.04721902683377266, 0.018825480714440346, -0.04460955411195755, + -0.009700092487037182, 0.03327077254652977, -0.026250051334500313, 0.013637600466609001, + -0.00468695443123579, 0.000857689359690994, 0.019229326397180557, 0.014934570528566837, + -0.027011146768927574, -0.015175324864685535, -0.00512186624109745, -0.003102631773799658, + -0.008317693136632442, -0.007525532506406307, 0.02392016537487507, 0.025628747418522835, + -0.0532456636428833, 0.001654219115152955, -0.032214559614658356, 0.032214559614658356, + -0.04563470184803009, -0.014554021880030632, 0.013684198260307312, -0.024805521592497826, + -0.0010241791605949402, -0.00517623033374548, 0.04498233646154404, -0.008278862573206425, + -0.01446082629263401, -0.0050053722225129604, 0.007847833447158337, 0.021590277552604675, + -0.03721604868769646, 0.004104482941329479, -0.03345716372132301, 0.009078789502382278, + -0.02350078523159027, 0.004178262315690517, 0.005549012217670679, -0.01644899696111679, + -0.047343287616968155, -0.03246308118104935, -0.02524043247103691, -0.007055671885609627, + 0.024292945861816406, -0.008729306980967522, -0.018778882920742035, 0.003399692242965102, + 0.005618908908218145, 0.022444570437073708, 0.0269800815731287, 0.026995614171028137, + -0.02892165258526802, -0.027011146768927574, 0.011820289306342602, -0.0063062249682843685, + 0.006574162282049656, -0.007634260226041079, -0.061198342591524124, 0.01078737247735262, + 0.02039426937699318, -0.018157579004764557, -0.03519681468605995, 0.00042253456194885075, + -0.019804032519459724, -0.0037588831037282944, -0.018079916015267372, 0.009645728394389153, + -0.003405516967177391, -0.007913846522569656, -0.008938996121287346, -0.006853748578578234, + -0.03184177726507187, 0.025022977963089943, -0.016309203580021858, -0.015245221555233002, + -0.03821013122797012, 0.04286990687251091, -0.03305331990122795, -0.008123536594212055, + -0.018017785623669624, 0.007948795333504677, -0.012426059693098068, -0.03050597570836544, + -0.01599855162203312, -0.02070492133498192, -0.014911271631717682, -0.029869141057133675, + -0.019943825900554657, 0.0030133193358778954, -0.0004089435678906739, 0.04016723856329918, + -0.0013115317560732365, 0.00666735740378499, 0.013886121101677418, -0.041720494627952576, + -0.004760734271258116, 0.03404740244150162, -0.017815863713622093, 0.003498712321743369, + 0.013575470075011253, -0.004236509557813406, -0.00021150997781660408, -0.012138706631958485, + 0.029962336644530296, -0.01055438444018364, -0.04125451669096947, -0.03519681468605995, + 0.031158344820141792, 0.061136212199926376, 0.011975615285336971, 0.04973530396819115, + 0.01443752832710743, 0.008317693136632442, -0.004488913808017969, 0.04405038058757782, + -0.007824534550309181, -0.009350609965622425, -0.021838799118995667, -0.007975976914167404, + -0.029263369739055634, -0.02213391847908497, 4.213817373965867e-5, 0.009894249960780144, + -0.00024148299416992813, -0.029698282480239868, -0.0017037292709574103, -0.005362621508538723, + 0.006888696923851967, -0.029294434934854507, 0.049486782401800156, 0.00661687646061182, + 0.0003523952909745276, -0.022087320685386658, -0.011385376565158367, 0.013761861249804497, + -0.0043918355368077755, 0.008511850610375404, 0.02263096161186695, 0.01216200552880764, + -0.015905356034636497, 0.013031830079853535, 0.005894612055271864, 0.0033220292534679174, + 0.0020425335969775915, -0.004519979003816843, 0.002442497294396162, 0.020456399768590927, + -0.021217497065663338, 0.009777755476534367, -0.009265180677175522, 0.0011717386078089476, + 0.05448827147483826, -0.00671783834695816, 0.0012134823482483625, -0.011509637348353863, + -0.012348396703600883, -0.017334353178739548, 0.003479296574369073, 0.030599171295762062, + 0.015579172410070896, -0.03836545720696449, -0.00047325811465270817, -0.0069857751950621605, + 0.004881111439317465, -0.0007581837708130479, -0.014678282663226128, -0.015058830380439758, + -0.0033977506682276726, 0.04150303825736046, -0.03162432089447975, 0.016697516664862633, + -0.004298639949411154, -0.05405335873365402, -0.009537000209093094, -0.00044753230758942664, + 0.012154239229857922, -0.005362621508538723, 0.01275224331766367, -0.009443805553019047, + -0.019400184974074364, -0.002623063512146473, -0.0021473783999681473, 0.048213109374046326, + -0.03777522221207619, -0.046318136155605316, -0.0037161684595048428, -0.05318353325128555, + -0.04193795099854469, -0.013707497157156467, -0.01014277059584856, -0.007156633771955967, + -0.011859120801091194, -0.031810712069272995, 0.014476358890533447, 0.02300374209880829, + 0.010880568064749241, -0.01696157082915306, -0.01738095097243786, 0.012845438905060291, + 0.0008096354431472719, 0.00021102458413224667, -0.017132429406046867, -0.02186986431479454, + 0.01905846782028675, 0.0026560702826827765, -0.016573257744312286, 0.016790712252259254, + 0.04672198370099068, -0.008845801465213299, -0.017877992242574692, -0.005098567344248295, + 0.02075151912868023, -0.03976339101791382, 0.0070673213340342045, -0.007968210615217686, + 0.012177538126707077, -0.0073507907800376415, 0.0008795320172794163, 0.011556235142052174, + -0.03039724752306938, -0.02309693768620491, -0.024510402232408524, 0.03392314165830612, + 0.019788499921560287, -0.02514723874628544, 0.03699859231710434, -0.008069172501564026, + -0.011602832935750484, 0.028424611315131187, -0.03780628740787506, -0.003339503426104784, + 0.01035246066749096, 0.01338907890021801, -0.005941209848970175, 0.018514828756451607, + -0.009032191708683968, -0.012969699688255787, 0.0036676290910691023, -0.04088173434138298, + -0.00020253020920790732, 0.007785703055560589, -0.014484125189483166, -0.0016814011614769697, + -0.009039958007633686, 0.04358440265059471, -0.011268883012235165, 0.024463804438710213, + -0.012783308513462543, -0.00869047548621893, -0.02626558393239975, 0.002232807455584407, + 0.018639089539647102, -0.01952444575726986, 0.005017021670937538, 0.005094684194773436, + 0.006690656300634146, 0.011478572152554989, 0.007696390617638826, -0.007700273767113686, + 0.006383887957781553, 0.00879143737256527, 0.014095811173319817, -0.001004763413220644, + 0.007902197539806366, -0.023842502385377884, -0.030086597427725792, -0.007117802277207375, + 0.013070661574602127, 0.011998913250863552, -0.012829906307160854, 0.0241220872849226, + -0.03215242922306061, -0.02079811692237854, 0.021761136129498482, 0.006011106073856354, + 0.009669027291238308, 0.04159623384475708, -0.02100004069507122, -0.00581306591629982, + -0.00367927853949368, -0.01814204640686512, -0.041005995124578476, 0.046535592526197433, + 0.011579534038901329, 0.0324009507894516, 0.02162134274840355, 0.0019075942691415548, + 0.027787774801254272, -0.015136493369936943, 0.019027404487133026, 0.006779968738555908, + -0.03010213002562523, -0.02575300820171833, -0.021062171086668968, -0.006294575985521078, + -0.011851354502141476, -0.007292543537914753, 0.0059373266994953156, 0.009459338150918484, + -0.0011513520730659366, -0.03137579932808876, -0.05417761951684952, -0.020192347466945648, + -0.005028671119362116, 0.021481551229953766, 0.012728944420814514, -0.0720711424946785, + 0.0410991907119751, 0.013637600466609001, -0.009630195796489716, 0.02207178808748722, + 0.0068343328312039375, 0.0011552352225407958, 0.004279224202036858, -0.018219709396362305, + 0.04296310245990753, 0.0057237534783780575, 0.0006989658577367663, -0.012977465987205505, + -0.01359100267291069, 0.02253776602447033, -0.008845801465213299, -0.002359009813517332, + -0.021481551229953766, -0.01188241969794035, 0.02390463277697563, -0.008845801465213299, + -0.011688262224197388, 0.029977869242429733, -0.02646750584244728, 0.009777755476534367, + -0.024712326005101204, -0.032214559614658356, 0.002492978237569332, -0.01579662784934044, + -0.02140388824045658, 0.0029045913834124804, -0.020471932366490364, -0.031453464180231094, + 0.006150899454951286, 0.026591766625642776, -0.014064745977520943, 0.0031569956336170435, + -0.026172388345003128, 0.027275200933218002, 0.013901653699576855, 0.03907995671033859, + -0.020627258345484734, 0.02054959535598755, -0.032773733139038086, 0.04743648320436478, + -0.009366142563521862, 0.032618407160043716, -0.007564363535493612, -0.010135005228221416, + 0.003980222158133984, 0.02390463277697563, 0.0010426240041851997, -0.003984105307608843, + -0.015633536502718925, -0.025287030264735222, -0.004997605923563242, 0.032680537551641464, + 0.005358738359063864, 0.018934208899736404, -0.02718200534582138, -0.0027143172919750214, + 0.012356163002550602, -0.009047724306583405, 0.03041278012096882, 0.026840288192033768, + -0.01803331822156906, 0.03603557124733925, 0.03157772496342659, -0.0022638726513832808, + 0.006112067960202694, 0.014491891488432884, -0.03055257350206375, 0.0027803308330476284, + -0.015027766115963459, 0.014856907539069653, -0.006578045431524515, -0.036967527121305466, + 0.01310949306935072, -0.0662309005856514, -0.01870121993124485, 0.02314353547990322, + 0.03358142450451851, 0.006061587017029524, 0.017645005136728287, -0.011082491837441921, + 0.027119874954223633, -0.007168283220380545, -0.031204942613840103, 0.012379461899399757, + -0.01742754876613617, 0.01295416709035635, -0.0007931320578791201, -0.05784330517053604, + -0.03404740244150162, 0.003339503426104784, 0.007774053607136011, -0.014647217467427254, + 0.015478210523724556, -0.0066207596100866795, -0.0226930920034647, -0.017645005136728287, + 0.009839885868132114, 0.03485509753227234, -0.023314394056797028, -0.036315158009529114, + 0.004659772384911776, 0.007005190942436457, -0.00016005832003429532, -0.008519616909325123, + 0.016014084219932556, -0.009459338150918484, 0.016014084219932556, -0.021683473140001297, + -0.009513702243566513, -0.01595195382833481, -0.0024444388691335917, -0.0042947567999362946, + -0.014484125189483166, 0.0012484306935220957, -0.002273580525070429, -0.017753733322024345, + -0.0021473783999681473, -0.05277968943119049, -0.005036437418311834, 0.007758521009236574, + -0.022366907447576523, 0.005999456625431776, -0.006915878504514694, -0.008030341006815434, + -0.02247563563287258, -0.002617238787934184, -0.009785521775484085, -0.03789948299527168, + 0.009086555801331997, -0.03463764116168022, 0.046380266547203064, 0.03839652240276337, + 0.011564001441001892, 0.03336396813392639, 0.040136173367500305, -0.0022755220998078585, + -0.003252132795751095, -0.0018619673792272806, 0.016138345003128052, 0.009443805553019047, + 0.030133193358778954, -0.014538489282131195, 0.007428453769534826, -0.016309203580021858, + 0.028129491955041885, 0.004395718686282635, -0.003859844757243991, 0.017505211755633354, + -0.011750392615795135, -0.028129491955041885, 0.017256690189242363, 0.012029978446662426, + -0.0104534225538373, 0.006430485751479864, 0.015835460275411606, 0.02146601863205433, + -0.015229688957333565, -0.009249648079276085, -0.03510361909866333, -0.016790712252259254, + 0.03003999963402748, 0.04532405361533165, -0.016946038231253624, -0.018918676301836967, + -0.03994978219270706, -0.02488318458199501, -0.003209418151527643, 0.009948614053428173, + 0.02028554119169712, 0.025877268984913826, -0.007840067148208618, -0.0042287432588636875, + -0.012837672606110573, -0.008348758332431316, -0.019912760704755783, -0.007587662432342768, + -0.03342609852552414, -0.011074725538492203, 0.002941481303423643, 0.01481807604432106, + 0.014755945652723312, -0.013093960471451283, 0.009568065404891968, 0.0018998279701918364, + 0.024960847571492195, -0.025333628058433533, 0.02503851056098938, -0.00490441033616662, + -0.016014084219932556, 0.003155054058879614, 0.0010241791605949402, -0.03041278012096882, + -0.0008688533562235534, -0.010391292162239552, 0.026343246921896935, -0.00709062023088336, + 0.017707135528326035, -0.016681984066963196, 0.012767775915563107, -0.015920888632535934, + 0.028331415727734566, 0.00027279084315523505, 0.02222711406648159, 0.008053639903664589, + -0.03101855143904686, 4.659772457671352e-5, -0.007630377076566219, -0.03296012431383133, + 0.04451635852456093, 0.01874781772494316, 0.012394994497299194, -0.010958231054246426, + -0.027275200933218002, -0.030474910512566566, -0.028067361563444138, 0.02753925509750843, + 0.022506700828671455, 0.0035064786206930876, 0.010841736570000648, -0.02253776602447033, + 0.04355333745479584, -0.025939399376511574, -0.03342609852552414, -0.0453861840069294, + -0.016340268775820732, -0.003838487435132265, -0.03317758068442345, 0.023019274696707726, + 0.018048850819468498, -0.012426059693098068, -0.007723572663962841, -0.030335117131471634, + 0.0023900747764855623, -0.007078970782458782, 0.014856907539069653, 0.028036296367645264, + 0.012472657486796379, -0.007059555035084486, 0.00327737326733768, -0.043460141867399216, + -0.02677815780043602, -0.017101364210247993, 1.473622614867054e-5, -0.002339594066143036, + 0.00019015268480870873, 0.010430123656988144, 0.018514828756451607, 0.02298820950090885, + 0.011835821904242039, -0.008286628872156143, 0.01001851074397564, -0.016883907839655876, + -0.008154601790010929, -0.003380276495590806, 0.011532936245203018, 0.0060227555222809315, + -0.010034043341875076, -0.003292905865237117, 0.008768138475716114, 0.02253776602447033, + 0.00787889864295721, -0.01997489109635353, -0.038769304752349854, -0.01655772514641285, + -0.027414994314312935, 0.003714226884767413, -0.0030424429569393396, -0.032773733139038086, + -0.012014445848762989, 0.0295429565012455, 0.03106514923274517, -0.03693646192550659, + -0.0034967707470059395, -0.01408027857542038, 0.03566278889775276, -0.007657559122890234, + -0.007762404158711433, 0.014002615585923195, -0.010282563976943493, -0.0070828539319336414, + 0.0016066506505012512, -0.03050597570836544, 0.005145165137946606, 0.016216007992625237, + -0.017349885776638985, -0.015835460275411606, -0.01818864420056343, -0.00907102320343256, + -0.04370866343379021, -0.036253027617931366, -0.008309926837682724, 0.018359502777457237, + 0.016169410198926926, -0.026545168831944466, -0.010088407434523106, -0.004807331599295139, + ], + index: 48, + }, + { + title: "Perry Greeley Holden", + text: "Perry Greeley Holden (October 13, 1865 \u2013 October 8, 1959) was the first professor of agronomy in the United States.", + vector: [ + -0.042185183614492416, -0.013899726793169975, -0.01151136215776205, 0.005064860451966524, + -0.02779945358633995, -0.026771901175379753, -0.0301878172904253, -0.01803770661354065, + 0.024897312745451927, 0.042935021221637726, -0.05340494215488434, 0.0007897571776993573, + -0.009067454375326633, 0.00041939577204175293, 0.01438573095947504, 0.026466412469744682, + -0.01741284504532814, 0.030215589329600334, -0.03271504119038582, -0.003122578375041485, + 0.06187530606985092, -0.06559671461582184, -0.007234523072838783, 0.04335159435868263, + 0.06726301461458206, 0.002051633084192872, -0.00758166890591383, 0.003648504614830017, + 0.05215521901845932, 0.03235400840640068, 0.017607245594263077, 0.014607904478907585, + 0.0387137234210968, 0.016413064673542976, -0.006477744784206152, -0.04346268251538277, + -0.04274061694741249, -0.01745450124144554, 0.008616164326667786, 0.022522833198308945, + -0.008956367149949074, 0.0156493429094553, -0.013024918735027313, 0.041963011026382446, + 0.00763721251860261, 0.034492429345846176, -0.011053129099309444, -0.014031642116606236, + -0.029382439330220222, 0.0384637787938118, -0.015107794664800167, 0.018884742632508278, + 0.0007146868738345802, -0.030076730996370316, -0.005648065824061632, 1.2102649407097488e-6, + 0.009324342012405396, 0.10842064768075943, -0.011858507990837097, -0.024105818942189217, + -0.05626542866230011, 0.010004748590290546, -0.04662865400314331, -0.005960497073829174, + 0.04271284490823746, 0.0024734153412282467, -0.012670829892158508, 0.01569100096821785, + -0.013892783783376217, 0.028715919703245163, 0.03477014601230621, -0.03474237397313118, + 0.013837240636348724, 0.04865598678588867, 0.023841988295316696, -0.023744788020849228, + 0.041574206203222275, -0.009664544835686684, 0.005172475706785917, -0.0055959937162697315, + -0.06926257163286209, -0.035075634717941284, 0.018093250691890717, 0.0241752490401268, + -0.012622229754924774, -0.027507850900292397, 0.021273108199238777, -0.042851705104112625, + 0.015191109851002693, 0.014677333645522594, -0.0012037288397550583, 0.07120659202337265, + 0.01182379387319088, 0.011615505442023277, -0.019342975690960884, 0.03699187934398651, + -0.02935466729104519, -0.009129940532147884, 0.057487379759550095, 0.0019231889164075255, + -0.03510340675711632, -0.006328471936285496, -0.006224328186362982, -0.01509390864521265, + -0.03282612934708595, 0.03235400840640068, -0.05684863403439522, 0.01967623643577099, + 0.046212077140808105, 0.05887596681714058, 0.025661034509539604, -0.030687708407640457, + 0.0001145581845776178, 0.023355985060334206, 0.00043349858606234193, 0.01913468912243843, + -0.026494184508919716, 0.0004873062134720385, -0.013233206234872341, 0.010074177756905556, + -0.02585543505847454, -0.022564491257071495, -0.0038255490362644196, 0.02182854153215885, + 0.014038585126399994, -0.04318496584892273, -0.022203460335731506, 0.0026764958165585995, + 0.022522833198308945, -0.04857267066836357, -0.026799673214554787, 0.01896805875003338, + 0.01240005623549223, -0.006467330269515514, -0.013670610263943672, 0.03668639063835144, + 0.08925818651914597, 0.044795721769332886, 0.0408521443605423, 0.046434253454208374, + -0.021509166806936264, 0.024466851726174355, -0.05176641419529915, 0.00439833989366889, + -0.018357081338763237, -0.041963011026382446, -0.06598551571369171, 0.02196739986538887, + -0.021286994218826294, 0.026410868391394615, -0.012879117392003536, -0.002905612112954259, + 0.0632638931274414, -0.03054885007441044, -0.013510922901332378, -0.052488479763269424, + 0.027785567566752434, -0.021314766258001328, -0.06742963939905167, -0.02577212080359459, + -0.020217783749103546, 0.02461959607899189, -0.012122338637709618, 0.03815829008817673, + -0.012233425863087177, -0.022383974865078926, -0.0204677302390337, 0.014649561606347561, + 0.00027099085855297744, -0.002839654451236129, 0.014843964017927647, -0.04062997177243233, + 0.02854928933084011, -0.0314653143286705, -0.05993128940463066, 0.004929473623633385, + 0.037908345460891724, 0.00917159765958786, -0.02439742162823677, 0.0060438122600317, + -0.03185411915183067, 0.013663667254149914, 0.024244677275419235, 0.014059414155781269, + -0.001092642080038786, 0.009886718355119228, 0.026813559234142303, 0.08120439946651459, + -0.015746543183922768, 0.0014875206397846341, -0.03390922397375107, 0.00655411696061492, + -0.056820861995220184, 0.022731121629476547, 0.023175468668341637, -0.005044031888246536, + -0.04940582066774368, -0.013726153410971165, -0.06065335124731064, -0.008671707473695278, + -0.020120583474636078, -0.033881451934576035, -0.011129501275718212, 0.008518963120877743, + -0.02502228505909443, -0.007036649622023106, 0.0050544459372758865, 0.07148430496454239, + 0.0011082636192440987, 0.010442152619361877, 0.027646709233522415, -0.04446246102452278, + 0.008824451826512814, 0.0407688282430172, -0.007533068768680096, 0.025133371353149414, + 0.005672365892678499, -0.008879994973540306, -0.017621131613850594, 3.1527908959105844e-6, + 0.005585579667240381, -0.003301358548924327, -0.012990203686058521, 0.005925782490521669, + 0.002213055966421962, -0.03999122232198715, -0.01971789449453354, 0.011053129099309444, + -0.010011691600084305, -0.029910100623965263, -0.03107651136815548, -0.014982822351157665, + -0.030882110819220543, 0.05732075124979019, -0.03746400028467178, 0.03915807232260704, + -0.03488123044371605, 0.0276328232139349, 0.0042212954722344875, -0.03093765303492546, + 0.010449095629155636, 0.013254035264253616, -0.04704522714018822, -0.023106038570404053, + -0.014274644665420055, 0.03788057342171669, -0.03743622824549675, -0.06926257163286209, + -0.01380946859717369, 0.02130088023841381, 0.028799233958125114, -0.04610099270939827, + 0.014087185263633728, -0.029632383957505226, 0.016565807163715363, -0.007421982008963823, + 0.034020308405160904, -0.009935319423675537, 0.02227288857102394, 0.005040560383349657, + -0.03252064064145088, 0.032242923974990845, 0.00693944888189435, -0.005335634108632803, + -0.025605490431189537, -0.02152305282652378, 0.0033308661077171564, 0.026577498763799667, + 0.01702404022216797, -0.018662570044398308, -0.010678211227059364, -0.013122119940817356, + 0.013184606097638607, 0.05184973031282425, 0.03210406377911568, 0.00037860614247620106, + -0.028938092291355133, 0.012483370490372181, -0.007130379322916269, 0.01233062706887722, + -0.020259441807866096, -0.04462909325957298, 0.017954392358660698, -0.04462909325957298, + -0.006519402377307415, -0.003013227367773652, -0.020453844219446182, -0.02466125413775444, + 0.024230793118476868, -0.04865598678588867, -0.023925304412841797, -0.009553458541631699, + -0.0039053927175700665, 0.0410187728703022, -0.0006226931582204998, -0.0008335844031535089, + 0.000454327353509143, -0.02480011247098446, 0.006595774553716183, -0.04201855510473251, + 0.08703645318746567, 0.011178101412951946, 0.029465753585100174, 0.00489475904032588, + 0.003940107300877571, -0.04918364807963371, -0.021995171904563904, -0.03563106805086136, + 0.018843086436390877, -0.040602199733257294, 0.0006300700479187071, 0.0037838916759938, + 0.04857267066836357, 0.0230227243155241, 0.002466472564265132, 0.009254912845790386, + 0.03565884009003639, 0.09120219945907593, -0.006613131612539291, -0.02907695062458515, + -0.05015565827488899, -0.007352552842348814, -0.009567344561219215, -0.0528772808611393, + 0.010317179374396801, 0.006463858764618635, -0.011761306785047054, 0.008414819836616516, + 0.01363589521497488, 0.0132401492446661, -0.049211420118808746, -0.051072120666503906, + 0.017246214672923088, -0.02073156088590622, 0.04190746694803238, -0.06965138018131256, + -0.010393551550805569, 0.034325797110795975, -0.028521517291665077, -0.0014319773763418198, + -0.0217868834733963, -0.011094787158071995, -0.011525248177349567, 0.030965425074100494, + 0.040907688438892365, -0.022745007649064064, 0.08986916393041611, 0.02913249470293522, + 0.00431849667802453, 0.0012627436080947518, 0.0005858088843524456, -0.0013989984290674329, + -0.0011881073005497456, -0.0013304371386766434, 0.0065923030488193035, 0.02231454662978649, + -0.028146598488092422, -0.009296569973230362, 0.02793831191956997, 0.010247750207781792, + 0.005995211657136679, -0.03682525083422661, 0.04848935455083847, 0.03646421805024147, + -0.008317618630826473, 0.03077102266252041, -0.0032024220563471317, 0.012587514705955982, + 0.01816267892718315, -0.010608782060444355, -0.027507850900292397, 0.03210406377911568, + 0.010532409884035587, -0.0004651756607927382, -0.01120587345212698, -0.032603953033685684, + 0.007505296729505062, 0.01674632355570793, -0.022661691531538963, -0.02103704959154129, + 0.02678578719496727, 0.029465753585100174, 0.011122558265924454, -0.00138424476608634, + -0.04504566639661789, -0.06709638237953186, 0.008435647934675217, 0.00738032441586256, + 0.007880214601755142, -0.05698749050498009, -0.024786226451396942, 0.004703828599303961, + 0.0133442934602499, 0.009699259884655476, 0.027466192841529846, 0.007845500484108925, + 0.02761893719434738, -0.012858288362622261, 0.05604325234889984, -0.006061169318854809, + 0.020134469494223595, -0.06193085014820099, -0.00915076956152916, 0.019523492082953453, + 0.013552580960094929, -0.004495541099458933, 0.003060092218220234, 0.054654669016599655, + 0.021273108199238777, 0.020176127552986145, -0.005818167235702276, 0.01025469321757555, + -0.038519322872161865, 0.01873200014233589, 0.009935319423675537, -0.0026851745788007975, + 0.01603814586997032, 0.02064824476838112, 0.023175468668341637, 0.033353790640830994, + 0.028438201174139977, 0.029271353036165237, -0.026147037744522095, -0.016829639673233032, + 0.010067234747111797, -0.019995611160993576, 0.026758015155792236, 0.011421103961765766, + 0.0006795383524149656, 0.0436570830643177, -0.013969155959784985, 0.020745446905493736, + 0.03310384601354599, 0.015607684850692749, 0.01553825568407774, 0.0026712885592132807, + 0.023439299315214157, 0.0276328232139349, 0.045878816395998, 0.06081998348236084, + -0.008630050346255302, -0.034186940640211105, -0.04049111157655716, 0.014649561606347561, + -0.07220637053251266, -0.038213834166526794, -0.03263172507286072, -0.0059674400836229324, + 0.0005163797177374363, 0.029854558408260345, -0.019148575142025948, 0.025036171078681946, + 0.012518085539340973, 0.016996270045638084, -0.0074080959893763065, -0.029160264879465103, + -0.011143387295305729, -0.00028118828777223825, 0.003874149639159441, 0.014594018459320068, + 0.008039901964366436, 0.0005476228543557227, 0.025702690705657005, -0.021578596904873848, + -0.05282173678278923, 0.012094567529857159, 0.008720307610929012, 0.0003041866875719279, + -0.015524369664490223, -0.0016012110281735659, 0.011629391461610794, 0.01980120874941349, + -0.0035999042447656393, 0.03849155083298683, -0.00040312332566827536, 0.005391177721321583, + -0.0015656285686418414, 0.05246070772409439, 0.014871735125780106, 0.039185844361782074, + 0.0018815314397215843, -0.0230227243155241, -0.026674700900912285, 0.0031937432941049337, + 0.04279616102576256, -0.016871295869350433, 0.03907475620508194, 0.001379905384965241, + 0.010400494560599327, 0.05632096901535988, -0.03288166970014572, 0.04462909325957298, + -0.01080318447202444, 0.012761088088154793, 0.040907688438892365, 0.034631285816431046, + 0.019551264122128487, 0.038436006754636765, -0.017871076241135597, 0.03263172507286072, + 0.013045747764408588, 0.015885401517152786, 0.027605051174759865, -0.019079145044088364, + -0.028632603585720062, 0.011344731785356998, 0.03849155083298683, -0.023966960608959198, + 0.0432405099272728, 0.01573265716433525, 0.001191578689031303, 0.051905274391174316, + 0.00833150465041399, 0.03965796157717705, 0.04640648141503334, 0.00046127027599141, + -0.011323902755975723, -0.0008791473228484392, 0.019467948004603386, 0.041352033615112305, + -0.008435647934675217, 0.0012297647772356868, -0.02431410737335682, 0.0020776689052581787, + 0.007185922469943762, 0.04482349380850792, -0.02271723560988903, -0.033603735268116, + 0.026049837470054626, -0.008921653032302856, 0.010726812295615673, -0.01688518188893795, + -0.026049837470054626, 0.008761965669691563, 0.024494623765349388, 0.023633701726794243, + -0.011233645491302013, 0.06015346199274063, 0.03435356914997101, -0.012545857578516006, + -0.02966015599668026, 0.013254035264253616, 0.037325140088796616, -0.041046544909477234, + 0.0435737669467926, 0.028368772938847542, -0.022800549864768982, 0.018620911985635757, + 0.012198710814118385, 0.011546076275408268, 0.0384637787938118, -0.0029594197403639555, + -0.023133810609579086, 0.012122338637709618, 0.06881822645664215, 0.019690122455358505, + -0.050766635686159134, -0.007741356268525124, 0.00961594469845295, -0.009317399002611637, + -0.017315642908215523, -0.014746762812137604, -0.04582327604293823, 0.0063423579558730125, + -0.07559451460838318, 0.002933383919298649, 0.015927059575915337, 0.024675138294696808, + 0.0484338141977787, -0.00693944888189435, -0.01626032032072544, -0.02255060523748398, + -0.0035894899629056454, 0.03982459008693695, -0.020620472729206085, 0.004662171006202698, + -0.022689463570713997, -0.04099100083112717, -0.05804281309247017, -0.021731341257691383, + 0.004183109384030104, 0.0035651896614581347, 0.001058795372955501, -0.0278411116451025, + -0.03235400840640068, -0.005248847883194685, -0.004276839084923267, 0.02816048450767994, + -0.02714681811630726, -0.04507343843579292, -0.04054665565490723, -0.021717455238103867, + 0.0005853750044479966, 0.0022564490791410208, 0.014968936331570148, -0.03690856322646141, + -0.008456476964056492, -0.025536060333251953, -0.039046984165906906, 0.042990561574697495, + -0.00414492329582572, 0.026313668116927147, -0.04229627177119255, -0.02338375523686409, + -0.007345609832555056, -0.0386304073035717, -0.003915807232260704, -0.01056712493300438, + 0.026882987469434738, -0.00270253187045455, 0.008150988258421421, -0.006658260710537434, + 0.010511581785976887, -0.0048045008443295956, -0.008081559091806412, 0.008109331130981445, + -0.012059852480888367, 0.01856536976993084, 0.03735291212797165, 0.012858288362622261, + 0.0770941898226738, -0.0007307423511520028, -0.044045887887477875, 0.0008327165269292891, + 0.02143973857164383, 0.0064881592988967896, -0.02431410737335682, -0.02741065062582493, + -0.006606188602745533, -0.01605203188955784, -0.009456257335841656, -0.025966523215174675, + -0.0361587293446064, -0.028743689879775047, -0.005686251912266016, -0.03482569009065628, + -0.012358398176729679, 0.047850608825683594, 0.0034853459801524878, 0.024564052000641823, + 0.009824232198297977, -0.004578855820000172, -0.031132055446505547, -0.01741284504532814, + -0.032159607857465744, 0.018856972455978394, 0.026105381548404694, 0.0042803105898201466, + 0.0015100851887837052, -0.004019950982183218, 0.02709127590060234, -0.05482130125164986, + 0.02125922217965126, -0.005873710848391056, 0.03346487507224083, -0.03699187934398651, + -0.02259226329624653, -0.051738642156124115, 0.026188695803284645, 0.00432196818292141, + -0.0027459249831736088, 0.017968278378248215, -0.010525466874241829, 0.011872394010424614, + 0.024994513019919395, 0.0040685515850782394, -0.017496159300208092, 0.019148575142025948, + 0.040018994361162186, 0.01127530261874199, -0.011615505442023277, -0.005068331956863403, + 0.016496378928422928, -0.005398120731115341, 0.002650459762662649, -0.026452526450157166, + -0.04201855510473251, 0.013823354616761208, -0.03629758954048157, 0.008435647934675217, + -0.008560621179640293, 0.013844183646142483, -0.012066795490682125, -0.005276619456708431, + -0.02081487514078617, 0.005731381010264158, -0.010747640393674374, 0.04840604215860367, + -0.0019891466945409775, 0.04343491047620773, -0.008067673072218895, 0.01215705368667841, + -4.5942604629090056e-5, 0.02346707135438919, 0.009567344561219215, -0.009622887708246708, + 0.021273108199238777, -0.029243580996990204, -0.03899144008755684, -0.005953554064035416, + -0.023106038570404053, 0.04723963141441345, -0.0048045008443295956, -0.002999341581016779, + 0.01882920041680336, -0.01191405113786459, -0.012205653823912144, -0.04057442769408226, + -0.023855874314904213, -0.001143846195191145, 0.01714901253581047, 0.012844402343034744, + 0.003497496247291565, 0.0067832330241799355, 0.020481614395976067, -0.057487379759550095, + 0.020009497180581093, 0.014982822351157665, -0.005398120731115341, -0.01821822300553322, + 0.0033447518944740295, 0.040463339537382126, -0.0009902339661493897, -0.004679528530687094, + 0.0008292450802400708, 0.011997366324067116, -0.018593139946460724, 0.03576992452144623, + -0.024564052000641823, 0.02020389772951603, -0.002787582576274872, 0.014031642116606236, + 0.026452526450157166, -0.003860263852402568, 0.02081487514078617, -0.03576992452144623, + -0.031937435269355774, -0.005769566632807255, 0.005443249829113483, -0.01087261363863945, + 0.037019651383161545, 0.02656361274421215, 0.05770955607295036, -0.021536938846111298, + 0.0007841160986572504, 0.01188628003001213, 0.017565589398145676, 0.025563832372426987, + 0.0033673164434731007, -0.01476064883172512, 0.04371262714266777, 0.009025796316564083, + -0.03196520730853081, 0.0060507552698254585, 0.012247311882674694, -0.023550385609269142, + 0.0034002952743321657, -0.044656865298748016, 0.0023605928290635347, -0.002936855424195528, + 0.005484906956553459, -0.0003634184831753373, 0.01133778877556324, 0.024952856823801994, + 0.050322286784648895, 0.028299342840909958, -0.03807497397065163, -0.041213177144527435, + 0.004061608575284481, 0.031409770250320435, 0.011893223039805889, -0.010518524795770645, + -0.038602638989686966, 0.007907986640930176, 0.02334209904074669, 0.0335204191505909, + 0.006859605200588703, 0.047933921217918396, -0.00883833784610033, -0.04646202176809311, + -0.0003686256823129952, -0.012879117392003536, -0.02832711488008499, 0.0228144358843565, + 0.0076996986754238605, -0.004190052393823862, 0.0043427967466413975, 0.0030757137574255466, + -0.038436006754636765, -0.008768908679485321, 0.0012445184402167797, 0.04476794973015785, + 0.005422420799732208, -0.004991959780454636, 0.013899726793169975, 0.017621131613850594, + -0.021009277552366257, -0.0037491770926862955, 0.0012445184402167797, -0.021231450140476227, + 0.019259661436080933, -0.019370747730135918, 0.0036311473231762648, 0.05634874105453491, + -0.008720307610929012, -0.03979681804776192, 0.006304171867668629, -0.024258563295006752, + -0.00819958932697773, 0.00027836771914735436, 0.013101290911436081, 0.03152085840702057, + 0.030909880995750427, -0.014128843322396278, 0.028007740154862404, -0.005234961863607168, + 0.007574726361781359, -0.015552141703665257, -0.0530439130961895, 0.02461959607899189, + -0.030965425074100494, -0.025397202000021935, -0.011150330305099487, -0.01900971680879593, + 0.03535335138440132, 0.026994073763489723, -0.0013200227404013276, -0.031576402485370636, + -0.009595115669071674, -0.0037075194995850325, 0.019787322729825974, 0.012163996696472168, + -0.01816267892718315, -0.012858288362622261, -0.006977634970098734, 0.009178540669381618, + -0.022036829963326454, 0.0228977520018816, 0.03699187934398651, -0.014691219665110111, + 0.030132275074720383, -0.016343634575605392, -0.008553678169846535, -0.010303294286131859, + -0.01476064883172512, 0.05254402011632919, -0.015329968184232712, -0.05132206901907921, + -0.011747421696782112, -0.035158947110176086, 0.011796021834015846, -0.011497476138174534, + -0.021411966532468796, 0.0700957253575325, 0.02263392135500908, -0.014746762812137604, + 0.009963090531527996, -0.0138788977637887, 0.03746400028467178, 0.011462762020528316, + 0.03504786267876625, 0.027868881821632385, 0.011816850863397121, 0.0031468786764889956, + 0.02696630358695984, 0.005783452652394772, 0.019509606063365936, -0.027327334508299828, + 0.003148614428937435, 0.002204377204179764, -9.063765901373699e-5, 0.006189613603055477, + 0.009817289188504219, -0.04065774008631706, -0.009942262433469296, 0.01107395812869072, + -0.0005376423941925168, 0.018370967358350754, 0.01639917865395546, 0.010393551550805569, + -0.02311992458999157, -0.014246872626245022, -0.044573549181222916, 0.015107794664800167, + -0.013080461882054806, 0.011254473589360714, 0.008102388121187687, 0.034714601933956146, + -0.011296131648123264, 0.020051153376698494, -0.010983699932694435, -0.03177080303430557, + 0.0050718034617602825, -0.0020672546233981848, 0.003967878874391317, 0.032159607857465744, + 0.020439958199858665, 0.010483809746801853, -0.04115763306617737, 0.010969813913106918, + -0.0026730243116617203, 0.03579769656062126, 0.04535115510225296, 0.06448584794998169, + 0.04049111157655716, -0.02563326247036457, 0.03371481969952583, -0.028216028586030006, + 0.02255060523748398, 0.018468167632818222, 0.0012531970860436559, 0.013184606097638607, + 0.04521229863166809, -0.0019926181994378567, 0.016787981614470482, 0.03324270248413086, + 0.03160417452454567, 0.021995171904563904, -0.0002414834452793002, -0.004846158437430859, + 0.0036554476246237755, -0.02135642245411873, -0.019565150141716003, -0.020190011709928513, + -0.005495321471244097, 0.00022152255405671895, 0.016815753653645515, -0.0055543361231684685, + 0.005050974432379007, 0.03704742342233658, -0.008859166875481606, 0.019329089671373367, + -0.022772779688239098, -0.007866328582167625, 0.009692316874861717, 0.03654753416776657, + -0.020259441807866096, -0.02368924394249916, -0.05504347383975983, -0.029910100623965263, + 0.00270253187045455, 0.001233236282132566, -0.018509825691580772, 0.0030566207133233547, + -0.02324489690363407, -0.005453663878142834, 0.052127446979284286, 0.062930628657341, + -0.021453624591231346, 0.0033065658062696457, 0.03910252824425697, 0.005894539412111044, + -0.012559742666780949, 0.02316158264875412, 0.002416136208921671, 0.05154424160718918, + 0.021148135885596275, 0.013406779617071152, 0.011789078824222088, 0.002122798003256321, + -0.027521736919879913, -0.04199078306555748, -0.011830735951662064, -0.016274206340312958, + -0.002461265306919813, -0.0026278954464942217, -0.00819958932697773, 0.022953294217586517, + -0.015357740223407745, -0.03124314174056053, -0.0216202549636364, 0.028938092291355133, + 0.015413283370435238, -0.019245775416493416, 0.015010593459010124, 0.0228144358843565, + 0.005186361726373434, 0.030743252485990524, 0.01980120874941349, 0.04782283678650856, + 0.005745266564190388, 0.027743909507989883, -0.004304610658437014, 0.0182043369859457, + 0.022161802276968956, 0.0010492488509044051, -0.022328432649374008, -0.015399397350847721, + -0.03840823471546173, 0.009296569973230362, -0.04296279326081276, -0.046961914747953415, + 0.057487379759550095, -0.004450412001460791, 0.030076730996370316, 0.00699499249458313, + 0.011080901138484478, -0.00394357880577445, 0.03257618099451065, -0.0013955270405858755, + -0.04146312177181244, -0.010754583403468132, 0.04410143196582794, -0.04904479160904884, + -0.005960497073829174, 0.0030722422525286674, 0.02245340496301651, 0.04782283678650856, + 0.012684715911746025, -0.0010154021438211203, -0.006734632886946201, -0.024647368118166924, + -0.006151427514851093, -0.024508509784936905, 0.021717455238103867, -0.011809907853603363, + -0.019870638847351074, 0.05507124587893486, -0.018662570044398308, -0.015621570870280266, + 0.008095445111393929, -0.01131696067750454, 0.03460351377725601, 0.029299123212695122, + -0.013663667254149914, 0.0033343376126140356, 0.00016033806605264544, -0.0192318893969059, + -0.011566905304789543, -0.011455819010734558, -0.023897532373666763, -0.014094128273427486, + 0.00826207548379898, -0.037686172872781754, -0.06459692865610123, 0.03718627989292145, + 0.014732876792550087, -0.045878816395998, 0.015385511331260204, -0.013358178548514843, + 0.02267557755112648, 0.01405247114598751, -0.025161143392324448, 0.022383974865078926, + -0.01773221790790558, 0.00598826864734292, -0.015677114948630333, -0.011358617804944515, + -0.008345390670001507, -0.010011691600084305, 0.005391177721321583, -0.022397860884666443, + 0.06193085014820099, -0.0026626100298017263, -0.016121461987495422, 0.008109331130981445, + -0.028035512194037437, -0.012858288362622261, -0.02413359098136425, -0.030743252485990524, + 0.03488123044371605, -0.0433238223195076, 0.008963310159742832, -0.021162021905183792, + 0.032992757856845856, 0.006529816426336765, -0.005186361726373434, 0.020190011709928513, + 0.00387762114405632, -0.005880653392523527, 0.026896873489022255, -0.023578157648444176, + 0.03282612934708595, -0.0015456676483154297, -0.05223853141069412, -0.0012549328384920955, + -0.01971789449453354, -0.007310895249247551, -0.009428486227989197, 0.004363625310361385, + 0.03190966323018074, -0.007078307215124369, -0.0253277737647295, 0.01582985930144787, + -0.03454797342419624, 0.0060333977453410625, 0.03115982748568058, -0.0020117112435400486, + -0.000454327353509143, -0.003592961234971881, -0.019953953102231026, -0.01255279965698719, + 0.0156493429094553, -0.006047283764928579, 0.02107870578765869, 0.024244677275419235, + -0.02346707135438919, 0.023314327001571655, -0.014219100587069988, -0.024022504687309265, + 0.050655547529459, -0.014621790498495102, -0.02457793802022934, 0.06170867756009102, + -0.009956147521734238, -0.011504419147968292, -0.02356427162885666, 0.03235400840640068, + -0.06143096089363098, 0.007234523072838783, 0.015524369664490223, -0.00426642457023263, + 0.0011264887871220708, -0.02081487514078617, 0.012136224657297134, 0.024105818942189217, + 0.01728787273168564, -0.012226482853293419, -0.01737118698656559, -0.011698820628225803, + 0.011573848314583302, 0.0074705821461975574, -0.027827225625514984, 6.607300747418776e-6, + -0.009400714188814163, -0.004044251050800085, -0.0005819034995511174, -0.021800769492983818, + -0.03243732452392578, 0.02664692886173725, -0.004915587604045868, -0.018662570044398308, + -0.021064819768071175, -0.0013365121558308601, 0.01605203188955784, -0.02877146191895008, + 0.02081487514078617, -0.013052690774202347, 0.0011733535211533308, -0.00795658677816391, + 0.009157711640000343, 0.024938970804214478, -0.0004903437802568078, -0.0015517426654696465, + -0.003700576489791274, -0.005998683162033558, 0.011330845765769482, 0.023480957373976707, + -0.024425193667411804, 0.0059674400836229324, -2.59681496572739e-6, -0.04510121047496796, + 0.0006235610344447196, 0.003013227367773652, 0.0016958082560449839, 0.01789884828031063, + -0.004683000035583973, 0.017315642908215523, 0.008234303444623947, -0.03265949711203575, + -0.0018086307682096958, 0.034853462129831314, -0.018190450966358185, 0.015704885125160217, + -0.008428704924881458, 0.009685373865067959, 0.01367755327373743, -0.003294415771961212, + -0.01873200014233589, 0.02010669745504856, 0.010011691600084305, 0.02077321708202362, + 0.0002636139979586005, 0.019787322729825974, -0.006863076705485582, -0.02328655496239662, + -0.00324928667396307, -0.029326895251870155, 0.008428704924881458, -0.022869979962706566, + 0.0025393732357770205, -0.01799605041742325, 0.003679747926071286, 0.017037926241755486, + 0.003375994972884655, -0.0029403266962617636, -0.03849155083298683, 0.006106298416852951, + -0.019370747730135918, 0.027591165155172348, -0.029826786369085312, 0.02160636894404888, + -0.01188628003001213, 0.006331943441182375, -0.009650659747421741, -0.0120876245200634, + -0.0266052708029747, 0.031215369701385498, -0.019245775416493416, 0.004582327324897051, + 0.0010423059575259686, 0.010379666462540627, -0.019926181063055992, 0.035603296011686325, + 0.016413064673542976, 0.010782355442643166, -0.015218881890177727, -0.005342577118426561, + -0.015107794664800167, 0.031409770250320435, 0.01737118698656559, 0.013837240636348724, + 0.007241466082632542, -0.0002677363809198141, -0.009407657198607922, -0.011129501275718212, + 0.025036171078681946, -0.012039024382829666, 0.011900165118277073, 0.004558027256280184, + 0.004540669731795788, 0.010726812295615673, -0.027646709233522415, -0.009157711640000343, + -0.02502228505909443, 0.005127346608787775, 0.012198710814118385, 0.00992143340408802, + 0.03660307824611664, -0.010025576688349247, 0.0002349744609091431, -0.03932470083236694, + 0.0216619111597538, 0.0028066756203770638, -0.006352772004902363, -0.004262953065335751, + 0.04635093733668327, -0.008380104787647724, 0.012684715911746025, 0.027771681547164917, + 0.003084392286837101, -0.037102967500686646, -0.023925304412841797, -0.015385511331260204, + 0.007692755665630102, 0.0037769486662000418, 0.036714162677526474, 0.01657969318330288, + 0.008650878444314003, -0.003634618828073144, -0.04490680992603302, 0.03063216432929039, + -0.04918364807963371, 0.007914929650723934, 0.012309798039495945, 0.0037491770926862955, + -0.011171159334480762, -0.003417652565985918, 0.02625812590122223, -0.008761965669691563, + -0.033131614327430725, 0.002678231569007039, 0.03935247287154198, 0.04854489862918854, + 0.008810565806925297, 0.03338156268000603, -0.0316319465637207, 0.03588101267814636, + -0.0019856751896440983, 0.012455599382519722, -0.01945406384766102, 0.02607760950922966, + 0.01551048457622528, -0.004412225913256407, -0.010143606923520565, 0.01737118698656559, + -0.04171306639909744, -0.0042004669085145, -0.016940725967288017, 0.018245995044708252, + 0.012920774519443512, 0.004662171006202698, -0.0387137234210968, 0.010886499658226967, + 0.01971789449453354, 0.0031815932597965, 0.011434989981353283, -0.014691219665110111, + -0.023050496354699135, 0.024813996627926826, -0.02130088023841381, 0.014732876792550087, + -0.010469923727214336, 0.012802745215594769, -0.02125922217965126, -0.012011252343654633, + 5.576033072429709e-5, 0.0015743072144687176, -0.014635676518082619, -0.0009381620911881328, + 0.0060090976767241955, -0.011053129099309444, 0.03415916860103607, 0.005172475706785917, + -0.026938531547784805, -0.003474931698292494, -0.009539572522044182, -0.011705763638019562, + 0.012754145078361034, 0.027827225625514984, 0.009636773727834225, -0.002466472564265132, + 0.00337078794836998, -0.008137103170156479, -0.009588172659277916, 0.0021818126551806927, + -0.00490517308935523, 0.017801648005843163, -0.016954611986875534, 0.014371844939887524, + 0.021953513845801353, -0.018190450966358185, -0.04057442769408226, -0.015010593459010124, + -0.0064048441126942635, 0.004801029339432716, -0.009796461090445518, 0.003919278737157583, + -0.0359921008348465, 0.005422420799732208, 0.006710332352668047, 8.793914275884163e-6, + -0.04260176047682762, -0.01931520365178585, 0.010851784609258175, 0.00870642252266407, + 0.010067234747111797, 0.03040999174118042, 0.015302196145057678, 0.012059852480888367, + -0.016065917909145355, -0.006519402377307415, -0.0001710779033601284, -0.01900971680879593, + 0.01631586253643036, 0.008928596042096615, 0.020564930513501167, -0.0008257735753431916, + -0.00431849667802453, -0.03946356102824211, -0.011802964843809605, -0.019259661436080933, + -0.016899067908525467, -0.004023422487080097, -0.0060333977453410625, -0.006349300500005484, + -0.00897025316953659, -0.003327394602820277, 0.03229846432805061, 0.019856752827763557, + -0.005130818113684654, 0.0036103185266256332, -0.008616164326667786, 0.0006331075564958155, + -0.006755461450666189, 0.009782575070858002, 0.010574067942798138, 0.006908205803483725, + 0.004047722555696964, -0.03374259173870087, 4.637654001271585e-6, 0.0027337749488651752, + 0.007560840342193842, -0.017176784574985504, 0.00763721251860261, -0.013871954753994942, + -0.000440224539488554, 0.008213474415242672, -0.009553458541631699, 0.007852442562580109, + 0.01741284504532814, -0.03857486695051193, 0.0182043369859457, -0.027341220527887344, + 0.03218737989664078, -0.012039024382829666, -0.022786663845181465, -0.007852442562580109, + 0.02391141839325428, 0.017579473555088043, -0.0006725954008288682, 0.008234303444623947, + 0.009838118217885494, 0.0027476607356220484, 0.016107575967907906, 0.030382219702005386, + 0.05007234215736389, 0.021731341257691383, -0.01527442503720522, 0.02785499580204487, + -0.022022943943738937, 0.004891287535429001, 0.01919023133814335, 0.03257618099451065, + -0.05448804050683975, 0.0022234702482819557, 0.025563832372426987, -0.015107794664800167, + 0.04646202176809311, -0.026008179411292076, 0.006390958093106747, 0.012747202068567276, + 0.014024699106812477, -0.005266204942017794, -0.02091207541525364, 0.0021575125865638256, + 0.008380104787647724, 0.009511801414191723, -0.014510703273117542, 0.031354229897260666, + -0.05148869752883911, -0.04782283678650856, -0.013594238087534904, 0.04735071584582329, + 0.013094347901642323, -0.04040779545903206, -0.030687708407640457, -0.022397860884666443, + -0.00948402937501669, -0.021453624591231346, -0.007442810572683811, -0.019690122455358505, + -0.0070921932347118855, 0.00870642252266407, -0.006422201171517372, -0.002344971289858222, + 0.009386828169226646, -0.03540889546275139, 0.02824380062520504, -0.018134908750653267, + 0.019551264122128487, 0.02860483154654503, 0.01702404022216797, -0.0028500687330961227, + -0.024966740980744362, -0.006727689877152443, -0.0003569094988051802, 0.01727398671209812, + -0.008102388121187687, -0.030882110819220543, 0.0205927025526762, 0.02130088023841381, + 0.008296789601445198, 0.010379666462540627, -0.004669114015996456, 0.03913030028343201, + -0.007421982008963823, 0.01834319531917572, 0.014677333645522594, 0.022439518943428993, + -0.012934660539031029, -0.0240919329226017, 0.039491333067417145, 0.0432405099272728, + -0.02988232858479023, 0.024647368118166924, 0.019565150141716003, 0.02091207541525364, + -0.009407657198607922, -0.005918839480727911, -0.017565589398145676, -0.007064421661198139, + -0.0066790892742574215, 0.019856752827763557, 0.01882920041680336, 0.04007453843951225, + 0.052793968468904495, -0.03354819118976593, 0.0034992319997400045, 0.006557588465511799, + 0.02475845441222191, 0.03696410730481148, 0.05396037921309471, -0.014302415773272514, + 0.009081339463591576, 0.02771613746881485, -0.033131614327430725, -0.002641781233251095, + 0.05926476791501045, -0.002051633084192872, 0.015302196145057678, -0.00035365502117201686, + -0.02028721384704113, 0.005675837397575378, -0.024786226451396942, -0.02877146191895008, + -0.00038164365105330944, -0.04190746694803238, -0.03465905785560608, -0.0035756039433181286, + 0.0014354487648233771, -0.01794050633907318, -0.004436525981873274, 0.024203021079301834, + -0.03263172507286072, 0.013323464430868626, -0.035075634717941284, -0.0029524769634008408, + -0.017162898555397987, -0.0065332879312336445, -0.010115834884345531, -0.01012277789413929, + -0.044656865298748016, 0.025161143392324448, 0.04454577714204788, 0.01887085847556591, + 0.013594238087534904, -0.009511801414191723, 0.00934517104178667, -0.007796899415552616, + 0.029549069702625275, -0.06537453830242157, -0.008484249003231525, 0.023578157648444176, + -0.038824811577796936, -0.03324270248413086, -0.025050057098269463, 0.04310164973139763, + -0.011657163500785828, -0.034631285816431046, 0.008060730993747711, -0.023439299315214157, + 0.0009338227682746947, -0.011143387295305729, -0.0010579274967312813, -0.012233425863087177, + ], + index: 49, + }, + { + title: "Pralamba", + text: "Pralamba was an asura killed by Balarama. According to the pertinent legend, the asura had attempted to join Krishna and Balarama in a game of jumping, whose conditions dictated that the loser carry the victor on his back. Pralamba promptly lost, and was forced to carry Balarama on his back.", + vector: [ + -0.00600378168746829, -0.025160886347293854, -0.010686120018362999, 0.020333418622612953, + -0.01752248778939247, 0.027895433828234673, -0.012939448468387127, -0.04873298481106758, + -0.017965514212846756, 0.026352476328611374, -0.019462641328573227, 0.05964061990380287, + -0.017782192677259445, -0.03495331481099129, 0.027360746636986732, 0.004193481057882309, + -0.028812041506171227, 0.013481774367392063, -0.06342926621437073, 0.009952833876013756, + 0.01930987276136875, -0.001443657441996038, -0.004338610917329788, -0.026077494025230408, + -0.013542881235480309, 0.017537765204906464, -0.009104971773922443, -0.010342392139136791, + -0.010479883290827274, -0.009547999128699303, 0.014963624067604542, -0.01698780059814453, + 0.021066704764962196, 0.0260927714407444, -0.024824798107147217, -0.01740027405321598, + 0.015437204390764236, -0.01435255166143179, -0.044883232563734055, -0.03712261840701103, + -0.009479253552854061, 0.013443582691252232, -0.01769053190946579, 0.003091642167419195, + -0.03153131157159805, -0.025894172489643097, -0.023847082629799843, 0.032142382115125656, + 0.0053468793630599976, -0.04195008799433708, 0.053346578031778336, 0.014497681520879269, + 0.017125291749835014, -0.009731320664286613, 0.047877486795186996, -0.025221994146704674, + 0.010984017513692379, 0.016361450776457787, 0.004151470027863979, 0.014375466853380203, + 0.007741517387330532, -0.031714633107185364, -0.0011791778961196542, 0.0018379897810518742, + 0.03192850947380066, -0.01996677555143833, 0.07693395763635635, -0.06404034048318863, + 0.005797544959932566, -0.005369794555008411, 0.040544621646404266, 0.03687819093465805, + -0.010197263211011887, -0.01174021977931261, -0.017965514212846756, 0.008318216539919376, + -0.015796208754181862, 0.01960013248026371, -0.03501442074775696, 0.0055378396064043045, + -0.042866695672273636, -0.022609662264585495, 0.023098519071936607, 0.038283657282590866, + 0.01930987276136875, -0.007401608861982822, 0.012733211740851402, -0.05676858127117157, + 0.0004399240424390882, -0.01976817660033703, 0.05252163112163544, 0.02699410170316696, + -0.0011228446383029222, -0.0006125041400082409, 0.002365994034335017, 0.04176676645874977, + -0.016773924231529236, 0.030400829389691353, -0.01075486559420824, 0.018668247386813164, + -0.037183728069067, 0.01840854249894619, -0.0027192700654268265, -0.036419887095689774, + 0.034586671739816666, 0.03645044192671776, -0.07901160418987274, 0.02305268868803978, + -0.00881471298635006, 0.06709569692611694, -0.02584834210574627, -0.05802128091454506, + 0.027314916253089905, -0.005702064838260412, -0.044822126626968384, -0.024687305092811584, + 0.02227357216179371, -0.03363950923085213, -0.055668652057647705, 0.021219473332166672, + 0.018683524802327156, 0.011915902607142925, -0.06006837263703346, -0.004220215603709221, + -0.020806999877095222, -0.05734910070896149, 0.0064544472843408585, 0.039475247263908386, + 0.04222507029771805, 0.03583936765789986, -0.007966849952936172, -0.01804189942777157, + -0.014367829076945782, -0.03406726196408272, -0.03669486939907074, 0.0013548610731959343, + -0.03229515254497528, 0.007737698499113321, -0.009357038885354996, 0.044822126626968384, + -0.013351921923458576, -0.03593102842569351, 0.025710850954055786, 0.038864172995090485, + -0.008165448904037476, 0.01608646847307682, -0.05881567299365997, 0.0006282583344727755, + 0.03312009945511818, -0.02477896772325039, 0.02163194678723812, -0.03751981630921364, + 0.025390038266777992, 0.022899920120835304, 0.02853705920279026, 0.06886781007051468, + -0.02728436142206192, -0.028735658153891563, 0.024030404165387154, 0.020394526422023773, + -0.03733649477362633, 0.005999962333589792, -0.00741688534617424, 0.0017587414477020502, + -0.00789046660065651, 0.03455611690878868, 0.0008387917187064886, -0.05099395290017128, + 0.04234728589653969, 0.0349227599799633, 0.04897741600871086, 0.00607634661719203, + 0.06113774701952934, -0.004239311441779137, -0.011396491900086403, 0.00866958312690258, + -0.01256516668945551, 0.004384441301226616, -0.030843855813145638, 0.02383180521428585, + -0.012343652546405792, -0.07369527220726013, -0.007867551408708096, -0.008134895004332066, + 0.0016747190384194255, -0.011900626122951508, 0.023694314062595367, -0.006527012214064598, + -0.03038555197417736, -0.02829262986779213, 0.01263391226530075, -0.014039377681910992, + -0.018622417002916336, -0.0001397588348481804, 0.008432792499661446, 0.04292780160903931, + 0.03217293694615364, 0.0343116894364357, 0.04366108775138855, -0.020180650055408478, + 0.038039226084947586, -0.035656046122312546, 0.007153360638767481, 0.025038672611117363, + -0.041980642825365067, 0.03180629387497902, -0.01978345401585102, -0.043997179716825485, + 0.020776445046067238, -0.02144862525165081, 0.014658087864518166, -0.03608379885554314, + -0.006026696879416704, 0.04133901745080948, -0.0065766614861786366, -0.0003609143604990095, + -0.021250026300549507, 0.009311208501458168, -0.002276242943480611, 0.011213170364499092, + -0.07369527220726013, 0.005988504737615585, 0.0042775035835802555, 0.02447343058884144, + 0.014123399741947651, 0.03055359609425068, -0.03782535344362259, 0.015238606370985508, + -0.059487853199243546, -0.00555693544447422, -0.0017730634426698089, 0.05368266999721527, + 0.05682969093322754, -0.011595089919865131, -0.015444843098521233, 0.05517979711294174, + -0.027207978069782257, -0.0012994826538488269, -0.018148835748434067, -0.028980085626244545, + -0.018423818051815033, 0.0326617956161499, -0.04097237437963486, -0.02823152393102646, + -0.021051427349448204, -0.0018255773466080427, 0.02985086292028427, -0.06709569692611694, + -0.05744076147675514, -0.05536311864852905, 0.010647928342223167, 0.02120419591665268, + -0.03535051271319389, 0.06837894767522812, 0.008837628178298473, -0.014245614409446716, + 0.004846564028412104, -0.01758359558880329, 0.03531995788216591, 0.016407281160354614, + -0.004953501746058464, -0.05557699128985405, -0.015070561319589615, -0.06000726297497749, + -0.010617374442517757, -0.04344721511006355, -0.01408520806580782, 0.023862358182668686, + 0.007493269629776478, -0.013657458126544952, 0.05380488187074661, -0.0028682188130915165, + -0.07607845216989517, 6.46876942482777e-5, -0.027452407404780388, 0.005175015423446894, + 0.009471614845097065, 0.020287588238716125, 0.03336452692747116, 0.03733649477362633, + 0.0045906780287623405, 0.01381786447018385, 0.026703843846917152, 0.01259572058916092, + 0.050199560821056366, 0.006324594374746084, 0.026138601824641228, 0.0011409858707338572, + 0.028903702273964882, 0.0386197455227375, -0.014795579016208649, -0.02574140578508377, + -0.0022094070445746183, 0.0010159070370718837, 0.014512958005070686, 0.028689827769994736, + -0.014153953641653061, 0.045494306832551956, -0.03525885194540024, 0.009326484985649586, + 0.07778945565223694, 0.01834743469953537, -0.028643997386097908, -0.0410945862531662, + -0.01918765902519226, -0.03663376346230507, -0.07063991576433182, -0.007435981649905443, + -0.024565091356635094, 0.04265281930565834, 0.015887869521975517, -0.060801658779382706, + -0.02894953265786171, -0.0194168109446764, 0.009547999128699303, 0.027498237788677216, + 0.012549890205264091, -0.00134435819927603, -0.0536215603351593, 0.00875360518693924, + -0.01197700947523117, 0.023847082629799843, 0.0010369126684963703, -0.02335822395980358, + 0.052154988050460815, -0.0028605805709958076, -0.026367753744125366, -0.016468388959765434, + -0.003047721227630973, -0.05062730982899666, -0.041613999754190445, -0.0018914586398750544, + 0.024565091356635094, -0.029636988416314125, -0.005495828110724688, 0.01573510281741619, + -0.025695575401186943, -0.014306721277534962, -0.01152634434401989, -0.02580251172184944, + -0.04778582602739334, -0.0056829690001904964, 0.002574140438809991, 0.0019363341853022575, + 0.04384440928697586, 0.015215691179037094, 0.032906223088502884, -0.03562549501657486, + 0.003933775704354048, 0.017721086740493774, 0.000799644913058728, 0.04466935992240906, + 0.03253958001732826, -0.005312506575137377, 0.039353031665086746, -0.06452919542789459, + 0.029392559081315994, -0.010938187129795551, -0.042530607432127, 0.050199560821056366, + 0.01367273461073637, 0.004269865341484547, -0.022976305335760117, 0.00629786029458046, + -0.0051826536655426025, -0.0408807136118412, 0.05844902992248535, -0.038864172995090485, + -0.05181889981031418, -0.0010416866280138493, -0.03913915902376175, 0.004938225261867046, + 0.036969851702451706, 0.000933794304728508, -0.0029923429246991873, -0.03562549501657486, + -0.003712262026965618, 0.0102201784029603, -0.037733692675828934, 0.009242462925612926, + -0.007485631387680769, 0.011167339980602264, -0.02276242896914482, -0.008822350762784481, + 0.03257013484835625, -0.0065881190821528435, -0.0014742109924554825, -0.032784007489681244, + 0.04332499951124191, -0.006110719405114651, 0.029499497264623642, 0.03260068595409393, + -0.0020127182360738516, 0.06465140730142593, -0.0067523447796702385, -0.017262782901525497, + 0.003551855683326721, 0.012672103941440582, 0.01853075623512268, 0.01798079162836075, + -0.02800237201154232, 0.05414097383618355, -0.008470985107123852, -0.009723681956529617, + -0.03257013484835625, 0.022747153416275978, 0.01781274750828743, -0.0006311227334663272, + 0.06642352044582367, -0.03865030035376549, -0.006771440617740154, 0.021479178220033646, + -0.07400081306695938, 0.003861210774630308, 0.018362712115049362, 0.0252678245306015, + 0.009670212864875793, 0.03782535344362259, -0.04390551894903183, 0.01063265185803175, + -0.05893788859248161, 0.012473505921661854, -0.00012686903937719762, 0.009761874563992023, + -0.05184945464134216, 0.014589342288672924, -0.01781274750828743, -0.008234194479882717, + -0.007905743084847927, 0.0012689291033893824, 0.03715317323803902, 0.011747857555747032, + 0.0484885573387146, 0.05087173730134964, -0.03782535344362259, -0.022655492648482323, + 0.03415892273187637, 0.04271392896771431, -0.0024309204891324043, 0.013061662204563618, + 0.014902516268193722, 0.0004898123443126678, -0.016712816432118416, -0.007531461771577597, + 0.022197188809514046, -0.047755271196365356, -0.009219547733664513, 0.005579850636422634, + 0.00956327561289072, 0.06232933700084686, -0.0026447956915944815, -0.02406095713376999, + -0.019615409895777702, -0.021876374259591103, 0.010342392139136791, 0.014742109924554825, + -0.03284511715173721, -0.0013061662903055549, -0.045494306832551956, 0.01033475436270237, + -0.03510608151555061, -0.03742815554141998, 0.04121680185198784, -0.009143163450062275, + -0.011388853192329407, -0.012939448468387127, -0.008012680336833, -0.032386813312768936, + -0.0015124030178412795, -0.0038879450876265764, -0.022609662264585495, 0.0011963642900809646, + -0.05615751072764397, -0.019875114783644676, -0.004655604250729084, 0.004120916128158569, + -0.01326026115566492, 0.0031164668034762144, -0.08353353291749954, -0.020165374502539635, + 0.009387592785060406, 0.008493900299072266, -0.0125346127897501, -0.023312393575906754, + 0.023785974830389023, -0.00626730639487505, 0.002660072408616543, -0.013298452831804752, + -0.05432429537177086, 0.012160331010818481, -0.0023106157314032316, -0.042377837002277374, + -0.03403670713305473, -0.014245614409446716, -0.0008020318928174675, -0.008883458562195301, + -0.0402696393430233, 0.009471614845097065, -0.02645941451191902, -0.036664314568042755, + -0.006897474639117718, -0.03608379885554314, 0.0431416779756546, 0.020944491028785706, + 0.052032776176929474, 0.033272866159677505, 0.021188918501138687, -0.004846564028412104, + 0.02013481967151165, -0.053652115166187286, 0.03461722657084465, 0.01721695251762867, + 0.022029142826795578, 0.01929459534585476, 0.010113240219652653, 0.006064889021217823, + -0.03241736441850662, 0.011213170364499092, 0.0009376134839840233, -0.01752248778939247, + -0.024641474708914757, 0.01620868220925331, -0.017247505486011505, -0.014612257480621338, + 0.005270495545119047, -0.005675330758094788, 0.01182424183934927, 0.033028438687324524, + -0.03367006406188011, -0.05762408301234245, 0.016880862414836884, 0.019432086497545242, + 0.01995149813592434, 0.03736704960465431, -0.006966220214962959, 0.0029904332477599382, + -0.021311134099960327, 0.018194666132330894, -0.01953902468085289, 0.015437204390764236, + 0.01680447719991207, 0.01924876496195793, -0.020654231309890747, 0.00989172700792551, + -0.005071897059679031, -0.024213725700974464, 0.023510992527008057, -0.04573873430490494, + -0.011274277232587337, -0.01863769441843033, 0.005988504737615585, -0.020684784278273582, + 0.013848417438566685, 0.04442492872476578, -0.0009514581179246306, 0.006973858457058668, + 0.035717155784368515, 0.0388336218893528, -0.0032157660461962223, 0.05337713286280632, + -0.0033838108647614717, -0.01223671529442072, 0.01906544342637062, 0.021219473332166672, + -0.004605954512953758, 0.01637672819197178, 0.019615409895777702, -0.003162297187373042, + 0.012106862850487232, -0.017614148557186127, 0.008677221834659576, 0.010678482241928577, + -0.030309168621897697, -0.014512958005070686, -0.04039185494184494, -0.02079172246158123, + 0.004254588391631842, 0.02853705920279026, -9.823996151681058e-6, -0.026581628248095512, + -0.022747153416275978, -0.011961732991039753, -0.01573510281741619, 0.00570588419213891, + 0.0028834957629442215, -0.026596905663609505, 0.020868105813860893, 0.013038747012615204, + 0.03993355110287666, 0.03473943844437599, 0.016392003744840622, 0.014184507541358471, + 0.022533277049660683, 0.004166746512055397, -0.016666986048221588, 0.0008383142994716763, + 0.013718564994633198, 0.01900433748960495, 0.008860543370246887, -0.020806999877095222, + -0.00155632384121418, -0.0024576550349593163, 0.004403537139296532, 0.04433326795697212, + 0.04072794318199158, -0.01144232228398323, -0.024626199156045914, 0.014612257480621338, + 0.06825673580169678, -0.01200756337493658, 0.017736362293362617, 0.04900796711444855, + -0.021876374259591103, -0.010013941675424576, -0.006786717567592859, -0.03229515254497528, + 0.014176868833601475, -0.04867187887430191, 0.024503983557224274, 0.004647966008633375, + -0.021295856684446335, 0.01174021977931261, -0.0019401534227654338, 0.037794798612594604, + -0.013993547298014164, -0.012435314245522022, -0.021066704764962196, -0.028017647564411163, + -0.02108198218047619, 0.023755421862006187, 0.04106403514742851, 0.05557699128985405, + 0.016880862414836884, -0.03531995788216591, 0.01301583182066679, 0.018194666132330894, + 0.0023125254083424807, -0.04842745140194893, -0.0204403568059206, 0.014153953641653061, + 0.012580443173646927, 0.011633281596004963, 0.02818569354712963, -0.09404397010803223, + -0.010907634161412716, -0.005029886029660702, 0.02293047495186329, 0.02872038073837757, + -0.02566502057015896, 0.02746768295764923, 0.003173754783347249, -0.019493194296956062, + 0.0135581586509943, -0.018072452396154404, -0.007233563810586929, 0.00370844267308712, + 0.00989172700792551, -0.006847824901342392, -0.019523749127984047, 0.01793496124446392, + -0.025817789137363434, 0.00392995635047555, -0.016178129240870476, -0.03305898979306221, + 0.006569023244082928, 0.01203811727464199, -0.021540286019444466, 0.01822522096335888, + 0.01114442478865385, -0.0006373289506882429, 0.006263487506657839, 0.0013854146236553788, + -0.011121509596705437, 0.0007371054962277412, 0.001899096998386085, -0.008027957752346992, + 0.013023470528423786, 0.008096703328192234, -0.011281915940344334, 0.02948421984910965, + 0.0006807722966186702, -0.0011934998910874128, 0.01930987276136875, -0.026123324409127235, + -0.031897954642772675, -0.015513588674366474, -0.005041343625634909, -0.030354999005794525, + -0.008845265954732895, -0.007630760781466961, -0.009738958440721035, 0.028995363041758537, + 0.02085283026099205, -0.012702657841145992, 0.0587545670568943, 0.02186109870672226, + 0.03165352717041969, -0.024580368772149086, -0.020409801974892616, 0.0382225476205349, + 0.029682818800210953, -0.023251287639141083, -0.0019210573518648744, 0.008654306642711163, + 0.016422558575868607, -0.008906373754143715, 0.007481812033802271, -0.0098611731082201, + -0.03250902518630028, 0.046074822545051575, -0.03263124078512192, 0.004109458532184362, + -0.00296369893476367, 0.015933699905872345, -0.0033952684607356787, 0.0005303913494572043, + -0.0014541601995006204, -0.009853535331785679, -0.0019382437458261847, 0.026046941056847572, + 0.008539730682969093, 0.027849603444337845, 0.019340425729751587, -0.010365307331085205, + -0.021051427349448204, 0.01698780059814453, -0.020532017573714256, -0.0490996278822422, + 0.0011543530272319913, -0.015215691179037094, -0.03556438535451889, -0.012809595093131065, + -0.01740027405321598, 0.021906929090619087, 0.016193406656384468, 0.03516719117760658, + -0.03984189033508301, 0.004369164351373911, -0.021784713491797447, -0.0016393914120271802, + 0.00899803452193737, 0.03703095763921738, -0.001200183411128819, 0.011327746324241161, + -0.0222888495773077, -0.05854069069027901, 0.0027593716513365507, 0.0021081981249153614, + -0.03131743520498276, -0.003477381309494376, 0.004170565865933895, 0.005541658494621515, + 0.03840586915612221, -0.01680447719991207, -0.014604618772864342, 0.021280579268932343, + 0.032081276178359985, -0.0008464300772175193, -0.021662499755620956, 0.024397047236561775, + -0.02013481967151165, 0.0030840036924928427, -0.005782268010079861, 0.012397121638059616, + -0.002423282014206052, -0.003998701926320791, 0.003719900269061327, -0.04968014732003212, + 0.0039490521885454655, -0.006805813405662775, -0.0015534594422206283, 0.023266563192009926, + -0.005255218595266342, -0.017644701525568962, 0.0011801326181739569, -0.038039226084947586, + -0.003135562874376774, 0.0026314284186810255, -0.03651154786348343, 0.04986346885561943, + -0.025710850954055786, 0.024091510102152824, -0.018561309203505516, 0.029270345345139503, + -0.027987094596028328, -0.004919128958135843, 0.00600378168746829, -0.007588749751448631, + 0.0002613764663692564, 0.00577844912186265, 0.05499647557735443, 0.02401512674987316, + -0.019936222583055496, -0.0008297211024910212, 0.013267898932099342, -0.030186953023076057, + 0.0005938855465501547, 0.02995780110359192, -0.029621711000800133, -0.053591009229421616, + 0.010059772059321404, 0.018316881731152534, -0.04723586142063141, 0.01361162681132555, + 0.03299788385629654, -0.02001260593533516, 0.025237271562218666, 0.008142533712089062, + 0.007115168962627649, 0.022059695795178413, 0.005255218595266342, -0.022854089736938477, + 0.01286306418478489, 0.000221871625399217, 0.03342563286423683, -0.013474135659635067, + 0.006244391202926636, -0.047266412526369095, -0.008111979812383652, 0.029499497264623642, + 0.009097333066165447, 0.004762541968375444, 0.04735807329416275, 0.008791797794401646, + 0.010854165069758892, 0.006393339950591326, 0.03556438535451889, 0.022655492648482323, + -0.04476102069020271, 0.013886610046029091, 0.0037046235520392656, 0.021586116403341293, + 0.030523043125867844, -0.0001682834845269099, 0.006160368677228689, 0.00896748062223196, + 0.03391449153423309, -0.023266563192009926, 0.01918765902519226, 0.08017263561487198, + -0.03412836790084839, -0.05194111540913582, 0.0051979306153953075, -0.029514774680137634, + 0.0073901512660086155, 0.0058166407980024815, -0.02132640965282917, 0.01179368793964386, + 0.012389483861625195, 0.015108753927052021, 0.0033398899249732494, 0.012244354002177715, + 0.002751733176410198, 0.044058285653591156, -0.0326617956161499, -0.002027994953095913, + -0.006313136778771877, 0.024137340486049652, 0.007676591165363789, 0.013688011094927788, + 0.004250769037753344, -0.014467127621173859, -0.03137854486703873, -0.032906223088502884, + 0.010372946038842201, -0.01912655122578144, 0.017018353566527367, -0.020394526422023773, + 0.051207829266786575, -0.014367829076945782, -0.012710296548902988, -0.012870702892541885, + 0.024091510102152824, 0.005453817080706358, 0.0003258254728280008, 0.009372315369546413, + -0.005094812251627445, -0.018912676721811295, -0.0098611731082201, 0.011663835495710373, + -0.004716711584478617, 0.03611434996128082, -0.005744076333940029, 0.03272290155291557, + 0.017950238659977913, 0.001432199846021831, 0.006240572314709425, 0.00697003910318017, + 0.02406095713376999, -0.013390113599598408, -0.01758359558880329, -0.03062998130917549, + -0.0010903815273195505, -0.04604427143931389, 0.05866290628910065, -0.032081276178359985, + 0.0010808334918692708, 0.045310985296964645, -0.04903852194547653, -0.009929918684065342, + -0.010991656221449375, 0.017369719222187996, -0.021433347836136818, 0.014199784025549889, + -0.0029446028638631105, -0.017705809324979782, 0.05163557827472687, 0.024213725700974464, + -0.013519966043531895, -0.009968111291527748, -0.018698800355196, 0.05890733376145363, + -0.0257872361689806, 0.0031470204703509808, 0.033578403294086456, 0.015750378370285034, + -0.004903852473944426, 0.008990395814180374, 0.012015202082693577, -0.016392003744840622, + -0.008791797794401646, -0.026306645944714546, -0.015796208754181862, -0.01057154405862093, + 0.012947086244821548, 0.039047498255968094, -0.028980085626244545, 0.031959060579538345, + -0.02626081556081772, 0.01853075623512268, 0.007187733426690102, -0.006950943265110254, + 5.042536940891296e-5, -0.023159626871347427, -0.014497681520879269, -0.040300194174051285, + -0.04628869891166687, 0.026673289015889168, -0.030156400054693222, -0.0587545670568943, + 0.013688011094927788, -0.006801994517445564, 0.04803025349974632, -0.020043158903717995, + 0.03400615230202675, -0.007455077487975359, -0.012824872508645058, 0.0006201425567269325, + -0.006863101851195097, -0.01307693962007761, 0.04106403514742851, 0.003609143663197756, + -0.022731876000761986, -0.012313099578022957, 0.025237271562218666, 0.029942525550723076, + 0.005499647464603186, -0.03586992248892784, -0.011106232181191444, 0.001885729841887951, + 0.022349955514073372, -0.013023470528423786, 0.03379227593541145, -0.016880862414836884, + -0.027452407404780388, 0.00021077207929920405, -0.015024730935692787, -0.025634467601776123, + -0.017843300476670265, 0.013122770003974438, 0.008257109671831131, 0.06135162338614464, + 0.024641474708914757, -0.02656635269522667, -0.014627533964812756, 0.008730689994990826, + -0.014207422733306885, -0.005396529100835323, 0.0035671324003487825, 0.054354846477508545, + 0.05368266999721527, -0.00019012452685274184, -0.011243723332881927, 0.020272310823202133, + -0.03079802542924881, 0.026764949783682823, -0.00726793659850955, 0.021066704764962196, + 0.011663835495710373, 0.03038555197417736, -0.049405165016651154, 0.011694389395415783, + -0.009349400177598, -0.04295835644006729, 0.008982757106423378, 0.016728093847632408, + -0.018087729811668396, 0.04204174876213074, -0.002341169398277998, -0.029942525550723076, + 0.017782192677259445, -0.03730593994259834, -0.01846964843571186, -0.004059809260070324, + 0.018927952274680138, 0.01746137998998165, -0.0007075067260302603, 0.013206792064011097, + 0.0012822962598875165, 0.04833579063415527, 0.01775163970887661, 0.0065766614861786366, + 0.0022819717414677143, -0.05618806555867195, -0.00023917737416923046, -0.0257872361689806, + 0.012175608426332474, -0.01400118600577116, -0.028689827769994736, 0.0770561695098877, + -0.016407281160354614, -0.015108753927052021, -0.010403499938547611, 0.03730593994259834, + -0.02091393619775772, 0.012878340668976307, 0.03131743520498276, -0.003110738005489111, + 0.0011152062797918916, -0.004701434634625912, 0.012175608426332474, -0.0037141714710742235, + 0.014467127621173859, 0.00025588637799955904, -0.01182424183934927, -0.0111978929489851, + 0.0234193317592144, 0.02853705920279026, -0.05774629861116409, 0.0017826113617047668, + 0.020700061693787575, 0.012672103941440582, 0.012557527981698513, -0.00152958941180259, + -0.028399568051099777, -0.008005042560398579, -0.008302940055727959, -0.008631391450762749, + 0.019432086497545242, -0.015238606370985508, 0.021601391956210136, -0.0008488171151839197, + 0.00029264617478474975, -0.045005448162555695, 0.011167339980602264, -0.010915271937847137, + -0.00311264768242836, 0.025710850954055786, 0.020654231309890747, -0.005006970837712288, + 0.00035757257137447596, -0.031836848706007004, -0.009227186441421509, 0.020287588238716125, + 0.01637672819197178, -0.0019878933671861887, 0.029652265831828117, -0.009945196099579334, + -0.004338610917329788, 0.0194168109446764, 0.03531995788216591, 0.010884718969464302, + -0.0012775223003700376, 0.011587451212108135, 0.008761243894696236, 0.012840148992836475, + 0.009769512340426445, 0.00630167918279767, -0.0035575844813138247, -0.01758359558880329, + -0.005186473019421101, -0.03865030035376549, -0.017125291749835014, -0.03102717734873295, + -0.01810300536453724, -0.010197263211011887, 0.01703363098204136, 0.010166709311306477, + 0.026841334998607635, -0.02150973118841648, 0.004800733644515276, 0.030599426478147507, + -0.014658087864518166, 0.0004921993240714073, 0.021540286019444466, 0.013474135659635067, + 0.02056257054209709, -0.016101745888590813, -0.007791167125105858, -0.021188918501138687, + 0.07180095463991165, -0.030339721590280533, -0.030950793996453285, 0.02685661055147648, + -0.023251287639141083, 0.0269177183508873, 0.0035251211374998093, 0.04366108775138855, + -0.007600207347422838, 0.03379227593541145, 0.006866920739412308, -0.0021731245797127485, + -0.017018353566527367, 0.033211760222911835, 0.014810855500400066, 0.017079461365938187, + 0.001594515866599977, 0.005010789725929499, -0.0008827124838717282, -0.00470525398850441, + -0.014375466853380203, -0.026108048856258392, 0.05719633400440216, -0.011908263899385929, + 0.00039313884917646646, 0.0439666248857975, -0.0047205304726958275, 0.02751351334154606, + -0.043630536645650864, 0.05212443694472313, -0.02091393619775772, 0.05041343346238136, + 0.027895433828234673, 0.018301604315638542, 0.016941970214247704, 0.020409801974892616, + 0.03913915902376175, 0.00682109035551548, 0.010052133351564407, -0.006080165505409241, + -0.005931216757744551, 0.013962993398308754, 0.009227186441421509, 0.029148131608963013, + -0.034586671739816666, 0.026963548734784126, 0.015399012714624405, -0.002438558964058757, + 0.023908188566565514, 0.05789906531572342, -0.030339721590280533, -0.00463268905878067, + -0.005843375343829393, -0.036603208631277084, 0.02574140578508377, -0.007023508194833994, + 0.021127812564373016, -0.01584203913807869, -0.023006858304142952, -0.01138121448457241, + -0.0006301679532043636, 0.02537476271390915, -0.0029350549448281527, -0.014283806085586548, + -0.0009285428677685559, -0.01182424183934927, -0.027437129989266396, -0.052399419248104095, + 0.033456187695264816, 0.029835587367415428, 0.029209237545728683, 0.0075352806597948074, + -0.02960643544793129, -0.029056470841169357, -0.02703993208706379, 0.0343116894364357, + -0.04115569591522217, -0.04793859273195267, -0.005514923948794603, -0.010365307331085205, + -0.04216396436095238, -0.0050757164135575294, 0.011243723332881927, -0.02514561079442501, + 0.022181911394000053, 0.05496592074632645, -0.0030286251567304134, -0.04072794318199158, + 0.024259556084871292, -0.02222774177789688, 0.04320278391242027, 0.00046618105261586607, + -0.0008005996933206916, 0.008325855247676373, -0.025771958753466606, -0.010441691614687443, + -0.022655492648482323, 0.008577922359108925, -0.029056470841169357, -0.0075543769635260105, + 0.006836367305368185, -0.02615387924015522, -0.0013653638307005167, 0.04555541276931763, + -0.0038573916535824537, -0.0400557667016983, -0.009097333066165447, 0.003284511622041464, + 0.003712262026965618, -0.010991656221449375, 0.059182316064834595, -0.00034516016603447497, + -0.021586116403341293, -0.01697252318263054, 0.01799606904387474, 0.018087729811668396, + 0.02471785992383957, 0.023510992527008057, 0.014176868833601475, -0.0337006151676178, + -0.03788645938038826, -0.011404129676520824, -0.03269234672188759, 0.028246799483895302, + -0.003660702845081687, -0.020226480439305305, 0.026764949783682823, 0.012924171052873135, + -0.01976817660033703, -0.007435981649905443, -6.367321475408971e-5, 0.015406651422381401, + -0.029866140335798264, 0.011770772747695446, 0.018087729811668396, -0.01966124027967453, + -0.007661314215511084, -0.05010790005326271, -0.005824279505759478, 0.003437279723584652, + 0.020333418622612953, -0.0027861061971634626, 0.005488189868628979, 0.005178834777325392, + -0.020470909774303436, 0.02477896772325039, 0.009693128056824207, 0.002602784428745508, + -0.00778734777122736, -0.015299713239073753, -0.007309948094189167, -0.01152634434401989, + -0.03156186640262604, -0.0587545670568943, 0.0017787922406569123, 0.005545477848500013, + 0.027559343725442886, 0.009066780097782612, -0.020929213613271713, -0.029835587367415428, + 0.006771440617740154, -0.022533277049660683, -0.021998589858412743, 0.0007089389255270362, + -0.037397600710392, -0.02293047495186329, -0.0020757350139319897, -0.018546033650636673, + 0.01804189942777157, 0.003626330057159066, 0.013519966043531895, 0.0037428156938403845, + 0.003284511622041464, -0.0005361201474443078, -0.002877766964957118, -0.011472875252366066, + 0.00851681549102068, -0.027177423238754272, 0.03001890890300274, 0.006798175163567066, + 0.00031532265711575747, -0.009723681956529617, -0.01441365946084261, 0.032020170241594315, + 0.01248114462941885, 0.028094032779335976, 0.00937995407730341, -0.031195221468806267, + -0.01504000835120678, -0.015528865158557892, 0.020776445046067238, -0.01680447719991207, + 0.019325150176882744, -0.013390113599598408, -0.005136823281645775, 0.04653312638401985, + -0.040361300110816956, 0.0269177183508873, 0.002453835681080818, -0.02245689369738102, + 0.012137415818870068, -0.017430827021598816, 0.017476657405495644, -0.050535649061203, + -0.031714633107185364, -0.010342392139136791, 0.003462104359641671, 0.011037486605346203, + 0.049771808087825775, -0.011068040505051613, 0.01033475436270237, -0.0072144679725170135, + -0.002215135842561722, -0.030477212741971016, 0.0314396508038044, -0.045005448162555695, + 0.012542251497507095, 0.0025932365097105503, -0.027803773060441017, 0.013588711619377136, + -0.0063093178905546665, 0.010670843534171581, -0.024503983557224274, 0.011457598768174648, + 0.01799606904387474, 0.02293047495186329, 0.010052133351564407, 0.023251287639141083, + -0.024290109053254128, -0.011480513960123062, 0.020868105813860893, 0.0030973709654062986, + -0.02966754138469696, 0.0035881379153579473, -0.004663242492824793, 0.005885386373847723, + -0.012847787700593472, 0.015528865158557892, -0.014619896188378334, -0.012855425477027893, + -0.011098594404757023, -0.01917238160967827, -0.00022461666958406568, 0.013810225762426853, + 0.02150973118841648, -0.004518113099038601, -0.0175683181732893, -0.001233601476997137, + 0.020302865654230118, 0.01167911197990179, -0.026046941056847572, 0.023083241656422615, + 0.005018428433686495, -0.017721086740493774, 8.002416871022433e-5, 0.013451220467686653, + -0.0157198254019022, 0.023633206263184547, -0.008791797794401646, 0.03318120539188385, + 0.007183914538472891, 0.007905743084847927, 0.011480513960123062, 0.01027364656329155, + 0.007875189185142517, 0.019034890457987785, -0.0020757350139319897, -0.02389291301369667, + 0.006133634597063065, 0.007646037731319666, 0.01822522096335888, -0.010823611170053482, + -0.013917163014411926, -0.0008726870873942971, -0.02699410170316696, 0.0004129509616177529, + -0.0001438167382730171, -0.014398382045328617, -0.014551150612533092, 0.056738030165433884, + 0.01758359558880329, 0.0004458915500435978, -0.03993355110287666, 0.015376097522675991, + 0.0004022094653919339, 0.004361526109278202, -0.00440735649317503, -0.021876374259591103, + 0.017125291749835014, -0.01865296997129917, 0.01822522096335888, -0.029087023809552193, + 0.04158344492316246, 0.006263487506657839, 0.017430827021598816, 0.005098631605505943, + 0.019523749127984047, -0.004178204108029604, -0.012083947658538818, 0.006836367305368185, + -0.03211183100938797, -0.015979530289769173, -0.011717304587364197, -0.00831057783216238, + 0.005702064838260412, 0.0538354367017746, -0.0031699356622993946, -0.013978270813822746, + -0.0065881190821528435, 0.0501384511590004, 0.03192850947380066, 0.010831249877810478, + -0.009250101633369923, 0.03102717734873295, -0.011625643819570541, -0.024977564811706543, + -0.005297229625284672, -0.005797544959932566, 0.03253958001732826, 0.04760250449180603, + 0.04133901745080948, -0.0045906780287623405, -0.027452407404780388, -0.0770561695098877, + -0.004327153321355581, -0.014520596712827682, -0.0069280280731618404, 0.03975022956728935, + 0.013565796427428722, -0.036908745765686035, 0.025985833257436752, -0.01290125586092472, + 0.02251800149679184, 0.010357669554650784, 0.02525254711508751, 0.008027957752346992, + -0.02520671673119068, 0.016392003744840622, 0.01441365946084261, -0.004025436472147703, + 0.03742815554141998, -0.0380086749792099, -0.0029235973488539457, 0.0005819505313411355, + 0.01319151557981968, -0.0035174828954041004, 0.011892987415194511, -0.0447915717959404, + -0.011969371698796749, -0.015826763585209846, -0.008761243894696236, -0.03956690803170204, + -0.03776424378156662, -0.03755037114024162, 0.024137340486049652, 0.03134799003601074, + 0.003998701926320791, 0.024870628491044044, 0.020165374502539635, 0.011579813435673714, + 0.007294671144336462, 0.007791167125105858, -0.010854165069758892, -0.008692498318850994, + 0.007936296984553337, 0.017782192677259445, 0.024580368772149086, -0.019386256113648415, + 0.0006034335237927735, 0.004403537139296532, -0.016300342977046967, -0.013863694854080677, + -0.02459564432501793, 0.005877748131752014, -0.010097963735461235, -0.0012593810679391026, + 0.038925282657146454, -0.03217293694615364, -0.0026829876005649567, -0.0018217582255601883, + 0.004785457160323858, 0.022961027920246124, 0.004819829948246479, 0.022838814184069633, + 0.00905150268226862, -0.01697252318263054, -0.0032062181271612644, 0.025008119642734528, + -0.008134895004332066, 0.022365232929587364, 0.01649894192814827, -0.02286936715245247, + 0.0013290814822539687, -0.011060401797294617, 0.019554302096366882, 0.005702064838260412, + 0.009601467289030552, 0.006973858457058668, -0.002352626994252205, -0.03330342099070549, + 0.003200489329174161, -0.012076308950781822, -0.026077494025230408, -0.01266446616500616, + -0.03269234672188759, 0.02264021523296833, -0.008623752743005753, -0.011343022808432579, + 0.008577922359108925, 0.00019275023078080267, 0.014925431460142136, -0.006691237445920706, + 0.014703918248414993, 0.019264042377471924, -0.029514774680137634, -0.008348770439624786, + -0.001730097457766533, -0.0012412398355081677, 0.023266563192009926, -0.01930987276136875, + 0.03038555197417736, 0.010831249877810478, -0.0028815860860049725, -0.0047510843724012375, + -0.004877117928117514, 0.017308613285422325, -0.025344207882881165, -0.013688011094927788, + 0.004907671362161636, -0.011396491900086403, 0.020333418622612953, 0.00818836409598589, + -0.03831420838832855, -0.030782748013734818, -0.036603208631277084, -0.027895433828234673, + ], + index: 50, + }, + { + title: "Jefferson Township, Berks County, Pennsylvania", + text: "Jefferson Township is a township in Berks County, Pennsylvania, United States. The population was 1,977 at the 2010 census.", + vector: [ + 0.03500353544950485, 0.02087990939617157, -0.02843172661960125, 0.02222885936498642, + 0.01690223440527916, -0.00976547971367836, -0.04893116280436516, -0.03915415331721306, + -0.05137541517615318, 0.04763985797762871, 0.012613263912498951, -0.03387364745140076, + -0.017974477261304855, 0.014942221343517303, 0.021041322499513626, -0.07194402813911438, + -0.017882240936160088, 0.0006200704956427217, 0.00891229696571827, -0.02043025940656662, + 0.020084373652935028, 0.002811754820868373, 0.03161386400461197, 0.024211931973695755, + 0.01813589036464691, 0.009736655279994011, 0.024742288514971733, 0.0013078766642138362, + 0.02271309867501259, -0.027670780196785927, 0.03230563551187515, -0.0047069150023162365, + 0.029446320608258247, -0.05695568770170212, -0.010624426417052746, 0.01600293442606926, + 0.055387675762176514, -0.012590204365551472, 0.036156486719846725, -0.022136623039841652, + -0.013235855847597122, 0.005450567230582237, -0.04581819847226143, 0.040583811700344086, + 0.022528626024723053, -0.005070094019174576, 0.01685611717402935, -0.029999736696481705, + 0.026909833773970604, -0.0074134632013738155, -0.010566779412329197, 0.014411864802241325, + -0.01819353736937046, -0.018850719556212425, -0.02836254984140396, 0.018504833802580833, + 0.03608730807900429, 0.11520268023014069, -0.05635615438222885, 0.01734035462141037, + -0.0008394910837523639, 0.0033349054865539074, -0.014527159743010998, -0.008422293700277805, + 0.0020003668032586575, -0.05280506983399391, -0.005410213954746723, -0.006485338788479567, + 0.0067332228645682335, -0.008572177030146122, -0.01773235760629177, 0.06410397589206696, + 0.0036029662005603313, 0.02571076527237892, 0.036640722304582596, -0.0018245420651510358, + 0.02621806412935257, -0.022517096251249313, 0.02531876415014267, 0.036133427172899246, + 0.002960196929052472, -0.0038277911953628063, 0.002922726096585393, -0.00023689502268098295, + -0.001317244372330606, -0.00633545545861125, -0.04750150442123413, -0.06608704477548599, + -0.04985352233052254, 0.02757854387164116, -0.013281974010169506, 0.028685374185442924, + -0.018942954018712044, -0.028062783181667328, 0.04650996997952461, -0.013454916886985302, + 0.02490370161831379, -0.02355475164949894, 0.022932158783078194, 0.030899036675691605, + 0.009523360058665276, -0.018793070688843727, 0.001856248127296567, 0.025088174268603325, + 0.01111442968249321, 0.019000602886080742, 0.015691637992858887, 0.008064879104495049, + 0.03454235568642616, -0.018389539793133736, 0.03876215219497681, 0.048193275928497314, + -0.03684825450181961, -0.01724812015891075, -0.002141603035852313, -0.023278042674064636, + 0.05054529011249542, 0.004369677510112524, -0.008825825527310371, 0.02084532007575035, + -0.018908366560935974, 0.004035321995615959, 0.0015363047132268548, -0.010341953486204147, + 0.011189371347427368, -0.028616197407245636, 0.043812066316604614, -0.023324161767959595, + -0.0013936272589489818, -0.043304771184921265, -0.017017530277371407, -0.021859915927052498, + -0.010318894870579243, 0.007718994747847319, -0.02843172661960125, 0.013477975502610207, + 0.03643319383263588, 0.028547020629048347, 0.012002200819551945, 0.002529282122850418, + -0.0248345248401165, 0.030507033690810204, 0.010180541314184666, -0.045057252049446106, + -0.00578780472278595, -0.02262086234986782, -0.018320361152291298, -0.0068196943029761314, + 0.015887638553977013, -0.023635458201169968, 0.02266697958111763, 0.009044886566698551, + 0.038024261593818665, 0.00884888507425785, 0.025526294484734535, 0.0009367711609229445, + -0.011483373120427132, 0.043373946100473404, 0.007119460962712765, -0.01740953139960766, + -0.022390272468328476, 0.012059847824275494, 0.045172546058893204, 0.03154468908905983, + -0.013016795739531517, 0.03412729501724243, 0.031729161739349365, -0.03541859984397888, + -0.006248984485864639, -0.022102035582065582, -0.033066581934690475, -0.052574481815099716, + -0.049161750823259354, 0.008289704099297523, -0.016314230859279633, -0.018931424245238304, + 0.007713229861110449, -0.014065979979932308, -0.04971516877412796, 0.03161386400461197, + 0.02217121236026287, 0.03274375572800636, 0.03495742008090019, -0.053589075803756714, + 0.02748630754649639, -0.02716348133981228, -0.03504965454339981, -0.009379241615533829, + 0.07235909253358841, -0.027255717664957047, -0.03950003907084465, 0.057555221021175385, + 0.054419200867414474, 0.03456541523337364, 0.05317401513457298, 0.019842255860567093, + -0.010388071648776531, -0.021594736725091934, -0.0027368131559342146, 0.030022796243429184, + 0.04717867821455002, 0.009079474955797195, -0.006381573621183634, 0.025918297469615936, + 0.05340460315346718, 0.01736341416835785, 0.018354950472712517, -0.0017236589919775724, + 0.0015435107052326202, 0.062397606670856476, 0.0013114797184243798, -0.030760683119297028, + -0.030045855790376663, -0.03474988788366318, -0.04088357836008072, 0.061936426907777786, + -0.020268846303224564, 0.009131357073783875, 0.02361239865422249, 0.11713963747024536, + 0.03860073909163475, -0.005580273922532797, 0.018481774255633354, 0.010901134461164474, + 0.013823860324919224, 0.04254382476210594, -0.008024525828659534, 0.02753242664039135, + 0.006375808734446764, 0.02124885283410549, 0.035718366503715515, 0.011033723130822182, + -0.01106254756450653, 0.01737494394183159, -0.023416398093104362, 0.005874276161193848, + -0.04302806407213211, 0.03380446881055832, 0.05377354845404625, -0.014942221343517303, + -0.031775277107954025, -0.0008834472973830998, 0.0015103634214028716, -0.0065314569510519505, + 0.06654822826385498, 0.0008812855230644345, -0.05377354845404625, -0.015507166273891926, + -0.018758483231067657, 0.0604606531560421, -0.043258652091026306, 0.00455703167244792, + 0.014411864802241325, 0.00754028744995594, 0.011183606460690498, -0.06119854003190994, + -0.046809736639261246, 0.0016559232026338577, 0.04254382476210594, -0.02981526590883732, + 1.5864310626056977e-5, 0.02614888735115528, 0.004634855780750513, -0.03368917480111122, + 0.018873777240514755, -0.016233524307608604, 0.014838455244898796, 0.03682519495487213, + -0.02801666408777237, -0.007557581644505262, 0.014204333536326885, -0.022470979019999504, + 0.020972145721316338, 0.023289572447538376, 0.05252836272120476, 0.0540502555668354, + -0.009534889832139015, -0.001010992331430316, -0.05026858299970627, -0.03186751529574394, + 0.014515629969537258, -0.01086654607206583, -0.010353483259677887, -0.0383240282535553, + 0.01736341416835785, 0.012267379090189934, -0.010947252623736858, -0.010768544860184193, + 0.021145086735486984, -0.02349710464477539, -0.02797054685652256, -0.02308204211294651, + 0.05160600319504738, -0.008099467493593693, 0.015322694554924965, -0.013858448714017868, + 0.004343735985457897, -0.03694049268960953, -0.049115635454654694, 0.0036317899357527494, + -0.007782406639307737, -0.02972302958369255, -0.011339254677295685, -0.04782433062791824, + -0.01086654607206583, 0.017939887940883636, 0.007955349050462246, 0.01740953139960766, + -0.00975394994020462, -0.06161360442638397, -0.01151796244084835, -0.006808164529502392, + 0.006808164529502392, -0.007742053363472223, -0.006214396096765995, -0.022032858803868294, + 0.012774677015841007, 0.03161386400461197, 0.024211931973695755, -0.061567485332489014, + 0.019876843318343163, 0.051283176988363266, 0.014792338013648987, 0.00049973139539361, + -0.002829049015417695, -0.031775277107954025, 0.011045252904295921, 0.03165998309850693, + 0.06645599007606506, -0.0016905117081478238, 0.009448418393731117, 0.004384089261293411, + -0.016245054081082344, -0.016798468306660652, 0.038485441356897354, 0.020510965958237648, + -0.009148651733994484, -0.01464245468378067, 0.014999868348240852, 0.0024903700686991215, + -0.009333123452961445, 0.006375808734446764, 0.029653852805495262, 0.039684511721134186, + 0.011558315716683865, -0.01867777667939663, -0.030068913474678993, 0.038923561573028564, + -0.01380080170929432, 0.009223593398928642, 0.0002325714594917372, 0.059768885374069214, + -0.025849120691418648, 0.04127557948231697, 0.035257186740636826, 0.04116028547286987, + -0.058431461453437805, -0.038831327110528946, 0.004237087909132242, -0.02311663143336773, + 0.029676910489797592, 0.06862353533506393, 0.004358147736638784, 0.0532662495970726, + -0.011788904666900635, -0.01086654607206583, -0.004199617076665163, 0.020534023642539978, + 0.008877708576619625, -0.00432932423427701, -0.017155883833765984, 0.03585672006011009, + -0.009777008555829525, 0.010365013033151627, -0.021975211799144745, -0.02269003912806511, + -0.004631973337382078, 0.01508057489991188, -0.04049157351255417, -0.01731729693710804, + 0.0398920401930809, -0.04521866515278816, 0.05460367351770401, -0.02083379030227661, + -0.030483976006507874, -0.04722479730844498, -0.008283939212560654, 0.023681575432419777, + -0.06913083046674728, 0.003683672519400716, -0.04706338420510292, 0.006502633448690176, + -0.004280323628336191, -0.05026858299970627, 0.0005227903602644801, 0.021052852272987366, + -0.012705499306321144, 0.028201136738061905, -0.021064380183815956, 0.046348556876182556, + -0.03064538910984993, 0.011195136234164238, -0.038900505751371384, -0.006958048325031996, + 0.0005382831441238523, 0.0040872045792639256, 0.0030639623291790485, -0.041114166378974915, + -3.906966230715625e-5, 0.07009930908679962, -0.03511882945895195, -0.028293373063206673, + -0.004265911877155304, 0.016567878425121307, -0.03567224740982056, -0.01240573264658451, + -0.05418860912322998, 0.05737074837088585, -0.01645258441567421, -0.0018692187732085586, + -0.013673976995050907, 0.014861514791846275, -0.02926184982061386, -0.026886774227023125, + -0.02757854387164116, -0.00018933587125502527, -0.03242092952132225, 0.015841521322727203, + -0.03239786997437477, -0.0082032335922122, -0.030852919444441795, -0.0051565649919211864, + -0.0743882805109024, 0.04436548426747322, 0.017905300483107567, -0.02626418136060238, + -0.009390770457684994, -0.013466445729136467, 0.0240505188703537, 0.008278175257146358, + 0.034058116376399994, 0.0033118464052677155, -0.03954615443944931, -0.022551685571670532, + 0.05649450793862343, 0.03332022950053215, -0.04231323301792145, -0.02360086888074875, + 0.006410397123545408, 0.030899036675691605, -0.01782459393143654, -0.03165998309850693, + -0.02094908617436886, -0.013051384128630161, 0.0009893744718283415, 0.002706548199057579, + 0.0050153289921581745, -0.0031100802589207888, -0.014792338013648987, -0.0470864437520504, + -0.003484788816422224, -0.01065901480615139, -0.006312396842986345, -0.015403401106595993, + -0.0628126710653305, 0.014031391590833664, 0.05916935205459595, 0.05188271030783653, + -0.02803972363471985, -0.008969943970441818, -0.017628593370318413, 0.05192882940173149, + -0.008110997267067432, 0.04261299967765808, -0.028270313516259193, -0.024327227845788002, + 0.015806932002305984, 0.023635458201169968, -0.013812330551445484, -0.042405471205711365, + -0.028547020629048347, -0.003502083010971546, -0.04275135323405266, -0.0057301572524011135, + -0.03587977588176727, -0.01287844218313694, 0.023681575432419777, -0.007107931654900312, + -0.009696302004158497, -0.007857348769903183, -0.026033591479063034, 0.04484972357749939, + -0.053958021104335785, 0.021686973050236702, 0.04028404504060745, 0.04925398901104927, + -0.031775277107954025, -0.000438480987213552, -0.014653983525931835, -0.02398134209215641, + 0.026287240907549858, -0.009079474955797195, 0.04717867821455002, -0.015022927895188332, + 0.05160600319504738, 0.006975342519581318, -0.026540890336036682, 0.02621806412935257, + -0.039799805730581284, -0.003721143351867795, 0.01158137433230877, -0.016314230859279633, + -0.01019207015633583, -0.011027958244085312, -0.04805492237210274, 0.01728270761668682, + 0.029953619465231895, -0.049484577029943466, 0.010324659757316113, -0.0005815187469124794, + -0.012325026094913483, 0.016314230859279633, 0.001591069856658578, -0.03599507361650467, + 0.013501035049557686, 0.039384741336107254, 0.008497235365211964, 0.011039488017559052, + -0.03770143911242485, -0.023254984989762306, -0.007015695795416832, 0.017986007034778595, + -0.019657783210277557, 0.024165814742445946, 0.04851610213518143, -0.027716897428035736, + -0.0071482849307358265, 0.01064748503267765, 0.008935355581343174, -0.025157351046800613, + -0.05252836272120476, -0.015161281451582909, -0.010088304989039898, 0.013454916886985302, + -0.018020594492554665, -0.021156616508960724, 0.017490237951278687, -0.01333962194621563, + -0.002327516209334135, -0.005142153240740299, 0.04593349248170853, -0.017928360030055046, + -0.016706233844161034, -0.004162146244198084, 0.0178130641579628, 0.0038594973739236593, + -0.012002200819551945, 0.03066844679415226, -0.017501767724752426, -0.029515499249100685, + 0.02884678728878498, 0.026886774227023125, -0.00936194695532322, -0.04879280924797058, + -0.041044991463422775, 0.02750936709344387, 0.009044886566698551, 0.03320493549108505, + 0.03553389385342598, 0.0006845635361969471, 0.018389539793133736, -0.050453055649995804, + -0.005222859792411327, -0.0279244277626276, -0.005588921252638102, 0.0020709848031401634, + -0.011817729100584984, -0.008503000251948833, -0.013916096650063992, -0.04980740323662758, + 0.002193485852330923, -0.003983439411967993, -0.007044519297778606, -0.004499384202063084, + 0.005897334776818752, 0.006197101902216673, -0.03163692355155945, 0.013501035049557686, + -0.014573276974260807, -0.01603752188384533, -0.0027670778799802065, -0.006514162756502628, + 0.011500667780637741, -0.006254749372601509, 0.03772449493408203, -0.023635458201169968, + -0.0346115343272686, -0.0008243586635217071, 0.055387675762176514, 0.011368079110980034, + 0.02228650636970997, 0.02937714383006096, -0.007130990736186504, -0.029538556933403015, + 0.03244398906826973, 0.0036548487842082977, 0.033158816397190094, -0.015818461775779724, + 0.02714042365550995, 0.047363150864839554, -0.025549354031682014, -0.05049917474389076, + 0.05072976276278496, -0.0029184024315327406, -0.011506432667374611, -0.03694049268960953, + -0.024073578417301178, 0.038393206894397736, -0.0016688938485458493, 0.023347219452261925, + 0.0025307233445346355, -0.019784606993198395, -0.017190471291542053, -0.01734035462141037, + 0.03415035456418991, -0.019219662994146347, 0.03408117592334747, -0.02748630754649639, + -0.003251316724345088, -0.009863479994237423, -0.018308833241462708, -0.002056573051959276, + 0.006139454431831837, 0.0016170111484825611, 0.019231192767620087, 0.01553022488951683, + 0.022782275453209877, -0.0030380210373550653, 0.04014568775892258, 0.018827660009264946, + 0.04441159963607788, -0.007228991016745567, -0.017882240936160088, -0.00016672725905664265, + -0.021663915365934372, -0.02933102659881115, -0.037078846246004105, 0.004758797585964203, + -0.013143620453774929, -0.009419594891369343, 0.049530696123838425, -0.030760683119297028, + 0.013823860324919224, 0.001364082912914455, -0.07208237797021866, -0.024650052189826965, + -0.015668578445911407, 0.0018000418785959482, 0.015126693062484264, -0.04452689737081528, + 0.02316274866461754, -0.002081073122099042, 0.013431857340037823, -0.026471711695194244, + 0.013281974010169506, -0.008503000251948833, -0.008802766911685467, 0.012394203804433346, + 0.025987474247813225, -0.01817047782242298, 0.013766213320195675, 0.05386578291654587, + 0.005459214095026255, 0.021421795710921288, 0.022839922457933426, 0.00709063746035099, + -0.005496684927493334, -0.03020726703107357, -0.02670230157673359, 0.028500903397798538, + -0.01288997195661068, -0.0055687446147203445, -0.004265911877155304, -0.013016795739531517, + -0.008341587148606777, -0.02085684984922409, 0.010964546352624893, -0.014919161796569824, + 0.020061315968632698, -0.006473809480667114, -0.01019207015633583, 0.019000602886080742, + 0.0362948402762413, -0.013881508260965347, -0.017893770709633827, -0.023301102221012115, + -0.013743153773248196, 0.007027225103229284, -0.018308833241462708, -0.05580274015665054, + -0.06493409723043442, 0.03168304264545441, 0.02173309214413166, 0.008404999040067196, + 0.044596072286367416, 0.012463380582630634, 0.0032974346540868282, -0.025664648041129112, + 0.015126693062484264, -0.0039286743849515915, 0.011425726115703583, -0.012659382075071335, + -0.0036144955083727837, 0.01950789988040924, -0.002794460626319051, 0.007228991016745567, + 0.004718444310128689, -0.006214396096765995, -0.02349710464477539, -0.011713963001966476, + 0.03295128792524338, 0.053542960435152054, 0.01818200759589672, -0.03431176766753197, + -0.022309565916657448, 0.010284306481480598, -0.031198803335428238, -0.009967245161533356, + 0.005914628971368074, 0.027878310531377792, 0.016994470730423927, 0.03341246768832207, + -0.017098236829042435, 0.0010700809070840478, 0.026471711695194244, 0.03770143911242485, + -0.03998427838087082, -0.05298954248428345, -0.028155017644166946, 0.015714697539806366, + 0.008531823754310608, -0.05640227347612381, -0.03189057484269142, 0.007966878823935986, + 0.002934255637228489, 0.019300369545817375, -0.038854386657476425, 0.004185205325484276, + -0.0010441396152600646, -0.017075177282094955, -0.038001205772161484, -0.027832193300127983, + -0.044204071164131165, -0.04833162948489189, -0.03468070924282074, 0.028985140845179558, + 0.006767811719328165, 0.017432590946555138, 0.04252076521515846, 0.014400335028767586, + -0.002719518728554249, -0.004430206958204508, 0.01597987487912178, 0.03585672006011009, + -0.01823965646326542, -0.029054319486021996, -0.0041736760176718235, 0.029446320608258247, + 0.011235489509999752, -0.0011875376803800464, -0.011466079391539097, -0.04086051881313324, + 0.0217446219176054, -0.0034127295948565006, 0.0365254282951355, 0.028062783181667328, + 0.03541859984397888, -0.020741555839776993, -0.04229017347097397, -0.0041102636605501175, + 0.018424127250909805, 0.00744805159047246, -0.02838560752570629, -0.03435788303613663, + -0.001203390653245151, -0.004271676763892174, -0.019346486777067184, -0.02714042365550995, + 0.003277258016169071, -0.0006769973551854491, -0.010088304989039898, -0.014849985018372536, + 0.031221862882375717, 0.0013568770373240113, 0.010491837747395039, 0.023773811757564545, + 0.007494169287383556, 0.03297434747219086, 0.030829859897494316, 0.018896836787462234, + -0.012186672538518906, 0.02886984683573246, -0.006779341027140617, 0.0008956973906606436, + 0.006272043567150831, -0.05718627944588661, -0.021859915927052498, 0.02536488138139248, + 0.01085501629859209, 0.033573880791664124, -0.03375834971666336, -0.004228441044688225, + 0.008497235365211964, 0.0009230799041688442, -0.041460052132606506, 0.014342687092721462, + 0.00743652181699872, -0.0008827266865409911, -0.0006193498848006129, -0.029584676027297974, + 0.0007450933917425573, 0.010099834762513638, -0.018793070688843727, -0.06262819468975067, + -0.05464978888630867, 0.030760683119297028, -0.011909964494407177, -0.00957524310797453, + -0.023681575432419777, 0.003810497000813484, 0.024258051067590714, 0.03020726703107357, + -0.04694809019565582, -0.0373094342648983, 0.009875009767711163, -0.003202316351234913, + 0.02762466110289097, -0.002052249386906624, -0.022943688556551933, 0.013720095157623291, + -0.0009569477988407016, 0.019750019535422325, 0.011091371066868305, 0.0027022245340049267, + -0.007378874812275171, 0.05298954248428345, 0.014042920432984829, 0.0006553795537911355, + 0.03205198794603348, -0.03477294743061066, 0.024719228968024254, 0.005309330765157938, + -0.021594736725091934, -0.01995754987001419, 0.0024687524419277906, -0.02441946230828762, + -0.017582474276423454, 0.01814742013812065, -0.03631789982318878, -0.001996043138206005, + 0.009039121679961681, 0.011252784170210361, 0.021652385592460632, 0.016982940956950188, + -0.012117495760321617, 0.013893037103116512, 0.034334827214479446, -0.009846185334026814, + 0.011886905878782272, -0.026494771242141724, 0.020591672509908676, 0.038001205772161484, + 0.020061315968632698, -0.06548751145601273, -0.013950685039162636, -0.0005127020995132625, + -0.029169613495469093, -0.02036108262836933, 0.008975708857178688, 0.0082032335922122, + -0.034842122346162796, 0.010935722850263119, 0.039776746183633804, 0.013673976995050907, + 0.007880407385528088, 0.018354950472712517, -0.03594895452260971, 0.004949034191668034, + 0.04261299967765808, -0.004185205325484276, 0.022447919473052025, 0.0014274951536208391, + -0.01242879219353199, 0.006652516778558493, 0.0069811069406569, 0.012636322528123856, + 0.051698241382837296, 0.01397374365478754, 0.006006865296512842, 0.02137567661702633, + 0.015564813278615475, 0.029123496264219284, -0.027647720649838448, -0.04044545814394951, + 0.062397606670856476, 0.041529227048158646, -0.011731257662177086, -0.01001912821084261, + 0.008099467493593693, 0.02797054685652256, 0.03332022950053215, 0.01596834510564804, + -0.027186540886759758, -0.0068600475788116455, -0.006623692810535431, 0.002186279743909836, + -0.040560752153396606, -0.019715430215001106, -0.008964180015027523, 0.06119854003190994, + -0.03509577363729477, -0.008410763926804066, 0.03770143911242485, -0.004410030320286751, + -0.0020825143437832594, 0.003159080632030964, 0.020626259967684746, -0.010947252623736858, + -0.00039524538442492485, 0.034519296139478683, -0.02707124687731266, -0.006842753384262323, + 0.012647852301597595, -0.018343420699238777, -0.016694704070687294, -0.015726227313280106, + 0.021168146282434464, -0.01468857191503048, 0.0028881377074867487, -0.01176008116453886, + 0.019761549308896065, -0.01220973115414381, -0.028178077191114426, 0.005859863944351673, + -0.04118334501981735, 0.01774388737976551, 0.005450567230582237, 0.005294919013977051, + 0.016141287982463837, 0.01996907964348793, -0.00911982823163271, -0.003749967087060213, + -0.013616329059004784, 0.0049115633592009544, -0.014400335028767586, -0.01909283734858036, + -0.0022035741712898016, 0.011829257942736149, 0.028754552826285362, 0.0235432218760252, + -0.023750752210617065, -0.002511987928301096, -0.03018420934677124, -0.003150433534756303, + -0.0041506169363856316, 0.011212430894374847, -0.003974792081862688, -0.024742288514971733, + -0.04411183297634125, 0.01553022488951683, -0.08227445185184479, 0.022874511778354645, + 0.026794537901878357, -0.006364279426634312, -0.018770013004541397, 0.01694835163652897, + 0.030922096222639084, -0.012947618961334229, 0.024211931973695755, 0.01683305762708187, + 0.017928360030055046, 0.01240573264658451, -0.03435788303613663, 0.026563948020339012, + 0.03138327598571777, -0.014296569861471653, -0.02571076527237892, 0.001890836632810533, + 0.028662316501140594, 0.006375808734446764, -0.019657783210277557, -0.018989073112607002, + 0.006560280453413725, -0.017132824286818504, 0.05059140920639038, -0.020245786756277084, + -0.03590283542871475, 0.01600293442606926, -0.02309357188642025, 0.03866991400718689, + -0.016982940956950188, 0.00754028744995594, -0.003288787556812167, 0.017075177282094955, + -0.022136623039841652, -0.02661006711423397, 0.00455703167244792, -0.017109764739871025, + -0.017536357045173645, 0.03375834971666336, 0.010065246373414993, 0.005211330018937588, + 0.021514032036066055, -0.02353169210255146, -0.010572543367743492, -0.01592222787439823, + -0.016072111204266548, -0.00566386291757226, 0.03765532001852989, 0.007932290434837341, + -0.017570944502949715, 0.029146553948521614, 0.06290490925312042, 0.04053769260644913, + -0.03498047590255737, -0.0061798072420060635, -0.02794748730957508, 0.01047454308718443, + 0.0028751669451594353, -0.015057516284286976, -0.02803972363471985, 0.026471711695194244, + 0.018308833241462708, 0.01353562343865633, -0.037493906915187836, -0.030829859897494316, + 0.007966878823935986, 0.01731729693710804, 0.04037627950310707, 0.016325760632753372, + 0.01156407967209816, -0.02134108915925026, -0.033158816397190094, 0.0035482009407132864, + -0.012555615976452827, -0.014042920432984829, -0.01814742013812065, -0.02358933910727501, + -0.01131619606167078, -0.029676910489797592, -0.017859183251857758, 0.02707124687731266, + -0.043835125863552094, 0.026356417685747147, -0.040676046162843704, -0.0014505541184917092, + 0.0011284489883109927, -0.009719361551105976, -0.005675392225384712, 0.011454549618065357, + -0.0169137641787529, -0.011143253184854984, -0.02672536112368107, -0.01954248733818531, + 0.017859183251857758, -0.05072976276278496, 0.018112830817699432, 0.024626994505524635, + 0.010693603195250034, 0.006560280453413725, 0.010353483259677887, -0.018550951033830643, + -0.034450121223926544, -0.018919896334409714, 0.012993737123906612, -0.006554516032338142, + -0.0027656368911266327, 0.004118910990655422, 0.03419647365808487, -0.01378927193582058, + -0.015207399614155293, 0.04143699258565903, -0.005623509641736746, -0.03147551044821739, + 0.0006276366766542196, -0.004614679142832756, 0.01443492341786623, -0.006525692064315081, + -0.01868930645287037, -0.00025022600311785936, 0.0051767416298389435, 0.0217446219176054, + -0.01736341416835785, 0.054373081773519516, -0.05252836272120476, -0.01594528742134571, + 0.00709063746035099, -0.002447134582325816, -0.003715378697961569, 0.041921231895685196, + 0.00015186502423603088, -0.02271309867501259, 0.004412912763655186, 0.023347219452261925, + 0.0008257998269982636, 0.004179440904408693, 0.021179676055908203, -0.04805492237210274, + -0.014757749624550343, -0.029515499249100685, 0.0055053322575986385, 0.01443492341786623, + -0.02437334507703781, -0.014861514791846275, 0.019726959988474846, 0.0006546589429490268, + -0.014665513299405575, 0.04316641762852669, 0.03325105458498001, -0.029953619465231895, + 0.00911406334489584, 0.021571679040789604, -0.010641721077263355, 0.0025105467066168785, + -0.0024846054147928953, 0.013201267458498478, 0.011177842505276203, -0.010347718372941017, + -0.00349055347032845, 0.0033003168646246195, -0.035764481872320175, -0.00689463596791029, + -0.0011824935209006071, 0.0478704497218132, 0.018977543339133263, -0.017962947487831116, + 0.0023909283336251974, -0.05400414019823074, 0.017006000503897667, -0.04118334501981735, + 0.010699368081986904, 0.0032743755728006363, -0.026771480217576027, 0.032674580812454224, + 0.03908497467637062, -0.02094908617436886, 0.029607733711600304, -0.013950685039162636, + -0.012982207350432873, -0.02524958737194538, 0.019842255860567093, -0.010053716599941254, + -0.016129758208990097, -0.016291171312332153, 0.01913895644247532, -0.01736341416835785, + 0.01651023142039776, -0.010301601141691208, -0.047270916402339935, -0.011644786223769188, + 0.0028477844316512346, -0.011051017791032791, 0.014377276413142681, 0.03348164260387421, + -0.01313209068030119, 0.0230359248816967, -0.0045800902880728245, -0.0024658699985593557, + 0.020084373652935028, 0.013097502291202545, -0.003435788443312049, 0.03774755448102951, + 0.022966746240854263, -0.014607865363359451, -0.0014671278186142445, -0.0030581976752728224, + 0.0008092261850833893, 0.05003799498081207, 0.0033262583892792463, 0.027371013537049294, + -0.038900505751371384, 0.01351256389170885, -0.010353483259677887, 0.003954615443944931, + -0.0029011082369834185, -0.0034098471514880657, -0.0017438356298953295, -0.013443387113511562, + -0.03016114979982376, 0.004657914396375418, -0.04053769260644913, -0.007822760380804539, + 0.013823860324919224, -0.015645520761609077, -0.01867777667939663, -0.004920210689306259, + 0.0014274951536208391, 0.03242092952132225, 0.0023433691821992397, 0.02089143916964531, + 0.001462804269976914, 0.012970677576959133, 0.01307444367557764, -0.0068600475788116455, + 0.02836254984140396, 0.02212509512901306, 0.0051969182677567005, -0.015564813278615475, + 0.012036789208650589, 0.004167911130934954, -0.001614128821529448, 0.010889604687690735, + 0.029607733711600304, -0.012117495760321617, -0.01553022488951683, -0.029953619465231895, + 0.03059927001595497, -0.051283176988363266, 0.008024525828659534, 0.03694049268960953, + 0.0009288446744903922, -0.011829257942736149, -0.05543379485607147, 0.03846238553524017, + 0.0036750254221260548, -0.017605533823370934, -0.01954248733818531, -0.013281974010169506, + 0.021525559946894646, 0.004026675131171942, -0.004401383455842733, 0.004755915142595768, + -0.0445038378238678, 0.010255482979118824, -0.008047585375607014, -0.02446558140218258, + 0.006675575394183397, 0.02181379869580269, 0.013697035610675812, 0.02451169863343239, + 0.031221862882375717, 0.024603934958577156, 0.018574010580778122, 0.01242879219353199, + 0.014019861817359924, 0.03594895452260971, 0.019830726087093353, 0.0013727301266044378, + -0.003692319616675377, 0.015195869840681553, 0.03500353544950485, -0.0035885542165488005, + -0.004214029293507338, -0.005747451446950436, 0.01826271414756775, 0.011852317489683628, + 0.013443387113511562, 0.01091266330331564, 0.008520293980836868, -0.027232658118009567, + -0.008860413916409016, -0.019657783210277557, 0.003680790076032281, -0.02762466110289097, + -0.028339490294456482, 0.01694835163652897, 0.011662080883979797, 0.03521106764674187, + 0.015853051096200943, -0.0012423027073964477, -0.008670177310705185, 0.005537038203328848, + 0.0059953355230391026, 0.029238790273666382, -0.019242720678448677, 0.029561616480350494, + 0.005908864550292492, -0.008831590414047241, -0.014492570422589779, -0.016314230859279633, + 0.011235489509999752, -0.021214263513684273, -0.024142755195498466, 0.014411864802241325, + 0.05497261509299278, -0.004764562472701073, 0.0020608967170119286, 0.01444645319133997, + -0.005764745641499758, 0.026932891458272934, 0.006318161264061928, -0.01686764694750309, + -0.02626418136060238, -0.0017712181434035301, 0.008866178803145885, -0.023301102221012115, + 0.02836254984140396, 0.01815894991159439, 0.0005408052238635719, 0.017974477261304855, + 0.008935355581343174, 0.0016977175837382674, 0.002027749316766858, 0.012763147242367268, + 0.01110866479575634, 0.024142755195498466, -0.0478704497218132, 0.025872178375720978, + -0.020545553416013718, 0.03509577363729477, 0.03299740329384804, -0.02711736410856247, + -0.0029212848749011755, -0.005747451446950436, 0.011235489509999752, 0.024211931973695755, + 0.008330057375133038, -0.003920027054846287, -0.03251316770911217, -0.010526426136493683, + -0.00028103135991841555, -0.016613997519016266, 0.03283599019050598, 0.0026474595069885254, + 0.027278777211904526, 0.009973010048270226, -8.1911184679484e-6, 0.030945155769586563, + -0.004055498633533716, -0.012832324020564556, 0.012371144257485867, -0.010145952925086021, + -0.007488404866307974, -0.05520320683717728, -0.0075345225632190704, -0.008946885354816914, + -0.02891596406698227, 0.012820794247090816, 0.00421979371458292, -0.022874511778354645, + 0.02451169863343239, 0.04307417944073677, 2.72192824013473e-6, -0.0030264914967119694, + -0.00422555860131979, 0.0022741921711713076, 0.005317978095263243, 0.0017351885326206684, + 0.0030726094264537096, -0.0029443439561873674, -0.02259780280292034, 0.013109032064676285, + -0.013939155265688896, 0.010140188038349152, -0.02446558140218258, -0.019865313544869423, + 0.002030631760135293, -0.010509131476283073, 0.012717029079794884, 0.010238188318908215, + -0.01047454308718443, 0.02976914681494236, 0.0008121085702441633, -0.049161750823259354, + -0.01202525943517685, 0.008070643991231918, 0.049161750823259354, -0.021064380183815956, + 0.03544165566563606, 0.02976914681494236, 0.005211330018937588, 0.0018548069056123495, + -0.0013410239480435848, 0.010555249638855457, -0.016233524307608604, -0.03332022950053215, + 0.017478710040450096, 0.004000733606517315, 0.011725492775440216, 0.03447318077087402, + -0.007759348023682833, 0.022805335000157356, 0.035326361656188965, 0.0009958598529919982, + 0.04833162948489189, -0.02568770758807659, -0.0021992505062371492, 0.041114166378974915, + -0.006462280172854662, 0.04222099855542183, -0.0030985509511083364, 0.03500353544950485, + -0.00743652181699872, 0.005194035824388266, 0.026932891458272934, 0.010624426417052746, + -0.010071011260151863, -0.010030657984316349, -0.0019917197059839964, -0.004366795066744089, + 0.05677121505141258, -0.04833162948489189, 0.005222859792411327, 0.00825511571019888, + -0.009160180576145649, 0.0015824227593839169, 0.02880067005753517, 0.019196603447198868, + 0.009938421659171581, -0.011229724623262882, -0.04272829741239548, 0.016740821301937103, + 0.01352409366518259, -0.018124360591173172, 0.017455650493502617, 0.00015519776206929237, + 0.019334957003593445, 0.008820060640573502, -0.009062180295586586, 0.00818593893200159, + 0.03410423547029495, -0.020291905850172043, 0.007177108433097601, -0.021894505247473717, + 0.012613263912498951, -0.009419594891369343, 0.03101433254778385, -0.010803133249282837, + 0.006542986258864403, 0.026494771242141724, 0.003461729735136032, 0.018424127250909805, + -0.011529491282999516, -0.013097502291202545, 0.01641799509525299, -0.011471844278275967, + -0.02312815934419632, 0.013178208842873573, 0.010687838308513165, 0.001733747310936451, + 0.020142022520303726, -0.007223226595669985, 0.01912742666900158, -0.00216177967377007, + -0.02402746118605137, 0.0018144537461921573, -0.010976076126098633, -0.03783979266881943, + -0.011143253184854984, 0.008699001744389534, -0.011275842785835266, -0.018089773133397102, + 0.0032801402267068624, -0.0006593427970074117, 0.04007651284337044, -0.009206298738718033, + 0.010053716599941254, -0.00754605233669281, 0.058016400784254074, 0.045564550906419754, + 0.011074076406657696, -0.008260880596935749, -0.002916961442679167, -0.00172510021366179, + 0.0076613472774624825, 0.018770013004541397, -0.034842122346162796, 0.007586405612528324, + 0.004571443423628807, 0.015069045126438141, -0.04049157351255417, 0.03631789982318878, + 0.028085840865969658, -0.026471711695194244, -0.030437856912612915, 0.01333962194621563, + 0.00014907271543052047, 0.016187405213713646, 0.00018312074826098979, -0.014723160304129124, + 0.013570211827754974, -0.0007494169403798878, 0.002646018285304308, 0.01782459393143654, + -0.03689437359571457, 0.04664832353591919, -0.004830856807529926, -0.03154468908905983, + -0.010267011821269989, 0.023370278999209404, -0.03560306876897812, 0.01112595945596695, + -0.024995937943458557, -0.005162329878658056, 0.0021228676196187735, -0.03735555335879326, + 0.0169137641787529, 0.012809265404939651, 0.020188139751553535, -0.0029356968589127064, + 0.007079107686877251, 0.03691743314266205, -0.010382306762039661, 0.0073096975684165955, + -0.019300369545817375, 0.009436888620257378, 0.04009957239031792, -0.026356417685747147, + -0.007119460962712765, -0.024304168298840523, -0.014481041580438614, 0.02700207009911537, + 0.03412729501724243, -0.010347718372941017, -0.017190471291542053, -0.0028074311558157206, + 0.012301967479288578, 0.017663180828094482, 0.003784555708989501, 0.017997536808252335, + -0.004121793434023857, 0.031314097344875336, -0.02439640462398529, -0.01738647371530533, + 0.004208264406770468, 0.006496868561953306, 0.04514949023723602, 0.06539527326822281, + -0.006496868561953306, 0.0066352225840091705, -0.015680108219385147, 0.028131959959864616, + -0.009396535344421864, 0.014953750185668468, -0.004902916494756937, 0.026886774227023125, + ], + index: 51, + }, + { + title: "Epsom Downs", + text: "Epsom Downs is an area of chalk upland near Epsom, Surrey; in the North Downs. Part of the area is taken up by the racecourse, the gallops are part of the land purchased by Stanly Wootton in 1925 in order that racehorses can be trained without interference. It is open to users such as ramblers, model aircraft flyers, golfers and cyclists. But all users are subject to the controls laid down by the purchase order; see 'The Wootton Family - Australia to Epsom' by Bill Eacott page 66/67.", + vector: [ + -0.018810689449310303, 0.03345569223165512, -0.017085833474993706, -0.017264828085899353, + -0.01608509197831154, 0.04077818989753723, 0.024196796119213104, -0.02167460136115551, + 0.019982289522886276, 0.0006885184557177126, -0.021804779767990112, -0.019331401214003563, + -0.003205627901479602, -0.020047379657626152, 0.04761252552270889, 0.0410710908472538, + -0.056822601705789566, 0.008294765837490559, 0.0036510799545794725, 0.027890590950846672, + 0.04207997024059296, -0.0038707549683749676, -0.0302500631660223, -0.02063317969441414, + -0.020372822880744934, 0.04728708043694496, -0.017199739813804626, 0.018729329109191895, + -0.019754478707909584, -0.007538107223808765, 0.0016831581015139818, -0.017883174121379852, + -0.015312162227928638, 0.025303306058049202, -0.030900951474905014, 0.04279594495892525, + 0.008225608617067337, -0.03228409215807915, -0.06040249392390251, 0.027174612507224083, + 0.02292756177484989, -0.05513029173016548, 0.010861708782613277, 0.03784919157624245, + -0.036905400454998016, -0.0404527448117733, -0.002503888215869665, -0.0008603938040323555, + -0.014669409021735191, -0.016475625336170197, -0.022862473502755165, 0.005585440434515476, + 0.0257914736866951, 0.004417908377945423, -0.05067170411348343, -0.025319579988718033, + 0.009616883471608162, 0.0935327410697937, -0.0011146472534164786, 0.023659812286496162, + 0.0139778396114707, -0.020193828269839287, 0.009755197912454605, 0.014075472950935364, + 0.01558879017829895, -0.0029900209046900272, 0.025221945717930794, 0.004450452979654074, + 0.020356550812721252, -0.015255209058523178, -0.0008298833854496479, 0.02806958556175232, + 0.009625019505620003, 0.048686493188142776, -0.030933495610952377, 0.00394601421430707, + 0.0038809252437204123, 0.0567900575697422, -0.004147382918745279, 0.020828446373343468, + -0.023480817675590515, -0.03449711203575134, -0.08897651731967926, 0.007302159909158945, + 0.05298236012458801, 0.002654406474903226, 0.007566583808511496, -0.055065203458070755, + 0.06069539114832878, -0.017004473134875298, 0.03125894069671631, -0.03252817317843437, + -0.008087295107543468, 0.009031083434820175, -0.008803272619843483, 0.020177556201815605, + 0.030900951474905014, 0.004816578235477209, 0.01993347331881523, 0.020161284133791924, + -0.004015170969069004, 0.0113498754799366, -0.015141303651034832, -0.03941132500767708, + -0.0012865226017311215, 0.013684939593076706, -0.01207398995757103, -0.004580630920827389, + 0.05519538000226021, -0.02849266305565834, 0.06118356063961983, -0.03420421481132507, + 0.03563616797327995, -0.005024048965424299, -0.04552967846393585, 0.005890544969588518, + -0.00392160564661026, -0.019689390435814857, 0.025514846667647362, 0.0022801451850682497, + 0.0002285738883074373, 0.007582855876535177, -0.001893679960630834, 0.018127257004380226, + 0.02045418508350849, -0.0030632459092885256, 0.010821028612554073, -0.023676084354519844, + 0.010096914134919643, 0.005585440434515476, 4.980189987691119e-5, 0.002227260498329997, + 0.003378520254045725, -0.010113186202943325, 0.005931225139647722, -0.007928640581667423, + -0.01941276155412197, 0.01817607320845127, 0.052591826766729355, -0.008062887005507946, + -0.011463780887424946, 0.016377992928028107, 0.011382419615983963, 0.014970445074141026, + -0.014295147731900215, 0.05194093659520149, -0.0013119479408487678, 0.025221945717930794, + 0.021430518478155136, 0.011048839427530766, -0.013481536880135536, -0.012423842214047909, + 0.005174566991627216, 0.029859529808163643, 0.00011333348811604083, 0.008640550076961517, + -0.11397065222263336, -0.012814375571906567, -0.01889205165207386, 0.049272291362285614, + 0.0057074823416769505, -0.03262580558657646, 0.0010882049100473523, 0.011838042177259922, + 0.004731148947030306, -0.013180500827729702, 0.007184186484664679, 0.011211561970412731, + 0.03475746884942055, -0.0003434964455664158, -0.010642034001648426, -0.012122806161642075, + -0.04569240286946297, -0.005019980948418379, 0.022130222991108894, 0.023448273539543152, + -0.021300340071320534, 0.05366579070687294, 0.04797051474452019, 0.06697647273540497, + -0.02942018024623394, -0.02509176731109619, 0.026377273723483086, -0.016874294728040695, + -0.003610399551689625, -0.029176095500588417, -0.030526690185070038, 0.03407403454184532, + 0.04982554540038109, -0.06609777361154556, -0.014311419799923897, 0.00435688765719533, + 0.0744616910815239, 0.004971164278686047, 0.008892769925296307, 0.012033308856189251, + -0.029127279296517372, 0.06326640397310257, 0.050932057201862335, 0.0004706231993623078, + 0.0077618504874408245, -0.053503070026636124, 0.006972647737711668, -0.029859529808163643, + -0.017476366832852364, -0.005874272435903549, 0.03125894069671631, 0.0271583404392004, + 0.01991720125079155, 0.033911313861608505, 0.0007220798870548606, 0.020079923793673515, + -0.03810954466462135, 0.03270716965198517, -0.07381080090999603, 0.02250448428094387, + 0.01889205165207386, 0.011886859312653542, 0.02776041254401207, -0.015645742416381836, + 0.02227667346596718, -0.0491095706820488, -0.00851850863546133, -0.0025282965507358313, + 0.007879824377596378, 0.0524616464972496, -0.008298833854496479, 0.04767761379480362, + -0.022878745570778847, -0.054121412336826324, 0.00392160564661026, -0.03187728673219681, + 0.01796453446149826, 0.00678551709279418, -0.053600702434778214, 0.01244011428207159, + -0.03579889237880707, 0.008738183416426182, 0.0016129841096699238, -0.015873553231358528, + -0.012554019689559937, 0.03697049245238304, -0.0020970827899873257, -0.06215989217162132, + -0.03361841291189194, -0.011301059275865555, -0.01284691970795393, 0.030803319066762924, + 0.02837875671684742, -0.011862450279295444, 0.018403884023427963, 0.006187513004988432, + 0.03853262588381767, -0.0066878837533295155, 0.02878556214272976, -0.03810954466462135, + -0.053405437618494034, 0.008868361823260784, -0.04364210367202759, -0.018940867856144905, + -0.035766348242759705, -0.005406446289271116, 0.030917223542928696, -0.015645742416381836, + -0.02889946848154068, -0.022130222991108894, -0.010609489865601063, -0.001730957766994834, + 0.0003854482783935964, -0.02352963387966156, -0.02457105740904808, 0.012358753010630608, + -0.03654741123318672, -0.022113950923085213, 0.02540094032883644, -0.014173106290400028, + 0.05347052589058876, -0.007940844632685184, -0.011325467377901077, -0.0530799925327301, + 0.02011246792972088, -0.005569168366491795, -0.005504079628735781, -0.034236758947372437, + -0.006427528336644173, 0.018745601177215576, 0.018208617344498634, 0.012342480942606926, + 0.029680535197257996, -0.017915718257427216, -0.00917753390967846, -0.029468996450304985, + 0.01993347331881523, 0.06782262772321701, 0.007253343239426613, 0.003588025225326419, + -0.07986406981945038, -0.026247095316648483, -0.03374858945608139, -0.03269089758396149, + -0.04139653593301773, 0.0392160564661026, -0.023301823064684868, 0.04683145880699158, + 0.013701211661100388, 0.0118787232786417, -0.014889083802700043, -0.009738925844430923, + -0.02147933468222618, -0.025205673649907112, 0.0861126035451889, -0.005479671061038971, + 0.007489290554076433, -0.010145731270313263, -0.016361720860004425, -0.048133235424757004, + -0.010959342122077942, -0.017720451578497887, -0.0183713398873806, 0.01295269001275301, + -0.016142046079039574, -0.028639113530516624, -0.059295982122421265, -0.012578428722918034, + 0.057213135063648224, -0.008079159073531628, 0.019363945350050926, 0.03077077306807041, + -0.021593239158391953, 0.0026849168352782726, -0.035863980650901794, -0.03495273366570473, + -0.005715618375688791, 0.005516283679753542, 0.059816692024469376, 0.008176792412996292, + 0.02694680169224739, -0.026084372773766518, -0.005711550358682871, 0.029599172994494438, + 0.0291923675686121, 0.03086840733885765, 0.009348392486572266, -0.002491684164851904, + 0.01652444340288639, -0.0011949914041906595, 0.03850007802248001, -0.017476366832852364, + -0.05389360338449478, -0.02673526294529438, 0.0008690383983775973, 0.04497642442584038, + -0.02003110572695732, 0.04471606761217117, 0.007013328373432159, -0.019217494875192642, + -0.005459330976009369, -0.046896547079086304, -0.029045918956398964, -0.0057644350454211235, + 0.009006675332784653, -0.0014797552721574903, -0.008746320381760597, 0.017671633511781693, + -0.061866991221904755, 0.033488236367702484, 0.022976379841566086, 0.008404603227972984, + 0.005837659817188978, 0.030298879370093346, 0.010186411440372467, -0.010072506032884121, + -0.015523700974881649, 0.006041062995791435, -0.023659812286496162, -0.0311775803565979, + -0.021495606750249863, 0.02714206837117672, -0.02260211855173111, -0.00014212769747246057, + 0.019884657114744186, 0.07146760076284409, 0.0032341042533516884, 0.03654741123318672, + 0.0055488282814621925, -0.03177965059876442, 0.02157696709036827, -0.004853190388530493, + -0.009991144761443138, 0.009934192523360252, -0.03413912281394005, 0.052884723991155624, + 0.02557993493974209, 0.0029615445528179407, 0.055390648543834686, -0.015222664922475815, + 0.01547488383948803, 0.017313646152615547, 0.02034027874469757, 0.0108861168846488, + 0.0006163104553706944, -0.03898824751377106, -0.00031679985113441944, 0.025254489853978157, + 0.006098015699535608, -0.024424606934189796, -0.008127975277602673, 0.02043791301548481, + 0.012586564756929874, -0.023985257372260094, 0.011170880869030952, 0.05490247905254364, + 0.03094976767897606, 0.03778410330414772, 0.036189425736665726, 0.005142022389918566, + -0.06743209064006805, 0.045464590191841125, 0.002538466826081276, -0.07478713989257812, + -0.011268514208495617, -0.040615469217300415, -0.041233811527490616, -0.023903895169496536, + -0.008534780703485012, 0.05844982713460922, -0.005646461620926857, 0.022065134719014168, + 0.020177556201815605, -0.016874294728040695, 0.019754478707909584, -0.0037344752345234156, + 0.01785062812268734, -0.001143123721703887, -0.016036275774240494, 0.009088036604225636, + 0.03207255154848099, 0.00228217919357121, 0.06814806908369064, 0.036059245467185974, + -0.017378734424710274, -0.028964556753635406, -0.029062191024422646, -0.026084372773766518, + 0.010284044779837132, 0.008502236567437649, -0.006606522481888533, 0.025205673649907112, + -0.020616905763745308, 0.005430854391306639, 0.029436452314257622, 0.003647011937573552, + 0.02312282845377922, 0.007241139188408852, 0.02610064670443535, -0.031242668628692627, + 0.026149462908506393, -0.0007047906401567161, 0.013448992744088173, 0.000703265133779496, + 0.05324271321296692, 0.048361048102378845, 0.023350639268755913, -0.05275454744696617, + -0.009291439317166805, 0.039801858365535736, 0.011284786276519299, 0.02889946848154068, + -0.008412739261984825, 0.03207255154848099, -0.011065111495554447, -0.05047643557190895, + -0.06479599326848984, 0.05386105924844742, -0.03501782566308975, 0.02857402339577675, + -0.0004629956092685461, -0.033081430941820145, 0.018957139924168587, 0.028248580172657967, + 0.003496493911370635, -0.031633201986551285, 0.039053335785865784, 0.03488764539361, + -0.03778410330414772, -0.004328411538153887, 0.02229294553399086, -0.01734619028866291, + -0.032153911888599396, 0.01981956698000431, -0.009494842030107975, 0.0026361001655459404, + 0.003323601558804512, 0.003644977929070592, -0.018745601177215576, -0.0009519250597804785, + -0.010357270017266273, 0.009022947400808334, 0.017102107405662537, 0.06964511424303055, + -0.024294428527355194, 0.03417166694998741, -0.0012397399405017495, -0.013912750408053398, + 0.05366579070687294, 0.017720451578497887, -0.016345448791980743, 0.02588910609483719, + -0.005589508451521397, 0.007468950469046831, 0.059719059616327286, 0.013302542269229889, + -0.00095751864137128, -0.00239811884239316, 0.012098398059606552, -0.020828446373343468, + 0.0007978474604897201, 0.03249562904238701, 0.003911435604095459, 0.0305592343211174, + -0.020812172442674637, 0.013229317031800747, -0.003242240520194173, 0.012204167433083057, + -0.0239364393055439, -0.007749646436423063, 0.004926415625959635, 0.027386151254177094, + 0.003728373209014535, 0.007289955858141184, -0.00339275854639709, -0.011528870090842247, + 0.02640981785953045, 0.013880206272006035, -0.032267820090055466, -0.025661295279860497, + -0.06499125808477402, -0.031112490221858025, 0.015596926212310791, 0.01289573684334755, + -0.03664504736661911, 0.018940867856144905, -0.04022493585944176, 0.04282849282026291, + 0.010031825862824917, 0.009909783490002155, -0.04012730345129967, -0.0009280252270400524, + -0.001328220241703093, 0.05298236012458801, 0.008477828465402126, 0.01120342593640089, + -0.04718944802880287, 0.00023798126494511962, -0.046180568635463715, -0.03387876972556114, + 0.015873553231358528, 0.01222857553511858, 0.0030449398327618837, 0.02227667346596718, + 0.02042163908481598, 0.032235272228717804, -0.009551795199513435, -0.03671013563871384, + -0.005971905775368214, 0.01580032892525196, -0.0004146874416619539, -0.01485653966665268, + -0.06489362567663193, -0.022764839231967926, 0.01284691970795393, 0.023285550996661186, + 0.024912772700190544, 0.009478569962084293, 0.038955703377723694, 0.015181983821094036, + -0.029761895537376404, -0.012627244926989079, 0.02847639098763466, -0.020405367016792297, + 0.025726385414600372, 0.01653257943689823, 0.012334344908595085, 0.028834380209445953, + 0.011447508819401264, -0.017460094764828682, -0.029778167605400085, -0.017671633511781693, + -0.03374858945608139, -0.025986740365624428, -0.008429011330008507, 0.006191581021994352, + -0.005597644951194525, -0.026914257556200027, -0.024343246594071388, 0.020096195861697197, + 0.018615422770380974, -0.004454520996659994, -0.015580653212964535, -0.0205355454236269, + 0.011829906143248081, 0.02951781265437603, -0.024099161848425865, 0.008640550076961517, + -0.021202705800533295, -0.039574045687913895, 0.01993347331881523, 0.042893581092357635, + -0.04357701167464256, 0.013383903540670872, -0.016548851504921913, -0.01817607320845127, + 0.007013328373432159, 0.04155925661325455, -0.009079900570213795, -0.040713101625442505, + 0.009226350113749504, 0.04767761379480362, 0.004230778198689222, 0.01755772903561592, + -0.035343267023563385, -0.04100600257515907, -0.004613175056874752, 0.02086099050939083, + 0.03872789070010185, -0.008746320381760597, 0.008534780703485012, -0.035766348242759705, + 0.01641053706407547, 0.011227834038436413, -0.010511856526136398, 0.018029622733592987, + -0.026051828637719154, -0.02217903919517994, 0.03449711203575134, 0.039899490773677826, + -0.0009671802399680018, 0.022748567163944244, -0.010821028612554073, -0.0028883195482194424, + -0.02601928450167179, 0.017980806529521942, -0.005308812949806452, -0.010023689828813076, + -0.011626503430306911, 0.01589796133339405, 0.051452770829200745, 0.03137284517288208, + 0.05626934766769409, -0.04930483549833298, 0.01177295297384262, 0.021918684244155884, + 0.03976931422948837, -0.0005893595516681671, -0.010568808764219284, -0.026295913383364677, + -0.027060706168413162, -0.03531072288751602, -0.014897219836711884, -0.024847684428095818, + -0.03495273366570473, 0.0156782865524292, -0.012537747621536255, 0.0041860295459628105, + -0.003207661909982562, -0.026149462908506393, -0.03107994608581066, 0.01692311279475689, + -0.01222857553511858, -0.022048862650990486, -0.003724304959177971, -0.0583847351372242, + 1.9990680812043138e-5, 0.03827226907014847, 0.0016221372643485665, -0.01005623396486044, + -0.012204167433083057, -0.006565841846168041, -0.0012956757564097643, 0.03449711203575134, + 0.03233290836215019, -0.05005335807800293, -0.010658306069672108, -0.0355059914290905, + -0.07485222816467285, 0.017574001103639603, 0.019673118367791176, -0.002131661167368293, + 0.0135791702196002, -0.020991167053580284, 0.03352078050374985, -0.005312880966812372, + -0.012114670127630234, -0.0029290001839399338, -0.015971187502145767, 0.037816647440195084, + -0.0010780347511172295, -0.03446456789970398, 0.003622603602707386, -0.008876497857272625, + 0.02911100722849369, 0.016068819910287857, 0.026605084538459778, -0.018452700227499008, + 0.021121345460414886, -0.00635023508220911, -0.016695300117135048, -0.03278852999210358, + -0.016744118183851242, 0.010910525918006897, 0.008900905959308147, 0.019982289522886276, + -0.0038809252437204123, 0.057766392827034, 0.04224269092082977, -0.013082867488265038, + 0.06905931234359741, -0.014823995530605316, -0.010560672730207443, 0.015548109076917171, + 0.03160065785050392, 0.0118136340752244, 0.0051664309576153755, -0.00327478488907218, + 0.008640550076961517, 0.03579889237880707, -0.019900929182767868, -0.0270281620323658, + 0.032560717314481735, 0.008534780703485012, -0.007672353181988001, -0.01331881433725357, + -0.009063628502190113, -0.0017970636254176497, -0.015434203669428825, -0.018420156091451645, + -0.00570341432467103, -0.036059245467185974, -0.021951228380203247, -0.027402423322200775, + 0.04207997024059296, -0.013603578321635723, 0.03908587992191315, 0.020405367016792297, + 0.0055122156627476215, -0.004312139004468918, 0.0183713398873806, -0.020177556201815605, + -0.0590030811727047, 0.011235970072448254, 0.004983368329703808, -0.022781113162636757, + 0.018110984936356544, -0.045171692967414856, 0.003311397507786751, 0.027744140475988388, + 0.027744140475988388, 0.06372202932834625, -0.0030876542441546917, 0.0036795565392822027, + 0.0008085260633379221, 0.04409772530198097, -0.0460178479552269, 0.00804254598915577, + 0.01962430030107498, 0.08415994048118591, -0.03306515887379646, -0.004523678217083216, + 0.00239811884239316, 0.013530353084206581, -0.015385386534035206, 0.006858741864562035, + -0.028671657666563988, 0.015580653212964535, 0.0367426797747612, 0.03540835902094841, + 0.03456220030784607, -0.0028801835142076015, -0.004967096261680126, -0.005760367028415203, + 0.03127521276473999, -0.019152406603097916, -0.03156811371445656, 0.008420875295996666, + -0.0355059914290905, -0.017704179510474205, 0.011724136769771576, -0.013929023407399654, + -0.07700015604496002, -0.0014136494137346745, 0.031031129881739616, 0.02889946848154068, + 0.027695324271917343, 0.05148531496524811, 0.00059952971059829, 0.06479599326848984, + 0.025661295279860497, 0.03879297897219658, -0.017362462356686592, -0.021088801324367523, + -0.009665700607001781, 0.02126779593527317, 0.032674625515937805, 0.012139078229665756, + 0.03508291393518448, -0.03335805609822273, 0.0036958286073058844, -0.008795136585831642, + 0.023985257372260094, 0.031242668628692627, 0.018908323720097542, 0.009974872693419456, + 0.004198233596980572, -0.006586182396858931, 0.03384622558951378, -0.0015997629379853606, + -0.0245547853410244, 0.006093947682529688, 0.017085833474993706, 0.059588879346847534, + -0.009568067267537117, -0.015954915434122086, -0.021446790546178818, 0.005178635008633137, + 0.0059068170376122, 0.001152276759967208, 0.0013211010955274105, -0.0032117299269884825, + 0.006716359872370958, 0.00763574056327343, 0.0087219113484025, 0.007045872509479523, + 0.0029574765358120203, 0.015133167617022991, -0.004373160190880299, 0.016491897404193878, + -0.032251548022031784, 0.005544759798794985, 0.013025914318859577, -0.003488357877358794, + 0.013009642250835896, -0.01692311279475689, -0.04172198101878166, -0.018957139924168587, + 0.01570269465446472, 0.025661295279860497, -0.0038849932607263327, 0.03148675337433815, + -0.04435807839035988, -0.036905400454998016, 0.025514846667647362, 0.018908323720097542, + 0.027727868407964706, 0.009120580740272999, -0.010365406051278114, -0.019347673282027245, + 0.028329940512776375, 0.01991720125079155, -0.04139653593301773, -0.014775178395211697, + 0.031324028968811035, -0.007908300496637821, -0.007363181095570326, -0.032446812838315964, + 0.024229340255260468, -0.010430495254695415, -0.011309195309877396, 0.0017960466211661696, + -0.04735216870903969, -0.033683501183986664, -0.008754456415772438, -0.002052334137260914, + -0.03531072288751602, -0.012977098114788532, -0.005459330976009369, -0.016044411808252335, + -0.023985257372260094, -0.02094235084950924, 0.009079900570213795, -0.049369923770427704, + 0.007106893230229616, 0.015409795567393303, -0.0279556792229414, 0.009869103319942951, + -0.0060166544280946255, 0.010463039390742779, -0.018127257004380226, 0.014742634259164333, + 0.022439396008849144, -0.016858022660017014, -0.01222857553511858, -0.04904447868466377, + 5.418777436716482e-5, 0.022585846483707428, 0.03404149040579796, 0.00655363779515028, + -0.028313668444752693, -0.017915718257427216, 0.0171346515417099, -0.01119528990238905, + 0.0087219113484025, -0.02302519604563713, -0.0404527448117733, 0.008437147364020348, + -0.027125796303153038, 0.0076886252500116825, 0.019445305690169334, 0.01610136404633522, + -0.0043650236912071705, 0.012464523315429688, -0.0453995019197464, -0.00805475004017353, + -0.05076933652162552, -0.005630189087241888, 0.058059293776750565, -0.05210365727543831, + -0.010145731270313263, 0.019949745386838913, 0.041429080069065094, -0.02424561232328415, + -0.026670172810554504, 0.0056342571042478085, 3.775664299610071e-5, 0.024294428527355194, + -0.017915718257427216, -0.01512503158301115, 0.03544090315699577, 0.05799420177936554, + -0.002804924501106143, -0.006329894997179508, 0.00500370841473341, -0.0011126132449135184, + 0.044130269438028336, 0.017574001103639603, 0.004312139004468918, -0.0037019308656454086, + 0.04269831255078316, -0.01939648948609829, -0.045659858733415604, 0.030201246961951256, + 0.027532601729035378, 0.002918829908594489, -0.027386151254177094, -0.010576944798231125, + -0.030217519029974937, 0.0011461747344583273, -0.018599150702357292, 0.02165832929313183, + -0.0484912246465683, -0.007001123856753111, -0.008990403264760971, -0.0011227834038436413, + 0.002215056447312236, 0.013017778284847736, 0.01315609272569418, 0.003488357877358794, + -0.003533106530085206, 0.013660531491041183, -0.019949745386838913, -0.010365406051278114, + 0.05438176915049553, -0.015865417197346687, -0.0205355454236269, 0.02291128970682621, + 0.04533441364765167, -0.05171312391757965, 0.023920167237520218, -0.027402423322200775, + -0.05633443593978882, 0.0226997509598732, 0.02230921760201454, -0.015662014484405518, + -0.023985257372260094, -0.012456386350095272, -0.013473400846123695, 0.00025832155370153487, + 0.05818947032094002, 0.022764839231967926, 0.03950895741581917, -0.024017801508307457, + 0.00068038230529055, -0.028818106278777122, -0.010951206088066101, -0.008420875295996666, + -0.00032137639936991036, 0.01383139006793499, -0.014474142342805862, -0.002455071546137333, + 0.013587306253612041, 0.010764075443148613, -0.00394601421430707, 0.02230921760201454, + -0.018957139924168587, -0.006732632406055927, -0.015613198280334473, 0.038434989750385284, + 0.003915503621101379, 0.0020930147729814053, -0.017622817307710648, -0.03345569223165512, + -0.001235671923495829, 0.021235251799225807, 0.00295544252730906, -0.0423077791929245, + -0.0009488739888183773, 0.014539231546223164, -0.00459283497184515, 0.02457105740904808, + 0.03615688160061836, -0.02878556214272976, -0.003998898901045322, -0.012936417013406754, + -0.033276695758104324, -0.02147933468222618, 0.028248580172657967, 0.0019689390901476145, + 0.019754478707909584, -0.0355059914290905, -0.020291462540626526, 0.03335805609822273, + -0.0183713398873806, -0.021137617528438568, -0.0012377059319987893, -0.0734853595495224, + -0.01949412375688553, 0.02518940158188343, -0.022455668076872826, -0.01817607320845127, + 0.027581417933106422, 0.007330636493861675, 0.018208617344498634, -0.0028089925181120634, + 0.007106893230229616, -0.021902412176132202, -0.025238217785954475, 0.012326208874583244, + -0.00591088505461812, -0.0008105601300485432, -0.01383139006793499, 0.01569455862045288, + -0.023594724014401436, -0.01846897229552269, -0.0325932614505291, 0.022146495059132576, + -0.025140585377812386, -0.02963171899318695, 0.021544422954320908, 0.017899446189403534, + -0.00763980858027935, -0.048458680510520935, -0.003620569594204426, -0.006301418412476778, + -0.0012834715889766812, 0.008762592449784279, -0.004853190388530493, 0.01135801151394844, + 0.011984492652118206, -0.01724855601787567, 0.002158103510737419, 0.006008518394082785, + -0.010576944798231125, -0.013294406235218048, -0.00042994265095330775, -0.0017167195910587907, + 0.00015878130216151476, 0.01310727559030056, 0.02302519604563713, -0.014230059459805489, + 0.02889946848154068, -0.03116130642592907, 0.031633201986551285, -0.0002227260556537658, + -0.030217519029974937, -0.02343200147151947, 0.011471916921436787, 0.011919403448700905, + 0.03986694663763046, 0.02022637240588665, 0.011244106106460094, -0.009006675332784653, + 0.03181219473481178, 0.005068797618150711, -0.008278493769466877, -0.024294428527355194, + 0.009112444706261158, 0.007188254501670599, 0.03446456789970398, -0.001998432446271181, + -0.0069970558397471905, -0.009413480758666992, -0.0034130988642573357, -0.0010210820473730564, + 0.024001529440283775, 0.0003335805668029934, 0.00719639053568244, -0.04234032332897186, + -0.018452700227499008, 0.08318360149860382, 0.015360978431999683, 0.02878556214272976, + -0.010788483545184135, -0.024701233953237534, -0.02416425198316574, -0.055488280951976776, + 0.011447508819401264, 0.007180118467658758, -0.014343964867293835, 0.05298236012458801, + -0.021528150886297226, -0.013066595420241356, -0.0283950287848711, 0.014417190104722977, + -0.013457128778100014, 0.00435688765719533, 0.0398344025015831, 0.001339407404884696, + 0.0029920549131929874, -0.03151929751038551, -0.006797721143811941, -0.04357701167464256, + 0.003887027269229293, -0.023659812286496162, 0.03361841291189194, 0.029241185635328293, + -0.012765559367835522, -0.03651486709713936, -0.02509176731109619, -0.007696761749684811, + -0.01599559560418129, 0.022455668076872826, 0.006586182396858931, -0.019656846299767494, + -0.013603578321635723, 0.024082889780402184, 0.0042714583687484264, 0.022016318514943123, + 0.024310700595378876, -0.006866878364235163, -0.008909041993319988, 0.010227092541754246, + 0.0021723418030887842, -0.05373087897896767, 0.022439396008849144, -0.018289979547262192, + -0.008591733872890472, 0.000796321895904839, 0.008909041993319988, 0.01817607320845127, + -0.02631218545138836, 0.02588910609483719, -0.011056975461542606, 0.013920886442065239, + 0.03430184721946716, -0.013920886442065239, -0.0056342571042478085, 0.009551795199513435, + 0.003748713294044137, 0.007131301797926426, 0.01991720125079155, -0.01527148112654686, + 0.005133886355906725, -0.029696807265281677, 0.01222857553511858, 0.012090262025594711, + -0.012863192707300186, -0.020307734608650208, 0.043511923402547836, -0.028118401765823364, + 0.006301418412476778, 0.016638347879052162, 0.014897219836711884, -0.01785062812268734, + -0.012008900754153728, 0.04982554540038109, -0.00766014913097024, -0.013546626083552837, + -0.022943833842873573, 0.005406446289271116, 0.009462297894060612, -0.023903895169496536, + 0.020909806713461876, 0.03954150155186653, 0.015605062246322632, 0.00048613265971653163, + 0.0171346515417099, 0.026263367384672165, 0.012041444890201092, 0.026979345828294754, + 0.015409795567393303, -0.02940390631556511, -0.04159180074930191, -0.02891574054956436, + 0.005605780985206366, -0.009348392486572266, 0.015011126175522804, 0.019217494875192642, + -0.0015306059503927827, 0.00047469124547205865, 0.005386105738580227, 0.025221945717930794, + 0.0301198847591877, -0.04468352347612381, 0.010642034001648426, 0.010755939409136772, + -0.004763693083077669, -0.024017801508307457, 0.0131154116243124, -0.0023126897867769003, + -0.0010678645921871066, 0.008608005940914154, 0.014425326138734818, -0.016028139740228653, + -0.047221992164850235, 0.004426044877618551, -0.005178635008633137, -0.024798868224024773, + 0.023269278928637505, 0.0236272681504488, -0.01663021184504032, -0.0007892028079368174, + -0.0007098757196217775, -0.010698986239731312, -0.00938907265663147, 0.019526667892932892, + -0.018631694838404655, 0.006228193175047636, 0.014042928814888, -0.04048529267311096, + 0.013627986423671246, -0.03220272809267044, -0.029680535197257996, 0.004771829582750797, + -0.013196772895753384, 0.007517767138779163, 0.0008441215613856912, -0.029355090111494064, + 0.004133144859224558, 0.01827370561659336, -0.036059245467185974, -0.01588982529938221, + -0.0028313668444752693, 0.014880947768688202, -0.02590538002550602, 0.004405704326927662, + 0.035245634615421295, -0.004885734990239143, 0.004975232295691967, -0.011040703393518925, + 0.0118136340752244, -0.03459474816918373, -0.02437579073011875, 0.010438631288707256, + 0.005341357085853815, 0.034627292305231094, 0.00959247536957264, 0.010511856526136398, + 0.002898489823564887, 0.006541433744132519, -0.00980401411652565, -0.0245547853410244, + -0.019250039011240005, -0.0248639564961195, -0.00790016446262598, -0.001995381433516741, + 0.0016556987538933754, 0.002733733505010605, -0.009543659165501595, -0.0012153316056355834, + 0.012033308856189251, -0.038662802428007126, 0.015499292872846127, 0.07036109268665314, + -0.017508912831544876, -0.0009676887420937419, 0.013058459386229515, -0.011504461988806725, + 0.019022228196263313, 0.006911626551300287, -0.013538490049540997, -0.012505203485488892, + -0.006150900386273861, 0.01807844080030918, -0.025417212396860123, -0.020926078781485558, + 0.024815140292048454, 0.0257914736866951, 0.008445283398032188, -0.0077618504874408245, + -0.02291128970682621, 0.00722893513739109, -0.021316612139344215, 0.04396754503250122, + 0.028346212580800056, -0.0040294090285897255, -0.015596926212310791, 0.01680920645594597, + 0.03397640213370323, -0.006423459853976965, 0.023171646520495415, 0.02920863963663578, + -0.00020060599490534514, -0.007871688343584538, 0.024017801508307457, -0.01491349283605814, + 0.003323601558804512, 0.010609489865601063, -0.026605084538459778, 0.016361720860004425, + 0.012366889975965023, -0.006329894997179508, -0.009511114098131657, -0.029159823432564735, + 0.01026777271181345, 0.019429033622145653, -0.014929764904081821, -0.013326950371265411, + 0.03221900016069412, -0.024326972663402557, 0.019884657114744186, 0.03810954466462135, + 0.020991167053580284, -0.02652372419834137, -0.02032400667667389, 0.01558879017829895, + 0.025108039379119873, 0.049369923770427704, -0.01641053706407547, 0.00251405849121511, + -0.030477873980998993, 0.01962430030107498, 0.002328961854800582, -0.033781133592128754, + -0.004857258405536413, 0.0012478760909289122, -0.009071764536201954, -0.011569550260901451, + 0.04025747999548912, -0.0046538556925952435, 0.01931512914597988, 8.784457895671949e-5, + 0.00851850863546133, 0.005914953071624041, -0.00013043203216511756, 0.026653900742530823, + -0.039801858365535736, -0.015653878450393677, -0.00012598260946106166, -0.03589652478694916, + -0.021332884207367897, -0.01182177010923624, -0.01972193457186222, -0.008388331159949303, + 0.012358753010630608, 0.0007073332089930773, -0.0010454903822392225, 0.013937159441411495, + -0.031210124492645264, -0.02291128970682621, 0.04002966731786728, -0.0033663162030279636, + -0.019380217418074608, 0.0416894368827343, 0.02312282845377922, -0.013937159441411495, + 0.01619899831712246, 0.00456842640414834, -0.016020003706216812, -0.007753714453428984, + 0.04204742610454559, -0.013180500827729702, 0.012318072840571404, -0.02074708417057991, + 0.017069561406970024, 0.012139078229665756, 0.035961613059043884, 0.0063624391332268715, + 0.0171346515417099, 0.017167195677757263, -0.0018438462866470218, 0.013147956691682339, + 0.01047117542475462, -0.015173847787082195, -0.013400175608694553, -0.014327692799270153, + 0.011862450279295444, 0.014295147731900215, -0.013766300864517689, -0.03311397507786751, + 0.01609322801232338, 0.000692077970597893, 0.025661295279860497, -0.022976379841566086, + 0.04943501204252243, 0.033585868775844574, -0.01732991822063923, -0.005402378272265196, + -0.03384622558951378, -0.017997078597545624, 0.040713101625442505, -0.02590538002550602, + 0.02509176731109619, 0.0152796171605587, -0.01295269001275301, -0.0035473445896059275, + -0.0015407761093229055, 0.027272246778011322, 0.003567684907466173, 0.012684198096394539, + 0.01270047016441822, -0.0279556792229414, 0.04263322427868843, -0.009267031215131283, + -0.01619086228311062, -0.024082889780402184, -0.015963051468133926, -0.002505922457203269, + -0.02571011334657669, -0.011048839427530766, -0.003929741680622101, 0.04790542647242546, + 0.027402423322200775, -0.012358753010630608, 0.001383138936944306, -0.00024853277136571705, + 0.026035556569695473, 0.00924262311309576, 0.015743376687169075, 0.005304744932800531, + -0.0013668667525053024, -0.020258918404579163, -0.026897985488176346, 0.023253006860613823, + -0.011325467377901077, 0.012879464775323868, 0.01577592082321644, -0.004682332277297974, + 0.04614802449941635, 0.009690108709037304, 0.04653855785727501, -0.017199739813804626, + -0.004426044877618551, 0.018322523683309555, -0.020405367016792297, -0.022846201434731483, + -0.018094712868332863, -0.008648687042295933, -0.01619086228311062, 0.021804779767990112, + 0.012554019689559937, 0.016760390251874924, 0.003937878180295229, -0.013196772895753384, + -0.022520756348967552, 0.008331377990543842, -0.009559931233525276, 0.015100623480975628, + -0.0019292754586786032, 0.0014329726109281182, -0.027809228748083115, -0.03291870653629303, + -0.017362462356686592, -0.008144247345626354, 0.017118379473686218, -0.025368396192789078, + -0.0010770177468657494, -0.021023713052272797, 0.046603646129369736, -0.017411278560757637, + -0.009462297894060612, 0.0005944446311332285, -0.004332479555159807, -0.023594724014401436, + 0.041526712477207184, -0.016792934387922287, 0.009421616792678833, -0.016223406419157982, + 0.03853262588381767, 0.007505563087761402, 0.031193852424621582, -0.034529656171798706, + -0.03264208137989044, -0.018713057041168213, -0.019445305690169334, 0.008290697820484638, + -0.007212663069367409, 0.022878745570778847, -0.006940103136003017, 0.015181983821094036, + -0.03589652478694916, 0.026361001655459404, 0.02271602302789688, -0.007505563087761402, + -0.001532639958895743, 0.026165734976530075, -0.011992628686130047, -0.008245948702096939, + 0.030787046998739243, 0.004340615589171648, 0.00025921143242157996, 0.011642775498330593, + 0.01621527038514614, -0.01755772903561592, 0.018322523683309555, -0.005353561602532864, + -0.02663762867450714, 0.02073081210255623, 0.002802890492603183, -0.00722486712038517, + 0.023301823064684868, 0.008648687042295933, -0.014701953157782555, 0.010764075443148613, + 0.0016445115907117724, 0.025108039379119873, 0.03046160191297531, -0.017704179510474205, + -0.023187918588519096, -0.023187918588519096, 0.050834424793720245, 0.0038219382986426353, + -0.028443846851587296, 0.004047715570777655, -0.005272200331091881, 0.010048097930848598, + -0.04510660097002983, 0.004507405683398247, 0.01672784611582756, 0.0017919786041602492, + -0.022667206823825836, -0.0001021463394863531, -0.027125796303153038, -0.029176095500588417, + -0.01910359039902687, -0.01175668090581894, 0.014335828833281994, -0.020372822880744934, + ], + index: 52, + }, + { + title: "Vichitravirya", + text: "In the epic Mahabharata, Vichitravirya (Sanskrit: \u0935\u093f\u091a\u093f\u0924\u094d\u0930\u0935\u0940\u0930\u094d\u092f, vicitrav\u012brya) is the younger son of queen Satyavat\u012b and king \u015aa\u1e45tanu and grandfather of the Pandavas and Kaurava. His elder brother, Chitr\u0101ngada, had initially succeeded their father to the throne of Hastinapura, but when he died childless, Vichitravirya succeeded him.Vichitravirya was still a child when he was crowned king, hence Bhishma ruled as his regent.", + vector: [ + 0.024954576045274734, 0.006638835649937391, -0.016168976202607155, 0.04166955128312111, + 0.028987513855099678, 0.0384928360581398, -0.022299041971564293, -0.06968916207551956, + -0.02660497836768627, -0.00312552647665143, 0.02460712380707264, 0.014853619039058685, + -0.056088853627443314, -0.02274576760828495, 0.04789888858795166, 0.04554117098450661, + -0.02485530450940132, 0.02573634497821331, -0.04896606504917145, -0.017856605350971222, + -0.04616162180900574, 0.018278513103723526, -0.029831327497959137, -0.030278053134679794, + -0.01458062045276165, -0.02026395872235298, -0.042488548904657364, -0.021827498450875282, + -0.015151435509324074, 0.004439333453774452, 0.021666180342435837, 0.03583730384707451, + 0.005785713903605938, -0.01870042085647583, -0.01290540024638176, -0.045069627463817596, + -0.05653557926416397, -0.0038374951109290123, -0.029409421607851982, -0.053607046604156494, + -0.01946978084743023, -0.006086633540689945, 0.014766755513846874, -0.0003139098989777267, + 0.018067559227347374, 0.0192464180290699, -0.017335426062345505, 0.0012789064785465598, + -0.009617004543542862, -0.035266488790512085, 0.05020697042346001, -0.007004902232438326, + 0.03414967283606529, 0.0699373409152031, -0.007433013990521431, -0.014791573397815228, + 0.006725698709487915, 0.0010950976284220815, 0.03181677311658859, 0.005608885549008846, + -0.010057525709271431, -0.01585875079035759, 0.012179471552371979, 0.02387499064207077, + -0.002492665546014905, -0.011496974155306816, -0.02133113704621792, 0.00226930296048522, + -0.003403178881853819, -0.0027641132473945618, 0.03988264873623848, -0.0025655687786638737, + -0.010932362638413906, 0.0019559746142476797, -0.0006530256359837949, -0.002917675068601966, + 0.015548525378108025, 0.060655377805233, -0.020003369078040123, 0.06025829166173935, + 0.007830102927982807, 0.014295211993157864, -0.018985828384757042, 0.091727614402771, + 0.03943592309951782, -0.041247643530368805, 0.00946189183741808, -0.04174400493502617, + -0.01383607741445303, 0.023093219846487045, 0.050877057015895844, -0.04067682847380638, + 0.007979012094438076, -0.010926158167421818, -0.0029409420676529408, 0.03139486536383629, + 0.038443200290203094, 0.006818766705691814, -0.042637456208467484, 0.0054413634352386, + 0.031196322292089462, -0.04626089334487915, -0.007439218461513519, 0.0032914974726736546, + -1.229997451446252e-6, -0.026009343564510345, -0.030575869604945183, 0.0018706625560298562, + 0.03583730384707451, 0.03864174708724022, -0.026183070614933968, -0.02248517796397209, + 0.014382075518369675, 0.035961393266916275, -0.003921255934983492, -0.00030596036231145263, + 0.014977709390223026, -0.005038069561123848, -0.030054690316319466, -0.052068326622247696, + 0.014816392213106155, -0.0010997509816661477, -0.020971274003386497, -0.04005637764930725, + 0.0027051703073084354, -0.01775733381509781, -0.027423974126577377, 0.019817234948277473, + 0.02274576760828495, 0.054847948253154755, -0.045764531940221786, -0.045144081115722656, + -0.032933589071035385, 0.05514576658606529, 0.003958483226597309, 0.015809115022420883, + 0.0042687091045081615, -0.021753044798970222, 0.00907721184194088, 0.008276828564703465, + 0.009858980774879456, 0.0466579832136631, -0.019420145079493523, 0.012365606613457203, + 0.01775733381509781, -0.020499730482697487, -0.015287934802472591, 0.011292224749922752, + 0.04516889899969101, -0.007681194692850113, -0.02453266829252243, 0.011726541444659233, + -0.006719494238495827, 0.05186977982521057, 0.0025407506618648767, 0.00771842198446393, + 0.03017878159880638, -0.0416199155151844, 0.04216591268777847, -0.00585086178034544, + -0.016243431717157364, 0.031196322292089462, -0.06581754237413406, -0.013612715527415276, + 0.061151739209890366, -0.026530524715781212, -0.01625584065914154, -0.008810416795313358, + -0.03477012366056442, 0.010373956523835659, -0.004845729563385248, -0.023068401962518692, + 0.024693986400961876, 0.04569007828831673, -0.01190026756376028, 0.017658062279224396, + -0.04276154562830925, -0.021492455154657364, -0.010981999337673187, -0.003521064529195428, + -0.034323401749134064, -0.06517226994037628, -0.0707811564207077, 0.03434821963310242, + 0.05737939476966858, 0.05504649505019188, 0.0567341223359108, -0.009120643138885498, + -0.097137950360775, 0.022410722449421883, -0.01975518837571144, 0.014543392695486546, + 0.01129842922091484, 0.008531213738024235, -0.01190026756376028, -0.02479325793683529, + 0.04487108439207077, -0.0041291075758636, 0.05996047332882881, -0.009288164786994457, + 0.014444120228290558, -0.04159509763121605, -0.01990409754216671, 0.01935810036957264, + -8.61361768329516e-5, 0.035489849746227264, -0.020760321989655495, -0.03305767849087715, + 0.011602451093494892, 0.009827958419919014, -0.028441516682505608, 0.030749596655368805, + 0.013550669886171818, -0.001997855259105563, -0.006793948356062174, -0.0018489466747269034, + -0.004501378629356623, -0.028168516233563423, -0.05410340800881386, 0.00016936397878453135, + -0.005432056728750467, 0.018613558262586594, 0.02023914083838463, 0.0041229031048715115, + -0.022038452327251434, -0.01909751072525978, -0.05802466347813606, -0.02551298215985298, + -0.05693266913294792, 0.025860436260700226, 0.03000505454838276, 0.06358391046524048, + 0.03970892354846001, -0.02675388753414154, -0.025785982608795166, -0.0016472998540848494, + 0.02248517796397209, -0.05047996714711189, 0.014890845865011215, -0.019854461774230003, + 0.03194086626172066, 0.005357602145522833, -0.0165164303034544, 0.003257372649386525, + 0.03506794199347496, 0.015238299034535885, -0.009064802899956703, -0.04804779589176178, + 0.0009205955429933965, -0.02729988470673561, 0.05271359533071518, 0.021715817973017693, + 0.004147720988839865, 0.01698797382414341, -0.027721792459487915, 0.06105246767401695, + -0.01659088395535946, 0.020512141287326813, 0.02792033553123474, 0.016466794535517693, + -0.016057295724749565, -0.06110210344195366, -0.00674431212246418, 0.03764902055263519, + 0.0037940635811537504, -0.022770585492253304, 0.007761853281408548, 0.013637533411383629, + -0.012204289436340332, 0.011447337456047535, 0.03792202100157738, -0.013972577638924122, + -0.023701263591647148, -0.04578934982419014, 0.007606740575283766, -0.048320796340703964, + -0.013550669886171818, 0.061151739209890366, 0.007811489515006542, 0.02876415103673935, + 0.06899425387382507, 0.020313596352934837, -0.023031175136566162, -0.022336268797516823, + -0.0074950591661036015, 0.03551466763019562, 0.04035419225692749, 0.04129727929830551, + 0.02259685844182968, -0.0334547683596611, 0.03864174708724022, -0.035713210701942444, + 0.015771888196468353, -0.03663147985935211, -0.016566066071391106, -0.005965644959360361, + -0.022373495623469353, -0.009536346420645714, -0.03079923242330551, -0.07375932484865189, + 0.05370631814002991, 0.0014254882698878646, -0.00915166549384594, 0.006471313536167145, + -0.08135365694761276, -0.01851428486406803, 0.008841440081596375, 0.045292988419532776, + -0.006477518007159233, -0.009058598428964615, -0.0322386808693409, -0.015908386558294296, + 0.015734661370515823, 0.04104910045862198, 0.06700880825519562, 0.021715817973017693, + 0.006207621656358242, 0.0076005361042916775, -0.03742565959692001, 0.056088853627443314, + -0.01862596720457077, -0.026257524266839027, 0.036284029483795166, -0.008264419622719288, + 0.03888992592692375, 0.007110379170626402, -0.01325285341590643, 0.02485530450940132, + -0.004302834160625935, -0.027696972712874413, 0.01208640355616808, 0.006589199416339397, + -0.019879279658198357, -0.001563538797199726, 0.04169436916708946, 0.00017837992345448583, + 0.036432936787605286, 0.012508310377597809, -0.02161654457449913, -0.017744924873113632, + -0.019953733310103416, 0.039311833679676056, 0.03794683888554573, 0.017074836418032646, + 0.033876676112413406, 0.021641362458467484, -0.01290540024638176, 0.011881654150784016, + -0.006936652585864067, -0.02146763727068901, 0.0004719312419183552, 0.029111603274941444, + 0.006148678716272116, -0.024309305474162102, -0.01208640355616808, 0.021480046212673187, + 0.013513443060219288, -0.008829031139612198, 0.03640811890363693, -0.015846341848373413, + -0.011317042633891106, 0.005515817552804947, -0.0583224818110466, 0.02321731112897396, + 0.0161441583186388, -0.05792539194226265, -0.0020862696692347527, -0.030898505821824074, + 0.023937035351991653, 0.018563920632004738, 0.009703868068754673, 0.007867330685257912, + 0.028168516233563423, 0.026034163311123848, 0.019668325781822205, 0.011720336973667145, + 0.03412485495209694, 0.004585139453411102, 0.025761162862181664, 0.001969934906810522, + 0.0007759527070447803, -0.025202756747603416, -0.013662351295351982, 0.03365331143140793, + -0.009598391130566597, -0.031990502029657364, 0.026803523302078247, 0.004141516517847776, + 0.003150344593450427, -0.017434699460864067, 0.00954875536262989, 0.014456530101597309, + 0.02033841423690319, -0.032064955681562424, 0.017372652888298035, -0.00834507867693901, + 0.03779793158173561, -0.036507390439510345, 0.04834561422467232, -0.027101339772343636, + 0.0029083683621138334, 0.029111603274941444, -0.0007018862525001168, -0.021492455154657364, + -0.011838222853839397, 0.04308418184518814, -0.04611198604106903, 0.020685866475105286, + 0.024706395342946053, -0.011720336973667145, 0.0015930102672427893, 0.0361599363386631, + 0.022472769021987915, -0.00503186509013176, 0.014121485874056816, -0.005401033908128738, + 0.032610952854156494, 0.05479831248521805, 0.02285744808614254, -0.014506165869534016, + -0.0040360395796597, 0.010342933237552643, 0.021169818937778473, 0.028788968920707703, + -0.04564044252038002, 0.00043896972783841193, -0.01345139741897583, 0.02729988470673561, + 0.040776100009679794, -0.030923323705792427, 0.003303906414657831, -0.024073533713817596, + 0.025934889912605286, 0.028714515268802643, -0.02063623070716858, -0.06834898144006729, + -0.00794798880815506, 0.020499730482697487, 0.016566066071391106, -0.015809115022420883, + 0.02953351102769375, 0.0057577937841415405, -0.006638835649937391, -0.06214446574449539, + -0.026183070614933968, 0.011273611336946487, 0.027275066822767258, -0.019221600145101547, + 0.02365162782371044, 0.020152278244495392, 0.005798123311251402, -0.028242971748113632, + -0.04472217336297035, -0.028242971748113632, -0.03290877118706703, 0.04636016860604286, + 0.009772117249667645, -0.0033163155894726515, -0.016206204891204834, 0.013128762133419514, + 0.012167061679065228, -0.0005715913139283657, -0.031767137348651886, -0.025438528507947922, + 0.0014076502993702888, 0.005469283554702997, 0.03576285019516945, -0.018539102748036385, + -0.008084488101303577, 0.013699578121304512, 0.015647796913981438, 0.021628953516483307, + -0.04112355411052704, 0.0069986977614462376, 0.02690279483795166, -0.031072232872247696, + 0.014890845865011215, 0.0007767282659187913, 0.023539945483207703, -0.004557219333946705, + -0.0015829280018806458, -0.007743239868432283, -0.06586717814207077, 0.0392870157957077, + -0.011658291332423687, -0.0023778819013386965, -0.07480168342590332, 0.00550340861082077, + -0.028391879051923752, 0.034869398921728134, -0.012291152030229568, -0.01753397099673748, + 0.060456834733486176, -0.045367445796728134, -0.0404534637928009, 0.018712829798460007, + -0.06820007413625717, 0.007420605048537254, 0.014419302344322205, -0.022696131840348244, + 0.04305936396121979, -0.011397701688110828, 0.011037839576601982, -0.027821063995361328, + -0.009430869482457638, 0.013004671782255173, -0.02485530450940132, 0.020735502243041992, + -0.014779164455831051, -0.04283599928021431, 0.020077824592590332, 0.033628493547439575, + 0.011745154857635498, -0.011676904745399952, 0.028863422572612762, -0.02059900388121605, + 0.05097632855176926, -0.004597548861056566, -0.003449712647125125, -0.009492914192378521, + -0.015647796913981438, 0.023142855614423752, -0.014630256220698357, -0.011348065920174122, + -0.015325162559747696, 0.03263577073812485, -0.012551742605865002, 0.001286662183701992, + -0.03623439371585846, 0.0036203369963914156, 0.015027345158159733, -0.007743239868432283, + -0.03397594764828682, -0.013302489183843136, 0.006496131420135498, 0.01100681722164154, + 0.04509444534778595, -0.02208808809518814, 0.018675602972507477, 0.0021777863148599863, + 0.002779624657705426, -0.018824510276317596, 0.004523094277828932, 0.0188493300229311, + -0.006012178957462311, -0.027275066822767258, -0.04655871167778969, 0.02566189132630825, + -0.014419302344322205, -0.03834392875432968, 0.025934889912605286, -0.03385185822844505, + 0.005680237431079149, 0.026083799079060555, -0.006309995893388987, 0.03824465721845627, + 0.014568210579454899, -0.00498533109202981, 0.04658352956175804, -0.01195610873401165, + -0.019184373319149017, -0.007687399163842201, 0.026853159070014954, 0.031370047479867935, + -0.013426579535007477, 0.0431586354970932, 0.01644197665154934, -0.006688471883535385, + 0.0326605886220932, 0.02660497836768627, 0.0357876680791378, 0.025128303095698357, + -0.001009009894914925, -0.05172087252140045, 0.015523706562817097, 0.003297701943665743, + -0.0022088089026510715, -0.0020862696692347527, 0.0052055916748940945, 0.028416696935892105, + 0.07048333436250687, -0.0019637304358184338, 0.02784588187932968, 0.009108234196901321, + -0.016069704666733742, -0.03481976315379143, -0.014853619039058685, 0.04519371688365936, + 0.006949061527848244, -0.02041286788880825, -0.01764565333724022, -0.002069207141175866, + 0.018563920632004738, 0.009858980774879456, 0.0400315560400486, -0.020934047177433968, + -0.009567368775606155, 0.059662654995918274, -0.005897395312786102, -0.028342243283987045, + -0.01325285341590643, 0.04725361987948418, -0.002115741139277816, 0.018898965790867805, + 6.858901906525716e-5, -0.008438145741820335, -0.031767137348651886, -0.052614323794841766, + 0.028193335980176926, -0.002546955132856965, -0.04229000210762024, -0.018650785088539124, + -0.03047659806907177, 0.03576285019516945, 0.04554117098450661, 0.045764531940221786, + 0.002669494366273284, -0.007011106703430414, 0.0020040597300976515, 0.008090692572295666, + 0.002069207141175866, 0.006967674940824509, -0.0025857333093881607, 0.012793718837201595, + -0.018563920632004738, -0.02628234401345253, -0.03970892354846001, 0.011931289918720722, + -0.021417999640107155, 0.02729988470673561, 0.0004889936535619199, 0.04472217336297035, + 0.011192952282726765, 0.01796828769147396, 0.007544695399701595, -0.05762757360935211, + -0.005338988732546568, -0.007172424346208572, 0.01862596720457077, -0.00021328034927137196, + -0.0031643048860132694, -0.014456530101597309, -0.0006173496367409825, -0.03747529536485672, + -0.0384928360581398, -0.026331979781389236, 0.01764565333724022, -0.007612945046275854, + -0.022174950689077377, 0.01851428486406803, -0.03164304792881012, 0.005553044844418764, + -0.01113711204379797, -0.03251168131828308, 0.02063623070716858, -0.0003474530822131783, + -0.025364074856042862, 0.01862596720457077, -0.02103332057595253, 0.0014324684161692858, + 0.019296053797006607, -0.026853159070014954, -0.009300574660301208, 0.02358958125114441, + -0.004085675813257694, -0.017918651923537254, 0.011019226163625717, -0.001861355733126402, + 0.0016721179708838463, 0.014828801155090332, 0.026803523302078247, -0.004234584514051676, + -0.01593320444226265, -0.02595970779657364, 0.014084258116781712, 0.0012750286841765046, + -0.01956905424594879, 0.004591344390064478, -0.05549322068691254, 0.02125668339431286, + 0.037673842161893845, 0.021628953516483307, 0.006812562234699726, 0.00136034085880965, + 0.05062887817621231, -0.016714975237846375, 0.044672537595033646, 0.0010508904233574867, + 0.016863882541656494, 0.003204634180292487, 0.015995251014828682, 0.05186977982521057, + 0.014903254806995392, -0.009071007370948792, 0.01734783500432968, 0.03710302338004112, + 0.014928072690963745, 0.029483875259757042, 0.008537418209016323, 0.016938338056206703, + 0.0221625417470932, -0.007737035397440195, 0.014568210579454899, 0.022249406203627586, + -0.012483492493629456, -0.023639218881726265, -0.013352124951779842, 0.0024290692526847124, + -0.002545404015108943, -0.010038912296295166, 0.012278743088245392, -0.0025655687786638737, + 0.022286633029580116, -0.024904940277338028, -0.03437303751707077, -0.008010034449398518, + -0.005543737672269344, -0.02595970779657364, 0.029210876673460007, 0.01920919120311737, + 0.032536499202251434, 0.04159509763121605, -0.012880581431090832, 0.03132041171193123, + 0.02628234401345253, -0.012868172489106655, 0.002596591366454959, -0.015846341848373413, + 4.5734093873761594e-5, 0.002345308195799589, -0.008456760086119175, -0.0074950591661036015, + 0.022336268797516823, 0.01388571411371231, 0.020896820351481438, -0.016901109367609024, + -0.015871159732341766, -0.007662581279873848, 0.03263577073812485, -0.018898965790867805, + -0.011751359328627586, -0.009319188073277473, 0.015064572915434837, -0.004771275445818901, + -0.021566908806562424, 0.0031829182989895344, 0.015374798327684402, 0.0059160091914236546, + -0.015833932906389236, 0.04603753238916397, 0.042811181396245956, -0.021492455154657364, + 0.01570984348654747, -0.06586717814207077, 0.027002068236470222, -0.008773189969360828, + -0.02067345753312111, -0.024545077234506607, -0.005131137557327747, 0.013165989890694618, + -0.014779164455831051, 0.06035756319761276, 0.021306319162249565, -0.0031301798298954964, + 0.03948555886745453, -0.04896606504917145, 0.008065874688327312, -0.008953121490776539, + -0.0023282459005713463, -0.005484794732183218, -0.025289619341492653, 0.003353542648255825, + 0.048395249992609024, -0.018787283450365067, 0.021008502691984177, -0.01721133664250374, + 0.0104049788787961, -0.003750631818547845, -0.017695289105176926, -0.012669628486037254, + -0.007985216565430164, -0.027026886120438576, -0.0036451551131904125, -0.0020878207869827747, + -0.035489849746227264, -0.028118880465626717, 0.023974262177944183, 0.033876676112413406, + 0.021641362458467484, 0.020003369078040123, 0.026108616963028908, 0.05549322068691254, + 0.014208348467946053, 0.009182688780128956, 0.06358391046524048, 0.02744879201054573, + 0.019085101783275604, 0.027399156242609024, 0.002588835544884205, -0.007364764343947172, + 0.015734661370515823, -0.0017962083220481873, 0.00851260032504797, 0.03109705075621605, + -0.022075679153203964, -0.06120137870311737, 0.027275066822767258, 0.01935810036957264, + 0.03680520877242088, -0.023167675361037254, 0.021318728104233742, -0.00387782440520823, + -0.01290540024638176, -0.02464435063302517, -0.03414967283606529, -0.02806924469769001, + -0.02242313139140606, -0.02504143863916397, 0.02960796467959881, 0.015176254324615002, + -0.017223745584487915, 0.03062550723552704, 0.038219839334487915, -0.04229000210762024, + -0.019159555435180664, -0.035961393266916275, 0.04911497235298157, -0.0038126769941300154, + 0.024433396756649017, -0.0017946572043001652, -0.007904557511210442, -0.0011276713339611888, + 0.0032790882978588343, -0.0021715816110372543, -0.03678039088845253, 0.044275447726249695, + -0.02252240478992462, -0.03007950820028782, -0.00756330881267786, 0.02752324752509594, + -0.028019608929753304, -0.007135197054594755, -0.01870042085647583, -8.759035699767992e-5, + -0.046856530010700226, -0.06472554057836533, -0.02893787808716297, 0.018427422270178795, + 0.028317425400018692, -0.007426809519529343, 0.03102259524166584, 0.013860896229743958, + 0.03583730384707451, -0.0008794905734248459, -0.01975518837571144, 0.022373495623469353, + 0.05842175334692001, -0.013476215302944183, -0.002596591366454959, -0.02620788849890232, + 0.02023914083838463, 0.0031798160634934902, -0.014257985167205334, 0.02963278442621231, + 0.014382075518369675, -0.01500252727419138, 0.05767720937728882, -0.0011610205983743072, + 0.045144081115722656, 0.01567261479794979, -0.00997066218405962, 0.007885944098234177, + 0.05926556885242462, 0.01621861383318901, 0.02259685844182968, -0.016069704666733742, + 0.013898123055696487, 0.032685406506061554, -0.01742229051887989, 0.01297985389828682, + -0.00756330881267786, -0.037202298641204834, -0.03233795240521431, 0.022038452327251434, + 0.017943469807505608, -0.009337801486253738, -0.0008182209567166865, 0.009573573246598244, + 0.0018799692625179887, -0.0544012226164341, -0.0053513976745307446, 0.04564044252038002, + -0.022398313507437706, -0.045590806752443314, 0.02643125131726265, -0.013674760237336159, + -0.02658016048371792, 0.01255794707685709, -0.03817020356655121, -0.002466296311467886, + 0.007197242230176926, 0.020177096128463745, -0.019916506484150887, -0.020474912598729134, + 0.00030731759034097195, -0.009952048771083355, 0.04884197562932968, 0.011292224749922752, + -0.003069685772061348, 0.011118498630821705, -0.04794852435588837, 0.029583146795630455, + -0.005360704381018877, -0.012384220026433468, 0.041942548006772995, 0.026257524266839027, + -0.0431586354970932, -0.014977709390223026, -0.008990348316729069, -0.010653159581124783, + -0.009809345006942749, 0.040230102837085724, -0.010504251345992088, 0.0015573343262076378, + 0.057429030537605286, -0.026530524715781212, 0.027572883293032646, -0.026654614135622978, + -0.006868402939289808, -0.022137723863124847, -0.02660497836768627, -0.028168516233563423, + 0.007284105289727449, -0.02581080049276352, 0.04951206222176552, -0.05390486121177673, + -0.05216759815812111, -0.02496698498725891, 0.011583837680518627, -0.05040551349520683, + 0.011503178626298904, -0.010324319824576378, 0.011875449679791927, -0.014630256220698357, + -0.031121868640184402, -0.02438376098871231, 0.014133894816040993, -0.0009717828361317515, + -0.06388173252344131, 0.02846633456647396, -0.008711145259439945, 0.026331979781389236, + -0.011925085447728634, -0.002115741139277816, -0.010764840990304947, -0.004945001564919949, + 0.013848486356437206, -0.05405377224087715, -0.02201363444328308, 6.199671770446002e-5, + -0.0025578129570931196, -0.029111603274941444, 0.034397855401039124, -0.006483722478151321, + -0.038145385682582855, 0.0025795288383960724, -0.01691352017223835, 0.002367024077102542, + 0.015412026084959507, -0.009703868068754673, -0.0014704710338264704, 0.03263577073812485, + 0.03864174708724022, 0.012533129192888737, -0.01531275361776352, 0.028863422572612762, + -0.03521684929728508, 0.010795863345265388, 0.042190730571746826, 0.015188663266599178, + 0.025438528507947922, 0.0035644962918013334, -0.009027575142681599, -0.01018782053142786, + -0.005438261199742556, 0.032387591898441315, -0.011565223336219788, -0.007333741523325443, + -0.022584449499845505, 0.010727613233029842, -0.02321731112897396, 0.029409421607851982, + -0.03561393916606903, -0.026406433433294296, 0.01954423449933529, -0.014890845865011215, + 0.02252240478992462, 0.044746991246938705, -0.02180268056690693, -0.02150486409664154, + -0.03613511845469475, -0.024197624996304512, -0.0244954414665699, -0.016640519723296165, + 0.022956721484661102, -0.0001691700890660286, -0.03896437957882881, 0.04323308914899826, + 0.03156859427690506, 0.031370047479867935, 0.014853619039058685, -0.01028088852763176, + -0.014555801637470722, -0.01836537756025791, 0.019159555435180664, -0.018539102748036385, + -0.03278467804193497, 0.020189505070447922, 0.002467847429215908, 0.05787575617432594, + -0.003477632999420166, -0.007178628817200661, -0.03181677311658859, 0.013848486356437206, + -0.015548525378108025, 0.007606740575283766, -0.015598161146044731, 0.002804442774504423, + 0.06815043836832047, -0.012334584258496761, 0.010194025002419949, -0.013736805878579617, + 0.03896437957882881, 0.006508540827780962, 0.015374798327684402, -0.013215625658631325, + 0.01800551451742649, -0.03980819508433342, -0.007774262689054012, 0.01275649107992649, + 0.019221600145101547, -0.024619532749056816, -0.015560934320092201, -0.011075066402554512, + 0.030600689351558685, -0.005416545085608959, -0.011583837680518627, 0.023750899359583855, + 0.003072788007557392, 0.0010943220695480704, 0.035018306225538254, 0.010367751121520996, + 0.00920130219310522, 0.022063270211219788, -0.03675557300448418, -0.04531780630350113, + -0.01618138514459133, 0.016317885369062424, 0.014530983753502369, -0.015225890092551708, + 0.02125668339431286, -0.036830026656389236, -0.004547912627458572, -0.035489849746227264, + -0.0028944083023816347, 0.017037609592080116, 0.00838230550289154, -0.0016736690886318684, + 0.016851473599672318, -0.012992262840270996, -0.0024725007824599743, -0.011800995096564293, + 0.016714975237846375, 0.014096667990088463, -0.020909229293465614, 0.008667713031172752, + 0.010522864758968353, 0.0213931817561388, 0.011794790625572205, 0.0074640363454818726, + 0.0186631940305233, -0.01148456521332264, 0.010045116767287254, -0.035489849746227264, + 0.012588969431817532, 0.04067682847380638, -0.017149291932582855, -0.010237456299364567, + 0.0061641898937523365, 0.018712829798460007, 0.0023902910761535168, -0.011894063092768192, + -0.0022243200801312923, 0.005242818500846624, 0.004305936396121979, 0.02729988470673561, + -0.023428265005350113, -0.030228417366743088, -0.020115051418542862, 0.01534998044371605, + 0.0002497319073881954, -0.0001959270884981379, -0.017509153112769127, -0.026629796251654625, + 0.01396016776561737, 0.030749596655368805, 0.00958598218858242, 0.03839356452226639, + -0.012806127779185772, 0.0028432209510356188, 0.0005390176083892584, 0.007575717754662037, + -0.04752661660313606, 0.024073533713817596, -0.00800382997840643, -0.024818075820803642, + -0.03154377639293671, 0.009002757258713245, -0.003421792294830084, 0.03342995047569275, + -0.009399846196174622, -0.034646034240722656, -0.0012409038608893752, 0.018898965790867805, + -0.009492914192378521, -0.00756330881267786, -0.003704098053276539, 0.00664504012092948, + 0.007097969762980938, 0.026480887085199356, -0.005115625914186239, -0.0005397931672632694, + -0.005320375319570303, 0.008754576556384563, -0.0002497319073881954, 0.03164304792881012, + 0.016243431717157364, 0.0047991955652832985, -0.041322097182273865, -0.0024554384872317314, + 0.0081651471555233, 0.0014223860343918204, 0.0003175938327331096, -0.008264419622719288, + 0.010895135812461376, -0.00025089524569921196, -0.027101339772343636, 0.02643125131726265, + -0.04057755693793297, 0.013017081655561924, -0.01760842464864254, 0.030972959473729134, + -0.0014223860343918204, 0.00550340861082077, 0.007457831874489784, 0.01982964389026165, + 0.042960092425346375, -0.005869475193321705, 0.002846323186531663, 0.035961393266916275, + 0.019780006259679794, 0.01461784727871418, 0.03007950820028782, -0.00266639213077724, + 0.009890003129839897, 0.01534998044371605, -0.03951037675142288, -0.011546609923243523, + -0.03630884736776352, -0.023713672533631325, 0.021492455154657364, -0.003874722169712186, + 0.013004671782255173, 0.010256070643663406, 0.0024600918404757977, -0.011751359328627586, + -0.04757625237107277, -0.026108616963028908, 0.009325392544269562, 0.006018383428454399, + -0.010082343593239784, -0.0080720791593194, -0.00035307591315358877, -0.008661508560180664, + 0.010814476758241653, 0.013649942353367805, 0.020288778468966484, -0.026232706382870674, + 0.04859379306435585, -0.0034838374704122543, 0.0050287628546357155, 0.0038126769941300154, + -0.002038184553384781, -0.028317425400018692, -0.03511757776141167, 0.013674760237336159, + -0.028044426813721657, -0.023018766194581985, -0.030650325119495392, -0.010498046875, + -0.002092474140226841, -0.012167061679065228, 0.021343545988202095, 0.015014936216175556, + -0.0008127919863909483, -0.0035365759395062923, -0.006986288819462061, -0.012080199085175991, + 0.034397855401039124, -0.03630884736776352, -0.011050248518586159, -0.019817234948277473, + -0.01702520065009594, -0.01836537756025791, 0.01035534217953682, -0.015871159732341766, + 0.020983682945370674, -0.03335549682378769, 0.054550133645534515, 0.01702520065009594, + -0.019444962963461876, -0.04129727929830551, 0.011813404969871044, 0.029732055962085724, + 0.018874147906899452, -0.04348127171397209, -0.0431586354970932, 0.02165377140045166, + 0.015697432681918144, -0.011335656978189945, -0.0021855419036000967, -0.003375258529558778, + -0.023266946896910667, 0.023664036765694618, -0.021591726690530777, -0.02398667111992836, + -0.0007701359572820365, -0.043803904205560684, 0.008376101031899452, 0.01975518837571144, + 0.018750056624412537, 0.00851260032504797, -0.01954423449933529, -0.049660973250865936, + 0.046062350273132324, 0.020077824592590332, -0.00664504012092948, 0.010981999337673187, + 0.014903254806995392, -0.021591726690530777, 0.026530524715781212, -0.03132041171193123, + -0.003100708359852433, 0.000883368426002562, 0.025761162862181664, -0.006061815191060305, + -0.01337694376707077, 0.006638835649937391, -0.0015712945023551583, -0.00794798880815506, + -0.010833090171217918, -0.0451192632317543, -0.010677977465093136, -0.00574228260666132, + 0.0068932208232581615, -0.014543392695486546, -0.029260512441396713, 0.010851703584194183, + 0.008115511387586594, -0.026952430605888367, 0.006818766705691814, -0.03236277028918266, + -0.04129727929830551, -0.0069986977614462376, 0.01126120239496231, 0.03841838240623474, + 0.03740084171295166, -0.013649942353367805, 0.0020211220253258944, 0.0011966966558247805, + -0.012440061196684837, -0.020326005294919014, -4.1080704249907285e-5, -0.01815442368388176, + -0.016814246773719788, -0.028193335980176926, 0.004979126621037722, -0.01811719685792923, + 0.002542301779612899, 0.025835618376731873, -0.03127077594399452, 0.014568210579454899, + 0.017658062279224396, 0.02931014820933342, 0.00012777431402355433, 0.01500252727419138, + -0.0008058119565248489, 0.004504480864852667, -0.008177556097507477, -0.009281960316002369, + 0.0022848141379654408, 0.03998192027211189, 0.00028540787752717733, 0.0030371120665222406, + -0.05216759815812111, -0.03757456690073013, -0.010504251345992088, 0.02227422408759594, + 0.019345691427588463, 0.017583606764674187, -0.025388892740011215, -0.028242971748113632, + 0.004532401449978352, 0.008779394440352917, 0.008655304089188576, 0.03459639847278595, + 0.022584449499845505, 0.005807430017739534, -0.004501378629356623, -0.04730325564742088, + -0.025066258385777473, -0.03913810849189758, 0.007060742937028408, 0.034199308604002, + -0.020388050004839897, 0.04400245100259781, -0.029558328911662102, 0.001083464128896594, + 0.0073895822279155254, -0.007135197054594755, 0.006477518007159233, -0.006055610720068216, + -0.007712217513471842, -0.019457371905446053, -0.034571580588817596, -0.009592186659574509, + -0.008394714444875717, -0.0018287820275872946, 0.00929437018930912, -0.015337571501731873, + -0.01234078872948885, 0.022348677739501, 1.4372187251865398e-5, 0.012446265667676926, + 0.014741937629878521, 0.0011013020994141698, 0.018985828384757042, -0.041024282574653625, + -0.002574875485152006, -0.0009663538658060133, -0.0056119877845048904, 0.007172424346208572, + -0.004808502271771431, 0.017360243946313858, 0.021058138459920883, -0.02541371062397957, + 0.023750899359583855, 0.007203446701169014, -0.019234009087085724, 0.008742167614400387, + 0.003066583536565304, 0.002748602069914341, -0.01135427039116621, 0.018129605799913406, + -0.032610952854156494, -0.008965530432760715, -0.005211796145886183, -0.018563920632004738, + 0.006458904594182968, -0.003220145357772708, -0.00017973716603592038, 0.020747913047671318, + 0.0066946763545274734, -0.013004671782255173, -0.02868969738483429, -0.034025583416223526, + 0.006887016352266073, -0.018601149320602417, -0.013116353191435337, -0.008276828564703465, + -0.012992262840270996, -0.03236277028918266, -0.04298491030931473, -0.008183760568499565, + 0.005943929310888052, -0.029583146795630455, -0.010876522399485111, -0.02133113704621792, + 0.02581080049276352, 0.007557104341685772, -0.011664495803415775, 0.022944312542676926, + 0.0031084641814231873, -0.00046805341844446957, -0.026480887085199356, -0.010944771580398083, + -0.000793015118688345, 0.0030603790655732155, -0.024408578872680664, -0.019482189789414406, + -0.04812224954366684, -0.005767100490629673, 0.004197357222437859, -0.009530141018331051, + -0.015213481150567532, 0.015449252910912037, 0.007240673992782831, -0.008431941270828247, + 0.011348065920174122, 0.01702520065009594, 0.022696131840348244, -0.012129834853112698, + 0.03318176791071892, 0.020040597766637802, 0.010380160994827747, 0.0061828033067286015, + -0.006607812829315662, 0.013749214820563793, 0.012570356018841267, 0.07083079218864441, + 0.017707698047161102, 0.005304863676428795, -0.0010400324827060103, 0.0004951981827616692, + -0.0357876680791378, -0.026877976953983307, 0.0161441583186388, 0.007315128110349178, + -0.027548065409064293, 0.013054308481514454, 0.023539945483207703, -0.055642127990722656, + -0.0039864033460617065, 0.005236614029854536, -0.014332439750432968, 0.01640474796295166, + 0.025364074856042862, -0.0042283800430595875, 0.015498888678848743, -0.020934047177433968, + -0.03958483412861824, -0.0061828033067286015, 0.003626541467383504, 0.020313596352934837, + 0.0080720791593194, -0.0039864033460617065, 0.05559249222278595, 0.001687629264779389, + -0.005801225546747446, -0.0322386808693409, -0.002287916373461485, 0.012167061679065228, + -0.02690279483795166, -0.015064572915434837, -0.03072477877140045, 0.0020536959636956453, + 0.018216468393802643, 0.010932362638413906, 0.009008961729705334, -0.010119570419192314, + 0.03819502145051956, -0.000743378943298012, -0.00898414384573698, 0.009399846196174622, + -0.00595013378188014, 0.018104786053299904, 0.030972959473729134, -0.00794798880815506, + -0.03668111562728882, 0.02658016048371792, 0.013165989890694618, -0.04943760856986046, + -0.02697724848985672, 0.014047031290829182, 0.023130446672439575, -0.012073994614183903, + 0.013600305654108524, -0.03983301296830177, 0.03613511845469475, 0.02402389794588089, + -0.009071007370948792, 0.0010159900411963463, 0.0388651080429554, 0.013314898125827312, + -0.01644197665154934, -0.04695580154657364, 0.0025516084861010313, 0.03685484454035759, + -0.02161654457449913, -0.005109421443194151, 0.023204902186989784, -0.006095940247178078, + 0.03072477877140045, -0.0027346417773514986, 0.008642895147204399, 0.003027805360034108, + -0.038691382855176926, 0.02970723807811737, 0.04859379306435585, -0.003378360765054822, + -0.004094982519745827, -0.02705170400440693, -0.0373263880610466, -0.012892991304397583, + -0.01091995369642973, 0.02092163823544979, 0.015263116918504238, 0.020040597766637802, + -0.005813634488731623, -0.000541732064448297, -0.013550669886171818, -0.021939178928732872, + 0.049189429730176926, -0.042885635048151016, 0.012446265667676926, -0.014940482564270496, + 0.020760321989655495, -0.00059136823983863, -0.0020738604944199324, -0.027945155277848244, + 0.035638757050037384, 0.014481347985565662, 0.026034163311123848, 0.0023747796658426523, + -0.03568839281797409, -0.013786441646516323, -0.0006072673131711781, 0.017372652888298035, + 0.011019226163625717, -0.03648257255554199, 0.003933665342628956, 0.004119800869375467, + -0.00987759418785572, -0.007575717754662037, 0.024942167103290558, 0.020251549780368805, + ], + index: 53, + }, + { + title: "Fletcher, Ohio", + text: "Fletcher is a village in Miami County, Ohio, United States. The population was 473 at the 2010 census. It is part of the Dayton Metropolitan Statistical Area.", + vector: [ + -0.013839196413755417, 0.03106866590678692, -0.011130952276289463, 0.0069328416138887405, + -0.0027645283844321966, 0.023427309468388557, 0.00399946141988039, -0.012918790802359581, + -0.0694476068019867, -0.005926354322582483, -0.027082446962594986, 0.02484433725476265, + -0.03151893615722656, 0.014024602249264717, -0.027572447434067726, 0.0046980432234704494, + -0.06748760491609573, 0.00636669248342514, -0.05188705399632454, -0.01826244220137596, + -0.02399677038192749, 0.0037809479981660843, 0.00016916182357817888, -0.04216650873422623, + 0.02728109620511532, -0.001883852295577526, 0.018169740214943886, -0.009396086446940899, + -0.018606767058372498, -0.019560281187295914, 0.007932706736028194, 0.024288121610879898, + 0.01258108764886856, -0.01873919926583767, 0.05331732705235481, 0.02638055384159088, + -0.013316088356077671, -0.011223654262721539, 0.052469756454229355, 0.02436758019030094, + -0.033611368387937546, -0.030989205464720726, -0.0013830919051542878, 0.030803799629211426, + 0.022434065118432045, -0.009031896479427814, 0.020434334874153137, -0.012044736184179783, + -0.03567731752991676, -0.03414110094308853, -0.02802271768450737, -0.005853516515344381, + -0.01997082121670246, 0.0038968264125287533, 0.011746763251721859, -1.9295828678878024e-5, + 0.06076003238558769, 0.08968329429626465, -0.06038922071456909, -0.021480552852153778, + -0.06219030171632767, -0.005078786518424749, 0.01899082027375698, -0.011336222290992737, + 0.026777852326631546, 0.03673677518963814, 0.007840003818273544, 0.013441898860037327, + -0.019136495888233185, -0.0016852036351338029, -0.017295684665441513, 0.029082177206873894, + -0.017547305673360825, 0.012389061041176319, 0.0031965894158929586, 0.019878119230270386, + -0.0071248686872422695, -0.03845839947462082, 0.016209738329052925, -0.05376759544014931, + 0.01114419475197792, -0.017851902171969414, -0.028314068913459778, -0.014302710071206093, + 0.026645420119166374, -0.04047137126326561, -0.03456488251686096, -0.05196651443839073, + -0.04182218387722969, 0.011150816455483437, -0.03218109905719757, 0.05758165195584297, + -0.012673790566623211, -0.013309466652572155, 0.010693924501538277, -0.008442572318017483, + 0.04632489010691643, 0.0015875346725806594, 0.0036286506801843643, -0.012203655205667019, + -0.020977308973670006, -0.012150682508945465, -0.04547732323408127, 0.038988128304481506, + 0.015295954421162605, 0.004400069825351238, -0.018302172422409058, 0.01613027974963188, + 0.07336760312318802, -0.027254609391093254, 0.007462571375072002, 0.004926489200443029, + -0.0011811323929578066, 0.03136001527309418, 0.01783865876495838, -0.020315146073698997, + -0.029638394713401794, -0.05090705305337906, 0.051993001252412796, -0.007502301130443811, + 8.923674613470212e-5, -0.006237570662051439, 0.025546230375766754, 0.02283136360347271, + 0.006237570662051439, -0.03437947854399681, 0.0023440553341060877, 0.013839196413755417, + 0.002549325581640005, 0.01624946855008602, -0.03247245028614998, 0.002991319168359041, + 0.009674194268882275, 0.02344055287539959, 0.0002632096002344042, 0.018222711980342865, + 0.05684002861380577, -0.02868488058447838, 0.006277300417423248, 0.008627977222204208, + -0.03792866691946983, 0.043014075607061386, 0.0028224678244441748, 0.026327582076191902, + 0.004327232018113136, 0.012018249370157719, -0.012925412505865097, -0.019004063680768013, + 0.027055960148572922, -0.01586541347205639, -0.04939732328057289, -0.0029234474059194326, + 0.028949744999408722, -0.029956232756376266, -0.030247583985328674, -0.03546542301774025, + 0.020791903138160706, 0.02308298461139202, 0.021507037803530693, -0.011402438394725323, + 0.010581357404589653, 0.017322171479463577, 0.05779354274272919, -0.01504433248192072, + -0.02521514892578125, -0.006406422238796949, -0.027519473806023598, -0.0014037844957783818, + -0.010958789847791195, 0.015507846139371395, 0.04407353699207306, -0.05194002762436867, + -0.013031357899308205, 0.01960000954568386, -0.02887028641998768, 0.0015420109266415238, + 0.06250814348459244, -0.022261904552578926, 0.03469731658697128, 0.005625070538371801, + -0.0003838473348878324, 0.0074758147820830345, 0.03430001810193062, -0.029585421085357666, + -0.011031627655029297, 0.014726494438946247, -0.0035591234918683767, -0.011720276437699795, + 0.046245429664850235, -0.03607461228966713, 0.017626766115427017, 0.0061845979653298855, + 0.027545960620045662, 0.014660278335213661, 0.0067639900371432304, -0.01513703539967537, + -0.0443384014070034, -0.011720276437699795, 0.03493569418787956, 0.07983031123876572, + -0.02081838995218277, 0.0065421657636761665, -0.029082177206873894, 0.02533433772623539, + 0.008588247932493687, -0.013574331067502499, 0.00415175873786211, -0.02063298411667347, + 0.02093757875263691, 0.05880003049969673, 0.03308163955807686, -0.06436219811439514, + 0.0030922989826649427, 0.05315840616822243, 0.0333465039730072, 0.02533433772623539, + 0.01047541107982397, -0.011322978883981705, 0.004866894334554672, 0.05019192025065422, + -0.016752712428569794, -0.016196494922041893, -0.0807308554649353, -0.0022198997903615236, + 0.0050920299254357815, 0.00651898980140686, 0.02736055478453636, -0.014752981252968311, + -0.0016703049186617136, 0.03864380344748497, -0.016103792935609818, 0.010177438147366047, + -0.018725955858826637, 0.01093230303376913, -0.036101099103689194, 0.029294069856405258, + 0.02900271862745285, 0.0030906435567885637, -0.012918790802359581, 0.036789748817682266, + -0.0032810152042657137, -0.0008649497758597136, 0.004688110668212175, -0.024764878675341606, + 0.014766223728656769, 0.025122445076704025, -0.03406164050102234, 0.016408387571573257, + -0.048867594450712204, -0.02357298508286476, 0.03747839853167534, -0.013878926634788513, + 0.04854975640773773, -0.0018722645472735167, 0.03027407079935074, 0.02095082215964794, + -0.023467039689421654, 0.00263375137001276, -0.00048296479508280754, -0.0405508317053318, + 0.0038935155607759953, -0.04592759162187576, 0.03957083076238632, 0.016871901229023933, + 0.003065812401473522, -0.01598460227251053, -0.01303797960281372, -0.011918925680220127, + -0.006273990031331778, -0.05848219245672226, 0.012885682284832, -0.013157169334590435, + 0.017481090500950813, -0.004714597016572952, 0.039464887231588364, -0.022500282153487206, + 0.024248391389846802, -0.02704271674156189, 0.03631299361586571, -0.05472110956907272, + 0.018156496807932854, 0.023030012845993042, -0.01562703587114811, -0.01434244029223919, + -0.018328659236431122, -0.017414873465895653, 0.018116766586899757, -0.021295147016644478, + 0.02325514703989029, 0.01628919690847397, -0.03644542396068573, -0.02783731184899807, + 0.026645420119166374, -0.023308120667934418, -0.0005255914875306189, -0.006088584195822477, + 0.02411595918238163, 0.01691163145005703, 0.008806761354207993, -0.01569325104355812, + -0.024592716246843338, -0.02137460559606552, -0.024089472368359566, -0.03779623657464981, + -0.010753518901765347, -0.042828671634197235, -0.010965411551296711, -0.050271376967430115, + -0.02759893424808979, -0.027731366455554962, -0.019758928567171097, 0.021904336288571358, + -0.03257839381694794, -0.0017431428423151374, 0.038855697959661484, -0.03101569227874279, + 0.05514489486813545, 0.0021106430795043707, 0.048814620822668076, -0.05774057283997536, + -0.01831541582942009, 0.024764878675341606, -0.011561357416212559, -0.032022178173065186, + 0.04349083453416824, -0.015110548585653305, 0.015613792464137077, 0.023056497797369957, + -0.0417427234351635, -0.01468676421791315, -0.01997082121670246, 0.022354606539011, + 0.02058001048862934, -0.03284326195716858, 0.04645732045173645, 0.019705956801772118, + -0.02448676899075508, 0.02362595871090889, 0.026089202612638474, 0.023970283567905426, + -0.007641355507075787, 0.02167920023202896, 0.018288929015398026, 0.038008127361536026, + 0.022632714360952377, -0.007138112094253302, 0.05832327529788017, -0.010859465226531029, + 0.03008866496384144, -0.014262980781495571, 0.0004966218839399517, 0.033611368387937546, + 0.012124195694923401, -0.006717638578265905, 0.020169470459222794, -0.012534736655652523, + -0.02863190695643425, 0.016752712428569794, 0.04187515750527382, -0.02453974261879921, + -0.013653790578246117, 0.0019550349097698927, 0.029294069856405258, 0.01770622469484806, + 0.008680950850248337, 0.022924065589904785, 0.013296223245561123, -0.022818120196461678, + 0.02924109622836113, 0.004366961773484945, -0.0020742241758853197, 0.014554332010447979, + -0.012746628373861313, -0.004694732371717691, -0.03816704824566841, 0.00441331323236227, + -0.02638055384159088, -0.0293735284358263, 0.014752981252968311, -0.006313719786703587, + 0.044417861849069595, 0.030115151777863503, 0.046987053006887436, -0.06457408517599106, + -0.03247245028614998, 0.03864380344748497, -0.00888622086495161, -0.02455298602581024, + -0.06536868214607239, 0.0021354740019887686, -0.014210007153451443, 0.00879351794719696, + 0.04168975353240967, 0.02881731279194355, -0.006704395636916161, -0.021891092881560326, + -0.06838814169168472, 0.00572439469397068, -0.01508406177163124, -0.0027032785583287477, + 0.0061481790617108345, -0.010859465226531029, -0.03284326195716858, -0.021771904081106186, + 0.038431912660598755, 0.011680547147989273, -0.024208661168813705, -0.03456488251686096, + -0.01697784662246704, 0.03920001909136772, -0.0504302978515625, -0.008190950378775597, + 0.015574062243103981, 0.009614599868655205, 0.015799198299646378, -0.02265920117497444, + 0.004916556645184755, -0.002562568988651037, -0.08888869732618332, -0.019560281187295914, + -0.010740276426076889, -0.026711635291576385, -0.02692352794110775, 0.026751365512609482, + 0.021771904081106186, 0.044603265821933746, -0.02136136218905449, 0.04388813301920891, + -0.0356508307158947, -0.009475545957684517, -0.012839331291615963, 0.015958117321133614, + -0.02722812257707119, 0.02374514751136303, 0.02497676946222782, 0.041981104761362076, + -0.016103792935609818, -0.00448946189135313, -0.006588517222553492, 0.022619470953941345, + -0.00018499165889807045, -0.04815245792269707, -0.03591569513082504, -0.014951629564166069, + -0.009541762061417103, -0.0070851389318704605, -0.025042986497282982, -0.016898388043045998, + 0.0383259654045105, -0.0033521978184580803, -0.0024946972262114286, 0.03286974877119064, + -0.062243275344371796, 0.04277569800615311, -0.02185136266052723, 0.0187524426728487, + 0.06076003238558769, 0.009084870107471943, -0.006684530526399612, -0.03729299455881119, + 0.008760410360991955, -0.03308163955807686, 0.015216494910418987, -0.020301902666687965, + -0.012885682284832, -0.03157190978527069, 0.03994164243340492, -0.017679739743471146, + -0.027440015226602554, -0.014766223728656769, -0.05379408225417137, 0.013011493720114231, + -0.05604543536901474, 0.026486501097679138, 0.024314606562256813, 0.019573524594306946, + 0.023493526503443718, 0.007919463329017162, 0.03226055949926376, 0.014951629564166069, + 0.017255954444408417, -0.020897848531603813, 0.1069524884223938, -0.007654598448425531, + 0.02002379484474659, -0.01428946666419506, -0.03636596351861954, 0.03027407079935074, + 0.021202443167567253, -0.019255686551332474, 0.02826109528541565, -0.03533299267292023, + -0.0075552742928266525, 0.021957308053970337, -0.018169740214943886, 0.04926488921046257, + -0.03045947477221489, -0.0015055920230224729, 0.03292271867394447, -0.022579742595553398, + 0.015547575429081917, 0.017136765643954277, 0.03856434300541878, -0.027002986520528793, + -0.014143791049718857, 0.05037732422351837, -0.04494759067893028, -0.02337433584034443, + -0.022261904552578926, -0.06266705691814423, 0.004989394452422857, 0.00014070954057388008, + -0.006161422003060579, -0.008224057964980602, 0.028605420142412186, -0.021149471402168274, + 0.04717245697975159, -0.013825953006744385, 0.0059594628401100636, 0.0017100346740335226, + -0.006164732854813337, 0.01862001046538353, 0.04462975263595581, 0.0070454091764986515, + 0.004876826889812946, -0.0017630077200010419, 0.0067010847851634026, 0.0051152054220438, + -0.015852170065045357, -0.011104465462267399, -0.015560818836092949, -0.010707167908549309, + 0.03655137121677399, 0.034882720559835434, 0.032631367444992065, 0.03864380344748497, + -0.013508114963769913, 0.0027661838103085756, 0.015905143693089485, 0.0054959487169981, + 0.0026618933770805597, -0.06881193071603775, -0.0010139363585039973, 0.004611962009221315, + -0.0004771708627231419, 0.0016222981503233314, 0.013309466652572155, -0.06128976121544838, + 0.04410002380609512, -0.010660816915333271, 0.07077193260192871, 0.024460284039378166, + -0.05477408319711685, -0.021904336288571358, -0.0037147316616028547, 0.004751015920192003, + -0.03228704258799553, 0.009290140122175217, -0.022195687517523766, 0.0010139363585039973, + -0.016395144164562225, -0.011256762780249119, -0.002051048446446657, -0.013441898860037327, + -0.008707436732947826, 0.021586498245596886, -0.03644542396068573, -0.013759736903011799, + -0.0013028047978878021, 0.03591569513082504, 0.04492110386490822, -0.050085972994565964, + 0.01757379248738289, -0.014157034456729889, 0.022871093824505806, 0.006406422238796949, + -0.002003041561692953, -0.016011089086532593, -0.016951359808444977, 0.004515948239713907, + -0.013508114963769913, 0.02863190695643425, -0.0012779736425727606, 0.00925040990114212, + 0.0069328416138887405, 0.04653678089380264, -0.03255191072821617, 0.014183521270751953, + -0.003956420812755823, 0.010488654486835003, -0.02130839042365551, 0.0013268081238493323, + -0.025811094790697098, 0.00619784090667963, -0.008111490868031979, 0.018792172893881798, + -0.035571370273828506, 0.07050706446170807, -0.006244192365556955, -0.0072374362498521805, + 0.002635406795889139, 0.035200558602809906, -0.022182444110512733, 0.004628515802323818, + 0.0500594861805439, -0.001296183094382286, -0.011197168380022049, 0.01403784565627575, + -0.013031357899308205, 0.03252542391419411, 0.012554600834846497, -0.026844067499041557, + 0.06711678951978683, 0.021811632439494133, 0.021838119253516197, 0.0022645958233624697, + -0.0333465039730072, 0.04749029502272606, 0.026301095262169838, -0.026910284534096718, + 0.012753250077366829, -0.03088326007127762, -0.017732711508870125, 0.06653408706188202, + 0.004217975307255983, 0.04934434965252876, 0.044179484248161316, -0.0070917606353759766, + -0.022818120196461678, -0.010587978176772594, -0.0059495302848517895, 0.04939732328057289, + -0.018024062737822533, -0.008310139179229736, -0.014541088603436947, -0.02044757828116417, + 0.03694866970181465, 0.00016129865252878517, 0.00842932891100645, -0.019931090995669365, + 0.030432989820837975, 0.00036874174838885665, 0.0024119268637150526, -0.01753406412899494, + -0.002272872719913721, 0.0014675176935270429, 0.010462167672812939, 0.0005342823569662869, + 0.025599202141165733, 0.058588139712810516, -0.006866625044494867, -0.04195461794734001, + 0.02289757877588272, 0.01654081977903843, 0.01880541630089283, -0.020235685631632805, + -0.028367042541503906, -0.018765686079859734, -0.004456353839486837, -0.017732711508870125, + -0.03199569135904312, -0.018527306616306305, 0.025930283591151237, -0.0016032609855756164, + -0.022871093824505806, -0.0047377729788422585, -0.037319477647542953, 0.00036067163455300033, + 0.033002179116010666, 0.0019169604638591409, -0.026605689898133278, 0.02863190695643425, + -0.0027214880101382732, -0.02924109622836113, 0.00983311329036951, 0.013210142031311989, + 2.8141907023382373e-5, -0.012985006906092167, -0.02966487966477871, 0.031095150858163834, + 0.03271082788705826, 0.004178245551884174, -0.019984064623713493, -0.021321633830666542, + 0.03133352845907211, -0.01777244172990322, 0.0073632472194731236, 0.015507846139371395, + 0.012673790566623211, 0.011111087165772915, -0.03567731752991676, -0.0027827380690723658, + 0.038617316633462906, -0.049238406121730804, -0.07008328288793564, 0.051675163209438324, + 0.018037306144833565, -0.028843799605965614, -0.0020278727170079947, 0.013150547631084919, + 0.00596939492970705, 0.034458938986063004, -0.0018242577789351344, 0.0049761515110731125, + -0.0061084493063390255, -0.014726494438946247, 0.0057939221151173115, -0.007945950143039227, + -0.03596866875886917, -0.040497858077287674, -0.003645204706117511, 0.03811407461762428, + 0.000960963370744139, -0.04518596827983856, -0.002130507957190275, -0.017692983150482178, + 0.010733654722571373, 0.01508406177163124, -0.02088460512459278, -0.015494602732360363, + 0.013276358135044575, 0.011779870837926865, 0.0022596295457333326, -0.024089472368359566, + -0.017692983150482178, 0.011428925208747387, -0.037637315690517426, -0.009482166729867458, + -0.005850205663591623, 0.02430136501789093, 0.0217983890324831, -0.015269467607140541, + -0.04372921213507652, -0.021891092881560326, -0.036418937146663666, -0.0005860138335265219, + 0.0017944604624062777, -0.0039001372642815113, 0.028287582099437714, 0.013653790578246117, + 0.010799870826303959, -0.022619470953941345, 0.023215416818857193, -0.004986083600670099, + -0.015269467607140541, 0.005085408221930265, -0.03377028927206993, -0.01818298175930977, + 0.013614061288535595, 0.035995155572891235, -0.023414066061377525, -0.012912169098854065, + -0.06113084405660629, -0.04725191742181778, -0.013031357899308205, 0.012329465709626675, + 0.001921926741488278, 0.018037306144833565, 0.047092996537685394, 0.04155731946229935, + 0.013018115423619747, 0.003966353368014097, 0.03776974976062775, 0.004072299227118492, + 0.007462571375072002, -0.04457677900791168, -0.01606406271457672, -0.006015746388584375, + -0.008753788657486439, -0.0023506770376116037, -0.018540550023317337, -0.01826244220137596, + 0.02624812163412571, -0.017414873465895653, 0.03241947665810585, 0.00014888310397509485, + 0.004257705062627792, -0.006624936126172543, -0.00949541013687849, -0.019864875823259354, + -0.037266507744789124, -0.005029124207794666, -0.01746784709393978, -0.004568921402096748, + -0.036604344844818115, 0.0045027052983641624, 0.011859330348670483, 0.022023525089025497, + -0.0280756913125515, 0.05201948806643486, -0.014368926174938679, 0.009932437911629677, + -0.04494759067893028, -0.03718704730272293, 0.04076272249221802, -0.028525961562991142, + 0.0010503552621230483, 0.0022232106421142817, 0.03896164149045944, -0.0065785846672952175, + 0.04854975640773773, -0.0037081099580973387, 0.00934311281889677, 0.031174611300230026, + -0.004830475430935621, -0.04280218482017517, -0.005135070066899061, -0.006283922120928764, + -0.006085273344069719, 0.056310299783945084, 0.013720007613301277, -0.01770622469484806, + 0.04976813495159149, 0.007654598448425531, -0.022301632910966873, -0.010018519125878811, + 0.01594487391412258, -0.01636865735054016, 0.008382976986467838, -0.018937848508358, + 0.006681219674646854, 0.015110548585653305, 0.051251377910375595, -0.012044736184179783, + -0.029161637648940086, -0.015852170065045357, -0.014210007153451443, -0.056257326155900955, + -0.04621894285082817, -0.04529191553592682, 0.019017307087779045, 0.0037345965392887592, + -0.027916772291064262, -0.06118381768465042, 0.0022679066751152277, -0.00684013869613409, + -0.03882921114563942, 0.004469596780836582, -0.019864875823259354, 0.024036498740315437, + 0.03294920548796654, 0.024645688012242317, 0.004188178107142448, 0.02857893332839012, + -0.006800408940762281, 0.010025140829384327, 0.033664342015981674, -0.030327042564749718, + -0.003146927338093519, -0.027572447434067726, 0.03472380340099335, 0.02631433866918087, + 0.051251377910375595, -0.014130547642707825, 0.003883583238348365, -0.021096497774124146, + 0.0006787165766581893, 0.004529191646724939, -0.03986218199133873, 0.025056229904294014, + -0.02589055337011814, 0.015295954421162605, 0.001083463430404663, 0.024645688012242317, + 0.01434244029223919, -0.025374067947268486, 0.017692983150482178, 0.012130817398428917, + -0.011435546912252903, -0.018792172893881798, -0.0008930916665121913, -0.04632489010691643, + -0.012190411798655987, 0.0052045974880456924, -0.021705687046051025, 0.015031089074909687, + -0.004112028982490301, 0.035015154629945755, 0.008965680375695229, 0.030327042564749718, + -0.013547845184803009, -0.025983257219195366, -0.0057111517526209354, -0.016699738800525665, + 0.036233533173799515, 0.0010735309915617108, 0.02076541632413864, -0.019454333931207657, + -0.017865143716335297, -0.03893515467643738, -0.014792710542678833, 0.035995155572891235, + -0.0068467603996396065, 0.028181636705994606, 0.03194272145628929, 0.048125971108675, + 0.006128313951194286, 0.025506500154733658, 0.00432061031460762, 0.008224057964980602, + 0.014647034928202629, -0.013667033985257149, 0.014223250560462475, -0.02557271532714367, + 0.045212455093860626, 0.05673408508300781, 0.008747166953980923, 0.007945950143039227, + -0.043305426836013794, 0.043305426836013794, 0.019944334402680397, -0.000431233347626403, + 0.050695162266492844, -0.02125541679561138, -0.03355839475989342, 0.027625419199466705, + 0.0035061505623161793, -0.0056416247971355915, -0.013289601542055607, -0.03236650303006172, + 0.0028489541728049517, 0.010064870119094849, -0.01818298175930977, -0.014170277863740921, + 0.0065421657636761665, 0.001080152578651905, 0.01586541347205639, 0.001532906200736761, + 0.0026883797254413366, -0.0016239535761997104, -0.002006352413445711, -0.015560818836092949, + -0.005552232731133699, 0.007018922828137875, 0.01880541630089283, -0.018421361222863197, + 0.008038653060793877, -0.03814056143164635, -0.02460595965385437, -0.0064196656458079815, + 0.009396086446940899, 0.0005102789727970958, 0.018394874408841133, -0.029029205441474915, + -0.039041101932525635, 0.0074758147820830345, 0.0070785172283649445, -0.03882921114563942, + 0.0181962251663208, 0.009515275247395039, -0.0455302931368351, -0.020368119701743126, + -0.0340881273150444, 0.0038935155607759953, 0.020606497302651405, -0.014488115906715393, + -0.02643352746963501, 0.013461763970553875, 0.04298758879303932, -0.0033654409926384687, + 0.015375413931906223, 0.013746493496000767, 0.0036750019062310457, 0.0032528734300285578, + -0.03766380250453949, 0.007210949901491404, -0.018540550023317337, -0.05519786849617958, + -0.00882662646472454, -0.014461629092693329, -0.06727571040391922, -0.04354380816221237, + 0.058270301669836044, 0.011415681801736355, -0.036604344844818115, 0.0011488519376143813, + 0.03808758780360222, 0.0005839445511810482, 0.009303383529186249, 0.030856773257255554, + -0.013388926163315773, 0.010256897658109665, -0.0047013540752232075, 0.05331732705235481, + 0.01995757780969143, 0.02156001143157482, -0.01513703539967537, -0.011700411327183247, + 0.0068931118585169315, 0.012958520092070103, -0.0053270976059138775, 0.0006327790324576199, + -0.0050920299254357815, -0.016156764701008797, 0.0071645984426140785, -0.01007811352610588, + -0.0401800200343132, -0.03424704447388649, 0.03212812542915344, 0.008687572553753853, + -0.016818927600979805, 0.02839352935552597, -0.07029516994953156, -0.04579515755176544, + 0.0027645283844321966, 0.02117595635354519, -0.007773787714540958, -0.015031089074909687, + 0.00278604868799448, 0.027572447434067726, 0.0017398319905623794, 0.0007387250661849976, + -0.00020040762319695204, 0.008389598689973354, -0.0037511505652219057, 0.012859196402132511, + -0.016156764701008797, -0.013084331527352333, 0.009720545262098312, 0.012865817174315453, + 0.012706899084150791, 0.024407310411334038, -0.023705417290329933, 0.006873246748000383, + -0.02044757828116417, -0.0002859714441001415, -0.02075217291712761, 0.0029764205683022738, + 0.013501493260264397, 0.0004411657864693552, -0.019268929958343506, 0.0007234125514514744, + 0.023003526031970978, 0.006280611269176006, -0.0055588544346392155, 0.030432989820837975, + 0.02655271627008915, 0.007230814546346664, 0.015958117321133614, -0.01850081980228424, + -0.0022215552162379026, 0.005744259804487228, -0.013667033985257149, -0.013137304224073887, + -0.011051492765545845, -0.03437947854399681, 0.008157841861248016, 0.006826895289123058, + 0.007892977446317673, -0.002395372837781906, 0.002560913562774658, 0.03332001715898514, + -0.03509461134672165, 0.014845683239400387, -0.03859082981944084, -0.01983838900923729, + 0.011137573048472404, 0.030194610357284546, 0.015825683251023293, 0.0068533821031451225, + -0.0027314203325659037, 0.00870081502944231, -0.03755785897374153, -0.007257301360368729, + 0.0046980432234704494, -0.0062607466243207455, -0.014315953478217125, 0.04057731851935387, + 0.025480013340711594, -0.03339947760105133, -0.022791633382439613, -0.002784393262118101, + -0.0070387874729931355, 0.016222981736063957, -0.0068931118585169315, -0.0013433621497824788, + -0.021321633830666542, -0.014607304707169533, 0.004370272625237703, -0.02465893141925335, + -0.011925546452403069, 0.01924244314432144, 0.0011654060799628496, -0.011005140841007233, + 0.00487020518630743, 0.02069919928908348, -0.02325514703989029, 0.024208661168813705, + 0.014832439832389355, 0.013998115435242653, -0.0021536836866289377, -0.009382843039929867, + -0.0035525017883628607, 0.06197841092944145, -0.06383246928453445, -0.011773249134421349, + -0.0060720304027199745, 0.03316110000014305, 0.003105542156845331, -0.02313595823943615, + 0.019891362637281418, -0.018898118287324905, -0.0016115379985421896, 0.015838926658034325, + 0.016514332965016365, 0.0045821648091077805, 0.017666496336460114, -0.01389216911047697, + -0.03302866593003273, -0.042087048292160034, 0.02472514845430851, 0.0200900100171566, + -0.038061100989580154, -0.008343247696757317, 0.028367042541503906, -0.03249893710017204, + -0.021573254838585854, -0.005545611027628183, -0.002597332466393709, -0.0009692403837107122, + -0.025241635739803314, -0.033982180058956146, -0.04566272720694542, -0.027492986992001534, + -0.0057111517526209354, 0.010263519361615181, -0.005025813356041908, 0.06086597964167595, + 0.037266507744789124, 0.009753653779625893, -0.053582191467285156, -0.012144060805439949, + 0.029585421085357666, 0.024089472368359566, -0.0037180425133556128, 0.0008955748053267598, + 0.0322340726852417, -0.04815245792269707, 0.013733250088989735, -0.026592446491122246, + 0.0032015556935220957, 0.013402169570326805, -0.0012730074813589454, 0.022129470482468605, + 0.044788673520088196, -0.0024897309485822916, -0.023718660697340965, 0.011998385190963745, + 0.017600279301404953, 0.038246504962444305, 0.0371340736746788, -0.011309735476970673, + -0.017971090972423553, -0.032631367444992065, 0.006512368097901344, -0.003021116368472576, + -0.009998654015362263, 0.007343382108956575, -0.043994076550006866, -0.04073623940348625, + -0.0075950040481984615, -0.0046218945644795895, 0.01114419475197792, 0.03649839758872986, + -0.006793787237256765, -0.027307581156492233, 0.018024062737822533, 0.0003168033726979047, + 0.002789359539747238, 0.022434065118432045, 0.020778659731149673, -0.017110278829932213, + 0.019335145130753517, -0.0065752738155424595, 0.004784123972058296, 0.015958117321133614, + 0.004323921166360378, 0.015653522685170174, -0.011130952276289463, 0.015163521282374859, + -0.031174611300230026, -0.0013657101662829518, -0.02697650156915188, 0.0006629902054555714, + 0.021838119253516197, -0.011587844230234623, 0.0015395277878269553, 0.033664342015981674, + -0.016832171007990837, -0.054058946669101715, 0.036180559545755386, -0.009237167425453663, + 0.028923258185386658, -0.006525611504912376, -0.007535409182310104, 0.013759736903011799, + -0.026658663526177406, -0.020301902666687965, -0.026897041127085686, 0.006866625044494867, + -0.03535947948694229, -0.05996543541550636, 0.003532636910676956, 0.015772711485624313, + 0.025016499683260918, 0.0068864901550114155, -0.0011703722411766648, -0.006760679185390472, + -0.033902719616889954, -0.019573524594306946, -0.006800408940762281, -0.004363650921732187, + 0.022725418210029602, -0.007919463329017162, -0.0060687195509672165, -0.015706494450569153, + -0.013117439113557339, 0.01239568181335926, 0.060707058757543564, 0.027307581156492233, + 0.023771634325385094, 0.018725955858826637, -0.0018606766825541854, 0.009859600104391575, + -0.012561222538352013, -0.009720545262098312, -0.03215461224317551, -0.01154149230569601, + -0.00699243601411581, -0.024288121610879898, -0.01978541538119316, 0.011111087165772915, + -0.021758660674095154, 0.029505962505936623, 0.030936231836676598, -0.0013284635497257113, + 0.022566499188542366, 0.01831541582942009, 0.03999461606144905, 0.04410002380609512, + -0.010429059155285358, 0.030936231836676598, -0.0008682605694048107, 0.008316760882735252, + 0.03350542485713959, 0.01593163050711155, 0.009548383764922619, -0.01844784803688526, + -0.025188662111759186, 0.02607595920562744, -0.0031634813640266657, 0.017017576843500137, + 0.004585475195199251, 0.023175688460469246, 0.012038114480674267, 0.043305426836013794, + 0.010111221112310886, 0.04420597106218338, -0.009720545262098312, 0.012746628373861313, + -0.0051714894361793995, 0.028367042541503906, 0.03279028832912445, -0.0027396974619477987, + 0.014143791049718857, 0.01916298270225525, -0.029876772314310074, 0.00769432820379734, + 0.024526499211788177, 0.007177841849625111, 0.0027678392361849546, 0.041848670691251755, + -0.021599741652607918, -0.00894581526517868, 0.009766897186636925, 0.022751903161406517, + 0.026605689898133278, -0.017732711508870125, 0.015918387100100517, 0.020169470459222794, + -0.005896557122468948, -0.004006083123385906, 0.01715000905096531, 0.031704340130090714, + 0.03663083165884018, -0.006677908822894096, -0.00873392354696989, -0.014196764677762985, + 0.020791903138160706, 0.0240629855543375, 0.0001375021820422262, 0.015454873442649841, + 0.014673521742224693, 0.002244730945676565, 0.0021917580161243677, -0.008382976986467838, + 0.0383259654045105, 0.016222981736063957, -0.019268929958343506, 0.005373448599129915, + 0.005929665174335241, -0.02026217244565487, 0.01758703589439392, -0.024288121610879898, + 0.01605081930756569, 0.015097305178642273, -0.029347043484449387, 0.009660950861871243, + -0.012726763263344765, 0.03933245316147804, -0.024579472839832306, -0.010952168144285679, + 0.0017580414423719049, -0.009581491351127625, -0.022937308996915817, 0.012667168863117695, + 0.0012117574224248528, -0.007932706736028194, -0.004479529336094856, -0.0031287178862839937, + 0.0061117601580917835, -6.414699601009488e-5, -0.029876772314310074, -0.0033108126372098923, + -0.023533254861831665, -0.012700277380645275, 0.010256897658109665, 0.014885413460433483, + -0.0085220318287611, 0.026168663054704666, -0.00907162670046091, -0.014249737374484539, + -0.02876433916389942, 0.001275490503758192, -0.002163616009056568, 0.02271217480301857, + -0.004648380912840366, 0.0058667599223554134, 0.019917847588658333, -0.004145137500017881, + -0.01880541630089283, -0.009078248403966427, -9.384084114572033e-5, -0.03374380245804787, + -0.004459664691239595, -0.007985680364072323, 0.006760679185390472, -0.045768674463033676, + 0.012144060805439949, 0.010508518666028976, -0.030538935214281082, -0.006356759928166866, + -0.024804607033729553, 0.05268165096640587, -0.018103523179888725, 0.0007896287715993822, + -0.015613792464137077, -0.02118919976055622, -0.00827703159302473, 0.030141636729240417, + 0.0024864203296601772, -0.012018249370157719, -0.02612893283367157, 0.005568786524236202, + -0.013825953006744385, 0.009442437440156937, -0.008508788421750069, -0.014157034456729889, + 0.011223654262721539, 0.042219482362270355, -0.03167785331606865, 0.007760544773191214, + -0.016077306121587753, -0.0022695621009916067, -0.0076612201519310474, 0.0007573483744636178, + 0.002550981007516384, -0.019984064623713493, -0.010945546440780163, -0.02386433631181717, + 0.0045490562915802, 0.014474872499704361, 0.004247772507369518, 0.0072043281979858875, + 0.033055152744054794, 0.0034266910515725613, 0.02167920023202896, 0.016620278358459473, + 0.02015622705221176, -0.03271082788705826, -0.02521514892578125, -0.005135070066899061, + -0.007760544773191214, 0.027625419199466705, -0.02998271770775318, -0.002749629784375429, + 0.009402708150446415, -0.01504433248192072, 0.0037047993391752243, -0.02857893332839012, + -0.015415143221616745, -0.015653522685170174, -0.07696977257728577, -0.03162488341331482, + -0.027757853269577026, 0.010852843523025513, -0.008859734050929546, 0.012892303988337517, + -0.004482840187847614, 0.027122177183628082, -0.017613522708415985, -0.013302844949066639, + 0.007230814546346664, 0.008157841861248016, -0.013382304459810257, 0.014541088603436947, + -0.014713251031935215, 0.014872170053422451, -0.020050281658768654, 0.008859734050929546, + 0.01148189790546894, -0.01740163005888462, 0.038802724331617355, 0.007502301130443811, + 0.03774326294660568, -0.048125971108675, 0.029691366478800774, 0.004595407750457525, + -0.012137439101934433, -0.010011897422373295, 0.0293735284358263, 0.021043524146080017, + 0.020315146073698997, -0.030300555750727654, 0.03130704537034035, 0.006522300653159618, + -0.0014584129676222801, 0.0004552367317955941, -0.055091921240091324, -0.010190680623054504, + 0.03591569513082504, -0.023096228018403053, 0.0046583134680986404, 0.0014410311123356223, + -0.006717638578265905, 0.0033902721479535103, 0.004979461897164583, 0.012064601294696331, + -0.04598056524991989, -0.02887028641998768, 0.020169470459222794, -0.013799467124044895, + -0.02868488058447838, 0.008462436497211456, -0.0008972302312031388, 0.029876772314310074, + -0.03430001810193062, 0.029347043484449387, 0.04592759162187576, 0.0217983890324831, + 0.010031762532889843, -0.03790218383073807, -0.019441090524196625, -0.009521896950900555, + -0.008296896703541279, 0.054058946669101715, -0.01434244029223919, 0.027757853269577026, + -0.008528653532266617, 0.05477408319711685, -0.024764878675341606, 0.05779354274272919, + 0.009217302314937115, -0.01868622563779354, -0.0029664880130439997, 0.03212812542915344, + -0.021043524146080017, -0.031836774200201035, -0.010508518666028976, -0.003648515557870269, + -0.006002502981573343, -0.007250679656863213, -0.007177841849625111, 0.0007490713614970446, + 0.0019964200910180807, 0.0390675887465477, 0.06897084414958954, 0.04036542773246765, + 0.008051896467804909, 0.0018557104049250484, -0.01948082074522972, 0.06197841092944145, + 0.017918117344379425, 0.014872170053422451, 0.008833248168230057, -0.033002179116010666, + 0.04635137692093849, 0.02355974167585373, 0.021215686574578285, 0.02844650112092495, + 0.011064735241234303, 0.011521628126502037, -0.018831901252269745, -0.01684541441500187, + 0.007833382114768028, 0.005307232495397329, -0.015375413931906223, 0.0470135398209095, + -0.01782541535794735, 0.01775919832289219, 0.047702185809612274, 0.03260488063097, + -0.018593523651361465, -0.028552448377013206, 0.010515140369534492, 0.01574622467160225, + 0.017732711508870125, 0.020129740238189697, 0.01129649206995964, 0.017176495864987373, + 0.013256493955850601, -0.025930283591151237, -0.030856773257255554, 0.006720949430018663, + 0.011832844465970993, -0.03734596446156502, -0.00456561055034399, 0.011018384248018265, + -0.0314924493432045, -0.029823798686265945, -0.003065812401473522, 0.006939463317394257, + 0.01348825078457594, 0.016765953972935677, -0.002079190220683813, 0.022434065118432045, + ], + index: 54, + }, + { + title: "David E. Davis", + text: "David Evan Davis, Jr.", + vector: [ + 0.04507243260741234, -0.020444175228476524, -0.03391487896442413, -0.018947429955005646, + -0.008971964940428734, 0.07619792222976685, 0.00044195432565174997, 0.009091024287045002, + -0.029917890205979347, 0.06718343496322632, 0.006930949632078409, 0.004634806886315346, + 0.016055990010499954, 0.013139039278030396, 0.017110515385866165, 0.02246818132698536, + -0.06044808402657509, 0.049562666565179825, -0.007526245899498463, -0.003237986471503973, + 0.014142538420855999, -0.04044612869620323, -0.031414635479450226, 0.03619401156902313, + 0.00019812204118352383, 0.037656739354133606, 0.00628888001665473, -0.005221598781645298, + 0.04901839420199394, 0.005965718999505043, -0.0052003380842506886, 0.04908642917871475, + 0.05949560925364494, 0.020716309547424316, -0.011727336794137955, 0.02840413711965084, + -0.02039314992725849, 0.009184570983052254, 0.03507145494222641, 0.014380657114088535, + 0.02367578260600567, -0.0467732772231102, -0.056570153683423996, -0.0034505922812968493, + 0.006845907308161259, 0.019525717943906784, -0.043609704822301865, 0.013666301034390926, + -0.004826151765882969, 0.06555062532424927, -0.012007975950837135, -0.008784872479736805, + -0.028608238324522972, 0.01699995994567871, 0.02068229392170906, 0.028183026239275932, + -0.025053469464182854, 0.08660710602998734, -0.017535727471113205, -0.016557740047574043, + 0.06595882773399353, -0.047657717019319534, 0.032486166805028915, 0.014091513119637966, + 0.004383931867778301, 0.039017416536808014, -0.0021154277492314577, 0.024356121197342873, + -0.01307100523263216, 0.010426188819110394, 0.026737306267023087, 0.0065567633137106895, + -0.009813884273171425, 0.1040237694978714, 0.02154972404241562, -0.009252605028450489, + -0.013589763082563877, 0.050685226917266846, 0.005234355106949806, -0.0009423752781003714, + 0.016838381066918373, -0.052250005304813385, -0.002574656391516328, 0.01423608511686325, + 0.005795634351670742, -0.030649254098534584, 0.017467692494392395, -0.07708236575126648, + 0.018301108852028847, 0.008329895325005054, 0.022842368111014366, 0.007709086872637272, + 0.045310549437999725, -0.04398389160633087, 0.03677229955792427, -0.0012947693467140198, + 0.015214071609079838, -0.005731852725148201, -0.0007042567594908178, -0.08497428894042969, + 0.010017985478043556, 0.022706300020217896, -0.015562745742499828, 0.010604777373373508, + 0.00818532332777977, -0.03200992941856384, -0.026618247851729393, 0.021838868036866188, + -0.0076453047804534435, 0.045242518186569214, 0.0009264298132620752, 0.017875896766781807, + -0.002194091910496354, 0.04401790723204613, -0.021583741530776024, 0.03138061612844467, + -0.008852905593812466, -0.015248089097440243, 0.038575198501348495, -0.023233562707901, + -0.02005298063158989, -0.03782682493329048, 0.0320439487695694, 0.018760336562991142, + 0.013300619088113308, -0.01530761830508709, -0.014338135719299316, -0.00030934144160710275, + 0.022519206628203392, -0.0022025962825864553, -0.031567711383104324, 0.023131512105464935, + 0.005812642630189657, 0.022502198815345764, -0.020580243319272995, 0.027247561141848564, + 0.018182048574090004, 0.031278565526008606, 0.00423510791733861, 0.06589079648256302, + -0.022008953616023064, 0.014516724273562431, 0.0233866386115551, 0.013955445028841496, + 0.01643868163228035, 0.011029989458620548, 0.0627952516078949, 0.007717590779066086, + 0.034187015146017075, 0.03374479338526726, -0.014338135719299316, 0.020733319222927094, + -0.02564876526594162, -0.005361918359994888, 0.007683573756366968, 0.017025472596287727, + 0.0025533956941217184, -0.027162518352270126, -0.052181970328092575, -0.02918652631342411, + -0.003977854736149311, -0.009388672187924385, -0.012101522646844387, 0.03840511292219162, + -0.003688710741698742, -0.05602588132023811, 0.00818532332777977, 0.01104699820280075, + -0.025342613458633423, -0.001504186075180769, 0.034459151327610016, -0.0114466967061162, + 0.0274856798350811, -0.053882814943790436, -0.030768312513828278, 0.0033974407706409693, + -0.0008047129958868027, -0.02041015774011612, -0.03296240419149399, 0.001574345980770886, + -0.018794354051351547, 0.014142538420855999, 0.029441652819514275, 0.04371175542473793, + 0.008478719741106033, 0.0012022858718410134, 0.007122294511646032, 0.025206545367836952, + 0.007496480830013752, -0.04207894206047058, -0.013479208573698997, 0.003386810654774308, + -0.012620280496776104, -0.021481690928339958, 0.053746748715639114, -0.004983480088412762, + 0.04415397346019745, -0.02542765438556671, -0.03343864157795906, 0.01819905824959278, + 0.01679585874080658, -0.004932454787194729, 0.03345565125346184, -0.00828737486153841, + 0.04078629985451698, 0.06626497954130173, -0.0038269045762717724, 0.0046305544674396515, + -0.048508141189813614, -0.019746826961636543, -0.007190328557044268, -0.01427860651165247, + -0.007500732783228159, 0.007398682180792093, 0.0060465093702077866, 0.029305584728717804, + -0.02423706278204918, 0.013156047090888023, 0.03731657192111015, 0.029458660632371902, + 0.0005862605175934732, 0.0032528690062463284, 0.013419678434729576, -0.015316122211515903, + -0.018828369677066803, -0.043609704822301865, -0.023624757304787636, 0.0029403383377939463, + -0.005672323051840067, 0.00458803353831172, 0.01211853139102459, -0.011259603314101696, + 0.011115031316876411, 0.02889738231897354, -0.035887859761714935, -0.0340169295668602, + -0.03155070170760155, -0.025597739964723587, 0.0039395857602357864, 0.022978436201810837, + -0.020631268620491028, -0.0037886356003582478, -0.018760336562991142, -0.0399358756840229, + 0.040071941912174225, 0.04292936623096466, -0.0010523988166823983, -0.00995845627039671, + -0.025750815868377686, -0.0004276034305803478, 0.020665284246206284, -0.03309847414493561, + 0.02034212462604046, -0.030138999223709106, -0.012815877795219421, -0.011029989458620548, + 0.0026596987154334784, 0.023488689213991165, -0.02712850086390972, -0.001083758077584207, + -0.018045980483293533, 0.00175399798899889, -0.0032953901682049036, 0.02876131422817707, + -0.02459423989057541, 0.029016440734267235, -0.04207894206047058, 0.019219566136598587, + 0.02381185069680214, -0.031142499297857285, -0.010188070125877857, -0.011846396140754223, + -0.014134034514427185, -0.01339416578412056, 0.025053469464182854, -0.02367578260600567, + -0.03126155957579613, 0.027162518352270126, -0.022978436201810837, 0.015775350853800774, + 0.062387049198150635, 0.011769857257604599, 0.037078455090522766, -0.04082031548023224, + -0.04391585662961006, -0.008619039319455624, 0.011973959393799305, 0.02535962127149105, + 0.06936051696538925, -0.011769857257604599, 0.009159058332443237, 0.011531739495694637, + 0.015537232160568237, 0.0009354655630886555, 0.004256368149071932, -0.018658285960555077, + 0.004507243167608976, -0.0902809277176857, -0.013028483837842941, -0.060686200857162476, + 0.03359171748161316, 0.018182048574090004, 0.0274856798350811, 0.013334636576473713, + 0.020359132438898087, -0.024917401373386383, -0.023896893486380577, 0.027655763551592827, + 0.004932454787194729, -0.028676271438598633, -0.015043986961245537, 0.002804270712658763, + 0.051127444952726364, 0.022417156025767326, 0.00582965137436986, -0.008776367641985416, + 0.04337158426642418, 0.04514046385884285, 0.02508748508989811, -0.008253357373178005, + 0.003979980945587158, 0.013751343823969364, -0.03939160332083702, 0.009677816182374954, + 0.004143687430769205, -0.006118795368820429, -0.04653516039252281, 0.027689781039953232, + -0.026618247851729393, 0.03537760674953461, -0.022519206628203392, -0.014567750506103039, + -0.009312134236097336, 0.014720826409757137, 0.0660608783364296, 0.013198568485677242, + -0.013683309778571129, 0.01303698867559433, 0.018045980483293533, 0.0010784430196508765, + -0.009558756835758686, 0.008389425463974476, -0.007011739537119865, 0.0009620413184165955, + -0.0029956158250570297, -0.03054720349609852, 0.010052002966403961, 0.034050945192575455, + 0.017892904579639435, -0.07300033420324326, 0.0007685699965804815, 0.04813395440578461, + 0.01630261354148388, 0.003644063603132963, 0.024135012179613113, -0.049494631588459015, + -0.017093507573008537, -0.01253523863852024, 0.0070755211636424065, -0.04194287583231926, + 0.0018528596265241504, -0.02076733484864235, -0.021736817434430122, 0.03160172700881958, + -0.03075130470097065, -0.04993685334920883, -0.010273112915456295, -0.00529388478025794, + -0.05116146057844162, 0.06344157457351685, -0.007539002224802971, 0.04663721099495888, + -0.008580770343542099, 0.002530009252950549, 0.045956872403621674, -0.030768312513828278, + 0.01920255646109581, -0.036228030920028687, -0.022417156025767326, 0.018454184755682945, + -0.003142313798889518, -0.006935201585292816, 0.015928426757454872, 0.00688842823728919, + 0.018947429955005646, -0.042487144470214844, -0.03871126472949982, 0.04003792628645897, + 0.020869385451078415, 0.0053746746852993965, -0.0615026094019413, -0.007058512885123491, + -0.010740845464169979, 0.011208578012883663, 0.031278565526008606, -0.023556724190711975, + 0.027587730437517166, -0.0004977633361704648, 0.08497428894042969, -0.02161775901913643, + -0.0362960621714592, 0.014873902313411236, 0.0013255971716716886, -0.04656917601823807, + 0.027876874431967735, -0.048644211143255234, -0.007232849486172199, 0.013062501326203346, + 0.03095540590584278, 0.004753865767270327, 0.008147054351866245, -0.014304119162261486, + -0.024781333282589912, 0.006314392667263746, 0.005247111432254314, -0.03684033453464508, + 0.031193524599075317, 0.035105470567941666, 0.05816895142197609, -0.01891341246664524, + 0.037792809307575226, -0.010154053568840027, -0.002014440018683672, -0.010315634310245514, + 0.049052413552999496, 0.053100425750017166, 0.03854118287563324, -0.019287599250674248, + 0.0012724457774311304, 0.011064006015658379, -0.002438588533550501, 0.0004656067176256329, + -0.03452718257904053, 0.0690203532576561, -0.045446619391441345, -0.04299739748239517, + -0.023403648287057877, -0.016098512336611748, -0.03973177447915077, 0.03789485991001129, + 0.007794129196554422, -0.04411995783448219, 0.05143359676003456, -0.026056967675685883, + -0.06663916260004044, -0.0045242514461278915, -0.04139860346913338, 0.0014616649132221937, + -0.0006564204231835902, -0.026193035766482353, -0.011922934092581272, -0.019814861938357353, + -0.037452638149261475, -0.03314949944615364, 0.00921008363366127, -0.03905143588781357, + -0.06810189038515091, 0.005013245157897472, -0.026465171948075294, -0.02457723207771778, + 0.0031359356362372637, 0.02627807855606079, -0.009550252929329872, -0.02641414664685726, + -0.03126155957579613, 0.021651776507496834, 0.002885060850530863, -0.014227581210434437, + -0.009057007730007172, 0.05259017273783684, -0.03269026800990105, -0.0341700054705143, + 0.04592285677790642, 0.02649918757379055, -0.008627544157207012, 0.008147054351866245, + 0.011965454556047916, -0.06170671060681343, 0.013385661877691746, 0.09980566799640656, + 0.017110515385866165, -0.006233602296561003, 0.05037907138466835, -0.03132959082722664, + -0.023403648287057877, -0.0008451081230305135, 0.03721452131867409, -0.023981936275959015, + -0.019712811335921288, 0.011191570200026035, 0.003314524656161666, 0.07150358706712723, + -0.02039314992725849, -0.03345565125346184, -0.01579236052930355, 0.012356650084257126, + -0.013581259176135063, 0.02445817179977894, 0.026397136971354485, 0.001953847473487258, + 0.006148559972643852, 0.0653805360198021, -0.016897909343242645, -0.04058219864964485, + -0.025614747777581215, -0.03670426830649376, -0.00767081743106246, 0.0013819377636536956, + 0.008861410431563854, 0.01721256598830223, 0.011497722007334232, 0.008653056807816029, + -0.055651698261499405, 0.0037567445542663336, -0.011140544898808002, -0.044528160244226456, + 0.02325057052075863, 0.04755566641688347, -0.015171550214290619, 0.03554769232869148, + 0.0072413538582623005, 0.010604777373373508, 0.01420206855982542, 0.007849406450986862, + 0.049494631588459015, -0.030513186007738113, 0.019457682967185974, -0.013292115181684494, + 0.008079021237790585, -0.022366130724549294, 0.0010513357119634748, -0.005327901802957058, + 0.002340789884328842, -0.0217538271099329, -0.044460125267505646, 0.027689781039953232, + 0.021634766831994057, -0.013615275733172894, 0.010477214120328426, 0.006671570241451263, + -0.00699473125860095, -0.03871126472949982, 0.0074156904593110085, -0.017306113615632057, + 0.02018904685974121, -0.033761803060770035, -0.06721745431423187, 0.004349914845079184, + 0.021090496331453323, 0.001069938763976097, 0.05507341027259827, -0.04010596126317978, + -0.018539227545261383, 0.003121053334325552, 0.023471681401133537, -0.023131512105464935, + -0.02345467358827591, 0.03350667655467987, -0.010077515617012978, -0.031839847564697266, + 0.0018539226148277521, -0.01720406301319599, -0.01989990472793579, -0.0036759544163942337, + -0.05677425488829613, -0.0013883159263059497, -0.04357568547129631, 0.03144865110516548, + -0.037010420113801956, -0.006186828948557377, -0.014057496562600136, -0.01629410870373249, + -0.008988973684608936, -0.001060371519997716, -0.025274578481912613, -0.002156886039301753, + 0.02933960221707821, -0.01402347907423973, 0.04633105918765068, 0.014610270969569683, + 0.03840511292219162, 0.017246583476662636, 0.00949922762811184, 0.01573283039033413, + 0.0027553713880479336, -0.006208089645951986, -0.01857324317097664, 0.021736817434430122, + 0.03311548009514809, 0.007122294511646032, -0.019661786034703255, -0.022485191002488136, + 0.04044612869620323, 0.011285115964710712, 0.04235107824206352, 0.059767745435237885, + -0.013002971187233925, 0.002657572738826275, -0.003824778599664569, -0.023607749491930008, + -0.005149312783032656, 0.006658813916146755, 0.06065218523144722, -0.0003888028732035309, + -0.01743367686867714, -0.010715332813560963, -0.007258362136781216, -0.01989990472793579, + -0.02501945197582245, -0.043745771050453186, 0.006484477315098047, -0.00949922762811184, + 0.008852905593812466, 0.032707277685403824, -0.003975728526711464, 0.03704443573951721, + 0.012705323286354542, 0.047929853200912476, -0.026873374357819557, 0.021073488518595695, + -0.0024322103708982468, -0.024032961577177048, 0.0033230287954211235, 0.017025472596287727, + 0.047725751996040344, -0.025835858657956123, 0.03677229955792427, -0.035887859761714935, + -0.009150554426014423, -0.002336537931114435, -0.013980957679450512, 0.031125491484999657, + 0.023352622985839844, -0.02500244416296482, -0.002500244416296482, -0.015707317739725113, + 0.022281089797616005, -0.03138061612844467, 0.005026001483201981, -0.02090340293943882, + -0.0435076542198658, 0.013793865218758583, 0.023777833208441734, 0.03738460689783096, + -0.047283533960580826, 0.009014486335217953, 0.026890382170677185, 0.03626204654574394, + 0.007534749805927277, -0.0062165940180420876, 0.015316122211515903, -0.022842368111014366, + -0.002680959179997444, 0.00793870072811842, 0.0038928124122321606, -0.02586987428367138, + -0.01998494565486908, -0.016523724421858788, 0.03871126472949982, -0.0026214297395199537, + -0.005366170778870583, -0.04071826487779617, -0.019712811335921288, -0.003167826682329178, + -0.02614201046526432, -0.02282536029815674, 0.0228933934122324, 0.005549011752009392, + 0.029611736536026, 0.014814373105764389, 0.028523195534944534, -0.00602099671959877, + 0.0011480713728815317, -0.015129029750823975, -0.0028723045252263546, 0.0074752201326191425, + -0.0027085980400443077, 0.00043398162233643234, -0.0487462617456913, 0.013164551928639412, + 0.031227542087435722, -0.0017380524659529328, -0.005621297750622034, 0.0073051354847848415, + 0.015358643606305122, 0.0051408084109425545, 0.02287638559937477, -0.016957439482212067, + 0.015622274950146675, 0.026159018278121948, 0.0013649292523041368, 0.028438152745366096, + -0.00035638047847896814, 0.003682332579046488, 0.01310502178966999, -0.010188070125877857, + 0.026941407471895218, -0.025529704988002777, -0.04224902763962746, 0.008704082109034061, + 0.053100425750017166, -0.02245117351412773, 0.029441652819514275, 0.029220541939139366, + 0.012985962443053722, -0.02166878432035446, 0.010358154773712158, -0.052045904099941254, + -0.010936442762613297, -0.008478719741106033, 0.036534182727336884, 0.02345467358827591, + 0.024032961577177048, 0.013802369125187397, 0.03966373950242996, -0.046875327825546265, + 0.0015966696664690971, -0.005047261714935303, -0.04769173637032509, 0.0017486828146502376, + 0.013657797127962112, 0.00291482568718493, -0.04585482180118561, 0.002277008257806301, + 0.031227542087435722, 0.03180582821369171, 0.023964926600456238, -0.030275067314505577, + 0.03338761627674103, -0.0010412369156256318, -0.019508708268404007, 0.05476725846529007, + -0.0036738284397870302, 0.01257776003330946, -0.020086996257305145, -0.019814861938357353, + 0.029662761837244034, 0.007487976457923651, 0.052454106509685516, -0.01807999797165394, + 0.04840609058737755, -0.025529704988002777, 0.019389649853110313, -0.016549237072467804, + -0.021940920501947403, 0.023335613310337067, 0.03292838856577873, 0.0233866386115551, + 0.020512208342552185, -0.03854118287563324, 0.0037588707637041807, -0.042623214423656464, + 0.04486833140254021, 0.01996793784201145, -0.03479931876063347, 0.002106923609972, + 0.013793865218758583, -0.03537760674953461, 0.031856853514909744, 0.017391154542565346, + 0.0036568199284374714, 0.017960939556360245, -0.00917606707662344, 0.002311025047674775, + 0.03132959082722664, 0.0011342519428581, 0.033693768084049225, -0.012620280496776104, + -0.016268596053123474, 0.010808879509568214, -0.015103517100214958, 0.006365417968481779, + -0.024066977202892303, -0.014014975167810917, -0.03462923318147659, 0.01328361127525568, + -0.03046216070652008, -0.06170671060681343, -0.007768616080284119, -0.006526998244225979, + -0.014457195065915585, -0.004284007009118795, -0.03216300532221794, -0.020291099324822426, + -0.022944418713450432, -0.014584758318960667, 0.025971924886107445, 0.04292936623096466, + -0.012560751289129257, -0.022723309695720673, -0.03229907527565956, -0.014788860455155373, + 0.001293706358410418, -0.012297119945287704, 0.008219340816140175, -0.014440186321735382, + -0.004656067118048668, -0.009847900830209255, -0.007266866508871317, 0.01339416578412056, + -0.013011476024985313, -0.004341410472989082, -0.016557740047574043, -0.0063271489925682545, + -0.005272624082863331, -0.03471427783370018, 0.0389493852853775, 0.012756348587572575, + 0.018675293773412704, -0.008006734773516655, 0.023488689213991165, -0.002014440018683672, + 0.01763777807354927, 0.0017943930579349399, 0.026822349056601524, 0.011004476808011532, + 0.0012416179524734616, 0.004838908091187477, -0.002644816180691123, 0.026737306267023087, + -0.026261068880558014, 0.011531739495694637, -0.0043924362398684025, 0.0004733136738650501, + 0.023624757304787636, -0.0477597676217556, 0.025631755590438843, -0.053236495703458786, + 0.007951457053422928, -0.009754354134202003, 0.02996891550719738, -0.009201579727232456, + -0.011242595501244068, -0.009142049588263035, -0.010494222864508629, -0.0033931888174265623, + 0.00391619885340333, 0.00864030048251152, 0.04490234702825546, 0.032707277685403824, + 0.07442904263734818, -0.02663525566458702, -0.033064454793930054, -0.02195792831480503, + -0.015571249648928642, -0.01282438263297081, 0.00811729021370411, -0.035173505544662476, + -0.004707092419266701, -0.01438916102051735, 0.01527360174804926, 0.014491211622953415, + -0.0706871822476387, -0.03032609261572361, -0.009295126423239708, -0.05554964765906334, + 0.010715332813560963, 0.03165275231003761, -0.021515708416700363, -0.011021485552191734, + 0.04718147963285446, -0.004122426733374596, -0.0090740155428648, -0.03871126472949982, + 0.07340853661298752, -0.028319094330072403, 0.03564974293112755, -0.023760825395584106, + 0.06143457442522049, -0.022723309695720673, -0.003843913087621331, 0.0474536158144474, + 0.007105286233127117, -0.0007356160786002874, -0.012024984695017338, 0.007870666682720184, + 0.01069832406938076, 0.024985434487462044, 0.03479931876063347, 0.016387656331062317, + -0.004617798142135143, 0.018250083550810814, -0.010392172262072563, -0.03229907527565956, + 0.03813297674059868, 0.0067353518679738045, 0.0006819331320002675, 0.02076733484864235, + -0.005157817155122757, 0.02882934734225273, 0.021413657814264297, 0.011761353351175785, + 0.031142499297857285, -0.007547506131231785, -0.0003545201907400042, 0.0024300843942910433, + -0.022655274718999863, 0.002457723254337907, -0.00786216277629137, -0.001574345980770886, + 0.0040076193399727345, 0.03554769232869148, 0.03442513197660446, 0.06010791286826134, + -0.009949952363967896, -0.019576743245124817, 0.05449512228369713, -0.0032932639587670565, + 0.056434087455272675, -0.01490791980177164, -0.030632244423031807, 0.004190460313111544, + 0.01565629243850708, 0.025903891772031784, 0.00391407310962677, 0.05150163173675537, + -0.02558073028922081, 0.0072456058114767075, 0.04473226144909859, -0.038439132273197174, + 0.009116536937654018, 0.006106039043515921, 0.016243083402514458, 0.03684033453464508, + 0.021906903013586998, -0.01506099570542574, -0.03996989130973816, 0.07293229550123215, + -0.037724774330854416, 0.025342613458633423, 0.0412285178899765, 0.018454184755682945, + -0.014125529676675797, -0.004277628846466541, 0.013445191085338593, -0.011956950649619102, + -0.04435807466506958, 0.008465963415801525, 0.004332906566560268, -0.014610270969569683, + 0.04116048663854599, 0.034391116350889206, -0.020954428240656853, -0.0023152772337198257, + 0.00483465613797307, -2.617709105834365e-5, -0.03362573683261871, 0.014372153207659721, + -0.021141521632671356, -0.01864127814769745, 0.002217478584498167, 0.030632244423031807, + 0.023709800094366074, 0.01947469264268875, 0.015282105654478073, -0.02076733484864235, + 0.007917440496385098, -0.04003792628645897, 0.024815350770950317, -0.04146663844585419, + -0.027876874431967735, -0.0012192942667752504, 0.016404664143919945, -0.005527751054614782, + 0.00963529571890831, 0.02025708183646202, 0.02437313087284565, -0.019253581762313843, + -0.02379484288394451, 0.01672782562673092, -0.012620280496776104, 0.031856853514909744, + -0.012220581993460655, -0.006144308019429445, -0.005553263705223799, 0.027094485238194466, + -0.0005628739017993212, -0.0025895386934280396, -0.030768312513828278, 0.0006548258825205266, + -0.027672771364450455, 0.004383931867778301, -0.004366923123598099, 0.009235596284270287, + 0.029713787138462067, 0.03979980945587158, -0.0045667728409171104, 0.018947429955005646, + 0.03462923318147659, -0.03081933781504631, -0.034050945192575455, -0.005855164024978876, + 0.011514730751514435, -0.028387127444148064, 0.028217043727636337, -0.003607920603826642, + 0.0005596848204731941, -0.0024215802550315857, -0.02806396782398224, 0.013810873031616211, + -0.05949560925364494, 0.02663525566458702, 0.022213054820895195, -0.008236349560320377, + -0.02444116398692131, -0.029934898018836975, 0.01233113743364811, -0.009261108934879303, + -0.027519695460796356, -0.01708500273525715, -0.01869230344891548, 0.009414184838533401, + 0.033268555998802185, 0.014508220367133617, -0.011166057549417019, 0.0033336591441184282, + 0.017484702169895172, -0.03650016710162163, 0.022162029519677162, 0.032843343913555145, + 0.0222470723092556, -0.017535727471113205, -0.007947205565869808, -0.04605892300605774, + -0.004507243167608976, 0.012220581993460655, -0.006926697213202715, 0.01864127814769745, + 0.04003792628645897, -0.006131551694124937, -0.011812378652393818, 0.00921008363366127, + 0.011489218100905418, -0.02515552006661892, -0.05418897047638893, 0.015248089097440243, + 0.020069988444447517, 0.02558073028922081, -0.016829876229166985, 0.04912044480443001, + -0.02757072076201439, 0.008861410431563854, 0.014074504375457764, 0.022417156025767326, + -0.0034272056072950363, -0.006586527917534113, 0.02969677932560444, 0.036670248955488205, + 0.011429687961935997, -0.027893882244825363, 0.01857324317097664, -0.03413598984479904, + -0.01091093011200428, 0.007143555209040642, -0.0008998541161417961, 0.00591469369828701, + -0.0074071865528821945, -0.01920255646109581, -0.01891341246664524, -0.006067769601941109, + 0.01664278283715248, -0.030002931132912636, 0.0016859640600159764, -0.006709839217364788, + 0.011029989458620548, -0.005889181047677994, -0.007492228876799345, -0.005782878026366234, + 0.02471330016851425, -0.016413168981671333, 0.00047171913320198655, 0.0008217214490287006, + -0.018607260659337044, 0.013836385682225227, -0.0017529348842799664, -0.01364078838378191, + -0.025699790567159653, -0.013156047090888023, 0.010468710213899612, -0.005676575005054474, + 0.02835310995578766, 0.029373617842793465, -0.017408164218068123, -0.03711247071623802, + -0.008661560714244843, 0.024883383885025978, -0.0027893881779164076, 0.0016381277237087488, + 0.0004209594917483628, 0.007794129196554422, -0.03207796439528465, 0.024900391697883606, + -0.007704834453761578, 0.01991691254079342, -0.006841654889285564, 0.005910441745072603, + -0.006811890285462141, 0.057080406695604324, 0.0014680430758744478, 0.013674805872142315, + 0.009312134236097336, -0.060618169605731964, -0.028659263625741005, -0.0024662273935973644, + -0.019933920353651047, -0.010120037011802197, -0.007483724504709244, 0.020920412614941597, + -0.023692792281508446, 0.012050497345626354, -0.011531739495694637, -0.0015658418415114284, + -0.0024024457670748234, -0.0092441001906991, 0.010307129472494125, 0.0017784476513043046, + 0.030292075127363205, -0.036228030920028687, -0.010034994222223759, -0.03224804997444153, + -0.014822877012193203, 0.01293493714183569, -0.006799133960157633, -0.011149048805236816, + -0.020359132438898087, -0.017960939556360245, -0.008572266437113285, 0.006254862993955612, + 0.009813884273171425, -0.0015265097608789802, -0.0220939964056015, -0.044596195220947266, + -0.017391154542565346, -0.021311607211828232, 0.030853355303406715, -0.00499623641371727, + 0.003191213123500347, -0.012135539203882217, 0.011378662660717964, -0.011506226845085621, + 0.03871126472949982, -0.025121502578258514, 0.0032337342854589224, -0.011531739495694637, + 1.98155266843969e-5, -0.01665979065001011, 0.02537662908434868, 0.012526734732091427, + -0.04146663844585419, -0.025393638759851456, -0.022128012031316757, -0.031924888491630554, + 0.041840825229883194, 0.008878418244421482, 0.002423706231638789, -0.008776367641985416, + -0.004028880037367344, -0.001800771220587194, -0.03005395643413067, -0.009082520380616188, + -0.0008929444011300802, -0.04139860346913338, 0.002204722259193659, -0.014992961660027504, + 0.01385339442640543, -0.0039459639228880405, -0.009677816182374954, -0.041126467287540436, + -0.014261597767472267, -0.017960939556360245, -0.0038396609015762806, 0.031771812587976456, + 0.024203045293688774, 0.02954370342195034, 0.04000391066074371, -0.02954370342195034, + -0.012790365144610405, 0.037010420113801956, -0.016472699120640755, 0.04337158426642418, + -0.009133545681834221, -0.012509725987911224, -0.010477214120328426, -0.003958720248192549, + 0.010783366858959198, -0.008988973684608936, 0.008300131186842918, 0.005595785100013018, + -0.05973372980952263, 0.01607299968600273, -0.020580243319272995, 0.035615723580121994, + -0.031431641429662704, 0.006008240394294262, -0.00010005760850617662, 0.004468974191695452, + 0.0022089744452387094, -0.0010646235896274447, 0.03427205607295036, -0.011472209356725216, + -0.02103947103023529, -0.03250317648053169, 0.0034931134432554245, 0.00945670623332262, + 0.004753865767270327, -0.017484702169895172, 0.009541749022901058, -0.028659263625741005, + -0.004443461541086435, 0.00645046029239893, -0.0027851362247020006, -0.002838287502527237, + 0.009371664375066757, 0.024781333282589912, -0.021566733717918396, -0.04323551803827286, + -0.003867299761623144, 0.005621297750622034, 0.0036802066024392843, -0.012390666641294956, + -0.021158529445528984, 0.040071941912174225, -0.005689331330358982, 0.002131373155862093, + -0.009779867716133595, 0.00483465613797307, 7.632216693309601e-6, -0.004473226144909859, + 0.018369141966104507, -0.010893921367824078, 0.0037907615769654512, -0.03311548009514809, + 0.011531739495694637, -0.009448202326893806, 0.0008908183663152158, -0.01261177659034729, + 0.007334900554269552, -0.01420206855982542, 0.002984985476359725, 0.046365074813365936, + 0.034033939242362976, 0.005259867757558823, -0.02394791878759861, -0.019525717943906784, + -0.00042707190732471645, -0.018454184755682945, 0.0016466319793835282, 0.03435710072517395, + -0.018369141966104507, 0.027621746063232422, 0.03799691051244736, 0.017187053337693214, + 0.014440186321735382, -0.007985474541783333, 0.03267326205968857, 0.01120007410645485, + -0.026805341243743896, 0.023913901299238205, 0.020648276433348656, 0.015026978217065334, + 0.019032472744584084, -0.04704541340470314, 0.038643233478069305, 0.0063866786658763885, + 0.06738753616809845, 0.01857324317097664, -0.010392172262072563, -0.01743367686867714, + 0.009108033031225204, -0.007504985202103853, -0.02537662908434868, 0.02551269717514515, + -0.028080975636839867, -0.052386071532964706, 0.011744344606995583, -0.02336963079869747, + -0.009728841483592987, 0.005004740785807371, -0.02260424941778183, 0.014882407151162624, + -0.013045492582023144, 0.01983186975121498, -0.017841879278421402, 0.0369764007627964, + -0.012144044041633606, -0.021804852411150932, -0.003174204844981432, 0.010749349370598793, + 0.02105647884309292, -0.021209554746747017, -0.019950930029153824, 0.007096781861037016, + 0.016098512336611748, 0.01331762783229351, 0.006191081367433071, -0.014729330316185951, + 0.004105417989194393, -0.0072413538582623005, 0.019712811335921288, 0.02933960221707821, + 0.011293620802462101, 0.01677885092794895, -0.01785888895392418, 0.021702801808714867, + -0.019236573949456215, 0.030904380604624748, -0.021277589723467827, 0.025308595970273018, + -0.011608277447521687, 0.017943929880857468, -0.008206584490835667, -0.036874350160360336, + 0.006539754569530487, -0.014678305014967918, -0.01807999797165394, -0.029611736536026, + 0.025563722476363182, 0.0008174693211913109, 0.012594767846167088, 0.017467692494392395, + 0.025529704988002777, -0.01713602803647518, 0.03408496454358101, -0.03854118287563324, + -0.02663525566458702, 0.02833610214293003, 0.009805380366742611, -0.05177376791834831, + -0.02627807855606079, -0.007058512885123491, 0.009924438782036304, 0.007143555209040642, + -0.00963529571890831, -0.017340129241347313, -0.02041015774011612, -0.0284721702337265, + 0.027604738250374794, 0.02296142838895321, 0.004088409710675478, 0.012297119945287704, + -0.023403648287057877, 0.024560222402215004, -0.00019971658184658736, 0.06973470747470856, + -0.007326396182179451, -0.014669801108539104, 0.02876131422817707, 0.010281616821885109, + 0.01374283991754055, 0.006539754569530487, -0.05235205590724945, -0.010120037011802197, + -0.013734335079789162, -0.00953324418514967, 0.003237986471503973, 0.013632284477353096, + 0.011599772609770298, -0.012807373888790607, 0.009363159537315369, 0.01650671474635601, + -0.011633790098130703, 0.021362632513046265, -0.02869327925145626, -0.029730796813964844, + 0.001143819303251803, 0.016540732234716415, -0.012883911840617657, -0.03626204654574394, + -0.01041768491268158, 0.021073488518595695, 0.02804695814847946, -0.0029701031744480133, + 0.004507243167608976, -0.011081014759838581, -0.012016480788588524, -0.008725342340767384, + -0.005549011752009392, -0.0016094259917736053, 0.01215254794806242, -0.01580086350440979, + 0.02282536029815674, -0.030292075127363205, 0.03789485991001129, -0.011531739495694637, + -0.02105647884309292, -0.010655803605914116, 0.01637915149331093, 0.031839847564697266, + -0.03541162237524986, 0.00458803353831172, -0.007296631578356028, 0.0018401033012196422, + -0.006986226886510849, -0.017467692494392395, 0.04150065407156944, 0.021651776507496834, + -0.016472699120640755, 0.002181335585191846, -0.00036966835614293814, -0.011072510853409767, + 0.012628785334527493, 0.002016566228121519, -0.016549237072467804, -0.024032961577177048, + -0.03663623332977295, 0.02331860549747944, -0.006692830938845873, -0.005017497111111879, + 0.03799691051244736, 0.008895426988601685, -0.009405680932104588, 0.00380777008831501, + -0.003852417226880789, 0.024220053106546402, 0.0026724550407379866, 0.012909424491226673, + -0.015834880992770195, 0.028948407620191574, 0.024407146498560905, 0.0040033673867583275, + -0.041058432310819626, -0.009252605028450489, -0.004033132456243038, 0.027434654533863068, + 0.03200992941856384, -0.03476530313491821, 0.009201579727232456, -0.01806299015879631, + -0.0009338710224255919, -0.017391154542565346, 0.011132040061056614, -0.004413696471601725, + 0.029662761837244034, 0.0011661428725346923, 0.022349122911691666, 0.003965098410844803, + 0.026618247851729393, -0.004439209122210741, 0.0065610152669250965, -0.019661786034703255, + -0.029662761837244034, 0.03639811649918556, 0.00892944447696209, 0.02246818132698536, + -0.03434009104967117, -0.0032060956582427025, -0.04656917601823807, 0.007390177808701992, + 0.03238411620259285, 0.0004911193973384798, -0.007628296501934528, -0.012526734732091427, + -0.02296142838895321, -0.008334147743880749, -0.01257776003330946, 0.009839396923780441, + -0.02549568936228752, -0.04061621427536011, -0.016532227396965027, -0.00807476881891489, + -0.013793865218758583, 0.0026001690421253443, 0.003897064598277211, -0.025104494765400887, + 0.018947429955005646, -0.009014486335217953, 0.003960846457630396, -0.024815350770950317, + -0.00970332883298397, 0.02501945197582245, 0.01544368639588356, -0.035241540521383286, + -0.00664180563762784, 0.04500439763069153, 0.017807861790060997, -0.0042372336611151695, + -0.025682782754302025, -0.012968954630196095, 0.009031495079398155, -0.015316122211515903, + 0.016804363578557968, -0.016948934644460678, -0.015571249648928642, -0.009320639073848724, + 2.097821379720699e-5, 0.015043986961245537, -0.018828369677066803, -0.0017848258139565587, + -0.0010816321009770036, 0.017807861790060997, -0.0033655499573796988, 0.02692439965903759, + -0.01708500273525715, -0.011259603314101696, -0.023284588009119034, 0.006101786624640226, + 0.00811729021370411, -0.018930422142148018, -0.0111235361546278, 0.029424645006656647, + 0.00172742223367095, -0.008266113698482513, 0.012007975950837135, -0.028097983449697495, + -0.005965718999505043, 0.019440675154328346, -0.020512208342552185, -0.012841391377151012, + 0.006242106668651104, 0.033489666879177094, -0.011999472044408321, -0.008725342340767384, + -0.006203837692737579, 0.024645265191793442, -0.03012199141085148, 0.0076453047804534435, + -0.024611247703433037, -0.01434663962572813, 0.02231510542333126, -0.009142049588263035, + 0.043031416833400726, 0.023114504292607307, -0.017050985246896744, -0.01694043166935444, + -0.04867822676897049, -0.007772868499159813, 0.002103734528645873, 0.03012199141085148, + -0.007819641381502151, -0.026397136971354485, 0.015035483054816723, -0.012637289240956306, + 0.007942953146994114, 0.009439698420464993, -0.003760996740311384, 0.005638306029140949, + ], + index: 55, + }, + { + title: "Newport Tower (Jersey City)", + text: "The Newport Tower (also known as Newport Office Center II and 525 Washington Boulevard) in Newport, Jersey City, New Jersey is the fourth tallest building in Jersey City. It has 37 floors, it is 531 ft (162 m) tall and is connected to a mall (called the Newport Centre Mall) within the complex. The mall is one of the few enclosed, regional shopping facilities in Hudson County. The building was developed by Melvin Simon & Associates in 1990.", + vector: [ + -0.018348103389143944, -0.03591682016849518, -0.01979321986436844, 0.005041669122874737, + -0.029860321432352066, -0.03724827244877815, 0.00991284754127264, 0.025557447224855423, + -0.034098245203495026, 0.08540798723697662, -0.01596122607588768, -0.025963379070162773, + 0.00849208701401949, -0.03796271234750748, 0.027960561215877533, -0.016708141192793846, + -0.03374102711677551, 0.010781540535390377, -0.0007687327452003956, 0.018185731023550034, + -0.008289121091365814, 0.0010325881885364652, -0.03627403825521469, 0.03893695026636124, + 0.030672183260321617, 0.007822300307452679, -0.006669454276561737, -0.005565320607274771, + -0.06410469859838486, -0.047575172036886215, -0.03877457603812218, 0.017568714916706085, + 0.0516994372010231, -0.01795841008424759, -0.006563912145793438, 0.05098499730229378, + 0.017032885923981667, -0.008240409195423126, -0.035721972584724426, -0.011244302615523338, + 0.03089950606226921, -0.007948138751089573, -0.00720528420060873, -0.01416700892150402, + 0.0566030889749527, -0.06615059822797775, -0.005650566425174475, -0.02674276754260063, + -0.009799186140298843, 0.048062290996313095, 0.0018490179209038615, -0.035527125000953674, + 0.01823444291949272, 0.022131385281682014, -0.004757517017424107, -0.016480818390846252, + 0.008410900831222534, 0.15340963006019592, 0.001280713826417923, 0.04936126992106438, + 0.061214469373226166, 0.03403329849243164, -0.0201504398137331, 0.013249604031443596, + 0.02438836358487606, 0.06647533923387527, -0.0030465158633887768, 0.03835240751504898, + -0.0019697826355695724, -0.018624136224389076, -0.03232838585972786, 0.04945869371294975, + -0.019403524696826935, -0.02055637165904045, 0.026125751435756683, -0.005723634269088507, + 0.03640393540263176, 0.03322143480181694, 0.014329382218420506, 0.003152057994157076, + 0.05683040991425514, 0.04796486720442772, -0.04280141741037369, -0.013411976397037506, + -0.039196744561195374, 0.00449772085994482, -0.05082262307405472, -0.05361543223261833, + 0.021709216758608818, 0.05631081759929657, 0.010270066559314728, 0.030509810894727707, + -0.06858618557453156, -0.038904473185539246, -0.029486864805221558, 0.02455073781311512, + 0.015092533081769943, 0.021351996809244156, 0.007599037606269121, 0.0630979910492897, + 0.05533658340573311, 0.043385960161685944, 0.019289864227175713, 0.025232702493667603, + -0.004392178729176521, 0.009027916938066483, 0.05725257843732834, 0.01828315481543541, + 0.03138662502169609, -0.01782851107418537, 0.07176868617534637, -0.027018800377845764, + 0.0039801583625376225, -0.04367822781205177, -0.014905804768204689, 0.01795841008424759, + -0.0041892132721841335, -0.011974979192018509, -0.0040674335323274136, -0.017974646762013435, + -0.011577166616916656, -0.0574149526655674, 0.024290941655635834, -0.0439704991877079, + -0.003192651318386197, -0.017763562500476837, -0.01995559222996235, 0.026190700009465218, + 0.0031277022790163755, -0.0032149774488061666, -0.024404602125287056, 0.02039399929344654, + 0.03546217456459999, -0.030038930475711823, -0.026158224791288376, 0.046633411198854446, + 0.016870513558387756, 0.01950094848871231, -0.014532347209751606, 0.01925739087164402, + -0.015847565606236458, -0.05679793655872345, -0.00069617253029719, -0.07196353375911713, + 0.033042822033166885, -0.06413717567920685, -0.003219036851078272, 0.011942504905164242, + -0.006109268870204687, -0.022017724812030792, 0.03130543604493141, 0.08034196496009827, + 0.0061904555186629295, -0.001422789879143238, 0.027343545109033585, -0.029632998630404472, + -0.08923997730016708, 0.008151104673743248, -0.0270837489515543, 0.04296378791332245, + -0.013858500868082047, -0.08326467126607895, -0.016838038340210915, -0.073262520134449, + -0.03883952647447586, -0.022813349962234497, 0.03314024582505226, 0.04224935173988342, + 0.03676115721464157, -0.007412309292703867, 0.021465657278895378, 0.002900380641222, + -0.02068626880645752, -0.01766613870859146, -0.0060686757788062096, -0.07741925865411758, + 0.05001075938344002, -0.007327063474804163, 0.04445761814713478, -0.04617876559495926, + 0.05520668253302574, -0.0067384629510343075, 0.0037325401790440083, -0.040495727211236954, + -0.02584971860051155, -0.0053664143197238445, -0.00962869543582201, 0.013736722059547901, + 0.008808713406324387, -0.029454389587044716, -0.05683040991425514, 0.03614414110779762, + 0.015912514179944992, 0.0307371336966753, -0.018559187650680542, -0.04150243476033211, + 0.05819433927536011, -0.011041336692869663, -0.020621320232748985, -0.00039527579792775214, + 0.0455942265689373, -0.007217462174594402, -0.03325390815734863, -0.022537317126989365, + 0.06400727480649948, -0.00663697998970747, -0.002405144041404128, 0.02174169011414051, + 0.0117070646956563, 0.06754700094461441, -0.02630436047911644, -0.03516990318894386, + 0.00494830496609211, -0.017406342551112175, 0.028918560594320297, 0.011828843504190445, + -0.03403329849243164, -0.004542373586446047, -0.013801670633256435, -0.003324578981846571, + 0.03721579909324646, -0.010497388429939747, -0.0054638381116092205, -0.0053420583717525005, + -0.0769646093249321, 0.0018662700895220041, -0.006170158740133047, 0.058324236422777176, + 0.006446192041039467, 0.04738032445311546, 0.004160797689110041, -0.02373887412250042, + -0.03029872663319111, 0.034585364162921906, 0.02088111639022827, 0.0015719697112217546, + 0.021205861121416092, -0.02854510210454464, 0.024940431118011475, 0.03357865288853645, + 0.0060118455439805984, 0.03783281520009041, -0.03219848498702049, -0.01203180942684412, + -0.01188567467033863, -0.05121231824159622, -0.023917483165860176, -0.013566230423748493, + -0.007059148512780666, -0.0003762477426789701, -0.024372126907110214, 0.007278351578861475, + 0.03789776563644409, 0.04458751529455185, 0.02976289764046669, -0.035527125000953674, + -0.03130543604493141, 0.007716757711023092, 0.04942622035741806, -0.05306336656212807, + -0.06111704558134079, 0.03167889267206192, 0.010594812221825123, 0.018559187650680542, + 0.0026771181728690863, -0.010481150820851326, -0.025346362963318825, 0.030639709904789925, + -0.04429524391889572, -0.0038198153488337994, 0.042281825095415115, -0.00850832462310791, + 0.060240235179662704, 0.06819649040699005, 0.03484515845775604, 0.02243989333510399, + 0.019533423706889153, -0.030363675206899643, -0.002167674247175455, 0.031013166531920433, + 0.018965119495987892, -0.00018837758398149163, -0.024664398282766342, -0.005423245020210743, + -0.01164211519062519, 0.057512372732162476, 0.0223911814391613, 0.05423244833946228, + 0.01523054949939251, -0.05202418193221092, -0.03284797817468643, 0.021936537697911263, + 0.006417776923626661, 0.01570954918861389, -0.02055637165904045, -0.03851478174328804, + 0.00090725690824911, -0.02227752096951008, 0.026612868532538414, 0.013769196346402168, + -0.02549249865114689, 0.042606569826602936, -0.05182933434844017, 0.004940186161547899, + 0.015693312510848045, 0.018705323338508606, -0.014102060347795486, 0.00494830496609211, + -0.014491754584014416, -0.05186180770397186, 0.04604886844754219, 0.006157980766147375, + 0.007789825554937124, 0.019403524696826935, -0.011609640903770924, -0.030526049435138702, + 0.08560283482074738, -0.018575426191091537, 0.017925934866070747, 0.0012218537740409374, + -0.00283949077129364, 0.032182250171899796, 0.007209343370050192, 0.009336424060165882, + -0.00455861072987318, -0.039066847413778305, 0.028902322053909302, 0.01758495159447193, + -0.008073977194726467, -0.04299626499414444, -0.010635404847562313, -0.0023198984563350677, + -0.00938513595610857, -0.06819649040699005, 0.026320599019527435, -0.03292916342616081, + 0.028431441634893417, -0.004075552336871624, -0.05306336656212807, 0.024161042645573616, + 0.05377780646085739, -0.011966860853135586, 0.02052389644086361, 0.03575444594025612, + 0.0011528454488143325, -0.056538138538599014, 0.025508735328912735, -0.007972494699060917, + 0.04078799858689308, 0.02724612131714821, 0.0007915664464235306, -0.01645646244287491, + -0.018055833876132965, 0.01807207055389881, 0.0598505400121212, 0.03089950606226921, + -0.04056067392230034, -0.06589080393314362, 0.03526732698082924, 0.008216053247451782, + 0.05234892666339874, 0.008743764832615852, -0.010456795804202557, 0.03588434308767319, + -0.039553966373205185, 0.003456506645306945, 0.008151104673743248, -0.010984506458044052, + -0.0193385761231184, 0.051894281059503555, -0.039846234023571014, -0.02633683569729328, + -0.00623916694894433, 0.012332199141383171, -0.009815423749387264, -0.0338059738278389, + -0.0025066270027309656, 0.010797778144478798, 0.0346178375184536, 0.002610139548778534, + 0.005983430426567793, -0.04923137277364731, -0.009677407331764698, -0.004534254781901836, + 0.03221472352743149, 0.014913923107087612, 0.02606080286204815, -0.009125339798629284, + -0.0307371336966753, 0.021725453436374664, -0.013070994056761265, -0.00686024222522974, + 0.02377134934067726, 0.02287829853594303, -0.006194514688104391, 0.011577166616916656, + -0.03078584559261799, 0.022894537076354027, 0.034098245203495026, 0.014816499315202236, + -0.028106696903705597, 0.024615686386823654, 0.026564156636595726, 0.008451493456959724, + -0.005784523673355579, -0.016261614859104156, 0.017373867332935333, -0.004992957226932049, + -0.017763562500476837, -0.015141244977712631, 0.0012046017218381166, -0.05247882381081581, + -0.03676115721464157, -0.024972906336188316, 0.020166676491498947, -0.03555959835648537, + 0.0270837489515543, -0.018331866711378098, 0.006742522120475769, -0.013070994056761265, + 0.004420593846589327, 0.019695796072483063, -0.039229221642017365, -0.0021027252078056335, + -0.038254983723163605, 0.02271592617034912, 0.0003133283753413707, 0.06865113228559494, + 0.0047128647565841675, 0.003777192672714591, -0.0162859708070755, -0.006295997649431229, + 0.029048457741737366, 0.028236594051122665, -0.009547509253025055, -0.034715261310338974, + 0.03802766278386116, 0.019159967079758644, -0.03562454879283905, 0.010042745620012283, + 0.016756853088736534, 0.02752215601503849, -0.03974881395697594, 0.006052438635379076, + -0.0040796115063130856, 0.019598372280597687, -0.029568050056695938, -0.014102060347795486, + -0.03702095150947571, 0.036014243960380554, -0.016188548877835274, -0.006446192041039467, + -0.024891719222068787, -0.006121446844190359, 0.028837373480200768, 0.0037386291660368443, + -0.0014989021001383662, 0.006827767938375473, -0.030201302841305733, 0.010602930560708046, + -0.02149813249707222, -0.02308938279747963, -0.03864467889070511, -0.05218655243515968, + -0.026499208062887192, 0.01616419292986393, -0.034422989934682846, -0.01674061454832554, + -0.005281168967485428, -0.02732730843126774, -0.008155163377523422, 0.07417180389165878, + -0.03643641248345375, 0.042444195598363876, -0.02805798500776291, -0.03487763553857803, + 0.032961636781692505, -0.048679303377866745, 0.0022285638842731714, -0.02511904016137123, + -0.008069918490946293, 0.03737817332148552, 0.03848230466246605, 0.01966332085430622, + -0.033448755741119385, -0.009937203489243984, -0.03695600479841232, -0.021969012916088104, + -0.029210830107331276, 0.05923352390527725, 0.06748205423355103, -0.01701664924621582, + -0.012210419401526451, -0.028837373480200768, -0.01860789954662323, -0.02271592617034912, + 0.01739010587334633, -0.029015982523560524, -0.005066025070846081, 0.003901001764461398, + 0.026109514757990837, -0.06209128350019455, 0.03164641931653023, 0.011983097530901432, + -0.007895367220044136, 0.02092982828617096, 0.019046306610107422, 0.0346178375184536, + -0.007692401763051748, 0.0005500371917150915, 0.012527045793831348, -0.033773500472307205, + -0.02997398190200329, 0.011163116432726383, -0.024079855531454086, -0.03494258224964142, + -0.0033814094495028257, 0.0025999911595135927, 0.013257722370326519, -0.005796701647341251, + 0.010351252742111683, -0.01995559222996235, -0.0354297012090683, -0.02973042242228985, + 0.016562005504965782, 0.014735313132405281, -0.021514369174838066, 0.015587769448757172, + 0.009920965880155563, 0.004980779252946377, -0.011715183034539223, 0.014199484139680862, + 0.0046641528606414795, -0.03266936540603638, -0.0009224793175235391, -0.008410900831222534, + -0.01258387602865696, 0.010010270401835442, -0.03159770742058754, -0.022667214274406433, + 0.026856428012251854, -0.010659760795533657, 0.005029491148889065, -0.05452471971511841, + -0.01990688033401966, -0.025914667174220085, 0.03659878298640251, -0.01147974282503128, + -0.007046971004456282, -0.01107381097972393, 0.06053250655531883, 0.0019647085573524237, + -0.019809456542134285, -0.0003014041285496205, 0.022829586640000343, -0.034747734665870667, + 0.03526732698082924, -0.02757086791098118, 0.00488741509616375, 0.01227536890655756, + -0.00444900942966342, 0.04413287341594696, -0.031256724148988724, 0.013931568711996078, + -0.0333838053047657, 0.02198524959385395, 0.009815423749387264, 0.019208678975701332, + -0.019208678975701332, -0.004863059148192406, 0.01726020686328411, -0.013184655457735062, + -0.007992791011929512, 0.03484515845775604, 0.024453314021229744, 0.003188591916114092, + -0.013549993745982647, -0.02825283259153366, -0.004432771820574999, -0.0073189446702599525, + 0.005163448862731457, -0.007550325710326433, 0.0009229867137037218, 0.019565898925065994, + -0.015327973291277885, -0.0002912558557000011, -0.015417277812957764, -0.006961725186556578, + 0.06641039252281189, 0.0018378548556938767, 0.015823209658265114, 0.02849639020860195, + 0.0226022657006979, 0.0003770088660530746, 0.001973841805011034, 0.07436665147542953, + -0.019192440435290337, 0.002717711264267564, 0.005106618162244558, -0.021157149225473404, + -0.02263474091887474, 0.000616508477833122, -0.011146878823637962, -0.013817908242344856, + 0.013688010163605213, -0.0035701675806194544, 0.03757302090525627, -0.02279711328446865, + -0.0015049909707158804, -0.010716591961681843, -0.030201302841305733, 0.04465246573090553, + -0.019354814663529396, 0.007124097552150488, -0.00523245707154274, -0.022618502378463745, + -0.004964542109519243, 0.0338059738278389, 0.0007661957060918212, -0.020377760753035545, + -0.009052271954715252, 0.0007377804722636938, 0.04432772099971771, 0.028642525896430016, + 0.00635282788425684, 0.0086544593796134, 0.007294589187949896, 0.008881781250238419, + 0.022342469543218613, 0.01852671429514885, -0.022894537076354027, 0.0041100564412772655, + 0.0018672848818823695, -0.006945488043129444, -0.016318446025252342, 0.012794961221516132, + 0.0020803988445550203, -0.013363264501094818, 0.01022135466337204, 0.015401041135191917, + -0.018542950972914696, 0.004339407663792372, -0.011211828328669071, -0.0073920125141739845, + 0.0026060801465064287, -0.04893910139799118, -0.025476260110735893, 0.03005516715347767, + 0.019452236592769623, 0.027505917474627495, 0.028398968279361725, -0.003182502929121256, + 0.003976099193096161, -0.009929084219038486, -0.0173089187592268, -0.0403008796274662, + 0.007176869083195925, 0.01844552718102932, 0.023430366069078445, -0.040203455835580826, + -0.01378543395549059, -0.0028618171345442533, -0.0025878131855279207, -0.00979106780141592, + 0.04377565160393715, 0.0026811775751411915, 0.007111920043826103, 0.03607919067144394, + 0.009864135645329952, -0.0038116967771202326, -0.017032885923981667, 0.0047737546265125275, + -0.00989660993218422, 0.020783692598342896, 0.003432150697335601, -0.031825028359889984, + -0.00663697998970747, 0.0039679803885519505, 0.000361025333404541, 0.029503101482987404, + 0.010960150510072708, 0.016886750236153603, 0.022115148603916168, 0.03659878298640251, + 0.006434014067053795, -0.0017607278423383832, -0.008727527223527431, -0.013655535876750946, + 0.03387092426419258, -0.014028992503881454, -0.01898135617375374, -0.019111255183815956, + -0.0061052097007632256, -0.01950094848871231, 0.010611048899590969, -0.01624537818133831, + 0.06793669611215591, -0.01406958606094122, 0.02658039517700672, -0.015579651109874249, + -0.0018246620893478394, 0.026515444740653038, -0.00036787541466765106, 0.018916407600045204, + -0.002691325731575489, 0.017292682081460953, 0.006393420975655317, 0.02325175702571869, + 0.014978872612118721, 0.018494239076972008, 0.039196744561195374, -0.015806972980499268, + -0.0033692314755171537, -0.004282577428966761, -0.015620243735611439, -0.02406361885368824, + 0.020783692598342896, 0.016838038340210915, -0.03301034867763519, -0.0019302042201161385, + 0.042281825095415115, 0.023917483165860176, -0.027148699387907982, -0.006515200715512037, + 0.019679559394717216, 0.020215388387441635, -0.017779799178242683, -0.018169494345784187, + -0.024940431118011475, 0.014719076454639435, -0.010481150820851326, -0.006275700870901346, + 0.0007261099526658654, 0.008727527223527431, -0.011820725165307522, 0.05488193780183792, + -0.02190406434237957, -0.018948882818222046, 0.0513097420334816, -0.0822254866361618, + -0.0008428152650594711, -0.015043821185827255, -0.0046763308346271515, -0.014995109289884567, + 0.004032929427921772, 0.012567639350891113, 0.016886750236153603, -0.03387092426419258, + -0.004233865533024073, -0.04491226002573967, 0.0024031144566833973, -0.004465246573090553, + -0.02703503705561161, -0.05153706297278404, 0.05267367139458656, 0.013030401431024075, + 0.030477337539196014, -0.017568714916706085, -0.010838370770215988, -0.00867069698870182, + -0.011000743135809898, 0.0268726646900177, 0.0026527622248977423, 0.05546648055315018, + -0.011617759242653847, -0.034585364162921906, 0.009498797357082367, -0.015392922796308994, + 0.0006231048610061407, 0.008751883171498775, -0.0013791522942483425, 0.00877623911947012, + 0.048679303377866745, -4.265451934770681e-5, -0.014597296714782715, -0.019695796072483063, + 0.015319854952394962, 0.028155408799648285, -0.0006185381207615137, -0.010497388429939747, + -0.022293757647275925, -0.03029872663319111, -0.0020184942986816168, 0.02011796459555626, + 0.020085491240024567, -0.005841354373842478, -0.007359538227319717, 0.013387620449066162, + -0.006555793806910515, 0.03877457603812218, 0.025963379070162773, -0.03594929352402687, + 0.001935278414748609, -0.02222880907356739, -0.021075963973999023, 0.024161042645573616, + -0.01311158761382103, 0.026190700009465218, -0.0015770439058542252, 0.03594929352402687, + 0.03465031087398529, 0.05377780646085739, 0.022699689492583275, 0.02617446333169937, + -0.019565898925065994, -0.0005173089448362589, 0.002900380641222, 0.016074886545538902, + 0.0073798345401883125, 0.003939565271139145, -0.012941095978021622, -0.0040430775843560696, + 0.013728602789342403, 0.0201504398137331, 0.016464581713080406, 0.028106696903705597, + 0.014175128191709518, 0.0037020952440798283, 0.04634113982319832, -0.006348768714815378, + -0.01553093921393156, 0.02914588153362274, 0.038125086575746536, 0.021887825801968575, + -0.03721579909324646, 0.05410255119204521, 0.03981376066803932, -0.013939687982201576, + -0.000497266068123281, -0.007209343370050192, -0.015336091630160809, -0.04702310636639595, + -0.005800761282444, -0.03916427120566368, 0.02068626880645752, 0.0017414460889995098, + -0.0067019290290772915, 0.05394017696380615, -0.033773500472307205, -0.007241818122565746, + -0.00426633981987834, 0.022894537076354027, 0.028480153530836105, -0.02133576013147831, + 0.019371051341295242, -0.003432150697335601, 0.002200148766860366, 5.0741437007673085e-5, + 0.01648893766105175, -0.01455670315772295, 0.003846200881525874, -0.001796246855519712, + 0.03559207543730736, 0.056245867162942886, 0.015279261395335197, -0.01799088343977928, + -0.03728074952960014, 0.005618092138320208, 0.027635816484689713, 0.01416700892150402, + 0.0333838053047657, 0.025378836318850517, 0.04185965657234192, 0.009360780008137226, + 0.003194680903106928, 0.027587104588747025, 0.011341726407408714, 0.026158224791288376, + 0.0011812606826424599, -0.014426805078983307, 0.018429290503263474, -0.013379502110183239, + 0.012957333587110043, -0.024161042645573616, -0.033611126244068146, -0.0047615766525268555, + -0.020978540182113647, 0.012015572749078274, 0.015449753031134605, -0.0011203709291294217, + 0.02308938279747963, -0.009157815016806126, 0.02443707548081875, 0.013135943561792374, + 0.0038238747511059046, -0.005386711098253727, -0.030314963310956955, -0.0020519837271422148, + 0.03236085921525955, -0.04572412371635437, -0.013403858058154583, 0.038742102682590485, + -0.03575444594025612, -0.00500919483602047, -0.004323170520365238, 0.011390437372028828, + -0.0054394821636378765, -0.007708638906478882, 0.04091789573431015, 0.024566974490880966, + 0.01971203275024891, -0.021189624443650246, -0.056862883269786835, -0.03370855003595352, + 0.04461998865008354, -0.017682375386357307, 0.022342469543218613, -0.0014867241261526942, + 0.02841520495712757, 0.02500537969172001, 0.025183990597724915, 0.002853698330000043, + -0.007509732618927956, -0.00523245707154274, -0.04185965657234192, -0.0066897510550916195, + 0.0039618914015591145, 0.029162118211388588, -0.012462097220122814, -0.020426472648978233, + -0.031240487471222878, -0.005289287306368351, -0.0034341805148869753, 0.00623916694894433, + -0.026759004220366478, 0.000495743821375072, -0.026239411905407906, 0.013517518527805805, + 0.02044270932674408, 0.025346362963318825, -0.03057475946843624, -0.011276776902377605, + -0.013980280607938766, -0.04552927613258362, -0.012486453168094158, 0.04075552150607109, + -0.014857092872262001, -0.004704745952039957, 0.024047382175922394, -0.0015689252177253366, + -0.0024213814176619053, -0.027538392692804337, -0.013509400188922882, 0.021611792966723442, + -0.021205861121416092, 0.05884382873773575, 0.02549249865114689, 0.02219633385539055, + 0.02104348875582218, 0.020670032128691673, 0.05650566518306732, 0.006730344146490097, + -0.02732730843126774, 0.021806640550494194, 0.006320353597402573, 0.019533423706889153, + 0.004045107401907444, 0.028447680175304413, -0.028074221685528755, -0.009904728271067142, + 0.04458751529455185, 0.009482559747993946, 0.0035762565676122904, -0.01034313440322876, + -0.005358295980840921, 0.028967272490262985, 0.04198955371975899, -0.0333838053047657, + 0.03754054382443428, 0.0028293426148593426, -0.020458947867155075, 0.010952032171189785, + 0.06517636030912399, -0.008630103431642056, 0.037443120032548904, -0.004822466056793928, + 0.0566030889749527, -0.011228065006434917, 0.006949547212570906, 0.030590998008847237, + 0.024615686386823654, 0.011146878823637962, 0.0005173089448362589, 0.029210830107331276, + 0.017211494967341423, -0.00995344016700983, 0.015871921554207802, -0.010732828639447689, + -0.053030889481306076, 0.03284797817468643, -0.014637889340519905, -0.008962967433035374, + 0.03247452154755592, -0.010724710300564766, -0.00573175260797143, -0.007948138751089573, + -1.9345172404428013e-5, 0.031208014115691185, -0.00853267963975668, -0.03822251036763191, + -0.004660093691200018, -0.04828961193561554, -0.002167674247175455, 0.0061539215967059135, + -0.023203045129776, -0.008946729823946953, -0.004582966677844524, 0.014215720817446709, + -0.04108026623725891, -0.00949067808687687, -0.03000645712018013, 0.02349531464278698, + -0.03367607668042183, -0.0051756263710558414, -0.022098910063505173, 0.0238200593739748, + 0.016724377870559692, 0.01726020686328411, 0.0029450329020619392, 0.03627403825521469, + -0.010976388119161129, -0.030428625643253326, -0.0016724377637729049, -0.009588101878762245, + -0.015060058794915676, 0.021644268184900284, 0.012591995298862457, 0.025021618232131004, + -0.01750376634299755, 0.003424032125622034, -0.0023016314953565598, -0.01982569508254528, + 0.008037443272769451, -0.03291292488574982, -0.023560263216495514, -0.027587104588747025, + -0.0008220112649723887, 0.05549895390868187, -0.010351252742111683, -0.007639630697667599, + 0.000985398655757308, -0.019549660384655, -0.022780874744057655, 0.014337500557303429, + -0.0006225974066182971, 0.007412309292703867, 0.00427445862442255, 0.02068626880645752, + -0.01852671429514885, 0.017000410705804825, -0.0034585364628583193, 0.021351996809244156, + -0.0015557324513792992, -0.004286636598408222, -0.005727693438529968, -0.01062728650867939, + 0.006555793806910515, -0.010554218664765358, 0.04575659707188606, 0.015206193551421165, + 0.005033550783991814, -0.010083338245749474, -0.014702838845551014, -0.001283758319914341, + 0.005585617385804653, -0.028967272490262985, -0.02333294227719307, -0.0022346528712660074, + -0.004493661690503359, -0.004936126992106438, 0.016277853399515152, 0.032880451530218124, + 0.016294090077280998, -0.006458370015025139, 0.02011796459555626, -0.020572608336806297, + 5.051944390288554e-5, 0.0019159966614097357, -0.02703503705561161, 0.008849306963384151, + -0.007810121867805719, 0.03831993415951729, -0.009019797667860985, 0.010732828639447689, + -0.010870845057070255, 0.024128567427396774, -0.03008764237165451, 0.06598822772502899, + -0.0001220965787069872, 0.00719716539606452, -0.016359038650989532, 0.029080932959914207, + 0.007298648357391357, -0.0010138138895854354, -0.01739010587334633, -0.029990218579769135, + -0.034098245203495026, 0.07527593523263931, -0.022001486271619797, 0.029746660962700844, + 0.00906039122492075, 0.001151830656453967, -0.012835553847253323, 0.007351419422775507, + -0.008743764832615852, 0.0034524474758654833, 0.004286636598408222, -0.012981689535081387, + 0.029941506683826447, -0.0105866938829422, -0.05163448676466942, 0.012056165374815464, + -0.007217462174594402, 0.012486453168094158, 0.0023077204823493958, 0.0028049866668879986, + 0.005873828660696745, 0.03854725509881973, -0.0032027994748204947, -0.01799088343977928, + 0.009092865511775017, 0.0040471372194588184, -0.031208014115691185, -0.02141694538295269, + -0.023755110800266266, -0.005524727515876293, -0.020329048857092857, -0.010952032171189785, + 0.008500205352902412, 0.020426472648978233, -0.03357865288853645, -0.014321262948215008, + -0.007209343370050192, 0.0054881940595805645, -0.0033387865405529737, 0.023722637444734573, + -0.01329019758850336, -0.013931568711996078, 0.013079112395644188, 0.03000645712018013, + -0.0012492542155086994, -0.027018800377845764, -0.006170158740133047, 0.009579983539879322, + 0.0307371336966753, -0.009937203489243984, 0.009003560990095139, 0.0030404268763959408, + -0.018055833876132965, 0.03156523406505585, 0.0028922618366777897, 0.010773422196507454, + -0.002691325731575489, 0.03111059032380581, 0.017114071175456047, 0.016756853088736534, + 0.009044153615832329, -0.024615686386823654, 0.005195923149585724, -0.009214645251631737, + 0.03935911878943443, -0.027798188850283623, -0.03159770742058754, 0.03757302090525627, + -0.00405931519344449, -0.0031297318637371063, -0.010692236013710499, 0.015904396772384644, + 0.03367607668042183, 0.007245877292007208, 0.027099987491965294, 0.009068509563803673, + -0.03187374025583267, -0.01685427501797676, -0.0032596299424767494, -0.02344660274684429, + 0.009441966190934181, -0.0027562747709453106, 0.005776405334472656, -0.014710957184433937, + -0.015547175891697407, 0.014767787419259548, -0.027229884639382362, 2.8700625989586115e-5, + -0.03815755993127823, -0.0008336817845702171, 0.02455073781311512, -0.001389300567097962, + 0.01158528495579958, 0.02101101353764534, -0.0012380910338833928, -0.009279593825340271, + 0.00922276359051466, 0.029259542003273964, 0.0032900748774409294, -0.011333607137203217, + 0.003596553113311529, 0.022991960868239403, 0.0066166832111775875, 0.009839779697358608, + -0.007400131318718195, 0.03227967396378517, 0.017779799178242683, 0.0692356750369072, + 0.014256314374506474, -0.011877555400133133, -0.019890643656253815, -0.045301955193281174, + 0.004453068599104881, 0.026515444740653038, 0.0013223218265920877, -0.01828315481543541, + -0.013509400188922882, 0.012129233218729496, -0.023949958384037018, -0.0014715016586706042, + -0.010562337934970856, -0.004412475507706404, 0.030769607052206993, 0.018997594714164734, + -0.0015506583731621504, -0.023625213652849197, -0.004582966677844524, 0.014702838845551014, + 0.013574349693953991, 0.001796246855519712, -0.014743432402610779, -0.009888491593301296, + -0.012023691087961197, 0.012324079871177673, -0.007274292409420013, -0.041599858552217484, + 0.0047128647565841675, -0.009027916938066483, -0.0012563579948619008, -0.030152590945363045, + 0.021595556288957596, 0.006174217909574509, 0.01823444291949272, -0.015774497762322426, + 0.021465657278895378, -0.004384060390293598, 0.007684283424168825, 0.03141909837722778, + 0.0012188092805445194, 0.02039399929344654, 0.029210830107331276, 0.03526732698082924, + 0.014443042688071728, -0.03370855003595352, -0.013160299509763718, 0.02039399929344654, + -0.003923328127712011, 0.02927577868103981, 0.017568714916706085, 0.04286636784672737, + 0.008435256779193878, 0.01494639739394188, -0.0016683784779161215, -0.022813349962234497, + -0.005816998425871134, -0.01971203275024891, -0.019371051341295242, -0.01604241319000721, + 0.015149363316595554, -0.0007154542836360633, -0.021709216758608818, 0.032068587839603424, + 0.009937203489243984, -0.015254905447363853, -0.007753291632980108, 0.029649237170815468, + -0.008362188935279846, -0.002742067212238908, 0.004997016862034798, 0.004879296757280827, + 0.010383727960288525, -0.014215720817446709, 0.027213647961616516, -0.0014704868663102388, + 0.008354070596396923, -0.0015181838534772396, -0.024290941655635834, -0.019841931760311127, + 0.013866620138287544, -0.016724377870559692, 0.017779799178242683, -0.026726529002189636, + 0.016196666285395622, 0.02333294227719307, 0.010968268848955631, 0.005752049386501312, + 0.01693546213209629, -0.009441966190934181, -0.006868361029773951, -0.011731420643627644, + 0.00837030727416277, 0.004765635821968317, -0.005256813019514084, 0.03903437405824661, + 0.01914372853934765, -0.02938944101333618, -0.0443926677107811, -0.028610052540898323, + -0.016350921243429184, 0.013549993745982647, -0.011146878823637962, -0.02443707548081875, + -0.013200892135500908, 0.014443042688071728, -0.01074906624853611, 0.0018794628558680415, + 0.004599203821271658, 0.01247833389788866, 0.03005516715347767, -0.010554218664765358, + 0.01739010587334633, -0.0008428152650594711, -0.01742257922887802, 0.009247119538486004, + 0.025216463953256607, -0.02630436047911644, -0.030477337539196014, -0.018883932381868362, + 0.015806972980499268, -0.006827767938375473, 0.025135278701782227, 0.029210830107331276, + 0.009677407331764698, 0.013209010474383831, 0.03314024582505226, 0.013095350004732609, + -0.009198407642543316, -0.048711780458688736, 0.004142530728131533, 0.00922276359051466, + 0.00048305848031304777, -0.016537649556994438, 0.021709216758608818, -0.029097169637680054, + 0.007030733395367861, 0.012104877270758152, -0.00022579939104616642, 0.02039399929344654, + 0.015449753031134605, -0.007525969762355089, 0.001497887191362679, 0.01836434006690979, + -0.02011796459555626, -0.04893910139799118, -0.01652953028678894, 0.01958213560283184, + 0.0018693145830184221, -0.026499208062887192, 0.0033083416055887938, -0.0022569792345166206, + -0.021969012916088104, 0.03757302090525627, -0.025589922443032265, -0.0073311226442456245, + 0.0014238046715036035, 0.015847565606236458, -0.013931568711996078, -0.03403329849243164, + 0.009685525670647621, -0.038092613220214844, 0.011406674981117249, -0.007128157187253237, + 0.03273431584239006, 0.05419997498393059, 0.008313477039337158, 0.010692236013710499, + -0.02633683569729328, 0.03968386352062225, 0.011650233529508114, 0.017130309715867043, + 0.0008179519791156054, -0.019858168438076973, -0.02141694538295269, 0.027944324538111687, + -0.00962869543582201, 0.011999335139989853, -0.0014187305932864547, 0.02128704823553562, + 0.02235870622098446, -0.013330790214240551, 0.018575426191091537, -0.007996850647032261, + -0.0002412755275145173, 0.014897685497999191, 0.03594929352402687, -0.014629771001636982, + 0.006109268870204687, -0.035072483122348785, 0.012843672186136246, -0.009994033724069595, + -0.03154899552464485, 0.006949547212570906, -0.0008808713755570352, -0.00020499540551099926, + 0.0037264511920511723, -0.04825713485479355, 0.02312185801565647, -0.024826770648360252, + -0.01877027191221714, 0.026807716116309166, 0.04205450415611267, -0.0009651021100580692, + 0.0032332444097846746, 0.012161707505583763, -0.018104543909430504, 6.66377763991477e-6, + 0.001398434047587216, -0.005532846320420504, -0.017698613926768303, -0.02830154448747635, + -0.00023924587003421038, 0.01742257922887802, -0.0023503433912992477, -0.0019931236747652292, + 0.008017146959900856, 0.022829586640000343, 0.0025330125354230404, -0.022569790482521057, + 0.004883355926722288, -0.007911604829132557, -0.02536259964108467, -0.020799929276108742, + 0.019890643656253815, -0.02557368390262127, -0.008792475797235966, 0.005260872188955545, + -0.0072377584874629974, 0.0009356720838695765, -0.022098910063505173, -0.024242229759693146, + -0.0006951576797291636, 0.04088541865348816, 0.019841931760311127, -0.0006291938479989767, + -0.0382874570786953, 0.0012685359688475728, 0.016708141192793846, -0.012145470827817917, + -0.018575426191091537, 0.008451493456959724, 0.020377760753035545, -0.005800761282444, + 0.032555706799030304, -0.016472700983285904, -0.0025066270027309656, 0.004294755402952433, + 0.0015496434643864632, -0.006742522120475769, 0.024907955899834633, 0.020085491240024567, + -0.01130113285034895, 0.02101101353764534, 0.018137019127607346, 0.009961558505892754, + 0.0029612702783197165, -0.0162859708070755, -0.037767864763736725, 0.008589510805904865, + 0.0006799352704547346, 0.03429309278726578, -0.018088307231664658, -0.01117935311049223, + 0.018299391493201256, 0.0038421417120844126, -0.04841950908303261, 0.027944324538111687, + 0.02092982828617096, -0.016310326755046844, -0.004574847873300314, 0.0014390271389856935, + -0.01231596153229475, 0.00849208701401949, -0.0039375354535877705, 0.01011581253260374, + -0.0018195878947153687, -0.004509898833930492, -0.019371051341295242, 0.02287829853594303, + 0.02922706864774227, -0.0036006122827529907, -0.007103801239281893, 0.015441633760929108, + 0.021839113906025887, 0.012161707505583763, -0.0012492542155086994, -0.014102060347795486, + 0.025135278701782227, -0.0012076462153345346, -0.014581059105694294, -0.02422599121928215, + -0.022163860499858856, 0.011349844746291637, 0.018737798556685448, 0.012900503352284431, + 0.002559398068115115, -0.00906039122492075, 0.01722773350775242, 0.01682180166244507, + 0.004154708702117205, 0.010335016064345837, 0.004201390780508518, -0.0048346440307796, + -0.04923137277364731, -0.015003228560090065, -0.00877623911947012, 0.013712366111576557, + 0.014889567159116268, -0.009076627902686596, 0.037767864763736725, 0.046438563615083694, + -0.0031540878117084503, -0.008914255537092686, 0.004118175245821476, 0.005585617385804653, + -0.03721579909324646, 0.013614942319691181, -0.021595556288957596, -0.011203709058463573, + 0.013801670633256435, -0.025151515379548073, -0.0038807052187621593, 0.010489270091056824, + 0.024989143013954163, 0.006405598949640989, -0.006251344922930002, 0.009092865511775017, + -0.023625213652849197, -0.007830418646335602, 0.010481150820851326, 0.03037991374731064, + ], + index: 56, + }, + { + title: "Thomas P. Hughes", + text: "Thomas Parke Hughes (September 13, 1923 - February 3, 2014) was an American historian of technology. He was an emeritus professor of history at the University of Pennsylvania and a visiting professor at MIT and Stanford.He received his Ph.D. from the University of Virginia in 1953.He, along with John B. Rae, Carl W.", + vector: [ + -0.0011566150933504105, 0.02045382373034954, -0.032816026359796524, 0.03800065815448761, + 0.04102752357721329, 0.0012109337840229273, -0.013973033986985683, 0.005210855044424534, + 0.004982341546565294, 0.052116043865680695, -0.013133902102708817, -0.006492028944194317, + 0.015688756480813026, 0.03257627412676811, 0.003187949536368251, 0.008166545070707798, + -0.07078671455383301, 0.0034164628013968468, -0.06113670393824577, 0.01801135204732418, + 0.05613188445568085, -0.018071290105581284, -0.07528205960988998, 0.007567165419459343, + 0.031197700649499893, 0.03095794841647148, 0.022536667063832283, 0.004802527837455273, + 0.021472768858075142, 0.018311042338609695, -0.014849626459181309, 0.061196643859148026, + 0.03016377054154873, -0.047380946576595306, 0.013508514501154423, -0.030133802443742752, + -0.02745157852768898, -0.00461896788328886, -0.021292954683303833, 0.03566307574510574, + 0.016273152083158493, -0.014752226881682873, -0.02067859098315239, 0.026597462594509125, + -0.006877879146486521, 0.006896609906107187, -0.03067324310541153, -0.018535809591412544, + 0.01612330786883831, 0.013298731297254562, -0.007619611453264952, -0.046272095292806625, + -0.026357712224125862, 0.013366161845624447, -0.032905932515859604, -0.016333090141415596, + 0.0715659037232399, 0.06982770562171936, -0.010017129592597485, 0.010211927816271782, + -0.007649580482393503, 0.031197700649499893, -0.013043995015323162, 0.006769241765141487, + 0.04741091653704643, 0.0039933654479682446, 0.00921545922756195, 0.023016171529889107, + -0.014579905197024345, -0.004390454385429621, 0.04192659258842468, -0.03725143149495125, + 0.013276254758238792, 0.027511516585946083, 0.04417426511645317, -0.02096329629421234, + 0.014572412706911564, 0.010122020728886127, -0.0023038648068904877, -0.001865568570792675, + -0.007331159897148609, -0.03269615024328232, -0.021772459149360657, 0.00305683515034616, + 0.0005694105057045817, -0.0015583866043016315, 0.028725260868668556, -0.05652148276567459, + 0.02578830160200596, 0.05568234995007515, 0.010002144612371922, 0.03707161918282509, + 0.03749118372797966, -0.042675815522670746, -0.054843220859766006, 0.016887515783309937, + 0.014917056076228619, -0.006394629366695881, 0.03635236248373985, -0.02906990423798561, + 0.003877235809341073, 0.011987589299678802, 0.03722146525979042, 0.014744734391570091, + 0.04956867918372154, -0.08019696921110153, -0.03725143149495125, 0.028545446693897247, + 0.06233546510338783, 0.06020766496658325, 0.002470567123964429, 0.03647223860025406, + -0.012144926004111767, 0.0019386179046705365, -0.06287490576505661, -0.008099114522337914, + -0.012796751223504543, 0.03854009881615639, -0.03602270409464836, 0.012407154776155949, + -0.0009739916422404349, 0.017471911385655403, 0.020393885672092438, 0.01897035911679268, + -0.0035232272930443287, 0.011118489317595959, -0.03016377054154873, -0.0024761862587183714, + -0.009859791956841946, -0.03626245632767677, -0.015014455653727055, 0.05930859595537186, + 0.03374506160616875, -0.030778134241700172, -0.047560758888721466, -0.004693890456110239, + 0.046541813760995865, 0.0071738227270543575, 0.0024537097197026014, 0.02478433959186077, + -0.012070003896951675, 0.054093994200229645, -0.04075780138373375, -0.08337368071079254, + -0.055532507598400116, -0.03964895009994507, -0.025158952921628952, -0.002210211707279086, + 0.01603339985013008, 0.06695068627595901, -0.017292097210884094, -0.012032542377710342, + -0.03353527933359146, -0.014534952118992805, -0.013785727322101593, -0.01598844677209854, + -0.02054373174905777, -0.002099701203405857, -0.02016911841928959, 0.01583860255777836, + -0.01420529279857874, -0.012174895033240318, -0.037101589143276215, 0.013673343695700169, + -0.025158952921628952, -0.05831962078809738, 0.03623248636722565, -0.007342398166656494, + -0.0010788830695673823, 0.016707701608538628, -0.020199088379740715, -0.008990691974759102, + 0.051336850970983505, -0.0026597464457154274, -0.008511188440024853, 0.0010217546951025724, + -0.019749553874135017, 0.03593279793858528, -0.014287707395851612, 0.016692718490958214, + -0.017891475930809975, -0.015553897246718407, 0.0072562373243272305, 0.021532706916332245, + 0.019779521971940994, 0.014804672449827194, 0.025084029883146286, 0.07875846326351166, + -0.049538712948560715, -0.04702131822705269, -0.030643275007605553, -0.003806059481576085, + 0.0016379916341975331, 0.008248959667980671, 0.0015040677972137928, -0.02629777416586876, + 0.03173714131116867, -0.0011360113276168704, -0.03722146525979042, 0.013201332651078701, + -0.012871673330664635, -0.005169647745788097, 0.022416790947318077, 0.030043894425034523, + -0.05115703493356705, -0.012287278659641743, 0.03140748292207718, 0.018490856513381004, + -0.033924877643585205, 0.005031041335314512, -0.035303451120853424, -0.027526501566171646, + 0.020274009555578232, 0.010968644171953201, -0.04072783514857292, 0.013868141919374466, + -0.014017987065017223, 0.03955904394388199, 0.032726116478443146, -0.021337907761335373, + 0.020513761788606644, 0.011305795051157475, 0.024724403396248817, -0.01754683442413807, + -0.016917485743761063, -0.006937817204743624, -0.016363058239221573, 0.011380717158317566, + 0.0072824605740606785, 0.0358428917825222, 0.0019386179046705365, 0.01718720607459545, + -0.0012596333399415016, 0.055562473833560944, -0.0003273173642810434, 0.0007613992202095687, + 0.014175323769450188, -0.026792261749505997, -0.02339078299701214, -0.03173714131116867, + -0.02381034940481186, 0.016752656549215317, 0.011568023823201656, -0.0032403951045125723, + 0.01068393886089325, -0.004926149733364582, -0.015074393711984158, -0.05861930921673775, + -0.011350748129189014, 0.04941883683204651, 0.01621321402490139, -0.018775561824440956, + 0.01515680830925703, -0.004547791555523872, -0.021337907761335373, 0.04030826687812805, + -0.03994864225387573, -0.026058021932840347, -0.0348239466547966, -0.017696678638458252, + -0.012489569373428822, 0.012871673330664635, -0.01072889193892479, 0.036682020872831345, + -0.05643157660961151, 0.03164723515510559, 0.021502738818526268, 0.017771601676940918, + 0.01723215915262699, -0.0468115359544754, -0.017247144132852554, -0.04956867918372154, + 0.0068329256027936935, -0.02698705904185772, -0.016617795452475548, -0.03311571478843689, + -0.052985142916440964, -0.034614164382219315, -0.027301734313368797, 0.054603468626737595, + -0.0466916598379612, -0.03500375896692276, -0.017696678638458252, -0.011867713183164597, + 0.01952478662133217, -0.026447618380188942, 0.019869428128004074, 0.01658782549202442, + 0.03215670958161354, -0.08403299748897552, -0.01598844677209854, -0.04564274474978447, + 0.012631922028958797, 0.0026560002006590366, -0.01865568570792675, -0.03458419442176819, + 0.004004604183137417, -0.02012416534125805, -0.0537043996155262, -0.03578295186161995, + 0.08199510723352432, 0.030778134241700172, -0.0233458299189806, -0.0003952158149331808, + -0.04822007566690445, -0.05043778195977211, 0.00872846320271492, 0.02463449537754059, + 0.03653217852115631, -0.03919941559433937, -0.0030081355944275856, 0.016363058239221573, + 0.011935143731534481, -0.0208584051579237, 0.05355455353856087, -0.0010704542510211468, + 0.026702355593442917, 0.05112706869840622, -0.02109815739095211, -0.004626460373401642, + 0.0037760904524475336, -0.0031542344950139523, -0.05790005624294281, 0.014842133969068527, + 0.04120733588933945, -0.04968855530023575, 0.007226268760859966, 0.012212356552481651, + -0.0099496990442276, 0.012519538402557373, -0.03925935551524162, -0.024035116657614708, + 0.015733711421489716, -0.021248001605272293, 0.11124482750892639, -0.058049898594617844, + -0.0028020988684147596, 0.05592210218310356, -0.08181529492139816, 0.019554754719138145, + 0.01841593347489834, 0.042316190898418427, -0.03961898013949394, -0.0030868041794747114, + 0.00893824640661478, -0.04150702804327011, 0.030298631638288498, 0.06092692166566849, + -0.019584722816944122, 0.019779521971940994, 0.0006906911730766296, -0.07887833565473557, + 0.03353527933359146, 0.028455540537834167, -0.02174248918890953, -0.038809821009635925, + 0.07576156407594681, -0.0014375741593539715, 0.052895236760377884, -0.04630206152796745, + 0.061376456171274185, 0.008915768936276436, 0.02509901486337185, 0.04699134826660156, + -0.0025286320596933365, 0.027811206877231598, -0.02225196175277233, -0.018221136182546616, + -0.04486355185508728, -0.0018824260914698243, -0.024949170649051666, 0.03071819618344307, + 0.0022570383735001087, -0.0308081042021513, 0.011553038842976093, 0.0030680736526846886, + -0.0006658731144852936, 0.0039933654479682446, -0.022761434316635132, -0.0010301833972334862, + -0.04546293243765831, 0.007746979594230652, 0.04063792526721954, 0.03542332723736763, + -0.019359955564141273, -0.020184103399515152, -0.025413688272237778, -0.005394414998590946, + 0.020528746768832207, -0.014145354740321636, 0.013598421588540077, -0.02915981039404869, + -0.0052295858040452, -0.01810126006603241, 0.02915981039404869, -0.030373554676771164, + 0.005866426508873701, 0.021218033507466316, 0.014130370691418648, -0.0018777434015646577, + 0.013628390617668629, 0.021218033507466316, -0.02694210596382618, -0.04504336789250374, + 0.017786584794521332, -0.004308039788156748, -0.03215670958161354, 0.011732853017747402, + -0.04408435896039009, 0.002376914257183671, -0.0006335627986118197, 0.009155521169304848, + 0.017217174172401428, -0.030987918376922607, -0.011013597249984741, -0.0005324175581336021, + -0.014759719371795654, 0.017861507833003998, 0.026417650282382965, -0.025323782116174698, + 0.07594137638807297, 0.033325497061014175, 0.03713155537843704, 0.005664135795086622, + 0.04213637486100197, 0.04144708812236786, -0.023825332522392273, -0.00596382562071085, + -0.002099701203405857, 0.021352892741560936, -0.017022376880049706, -0.01994435116648674, + 0.003577546216547489, 0.05996791273355484, -0.0198993980884552, -0.023375798016786575, + -0.014594890177249908, 0.04513327404856682, 0.026222851127386093, 0.045343056321144104, + -0.004780051298439503, -0.009620040655136108, -0.0551728792488575, 0.012362201698124409, + -0.10411220788955688, 0.03329552710056305, -0.0795975923538208, -0.053914181888103485, + 0.00016564881661906838, 0.03266618028283119, -0.010571555234491825, -0.023600565269589424, + -0.0323365218937397, -0.019359955564141273, -0.016108322888612747, -0.03910950943827629, + 0.0038472667802125216, -0.00020720735483337194, -0.005570482928305864, 0.016452966257929802, + 0.016887515783309937, 0.05361449345946312, 0.009792361408472061, -0.032036833465099335, + -0.05061759427189827, -0.010174466297030449, 0.009073106572031975, -0.012579476460814476, + -0.007327413652092218, 0.030613305047154427, 0.042406097054481506, 0.039079539477825165, + 0.05115703493356705, 0.04657178372144699, -0.0019002201734110713, 0.03329552710056305, + -0.0012128069065511227, 0.013928079977631569, 0.0005562990554608405, -0.02016911841928959, + 0.009987160563468933, 0.031197700649499893, 0.028575414791703224, -0.005956333130598068, + -0.021667568013072014, -0.005926364567130804, -0.007372367195785046, -0.009080599062144756, + -0.013276254758238792, 0.009807346388697624, 5.581135701504536e-5, 0.014707273803651333, + -0.0023319607134908438, 0.014602381736040115, -0.017202191054821014, 0.018685653805732727, + -0.03266618028283119, 0.03473404049873352, -0.018730608746409416, -0.011395702138543129, + 0.02827572636306286, 0.08019696921110153, 0.014062940143048763, -0.049808431416749954, + -0.004843735136091709, 0.014602381736040115, 0.03824041038751602, 0.04495345801115036, + -0.024065084755420685, 0.010601524263620377, 0.010653969831764698, -0.011485609225928783, + 0.017696678638458252, 0.02496415376663208, 0.021292954683303833, -0.002871402306482196, + -0.0317671112716198, 0.02607300691306591, 0.01805630698800087, 0.025713378563523293, + 0.03125763684511185, 0.03860003873705864, -0.011478116735816002, 0.016602810472249985, + -0.01570374146103859, -0.0021914811804890633, -0.04555283859372139, -0.013201332651078701, + 0.016917485743761063, -0.02478433959186077, -0.024065084755420685, 9.406277240486816e-5, + -0.0169025007635355, 0.004285563249140978, -0.014864610508084297, 0.04270578548312187, + 0.020199088379740715, 0.02842557057738304, 0.025998083874583244, -0.03997860848903656, + 0.011125980876386166, 0.013133902102708817, 0.05628173053264618, 0.0015714979963377118, + -0.026447618380188942, 0.011096011847257614, 0.007368620950728655, 0.007053947076201439, + -0.004888688679784536, 0.016183245927095413, -0.02072354406118393, -0.004180671647191048, + 0.014549936167895794, 0.004169433377683163, 0.0327860563993454, -0.006203577388077974, + -0.027481548488140106, -0.004221878945827484, -0.025578517466783524, 0.003884728066623211, + 0.006645619869232178, 0.0009332525660283864, -0.010009637102484703, -0.042675815522670746, + -0.04123730584979057, -0.00710639264434576, -0.00953762512654066, 0.031167732551693916, + -0.01783153787255287, -0.003575673094019294, -0.013043995015323162, -0.005810234695672989, + -0.03857006877660751, 0.025908177718520164, -0.017157236114144325, 0.030088849365711212, + -0.011845236644148827, -0.019359955564141273, -0.051936231553554535, 0.019929366186261177, + -0.012639414519071579, 0.012886658310890198, 0.020333947613835335, 0.036322396248579025, + -0.02874024398624897, 0.00218211580067873, -0.011830251663923264, -0.035723015666007996, + -0.003408970544114709, -0.02565344050526619, -0.02445468120276928, -0.015673773363232613, + -0.00682917982339859, 0.02496415376663208, 0.05352458357810974, 0.033085744827985764, + 0.00022230891045182943, -0.032306551933288574, 0.010489140637218952, 0.03311571478843689, + 0.008503695949912071, 0.04390454664826393, 0.0144150760024786, 0.012826720252633095, + -0.019030297175049782, -0.004131972324103117, 0.009635024704039097, -0.07797926664352417, + -0.0023300875909626484, -0.007308683358132839, 0.000565196096431464, -0.043365102261304855, + 0.008001715876162052, -0.018161198124289513, 0.04935889691114426, 0.011687899008393288, + 0.01241464726626873, 0.01759178750216961, 0.019180143252015114, 0.009118059650063515, + 0.01980949006974697, 0.02118806354701519, 0.032905932515859604, -0.028245756402611732, + 0.030643275007605553, -0.0144150760024786, -0.013336192816495895, 0.004941134247928858, + -0.025413688272237778, 0.007278714329004288, -0.009125552140176296, 0.013530991040170193, + 0.009275397285819054, 0.004929895978420973, -0.004420423414558172, -0.007226268760859966, + -0.00598630215972662, 0.011178426444530487, 0.035033728927373886, -0.020528746768832207, + -0.00012502681056503206, -0.009859791956841946, -0.032396458089351654, 0.02285134233534336, + -0.00948517955839634, 0.001955475425347686, 0.008930753916501999, -0.0035344657953828573, + -0.010204435326159, 0.007136361673474312, 0.016932468861341476, -0.019015314057469368, + -0.025173937901854515, 0.019000329077243805, 0.014092909172177315, -0.01515680830925703, + 0.0012680621584877372, 0.015074393711984158, 0.01050412468612194, -0.01907525025308132, + -0.028979996219277382, -0.03569304570555687, 0.02160762995481491, 0.05661138892173767, + 0.00992722250521183, -0.007125123403966427, -0.025353750213980675, -0.003236649092286825, + -0.03215670958161354, 0.027106935158371925, -0.005750296637415886, 0.004776305053383112, + -0.016647763550281525, 0.009305366314947605, -0.024154992774128914, -0.03377503156661987, + -0.03476400673389435, 0.0258931927382946, 0.013126409612596035, -0.0056491512805223465, + 0.02671733871102333, 0.008893292397260666, -0.019359955564141273, -0.025683410465717316, + -0.02800600416958332, 0.013800712302327156, -0.028994981199502945, 0.028725260868668556, + -0.03260624408721924, 0.0007108265999704599, -0.039678920060396194, 0.010833784006536007, + 0.0003577546158339828, 0.0179214458912611, 0.013029010966420174, -0.0011715994914993644, + 0.011118489317595959, -0.0482800155878067, -0.004412931390106678, -0.025113999843597412, + -0.02671733871102333, 0.02892005816102028, -0.004555284045636654, 0.006484536454081535, + 0.011538054794073105, 0.016243183985352516, 0.01169539149850607, -0.048160139471292496, + -0.04090764746069908, -0.017666708678007126, 0.026732323691248894, 0.008720970712602139, + -0.01374826580286026, 0.009934714064002037, 0.018116243183612823, 0.021248001605272293, + -0.004251847974956036, 0.009013168513774872, -0.04887939617037773, 0.014115385711193085, + -0.0010601524263620377, 0.021937288343906403, -0.004461630713194609, 0.01490207202732563, + -0.0012989676324650645, -0.042346157133579254, -0.02611795999109745, 0.04141712188720703, + -0.050048183649778366, -0.002416248433291912, 0.0051359329372644424, -0.003176711034029722, + 0.05292520672082901, 0.005622928496450186, 0.02698705904185772, 0.024904215708374977, + 0.013590929098427296, -0.02569839358329773, -0.013388638384640217, 0.02307610958814621, + 0.04836992174386978, -0.014100401662290096, 0.014295199885964394, 0.003963396418839693, + -0.043544918298721313, -0.006480790209025145, 0.016198229044675827, 0.011223380453884602, + -0.0009360621334053576, -0.009410257451236248, -0.0004570268210954964, -0.015523928217589855, + -0.0547233447432518, -0.03671199083328247, 0.01068393886089325, -0.03200686350464821, + 0.04363482445478439, -0.019644660875201225, 0.011260841973125935, -0.018685653805732727, + -0.04357488453388214, 0.024859262630343437, -0.015508943237364292, 0.015598850324749947, + -0.024574557319283485, -0.004289309028536081, -0.007342398166656494, -0.006222308147698641, + 0.017531849443912506, 0.011230872943997383, 0.01093867514282465, 0.0033565249759703875, + 0.030927980318665504, 0.004761320538818836, 0.0308081042021513, -0.01574869453907013, + 0.014280215837061405, -0.00819651409983635, -0.013103933073580265, -0.008653541095554829, + -0.026657400652766228, -0.02165258303284645, -0.06898857653141022, 0.002747780177742243, + -0.013418607413768768, 0.010376757010817528, -0.019060267135500908, 0.008885800838470459, + -0.007593388669192791, -0.00829391274601221, -0.04423420503735542, 0.0072562373243272305, + 0.01861073262989521, -0.002253292128443718, 0.02169753611087799, 0.012624429538846016, + 0.007289952598512173, 0.011987589299678802, 0.0233458299189806, 0.01038424950093031, + 0.0008105670567601919, 0.006136147305369377, -0.0024387252051383257, -0.00624103844165802, + 0.016138290986418724, -0.022821372374892235, 0.03248636797070503, -0.04570268467068672, + -0.00644707540050149, -0.02915981039404869, 0.014939532615244389, 0.015164299868047237, + 0.02805095911026001, 0.02458954229950905, 0.00712886918336153, 0.024529604241251945, + 0.0238553024828434, -0.004678905941545963, -0.0342545360326767, 0.005053517874330282, + -0.02336081489920616, 0.0022589112631976604, -0.01574869453907013, 0.013823188841342926, + 0.014295199885964394, 0.018685653805732727, 0.031946923583745956, -0.01439259946346283, + 0.015553897246718407, -0.0008377264603041112, -0.01796639896929264, 0.04417426511645317, + -0.022791404277086258, -0.053494617342948914, -0.018251104280352592, 0.02836563251912594, + -0.015958478674292564, 0.03422456607222557, 0.02533876709640026, 0.02270149625837803, + 0.026972075924277306, -0.00558546744287014, -0.018400948494672775, -0.018850483000278473, + 0.003575673094019294, -0.007361128926277161, -0.007421066984534264, -0.04830998554825783, + -0.0007033343426883221, -0.0238553024828434, 0.02256663702428341, -0.03266618028283119, + -0.029968973249197006, 0.0047201132401824, 0.04111742973327637, 0.017801569774746895, + -0.0029875319451093674, 0.020259026437997818, -0.013883126899600029, -0.012534522451460361, + 0.03434444218873978, -0.026687370613217354, -0.0010114528704434633, -0.021712521091103554, + 0.010931182652711868, 0.005300762131810188, 0.0317671112716198, 0.002629777416586876, + 0.04947877302765846, -0.018341010436415672, 0.003925935365259647, 0.03895966336131096, + -0.0055779749527573586, -0.0646730437874794, 0.009177997708320618, -8.563399751437828e-5, + -0.019794506952166557, -0.015643803402781487, 0.03662208467721939, 0.02270149625837803, + -0.014130370691418648, -0.013793219812214375, -0.014010494574904442, 0.0002183286560466513, + 0.012084987945854664, -0.004499092232435942, -0.0025473625864833593, 0.006585681810975075, + 0.0019779521971940994, 0.05067753419280052, -0.002612919779494405, -0.0005085360025987029, + -0.002685969229787588, -0.03007386438548565, 0.006608158349990845, 0.00013111425505485386, + 0.0009510466479696333, 0.012092480435967445, -0.019374940544366837, -0.020094195380806923, + 0.007394844200462103, 0.010878737084567547, -0.014250246807932854, -0.013156378641724586, + -0.007604626938700676, -0.06107676774263382, 0.041986532509326935, 0.013186347670853138, + 0.010054590180516243, -0.01142567116767168, -0.0045140767470002174, 0.047830481082201004, + -0.03224661573767662, -0.044563863426446915, -0.002749653300270438, 0.025818269699811935, + 0.0026822229847311974, -0.02791609801352024, -0.024199945852160454, -0.04441401734948158, + -0.010668953880667686, -0.0006611904827877879, 0.0149245485663414, 0.01658782549202442, + 0.014025479555130005, -0.004637698642909527, -0.0012605699012055993, -0.031077824532985687, + 0.010122020728886127, -0.01301402598619461, -0.032036833465099335, 0.016363058239221573, + 0.0027983528561890125, -0.02045382373034954, 0.01847587153315544, 0.005169647745788097, + -0.011657929979264736, -0.023840317502617836, -0.011822760105133057, 0.01340362336486578, + -0.00997217558324337, -0.006799210794270039, -0.007934285327792168, 0.01612330786883831, + -0.029744205996394157, -0.0045140767470002174, -0.04039817675948143, 0.04015842452645302, + 0.003500750521197915, 0.02312106266617775, 0.0003898307913914323, 0.03623248636722565, + 0.024394743144512177, 0.03536338731646538, -0.02243177592754364, -0.025593502447009087, + 0.00446912320330739, -0.025593502447009087, -0.001136947888880968, 0.01068393886089325, + -0.020004289224743843, -0.008091622963547707, -0.017217174172401428, -0.010796322487294674, + -0.02141283079981804, -0.0061998311430215836, -0.0007155092316679657, -0.03416462987661362, + 0.0020603667944669724, 0.022087132558226585, -0.04675159603357315, 0.06191589683294296, + 0.0009037518175318837, -0.008765924721956253, -0.026462603360414505, -0.017022376880049706, + -0.0027384147979319096, 0.0422862209379673, 0.003770471317693591, 0.023106077685952187, + 0.012287278659641743, 0.026702355593442917, 0.011545546352863312, -0.031197700649499893, + 0.029444515705108643, 0.04914911463856697, -0.047980327159166336, 0.03946913778781891, + -0.01717222109436989, -0.045582808554172516, -0.03467410057783127, -0.008698494173586369, + 0.03317565098404884, -0.05199616774916649, 0.025248859077692032, -0.0014853371540084481, + 0.02247672900557518, -0.028620369732379913, 0.002554854843765497, -0.0072562373243272305, + -0.0002458392409607768, 0.040607959032058716, 0.009290381334722042, -0.024244898930191994, + -0.009957191534340382, 0.005008564796298742, 0.013868141919374466, 0.03782084211707115, + -0.014834641478955746, 0.04195656254887581, -0.014047956094145775, -0.011500593274831772, + 0.03946913778781891, -0.024904215708374977, -0.022551652044057846, -0.027466563507914543, + -0.02036391757428646, 0.0213678777217865, 0.005746550392359495, 0.014055448584258556, + -0.02911485731601715, 0.014744734391570091, 0.006162370089441538, -0.014632350765168667, + -0.010174466297030449, 0.02496415376663208, 0.008488711901009083, 0.0040645417757332325, + 0.004555284045636654, -0.020783482119441032, 0.0037255180068314075, 0.014107894152402878, + 0.03173714131116867, -0.01616826094686985, -0.024469666182994843, 0.024110037833452225, + -0.010092051699757576, -0.020978281274437904, 0.011867713183164597, 0.022551652044057846, + -0.0208584051579237, -0.009050630033016205, -0.026837214827537537, 0.015823617577552795, + 0.0333554670214653, -5.256276926957071e-5, -0.014819657430052757, 0.010863753035664558, + 0.02667238563299179, -0.040697865188121796, -0.015808632597327232, 0.0032816024031490088, + 0.01579364947974682, -0.02611795999109745, -0.016647763550281525, 0.014115385711193085, + -0.0422862209379673, -0.002822702517732978, 0.01374826580286026, -0.0075034815818071365, + -0.012129941955208778, -0.044054388999938965, -0.006919086445122957, -0.010871244594454765, + 0.01169539149850607, 0.015718726441264153, 0.02141283079981804, -0.011036073789000511, + 0.00026644289027899504, 0.02234186977148056, 0.004446646198630333, -0.013208825141191483, + -0.002316976198926568, 0.013665851205587387, -0.007458528038114309, 0.03155732899904251, + 0.006638127379119396, -0.016557857394218445, -0.01787649281322956, 0.005120948422700167, + 0.011163442395627499, -0.020648622885346413, 0.0005108773475512862, 0.011081027798354626, + -0.027436595410108566, 0.022716481238603592, 0.042256250977516174, -0.016228199005126953, + -0.03128760680556297, -0.020348932594060898, -0.007301190868020058, -0.0021409085020422935, + 0.0002910268085543066, 0.014827148988842964, -0.020438838750123978, 0.009620040655136108, + -0.018505841493606567, 0.03542332723736763, -0.029639314860105515, -0.0038397745229303837, + -0.022686513140797615, 0.002431232947856188, -0.03071819618344307, -0.004233117215335369, + 0.04063792526721954, -0.011066042818129063, -0.00423686346039176, 0.00048699582112021744, + -0.02265654318034649, -0.026147928088903427, 0.03185701742768288, 0.037431247532367706, + -0.03746121749281883, -0.02929467149078846, 0.01648293435573578, 0.004180671647191048, + 0.0029968973249197006, -0.02467944845557213, -0.004633952397853136, 0.012219849042594433, + 0.008578618057072163, 0.019494816660881042, 0.02354062721133232, 0.012564491480588913, + -0.042406097054481506, -0.008099114522337914, 0.008533664979040623, 0.004248101729899645, + -0.02800600416958332, -0.001126646064221859, -0.028290709480643272, -0.014834641478955746, + -0.01293910387903452, 0.01038424950093031, 0.00020170523202978075, -0.03446431830525398, + 0.010976136662065983, -0.019359955564141273, 0.003407097654417157, -0.0218773502856493, + -0.017307082191109657, -0.015044424682855606, -0.016452966257929802, -0.018535809591412544, + 0.011800282634794712, 0.009305366314947605, 0.013261270709335804, 0.06605161726474762, + -0.0014553682412952185, -0.013328700326383114, -0.011560531333088875, -0.035123635083436966, + -0.013231301680207253, 0.04753078892827034, 0.007368620950728655, 0.02270149625837803, + 0.0038397745229303837, 0.024080069735646248, -0.023510659113526344, -0.015111854299902916, + 0.010781337507069111, 0.006668096408247948, -0.009590071626007557, -0.019060267135500908, + -0.014504983089864254, 0.019704598933458328, 0.005488068331032991, -0.009964683093130589, + -0.00285641779191792, 0.0017466292483732104, -0.010668953880667686, -0.024529604241251945, + 0.007177568972110748, 0.01814621314406395, -0.004510330501943827, -0.02216205559670925, + 0.021128125488758087, 0.03395484760403633, 0.01874559186398983, 0.024289852008223534, + 0.017486896365880966, -0.017262129113078117, -0.010301833972334862, -0.002341326093301177, + 0.01708231493830681, -0.007499735336750746, 0.014489998109638691, -0.015958478674292564, + 0.025953130796551704, 0.02951943874359131, -0.03665205463767052, 0.014497490599751472, + 0.00842877384275198, 0.008578618057072163, -0.02343573607504368, -0.021262986585497856, + -0.029789159074425697, -0.006668096408247948, -0.006188592873513699, 0.020393885672092438, + -0.033325497061014175, -0.004330516792833805, -0.016288137063384056, 0.0012409028131514788, + 0.006480790209025145, -0.017217174172401428, -0.044054388999938965, -0.032036833465099335, + -0.004506584256887436, -0.03179708123207092, 0.009942206554114819, 0.008848339319229126, + -0.0009721185779199004, -0.019270049408078194, -0.01592850871384144, -0.012032542377710342, + -0.006499520968645811, -0.0263427272439003, -0.012287278659641743, 0.044653769582509995, + -0.009575086645781994, 0.02960934489965439, 0.0005113455699756742, -0.04321525990962982, + -0.0007735741091892123, 0.037521153688430786, -0.041656870394945145, 0.0031542344950139523, + 0.026792261749505997, -0.033235590904951096, 0.0013710805214941502, -0.033805001527071, + 0.04108746349811554, -0.014032971113920212, -0.040607959032058716, -0.019794506952166557, + -0.010609016753733158, -0.007308683358132839, -0.00065042037749663, -0.00048137662815861404, + -0.015763679519295692, 0.019419893622398376, 0.005664135795086622, -0.012729321606457233, + -0.018086275085806847, -0.022326884791254997, 0.02718185819685459, 0.0011612976668402553, + 0.017561817541718483, -0.017426958307623863, 0.018311042338609695, 0.0397987961769104, + -0.02294124849140644, 0.03209676966071129, 0.0059675718657672405, 0.03994864225387573, + -0.01499197818338871, 0.01718720607459545, 0.00010202328121522442, -0.022746451199054718, + -0.0526854544878006, -0.007417320739477873, -0.004304293543100357, 0.027721300721168518, + 0.006986516993492842, 0.029789159074425697, -0.003279729513451457, -0.019000329077243805, + -0.01370331272482872, 0.028305694460868835, -0.035393357276916504, 0.005300762131810188, + -0.025323782116174698, 0.03164723515510559, 0.0050048185512423515, -0.012661891058087349, + 0.015538912266492844, -0.0393492616713047, -0.026777276769280434, 0.0030324854888021946, + -0.03964895009994507, 0.014729750342667103, -0.020154133439064026, 0.022716481238603592, + 0.00670181168243289, 0.007911808788776398, 0.012362201698124409, -0.009380288422107697, + 0.0008499013492837548, -0.018895437940955162, -0.043095383793115616, 0.03368512541055679, + -0.014872102998197079, -0.021083172410726547, 0.004461630713194609, -0.00796425435692072, + -0.017576802521944046, 0.010099544189870358, 0.02556353434920311, 0.03260624408721924, + 0.05343467742204666, 0.023225953802466393, 0.03925935551524162, -0.00018695488688535988, + -0.06431341916322708, -0.0010957405902445316, 0.005724073853343725, -0.01522423792630434, + -0.002206465695053339, 0.015164299868047237, -0.0023151030763983727, -0.016288137063384056, + 0.00967248622328043, -0.023420752957463264, -0.004798781592398882, -0.022746451199054718, + 0.031707171350717545, 0.002444344339892268, 0.005806488450616598, -0.0075634196400642395, + 0.038300346583127975, 0.012684367597103119, -0.007979239337146282, 0.02256663702428341, + -0.0074622742831707, 0.010309326462447643, -0.012429631315171719, 0.004188164137303829, + -0.006229800172150135, -0.05070750042796135, 0.007761964108794928, 0.00011554444063222036, + -0.03904957324266434, -0.02662743255496025, -0.02933962456882, -0.00040317632374353707, + 0.0002669111709110439, 0.011530562303960323, -0.008346359245479107, 0.011920158751308918, + 0.030373554676771164, 0.021817412227392197, -6.227927224244922e-5, -0.0039034585934132338, + -0.058799125254154205, 0.002107193460687995, 0.006031255703419447, -0.055472567677497864, + 0.027751268818974495, -0.024080069735646248, -0.040787771344184875, -0.023061124607920647, + -0.06389384716749191, -0.006124909035861492, 0.0014366375980898738, 0.002305737929418683, + 0.014452537521719933, 0.026357712224125862, -0.005555498413741589, 0.00687413290143013, + -0.03296586871147156, -0.03149738907814026, -0.011478116735816002, -0.007724502589553595, + -0.034194596111774445, -0.0033677632454782724, -0.004120733588933945, -0.03626245632767677, + 0.014624858275055885, -0.002264530397951603, 0.006548220757395029, -0.0063309455290436745, + 0.02087339013814926, 0.012129941955208778, 0.036921773105859756, -0.0017953288042917848, + 0.011373225599527359, -0.01667773351073265, 0.006866640876978636, -0.045253150165081024, + -0.00584020372480154, -0.0412672758102417, -0.0036730722058564425, -0.045253150165081024, + -0.024199945852160454, -0.025353750213980675, 0.007259983569383621, 0.0313175767660141, + 0.024349790066480637, 0.019914383068680763, -0.027481548488140106, 0.014587397687137127, + -0.0027552724350243807, 0.02031896263360977, 0.026132944971323013, 0.040458112955093384, + -0.01293910387903452, 0.03746121749281883, -0.01961469277739525, 0.0368618369102478, + 0.0129465963691473, -0.00682917982339859, -0.005652897525578737, 0.023780379444360733, + 0.015553897246718407, -0.011268333531916142, 0.0016576588386669755, -0.001560259610414505, + 0.01096115168184042, 0.00794177781790495, -0.005083486903458834, -0.019015314057469368, + 0.025069044902920723, 0.0017147872131317854, 0.02556353434920311, 0.027331702411174774, + -0.005386922974139452, 0.005150916986167431, -0.028994981199502945, 0.04033823683857918, + -0.0024761862587183714, -0.03191695734858513, 0.009050630033016205, 0.004832496866583824, + 0.02054373174905777, -0.0040420652367174625, 0.015299160964787006, -0.011965112760663033, + -0.0031036618165671825, 0.01703736186027527, -0.007132615428417921, 0.01292411983013153, + -0.012099972926080227, -0.018985344097018242, -0.01772664673626423, -0.004023334477096796, + 0.015066901221871376, -0.015051916241645813, 0.0020510016474872828, -0.014152847230434418, + 0.032726116478443146, 0.028935043141245842, -0.003156107384711504, 0.020468808710575104, + 0.014340153895318508, -0.019195126369595528, -0.04441401734948158, -0.014115385711193085, + 0.021442800760269165, 0.017816554754972458, -0.03791075199842453, -0.03515360504388809, + 0.0029369592666625977, 0.007623357232660055, 0.01634807512164116, 0.011043566279113293, + -0.00611367030069232, -0.02372044138610363, 0.007540942635387182, -0.013898110948503017, + 0.0038322824984788895, -0.031197700649499893, -0.004420423414558172, 0.026687370613217354, + -0.022311899811029434, 0.02054373174905777, 0.017606770619750023, 0.0033059522975236177, + -0.01841593347489834, 0.001879616524092853, -0.005383176729083061, -0.0014553682412952185, + 0.007376113440841436, 0.022132085636258125, 0.021997226402163506, -0.011103504337370396, + 0.014220277778804302, -5.08945740875788e-5, -0.009387780912220478, -0.00183372653555125, + -0.003970888908952475, 0.019240081310272217, 0.006787972524762154, -0.0001171833646367304, + -0.003405224531888962, 0.02607300691306591, -0.03206679970026016, 0.01123836450278759, + 0.034434348344802856, 0.007259983569383621, 0.0018590128747746348, 0.0016857547452673316, + -0.02265654318034649, 0.028845136985182762, -0.03524351119995117, -0.011852729134261608, + 0.020019274204969406, 0.006398375611752272, 0.02758643962442875, -0.0022589112631976604, + -0.006087447516620159, -0.006184846628457308, -0.030478445813059807, 0.016228199005126953, + -0.030133802443742752, -0.006739272736012936, -0.022461745887994766, -0.015568881295621395, + -0.0021221779752522707, -0.007117630913853645, -0.030613305047154427, 0.0075858961790800095, + -0.0018262342782691121, -0.015493959188461304, 0.029834112152457237, -0.008833354339003563, + 0.0021933543030172586, -0.0268521998077631, -0.031437452882528305, 0.00021704091341234744, + -0.0154340211302042, -0.002270149765536189, 0.0050759948790073395, 0.024559572339057922, + -0.01801135204732418, 0.00700150104239583, -0.017651725560426712, -0.0012427758192643523, + -0.00794177781790495, 0.008233975619077682, -0.022446760907769203, -0.0024218675680458546, + -0.01630312204360962, -0.03374506160616875, -0.02196725644171238, -0.007911808788776398, + ], + index: 57, + }, + { + title: "Kjelvatnet (Fauske)", + text: "Kjelvatnet (Lule Sami: Giebbnej\u00e1vrre) is a lake in the municipality of Fauske in Nordland county, Norway. The 3.85-square-kilometre (1.49 sq mi) lake lies about 7 kilometres (4.3 mi) south of the village of Sulitjelma near the border with Junkerdal National Park. Water flows into the lake from the large lake Balvatnet (in Saltdal) and it flows out of the lake to the north to the lake Langvatnet.", + vector: [ + -0.005133721977472305, -0.0011205541668459773, 0.00229629036039114, 0.049728039652109146, + -0.002314091194421053, 0.0010653719073161483, -0.04172484204173088, -0.032041262835264206, + -0.05878503620624542, 0.016903545707464218, 0.017060192301869392, 0.007383730728179216, + -0.018996907398104668, -0.006767826620489359, -0.061690110713243484, 0.06402555853128433, + 0.0158782247453928, 0.00165902532171458, -0.002232207916676998, -0.021303879097104073, + -0.043348267674446106, -0.03981660678982735, 0.06863950192928314, 0.036940015852451324, + 0.006486575584858656, 0.015123475342988968, -0.005899152252823114, 0.03443367779254913, + -0.010630578733980656, -0.04175332561135292, 0.045057132840156555, -0.019965266808867455, + -0.011833906173706055, 0.016034871339797974, 0.0285808052867651, 0.02368205226957798, + -0.016846584156155586, 0.003556580049917102, 0.03292417526245117, -0.01043121051043272, + -0.0008032566402107477, -0.006796307861804962, 0.015522211790084839, -0.003830710891634226, + -0.02057761140167713, -0.02895106002688408, -0.03355076164007187, 0.020079191774129868, + -0.021460525691509247, -0.05049702897667885, 0.035487476736307144, -0.038648881018161774, + -0.029164668172597885, 0.03426279127597809, 0.03286721557378769, -0.029136188328266144, + 0.011748462915420532, 0.14422839879989624, -0.011613177135586739, 0.03506026044487953, + -0.01271682046353817, -0.01434024516493082, 0.001845932682044804, -0.009484213776886463, + 0.009064117446541786, 0.0043184501118958, -0.007519016042351723, 0.00194561667740345, + -0.04272168129682541, 0.07137369364500046, 0.03921850398182869, 0.08629780262708664, + 0.026387758553028107, 0.06265846639871597, 0.011627417989075184, 0.027128268033266068, + 0.006105640437453985, 0.0240095853805542, 0.009939911775290966, 0.00833784881979227, + 0.008017435669898987, 0.013236600905656815, 0.0051978048868477345, -0.0278830174356699, + -0.022528566420078278, 0.029848216101527214, -0.0011339046759530902, -0.029791252687573433, + -0.02188774198293686, -0.0025472803972661495, 0.022357679903507233, -0.008693862706422806, + 0.006144802086055279, -0.019979506731033325, 0.04551283270120621, 0.00767566217109561, + 0.03229759261012077, -0.011705741286277771, -0.006561338435858488, 0.05867110937833786, + 0.016875064000487328, 0.03044631890952587, 0.007120280526578426, -0.03574380651116371, + -0.01728804036974907, 0.02546212263405323, -0.0043647317215800285, 0.0054434542544186115, + -0.003499617800116539, 0.009491333737969398, 0.028438400477170944, -0.01535132434219122, + -0.023140911012887955, -0.07046229392290115, 0.005229846108704805, -0.008672501891851425, + 0.036968495696783066, -0.04030078649520874, 0.0019100152421742678, 0.031614046543836594, + 0.0015077193966135383, -0.014881386421620846, 0.015607655048370361, -0.0687534287571907, + 0.02647320181131363, -0.028167828917503357, 0.03602861985564232, 0.0036402433179318905, + 0.009947031736373901, 0.10241811722517014, -0.02754124440252781, -0.054228056222200394, + 0.007590218912810087, -0.008252404630184174, -0.05878503620624542, -0.01629120111465454, + 0.0318988561630249, 0.0061483620665967464, -0.011257163248956203, -0.0012077775318175554, + 0.004702945239841938, 0.010317286476492882, -0.04206661507487297, -0.013386127538979053, + 0.0035583600401878357, -0.02964884787797928, -0.03916154429316521, -0.016504809260368347, + 0.0023977544624358416, -0.052547670900821686, 0.031927336007356644, -0.013735020533204079, + 0.02754124440252781, 0.04357611760497093, 0.03688305243849754, 0.006511496379971504, + -0.0268719382584095, 0.033038102090358734, 0.011776943691074848, -0.007839429192245007, + -0.0481615774333477, -0.004635302349925041, 0.021446283906698227, -0.0446014367043972, + 0.0028089506085962057, 0.015750059857964516, 0.021047549322247505, -0.0072092837654054165, + 0.024280156940221786, 0.017957346513867378, 0.014105275273323059, 0.027299154549837112, + 0.0026451842859387398, -0.021389322355389595, 0.012040394358336926, -0.09860164672136307, + 0.002901514293625951, 0.03349379822611809, -0.02939251810312271, -0.003344751661643386, + -0.0031970059499144554, -0.019196275621652603, 0.004802629351615906, -0.0050233579240739346, + -0.02087666280567646, -0.002020379528403282, 0.0127025805413723, 0.01290906872600317, + 0.027014344930648804, -0.023511165753006935, -0.014838664792478085, -0.010922510176897049, + -0.0057282657362520695, 0.03993053361773491, -0.02721371129155159, 0.017957346513867378, + -0.004037199076265097, 0.04032927006483078, 0.03423430770635605, 0.0332944318652153, + 0.04237990826368332, 0.02335451915860176, -0.04687992483377457, 0.03150011971592903, + -0.01399135123938322, 0.022841859608888626, -0.0278830174356699, 0.011007953435182571, + -0.026245353743433952, 0.024636169895529747, -0.032696329057216644, -0.0017079772660508752, + -0.016106074675917625, -0.02680073492228985, 0.052547670900821686, -0.004656663630157709, + -0.008045916445553303, 0.0010084097739309072, 0.02084818109869957, -0.0086369002237916, + -0.04952866956591606, -0.021389322355389595, -0.01693202741444111, 0.027470041066408157, + -0.014995310455560684, -0.028039664030075073, 0.015493730083107948, -0.022186793386936188, + -0.009420131333172321, 0.04975651949644089, 0.03995901346206665, -0.01875481940805912, + -0.031215310096740723, -0.03420582786202431, -0.058215413242578506, -0.028110867366194725, + 0.025946302339434624, -0.03044631890952587, -0.00831648800522089, -0.03967420384287834, + 0.0211472325026989, -0.0024903181474655867, 0.00012660748325288296, -0.021360840648412704, + -0.009363168850541115, 0.006561338435858488, -0.008231043815612793, 0.05482615903019905, + -0.0006003286689519882, -0.021716855466365814, 0.01043121051043272, -0.017515890300273895, + 0.010060956701636314, -0.010025355033576488, -0.02869473025202751, 0.007266246248036623, + -0.0480191707611084, -0.002533039776608348, -0.004706505220383406, -0.012624257244169712, + -0.025234274566173553, 0.03115834668278694, 0.038364071398973465, 0.019566530361771584, + -0.01948108710348606, -0.021716855466365814, -0.010324406437575817, -0.02823903225362301, + -0.00988294929265976, -0.026017505675554276, 0.010082317516207695, 0.03642735630273819, + 0.0027039265260100365, -0.028139349073171616, 0.029278593137860298, 0.034405194222927094, + -0.02089090272784233, 0.0064153727144002914, -0.028865616768598557, 0.008743704296648502, + 0.006906671915203333, -0.02338300086557865, -0.010901149362325668, 0.003713226178660989, + 0.020677294582128525, 0.02126115746796131, -0.011833906173706055, 0.024265915155410767, + 0.012424889020621777, 0.016362404450774193, -0.03150011971592903, 0.02680073492228985, + 6.224682874744758e-5, 0.03360772505402565, -0.020292799919843674, -0.013649577274918556, + -0.02936403639614582, 0.0010618118103593588, -0.010886908508837223, -0.018470007926225662, + -0.013656698167324066, -0.028068145737051964, -0.01975165866315365, 0.0034479957539588213, + 0.026402000337839127, -0.0012780902907252312, -4.633744902093895e-5, -0.007405091542750597, + -0.03326595202088356, -0.01398423034697771, 0.004336250945925713, -0.010182000696659088, + 0.005806588567793369, -0.03488937392830849, 0.008074398152530193, -0.010210482403635979, + -0.028367197141051292, 0.016348164528608322, -0.025689972564578056, -0.019879823550581932, + 0.015365565195679665, -0.004183164797723293, -0.01149213220924139, 0.00170263706240803, + 0.022514326497912407, -0.0494147464632988, 0.04172484204173088, 0.045370426028966904, + 0.00830936711281538, -0.029962139204144478, -0.005681983660906553, 0.06687367707490921, + -0.051436904817819595, 0.018954185768961906, -0.015109235420823097, 0.01913931407034397, + -0.04984196275472641, 0.01204751431941986, -0.011214441619813442, -0.003029679413884878, + -0.008458892814815044, -0.0432058610022068, 0.06767114251852036, -0.02620263211429119, + 0.024265915155410767, 0.037680525332689285, -0.02052064798772335, -0.008622659370303154, + 0.02081969939172268, 0.045370426028966904, 0.0006265846895985305, 0.02332603931427002, + -0.017743738368153572, -0.03562988340854645, 0.031699489802122116, -0.007252005860209465, + -0.01950956881046295, 0.033009618520736694, 0.01061633788049221, 0.028110867366194725, + 0.028025424107909203, -0.0311298668384552, -0.020250078290700912, -0.013286443427205086, + -0.04067104309797287, 0.022727934643626213, 0.016134556382894516, 0.02047792635858059, + 0.010125039145350456, -0.02222951501607895, 0.030189989134669304, 0.03258240222930908, + -0.014653537422418594, 0.057788196951150894, 0.05719009414315224, -0.03543051704764366, + 0.006219564937055111, -0.0008878099615685642, -0.013557014055550098, 0.009569657035171986, + 0.029933659359812737, -0.03537355363368988, 0.04534194618463516, -0.0070526376366615295, + 0.029221631586551666, 0.0025561805814504623, -0.0003043919859919697, 0.0007591999019496143, + -0.02156020887196064, 0.02506338804960251, -0.006244485732167959, 0.03890521079301834, + -0.002137864241376519, -0.016732659190893173, 0.006280087400227785, 0.0009754784405231476, + -0.01975165866315365, 0.05764579027891159, -0.005614341236650944, -0.04286408796906471, + -0.016447847709059715, 0.06949393451213837, -0.016063353046774864, -0.011007953435182571, + 0.009712062776088715, 0.005959674715995789, 0.03141467645764351, 0.026587126776576042, + 0.022841859608888626, -0.01594942808151245, -0.010174880735576153, -0.03431975096464157, + 0.004667344037443399, -0.06698759645223618, 0.03967420384287834, 0.01832760125398636, + 0.007091799285262823, -0.017031710594892502, 0.004336250945925713, 0.02332603931427002, + 0.0021200634073466063, -0.02724219299852848, 0.0285808052867651, 0.0022037269081920385, + -0.058158449828624725, 0.01798582822084427, -0.018598172813653946, 0.03075961209833622, + -9.184049122268334e-5, -0.010958111844956875, -0.018541209399700165, 0.05308881029486656, + -0.014304643496870995, 0.014468410052359104, 0.0027733491733670235, -0.013706539757549763, + -0.00600239634513855, -0.0727977454662323, 0.00990431010723114, 0.024849778041243553, + 0.010523774661123753, 0.0458546057343483, 0.008572817780077457, 0.012289604172110558, + 0.007689903024584055, -0.017216838896274567, 0.040870409458875656, -0.03275328874588013, + -0.009448612108826637, -0.03332291170954704, 0.036940015852451324, -0.019595012068748474, + -0.03326595202088356, -0.006123441271483898, 0.0020880221854895353, -0.007038397248834372, + 0.039417874068021774, 0.04884512349963188, -0.040784966200590134, -0.011997672729194164, + 0.04001597687602043, -0.023254835978150368, 0.026416240260004997, -0.016519051045179367, + -0.01659025251865387, -0.0790066346526146, -0.00013951299479231238, 0.013172518461942673, + 0.001622533891350031, -0.0194383654743433, 0.013720780611038208, 0.009804625995457172, + -0.07678510248661041, -0.00405499991029501, 1.1890311952811317e-6, 0.001234478666447103, + -0.011257163248956203, -0.030503282323479652, -0.005347330588847399, -0.0494147464632988, + 0.08555728942155838, 0.008736584335565567, -0.006141242105513811, 0.028196310624480247, + -0.005820829421281815, 0.02868049032986164, -0.0038912333548069, 0.0005424763658083975, + -0.005375811830163002, -0.014276162721216679, 0.02295578457415104, 0.01733076199889183, + -0.0001606513251317665, -0.03793685510754585, -0.011563335545361042, 0.01982286013662815, + -0.0158782247453928, 0.04069952294230461, -0.06015212833881378, -0.004044319503009319, + 0.026088707149028778, 0.03349379822611809, 0.03967420384287834, 0.052205897867679596, + -0.01764405518770218, 0.032696329057216644, 0.026416240260004997, 0.07268382608890533, + 0.011093396693468094, -0.006386891473084688, 0.021403562277555466, -0.02016463503241539, + -0.03933243080973625, -0.019680455327033997, -0.012389288283884525, 0.015251641161739826, + 0.04773436114192009, -0.07627244293689728, -0.025319717824459076, 0.010338647291064262, + -0.030303914099931717, -6.970087270019576e-5, -0.007291167043149471, -0.044686879962682724, + 0.01694626733660698, 0.04386092722415924, 0.01429040264338255, 0.010424090549349785, + -0.010210482403635979, 0.0007075778557918966, 0.014810183085501194, 0.042978011071681976, + -0.009989753365516663, 0.020007988438010216, 0.014119516126811504, -0.010744502767920494, + -0.009113959036767483, -0.01519467867910862, -0.018811780959367752, 0.019267478957772255, + -0.03226911276578903, -0.041582439094781876, 0.04309193789958954, -0.02862352691590786, + -0.017102913931012154, 0.005190684460103512, -0.012809384614229202, 0.0014641076559200883, + -0.02504914626479149, -0.03708241879940033, 0.030902016907930374, 0.01656177267432213, + 0.013720780611038208, 0.031955819576978683, 0.06174707040190697, 0.019580772146582603, + 0.010844186879694462, 0.025319717824459076, 0.002814290812239051, -0.017544370144605637, + 0.01906811073422432, 0.01553645171225071, -0.029278593137860298, -0.01293042954057455, + -0.0005571619258262217, 0.031329233199357986, 0.028395678848028183, 0.007504775654524565, + -0.06539265811443329, 0.019908303394913673, 0.026729533448815346, -0.0038698725402355194, + 0.020064949989318848, -0.044373586773872375, 0.0033322912640869617, 0.00075163459405303, + -0.013471570797264576, -0.0004049659473821521, 0.014397206716239452, -0.03494633734226227, + -0.014753221534192562, 0.028367197141051292, -0.0311298668384552, 0.021161474287509918, + 0.019879823550581932, 0.045057132840156555, -0.03394949808716774, 0.010053835809230804, + -0.06003820523619652, 0.010538015514612198, -0.0020559809636324644, 0.018113993108272552, + 0.016034871339797974, -0.006892431527376175, 0.017174117267131805, -0.029079224914312363, + 0.011057795956730843, 0.015151957049965858, -0.00635129027068615, -0.031357716768980026, + -0.013421728275716305, -0.004670904017984867, -0.019324440509080887, -0.01837032288312912, + 0.023254835978150368, 0.060949601233005524, 0.01832760125398636, 0.0010386708891019225, + 0.00884338840842247, -0.0012567294761538506, -0.06282935291528702, -0.06841165572404861, + 0.030531762167811394, 0.03506026044487953, -0.002744868164882064, -0.007704143412411213, + -0.0158782247453928, 0.018640894442796707, 5.482059714267962e-5, 0.027299154549837112, + -0.027726372703909874, -0.030133027583360672, 0.020606091246008873, -0.009498453699052334, + -0.00935604888945818, 0.031699489802122116, 0.046481192111968994, -0.022813377901911736, + -0.034091901034116745, -0.026729533448815346, 0.03597165644168854, -0.012161439284682274, + -0.020762737840414047, -0.032012779265642166, 0.007138081360608339, 0.008231043815612793, + -0.02053488790988922, -0.0044893366284668446, 0.003919714596122503, 0.0059739151038229465, + 0.0033839133102446795, 0.02504914626479149, 0.01728804036974907, -0.060949601233005524, + 0.013450209982693195, -0.029079224914312363, -0.009121078997850418, 0.018954185768961906, + -0.013827584683895111, 0.05901288613677025, 0.02265673317015171, 0.034405194222927094, + 0.009840227663516998, 0.0035156384110450745, -0.017473168671131134, 0.013001631945371628, + 0.0021556648425757885, -0.007768225856125355, 0.014326004311442375, -0.028552325442433357, + -0.03562988340854645, 0.01024608314037323, -0.02685769833624363, -0.01765829510986805, + 0.004179604817181826, 0.0024048746563494205, 0.013222360983490944, 0.034120384603738785, + -0.0037523878272622824, 0.029620366171002388, -0.03349379822611809, -0.014454169198870659, + -0.017786459997296333, 0.016333922743797302, 0.017117153853178024, 0.011185960844159126, + 0.03956027701497078, -0.001828131964430213, 0.016761140897870064, -0.005617901217192411, + -0.026601368561387062, -0.017131395637989044, 0.02195894531905651, -0.03400645777583122, + 0.001696406863629818, 0.008053037337958813, 0.025576047599315643, 0.02680073492228985, + -0.00882202759385109, -0.017088674008846283, 0.03309506177902222, 0.04736410453915596, + 0.032326072454452515, -0.008836268447339535, -0.014439928345382214, 0.02012191340327263, + -0.042636238038539886, -0.010901149362325668, 0.0003293129848316312, -0.010680420324206352, + 0.03488937392830849, 0.027099788188934326, -0.026729533448815346, 0.0108014652505517, + 0.026273835450410843, -0.008238164708018303, -0.0066823833622038364, 0.017829181626439095, + 0.03562988340854645, -0.01434024516493082, -0.0046637835912406445, -0.058215413242578506, + 0.023895660415291786, 0.007739745080471039, -0.035886213183403015, -0.0024529367219656706, + -0.012951790355145931, -0.02298426441848278, -0.050753358751535416, -0.005884911864995956, + 0.007654301356524229, -0.00260780262760818, -0.0016180836828425527, 0.0009345368016511202, + 0.04317738115787506, 0.0033892535138875246, 0.050753358751535416, 0.040841929614543915, + -0.04106977581977844, 0.013329165056347847, 0.023169392719864845, -0.013927268795669079, + -0.00654709804803133, 0.01112899836152792, 0.017174117267131805, -0.006490135565400124, + 0.0005131051875650883, 0.012432009913027287, 0.020634572952985764, -0.034832410514354706, + 0.02936403639614582, -0.06687367707490921, -0.012752422131597996, 0.044031813740730286, + -0.015422527678310871, -0.020079191774129868, 0.024194713681936264, 0.011541974730789661, + 0.015166196972131729, 0.023909902200102806, -0.019538048654794693, 0.024137750267982483, + 0.0020114791113883257, -0.05377235636115074, -0.041553955525159836, 0.01871209777891636, + -0.018868742510676384, -0.047164738178253174, 0.047392588108778, 0.011549094691872597, + 0.011050675064325333, 0.013158278539776802, -0.05192108452320099, -0.02473585493862629, + 0.026686811819672585, 0.002689685905352235, -0.03004758432507515, -0.011185960844159126, + -0.012232641689479351, -0.05135146155953407, 0.030332393944263458, 0.021375082433223724, + 0.025319717824459076, -0.023952623829245567, 0.004863151349127293, 0.01129276491701603, + -0.0073196482844650745, -0.0013208120362833142, -0.005464815068989992, 0.008615539409220219, + 0.00067375652724877, 0.01838456466794014, 0.05277551710605621, -0.018626654520630836, + -0.006586259230971336, -0.007106039673089981, -0.01006807666271925, 0.012410649098455906, + 0.0007489644922316074, 0.0275697261095047, -0.037310268729925156, -0.022813377901911736, + 0.024137750267982483, -0.03115834668278694, 0.011250043287873268, 0.014895626343786716, + -0.006696623750030994, 0.02154596894979477, -0.003469356568530202, 0.00398023659363389, + 0.002353252610191703, -0.0010929630370810628, 0.004425254184752703, -0.001703527057543397, + 0.008850508369505405, 0.021759577095508575, 0.03075961209833622, -0.004727866034954786, + 0.015821263194084167, -0.019167795777320862, -0.024237435311079025, 0.0004668233741540462, + 0.010096557438373566, 0.03036087565124035, -0.006408252287656069, -0.029962139204144478, + -0.0026345038786530495, -0.04528498277068138, 0.02332603931427002, 0.04912993684411049, + 0.006764266639947891, 0.021802298724651337, 0.0035280990414321423, -0.010132159106433392, + -0.03787989169359207, 0.018256399780511856, -0.008458892814815044, 0.023140911012887955, + -0.013158278539776802, -0.0062409257516264915, -0.011962071061134338, 0.014354485087096691, + -0.03947483375668526, -0.008409051224589348, 0.013186759315431118, -0.051436904817819595, + 0.05115209519863129, -0.02789725922048092, -0.008579937741160393, 0.019224757328629494, + 0.020962106063961983, -0.014276162721216679, 0.03568684682250023, 0.030474800616502762, + 0.0036384633276611567, 0.006668142508715391, -0.034519121050834656, -0.053629953414201736, + -0.018199436366558075, 0.011356847360730171, 0.008807786740362644, -0.03178493306040764, + 0.01980862021446228, -0.012994511984288692, -0.008878990076482296, 0.001758709317073226, + -0.011648778803646564, -0.015721580013632774, -0.021118752658367157, 0.007917751558125019, + 0.003280669217929244, 0.00902139488607645, -0.01269545964896679, 0.030275432392954826, + 0.01590670645236969, -0.0503261424601078, 0.011997672729194164, -0.01838456466794014, + 0.022913062945008278, -0.03246847912669182, 0.004745666868984699, -0.060664787888526917, + 0.02084818109869957, 0.029506443068385124, -0.007454933598637581, 0.01624847948551178, + -0.052519187331199646, -0.018569691106677055, 0.01343596912920475, 0.011926469393074512, + -0.0068212286569178104, 0.036284949630498886, 0.00265586469322443, -0.02188774198293686, + -0.012182800099253654, 0.023881420493125916, -0.0208339411765337, 0.019623493775725365, + 0.06761418282985687, -0.040158383548259735, -0.0282675139605999, -0.011541974730789661, + -0.03261088579893112, -0.011776943691074848, 0.04163939878344536, -0.03477545082569122, + 0.02933555468916893, -0.024280156940221786, -0.0046175019815564156, 0.020079191774129868, + 0.012937549501657486, 0.02758396603167057, -0.03431975096464157, -0.011449410580098629, + 0.005607220809906721, -0.003766628447920084, 0.005546698346734047, -0.022201035171747208, + -0.04411725699901581, 0.04736410453915596, -0.010851307772099972, 0.014810183085501194, + -0.04693688824772835, -0.02719947136938572, 0.011356847360730171, -0.022443123161792755, + 0.0011632757959887385, 0.018897224217653275, 0.012510333210229874, 0.0792914405465126, + -0.02510610967874527, 0.04608245566487312, 0.014219200238585472, 0.0194383654743433, + -0.017587093636393547, -0.012175679206848145, 0.005560939200222492, 0.021446283906698227, + -0.006942273583263159, -0.006159042473882437, 0.027099788188934326, -0.007768225856125355, + 0.04252231493592262, -0.018299121409654617, -0.029150428250432014, -0.008223923854529858, + 0.03218366578221321, -0.01661873422563076, 0.012524573132395744, -0.02581813745200634, + 0.023696294054389, -0.030873535200953484, 0.010538015514612198, -0.025561807677149773, + 0.01835608296096325, 0.002445816295221448, 0.026045985519886017, -0.03990205004811287, + -0.018626654520630836, 0.04779132083058357, 0.004984196275472641, 0.016576012596488, + -0.010288805700838566, -0.006447413936257362, 0.04699385166168213, 0.0014187159249559045, + -0.020036468282341957, 0.013735020533204079, 0.010936751030385494, -0.008736584335565567, + 0.023083949461579323, 0.009455732069909573, 0.03150011971592903, 0.010829946957528591, + -0.045370426028966904, 0.028125107288360596, 0.010837066918611526, -0.0014649976510554552, + -0.01362109649926424, 0.0039766766130924225, 0.0004192065098322928, 0.0025490603875368834, + 0.005058959126472473, 0.023126671090722084, 0.053572990000247955, -0.01362109649926424, + 0.014610815793275833, -0.0155649334192276, 0.018968427553772926, -0.01080858614295721, + 0.0058493101969361305, 0.00956253707408905, -0.017971588298678398, 0.0209051426500082, + -0.004816869739443064, 0.030218470841646194, 0.006935153156518936, 0.03323746845126152, + 0.0290365032851696, 0.037652041763067245, 0.012289604172110558, 0.007291167043149471, + -0.009932790882885456, 0.015750059857964516, 0.05553818866610527, 0.014105275273323059, + 0.004197405185550451, -0.035857733339071274, -0.006411812733858824, -0.022428883239626884, + 0.035515960305929184, 0.015436767600476742, 0.04565523937344551, -0.00681054824963212, + -0.02264249138534069, 0.006301448214799166, -0.007287607062608004, -0.04138306900858879, + 0.02897954173386097, 0.031044423580169678, 0.006141242105513811, -0.00617684330791235, + 0.0018112213583663106, -0.022870341315865517, -0.024123510345816612, 0.03725330904126167, + -0.0017400184879079461, 0.001173066208139062, 0.04770587757229805, 0.059582505375146866, + 0.01631968282163143, -0.05058247223496437, 0.004019398242235184, 0.016390886157751083, + 0.0029602565336972475, 0.005251206923276186, -0.0017409085994586349, 0.017245318740606308, + -0.008743704296648502, -0.04556979611515999, 0.007981834001839161, 0.024522246792912483, + 0.005361570976674557, 0.016718419268727303, 0.026017505675554276, -0.0388767309486866, + 0.05727553740143776, 0.0038769927341490984, -0.02758396603167057, 0.03523114696145058, + -0.0019669774919748306, 0.004621061962097883, 0.029278593137860298, 0.03243999928236008, + -0.016433607786893845, -0.003031459404155612, -0.03648431599140167, 0.008522975258529186, + -0.036284949630498886, 0.0015851524658501148, -0.010146399959921837, -0.013193879276514053, + -0.0034711367916315794, 0.008871869184076786, -0.030588725581765175, 0.00039673311403021216, + 0.004759907256811857, 0.029136188328266144, -0.020591851323843002, 0.004852470941841602, + 0.00867962185293436, -0.004770588129758835, 0.04021534323692322, -0.0002282939967699349, + 0.00331805064342916, -0.023553887382149696, 0.021460525691509247, 0.015123475342988968, + -0.003926834557205439, -0.00810287892818451, 0.04981348291039467, 0.04198117181658745, + 0.04283560812473297, 0.049357783049345016, -0.013891667127609253, 0.014781702309846878, + -0.0012211280409246683, 0.011057795956730843, 0.015265881083905697, -0.009911430068314075, + -0.0020809019915759563, 0.03312354534864426, -0.019367162138223648, -0.0424368716776371, + -0.0023906342685222626, 0.008807786740362644, -0.024935221299529076, -0.022713694721460342, + 0.03491785377264023, -0.004136882722377777, -0.005674863699823618, 0.014226320199668407, + -0.00956253707408905, -0.019210517406463623, -0.018968427553772926, -0.003373232902958989, + 0.013471570797264576, -0.01663297601044178, -0.016860824078321457, 0.018868742510676384, + 0.011435170657932758, -0.03286721557378769, 0.011264283210039139, 0.027455801144242287, + 0.011791184544563293, 0.030531762167811394, -0.010509533807635307, -0.017131395637989044, + -0.0035512398462742567, -0.025034906342625618, -0.03913306072354317, -0.020420964807271957, + 0.004343370907008648, 0.03711090236902237, 0.023781737312674522, -0.028780173510313034, + 0.02372477389872074, 0.021731095388531685, 0.014909867197275162, 0.0043682921677827835, + -0.02435135841369629, -0.004606821574270725, 0.020591851323843002, 0.007511896081268787, + 0.00326820882037282, 0.01906811073422432, -0.008359209634363651, 0.02477857656776905, + 0.023753255605697632, 0.0034853771794587374, -0.03708241879940033, -0.02543364092707634, + 0.040784966200590134, 0.04064255952835083, -0.0034479957539588213, 0.013379006646573544, + 0.018227918073534966, -0.008159841410815716, -0.031671006232500076, 0.015451008453965187, + 0.02476433478295803, 0.02620263211429119, 0.023881420493125916, 0.030133027583360672, + 0.038762807846069336, 0.02019311487674713, -0.019381403923034668, -0.015337084420025349, + -0.00867962185293436, -0.0018957746215164661, 0.0030510402284562588, 0.019623493775725365, + 0.032326072454452515, 0.02443680167198181, 0.009605258703231812, 0.0076187001541256905, + 0.012553054839372635, 0.02372477389872074, -0.002127183834090829, 0.02862352691590786, + 0.040072936564683914, 0.014326004311442375, -0.010117918252944946, -0.011962071061134338, + -0.0068069882690906525, -0.01147077139467001, -0.018840262666344643, 0.028381437063217163, + -0.010182000696659088, 0.019908303394913673, 0.002376393647864461, 0.00810999982059002, + 0.013371886685490608, -0.011613177135586739, 0.0014009152073413134, 0.0162627212703228, + -0.020022228360176086, 0.010360008105635643, -0.029506443068385124, 0.02654440514743328, + -0.013222360983490944, 0.026088707149028778, -0.015522211790084839, 0.024963703006505966, + 0.0127025805413723, 0.04727866128087044, 0.015465249307453632, 0.02326907590031624, + 0.00644029350951314, -0.04762043431401253, -0.03958876058459282, 0.02440832182765007, + -0.03243999928236008, 0.03580076992511749, 0.008053037337958813, 0.018954185768961906, + -0.019196275621652603, -0.029477961361408234, 0.023525407537817955, -0.02046368643641472, + -0.023468444123864174, 0.003987357020378113, -0.0030848614405840635, 0.013371886685490608, + 0.0075830984860658646, 0.01627696119248867, -0.011719981208443642, -0.018897224217653275, + 0.0018939946312457323, -0.03508874028921127, 0.007668542210012674, 0.024864019826054573, + -0.013407488353550434, 0.023254835978150368, 0.028837135061621666, 0.012268243357539177, + 0.03403494134545326, 0.0026968063320964575, 0.022528566420078278, -0.011157479137182236, + 0.0070526376366615295, -0.011000833474099636, -0.008522975258529186, 0.022742176428437233, + 0.03921850398182869, 0.003380353096872568, 0.007924872450530529, -0.024522246792912483, + 0.023226354271173477, -0.03224062919616699, 0.01800006814301014, 0.014995310455560684, + -0.011990551836788654, 0.011000833474099636, -0.012674098834395409, 0.001965197501704097, + -0.016775380820035934, -0.006515056826174259, 0.015778541564941406, -0.014995310455560684, + 0.029905177652835846, -0.009291966445744038, 0.020335521548986435, 0.01590670645236969, + 0.005375811830163002, 0.03634191304445267, 0.016006389632821083, -0.003766628447920084, + 0.005692664068192244, -0.03141467645764351, 0.029591886326670647, 0.0015744720585644245, + -0.012389288283884525, 0.029449479654431343, 0.06482303142547607, -0.015094994567334652, + 0.029819734394550323, 0.045484352856874466, 0.0026772255077958107, 0.02933555468916893, + 0.0010360007872805, -0.0009514474659226835, -0.007568858098238707, -0.04767739772796631, + -0.028523843735456467, -0.019523808732628822, 0.0011748463148251176, 0.003223706968128681, + 0.014062553644180298, 0.01656177267432213, 0.006333489436656237, -0.04853183031082153, + 0.028552325442433357, -0.000882469757925719, -0.0011134338565170765, 0.05382931977510452, + 0.03853495791554451, -0.007066878490149975, 0.006949393544346094, 0.00531172938644886, + 0.00988294929265976, -0.00644029350951314, 0.04556979611515999, 0.006137681659311056, + -0.012795143760740757, -3.362663846928626e-5, 0.01449689082801342, -0.006586259230971336, + -0.008010315708816051, -0.010516653768718243, 0.0021467646583914757, -0.025248514488339424, + -0.008387690410017967, 0.006703744176775217, 0.024992184713482857, -0.005518217571079731, + -0.018142474815249443, 0.026259593665599823, 0.026088707149028778, 0.004343370907008648, + 0.002052420750260353, 0.018284879624843597, -0.000296381680527702, -0.015507970936596394, + 0.014119516126811504, -0.016390886157751083, -0.02120419591665268, -0.0006933372933417559, + -0.01876905933022499, -0.0015878225676715374, -0.01663297601044178, -0.01396999042481184, + -0.041924212127923965, -0.002157445065677166, 0.02338300086557865, 0.0104525713250041, + 0.0311298668384552, 0.019495327025651932, 0.024579208344221115, 0.013813343830406666, + -0.008195443078875542, -0.0037310270126909018, -0.03568684682250023, -0.007419332396239042, + 0.03278177231550217, 0.04340523108839989, 0.005984595511108637, 0.01184102613478899, + -0.01980862021446228, -0.017800701782107353, -0.013592615723609924, 0.0008023665868677199, + -0.04531346634030342, -0.011385328136384487, -0.009242123924195766, -0.0017106473678722978, + -0.006369090639054775, 0.0008757945033721626, -0.04707929491996765, -0.006942273583263159, + 0.016875064000487328, -0.03896217420697212, -0.0001814558927435428, 0.004247247241437435, + 0.0005424763658083975, 0.010295925661921501, -0.00026612047804519534, 0.02010767161846161, + 0.0332944318652153, 0.004279288463294506, 0.00255796080455184, 0.0029887377750128508, + -0.0057425061240792274, 0.007903511635959148, 0.026957381516695023, 0.006052238401025534, + -0.02047792635858059, 0.011734222061932087, 0.021004827693104744, -0.022827619686722755, + 0.023397240787744522, -0.01800006814301014, 0.011591816321015358, -0.031329233199357986, + -0.0023550328332930803, -4.007939060102217e-5, 0.05009829252958298, 0.001084952731616795, + -0.006728664971888065, 0.0031792051158845425, 0.01982286013662815, -0.01946684718132019, + 0.006201764103025198, 0.006714424584060907, -0.06345593929290771, -0.024493765085935593, + 0.006575578823685646, -0.030560243874788284, -0.05089576542377472, 0.010609217919409275, + 0.0145182516425848, 0.02118995413184166, -0.0007405091891996562, 0.011990551836788654, + 0.01834184303879738, 0.01731652207672596, 0.018811780959367752, -0.03947483375668526, + 0.009327567182481289, -0.01872633770108223, 0.01869785599410534, 0.012310964986681938, + 0.03206974267959595, -0.015422527678310871, -0.013813343830406666, -0.005550258792936802, + 0.00974054355174303, -0.010011114180088043, 0.006436733528971672, 0.01631968282163143, + -0.022172553464770317, -0.01905387081205845, -0.031272273510694504, -0.0008869199082255363, + -0.02657288685441017, 0.03933243080973625, 0.013058594428002834, -0.008323607966303825, + -0.036569759249687195, 0.011983431875705719, 0.007561737671494484, 0.024821298196911812, + -0.028851376846432686, 0.027996942400932312, -0.03827862814068794, -0.020435204729437828, + 0.008466013707220554, 0.02549060434103012, 0.00015753621119074523, 0.003624222707003355, + -0.01693202741444111, 0.0023318917956203222, -0.035943176597356796, -0.004596141166985035, + -0.022129831835627556, -0.021403562277555466, 0.009256364777684212, 0.01905387081205845, + -0.011577576398849487, 0.008245284669101238, -0.007383730728179216, 0.012417769059538841, + -0.0070704384706914425, 0.014710498973727226, 0.031955819576978683, 0.0339210145175457, + -0.01798582822084427, -0.005212045274674892, 0.01985134184360504, -0.004759907256811857, + -0.025946302339434624, 0.00407636072486639, 0.010466812178492546, -4.166476719547063e-5, + -0.00194561667740345, 0.026373518630862236, 0.025889338925480843, -0.029449479654431343, + 0.008458892814815044, 0.03255392238497734, 0.0029780573677271605, 0.016490569338202477, + -0.0027395279612392187, -0.015963668003678322, 0.012481851503252983, -0.006767826620489359, + -0.012973151169717312, -0.034091901034116745, 0.008466013707220554, 0.005368691403418779, + 0.04833246394991875, -0.011114757508039474, -0.022443123161792755, -0.026088707149028778, + -0.00165902532171458, 0.014546733349561691, 0.0035423394292593002, -0.010908269323408604, + -0.04451599344611168, 0.010794345289468765, -0.0388767309486866, 0.017045950517058372, + 0.03397797793149948, 0.031215310096740723, -0.006895991507917643, 0.03429127112030983, + -0.002625603461638093, -0.0008935952209867537, -0.017117153853178024, -0.0021467646583914757, + 0.013920147903263569, -0.0022482285276055336, -0.01341460831463337, 0.039104580879211426, + -0.016020631417632103, 0.024977942928671837, -0.02190198190510273, -0.019609251990914345, + -0.028523843735456467, -0.014418567530810833, 0.04500017315149307, -0.028751691803336143, + 0.0018121113535016775, -0.018826020881533623, 0.011698620393872261, -0.005521777551621199, + -0.009014274924993515, 0.009263484738767147, 0.02264249138534069, 0.01982286013662815, + 0.007191483397036791, -0.02614567056298256, 0.038734324276447296, 0.01253881398588419, + -0.0177294984459877, -0.00318098533898592, -0.026715291664004326, -0.013841825537383556, + -0.017786459997296333, 0.04975651949644089, -0.03181341290473938, -0.03668368607759476, + -0.00741221196949482, -0.034832410514354706, -0.0155649334192276, -0.00990431010723114, + 0.0002983842568937689, -0.012588655576109886, 0.01839880459010601, -0.016106074675917625, + -0.00018635108426678926, -0.014881386421620846, 0.018470007926225662, -0.016163036227226257, + -0.010096557438373566, -0.007931992411613464, -0.017231078818440437, -0.03141467645764351, + 0.007654301356524229, 0.037965334951877594, 0.02015039324760437, 0.022784898057579994, + 0.005083880387246609, 0.019552290439605713, -0.03318050503730774, 0.033465318381786346, + ], + index: 58, + }, + { + title: "Alexis Arg\u00fcello", + text: 'Alexis Arg\u00fcello (April 19, 1952 \u2013 July 1, 2009), also known by the ring name El Flaco Explosivo (lit. "The Explosive Thin Man"), was a Nicaraguan professional boxer and politician. As a boxer he was a three-time world champion, and has regularly been cited as one of the greatest fighters of his era, having never lost any of his world titles in the ring, instead relinquishing them each time in pursuit of titles in higher weight classes. His trainer was Daniel Lozano.', + vector: [ + 0.05211864411830902, 0.020026104524731636, -0.011991768144071102, -0.012148572131991386, + -0.023879000917077065, 0.01432142686098814, 0.007007643114775419, -0.012297909706830978, + -0.023834198713302612, -0.004621983040124178, -0.07520616054534912, 0.03527342155575752, + -0.02779163233935833, -0.012596583925187588, 0.018562600016593933, 0.03760308027267456, + -0.047847602516412735, 0.00825087446719408, -0.05531445890665054, -0.07867077738046646, + 0.00013743678573518991, 0.00100242521148175, -0.005189463961869478, 0.008400211110711098, + 0.04512966796755791, 0.02590998448431492, -0.005827879998832941, 0.007877531461417675, + -0.019413821399211884, 0.017576975747942924, -0.02556650899350643, 0.019249550998210907, + 0.026223592460155487, 0.03864843770861626, 0.0020701854955404997, -0.03145039081573486, + 0.0540301576256752, 0.025581443682312965, 0.00835540983825922, 0.005663609132170677, + 0.02422247640788555, -0.05501578375697136, -0.041694916784763336, -0.04435311630368233, + -0.012081370688974857, -0.020563717931509018, -0.023072579875588417, 0.008698885329067707, + -0.007653526030480862, -0.02856818586587906, 0.033511243760585785, -0.020578650757670403, + -0.016158273443579674, -0.020294910296797752, 0.0528951957821846, -0.027059881016612053, + 0.0013785680057480931, -0.0034515534061938524, 0.0038024955429136753, 0.04832548275589943, + 0.048773493617773056, -0.02523796819150448, 0.019727429375052452, -0.009191697463393211, + -0.019921567291021347, 0.009072228334844112, 0.013828614726662636, -0.0037296938244253397, + -0.06839638948440552, 0.012387511320412159, -0.002960607875138521, 0.0023203250020742416, + -0.0315101258456707, -0.041127435863018036, -0.004371843300759792, -0.0030744774267077446, + 0.009049827232956886, -0.00561134098097682, -0.038887377828359604, 0.024371812120079994, + 0.012066436931490898, -0.046891845762729645, 0.0337800495326519, 0.055463794618844986, + -0.01288779079914093, -0.04874362424015999, 0.007623658515512943, -0.07472828030586243, + -0.02138507179915905, 0.02637293003499508, 0.008669017814099789, -0.02882205881178379, + -0.056061144918203354, 0.031420525163412094, 0.045756883919239044, 0.0003367084718775004, + 0.038499101996421814, 0.0033059497363865376, 0.011342152021825314, -0.03826016187667847, + -0.019846899434924126, 0.030643969774246216, -0.027209216728806496, 0.020130639895796776, + -0.009572507813572884, 0.013081928715109825, -0.041336506605148315, 0.006544698029756546, + 0.015269717201590538, 0.07843183726072311, 0.03130105510354042, -0.023206982761621475, + -0.0016352410893887281, 0.03602010756731033, -0.007877531461417675, 0.027492957189679146, + -0.017830848693847656, 0.04832548275589943, 0.01455289963632822, 0.00853461492806673, + 0.019622894003987312, -0.03903671354055405, 0.0033638179302215576, 0.04662303999066353, + 0.05313413590192795, -0.041903987526893616, 0.011782696470618248, 0.016292676329612732, + -0.01438862830400467, 0.012895257212221622, 0.0003502421313896775, 0.012529381550848484, + 0.06905347108840942, 0.03189840167760849, -0.03787188604474068, 0.02740335650742054, + -0.06439415365457535, -0.012118704617023468, -0.026895610615611076, 0.0360499732196331, + 0.020294910296797752, 0.017621776089072227, -0.012708586640655994, 0.0021373871713876724, + -0.015665460377931595, -0.05161089822649956, 0.04139624163508415, -0.012006701901555061, + -0.010513330809772015, -0.001219897298142314, -0.030076488852500916, -0.011566157452762127, + 0.006369227077811956, -0.013208865188062191, 0.021519474685192108, 0.0026918009389191866, + -0.064155213534832, 0.011924566701054573, 0.0177412461489439, 0.009923449717462063, + -0.01455289963632822, 0.05193943902850151, -0.011536289937794209, 0.007810329552739859, + -0.001084560644812882, -0.01709909737110138, 0.05423923209309578, 0.012200839817523956, + 0.008893023245036602, 0.0511927530169487, 0.018637267872691154, -0.023416055366396904, + -0.0008689551614224911, 0.057584382593631744, 0.0006407494656741619, 0.006813504733145237, + 0.028702588751912117, -0.012872857041656971, -0.005917482078075409, -0.005357468035072088, + -0.004065702203661203, -0.024162741377949715, -0.013694210909307003, 0.007929799146950245, + -0.0060630859807133675, 0.025267835706472397, 0.011200281791388988, -0.060272447764873505, + 0.02252003364264965, -0.05152129754424095, 0.009632241912186146, -0.007944732904434204, + -0.05229784920811653, -0.009512772783637047, 0.006238556932657957, 0.04987858608365059, + 0.0286727212369442, -0.0371849350631237, -0.042083192616701126, 0.023057647049427032, + 0.04850468784570694, -0.03957432880997658, -0.020683186128735542, 0.01026692520827055, + -0.024580884724855423, -0.011289884336292744, 0.020011169835925102, 0.041336506605148315, + -0.048415083438158035, 0.010826938785612583, 0.016232941299676895, 0.04223252832889557, + -0.006048152223229408, -0.017621776089072227, -0.005189463961869478, -0.002452861750498414, + 0.0075751240365207195, -0.022012287750840187, -0.0018639134941622615, -0.019040478393435478, + 0.0224752314388752, 0.03566169738769531, -0.047100916504859924, -0.00475265271961689, + 0.02322191745042801, -0.017532173544168472, 0.004536114167422056, -0.015545991249382496, + 0.017502306029200554, -0.025163300335407257, -0.007646059151738882, -0.01606867089867592, + 0.03009142354130745, 0.04073915630578995, 0.05364188179373741, 0.03817056119441986, + 0.009923449717462063, -0.053373076021671295, -0.006496163550764322, 0.03375018388032913, + -0.027104681357741356, 0.04563741385936737, -0.02832924574613571, -0.01766657829284668, + 0.027343621477484703, 3.473837205092423e-5, -0.024625686928629875, -0.017412705346941948, + -0.04393497109413147, 0.042680539190769196, -0.0043494426645338535, -0.024909427389502525, + 0.05868947505950928, 0.015710262581706047, -0.029971953481435776, -0.028866859152913094, + 0.0455179437994957, -0.04984872043132782, 0.025656111538410187, 0.004009700845927, + -0.03437739610671997, -0.04369603097438812, 0.06839638948440552, 0.06391627341508865, + -0.06397601217031479, -0.02446141466498375, 0.035811033099889755, 0.01639721170067787, + -0.007212981581687927, -0.07944732904434204, -0.0027104681357741356, 0.00647749612107873, + 0.04199358820915222, 0.0068844398483633995, 0.005361201707273722, 0.018786605447530746, + -0.020160507410764694, 0.04411417618393898, 0.00727644981816411, 0.027537759393453598, + 0.010222123935818672, -0.02647746540606022, 0.05173036828637123, -0.07251808792352676, + 0.04429338127374649, 0.007354851812124252, -0.03948472812771797, -0.011080811731517315, + 0.022325895726680756, 0.0002353225863771513, -0.02729881927371025, -0.002740335650742054, + -0.018741805106401443, 0.015575858764350414, 0.0154713224619627, 0.016471881419420242, + -0.02616385743021965, -2.660066820681095e-5, 0.03500461205840111, -0.00036144242039881647, + 0.02938953973352909, 0.06278131157159805, -0.046324364840984344, -0.039454858750104904, + 0.014493164606392384, -0.004801187198609114, 0.0135075394064188, 0.07526589184999466, + -0.025163300335407257, 0.008930358104407787, -0.07669953256845474, 0.030285561457276344, + 0.010505864396691322, -0.004446511622518301, 0.019249550998210907, 0.015165181830525398, + 0.050685007125139236, -0.01639721170067787, -0.0023819266352802515, -0.0007527522393502295, + 0.013559808023273945, 0.03009142354130745, 0.03148026019334793, -0.005898815114051104, + -0.016800422221422195, -0.03739400580525398, 0.01455289963632822, 0.008795954287052155, + -0.011782696470618248, 0.006107886787503958, -0.045368608087301254, -0.010580533184111118, + -0.04943057522177696, -0.007201781030744314, -0.029658345505595207, 0.005237998440861702, + -0.060989268124103546, 0.03742387518286705, 0.012805655598640442, -0.0036064907908439636, + 0.012133638374507427, 0.045159537345170975, 0.03270482271909714, 0.032167207449674606, + -0.04085862636566162, -0.010961342602968216, -0.017472438514232635, -0.0038752974942326546, + 0.03566169738769531, 0.021519474685192108, 0.0007289516506716609, 0.014187023043632507, + 0.03091277740895748, 0.035064347088336945, -0.0010154922492802143, 0.031629595905542374, + 0.03500461205840111, 0.003705426584929228, 0.03852896764874458, -0.0033078165724873543, + 0.02461075223982334, 0.07562430202960968, -0.011200281791388988, 0.05543392896652222, + 0.034676071256399155, 0.02187788300216198, 0.03342163935303688, -0.009146897122263908, + -0.031629595905542374, -0.006003350950777531, -0.012200839817523956, 0.010625333525240421, + -0.03631877899169922, -0.015060645528137684, 0.0239387359470129, -0.013537406921386719, + 0.0337800495326519, -0.03357097879052162, -0.028598053380846977, -0.008497280068695545, + -0.03700572997331619, 0.04450245201587677, -0.0094157038256526, -0.001339367008768022, + -0.0037763617001473904, -0.026746273040771484, -0.023923801258206367, -0.044203776866197586, + 0.03363071382045746, -0.042650673538446426, 0.030046623200178146, 0.018189257010817528, + 0.009281300008296967, -0.0018107121577486396, -0.029285002499818802, -0.028986329212784767, + 0.014799305237829685, 0.019846899434924126, 0.03357097879052162, -0.03443713113665581, + -0.022968044504523277, -0.015269717201590538, -0.04262080416083336, -0.019817031919956207, + 0.0275825597345829, 0.0039648995734751225, 0.00430090818554163, 0.018144456669688225, + -0.0074332538060843945, -0.04719052091240883, 0.01435876078903675, 0.07640085369348526, + -0.06493176519870758, -0.04017167538404465, -0.0021205865778028965, -0.06827691942453384, + 0.007989534176886082, -0.011319750919938087, 0.03721480444073677, -0.01851779967546463, + -0.009161830879747868, 0.034825410693883896, 0.026567067950963974, -0.03091277740895748, + 0.04542834311723709, 0.008915424346923828, 0.04847481846809387, 0.029464207589626312, + 0.045547813177108765, -0.05408989265561104, -0.032585352659225464, 0.0005189463845454156, + 0.003393685445189476, 0.03055436909198761, -0.03413845971226692, -0.10053373128175735, + 0.005607607774436474, 0.01848793216049671, -7.262682629516348e-5, -0.006014551036059856, + -0.003602757351472974, 0.01777111366391182, -0.0077057937160134315, -0.03437739610671997, + -0.016277743503451347, -0.007515389006584883, -0.014702236279845238, 0.045965954661369324, + -0.007582590915262699, -0.020399445667862892, 0.016979627311229706, -0.020279977470636368, + 0.020384512841701508, -0.019309286028146744, 0.015590792521834373, -0.009355968795716763, + -0.040231410413980484, -0.004248640034347773, -0.016277743503451347, -0.006283358205109835, + 0.01738283783197403, 0.03646811842918396, 0.023983536288142204, -0.031032247468829155, + -0.00916929729282856, 0.034676071256399155, -0.005122262053191662, -0.018756737932562828, + -0.015068111941218376, -0.0026171323843300343, 0.025297703221440315, -0.0005922148702666163, + 0.044801127165555954, -0.08589869737625122, 0.03213734179735184, -0.003335817251354456, + 0.01140188705176115, -0.014343827031552792, 0.017218565568327904, -0.013798747211694717, + 0.028762323781847954, -0.026865743100643158, 0.04999805614352226, -0.020683186128735542, + 0.07658006250858307, -0.03342163935303688, -0.018219124525785446, -0.029942085966467857, + 0.02290830947458744, -0.004838521592319012, 0.06397601217031479, 0.014724637381732464, + -0.03073357231914997, 0.06379680335521698, -0.02789616771042347, -0.03171919658780098, + -0.025163300335407257, 0.019428756088018417, 0.011327218264341354, 0.01002051867544651, + 0.06385654211044312, 0.011760295368731022, 0.014791838824748993, 0.054298967123031616, + 0.0477878674864769, 0.0028318045660853386, 0.02585024945437908, 0.0360499732196331, + 0.010819472372531891, -0.055493663996458054, 0.0315101258456707, 0.030853042379021645, + -0.005630008410662413, -0.020160507410764694, 0.030001820996403694, -0.0247451551258564, + -0.010057852603495121, -0.02414780668914318, 0.06761983036994934, 0.028598053380846977, + -0.0005394802428781986, -0.005249198526144028, 0.0019731163047254086, 0.014702236279845238, + 0.031808800995349884, 0.006645500659942627, -0.02991221845149994, -0.00017838782514445484, + -0.0135075394064188, 0.001358034205622971, 0.004241173155605793, 0.005264132283627987, + -0.026133989915251732, 0.0038416965398937464, -0.03861857205629349, 0.02647746540606022, + 0.016188140958547592, 0.016277743503451347, -0.007660992443561554, -0.003908898215740919, + -0.016949759796261787, 0.029792748391628265, 0.026417730376124382, 0.004689184483140707, + -0.047996941953897476, 0.011946966871619225, 0.025924919173121452, -0.0456075482070446, + -0.002413660753518343, 0.03533315658569336, -0.018174324184656143, 0.0066156331449747086, + 0.036945994943380356, 0.023356320336461067, -0.013821147382259369, -0.004931857343763113, + 0.00343848648481071, -0.00911702960729599, -0.004603315610438585, 0.030853042379021645, + 0.022923242300748825, -0.08536107838153839, 0.006828438490629196, 0.01862233504652977, + -0.02719428390264511, -0.003845429979264736, 0.04641396552324295, 0.005626274738460779, + -0.031420525163412094, 0.004513713531196117, 0.011932033114135265, 0.01341793779283762, + 0.0455179437994957, -0.0069852424785494804, 0.016023870557546616, 0.019802097231149673, + 0.02846364863216877, -0.06911320239305496, 0.03843936696648598, -0.0013431004481390119, + 0.03440726548433304, -0.02208695560693741, 0.027522824704647064, 0.04468165710568428, + -0.003761427942663431, -0.007855131290853024, 0.004364376422017813, 0.011760295368731022, + -0.026567067950963974, -0.010289325378835201, -0.01288779079914093, -0.05035646632313728, + -0.01008772011846304, 0.013768879696726799, -0.042680539190769196, 0.025118498131632805, + 0.03148026019334793, -0.023923801258206367, 0.02552170865237713, -0.001074293628334999, + 0.01989169977605343, 0.013813680969178677, 0.021997353062033653, -0.004831054713577032, + -0.0035878235939890146, -0.0239387359470129, -0.010438662953674793, -0.01261898409575224, + -0.02205708809196949, -0.04181438311934471, 0.013350735418498516, -0.04061968997120857, + -0.01663615182042122, -0.016830289736390114, 0.021922685205936432, -0.014381161890923977, + -0.0012964325724169612, -0.020011169835925102, 0.020384512841701508, 0.018502864986658096, + 0.022490166127681732, -0.03566169738769531, -0.0048347883857786655, -0.02050398290157318, + 0.013268600217998028, -0.008579416200518608, 0.029180467128753662, 0.01523984968662262, + -0.02148960717022419, 0.061168473213911057, -0.04817614331841469, -0.014642501249909401, + -0.014007818885147572, 0.0005530139314942062, -0.030569301918148994, -0.010617867112159729, + 0.05609101057052612, 0.032167207449674606, 0.009796513244509697, -0.0365278534591198, + -0.005693476647138596, 0.019145015627145767, -0.015799863263964653, -0.0686950609087944, + -0.010894140228629112, -0.028583118692040443, -0.03443713113665581, 0.007847663946449757, + 0.004442778415977955, 0.017427638173103333, 0.0016361745074391365, -0.01699456013739109, + 0.0012357643572613597, -0.00949037168174982, 0.0270150788128376, -0.021758414804935455, + 0.0456075482070446, 0.009923449717462063, 0.0085868826135993, -0.01290272455662489, + -0.07186100631952286, 0.0048347883857786655, -0.005532938987016678, -0.020414380356669426, + -0.01663615182042122, 0.033690448850393295, -0.026298262178897858, -0.012081370688974857, + 0.0048347883857786655, -0.03476567566394806, -0.03395925462245941, -0.016680952161550522, + -0.013126729987561703, 0.012148572131991386, 0.012342710047960281, -0.008482346311211586, + -0.008459946140646935, 0.04118717089295387, -0.045010197907686234, -0.027836432680487633, + 0.01671081967651844, 0.014291559346020222, -0.03721480444073677, -0.022460298612713814, + -0.01805485412478447, 0.0018657802138477564, 0.004778787028044462, 0.022878441959619522, + -0.001563372672535479, 0.004005967639386654, 0.03261522203683853, -0.023879000917077065, + -0.006656700745224953, -0.0007345518097281456, 0.003662492148578167, 0.012409912422299385, + -0.0010098920902237296, -0.019025545567274094, 0.0012133638374507427, -0.0033078165724873543, + 0.014231824316084385, 0.03610970824956894, 0.025372371077537537, -0.06791850924491882, + 0.004241173155605793, -0.017800981178879738, -0.005742011126130819, -0.02177334763109684, + -0.01735297031700611, -0.01730816811323166, 0.00040951030678115785, -0.02422247640788555, + 0.03306323289871216, 0.026582002639770508, -0.010968809016048908, -0.025969719514250755, + -0.028866859152913094, 0.01854766719043255, 0.0003073077241424471, -0.0239387359470129, + -0.02138507179915905, 0.04318828508257866, -0.004509980324655771, -0.01929435133934021, + -2.1408872271422297e-5, -0.02205708809196949, 0.005868947599083185, 0.04130663722753525, + -0.008990093134343624, 0.0056150746531784534, -0.0008381544030271471, 0.004297174513339996, + 0.019339153543114662, -0.007407119497656822, 0.042083192616701126, -0.0427701435983181, + 0.014806772582232952, -0.010505864396691322, 0.01025199145078659, -0.013440337963402271, + -0.010737337172031403, 0.009184231050312519, -0.02216162346303463, -0.0027702029328793287, + -0.02517823316156864, 0.009923449717462063, 0.008698885329067707, 0.04474139213562012, + -0.0405002199113369, 0.005622541531920433, 0.033690448850393295, 0.005764411762356758, + 0.004924390465021133, -0.03422806039452553, -0.01007278636097908, 0.005980950314551592, + 0.03512408211827278, 0.01283552311360836, -0.04996819049119949, -0.0016240408876910806, + 0.01084933988749981, 0.02283364161849022, -0.004580915439873934, 0.010475996881723404, + 0.007758061867207289, 0.01347020547837019, -0.0044502452947199345, 0.04082876071333885, + -0.023595260456204414, 0.04987858608365059, 0.0013010994298383594, -0.03148026019334793, + 0.00670150201767683, 0.007653526030480862, -0.011439220979809761, -0.010909073986113071, + -0.027836432680487633, 0.011745361611247063, -0.0077057937160134315, -0.01513531431555748, + -0.051849838346242905, 0.016845224425196648, -0.023998470976948738, 0.0029344737995415926, + -0.005469470750540495, -0.0019152481108903885, 0.040410615503787994, 0.011058411560952663, + 0.014784371480345726, -0.004905723500996828, 0.0016921758651733398, 0.025641178712248802, + 1.8127539078705013e-5, -0.02489449270069599, -0.03691612929105759, -0.013641943223774433, + 0.016979627311229706, -0.023953668773174286, 0.02213175594806671, -0.020668253302574158, + -0.008982625789940357, -0.010752269998192787, -0.01621800847351551, 0.019712496548891068, + 0.0012805655132979155, -0.027268951758742332, 0.004599582403898239, 0.024760089814662933, + -0.00772819435223937, -0.012424846179783344, 0.014642501249909401, -0.010446129366755486, + 0.032376281917095184, 0.01585959829390049, 0.01745750568807125, 0.030031688511371613, + 0.033899519592523575, 0.012006701901555061, -0.025252901017665863, -0.0029102065600454807, + -0.006555898115038872, 0.009199164807796478, 0.005809212569147348, -0.001922714989632368, + 0.008377810940146446, -0.005402269307523966, 0.04259093850851059, 0.005107328295707703, + 0.0009688243735581636, -0.013029661029577255, -0.03891724720597267, -0.012783254496753216, + 0.005432136822491884, 0.014351294375956059, 0.02358032576739788, -0.022355761379003525, + 0.020369578152894974, -0.019055413082242012, 0.024416614323854446, 0.06439415365457535, + 0.0024211276322603226, 0.014769437722861767, -0.024117939174175262, -0.017427638173103333, + -0.023983536288142204, -0.011439220979809761, -0.02598465420305729, 0.021862950176000595, + 0.022400563582777977, -0.058898549526929855, -0.02425234392285347, 0.02903112955391407, + 0.005099861416965723, -0.020862391218543053, -0.007235381752252579, -0.021131198853254318, + 0.01432142686098814, 0.026328129693865776, -0.0010546932462602854, 0.01730816811323166, + -0.008781020529568195, 0.01989169977605343, 0.029718080535531044, -0.025581443682312965, + 0.017412705346941948, -0.04029114544391632, 0.023744598031044006, -0.01593426801264286, + -0.03802122175693512, -0.029434340074658394, -0.02035464532673359, 0.030210893601179123, + 0.006234823260456324, -0.0393652580678463, -8.87272326508537e-5, 0.0024080604780465364, + 0.008452478796243668, 0.0018480464350432158, 0.013656876981258392, 0.027836432680487633, + 0.0008050202741287649, -0.023625127971172333, -0.018428197130560875, 0.006428961642086506, + 0.03843936696648598, 0.011640826240181923, 0.01730816811323166, -0.02443154715001583, + -0.03291389346122742, -0.02580544911324978, 0.014306493103504181, 0.006343092769384384, + 0.005992150865495205, -0.001960049383342266, 0.005454536993056536, 0.029822615906596184, + -0.03566169738769531, 0.0023016578052192926, 0.030882909893989563, -0.021638944745063782, + 0.009064760990440845, 0.0224752314388752, 0.03395925462245941, 0.001768711139447987, + -3.3717515179887414e-5, 0.015560925006866455, -0.02241549640893936, 0.021862950176000595, + -0.009542640298604965, 0.0009268232970498502, 0.012499514035880566, -0.011155480518937111, + 0.03282429277896881, -0.003277949057519436, 0.015015844255685806, 0.031241318210959435, + -0.001004291931167245, -0.0011480288812890649, 0.008459946140646935, 0.02074292115867138, + 0.026955343782901764, -0.026133989915251732, -0.02156427502632141, -0.005462003871798515, + -0.013477671891450882, -0.003296616254374385, -0.01568039506673813, 0.004498779773712158, + -0.016949759796261787, 0.007015109993517399, 0.017248433083295822, -0.008116470649838448, + 0.0015708395512774587, 0.009057294577360153, 0.011036010459065437, 0.004431578330695629, + 0.053402941673994064, 0.01432142686098814, -0.015426521189510822, -0.015307052060961723, + 0.0021000527776777744, 0.048982564359903336, -0.0060257515870034695, 0.020832523703575134, + 0.011693093925714493, -0.014015286229550838, -0.02931487001478672, 0.021370137110352516, + 0.029374605044722557, 0.004756386391818523, 0.005465737544000149, -0.004987858701497316, + -0.003397418884560466, 0.01617320626974106, 0.003257415257394314, -0.007855131290853024, + 0.01438862830400467, -0.03996260464191437, 0.006264690775424242, -0.038857512176036835, + -0.011484022252261639, 0.018189257010817528, 0.02541717328131199, 0.004028367809951305, + -0.02378939837217331, -0.03279442340135574, 0.046712640672922134, -0.03148026019334793, + -0.03386965021491051, 0.008191139437258244, -0.020668253302574158, 0.011834964156150818, + -0.00756019027903676, 0.03855883702635765, 0.00515212956815958, 0.03763294592499733, + -0.03682652488350868, -0.026208659633994102, 0.023774463683366776, 0.01545638870447874, + -0.02988235093653202, -0.010647734627127647, 0.00835540983825922, -0.040410615503787994, + -0.006735102739185095, -0.0058204131200909615, 0.008347943425178528, 0.03864843770861626, + -0.04748919606208801, 0.03876790776848793, -0.03688625991344452, 0.013089396059513092, + 0.022564833983778954, -0.029733015224337578, 0.035422757267951965, -0.006354293320327997, + -0.05364188179373741, -0.017517240718007088, 0.009184231050312519, -0.04566728323698044, + 0.007922332733869553, 0.025551576167345047, -0.021325336769223213, 0.014829172752797604, + -0.003029676154255867, 0.028612986207008362, 0.01929435133934021, 0.004215039312839508, + -0.03476567566394806, 0.005428403150290251, 0.0014793705195188522, 0.04396484047174454, + -0.02906099706888199, 0.013410470448434353, -0.010461063124239445, -0.022012287750840187, + 0.03969379886984825, 0.008855689316987991, -0.0154713224619627, 0.05331334099173546, + 0.008452478796243668, -0.02722415141761303, -0.006343092769384384, 0.0483553484082222, + -2.528813638491556e-5, 0.001624974189326167, 0.024088071659207344, -0.006850839126855135, + 0.01978716440498829, -0.01037146057933569, 0.00028630721499212086, -0.01936902105808258, + -0.001267498591914773, -0.006723902653902769, -0.030972512438893318, 0.0029008728452026844, + 0.00350008811801672, 0.0264475978910923, -0.022534966468811035, -0.011730428785085678, + 0.025342503562569618, 0.003229414578527212, -0.014508098363876343, 0.0021971219684928656, + -0.006779904011636972, -0.022296028211712837, -0.0478774718940258, -0.011991768144071102, + -0.025790514424443245, 0.0270150788128376, -0.016845224425196648, -0.003920098766684532, + 0.00629455829039216, -0.01820419169962406, -0.019637826830148697, -0.015799863263964653, + -0.014717170037329197, 0.004879589192569256, -0.025730781257152557, 0.007944732904434204, + 0.016830289736390114, -0.025372371077537537, -0.0041702380403876305, -0.01699456013739109, + 0.003296616254374385, 0.022594701498746872, 0.011028544045984745, 0.0003110411635134369, + -0.029971953481435776, -0.0216688122600317, 0.037543345242738724, -0.030419964343309402, + -0.0011788296978920698, 0.00041604379657655954, -0.030390096828341484, -0.00772819435223937, + -0.04148584231734276, 0.015874532982707024, -0.010490930639207363, -0.006828438490629196, + 0.044412851333618164, 0.008982625789940357, -0.0069217742420732975, -0.02014557272195816, + -0.025999587029218674, -0.0005777478800155222, 0.0027384688146412373, 0.029538875445723534, + 0.0399327389895916, -0.05417949706315994, -0.010819472372531891, 0.007459387648850679, + -0.01083440613001585, -0.02779163233935833, -0.015545991249382496, 0.005428403150290251, + 0.021967485547065735, 0.006682834587991238, 0.023416055366396904, 0.021444806829094887, + -0.01087174005806446, -0.034825410693883896, -0.0055777402594685555, -0.023072579875588417, + 0.021190933883190155, -0.0023613928351551294, 0.007410853169858456, -0.006903106812387705, + 0.009348501451313496, 0.05868947505950928, 0.01568039506673813, 0.019996237009763718, + 0.03688625991344452, 0.01720363274216652, -0.024879559874534607, 0.008123937994241714, + -0.024670487269759178, -0.007455653976649046, -0.009064760990440845, 0.007758061867207289, + -0.00047647865721955895, -0.0073212506249547005, 0.007291383575648069, 0.0023987269960343838, + 0.015874532982707024, -0.005827879998832941, -0.008019401691854, 0.047668397426605225, + 0.022594701498746872, 0.02800070494413376, -0.008728752844035625, -0.027851367369294167, + -0.015889465808868408, 0.0017715112771838903, 0.00366435875184834, -0.0019171148305758834, + -0.008385277353227139, -0.036199308931827545, -0.011693093925714493, -0.03784201666712761, + 0.01869700290262699, 0.0030315429903566837, -0.013873415999114513, 0.005364934913814068, + -0.010946408845484257, -0.00996825098991394, -0.006832171697169542, 0.002703001257032156, + 0.016680952161550522, 0.001390701625496149, 0.011103212833404541, -0.0140750203281641, + 0.021131198853254318, -0.007112178951501846, 0.02499902807176113, -0.015545991249382496, + -0.007772995624691248, 0.018368462100625038, -0.0050289263017475605, -0.02241549640893936, + 0.0023053912445902824, 0.02275897189974785, 0.014194490388035774, -0.016845224425196648, + 0.0011797629995271564, -0.01720363274216652, -0.005350001156330109, -0.002585398266091943, + -0.02562624402344227, -0.010707469657063484, 0.003765161382034421, 0.015844665467739105, + 3.3425840229028836e-5, 0.0002009050513152033, 0.00826580822467804, -0.007825263775885105, + -0.024386746808886528, 0.04713078588247299, -0.008810888044536114, -0.027239084243774414, + -0.010349060408771038, -0.007459387648850679, -0.020518915727734566, -0.005547872744500637, + 0.006974041927605867, 3.823846054729074e-5, -0.02995702065527439, 0.00532760052010417, + 0.00012600317131727934, 0.0022419230081140995, 0.005656142253428698, 0.007205514702945948, + 0.0076385922729969025, -0.05767398327589035, -0.00854954868555069, 0.0149038415402174, + -0.021161066368222237, 0.004047035239636898, -0.009856248274445534, -0.009863714687526226, + 0.053014665842056274, -0.05229784920811653, 0.01932421885430813, 0.057614248245954514, + -0.00021513874526135623, -0.020548783242702484, -0.027522824704647064, 0.0023221918381750584, + 0.007489255163818598, 0.020369578152894974, -0.0031230119056999683, -0.0005805479595437646, + -0.023416055366396904, 0.03882764279842377, 0.034676071256399155, -0.01745750568807125, + -0.019130080938339233, -0.013813680969178677, -0.00015902066661510617, -0.029613545164465904, + 0.026104122400283813, -0.025790514424443245, -0.010767203755676746, -0.043248020112514496, + 0.013813680969178677, 0.029270069673657417, -0.0065782987512648106, -0.013627009466290474, + 0.05173036828637123, 0.00973677821457386, -0.031062114983797073, -0.03479554131627083, + 0.000432377535616979, 0.0043121082708239555, 0.021638944745063782, -0.02141493931412697, + 0.006507363636046648, -0.015889465808868408, -0.008138871751725674, 0.011812563985586166, + 0.007063644472509623, -0.04205332323908806, -0.02290830947458744, -0.02265443652868271, + 0.008736219257116318, -0.004946791101247072, 0.015949200838804245, -0.02616385743021965, + -0.02378939837217331, 0.016964692622423172, -0.027746831998229027, 0.029255134984850883, + -0.0031248785089701414, 0.003399285487830639, 0.010147455148398876, 0.008706352673470974, + 0.026955343782901764, -0.028836991637945175, 0.011610958725214005, 0.026044389232993126, + -0.01848793216049671, -0.01898074336349964, -0.017039362341165543, 0.04091836139559746, + 0.015045711770653725, -0.010214656591415405, -0.030016755685210228, -0.026253459975123405, + -0.002208322286605835, -0.006481229793280363, -0.020668253302574158, 0.02807537280023098, + -0.002581664826720953, -0.008482346311211586, 0.0034067523665726185, -0.01706922985613346, + -0.009841314516961575, 0.00010383594781160355, 0.0309426449239254, 0.0286727212369442, + -0.002663800260052085, -0.03814069181680679, -0.017084162682294846, 0.010864273644983768, + 0.015904400497674942, 0.015157714486122131, 0.010707469657063484, -0.0500577911734581, + -0.01311926357448101, 0.02634306252002716, -0.013231266289949417, 0.03891724720597267, + 0.0026918009389191866, -0.012738454155623913, -0.00805673561990261, 0.03682652488350868, + 0.0012310976162552834, -0.0025480641052126884, -0.004319575149565935, -0.03174906596541405, + 0.022176558151841164, 0.01380621362477541, -0.019100213423371315, 0.036169443279504776, + 0.03930552303791046, 0.004741452634334564, 0.023729663342237473, -0.00716818030923605, + 0.0008731553098186851, 0.03091277740895748, -0.03497474640607834, -0.05540405958890915, + -0.022101888433098793, 0.017621776089072227, 0.021549342200160027, -0.0015167047968134284, + 0.03590063750743866, -0.013276067562401295, -0.0036736924666911364, -0.0023427256383001804, + 0.0143363606184721, -0.009094628505408764, 0.0022120557259768248, 0.014747037552297115, + -0.011342152021825314, 0.0433376245200634, -0.004890789743512869, -0.04829561337828636, + -0.00996825098991394, -0.0013300334103405476, -0.006496163550764322, 0.006350559648126364, + -0.02665667049586773, -0.009841314516961575, -0.002473395550623536, -0.008176205679774284, + -0.03509421646595001, -0.00920663122087717, 0.033720314502716064, -0.02311738207936287, + 0.025148365646600723, -0.02765722945332527, -0.00018772139446809888, 0.0025499307084828615, + -0.011498956009745598, -0.019025545567274094, 0.008848222903907299, -0.031032247468829155, + 0.014597700908780098, -0.020294910296797752, -0.002374459756538272, -0.011954434216022491, + -0.009647175669670105, 7.927699334686622e-5, 0.002335258759558201, 0.020907191559672356, + 0.010894140228629112, 0.00658576563000679, -0.04053008556365967, -0.018039921298623085, + 0.027358554303646088, -0.014597700908780098, -0.01456783339381218, -0.03897697851061821, + 0.022400563582777977, -0.020100772380828857, -0.03153999149799347, -0.02882205881178379, + -0.024341944605112076, -0.0016352410893887281, 0.010147455148398876, 0.027955902740359306, + -0.0013552340678870678, 0.023445922881364822, -0.016621217131614685, 0.006066819187253714, + -0.0005427469732239842, 0.016277743503451347, -0.02708974853157997, -0.00943810399621725, + 0.02967328019440174, -0.06965082138776779, -0.008542081341147423, 0.01865220256149769, + 0.001838712953031063, 0.014993444085121155, 0.03300349786877632, 0.003957432694733143, + 0.02131040208041668, 0.007855131290853024, -0.005215597804635763, 0.015083045698702335, + -0.05543392896652222, -0.010797071270644665, 0.024984095245599747, 0.0026357995811849833, + -0.009998118504881859, 0.02365499548614025, 0.01898074336349964, -0.03858870267868042, + -0.050117526203393936, -0.0039761001244187355, 0.025581443682312965, -0.021922685205936432, + -0.0041067698039114475, 0.017711378633975983, -0.0009538906742818654, -0.011476554907858372, + 0.03724467009305954, -0.0085868826135993, -0.006962841842323542, -0.010095187462866306, + -0.02934473752975464, -0.009005026891827583, 0.024491282179951668, 0.0224752314388752, + 0.006313225254416466, 0.03455660119652748, -0.01578493043780327, 0.0236101932823658, + -0.00025690646725706756, -0.0043867770582437515, 0.025939851999282837, 0.018099654465913773, + 0.008430078625679016, -0.0066156331449747086, -0.025536641478538513, -0.0188314076513052, + -0.028941527009010315, -0.00601828470826149, -0.0018760472303256392, 0.011879765428602695, + 0.005051326937973499, -0.0365278534591198, 0.009184231050312519, -0.027537759393453598, + 0.03148026019334793, -0.013671810738742352, -0.038319896906614304, -0.007489255163818598, + -3.721760367625393e-5, -0.0011928300373256207, 0.048773493617773056, 0.022325895726680756, + -0.02074292115867138, 0.012663785368204117, -0.00773566123098135, -0.008101536892354488, + 0.009184231050312519, -0.0051297289319336414, -0.010475996881723404, -0.019443688914179802, + -0.004495046567171812, -0.00892289076000452, 0.0024024604354053736, 0.023714730516076088, + -0.040559954941272736, 0.006081752944737673, 0.017039362341165543, 0.006440162193030119, + -0.027672162279486656, 0.005547872744500637, 0.011872299015522003, -0.009975717402994633, + -0.017800981178879738, 0.02941940724849701, -0.02970314770936966, 0.018846340477466583, + 0.0337800495326519, -0.005898815114051104, 0.002475262153893709, -0.017158832401037216, + -0.010998676531016827, -0.0236101932823658, 0.009886114858090878, -0.006727635860443115, + -0.004928124137222767, 0.0016025736695155501, -0.02131040208041668, -0.006089219823479652, + 0.019145015627145767, 0.015919333323836327, -0.0002452394983265549, -0.004457712173461914, + 0.015000910498201847, -0.011431754566729069, -0.02740335650742054, 0.032376281917095184, + 0.016949759796261787, -0.003767027985304594, 0.007302583660930395, 0.014425963163375854, + -0.018010053783655167, -0.014769437722861767, -0.02499902807176113, -0.004173971712589264, + 0.020951993763446808, 0.00973677821457386, 0.014351294375956059, -0.01064026728272438, + 0.001246964675374329, -0.015426521189510822, 0.009818913415074348, -0.007660992443561554, + 0.015336918644607067, 0.01083440613001585, -0.0037128934636712074, -0.028583118692040443, + -0.018786605447530746, 0.0019787163473665714, -0.0022456564474850893, -0.021056529134511948, + 0.044203776866197586, -0.01117041427642107, -0.030509566888213158, -0.010475996881723404, + 0.037931621074676514, -0.02662680298089981, 0.011633358895778656, -0.01408995408564806, + 0.016188140958547592, -0.011043477803468704, -0.0016651084879413247, -0.024655552580952644, + 0.002676867414265871, -0.03736414015293121, 0.030584236606955528, 0.010752269998192787, + 0.013089396059513092, 0.0182639267295599, -0.01083440613001585, -0.005376134999096394, + 0.032167207449674606, -0.0016959093045443296, 0.013477671891450882, 0.024401679635047913, + ], + index: 59, + }, + { + title: "Ogron", + text: "Ogrons are a fictional extraterrestrial race from the British science fiction television series Doctor Who. Ogrons are low-intelligence, ape-like hominids who live in scattered communities on an unnamed planet on the outer fringes of the Milky Way, far from the central spaceways. The dominant lifeform on their home planet is a giant slug-like lizard named the Eater, which preys on and is prayed to by the Ogrons. Ogrons are hired mercenaries.", + vector: [ + -0.020616374909877777, -0.020223993808031082, -0.02184256725013256, -0.03233877196907997, + -0.01177961751818657, 0.003856373718008399, 0.01400311291217804, -0.055652767419815063, + -0.029771940782666206, 0.0008685526554472744, -0.037701316177845, 0.056993402540683746, + -0.02800622582435608, 0.01667621172964573, 0.024327648803591728, 0.015204780735075474, + -0.01393771544098854, 0.03691655397415161, -0.02651844546198845, -0.010136520490050316, + 0.03449686989188194, -0.00145610305480659, -0.01051255315542221, -0.04303116351366043, + 0.055521972477436066, 0.023232251405715942, 0.037308935075998306, 0.00985858403146267, + 0.019897008314728737, -0.012400888837873936, 0.01728113181889057, 0.008195050060749054, + 0.006748143117874861, 0.04659529775381088, -0.022839870303869247, -0.04993053898215294, + -0.002352244919165969, -0.014117557555437088, 0.0265511441975832, -0.017133990302681923, + 0.03318893164396286, -0.015899622812867165, 0.005530125927180052, 0.03268210589885712, + -0.02341209165751934, 0.03197908774018288, 0.007586040999740362, 0.003940163645893335, + 0.036720361560583115, 0.012163824401795864, -0.0012987416703253984, -0.012572554871439934, + -0.004663616884499788, 0.02025669254362583, -0.012245570309460163, 0.02025669254362583, + 0.04705307260155678, 0.01621025800704956, 0.007160961162298918, 0.0034721670672297478, + -0.03104718215763569, -0.01018556859344244, -0.04332545027136803, 0.01659446582198143, + 0.04682418331503868, 0.01798414997756481, 0.019995104521512985, 0.05346197262406349, + 0.002429903717711568, -0.011722395196557045, 0.002499388065189123, 0.010733267292380333, + 0.012449936009943485, -0.02422955445945263, -0.04770704358816147, 0.011959459632635117, + 0.013806921429932117, -0.02941225841641426, -0.010332711040973663, -0.08540835976600647, + 0.008607868105173111, 0.031276069581508636, 0.020142247900366783, 0.04986514151096344, + 0.052513714879751205, 0.010651521384716034, 0.016283830627799034, -0.053298477083444595, + -0.018556371331214905, -0.005252189002931118, -0.0030981784220784903, 0.054704513400793076, + -0.0065315160900354385, 0.027662891894578934, 0.0006110523245297372, -0.036524172872304916, + -0.011624299921095371, -0.016790656372904778, -0.017624465748667717, 0.011673348024487495, + -0.01059429906308651, -0.011125648394227028, -0.028447654098272324, -0.006658222526311874, + 0.038191791623830795, 0.049538157880306244, 0.052382923662662506, 0.0602632500231266, + -0.03864957019686699, 0.050944190472364426, 0.007095564156770706, -0.016406448557972908, + -0.004083219449967146, -0.013847795315086842, 0.007091477047652006, 0.005145919043570757, + -0.01819668896496296, 0.005697705317288637, -0.08671630173921585, -0.016054941341280937, + 0.0031533571891486645, -0.008526121266186237, -0.02200605906546116, 0.010030250996351242, + -0.0014673430705443025, -0.012310967780649662, -0.04989783838391304, 0.05496609956026077, + 0.016807004809379578, 0.03904195502400398, -0.006715444847941399, -0.019864309579133987, + 0.004855720326304436, -0.017771609127521515, 0.06742420792579651, 0.0265511441975832, + 0.025194158777594566, 0.006948421243578196, 0.017640816047787666, 0.04911307618021965, + -0.05064990371465683, 0.02025669254362583, 0.012654301710426807, 0.0377667136490345, + -0.012229221872985363, 0.0378648079931736, -0.0057058800011873245, 0.011043902486562729, + 0.018654467537999153, -0.023281298577785492, 0.0529060959815979, -0.02727051079273224, + 0.008836757391691208, -0.0018341788090765476, 0.005068260245025158, -0.008109216578304768, + -0.005329847801476717, -0.027515748515725136, -0.02030573971569538, 0.02192431315779686, + -0.04924387112259865, 0.03331972286105156, -0.06510262191295624, 0.008231835439801216, + 0.01808224432170391, -0.039009254425764084, 0.08880899846553802, 0.035935599356889725, + -0.01548271719366312, 0.006482468452304602, -0.01881795935332775, -0.000675427436362952, + 0.031390514224767685, 0.027744637802243233, -0.02949400432407856, 0.06912452727556229, + 0.012776920571923256, 0.0059347692877054214, -0.005812149960547686, 0.023755425587296486, + -0.01016104407608509, 0.01365160383284092, 0.010937632992863655, -0.013586207292973995, + 0.02576638199388981, 0.018000498414039612, -0.00024932570522651076, 0.02867654338479042, + 0.01971716806292534, -0.0006641873042099178, 0.0037174054887145758, -0.03094908595085144, + -0.018670815974473953, -0.011722395196557045, 0.01736287958920002, 0.03016432374715805, + -0.0379956029355526, -0.027744637802243233, -0.05656832456588745, -0.02506336383521557, + 0.009171916171908379, -0.03191369026899338, 0.043488942086696625, 0.008227747865021229, + -0.012997634708881378, -0.023820823058485985, 0.0051336572505533695, -0.009458027780056, + -0.007418461609631777, 0.01286684162914753, 0.04898228123784065, -0.005611871834844351, + 0.0007275405805557966, 0.05375625565648079, -0.06703183054924011, -0.01577700302004814, + 0.005476990714669228, 0.0052113160490989685, 0.002407423686236143, 0.011853189207613468, + -0.02653479389846325, -0.02043653279542923, 0.021744471043348312, 0.0010851799743250012, + 0.0022704987786710262, -0.029919084161520004, -0.03466036170721054, 0.02566828578710556, + -0.017003195360302925, -0.020600026473402977, -0.07455247640609741, 0.020027803257107735, + 0.005260363686829805, -0.0113708870485425, -0.08174613118171692, 0.050976887345314026, + 0.038911160081624985, 0.011616125702857971, -0.010169219225645065, -0.01880161091685295, + 0.02723781205713749, 0.018409229815006256, -0.002517780987545848, 0.011746919713914394, + 0.07245977222919464, 0.011166521348059177, -0.013112079352140427, -0.05990356579422951, + 0.008150089532136917, 0.029216067865490913, -0.009907631203532219, -0.0023256775457412004, + -0.022447487339377403, 0.012785094790160656, -0.004169052932411432, -0.03691655397415161, + 0.04842640832066536, 0.007471596356481314, -0.014321922324597836, 0.0020038019865751266, + -0.044077515602111816, 0.0010243812575936317, -0.057091500610113144, 0.013324619270861149, + -0.03181559592485428, -0.07984962314367294, 0.020125897601246834, -0.045810531824827194, + -0.01814764179289341, -0.025553841143846512, -0.023869870230555534, -0.022202249616384506, + -0.04594132676720619, -0.00795389898121357, -0.003222841303795576, -0.0008981856517493725, + 0.021008756011724472, -0.011346363462507725, 0.08096136897802353, 0.009000249207019806, + -0.010708743706345558, -0.059249598532915115, -0.04002290591597557, -0.0013743569143116474, + 0.039761319756507874, 0.07030167430639267, -0.01736287958920002, -0.04394672065973282, + 0.015531765297055244, 0.03103083185851574, -0.014403668232262135, 0.028218764811754227, + 0.021662725135684013, 0.047314662486314774, 0.0053911576978862286, 0.016888750717043877, + 0.061571188271045685, 0.007316278759390116, -0.0041281795129179955, -0.00227254256606102, + 0.0011710133403539658, -0.008317668922245502, -0.02875828929245472, -0.02859479747712612, + 0.001105616451241076, 0.0038911160081624985, -0.07396390289068222, -0.030573053285479546, + 0.02408241108059883, 0.010823188349604607, 0.0044592516496777534, -0.003468079725280404, + -0.006343499757349491, -0.010144694708287716, -0.033679407089948654, -0.017035894095897675, + 0.013545334339141846, 0.01661081425845623, -0.01166517287492752, 0.00018916565750259906, + 0.008591518737375736, -0.035118140280246735, -0.06425245851278305, -0.011943110264837742, + 0.0454508513212204, 0.032829247415065765, -0.03250226378440857, 0.006380285602062941, + -0.03166845068335533, 0.018556371331214905, -0.03345051780343056, -0.00030884711304679513, + 0.02182621695101261, -0.022872567176818848, 0.019030500203371048, 0.013005809858441353, + -0.03622988611459732, 0.005121395457535982, 0.017755260691046715, -0.0011955371592193842, + 0.0033454603981226683, -0.01584240049123764, 0.0603613443672657, -0.016414623707532883, + -0.0376359187066555, 0.003811413422226906, 0.03258400782942772, 0.01614486053586006, + -0.04607212170958519, 0.029837338253855705, 0.0007295842515304685, 0.025390349328517914, + -0.0683397650718689, 0.03423528000712395, -0.011681522242724895, -0.01356985792517662, + 0.0023215902037918568, -0.0017084941500797868, 0.03694925084710121, 0.030017180368304253, + -0.02957575023174286, -0.01434644591063261, 0.0001129118463722989, -0.0018597245216369629, + -0.08069977909326553, -0.024703681468963623, 0.03871496766805649, 0.03619718924164772, + -0.008975725620985031, 0.006184095051139593, 0.006813540123403072, 0.01976621523499489, + 0.013422715477645397, -0.026060666888952255, -0.04326005280017853, 0.02882368676364422, + 0.055391181260347366, 0.017591767013072968, 0.0015286527341231704, 0.015262003056704998, + 0.0031697063241153955, 0.03181559592485428, -0.05055180937051773, 0.05382165312767029, + 0.014534462243318558, 0.016921449452638626, -0.04218100383877754, -0.024327648803591728, + 0.0094662019982934, 0.03878036513924599, 0.0151066854596138, 0.019831612706184387, + 0.05002863332629204, 0.02112320065498352, 0.027466701343655586, 0.018490975722670555, + -0.008992074988782406, 0.014150255359709263, -0.047151170670986176, 0.04600672423839569, + -0.005848935805261135, 0.023068759590387344, 0.025455746799707413, -0.015703432261943817, + 0.044993072748184204, -0.041984815150499344, -0.016022242605686188, 0.02354288659989834, + -0.022807171568274498, 0.01960272341966629, -0.032845597714185715, 0.023248599842190742, + -0.04303116351366043, 0.027417652308940887, 0.0018086332129314542, 0.001165904221124947, + 0.013013984076678753, 0.020796217024326324, -0.04034988954663277, -0.0031983174849301577, + -0.0377994105219841, 0.020567327737808228, 0.006846238858997822, 0.0226600281894207, + -0.04162513092160225, 0.05150006338953972, 0.0014090989716351032, 0.0059388563968241215, + -0.026077017188072205, -0.05807245150208473, 0.04361973702907562, -0.018916055560112, + 0.024720029905438423, 0.032240673899650574, -0.015041288919746876, 0.030017180368304253, + -0.0071037388406693935, 2.2560016077477485e-5, 0.036654967814683914, 0.05130387470126152, + 0.022414790466427803, 0.040415287017822266, -0.06549499928951263, -0.01889970526099205, + -0.049472760409116745, -0.026240509003400803, 0.019962405785918236, 0.013095730915665627, + 0.003206492168828845, 0.031439561396837234, 0.009237312711775303, -0.05833404138684273, + -0.03196273744106293, -0.012482634745538235, 0.03462766110897064, 0.0024748642463237047, + 0.0832502618432045, -0.01169787161052227, 0.019079547375440598, 0.026894478127360344, + 0.023951616138219833, 0.003572306130081415, -0.0003913596156053245, -0.007087389938533306, + 0.005734491162002087, 0.027450351044535637, -0.06202896684408188, 0.0019404488848522305, + -0.0016052896389737725, -0.026649238541722298, -0.028267811983823776, 0.005603697616606951, + -0.04672608897089958, 0.010324536822736263, 0.012572554871439934, 0.007598303258419037, + -0.028087971732020378, 0.05074799805879593, -0.03152130916714668, 0.016733434051275253, + 0.04129814729094505, 0.0046431804075837135, -0.00773318437859416, 0.01250715833157301, + 0.006462031975388527, 0.015392797067761421, 0.03160305693745613, 0.03317258134484291, + -0.00865691527724266, -0.010479854419827461, 0.010569775477051735, -0.048034027218818665, + 0.03420258313417435, 0.01819668896496296, -0.00046212109737098217, -0.02723781205713749, + 0.01283414289355278, -0.030834641307592392, -0.004344807006418705, -0.02115589939057827, + -0.018409229815006256, -0.03907465189695358, -0.01952097751200199, 0.0038420683704316616, + 0.012482634745538235, 0.0027405391447246075, 0.032207977026700974, 0.04917847365140915, + -0.003931988961994648, -0.012482634745538235, 0.023722728714346886, -0.01726478338241577, + 0.001856659073382616, -0.0024503404274582863, 0.03956512734293938, 0.020681772381067276, + 0.012997634708881378, 0.009449852630496025, 0.05820324644446373, -0.008877630345523357, + -0.045810531824827194, -0.006224968004971743, -0.02642035111784935, 0.022169550880789757, + 0.015351924113929272, 0.036033693701028824, 0.009547947905957699, 0.022398440167307854, + 0.00264040008187294, 0.00950707495212555, 0.007128262892365456, -0.009703266434371471, + -0.03564131259918213, -0.004806672688573599, 0.003903377801179886, -0.017117640003561974, + 0.02709066867828369, 0.012245570309460163, 0.0002909651375375688, -0.023150505498051643, + -0.029951782897114754, 0.024638283997774124, -0.03485655039548874, 0.02429495006799698, + 0.04921117052435875, 0.005767189897596836, 0.006486555561423302, -0.01674160733819008, + -0.034333374351263046, -0.001074961619451642, -0.007467509247362614, 0.01958637312054634, + -0.024556538090109825, -0.02486717328429222, 0.011199220083653927, -0.04100386053323746, + -0.02262732945382595, 0.008141915313899517, -0.06314071267843246, 0.008542470633983612, + 0.029265115037560463, 0.023706378415226936, -0.05519498884677887, -0.019798913970589638, + 0.01630835421383381, 0.016807004809379578, -0.047151170670986176, 0.039009254425764084, + -0.002337939338758588, -0.0019097940530627966, 0.01246628537774086, -0.013455413281917572, + -0.014616208150982857, 0.003621353767812252, 0.01363525539636612, -0.0020508060697466135, + 0.009678741917014122, -0.0376359187066555, -0.004851633217185736, 0.016618989408016205, + 0.005554649978876114, 0.022807171568274498, -0.030622102320194244, 0.01827843487262726, + -0.04767434671521187, -0.04738005995750427, 0.011885887943208218, -0.0009395696106366813, + -0.009335407987236977, -0.02936321124434471, -0.008084692992269993, 0.02051827870309353, + -0.016512718051671982, 0.03698195144534111, 0.0024891698267310858, -0.005620046518743038, + -0.010716917924582958, 0.02190796285867691, -0.023575585335493088, -0.02418050542473793, + 0.025897175073623657, -0.005456554237753153, -0.005170443095266819, -0.018916055560112, + -0.03103083185851574, 0.017918752506375313, 0.06104801222681999, -0.006224968004971743, + 0.0014489502646028996, 0.00901659857481718, -0.02483447454869747, 0.022480186074972153, + 0.01477152667939663, -0.0008849019068293273, 0.02795717678964138, 0.010692394338548183, + -0.014853272587060928, -0.03577210754156113, 0.003623397322371602, -0.03343416750431061, + -0.016381924971938133, 0.0018382661510258913, 0.04152703657746315, 0.036033693701028824, + 0.00469222804531455, -0.008566995151340961, 0.013905017636716366, 0.002104962943121791, + -0.0021744470577687025, 0.035739410668611526, 0.025848127901554108, 0.03495464473962784, + 0.012531681917607784, -0.002317502861842513, -0.0011321839410811663, 0.024654634296894073, + -0.02429495006799698, -0.011092950589954853, 0.029771940782666206, 0.023248599842190742, + 0.003010301385074854, 0.04283497482538223, 0.009008423425257206, -0.05826864391565323, + 0.0038461554795503616, -0.009752313606441021, 0.03714544326066971, 0.007884414866566658, + -0.00150208524428308, -0.029167020693421364, 0.014926844276487827, 0.014477239921689034, + -0.02870924212038517, -0.026616541668772697, -0.005693618208169937, -0.04208290949463844, + -0.01213930081576109, -0.035902902483940125, -0.027630193158984184, 0.02200605906546116, + 0.017787959426641464, -0.029346860945224762, 0.010144694708287716, -0.030033528804779053, + -0.002288891701027751, -0.043488942086696625, 0.02127034403383732, -0.00218262174166739, + 0.0021151811815798283, 0.039009254425764084, -0.010790489614009857, -0.02032208815217018, + 0.01674160733819008, -0.05496609956026077, -0.005035561975091696, -0.02025669254362583, + -0.019275737926363945, -0.033581312745809555, -0.01955367438495159, -0.02112320065498352, + -0.021580979228019714, -0.019357483834028244, 0.05718959495425224, -0.03248591348528862, + -0.037276238203048706, -0.007430723402649164, -0.03835528716444969, 0.003989211283624172, + -0.015376447699964046, 0.007013818249106407, -0.015351924113929272, 0.03026241809129715, + 0.002421729266643524, 0.07056326419115067, -0.013896842487156391, 0.012409063056111336, + -0.049374666064977646, -0.02563558705151081, 0.00550151476636529, -0.014199303463101387, + -0.014845097437500954, 0.02859479747712612, 0.011346363462507725, 0.009605170227587223, + -0.02563558705151081, -0.028365908190608025, -0.015016764402389526, 0.017133990302681923, + -0.004863895010203123, 0.03619718924164772, -0.002100875601172447, -0.004778061527758837, + -0.03413718566298485, 0.01507398672401905, 0.0076718744821846485, -0.005636395886540413, + 0.018638119101524353, 0.02032208815217018, 0.028251463547348976, 0.017117640003561974, + 0.03858417645096779, 0.0377340167760849, 0.02254558354616165, -0.0010172284673899412, + 0.014027636498212814, -0.02725416049361229, 0.041069258004426956, -0.011869538575410843, + 0.039695922285318375, 0.009981202892959118, -0.03479115292429924, -0.0379956029355526, + -0.010316361673176289, 0.0187689121812582, 0.004773973952978849, 0.02949400432407856, + -0.0013590294402092695, -0.00864874105900526, 0.012351840734481812, 0.055391181260347366, + -0.0093844560906291, 0.012327317148447037, 0.02032208815217018, -0.038943856954574585, + -0.014608033932745457, -0.012155650183558464, 0.014068509452044964, -0.030687497928738594, + -0.017738910391926765, 0.012637952342629433, 0.021711772307753563, -0.022120503708720207, + -0.0012496940325945616, -0.003652008483186364, -0.009572472423315048, 0.01635740138590336, + 0.018425578251481056, 0.017787959426641464, 0.01803319714963436, -0.007712747436016798, + 0.018556371331214905, 0.024376697838306427, -0.02560288831591606, 0.0076718744821846485, + 0.04237719625234604, 0.019864309579133987, -0.04823021963238716, -0.04296576604247093, + -0.005342109594494104, 0.003220797749236226, 0.016463670879602432, 0.003760322229936719, + 0.008195050060749054, -0.04754355177283287, 0.020828913897275925, 0.027008922770619392, + -0.011550728231668472, 0.02575003169476986, -0.016602639108896255, -0.018441928550601006, + -0.025161460041999817, 0.01286684162914753, -0.012033030390739441, 0.0005098914843983948, + 0.003907465375959873, -0.002961253747344017, 0.049505457282066345, 0.013071206398308277, + 0.015294701792299747, 0.03109622932970524, -0.029232416301965714, 0.022480186074972153, + 0.030573053285479546, 0.017052242532372475, -0.03184829279780388, 0.010471679270267487, + -0.001992562087252736, 0.026060666888952255, -0.016283830627799034, -0.01055342610925436, + 0.029134321957826614, 0.01625930517911911, -0.0024891698267310858, 0.03307448700070381, + 0.004786236211657524, 0.0010688307229429483, -0.03166845068335533, 0.014608033932745457, + -0.03632798045873642, -0.021744471043348312, 0.021368438377976418, 0.05604514852166176, + -0.007442985195666552, 0.025864476338028908, -0.0006892220699228346, 0.024343999102711678, + 0.0025566103868186474, 0.0024626022204756737, 0.004246711730957031, -0.04309656098484993, + -0.012171999551355839, 0.003427206538617611, -0.0053707207553088665, 0.016757957637310028, + 0.03708004578948021, 0.0985531359910965, 0.008804058656096458, -0.0015644165687263012, + -0.029085274785757065, -0.01055342610925436, -0.02037113718688488, 0.02109050191938877, + 0.04404481500387192, -0.013545334339141846, 0.0020600026473402977, 0.020927010104060173, + 0.0527426041662693, -0.03304178640246391, 0.05218673124909401, 0.026698287576436996, + -0.000561493739951402, -0.033712103962898254, 0.05068260431289673, -0.01742827519774437, + 0.0032637142576277256, -0.0044633387587964535, -0.018687166273593903, -0.05843213573098183, + 0.007720922119915485, 0.06284642964601517, 0.03397369384765625, -0.04751085117459297, + -0.003040956100448966, 0.032861944288015366, -0.013504461385309696, -0.04286767169833183, + -0.0020354788284748793, 0.0015603293431922793, -0.04080766811966896, 0.01957002468407154, + 0.02637130208313465, 0.008117390796542168, 0.02790812961757183, 0.006547865457832813, + -0.02506336383521557, -0.016618989408016205, 0.04005560651421547, -0.01971716806292534, + -0.02416415698826313, -0.02413145825266838, -0.016569940373301506, 0.016022242605686188, + -0.0009712462197057903, -0.0012834143126383424, -0.04751085117459297, -0.021531932055950165, + -0.02404971234500408, -0.036687664687633514, -0.006392547395080328, 0.01597319357097149, + -0.020992407575249672, 0.006850325968116522, 0.016602639108896255, 0.004340719897300005, + 0.04172322526574135, -0.008877630345523357, 0.04934196546673775, 0.005636395886540413, + 0.025243205949664116, 0.0038645484019070864, -0.046529900282621384, 0.002883594948798418, + 0.020044151693582535, 0.023232251405715942, -0.010610648430883884, 0.0302133709192276, + -0.0017871748423203826, 0.028856385499238968, -0.01726478338241577, 0.0004585447022691369, + 0.015049463137984276, -0.008526121266186237, 0.00864874105900526, -0.01818034052848816, + 0.06418706476688385, 0.020207643508911133, 0.023722728714346886, -0.006502904929220676, + -0.0015613511204719543, -0.024442093446850777, -0.010610648430883884, 0.021433835849165916, + 0.009122868068516254, 0.008403502404689789, 0.03858417645096779, -0.03194638714194298, + 0.0682743713259697, -0.013496286235749722, -0.0016175516648218036, 0.008787709288299084, + 0.014673430472612381, -0.002948991721495986, 0.035183534026145935, -0.009204614907503128, + -0.036000996828079224, -0.059282295405864716, -0.0018556371796876192, -0.006208618637174368, + -0.02422955445945263, 0.005632308777421713, 0.0009738008375279605, -0.0007219205144792795, + -0.0018668773118406534, -0.018523674458265305, 0.007610565051436424, -0.01055342610925436, + 0.05388705059885979, 0.015899622812867165, 0.003764409339055419, -0.009646044112741947, + 0.02879098802804947, 0.003488516202196479, 0.030622102320194244, 0.04218100383877754, + 0.006940246559679508, 0.002102919388562441, 0.007377588655799627, -0.007806755602359772, + -0.017935100942850113, -0.017003195360302925, 0.03157035633921623, -0.0018862920114770532, + -0.007095564156770706, -0.0004840903857257217, -0.02429495006799698, 0.01968446932733059, + 0.009923980571329594, 0.04211560636758804, -0.050290219485759735, -0.0035253020469099283, + -0.01096215657889843, 0.07455247640609741, -0.003995342180132866, 0.0022664114367216825, + -0.0017841093940660357, -0.01213930081576109, -0.03225702419877052, 0.04133084416389465, + -0.01473882794380188, 0.008534296415746212, -0.024066060781478882, 0.010537076741456985, + 0.0379956029355526, -0.023052409291267395, 0.02957575023174286, 0.02565193735063076, + -0.001505150692537427, 0.010774140246212482, 0.02125399373471737, -0.00906564574688673, + 0.014084858819842339, -0.05735308676958084, -0.028349559754133224, -0.006846238858997822, + -0.012482634745538235, 0.03315623104572296, -0.04411021247506142, 0.010537076741456985, + 0.00136618223041296, -0.013537159189581871, -0.030442260205745697, 0.050224825739860535, + 0.00019567980780266225, -0.030573053285479546, 0.03835528716444969, 0.030000830069184303, + -0.006445682607591152, 0.014035810716450214, -0.01729748211801052, -0.01746097393333912, + 0.002989864908158779, -0.016406448557972908, -0.008235923014581203, 0.020861612632870674, + -0.0007040385971777141, 0.0375378243625164, 0.011632475070655346, -0.043390847742557526, + -0.023085108026862144, -0.00011731847189366817, -0.0015409146435558796, -0.05006133019924164, + 0.002254149643704295, -0.013855969533324242, 0.0046431804075837135, 0.018687166273593903, + 0.008334018290042877, -0.028856385499238968, 0.008951202034950256, 0.07049786299467087, + 0.0030164322815835476, -0.00451238639652729, 0.007892589084804058, -0.0018556371796876192, + -0.015049463137984276, 0.037276238203048706, -0.04963625222444534, 0.0011291184928268194, + -0.0043856799602508545, 0.0008450506720691919, -0.005489252973347902, -0.004291671793907881, + -0.017084941267967224, -0.006711357738822699, -0.009220964275300503, -0.006850325968116522, + -0.032093532383441925, -0.0030368687584996223, 0.023918919265270233, -0.02504701539874077, + 0.024589236825704575, 0.01283414289355278, -0.003192186588421464, -0.008125565946102142, + 0.0006953530246391892, -0.047837838530540466, -0.019161293283104897, -0.01729748211801052, + -0.00031676626531407237, -0.028987178578972816, -0.01016104407608509, 0.02789178118109703, + -0.01164882443845272, -0.01594049669802189, 0.011853189207613468, 0.0048761568032205105, + 0.017591767013072968, -0.022496536374092102, 0.02413145825266838, 0.008158263750374317, + 0.013847795315086842, -0.027760986238718033, 0.02127034403383732, -0.0036663140635937452, + 0.028218764811754227, 0.008918503299355507, 0.006282190326601267, 0.026044318452477455, + 0.004442902281880379, -0.03153765946626663, -0.007729096803814173, -0.008219573646783829, + 0.0032882383093237877, 0.008387153036892414, 0.02424590289592743, 0.03488925099372864, + 0.01809859462082386, 0.002840678207576275, 0.018360180780291557, -0.013496286235749722, + 0.024589236825704575, -0.0021397050004452467, 0.007712747436016798, -0.012049379758536816, + -0.022431138902902603, 0.029935434460639954, 0.008673264645040035, 0.015343748964369297, + -0.013226523995399475, -0.016136687248945236, -0.0038298063445836306, -0.0016849922249093652, + 0.0049497284926474094, -0.011125648394227028, -0.011714220978319645, -0.02252923510968685, + 0.006466119084507227, -0.012588904239237309, 0.0011086818994954228, 0.017657164484262466, + 0.0150985112413764, -0.042606085538864136, 0.017166687175631523, 0.016954148188233376, + 0.041886717081069946, 0.003934032749384642, -0.00368470698595047, 0.014542637392878532, + 0.026845430955290794, 0.001260934048332274, -0.0377667136490345, -0.015850575640797615, + -0.02730320766568184, -0.03691655397415161, 0.020828913897275925, 0.0068666753359138966, + -0.018638119101524353, -0.02493257075548172, 0.01734652929008007, 0.006032864563167095, + 0.033646710216999054, -0.016586290672421455, 0.009850408881902695, -0.013896842487156391, + 0.006024689879268408, 0.0011005073320120573, -0.029265115037560463, -0.01401128713041544, + -0.019292088225483894, 0.041134655475616455, 0.02339574322104454, 0.00150208524428308, + 0.008182788267731667, 0.01052890159189701, 0.03255131095647812, 0.007034254726022482, + 0.0017074723728001118, -0.019422881305217743, 0.023117806762456894, 0.0132755720987916, + 0.007765882648527622, 0.015588987618684769, -0.026240509003400803, 0.012319141998887062, + -0.010749616660177708, 0.023771775886416435, -0.017902404069900513, 0.0014530374901369214, + -0.02336304448544979, 0.017657164484262466, 0.005603697616606951, -0.005342109594494104, + 0.040480684489011765, 0.023624632507562637, -0.0002595439727883786, -0.002487126039341092, + 0.04705307260155678, 0.018719865009188652, -0.030425909906625748, -0.012760571204125881, + -0.02480177767574787, -0.03914004936814308, -0.04205021262168884, -0.01821303926408291, + -0.023052409291267395, -0.017199385911226273, 0.00623314268887043, -0.03616448864340782, + -0.02045288309454918, -0.00942532904446125, 0.0006156505551189184, 0.053985144942998886, + 0.001537849078886211, 0.029117973521351814, 0.01806589588522911, 0.024605585262179375, + 0.008517947047948837, 0.005595522932708263, 0.01059429906308651, -0.01579335331916809, + -0.01625930517911911, -0.015662558376789093, 0.0013723132433369756, -0.013185651041567326, + 0.001566460239700973, 0.009180090390145779, -0.022987011820077896, -0.0026363127399235964, + 0.032845597714185715, 0.022447487339377403, -0.0033597659785300493, -0.0112973153591156, + 0.012327317148447037, -0.0188343096524477, 0.02117224782705307, -0.019373834133148193, + -0.022905265912413597, 0.005407506600022316, 0.012597079388797283, 0.00047591576003469527, + 0.01441184338182211, 0.013095730915665627, 0.010986680164933205, -0.008436201140284538, + -0.01022644154727459, -0.029068924486637115, 0.009147392585873604, -0.00795389898121357, + -0.03175019845366478, 0.038943856954574585, 0.02198971062898636, 0.00408935034647584, + -0.013815096579492092, 0.02946130558848381, 0.007451159879565239, 0.04002290591597557, + 0.02050193026661873, -0.011125648394227028, -0.0035048655699938536, 0.01213112659752369, + -0.0033842897973954678, -0.023134155198931694, -0.013218349777162075, -0.008485248312354088, + 0.03009892627596855, -0.00810512900352478, -0.004124092403799295, -0.03502004221081734, + 0.04136354476213455, -0.01611216366291046, -0.005219490732997656, 0.002666967688128352, + 0.03111257776618004, 0.026060666888952255, 0.0190141499042511, -0.0526772066950798, + 0.002006867667660117, -0.01279326993972063, -0.00777405733242631, 0.011379062198102474, + 0.0189978014677763, -0.026681937277317047, 0.007492033299058676, -0.005591435357928276, + 0.008485248312354088, 0.013283746317029, 0.015801528468728065, -0.0010494160233065486, + -0.010406282730400562, -0.02570098452270031, -0.032894644886255264, -0.004316195845603943, + -0.01133818831294775, -0.016014067456126213, -0.026829080656170845, 0.016790656372904778, + -0.002268455224111676, 0.0008573125815019011, -0.032861944288015366, 0.022480186074972153, + 0.004704489838331938, -0.0066091748885810375, 0.05535848066210747, -0.03099813312292099, + -0.03616448864340782, 0.02798987552523613, 0.001875051879324019, 0.0263222549110651, + -0.009327233768999577, -0.013087555766105652, 0.006870762445032597, 0.029902735725045204, + 0.00828088354319334, -0.013806921429932117, 0.017640816047787666, 0.002838634420186281, + 0.013954064808785915, -0.0009247531415894628, -0.037701316177845, -0.009000249207019806, + 0.025864476338028908, 0.026943525299429893, 0.02947765588760376, 0.033712103962898254, + -0.0013600513339042664, -0.013831445947289467, -0.019030500203371048, -0.003974905703216791, + -0.01585874892771244, 0.007696398533880711, -0.022856218740344048, 0.013586207292973995, + 0.0048761568032205105, 0.004402029328048229, 0.006069650407880545, 0.02857844904065132, + 0.026109714061021805, -0.0377667136490345, 0.014624383300542831, 0.0034905599895864725, + -0.03315623104572296, -0.011092950589954853, 0.025553841143846512, 0.013422715477645397, + -0.005354371853172779, -0.0019363615429028869, -0.01554811466485262, 0.00718957232311368, + -0.061603885143995285, 0.010782315395772457, -0.015008590184152126, -0.0009084038902074099, + 0.012997634708881378, -0.0049497284926474094, -0.03397369384765625, 0.019046848639845848, + -0.002581134205684066, 0.029820989817380905, -0.04250798746943474, 0.006024689879268408, + -0.04741275683045387, 0.004169052932411432, -0.038813065737485886, -0.002887682057917118, + -0.0068421512842178345, 0.00715278647840023, 0.031145276501774788, 0.027826383709907532, + -0.011820490472018719, -0.0005098914843983948, -0.017706211656332016, -0.02576638199388981, + -0.010945807211101055, 0.02575003169476986, -0.0011117474641650915, -0.012711524032056332, + 0.02944495715200901, -0.0009313949849456549, -0.011387236416339874, 0.014158430509269238, + -0.01242541242390871, 0.009891281835734844, -0.00037552131107077, -0.014076683670282364, + -0.005039649084210396, 0.005387070123106241, -0.0019711037166416645, -0.02182621695101261, + 0.04077497124671936, -0.036000996828079224, -0.018490975722670555, 0.0008792818407528102, + -0.006674571894109249, -0.01824573613703251, 0.04394672065973282, -0.006617349572479725, + -0.007974334992468357, 0.013267396949231625, -0.0018239605706185102, 0.005599610041826963, + -0.008575169369578362, -0.029003528878092766, -0.03721084073185921, -0.037701316177845, + 0.017215736210346222, -0.05107498541474342, 0.020616374909877777, 0.0014622339513152838, + 0.003073654603213072, -0.017755260691046715, -0.0010667870519682765, -0.025128761306405067, + -0.022496536374092102, -0.010610648430883884, 0.0030613925773650408, -0.012449936009943485, + 0.019995104521512985, -0.024327648803591728, -0.023624632507562637, 0.05974007397890091, + 0.026616541668772697, -0.01441184338182211, -0.029902735725045204, 0.037570521235466, + 0.02480177767574787, 0.02733590640127659, -0.00909834448248148, -0.038093697279691696, + -0.022283995524048805, -0.0038277627900242805, 0.013349143788218498, -0.03310718387365341, + 0.047281961888074875, 0.0003839513810817152, -0.007377588655799627, -0.013103905133903027, + -0.014460890553891659, -0.010741441510617733, -0.011681522242724895, -0.01060247328132391, + 0.016447322443127632, 0.010733267292380333, 0.0064293332397937775, 0.013676128350198269, + 0.014207477681338787, -0.004532822873443365, 0.014084858819842339, -7.963861571624875e-5, + 0.04303116351366043, 0.027401303872466087, 0.029052576050162315, 0.0013774223625659943, + -0.008395328186452389, 0.001005988335236907, 0.01477970089763403, -0.035837505012750626, + -0.017673514783382416, 0.03320527821779251, 0.005575086455792189, 0.0264693982899189, + -0.013479937799274921, -0.008231835439801216, -0.027597494423389435, 0.014321922324597836, + 0.00218262174166739, 0.0028611146844923496, -0.006789016537368298, -0.015286526642739773, + 0.018572721630334854, -0.003163575427606702, 0.013087555766105652, -0.004990601446479559, + 0.035052742809057236, 0.01547454297542572, -0.0226763766258955, -0.009956679306924343, + -0.021401137113571167, -0.013112079352140427, -0.00532167311757803, -0.023918919265270233, + 0.02795717678964138, -0.03920544683933258, 0.003942207433283329, 0.04885149002075195, + -0.015302876010537148, -0.0036050044000148773, -0.00792120024561882, 0.0024523839820176363, + 0.01177144329994917, 0.026861779391765594, 0.016471846029162407, -0.03498734533786774, + -0.029085274785757065, -0.029886385425925255, 0.011158347129821777, 0.0027425826992839575, + 0.051728952676057816, 0.0451238639652729, -0.002885638503357768, -0.008452550508081913, + 0.001874030102044344, 0.014730652794241905, 0.028921781107783318, -0.010479854419827461, + -0.007712747436016798, 0.04074227437376976, -0.01323469914495945, -0.028153367340564728, + 0.011248268187046051, 0.033679407089948654, -0.05964197963476181, 0.002098832046613097, + 0.0047944108955562115, -0.01952097751200199, -0.045647040009498596, 0.015368273481726646, + -0.001491866889409721, -0.040317192673683167, 0.00047438303590752184, 0.004357068799436092, + 0.027646541595458984, 0.009923980571329594, 0.026567492634058, 0.006175920367240906, + -0.031341467052698135, 0.016921449452638626, -0.0009329277672804892, 0.01736287958920002, + -0.013537159189581871, 0.0008849019068293273, 0.02565193735063076, -0.012360014952719212, + -0.017559070140123367, -0.017003195360302925, -0.020828913897275925, 0.005808062851428986, + 0.007892589084804058, -0.025913523510098457, -0.018392879515886307, -0.018490975722670555, + -0.0003926368954125792, 0.013340968638658524, 0.003329111263155937, -0.0047167520970106125, + -0.023003362119197845, 0.02499796822667122, -0.02341209165751934, 0.018523674458265305, + 0.006650047842413187, -0.011861364357173443, 0.03407178819179535, -0.01622660830616951, + -0.019161293283104897, 0.0009579624747857451, -0.0045655216090381145, -0.029870036989450455, + 0.013766048476099968, 0.006331237964332104, 0.012294618412852287, 0.006776754278689623, + -0.0020252603571861982, 0.011035728268325329, -0.02123764529824257, -0.012703348882496357, + 0.009220964275300503, 0.005174530204385519, 0.014714304357767105, 0.0017166688339784741, + 0.0031083966605365276, -0.0032146666198968887, 0.02189161442220211, 0.0013569857692345977, + -0.02882368676364422, 0.0022030582185834646, 0.030393213033676147, -0.03413718566298485, + ], + index: 60, + }, + { + title: "United States Assistant Attorney General", + text: "Many of the divisions and offices of the United States Department of Justice are headed by an Assistant Attorney General.The President of the United States appoints individuals to the position of Assistant Attorney General with the advice and consent of the Senate.", + vector: [ + -0.002060866681858897, -0.008987119421362877, -0.024587998166680336, -0.04351158067584038, + 0.05110633000731468, 0.016993248835206032, 0.02444559708237648, -0.005585304461419582, + 0.004248312208801508, 0.05914410203695297, -0.02156592160463333, 0.005094810388982296, + -0.002418848220258951, 0.0010729560162872076, 0.00013819870946463197, -0.013528145849704742, + -0.047055795788764954, 0.010419045574963093, -0.021186184138059616, -0.018480554223060608, + -0.007582881487905979, 0.002555316314101219, 0.013219608925282955, 0.0001451210118830204, + -0.0009073153487406671, 0.01122598722577095, -0.017024895176291466, -0.014287620782852173, + -0.004331380128860474, 0.03645479306578636, -0.01037948951125145, 0.02082226797938347, + 0.04553684592247009, -0.013330365531146526, -0.011067763902246952, 0.001163934706710279, + -0.03588518500328064, -0.04022052139043808, 0.01859131082892418, 0.005858240649104118, + -0.0034097256138920784, -0.025284184142947197, -0.050156984478235245, 0.011716481298208237, + 0.03335360437631607, -0.03439788147807121, -0.00556948222219944, -0.015355631709098816, + 0.01436673291027546, 0.02567974291741848, -0.01974634639918804, 0.010276644490659237, + 0.01251551229506731, 0.03253084048628807, -0.018433086574077606, -0.015529678203165531, + 0.03857499361038208, 0.00931938923895359, -0.018654601648449898, 0.036264922469854355, + -0.0012153575662523508, -0.015458477661013603, -0.07202353328466415, 0.014050284400582314, + 0.009327300824224949, -0.025252537801861763, 0.027182871475815773, 0.04496724158525467, + -0.06325792521238327, 0.016676802188158035, 0.07765630632638931, 0.014255975373089314, + -0.005288634914904833, 0.007428613491356373, -0.010862072929739952, 0.013520234264433384, + 0.018385620787739754, -0.040536969900131226, 0.019857103005051613, 0.021012136712670326, + 0.011914261616766453, -0.05499863624572754, -0.0009720882517285645, 0.023781055584549904, + -0.040188878774642944, -0.014445844106376171, -0.03395485505461693, -0.039650917053222656, + 0.017752723768353462, 0.02115453965961933, 0.019271673634648323, 0.0548720583319664, + -0.00888427346944809, 0.0143350875005126, 0.03898637369275093, -0.014208508655428886, + 0.003089322242885828, -0.00460431631654501, 0.03259412944316864, -0.019556477665901184, + 0.02169249951839447, 0.04560013487935066, -0.04778362438082695, -0.007124032359570265, + -0.04401789605617523, -0.025537341833114624, 0.02234121784567833, -0.02151845395565033, + 0.015023361891508102, 0.054555609822273254, -0.03357511758804321, 0.002009443938732147, + 0.009912729263305664, 0.02086973562836647, 0.0034670818131417036, -0.009857350960373878, + -0.04743553325533867, -0.013986995443701744, -0.021834902465343475, -0.018860291689634323, + -0.002545427531003952, -0.03012583591043949, 0.03639150410890579, -0.008203910663723946, + -0.008385867811739445, 0.029809387400746346, -0.008251377381384373, 0.056422650814056396, + 0.025521518662571907, -0.02368612214922905, -0.009382679127156734, 0.05509357154369354, + -0.025015203282237053, -0.008773516863584518, -0.04072684049606323, 0.012879427522420883, + 0.006570248398929834, -0.001401270623318851, 0.02890751138329506, 0.05281514674425125, + -0.00406239926815033, -0.028448661789298058, -0.015608790330588818, 0.0072783008217811584, + 0.03598012030124664, 0.0018996760481968522, -0.024018391966819763, 0.05357462167739868, + -0.05211896076798439, 0.021091248840093613, -0.004040643572807312, -0.01568790152668953, + 0.013915793970227242, -0.046929217875003815, -0.006989541929215193, -0.01753121055662632, + 0.01653440110385418, -0.020711511373519897, 0.03001507930457592, 0.013219608925282955, + -0.015339809469878674, -0.021202005445957184, 0.013520234264433384, 0.048511456698179245, + -0.009382679127156734, -0.02433484047651291, 0.003641128074377775, 0.0220405925065279, + -0.012214886955916882, 0.018860291689634323, 0.05341639742255211, 0.030869487673044205, + 0.03477761894464493, -0.011850971728563309, -0.004829785320907831, -0.020252661779522896, + 0.010181710124015808, 0.021597566083073616, -0.040473680943250656, 0.005577393341809511, + 0.020252661779522896, -0.001069000456482172, 0.008401690050959587, 0.0002155801048502326, + 0.011447501368820667, -0.001519938581623137, 0.004224578849971294, -0.03395485505461693, + 0.009794061072170734, 0.014627802185714245, -0.048163361847400665, 0.004149422515183687, + 0.05088481307029724, -0.012072485871613026, 0.029524585232138634, 0.00241093710064888, + 0.011289277113974094, -0.01729387603700161, -0.02180325798690319, -0.05936561897397041, + 0.06389082223176956, -0.001774085802026093, 0.00027194738504476845, 0.05876436457037926, + 0.04825829714536667, 0.044872306287288666, -0.016281241551041603, -0.03756235912442207, + -0.022372862324118614, -9.294110896007624e-6, -0.03452445939183235, -0.03259412944316864, + 0.014596156775951385, 0.014493311755359173, -0.03053721785545349, 0.005355880130082369, + -0.01070384867489338, 0.00041978785884566605, 0.038068678230047226, -0.04113822057843208, + -0.00879725068807602, 0.002723429352045059, -0.039650917053222656, 0.023844346404075623, + 0.006993497721850872, -0.029271425679326057, -0.021328585222363472, -0.012032929807901382, + -0.03382827714085579, -0.0021716232877224684, -0.08195999264717102, 0.027167048305273056, + -0.01753121055662632, 0.006198422517627478, -0.02041088603436947, 0.05721377208828926, + 0.028701819479465485, -0.00879725068807602, 0.0036529949866235256, -0.025648098438978195, + -0.06790971010923386, 0.018338153138756752, -0.05113797262310982, -0.0031051444821059704, + 0.02140769734978676, 0.01846473291516304, -0.027293628081679344, -0.0136942807585001, + -0.016692623496055603, 0.07683353871107101, 0.01445375569164753, -0.002717495895922184, + -0.007784617133438587, -0.02737274020910263, 0.03898637369275093, -0.0016989294672384858, + 0.03560038283467293, -0.04297361895442009, -0.0050156982615590096, -0.04003065451979637, + -0.01870206743478775, 0.04167618229985237, -0.041296444833278656, 0.002863853005692363, + 0.01070384867489338, -0.06487181037664413, 0.06018838286399841, -0.022784246131777763, + -0.025663921609520912, 0.03147073835134506, -0.021075427532196045, 0.00855991430580616, + 0.0014873049221932888, 0.05316323786973953, 0.004248312208801508, 0.059776999056339264, + 0.007986352778971195, 0.017626145854592323, 0.04594822973012924, 0.0025276271626353264, + -0.003728151321411133, -0.008010086603462696, 0.07506143301725388, -0.013425299897789955, + -0.020679866895079613, -0.003660906106233597, 0.01090953964740038, 0.014161041006445885, + 0.007982397451996803, 0.036201633512973785, -0.02379687875509262, 0.005589260254055262, + 0.03134416043758392, -0.07385893166065216, 0.005814729258418083, 0.025584809482097626, + 0.011890527792274952, -0.0481950081884861, 0.006135132629424334, -0.040948353707790375, + 0.0014655491104349494, -0.021439341828227043, 0.0020905337296426296, -0.039840783923864365, + 0.024951912462711334, 0.020743155851960182, -0.03911295533180237, -0.025363296270370483, + 0.028274616226553917, -0.020315952599048615, 0.020315952599048615, 0.0033503917511552572, + -0.010537713766098022, 0.0011500901309773326, -0.021945659071207047, 0.003202056745067239, + -0.002250735415145755, 0.007847907021641731, 0.069871686398983, -0.02373358979821205, + -0.04313184320926666, 0.020363420248031616, -0.010047219693660736, 0.013037651777267456, + 0.01740463264286518, 0.02175579033792019, -0.011423767544329166, 0.019904570654034615, + -0.02221463993191719, 0.01939825341105461, -0.015498033724725246, -0.00920072104781866, + -0.022784246131777763, 0.007705505006015301, -0.004450047854334116, 0.03518900275230408, + 0.023005759343504906, 0.03721426799893379, 0.02884422242641449, 0.0034927930682897568, + -0.016391998156905174, 0.02977774292230606, -0.014342999085783958, 0.03272070735692978, + -0.02609112486243248, 0.021233651787042618, -0.019952036440372467, 0.054840411990880966, + 0.021249473094940186, 0.04123315587639809, 0.0006991519476287067, -0.0207589790225029, + 0.015292342752218246, 0.01573536917567253, 0.000526588992215693, -0.021360229700803757, + -0.0323726162314415, -0.00044624091242440045, 0.05041014403104782, -0.003967464901506901, + 0.013607257977128029, 0.03272070735692978, -0.061992134898900986, 0.023844346404075623, + -0.050505075603723526, -0.022483620792627335, -0.019097628071904182, 0.028163859620690346, + -0.04629632085561752, -0.010458601638674736, -0.0034255480859428644, 0.03439788147807121, + 0.06708694249391556, -0.012143686413764954, -0.002903409069404006, -0.007262478116899729, + -0.05287843570113182, -0.03480926528573036, -0.03930282220244408, -0.008805161342024803, + 0.042119208723306656, 0.018132461234927177, -0.008014041930437088, 0.029160669073462486, + 0.032214391976594925, -0.039081308990716934, 0.026470862329006195, 0.0035956387873739004, + 0.004422358702868223, -0.00032040345831774175, -0.022024771198630333, -0.016724269837141037, + -0.03632821515202522, -0.023701943457126617, 0.016898315399885178, 0.0015654279850423336, + -0.005427080672234297, -0.014240153133869171, -0.024319017305970192, -0.034619394689798355, + 0.017214763909578323, -0.0465494804084301, 0.0012034907704219222, 0.015600878745317459, + 0.00812479853630066, -0.05946055054664612, -0.057593509554862976, 0.04477737098932266, + -0.00358377187512815, 0.011392123065888882, -0.04113822057843208, -0.024872800335288048, + -0.061232659965753555, 0.04139138013124466, 0.014857226982712746, -0.025948723778128624, + -0.008947563357651234, 0.027056291699409485, 0.03417636826634407, 0.02613859251141548, + 0.053036659955978394, 0.04034710302948952, -0.006321046035736799, 0.012824049219489098, + 0.04556849226355553, 0.0295404065400362, 0.055947981774806976, -0.01198546215891838, + -0.01234146673232317, -0.03961927071213722, 0.04515710845589638, 0.015039184130728245, + -0.016439465805888176, 0.00987317319959402, -0.009928551502525806, -0.036613017320632935, + -0.030094191431999207, 0.002052955562248826, 0.016898315399885178, 0.02719869278371334, + 0.0019283541478216648, -0.011914261616766453, -0.03196123242378235, 0.018543845042586327, + -0.049397509545087814, -0.03518900275230408, -0.03724591061472893, 0.04357486963272095, + 0.008741872385144234, 0.027515141293406487, -0.04667605832219124, -0.02942964993417263, + 0.008915917947888374, 0.02585379034280777, 0.046454545110464096, 0.01647111028432846, + 0.0033088577911257744, -0.04385967180132866, -0.05420751869678497, -0.011937995441257954, + 0.00526094576343894, -0.017309697344899178, 0.01811663992702961, -0.028765110298991203, + 0.010426957160234451, -0.03363840654492378, 0.0012519467854872346, -0.047277309000492096, + -0.009343123063445091, -0.01666097901761532, 0.021787434816360474, -0.0002556305262260139, + -0.04272045940160751, 0.021660855039954185, 0.01670844666659832, -0.035378869622945786, + -0.015490122139453888, -0.022942468523979187, -0.016961604356765747, 0.011297188699245453, + 0.01601226069033146, 0.07423866540193558, 0.029983434826135635, -0.005616949405521154, + 0.011083586141467094, -0.022436153143644333, -0.0034492816776037216, -0.010775049217045307, + -0.04215085506439209, -0.03639150410890579, -0.02175579033792019, 0.07120076566934586, + -0.022024771198630333, -0.007772750221192837, 0.030568862333893776, -0.00814853236079216, + 0.007408835459500551, -0.015102474018931389, 0.00203713309019804, 0.08094736188650131, + -0.01670844666659832, 0.017958415672183037, 0.019366608932614326, -0.06338450312614441, + -0.02450888603925705, -0.017214763909578323, -0.03014165721833706, 0.01900269277393818, + -0.01457242388278246, -0.0006492125685326755, -0.008963385596871376, -0.020189372822642326, + -0.002537516178563237, -0.004038665909320116, 0.019065983593463898, -0.008251377381384373, + -0.020062793046236038, -0.00040124598308466375, 0.008322578854858875, 0.01624959707260132, + -0.04167618229985237, -0.02403421513736248, -0.07468169182538986, -0.005154144484549761, + 0.048638034611940384, -0.018654601648449898, 0.02223046123981476, 0.0269771795719862, + 0.00514623336493969, 0.02984103187918663, -0.04537862166762352, -0.024762043729424477, + -0.02795816771686077, 0.004806051962077618, -0.012420577928423882, 0.027214515954256058, + -0.04351158067584038, -0.02509431540966034, -0.018021704629063606, 0.044935595244169235, + 0.00897129625082016, 0.00987317319959402, 0.007305989973247051, -0.018733713775873184, + -0.01612301729619503, 0.007476080674678087, 0.04718237370252609, -0.04389131814241409, + 0.004541026894003153, -0.005462680943310261, 0.029176492244005203, -0.012238620780408382, + -0.028480306267738342, 0.0017256296705454588, 0.03522064536809921, -0.016455288976430893, + -0.0423407219350338, -0.014793937094509602, 0.006459491793066263, -0.026597442105412483, + 0.022119704633951187, -0.0010976784396916628, -0.009145342744886875, -0.006696827709674835, + -0.03370169550180435, 0.014999628067016602, 0.0018057305132970214, 0.05515686050057411, + 0.031565673649311066, 0.017246408388018608, 0.016803380101919174, -0.018797002732753754, + 0.07094760984182358, 0.021265296265482903, 0.028053103014826775, -0.00545476982370019, + 0.010869983583688736, -0.021534277126193047, 0.010189620777964592, -0.027103759348392487, + 0.019160917028784752, -0.02058493345975876, 0.02819550409913063, 0.002020321786403656, + 0.027182871475815773, -0.0016544288955628872, 0.0035620161797851324, 0.011518701910972595, + -0.018385620787739754, -0.02931889332830906, 0.012325643561780453, 0.012903161346912384, + 0.01208039652556181, -0.017736902460455894, -0.02110707201063633, 0.0009389601182192564, + -0.004374891519546509, 0.012555068358778954, -0.009192810393869877, -0.017610322684049606, + 0.0054903700947761536, 0.005696061532944441, 0.05610620602965355, 0.004715072922408581, + -0.04670770466327667, 0.03601176664233208, 0.04037874564528465, -0.002573116682469845, + -0.0022388685029000044, -0.030220769345760345, 0.039777494966983795, -0.010925361886620522, + -0.013322454877197742, -0.05275185778737068, -0.011447501368820667, -0.01509456243366003, + -0.011154786683619022, 0.05389107018709183, -0.03229350224137306, 0.00791910756379366, + 0.025822144001722336, -0.06430220603942871, 0.0014447822468355298, 0.06075798720121384, + -0.019920391961932182, -0.024002568796277046, 0.005229300819337368, 0.005075032357126474, + 0.02613859251141548, 0.015664169564843178, -0.03781551867723465, 0.004208756610751152, + -0.04385967180132866, 0.015260697342455387, -0.013646814040839672, 0.00144379329867661, + -2.6406707547721453e-5, -0.08202328532934189, 0.0208064466714859, 0.004537071101367474, + -0.016613511368632317, 0.013195875100791454, 0.06028331443667412, 0.07101089507341385, + -0.024429773911833763, -0.01939825341105461, 0.035790253430604935, -0.017246408388018608, + -0.006186555605381727, 0.00630522333085537, 0.035442158579826355, -0.011914261616766453, + -0.03563202917575836, -0.02450888603925705, -0.04711908474564552, 0.00011131300561828539, + -0.022784246131777763, -0.02169249951839447, 0.06917550414800644, 0.002020321786403656, + -0.02232539653778076, -0.028132213279604912, -0.0007307967753149569, -0.001155034638941288, + 0.01265791431069374, -0.031280871480703354, -0.020442530512809753, 0.025252537801861763, + 0.009121608920395374, 0.019857103005051613, -0.015893593430519104, -0.06243516132235527, + 0.020442530512809753, -0.003943731542676687, 0.04509381949901581, -0.026518329977989197, + 0.005700016859918833, -0.03534722700715065, -0.04629632085561752, -0.013259164988994598, + 0.029160669073462486, 0.012673736549913883, -0.00783604010939598, -0.031502384692430496, + 0.0066454047337174416, 0.017388809472322464, -0.004248312208801508, 0.024018391966819763, + 0.01716729626059532, -0.08601052314043045, -0.0273885615170002, 0.0807574912905693, + 0.018480554223060608, -0.020790623500943184, 0.020379241555929184, 0.01007886417210102, + -0.013298721052706242, -0.018480554223060608, -0.03229350224137306, -0.023591186851263046, + 0.002988454420119524, 0.028860043734312057, -0.011518701910972595, -0.011969639919698238, + -0.029825210571289062, 0.004529159981757402, 0.012238620780408382, 0.030458105728030205, + 0.013583524152636528, -0.005316324066370726, 0.0008410590817220509, 0.007962618954479694, + -0.020062793046236038, 0.023543721064925194, -0.038258545100688934, -0.01007886417210102, + 0.014279709197580814, -0.04813171923160553, -0.044239409267902374, -0.0278474111109972, + 0.017436277121305466, 0.049808893352746964, -0.017341341823339462, -0.04677099362015724, + -0.009857350960373878, -0.007547281216830015, -0.008631114847958088, -0.003421592526137829, + -0.0024069815408438444, -0.011249721050262451, -0.0017503522103652358, 0.008053597994148731, + -0.010798783041536808, -0.00268189562484622, 0.009651659056544304, 0.02327474020421505, + -0.05398600548505783, -0.00804173108190298, 0.00030878387042321265, -0.03192958980798721, + -0.007151721511036158, -0.03294222056865692, -0.01939825341105461, -0.010719670914113522, + 0.01359934639185667, 0.036201633512973785, -0.01770525798201561, 0.039018020033836365, + -0.006162821780890226, -0.004113822244107723, 0.011748126707971096, -0.02561645396053791, + 0.01705653965473175, 0.031059356406331062, 0.06809958070516586, -0.0008934707148000598, + -0.0015525722410529852, -0.01500753965228796, -0.009121608920395374, 0.06300476938486099, + -0.011597814038395882, 0.041359733790159225, -0.016502754762768745, 0.017847659066319466, + -0.00337808090262115, 0.0025414717383682728, 0.03395485505461693, -0.0006502014584839344, + -0.01136838924139738, 0.05639100819826126, 0.0070409649051725864, -0.00858364813029766, + 0.023069048300385475, -0.0315973199903965, 0.06256174296140671, -0.005446858704090118, + 0.007357412483543158, -0.0208064466714859, -0.014501222409307957, -0.004659694619476795, + -0.0195248331874609, 0.017452098429203033, -0.04436598718166351, -0.036613017320632935, + 0.04474572464823723, -0.04518875479698181, -0.005968997720628977, 0.004034710116684437, + -0.03800538554787636, 0.022309573367238045, -0.0014823604142293334, 0.01037948951125145, + -0.02561645396053791, -0.008362134918570518, 0.0024940045550465584, 0.006127221509814262, + 0.03490419685840607, 0.001596083864569664, 0.0006091620889492333, -0.041359733790159225, + 0.007009319961071014, -0.034619394689798355, -0.008741872385144234, 0.020062793046236038, + 0.020679866895079613, -0.02017355151474476, -0.01017379853874445, 0.014833493158221245, + -0.007713416591286659, 0.013108852319419384, -0.029888499528169632, 0.01005513034760952, + 0.01783183589577675, 0.0018650644924491644, -0.008726049214601517, 0.03094859980046749, + 0.006040198262780905, -0.012555068358778954, 0.0020331775303930044, -0.022420329973101616, + -0.026597442105412483, 0.01700907200574875, -0.03370169550180435, -0.00632895715534687, + 0.0037400180008262396, -0.01887611486017704, -0.002586961258202791, -0.013156319037079811, + -0.013979083858430386, 0.015110384672880173, -0.001979776890948415, -0.045695070177316666, + -0.007804395165294409, 0.012570890597999096, 0.00130831403657794, -0.01794259250164032, + 0.011637370102107525, 0.01518949680030346, 0.006716605741530657, 0.016130929812788963, + -0.025173427537083626, 0.012966451235115528, -0.047055795788764954, -0.021486809477210045, + 0.03515735641121864, -0.02613859251141548, 0.033923208713531494, -0.017278052866458893, + -0.027182871475815773, -0.021739967167377472, -0.009398501366376877, -0.02555316500365734, + -0.002096466952934861, 0.03294222056865692, 0.02561645396053791, 0.02093302458524704, + -0.04604316130280495, -0.000704590929672122, -0.00042918240069411695, -0.020664045587182045, + -0.02808474749326706, 0.010688026435673237, 0.0532265305519104, -0.000568617251701653, + 0.018955226987600327, 0.009881083853542805, 0.030442282557487488, -0.0348409079015255, + -0.003352369414642453, 0.020727334544062614, 0.023179804906249046, 0.05211896076798439, + 0.006087665446102619, 0.03153402730822563, -0.03322702273726463, 0.02485697902739048, + 0.05389107018709183, -0.001053177984431386, 0.04686592519283295, 0.036138344556093216, + -0.016581866890192032, -0.003827041247859597, -0.023765234276652336, -0.068226158618927, + 0.018844470381736755, 0.01881282404065132, 0.040125586092472076, -0.023955103009939194, + -0.019255852326750755, -0.012388933449983597, 0.018338153138756752, 0.007669904734939337, + 0.024587998166680336, -0.009398501366376877, 0.009564636275172234, 0.0439862497150898, + 0.005268856883049011, -0.002292269142344594, 0.015015450306236744, 0.02503102459013462, + 0.011289277113974094, -0.004169200547039509, 0.051327843219041824, 0.007982397451996803, + 0.02550569735467434, 0.02427154965698719, 0.022720955312252045, -0.024904446676373482, + 0.003362258430570364, -0.004240401089191437, 0.022182993590831757, 0.011708570644259453, + -0.03480926528573036, -0.010751315392553806, -0.033733341842889786, -0.036676306277513504, + 0.024350661784410477, 0.00491285277530551, -0.04392296075820923, 0.05680238828063011, + -0.0012578802416101098, 0.004639916587620974, -0.010308288969099522, -0.010822516866028309, + -0.002444559708237648, -0.020648222416639328, -0.031565673649311066, 0.057245418429374695, + 0.04724566265940666, 0.05715048313140869, -0.033733341842889786, -0.012650002725422382, + -0.02392345853149891, -0.02297411486506462, 0.04028381034731865, -0.016162574291229248, + 0.014746470376849174, 0.02632846124470234, -0.06373259425163269, 0.016328709200024605, + 0.004034710116684437, -0.0070409649051725864, -0.022436153143644333, 0.028891688212752342, + 0.032973866909742355, 0.022705134004354477, 0.015039184130728245, -0.021945659071207047, + 0.01781601458787918, -0.001562461256980896, 0.03632821515202522, 0.014374643564224243, + -0.029524585232138634, -0.007966574281454086, -0.0038428637199103832, 0.022942468523979187, + -0.0060560209676623344, 0.04392296075820923, 0.06385917961597443, 0.03616999089717865, + -0.04420776665210724, 0.0037657294888049364, -0.01175603736191988, 0.0019313207594677806, + 0.010063041932880878, 0.06784641742706299, -0.0036193723790347576, 0.01816410757601261, + 0.0006516848225146532, 0.01963558979332447, -0.04126479849219322, -0.04389131814241409, + -0.013979083858430386, 0.02011026069521904, -0.007923062890768051, 0.022135527804493904, + -0.007741105742752552, 0.00878933910280466, -0.03446117043495178, -0.01445375569164753, + 0.032562483102083206, -0.002343691885471344, -0.01640782132744789, -0.04427105560898781, + 0.009018763899803162, -0.007044920232146978, 0.03223021328449249, -0.004517293069511652, + -0.017452098429203033, 0.024587998166680336, -0.016004350036382675, 0.024429773911833763, + 0.004319513216614723, 0.005585304461419582, -0.016629334539175034, -0.028464484959840775, + 0.01870206743478775, 0.04344829171895981, 0.010458601638674736, 0.005652549676597118, + -0.0291290245950222, -0.010775049217045307, -0.01922420784831047, 0.024065859615802765, + 0.003777596168220043, 0.03118593618273735, -0.0008806150290183723, 0.038195256143808365, + -0.007001408841460943, -0.0033602805342525244, 0.036264922469854355, -0.012673736549913883, + -0.014161041006445885, 0.051264550536870956, -0.04661276936531067, 0.038131967186927795, + 0.007507725153118372, 0.006566293071955442, 0.0008895151549950242, -0.04990382492542267, + 0.0010002718772739172, -0.0018284752732142806, 0.03404979035258293, 0.013543968088924885, + -0.008599470369517803, 0.023591186851263046, 0.018069172278046608, 0.007416746579110622, + -0.02931889332830906, 0.003419614629819989, -0.015877770259976387, 0.0291290245950222, + -0.032325148582458496, 0.01178768277168274, -0.011360477656126022, 0.005688149947673082, + -0.04028381034731865, 0.03477761894464493, -0.004402580671012402, -0.00030927834450267255, + 0.00847289152443409, 0.02526836097240448, -0.006036242935806513, -0.006677049677819014, + -0.03541051596403122, 0.012539246119558811, 0.02373358979821205, 0.01155034638941288, + 0.010972829535603523, 4.7343564801849425e-5, -0.0033484138548374176, -0.00032213403028436005, + -0.021898191422224045, 0.021122893318533897, -0.012048752047121525, -0.022673489525914192, + 0.007096343208104372, 0.02338549681007862, -0.018496377393603325, 0.021771611645817757, + 0.001935276435688138, -0.007851862348616123, 0.019271673634648323, 0.0003938292502425611, + 0.011202254332602024, -0.0015476277330890298, 0.03980914130806923, 0.02802145667374134, + 0.002070755697786808, 0.0006220178329385817, -8.065711881499738e-5, -0.03243590518832207, + -0.013504412025213242, -0.02351207472383976, 0.020917203277349472, -0.02082226797938347, + -0.052213896065950394, -0.007456302642822266, -0.013377833180129528, 0.010854161344468594, + 0.006878785323351622, -0.01647111028432846, -0.01134465541690588, -0.020648222416639328, + 0.0025493830908089876, -0.01158199179917574, 0.004537071101367474, -0.02439812943339348, + 0.0037143067456781864, 0.004750673193484545, -0.017388809472322464, 0.018907759338617325, + 0.01753121055662632, -0.0044381809420883656, -0.044587504118680954, -0.015719547867774963, + -0.002751118503510952, 0.0415179580450058, 0.00427995715290308, 0.021265296265482903, + 0.000577022903598845, -0.03487255424261093, -0.0365813709795475, -0.009176988154649734, + -0.008781427517533302, 0.008639026433229446, -0.021059604361653328, -0.026660731062293053, + -0.016423644497990608, 0.029635341838002205, -0.02099631540477276, 0.019382430240511894, + 0.029461294412612915, -0.021613389253616333, -0.0026027834974229336, 0.04278374835848808, + -0.013559790328145027, -0.010672204196453094, 0.02931889332830906, -0.03993571922183037, + -0.029651163145899773, 0.006427846848964691, -0.0005646616336889565, -0.028100568801164627, + -0.022531086578965187, -0.01265791431069374, -0.006210288964211941, -0.010806694626808167, + -0.0005799895734526217, 0.013868327252566814, -0.010434867814183235, -0.006162821780890226, + 0.01019753236323595, -0.019271673634648323, 0.009382679127156734, -0.01477811485528946, + 0.00449751503765583, -0.0005053276545368135, 0.01917674019932747, -0.01046651229262352, + -0.021613389253616333, 0.00402482133358717, -0.06752996891736984, -0.005703972652554512, + -0.010031396523118019, 0.04272045940160751, 0.02298993617296219, -0.005652549676597118, + -0.026122769340872765, -0.003609483363106847, -0.010205443017184734, 0.014469577930867672, + 0.007519592065364122, -0.0277999434620142, 0.0137180145829916, -0.02761007472872734, + 0.022958291694521904, -0.010561446659266949, -0.01040322333574295, -0.010949095711112022, + -0.010411133989691734, 0.011890527792274952, 0.02632846124470234, -0.005968997720628977, + -0.00219140131957829, 0.010901628993451595, -0.006724516861140728, -0.01677173562347889, + 0.011542435735464096, 0.016328709200024605, 0.009097876027226448, 0.011740215122699738, + -0.004248312208801508, -0.02004697173833847, -0.030632151290774345, 0.005585304461419582, + 0.008002175018191338, 0.04262552410364151, -0.02238868549466133, 0.007017231080681086, + -0.01070384867489338, -0.004220623057335615, 0.016281241551041603, -0.014279709197580814, + -0.006530692335218191, 0.00955672562122345, 0.011566168628633022, -0.037499070167541504, + 0.01541892159730196, -0.008298845030367374, -0.010482335463166237, 0.006617715582251549, + -0.0012786471052095294, 0.021914014592766762, 0.003720239968970418, -0.0075631034560501575, + -0.022610198706388474, 0.01653440110385418, 0.007163588423281908, 0.025489874184131622, + 0.04360651597380638, -0.010798783041536808, 0.016550222411751747, 0.001774085802026093, + -0.004588494077324867, -0.038606636226177216, -0.012151597999036312, -0.004192933905869722, + -0.027578430250287056, 0.03351182863116264, 0.004576627165079117, -0.008931741118431091, + 0.007127987686544657, -0.009540902450680733, -0.01675591431558132, 0.0006783850840292871, + -0.003253479488193989, 0.044935595244169235, 0.002853963989764452, -0.015482211485505104, + -0.018148284405469894, -0.010893717408180237, -0.002199312672019005, -0.022467797622084618, + -0.018781179562211037, -0.012650002725422382, 0.02058493345975876, -0.016866670921444893, + 0.03126504644751549, -0.007266433909535408, 0.00035278990981169045, 0.00023869563301559538, + 0.015608790330588818, -0.016629334539175034, 0.022879179567098618, -0.01757867820560932, + -0.018385620787739754, 0.02433484047651291, 0.02156592160463333, 0.013338277116417885, + 0.009904817678034306, 0.016676802188158035, 0.018084995448589325, 0.032625772058963776, + 0.04082177206873894, -0.015893593430519104, 0.006396202370524406, 0.008314667269587517, + 0.010181710124015808, 0.006412024609744549, 0.00750376982614398, -0.00012954583507962525, + -0.03705604374408722, 0.010506068356335163, 0.04132809117436409, 0.0033820364624261856, + -0.0038507748395204544, -0.015474299900233746, 0.017895126715302467, 0.023227272555232048, + -0.023322205990552902, 0.017325520515441895, 0.017515389248728752, 0.037720583379268646, + 0.01007886417210102, 0.003830996807664633, -0.033733341842889786, 0.011202254332602024, + -0.011170608922839165, -0.02672402188181877, -0.03512571007013321, 0.049682311713695526, + 0.02098049223423004, -0.002157778711989522, -0.015933148562908173, 0.03077455423772335, + -0.01539518777281046, -0.006764072924852371, -0.004339291248470545, 0.013536056503653526, + 0.036075055599212646, -0.0036351946182549, -0.00545476982370019, 0.015047095715999603, + 0.01590941660106182, 0.033100444823503494, -0.001963954418897629, -0.01477811485528946, + 0.010363667272031307, -0.0011184454197064042, 0.030853666365146637, -0.030758731067180634, + -0.01857548952102661, 0.0145407784730196, 0.005735617130994797, 0.004517293069511652, + 0.01008677575737238, -0.009050408378243446, 0.0017958416137844324, 0.009952285327017307, + 0.008836806751787663, -0.006704738829284906, -0.01060891430824995, -0.004588494077324867, + -0.00416524475440383, -0.017214763909578323, -0.014184774830937386, -0.03354347124695778, + -0.011700659058988094, 0.020774802193045616, 0.009675392881035805, -0.005288634914904833, + 0.004509381949901581, -0.02262602187693119, -0.015316075645387173, 0.028068924322724342, + 0.031692251563072205, -0.0216292105615139, -0.016835026443004608, -0.009176988154649734, + 0.011083586141467094, -0.03683453053236008, 0.00855991430580616, -0.004544982220977545, + -0.029208136722445488, 0.00707656517624855, 0.01716729626059532, 0.04446092247962952, + 0.005949219688773155, 0.004050532355904579, 0.00955672562122345, 0.024461418390274048, + -0.04566342383623123, 0.018211573362350464, -0.017388809472322464, 0.003560038283467293, + -0.007373235188424587, -8.943360444391146e-5, 0.03167643025517464, -0.039714206010103226, + 0.005122499540448189, 0.03341689333319664, -0.00028307249885983765, 0.0032752351835370064, + 0.021249473094940186, 0.0007476080791093409, -0.015450566075742245, -0.039081308990716934, + 0.005114588420838118, -0.015086651779711246, -0.016518577933311462, -0.01924002915620804, + 0.006597937550395727, 0.010165886953473091, 0.018749535083770752, -0.0138999717310071, + -0.0139474393799901, -0.0019471432315185666, -0.014216420240700245, 0.039081308990716934, + -0.012523423880338669, 0.03408143296837807, 0.008662760257720947, 0.015545500442385674, + 0.010339933447539806, -0.010553536005318165, 0.0026522285770624876, -0.0283062607049942, + -0.030331525951623917, -0.027309449389576912, 0.0315973199903965, 0.009398501366376877, + -0.00016020172915887088, 0.032340969890356064, -0.030220769345760345, -0.024983558803796768, + 0.005059210117906332, -0.010411133989691734, -0.0506632998585701, -0.023369673639535904, + 0.012911072000861168, -0.02392345853149891, -0.023353852331638336, -0.03692946583032608, + 0.03079037554562092, -0.043828029185533524, 0.03582189604640007, 0.020838091149926186, + -0.00920072104781866, -0.010181710124015808, -0.03417636826634407, -0.015118296258151531, + 0.00876560527831316, -0.018148284405469894, 0.027467673644423485, -0.028179680928587914, + -0.02713540382683277, -0.026660731062293053, -0.012064574286341667, -0.028005635365843773, + -0.033796630799770355, 0.014944249764084816, -0.00017688939988147467, -0.0009869217174127698, + -0.024524709209799767, 0.027103759348392487, 0.019303318113088608, -0.01787930354475975, + 0.033859919756650925, 0.030458105728030205, -0.02832208201289177, -0.01605972833931446, + 0.0058186850510537624, -0.014216420240700245, -0.005632771644741297, 0.003593660891056061, + -0.001162945874966681, 0.004537071101367474, 0.0010897673200815916, 0.045631781220436096, + -0.018195752054452896, -0.03107517957687378, 0.012903161346912384, -0.004117777571082115, + -0.00952508021146059, -0.006139088422060013, -0.02977774292230606, -0.015292342752218246, + 0.015387277118861675, -0.025632275268435478, -0.01917674019932747, 0.016202129423618317, + -0.004204800818115473, 0.0051383222453296185, 0.04221414402127266, 0.016850847750902176, + 0.001247991225682199, -0.00461618322879076, -0.024667110294103622, -0.010656381025910378, + 0.009240277111530304, -0.03623327985405922, -0.008298845030367374, 0.05632771924138069, + 0.005264901090413332, -0.03178718686103821, -0.01980963535606861, 0.0011926128063350916, + 0.0038092411123216152, -0.005945263896137476, 0.00943805743008852, -0.016724269837141037, + -0.018686246126890182, 0.016075551509857178, 0.014746470376849174, 0.015316075645387173, + -0.004339291248470545, 0.020205195993185043, -0.022119704633951187, 0.033923208713531494, + -0.023432962596416473, 0.02286335825920105, -0.01306929625570774, -0.009010852314531803, + -0.012293999083340168, 0.009588370099663734, 0.02996761165559292, 0.001503127277828753, + 0.01445375569164753, -0.016835026443004608, 0.0076303486712276936, 0.001138223335146904, + -0.027293628081679344, -0.008496624417603016, 0.006281489972025156, -0.04917599633336067, + -0.05528343841433525, -0.0025157604832202196, 0.0034275257494300604, -0.02596454694867134, + -0.01935078576207161, -0.026344284415245056, 0.023179804906249046, -0.00964374840259552, + -0.02732527256011963, 0.019129272550344467, 0.02485697902739048, 0.005201611667871475, + -0.01711982861161232, 0.01583821512758732, 0.029176492244005203, 0.012808226980268955, + -0.007377190515398979, -0.0020351551938802004, 0.013449033722281456, 0.021328585222363472, + -0.011075674556195736, -0.007147765718400478, -0.012262354604899883, -0.010632648132741451, + 0.005431036464869976, 0.02086973562836647, -0.004001087509095669, -0.0199362151324749, + -0.003522460116073489, 0.013551879674196243, 1.3404223864199594e-5, 0.005379613488912582, + 0.0017622190061956644, -0.025584809482097626, -0.0003547677188180387, 0.038606636226177216, + 0.0008054586942307651, 0.0025592721067368984, -0.01974634639918804, -0.01541892159730196, + 0.0033583028707653284, -0.03439788147807121, 0.01688249222934246, 0.007507725153118372, + -0.015956882387399673, 0.011210164986550808, -0.032388437539339066, -0.025758855044841766, + -0.0012529357336461544, -0.01922420784831047, 0.01735716499388218, 0.02098049223423004, + 0.001587183796800673, 0.0014457710785791278, -0.0012915028491988778, -0.022531086578965187, + -0.011067763902246952, -0.010070952586829662, -0.002846052870154381, 0.008097109384834766, + ], + index: 61, + }, + { + title: "Shining Tears", + text: "Shining Tears (\u30b7\u30e3\u30a4\u30cb\u30f3\u30b0\u30fb\u30c6\u30a3\u30a2\u30fc\u30ba, Shainingu Ti\u0101zu) is an action role-playing game co-developed by Nextech and Amusement Vision and published by Sega in 2004 for the PlayStation 2 as a part of the Shining Force video game series. It tells the story of a mysterious boy named Xion.An anime adaptation for the game was announced by Sega, entitled Shining Tears X Wind. It is produced by Studio Deen and began airing in early April 2007.", + vector: [ + -0.017639024183154106, 0.018688242882490158, -0.022535374388098717, 0.020056787878274918, + 0.007146846037358046, -0.040873877704143524, 0.023827889934182167, -0.0217902772128582, + 0.004938166588544846, 0.05346449092030525, -0.027340488508343697, -0.03054896555840969, + 0.020452145487070084, -0.021927133202552795, 0.0217902772128582, 0.009503784589469433, + -0.037194013595581055, 0.017182843759655952, -0.028252851217985153, -0.0009584567160345614, + -0.022261666133999825, 0.031111590564250946, 0.036342471837997437, -0.01329009234905243, + 0.0220335740596056, -0.005135845392942429, -0.020452145487070084, -0.031202826648950577, + -0.05997268483042717, 0.05136605724692345, -0.020391320809721947, -0.027735846117138863, + 0.02375185862183571, 0.02084750309586525, -0.019250866025686264, 0.010887536220252514, + -0.008036400191485882, 0.026808276772499084, 0.005284104496240616, -0.005181463435292244, + 0.009017190895974636, 0.013442153111100197, -0.04707795009016991, 0.014430547133088112, + 2.0952875274815597e-5, 0.024557780474424362, -0.045253220945596695, -0.02658018469810486, + -0.0022714044898748398, -0.012499378062784672, -0.026230446994304657, 0.038988325744867325, + 0.01420245599001646, -0.009602623991668224, -0.014103616587817669, 0.0015082505997270346, + 0.07718593627214432, 0.042181599885225296, 0.016954751685261726, -0.05501550808548927, + 0.00862943660467863, -0.031963128596544266, -0.01466624066233635, 0.022793877869844437, + 0.04957174137234688, -0.03266260772943497, 0.0293324813246727, 0.07225918024778366, + -0.0013048696564510465, 0.0025032968260347843, -0.007983178831636906, 0.003714079037308693, + -0.033088378608226776, 0.026914719492197037, -0.004436366725713015, -0.025971943512558937, + 0.01896195113658905, 0.0012364423600956798, -0.043458908796310425, -0.01999596320092678, + 0.009245282039046288, 0.043793439865112305, -0.04017439857125282, 0.012423347681760788, + 0.02635209448635578, -0.011784693226218224, -0.03397032991051674, -0.06544686108827591, + -0.0038186206948012114, 0.0025108999107033014, -0.013404138386249542, -0.001398006803356111, + 0.018490564078092575, -0.046804238110780716, 0.006990984082221985, -0.018505770713090897, + 0.03251054883003235, -0.01252218708395958, -0.0071164341643452644, 0.02033049613237381, + 0.03184147924184799, -0.00585433142259717, -0.03106597252190113, -0.07025197893381119, + -0.042941901832818985, 0.02727966383099556, -0.03363579511642456, 0.040448106825351715, + 0.0032674011308699846, -0.011404542252421379, -0.020862707868218422, 0.0348522812128067, + -0.0029708831571042538, -0.01509961299598217, -0.016331303864717484, 0.0008634188561700284, + -0.0016337005654349923, 0.024922724813222885, -0.045070748776197433, -0.014476165175437927, + -0.01329009234905243, -0.03199354186654091, 0.005865735933184624, -0.00510543305426836, + -0.0030336081981658936, 0.005527401342988014, 0.014004777185618877, 0.016924340277910233, + -0.015038789249956608, 0.025971943512558937, -0.010454162955284119, 0.03588629141449928, + 0.07426637411117554, 0.03515639901161194, 0.002609739312902093, 0.0005165307084098458, + -0.02136450819671154, 0.004561816807836294, -0.013624626211822033, 0.0030526157934218645, + 0.022580992430448532, -0.017106812447309494, -0.02881547622382641, 0.022854702547192574, + 0.009496182203292847, -0.02093873918056488, -0.03904915228486061, -0.004660656210035086, + -0.006949167232960463, -0.025105198845267296, 0.0010045500239357352, 0.05519798398017883, + -0.026656216010451317, -0.01544174924492836, -0.0025204038247466087, 0.05516757071018219, + -0.009214869700372219, 0.001707830117084086, 0.02855697274208069, -0.01059101801365614, + 0.002056618919596076, -0.04056975618004799, -0.02513561025261879, 0.010408544912934303, + 0.0046720607206225395, -0.04917638376355171, -0.0009636837639845908, 0.028192026540637016, + -0.04196871444582939, 0.0073141129687428474, 0.021394919604063034, -0.01316844392567873, + -0.007998385466635227, 0.023615004494786263, -0.030670614913105965, 0.0346393957734108, + 0.010986375622451305, -0.057448480278253555, -0.02325005829334259, 0.020543381571769714, + -0.04178624227643013, -0.024071186780929565, -0.025850294157862663, 0.02504437416791916, + 0.0037558956537395716, -0.0009940959280356765, 0.008933558128774166, 0.0037178806960582733, + -0.06757570803165436, -0.05851290374994278, -0.04263778030872345, 0.00038632884388789535, + 0.05912114307284355, -0.01879468560218811, 0.005557813216000795, 0.033848680555820465, + -0.000638179131783545, -0.02855697274208069, -0.0038376282900571823, 0.0036228427197784185, + -0.011054802685976028, -0.015647031366825104, 0.05741806700825691, 0.015890328213572502, + 0.031871892511844635, 0.024344895035028458, -0.02239852026104927, -0.08126116544008255, + 0.02221604809165001, 0.02186630852520466, 0.05097069963812828, 0.025698233395814896, + 0.023873507976531982, 0.005078822840005159, 0.0027656012680381536, -0.013115223497152328, + 0.005037005990743637, 0.025683028623461723, -0.002929066540673375, 0.019068393856287003, + -0.005208074115216732, 0.01877947896718979, -0.014293692074716091, 0.03045772947371006, + 0.0023227250203490257, -0.012248477898538113, -0.03302755206823349, -0.005056013353168964, + -0.021775072440505028, 0.01364743523299694, -0.04394550248980522, 0.014027586206793785, + 0.037711016833782196, -0.021166829392313957, -0.014871522784233093, -0.00875868834555149, + 0.0009370732004754245, -0.04367179051041603, -0.003742590546607971, 0.0062192766927182674, + 0.006356131285429001, -0.004592228680849075, 0.00688454182818532, 0.024998756125569344, + 0.05878661200404167, -0.010309705510735512, -0.0053867450915277, -0.0015738267684355378, + 0.028511354699730873, -0.05045369267463684, 0.015069201588630676, 0.014392531476914883, + -0.006648847833275795, 0.04093470051884651, 0.010720268823206425, 0.05535004287958145, + 0.0067742979153990746, 0.049024324864149094, 0.021212447434663773, 0.014993171207606792, + -0.04573981463909149, -0.009024794213473797, 0.03929244726896286, 0.0202544666826725, + 0.013624626211822033, 0.02651936188340187, -0.005930361803621054, -0.0386233814060688, + -0.014096013270318508, -0.032054364681243896, -0.01333571132272482, -0.06824477761983871, + 0.02805517241358757, -0.03871461749076843, -0.0025013962294906378, -0.007268494460731745, + -0.001957779750227928, 0.027492549270391464, 0.028085585683584213, -0.005189066287130117, + -0.007021396420896053, 0.0005127291660755873, -0.0011252481490373611, 0.00956460926681757, + 0.009891538880765438, -0.004957173950970173, 0.010020790621638298, -0.023462943732738495, + -0.04038728401064873, -0.028420118615031242, 0.028252851217985153, -0.04443209618330002, + 0.047230008989572525, 0.02977345697581768, 0.04738206788897514, 0.008310109376907349, + -0.026823481544852257, -0.021410126239061356, 0.06176699697971344, -0.031354885548353195, + -0.007519394624978304, 0.020284878090023994, -0.0252116397023201, -0.007496585603803396, + -0.004774701315909624, 0.02110600471496582, 0.016833104193210602, 0.04650011658668518, + -0.025105198845267296, -0.001403709058649838, 0.028526561334729195, -0.025667821988463402, + -0.036068763583898544, 0.02102997526526451, -0.011389335617423058, -0.030077578499913216, + 0.005033204331994057, -0.011450160294771194, -0.03631206229329109, 0.027933524921536446, + 0.05979021266102791, -0.01012723334133625, -0.008226475678384304, -0.01557100098580122, + 0.036768242716789246, 0.007492783945053816, 0.0029499747324734926, -0.01766943745315075, + 0.017365315929055214, 0.004759495612233877, -0.014863919466733932, 0.06532521545886993, + -0.05197430029511452, 0.011632632464170456, 0.016270479187369347, 0.018977157771587372, + 0.013404138386249542, -0.029636602848768234, 0.01826247200369835, 0.025409318506717682, + -0.07980138063430786, 0.03378785401582718, -0.04494909942150116, -0.018049588426947594, + -0.083390012383461, 0.014635828323662281, -0.026215240359306335, 0.0023208241909742355, + -0.014118822291493416, -0.005972178187221289, 0.0007465222734026611, -0.052460893988609314, + 0.04129964858293533, -0.029651809483766556, 0.027507754042744637, -0.0015728763537481427, + -0.029727838933467865, -0.004653052892535925, -0.003073523985221982, 0.03816720098257065, + 0.005561614874750376, 0.026625802740454674, 0.0007978427456691861, 0.06246647611260414, + -0.0029746845830231905, -0.047047536820173264, 0.003265500534325838, 0.005398149602115154, + -0.03831925988197327, 0.0015443650772795081, -0.03369661793112755, 0.005649049766361713, + -0.027310075238347054, 0.07457049936056137, 0.03987027704715729, -0.005052212160080671, + 0.032054364681243896, 0.03643370792269707, -0.03001675382256508, 0.02214001677930355, + -0.024755459278821945, -0.00999037828296423, -0.024329688400030136, 0.04348931834101677, + -0.001715433201752603, 0.013753877021372318, 0.01766943745315075, 0.010978772304952145, + -0.00943535752594471, -0.03062499687075615, 0.017015576362609863, 0.04348931834101677, + -0.013062002137303352, 0.05136605724692345, 0.007268494460731745, 0.009731875732541084, + 0.06854890286922455, 0.030609790235757828, 0.06115875765681267, 0.013556198216974735, + 0.012856720015406609, 0.02060420624911785, 0.03351414576172829, 0.019509369507431984, + 0.009116030298173428, 0.03165900707244873, -0.018460150808095932, 0.007705668918788433, + -0.017380522564053535, 0.014255677349865437, 0.034548159688711166, 0.007371135521680117, + -0.014696653001010418, -0.054255206137895584, 0.0060063921846449375, -0.00918445736169815, + 0.0701911523938179, 0.0360383503139019, 0.06003350764513016, -0.041573356837034225, + -0.02951495349407196, -0.01441534049808979, 0.01488672848790884, -0.006116636097431183, + -0.015890328213572502, -0.0015861816937103868, 0.014567401260137558, 0.016833104193210602, + 0.040508933365345, 0.008887939155101776, 0.020102405920624733, -0.05799589678645134, + -0.049450092017650604, -0.032997142523527145, 0.03220642730593681, -0.03549093380570412, + 0.013875525444746017, 0.005052212160080671, 0.029286863282322884, -0.010651841759681702, + 0.009511387906968594, 0.046865064650774, -0.028039967641234398, 0.00613184180110693, + 0.05604952201247215, -0.02334129624068737, 0.022444138303399086, -0.018825097009539604, + 0.0525217168033123, 0.010492178611457348, -0.0043413289822638035, -0.036768242716789246, + 0.0016479563200846314, 0.029834281653165817, 0.02539411373436451, 0.030214432626962662, + -0.03549093380570412, -0.02077147178351879, 0.03716360032558441, 0.0056756604462862015, + -0.0012155340518802404, 0.027127603068947792, 0.03664659336209297, -0.029925517737865448, + -0.010940756648778915, -0.04650011658668518, -0.017988763749599457, -0.03853214532136917, + -0.01888592168688774, -0.008165651932358742, -0.020619411021471024, 0.017973557114601135, + -0.022200841456651688, -0.015647031366825104, -0.02033049613237381, -0.006067216396331787, + -0.0025755257811397314, -0.02299155667424202, -0.010074011981487274, -0.010583414696156979, + -0.024588191881775856, 0.006454970687627792, -0.02290032058954239, 0.04236407205462456, + 0.0038015139289200306, 0.0059797815047204494, 0.010484575293958187, -0.008348125033080578, + -0.011077611707150936, 0.0523088313639164, 0.07554368674755096, -0.014270883053541183, + 0.010279294103384018, -0.04893308877944946, -0.030336081981658936, -0.03193271532654762, + -0.05233924463391304, -0.027416517958045006, 0.008903145790100098, 0.03354455903172493, + -0.009283296763896942, 0.02223125286400318, 0.0028302271384745836, -0.005595828406512737, + 0.046713002026081085, 0.038471322506666183, -0.040022339671850204, 0.011298099532723427, + 0.03088349848985672, 0.008340521715581417, 0.021911926567554474, -0.02762940339744091, + -0.034091975539922714, -0.004508595447987318, -0.04385426640510559, -0.014613019302487373, + 0.01363983191549778, 0.05656652897596359, 0.004428763873875141, 0.01964622363448143, + -0.007758889812976122, 0.006356131285429001, -0.0068807401694357395, 0.04838566854596138, + 0.026641009375452995, -0.03707236424088478, -0.0009807905880734324, -0.011389335617423058, + -0.01648336462676525, -0.00999798160046339, -0.03631206229329109, 0.030396904796361923, + 0.03515639901161194, 0.03716360032558441, -0.05757012590765953, 0.031963128596544266, + 0.022839495912194252, 0.007260891608893871, -0.03406156599521637, -0.004656854551285505, + -0.03619041293859482, 0.011488175019621849, 0.028800269588828087, 0.0014502775156870484, + -0.05869537591934204, -0.012149638496339321, 0.009214869700372219, -0.014164441265165806, + 0.02831367589533329, 0.030305668711662292, 0.038136787712574005, -0.006865534000098705, + 0.014156837947666645, 0.04376302659511566, 0.031020354479551315, -0.03996151313185692, + -0.025804676115512848, 0.009404945187270641, -0.0013105719117447734, 0.011404542252421379, + 0.00952659361064434, 0.028161615133285522, 0.021410126239061356, -0.016255274415016174, + -0.027675021439790726, -0.01991993375122547, 0.027568578720092773, 0.010233675129711628, + -0.056231994181871414, -0.0020604205783456564, -0.02092353254556656, -0.008599024266004562, + 0.0075155929662287235, 0.04443209618330002, -0.031871892511844635, 0.02084750309586525, + -0.013822305016219616, 0.019281279295682907, 0.018338503316044807, 0.009382136166095734, + -7.12783876224421e-5, -0.03466980531811714, 0.02772063948214054, 0.015038789249956608, + -0.027142809703946114, -0.02616962231695652, 0.021486157551407814, -0.0010834314161911607, + -0.031172413378953934, -0.026975542306900024, -0.017213255167007446, 0.023037174716591835, + 0.052977897226810455, 0.01067465078085661, 0.027766257524490356, -0.0032864087261259556, + 0.0023075188510119915, 0.02299155667424202, 0.04677382856607437, -0.049115560948848724, + 0.03232807293534279, 0.02898274175822735, -0.03241930902004242, 0.004649251699447632, + 0.009214869700372219, -0.003187569323927164, 0.014050395227968693, 0.057174768298864365, + -0.017654230818152428, 0.023888712748885155, 0.04382385313510895, -0.004786105826497078, + 0.021334096789360046, 0.005493187811225653, -0.000562148867174983, -0.01896195113658905, + -0.007831119000911713, 0.032632194459438324, -0.0006277249776758254, -0.010400942526757717, + 0.00392696401104331, 0.0007916652830317616, 0.06003350764513016, 0.017045987769961357, + 0.010058806277811527, 0.03831925988197327, -0.01487912517040968, 0.0010359125444665551, + 0.013115223497152328, -0.00647397805005312, 0.03682906553149223, 0.0002295164013048634, + -0.046013522893190384, 0.0006619386258535087, 0.03403115272521973, 0.0022371909581124783, + 0.04452333226799965, 0.004668259061872959, 0.06222318112850189, -0.0555933378636837, + 0.024162422865629196, -0.007321715820580721, 0.032723430544137955, 0.04333725944161415, + -0.026139209046959877, -0.0011271488619968295, -0.007329318672418594, -0.018764272332191467, + -0.023143617436289787, 0.005287905689328909, -0.016939546912908554, 0.03369661793112755, + -0.004721480421721935, -0.003567720763385296, 0.04282025247812271, -0.027234045788645744, + 0.017076401039958, 0.05145729333162308, 0.009123633615672588, -0.031780656427145004, + -0.043975912034511566, -0.010165248066186905, -0.011518587358295918, 0.02068023569881916, + 0.031963128596544266, -0.015996770933270454, 0.011510984040796757, 0.00019922308274544775, + -0.018733860924839973, -0.0506361648440361, 0.023554179817438126, 0.01033251453191042, + 0.005272699985653162, -0.008211269974708557, 0.053738199174404144, -0.022672228515148163, + -0.0017230361700057983, -0.015403734520077705, 0.017076401039958, 0.018475357443094254, + -0.017122019082307816, 0.03012319654226303, 0.032388899475336075, -0.014263280667364597, + 0.012871925719082355, -0.010841918177902699, -0.006599428132176399, -0.027340488508343697, + 0.009959966875612736, 0.024329688400030136, 0.0016726661706343293, 0.019843902438879013, + 0.009823111817240715, -0.025029167532920837, 0.016528982669115067, -0.005801110062748194, + -0.01887071505188942, 0.045009925961494446, -0.040204811841249466, -0.00669446587562561, + -0.04966297745704651, 0.006686863023787737, -0.058391254395246506, 0.031446121633052826, + -0.0334533229470253, -0.04531404748558998, -0.011693457141518593, -0.013693053275346756, + 0.01827767863869667, -0.018384121358394623, -0.027158016338944435, 0.012560201808810234, + 0.027675021439790726, 0.0029575778171420097, 0.06091545894742012, -0.004998990800231695, + -0.03184147924184799, 0.0009698612266220152, 0.013883128762245178, 0.012005181051790714, + 0.01535811647772789, 0.03214560076594353, 0.029043566435575485, 0.02204878069460392, + -0.01033251453191042, -0.006607030984014273, 0.014149234630167484, 0.0027541967574507, + 0.016498571261763573, -0.011488175019621849, -0.015175643377006054, 0.04266819357872009, + -0.055806223303079605, 0.014483768492937088, 0.051335643976926804, 0.023478150367736816, + 0.010438957251608372, 0.021090799942612648, -0.017715055495500565, -0.018642624840140343, + -0.005303111858665943, 0.02589591220021248, 0.0059151556342840195, 0.015426543541252613, + 0.028587384149432182, 0.002623044652864337, 0.012119226157665253, 0.003900353331118822, + 0.014438149519264698, -0.007823515683412552, -0.005584423895925283, -0.013404138386249542, + 0.01800397038459778, -0.018247267231345177, -0.03047293610870838, 0.012408141046762466, + 0.011853120289742947, -0.014529386535286903, 0.007112632505595684, -0.04145170748233795, + -0.04917638376355171, 0.008051606826484203, -0.011070008389651775, -0.0202544666826725, + -0.015723060816526413, -0.0018066695192828774, -0.0012364423600956798, -0.009465769864618778, + -0.020406527444720268, -0.03695071488618851, 0.038136787712574005, -0.020208848640322685, + -0.015464558266103268, -0.030731437727808952, 0.0015263078967109323, -0.013753877021372318, + 0.016772279515862465, -0.05039286985993385, 0.00874348171055317, -0.020558588206768036, + -0.0042500924319028854, 0.007523196283727884, -0.013586610555648804, -0.05705312266945839, + 0.020953943952918053, 0.0005341126816347241, 0.04394550248980522, -0.005101631861180067, + 0.010887536220252514, 0.02359979785978794, 0.021942337974905968, 0.011396938934922218, + -0.040873877704143524, -0.004812716506421566, -0.029621396213769913, 0.031020354479551315, + -0.004786105826497078, -0.012978368438780308, 0.008218873292207718, 0.01248417142778635, + -0.000134953748784028, 0.017380522564053535, -0.0010216569062322378, 0.014734667725861073, + 0.054772213101387024, 0.006272498052567244, -0.025683028623461723, 0.0018560892203822732, + -0.015373322181403637, 0.03494351729750633, 0.004740487784147263, 0.01585991680622101, + -0.032723430544137955, 0.016361715272068977, -0.01674186810851097, 0.00035164004657417536, + -0.04339808225631714, -0.009853524155914783, -0.004345130641013384, -0.024223247542977333, + 0.0003849032800644636, 0.0066792601719498634, 6.498213042505085e-5, 0.02598715014755726, + -0.026884306222200394, 0.014985567890107632, 0.020315291360020638, 0.011974768713116646, + 0.05516757071018219, -0.041147585958242416, 0.006063414737582207, -0.04811196029186249, + -0.007435761392116547, 0.01296316273510456, -0.015844710171222687, 0.010157645680010319, + -0.015723060816526413, 0.003792010247707367, -6.337836384773254e-5, 0.03251054883003235, + 0.009762288071215153, 0.03284507989883423, -0.020741060376167297, 0.006420757155865431, + 0.001955878920853138, -0.007758889812976122, 0.033240437507629395, 0.003816720098257065, + 0.024329688400030136, 0.00862183328717947, -0.011077611707150936, 0.009678654372692108, + 0.011746678501367569, 0.016148831695318222, 0.009876333177089691, -0.0346393957734108, + -0.010385735891759396, 0.022809084504842758, 0.025424525141716003, -0.028344087302684784, + 0.017213255167007446, -0.0021060386206954718, 0.010256484150886536, -0.002142153214663267, + -0.017882321029901505, 0.028176821768283844, 0.0050408076494932175, -0.04452333226799965, + 0.01988952048122883, 0.02162301167845726, -0.004451572895050049, 0.00944296084344387, + 0.030138403177261353, -0.03688989207148552, -0.019676636904478073, 0.040265634655952454, + -0.03567340597510338, -0.04075222834944725, 0.03664659336209297, -0.014377325773239136, + -0.0129555594176054, -0.04467539116740227, 0.011548999696969986, 0.011351320892572403, + -0.017106812447309494, -0.021075593307614326, -0.0020984357688575983, -0.012461362406611443, + 0.008507788181304932, 0.017000369727611542, 0.04932844638824463, -0.037376485764980316, + 0.012157241813838482, 0.03679865598678589, 0.005732682999223471, 0.0044059548527002335, + 0.030670614913105965, -0.04306355118751526, -0.02332608960568905, -0.024679427966475487, + 0.0020110008772462606, -0.03999192640185356, -0.014392531476914883, -0.0009527544025331736, + -0.016452951356768608, -0.03360538184642792, 0.013069604523479939, 0.01522126141935587, + 0.0010207064915448427, -0.031020354479551315, 0.01316844392567873, 0.012248477898538113, + 0.02642812393605709, 0.0028549369890242815, -0.0430939607322216, -0.04123882204294205, + -0.004029604606330395, 0.051943887025117874, -0.011488175019621849, 0.0097774937748909, + -0.025591792538762093, 0.024937931448221207, -0.04306355118751526, -0.0007384440978057683, + -0.005690866149961948, -0.0025622204411774874, 0.002387350657954812, -0.01544935256242752, + -0.005470378324389458, -0.011632632464170456, -0.0051738605834543705, -0.016848308965563774, + 0.010796299204230309, -0.023827889934182167, 0.02762940339744091, -0.02058899961411953, + -0.059151556342840195, 0.056171171367168427, -0.003968780394643545, -0.04941968247294426, + 0.03129406273365021, -0.003594331443309784, 0.01205840241163969, -0.011085215024650097, + -0.01411121990531683, -0.017076401039958, 0.02445133775472641, -0.02445133775472641, + 0.01716763712465763, -0.010948359966278076, 0.02557658590376377, -0.03819761052727699, + 0.005223280284553766, -0.0058505297638475895, -0.03834967315196991, -0.008416552096605301, + -0.007321715820580721, -0.029651809483766556, -0.004599831998348236, 0.015061598271131516, + -0.028115997090935707, 0.034548159688711166, -0.049450092017650604, 0.040204811841249466, + 0.0026002356316894293, -0.011906341649591923, -0.03947491943836212, 0.0005189066287130117, + -0.04339808225631714, -0.001315323868766427, 0.012879529036581516, -0.010271690785884857, + 0.025683028623461723, 0.027234045788645744, 0.003734987461939454, -0.01922045461833477, + -0.014711858704686165, 0.0013058200711384416, 0.015456955879926682, 0.01320645958185196, + -0.018916333094239235, 0.010986375622451305, 0.03199354186654091, -0.0011594617972150445, + -0.011434953659772873, -0.03001675382256508, -0.051609352231025696, 0.01750217005610466, + -0.024496955797076225, 0.01286432333290577, -0.028800269588828087, 0.002012901706621051, + 0.035308461636304855, -0.023386914283037186, 0.0009864928433671594, 0.007983178831636906, + -0.06435202807188034, 0.0024139613378793, -0.012088814750313759, -0.017045987769961357, + 0.03064020164310932, -0.12189174443483353, -0.023189235478639603, 0.027735846117138863, + -0.007694264408200979, 0.027234045788645744, 0.024846695363521576, 0.007462372072041035, + -0.03053376078605652, 0.002026206813752651, -0.0015576703008264303, 0.05601910874247551, + -0.032723430544137955, 0.014438149519264698, 0.011054802685976028, 0.006569016259163618, + 0.015426543541252613, 0.0001869869593065232, 0.046986714005470276, 0.08363330364227295, + -0.02051296830177307, 0.004782304633408785, 0.007739882450550795, -0.02788790687918663, + 0.00033120688749477267, 0.03801513835787773, 0.010226072743535042, 0.018338503316044807, + 0.008865130133926868, -0.02238331362605095, -0.0034004542976617813, 0.03962698206305504, + 0.01556339766830206, -0.018475357443094254, 0.01081150583922863, -0.008895542472600937, + -0.013761480338871479, 0.033757444471120834, -0.019159629940986633, -0.014118822291493416, + -0.005246089305728674, 0.03223683685064316, -0.0028568378183990717, 0.02934768795967102, + 0.008082018233835697, -0.016589807346463203, 0.009671051055192947, 0.015061598271131516, + 0.006652649492025375, 0.016544189304113388, 0.006363734137266874, -0.021136417984962463, + -0.0015025483444333076, -0.003885147161781788, 0.014346913434565067, -0.015586206689476967, + -0.006698267534375191, 0.02385830134153366, 0.013016384094953537, 0.00281882262788713, + -0.0005231833783909678, 0.0402960479259491, -0.021653423085808754, 0.05276501178741455, + 0.0036988731008023024, -0.03637288510799408, 0.023736653849482536, -0.011450160294771194, + -0.0173196978867054, -0.013008780777454376, 0.011138435453176498, 0.041147585958242416, + 0.018855508416891098, -0.011898738332092762, 0.0020851304288953543, 0.031780656427145004, + -0.004493389278650284, -0.022185634821653366, 0.01329009234905243, 0.04905473440885544, + -0.031963128596544266, -0.03588629141449928, 0.002590731717646122, 0.03807596489787102, + 0.020482556894421577, 0.023143617436289787, 0.025166021659970284, -0.01320645958185196, + 0.009967569261789322, -0.012833910994231701, 0.00750418845564127, -0.021258065477013588, + -0.04443209618330002, 0.027081985026597977, 0.014491370879113674, 0.03433527424931526, + -0.022961143404245377, 0.026488948613405228, 0.018414532765746117, 0.04272901639342308, + -0.05054492875933647, -0.02428407035768032, -0.016711454838514328, -0.024147216230630875, + 0.003531606402248144, 0.03327085077762604, -0.003404255723580718, 0.017045987769961357, + 0.004379344172775745, 0.021318890154361725, 0.0215469803661108, -0.0035924306139349937, + -0.001784810796380043, 0.021212447434663773, 0.0027522961609065533, -0.017198048532009125, + -0.013252077624201775, -0.010659445077180862, 0.000983641715720296, 0.017380522564053535, + 0.03877544030547142, -0.020391320809721947, -0.020208848640322685, -0.04768618941307068, + -0.003949773032218218, 0.0204977635294199, -0.015092010609805584, 0.006435962859541178, + -0.007207670249044895, 0.0037996130995452404, 0.0009461017907597125, 0.005424760282039642, + 0.001378048793412745, -0.023310882970690727, 0.013122825883328915, 0.03363579511642456, + 0.015084407292306423, -0.006785702425986528, 0.00772467628121376, -0.003683666931465268, + -0.0010710766073316336, -0.030336081981658936, 0.010286896489560604, 0.02513561025261879, + -0.012111623771488667, 0.007519394624978304, 0.01569264940917492, -0.009518991224467754, + -0.012575408443808556, 0.030594583600759506, -0.019509369507431984, -0.005337325390428305, + -0.002064222004264593, 0.006648847833275795, 0.02942371740937233, 0.010621430352330208, + -0.022687435150146484, -0.029226038604974747, 0.009602623991668224, -0.024177629500627518, + 0.006534802261739969, 0.05595828592777252, -0.029195627197623253, 0.017198048532009125, + -0.011206863448023796, -0.041816651821136475, 0.022778671234846115, 0.021060386672616005, + 0.0006172708235681057, 0.006895946338772774, 0.013153238222002983, -0.007914751768112183, + 0.013708258979022503, -0.03044252283871174, 0.0022029774263501167, -0.009686257690191269, + 0.0107734901830554, -0.03527804836630821, -0.014263280667364597, -0.005132043734192848, + 0.008690261282026768, 0.0012088813818991184, -0.02042173221707344, -0.05644487962126732, + 0.01922045461833477, 0.00545137096196413, 0.04123882204294205, -0.02101476863026619, + -0.0018342304974794388, -0.009404945187270641, -0.00015099138545338064, 0.008804306387901306, + 0.03853214532136917, -0.011845516972243786, 0.019372515380382538, -0.01576867885887623, + -0.058391254395246506, 0.015373322181403637, -0.021927133202552795, 0.0004376492870505899, + -0.018916333094239235, 0.012332111597061157, 0.025242052972316742, -0.013693053275346756, + -0.008340521715581417, 0.028602590784430504, -0.02306758612394333, 0.013023986481130123, + 0.006230681203305721, -0.008332918398082256, 0.031628597527742386, -0.027081985026597977, + -0.020300084725022316, 0.005690866149961948, -0.04075222834944725, -0.017973557114601135, + -0.016011977568268776, -0.003455576254054904, 0.016285685822367668, 0.02633688785135746, + -0.0266105979681015, -0.0008182758465409279, -0.015365718863904476, -0.013883128762245178, + 0.039931103587150574, 0.027735846117138863, 0.02093873918056488, -0.024557780474424362, + 0.006234482862055302, 0.029058773070573807, 0.033240437507629395, -0.011412144638597965, + 0.013282489962875843, -0.011503380723297596, 0.010887536220252514, 0.023402119055390358, + -0.004930563736706972, 5.345878889784217e-6, 0.016346510499715805, 0.011260083876550198, + 0.024937931448221207, -0.032632194459438324, 0.019144423305988312, -0.01964622363448143, + -0.027218839153647423, 0.030822675675153732, 0.00025755257229320705, -0.023356501013040543, + -0.0193116907030344, -0.008112430572509766, 0.00884232111275196, 0.05766136199235916, + -0.010347721166908741, -0.03184147924184799, 0.0015320101520046592, -0.0010976871708407998, + 0.03430486097931862, -0.012362523004412651, -0.013472565449774265, 0.01741093397140503, + -0.012248477898538113, 0.01750217005610466, -0.003879444906488061, -0.008158048614859581, + 0.03202395513653755, 0.033666208386421204, -0.009017190895974636, 0.014643431641161442, + 0.0006134692812338471, -0.02463380992412567, 0.012514583766460419, -0.0006909251678735018, + 0.029575778171420097, 0.036768242716789246, -0.004881144035607576, -0.02469463460147381, + -0.019798284396529198, -0.0161336250603199, 0.038988325744867325, -0.01273507159203291, + -0.0047138771042227745, 0.035125989466905594, -0.01698516495525837, -0.013799495995044708, + 0.012005181051790714, 0.012438553385436535, -0.009389739483594894, -0.0322672501206398, + 0.01046176627278328, 0.01826247200369835, -0.021258065477013588, 0.0009950462263077497, + 0.013807098381221294, -0.0014512279303744435, 0.0009285197593271732, 0.008363330736756325, + 0.012506980448961258, 0.006918755359947681, -0.0031856687273830175, 0.01896195113658905, + 0.04008316248655319, 0.009914347901940346, -0.019159629940986633, -0.018901126459240913, + -0.05136605724692345, 0.02461860328912735, -0.018581800162792206, 0.008173255249857903, + -0.007701867260038853, 0.023265264928340912, -0.02633688785135746, 0.006283902563154697, + -0.01274267490953207, -0.004554213490337133, 0.02410159818828106, -0.012020386755466461, + 0.017076401039958, -0.051183585077524185, -0.04093470051884651, -0.03746772184967995, + -0.0454661063849926, -0.025181228294968605, -0.01674186810851097, -0.03451774641871452, + -0.004193069878965616, -0.01680269092321396, 0.004660656210035086, -0.013054398819804192, + 0.010826711542904377, 0.02907397784292698, -0.013715862296521664, 0.0022504962980747223, + -0.01320645958185196, -0.006394146475940943, -0.001822825986891985, -0.0322672501206398, + 0.01294795610010624, -0.029302069917321205, -0.014856316149234772, 0.034608982503414154, + 0.01768464222550392, 0.017730260267853737, -0.00027062027947977185, -0.003257897449657321, + -0.025409318506717682, -0.01544174924492836, -0.013563801534473896, -0.013761480338871479, + -0.01888592168688774, -0.0043413289822638035, 0.03576464205980301, 0.013442153111100197, + 0.009769890457391739, 0.011412144638597965, 0.03354455903172493, 0.022778671234846115, + 0.02589591220021248, -0.0027389908209443092, -0.014164441265165806, 0.012491774745285511, + -0.020117612555623055, -0.014065601862967014, 0.00019601556414272636, 0.01655939407646656, + -0.007952767424285412, 0.011191656813025475, 0.046865064650774, 0.004687266889959574, + 0.010188057087361813, 0.0046074348501861095, -0.030853087082505226, 0.0048431288450956345, + 0.02101476863026619, 0.021683836355805397, -0.01157941110432148, -0.02831367589533329, + 0.013480168767273426, 0.003461278509348631, 0.026124004274606705, 0.0036589570809155703, + 0.019098805263638496, 0.001574777183122933, 0.038897089660167694, -0.003792010247707367, + 0.021410126239061356, -0.025698233395814896, -0.010750681161880493, -0.0054399664513766766, + -0.0026971742045134306, -0.008583818562328815, -0.006101429928094149, -0.007371135521680117, + 0.010857123881578445, 0.005116837564855814, -0.0012554499553516507, -0.024512162432074547, + -0.000815899926237762, -0.023280471563339233, 0.002145954640582204, 0.031963128596544266, + -0.0036532548256218433, -0.007614432368427515, 0.013571404851973057, 0.002573624951764941, + -0.0027979142032563686, -0.012529789470136166, -0.013708258979022503, 0.012126829475164413, + -0.022246459499001503, 0.03208477795124054, -0.020969150587916374, -0.013814701698720455, + 0.014719462022185326, 0.0040372079238295555, -0.024055980145931244, 0.008925954811275005, + 0.027142809703946114, 0.0014065601862967014, 0.008644642308354378, 0.04373261705040932, + -0.01205840241163969, -0.0023360303603112698, -0.024223247542977333, 0.010887536220252514, + -0.04056975618004799, -0.000803545000962913, -0.01972225494682789, -0.021577393636107445, + 0.007428158074617386, 0.02607838623225689, -0.03688989207148552, -0.025089992210268974, + 0.010028393939137459, -0.0012107822112739086, 0.004356535151600838, -0.012316904962062836, + -0.016544189304113388, 0.014521783217787743, -0.03509557619690895, -0.034365687519311905, + -0.044918689876794815, -0.004995189141482115, -0.03433527424931526, 0.04151253029704094, + 0.057357240468263626, -0.013449756428599358, 0.012803498655557632, 0.010545399971306324, + 0.0010634735226631165, 0.013198856264352798, -0.005219478625804186, -0.05097069963812828, + 0.002921463456004858, 0.0036342472303658724, -0.0009038099087774754, -0.04564857855439186, + -0.013723465614020824, 0.026747452095150948, -0.04060016945004463, -0.038745030760765076, + 0.0032978132367134094, -0.0004167409788351506, -0.005265096668154001, -0.02265702374279499, + 0.011100420728325844, 0.01742614060640335, 0.05732683092355728, -0.027842288836836815, + -0.008074415847659111, 0.017562994733452797, 0.013198856264352798, 0.005500790663063526, + 0.002026206813752651, 0.03439609706401825, 0.03287549316883087, -0.038288846611976624, + 0.025865500792860985, -0.024922724813222885, 0.0021820690017193556, 0.03831925988197327, + 0.009549402631819248, 0.02761419676244259, 0.001403709058649838, -0.0020052986219525337, + 0.002436770359054208, 0.004679663572460413, -0.0430939607322216, 0.01792793907225132, + -0.0071164341643452644, -0.007454768754541874, -0.01090274192392826, 0.01433170773088932, + -0.028769858181476593, 0.008005988784134388, -0.03731565922498703, 0.022839495912194252, + 0.019342102110385895, 0.004535206127911806, 0.01433170773088932, 0.026397712528705597, + 0.015152834355831146, -0.023386914283037186, -0.0023341295309364796, -0.01689392700791359, + -0.03801513835787773, -0.016589807346463203, -0.0033377292566001415, -0.03637288510799408, + -0.01500837691128254, -0.01570785604417324, 0.061554115265607834, -0.0300319604575634, + 0.0034327670000493526, -0.010302103124558926, -0.009762288071215153, -0.00020979605324100703, + 0.040448106825351715, 0.0008211270323954523, 0.0027199832256883383, 0.025865500792860985, + -0.011951959691941738, -0.01741093397140503, -0.015434146858751774, -0.008675054647028446, + 0.026534566655755043, 0.02452736720442772, -0.012590614147484303, 0.0013580908998847008, + -0.007359731011092663, -0.0021801681723445654, 0.015517779625952244, 0.012073608115315437, + -0.0227330531924963, 0.0013286290923133492, -0.004337527323514223, 0.006511993240565062, + ], + index: 62, + }, + { + title: "Falling Star (The Outer Limits)", + text: '"Falling Star" is an episode of The Outer Limits television series. It first aired on 30 June 1996, during the second season.', + vector: [ + -0.030039062723517418, -0.015257558785378933, -0.01758229359984398, -0.03421247750520706, + 0.011464987881481647, -0.0279126837849617, -0.029674086719751358, 0.004835924133658409, + -0.08384913206100464, 0.047192905098199844, 0.010020955465734005, 0.05369899049401283, + -0.00850551389157772, -0.016519103199243546, 0.025103960186243057, -0.02286650240421295, + -0.027928553521633148, 0.03535500913858414, 0.01066362950950861, 0.0053357817232608795, + 0.0062878914177417755, 0.01939130201935768, -0.013686577789485455, 0.016550840809941292, + 0.0315941758453846, -0.002523090923205018, 0.006656833924353123, 0.01731252856552601, + 0.007652582135051489, 0.029912114143371582, 0.003415693761780858, -0.008394434116780758, + 0.03710054233670235, 0.05896732956171036, -0.034910690039396286, 0.008941897191107273, + 0.008957765996456146, 0.0013875016011297703, -0.024786589667201042, 0.029229769483208656, + 0.0061966474168002605, -0.032816048711538315, -0.06613989174365997, -0.0014638687716796994, + -0.013147048652172089, 0.018835904076695442, -0.02572283148765564, -0.02580217458307743, + -0.005926883313804865, -0.009862270206212997, -0.026579730212688446, -0.0187724307179451, + -0.029816903173923492, 0.006339463870972395, 0.007755727507174015, 0.00956870336085558, + 0.027976159006357193, 0.050557028502225876, -0.015543191693723202, -0.02854742482304573, + 0.0146466214209795, -0.002989227883517742, -0.014154698699712753, 0.011314237490296364, + -0.016043048352003098, -0.01010823156684637, 0.03909997269511223, 0.006145074963569641, + -0.030880093574523926, -0.01637628674507141, 0.02745249681174755, 0.018010742962360382, + -0.018899379298090935, -0.00860072486102581, -0.013170851394534111, 0.0009481426095589995, + -0.011925174854695797, -0.004288461059331894, -0.05896732956171036, -0.03992513567209244, + 0.016265207901597023, 0.021025756374001503, 0.022104814648628235, 0.017963137477636337, + -0.016884079203009605, -0.013226390816271305, -0.03332383930683136, -0.060268547385931015, + -0.005470663774758577, 0.0251674335449934, 0.026706678792834282, 0.06753631681203842, + -0.02965821884572506, -0.03421247750520706, 0.03200675547122955, 0.01940716989338398, + 0.03313341736793518, 0.01317878533154726, -0.052397772669792175, 0.024120112881064415, + -0.017883794382214546, -0.014083290472626686, -0.027801604941487312, -0.028595030307769775, + 0.02362819015979767, -0.01966106705367565, -0.001365682459436357, -0.005173129495233297, + 0.035481955856084824, 0.027389023452997208, -0.014035684987902641, 0.023564716801047325, + -0.0032391566783189774, -0.009243398904800415, 0.054587624967098236, 0.017804453149437904, + 0.00016389180382248014, 0.04373357445001602, -0.03824307397007942, -0.012996298260986805, + 0.02526264451444149, -0.0047684828750789165, -0.0393538698554039, 0.018423324450850487, + 0.00019476098532322794, -0.007200330030173063, 0.03805265203118324, 0.00752563402056694, + 0.0042924280278384686, -0.042337145656347275, -0.03837002441287041, 0.0411946140229702, + -0.008259551599621773, 0.016963422298431396, -0.0034890854731202126, -0.021644627675414085, + -0.04170240834355354, -0.05274688079953194, 0.0067956834100186825, 0.0024973044637590647, + -0.005359584465622902, 0.02518330328166485, -0.03732270374894142, 0.026135412976145744, + 0.0012724549742415547, -0.015043334104120731, -0.004578060936182737, -0.03011840581893921, + 0.02691296860575676, -0.02984864078462124, 0.0430036224424839, 0.040052082389593124, + -0.03275257349014282, 0.019788013771176338, 0.04751027747988701, 0.0061768121086061, + 0.042241934686899185, -0.008497579954564571, 0.0029535237699747086, -0.027055785059928894, + -0.032260652631521225, -0.0007577206706628203, -0.031721122562885284, -0.01492432039231062, + -0.041035931557416916, -0.03678317368030548, 0.03694185987114906, 0.05290556326508522, + -0.03919518366456032, 0.0025845812633633614, 0.04144851118326187, -0.012742402032017708, + -0.04309883341193199, -0.03332383930683136, 0.013607234694063663, 0.0066727022640407085, + 0.062204502522945404, 0.08594377338886261, -0.005438927095383406, -0.013035968877375126, + -0.02570696361362934, 0.013694511726498604, -0.007263803854584694, -0.02938845381140709, + -0.02810310572385788, 0.0005201891181059182, -0.029610613361001015, 0.0041139074601233006, + -0.033355578780174255, -0.03906823694705963, -0.03868739306926727, 0.02005777880549431, + 0.033260367810726166, -0.047192905098199844, -0.02261260710656643, 0.047097694128751755, + -0.012559914030134678, 0.005629349034279585, -0.06258534640073776, 0.01629694551229477, + -0.008680067025125027, -0.06893274933099747, -0.03430768847465515, -0.03157830610871315, + 0.031229199841618538, 0.008886357769370079, 0.0357041172683239, 0.008049294352531433, + 0.018613746389746666, 0.039576027542352676, -0.036656226962804794, -0.03411726653575897, + 0.017693372443318367, 0.01969280280172825, -0.0061966474168002605, 0.014257843606173992, + -0.009267201647162437, 0.06734589487314224, -0.03259389102458954, -0.03795744106173515, + 0.04281320050358772, -0.021993735805153847, 0.001343863201327622, -0.020279938355088234, + 0.028944136574864388, 0.010330391116440296, -0.007965984754264355, -0.005030313041061163, + -0.03376815840601921, -0.05471457168459892, 0.005438927095383406, -0.021200310438871384, + -0.02719860151410103, -0.004066301975399256, -0.02564348839223385, 0.04601863771677017, + -0.014075355604290962, -0.001435107085853815, 0.033260367810726166, -0.036370594054460526, + 0.013948407955467701, 0.01056841854006052, 0.023659927770495415, 0.03516458719968796, + 0.03424421325325966, -0.003931419923901558, 0.004693107679486275, -0.025056354701519012, + -0.008568988181650639, 0.004609798081219196, 0.023866217583417892, -0.019169142469763756, + 0.011718884110450745, 0.02096228301525116, 0.020660782232880592, -0.029785167425870895, + -0.02800789475440979, 0.009362412616610527, -0.025770436972379684, -0.005760264117270708, + -0.02023233287036419, 0.022374579682946205, 0.06728242337703705, 0.014186435379087925, + -0.023358425125479698, -0.007485962938517332, 0.008767344057559967, -0.00022748977062292397, + -0.022374579682946205, -0.025881515815854073, 0.03532327339053154, -0.012409163638949394, + -0.04646295681595802, 0.015678074210882187, 0.03998861089348793, -0.002602433320134878, + 0.04449526220560074, 0.037290964275598526, 0.005748362746089697, -0.036751437932252884, + 0.01157606765627861, -0.003118159482255578, -0.028420476242899895, -0.0421149879693985, + -0.008465842343866825, -0.0027452497743070126, 0.01975627802312374, 0.004554258193820715, + 0.0021105099003762007, 0.01674126274883747, -0.024754853919148445, -0.014503804966807365, + -0.020184727385640144, 0.05300077423453331, 0.020454490557312965, 0.04284493997693062, + -0.02497701160609722, 0.04868454486131668, 0.04062334820628166, -0.013742117211222649, + -0.03789396956562996, 0.025960858911275864, -0.006863124202936888, -0.02069251798093319, + -0.024405745789408684, -0.014670424163341522, 0.0759148821234703, 0.00047977405483834445, + -0.022025471553206444, -0.031435489654541016, -0.004494751337915659, -0.045891690999269485, + -0.008065163157880306, -0.023136267438530922, 0.017804453149437904, 0.009084713645279408, + 0.012988363392651081, -0.02286650240421295, 0.002374323783442378, -0.03576758876442909, + 0.023453636094927788, -0.025103960186243057, -0.018804168328642845, 0.02124791592359543, + 0.03046751208603382, -0.016249340027570724, 0.04884323105216026, 0.0013081590877845883, + -0.05525410175323486, 0.01977214589715004, -0.006367234047502279, 0.004907332360744476, + -0.004447145853191614, 0.010822313837707043, -0.021073361858725548, 0.007771595846861601, + -0.024120112881064415, -0.019058063626289368, 0.04274972900748253, -0.032070230692625046, + -0.04221019893884659, 0.029499534517526627, 0.030277090147137642, -0.011131749488413334, + -0.03678317368030548, 0.015098873525857925, 0.05611100047826767, 0.018169427290558815, + 0.00035406582173891366, 0.04674858972430229, 0.0008633453398942947, -0.0005722576170228422, + -0.0016354467952623963, 0.009370346553623676, 0.06153802573680878, -0.06518778204917908, + 0.027611183002591133, -0.006605261471122503, 0.038750868290662766, 0.0750897228717804, + 0.010020955465734005, 0.005236603785306215, 0.034085530787706375, 0.04128982499241829, + -0.004522521514445543, -0.006486247759312391, 0.08162754029035568, 0.03306994587182999, + -0.02845221385359764, -0.019565856084227562, 0.022184157744050026, 0.0028602962847799063, + -0.05814217031002045, -0.010171705856919289, 0.01831224374473095, -0.03948081657290459, + 0.016177931800484657, 0.00910058245062828, -0.07750173658132553, 0.005625381600111723, + -0.03805265203118324, 0.032022625207901, 0.06395003944635391, 0.01912153698503971, + 0.033799897879362106, 0.024881800636649132, -0.0585547499358654, 0.014971925877034664, + -0.004673271905630827, -0.024643773213028908, -0.0558253675699234, -0.003147912910208106, + 0.00988607294857502, -0.007648615166544914, -0.0009278111392632127, -0.041956301778554916, + -0.026198886334896088, 0.015384506434202194, 0.027944421395659447, -0.003514871932566166, + 0.04021076858043671, 0.02710339054465294, -0.005438927095383406, -0.01570187695324421, + -0.0043241651728749275, 0.030895961448550224, -0.012155267409980297, 0.0011742686619982123, + -0.011401514522731304, 0.057983484119176865, 0.02297758124768734, 0.037671808153390884, + -0.009965415112674236, -0.01039386447519064, 0.017979005351662636, 0.04284493997693062, + 0.043892260640859604, 0.01533690094947815, -0.00860072486102581, 0.012432966381311417, + 0.014083290472626686, 0.06550514698028564, 0.002866246970370412, 0.014368923380970955, + -0.028134843334555626, -0.00034960280754603446, -0.0016681755660101771, -0.048018068075180054, + -0.026976441964507103, -0.08949831873178482, 0.043416205793619156, -0.06791716068983078, + -0.04382878541946411, 0.0035902471281588078, -0.02635757066309452, 0.026484519243240356, + -0.018820036202669144, -0.02591325342655182, -0.04157545790076256, 0.04157545790076256, + 0.002501271665096283, 0.06740937381982803, -0.03541848435997963, 0.013972210697829723, + 0.016979290172457695, -0.02881718799471855, -0.011599870398640633, -0.007799365557730198, + 0.03268910199403763, -0.03909997269511223, -0.026770152151584625, 0.024374010041356087, + 0.024310534819960594, -0.005359584465622902, 0.022311104461550713, 0.05246124789118767, + 0.010965130291879177, 1.0901842870225664e-5, 0.01244883518666029, 0.0025052388664335012, + 0.035101111978292465, 0.04344794154167175, 0.056967899203300476, -0.03586279973387718, + 0.032070230692625046, 0.01377385389059782, -0.042686253786087036, -0.029769297689199448, + -0.01685234345495701, -0.008894291706383228, 0.02123204804956913, -0.012472637929022312, + -0.08943483978509903, 0.010028889402747154, 0.06268055737018585, 0.03909997269511223, + -0.008354762569069862, -0.02580217458307743, -0.05649184435606003, -0.0329747349023819, + -0.018375718966126442, 0.05090613290667534, 5.299829808791401e-6, -0.008949832059442997, + 0.04294015094637871, 0.02683362551033497, -0.016773000359535217, 0.009052976965904236, + -0.03233999386429787, -0.0046812063083052635, 0.06613989174365997, -0.04884323105216026, + -0.003772734897211194, -0.030594460666179657, -0.021739838644862175, 0.02343776822090149, + -0.06874232739210129, 0.004363836254924536, -0.026944706216454506, -0.013059771619737148, + 0.02965821884572506, 0.007581173907965422, 0.043416205793619156, 0.06848842650651932, + -0.05077918618917465, 0.05188998207449913, 0.0006749069434590638, -0.007513732649385929, + -0.009536965750157833, -0.029721692204475403, 0.031102251261472702, -0.015924034640192986, + 0.0265479926019907, 0.02699231170117855, -0.02407250739634037, -0.0050065102986991405, + 0.03513285145163536, 0.03011840581893921, 0.013067706488072872, -0.004939069505780935, + -0.011996583081781864, 0.007589108310639858, -0.006918664090335369, 0.04357488825917244, + -0.016773000359535217, 0.029420191422104836, 0.0173918716609478, -0.003286762163043022, + 0.01070330012589693, -0.04725638031959534, 0.02048622816801071, 0.025230908766388893, + 0.0010969097493216395, 0.031165726482868195, -0.02680188976228237, 0.024231193587183952, + -0.026071937754750252, 0.043162308633327484, 0.005415124353021383, -0.027960289269685745, + -0.023929690942168236, -0.03430768847465515, 0.0029753430280834436, 0.03224478289484978, + -0.01977214589715004, 0.015321033075451851, 0.03092769905924797, 0.014503804966807365, + 0.00553810503333807, -0.022755423560738564, 0.009894006885588169, -0.007839037105441093, + 0.04125808924436569, 0.015455914661288261, 0.026341702789068222, -0.04106766730546951, + 0.02094641514122486, 0.018883509561419487, -0.0004973781760782003, 0.06429914385080338, + 0.020343411713838577, -0.01831224374473095, -0.011377711780369282, -0.014170566573739052, + -0.013012166135013103, -0.010092363692820072, -0.0494144968688488, -0.014670424163341522, + -0.031260937452316284, -0.029436059296131134, 0.006188713479787111, -0.0033819731324911118, + 0.021739838644862175, 0.001988520845770836, 0.014995728619396687, 0.01656670868396759, + -0.011211092583835125, -0.01931195892393589, 0.00019550482102204114, -0.007878707721829414, + -0.0192167479544878, 0.013059771619737148, 0.015987509861588478, -0.004268625285476446, + -0.053318146616220474, 0.0073907519690692425, -0.016130326315760612, 0.025468936190009117, + 0.03145135939121246, -0.004538389854133129, -0.024548562243580818, -0.0003798521065618843, + -0.02683362551033497, -0.011457053944468498, -0.012909021228551865, 0.020470360293984413, + 0.045161738991737366, -0.009394149295985699, -0.004931135103106499, -0.010124100372195244, + 0.0338633693754673, -0.01286141574382782, -0.029071085155010223, -0.027801604941487312, + 0.008529316633939743, 0.01616206206381321, -0.03351426497101784, 0.012718599289655685, + 0.016344550997018814, 0.01157606765627861, 0.004685173276811838, -0.00597448879852891, + 0.004332099575549364, 0.01666191965341568, 0.0054944665171206, -0.04513000324368477, + -0.016614314168691635, 0.00629185838624835, -0.011203157715499401, -0.03535500913858414, + -0.02756357751786709, 0.010187574662268162, 0.0031022909097373486, 0.029499534517526627, + -0.048652809113264084, 0.011544330976903439, -0.009267201647162437, 0.0057245600037276745, + -0.010735037736594677, 0.023755138739943504, 0.030419906601309776, 0.020248200744390488, + 0.007378850597888231, -0.008009622804820538, -0.05109655484557152, 0.013186720199882984, + 0.037925705313682556, -0.009925744496285915, 0.030880093574523926, -0.05198519304394722, + 0.003794554155319929, 0.01029865350574255, 0.02204134128987789, 0.03694185987114906, + -0.01020344253629446, 0.011972780339419842, 0.024294666945934296, -0.022549131885170937, + -0.018518535420298576, 0.04335273057222366, -0.005756296683102846, 0.02534198760986328, + -0.019169142469763756, 0.017629899084568024, 0.01702689565718174, -0.019438907504081726, + 0.05392114818096161, 0.00024298633798025548, -0.018740693107247353, -0.036116696894168854, + -0.010147903114557266, 0.014035684987902641, -0.025738699361681938, -0.01491638645529747, + -0.016788868233561516, 0.007128921803086996, 0.05665053054690361, 0.013353339396417141, + -0.038401760160923004, -0.04532042518258095, -0.030166011303663254, 0.03038816899061203, + 0.009648045524954796, -0.034910690039396286, 0.009560768492519855, -0.015059202909469604, + -0.009655979461967945, 0.04265451803803444, 0.006521951872855425, 0.001494613941758871, + -0.029959719628095627, -0.011496725492179394, 0.03487895429134369, 0.008124670013785362, + -0.016503235325217247, -0.010052692145109177, 0.026849495247006416, -0.009536965750157833, + 0.014186435379087925, -0.025500671938061714, -0.026944706216454506, 0.0042963954620063305, + 0.022771291434764862, 0.032530415803194046, -0.008616593666374683, -0.009663914330303669, + -0.01712210662662983, 0.0054547954350709915, -0.014408593997359276, 0.017550555989146233, + -0.008077064529061317, -0.014535542577505112, -0.0439557321369648, -0.02764291875064373, + -0.0007562329992651939, -0.032816048711538315, -0.018724825233221054, -0.0329747349023819, + 0.008204012177884579, -0.0178361888974905, 0.008124670013785362, 0.006398970726877451, + -0.021105099469423294, -0.003623967757448554, 0.024104245007038116, -0.028071369975805283, + -0.03306994587182999, 0.057253532111644745, -0.0035664443857967854, -0.032355863600969315, + 0.026611467823386192, 0.013575498014688492, -0.007283639628440142, -0.015138545073568821, + -0.020010173320770264, -0.027579445391893387, -0.04173414409160614, 0.02096228301525116, + 0.025929121300578117, 0.009663914330303669, 0.007577206939458847, 0.0047724503092467785, + 0.010060626082122326, -0.026595598086714745, 0.02683362551033497, 0.03313341736793518, + 0.011591936461627483, 0.0137341832742095, -0.005589677486568689, 0.025595882907509804, + 0.002243408700451255, 0.020978150889277458, 0.012226675637066364, 0.020264068618416786, + 0.007446291856467724, 0.004066301975399256, 0.013876999728381634, 0.011615739203989506, + -0.01587642915546894, 0.019248485565185547, -0.006212516222149134, -0.028864793479442596, + 0.009743256494402885, -0.015765350311994553, -0.0215176809579134, 0.0016007345402613282, + -0.012512308545410633, -0.008291289210319519, -0.03367294743657112, 0.00997334998100996, + 0.017994875088334084, -0.0018109921365976334, 0.027484234422445297, -0.029086953029036522, + -0.006529885809868574, 0.02370753325521946, -0.026103675365447998, 0.015384506434202194, + -0.012163202278316021, 0.01542417798191309, 0.009068845771253109, -0.007109086029231548, + -0.03313341736793518, -0.10352606326341629, 0.04271798953413963, 0.008362697437405586, + 0.004375737626105547, -0.01016377191990614, -0.0059308502823114395, -0.03259389102458954, + -0.008164340630173683, 0.029991457238793373, 0.005018411669880152, -0.010219311341643333, + -0.0028126908000558615, -0.016868211328983307, 0.0064981491304934025, 0.036180172115564346, + 0.016439761966466904, -0.0006154000875540078, -0.042337145656347275, -0.023929690942168236, + 0.010362127795815468, -0.028420476242899895, -0.0069424668326973915, 0.016709525138139725, + -0.004482849966734648, -0.0002610863302834332, -0.0030705539975315332, + -0.00046663294779136777, 0.04989055171608925, -0.006121272221207619, -0.02535785548388958, + -0.004153578542172909, 0.005161228124052286, -0.009949547238647938, -0.02948366478085518, + -0.0173918716609478, -0.02270781807601452, 0.01236155815422535, 0.015622533857822418, + 0.004788318648934364, 0.023485373705625534, 0.014503804966807365, -0.005887211766093969, + 0.0494462326169014, 0.00027893841615878046, 0.010973065160214901, -0.0201371219009161, + -0.041226353496313095, 0.004423343110829592, 0.0132660623639822, 0.017915531992912292, + 0.03443463519215584, 0.0012665042886510491, 0.046367745846509933, -0.02699231170117855, + 0.012115596793591976, 0.042337145656347275, -0.024120112881064415, -0.015352769754827023, + 0.01712210662662983, 0.04284493997693062, -0.014487937092781067, -0.03551369532942772, + -0.023041056469082832, -0.016503235325217247, -0.0067361765541136265, -0.0031538635957986116, + 0.0187724307179451, 0.005022379104048014, 0.0077477931044995785, 0.027150996029376984, + 0.002969392342492938, 0.022850634530186653, 0.01950238086283207, 0.014289580285549164, + -0.010005086660385132, 0.007053546607494354, 0.0022672114428132772, 0.0025330085773020983, + 0.0051572611555457115, 0.011139684356749058, 0.034371163696050644, -0.012710665352642536, + 0.0003813397779595107, 0.016725394874811172, -0.00430432939901948, 0.028801320120692253, + -0.023310819640755653, 0.00979086197912693, 0.028420476242899895, 0.024278799071907997, + -0.01848679780960083, 0.021105099469423294, 0.0057245600037276745, 0.0057523297145962715, + 0.010338325053453445, -0.015043334104120731, -0.04922407492995262, -0.012837613001465797, + -0.022644342854619026, 0.00027769868029281497, -0.009306873194873333, -0.03405379131436348, + 0.022263498976826668, -0.02415185049176216, -0.007489929907023907, 0.029626481235027313, + 0.02554827742278576, 0.00686709163710475, 0.017550555989146233, 0.010147903114557266, + -0.012385360896587372, 0.00464550219476223, -0.0002623260661493987, -0.016709525138139725, + 0.013115311972796917, -0.04751027747988701, -0.020470360293984413, 0.026849495247006416, + -0.022580869495868683, -0.016582578420639038, 0.06823453307151794, -0.014360988512635231, + 0.07851731777191162, 0.011861700564622879, -0.03608496114611626, -0.035831063985824585, + 0.0015918085118755698, 0.010401799343526363, -0.03367294743657112, 0.016899948939681053, + -0.006922631058841944, 0.0077200233936309814, 0.0009258275385946035, 0.027753999456763268, + 0.021168572828173637, 0.009354478679597378, 0.0032808114774525166, 0.01728079281747341, + 0.020454490557312965, 0.014614884741604328, -0.009552834555506706, 0.008449974469840527, + 0.00028811238007619977, 0.02837287075817585, 0.038116127252578735, 0.006212516222149134, + 0.009663914330303669, -0.005831672344356775, -0.022914107888936996, 0.008957765996456146, + 0.0027631018310785294, -0.03468853235244751, -0.0448761060833931, 0.0018556222785264254, + -0.014027750119566917, -0.010623957961797714, -0.023183872923254967, 0.059824228286743164, + -0.013480287045240402, 0.011917239986360073, 0.004248789977282286, -0.0038857979234308004, + -0.032530415803194046, -0.02946779690682888, 0.03186393901705742, 0.015035400167107582, + 0.005327847320586443, 0.008941897191107273, -0.009259267710149288, 0.023406030610203743, + -0.031625911593437195, 0.023215608671307564, 0.012829679064452648, 0.013900802470743656, + -0.03449811041355133, 0.04265451803803444, -0.019518250599503517, 0.055698420852422714, + -0.019423039630055428, -0.0017782633658498526, -0.025056354701519012, 0.0060776337049901485, + 0.029721692204475403, 0.0031221264507621527, -0.007105119060724974, -0.027420761063694954, + -0.019565856084227562, -0.022279368713498116, 0.009076779708266258, 0.017629899084568024, + 0.001988520845770836, -0.025960858911275864, 0.002304899040609598, -0.02994385175406933, + -0.04582821577787399, 0.009536965750157833, -0.010258982889354229, -0.012623388320207596, + -0.00969565100967884, -0.00046564117656089365, -0.01867721974849701, 0.024088377133011818, + 0.016693657264113426, 0.03459332138299942, 0.012004517018795013, -0.011187289841473103, + -0.010235180146992207, 0.020613176748156548, 0.020010173320770264, 0.01683647371828556, + 0.018962852656841278, 0.019819751381874084, 0.003445447189733386, -0.02370753325521946, + 0.017169712111353874, 0.009306873194873333, 0.011750620789825916, 0.011536396108567715, + 0.030911829322576523, 0.012782073579728603, -0.023739269003272057, 0.0247231163084507, + 0.03176872804760933, -0.05703137442469597, -0.03348252549767494, -0.05112829431891441, + 0.02407250739634037, 0.012599585577845573, -0.019264353439211845, -0.022374579682946205, + -0.009425886906683445, 0.007232067175209522, -0.003631901927292347, -0.0260878074914217, + -0.010044758208096027, -0.03141961991786957, 0.00041580418474040926, 0.01821703277528286, + 0.029785167425870895, -0.032086096704006195, -0.0009654987952671945, 0.016582578420639038, + -0.02005777880549431, -0.015939904376864433, -0.012020385824143887, -0.011695081368088722, + 0.06747284531593323, 0.006129206623882055, -0.023406030610203743, -0.002531025093048811, + -0.03827481344342232, -0.014178501442074776, 0.029610613361001015, -0.03779875859618187, + -0.0013775838306173682, -0.0012526194332167506, 0.004463014658540487, 0.012337755411863327, + -0.007370916195213795, 0.003939353860914707, -0.005228669382631779, -0.014472068287432194, + 0.013670708984136581, -0.025024617090821266, 0.042971886694431305, 0.01605098322033882, + 0.031070515513420105, -0.0035029705613851547, 0.00480418698862195, -0.002124394988641143, + 0.05300077423453331, 0.018248770385980606, -0.027611183002591133, -0.01395634189248085, + 0.003760833526030183, 0.003324449760839343, 0.00969565100967884, -0.004585995338857174, + -0.006105403881520033, 0.028404608368873596, -0.028944136574864388, 0.022311104461550713, + 0.006625096779316664, -0.032816048711538315, 0.00897363480180502, 0.035481955856084824, + -0.020819466561079025, 0.002610367489978671, -0.0021779511589556932, -0.023675795644521713, + -0.0020192661322653294, 0.016598446294665337, 0.0302136167883873, -0.02689710073173046, + -0.021120967343449593, 0.006720307748764753, -0.0054944665171206, -0.002463584067299962, + -0.00716462591663003, -0.013377142138779163, 0.03440289944410324, -0.009211662225425243, + 0.05154087394475937, -0.007283639628440142, -0.052302561700344086, -0.010211377404630184, + 0.004609798081219196, 0.024643773213028908, -0.03161004185676575, 0.025119828060269356, + -0.015090939588844776, 0.01712210662662983, -0.031165726482868195, -0.002084723673760891, + 0.0031875839922577143, -0.010909590870141983, 0.0009580604382790625, -0.011504659429192543, + 0.0045304554514586926, 0.026690809056162834, 0.012012450955808163, 0.042876675724983215, + -0.00979086197912693, 0.009243398904800415, 0.06341050565242767, 0.006871058605611324, + -0.011917239986360073, -0.022469790652394295, -0.0021997701842337847, -0.003735047299414873, + 0.018264638260006905, -0.003147912910208106, 0.04532042518258095, -0.015939904376864433, + 0.00028662470867857337, 0.009965415112674236, 0.03697359561920166, -0.00498667499050498, + 0.033165156841278076, -0.003842159640043974, -0.02964235097169876, 0.015789153054356575, + -0.004879562649875879, 0.002283079782500863, -0.028864793479442596, -0.031625911593437195, + -0.01748708263039589, 0.025326119735836983, 0.012202872894704342, 0.012060056440532207, + 0.010100297629833221, 0.025786304846405983, 0.025008749216794968, 0.0021779511589556932, + 0.015709809958934784, -0.011655409820377827, -0.016995159909129143, -0.03503764048218727, + 0.012655124999582767, 0.0494462326169014, 0.017423609271645546, -0.005982422735542059, + 0.02910282090306282, 0.023961428552865982, -0.0025052388664335012, -0.015503520146012306, + 0.01098099909722805, -0.02480245940387249, -0.030959434807300568, -0.005470663774758577, + 0.0016523071099072695, 0.013567564077675343, 0.01176648959517479, -0.015805020928382874, + 0.02680188976228237, -0.027658788487315178, 0.0017584277084097266, -0.015249624848365784, + 0.002776986686512828, 0.00553810503333807, -0.013694511726498604, -0.01710623875260353, + -0.033101681619882584, 0.014480002224445343, -0.026786020025610924, 0.00686709163710475, + -0.008656264282763004, -0.004990641959011555, -0.02700817957520485, -0.015344835817813873, + 0.03798918053507805, 0.030308827757835388, -0.017820321023464203, -0.004048449918627739, + -0.008251617662608624, 0.021263783797621727, 0.0096083739772439, 0.006010192912071943, + 0.022184157744050026, -0.009267201647162437, 0.05388941243290901, 0.004558225627988577, + -0.013028034940361977, 0.028769582509994507, 0.01966106705367565, -0.01267099380493164, + -0.017740977928042412, 0.030895961448550224, 0.008259551599621773, -0.008061195723712444, + -0.003326433477923274, 0.026294097304344177, 0.0365927517414093, 0.022374579682946205, + 0.0040246471762657166, 0.03200675547122955, 0.01847092993557453, -0.005728526972234249, + 0.021105099469423294, -0.018137691542506218, 0.002084723673760891, 0.036370594054460526, + -0.010822313837707043, -0.03703707084059715, 0.019724540412425995, -0.002739299088716507, + 0.02140660025179386, 0.002015298930928111, -0.00951316300779581, 0.004359869286417961, + -0.015924034640192986, 0.013202588073909283, -0.0043519348837435246, 0.01363897230476141, + -0.010124100372195244, -0.01904219575226307, -0.022088946774601936, -0.0008345837122760713, + 0.0041734143160283566, -0.01404361892491579, 0.015733612701296806, 0.02497701160609722, + -0.03468853235244751, 0.015559060499072075, -0.028721977025270462, -0.0019081865902990103, + -0.02992798388004303, 0.019327828660607338, 0.002255310071632266, -0.03954429179430008, + -0.036370594054460526, 0.015749482437968254, 0.00928307045251131, 0.014963991940021515, + -0.029150426387786865, -0.005855475086718798, -0.021470075473189354, 0.007081316318362951, + -0.021263783797621727, 0.02005777880549431, 0.005220734979957342, -0.030229484662413597, + -0.016788868233561516, 0.0029336882289499044, 0.0029793099965900183, 0.033641211688518524, + 0.015947837382555008, -0.02518330328166485, -0.026135412976145744, 0.003842159640043974, + -0.01977214589715004, -0.003982992377132177, 0.049097124487161636, 0.008132603950798512, + -0.02096228301525116, -0.0018476879922673106, 0.01248850580304861, -0.03681490942835808, + -0.009822598658502102, -0.03275257349014282, 0.025691093876957893, -0.023723401129245758, + 0.011790292337536812, 0.0014727948000654578, 0.04646295681595802, 0.0018923181341961026, + -0.004673271905630827, 0.021105099469423294, -0.05242950841784477, 0.0023485373239964247, + -0.043511416763067245, -0.0014509755419567227, -0.012417097575962543, 0.008283354341983795, + 0.027230339124798775, -0.0019438907038420439, -0.03827481344342232, -0.028420476242899895, + -0.014710095711052418, 0.03817960247397423, 0.0018179345643147826, -0.00019662057457026094, + 0.010711234994232655, -0.0034394965041428804, -0.004625666420906782, -0.03770354762673378, + 0.006327562499791384, 0.007406620308756828, 0.02094641514122486, 0.026659073308110237, + 0.015400375239551067, 0.0009188851108774543, 7.122227543732151e-5, 0.015217887237668037, + -0.04189283028244972, -0.021184442564845085, -0.005795968230813742, -0.028261791914701462, + 0.02664320357143879, 0.019835619255900383, -0.017058633267879486, 0.015987509861588478, + -0.0042646583169698715, 0.06153802573680878, 0.007172560319304466, 0.017788583412766457, + 0.005998291540890932, -0.020613176748156548, -0.03259389102458954, -0.037925705313682556, + -0.009648045524954796, -0.058713436126708984, 0.011282500810921192, -0.0007656548987142742, + 0.04138503596186638, -0.023406030610203743, -0.004478882998228073, -0.05366725102066994, + -0.010520813055336475, 0.0013775838306173682, -0.009822598658502102, 0.030991172417998314, + -0.0338633693754673, -0.014963991940021515, 0.03200675547122955, -0.0205973070114851, + 0.009227530099451542, 0.013440615497529507, -0.019899094477295876, -0.015963707119226456, + -0.01354376133531332, -0.049287546426057816, -0.0034811513032764196, -0.033450789749622345, + 0.018708957359194756, 0.018835904076695442, 0.005256439093500376, -0.014075355604290962, + -0.020343411713838577, 0.0061966474168002605, -0.0042051514610648155, -0.020930545404553413, + -0.027595313265919685, 0.003177666338160634, 0.010639826767146587, 0.03313341736793518, + 0.0025171402376145124, -0.022390447556972504, -0.04071855917572975, -0.00016091646102722734, + 0.007958050817251205, -0.03268910199403763, -0.008616593666374683, -0.02902347967028618, + 0.027976159006357193, -0.015765350311994553, 0.008029459044337273, -0.009687717072665691, + 0.006926598493009806, 0.027611183002591133, -0.018534403294324875, 0.009346543811261654, + 0.013797656632959843, -0.0029832771979272366, -0.023659927770495415, 0.02508809231221676, + -0.02353297919034958, 0.01628107577562332, -0.008156406693160534, 0.020438622683286667, + -0.04798633232712746, 0.015487652271986008, -0.02115270495414734, -0.00448681740090251, + 0.0160271804779768, -0.03484721854329109, -0.038306549191474915, -0.0033918910194188356, + 0.012329821474850178, 0.03430768847465515, 0.027753999456763268, 0.0022771290969103575, + -0.01589229889214039, 0.006355332676321268, -0.013305733911693096, 0.0066131954081356525, + 0.02269194833934307, 0.019518250599503517, 0.017264923080801964, -0.006954368203878403, + -0.01294869277626276, 0.04747853800654411, 0.018343981355428696, 0.0146466214209795, + -0.03275257349014282, 0.0011812112061306834, 0.029229769483208656, 0.008926029317080975, + 0.012321886606514454, -0.008997437544167042, -0.02497701160609722, 0.01189343724399805, + 0.023025186732411385, -0.00028116992325522006, -0.011591936461627483, 0.004098039120435715, + -0.015765350311994553, -0.015209953300654888, -0.00860865879803896, 0.03722749277949333, + -0.0019171126186847687, 0.060617655515670776, 0.007973918691277504, -0.017534688115119934, + -0.006986105348914862, -0.03357773646712303, -0.01748708263039589, -0.013210522942245007, + 0.0067917159758508205, -0.014757701195776463, -0.009751190431416035, -0.02050209604203701, + -0.015075070783495903, -0.010806445963680744, 0.005716625601053238, 0.010639826767146587, + -0.037386175245046616, -0.008592790924012661, 0.026849495247006416, -0.016328681260347366, + 0.03194328024983406, 0.023041056469082832, -0.001127655035816133, 0.006153009366244078, + -0.034466374665498734, 0.04246409609913826, 0.00524057075381279, -0.026468651369214058, + -0.01637628674507141, 0.015368638560175896, -0.0035029705613851547, 0.021628759801387787, + -0.0014489920577034354, -0.006279957015067339, 0.013353339396417141, -0.009045043028891087, + -0.046272534877061844, -0.02353297919034958, -0.049573179334402084, 0.009497295133769512, + -0.0036814911291003227, -0.00044679734855890274, -0.025421330705285072, + -0.0020311675034463406, -0.006779814604669809, 0.0066766696982085705, -0.01542417798191309, + -0.020343411713838577, -0.024183588102459908, -0.038116127252578735, -0.017185581848025322, + 0.024865932762622833, -0.0037707514129579067, 0.010973065160214901, 0.03862391784787178, + -0.014416528865695, -0.04100419208407402, -0.004105973057448864, 0.008965699933469296, + -0.00028216169448569417, 0.023723401129245758, -0.020724255591630936, 0.0676632672548294, + -0.020010173320770264, 0.005617447663098574, -0.014345120638608932, -0.021533548831939697, + 0.029626481235027313, 0.05023965612053871, -0.02508809231221676, 0.005716625601053238, + -0.016185864806175232, -0.013845262117683887, -0.014813240617513657, -0.0022017539013177156, + -0.028975874185562134, 0.004665337968617678, 0.027706393972039223, -0.019327828660607338, + -0.0009674823377281427, -0.006839321460574865, -0.02591325342655182, -0.0012040220899507403, + 0.014115027152001858, 0.006351365242153406, -0.004201184492558241, -0.018074216321110725, + -0.02370753325521946, 0.04097245633602142, -0.02535785548388958, -0.007997721433639526, + -0.014202304184436798, -0.00716462591663003, 0.011829963885247707, 0.0539846234023571, + 0.02042275480926037, -0.008156406693160534, 0.006160943303257227, -0.025976726785302162, + -0.010235180146992207, 0.016773000359535217, -0.029324980452656746, 0.022469790652394295, + -0.0023802744690328836, 0.011544330976903439, 0.008616593666374683, 0.009624242782592773, + 0.010076494887471199, -0.025024617090821266, -0.011377711780369282, -0.03256215155124664, + -0.021946130320429802, -0.03319689258933067, 0.009624242782592773, -3.514624040690251e-5, + 0.0023882086388766766, -0.02242218516767025, -0.015305164270102978, -0.021374864503741264, + -0.030895961448550224, -0.0393538698554039, 0.013615169562399387, 0.0016195783391594887, + -0.024913538247346878, -0.03038816899061203, -0.03643406555056572, 0.016709525138139725, + 0.04217846319079399, -0.020629044622182846, 0.00021534044935833663, -0.027262074872851372, + -0.014083290472626686, -0.01176648959517479, + ], + index: 63, + }, + { + title: "Athletics at the 2004 Summer Olympics \u2013 Women's heptathlon", + text: "The women's heptathlon competition at the 2004 Summer Olympics in Athens was held at the Olympic Stadium on 20\u201321 August.", + vector: [ + -0.009629865176975727, -0.027945220470428467, -0.013117847964167595, 0.03463166952133179, + -0.06854644417762756, -0.0287034772336483, 0.010126179084181786, 0.008196069858968258, + 0.05266440287232399, -0.002536714542657137, -0.042958710342645645, -0.04946593567728996, + -0.028731049969792366, -0.002669409615918994, -0.01298687607049942, 0.004625368397682905, + -0.017233114689588547, 0.019466526806354523, -0.030109699815511703, -0.01341425720602274, + 0.00825121533125639, 0.0427105538547039, -0.014255233108997345, 0.014310379512608051, + -0.01493077166378498, -0.017508845776319504, 0.005349159240722656, -0.024057429283857346, + 0.023974711075425148, 0.008168497122824192, 0.01832224801182747, 0.015109995380043983, + 0.01909429207444191, -0.014475816860795021, -0.03645148500800133, 0.01275939866900444, + 0.008416653610765934, 0.017260689288377762, -0.02837260067462921, -0.0011210141237825155, + -0.0033294379245489836, 0.06810527294874191, -0.007582570891827345, 0.07207578420639038, + -0.003787838853895664, -0.015675241127610207, 0.003377690678462386, -0.003022688440978527, + -0.033280592411756516, -0.011663372628390789, -0.02630462683737278, 0.013889891095459461, + -0.005518043413758278, -0.018225742504000664, 0.013117847964167595, -0.05150633677840233, + 0.043096575886011124, 0.07505366206169128, 0.02287179045379162, -0.0021610327530652285, + -0.014475816860795021, 0.022940723225474358, -0.018666910007596016, -0.0016397309955209494, + -0.010188218206167221, -0.03286699950695038, 0.02434694580733776, 0.1148139089345932, + 0.017715642228722572, 0.044061630964279175, 0.003932597115635872, -0.007775581907480955, + -0.0301924180239439, -0.018735842779278755, -0.017191756516695023, -0.058013562113046646, + 0.014434457756578922, -0.027628131210803986, -0.046984367072582245, 0.01675058901309967, + -0.013586588203907013, -0.06314213573932648, -0.022099748253822327, 0.026538997888565063, + 0.022499555721879005, 0.008520052768290043, 0.005452557932585478, -0.0714140310883522, + -0.04524726793169975, 0.00589372543618083, -0.010863755829632282, 0.01314542070031166, + -0.02052808739244938, 0.0017233116086572409, -0.03650663048028946, 0.02285800501704216, + -0.0024643356446176767, 0.02077624388039112, -0.016585150733590126, -0.030826596543192863, + -0.019177010282874107, -0.009188697673380375, 0.007996165193617344, -0.015385725535452366, + 0.04326201230287552, 0.04910748451948166, 0.03669964149594307, 0.026842301711440086, + -0.005904065445065498, -0.017329620197415352, -0.010188218206167221, -0.005804113112390041, + 0.004339298699051142, -0.019190797582268715, -0.03402506187558174, 0.002650453243404627, + -0.05928191915154457, -0.026332201436161995, -0.020624592900276184, 0.03929150477051735, + 0.0118563836440444, -0.0006074673146940768, 0.02709045819938183, 0.022899363189935684, + 0.023657621815800667, 0.00893364753574133, 0.0015690751606598496, 0.03576216101646423, + -0.018556619063019753, -0.01442067138850689, 0.001850836561061442, 0.020541874691843987, + -0.0015130675164982677, 0.010567346587777138, 0.0009056002018041909, 0.0012020098511129618, + -0.030936889350414276, -0.026925019919872284, 0.022223826497793198, -0.008416653610765934, + -0.0067381481640040874, 0.009002579376101494, -0.019714685156941414, -0.014186300337314606, + -0.05462208390235901, -0.008106458000838757, 0.025105202570557594, -0.01302134245634079, + -0.012283764779567719, -0.027366187423467636, -0.013786492869257927, -0.018542831763625145, + -0.031653787940740585, -0.016157768666744232, -0.009636757895350456, 0.038547031581401825, + 0.01668165624141693, -0.030026979744434357, -0.005797219928354025, 0.03813343867659569, + -0.016061263158917427, -0.02487083151936531, -0.01818438433110714, 0.0013777875574305654, + 0.001295930240303278, -0.0001702847221167758, -0.0039808498695492744, 0.028400175273418427, + -0.007754901889711618, -0.0015845849411562085, -0.016585150733590126, -0.04974166303873062, + -0.003267398802563548, 0.0062900870107114315, -0.053739748895168304, 0.04149734228849411, + 0.027504052966833115, 0.054070621728897095, 0.01158754713833332, -0.015468444675207138, + -0.006062610074877739, 0.019563032314181328, 0.0014406885020434856, -0.00423590000718832, + -0.051919929683208466, 0.025408506393432617, 0.0014915261417627335, -0.020693525671958923, + -0.002505694981664419, 0.037830136716365814, 0.038216158747673035, -0.0032846317626535892, + 0.07279267907142639, 0.03948451578617096, -0.054401498287916183, -0.027697063982486725, + 0.004197986796498299, -0.03170893341302872, 0.0016819520387798548, 0.010787930339574814, + -0.005628335755318403, -0.026856087148189545, -0.041993655264377594, 0.00909219216555357, + -0.03170893341302872, -0.004263472743332386, 0.044392507523298264, -0.03427322208881378, + 0.018404968082904816, 0.015578736551105976, 0.023588689044117928, 0.05327100679278374, + 0.0027538519352674484, -0.007996165193617344, -0.004411677364259958, 0.04781155660748482, + 0.043537743389606476, 0.023133734241127968, -0.039070919156074524, 0.009850448928773403, + -0.03129533678293228, -0.008719956502318382, -0.016461072489619255, 0.06496195495128632, + 0.007623930461704731, 0.012166579253971577, -0.003818858414888382, -0.015275433659553528, + 0.002186882309615612, 0.0257255956530571, -0.011105019599199295, -0.04058743268251419, + -0.01778457500040531, 0.003763712476938963, 0.05280226469039917, 0.05156148225069046, + 0.01622670143842697, 0.004194540437310934, 0.05277469381690025, -0.011442788876593113, + -0.04927292466163635, 0.003960169851779938, -0.022513343021273613, -0.05528383329510689, + -0.05194750428199768, 0.0035534685011953115, 0.009050832130014896, 0.020610805600881577, + -0.021658578887581825, 0.03576216101646423, 0.029889116063714027, 0.002171372529119253, + -0.022678779438138008, 0.02936522848904133, 0.06021939963102341, 0.004942457657307386, + 0.04604688659310341, -0.0523335263133049, -0.028951633721590042, -0.003908470738679171, + -0.03876761719584465, 0.03416292741894722, 0.024953551590442657, -0.006510671228170395, + 0.0038981307297945023, 0.05305042117834091, -0.01792244054377079, 0.012656000442802906, + -0.029833970591425896, -0.03209495544433594, -0.03612060844898224, 0.0030261350329965353, + 0.006090183276683092, 0.0024419324472546577, 0.046791356056928635, 0.021920522674918175, + 0.02525685355067253, -0.018074091523885727, -0.011208418756723404, -0.018818562850356102, + -0.035817306488752365, -0.0017388213891535997, 0.035955172032117844, -0.03377690538764, + 0.024636462330818176, -0.002540161134675145, 0.01695738546550274, -0.00843733362853527, + 0.03551400452852249, 0.02507762983441353, 0.02442966401576996, -0.0012347527081146836, + -0.05136847123503685, 0.023037228733301163, 0.00925073679536581, 0.030440574511885643, + -0.038161009550094604, 0.01143589522689581, 0.014806692488491535, -0.05878560245037079, + -0.02837260067462921, 0.05015525966882706, -0.016847094520926476, -0.010450161062180996, + -0.056276462972164154, -0.050954874604940414, 0.012738718651235104, -0.021796444430947304, + -0.04623989388346672, 0.020569447427988052, 0.015082422643899918, 0.020624592900276184, + 0.008003058843314648, 0.02077624388039112, 0.016612723469734192, 0.005090662278234959, + 0.002112779999151826, 0.04188336431980133, -0.019121864810585976, 0.0036086144391447306, + -0.009085298515856266, 0.04896962270140648, -0.009912488050758839, 0.050872158259153366, + -0.007203442510217428, -0.012421629391610622, 0.001780180842615664, -0.05346401780843735, + 0.0025746275205165148, -0.023023443296551704, -0.010470841079950333, -0.04855602607131004, + -0.04221424087882042, 0.017384767532348633, -0.0011735751759260893, -0.05572500079870224, + -0.03181922435760498, -0.024112574756145477, 0.04422706738114357, 0.0010787930805236101, + -0.021865377202630043, 0.018349820747971535, 0.010787930339574814, 0.05817899852991104, + 0.016268061473965645, 0.033032435923814774, 0.03686508163809776, 0.011111913248896599, + 0.020169638097286224, 0.07428161799907684, 0.00045280010090209544, 0.0560007318854332, + 0.03190194442868233, 0.055366553366184235, 0.010953368619084358, 0.013131634332239628, + -0.04400648549199104, -0.05657976493239403, 0.039705097675323486, -0.06876702606678009, + 0.04210394620895386, 0.009140444919466972, -0.004949350841343403, -0.026414919644594193, + -0.044833675026893616, -0.012325123883783817, 0.03642391413450241, 0.009691904298961163, + -0.020376436412334442, 0.00025052641285583377, -0.01760535128414631, 0.010043459944427013, + -0.018101664260029793, -0.02098304219543934, -0.020224783569574356, -0.009126657620072365, + -0.016847094520926476, -0.0348246805369854, -0.0039808498695492744, -0.0090577257797122, + 0.004590902011841536, 0.04817000404000282, -0.012483668513596058, 0.06556855887174606, + 0.010905115865170956, 0.05707607790827751, 0.09518194198608398, -0.05271954834461212, + -0.020555660128593445, -0.017508845776319504, 0.002026614500209689, 0.003729246323928237, + -0.052443817257881165, -0.0045288628898561, -0.02033507637679577, -0.024774327874183655, + 0.036782361567020416, 0.057517245411872864, -0.013703773729503155, -0.011849489994347095, + -0.009933168068528175, -0.036341194063425064, -0.03460409492254257, -0.05065157264471054, + 0.00577998673543334, 0.010553560219705105, -0.002169649349525571, 0.04345502331852913, + -0.02117605321109295, 0.033418457955121994, -0.039319075644016266, 0.05467722937464714, + -0.034962546080350876, -0.03752683103084564, -0.010484627448022366, 0.0025125881657004356, + 0.01895642653107643, 0.017246901988983154, -0.009367921389639378, -0.033804479986429214, + -0.03294971585273743, 0.04086316376924515, -0.031929515302181244, -0.016309421509504318, + -0.00010011363337980583, 0.007651503197848797, -0.08906073868274689, -0.02369897998869419, + -0.03416292741894722, 0.02442966401576996, -0.04298628494143486, -0.05271954834461212, + 0.013814065605401993, 0.008292575366795063, 0.03259126842021942, -0.00767907639965415, + -0.0327291339635849, 0.019204584881663322, 0.011615119874477386, 0.011987355537712574, + -0.04058743268251419, 0.01155997347086668, -0.01497213076800108, 0.010532880201935768, + -0.018280889838933945, 0.0031174705363810062, 0.011725411750376225, 0.0062349410727620125, + 0.009202484041452408, 0.02163100615143776, -0.030468149110674858, 0.0351831279695034, + -0.008561411872506142, 0.024691607803106308, 0.020817603915929794, 0.020210998132824898, + 0.006303873844444752, -0.002186882309615612, -0.038409169763326645, -0.0307163055986166, + 0.029310083016753197, 0.014186300337314606, 0.024788113310933113, -0.03135048225522041, + 0.004011869430541992, -0.009974527172744274, -0.01136006973683834, -0.0030898975674062967, + -0.003045091638341546, -0.0003642649680841714, -0.03311515599489212, -0.012201045639812946, + -0.07025596499443054, -0.025560157373547554, -0.03545885905623436, 0.050237979739904404, + -0.003262228798121214, -0.01883234828710556, 0.010208897292613983, 0.0033242679201066494, + 0.021672366186976433, 0.053215861320495605, 0.04615717753767967, -0.01988012157380581, + 0.009326562285423279, -0.01669544167816639, 0.0175915639847517, -0.062314946204423904, + -0.029199790209531784, 0.004266919568181038, 0.005414644721895456, -0.005966104567050934, + 0.08597256988286972, 0.00883024837821722, 0.010215790942311287, 0.047701265662908554, + 0.0029003333766013384, -0.017315834760665894, -0.00414284085854888, 0.013758919201791286, + 0.03838159516453743, 0.011718519032001495, -0.008009952493011951, 0.06485166400671005, + 0.03228796645998955, -0.00042738128104247153, 0.03253612294793129, 0.04761854559183121, + 0.06430020183324814, 0.014958344399929047, 0.09716720134019852, 0.03374933451414108, + -0.038271304219961166, 0.0053284792229533195, 0.024264227598905563, -0.003560361685231328, + 0.0025797972921282053, 0.001759501057676971, 0.012394056655466557, 0.008713062852621078, + 0.02143799513578415, -0.03487982600927353, -0.04111132025718689, 0.03432836756110191, + -0.004566775634884834, 0.019177010282874107, -0.03838159516453743, -0.007582570891827345, + 0.00090904685202986, 0.010436374694108963, 0.05021040514111519, 0.0066140699200332165, + -0.018735842779278755, -0.024112574756145477, -0.006658875849097967, -0.023023443296551704, + -0.018473898991942406, 0.010856863111257553, -0.01042258832603693, 0.02376791276037693, + -0.023919563740491867, 0.02298208326101303, -0.022499555721879005, 0.009940060786902905, + -0.014269019477069378, -0.005997124128043652, 0.006503778044134378, 0.003667206969112158, + -0.01442067138850689, 0.015440871939063072, 0.006538243964314461, -0.002416082890704274, + -0.03408021107316017, 0.032122526317834854, -0.016116410493850708, -0.013648627325892448, + 0.016268061473965645, 0.01617155596613884, 0.007947913371026516, -0.004439250566065311, + 0.014641255140304565, 0.003712013131007552, 0.02163100615143776, -0.02357490174472332, + 0.0035362353082746267, -0.029640959575772285, 0.013524549081921577, 0.07896903157234192, + -0.015964757651090622, 0.01851525902748108, 0.01104298047721386, 0.007637716829776764, + 0.023671407252550125, -0.010767250321805477, -0.024691607803106308, -0.018363608047366142, + -0.011470361612737179, -0.02831745520234108, -0.013972610235214233, 0.01275939866900444, + 0.035955172032117844, -0.0003345378499943763, 0.025546370074152946, -0.021341489627957344, + 0.012649106793105602, 0.01818438433110714, 0.008878501132130623, -0.0015285772969946265, + -0.06430020183324814, 0.008009952493011951, -0.011759878136217594, -0.029172217473387718, + 0.016212916001677513, -0.013827851973474026, 0.019824976101517677, 0.01837739534676075, + -0.043289586901664734, -0.0013484912924468517, -0.027834927663207054, 0.034466229379177094, + 0.030964462086558342, 0.05663491040468216, -0.023395678028464317, -0.010077926330268383, + 0.0059557645581662655, 0.01493077166378498, -0.021065760403871536, 0.020693525671958923, + -0.031846798956394196, 0.03283942490816116, 0.028758622705936432, -0.005204400978982449, + 0.008740636520087719, -0.0034793659579008818, -0.009374815039336681, 0.0593370646238327, + 0.0005208709044381976, 0.018597979098558426, 0.05098244920372963, -0.00745159899815917, + 0.02143799513578415, 0.01988012157380581, -0.004129054490476847, 0.0018594531575217843, + 0.04486124590039253, 0.026842301711440086, -0.01832224801182747, -0.013042021542787552, + 0.003205359447747469, -0.004590902011841536, 0.004011869430541992, -0.012028714641928673, + -0.02936522848904133, 0.0008883671252988279, -0.001980084925889969, 0.028675904497504234, + 0.031267765909433365, -0.03281185030937195, 0.03372175991535187, 0.01035365555435419, + -0.008127137087285519, 0.0068346536718308926, -0.00843733362853527, 0.024250440299510956, + -0.007610143627971411, -0.03333573788404465, 0.0002776685869321227, 0.044116776436567307, + -0.01657136343419552, -0.024126362055540085, 0.0011718518799170852, -0.01528922002762556, + 0.03998082876205444, 0.010146858170628548, 0.022251399233937263, -0.004587455186992884, + -0.03306001052260399, -0.01688845269382, -0.011939102783799171, -0.013552121818065643, + -0.05103759467601776, -0.0030554314143955708, 0.012028714641928673, 0.03314272686839104, + 0.015178928151726723, -0.0002248921518912539, 0.004094588104635477, -0.028400175273418427, + 0.007065577432513237, -0.0038326450157910585, 0.014269019477069378, -0.04395133629441261, + 0.0009099085000343621, 0.015744173899292946, -0.02980639599263668, -0.014848052524030209, + 0.0023816165048629045, 0.0112015251070261, -0.02565666288137436, -0.002946862718090415, + -0.003594827838242054, -0.030936889350414276, -0.032508548349142075, -0.016847094520926476, + -0.032508548349142075, 0.00782383419573307, 0.018804775550961494, 0.011373856104910374, + 0.018225742504000664, -0.0343007929623127, 0.029199790209531784, 0.03394234552979469, + 0.026318414136767387, 0.018225742504000664, -0.05994366854429245, 0.015440871939063072, + 0.011242884211242199, -0.009905594401061535, -0.018349820747971535, -0.05236109718680382, + -0.013531442731618881, 0.037251103669404984, 0.006348679773509502, -0.0006940637249499559, + 0.042765699326992035, 5.923883509240113e-5, -0.006486544851213694, -0.04138705134391785, + -0.019397594034671783, 0.031185045838356018, -0.019852548837661743, -0.012428523041307926, + 0.01220793928951025, -0.010980941355228424, 0.05489781126379967, -0.025146562606096268, + 0.020100705325603485, 0.01954924687743187, 0.027765996754169464, 0.008754422888159752, + 0.02611161582171917, -0.007065577432513237, -0.03890548273921013, 0.013662413693964481, + -0.03292214497923851, -0.030688732862472534, -0.040808018296957016, -0.0181154515594244, + 0.003894684137776494, 0.0032398258335888386, 1.929301106429193e-5, 0.004518522880971432, + 0.014034649357199669, -0.0011623736936599016, 0.029503094032406807, 0.0009805642766878009, + -0.016405925154685974, 0.03259126842021942, -0.00886471476405859, 0.014765333384275436, + 0.008733742870390415, -0.06727807968854904, 0.0004937287885695696, 0.007754901889711618, + 0.013876104727387428, -0.01376581285148859, 0.02369897998869419, 0.036975372582674026, + -0.009629865176975727, -0.07516396045684814, 0.007596357259899378, -0.03995325416326523, + 0.034962546080350876, -0.018915068358182907, 0.011677158996462822, -0.004680514335632324, + 0.025753168389201164, -0.013510762713849545, -0.033859625458717346, -0.004756339825689793, + -0.010112391784787178, 0.00925762951374054, -0.016667868942022324, -0.019245943054556847, + 0.01746748574078083, -0.009423067793250084, -0.0010262320283800364, -0.003763712476938963, + 0.014055329374969006, 0.011815023608505726, -0.00825121533125639, -0.01954924687743187, + 0.013331538066267967, 0.009002579376101494, -0.011828810907900333, -0.0027762548997998238, + -0.011925316415727139, -0.019893908873200417, -0.020555660128593445, 0.018018946051597595, + 0.0005910958861932158, -0.024760540574789047, -0.014985917136073112, -0.029392801225185394, + -0.05999881401658058, -0.03181922435760498, 0.006231494713574648, -0.017481273040175438, + -0.03612060844898224, 0.001985254930332303, 0.007430919446051121, -0.008451119996607304, + 0.017095251008868217, 0.01786729507148266, -0.04014626517891884, -0.016998745501041412, + 0.048142433166503906, 0.015675241127610207, 0.060109108686447144, 0.010608705691993237, + 0.018349820747971535, 0.023326745256781578, 0.0161026231944561, -0.017743214964866638, + 0.0034948757383972406, -0.016350779682397842, -0.045357558876276016, -0.056910641491413116, + -0.02649763785302639, 0.014448244124650955, -0.00903015211224556, -0.030550867319107056, + 0.006962178740650415, 0.014096688479185104, -0.007203442510217428, 0.031157473102211952, + -0.023202667012810707, -0.038023147732019424, 0.017246901988983154, -0.008402867242693901, + 0.01093958131968975, -0.011801237240433693, -0.0036741001531481743, 0.017122823745012283, + -0.01552359014749527, 0.042434822767972946, 0.012869690544903278, -0.009168017655611038, + -0.02955823950469494, -0.010560452938079834, 0.01428280584514141, -0.0070138778537511826, + -0.010450161062180996, -0.033087581396102905, 0.03234311193227768, 0.029916688799858093, + -0.038740042597055435, -0.015316792763769627, 0.00948510691523552, 0.017329620197415352, + 0.007368880324065685, 0.021065760403871536, -0.01000209990888834, 0.011994248256087303, + 0.0174123402684927, -0.003076111199334264, -0.009850448928773403, -0.021217411383986473, + -0.013648627325892448, 0.03940179571509361, 0.09038424491882324, 0.018556619063019753, + 0.018983999267220497, -0.011883956380188465, -0.006962178740650415, 0.011939102783799171, + -0.03294971585273743, -0.010215790942311287, -0.011456575244665146, 0.010787930339574814, + -0.023326745256781578, -0.010519093833863735, 0.0307163055986166, -0.02942037582397461, + 0.02864833176136017, 0.005452557932585478, 0.03245340287685394, -0.012669786810874939, + 0.0026022004894912243, -0.012021820992231369, -0.015109995380043983, 0.02287179045379162, + 0.018611764535307884, -0.01778457500040531, -0.007989272475242615, 0.003953276667743921, + -0.014269019477069378, 0.005738627631217241, 0.017688069492578506, 0.0039222571067512035, + -0.004011869430541992, 0.026318414136767387, -0.057241518050432205, 0.03636876866221428, + 0.003041644813492894, 0.02999940700829029, -0.008147817105054855, 0.0016095730243250728, + -0.0509273037314415, 0.031984660774469376, 0.007692862767726183, -0.006159115582704544, + 0.04703951254487038, 0.012835224159061909, -0.013683093711733818, 0.0009564378997310996, + -0.011690945364534855, 0.023547329008579254, 0.017632924020290375, -0.010967154987156391, + 0.021837804466485977, -0.010856863111257553, -0.010870649479329586, -0.022265184670686722, + 0.021644793450832367, -0.03909849375486374, -0.00730684120208025, 0.035238273441791534, + -0.050237979739904404, 0.0126008540391922, -0.022954510524868965, -0.03862975165247917, + 0.006545137148350477, -0.016350779682397842, 0.03187436982989311, -0.00600746413692832, + 0.02142420969903469, -0.003877450944855809, -0.01825331524014473, 0.027628131210803986, + -0.027131816372275352, -0.010057246312499046, -0.012476775795221329, -0.02376791276037693, + -0.03424564749002457, -0.054125770926475525, -0.03253612294793129, -0.01007103268057108, + -0.009533359669148922, 0.012704253196716309, 0.0007280991412699223, 0.034659240394830704, + 0.056138597428798676, -0.008781995624303818, 0.026925019919872284, -0.0027211089618504047, + -0.04615717753767967, 0.05241624265909195, -0.020927894860506058, 0.04072529822587967, + 0.03771984204649925, -0.029144644737243652, 0.02266499400138855, -0.0054284315556287766, + -0.022223826497793198, -0.006017804145812988, -0.021672366186976433, -0.0018146471120417118, + 0.029723677784204483, -0.01617155596613884, 0.07279267907142639, 0.018156809732317924, + -0.01139453612267971, -0.013827851973474026, 0.05288498476147652, -0.02363004721701145, + -0.0027693617157638073, -0.004018762614578009, -0.0070586842484772205, -0.010208897292613983, + -0.007775581907480955, 0.006982858292758465, -0.01282833144068718, 0.015826893970370293, + -0.04825272411108017, 0.02604268491268158, 0.025298213586211205, -0.023464610800147057, + -0.015895826742053032, -0.006827760487794876, 0.004925224464386702, -0.05131332576274872, + 0.045109402388334274, 0.015882039442658424, -0.022430622950196266, 0.013627948239445686, + 0.018294675275683403, 0.012028714641928673, 0.007134509738534689, 0.006048823706805706, + -0.0035465750843286514, 0.03052329458296299, 0.038409169763326645, -0.013627948239445686, + -0.026538997888565063, -0.009926274418830872, -0.05117546021938324, 0.014269019477069378, + 0.010098605416715145, 0.0035672548692673445, 0.021520715206861496, -0.03890548273921013, + 0.019204584881663322, -0.009312775917351246, -0.02947552129626274, -0.029117072001099586, + 0.01967332512140274, -0.014875625260174274, 0.015151355415582657, -0.0034965991508215666, + -0.003093344159424305, 0.012290658429265022, 0.0026607930194586515, 0.025298213586211205, + -0.04067015275359154, 0.05696578696370125, -0.020569447427988052, 0.04604688659310341, + 0.0264287069439888, 0.01337979082018137, 0.007361987140029669, 0.003701673122122884, + 0.0009883191669359803, 0.03920878469944, 0.03871247172355652, 0.03176407888531685, + -0.029172217473387718, 0.017757002264261246, 0.007727329153567553, 0.005752413999289274, + -0.017881080508232117, 0.014393097721040249, 0.020183425396680832, 0.006241834256798029, + -0.014020862989127636, 0.016971172764897346, 0.011615119874477386, 0.00023329330724664032, + 0.030082127079367638, -0.015027277171611786, 0.005111342296004295, -0.0020386776886880398, + 0.019852548837661743, -0.04885932803153992, -0.024512384086847305, 0.023933351039886475, + -0.0024695054162293673, 0.05713122338056564, -0.02117605321109295, 0.03962237760424614, + -0.010932688601315022, -0.010167538188397884, -0.004487503319978714, -0.024002283811569214, + -0.004956244025379419, -0.033804479986429214, 0.0008383910753764212, -0.0058316863141953945, + -0.023685194551944733, 0.03612060844898224, -0.017053890973329544, -0.010794823989272118, + -0.01298687607049942, -0.006307320203632116, 0.004222113173455, 0.009953847154974937, + 0.011987355537712574, -0.019563032314181328, -0.011346283368766308, 0.04695679247379303, + 0.0013062701327726245, -0.01337979082018137, -0.024043641984462738, -0.015234074555337429, + -0.012876584194600582, -0.01509620901197195, 0.006827760487794876, -0.01026404369622469, + -0.020803816616535187, 0.012731825932860374, 0.003320821328088641, -0.006286640651524067, + 0.01555116381496191, 0.004907991271466017, -0.0029347995296120644, 0.03625847399234772, + -0.0076859695836901665, 0.03038542903959751, -0.0023626601323485374, -0.037499260157346725, + 0.0024574422277510166, -0.009298989549279213, -0.030357856303453445, 0.04993467405438423, + -0.01016064453870058, 0.016474857926368713, 0.025863459333777428, -0.03410778194665909, + 0.031074754893779755, 0.01528922002762556, -0.011911529116332531, -0.028786195442080498, + 0.0264287069439888, 0.018983999267220497, -0.006658875849097967, -0.004556435626000166, + -0.030799023807048798, -0.00867170374840498, 0.011808130890130997, 0.04709465801715851, + 0.006383146159350872, -0.0413043312728405, -0.00987112894654274, 0.01007103268057108, + 0.03499011695384979, -0.023023443296551704, 0.0030261350329965353, 0.016971172764897346, + -0.0015837233513593674, -0.01909429207444191, 0.030440574511885643, 0.03176407888531685, + -0.010408801957964897, 0.032232820987701416, 0.0166265107691288, -0.008299468085169792, + -0.03876761719584465, 0.016998745501041412, 0.0017302047926932573, -0.05611102283000946, + -0.016585150733590126, -0.016392139717936516, -0.013166100718080997, -0.004918331280350685, + 0.0341353565454483, 0.007334413938224316, -0.044392507523298264, 0.022320332005620003, + 3.7697441257478204e-6, -0.011573760770261288, -0.0025349913630634546, -0.017495058476924896, + -0.016902239993214607, 0.0030313050374388695, -0.015440871939063072, 0.008947433903813362, + 0.00568003486841917, 0.004876971710473299, 0.00021336751524358988, -0.03085416927933693, + 0.02994426153600216, 0.022775284945964813, -0.012780078686773777, -0.01182191725820303, + 0.03818858414888382, -0.022058388218283653, 0.043675608932971954, 0.0231888797134161, + 0.00883024837821722, 0.025284426286816597, 0.0006359019898809493, -0.008582091890275478, + -0.012421629391610622, -0.03157106786966324, 0.0196871105581522, 0.0014915261417627335, + 0.016833307221531868, 0.005628335755318403, 0.015537377446889877, -0.018294675275683403, + 0.009202484041452408, 0.013683093711733818, 0.00987112894654274, 0.00812024436891079, + -0.020665952935814857, -0.015054849907755852, 0.021479355171322823, -0.03918121010065079, + 0.007175869308412075, 0.04193850979208946, 0.006800187285989523, -0.010291616432368755, + 0.017246901988983154, 0.006648535840213299, -0.006024697329849005, 0.022030815482139587, + -0.016667868942022324, 0.021768871694803238, -0.0011055043432861567, 0.002965819090604782, + -0.007048344239592552, 0.00016996159683912992, -0.0019042593194171786, 0.022499555721879005, + 0.03774741664528847, 0.03493497148156166, 0.022265184670686722, -0.009519573301076889, + 0.004442697390913963, 0.011291136965155602, -0.001296791946515441, 0.0042600263841450214, + -0.02558773010969162, -0.009505786933004856, 0.0397326722741127, -0.035624295473098755, + -0.024443451315164566, 0.008306361734867096, 0.00843733362853527, 0.012731825932860374, + 0.04265540838241577, 0.004525416065007448, 0.01694360002875328, -0.009884915314614773, + 0.005101002287119627, -0.022747712209820747, -0.003176063299179077, 0.04905233904719353, + -0.01022268459200859, -0.015316792763769627, 0.003045091638341546, -0.01974225789308548, + 0.0031588301062583923, 0.010656958445906639, 0.00957471877336502, -0.005890279076993465, + 0.008685490116477013, -0.021065760403871536, 0.024195294827222824, 0.006248727906495333, + -0.024181507527828217, -0.031019607558846474, -0.0023213005624711514, -0.01806030422449112, + -0.011415216140449047, 0.003956723492592573, 0.0216172207146883, 0.01322124619036913, + -0.015109995380043983, 0.013110954314470291, 0.018363608047366142, 0.014627468772232533, + -0.03410778194665909, -0.012924836948513985, 0.021217411383986473, 0.0015820000553503633, + -0.004577115643769503, 0.01093958131968975, 0.007065577432513237, 0.0032191460486501455, + -0.013793385587632656, -0.006269407458603382, -0.01035365555435419, 0.027765996754169464, + 0.007334413938224316, -0.010560452938079834, 0.02363004721701145, -0.022251399233937263, + -0.03805071860551834, -0.011746091768145561, 0.019507886841893196, -0.002674579620361328, + -0.04215909540653229, -0.019438954070210457, -0.0025091415736824274, 0.0026642396114766598, + 0.0011425556149333715, -0.00801684521138668, -0.012649106793105602, 0.014007076621055603, + -0.01213900651782751, -0.0062246015295386314, 0.008520052768290043, 0.0539051853120327, + -0.023133734241127968, -0.013428043574094772, -0.023271599784493446, -0.026594143360853195, + -0.017426125705242157, -0.011029194109141827, -0.01528922002762556, 0.017095251008868217, + -0.011897742748260498, 0.002460888819769025, -0.0064589716494083405, 0.003691333346068859, + -0.01146346889436245, 0.00046787908650003374, -0.025573942810297012, -0.01380027923732996, + -0.01629563421010971, -0.017839720472693443, 0.0033621808979660273, -0.02656657062470913, + -0.0013657243689522147, 0.027421332895755768, 0.021865377202630043, -0.018790990114212036, + -0.021768871694803238, 0.003131257137283683, 0.010787930339574814, 0.02415393479168415, + 0.027311041951179504, -0.014406885020434856, -0.005697268061339855, -0.008347720839083195, + 0.03181922435760498, -0.01127045787870884, -0.025022484362125397, 0.02252712845802307, + -0.04290356487035751, -0.006507224403321743, 0.009443746879696846, -0.007148296572268009, + 0.010712104849517345, -0.017370980232954025, -0.0036947799380868673, 0.023340532556176186, + -0.013621054589748383, 0.017302047461271286, -0.05657976493239403, -0.02474675327539444, + -0.009464426897466183, 0.016805734485387802, -0.018267102539539337, 0.04122161120176315, + -0.014875625260174274, -0.012897263281047344, -0.044254641979932785, -0.009733263403177261, + 0.017439913004636765, -0.03645148500800133, -0.03752683103084564, 0.004353085067123175, + 0.0022334118839353323, -0.004632261581718922, -0.0002496647648513317, 0.018722057342529297, + -0.003095067571848631, -0.011497934348881245, 0.04759097099304199, 0.02130013145506382, + -0.0034380066208541393, 0.018983999267220497, -0.018391180783510208, -0.012683573178946972, + -0.005042409524321556, -0.031846798956394196, 0.00840975996106863, -0.022044600918889046, + -0.04105617478489876, -0.0066071767359972, -0.00014572753570973873, 0.013069595210254192, + 0.012745612300932407, 0.0015432254876941442, 0.004677067510783672, -0.012276871129870415, + -0.05456693843007088, 0.022913150489330292, -0.03206738084554672, 0.019507886841893196, + 0.0064451852813363075, 0.017095251008868217, -0.01629563421010971, 0.009161124005913734, + -0.014792906120419502, -0.0006996644660830498, 0.005645568482577801, 0.03824372962117195, + -0.017881080508232117, -0.01253192126750946, -0.006448631640523672, -0.033087581396102905, + -0.008630344644188881, 0.04135947674512863, 0.02287179045379162, -0.021079547703266144, + -0.01000209990888834, 0.030440574511885643, -0.0011658202856779099, 0.0020645272452384233, + 0.011918422766029835, 0.007968592457473278, -0.008299468085169792, -0.006831206846982241, + 0.0012494008988142014, 0.04193850979208946, 0.029199790209531784, 0.04011869430541992, + 0.02662171609699726, -0.009636757895350456, -0.014985917136073112, 0.017646709457039833, + 0.006431398913264275, -0.009774623438715935, -0.013297071680426598, 0.012573281303048134, + 0.0218791626393795, 0.006469311658293009, -0.03774741664528847, -0.018942641094326973, + -0.026980165392160416, -0.013524549081921577, -0.00237127672880888, -0.004239346366375685, + -0.0026090936735272408, -0.01851525902748108, 0.04248996824026108, 0.01000209990888834, + 0.019066719338297844, 0.019728470593690872, 0.008775102905929089, 0.02163100615143776, + 0.010905115865170956, -0.014792906120419502, 0.0378025621175766, -0.006693342234939337, + 0.022968295961618423, -0.0043806578032672405, -0.02487083151936531, 0.011139485985040665, + 0.009788409806787968, 0.002228241879492998, -0.0036947799380868673, 0.018101664260029793, + 0.001983531517907977, 0.007623930461704731, -0.011525508016347885, 0.04574358090758324, + -0.0018284335965290666, 0.003856771159917116, 0.015413298271596432, -0.022292757406830788, + -0.006045376881957054, 0.02655278518795967, 0.01668165624141693, 0.03661692515015602, + -0.02864833176136017, -0.010705211199820042, -0.021148478612303734, 0.03209495544433594, + -0.0003541405312716961, 0.012221725657582283, 0.006355572957545519, -0.021961882710456848, + -0.011684052646160126, 0.003722352907061577, -0.00348281254991889, -0.0343007929623127, + 0.033611468970775604, 0.010098605416715145, -0.011029194109141827, 0.04378589987754822, + 0.01688845269382, -0.012132113799452782, -0.03372175991535187, -0.017260689288377762, + -0.03940179571509361, -0.03592760115861893, -0.006703681778162718, -0.012318231165409088, + 0.018749630078673363, -0.04648805409669876, -0.01104298047721386, -0.009230056777596474, + 0.0036258476320654154, 0.002521204762160778, 0.013469402678310871, 0.013083381578326225, + -0.029640959575772285, -0.037251103669404984, 0.00493556447327137, -0.021217411383986473, + -0.01078103668987751, 0.04317929595708847, -0.04124918580055237, -0.006138435564935207, + 0.038877908140420914, 0.023216452449560165, -0.005728287622332573, -0.0008694106945767999, + -0.01986633613705635, -0.00745159899815917, 0.03369418904185295, -0.03157106786966324, + -0.0034810893703252077, -0.0042600263841450214, 0.02423665300011635, 0.004646047949790955, + -0.020031774416565895, -0.02936522848904133, -0.020431581884622574, -0.006565817166119814, + 0.006769167724996805, -0.0006811388884671032, -0.016309421509504318, -0.012538814917206764, + -0.012917943298816681, 0.049190204590559006, 0.011794344522058964, -0.026208121329545975, + 0.0003905454941559583, 0.03545885905623436, -0.026208121329545975, 0.014751547016203403, + 0.014269019477069378, 0.02558773010969162, 0.026401132345199585, 0.008947433903813362, + 0.00392915029078722, -0.05357430875301361, 0.009112871252000332, 0.01299376878887415, + -0.011118805967271328, 0.011711625382304192, 0.007610143627971411, -0.008526945486664772, + 0.0022540914360433817, -0.0018112004036083817, 0.0504034161567688, 0.012304444797337055, + -0.019563032314181328, 0.03507283702492714, 0.05735180899500847, 0.010636279359459877, + -0.0029606493189930916, 0.020238570868968964, -0.005369838792830706, 0.02422286756336689, + 0.014103582128882408, -0.030964462086558342, 0.01974225789308548, -0.02135527692735195, + 0.02884134277701378, -0.01078103668987751, -0.008699276484549046, 0.01766049675643444, + -0.004484056495130062, -0.0051630414091050625, -0.03013727255165577, -0.018294675275683403, + -0.02709045819938183, -0.006338339764624834, -0.023740340024232864, -0.004318618681281805, + ], + index: 64, + }, + { + title: "Governor General's Award for French-language poetry", + text: "This is a list of recipients of the Governor General's Award for French-language poetry. The award was created in 1981 when the Governor General's Award for French language poetry or drama was divided.", + vector: [ + 0.011040100827813148, -0.0014217814896255732, -0.018122799694538116, 0.014702661894261837, + -0.006384912878274918, -0.0030761584639549255, -0.0032432342413812876, 0.006794412154704332, + 0.006807515863329172, 0.026050705462694168, -0.022460216656327248, -0.016642050817608833, + -0.0016920510679483414, -0.014178503304719925, 0.015410277061164379, -0.013018800877034664, + 0.013536408543586731, -0.006800964009016752, -0.03168541565537453, 0.004730535671114922, + -0.012494642287492752, -0.001723172958008945, 0.03121367283165455, -0.00821619387716055, + 0.04714810848236084, 0.006715788040310144, -0.02601139433681965, -0.01805727928876877, + 0.019249742850661278, 0.023495430126786232, 0.024124421179294586, -0.0025388954672962427, + -0.02040289156138897, -0.015619940124452114, -0.01520061306655407, -0.04439627379179001, + 0.004478284157812595, 0.07804728299379349, -0.011590467765927315, -0.08517584949731827, + 0.002679763361811638, -0.021700184792280197, 0.034384835511446, -0.015711668878793716, + 0.013058112934231758, -0.016458595171570778, -0.0034561739303171635, -0.0012506108032539487, + 0.010325933806598186, 0.023390598595142365, 0.030086731538176537, 0.011498739942908287, + -0.022853335365653038, 0.020180124789476395, 0.02395406924188137, 0.00837344117462635, + 0.047331564128398895, 0.05317593738436699, 0.034620705991983414, -0.03684838116168976, + -0.07783762365579605, -0.016694465652108192, -0.013156392611563206, -0.02396717295050621, + 0.009467623196542263, 0.004904163535684347, -0.017467601224780083, 0.05220624431967735, + -0.011446324177086353, 0.024268565699458122, 0.0024357016663998365, -0.03181645646691322, + -0.03037501871585846, -0.04743639752268791, -0.010679741390049458, 0.017716577276587486, + 0.016668258234858513, -0.036507681012153625, 0.002131034154444933, -0.003226854372769594, + -0.01141356397420168, 0.03593110293149948, -0.027282480150461197, -0.0031793524976819754, + -0.00777065847069025, -0.04421281814575195, 0.01800486445426941, -0.03228819742798805, + 0.006715788040310144, 0.008681384846568108, -0.005687125958502293, 0.020953258499503136, + 0.04837988317012787, 0.019315261393785477, 0.029693610966205597, -0.018502814695239067, + 0.0576050840318203, -0.02551344223320484, 0.001306302729062736, -0.04405556991696358, + -0.04670257493853569, -0.06662061810493469, -0.02162156254053116, 0.0044356961734592915, + 0.027465935796499252, 0.01841108687222004, -0.022551944479346275, -0.07862386107444763, + 0.029850859194993973, 0.028671501204371452, -0.018948350101709366, 0.03365101292729378, + -0.018515920266509056, -0.008832080289721489, 0.03042743355035782, 0.028592877089977264, + -0.007927905768156052, 0.014270231127738953, -0.023652678355574608, -0.04667636379599571, + -0.025303779169917107, -0.036533888429403305, -0.024281669408082962, 0.012435673736035824, + -0.014348854310810566, -0.0005507765454240143, 0.017323456704616547, 0.031790249049663544, + -0.002063876250758767, 0.009008984081447124, -0.03794911876320839, 0.003931193146854639, + -0.03716287761926651, 0.02202778495848179, -0.021778808906674385, -0.01340536866337061, + -0.02242090366780758, -0.03524969890713692, -0.028619086369872093, -0.01959044486284256, + 0.0066928560845553875, -0.0030892626382410526, 0.07175737619400024, -0.07317260652780533, + -0.022067097947001457, 0.0024127697106450796, 0.0040556807070970535, 0.015121988952159882, + 0.02356095053255558, 0.018935246393084526, 0.011918067000806332, -0.008419305086135864, + 0.025461027398705482, -0.009900054894387722, 0.01961665414273739, 0.0494806170463562, + 0.058076824992895126, 0.01919732615351677, 0.028645293787121773, 0.025487234815955162, + -0.061326611787080765, -0.020560139790177345, 0.007875490002334118, 0.03042743355035782, + -0.03504003584384918, -0.030139146372675896, 0.014466790482401848, 0.0033677220344543457, + -0.012527401559054852, 0.009126920253038406, 0.026548657566308975, 0.011007340624928474, + 0.05207520350813866, -0.05755266547203064, -0.034148965030908585, -0.009657630696892738, + -0.02073049172759056, 0.032524071633815765, -0.01679929904639721, 0.07002764940261841, + 0.018227631226181984, -0.0016191601753234863, 0.023809926584362984, -0.04746260493993759, + -0.04743639752268791, 0.003813257208094001, 0.04434385895729065, 0.026863152161240578, + -0.02403269335627556, 0.014846805483102798, -0.010456973686814308, -0.049690280109643936, + 0.020953258499503136, -0.054302878677845, 0.056504350155591965, 0.017651056870818138, + 0.0041113728657364845, -0.019026974216103554, -0.024137524887919426, -0.024884451180696487, + 0.06253217905759811, -0.02675832062959671, -0.04140856862068176, -0.02833079732954502, + 0.04594254121184349, 0.025251364335417747, 0.008248953148722649, 0.01497784536331892, + -0.050922054797410965, 0.008111361414194107, -0.005922997370362282, -0.036507681012153625, + -0.016576530411839485, -0.007305467035621405, 0.022984376177191734, 0.007914802059531212, + -0.019367678090929985, 0.02080911584198475, -0.004173616413027048, -0.03147575259208679, + 0.026234161108732224, 0.021333273500204086, -0.01461093407124281, -0.00430465629324317, + 0.016864817589521408, -0.08480893820524216, -0.03587868809700012, 0.0606452040374279, + -0.01592133194208145, -0.03509245067834854, -0.04022920876741409, -0.01995735615491867, + 0.0025601894594728947, 7.713942613918334e-5, -0.013241568580269814, -0.025290675461292267, + -0.04620462283492088, -0.017402080819010735, 0.05419804900884628, -0.009290719404816628, + -0.05828648805618286, 0.01961665414273739, -0.017441393807530403, 0.025644483044743538, + 0.0051072752103209496, 0.00036424960126169026, -0.021031882613897324, 0.013811592012643814, + -0.012658441439270973, 0.02354784682393074, 0.006650268100202084, -0.015711668878793716, + -0.0219491608440876, -0.02083532325923443, -0.04400315508246422, -0.010699396952986717, + 0.053280770778656006, 0.018437296152114868, 0.041382357478141785, 0.019302157685160637, + 0.014768182300031185, 0.006859932094812393, -0.020284956321120262, 0.02911703661084175, + -0.06289909034967422, -0.009388999082148075, 0.03435862809419632, -0.021673977375030518, + -0.003551177680492401, -0.03721529617905617, -0.07443059235811234, -0.008904152549803257, + -0.0034758299589157104, -0.020193228498101234, -0.0012735427590087056, 0.06494330614805222, + -0.004533975850790739, -0.012304633855819702, 0.06531021744012833, 0.0033366000279784203, + 0.0023472497705370188, -0.06321358680725098, -0.007076147478073835, -0.017008962109684944, + 0.02192295342683792, -0.004651912022382021, 0.01869937591254711, 0.04439627379179001, + -0.034201379865407944, -0.05440771207213402, 0.03962642699480057, 0.04830125719308853, + 0.020127708092331886, -0.059754133224487305, -0.01801796816289425, 0.06326600164175034, + -0.00399343715980649, 0.006610956508666277, -0.03422758728265762, 0.029483947902917862, + 0.02395406924188137, 0.048170220106840134, -0.02561827562749386, -0.04025541618466377, + -0.001466007437556982, -0.04245688393712044, -0.007764106150716543, 0.03042743355035782, + 0.030112938955426216, 0.029012205079197884, -0.027649391442537308, 0.002614243421703577, + 0.02956257201731205, -0.02922186814248562, -0.015436484478414059, -0.006918899714946747, + 0.004281724337488413, 0.005238314624875784, 0.034987617284059525, -0.0060376571491360664, + 0.06468123197555542, -0.009323479607701302, -0.0026453654281795025, -0.006722340360283852, + 0.02875012531876564, 0.0038230852223932743, -0.01475507766008377, -0.021857433021068573, + -0.028881164267659187, -0.009736254811286926, -0.01956423744559288, -0.038499485701322556, + 0.005798509810119867, -0.04646670073270798, 0.05270419642329216, 0.005221934989094734, + -0.007547890767455101, 0.002404579659923911, 0.025277571752667427, -0.031737830489873886, + 0.0017886928981170058, 0.009388999082148075, 0.04992615059018135, 0.03611455857753754, + -0.004678119905292988, -0.03766082972288132, -0.04206376522779465, -0.025867249816656113, + 0.010135926306247711, 0.0022276761010289192, 0.00044676370453089476, 0.04903507977724075, + 0.019498717039823532, 0.028068717569112778, -0.04560184106230736, -0.011223556473851204, + 0.04562804847955704, -0.006807515863329172, -0.0015896762488409877, -0.01997045986354351, + 0.0018149007810279727, 0.03988850489258766, -0.03351997211575508, 0.06436673551797867, + 0.014820598065853119, -0.058129239827394485, -0.025788625702261925, -0.011492188088595867, + -0.007593754678964615, -0.03582627326250076, -0.00778376217931509, 0.07338227331638336, + -0.00838654488325119, -0.026967983692884445, 0.000793200102634728, -0.0359048955142498, + -0.032183367758989334, 0.011046652682125568, -0.02358715794980526, -0.02597208134829998, + -0.001294017769396305, 0.021857433021068573, -0.00748892268165946, 0.04392452910542488, + 0.0021998300217092037, -0.0038787771482020617, 0.019459405913949013, -0.020664971321821213, + 0.04908749833703041, -0.06358049809932709, -0.03160679340362549, -0.002106464235112071, + 0.005346422549337149, -0.04505147412419319, -0.02277471125125885, 6.96660645189695e-5, + 0.01714000105857849, -0.00777065847069025, 0.028199758380651474, 0.005598674062639475, + 0.005136759020388126, 0.00429810443893075, -0.05393596738576889, 0.03116125613451004, + -0.013510200195014477, 0.003865673206746578, 0.030453642830252647, -0.01340536866337061, + -0.008072049356997013, 0.015606836415827274, -0.012226010672748089, 0.04203755781054497, + -0.0024357016663998365, 0.04633566364645958, 0.04077957570552826, -0.00489105936139822, + 0.03202611953020096, 0.03522349148988724, -0.015672355890274048, 0.006646992173045874, + 0.01679929904639721, 0.04646670073270798, -0.030925385653972626, 0.04075336828827858, + 0.04167064651846886, 0.011708403006196022, 0.028854956850409508, 0.030191563069820404, + 0.031082633882761, -0.010784572921693325, 0.012710857205092907, 0.007397194858640432, + 0.028540462255477905, 0.07705138623714447, -0.009487279690802097, 0.007082699332386255, + -0.052966274321079254, 0.00689269183203578, 0.03247165307402611, 0.0028222689870744944, + -0.02002287656068802, -0.010515941306948662, -0.0624273456633091, -0.01517440564930439, + -0.00836033746600151, -0.03624559938907623, -0.02872391790151596, -0.016458595171570778, + 0.02204088866710663, -0.018070384860038757, 0.04308587685227394, 0.0022014682181179523, + 0.016537219285964966, -0.044920433312654495, 0.001063060131855309, 0.043374162167310715, + -0.026863152161240578, -0.007148219272494316, -0.039731256663799286, 0.02838321402668953, + -0.028121134266257286, 0.021411897614598274, -0.043714866042137146, 0.02192295342683792, + 0.03593110293149948, 0.051341380923986435, -0.05550844594836235, -0.0044356961734592915, + -0.011066308245062828, -0.013392264023423195, -0.009297271259129047, 0.0006728073349222541, + -0.02838321402668953, 0.00017915593343786895, 0.04153960570693016, 0.01238325797021389, + 0.013654343783855438, 0.04405556991696358, -0.009028639644384384, 0.06641095131635666, + 0.03475174680352211, -0.03344134986400604, 0.021044986322522163, 0.010686293244361877, + -0.0017198969144374132, -0.07516441494226456, -0.0050908951088786125, -0.04321691393852234, + -0.010738709010183811, 0.05388355255126953, 0.005005719140172005, 0.027361104264855385, + 0.00344306998886168, -0.04222101345658302, -0.002615881385281682, 0.02555275522172451, + -0.012992593459784985, -0.0019492165884003043, -0.0031416784040629864, -0.02202778495848179, + 0.021293962374329567, -0.004127752501517534, 0.018175216391682625, 0.0018558506853878498, + 0.022302968427538872, -0.006021277513355017, -0.018961453810334206, 0.021503625437617302, + -0.007659274619072676, 0.01239636167883873, -0.011230108328163624, 0.028645293787121773, + -0.044134195894002914, 0.01140046026557684, 0.016209619119763374, 0.04431765154004097, + 0.015488900244235992, -0.00047092416207306087, -0.02641761675477028, -0.0015831241616979241, + 0.029274284839630127, 0.009913158603012562, -0.0176379531621933, 0.013005697168409824, + -0.015056469477713108, 0.028592877089977264, -0.026168642565608025, 0.0375559963285923, + -0.007292363326996565, -0.006971315480768681, -0.003885329235345125, -0.026915568858385086, + 0.000904993386939168, 0.011066308245062828, 0.007862386293709278, 0.013241568580269814, + -0.012815689668059349, -0.046912238001823425, 0.00896312016993761, 0.018568335101008415, + 0.011374251917004585, -0.025880353525280952, -0.032550279051065445, -0.02111050672829151, + 0.0006597033352591097, 0.003941020928323269, 0.020284956321120262, -0.0005810794536955655, + 0.0033054782543331385, -0.009945918805897236, -0.02751835063099861, -0.03239303082227707, + 0.015030261129140854, 0.03446345776319504, -0.0024389775935560465, -0.03401792421936989, + -0.061379026621580124, 0.025434819981455803, 0.03168541565537453, -0.046519119292497635, + -0.021490521728992462, 0.01672067493200302, 0.01961665414273739, -0.005002443213015795, + -5.2467094064923e-5, 0.022997479885816574, 0.022853335365653038, -0.015777187421917915, + 0.010529045015573502, -0.03876156359910965, 0.0067092361859977245, 0.045261137187480927, + 0.021857433021068573, -0.042509302496910095, -0.0020524102728813887, -0.02070428431034088, + 0.0008746904786676168, 0.03556419163942337, -0.05676642805337906, -0.02316783182322979, + -0.007135115563869476, -0.028068717569112778, 0.011623227037489414, 0.01871247962117195, + 0.014440582133829594, 0.009513487108051777, -0.013385712169110775, 0.0367959663271904, + 0.027754222974181175, -0.005520050413906574, -0.03910226747393608, -0.017349665984511375, + 0.015659252181649208, -0.050109606236219406, -0.0023554398212581873, -0.03158058598637581, + 0.008504481054842472, -0.009952470660209656, -0.019341470673680305, 0.024989284574985504, + -0.010312830097973347, 0.04235205426812172, -0.01712689734995365, -0.028592877089977264, + 0.031318504363298416, 0.02509411610662937, 0.0239802785217762, -0.00027948326896876097, + 0.007606858387589455, -0.03129229694604874, -0.014270231127738953, 0.021883642300963402, + 0.0188435185700655, 0.00857655331492424, 0.000104934188129846, -0.0021572422701865435, + -0.011125276796519756, 0.02515963651239872, 0.04471077024936676, -0.02872391790151596, + 0.004461904056370258, -0.03118746541440487, -0.011374251917004585, -0.03244544565677643, + 0.06515297293663025, 0.03404413163661957, -0.006345600821077824, -0.04075336828827858, + -0.012049106881022453, 0.00037714882637374103, -0.037005629390478134, 0.005932825617492199, + -0.03745116665959358, -0.014781286008656025, 0.004239136353135109, 0.005988517310470343, + 0.018987663090229034, 0.0029483947437256575, -0.01563304476439953, 0.03483036905527115, + -0.004016369115561247, -0.0004635531804524362, -0.01910559833049774, 0.014990950003266335, + -0.02403269335627556, -0.00517607107758522, -0.0001544835977256298, 0.025683794170618057, + 0.00719408318400383, 0.04140856862068176, -0.02709902450442314, -0.027334894984960556, + 0.004314484540373087, 0.027072817087173462, 0.015135093592107296, -0.017795201390981674, + 0.021687081083655357, -0.051367588341236115, 0.04064853489398956, -0.003721529385074973, + -0.007646170444786549, -0.017022065818309784, -0.019000766798853874, -0.02720385603606701, + -0.014768182300031185, 0.004173616413027048, -0.018083488568663597, -0.015108885243535042, + -0.003341514151543379, 0.00040274253115057945, 0.002701057121157646, 0.03226199001073837, + 0.006977867800742388, -0.03155437484383583, -0.021713290363550186, 0.007980321533977985, + -0.04544459283351898, -0.029431531205773354, -0.039311930537223816, -0.0030728825367987156, + -0.015108885243535042, -0.04308587685227394, -0.015017157420516014, 0.01235705055296421, + 0.014060567133128643, 0.010063854046165943, 0.0047895037569105625, -0.023390598595142365, + 0.010666636750102043, -0.019393885508179665, -0.03189507871866226, -0.009677287191152573, + -0.019315261393785477, 0.04607358202338219, -0.011708403006196022, 0.009847638197243214, + -0.01757243275642395, 0.04188030958175659, -0.04560184106230736, -0.008465168997645378, + -0.020101500675082207, -0.005644537974148989, -0.013045009225606918, 0.04583771154284477, + -0.025054803118109703, -0.015292340889573097, -0.009369343519210815, 0.030610889196395874, + -0.018463503569364548, -0.015043365769088268, 0.0033103921450674534, 0.027675598859786987, + 0.0028468389064073563, 0.03543315455317497, 0.00017270632088184357, 0.00837344117462635, + 0.024871347472071648, -0.03121367283165455, -0.021778808906674385, -0.005441426299512386, + -0.012343945913016796, 0.03915468230843544, -0.045759085565805435, -0.018895935267210007, + -0.004278448410332203, 0.016052370890975, -0.009814878925681114, -0.011655987240374088, + -0.0026699353475123644, 0.00777721032500267, 0.014191607013344765, 0.0036494575906544924, + -0.00660440418869257, 0.015790292993187904, 0.02111050672829151, -0.010470077395439148, + -0.023010583594441414, -0.009690390899777412, 0.036193184554576874, -0.03304823115468025, + 0.0645763948559761, -0.033782053738832474, -0.02555275522172451, 0.0071089076809585094, + 0.010804228484630585, -0.004779675509780645, 0.044501107186079025, 0.0022882819175720215, + -0.008635520935058594, 0.007849282585084438, -0.026994192972779274, 0.009487279690802097, + 0.04125132039189339, -0.011217004619538784, 0.03247165307402611, -0.013274328783154488, + 0.017441393807530403, -0.04007196053862572, 0.00548073835670948, 0.004226032644510269, + -0.015803396701812744, 0.01297293696552515, 0.028566669672727585, 0.0013054837472736835, + 0.02679763361811638, 0.016655154526233673, 0.031056424602866173, -0.011439771391451359, + -0.01915801502764225, 0.058915480971336365, -0.004612599965184927, -0.008792768232524395, + 0.004170340485870838, 0.020651867613196373, 0.027701806277036667, -0.030977800488471985, + -0.014309543184936047, -0.01016213372349739, 0.0014750163536518812, 0.02590656280517578, + -0.06284667551517487, 0.040176793932914734, -0.022696087136864662, 0.007580650504678488, + 0.013680552132427692, -0.0038263611495494843, 0.01458472665399313, 0.028592877089977264, + -0.025264468044042587, -0.028645293787121773, 0.059282392263412476, 0.018175216391682625, + -0.004674843978136778, 0.00917933601886034, 0.029326699674129486, 0.015017157420516014, + 0.03367722034454346, 0.03357238695025444, 0.012108074501156807, -0.034122757613658905, + -0.017651056870818138, 0.003970505204051733, 0.012664993293583393, -0.0006666647968813777, + -0.04434385895729065, -0.004517596215009689, -0.04646670073270798, -0.0009393913205713034, + 0.004665015731006861, 0.008281713351607323, 0.015082677826285362, -0.026994192972779274, + -0.004140856675803661, -0.05802441015839577, -0.005608502309769392, 0.04041266441345215, + 0.007593754678964615, -0.051288966089487076, 0.008170329965651035, -0.009087608195841312, + -0.036193184554576874, -0.0115773631259799, -0.006781307980418205, -0.01759864017367363, + -0.048091594129800797, 0.014663349837064743, -0.030191563069820404, 0.019354574382305145, + 0.03519728034734726, 0.024661684408783913, -0.017323456704616547, -0.034384835511446, + 0.059754133224487305, -0.007449611090123653, 0.013221913017332554, 0.03787049278616905, + 0.07222911715507507, 0.008419305086135864, 0.007737898267805576, -0.005746094044297934, + -0.02231607213616371, -0.003249786328524351, -0.02282712794840336, 0.0017280869651585817, + -0.017349665984511375, 0.0011302180355414748, -0.03640284761786461, -0.033755842596292496, + -0.025683794170618057, -0.015253028832376003, -0.03234061598777771, 0.014702661894261837, + 0.00660768011584878, 0.04667636379599571, -0.017008962109684944, 0.013864007778465748, + 0.016995858401060104, -0.015672355890274048, -0.010679741390049458, -0.01497784536331892, + 0.00748892268165946, 0.03186887130141258, 0.025631379336118698, -0.04077957570552826, + 0.015069573186337948, 0.03865673020482063, -0.005644537974148989, -0.0576050840318203, + 0.003931193146854639, 0.0031433163676410913, -0.015056469477713108, 0.03821119666099548, + -0.0019393885741010308, -0.040176793932914734, 0.03475174680352211, 0.0031940944027155638, + 0.055718109011650085, -0.01517440564930439, -0.0016093321610242128, 0.016130995005369186, + -0.01910559833049774, 0.006807515863329172, -0.039311930537223816, -0.018450399860739708, + -0.027046607807278633, 0.006794412154704332, -0.02352163940668106, 0.032524071633815765, + -0.021071195602416992, -0.027465935796499252, -0.024176837876439095, -0.03317926824092865, + -0.03504003584384918, 0.0017968828324228525, -0.006705960258841515, 0.0375559963285923, + 0.03726771101355553, -0.0020737042650580406, -0.03564281761646271, 0.03223578259348869, + 0.014230919070541859, 0.0033464280422776937, 0.04083199054002762, 0.039285723119974136, + -0.006814068183302879, -0.030872968956828117, 0.03433242067694664, -0.011151484213769436, + 0.04282379522919655, 0.03994091972708702, -0.02754455991089344, 0.021411897614598274, + 0.024124421179294586, -0.0275969747453928, -0.0057362657971680164, -0.023508533835411072, + 0.05259936302900314, 0.03150196000933647, 0.019367678090929985, 0.01875179074704647, + -0.0031121945939958096, -0.013824695721268654, -0.015266133472323418, 0.0026044154074043036, + -0.03598352149128914, 0.0034168618731200695, -0.004019645042717457, 0.01837177574634552, + 0.051682084798812866, -0.014427478425204754, -0.002273540012538433, -0.01378538366407156, + -0.012455330230295658, 0.009965574368834496, 0.02040289156138897, 0.011911515146493912, + 0.022145720198750496, -0.030951593071222305, -0.024452021345496178, 0.0033939299173653126, + 0.011144932359457016, -0.012468433938920498, 0.009238303638994694, -0.018542127683758736, + 0.01717931404709816, 0.026561761274933815, -0.0034070340916514397, -0.022565048187971115, + 0.008563448674976826, -0.01564614847302437, 0.05886306241154671, 0.04395074024796486, + 0.008491377346217632, 0.005208830814808607, -0.01677308976650238, -0.005664194002747536, + -0.0034168618731200695, -0.044501107186079025, -0.010057302191853523, 0.01753312163054943, + 0.002953308867290616, 0.016589634120464325, 0.009696942754089832, 0.007338227238506079, + 0.03446345776319504, 0.015672355890274048, -0.011623227037489414, -0.01915801502764225, + 0.003063054522499442, -0.02709902450442314, 0.00917278416454792, -0.014453686773777008, + -0.02561827562749386, 0.040963031351566315, -0.014283334836363792, 0.002209658036008477, + -0.009631423279643059, -0.0021392242051661015, -0.04007196053862572, 0.03226199001073837, + -0.043374162167310715, 0.06882208585739136, -0.0073316749185323715, -0.0022882819175720215, + -0.010836988687515259, 0.011859099380671978, -0.016130995005369186, 0.019302157685160637, + 0.00399998901411891, 0.024517539888620377, 0.010686293244361877, -0.013890215195715427, + -0.014126087538897991, -0.028173550963401794, 0.04950682446360588, -0.014663349837064743, + 0.03991471230983734, 5.9377394791226834e-5, 0.006142489146441221, -0.031737830489873886, + 0.023403702303767204, -0.022905752062797546, -0.013811592012643814, -0.0318426638841629, + -0.034515876322984695, -0.007619962561875582, -0.027780430391430855, 0.06819309294223785, + 0.03483036905527115, 0.016196515411138535, 0.006820620037615299, 0.0002364858373766765, + 0.007063043769448996, 0.004671567585319281, 0.005323490593582392, -0.03994091972708702, + -0.02358715794980526, 0.013968839310109615, -0.05026685446500778, 0.011112172156572342, + 0.006800964009016752, 0.002760025206953287, -0.010928716510534286, 0.05346422642469406, + -0.018581438809633255, 0.013071216642856598, 0.014270231127738953, 0.0024357016663998365, + 0.019800109788775444, 0.009860742837190628, 0.01758553646504879, -4.1589770262362435e-5, + 0.0026535552460700274, -0.00037223484832793474, -0.05917755886912346, 0.004638807848095894, + 0.018987663090229034, 0.0021850881166756153, -0.021005675196647644, 0.021805018186569214, + -0.01994425244629383, 0.010398006066679955, 0.010398006066679955, 0.014492998830974102, + -0.011452876031398773, 0.013628136366605759, 0.034620705991983414, 0.029667403548955917, + 0.002419321797788143, -0.023390598595142365, 0.03674355149269104, -0.01259947381913662, + -0.015777187421917915, 0.035302113741636276, -0.044894225895404816, 0.01377227995544672, + -0.020075293257832527, 0.02637830562889576, -0.04848471283912659, 0.0002371000882703811, + 0.004127752501517534, 0.015790292993187904, 0.023652678355574608, 0.00917278416454792, + -0.006522504612803459, -0.013811592012643814, 0.00748237082734704, 0.048904042690992355, + 0.009434862993657589, -0.017035169526934624, -0.02113671414554119, -0.018437296152114868, + 0.02031116373836994, 0.007600306533277035, 0.0007723156595602632, -0.013483991846442223, + -0.00489105936139822, 0.004163788631558418, -0.024242356419563293, -0.015528212301433086, + -0.01058146171271801, 0.005366078577935696, -0.003721529385074973, -0.01520061306655407, + -0.019393885508179665, -0.018450399860739708, -0.010057302191853523, -0.021031882613897324, + -0.004943475127220154, -0.00012213316222187132, -0.001977062551304698, 0.026155536994338036, + 0.029483947902917862, 0.0041310288943350315, -0.0023505259305238724, -0.04680740460753441, + -0.017022065818309784, 0.02513342723250389, 0.013732967898249626, -0.024150628596544266, + -0.0383160300552845, -5.9223832067800686e-5, -0.003924641292542219, 0.016904130578041077, + 0.0014094965299591422, 0.025814834982156754, -0.022669879719614983, 0.0022375041153281927, + -0.016262035816907883, 0.0010548700811341405, -0.015292340889573097, 0.013942630961537361, + 0.03787049278616905, -0.0018787826411426067, 0.0005163786117918789, 0.015095781534910202, + 0.02201468124985695, -0.032183367758989334, 0.021673977375030518, 0.02117602713406086, + 0.008052393794059753, 0.0211891308426857, -0.002101550344377756, -0.023744406178593636, + -0.003171162446960807, 0.010922164656221867, -0.005831269547343254, -0.008563448674976826, + -0.005864029750227928, 0.015868915244936943, -0.009343135170638561, 0.02111050672829151, + -0.0416182316839695, 0.019026974216103554, 0.05039789527654648, -0.01678619347512722, + -0.012999145314097404, -0.02033737301826477, 0.04544459283351898, -0.02709902450442314, + -0.006168697029352188, -0.004648635629564524, -0.05270419642329216, 0.02388855069875717, + -0.0057297139428555965, -0.023062998428940773, 0.01879110373556614, -0.032183367758989334, + -0.013293984346091747, 0.05351664125919342, 0.0038525692652910948, -0.004864851478487253, + 0.002398027805611491, 0.039338137954473495, 0.0454183854162693, 0.005012270994484425, + 0.005637986119836569, -0.014348854310810566, -0.008687936700880527, 0.012501194141805172, + -0.0032645282335579395, -0.020573243498802185, 0.02670590579509735, 0.024674788117408752, + -0.012828793376684189, 0.01590822823345661, 0.014637142419815063, -0.04190651699900627, + -0.0010049112606793642, -0.01991804502904415, -0.0013390625827014446, -0.0063554286025464535, + -0.026116225868463516, 0.0013243206776678562, -0.018253840506076813, -0.029300492256879807, + -0.009520038962364197, -0.0020327544771134853, -0.02311541512608528, -0.014060567133128643, + 0.043767284601926804, -0.01831935904920101, -0.028933580964803696, 0.0030352086760103703, + -0.022866439074277878, 0.024609267711639404, -0.03868294134736061, -0.020193228498101234, + -0.013346400111913681, 0.03724150359630585, 0.006345600821077824, -0.021477418020367622, + -0.00214413832873106, -0.013510200195014477, -0.009022087790071964, -0.017480704933404922, + -0.0023865618277341127, -0.01461093407124281, 0.010280069895088673, 0.023456119000911713, + -0.011636331677436829, -0.030453642830252647, 0.025356195867061615, 0.005742817651480436, + -0.007731346413493156, 0.022630568593740463, 0.007148219272494316, 0.023691989481449127, + -0.025801731273531914, 0.008098257705569267, 0.0014750163536518812, 0.009061399847269058, + 0.009133472107350826, 0.06358049809932709, -0.01685171388089657, 0.009900054894387722, + 0.0036560094449669123, 0.0033939299173653126, -0.029641196131706238, 0.009644526988267899, + -0.016550322994589806, -0.05123655125498772, 0.00039107180782593787, -0.00172153499443084, + -0.025329986587166786, -0.03865673020482063, 0.023377494886517525, -0.03278614953160286, + 0.05702850595116615, -0.0026732112746685743, 0.004877955187112093, -0.036586303263902664, + 0.048537131398916245, 0.030139146372675896, -0.04633566364645958, 0.005929549690335989, + -0.022604359313845634, -0.01632755436003208, -0.011839442886412144, -0.008799320086836815, + 0.04020300135016441, -0.021857433021068573, -0.010456973686814308, 0.015069573186337948, + 0.026994192972779274, 0.0034561739303171635, 0.021778808906674385, -0.013824695721268654, + 0.007377538830041885, 0.0033742741215974092, 0.02522515505552292, -0.017061378806829453, + 0.002812440972775221, 0.005280902609229088, 0.019800109788775444, -0.011066308245062828, + 0.012324290350079536, -0.029850859194993973, -0.012284978292882442, -0.01759864017367363, + 0.010293173603713512, 0.016956545412540436, 0.011026996187865734, 0.010253861546516418, + -0.03228819742798805, -0.0407271608710289, -0.007600306533277035, -0.006244045216590166, + 0.025447923690080643, 0.038945019245147705, 0.005520050413906574, 0.01997045986354351, + -0.027649391442537308, -0.029379116371273994, -0.02201468124985695, -0.008242401294410229, + -0.01803107187151909, -0.022591255605220795, 0.014624037779867649, -0.0013177687069401145, + 0.03821119666099548, -0.016484802588820457, 0.002466823672875762, 0.030820554122328758, + 0.0030057246331125498, -0.003934469074010849, 0.003960676956921816, -0.010987685061991215, + -0.031764041632413864, -0.002812440972775221, 0.015095781534910202, 0.004855023231357336, + -0.01399504765868187, -0.011524947360157967, -0.022119512781500816, -0.013110528700053692, + -0.0008714144350960851, -0.015475796535611153, -0.030217770487070084, 0.0016543770907446742, + -0.004763295408338308, 0.004674843978136778, -0.018909038975834846, -0.01237015426158905, + -0.010555253364145756, 0.01235705055296421, -0.018070384860038757, -0.0037477375008165836, + -0.043741073459386826, 0.032602693885564804, 0.04185410216450691, -0.00798687431961298, + -0.02675832062959671, 0.008091705851256847, -0.02120223455131054, -0.01521371677517891, + -0.006214560940861702, -0.029824651777744293, -0.016982754692435265, 0.008471720851957798, + -0.010640429332852364, 0.010771469213068485, 0.011393907479941845, -0.013149840757250786, + -0.003957401029765606, -0.013313640840351582, -0.04384590685367584, 0.023691989481449127, + -0.027728015556931496, -0.029248075559735298, 0.017061378806829453, -0.005723162088543177, + 0.014741973951458931, -0.0015806672163307667, -0.015030261129140854, -0.027701806277036667, + -0.004239136353135109, 0.04361003637313843, 0.035013824701309204, -0.03113504871726036, + -0.031239880248904228, 0.013143288902938366, -7.447768439305946e-5, -0.0015143282944336534, + 0.0012522487668320537, 0.008550344966351986, 0.011898411437869072, -0.029405323788523674, + 0.019013870507478714, -0.0009688753052614629, 0.02641761675477028, -0.014126087538897991, + 0.011079412885010242, -0.02476651594042778, 0.001339881680905819, 0.0028648569714277983, + 0.04442248120903969, 0.027649391442537308, 0.03561661019921303, -0.02801630273461342, + 0.006286632735282183, -0.019878732040524483, 0.006568368524312973, -0.0013390625827014446, + -0.011249763891100883, 0.004609324038028717, -0.015305444598197937, 0.027072817087173462, + 0.03194749727845192, -0.019328365102410316, 0.018673166632652283, 0.017755888402462006, + -0.003963952884078026, 0.01877799816429615, 0.004196548368781805, -0.004950027447193861, + 0.004933647345751524, 0.007338227238506079, -0.05561327934265137, -0.006676476448774338, + 0.02159535326063633, -0.02872391790151596, -0.026496240869164467, -0.01438816636800766, + 0.024229252710938454, -0.029483947902917862, -0.02553965151309967, -0.009081056341528893, + -0.006578196305781603, -0.0050581349059939384, -0.00400326494127512, 0.02796388603746891, + 0.03325789421796799, -0.02318093553185463, -0.03307443857192993, 0.011590467765927315, + 0.007587202824652195, 0.0029418428894132376, -0.0032890981528908014, 0.016877921298146248, + -0.005870581604540348, -0.014938533306121826, 0.0098017742857337, 0.03645526245236397, + -0.018293151631951332, 0.009159679524600506, -0.024674788117408752, -0.011944275349378586, + -0.017074482515454292, -0.022971270605921745, 0.009015535935759544, -0.010135926306247711, + -0.012402914464473724, -0.016864817589521408, -0.028461838141083717, 0.012881209142506123, + -0.005533154122531414, 0.024858243763446808, 0.008556896820664406, 0.028514252975583076, + -0.018083488568663597, 0.012429121881723404, 0.0023881997913122177, -0.001139226951636374, + -0.014296438544988632, -0.01475507766008377, 0.016943441703915596, 0.011151484213769436, + -0.019053181633353233, 0.008838632144033909, 0.00011066717706853524, 0.005169518757611513, + -0.0006527418736368418, -0.01558062806725502, 0.05660917982459068, 0.028592877089977264, + -0.004144132602959871, -0.008661728352308273, 0.006846827920526266, -0.020953258499503136, + 0.04945440962910652, -0.009539695456624031, -0.03210474178195, 0.007914802059531212, + -0.005097446963191032, -0.030899178236722946, -0.016170307993888855, 0.0155413169413805, + -0.023770613595843315, 0.010273518040776253, -0.003678941400721669, -0.003228492336347699, + -0.028252175077795982, 0.03142333775758743, 0.025447923690080643, 0.0010909060947597027, + 0.001520880265161395, -0.024242356419563293, -0.015698565170168877, 0.003231768263503909, + -0.01997045986354351, 0.01872558332979679, 0.039731256663799286, -0.0005315300659276545, + -0.01755932904779911, 0.017651056870818138, 0.013680552132427692, 0.0037772213108837605, + 0.033310309052467346, -0.009362791664898396, -0.015148197300732136, -0.004687947686761618, + 0.00977556686848402, 0.0137984873726964, 0.01596064306795597, -0.0027780430391430855, + 0.011754266917705536, -0.03283856436610222, -0.021071195602416992, -0.0031957323662936687, + 0.013084321282804012, 0.02399338223040104, 0.005811613518744707, 0.023823030292987823, + -0.012311186641454697, 0.02476651594042778, -0.007534786593168974, 0.012409466318786144, + -0.0005921359406784177, 0.009821430779993534, 0.02112361043691635, 0.04269275814294815, + 0.006568368524312973, -0.019760796800255775, 0.03595731407403946, -0.008930359967052937, + -0.044579729437828064, -0.03624559938907623, 0.02751835063099861, 0.03118746541440487, + 0.00458966800943017, 0.030165355652570724, -0.0019852526020258665, -0.04117269441485405, + 0.005303834564983845, 0.00837344117462635, -0.014781286008656025, -0.021071195602416992, + -0.004579839762300253, -0.013339848257601261, -0.013890215195715427, 0.024609267711639404, + -0.017454497516155243, 0.009166231378912926, -0.016275139525532722, -0.034568291157484055, + 0.019787004217505455, -0.007154771592468023, 0.007364435121417046, -0.02121533825993538, + 0.02640451304614544, 0.02840942144393921, 0.013307088986039162, -0.007226843386888504, + -0.0003099909517914057, -0.0068992436863482, -0.0040982686914503574, 0.023665782064199448, + 0.01176737155765295, 0.043374162167310715, -0.0207435954362154, 0.00028705899603664875, + -0.026221057400107384, 0.013955735601484776, 0.017061378806829453, -0.019354574382305145, + ], + index: 65, + }, + { + title: "Black Arrow", + text: "Black Arrow, officially capitalised BLACK ARROW, was a British satellite carrier rocket. Developed during the 1960s, it was used for four launches between 1969 and 1971. Its final flight was the first and only successful orbital launch to be conducted by the United Kingdom, and placed the Prospero satellite into low Earth orbit.Black Arrow originated from studies by the Royal Aircraft Establishment for carrier rockets based on the Black Knight rocket, with the project being authorised in 1964.", + vector: [ + -0.014135890640318394, 0.03546791151165962, -0.020262327045202255, -0.057675138115882874, + -0.02767062932252884, 0.001184621243737638, -0.028501631692051888, 0.021641438826918602, + -0.07178451120853424, 0.007664675824344158, 0.02689266949892044, -0.011519115418195724, + -0.024258213117718697, -0.021234776824712753, -0.0010912438156083226, 0.07192595303058624, + -0.030004510655999184, 0.03173723816871643, 0.020280007272958755, -0.020527539774775505, + 0.019519727677106857, -0.03336388245224953, -0.030216680839657784, -0.01761903055012226, + -0.006926497910171747, 0.023480253294110298, -0.006011510733515024, 0.01863568276166916, + -0.03702383115887642, -0.005945207085460424, 0.0015393445501103997, -0.0228260587900877, + 0.028201056644320488, 0.06807151436805725, 0.029456401243805885, -0.0008133220253512263, + 0.010829559527337551, -0.000709999178070575, -0.05870063230395317, -0.04490951821208, + -0.013057354837656021, -0.039216265082359314, -0.02316199615597725, 0.05123928561806679, + 0.004862251225858927, 0.0013415393186733127, 0.016275281086564064, 0.011395348235964775, + -0.004902033135294914, 0.013145758770406246, -0.006683385465294123, 0.03140130266547203, + -0.042823173105716705, 0.025425152853131294, 0.01392371952533722, 0.0445912629365921, + 0.019201472401618958, 0.05944323167204857, -0.02696339227259159, -0.04918830096721649, + 0.009583055041730404, 0.002559312153607607, 0.03592761605978012, 0.01879481039941311, + -0.010467100888490677, -0.03995886445045471, 0.03237375244498253, -0.02247244119644165, + -0.020580582320690155, 0.0038610694464296103, 0.015550362877547741, -0.056791093200445175, + 0.04225738346576691, -0.015930503606796265, 0.009918992407619953, -0.004422438330948353, + 0.05463402345776558, 0.02698107436299324, -0.011527955532073975, 0.044838797301054, + 0.03145434334874153, -0.012058382853865623, -0.056260667741298676, -0.002676448319107294, + -0.028943656012415886, 0.0445912629365921, 0.010369855910539627, -0.061741750687360764, + -0.014065166935324669, -0.01744222082197666, -0.01865336298942566, 0.038791924715042114, + 0.016089631244540215, -0.030446533113718033, 0.0047296443954110146, 0.003967154771089554, + 0.014374583028256893, -0.006966279819607735, -0.0011802009539678693, 0.05969076231122017, + -0.013561260886490345, -0.029385678470134735, -0.014339220710098743, 0.014807765372097492, + -0.056755732744932175, 0.026114709675312042, -0.038155410438776016, -0.0017316244775429368, + 0.023851552978157997, 0.052724484354257584, -0.020421454682946205, 0.002237740671262145, + 0.0012266134144738317, -0.00907030887901783, -0.024558788165450096, -0.010414058342576027, + 0.02188897132873535, -0.009335522539913654, -0.05343171954154968, -0.016407888382673264, + -0.010193046182394028, -0.03808468580245972, -0.02194201387465, -0.025920219719409943, + 0.016699623316526413, -0.02756454423069954, 0.012579970061779022, 0.015338192693889141, + 0.030570298433303833, -0.016832228749990463, -0.07730095088481903, -0.029226548969745636, + -0.01141302939504385, 0.021517671644687653, 0.002121709519997239, 0.016752665862441063, + -0.023621700704097748, -0.0465715266764164, 0.011775488033890724, 0.04034784436225891, + -0.008588504046201706, -0.07256247103214264, 0.028784526512026787, -0.00551644479855895, + -0.0057020946405828, -0.028943656012415886, 0.011138975620269775, 0.03131289780139923, + -0.024399660527706146, -0.05039060488343239, 0.038756560534238815, 0.019325237721204758, + -0.014851966872811317, 0.009512331336736679, -0.014975734055042267, -0.015656448900699615, + -0.033416926860809326, -0.005405939184129238, -0.01394139975309372, 0.07418911159038544, + 0.005180507432669401, 0.007540909573435783, -0.0015305040869861841, 0.003240027464926243, + -0.010334493592381477, -0.0013547999551519752, 0.004040088504552841, 0.006599401123821735, + -0.043424323201179504, 0.014984574168920517, 0.05873599275946617, -0.03925162926316261, + 0.03290418162941933, 0.003469879273325205, -0.03557399660348892, 0.03582153096795082, + -0.004437909461557865, -0.010325653478503227, -0.005030219908803701, -0.015629926696419716, + -0.06517184525728226, 0.04204521328210831, -0.019077705219388008, 0.05523517355322838, + -0.004773846827447414, -0.023639380931854248, 0.02264925092458725, 0.01815829798579216, + -0.05809948220849037, 0.008442636579275131, 0.0031560431234538555, -0.009574214927852154, + 0.0016763715539127588, 0.021517671644687653, 0.02788279950618744, 0.07132480293512344, + -0.04950655624270439, -0.043813303112983704, -0.05304273962974548, -0.04239882901310921, + 0.029155826196074486, -0.014595594257116318, -0.020173922181129456, -0.0038124469574540854, + -0.02715788222849369, 0.00927363894879818, 0.06043336167931557, -0.0007260225247591734, + 0.03217926248908043, 0.017053240910172462, -0.005105363670736551, -0.014560231938958168, + 0.029279593378305435, 0.007112147286534309, -0.015382394194602966, 0.005569487810134888, + -0.030075233429670334, 0.010069279931485653, -0.05438648909330368, -0.014869648031890392, + 0.0112539017572999, 0.020403774455189705, 0.03741281107068062, -0.012694896198809147, + -0.024647193029522896, -0.007143089082092047, -0.030446533113718033, 0.05085030570626259, + 0.014940371736884117, -0.0440608374774456, -0.06411099433898926, 0.03583921119570732, + -0.006886715535074472, 0.02268461138010025, -0.043919388204813004, 0.019678857177495956, + 0.014772403053939342, -0.012120266444981098, -0.01893625780940056, 0.056260667741298676, + -0.03691774606704712, -0.0037925560027360916, -0.010458259843289852, -0.020934201776981354, + 0.06259043514728546, -0.034283291548490524, 0.01141302939504385, -0.002906300127506256, + -0.05329027399420738, -0.011863892897963524, 0.007638154551386833, 0.05435112863779068, + -0.03744817525148392, 0.007872426882386208, -0.024240532889962196, -0.034919802099466324, + -0.009291320107877254, 0.011855052784085274, 0.05300737917423248, 0.030428851023316383, + 0.0054678223095834255, -0.005379417911171913, 0.030075233429670334, 0.05778122320771217, + -0.002501849317923188, -0.01363198459148407, -0.03463691100478172, -0.025778772309422493, + -0.06354520469903946, -0.025301387533545494, 0.019979432225227356, 0.014215454459190369, + 0.043424323201179504, 0.02721092477440834, -0.03766034543514252, 0.016876431182026863, + -0.005565067287534475, 0.02249012142419815, -0.056791093200445175, 0.01884785294532776, + 0.013110397383570671, -0.025425152853131294, -0.001014442415907979, -0.05817020684480667, + -0.014409944415092468, 0.0037417232524603605, -0.048551786690950394, -0.009653778746724129, + 0.043035343289375305, 0.03193172812461853, -0.042434193193912506, 0.021429266780614853, + 0.025690367445349693, -0.003918532282114029, 0.06619734317064285, -0.03157811239361763, + -0.017353815957903862, -0.047703105956315994, 0.019961751997470856, 0.03295722231268883, + -0.051805075258016586, 0.01558572519570589, -0.002422285033389926, -0.012792141176760197, + -0.013066194951534271, 0.003169303759932518, -0.038615114986896515, -0.0032643387094140053, + -0.00875647272914648, 0.0010415163123980165, -0.043530408293008804, -0.034424737095832825, + 0.013092716224491596, -0.01807873323559761, 0.0469958670437336, -0.000743150885682553, + 0.013419813476502895, 0.006422591861337423, -0.056649647653102875, -1.1283668754913379e-5, + -0.015046456828713417, -0.003978205379098654, -0.12213975191116333, -0.005618110299110413, + 0.056083858013153076, -0.0022134294267743826, 0.04137333855032921, -0.013322568498551846, + -0.015718331560492516, -0.025566600263118744, 0.004314142744988203, -0.013331408612430096, + 0.03232070803642273, -0.019060024991631508, 0.030888555571436882, -0.03247983753681183, + -0.030057553201913834, -0.030199000611901283, 0.011846211738884449, 0.016522813588380814, + 0.034725312143564224, -0.04038320481777191, 0.009848268702626228, -0.0002217020810348913, + -0.021146371960639954, -0.020138559862971306, -0.027988886460661888, -0.01898930035531521, + 0.03106536529958248, -0.019519727677106857, 0.0009315631468780339, 0.01852959766983986, + 0.03988813981413841, -0.03702383115887642, 0.011713605374097824, -0.047773826867341995, + 0.004448959603905678, -0.0466422513127327, -0.0032223465386778116, 0.016955995932221413, + 0.04087827354669571, -0.021676799282431602, 0.0007696722750551999, 0.033717501908540726, + 0.010643909685313702, -0.021022606641054153, 0.08232232928276062, 0.014047485776245594, + -0.019784942269325256, -0.01754830591380596, -0.0005511472118087113, 0.025920219719409943, + -0.02305591106414795, -0.039074819535017014, -0.011289263144135475, -0.04215129837393761, + -0.020898839458823204, -0.006259043235331774, -0.008080177009105682, 0.0011144500458613038, + -0.03124217316508293, 0.014409944415092468, -0.06520720571279526, 0.007315477821975946, + 0.04211593419313431, -0.02240171656012535, -0.003158253151923418, -0.024046042934060097, + 0.025159940123558044, -0.00940624624490738, -0.016425568610429764, -0.020757392048835754, + 0.0230028685182333, 0.014745881780982018, -0.02240171656012535, -0.08366607874631882, + 0.03278041258454323, 0.02211882174015045, 0.004212477710098028, 0.003613536711782217, + 0.029509443789720535, 0.04002958908677101, -0.02236635610461235, 0.01774279586970806, + -0.023957638069987297, 0.019024662673473358, 0.0009199600317515433, -0.046960506588220596, + -0.016823388636112213, -0.0456521175801754, 0.003509661415591836, -0.042787808924913406, + -0.02332112565636635, -0.017026718705892563, 0.011519115418195724, 0.0037262525875121355, + -0.019979432225227356, -0.025601962581276894, -0.015028776600956917, -0.029686253517866135, + -0.03590993583202362, 0.030181318521499634, -0.005065581761300564, -0.003832337912172079, + 0.013623143546283245, -0.02680426463484764, 0.007244754116982222, 0.0005566725158132613, + -0.03608674556016922, -0.056932542473077774, 0.004353925120085478, -0.039180904626846313, + 0.042787808924913406, 0.02296750620007515, -0.04947119578719139, 0.01849423535168171, + 0.012120266444981098, 0.03709455579519272, -0.013269525952637196, 0.028590036556124687, + -0.017035560682415962, 0.029173506423830986, -0.05031988024711609, -0.012641852721571922, + -0.0013404341880232096, 0.0222425889223814, 0.03152506798505783, 0.02782975696027279, + 0.06340375542640686, -0.022896783426404, -0.03971133008599281, 0.025301387533545494, + 0.024983130395412445, 0.004460010211914778, -0.01824670284986496, -0.025389792397618294, + 0.05024915561079979, 0.0076956176199018955, -0.015992386266589165, -0.0031427822541445494, + -0.029721615836024284, 0.043070703744888306, 0.025442834943532944, -0.03751889988780022, + -0.007302217185497284, -0.0003259918303228915, -0.0218359287828207, 0.014127049595117569, + -0.004462220706045628, 0.021057967096567154, -0.005224709864705801, -0.009954353794455528, + -0.019466685131192207, 0.043176788836717606, 0.0231089536100626, 0.029756978154182434, + 0.05877135694026947, -0.0056578922085464, 0.012951268814504147, -0.03992350399494171, + -0.008323290385305882, -0.03301026672124863, -0.015921661630272865, 0.00896864291280508, + 0.024417340755462646, -0.002784743905067444, -0.012129106558859348, -0.029102783650159836, + 0.02247244119644165, -0.0077221388928592205, 0.07213812321424484, -0.02307359129190445, + -0.024505745619535446, -0.02236635610461235, -0.0115544768050313, 0.009874789975583553, + 0.003989255987107754, 0.02673354186117649, 0.024611830711364746, -0.013101557269692421, + 0.01761019043624401, 0.04162086918950081, -0.0061485376209020615, 0.042823173105716705, + 0.08069568872451782, 0.05046132579445839, -0.037731070071458817, 0.09774009138345718, + 0.01879481039941311, 0.01150143425911665, -0.000745913537684828, 0.00886255782097578, + -0.00686461478471756, 0.0228260587900877, -0.005476662889122963, -0.0447680726647377, + 0.02708715945482254, 0.01879481039941311, 0.025690367445349693, -0.03318707272410393, + -0.004990437999367714, 0.0009475864353589714, 0.002822315786033869, 0.00913219153881073, + 0.03720064088702202, 0.021765204146504402, 0.0008973063668236136, 0.008486838079988956, + -0.0038389682304114103, -0.03737745061516762, -0.014321539551019669, 0.020598264411091805, + 0.002725070808082819, -0.013570101000368595, -0.03306330740451813, 0.043530408293008804, + -0.024717917665839195, 0.024841682985424995, -0.0014940372202545404, 0.023674743250012398, + -0.042434193193912506, 0.030764788389205933, 0.023798508569598198, 0.05466938391327858, + 0.028943656012415886, -0.012818662449717522, 0.05940786749124527, -0.011200858280062675, + 0.004902033135294914, -0.02227795124053955, -0.0220304187387228, 0.012155627831816673, + 0.009432767517864704, -0.008102278225123882, 0.03978205472230911, 0.000334279757225886, + 0.016814548522233963, 0.001534924260340631, -0.03681166097521782, 0.04176231846213341, + 0.024841682985424995, -0.025460515171289444, -0.014038645662367344, 0.009680300019681454, + -0.043495047837495804, -0.025442834943532944, -0.02194201387465, 0.03780179098248482, + -0.04130261391401291, -0.015143702737987041, 0.01758366823196411, -0.0031825643964111805, + -0.009830587543547153, -0.008013874292373657, -0.017344975844025612, -0.0231089536100626, + -0.006714326795190573, -0.03971133008599281, -0.010033918544650078, 0.012208670377731323, + 0.02756454423069954, -0.019572770223021507, 0.007691197097301483, -0.0009652673616074026, + 0.009865949861705303, 0.04087827354669571, 0.006334186997264624, 0.0443083681166172, + 0.0063562882132828236, -0.0040555596351623535, -0.031047683209180832, -0.017062081024050713, + 0.034265611320734024, 0.01345517486333847, 0.004101972095668316, 0.039039455354213715, + 0.0033306421246379614, 0.012986631132662296, -0.004320773296058178, -0.030764788389205933, + -0.007872426882386208, -0.010582027025520802, -0.028943656012415886, 0.010617388412356377, + -0.003293070010840893, -0.004371605813503265, -0.0026676077395677567, 0.010449419729411602, + 0.026486007496714592, 0.01879481039941311, -0.02344489097595215, 0.001612278283573687, + 0.005401519127190113, 0.001518348464742303, 0.02740541659295559, 0.01812293566763401, + -0.04869323596358299, 0.019413642585277557, -0.00461471825838089, -0.019219152629375458, + 0.006749688647687435, -0.016955995932221413, 0.009689140133559704, -0.012721417471766472, + -0.02791816182434559, -0.013464015908539295, 0.004570516292005777, -0.008464736863970757, + -0.011828531511127949, 0.008685749024152756, -0.02694571204483509, -0.0011133450316265225, + -0.020209284499287605, -0.010803038254380226, -0.02777671441435814, -0.03148970752954483, + 0.06831905245780945, 0.0056623127311468124, -0.03233839198946953, -0.03297490254044533, + 0.021906651556491852, 0.03301026672124863, -0.024010680615901947, -0.0012487145140767097, + -0.006144117563962936, -0.016089631244540215, -0.030163638293743134, -0.01372922956943512, + 0.012703736312687397, -0.0014299438335001469, -0.061883196234703064, 0.047809191048145294, + 0.02211882174015045, 0.01822902262210846, 0.012358958832919598, -0.04982481524348259, + 0.00912335142493248, 0.011961137875914574, -0.004325193352997303, 0.02217186614871025, + -0.015293990261852741, 0.033664457499980927, -0.009494650177657604, 0.0035494433250278234, + 0.04010030999779701, 0.01145723182708025, -0.020545221865177155, -0.04052465409040451, + 0.006206000689417124, -0.03656413033604622, -0.020474497228860855, 0.007536489516496658, + -0.024841682985424995, -0.0224370788782835, 0.01780468039214611, 0.0006188319530338049, + -0.005768397822976112, 0.03663485124707222, -0.0058744833804667, 0.00229188846424222, + 0.03769570589065552, -0.03628123551607132, -0.002006783615797758, -0.008000613190233707, + -0.008822775445878506, -0.00014945896691642702, 0.0029151407070457935, -0.012854023836553097, + -0.03217926248908043, -0.07928121834993362, -0.03265664726495743, -0.06814224272966385, + -0.008062496781349182, -0.01904234290122986, 0.0027648527175188065, 0.043212153017520905, + -0.006908816751092672, -0.021482309326529503, -0.014922690577805042, 0.002943872008472681, + -0.00016520603094249964, -1.2371458979032468e-5, -0.019961751997470856, -0.019891027361154556, + -0.04013567417860031, -0.021623756736516953, -0.007452505175024271, -0.024116765707731247, + 0.016876431182026863, 0.03138362243771553, 0.010944485664367676, -0.0232857633382082, + -0.048021361231803894, 0.03304562717676163, 0.02236635610461235, -0.03603370115160942, + 0.004219107795506716, 0.039180904626846313, 0.0052114492282271385, -0.021411586552858353, + 0.0111654968932271, 0.030305085703730583, 0.003934003412723541, -0.0007967461715452373, + -0.01364966481924057, 0.004990437999367714, 0.03246215730905533, -0.010414058342576027, + -0.0006464584148488939, -0.0043229833245277405, -0.0230028685182333, -0.03486676141619682, + 0.012977790087461472, 0.01874176785349846, 0.008062496781349182, 0.03336388245224953, + -0.028307141736149788, -0.020969564095139503, 0.01165172178298235, 0.0021471260115504265, + 0.0115544768050313, 0.008416114374995232, 0.0006309875752776861, -0.047031231224536896, + 0.019961751997470856, -0.007576271425932646, -0.047667741775512695, -0.0050125387497246265, + 0.012482725083827972, -0.008782994002103806, 0.016275281086564064, -0.04066609963774681, + 0.0031781441066414118, -0.03269200772047043, -0.009609576314687729, -0.007337579037994146, + 0.013207642361521721, 0.004256679676473141, 0.0067850505001842976, -0.001633274368941784, + 0.02811265178024769, 0.019077705219388008, -0.01766323298215866, -0.004769426304847002, + 0.024293575435876846, -0.034247927367687225, 0.012633012607693672, 0.002992494497448206, + 0.004765006247907877, -0.01796380802989006, -0.01350821740925312, 0.008234885521233082, + -0.04098435863852501, -0.021623756736516953, 0.011766647920012474, 0.03631659597158432, + 0.03173723816871643, -0.003876540344208479, -0.021234776824712753, -0.0232857633382082, + -0.0072403340600430965, 0.02287910133600235, -0.008119959384202957, -0.012818662449717522, + -0.004170485306531191, -0.0016741615254431963, -0.003255498129874468, -0.02286142110824585, + -0.007624893914908171, -0.010475941002368927, -0.002318409737199545, 0.06046872213482857, + -0.003629007376730442, 0.04080754891037941, 0.03232070803642273, -0.009017265401780605, + 0.012712576426565647, -0.002099608536809683, -0.030269723385572433, 0.01766323298215866, + 0.01898930035531521, -0.016231078654527664, -0.0443083681166172, -0.0025946740061044693, + -0.01106825191527605, -0.03677630051970482, -0.01158983912318945, 0.0020089938770979643, + -0.0223486740142107, 0.03734209015965462, 0.01737149804830551, -0.006082233972847462, + -0.005162826739251614, -0.0006149642867967486, 0.015232106670737267, 0.01815829798579216, + 0.0010183100821450353, 0.005481082946062088, -0.011757807806134224, 0.008535460568964481, + -0.0224370788782835, -0.020969564095139503, 0.033399246633052826, 0.020845796912908554, + -0.016284121200442314, 0.020969564095139503, 0.019395962357521057, -0.024558788165450096, + -0.003480929881334305, -0.03148970752954483, -0.009945513680577278, -0.029067421332001686, + 0.011890414170920849, -0.02729932963848114, -0.02653905190527439, 0.004932974930852652, + 0.024099085479974747, 0.005087682977318764, -0.042823173105716705, -0.003125101327896118, + 0.015992386266589165, 0.015833258628845215, 0.0056932540610432625, -0.001940480200573802, + -0.0019603711552917957, 0.006382809951901436, 0.007045844104140997, -0.004048929084092379, + -0.011634040623903275, 0.014533710666000843, 0.006829252932220697, 0.033841267228126526, + 0.020651306957006454, 0.013048513792455196, 0.025301387533545494, -0.029633210971951485, + -0.014365741983056068, 0.03741281107068062, -0.007461345288902521, -0.03709455579519272, + -0.001617803587578237, 0.010086961090564728, -0.012323596514761448, -0.038756560534238815, + -0.008650386705994606, 0.043282877653837204, -0.006568459328263998, 0.02657441236078739, + 0.013472856022417545, 0.002439965959638357, -0.01325184479355812, 0.012314756400883198, + -0.010166524909436703, -0.029597848653793335, -0.02326808124780655, -0.009892471134662628, + -0.003091949736699462, -0.005905425176024437, 0.04101971909403801, 0.03157811239361763, + 0.03124217316508293, -0.03695311024785042, 0.006594980601221323, 0.006130856927484274, + -0.016788028180599213, 0.0029239810537546873, -0.025283705443143845, 0.00890676025301218, + 0.001501772552728653, -0.02673354186117649, -0.004024617839604616, 0.021818246692419052, + -0.01754830591380596, 0.03242679685354233, 0.005361736752092838, -0.0007779601728543639, + 0.04087827354669571, 0.0016056479653343558, -0.03509661182761192, -0.0009746603318490088, + 0.02790048159658909, 0.037731070071458817, -0.0452985018491745, -0.04158550873398781, + 0.014984574168920517, -0.012199830263853073, -0.024099085479974747, 0.038226135075092316, + 0.019873347133398056, 0.006320926360785961, 0.005321954842656851, -0.017159326002001762, + 0.002100713551044464, 0.0457582026720047, 0.015364713966846466, -0.013075035065412521, + -0.025584282353520393, -0.003982625901699066, -0.01557688508182764, 0.006320926360785961, + 0.00579933961853385, 0.03200245276093483, -0.04027711972594261, -0.011377668008208275, + 0.00676736980676651, -0.008181842975318432, -0.03260360285639763, 0.025761090219020844, + 0.002565942471846938, 0.0038964312989264727, 0.020173922181129456, 0.011784329079091549, + 0.011855052784085274, 0.0227022934705019, -0.028289461508393288, -0.004910873714834452, + 0.0014398894272744656, -0.005052321124821901, -0.00468102190643549, -0.016849910840392113, + 0.008137640543282032, 0.012800981290638447, -0.0035339726600795984, -0.02715788222849369, + 0.0038013963494449854, -0.06464141607284546, -0.03949915990233421, -0.004126283340156078, + 0.0049815974198281765, -0.0115102743729949, 0.024046042934060097, -0.004163855221122503, + -0.011775488033890724, -0.028077291324734688, -0.024470383301377296, 0.04862251132726669, + 0.016443248838186264, -0.04126725345849991, -0.038367580622434616, -0.034672271460294724, + -0.024824002757668495, 0.001052014296874404, -0.009830587543547153, -0.006802731193602085, + -0.00907030887901783, -0.015055297873914242, -0.028254099190235138, -0.0453692227602005, + -0.009388565085828304, 0.03318707272410393, -0.026026304811239243, 0.033911991864442825, + 0.00699280109256506, -0.015019935555756092, 0.04229274392127991, 0.008380752988159657, + 0.0038455985486507416, 0.030853193253278732, 0.010953325778245926, -0.013030833564698696, + 0.008703429251909256, -0.01870640553534031, -0.01838815025985241, -0.003251077840104699, + 0.00917639397084713, 0.023780828341841698, -0.027988886460661888, 0.023922275751829147, + 0.01804337278008461, 0.03555631637573242, -0.043919388204813004, -0.0008823880925774574, + 0.0010763256577774882, -0.024770960211753845, 0.013481696136295795, 0.042929258197546005, + 0.03196709230542183, -0.004769426304847002, -0.008133220486342907, 0.012703736312687397, + 0.012129106558859348, -0.007434824015945196, -0.011863892897963524, 0.00012998233432881534, + 0.0004166065191384405, 0.02696339227259159, 0.004216897767037153, 0.0231973584741354, + 0.025071535259485245, 0.0024863784201443195, 0.010502462275326252, 0.031047683209180832, + 0.0024753278121352196, -0.03113608807325363, 0.0036820501554757357, -0.001617803587578237, + 0.0112539017572999, -0.06591444462537766, 0.020173922181129456, 0.04894076660275459, + 0.006303245667368174, -0.028766846284270287, 0.013799953274428844, -0.010714633390307426, + -0.029350316151976585, 0.034495461732149124, 0.019696537405252457, -0.0233034435659647, + 0.029403358697891235, 0.007540909573435783, -0.029138145968317986, -0.0030278563499450684, + -0.0030123856849968433, -0.008508939296007156, -0.008800674229860306, -0.0018819122342392802, + 0.009397405199706554, 0.05017843097448349, 0.011395348235964775, -0.004937394987791777, + 0.010025077499449253, -0.034495461732149124, -0.0222249086946249, 0.038650475442409515, + 0.005542966537177563, -0.038261495530605316, 0.007178450934588909, -0.003750563831999898, + -0.033823587000370026, 0.010979847051203251, -0.010016237385571003, 0.006590560544282198, + 0.03194941207766533, -0.003575964830815792, 0.02668049745261669, -0.008442636579275131, + -0.019307557493448257, 0.014533710666000843, 0.06322694569826126, 0.03720064088702202, + -0.0114041892811656, 0.025884857401251793, -0.01890089549124241, -0.005578328389674425, + 0.011961137875914574, -0.009812907315790653, -0.0110328895971179, -0.04947119578719139, + 0.0030344866681843996, 0.021871289238333702, 0.03741281107068062, 0.034619227051734924, + -0.001386846648529172, -0.0034787196200340986, -0.01803453080356121, 0.03111840784549713, + -0.012783300131559372, 0.023993000388145447, 0.0223133135586977, 0.016346003860235214, + 0.0010050494456663728, 0.0021018185652792454, 0.021429266780614853, -0.015099500305950642, + 0.0010083646047860384, -0.0011255006538704038, 0.005675573367625475, 0.05891280248761177, + -0.026079347357153893, 0.013852995820343494, -0.009954353794455528, 0.02335648611187935, + -0.0222425889223814, -0.01879481039941311, -0.017044400796294212, -0.01872408762574196, + 0.002780323615297675, 0.08409042656421661, -0.013207642361521721, 0.043742578476667404, + -0.0036312176380306482, -0.024152128025889397, -0.01738033816218376, 0.02781207673251629, + -0.006365128792822361, 0.021871289238333702, -0.03134825825691223, -0.010758835822343826, + -0.005909845232963562, 0.017000198364257812, -0.002811265178024769, 0.0443437322974205, + -0.052017245441675186, 0.025513557717204094, -0.00224768603220582, -0.0007492286968044937, + 0.0011636251583695412, 0.0021846978925168514, -0.004972756840288639, 0.028837569057941437, + -0.015842098742723465, 0.007280115969479084, 0.012641852721571922, 0.0065507786348462105, + 0.05134537070989609, 0.0002225308708148077, -0.001065827556885779, -0.010679272003471851, + 0.0075188083574175835, 0.0220480989664793, -0.0033593736588954926, -0.028536994010210037, + 0.01844119280576706, -0.052865929901599884, 0.013110397383570671, 0.03755426034331322, + 0.047703105956315994, -0.013578941114246845, -0.024399660527706146, -0.0039207423105835915, + 0.0013636404182761908, -0.025036172941327095, -0.008738791570067406, 0.007739820051938295, + 0.0017647761851549149, -0.020545221865177155, -0.052936654537916183, -0.024399660527706146, + -0.009105670265853405, -0.0008260301547124982, -0.01759250834584236, 0.0012929168296977878, + 0.03233839198946953, -0.0006155167939141393, 0.0005539098638109863, 0.00451747328042984, + 0.02797120437026024, -0.021553033962845802, -0.029314953833818436, -0.012182149104773998, + 0.0018056632252410054, 0.003449988318607211, -0.01150143425911665, -0.015196745283901691, + -0.0452631376683712, -0.006515416782349348, -0.023621700704097748, -0.020792754366993904, + -0.014082847163081169, 0.034194886684417725, 0.008005033247172832, 0.01754830591380596, + -0.01805221289396286, 0.03324011713266373, -0.025053855031728745, 0.015240947715938091, + 0.007448084652423859, 0.043070703744888306, -0.01826438307762146, -0.010131163522601128, + 0.016867591068148613, 0.01757482811808586, -0.016328323632478714, -0.020792754366993904, + 0.025796452537178993, 0.00436718575656414, 0.014321539551019669, 0.000265351845882833, + 0.017115123569965363, 0.008685749024152756, 0.019926389679312706, 0.011138975620269775, + -0.004619138780981302, -0.016540493816137314, 0.012977790087461472, -0.006789470557123423, + -0.00465892069041729, -0.004212477710098028, -0.01858264021575451, 0.01325184479355812, + 0.0026167752221226692, -0.004057769663631916, -0.00942392647266388, 0.02208346128463745, + 0.02323272079229355, -0.008491259068250656, -0.03727136552333832, -0.023975318297743797, + 0.01771627552807331, -0.01790192537009716, 0.023745466023683548, 0.005078842397779226, + -0.006382809951901436, 0.04094899445772171, 0.05431576445698738, -0.005450141616165638, + -0.016063109040260315, 0.008752051740884781, 0.0027095999103039503, -0.025018492713570595, + -0.012836342677474022, -0.0462179072201252, 0.019837984815239906, 0.015055297873914242, + -0.016505133360624313, -0.02676890231668949, 0.03499052673578262, -0.011969977989792824, + -0.006281144451349974, 0.009874789975583553, -0.016496291384100914, 0.012465043924748898, + 0.021111011505126953, 0.004373815841972828, -0.003158253151923418, -0.02728164941072464, + 0.008588504046201706, -0.01777815818786621, 0.004994858056306839, 0.04869323596358299, + 0.006427011918276548, -0.00217254227027297, -0.004875511862337589, -0.025266025215387344, + -0.034460101276636124, 0.011943456716835499, 0.04066609963774681, 0.000514127837959677, + -0.0031759340781718493, -0.029951468110084534, 0.005145145580172539, 0.020315369591116905, + -0.017132805660367012, 0.008181842975318432, -0.020651306957006454, -0.005962888244539499, + 0.02249012142419815, 0.0012597651220858097, -0.020032474771142006, -0.037731070071458817, + -0.025053855031728745, 0.003213505959138274, -0.014896169304847717, -0.002073087031021714, + 0.014012123458087444, -0.0013360140146687627, -0.014038645662367344, -0.0023007288109511137, + -0.010661590844392776, -0.007023742888122797, 0.0450156070291996, 0.0442730076611042, + 0.023639380931854248, 0.034141842275857925, -0.01777815818786621, -0.004941815510392189, + -0.019590452313423157, -0.0020432504825294018, -0.0442022830247879, 0.01810525543987751, + 0.024753278121352196, 0.01842351257801056, -0.025796452537178993, -0.019643494859337807, + -0.008566402830183506, 0.042575638741254807, 0.0232150387018919, -0.0225431639701128, + -0.010113482363522053, 0.011421870440244675, -0.020704349502921104, 0.039322350174188614, + 0.005224709864705801, -0.0029969147872179747, -0.0045108431950211525, 0.014427625574171543, + -0.02749381959438324, 0.025460515171289444, 0.025725729763507843, -0.013075035065412521, + -0.01856495812535286, 0.0006757423980161548, 0.028696121647953987, -0.013517058454453945, + -0.015930503606796265, 0.010811878368258476, -0.022419398650527, -0.02668049745261669, + 0.001820028992369771, -0.002336090663447976, -0.026061667129397392, 0.008429375477135181, + 0.0229144636541605, -0.01814061775803566, 0.004479901399463415, 0.019130747765302658, + 0.019767262041568756, 0.0035715445410460234, -0.039004094898700714, -0.007129828445613384, + -0.014259656891226768, -0.026379922404885292, -0.0032532881014049053, 0.008318869397044182, + -0.0014774613082408905, -0.029244231060147285, -0.015214425511658192, -0.015329351648688316, + -0.019891027361154556, -0.0006818202091380954, 0.009804066270589828, -0.015196745283901691, + 0.016257598996162415, 0.038438305258750916, 0.0013603252591565251, -0.038650475442409515, + -0.014330380596220493, -0.006665704306215048, -0.010573185980319977, 0.002225585049018264, + 0.0115986792370677, 0.009768704883754253, -0.0003409101045690477, -0.017123963683843613, + 0.01384415477514267, -0.024134445935487747, 0.013269525952637196, -0.03202013298869133, + 0.00774424010887742, 0.020474497228860855, -0.007708878256380558, -0.00941508635878563, + -0.012217511422932148, 0.019289877265691757, 0.0458996519446373, 0.0014332589926198125, + -0.01840583048760891, 0.012111425399780273, 0.03571544587612152, 0.0047296443954110146, + -0.0006983960629440844, -0.025195302441716194, -0.002559312153607607, -0.03511429578065872, + 0.015267468988895416, 0.009963194839656353, 0.002983654150739312, -0.01354357972741127, + -0.023533295840024948, -0.020474497228860855, 0.021199414506554604, 0.0227376539260149, + 0.006714326795190573, 0.008999585174024105, -0.004278780892491341, -0.033204756677150726, + 0.011430710554122925, 0.04034784436225891, 0.02678658440709114, 0.02344489097595215, + 0.01354357972741127, -0.016478611156344414, -0.00024642772041261196, -0.024541107937693596, + 0.0462886318564415, -0.026379922404885292, 0.015152542851865292, -0.05866527184844017, + -0.021022606641054153, 0.0232857633382082, 0.0061750588938593864, -0.012394320219755173, + 0.0036002760753035545, 0.05371461436152458, 0.008111119270324707, 0.01890089549124241, + -0.01817597821354866, -0.00027750746812671423, 0.029615530744194984, -0.010467100888490677, + 0.0030742688104510307, -0.020474497228860855, -0.0001359220186714083, 0.0023338806349784136, + 0.004906453657895327, 0.021270139142870903, -0.00041329136001877487, 0.02305591106414795, + 0.015691811218857765, 0.03223230689764023, -0.008354231715202332, -0.005741876550018787, + 0.008358651772141457, 0.03260360285639763, -0.02802424691617489, -0.0013890567934140563, + -0.008199523203074932, 0.043848663568496704, -0.005498764105141163, 0.0234979335218668, + -0.026079347357153893, 0.029244231060147285, -0.0020653516985476017, 0.01749526336789131, + 0.007700037676841021, -0.006250202655792236, -0.01861800253391266, -0.029898423701524734, + 0.020686669275164604, -0.02660977467894554, 0.01364082470536232, 0.011085933074355125, + 0.02774135395884514, -0.025778772309422493, 0.009052627719938755, 0.008274667896330357, + -0.045793566852808, -0.03223230689764023, -0.03117145039141178, -0.023886913433670998, + -0.009485810063779354, -0.03191404789686203, -0.014180092141032219, 0.019555089995265007, + -0.015665289014577866, -0.016841070726513863, 0.02259620651602745, -0.03576848655939102, + 0.025690367445349693, -0.0454753078520298, -0.003843388520181179, -0.022419398650527, + -0.024435022845864296, -0.0052335504442453384, -0.0472080372273922, 0.005445721093565226, + -0.014118209481239319, 0.03709455579519272, -0.025301387533545494, -0.01865336298942566, + -0.0012962319888174534, 0.007540909573435783, 0.007947570644319057, 0.025106897577643394, + -0.02724628709256649, 0.03223230689764023, 0.001447624759748578, 0.0014553602086380124, + 0.01828206516802311, 0.017230050638318062, 0.009450447745621204, -0.0460764616727829, + 0.003438937710598111, -0.01856495812535286, -0.012429682537913322, 0.007311057765036821, + -1.911403342091944e-5, 0.0016730563947930932, 0.0036931007634848356, -0.0028046348597854376, + 0.023427210748195648, -0.011713605374097824, -0.009202915243804455, -0.005503184162080288, + -0.008252566680312157, 0.010290291160345078, 0.029898423701524734, 0.05527053400874138, + -0.0013990022707730532, 0.014825445599853992, 0.01776931807398796, -0.023869233205914497, + -0.014648636803030968, -0.01883017271757126, -0.0008741001365706325, 0.016319483518600464, + -0.01741570048034191, -0.01904234290122986, -0.024346617981791496, 0.005326375365257263, + 0.0024686974938958883, -0.02669817954301834, -0.00946812890470028, -0.013039673678576946, + -0.0012951268581673503, -0.011846211738884449, -0.02784743905067444, -0.019979432225227356, + 0.006303245667368174, -0.042575638741254807, 0.017088603228330612, -0.008102278225123882, + -0.00448432145640254, -0.0018609161488711834, -0.019891027361154556, 0.006373969372361898, + 0.043070703744888306, -0.016160354018211365, 0.007107727229595184, 0.01833510771393776, + 0.020386092364788055, 0.0017194688552990556, -0.04147942364215851, -0.01763671077787876, + -0.008897919207811356, -0.038721200078725815, -0.01865336298942566, 0.02694571204483509, + 0.04063073918223381, 0.038190774619579315, -0.021358544006943703, -0.03177260234951973, + -0.008314449340105057, -0.016743825748562813, 0.056755732744932175, -0.009105670265853405, + ], + index: 66, + }, + { + title: "Carol Bruneau", + text: "Carol Bruneau (born 1956) is a Canadian writer. She lives in Halifax, Nova Scotia, where she is currently a part-time faculty member of the Nova Scotia College of Art and Design University, where she teaches writing in the foundation program. She has a Master's degree from Dalhousie University.Her book Purple for Sky (2000) won the Thomas Head Raddall Award and the fiction category of the Dartmouth Book Awards in 2001.", + vector: [ + -0.04255025461316109, -0.04091265797615051, -0.0324244424700737, -0.019460123032331467, + -0.005799826234579086, -0.002688390202820301, -0.040776193141937256, -0.03392557427287102, + -0.013189488090574741, 0.052512310445308685, -0.002818033332005143, -0.03245173394680023, + 0.004772915970534086, -0.021206894889473915, 0.010849087499082088, -0.027593526989221573, + -0.026706494390964508, 0.03258820250630379, 0.00674485694617033, 0.020715614780783653, + 0.00634910399094224, -0.029831577092409134, 0.019596589729189873, 0.013817233964800835, + 0.019896816462278366, 0.059171877801418304, 0.024604910984635353, -0.009354778565466404, + 0.024563970044255257, -0.026624614372849464, 0.01645786128938198, -0.0003518277080729604, + 0.023349419236183167, -0.022271333262324333, -0.046098385006189346, 8.415878255618736e-6, + -0.031223535537719727, 0.02673378773033619, -0.03954799473285675, -0.01347606722265482, + 0.06086406111717224, -0.040994539856910706, -0.029422178864479065, 0.0031489646062254906, + 0.028958192095160484, -0.07167220860719681, -0.03436226770281792, 0.015188721939921379, + -0.016976432874798775, 0.029422178864479065, 0.012909730896353722, 0.0021510531660169363, + 0.0079969372600317, 0.0014687207294628024, -0.003759652143344283, 0.014451802708208561, + -0.009259252808988094, 0.08209824562072754, -0.018682263791561127, 0.0003714447666425258, + -0.015925640240311623, -0.0032496086787432432, -0.031223535537719727, -0.006250165868550539, + 0.012766441330313683, 0.01705831289291382, 0.007539774291217327, 0.004445396363735199, + -0.024031750857830048, -0.0028316800016909838, 0.03392557427287102, -0.05114764720201492, + -0.02610604278743267, 0.05726134404540062, 0.0018849435728043318, -0.017413126304745674, + 0.005045848898589611, 0.015093195252120495, 0.0083244564011693, -0.02420915849506855, + -0.007915057241916656, -0.02800292707979679, -0.009743708185851574, -0.0026986252050846815, + -0.02128877490758896, -0.03018639050424099, 0.04729929193854332, -0.06714151799678802, + -0.003225727006793022, 0.017508652061223984, -0.012473038397729397, -0.032751962542533875, + 0.05698841065168381, 0.013237250968813896, 0.016294101253151894, 0.0017049784073606133, + 0.017467712983489037, -0.01674444042146206, -0.03400745242834091, -0.019924109801650047, + 0.031687524169683456, 0.042331911623477936, 0.0626654177904129, -0.027115894481539726, + 0.01521601527929306, 0.034962717443704605, 0.0026815668679773808, -0.02253061905503273, + 0.0022261098492890596, 0.027702700346708298, 0.03597256913781166, -0.004960557445883751, + -0.024168217554688454, -0.007717180997133255, -0.02554653026163578, 0.025437356904149055, + 0.0170856062322855, 0.02816668711602688, -0.0048377374187111855, -0.006949556525796652, + -0.0194464772939682, -0.018709557130932808, -0.029394885525107384, -0.00681650172919035, + 7.830831600585952e-5, -0.026269802823662758, -0.05412261560559273, 0.0021510531660169363, + 0.04702635854482651, -0.0010149696609005332, 0.013141724281013012, -0.012507155537605286, + -0.03212421387434006, -0.02953135222196579, -0.028084807097911835, -0.02364964596927166, + -0.005605361890047789, -0.01789075881242752, 0.011517773382365704, 0.005380191840231419, + 0.03302489593625069, 0.007580714300274849, 0.07745838910341263, -0.006055701058357954, + -0.06523098796606064, -0.06594061851501465, -0.022025693207979202, 0.024714084342122078, + -0.0006550392135977745, -0.057861797511577606, 0.016157634556293488, 0.004366928245872259, + 0.02955864556133747, 0.017781585454940796, 0.0073623680509626865, 0.03392557427287102, + -0.02772999368607998, -0.02486419677734375, -0.0026099218521267176, 0.03171481564640999, + -0.031660228967666626, 0.006506040692329407, -0.03313406556844711, -0.00493326410651207, + 0.017440419644117355, -0.039165887981653214, -0.039848219603300095, 0.04396950826048851, + 0.019501063972711563, 0.017904404550790787, -0.015543535351753235, -0.007034848444163799, + 0.04467913508415222, -0.007553420960903168, -0.04462454840540886, -0.003626597346737981, + 0.025587469339370728, -0.010507920756936073, -0.018054518848657608, 0.010364631190896034, + -0.0016196868382394314, 0.00016248042811639607, 0.011340366676449776, -0.03398016095161438, + 0.005885118152946234, 0.008965848945081234, 0.009375249035656452, 0.010787677019834518, + -0.022298626601696014, -0.05666089430451393, -0.020251629874110222, -0.05136599391698837, + 0.017754292115569115, -0.0415131114423275, 0.04945546016097069, 0.0006149521796032786, + -0.05344028398394585, -0.00014499566168524325, -0.045825451612472534, -0.021015841513872147, + -0.001722036744467914, -0.0201015155762434, -0.008112933486700058, -0.0019378244178369641, + 0.01291655469685793, 0.06550392508506775, 0.014615562744438648, 0.04596192017197609, + 0.016826320439577103, -0.015407068654894829, 0.04334176331758499, -0.005110670812427998, + 0.017972638830542564, -0.01754959300160408, -0.024263745173811913, -0.0012734030606225133, + -0.04459725320339203, -0.005509835202246904, -0.024441150948405266, 0.004680801182985306, + 0.04593462496995926, 0.0380195677280426, 0.011538242921233177, 0.0010055875172838569, + -0.013414657674729824, 0.022639792412519455, -0.027347886934876442, 0.08952202647924423, + -0.014001463539898396, -0.03378910571336746, -0.01718113385140896, 0.031414590775966644, + -0.028357740491628647, 0.068342424929142, 0.005670183338224888, 0.020865729078650475, + -0.038756486028432846, -0.001960000256076455, 0.020838435739278793, -0.0009143255883827806, + -0.02566934935748577, -0.0009927938226610422, -0.00801058392971754, -0.03711888939142227, + 0.01978764310479164, -0.06326587498188019, 0.020306216552853584, -0.021643588319420815, + -0.02676108106970787, 0.0183547455817461, -0.021206894889473915, 0.001458485727198422, + 0.009388895705342293, -0.011265309527516365, 0.006622036918997765, 0.03359805420041084, + -0.03392557427287102, 0.0036811840254813433, 0.028466911986470222, 0.061409927904605865, + 0.0008064317516982555, 0.012377511709928513, 0.009040906094014645, 0.050519898533821106, + -0.022735320031642914, -0.06479429453611374, -0.032779254019260406, -0.04923711344599724, + -0.000881061889231205, -0.008147050626575947, 0.023008253425359726, -0.06577685475349426, + 0.0657222718000412, 0.04421514645218849, -0.053140055388212204, 0.0038142388220876455, + 0.0030824372079223394, -0.07374650239944458, -0.03258820250630379, 0.005748651456087828, + -0.003633420681580901, -0.020715614780783653, 0.002077702432870865, -0.031414590775966644, + -0.02427739091217518, -0.010746737010776997, 0.012131872586905956, 0.007321428041905165, + 0.07232724875211716, -0.04023032635450363, 0.00872703269124031, 0.005195962265133858, + -0.008651976473629475, -0.028494205325841904, 0.027184126898646355, -0.021029489114880562, + 0.030814137309789658, -0.05390426889061928, 0.035890690982341766, 0.013380540534853935, + 0.034526024013757706, -0.03367993235588074, -0.013987816870212555, -0.027279654517769814, + -0.007123551331460476, 0.004097406752407551, -0.011742942966520786, 0.008235753513872623, + 0.04156769812107086, -0.003565187333151698, -0.039165887981653214, 0.007573890965431929, + 0.015052255243062973, -0.047626812011003494, 0.04478830844163895, 0.003411662532016635, + -0.017849819734692574, 0.032997600734233856, -0.0016700088744983077, -0.01611669361591339, + 0.020742908120155334, -0.013612533919513226, -0.007689887657761574, -0.032724667340517044, + 0.039411526173353195, -0.0055575985461473465, -0.00429528346285224, -0.02467314340174198, + 0.010030288249254227, 0.025355476886034012, -0.04530688002705574, -0.02072926238179207, + 0.03971175104379654, 0.038510847836732864, 0.04525229334831238, 0.009184195660054684, + -0.011415422894060612, 0.019269069656729698, 0.009914292022585869, 0.022926373407244682, + -0.020865729078650475, -0.0021544648334383965, 0.02974969893693924, 1.384655297442805e-5, + -0.015093195252120495, -0.03215150907635689, 0.027593526989221573, 0.040312204509973526, + 0.0021834641229361296, 0.0036914190277457237, 0.0007079200004227459, 0.07571161538362503, + 0.0032803136855363846, -0.012739147990942001, 0.012036345899105072, -0.022134866565465927, + 0.0363546758890152, -0.05502329394221306, -0.00657427404075861, 0.004749034531414509, + 0.028685258701443672, 0.02629709616303444, 0.007150844670832157, 0.012015875428915024, + 0.050274260342121124, -0.024850551038980484, 0.02231227420270443, 0.018504858016967773, + 0.026706494390964508, 0.027470707893371582, -0.022571559995412827, 0.058735184371471405, + -0.017699705436825752, -0.07915057241916656, -0.018900610506534576, -0.03105977736413479, + -0.058516837656497955, 0.012902908027172089, -0.026037808507680893, -0.008078817278146744, + -0.01353747770190239, 0.05202103033661842, -0.02763446792960167, 0.004994674120098352, + -0.016007520258426666, 0.044488079845905304, -0.012206928804516792, 0.0319877490401268, + 0.04991944879293442, -0.02190287411212921, -0.03485354408621788, -0.06943415850400925, + 0.040093857795000076, -0.04255025461316109, 0.011176606640219688, -0.0015633944422006607, + -0.01839568465948105, 0.031632937490940094, 0.0639754980802536, 0.019801290705800056, + -0.05709758400917053, 0.009409365244209766, -0.03818332776427269, -0.004093995317816734, + 0.04121288284659386, 0.005185727030038834, 0.024918783456087112, -0.028030220419168472, + 0.008897616527974606, 0.004261166788637638, -0.004984438885003328, 0.00463644927367568, + 0.011354013346135616, 0.05698841065168381, -0.01293020136654377, 0.031223535537719727, + 0.04268672317266464, 0.03258820250630379, -0.048281848430633545, 0.03550858423113823, + 0.026256155222654343, -0.0023557529784739017, -0.04241378977894783, 0.002323342254385352, + 0.005840766243636608, 0.01667620614171028, -0.038074154406785965, -0.00871338602155447, + 0.014233455993235111, 0.031141655519604683, 0.00932066235691309, -0.06086406111717224, + 0.03493542596697807, 0.02000598981976509, 0.019214482977986336, 0.051857270300388336, + -0.04620755836367607, -0.025232655927538872, 0.02934029884636402, 0.026365328580141068, + -0.025914989411830902, -0.019924109801650047, -0.03550858423113823, -0.023144720122218132, + -0.010903674177825451, 0.026269802823662758, -0.023349419236183167, -0.015952933579683304, + -0.004527276381850243, -0.020278923213481903, -0.05035613849759102, 0.028112100437283516, + 0.008883969858288765, -0.049619220197200775, 0.026215216144919395, 0.017808878794312477, + -0.04241378977894783, 0.034553319215774536, -0.07434695214033127, 0.019842229783535004, + -0.03436226770281792, 0.023267539218068123, -0.05567833408713341, -0.014915788546204567, + 0.000462706753751263, -0.002430809661746025, -0.003957528620958328, -0.0450066514313221, + -0.03247902914881706, 0.0018798260716721416, 0.05281253904104233, -0.00415540486574173, + -0.042113564908504486, -0.012670914642512798, 0.056933823972940445, -0.018996138125658035, + 0.05477765575051308, -0.0005833943141624331, -0.012466215528547764, 0.023704232648015022, + 0.023008253425359726, -0.013066668063402176, 0.00721225468441844, 0.03736452758312225, + -0.001951470971107483, 0.0067789736203849316, -0.03987551108002663, -0.03065037727355957, + -0.007260018028318882, -0.0038824721705168486, -0.0003995909937657416, 0.05245772376656532, + 0.046316731721162796, -0.05797097086906433, -0.005073142237961292, 0.010214517824351788, + -0.002338694641366601, -0.056060440838336945, -0.001481514540500939, 0.0028487383387982845, + 0.02972240559756756, 0.03913859277963638, 0.04637131839990616, -0.03578151762485504, + -0.008706563152372837, 0.005642889998853207, 0.004059878643602133, -0.030131803825497627, + 0.02112501487135887, -0.008235753513872623, -0.015639061108231544, 0.060918647795915604, + 0.024727730080485344, 0.0037630638107657433, 0.006369573995471001, -0.010412394069135189, + 0.013598887249827385, -0.013469244353473186, -0.03179669380187988, 0.009054552763700485, + 0.05024696886539459, -0.012084108777344227, 0.016143986955285072, -0.03728264942765236, + 0.0075943609699606895, -0.025341829285025597, 0.058080144226551056, 0.013735353946685791, + 0.022203100845217705, -0.023690585047006607, 0.017686059698462486, 0.030350150540471077, + 0.01783617213368416, -0.013360070995986462, 0.03769204765558243, -0.016375981271266937, + 0.04571627825498581, -0.025287242606282234, -0.02663826197385788, -0.001462750369682908, + -0.03307948261499405, 0.0008213577675633132, -0.007928703911602497, -0.06850618869066238, + 0.018805084750056267, -0.017699705436825752, 0.01689455285668373, 0.004360104911029339, + -0.019610237330198288, 0.004564804490655661, -0.044761013239622116, 0.04855478182435036, + -0.01120389997959137, 0.03690054267644882, 0.028494205325841904, -0.0019292952492833138, + -0.019487416371703148, -0.02128877490758896, 0.0315510556101799, 0.008467746898531914, + -0.0049366760067641735, -0.004899147432297468, 0.06801490485668182, -0.025464650243520737, + -0.0026713318657130003, -0.007915057241916656, -0.007403308060020208, -0.00390635384246707, + -0.014697442762553692, -0.035808809101581573, -0.011026493273675442, 0.006594744045287371, + 0.04959192872047424, -0.046289440244436264, -0.01898249052464962, 0.0060898177325725555, + -0.009655005298554897, -0.022762613371014595, -0.01995140314102173, 0.03769204765558243, + -0.009825588203966618, -0.02685660868883133, -3.1651165954826865e-6, 0.007580714300274849, + -0.016853613778948784, 0.002002645982429385, -0.03799227625131607, -0.008617859333753586, + 0.004175874870270491, 0.007348721381276846, 0.0025229244492948055, -0.012022699229419231, + 0.039657168090343475, -0.034962717443704605, -0.007710357662290335, 0.03108707070350647, + 0.014547329396009445, 0.030077217146754265, -0.02863067202270031, -0.04620755836367607, + 0.0052369022741913795, 0.002659390913322568, -0.040967244654893875, -0.006850618403404951, + -0.007880941033363342, 0.0015096607385203242, 0.025027956813573837, 0.008242577314376831, + 0.038483552634716034, -0.02433197759091854, -0.0415131114423275, -0.008604212664067745, + -0.0034304268192499876, 0.038292501121759415, 0.013844527304172516, -0.027457060292363167, + -0.0209749024361372, 0.009996171109378338, -0.01194764208048582, 0.007130374666303396, + 0.00352083588950336, -0.01978764310479164, 0.012984788045287132, 0.02505525015294552, + 0.017413126304745674, -0.06708693504333496, 0.015584474429488182, -0.00986652821302414, + 0.022298626601696014, -0.008051523938775063, 0.011142490431666374, -0.006120522506535053, + 0.006082994397729635, -0.005472306627780199, -0.009771001525223255, 0.04145852476358414, + 0.026965782046318054, 0.0367913693189621, -0.015925640240311623, 0.03599986433982849, + -0.005601949989795685, 0.04421514645218849, -0.028466911986470222, 0.015693647786974907, + -0.03086872398853302, -0.039848219603300095, 0.0052266670390963554, -0.013196310959756374, + 0.05079283192753792, 0.005540539976209402, -0.003971175290644169, 0.04724470525979996, + 0.02396351844072342, 0.014465449377894402, 0.02034715563058853, 0.013612533919513226, + -0.00871338602155447, -0.014588269405066967, -0.024468444287776947, -0.009388895705342293, + -0.04170416295528412, -0.034526024013757706, -0.0205382090061903, 0.0024768670555204153, + -0.011831645853817463, 0.03395286574959755, 0.0024376329965889454, 0.0007057876791805029, + 0.004875265993177891, 0.0007224195869639516, 0.0022073457948863506, 0.027034014463424683, + 0.016225866973400116, 0.0013373717665672302, 0.004926440771669149, -0.015761882066726685, + 0.00634910399094224, 0.001500278594903648, 0.00852915644645691, 0.016594326123595238, + -0.023158365860581398, 0.014206163585186005, -0.007321428041905165, -0.021275127306580544, + 0.0016947434050962329, -0.005677006673067808, 0.015175075270235538, 0.021616294980049133, + -0.0024359270464628935, 0.006239931099116802, -0.0004678242257796228, -0.003288842737674713, + 0.009757354855537415, -0.004670565947890282, -0.003943881951272488, -0.00588852958753705, + -0.005922646261751652, -0.02579217031598091, 0.011094726622104645, 0.025601116940379143, + -0.015516242012381554, -0.023376712575554848, -0.04216815158724785, 0.045634400099515915, + 0.012800558470189571, -0.012295631691813469, -0.008522333577275276, 0.03065037727355957, + 0.006611802149564028, -0.054996002465486526, -0.0027805049903690815, 0.06130075454711914, + -0.0051686689257621765, -0.04017573967576027, 0.02268073335289955, -0.009156902320683002, + 0.0631021112203598, 0.006915440317243338, -0.010992377065122128, 0.02717048116028309, + -0.00930701568722725, 0.002365987980738282, 0.004288460128009319, 0.002077702432870865, + 0.03447143733501434, 0.017031019553542137, 0.0035788340028375387, -0.062064968049526215, + 0.018245572224259377, 0.00760118430480361, -0.01976034976541996, 0.015611767768859863, + 0.041867922991514206, 0.005861236248165369, 0.012616327963769436, 0.022516973316669464, + 0.007901410572230816, 0.01269820798188448, 0.01686725951731205, -0.0006264665280468762, + 0.0037664754781872034, -0.007464717607945204, 0.028985485434532166, -0.015911994501948357, + -0.006956379860639572, -0.0015557181322947145, -0.0036914190277457237, -0.03040473721921444, + 0.02309013344347477, -0.005465483292937279, -0.020156102254986763, 0.0027634466532617807, + -0.005830531474202871, -0.0009791471529752016, -0.04023032635450363, 0.011729296296834946, + 0.014001463539898396, -0.034307681024074554, -0.05354945734143257, 0.016662560403347015, + 0.0024205746594816446, -0.004626214504241943, 0.006819913629442453, -0.01711289957165718, + 0.006403690669685602, -0.012841498479247093, -0.0010448216926306486, -0.025437356904149055, + 0.014956728555262089, -0.04978298023343086, -0.02955864556133747, 0.007867294363677502, + 0.005202785599976778, -0.024727730080485344, 0.01888696476817131, -0.009184195660054684, + -0.024700436741113663, -0.01277326513081789, -0.016266807913780212, -0.0019088252447545528, + -0.026378976181149483, 0.02934029884636402, -0.01779523305594921, -0.005076554138213396, + -0.007191784679889679, -0.016321394592523575, -0.008256223984062672, -0.008065170608460903, + -0.0250825434923172, -0.025751229375600815, 0.011169783771038055, -0.023226598277688026, + 0.003162611275911331, -0.021698174998164177, 0.002925500739365816, -0.0034338384866714478, + -0.02187558077275753, 0.0033383117988705635, 0.07811342924833298, -0.030568497255444527, + -0.014247102662920952, 0.008078817278146744, -0.01562541536986828, -0.007321428041905165, + 0.024782316759228706, 0.01465650275349617, -0.06299293786287308, -0.02345859259366989, + -0.020592795684933662, 0.009416189044713974, 0.03796498104929924, -0.002367693930864334, + 0.006939321756362915, -0.01255491841584444, -0.020824788138270378, 0.03157835081219673, + -0.027907399460673332, 0.021520767360925674, -0.007184961345046759, -0.006611802149564028, + -0.0032291386742144823, 0.0004211271007079631, 0.05556916072964668, -0.047381170094013214, + -0.015243308618664742, 0.07036212831735611, -0.01764511875808239, -0.019282717257738113, + 0.020388096570968628, -0.002899913117289543, -0.004407868254929781, 0.03534482419490814, + 0.006154639180749655, -0.013360070995986462, 0.013837703503668308, 0.01162012293934822, + 0.00852915644645691, 0.01851850561797619, 0.0029272064566612244, -0.008522333577275276, + 0.0012571976985782385, -0.011865762993693352, 0.00877479650080204, -0.0075261276215314865, + 0.03660031780600548, 0.036081742495298386, 0.005458660423755646, -0.014888495206832886, + -0.042386494576931, -0.05011050030589104, 0.0026764492504298687, 0.026187922805547714, + 0.0015795998042449355, 0.031114362180233, 0.00011023935076082125, -0.00525054894387722, + 0.009873352013528347, -0.01275961846113205, -0.038292501121759415, -0.0419498048722744, + -0.0008051524055190384, 0.007819530554115772, 0.01954200305044651, 0.011340366676449776, + 0.0035413058940321207, 0.0186140313744545, -0.006908616982400417, 0.004882089328020811, + 0.0367913693189621, -0.026406269520521164, -0.012090932577848434, 0.0166489128023386, + 0.023949870839715004, 0.032315269112586975, -0.03335241228342056, -0.027811873704195023, + -0.04301424324512482, 0.012732325121760368, 0.03176940232515335, 0.013687590137124062, + -0.037200767546892166, 0.03559046611189842, -0.014165223576128483, 0.026119688525795937, + -0.022612499073147774, -0.03709159418940544, -0.025819461792707443, -0.008733856491744518, + 0.025901341810822487, -0.01348971389234066, -0.007635300979018211, 0.015911994501948357, + -0.00036611405084840953, -0.018832378089427948, 0.004049643408507109, -0.032779254019260406, + -0.004755857866257429, 0.003503777552396059, -0.026938488706946373, 0.0052266670390963554, + 0.02349953167140484, 0.004223638214170933, -0.03643655776977539, -0.01988316886126995, + 0.00587488291785121, -0.027238713577389717, 0.017931697890162468, 0.010801323689520359, + -0.010173577815294266, 0.004080348648130894, -0.06151910126209259, -0.0024649263359606266, + -0.001286196755245328, -0.01050109788775444, 0.014219810254871845, 0.0350445993244648, + 0.00494008744135499, 0.05122952535748482, -0.007184961345046759, -0.006086406297981739, + -0.0016248043393716216, -0.02371787838637829, -0.04847290366888046, 0.03346158564090729, + -0.04817267507314682, 0.01954200305044651, 0.014629209414124489, -0.0027651526033878326, + -0.003977998625487089, 0.00031238034716807306, -0.03157835081219673, 0.010303220711648464, + 0.008419983088970184, 0.029886163771152496, -0.00031195388874039054, 0.048936888575553894, + -0.02255791239440441, -0.03490813076496124, -0.018095457926392555, -0.02564205601811409, + 0.0017484771087765694, 0.0046159797348082066, 0.006639095488935709, -0.029476765543222427, + -0.014151576906442642, 0.02931300550699234, -0.03127812221646309, -0.026774728670716286, + -0.009948408231139183, 0.014206163585186005, 0.06796032190322876, -0.007908234372735023, + 0.01542071532458067, 0.042495667934417725, 0.024563970044255257, 0.029231125488877296, + -0.014847556129097939, -0.06823325157165527, -0.01699008047580719, -0.01275961846113205, + -0.0017049784073606133, -0.00018327025463804603, -0.011913525871932507, -0.020033283159136772, + -7.425696821883321e-5, 0.040066566318273544, 0.00782635435461998, 0.01888696476817131, + 0.004257754888385534, 0.0010303221642971039, 0.016485154628753662, 0.01978764310479164, + 0.004250931553542614, 0.046944476664066315, 0.030814137309789658, 0.014451802708208561, + 0.011852116324007511, 0.012445745058357716, -0.021711820736527443, 0.006004526279866695, + -0.015243308618664742, 0.02240779995918274, 0.0136330034583807, -0.01795899122953415, + 0.007928703911602497, 0.0011667886283248663, 0.030786843970417976, 0.034089334309101105, + 0.01745406538248062, 0.005107258912175894, -0.02156170830130577, 0.012500331737101078, + -0.04825455695390701, 0.010153108276426792, 0.04721741005778313, 0.03179669380187988, + 0.05666089430451393, -0.02498701773583889, 0.009702768176794052, -0.010248634964227676, + -0.020169749855995178, -0.019473770633339882, 0.022858139127492905, 0.025532882660627365, + 0.010030288249254227, 0.0367094911634922, -0.02542370930314064, 0.07451070845127106, + -0.012520802207291126, 0.02766176126897335, 0.011190253309905529, -0.019214482977986336, + 0.012513978406786919, 0.022789906710386276, 0.020183395594358444, -0.0003586510429158807, + -0.04506123811006546, 0.06326587498188019, -0.005533716641366482, 0.018341097980737686, + 0.04481559991836548, -0.008549626916646957, 0.0008081375854089856, 0.014247102662920952, + -0.015802821144461632, -0.0079969372600317, 0.012984788045287132, 0.015120488591492176, + -0.013517007231712341, -0.0065367454662919044, 0.035181064158678055, 0.014397216029465199, + -0.0029135597869753838, 0.005462071858346462, -0.02797563374042511, 0.01851850561797619, + 0.052512310445308685, 0.02433197759091854, -0.03226068243384361, 0.03482625260949135, + 0.018709557130932808, 0.03911130130290985, 0.00486161932349205, 0.012984788045287132, + 0.005182315595448017, 0.02816668711602688, 0.002234638901427388, -0.006987085100263357, + 0.019965048879384995, -0.016471507027745247, 0.009470775723457336, 0.011504126712679863, + 0.0087611498311162, 0.016157634556293488, -0.02433197759091854, -0.027770934626460075, + -0.03597256913781166, -0.014451802708208561, 0.005035614129155874, 0.010091697797179222, + -0.0008179461001418531, -0.011169783771038055, -0.013046197593212128, -0.002986910520121455, + -0.013387364335358143, 0.006311575882136822, -0.02632438950240612, -0.01854579709470272, + 0.011169783771038055, 0.01370806060731411, 0.010494274087250233, -0.00010949304851237684, + 0.008303986862301826, 0.03395286574959755, 0.029394885525107384, -0.0012606093659996986, + -0.010043934918940067, -0.0010388512164354324, -0.024632204324007034, -0.024850551038980484, + 0.02228498086333275, -0.024495737627148628, -0.0032956660725176334, -0.02561476267874241, + 0.0004750740190502256, -0.0266109686344862, -0.010248634964227676, -0.0367094911634922, + 0.010562507435679436, -0.01544800866395235, -0.005424543749541044, 0.018873317167162895, + 0.02041538991034031, -0.02274896577000618, 0.02299460582435131, -0.017003726214170456, + -0.029831577092409134, 0.02296731248497963, -0.031441882252693176, -0.021916519850492477, + 0.00814022682607174, -0.005260783713310957, -0.028521498665213585, 0.008283516392111778, + -0.03348888084292412, 0.03960258141160011, -0.004701271187514067, 0.03463519737124443, + 0.019364597275853157, 0.017495006322860718, -0.01813639886677265, -0.011224370449781418, + 0.023049192503094673, -0.022544266656041145, 0.06359338760375977, 0.0019378244178369641, + -0.0008836206397973001, -0.030295563861727715, -0.005219843704253435, -0.03291572257876396, + 0.038510847836732864, -0.0038858838379383087, 0.041594989597797394, 0.011558713391423225, + 0.009129608981311321, 0.05379509553313255, 0.011729296296834946, 0.014151576906442642, + -0.015052255243062973, -0.015024961903691292, -0.005049260798841715, 0.013209957629442215, + -0.010357807390391827, 0.01956929638981819, 0.015843762084841728, 0.016880907118320465, + -0.033188652247190475, 0.0029988514725118876, 0.011476833373308182, 0.005922646261751652, + -0.056060440838336945, -0.02134336158633232, 0.030268270522356033, 0.02822127379477024, + 0.005680418107658625, 0.024700436741113663, -0.01589834690093994, 0.002679860917851329, + -0.010978730395436287, 0.035399410873651505, -0.048309143632650375, 0.00463644927367568, + 0.00010848021338460967, 0.02931300550699234, 0.03269737586379051, 0.006250165868550539, + 0.028385033831000328, 0.018504858016967773, 0.003933647181838751, 0.0023284596391022205, + -0.0006780679686926305, 0.0035174242220818996, 0.011408600024878979, -0.015502595342695713, + -0.026815667748451233, 0.04656236991286278, -0.016580680385231972, -0.024468444287776947, + 0.0021834641229361296, 0.01608940027654171, -0.012268338352441788, -0.014533682726323605, + -0.0367913693189621, 0.006775562185794115, -0.02168452739715576, -0.016253160312771797, + -0.02819398045539856, -0.001092584920115769, 0.013196310959756374, -0.025601116940379143, + 0.03395286574959755, 0.02107042819261551, -0.002104995772242546, -0.009545831941068172, + -0.01159282959997654, -0.019460123032331467, 0.009996171109378338, -0.011510949581861496, + -0.007805883884429932, -0.017495006322860718, 0.027429766952991486, -0.022325919941067696, + 0.014479096047580242, 0.011429069563746452, 0.022080279886722565, -0.00391317717730999, + 0.009600418619811535, 0.004220226779580116, -0.006314987316727638, 0.05082012712955475, + 0.0025246303994208574, 0.024482090026140213, 0.00760800763964653, 0.026338035240769386, + 0.008802089840173721, 0.03354346752166748, 0.012145519256591797, -0.026474501937627792, + 0.01733124628663063, 0.0055951266549527645, -0.0009612359572201967, -0.02887631207704544, + 0.001180435298010707, 0.018654970452189445, -0.031660228967666626, -0.007150844670832157, + -0.004663742613047361, 0.004073525313287973, -0.028794432058930397, -0.0019292952492833138, + -0.001096849562600255, 0.0011335249291732907, -0.049400873482227325, -0.006884735077619553, + 0.006881323643028736, 0.010337337851524353, 0.00020064841373823583, -0.01655338704586029, + 0.03796498104929924, 0.01596658118069172, 0.004994674120098352, -0.0034543084912002087, + 0.004639861173927784, 0.0402030311524868, -0.018122751265764236, 0.009136432781815529, + 0.0067994436249136925, -0.01565270870923996, -0.01655338704586029, -0.016444213688373566, + 0.01089002750813961, -0.03771934285759926, 0.0367094911634922, 0.015038608573377132, + -0.018190985545516014, 0.020210688933730125, 0.017153840512037277, 0.036982424557209015, + -0.06386632472276688, -0.0019889993127435446, -0.013967346400022507, -0.0012094343546777964, + 0.003974586725234985, -0.03269737586379051, -0.006622036918997765, 0.03436226770281792, + -0.04290506988763809, 0.013482891023159027, -0.04380574822425842, -0.025505589321255684, + 0.01143589336425066, 0.0190097838640213, 0.018927903845906258, 0.007567067630589008, + 0.024850551038980484, -0.03935693949460983, -0.007955997250974178, -0.022448740899562836, + 0.02128877490758896, -0.012473038397729397, -0.014042403548955917, 0.026406269520521164, + 0.003411662532016635, -0.02999533712863922, -0.017726998776197433, -0.01895519718527794, + -0.02707495540380478, -0.018504858016967773, -0.019241776317358017, -0.016321394592523575, + 0.01973305642604828, 0.015161428600549698, -0.007785413879901171, -0.002577511128038168, + 0.008065170608460903, -0.02822127379477024, 0.032943014055490494, 0.0023779289331287146, + -0.017604179680347443, -0.016157634556293488, -0.013592063449323177, 0.009225135669112206, + 0.02240779995918274, -0.020674675703048706, 0.021820994094014168, 0.010548860765993595, + 0.0064412192441523075, -0.006079582963138819, 0.023513179272413254, 0.013885467313230038, + 0.009764178656041622, -0.0019275894155725837, 0.02228498086333275, -0.029258418828248978, + -0.01910531148314476, -0.009716414846479893, -0.012036345899105072, -0.002043585991486907, + 0.01089002750813961, 0.016362333670258522, 0.03425309434533119, -0.045607104897499084, + -0.010200871154665947, -0.029149245470762253, 0.011108373291790485, -0.023663291707634926, + 0.03280654922127724, -1.7498097804491408e-5, 0.02190287411212921, 0.008979495614767075, + 0.013571593910455704, -0.00549277663230896, -0.0008844735566526651, 0.004274813458323479, + 0.016512447968125343, -0.015229661948978901, -0.056933823972940445, -0.05043802037835121, + -0.045634400099515915, -0.04721741005778313, 0.002662802580744028, -0.012568565085530281, + -0.014247102662920952, 0.015830114483833313, -0.002168111503124237, 0.016485154628753662, + 0.008672446012496948, -0.02175276167690754, -0.018846023827791214, -0.02479596436023712, + 0.0012358748354017735, 0.0083244564011693, 3.912750617018901e-5, 0.009798294864594936, + 0.02586040273308754, -0.00029596174135804176, 0.006871088407933712, -0.027702700346708298, + 0.01973305642604828, -0.025805816054344177, 0.011551889590919018, -0.006352515891194344, + -0.015270601958036423, -0.03062308393418789, 0.001891766907647252, 0.02863067202270031, + 0.020237982273101807, 0.006734622176736593, -0.025314535945653915, 0.013291837647557259, + 0.0027805049903690815, -0.013298660516738892, -0.0069632031954824924, 0.028903605416417122, + -0.00415540486574173, 0.026051456108689308, -0.012343395501375198, 0.031196242198348045, + 0.016375981271266937, -0.0009561184560880065, 0.02860337868332863, 0.02333577163517475, + 0.0031677286606281996, 0.02294001914560795, -0.023608705028891563, -0.019773997366428375, + -0.0026099218521267176, -0.046535078436136246, -0.008911263197660446, 0.0021954048424959183, + 0.04350552335381508, 0.018627677112817764, -0.02586040273308754, 0.02934029884636402, + 0.012739147990942001, -0.013373717665672302, 0.011135666631162167, -0.01795899122953415, + 0.008031053468585014, -0.024468444287776947, 0.014042403548955917, -0.004264578223228455, + 0.007082611788064241, -0.012268338352441788, 0.00822893064469099, 0.031878575682640076, + -0.008767972700297832, 0.03987551108002663, -0.007799060549587011, 0.02156170830130577, + 0.0060727596282958984, -0.010514744557440281, -0.013783116824924946, 0.013783116824924946, + -0.003270078683272004, -0.017276659607887268, 0.0100507577881217, -0.010780854150652885, + 0.005926058162003756, -0.006826736964285374, -0.001264873892068863, 0.03657302260398865, + 0.03621821105480194, 0.01845027133822441, 0.0183547455817461, -0.011831645853817463, + -0.01176341250538826, 0.006601567380130291, 0.0033417234662920237, 0.015038608573377132, + 0.0016418626764789224, 0.03649114444851875, 0.017222072929143906, -0.019091663882136345, + -0.007669417653232813, 0.0003049173392355442, 0.01442450936883688, 0.0010832028929144144, + -0.027457060292363167, 0.013209957629442215, 0.011108373291790485, 0.027689054608345032, + 0.011347189545631409, -0.0075943609699606895, 0.03463519737124443, 0.01486120279878378, + 0.018996138125658035, 0.009614065289497375, 0.05032884702086449, -0.019623883068561554, + -0.021179601550102234, -0.013018904253840446, 0.03624550253152847, -0.005680418107658625, + 0.006601567380130291, -0.004042820073664188, 0.019269069656729698, -0.012084108777344227, + -0.025505589321255684, -0.02194381318986416, 0.016853613778948784, -0.008263046853244305, + -0.035890690982341766, -0.007915057241916656, 0.010432864539325237, -0.019364597275853157, + 0.01602116785943508, 0.040039271116256714, 0.002475161338225007, -0.00399164529517293, + -0.027088601142168045, -0.0005680418107658625, -0.003111436264589429, 0.009211488999426365, + -0.0038961186073720455, 0.037146180868148804, -0.012043168768286705, 0.0032496086787432432, + -0.024045398458838463, -0.033215947449207306, -0.019610237330198288, 0.008570096455514431, + -0.04549793154001236, 0.026215216144919395, 0.015789175406098366, -0.0014533682260662317, + 0.021247833967208862, -0.017999932169914246, 0.0047797393053770065, -0.004926440771669149, + 0.006492394022643566, -0.00416905153542757, -0.005383603740483522, 0.0071576680056750774, + 0.026338035240769386, 0.023936225101351738, 0.016935493797063828, 0.0350445993244648, + 0.028248567134141922, 0.01786346547305584, 0.015407068654894829, -0.01316219475120306, + -0.005601949989795685, -0.019801290705800056, 0.01633504033088684, -0.013325953856110573, + -0.02253061905503273, -0.02865796536207199, 0.006724386941641569, 0.02950405888259411, + 0.0038927069399505854, 0.014697442762553692, 0.00658109737560153, -0.009095492772758007, + 0.02788010612130165, 0.02066102810204029, -0.019037077203392982, 0.006584508810192347, + -0.0484183169901371, -0.01543436199426651, 0.011831645853817463, 0.002297754865139723, + 0.006386632565408945, -0.013592063449323177, -0.060481954365968704, -0.014465449377894402, + -0.011476833373308182, -0.020265275612473488, -0.020579148083925247, -0.022380506619811058, + 0.016785379499197006, 0.009614065289497375, -0.009811941534280777, -0.002775387605652213, + -0.011545066721737385, -0.025723936036229134, 0.005298311822116375, 0.018777791410684586, + -0.007239548023790121, 0.044051386415958405, -0.03239714726805687, -0.05709758400917053, + -0.0388929545879364, 0.013189488090574741, 0.01043968740850687, -0.013414657674729824, + ], + index: 67, + }, + { + title: "Prince Edward\u2014Hastings", + text: "Prince Edward\u2014Hastings is a federal electoral district in Ontario, Canada, that has been represented in the House of Commons since 1968. Its population in 2006 was 113,227.", + vector: [ + 0.010339894331991673, 0.07722382992506027, -0.02827201969921589, -0.016543831676244736, + 0.029038473963737488, -0.0029139702674001455, 0.013224942609667778, -0.016890903934836388, + -0.02940000779926777, -0.0149675402790308, 0.009906052611768246, -0.02358652837574482, + -0.026232963427901268, -0.0027458565309643745, -0.016601676121354103, 0.03138121962547302, + -0.02921201102435589, -0.025394203141331673, 0.015545995905995369, 0.016717368736863136, + 0.00785253569483757, -0.05692003667354584, -0.07369524985551834, -0.021561933681368828, + 0.01326832640916109, 0.02902401238679886, -0.02394806407392025, 0.014504775404930115, + 0.014808464795351028, 0.0177875105291605, -0.05087517574429512, 0.012133107520639896, + 0.0362691693007946, 0.020679788663983345, -0.002641011495143175, 0.03569071367383003, + 0.03184398263692856, -0.042024802416563034, 0.027751410380005836, -0.038091305643320084, + 0.02415052242577076, -0.025914812460541725, -0.011084656231105328, 0.012270490638911724, + 0.022935766726732254, -0.022357311099767685, -0.043355248868465424, 0.007306617684662342, + -0.010643583722412586, 0.010723121464252472, 0.02789602428674698, 0.009515595622360706, + -0.06814207136631012, 0.032277826219797134, -0.003864806843921542, 0.022588692605495453, + 0.025495432317256927, 0.08167793601751328, -0.007375309709459543, 0.007411463186144829, + -0.05801910161972046, 0.007447616662830114, -0.01833704486489296, 0.03349258005619049, + 0.00045892319758422673, 0.06536548584699631, -0.00850329827517271, 0.029877234250307083, + 0.011301577091217041, -0.01852504163980484, 0.006540164351463318, 0.012841715477406979, + 0.05859755724668503, 0.06172121688723564, -0.014468621462583542, 0.03719469904899597, + 0.011923417448997498, 0.006084630265831947, -0.03774423152208328, 0.00033328987774439156, + -0.004389032255858183, -0.024005908519029617, 0.007910381071269512, 0.023311762139201164, + -0.036934394389390945, -0.0025379741564393044, 0.013470785692334175, -0.06270459294319153, + -0.027187414467334747, 0.05804802477359772, -0.024179445579648018, 0.01982656680047512, + 0.04112819582223892, -0.036384861916303635, 0.016775213181972504, 0.013167096301913261, + 0.0217210091650486, -0.003253812901675701, 0.0265944991260767, 0.02040502242743969, + 0.01631244830787182, 0.03279843553900719, 0.023976987227797508, 0.042198337614536285, + 0.05558958649635315, -0.027071723714470863, -0.05686219036579132, -0.03138121962547302, + 0.055300358682870865, 0.02598712034523487, -0.010889427736401558, 0.03424457460641861, + 0.015184461139142513, 0.010065128095448017, 0.004128727130591869, -0.026334192603826523, + 0.01587860658764839, 0.05590773746371269, 0.020260408520698547, 0.028966166079044342, + -0.014425237663090229, 0.023470837622880936, 0.03759961575269699, -0.024439750239253044, + 0.016124451532959938, -0.0030477382242679596, 0.016326909884810448, 0.02791048400104046, + -0.01650044694542885, -0.021966852247714996, -0.020954554900527, 0.026623420417308807, + 0.012581409886479378, -0.0790170431137085, 0.027635717764496803, 0.03612455353140831, + 0.02148962765932083, 0.027635717764496803, 0.009031138382852077, 0.03195967525243759, + -0.044772468507289886, 0.0113305002450943, 0.03048461303114891, -0.01008682046085596, + 0.03386857733130455, 0.021185938268899918, 0.037339311093091965, 0.020867787301540375, + -0.012769408524036407, -0.007736844476312399, -0.052841924130916595, -0.0022415155544877052, + 0.006146091036498547, -0.018756425008177757, 0.0006222917581908405, -0.02491697669029236, + 0.02321053296327591, 0.052870847284793854, -0.02188008464872837, 0.05232131481170654, + -0.03945067524909973, -0.00701015954837203, 0.004768643528223038, 0.02360098995268345, + -0.014013088308274746, 0.02921201102435589, -0.006626932416111231, 0.020144717767834663, + -0.027057262137532234, -0.001793212490156293, 0.024844670668244362, -0.017353668808937073, + 0.016688445582985878, -0.023904679343104362, -0.036963317543268204, -0.010151896625757217, + -0.012306643649935722, -0.020694250240921974, 0.031207682564854622, -0.008373145014047623, + -0.037888843566179276, -0.04063650965690613, 0.0415620394051075, -0.007035466842353344, + -0.0211280919611454, -0.01198126282542944, 0.040173742920160294, 0.0021041324362158775, + -0.02190900780260563, -0.045379843562841415, -0.052870847284793854, 0.0453220009803772, + 0.029081856831908226, 0.03138121962547302, 0.03167044743895531, -0.002360822167247534, + 0.020650867372751236, 0.023673297837376595, -0.022530848160386086, 0.021677624434232712, + 0.020694250240921974, 0.010267587378621101, 0.006435318849980831, -0.026840342208743095, + 0.021561933681368828, 0.04228510707616806, 0.04451216012239456, 0.03681870177388191, + 0.010874966159462929, 0.050817329436540604, 0.021851161494851112, -0.03129445016384125, + 0.0029826618265360594, 0.02264653891324997, -0.04075219854712486, 0.058076947927474976, + 0.008640681393444538, 0.021894546225667, 0.0052567156963050365, -0.004374570678919554, + 0.07126573473215103, 0.011670342646539211, -0.001473254174925387, -0.06860484182834625, + -0.013644322752952576, 0.056399423629045486, 0.00318150594830513, 0.02096901647746563, + -0.010303741320967674, 0.013926319777965546, -0.02056409791111946, -0.0144107760861516, + 0.03664516657590866, 0.04676814004778862, -0.04231403023004532, 0.01263202540576458, + 0.025668969377875328, -0.03496764227747917, -0.015603841282427311, 0.02452651970088482, + -0.01759951375424862, 0.02653665281832218, 0.0038503454998135567, -0.030918454751372337, + 0.03242243826389313, 0.07265403121709824, 0.039016831666231155, 0.055097900331020355, + 0.02824309654533863, 0.036008864641189575, 0.047433361411094666, -0.05316007509827614, + 0.01777304895222187, 0.03372396528720856, 0.018756425008177757, -0.010527892969548702, + -0.028286481276154518, -0.0073355408385396, 0.008568374440073967, 0.008900986053049564, + -0.02410713955760002, -0.019349342212080956, 0.016760751605033875, 0.012031877413392067, + -0.023976987227797508, -0.04419401288032532, 0.03785992041230202, -0.004150419030338526, + -0.035285793244838715, -0.0314679853618145, 0.021431781351566315, -0.018944421783089638, + -0.006572702433913946, 0.03204644098877907, -0.019595185294747353, 0.011359422467648983, + -0.020274870097637177, -0.050209950655698776, -0.04621860757470131, 0.036355938762426376, + -0.022371772676706314, -0.0013729282654821873, -0.06831561028957367, -0.014381853863596916, + -0.0254809707403183, -0.028763707727193832, 0.018235813826322556, 0.04989179968833923, + 0.049862876534461975, -0.0545772910118103, -0.010267587378621101, -0.008553912863135338, + 0.05414344742894173, 0.01495307870209217, 0.0012454873649403453, -0.057729873806238174, + -0.041619881987571716, -0.03343473747372627, -0.03467841446399689, -0.031091991811990738, + -0.033781807869672775, 0.009060061536729336, 0.020621944218873978, -0.0044541084207594395, + -0.0004519184585660696, -0.021619779989123344, -0.0460161454975605, 0.024627748876810074, + 0.012848946265876293, -0.05504005402326584, -0.003839499317109585, 0.04130173474550247, + 0.05281300097703934, 0.009378212504088879, -0.025394203141331673, -0.04361555725336075, + 0.0006109937676228583, 0.013658784329891205, -0.013767244294285774, -0.05281300097703934, + -0.025770198553800583, -0.030455689877271652, -0.03288520500063896, -0.006120783742517233, + 0.019595185294747353, -0.042718950659036636, 0.029645852744579315, 0.015256768092513084, + -0.016934288665652275, -0.001983018359169364, -0.04844566062092781, -0.03719469904899597, + -0.006532933562994003, -0.03028215281665325, 0.06756361573934555, 0.02098347805440426, + 0.012834484688937664, -0.010520662181079388, 0.017888741567730904, 0.053593914955854416, + -0.016052143648266792, 0.08023180067539215, 0.005075948312878609, -0.01814904622733593, + -0.004880719352513552, 0.03195967525243759, 0.02076655812561512, 0.029472315683960915, + -0.012689870782196522, -0.05781664326786995, 0.0005558597040362656, 0.006612471304833889, + 0.05501113086938858, -0.021590856835246086, 0.02280561439692974, 0.009255290031433105, + -0.05365176126360893, -0.011930647306144238, 0.061258453875780106, -0.07566200196743011, + 0.002494589891284704, -0.001463312073610723, -0.020318254828453064, 0.053217917680740356, + 0.031178759410977364, 0.015126614831387997, 0.007107773795723915, 0.05307330563664436, + -0.006467857398092747, -0.015415842644870281, -0.000620935985352844, 0.0171945933252573, + -0.039392828941345215, 0.016008760780096054, 0.025119436904788017, 0.04410724341869354, + -0.038640838116407394, -0.00664139399304986, -0.017454899847507477, -0.029645852744579315, + -0.014765080064535141, 0.01774412766098976, -0.00955897942185402, 0.0407232791185379, + -0.021388396620750427, -0.008734679780900478, 0.023167148232460022, -0.018091199919581413, + -0.03624024614691734, -0.006102707237005234, 0.009370981715619564, 0.01628352701663971, + 0.04832996800541878, -0.003969651646912098, 0.007386155426502228, 0.002449398161843419, + -0.0006751662003807724, 0.0018673271406441927, 0.05258161947131157, -0.053767453879117966, + -0.027968330308794975, -0.005741172470152378, -0.016196757555007935, 0.0005667057703249156, + 0.04373124614357948, -0.0059327855706214905, 0.003908190876245499, -0.027447720989584923, + -0.016326909884810448, 0.022689921781420708, 0.00954451784491539, -0.02433852106332779, + 0.0018781732069328427, -0.012660947628319263, 0.022892381995916367, 0.008177916519343853, + -0.037339311093091965, 0.013940781354904175, 0.02169208601117134, -0.016688445582985878, + -0.004725259728729725, -0.014757849276065826, -0.01188003271818161, -0.0183081217110157, + -0.0407232791185379, 0.0177875105291605, -0.02133055217564106, -0.00879975687712431, + 0.047057367861270905, -0.003595463465899229, -0.021417319774627686, -0.01814904622733593, + -0.01036881748586893, 0.016919827088713646, -0.07566200196743011, 0.037339311093091965, + -0.04870596528053284, -0.03143906593322754, 0.0516560897231102, 0.026637881994247437, + -0.043846938759088516, -0.04364447668194771, 0.019305957481265068, -0.021446242928504944, + -0.0006656759069301188, 0.022487463429570198, -0.02244407869875431, -0.04185126721858978, + 0.0250615905970335, 0.013644322752952576, 0.0016476947348564863, 0.027158493176102638, + -0.016341371461749077, -0.01814904622733593, 0.013716629706323147, -0.0011523921275511384, + -0.05851078778505325, -0.009009446948766708, -0.028864936903119087, -0.016052143648266792, + -0.03372396528720856, 0.0400291308760643, 0.01757059060037136, -0.010065128095448017, + -0.02117147669196129, 0.020433945581316948, -0.022675462067127228, 0.007924842648208141, + -0.01384678203612566, 0.03288520500063896, -0.03407103568315506, -0.0030947376508265734, + -0.02809848263859749, 0.023485299199819565, -0.0222416203469038, 0.008676834404468536, + 0.016804136335849762, -0.02115701511502266, 0.005636326968669891, 0.03349258005619049, + 0.010057897306978703, -0.01929149590432644, 0.03305874019861221, -0.012588640674948692, + -0.02490251511335373, -0.01346355490386486, -0.05631265789270401, -0.025741275399923325, + 0.009269751608371735, 0.032682742923498154, 0.001627810299396515, 0.014548159204423428, + 0.028879398480057716, -0.01477954164147377, 0.03213321045041084, -0.006453395821154118, + -0.020477330312132835, -0.026146195828914642, 0.05107763409614563, 0.026073887944221497, + 0.009074523113667965, 0.029125241562724113, 0.03739715740084648, -0.03291412442922592, + 0.00041124579729512334, -0.007209003437310457, 0.005629096645861864, 0.011988493613898754, + -0.06889406591653824, -0.003293581772595644, 0.02957354485988617, 0.03178613632917404, + 0.008626219816505909, -0.00018980575259774923, 0.025032667443156242, -0.011713726446032524, + 0.036355938762426376, 0.015835223719477654, -0.06415072828531265, 0.02733202837407589, + 0.022212697193026543, 0.01644260250031948, -0.014251700602471828, -0.0015835223020985723, + 0.01888657733798027, 0.025567740201950073, 0.025683430954813957, 0.0033640810288488865, + 0.012805561535060406, -0.017498282715678215, -0.03514118120074272, -0.038640838116407394, + 0.0043962630443274975, 0.004280571825802326, 0.016688445582985878, -0.008365915156900883, + -0.02264653891324997, 0.00021014208323322237, 0.0215474721044302, 0.014381853863596916, + -0.04234295338392258, 0.024280676618218422, 0.021229322999715805, -0.015256768092513084, + -0.031525831669569016, -0.010484508238732815, 0.0027567027136683464, 0.01869857870042324, + -0.029240932315587997, 0.018944421783089638, 0.03242243826389313, 0.007924842648208141, + -0.0005906574660912156, 0.022877920418977737, 0.01570507138967514, -0.017859818413853645, + -0.011916186660528183, 0.010180819779634476, 0.009313136339187622, -0.04804074019193649, + 0.02526405081152916, -0.007715152110904455, 0.012660947628319263, -0.02990615740418434, + -0.0426032580435276, 0.013535861857235432, 0.01684752106666565, 0.02955908328294754, + -0.026695728302001953, 0.016052143648266792, 0.027418797835707664, -0.02002902701497078, + 0.004135957919061184, -0.02561112307012081, 0.026912648230791092, 0.02653665281832218, + 0.02711510844528675, -0.007259618490934372, 0.034302420914173126, 0.011995724402368069, + -0.01929149590432644, -0.011265424080193043, 0.019190266728401184, 0.015126614831387997, + -0.011308807879686356, -0.010390509851276875, -0.014837387017905712, -0.051164403557777405, + -0.026883726939558983, 0.0075199236162006855, 0.02242961712181568, 0.03123660571873188, + 0.006417242344468832, 0.00599063141271472, 0.0051735625602304935, 0.03178613632917404, + -0.020159179344773293, -0.014063702896237373, 0.031901828944683075, 0.055676355957984924, + 0.02806955948472023, 0.05443267524242401, -0.009920514188706875, -0.01667398400604725, + -0.02546650916337967, -0.015126614831387997, 0.010723121464252472, -0.019031191244721413, + 0.014273392967879772, 0.0013901012716814876, -0.04167772829532623, -0.03389750048518181, + 0.008105609565973282, 0.020274870097637177, -0.017816433683037758, 0.021070247516036034, + 0.04419401288032532, 0.03719469904899597, 0.032104287296533585, -0.019320419058203697, + 0.051742859184741974, -0.027635717764496803, 0.03505441173911095, 0.04847458377480507, + 0.0189010389149189, -0.019985642284154892, -0.025104975327849388, -0.011959570460021496, + 0.003781653707846999, -0.0008143570739775896, -0.01590752974152565, 0.0031724676955491304, + -0.0051988703198730946, 0.0018266544211655855, 0.013810628093779087, 0.018481658771634102, + 0.019219188019633293, 0.026334192603826523, 0.0057050189934670925, 0.02018810249865055, + 0.03444703295826912, 0.02357206679880619, 0.013441863469779491, -0.03158367797732353, + 0.008445451967418194, -0.022950228303670883, -0.008387606590986252, -0.03612455353140831, + 0.044425394386053085, -0.006717316340655088, -0.0011677573202177882, 0.05093301832675934, + -0.013239403255283833, -0.0015437535475939512, -0.043875861912965775, -0.011207577772438526, + -0.03540148586034775, -0.009305905550718307, 0.022675462067127228, -0.034504879266023636, + -0.016138913109898567, -0.030455689877271652, -0.046131838113069534, 0.002201746916398406, + -0.0009689131984487176, 0.019493956118822098, -0.02524958923459053, 0.009313136339187622, + -0.008778064511716366, -0.004808412399142981, -0.013868474401533604, 0.0037780385464429855, + 0.017816433683037758, 0.04092573747038841, -0.004801182076334953, -0.009869899600744247, + -0.051366861909627914, 0.006475087720900774, 0.003085699398070574, 0.01574845425784588, + 0.014757849276065826, -0.02096901647746563, -0.005596558563411236, 0.023615451529622078, + 0.012111415155231953, 0.011930647306144238, 0.0055097900331020355, 0.02018810249865055, + 9.614565351512283e-5, 0.006026784889400005, 0.018279198557138443, -0.017266901209950447, + 0.02861909382045269, 0.007903150282800198, -0.02153301052749157, 0.006207552272826433, + 0.018105661496520042, 0.036992236971855164, -0.025365279987454414, 0.004844565875828266, + -0.005777325946837664, 0.01963857002556324, 0.0006281666574068367, 0.005357945337891579, + 0.02322499454021454, -0.04205372557044029, 0.009804823435842991, 0.018814269453287125, + -0.03343473747372627, 0.04381801560521126, 0.0023481682874262333, 0.02601604349911213, + -0.00971805490553379, 0.013825089670717716, 0.023152686655521393, -0.00523502379655838, + 0.028734784573316574, -0.006999313365668058, 0.01836596615612507, -0.023702220991253853, + 0.06970390677452087, 0.009161291643977165, 0.008365915156900883, 0.038264840841293335, + -0.009313136339187622, 0.015184461139142513, 0.011070194654166698, -0.006084630265831947, + 0.01644260250031948, 0.024598825722932816, -0.03803345933556557, 0.04882165789604187, + 0.010043435730040073, 0.014013088308274746, 0.04118604212999344, 0.023167148232460022, + -0.0036099248100072145, -0.006062938366085291, 0.00859729666262865, 0.030831685289740562, + 0.041648805141448975, -0.016211219131946564, 0.02581358328461647, -0.021937930956482887, + 0.009566210210323334, 0.02114255353808403, 0.021475166082382202, -0.03086060844361782, + -0.06137414276599884, 0.03609563410282135, -0.0006435319082811475, -0.0007971841841936111, + 0.017874279990792274, -0.04081004485487938, -0.01310925092548132, 0.003358658170327544, + -0.0009553556446917355, -0.003810576628893614, 0.03164152428507805, 0.02825755812227726, + -0.030744917690753937, 0.009248059242963791, 0.017932124435901642, 0.05625481158494949, + 0.012791100889444351, 0.027794793248176575, 0.017483821138739586, -0.002387937158346176, + 0.012747716158628464, 0.019927797839045525, 0.023138225078582764, 0.03352150321006775, + -0.008344222791492939, -0.00504341023042798, 0.023051457479596138, 0.016558293253183365, + -0.044454317539930344, -0.007386155426502228, 0.027968330308794975, 0.0030603918712586164, + 0.014620466157793999, -0.04095466062426567, -0.04419401288032532, 0.0006394646479748189, + -0.03942175209522247, -0.04656567797064781, -0.014822926372289658, -0.009920514188706875, + -0.04994964599609375, 0.00908175390213728, -0.0071294656954705715, 0.0009119714959524572, + 0.0027639332693070173, 0.018496118485927582, -0.0060159387066960335, 0.02809848263859749, + 0.028676938265562057, 0.006757085211575031, 0.01947949454188347, -0.0005418502259999514, + 0.004211880266666412, 0.012610333040356636, -0.007143927272409201, 0.0072704642079770565, + 0.019016729667782784, 0.01798997074365616, 0.022906843572854996, 0.014280623756349087, + 0.02153301052749157, -0.01188003271818161, 0.038409456610679626, 0.004219111055135727, + -0.009934975765645504, -0.05428806319832802, 0.02617511712014675, -0.01010128203779459, + 0.009963898919522762, -0.013203250244259834, -0.024598825722932816, 0.03991343826055527, + -0.003083891700953245, 0.00917575228959322, -0.004034728277474642, -0.03164152428507805, + 0.015054307878017426, -0.012603102251887321, 0.0189010389149189, -0.02938554622232914, + -0.03537256270647049, 0.012125876732170582, -0.0047903358936309814, -0.04352878779172897, + 0.0211280919611454, -0.020347177982330322, 0.041793420910835266, 0.03517010435461998, + 0.02041948400437832, 0.02355760708451271, 0.048734888434410095, -0.004783105105161667, + 0.02433852106332779, 0.0031164297834038734, -0.025365279987454414, -0.018582887947559357, + -0.05738279968500137, -0.010202511213719845, -0.0189010389149189, -0.021894546225667, + -0.03783100098371506, -0.018611811101436615, 0.05350714549422264, 0.017715204507112503, + 0.01346355490386486, 0.012538026086986065, -0.0106508145108819, 0.012856177054345608, + 0.0189010389149189, 0.01495307870209217, -0.026840342208743095, -0.046478912234306335, + 0.03311658650636673, -0.011417267844080925, -0.013637091964483261, 0.007169234566390514, + 0.005549558904021978, 0.001905288314446807, 0.038438376039266586, 0.03421565145254135, + -0.0032574282959103584, -0.0384962223470211, -0.021099168807268143, 0.025350818410515785, + -0.012538026086986065, -0.06796853989362717, -0.04020266607403755, -0.013456324115395546, + -0.02078101970255375, 0.006861930247396231, 0.02542312629520893, -0.0030766609124839306, + -0.022718844935297966, -0.05214777588844299, 0.008510529063642025, 0.009761438705027103, + 0.05093301832675934, 0.0030314691830426455, 0.001921557355672121, 0.05000749230384827, + 0.007838074117898941, -0.004276956431567669, 0.032653819769620895, -0.008582836017012596, + 0.009638517163693905, -0.0010141050443053246, 0.02770802564918995, 0.005929170176386833, + -0.03945067524909973, 0.035083334892988205, 0.0005129274795763195, 0.03476518392562866, + 0.024237291887402534, -0.02601604349911213, 0.022487463429570198, 0.0036731932777911425, + 0.014822926372289658, -0.01741151511669159, -0.015126614831387997, -0.032856281846761703, + 0.009689131751656532, 0.034302420914173126, -0.0012825445737689734, 0.008351453579962254, + -0.001025854959152639, -0.01945057138800621, 0.01570507138967514, 0.005715864710509777, + 0.005520636215806007, -0.0013702168362215161, 0.00439264765009284, -0.021836699917912483, + -0.015112154185771942, 0.04728874936699867, -0.034880876541137695, -0.025206204503774643, + -0.007230695337057114, 0.005383252631872892, 0.007866996340453625, 0.0014850040897727013, + 0.00532540725544095, 0.01911795884370804, -0.0008731064735911787, 0.012986329384148121, + 0.034909799695014954, 0.011438960209488869, 0.030397843569517136, 0.009855438023805618, + 0.005394098814576864, -0.05145363137125969, -0.04390478506684303, 0.05596558377146721, + -0.0040058051235973835, 0.022530848160386086, -0.031554754823446274, -0.00668839318677783, + 0.024222830310463905, 0.01281279232352972, 0.0016205796273425221, 0.02319607138633728, + 0.004269725643098354, -0.012494642287492752, -0.02770802564918995, 0.01302248239517212, + -0.008488836698234081, 0.026681266725063324, 0.027982791885733604, 0.0025831658858805895, + -0.030947377905249596, -0.0025361664593219757, 0.0010611045872792602, 0.015300151892006397, + 0.024251753464341164, -0.020665327087044716, 0.014526467770338058, -0.012682639993727207, + 0.03349258005619049, -0.02692710980772972, 0.0028922781348228455, -0.04135957732796669, + -0.022227158769965172, -0.024280676618218422, 0.011207577772438526, 0.033232275396585464, + 0.023441914469003677, 0.07496785372495651, -0.007744074799120426, 0.023456376045942307, + -0.0018637117464095354, 0.02658003754913807, 0.028127405792474747, 0.008727449923753738, + -0.0007113196770660579, 0.02318160980939865, 0.019493956118822098, -0.026710189878940582, + 0.02564004622399807, 0.04338417202234268, 0.04196695610880852, 0.01741151511669159, + -0.026796957477927208, 0.02039056085050106, 0.007274079602211714, -0.023716680705547333, + 0.027057262137532234, -0.03308766335248947, 0.043789092451334, -0.001374735962599516, + -0.018828731030225754, -0.01665952242910862, -0.012306643649935722, 0.03221997991204262, + 0.021012401208281517, 0.002337322337552905, -0.02117147669196129, 0.00034684743150137365, + -0.030831685289740562, 0.025018205866217613, -0.009797592647373676, 0.05327576398849487, + -0.02245854027569294, 0.002033633179962635, -0.01908903568983078, 0.020332716405391693, + 0.013384017162024975, 0.001044835546053946, -0.033752888441085815, -0.0171945933252573, + -0.009472210891544819, -0.011077425442636013, 0.021243782714009285, 0.010216972790658474, + -0.01741151511669159, -0.004793951287865639, -0.0111208101734519, 0.02169208601117134, + -0.03276951238512993, 0.044627852737903595, -0.012241567485034466, -0.013622630387544632, + 0.01664506085216999, 0.009573440998792648, -0.0056797112338244915, 0.012993560172617435, + -0.006637778598815203, -0.008517758920788765, -0.04054974019527435, 0.008300838060677052, + -0.04133065417408943, 0.03560394421219826, -0.021026862785220146, 0.0028398556169122458, + 0.00696677528321743, -0.02733202837407589, 0.004924103617668152, -0.0035810018889606, + 0.02900955080986023, 0.013340633362531662, -0.016572754830121994, 0.03149690851569176, + 0.012689870782196522, -0.031352296471595764, 0.03942175209522247, -0.008112840354442596, + 0.01758505217730999, 0.011489574797451496, -0.01402031909674406, 0.04627645015716553, + -0.0037744231522083282, -0.003270082175731659, -0.013087558560073376, -0.026811419054865837, + 0.004309494514018297, -0.010202511213719845, 0.03878545016050339, -0.04115711897611618, + -0.02824309654533863, 0.03820699453353882, -0.039971284568309784, 0.0012780254473909736, + 0.03759961575269699, 0.008720219135284424, 0.025943735614418983, -0.003271889640018344, + 0.011742649599909782, 0.006395550444722176, 0.019739799201488495, 0.005632712040096521, + -0.0021222091745585203, 0.006428088527172804, -0.0282286349684, -0.01907457411289215, + 0.009992821142077446, 0.03534363955259323, 0.011279884725809097, 0.014056472107768059, + 0.013781705871224403, 0.021749932318925858, 0.019320419058203697, -0.0010918349726125598, + 0.00859729666262865, 0.027765870094299316, -0.005350714549422264, 0.012046338990330696, + 0.0037888844963163137, 0.02770802564918995, -0.0035105026327073574, 0.009580671787261963, + -0.027028340846300125, 0.04827212542295456, -0.01495307870209217, 0.011344960890710354, + -0.03942175209522247, -0.01667398400604725, -0.034157805144786835, -0.03702116012573242, + 0.019884413108229637, 0.010925580747425556, -0.03615347668528557, 0.004135957919061184, + -0.030542457476258278, 0.01780197210609913, 0.025133898481726646, -0.008257454261183739, + 0.030918454751372337, -0.011590804904699326, -0.006084630265831947, -0.021836699917912483, + 0.02075209654867649, -0.02229946479201317, 0.015169999562203884, -0.006927006412297487, + -0.016399217769503593, 0.004092573653906584, -0.0007641941192559898, 0.017613975331187248, + 0.021648703143000603, -0.026666805148124695, -0.004530030768364668, 0.007917611859738827, + 0.01346355490386486, -0.0002883239940274507, 0.02023148536682129, 0.013731091283261776, + -0.023485299199819565, -0.010708659887313843, 0.00683662248775363, 0.021764393895864487, + 0.005748402792960405, -0.04769366979598999, 0.04211157187819481, -0.018293660134077072, + -0.020795481279492378, -0.003058584174141288, -0.0113305002450943, -0.016731830313801765, + -0.008517758920788765, -0.022039160132408142, 0.005676095839589834, 0.024193907156586647, + -0.012697101570665836, 0.013543092645704746, 0.013167096301913261, 0.007266848813742399, + -0.008185147307813168, -0.0012744100531563163, -0.010310972109436989, 0.02487359195947647, + -0.022212697193026543, -0.03366611897945404, -0.013615399599075317, 0.010766505263745785, + 0.007219849620014429, -0.005661634728312492, -0.004812027793377638, 0.05145363137125969, + -0.043673399835824966, 0.005021717865020037, 0.02020256407558918, -0.016775213181972504, + -0.04092573747038841, 0.01610998995602131, 0.0010276626562699676, 0.02057855948805809, + 0.004443262238055468, 0.029877234250307083, -0.008076687343418598, -0.0434420183300972, + -0.024410828948020935, 0.04176449775695801, -0.0003461695450823754, -0.0012780254473909736, + 0.028315404430031776, 0.0034924258943647146, 0.010390509851276875, -0.007780228275805712, + 0.01927703432738781, 0.02658003754913807, -0.0038864989764988422, 0.024078216403722763, + 0.010455586016178131, 0.012118645943701267, -0.019204728305339813, 0.0282286349684, + 0.01610998995602131, -0.006149706430733204, -0.02825755812227726, 0.010151896625757217, + 0.01644260250031948, -0.008365915156900883, -0.007939303293824196, 0.03010861575603485, + -0.0220680832862854, 0.006026784889400005, 0.008821448311209679, 0.036008864641189575, + -0.0045083388686180115, 0.0008645200286991894, 0.0008102898136712611, -0.036037787795066833, + 0.013904627412557602, -0.019595185294747353, 0.013326171785593033, -0.007910381071269512, + 0.0009372789063490927, -0.008546682074666023, -0.002302976557984948, -0.030831685289740562, + -0.013666014187037945, 0.0025759353302419186, 0.014837387017905712, 0.014446930028498173, + 0.041070349514484406, -0.030397843569517136, 0.01699213497340679, -0.012219875119626522, + -0.0076066916808485985, 0.017107825726270676, -0.01702105812728405, -0.0012536218855530024, + 0.009898821823298931, -0.01686198264360428, -0.009667440317571163, -0.03193075209856033, + 0.011619728058576584, -0.0017010211013257504, 0.0016296179965138435, 0.01189449429512024, + -0.026912648230791092, 0.023976987227797508, -0.03392642363905907, 0.04026051238179207, + 0.0046493373811244965, 0.03462057188153267, -0.04323955997824669, -0.02695603296160698, + 0.024251753464341164, 0.011431729421019554, -0.04491708055138588, -0.013311710208654404, + 0.008011610247194767, -0.0033243123907595873, -0.008705757558345795, 0.013600938022136688, + 0.027765870094299316, 0.020318254828453064, -0.006739008240401745, -0.02020256407558918, + -0.04081004485487938, 0.023427452892065048, -0.002415052382275462, -0.00017726501391734928, + 0.04054974019527435, -0.021099168807268143, -0.004750567022711039, 0.005672480445355177, + -0.002489167032763362, 0.022342849522829056, -0.029790466651320457, -0.007230695337057114, + 0.0028398556169122458, 0.03447595611214638, -0.004363724961876869, 0.009204675443470478, + -0.00815622415393591, -0.008792526088654995, -0.014034779742360115, 0.005177177954465151, + 0.013897396624088287, -0.007035466842353344, -0.01610998995602131, -0.01451200619339943, + -0.024439750239253044, -0.0299350805580616, -0.0509619414806366, 0.02148962765932083, + 0.0006073784315958619, -0.0020715943537652493, -0.004721644334495068, -0.014468621462583542, + -0.020520713180303574, -0.010419432073831558, 0.003080276306718588, 0.024960361421108246, + 0.016413679346442223, -0.005195254925638437, -0.007118619978427887, -0.033810731023550034, + 0.05897355452179909, -0.021619779989123344, 0.023282838985323906, 0.021359475329518318, + 0.01816350780427456, -0.008445451967418194, -0.04697059839963913, 0.029313240200281143, + -0.017845356836915016, -0.02036163955926895, -0.05125116929411888, 0.007339156232774258, + 0.0052024852484464645, -0.0006656759069301188, 0.0006516664288938046, -0.02491697669029236, + 0.0053687915205955505, -0.018582887947559357, -0.031525831669569016, 0.013600938022136688, + 0.026073887944221497, 0.0381491482257843, -0.02021702565252781, -0.023094842210412025, + -0.007975457236170769, -0.010759275406599045, -0.005578481592237949, -0.030571380630135536, + 0.04861919581890106, -0.0038503454998135567, -0.0037888844963163137, 0.019016729667782784, + -0.020057950168848038, -0.011200346983969212, 0.02153301052749157, -0.04676814004778862, + -0.005423021502792835, -0.009638517163693905, -0.002984469523653388, -0.04153311625123024, + -0.0029880849178880453, -0.04095466062426567, 0.018799807876348495, -0.005809864029288292, + 0.0022234388161450624, 0.044280778616666794, -0.00014145048044156283, -0.004573415033519268, + 0.014822926372289658, 0.007664537522941828, 0.012002954259514809, -0.030600303784012794, + 0.015039847232401371, 0.015473688952624798, 0.002977238968014717, -0.01644260250031948, + 0.015300151892006397, 0.005632712040096521, 0.007389770820736885, 0.019146881997585297, + -0.007151158060878515, 0.01029651053249836, 0.026464344933629036, 0.00402388209477067, + 0.01780197210609913, -0.0016531178262084723, 0.010918349958956242, -0.0023734758142381907, + -0.0001516186457592994, 0.01289956085383892, -0.00824299268424511, 0.008445451967418194, + 0.01739705353975296, 0.011207577772438526, 0.05498220771551132, 0.0026446268893778324, + 0.0062979357317090034, 0.0056507885456085205, 0.04549553617835045, 0.019392725080251694, + -0.010260356590151787, -0.0027621258050203323, 0.0299350805580616, 0.012856177054345608, + 0.0403762049973011, -0.027809254825115204, -0.002415052382275462, -0.006467857398092747, + 0.03389750048518181, -0.009284213185310364, 0.005929170176386833, 0.020824402570724487, + 0.024063754826784134, -0.001542849699035287, 0.03297197073698044, 0.07282756268978119, + 0.011077425442636013, -0.023817911744117737, -0.004052804782986641, 0.05101978778839111, + -0.025379741564393044, 0.010267587378621101, 0.00871298834681511, -0.009689131751656532, + 0.023340685293078423, -0.02302253432571888, 0.0016314256936311722, 0.0007565115229226649, + 0.00692339101806283, -0.05521359294652939, 0.015647225081920624, -0.03817807137966156, + 0.006088245660066605, -0.0014904271811246872, -0.010535123758018017, 0.010867735370993614, + 0.03817807137966156, 0.0039190370589494705, -0.03644270449876785, 0.013615399599075317, + 0.0077729979529976845, 0.03294304758310318, -0.012046338990330696, -0.02036163955926895, + -0.005090409889817238, 0.006048476789146662, 0.002331899246200919, 0.012292182072997093, + -0.00787422712892294, 0.004801182076334953, 0.003973267041146755, -0.005444713868200779, + -0.02092563360929489, 0.023817911744117737, -0.005086794495582581, 0.005618250463157892, + -0.04402047395706177, -0.016919827088713646, -0.008886524476110935, 0.006319628097116947, + -0.03178613632917404, 0.028026176616549492, -0.007371694315224886, -0.022979149594902992, + -0.030397843569517136, -0.00229213060811162, 0.01924811117351055, 0.022371772676706314, + -0.01812012307345867, -0.014150471426546574, -0.016240142285823822, -0.026146195828914642, + -0.0009083561017177999, 0.027245260775089264, -0.025871429592370987, -0.04925549775362015, + -0.0509619414806366, 0.0025668968446552753, -0.010838812217116356, 0.002584973582997918, + 0.0018402120331302285, -0.02338407002389431, -0.013384017162024975, -0.01486631017178297, + -0.010896658524870872, 0.020867787301540375, 0.027245260775089264, 0.030397843569517136, + -0.02491697669029236, 0.018018893897533417, -0.0005847825086675584, 0.023311762139201164, + 0.007968226447701454, 0.0018456350080668926, 0.005853248294442892, 0.021778855472803116, + 0.029616929590702057, 0.0060990918427705765, -0.02190900780260563, -0.01887211576104164, + 0.02448313497006893, 0.03221997991204262, -0.038091305643320084, 0.012892330065369606, + 0.013138174079358578, -0.0009463172755204141, -0.01981210522353649, 0.009501134045422077, + 0.025582201778888702, 0.03028215281665325, -0.0028814321849495173, -0.009956668131053448, + 0.028156328946352005, 0.011525728739798069, 0.028141867369413376, -0.006616086233407259, + 0.01177157275378704, 0.017686281353235245, -0.012935714796185493, 0.005047025624662638, + 0.012169260531663895, 0.0027223569341003895, 0.024063754826784134, 0.050788406282663345, + -0.0005454656202346087, 0.0020426714327186346, -0.005357945337891579, -0.030368922278285027, + -0.02376006543636322, 0.009566210210323334, 0.0046493373811244965, -0.02733202837407589, + -0.015126614831387997, -0.022313926368951797, -0.04228510707616806, 0.013976934365928173, + -0.001876365509815514, 0.016746290028095245, 0.0013241211418062449, -0.03890114277601242, + 0.02919754944741726, -0.030166462063789368, 0.002651857677847147, 0.011974032036960125, + -0.013600938022136688, 0.027722487226128578, -0.006525702774524689, 0.030021848157048225, + -0.034736260771751404, -0.024454211816191673, -0.007830843329429626, 0.0006019553984515369, + -0.0019089035922661424, 0.015010924078524113, -0.012010185047984123, -0.020838864147663116, + 0.0021294397301971912, 0.011626958847045898, -0.007400617003440857, 0.008763602934777737, + ], + index: 68, + }, + { + title: "Les Insomniaques s'amusent", + text: "Les Insomniaques s'amusent is the first album by Qu\u00e9b\u00e9cois singer and musician Daniel B\u00e9langer.", + vector: [ + 0.008316775783896446, -0.019163016229867935, -0.015719765797257423, -0.037081167101860046, + -0.011726918630301952, -0.02495032735168934, -0.03212818130850792, -0.00637663621455431, + 0.02661897987127304, 0.02170572616159916, -0.013574355281889439, -0.013786247931420803, + -0.036710355430841446, 0.030989259481430054, -0.003886900842189789, 0.013408814556896687, + 0.035041701048612595, -0.011270025745034218, -0.02691033110022545, -0.018235987052321434, + 0.009773535653948784, 0.004582172725349665, -0.022341402247548103, 0.018262473866343498, + 0.025771411135792732, -0.008872993290424347, 0.009462319314479828, 0.04979470744729042, + 0.003285987302660942, -0.0022116266191005707, 0.0032677778508514166, -0.053635258227586746, + -0.014170303009450436, 0.000426681712269783, -0.00035260216100141406, -0.03959738835692406, + -0.00029900827212259173, 0.03501521423459053, -0.022367889061570168, -0.05572769418358803, + -0.029029255732893944, 0.00367169757373631, -0.020593291148543358, 0.0076347473077476025, + -0.027122223749756813, 0.030803853645920753, -0.06976556777954102, 0.003135344944894314, + -0.000633193994872272, 0.015746252611279488, 0.03978279232978821, 0.01630247011780739, + -0.007184476125985384, -0.00806515384465456, 0.02476492151618004, 0.014448411762714386, + 0.036577921360731125, -0.011554756201803684, 0.040021173655986786, -0.023745190352201462, + -0.013289624825119972, -0.002188450889661908, -0.013733274303376675, -0.0019864910282194614, + 0.004585483577102423, 0.02655276283621788, 0.018050581216812134, 0.012402325868606567, + 0.034432511776685715, 0.058482296764850616, -0.016514362767338753, 0.0338498055934906, + -0.04137198626995087, 0.01938815228641033, -0.008137991651892662, -0.02961196005344391, + 0.014302735216915607, -0.011567999608814716, -0.028128713369369507, -0.04269631579518318, + -0.0233081616461277, -0.048046596348285675, -0.0067640021443367004, 0.021361399441957474, + 0.007932720705866814, 0.011793134734034538, 0.013958410359919071, -0.04812605679035187, + -0.020950859412550926, 0.03440602496266365, 0.030062230303883553, -0.011183944530785084, + 0.010309888049960136, 0.014090843498706818, 0.05763472616672516, -0.028976282104849815, + 0.0159978736191988, -0.01668652519583702, -0.04738443344831467, -0.03501521423459053, + -0.006432920228689909, -0.05461525917053223, -0.0022910863626748323, -0.06833529472351074, + 0.015865441411733627, 0.034670889377593994, 0.05334390699863434, -0.0015908482018858194, + -0.01918950304389, -0.010687321424484253, -0.04582172632217407, -0.006310419645160437, + -0.007078529801219702, -0.019414639100432396, 0.08126072585582733, 0.021043561398983, + -0.03337305039167404, -0.050854168832302094, 0.011660702526569366, 0.01846112310886383, + 0.0003250809677410871, -0.027148710563778877, -0.031916290521621704, 0.06891799718141556, + -0.0021752077154815197, 0.0016612031031399965, 0.04600713402032852, -0.03631305694580078, + -0.0578995905816555, 0.039888739585876465, -0.02244734950363636, 0.0008666067151352763, + 0.0012109318049624562, -0.0068136644549667835, 0.007886369712650776, -0.0458746999502182, + -0.026102492585778236, -0.040074147284030914, 0.009740428067743778, -0.0019186192657798529, + -0.021798428148031235, 0.0009833130752667785, 0.033876292407512665, 0.015931658446788788, + -0.039703335613012314, -0.01888490840792656, -0.039464954286813736, 0.0017249364173039794, + -0.03864387050271034, -0.03702819347381592, 0.029691418632864952, 0.01679247058928013, + -0.018222743645310402, -0.011356106959283352, 0.0013458476169034839, 0.041186582297086716, + -0.02300356701016426, -0.03795522078871727, -0.002582438290119171, -0.007502314634621143, + -0.027307629585266113, 0.055409856140613556, 0.014858952723443508, -0.025943573564291, + -0.007826774381101131, -0.0117467837408185, -0.01594490185379982, -0.009852995164692402, + 0.06038932874798775, 0.011799756437540054, 0.013097597286105156, -0.013667058199644089, + -0.01667328178882599, -0.004820551723241806, 0.019295450299978256, -0.03538602590560913, + 0.0060621085576713085, -0.021785184741020203, 0.01589192822575569, 0.03141304478049278, + 0.011567999608814716, 0.03996820002794266, 0.027916820719838142, -0.02055356092751026, + 0.0529995821416378, -0.04274928569793701, 0.016938146203756332, -0.029479527845978737, + -0.02212950959801674, -0.04224604368209839, -0.02839357778429985, -0.03448548540472984, + 0.006277311593294144, -0.023904109373688698, -0.006793799344450235, 0.05482715368270874, + -0.02894979529082775, 0.008654478937387466, 0.03096277266740799, -0.05360877141356468, + -0.0008624682086519897, 0.0077936663292348385, -0.006413055118173361, -0.029161687940359116, + 0.017097067087888718, 0.01889815181493759, -0.01097205188125372, 0.06536880135536194, + -0.02177194133400917, -0.007098394446074963, 0.02502978779375553, 0.015441657043993473, + -0.04317307099699974, 0.0391206294298172, -0.007290421985089779, -0.019242476671934128, + -0.027148710563778877, 0.005529066547751427, 0.05199309065937996, -0.015838954597711563, + 0.02655276283621788, 0.019957613199949265, 0.010097996331751347, -0.031624935567379, + 0.02722817100584507, 0.02152032032608986, -0.015534359961748123, 0.046271998435258865, + -0.020262207835912704, -0.02310951240360737, 0.013653814792633057, 0.0839623510837555, + 0.002698316937312484, 0.059012025594711304, 0.005886635277420282, 0.008243937976658344, + -0.010899214074015617, 0.008111504837870598, 0.037557922303676605, -0.011978540569543839, + -0.006624947767704725, 0.045159563422203064, -0.012495028786361217, 0.020924372598528862, + 0.014342465437948704, -0.0005297309253364801, 0.0006224338430911303, 0.043755777180194855, + -0.016461389139294624, 9.849685011431575e-5, 0.026460060849785805, -0.016818957403302193, + 0.00318004097789526, -0.0013549524592235684, 0.0007569358567707241, 0.03967684879899025, + -0.006648123264312744, 0.029241148382425308, 0.024685461074113846, -0.04518605023622513, + -0.04121306911110878, -0.003966360352933407, -0.012289757840335369, 0.017136795446276665, + -0.0391206294298172, 0.006588528398424387, 0.01238246075809002, -0.052152011543512344, + -0.05236390233039856, -0.01569327898323536, 0.0030525745823979378, 0.023824648931622505, + 0.017030850052833557, -0.013600842095911503, -0.038299545645713806, 0.02759898267686367, + -0.004449740052223206, 0.0115613779053092, 0.047914162278175354, -0.05758175253868103, + 0.015772739425301552, -0.0037941979244351387, -0.021546805277466774, -0.041054148226976395, + -0.015521116554737091, 0.023387620225548744, 0.030274122953414917, -0.010389348492026329, + 0.005029133055359125, -0.01487219613045454, -0.022487077862024307, -0.02551978826522827, + -0.01413057278841734, 0.032234128564596176, 0.018845178186893463, 0.01736193150281906, + 0.04658983647823334, -0.044735778123140335, 0.0045987265184521675, 0.004787443205714226, + 0.018474366515874863, 0.059276893734931946, -0.009031912311911583, -0.020407885313034058, + -0.018130041658878326, 0.03782279044389725, -0.025480058044195175, 0.015918415039777756, + -0.03411467373371124, 0.015017872676253319, -0.05035092681646347, 0.007780423387885094, + -0.024301407858729362, -0.002065950771793723, -0.026049518957734108, -0.024870866909623146, + 0.050244979560375214, -0.028049252927303314, 0.012653947807848454, 0.017679769545793533, + 0.051860660314559937, -0.039517927914857864, 0.013998140580952168, -0.009614616632461548, + 0.055833641439676285, 0.013878950849175453, 0.04341145232319832, 0.013693545013666153, + 0.05321147292852402, -0.03292277827858925, -0.036524947732686996, 0.022301672026515007, + -0.02047410048544407, 0.027519522234797478, -0.012965165078639984, 0.012673812918365002, + -0.004578861873596907, -0.01180637814104557, -0.0026784520596265793, 0.02570519410073757, + 0.006462717428803444, 0.014633817598223686, 0.01852734014391899, 0.008475694805383682, + 0.045768752694129944, 0.04820551723241806, 0.025347625836730003, -0.02060653455555439, + -0.028605470433831215, -0.01864652894437313, 0.00043330335756763816, 0.010203942656517029, + 0.0060587977059185505, -0.030009258538484573, 0.00431068567559123, -0.013256517238914967, + 0.0027148709632456303, -0.03451197221875191, 0.027916820719838142, 0.03594224527478218, + -0.02183815836906433, -0.028658444061875343, 0.04462983086705208, 0.03281683102250099, + 0.04831146076321602, -0.017812203615903854, 0.016660038381814957, -0.034856297075748444, + 0.04889416694641113, -0.0051516336388885975, 0.013733274303376675, 0.03898819908499718, + -0.08835911750793457, -0.021983833983540535, 0.01247516367584467, 0.010548267513513565, + 0.041477933526039124, 0.026155464351177216, 0.0044464292004704475, -0.0011877560755237937, + -0.03506818786263466, -0.020341668277978897, -0.028790876269340515, 0.026539519429206848, + -0.0023424040991812944, -0.0005524927983060479, 0.017706256359815598, -0.0045623076148331165, + 0.016103820875287056, -0.008992183022201061, 0.06616339832544327, -0.05064227804541588, + -0.03128061071038246, -0.04028603807091713, -0.028711417689919472, 0.018937882035970688, + -0.020315181463956833, 0.01797112263739109, 0.008475694805383682, -0.023996811360120773, + 0.0036915624514222145, -0.01582571119070053, -0.05043038725852966, -0.041848745197057724, + -0.007091773208230734, -0.010309888049960136, 0.04298766702413559, 0.021189237013459206, + 0.016355443745851517, -0.000538421852979809, 0.02778438851237297, -0.004025955218821764, + -0.04004766047000885, 0.0360746756196022, 0.014951655641198158, 0.02341410703957081, + 0.016765983775258064, 0.0261289793998003, -0.0029880136717110872, 0.03202223405241966, + 0.01685868762433529, 0.0051450119353830814, 0.009694076143205166, -0.002794330706819892, + -0.015348954126238823, 0.014739763922989368, 0.019335178658366203, -0.04505361616611481, + 0.07924775034189224, -0.037981707602739334, 0.06060121953487396, 0.027307629585266113, + -0.03660440817475319, 0.00403257692232728, 0.011660702526569366, -0.014196788892149925, + 0.006264068186283112, 0.04606010392308235, -0.03361142799258232, 0.028287632390856743, + 0.0639914944767952, -0.008323397487401962, -0.0229373499751091, -0.03255196660757065, + 0.02269897051155567, -0.02097734622657299, 0.000684925529640168, 0.04121306911110878, + 0.0023341269697993994, -0.016090577468276024, -0.0257581677287817, -0.09815914183855057, + -0.03286980465054512, 0.010640970431268215, -0.004754335153847933, 0.046987134963274, + 0.005545620806515217, -0.0006067074718885124, -0.030062230303883553, 0.03276385739445686, + -0.025003300979733467, 0.025466814637184143, -0.015229764394462109, -0.005790621507912874, + 0.01699111983180046, 0.02379816211760044, 0.0044795372523367405, -0.009124615229666233, + -0.013190300203859806, -0.023639243096113205, -0.03432656452059746, 0.03475034981966019, + -0.013051246292889118, -0.018474366515874863, -0.000686580955516547, -0.06822934746742249, + -0.055092018097639084, 0.005449607037007809, 0.0035988595336675644, -0.014382194727659225, + 0.020937616005539894, -0.044232532382011414, 0.004022644367069006, -0.030750881880521774, + 0.007177854422479868, 0.012561244890093803, 0.04420604556798935, -0.03602170571684837, + 0.00868096575140953, 0.0030889934860169888, 0.014753006398677826, -0.024804651737213135, + -0.005380080081522465, 0.027493035420775414, -0.019467612728476524, -0.04794064909219742, + 0.014991385862231255, 0.013455165550112724, -0.044974155724048615, 0.01699111983180046, + 0.03837900608778, 0.023692216724157333, 0.039147116243839264, 0.05609850585460663, + 0.010707186535000801, -0.005813797004520893, -0.0178519319742918, -0.014474897645413876, + 0.03030060976743698, 0.008296910673379898, -0.01143556647002697, 0.010991916991770267, + 0.02023572288453579, 0.003456494305282831, -0.0023705458734184504, 0.03072439506649971, + -0.01336908433586359, -0.048470381647348404, -0.016328956931829453, 0.024076271802186966, + 0.049450382590293884, 0.0011554756201803684, 0.007191097363829613, 0.0391206294298172, + -0.023467080667614937, 0.011971918866038322, 0.043941181153059006, 0.02109653502702713, + 0.07485098391771317, -0.00548602594062686, 0.05260228365659714, -0.020897885784506798, + -0.02570519410073757, 0.01183948665857315, -0.028896823525428772, 0.05768769979476929, + -0.004204739350825548, 0.020129775628447533, -0.0184478797018528, 0.0440206415951252, + 0.01009137462824583, -0.009475561790168285, -0.049450382590293884, 0.0015958144795149565, + -0.0009435832616873085, -0.043808747082948685, 0.036577921360731125, 0.00901866890490055, + 0.014925169758498669, 0.00022534257732331753, 0.014713277108967304, 0.008098261430859566, + -0.023281674832105637, -0.004651699680835009, -0.048602815717458725, -0.04351739585399628, + -0.03218115493655205, -0.03390277922153473, 0.007588395848870277, 0.013488274067640305, + -0.029161687940359116, -0.017626797780394554, 0.01515030488371849, -0.015004629269242287, + 0.052761200815439224, -0.039756305515766144, 0.01643490232527256, 0.00446298299357295, + 0.009607994928956032, 0.0005061413394287229, 0.037743330001831055, 0.018540583550930023, + 0.00029962905682623386, -0.044311992824077606, 0.013786247931420803, 0.016726255416870117, + -0.017308957874774933, -0.008661100640892982, 0.05911797285079956, -0.0398622527718544, + -0.004691429436206818, -0.028711417689919472, 0.028420064598321915, 0.01704409345984459, + 0.004688119050115347, 0.025043031200766563, -0.039279550313949585, -0.012965165078639984, + -0.003684940980747342, 0.021268697455525398, 0.00029900827212259173, -0.029691418632864952, + 0.032843317836523056, -0.02894979529082775, -0.008793533779680729, -0.021387886255979538, + 0.05231092870235443, 0.03297575190663338, 0.006187919527292252, 0.00990596879273653, + -0.005055619869381189, 0.03294926509261131, -0.010501915588974953, 0.020315181463956833, + 0.0025294653605669737, 0.04386172071099281, -0.0002406551066087559, 0.006353460717946291, + 0.0022877755109220743, -0.0250165443867445, -0.04918551817536354, 0.003625346114858985, + 0.04055090248584747, -0.006608393508940935, 0.018010852858424187, -0.01232286635786295, + 0.0022546672262251377, -0.001963315298780799, 0.036154136061668396, 0.029214661568403244, + 0.008224072866141796, 0.009144480340182781, 0.04280225932598114, -0.029506012797355652, + -0.00199973420239985, 0.02709573693573475, -0.040921714156866074, -0.007687720470130444, + -0.006651434116065502, -0.00044323582551442087, 0.0034366294275969267, -0.006979205179959536, + 0.010594618506729603, 0.013150570914149284, 0.053555797785520554, 0.04563632234930992, + 0.00762150390073657, -0.010601240210235119, 0.03535953909158707, -0.013640571385622025, + -0.06197851896286011, 0.009859616868197918, 0.033478993922472, 0.02900276891887188, + -0.03016817755997181, -0.020738966763019562, 0.03392926603555679, -0.021056804805994034, + -0.016170037910342216, 0.036948733031749725, 0.038352519273757935, 0.03647197410464287, + 0.029717905446887016, 0.03724008426070213, -0.016845444217324257, 0.006260757800191641, + 0.04020657762885094, -0.018739232793450356, -0.00797245092689991, 0.01846112310886383, + 0.021387886255979538, -0.02648654766380787, -0.015454900451004505, -0.045477401465177536, + 0.006121703423559666, 0.030830340459942818, 0.037743330001831055, 0.013415436260402203, + -0.012289757840335369, -0.022553294897079468, -0.031042233109474182, -0.0238643791526556, + -0.0004072306619491428, -0.02992979809641838, 0.03967684879899025, -0.004284198861569166, + -0.02447357028722763, -0.020275451242923737, -0.032843317836523056, -2.1649648260790855e-5, + -0.015600576065480709, -0.0010155935306102037, 0.0013458476169034839, 0.04802010953426361, + 0.04285523295402527, 0.005684675183147192, 0.0052675120532512665, -0.015772739425301552, + -0.02373194694519043, 0.004350415430963039, -0.015070845372974873, 0.029532499611377716, + -0.009303399361670017, 0.0564163438975811, 0.017825447022914886, -0.011336241848766804, + -0.006899745669215918, 0.02746654860675335, -0.02476492151618004, 0.02582438290119171, + 0.017772473394870758, -0.017216255888342857, 0.023096268996596336, -0.00038343414780683815, + 0.027810875326395035, -0.0030476083047688007, -0.002009666757658124, -0.004340482875704765, + -0.010064887814223766, -0.02942655421793461, 0.010766780935227871, 0.030035745352506638, + -0.008071775548160076, 0.016765983775258064, 0.000638160272501409, 0.027731414884328842, + 0.015666792169213295, -0.013786247931420803, 0.00507548451423645, -0.0013210165780037642, + 0.04494766891002655, 0.05615147948265076, -0.00962786003947258, -0.01962653174996376, + 0.06822934746742249, 0.01115745771676302, -0.04256388172507286, -0.004251090809702873, + 0.013667058199644089, -0.0051450119353830814, -0.0861872211098671, 0.004499402362853289, + 0.0025112556759268045, 0.017322201281785965, 0.01741490513086319, -0.029161687940359116, + -0.0059826490469276905, 0.034432511776685715, 0.006317041348665953, 0.005591972265392542, + -0.004744402598589659, 0.013799491338431835, -0.02175869792699814, 0.03239304572343826, + 0.003333994187414646, 0.009800022467970848, -0.003724670736119151, 0.02116275206208229, + -0.029876824468374252, -0.01802409440279007, -0.0197457205504179, 0.017931392416357994, + 0.0005015889764763415, 0.005913121625781059, -0.014951655641198158, 0.04312009736895561, + 0.055462829768657684, -0.02709573693573475, -0.018977610394358635, -0.043384965509176254, + 0.009886103682219982, -0.06229635700583458, 0.052761200815439224, -0.008581641130149364, + -0.021374642848968506, -0.047251999378204346, -0.03234007582068443, -0.016156794503331184, + -0.06965962052345276, -0.003979603759944439, 0.022301672026515007, -0.024076271802186966, + -0.030274122953414917, -0.04163685068488121, 0.007787044625729322, 0.0019335179822519422, + 0.025903843343257904, 0.005207917187362909, 0.018977610394358635, 0.0003991605481132865, + -0.001792808179743588, 0.03022114932537079, 0.024566272273659706, 0.035783324390649796, + 0.041610363870859146, 0.03249899297952652, 0.007780423387885094, -0.029506012797355652, + 0.019242476671934128, -0.013263138011097908, -0.005204606335610151, 0.042219556868076324, + 0.002847303869202733, -0.0008955763769336045, -0.040259551256895065, 0.003281021025031805, + 0.0436498299241066, 0.0376373827457428, -0.059329867362976074, 0.0022364577744156122, + 0.0045623076148331165, -8.090812480077147e-5, 0.01515030488371849, 0.0089259659871459, + 0.0372665710747242, 0.01575949601829052, -0.024367623031139374, -0.021877888590097427, + -0.008839884772896767, -0.007767179980874062, 0.011402458883821964, 0.020129775628447533, + -0.010376105085015297, -0.021560048684477806, -0.025917086750268936, -0.012852597050368786, + -0.04388820752501488, 0.025678707286715508, -0.002357302699238062, -0.013825977221131325, + -0.013574355281889439, -0.007257313933223486, 0.017918149009346962, -0.030274122953414917, + 0.03631305694580078, 0.0034796700347214937, 0.03435305133461952, 0.013196921907365322, + 0.01717652566730976, 0.021175993606448174, -0.015799226239323616, -0.01018407754600048, + 0.03379683569073677, -0.003060851711779833, 0.011832864955067635, -0.007290421985089779, + 0.021308427676558495, 0.025307895615696907, 0.04452388733625412, 0.011336241848766804, + 0.025599248707294464, -0.012985029257833958, -0.03361142799258232, -0.0331081822514534, + -0.011985162273049355, 0.04889416694641113, -0.015733009204268456, 0.037504952400922775, + 0.02844655141234398, 0.002880411921069026, -0.027056008577346802, -0.00715798931196332, + 0.021930860355496407, -0.021308427676558495, 0.005863459315150976, -0.00021013349760323763, + -0.05615147948265076, -0.017388418316841125, 0.010733673349022865, 0.001575949601829052, + 0.07882396131753922, -0.013547868467867374, 0.0163686852902174, -0.037504952400922775, + 0.026208437979221344, -0.0233081616461277, 0.019586801528930664, -0.0030277434270828962, + 0.011793134734034538, -0.038167115300893784, -0.04523902386426926, 0.01422327570617199, + 0.02545357123017311, 0.010415834374725819, 0.0038571034092456102, 0.01864652894437313, + 0.04033901169896126, -0.020871398970484734, -0.040259551256895065, -0.020500587299466133, + -0.03390277922153473, -0.022050051018595695, 0.008330019190907478, 0.008204207755625248, + -0.008283667266368866, 0.037743330001831055, -0.01834193430840969, 0.027254657819867134, + -0.018249230459332466, 0.02263275533914566, 0.02410275861620903, -0.023043295368552208, + -0.04711956903338432, 0.0024284853134304285, 0.015190035104751587, -0.011905702762305737, + 0.036207109689712524, 0.01368030160665512, -0.02146734669804573, -0.022791674360632896, + -0.008018801920115948, -0.011574621312320232, 0.05880013480782509, 0.027916820719838142, + -0.036392517387866974, 0.0012399015249684453, 0.015282738022506237, 0.0076744770631194115, + 0.015097332186996937, -0.022778430953621864, -0.027493035420775414, 0.020010586827993393, + 0.03864387050271034, -0.010693943127989769, 0.0008583296439610422, -0.025241678580641747, + 0.006939475424587727, 0.022765187546610832, -0.005919743329286575, 0.03538602590560913, + 0.005462850444018841, 0.00024934601970016956, 0.0268706027418375, 0.023096268996596336, + -0.011389215476810932, -0.026566006243228912, 0.02428816445171833, -0.006787177640944719, + 0.036339543759822845, 0.0036419001407921314, 0.0220103207975626, 0.003492913441732526, + 0.014951655641198158, 0.023771675303578377, 0.02214275300502777, 0.010594618506729603, + -0.020381398499011993, -0.030936287716031075, -0.014938412234187126, 0.014421924948692322, + -0.0069725834764540195, 0.027201684191823006, 0.02244734950363636, -0.0061779869720339775, + 0.020500587299466133, 0.015733009204268456, -0.06489203870296478, -0.014607330784201622, + -0.025718437507748604, 0.005370147526264191, -0.0011587864719331264, -0.014236519113183022, + -0.03647197410464287, 0.052522823214530945, 0.00840285699814558, -0.025744924321770668, + 0.01355449017137289, -0.032896291464567184, -0.006194541230797768, -0.019083557650446892, + -0.004506023600697517, -0.024817895144224167, 0.03782279044389725, 0.009621238335967064, + 0.021056804805994034, 0.017017606645822525, 0.002393721602857113, -0.015680035576224327, + 0.007932720705866814, 0.005045687314122915, 0.013759761117398739, -0.0018226054962724447, + 0.001295357709750533, 0.023202214390039444, 0.010038401000201702, 0.004506023600697517, + 0.01869950257241726, -0.011925567872822285, -0.004817240871489048, 0.04256388172507286, + 0.0250165443867445, 0.022712213918566704, -0.0020344979129731655, -0.014276249334216118, + -0.04055090248584747, 0.024553028866648674, -0.0014459999511018395, -0.0006791315972805023, + 0.0078135309740901, 0.024248434230685234, -0.006939475424587727, -0.05673418566584587, + 0.0015825711889192462, -0.016779227182269096, 0.04251090809702873, 0.010925700888037682, + -0.0085551543161273, -0.028049252927303314, 0.00021996250143274665, 0.026327628642320633, + 0.0004900011117570102, -0.04468280449509621, 0.014276249334216118, -0.018792204558849335, + 0.025413842871785164, 0.045106589794158936, -0.007045421749353409, 0.010925700888037682, + -0.009852995164692402, 0.002410275861620903, 0.037743330001831055, 0.026380600407719612, + 0.023043295368552208, -0.0059760273434221745, -0.0053535932675004005, -0.0027628778479993343, + -0.025930330157279968, 0.00858826283365488, -0.006608393508940935, 0.052655257284641266, + -0.017308957874774933, -0.0002971459471154958, -0.010237050242722034, -0.013143949210643768, + -0.00843596551567316, -0.0021321671083569527, 0.022169239819049835, -0.014647061005234718, + 0.004760956857353449, -0.022103022783994675, -0.003539264900609851, 0.06028338149189949, + -0.02065950632095337, 0.007694341707974672, -0.026764655485749245, -0.007820152677595615, + -0.04073631018400192, 0.04224604368209839, -0.030141690745949745, 0.013773004524409771, + 0.024513298645615578, 0.002699972363188863, -0.013825977221131325, -0.013667058199644089, + 0.0044464292004704475, 0.001953382743522525, -0.008098261430859566, -0.004241158254444599, + -0.012898948043584824, -0.03604818880558014, -0.03573035076260567, -0.012402325868606567, + -0.01487219613045454, 0.017335444688796997, 0.04015360400080681, 0.0024831139016896486, + 0.0165540911257267, -0.017494363710284233, -0.024447083473205566, -0.05673418566584587, + -0.017679769545793533, 0.01575949601829052, -0.009290155954658985, -0.0007912855944596231, + -0.007952585816383362, 0.002401998732239008, 0.008568397723138332, 0.004840416368097067, + -0.026592493057250977, 0.00013595048221759498, -0.015322467312216759, 0.01932193525135517, + 0.023493567481637, -0.015799226239323616, 0.03506818786263466, 0.005767445545643568, + -0.026076005771756172, 0.01986491121351719, -0.033770348876714706, -0.018792204558849335, + 0.005125146824866533, -0.059276893734931946, -0.010501915588974953, 0.014077600091695786, + -0.0077142068184912205, -0.0094093456864357, 0.020500587299466133, -0.0011049855966120958, + -0.016646794974803925, -0.041054148226976395, -0.012687056325376034, -0.023904109373688698, + 0.03128061071038246, -0.010316509753465652, -0.0038372385315597057, -0.0002058915124507621, + 0.034432511776685715, -0.022473834455013275, -0.02114950865507126, -0.03231358900666237, + -0.0006654745084233582, -0.016911661252379417, 0.011203809641301632, -0.017745986580848694, + -0.04420604556798935, 0.02648654766380787, 0.020646262913942337, 0.006310419645160437, + 0.005015889648348093, -0.0011827899143099785, -0.03766386955976486, -0.00999867171049118, + 0.0004891733988188207, 0.0017232809914276004, -0.01564030535519123, -0.012673812918365002, + 0.03610116243362427, -0.00258409371599555, 0.0018192947609350085, 0.017706256359815598, + 0.04113360866904259, 0.0029019322246313095, 0.0099655631929636, 0.014607330784201622, + -0.013759761117398739, 0.007495692931115627, -0.005515823606401682, 0.015137061476707458, + 0.004648388829082251, -0.02348032407462597, 0.019533827900886536, 0.02913520112633705, + 0.013408814556896687, 0.0233081616461277, -0.0013458476169034839, 0.010170834138989449, + 0.006866637151688337, 0.004333861172199249, -0.007522179279476404, -0.0017597000114619732, + -0.020752210170030594, -0.018871665000915527, -0.014210032299160957, 0.0745331421494484, + 0.0036485218442976475, 0.0060290005058050156, 0.012713542208075523, -0.02569195069372654, + 0.011660702526569366, 0.0038736574351787567, -0.014461655169725418, 0.018606798723340034, + -0.024725191295146942, 0.051224980503320694, -0.03896171227097511, -0.018673015758395195, + -0.0001552980684209615, -0.019096801057457924, 0.011852730065584183, 0.023718703538179398, + -0.036207109689712524, 0.004880146123468876, -0.0003064576303586364, 0.002550985664129257, + -0.0009377893293276429, -0.009747049771249294, 0.013971653766930103, -0.032287102192640305, + -0.017626797780394554, -0.002065950771793723, -0.001374817336909473, 0.004946362692862749, + -0.014170303009450436, 0.0024351070169359446, -0.04741092026233673, 0.012150703929364681, + 0.016170037910342216, 0.0009195798193104565, 0.016461389139294624, 0.011236917227506638, + 0.0009113027481362224, 0.011170701123774052, 0.004287509713321924, 0.0018623353680595756, + -5.845663690706715e-5, 0.029479527845978737, 0.007138124667108059, -0.0011968608014285564, + -0.02023572288453579, -0.004456361755728722, 0.036577921360731125, 0.021679239347577095, + 0.02379816211760044, 0.004787443205714226, -0.02759898267686367, -0.004724537953734398, + -0.0014344120863825083, -0.015031115151941776, -0.005406566429883242, 0.04942389577627182, + 0.004019333515316248, -0.010203942656517029, -0.0031270680483430624, -0.03234007582068443, + 0.007171232718974352, -0.03573035076260567, 0.02072572335600853, -0.007581774145364761, + -0.011879215948283672, 0.009680832736194134, 0.03165142238140106, -0.010448942892253399, + 0.024500055238604546, 0.0165540911257267, 0.0035260214935988188, 0.013561111874878407, + 0.01505760196596384, -0.01072705164551735, -0.01717652566730976, -0.011051511391997337, + -0.015362197533249855, -0.0171103086322546, -0.009415967389941216, 0.007018934935331345, + 0.01662030816078186, -0.013971653766930103, 0.027916820719838142, -0.02692357450723648, + 0.016262739896774292, -0.029161687940359116, -0.014739763922989368, -0.04727848619222641, + -0.016461389139294624, 0.030989259481430054, 0.017507607117295265, -0.006009135395288467, + -0.024976814165711403, -0.021493833512067795, -0.0033902779687196016, 0.006432920228689909, + 0.01199178397655487, 0.014819223433732986, 0.011091241613030434, 0.04719902575016022, + 0.00868096575140953, -0.002537742257118225, 0.016540849581360817, -0.011203809641301632, + 0.012528136372566223, 0.01422327570617199, 0.004022644367069006, -0.006701096426695585, + 0.01687193103134632, -0.011415701359510422, -0.028976282104849815, -0.05445634201169014, + -0.0053867013193666935, 0.020076802000403404, -0.012283136136829853, -0.015123818069696426, + -0.003057540860027075, -0.028420064598321915, -0.014911926351487637, 0.008694209158420563, + 0.01262746099382639, -0.009025290608406067, -0.004502713214606047, 0.0021636197343468666, + -0.0033935888204723597, -0.007694341707974672, 0.004423253238201141, -0.002401998732239008, + -0.007184476125985384, -0.017428148537874222, -0.006436231080442667, -0.056628238409757614, + -0.001052840263582766, 0.007091773208230734, 0.032896291464567184, 0.0034035213757306337, + 0.02582438290119171, -0.0004982781829312444, -0.030750881880521774, 0.019600044935941696, + 0.0214541032910347, -0.021533561870455742, -0.030141690745949745, -0.03403521329164505, + -0.06409744173288345, 0.0077142068184912205, 0.007588395848870277, 0.008707452565431595, + 0.023347891867160797, -0.021718967705965042, -0.0009651035652495921, 0.007323530502617359, + -0.007469206117093563, -0.00367169757373631, 0.00809163972735405, 0.024923840537667274, + -0.03358494117856026, 0.0161832794547081, -0.012422190979123116, 0.014236519113183022, + 0.021123021841049194, 0.026261411607265472, -0.021917616948485374, -0.02447357028722763, + -0.03469737619161606, 0.03035358339548111, -0.01753409393131733, 0.03535953909158707, + -0.04849686846137047, -0.023586269468069077, -0.03790224716067314, -0.031360071152448654, + 0.02226194366812706, -0.0032677778508514166, -0.024208704009652138, 0.0036882515996694565, + -0.029876824468374252, 0.004131901543587446, 0.021440859884023666, 0.01667328178882599, + -0.007356638554483652, 0.01042907778173685, 0.006032310891896486, -0.034803323447704315, + -0.012581110000610352, -0.013349220156669617, 0.0033886225428432226, -0.026234924793243408, + 0.008144613355398178, -0.003285987302660942, -0.020513830706477165, -0.042775772511959076, + -0.01734868809580803, 0.03353196755051613, 0.012773137539625168, 0.010177455842494965, + 0.003684940980747342, -0.00013295005192048848, -4.855004954151809e-5, 0.03766386955976486, + -0.008508803322911263, -0.010323131456971169, -0.004969538189470768, 0.02194410376250744, + 0.013600842095911503, -0.008806777186691761, 0.0077936663292348385, -0.0044464292004704475, + -0.0029565608128905296, -0.01613030768930912, -0.001402131631039083, -0.012071243487298489, + 0.015733009204268456, 0.009065020829439163, 0.0208581555634737, -0.01589192822575569, + 0.03557143360376358, -0.032525479793548584, -0.0060190679505467415, -0.002701627789065242, + -0.02036815509200096, 0.017375174909830093, -0.01697787642478943, 0.009654346853494644, + -0.040444958955049515, -0.024116002023220062, -0.012865840457379818, 0.007859882898628712, + 0.005774067249149084, 0.010621105320751667, -0.024566272273659706, -0.0005177292041480541, + -0.004181563854217529, 0.001748112146742642, -0.010422456078231335, 0.04738443344831467, + 0.03724008426070213, -0.0021172682754695415, -0.009680832736194134, 0.023215457797050476, + -0.023043295368552208, 0.018924638628959656, 0.026566006243228912, 0.008356506004929543, + -0.053741205483675, -0.028473038226366043, 0.009826509281992912, 0.017772473394870758, + 0.003315784502774477, -0.0052244714461266994, -0.0017166592879220843, 0.03766386955976486, + -0.00012332799087744206, 0.005654877983033657, 0.009753670543432236, 0.06081311032176018, + -0.004876835271716118, 0.011971918866038322, -0.006687853019684553, 0.019083557650446892, + -0.021109778434038162, 0.04640442878007889, 0.017388418316841125, -0.0029201419092714787, + 0.016448145732283592, -0.00016512707225047052, -0.021414373070001602, 0.0376373827457428, + 0.013706788420677185, 0.0242749210447073, -0.03220764175057411, 0.010601240210235119, + 0.024063028395175934, 0.03742549195885658, -0.019891396164894104, 0.022778430953621864, + -0.015282738022506237, -0.0092239398509264, 0.021056804805994034, -0.03109520673751831, + 0.004155077040195465, -0.03686927258968353, 0.009376238100230694, 0.04280225932598114, + -0.014514627866446972, 0.025943573564291, 0.02955898642539978, -0.0022232146002352238, + 0.010131103917956352, -0.0008037011721171439, -0.012898948043584824, -0.00018240540521219373, + 0.0018292271997779608, -0.01802409440279007, -0.008627993054687977, -0.033399537205696106, + -0.031677909195423126, -0.02114950865507126, 0.02900276891887188, 0.0016777572454884648, + 0.004780821967869997, 0.010998538695275784, 0.013117462396621704, 0.020315181463956833, + 0.005366836674511433, 0.017587067559361458, 0.0012208642438054085, -0.017613554373383522, + -0.003330683335661888, 0.0022414240520447493, -0.01299827266484499, 0.040683336555957794, + 0.023957081139087677, -0.008389613591134548, -0.007416233420372009, 0.009184210561215878, + -0.006595150101929903, -0.015746252611279488, 0.011455431580543518, 0.003231358714401722, + -0.024063028395175934, 0.003231358714401722, -0.006350149866193533, -0.01177989225834608, + 0.0172957144677639, -0.02937358058989048, 0.0023010186851024628, -0.00171003770083189, + -0.007992316037416458, 0.025744924321770668, -0.010501915588974953, -0.019454369321465492, + 0.033505480736494064, -0.015269494615495205, 0.02336113527417183, -0.029347093775868416, + 0.0017795648891478777, -0.02337437868118286, 0.035412512719631195, 0.0003134931030217558, + 0.01343530137091875, -0.010587996803224087, -0.017891662195324898, -0.05726391449570656, + 0.026261411607265472, 0.01724274270236492, 0.014567600563168526, 0.039888739585876465, + -0.03342602401971817, 0.04574226588010788, 0.022712213918566704, 0.014342465437948704, + 0.006724271923303604, 0.0037081167101860046, -0.022434106096625328, -0.022963836789131165, + 0.007661233656108379, -0.03673684224486351, 0.03332007676362991, -0.04052441567182541, + -0.018474366515874863, -0.013865707442164421, 0.03440602496266365, -0.017269229516386986, + -0.024142486974596977, 0.04052441567182541, -0.012110973708331585, -0.002353991847485304, + 0.03297575190663338, 0.02447357028722763, -0.035174135118722916, 0.0025195328053086996, + -0.003714738180860877, 0.020447613671422005, 0.0013673680368810892, 0.03514764830470085, + 0.04709308221936226, 0.0022960526403039694, 0.03263142704963684, 0.02765195444226265, + -0.010594618506729603, 0.004744402598589659, -0.03241953253746033, -0.018302204087376595, + 0.013329355046153069, 0.014805980026721954, 0.05162227898836136, -0.023467080667614937, + -0.011918946169316769, -0.022301672026515007, 0.023533297702670097, -0.011799756437540054, + ], + index: 69, + }, + { + title: "Jeff Stover", + text: "Jeff Stover is a retired defensive lineman for the San Francisco 49ers American football team during the 1980s.", + vector: [ + -0.014568816870450974, 0.03197459504008293, -0.038306817412376404, -0.00041192761273123324, + -0.03335389122366905, -0.007797725964337587, -0.020046817138791084, 0.003487425157800317, + -0.0462377704679966, 0.07109645009040833, -0.06551656872034073, 0.01963929831981659, + -0.010101777501404285, 0.01536034420132637, 0.012829022482037544, -0.06244450435042381, + -0.04460769519209862, 0.020031142979860306, 0.012131537310779095, -0.04956062138080597, + 0.03557957336306572, 0.024529529735445976, -0.015250627882778645, 0.032758284360170364, + 0.03445105999708176, 0.005348691251128912, 0.01788382977247238, -0.009858833625912666, + 0.013032781891524792, 0.025344569236040115, -0.00014400323561858386, 0.017350919544696808, + 0.005642575677484274, -0.005513266660273075, -0.018228653818368912, 0.06476423144340515, + -0.0294667836278677, 0.002981944475322962, 0.0234480369836092, 0.01999979466199875, + 0.016128361225128174, -0.06545387953519821, 0.029889976605772972, 0.012962250038981438, + 0.041410233825445175, 0.036896172910928726, -0.00019408598018344492, -0.015430876985192299, + -0.0006034420803189278, 0.02542293816804886, 0.025266198441386223, -0.035266097635030746, + 0.015187932178378105, -0.05517185106873512, -0.006614352576434612, -0.006978768855333328, + -0.018103262409567833, 0.09040659666061401, -0.020987246185541153, 0.010376069694757462, + -0.03191189840435982, -0.04228796809911728, 0.0076684169471263885, -0.017491983249783516, + 0.007546945009380579, 0.009600215591490269, 0.028244225308299065, 0.05742888152599335, + 0.02899656817317009, 0.003900822252035141, -0.010360395535826683, 0.019780362024903297, + 0.05407468229532242, 0.039215900003910065, -0.016363469883799553, -0.008816524408757687, + -0.004192747175693512, -0.0003257216012571007, -0.05112800374627113, 0.008040670305490494, + 0.004823618568480015, -0.024654921144247055, -0.009553194046020508, 0.01722552999854088, + 0.02484300546348095, -0.022131435573101044, 0.04385535046458244, -0.0658300444483757, + -0.002805613912642002, 0.017241202294826508, -0.0024745045229792595, 0.0018064078176394105, + 0.013330584391951561, -0.01722552999854088, 0.04263279214501381, 0.03313445672392845, + -0.009561031125485897, 0.012507708743214607, 0.007104159332811832, -0.02275838889181614, + 0.007574373856186867, -0.006583004724234343, 0.019827382639050484, -0.017742766067385674, + 0.0348585769534111, 0.006324386689811945, -0.013009271584451199, 0.02830692008137703, + 0.018510783091187477, 0.023259950801730156, 0.04470173642039299, 0.013416790403425694, + -0.007433309685438871, 0.04830671474337578, -0.00785258412361145, 0.014560979790985584, + 0.00895758904516697, 0.02148880809545517, 0.024404138326644897, -0.03039153851568699, + 0.011347846128046513, 0.000153799366671592, -0.015548430383205414, 0.012680120766162872, + 0.0432283990085125, -0.011449726298451424, 0.011935614980757236, -0.006661374121904373, + 0.021520156413316727, 0.02346370927989483, -0.0671466514468193, 0.0024784228298813105, + -0.02159852534532547, 0.009412129409611225, -0.04999949038028717, 0.008173897862434387, + 0.040030937641859055, 0.03460779786109924, -0.010744404047727585, 0.013573529198765755, + 0.023824207484722137, -0.0014752984279766679, 0.016222404316067696, 0.024231726303696632, + -0.009788300842046738, -0.03583035618066788, 0.061033859848976135, 0.08451323956251144, + -0.007805563043802977, -0.0787452757358551, 0.01962362416088581, 0.030328843742609024, + 0.0012813349021598697, -0.019263125956058502, 0.052162475883960724, -0.03347928076982498, + -0.042789530009031296, 0.018181633204221725, -0.029889976605772972, -0.019607950001955032, + -0.04573620855808258, 0.016551554203033447, -0.04507790878415108, 0.04736628755927086, + -0.04727224260568619, -0.020266249775886536, 0.05761696398258209, -0.019263125956058502, + 0.005771884694695473, -0.00040507031371816993, -1.3806432434648741e-5, 0.005987399723380804, + 0.006477206479758024, 0.012891717255115509, -0.003411015262827277, -0.04858884587883949, + -0.01206100545823574, -0.011488910764455795, 0.04573620855808258, -0.002268785610795021, + -0.03039153851568699, 0.00924755446612835, -0.025234851986169815, -0.015046868473291397, + -0.024325769394636154, -0.004470957443118095, 0.005058725830167532, 0.012805511243641376, + 0.060469601303339005, -0.08702105283737183, -0.015376018360257149, -0.005744455382227898, + 0.011097065173089504, -0.0024470752105116844, 0.03730369359254837, 0.0600307323038578, + 0.023024842143058777, 0.0171001385897398, -0.019451212137937546, -0.03717830404639244, + 0.04883962497115135, 0.040469806641340256, 0.02112830989062786, -0.016473185271024704, + 0.030219126492738724, -0.013816473074257374, 0.0006734844646416605, 0.030563950538635254, + -0.04482712969183922, 0.006504635792225599, 0.009905855171382427, -0.016896378248929977, + 0.012680120766162872, -0.037585821002721786, -0.010352558456361294, 0.021629873663187027, + 0.015454387292265892, -0.017147159203886986, 0.04275818169116974, 0.02819720469415188, + 0.027397839352488518, 0.004659043159335852, -0.03611248359084129, -0.011927777901291847, + 0.04357322305440903, -0.002482341369614005, -0.03793064504861832, -0.025673719123005867, + 0.03727234527468681, 0.01547789853066206, -0.06291471421718597, 0.0020532705821096897, + -0.008706807158887386, 0.04009363427758217, -0.006974850315600634, -0.042664140462875366, + -0.01547006145119667, -0.016426164656877518, -0.008581416681408882, -0.008761665783822536, + -0.005333017557859421, 0.02576776221394539, 0.009341597557067871, 0.031206578016281128, + 0.030234800651669502, 0.07209957391023636, -0.026300672441720963, -0.027695640921592712, + -0.044889822602272034, -0.0011432092869654298, -0.05633171275258064, -0.013299237005412579, + -0.018228653818368912, -0.011841571889817715, 0.021394765004515648, -0.0066927215084433556, + -0.007354940287768841, 0.013213030993938446, 0.024169031530618668, -0.0017025688430294394, + -0.01835404522716999, -0.014913640916347504, 0.0408773235976696, -0.02250760607421398, + 0.0005128278280608356, 0.01265661045908928, -0.014263177290558815, 0.018432414159178734, + 0.039560724049806595, -0.015517082996666431, 0.012100189924240112, -0.011018696241080761, + -0.010399580001831055, 0.032052963972091675, 0.02816585637629032, -0.01777411252260208, + -0.03142601251602173, -0.012578241527080536, 0.03278963267803192, 0.029294371604919434, + 0.022585976868867874, -0.026410387828946114, 0.012452851049602032, 0.00508615467697382, + 0.013260052539408207, 0.023620449006557465, -0.00826010387390852, 0.013071966357529163, + 0.03479588404297829, -0.0011363520752638578, -0.03454510122537613, -0.03325984627008438, + 0.050751831382513046, 0.02112830989062786, 0.06677047908306122, 0.012915228493511677, + 0.0205483790487051, 0.045924294739961624, 0.03175516054034233, 0.013620550744235516, + 0.025595350190997124, 0.009396455250680447, -0.006626107729971409, -0.06426266580820084, + -0.046613942831754684, -0.031943246722221375, -0.003916495945304632, 0.02114398404955864, + 0.006050094962120056, -0.03257019817829132, -0.00795054528862238, -0.041849102824926376, + -0.0265671256929636, 0.006516390945762396, 0.04250740259885788, 0.023604774847626686, + 0.004831455182284117, 0.0025058521423488855, -0.04062654450535774, -0.015234953723847866, + 0.016253752633929253, 0.0016917930915951729, 0.008126876316964626, 0.015736516565084457, + -0.011089228093624115, -0.00861276499927044, 0.01730389893054962, 0.034137580543756485, + -0.025908825919032097, 0.00756261870265007, 0.011567279696464539, 0.004020335152745247, + -0.007284408435225487, 0.008636275306344032, -0.0027879809495061636, 0.016457511112093925, + -0.027695640921592712, 0.0007538128411397338, -0.016598576679825783, -0.00158795400056988, + -0.0169904213398695, -0.03595574572682381, -0.037711214274168015, -0.014239666052162647, + -0.009866670705378056, -0.02967054210603237, 0.07297731190919876, 0.03514070808887482, + -0.028557701036334038, -0.023620449006557465, 0.0007498943596147001, -0.019106388092041016, + 0.015618962235748768, 0.013510833494365215, -0.022962147369980812, 0.01398104801774025, + -0.004228013101965189, -0.030924448743462563, 0.00013298257545102388, -0.001412603072822094, + 0.06285202503204346, 0.008965425193309784, 0.04125349596142769, 0.013440301641821861, + 0.025548327714204788, 0.002940800739452243, 0.03514070808887482, -0.013260052539408207, + -0.007437228225171566, -0.01068170927464962, 0.033761411905288696, -0.04413747787475586, + 0.0029505968559533358, 0.08401168137788773, 0.028009118512272835, -0.050062183290719986, + 0.005450571421533823, -0.009945039637386799, -0.04006228595972061, -0.007300082128494978, + -0.0010550441220402718, 0.018448086455464363, 0.0233383197337389, 0.007660579867660999, + -0.0013792961835861206, 0.012578241527080536, 0.028573375195264816, 0.04448230564594269, + -0.04125349596142769, 0.006865133531391621, -0.00669664004817605, 0.01061901357024908, + -0.046707987785339355, -0.055391281843185425, 0.05993669107556343, -0.02990565076470375, + 0.003810697700828314, 0.04056384786963463, -0.02032894641160965, -0.004992112051695585, + -0.013620550744235516, 0.005199790000915527, -0.04031306877732277, -0.05347907543182373, + -0.012852532789111137, -0.018338371068239212, -0.03542283549904823, 0.002513688988983631, + 0.023134559392929077, 0.018683195114135742, -0.020062491297721863, 0.03316580504179001, + -0.02885550446808338, 0.0020415151957422495, 0.06169215962290764, -0.0015713005559518933, + 0.04849480092525482, 0.0247332900762558, -0.01368324551731348, 0.018165959045290947, + 0.014365056529641151, 0.07310269773006439, -0.007966219447553158, -0.038996465504169464, + 0.014216155745089054, -0.006289120763540268, -0.03313445672392845, -0.02562669664621353, + 0.002159068826586008, -0.014169134199619293, -0.030172105878591537, -0.008377657271921635, + -0.03595574572682381, 0.04589294642210007, -0.008314961567521095, -0.08093961328268051, + -0.013416790403425694, -0.01293873880058527, 0.03557957336306572, 0.0265671256929636, + -0.023526405915617943, 0.01507037878036499, -0.038745686411857605, 0.02031327225267887, + 0.008189571090042591, -0.03488992527127266, -0.03974881023168564, -0.023698817938566208, + 0.01137919444590807, 0.03108118660748005, 0.013111150823533535, -0.03815007954835892, + -0.015234953723847866, -0.023416688665747643, -0.022585976868867874, 0.0016016685403883457, + 0.023714490234851837, -0.016582902520895004, -0.05084587633609772, 0.021316396072506905, + 0.010070430114865303, -0.03294637054204941, 0.0054348972626030445, -0.004882395267486572, + 0.016708293929696083, 0.0021335987839847803, -0.059654563665390015, -0.028918199241161346, + -0.030799057334661484, -0.009568867273628712, 0.03579900786280632, -0.020234903320670128, + 0.007456820458173752, 0.053290992975234985, 0.03554822504520416, -0.002196294255554676, + 0.011340009048581123, -0.029388414695858955, -0.0010187983280047774, -0.005587717052549124, + 0.01270363200455904, 0.020532704889774323, -0.05128474161028862, -0.05084587633609772, + 0.029607847332954407, -0.01398104801774025, -0.0205483790487051, -0.01398104801774025, + 0.007527352310717106, 0.0006470349035225809, 0.005238974466919899, 0.020125186070799828, + -0.0247332900762558, -0.016002971678972244, 0.013158172369003296, 0.0034325667656958103, + -0.01057199202477932, -0.0068847257643938065, 0.018056241795420647, -0.004525815602391958, + 0.04655124992132187, -0.027444859966635704, 0.02158285118639469, 0.04285222664475441, + 0.011818060651421547, -0.023479383438825607, 0.053886596113443375, 0.021535830572247505, + -0.03104984015226364, 0.021896326914429665, 0.004835373722016811, 0.029592173174023628, + -0.053667161613702774, 0.0011559443082660437, -0.03777390718460083, -0.011340009048581123, + -0.011332172900438309, -0.006649618502706289, 0.02413768507540226, 0.03347928076982498, + -0.012468524277210236, 0.0065477387979626656, 0.03868298977613449, -0.003965476527810097, + 0.0380873866379261, 0.010117451660335064, 0.017617374658584595, -0.05633171275258064, + -0.02816585637629032, 0.012664447538554668, 0.048338063061237335, 0.0030642319470643997, + 0.01962362416088581, 0.051002614200115204, -0.022366542369127274, -0.005297751631587744, + -0.050657790154218674, 0.01310331467539072, 0.038745686411857605, -0.03108118660748005, + 0.024874353781342506, -0.05316559970378876, -0.009890181012451649, -0.014294524677097797, + -0.009553194046020508, -0.01824432797729969, -0.015336833894252777, -0.02620662935078144, + -0.01791517809033394, 0.0026077318470925093, 0.03843221068382263, 0.028683092445135117, + 0.03664539381861687, -0.02449818141758442, 0.0204386617988348, -0.06291471421718597, + -0.019796036183834076, 0.09147241711616516, 0.006347897462546825, -0.040469806641340256, + 0.003493302734568715, 0.0018289389554411173, -0.031002817675471306, 0.02446683496236801, + -0.02020355500280857, 0.00385380070656538, -0.008722481317818165, 0.03871433809399605, + -0.03652000427246094, 0.009145674295723438, -0.013267889618873596, -0.014827434904873371, + -0.005811069160699844, -0.04288357496261597, 0.01229611225426197, -0.010164473205804825, + -0.001126555842347443, 0.003373790066689253, -0.00013053354632575065, -0.033980842679739, + 0.011144086718559265, -0.03291502222418785, -0.05162956565618515, 0.010211494751274586, + -0.005301669705659151, 0.009380782023072243, -0.015376018360257149, 0.016582902520895004, + -0.01121461857110262, -0.021065615117549896, 0.013730267062783241, -0.024968396872282028, + -0.020501358434557915, 0.010007734410464764, 0.0346391424536705, -0.0003433546517044306, + -0.009012446738779545, 0.004870639648288488, 0.032413460314273834, 0.003336564637720585, + 0.03927859663963318, 0.027115710079669952, 0.02045433595776558, -0.06056364253163338, + 0.021912001073360443, 0.009059468284249306, 0.015626799315214157, 0.0022766224574297667, + 0.008589253760874271, -0.024325769394636154, 0.014952825382351875, -0.030987143516540527, + 0.07717789709568024, -0.005705270916223526, -0.014114275574684143, -0.003810697700828314, + -0.07109645009040833, 0.01673964038491249, 0.019607950001955032, 0.0017495902720838785, + -0.013957537710666656, 0.03561092168092728, 0.014012396335601807, -0.017491983249783516, + 0.012256927788257599, 0.007981893606483936, 0.0005588696803897619, -0.0019533499144017696, + -0.02101859450340271, 0.0102193308994174, 0.017617374658584595, -0.0623818077147007, + 0.02609691210091114, 0.008636275306344032, -0.024043641984462738, 0.008738155476748943, + 0.00025494449073448777, -0.05028161779046059, 6.76545751048252e-5, -0.018542129546403885, + 0.008565743453800678, 0.007840828970074654, 0.023761512711644173, 0.021676894277334213, + -0.032726939767599106, -0.010956000536680222, -0.010783588513731956, -0.04159832000732422, + 0.038056038320064545, 0.04438826069235802, 0.0007327511557377875, -0.046143729239702225, + 0.02611258625984192, 0.0023647877387702465, 0.015783537179231644, 0.020250577479600906, + -0.007746785879135132, 0.016896378248929977, 0.005673923064023256, -0.03739773854613304, + -0.015877580270171165, 0.0021453541703522205, -0.0014978295657783747, 0.030344517901539803, + -0.00476484140381217, 0.006116708740592003, -0.015517082996666431, 0.024090662598609924, + -0.022241152822971344, 0.04862019419670105, -0.005419223569333553, 0.04934118688106537, + -0.0006764233112335205, -0.00952968280762434, 0.008879219181835651, 0.005321262404322624, + -0.027100035920739174, -0.011488910764455795, -0.0352974459528923, -0.00999206118285656, + -0.04351052641868591, 0.06050094962120056, 0.007272652816027403, 0.029404088854789734, + 0.01894965022802353, -0.0019259207183495164, -0.008040670305490494, 0.023730164393782616, + 0.0029917405918240547, 0.007746785879135132, -0.007586129475384951, 0.029654869809746742, + 0.03981150686740875, 0.03974881023168564, 0.006097116507589817, -0.024654921144247055, + -0.0024940967559814453, -0.03570496290922165, -0.04554812237620354, -0.013698919676244259, + -0.027444859966635704, 0.031927574425935745, 0.028557701036334038, 0.006269528530538082, + 0.021441787481307983, 0.009466988034546375, -0.009004609659314156, -0.0475543737411499, + 0.03288367763161659, -0.010407417081296444, 0.0030897019896656275, -0.021943349391222, + 0.013644061051309109, 0.013064130209386349, -0.055610716342926025, 0.027303796261548996, + 0.0007557720527984202, -0.030642319470643997, -0.010760078206658363, 0.006857296451926231, + 0.003248399356380105, 0.011355683207511902, -0.04633181542158127, -0.0032150924671441317, + -0.0009869609493762255, -0.01022716797888279, -0.04896501824259758, -0.0034325667656958103, + -0.010391742922365665, 0.005756210535764694, 0.02623797580599785, -0.032852329313755035, + -0.017946524545550346, 0.00025298527907580137, 0.013032781891524792, -0.0005466244765557349, + -0.01952958106994629, -0.003593223402276635, 0.007288326509296894, 0.006626107729971409, + 0.03858894854784012, -0.04554812237620354, 0.0032111741602420807, 0.003738206345587969, + -0.021457461640238762, -0.001973921898752451, -0.04282087832689285, 0.037836603820323944, + -0.01766439527273178, -0.02540726400911808, 0.016912052407860756, 0.01730389893054962, + -0.015195769257843494, -0.0019033895805478096, 0.010830610059201717, 0.0004146215505897999, + 0.005732700228691101, -0.0054348972626030445, -0.026363367214798927, -0.02471761591732502, + 0.03235076740384102, 0.03617518022656441, 0.02056405320763588, 0.03789930045604706, + -0.005274240858852863, -0.019592275843024254, -0.010705219581723213, 0.016896378248929977, + -0.012625263072550297, -0.006869052071124315, 0.00861276499927044, 0.012162884697318077, + -0.025031091645359993, -0.0021335987839847803, 0.002691978821530938, 0.012319623492658138, + -0.013361932709813118, -0.008847871795296669, -0.035266097635030746, -0.056770578026771545, + -0.04379265382885933, 0.011175434105098248, -0.0432283990085125, -0.03247615694999695, + -0.03028182126581669, -0.01576002687215805, -0.0031523972284048796, 0.011308661662042141, + 0.013651898130774498, -0.02658279985189438, -0.007347103673964739, 0.038651641458272934, + -0.006195077672600746, 0.008988936431705952, 0.0018622458446770906, -0.006751498207449913, + -0.041755057871341705, 0.006394919008016586, 0.02531322091817856, 0.002693937858566642, + 0.03325984627008438, 0.0031328049954026937, -0.01662992313504219, -0.02830692008137703, + 0.026394713670015335, -0.040250372141599655, 0.04238201305270195, -0.030908774584531784, + -0.009670747444033623, -0.0059834811836481094, -0.00501954136416316, 0.01438073068857193, + 0.030219126492738724, -0.0063008759170770645, 0.006379245314747095, -0.013463811948895454, + 0.00029119019745849073, 0.0003078436420764774, -0.019592275843024254, -0.006293039303272963, + -0.01766439527273178, 0.00020020856754854321, -0.021457461640238762, -0.0012431299546733499, + -0.020187880843877792, 0.025830456987023354, 0.012256927788257599, -0.0023804616648703814, + 0.025093786418437958, -0.007108077872544527, -0.03003104031085968, 0.002360869199037552, + -0.03915320336818695, 0.007985811680555344, -0.04351052641868591, 0.03890242427587509, + 0.01753900572657585, -0.012719305232167244, 0.016708293929696083, 0.008722481317818165, + 0.02377718687057495, -0.012852532789111137, -0.015297649428248405, 0.010509297251701355, + 0.051096655428409576, -0.02703734114766121, -0.022664345800876617, -0.00918485876172781, + -0.027350816875696182, -0.012876044027507305, 0.009098652750253677, -0.01195912528783083, + -0.006347897462546825, 0.010736566968262196, 0.013502996414899826, 0.02910628542304039, + 0.003940006718039513, 0.001029574079439044, -0.030532604083418846, -0.0037871869280934334, + 0.035736311227083206, 0.006124545354396105, 0.030469907447695732, -0.02805613912642002, + 0.01826000213623047, -0.015438714064657688, 0.02277406118810177, -0.02760159783065319, + 0.03291502222418785, -0.05125339329242706, 0.01904369331896305, -0.0220530666410923, + 0.019780362024903297, -0.0049607641994953156, -0.017821134999394417, -0.007586129475384951, + 0.002180620329454541, 0.003906699828803539, 0.0052154636941850185, 0.032068636268377304, + 0.0029172899667173624, 0.03601843863725662, -0.030516929924488068, -0.008244429714977741, + 0.012421502731740475, -0.01056415494531393, -0.05325964465737343, -0.028824156150221825, + -0.04727224260568619, -0.02007816545665264, -0.04310300573706627, -0.013024944812059402, + -0.022711366415023804, -0.008244429714977741, -0.022476259618997574, -2.4276054318761453e-5, + 0.015187932178378105, -0.01826000213623047, -0.013471649028360844, 0.0267865601927042, + 0.009490498341619968, 0.003749961731955409, 0.0023275623098015785, -0.009576704353094101, + 0.020705116912722588, 0.04617507755756378, 0.0036480817943811417, -0.008479537442326546, + 0.029968345537781715, -0.013126824982464314, 0.06310280412435532, 0.02032894641160965, + -0.02863606996834278, 0.045579470694065094, 0.043604571372270584, 0.038745686411857605, + 0.005999154876917601, -0.003458036808297038, 0.03912185877561569, 0.01766439527273178, + 0.0033620346803218126, 0.0021316397469490767, -0.009145674295723438, 0.030234800651669502, + -0.011347846128046513, -0.0032092148903757334, 0.01131649874150753, 0.020250577479600906, + 0.01871454156935215, 0.07448199391365051, -0.01264877337962389, -0.0205483790487051, + 0.0038283306639641523, -0.03592439740896225, -0.005442734342068434, 0.04078328236937523, + 0.012829022482037544, 0.03335389122366905, 0.040124982595443726, 0.004396506585180759, + 0.040720585733652115, 0.013565692119300365, 0.0032601547427475452, 0.038526251912117004, + -0.006269528530538082, -0.016880705952644348, 0.016097014769911766, -0.05178630352020264, + -0.04285222664475441, -0.0013019067700952291, 0.047742459923028946, -0.026943298056721687, + -0.02830692008137703, -0.03083040565252304, -0.006104953121393919, -0.004847129341214895, + 0.0103290481492877, -0.003961558453738689, 0.016661271452903748, -0.005419223569333553, + 0.0021923757158219814, -0.010235005058348179, 0.018338371068239212, 0.02899656817317009, + 0.029529478400945663, 0.00016077912005130202, -0.0006656475597992539, -0.009498335421085358, + -0.03322850167751312, -0.03567361459136009, -0.028228551149368286, -0.019216105341911316, + -0.00629695737734437, 0.013526507653295994, 0.002488219179213047, 0.010877631604671478, + 0.06266393512487411, -0.007182528264820576, -0.00501954136416316, 0.0019944936502724886, + -0.007472494151443243, 0.008753828704357147, -0.026426061987876892, 0.029372740536928177, + 0.04272683709859848, 0.0035364057403057814, -0.002582262037321925, 0.029639195650815964, + -0.009686421602964401, -0.022272499278187752, -0.045454081147909164, 0.004521897528320551, + -0.027883727103471756, -0.03257019817829132, 0.01201398391276598, 0.015783537179231644, + -0.01604999229311943, -0.033980842679739, -0.03294637054204941, -0.005818906240165234, + 0.00025445467326790094, 0.02703734114766121, -0.008847871795296669, 0.01379296276718378, + -0.010877631604671478, -0.014858782291412354, -0.0031994187738746405, 0.03473318740725517, + -0.07554781436920166, 0.004894150421023369, -0.02589315176010132, 0.008918403647840023, + 0.035046663135290146, -0.005842416547238827, -0.01791517809033394, 0.01811893656849861, + -0.0013009271351620555, 0.024106336757540703, -0.01996844820678234, 0.05777370557188988, + -0.020281923934817314, 0.0063008759170770645, 0.0022922963835299015, 0.0004525815893430263, + -0.01432587206363678, 0.009012446738779545, -0.025093786418437958, 0.03949802741408348, + 0.03473318740725517, 0.0014645226765424013, -0.06865133345127106, 0.021049940958619118, + -0.01604999229311943, -0.055736105889081955, -0.002472545253112912, -0.029263023287057877, + -0.008432515896856785, 0.04943523183465004, -0.020626747980713844, -0.006359652616083622, + 0.013095477595925331, 0.04034441336989403, -0.017021769657731056, 0.029576500877738, + -0.05141013115644455, -0.06294606626033783, 0.0027468372136354446, -0.02112830989062786, + -0.022554628551006317, -0.004631614312529564, -0.025109460577368736, 0.03479588404297829, + 0.007629232481122017, 0.01777411252260208, 0.017507657408714294, -0.004839292261749506, + 0.0231188852339983, -0.022256825119256973, 0.010407417081296444, -0.004114377778023481, + 0.013260052539408207, -0.038056038320064545, 0.00546232657507062, 0.023385340347886086, + -0.0014596246182918549, -0.02184930630028248, 0.019263125956058502, 0.005489755887538195, + -0.01951390691101551, -0.010250679217278957, 0.03871433809399605, -0.04896501824259758, + 0.011802387423813343, 0.002974107628688216, 0.014466936700046062, -0.023181581869721413, + -0.02794642187654972, -0.022006044164299965, -0.03300906717777252, -0.0205483790487051, + 0.03692752122879028, 0.016927726566791534, -0.011551606468856335, -0.005423142109066248, + 0.009913691319525242, 0.051096655428409576, -0.012217743322253227, 0.003054435830563307, + 0.023855555802583694, 0.00546232657507062, -0.007727193646132946, 0.014992009848356247, + 0.03004671446979046, -0.0376485176384449, -0.023949598893523216, 0.031958919018507004, + -0.007723275106400251, 0.03652000427246094, -0.011175434105098248, 0.021081289276480675, + -0.01126947719603777, -0.03351062908768654, -0.03952937573194504, 0.05316559970378876, + 0.02611258625984192, 0.017507657408714294, -0.0066417814232409, 0.019921425729990005, + 0.001835796283558011, 0.017413614317774773, -0.013887004926800728, 0.01329139992594719, + -0.017727091908454895, -0.01027418952435255, -0.0036461225245147943, 0.009898018091917038, + 0.0056464942172169685, -0.0005941357812844217, 0.01062685064971447, -0.021441787481307983, + 0.011183271184563637, -0.0184951089322567, 0.01235880795866251, 0.02412201091647148, + -0.02448250912129879, 0.004988193511962891, -0.005924704484641552, 0.025156483054161072, + -0.022789735347032547, 0.012789838016033173, -0.03780525550246239, -0.0038165755104273558, + 0.022147109732031822, 0.05369850993156433, 0.002966270549222827, 0.0171001385897398, + -0.005920785944908857, 0.00158207630738616, 0.02219413034617901, 0.0036324081011116505, + 0.03811873123049736, -0.037491779774427414, -4.022539360448718e-5, 0.030799057334661484, + 0.0701560229063034, 0.00029192492365837097, 0.009365107864141464, 0.002096373587846756, + -0.012907391414046288, 0.008675459772348404, 0.002613609656691551, -0.007213876117020845, + -0.02412201091647148, 0.014811760745942593, 0.029294371604919434, 0.0009374904329888523, + 0.021316396072506905, -0.004208420868963003, -0.026363367214798927, -0.007178610190749168, + 0.024858679622411728, -0.0072021204978227615, -0.002705693244934082, -0.008448189124464989, + 0.0012137414887547493, -0.018620498478412628, -0.008573579601943493, -0.005082236602902412, + 0.012155048549175262, -0.000502052076626569, 0.0234480369836092, -0.01896532252430916, + -0.03150438144803047, 0.01780546084046364, -0.004549326375126839, 0.0038400860503315926, + 0.04357322305440903, 0.03949802741408348, -0.011488910764455795, 0.025203503668308258, + 0.012162884697318077, -0.018040567636489868, -0.0011216577840968966, 0.0059834811836481094, + -0.05695866420865059, 0.0016104851383715868, -0.021426113322377205, 0.0048157814890146255, + -0.026723865419626236, -0.01811893656849861, -0.020140860229730606, 0.01443558931350708, + -0.025564001873135567, -0.029278697445988655, -0.004408262204378843, -0.02758592553436756, + 0.006579086184501648, 0.01601080782711506, -0.025611022487282753, -0.010054755955934525, + -0.003489384427666664, 0.01927880011498928, -0.016833683475852013, 0.0009144694777205586, + -0.02034461870789528, -0.0013185602147132158, 0.005677841603755951, -0.011825897730886936, + -0.051566869020462036, 0.032852329313755035, 0.009796137921512127, 0.009435640648007393, + 0.02714705839753151, 0.022272499278187752, -0.01952958106994629, -0.04576755687594414, + 0.047178201377391815, -0.022006044164299965, 0.00716293603181839, 0.007703682873398066, + -0.018087590113282204, 0.021175332367420197, 0.0410967580974102, 0.005387875717133284, + 0.024890027940273285, 0.030689341947436333, 0.003379667643457651, -0.02956082671880722, + 0.02633201889693737, -0.015893254429101944, 0.0010491664288565516, -0.026958972215652466, + 0.004984274972230196, -0.002523485105484724, -0.001905348850414157, -0.010187983512878418, + 0.01507037878036499, 0.020877528935670853, 0.03357332572340965, 0.025219177827239037, + -0.013040618970990181, -0.01195912528783083, 0.00018037139670923352, -0.023933924734592438, + -0.009490498341619968, -0.011300824582576752, 0.03222537413239479, -0.01590109057724476, + -0.013651898130774498, 0.023542078211903572, 0.0032915023621171713, 0.012891717255115509, + -0.029654869809746742, -0.0029897813219577074, 0.008518721908330917, 0.02413768507540226, + 0.00045870416215620935, 0.005231137853115797, -0.0018730215961113572, 0.01096383761614561, + 0.005474081728607416, -0.0029643112793564796, -0.018651846796274185, 0.014396404847502708, + -0.012789838016033173, 0.03730369359254837, 0.01547006145119667, 0.017382267862558365, + -0.020626747980713844, -0.011966962367296219, -0.01896532252430916, 0.028479332104325294, + 0.003577549709007144, 0.02368314377963543, -0.00011161474685650319, 0.004557163454592228, + 0.03664539381861687, 0.002319725463166833, 0.002206090372055769, 0.011410541832447052, + 0.03429431840777397, -0.008087691850960255, 0.023824207484722137, -0.023730164393782616, + 0.03705291450023651, -0.0009962671902030706, -0.008761665783822536, -0.027977770194411278, + -0.04583025351166725, 0.006927828770130873, -0.02703734114766121, 0.02288377843797207, + 0.0007082608062773943, -0.005720944609493017, -0.0007229549810290337, 0.00615197466686368, + -0.007629232481122017, -0.0006916073616594076, -0.01547789853066206, 0.0059717255644500256, + -0.019796036183834076, 0.017852481454610825, -0.018573477864265442, -0.014161297120153904, + 0.008628438226878643, -0.03197459504008293, 0.004882395267486572, -0.0006264630355872214, + -0.04103406146168709, 0.05755427107214928, 0.015485734678804874, -0.036206524819135666, + -0.02056405320763588, -0.025109460577368736, 0.013510833494365215, -0.0010805140482261777, + 0.03003104031085968, -0.0012872125953435898, 0.014459099620580673, 0.0062656099908053875, + 0.014263177290558815, -0.0011774958111345768, 0.023244276642799377, 0.026018543168902397, + -0.01791517809033394, 0.0008576518739573658, -0.012844696640968323, -0.009427803568542004, + -0.012421502731740475, -0.007789888884872198, 0.0073118372820317745, 0.023495057597756386, + -0.019701993092894554, 0.0005701352492906153, -0.025031091645359993, -0.04561081901192665, + -0.009999897330999374, 0.02321292832493782, -0.006363571155816317, -0.007111996412277222, + -0.01478041335940361, 0.011441889218986034, -0.00019053489086218178, 0.03473318740725517, + 0.002758592367172241, -0.011222455650568008, 0.01905936561524868, -0.013087640516459942, + -0.011097065173089504, -0.02379286102950573, -0.03510935977101326, -0.01061901357024908, + -0.02470194175839424, 0.007096322253346443, 0.0031680711545050144, -0.018416740000247955, + 0.009372944943606853, 0.006453695707023144, -0.016457511112093925, 0.020375967025756836, + -0.016692619770765305, 0.010164473205804825, -0.0020571888890117407, -0.036081135272979736, + -0.005446652881801128, 0.0169904213398695, 0.012311786413192749, 0.009153511375188828, + 0.00748424930498004, 0.023056190460920334, -0.0031621933449059725, -0.02874578721821308, + -0.005963888950645924, 0.03197459504008293, 0.02308753877878189, -0.02727244794368744, + -0.0068494598381221294, 0.01502335723489523, -0.009631562978029251, 0.011159760877490044, + 0.007832991890609264, -0.029043590649962425, 0.026958972215652466, -0.0067044771276414394, + 0.018683195114135742, -0.014145622961223125, 0.023134559392929077, 0.02909061126410961, + -0.055704761296510696, -0.009905855171382427, 0.00894191488623619, -0.017868155613541603, + -0.03730369359254837, -0.007660579867660999, 0.005920785944908857, 0.0436672642827034, + 0.010360395535826683, 0.0009291637106798589, -0.006943502463400364, -0.009341597557067871, + -0.0017789786215871572, 0.028479332104325294, -0.024670593440532684, -0.01431803498417139, + -0.013087640516459942, 0.0007445064838975668, -0.0015713005559518933, 0.007977974601089954, + 0.015305486507713795, 0.004036008846014738, -0.0348585769534111, 0.032382115721702576, + -0.003963517490774393, 0.021786611527204514, 0.03266424313187599, 0.015407365746796131, + 0.03235076740384102, 0.014553142711520195, -0.011535932309925556, 0.007300082128494978, + -0.029529478400945663, -0.029278697445988655, -0.020485684275627136, 0.0014743187930434942, + -0.005274240858852863, -0.0046433694660663605, 0.01695907488465309, 0.005626901518553495, + -0.011465400457382202, -0.010791425593197346, -0.003389463759958744, -0.056770578026771545, + -0.010109614580869675, 0.008510884828865528, -0.001361663220450282, -0.009890181012451649, + -0.05025026947259903, 0.006355734542012215, 0.02206873893737793, -0.001770162140019238, + -0.00230992934666574, 0.030093736946582794, 0.02288377843797207, 0.024686267599463463, + 0.010493623092770576, -0.028150182217359543, -0.012672284618020058, 0.00894975196570158, + 0.0040595196187496185, 0.01195128820836544, 0.023479383438825607, -0.015908928588032722, + -0.013839984312653542, -0.011144086718559265, 0.048776932060718536, -0.011778876185417175, + 0.029294371604919434, -0.025564001873135567, 0.025830456987023354, -0.0006093197735026479, + -0.013487323187291622, -0.0030309250578284264, -0.02401229366660118, -0.016426164656877518, + -0.032632894814014435, 0.010611176490783691, -0.02669251710176468, -0.012170721776783466, + 0.010689545422792435, 0.0207678135484457, 0.012225580401718616, 0.009286738932132721, + -0.023385340347886086, 0.04031306877732277, -0.02264867164194584, -0.020611073821783066, + -0.003530528163537383, -0.008534395135939121, -0.005125339608639479, -0.00040066204383037984, + -0.008354146964848042, 0.0063008759170770645, 0.0017525290604680777, -0.0035697126295417547, + 0.022209804505109787, 0.0247332900762558, -0.03561092168092728, 0.03567361459136009, + 0.03244480863213539, 0.014835271053016186, 0.015454387292265892, 0.02970189042389393, + 0.008573579601943493, 0.019247451797127724, -0.014741228893399239, 0.011010859161615372, + 0.04943523183465004, 0.01566598378121853, -0.008424678817391396, 0.005670004524290562, + 0.0008708766545169055, -0.006434103474020958, 0.006179403979331255, -0.020046817138791084, + -0.00035413040313869715, 0.063698410987854, -0.04031306877732277, 0.023730164393782616, + -0.038651641458272934, -0.02565804496407509, 0.04658259451389313, 0.005474081728607416, + -0.017821134999394417, -0.04159832000732422, 0.037617169320583344, 0.024090662598609924, + 0.004682553932070732, -0.01896532252430916, -0.029419761151075363, -0.011097065173089504, + 0.009521846659481525, -0.018918301910161972, -0.01896532252430916, -0.0402190238237381, + 0.0034952620044350624, 0.013079803436994553, 0.03153572604060173, -0.011465400457382202, + -0.010407417081296444, -0.014600164256989956, -0.029576500877738, 0.022225478664040565, + 0.05266403779387474, 0.0015115441055968404, 0.000897326273843646, -0.022664345800876617, + ], + index: 70, + }, + { + title: "Tablets of Bah\u00e1\u2019u\u2019ll\u00e1h Revealed After the Kit\u00e1b-i-Aqdas", + text: "The Tablets of Bah\u00e1\u2019u\u2019ll\u00e1h Revealed After the Kit\u00e1b-i-Aqdas are selected tablets written by Bah\u00e1'u'll\u00e1h, the founder of the Bah\u00e1'\u00ed Faith, and published together as of 1978.As his mission drew to a close after his writing of the Kit\u00e1b-i-Aqdas in 1873, he continued to write unnumbered tablets and letters, doing so until the last days of his life in 1892.Six of the tablets in this volume were translated into English and published in 1917.", + vector: [ + 0.03467293083667755, -0.0244834516197443, -0.007326378487050533, 0.036854337900877, + 0.01987665891647339, -0.039408884942531586, -0.016231408342719078, -0.009436030872166157, + -0.023134421557188034, 0.059873949736356735, 0.0033653981518000364, -0.006041930057108402, + 0.009371450170874596, -0.0044919815845787525, -0.023823287338018417, -0.0006215940811671317, + 0.022215932607650757, 0.0018019949784502387, -0.030912868678569794, -0.029621245339512825, + -0.05083258077502251, 0.008661056868731976, 0.020393308252096176, 0.0008077134843915701, + 0.019101684913039207, 0.0018145523499697447, -0.04735954850912094, -0.04049959033727646, + 0.030912868678569794, 0.07462716847658157, 0.014853676781058311, 0.00028074884903617203, + -0.011380642652511597, 0.010089019313454628, -0.030941572040319443, 0.0011615647235885262, + 0.014071526005864143, 0.030884165316820145, -0.021369202062487602, -0.049225226044654846, + -0.0005188920185901225, 0.03504606708884239, -7.977348286658525e-5, 0.018082736060023308, + -0.046326249837875366, -0.05137793347239494, 0.006903012748807669, -0.02848748490214348, + -0.011201250366866589, 0.021742338314652443, -0.0656144991517067, -0.08237691223621368, + -0.024282531812787056, 0.03478774055838585, 0.026478292420506477, -0.0010359900770708919, + 0.015700407326221466, 0.05037333816289902, 0.011847062967717648, -0.010454978793859482, + 0.010490857064723969, -0.05255474895238876, 0.04380040615797043, 0.00907724630087614, + -0.035304389894008636, 0.0010700746206566691, -0.009285341948270798, 0.02370847761631012, + 0.018355412408709526, -0.04222175478935242, 0.02494269609451294, 0.015226812101900578, + -0.0025294304359704256, 0.06377752125263214, -0.005353064276278019, 0.04724473878741264, + -0.009995735250413418, 0.05241123214364052, 0.02432558685541153, -0.0025312243960797787, + -0.027210213243961334, 0.015757814049720764, 0.024583911523222923, -0.020852552726864815, + -0.041131049394607544, -0.013497470878064632, -0.05238252878189087, -0.030080487951636314, + 0.0034245976712554693, -0.020235443487763405, 0.0014109198236837983, 0.051664963364601135, + -0.061022061854600906, -0.0025832480750977993, 0.018541980534791946, 0.030912868678569794, + 0.008417082950472832, 0.005044509656727314, 0.051664963364601135, -0.05427691340446472, + 0.009414504282176495, -0.010318640619516373, -0.002328511094674468, -0.036222878843545914, + 0.04133196920156479, 0.003953804727643728, 0.048880793154239655, -0.029678650200366974, + -0.031745247542858124, -0.008000893518328667, -0.0015696820337325335, 0.013511822558939457, + -0.011882941238582134, 0.010160775855183601, -0.012112563475966454, -0.028630999848246574, + -0.011351940222084522, -0.0346442274749279, -0.03438590094447136, -0.012399590574204922, + 0.0025688966270536184, -0.017264708876609802, 0.07169948518276215, -0.030740652233362198, + -0.004194190260022879, -0.01917344145476818, -0.009967031888663769, -0.020608579739928246, + 0.03154432773590088, -0.01611659862101078, -0.05528150871396065, -0.025114912539720535, + 0.0038210544735193253, -0.00021841004490852356, -0.02167058177292347, 0.004517096094787121, + -0.02512926422059536, 0.0076851630583405495, 0.029004136100411415, 0.0044561028480529785, + -0.02212982438504696, -0.02568896673619747, 0.02268952876329422, 0.0057836053892970085, + 0.0028864210471510887, 0.03145822137594223, 0.007064465899020433, 0.010067491792142391, + 0.040298670530319214, 0.0028056944720447063, 0.01938871294260025, 0.031257301568984985, + -0.025732021778821945, 0.029032837599515915, -0.041073646396398544, 0.06636077165603638, + 0.008087001740932465, 0.005683145951479673, -0.0007929136627353728, 0.0035107058938592672, + -0.02234509587287903, -0.0014997189864516258, 0.020938660949468613, -0.009270990267395973, + 0.03550530970096588, 0.054104696959257126, 0.03318038582801819, 0.017092490568757057, + -0.023636719211935997, 0.036567311733961105, 0.05398988351225853, -0.004997867625206709, + 0.0012064126785844564, 0.01328937616199255, 0.0388922356069088, 0.011940347030758858, + 0.03186006098985672, -0.0009615423623472452, -0.036997854709625244, 0.004430987872183323, + -0.018599385395646095, -0.00484000239521265, 0.03142951801419258, -0.005948646459728479, + 0.02274693362414837, 0.010376046411693096, 0.018685493618249893, 0.0408727265894413, + -0.026004698127508163, 0.016044840216636658, -0.04646976292133331, 0.01692027412354946, + 0.034529417753219604, 0.030912868678569794, 0.026808375492691994, 0.01858503557741642, + -0.025832481682300568, -0.032950762659311295, -0.056659240275621414, -0.010519560426473618, + 0.0449485182762146, -0.014042823575437069, 0.0019338482525199652, 0.013210443779826164, + -0.006493998691439629, 0.0698051005601883, 0.038576506078243256, -0.03386925160884857, + -0.00716133788228035, 0.043599486351013184, -0.0010889108525589108, -0.014767568558454514, + 0.002502521499991417, 0.004395109601318836, 0.02799953892827034, 0.013411362655460835, + -0.04911041632294655, -0.036165472120046616, 0.03760061040520668, -0.04374299943447113, + 0.013777323067188263, -0.0654996931552887, -0.02590423822402954, -0.014315499924123287, + 0.04377170279622078, 0.01740822196006775, 0.0286740530282259, 0.011516980826854706, + -0.001519452198408544, 0.02944902889430523, 0.040269967168569565, -0.036997854709625244, + 0.00551092904061079, 0.038260772824287415, -0.003304404905065894, 0.000582127773668617, + 0.01638927310705185, 0.016001787036657333, 0.033323898911476135, -0.003388719167560339, + -0.013963891193270683, 0.027525942772626877, -0.02488528937101364, 0.039782021194696426, + 0.015183757990598679, 0.05964432656764984, -0.011581562459468842, -0.013490295968949795, + 0.019345657899975777, -0.02642088755965233, 0.06498304009437561, 0.010555438697338104, + 0.02185714989900589, 0.015829570591449738, -0.016690652817487717, 0.061596114188432693, + -0.01657584123313427, 0.03708396106958389, 0.005184435285627842, -0.016432328149676323, + 0.009694356471300125, 0.03719877079129219, 0.009845045395195484, -0.051693663001060486, + -0.07307721674442291, 0.057434216141700745, -0.014982839114964008, -0.08008068799972534, + 0.024928344413638115, -0.004377170465886593, 0.04222175478935242, -0.024153370410203934, + -0.03932277485728264, 0.0022477845195680857, -0.06727926433086395, 0.034529417753219604, + -0.012119739316403866, 0.0698051005601883, -0.014258094131946564, 0.03630898520350456, + -0.03886353224515915, -0.09328395873308182, -0.043570782989263535, -0.01917344145476818, + 0.00721515528857708, -0.01617400348186493, -0.029678650200366974, 0.015628650784492493, + -0.02349320612847805, -0.038232073187828064, -0.021139580756425858, -0.030166596174240112, + -0.0028092823922634125, -0.0011965461308136582, -0.011330412700772285, -0.043599486351013184, + 0.012356536462903023, 0.0052526043727993965, -0.0025294304359704256, -0.02268952876329422, + 0.005159320309758186, 0.028530539944767952, -0.0510047972202301, -0.014114580117166042, + -0.0009714089101180434, -0.03992553427815437, 0.035390499979257584, 0.04420224577188492, + -0.015155055560171604, -0.03223319724202156, -0.040183860808610916, 0.01895816996693611, + -0.041016239672899246, -0.05367415398359299, 0.04457538202404976, -0.011538508348166943, + 0.0009391183266416192, -0.04931133612990379, 0.006881485693156719, 0.004305413458496332, + 0.035734932869672775, -0.025660265237092972, -0.018628088757395744, 0.026994941756129265, + 0.029118945822119713, -0.007527297828346491, 0.05846751481294632, -0.024339936673641205, + -0.0017840557266026735, -0.03645250201225281, -0.007412486709654331, -0.028889324516057968, + 0.010261235758662224, 0.04959836229681969, 0.00474671833217144, -0.032089680433273315, + -0.007168513257056475, 0.012421118095517159, -0.00015887424524407834, -0.03556271642446518, + -0.032922063022851944, -0.009407328441739082, 0.0011911643669009209, -0.03398406505584717, + -0.030338814482092857, -0.03341000899672508, 0.005489401984959841, -0.025660265237092972, + 0.02642088755965233, 0.011804008856415749, 0.0006722723483107984, -0.024655668064951897, + -0.030166596174240112, 0.008330974727869034, 0.0612516812980175, 0.016647599637508392, + 0.015341623686254025, -0.0408727265894413, 0.0550231859087944, -0.029592541977763176, + 0.029965678229928017, -0.01371991727501154, -0.02281869202852249, 0.013145862147212029, + 0.01328937616199255, -0.04750306159257889, 0.05177977308630943, 0.01043345220386982, + -0.047675278037786484, 0.017465626820921898, -0.03231930360198021, 0.07703819870948792, + -0.0014180955477058887, -0.010031613521277905, 0.08111398667097092, -0.0012082066386938095, + -0.022990908473730087, -0.032864656299352646, 0.014781919308006763, -0.007943487726151943, + -0.007329966407269239, 0.04529295116662979, -0.0029240932781249285, 0.05958692356944084, + 0.02571767009794712, -0.0193600095808506, -0.04971317574381828, -0.03803115338087082, + 0.006246437318623066, -0.032864656299352646, -0.009184882044792175, 0.013224795460700989, + 0.03467293083667755, 0.0153272720053792, -0.025760723277926445, 0.014695811085402966, + 0.03312298282980919, 0.008955259807407856, -0.0038067030254751444, -0.009708707220852375, + 0.06165352091193199, 0.027698159217834473, 0.0030460800044238567, 0.041102346032857895, + -0.00021134647249709815, 0.007505770772695541, -0.024497803300619125, 0.03590714931488037, + 0.006745147984474897, -0.028013890609145164, 0.005536044016480446, 0.026349131017923355, + -0.003582462901249528, 0.018054034560918808, -0.010533911176025867, -0.034988660365343094, + 0.04058569669723511, 0.04578089714050293, -0.01186858955770731, -0.03429979458451271, + -0.014049999415874481, 0.03105638176202774, -0.026564400643110275, -0.02985086664557457, + -0.0024504978209733963, -0.0347590371966362, 0.037457097321748734, -0.035821039229631424, + -0.03969591110944748, -0.006196207366883755, 0.02901848591864109, 0.0471012219786644, + 0.00042964439489878714, -0.004369994625449181, 0.027468537911772728, -0.06285903602838516, + -0.08473053574562073, -0.0061280382797122, 0.030137894675135612, 0.024454748257994652, + 0.02312006987631321, -0.022086771205067635, -0.03407017141580582, 0.014444662258028984, + 0.01063437107950449, 0.018010979518294334, -0.03800245001912117, 0.005780017469078302, + 0.019647037610411644, -0.018757252022624016, -0.012327834032475948, -0.04626884311437607, + -0.011136669665575027, 0.005263368133455515, 0.0899544358253479, -0.04173380881547928, + -0.031687844544649124, -0.04690030589699745, -0.009687180630862713, 0.0007704896270297468, + 0.0035107058938592672, -0.0020540410187095404, 0.0022208758164197206, -0.03309427946805954, + 0.026133859530091286, -0.04655586928129196, 0.031659141182899475, -0.042307864874601364, + -0.0023482441902160645, 0.009902451187372208, -0.029004136100411415, -0.0043233525939285755, + -0.0430254302918911, -0.005302834324538708, 0.022086771205067635, 0.0011310679838061333, + -0.04417354241013527, -0.02630607597529888, -0.03708396106958389, 0.007943487726151943, + 0.036108069121837616, 0.023421449586749077, -0.025488046929240227, 0.007764095440506935, + -0.03805985674262047, -0.010376046411693096, -0.027669457718729973, -0.03226189687848091, + -0.011882941238582134, 0.04543646425008774, -0.006052693817764521, 0.007656460162252188, + 0.016676301136612892, 0.01938871294260025, 0.029133297502994537, -3.0748949939152226e-5, + -0.004646258894354105, -0.05387507379055023, -0.04250878095626831, -0.032032277435064316, + -0.008589300327003002, 0.024870937690138817, -0.0020970951300114393, 0.01976184733211994, + 0.01670500449836254, 0.033266495913267136, -0.04646976292133331, -0.027583349496126175, + -0.005751315038651228, 0.020264146849513054, 0.045924410223960876, -0.027640754356980324, + -0.07525862753391266, 0.025430642068386078, 0.010239708237349987, -0.03280724957585335, + 0.010167951695621014, 0.004097318276762962, 0.005815896205604076, -0.05588426813483238, + -0.018283655866980553, -0.004926110617816448, -0.021096525713801384, -0.00016291056817863137, + 0.015025893226265907, 0.00510191498324275, 0.004111669957637787, 0.022244635969400406, + -0.0015983846969902515, 0.04239397123456001, 0.013231970369815826, -0.012169968336820602, + -0.018972521647810936, -0.016044840216636658, -0.004814887419342995, 0.008409908041357994, + 0.036165472120046616, -0.027124105021357536, 0.016590192914009094, 0.03765801712870598, + 0.01938871294260025, -0.028085647150874138, 0.00628231605514884, 0.005726200062781572, + -0.003306198865175247, 0.014114580117166042, 0.027296321466565132, 0.018082736060023308, + -0.026593104004859924, -0.049741875380277634, 0.051693663001060486, 0.03401276469230652, + -0.029334217309951782, 0.013856255449354649, -0.020709039643406868, -0.010268411599099636, + 0.031171193346381187, 0.0017876435304060578, -0.03461552411317825, -0.00489381980150938, + 0.0018109645461663604, 0.02293350175023079, 0.08013809472322464, 0.06836996227502823, + -0.013691214844584465, -0.03194616734981537, 0.004466866608709097, 0.028473135083913803, + -0.014114580117166042, 0.001538288313895464, 0.0008767794934101403, 0.0010772503446787596, + -0.012736848555505276, 0.02111087739467621, -0.020335903391242027, -0.006511937826871872, + -0.018111439421772957, -0.02620561607182026, -0.009744585491716862, -0.013109983876347542, + 0.026492644101381302, 0.005399705842137337, 0.03909315541386604, -0.011976225301623344, + 0.021168282255530357, 0.020407659932971, 0.02019238844513893, 0.0010180509416386485, + -0.03341000899672508, 0.008998313918709755, -0.011459575966000557, 0.03025270625948906, + 0.005991700571030378, -0.0016234996728599072, -0.018326710909605026, -0.012019279412925243, + -0.003482003230601549, -0.01305975392460823, 0.007634933106601238, 0.011036209762096405, + -0.038232073187828064, -0.03269243985414505, 0.02426818013191223, -0.017149897292256355, + 0.00201816251501441, 0.005876889452338219, 0.030539732426404953, -0.02429688349366188, + 0.024067262187600136, -0.004517096094787121, 0.009421680122613907, 0.014595352113246918, + -0.01105056144297123, -0.028013890609145164, 8.08386248536408e-5, 0.00730843935161829, + 0.03717007115483284, -0.017365166917443275, -0.007505770772695541, 0.014265269972383976, + -0.02376588247716427, -0.05022982507944107, -0.0234645027667284, -0.03444330766797066, + 0.020694687962532043, 0.00962977483868599, 0.0122560765594244, -0.004452514927834272, + 0.003996858838945627, 0.008618002757430077, -0.009192057885229588, -0.03671082481741905, + 0.014839325100183487, 0.013389836065471172, 0.013267849572002888, -0.03544790297746658, + 0.015384677797555923, 0.006465295795351267, -0.020307200029492378, -0.03613676875829697, + -0.01162461657077074, 0.0327785462141037, 0.0019266725284978747, 0.03992553427815437, + -0.024426044896245003, -0.008897854946553707, 0.051636260002851486, 0.014602527022361755, + -0.0031931817065924406, -0.01593003049492836, -0.0065370528027415276, -0.0012324246345087886, + 0.04690030589699745, 0.014057175256311893, -0.015384677797555923, -0.0009624392841942608, + -0.024024207144975662, -0.010828115046024323, 0.00912030041217804, -0.00024285222752951086, + -0.03966720774769783, -0.014286797493696213, -0.02861664816737175, 0.00014541982091031969, + 0.004621143918484449, -0.029592541977763176, -0.021598823368549347, -0.015355974435806274, + 0.009522139094769955, -0.029535137116909027, -0.01082093920558691, -0.02172798663377762, + -0.0017526621231809258, 0.023938098922371864, -0.01134476438164711, -0.02432558685541153, + -0.005374591331928968, -0.04532165080308914, -0.04730214178562164, -0.017881818115711212, + 0.02413901872932911, -0.08042512089014053, 0.011394994333386421, -0.0027608464006334543, + -0.00321470876224339, 0.01338266022503376, 8.542153409507591e-6, -0.013734268955886364, + 0.0046247318387031555, -0.0038138788659125566, 0.029965678229928017, 0.015542542561888695, + -0.026435239240527153, -0.0014369317796081305, 0.002829015487805009, 0.052152909338474274, + 0.013669687323272228, 0.016059191897511482, -0.03148692473769188, 0.01673370786011219, + 0.018714196979999542, 0.0076851630583405495, -0.02411031536757946, 0.03028140775859356, + -0.010318640619516373, -0.014473364688456059, 0.016130948439240456, 0.01214844174683094, + -0.008036771789193153, 0.0021473250817507505, -0.034529417753219604, -0.014681460335850716, + -0.016217056661844254, 0.028659703209996223, 0.006705681327730417, -0.030798057094216347, + -0.021196985617280006, 0.015786515548825264, -0.03421368449926376, -0.00797936599701643, + 0.017680898308753967, 0.014695811085402966, -0.07548824697732925, -0.012772726826369762, + 0.021168282255530357, 0.015068947337567806, -0.01598743535578251, 0.021943258121609688, + 0.02089560590684414, 0.010103370063006878, 0.015255515463650227, 0.03071194887161255, + -0.01781005971133709, -0.0007669017650187016, -0.04078661650419235, 0.021527066826820374, + -0.021785391494631767, 0.001253951690159738, -0.036538608372211456, -0.06601633876562119, + 0.011581562459468842, 0.03274984657764435, -0.01796792633831501, 0.013461592607200146, + 0.02716715820133686, 0.02386634238064289, 0.03194616734981537, 0.002961765741929412, + 0.041418079286813736, 0.029965678229928017, -0.0010646928567439318, -0.015542542561888695, + 0.023636719211935997, -0.01799662783741951, 0.0137988505885005, 0.004438163712620735, + -0.01874290034174919, 0.027267618104815483, -0.03851909935474396, 0.012937767431139946, + -0.026219967752695084, 0.073593869805336, -0.005266955588012934, -0.005496577825397253, + -0.0367395281791687, -0.014997189864516258, -0.014136107638478279, 0.03180265426635742, + -0.029965678229928017, -0.007534473668783903, -0.015298569574952126, -0.001488955458626151, + -0.009651301428675652, 0.01381320133805275, 0.038949642330408096, -0.01555689424276352, + 0.0035412025172263384, -0.028415728360414505, -0.03429979458451271, 0.010103370063006878, + 0.05364545062184334, 0.005256192293018103, -0.01157438661903143, 0.04004034399986267, + -0.028358323499560356, -0.0193600095808506, -0.0026765321381390095, -0.022388150915503502, + 0.006942479405552149, 0.009758937172591686, -0.013081281445920467, 0.0008175800903700292, + 0.012227374128997326, -0.011710724793374538, 0.0326637364923954, -0.04374299943447113, + 0.006996296811848879, 0.013892133720219135, 0.004682137165218592, -0.01781005971133709, + -0.004194190260022879, -0.02787037566304207, 0.04813452437520027, 0.0046319072134792805, + -0.029994379729032516, -0.026047751307487488, -0.03869131579995155, -0.026506995782256126, + 0.01673370786011219, 0.033323898911476135, -0.019934063777327538, 0.02416772022843361, + 0.008079825900495052, 0.017637843266129494, 0.011136669665575027, 0.018541980534791946, + 0.011273007839918137, 0.004513508640229702, 0.015413380227982998, -0.013734268955886364, + -0.026047751307487488, -0.0018154493300244212, -0.002769815968349576, 0.011172547936439514, + -0.07169948518276215, -0.010842466726899147, -0.006702093873172998, -0.011925995349884033, + -0.0051557328552007675, 0.011208426207304, 0.006214146967977285, -0.0017060200916603208, + 0.012155617587268353, -0.02454085648059845, -0.003304404905065894, 0.010899871587753296, + 0.027238916605710983, -0.0035429964773356915, 0.06343308836221695, 0.0327785462141037, + 0.024842236191034317, 0.00019026787776965648, -0.022416852414608, -0.016748057678341866, + -0.02188585139811039, -0.013619458302855492, -0.0040506767109036446, -0.007362257223576307, + -0.017236005514860153, 0.0004964679828844965, -0.006084984168410301, -0.004710840061306953, + 0.012794253416359425, 0.03137211129069328, 0.007498594932258129, 0.032520223408937454, + -0.003482003230601549, 0.02797083556652069, 0.010627195239067078, -0.012607686221599579, + -0.008201812393963337, -0.02673661708831787, 0.003004819853231311, -0.009601072408258915, + 0.024626964703202248, 0.014071526005864143, 0.019804902374744415, -0.03142951801419258, + -0.02024979516863823, 0.0039681559428572655, -0.0037492974661290646, 0.009751761332154274, + 0.050057608634233475, -0.02848748490214348, 0.031228598207235336, 0.004398697521537542, + -0.006734384223818779, 0.03748580068349838, 0.03613676875829697, -0.030482327565550804, + -0.035333093255758286, -0.028300918638706207, 0.059012867510318756, 0.007972190156579018, + 0.06463860720396042, 0.024454748257994652, -0.009457558393478394, -0.013167389668524265, + 0.007390959654003382, 0.0041475482285022736, 0.0025868359953165054, 0.02633477933704853, + -0.006038342602550983, 0.027310673147439957, 0.022402500733733177, -0.006239261478185654, + 0.02537323720753193, -0.010849641636013985, -0.019403062760829926, -0.01941741444170475, + -0.004872292745858431, 0.011674846522510052, 0.04127456247806549, -0.02663615718483925, + 0.0022190818563103676, -0.034529417753219604, 0.017279058694839478, 0.008811745792627335, + 0.005966585595160723, 0.0224742591381073, -0.0012279398506507277, 0.022675177082419395, + 0.004240832291543484, -0.06245719641447067, -0.01555689424276352, -0.032864656299352646, + 0.010117721743881702, -0.04816322401165962, 0.02062293142080307, 0.007032175548374653, + -0.009615423157811165, 0.03636639192700386, -0.012198671698570251, -0.02475612796843052, + -0.019116036593914032, 0.02537323720753193, 0.010770709253847599, -0.0008296890300698578, + 0.034529417753219604, -0.01898687332868576, -0.021900203078985214, -0.028229160234332085, + -0.006246437318623066, 0.0005368312704376876, -0.02735372632741928, -0.029649946838617325, + -0.026133859530091286, -0.025861183181405067, -0.030740652233362198, -0.03401276469230652, + -2.086836138914805e-5, 0.030884165316820145, 0.01115819625556469, -0.016618896275758743, + -0.012973645702004433, 0.01461687870323658, -0.026478292420506477, 0.01512635312974453, + -0.029319865629076958, 0.0234645027667284, -0.014487716369330883, 0.02475612796843052, + -0.013597930781543255, -0.01938871294260025, 0.007103932090103626, -0.01960398256778717, + -0.004552974831312895, -0.00048032269114628434, -0.04159029573202133, -0.04044218361377716, + -0.05430561676621437, -0.022560367360711098, 0.03312298282980919, 0.007520121987909079, + -0.02510056085884571, 0.004208541475236416, -0.006849195342510939, -0.006569343619048595, + -0.03757190704345703, 0.005259780213236809, -0.01969009079039097, -0.03648120164871216, + -0.028272215276956558, 0.00917053036391735, -0.01638927310705185, -0.005482226610183716, + -0.033754441887140274, 0.016776761040091515, 0.0012907270574942231, 0.0076636360026896, + 0.022330744192004204, 0.025043154135346413, -0.02392374724149704, 0.012464172206819057, + 0.02488528937101364, 0.07256057113409042, -0.03524698317050934, -0.0027769915759563446, + -0.026994941756129265, 0.0194461178034544, 0.019058629870414734, -0.01750868186354637, + 0.03223319724202156, 0.038605205714702606, 0.007613406050950289, 0.046354953199625015, + 0.03541920334100723, -0.02207241952419281, -0.042709700763225555, 0.008739989250898361, + -0.0007866349187679589, 0.011882941238582134, -0.010096194222569466, 0.011387818492949009, + -0.016719356179237366, -0.02059422805905342, -0.035792335867881775, 0.07020694017410278, + -0.024009855464100838, -0.006723620928823948, 0.02333534136414528, 0.005091151222586632, + 0.003803115338087082, 0.0023213354870676994, 0.03711266443133354, -0.001791231450624764, + 0.022086771205067635, 0.01925954967737198, -0.055798158049583435, 0.01793922297656536, + -0.007728217169642448, 0.016346219927072525, 0.04916782304644585, -0.0029743232298642397, + -0.014437486417591572, 0.017982276156544685, 0.0002026010915869847, -0.04911041632294655, + 0.016805464401841164, -0.0245695598423481, 0.015198109671473503, 0.003306198865175247, + -0.0022011427208781242, -0.005736963357776403, -0.05752032250165939, -0.015757814049720764, + 0.0049332864582538605, -0.020048875361680984, -0.010490857064723969, 0.0173508170992136, + -0.03309427946805954, -0.003198563354089856, -0.020981714129447937, 0.04305413365364075, + -0.007007060572504997, 0.002269311575219035, -0.01228477992117405, 0.03145822137594223, + 0.006648276001214981, -0.027124105021357536, -0.010282762348651886, 0.005360239651054144, + 0.019704442471265793, 0.022402500733733177, 0.024827884510159492, -0.011904467828571796, + -0.032979466021060944, 0.004549386911094189, -0.016661949455738068, 0.024368640035390854, + -0.0030030258931219578, -0.01651843637228012, 0.02365107089281082, -0.03645250201225281, + 0.022431204095482826, -0.0024989338126033545, 0.03886353224515915, -0.03352481871843338, + 0.02373717911541462, -0.022058067843317986, -0.008625178597867489, 0.012105387635529041, + -0.020938660949468613, -0.012629212811589241, 0.028257863596081734, 0.013971067033708096, + -0.007591878995299339, -0.011890117079019547, 0.014250918291509151, -0.015269866213202477, + 0.015355974435806274, -0.007060877978801727, 0.013131511397659779, -0.00536382757127285, + -0.027267618104815483, 0.009737410582602024, 0.018298007547855377, -0.01237806398421526, + -0.013188916258513927, -0.02550239861011505, 0.0008758825715631247, 0.0052956584841012955, + 0.011222777888178825, -0.0057405512779951096, -0.009758937172591686, -0.015915678814053535, + -0.018441520631313324, 0.025975994765758514, -0.003404864575713873, -0.004617555998265743, + -0.020909957587718964, -0.0015212460421025753, 0.002507903380319476, 0.0015230400022119284, + -0.018785953521728516, 0.013562052510678768, -0.022029366344213486, -0.0052884831093251705, + -0.03484514728188515, 0.043197646737098694, 0.026492644101381302, 0.004875880666077137, + 0.017853114753961563, 0.006397126708179712, -0.011646143160760403, -0.013691214844584465, + -0.02121133729815483, -0.026937536895275116, 0.026033399626612663, -0.01219149585813284, + 0.011567210778594017, 0.008316623978316784, -0.0024235891178250313, -0.012248901650309563, + -0.012069509364664555, 0.03728488087654114, -0.01086399331688881, -0.0003946629003621638, + 0.023722827434539795, -0.0012333216145634651, -0.024454748257994652, 0.029592541977763176, + 0.009845045395195484, 0.01703508570790291, 0.015786515548825264, 0.028889324516057968, + -0.012435468845069408, 0.008539070375263691, 0.007857379503548145, -0.013267849572002888, + -0.027066700160503387, 0.0022639299277216196, 0.0030604314524680376, 0.017020734027028084, + 0.022302042692899704, -0.0086754085496068, 0.008646705187857151, -0.013210443779826164, + 0.011165372096002102, -0.009019841440021992, -0.004334116354584694, 0.00020417077757883817, + -0.007426838390529156, 0.015499488450586796, 0.005327949300408363, -0.028329620137810707, + 0.034931253641843796, -0.0013230176409706473, 0.024598263204097748, 0.016633247956633568, + 0.014609702862799168, 0.022488608956336975, -0.010519560426473618, -0.004075791221112013, + -0.01143804844468832, 0.02663615718483925, 0.026033399626612663, -0.023206178098917007, + 0.011122317984700203, 0.005058860871940851, 0.0031931817065924406, 0.004779009148478508, + -0.01509764976799488, -0.015671705827116966, 0.0023231294471770525, 0.007150574121624231, + 0.01670500449836254, 0.022158527746796608, -0.02220158278942108, -0.03200357407331467, + -0.011488278396427631, -0.0020953011699020863, 0.01361228246241808, -0.028358323499560356, + -0.013145862147212029, 0.03257763013243675, 0.0409875363111496, -0.04572349041700363, + 0.0153272720053792, 0.03105638176202774, 0.02898978441953659, -0.029736055061221123, + 0.004061440005898476, 0.019474821165204048, -0.019647037610411644, -0.010555438697338104, + 0.0027339374646544456, -0.01700638234615326, 0.006203383207321167, 0.0366247184574604, + 0.017264708876609802, 0.02703799679875374, -0.00424442021176219, -0.017881818115711212, + -0.0204937681555748, -0.025201020762324333, -0.0010637958766892552, 0.039035748690366745, + -0.004936873912811279, -0.04787619784474373, 0.01864244043827057, 0.009751761332154274, + -0.00878304336220026, -0.013038227334618568, 0.003702655667439103, -0.002579660154879093, + 0.004732367116957903, -0.014049999415874481, 0.00917053036391735, 0.05594167113304138, + 0.025143614038825035, -0.021340498700737953, -0.022416852414608, -0.0055611589923501015, + -0.017637843266129494, 0.014638406224548817, 0.04041348025202751, -0.03398406505584717, + 0.0030263469088822603, 0.006698505952954292, 0.015729110687971115, -0.007986541837453842, + 0.019991470500826836, 0.019532226026058197, 0.010691776871681213, 0.002857718151062727, + -0.01713554561138153, -0.011610264889895916, -0.015112001448869705, -0.004728779196739197, + 0.0069353035651147366, 0.004352055490016937, 0.013684039004147053, -0.0450633279979229, + -0.002059422666206956, 0.022560367360711098, 0.03461552411317825, -0.0008642220636829734, + 0.010835290886461735, 0.011136669665575027, -0.005442760419100523, -0.024626964703202248, + 0.050459444522857666, 0.014659932814538479, 0.0032487933058291674, 0.029133297502994537, + -0.021814094856381416, -0.011014683172106743, 0.016030490398406982, -0.0022154939360916615, + -0.027468537911772728, -0.014136107638478279, -0.023349693045020103, 0.03794504329562187, + -0.04621143639087677, -0.004140372853726149, -0.009809167124330997, 0.04448927193880081, + -0.005019394680857658, 0.0008117498364299536, 0.04288191720843315, 0.019962767139077187, + 0.02821481041610241, 0.02373717911541462, 0.010067491792142391, -0.022976556792855263, + -0.036567311733961105, 0.0020091929472982883, -0.028788864612579346, -0.05450653284788132, + 0.02534453384578228, 0.004179839044809341, 0.01551384013146162, -0.007577527780085802, + 0.0011149226920679212, -0.017666546627879143, 0.0018405643058940768, -0.006633924786001444, + -0.013217619620263577, 0.019804902374744415, -0.006684154272079468, -0.0007799076847732067, + 0.0034604761749505997, 0.00754882488399744, 0.00291691767051816, -0.004309001378715038, + -0.035763636231422424, 0.023478854447603226, 0.04181991517543793, 0.005170084070414305, + 0.00044960176455788314, 0.03731358423829079, 0.012930591590702534, -0.002567102899774909, + -0.03145822137594223, -0.013468768447637558, -0.0014450043672695756, 0.02990827150642872, + -0.008847624994814396, 0.03639509528875351, -0.03361092880368233, 0.015442082658410072, + 0.01966138742864132, -0.008574948646128178, 0.004779009148478508, 0.015413380227982998, + 0.0327211432158947, -0.04032737389206886, -0.0346442274749279, -0.02151271514594555, + 0.011516980826854706, 0.028788864612579346, 0.013734268955886364, 0.0015051007503643632, + -9.490970114711672e-5, 0.006723620928823948, 0.023019609972834587, 0.024038558825850487, + -0.013605106621980667, -0.005345888435840607, -0.005134205799549818, -0.00527054350823164, + -0.011359116062521935, -0.009235111996531487, -0.027482889592647552, 0.004481217823922634, + 0.0005072315107099712, 0.02692318521440029, 0.034529417753219604, -0.015671705827116966, + -0.024210775271058083, 0.008180285803973675, -0.00022625844576396048, 0.00910594966262579, + -0.026191264390945435, -0.017580438405275345, 0.03226189687848091, 0.02947773039340973, + -0.032462816685438156, -0.03191746398806572, -0.016719356179237366, 0.014236567541956902, + -0.026478292420506477, -0.015872623771429062, 0.02716715820133686, 0.018498927354812622, + 0.016202706843614578, -0.006673390977084637, -0.023105718195438385, -0.0013902897480875254, + 0.024411695078015327, -0.0011337589239701629, -0.016030490398406982, -0.02376588247716427, + -0.0037241827230900526, 0.012370888143777847, -0.010792236775159836, -0.04316894710063934, + -0.020536823198199272, 0.006540640722960234, -0.00850319117307663, 0.0510047972202301, + 0.014057175256311893, -0.00921358447521925, -0.02695188857614994, 0.006605221889913082, + 0.019316954538226128, 0.005281307268887758, 0.05878324434161186, -0.01877160184085369, + 0.010670249350368977, 0.012880361638963223, 0.029649946838617325, 0.007340730167925358, + -0.022833043709397316, -0.03814596310257912, 0.007441189605742693, -0.03714136779308319, + -0.0045816777274012566, -0.018714196979999542, 0.012779902666807175, -0.016504084691405296, + 0.01228477992117405, -0.0183410607278347, 0.016690652817487717, -0.011122317984700203, + 0.02824351191520691, -0.0214553102850914, -0.013684039004147053, 0.008618002757430077, + -0.01182553544640541, 0.005797956604510546, -0.015083298087120056, -0.04609662666916847, + 0.0038856356404721737, 0.027425484731793404, 0.0009758936939761043, 0.0026765321381390095, + 0.05884065106511116, 0.007182864937931299, 0.003986095078289509, -0.024827884510159492, + 0.008000893518328667, 0.012248901650309563, -0.014064351096749306, 0.022459907457232475, + 0.008790219202637672, 0.031659141182899475, -0.028573594987392426, 0.03843298926949501, + -0.024985749274492264, 0.01697768084704876, 0.02080949768424034, 0.0015876211691647768, + -0.026248671114444733, 0.02574637345969677, -0.008266394026577473, -0.01571475900709629, + -0.028114350512623787, -0.0014019502559676766, 0.028143052011728287, 0.006619573105126619, + 0.023450152948498726, -0.009809167124330997, 0.00495481351390481, 0.015671705827116966, + 0.0031070734839886427, -0.021598823368549347, 0.009134652093052864, 0.004441751632839441, + 0.0049440497532486916, 0.020579876378178596, 0.010232532396912575, -0.016504084691405296, + 0.006813316605985165, -0.0173795185983181, 0.023421449586749077, -0.00014990463387221098, + -0.015872623771429062, 0.03935147821903229, 0.009220760315656662, 1.8948303477372974e-5, + -0.025416290387511253, 0.01590132713317871, 0.03676823154091835, 0.010663074441254139, + 0.017867466434836388, 0.020953012630343437, -0.02673661708831787, -0.0019087332766503096, + 0.036969151347875595, 0.022804340347647667, 0.015815218910574913, -0.005640091840177774, + 0.04738825187087059, 0.02432558685541153, 0.016877220943570137, -0.016475381329655647, + -0.022990908473730087, 0.0005058860988356173, 0.0367395281791687, 0.019331306219100952, + 0.013877782970666885, 0.016016138717532158, 0.01874290034174919, -0.002136561321094632, + -0.02599034644663334, -0.001754455966874957, 0.044833704829216, 0.00272855581715703, + -0.014724514447152615, -0.0025724845472723246, -0.026004698127508163, 0.0003960083413403481, + 0.034931253641843796, 0.034184981137514114, -0.011136669665575027, 0.014767568558454514, + -0.036854337900877, 0.02182844653725624, -0.0020414835307747126, -0.006346897222101688, + -0.014781919308006763, -0.026076454669237137, -0.00394304096698761, 0.0173795185983181, + -0.01772395148873329, -0.004857941530644894, 0.0007686957251280546, 0.025488046929240227, + 0.004029149655252695, -0.02580377832055092, 0.0007328172796405852, 0.012083860114216805, + -0.01304540317505598, -0.0036918921396136284, 0.0025384000036865473, -0.01461687870323658, + 0.02333534136414528, -0.018628088757395744, -0.01697768084704876, 0.01874290034174919, + -0.005012218840420246, -0.004072203766554594, -0.030023083090782166, 0.0407579131424427, + 0.0044561028480529785, 0.012478522956371307, 0.022086771205067635, 0.006727208383381367, + 0.00377441244199872, 0.0028935966547578573, -0.04115975275635719, -0.015886975452303886, + 0.002873863559216261, 0.012098211795091629, -0.008015245199203491, 0.008008069358766079, + -0.00341921579092741, 0.019460469484329224, -0.006565755698829889, -0.021498365327715874, + -0.025975994765758514, -0.0031770362984389067, -0.004204954020678997, 0.01593003049492836, + ], + index: 71, + }, + { + title: "Alum Rock, Birmingham", + text: 'Alum Rock (also known as "The Rock") is an inner-city suburb of Birmingham, England, located roughly 2 miles east of Birmingham city centre. The area is officially a division of Saltley.', + vector: [ + 0.01738770864903927, 0.03056560643017292, -0.019092386588454247, -0.007378288544714451, + -0.04642651975154877, 0.012058739550411701, -0.02967621013522148, -0.04260211065411568, + -0.025496045127511024, -0.004610040690749884, -0.011154519394040108, 0.048205312341451645, + -0.026429910212755203, -0.00123403815086931, 0.01450458075851202, 0.005903372075408697, + -0.00489538861438632, 0.018514279276132584, 0.05958959087729454, 0.010242887772619724, + 0.03931134194135666, -0.06190202385187149, -0.032551925629377365, -0.010005715303122997, + -0.013429893180727959, 0.005440144333988428, 0.006433304399251938, -0.010035362094640732, + -0.0296613872051239, 0.01649831235408783, -0.018366046249866486, -0.02970585599541664, + 0.031069599092006683, 0.008004572242498398, -0.008849498815834522, 0.06522244215011597, + -0.002525516552850604, -0.0025570159777998924, -0.023065026849508286, 0.007893397472798824, + 0.03433072194457054, -0.015141982585191727, -0.016913363710045815, 0.0001308617793256417, + -0.01643901877105236, -0.04150518774986267, -0.00292759807780385, 0.022323861718177795, + -0.018484631553292274, 0.03596128150820732, 0.06836497783660889, 0.0625542476773262, + 0.013548479415476322, -0.016943011432886124, -0.019285090267658234, -0.0070558818988502026, + -0.015401389449834824, 0.1032293364405632, -0.05268194153904915, 0.02198292687535286, + 0.043491508811712265, -0.004050461575388908, -0.006233189720660448, 0.015831265598535538, + 0.08057935535907745, -0.0031925642397254705, 0.017506295815110207, -0.03833300620317459, + -0.013103781268000603, 0.039667099714279175, -0.016735484823584557, 0.04319504275918007, + 0.004391397349536419, 0.04328398406505585, -0.03261122107505798, 0.01133239921182394, + -0.015386566519737244, -0.03376743569970131, -0.036465272307395935, 0.00864197313785553, + 0.047404855489730835, 0.029320450499653816, -0.03925205022096634, -0.018232636153697968, + -0.010613469406962395, 0.008441858924925327, 0.020900826901197433, -0.058344434946775436, + -0.028001178056001663, -0.024132302030920982, 0.00030318243079818785, 0.025629453361034393, + 0.018306752666831017, -0.03068419359624386, 0.030951011925935745, -0.019329559057950974, + -0.009583251550793648, -0.017832407727837563, -0.0034204721450805664, 0.04100119695067406, + 0.02656332030892372, -0.05383815988898277, -0.030358079820871353, 0.005784785840660334, + 0.04455878585577011, 0.03264086693525314, -0.009598074480891228, 0.005610612221062183, + 0.012103209272027016, -0.0010265122400596738, 0.0015212392900139093, 0.01968531869351864, + 0.03317450359463692, -0.0455964133143425, 0.004417337942868471, 0.013504009693861008, + 0.012888843193650246, 0.004902800545096397, -0.034805066883563995, 0.007611755281686783, + -0.03584269434213638, -0.0551426075398922, -0.0001767213107086718, -0.016691014170646667, + 0.020826710388064384, -0.027749182656407356, -0.005406791809946299, 0.04230564460158348, + 0.025570161640644073, 0.10311074554920197, -0.05861125513911247, -0.011665922589600086, + -0.008419623598456383, -0.007937867194414139, 0.001564782694913447, 0.008501151576638222, + 0.02422124147415161, 0.01654278300702572, 0.03065454587340355, 0.009813012555241585, + 0.019018270075321198, 0.0013294630916789174, -0.017817584797739983, -0.0265781432390213, + 0.0016342668095603585, 0.020055899396538734, -0.018573570996522903, -0.030980657786130905, + 0.03341167792677879, 0.020722948014736176, 0.0001595818903297186, 0.035694461315870285, + -0.012088386341929436, 0.005021386779844761, -0.01722465269267559, 0.007974925450980663, + -0.03931134194135666, 0.04289857670664787, -0.020055899396538734, 0.03237404674291611, + 0.03130676969885826, -0.03447895124554634, 0.03628739342093468, -0.007341230288147926, + -0.0033130033407360315, 0.014519404619932175, -0.004802743438631296, 0.01528280321508646, + 0.013741182163357735, 0.005925606936216354, 0.017862053588032722, -0.023079849779605865, + 0.0312771238386631, -0.028445877134799957, -0.012095797806978226, 0.01869215816259384, + -0.006170190870761871, -0.025318164378404617, -0.001934438245370984, -0.011732627637684345, + -0.006826121360063553, -0.03768078237771988, 0.04298751801252365, -0.027793653309345245, + -0.05736609920859337, -0.025510868057608604, -0.06338435411453247, -0.016142552718520164, + 0.028030825778841972, -0.010072419419884682, 0.012874020263552666, -0.001195127028040588, + 0.01869215816259384, -0.003294474445283413, 0.0643923357129097, 0.009390548802912235, + -0.0024810468312352896, 0.015890557318925858, -0.0014082117704674602, 0.004736038390547037, + 0.04716768115758896, 0.007400523405522108, -0.03539799526333809, -0.024784527719020844, + 0.05309699475765228, 0.013140839524567127, 0.00611089775338769, -0.0076784598641097546, + -0.03364884853363037, 0.026059329509735107, 0.012614612467586994, -0.01712089031934738, + -0.05413462594151497, 0.03062490001320839, -0.03987462818622589, 0.040437910705804825, + 0.009531370364129543, 0.03536834940314293, 0.023687604814767838, 0.006781651172786951, + 0.04793849214911461, 0.027719536796212196, 0.01876627467572689, 0.01974461041390896, + -0.031010305508971214, -0.009598074480891228, -0.03593163564801216, 0.0012868461199104786, + -0.006981765851378441, -0.03456789255142212, -0.021508581936359406, 0.006185014266520739, + -0.013807887211441994, 0.026948725804686546, -0.007626578211784363, 0.030891718342900276, + 0.0008643826004117727, -0.024028539657592773, 0.05321558192372322, 0.09593627601861954, + -1.8847571482183412e-5, 0.027615774422883987, 0.025614630430936813, -0.050606682896614075, + 0.027008019387722015, -0.014719518832862377, -0.009153376333415508, 0.0021641990169882774, + -0.0218050479888916, 0.007737752981483936, -0.005384556949138641, -0.013733770698308945, + -0.00272563099861145, 0.01457128580659628, 0.024013716727495193, -0.014889986254274845, + 0.004810154903680086, 0.005051033105701208, 0.028016002848744392, -0.024917935952544212, + -0.010339238680899143, -0.03290768340229988, 0.027704713866114616, -0.025481220334768295, + 0.004576688166707754, 0.028757166117429733, -0.025629453361034393, -0.010027949698269367, + -0.023717250674962997, -0.0227240901440382, -0.006885414477437735, -0.03160323575139046, + 0.042691051959991455, -0.011480631306767464, -0.01790652424097061, -0.024843819439411163, + 0.026859786361455917, -0.02278338372707367, -0.03350061550736427, -0.01405247114598751, + 0.037295375019311905, -0.006029369775205851, 0.07939349859952927, -0.03347096964716911, + -0.011576983146369457, 0.04340256750583649, -0.03791795298457146, -0.014593521133065224, + 0.006952119059860706, 0.003703967435285449, -0.021419642493128777, -0.00413569575175643, + 0.03439001366496086, 0.033263444900512695, 0.010687585920095444, -0.018543925136327744, + -0.04645616561174393, -0.024087833240628242, 0.013022253289818764, 0.01803993433713913, + 0.01133239921182394, 0.01639454998075962, -0.03341167792677879, 0.004943564534187317, + 0.008968085050582886, 0.035635169595479965, -0.005595788825303316, -0.0212565865367651, + -0.023346668109297752, -0.04856107011437416, -0.0577811524271965, 0.0033741495572030544, + -0.0010589382145553827, -0.03702855855226517, -0.019107209518551826, 0.0018390134209766984, + -0.03314485773444176, -0.0197149645537138, -0.005729198455810547, -0.006614889483898878, + -0.024754879996180534, -0.020174486562609673, -0.048946477472782135, 0.015490328893065453, + 0.06021216884255409, -0.006336953025311232, 0.04289857670664787, 0.0409715510904789, + 0.016023967415094376, -0.021716106683015823, -0.036524564027786255, 0.034152839332818985, + -0.03533870354294777, -0.02828282117843628, 0.02048577554523945, -0.023761719465255737, + 0.022412801161408424, 0.004157930612564087, 0.004054167307913303, -0.007111469283699989, + -0.012414498254656792, 0.000600342929828912, 0.026252031326293945, -0.000999645097181201, + -0.011940153315663338, 0.019122032448649406, 0.05872984230518341, -0.048234958201646805, + 0.016928186640143394, -0.01881074346601963, 0.0007712738588452339, -0.03201828896999359, + 0.029290804639458656, 0.005573553964495659, 0.024073008447885513, -0.05715857446193695, + -0.0036057631950825453, -0.08793170750141144, 0.011562159284949303, 0.011858625337481499, + -0.006885414477437735, -0.005195560399442911, 0.01368930097669363, 0.0008731839479878545, + -0.014393405988812447, 0.014304466545581818, 0.04325433447957039, 0.05185183882713318, + 0.03839229792356491, 0.0015694149769842625, -0.030254317447543144, 0.02445841394364834, + -0.011376868933439255, -0.04787920042872429, 0.00830103736370802, 0.03427142649888992, + 0.01738770864903927, -0.026385441422462463, -0.002749718725681305, 0.0015888705383986235, + 0.001314639812335372, -0.015401389449834824, -0.013496598228812218, -0.014237761497497559, + -0.020841533318161964, -0.000312446994939819, 0.007826692424714565, 0.03299662470817566, + 0.03367849439382553, 0.024488061666488647, 0.002675602212548256, 0.008686442859470844, + 0.03385637328028679, -0.00624430738389492, 6.577830936294049e-5, 0.000772663566749543, + -0.07091458141803741, 0.0625542476773262, 0.013748593628406525, -0.00492874113842845, + -0.01792134717106819, -0.012607201002538204, -0.031039951369166374, 0.0596192367374897, + -0.014252585358917713, -0.008886557072401047, 0.00467303954064846, -0.043580446392297745, + -0.03925205022096634, -0.01885521411895752, 0.02029307186603546, -0.008367742411792278, + 0.012807315215468407, -0.06036040186882019, -0.005736609920859337, -0.02574804052710533, + -0.01099146343767643, 0.021478934213519096, 0.007152233272790909, 0.01142875012010336, + -0.028460700064897537, -0.06124980002641678, -0.05357133969664574, 0.006974353920668364, + -0.0314253568649292, 0.030076438561081886, -0.017002303153276443, -0.02201257273554802, + -0.055350132286548615, -0.00935349054634571, 0.04378797486424446, -0.026252031326293945, + 0.003868876490741968, 0.04799778759479523, -0.05858160927891731, 0.023880306631326675, + 0.011962388642132282, -0.028016002848744392, -0.014889986254274845, 0.0122069725766778, + 0.003972639329731464, 0.004065284971147776, 0.028460700064897537, -0.012103209272027016, + -0.02359866350889206, -0.015460683032870293, 0.022531388327479362, -0.023020556196570396, + 0.016216669231653214, -0.014600932598114014, -0.006859473418444395, -0.011458396911621094, + -0.01456387434154749, 0.0024754879996180534, 0.006689005997031927, -0.059085600078105927, + 0.006933589931577444, 0.05164431408047676, 0.05543907359242439, 0.030209848657250404, + 0.006700123194605112, 0.005695845931768417, -0.016854071989655495, -0.04106048867106438, + -0.01814369671046734, -0.045922525227069855, 0.004695274401456118, 0.04307645559310913, + -0.02353937178850174, 0.01869215816259384, -0.053749218583106995, -0.028519993647933006, + -0.09516546875238419, 0.025496045127511024, -0.04186094552278519, -0.03519047051668167, + -0.006481479853391647, -0.012384851463139057, -0.015490328893065453, 0.03462718427181244, + -0.012436733581125736, -0.022145982831716537, -0.0030721251387149096, 0.006588948890566826, + 0.04150518774986267, 0.020619183778762817, 0.026059329509735107, 0.004691568668931723, + 0.024636294692754745, 0.01457128580659628, 0.029542800039052963, -0.011265694163739681, + -0.04316539689898491, -0.00011818092752946541, -0.019181326031684875, 0.015386566519737244, + 0.0314253568649292, -0.04414373263716698, -0.044262319803237915, 0.05111067369580269, + -0.03690997138619423, 0.005725492723286152, 0.004406220279633999, -0.00907184835523367, + 0.006518538109958172, -0.003281503915786743, -0.014593521133065224, 0.04598182067275047, + -0.008686442859470844, -0.03815512731671333, 0.031217830255627632, -0.03400460630655289, + 0.00010654233483364806, 0.03059525229036808, -0.027912238612771034, -0.02660779096186161, + 0.01093216985464096, -0.02352454699575901, 0.00043242290848866105, -0.01337059959769249, + -0.008693854324519634, 0.00821209792047739, -0.010835818946361542, 0.0072893486358225346, + 0.0005558730335906148, 0.02039683610200882, -0.017461825162172318, 0.004421043675392866, + -0.011169342324137688, -0.016023967415094376, -0.030239494517445564, -0.03364884853363037, + 0.012169914320111275, -0.01065793912857771, 0.013578126206994057, 0.04005250707268715, + -0.03456789255142212, 0.014867751859128475, 0.022323861718177795, -0.006677888333797455, + -0.02193845622241497, 0.0011840095976367593, 0.01955190859735012, -0.005647670477628708, + 0.007819280959665775, 0.006944707594811916, -0.001925173681229353, -0.004172753542661667, + -0.008108334615826607, 0.02969103306531906, -0.009094083681702614, 0.01728394627571106, + 0.031692177057266235, -0.02814941108226776, -0.018262282013893127, 0.02678566984832287, + 0.02976514957845211, -0.060063935816287994, -0.024577001109719276, 0.1050674170255661, + 0.05620988458395004, -0.012362617067992687, -0.0312771238386631, 0.011510278098285198, + 0.01799546368420124, -0.0026996901724487543, -0.005240030121058226, -0.0029498329386115074, + -0.020678477361798286, -0.02122693881392479, 0.031662531197071075, -0.02435465157032013, + 0.0202634260058403, 0.020159663632512093, -0.009939010255038738, 0.010613469406962395, + -0.03370814397931099, -0.058433376252651215, 0.005121443886309862, -0.007671048399060965, + 0.01534209679812193, -0.02582215704023838, 0.0012257001362740993, 0.007945278659462929, + 0.022323861718177795, -0.024562178179621696, -0.023109495639801025, -0.015075277537107468, + -0.005955253262072802, 0.032581571489572525, -0.0033445029985159636, -0.015519975684583187, + 0.01709124445915222, 0.007167056668549776, -0.0005285426159389317, 0.013607772067189217, + 0.009598074480891228, -0.031039951369166374, -0.038006894290447235, 0.0035372055135667324, + 0.027289660647511482, -0.017002303153276443, -0.010783937759697437, 0.01799546368420124, + 0.01580161787569523, 0.03833300620317459, 0.06510385125875473, -0.02973550371825695, + -0.009316432289779186, 0.0034260309766978025, -0.033293090760707855, -0.013548479415476322, + 0.03433072194457054, 0.02116764523088932, -0.008093511685729027, -0.05045844987034798, + 0.013741182163357735, 0.013155662454664707, 0.025688746944069862, -0.04298751801252365, + 0.021464111283421516, -0.0736420601606369, -0.0125553198158741, 0.023835835978388786, + 0.007341230288147926, -0.027838122099637985, 0.016898540779948235, -0.00702994130551815, + 0.004658216144889593, 0.0024273123126477003, 0.009642545133829117, -0.02982444316148758, + -0.021760577335953712, 0.030283965170383453, -0.017432179301977158, -0.037977248430252075, + 0.008968085050582886, 0.09326808899641037, 0.0360502190887928, -0.030773133039474487, + 0.03424178063869476, -0.0017287652008235455, 0.017624881118535995, -0.023183612152934074, + 0.002343931468203664, -0.00979077722877264, 0.014230350032448769, -0.0073671708814799786, + 0.034894004464149475, -0.01944814622402191, -0.0343603678047657, 0.03453824669122696, + 0.0005123296868987381, 0.0003731297911144793, 0.029616916552186012, 0.0022327566985040903, + -0.015564445406198502, -0.02270926721394062, -0.02502170018851757, -0.002710807602852583, + -0.021360348910093307, 0.0036632034461945295, 0.00331670930609107, -0.05274123698472977, + -0.0028812752570956945, -0.0036965557374060154, -0.02208668924868107, 0.007767399773001671, + 0.02890539914369583, 0.00784151628613472, -0.028757166117429733, 0.006288777105510235, + -0.031810760498046875, -0.011317575350403786, 0.013318718411028385, -0.010694997385144234, + 0.029468683525919914, -0.016809601336717606, -0.005862608086317778, 0.006903943605720997, + -0.019433321431279182, -0.06267283111810684, -0.005099209025502205, 0.0029794794972985983, + -0.04524065554141998, -0.006351775955408812, 0.0010367032373324037, 0.010502294637262821, + -0.010843230411410332, -0.029646562412381172, -0.04168306663632393, -0.02969103306531906, + -0.016720661893486977, -0.0003048037178814411, -0.019892843440175056, 0.01483069360256195, + 0.017017127946019173, -0.018425339832901955, -0.03732502460479736, -0.0016157376812770963, + -0.0032666807528585196, -0.019314736127853394, -0.015164216980338097, -0.006348070222884417, + -0.023005733266472816, 0.04331362992525101, 0.0007504286477342248, 0.012288500554859638, + 0.04162377491593361, -0.04417337849736214, 0.014726930297911167, 0.01799546368420124, + -0.05709927901625633, -0.0028423641342669725, 0.02187916450202465, 0.00865679606795311, + -0.008256567642092705, -0.03750290349125862, 0.029957851395010948, 0.0033741495572030544, + -0.038866642862558365, 0.00764140160754323, 0.023228082805871964, -0.02598521299660206, + -0.014875163324177265, 0.007997160777449608, 0.024013716727495193, 0.013296484015882015, + -0.0015953556867316365, -0.013459539972245693, -0.014608344063162804, 0.0032092405017465353, + -0.039548516273498535, -0.00471380352973938, 0.030165378004312515, -0.0027126604691147804, + 0.008945850655436516, 0.005117738153785467, 0.03631703928112984, -0.002090082736685872, + -0.02352454699575901, 0.03201828896999359, 0.032581571489572525, -0.02262032777070999, + 0.0018788509769365191, 0.005366027820855379, -0.04023038595914841, -0.047493793070316315, + 0.005188148468732834, 0.001522165723145008, -0.0018686599796637893, 0.022931616753339767, + -0.011132284067571163, -0.02419159561395645, -0.05045844987034798, 0.0015638562617823482, + 0.05158501863479614, -0.003794759977608919, -0.022546211257576942, 0.011302752420306206, + -0.010428179055452347, 0.04212776571512222, -0.04058614373207092, -0.01798064075410366, + 0.007960102520883083, -0.01370412390679121, -0.021627167239785194, 0.01578679494559765, + -0.004461807664483786, -0.017521118745207787, 0.016068438068032265, -0.009916774928569794, + 0.012629436329007149, -0.01484551653265953, 0.05357133969664574, 0.05407533049583435, + 0.05116996914148331, 0.01959637738764286, 0.006626006681472063, -0.013896826654672623, + 0.024591824039816856, 0.022561034187674522, -0.018306752666831017, -0.017491472885012627, + -0.015890557318925858, -0.0157126784324646, -0.044321611523628235, -0.046604398638010025, + -0.023880306631326675, 0.011651099659502506, -0.03510152921080589, 0.02262032777070999, + 0.04304680973291397, 0.04687121510505676, -0.013919061049818993, -0.001607399550266564, + 0.015208686701953411, -0.03308556601405144, -0.02103423699736595, 0.005851490423083305, + 0.02745271660387516, -0.01058382261544466, -0.002254991792142391, -0.01562373898923397, + -0.02980961836874485, 0.02279820665717125, -0.001337801106274128, -0.016187023371458054, + 0.011243458837270737, 0.045092422515153885, -0.012777668423950672, 0.024651117622852325, + 0.0026107504963874817, -0.0019622319377958775, -0.03996356576681137, 0.021360348910093307, + 0.03044702112674713, -0.003109183395281434, 0.03596128150820732, -0.012599789537489414, + -0.011903095059096813, -0.03554622828960419, 0.010606057941913605, 0.01299260649830103, + 0.02361348830163479, 0.04930223524570465, 0.033263444900512695, -0.04230564460158348, + 0.021775400266051292, -0.003116594860330224, 0.028416231274604797, -0.015023396350443363, + 0.009894540533423424, 0.004906506277620792, -0.012429321184754372, 0.03842194750905037, + -0.04639687016606331, 0.00624430738389492, 0.006444421596825123, 0.02276856079697609, + 0.013229778967797756, -0.029957851395010948, 0.05784044414758682, -0.01889968477189541, + -0.0026830139104276896, -0.010613469406962395, 0.017698997631669044, -0.03658385947346687, + -0.01092475838959217, -0.01337059959769249, 0.013185309246182442, -0.00649259751662612, + -0.006325835362076759, 0.004194988869130611, -0.03391566872596741, 0.020871181041002274, + 0.008100923150777817, -0.007997160777449608, 0.03477541729807854, 0.0033519144635647535, + 0.020752593874931335, -0.06124980002641678, -0.002690425608307123, -0.026192737743258476, + -0.0034204721450805664, 0.009738896042108536, -0.004561864770948887, 0.015075277537107468, + 0.030120907351374626, 0.0020178190898150206, -0.004561864770948887, -0.016231494024395943, + -0.04876859486103058, -0.012347793206572533, 0.003600204596295953, -0.0016379726585000753, + -0.005002857651561499, 0.057662565261125565, -0.005740315653383732, -0.024591824039816856, + 0.0019566731061786413, 0.018529102206230164, 0.004469219595193863, -0.022294215857982635, + -0.009753718972206116, 0.02897951565682888, -0.01895897649228573, 0.04135695472359657, + -0.01065052766352892, -0.02104905992746353, -0.028534816578030586, 0.004758273251354694, + 0.0003244908875785768, 0.04755308851599693, 0.0015203128568828106, 0.024784527719020844, + 0.01451199222356081, -0.05576518550515175, -0.03524976223707199, 0.004487748723477125, + 0.007044764701277018, 0.02503652311861515, -0.02497722953557968, 0.002581103937700391, + 0.006677888333797455, 0.0289646927267313, 0.024754879996180534, 0.019299913197755814, + 0.04939117282629013, 0.017743468284606934, -0.02045612782239914, -0.019359204918146133, + -0.015060453675687313, -0.009990891441702843, 0.031217830255627632, -0.013911649584770203, + -0.05125890672206879, 0.0037892013788223267, -0.01728394627571106, -0.00018274327157996595, + 0.02494758367538452, 0.04942082241177559, -0.04497383534908295, -0.011384280398488045, + -0.03551658242940903, 0.01958155445754528, 0.03430107235908508, -0.00172413291875273, + 0.020886003971099854, -0.024636294692754745, -0.003655791748315096, -0.014371171593666077, + 0.018618041649460793, 0.00607013376429677, 0.03133641555905342, 0.027245191857218742, + -0.0037669665180146694, -0.04847213253378868, 0.0004314964753575623, 0.003320415038615465, + -0.004698980133980513, 0.030773133039474487, -0.00863456167280674, -0.020085547119379044, + 0.0025199579540640116, 0.007782222703099251, -0.038777705281972885, -0.038748059421777725, + -0.04091225564479828, 0.016631722450256348, -0.04844248294830322, -0.027185898274183273, + 0.0037280553951859474, 0.006036781240254641, 0.019122032448649406, 0.02107870578765869, + -0.003729908261448145, 0.0006851135403849185, -0.021641992032527924, -0.029261158779263496, + -0.03919275477528572, -0.02740824781358242, -0.007393111474812031, -0.017639705911278725, + -0.06302859634160995, -0.008160216733813286, 0.004710097797214985, -0.02909810096025467, + 0.00786375068128109, 0.0331152118742466, 0.008100923150777817, 0.03418248891830444, + -0.027956709265708923, 0.023732073605060577, -0.0010691292118281126, -0.04402514547109604, + 0.019062740728259087, 0.005251147318631411, 0.06492597609758377, 0.022160805761814117, + -0.027141429483890533, -0.0020196721889078617, 0.006118309684097767, 0.02829764410853386, + -0.00489538861438632, 0.020144838839769363, 0.01955190859735012, 0.015356919728219509, + 0.03865911811590195, -0.001109893200919032, -0.02903880923986435, -0.012866608798503876, + -0.03696926310658455, -0.000766178360208869, -0.011651099659502506, -0.01645384170114994, + 0.01869215816259384, -0.01407470554113388, -0.04094190523028374, -0.0030183906201273203, + 0.006718652322888374, 0.024117479100823402, 0.013933884911239147, -0.0643923357129097, + 0.017002303153276443, 0.014637990854680538, -0.010450413450598717, -0.01012430153787136, + -0.03545729070901871, -0.016883717849850655, 0.01630561053752899, 0.02445841394364834, + -0.0008263979689218104, 0.007393111474812031, 0.04767167195677757, 0.00900514330714941, + -0.0315735898911953, -0.003980051260441542, 0.005117738153785467, 0.0439065583050251, + -0.010806172154843807, -0.004395103082060814, -0.02820870466530323, -0.02429535798728466, + -0.01637972705066204, 0.03302627056837082, -0.02115282230079174, -0.031128890812397003, + 0.031692177057266235, -0.003194417105987668, 0.011310163885354996, 0.03278909996151924, + -0.04257246479392052, 0.03382672742009163, -0.004939858801662922, 0.024665940552949905, + -0.019952137023210526, 0.04532959684729576, 0.019166503101587296, 0.02362831123173237, + 0.020189309492707253, -0.027764005586504936, -0.02814941108226776, -0.026830140501260757, + -0.010783937759697437, -0.03397496044635773, -0.015935027971863747, -0.005614317953586578, + -0.005436438601464033, -0.048264604061841965, -0.011132284067571163, 0.01493445597589016, + 0.03812548145651817, -0.004999151919037104, -0.006903943605720997, -0.049806226044893265, + 0.018543925136327744, 0.020811887457966805, 0.027008019387722015, -0.00036039104452356696, + -0.011176754720509052, -0.019848374649882317, -0.019863197579979897, -0.030980657786130905, + -0.011628864333033562, 0.005191854201257229, -0.008382565341889858, 0.011110049672424793, + 0.008931026794016361, -0.01064311619848013, 0.031158538535237312, 0.011843802407383919, + 0.006318423897027969, 0.019181326031684875, -0.009249728173017502, 0.03302627056837082, + 0.005429026670753956, 0.015112335793673992, 0.016172200441360474, -0.03468647971749306, + -0.015171628445386887, -0.015008572489023209, -0.003868876490741968, 0.003950404468923807, + 0.005121443886309862, 0.01575714908540249, 0.0035946457646787167, 0.013177897781133652, + 0.004617452155798674, 0.003064713440835476, -0.003470500698313117, 0.005473496858030558, + 0.03513117879629135, 0.02112317644059658, 0.02181987091898918, 0.019374029710888863, + 0.00818986352533102, 0.02101941406726837, 0.028564464300870895, 0.02038201130926609, + 0.0027701007202267647, -0.03824406489729881, -0.01575714908540249, -0.0017065303400158882, + -0.022145982831716537, -0.033233799040317535, -0.024799350649118423, 0.012029092758893967, + -0.031781114637851715, -0.03047666698694229, -0.005073267966508865, 0.008782794699072838, + -0.01637972705066204, -0.010302180424332619, -0.007363465148955584, -0.0021160233300179243, + -0.02345043234527111, 0.019922491163015366, 0.01884039118885994, -0.026504026725888252, + -0.0031240065582096577, 0.011169342324137688, 0.04254281893372536, -0.019344381988048553, + 0.031069599092006683, -0.017432179301977158, 0.002332814037799835, -0.006448127329349518, + 0.04879824444651604, 0.024754879996180534, 0.014867751859128475, -0.01250343769788742, + -0.006881708279252052, -0.02276856079697609, -0.01658725179731846, 0.03851088508963585, + 0.0016351932426914573, -0.007900808937847614, -0.003983756992965937, 0.03287803754210472, + -0.01946296915411949, -0.021478934213519096, 0.023065026849508286, -0.004910212010145187, + 0.004821272566914558, -0.028371760621666908, -0.0468415692448616, 0.03610951453447342, + -0.009027378633618355, -0.007411640603095293, -0.007908220402896404, 0.050517745316028595, + -0.02346525527536869, 0.0072893486358225346, 0.009212669916450977, 0.0010765407932922244, + 0.023361491039395332, 0.007626578211784363, -0.013096368871629238, 0.013592949137091637, + 0.020945297554135323, 0.025614630430936813, 0.00453221844509244, 0.02894986979663372, + -0.00856785662472248, -0.04085296392440796, 0.003466794965788722, -0.04165342077612877, + 0.003457530401647091, -0.015964673832058907, 0.009546193294227123, 0.03978568688035011, + -0.015964673832058907, 0.015097511932253838, 0.029439037665724754, 0.010524529963731766, + -0.006166485138237476, 0.007307877764105797, 0.007708106655627489, 0.005769962444901466, + 0.007626578211784363, -0.005662493407726288, 0.020782241597771645, -0.007348641753196716, + 0.027126604691147804, 0.010724644176661968, 0.007708106655627489, -0.030091261491179466, + 0.02831246703863144, 0.006299894768744707, 0.0034742066636681557, 0.003902228781953454, + 0.00568102253600955, -0.0022679620888084173, 0.03056560643017292, 0.011643687263131142, + -0.026474380865693092, 0.02591109648346901, 0.022264568135142326, 0.05440144240856171, + -0.01012430153787136, -0.023895129561424255, -0.013904238119721413, 0.005076974164694548, + 0.008805029094219208, -0.005228912457823753, -0.010457824915647507, -0.044262319803237915, + -0.002477340865880251, 0.013563302345573902, 0.008389977738261223, 0.008501151576638222, + 0.003639115719124675, -0.002755277557298541, 0.04168306663632393, -0.02436947450041771, + -0.015104924328625202, 0.030165378004312515, 0.02985408902168274, 0.016957834362983704, + 0.019092386588454247, -0.01892933063209057, -0.0406750850379467, 0.039518870413303375, + 0.03771042823791504, -0.04079367220401764, 0.03160323575139046, -0.004328398033976555, + -0.008908792398869991, -0.02183469384908676, -0.003791054245084524, -0.005781079642474651, + -0.03711749613285065, -0.006563007831573486, -0.01946296915411949, -0.0064518335275352, + -0.01731359213590622, -0.005818137899041176, -0.030862072482705116, 0.042216707020998, + 0.006325835362076759, 0.002371725160628557, -0.008130569942295551, -0.02967621013522148, + -0.0015786795411258936, 0.0019566731061786413, 0.0019714965019375086, 0.0014276673318818212, + -0.020915649831295013, -0.01572750136256218, -0.013830121606588364, 0.041149429976940155, + 0.02207186631858349, -0.026252031326293945, 0.031128890812397003, 0.015890557318925858, + 0.02193845622241497, 0.003894817316904664, 0.001785279018804431, 0.0029072160832583904, + -0.008968085050582886, -0.0018353075720369816, -0.006789063103497028, 0.007170762401074171, + 0.004954681731760502, 0.031781114637851715, -0.011295340955257416, 0.00034325162414461374, + 0.005225206725299358, 0.020960120484232903, 0.0008824484539218247, 0.03347096964716911, + 0.00900514330714941, -0.01372635830193758, 0.007307877764105797, 0.01884039118885994, + -0.05953029915690422, -0.011488042771816254, -0.005332675762474537, 0.014163645915687084, + 0.015594092197716236, 0.015356919728219509, -0.010524529963731766, -0.05585412681102753, + 0.01632043346762657, 0.0035297938156872988, 0.05558730661869049, -0.021375171840190887, + -0.010094654746353626, -0.02656332030892372, -0.004743450321257114, 0.045122068375349045, + 0.009205257520079613, -0.00985007081180811, -0.03341167792677879, 0.013822710141539574, + 0.017417356371879578, 0.033352382481098175, -0.005832961294800043, 0.01660207472741604, + 0.015949850901961327, -0.0027423070278018713, -0.020915649831295013, -0.007333818357437849, + -0.03498294577002525, 0.013303895480930805, 0.003548322943970561, -0.000733752443920821, + -0.012659082189202309, -0.01723947562277317, -0.010813583619892597, -0.006618595216423273, + -0.011569571681320667, -0.006214660592377186, 0.02419159561395645, 0.015149394050240517, + 0.018632864579558372, -0.018573570996522903, -0.023168789222836494, 0.0022142278030514717, + 0.00432469230145216, 0.0014063587877899408, -0.01577197201550007, -0.009635132737457752, + 0.006748299114406109, -0.016098083928227425, -0.03148464858531952, -0.002075259340927005, + -0.014230350032448769, -0.018217813223600388, -0.007945278659462929, -0.007967513985931873, + -0.009160787798464298, -0.01718018390238285, -0.008004572242498398, 0.03148464858531952, + 0.010724644176661968, 0.0031536531168967485, 0.00864938460290432, 0.031217830255627632, + 0.022457271814346313, 0.00908667128533125, -8.917130617192015e-5, 0.02121211588382721, + -0.003700261702761054, 0.008945850655436516, 0.03433072194457054, -0.017447002232074738, + -0.008782794699072838, -0.02343560755252838, -0.021419642493128777, -0.023302199319005013, + -0.019329559057950974, -0.01491963304579258, -0.03361920267343521, 0.008923615328967571, + 0.02659296803176403, 0.010443001985549927, -0.018543925136327744, 0.02574804052710533, + 0.022531388327479362, 0.00827880296856165, 0.023984069004654884, -0.010843230411410332, + 0.006318423897027969, 0.0003330605977680534, -0.005043621640652418, 0.004250575788319111, + -0.030713839456439018, -0.03868876397609711, 0.037206437438726425, 0.002240168396383524, + -0.005251147318631411, -0.0197149645537138, -0.005073267966508865, 0.007619166746735573, + -0.005073267966508865, 0.010257710702717304, -0.045833587646484375, 0.005769962444901466, + 0.038836997002363205, 0.06124980002641678, 0.019270265474915504, 0.003185152541846037, + 0.012258853763341904, 0.009649956598877907, -0.00303136114962399, -0.014378583058714867, + 0.018558748066425323, -0.014519404619932175, -0.011028521694242954, 0.026059329509735107, + 0.020634008571505547, -0.004250575788319111, 0.011206400580704212, -0.04470701888203621, + -0.018618041649460793, 0.008478917181491852, 0.020722948014736176, -0.02184951677918434, + -0.015053042210638523, 0.01529762614518404, -0.010168771259486675, -0.002658926183357835, + -0.010109477676451206, 0.011525101028382778, 0.028831282630562782, 0.006970648188143969, + 0.017002303153276443, 0.030862072482705116, 0.013748593628406525, 0.002041907049715519, + 0.011028521694242954, -0.01955190859735012, -0.0011108196340501308, -0.013681888580322266, + 0.022397978231310844, 0.028594110161066055, -0.027082135900855064, 0.02577768638730049, + -0.024680763483047485, -0.01580161787569523, -0.018973801285028458, 0.03690997138619423, + 0.01369671244174242, 0.005158502142876387, -0.023865483701229095, -0.021716106683015823, + 0.008738324046134949, -0.03871840983629227, 0.011888272128999233, 0.03610951453447342, + 0.028860928490757942, 0.008456681855022907, -0.0005957106477580965, -0.008352919481694698, + 0.006918766535818577, -0.008108334615826607, -0.021419642493128777, -0.0055068489164114, + 0.006248013116419315, -0.029290804639458656, 0.02109353058040142, 0.006444421596825123, + 0.011873448267579079, -0.0102058295160532, 0.05973782390356064, -0.008738324046134949, + 0.009909363463521004, -0.016127729788422585, 0.014889986254274845, -0.018262282013893127, + -0.010346650145947933, 0.04500348120927811, 0.010383708402514458, -0.0029257452115416527, + 0.0033148564398288727, 0.03204793483018875, 0.016231494024395943, -0.023153966292738914, + 0.013244601897895336, 0.010472648777067661, 0.0024903113953769207, -0.026118621230125427, + 0.010969228111207485, -0.013296484015882015, 0.0082046864554286, -0.01257014274597168, + 0.001746367895975709, -0.02977997250854969, -0.023168789222836494, -0.01057641115039587, + -0.020159663632512093, -0.0165576059371233, 0.017521118745207787, -0.012525673024356365, + 0.031781114637851715, -0.012525673024356365, 0.01179192028939724, 0.013466951437294483, + 0.0012062445748597383, -0.0012636847095564008, 0.017076419666409492, -0.00246807630173862, + -0.019981782883405685, 0.056061651557683945, 0.05425320938229561, 0.050517745316028595, + -0.005799608770757914, 0.027897415682673454, -0.01808440312743187, -0.04912435635924339, + -0.028445877134799957, 0.008427035994827747, 0.010694997385144234, 0.011888272128999233, + 0.008041630499064922, 0.024665940552949905, -0.003980051260441542, -0.01328166015446186, + 0.01814369671046734, -0.029394567012786865, 0.01796581782400608, -0.031010305508971214, + -0.02600003592669964, 0.015460683032870293, 0.013985766097903252, -0.0031147419940680265, + -0.00470639206469059, -0.0028053061105310917, 0.0009176537860184908, 0.049094706773757935, + -0.028564464300870895, -0.0637994036078453, -0.04642651975154877, 0.0028386584017425776, + -0.01660207472741604, 0.019255442544817924, -0.01568303257226944, 0.00571437506005168, + -0.011584394611418247, 0.005436438601464033, -0.02359866350889206, 0.012325558811426163, + 0.004632275551557541, 0.021389994770288467, 0.034923650324344635, -0.01491963304579258, + 0.003652086015790701, 0.015935027971863747, -0.03602057322859764, -0.08692372590303421, + -0.003729908261448145, 0.010835818946361542, 0.018603218719363213, 0.016676191240549088, + ], + index: 72, + }, + { + title: "173 Hours in Captivity", + text: "173 Hours In Captivity: The Hijacking of IC 814 is a 2000 book (ISBN 81-7223-394-9) written by Neelesh Misra, a New Delhi-based correspondent of the Associated Press. The book is about the hijacking of Indian Airlines Flight 814 on its journey from Kathmandu to New Delhi on Christmas Eve, December 24, 1999.", + vector: [ + -0.006944699212908745, -0.001118911779485643, -0.013426940888166428, -0.042452022433280945, + -0.04637115076184273, 0.02707335352897644, -0.03354775533080101, 0.03241904824972153, + -0.01223552506417036, 0.020645979791879654, 0.011091139167547226, 0.004393345210701227, + 0.006885912269353867, -0.030600570142269135, -0.06126384809613228, -0.04677874222397804, + -0.007748120930045843, 0.0044325366616249084, -0.022480132058262825, -0.008622086606919765, + 0.0149632403627038, 0.0014735930599272251, -0.013278014026582241, -0.006976052187383175, + 0.04677874222397804, 0.012486349791288376, 0.0073522888123989105, 0.022401750087738037, + 0.05170116946101189, -0.02486296370625496, -0.06051137298345566, -0.02390669658780098, + -0.005541650578379631, -0.020128654316067696, -0.021414129063487053, -0.004115086980164051, + -0.03489593788981438, 0.039410777390003204, -0.011898480355739594, 0.00919428002089262, + 0.010001621209084988, 0.004220903385430574, -0.03683982789516449, 0.024831609800457954, + -0.02523919939994812, -0.046057622879743576, -0.01780852861702442, -0.029064271599054337, + -0.029189683496952057, 0.014626194722950459, 0.007524730637669563, 0.0007069131825119257, + -0.03683982789516449, -0.009860532358288765, 0.012745012529194355, 0.04329855367541313, + 0.061984967440366745, 0.06590409576892853, 0.0161154642701149, -0.04922427982091904, + -0.010448401793837547, -0.07838261127471924, 0.02194713056087494, 0.010613005608320236, + -0.012987998314201832, -0.013897236436605453, 0.023828312754631042, -0.016977673396468163, + -0.01502594631165266, 0.031603869050741196, -0.009978106245398521, 0.009695928543806076, + 0.024768903851509094, -0.003525257809087634, -0.014594841748476028, -0.03652629628777504, + 0.02599167264997959, 0.02346775308251381, 0.01763608679175377, 0.027810148894786835, + -0.02199416048824787, -0.0004955250769853592, 0.011294933967292309, -0.0013491606805473566, + -0.0149632403627038, -0.043079081922769547, -0.020254066213965416, -0.09694360941648483, + -0.027292825281620026, -0.02059894986450672, 0.038971833884716034, 0.02290339767932892, + -0.010080003179609776, -0.022480132058262825, -0.03019298054277897, -0.007324854843318462, + 0.04439590871334076, -0.02865668199956417, 0.0011355680180713534, -0.06063678488135338, + 0.00228289351798594, -0.020112978294491768, -0.005557327065616846, -0.020818421617150307, + 0.046841446310281754, -0.002435739617794752, 0.00970376655459404, 0.020693009719252586, + -0.002284853020682931, 0.015394343994557858, -0.050196222960948944, 0.030647600069642067, + 0.012274716980755329, 0.01369344163686037, -0.02592896670103073, -0.002420063130557537, + 0.021226011216640472, -0.0066076540388166904, 0.006384263746440411, -0.042765550315380096, + -0.004593221005052328, 0.00020648918871302158, 0.011914156377315521, 0.05029028281569481, + 0.02428293228149414, 0.043267201632261276, -0.01914103329181671, 0.00016570572915952653, + -0.02776312083005905, -0.004009270574897528, 0.023749930784106255, 0.004514838103204966, + 0.00038358490564860404, 0.044615380465984344, -0.0036134382244199514, 0.013677765615284443, + 0.004056300036609173, -0.05226552486419678, 0.019360505044460297, 0.03621276468038559, + 0.03524082154035568, 0.010213254019618034, -0.02675982192158699, 0.027089029550552368, + -0.003491945331916213, 0.013881560415029526, -0.014242120087146759, -0.045054323971271515, + -0.03671441227197647, 0.03799989074468613, -0.004561868030577898, 0.021476835012435913, + -0.024894315749406815, -0.003450794378295541, -0.006772257387638092, 0.042138490825891495, + 0.0011404670076444745, 0.00041493793833069503, -0.02296610362827778, -0.026164114475250244, + 0.007438509725034237, -0.05872425064444542, 0.00550245912745595, -0.0137953395023942, + 0.01084815338253975, -0.01578625664114952, -0.025286229327321053, -0.0001309234503423795, + 0.01863938383758068, 0.049098867923021317, -0.01026812195777893, 0.03276393190026283, + 0.012995836324989796, -0.004134682472795248, -0.01661711372435093, -0.013497484847903252, + 0.047468509525060654, 0.06123249605298042, -0.05170116946101189, 0.03238769248127937, + -0.014782960526645184, 0.019548622891306877, -0.02205686643719673, -0.0406021922826767, + -0.030600570142269135, 0.010362180881202221, 0.03354775533080101, 0.010534622706472874, + 0.006756580900400877, -0.013740471564233303, -0.048346392810344696, 0.004365911241620779, + -0.01928212121129036, 0.019313475117087364, -0.04097842797636986, -0.017228497192263603, + -0.004138601943850517, 0.025035405531525612, 0.01667981967329979, -0.037122003734111786, + 0.0010326908668503165, -0.018059352412819862, -0.02238607406616211, -0.003940685652196407, + -0.0029628626070916653, 0.024345638230443, -0.014281311072409153, 0.012188496068120003, + 0.03342234343290329, 0.03988107293844223, -0.009758634492754936, -0.012760688550770283, + 0.0251137875020504, 0.024768903851509094, 0.03367316722869873, -0.0039014944341033697, + -0.030867071822285652, -0.06026054918766022, 0.053174760192632675, -0.0026081812102347612, + -0.00012498351861722767, 0.013928589411079884, 0.04966321960091591, -0.024706197902560234, + -0.048471804708242416, 0.03615006059408188, -0.019579974934458733, 0.06628033518791199, + -0.019689710810780525, -0.012917454354465008, 0.0023730334360152483, 0.034268878400325775, + -0.0018664859235286713, 0.033516403287649155, -0.02890750579535961, 0.0161154642701149, + -0.0018811826594173908, 0.044489968568086624, -0.008308556862175465, -0.05079193040728569, + -0.024329962208867073, 0.058567486703395844, -0.008912102319300175, 0.0058904532343149185, + -0.03067895397543907, 0.007634466048330069, -0.0017038419609889388, 0.05452294275164604, + -0.026822529733181, 0.007418913766741753, 0.008426130749285221, -0.004311043303459883, + 0.07248823344707489, 0.004146439954638481, 0.052547700703144073, 0.033829934895038605, + -0.017197145149111748, 0.024549433961510658, -0.015653006732463837, 0.06301961839199066, + 0.042953670024871826, -0.010134871117770672, 0.00916292704641819, -0.002514122286811471, + -0.024894315749406815, 0.012925292365252972, 0.008347747847437859, -0.06916481256484985, + -0.0005545569583773613, 0.005051759071648121, -0.010918697342276573, -0.007273905910551548, + 0.03859559819102287, -0.029691332951188087, -0.011961186304688454, 0.015143520198762417, + 0.006396020762622356, 0.0216963067650795, 0.00465984595939517, 0.004440374672412872, + 0.030098922550678253, -0.03342234343290329, 0.016773877665400505, -0.010393533855676651, + -0.008418291807174683, 0.015841124579310417, 0.0032038891222327948, 0.01782420463860035, + -0.004577544517815113, -0.05072922632098198, -0.018059352412819862, 0.017024703323841095, + -0.04358072951436043, 0.025270553305745125, -0.0173695869743824, 0.02226066030561924, + 0.05402129516005516, -0.01997188851237297, 0.004836206790059805, -0.042201194912195206, + -0.012807718478143215, 0.06929022818803787, -0.059257254004478455, -0.0028786014299839735, + -0.0068702357821166515, -0.001865506055764854, -0.015880316495895386, 0.009884047321975231, + -0.03226228058338165, -0.010957888327538967, -0.03019298054277897, -0.005416238214820623, + 0.013035028241574764, -0.007175927981734276, 0.06985457986593246, -0.03868965432047844, + -0.011639817617833614, -0.04091572016477585, -0.01655440777540207, -0.02053624391555786, + 0.030459482222795486, 0.01920373924076557, 0.016044920310378075, 0.008833720348775387, + 0.014438076876103878, -0.018733443692326546, 0.044301848858594894, -0.0013452415587380528, + -0.015903830528259277, -0.03771771118044853, -0.0334850512444973, 0.001404028502292931, + -0.03862695023417473, -0.024329962208867073, -0.02351478300988674, 0.009978106245398521, + -0.03056921809911728, -0.0017204983159899712, 0.005980593152344227, -0.0021241686772555113, + -0.0173695869743824, 0.007446347735822201, -0.006846720818430185, 0.0173695869743824, + 0.011710361577570438, 0.023953724652528763, 0.05631006509065628, -0.004169954918324947, + -0.0014422399690374732, -0.045054323971271515, 0.0007005445659160614, 0.002806097501888871, + 0.028625328093767166, -0.002874682191759348, -0.009045353159308434, -0.03270122408866882, + 0.008919941261410713, -0.008480998687446117, 0.018655061721801758, -0.027496619150042534, + 0.06345856189727783, -0.02517649345099926, 0.02442402020096779, -0.00030250789131969213, + 0.017259851098060608, -0.02840585820376873, 0.001964464085176587, -0.009852694347500801, + -0.011812259443104267, -0.01901562139391899, 0.029503213241696358, 0.031431425362825394, + -0.036933884024620056, 0.014532135799527168, 0.0029942155815660954, -0.017416615039110184, + -0.04019460082054138, -0.047280389815568924, 0.0034409966319799423, 0.01211011316627264, + 0.008951294235885143, -0.000986641040071845, -0.01635061204433441, -0.033265579491853714, + 0.0011404670076444745, -0.004459970630705357, -0.0502275750041008, -0.02351478300988674, + 0.016044920310378075, -0.00018456655379850417, -0.018341530114412308, -0.021602246910333633, + -0.03511540964245796, -0.058881014585494995, -0.04006918892264366, -0.026477646082639694, + -0.006850639823824167, 0.013097734190523624, 0.06311367452144623, 0.0016156615456566215, + 0.016585759818553925, 0.05104275420308113, -0.010707064531743526, 0.06690739840269089, + -0.012627438642084599, 0.00890426430851221, 0.02409481443464756, -0.0390658937394619, + -0.0508546382188797, 0.0007554123876616359, 0.014351855963468552, 0.06985457986593246, + -0.012125789187848568, 0.03190172091126442, -0.033140167593955994, -0.040351368486881256, + -0.026023026555776596, 0.053801823407411575, -0.0381566546857357, -0.006164791993796825, + -0.02617979235947132, 0.03759229928255081, -0.03140007331967354, -0.002782582538202405, + -0.037247415632009506, -0.007434590253978968, 0.0056788199581205845, 0.005298664327710867, + 0.038971833884716034, 0.0013374033151194453, -0.04351802542805672, -0.0215552169829607, + -0.01674252562224865, 0.038846421986818314, -0.03235634043812752, -0.026822529733181, + -0.021210333332419395, 0.0209281574934721, 0.009782149456441402, 0.029942156746983528, + -0.008598572574555874, -0.019768094643950462, -0.054366178810596466, 0.010103518143296242, + 0.029283743351697922, -0.004412940703332424, -0.006940780207514763, 0.008159630000591278, + 0.06471268087625504, -0.061420612037181854, -0.07831989973783493, -0.008951294235885143, + 0.033328283578157425, -0.030475158244371414, 0.04812692105770111, 0.01265095267444849, + -0.028060974553227425, -0.048691276460886, -0.014038325287401676, 0.07606248557567596, + -0.005377046763896942, 0.031729280948638916, -0.0024729713331907988, -0.014955401420593262, + 0.03821935877203941, -0.03169792890548706, 0.005259472876787186, 0.01755770482122898, + -0.0032391613349318504, -0.003433158388361335, -0.0011179319117218256, 0.044176436960697174, + -0.02174333669245243, -0.013238823041319847, 0.013301528990268707, -0.00970376655459404, + -0.03840747848153114, 0.01243148185312748, -0.053049348294734955, -0.04364343732595444, + 0.06734633445739746, 0.05743877589702606, 0.02586626075208187, 0.0005927684833295643, + 0.005988431163132191, 0.011208713054656982, -0.03944212943315506, -0.017589056864380836, + -0.05420941114425659, 0.0286723580211401, 3.6986792110837996e-5, 0.04075895622372627, + 0.03379858285188675, 0.006678198464214802, -0.0313216894865036, 0.04066489636898041, + -0.04812692105770111, -0.05442888289690018, 0.055463533848524094, -0.007944077253341675, + 3.058758738916367e-5, 0.014140223152935505, 0.04304772987961769, -0.006521433126181364, + 0.05201470106840134, -0.0036095192190259695, 0.05656089261174202, 0.03229363635182381, + 0.051450345665216446, 0.0036722251679748297, -0.012666629627346992, 0.05891237035393715, + -0.0024455373641103506, 0.02517649345099926, -0.03546029329299927, 0.02619546838104725, + -0.007708929479122162, 0.009735120460391045, 0.03210551664233208, -0.003936766646802425, + 0.01693064346909523, 0.02955024316906929, -0.012729335576295853, 0.0038113542832434177, + 0.03887777402997017, -0.02251148596405983, 0.04210713878273964, -0.017667440697550774, + -0.04304772987961769, 0.020724361762404442, 0.036494944244623184, -0.013975619338452816, + -0.014155899174511433, -0.017150115221738815, 0.011835774406790733, 0.015010269358754158, + 0.0039642006158828735, 0.000687317515257746, -0.011498728767037392, 0.022229308262467384, + -0.007501215673983097, -0.011146007105708122, -0.021727658808231354, -0.003866222221404314, + -0.04881668835878372, 0.004942023660987616, -0.03583652898669243, 0.017651762813329697, + -0.05442888289690018, -0.022527161985635757, -0.018153412267565727, 0.010244606994092464, + 0.009891885332763195, 0.01870208978652954, -0.017197145149111748, 0.018858855590224266, + 0.017871234565973282, 0.007164170499891043, 0.006027622614055872, 0.01622520014643669, + 0.0001946093252627179, 0.02226066030561924, 0.00045804836554452777, 0.0275906790047884, + 0.017353909090161324, 0.03342234343290329, -0.02447105012834072, 0.007132817525416613, + 0.00374081009067595, -0.02296610362827778, 0.021837394684553146, 0.012345260940492153, + -0.027496619150042534, -0.024345638230443, -0.0032685548067092896, -0.0009939894080162048, + -0.0066076540388166904, -0.03771771118044853, 0.03771771118044853, -0.008559380657970905, + -0.02694794163107872, -0.03273257613182068, 0.018231794238090515, -0.02447105012834072, + 0.03301475569605827, -0.003572287503629923, -0.019768094643950462, -0.052923936396837234, + -0.03602464869618416, 0.03759229928255081, -0.009750796481966972, 0.02892318367958069, + -0.010871668346226215, 0.00643913121894002, -0.019485916942358017, -0.008935617282986641, + 0.005941401701420546, 0.011044109240174294, 0.0004367381043266505, -0.03017730452120304, + -0.025458671152591705, 0.04053948447108269, -0.019564298912882805, 0.028766417875885963, + -0.009076706133782864, -0.004122925456613302, 0.013042866252362728, -0.014391046948730946, + 0.022370396181941032, 0.042953670024871826, -0.02890750579535961, 0.0009533285046927631, + -0.013129087164998055, -0.007399318274110556, -0.02555273100733757, -0.01347397081553936, + 0.004738228861242533, 0.010895182378590107, -0.0012168900575488806, -0.07537271827459335, + 0.03430023044347763, 0.017071731388568878, 0.04630844667553902, 0.045555971562862396, + 0.006533190608024597, -0.010032974183559418, -0.0011561434948816895, 0.04229525476694107, + -0.029832420870661736, 0.012862586416304111, 0.019517268985509872, 0.0071406555362045765, + -0.006066814064979553, 0.017542028799653053, 0.04571273922920227, -0.004667684435844421, + 0.005294745322316885, -0.04583815112709999, -0.010244606994092464, 0.019313475117087364, + -0.024580786004662514, 0.022354720160365105, -0.02447105012834072, 0.032826635986566544, + -0.005757202859967947, -0.039285365492105484, 0.07054434716701508, -0.0378117710351944, + 0.022119572386145592, -0.011639817617833614, 0.0027159573510289192, 0.025474347174167633, + 0.04301637411117554, 0.024267256259918213, 0.01505729928612709, 0.00025253897183574736, + -0.006827125325798988, 0.00805773213505745, -0.00024666026001796126, 0.019815122708678246, + -0.0038093947805464268, -0.032826635986566544, -0.021774688735604286, -0.004773500841110945, + -0.00514973746612668, -0.023248281329870224, -0.015276770107448101, 0.001614681794308126, + 0.0026199386920779943, -0.017212821170687675, -0.01017406303435564, 0.025333259254693985, + -0.000777947367168963, -0.008065570145845413, -0.04862857237458229, -0.021853070706129074, + -0.02630520425736904, 0.022417426109313965, -0.01782420463860035, -0.03809394687414169, + -0.008410453796386719, -0.0353662334382534, -0.009633222594857216, 0.02505108155310154, + -0.01116168312728405, -0.020818421617150307, 0.05743877589702606, 0.01080896146595478, + 0.018529647961258888, -0.03088274784386158, 0.024486728012561798, 0.008300717920064926, + -0.022856369614601135, 0.005882614757865667, -0.015402182936668396, -0.02632088027894497, + 0.030396776273846626, 0.027183089405298233, -0.007708929479122162, 0.04938104376196861, + 0.008198820985853672, 0.036181412637233734, -0.0181377362459898, 0.01857667788863182, + -0.01356802973896265, 0.002130047418177128, -0.006290204357355833, 0.02467484585940838, + 0.007806907873600721, -0.015613815747201443, 0.004742147866636515, 0.02066165581345558, + 0.0032117273658514023, -0.0011718199821189046, 0.04916157200932503, 0.038971833884716034, + 0.030287040397524834, -0.00670563243329525, -0.00257486873306334, -0.03988107293844223, + 0.022433102130889893, 0.0020888964645564556, 0.016726849600672722, -0.062423910945653915, + 0.018231794238090515, 0.008896426297724247, -0.04110383987426758, 0.0019291919888928533, + -0.02675982192158699, 0.011702523566782475, -0.016209524124860764, -0.0011355680180713534, + 0.004593221005052328, 0.004111167974770069, 0.07907237857580185, -0.041824959218502045, + 0.007771635893732309, -0.008473159745335579, -0.0021222091745585203, 0.028703711926937103, + 0.03288934379816055, -0.023044487461447716, -0.023938048630952835, -0.003572287503629923, + 0.018717767670750618, 0.003954402636736631, -0.0019389898516237736, 0.018592355772852898, + 0.00273555307649076, 0.004052381031215191, -0.0046637654304504395, -0.015308124013245106, + 0.03658900037407875, -0.05486782640218735, 0.002888399176299572, 0.037122003734111786, + 0.023310987278819084, -0.02865668199956417, -0.00705443462356925, -0.006474403664469719, + 0.012000377289950848, 0.04235796257853508, -0.013136925175786018, -0.0011198915308341384, + 0.03279528394341469, -0.015449211932718754, 0.015919508412480354, -0.036432236433029175, + -0.002782582538202405, -0.022182278335094452, -0.039222657680511475, 0.056404124945402145, + -0.0011825975961983204, 0.013278014026582241, 0.008253688924014568, -0.06929022818803787, + 0.03514676168560982, -0.005032163579016924, 0.0024122248869389296, 0.018169088289141655, + -0.03423752263188362, 0.0030647600069642067, 0.015966538339853287, 0.014218605123460293, + -0.039410777390003204, 0.026226820424199104, -0.03790583088994026, 0.016476023942232132, + -0.03207416459918022, -0.015135682187974453, 0.010785447433590889, 0.03727876767516136, + 0.005137979984283447, 0.015645168721675873, 0.029769714921712875, -0.0173695869743824, + -0.0023181657306849957, -0.0350213497877121, -0.018984267488121986, 0.007991107180714607, + 0.023044487461447716, -0.007818665355443954, 0.02327963523566723, -0.04053948447108269, + 0.002004635287448764, -0.058065835386514664, 0.023640194907784462, -0.013881560415029526, + -0.0034743091091513634, -0.007230795919895172, -0.044489968568086624, -0.002576828235760331, + 0.008888588286936283, 0.038344770669937134, -0.0038897369522601366, 0.033829934895038605, + -0.02194713056087494, -0.01857667788863182, -0.02815503254532814, -0.006027622614055872, + 0.01490053441375494, 0.021633600816130638, 0.06722092628479004, -0.005322179291397333, + -0.02624249830842018, 0.02561543695628643, 0.03749823942780495, -0.007285663392394781, + 0.015268932096660137, -0.02726147137582302, -0.019940536469221115, -0.02351478300988674, + -0.00465984595939517, -0.019579974934458733, -0.0011326286476105452, -0.00047739906585775316, + -0.025521377101540565, 0.042765550315380096, 0.023028811439871788, -0.01699334941804409, + 0.003925009164959192, 0.013654250651597977, -0.009899723343551159, 0.0016411358956247568, + -0.03263852000236511, 0.026524674147367477, -0.001224728301167488, -0.03213686868548393, + -0.020583273842930794, -0.009789987467229366, -0.022809339687228203, 0.029079947620630264, + -0.02536461316049099, 0.008159630000591278, -0.009656737558543682, -0.013230984099209309, + -0.01518271118402481, -0.006074652075767517, 0.0023710739333182573, 0.0007407156517729163, + -0.004742147866636515, 0.02338937111198902, -0.01353667676448822, 0.006654683500528336, + 0.03702794387936592, -0.022041190415620804, -0.04690415412187576, -0.050697870552539825, + 0.01928212121129036, 0.004507000092417002, 0.003697699634358287, -0.013654250651597977, + 0.05467970669269562, 0.010997080244123936, -0.019297799095511436, -0.039348069578409195, + 0.059884313493967056, -0.008394777774810791, -0.011710361577570438, -0.015880316495895386, + -0.0011247904039919376, -0.006458727177232504, 0.024392668157815933, 0.0216963067650795, + 2.584176581876818e-5, -0.0037368908524513245, 0.03796853497624397, -0.04367478936910629, + 0.007469862699508667, -0.027919884771108627, 0.029409155249595642, -0.0028531269636005163, + -0.009962429292500019, -0.023671548813581467, 0.008136115036904812, -0.024439698085188866, + -0.008998323231935501, -0.008763175457715988, -0.03198010474443436, 0.0015118045266717672, + -0.0017430332954972982, -0.002161400392651558, 0.000911687733605504, -0.024753227829933167, + 0.0027453508228063583, -0.031556837260723114, -0.00967241358011961, -0.0493183359503746, + -0.028013944625854492, 0.003370452206581831, -0.06245526298880577, 0.02561543695628643, + 0.0006569442339241505, 0.025348935276269913, -0.01984647661447525, -0.021006539463996887, + -0.030459482222795486, 0.01226687803864479, 0.008755337446928024, -0.009985944256186485, + -0.019940536469221115, -0.009296177886426449, 0.025521377101540565, -0.0010777608258649707, + 0.02619546838104725, -0.019642682746052742, -0.007626628037542105, -0.018733443692326546, + 0.024643491953611374, -0.004224822856485844, -0.024251578375697136, 0.002827652730047703, + -0.024392668157815933, -0.036181412637233734, 0.025568407028913498, -0.004393345210701227, + -0.05649818480014801, -0.02030109614133835, -0.013897236436605453, -0.022668249905109406, + -4.8927893658401445e-5, 0.026979293674230576, 0.026681439951062202, -0.033767227083444595, + -0.026650087907910347, -0.036996591836214066, -0.04558732733130455, -0.0025983834639191628, + 0.029409155249595642, -0.014061840251088142, -0.03266987204551697, -0.029330771416425705, + -0.01145169883966446, 0.03398669883608818, -0.005169332958757877, 0.007951915264129639, + -0.034456994384527206, -0.03778041899204254, -0.009633222594857216, 0.028296122327446938, + 0.028013944625854492, 0.02396940253674984, 0.015480564907193184, 0.0035664087627083063, + -0.036244116723537445, 0.039912424981594086, -0.02440834417939186, -0.010675711557269096, + 0.014806474559009075, -0.0017763458890840411, -0.028954535722732544, -0.005714092403650284, + 0.003090234473347664, 0.0006662521627731621, -0.0061216820031404495, 0.003149021416902542, + 0.01705605536699295, -0.011569272726774216, -0.010252445004880428, -0.007422833237797022, + -0.0353662334382534, 0.02904859557747841, -0.009186442010104656, -0.029518891125917435, + -0.012948807328939438, 0.029942156746983528, -0.019109679386019707, 0.006552786100655794, + -0.01508865226060152, 0.00017011475574690849, -0.00630979984998703, 0.003090234473347664, + -0.0071249790489673615, -0.0517638735473156, -0.007669738493859768, 0.05442888289690018, + -0.007258229423314333, -0.01680523157119751, -0.009985944256186485, 0.016914967447519302, + 0.010675711557269096, -0.042138490825891495, -0.01315260212868452, 0.053237468004226685, + -0.006352910306304693, 0.04088436812162399, 0.008245850913226604, 0.07179847359657288, + 0.02111627534031868, 0.011263580992817879, -0.004620654974132776, 0.005921806208789349, + -0.00013178076187614352, -0.013999134302139282, 0.008418291807174683, -0.017730146646499634, + 0.0025807474739849567, -0.011373316869139671, -0.039724305272102356, 0.0644618570804596, + -0.03511540964245796, 0.03818800672888756, -0.018937237560749054, -0.009554839693009853, + -0.009209956973791122, 0.01744796894490719, -0.011530081741511822, 0.0022632977925240993, + -0.001071882201358676, 0.034645114094018936, 0.007277825381606817, 0.044740792363882065, + 0.011921994388103485, 0.047092270106077194, 0.020018918439745903, -0.008582895621657372, + -0.016632789745926857, 0.07273906469345093, -0.0110049182549119, 0.024047784507274628, + 0.021084921434521675, 0.04837774485349655, -0.0018645263044163585, 0.025474347174167633, + 0.027089029550552368, -0.018670737743377686, 0.009915400296449661, 0.0013863923959434032, + 0.025286229327321053, -0.038971833884716034, -0.04649656265974045, -0.04336125776171684, + 0.04508567601442337, 0.01915670931339264, 0.022919075563549995, -0.002326003974303603, + -0.04981998726725578, -0.009468618780374527, -0.007172008510679007, 0.017150115221738815, + 0.031933076679706573, 0.02003459446132183, -0.03868965432047844, -0.033516403287649155, + -0.02638358622789383, 0.013591544702649117, 0.041824959218502045, 0.0017126599559560418, + -0.029377801343798637, 0.008629925549030304, -0.0232639592140913, 0.011412507854402065, + 0.002200591843575239, -0.015190549194812775, 0.037247415632009506, 0.007395399268716574, + -0.024267256259918213, -0.025145141407847404, -0.004785258322954178, 0.031478457152843475, + -0.030428128316998482, 0.003413562662899494, 0.002376952674239874, -0.00039019843097776175, + 0.02505108155310154, 0.019313475117087364, 0.028045296669006348, 0.028829123824834824, + 0.02284069173038006, -0.01801232434809208, -0.01229823101311922, -0.009061029180884361, + -0.003893656190484762, 0.020018918439745903, 0.021727658808231354, 0.0024788500741124153, + 0.0025533135049045086, 0.039159949868917465, -0.02707335352897644, 0.012376613914966583, + -0.0006015865365043283, -0.0350213497877121, 0.005913967732340097, 0.056843068450689316, + 0.019564298912882805, -0.02226066030561924, 0.0016068434342741966, 0.0032999077811837196, + -0.006313719321042299, 0.024941345676779747, -0.00291583314538002, -0.024110490456223488, + -0.012948807328939438, 0.05910048633813858, -0.004420779179781675, -0.004228741861879826, + -0.0010640439577400684, -0.027355531230568886, 0.008990485221147537, 0.0011757391039282084, + 0.025380289182066917, -0.004350234754383564, -0.03558570519089699, 0.04781339317560196, + -0.030396776273846626, -0.04132331162691116, 0.031102219596505165, 0.042640138417482376, + -0.02802962064743042, -0.003587963990867138, -0.0053927237167954445, 0.01502594631165266, + -0.003246999578550458, 0.0452737957239151, -0.017855558544397354, 0.006325476337224245, + 0.014782960526645184, -0.001190435839816928, 0.03270122408866882, -0.012682306580245495, + -0.028452886268496513, 0.0010973565513268113, 0.029707008972764015, 0.018623707816004753, + 0.03749823942780495, -0.025004051625728607, -0.030334070324897766, 0.03931671753525734, + -0.019674034789204597, -0.015425697900354862, -0.02238607406616211, -0.02009730041027069, + -0.02378128282725811, -0.0010424887295812368, 0.047970157116651535, 0.03183901682496071, + -0.015308124013245106, 0.008379100821912289, -0.01113033015280962, 0.014822151511907578, + 0.011255742982029915, -0.019579974934458733, 0.018153412267565727, 0.030537864193320274, + -0.004706875886768103, -0.03596194088459015, 0.02669711597263813, -0.0011179319117218256, + -0.006834963336586952, -0.0019233132479712367, 0.0012276676716282964, 0.015214064158499241, + 0.01693064346909523, 0.008755337446928024, -0.029032917693257332, -0.04539920762181282, + -0.012658791616559029, -0.0044834851287305355, 0.013991295360028744, 0.005224200896918774, + -0.010613005608320236, -0.017353909090161324, 0.006058975588530302, -0.004322800785303116, + -0.0027316338382661343, 0.007944077253341675, -0.04367478936910629, -0.02117898128926754, + 0.009445104748010635, 0.021147627383470535, 0.0129409683868289, 0.007203361950814724, + 0.006756580900400877, -0.020065948367118835, -0.02904859557747841, -0.01578625664114952, + 0.016961997374892235, 0.003664386924356222, -0.0251137875020504, 0.03361046314239502, + 0.0017596895340830088, 0.018184766173362732, -0.011530081741511822, 0.03204280883073807, + 0.016272230073809624, -0.02473755180835724, -0.0007363066542893648, 0.020379478111863136, + -0.01782420463860035, 0.011459537781774998, 0.02478458173573017, 0.05493053421378136, + -0.010785447433590889, 0.00702308164909482, 0.0049459426663815975, 0.026775499805808067, + 0.02226066030561924, -0.007262148894369602, -0.008355585858225822, -0.01055813767015934, + 0.004032785072922707, -0.03166657313704491, -0.016899291425943375, -0.02296610362827778, + -0.03803124278783798, -0.03480187803506851, 0.024063460528850555, -0.02694794163107872, + 0.018733443692326546, 0.0007456145831383765, 0.004581463523209095, 0.0015529554802924395, + 0.0161154642701149, 0.045054323971271515, 0.023875342682003975, 0.013168278150260448, + -0.013136925175786018, 0.004115086980164051, -0.003537015290930867, -0.009586192667484283, + -0.004507000092417002, -0.0030079325661063194, -0.002235863823443651, -0.026461968198418617, + 0.02478458173573017, -3.1720461265649647e-5, 0.04260878637433052, 0.010119195096194744, + 0.0014197049895301461, 0.00954700168222189, 0.03746688738465309, -0.02130439318716526, + -0.005353532265871763, -0.014453752897679806, 0.02625817432999611, -0.04411373287439346, + -0.03138439729809761, 0.022715279832482338, 0.005302583333104849, -0.03082004189491272, + -0.009954591281712055, -0.01863938383758068, -0.011686846613883972, 0.005290826316922903, + -0.021351423114538193, -0.048471804708242416, -0.02776312083005905, 0.0240321084856987, + 0.02371857687830925, -0.0008313455618917942, 0.005220281891524792, -0.033892638981342316, + 0.01743229292333126, 0.052547700703144073, -0.030161628499627113, -0.02721444144845009, + -0.0003118158201687038, -0.04000648483633995, -0.019830800592899323, -0.018858855590224266, + 0.012737173587083817, 0.026524674147367477, -0.004773500841110945, -0.007556083612143993, + 0.018310178071260452, -0.008198820985853672, -0.018106382340192795, -0.023232605308294296, + -0.02226066030561924, 0.029754038900136948, 0.009398074820637703, 0.033265579491853714, + 0.023577488958835602, -0.023985078558325768, -0.010291636921465397, -0.018216118216514587, + -0.01232958398759365, -0.0061412774957716465, 0.008951294235885143, -0.0026473726611584425, + -0.018796149641275406, -0.006239255890250206, -0.024894315749406815, -0.03146278113126755, + -0.018811825662851334, -0.019485916942358017, -0.00031818440766073763, -0.011475213803350925, + 0.012596085667610168, 0.050823282450437546, -0.030647600069642067, 0.027684736996889114, + 0.03567976504564285, 0.014445914886891842, -0.01730688102543354, -0.005051759071648121, + -0.0044834851287305355, 0.01017406303435564, -0.025693818926811218, 0.011138169094920158, + 0.0006804590229876339, -0.020144330337643623, 0.005326098296791315, 0.005984512157738209, + -0.0015715713379904628, -0.019674034789204597, 0.011976862326264381, 0.013011513277888298, + -0.0022143085952848196, 0.03489593788981438, 0.03232498839497566, 0.03044380620121956, + 0.016523053869605064, -0.025772202759981155, -0.007850018329918385, -0.020975185558199883, + 0.027857178822159767, -0.003482147352769971, 0.015292447060346603, -0.013842368498444557, + -0.011577111668884754, -0.0110049182549119, -0.0001840766635723412, -0.027183089405298233, + 0.0021359261590987444, -0.0016989430878311396, -0.014163737185299397, 0.01058949064463377, + -0.00453443406149745, 0.005298664327710867, -0.04267149418592453, -0.015127843245863914, + -0.0042679328471422195, 0.008222335949540138, 0.03790583088994026, -0.009343206882476807, + -0.01163197960704565, 0.02777879685163498, -0.005239877384155989, -0.008849396370351315, + -0.025035405531525612, 0.015268932096660137, -0.014320502988994122, 0.00377216306515038, + -0.015457050874829292, 0.009860532358288765, -0.018216118216514587, -0.04006918892264366, + 0.005020406097173691, -0.010471916757524014, -0.033453699201345444, -0.009742958471179008, + 0.013489646837115288, -0.031478457152843475, 0.023953724652528763, -0.013677765615284443, + 0.015895992517471313, -0.018106382340192795, 0.05772095173597336, 0.0019203738775104284, + 0.03329693153500557, 0.011498728767037392, -0.008888588286936283, -0.015308124013245106, + 0.006129520013928413, -0.020473537966609, 0.008363424800336361, -0.007571760099381208, + 0.012117951177060604, -0.004119005985558033, 0.026273850351572037, 0.000795093597844243, + 0.009272662922739983, -0.03317151963710785, 0.01940753310918808, 0.006219659931957722, + 0.003372411709278822, -0.02036380209028721, 0.002931509632617235, -0.0010709024500101805, + 0.025599760934710503, 0.006000188644975424, -0.028766417875885963, 0.02059894986450672, + -0.008567219600081444, 0.012815556488931179, 0.02542731910943985, -0.014555650763213634, + 0.016852261498570442, -0.025474347174167633, 0.024878639727830887, 0.0001223503495566547, + -0.001590187195688486, 0.007505134679377079, 0.010699226520955563, 0.04216984286904335, + 0.02467484585940838, 0.019799446687102318, -0.008190982975065708, -0.01601356640458107, + 0.0071406555362045765, -0.020144330337643623, 0.013082057237625122, -0.007689333986490965, + 0.014038325287401676, 0.018028000369668007, -0.012815556488931179, -0.03266987204551697, + -0.006901588756591082, 0.026524674147367477, 0.00812043808400631, 0.0021084921900182962, + -0.02142980508506298, 0.00702308164909482, 0.006337233819067478, 0.02149251103401184, + 0.013779662549495697, -0.009774311445653439, -0.04596356302499771, -0.024126166477799416, + -0.01515135820955038, -0.003041245276108384, -0.0036839826498180628, -0.020834097638726234, + -0.00022926913516130298, -0.0018880411516875029, 0.005055678077042103, 0.03524082154035568, + 0.032952047884464264, -0.0030980727169662714, 0.024753227829933167, 0.007755959406495094, + -0.013066381216049194, 0.025333259254693985, 0.012643114663660526, 0.017996646463871002, + -0.006329395808279514, -0.018608031794428825, -0.011733876541256905, 0.01661711372435093, + 0.026712793856859207, -0.0070857880637049675, 0.019862152636051178, 0.0011140127899125218, + -0.007344450335949659, 0.02605437859892845, 0.017197145149111748, -0.0173695869743824, + 0.015966538339853287, -0.006329395808279514, -0.01984647661447525, 0.031211955472826958, + -0.018811825662851334, -0.0038858179468661547, 0.05543218180537224, -0.011812259443104267, + -0.019689710810780525, -0.03229363635182381, -0.0015774499624967575, 0.008622086606919765, + 0.020003242418169975, -0.03831341862678528, -0.0017175589455291629, 0.01148305181413889, + -0.013740471564233303, -0.0071210600435733795, 0.054491590708494186, -0.02592896670103073, + -0.01780852861702442, 0.009837017394602299, 0.02890750579535961, -0.006983890663832426, + -0.02180604264140129, -0.006431293208152056, 0.028484240174293518, -0.0006520453025586903, + -0.012353098951280117, -4.360032471595332e-5, 0.0068388828076422215, -0.00776771642267704, + 0.00029834380256943405, -0.004800934810191393, -0.011028433218598366, 0.009837017394602299, + -0.0030510430224239826, -0.01553543284535408, -0.025270553305745125, -0.029957832768559456, + 0.02359316498041153, -0.042326610535383224, -0.0037094568833708763, -0.01576274260878563, + -0.026085732504725456, 0.026806851848959923, -0.006051137577742338, -0.009962429292500019, + -0.01106762420386076, -0.02365587092936039, -0.010855991393327713, 0.0010268121259287, + 0.0034351178910583258, 0.013991295360028744, 0.03530352562665939, 0.015558947809040546, + -0.01388939842581749, -0.01356802973896265, -0.03273257613182068, 0.00728958286345005, + -0.004095491487532854, 0.007712848950177431, 0.008277203887701035, -0.034519702196121216, + -0.009899723343551159, -0.0005756223108619452, -0.00890426430851221, -0.024204550310969353, + ], + index: 73, + }, + { + title: "Jubilee (biblical)", + text: "The Jubilee (Hebrew yovel \u05d9\u05d5\u05d1\u05dc) year is the year at the end of seven cycles of shmita (Sabbatical years), and according to Biblical regulations had a special impact on the ownership and management of land in the Land of Israel; there is some debate whether it was the 49th year (the last year of seven sabbatical cycles, referred to as the Sabbath's Sabbath), or whether it was the following (50th) year. Jubilee deals largely with land, property, and property rights.", + vector: [ + -0.007218821905553341, 0.000699120108038187, -0.013559678569436073, 0.007747226394712925, + -0.03489097207784653, -0.006568477489054203, -0.0091129494830966, -0.010665646754205227, + -0.01128347311168909, 0.0755700096487999, -0.010405508801341057, -0.06435156613588333, + 0.005763676483184099, 0.03719969466328621, 0.015502582304179668, 0.005336887668818235, + 0.034143075346946716, -0.011478576809167862, 0.04422341287136078, 0.012234602123498917, + -0.038858070969581604, -0.005324693862348795, -0.01055996585637331, -0.00483287125825882, + -0.017786916345357895, -0.012047627940773964, 0.012462222948670387, -0.01845351979136467, + -0.03349273279309273, 0.02832249365746975, 0.02861514873802662, 0.007332631852477789, + -0.00664164125919342, -0.014283186756074429, 0.02687547728419304, 0.0005273885908536613, + -0.00814149808138609, 0.006373374257236719, -0.03963848575949669, -0.0915684774518013, + 0.013177601620554924, -0.019429035484790802, 0.0041784620843827724, 0.013592195697128773, + 0.02206292934715748, 0.0025688600726425648, -0.010738810524344444, 0.01920141465961933, + -0.04750765115022659, 0.027412012219429016, -0.006531895603984594, 0.015218056738376617, + 0.03667941689491272, 0.07433435320854187, 0.02518458291888237, -0.05391354113817215, + -0.007804131601005793, 0.029980871826410294, -0.06318094581365585, -0.0011320055928081274, + -0.004865388385951519, -0.023249808698892593, -0.01120218075811863, 0.003971165046095848, + -0.006365244742482901, -0.0026907995343208313, 0.012868687510490417, 0.045751720666885376, + 0.012982497923076153, 0.006474990397691727, -0.01770562306046486, -0.02773718349635601, + 0.03726472705602646, 0.0036703806836158037, -0.027493305504322052, 0.036419279873371124, + 0.03466334939002991, 0.028989097103476524, -0.059506502002477646, 0.04806044325232506, + -0.024127773940563202, -0.024745600298047066, -0.04077658802270889, -0.04090665653347969, + -0.001985582523047924, 0.029216717928647995, 0.04106924310326576, -0.07127773761749268, + 0.03654934838414192, -0.00013070396380499005, -0.016843916848301888, -0.04289020597934723, + -0.06269319355487823, -0.034728385508060455, 0.04910099506378174, -0.012267119251191616, + 0.012608549557626247, 0.015803366899490356, 0.00916985422372818, -0.06679035723209381, + 0.03220830112695694, -0.06331101804971695, -0.05745792016386986, -0.014762815088033676, + 0.007970781996846199, -0.011250955983996391, -0.011039594188332558, 0.0011777328327298164, + 0.009283664636313915, -0.003737447317689657, 0.019819242879748344, 0.041459448635578156, + 0.020794758573174477, -0.002298560691997409, -0.031818095594644547, 0.017689364030957222, + -0.016226090490818024, -0.04503634199500084, -0.0043288543820381165, 6.630463030887768e-5, + -0.013421480543911457, -0.04253251850605011, 0.008999139070510864, -0.014055565930902958, + 0.007946394383907318, -0.04048393294215202, -0.005572637543082237, 0.02204667218029499, + 0.043312929570674896, -0.027899770066142082, -0.05976663902401924, -0.05739288404583931, + -0.042630068957805634, -0.02007937990128994, 0.0036581866443157196, 0.0041337511502206326, + 0.00190428935457021, 0.032696060836315155, -0.028793994337320328, 0.02066469006240368, + -0.013128825463354588, -0.015193668194115162, 0.016234219074249268, 0.0703672543168068, + 0.04763771966099739, -0.057945676147937775, -0.0008322374778799713, 0.030940130352973938, + -0.010242922231554985, -0.04136189818382263, 0.054466333240270615, 0.030598698183894157, + 0.01059248298406601, -0.001737638609483838, -0.002672508591786027, 0.0195591039955616, + -0.04549158364534378, 0.03219204396009445, -0.018014537170529366, 0.023835118860006332, + -0.005405987147241831, -0.024908186867833138, -0.029980871826410294, 0.0351836271584034, + -0.01421815250068903, -0.012527257204055786, 0.01985175907611847, -0.04526396468281746, + 0.029151683673262596, 0.0165106151252985, -0.04393075779080391, -0.05199502781033516, + -0.05267788842320442, -0.05212509632110596, 0.053295716643333435, -0.036874521523714066, + 0.03625669330358505, 0.00856015644967556, -0.023184774443507195, -0.024940703064203262, + -0.03198068216443062, 0.010454284958541393, -0.009682000614702702, 0.009226759895682335, + 0.015258703380823135, -0.0037963849026709795, 0.018323451280593872, 0.008340665139257908, + -0.043833207339048386, -0.03437069430947304, -0.00972264725714922, -0.011437930166721344, + 0.03139537200331688, 0.027428271248936653, 0.0017427194397896528, -0.030257267877459526, + 0.0001978977379621938, 0.023022187873721123, -0.062010329216718674, -0.0243228767067194, + 0.04806044325232506, 0.02380260080099106, 0.050336647778749466, 0.04396327584981918, + 0.03528117761015892, 0.019233932718634605, -0.004946681205183268, -0.051962509751319885, + 0.06763580441474915, -0.05088943988084793, 0.06854628771543503, 0.03905317559838295, + -0.005023909732699394, -0.046564649790525436, 0.010031560435891151, -0.01029982790350914, + 0.02588370256125927, 0.025786152109503746, 0.03661438450217247, 0.0006950554670765996, + 0.04932861402630806, -0.05749043449759483, -0.011153404600918293, -0.030679991468787193, + 0.01363284233957529, 0.010803844779729843, 0.007039976771920919, -0.005418180953711271, + -0.041231829673051834, -0.014104342088103294, -0.022469395771622658, 0.02907039038836956, + -0.03778500482439995, 0.009072302840650082, -0.04532899707555771, -0.011234697885811329, + -0.006068525370210409, 0.022355584427714348, 0.019412776455283165, -0.05414116382598877, + 0.018209639936685562, -0.02604628913104534, -0.038858070969581604, -0.013356446288526058, + -0.03541124612092972, 0.003912227228283882, -0.022306809201836586, 0.03674445301294327, + -0.03986610472202301, 0.006714805029332638, 0.028127390891313553, -0.009771423414349556, + -0.020209448412060738, 0.008174015209078789, -0.03485845401883125, -0.01850229501724243, + -0.030598698183894157, 0.012242731638252735, -0.034273143857717514, 0.061425019055604935, + -0.0097795519977808, 0.024648047983646393, -0.02206292934715748, -0.05323068052530289, + 0.019705431535840034, 0.036646902561187744, -0.020518362522125244, 0.003511859104037285, + 0.001754913479089737, 0.01427505724132061, 0.049068477004766464, 0.028680182993412018, + 0.028420045971870422, 0.03970351815223694, -0.022843344137072563, -0.007832583971321583, + 0.008535768836736679, 0.021558912470936775, -0.0019916794262826443, -0.007243209518492222, + 0.022664498537778854, -0.00731230853125453, -0.01238905917853117, 0.04266258701682091, + 0.02890780381858349, 0.02430661767721176, -0.04106924310326576, -0.008137432858347893, + -0.01549445278942585, 0.01450267806649208, -0.006231111474335194, -0.041296862065792084, + 0.012437834404408932, 0.02929801121354103, -0.00011679522867780179, -0.0378500372171402, + -0.02733071893453598, 0.019802983850240707, 0.006292080972343683, -0.035606350749731064, + -0.0065400246530771255, 0.004397953394800425, -0.021623948588967323, -0.013559678569436073, + -0.005930326879024506, -0.013226376846432686, -0.04438599944114685, 0.011689938604831696, + 0.02791602909564972, -0.0028777734842151403, 0.052320197224617004, -0.004084974993020296, + -0.02269701659679413, 0.01364097185432911, 0.0831790342926979, -0.03732976317405701, + -0.010543706826865673, -0.02768840827047825, 0.018437260761857033, 0.012055757455527782, + 0.037980105727910995, 0.008271566592156887, -0.02025822550058365, -0.05407612770795822, + 0.03677697107195854, -0.008035816252231598, -0.03729724511504173, -0.012681713327765465, + -0.01462461706250906, 0.004971069283783436, -0.011063982732594013, -0.05911629647016525, + 0.014088083058595657, 0.02687547728419304, 0.007287920918315649, -0.027249425649642944, + -0.0067513869144022465, 0.044776204973459244, 0.010755068622529507, -0.026420237496495247, + 0.012884946539998055, -0.03963848575949669, 0.011340378783643246, -0.016478098928928375, + -0.008007364347577095, 0.0037211887538433075, -0.010153500363230705, -0.030273526906967163, + 0.048775821924209595, -0.025574790313839912, 0.0008098818943835795, 0.023477429524064064, + -0.0029326463118195534, 0.00728385616093874, 0.018811209127306938, -0.011023336090147495, + -0.06835118681192398, -0.029054131358861923, 0.00732856709510088, -0.01364097185432911, + 0.0486457534134388, -0.023054705932736397, 0.0060319434851408005, 0.013771040365099907, + -0.027769701555371284, -0.05856350436806679, 6.164457317936467e-6, -0.0024794377386569977, + -0.01603911630809307, -0.02019319124519825, -0.03765493631362915, 0.006292080972343683, + 0.042500000447034836, 0.0020953279454261065, -0.016388677060604095, 0.01398240216076374, + -0.051214613020420074, 0.015575746074318886, 0.028127390891313553, 0.004808483179658651, + 0.0074301837012171745, 0.02321729063987732, -0.007808196358382702, 0.0026481207460165024, + 0.010787585750222206, -0.007978911511600018, 0.01218582596629858, 0.004369500558823347, + -0.01128347311168909, -0.021136188879609108, -0.02907039038836956, 0.01677888259291649, + -0.002062810817733407, 0.014266927726566792, 0.0044629876501858234, 0.0539785772562027, + 0.016860175877809525, -0.02251817099750042, 0.027412012219429016, 0.008072398602962494, + 0.05924636498093605, -0.050336647778749466, 0.05192999169230461, 0.017315417528152466, + 0.03521614521741867, 0.027720926329493523, -0.045881789177656174, 0.00305458577349782, + 0.02407899685204029, 0.0025790215004235506, 0.012941851280629635, 0.03609410673379898, + 0.0006533928099088371, 0.01804705336689949, -0.013136954978108406, -0.009332440793514252, + 0.026550306007266045, 0.04380068928003311, -0.0064058913849294186, -0.01059248298406601, + -0.032923679798841476, 0.018599847331643105, -0.06568477302789688, 0.023721307516098022, + -0.060677122324705124, -0.009291794151067734, -0.00843821745365858, -0.03237088769674301, + -0.03651683032512665, 0.033687833696603775, -0.04380068928003311, -0.012234602123498917, + 0.031232785433530807, 0.04984889179468155, 0.03895562142133713, -0.010868879035115242, + -0.002457082038745284, -0.0010923751397058368, 0.015258703380823135, 0.027460787445306778, + 0.01840474270284176, -0.017543036490678787, -0.05153978615999222, -0.010698163881897926, + -0.010511189699172974, -0.01000717282295227, -0.04119931161403656, -0.01569768600165844, + 0.02554227225482464, 0.012917463667690754, 0.03463083505630493, -0.023542463779449463, + -0.028306234627962112, -0.005060491617769003, 0.03131407871842384, 0.06422150135040283, + -0.015274961479008198, -0.07153787463903427, -0.002747704740613699, 0.015079858712852001, + -0.028533855453133583, 0.03253347426652908, 0.023835118860006332, -0.05355585366487503, + -0.022436877712607384, -0.002007937990128994, -0.0037252535112202168, -0.014161246828734875, + 0.011275344528257847, 0.025038255378603935, 0.0014002725947648287, -0.0054466333240270615, + -0.08857689052820206, 0.0565149188041687, -0.021656464785337448, -0.016632555052638054, + 0.026777926832437515, -0.010950172320008278, 0.04162203520536423, 0.016681330278515816, + 0.025688599795103073, -0.013145084492862225, -0.05280795693397522, 0.05014154687523842, + -0.018323451280593872, 0.04659716784954071, 0.012267119251191616, -0.028582632541656494, + -0.023574979975819588, 0.015014823526144028, 0.03157421573996544, 0.010324215516448021, + -0.0009887265041470528, 0.009698259644210339, 0.028127390891313553, 0.020063120871782303, + -0.027997322380542755, -0.03446824848651886, 0.026013771072030067, -0.0323871448636055, + -0.04591430723667145, -0.01741296797990799, 0.0008662789477966726, 0.039605967700481415, + -0.009438121691346169, -0.010186017490923405, -0.02025822550058365, 0.006133559625595808, + 0.0007539929356426001, -0.0182258989661932, -0.005999425891786814, 0.012632938101887703, + -0.03152544051408768, -0.01122656837105751, 0.020225707441568375, -0.0004123081162106246, + 0.010746939107775688, -0.005950650200247765, -0.030777543783187866, -0.015470065176486969, + -0.0035423440858721733, 0.00852763932198286, 0.009958396665751934, -0.037622418254613876, + 0.024696825072169304, -0.0032374951988458633, 0.019185157492756844, 0.0008474799105897546, + 0.006466860882937908, 0.016291124746203423, 0.03254973143339157, 0.019754208624362946, + -0.050336647778749466, 0.027769701555371284, 0.02227429300546646, -0.022355584427714348, + -0.049068477004766464, 0.02089231088757515, -0.0047271898947656155, -0.021250000223517418, + 0.008365053683519363, -0.015421289019286633, 0.009828328154981136, -0.0059018745087087154, + 0.024583013728260994, 0.013901108875870705, 0.03710214048624039, 0.0032171718776226044, + -0.008917845785617828, -0.025233358144760132, 0.05830336734652519, -0.02240436151623726, + -0.0029163877479732037, 0.01671384833753109, 0.006625382695347071, 0.003654122119769454, + 0.035021040588617325, 0.03736228123307228, 0.010405508801341057, 0.012787395156919956, + 0.0020871986635029316, 0.013242635875940323, 0.004038231447339058, 0.022371843457221985, + -0.018209639936685562, -0.03654934838414192, -0.05605967715382576, 0.0863657221198082, + -0.03713465854525566, 0.006491248961538076, -0.04188217222690582, -0.011722455732524395, + -0.025526013225317, -0.03006216511130333, 0.004345112945884466, -0.018209639936685562, + -0.0023453040048480034, 0.03424062579870224, 0.014055565930902958, 0.048775821924209595, + -0.005084879230707884, 0.005844969302415848, -0.0168926939368248, 0.00230059283785522, + -0.009999043308198452, 0.01827467419207096, -0.01978672482073307, 0.010104724206030369, + -0.032354630529880524, 0.010551836341619492, -0.03511859104037285, 0.03476090356707573, + -0.03168802708387375, -0.02396518737077713, -0.011218438856303692, 0.04363810271024704, + -0.0003830934292636812, 0.005044233053922653, 0.030013389885425568, -0.0042678844183683395, + -0.0016766688786447048, 0.006926166824996471, -0.02890780381858349, 0.0009562093182466924, + 0.003552505746483803, -0.022469395771622658, -0.016591908410191536, -0.03921576216816902, + -0.005206819158047438, -0.01543754804879427, -0.035086072981357574, 0.042500000447034836, + -0.023347361013293266, -0.018551070243120193, -0.02692425437271595, 0.03191564604640007, + -0.06376625597476959, -0.0023574980441480875, -0.0068245502188801765, -0.024095255881547928, + -0.033330146223306656, 0.021786533296108246, -0.014478289522230625, -0.022371843457221985, + -0.016665073111653328, 0.0022314938250929117, -0.025753634050488472, -0.0027659956831485033, + 0.007231015712022781, -0.0004862339701503515, 0.034208111464977264, 0.007222886197268963, + -0.046922340989112854, -0.014779074117541313, 0.01639680564403534, 0.014705910347402096, + 0.00635305093601346, -0.03385042026638985, 0.011624904349446297, 0.003524053143337369, + 0.015917176380753517, 0.019006311893463135, 0.004824741743505001, 0.027005547657608986, + -0.008495122194290161, 0.018437260761857033, 0.003591120010241866, 0.04532899707555771, + 0.005117396824061871, -0.005552314221858978, -0.02656656503677368, 0.04503634199500084, + 0.023119740188121796, 0.02988331951200962, -0.033102523535490036, 0.013600325211882591, + -0.008836553432047367, 0.01827467419207096, 0.01944529451429844, 0.0020059056114405394, + -0.036354247480630875, 0.038728002458810806, -0.007210692390799522, 0.01612853817641735, + 0.012592291459441185, -0.03680948540568352, -0.01799827814102173, -0.0024489527568221092, + 0.02430661767721176, -0.03404552489519119, 0.00876338966190815, 0.013128825463354588, + -0.0032151394989341497, 0.00274973688647151, 0.033622801303863525, 0.0026704762130975723, + -0.025526013225317, -0.004101233556866646, 0.04916602745652199, 0.025233358144760132, + -0.006548154167830944, -0.02733071893453598, 0.01798201911151409, -0.02105489745736122, + 0.027070581912994385, -0.014023048803210258, 0.03993114084005356, -0.029639441519975662, + -0.009641353972256184, -0.00394677696749568, -0.0151774100959301, 0.019591622054576874, + 0.008991009555757046, -0.05433626472949982, 0.017965761944651604, -0.04649961739778519, + 0.002824933035299182, 0.03654934838414192, -0.03710214048624039, -0.025103289633989334, + -0.021965378895401955, 0.006084783934056759, -0.06880642473697662, 0.031818095594644547, + 0.009177983738481998, 0.04380068928003311, -0.014722169376909733, -0.028403786942362785, + 0.03993114084005356, -0.011966334655880928, -0.025217099115252495, -0.00543850427493453, + -0.0499139241874218, -0.04223986342549324, 0.016494357958436012, -0.002215235261246562, + 0.002686734776943922, 0.006999330595135689, -0.013811687007546425, -0.012080145068466663, + 0.009121078997850418, -0.043312929570674896, -0.04188217222690582, -0.003117587883025408, + 0.007100946735590696, 0.01430757436901331, -0.05212509632110596, -0.041296862065792084, + 0.01433196198195219, 0.009551932103931904, -0.008909717202186584, 0.03241966292262077, + -0.01978672482073307, -0.0061660767532885075, 0.00965761300176382, 0.03290742263197899, + -0.025135807693004608, 0.02263198234140873, 0.01151922345161438, -0.024387910962104797, + 0.012063886970281601, -0.02251817099750042, -0.0043085310608148575, 0.04162203520536423, + 0.011998851783573627, -0.0014388867421075702, 0.06275822222232819, -0.007930135354399681, + -0.05215761065483093, 0.036061592400074005, -0.011389154009521008, -0.008755260147154331, + 0.03069625049829483, 0.0013443835778161883, 0.038565415889024734, 0.009088561870157719, + 0.019705431535840034, -0.05183244124054909, 0.02344491146504879, 0.02570485882461071, + -0.02258320525288582, 0.011787489987909794, -0.005019844975322485, -0.05280795693397522, + -0.00869835540652275, 0.009438121691346169, 0.019754208624362946, 0.027818476781249046, + -0.016006598249077797, 0.02380260080099106, -0.031427886337041855, -0.026436494663357735, + -0.01664881408214569, 0.0024835022632032633, 0.0031582345254719257, -0.002715187380090356, + -0.04276013746857643, 0.008991009555757046, 0.018664881587028503, -0.02716813236474991, + -0.007523670792579651, 0.003875645576044917, 0.0444510318338871, -0.024696825072169304, + -0.001723412424325943, -0.02437165193259716, 0.0005050330073572695, -0.009730776771903038, + 0.04302027449011803, 0.016860175877809525, 0.010316086001694202, 0.015592004172503948, + -0.003891904139891267, 0.019055087119340897, 0.027298200875520706, 0.0036663159262388945, + 0.029037872329354286, -0.0029163877479732037, 0.014340091496706009, 0.001700040651485324, + 0.022258033975958824, -0.040191277861595154, 0.017510520294308662, 0.007560252211987972, + 0.021493878215551376, 0.043442998081445694, 0.019689174368977547, -0.003696800908073783, + -0.006954619195312262, 0.020745983347296715, -0.03625669330358505, 0.01488475501537323, + 0.01741296797990799, -0.008869070559740067, -0.006357115693390369, -0.006747322157025337, + -0.013673488982021809, -0.06441660225391388, 0.00847073458135128, 0.04962126910686493, + -0.005101138260215521, -0.017087796702980995, 0.027932288125157356, 0.01897379569709301, + -0.03541124612092972, 0.04640206694602966, 0.013901108875870705, 0.033622801303863525, + 0.018876243382692337, 0.04201224073767662, 0.0038268696516752243, 0.005531991366297007, + -0.03853289783000946, 0.000835794024169445, -0.018323451280593872, 0.01546193566173315, + -0.007422054186463356, 0.006787968799471855, 0.00946250930428505, 0.03843534737825394, + -0.0002535326639190316, 0.01770562306046486, -0.0006244321120902896, 0.009901491925120354, + -0.016543133184313774, 0.03256599232554436, 0.012234602123498917, -0.016087891533970833, + -0.029054131358861923, -0.005361275747418404, 0.013730393722653389, -0.028972838073968887, + -0.0004755642730742693, 0.01564890891313553, 0.027135616168379784, -0.03950841724872589, + -0.027314459905028343, 0.011218438856303692, -0.005824645981192589, 0.01059248298406601, + 0.008068334311246872, -0.011299732141196728, 0.0067310635931789875, -0.008917845785617828, + 0.014665263704955578, -0.02726568467915058, 0.0018179155886173248, -0.02778596058487892, + -0.014998565427958965, -0.016746366396546364, 0.016144797205924988, 0.025379685685038567, + 0.05209257826209068, 0.021201223134994507, 0.05235271528363228, 0.07374904304742813, + 0.010974559932947159, 0.017543036490678787, -0.013624712824821472, -0.055441852658987045, + -0.01770562306046486, 0.025981254875659943, 0.027412012219429016, 0.007186304312199354, + 0.02710309810936451, 0.016226090490818024, -0.041752103716135025, -0.048027925193309784, + 0.0017610103823244572, 0.005032038781791925, -0.024810634553432465, 0.023135999217629433, + -0.01845351979136467, -0.01311256643384695, -0.009421862661838531, 0.022014154121279716, + -0.004320724867284298, -0.0201281551271677, -0.01596595160663128, -0.017152830958366394, + 0.027054322883486748, 0.006418085191398859, 0.016274865716695786, -0.011714326217770576, + 0.0003084054624196142, 0.013535290956497192, 0.020176932215690613, 0.000730621162801981, + -0.023867635056376457, -0.009186113253235817, 0.04822302982211113, 0.0036195723805576563, + 0.0302897859364748, -0.0025017932057380676, 0.019396519288420677, -0.01677888259291649, + 0.011535481549799442, 0.017266640439629555, -0.02378634177148342, 0.03336266055703163, + -0.031541697680950165, -0.006783904042094946, -0.012299636378884315, 0.002125812927260995, + 0.00828782469034195, -0.046922340989112854, -0.013258893974125385, 0.009251147508621216, + 0.02820868417620659, 0.009934009052813053, 0.006393697578459978, 0.02337987720966339, + 0.026907995343208313, -0.024810634553432465, 0.0018890469800680876, 0.0075724464841187, + 0.02084353379905224, -0.0018595781875774264, -0.005401922389864922, -0.0023615628015249968, + 0.021900344640016556, 0.021656464785337448, 0.0539785772562027, -0.0499139241874218, + 0.029525630176067352, 0.01700650341808796, -0.03892310708761215, 0.040061209350824356, + -0.0050279744900763035, -0.021965378895401955, -0.005353146698325872, 0.002318883780390024, + -0.002776157110929489, -0.01128347311168909, 0.014925401657819748, 0.04454858601093292, + -0.022469395771622658, 0.0045320866629481316, -0.03557383269071579, 0.030712509527802467, + 0.00732856709510088, 0.014291316270828247, -0.0038695484399795532, 0.008271566592156887, + 0.00815369188785553, -0.020095638930797577, -0.006938360631465912, -0.012868687510490417, + -0.0243228767067194, -0.013039402663707733, 0.014071824960410595, -0.010608741082251072, + 0.004292272496968508, 0.006617253180593252, -0.019542846828699112, 0.018307192251086235, + 0.03736228123307228, -0.013941755518317223, 0.01729915849864483, 0.02900535613298416, + -0.031249042600393295, -0.015770848840475082, -0.0015232282457873225, 0.04311782494187355, + -0.020680949091911316, 0.018957536667585373, -0.015014823526144028, -7.208406168501824e-5, + 0.0015638747718185186, 0.03103768080472946, -0.03150917962193489, -0.023314842954277992, + 0.00019243586575612426, -0.041231829673051834, 0.017250383272767067, 0.02042081020772457, + 0.0005164648173376918, -0.009226759895682335, -0.0580432265996933, -0.020924827083945274, + -0.026615340262651443, -0.004406082443892956, 0.015827754512429237, 0.05101950839161873, + 0.01840474270284176, -0.02739575318992138, -0.04266258701682091, 0.04536151513457298, + 0.026078805327415466, -0.021396327763795853, 0.016461839899420738, -0.0017193477833643556, + -0.024452945217490196, -0.014144988730549812, 0.03677697107195854, 0.00423536729067564, + 0.0235587228089571, -0.009771423414349556, 0.0861055850982666, 0.017315417528152466, + -0.014283186756074429, -0.02071346528828144, -0.02645275369286537, -0.007019653916358948, + -0.03284238651394844, 0.007291985210031271, 0.0006574574508704245, 0.02019319124519825, + -0.014770944602787495, -0.022014154121279716, 0.008690225891768932, -0.0024591144174337387, + 0.008104915730655193, -0.033460214734077454, -0.007730967830866575, 0.007438312750309706, + -0.0013626745203509927, 0.012592291459441185, 0.012852429412305355, -0.01241344679147005, + 0.014405125752091408, 0.04210979491472244, -0.03282612934708595, 0.030712509527802467, + -0.015974082052707672, -0.027834735810756683, -0.010446155443787575, 0.0034915360156446695, + 0.01601472869515419, -0.00821059662848711, -0.008015493862330914, -0.008568285964429379, + -0.03882555291056633, 0.012380929663777351, 0.026013771072030067, 0.03440321236848831, + -0.020550880581140518, -0.010836361907422543, 0.007820390164852142, -0.015754589810967445, + -0.014933531172573566, 0.046271998435258865, 0.013600325211882591, -0.0017925114370882511, + -0.0010192114859819412, -0.0633760541677475, -0.002243687864392996, 0.050694338977336884, + 0.01007220707833767, 0.009186113253235817, -0.03677697107195854, 0.007117205299437046, + 0.03250095620751381, -0.013584066182374954, -0.01915263943374157, -0.011754972860217094, + -0.011592387221753597, -0.017510520294308662, 0.006897713989019394, -0.00484506506472826, + -0.0005319613264873624, 0.013332057744264603, -0.0337853878736496, -0.008356924168765545, + -0.014031178317964077, -0.010438025929033756, -0.005219012964516878, -0.007202562876045704, + 0.024387910962104797, -0.007092817686498165, -0.011381025426089764, 0.019933052361011505, + -0.03700459003448486, 0.02105489745736122, -0.02890780381858349, -0.002465211320668459, + -0.028176166117191315, 0.052027542144060135, -0.03476090356707573, 0.004341048188507557, + 0.03381790220737457, -0.02726568467915058, -0.032175783067941666, 0.029980871826410294, + -0.019396519288420677, 0.03726472705602646, 0.0054425690323114395, 0.021867826581001282, + 0.0189250186085701, 0.01944529451429844, 0.003322852775454521, 0.0012559774331748486, + -0.013811687007546425, -0.027720926329493523, 0.02466430701315403, 0.014527065679430962, + 0.007548058405518532, -0.007003395352512598, 0.0004430470580700785, -0.021607689559459686, + -0.005145849194377661, 0.0004318692663218826, 0.021672723814845085, -0.006239240523427725, + -0.010015302337706089, -0.007783808279782534, -0.017494261264801025, 0.009852715767920017, + 0.01067377533763647, -0.001605537487193942, 0.00228433427400887, 0.005966908764094114, + -0.01990053616464138, 0.01128347311168909, 0.004373565316200256, -0.027525821700692177, + 0.012787395156919956, -0.016681330278515816, -0.020811017602682114, 0.012616679072380066, + 0.019347742199897766, -0.008844682015478611, -0.01277113612741232, 0.0035403117071837187, + 0.006783904042094946, -0.031883127987384796, 0.021965378895401955, -0.013145084492862225, + -0.003322852775454521, 0.012039498426020145, 0.006958683952689171, 0.016161056235432625, + -0.011803749017417431, -0.022030413150787354, 0.03230585157871246, -0.012283378280699253, + 0.05206006020307541, -0.01090952567756176, -0.0009684032993391156, -0.013063791207969189, + -0.03593152388930321, -0.0008850779267959297, 0.00394068006426096, -0.00393661530688405, + 0.011153404600918293, -0.0351836271584034, 0.012510998174548149, 0.004170332569628954, + 0.002770060207694769, 0.01363284233957529, 0.028127390891313553, 0.016087891533970833, + -0.0048572588711977005, -0.015486323274672031, -0.010364862158894539, -0.005853098817169666, + -0.013299540616571903, -0.008869070559740067, 0.0038390636909753084, -0.01565703935921192, + -0.01903882995247841, 0.02687547728419304, -0.006056331098079681, -0.042857687920331955, + -0.010462413541972637, 0.033053748309612274, 0.015274961479008198, -0.03807765990495682, + 0.06285577267408371, 0.015047341585159302, 0.016697589308023453, -0.014738427475094795, + 0.00012390836491249502, 0.05531178414821625, -0.004048393107950687, 0.017201606184244156, + -0.014234410598874092, 0.023054705932736397, -0.005832775495946407, -0.0020292773842811584, + -0.005174302030354738, 0.03957344964146614, 0.011738714762032032, -0.012486610561609268, + -0.010161629877984524, -0.010738810524344444, -0.018957536667585373, 0.009584449231624603, + -0.04497130960226059, 0.010828232392668724, 0.02170524001121521, 0.016437452286481857, + 0.007791937794536352, -0.011356636881828308, 0.013933626934885979, -0.0030728767160326242, + 0.028159907087683678, -0.07069242745637894, 0.016502486541867256, -0.035606350749731064, + 0.028403786942362785, 0.008771518245339394, 0.0007351938984356821, 0.05222264677286148, + -0.0061416891403496265, 0.026550306007266045, 0.036939557641744614, -0.04578423872590065, + -0.01174684427678585, -0.025526013225317, 0.033021230250597, 0.015600133687257767, + 0.017949502915143967, 0.033102523535490036, 0.01944529451429844, 0.023705050349235535, + 0.014982306398451328, 0.007523670792579651, -0.007271662354469299, -0.03963848575949669, + -0.012673584744334221, 0.014462031424045563, 0.023054705932736397, 0.014518936164677143, + 0.01094204280525446, 0.002680637873709202, 0.0836993083357811, -0.04750765115022659, + -0.032289594411849976, -0.025786152109503746, 0.00965761300176382, 0.013706006109714508, + -0.01087700854986906, -0.01155174057930708, 0.004210979212075472, 0.018843725323677063, + -0.0032293659169226885, -0.012437834404408932, 0.008608932606875896, -0.012641067616641521, + 0.0026399914640933275, 0.001501888851635158, -0.021721499040722847, 0.01555135753005743, + 0.0016583779361099005, 0.02594873681664467, -0.03648431599140167, -0.012746748514473438, + 0.02663159929215908, -0.005670189391821623, 0.029281752184033394, 0.013071920722723007, + 0.02606254816055298, -0.009877104312181473, 0.02570485882461071, -0.036126624792814255, + -0.014478289522230625, 0.005942521151155233, -0.024160290136933327, -0.002664379309862852, + 0.03133033588528633, 0.029785769060254097, -0.005857163108885288, -0.0064262147061526775, + -0.009381216019392014, -0.025217099115252495, -0.031996939331293106, 0.011933817528188229, + -0.01616918481886387, 0.008722743019461632, 0.03703710809350014, -0.01296623982489109, + -0.010795715264976025, -0.023607498034834862, -0.010462413541972637, 0.026729149743914604, + 0.004658090882003307, -0.00011171441292390227, 0.010405508801341057, 0.013380833901464939, + 0.01250286865979433, -0.023753825575113297, -0.025135807693004608, -0.010161629877984524, + -0.05134468153119087, -0.01926644891500473, -0.018729915842413902, 0.0022883990313857794, + -0.011982593685388565, 0.014697780832648277, 0.02077849954366684, -0.016047244891524315, + 0.035086072981357574, 0.01628299616277218, 0.004910099320113659, -0.01543754804879427, + 0.04809296131134033, -0.02105489745736122, 0.002054681535810232, -0.006483119912445545, + -0.03742731362581253, -0.0018138508312404156, 0.007243209518492222, -0.019754208624362946, + -0.018811209127306938, 0.011494835838675499, 0.014340091496706009, -0.007393601816147566, + 0.05297054350376129, -0.010746939107775688, 0.0008627223432995379, 0.007527735084295273, + -0.03170428425073624, 0.016144797205924988, -0.02762337401509285, -0.004406082443892956, + -0.016404934227466583, -0.009413734078407288, 0.007483024150133133, -0.006202658638358116, + 0.018437260761857033, 0.043377965688705444, -0.0002258422173326835, 0.04002869129180908, + -0.002963131293654442, -0.007499282713979483, 0.027005547657608986, 0.01921767368912697, + -0.008779647760093212, 0.01793324388563633, -0.015624521300196648, 0.03846786543726921, + 0.00818620901554823, 0.00046337032108567655, 0.011055853217840195, -0.0040057143196463585, + -0.006194529589265585, 0.009999043308198452, 0.01712031289935112, -0.02084353379905224, + 0.013901108875870705, -0.04672723636031151, 0.009438121691346169, -0.022388102486729622, + 0.006568477489054203, -0.012933721765875816, -0.015998469665646553, -0.01897379569709301, + 0.009860845282673836, 0.015478193759918213, -0.008324407041072845, 0.012429704889655113, + -0.03233836963772774, -0.015608263202011585, -0.018583588302135468, 0.013584066182374954, + -0.00021314018522389233, -0.020355775952339172, -0.019282707944512367, 0.001021243748255074, + 0.0033452084753662348, 0.024127773940563202, 0.025916220620274544, -0.009023526683449745, + 0.01687643490731716, 0.003538279328495264, 0.027720926329493523, -0.013884850777685642, + -0.010234793648123741, 0.014681522734463215, -0.0038797101005911827, -0.031086457893252373, + 0.015868401154875755, 0.007930135354399681, -0.030972646549344063, -0.0022396231070160866, + -0.019071346148848534, -0.0011777328327298164, -0.007393601816147566, 0.0009328376036137342, + -0.002056713914498687, -0.022794567048549652, 0.027119357138872147, -0.016591908410191536, + 0.023412395268678665, 0.025834927335381508, 0.01938026025891304, -0.007710644509643316, + 0.018030796200037003, 0.0070155891589820385, 0.0075846402905881405, 0.014949789270758629, + -0.010454284958541393, 0.0036947685293853283, -0.03544376417994499, 0.004450793843716383, + -0.02999713085591793, 0.0017071537440642715, -0.013966144062578678, 0.030940130352973938, + -0.03801262378692627, 0.02285960130393505, 0.002453017281368375, -0.030891353264451027, + -0.009820198640227318, -0.0015008726622909307, 0.006771709769964218, -0.03012719936668873, + 0.015104246325790882, 0.008308148011565208, 0.003383822739124298, -0.01485223788768053, + 0.017738141119480133, 0.011307861655950546, 0.029265493154525757, 0.023574979975819588, + 0.0021420714911073446, -0.001266139093786478, 0.020583396777510643, -0.027477046474814415, + 0.019071346148848534, -0.018209639936685562, -0.005036103539168835, 0.011120887473225594, + 0.011600516736507416, -0.00732856709510088, -0.029281752184033394, 0.002652185270562768, + 0.02581866830587387, 0.024794375523924828, 0.038565415889024734, 0.005462891887873411, + -0.019412776455283165, 0.0017732044216245413, 0.029899578541517258, 0.007324502803385258, + 0.022436877712607384, 0.030858837068080902, -0.005824645981192589, 0.01920141465961933, + 0.00578806409612298, 0.032013196498155594, -0.02739575318992138, 0.012909334152936935, + 0.00930805318057537, 0.004231302533298731, -0.014982306398451328, 0.004751577973365784, + -0.029281752184033394, 0.03180183470249176, 0.03541124612092972, 0.016413064673542976, + 0.024696825072169304, -0.020339516922831535, 0.023656273260712624, -0.011267215013504028, + -0.04669472202658653, -0.011567999608814716, -0.006519701331853867, 0.036939557641744614, + -0.03150917962193489, 0.03833779692649841, -0.021038638427853584, 0.024631790816783905, + -0.0010547771817073226, -0.001498840400017798, 0.021380068734288216, -0.015510711818933487, + -0.01770562306046486, 0.01520179770886898, -0.0025810538791120052, 0.03433817997574806, + -0.008324407041072845, 0.02773718349635601, -0.006373374257236719, -0.015486323274672031, + -0.022079188376665115, 0.0021745888516306877, -0.022355584427714348, -0.004954810719937086, + 0.006861132103949785, 0.02170524001121521, -0.019461553543806076, 0.007645610254257917, + -0.020063120871782303, 0.01612853817641735, 0.001941887428984046, -0.0024265970569103956, + 0.007052171044051647, -0.025395944714546204, 0.011844395659863949, -0.0248268935829401, + -0.021087413653731346, 0.007304179482161999, 0.00788136012852192, -0.03934583067893982, + 0.0007011524285189807, 0.0010283569572493434, 0.013616583310067654, -0.022258033975958824, + 0.006556283216923475, 0.028111131861805916, 0.00521088344976306, -0.025460978969931602, + 0.007060300093144178, 0.051734887063503265, -0.038045141845941544, 0.005869357381016016, + 0.04402830824255943, -0.018941277638077736, -0.0007128383149392903, -0.006068525370210409, + -0.007011524401605129, 0.01308817882090807, 0.006499378476291895, -0.01459209993481636, + ], + index: 74, + }, + { + title: "Vonda Ward", + text: "Vonda Ward (born March 16, 1973, Macedonia, Ohio, United States) is an American female boxer who was also a well known NCAA basketball player.", + vector: [ + 0.03396308422088623, 0.02457417920231819, -0.029978083446621895, -0.009539852850139141, + -0.03918585181236267, -0.028785601258277893, 0.02391001209616661, -0.011773869395256042, + -0.03194039314985275, 0.052227675914764404, -0.060590144246816635, 0.04386521130800247, + -0.024000579491257668, -0.008815307170152664, -0.0015094703994691372, 0.004030286334455013, + -0.03731410950422287, 0.011071966029703617, -0.012536152265965939, -0.06016749143600464, + 0.0044378433376550674, 0.039819829165935516, 0.003256682539358735, -0.031185658648610115, + 0.036408428102731705, 0.0006990734837017953, -0.016589080914855003, -0.007826603949069977, + 0.014498463831841946, 0.03595558553934097, -0.04978233575820923, -0.010226662270724773, + -0.024815693497657776, 0.0055397567339241505, 0.0017943830462172627, -0.008090761490166187, + -0.017238153144717216, 0.012875783257186413, 0.007309610489755869, -0.029027117416262627, + 0.011909721419215202, -0.022989235818386078, -0.027623308822512627, 0.013328623957931995, + 0.0020698613952845335, -0.02899692766368389, -0.002651007380336523, -0.01728343591094017, + 0.0195627361536026, -0.022551488131284714, -0.0030264882370829582, -0.027849730104207993, + -0.009366264566779137, -0.009690800681710243, 0.04259725660085678, -0.03166868910193443, + -0.020257093012332916, 0.05902029573917389, 0.06089203804731369, 0.0064643071964383125, + -0.039759453386068344, -0.045253925025463104, -0.027019521221518517, -0.019109895452857018, + 0.0358952060341835, 0.032332856208086014, 0.0007943588425405324, 0.07535276561975479, + -0.03200077265501022, 0.04084626957774162, 0.006656764540821314, -0.027955392375588417, + -0.02022690325975418, -0.02077031321823597, -0.015434334985911846, -0.031517744064331055, + -0.005434093531221151, 0.03550274670124054, -0.04301990941166878, -0.009728536941111088, + 0.004634074401110411, -0.056635331362485886, -0.003781223436817527, 0.0036529183853417635, + 0.01182670146226883, -0.06357889622449875, 0.003075546119362116, -0.0768018588423729, + -0.04917854815721512, -0.001853818423114717, 0.017781561240553856, 0.02975166216492653, + 0.00612844992429018, 0.03136679530143738, 0.020649556070566177, -0.015577735379338264, + -0.021419385448098183, -0.02258167788386345, -0.02425719052553177, 0.04081607982516289, + 0.019849536940455437, -0.0044378433376550674, 0.023094898089766502, 0.031125281006097794, + 0.020272187888622284, -0.004351048730313778, -0.0484841912984848, 0.008920970372855663, + -0.01114743947982788, 0.04160100594162941, 0.030129030346870422, 0.0011792738223448396, + -0.019200464710593224, -0.0011009699665009975, 0.026974236592650414, 0.017177773639559746, + 0.0060831657610833645, 0.08000193536281586, -0.028378045186400414, -0.010370061732828617, + 0.030385639518499374, 0.009796462953090668, -0.00975117925554514, 0.04093683883547783, + 0.027110088616609573, -0.01969859004020691, -0.04561619833111763, 0.07142814248800278, + -0.036348048597574234, 0.06303548812866211, -0.011305933818221092, 0.01600038632750511, + -0.03586501628160477, -0.025011925026774406, -0.019472168758511543, -0.015321125276386738, + 0.04972195625305176, 0.010845544748008251, 0.006652990821748972, 0.030370544642210007, + 0.037555623799562454, -0.024604368954896927, 0.00025826095952652395, 0.0018962722970172763, + -0.009298337623476982, -0.0075020682998001575, 0.00133588130120188, -0.024272285401821136, + -0.008928517811000347, -0.0493294931948185, 0.04537468031048775, -0.009932315908372402, + 0.046401120722293854, -0.04015191271901131, 0.0032661166042089462, -0.02766859345138073, + -0.011373859830200672, -0.0010236096568405628, 0.037827327847480774, 0.008837949484586716, + -0.026008175686001778, 0.018204214051365852, -0.01440034806728363, 0.001872686785645783, + -0.030370544642210007, 0.03130641579627991, -0.015177725814282894, 0.05769196152687073, + -0.015321125276386738, 0.018672149628400803, -0.002418926451355219, 0.03652918338775635, + 0.013472023420035839, -0.0010292701190337539, -0.04881627485156059, 0.01954764313995838, + 0.04416710510849953, 0.027019521221518517, 0.025087399408221245, -0.011336122639477253, + 0.014422990381717682, 0.03532160818576813, 0.0006434117676690221, -0.02606855519115925, + -0.03885376825928688, 0.03130641579627991, 0.010875734500586987, -0.024815693497657776, + 0.0263251643627882, -0.028106339275836945, 0.044982220977544785, -0.05092953145503998, + -0.0012415394885465503, 0.010226662270724773, 0.023487361147999763, -0.015562640503048897, + 0.03864244371652603, 0.04495203122496605, 0.0009151164558716118, 0.0167551226913929, + -0.014558842405676842, -0.057178739458322525, 0.04015191271901131, 0.009728536941111088, + 0.03544236719608307, -0.030702628195285797, -0.024000579491257668, -0.03655937314033508, + -0.0020868428982794285, 0.013592781499028206, -0.027547836303710938, -0.023623213171958923, + 0.00743414182215929, 0.0007184136193245649, -0.026898764073848724, 0.01796269789338112, + -0.029812041670084, -0.039216041564941406, -0.013472023420035839, 0.0007330366061069071, + -0.04295952990651131, 0.012755025178194046, -0.0405745655298233, 0.020272187888622284, + 0.013245603069663048, 0.02443832717835903, -0.0008382278028875589, 0.005445414688438177, + -0.026038365438580513, 0.02010614611208439, -0.0358952060341835, -0.0017000411171466112, + 0.027155373245477676, -0.03335929661989212, 0.02579684928059578, -0.015087157487869263, + 0.005403904244303703, -0.003756694495677948, -0.04489165171980858, 0.005939766298979521, + 0.005211446899920702, 0.016528701409697533, -0.015924913808703423, -0.05065782740712166, + -0.023623213171958923, 0.033449865877628326, 0.0053322045132517815, -0.051201239228248596, + 0.005834103096276522, 0.001760419923812151, 0.025540240108966827, 0.02009105123579502, + -0.026566680520772934, -0.014853189699351788, 0.03864244371652603, 0.007894530892372131, + 0.01689097471535206, -0.05754101276397705, 0.00827189814299345, 0.02819690853357315, + -0.0670204907655716, -0.04220479354262352, -0.04241611808538437, 0.013698444701731205, + -0.007226589601486921, -0.0688922330737114, -0.03994058817625046, -0.01159273274242878, + 0.017434382811188698, -0.03885376825928688, -0.03363100066781044, -0.025510050356388092, + 0.0010528556304052472, 0.006592612247914076, 0.05002385005354881, -0.011736133135855198, + -0.008626624010503292, 0.05929199978709221, 0.017192868515849113, 0.03254418447613716, + -0.0020604270976036787, 0.0012641814537346363, 0.008649265393614769, -0.03994058817625046, + -0.018672149628400803, -0.01004552561789751, 0.0036812210455536842, 0.028106339275836945, + 0.033932894468307495, -0.011955006048083305, 0.002341566141694784, 0.05560889095067978, + 0.0031132828444242477, -0.010377609170973301, 0.04821248725056648, 0.01095120795071125, + 0.002452889457345009, -0.018943853676319122, 0.010309683158993721, -0.03550274670124054, + 0.003462347900494933, -0.019789157435297966, -0.05802404507994652, -0.027547836303710938, + -0.03411403298377991, -0.035804640501737595, 0.014045622199773788, -0.006460533477365971, + -0.00026628002524375916, -0.013313529081642628, -0.017238153144717216, 0.044650137424468994, + 0.027442172169685364, 0.013894675299525261, 0.04084626957774162, 0.022023173049092293, + 0.04045380651950836, 0.031849827617406845, -0.01968349516391754, -0.03643861785531044, + 0.03381213918328285, 0.037012215703725815, 0.02872522361576557, 0.008822854608297348, + -0.02833276055753231, -0.031910207122564316, -0.005883160978555679, 0.0032170589547604322, + -0.04794078320264816, 0.0010330438381060958, -0.00793981458991766, 0.0274723619222641, + 0.02410624362528324, -0.04555581882596016, 0.00931343249976635, -0.001663247705437243, + -0.018596675246953964, -0.010279493406414986, -0.04214441403746605, -0.010581388138234615, + -0.00014552238280884922, 0.08664360642433167, -0.003571784356608987, -0.004690679255872965, + -0.04458975791931152, -0.039216041564941406, 0.029932798817753792, -0.02270243503153324, + -0.041631195694208145, -0.007581315468996763, 0.0006646387046203017, 0.024423232302069664, + 0.009494569152593613, 0.04172176495194435, 0.032604560256004333, 0.04688415303826332, + -0.008000193163752556, -0.020468419417738914, -0.016362659633159637, -0.03221210092306137, + -0.020951449871063232, 0.03698202595114708, -0.03891414776444435, 0.019170274958014488, + 0.010566293261945248, -0.05243900418281555, 0.013019182719290257, -0.00034434793633408844, + 0.04301990941166878, -0.03652918338775635, 0.002832144033163786, -0.029510147869586945, + -0.007456784136593342, -0.030430924147367477, 0.005781271960586309, -0.03511028364300728, + -0.03532160818576813, -0.05098991096019745, 0.010422893799841404, 0.0021151455584913492, + -0.03511028364300728, 0.06756389886140823, -0.055639080703258514, -0.040302861481904984, + -0.006732237990945578, 0.016438134014606476, 0.017706088721752167, 0.02324584499001503, + 0.01968349516391754, -0.04449918866157532, 0.022536393254995346, 0.046250175684690475, + -0.013124845921993256, -0.017902320250868797, 0.050204988569021225, -0.004803889896720648, + -2.8081456093786983e-6, 0.018038172274827957, -0.043804831802845, 0.0028736544772982597, + 0.00299629895016551, -0.04419729486107826, 0.0010122886160388589, -0.0038566971197724342, + 0.006803938187658787, 0.0001058398192981258, -0.021751469001173973, -0.046189796179533005, + 0.01035496685653925, 0.028438422828912735, 0.012679551728069782, -0.005452962126582861, + -0.05412961170077324, -0.018657054752111435, 0.022415636107325554, -0.012724836356937885, + 0.04763888567686081, 4.823229755857028e-5, -0.032846078276634216, 0.011434238404035568, + 0.0012481433805078268, 0.0036604658234864473, 0.0661751851439476, -0.005815234966576099, + 0.02277790941298008, 0.0023453396279364824, -0.053495634347200394, 0.019668400287628174, + -0.0577523410320282, 0.06744313985109329, 0.020664650946855545, -0.04051418602466583, + 0.017162678763270378, 0.044982220977544785, 0.006241660099476576, -0.04359350726008415, + -0.06418268382549286, 0.015849439427256584, 0.032604560256004333, 0.0029434673488140106, + 0.0065322332084178925, 0.01061912439763546, 0.00846812967211008, -0.02135900780558586, + -0.04917854815721512, 0.016921164467930794, -0.006494496483355761, 0.003075546119362116, + 0.029042212292551994, 0.0014896586071699858, -0.014815452508628368, -0.016438134014606476, + 0.005260504316538572, 0.018657054752111435, -0.006419023033231497, 0.04594828188419342, + 0.02452889457345009, 0.010890829376876354, -0.01225689984858036, 0.018053267151117325, + -0.017509857192635536, -0.003526500426232815, -0.002371755428612232, -0.0020547667518258095, + -0.03852168470621109, 0.03462725132703781, -0.022626962512731552, -0.06351851671934128, + -0.02546476572751999, -0.047669075429439545, 0.061133552342653275, -0.014347516931593418, + -0.01034742034971714, 0.04292934015393257, 0.024755315855145454, 0.018189119175076485, + 0.0745074599981308, 0.006505817640572786, 0.0058756135404109955, 0.011328576132655144, + 0.023547738790512085, -9.646459511714056e-5, 0.010060620494186878, 0.03139698505401611, + 0.02618931233882904, -0.036136724054813385, -0.04172176495194435, -0.014226758852601051, + 0.029796946793794632, 0.007219042629003525, -0.0017123055877164006, 0.047336991876363754, + -0.028091244399547577, 0.04066513478755951, 0.001433053519576788, 0.006185055244714022, + 0.005045405123382807, -0.03598577529191971, 0.040695324540138245, 0.030249787494540215, + 0.06394116580486298, 0.02733650989830494, 0.021525049582123756, -0.014694694429636002, + -0.0011292726267129183, 0.0027604440692812204, 0.031729068607091904, 0.004283122252672911, + 0.028091244399547577, -0.0073926313780248165, 0.002381189726293087, 0.07607731223106384, + -0.016302280128002167, 0.0105889355763793, -0.016966447234153748, -0.033932894468307495, + 0.00981910526752472, -0.01814383454620838, 0.04401616007089615, -0.005094463005661964, + 0.04024248197674751, 0.03858206421136856, -0.03438573703169823, 0.014302232302725315, + 0.006369965150952339, 0.002579307649284601, -0.025208156555891037, 0.008581339381635189, + -0.00144060084130615, -0.009826652705669403, -0.011766321957111359, -0.004366143140941858, + -0.006728464737534523, -0.02685347944498062, 0.018475918099284172, 0.04039343073964119, + 0.016392849385738373, 0.005592587869614363, 0.015623019076883793, -0.009600232355296612, + 0.01172103825956583, -0.011758774518966675, 0.01882309652864933, -0.013238055631518364, + -0.026898764073848724, -0.0372537299990654, -0.01138895470649004, -0.02471003122627735, + -0.002581194508820772, -0.016045670956373215, -0.00183306320104748, 0.0023510002065449953, + -0.030325261875987053, -0.0138644864782691, 0.027683688327670097, -0.03456687182188034, + -0.0037925445940345526, 0.015894724056124687, 0.035744260996580124, -0.028438422828912735, + 0.012732382863759995, -0.010521008633077145, -0.0011839908547699451, 0.007547352463006973, + -0.024604368954896927, 0.008370013907551765, 0.008626624010503292, 0.03209134191274643, + -0.014649410732090473, 0.017177773639559746, 0.012536152265965939, -0.0017198529094457626, + 0.02303451858460903, -0.022732624784111977, 0.010981397703289986, 0.0010075715836137533, + -0.0021113718394190073, 0.015562640503048897, 0.012453131377696991, 0.019109895452857018, + -0.011026681400835514, -0.021253343671560287, 0.005490698851644993, -0.031246038153767586, + 0.0016321148723363876, 0.0029981855768710375, 0.006543554365634918, 0.011343670077621937, + -0.03489895537495613, -0.021721279248595238, -0.009328527376055717, -0.016785310581326485, + -0.0014877718640491366, -0.01640794426202774, 0.02525344118475914, -0.021660901606082916, + -0.022400541231036186, 0.005739761516451836, 0.03323853760957718, 0.018672149628400803, + -0.02766859345138073, 0.0031868694350123405, 0.023608118295669556, -0.016423039138317108, + -0.03411403298377991, -0.002900070045143366, 0.0097813680768013, -0.0029472410678863525, + -0.019849536940455437, -0.0007155833300203085, -0.002134013921022415, -0.0531635507941246, + 0.01105687115341425, 0.0009047388448379934, -0.022611867636442184, -0.01534376759082079, + 0.019804252311587334, -0.004671811126172543, 0.04238593205809593, 0.020619366317987442, + 0.02410624362528324, -0.005249183624982834, -0.034264978021383286, -0.03988020867109299, + -0.005147294141352177, -0.003447253257036209, -0.03592539578676224, -0.026113837957382202, + -0.02022690325975418, 0.005766177084296942, 0.008083214052021503, -0.020845787599682808, + 0.011471975594758987, 0.01962311565876007, -0.04033305123448372, 0.000881153391674161, + 0.032513994723558426, -0.0749301165342331, 0.0047699264250695705, -0.04084626957774162, + 0.015253199264407158, 0.04386521130800247, 0.02759311906993389, -0.021449575200676918, + -0.0219024159014225, -0.01566830277442932, 0.029449768364429474, -0.013472023420035839, + 0.012543699704110622, 0.02431756816804409, -0.009736084379255772, 0.0072945160791277885, + -0.020060861483216286, -0.018913663923740387, 0.021147681400179863, -0.03348005563020706, + -0.002581194508820772, -0.0064680809155106544, -0.02612893283367157, -0.03604615479707718, + 0.015449429862201214, -0.01607586070895195, -0.006109581794589758, 0.01393241249024868, + -0.0045321849174797535, -0.037404678761959076, -0.04305009916424751, 0.032181911170482635, + -0.0035623502917587757, -0.0017406081315129995, -0.0045019956305623055, 0.0073284790851175785, + 0.007003942970186472, -0.05325411632657051, 0.001417958759702742, -0.03160830959677696, + -0.03323853760957718, 0.032936643809080124, -0.001665134564973414, -0.06315624713897705, + 0.01707211136817932, 0.03592539578676224, -0.0038755654823035, 0.0396386943757534, + 0.01903442293405533, -0.009902126155793667, 0.00449067447334528, -0.0031623404938727617, + -0.006652990821748972, 0.03658956289291382, -0.0404839962720871, -0.002226468874141574, + 0.043774642050266266, 0.04582752287387848, -0.0006325624417513609, 0.03897452726960182, + 0.023291129618883133, -0.016438134014606476, 0.0031283774878829718, 0.018808001652359962, + -0.004449164029210806, 0.030778102576732635, -0.03142717480659485, 0.006924695800989866, + -0.017298530787229538, -0.0038397153839468956, 0.01530603040009737, 0.009517211467027664, + -0.01936650648713112, -0.028227098286151886, -0.010075715370476246, 0.012166331522166729, + -0.024211905896663666, -0.0035944264382123947, -0.013947507366538048, -0.014672053046524525, + 0.06155620515346527, 0.01815892942249775, -0.032181911170482635, -0.012528604827821255, + 0.021389195695519447, 0.02410624362528324, 0.027653498575091362, 0.01126064918935299, + -0.029434673488140106, 0.003262343117967248, -0.03088376484811306, 0.02116277627646923, + 0.055035293102264404, 0.014679600484669209, -0.02679309993982315, -0.01132102869451046, + 0.005464282818138599, -0.016513606533408165, 0.04332180321216583, 0.028891265392303467, + -0.025434577837586403, -0.013592781499028206, 0.019849536940455437, 0.021343912929296494, + 0.004845400340855122, 0.0340234637260437, -0.010664409026503563, -0.03571407124400139, + -0.013683349825441837, 0.02680819481611252, 0.0605599544942379, 0.0006731294561177492, + -0.0563938170671463, -0.03094414435327053, 0.010875734500586987, 0.011373859830200672, + -0.007577541749924421, -0.029661094769835472, -0.008800212293863297, -0.01443808525800705, + -0.036348048597574234, 0.03474801033735275, 0.01001533679664135, -0.05376733839511871, + 0.010271945968270302, -0.0008556810789741576, 0.007373763248324394, -0.0064643071964383125, + 0.008694550022482872, -0.03843111917376518, 0.0031736616510897875, -0.017841940745711327, + -0.0010075715836137533, 0.01114743947982788, -0.018249498680233955, -0.04072551429271698, + -0.016906069591641426, -0.021947700530290604, 0.008800212293863297, -0.0022340163122862577, + -0.0047737001441419125, -0.0022698661778122187, 0.050416313111782074, -0.006120902486145496, + -0.05633343756198883, 0.004939741920679808, -0.04066513478755951, -0.025494955480098724, + -0.014392800629138947, -0.040302861481904984, 0.06333737820386887, 0.046461500227451324, + -0.06424306333065033, 0.003992549143731594, 0.004618979524821043, 0.0016689082840457559, + -0.03637823835015297, -0.0782509446144104, 0.004600111395120621, 0.007011490408331156, + 0.004777473863214254, -0.011758774518966675, 0.026747817173600197, -0.02700442634522915, + 0.008120951242744923, -0.007324705366045237, -0.048061538487672806, 0.010211567394435406, + 0.004894457757472992, -0.01061912439763546, -0.010604029521346092, -0.013034277595579624, + -0.020860882475972176, 0.025011925026774406, 0.06466571241617203, 0.004124627914279699, + -0.006656764540821314, 0.01568339765071869, -0.02988751418888569, 0.01262672059237957, + -0.01523810438811779, -0.038280170410871506, 0.01628718711435795, -0.0661751851439476, + -0.012438036501407623, 0.02150995470583439, 8.001372771104798e-5, 0.000380669574951753, + -0.026491206139326096, -0.06376003473997116, 0.015192819759249687, 0.0031944168731570244, + 0.02794029749929905, -0.03302721306681633, -0.043804831802845, 0.015192819759249687, + -0.009856842458248138, -0.028438422828912735, -0.030491303652524948, 0.023940201848745346, + -0.015698492527008057, 0.013638065196573734, 0.007064321544021368, 0.015894724056124687, + -0.004539732355624437, -0.03508009389042854, 0.026687437668442726, -0.008792665787041187, + 0.012988992966711521, -0.028091244399547577, 0.020679745823144913, -0.07142814248800278, + -0.005162389017641544, -0.019200464710593224, 0.01121536549180746, 0.013758823275566101, + -0.010249304585158825, 0.0012792762136086822, -0.011502164416015148, 0.006728464737534523, + 0.0027774255722761154, 0.003484989982098341, 0.008188877254724503, 0.014287137426435947, + 0.008483223617076874, 0.010105905123054981, 0.0023377924226224422, -0.034536685794591904, + 0.005434093531221151, 0.005524661857634783, 0.0188834760338068, -0.029042212292551994, + 0.007143568713217974, -0.01473243162035942, 0.007275647483766079, 0.010649314150214195, + -0.003466121619567275, -0.010339872911572456, -0.028589369729161263, -0.0009042671299539506, + -0.009539852850139141, 0.02692895196378231, 0.014121095649898052, 0.0387028232216835, + -0.029238441959023476, 0.0012877669651061296, -0.02612893283367157, 0.03894433751702309, + 0.023291129618883133, 0.006652990821748972, -0.020679745823144913, -0.012943709269165993, + -0.03341967612504959, 0.015117346309125423, 0.014347516931593418, 0.004751058295369148, + 0.023426981642842293, 0.03287626802921295, -0.01835516095161438, 0.026204407215118408, + 0.012687099166214466, -0.020392945036292076, -0.01360032893717289, 0.002435907954350114, + -0.0037887708749622107, -0.01889857091009617, -0.029842231422662735, 0.025887418538331985, + -0.007977551780641079, -0.016845690086483955, 0.010128546506166458, 0.026445921510457993, + -0.015079610049724579, 0.009698348119854927, -0.0277289729565382, -0.01969859004020691, + -0.003683107905089855, 0.0288761705160141, -0.01302673015743494, 0.02149485982954502, + 0.03719335049390793, 0.016392849385738373, 0.04305009916424751, -0.013645612634718418, + -0.0036415974609553814, -0.027879919856786728, -0.03154793381690979, -0.04540487006306648, + -0.007351120933890343, 0.008211519569158554, -0.036015965044498444, 0.008988896384835243, + -0.009268148802220821, 0.0002724122314248234, -0.00048137956764549017, 0.00997759960591793, + -0.005566172301769257, 0.0009155881707556546, 0.014611673541367054, 0.041299112141132355, + -0.0016123030800372362, -5.993659215164371e-5, 0.037012215703725815, -0.018838191404938698, + -0.0012688986025750637, -0.030717723071575165, 0.0035906529519706964, 0.016860784962773323, + 0.001996274571865797, 0.003141585271805525, 0.059624083340168, -0.02143448032438755, + 0.05458245053887367, 0.015351314097642899, 0.02605346031486988, 0.012151237577199936, + -0.015102251432836056, 0.006841674912720919, 0.004396332893520594, 0.040423620492219925, + -0.010581388138234615, 0.014362611807882786, -0.03320835158228874, 0.019940104335546494, + 0.041842520236968994, -0.00913984328508377, -0.0025208157021552324, -0.015381503850221634, + -0.05434093624353409, 0.023064708337187767, 0.045857712626457214, -0.03139698505401611, + -0.027970487251877785, -0.0010490819113329053, 0.01849101297557354, 0.0022698661778122187, + -0.014422990381717682, 0.05874859169125557, -0.010966302827000618, -0.007411499973386526, + 0.005505793262273073, 0.013992791064083576, 0.05376733839511871, 0.01802307739853859, + 0.017177773639559746, -0.009856842458248138, -0.0034548004623502493, 0.03867263346910477, + -0.01788722537457943, 0.014656958170235157, -0.021675996482372284, 0.03242342546582222, + -0.04308028519153595, -0.0030057330150157213, -0.036015965044498444, -0.007309610489755869, + 0.014445632696151733, 0.006328454706817865, -0.007705846801400185, 0.03924623131752014, + 0.006490722764283419, -0.03006865084171295, -0.012151237577199936, -0.024619463831186295, + -0.034325357526540756, 0.02178165875375271, -0.009562495164573193, 0.022491110488772392, + -0.043804831802845, 0.014339969493448734, 0.015970196574926376, 0.03556312248110771, + -0.008520960807800293, 0.03474801033735275, -0.010905924253165722, 0.05117104947566986, + 0.02665724791586399, 0.048665326088666916, -0.009954957291483879, -0.02806105650961399, + 0.020649556070566177, 0.009003991261124611, 0.017464572563767433, 0.03885376825928688, + 0.04561619833111763, 0.0059888241812586784, -0.0005141633446328342, 0.0475483201444149, + -0.007490747142583132, 0.003943491727113724, -0.0007622825796715915, -0.008694550022482872, + 0.030657345429062843, -0.007256779354065657, 0.02116277627646923, -0.01126064918935299, + 0.0004290197975933552, -0.01763061434030533, 0.018038172274827957, 0.017781561240553856, + -0.0031321512069553137, 0.04688415303826332, -0.03858206421136856, -0.0013519194908440113, + -0.00285478588193655, 0.018128739669919014, -0.005645419470965862, 0.001945330062881112, + -0.011336122639477253, 0.002430247375741601, -0.01269464660435915, 0.0016509833512827754, + 0.009162485599517822, -0.0022566583938896656, 0.0209665447473526, 0.03568388149142265, + 0.004728415980935097, -0.0009033237001858652, 0.0072945160791277885, -0.038340549916028976, + -0.014362611807882786, 0.009554947726428509, -0.01477016881108284, 0.02264205738902092, + 0.014943757094442844, -0.025887418538331985, 0.030913954600691795, -0.056816466152668, + 0.0027415757067501545, -0.018641959875822067, -0.03988020867109299, -0.03894433751702309, + -0.002652894239872694, -0.022023173049092293, 0.0174796674400568, -0.015049420297145844, + -0.017917415127158165, 0.0076039573177695274, -0.01781175099313259, -0.025600619614124298, + 0.027985582128167152, -0.008400202728807926, -0.00023880293883848935, -0.011917268857359886, + -0.0072982897982001305, 0.011736133135855198, -0.011426690965890884, -0.013683349825441837, + -0.033057402819395065, 0.03317816182971001, 0.013751275837421417, -0.00910965446382761, + 0.03791789710521698, -0.033449865877628326, -0.011411597020924091, -0.03417441248893738, + 0.0363178588449955, -0.03568388149142265, -0.005347298923879862, -0.05219748988747597, + -0.024815693497657776, 0.00010890593694057316, 0.005566172301769257, 0.020468419417738914, + 0.03423478826880455, -0.03559331223368645, -0.04851438105106354, -0.01607586070895195, + 0.03269512951374054, 0.010792713612318039, 0.000763226009439677, 0.017268342897295952, + 0.008830402046442032, -0.009947409853339195, 0.0009651176515035331, 0.014913568273186684, + -0.020951449871063232, 0.013781465590000153, 0.01983444206416607, 0.007803962100297213, + 0.0009868163615465164, 0.006490722764283419, 0.007962456904351711, -0.015773966908454895, + -0.02860446460545063, -0.03127622604370117, 0.004879363346844912, 0.014694694429636002, + -0.016785310581326485, -0.0011670093517750502, -0.02010614611208439, 0.027547836303710938, + -0.006177507806569338, 0.004830305464565754, -0.008219067007303238, -0.023336412385106087, + -0.030506398528814316, 0.007173758465796709, 0.00039859453681856394, -0.016498511657118797, + 0.0003502443141769618, -0.0353819876909256, 0.0104832723736763, -0.02425719052553177, + 0.0064643071964383125, -0.06738276034593582, 0.03501971438527107, -0.009464379400014877, + 0.01477016881108284, 0.01453620009124279, 0.03480838984251022, 0.036800891160964966, + -0.012551247142255306, 0.016996636986732483, -0.020377852022647858, -0.012905972078442574, + -0.01523810438811779, -0.0034151768777519464, 0.03203096240758896, -0.029766757041215897, + -0.006264302413910627, 0.003294419264420867, -0.01067950390279293, -0.02024199813604355, + -0.021268438547849655, 0.011170081794261932, -0.021600522100925446, 0.018385350704193115, + -0.01708720624446869, 0.004505769349634647, 0.004664263688027859, -0.030868669971823692, + 0.01687587983906269, 0.02874031662940979, 0.021660901606082916, -0.005890708416700363, + -0.03236304596066475, 0.014445632696151733, 0.023396791890263557, -0.0014660732122138143, + 0.008098308928310871, -0.01954764313995838, 0.024679841473698616, -0.008792665787041187, + -0.022460920736193657, 0.011290838941931725, 0.02874031662940979, -0.0251326821744442, + 0.01182670146226883, 0.03867263346910477, 0.0018085342599079013, -0.033057402819395065, + 0.02794029749929905, -0.006105808075517416, -0.03991039842367172, -0.003503858344629407, + -0.03559331223368645, 0.012166331522166729, 0.035804640501737595, -0.0014396574115380645, + -0.0006561479531228542, -0.005713345482945442, -0.043231233954429626, -0.01640794426202774, + 0.005181257147341967, -0.05458245053887367, 0.025751566514372826, -0.005883160978555679, + 0.0027057258412241936, -0.019592925906181335, -0.001998161431401968, -0.01196255348622799, + -0.02083069272339344, -3.6822824768023565e-5, -0.014113549143075943, -0.01674002781510353, + 0.0019396694842725992, 0.009366264566779137, -0.0165437962859869, -0.022959046065807343, + -0.03296683356165886, 0.014634315855801105, 0.014309779740869999, 0.037555623799562454, + 0.0030981882009655237, 0.01621171273291111, 0.01962311565876007, -0.01674002781510353, + -0.007441689260303974, -0.010279493406414986, 0.010226662270724773, 0.006373738870024681, + -0.011034228838980198, -0.00820397213101387, 0.02807614952325821, -0.022476015612483025, + -0.0015273954486474395, -0.008241708390414715, 0.01868724450469017, -0.01119272317737341, + -0.007309610489755869, 0.005958634428679943, 0.0019396694842725992, -0.006905827205628157, + -0.020815597847104073, -0.01835516095161438, 0.004471806343644857, 0.01473243162035942, + 0.007222816348075867, -0.0018047606572508812, -0.016226807609200478, 0.0032019643113017082, + -0.001762306783348322, -0.02899692766368389, 0.008460582233965397, -0.0207099337130785, + 0.009094559587538242, -0.028438422828912735, 0.012973898090422153, 0.017736278474330902, + 0.025027019903063774, 0.014807905070483685, -0.04549543932080269, -0.0003110924153588712, + -0.009856842458248138, -0.028121434152126312, 0.024211905896663666, 0.027110088616609573, + 0.029253536835312843, -0.01504187285900116, -0.03658956289291382, -0.0051246522925794125, + -0.027638403698801994, -0.01443808525800705, -0.0011500278487801552, 0.02110239677131176, + -0.0531635507941246, 0.02069484069943428, 0.004132175352424383, 0.01714758388698101, + -0.015834344550967216, -0.01566830277442932, -0.0027585572097450495, 0.005290694069117308, + -0.010890829376876354, 0.0138644864782691, 0.02671762742102146, -0.017102301120758057, + 0.019004233181476593, 0.034868765622377396, 0.02271752990782261, -0.022143932059407234, + -0.03562350198626518, 0.00837756134569645, -0.024483609944581985, 0.019713684916496277, + 0.0066416701301932335, -0.018611770123243332, 0.025268536061048508, 0.01968349516391754, + -0.015094704926013947, -0.008883233182132244, -0.005335978232324123, 0.009585137479007244, + -0.021811848506331444, 0.007894530892372131, -0.03692164644598961, -0.0335102453827858, + 0.005041631404310465, 0.00752093642950058, 0.012075763195753098, -0.015894724056124687, + -0.01640794426202774, 0.03435554727911949, -0.05455226078629494, -0.01707211136817932, + -0.03936699032783508, 0.015139988623559475, 0.016166428104043007, 0.013373908586800098, + -0.024227000772953033, -0.010143641382455826, 0.025827039033174515, -0.014943757094442844, + -0.04452937841415405, -0.047186046838760376, -0.02143448032438755, 0.004283122252672911, + -0.005049178842455149, 0.01044553518295288, 0.016045670956373215, 0.018234403803944588, + -0.01720796339213848, 0.01580415479838848, 0.02137410081923008, 0.01708720624446869, + -0.04320104420185089, -0.00968325324356556, 0.029253536835312843, -0.008988896384835243, + -0.049540821462869644, -0.0004202931886538863, 0.0027396888472139835, -0.014241853728890419, + -0.022415636107325554, -0.02203826792538166, -0.00017547594325151294, -6.574451163032791e-6, + 0.020528798922896385, -0.0027170467656105757, 0.013683349825441837, 0.01092101912945509, + -0.025102494284510612, 0.0014811678556725383, -0.0358952060341835, 0.012604078277945518, + -0.03314797207713127, -0.016845690086483955, 0.008173782378435135, 0.003279324620962143, + -0.0251779668033123, -0.05403904244303703, -0.03616691380739212, 0.027623308822512627, + -0.0006481288583017886, 0.02392510697245598, 0.005588814150542021, -0.02143448032438755, + 0.03136679530143738, 0.008053025230765343, 0.0040529281832277775, -0.009524758905172348, + -0.010309683158993721, 0.0023264712654054165, -0.007271873764693737, -0.0009764386923052371, + -0.013434287160634995, -0.0027359151281416416, -0.023940201848745346, 0.02135900780558586, + -0.0018585354555398226, -0.006871864199638367, -0.031578123569488525, -0.014906020835042, + -0.008762476034462452, -0.011630469933152199, 0.0021415611263364553, 0.015487167052924633, + 0.0122267110273242, 0.0015594717115163803, -0.01366825494915247, -0.01989481970667839, + 0.013751275837421417, -0.013509760610759258, 0.0030246013775467873, -0.04398597031831741, + -0.043502938002347946, 0.004286895971745253, 0.0022925082594156265, -0.009222864173352718, + 0.008920970372855663, 0.02412133850157261, 0.016332469880580902, -0.003468008479103446, + -0.018657054752111435, -0.005060499534010887, 0.003486876841634512, 0.018234403803944588, + 0.008588886819779873, 0.018007982522249222, -0.005792592652142048, 0.004535958636552095, + 0.011079513467848301, 0.010702145285904408, -0.013004087843000889, 0.027245942503213882, + 0.05098991096019745, -0.021660901606082916, 0.03154793381690979, -0.016845690086483955, + 0.042899150401353836, -0.019879726693034172, -0.019925009459257126, 0.037555623799562454, + -0.017162678763270378, -0.02237035147845745, 0.02566099725663662, -0.006154865957796574, + -0.003301966702565551, -0.02069484069943428, 0.014815452508628368, 0.00891342293471098, + -0.023200560361146927, 0.013509760610759258, -0.018521202728152275, -0.008792665787041187, + 0.013939959928393364, -0.004275575280189514, -0.007026584818959236, -0.014853189699351788, + 0.025600619614124298, -0.008120951242744923, 0.041359491646289825, -0.010800261050462723, + 0.006577517371624708, -0.014551294967532158, 0.017057016491889954, 0.01470978930592537, + -0.014241853728890419, 0.0131625821813941, -0.010566293261945248, -0.0006622801884077489, + -0.0484841912984848, -0.03236304596066475, -0.008905875496566296, -0.033932894468307495, + -0.05002385005354881, -0.030974334105849266, 0.009419095702469349, 0.026944046840071678, + 0.016966447234153748, 0.012400299310684204, 0.012075763195753098, -0.025268536061048508, + -0.03188001736998558, 0.026113837957382202, -0.006309586577117443, -0.0013707878533750772, + -0.023864727467298508, 0.01829478144645691, -0.04730680584907532, -0.0052189938724040985, + 0.015547545626759529, 0.02511758916079998, 0.007962456904351711, -0.013147487305104733, + -0.037404678761959076, 0.005109557416290045, 0.008611529134213924, 0.006279397290199995, + -0.01587962917983532, -0.02827238105237484, -0.0221137423068285, -0.01997029408812523, + -0.013034277595579624, -0.004030286334455013, -0.006426570471376181, -0.006834127474576235, + 0.0125663410872221, 0.052559759467840195, 0.016256997361779213, 0.028710128739476204, + -0.020453324541449547, 0.020619366317987442, -0.0009047388448379934, -0.001107573974877596, + 0.02867993898689747, 0.03803865611553192, 0.012271994724869728, 0.01450601126998663, + 0.04461994767189026, 0.03891414776444435, 0.014543747529387474, 0.048001158982515335, + 0.016589080914855003, -0.0069473376497626305, -0.03435554727911949, -0.0036019738763570786, + 0.010898376815021038, 0.027713878080248833, -0.056363627314567566, 0.024423232302069664, + 0.006569969933480024, -0.0005995428073219955, 0.047336991876363754, -0.015502261929214, + 5.1298411563038826e-5, -0.017781561240553856, 0.0377669520676136, -0.032453615218400955, + 0.0165437962859869, -0.012747477740049362, -0.019140085205435753, 0.01963821053504944, + 4.2276966269128025e-5, 0.008573791943490505, -0.012158784084022045, -0.016453227028250694, + 0.033661190420389175, 0.011268196627497673, 0.020755218341946602, -0.015260746702551842, + -0.04160100594162941, -0.005792592652142048, -0.015253199264407158, -0.06273359060287476, + 0.034536685794591904, 0.008988896384835243, 0.02913277968764305, -0.016332469880580902, + ], + index: 75, + }, + { + title: "List of flora of the Sonoran Desert Region by common name", + text: "The Sonoran Desert is located in the southwestern United States and northwestern Mexico in North America.The Sonoran Desert Region, as defined by the Arizona-Sonora Desert Museum, includes the Sonoran Desert and some surrounding areas. All of Sonora, the Baja California Peninsula, and the islands of the Gulf of California are included.", + vector: [ + 0.07355865836143494, 0.03149097412824631, -0.017765160650014877, -0.003800176316872239, + 0.02606974169611931, -0.06207840517163277, 0.028062840923666954, -0.048791076987981796, + -0.028142565861344337, 0.046080462634563446, -0.083125539124012, 0.007553847040981054, + 0.0014533017529174685, 0.0022588460706174374, -0.00465388735756278, 0.041084423661231995, + -0.005584000609815121, 0.016556013375520706, 0.03313860297203064, 0.05104992166161537, + 0.013081376440823078, 0.01733996532857418, 0.027531348168849945, 0.005813207011669874, + 0.015652474015951157, 0.06627720594406128, -0.04695742577314377, -0.016290266066789627, + -0.04669167846441269, -0.024594847112894058, 0.011108207516372204, -0.03675275668501854, + 0.03816121071577072, 0.061972107738256454, -0.011387242004275322, 0.027664221823215485, + -0.003411521902307868, 0.009938922710716724, 0.005849746987223625, 0.03106577694416046, + -0.00308432150632143, -0.04913654550909996, 0.04477830231189728, -0.014310454949736595, + -0.0012323998380452394, -0.03313860297203064, -0.015054545365273952, 0.02386404573917389, + -0.00542123056948185, 0.028966380283236504, -0.00850389152765274, -0.005039219744503498, + -0.057188667356967926, 0.015240567736327648, -0.003634084714576602, 0.037071652710437775, + 0.0352911502122879, 0.11533402651548386, -0.04360901564359665, -0.0481267087161541, + -0.023717883974313736, 0.02390390634536743, 0.07345236092805862, 0.008198282681405544, + 0.008012260310351849, 0.001493163756094873, 0.003165706293657422, -0.01787145808339119, + -0.021233152598142624, 0.0108424611389637, -0.004813335370272398, 0.025325650349259377, + -0.035530321300029755, 0.008045478723943233, -0.022149980068206787, 0.06978505849838257, + -0.011241081170737743, 0.015878358855843544, -0.005069116596132517, -0.015413302928209305, + 0.0036839123349636793, -0.01583849824965, 0.024249376729130745, 0.02976362034678459, + -0.022149980068206787, 0.019625386223196983, 0.01206489559262991, -0.0438481904566288, + -0.0035942227113991976, -0.02335912548005581, -0.005726839415729046, 0.008988878689706326, + -0.006311481818556786, -0.006075631827116013, 0.031809866428375244, 0.059899285435676575, + 0.028089415282011032, 0.013579651713371277, 0.018190354108810425, 0.006308159790933132, + -0.031650420278310776, -0.022216415032744408, -0.03093290515244007, 0.02335912548005581, + -0.0047967261634767056, 0.015227280557155609, 0.051501691341400146, 0.013134526088833809, + -0.041562769562006, -0.008258075453341007, -0.0025428629014641047, -0.01991770789027214, + 0.0058763218112289906, -0.008291293866932392, -0.026335489004850388, -0.01516084372997284, + -0.01606438122689724, -0.0021126854699105024, -0.062237855046987534, 0.01561261247843504, + 0.02102055586874485, -0.005879643373191357, 0.01710079424083233, 0.01118128839880228, + -0.025485098361968994, 0.005617219023406506, 0.03162384405732155, 0.013347122818231583, + 0.0420411117374897, 0.0037603143136948347, 0.04217398539185524, 0.02787681855261326, + 0.0642043799161911, -0.008796212263405323, -0.03885215148329735, -0.003154079895466566, + -0.0027471554931253195, 0.04355586692690849, 0.01914704218506813, 0.03316517546772957, + -0.014111144468188286, 0.01327404286712408, 0.007381111849099398, 0.03933049738407135, + 0.0046206689439713955, -0.06340713798999786, -0.0737181082367897, 0.05851740017533302, + 0.01874842308461666, -0.03199589252471924, -0.00995885394513607, 0.0352911502122879, + 0.08397592604160309, -0.015041257254779339, 0.049694616347551346, 0.005956045817583799, + -0.0012664486421272159, -0.04220056161284447, 0.08163735270500183, 0.010098370723426342, + 0.030507709830999374, 0.061068568378686905, -0.011599838733673096, -0.017618998885154724, + -0.0025926902890205383, -0.0601118803024292, -0.020661799237132072, 0.002860097913071513, + 0.014934958890080452, 0.006088919006288052, 0.060537077486515045, 0.03877243027091026, + -0.044804878532886505, 0.022880783304572105, 0.005142196547240019, -0.048791076987981796, + 0.006889480631798506, -0.0034580277279019356, -0.04036691039800644, -0.015320291742682457, + 0.010510277934372425, -0.02516620233654976, 0.06500162184238434, -0.007361181080341339, + -0.021299589425325394, 0.03587578982114792, -0.03483938053250313, 0.03866612911224365, + 0.010350829921662807, 0.030507709830999374, -0.014137718826532364, -0.001380221452564001, + -0.015386728569865227, -0.042227134108543396, 0.037603143602609634, -0.005142196547240019, + 0.009068602696061134, 0.024275952950119972, 0.012556526809930801, -0.005461092572659254, + 0.002906603505834937, -0.03754999488592148, 0.022947218269109726, 0.06138746440410614, + 0.029843343421816826, 0.040552932769060135, -0.004062601365149021, -0.019266627728939056, + -0.011872229166328907, 0.05027925595641136, 0.006457642652094364, -0.004949530586600304, + -0.03279313072562218, -0.0011742678470909595, -0.004906346555799246, 0.011274299584329128, + -0.011606482788920403, -0.0395696684718132, -0.0070289974100887775, -0.012596389278769493, + 0.042227134108543396, -0.015572750940918922, -0.018549112603068352, 0.002806948497891426, + -0.010450485162436962, -0.011553333140909672, -0.019027456641197205, 0.02747819945216179, + -0.015679050236940384, -0.01740640215575695, -0.009918991476297379, -0.07254882156848907, + 0.00728810066357255, 0.02346542477607727, -0.04305094853043556, 0.029816769063472748, + 0.05612568184733391, -0.03032168745994568, 0.00512226577848196, 0.00537140341475606, + -0.02747819945216179, -0.0037237743381410837, -0.02507319115102291, -0.007839525118470192, + 0.04034033417701721, 0.012197769246995449, -0.0035277861170470715, -0.020741522312164307, + 0.04690427705645561, 0.05200660973787308, -0.024541698396205902, -0.005231886170804501, + -0.016675598919391632, 0.03082660585641861, -0.02888665534555912, -0.06792483478784561, + 0.005783310625702143, 0.0018020941643044353, 0.022415725514292717, -0.003288614097982645, + 0.0016210542526096106, 0.010822530835866928, 0.01753927581012249, -0.036035239696502686, + -0.022840920835733414, -0.005982620175927877, 0.019691823050379753, 0.005919505376368761, + -0.02222970314323902, -0.015971370041370392, -0.00960673950612545, -0.027265600860118866, + -0.0026391958817839622, 0.019426075741648674, 0.0407123789191246, 0.06160006299614906, + 0.06659609824419022, 0.03327147290110588, 0.02593686804175377, 0.007872743532061577, + 0.01820364221930504, -0.01844281330704689, 0.010869036428630352, -0.03906475007534027, + -0.0239703431725502, 0.03173014521598816, -0.017725298181176186, 0.0039396933279931545, + 0.0019349674694240093, -0.014589488506317139, -0.02785024419426918, -0.005494310986250639, + 0.04799383506178856, -0.011094920337200165, 0.06462957710027695, 0.030773457139730453, + -0.008105271495878696, -0.014735649339854717, -0.05585993453860283, 0.027172589674592018, + -0.0020313006825745106, 0.0013719168491661549, -0.008311225101351738, 0.03417501226067543, + 0.05793276056647301, 0.057720161974430084, -0.034493908286094666, 0.02888665534555912, + -0.05019953474402428, -0.017592424526810646, -0.05349479243159294, -0.032181914895772934, + 0.019798122346401215, -0.01067637000232935, 0.002918229904025793, -0.02624247781932354, + 0.03361694514751434, -0.027823669835925102, -0.018761709332466125, -0.016688887029886246, + 0.00925462506711483, -0.053813688457012177, 0.005351472180336714, -0.02038276381790638, + 0.02747819945216179, 0.03454705700278282, -0.022880783304572105, 0.018469389528036118, + -0.020236603915691376, -0.030002791434526443, 3.122003545286134e-5, -0.03970254212617874, + 0.006314803846180439, -0.032580532133579254, 0.03930392116308212, 0.004241980146616697, + 0.041323598474264145, 0.022336002439260483, 0.042227134108543396, -0.026295626536011696, + -0.002453173277899623, 0.029072677716612816, 0.023040231317281723, -0.01850925013422966, + 0.03717795014381409, -0.02787681855261326, -0.004617347382009029, 0.05232550576329231, + -0.026029879227280617, 0.014350316487252712, 0.00035896553890779614, -0.022149980068206787, + -0.029364999383687973, 0.013978270813822746, -0.004165578167885542, -0.00982598029077053, + -0.02674739621579647, 0.0057002645917236805, 0.04387476295232773, 0.04193481430411339, + -0.018363090232014656, -0.026933418586850166, -0.04666510224342346, -0.03470650687813759, + -0.02939157374203205, 7.619453390361741e-5, -0.019426075741648674, 0.031278375536203384, + 0.005391334183514118, 0.00037225286359898746, -0.020940832793712616, 0.05413258448243141, + 0.025990016758441925, -0.03042798675596714, 0.005869678221642971, 0.0330057293176651, + 0.0197848342359066, 0.041217297315597534, -0.012981721200048923, -0.02551167458295822, + 0.008118558675050735, 0.08285979181528091, -0.007633571047335863, 0.00349788973107934, + 0.05543474107980728, -0.020303040742874146, 0.0033733209129422903, -0.01031096838414669, + -0.001871852669864893, -0.026959992945194244, 0.031544122844934464, 0.01516084372997284, + 0.007480766624212265, -0.017512701451778412, -0.009015453048050404, -0.03677932918071747, + -0.004039348568767309, 0.008895867504179478, -0.003634084714576602, 0.03853325545787811, + -0.026269052177667618, 0.005813207011669874, 0.02419622801244259, 0.01680847257375717, + 0.0034945677034556866, 0.015904933214187622, -0.02657466009259224, -0.007826237007975578, + -0.013765674084424973, 0.004022739361971617, -0.034998826682567596, 0.014868522062897682, + -0.00845074187964201, 0.03260710835456848, -0.025697696954011917, -0.027292175218462944, + 0.045176923274993896, 0.03646043315529823, 0.02456827275454998, -0.008404236286878586, + -0.014363603666424751, 0.01619725488126278, -0.007633571047335863, -0.01914704218506813, + -0.06346029043197632, 0.03377639129757881, 0.039011601358652115, 0.01720709167420864, + -0.0024199550971388817, 0.001510603353381157, 0.03082660585641861, 0.006032447796314955, + -0.039383646100759506, 0.03170356899499893, 0.029099252074956894, -0.025923581793904305, + -0.052298929542303085, -0.008822787553071976, 0.04142989590764046, 0.040552932769060135, + -0.011001909151673317, 0.053813688457012177, -0.014350316487252712, 0.009188189171254635, + -0.02333255112171173, 0.035397447645664215, 0.013280685991048813, 0.009952209889888763, + 0.009560233913362026, -0.016383277252316475, -0.018084056675434113, 0.008889223448932171, + -0.022654898464679718, 0.022375863045454025, 0.01553288847208023, -0.04047320783138275, + -0.008012260310351849, 0.015307004563510418, 0.024076642468571663, 0.018349802121520042, + -0.0006049887742847204, -0.048551905900239944, 0.023691309615969658, -0.06946615874767303, + 0.007839525118470192, -0.0008586937328800559, -0.02657466009259224, 0.004255267325788736, + -0.02591029368340969, -0.02888665534555912, -0.002586046699434519, -0.024315813556313515, + -0.028089415282011032, -0.011526758782565594, -0.010862392373383045, -0.010237887501716614, + -0.03648700937628746, -0.0197848342359066, -0.02095411904156208, 0.01626369170844555, + -0.011553333140909672, 0.01690148375928402, 0.011048414744436741, 0.005374724976718426, + 0.037098225206136703, -0.006401171442121267, -0.006630377843976021, 0.030720306560397148, + -0.010071796365082264, 0.07573778182268143, 0.005364759359508753, -0.015333578921854496, + -0.024953605607151985, -0.03497225418686867, 0.0007922570803202689, 0.008271362632513046, + -0.042758628726005554, -0.04849875345826149, 0.0031391317024827003, 0.02222970314323902, + -0.05607253313064575, -0.05633828043937683, 0.03600866347551346, -0.03515827655792236, + 0.002918229904025793, -0.003946336917579174, -0.05136881768703461, 0.06122801825404167, + -0.032819706946611404, 0.009659889154136181, 0.007035641465336084, -0.020396051928400993, + 0.0029663965106010437, 0.004972783382982016, -0.006942629814147949, 0.006002551410347223, + -0.0006178608746267855, 0.015400015749037266, -0.006590515840798616, 0.003210551105439663, + 0.005431196186691523, 0.031172076240181923, -0.013293974101543427, 0.009546946734189987, + 0.02300036884844303, -0.010908897966146469, 0.022003818303346634, 0.009533659555017948, + -0.03329804912209511, 0.01334047969430685, -0.02436896413564682, 0.01720709167420864, + -0.015506314113736153, -0.027797095477581024, 0.011885516345500946, -0.04073895514011383, + 0.023372413590550423, -0.0076734330505132675, 0.024408824741840363, 0.028195714578032494, + -0.036300987005233765, 0.018522538244724274, 0.004733611363917589, -0.05532844364643097, + -0.059155192226171494, 0.014004846103489399, -0.01074280682951212, 0.001003193436190486, + -0.044432830065488815, -0.006431067828088999, 0.003800176316872239, 0.04036691039800644, + 0.014988108538091183, 0.036300987005233765, 0.007334606256335974, -0.059367790818214417, + -0.004736933391541243, 0.0015404998557642102, 0.0249668937176466, -0.02212340384721756, + 0.0056404718197882175, 0.03279313072562218, 0.012782411649823189, 0.007905961014330387, + -0.002375110285356641, 0.0034380967263132334, -0.03080003149807453, -0.01176593080163002, + 0.04988063871860504, 0.006600481458008289, -0.0015878359554335475, -0.011493540368974209, + -0.0026441786903887987, 0.007148583419620991, 0.024913743138313293, 0.009148326702415943, + -0.032314788550138474, -0.0008811160805635154, -0.007195089478045702, -0.038506682962179184, + 0.0194526519626379, -0.04839245602488518, -0.04371531680226326, -0.0219240952283144, + -0.005872999783605337, 0.0036241193301975727, 0.009918991476297379, 0.0012440262362360954, + -0.01270268764346838, 0.010769381187856197, 0.046505656093358994, 0.003388269105926156, + 0.023252828046679497, 0.030135665088891983, -0.004962817765772343, -0.005623862612992525, + 0.0018535825656726956, -0.01387197244912386, 0.005869678221642971, -0.0065805502235889435, + 0.06005873158574104, -0.004524335730820894, 0.002207357669249177, -0.007879386655986309, + 0.0300559401512146, 0.01240372285246849, 0.06160006299614906, 0.005564069375395775, + 0.009334349073469639, 0.020396051928400993, -0.0011875551426783204, 0.008138489909470081, + -0.0014250661479309201, -0.0072017330676317215, 0.021233152598142624, 0.012848848477005959, + 0.007992329075932503, -0.0065572974272072315, 0.01561261247843504, -0.030348261818289757, + 0.025192778557538986, -0.007972397841513157, -0.026215901598334312, -0.009932279586791992, + -0.04616018384695053, -0.014523051679134369, 0.000685127975884825, 0.008902511559426785, + 0.027371900156140327, -0.027903392910957336, 0.028594333678483963, -0.031278375536203384, + -0.06149376556277275, -0.021977243945002556, 0.02051563747227192, -0.00895566027611494, + -0.038373809307813644, -0.04411393776535988, 0.006118815392255783, 0.006078953389078379, + -0.009580165147781372, 0.032580532133579254, -0.018216930329799652, -0.04934914410114288, + -0.005118943750858307, 0.005584000609815121, 0.029364999383687973, -0.011393885128200054, + 0.019532375037670135, 0.00425194576382637, -0.004793404135853052, 0.0151475565508008, + -0.046505656093358994, -0.015253854915499687, 0.010470416396856308, 0.011360667645931244, + 0.00823150109499693, -0.026694245636463165, -0.0067532854154706, -0.006341378204524517, + -0.01031096838414669, -0.0007910113781690598, -0.03800176456570625, 0.027637647464871407, + -0.0045608761720359325, -0.01793789491057396, 0.0024232768919318914, -0.0377625934779644, + -0.012981721200048923, 0.027159303426742554, 0.004524335730820894, -0.034493908286094666, + 0.005437839776277542, 0.01066308282315731, 0.004328347742557526, -0.0028036267030984163, + -0.02664109691977501, 0.011221149936318398, -0.014469902031123638, 0.017791735008358955, + -0.00020325463265180588, -0.036965351551771164, 0.00401609530672431, -0.003363355528563261, + -0.017632286995649338, -0.004766829777508974, 0.06021818146109581, -0.0058630346320569515, + -0.012011746875941753, -0.00801890343427658, 0.008025547489523888, -0.003687234129756689, + -0.0372842475771904, 0.027929967269301414, 0.022269565612077713, 0.001643476658500731, + 0.04273205250501633, -0.02965732105076313, -0.01516084372997284, -0.01934635266661644, + 0.0384269580245018, 0.04129702225327492, -0.008364374749362469, -0.007241595070809126, + 0.0072017330676317215, -0.052272357046604156, -0.01586507260799408, 0.001112813944928348, + 0.04589443653821945, 0.03765629231929779, 0.010291037149727345, 0.0014458276564255357, + -0.024315813556313515, 0.011971884407103062, -0.016688887029886246, -0.03212876245379448, + 0.01797775737941265, 0.004707036539912224, -0.015134269371628761, -0.013333835639059544, + 0.024342387914657593, 0.05102334916591644, -0.031012628227472305, 0.024355676025152206, + 0.009965498000383377, 0.002710615284740925, -0.01723366789519787, -0.043927911669015884, + 0.01199845876544714, 0.005155484192073345, -0.03279313072562218, 0.03406871482729912, + -0.014855234883725643, 0.01183236762881279, -0.028275437653064728, -0.015918221324682236, + 0.006437711417675018, -0.027159303426742554, -0.012901997193694115, -0.012078182771801949, + 0.0005701095215044916, -0.014483190141618252, -0.025392087176442146, 0.04538951814174652, + -0.004826622549444437, 0.012244274839758873, 0.03972911834716797, 0.008477316237986088, + -0.026295626536011696, 0.030614009127020836, -0.0025478454772382975, 0.01700778305530548, + -0.0054544489830732346, -0.03781574219465256, -0.016316842287778854, -0.004687105771154165, + 0.05322904512286186, -0.06765908747911453, 0.004637278150767088, 0.061334315687417984, + -0.033085450530052185, 0.043901339173316956, -0.028036266565322876, 0.03983541578054428, + 0.003007919294759631, 0.004122394137084484, -0.03438761085271835, -0.013885259628295898, + -0.018921157345175743, 0.045708414167165756, 0.04283835366368294, 0.025259215384721756, + -0.0291524026542902, 0.04616018384695053, 0.014177581295371056, -0.0497477650642395, + -0.0066038030199706554, 0.01019138190895319, -0.01817706786096096, 0.020409338176250458, + -0.014390178956091404, -0.014748936519026756, 0.05522214248776436, 0.02862090989947319, + 0.03303230181336403, -0.06096227094531059, 0.012828917242586613, 0.023957056924700737, + -0.021060418337583542, -0.008404236286878586, -0.0017854849575087428, 0.0016002928605303168, + -0.006258332636207342, -0.05248495563864708, -0.003879900323227048, 0.009068602696061134, + -0.020037293434143066, 0.020223315805196762, -0.03388269245624542, -0.009839268401265144, + -0.010423910804092884, 0.012995008379220963, -0.03935707360506058, 0.005384690593928099, + 0.03263368457555771, -0.0124834468588233, -0.03303230181336403, 0.0013885259395465255, + -0.030454561114311218, -0.01927991583943367, 0.012323998846113682, 0.006288229022175074, + -0.047542065382003784, 0.005158805754035711, -0.013885259628295898, -0.018854720517992973, + -0.024820731952786446, -0.006896124221384525, -0.001949915662407875, -0.030374836176633835, + 0.050226107239723206, 0.013028226792812347, -0.04278520122170448, -0.016051094979047775, + 0.0171672310680151, 0.012436941266059875, -0.001676694955676794, -0.03789546713232994, + -0.002175800269469619, 0.04334327206015587, -0.025857144966721535, 0.0024365640711039305, + -0.011692850850522518, -0.00646096421405673, -0.0005306627717800438, 0.011945310048758984, + 0.039915140718221664, 0.016928058117628098, 0.004155612550675869, 0.011991815641522408, + 0.042758628726005554, -0.02912582829594612, -0.017898034304380417, -0.013765674084424973, + 0.060430776327848434, 0.020701659843325615, 0.005175414960831404, -0.005258460994809866, + -0.009952209889888763, 0.0013262416468933225, 0.02507319115102291, -0.018482675775885582, + 0.031278375536203384, -0.006560619454830885, -0.01897430792450905, -0.006447677034884691, + -0.0033766427077353, -0.0077199386432766914, -0.016276979818940163, 0.01380553562194109, + -0.023784320801496506, 0.0014234052505344152, -0.013400272466242313, 0.023624872788786888, + -0.017831597477197647, -0.010636507533490658, 0.02064851112663746, 0.002307012677192688, + -0.028062840923666954, -0.008610189892351627, 0.037842314690351486, -0.01573219895362854, + -0.006982491817325354, -0.03832066059112549, 0.021180003881454468, 0.025524960830807686, + -0.00035647416370920837, 0.026083029806613922, 0.031783293932676315, -0.018495963886380196, + -0.0408984012901783, -0.005975976586341858, -0.009048671461641788, 0.012629607692360878, + 0.010981977917253971, -0.013533146120607853, 0.005623862612992525, 0.008464029058814049, + 0.059367790818214417, -0.006660274229943752, -0.04002143815159798, -0.0007357859285548329, + -0.033590368926525116, -0.015891646966338158, 0.044539131224155426, -0.011420460417866707, + 0.010968690738081932, 0.0030029367189854383, -0.016928058117628098, 0.006078953389078379, + 0.009234694764018059, -0.034254737198352814, 0.046505656093358994, -0.01300165243446827, + -0.013533146120607853, 0.027770519256591797, 0.022668184712529182, 0.0003068542864639312, + -0.04150962084531784, 0.052697550505399704, -0.004218727350234985, -0.019306490197777748, + -0.012164550833404064, 0.004205440171062946, -0.006437711417675018, -0.026335489004850388, + -0.010237887501716614, 0.0015787009615451097, -0.004029382951557636, -0.024661283940076828, + 0.04552239179611206, -0.0413767471909523, -0.017459550872445107, -0.008457385934889317, + 0.014616062864661217, -0.016755323857069016, 0.031544122844934464, -0.02212340384721756, + -0.00414232537150383, -0.042864926159381866, -0.0001296552800340578, -0.0061487117782235146, + -0.036540158092975616, 0.0035709699150174856, -0.014775510877370834, -0.0239703431725502, + -0.006869549863040447, -0.009400785900652409, -0.025219352915883064, -0.01516084372997284, + 0.05442490428686142, 0.010138233192265034, -0.012330641970038414, 0.011094920337200165, + -0.000808035780210048, 0.015360153280198574, 0.005221920553594828, -0.0033052233047783375, + 0.03970254212617874, 0.014031420461833477, 0.03704507648944855, 0.033085450530052185, + -0.021033843979239464, -0.010098370723426342, -0.003856647526845336, 0.002610960276797414, + 0.003491245908662677, 0.008118558675050735, -0.015679050236940384, -0.01694134622812271, + -0.03175671771168709, -0.003233803901821375, -0.02302694320678711, 0.009746256284415722, + 0.010756094008684158, -0.031012628227472305, -0.02939157374203205, -0.012443584389984608, + 0.01914704218506813, 0.0150279700756073, 0.00728810066357255, -0.019638674333691597, + -0.0028667415026575327, -0.03159727156162262, -0.0025794028770178556, -0.006630377843976021, + -0.0009492136305198073, -0.01687490940093994, 0.036540158092975616, -0.012948502786457539, + 0.012516665272414684, -0.008258075453341007, -0.00781294982880354, 0.024023493751883507, + 0.023345839232206345, 0.018429527059197426, -0.022840920835733414, 0.01586507260799408, + 0.010702944360673428, 0.04315724968910217, 0.032686833292245865, 0.0030942868907004595, + 0.038506682962179184, 0.026760682463645935, -0.03587578982114792, 0.01650286465883255, + 0.018868008628487587, 0.012031677179038525, -0.03340434655547142, 0.022987080737948418, + 0.003467993112280965, 0.04448598250746727, 0.015386728569865227, -0.030906328931450844, + -0.017300104722380638, 0.027690796181559563, 0.02155204862356186, -0.011407173238694668, + 0.030374836176633835, 0.01868198625743389, -0.010443841107189655, -0.009932279586791992, + 0.005760057829320431, 0.029710469767451286, 0.06175950914621353, 0.02024989016354084, + 0.028169140219688416, 0.03175671771168709, -0.004145646933466196, -0.003567648120224476, + 0.00036623203777708113, -0.019266627728939056, -0.03276655450463295, -0.033723242580890656, + -0.04002143815159798, 0.03093290515244007, -0.020063867792487144, -0.013911834917962551, + 0.03550374507904053, -0.006620412226766348, 0.05017295852303505, 0.0203561894595623, + 0.01619725488126278, 0.005716873798519373, -0.020435914397239685, 0.012264206074178219, + 0.007547203451395035, -0.0006934325210750103, -0.03858640789985657, 0.009135039523243904, + -0.013898547738790512, 0.05429203063249588, 0.015253854915499687, 0.024820731952786446, + -0.03478623181581497, -0.000708380772266537, -0.009261269122362137, -0.014390178956091404, + -0.017127368599176407, 0.02694670483469963, -0.0020744844805449247, 0.02172478474676609, + 0.0037237743381410837, -0.007939179427921772, -0.013818823732435703, -0.02480744570493698, + -0.0031391317024827003, 0.006062344182282686, -0.009998715482652187, 0.026215901598334312, + 0.0028169138822704554, -0.008244788274168968, 0.024594847112894058, 0.05102334916591644, + 0.014018133282661438, 0.008782925084233284, 0.0036938777193427086, -0.04910997301340103, + -0.0038832221180200577, 0.0069559174589812756, -0.028036266565322876, 0.011307517997920513, + -0.01890787109732628, -0.001380221452564001, 0.03188959136605263, 0.021817795932292938, + -0.017725298181176186, -0.0005900405230931938, -0.0037736017256975174, -0.009566877968609333, + 0.04166906699538231, -0.023372413590550423, -0.016051094979047775, 0.002237254288047552, + -0.004069244954735041, 0.004996036179363728, 0.031916167587041855, -0.022415725514292717, + -0.026906844228506088, -0.005843103397637606, 0.0038167855236679316, 0.010423910804092884, + 0.02787681855261326, -0.007839525118470192, 0.041695643216371536, -0.026388637721538544, + 0.018336515873670578, 0.01019138190895319, -0.0054411618039011955, -0.005015966948121786, + 0.020369477570056915, -0.004232014529407024, -0.004736933391541243, 0.011619769968092442, + 0.019027456641197205, 0.026215901598334312, -0.03715137392282486, -0.013699237257242203, + -0.0007175158243626356, -0.03754999488592148, -0.012901997193694115, 0.00048457231605425477, + -5.330502972356044e-5, 0.012742549180984497, -0.007381111849099398, 0.01112813875079155, + 0.04002143815159798, -0.045469243079423904, 0.014536338858306408, 0.004275198560208082, + -0.008072053082287312, -0.008889223448932171, -0.005720195826143026, 0.03273998200893402, + 0.04379504173994064, 0.000282563385553658, 0.025245927274227142, 0.01844281330704689, + -0.01312123890966177, -0.004979426972568035, -0.02102055586874485, 0.0008258906309492886, + -0.013699237257242203, 0.0027023106813430786, 0.009434004314243793, 0.03853325545787811, + 0.0050657945685088634, -0.019465938210487366, -0.014589488506317139, 0.009460578672587872, + 0.013247468508780003, -0.0028816896956413984, -0.004574163351207972, -0.020024007186293602, + -0.00902209710329771, 0.023638160899281502, -0.035769492387771606, -0.0014400144573301077, + -0.02955102175474167, -0.04722316935658455, -0.0330057293176651, -0.011586551554501057, + -0.02289406955242157, -0.004730289336293936, -0.011573264375329018, 0.0022339322604238987, + 0.0348128043115139, -0.0016750340582802892, -0.008849361911416054, -0.025458524003624916, + -0.04124387353658676, 0.011307517997920513, -0.0313846729695797, -0.007547203451395035, + -0.015811922028660774, -0.016024520620703697, 0.005211955402046442, -0.034493908286094666, + -0.02503333054482937, 0.03196931630373001, 0.021140141412615776, -0.025830570608377457, + 0.0036075101234018803, 0.008962304331362247, 0.019200192764401436, 0.00022546938271261752, + 0.015758773311972618, -0.0026823796797543764, -0.013553076423704624, -0.013141169212758541, + -0.008749706670641899, 0.026295626536011696, 0.047382619231939316, 0.005354794207960367, + -0.009447291493415833, 0.001996421255171299, -0.01793789491057396, -0.04735604301095009, + -0.0001126308852690272, -0.017260242253541946, 0.014337029308080673, -0.004813335370272398, + -0.009042028337717056, 0.037868890911340714, 0.012496734037995338, 0.029072677716612816, + 0.027199164032936096, 0.029099252074956894, -0.001503129256889224, 0.011280943639576435, + 0.003936371766030788, 0.002072823466733098, 0.009367567487061024, 0.0006805604207329452, + -0.013559720478951931, -0.006497504189610481, 0.036035239696502686, -0.02245558798313141, + 0.007945823483169079, 0.002227288670837879, 0.0135065708309412, -0.014948246069252491, + -0.020223315805196762, 0.04100470244884491, -0.007959110662341118, -0.04188166558742523, + -0.002526253694668412, 0.02309338003396988, 0.006414458621293306, 0.020781384781003, + -0.013898547738790512, -0.001065477728843689, -0.013559720478951931, -0.01562589965760708, + -0.00530496658757329, -0.009121752344071865, -0.019598811864852905, -0.049986936151981354, + -0.0028385058976709843, 0.036300987005233765, -0.03494567796587944, 0.005049185361713171, + 0.0017439620569348335, 0.00858361553400755, 0.015267142094671726, 0.005896252579987049, + 0.01599794626235962, 0.0233989879488945, -0.023438850417733192, -0.01211804524064064, + -0.026893556118011475, -0.009859198704361916, -0.017765160650014877, -0.014988108538091183, + -0.00605902262032032, -0.016024520620703697, 0.024860594421625137, 0.011945310048758984, + -0.011254368349909782, -0.030241962522268295, -0.03893187642097473, 0.01797775737941265, + 0.015360153280198574, -0.014815373346209526, -0.009852555580437183, 0.025285789743065834, + 0.003989520948380232, 0.007387755438685417, -0.028169140219688416, 0.0323413610458374, + -0.016210542991757393, 0.028328588232398033, 0.003441418521106243, 0.0024432078935205936, + -0.019904419779777527, 0.02470114640891552, -0.0032852923031896353, -0.009865842759609222, + -0.026428500190377235, -0.00020636884437408298, -0.031172076240181923, 0.008410880342125893, + 0.009872485883533955, -0.00980604998767376, -0.013413559645414352, 0.03840038552880287, + -0.03507855162024498, -0.021060418337583542, 0.016077669337391853, -0.01177921798080206, + 0.04243973270058632, -0.02112685516476631, 0.021299589425325394, -0.013147813268005848, + 0.02664109691977501, -0.01437689084559679, -0.003969589713960886, -0.05766701325774193, + -0.01676861010491848, 0.006447677034884691, 0.014722362160682678, -0.016662312671542168, + -0.017446264624595642, 0.020940832793712616, -0.0012523308396339417, 0.021605199202895164, + 0.032288212329149246, 0.04525664448738098, -0.006102206185460091, -0.004630634561181068, + -0.02436896413564682, 0.025857144966721535, -0.008105271495878696, -0.02688026800751686, + -0.00803219061344862, -0.01241701003164053, -0.015386728569865227, 0.009068602696061134, + 0.018030906096100807, 0.002104380866512656, -0.015227280557155609, 0.01054349634796381, + -0.02600330486893654, -0.0033284761011600494, 0.04291807487607002, -0.029072677716612816, + 0.0177385862916708, -0.013659375719726086, 0.013400272466242313, 0.006630377843976021, + 0.005092369392514229, -0.002597673097625375, 0.00448447372764349, -0.03582264110445976, + 0.0006701797246932983, 0.007268169429153204, -0.034626781940460205, 0.03999486193060875, + -0.019293203949928284, 0.015718910843133926, -0.03802833706140518, 0.02031632699072361, + -0.04940229281783104, 0.0065938374027609825, -0.012011746875941753, -0.009693107567727566, + 0.017193805426359177, 0.010576714761555195, 0.005132231395691633, 0.025631260126829147, + -0.013513214886188507, -0.03289942815899849, -0.0001548804430058226, 0.009686463512480259, + -0.027903392910957336, 0.0016692208591848612, 0.019253341481089592, -0.015785347670316696, + -0.049588315188884735, -0.02787681855261326, 0.015466452576220036, -0.010915542021393776, + -0.018602261319756508, 0.03311202675104141, -0.007268169429153204, 0.005424552597105503, + -0.014855234883725643, -0.021512188017368317, -0.0017506057629361749, 0.010603289119899273, + -0.01676861010491848, 0.014297166839241982, -0.00803219061344862, -0.07164528220891953, + 0.009912348352372646, 0.03196931630373001, 0.024422112852334976, -0.016954632475972176, + -0.004743576981127262, -0.01161312684416771, 0.013300617225468159, 0.00896894745528698, + -0.008118558675050735, 0.020502351224422455, -0.028966380283236504, -0.010716231539845467, + -0.0038267511408776045, -0.02476758323609829, -0.030614009127020836, -0.026534797623753548, + -0.013672662898898125, -0.009055315516889095, -0.044432830065488815, -0.006331412587314844, + 0.02175135910511017, 0.012111401185393333, -0.0008001464302651584, 0.001358629553578794, + 0.017924608662724495, -0.03800176456570625, 0.02315981686115265, 0.0030660515185445547, + 0.01561261247843504, -0.001432540244422853, 0.007241595070809126, -0.034759655594825745, + -0.03518484905362129, -0.02965732105076313, 0.029444724321365356, 0.04190823808312416, + -0.003517820732668042, -0.03130494803190231, -0.034600209444761276, 0.02333255112171173, + 0.0022322714794427156, 0.02745162323117256, 0.011041771620512009, -0.03353722020983696, + 0.005205311346799135, 0.05046527832746506, -0.011041771620512009, 0.01991770789027214, + -0.011041771620512009, 0.013526502065360546, 0.03664645552635193, -0.034600209444761276, + -0.016888195648789406, -0.02333255112171173, -0.04900367185473442, 0.042997799813747406, + -0.01670217327773571, 0.01516084372997284, -0.013214250095188618, -0.006623734254390001, + -0.008470673114061356, 0.006348021794110537, -0.03789546713232994, -0.036965351551771164, + 0.021060418337583542, -0.01606438122689724, -0.03922419995069504, 0.028328588232398033, + -0.002984666498377919, 0.011148069985210896, 0.057454414665699005, -0.008623477071523666, + -8.641954627819359e-5, 0.02044920064508915, 0.015067832544445992, -0.026959992945194244, + -0.009859198704361916, 0.01727352850139141, 0.03215533867478371, -0.029046103358268738, + 0.0018735135672613978, 0.002772069303318858, -0.033058878034353256, -0.024275952950119972, + 0.00448447372764349, 0.005985942203551531, 0.01351985801011324, 0.005208633374422789, + -0.0028268794994801283, -0.00015820226690266281, 0.02406335435807705, -0.004916312173008919, + 0.02436896413564682, 0.02031632699072361, 0.004803369753062725, -0.007693364284932613, + 0.016011232510209084, 0.011912091635167599, -0.0197848342359066, 0.010736162774264812, + -0.013659375719726086, -0.0004687936161644757, 0.01340691652148962, -0.04036691039800644, + -0.023518573492765427, 0.020289752632379532, 0.022774484008550644, -0.0019980822689831257, + -0.0004982748650945723, 0.005623862612992525, 0.027265600860118866, -0.032314788550138474, + 0.001247348147444427, -0.01176593080163002, 0.018735134974122047, 0.01696792058646679, + -0.00937421154230833, -0.020502351224422455, -0.016011232510209084, -0.016183968633413315, + -0.05750756338238716, 0.02637534961104393, -0.028860080987215042, -0.0001946386182680726, + 0.029444724321365356, 0.006676883436739445, 0.013739099726080894, 0.0013511553406715393, + -0.0067798602394759655, 0.0224954504519701, -0.01767214946448803, 0.019904419779777527, + 0.014270592480897903, -0.012257562018930912, -0.019465938210487366, -0.0013254111399874091, + -0.0027920003049075603, -0.010370761156082153, -0.012031677179038525, -0.011553333140909672, + 0.01501468289643526, 0.01444332767277956, -0.012217700481414795, -0.007427617441862822, + -0.03337777405977249, -0.03685905411839485, -0.028328588232398033, 0.0036041883286088705, + -0.01283556129783392, 0.021366026252508163, -0.06882836669683456, -0.011393885128200054, + 0.0015811922494322062, 0.003019545692950487, 0.02864748425781727, 0.001838634256273508, + -0.003677268512547016, 0.016529439017176628, -0.02242901362478733, 0.02912582829594612, + -0.0006980000762268901, -0.004966139793395996, -0.010045222006738186, 0.02406335435807705, + -0.011872229166328907, 0.02798311784863472, -0.015240567736327648, -0.009706394746899605, + -0.0007619453244842589, -0.014762223698198795, 0.008982235565781593, 0.03518484905362129, + ], + index: 76, + }, + { + title: "Multnomah people", + text: "The Multnomah were a tribe of Chinookan people who lived in the area of Portland, Oregon, in the United States through the early 19th century. Multnomah villages were located throughout the Portland basin and on both sides of the Columbia River. The Multnomah spoke a dialect of the Upper Chinookan language in the Oregon Penutian family.", + vector: [ + 0.006801684387028217, 0.03566597402095795, -0.02064003236591816, -0.024768037721514702, + 0.001402728259563446, -0.006719124037772417, -0.05415944382548332, -0.035157911479473114, + -0.06818196177482605, 0.006249166559427977, -0.04084821045398712, 0.021059183403849602, + -0.02380272001028061, -0.009862760081887245, 0.012002971954643726, -0.03627564758062363, + -0.0471227802336216, 0.04023853689432144, 0.040772002190351486, 0.03498008847236633, + -0.0061539048328995705, -0.01083442848175764, 0.0015734054613858461, 0.005842716433107853, + 0.061018284410238266, 0.00843383464962244, -0.0022624649573117495, -0.02572065405547619, + 0.018366452306509018, -0.0035088052973151207, 0.007811457850039005, -0.03492928296327591, + 0.026063596829771996, 0.011958517134189606, -0.004286775831133127, 0.012606295756995678, + 0.02565714716911316, 0.010961444117128849, 0.0018242612713947892, 0.017007386311888695, + -0.02124970592558384, 0.02735915593802929, -0.0007688411860726774, 0.025911178439855576, + -0.02459021657705307, -0.01876020058989525, 0.02340897172689438, 0.02097027190029621, + 0.007106521632522345, -0.005779208615422249, 0.057614266872406006, -0.01869669370353222, + 0.0004640037950593978, -0.05507395416498184, -0.009043509140610695, 0.02672407776117325, + 0.02611440233886242, 0.05253364145755768, 0.006763579323887825, -0.020170073956251144, + -0.026393836364150047, -0.03015349805355072, 0.024183766916394234, -0.01957309991121292, + 0.01996684819459915, 0.018125122413039207, 0.0003234928008168936, 0.027181332930922508, + 0.00392795680090785, -0.01972552016377449, 0.0032515989150851965, 0.04468408226966858, + -0.005985609255731106, -0.022748490795493126, 0.0005668069934472442, -0.01083442848175764, + -0.04371876269578934, 0.002386305248364806, -0.027003511786460876, 0.006446040701121092, + 0.0028499120380729437, -0.0027054317761212587, 0.03343050181865692, -0.005591860972344875, + 0.035488151013851166, -0.04056877642869949, -0.016346905380487442, -0.020068461075425148, + -0.053549766540527344, -0.049561478197574615, 0.0030007429886609316, -0.005458494648337364, + -0.05314331874251366, 0.0035215069074183702, -0.009659534320235252, -0.024272676557302475, + 0.045979637652635574, 0.011120214127004147, -0.012002971954643726, 0.01436546165496111, + -0.045547787100076675, 0.004280425142496824, 0.017223311588168144, 0.011583820916712284, + 0.06355859339237213, -0.003061075462028384, 0.011056706309318542, 0.01353986095637083, + -0.015267272479832172, 0.03340509533882141, 0.01376848854124546, 0.018366452306509018, + 0.011221826076507568, -0.01094239205121994, 0.03500549495220184, 0.040772002190351486, + -0.06574326008558273, -0.01872209645807743, -0.04094982147216797, -0.020373297855257988, + -0.02088136039674282, -0.027181332930922508, -0.06731825321912766, -0.026216015219688416, + -0.016359606757760048, -0.08408430963754654, 0.0011058293748646975, 0.06630213558673859, + 0.003699328750371933, 0.044480856508016586, -0.007055715192109346, -0.04115304723381996, + -0.05067921429872513, -0.007373254280537367, -0.022418249398469925, -0.021935589611530304, + 0.050653811544179916, -0.009767497889697552, 0.010821727104485035, -0.012441175989806652, + -0.0011486971052363515, 0.041813530027866364, -0.031042607501149178, -0.004496351350098848, + -0.022291233763098717, -0.07219565659761429, 0.0017051841132342815, 0.048164308071136475, + 0.0033817896619439125, 0.00047511764569208026, 0.026343030855059624, 0.007201783359050751, + 0.017896495759487152, 0.007487568538635969, -0.050044137984514236, 0.01957309991121292, + 0.002560951514169574, 0.019674712792038918, -0.01644851826131344, -0.016816861927509308, + -0.014581388793885708, 0.04003531113266945, 0.047580037266016006, 0.004502702038735151, + 0.03292243927717209, -0.05990054830908775, 0.0222531296312809, -0.03614863380789757, + 0.024514006450772285, 0.02437428943812847, -0.026774883270263672, 0.08789478242397308, + -0.014670299366116524, -0.06777551025152206, -0.018556976690888405, 0.04006071388721466, + 0.00024331422173418105, 0.005702999420464039, 0.033963967114686966, 0.039349425584077835, + -0.009081614203751087, -0.018036212772130966, 0.006366655696183443, 0.00835762545466423, + 0.024869650602340698, -0.01475920993834734, -0.005267971195280552, 0.07321178168058395, + -0.023294657468795776, -0.012301458977162838, 0.00041954833432100713, 6.301163375610486e-5, + 0.052940092980861664, 0.017642464488744736, 0.050653811544179916, 0.035767585039138794, + 0.019890639930963516, 0.04067038744688034, -0.006033239886164665, -0.011069407686591148, + 0.015279973857104778, -0.002189431106671691, -0.021770469844341278, 0.0077733532525599, + 0.020932167768478394, 0.02939140424132347, -0.011075758375227451, -0.01902693323791027, + 0.008021033369004726, -0.004858345724642277, 0.07204323261976242, -0.057614266872406006, + -0.015305377542972565, 0.010167596861720085, -0.01353986095637083, 0.013247724622488022, + 0.02561904303729534, 0.04112764447927475, -0.007684442680329084, 0.00437568686902523, + 0.03589460253715515, 0.024488603696227074, -0.030077289789915085, -0.006985856685787439, + -0.03988289088010788, 0.03312566131353378, -0.07006179541349411, 0.023421673104166985, + -0.010961444117128849, 0.027765605598688126, 0.006055467762053013, 0.009856408461928368, + 0.004245495889335871, 0.01848076656460762, 0.011653679423034191, 0.03879055753350258, + 0.014238446019589901, 0.02221502549946308, 0.015292675234377384, 0.045065127313137054, + -0.03277001902461052, 0.04453166201710701, -0.018048914149403572, -0.012803169898688793, + 0.05179695412516594, -0.02197369560599327, -0.007506620604544878, -0.06264408677816391, + -0.00963413156569004, -0.038434915244579315, 0.026952706277370453, 0.0062999725341796875, + 0.04303287714719772, 0.01240307092666626, -0.04349013417959213, 0.0270543172955513, + -0.04039095342159271, -5.442816109280102e-5, -0.004121655598282814, -0.020474910736083984, + -0.03823168948292732, 0.029747048392891884, -0.01125993113964796, 0.03523411974310875, + 0.002821333473548293, -0.012339563108980656, -0.03683451935648918, 0.0003260727971792221, + 0.0003875959664583206, 0.008109944872558117, 0.023815421387553215, -0.012377668172121048, + -0.0471227802336216, 0.051390502601861954, -0.0017972703790292144, 0.011044004932045937, + 0.05609007924795151, -0.007055715192109346, -0.003126170951873064, -0.057614266872406006, + 0.02559363842010498, -0.04463327303528786, -0.06051022186875343, -0.11939464509487152, + 0.003330983454361558, 0.009938969276845455, -0.00931659247726202, -0.025453921407461166, + -0.008776776492595673, -0.033608321100473404, -0.009945319965481758, -0.025149084627628326, + -0.0034071928821504116, 0.003581839380785823, 0.009024457074701786, 0.004242320545017719, + 0.03619943931698799, 0.029416808858513832, 0.006138027645647526, 0.01981442980468273, + -0.008865687064826488, 0.00487104756757617, 0.018188631162047386, -0.014225744642317295, + 0.030966397374868393, -0.0035088052973151207, 0.02936600148677826, -0.0017147102626040578, + -0.0053346543572843075, -0.014162236824631691, -0.03914619982242584, -0.04689415171742439, + -0.008281415328383446, 0.015826141461730003, -0.005302900448441505, -0.0008906967705115676, + 0.03373533859848976, 0.01249198243021965, 0.00570617476478219, 0.023320060223340988, + -0.004502702038735151, -0.0007311334484256804, -0.01406062487512827, 0.02452670782804489, + -0.028095845133066177, 0.005283847916871309, -0.057817492634058, -0.02133861742913723, + -0.026470046490430832, -0.012834924273192883, -0.023231148719787598, -0.014594090171158314, + -0.00746216531842947, -0.020208178088068962, -0.013196918182075024, 0.040594179183244705, + -0.0011232940014451742, -0.003826344385743141, 0.009183226153254509, 0.10379713028669357, + 0.0027403610292822123, -0.03398936986923218, 0.05939248576760292, 0.036123231053352356, + 0.02827366814017296, 0.022659579291939735, -0.02097027190029621, 0.018048914149403572, + -0.016981983557343483, 0.05507395416498184, 0.00042272370774298906, 0.06330456584692001, + -0.005210814066231251, 0.04595423489809036, 0.03782523795962334, -0.003100767731666565, + -0.016893072053790092, 0.015508602373301983, -0.010993198491632938, 0.022240428254008293, + -0.053244929760694504, -0.0035024546086788177, -0.036123231053352356, 0.006341252941638231, + -0.023091431707143784, -0.016524726524949074, -0.012060129083693027, 0.004280425142496824, + 0.01656283065676689, -0.020830554887652397, 0.03945104032754898, -0.005661719478666782, + -0.0011074170470237732, -0.019979549571871758, -0.01656283065676689, -0.016219889745116234, + 0.03386235237121582, -0.0338115468621254, 0.01015489548444748, -0.041356272995471954, + -0.002440286800265312, 0.0949060395359993, 0.034573640674352646, 0.005906224250793457, + -0.006055467762053013, -0.03414178639650345, 0.013641472905874252, 0.008598954416811466, + -0.03012809529900551, -0.027003511786460876, 0.04201675206422806, 0.018518870696425438, + 0.04049256816506386, 0.04026393964886665, 0.040594179183244705, 0.053600575774908066, + -0.12244302034378052, 0.010720115154981613, -0.0015599100152030587, 0.012079181149601936, + 0.04745301976799965, -0.05863039195537567, -0.011869605630636215, 0.009856408461928368, + 0.04780866205692291, -0.042931266129016876, -0.04803729057312012, -0.027155930176377296, + -0.02288820780813694, 0.0032309587113559246, -0.05375299230217934, 0.03955265134572983, + -0.054057829082012177, -0.0012296695495024323, 0.007316097151488066, -0.05659814178943634, + -0.044125210493803024, 0.032084133476018906, 0.009024457074701786, -0.0017210610676556826, + 0.004607490263879299, -0.017820285633206367, -0.000910542905330658, -0.015114854089915752, + -0.010110439732670784, 0.03464984893798828, 0.008243311196565628, 0.0014956084778532386, + -0.0052584451623260975, 0.03376074135303497, 0.044125210493803024, -0.010561345145106316, + 0.03172849118709564, 0.024780739098787308, 0.04026393964886665, -0.0696045383810997, + -0.03221115097403526, 0.003661224152892828, 0.008490991778671741, 0.04425222799181938, + 0.026012791320681572, -0.011113863438367844, -0.010815376415848732, -0.026343030855059624, + -0.05314331874251366, -0.0015829316107556224, -0.012980991974473, -0.03967966511845589, + -0.01935717463493347, 0.033913157880306244, 0.023116834461688995, -0.03558976575732231, + -0.004518579225987196, -0.030712366104125977, 0.002807044191285968, -0.017337625846266747, + 0.04277884587645531, -0.0056871226988732815, 0.05903683975338936, -0.0011359956115484238, + -0.01590234972536564, -0.02024628408253193, -0.0070430138148367405, -0.025453921407461166, + -0.04394739121198654, -0.06396504491567612, -0.0005914162611588836, -0.0032404849771410227, + -0.023332761600613594, -0.06117070093750954, 0.03627564758062363, 0.02185938134789467, + 0.0036707501858472824, -0.020678136497735977, -0.02951841987669468, 6.717933138133958e-5, + 0.01531807892024517, -0.03914619982242584, -0.01714710332453251, -0.0023513759952038527, + -0.015368885360658169, 0.01531807892024517, -0.04867237061262131, 0.004042270593345165, + -0.010643905028700829, 0.006769930478185415, -0.08098513633012772, 0.021681558340787888, + 0.0054489681497216225, -0.011247229762375355, 0.04618286341428757, 0.0392732173204422, + -0.010764569975435734, 0.004966309294104576, -0.012237951159477234, 0.06081505864858627, + -0.02873092330992222, -0.040136922150850296, 0.00948171317577362, -0.05113647133111954, + 0.009958021342754364, 0.03561516851186752, 0.09023186564445496, -0.03668209910392761, + -0.005131429526954889, 0.007360552903264761, -0.01217444334179163, -0.0062999725341796875, + -0.004563034512102604, -0.009646832942962646, 0.014251148328185081, 0.010878884233534336, + 0.016334204003214836, -0.022621475160121918, -0.014301953837275505, 0.01144410390406847, + 0.031169623136520386, 0.0040930770337581635, 0.005991959944367409, 0.008973650634288788, + 0.01747734285891056, -0.002313271164894104, -0.012987342663109303, -0.023358164355158806, + -0.027181332930922508, 0.010916989296674728, -0.009183226153254509, 0.02142752893269062, + 0.03203332796692848, -0.03691072762012482, -0.04310908913612366, 0.02768939547240734, + -0.015140256844460964, 0.02391703426837921, 0.044734887778759, -0.03929862007498741, + -0.014428969472646713, 0.003658048575744033, -0.027486171573400497, -0.0029864537063986063, + 0.020474910736083984, -0.005071097053587437, -0.033303484320640564, -0.0035564361605793238, + 0.0028943675570189953, 0.0381808839738369, 0.018772901967167854, -0.014301953837275505, + 0.02118619903922081, -0.009043509140610695, -0.03777443245053291, 0.03061075508594513, + -0.03619943931698799, 0.002992804627865553, -0.018404556438326836, -0.03028051368892193, + -0.014898926950991154, 0.014035221189260483, 0.00978654995560646, 0.012504683807492256, + 0.058223940432071686, 8.623166650068015e-5, 0.022837400436401367, -0.006700071971863508, + -0.042448606342077255, -0.007894018664956093, 0.006903296802192926, -0.009684938006103039, + -0.00012771019828505814, 0.02218962088227272, 0.005785559769719839, -0.023777315393090248, + -0.0040486217476427555, 0.02480614185333252, 0.008897441439330578, 0.021173497661948204, + 0.006401584949344397, -0.012072830460965633, -0.005544229876250029, -0.05349896103143692, + 0.006350778974592686, 0.02136402018368244, 0.01141234952956438, 0.013946310617029667, + -0.007906720042228699, 0.01924286037683487, -0.00819250475615263, 0.026165209710597992, + 0.0025879424065351486, -0.022392846643924713, 0.0044391946867108345, -0.009119718335568905, + 0.0028880166355520487, 0.0058331904001533985, -0.0026943180710077286, 0.0014979899860918522, + -0.031195025891065598, 0.0035596115048974752, -0.021059183403849602, -0.013730384409427643, + 0.06198360398411751, -0.01483541913330555, 0.0069604539312422276, -0.02583496831357479, + 0.0621868260204792, 0.03871434926986694, -0.03619943931698799, 0.017337625846266747, + -0.013006395660340786, -0.003489752998575568, -0.017832987010478973, -0.010459733195602894, + 0.025403115898370743, 0.023637598380446434, 0.001959215383976698, 0.01647392101585865, + -0.02009386382997036, 0.028705520555377007, 0.006004661321640015, -0.0037977658212184906, + 0.021999098360538483, -0.00892284419387579, 0.01902693323791027, -0.03459904342889786, + -0.007652688771486282, -0.031017204746603966, 0.014962434768676758, -0.014898926950991154, + 0.0077543011866509914, 0.018582379445433617, -0.07224646210670471, 0.003753310302272439, + 0.0142892524600029, -0.01860778219997883, 0.03492928296327591, -0.016512025147676468, + -0.03721556439995766, -0.03218574821949005, 0.0005223515909165144, -0.02240554802119732, + -0.048494547605514526, -0.04577641561627388, 0.021287810057401657, -0.0262922253459692, + 0.014695702120661736, -0.008427483960986137, -0.02450130507349968, 0.010910638608038425, + 0.029340598732233047, -0.022075306624174118, -0.008033735677599907, -0.016461219638586044, + -0.027892621234059334, -0.014797315001487732, -0.006909647490829229, -0.003854922717437148, + -0.0023815419990569353, -0.047681648284196854, 0.0069985585287213326, -0.007443112786859274, + -0.006947752088308334, -0.01830294542014599, 0.013501755893230438, -0.010599450208246708, + 0.015699125826358795, -0.024463200941681862, 0.01924286037683487, -0.05893522873520851, + 0.01007868628948927, 0.033481307327747345, 0.03442122042179108, -0.020944869145751, + -0.032058730721473694, -0.01760435849428177, -0.005306075792759657, 0.019928744062781334, + 0.01176164299249649, -0.0053727589547634125, -0.025365011766552925, -0.02386622689664364, + 0.007309746462851763, -0.026012791320681572, 0.02185938134789467, -0.004420142155140638, + -0.062390051782131195, 0.006242815870791674, 0.003365912940353155, -0.05243203043937683, + -0.008427483960986137, 0.009672236628830433, 0.021478334441781044, 0.020843256264925003, + 0.0004624160937964916, -0.016397710889577866, -0.0016242116689682007, 0.02644464373588562, + -0.0001935002946993336, -0.0020703538320958614, 0.018125122413039207, -0.03256679326295853, + -0.0005548993358388543, 0.030966397374868393, 0.0035024546086788177, -0.01021205261349678, + -0.018290244042873383, 0.035030897706747055, -0.013565263710916042, -0.010427978821098804, + -0.0033055804669857025, 0.015597512945532799, -0.0022307110484689474, -0.003419894492253661, + -0.004813890438526869, 0.021046482026576996, -0.03236357122659683, -0.06335537135601044, + 0.02751157432794571, -0.007982929237186909, 0.010961444117128849, 0.009678587317466736, + 0.023942437022924423, 0.026216015219688416, -0.00939280167222023, 0.01159652229398489, + -0.022075306624174118, 0.05184775963425636, 0.010656607337296009, -0.021999098360538483, + -0.004426492843776941, -0.0021973694674670696, -0.024399692192673683, -0.0104724345728755, + 0.0035754884593188763, 0.0030547247733920813, -0.0030182076152414083, 0.029493017122149467, + 0.018074316903948784, 0.021910186856985092, 0.015051346272230148, -0.000414785259636119, + 0.007163678761571646, -0.00413435697555542, 0.05283848196268082, -0.028908746317029, + -0.004023218527436256, -0.022900909185409546, -0.009945319965481758, -0.005283847916871309, + -0.009773848578333855, -0.01062485296279192, -0.0006346809677779675, -0.04564939811825752, + 0.0009740507230162621, -0.05786829814314842, 0.0034802269656211138, 0.009049859829246998, + -0.014225744642317295, -0.041356272995471954, 0.010224753990769386, -0.00673182588070631, + -0.027867218479514122, -0.015851544216275215, -0.0008303643553517759, -0.023396270349621773, + -0.015826141461730003, -0.014873524196445942, -0.004858345724642277, -0.015762632712721825, + -0.008427483960986137, 0.002761001233011484, -0.03200792521238327, 0.00388667662627995, + 0.02166885696351528, -0.008656111545860767, 0.028857938945293427, 0.027765605598688126, + -0.030813978984951973, 0.005645842291414738, -0.013247724622488022, 0.0012717434437945485, + -0.03190631419420242, 0.0562933050096035, 0.042118366807699203, 0.012180794030427933, + -0.027105124667286873, -0.0002079880068777129, 0.009253084659576416, 0.013819294981658459, + -0.015978559851646423, -0.009068911895155907, -0.011723537929356098, -0.004826591815799475, + -0.0012987343361601233, -0.0012606296222656965, -0.004204215481877327, -0.023447075858712196, + 0.0741771012544632, 0.045522384345531464, 0.003626294666901231, -0.004512228537350893, + 0.057309430092573166, -0.005179060157388449, 0.001617067027837038, 0.005252094008028507, + -0.04130546748638153, 0.006252341903746128, -0.023624897003173828, -0.027740202844142914, + -0.02613980695605278, 0.013476353138685226, 0.009214980527758598, -0.003997815307229757, + 0.01869669370353222, -0.016613638028502464, -0.0198525357991457, -0.04331231117248535, + 0.023383567109704018, 0.03444662317633629, 0.006271393969655037, -0.03383694961667061, + 0.011215475387871265, -0.0006632594740949571, 0.04224538058042526, -0.0038199934642761946, + 0.029188180342316628, 0.013209620490670204, -0.004832942970097065, -0.01653742790222168, + -0.024882351979613304, 0.03498008847236633, -0.00971034076064825, 0.0013908206019550562, + -0.025022068992257118, -0.010796324349939823, -0.03985748812556267, 0.02954382263123989, + -0.015597512945532799, -0.022176919505000114, 0.0011606048792600632, 0.009703990072011948, + -0.015572110190987587, -0.03172849118709564, 0.06315214931964874, -0.013438248075544834, + 0.001332869753241539, 0.033481307327747345, 0.012460228055715561, -0.040721192955970764, + 0.020500313490629196, 0.0011868018191307783, -0.003365912940353155, -0.015368885360658169, + 0.015025942586362362, 0.025174487382173538, 0.03264300525188446, -0.043515536934137344, + -0.016054769977927208, 0.03523411974310875, 0.010389874689280987, 0.016651742160320282, + 0.024768037721514702, -0.013819294981658459, -0.02271038480103016, 0.0018274366157129407, + -0.0010073923040181398, 0.028476892039179802, 0.033328887075185776, -0.03492928296327591, + -0.03584379702806473, -0.011304386891424656, 0.004670998081564903, -0.020944869145751, + -0.006674668751657009, 0.011234527453780174, 0.0058776456862688065, -0.005702999420464039, + -0.047681648284196854, 0.028502296656370163, -0.004807539749890566, 0.032058730721473694, + -0.007735248655080795, -0.03569137677550316, -0.008338572457432747, -0.023002522066235542, + 0.05227961391210556, 0.023612195625901222, 0.023180343210697174, -0.00281498278491199, + 0.0246537234634161, -0.02480614185333252, -0.02611440233886242, -0.019433382898569107, + 0.017121700569987297, 0.0016353256069123745, -0.016727952286601067, 0.044125210493803024, + -0.027918023988604546, -0.009265786036849022, 0.028832536190748215, -0.03604702278971672, + 0.007322448305785656, -0.04133087024092674, -0.018214033916592598, -0.00604276591911912, + 0.024755336344242096, 0.03048373945057392, 0.05339735001325607, -0.012041077017784119, + -0.014111430384218693, -0.02875632606446743, -0.009430906735360622, 0.02066543512046337, + 0.009843707084655762, -0.048621565103530884, -0.0008232197142206132, -0.046767134219408035, + -0.010142194107174873, 0.032846227288246155, -0.03076317347586155, 0.0019528644625097513, + -0.018671290948987007, -0.04453166201710701, 0.024183766916394234, 0.014733807183802128, + -0.005086973775178194, 0.016092874109745026, 0.017401134595274925, -0.00722083542495966, + -0.013311232440173626, 0.01353986095637083, -0.0050583952106535435, 0.0027244840748608112, + -0.04318529739975929, 0.029315195977687836, 0.05431186035275459, -0.00851004384458065, + 0.04128006473183632, -0.004607490263879299, 0.011653679423034191, -0.0069287000223994255, + 0.028680117800831795, 0.014746508561074734, 0.013387441635131836, 0.028019636869430542, + 0.010612151585519314, 0.01574993133544922, 0.0014170175418257713, 0.01507674902677536, + 0.01369227934628725, 0.04425222799181938, -0.011539365164935589, 0.03830789774656296, + -0.02149103581905365, -0.0020465385168790817, -0.021833978593349457, 0.03058535046875477, + -0.012625348754227161, -0.008421133272349834, 0.02939140424132347, -0.041813530027866364, + 0.016639040783047676, 0.025403115898370743, 0.016740653663873672, -0.0246537234634161, + 0.00644286535680294, 0.008941896259784698, 0.02027168683707714, -0.02401864528656006, + -0.0044836499728262424, 1.0605304851196706e-5, 0.006373006850481033, 0.03063615784049034, + 9.68121639743913e-6, -0.005490248557180166, -0.014263849705457687, 0.012555490247905254, + -0.002125923288986087, -0.021376721560955048, 0.04023853689432144, -0.0070049092173576355, + 0.061323121190071106, -0.02561904303729534, 0.009469011798501015, 0.013501755893230438, + 0.00830046832561493, 0.06472714245319366, -0.006788982544094324, -0.002148150932043791, + -0.008668812923133373, 0.00604276591911912, -0.015203764662146568, 0.012047427706420422, + 0.018645886331796646, 0.009551571682095528, 0.03058535046875477, 0.013984414748847485, + -0.049383655190467834, 0.026774883270263672, 0.0025625391863286495, -0.017985405400395393, + 0.014632194302976131, 0.03929862007498741, 0.011266281828284264, 0.012409421615302563, + 0.0207289420068264, -0.01468300074338913, -0.041203852742910385, -0.011361543089151382, + -0.026038194075226784, -0.006852490361779928, 0.011437753215432167, -0.01599126122891903, + 0.004642419517040253, -0.042296186089515686, 0.003629470244050026, 0.013514457270503044, + 0.017985405400395393, -0.035513557493686676, -0.007258940488100052, 0.015648318454623222, + -0.007055715192109346, 0.013336636126041412, -0.07656498998403549, -0.027562379837036133, + -0.021910186856985092, -0.01148855872452259, -0.030559947714209557, 0.007030312437564135, + -0.0009478537831455469, 0.011964867822825909, -0.01515295822173357, 0.0016019840259104967, + 0.005439442116767168, 0.019280964508652687, 0.006979505997151136, 0.004420142155140638, + -0.010764569975435734, 0.0025974686723202467, 0.01369227934628725, 0.016791459172964096, + -0.02234204113483429, 0.0035437345504760742, -0.02003035694360733, -0.006865192204713821, + 0.004648770205676556, -0.00978654995560646, -0.024272676557302475, -0.00753837451338768, + 0.0019608030561357737, 0.009284839034080505, -0.01217444334179163, 0.02443779818713665, + -0.027943426743149757, -0.002329148119315505, 0.018048914149403572, -0.012460228055715561, + 0.04648770019412041, 0.004185163415968418, -0.02908656746149063, -0.022875506430864334, + -0.005849067587405443, -0.0018750674789771438, 0.017426537349820137, 0.011755291372537613, + 0.03124583140015602, -0.019839832559227943, -0.051873162388801575, 0.008948247879743576, + 0.02358679287135601, -0.026190612465143204, 0.03200792521238327, -0.04308368265628815, + -0.0032579496037214994, 0.024425094947218895, 0.01005963422358036, 0.011304386891424656, + 0.025885775685310364, 0.012117286212742329, 0.022850101813673973, -0.017401134595274925, + -0.006681019440293312, 0.0344720296561718, 0.0021814925130456686, 0.024641022086143494, + 0.008103594183921814, 0.015927754342556, 0.0025990563444793224, 0.012345913797616959, + 0.007373254280537367, -0.005420389585196972, 0.0017591657815501094, -0.007868614979088306, + -0.023485179990530014, -0.0045916130766272545, 0.016766056418418884, 0.003800941165536642, + -0.014035221189260483, -0.005614088382571936, -0.03058535046875477, -0.046436894685029984, + 0.03370993584394455, -0.0036326455883681774, -0.026673272252082825, -0.02583496831357479, + 0.020474910736083984, -0.01987793855369091, 0.010091387666761875, -0.050196558237075806, + -0.01625799387693405, -0.021198900416493416, 0.007595531642436981, -0.017439238727092743, + 0.026647867634892464, 0.016067471355199814, 0.009024457074701786, 0.009291189722716808, + 0.004366160370409489, 0.00552517781034112, 0.024450499564409256, 0.030051885172724724, + 0.005852242931723595, -0.0035310331732034683, -0.028705520555377007, 0.026774883270263672, + 0.005579159129410982, -0.042626429349184036, -0.005388636142015457, 0.0018988829106092453, + 0.0013979652430862188, 0.028908746317029, 0.019560398533940315, 0.015089450404047966, + -0.01869669370353222, -0.014314656145870686, 0.012612647376954556, 0.02085595764219761, + 0.005490248557180166, -0.02589847706258297, -0.024717232212424278, 0.015356183052062988, + 0.01778218150138855, -0.005315601825714111, -0.011037653312087059, 0.003527857596054673, + -0.0236757043749094, 0.035157911479473114, -0.0054489681497216225, 0.03416718915104866, + -0.040441758930683136, 0.0032023803796619177, -0.02559363842010498, 0.012091883458197117, + 0.005426740739494562, 0.02081785351037979, -0.02626682072877884, -0.009767497889697552, + 0.025707952678203583, -0.006788982544094324, -0.014200341887772083, -0.02231663651764393, + 0.007366903591901064, 0.021160796284675598, 0.01644851826131344, -0.005950680002570152, + -0.04186433553695679, 0.012409421615302563, -0.030839381739497185, -0.009754796512424946, + -0.023599494248628616, 0.017820285633206367, -0.015813440084457397, 0.01280952151864767, + -0.020474910736083984, -0.03830789774656296, 0.026368433609604836, -0.011507611721754074, + -0.006112624891102314, 0.026241417974233627, 0.011958517134189606, -0.0338115468621254, + -0.042296186089515686, -0.001284445053897798, -0.015813440084457397, 0.019903341308236122, + -0.012803169898688793, -0.026622464880347252, -0.045700203627347946, -0.03200792521238327, + -0.026647867634892464, 0.017832987010478973, 0.004801189061254263, -0.032236553728580475, + 0.022088009864091873, -0.028553102165460587, -0.015178361907601357, -0.003947009332478046, + -0.03978127986192703, -0.004147058818489313, 0.020754344761371613, -0.006700071971863508, + 0.005344180390238762, -0.04503972455859184, 0.0006061024614609778, -0.008160751312971115, + -0.035335734486579895, 0.0077733532525599, -0.004128006286919117, 0.004985361360013485, + 0.0077733532525599, 0.02279929630458355, -0.017998106777668, 0.00400416599586606, + -0.022418249398469925, 0.02443779818713665, -0.019865237176418304, -0.029899466782808304, + -0.005931627470999956, 0.01826483942568302, 0.03246518224477768, -0.025403115898370743, + -0.010421628132462502, -0.012930185534060001, -0.020195476710796356, -0.03149986267089844, + -0.02273578941822052, 0.006376182194799185, 0.01784568838775158, 0.0222531296312809, + 0.01086618285626173, -0.003731082659214735, -0.024869650602340698, 0.029645435512065887, + -0.03216034546494484, 0.004474123939871788, -0.03498008847236633, -0.017591657117009163, + -0.01199027057737112, 0.02452670782804489, -0.018506169319152832, -0.021021077409386635, + 0.016816861927509308, 0.01884911209344864, -0.00117806950584054, 0.012669803574681282, + 0.0008803767268545926, 0.01616908237338066, 0.005248918663710356, 0.011291684582829475, + -0.021325916051864624, -0.022723086178302765, -0.019255561754107475, -0.008795828558504581, + -0.013235023245215416, -0.020220879465341568, -0.003921606112271547, -0.004966309294104576, + -0.008910142816603184, -0.009488063864409924, -0.004921853542327881, -0.04097522422671318, + -0.02875632606446743, 0.010243806056678295, -0.007411358878016472, -0.015292675234377384, + 0.03157607465982437, -0.010218403302133083, 0.035996213555336, -0.019992252811789513, + 0.018226735293865204, 0.0051822355017066, 0.01614367961883545, 0.014340058900415897, + -0.0077924057841300964, 0.02124970592558384, -0.008490991778671741, 0.052787672728300095, + -0.03480226919054985, -0.006341252941638231, 0.02009386382997036, 0.02544122003018856, + 0.00044614222133532166, -0.003826344385743141, 0.03724096715450287, -0.015915051102638245, + 0.018061615526676178, 0.032998647540807724, -0.001530537731014192, 0.012091883458197117, + -0.03246518224477768, -0.0036929778289049864, 0.0207289420068264, -0.01352715864777565, + -0.013679577969014645, -0.01515295822173357, 0.018887216225266457, 0.013387441635131836, + -0.012352265417575836, -0.014251148328185081, -0.01970011554658413, -0.01346365176141262, + -0.01240307092666626, -0.0029483491089195013, 0.0069287000223994255, 0.002870552008971572, + 0.024336185306310654, 0.0029150075279176235, -0.012746013700962067, 0.02511098049581051, + 0.0062174126505851746, 0.03358291834592819, 0.03894297778606415, 0.012034726329147816, + -0.022926311939954758, 0.02923898585140705, 0.04282965138554573, 0.013209620490670204, + 0.02194829285144806, -0.01547049731016159, 0.012873029336333275, -0.04432843625545502, + 0.01693117618560791, -0.024628320708870888, -0.023535987362265587, 0.003966061398386955, + 0.011888657696545124, 0.015406989492475986, 0.005709350109100342, 0.04087361320853233, + -0.007392306812107563, 0.010770920664072037, -0.017096295952796936, 0.027181332930922508, + -0.002329148119315505, 0.013476353138685226, -0.01120277401059866, 0.0006231701700016856, + -0.007405008189380169, -0.00023279573360923678, 0.036250244826078415, -0.0031388725619763136, + -0.013870101422071457, 0.024933157488703728, -6.216816836968064e-5, -0.016766056418418884, + 0.0009454722166992724, 0.0059411535039544106, -0.03233816474676132, 0.00808454118669033, + 0.024755336344242096, 0.001971916761249304, -0.015826141461730003, 0.016677144914865494, + -0.04920583590865135, 2.037954982370138e-5, -0.03061075508594513, 0.002983278362080455, + -0.011177371256053448, -0.017909197136759758, 0.0025990563444793224, 0.010180298238992691, + 0.004845644347369671, 5.919124305364676e-5, 0.022176919505000114, 0.009462660178542137, + 0.016194486990571022, 0.0028197458013892174, -0.011120214127004147, -0.009361048229038715, + 0.02720673754811287, -0.018671290948987007, -0.0004624160937964916, -0.01926826313138008, + -0.0054807220585644245, 0.01817592978477478, -0.016130978241562843, 0.023154940456151962, + -0.007957525551319122, -0.03434501215815544, -0.02626682072877884, 0.007214484736323357, + 0.027003511786460876, 0.016575533896684647, -0.003292878856882453, 0.01023110467940569, + 0.02611440233886242, 0.023993242532014847, 0.02672407776117325, -0.004502702038735151, + -0.010015178471803665, 0.0032738265581429005, 0.0002574050158727914, 0.00481706578284502, + 0.026190612465143204, -0.0006326963775791228, 0.008078190498054028, -0.021808573976159096, + 0.015457795932888985, 0.015851544216275215, 0.01094239205121994, 0.013730384409427643, + -0.02216421812772751, 0.00793212279677391, 0.004315354395657778, 0.006903296802192926, + 0.015889648348093033, -0.013882802799344063, 0.002003670670092106, -0.03048373945057392, + -0.002440286800265312, 0.05227961391210556, -0.0001410071417922154, 0.04204215481877327, + 0.015495900996029377, -0.01522916741669178, 0.004820241127163172, 0.0183283481746912, + 0.007646337617188692, 0.01101860124617815, 0.013831996358931065, 0.033481307327747345, + -0.023485179990530014, -0.022900909185409546, -0.006423812825232744, 0.0016250055050477386, + -0.0032468356657773256, -0.01068201009184122, -0.029289793223142624, -0.011405998840928078, + 0.013908205553889275, -0.0008271889528259635, -0.0058331904001533985, 0.01817592978477478, + 0.031017204746603966, -0.008554499596357346, 0.06330456584692001, -0.02875632606446743, + 0.01256819162517786, -0.028324473649263382, -0.00636030500754714, -0.018366452306509018, + 0.05304170399904251, -0.03571677953004837, 0.02611440233886242, 0.03320187330245972, + -0.023447075858712196, -0.04221997782588005, -0.006401584949344397, -0.035945408046245575, + -0.05103486031293869, -0.018252138048410416, -0.01460679154843092, -0.007512971293181181, + -0.017972704023122787, -0.0026450995355844498, 0.0037755381781607866, 0.023167641833424568, + 0.05553121119737625, 0.03924781456589699, 0.014822717756032944, 0.0071192230097949505, + -0.009469011798501015, -0.002313271164894104, -0.010351769626140594, -0.03373533859848976, + -0.011787045747041702, -0.019433382898569107, -0.027714800089597702, -0.005261620506644249, + 0.031322043389081955, -0.0018941197777166963, 0.005252094008028507, 0.009570623748004436, + 0.011723537929356098, 0.013438248075544834, -0.013552562333643436, 0.016829563304781914, + 0.0005187792703509331, 0.01531807892024517, 0.019255561754107475, -0.024158362299203873, + -0.002162440214306116, -0.022088009864091873, 0.025580937042832375, -0.003848572028800845, + -0.0166898462921381, 0.038257092237472534, -0.015216466039419174, 0.015940455719828606, + -0.004318529739975929, 0.014555985108017921, -0.00022664341668132693, -0.0008021827670745552, + -0.03683451935648918, -0.021109988912940025, -0.012199846096336842, -0.006738176569342613, + -0.012822222895920277, 0.046462297439575195, 0.010193000547587872, -0.012949238531291485, + -0.005464845336973667, -0.01580073870718479, -0.04158490151166916, 0.015915051102638245, + 0.00965318363159895, 0.027613187208771706, -0.033938564360141754, 0.01726141758263111, + -0.04143248125910759, -0.004420142155140638, -0.043388523161411285, 0.016588235273957253, + 0.013984414748847485, 0.022697683423757553, 0.01909044198691845, -0.024488603696227074, + 0.004394738934934139, -0.018518870696425438, -0.015978559851646423, -0.01614367961883545, + -0.017528150230646133, -0.0015130731044337153, -0.019077740609645844, -0.02459021657705307, + 0.0031277586240321398, -0.04318529739975929, -0.022265831008553505, -0.001686131814494729, + -0.007487568538635969, -0.026088999584317207, -0.011590171605348587, -0.002252938924357295, + -0.03203332796692848, 0.010999549180269241, -0.005071097053587437, -0.024082154035568237, + ], + index: 77, + }, + { + title: "Gray wolf", + text: "The gray wolf or grey wolf (Canis lupus) also known as the timber wolf, or western wolf, is a canid native to the wilderness and remote areas of North America and Eurasia. It is the largest extant member of its family, with males averaging 43\u201345 kg (95\u201399 lb), and females 36\u201338.5 kg (79\u201385 lb). Like the red wolf, it is distinguished from other Canis species by its larger size and less pointed features, particularly on the ears and muzzle.", + vector: [ + -0.007719092071056366, -0.008680134080350399, -0.00616989191621542, 0.01832900010049343, + 0.03856470808386803, 0.003325206460431218, 0.0006165086524561048, -0.030169041827321053, + 0.006873374804854393, 0.02584819495677948, -0.06003054976463318, 0.0001552083413116634, + 3.4147036785725504e-5, -0.03542786464095116, -0.016483798623085022, 0.05815459415316582, + -0.029261818155646324, 0.011740093119442463, 0.024079877883195877, 0.021388959139585495, + 0.02177337557077408, 0.004193988628685474, 0.0741770938038826, -0.01983591355383396, + 0.028446853160858154, -0.0006419763085432351, -0.015714963898062706, -0.03521259129047394, + -0.047237154096364975, -0.02111217752099037, 0.034812796860933304, 0.014138855040073395, + 0.02944633737206459, 0.05630939453840256, -0.019067080691456795, -0.055110011249780655, + 0.010679102502763271, 0.0029254129622131586, 0.03721155971288681, 0.019543757662177086, + 0.0278010331094265, 0.057785555720329285, -0.029031166806817055, -0.04434633627533913, + 0.014384881593286991, 0.008088132366538048, 0.0249102171510458, 0.0359506718814373, + 0.04800598695874214, -0.026601651683449745, -0.004559184890240431, -0.048867080360651016, + -0.01900557428598404, 0.021158307790756226, 0.009195253252983093, -0.04997420310974121, + 0.05080454424023628, 0.08955377340316772, -0.0032617778051644564, -0.048159755766391754, + 0.015684211626648903, -0.0347512923181057, -0.0533570721745491, 0.00979494396597147, + 0.00257943756878376, 0.014923065900802612, 0.03850319981575012, -0.02540227212011814, + 0.00041541055543348193, 0.004343911539763212, 0.005996904335916042, 0.003413622500374913, + 0.004539964254945517, 0.014900000765919685, 0.046898867934942245, 0.0010494582820683718, + -0.01599174551665783, 0.012393602170050144, 0.020927658304572105, 0.0036481167189776897, + 0.013423839583992958, 0.003546246327459812, -0.004055598750710487, 0.040748193860054016, + -0.01797533594071865, 0.016499174758791924, -0.014538648538291454, -0.07485366612672806, + -0.03653498739004135, 0.025171620771288872, 0.03665800020098686, 0.008134262636303902, + -0.0024679568596184254, 0.01969752460718155, 0.02352631650865078, -0.032414037734270096, + -0.019743654876947403, -0.006166047882288694, -0.003603908699005842, -0.021404335275292397, + 0.017683180049061775, 0.0030157507862895727, 0.029815377667546272, -0.028600620105862617, + -0.026401754468679428, 0.010463829152286053, 0.043392982333898544, 0.004059442784637213, + -0.029061920940876007, 0.01634540781378746, -0.002018188824877143, -0.0060968524776399136, + -0.00863400474190712, -0.017191125079989433, 0.00510121276602149, 0.006054566707462072, + -0.002517930930480361, -0.0730084627866745, 0.0038999097887426615, 0.028462229296565056, + 0.006600438617169857, 0.014154232107102871, -0.013170124031603336, -0.01343921571969986, + -0.008580186404287815, -0.022096285596489906, 0.01763704977929592, 0.04182456433773041, + 0.018821053206920624, -0.03764210641384125, -0.025525284931063652, 0.02667853608727455, + -0.03416697680950165, -0.019636016339063644, -0.02910805121064186, -0.007757533807307482, + 0.019513003528118134, 0.0001658999390201643, 0.012332095764577389, 0.03339814394712448, + 0.004785990808159113, -0.0023929954040795565, 0.041424769908189774, 0.05043550208210945, + 0.010755985975265503, -0.01819060929119587, -0.03161444887518883, -0.0036154412664473057, + -0.010333127342164516, 0.006512023042887449, -0.005454876460134983, -0.003392479382455349, + 0.040871210396289825, 0.019036326557397842, -0.01937461458146572, 0.04646832123398781, + -0.013223942369222641, -0.012447420507669449, -0.03896450251340866, 0.023587822914123535, + -0.0033098298590630293, -0.010179360397160053, 0.012601187452673912, -0.02271135337650776, + 0.0072731683030724525, 0.025125490501523018, 0.05609412118792534, 0.02875438705086708, + -0.014646285213530064, 0.01281646080315113, -0.020235707983374596, -0.041332509368658066, + -0.006250619422644377, -0.026340248063206673, -0.0004766769998241216, -0.0147769870236516, + 0.002154656918719411, 0.06667327135801315, 0.019313106313347816, 0.08248049765825272, + 0.03675026074051857, 0.008833901025354862, -0.02675541862845421, 0.034136224538087845, + -0.018036842346191406, 0.0044515482150018215, -0.0059584625996649265, 0.03129153698682785, + -0.026171104982495308, -0.0056047989055514336, 0.04314695671200752, -0.01008710078895092, + 0.007519195321947336, -0.04105572775006294, 0.05920020863413811, 0.027170589193701744, + 0.020804645493626595, 0.054464191198349, 0.043054696172475815, 0.05984602868556976, + 0.04588400572538376, -0.0521884448826313, 0.0021565789356827736, 0.014346440322697163, + -0.019328484311699867, -0.013062487356364727, 0.01147100143134594, 0.01436950545758009, + -0.04453085735440254, 0.04296243563294411, -0.0019643704872578382, -0.015484314411878586, + -0.01935923658311367, 0.017206503078341484, 0.03896450251340866, 0.004759081639349461, + 0.02815469726920128, 0.0046706655994057655, 0.02400299347937107, 0.040994223207235336, + 0.027416616678237915, -0.008126573637127876, 0.04566873237490654, 0.014861558564007282, + 0.012862591072916985, 0.021358205005526543, 0.0243412796407938, 0.056862954050302505, + 0.014008153229951859, -0.03558163344860077, -0.02051248773932457, 0.023956863209605217, + 0.0742385983467102, 0.045022912323474884, -0.04394654557108879, 0.03462827950716019, + -0.007822884246706963, -0.03733457252383232, -0.02618648111820221, -0.03687327355146408, + -0.028446853160858154, 0.013346956111490726, -0.01888255961239338, -0.05274200439453125, + 0.01124804001301527, -0.024418164044618607, -0.016622187569737434, -0.07202436029911041, + -0.057570282369852066, -0.043392982333898544, -0.009087616577744484, 0.027539629489183426, + -0.004059442784637213, -0.020558618009090424, -0.02306501567363739, -0.04474613070487976, + 0.030461197718977928, 0.0347512923181057, -0.01280877273529768, 0.005424122791737318, + -0.03973333537578583, -0.010064035654067993, -0.03272157162427902, 0.004736016504466534, + -0.07368503510951996, -0.04508441686630249, 0.03533560410141945, -0.014530960470438004, + -0.005497162230312824, -0.06796491146087646, -0.0440080501139164, 0.032291021198034286, + -0.031583696603775024, 0.019851291552186012, -0.019266976043581963, 0.03410547226667404, + 0.0018749936716631055, 0.013892828486859798, 0.08094283193349838, 0.03407471626996994, + -0.0022642158437520266, -0.011025077663362026, -0.010855934582650661, 0.007642208598554134, + 0.08155789971351624, 0.002369930502027273, -0.03687327355146408, -0.03330588340759277, + 0.042378123849630356, 0.004128637723624706, -0.011517131701111794, 0.030322808772325516, + 0.015445872209966183, -0.03887224197387695, -0.0021142931655049324, 0.0014848103746771812, + 0.017683180049061775, 0.0027793345507234335, -0.027893293648958206, 0.015368989668786526, + 0.004955134354531765, 0.029400207102298737, -0.025909701362252235, -0.03155294060707092, + 0.03693477809429169, 0.018959444016218185, -0.028785141184926033, 0.023341797292232513, + -0.04228586331009865, 0.005358772352337837, 0.004697574768215418, 0.015015325509011745, + -0.010809804312884808, -0.016299277544021606, 0.012531992048025131, -0.0196821466088295, + 0.00817270390689373, 0.033551909029483795, -0.03198349103331566, 0.02467956766486168, + 0.01832900010049343, 0.017191125079989433, -0.0272474717348814, 0.03902600705623627, + -0.008211146108806133, -0.0011561339488252997, -0.010832869447767735, -0.02271135337650776, + -0.03281382843852043, -0.056032612919807434, -0.03352115675806999, 0.0007265480235219002, + -0.02886202372610569, 0.008510990999639034, 0.07780598849058151, -0.00016914345906116068, + -0.024833334609866142, 0.010371568612754345, 0.009241383522748947, 0.018405882641673088, + 0.03026130050420761, -0.009864138439297676, -0.011286481283605099, -0.008434107527136803, + 0.005943085998296738, -0.00864169280976057, 0.025340763852000237, 0.04250113666057587, + -0.01726800948381424, 0.011148091405630112, 0.0008817563648335636, 0.016837462782859802, + -0.04462311789393425, -0.0035923763643950224, -0.001383900991640985, -0.02852373756468296, + -0.00021575400023721159, -0.04588400572538376, 0.023849226534366608, 0.008311093784868717, + -0.004889783449470997, 0.02944633737206459, -0.008726264350116253, -0.04668359458446503, + -0.030169041827321053, -0.03144530579447746, 0.018036842346191406, -0.010333127342164516, + 0.01692972145974636, -0.00582776078954339, -0.015330547466874123, 0.0039287409745156765, + -0.013285449706017971, -0.005416434723883867, -0.007161687593907118, -0.024156760424375534, + 0.05015872046351433, 0.0038672343362122774, 0.036104440689086914, 0.01891331374645233, + -0.01771393232047558, 0.06224479153752327, 0.027662642300128937, 0.04010237380862236, + 0.0359506718814373, 0.009064551442861557, -0.027416616678237915, 0.0001782733597792685, + 0.006758049596101046, -0.0202664602547884, 0.02783178724348545, 0.002466034609824419, + 0.04419257119297981, 0.012877967208623886, 0.013400774449110031, -0.07202436029911041, + -0.03416697680950165, 0.004263184033334255, 0.022988133132457733, 0.021281322464346886, + -0.0025275414809584618, -0.013985088095068932, -0.04157853499054909, 0.03754984587430954, + 0.05037399381399155, 0.023095769807696342, 0.00990258064121008, 0.030538082122802734, + 0.032967597246170044, -0.02630949579179287, 0.002621723571792245, 0.07343900948762894, + -0.05148111656308174, -0.012270588427782059, -0.0008913667988963425, -0.02689380943775177, + -0.0486825592815876, 0.049082353711128235, -0.007980495691299438, -0.012001496739685535, + -0.024279773235321045, 0.010463829152286053, 0.0045553408563137054, -0.027877915650606155, + -0.035858411341905594, 0.03545861691236496, -0.023510940372943878, 0.08020474761724472, + 0.03985634818673134, -0.0144925182685256, -0.03259855508804321, -0.012324406765401363, + -0.02841610088944435, -0.01971290074288845, -0.032291021198034286, 0.0076268319971859455, + 0.019051702693104744, 0.006481269374489784, -0.008203457109630108, -0.03001527488231659, + -0.00437466474249959, 0.0869089812040329, 0.009487410075962543, 0.016499174758791924, + -0.032291021198034286, -0.01983591355383396, -0.030184417963027954, 0.029231064021587372, + 0.06276759505271912, 0.0284007228910923, -0.006431295536458492, 0.008264964446425438, + 0.031921982765197754, -0.04760619252920151, -0.01657605916261673, -0.0029561661649495363, + 0.0004613003402482718, -0.016376161947846413, -0.021127555519342422, 0.002319956198334694, + 0.012086068280041218, -0.02072776108980179, 0.03219876438379288, -0.03235252946615219, + -0.05031248927116394, 0.045268937945365906, 0.006950258277356625, 0.026263365522027016, + -0.023849226534366608, 0.0336134172976017, -0.0336134172976017, -0.006458204705268145, + -0.03126078471541405, -0.002252683276310563, -0.009956398978829384, -0.014338752254843712, + 0.037396080791950226, 0.022111661732196808, -0.04831352084875107, 0.014930753968656063, + 0.018974820151925087, 0.012478173710405827, -0.024079877883195877, -0.02235768921673298, + 0.0007289506029337645, -0.006638880353420973, 0.03003065101802349, 0.037611354142427444, + -0.0029119583778083324, -0.022173168137669563, -0.011724716983735561, 0.0440388061106205, + 0.007792131509631872, -0.04034840315580368, -0.02852373756468296, -0.002125825732946396, + 0.044469352811574936, -0.03896450251340866, 0.02235768921673298, 0.04314695671200752, + -0.023510940372943878, -0.029246440157294273, 0.020943034440279007, -0.0029446338303387165, + 0.005839293356984854, 0.007211661897599697, -0.018390506505966187, 0.01957450993359089, + -0.02920030988752842, -0.019389990717172623, -0.019313106313347816, 0.025202374905347824, + -0.016084004193544388, -0.03327513113617897, -0.010056346654891968, 0.027401238679885864, + -0.014354128390550613, -0.0056047989055514336, 0.009548916481435299, 0.057662539184093475, + -0.016437668353319168, -0.0023449433501809835, -0.026986069977283478, 0.027185965329408646, + -0.007684494834393263, 0.0671653300523758, 0.04348524287343025, 0.009372085332870483, + -0.01645304448902607, -0.034474510699510574, -0.032414037734270096, -0.026801548898220062, + 0.020773891359567642, 0.0002866308786906302, 0.017683180049061775, -0.02980000153183937, + 0.010556088760495186, -0.049543656408786774, -0.008034314028918743, 0.04656057804822922, + 0.016391538083553314, -0.02038947492837906, -0.03816491365432739, 0.0038518577348440886, + 0.0012656927574425936, -0.02583281882107258, -0.011440248228609562, -0.03607368469238281, + -0.06209102272987366, -0.018452012911438942, 0.017560165375471115, -0.01948225125670433, + 0.02269597537815571, -0.00515887513756752, 0.049666669219732285, 0.02944633737206459, + -0.005239602643996477, 0.032875336706638336, 0.001452135038562119, -0.01705273613333702, + 0.04714489355683327, 0.01048689428716898, 0.006385165266692638, 0.021988648921251297, + -0.015053767710924149, 0.038779981434345245, -0.006711919791996479, 0.015676522627472878, + -0.029261818155646324, 0.0049666669219732285, -0.012086068280041218, -0.007542260456830263, + -0.005389525555074215, -0.013985088095068932, 0.02398761734366417, 0.010125542059540749, + -0.02038947492837906, -0.028462229296565056, -0.008295717649161816, 0.006196801085025072, + -0.0029734650161117315, -0.04613003134727478, -2.961962536573992e-6, 0.015453561209142208, + 0.015960991382598877, -0.020435605198144913, -0.02203477919101715, -0.039241280406713486, + 0.011724716983735561, -0.00816501583904028, -0.016160888597369194, 0.025125490501523018, + 0.005320330616086721, -0.007596078794449568, -0.026155728846788406, -0.01888255961239338, + 0.009495098143815994, -0.021158307790756226, -0.023249536752700806, -0.008657069876790047, + -0.011148091405630112, 0.010663725435733795, 0.01078673917800188, -0.008826212957501411, + -0.014746233820915222, -0.0544949434697628, 0.0405636765062809, 0.01077905111014843, + -0.03256780281662941, -0.009356708265841007, -0.028785141184926033, -0.056155625730752945, + 0.03428998962044716, -0.005485629662871361, 0.03312136232852936, -0.006285217124968767, + -0.01855964958667755, 0.012001496739685535, -0.026048092171549797, -0.03742683306336403, + 0.013093240559101105, -0.00915681105107069, -0.015222910791635513, 0.00245065800845623, + 0.014730856753885746, 0.024495046585798264, 0.00034092977875843644, -0.037396080791950226, + 0.0024833334609866142, 0.015015325509011745, 0.055479053407907486, -0.044684626162052155, + -0.02710908278822899, -0.00863400474190712, -0.00834184791892767, 0.01889793761074543, + 0.024064499884843826, -0.02294200286269188, -0.009425903670489788, 0.036104440689086914, + 0.004962822888046503, 0.051542624831199646, -0.004778302740305662, -0.03385944291949272, + -0.0036346621345728636, -0.010240866802632809, 0.03410547226667404, 0.010348504409193993, + 0.010171672329306602, 0.047483179718256, 0.005658617243170738, -0.006508178543299437, + 0.004109417088329792, -0.014523272402584553, 0.02178875170648098, 0.0254945307970047, + 0.021404335275292397, -0.054064396768808365, 0.026601651683449745, -0.007519195321947336, + -0.012416667304933071, -0.01646842248737812, -0.04250113666057587, -0.04843653365969658, + 0.005316486116498709, -0.005639396607875824, -0.03198349103331566, -0.034966565668582916, + 0.014292621985077858, -0.037857379764318466, -0.02444891817867756, -0.02829308621585369, + 0.026140352711081505, -0.039579566568136215, 0.009610423818230629, -0.03548937290906906, + -0.026586275547742844, -0.028800517320632935, -0.013293137773871422, 0.03908751532435417, + -0.051880910992622375, -0.006969478912651539, 0.02435665763914585, -0.013370021246373653, + -0.0579393208026886, 0.011132714338600636, -0.032168008387088776, -0.010625284165143967, + -0.022511456161737442, 0.0068618422374129295, 0.008795459754765034, 0.02191176638007164, + -0.010210113599896431, 0.015345924533903599, 0.01902095042169094, 0.042593397200107574, + 0.007184752728790045, 0.019097832962870598, -0.020450981333851814, 0.025479154661297798, + -0.004520743153989315, -0.03176821395754814, 0.008303405717015266, 0.0009937178110703826, + -0.0266631580889225, -0.018375130370259285, -0.02675541862845421, -0.016898969188332558, + 0.01222445908933878, 0.029630858451128006, 0.007007920648902655, 0.02480258047580719, + -0.00962579995393753, 0.02226542867720127, 0.026263365522027016, 0.01321625430136919, + 0.0011205753544345498, -0.017913829535245895, -0.02340330369770527, 0.034351497888565063, + 0.0324755422770977, 0.023803096264600754, 0.014969195239245892, 0.024725697934627533, + -0.04302394390106201, -0.01002559345215559, 0.01240897923707962, -0.02015882357954979, + 0.030753355473279953, 0.003878766903653741, -0.03126078471541405, -0.02689380943775177, + 0.05264974385499954, 0.0038480134680867195, 0.014507895335555077, 0.016299277544021606, + 0.008795459754765034, 0.019866667687892914, 0.011125026270747185, -0.03468978404998779, + 0.008426419459283352, 0.04047141596674919, 0.047021880745887756, 0.007838261313736439, + -0.027908669784665108, 0.024387409910559654, 0.03468978404998779, 9.129902173299342e-5, + -0.05022022873163223, 0.03422848507761955, -0.04326996952295303, -0.017560165375471115, + 0.012601187452673912, -0.011978431604802608, -0.0324447900056839, -0.004563028924167156, + -0.0030887899920344353, -0.028908153995871544, -0.016084004193544388, 0.02976924739778042, + -0.0382879264652729, 0.0336441695690155, -0.013739061541855335, 0.02040485106408596, + 0.01396971195936203, 0.045268937945365906, -0.049912694841623306, -0.0032367906533181667, + 0.002967698732391, -0.005743189249187708, 0.04416181892156601, 0.020943034440279007, + 0.0010898220352828503, 0.022465325891971588, 0.05080454424023628, -0.054187413305044174, + 0.017652425915002823, 0.005608642939478159, -0.035981424152851105, -0.028462229296565056, + -0.03868772089481354, -0.029246440157294273, 0.02191176638007164, 0.009179876185953617, + -0.01206300314515829, -0.004889783449470997, -0.01546893734484911, 0.04207058995962143, + 0.005608642939478159, 0.03791888803243637, 0.0055702016688883305, -0.022219298407435417, + 0.001698161824606359, 0.025479154661297798, -0.01280877273529768, 0.03290608897805214, + 0.011463313363492489, 0.03896450251340866, 0.021757999435067177, -0.00553560396656394, + -0.0029273349791765213, -0.017006605863571167, -0.015476626344025135, 0.014930753968656063, + 0.017360268160700798, -0.018021466210484505, -0.02235768921673298, -0.0021892543882131577, + -0.008018936961889267, -0.0029388675466179848, 0.02086615189909935, 0.016729824244976044, + -0.006219866219907999, 0.005120433401316404, -0.004193988628685474, 0.015661146491765976, + 0.03272157162427902, 0.018867183476686478, 0.011924613267183304, -0.01785232312977314, + -0.014800052158534527, 0.008449484594166279, 0.008188080973923206, -0.0033847910817712545, + -0.038779981434345245, 0.02654014527797699, 0.011078896000981331, 0.01281646080315113, + 0.007196285296231508, -0.02793942391872406, 0.00816501583904028, 0.014477142132818699, + -0.02690918557345867, -0.004428483080118895, 0.013477657921612263, 0.001260887598618865, + 0.018851807340979576, 0.013254696503281593, 0.019989680498838425, -0.0017289151437580585, + -0.016068628057837486, 0.016376161947846413, 0.003033049637451768, 0.03456677123904228, + -0.010648349300026894, 0.01314705889672041, -0.0027947111520916224, -0.004094040486961603, + -0.008534056134521961, 0.01430799812078476, -0.009771878831088543, -0.0029061920940876007, + -0.021465841680765152, 0.00886465422809124, 0.017790816724300385, -0.010794427245855331, + -0.023434055969119072, 0.009010733105242252, -0.016406914219260216, -0.004328534938395023, + -0.0010494582820683718, -0.012908720411360264, -0.0035231811925768852, -0.002904270077124238, + -0.0009706527926027775, 0.02735511027276516, 0.039794839918613434, 0.011978431604802608, + 0.05612487345933914, -0.0072731683030724525, -0.0007577819051221013, 0.017175748944282532, + 0.0202664602547884, -0.012877967208623886, -0.01891331374645233, 0.022526832297444344, + -0.028262333944439888, -0.019282354041934013, 0.010755985975265503, 0.018390506505966187, + -0.016022497788071632, -0.015146027319133282, 0.06704231351613998, 0.03490505740046501, + -0.007061738986521959, -0.03653498739004135, -0.02145046554505825, -0.014146543107926846, + 0.0011465235147625208, -0.05744726583361626, -0.03570464625954628, 0.021542726084589958, + -0.035304851830005646, 0.02052786387503147, -0.005262667778879404, 0.06107616424560547, + 0.03490505740046501, 0.016253147274255753, -0.019728276878595352, 0.0018077206332236528, + 0.01725263148546219, -0.028462229296565056, 0.042470384389162064, -0.01728338561952114, + -0.01321625430136919, -0.008587874472141266, 0.03290608897805214, 0.019174717366695404, + -0.009433591738343239, 0.02261909283697605, -0.008326470851898193, 0.006823400501161814, + -0.020804645493626595, -0.04656057804822922, 0.01762167178094387, -0.04222435504198074, + 0.0130394222214818, -0.012309030629694462, -0.02065087854862213, 0.04554571956396103, + 0.006569685414433479, 0.0022469169925898314, -0.015515067614614964, 0.038656968623399734, + 0.0034366874024271965, -0.03512033075094223, -2.2794723918195814e-5, -0.0283853467553854, + 0.022173168137669563, -0.004812899976968765, -0.021865636110305786, 0.001357952831313014, + -0.013954334892332554, -0.0393950492143631, -0.012101445347070694, -0.026524769142270088, + 0.025586791336536407, 0.028585243970155716, -0.03653498739004135, -0.021296698600053787, + 0.005581733770668507, -0.034966565668582916, 0.03871847316622734, -0.027985552325844765, + -0.03419772908091545, 0.0335826650261879, -0.04382353276014328, 0.002994607901200652, + 0.04674509912729263, 0.013962022960186005, 0.05172714218497276, -0.022111661732196808, + 0.030860992148518562, -0.0301229115575552, -0.003438609419390559, 0.0016750968061387539, + 0.006727296393364668, 0.06289061158895493, 0.014761610887944698, 0.023710837587714195, + -0.03226026892662048, 0.04825201258063316, -0.012032249942421913, 0.017221879214048386, + -0.028123943135142326, 0.013254696503281593, -0.04563798010349274, -0.011455624364316463, + -0.0005871968460269272, 0.0475446879863739, 0.00020518254314083606, 0.025217751041054726, + 0.011409495025873184, 0.015084520913660526, 0.016391538083553314, 0.01117884460836649, + -0.01060221903026104, 0.004267028067260981, 0.034935809671878815, 0.003944117575883865, + -0.021527348086237907, 0.011271104216575623, -0.019743654876947403, 0.022757483646273613, + 0.05830836296081543, 0.0007371194660663605, 0.007834416814148426, 0.042039837688207626, + -0.01570727676153183, 0.007015609182417393, -0.028262333944439888, 0.021527348086237907, + 0.0440388061106205, 0.02191176638007164, -0.021235192194581032, -0.002452580025419593, + 0.005946930032223463, 0.016837462782859802, -0.03232177719473839, -0.011747781187295914, + -0.017821568995714188, -0.034013211727142334, -0.02308039367198944, -0.029415583238005638, + 0.013715996406972408, 0.01636078581213951, -0.03838018700480461, 0.01263962872326374, + -0.03149143606424332, 0.02421826682984829, 0.029707740992307663, -0.03816491365432739, + 0.0022373066749423742, -0.06974861025810242, 0.009664242155849934, -0.019190093502402306, + -0.00788823515176773, 0.02269597537815571, 0.009433591738343239, 0.04732941463589668, + -0.0034405316691845655, -0.013646801002323627, -0.015161404386162758, -0.006339035462588072, + -0.018605779856443405, 0.008787770755589008, 0.01995892822742462, -0.008487925864756107, + 0.04812899976968765, 0.0032848427072167397, 0.03834943473339081, -0.024418164044618607, + 0.028785141184926033, 0.03438225015997887, -0.012255212292075157, 0.00017863375251181424, + 0.015837978571653366, -0.00961811188608408, 0.0312761627137661, 0.0020431759767234325, + -0.0032560115214437246, 0.005285732913762331, 0.025909701362252235, 0.01320856623351574, + -0.022926626726984978, -0.00914912298321724, -0.003967182710766792, -0.03173746168613434, + -0.026171104982495308, 0.01299329288303852, 0.013008669018745422, 0.01725263148546219, + 0.030415067449212074, -0.010502270422875881, 0.02989226207137108, 0.00852636806666851, + -0.018482767045497894, 0.011855418793857098, 0.021388959139585495, 0.00980263203382492, + 0.019559133797883987, 0.0018932534148916602, 0.012278277426958084, 0.03315211832523346, + 0.008380289189517498, -0.027385862544178963, 0.021542726084589958, 0.013546853326261044, + 0.01691434532403946, -0.04010237380862236, 0.018698040395975113, -0.004578405525535345, + -0.0033944016322493553, 0.02492559514939785, -0.023710837587714195, 0.020327968522906303, + 0.007830573245882988, -0.0020239551085978746, -0.01460015494376421, -0.020128071308135986, + 0.029999898746609688, -0.014361816458404064, 0.028662126511335373, -0.01460015494376421, + -0.0278164092451334, 0.009495098143815994, -0.023495562374591827, 0.05815459415316582, + -0.032383281737565994, -0.01600712165236473, -0.011394117958843708, 0.017437152564525604, + -0.0029965301509946585, 0.008695511147379875, 0.043762024492025375, -0.03638121858239174, + -0.01636078581213951, 0.03850319981575012, -0.00669654319062829, 0.0034366874024271965, + -0.0005131966318003833, -0.03616594523191452, 0.00991026870906353, 0.00817270390689373, + -0.012801083736121655, -0.011301858350634575, -0.007822884246706963, 0.03964107483625412, + -0.02804706059396267, -0.018621155992150307, -0.015315170399844646, 0.03638121858239174, + 0.001308939652517438, 0.00768065033480525, -0.0074077146127820015, 0.003759597660973668, + 0.022865120321512222, -0.041424769908189774, 0.015545820817351341, 0.00984107330441475, + -0.040994223207235336, 0.019559133797883987, 0.023387925699353218, -0.01280877273529768, + -0.005097368732094765, -0.01725263148546219, -0.015207533724606037, -0.04127100110054016, + -0.026986069977283478, 0.06246006488800049, -0.01809834875166416, -0.009233694523572922, + -0.01299329288303852, 0.02514086849987507, 0.005781630985438824, -0.0003241115191485733, + -0.034597523510456085, -0.040625181049108505, -0.02733973227441311, -0.043977297842502594, + -0.006196801085025072, 0.01565345749258995, -0.02095841057598591, -0.015522755682468414, + 0.019882043823599815, -0.010256243869662285, -0.026001961901783943, -0.006512023042887449, + 0.009556605480611324, 0.03951806202530861, -0.034843552857637405, 0.011570950038731098, + 0.017652425915002823, -0.000978341093286872, 0.006442828103899956, 0.014331063255667686, + -0.04508441686630249, 0.011255728080868721, -0.0015934081748127937, 0.02540227212011814, + 0.020143447443842888, -0.04696037247776985, -0.010802116245031357, 0.00215850118547678, + -0.0038518577348440886, -0.027201343327760696, -0.0009908346692100167, 0.0016529927961528301, + -0.016837462782859802, 0.0004629821632988751, -0.005474097095429897, -0.009202941320836544, + 0.012939474545419216, 0.026724666357040405, -0.012262900359928608, -0.01912858709692955, + -0.010140919126570225, 0.009848762303590775, 0.016253147274255753, -0.03281382843852043, + -0.0020527865272015333, -0.029738495126366615, 0.008780082687735558, -0.0039518061093986034, + -0.010986636392772198, 0.0015222911024466157, 0.01368524320423603, 0.015322859399020672, + -0.007219349965453148, 0.018636533990502357, -0.009702683426439762, -0.007772910408675671, + -0.004459236282855272, 0.011309546418488026, 0.0020047342404723167, 0.021050671115517616, + 0.023695459589362144, 0.00457456149160862, 0.002398761687800288, 0.03764210641384125, + -0.012877967208623886, -0.007073271553963423, -0.027170589193701744, 0.018528897315263748, + -0.027631890028715134, -0.013108617626130581, -0.03139917552471161, -0.02272672951221466, + -0.021819505840539932, 0.017790816724300385, 0.03278307616710663, -0.006842621602118015, + 0.021834881976246834, 0.005704747512936592, -0.017529413104057312, 0.003298297291621566, + -0.01771393232047558, 0.026724666357040405, 0.05440268665552139, 0.016637565568089485, + -0.01597636751830578, 0.002735126530751586, 0.008257275447249413, -0.008141950704157352, + -0.01216295175254345, 0.01694509945809841, -0.014523272402584553, -0.044315584003925323, + 0.02747812308371067, -0.032875336706638336, -0.01694509945809841, 0.004501522518694401, + -0.003905676072463393, 0.053941383957862854, 0.035181839019060135, 0.015315170399844646, + 2.8455862775444984e-5, -0.016253147274255753, -0.009779566898941994, -0.017529413104057312, + 0.03324437513947487, -0.03779587522149086, -0.012078380212187767, 0.03149143606424332, + 6.012521043885499e-5, -0.0007476909668184817, 0.03548937290906906, -0.031583696603775024, + -0.01390051655471325, -0.014592466875910759, -0.007496130187064409, 0.014538648538291454, + -0.013562229461967945, -0.0039594946429133415, -0.06233705207705498, 0.0012435887474566698, + -0.008403354324400425, -0.006750361528247595, 0.01234747190028429, -0.013823633082211018, + -0.008772394619882107, 0.012416667304933071, 0.015038390643894672, -0.023726213723421097, + -0.006104541011154652, 0.003990247845649719, 0.00611222954466939, 0.014538648538291454, + 0.013785191811621189, -0.026232611387968063, 0.009133746847510338, 0.023710837587714195, + -0.003357881912961602, -0.013915893621742725, 0.00991026870906353, 0.02283436618745327, + 0.0023353327997028828, -0.005320330616086721, 0.0013877451419830322, 0.05120433494448662, + 0.015668833628296852, -0.017467904835939407, -0.017929205670952797, 0.0055702016688883305, + 0.013370021246373653, 0.0196821466088295, 0.018159857019782066, -0.023141900077462196, + 0.03502807021141052, -0.00567783834412694, -0.01636078581213951, 0.002106604864820838, + -0.0008024703711271286, 0.0014886546414345503, -0.04671434685587883, -0.026986069977283478, + -0.00023965993023011833, -0.0023276444990187883, -0.022203922271728516, 0.0062890611588954926, + 0.04164004325866699, 0.02015882357954979, -0.045607224106788635, -0.012378225103020668, + -0.009894891642034054, -0.009464344941079617, -0.04105572775006294, -0.005058926995843649, + 0.004163235425949097, 0.02225005254149437, 0.002615957288071513, -0.021004540845751762, + 0.004924381151795387, 0.007400026079267263, 0.030691849067807198, 0.023372549563646317, + 0.018821053206920624, -0.024864086881279945, -0.025340763852000237, 0.039333540946245193, + -0.023264912888407707, 0.016975851729512215, -0.04545345902442932, -0.0076268319971859455, + 0.009487410075962543, 0.004778302740305662, -0.03302910178899765, -0.007799819577485323, + -0.017544789239764214, -0.004336223006248474, -0.015476626344025135, 0.014915376901626587, + 0.013646801002323627, 0.04373127222061157, -0.013431527651846409, -0.0046937307342886925, + -0.01049458235502243, -0.014984572306275368, -0.021465841680765152, 0.010210113599896431, + 0.007607611361891031, -0.0035385580267757177, -0.00012853941007051617, 0.006419762969017029, + -0.006857998203486204, 0.007461532950401306, -0.023372549563646317, -0.01875954680144787, + 0.024710319936275482, -0.03189123049378395, -0.027078328654170036, 0.0007347168866544962, + -0.005028173327445984, -0.006915660575032234, 0.02678617276251316, 0.02411063015460968, + -0.0022738261613994837, -0.03186047449707985, 0.006550464779138565, -0.0020470202434808016, + -0.014108101837337017, -0.000948068278376013, -0.04034840315580368, -0.021634984761476517, + 0.036227453500032425, 0.011570950038731098, -0.014615532010793686, 0.011324922554194927, + 0.017667802050709724, -0.009010733105242252, -0.001334887812845409, 0.004605314694344997, + -0.0018413570942357183, -0.008095820434391499, 0.0004903718363493681, -0.006669634021818638, + -0.008541744202375412, -0.01875954680144787, -0.040379155427217484, 0.0579700730741024, + 0.017314139753580093, -0.009748813696205616, -0.008426419459283352, 0.03149143606424332, + 0.024541176855564117, -0.006273684557527304, -0.0031522188801318407, 0.0028177760541439056, + 0.039364293217659, 0.012439732439815998, -0.01563808135688305, -0.009764189831912518, + 0.01829824596643448, 0.011009701527655125, -0.02560216747224331, -0.014792364090681076, + 0.0075307278893888, 0.04262414947152138, -0.027062952518463135, 0.051757898181676865, + 0.005481785628944635, 0.03152218833565712, -0.007561481092125177, 0.0428701788187027, + 0.010448452085256577, 0.013346956111490726, -0.003215647768229246, 0.010456141084432602, + -0.04569948464632034, -0.009710371494293213, -0.010271620936691761, 0.012209082022309303, + -0.006727296393364668, -0.02886202372610569, 0.015945615246891975, 0.02641713246703148, + 0.015945615246891975, -0.006066099274903536, -0.0260788444429636, 0.00915681105107069, + -0.012124510481953621, -0.004416950512677431, -0.03352115675806999, -0.00045529380440711975, + 0.0005328980041667819, 0.00834953598678112, -0.009118369780480862, 0.00443232711404562, + 0.001973981037735939, 0.011117338202893734, -0.024618061259388924, -0.024310527369379997, + -0.016868215054273605, 0.03336739167571068, -0.011678586713969707, -0.024833334609866142, + -0.003159907180815935, 0.0031752840150147676, -0.02038947492837906, -0.029507843777537346, + 0.006646568886935711, -0.016606811434030533, 0.02966161072254181, 0.009541228413581848, + -0.010263931937515736, 0.0074077146127820015, -0.03152218833565712, -0.0225883387029171, + 0.014061971567571163, 0.030507327988743782, 0.011901548132300377, 0.002064318861812353, + 0.013446904718875885, -0.04157853499054909, 0.04656057804822922, 0.024864086881279945, + -0.011978431604802608, -0.019728276878595352, -0.016391538083553314, -0.007438467815518379, + 0.004578405525535345, -0.016207018867135048, -0.009272136725485325, 0.009072239510715008, + -0.02827771008014679, 0.0030311276204884052, 0.010102476924657822, 0.009472033008933067, + -0.03930278867483139, -0.002285358728840947, 0.009602734819054604, -0.002485255477949977, + 0.02632487192749977, -0.012301341630518436, -0.05052776262164116, -0.00979494396597147, + 0.00904148630797863, -0.04360825568437576, -0.028769763186573982, 0.006761894095689058, + 0.027877915650606155, -0.014615532010793686, 0.0237569659948349, 0.01682208478450775, + -0.009518163278698921, 0.04268565773963928, -0.013293137773871422, 0.043392982333898544, + -0.009102992713451385, 0.0027293602470308542, -0.023203406482934952, -0.003457830287516117, + 0.01772930845618248, 0.0179445818066597, 0.007127089891582727, 0.006419762969017029, + 0.006454360205680132, 0.020927658304572105, -0.00834953598678112, 0.04360825568437576, + 0.004109417088329792, -0.003707701340317726, 0.011586326174438, 0.016729824244976044, + 0.01623777113854885, 0.017913829535245895, -0.01240897923707962, 0.008072755299508572, + -0.0179445818066597, -0.025786688551306725, 0.004278560634702444, 0.0047821467742323875, + 0.024310527369379997, -0.0015828367322683334, -0.03118390217423439, -0.024295151233673096, + 0.03419772908091545, -0.014338752254843712, -0.0010754064423963428, -0.0042593395337462425, + -0.013077864423394203, 0.050497010350227356, 0.005374148953706026, -0.013293137773871422, + 0.007015609182417393, -0.014746233820915222, 0.025340763852000237, -0.00834953598678112, + 0.008141950704157352, 0.0057970075868070126, 0.017544789239764214, -0.026386378332972527, + 0.0030580367892980576, 0.0417015478014946, 0.014138855040073395, -0.04124024882912636, + ], + index: 78, + }, + { + title: "CUC Broadcasting", + text: "CUC Broadcasting was a Canadian media company, active from 1968 to 1995. Active primarily as a cable television distributor, the company also had some holdings in broadcast media and publishing.The company was founded in 1968 by chairman Geoffrey Conway, with shareholders including Jerry Grafstein, Michael Koerner and Ken Lefolii.", + vector: [ + 0.03923020139336586, -0.0008029687451198697, -0.03432251885533333, -0.020537244156003, + 0.018380364403128624, 0.006474546156823635, -0.051264964044094086, 0.023960119113326073, + -0.05707915872335434, 0.012910017743706703, -0.026789069175720215, -0.026398329064249992, + -0.044325437396764755, -0.01742696203291416, -0.009049516171216965, -0.01351175643503666, + -0.021959533914923668, 0.02449152246117592, -0.003225550753995776, 0.05057726055383682, + 0.04013671353459358, -0.02777373045682907, -0.024100784212350845, -0.01627037301659584, + 0.02320989966392517, -0.00029647324117831886, -0.024319598451256752, 0.00419653719291091, + 0.039105162024497986, -0.011948799714446068, 0.020756058394908905, 0.031806159764528275, + -0.0024323505349457264, -0.024757225066423416, -0.0205216147005558, -0.024194560945034027, + -0.016708001494407654, -0.009338662959635258, -0.04942067340016365, -0.07914809882640839, + 0.0006520457682199776, 0.0020455189514905214, 0.013277312740683556, 0.03913642093539238, + -0.001182962441816926, -0.0016577104106545448, -0.0507022999227047, -0.025632482022047043, + 0.011339247226715088, 0.03335348516702652, 0.01194098498672247, -0.05189014598727226, + 0.03713583946228027, 0.012714648619294167, -0.0021881386637687683, 0.028477061539888382, + -0.006576138082891703, 0.06620682030916214, 0.006736340932548046, 0.01429323386400938, + -0.023678787052631378, 0.021475017070770264, 0.04516943544149399, 0.004720127675682306, + 0.006611304823309183, 0.04804527387022972, -0.032259415835142136, 0.009174552746117115, + -0.019333768635988235, -0.02133435197174549, -0.07358397543430328, -0.03441629558801651, + 0.03463510796427727, 0.0197713952511549, 0.03213438019156456, 0.033634815365076065, + 0.04904556646943092, -0.0018374503124505281, 0.020646650344133377, 0.043575219810009, + 0.046107206493616104, -0.022584717720746994, -0.004911589901894331, 0.008275852538645267, + 0.02300671488046646, -0.007353708613663912, -0.061611734330654144, -0.08696287870407104, + 0.006064270157366991, 0.041480857878923416, 0.04223107546567917, -0.017973996698856354, + 0.02327241748571396, -0.06058018282055855, 0.018161550164222717, 0.012402057647705078, + 0.02097487263381481, -0.013449237681925297, -0.0339786671102047, 0.019505692645907402, + 0.007420134264975786, -0.021771980449557304, 0.032572004944086075, -0.037229616194963455, + 0.03916768357157707, -0.01475430652499199, -0.0053609395399689674, 0.022944197058677673, + 0.031040308997035027, 0.0633935034275055, 0.01170654222369194, 0.018224069848656654, + 0.04238737002015114, 0.01616096682846546, -0.03613554686307907, 0.028805281966924667, + -0.011159507557749748, 0.04413788393139839, -0.046513576060533524, 0.0288834311068058, + -0.008775998838245869, -0.01662985421717167, -0.04395032674074173, -0.033165931701660156, + -0.0060564554296433926, -0.014777750708162785, -0.032415710389614105, 0.003499068086966872, + 0.030884014442563057, 0.01013577077537775, -0.06458134949207306, 0.021725090220570564, + -0.018864881247282028, 0.0006510689272545278, -0.0258512943983078, -0.026851586997509003, + 0.009182367473840714, 0.03754220902919769, 0.02782062068581581, -0.03375985473394394, + 0.05285917967557907, 0.04470054805278778, -0.013214794918894768, 0.0207873173058033, + -0.03197808191180229, -0.022053312510252, 0.007900743745267391, 0.056797828525304794, + -0.004055871162563562, -0.030149424448609352, 0.014090050011873245, -0.002317082602530718, + 0.01602030172944069, -0.010424917563796043, 0.00396014004945755, 0.028101952746510506, + 0.013081943616271019, -0.0011214211117476225, 0.007713188882917166, 0.0033310502767562866, + 0.0031063754577189684, 0.017770811915397644, -0.02930542826652527, -0.015137230977416039, + 0.03757346794009209, -0.03416622057557106, 0.026585884392261505, -0.029743056744337082, + -0.03050890378654003, 0.017145629972219467, 0.04185596480965614, 0.015324785374104977, + -0.03654191642999649, -0.02914913184940815, -0.04279373958706856, -0.0001073311286745593, + -0.040543083101511, -0.0036006602458655834, -0.007623318582773209, 0.03172801062464714, + -0.018224069848656654, 0.007150524295866489, 0.03163423389196396, -0.01864606700837612, + -0.008064853958785534, 0.03263452649116516, 0.03082149662077427, 0.021381240338087082, + -0.04282499849796295, -0.031602974981069565, 0.010542139410972595, 0.02038094773888588, + 0.037073321640491486, -0.0017466035205870867, 0.019193101674318314, 0.0031728011090308428, + -0.012151984497904778, 0.03149356693029404, -0.039761606603860855, -0.02422582171857357, + 0.023147381842136383, -0.01013577077537775, 0.0009719633962959051, -0.00026863309904001653, + 0.029117872938513756, 0.015582673251628876, 0.025226112455129623, -0.0215375367552042, + -0.01784895919263363, 0.05110866576433182, 0.006552693899720907, -0.007959354668855667, + 0.0496707484126091, 0.021615684032440186, 0.0012044530594721437, -0.011347061954438686, + 0.008955738507211208, 0.004079315811395645, -0.022647235542535782, 0.0056461794301867485, + 0.09990415722131729, 0.011597135104238987, 0.006935617886483669, -0.03982412442564964, + -0.02944609522819519, -0.030180683359503746, -0.02924291044473648, -0.016192225739359856, + -0.022115830332040787, 0.003163032466545701, -0.034947700798511505, 0.049139343202114105, + -0.037635985761880875, 0.011206395924091339, 0.01930250972509384, -0.02417893148958683, + -0.0276174359023571, -0.02417893148958683, -0.07570959627628326, 0.0016411039978265762, + -0.040480565279722214, 0.06751970946788788, -0.017192518338561058, 0.0021627405658364296, + 0.015020009130239487, -0.009033886715769768, 0.03229067474603653, -0.04066811874508858, + -0.014957490377128124, -0.06126788258552551, 0.00889322068542242, 0.017020592465996742, + 0.046107206493616104, -0.037729762494564056, -0.01575459912419319, -0.028367655351758003, + 0.029274169355630875, -0.00864314753562212, 0.0035068828146904707, 0.025929443538188934, + 0.005845455918461084, 0.016536075621843338, 0.03150919824838638, -0.022850418463349342, + 0.01733318343758583, -0.017973996698856354, -0.014394826255738735, -0.02260034717619419, + -0.06114284694194794, 0.0071036359295248985, 0.014863713644444942, 0.016911186277866364, + 0.030040018260478973, 6.996670708758757e-5, -0.05820448696613312, 0.028648987412452698, + 0.00572823453694582, 0.03488518297672272, -0.05495353788137436, 0.004384092055261135, + 0.0653940886259079, -0.049858301877975464, -0.040418047457933426, -0.029696166515350342, + 0.007412319537252188, -0.00017668731743469834, -0.006388583220541477, 0.02255345694720745, + -0.0003118586027994752, -0.013714940287172794, -0.02099050208926201, 0.0006789090693928301, + 0.044106625020504, 0.024444634094834328, -0.007412319537252188, 0.005607105325907469, + 0.005548494402319193, -0.010839100927114487, -0.04516943544149399, 0.010120141319930553, + 0.021553166210651398, 0.009112034924328327, -0.008783813565969467, -0.05698538199067116, + -0.03569791838526726, -0.016754889860749245, -0.004294222220778465, 0.04251240938901901, + 0.032915856689214706, -0.0319468230009079, -0.006349509581923485, -0.02752365916967392, + -0.020443467423319817, -0.021912645548582077, -0.009158923290669918, 0.0017895848723128438, + 0.0597987025976181, 0.009033886715769768, 0.004513035994023085, -0.017161259427666664, + 0.07183346897363663, 0.029117872938513756, -0.10734383016824722, 0.020302800461649895, + 0.0344788134098053, -0.0200214684009552, 0.028977207839488983, 0.03857375681400299, + 0.011831577867269516, 0.04548202455043793, 0.007599874399602413, 0.015442007221281528, + 0.005020996555685997, 0.045231953263282776, 0.03369733691215515, -0.014308864250779152, + -0.013089758343994617, 0.005802474915981293, -0.022240865975618362, -0.009112034924328327, + 0.030649570748209953, -0.0029285892378538847, -0.010370214469730854, 0.013707125559449196, + -0.01825532875955105, -0.00594314094632864, 0.035354070365428925, 0.008447778411209583, + -0.004387999419122934, -0.05210895836353302, 0.0008899081731215119, 0.023381823673844337, + -0.017051851376891136, 0.050764817744493484, 0.017567627131938934, 0.026070108637213707, + 0.008744739927351475, -0.049545712769031525, -0.04557580128312111, 0.03529154881834984, + 0.07127080112695694, -0.04288751631975174, -0.005337495356798172, 0.04798275604844093, + -0.004868608433753252, 0.05739175155758858, -0.0008024803246371448, -0.006732433568686247, + 0.019599471241235733, -0.0010598796652629972, 0.004372369963675737, 0.0020044913981109858, + -0.029836833477020264, 0.01687992736697197, 0.037792280316352844, 0.04223107546567917, + -0.04229359328746796, 0.0010227594757452607, -0.05432835593819618, 0.006474546156823635, + -0.05110866576433182, 0.034447554498910904, 0.0010628101881593466, 0.010503065772354603, + -0.03313467279076576, 0.01692681573331356, -0.016801778227090836, -0.02777373045682907, + -0.02169383130967617, -0.01312883198261261, -0.014097864739596844, 0.019958950579166412, + 0.008400889113545418, 0.017614515498280525, -5.220029561314732e-5, 0.003710067132487893, + 0.006025196053087711, 0.005626642145216465, 0.02144375815987587, -0.01931813918054104, + -0.020240282639861107, 0.03279082104563713, 0.014238530769944191, 0.028445802628993988, + -0.024100784212350845, 0.021178055554628372, -0.027539288625121117, -0.028477061539888382, + -0.017145629972219467, 0.007892929017543793, 0.01744259148836136, -0.09183930605649948, + -0.03263452649116516, 0.002918820595368743, -0.0024323505349457264, 0.02869587577879429, + 0.028555208817124367, -0.008674406446516514, -0.014949675649404526, 0.009385552257299423, + 0.02514796517789364, 0.01966198906302452, 0.0017905617132782936, -0.03654191642999649, + 0.058016933500766754, -0.015879634767770767, 0.023288046941161156, -0.039105162024497986, + -0.010714064352214336, 0.015246637165546417, 0.030290091410279274, -0.014144753105938435, + -0.014629269950091839, 0.054265838116407394, 0.008877591229975224, 0.011370506137609482, + -0.03754220902919769, -0.01188628189265728, -0.030852755531668663, 0.017411332577466965, + 0.05013963580131531, 0.010854730382561684, -0.046857427805662155, -0.021990792825818062, + 0.004821719601750374, -0.022615976631641388, -0.05564124137163162, -0.05295295640826225, + -0.01972450688481331, -0.0007399620953947306, -0.019943321123719215, -0.017458220943808556, + -0.01244113128632307, -0.05379695072770119, -0.06520653516054153, -0.007138802204281092, + 0.016582965850830078, -0.020443467423319817, 0.016801778227090836, 0.009362107142806053, + -0.0037413262762129307, 0.010409288108348846, 9.273947216570377e-5, -0.025257371366024017, + -0.05457843095064163, 0.01825532875955105, -0.06508149206638336, -0.04229359328746796, + -0.02707040123641491, -0.013136646710336208, 0.02255345694720745, 0.008783813565969467, + -0.023053603246808052, 0.010846915654838085, 0.026242034509778023, -0.041387081146240234, + 0.05954863131046295, -0.061924323439598083, 0.017348812893033028, 0.04076189547777176, + 0.006099436432123184, 0.010174844413995743, -0.030837126076221466, 0.04785771667957306, + -0.04132455959916115, -0.039355237036943436, -0.06298713386058807, 0.007080191280692816, + -0.036573175340890884, -0.02099050208926201, 0.03204060345888138, 0.064893938601017, + 0.013933754526078701, 0.021521907299757004, 0.026382699608802795, -4.856764280702919e-5, + -0.001554164569824934, 0.018474141135811806, -0.013675866648554802, -0.05767308175563812, + -0.011401765048503876, 0.047420091927051544, 0.04641979932785034, 0.01683303713798523, + -0.01803651452064514, -0.04585713520646095, 0.03610428795218468, 0.07889802753925323, + -0.02300671488046646, 0.011870652437210083, 0.0048764231614768505, 0.08596259355545044, + 0.036323100328445435, 0.011995689012110233, -0.006212750915437937, -0.03463510796427727, + 0.013832162134349346, -0.02818010002374649, -0.0010081067448481917, -0.04951445013284683, + 0.03457259014248848, 0.013292942196130753, 0.037948574870824814, 0.0273673627525568, + 0.006962969899177551, -0.010159214958548546, 0.02513233572244644, 0.02336619421839714, + 0.06445631384849548, -0.007166154216974974, -0.009080775082111359, -0.013832162134349346, + 0.031556084752082825, -0.026898475363850594, -0.013621163554489613, 0.027132919058203697, + 0.017520738765597343, 0.012738092802464962, -0.011737801134586334, -0.015957782045006752, + -0.03107156977057457, 0.018208440393209457, 0.03354103863239288, -0.01429323386400938, + -0.009940401650965214, 0.026038849726319313, 0.00821333471685648, 0.014730862341821194, + 0.0023913229815661907, 0.004317666403949261, 0.002365924883633852, 0.017958367243409157, + 0.0019146213307976723, -0.02200642228126526, 0.026382699608802795, 0.016004670411348343, + 0.025960702449083328, -0.025929443538188934, -0.04038678854703903, 0.009916956536471844, + 0.00933084823191166, 0.004794368054717779, 0.01474649179726839, 0.011690911836922169, + -0.03741716966032982, -0.003774539101868868, 0.005802474915981293, 0.022022051736712456, + -0.03713583946228027, -0.009487143717706203, -0.00396014004945755, 0.043106332421302795, + 0.019021175801753998, -0.04445047304034233, 0.005231995601207018, -0.025226112455129623, + 0.029868092387914658, 0.006415935233235359, -0.020896723493933678, 0.002467517042532563, + 0.00876818411052227, -0.010596842505037785, 0.032665785402059555, 0.0038526870775967836, + -0.004716220311820507, -0.009901327081024647, -0.011276728473603725, 0.00032187128090299666, + -0.02017776481807232, -0.005204644054174423, -0.05282791703939438, -0.07164590805768967, + 0.004239518661051989, -0.013300756923854351, 0.0053726620972156525, -0.01652044616639614, + -0.045794617384672165, 0.0339786671102047, -0.021099908277392387, -0.00897136889398098, + 0.014238530769944191, 0.05839204415678978, -0.01961510069668293, -0.06483142077922821, + 0.002444072626531124, 0.01866169646382332, 0.016864297911524773, -0.02782062068581581, + 0.006494082976132631, -0.03025883249938488, -0.03579169511795044, -0.003958186600357294, + 0.03416622057557106, -0.0025026835501194, 0.007978891022503376, -0.023803822696208954, + -0.011034470982849598, 0.022240865975618362, 0.040011677891016006, 0.01748947985470295, + 0.031040308997035027, -0.038042351603507996, -0.01728629507124424, -0.025991961359977722, + 0.055891312658786774, 0.015442007221281528, -0.03929271921515465, -0.0053140511736273766, + -0.007478745188564062, -0.005997844506055117, 0.017301924526691437, 0.005575845949351788, + 0.02691410481929779, 0.0032783006317913532, 0.025788776576519012, -0.051264964044094086, + 0.010206104256212711, 0.0004625373403541744, 0.00031649862648919225, 0.001915598171763122, + -0.055172353982925415, 0.010112326592206955, -0.01956821046769619, 0.02539803832769394, + -0.018427252769470215, -0.03222815692424774, 0.006079899612814188, 0.001412521698512137, + -0.0024655633606016636, 0.02655462548136711, -0.04641979932785034, -0.012034762650728226, + 0.00182768190279603, -0.008611888624727726, -0.034041184931993484, -0.012675574980676174, + 0.002789876889437437, 0.021771980449557304, -0.02352249063551426, -0.027304844930768013, + -0.025413667783141136, -0.03732339292764664, 0.0041770003736019135, 0.003143495647236705, + -0.015449821949005127, -0.010510880500078201, -0.0013627024600282311, -0.009854438714683056, + -0.02347560226917267, -0.013113202527165413, 0.017020592465996742, 0.04982704296708107, + 0.030852755531668663, -0.001197615172713995, -0.030696459114551544, 0.013730569742619991, + -0.02803943306207657, 0.005739956628531218, -0.015801487490534782, -0.023710045963525772, + 0.005239810794591904, -0.010362399742007256, 0.0552348718047142, -0.0011790550779551268, + 0.004743571858853102, 0.00731072761118412, -0.00965125486254692, -0.02575751766562462, + 0.0035166514571756124, -0.012151984497904778, 0.01090161968022585, -0.0023874156177043915, + 0.03036823868751526, -1.9216424334445037e-5, -0.030524535104632378, 0.030852755531668663, + -0.012683389708399773, 0.010503065772354603, -0.017598886042833328, 0.00697078462690115, + -0.02985246293246746, 0.021412499248981476, -0.0028719319961965084, -0.014519862830638885, + -0.010682805441319942, -0.004091037902981043, -0.0011350968852639198, -0.016645483672618866, + -0.040480565279722214, -0.02397574856877327, -0.007279468234628439, -0.011104803532361984, + -0.03247822821140289, -0.04395032674074173, 0.005630549509078264, -0.02038094773888588, + 0.008705666288733482, -0.024616559967398643, -0.01437138207256794, -0.00858844444155693, + 0.038292426615953445, 0.008572814986109734, 0.018208440393209457, 0.01176124531775713, + 0.005583661142736673, 0.0010764860780909657, 0.033322226256132126, -0.02528863027691841, + 0.010354585014283657, 0.004259055480360985, 0.01512941624969244, -0.0022154904436320066, + -0.011425209231674671, 0.024710336700081825, 0.021318722516298294, 0.021349981427192688, + -0.01784895919263363, 0.01678614877164364, 0.03400992602109909, 0.0037569559644907713, + 0.016848668456077576, 0.006075992248952389, 0.010659361258149147, -0.00882288720458746, + -0.014934046193957329, -0.019536951556801796, 0.0009358199895359576, 0.012347353622317314, + -0.0014437807258218527, 0.018739843741059303, 0.01617659628391266, -0.00019634637283161283, + -0.0076975589618086815, 0.019505692645907402, -0.011307988315820694, 0.021068649366497993, + -0.0063456022180616856, -0.0038097056094557047, -0.05217147618532181, -8.950366463977844e-5, + 0.020771687850356102, 0.014988750219345093, 0.01936502754688263, 0.007205227855592966, + 0.010026363655924797, 0.0022174441255629063, 0.008752554655075073, 0.03269704431295395, + 0.0026511643081903458, 0.005888437386602163, -0.011651838198304176, -0.013871235772967339, + -0.03183741867542267, -0.03350977972149849, 0.005103052128106356, 0.00882288720458746, + 0.02031842991709709, -0.05057726055383682, 0.0044661471620202065, -0.03610428795218468, + -0.01972450688481331, 0.005571938585489988, 0.02539803832769394, -0.026945363730192184, + 0.0030966070480644703, -0.002184231299906969, -0.0016508724074810743, 0.02327241748571396, + -0.0027801082469522953, -0.013754013925790787, -0.04438795521855354, -0.013996272347867489, + 0.0011526801390573382, -0.01107354462146759, -0.029883721843361855, 0.005310143809765577, + 0.01972450688481331, -0.02442900463938713, -0.015176304616034031, -0.008455593138933182, + 0.037792280316352844, -0.021209314465522766, -0.010745324194431305, -0.010479621589183807, + 0.03782353922724724, 0.009487143717706203, -0.029946239665150642, -0.02928979881107807, + -0.04535698890686035, 0.032415710389614105, 0.021381240338087082, -0.05432835593819618, + 0.008658776991069317, 0.0028269970789551735, -0.016098449006676674, -0.008205519989132881, + -0.02210020087659359, -0.037635985761880875, -0.0023385731037706137, 0.04035552963614464, + -0.008940109051764011, -0.023022344335913658, 0.012167613953351974, -0.012488019652664661, + -0.004219981841742992, 0.04216855764389038, 0.028977207839488983, -0.02767995372414589, + 0.008346186019480228, 0.03329096734523773, 0.005857178475707769, -0.0029832925647497177, + -0.036979544907808304, -0.00714661693200469, 0.01180813368409872, 0.006326064933091402, + 0.009119849652051926, -0.027554918080568314, 0.04516943544149399, 0.030024388805031776, + -0.006583952810615301, -0.05164007097482681, 0.014410455711185932, -0.047263793647289276, + -0.04238737002015114, 0.0025788776110857725, -0.005009274464100599, -0.03407244384288788, + -0.010776583105325699, -0.03604177013039589, -0.0026374885346740484, -0.0062674544751644135, + 0.010862545110285282, 0.005614920053631067, -0.020396579056978226, -0.015629561617970467, + -0.006767600309103727, 0.003540095640346408, 0.002633581170812249, -0.02306923270225525, + 0.020865464583039284, 0.008627518080174923, -0.028352025896310806, -0.018536660820245743, + -0.009557477198541164, 0.023178640753030777, 0.006689452566206455, 0.016848668456077576, + 0.03149356693029404, 0.01941191591322422, -0.03451007232069969, 0.0021920460276305676, + 0.02306923270225525, 0.001353910774923861, -0.034791406244039536, -0.02569499984383583, + -0.022381532937288284, 0.03516651317477226, 0.028805281966924667, 0.028617728501558304, + 0.0030184590723365545, -0.020162135362625122, -0.010510880500078201, 0.020646650344133377, + 0.022522198036313057, 0.0015463497256860137, 0.00024115925771184266, 0.016754889860749245, + -0.0005548494518734515, 0.017755182459950447, 0.009862253442406654, 0.041887227445840836, + -0.012081651017069817, 0.0016831083921715617, -0.03111845813691616, 0.03476014360785484, + -0.002977431518957019, 0.02164694294333458, 0.0010979766957461834, -0.06908266246318817, + -0.027804991230368614, -0.0005216366262175143, 0.0068144891411066055, 0.017677035182714462, + 0.03522903099656105, -0.0025964609812945127, -0.021068649366497993, 0.0030575329437851906, + -0.008377444930374622, 0.019536951556801796, -0.021459387615323067, 0.022084571421146393, + -0.008322741836309433, 0.02230338379740715, -0.006740248296409845, 0.014215086586773396, + -0.017598886042833328, -0.00858844444155693, -0.03025883249938488, -0.02194390445947647, + 0.042699962854385376, 0.01738007180392742, 0.002828950760886073, -0.04988956078886986, + 0.03247822821140289, 0.0009529148228466511, 0.02397574856877327, 0.003723743138834834, + 0.04826408624649048, 0.019193101674318314, -0.01008888240903616, -0.010151400230824947, + 0.005103052128106356, 0.02331930585205555, 0.010526509955525398, -0.011925355531275272, + -0.03923020139336586, 0.0102686220780015, 0.05457843095064163, -0.0012923694448545575, + -0.009690328501164913, -0.0050131818279623985, -0.00988569762557745, -0.005067885387688875, + 0.002688284730538726, 0.054672207683324814, -0.030790235847234726, -0.028445802628993988, + -0.028414543718099594, -0.005693067796528339, -0.03694828227162361, 0.0131835350766778, + -0.03161860257387161, -0.025663740932941437, -0.02899283729493618, 0.014176012948155403, + -0.02266286499798298, -0.018083402886986732, -0.0027508027851581573, -0.0456070601940155, + 0.0030653479043394327, -0.010526509955525398, 0.01330857165157795, -0.0028777930419892073, + 0.005767308175563812, 0.02803943306207657, 0.017551997676491737, -0.02270975336432457, + -0.024804115295410156, 0.05082733556628227, -0.03329096734523773, 0.03161860257387161, + -0.051077406853437424, 0.05754804611206055, 0.01697370409965515, 0.015668636187911034, + 0.014683973044157028, -0.008072668686509132, 0.008885405957698822, 0.01487934309989214, + 0.03182178735733032, 0.01606719009578228, 0.006439379416406155, 0.046107206493616104, + -0.003524466184899211, 0.051421258598566055, -0.01683303713798523, -0.00889322068542242, + -0.0010061530629172921, 0.014683973044157028, -0.00996384583413601, -0.020459096878767014, + 0.015426377765834332, -0.034385036677122116, 0.004376277327537537, 0.031196605414152145, + 0.0037725854199379683, -0.001958579523488879, -0.015567043796181679, -0.003680761903524399, + -0.0339474081993103, 0.00261013675481081, 0.007209135219454765, 0.041480857878923416, + -0.005794660188257694, 0.005540679674595594, -0.034228742122650146, 0.040730636566877365, + -0.004223889205604792, 0.04094945266842842, -0.00815863162279129, -0.038292426615953445, + 0.022162718698382378, -0.00406759325414896, 0.02803943306207657, -0.041137006133794785, + -0.03300963342189789, 0.01905243657529354, 0.06858251988887787, 0.005696975160390139, + 0.003254856215789914, -0.00538438418880105, -0.007396690081804991, -0.04988956078886986, + -0.022725382819771767, 0.03626058250665665, -0.04557580128312111, -0.015692079439759254, + 0.00513040367513895, -0.023553749546408653, 0.04019923135638237, -0.011894096620380878, + -0.025569962337613106, 0.016082819551229477, 0.008299297653138638, 0.027914397418498993, + 0.003952325321733952, -0.016145337373018265, -0.001206406857818365, 0.002838719170540571, + -0.026195146143436432, 0.007064561825245619, -0.00826022308319807, -0.009557477198541164, + -0.020459096878767014, -0.009698143228888512, -0.04798275604844093, 0.0022994992323219776, + 0.012050392106175423, -0.0047240350395441055, 0.009846623986959457, -0.025585591793060303, + 0.014105679467320442, 0.025101076811552048, -0.008705666288733482, -0.03000875934958458, + -0.06273706257343292, 0.019177472218871117, 0.014301048591732979, 0.01294909231364727, + -0.0007145640556700528, -0.0023190362844616175, -0.002276055049151182, -0.01449641864746809, + -0.007045025005936623, -0.00894792377948761, 0.02058413252234459, -0.035197772085666656, + 0.013019424863159657, -0.007326357066631317, -0.0009524264023639262, -0.010885990224778652, + 0.0047552939504384995, 0.007111450657248497, -0.0030575329437851906, -0.0049194046296179295, + -0.01703622192144394, -0.011323617771267891, -0.0021725089754909277, 0.0021920460276305676, + -0.020912352949380875, -0.007045025005936623, -0.0044075362384319305, -0.043418921530246735, + -0.010979766957461834, -0.0034189666621387005, 0.04141834005713463, 0.042606186121702194, + 0.002805506344884634, 0.011339247226715088, -0.002041611587628722, 0.015020009130239487, + -0.0013627024600282311, -0.027836250141263008, 0.013410164043307304, -0.010323325172066689, + -0.04085567593574524, 0.04826408624649048, -0.0380110926926136, -0.03232193365693092, + 0.005822011735290289, 0.028805281966924667, -0.019068066030740738, -0.010596842505037785, + -0.004927219357341528, 0.0030966070480644703, -0.0026023220270872116, -0.016895556822419167, + -0.02803943306207657, 0.0029500797390937805, 0.0006574184517376125, -0.010299880988895893, + -0.026335811242461205, -0.0046302578411996365, 0.022850418463349342, -0.027898767963051796, + 0.0005484999273903668, -0.01176124531775713, 0.015074712224304676, -0.03654191642999649, + 0.010096697136759758, -0.015676449984312057, -0.021756349131464958, -0.019583841785788536, + -0.030805867165327072, 0.015965597704052925, -0.012769351713359356, 0.02732047438621521, + -0.010417102836072445, 0.001020805793814361, -0.011839393526315689, 0.018208440393209457, + 0.008299297653138638, -0.004513035994023085, 0.004348925780504942, -0.009416811168193817, + -0.0044505177065730095, -0.0263514406979084, -0.005720419809222221, -0.019802654162049294, + 0.004583369009196758, -0.030071277171373367, 0.012128540314733982, 0.03979286551475525, + 0.0023815545719116926, -0.0018169365357607603, -0.004309851676225662, 0.028101952746510506, + -0.012628685683012009, 0.019677618518471718, -0.017817700281739235, -0.004997552372515202, + 0.006544879171997309, 0.0024362578988075256, 0.02655462548136711, 0.012128540314733982, + 0.013199164532124996, -0.00624791719019413, 0.008580629713833332, 0.005204644054174423, + 0.00722085777670145, 0.03116534650325775, 0.0261013675481081, 0.007189598400145769, + -0.013472681865096092, -0.028570838272571564, 0.02352249063551426, -0.02478848583996296, + -0.011487727984786034, 0.020365318283438683, 0.01891176961362362, 0.004415351431816816, + -0.001217152108438313, -0.019583841785788536, -0.006251824554055929, -0.03863627836108208, + -0.007463115733116865, 0.031149717047810555, 0.021256204694509506, 0.01961510069668293, + 0.00021441804710775614, 9.365526784677058e-5, 0.002531989011913538, -0.05782938003540039, + 0.03898012638092041, 0.0015062990132719278, 0.02185012772679329, 0.0018247513798996806, + 0.016739260405302048, 0.006455008871853352, 0.03669821098446846, -0.01803651452064514, + -0.0007941771182231605, 0.01866169646382332, -0.03676072880625725, 0.01738007180392742, + -0.020099615678191185, -0.014308864250779152, 0.005978307221084833, 0.048639196902513504, + -0.042543668299913406, 0.02352249063551426, -0.013519571162760258, 0.014668343588709831, + -0.02417893148958683, 0.016911186277866364, -0.015410748310387135, -0.010299880988895893, + -0.02185012772679329, -0.00017668731743469834, 0.012034762650728226, 0.009995104745030403, + -0.01262087095528841, 0.008697851561009884, 0.0334472618997097, -0.014129123650491238, + 0.02114679664373398, -0.02488226257264614, -0.0023874156177043915, 0.007646763231605291, + 0.008650962263345718, -0.005501605570316315, 0.019443174824118614, -0.012097280472517014, + -0.001388100441545248, -0.00271758995950222, -0.021412499248981476, -0.017520738765597343, + 0.011620579287409782, 0.010878174565732479, 0.02033405937254429, -0.0009714749758131802, + 0.014160382561385632, 0.04144959896802902, 0.0100107342004776, -0.06008003652095795, + -0.004802182782441378, 0.024288339540362358, 0.002508544595912099, -0.03882383182644844, + -0.01830221712589264, -0.012589612044394016, -0.0024499339051544666, 0.009377737529575825, + 0.003200152888894081, -0.004579461645334959, 0.011972243897616863, 0.011300173588097095, + 0.009252700954675674, -0.0022447959054261446, -0.02453841269016266, -0.005923604127019644, + -0.033322226256132126, 0.011487727984786034, -0.022975455969572067, -0.00034629247966222465, + -0.0506710410118103, 0.010167029686272144, -0.007236487232148647, -0.020115245133638382, + 0.026898475363850594, -0.004430980887264013, 0.017661405727267265, -0.01803651452064514, + 0.02038094773888588, -0.03610428795218468, -0.023491231724619865, -0.03744842857122421, + 0.021006131544709206, -0.017145629972219467, 0.03622932359576225, 0.01789584755897522, + 0.013902495615184307, -0.013167905621230602, 0.025585591793060303, -0.006115065887570381, + -0.021834498271346092, -0.007338079158216715, 0.009252700954675674, 0.0200214684009552, + -0.0007277514669112861, 0.023991378024220467, -0.026992253959178925, 0.00815863162279129, + 0.009721587412059307, 0.0017348813125863671, 0.015942152589559555, -0.012894388288259506, + -0.023491231724619865, 0.007607689127326012, 0.031087199226021767, -0.028305135667324066, + -0.010487436316907406, -0.011644023470580578, 0.03111845813691616, -7.497305341530591e-5, + -0.005458624567836523, 0.0016938537592068315, -0.0017329276306554675, 0.015301341190934181, + 0.0066777304746210575, 0.04182470589876175, -0.0007165177376009524, -0.027382992208003998, + 0.006681637838482857, 0.05510983616113663, -0.020396579056978226, 0.004204351920634508, + 0.05104614794254303, 0.03357229754328728, 0.04345018044114113, 0.01631726324558258, + -0.022319015115499496, -0.008799443021416664, -0.02447589300572872, -0.01574678346514702, + 0.0105186952278018, -0.011433024890720844, 0.009244886226952076, -0.0021490647923201323, + 0.04029301181435585, -0.005571938585489988, -0.029993129894137383, -0.00509523693472147, + 0.02503855712711811, -0.010784397833049297, -0.020912352949380875, 0.007537356112152338, + -0.006599582266062498, -0.02772684209048748, 0.012183243408799171, -0.0023014529142528772, + -0.015848375856876373, 0.0005020996904931962, -0.01652044616639614, -0.03107156977057457, + 0.027851879596710205, -0.032165639102458954, -0.003962093964219093, 0.012714648619294167, + 0.0042551481164991856, 0.0003211386501789093, -0.00015214401355478913, 0.04413788393139839, + -0.012613056227564812, 0.013269498012959957, -0.005228088237345219, 7.546148117398843e-5, + 0.015926523134112358, 0.03385363146662712, -0.025663740932941437, -0.00761550385504961, + 0.019708877429366112, -0.02910224348306656, -0.0002392055612290278, -0.015035638585686684, + -0.014590196311473846, -0.01692681573331356, 0.013066313229501247, 0.0035107904113829136, + -0.014082235284149647, -0.011550245806574821, -0.010120141319930553, -0.022272124886512756, + -0.014762121252715588, 0.02306923270225525, -0.022115830332040787, -0.013191349804401398, + 0.024913521483540535, 0.009135479107499123, 0.019193101674318314, 0.019990209490060806, + -0.0008376468322239816, 0.016286002472043037, -0.009362107142806053, -0.00650189770385623, + 0.00603301078081131, -0.02874276414513588, 0.057454269379377365, -0.03554162383079529, + 0.018317846581339836, -0.04532572999596596, -0.007064561825245619, 0.0062088435515761375, + 0.03797983378171921, 0.0010032225400209427, 0.014019716531038284, -0.013496126979589462, + -0.016457928344607353, 0.05629768222570419, -0.013582088984549046, -0.01742696203291416, + 0.0020357503090053797, 0.013714940287172794, 0.008494666777551174, 0.023350564762949944, + -0.02767995372414589, 0.008017965592443943, -0.02031842991709709, -0.013292942196130753, + -0.003245087806135416, -0.002002537716180086, 0.03638561815023422, -0.0026316274888813496, + -0.0005362893571145833, 0.05620390549302101, 0.02417893148958683, 0.009096404537558556, + -0.008432148955762386, -0.030743347480893135, 0.03097779117524624, 0.016958074644207954, + 0.03416622057557106, 0.03541658818721771, 0.044981878250837326, 0.011495542712509632, + -0.0025026835501194, 0.03704206272959709, -0.00727556087076664, -0.03732339292764664, + -0.01814592070877552, 0.02828950621187687, 0.02291293814778328, -0.0016733399825170636, + 0.01911495439708233, -0.007142709568142891, 0.020568503066897392, 0.011862837709486485, + 0.015152860432863235, -0.00453648017719388, 0.012714648619294167, 0.024038266390562057, + 0.04960823059082031, -0.009854438714683056, 0.04238737002015114, 0.003885899903252721, + 0.023663155734539032, -0.009698143228888512, 0.014660528860986233, -0.018833622336387634, + 0.0006095528951846063, -0.029258539900183678, -0.001519974903203547, 0.01269901916384697, + 0.013316386379301548, 0.00038268003845587373, 0.0015336507931351662, 0.005677438341081142, + 0.025585591793060303, -0.008807257749140263, -0.04210603982210159, -0.012784981168806553, + -0.04776393994688988, 0.015903079882264137, -0.0011946846498176455, 0.0005992960068397224, + -0.005794660188257694, 0.012628685683012009, -0.010487436316907406, 0.009877882897853851, + 0.00024238030891865492, -0.028352025896310806, 0.003985538147389889, 0.02575751766562462, + -0.03127475455403328, 0.03563540056347847, -0.03594799339771271, 0.001749534043483436, + -0.016035931184887886, -0.02655462548136711, -0.013730569742619991, 0.007068469189107418, + 0.041137006133794785, 0.007021580822765827, 0.0020064450800418854, 0.008572814986109734, + -0.0030477645341306925, -0.003143495647236705, -0.027351733297109604, 0.0021588332019746304, + -0.002828950760886073, 0.0273673627525568, 0.011964429169893265, 0.009940401650965214, + 0.01814592070877552, -0.0015404886798933148, -0.023288046941161156, 0.02280353009700775, + 0.004513035994023085, 0.03898012638092041, -0.008354000747203827, -0.011870652437210083, + -0.0068301185965538025, 0.023835081607103348, -0.009299589321017265, -0.024976039305329323, + -0.0020650557707995176, -0.023131752386689186, -0.040730636566877365, 0.05379695072770119, + 0.003807751927524805, -0.030024388805031776, -0.027336103841662407, -0.023647526279091835, + 0.018208440393209457, 0.022381532937288284, -0.007017673458904028, 0.026882845908403397, + -0.006783229764550924, -0.005161662586033344, -0.01498093456029892, -0.03607302904129028, + 0.039917901158332825, 0.013621163554489613, -0.01223794650286436, -0.020771687850356102, + -0.0038057982455939054, 0.002893422730267048, -0.011855022981762886, -0.028305135667324066, + -0.019536951556801796, -0.014199457131326199, -0.0349789597094059, -0.021053019911050797, + -0.03061831183731556, 0.006892636884003878, -0.03882383182644844, 0.010143585503101349, + -0.028602097183465958, 0.03572917729616165, -0.008346186019480228, -0.029696166515350342, + -0.007982798852026463, 0.030071277171373367, 0.014637084677815437, 0.01697370409965515, + ], + index: 79, + }, + { + title: "Hardtack (game)", + text: "Hardtack is a set of rules for American Civil War miniature wargaming by Lou Zocchi. It was published as a thirty-page pamphlet by Guidon Games in 1971, with an introduction by Gary Gygax and artwork by Don Lowry. Hardtack was the first set of American Civil War rules published in the United States and had an early following.", + vector: [ + -0.01987696997821331, -0.048177510499954224, -0.03492619842290878, 0.007129239849746227, + -0.02134193852543831, -0.005335484631359577, 0.00368323246948421, 0.0022453151177614927, + -0.0007616175571456552, 0.05267230421304703, 0.034360188990831375, 0.036324579268693924, + 0.029033027589321136, 0.023705866187810898, -0.0160647202283144, -0.03136365860700607, + -0.006846234202384949, 0.026719041168689728, -0.027734531089663506, -0.04225104674696922, + 0.1127360463142395, 0.019960206001996994, 0.008931318297982216, 0.027068637311458588, + 0.042384225875139236, 0.0035105159040540457, 0.007861724123358727, -0.019011305645108223, + 0.006030512508004904, -0.0106210270896554, -0.007711898069828749, 0.019460784271359444, + 0.02725175768136978, 0.004086931236088276, 0.051740050315856934, -0.012410620227456093, + 0.004365774802863598, 0.04488133266568184, 0.0036020763218402863, -0.018112346529960632, + 0.021491764113307, -0.019643906503915787, -0.01937754824757576, 0.022823555395007133, + -0.0009899988071992993, 0.00022408930817618966, -0.056501202285289764, 0.0037976831663399935, + -0.014042063616216183, -0.0008089585462585092, 0.03133036568760872, -0.022906791418790817, + 0.03715694695711136, 0.01802911050617695, 0.031446896493434906, -0.006679760292172432, + 0.060163624584674835, 0.07011875510215759, -0.02194124460220337, -0.013825647532939911, + -0.03292851522564888, -0.027434879913926125, 0.025420546531677246, -0.03912133723497391, + 0.011278598569333553, -0.022723671048879623, 0.01245223917067051, 0.08423573523759842, + 0.013692468404769897, -0.00603467458859086, -0.003479301929473877, 0.01166981179267168, + -0.01726333051919937, 0.031097302213311195, 0.03892156854271889, -0.043849192559719086, + 0.03432689234614372, -0.003479301929473877, -0.01766286790370941, 0.004715370014309883, + -0.023372918367385864, -0.000756415247451514, -0.040086887776851654, 0.027684589847922325, + -0.031247127801179886, -0.019061248749494553, 0.044947922229766846, -0.047511618584394455, + -0.01569015346467495, 0.006521610543131828, 0.001993523444980383, 0.02680227905511856, + -0.007333170156925917, -0.016780557110905647, 0.0015117899747565389, 0.028084127232432365, + -0.011361835524439812, -0.004009937401860952, 0.019860321655869484, 0.0018301710952073336, + -0.005564386025071144, -0.005730859935283661, 0.01576506718993187, -0.06072963401675224, + -0.03675740957260132, -0.036624230444431305, -0.04521428048610687, 0.03026493266224861, + 0.007029355503618717, 0.008240452036261559, -0.004461497534066439, 0.007345655467361212, + 0.024638120085000992, -0.05809934809803963, -0.059863969683647156, -0.0011060101678594947, + 0.006983574945479631, -0.026086442172527313, -0.005322999320924282, -0.006296870764344931, + -0.050075314939022064, 0.031446896493434906, 0.020542863756418228, -0.0356253907084465, + -0.0014191889204084873, -0.015473738312721252, -0.045414045453071594, 0.016855470836162567, + -0.03324481472373009, -0.004109821282327175, -0.01144507247954607, 0.0029736380092799664, + 0.05959761515259743, 0.0037851976230740547, 0.027218462899327278, 0.013925531879067421, + 0.00710426876321435, -0.025187483057379723, -0.0019321363652125, 0.020393038168549538, + 0.007766001857817173, 0.028849905356764793, -0.003075603162869811, -0.024538235738873482, + -0.01287674717605114, -0.002228667726740241, -0.013267960399389267, -0.017912577837705612, + -0.004902652930468321, 0.0118695804849267, -0.03892156854271889, 0.03073105961084366, + 0.004311671014875174, 0.02796759456396103, -0.009305884130299091, 0.0027759503573179245, + -0.04974236711859703, 0.03469313681125641, 0.015049229376018047, 0.05120733380317688, + 0.014175242744386196, 0.039987001568078995, 0.010604379698634148, 0.039487581700086594, + 0.03222932294011116, 0.0356253907084465, 0.018511883914470673, 0.05526929348707199, + 0.010479524731636047, -0.003052712883800268, 0.011619869619607925, 0.005231438670307398, + 0.028700079768896103, 0.018645063042640686, 0.012335707433521748, 0.03181314095854759, + 0.03519255667924881, 0.023223092779517174, 0.05773310735821724, -0.036224693059921265, + -0.020459627732634544, 0.0004307508934289217, 0.05030837655067444, -0.005909819155931473, + -0.005164849106222391, -0.0023888987489044666, -0.006163691636174917, 0.016772232949733734, + -0.0048901671543717384, -0.044947922229766846, -0.08137238025665283, -0.0026635804679244757, + -0.062327783554792404, 0.01766286790370941, -0.03992041200399399, -0.011986112222075462, + -0.03719024360179901, -0.04378260299563408, -0.002832135185599327, 0.02916620671749115, + -0.015856627374887466, 0.05280548334121704, 0.04521428048610687, -0.009747039526700974, + 0.015315587632358074, 0.024288523942232132, 0.0296656284481287, 0.005543577019125223, + 0.04025335982441902, 0.0006991898990236223, 0.0065132868476212025, 5.6575074268039316e-5, + -0.009880218654870987, -0.0024513264652341604, -0.028000889346003532, 0.010571084916591644, + 0.04481474310159683, 0.00886472873389721, 0.03226261958479881, 0.03539232537150383, + 0.03635787218809128, -0.023422861471772194, -0.04867693409323692, -0.017862636595964432, + 0.0070335171185433865, 0.006217795889824629, -0.011278598569333553, -0.03808920085430145, + -0.03232920914888382, -0.030947476625442505, 0.018461942672729492, -0.03339464217424393, + -0.007840914651751518, -0.026519272476434708, -0.004034908022731543, -0.018545178696513176, + -0.004390745889395475, 0.007437216117978096, 0.010562761686742306, 0.01525732222944498, + -0.01082079578191042, 0.03207949921488762, -0.03136365860700607, 0.0047112079337239265, + -0.023206444457173347, 0.03133036568760872, -0.006667274981737137, -0.048610344529151917, + -0.01362587884068489, -0.049775660037994385, 0.01726333051919937, -0.012585417367517948, + 0.0612623505294323, 0.034759726375341415, -0.024538235738873482, -0.028550254181027412, + 0.0653243139386177, -0.009214323945343494, 0.05104086175560951, -0.016206221655011177, + -0.03093082830309868, 0.005052479449659586, -0.035558801144361496, -0.025919968262314796, + -0.05470328405499458, -0.009680449962615967, -0.037523191422224045, -0.04488133266568184, + -0.026785630732774734, 0.043349772691726685, 0.02545384131371975, -0.03825567290186882, + -0.029249442741274834, 0.015731772407889366, -0.020293153822422028, -0.012726920656859875, + -0.002378494245931506, 0.04914306104183197, -0.022856850177049637, -0.016580788418650627, + -0.021724827587604523, -0.018994659185409546, 0.0761118158698082, -0.010854090563952923, + -0.051973115652799606, 0.015498708933591843, -0.019593963399529457, -0.023156503215432167, + 0.014283450320363045, -0.02886655367910862, 0.01072091143578291, 0.03469313681125641, + 0.044348616153001785, 0.010229813866317272, 0.018961364403367043, 0.005726697854697704, + 0.016697321087121964, -0.014641368761658669, 0.02615303173661232, -0.017912577837705612, + 0.001269362517632544, 0.002426355378702283, -0.05646790564060211, -0.00936415046453476, + -0.036024924367666245, -0.0043824221938848495, -0.0021537544671446085, 0.028383780270814896, + -0.040086887776851654, -0.07438048720359802, 0.0042325956746935844, -0.03201290965080261, + -0.019610611721873283, 0.023173149675130844, -0.007607851643115282, -0.04970907047390938, + 0.05407068505883217, 0.009921837598085403, -0.00849432498216629, -0.029232796281576157, + 0.021974539384245872, -0.06249425560235977, -0.03449336811900139, -0.01782934181392193, + 0.05616825446486473, 0.0009130046237260103, 0.03409383073449135, 0.010362992994487286, + 0.0015336397336795926, 0.0010810390813276172, -0.016697321087121964, -0.02735164202749729, + 0.0025054304860532284, -0.02585337869822979, -0.016073044389486313, 0.0058723627589643, + 0.012984954752027988, -0.008773168548941612, 0.05417056754231453, 0.004374098498374224, + 0.018961364403367043, 0.05596848577260971, 0.020609453320503235, 0.05460340157151222, + 0.013184723444283009, -0.030148401856422424, -0.016247840598225594, 0.04764479771256447, + -0.01912783645093441, -0.009439063258469105, 0.000940576836001128, 0.03868850693106651, + -0.0031505161896348, 0.01154495682567358, 0.00926426611840725, 0.02363927662372589, + 0.02259049192070961, -0.031946320086717606, 0.02299002930521965, 0.040586307644844055, + 0.014175242744386196, -0.07751019299030304, -0.011411777697503567, 0.03669082000851631, + -0.010304726660251617, -0.007162534631788731, -0.0009546231012791395, -0.04934282973408699, + -0.0038705153856426477, -0.011112124659121037, 0.0013838133309036493, 0.004478144459426403, + -0.03354446589946747, 0.013992121443152428, 0.031213833019137383, -0.012751891277730465, + 0.01942748948931694, -0.03912133723497391, -0.06898673623800278, -0.01857847347855568, + 0.00787004828453064, -0.01114541944116354, 0.02299002930521965, 0.011270275339484215, + 0.020492922514677048, 0.007724383380264044, -0.0008448544540442526, -0.0029965280555188656, + 0.031746551394462585, -0.021508412435650826, 0.009838600642979145, 0.03945428505539894, + -0.06911991536617279, 0.06189495325088501, 0.03031487576663494, -0.03848873823881149, + 0.030448054894804955, 0.008939642459154129, 0.007437216117978096, -0.0072041526436805725, + 0.015507033094763756, 0.010013397783041, 0.003941266797482967, 0.018295468762516975, + -0.0005654906271956861, 0.041185613721609116, 0.020060090348124504, -0.013575936667621136, + -0.03975393995642662, -0.012868423014879227, 0.03314492851495743, 0.011519985273480415, + -6.684962863801047e-5, 0.019044600427150726, 0.025137539952993393, 0.016822176054120064, + -0.06306026875972748, 0.02343950793147087, -0.043649423867464066, -0.009796981699764729, + -0.00789501890540123, -0.02740158513188362, -0.015107495710253716, -0.0274515263736248, + -0.004798606503754854, -0.048976585268974304, 0.015973160043358803, -0.014225184917449951, + 0.01792922616004944, -8.047316555348516e-7, 0.07251597940921783, -0.03818908706307411, + -0.01608969084918499, 0.018045756965875626, -0.0016688996693119407, -0.0691865012049675, + -0.01766286790370941, 0.04934282973408699, 0.013858942314982414, 0.016930382698774338, + 0.026785630732774734, -0.045813582837581635, 0.022956734523177147, -0.028650138527154922, + -0.01721338927745819, 0.015656858682632446, -0.07751019299030304, 0.01413362380117178, + 0.07358141243457794, -0.005909819155931473, -0.03083094395697117, -0.024721356108784676, + -0.022673729807138443, -0.00038939257501624525, 0.056900739669799805, -0.011519985273480415, + -0.03895486518740654, -0.006871205288916826, 0.0023119046818464994, -0.014166918583214283, + -0.012385649606585503, 0.02303997054696083, 0.03798931837081909, -0.0022390722297132015, + 0.03103071264922619, 0.002692713402211666, 0.0019727142062038183, 0.03279533609747887, + -0.02525407262146473, -0.02911626361310482, -0.0336277037858963, -0.06522442400455475, + -0.05297195538878441, 0.009622184559702873, 0.014125300571322441, -0.015373853966593742, + -0.022307487204670906, -0.0029195339884608984, -0.031247127801179886, -0.04125220328569412, + 0.027834415435791016, -0.0013723681913688779, -0.006829586811363697, 0.03307833895087242, + 0.011178714223206043, -0.04131879284977913, 0.00039979719440452754, -0.010121606290340424, + 0.03379417583346367, 0.033111635595560074, -0.003920457325875759, 0.007054326590150595, + 0.04904317483305931, -0.009455710649490356, -0.01112044882029295, 0.031197186559438705, + 0.014616398140788078, 0.02209107019007206, -0.022573845461010933, 0.007907504215836525, + 0.0010222530690953135, 0.02219095453619957, 0.048377279192209244, 0.055901896208524704, + 0.029782159253954887, 0.03675740957260132, 0.023822398856282234, 0.0928923711180687, + 0.011353511363267899, 0.0045031155459582806, 0.022657081484794617, -0.004049474839121103, + 0.0036894751247018576, 0.0053105135448277, 0.028500311076641083, -0.006983574945479631, + -0.000569652474950999, -0.0061845011077821255, 0.0037519028410315514, -0.009730392135679722, + -0.025969909504055977, -0.013409462757408619, -0.0311305969953537, 0.010204842314124107, + 0.02680227905511856, -0.0003038146533071995, 0.027434879913926125, 0.011802990920841694, + 0.04478144645690918, -0.028034184128046036, 0.02299002930521965, 0.006371784023940563, + 0.01992691121995449, -0.0052480860613286495, -0.018162289634346962, 0.03739001229405403, + -0.009414092637598515, 0.009905190207064152, -0.009314208291471004, -0.01352599449455738, + -0.025986557826399803, -0.015723448246717453, -0.005256409756839275, 0.012543799355626106, + -0.029832102358341217, -0.005963923409581184, -0.024787945672869682, 0.024371761828660965, + -0.008889700286090374, 0.007054326590150595, 0.019943559542298317, 0.01673893816769123, + -0.012568769976496696, -0.01144507247954607, -0.0004146237624809146, 0.005539414938539267, + 0.01413362380117178, 0.01736321486532688, 0.026236267760396004, 0.006113749463111162, + 0.04261728748679161, 0.028983084484934807, 0.014583103358745575, -0.010804148390889168, + -0.008806463330984116, 0.016922060400247574, 0.03267880156636238, 0.021508412435650826, + 0.03103071264922619, 0.02801753766834736, 0.03509267419576645, 0.06109587848186493, + 0.028034184128046036, 0.031596723943948746, 0.021092228591442108, 0.028933143243193626, + -0.07651134580373764, -0.01706356182694435, 0.03758978098630905, 0.028150716796517372, + 0.006658951286226511, -0.012726920656859875, -0.045513931661844254, -0.009114439599215984, + -0.03066447004675865, 0.030497996136546135, -0.0038830009289085865, -0.020143328234553337, + -0.002794678555801511, -0.018262173980474472, -0.014882756397128105, 0.03036481700837612, + -0.027934299781918526, 0.020592806860804558, 0.0012350273318588734, 0.03224597126245499, + -0.0075329383835196495, -0.01671396754682064, 0.023223092779517174, -0.03063117526471615, + 0.015032581984996796, -0.01797916740179062, 0.036823999136686325, 0.02570355124771595, + -0.027901004999876022, -0.004873519763350487, 0.031546782702207565, 0.008190509863197803, + 0.02189130149781704, -0.02996527962386608, 0.02413869835436344, 0.018245525658130646, + 0.028184011578559875, 0.016530847176909447, -0.034859608858823776, -0.03695717826485634, + 0.005784963723272085, -0.029382621869444847, 0.006933632772415876, 0.000753814063500613, + 0.056201547384262085, -0.014899403788149357, 0.027434879913926125, 0.0010399408638477325, + 0.012244146317243576, -0.009663802571594715, -0.031996261328458786, 0.0005389588768593967, + -0.007607851643115282, -0.02655256725847721, 0.015623563900589943, -0.0036457758396863937, + -0.03053129091858864, -0.00742889242246747, 0.040686190128326416, 0.02042633295059204, + 0.023472802713513374, 0.009763686917722225, 0.0035812673158943653, -0.043349772691726685, + 0.02279026061296463, 0.03472642973065376, 0.01495766919106245, 0.009946808218955994, + -0.017080210149288177, -0.005751668941229582, 0.05646790564060211, -0.030681118369102478, + 0.022707022726535797, 0.04175162315368652, 0.011461719870567322, -0.002268205164000392, + 0.04568040370941162, 0.009597213007509708, 0.008889700286090374, 0.015981482341885567, + -0.01668899692595005, 0.01982702687382698, -0.011802990920841694, -0.004915138240903616, + -0.027368290349841118, -0.046213120222091675, -0.006708893459290266, 0.02333962358534336, + 0.03798931837081909, -0.03609151393175125, -0.00875652115792036, 0.00027572221006266773, + 0.00855675246566534, -0.024987714365124702, -0.022723671048879623, 0.020060090348124504, + -0.018212230876088142, 0.01897801086306572, 0.047012194991111755, -0.01164484117180109, + -0.019410843029618263, 0.013983797281980515, -0.04168503358960152, -0.04111902415752411, + 0.011719753965735435, -0.029149558395147324, 0.009014555253088474, -0.008290394209325314, + -0.02204112894833088, -0.025287367403507233, -0.00042216709698550403, 0.011378482915461063, + 0.021708181127905846, 0.003433521604165435, 0.021158818155527115, 0.033710941672325134, + -0.013659173622727394, 0.047112081199884415, -0.029282737523317337, -0.013867265544831753, + -0.0031713254284113646, -0.04211786761879921, -0.024371761828660965, 0.02530401386320591, + -0.028533605858683586, 0.05789957940578461, 0.02037638984620571, -0.02525407262146473, + 0.014250155538320541, 0.0036083192098885775, -0.014083681628108025, -0.031097302213311195, + 0.010770853608846664, 4.1325816710013896e-5, -0.011278598569333553, 0.03083094395697117, + 0.04684572294354439, -0.028283895924687386, -0.004798606503754854, 0.026469331234693527, + -0.004553057719022036, -0.02545384131371975, -0.00833201315253973, 0.004076526500284672, + -0.029049674049019814, 0.015881597995758057, 0.023705866187810898, 0.0011184957111254334, + -0.00700438441708684, 0.024688061326742172, 0.012543799355626106, -0.022473961114883423, + -0.012926689349114895, -0.0026365285739302635, 0.00936415046453476, -0.013667497783899307, + -0.033411286771297455, 0.0005909819155931473, 0.021108875051140785, -0.017696162685751915, + 0.013417786918580532, -0.009272589348256588, 0.0066839223727583885, 0.02338956668972969, + 0.03352781757712364, 0.030098458752036095, -0.00991351343691349, -0.031097302213311195, + 0.006817101500928402, -0.009339178912341595, -0.011278598569333553, 0.05147369205951691, + 0.02550378255546093, -0.003858029842376709, -0.0002983522426802665, -0.013051544316112995, + 0.0175629835575819, -0.016747262328863144, -0.03209614381194115, -0.008211319334805012, + 0.013417786918580532, -0.004511439241468906, 0.004598838277161121, -0.01626448892056942, + -0.008606694638729095, 0.021724827587604523, -0.03962076082825661, 0.006929471157491207, + 0.02460482530295849, -0.0025408060755580664, -0.019544022157788277, 0.03888827562332153, + 0.0034231171011924744, 0.0054395305924117565, -0.008606694638729095, 0.04045312851667404, + 0.004461497534066439, -0.038388852030038834, -0.013168076053261757, 0.008123920299112797, + 0.04288364574313164, -0.015307264402508736, -0.0160647202283144, -0.041185613721609116, + -0.006775483023375273, 0.0259532630443573, -0.008548428304493427, -0.02032644860446453, + 0.03394400328397751, -0.024205287918448448, -0.027218462899327278, 0.020492922514677048, + -0.005876524373888969, 0.003335718298330903, 0.002426355378702283, 0.03449336811900139, + -0.015482061542570591, 0.021375233307480812, 0.0469789020717144, 0.011961140669882298, + -0.017279978841543198, -0.009605537168681622, 0.004786121193319559, 0.01736321486532688, + 0.04208457097411156, 0.00583490589633584, 0.034759726375341415, 0.017529688775539398, + 0.041385382413864136, -0.028500311076641083, -0.03868850693106651, 0.01505755353718996, + -0.021758122369647026, 0.04944271221756935, 0.04115231707692146, 0.07784313708543777, + 0.033910710364580154, 0.0030631176196038723, -0.042750466614961624, 0.014025416225194931, + 0.013109810650348663, 0.0005259530735202134, 0.06003044545650482, 0.012835128232836723, + -0.04111902415752411, 0.013867265544831753, 0.010953974910080433, 0.01393385510891676, + 0.025986557826399803, 0.01591489277780056, 0.027268406003713608, -0.015232350677251816, + 0.01673893816769123, -0.03975393995642662, -0.017746105790138245, -0.015507033094763756, + -0.01671396754682064, -0.050175197422504425, -0.0656905546784401, 0.0351259671151638, + -0.0017282059416174889, 0.034060534089803696, 0.022973380982875824, 0.03925451636314392, + -0.019111189991235733, -0.03482631593942642, 0.02094240114092827, -0.0037935213185846806, + -0.022457312792539597, -0.00700438441708684, -0.0009723108960315585, -0.011228656396269798, + -0.06492477655410767, 0.01967720128595829, 0.04588017240166664, 0.05243924260139465, + 0.03344458341598511, 0.004018261097371578, -0.001642888062633574, 0.016772232949733734, + -0.01591489277780056, 0.05410397797822952, -0.01526564545929432, -0.012061025016009808, + 0.028899848461151123, 0.0006102304323576391, 0.01666402630507946, 0.01776275224983692, + 0.02132529206573963, -0.021525058895349503, 0.0014150271890684962, -0.022623786702752113, + 0.059064898639917374, 0.015615240670740604, -0.040586307644844055, -0.012552122585475445, + 0.014674663543701172, -0.0065840380266308784, -0.04121890664100647, -0.00011861256643896922, + -0.019893616437911987, -0.01092068012803793, 0.0022349106147885323, 0.04131879284977913, + -0.016497552394866943, -0.008598370477557182, -0.032412443310022354, 0.005289704538881779, + 0.011112124659121037, -0.03595833480358124, 0.03133036568760872, 0.04441520571708679, + -0.0030672794673591852, 0.03852203115820885, -0.016580788418650627, 0.005314675625413656, + 0.002332713920623064, -0.006063807290047407, 0.03675740957260132, 0.022457312792539597, + -0.016147956252098083, 0.0031775683164596558, -0.019993500784039497, 0.03429359942674637, + 0.012718596495687962, 0.035259146243333817, 0.002619881182909012, 0.04111902415752411, + 0.03479301929473877, 0.022207602858543396, 0.00603883620351553, 0.027035342529416084, + 0.05706721171736717, -0.03118053823709488, -0.005277218762785196, 0.0375564843416214, + -0.014624721370637417, -0.0005582073936238885, -0.024704709649086, 0.00504415575414896, + -0.004061960149556398, -0.014866109006106853, 0.01473292987793684, 0.038222379982471466, + -0.02343950793147087, 0.012011082842946053, -0.04894329234957695, -0.007129239849746227, + 0.010296403430402279, -0.00020588123879861087, -0.011236980557441711, -0.024122050032019615, + 0.028983084484934807, -0.002007049508392811, -0.002746817423030734, -0.019593963399529457, + -0.01124530378729105, 0.008947965689003468, -0.04950930178165436, 0.005064964760094881, + -0.01668899692595005, -0.04568040370941162, -0.013442757539451122, -0.06296038627624512, + -0.009763686917722225, -0.024171993136405945, 0.020209917798638344, 0.02154170721769333, + 0.017845990136265755, 0.00020210957154631615, 0.004415716975927353, -0.013059868477284908, + 0.01623951643705368, 0.006271899677813053, 0.026136383414268494, 0.01827882044017315, + -0.009821953251957893, -0.0038101687096059322, -0.038122497498989105, -0.022573845461010933, + 0.006729702465236187, -0.019360899925231934, -0.05476987361907959, 0.0032982616685330868, + -0.006463344674557447, 0.023522745817899704, -0.026619156822562218, 0.01528229285031557, + -0.023256387561559677, 0.0009223687811754644, 0.005839067976921797, -0.03377753123641014, + -0.01882818527519703, 0.040086887776851654, 0.005493634846061468, -0.01134518813341856, + -0.007999065332114697, 0.011902875266969204, -0.02445499785244465, 0.0018228879198431969, + -0.02072598598897457, 0.037623073905706406, 0.0018541017780080438, 0.03825567290186882, + -0.021358586847782135, 0.013034896925091743, -0.045347459614276886, -0.011678135953843594, + 0.0003272250178270042, 0.06845401972532272, -0.011311893351376057, 0.05596848577260971, + -0.01535720657557249, 0.02906632237136364, -0.026186326518654823, 0.027368290349841118, + -0.021674886345863342, -0.013143104501068592, 0.028650138527154922, 0.03429359942674637, + -0.010804148390889168, -0.017230035737156868, 0.016880441457033157, -0.04478144645690918, + 0.014616398140788078, 0.03695717826485634, -0.009114439599215984, 0.011486690491437912, + -0.03056458570063114, -0.01947743259370327, 0.00044401679770089686, 0.025670256465673447, + -0.0420512780547142, -0.04864363744854927, -0.02112552337348461, -0.011053859256207943, + 0.008244614116847515, -0.0021121359895914793, -0.008698254823684692, 0.010013397783041, + -0.013775705359876156, -0.0035146777518093586, -0.032046202570199966, 0.05230606347322464, + 0.010912355966866016, 0.04930953308939934, 0.0037914402782917023, -0.0058557153679430485, + -0.01972714252769947, 0.005485311150550842, -0.011403453536331654, -0.011678135953843594, + 0.01277686282992363, -0.016056396067142487, 0.02715187333524227, 0.03502608463168144, + -0.013351197354495525, 0.03649105131626129, -0.02941591665148735, 0.025969909504055977, + -0.009131086990237236, -0.015107495710253716, 0.005689241457730532, 0.0356253907084465, + -0.05350467190146446, -0.0043824221938848495, 0.022057775408029556, 0.028233952820301056, + -0.034559957683086395, -0.020209917798638344, 0.031396955251693726, 0.005655946675688028, + 0.04378260299563408, -0.0405530147254467, 0.007944961078464985, -0.010346345603466034, + 0.018312115222215652, -0.002746817423030734, 0.02114216983318329, 0.030497996136546135, + -0.012818480841815472, -0.025021009147167206, 0.009963455609977245, 0.0016043910291045904, + 0.018262173980474472, -0.028333837166428566, -0.021092228591442108, -0.03768966346979141, + -0.028000889346003532, 0.0055768718011677265, 0.005360455717891455, -0.048210807144641876, + -0.023972224444150925, -0.004777797497808933, -0.01656414195895195, 0.00762866111472249, + 0.0021912110969424248, -0.028650138527154922, -0.005759992636740208, 0.024005519226193428, + -0.01051281951367855, -0.05437033623456955, 0.03629128262400627, -0.0010956055484712124, + -0.04884340614080429, -0.01435836311429739, 0.018362058326601982, 0.010188194923102856, + -0.011236980557441711, -0.035725273191928864, 0.004411555361002684, 0.007845076732337475, + 0.013534318655729294, -0.017146799713373184, -0.014350039884448051, 0.005356294102966785, + 0.02082587033510208, -0.0259532630443573, -0.014882756397128105, -0.0076702795922756195, + 0.015007611364126205, 0.03715694695711136, -0.013159751892089844, 0.020992344245314598, + -0.015332235023379326, -0.026785630732774734, -0.06439206004142761, 0.0212420541793108, + -0.01987696997821331, 0.013575936667621136, 0.01611466147005558, -0.004923461936414242, + 0.008590047247707844, -0.028184011578559875, 0.01216923352330923, 0.014166918583214283, + -0.01270194910466671, 0.0023431184235960245, 0.028350485488772392, -0.018012462183833122, + 0.0004934386815875769, -0.029698923230171204, 0.009513976983726025, -0.013043221086263657, + 0.018095700070261955, -0.04994213581085205, -0.03935440257191658, -0.010030045174062252, + -0.010953974910080433, -0.020592806860804558, -0.0023160665296018124, -0.002386817941442132, + 0.003110978752374649, -0.02650262601673603, -0.029349327087402344, -0.019943559542298317, + -0.01736321486532688, 0.01912783645093441, 0.008773168548941612, 0.025087598711252213, + 0.014166918583214283, 0.020060090348124504, 0.029998574405908585, -0.013534318655729294, + -0.049276240170001984, 0.001562772667966783, 0.03299510478973389, 0.009572242386639118, + 0.006259414367377758, -0.02388898655772209, 0.00019664714636746794, 0.013684145174920559, + -0.002058032201603055, 0.017130151391029358, -0.03141360357403755, 0.011003917083144188, + 0.03459325060248375, 0.053637851029634476, -0.005901495460420847, -0.0173132736235857, + -0.0017479746602475643, 0.0073623028583824635, 0.007087621372193098, 0.020442979410290718, + 0.007025193423032761, 0.00971374474465847, 0.01802911050617695, 0.0004825138603337109, + 0.012344030663371086, 0.008352821692824364, 0.03685729578137398, -0.0721830278635025, + 0.0056975651532411575, 0.0013754896353930235, -0.015273969620466232, 0.004719531629234552, + 0.005339646711945534, 0.056601084768772125, 0.01144507247954607, 0.005352132022380829, + 0.03201290965080261, 0.016356049105525017, 0.021475117653608322, 0.007433054503053427, + 0.030081812292337418, -0.011403453536331654, 0.027801120653748512, -0.025337308645248413, + -0.016281135380268097, 0.024871183559298515, -0.003610400017350912, -0.0063551366329193115, + 0.004894329234957695, 0.035259146243333817, 0.015273969620466232, 0.01350102387368679, + 0.017479747533798218, -0.01370911579579115, -0.020343095064163208, 0.027734531089663506, + 0.010138253681361675, -0.005081612151116133, -0.021724827587604523, 0.01696367748081684, + 0.004765312187373638, 0.003115140600129962, -0.015124143101274967, 0.04185150936245918, + -0.03294515982270241, -0.0042825378477573395, -0.0030964124016463757, -0.01648922823369503, + 0.0154570909217, -0.001020172145217657, 0.0039724805392324924, -0.02670239470899105, + -0.01196946483105421, 0.0004913577577099204, -0.0003373695071786642, 0.004105659667402506, + -0.013967149890959263, -0.024471646174788475, -0.009214323945343494, 0.012160909362137318, + -0.026485977694392204, -0.013434434309601784, -0.016156280413269997, -0.02229083888232708, + -0.03046470135450363, -0.036923885345458984, 0.002084043575450778, 0.014766224659979343, + 0.00040890122181735933, 0.00017973965441342443, -0.04228433966636658, -0.003914214670658112, + 0.01726333051919937, -0.008889700286090374, 0.032412443310022354, 0.009014555253088474, + 0.009572242386639118, -0.022906791418790817, 0.014100329019129276, 0.03063117526471615, + 0.008386116474866867, 0.0009676288464106619, -0.01837870478630066, -0.04964248090982437, + -0.014258479699492455, -0.001665778225287795, -0.00411606440320611, -0.007058488205075264, + 0.009846923872828484, 0.038022611290216446, 0.0031838109716773033, -0.0010638715466484427, + -0.020409684628248215, -0.0016012697014957666, 0.021724827587604523, 0.02358933538198471, + -0.00787004828453064, 0.017046915367245674, 0.007295713294297457, 0.007745192851871252, + -0.022773612290620804, 0.0016179170925170183, -0.009039525873959064, 0.015049229376018047, + 0.020442979410290718, 0.05963090807199478, -0.01807905174791813, 0.012019407004117966, + -0.022274192422628403, -0.030348170548677444, 0.006417564116418362, 0.010204842314124107, + -0.001656414126046002, 0.031147243455052376, 0.016372695565223694, 0.005801611114293337, + 0.0017167608020827174, -0.011736401356756687, -0.020060090348124504, -0.019960206001996994, + -0.022407371550798416, -0.01603974960744381, -0.03675740957260132, -0.0042617288418114185, + -0.00722912373021245, -0.022823555395007133, 0.0010695940582081676, -0.01518240850418806, + -0.03729012608528137, 0.019943559542298317, -0.010604379698634148, -0.018212230876088142, + -0.00875652115792036, 0.018911421298980713, 0.005797449499368668, 0.005693403072655201, + 0.003206701250746846, 0.017646221444010735, 0.014200213365256786, 0.006467506289482117, + -0.029848748818039894, -0.016081366688013077, -0.051939819008111954, -0.005560224410146475, + -0.014691310934722424, 0.04881011322140694, -0.011028887704014778, 0.02996527962386608, + 0.013992121443152428, 0.03825567290186882, -0.02585337869822979, -0.025220777839422226, + -0.0010336980922147632, 0.01638934388756752, -0.001215258613228798, 0.01166981179267168, + 0.03565868362784386, -0.01581500843167305, -0.0259532630443573, 0.041185613721609116, + -0.008798139169812202, 0.004848548676818609, -0.02017662301659584, 0.010030045174062252, + -0.021874655038118362, 0.017579631879925728, -0.016430962830781937, -0.02122540771961212, + -0.027834415435791016, -0.01546541415154934, 0.023705866187810898, -0.001391096506267786, + -0.024205287918448448, 0.007274904288351536, 0.02986539527773857, -0.027018694207072258, + -0.017396509647369385, -0.02154170721769333, 0.015898246318101883, -0.009638831950724125, + -0.013900560326874256, 0.008298718370497227, -0.0002905487781390548, -0.001778148114681244, + 0.011703106574714184, -0.004873519763350487, -0.005468663759529591, 0.037822842597961426, + -0.021408528089523315, -0.019510727375745773, -0.04311670735478401, -0.01591489277780056, + 0.0020830032881349325, 0.013143104501068592, -0.0008667040965519845, 0.012135938741266727, + -0.018861480057239532, 0.005780802108347416, 0.01927766390144825, 0.010288079269230366, + -0.009655479341745377, 0.02801753766834736, -0.027950948104262352, -0.03469313681125641, + -0.025686904788017273, -0.007990741170942783, 0.014541484415531158, -0.02981545403599739, + 0.023572687059640884, 0.015581945888698101, -0.026868868619203568, -0.002426355378702283, + 0.006196986418217421, -0.0008370509603992105, 0.01390888448804617, -0.018095700070261955, + 0.00029653141973540187, 0.03695717826485634, 0.029232796281576157, 0.004756988491863012, + 0.0036624232307076454, -0.004719531629234552, 0.045813582837581635, 0.010055016726255417, + 0.032911866903305054, -0.02077592723071575, 0.01766286790370941, -0.010837443172931671, + 0.019410843029618263, -0.002053870353847742, 0.006067969370633364, -0.02159164845943451, + -0.019360899925231934, 0.030747707933187485, 0.006954442244023085, 0.038422148674726486, + 0.02017662301659584, 0.0017552579520270228, -0.022057775408029556, -0.0016449689865112305, + 0.013184723444283009, -0.005114906933158636, 0.005468663759529591, -0.02801753766834736, + -0.005676755681633949, 0.0009410970960743725, 0.011911199428141117, 0.014541484415531158, + 0.011561604216694832, 0.019593963399529457, 0.030747707933187485, -0.009705421514809132, + -0.006309356074780226, 3.4465276257833466e-5, 0.025187483057379723, 0.01483281422406435, + 0.009622184559702873, 0.011736401356756687, -0.010121606290340424, 0.0020725985523313284, + -0.023705866187810898, -0.024088755249977112, 0.0014576860703527927, -0.008049007505178452, + 0.0020060089882463217, 0.047611501067876816, -0.017945872619748116, 0.024971067905426025, + -0.01827882044017315, -0.022723671048879623, 0.016048071905970573, 0.024787945672869682, + 0.02881661057472229, -0.031197186559438705, 0.011128772050142288, -0.024671414867043495, + -0.008223804645240307, 0.026768984273076057, -0.0037976831663399935, -0.034160420298576355, + -0.011153743602335453, -0.002877915510907769, -0.005202305503189564, -0.00291745294816792, + -0.0038330587558448315, 0.006958603858947754, 0.030098458752036095, -0.001193408970721066, + -0.003354446729645133, 0.006812939420342445, -0.0006180339260026813, 0.0014254316920414567, + -0.05829911679029465, -0.013059868477284908, -0.0420512780547142, 0.004665427841246128, + -0.0023306328803300858, -0.024022165685892105, 0.024388408288359642, -0.018545178696513176, + -0.006617332808673382, 0.023722514510154724, 0.01463304553180933, -0.0026760660111904144, + 0.009722068905830383, 0.006908661685883999, -0.002049708506092429, 0.025770140811800957, + -0.0031359498389065266, -0.03915463387966156, -0.0005145080504007638, -0.01837870478630066, + -0.005227276589721441, 0.027035342529416084, 0.009447387419641018, 0.02142517641186714, + -0.003610400017350912, -0.017796047031879425, 0.031546782702207565, 0.01124530378729105, + -0.02433846704661846, -0.0036083192098885775, -0.012019407004117966, 0.002871672622859478, + -0.013009926304221153, -0.006380107719451189, -0.027484821155667305, 0.02946585975587368, + -0.03472642973065376, 0.0030776839703321457, 0.03519255667924881, -0.0014712120173498988, + -0.018894774839282036, -0.020409684628248215, -0.025820083916187286, -0.041085727512836456, + -0.0003581787459552288, -0.017146799713373184, 0.011561604216694832, -0.0003053753462154418, + 0.02129199728369713, -0.009205999784171581, 0.008369469083845615, -0.024388408288359642, + 0.0065840380266308784, -0.0044198790565133095, -0.02229083888232708, -0.008698254823684692, + 0.008706578984856606, -0.017679516226053238, -0.0045031155459582806, 0.011611546389758587, + -0.005385426804423332, -0.009597213007509708, 0.013659173622727394, 0.004960918799042702, + -0.016347724944353104, 0.018062405288219452, -0.013484376482665539, 0.01932760514318943, + -0.015273969620466232, -0.022573845461010933, 0.020159974694252014, 0.01776275224983692, + -0.021258702501654625, -0.0027301700320094824, -0.018295468762516975, -0.00916438177227974, + -0.025919968262314796, 0.0019425408681854606, -0.03982052952051163, -0.027901004999876022, + 0.026719041168689728, -0.02881661057472229, 0.002193292137235403, -0.007453863508999348, + ], + index: 80, + }, + { + title: "Adjournment sine die", + text: 'Adjournment sine die (from the Latin "without day") means "without assigning a day for a further meeting or hearing". To adjourn an assembly sine die is to adjourn it for an indefinite period.', + vector: [ + -0.008480370976030827, 0.004539786372333765, -0.01259988360106945, 0.05502670630812645, + 0.026314949616789818, 0.031424809247255325, 0.009562263265252113, 0.025183124467730522, + 0.00039634708082303405, -0.035818956792354584, -0.005621678661555052, 0.02167113497853279, + -0.018025990575551987, -0.04224373400211334, -0.021787647157907486, -0.0077771409414708614, + -0.03701736032962799, 0.022253692150115967, 0.04314253479242325, -0.006695248652249575, + -0.04091217368841171, 0.01522971410304308, 0.018259013071656227, 0.02035621926188469, + 0.042476754635572433, 0.0003061027091462165, -0.029460759833455086, -0.0015500187873840332, + -0.01909123733639717, 0.003923940006643534, -0.009961731731891632, 0.0005529093905352056, + 0.07157133519649506, 0.03731696307659149, -0.007960230112075806, -0.03725038468837738, + 0.07729703933000565, -0.015787305310368538, -0.004606364294886589, -0.0010912548750638962, + -0.04307595640420914, 0.01754329912364483, -0.051065314561128616, 0.024866878986358643, + -0.04643814638257027, 0.019523994997143745, -0.019057948142290115, -0.007956069894134998, + 0.000991908018477261, 0.028362222015857697, -0.008001841604709625, 0.02152133360505104, + -0.006603704299777746, 0.031657833606004715, 0.006761827040463686, 0.010885501280426979, + 0.029460759833455086, -0.034853577613830566, -0.05173109471797943, -0.04733694717288017, + -0.016220062971115112, -0.030542651191353798, 0.016669463366270065, 0.01815914548933506, + 0.0018912309315055609, 0.02668112888932228, 0.02786288782954216, -0.003499505342915654, + -0.020223064348101616, -0.006021146662533283, 0.026098571717739105, -0.049966778606176376, + -0.036584604531526566, 0.004240185488015413, -0.026398172602057457, -0.029444115236401558, + -0.03758327290415764, 0.033854905515909195, -0.02693079598248005, -0.014239367097616196, + -0.04157795384526253, -0.019074592739343643, -0.03182427957653999, -0.015953749418258667, + -0.005080732516944408, -0.01248337235301733, -0.01682758703827858, -0.049101267009973526, + 0.008929772302508354, -0.0003867244813591242, 0.003665950382128358, -0.0344541072845459, + 0.055759064853191376, 0.007311095017939806, -0.006170947104692459, -0.02974371612071991, + 0.018841570243239403, 0.021771002560853958, 0.006770148873329163, -0.08448746800422668, + -0.010719056241214275, -0.049267709255218506, 0.010594221763312817, -0.011018657125532627, + -0.05229700729250908, 0.025865547358989716, -0.00137005012948066, 0.00935420673340559, + -0.009087895043194294, 0.041211772710084915, 0.01706060953438282, -0.010153142735362053, + 0.017410144209861755, 0.0068533713929355145, -0.05938756465911865, -0.036584604531526566, + -0.006187591701745987, -0.02951069362461567, -0.0029668814968317747, 0.03035956248641014, + -0.003921859432011843, -0.03521975502371788, 0.028828268870711327, -0.03147474303841591, + 0.007951908744871616, 0.0014740782789885998, 0.04330898076295853, 0.018192434683442116, + -0.026830928400158882, 0.036584604531526566, -0.019623862579464912, -0.043475426733493805, + -0.02065582014620304, -0.0038323954213410616, 0.01877499185502529, 0.006532964762300253, + -0.0440080501139164, -0.009878508746623993, -0.014497356489300728, 0.02278631553053856, + -0.009637163951992989, 0.02067246474325657, 0.03184092044830322, 0.03511988744139671, + 0.032306969165802, -0.03904798999428749, -0.005309594329446554, 0.003703400492668152, + -0.012500016950070858, 0.03215716779232025, -0.02866182290017605, 0.007128005847334862, + 0.02623172663152218, -0.008384665474295616, -0.006483031436800957, -0.013357209041714668, + 0.023901497945189476, -0.003366349497810006, 0.0001643644063733518, -0.03904798999428749, + 0.020689109340310097, 0.03438752889633179, -0.008018486201763153, 0.04164453223347664, + -0.04513987526297569, 0.0055134897120296955, -0.009420785121619701, -0.048868242651224136, + 0.005534294992685318, 0.00896306149661541, -0.015595893375575542, -0.011218390427529812, + -0.014189433306455612, -0.05472710356116295, 0.011800948530435562, 0.006050274707376957, + 0.008680105209350586, 0.038082607090473175, 0.015263003297150135, 0.040812306106090546, + -0.040046658366918564, 0.01792612299323082, 0.002727616811171174, -0.020139841362833977, + 0.030642518773674965, -0.02779630944132805, 0.03335557132959366, -0.02551601268351078, + 0.051531363278627396, -0.03285623714327812, -0.016078583896160126, -0.0382157638669014, + 0.06464722752571106, 0.010793955996632576, 0.019707083702087402, 0.0029606397729367018, + -0.029377536848187447, 0.006541287060827017, 0.0018756267381832004, 0.010793955996632576, + -0.009753675200045109, -0.015471059828996658, -0.02097206562757492, 0.08954739570617676, + -0.06438091397285461, -0.00046942682820372283, 0.05479368194937706, 0.01714383251965046, + 0.027430130168795586, -0.021854223683476448, 0.002577816369011998, -0.011709403246641159, + -0.03239019215106964, 0.03350537270307541, 0.02065582014620304, 0.0029315119609236717, + -0.0579228475689888, -0.042776357382535934, 0.04783628508448601, -0.02363518625497818, + -0.002844128292053938, -0.0399467907845974, -0.029061291366815567, 0.02589883655309677, + -0.03412121906876564, -0.009404140524566174, 0.02348538488149643, 0.01987352967262268, + -0.010785633698105812, 0.02762986533343792, -0.009995019994676113, 0.013240696862339973, + 0.018275657668709755, -0.005326238926500082, -0.007331900764256716, -0.02080562151968479, + 0.05439421534538269, -0.04727037250995636, 0.02340216189622879, -0.036351580172777176, + -0.015346226282417774, 0.05489354953169823, -0.02348538488149643, 0.0018381766276434064, + -0.01200900413095951, -0.018908148631453514, 0.023069271817803383, -0.005850540474057198, + -0.010519322007894516, -0.010768989101052284, -0.017243698239326477, 0.031108563765883446, + -0.002606944413855672, -0.010003342293202877, -0.0361851342022419, 0.022053958848118782, + -0.012192093767225742, -0.017018998041749, -0.0077688186429440975, 0.03308925777673721, + 0.007598212920129299, 0.009470718912780285, 0.0004806098295375705, -0.025782326236367226, + -0.020372863858938217, 0.009312596172094345, 0.009087895043194294, 0.0028690951876342297, + 0.01909123733639717, -0.03204065561294556, -0.06697745621204376, -0.01965714991092682, + -0.01885821484029293, 0.005887990817427635, -0.029310958459973335, 0.005575906485319138, + 0.010993690229952335, 0.025848902761936188, 0.09340891242027283, 0.053894881159067154, + -0.01490514725446701, -0.042310312390327454, -0.03521975502371788, -0.046837612986564636, + 0.04467383027076721, 0.00907957274466753, -0.02010655216872692, 0.004781131632626057, + -0.006811760365962982, 0.00783123541623354, -0.0243342537432909, 0.004167365841567516, + 0.03578566759824753, 0.0353529118001461, 0.0518309623003006, 0.017343565821647644, + -0.01568743772804737, -0.021970735862851143, -0.03405464068055153, -0.034154508262872696, + 0.02122173272073269, 0.04800272732973099, 0.013581909239292145, 0.02559923566877842, + 0.01291612908244133, -0.01181759312748909, 0.016877518966794014, 0.033072616904973984, + -0.006025307811796665, -0.042310312390327454, 0.04244346544146538, -0.0573236458003521, + 0.06691087782382965, -0.021621201187372208, 0.0067743100225925446, -0.015637503936886787, + 0.0009846260072663426, -0.027263686060905457, 0.03077567368745804, -0.0234687402844429, + 0.0097786420956254, 0.01225034985691309, 6.607409886782989e-6, -0.027646509930491447, + 0.04940086603164673, -0.048801664263010025, -0.002569494303315878, -0.007743852213025093, + 0.06870847940444946, -0.01784290000796318, -0.017709745094180107, -0.019290972501039505, + 0.005771479103714228, 0.006840887945145369, -0.02991016022861004, 0.0013336403062567115, + -0.0010491234716027975, 0.011642825789749622, 0.04513987526297569, -0.04357529431581497, + 0.028711756691336632, -0.03442081809043884, 0.07723046839237213, -0.022320270538330078, + 0.04540618881583214, 0.04737023636698723, -0.018675126135349274, -0.005754834972321987, + 0.026664484292268753, 0.02065582014620304, 0.0006897063576616347, -0.027962755411863327, + -0.005022476892918348, 0.007473378907889128, 0.006391486618667841, -0.04021310433745384, + -0.017010675743222237, -0.03179099038243294, 0.018758347257971764, -0.01216712687164545, + -0.0005425065755844116, 0.000173856969922781, 0.041677821427583694, -0.013756676577031612, + -0.0019713325891643763, -0.045739077031612396, -0.01800934597849846, -0.0015760257374495268, + 0.03615184873342514, 0.06644482910633087, -0.02574903704226017, -0.016919130459427834, + 0.04467383027076721, 0.002650636015459895, 0.026031993329524994, 0.012266994453966618, + 0.039247725158929825, -0.025449436157941818, 0.01925768330693245, -0.006229202728718519, + 0.02528299018740654, 0.06567918509244919, -0.023335585370659828, 0.03277301415801048, + -0.01784290000796318, -0.06448078155517578, 0.012075582519173622, 0.004477369599044323, + -0.006557931657880545, -0.022187113761901855, 0.0015312937321141362, 0.024983389303088188, + 0.017743034288287163, -0.04037955030798912, 0.006170947104692459, 0.016919130459427834, + -0.013523654080927372, 0.015121525153517723, 0.056624576449394226, 0.006757665891200304, + 0.008459565229713917, -0.04357529431581497, -0.0012493774993345141, 0.006899144034832716, + -0.015188103541731834, 0.025233056396245956, -0.018192434683442116, -0.01240847259759903, + -0.009920120239257812, -0.028828268870711327, -0.0144058121368289, 0.033372215926647186, + 0.022719739004969597, -0.033788327127695084, -0.01754329912364483, 0.0023323101922869682, + -0.002054555108770728, 0.007194583769887686, 0.02261987142264843, -0.0005539496778510511, + -0.013665132224559784, -0.03848207741975784, -0.03701736032962799, -0.005704901181161404, + 0.08209066092967987, 0.007552440278232098, -0.0030168150551617146, 0.016503019258379936, + -0.011676114052534103, -0.013465397991240025, -0.07257000356912613, 0.0804927870631218, + 0.06970715522766113, 0.04553934186697006, -0.0010787714272737503, -0.01060254406183958, + -0.046071965247392654, 0.03167447820305824, -0.025382857769727707, 0.08242354542016983, + -0.04107861965894699, -0.04900139942765236, 0.0063706813380122185, 0.014139500446617603, + 0.02363518625497818, -0.03571908921003342, -0.015096558257937431, -0.02027299627661705, + 0.07190422713756561, 0.015654148533940315, -0.0040820627473294735, -0.034853577613830566, + 0.03428766503930092, 0.012075582519173622, 0.10166458785533905, 0.025765681639313698, + 0.012308605015277863, -0.06671114265918732, 0.0440080501139164, 0.0007760496810078621, + 0.006487192586064339, 0.037982743233442307, 0.01775967888534069, -0.015096558257937431, + 0.06754336506128311, 0.004835226107388735, 0.026647839695215225, -0.01593710482120514, + 0.022503359243273735, 0.016944097355008125, -0.028145844116806984, -0.016810942441225052, + -0.08029305189847946, 0.022436780855059624, 0.012017326429486275, -0.008243187330663204, + -0.08262328058481216, -0.005942085292190313, -0.010860534384846687, 0.02261987142264843, + 0.02714717388153076, -0.027646509930491447, -0.04600539058446884, -0.020289640873670578, + -0.025948770344257355, 0.04940086603164673, 0.0195572841912508, -0.018259013071656227, + -0.03758327290415764, 0.00896306149661541, 0.05266318842768669, 0.01925768330693245, + 0.044640541076660156, 0.0008545909076929092, 0.013065929524600506, -0.011201746761798859, + 0.016369862481951714, 0.018958082422614098, 0.03891483321785927, 0.048868242651224136, + -0.01714383251965046, 0.04161124303936958, 0.0440080501139164, 0.02872840128839016, + -0.0175266545265913, 0.0033205770887434483, -0.015104880556464195, -0.02458392083644867, + -0.031041987240314484, 0.036984071135520935, -0.040512703359127045, -0.026880862191319466, + -0.004385824780911207, -0.009920120239257812, 0.03748340532183647, 0.010402810759842396, + -0.02536621317267418, -0.03961390256881714, -0.020456086844205856, 0.03328899294137955, + 0.0003867244813591242, 0.0015770660247653723, 0.01784290000796318, 0.02255329303443432, + -0.021421467885375023, 0.01676100865006447, 0.040412839502096176, -0.005247177556157112, + -0.024450765922665596, 0.008621849119663239, -0.007548279128968716, -0.029077935963869095, + 0.034786999225616455, 0.02481694519519806, -0.006911627482622862, 0.03465384244918823, + -0.07456734776496887, 0.043242402374744415, 0.01644476316869259, 0.004369180183857679, + 1.5157220332184806e-5, 0.013065929524600506, 0.0004051894648000598, -0.009970053099095821, + -0.007244517095386982, -0.009853541851043701, 0.014056277461349964, -0.0011328660184517503, + 0.01357358694076538, -0.0019297213293612003, 0.05432763695716858, -0.045905523002147675, + -0.0280959103256464, 0.027529997751116753, -0.02018977515399456, -0.012025648728013039, + -0.046604592353105545, 0.006840887945145369, 0.01365680992603302, 0.03531962260603905, + 0.010377843864262104, 0.017826255410909653, 0.027979398146271706, 0.006208397448062897, + -0.006915788631886244, 0.011434769257903099, -0.0048685153014957905, 0.008263993076980114, + 0.006129336077719927, -0.04134492948651314, 0.015446092933416367, -0.020139841362833977, + -0.0077688186429440975, 0.0006111651309765875, 0.06364855915307999, 0.03253998979926109, + 0.0055842287838459015, -0.01722705364227295, -0.02363518625497818, -0.027896177023649216, + 0.028611889109015465, -0.03608527034521103, -0.0007235154625959694, 0.020639175549149513, + -0.05369514599442482, 0.023219073191285133, 0.02223704755306244, -0.05319581180810928, + -0.006299941800534725, 0.04037955030798912, 0.014730379916727543, -7.659069524379447e-5, + 0.045605920255184174, 0.01123503502458334, 0.017826255410909653, -0.010261332616209984, + -0.023968074470758438, -0.002517480170354247, -0.000666300009470433, 0.03661789372563362, + -0.01566247083246708, 0.03515317663550377, -0.04211057722568512, -0.03591882437467575, + -0.04194413125514984, 0.011060267686843872, 0.06334895640611649, -0.013207408599555492, + -0.02082226611673832, 0.0014563935110345483, -0.04710392653942108, -0.012300282716751099, + -0.019157815724611282, -0.037450116127729416, -0.0020732800476253033, -0.02558259107172489, + 0.02137153409421444, 0.00516395503655076, -0.013598553836345673, 0.002746341982856393, + -0.03452068567276001, 0.01887485943734646, 0.015754016116261482, 0.021338244900107384, + -0.009820252656936646, -0.0021200927440077066, 0.016145162284374237, 0.01785954460501671, + 0.010003342293202877, 0.019224394112825394, 0.02543279156088829, 0.015803949907422066, + -0.008971383795142174, 0.04314253479242325, 0.02316913940012455, -0.008596882224082947, + 0.029211092740297318, -0.017809610813856125, -0.008209898136556149, -0.014930113218724728, + 0.0056508067063987255, 0.006266653072088957, 0.02168777957558632, 0.017909478396177292, + -0.009445752017199993, -0.005742351524531841, 0.064014732837677, 0.040113236755132675, + 0.03262321278452873, 0.017193764448165894, 0.015163136646151543, 0.00706558907404542, + 0.0049309320747852325, 0.03060922957956791, 0.05535959452390671, -0.002513319021090865, + 0.0076356627978384495, -0.019507350400090218, 0.012441761791706085, 0.00672853784635663, + -0.012275316752493382, -0.058522049337625504, -0.052629899233579636, 0.010768989101052284, + 0.03263985738158226, -0.07117186486721039, -0.01767645590007305, 0.0012358538806438446, + -0.014497356489300728, -0.007806268986314535, -0.010061598382890224, -0.02473372220993042, + -0.02270309440791607, -0.049267709255218506, 0.021721068769693375, -0.03052600659430027, + -0.013149152509868145, -0.015554281882941723, 0.01036952156573534, -0.0008384665125049651, + -0.004643814638257027, 0.013215729966759682, -0.048102594912052155, -0.035186465829610825, + -0.003326818812638521, 0.02435089834034443, -0.002663119463250041, 0.02080562151968479, + -0.016885841265320778, -0.0047353594563901424, -0.015329581685364246, 0.03605198115110397, + -0.020023329183459282, -0.008588559925556183, -0.021105222404003143, -0.010194754227995872, + 0.003372591221705079, -0.00025655931676737964, -0.01832559145987034, -0.00812667515128851, + -0.012375183403491974, 0.060685835778713226, 0.042310312390327454, 0.009221050888299942, + 0.0385153666138649, 0.04061257094144821, 0.018641836941242218, 0.031724411994218826, + -0.0021367373410612345, 0.0009669412393122911, -0.01678597554564476, -0.02684757299721241, + -0.004814420826733112, 0.006254169624298811, 0.05955401062965393, -0.0023614380042999983, + -0.00022327032638713717, -0.06048610061407089, -0.02120508812367916, -0.015371193177998066, + -0.01240847259759903, -0.005946246441453695, -0.009903475642204285, 0.029294313862919807, + 0.024950100108981133, -0.013049285858869553, -0.0555926188826561, 0.003399638459086418, + -0.01608690619468689, 0.0032748046796768904, -0.018425457179546356, 0.022270336747169495, + 0.0204227976500988, 0.006820082664489746, 0.028512023389339447, -0.03954732418060303, + 0.007435929030179977, 0.001392936334013939, -0.003626419696956873, -0.006974044255912304, + -0.01699403114616871, -0.03328899294137955, -0.008409632369875908, 0.012192093767225742, + 0.004880998749285936, -0.04484027251601219, 0.02230362594127655, 0.023502029478549957, + -0.043475426733493805, -0.0020847232080996037, -0.007723046466708183, -0.003626419696956873, + 0.019124526530504227, -0.001357566798105836, -0.009737030602991581, -0.04314253479242325, + 0.007057266775518656, -0.02653132751584053, 0.022270336747169495, 0.051930829882621765, + 0.0011536716483533382, 0.009029639884829521, -0.019191104918718338, 0.0031728572212159634, + 0.002700569573789835, 0.022087248042225838, -0.022170469164848328, 0.013556942343711853, + 0.002079521771520376, 0.06581234186887741, 0.015421126037836075, -0.01769310049712658, + 0.0013981377705931664, 0.01581227220594883, -0.021737713366746902, 0.021721068769693375, + -0.014355878345668316, -0.001783041749149561, -0.004743681754916906, -0.013590231537818909, + -0.021771002560853958, -0.0385153666138649, -0.007981035858392715, 0.012691428884863853, + -0.004581397864967585, -0.01900801621377468, 0.013856543228030205, -0.001703980378806591, + 0.026980729773640633, -0.009196084924042225, 0.03904798999428749, 0.019690439105033875, + 0.040978752076625824, -0.018275657668709755, 0.013215729966759682, -0.026265015825629234, + -0.0032331934198737144, -0.033155836164951324, -0.08382168412208557, -0.05579235404729843, + 0.017426788806915283, -0.014181111007928848, 0.0460386797785759, 0.024517344310879707, + -0.021854223683476448, -0.019124526530504227, 0.009728708304464817, -0.0014636754058301449, + -0.0008504297584295273, -0.01785954460501671, 0.0157040823251009, -0.023918142542243004, + 0.04627170041203499, -0.004926770925521851, 0.015629181638360023, 0.005209727678447962, + -0.019590573385357857, -0.008189092390239239, -0.0212883111089468, 0.04737023636698723, + -0.004298441112041473, 0.006624509580433369, -0.0024987549986690283, -0.02300269529223442, + -0.011792626231908798, -0.011559602804481983, 0.036285001784563065, 0.001668610842898488, + 0.02739684097468853, 0.030476072803139687, -0.017709745094180107, -0.002511238446459174, + -0.022436780855059624, 0.046837612986564636, -0.02033957466483116, -0.010186431929469109, + 0.014056277461349964, 0.009745352901518345, -0.009528974071145058, 0.04404133930802345, + -0.0009924281621351838, 0.014222722500562668, -0.022653160616755486, -0.045605920255184174, + 0.002507077297195792, 0.009462396614253521, 0.002373921452090144, -0.07203738391399384, + 0.008696749806404114, -0.01879163645207882, 0.0347537100315094, -0.021654490381479263, + 0.012633172795176506, 0.013015996664762497, 0.0020389507990330458, 0.034553974866867065, + -0.014181111007928848, 0.01145973615348339, 0.001737269340083003, -0.006170947104692459, + 0.02300269529223442, 0.05456066131591797, -0.038781676441431046, -0.009037962183356285, + 0.015562604181468487, 0.01847539097070694, 0.01284122932702303, -0.05049940198659897, + 0.028711756691336632, -0.03811589628458023, 0.00354111660271883, -0.01617012917995453, + 0.015512671321630478, 0.004331730306148529, 0.007390156388282776, 0.00023627383052371442, + 0.0037949453108012676, 0.006445581559091806, 0.025798970833420753, 0.02010655216872692, + -0.007311095017939806, 0.002606944413855672, -0.048102594912052155, -0.04181097447872162, + 0.045040007680654526, 0.02693079598248005, 0.007073910906910896, 0.0010382004547864199, + -0.014588901773095131, -0.02316913940012455, 0.022969406098127365, -0.02849537879228592, + -0.0006590180564671755, 0.011160135269165039, 0.04117848351597786, -0.010635833255946636, + 0.012616528198122978, 0.004623008891940117, 0.0007625260041095316, -0.016369862481951714, + -0.012466727755963802, -0.02230362594127655, 0.031275007873773575, -0.007881169207394123, + -0.000979944714345038, 0.015795627608895302, 0.009645486250519753, -0.015587571077048779, + -0.01924103870987892, -0.008159964345395565, -0.04513987526297569, -0.02230362594127655, + -0.013365531340241432, 0.027430130168795586, 0.03585224598646164, -0.025715747848153114, + -0.04753668233752251, 0.04374173656105995, -0.00034875422716140747, 0.015554281882941723, + -0.008521982468664646, -0.0023531157057732344, -0.03234025835990906, -0.0019130768487229943, + 0.009703741408884525, -0.0021325761917978525, 0.02942747063934803, -0.00496838241815567, + 0.02167113497853279, 0.0047353594563901424, -0.012549950741231441, 0.03149138763546944, + 0.04530632123351097, -0.02543279156088829, 0.036351580172777176, -0.031657833606004715, + -0.021554622799158096, -0.0014199836878105998, -0.014996691606938839, 0.008168286643922329, + -0.011326580308377743, 0.0489681102335453, -0.008563593961298466, 0.019207749515771866, + 0.006254169624298811, -0.003522391663864255, -0.04171111062169075, 0.018641836941242218, + -0.024217743426561356, -0.009204406291246414, -0.04091217368841171, 0.035020019859075546, + 0.008779971860349178, -0.010860534384846687, 0.01365680992603302, -0.05079900473356247, + -0.02691415138542652, 0.004585559014230967, -0.001785122323781252, 0.006483031436800957, + -0.028079265728592873, -0.01032791007310152, 0.03938087821006775, 0.00528462789952755, + 0.03951403498649597, 0.01678597554564476, 0.006516320630908012, 0.0015042463783174753, + -0.0028316450770944357, 0.0144807118922472, 0.02769644185900688, -0.004071659874171019, + 0.017260342836380005, -0.001238974742591381, -0.04194413125514984, -0.00508489366620779, + -0.0009216890321113169, -0.004019645974040031, 0.020239708945155144, -0.017559943720698357, + 0.013948088511824608, 0.031807634979486465, 0.02604863792657852, -0.02027299627661705, + 0.009820252656936646, -0.005542617291212082, -0.021088577806949615, 0.019906818866729736, + -0.017809610813856125, 0.012782973237335682, -0.011284968815743923, -0.03804931789636612, + 0.018924793228507042, -0.02676435001194477, 0.005059927236288786, 0.011984037235379219, + 0.005800607148557901, -0.008438759483397007, -0.020705753937363625, 0.015795627608895302, + -0.021820934489369392, 0.023851564154028893, -0.022270336747169495, -0.02175435796380043, + 0.020223064348101616, -0.0296771377325058, 0.0012171288253739476, 0.019191104918718338, + 0.005159793887287378, -0.014921790920197964, 0.03764985129237175, -0.010419455356895924, + -0.024633854627609253, 0.0347537100315094, -0.031341586261987686, -0.022819604724645615, + 0.0010558852227404714, -0.01870841346681118, -0.028978068381547928, 0.012891163118183613, + 0.017043964937329292, 0.047470103949308395, -0.016669463366270065, 0.01549602672457695, + -0.004776970483362675, 0.016802620142698288, 0.03788287565112114, -0.005313755478709936, + 0.028129199519753456, -0.02684757299721241, -0.006112691480666399, 0.02904464676976204, + -0.014738702215254307, 0.0016207578592002392, -0.008971383795142174, -0.02395143173635006, + -0.006915788631886244, 0.026947440579533577, 0.004772809334099293, 0.030476072803139687, + -0.013507009483873844, 0.02316913940012455, -0.009429107420146465, 0.028512023389339447, + 0.00027411404880695045, 0.008929772302508354, 2.145579674106557e-5, -0.024833589792251587, + -0.011351547203958035, 0.006657798774540424, -0.02153797820210457, -0.0037283673882484436, + 0.0067826323211193085, -0.027729731053113937, -0.02245342545211315, 0.001668610842898488, + -0.0011880010133609176, -0.0021065690089017153, -0.025166479870676994, -0.0408455953001976, + 0.016652818769216537, -0.02691415138542652, 0.0263648834079504, -0.01900801621377468, + -0.005267983302474022, 0.002604863839223981, 0.06098543480038643, 0.0263648834079504, + 0.016536308452486992, 0.00034693372435867786, -0.00916279572993517, -0.01522971410304308, + -0.00823486503213644, -0.0011827995767816901, 0.009012995287775993, 0.0007438009488396347, + -0.006695248652249575, 0.004764487035572529, 0.0031000375747680664, 0.02137153409421444, + 0.011517991311848164, 0.003613936249166727, -0.028828268870711327, -0.011984037235379219, + -0.01025301031768322, 0.027513353154063225, -0.006803438067436218, -0.0021429790649563074, + -0.015737371519207954, -0.0033143353648483753, -0.02606528252363205, 0.001851700246334076, + -0.01676100865006447, 0.027430130168795586, -0.007344384212046862, -0.012633172795176506, + 0.019707083702087402, 0.0018402572022750974, -0.01052764430642128, 0.022270336747169495, + -0.013640165328979492, -0.010311265476047993, -0.009595552459359169, 0.030076606199145317, + 0.016652818769216537, -0.009404140524566174, -0.0312916524708271, 0.021404823288321495, + 0.023385517299175262, -0.004369180183857679, -0.014996691606938839, -0.032140523195266724, + -0.0002551289217080921, -4.557731517706998e-5, -0.0010766908526420593, 0.004323408007621765, + 0.003412121906876564, -0.02866182290017605, -0.004993348848074675, -0.00530127203091979, + 0.01987352967262268, 0.017160475254058838, -0.0036825949791818857, 0.02832893282175064, + -0.013548620045185089, -0.0361851342022419, -0.002802517032250762, -0.0015021658036857843, + 0.02395143173635006, -0.0020909649319946766, 0.009570585563778877, -0.018808281049132347, + -0.0064330981113016605, -0.01995675079524517, 0.03249005600810051, 0.004208977334201336, + 0.02559923566877842, -0.004406630527228117, -0.006166785955429077, -0.001205685781314969, + -0.010436099022626877, -0.02308591641485691, 0.005679934751242399, 0.006969883106648922, + -0.019074592739343643, 0.01648637466132641, 0.02676435001194477, 0.006050274707376957, + 0.01173437014222145, 0.0005183200119063258, 0.026564616709947586, -0.02982693910598755, + -0.0020285481587052345, -0.006607864983379841, 0.017276987433433533, -0.02621508203446865, + -0.014489034190773964, -0.0028919812757521868, -0.01373170968145132, -0.0003162454522680491, + -0.056458134204149246, 0.010577578097581863, 0.009104539640247822, 0.03974705934524536, + 0.013348886743187904, -0.01259988360106945, -0.019307617098093033, -0.006037791259586811, + -0.029061291366815567, 0.0032061461824923754, 0.03521975502371788, 0.029477404430508614, + 0.01490514725446701, -0.0017570346826687455, 0.010003342293202877, -0.053661856800317764, + 0.0009752634796313941, -0.014097888953983784, 0.013798288069665432, 0.03144145384430885, + 0.007227872498333454, 0.02589883655309677, 0.01275800634175539, -0.0391145683825016, + 0.004142398945987225, 0.006957399658858776, -0.01474702451378107, 0.015970394015312195, + -0.03725038468837738, -0.002413452137261629, 0.002881578402593732, 0.0110769122838974, + -0.017942767590284348, 0.025549301877617836, -0.007956069894134998, 0.007956069894134998, + 0.015196425840258598, 0.018675126135349274, -0.008322248235344887, 0.014372522942721844, + 0.02120508812367916, -0.02701401896774769, 0.016752686351537704, 0.005209727678447962, + -0.03515317663550377, -0.004843548405915499, 0.022603226825594902, -0.01232524961233139, + 0.003605614183470607, 0.011326580308377743, -0.004851870704442263, 0.008114192634820938, + -0.008338892832398415, -0.005600873380899429, 0.016353217884898186, -0.03954732418060303, + -0.01989017426967621, -0.020023329183459282, 0.008954739198088646, -0.010294620878994465, + 0.011401480063796043, -0.030625874176621437, 0.0023926463909447193, 0.008613526821136475, + 0.004897643346339464, 0.005742351524531841, -0.0011276646982878447, -0.014771990478038788, + 0.011476380750536919, -0.03741682693362236, -0.03402135148644447, 0.037683140486478806, + -0.02559923566877842, -0.036285001784563065, 0.04454067349433899, 0.007132166996598244, + -0.014280978590250015, -0.0031146013643592596, -0.0030563457403331995, -0.004414952825754881, + 0.037283673882484436, -0.024717077612876892, -0.001762236119247973, 0.016095228493213654, + -0.022669805213809013, -0.0037554146256297827, 0.01621174067258835, -0.019474061205983162, + 0.000944575178436935, -0.018641836941242218, -0.013049285858869553, 0.0006049234070815146, + -0.02959391474723816, 0.006141819525510073, -0.012974385172128677, -0.0337383933365345, + -0.035253044217824936, 0.027663154527544975, 0.009071250446140766, -0.00841379351913929, + -0.033455438911914825, 0.0334387943148613, 0.008355537429451942, 0.038948122411966324, + -0.052163854241371155, 0.019191104918718338, 0.016902485862374306, 0.01900801621377468, + -0.017160475254058838, 0.03661789372563362, -0.00848869327455759, 0.057889558374881744, + 0.0023260684683918953, -0.026015348732471466, 0.02613185904920101, 0.004914287477731705, + -0.034320950508117676, 0.0030272179283201694, 0.014297622255980968, 0.0002237904554931447, + 0.007057266775518656, -0.010194754227995872, -0.018209079280495644, 0.04314253479242325, + -0.01593710482120514, -0.023219073191285133, -0.017643166705965996, 0.012733040377497673, + 0.022669805213809013, 0.009320918470621109, -0.013939766213297844, -0.023701762780547142, + 0.002783792093396187, -0.011368190869688988, -0.015620860271155834, 0.004581397864967585, + -0.0021679457277059555, -0.01432258915156126, -0.01041113305836916, 0.01393144391477108, + 0.006012824364006519, 0.029610559344291687, -0.0361851342022419, 0.01393144391477108, + -0.04064586013555527, -0.00183505576569587, -0.03257327899336815, -0.012991029769182205, + -0.02010655216872692, -0.0031707766465842724, 0.002373921452090144, 0.0029731232207268476, + 0.010719056241214275, 0.04157795384526253, 0.01416446641087532, 0.004764487035572529, + 0.06304935365915298, 0.018891504034399986, 0.0032103073317557573, -0.02754664234817028, + -0.008051775395870209, -0.04294280335307121, 0.0074276067316532135, 0.02401800826191902, + -0.01236686110496521, 0.01150134764611721, -0.010469388216733932, -0.03605198115110397, + -0.002673522336408496, 0.0428762249648571, 0.001795525080524385, 0.011268324218690395, + -0.009387495927512646, 0.02088884264230728, 0.019474061205983162, -0.0320073664188385, + -0.02065582014620304, -0.023368872702121735, 0.0066453153267502785, 0.01934090442955494, + -0.0042214603163301945, 0.0011131006758660078, -0.00037866231286898255, 0.019374193623661995, + -0.01721040904521942, 0.002648555440828204, 0.023435451090335846, 0.019124526530504227, + 0.0331391915678978, -0.011576247401535511, -0.03387155011296272, -0.0041486406698822975, + -0.0008285838412120938, 0.029926804825663567, -0.03237354755401611, 0.009212728589773178, + 0.031041987240314484, 0.02488352358341217, -0.02982693910598755, 0.004163204692304134, + 0.004000920802354813, 0.025632524862885475, 0.026398172602057457, 0.0019172379979863763, + -0.004856031853705645, -0.025848902761936188, 0.0019942186772823334, -0.008014325052499771, + -0.0003568163956515491, 0.0010985367698594928, -0.0022366042248904705, -0.011800948530435562, + 0.015446092933416367, -0.02583225816488266, 0.009112861938774586, -0.014397489838302135, + 0.021820934489369392, -0.0019234796054661274, -0.030176471918821335, -0.019141171127557755, + 0.029460759833455086, -0.004427436273545027, 0.015762338414788246, 0.036584604531526566, + -0.037050649523735046, 0.0651465579867363, 0.03402135148644447, -0.009454074315726757, + -0.023285651579499245, 0.006200075149536133, 0.011176779866218567, -0.046837612986564636, + -0.001363808405585587, 0.02152133360505104, -0.00951232947409153, -0.001845458522439003, + -0.0013606876600533724, -0.014330911450088024, 0.013174119405448437, 0.02175435796380043, + 0.0067118932493031025, 0.03928101062774658, 0.016794297844171524, 0.03124172054231167, + -0.008226542733609676, -0.014014665968716145, -0.008738360367715359, 0.015079913660883904, + 0.006158463656902313, 0.0022282819263637066, 0.013507009483873844, 0.0005060967523604631, + 0.011476380750536919, 0.004485691897571087, -0.02503332309424877, 0.007802107837051153, + -0.012932773679494858, 0.04367515817284584, -0.011151812970638275, -0.018175790086388588, + 0.0033205770887434483, -0.023818274959921837, -0.008713394403457642, -0.02308591641485691, + 0.004552269820123911, 0.012491694651544094, 0.007090555503964424, -0.021970735862851143, + 0.03258992359042168, -0.0022532488219439983, -0.0015021658036857843, -0.0022324430756270885, + 0.04154466465115547, -0.03685091435909271, 0.03255663439631462, 0.0599534772336483, + 0.003990517929196358, -0.0021658651530742645, 0.012316927313804626, -0.035818956792354584, + 0.03154132142663002, -0.015504349023103714, 0.006408131215721369, -0.012807940132915974, + -0.018575258553028107, -0.0006756625371053815, 0.003705481067299843, -0.00993676483631134, + 0.003570244647562504, 0.016686107963323593, 0.027996042743325233, -0.01236686110496521, + -0.03152467682957649, 0.007839557714760303, 0.004344213753938675, -0.0003383514122106135, + 0.010044953785836697, 0.0030501040164381266, 0.03492015600204468, -0.011135168373584747, + 0.028195777907967567, 0.012042293325066566, -0.0037491729017347097, -0.012433439493179321, + -0.0036430642940104008, 0.020838910713791847, 0.0015583409694954753, -0.01815914548933506, + -0.016353217884898186, 0.01942412741482258, 0.013748354278504848, 0.004319246858358383, + -0.018458746373653412, -0.011251679621636868, -0.011101879179477692, -0.037916164845228195, + 0.0012733039911836386, -0.001184880151413381, -0.003466216381639242, -0.030426140874624252, + -0.032140523195266724, -0.0011505507864058018, -0.025865547358989716, -0.021504689007997513, + -0.010968723334372044, 0.0131824417039752, 0.03961390256881714, 0.006133497226983309, + 0.0057257069274783134, 0.021071933209896088, 0.01847539097070694, 0.01295774057507515, + -0.04350871592760086, 0.01400634367018938, 0.01413117814809084, -0.02480030059814453, + 0.0005752753932029009, -0.02067246474325657, -0.008813261054456234, -0.019856885075569153, + 0.010244688019156456, 0.0050765713676810265, -0.0033122547902166843, -0.026647839695215225, + 0.019474061205983162, 0.015828916803002357, -0.041378218680620193, 0.015412803739309311, + -0.0334387943148613, -0.02817913331091404, -0.018741702660918236, -0.011218390427529812, + -0.017792966216802597, 0.007444251328706741, 0.04307595640420914, -0.029876871034502983, + 0.032839592546224594, -0.02629830501973629, 0.02942747063934803, -0.006299941800534725, + -0.01784290000796318, 0.0042901188135147095, -0.010885501280426979, 0.0011443091789260507, + 0.013507009483873844, -0.004389985930174589, -0.02644810453057289, -0.021321600303053856, + 0.01847539097070694, -0.03638486936688423, 0.007119683548808098, -0.015246358700096607, + -0.0038719261065125465, -0.03811589628458023, 0.0015250520082190633, 0.02646474912762642, + ], + index: 81, + }, + { + title: "BATRAL-class landing ship", + text: 'The B\u00e2timent de Transport L\u00e9ger "\\Light ferry ship") are small landing ships of the French Navy. They have been used for regional transport and patrol needs in French Overseas Departments and Territories since the 1970s. On 9 January 2014 it was announced that the two remaining Batrals in French service would be replaced in 2015/16 by three 1500-tonne B\u00e2timents Multimission (B2M) at a cost of ~\u20ac100m (US$136m).', + vector: [ + -0.047751978039741516, 0.010834340937435627, -0.013125896453857422, -0.0066219219006598, + -0.026049597188830376, 0.006436575669795275, -0.013985229656100273, 0.0018176586600020528, + -0.026369741186499596, 0.005151787772774696, 0.03194698318839073, 0.0035573875065892935, + -0.007881435565650463, -0.007308546453714371, 0.012687805108726025, -0.024549975991249084, + -0.032283976674079895, -0.0019324470777064562, 0.020169060677289963, -0.0037616898771375418, + 0.015282654203474522, -0.01786065474152565, 0.007986745797097683, 0.006411300972104073, + -0.02047235518693924, -0.0005544595769606531, 0.009216771461069584, -0.009924458339810371, + 0.003178269835188985, -0.051795899868011475, 0.042629677802324295, 0.019343426451086998, + -0.006874667014926672, -0.01559437345713377, 0.0015912411035969853, -0.050346825271844864, + 0.017658459022641182, -0.012005393393337727, -0.05735629051923752, -0.01658007875084877, + 0.008311102166771889, -0.03214917704463005, -0.012114915996789932, 0.04225898161530495, + 0.0031508891843259335, -0.007607628125697374, -0.026740433648228645, 0.049403246492147446, + 0.013858857564628124, -0.007738213054835796, -0.04020332172513008, 0.03341290354728699, + -0.011264007538557053, 0.06530933827161789, 0.01652953028678894, 0.02165183238685131, + 0.0517285019159317, 0.11821731179952621, -0.040978409349918365, -0.005236036144196987, + -0.01973096840083599, -0.06116431951522827, 0.03545171394944191, -0.03418798744678497, + -0.0099160335958004, 0.027212224900722504, 0.02158443257212639, 0.04947064444422722, + -0.026049597188830376, 0.009562190622091293, -0.0010588967707008123, -0.029975570738315582, + -0.0016628522425889969, -0.004473588429391384, 0.00903984997421503, 0.03535061702132225, + 0.04967283830046654, -0.013496588915586472, -0.018315596505999565, 0.024870119988918304, + 0.026150694116950035, 0.043101467192173004, 0.008736556395888329, 0.0069715529680252075, + -0.0013985229888930917, 0.04306776821613312, -0.038686852902173996, -0.05068381875753403, + -0.038417257368564606, -0.017523661255836487, -0.003631104715168476, 0.026689883321523666, + 0.0364626944065094, 0.018163949251174927, -0.005526693072170019, 0.032115478068590164, + 0.04124800115823746, -0.0008977717370726168, 0.007464405614882708, -0.005914235487580299, + -0.03454183414578438, 0.013555563054978848, -0.034086890518665314, -0.00012874204549007118, + 0.06756719201803207, 0.012173890136182308, -0.028374850749969482, 0.03636159747838974, + -0.01961302012205124, 0.06611812114715576, -0.044921230524778366, -0.0517285019159317, + -0.06062512844800949, -0.011213458143174648, -0.02591479942202568, -0.013210144825279713, + -0.01279732771217823, -0.029891321435570717, 0.032873716205358505, 0.064803846180439, + 0.015088883228600025, -0.015333203598856926, -0.01636945828795433, -0.01007610559463501, + -0.013446040451526642, -0.05927715450525284, -0.013917830772697926, 0.04047291725873947, + 0.02606644667685032, 0.035586513578891754, -0.055098436772823334, -0.05428965017199516, + 0.0027612403500825167, -0.013597686775028706, -0.03235137462615967, 0.02655508741736412, + -0.005412958096712828, -0.03157629072666168, -0.05853576958179474, 0.006377601530402899, + -0.005252886097878218, -0.0546940416097641, 0.013151170685887337, 0.018905334174633026, + 0.0028475949075073004, -0.027970459312200546, -0.003548962762579322, 0.015400602482259274, + -0.003631104715168476, 0.005324496887624264, 0.06719650328159332, -0.00866073276847601, + 0.07508214563131332, 5.1305942179169506e-5, 0.006276503670960665, 0.011078661307692528, + -0.0721840038895607, 0.05698559805750847, 0.010994412936270237, -0.006786206271499395, + 0.005821562372148037, -0.007809823844581842, -0.04205678775906563, -0.037675872445106506, + -0.0033804660197347403, -0.009056700393557549, 0.043910250067710876, 0.03508102148771286, + 0.022511165589094162, 0.010775366798043251, 0.015872392803430557, 0.004311410244554281, + -0.026774132624268532, -0.03963043540716171, 0.04542672261595726, 0.011668399907648563, + 0.024819569662213326, 0.07663232088088989, -0.04047291725873947, -0.008669157512485981, + -0.010615294799208641, -0.023656941950321198, -0.013285968452692032, 0.022005675360560417, + -0.057929180562496185, 0.0011900082463398576, 0.07737370580434799, 0.030312564224004745, + -0.017877504229545593, -0.008871353231370449, -0.004802157171070576, -0.009216771461069584, + -0.015821844339370728, -0.004650509916245937, -0.0029044626280665398, 0.050144631415605545, + 0.0061290692538022995, -0.003018197836354375, 0.021095791831612587, -0.0046252356842160225, + 0.01578814536333084, -0.04677469655871391, -0.047111690044403076, 0.012561432085931301, + 0.047381285578012466, -0.04239378124475479, -0.014566543512046337, 0.03808026388287544, + 0.012274987995624542, -0.030211465433239937, -0.026942629367113113, -0.02197197452187538, + 0.014457020908594131, 0.03925974294543266, -0.013269118964672089, -0.008677582256495953, + -0.0033657224848866463, -0.04697689041495323, 0.06237749382853508, -0.028341151773929596, + 0.014482295140624046, 0.016596930101513863, -0.04111320525407791, 0.0046757846139371395, + -0.04027072340250015, 0.026302341371774673, 0.005092814099043608, 0.02729647234082222, + 0.0023231487721204758, -0.009267320856451988, -0.014347497373819351, 0.04178719222545624, + -0.022999806329607964, -0.06541043519973755, -0.06692690402269363, -0.020725099369883537, + 0.020219609141349792, -0.02352214604616165, -0.0009172541322186589, 0.022157322615385056, + 0.009309445507824421, 0.027953609824180603, -0.020034262910485268, -0.0028497010935097933, + 0.04229268431663513, -0.005193911958485842, -0.0001318355352850631, 0.010564745403826237, + -0.02288185805082321, 0.0019514028681442142, 0.03471032902598381, -0.020910445600748062, + 0.0021672893781214952, 0.022426916286349297, -0.0174899622797966, -0.002074616262689233, + 0.011761073023080826, 0.05449184775352478, 0.04616810753941536, -0.0005828934372402728, + -0.0026390801649540663, -0.03267151862382889, -0.026689883321523666, -0.01554382499307394, + 0.023977085947990417, -0.0018650483107194304, -0.024297229945659637, -0.04296667128801346, + -0.012443484738469124, -0.057389989495277405, -0.10507456958293915, -0.060490332543849945, + -0.00410500168800354, 0.01897273398935795, -0.03538431599736214, 0.014313798397779465, + 0.013606112450361252, 0.012418209575116634, -0.0022241570986807346, 0.03626050055027008, + 0.015577523969113827, 0.01421270053833723, -0.011727373115718365, -0.006352327298372984, + -0.029453231021761894, 0.07076863199472427, 0.028138956055045128, -0.033935245126485825, + 0.03481142595410347, 0.00036147815990261734, -0.04077621176838875, 0.0428655706346035, + 0.012965824455022812, -0.05594091862440109, 0.03653009235858917, -0.021786628291010857, + 0.030936002731323242, -0.01319329533725977, -0.04552781954407692, -0.007430706173181534, + -0.04549412056803703, 0.014010503888130188, -0.0187199879437685, -0.03182903304696083, + 0.04920104891061783, 0.007498105056583881, 0.022915557026863098, 0.029133087024092674, + -0.007388581987470388, 0.030481060966849327, 0.014305373653769493, -0.026959478855133057, + -0.025527257472276688, -0.05799657851457596, 0.000583419983740896, 0.01437277253717184, + 0.018046000972390175, -0.0333792045712471, -0.024617373943328857, 0.043371062725782394, + -0.041450198739767075, -0.006183830555528402, -0.06814008206129074, 0.0032477746717631817, + 0.026976328343153, -0.05071752145886421, 0.017607910558581352, -0.012965824455022812, + -0.00906512513756752, -0.0005439285305328667, 0.01711084507405758, -0.03774327039718628, + 0.021517034620046616, 0.006613497156649828, -0.0588727630674839, 0.013387066312134266, + 0.0024389903992414474, -0.003885956248268485, -0.012308686971664429, 0.003744840156286955, + 0.012148614972829819, -0.03760847449302673, -0.0017007640562951565, 0.010632144287228584, + -0.004722121171653271, 0.03454183414578438, 0.01389255654066801, 0.01044679805636406, + 0.007236935198307037, -0.04448314011096954, 0.0008519616676494479, 0.047583479434251785, + 0.013757758773863316, -0.015653347596526146, 0.07824988663196564, -0.042461179196834564, + 0.021601282060146332, -0.025678902864456177, 0.007034739013761282, -0.01759105920791626, + -0.023640092462301254, -0.03545171394944191, -0.03551911190152168, 0.024920668452978134, + 0.032115478068590164, 0.008728131651878357, 0.010632144287228584, 0.014836138114333153, + -0.04596590995788574, -0.00914094876497984, 0.01828189752995968, 0.004317729268223047, + -0.011558876372873783, 0.046033311635255814, 0.022528015077114105, 0.0016228342428803444, + 0.028408551588654518, -0.0052865855395793915, -0.02276390977203846, -0.003319385927170515, + 0.0293184332549572, 0.01554382499307394, -0.03642899543046951, -0.038046564906835556, + 0.042629677802324295, 0.0316605381667614, 0.0014596030814573169, 0.007965683937072754, + 0.007060013711452484, 0.010868039913475513, 0.07959786057472229, -0.021769778802990913, + 0.04498863220214844, 0.010960713028907776, -0.02953747846186161, -0.0324019230902195, + 0.001092069549486041, -0.04128170385956764, -0.011895869858562946, -0.0013616642681881785, + -0.002626443048939109, -0.011339831165969372, 0.00860597100108862, 0.026622485369443893, + -0.0008972451323643327, -0.015105732716619968, 0.013210144825279713, -0.007156899198889732, + -0.01930972747504711, -0.042730774730443954, -0.04229268431663513, -0.01978151686489582, + 0.019208628684282303, -0.017304616048932076, -0.027582917362451553, -0.038518354296684265, + 0.00534555921331048, 0.009309445507824421, -0.048864055424928665, -0.0034583956003189087, + -0.009536915458738804, 0.027010027319192886, -0.057558488100767136, 0.07285799086093903, + 0.050784919410943985, -0.017978603020310402, 0.031171897426247597, -0.017093993723392487, + -0.018433542922139168, -0.007266422268003225, 0.05530063062906265, -0.021500185132026672, + -0.04495492950081825, -0.022477464750409126, 0.032385073602199554, -0.00670617027208209, + 0.04714538902044296, -0.006432363297790289, 0.002014589263126254, 0.01117133442312479, + -0.02330309897661209, 0.03113819845020771, -0.03433963656425476, 0.006878879386931658, + -0.026740433648228645, -0.014600242488086224, 0.03417113795876503, 0.010244602337479591, + 0.022999806329607964, 0.009326294995844364, 0.0027633465360850096, 0.03727148100733757, + -0.031475190073251724, -0.022207871079444885, -0.010943863540887833, -0.005985846742987633, + 0.008277402259409428, -0.003563706064596772, -0.04677469655871391, 0.034845124930143356, + -0.015569099225103855, -0.009772811084985733, 0.006554523482918739, -0.00845432374626398, + 0.00667668366804719, -0.02409503422677517, -0.056749701499938965, -0.043371062725782394, + 0.0022747060284018517, 0.002367379143834114, -0.0357213094830513, -0.03428908810019493, + -0.05688450112938881, 0.03437333554029465, -0.01609986461699009, -0.012940550222992897, + -0.03471032902598381, 0.03278946503996849, -0.015813419595360756, -0.02222472056746483, + 0.03619309887290001, -0.024549975991249084, 0.02761661633849144, -0.013606112450361252, + 0.0036858662497252226, 0.01668117754161358, -0.03102025017142296, 0.016226235777139664, + -0.012401360087096691, -0.004401977639645338, 0.03642899543046951, -0.025443008169531822, + 0.0007845629588700831, -0.009545340202748775, -0.005236036144196987, -0.04030442237854004, + -0.033177006989717484, 0.004511500243097544, -0.03086860291659832, 0.009932883083820343, + -0.03471032902598381, -0.017776407301425934, 0.05577242374420166, 0.0246342234313488, + -0.01961302012205124, 0.020590301603078842, -0.030986551195383072, 0.03791176900267601, + 0.013538713566958904, -0.00706422608345747, -0.0021988824009895325, -0.03555281460285187, + -0.01929287798702717, -0.021685531362891197, 0.0085006607696414, 0.0068915169686079025, + 0.03551911190152168, -0.029823923483490944, -0.06231009587645531, 0.0020998907275497913, + -0.006108006928116083, -0.002236794214695692, -0.03939453884959221, -0.013900981284677982, + -0.007384369615465403, 0.018248196691274643, 0.011238732375204563, 0.020135361701250076, + 0.056817103177309036, -0.04930214583873749, 0.025173412635922432, 0.03460923209786415, + -0.019983714446425438, 0.03882164880633354, -0.00927574560046196, 0.04377545416355133, + -0.03528321906924248, -0.006815693341195583, -0.04792047291994095, 0.022426916286349297, + 0.019899465143680573, -0.006710382644087076, 0.05405375361442566, -0.008504873141646385, + -0.0045957486145198345, -0.00557302962988615, 0.06335477530956268, 0.011415654793381691, + -0.03359825164079666, -0.041820891201496124, -0.018534641712903976, -0.02532505989074707, + -0.0023736979346722364, 0.023100903257727623, -0.007447556126862764, 0.0008166826446540654, + 0.026083296164870262, -0.019174929708242416, 0.021634981036186218, 0.020708249881863594, + -0.01319329533725977, 0.010868039913475513, 0.006529248785227537, 0.01743941381573677, + 0.0018208179390057921, -0.004734758287668228, 0.00090303726028651, 0.021180041134357452, + -9.319976379629225e-5, 0.02101154439151287, 0.002466371050104499, 0.019596170634031296, + 0.0017039233352988958, -0.044011350721120834, -0.020236458629369736, 0.010960713028907776, + 0.008761830627918243, 0.0174899622797966, -0.018046000972390175, 0.005787862930446863, + -0.0024979643058031797, -0.04030442237854004, 0.012595131993293762, 0.02121374011039734, + 0.028172655031085014, -0.0010910164564847946, -0.025813700631260872, -0.021028393879532814, + 0.0485270619392395, -0.04111320525407791, -0.029031988233327866, 0.0010836446890607476, + 0.029503779485821724, -0.040607716888189316, 0.03501362353563309, 0.028138956055045128, + -0.022089922800660133, 0.025341909378767014, 0.03693448752164841, -0.002132536843419075, + -0.013757758773863316, 0.04714538902044296, 0.019865766167640686, 0.0406414158642292, + 0.025830550119280815, 0.016765426844358444, -0.006794631015509367, 0.0046757846139371395, + -0.012831026688218117, 0.00807520654052496, -0.03167738765478134, 0.013446040451526642, + 0.0054087452590465546, 0.04984133690595627, 0.0032456684857606888, 0.04222528263926506, + 0.008012020029127598, -0.007468617986887693, 0.006916791200637817, -0.04808897152543068, + 0.022359518334269524, -0.01242663525044918, 0.04397765174508095, -0.01335336733609438, + -0.03390154615044594, -0.03245247155427933, 0.010295150801539421, 0.026201244443655014, + 0.013395491056144238, 0.02271336130797863, 0.04057401418685913, 0.0470442920923233, + 0.009461091831326485, -0.01802915148437023, 0.0023062992841005325, -0.04151759669184685, + -0.011727373115718365, -0.01818079873919487, 0.034575533121824265, -0.004418827127665281, + -0.003597405506297946, -0.044550538063049316, 0.025560956448316574, -0.04330366477370262, + -0.027060577645897865, -0.0205734521150589, -0.00154911691788584, -0.002145174192264676, + 0.013707210309803486, 0.03824876248836517, -0.03491252660751343, 0.03310960903763771, + 0.020708249881863594, 0.007384369615465403, 0.04124800115823746, 0.005299222655594349, + -0.012544582597911358, 0.00593108544126153, 0.013681935146450996, -0.010775366798043251, + -0.04525822401046753, -0.04084360972046852, -0.04178719222545624, -0.011954843997955322, + 0.005248673725873232, -0.022511165589094162, -0.017557360231876373, -0.0037174595054239035, + -0.011120785027742386, -0.010312000289559364, 0.03545171394944191, -0.011137634515762329, + -0.014794014394283295, -0.03481142595410347, -0.007847735658288002, 0.029655426740646362, + -0.020910445600748062, -0.019916314631700516, 0.00508017698302865, -0.012005393393337727, + 0.006899941712617874, -0.03149203956127167, 0.0036879724357277155, 0.00028670774190686643, + -0.003083490300923586, -0.02643713913857937, -0.02399393543601036, -0.010092955082654953, + -0.010859615169465542, -0.023235701024532318, -0.0023715917486697435, -0.003142464207485318, + -0.008222641423344612, 0.024769021198153496, 0.0333792045712471, 0.016824400052428246, + 0.00603639567270875, 0.011718948371708393, 0.0009930776432156563, -0.013285968452692032, + 0.021146342158317566, 0.002685416955500841, -0.030295714735984802, 0.0016007190570235252, + 0.004035497084259987, 0.002546407049521804, -0.002091465750709176, -0.059614147990942, + 0.014296948909759521, 0.02224157005548477, -0.0008930327603593469, -0.0043851276859641075, + 0.04158499464392662, 0.01866943947970867, -0.0182313472032547, 0.023640092462301254, + -0.004054452758282423, 0.03700188547372818, -0.03096970170736313, 0.011685249395668507, + -0.007835098542273045, 0.04165239632129669, 0.01433907262980938, 0.004612598568201065, + -0.01626836135983467, 0.02069140039384365, -0.006929428782314062, -0.010472072288393974, + -0.005349771585315466, 0.0006945225177332759, -0.02766716480255127, 0.0025864250492304564, + -0.0039407177828252316, 0.028273753821849823, 0.021078942343592644, 0.047313883900642395, + -0.022679662331938744, 0.0031319332774728537, -0.0033909969497472048, 0.004248224198818207, + -0.0014006291748955846, 0.02793676033616066, -0.0475497804582119, -0.004031284712255001, + -0.03747367486357689, 0.006124856416136026, 0.007889860309660435, -0.0026980540715157986, + 0.007902497425675392, 0.02335364930331707, -0.012687805108726025, -0.04158499464392662, + 0.019714118912816048, -0.03273891657590866, -0.024600524455308914, 0.016445282846689224, + 0.022157322615385056, -0.027380721643567085, 0.005926873069256544, 0.04168609529733658, + -0.0035363254137337208, 0.033025361597537994, 0.045831114053726196, 0.012519308365881443, + 0.02190457656979561, -0.03221657872200012, 0.01545957662165165, -0.051357805728912354, + 0.0014827713603153825, 0.012788902968168259, 0.0045746867544949055, 0.009907608851790428, + 0.04404504969716072, -0.05698559805750847, 0.02805470861494541, 0.027212224900722504, + 0.013614537194371223, 0.015602798201143742, -0.0023905476555228233, 0.019663570448756218, + 0.02761661633849144, 0.022578563541173935, -0.006255441810935736, -0.021988825872540474, + 0.01652110554277897, 0.01865258999168873, 0.007455980870872736, -0.028644446283578873, + -0.0011447247816249728, -0.02015221118927002, 0.060692526400089264, 0.003928080201148987, + 0.006836755201220512, 0.004869556054472923, 0.02089359611272812, 0.014010503888130188, + 0.034036342054605484, 0.01578814536333084, -0.054087456315755844, 0.0059395101852715015, + 0.036867085844278336, -0.014204275794327259, -0.03081805445253849, 0.018062850460410118, + 0.018315596505999565, 0.0008351120050065219, 0.0006466062623076141, -0.02293240651488304, + -0.00989075843244791, 0.0026348677929490805, 0.008778680115938187, -0.005800500512123108, + 0.0015312141040340066, 0.0027043726295232773, -0.006908366456627846, -0.0014975147787481546, + -0.009326294995844364, -0.06116431951522827, 0.022477464750409126, 0.00716953631490469, + 0.004237693268805742, 0.020506054162979126, 0.024330928921699524, 0.00844589900225401, + -0.04377545416355133, -0.007418069057166576, 0.04121430218219757, 0.021196890622377396, + -0.011710523627698421, 0.0021335899364203215, -0.005311859771609306, -0.00044677965342998505, + 0.03290741518139839, -0.02687523141503334, -0.039967428892850876, 0.026268642395734787, + 0.0013879919424653053, 0.01807969994843006, -0.012805752456188202, 0.05570502206683159, + -0.0341205894947052, -0.012114915996789932, 0.027127975597977638, -0.022426916286349297, + 0.00393018638715148, -0.015569099225103855, 0.026521386578679085, 0.0021588646341115236, + -0.014414896257221699, 0.02357269451022148, 0.03449128195643425, 0.024769021198153496, + 0.027852511033415794, 0.03108764998614788, -0.006874667014926672, -0.018534641712903976, + 0.007776124868541956, 0.02714482508599758, -0.01154202688485384, 0.0025843188632279634, + -0.020489204674959183, -8.082578278845176e-5, -0.0003733256016857922, 0.016032464802265167, + -0.001048365724273026, 5.525508458958939e-5, -0.007211660500615835, 0.01060687005519867, + 0.039158642292022705, 0.02842540107667446, 0.055536527186632156, -0.016487406566739082, + -0.022966105490922928, 0.018467243760824203, 0.040978409349918365, 0.013446040451526642, + 0.003580555785447359, -0.0043050916865468025, 0.0331433080136776, -0.013934680260717869, + -0.022831309586763382, 0.01389255654066801, -0.03444073349237442, 0.010834340937435627, + 0.0035763434134423733, 0.02234266884624958, -0.007308546453714371, 0.036327898502349854, + 0.025662053376436234, -0.033345505595207214, -0.0023105116561055183, 0.041349101811647415, + -0.0024179283063858747, -0.0029149935580790043, -0.014482295140624046, -0.009781235828995705, + 0.04380915313959122, -0.014457020908594131, -0.03774327039718628, -0.036395296454429626, + -0.004172400571405888, -0.027262773364782333, -0.014937235973775387, -0.0026011685840785503, + 0.02202252484858036, 0.008702856488525867, -0.03700188547372818, 0.01578814536333084, + 0.01005083043128252, 0.017287766560912132, 0.01695919781923294, -0.02000056393444538, + -0.032604120671749115, -0.023067204281687737, -0.008563847281038761, -0.01178634725511074, + 0.013513438403606415, -0.0016565335681661963, -0.007569716311991215, -0.021887727081775665, + -0.005501418840140104, -0.005897385999560356, 0.032553572207689285, -0.03160998970270157, + -0.04367435723543167, -0.021786628291010857, -0.01770900748670101, 0.032115478068590164, + 0.03230082616209984, 0.0005971103091724217, 0.00771715072914958, -0.03784436732530594, + 0.005282372701913118, -0.006364964414387941, -0.011339831165969372, 0.029722824692726135, + 0.02616754360496998, -0.031542591750621796, -0.027094276621937752, -0.04899885132908821, + -0.03535061702132225, -0.0065713729709386826, 0.02805470861494541, -0.04077621176838875, + -0.0028433825355023146, -0.03460923209786415, -0.010682693682610989, 0.0110870860517025, + -0.028122106567025185, 0.04640400409698486, 0.053716760128736496, -0.024920668452978134, + -0.03368249908089638, 0.013917830772697926, 0.03491252660751343, -0.021230589598417282, + -0.03619309887290001, -0.00922519713640213, 0.008403775282204151, 0.03059900924563408, + 0.009157798252999783, 0.04394394904375076, 0.024162432178854942, -0.003464714391157031, + -0.0396641343832016, -0.052436187863349915, -0.03760847449302673, 0.017085568979382515, + -0.033564552664756775, 0.0006092210533097386, -0.04768458008766174, -0.022275269031524658, + 0.0005644640768878162, 0.024971216917037964, -0.010194052942097187, 0.03027886524796486, + 0.006925215944647789, -0.009081974625587463, -0.0035721310414373875, 0.001643896335735917, + 0.000724009471014142, -0.03332865610718727, -0.020455503836274147, -0.004612598568201065, + 0.004692634101957083, 0.04569631814956665, 0.028088407590985298, 0.005425595212727785, + 0.03447443246841431, 0.016504256054759026, -0.01117133442312479, -0.013311242684721947, + -0.0007724522729404271, -0.029790224507451057, -0.003578449599444866, -0.01053104642778635, + -0.037136681377887726, 0.023387348279356956, -0.0070726508274674416, -0.008803955279290676, + 0.01178634725511074, -0.0031003400217741728, -0.04417984560132027, -0.0026180180720984936, + 0.024667922407388687, 0.004351428244262934, -0.019697269424796104, -0.008770255371928215, + 0.0019092786824330688, 0.018163949251174927, 0.029402682557702065, 0.01535847783088684, + -0.005391895771026611, -0.02815580554306507, -0.01754051074385643, 0.004210312385112047, + 0.015307929366827011, -0.02436462976038456, -0.01610828936100006, 0.048021573573350906, + -0.007565503939986229, -0.026571936905384064, -0.02357269451022148, 0.00011854009062517434, + -0.013319667428731918, -0.0012868938501924276, -0.0205734521150589, 0.025089165195822716, + 0.026571936905384064, 0.009975006803870201, -0.008761830627918243, 0.009023000486195087, + 0.016917072236537933, 0.045561518520116806, -0.004789520055055618, 0.013100622221827507, + 0.028004158288240433, 0.03679968789219856, -0.043842852115631104, -0.011693674139678478, + 0.005353983957320452, 0.04047291725873947, -0.012595131993293762, 0.013690360821783543, + 0.004814794287085533, 0.022831309586763382, -0.003959673456847668, 0.03508102148771286, + 0.006495549343526363, 0.041450198739767075, -0.02222472056746483, 0.020017413422465324, + 0.011685249395668507, -0.03305906057357788, 0.026251792907714844, -0.0006445000180974603, + -0.0379454679787159, 0.0003462081658653915, 0.03241877257823944, 0.02458367496728897, + 0.020388105884194374, -0.04471903666853905, 0.007257997058331966, 0.021921426057815552, + -0.028021007776260376, 0.00020864636462647468, -0.025527257472276688, 0.023808589205145836, + 0.003976522944867611, 0.018703138455748558, -0.0010467859683558345, -0.03268836811184883, + -0.025207113474607468, -0.013698785565793514, -0.018147099763154984, 0.03064955770969391, + 0.018736837431788445, 0.01021090243011713, -0.008492236025631428, 0.03588980808854103, + 0.013799883425235748, -0.005530905444175005, 0.01444859616458416, -0.06055773049592972, + 0.013673510402441025, 0.0016933922888711095, 0.0031403580214828253, -0.0001532267197035253, + 0.009317870251834393, -0.03268836811184883, -0.001716560567729175, 0.062242697924375534, + -0.04131540283560753, -0.027178524062037468, -0.04020332172513008, -0.033665649592876434, + 0.0059689972549676895, 0.06618551909923553, -0.021618131548166275, -0.02377489022910595, + -0.011693674139678478, -0.015291079878807068, -0.01924232766032219, -0.02025330811738968, + -0.009023000486195087, 0.02985762245953083, 0.029925022274255753, 0.0037216718774288893, + 0.027919910848140717, -0.010135078802704811, 0.013100622221827507, -0.021146342158317566, + 0.009014575742185116, -0.0015501700108870864, 0.0070726508274674416, -0.012030667625367641, + 0.01170209888368845, -0.01522368099540472, 0.013125896453857422, 0.02357269451022148, + -0.009444242343306541, -0.009014575742185116, 0.0210620928555727, -0.015316354110836983, + -0.01012665405869484, 0.0005565658211708069, -0.008306889794766903, -0.01117133442312479, + -0.0008335323072969913, 0.04242748022079468, -0.0005555127281695604, 0.00619646767154336, + 0.028964590281248093, 0.00577101344242692, 0.02778511308133602, -0.006398663856089115, + -0.010842765681445599, 0.004616810940206051, 0.002868657000362873, 0.002999241929501295, + -0.0013690360356122255, 0.032334525138139725, -0.012611981481313705, 0.020927295088768005, + -0.004187143873423338, -0.008837654255330563, 0.01023617759346962, -0.025763152167201042, + 0.02778511308133602, 0.03391839563846588, 0.0003032941312994808, -0.01357241254299879, + 0.018416693434119225, -0.0022304756566882133, -0.003725884249433875, -0.016588503494858742, + 0.013538713566958904, 0.000825634051579982, -0.03551911190152168, -0.0005128619377501309, + 0.03198068216443062, 0.0014827713603153825, -0.0032140754628926516, 0.013985229656100273, + -0.014920386485755444, 0.011752648279070854, -0.013547138310968876, -0.0027022664435207844, + -0.00018179218750447035, 0.024381479248404503, -0.003856469178572297, -0.009671713225543499, + -0.01781010627746582, -0.01234238687902689, -0.017102420330047607, 0.010345700196921825, + 0.011533602140843868, 0.014010503888130188, 0.017405712977051735, -0.007316971197724342, + 0.03336235508322716, -0.009292595088481903, -0.0027085852343589067, 0.022140471264719963, + 0.016377883031964302, -0.015914516523480415, 0.04269707575440407, 0.01764160953462124, + -0.03471032902598381, -0.011390379630029202, 0.008896628394722939, -0.011070235632359982, + 0.003776433179154992, -0.006963127758353949, 0.023050354793667793, 0.00329200504347682, + -0.02606644667685032, -0.003949142526835203, 0.003321492113173008, 0.028138956055045128, + 0.0032646243926137686, -0.01506360899657011, 0.020067961886525154, -0.028812943026423454, + 0.0006460797158069909, 0.02197197452187538, -0.020067961886525154, -0.03378359600901604, + 0.015771295875310898, 0.006714595016092062, 0.011112360283732414, -0.027111126109957695, + -0.012679380364716053, 0.04808897152543068, 0.039900027215480804, 0.038518354296684265, + 0.00459996098652482, -0.01898958347737789, 0.03615939989686012, -0.029840772971510887, + -0.0349799245595932, -0.0066514089703559875, 0.0017397288465872407, 0.029739676043391228, + 0.03828246146440506, -0.0008282667840830982, 0.01845039427280426, -0.047111690044403076, + -0.005581454839557409, -0.017978603020310402, -0.012283412739634514, 0.0016860205214470625, + 0.03386784717440605, 0.001757631660439074, -0.01988261565566063, 0.030093519017100334, + -0.035215821117162704, 0.016066163778305054, -0.0031993319280445576, 0.009562190622091293, + 0.016024040058255196, -0.011803196743130684, -0.010960713028907776, -0.009503216482698917, + 0.02527451142668724, 0.034356486052274704, 0.001222654478624463, 0.04546042159199715, + -0.004307197872549295, -0.009949732571840286, 0.020876746624708176, 0.007995170541107655, + -0.026622485369443893, 0.011432504281401634, 0.041719794273376465, -0.017557360231876373, + -0.0036353173200041056, -0.013749334029853344, -0.03219972923398018, 0.013361792080104351, + 0.013521864078938961, 0.02714482508599758, -0.019006432965397835, 0.0031888007652014494, + -0.028408551588654518, 0.01529950462281704, 0.020303858444094658, -0.0037364151794463396, + 0.0052065495401620865, -0.00014230076340027153, 0.0507512204349041, -0.009006150998175144, + -0.0022978743072599173, 0.029722824692726135, 0.00935999397188425, 0.02554410696029663, + 0.0006497655413113534, -0.025527257472276688, 0.007308546453714371, -0.04579741507768631, + 0.03599090501666069, -0.006883091758936644, 0.0008514351211488247, -0.0282063540071249, + 0.0069715529680252075, -0.01834929548203945, -0.013909406028687954, -0.004869556054472923, + 0.0044651636853814125, 0.015240530483424664, 0.024027636274695396, -0.019056981429457664, + 0.029807073995471, 0.004081833641976118, -0.020657701417803764, 0.02170238085091114, + -0.02739757113158703, 0.013858857564628124, 0.02825690433382988, 0.022106772288680077, + 0.005910023115575314, -0.012628830969333649, -0.006124856416136026, -0.007375944871455431, + 0.01770900748670101, 0.0264876876026392, 0.00288550672121346, 0.019798368215560913, + -0.0010520515497773886, 0.03514841943979263, 0.025560956448316574, 0.0055182683281600475, + -0.011019687168300152, 0.032283976674079895, -0.01572917029261589, -0.014928811229765415, + 0.010295150801539421, 0.03912494331598282, -0.01567019708454609, 0.011120785027742386, + -0.009932883083820343, -0.008525935001671314, 0.013858857564628124, 0.014996210113167763, + -0.008862928487360477, -0.006402876228094101, -0.009562190622091293, -0.019663570448756218, + 0.012165464460849762, -0.001101547502912581, 0.004743183497339487, -0.03899014741182327, + -0.0008272136910818517, 0.029874471947550774, 0.03358140215277672, 0.007055801339447498, + -0.013783033937215805, 0.025493556633591652, -0.024280380457639694, 0.045932210981845856, + 0.019545622169971466, -0.019697269424796104, -0.0002132536901626736, -0.013715635053813457, + -3.0062847145018168e-5, -0.02222472056746483, -0.021348537877202034, 0.025257661938667297, + 0.01961302012205124, 0.003586874343454838, 0.020977845415472984, -0.026453988626599312, + -0.0037848581559956074, 0.027279622852802277, 0.01877053640782833, -0.010910164564847946, + -0.03454183414578438, -0.023100903257727623, -5.1470487960614264e-5, -0.027582917362451553, + 0.005332922097295523, 0.0029255247209221125, 0.005741526372730732, -0.015796570107340813, + 0.0182313472032547, -0.0054087452590465546, 0.01904013194143772, 0.020455503836274147, + 0.018163949251174927, -0.006175405811518431, 0.003955461084842682, -0.006348114926367998, + 0.01599034108221531, 0.003367828670889139, -0.04670729860663414, -0.01679070107638836, + -0.004321941640228033, -0.007055801339447498, -0.0028644446283578873, 0.04920104891061783, + 0.02101154439151287, 0.0030582158360630274, -0.009983432479202747, 0.030615858733654022, + 0.03993372991681099, -0.00807520654052496, 0.010067680850625038, -0.01117133442312479, + -0.022848159074783325, 0.0023736979346722364, -0.005690977443009615, -0.015855543315410614, + 0.029284734278917313, 0.004743183497339487, 0.044651638716459274, 0.012864726595580578, + 0.0007882488425821066, -0.02212362177670002, -0.05203179270029068, -0.013370216824114323, + 0.010059255175292492, -0.022528015077114105, 0.00015796569641679525, 0.06163610890507698, + -0.010842765681445599, -0.021618131548166275, -0.0018587297527119517, 0.010312000289559364, + 0.0052865855395793915, 0.026959478855133057, 0.006503974087536335, 0.007797186728566885, + 0.007814036682248116, -0.021247439086437225, -0.03710298240184784, -0.0012858407571911812, + -0.03855205327272415, -0.0033278106711804867, -0.0034963074140250683, -0.023808589205145836, + 0.016386307775974274, 0.022157322615385056, 0.0032477746717631817, -0.02025330811738968, + -0.0033446603920310736, -0.02554410696029663, 0.001370089128613472, -0.02537561021745205, + 0.018298747017979622, -0.007430706173181534, 0.037237782031297684, -0.03754107281565666, + 0.027279622852802277, 0.016664328053593636, -0.01106181088835001, 0.008677582256495953, + -0.04417984560132027, -0.019764667376875877, -0.03378359600901604, -0.011963268741965294, + -0.0012416103854775429, -0.031272996217012405, 0.018366144970059395, 0.03838355839252472, + -0.03882164880633354, 0.008538572117686272, 0.013201720081269741, -0.0031235083006322384, + -0.003970204386860132, -0.003108764998614788, -0.010817490518093109, -0.003382572205737233, + -0.032334525138139725, 0.009646438993513584, 0.0210620928555727, -0.002321042586117983, + 0.03784436732530594, -0.012114915996789932, 0.002936055650934577, -0.01663905382156372, + 0.01522368099540472, 0.00975596159696579, -0.04296667128801346, 0.0068114809691905975, + -0.01993316411972046, -0.0012753097107633948, 0.003907018341124058, -0.024347780272364616, + 0.02618439309298992, 0.038046564906835556, -0.015392177738249302, 0.03460923209786415, + 0.004460951313376427, 0.03348030149936676, 0.023016655817627907, 0.019276026636362076, + -0.019916314631700516, -0.0025843188632279634, 0.0018987476360052824, 0.024769021198153496, + -0.02714482508599758, -0.00667668366804719, 0.008028869517147541, 0.010741667822003365, + 0.02153388410806656, -0.012940550222992897, -0.008997726254165173, 0.03219972923398018, + 0.0019261284032836556, -0.033446602523326874, 0.021129490807652473, 0.001992474077269435, + 0.0025527256075292826, 0.021685531362891197, -0.00786037277430296, 0.01909068040549755, + -0.007826673798263073, -0.01909068040549755, 0.00017205097537953407, 0.004612598568201065, + 0.0055688172578811646, -0.024971216917037964, -0.02047235518693924, 0.0011468309676274657, + -0.050784919410943985, -0.02660563588142395, -0.011533602140843868, 0.021129490807652473, + 0.007249572314321995, 0.014600242488086224, -0.00399969145655632, 0.0011320875491946936, + 0.016512680798768997, -0.008226853795349598, -0.043910250067710876, -0.028071558102965355, + 0.021314838901162148, -0.008302677422761917, 0.05479514226317406, 0.028880340978503227, + 0.012013818137347698, -0.021129490807652473, -0.0063607520423829556, -0.0007608681335113943, + -0.011314556002616882, -0.021196890622377396, -0.02884664200246334, 0.0006376548553816974, + -0.03017776645720005, 0.03865315392613411, 0.010834340937435627, -0.034845124930143356, + 0.005059114657342434, -0.010960713028907776, 0.019158080220222473, 0.0015027803601697087, + ], + index: 82, + }, + { + title: "Historical parks of Thailand", + text: "Historical parks in Thailand (Thai: \u0e2d\u0e38\u0e17\u0e22\u0e32\u0e19\u0e1b\u0e23\u0e30\u0e27\u0e31\u0e15\u0e34\u0e28\u0e32\u0e2a\u0e15\u0e23\u0e4c) are managed by the Fine Arts Department, a sub-division of the Ministry of Education. There are currently ten parks, with four them registered as World Heritage Sites by the UNESCO.", + vector: [ + 0.027070073410868645, 0.0030636305455118418, -0.026276154443621635, 0.007753514684736729, + 0.046072907745838165, 0.043767981231212616, 0.0015878378180786967, -0.02827375754714012, + -0.018695509061217308, -0.012209705077111721, -0.012600261718034744, -0.007836747914552689, + -0.0037391020450741053, -0.02617371454834938, 0.029503051191568375, -0.01740219071507454, + -0.04448506981134415, -0.027607889845967293, 0.03928618133068085, -0.005637464579194784, + -0.022677909582853317, 0.0053077321499586105, -0.019066859036684036, -0.03144943341612816, + 0.020667502656579018, 0.032653115689754486, 0.011249318718910217, -0.010244115255773067, + -0.009091651998460293, 0.028529860079288483, -0.013278934173285961, 0.004376158118247986, + 0.08430906385183334, -0.011799939908087254, -0.01489238254725933, 0.016224117949604988, + 0.03828737884759903, -0.0028347386978566647, -0.020321764051914215, 0.014264930039644241, + 0.02993842586874962, -0.06607454270124435, 0.036008063703775406, 0.03260189667344093, + 0.01866989955306053, -0.030962837859988213, -0.030348191037774086, -0.05536944046616554, + -0.01975833624601364, -0.009840752929449081, -0.004126457497477531, -0.021320564672350883, + -0.01791439577937126, 0.033831190317869186, -0.03431778401136398, 0.008675484918057919, + 0.015571055002510548, 0.06668918579816818, 0.0191308856010437, 0.08005776256322861, + 0.03703247755765915, 0.06909655779600143, -0.0532693974673748, -0.001645460957661271, + 0.044305797666311264, -0.01732536032795906, 0.0039503867737948895, -0.018823562189936638, + -0.028171315789222717, -0.00284594320692122, 0.0035246158950030804, -0.003777517471462488, + -0.017773538827896118, 0.018311355262994766, 0.04415213689208031, -0.039439842104911804, + 0.02269071526825428, 0.05900610238313675, 0.004965194500982761, 0.028581080958247185, + 0.03790322691202164, -0.052910853177309036, -0.04922297224402428, 0.01756865717470646, + -0.05180961266160011, -0.030732344835996628, -0.0009747915901243687, -0.03052746318280697, + -0.007439788430929184, 0.01476433128118515, -0.02768472023308277, 0.019322961568832397, + -0.03459949791431427, 0.008707498200237751, -0.00952062476426363, 0.0122865354642272, + -0.006562636233866215, 0.03211529925465584, 0.025763949379324913, 0.0016934802988544106, + 0.035751961171627045, -0.009322145022451878, -0.02088518999516964, -0.025827975943684578, + -0.020040050148963928, -0.07140148431062698, -0.03475315868854523, -0.029682323336601257, + 0.029298169538378716, 0.013970412313938141, 0.0016078458866104484, -0.009117262437939644, + 0.041002072393894196, 0.05782802775502205, -0.03552147001028061, 0.026942022144794464, + 0.021410200744867325, -0.022793155163526535, -0.03611050546169281, 0.07452593743801117, + -0.020321764051914215, 0.008816341869533062, 0.02197362668812275, -0.015673495829105377, + -0.023497438058257103, 0.013688698410987854, -0.025559067726135254, -0.008304135873913765, + -0.010500217787921429, -0.013599062338471413, -0.00784315075725317, 0.04031059145927429, + 0.009098054841160774, 0.022741936147212982, -0.035880014300346375, -0.03070673532783985, + 0.0019671902991831303, 0.014777136035263538, -0.02683958224952221, -0.020910799503326416, + -0.015199705958366394, 0.008361758664250374, -0.022370586171746254, -0.023010844364762306, + -0.009527026675641537, -0.016211312264204025, -0.007081244606524706, 0.04947907477617264, + -0.0026826777029782534, 0.043767981231212616, 0.021819965913891792, 0.01865709386765957, + -0.044946055859327316, 0.030604293569922447, -0.03716052696108818, -0.01933576725423336, + -0.04010571166872978, 0.028965234756469727, -0.033651918172836304, -0.023971229791641235, + -0.021410200744867325, 0.008144071325659752, 0.005144466646015644, -0.0033229347318410873, + -0.011044436134397984, 0.006162475328892469, 0.019643090665340424, -0.02763350121676922, + 0.01310606487095356, 0.011710303835570812, 0.0029211733490228653, 0.000725891615729779, + -0.029323779046535492, -0.0330628827214241, 0.007042828947305679, -0.025892000645399094, + -0.02214009314775467, -0.011876771226525307, -0.026813970878720284, -0.04264112934470177, + 0.006709895562380552, 0.004180879332125187, 0.042052093893289566, 0.007849553599953651, + 0.010929190553724766, 0.05234742909669876, -0.028068875893950462, -0.017043646425008774, + -0.046329010277986526, 0.06228422001004219, -0.01745341159403324, 0.026737140491604805, + 0.05526700243353844, 0.003716693026944995, -0.016121676191687584, -0.051860831677913666, + 0.05332062020897865, 0.051988884806632996, -0.020654696971178055, 0.009936791844666004, + 0.0025594281032681465, -0.02214009314775467, 0.020782748237252235, 0.023433413356542587, + -0.047122929245233536, -0.0019511837745085359, -0.010557841509580612, -0.007330944761633873, + 0.030373800545930862, 0.08943112194538116, -0.024176111444830894, -0.026813970878720284, + -0.0074782040901482105, -0.00800961721688509, -0.05941586568951607, 0.03506048396229744, + 0.04189842939376831, 0.01505884900689125, 0.0648452490568161, -0.011838355101644993, + 0.0020984429866075516, 0.005118856206536293, 0.02335658296942711, 0.010685892775654793, + -0.014815551228821278, -0.04005448892712593, -0.019604675471782684, 0.04458751156926155, + 0.02080835960805416, -0.006697090342640877, 0.04965834692120552, -0.006876362022012472, + -0.012382574379444122, -0.031346991658210754, 0.006428182125091553, 0.0764210969209671, + 0.01677473820745945, -0.07949433475732803, -0.006825141608715057, 0.033831190317869186, + -0.0006346549489535391, 0.054959677159786224, -0.04387042298913002, -0.001497401506640017, + -0.014674695208668709, 0.00333894114010036, 0.00758064491674304, -0.014700304716825485, + 0.04781440645456314, 0.0625915452837944, 0.029503051191568375, -0.026788361370563507, + -0.000799921341240406, 0.04136061295866966, -0.016198506578803062, 0.036853205412626266, + 0.007638268172740936, 0.02558467723429203, 0.004241704009473324, -0.01224812027066946, + -0.026224935427308083, 0.011543837375938892, -0.008060838095843792, -0.009021223522722721, + -0.06172079220414162, 0.05227059870958328, -0.03974716737866402, 0.016877179965376854, + -0.00659464905038476, 0.010916384868323803, -0.01321490854024887, -0.033651918172836304, + 0.00305082555860281, 0.05577920749783516, 0.048966869711875916, 0.04484361410140991, + 0.020488230511546135, -0.010052038356661797, 0.002162468619644642, 0.06090126559138298, + -0.022370586171746254, -0.015378978103399277, -0.04105329141020775, 0.035495858639478683, + -0.019566260278224945, 0.03234579414129257, -0.03605928644537926, 0.012363366782665253, + 0.047916848212480545, -0.012517028488218784, -0.01941259764134884, -0.0485571064054966, + 0.028401808813214302, -0.07780405133962631, -0.007183685898780823, -0.0053493487648665905, + -0.03375435993075371, 0.012152081355452538, -0.03623855859041214, -0.015289342030882835, + 0.023420607671141624, 0.008195292204618454, -0.030604293569922447, 0.0017414995236322284, + -0.04202648252248764, 0.018272940069437027, -0.014405786991119385, 0.0382617712020874, + 0.007606255356222391, -0.04302528500556946, 0.0036974851973354816, -0.05516456067562103, + -0.06627942621707916, 0.03431778401136398, -0.015891183167696, -0.006780323572456837, + -0.018964417278766632, 0.005663075018674135, 0.010180089622735977, 0.03442022576928139, + -0.020360179245471954, 0.016300948336720467, -0.021487031131982803, 0.007350152358412743, + 0.0301176980137825, -0.002828336087986827, 0.03915812820196152, -0.050554707646369934, + 0.043767981231212616, -0.022511443123221397, 0.016006430611014366, -0.05557432398200035, + -0.012645079754292965, -0.009450196288526058, 0.07027462869882584, -0.016262533143162727, + -0.01224812027066946, 0.023382192477583885, -0.00045498277177102864, -0.04927419498562813, + 0.011415786109864712, 0.01900283433496952, 0.003758309641852975, 0.01601923443377018, + 0.02696763351559639, -0.03057868406176567, -0.02919572778046131, 0.060542721301317215, + 0.024419410154223442, 0.008348953910171986, 0.000560225045774132, -0.025072472169995308, + -0.03431778401136398, 0.01933576725423336, 0.03183358907699585, -0.0028587484266608953, + 0.055932868272066116, 0.006287325639277697, 0.06187445670366287, 0.001317329122684896, + -0.003927977755665779, -0.007811137940734625, -0.02294681780040264, 0.017338164150714874, + 0.06894289702177048, 0.02642981708049774, 0.02868352271616459, 0.03662271052598953, + -0.00395358819514513, 0.006626661866903305, 0.021192513406276703, -0.014162489213049412, + -0.0017046848079189658, 0.02814570628106594, 0.019553454592823982, 0.02189679630100727, + -0.005218096077442169, 0.01046180259436369, 0.014751525595784187, -0.041002072393894196, + 0.03070673532783985, 0.009392572566866875, 0.030553072690963745, 0.03782639652490616, + 0.027018854394555092, -0.02881157398223877, 0.051066912710666656, -0.0625915452837944, + 0.01430334523320198, -0.020437009632587433, 0.025341380387544632, 0.03045063279569149, + -0.020142491906881332, -0.04043864458799362, 0.027735941112041473, 0.010186491534113884, + -0.015891183167696, -0.028068875893950462, -0.04922297224402428, -0.05654751509428024, + 0.025315769016742706, -0.03703247755765915, 0.046738773584365845, 0.025763949379324913, + -0.015750326216220856, -0.02005285583436489, 0.031014058738946915, 0.05301329493522644, + -0.001751103438436985, 0.006428182125091553, -0.061925675719976425, 0.02490600384771824, + -0.014661889523267746, 0.0020104076247662306, 0.016249727457761765, 0.016761932522058487, + -0.025827975943684578, 0.03142382204532623, -0.013112467713654041, -0.0002194881672039628, + -0.008880367502570152, 0.03283238783478737, -0.027121294289827347, 0.02173032984137535, + -0.020232127979397774, 0.021141292527318, -0.047532692551612854, 0.015366172417998314, + 0.023996839299798012, -0.02512369304895401, -0.05506211891770363, -0.00859865453094244, + -0.0051316614262759686, 0.01404724270105362, -0.028657911345362663, 0.0074269832111895084, + -0.039363011717796326, 0.04243624582886696, 0.04256429895758629, 0.015366172417998314, + 0.004180879332125187, -0.054754793643951416, 0.029221337288618088, -0.0012300941161811352, + -0.031475044786930084, 0.01815769448876381, -0.0492485836148262, -0.01769670844078064, + 0.04658511281013489, 0.04177037999033928, -0.04684121534228325, 0.0036046479362994432, + 0.02470112219452858, 0.05321817845106125, 0.00880993902683258, -0.007388568017631769, + 0.014661889523267746, -0.0341385118663311, -0.0038991663604974747, 0.0005058031529188156, + -0.0002895162906497717, 0.021064462140202522, 0.02567431330680847, -0.04282040148973465, + -0.027966434136033058, -0.0498376190662384, 0.03539341688156128, 0.011979212053120136, + -0.008361758664250374, 0.03741662949323654, 0.03941423445940018, 0.003244503401219845, + -0.040080100297927856, 0.035547077655792236, -0.018772341310977936, -0.007170880679041147, + 0.006914777681231499, 0.006434584967792034, -0.009059639647603035, -0.037262968719005585, + -0.041206952184438705, 0.016621077433228493, 0.033575087785720825, 0.03810810670256615, + 0.06822580844163895, -0.023932814598083496, 0.007727904245257378, 0.025687118992209435, + 0.015122874639928341, 0.02906767651438713, 0.01954064890742302, -0.010455399751663208, + 0.03070673532783985, 0.022319365292787552, -0.019643090665340424, -0.0051060509867966175, + -0.011025228537619114, -0.0150332385674119, 0.028324978426098824, 0.009392572566866875, + -0.05367916449904442, 0.022319365292787552, 0.004244904965162277, -0.010621867142617702, + 0.0028811574447900057, 0.03452266752719879, 0.01136456523090601, 0.0544474720954895, + 0.0015038041165098548, 0.029707932844758034, 0.0013021230697631836, -0.01063467189669609, + -0.018990028649568558, 0.008252914994955063, -0.0020888391882181168, 0.05367916449904442, + 0.012485015206038952, -0.0095398323610425, 0.004270515404641628, -0.006914777681231499, + 0.0017879181541502476, 0.04307650402188301, -0.038773976266384125, -0.0035150120966136456, + -0.027992043644189835, -0.008316940627992153, -0.056342631578445435, -0.015250925906002522, + -0.051015693694353104, -0.02735178731381893, 0.014982018619775772, 0.0124594047665596, + -0.010135271586477757, -0.02621212974190712, 0.01496921293437481, -0.015878377482295036, + -0.03616172447800636, 0.007350152358412743, -6.127461529104039e-5, -0.03019452840089798, + -0.03780078515410423, -0.03170553594827652, 0.012299340218305588, -0.018400991335511208, + -0.05011933296918869, -0.02385598234832287, 0.0039087701588869095, 0.006588246673345566, + -0.0008971603820100427, -0.016300948336720467, -0.017594268545508385, -0.01920771598815918, + 0.00788796879351139, 0.01241458673030138, -0.015314952470362186, -0.017427800223231316, + -0.009680688381195068, -0.04451068118214607, 0.016326557844877243, 0.0011356561444699764, + 0.011947198770940304, 0.027992043644189835, 0.001271710847504437, -0.006946790497750044, + -0.024777952581644058, -0.017299748957157135, -0.024880394339561462, -0.0022040854673832655, + 0.02536698989570141, -0.011966407299041748, 0.023394998162984848, -0.017171697691082954, + -0.0016806750791147351, 0.04123256355524063, -0.003188480855897069, -0.0150332385674119, + -0.011697499081492424, 0.008060838095843792, -0.05921098589897156, 0.009091651998460293, + -0.01318929810076952, 0.009853558614850044, 0.03257628530263901, -0.008291330188512802, + 0.040489863604307175, 0.013611868023872375, 0.0038127314765006304, -0.0019527844851836562, + 0.02545662596821785, 0.0012885176111012697, 0.037058085203170776, -0.004680280108004808, + 0.01318929810076952, 0.04266674071550369, 0.0026378596667200327, 0.020782748237252235, + -0.020437009632587433, -0.03941423445940018, 0.043255776166915894, -0.010564243420958519, + 0.010103258304297924, -0.007471801247447729, -0.020795553922653198, 0.03293482959270477, + -0.010807541199028492, -0.007145270239561796, 0.010269725695252419, -0.03918373957276344, + -0.021883990615606308, 0.034036073833703995, 0.01874672994017601, -0.027735941112041473, + 0.030143309384584427, -0.031193330883979797, 0.04381920397281647, 0.030629904940724373, + 0.004600247833877802, 0.02927255816757679, 0.006108053494244814, -0.0034285772126168013, + 0.023766346275806427, -0.001821531681343913, 0.026096882298588753, -0.016493026167154312, + -0.0318848080933094, -0.04148866608738899, -0.0038671535439789295, -0.04381920397281647, + 0.032064080238342285, -0.03418973460793495, 0.0004409771354403347, -0.003004406811669469, + -0.0005130060599185526, -0.035419028252363205, -0.01031454373151064, -0.005403770599514246, + -0.006837946828454733, -0.035419028252363205, -0.001927174162119627, 0.018567457795143127, + 0.03175675496459007, -0.0073181395418941975, -0.006392967887222767, 0.026557868346571922, + -0.016544245183467865, -0.046866826713085175, -0.009866363368928432, -0.024521850049495697, + 0.0300664771348238, -0.01900283433496952, -0.06187445670366287, 0.005707893054932356, + 0.007830345071852207, 0.01749182678759098, -0.02193521149456501, -0.005723899230360985, + -0.004296125844120979, -0.05111813545227051, 0.023599879816174507, 0.0016182500403374434, + -0.00653062341734767, 0.0113069424405694, -0.024022450670599937, 0.00653062341734767, + 0.013650283217430115, 0.009059639647603035, -0.02529015950858593, 0.006044027861207724, + 0.06868679076433182, 0.01911807991564274, -0.013727114535868168, -0.02479075826704502, + 0.013099662028253078, 0.025533456355333328, 0.011543837375938892, -0.015327757224440575, + -0.004837143234908581, -0.025469431653618813, 0.006482603959739208, -0.02490600384771824, + -0.021115683019161224, -0.054959677159786224, -0.009213301353156567, -0.005259712692350149, + -0.020104076713323593, 0.0011292536510154605, 0.0010948397684842348, 0.011761524714529514, + -0.028401808813214302, -0.011127670295536518, -0.0027531059458851814, 0.009360560216009617, + -0.037134915590286255, -0.018272940069437027, 0.02940060943365097, -0.0030972440727055073, + 0.0007162877591326833, -0.015545444563031197, -0.005896768532693386, -0.010500217787921429, + -0.04046425595879555, 0.011812745593488216, 0.007548632100224495, 0.018170498311519623, + 0.017338164150714874, 0.017466215416789055, -0.01063467189669609, -0.015250925906002522, + -0.027787161991000175, 0.03057868406176567, 0.001180474180728197, -0.014021632261574268, + -0.017043646425008774, 0.033447034657001495, -0.026327375322580338, 0.011569447815418243, + -0.006850752048194408, -0.03523975610733032, 0.015481418929994106, -0.003238100791350007, + 0.005000408738851547, -0.011063644662499428, -0.044433850795030594, 0.005294926930218935, + -0.03662271052598953, -0.015148485079407692, -0.04604729637503624, -0.010058440268039703, + -0.04064352810382843, 0.013496621511876583, -0.0231516994535923, 0.028299367055296898, + -0.003854348324239254, 0.03162870556116104, 0.00431853486225009, 0.02855547145009041, + -0.03283238783478737, 0.0005902370903640985, -0.005227699875831604, -0.02125653810799122, + -0.0008071242482401431, -0.0492485836148262, 0.0019783948082476854, 0.00978953205049038, + 0.014982018619775772, 0.022280950099229813, -0.05040104687213898, -0.022050457075238228, + 0.012913987971842289, -0.018183303996920586, -0.017543047666549683, -0.016467414796352386, + 0.016326557844877243, -0.058237794786691666, 0.004449787549674511, 0.01845221221446991, + -0.01577593758702278, 0.007164477836340666, 0.030168918892741203, 0.06904533505439758, + -0.05793046951293945, 0.031193330883979797, -0.016621077433228493, 0.05086203292012215, + 0.026609089225530624, -0.0162369217723608, -0.010602659545838833, -0.0023161303251981735, + 0.0009411780629307032, 0.012926792725920677, 0.04374236986041069, 0.004840344190597534, + 0.015878377482295036, 0.03808249905705452, -0.01035936176776886, -0.021794354543089867, + 0.003220493672415614, -0.05577920749783516, -0.03926056995987892, 0.02532857470214367, + 0.010929190553724766, -0.006117657292634249, -0.04235941544175148, -0.0034605900291353464, + 0.01664668694138527, -0.03385680168867111, -0.02201204188168049, 0.011319747194647789, + -0.02637859620153904, 0.015404587611556053, 0.03221774101257324, 0.02189679630100727, + 0.024637097492814064, -0.03931179270148277, 0.00333894114010036, 0.03198724985122681, + 0.0008555436506867409, 0.02788960374891758, 0.010141673497855663, -0.018093667924404144, + 0.0033613501582294703, 0.02134617418050766, 0.004536222200840712, -0.04248746857047081, + 0.006204092409461737, -0.02051384001970291, 0.023087674751877785, -0.0012525031343102455, + 0.037852004170417786, 0.015302146784961224, -0.02453465573489666, 0.05280841141939163, + 0.010109661146998405, -0.0416935496032238, 0.006908375304192305, 0.003601446747779846, + -0.005615055561065674, -0.0010716305114328861, -0.010269725695252419, 0.0364946611225605, + -0.033318985253572464, -0.02562309242784977, -0.007913579232990742, 0.04584241658449173, + 0.037186138331890106, -0.013778334483504295, 0.017389385029673576, -0.0036654723808169365, + 0.007689489051699638, -0.03908129781484604, -0.005426179617643356, 0.0049972073175013065, + -0.0011076449882239103, -0.0347275510430336, 0.006908375304192305, 0.03544463962316513, + 0.030296970158815384, -0.0018327361904084682, -0.0021656700409948826, -0.01486677210777998, + 0.0029227740596979856, 0.004491404164582491, 0.016198506578803062, -0.015327757224440575, + -0.036340996623039246, -0.015391782857477665, -0.016928400844335556, -0.032448235899209976, + 0.0133173493668437, 0.018529042601585388, 0.035162925720214844, -0.007017218973487616, + 0.026160908862948418, 0.04374236986041069, -0.0017703111516311765, 0.06750871986150742, + -0.009418183006346226, 0.020693112164735794, 0.0054165758192539215, -0.03150065243244171, + 0.015532639808952808, -0.03477877005934715, -0.01824733056128025, 0.05501089617609978, + -0.011095657013356686, -0.005493406672030687, 0.009994414635002613, -0.020962020382285118, + -0.032653115689754486, 0.023881593719124794, 0.022076068446040154, 0.0301176980137825, + 0.02386878803372383, -0.018093667924404144, 0.011012423783540726, -0.01516128983348608, + -0.012933195568621159, -0.014405786991119385, 0.03964472562074661, -0.028324978426098824, + -0.0025482235942035913, -0.0324738435447216, 0.0295286625623703, 0.043050892651081085, + -0.02650664746761322, 0.026685919612646103, -0.007132465019822121, -0.018132083117961884, + 0.021371785551309586, 0.0053493487648665905, -0.03098844736814499, -0.04827539250254631, + -0.007254113908857107, 0.03813371807336807, -0.007715099025517702, 0.038569092750549316, + 0.012856364250183105, -0.01126212440431118, 0.008144071325659752, 0.011230111122131348, + 0.019258936867117882, -0.023241335526108742, -0.035905621945858, -0.021397395059466362, + -0.008003215305507183, -0.02512369304895401, 0.018336966633796692, 0.0025770352222025394, + -0.01819610968232155, 0.0266346987336874, -0.03262750804424286, 0.01394480187445879, + 0.01325332373380661, -0.03452266752719879, 0.03974716737866402, -0.03823615983128548, + -0.02344621904194355, 0.009757519699633121, -0.042000871151685715, 0.002892361953854561, + -0.009930389001965523, -0.001211686758324504, -0.019527845084667206, -0.006521019618958235, + 0.0010100057115778327, -0.003895964939147234, 0.010877969674766064, -0.021333370357751846, + 0.004766714759171009, -0.033447034657001495, -0.0388508066534996, -0.022805960848927498, + 0.026199324056506157, 0.011076449416577816, 0.00011504621215863153, 0.04297406226396561, + 0.020667502656579018, 0.0058359443210065365, -0.03290921822190285, -0.029707932844758034, + 0.06976242363452911, -0.005851950496435165, 0.022409001365303993, 0.0007170880562625825, + -0.059159763157367706, -0.014328955672681332, 0.02637859620153904, -0.00751661928370595, + 0.025994442403316498, -0.07186246663331985, -0.00653062341734767, 0.028888404369354248, + -0.011729511432349682, 0.02151264250278473, 0.031014058738946915, -0.012337756343185902, + 0.000687076011672616, -0.04235941544175148, -0.023087674751877785, 0.02164069376885891, + 0.011121267452836037, 0.0106922946870327, -0.011236513964831829, 0.022165704518556595, + 0.029426220804452896, -0.03641783073544502, -0.003972795791924, 0.017286943271756172, + -0.02587919495999813, 0.01727413944900036, -0.03370313718914986, 0.034240953624248505, + 0.016557050868868828, -0.013739919289946556, -0.03293482959270477, 0.007190088275820017, + -0.0018455414101481438, -0.002405766397714615, 0.016249727457761765, -0.032729946076869965, + -0.014367371797561646, 0.023164505138993263, 0.005669477395713329, -0.018336966633796692, + 0.021397395059466362, 0.01577593758702278, 0.03196163848042488, -0.0249188095331192, + 0.021128486841917038, 0.02473953738808632, -0.018605874851346016, 0.013054843991994858, + 0.027274956926703453, -0.028760353103280067, -0.015583859756588936, -0.011082852259278297, + -0.013650283217430115, 0.04671316593885422, 0.005615055561065674, -0.016582660377025604, + -0.010596256703138351, 0.024048060178756714, -0.009488611482083797, -0.017018036916851997, + 0.013560647144913673, -0.014585059136152267, -0.021909601986408234, 0.05624019354581833, + 0.029323779046535492, -0.034701939672231674, -0.0034221746027469635, 0.004590644035488367, + -0.009027626365423203, -0.007977604866027832, 0.006159274373203516, -0.05388404428958893, + 0.021499836817383766, -0.03967033699154854, -0.033523865044116974, -0.021615082398056984, + -0.022959623485803604, -0.008323343470692635, 0.018042447045445442, -0.008067240938544273, + 0.00952062476426363, 0.037134915590286255, -0.014367371797561646, 0.008361758664250374, + -0.00039735963218845427, 0.012510625645518303, -0.0013925593812018633, 0.03091161698102951, + -0.01325332373380661, -0.0014773934381082654, -0.01664668694138527, -0.029298169538378716, + -0.02068030647933483, -0.011870368383824825, 0.011774329468607903, 0.0479680672287941, + 0.0024889998603612185, -0.030015256255865097, -0.010384971275925636, 0.023126089945435524, + -0.025354184210300446, 0.02630176581442356, 0.002871553413569927, 0.052910853177309036, + 0.01874672994017601, -4.145415005041286e-6, -0.005016414914280176, 0.021064462140202522, + 0.00350220687687397, 0.002836339408531785, -0.020795553922653198, 0.009219703264534473, + 0.009635870344936848, 0.02130775898694992, -0.007094049826264381, 0.0226138848811388, + 0.009469403885304928, 0.006972400937229395, 0.00659464905038476, 0.019809557124972343, + -0.007830345071852207, 0.006780323572456837, -0.016032040119171143, 0.026942022144794464, + 0.018042447045445442, -0.006268118042498827, 0.007190088275820017, -0.023676710203289986, + -0.012824351899325848, 0.007900773547589779, -0.016557050868868828, -0.0020296152215451, + 0.0228571817278862, 0.01516128983348608, -0.009270924143493176, -0.026352986693382263, + -0.019054053351283073, 0.009315742179751396, 0.02893962524831295, -0.013983217068016529, + 0.05664995685219765, -0.009206898510456085, 0.008112058974802494, -0.034292176365852356, + -0.015391782857477665, 0.02520052343606949, 0.019322961568832397, -0.015993624925613403, + 0.027966434136033058, 0.017466215416789055, -0.010500217787921429, 0.015583859756588936, + -0.013035636395215988, 0.0006374560762196779, -0.007740709464997053, -0.0007214898359961808, + 0.019386988133192062, -0.0016518635675311089, -0.012216106988489628, -0.046149738132953644, + 0.04965834692120552, 0.004603449255228043, 0.0012372969649732113, -0.03283238783478737, + 0.02105165645480156, -0.0369812548160553, 0.008611459285020828, 0.03967033699154854, + -0.04448506981134415, -0.0014037638902664185, 0.01664668694138527, 0.02855547145009041, + -0.03523975610733032, -0.018055252730846405, -0.0022857182193547487, -0.015238121151924133, + -0.011524629779160023, -0.017376579344272614, 0.022255340591073036, -0.01592959836125374, + 0.02034737356007099, 0.02381756715476513, 0.0022889194078743458, 0.009827948175370693, + -0.029426220804452896, 0.033447034657001495, -0.005781522486358881, 0.011479811742901802, + -0.015186900272965431, 0.019515039399266243, -0.009251716546714306, -0.012760326266288757, + 0.012664287351071835, -0.011787135154008865, 0.006434584967792034, 0.0053077321499586105, + -0.0026954826898872852, -0.008963600732386112, 0.009078847244381905, -0.047199759632349014, + -0.003358148969709873, -0.010103258304297924, 0.03523975610733032, -0.006338546052575111, + 0.019322961568832397, -0.01601923443377018, -0.027787161991000175, 0.0037006866186857224, + -0.006181683391332626, 0.0003741502878256142, 0.013138077221810818, -0.00866268016397953, + 0.03019452840089798, -0.0242785532027483, -0.01849062740802765, 0.011652681045234203, + -0.012356963939964771, 0.005301329772919416, 0.00987916812300682, -0.018772341310977936, + 0.014418591745197773, 0.004312132019549608, 0.038441043347120285, -0.006998010911047459, + 0.00164866226259619, -0.013394180685281754, 0.008041630499064922, -0.01983516849577427, + 0.025520652532577515, 0.013266129419207573, -0.016249727457761765, -0.006444188766181469, + -0.027838382869958878, 0.006876362022012472, -0.0030092087108641863, -0.002258507302030921, + 0.0021432610228657722, 0.012382574379444122, 0.006889167241752148, 0.0324738435447216, + -0.00020188109192531556, -0.001807125867344439, 0.011454201303422451, -0.02298523299396038, + 0.03493243083357811, -5.952390893071424e-6, -0.012427392415702343, -0.0051060509867966175, + -0.0017735124565660954, -0.012126470915973186, -0.007439788430929184, 0.025008445605635643, + -0.008528226055204868, 0.04374236986041069, 0.01685156859457493, 0.018042447045445442, + 0.01576313190162182, -0.026186518371105194, 0.004555429797619581, -0.010621867142617702, + -0.027018854394555092, -0.0029787966050207615, -0.013547842390835285, 0.001179673825390637, + -0.024765148758888245, -0.03175675496459007, 0.03603367507457733, -0.01413687877357006, + -0.005762314889580011, 0.00859865453094244, -0.015020433813333511, -0.009763922542333603, + -0.009482208639383316, 0.0030844390857964754, -0.0266346987336874, 0.027479838579893112, + -0.02495722472667694, 0.0013397381408140063, -0.010212101973593235, -0.008477005176246166, + -0.021154098212718964, 0.00878432858735323, 0.012446600012481213, -0.003354947781190276, + -0.015507029369473457, 0.039234962314367294, -0.0176582932472229, -0.005435783416032791, + -0.01400882750749588, 0.037519071251153946, -0.020897993817925453, -0.03395923972129822, + -0.012113666161894798, 0.017875980585813522, -0.025597482919692993, 0.00955903995782137, + -0.017543047666549683, 0.022716324776411057, -0.018849171698093414, -0.010160882025957108, + -0.022844376042485237, -0.00802882481366396, -0.026916412636637688, -0.007919981144368649, + 0.003329337341710925, -0.02289559692144394, -0.009699896909296513, 0.013138077221810818, + -0.022741936147212982, 0.023010844364762306, 0.018349770456552505, -0.017210112884640694, + 0.015788741409778595, -0.015417393296957016, 0.005720697809010744, -0.02293401211500168, + 0.023215726017951965, 0.0006558634340763092, -0.007119659800082445, 0.013010025955736637, + -0.01924613118171692, 0.03570074215531349, -0.003402967005968094, -0.01598081924021244, + -0.03854348137974739, -0.03595684468746185, -0.02482917346060276, -0.002261708490550518, + -0.040028881281614304, 0.002948384266346693, 0.0015350165776908398, -0.017901591956615448, + 0.0025498243048787117, -0.022165704518556595, 0.034958042204380035, -0.024304162710905075, + -0.02650664746761322, -0.025315769016742706, -0.05237303674221039, -0.016825959086418152, + -0.010474607348442078, 8.838550274958834e-5, 0.02914450690150261, -0.016032040119171143, + -0.031193330883979797, -0.021333370357751846, -0.009187690913677216, -0.00327651621773839, + 0.03280678018927574, 0.015186900272965431, -0.036084894090890884, 0.014213710092008114, + -0.0009988012025132775, 0.001493399846367538, 0.009847155772149563, -0.0007182885310612619, + 0.015878377482295036, -0.01423931960016489, 0.03170553594827652, -0.02893962524831295, + -0.0020024043042212725, -0.05419136956334114, -0.052398648113012314, -0.003182078246027231, + -0.040028881281614304, 0.02272913046181202, -0.022473027929663658, -0.012696299701929092, + -0.0013813548721373081, -0.012625872157514095, -0.0011540636187419295, -0.016493026167154312, + -0.003937581554055214, 0.026942022144794464, 0.007382165640592575, 0.005515815690159798, + 0.03208969160914421, -0.0049299802631139755, 0.014149683527648449, -0.06335984915494919, + -0.01656985655426979, -0.011883173137903214, -0.020693112164735794, -0.0022553058806806803, + 0.023433413356542587, -0.0035950441379100084, -0.01153103169053793, -0.05439624935388565, + -0.017709514126181602, -0.020641891285777092, 0.019386988133192062, 0.012613066472113132, + -0.000375150702893734, -0.015417393296957016, -0.05629141256213188, -0.003326136153191328, + 0.006780323572456837, 0.008835549466311932, -0.0001141458487836644, -0.024649901315569878, + -0.05972319096326828, -0.0076958914287388325, -0.022703519091010094, -0.03539341688156128, + -0.011191695928573608, -0.03882519528269768, 0.023471828550100327, 0.009744714014232159, + -0.0138807762414217, -0.004187282174825668, -0.0036558685824275017, 0.02068030647933483, + 0.03867153450846672, 0.006303332280367613, 0.002112848684191704, 0.014610668644309044, + -0.012088055722415447, -0.005983203649520874, 0.00899561308324337, -0.015571055002510548, + -0.019310157746076584, 0.035342197865247726, -0.007036426570266485, -0.016428999602794647, + 0.020782748237252235, 0.031090889126062393, 0.014559448696672916, 0.012062445282936096, + 0.004907571244984865, 0.0034093696158379316, 0.00166947057005018, -0.0015166092198342085, + 0.0037743160501122475, -0.0009163680952042341, -0.011038034223020077, -0.022114483639597893, + 0.005362153984606266, 0.009597455151379108, -9.038631105795503e-5, -0.006284124217927456, + -0.016249727457761765, -0.02294681780040264, -0.021410200744867325, -0.0019367779605090618, + 0.011921589262783527, 0.012638676911592484, 0.009917584247887135, 0.035675130784511566, + 0.010231309570372105, -0.006463396362960339, -0.0138807762414217, 0.007471801247447729, + 0.028709132224321365, -0.015302146784961224, 0.011537434533238411, 0.006383364088833332, + 0.025892000645399094, 0.009418183006346226, 0.002983598504215479, 0.015596665441989899, + 0.024188917130231857, 0.029477441683411598, 0.014495423063635826, -0.016044845804572105, + -0.004597046412527561, -0.005563835147768259, -0.011960004456341267, -0.0005710293771699071, + 0.01505884900689125, -0.021627888083457947, -0.008022422902286053, 0.013535036705434322, + -0.006031222641468048, -0.03892763704061508, 0.00563106220215559, 0.0399264395236969, + 0.002357747172936797, -0.0066330647096037865, 0.03229457139968872, 0.024124890565872192, + -0.006044027861207724, -0.011166085489094257, 0.006521019618958235, 0.012408184818923473, + 0.003777517471462488, -0.02260107919573784, 0.031270161271095276, 0.01837538182735443, + 0.015148485079407692, -0.0023449419531971216, -0.0011852760799229145, -0.04056669399142265, + 0.019233325496315956, -0.014687499962747097, -0.01381675060838461, -0.030015256255865097, + 0.013496621511876583, 0.0049171750433743, -0.015507029369473457, 0.007330944761633873, + -0.022665103897452354, -0.01832416094839573, 0.019566260278224945, 0.01983516849577427, + -0.03618733584880829, -0.0088035361841321, -0.021000435575842857, -0.01715889200568199, + 0.03879958763718605, 0.019028443843126297, 0.011588655412197113, 0.005320537369698286, + -0.012126470915973186, 0.0014741921331733465, 0.014290540479123592, -0.003476596437394619, + 0.02886279486119747, 0.0014998024562373757, -0.012081652879714966, 0.023241335526108742, + 0.038902025669813156, -0.004116853699088097, -0.027531059458851814, 0.01245300192385912, + -0.028965234756469727, 0.020104076713323593, -0.012913987971842289, -0.01042338740080595, + -0.023305362090468407, -0.03372874855995178, 0.028529860079288483, -0.029349390417337418, + 0.0231004785746336, 0.0173637755215168, -0.008336148224771023, 0.005230901297181845, + -0.004280119203031063, 0.01318929810076952, -0.013035636395215988, 0.018695509061217308, + -0.012241717427968979, 0.04474117234349251, 0.020667502656579018, 0.04092523828148842, + 0.018106473609805107, -0.003639862174168229, 0.023164505138993263, 0.02440660446882248, + 0.006028021685779095, 0.0226138848811388, -0.041795987635850906, 0.015801547095179558, + 0.01423931960016489, 0.012446600012481213, 0.04333260655403137, 0.017056452110409737, + 0.010429789312183857, 0.023202920332551003, -0.009757519699633121, -0.008989211171865463, + 0.03572634980082512, -0.010000817477703094, 0.02919572778046131, -0.013394180685281754, + -0.030373800545930862, -0.019054053351283073, 0.02239619567990303, 0.014060048386454582, + -0.044689953327178955, 0.01581435278058052, 0.00305082555860281, -0.022127289324998856, + 0.0071004522033035755, -0.0024121690075844526, -0.000944379367865622, 0.022421807050704956, + 0.005688684992492199, 0.009962402284145355, 0.030604293569922447, -0.002466590842232108, + 0.012670690193772316, 0.020078465342521667, -0.04415213689208031, 0.00950141716748476, + -0.012337756343185902, 0.001500602811574936, 0.007190088275820017, -0.03951667249202728, + -0.050093721598386765, -0.012856364250183105, 0.00657544145360589, -0.0009667883859947324, + ], + index: 83, + }, + { + title: "Bonilla observation", + text: "On August 12, 1883, the astronomer Jos\u00e9 Bonilla reported that he saw more than 300 dark, unidentified objects crossing before the Sun while observing sunspot activity at Zacatecas Observatory in Mexico. He was able to take several photographs, exposing wet plates at 1/100 second. These represent the earliest photos of an unidentified flying object.", + vector: [ + 0.03938209265470505, -0.020690200850367546, -0.013534711673855782, -0.04537702351808548, + -0.04417803883552551, -0.03200371563434601, -0.004519256297498941, 0.02880641631782055, + 0.034647632390260696, 0.051433444023132324, -0.06960269808769226, 0.01139037124812603, + -0.007412964012473822, -0.020367396995425224, -0.033387161791324615, 0.03314121440052986, + -0.01301207672804594, 0.028883274644613266, -0.02583969384431839, -0.0472831055521965, + 0.01958344504237175, -0.008277617394924164, -0.00106928835157305, 0.03304898366332054, + 0.05020371451973915, 0.01393437385559082, 0.021489525213837624, 0.03861350938677788, + -0.04762127995491028, 0.01337330974638462, 0.05469222739338875, 0.024825166910886765, + 0.00033697474282234907, 0.028698815032839775, 0.02238108031451702, -0.01876874826848507, + 0.004576900042593479, -0.04602263122797012, 0.018784120678901672, -0.011805404908955097, + 0.007778040133416653, -0.02439476177096367, 0.021120605990290642, 0.0032683908939361572, + -0.06274695694446564, -0.03633851185441017, -0.024732938036322594, -0.042794592678546906, + -0.04835911840200424, -0.022749997675418854, 0.010306671261787415, -0.040181417018175125, + -0.020505741238594055, -0.01580202579498291, -0.02102837711572647, 0.027469085529446602, + 0.017262330278754234, 0.03609256446361542, 0.0222888495773077, -0.021105235442519188, + 0.07575134932994843, -0.03686114773154259, -0.003443242982029915, 0.022181248292326927, + -0.00011768897093134001, -0.02390287071466446, 0.00931520201265812, 0.0026093325577676296, + 0.0060410466976463795, 0.018123140558600426, 0.02651604637503624, 0.006682812236249447, + -0.004215667024254799, 0.0025881966575980186, 0.03317195549607277, 0.009000083431601524, + 0.02822229638695717, -0.02880641631782055, -0.043194252997636795, 0.0065137241035699844, + 0.02534780278801918, -0.01546385046094656, 0.023195775225758553, 0.01953732967376709, + 0.030604897066950798, 0.006006460636854172, 0.013480911031365395, -0.05149492993950844, + -0.044823646545410156, -0.014088090509176254, 0.00893859751522541, 0.020813174545764923, + -0.008861739188432693, 0.04033513367176056, 0.009392060339450836, -0.024871282279491425, + 0.05496891587972641, -0.03360236436128616, -0.004035050515085459, 0.05048040300607681, + -0.030589524656534195, -0.014218749478459358, -0.03415574133396149, -0.02633158676326275, + 0.03357161954045296, -0.06290066987276077, -0.02548614703118801, 0.00568365678191185, + -0.034278713166713715, 0.05466148257255554, -0.016816552728414536, 0.008231502957642078, + -0.015317820012569427, -0.024609964340925217, 0.00550304027274251, 0.05546080693602562, + -0.012220438569784164, 0.051525671035051346, -0.017001012340188026, 0.023533951491117477, + 0.036492228507995605, -0.014326350763440132, 0.0441165529191494, 0.05758209154009819, + -0.014956586994230747, 0.013888259418308735, 0.043962836265563965, 0.010176013223826885, + -0.021643241867423058, 0.006433023139834404, 0.007977871224284172, -0.03101992979645729, + 0.03587736189365387, 0.02574746496975422, -0.018753377720713615, -0.006033360958099365, + -0.01876874826848507, 0.04147263243794441, 0.02623935602605343, 0.004784416873008013, + -0.04476216062903404, 0.011259712278842926, -0.019660303369164467, 0.07765742391347885, + -0.047067902982234955, -0.028299152851104736, -0.004799788352102041, -0.03246486186981201, + -0.013842144049704075, 0.019014695659279823, 0.03074324131011963, -0.0052378796972334385, + 0.02044425532221794, -0.02147415466606617, 0.0027323055546730757, 0.04442398250102997, + 0.03381756693124771, 0.004415498115122318, -0.02025979571044445, -0.014779813587665558, + -0.030374322086572647, 0.020628714933991432, 0.015509964898228645, -0.0033279559575021267, + -0.009553462266921997, -0.055214859545230865, 0.022949829697608948, 0.0006907621864229441, + 0.01918378286063671, 0.02665439061820507, 0.0409807413816452, -0.021397296339273453, + -0.01841520145535469, -0.00046282989205792546, 0.017123986035585403, -0.004976562224328518, + 0.04811317101120949, 0.013357938267290592, 0.045530740171670914, -0.003310662694275379, + -0.0648067519068718, -0.011490286327898502, 0.042333442717790604, -0.012858361005783081, + -0.001810008310712874, 0.011943749152123928, 0.02124357968568802, 0.009099999442696571, + -0.04325573891401291, 0.01008378341794014, 0.013580827042460442, -0.03809087723493576, + 0.014241806231439114, 0.01773885078728199, 0.032833781093358994, -0.02786874771118164, + -0.0652986466884613, -0.06203985959291458, -0.04848209023475647, -0.041718579828739166, + -0.017139356583356857, -0.0020751687698066235, -0.03237263485789299, 0.01886097900569439, + 0.008277617394924164, -0.028760302811861038, 0.013250336982309818, -0.006171705666929483, + -0.007028673309832811, -0.0008488016901537776, 0.00893859751522541, -0.039412833750247955, + -0.010652532801032066, 0.029697971418499947, -0.025870436802506447, 0.020382769405841827, + 0.005768200848251581, -0.042517904192209244, 0.014864357188344002, -0.0477135106921196, + 0.035938847810029984, -0.007678124587982893, -0.022135132923722267, 0.021013004705309868, + 0.012912161648273468, 0.02728462591767311, 0.009491975419223309, 0.024702195078134537, + -0.03643074259161949, -0.05426182225346565, -0.02809932269155979, -0.03953580930829048, + -0.0048420606181025505, -0.0024786738213151693, 0.03381756693124771, 0.018430573865771294, + 0.0256552342325449, 0.03507803753018379, 0.00025819518486969173, -0.016017228364944458, + 0.022842228412628174, 0.05048040300607681, -0.040765538811683655, 0.008854053914546967, + 0.05109526589512825, 0.019199153408408165, -0.03972026705741882, -0.0868804007768631, + -0.04156486317515373, 0.03268006443977356, 0.06560607999563217, -0.002513259882107377, + 0.010967651382088661, 0.0378141850233078, -0.024118073284626007, -0.05739763006567955, + -0.025670606642961502, 0.014702955260872841, 0.00732841994613409, 0.003727617906406522, + -0.0387057401239872, 0.007109374739229679, -0.002203906187787652, 0.00594113115221262, + -0.010844678618013859, 0.004534628242254257, 0.0026881122030317783, -0.041657090187072754, + 0.010975337587296963, -0.035047296434640884, -0.021489525213837624, -0.017262330278754234, + 0.008362161926925182, 0.0017466003773733974, -0.04549999535083771, 0.06689729541540146, + 0.005679813679307699, 0.051740873605012894, 0.002225042087957263, -0.0008396747871302068, + 0.022842228412628174, -0.030866215005517006, -0.02588580921292305, -0.031096788123250008, + -0.013004391454160213, 0.04749830812215805, -0.03972026705741882, -0.018445944413542747, + 0.07907161861658096, -0.011628630571067333, -0.020336654037237167, 0.015071874484419823, + -0.04479290172457695, 0.020136823877692223, 0.025363173335790634, 0.009584205225110054, + 0.001077934866771102, -0.017170099541544914, 0.006067947018891573, -0.027884120121598244, + -0.019568072631955147, 0.04577668756246567, -0.015740539878606796, 0.07286148518323898, + 0.015210218727588654, 0.01152102928608656, -0.014487752690911293, -0.03390979394316673, + 0.002119362121447921, -0.071139857172966, -0.09376688301563263, 0.025409288704395294, + -0.005868116393685341, 0.04537702351808548, 0.0022192776668816805, -0.010952279902994633, + 0.04848209023475647, -0.025317059829831123, -0.01953732967376709, -0.019998477771878242, + -0.017984796315431595, -0.011597887612879276, 0.03006689064204693, -0.03430945798754692, + 0.054231077432632446, 0.010913850739598274, 0.008285303600132465, -0.03907465934753418, + -0.04048885032534599, -0.013811401091516018, -0.0004212784697301686, -0.07372229546308517, + 0.006033360958099365, 0.03181925415992737, 0.009707177989184856, -0.005898859351873398, + -0.009968495927751064, 0.041933782398700714, 0.012097465805709362, 0.01850743032991886, + 0.016416890546679497, -0.009645692072808743, 0.04669898375868797, -0.007751139812171459, + -0.04651452228426933, 0.03317195549607277, 0.05254019796848297, -0.011797718703746796, + -0.009599576704204082, 0.029544254764914513, 0.0008276656735688448, -0.022842228412628174, + -0.02809932269155979, -0.054415538907051086, 0.034463174641132355, -0.01469526905566454, + 0.0056144846603274345, -0.016170945018529892, 0.014457008801400661, 0.02777651883661747, + -0.028821788728237152, 0.02408733032643795, 0.019752532243728638, 0.0034336356911808252, + -0.004254096187651157, 0.02719239704310894, 0.0477135106921196, 0.022396450862288475, + -0.019030066207051277, 0.004957347642630339, -0.036984119564294815, 0.0454692542552948, + -0.08110067248344421, 0.00558374123647809, -0.058043237775564194, 0.0024440877605229616, + -0.026884963735938072, 0.01154408697038889, -0.0029071576427668333, -0.007020987570285797, + -0.05558377876877785, -0.019276011735200882, 0.03390979394316673, -0.001032780739478767, + 0.01729307323694229, 0.007109374739229679, -0.025455404072999954, 0.004634543787688017, + -0.0076934960670769215, -0.06449931859970093, 0.03928986191749573, 0.008070101030170918, + -0.004815160296857357, 0.01733918860554695, -0.010629476048052311, -0.030820099636912346, + 0.00742833549156785, 0.009591891430318356, 0.019875505939126015, 0.05884256213903427, + 0.03560067340731621, 0.04079627990722656, 0.03716857731342316, 0.018384458497166634, + 0.013281079940497875, 0.07409121096134186, -0.004008150193840265, 0.051248982548713684, + 0.02646993100643158, 0.00801630038768053, 0.02809932269155979, 0.023195775225758553, + 0.039597295224666595, -0.02935979515314102, -0.0044885133393108845, 0.0004087890265509486, + 0.009638005867600441, -0.02255016751587391, 0.032341890037059784, 0.013972803018987179, + -0.03218817338347435, 0.03769121319055557, -0.03615405037999153, 0.02607026882469654, + -0.03701486065983772, 0.021673984825611115, 0.06013378128409386, 0.00670971255749464, + -0.01944510079920292, 0.004972719121724367, 0.03470911830663681, 0.05380067229270935, + 0.02152026817202568, 0.008838681504130363, -0.011766975745558739, -0.02872955985367298, + 0.04334796965122223, -0.016232430934906006, 0.03615405037999153, -0.02089003287255764, + 3.2664695027051494e-5, 0.056475333869457245, -0.05669053643941879, -0.0027668916154652834, + -0.062009118497371674, 0.001665899413637817, -0.023656923323869705, -0.021489525213837624, + -0.03889020159840584, 0.0076819672249257565, -0.08528175204992294, 0.007674281485378742, + 0.018246114253997803, -0.026454558596014977, 0.001323880860581994, -0.01082930713891983, + -0.014433952048420906, -0.05795101076364517, 0.017446789890527725, 0.0328645259141922, + 0.005376224406063557, 0.0396280363202095, 0.035539187490940094, -0.045315537601709366, + -0.02980557270348072, -0.014049661345779896, -0.029498139396309853, -0.002607411239296198, + 0.01039890106767416, -0.019829390570521355, 0.025778207927942276, 0.03978175297379494, + -0.032126687467098236, 0.0042925248853862286, 0.04780574142932892, -0.015832768753170967, + -0.06388445198535919, 0.030651012435555458, 0.022227363660931587, -0.03191148489713669, + 0.02201216109097004, 0.00209822622127831, -0.027069423347711563, -0.0063407933339476585, + 0.009207600727677345, 0.0027419128455221653, -0.04703715816140175, -0.02696182206273079, + -0.08694188296794891, 0.051525671035051346, 0.05290911719202995, 0.025040369480848312, + -0.01724695786833763, 0.024287160485982895, -0.0023883655667304993, -0.019644930958747864, + -0.014787498861551285, 0.009384374134242535, -0.01922989822924137, 0.011989864520728588, + -0.0032876054756343365, 0.031096788123250008, 0.01102913822978735, -0.012151266448199749, + -0.02030591107904911, 0.036123309284448624, 0.014687583781778812, 0.023841382935643196, + 0.038920942693948746, -0.006329264957457781, 0.011813090182840824, -0.05426182225346565, + 0.027299998328089714, 0.024364018812775612, -0.017754221335053444, 0.019798647612333298, + 0.03298749774694443, -0.013919002376496792, 0.009953124448657036, 0.017139356583356857, + 0.008431334048509598, -0.026393072679638863, 0.03529324010014534, -0.0039927782490849495, + 0.04989628121256828, -0.01675506681203842, 0.022673141211271286, 0.009899323806166649, + -0.0023595436941832304, 0.03011300414800644, -0.04297905042767525, 0.010560302995145321, + -0.005376224406063557, -0.044147294014692307, 0.004407812375575304, 0.03344864770770073, + -0.031542565673589706, 0.034647632390260696, 0.007040202151983976, -0.04470067098736763, + -0.00780878309160471, -0.032710809260606766, 0.03839830681681633, -0.014918157830834389, + -0.027991721406579018, -0.02485590986907482, 0.007151646539568901, 0.012789187952876091, + -0.00222888495773077, -0.03879797086119652, 0.0024613807909190655, 0.03975101187825203, + -0.023195775225758553, 0.06738918274641037, -0.016447633504867554, 0.0018417122773826122, + 0.006260092370212078, 0.00028797771665267646, 0.015771282836794853, 0.031634796410799026, + 0.0016995248151943088, -0.0020943833515048027, -0.00127488374710083, 0.007482136134058237, + -0.014111148193478584, 0.021996788680553436, -0.0315118208527565, 0.04399357736110687, + 0.004707559011876583, -0.0072438763454556465, 0.0018484373576939106, 0.012881417758762836, + -0.014257177710533142, 7.091360748745501e-5, 5.311015047482215e-5, -0.013027448207139969, + 0.00028821788146160543, -0.06243952363729477, -0.017170099541544914, -0.022089019417762756, + -0.023072803393006325, -0.015148731879889965, -0.0011730467667803168, -0.0003129566030111164, + -0.02133580856025219, 7.199442916316912e-5, -0.01172854658216238, -0.03799864649772644, + 0.010329728946089745, -0.028345268219709396, -0.0024421662092208862, 0.018615033477544785, + 0.021089863032102585, 0.07366080582141876, 0.013296451419591904, 0.05091080814599991, + 0.015863511711359024, -0.008246874436736107, 0.0019464314682409167, 0.016539864242076874, + 0.019614188000559807, 0.012935218401253223, -0.009422803297638893, -0.019199153408408165, + 0.024241045117378235, 0.012935218401253223, 0.04045810550451279, 0.011129053309559822, + 0.00891553983092308, -0.006947972346097231, 0.017093243077397346, -0.04925067350268364, + -0.03695337474346161, 0.009799407795071602, 0.01981401816010475, 0.010437330231070518, + -0.011805404908955097, -0.027838004752993584, -0.008362161926925182, -0.01190531998872757, + 0.002463302109390497, -0.020367396995425224, -0.014426265843212605, 0.057920265942811966, + 0.004304053727537394, -0.04510033503174782, 0.02999003231525421, 0.051740873605012894, + -0.0024460090789943933, 0.005034205969423056, -0.006390751339495182, -0.030543409287929535, + 0.017754221335053444, -0.0028226138092577457, -0.011559458449482918, -0.018077025189995766, + 0.027084795758128166, -0.05281689018011093, 0.024317903444170952, -0.062101349234580994, + -0.027023309841752052, 0.022258106619119644, -0.003677660133689642, -0.023165032267570496, + 0.0006691458402201533, 0.0025805109180510044, 0.0033048985060304403, -0.01652449183166027, + -0.00986089464277029, 0.032926011830568314, -0.011336570605635643, -0.014833614230155945, + 0.006344636436551809, 0.005372381303459406, 0.023964356631040573, -0.023211147636175156, + 0.016278546303510666, 0.001258551492355764, -0.003729539457708597, -0.02553226239979267, + -0.014987329952418804, -0.013173478655517101, 0.008631165139377117, -0.014587667770683765, + -0.005406967364251614, 0.015786655247211456, 0.0011326962849125266, 0.010675590485334396, + -0.004807474557310343, -0.044454727321863174, 0.020152194425463676, 0.008362161926925182, + -0.002632390009239316, -0.048143915832042694, 0.014103461988270283, -0.01456461101770401, + -0.028191551566123962, -0.00841596256941557, 0.01019906997680664, -0.028206923976540565, + 0.03249560669064522, -0.03904391825199127, 0.01246638409793377, 0.011267397552728653, + 0.014280235394835472, -0.017861822620034218, 0.019644930958747864, -0.01746216043829918, + -0.002113597933202982, -0.02128969505429268, -0.0003607527178246528, -0.023918241262435913, + -0.001357506262138486, 0.03461689129471779, 0.03341790288686752, 0.0015784732531756163, + -0.01526401937007904, -0.007332263048738241, 0.04423952475190163, -0.0034528502728790045, + -0.031849998980760574, 0.018538175150752068, -0.027177024632692337, -0.029744086787104607, + 0.02102837711572647, -0.027653545141220093, -0.02224273420870304, -0.003873648354783654, + -0.007539779879152775, -0.006775041576474905, -0.013096620328724384, -0.008185387589037418, + -0.02628547139465809, 0.016862668097019196, -0.020229052752256393, -0.004280996508896351, + 0.01589425653219223, -0.015402363613247871, 0.011359627358615398, 0.00668665487319231, + 0.03146570920944214, 0.028191551566123962, 0.013849830254912376, 0.017216214910149574, + 0.039597295224666595, -0.019199153408408165, -0.005387753248214722, 0.029329052194952965, + -0.012819931842386723, 0.012297296896576881, 0.021673984825611115, 0.023165032267570496, + 0.02493276819586754, 0.015071874484419823, 0.013181164860725403, -0.02997465990483761, + -0.0009434332023374736, -0.014211063273251057, 0.005257094278931618, -0.051248982548713684, + 0.016124829649925232, 0.025993410497903824, 0.0016995248151943088, -0.032034456729888916, + -0.0171086136251688, 0.006156334187835455, 0.0002728462568484247, 0.008246874436736107, + 0.014787498861551285, 0.02175084315240383, 0.044854387640953064, -0.0023595436941832304, + -0.002430637599900365, -0.041257429867982864, -0.0009155721636489034, -0.03043580800294876, + -0.011175167746841908, -0.00013774413673672825, 0.02733074128627777, 0.004446241073310375, + 0.01172854658216238, 0.014895100146532059, -0.01629391871392727, 0.04663749784231186, + -0.009230658411979675, -0.016232430934906006, 0.01687803864479065, -0.002065561478957534, + 0.0068788002245128155, 0.03729155287146568, -0.026408445090055466, 0.0007118982030078769, + -0.0360003337264061, -0.04928141459822655, -0.01339636743068695, -0.017231587320566177, + 0.009576519951224327, -0.013880573213100433, -0.044454727321863174, -0.01918378286063671, + -0.024779051542282104, 0.03606182336807251, -0.0508800633251667, 0.03507803753018379, + 0.026101011782884598, 0.006859585642814636, -0.06849594414234161, -0.03876722604036331, + -0.014418580569326878, -0.01211283728480339, -0.018538175150752068, 0.003942820709198713, + 0.032803039997816086, -0.03246486186981201, 0.03125050291419029, 0.038828711956739426, + -0.005994932260364294, -0.029636485502123833, -0.0019031987758353353, -0.01298901904374361, + 0.031450334936380386, 0.028376011177897453, -0.0308354701846838, -0.0041234372183680534, + -0.0025881966575980186, -0.0033625420182943344, -0.00896165519952774, -0.005522254854440689, + -0.005349324084818363, -0.020229052752256393, 0.040181417018175125, 0.00095400121062994, + 0.03088158555328846, 0.00044313500984571874, -0.012635472230613232, 0.018661146983504295, + -0.03178851306438446, 0.038552023470401764, 0.0076627531088888645, 0.00015635820454917848, + -0.021458782255649567, 0.013734542764723301, -0.02854510024189949, -0.02313428930938244, + -0.019829390570521355, 0.048605065792798996, -0.02182770147919655, -0.008308361284434795, + -0.0023384077940136194, -0.01670895144343376, 0.001492968644015491, 0.038521282374858856, + 0.027115538716316223, 0.044362496584653854, 0.04199526831507683, 0.02224273420870304, + -0.003537394106388092, -0.012205067090690136, 0.019383613020181656, 0.06492972373962402, + 0.08091621100902557, 0.011159796267747879, -0.013496282510459423, -0.019245268777012825, + 0.00018457953410688788, 0.05533783510327339, -0.011252026073634624, 0.022273479029536247, + -0.0006902818568050861, 0.016862668097019196, 0.025363173335790634, 0.016416890546679497, + 0.010521874763071537, 0.03845979645848274, 0.01245101261883974, -0.022627025842666626, + -0.006694340612739325, -0.012174323201179504, -0.013165793381631374, -0.04021215811371803, + 0.05057263374328613, -0.027084795758128166, -0.0007921188371255994, -0.009169171564280987, + 0.010099154897034168, 0.011067566461861134, 0.008070101030170918, 0.0373530387878418, + -0.016724323853850365, 0.00634847953915596, -0.0032914483454078436, 0.003794868942350149, + -0.014264863915741444, -0.003954349551349878, -0.0034451645333319902, -0.01381908729672432, + 0.009000083431601524, 0.0034124997910112143, 0.005752828903496265, 0.021397296339273453, + -0.01733918860554695, 0.018430573865771294, 0.0085543068125844, -0.01548690814524889, + -0.00501883402466774, -0.04789796844124794, -0.016678208485245705, 0.008039357140660286, + -0.006717398297041655, 0.037476010620594025, 0.013165793381631374, 0.03268006443977356, + -0.010921536013484001, 0.027991721406579018, 0.02065945789217949, -0.008446705527603626, + 0.009530404582619667, 0.011205911636352539, -0.02773040346801281, -0.03661520034074783, + -0.018830236047506332, 0.018968580290675163, 0.010322043672204018, 0.03092770092189312, + 0.013942060060799122, -0.004676815588027239, -0.020859289914369583, 0.0022192776668816805, + -0.0009174935985356569, 0.004757516551762819, -0.0052263508550822735, 0.011267397552728653, + -0.010575675405561924, -0.004669129848480225, -0.0414111465215683, -0.02322651818394661, + -0.013173478655517101, 0.0096764350309968, 0.0030493452213704586, 0.03470911830663681, + 0.01881486363708973, 0.025409288704395294, -0.005034205969423056, -0.0034067353699356318, + 0.003969721030443907, -0.040857765823602676, 0.02179695852100849, -0.009799407795071602, + 0.025563005357980728, 0.005975717678666115, 0.0414111465215683, -0.0010702491272240877, + 0.005606798455119133, -0.021551012992858887, 0.02201216109097004, 0.003812161972746253, + 0.00840059109032154, 0.01809239760041237, 0.030635640025138855, -0.027484457939863205, + 0.011843834072351456, 0.054323308169841766, 0.0025555319152772427, -0.05091080814599991, + -0.021504897624254227, -0.010675590485334396, 0.016017228364944458, 0.028191551566123962, + 0.026393072679638863, 0.0008103726431727409, -0.010091468691825867, -0.0033471703063696623, + -0.0011211675591766834, 0.01764662005007267, -0.013227279298007488, 0.004730616230517626, + 0.005264780018478632, -0.0060218325816094875, 0.013135049492120743, -0.004822846036404371, + 0.007051730994135141, -0.0034394001122564077, -0.05893479287624359, 0.004035050515085459, + -0.05001925304532051, 0.013488597236573696, 0.017892565578222275, -0.04583817347884178, + -0.003195375669747591, 0.008861739188432693, 0.02021368034183979, 0.013580827042460442, + 0.034862834960222244, -0.017431417480111122, 0.030358951538801193, -0.06308513134717941, + 0.016601350158452988, 0.012581671588122845, -0.008123901672661304, 0.0014881649985909462, + 0.005675971042364836, -0.006183234509080648, -0.03793716058135033, 0.014572296291589737, + -0.033294931054115295, 0.042118240147829056, -0.0015928841894492507, 0.016401519998908043, + 0.0012393369106575847, -0.002130890963599086, -0.017800336703658104, -0.0378141850233078, + 0.015110302716493607, -0.03366385027766228, 0.03667668625712395, 0.0022269636392593384, + -0.03354087471961975, 0.02196604572236538, 0.0011240497697144747, 0.0016831924440339208, + -0.01724695786833763, 0.07027904689311981, -0.01206672191619873, -0.017277700826525688, + -0.007447550073266029, -0.005798943806439638, 0.0005846019485034049, 0.02035202644765377, + -0.026715876534581184, -0.02457922138273716, 0.046883441507816315, -0.0012316510546952486, + 0.008116215467453003, 0.006237035151571035, 0.025147970765829086, 0.011597887612879276, + -0.02291908673942089, -0.018153883516788483, 0.04002770036458969, 0.03231114521622658, + -0.022765370085835457, 0.0016601349925622344, -0.01580202579498291, -0.006509881466627121, + -0.011913006193935871, -0.02327263355255127, -0.015832768753170967, -0.02345709316432476, + -0.017185471951961517, 0.006198605988174677, 0.01580202579498291, 0.02056722901761532, + -0.03307972848415375, -0.0006888407515361905, -0.02128969505429268, 0.007140117697417736, + -0.026223985478281975, 0.014457008801400661, 0.030374322086572647, 0.005456925369799137, + -0.03231114521622658, -0.01228961069136858, -0.0333256721496582, 0.01855354569852352, + -0.026270098984241486, 0.0071900757029652596, 0.023195775225758553, -0.015025759115815163, + -0.03609256446361542, -0.019644930958747864, 0.0018811021000146866, -0.023626180365681648, + 0.01858428865671158, 0.025947295129299164, 0.051740873605012894, -0.01155177317559719, + -0.039996955543756485, 0.007459078915417194, 0.030266720801591873, -0.0008733001886866987, + 0.045407768338918686, -0.003581587690860033, 0.0009525601053610444, 0.0014708719681948423, + 0.016309289261698723, 0.018922464922070503, -0.006148648448288441, -0.01062178984284401, + 0.023779897019267082, 0.0015448478516191244, 0.005433867685496807, 0.02507111243903637, + 0.01909155212342739, 0.011090624146163464, -0.023257261142134666, 0.014510809443891048, + -0.004154180642217398, -0.015310133807361126, -0.002225042087957263, -0.040949996560811996, + 0.02467145025730133, 0.030604897066950798, 0.030820099636912346, -0.012735387310385704, + 0.0032837623730301857, -0.01451849564909935, 0.029098477214574814, 0.027991721406579018, + -0.021089863032102585, -0.006171705666929483, -0.013165793381631374, 0.0014285999350249767, + 0.009238343685865402, -0.024517735466361046, -0.03676891699433327, -0.021720100194215775, + 0.05057263374328613, 0.0477135106921196, 0.020413512364029884, -0.014149576425552368, + 0.001369034987874329, -0.01864577643573284, 0.0036046451423317194, -0.023779897019267082, + -0.017907937988638878, -0.009976182132959366, -0.019276011735200882, -0.00836984720081091, + -0.004899703897535801, -0.0035354727879166603, -0.028376011177897453, 0.028345268219709396, + -0.012543242424726486, 0.02264239639043808, 0.012866046279668808, 0.014057346619665623, + -0.008285303600132465, -0.015325506217777729, -0.02359543740749359, 0.0076512242667376995, + -0.0005149492644704878, -0.057428374886512756, -0.017400674521923065, -0.00896165519952774, + 0.019060809165239334, -0.011866890825331211, 0.008500506170094013, -0.004669129848480225, + -0.025470774620771408, -0.019706416875123978, -0.02593192458152771, -0.02065945789217949, + -0.024287160485982895, 0.012366469018161297, -0.005207136273384094, -0.0048190029338002205, + -0.006844214163720608, -0.008854053914546967, -0.02156638354063034, -0.033110469579696655, + 0.010798563249409199, 0.012328039854764938, -0.024148816242814064, 0.017277700826525688, + 0.031634796410799026, -0.004769045393913984, -0.00026708192308433354, 0.0042925248853862286, + -0.01701638475060463, 0.008769509382545948, 0.021627869457006454, -0.01287373248487711, + 0.00853124912828207, 0.017861822620034218, 0.021120605990290642, -0.018691889941692352, + 0.01112136710435152, 0.010560302995145321, -0.010106840170919895, 0.008769509382545948, + -0.027346113696694374, -0.01764662005007267, -0.020198309794068336, 0.008830996230244637, + 0.014203377068042755, -0.022135132923722267, 0.012658529914915562, -0.010406587272882462, + -0.029006248340010643, -0.0007964420947246253, 0.006978715769946575, 0.0337560772895813, + 0.017477532848715782, -0.009353631176054478, 0.010468073189258575, -0.0012278081849217415, + 0.01114442478865385, 0.011559458449482918, 0.016693580895662308, -0.0193528700619936, + 0.05524560436606407, 0.012404898181557655, 0.007674281485378742, 0.0007335145492106676, + 0.025455404072999954, -0.02310354635119438, 0.016170945018529892, -0.016601350158452988, + 0.045530740171670914, 0.008900168351829052, 0.023779897019267082, 0.017446789890527725, + -0.0041349660605192184, 0.016954896971583366, 0.023564694449305534, -0.008123901672661304, + -0.0055376263335347176, -0.010491130873560905, -0.003965877927839756, 0.008223816752433777, + 0.015148731879889965, -0.008977026678621769, -0.02079780213534832, 0.0027207769453525543, + 0.01188226230442524, -0.05902702361345291, 0.010744762606918812, -0.00041359267197549343, + -0.018876349553465843, -0.022135132923722267, 0.03793716058135033, 0.004392440430819988, + -0.031942225992679596, 0.0249942559748888, 0.01967567391693592, -0.0027438343968242407, + 0.02808395028114319, 0.018338343128561974, -0.002715012524276972, 0.02808395028114319, + 0.02511722780764103, 0.020244425162672997, 0.00019514752784743905, -0.03307972848415375, + 0.003141575027257204, 0.05835067108273506, 0.026577532291412354, -0.01395743153989315, + 0.00952271930873394, 0.013496282510459423, 0.008838681504130363, -0.009484290145337582, + 0.05546080693602562, -0.00817001610994339, 0.00889248214662075, -0.031849998980760574, + 0.0016678208485245705, 0.015202532522380352, 0.007835683412849903, 0.017954053357243538, + -0.01152102928608656, -0.01564062386751175, -0.008000928908586502, 0.0019387456122785807, + -0.006260092370212078, 0.021812329068779945, -0.0027822633273899555, -0.0014872043393552303, + -0.027346113696694374, -0.02196604572236538, -0.00929983053356409, 0.0013392524560913444, + -0.02268851175904274, 0.01594037003815174, -0.027668917551636696, -0.016693580895662308, + -0.012258867733180523, 0.020106079056859016, -0.008485134690999985, -0.019383613020181656, + -0.0039927782490849495, 0.008154644630849361, -0.011913006193935871, 0.007459078915417194, + 0.035416215658187866, 0.006156334187835455, 0.01850743032991886, 0.02313428930938244, + -0.03729155287146568, -0.0032299617305397987, -0.005449239630252123, 0.04586891457438469, + 0.0026054896879941225, 0.006552153266966343, 0.0007930795545689762, 0.007143960800021887, + -0.0014420502120628953, -0.02516334317624569, 0.013173478655517101, -0.010045354254543781, + 0.0002963840670417994, -0.0028360639698803425, -0.020813174545764923, 0.015679053962230682, + 0.009561148472130299, -0.020244425162672997, 0.02539391815662384, -0.011444171890616417, + -0.0014939294196665287, -0.0021481839939951897, 0.014257177710533142, -0.015740539878606796, + -0.030466552823781967, -0.013503968715667725, 0.005499197170138359, 0.014672212302684784, + -0.028698815032839775, 0.004623014945536852, 0.013711486011743546, 0.026408445090055466, + -0.039505064487457275, -0.031942225992679596, 0.03928986191749573, -0.009000083431601524, + 9.877467527985573e-5, 0.02733074128627777, -0.016370775178074837, -0.028191551566123962, + 0.0014036211650818586, 0.04190303757786751, -0.04808242991566658, 0.022980572655797005, + -0.0029744086787104607, 0.000991469481959939, 0.04033513367176056, -0.03160405158996582, + -0.01697026938199997, 0.007566680200397968, 0.02002922259271145, -0.0013949745334684849, + 0.0025805109180510044, -0.011044509708881378, 0.058904051780700684, -0.001545808627270162, + -0.012258867733180523, -0.034370943903923035, -0.044546958059072495, 0.009868580847978592, + 0.008677279576659203, -0.030420437455177307, -0.020859289914369583, 0.01692415401339531, + -0.024840539321303368, 0.01139037124812603, 0.023257261142134666, -0.022473309189081192, + 0.013050505891442299, 0.005176393315196037, -0.006540624424815178, -0.012573985382914543, + -0.025670606642961502, -0.01492584403604269, -2.1060921426396817e-5, 0.012666215188801289, + -0.014795185066759586, -0.012458698824048042, -0.030850842595100403, -0.010514188557863235, + -0.008700337260961533, 0.02196604572236538, 0.008654222823679447, -0.005529940593987703, + 0.022396450862288475, 0.0003571499837562442, -0.006805785000324249, 0.021858444437384605, + 0.028529727831482887, 0.04070405289530754, 0.020920775830745697, 0.015425421297550201, + -0.013534711673855782, -0.0027092481032013893, 0.013734542764723301, -0.02817618101835251, + -0.03134273365139961, 0.023795269429683685, 0.02813006564974785, -0.0008771431166678667, + -0.03483209386467934, -0.009007769636809826, -0.03772195801138878, -0.027207769453525543, + -0.019260641187429428, -0.013165793381631374, -0.030374322086572647, 0.03134273365139961, + -0.0007258286932483315, 0.018830236047506332, 0.01156714465469122, 0.01764662005007267, + 0.0015323584666475654, -0.02494814060628414, -0.022365707904100418, 0.0036699743941426277, + -0.002520945854485035, 0.015271704643964767, 0.009130742400884628, -0.01064484752714634, + -0.026039525866508484, 0.00259972526691854, 0.009369002655148506, -0.013488597236573696, + 0.0024037372786551714, -0.005748986266553402, 0.042425673454999924, 0.033694591373205185, + 0.012904475443065166, -0.012328039854764938, 0.027761146426200867, 0.0017417967319488525, + 0.025578375905752182, -0.052202023565769196, 0.03627702593803406, -0.020244425162672997, + 0.0028149280697107315, 0.016124829649925232, 0.0011240497697144747, 0.006963344290852547, + -0.015786655247211456, -0.0008070101030170918, -0.01318885013461113, 0.01886097900569439, + -0.02224273420870304, 0.04826688766479492, 0.01022212766110897, 0.003372149309143424, + -0.032218918204307556, 0.030543409287929535, 0.000530320918187499, 0.0012451012153178453, + 0.017385302111506462, 0.004446241073310375, 0.0124894417822361, -0.00010784152254927903, + 0.004561528563499451, 0.008830996230244637, -0.019967734813690186, -0.05466148257255554, + 0.006544467527419329, 0.009491975419223309, -0.004046579357236624, 0.010714019648730755, + -0.013288766145706177, 0.015356249175965786, 0.005003462545573711, -0.028376011177897453, + 0.016124829649925232, -0.017354559153318405, -0.027930235490202904, -0.02390287071466446, + -0.007020987570285797, -0.048420604318380356, 0.05604492872953415, 0.015271704643964767, + -0.011989864520728588, 0.00556068355217576, -0.012858361005783081, 0.022442566230893135, + 0.02070557326078415, -0.03137347847223282, -0.010076097212731838, 0.025639863684773445, + -0.031450334936380386, -0.006732769776135683, 0.005187922157347202, -0.008592735975980759, + -0.03255709260702133, 0.016370775178074837, -0.008316046558320522, 0.006479138042777777, + 0.02922145090997219, -0.023518579080700874, -0.006014146376401186, 0.012743073515594006, + -0.015094931237399578, 0.042118240147829056, -0.026131754741072655, -0.0014593432424589992, + -0.0038313765544444323, 0.02462533675134182, 0.02822229638695717, 0.0008363122469745576, + -0.00853124912828207, 0.018568918108940125, 0.002513259882107377, -0.007747296709567308, + 0.019214525818824768, 0.014141891151666641, 0.012720015831291676, -0.033879052847623825, + -0.001936824177391827, 0.0007637774106115103, -0.018753377720713615, -0.032249659299850464, + 0.02250405214726925, 0.020582599565386772, -0.006502195727080107, -0.011236654594540596, + 0.009407431818544865, 0.012443327344954014, 0.013219594024121761, 0.017185471951961517, + -0.012074408121407032, -0.003620016621425748, -0.022519424557685852, -0.014387836679816246, + -0.0056990282610058784, -0.03148107975721359, -0.008023985661566257, 0.0018657305045053363, + -0.0028360639698803425, 0.023472465574741364, 0.007908699102699757, 0.008154644630849361, + 0.020336654037237167, -0.04291756451129913, -0.012704644352197647, 0.02686959318816662, + 0.0012249259743839502, 0.01629391871392727, -0.013450168073177338, -0.03799864649772644, + -0.02457922138273716, 0.008408276364207268, 0.030143748968839645, -0.02660827524960041, + -4.998778968001716e-5, 0.0024287160485982895, 0.012720015831291676, 0.004288682248443365, + -0.0005754750454798341, -0.011421114206314087, -0.026531416922807693, 0.021135978400707245, + -0.032926011830568314, -0.04669898375868797, -0.021305065602064133, 0.008454391732811928, + -0.0052263508550822735, 0.009807094000279903, 0.007847212255001068, -0.0166628360748291, + 0.026054896414279938, 0.0034720648545771837, 0.0024440877605229616, -0.015133360400795937, + ], + index: 84, + }, + { + title: "Rhodes Scholarship", + text: 'The Rhodes Scholarship, named after Cecil John Rhodes, is an international postgraduate award for selected foreign students to study at the University of Oxford. It describes itself as "perhaps the most prestigious scholarship" in the world.', + vector: [ + 0.02137630805373192, -0.002015131525695324, -0.025521298870444298, 0.02288626879453659, + -0.015121813863515854, -0.031146641820669174, 0.047341711819171906, -0.022560590878129005, + -0.010362476110458374, 0.041894011199474335, -0.05181238055229187, 0.0260098148137331, + 0.0006805001175962389, -0.01773463748395443, 0.030939392745494843, 0.05344076827168465, + -0.002429630607366562, 0.00839360523968935, -0.06199721619486809, 0.018075119704008102, + -0.014329824596643448, -0.007101997267454863, -0.008252971805632114, -0.03541006147861481, + 0.020384471863508224, 0.006809627171605825, 0.011983463540673256, -0.03342638909816742, + -0.06809627264738083, -0.016180265694856644, -0.007734848186373711, 0.01946665160357952, + 0.007131604012101889, -0.018933724611997604, 0.009548281319439411, -0.029592271894216537, + 0.013441612012684345, -0.010925010778009892, 0.04227890446782112, -0.008334391750395298, + 0.04233811795711517, -0.017349746078252792, 0.019496258348226547, 0.015706554055213928, + 0.01373028103262186, -0.01373768225312233, -0.04500275477766991, -0.004244914278388023, + 0.012627417221665382, 0.0011435733176767826, -0.0014026351273059845, -0.02333037555217743, + 0.010776975192129612, -0.003349300241097808, -0.02383369579911232, 0.0020947004668414593, + 0.02565453015267849, 0.0303768590092659, -0.0063433158211410046, -0.03792666271328926, + -0.037541769444942474, 0.017201710492372513, -0.009318826720118523, -0.03917016088962555, + 0.05646069347858429, -0.01065114513039589, 0.030643321573734283, 0.01369327213615179, + -0.003371505532413721, 0.009644504636526108, -0.004615002777427435, 0.04035444185137749, + 0.030909786000847816, -0.010340270586311817, -0.03656473755836487, 0.01485534943640232, + -0.011798419058322906, -0.022205306217074394, -0.00861565861850977, 0.02130229026079178, + 0.034403420984745026, 0.014588885940611362, 0.001471101539209485, 0.0031161445658653975, + -0.018726475536823273, -0.01714249700307846, 0.030495287850499153, -0.04766739159822464, + 0.04127226397395134, 0.0159878209233284, -0.015573320910334587, 0.04627585783600807, + 0.011132259853184223, -0.0034011127427220345, 0.017246121540665627, -0.053529590368270874, + 0.028008293360471725, 0.0031809101346880198, 0.026335492730140686, 0.025846976786851883, + 0.01181322243064642, -0.018001101911067963, -0.03647591546177864, 0.047341711819171906, + 0.008512034080922604, -0.02005879394710064, -0.029118558391928673, -0.024647889658808708, + 0.03780823573470116, 0.04695682227611542, -0.0068873455747962, 0.017912279814481735, + -0.025121603161096573, 0.012849470600485802, -0.00432633375748992, 0.036949630826711655, + 0.026069030165672302, 0.040798548609018326, -0.028008293360471725, -0.0199847761541605, + -0.04941420629620552, 0.006987269502133131, -0.0038785268552601337, -0.01808992214500904, + -0.03366324305534363, -0.052345309406518936, 0.009755531325936317, 0.09717041999101639, + 0.013204755261540413, 0.026779599487781525, 0.025980208069086075, 0.007623821962624788, + -0.020014382898807526, -0.010910207405686378, -0.008438016287982464, 0.0520196296274662, + 0.019244598224759102, 0.024070551618933678, -0.04571332409977913, 0.02855602279305458, + -0.052878234535455704, -0.02978471666574478, -0.006498753093183041, -0.012960497289896011, + 0.005821491125971079, -0.027371739968657494, 0.005436599254608154, -0.0207841657102108, + 0.011346911080181599, -0.007079791743308306, 0.015588125213980675, -0.015440089628100395, + -0.05945100635290146, 0.024248193949460983, -0.059628646820783615, 0.03597259521484375, + -0.04411454126238823, -0.023093517869710922, 0.037393733859062195, 0.0031957137398421764, + -0.024943960830569267, -0.00594362011179328, 0.014899760484695435, 0.029991967603564262, + -0.006554265972226858, -0.013404603116214275, 0.0007702465518377721, 0.0031716579105705023, + -0.013271370902657509, 0.015736160799860954, -0.012397962622344494, -0.024322211742401123, + -7.62729105190374e-5, -0.029473843052983284, -0.036446310579776764, -0.002244586357846856, + 0.04257497191429138, -0.004648310597985983, 0.009126381017267704, -0.037097666412591934, + -0.01576576754450798, 0.06241171434521675, 0.04482511058449745, 0.0055883354507386684, + -0.008008713833987713, -0.015055197291076183, 0.05569090694189072, 0.020947005599737167, + -0.05394408851861954, -0.03277503326535225, 0.03170917555689812, -0.03896291181445122, + 0.013560039922595024, 0.03218289092183113, 0.0607537180185318, 0.0026442818343639374, + -0.03096899949014187, 0.02266421541571617, -0.00501469848677516, 0.022146092727780342, + 0.06614220142364502, 0.01104343868792057, 0.021405914798378944, 0.04962145909667015, + 0.0007623821729794145, 0.020399274304509163, 0.062234070152044296, -0.017823459580540657, + -0.005477308761328459, -0.008489828556776047, 0.00523305032402277, -0.049887921661138535, + 0.0004792645340785384, -0.005632746033370495, -0.028245149180293083, 0.0034973355941474438, + -0.021169058978557587, -0.00792729388922453, -0.018430404365062714, 0.02333037555217743, + -0.015107009559869766, -0.043552007526159286, 0.005854798946529627, 0.004341137129813433, + 0.014374234713613987, 0.0025369562208652496, 0.017260923981666565, -0.016106247901916504, + 0.009555683471262455, -0.010288458317518234, -0.01626908779144287, 0.023271160200238228, + -0.0038785268552601337, 0.03612063080072403, -0.019140973687171936, 0.05237491428852081, + 0.020813774317502975, -0.02121346816420555, 0.003602810902521014, 0.01946665160357952, + -0.002995865885168314, 0.031797997653484344, 0.020295649766921997, -0.03253817558288574, + 0.026069030165672302, 0.01050310954451561, -0.058829259127378464, -0.019140973687171936, + 0.036298274993896484, -0.033248744904994965, -0.0066171810030937195, -0.005044305231422186, + -0.04757856950163841, 0.04737132042646408, 0.0017616209806874394, 0.031946033239364624, + -0.004078374709933996, -0.04707524925470352, 0.022856662049889565, -0.05844436585903168, + 0.03395931422710419, -0.015218036249279976, 0.0063285124488174915, -0.0045964983291924, + -0.05296705663204193, 0.054388195276260376, -0.021524343639612198, -0.047045640647411346, + 0.03576534613966942, -0.04802267625927925, -0.01729053258895874, -0.054240159690380096, + 0.04041365534067154, -0.0014562979340553284, 0.006802225485444069, 0.012212918139994144, + 0.008326989598572254, -0.06054646894335747, -0.005340375937521458, 0.032005246728658676, + 0.024011338129639626, -0.06211564317345619, 0.011939052492380142, 0.0036453711800277233, + 0.02282705530524254, -0.0047778417356312275, -0.03191642835736275, 0.013486022129654884, + 0.045150790363550186, -0.006087954621762037, -0.03697923570871353, -0.0009205949609167874, + 0.02113945223391056, 0.009511272422969341, -0.010850992985069752, -0.01634310558438301, + -0.04663114249706268, -0.013523031026124954, -0.011679991148412228, 0.0018088072538375854, + -0.004492873791605234, 0.0559573695063591, -0.0471048578619957, 0.0027775138150900602, + 0.0028348774649202824, 0.011605973355472088, -0.0027016454841941595, -0.02922218292951584, + 0.010925010778009892, 0.005988030694425106, 0.017334941774606705, -0.025772958993911743, + 0.06708963215351105, -0.003963646944612265, -0.003556549781933427, -0.04201243817806244, + 0.0007087193662300706, 0.029103754088282585, 0.09083450585603714, -0.035854168236255646, + -0.024440640583634377, -0.010843590833246708, 0.0071686129085719585, -0.043848078697919846, + 0.05122023820877075, -0.0705832690000534, 0.01933342032134533, -0.03387049213051796, + -0.004922176245599985, 0.004082075320184231, 0.01518842950463295, -0.02979952096939087, + 0.019585080444812775, -0.02282705530524254, 0.01723131723701954, -0.00527005922049284, + 0.030998608097434044, 0.04372964799404144, -0.012975300662219524, 0.006672694347798824, + 0.00941505003720522, -0.006491350941359997, 0.025906190276145935, 0.03952544555068016, + 0.014004146680235863, -0.001432242221198976, 0.054684266448020935, 0.023167535662651062, + 0.06856998801231384, -0.037156879901885986, 0.0005505065200850368, 0.05166434496641159, + -0.021095041185617447, -0.01122848317027092, 0.014263208024203777, -0.01766061969101429, + 0.01446305587887764, -0.044795505702495575, 0.012960497289896011, 0.04627585783600807, + 0.008719283156096935, -0.004256017040461302, -0.01933342032134533, 0.02130229026079178, + -0.010236646048724651, -0.006613480392843485, 0.0171572994440794, 0.05675676092505455, + 0.021983252838253975, 0.020473292097449303, -0.052730198949575424, 0.049088530242443085, + 0.04470668360590935, -0.04976949095726013, 0.011176670901477337, -0.018874509260058403, + -0.028437595814466476, -0.01133950985968113, -0.05696401372551918, -0.006842934992164373, + 0.01708328165113926, 0.004093178082257509, 0.009170791134238243, 0.06418813765048981, + -0.046187035739421844, -0.009585290215909481, 0.03641670197248459, -0.0025129003915935755, + -0.01634310558438301, 0.02855602279305458, -0.01962949149310589, 0.0319756418466568, + 0.06300385296344757, 0.0055698310025036335, -0.003826714353635907, -0.016683585941791534, + -0.037097666412591934, 0.03173878416419029, -0.019066955894231796, 0.03366324305534363, + -0.044292185455560684, -0.023345177993178368, -0.037097666412591934, 0.041094619780778885, + 0.061523500829935074, -0.04361122101545334, -0.029903145506978035, -0.052345309406518936, + -0.001075106905773282, 0.004851859528571367, -0.03552848845720291, 0.027934275567531586, + -0.015321660786867142, 0.03387049213051796, 0.020236436277627945, 0.03925898298621178, + 0.047193676233291626, -0.002557310974225402, -0.02805270254611969, 0.012768050655722618, + 0.0033048896584659815, -0.028067506849765778, 0.006210084073245525, 0.03022882342338562, + 0.002842279151082039, 0.021746397018432617, -0.0456245020031929, -0.014485261403024197, + -0.06170114502310753, 0.006746712140738964, -0.025447281077504158, 0.04180518910288811, + 0.005802986677736044, 0.060280002653598785, -0.012190712615847588, -0.010362476110458374, + -0.01911136694252491, 0.0023981730919331312, 0.02028084546327591, 0.07757053524255753, + -0.00617677578702569, -0.04926617071032524, -0.036239057779312134, -0.04097619280219078, + -0.05382566154003143, 0.02834877371788025, -0.05252294987440109, -0.0038896293845027685, + 0.028881700709462166, 0.0019152075983583927, 0.016165463253855705, -0.04461786150932312, + -0.025595316663384438, -0.013486022129654884, 0.009614897891879082, -0.049384601414203644, + -0.038252342492341995, 0.005251554772257805, -0.0043818471021950245, 0.014507466927170753, + 0.013256567530333996, 0.07247811555862427, 0.04216047376394272, -0.08100495487451553, + -0.002559161512181163, 0.03241974860429764, -0.006247092969715595, -0.046483106911182404, + 0.009563085623085499, 0.0352916345000267, -0.04746014252305031, -0.002220530528575182, + -0.051841989159584045, 0.023730071261525154, 0.02812672033905983, 0.058829259127378464, + 0.07561647146940231, -0.003658324247226119, 0.01816393993794918, -0.0030846870504319668, + 0.012227721512317657, -0.03662395104765892, 0.008593453094363213, 0.02210168167948723, + -0.0043670437298715115, -0.03617984429001808, 0.00015775019710417837, 0.04257497191429138, + -0.04106501117348671, 0.027194097638130188, 0.016594765707850456, 0.00482965400442481, + 0.019214991480112076, -0.027194097638130188, 0.012249927036464214, 0.0013138139620423317, + 0.018223155289888382, -0.007257434073835611, -0.005740071646869183, 0.018548833206295967, + 0.004311530385166407, 0.03182760626077652, 0.005969526246190071, -0.009740727953612804, + -0.05107220262289047, 0.037393733859062195, 0.020961808040738106, 0.00626559741795063, + -0.010925010778009892, 0.010118218138813972, 0.058533187955617905, 0.0480818897485733, + -0.015247643925249577, 0.023211946710944176, 0.026542741805315018, 0.0072204251773655415, + -0.0017468173755332828, 0.009799941442906857, 0.020887792110443115, -0.017423763871192932, + 0.003373356070369482, 0.03973269462585449, -0.04728249832987785, -0.022471770644187927, + -0.0008026292780414224, -0.014337225817143917, -0.010258851572871208, 0.0047630383633077145, + -0.014085565693676472, 0.0022889969404786825, -0.012338748201727867, 0.018119528889656067, + 0.03395931422710419, -0.009585290215909481, -0.009215202182531357, 0.07076090574264526, + 0.0223829485476017, -0.019348222762346268, 0.008164150640368462, -0.025388065725564957, + 0.009481665678322315, 0.03132428601384163, -0.0019300112035125494, -0.028881700709462166, + 0.022146092727780342, 0.0006157346069812775, 0.017838262021541595, -0.022782644256949425, + -0.018696866929531097, 0.004337436519563198, 0.042101260274648666, -0.04526921734213829, + -0.051486704498529434, -0.004300427623093128, 0.0009293846087530255, -0.0003573666326701641, + -0.04482511058449745, -0.027593793347477913, -0.016328301280736923, -0.017705030739307404, + 0.03493634983897209, -0.009067166596651077, 0.0002391696471022442, -7.89329205872491e-5, + 0.008482427336275578, 0.023093517869710922, 0.02411496266722679, 0.007423974107950926, + -0.010843590833246708, -0.0392293743789196, -0.013019710779190063, 0.015018188394606113, + -0.003256778232753277, -0.013012309558689594, 0.006239690817892551, -0.03073214367032051, + 0.021613163873553276, -0.0020650934893637896, -0.012242525815963745, 0.009489067830145359, + -0.038548409938812256, -0.011931651271879673, -0.0044151549227535725, -0.013567442074418068, + -0.01643192581832409, -0.0006629208801314235, -0.016032230108976364, -0.007227827329188585, + 0.06685277819633484, -0.04645350202918053, -0.02863004058599472, -0.006372923031449318, + -0.01507740281522274, 0.0010621538385748863, -0.01700926385819912, 0.03117625042796135, + 0.01096942089498043, 0.008800703100860119, 0.0036490720231086016, 0.012812461704015732, + 0.0029459039214998484, 0.007009475026279688, -0.0017616209806874394, 0.018918920308351517, + -0.00644694035872817, 0.021820414811372757, 0.009999789297580719, -0.023300766944885254, + 0.0023630147334188223, 0.01925940252840519, 0.017053674906492233, 0.0010741816367954016, + -0.01391532551497221, 0.03541006147861481, -0.01569174975156784, 0.0091929966583848, + -0.004067271947860718, 0.04600939527153969, -0.009163389913737774, 0.04674956947565079, + 0.00348808360286057, 0.019096562638878822, -0.005973227322101593, -0.0013221409171819687, + 0.036801595240831375, 0.01376728992909193, 0.003371505532413721, 0.019170580431818962, + 0.018519224599003792, 0.0014655501581728458, -0.011620776727795601, -0.01771983504295349, + -0.018489617854356766, 0.012087088078260422, -0.01569174975156784, -0.008260373957455158, + 0.027416151016950607, 0.04026562348008156, 0.011420928873121738, -0.028023095801472664, + 0.02565453015267849, 0.03973269462585449, 0.02325635775923729, 0.014685109257698059, + 0.0005259881727397442, 0.000936786353122443, 0.02948864735662937, 0.0471048578619957, + 0.07052405178546906, -0.02113945223391056, -0.017246121540665627, 0.01585458777844906, + 0.01289388071745634, 0.01315294299274683, 0.0036860809195786715, -0.0058103883638978004, + -0.04725288972258568, -0.015750963240861893, -0.013552638702094555, 0.018785689026117325, + -0.01808992214500904, -0.028363578021526337, -0.015469696372747421, 0.020236436277627945, + 0.03313031792640686, -0.01093241199851036, -0.01911136694252491, 0.008060526102781296, + -0.004022861365228891, -0.024381425231695175, -0.0024777420330792665, -0.022723430767655373, + -0.028511613607406616, 0.0017477426445111632, 0.021050630137324333, -0.017853066325187683, + -0.06531320512294769, 0.004992492962628603, -0.03700884431600571, 0.040443263947963715, + 0.01250158715993166, -0.06170114502310753, 0.011872436851263046, -0.05800025910139084, + 0.014292815700173378, 0.006902149412781, 0.013197354041039944, 0.03831155598163605, + -0.046335071325302124, 0.00904496107250452, -0.008090132847428322, 0.018489617854356766, + -0.044440221041440964, 0.009666710160672665, -0.008297382853925228, 0.04754896089434624, + 0.029340611770749092, -0.04586135968565941, -0.06448420882225037, -0.02740134857594967, + -0.03902212530374527, -0.0030846870504319668, -0.0009057914721779525, 0.021924039348959923, + 0.003132798708975315, 0.0673857033252716, 0.022175699472427368, 0.01968870498239994, + -0.02994755655527115, -0.0028200738597661257, -0.01860804669559002, -0.006968765053898096, + -0.025254834443330765, -0.0327158160507679, 0.005277460906654596, -0.02929620072245598, + 0.0006333138444460928, -0.010081209242343903, -0.005384786520153284, 0.04026562348008156, + 0.024159373715519905, -0.007398067973554134, 0.0034732799977064133, -0.0008780347998254001, + 0.020310454070568085, -0.018060315400362015, -0.005162733606994152, 0.016091445460915565, + 0.02137630805373192, 0.0053958892822265625, 0.0335744209587574, 0.03446263447403908, + -0.02609863691031933, 0.008053123950958252, 0.03612063080072403, 0.01714249700307846, + 2.4605098587926477e-5, -0.01261261384934187, -0.00430412869900465, 0.013967137783765793, + -0.020695345476269722, 0.0004549774748738855, -0.001744041801430285, 0.03277503326535225, + 0.01983674056828022, 0.005629044957458973, 0.011783615685999393, -0.01723131723701954, + 0.010384681634604931, -0.0029921650420874357, 0.04118344187736511, 7.72559578763321e-5, + -0.004429958760738373, -0.02476631850004196, -0.007838472723960876, -0.01391532551497221, + 0.003993254154920578, -0.029991967603564262, -0.018356386572122574, 0.015232839621603489, + 0.004270820412784815, 0.012257329188287258, -0.0033011888153851032, -0.0007831996772438288, + 0.026394708082079887, 0.021257879212498665, -0.01656515896320343, 0.014026351273059845, + 0.007398067973554134, -0.0015293904580175877, 0.009962780401110649, 0.001509960857219994, + 0.022146092727780342, -0.03458106517791748, -0.02753457985818386, 0.018489617854356766, + 0.037897054105997086, -0.021243076771497726, 0.03771941363811493, -0.024958763271570206, + -0.01365626323968172, 0.03395931422710419, 0.0019004041096195579, -0.007949499413371086, + -0.006639386527240276, -0.009873959235846996, -0.026054225862026215, 0.035498883575201035, + -0.025269638746976852, -0.04381847009062767, -0.03925898298621178, -0.021317094564437866, + 0.01496637612581253, 0.01504039391875267, 0.012198114767670631, -0.02195364609360695, + 0.027889864519238472, -0.04971027746796608, -0.016032230108976364, -0.027282919734716415, + 0.0038341162726283073, -0.041449904441833496, 0.005573531612753868, 0.043640829622745514, + 0.016594765707850456, 0.01771983504295349, 0.013086327351629734, 0.0048111495561897755, + -0.0504208467900753, 0.0043818471021950245, 0.002736804075539112, 0.005010997410863638, + 0.013278773054480553, 0.019969971850514412, 0.0017209112411364913, 0.02492915652692318, + 0.009074568748474121, -0.05782261863350868, 0.027445757761597633, 0.014973778277635574, + -0.025980208069086075, -0.037245698273181915, -0.012161105871200562, 0.02448505163192749, + -0.042249295860528946, 0.024144569411873817, -0.018652457743883133, 0.025832172483205795, + -0.016816819086670876, 0.014411243610084057, 0.008660069666802883, -0.0032826843671500683, + -0.027445757761597633, -0.006117561832070351, 0.034906741231679916, 0.04337436333298683, + 0.015484499745070934, 0.0010945365065708756, -0.0034344205632805824, -0.011324706487357616, + 0.02156875468790531, -0.023670855909585953, -0.02065093442797661, -0.048585209995508194, + -0.055039551109075546, 0.027223704382777214, 0.007801464293152094, -0.0015136617003008723, + 0.03771941363811493, -0.03908133879303932, 0.0027997191064059734, 0.050687313079833984, + 0.015810178592801094, 0.024292604997754097, -0.023804089054465294, -0.005203443579375744, + 0.04272300750017166, -0.04426257684826851, -0.04577253758907318, -0.014403841458261013, + 0.026261474937200546, 0.0005107220495119691, 0.0010741816367954016, -0.007764455396682024, + 0.0009770335163921118, 0.01649114117026329, -0.00849723070859909, -0.009644504636526108, + -0.01692044362425804, -0.03167957067489624, 0.0003996955056209117, -0.008408409543335438, + -0.033396780490875244, -0.029118558391928673, 0.01948145590722561, -0.006698600482195616, + -0.009000550955533981, -0.01056972611695528, 0.045950181782245636, 0.0024037244729697704, + -0.03058410808444023, 0.003654623404145241, -0.0007281489670276642, -0.03102821484208107, + 0.032745424658060074, -0.00659497594460845, -0.01823795773088932, 0.05625344067811966, + -0.018371189013123512, -0.020769363269209862, -0.01046610064804554, -0.022042466327548027, + 0.004973988514393568, 0.017823459580540657, -0.0029051941819489002, 0.04876285046339035, + -0.038696445524692535, 0.02281225100159645, -0.015588125213980675, 0.0004299964930396527, + 0.024618282914161682, 0.0056031388230621815, 0.0031883118208497763, -0.022279324010014534, + -0.0062878024764359, -0.024692300707101822, 0.05326312780380249, -0.004685319494456053, + 0.02652793936431408, 0.00655796704813838, -0.012671828269958496, -0.009814745746552944, + 0.020828576758503914, 0.010340270586311817, 0.020221631973981857, -0.007261135149747133, + 0.025624923408031464, -0.048585209995508194, -0.004918475169688463, -0.0172165147960186, + -0.001686678035184741, 0.04227890446782112, -0.03943662345409393, 0.014470458030700684, + 0.0343145988881588, 0.01533646509051323, -0.008304784074425697, -0.012072284705936909, + 0.006165673490613699, -0.003710136516019702, 0.00492587685585022, 0.0159878209233284, + 0.03096899949014187, 0.037245698273181915, 0.010850992985069752, -0.03890369459986687, + 0.057941045612096786, -0.008978345431387424, -0.017112888395786285, 0.04680878669023514, + 0.0001761389576131478, -0.02338958904147148, -0.005255255848169327, -0.024588676169514656, + -0.03372245654463768, -0.0009173566941171885, -0.047993067651987076, 0.014566680416464806, + 0.0036638753954321146, -0.018134333193302155, -0.056579120457172394, 0.010436493903398514, + -0.013056719675660133, -0.01307892519980669, -0.010236646048724651, 0.03508438542485237, + 0.0009964631171897054, 0.05012477934360504, 0.012198114767670631, -0.0018393395002931356, + 0.013685869984328747, 0.0034991861321032047, 0.021331897005438805, 0.007324050180613995, + -0.06679356098175049, -0.0248403362929821, 0.007224126253277063, 0.009622299112379551, + -0.03413695842027664, 0.002035486279055476, -0.007146407850086689, 0.019895954057574272, + -0.012220320291817188, 0.04192361608147621, 0.0068244305439293385, -0.017482977360486984, + 0.025091996416449547, -0.00045012004557065666, 0.032094068825244904, 0.05059849098324776, + -0.052789416164159775, 0.028156328946352005, -0.014581484720110893, 0.013959735631942749, + -0.00753870140761137, 0.03327835351228714, 0.025624923408031464, 0.013663665391504765, + -0.0159286055713892, 0.011687392368912697, 0.010880599729716778, 0.002919997787103057, + -0.007623821962624788, -0.026631563901901245, -0.013900521211326122, 0.027090473100543022, + -0.016772408038377762, -0.008993148803710938, -0.024011338129639626, -0.023345177993178368, + -0.03831155598163605, -0.013463817536830902, -0.004022861365228891, -0.06975426524877548, + -0.052078843116760254, 0.05551326647400856, 0.004851859528571367, 0.024366622790694237, + -0.0057437727227807045, 0.011517152190208435, -0.00528486305847764, 0.027786239981651306, + -0.0336928516626358, -0.047489747405052185, 0.016298694536089897, -0.04926617071032524, + 0.014307619072496891, -0.011724401265382767, -0.025254834443330765, -0.02050289884209633, + -0.013019710779190063, -0.010747368447482586, -0.005421795416623354, 0.016106247901916504, + -0.024647889658808708, 0.03407774493098259, 0.016609568148851395, 0.0038304151967167854, + 0.005599438212811947, 0.004011758603155613, -0.007364759687334299, -0.02137630805373192, + -0.009533477947115898, -0.009000550955533981, -0.03493634983897209, -0.01392272673547268, + 0.003299338510259986, -0.006643087603151798, -0.001346196630038321, 0.041094619780778885, + -0.010999028570950031, 0.007298144046217203, 0.0041412897408008575, -0.00666899373754859, + -0.0031957137398421764, -0.014744323678314686, 0.017468174919486046, -0.00904496107250452, + -0.031294677406549454, -0.037245698273181915, 0.059687864035367966, 0.01195385679602623, + -0.003845218801870942, -0.004996194038540125, -0.03392970934510231, -0.04746014252305031, + -0.027919471263885498, 0.003223470179364085, 0.012220320291817188, 0.001772723626345396, + -0.03422577679157257, -0.0312354639172554, -0.0103920828551054, -0.019925560802221298, + 0.01628389023244381, -0.0036657259333878756, -0.027519775554537773, 0.005059109069406986, + 0.05610540509223938, 0.007897687144577503, -0.012346150353550911, 0.046838391572237015, + -0.02179080620408058, -0.011739205569028854, -0.010133021511137486, 0.032005246728658676, + 0.008682274259626865, 0.02825995348393917, 0.03212367743253708, -0.008660069666802883, + 0.00789028499275446, -0.0004059407510794699, 0.035350847989320755, -0.014085565693676472, + -0.01663917675614357, 0.02993275225162506, -0.00038003455847501755, -0.0019503660732880235, + -0.010044200345873833, -0.021761199459433556, 0.002416677540168166, -0.005710464436560869, + 0.02783065102994442, 0.012064882554113865, -0.027297722175717354, -0.01773463748395443, + -0.018060315400362015, 0.014329824596643448, -0.04506196826696396, 0.019599882885813713, + -0.005710464436560869, -0.0061693741008639336, 0.021761199459433556, 0.002220530528575182, + 0.015232839621603489, -0.006754113826900721, -0.02521042339503765, 0.0156177319586277, + -0.00047116883797571063, 0.0018967032665386796, 0.010658547282218933, 0.007050184532999992, + 0.0098073435947299, 0.0180159043520689, 0.019673900678753853, -0.004241213668137789, + -0.027934275567531586, 0.0012323944829404354, 0.010813984088599682, -0.02892611175775528, + 0.0007952275336720049, -0.0005033202469348907, 0.016224676743149757, 0.0049813902005553246, + 0.008948738686740398, 0.005421795416623354, -0.0006532060797326267, -0.013856111094355583, + 0.019644293934106827, 0.012323944829404354, -0.002561012050136924, -0.02442583627998829, + 0.026394708082079887, 0.011739205569028854, 0.01883010007441044, 0.01180582121014595, + 0.008326989598572254, -0.005566129926592112, -0.018060315400362015, -0.021539146080613136, + 0.005817790050059557, -0.0045705921947956085, -0.006087954621762037, 0.0098073435947299, + -0.029459038749337196, -0.027519775554537773, 0.02768261544406414, 0.05335194990038872, + 0.0049998946487903595, 0.07117541134357452, -0.011065644212067127, -0.009718522429466248, + 0.016802014783024788, 0.02164277248084545, -0.015025590546429157, 0.051338668912649155, + 0.0045853955671191216, -0.005617942661046982, -0.012072284705936909, -0.03188681975007057, + 0.030051181092858315, 0.014692510478198528, 0.01045869942754507, 0.030288036912679672, + -0.00421530706807971, 0.007860678248107433, -0.0021835218649357557, -0.010754769667983055, + 0.032153282314538956, -0.003462177235633135, 0.01773463748395443, 0.04343358054757118, + -0.01612105220556259, -0.019066955894231796, 0.022797446697950363, 0.00742767471820116, + -0.035054776817560196, -0.011613375507295132, -0.01391532551497221, -0.022131288424134254, + -0.014211395755410194, -0.003989553544670343, 0.010480904020369053, -0.023493213579058647, + 0.001336019253358245, 0.02108023688197136, 0.00020493647025432438, -0.0015552965924143791, + -0.003919236361980438, 0.003397411899641156, 0.008793300949037075, -0.012553399428725243, + -0.04914774373173714, 0.014714716002345085, 0.026898028329014778, 0.001263851998373866, + -0.008341792970895767, 0.002227932447567582, 0.0035935586784034967, 0.03268621116876602, + 0.007416572421789169, 0.02331557124853134, 0.011828026734292507, 0.040295228362083435, + 0.021198665723204613, 0.0006259120418690145, -0.010821386240422726, -0.014285413548350334, + -0.01381170004606247, 0.007020577788352966, 0.03863723203539848, 0.0046039000153541565, + -0.0075016925111413, 0.007027979474514723, 0.034906741231679916, -0.00900795217603445, + -0.013352790847420692, -0.045150790363550186, -0.007631223648786545, -0.0103920828551054, + -0.00017382591613568366, -0.05071691796183586, -0.0303768590092659, 0.010821386240422726, + 0.03387049213051796, -0.01296789851039648, 0.0067393104545772076, -0.04503235965967178, + 0.026335492730140686, 0.0260098148137331, 0.03241974860429764, 0.01293088961392641, + 0.03176839277148247, -0.018726475536823273, 0.012745846062898636, -0.006047245115041733, + -0.010562323965132236, 0.0005703988135792315, -0.02747536450624466, -0.007542402483522892, + 0.018178744241595268, -0.007061287295073271, -0.00915598776191473, -0.0015145869692787528, + -0.005806687753647566, 0.01823795773088932, 0.02441103383898735, -0.018267564475536346, + -0.0003157316823489964, 0.006062048487365246, -0.036298274993896484, 0.013959735631942749, + -0.008637864142656326, 0.009563085623085499, -0.0098073435947299, -0.007446179166436195, + 0.01881529577076435, -0.012397962622344494, 0.010488306172192097, -0.025402870029211044, + 0.011502348817884922, 0.005529121030122042, 0.029251789674162865, 0.016609568148851395, + 0.048644423484802246, 0.03736412897706032, -0.006606078706681728, -0.02427780069410801, + 0.002783064963296056, 0.04630546644330025, -0.02667597495019436, 0.01133950985968113, + -0.022264519706368446, 0.030273234471678734, 0.01714249700307846, 0.0065690698102116585, + -0.058533187955617905, 0.0009520524763502181, -0.03866684064269066, -0.008741488680243492, + 0.015647338703274727, -0.002448135055601597, -0.052286095917224884, 0.008193758316338062, + 0.03236053138971329, 0.014174386858940125, 0.034403420984745026, -0.021983252838253975, + -0.014670305885374546, 0.010073807090520859, -0.0034214674960821867, -0.014899760484695435, + 0.02863004058599472, -0.010170030407607555, -0.015528910793364048, 0.03330795839428902, + 0.00019383382459636778, 0.0009659308125264943, -0.011642982251942158, 0.02259019762277603, + -0.003582456149160862, -0.024470247328281403, 0.03218289092183113, -0.01976272277534008, + -0.00780886597931385, -0.027712222188711166, 0.003543596714735031, 0.01042909175157547, + -0.01657996140420437, -0.01526244729757309, 0.021095041185617447, -0.0028903905767947435, + 0.005643848795443773, -0.014625894837081432, -0.0021224571391940117, 0.002013280987739563, + -0.00455948943272233, -0.00697616720572114, -0.006006535142660141, -0.013996744528412819, + 0.02084338106215, -0.00934103224426508, -0.01583978533744812, 0.013426808640360832, + -0.008082731626927853, 0.015306857414543629, -0.0171572994440794, -0.0119908656924963, + -0.030939392745494843, -0.022501377388834953, -0.00527005922049284, -0.02457387186586857, + 0.0008678573649376631, 0.00893393438309431, 0.01773463748395443, 0.014255806803703308, + 0.030184412375092506, 0.0017634714022278786, 0.004045066423714161, 0.04201243817806244, + -0.0030994906555861235, 0.019377831369638443, -0.0002037799422396347, 0.010628939606249332, + -0.04213086888194084, 0.015454893000423908, 0.037156879901885986, -0.01450006477534771, + 0.01925940252840519, -0.00162098731379956, 0.023078715428709984, 0.001979973167181015, + -9.691691229818389e-5, 0.005880705080926418, -0.0020984013099223375, 0.0032845349051058292, + 0.03958465903997421, -0.0005195116391405463, 0.0035158400423824787, -0.008334391750395298, + 0.002559161512181163, 0.007349956315010786, -0.008800703100860119, 0.010414288379251957, + -0.021924039348959923, 0.0037434445694088936, -0.0303768590092659, 0.03102821484208107, + 0.008489828556776047, 0.004681618884205818, 0.020325256511569023, 0.004629806149750948, + 0.0015090355882421136, -0.019969971850514412, 0.014847948215901852, 0.005747473333030939, + 0.007364759687334299, -0.027445757761597633, -0.03967348113656044, 0.00753870140761137, + 0.0034991861321032047, -0.003410364966839552, 0.013123336248099804, -0.02005879394710064, + 0.0076164198108017445, -0.02433701604604721, -0.015484499745070934, -0.035202812403440475, + 0.0020040287636220455, -0.008141945116221905, 0.006820729933679104, -0.026764795184135437, + -0.004411454312503338, 0.028156328946352005, -0.006413632538169622, -0.019022544845938683, + 0.0031346490141004324, -0.001017743139527738, 0.006891046650707722, -0.007412871345877647, + 0.009133782237768173, -0.008001311682164669, 0.004714926704764366, -0.00014849798753857613, + -0.009755531325936317, 0.0012157404562458396, -0.036505524069070816, -0.007523898035287857, + 0.007235229015350342, 0.0006675469921901822, 0.0005518943653441966, -0.01773463748395443, + -0.010244048200547695, -0.0207841657102108, -0.01808992214500904, 0.01457408256828785, + 0.0057918839156627655, -0.008586051873862743, -0.041745975613594055, 0.0351732037961483, + -0.026838812977075577, -0.024603478610515594, -0.01591380313038826, -0.013604450970888138, + 0.01976272277534008, -0.005991731770336628, -0.0006171224522404373, -0.04020640626549721, + -0.009355835616588593, -0.01896333135664463, 0.006691198796033859, 0.0495622418820858, + -0.0076164198108017445, -0.010991626419126987, 0.01991075836122036, 0.008956139907240868, + 0.014485261403024197, 0.025832172483205795, -0.009792540222406387, -0.0327158160507679, + 0.013989342376589775, -0.03606141731142998, 0.008963542059063911, 0.023582035675644875, + -0.008171552792191505, 0.014633296988904476, -0.02368566021323204, 0.052878234535455704, + 0.026986848562955856, 0.0183859933167696, -0.017542192712426186, -0.03890369459986687, + -0.004566891118884087, 0.036002203822135925, 0.0012000116985291243, 0.004722328390926123, + -0.005680857691913843, 0.02420378290116787, 0.008985747583210468, 0.007631223648786545, + 0.010910207405686378, 0.01788267306983471, 0.003127247327938676, 0.02762340009212494, + -0.008785899728536606, 0.001167629030533135, -0.027608597651124, 0.002226081909611821, + -0.007079791743308306, 0.026942437514662743, -0.031205857172608376, 0.008452819660305977, + 0.04731210693717003, 0.01671319454908371, 0.032153282314538956, 0.00753870140761137, + -0.016239481046795845, -0.030613714829087257, -0.016520747914910316, 0.01261261384934187, + 0.026409510523080826, 0.02993275225162506, 0.05317430570721626, -0.01464810036122799, + 0.009725923649966717, -0.019747918471693993, 0.027593793347477913, -0.004859261214733124, + -0.011902044527232647, -0.00178937753662467, 0.004233811516314745, -0.028955718502402306, + -0.039347801357507706, 0.003676828695461154, -0.016328301280736923, -0.04278222471475601, + 0.019348222762346268, 0.016091445460915565, -0.012486783787608147, 0.021420719102025032, + 0.001506259897723794, 0.00988876260817051, -0.013471218757331371, -0.0030236225575208664, + -0.01450006477534771, -0.010858395136892796, -0.008682274259626865, -0.0059473211877048016, + -0.0014044856652617455, 0.005336675327271223, 0.033455993980169296, 0.010177431628108025, + -0.002263090806081891, -0.02550649456679821, 0.0300067700445652, -0.014773930422961712, + 0.023093517869710922, -0.00803091935813427, -0.0013785794144496322, -0.038341160863637924, + 0.016047034412622452, -0.0016802015015855432, 0.017172103747725487, -0.022146092727780342, + 0.03407774493098259, 0.03015480563044548, 0.0009881361620500684, -0.02375967800617218, + -0.043048687279224396, -0.031057821586728096, -0.0027275518514215946, 0.0022704924922436476, + -0.023804089054465294, 0.0006041693850420415, 0.04787464067339897, -0.015395678579807281, + ], + index: 85, + }, + { + title: "Savai'i", + text: "Savai\u02bbi is the largest (area 1700 km2) and highest (Mt Silisili at 1,858 m) island in Samoa and the Samoa Islands chain. The island is the fourth largest in Polynesia, behind the two main islands of New Zealand and the Island of Hawaii.The island of Savai'i is also referred to by Samoans as Salafai, a classical Samoan term used in oratory and prose.", + vector: [ + 0.001201200415380299, -0.008997833356261253, -0.009939546696841717, 0.0025519065093249083, + 0.028760071843862534, 0.023962143808603287, -0.005416572093963623, -0.03832843154668808, + -0.0399506539106369, 0.005938982591032982, -0.004626082256436348, 0.007719302084296942, + -0.06769339740276337, -0.0266704298555851, 0.012778435833752155, 0.04440489038825035, + 0.011025610379874706, 0.048639167100191116, 0.027316570281982422, -0.0009906896157190204, + -0.0015895713586360216, 0.009286534041166306, -0.023920901119709015, 0.039263270795345306, + -0.013658285140991211, 0.019824102520942688, 0.006313605699688196, -0.003629378043115139, + -0.05141618847846985, -0.007643690332770348, -0.0017090040491893888, -0.012682202272117138, + -0.0012433025985956192, 0.05735517293214798, 0.008138605393469334, 0.042315248399972916, + 0.005918360780924559, 0.002699693664908409, -0.059334833174943924, 0.00732749467715621, + 0.03159208595752716, -0.009513369761407375, 0.046384550631046295, 0.02133634313941002, + 0.018476834520697594, -0.056530315428972244, -0.007135027553886175, 0.055760446935892105, + 0.015287380665540695, 0.005375328939408064, -0.02601054310798645, 0.012991524301469326, + -0.0412704274058342, 0.03321430832147598, -0.022312426939606667, -0.0017253293190151453, + -0.007925516925752163, 0.07929641008377075, 0.0218999981880188, -0.028237661346793175, + -0.00949274841696024, 0.021556306630373, 0.053615812212228775, 0.033956680446863174, + -0.013087757863104343, -0.03145461156964302, 0.04918907210230827, -0.008990959264338017, + 0.0007690088823437691, 0.014984932728111744, 0.029254987835884094, -0.0013876528246328235, + 0.011073727160692215, 0.0698380321264267, -0.021542558446526527, 0.013960733078420162, + 0.01670338772237301, -0.04061054065823555, -0.03524896129965782, -0.011596137657761574, + -0.02625800110399723, -0.023563463240861893, -0.01937043108046055, -0.008234838955104351, + 0.022999808192253113, 0.02818267047405243, -0.027646513655781746, -0.03197702020406723, + 0.020827680826187134, -0.01560357678681612, 0.016909603029489517, -0.008234838955104351, + 0.007829283364117146, -0.004667325410991907, 0.02548813261091709, -0.004069302696734667, + 0.005880554672330618, 0.007306872867047787, 0.030932199209928513, 0.018064403906464577, + 0.02327476255595684, 0.01807815209031105, 0.06279923766851425, 0.0041999053210020065, + -0.021735025569796562, 0.021954987198114395, -0.00944463163614273, -0.019356682896614075, + 0.024553293362259865, -0.022546136751770973, 0.08309075981378555, -0.0038184081204235554, + -0.013005271553993225, -0.00012061409506713971, 0.006176129449158907, -0.00681883143261075, + 0.007183144334703684, -0.010785027407109737, -0.037503574043512344, 0.013397079892456532, + -0.0070662894286215305, 0.09562861174345016, -0.011706119403243065, -0.07858153432607651, + 0.012022314593195915, 0.03337927907705307, 0.025680599734187126, 0.04520225524902344, + 0.058070048689842224, -0.011843595653772354, -0.02235366962850094, -0.009698962792754173, + 0.03346176818013191, -0.001538876909762621, -0.021322596818208694, -0.008812240324914455, + 0.007018172647804022, 0.05719020217657089, -0.01177485752850771, 0.030272312462329865, + -0.008008003234863281, -0.005313464440405369, -0.003945574164390564, 0.03450658917427063, + -0.004588276147842407, 0.01053069531917572, 0.010970620438456535, 0.009877682663500309, + -0.020167794078588486, -0.03769604116678238, 0.03326930105686188, 0.01439378410577774, + -0.021432576701045036, 0.009698962792754173, 0.0038630880881100893, 0.0786365270614624, + -0.0001888153055915609, -0.017954424023628235, -0.004454236943274736, 0.02415461093187332, + -0.06263426691293716, -0.04289264976978302, 0.007382485084235668, 0.011135592125356197, + -0.023948395624756813, -0.009183426387608051, -0.0036465625744313, -0.051196228712797165, + -0.011279942467808723, 0.004412993788719177, 0.0033183377236127853, -0.02832014672458172, + 0.02056647650897503, 0.002689382992684841, 0.038905832916498184, -0.02741280198097229, + -0.011554894968867302, 0.032059505581855774, -0.011974197812378407, 0.13659659028053284, + -0.03480903431773186, -0.05306590721011162, 0.03984067216515541, -0.008585403673350811, + -0.05147118121385574, -0.012256025336682796, 0.019535401836037636, 0.05325837433338165, + 0.02811393328011036, -0.039648205041885376, -0.010578812099993229, -0.012929659336805344, + 0.03511148318648338, -0.003149928990751505, 0.038245946168899536, -0.02906252071261406, + -0.03860338404774666, 0.05177363008260727, 0.021611297503113747, 0.004450799897313118, + 0.021858753636479378, 0.04209528863430023, -0.01737702265381813, 0.010620055720210075, + 0.03920828178524971, 0.02892504446208477, 0.003271939465776086, -0.004663888365030289, + 0.0015053671086207032, 0.018586814403533936, -0.0006345396977849305, -0.01765197515487671, + 0.02612052485346794, -0.014421278610825539, 0.049161575734615326, 0.027261579409241676, + -0.0183943472802639, -0.04566967487335205, 0.026422971859574318, 0.025226928293704987, + 0.01479246560484171, -0.0011324621737003326, 0.04418493062257767, 0.00884660892188549, + -0.03907080367207527, 0.0026859459467232227, -0.03720112517476082, 0.024457059800624847, + 0.01866930164396763, 0.021886250004172325, 0.007045667618513107, -0.024663273245096207, + -0.005151929799467325, 0.04176534339785576, -0.03109717182815075, -0.028595101088285446, + 0.003024481702595949, -0.004254895728081465, -0.017954424023628235, 0.009032201953232288, + -0.021886250004172325, 0.0348915196955204, 0.008599151857197285, 0.003234133357182145, + -0.0023422548547387123, 0.028375137597322464, 0.019741617143154144, -0.03975818678736687, + 0.055128052830696106, 0.034341614693403244, 0.031784553080797195, 0.010736910626292229, + -0.00025905718212015927, 0.049409035593271255, -0.01948041282594204, 0.0013945266837254167, + 0.02517193742096424, 0.007238134741783142, -0.03923577815294266, 0.022614875808358192, + -0.02684914879500866, -0.05149867758154869, -0.021735025569796562, -0.016978340223431587, + 0.004261769820004702, 0.032416947185993195, -0.00798738095909357, 0.03131713345646858, + -0.018243124708533287, -0.026093028485774994, 0.01688210666179657, 0.03791600465774536, + -0.047126926481723785, 0.022133708000183105, 0.039125796407461166, 0.048776641488075256, + 0.021212615072727203, 0.030272312462329865, 0.032939355820417404, 0.02151506394147873, + 0.00814547948539257, -0.03137212619185448, -0.0036981164012104273, 0.035853855311870575, + 0.012049810029566288, 0.025144441053271294, -0.009726458229124546, 0.05999471992254257, + 0.06131449341773987, -0.01877928152680397, -0.038245946168899536, -0.0304372850805521, + 0.011699245311319828, 0.021281354129314423, -0.013204612769186497, 0.007299999240785837, + -0.052323535084724426, 0.053753290325403214, 0.04883163422346115, -0.003529707668349147, + 0.011816100217401981, 0.047154419124126434, -0.024127116426825523, 0.023920901119709015, + 0.04047306627035141, 0.005626223515719175, -0.00767805939540267, -0.04286515340209007, + 0.010434461757540703, 0.006715724244713783, 0.028842557221651077, -0.009465252980589867, + 0.038493406027555466, 0.009575234726071358, 0.031179657205939293, -0.004670761991292238, + -7.856563752284274e-5, -0.01479246560484171, -0.0583450011909008, -0.005323775112628937, + -0.016194725409150124, -0.0070662894286215305, 0.028265157714486122, -0.008069867268204689, + 0.029337473213672638, -0.01860056258738041, -0.01762448064982891, -0.05724519118666649, + -0.019425421953201294, 0.0042823911644518375, 0.010922503657639027, -0.0025862755719572306, + 0.0013214923674240708, 0.0023267888464033604, 0.10195253044366837, 0.002819985616952181, + -0.03604632243514061, 0.0018971749814227223, -0.031152162700891495, 0.020442746579647064, + 0.011279942467808723, 0.006220809184014797, 0.09199923276901245, 0.040170617401599884, + 0.04355253651738167, 0.04124293476343155, -0.009726458229124546, -0.029529940336942673, + 0.005169114097952843, 0.02713784947991371, 0.0005194031982682645, -0.010241994634270668, + 0.016620902344584465, 0.06411901116371155, 0.01748700439929962, -0.016648396849632263, + -0.030162332579493523, -0.05191110447049141, -0.013390205800533295, -0.023535966873168945, + 0.016648396849632263, 0.007238134741783142, 0.006492325104773045, -0.0437999963760376, + -0.008825987577438354, -0.033544253557920456, 0.036623723804950714, -0.011108096688985825, + 0.010262616910040379, 0.007733049802482128, 0.044872310012578964, -0.034726548939943314, + 0.012909037992358208, -0.02881506271660328, -0.026491710916161537, -0.00993267260491848, + -0.015644818544387817, 0.0304372850805521, 0.00919717364013195, -0.018861768767237663, + 0.0016978341154754162, 0.03629378229379654, -0.032664403319358826, -0.01642843522131443, + 0.015369866043329239, -0.02429208718240261, 0.024718264117836952, -0.01796817034482956, + 0.04844669997692108, 0.04773182049393654, -0.024058377370238304, 0.019040487706661224, + 0.03956571966409683, -0.08584029227495193, -0.010736910626292229, -0.03505649417638779, + -0.010283238254487514, -0.033626738935709, 0.006402965169399977, -0.020593971014022827, + 0.050041425973176956, 0.013300846330821514, 0.0028835684061050415, 0.053120896220207214, + -0.01470997929573059, 0.029887378215789795, 0.023439733311533928, 0.03183954581618309, + 0.00979519635438919, -0.031784553080797195, 0.010956872254610062, 0.05697023868560791, + -0.00958210788667202, -0.011183708906173706, 0.050316378474235535, -0.03005235083401203, + -0.0285401102155447, 0.0009554612915962934, -0.012833425775170326, 0.019397925585508347, + -0.04102297127246857, -0.016304707154631615, 0.04910658672451973, -0.030382294207811356, + -0.05757513642311096, 0.07335743308067322, -0.01521864254027605, 0.03296685218811035, + -0.02282108925282955, -0.003973069135099649, -0.03461656719446182, 0.0007831861148588359, + 0.031894534826278687, -0.04718191549181938, -0.04858417436480522, -0.0013378176372498274, + -0.051581162959337234, -0.004083050414919853, 0.029254987835884094, 0.023632200434803963, + -0.02583182416856289, -0.009788323193788528, -0.01345894392579794, -0.022119959816336632, + -0.06081957742571831, -0.013266476802527905, -0.042947642505168915, 0.00016421990585513413, + 0.005554048344492912, 0.019466664642095566, 0.00263267382979393, 0.052213553339242935, + 0.03835592791438103, -0.03057476133108139, 0.010152635164558887, -0.04390997439622879, + -0.01198794599622488, 0.019782859832048416, -0.027701502665877342, 0.029639922082424164, + 0.02099265344440937, -0.016414687037467957, 0.04355253651738167, -0.04995894059538841, + 0.020758943632245064, 0.021212615072727203, 0.0031585213728249073, 0.02755028009414673, + 0.005316901486366987, 0.016029752790927887, -0.04630206525325775, -0.0032152303028851748, + -0.047154419124126434, 0.012324763461947441, -0.023384742438793182, -0.03923577815294266, + 0.015576081350445747, -0.015301127918064594, 0.03497400879859924, -0.031784553080797195, + 0.07445724308490753, 0.032444439828395844, -0.041545379906892776, 0.0006371173658408225, + -0.004000564571470022, 0.0037977867759764194, -0.026876645162701607, 0.05180112272500992, + 0.014558755792677402, -0.011877965182065964, 0.009155930951237679, 0.004382061772048473, + 0.0685182586312294, -0.016125986352562904, 0.005131308455020189, 0.018724292516708374, + 0.010551316663622856, 0.0018387474119663239, -0.04470733925700188, 0.059334833174943924, + -0.018133142963051796, 0.05430319532752037, -0.020167794078588486, 0.04044556990265846, + -0.01882052607834339, 0.028237661346793175, 0.016304707154631615, 0.047126926481723785, + -0.021528810262680054, 0.006970055866986513, 0.031262144446372986, 0.040665533393621445, + -0.059444814920425415, -0.03519396856427193, -0.014723727479577065, 0.030409788712859154, + -0.0073343683034181595, -0.020965157076716423, -0.008262334391474724, 0.04451487213373184, + -0.011417418718338013, 0.022298678755760193, -0.03923577815294266, 0.008447927422821522, + 0.001993408426642418, -8.581537258578464e-5, -0.009499622508883476, 0.014215064235031605, + 0.016689639538526535, 0.0009803789434954524, -0.041187942028045654, -0.05254349857568741, + -0.022243687883019447, 0.024800751358270645, -0.01789943315088749, -0.027426550164818764, + -0.03967570140957832, -0.02305479906499386, -0.020868923515081406, 0.05977475643157959, + -0.019219206646084785, -0.018765535205602646, -0.012118548154830933, -0.046357057988643646, + 0.029007529839873314, -0.02713784947991371, -0.02266986481845379, -0.0009717866196297109, + -0.015411109663546085, -0.04173784703016281, 0.055018071085214615, -0.03766854479908943, + -0.0034248819574713707, 0.018064403906464577, 0.025955552235245705, -0.01405696664005518, + -0.005179425235837698, 0.014833708293735981, -0.016442183405160904, -0.007540583144873381, + -0.0013266477035358548, 0.0405830480158329, 0.003282250137999654, -0.00028676725924015045, + -0.02741280198097229, 0.03134462982416153, -0.031124666333198547, 0.052213553339242935, + -0.00949274841696024, -0.051581162959337234, -0.010812521912157536, 0.013452069833874702, + 0.0031739873811602592, -0.009815817698836327, 0.04481732100248337, -0.011795478872954845, + -0.015466099604964256, -0.002209933940321207, -0.0387408621609211, -0.023357247933745384, + 0.0225323885679245, 0.002136040246114135, -0.022037474438548088, 0.03373672068119049, + 0.03478154167532921, 0.04008813202381134, -0.008599151857197285, 0.012008567340672016, + -0.007904895581305027, -0.019494159147143364, 0.053478337824344635, -0.008076741360127926, + 0.006427023559808731, -0.021226363256573677, 0.013603294268250465, 0.04025310277938843, + -0.031069675460457802, -0.007643690332770348, -0.052598487585783005, -0.016167229041457176, + -0.001263924059458077, -0.009554612450301647, -0.011094349436461926, -0.003691242542117834, + 0.010132013820111752, 0.032801877707242966, 0.06208436191082001, 0.0020793313160538673, + -0.04165536165237427, 0.032444439828395844, -0.045229751616716385, 0.0034970571286976337, + -0.006069585215300322, -0.003149928990751505, -0.011238698847591877, 0.026601692661643028, + 0.03120715357363224, -0.009293407201766968, 0.010420714505016804, -0.004261769820004702, + 0.00012619908375199884, -0.026367980986833572, 0.0196866262704134, -0.000724329031072557, + -0.027742747217416763, 0.026807906106114388, 0.013232107274234295, -0.02678041160106659, + -0.006932249758392572, 0.04492730274796486, 0.0017416547052562237, 0.009245290420949459, + 0.0071487752720713615, -8.645979687571526e-5, 0.01354830339550972, -0.02804519422352314, + 0.03351675719022751, -0.00030932200024835765, -0.04729189723730087, 0.008702258579432964, + -0.007794914301484823, 0.05719020217657089, 0.017322031781077385, -0.03629378229379654, + 0.01019387785345316, -0.02671167254447937, -0.02481449767947197, -0.009960168041288853, + -0.014517512172460556, -0.012015441432595253, 0.020937662571668625, 0.006268925964832306, + 0.005145055707544088, -0.0014271773397922516, -0.008468548767268658, 0.025158189237117767, + 0.03640376403927803, -0.02316478081047535, 0.008798492141067982, 0.004907908849418163, + -0.02713784947991371, -0.01593351922929287, -0.04275517538189888, 0.006251741200685501, + -0.027055364102125168, -0.011032484471797943, -0.01510866079479456, -0.011781731620430946, + -0.023068547248840332, -0.033681727945804596, 0.008729754015803337, -0.03291185945272446, + -0.0225323885679245, -0.009204047732055187, 0.030794722959399223, -0.03247193619608879, + -0.012943407520651817, 0.027041615918278694, 0.0042205266654491425, 0.014215064235031605, + 0.029777398332953453, -0.0380534790456295, -0.0025415958371013403, 0.026409225538372993, + 0.013706400990486145, -0.010626928880810738, 0.0012630647979676723, -0.01818813383579254, + 0.027811484411358833, 0.01389886811375618, 0.011706119403243065, 0.05680526793003082, + 0.05009641498327255, 0.010083897039294243, 0.04237024113535881, 0.014201316982507706, + -0.026134271174669266, -0.00426520686596632, 6.981225305935368e-5, 0.01825687102973461, + -0.030547264963388443, 0.0013678906252607703, 0.028031446039676666, -0.019810356199741364, + 0.04539472237229347, 0.015397361479699612, -0.0014151481445878744, 0.010798774659633636, + 0.022161202505230904, 0.012840299867093563, 0.014187568798661232, 0.003973069135099649, + -0.017541993409395218, 0.0501239113509655, -0.01898549683392048, -0.02119886688888073, + 0.034699052572250366, -0.009224669076502323, -0.025859318673610687, 0.004454236943274736, + 0.04426741600036621, -0.004980084020644426, -0.01242787018418312, 0.0393182635307312, + 0.00629298435524106, -0.040033139288425446, -0.011699245311319828, -0.009389640763401985, + -0.03464406356215477, 0.003849340369924903, -0.0006096221040934324, 0.0206352137029171, + -0.024347078055143356, 0.011664876714348793, 0.002043243730440736, 0.005880554672330618, + -0.04998643323779106, -0.028512613847851753, 0.024127116426825523, -0.017294537276029587, + -0.008365442045032978, -0.03464406356215477, -0.01066817156970501, 0.012503482401371002, + 0.026354234665632248, 0.004980084020644426, 0.027605269104242325, 0.0069253756664693356, + -0.013830129988491535, -0.011218077503144741, -0.02275235205888748, 0.056915245950222015, + -0.0029505882412195206, -0.018064403906464577, 0.03907080367207527, 0.01484745554625988, + 0.002087923465296626, -0.008344819769263268, 0.02786647528409958, -0.0036156305577605963, + 0.019920336082577705, 0.03513897955417633, -0.003184298053383827, 0.007190017960965633, + 0.008551035076379776, -0.0033389590680599213, -0.04050055891275406, -0.017803199589252472, + -0.011417418718338013, -0.027055364102125168, -0.011025610379874706, -0.01821562834084034, + 0.056145381182432175, -0.00910781417042017, 0.045064777135849, 0.012317889370024204, + -0.013190864585340023, -0.004698257427662611, -0.049299053847789764, -0.02892504446208477, + 0.0007741642184555531, -0.0006633238517679274, 0.017775705084204674, 0.022202445194125175, + 0.005756826139986515, -0.019012991338968277, -0.030547264963388443, -0.011403671465814114, + 0.015741052106022835, -0.0019366993801668286, -0.014380035921931267, 0.004564217757433653, + 0.007279377896338701, -0.027000373229384422, -0.02266986481845379, -0.022559884935617447, + -0.046384550631046295, 0.018518077209591866, 0.014462522231042385, -0.004004001617431641, + -0.014613745734095573, -0.008289829827845097, 0.03629378229379654, 0.0029557435773313046, + 0.008894725702702999, 0.007190017960965633, 0.0010774716502055526, -0.01927419751882553, + -0.00936901941895485, -0.003945574164390564, 0.02558436617255211, 0.008654141798615456, + 0.02187250182032585, -0.013087757863104343, 0.009485874325037003, 0.03923577815294266, + 0.037751030176877975, -0.03071223758161068, -0.014888699166476727, 0.005310027860105038, + 0.028210166841745377, 0.024333329871296883, 0.009561486542224884, 0.0096714673563838, + 0.011307437904179096, 0.026299243792891502, -0.005698398686945438, 0.02119886688888073, + -0.009128435514867306, 0.00935527216643095, -0.018064403906464577, 0.01547984778881073, + -0.028141427785158157, 0.010977493599057198, 0.0209514107555151, 0.007891148328781128, + 0.03975818678736687, 0.0035846983082592487, 0.029227491468191147, 0.013472691178321838, + 0.02576308511197567, -0.007526835426688194, -0.00568808801472187, 0.017473256215453148, + -0.04542221873998642, -0.0030485400930047035, -0.013768265955150127, 0.007409980520606041, + 0.010771279223263264, 0.004478295333683491, -0.018243124708533287, -0.048941612243652344, + 0.016799621284008026, 0.02772899903357029, 0.004873539786785841, 0.03285687044262886, + -0.033626738935709, -0.03923577815294266, 0.01726704090833664, 0.023370996117591858, + -0.03211449831724167, 0.02618926204741001, 0.017720714211463928, -0.02463577874004841, + 0.0004528130230028182, -0.01306026242673397, 0.018971748650074005, 0.0021875938400626183, + 0.027082858607172966, -0.05152617022395134, -0.0317295640707016, 0.014957437291741371, + -0.0021858755499124527, -0.02555687166750431, 0.002077612793073058, 0.004358003381639719, + -0.009753953665494919, -0.02594180405139923, -0.02305479906499386, 0.039510730654001236, + -0.014490016736090183, 0.025020712986588478, -0.021542558446526527, 0.01393323764204979, + -0.00702848332002759, -0.02330225706100464, -0.05485310032963753, 6.503280019387603e-5, + 0.04643954336643219, 0.051223721355199814, -0.010702541097998619, 0.005877118092030287, + 0.016483426094055176, 0.03131713345646858, 0.016717135906219482, 0.049024101346731186, + -0.006763841025531292, 0.03285687044262886, -0.05001392960548401, 0.02558436617255211, + 0.01579604297876358, -0.03337927907705307, -0.0317295640707016, -0.017734460532665253, + -0.0685732513666153, -0.012537851929664612, 0.033434271812438965, 0.016139734536409378, + -0.03909830003976822, 0.023755930364131927, 0.0024866051971912384, 0.0041277301497757435, + -0.005725893657654524, -0.03150960057973862, -0.026161767542362213, 0.006024905014783144, + -0.006571373902261257, -0.00024359107192140073, 0.012345384806394577, 0.04731939360499382, + -0.036348771303892136, 0.004880413878709078, -0.008296702988445759, 0.029749901965260506, + -0.031124666333198547, 0.011816100217401981, -0.05009641498327255, 0.01645592972636223, + 0.007341241929680109, -0.031399618834257126, 6.535501597682014e-5, 0.026601692661643028, + 0.029529940336942673, -0.04303012788295746, -0.009575234726071358, -0.038245946168899536, + -0.017858190461993217, -0.03632127493619919, -0.03601882979273796, 0.034561578184366226, + 0.011403671465814114, 0.029887378215789795, 0.03480903431773186, -0.051581162959337234, + -0.025983048602938652, 0.018628058955073357, -0.005983662325888872, 0.04011562466621399, + -0.007258756086230278, -0.018435591831803322, 0.011108096688985825, 0.01332146767526865, + 0.015644818544387817, -0.004766995552927256, 0.03821844980120659, -0.05521053820848465, + -0.005712146405130625, 0.013238981366157532, -0.05303841084241867, 0.022477397695183754, + -0.035606399178504944, 0.01983785070478916, 0.0010327917989343405, 0.037366095930337906, + -0.0018679611384868622, -0.019824102520942688, 0.007389358710497618, -0.03986816853284836, + 0.010936250910162926, -0.02194124087691307, 0.016717135906219482, 0.0088809784501791, + 0.020731447264552116, -0.016620902344584465, 0.03134462982416153, 0.018793029710650444, + -0.004557344131171703, -0.014173821546137333, 0.014545007608830929, -0.026601692661643028, + -0.007561204489320517, -0.029887378215789795, 0.03337927907705307, -0.01898549683392048, + 0.0076643116772174835, -0.0014649833319708705, 0.007946138270199299, -0.0118985865265131, + -0.013507060706615448, 0.03835592791438103, 0.027605269104242325, -0.018696796149015427, + -0.012269772589206696, -0.006385780870914459, -0.009747079573571682, 0.014215064235031605, + -0.027756493538618088, 0.0027357812505215406, -0.040665533393621445, 0.0029608989134430885, + 0.015672314912080765, -0.035826362669467926, -0.026546701788902283, -0.016277210786938667, + -0.04528474062681198, 0.03714613616466522, -0.013782013207674026, 0.005804942920804024, + 0.015534837730228901, -0.002600023290142417, 0.02386591024696827, -0.021363839507102966, + -0.03981317952275276, -0.03703615441918373, -0.012304142117500305, 0.00568808801472187, + 0.012221655808389187, -0.0020363698713481426, 0.0007187440060079098, 0.016345949843525887, + -0.020099056884646416, 0.002792490180581808, -0.018050657585263252, -0.033159319311380386, + 0.0027082860469818115, 0.012434744276106358, -0.016510920599102974, -0.005241289269179106, + 0.012792183086276054, 0.03021732158958912, 0.017074573785066605, 0.024195853620767593, + 0.009334650821983814, -0.03398417681455612, -0.022862331941723824, -0.021845007315278053, + -0.016153482720255852, 0.00979519635438919, -0.01358267292380333, 0.020552728325128555, + -0.013843878172338009, -0.015191147103905678, 0.022876080125570297, -0.01631845347583294, + -0.01211167499423027, -0.047016944736242294, 0.005172551143914461, 0.004567654803395271, + -0.017363274469971657, 0.03145461156964302, 0.015012427233159542, 0.006987240165472031, + -0.0026309555396437645, -0.017294537276029587, -0.024979470297694206, 0.010028906166553497, + 0.02695913054049015, 0.022367417812347412, -0.008014876395463943, 0.002512382110580802, + 0.008551035076379776, 0.006808520760387182, -0.001191748888231814, -0.014015723019838333, + 0.015328623354434967, -0.04074801877140999, -0.014613745734095573, 0.011135592125356197, + -0.00900470744818449, -0.031152162700891495, -0.008839735761284828, 0.004883850459009409, + 0.02618926204741001, 0.0200028233230114, 0.001955602318048477, 0.016222219914197922, + -0.017005836591124535, 0.014929941855370998, 0.000669338449370116, -0.02264237031340599, + 0.006052400451153517, 0.004110545851290226, 0.007526835426688194, -0.023247266188263893, + 0.010922503657639027, 0.021473821252584457, 0.027701502665877342, 0.014998679980635643, + 0.003976506181061268, 0.03288436681032181, -0.028705080971121788, 0.007616194896399975, + 0.026656681671738625, 0.04616459086537361, 0.0038046606350690126, -0.0017064263811334968, + -0.026161767542362213, 0.019494159147143364, -0.010558190755546093, -0.011444914154708385, + 0.006086769513785839, -0.010633802972733974, 0.02194124087691307, -0.01846308633685112, + 0.02524067461490631, 0.020786438137292862, -0.016332201659679413, 0.02165254019200802, + 0.005639971233904362, 0.006705413572490215, -0.045119769871234894, 0.03758605942130089, + 0.01959039270877838, -0.006389217916876078, -0.004962899722158909, 0.017596984282135963, + 0.0070869107730686665, 0.015837285667657852, -0.010118266567587852, -0.03186703845858574, + 0.008296702988445759, -0.004244585055857897, -0.0064304606057703495, -0.03337927907705307, + 0.0298323892056942, -0.023494724184274673, -0.029117511585354805, -0.02930997870862484, + 0.014077587984502316, 0.0017450916348025203, 0.0010499763302505016, -0.010991241782903671, + 0.024333329871296883, -0.030354799702763557, -0.022559884935617447, -0.022477397695183754, + -0.0077467975206673145, -0.052488505840301514, 0.013005271553993225, -0.015631072223186493, + 0.009424010291695595, 0.051828619092702866, 0.005055696237832308, -0.003766854526475072, + 0.03670620918273926, 0.003811534494161606, -0.011018737219274044, 0.029969865456223488, + -0.008729754015803337, -0.009272785857319832, -0.040390580892562866, 0.03194952383637428, + 0.009039076045155525, -0.003694679355248809, 0.01993408426642418, 0.013644536957144737, + 0.007000987883657217, 0.030024854466319084, -0.02007156051695347, 0.013740770518779755, + 0.007953012362122536, -0.02478700317442417, -0.018243124708533287, 0.012929659336805344, + -0.02172127738595009, 0.021913744509220123, 0.006433897651731968, -0.032554421573877335, + -0.05413822457194328, 0.017885684967041016, 0.02755028009414673, 0.05402824282646179, + 0.004371751099824905, 0.005897739436477423, -0.009822691790759563, 0.008709132671356201, + -0.019507907330989838, -0.03447909280657768, -0.03161958232522011, -0.003074317006394267, + -0.012228529900312424, 0.013177117332816124, -0.053230877965688705, 0.021143877878785133, + 0.03967570140957832, -0.005921797826886177, 0.006045526824891567, -0.025543123483657837, + 0.04047306627035141, 0.021556306630373, -0.022614875808358192, -0.014833708293735981, + -0.019425421953201294, -0.01151365227997303, 0.017074573785066605, 0.017981918528676033, + -0.014737474732100964, -0.031674571335315704, 0.019741617143154144, 0.021473821252584457, + 0.0051862988620996475, 0.013087757863104343, 0.0015225516399368644, -0.011238698847591877, + -0.025323161855340004, -0.01629095897078514, 0.028842557221651077, -0.026766663417220116, + 0.006636675447225571, 0.003218667348846793, 0.01618097722530365, 0.028031446039676666, + -0.0158647820353508, 0.01484745554625988, -0.02400338649749756, 0.015961015596985817, + 0.0069219390861690044, -0.002687664469704032, 0.014325045049190521, 0.014998679980635643, + -0.0016600280068814754, 0.03249943256378174, -0.026161767542362213, 0.0004712864465545863, + 0.03120715357363224, 0.015672314912080765, -0.015768548473715782, -0.01857306808233261, + 0.010675045661628246, -0.019384179264307022, 0.008812240324914455, 0.02053898014128208, + -0.008956590667366982, -0.015026175417006016, -0.0008759826887398958, -0.0031653952319175005, + 0.008564782328903675, -0.015301127918064594, -0.0029213745146989822, -0.03175705671310425, + 0.020305270329117775, -0.005299716722220182, -0.007636816240847111, 0.011871091090142727, + 0.034836530685424805, 0.004062429070472717, 0.023151032626628876, 0.008468548767268658, + -0.016730884090065956, -0.005024764221161604, 0.013507060706615448, 0.002534721978008747, + -0.002854354679584503, -0.01151365227997303, -0.013823256827890873, -0.05378078296780586, + 0.0012759532546624541, 0.037751030176877975, 0.022559884935617447, -0.024800751358270645, + -0.03692617267370224, -0.013170243240892887, -0.03505649417638779, 0.026340486481785774, + -0.030767228454351425, 0.007884274236857891, -0.0072312611155211926, 0.032801877707242966, + 0.003746233182027936, -0.0002294138103025034, 0.02113012969493866, 0.007574952207505703, + 0.003701553214341402, -0.007155648898333311, 0.009884556755423546, -0.004306449554860592, + 0.0006311028264462948, 0.00568808801472187, -0.004828860051929951, -0.020195290446281433, + -0.006303295027464628, -0.012654706835746765, 0.003359580645337701, 0.03288436681032181, + -0.023989640176296234, 0.0028509178664535284, -0.031922031193971634, -0.038768358528614044, + 0.0010585685959085822, 0.00603865273296833, 0.0008347397670149803, 0.0031739873811602592, + 0.0013996820198372006, 0.03676120191812515, -0.014311297796666622, -0.0036396889481693506, + 0.015768548473715782, -0.01783069409430027, 0.018971748650074005, -0.003397386521100998, + -0.006756967399269342, -0.016730884090065956, -0.01783069409430027, -0.008626647293567657, + -0.020758943632245064, -0.015562333166599274, -0.015672314912080765, -0.06279923766851425, + -0.009774575009942055, -0.027825232595205307, 0.0009460097644478083, 0.0075818258337676525, + -0.019535401836037636, -0.02295856550335884, 0.02169378288090229, -0.0008678200538270175, + 0.0462745726108551, 0.02264237031340599, -0.03643125668168068, 0.014215064235031605, + -0.01930169202387333, -0.01246223971247673, -0.016098491847515106, -0.021432576701045036, + 0.0007333509274758399, -0.000859227788168937, 0.002582838758826256, -0.0008716865559108555, + -0.011809226125478745, -0.012022314593195915, -0.010248868726193905, -0.0037702915724366903, + 0.006354848388582468, -0.00996704213321209, 0.006237993482500315, 0.011809226125478745, + -0.009630224667489529, -0.005588417407125235, 0.009204047732055187, -0.000400829769205302, + -0.012414122931659222, 0.032032012939453125, -0.00023091745970305055, 0.030272312462329865, + -0.0002255472936667502, 0.0016591688618063927, -0.0016729164635762572, 0.005829001311212778, + -0.01607099547982216, -0.025914309546351433, -0.03541393205523491, 0.010035780258476734, + 5.3835989092476666e-5, 0.0038871464785188437, -0.019384179264307022, 0.03511148318648338, + 0.049931444227695465, 0.02815517596900463, 0.016937097534537315, -0.016689639538526535, + -0.00252269278280437, -0.012530977837741375, -0.0387408621609211, -0.03018982708454132, + -0.016304707154631615, -0.00504538556560874, -0.0033612989354878664, 0.00568808801472187, + -0.007093784399330616, 0.023920901119709015, 0.020621467381715775, -0.017596984282135963, + -0.01751449890434742, -0.010145762003958225, -0.03758605942130089, 0.005303153768181801, + -0.0016866640653461218, -0.0029608989134430885, -0.032939355820417404, -0.02137758769094944, + 0.012166664935648441, 0.03524896129965782, -0.017926927655935287, 0.007141901180148125, + 0.0024230224080383778, 0.009485874325037003, 0.024470806121826172, 0.011974197812378407, + 0.0017227516509592533, -0.03258191794157028, -0.004248022101819515, 0.01930169202387333, + 0.007135027553886175, -0.016648396849632263, -0.0196866262704134, 0.0016299551352858543, + 0.01388512086123228, 0.0387408621609211, 0.013713275082409382, 0.021212615072727203, + 0.01319773867726326, 0.004430178552865982, -0.005138182081282139, 0.0006366877933032811, + 0.03538643568754196, -0.00874350219964981, 0.015892276540398598, 0.0008136886754073203, + -0.007836157456040382, -0.0177619569003582, -0.005402824375778437, 0.03159208595752716, + 0.019631635397672653, -0.03819095715880394, -0.036101315170526505, 0.016414687037467957, + -0.024718264117836952, -0.01053069531917572, 0.004237711429595947, 0.010455083101987839, + 0.0006856637774035335, 0.002974646631628275, -0.02587306685745716, -0.0016643241979181767, + 0.0033681727945804596, 0.02720658853650093, 0.018050657585263252, -0.015823539346456528, + 0.01593351922929287, 0.029859883710741997, -0.009685215540230274, 0.019576646387577057, + -0.06257927417755127, 0.002844044007360935, 0.0017253293190151453, 0.02200997807085514, + 0.01961788907647133, 0.002550187986344099, -0.0023989640176296234, -0.00569496164098382, + -0.01769321784377098, 0.010070149786770344, -0.022628622129559517, -0.015782296657562256, + 0.00513474503532052, 0.01568606309592724, 0.007829283364117146, -0.005602165125310421, + -0.020016569644212723, 0.02941995859146118, -0.032279469072818756, 0.013177117332816124, + 0.01943916827440262, 0.011802352964878082, -0.010448209941387177, -0.024484554305672646, + 0.0015612168936058879, -0.028760071843862534, -0.002153224777430296, 0.00209307880140841, + 0.0020449620205909014, -0.010888134129345417, -0.04355253651738167, 0.029364967718720436, + 0.010620055720210075, 0.008688511326909065, -0.009155930951237679, -0.0050213271751999855, + -0.018023161217570305, 0.0285676047205925, -0.012063558213412762, -0.009905178099870682, + 0.01246223971247673, -0.010290111415088177, 0.02777024172246456, 0.013438322581350803, + -0.014008849859237671, 0.02772899903357029, -0.01263408549129963, 0.0044473628513514996, + 0.010379471816122532, 0.03373672068119049, 0.0008360286010429263, 0.028980033472180367, + -0.0026859459467232227, -0.010241994634270668, -0.03302184119820595, -0.026546701788902283, + -0.009059697389602661, 0.017569489777088165, 0.02558436617255211, -0.008241713047027588, + -0.027110354974865913, 0.0017665723571553826, -0.0012175258016213775, 0.015521090477705002, + 0.017115816473960876, 0.04671449586749077, 0.013837004080414772, 0.01509491354227066, + -0.001383356750011444, 0.0014323326759040356, 0.001536299241706729, 0.01803690940141678, + 0.023439733311533928, -0.038273442536592484, -0.0033131823875010014, 0.0025639357045292854, + -0.03222448006272316, -0.0066160536371171474, -0.04292014613747597, -0.005959603935480118, + -0.031262144446372986, -0.0013300846330821514, -0.02955743484199047, 0.014737474732100964, + -0.00021308848226908594, 0.014668736606836319, 0.03082221932709217, -0.020401503890752792, + -0.002780460985377431, 0.025350656360387802, 0.021776268258690834, 0.019150469452142715, + -0.008963463827967644, 0.008612899109721184, 0.013754517771303654, -0.016414687037467957, + 0.02352221868932247, 0.012661580927670002, 0.01453126035630703, -3.305341670056805e-5, + -0.047016944736242294, 0.008454801514744759, -0.013252729550004005, 0.01765197515487671, + ], + index: 86, + }, + { + title: "Joshua Gregory", + text: "Joshua Gregory (1790 \u2013 20 August 1838) was an early settler in colonial Western Australia. Two of his sons, Augustus Charles and Francis Thomas, became renowned Australian explorers.Joshua Gregory entered the army in 1805 as an ensign in the 78th Highlanders (Ross-shire Buffs). At the age of 16 he saw active service when his regiment was sent to Sicily at the height of the Napoleonic Wars.", + vector: [ + 0.037484049797058105, 0.012617848813533783, -0.019056489691138268, -0.029858311638236046, + -0.04968523606657982, 0.047358203679323196, 0.036855123937129974, -0.0008225186611525714, + -0.035848841071128845, 0.008038473315536976, -0.07194925099611282, 0.025047019124031067, + 0.03226395696401596, 0.033396024256944656, 0.025597330182790756, 0.0340563990175724, + -0.031210504472255707, 0.029040705412626266, 0.014646138064563274, 0.0196854155510664, + 0.040377113968133926, -0.02231118641793728, 0.022358356043696404, -0.007087221369147301, + 0.10320692509412766, 0.004068371839821339, 0.007767248898744583, 0.023883504793047905, + -0.03716958686709404, 0.00625389302149415, 0.030078435316681862, 0.022075338289141655, + 0.03638342767953873, -0.014072242192924023, -0.012531370855867863, -0.01423733588308096, + -0.008121020160615444, -0.011996783316135406, 0.0055070421658456326, -0.01704392209649086, + 0.05286131799221039, -0.05191792547702789, 0.018175991252064705, 0.028333162888884544, + -0.005444149486720562, 0.001307971659116447, -0.022625649347901344, -0.020361512899398804, + -0.05883612483739853, -0.00017627154011279345, -0.03437086194753647, -0.0022877221927046776, + -0.02176087535917759, 0.0027456595562398434, -0.012405585497617722, -0.03465387970209122, + 0.02908787503838539, 0.08547118306159973, 0.01650933548808098, 0.01500777155160904, + 0.0050117624923586845, 0.00325273210182786, -0.019465291872620583, 0.016808075830340385, + 0.02982686460018158, -0.012452755123376846, 0.07232660800218582, 0.034024953842163086, + -0.056163184344768524, -0.0011713765561580658, 0.04748399183154106, -0.016792351379990578, + 0.11974770575761795, 0.04113182798027992, 0.0054520112462341785, -0.019905541092157364, + 0.04732675850391388, 0.03198093920946121, -0.02349042519927025, 0.013380422256886959, + 0.05556570366024971, -0.03625764325261116, -0.00842762179672718, 0.022452695295214653, + 0.005943360272794962, 0.0019084004452452064, -0.01237413939088583, -0.07081718742847443, + 0.012861558236181736, -0.030235666781663895, 0.013859979808330536, -0.004276704043149948, + 0.02573883906006813, -0.022264016792178154, 0.012209045700728893, 0.021525027230381966, + 0.049182094633579254, -0.009363151155412197, 0.001887763850390911, -0.044999729841947556, + -0.07043983042240143, -0.029763972386717796, -0.022798605263233185, 0.0041116103529930115, + 0.028160206973552704, -0.024135075509548187, 0.0014583246083930135, -0.01624204032123089, + 0.05949649587273598, 0.06691783666610718, 0.036949463188648224, 0.009433905594050884, + -0.04424501582980156, -0.0013983799144625664, 0.013797086663544178, -0.01938667520880699, + -0.006293200887739658, -0.0032271817326545715, 0.045094069093465805, -0.020094219595193863, + -0.01115559320896864, 0.020361512899398804, -0.012350554578006268, -0.03908781334757805, + -0.004449658561497927, -0.05132044479250908, 0.010809683240950108, 0.08402465283870697, + 0.04858461394906044, 0.019921263679862022, -0.03644632175564766, 0.013993626460433006, + -0.03754694387316704, -0.009654030203819275, 0.02048729732632637, -0.02982686460018158, + 0.036037519574165344, 0.0021678328048437834, 0.016886690631508827, 0.04088025540113449, + -0.02103760838508606, -0.05128899961709976, 0.02556588314473629, 0.014119411818683147, + -0.0019477084279060364, -0.033490363508462906, 0.020188556984066963, 0.0017678745789453387, + -0.02628915011882782, -0.039024922996759415, -0.050439946353435516, 0.03446520119905472, + 0.004394627641886473, 0.005990529898554087, 0.005841159727424383, -0.009756230749189854, + -0.025219973176717758, -0.02955957129597664, -0.007759387139230967, -0.00830183643847704, + 0.008710639551281929, 0.0002454289351589978, 0.0001089566940208897, 0.032672759145498276, + 0.0074645779095590115, -0.009213780984282494, 0.016823798418045044, -0.03199666365981102, + 0.024999849498271942, 0.023065898567438126, -0.021163394674658775, -0.004276704043149948, + -0.0253929290920496, -0.017609957605600357, -0.006088799796998501, -0.03028283640742302, + -0.011045531369745731, 0.037106696516275406, 0.00652511790394783, -0.02174515277147293, + -0.012767218984663486, -0.03232685104012489, 0.03289288282394409, -0.013679162599146366, + -0.014355259947478771, -0.013985765166580677, 0.04911920055747032, 0.02682373858988285, + -0.0008696881704963744, 0.020330065861344337, 0.004280634690076113, 0.007358446251600981, + -0.01114773191511631, 0.03418218344449997, 0.04613179713487625, 0.02665078267455101, + 0.05128899961709976, 0.012900865636765957, -0.04405633732676506, -0.009984216652810574, + 0.011965337209403515, -0.04245257377624512, -0.004669783171266317, -0.006474017631262541, + 0.009245227091014385, -0.030345728620886803, 0.041823647916316986, -0.00480736093595624, + -0.010754652321338654, -0.010841129347682, 0.004665852524340153, -0.020786037668585777, + 0.005467734299600124, -0.008278251625597477, -0.0017767188837751746, 0.021776597946882248, + 0.062326669692993164, 0.0040290639735758305, 0.03940228000283241, 0.05006259307265282, + 0.006430779118090868, 0.0424211286008358, 0.03798719123005867, -0.03569160774350166, + 0.02276715822517872, 0.039748188108205795, -0.03855322673916817, 0.008812840096652508, + -0.0029087874572724104, -0.04786134883761406, 0.015565943904221058, 0.05610029026865959, + -0.006513325497508049, 0.004378904588520527, -0.05654054135084152, 0.0270124152302742, + 0.023600487038493156, 0.03933938592672348, 0.056068845093250275, -0.02476400136947632, + 0.00330972857773304, 0.01500777155160904, -0.021682258695364, -0.030330006033182144, + 0.04031422361731529, 0.04886763170361519, -0.03996831178665161, -0.03553437814116478, + -0.009017241187393665, -0.0031682199332863092, 0.0005306571838445961, -0.026509273797273636, + -0.012531370855867863, -0.0422324500977993, -0.04235823452472687, -0.006536910310387611, + -0.015723176300525665, 0.04459092766046524, 0.038930583745241165, 0.012067537754774094, + 0.0005915844812989235, -0.0003034081601072103, 0.01795586757361889, -0.011320686899125576, + -0.025896070525050163, -0.03704380244016647, -0.025172803550958633, 0.007071498315781355, + -0.0012529406230896711, -0.006713795941323042, -0.006057353690266609, -0.013529792428016663, + -0.05110032111406326, -0.007252315059304237, -0.008553408086299896, -0.01822316087782383, + -0.04179220274090767, -0.03166647627949715, -0.013789225369691849, -0.007126529235392809, + 0.045565761625766754, -0.0612574927508831, -0.020707422867417336, -0.056603431701660156, + 0.025880347937345505, 0.04028277471661568, -0.03361615166068077, 0.03977963328361511, + 0.021462135016918182, -0.03600607439875603, -0.020188556984066963, -0.015652421861886978, + -0.0007276882533915341, -0.009488936513662338, -0.040094099938869476, -0.0424211286008358, + -0.03625764325261116, -0.03333313390612602, -0.04562865570187569, -0.03852178156375885, + 0.04893052205443382, -0.014205889776349068, -0.02276715822517872, 0.01051880419254303, + -0.0053969803266227245, -0.019999880343675613, -0.007578570861369371, -0.050974536687135696, + 0.03465387970209122, -0.058804675936698914, 0.002049908973276615, -0.009127303957939148, + -0.00718156062066555, -0.002297549042850733, -0.01345903892070055, -0.02210678532719612, + 0.03238974139094353, 0.018883533775806427, -0.04207521677017212, -0.008262529037892818, + 0.017091091722249985, -6.645498797297478e-5, -0.021697983145713806, -0.046823617070913315, + -0.012248354032635689, -0.03117905743420124, -0.022908667102456093, -0.024701109156012535, + -0.03833310306072235, 0.0006849408382549882, 0.012727910652756691, -0.022091062739491463, + 0.007334861438721418, 0.005070724058896303, 0.015833238139748573, -0.027232540771365166, + -0.016163425520062447, 0.08188629895448685, 0.008820701390504837, 0.0018189748516306281, + 0.0013826567446812987, 0.0024252999573946, 0.023065898567438126, 0.044811051338911057, + -0.01591971516609192, 0.00619100034236908, 0.06018831580877304, 0.025047019124031067, + 0.02029862068593502, -0.017059646546840668, 0.0006682349485345185, 0.022625649347901344, + -0.014355259947478771, 0.010251510888338089, 0.004021202214062214, -0.005927637219429016, + 0.03361615166068077, -0.04015699028968811, 0.03732682019472122, 0.008954348973929882, + 0.009143026545643806, -0.005554211791604757, -0.01037729624658823, 0.07251528650522232, + 0.015282927080988884, -0.029119322076439857, 0.025219973176717758, -0.046006012707948685, + -0.031870875507593155, -0.004040856380015612, -0.005263333208858967, 0.07547124475240707, + -0.00657621817663312, -0.00723266089335084, -0.009937047027051449, -0.007716148626059294, + -0.05260974541306496, 0.0007782971952110529, 0.0011576188262552023, -0.023144515231251717, + 0.02783002145588398, 0.002865548711270094, -0.0031092579010874033, -0.008757809177041054, + 0.03471677377820015, -0.03547148406505585, -0.05537702515721321, -0.0227357130497694, + 0.021713705733418465, 0.0073466538451612, -0.015424435026943684, 0.07043983042240143, + 0.058867570012807846, 0.008576991967856884, 0.017169708386063576, 0.004245257470756769, + 0.005935498978942633, 0.03644632175564766, 0.007912687957286835, 0.015896130353212357, + 0.012405585497617722, -0.05257830023765564, -0.0015123729826882482, 0.034307967871427536, + 0.005974806845188141, 0.02122628688812256, -0.04940221831202507, 0.03798719123005867, + 0.035219915211200714, -0.039936866611242294, 0.004044787026941776, 0.012940173968672752, + -0.041006043553352356, 0.009638306684792042, -0.0031230158638209105, -0.01191816758364439, + 0.004878115374594927, 0.047012295573949814, -0.01514141820371151, 0.026241980493068695, + 0.002244483446702361, 0.013529792428016663, -0.023726271465420723, 0.019638245925307274, + 0.0017560821725055575, 0.03496834263205528, 0.0135062076151371, 0.03515702113509178, + 0.016029777005314827, -0.004492897540330887, 0.01849045418202877, -0.003541645361110568, + -0.012971620075404644, 0.05666632577776909, -0.02157219685614109, -0.010306541807949543, + -0.02600613236427307, -0.015762483701109886, -0.0018582828342914581, 0.010495220310986042, + -0.029024982824921608, 0.024056458845734596, -0.040660131722688675, -0.013993626460433006, + -0.02855328656733036, -0.03191804513335228, -0.07232660800218582, 0.00905654951930046, + 0.010102140717208385, 0.043364517390728, 0.0030267112888395786, 0.03952806442975998, + 0.02674512192606926, -0.029591016471385956, -0.01382853277027607, -0.06440212577581406, + -0.006328578107059002, 0.01856907084584236, -0.04323873296380043, 0.029936926439404488, + 0.015440158545970917, 0.0015516809653490782, 0.04688651114702225, -0.04062868654727936, + 0.035314254462718964, -0.03814442455768585, -0.0007252314826473594, -0.0311947800219059, + -0.037012357264757156, -0.0009640271891839802, -0.022091062739491463, 0.006403263192623854, + -0.027877191081643105, 0.0505971796810627, 0.009764092043042183, -0.012130429968237877, + -0.012680741026997566, 0.022452695295214653, 0.03751549869775772, -0.010668174363672733, + 0.008647746406495571, 0.020251451060175896, 0.005133616738021374, 0.028238823637366295, + 0.015927577391266823, -0.022892944514751434, 0.02248414047062397, 0.0009542002226226032, + -0.054905328899621964, 0.006902473978698254, -0.04396199807524681, 0.03389916568994522, + -0.024150798097252846, 0.008136743679642677, -0.020786037668585777, -0.01811309903860092, + -0.018065929412841797, 0.011312824673950672, 0.025597330182790756, -0.03399350494146347, + -0.019528184086084366, -0.00024555178242735565, 0.06367886066436768, -0.025958962738513947, + 0.041477736085653305, -0.006529048550873995, -0.04452803358435631, 0.036572106182575226, + -0.014253058470785618, -0.005786128807812929, -0.047546882182359695, 0.004575444385409355, + 0.002682766877114773, -0.01205181423574686, -0.009889877401292324, -0.0030345728155225515, + 0.012083260342478752, 0.06584866344928741, -0.0011291205883026123, 0.016100531443953514, + -0.03509412705898285, 0.03342747315764427, -0.03808153048157692, 0.0016922068316489458, + 0.012751495465636253, -0.034024953842163086, 0.026792291551828384, 0.03644632175564766, + -0.06823858618736267, 0.0342450775206089, 0.016745181754231453, 0.00625389302149415, + -0.03619474917650223, 0.03981108218431473, 0.019150828942656517, 0.014803370460867882, + 0.012224769219756126, 0.02946523204445839, -0.01028295699506998, -0.01957535371184349, + 0.0038757629226893187, -0.008136743679642677, 0.02646210417151451, -0.014473183080554008, + 0.016619397327303886, 0.010809683240950108, -0.012908726930618286, -0.004669783171266317, + 0.007032190449535847, -0.004744468256831169, 0.021870937198400497, -0.049465112388134, + -0.02113194763660431, -0.025314312428236008, 0.04738965258002281, -0.015723176300525665, + -0.032138172537088394, 0.06767255067825317, -0.00695357471704483, -0.04720097407698631, + 0.0192137211561203, -0.02874196507036686, -0.02067597582936287, -0.02781429886817932, + 0.007087221369147301, 0.03540859371423721, -0.0348111130297184, 0.04251546785235405, + -0.0384274423122406, 0.016808075830340385, -0.01060528215020895, -0.018537623807787895, + -0.01676090620458126, -0.010793960653245449, 0.007665048353374004, -0.025345759466290474, + 0.032672759145498276, -0.01571531407535076, 0.015031356364488602, -0.010102140717208385, + 0.00806598924100399, -0.02665078267455101, -0.008632023818790913, 0.035943180322647095, + 0.002818379318341613, -0.00816032849252224, -0.006513325497508049, -0.013246775604784489, + 0.04543997719883919, -0.056068845093250275, -0.08326993882656097, -0.024638216942548752, + 0.03616330400109291, 0.015801791101694107, -0.0023034452460706234, 0.0174998939037323, + -0.027138201519846916, 0.0032900746446102858, 0.01238200068473816, -0.006171346642076969, + 0.04588022828102112, -0.00030881300335749984, 0.03081742487847805, -0.0194023996591568, + -0.016792351379990578, -0.017814358696341515, 0.0030031264759600163, 0.02185521461069584, + 0.008038473315536976, -0.036760784685611725, 0.019999880343675613, -0.01784580387175083, + 0.0010878472821787, -0.015290788374841213, 0.008018819615244865, 0.004752330016344786, + 0.015094248577952385, 0.016257762908935547, 0.040377113968133926, 0.0043278043158352375, + -0.004917423240840435, -0.02937089279294014, 0.035597268491983414, -0.011139869689941406, + 0.012098983861505985, 0.0013600547099485993, -0.03108471818268299, -0.019370952621102333, + 0.012680741026997566, 0.031068995594978333, -0.0340563990175724, 0.0010947261471301317, + -0.04154063016176224, -0.007590363267809153, -0.028804857283830643, 0.01005497109144926, + 0.032861437648534775, 0.000349103647749871, 0.04025132954120636, -0.004339596722275019, + -0.022264016792178154, 0.02421369031071663, -0.003954378888010979, 0.0005321312346495688, + -0.009685476310551167, -0.008270390331745148, -0.016996752470731735, -0.011768797412514687, + -0.009952770546078682, 0.0270124152302742, 0.005161132663488388, -0.023018728941679, + 0.020597361028194427, -0.016839521005749702, -0.031399182975292206, -0.028773412108421326, + -0.05147767812013626, -0.018474731594324112, 0.01948101446032524, -0.005176855716854334, + -0.010911883786320686, -0.04433935508131981, -0.03009415790438652, 0.035943180322647095, + -0.026446381583809853, 0.010888298973441124, -0.04415067657828331, -0.024260859936475754, + 0.0458487793803215, -0.026179088279604912, 0.010125725530087948, -0.04216955602169037, + -0.014292366802692413, -0.018175991252064705, 0.020235726609826088, 0.0176885724067688, + -0.01814454421401024, -0.04893052205443382, -0.022547034546732903, 0.015746761113405228, + 0.06572287529706955, -0.03663500025868416, -0.00852196104824543, 0.002116732532158494, + -0.009858431294560432, -0.0017865458503365517, -0.0036536729894578457, -0.02374199591577053, + 0.005711443722248077, 0.0015054941177368164, 0.005157201550900936, 0.04993680492043495, + -0.012963758781552315, -0.003783389227464795, -0.025581607595086098, 0.02955957129597664, + -0.004076233133673668, -0.035219915211200714, -0.05767260864377022, -0.05650909245014191, + -0.032232511788606644, 0.019103659316897392, 0.011438610032200813, 0.002971680136397481, + 0.018521901220083237, -0.0030168844386935234, -0.005251540802419186, -0.015314373187720776, + -0.005841159727424383, -0.03465387970209122, -0.007417408283799887, 0.030204221606254578, + -0.04525129869580269, 0.01028295699506998, -0.03254697471857071, -0.062043651938438416, + 0.015613113529980183, -0.03264131397008896, -0.009748369455337524, 0.01138357911258936, + 0.008922901935875416, 0.019543906673789024, 0.01776718907058239, -0.03333313390612602, + 0.00015514352708123624, 0.04525129869580269, -0.01305023580789566, -0.026682229712605476, + 0.017657127231359482, 0.013097405433654785, -0.0015487328637391329, -0.026760844513773918, + 0.0024881926365196705, 0.001653881510719657, -0.029150767251849174, -0.006867097225040197, + -0.002657216740772128, 0.005542419385164976, -0.007798695005476475, 0.003830558620393276, + 0.018427561968564987, 0.02575456164777279, 0.011501503176987171, -0.06053422763943672, + -0.0032763166818767786, 0.007244453299790621, 0.008797116577625275, -0.03716958686709404, + -0.013946456834673882, -0.013270360417664051, -0.013608409091830254, -0.03506268188357353, + -0.024732556194067, -0.01291658915579319, -0.03333313390612602, -0.0085140997543931, + -0.014213751070201397, -0.026131918653845787, 0.005664274096488953, 0.01911938190460205, + 0.02882058173418045, 0.010503081604838371, 0.003272386034950614, 0.0426098071038723, + 0.002751555759459734, 0.0349997878074646, 0.02103760838508606, 0.000539501488674432, + -0.006702003534883261, -0.018506178632378578, -0.03143062815070152, -0.022814327850937843, + 0.00915875006467104, -0.006324647460132837, 0.046634938567876816, -0.006584079936146736, + 0.010479496791958809, -0.001222476945258677, -0.015157141722738743, -0.02493695728480816, + -0.03345891833305359, 0.014921293593943119, -0.00029480954981409013, 0.013970041647553444, + 0.01621059514582157, -0.000134875372168608, 0.040188439190387726, 0.0037676659412682056, + -0.025455821305513382, -0.020503021776676178, -0.001347279641777277, -0.007307345978915691, + -0.0420437715947628, -0.008113158866763115, 0.023396085947752, 0.009465351700782776, + 0.015251480974256992, 0.0097011998295784, -0.01580965332686901, -0.00838045310229063, + 0.019166551530361176, -0.000332152092596516, -0.03628908842802048, 0.03207527846097946, + -0.03371048718690872, -0.010817544534802437, -0.00348071800544858, 0.03455954045057297, + -0.03327023983001709, 0.019921263679862022, 0.01759423315525055, 0.013718470931053162, + 0.012499924749135971, 0.0018229057313874364, 0.005440218839794397, -0.0029009259305894375, + -0.011462194845080376, 0.007043982855975628, -0.03273565322160721, -0.01913510449230671, + -0.03264131397008896, 0.004952800460159779, -0.012877280823886395, -0.003848247230052948, + 0.040094099938869476, 0.01260212529450655, -0.0006240135408006608, -0.011391440406441689, + 0.013875702396035194, 0.0028026560321450233, -0.02194955386221409, -0.02820737659931183, + -0.055156901478767395, -0.010314403101801872, 0.009127303957939148, 0.04207521677017212, + -0.019103659316897392, 0.014567522332072258, 0.027436941862106323, 0.05260974541306496, + -0.007224799133837223, -0.014748338609933853, 0.018364669755101204, -0.02212250791490078, + -0.0176885724067688, 0.018097374588251114, 0.008081712760031223, -0.02518852800130844, + -0.024795448407530785, -0.008687054738402367, 0.0059197754599153996, 0.01522789616137743, + -0.021242011338472366, 0.04267269745469093, -0.0055974507704377174, -0.010660313069820404, + 0.0042413268238306046, -0.001965397037565708, -0.041477736085653305, -0.018521901220083237, + 0.01159584242850542, -0.004724814556539059, -0.009449629113078117, 0.011171316727995872, + 0.025534437969326973, -0.03490544855594635, 0.022499864920973778, -0.017531340941786766, + -0.027263985946774483, 0.0074881622567772865, 0.01776718907058239, -0.004551859572529793, + -0.017201153561472893, -0.039559509605169296, 0.027311155572533607, 0.03471677377820015, + -0.02338036149740219, 0.003696911735460162, 0.009473212994635105, -0.03716958686709404, + -0.013616270385682583, -0.025408651679754257, -0.039748188108205795, 0.027531281113624573, + 0.03232685104012489, 0.006187069695442915, 0.025896070525050163, 0.006116315256804228, + 0.01427664328366518, 0.013899287208914757, -0.018474731594324112, 0.030502961948513985, + -0.025958962738513947, -0.015581667423248291, -0.025628777220845222, 0.03080170229077339, + 0.0023977842647582293, -0.013168159872293472, -0.027342602610588074, -0.014575383625924587, + 0.001549715525470674, 0.009795538149774075, 0.010243648663163185, 0.02493695728480816, + 0.021509304642677307, 0.002433161484077573, 0.059056248515844345, 0.004744468256831169, + -0.00010152503818972036, 0.03045579232275486, 0.004677644930779934, 0.03528280556201935, + -0.042012326419353485, 0.027625620365142822, -0.012256215326488018, -0.018521901220083237, + -0.06660337001085281, 0.03018849715590477, 0.004646198358386755, 0.00711866794154048, + 0.017295492812991142, -0.04025132954120636, -0.04760977625846863, 0.02094327099621296, + -0.007948065176606178, -0.014205889776349068, -0.020833207294344902, -0.022877220064401627, + 0.05566004291176796, 0.03465387970209122, 0.012012505903840065, 0.012492063455283642, + -0.03506268188357353, -0.005279056262224913, -0.00852196104824543, -0.009143026545643806, + 0.022248294204473495, 0.023962119594216347, 0.010330126620829105, 0.001905452343635261, + 0.0133646996691823, -0.025817453861236572, -0.001991929719224572, -0.00842762179672718, + -0.022169677540659904, 0.04349030554294586, -0.008993656374514103, 0.025408651679754257, + -0.010031386278569698, 0.0008922902052290738, 0.058238644152879715, -0.001695154933258891, + -0.015848960727453232, -0.0012264077086001635, -0.010676036588847637, 0.043175842612981796, + -0.005231886636465788, -0.0014622553717345, 0.019559631124138832, 0.021100502461194992, + -0.013616270385682583, 0.022043893113732338, -0.009882016107439995, -0.002385991858318448, + 0.005381256807595491, 0.006069145631045103, -0.0036733269225806, 0.0016607604920864105, + -0.03336457908153534, 0.00996849313378334, -0.011234208941459656, -0.003582918783649802, + -0.014355259947478771, 0.005157201550900936, -0.0190250426530838, 0.040471453219652176, + -0.016918137669563293, 0.03833310306072235, -0.009858431294560432, -0.01059742085635662, + -0.0024135075509548187, 0.011312824673950672, -0.05411916971206665, 0.00929239671677351, + 0.03352181240916252, 0.009654030203819275, -0.016525058075785637, 0.04452803358435631, + 0.008136743679642677, 0.006823858246207237, -0.05981096252799034, 0.01590399257838726, + 0.00580578250810504, -0.04742109775543213, -0.026069024577736855, -0.01831750012934208, + -0.03427652269601822, 0.00016030269034672529, 0.025235697627067566, -0.007016467396169901, + 0.016289209946990013, 0.05720091238617897, -0.000616151955910027, -0.043647535145282745, + 0.006014114711433649, -0.013176021166145802, 0.0016882759518921375, -0.00117334199603647, + -0.0006525117787532508, -0.012004644609987736, 0.03028283640742302, -0.07786116749048233, + 0.016430718824267387, -0.03282999247312546, 0.010416603647172451, -0.02775140479207039, + 0.023883504793047905, 0.014646138064563274, 0.007397754117846489, 0.007185491267591715, + -0.009048687294125557, -0.040660131722688675, -0.005852952133864164, 0.016650842502713203, + -0.032578419893980026, 0.010856852866709232, -0.03679222986102104, 0.0007468508556485176, + 0.0029598877299576998, 0.04842738062143326, 0.018364669755101204, -0.007955927401781082, + 0.01666656695306301, -0.005845090374350548, -0.007122598588466644, 0.02584890089929104, + 0.011808104813098907, 0.00905654951930046, -0.0018258538329973817, 0.04213811084628105, + 0.031682200729846954, 0.008529823273420334, -0.019559631124138832, 0.0001396660227328539, + -0.060408443212509155, 0.0037696314975619316, -0.007590363267809153, 0.011242070235311985, + -0.018977873027324677, -0.002627735724672675, 0.012727910652756691, -0.0004918405902571976, + -0.03055012971162796, -0.026352042332291603, -0.04069158062338829, 0.04559721052646637, + -0.02564449980854988, -0.03026711381971836, -0.006344301626086235, 0.00187597144395113, + -0.011815967038273811, 0.019606800749897957, 0.020361512899398804, -0.027263985946774483, + 0.023977842181921005, -0.013962180353701115, 0.01866341009736061, 0.012421309016644955, + 0.01712253876030445, -0.013962180353701115, -0.031116165220737457, 4.382221231935546e-5, + -0.042106665670871735, 0.0023800956550985575, -0.016116255894303322, 0.021006163209676743, + 0.008050265721976757, -0.007499954663217068, -0.019292335957288742, -0.017877250909805298, + 0.05682355910539627, -0.004477174486964941, 0.0016912240535020828, -0.03193376958370209, + -0.013514069840312004, 0.03036145307123661, 0.018160268664360046, 0.0172168780118227, + -0.0174998939037323, -0.008718500845134258, -0.012995204888284206, -0.011407163925468922, + -0.012067537754774094, 0.013128851540386677, -0.03990542143583298, 0.008498376235365868, + -0.034307967871427536, 0.04943366348743439, -0.028600456193089485, -0.03133628889918327, + 0.0039976174011826515, -0.0498424656689167, -0.013655577786266804, 0.020723145455121994, + 0.018631963059306145, 0.00806598924100399, -0.015416573733091354, -0.0005758613115176558, + -0.04088025540113449, 0.04949655756354332, 0.0002962836006190628, 0.026996692642569542, + -0.024245137348771095, -0.042012326419353485, 0.002838033251464367, 0.02529858984053135, + 0.03017277456820011, -0.006143830716609955, 0.006509394850581884, -0.004595098085701466, + -0.010188617743551731, -0.014245197176933289, 0.03691801801323891, 0.012091122567653656, + -0.007177629973739386, -0.021792322397232056, -0.022358356043696404, -0.010565973818302155, + 0.013301806524395943, 0.024182245135307312, 0.024056458845734596, -0.011957474984228611, + -0.0017875285120680928, -0.007955927401781082, 0.01641499623656273, -0.00284589477814734, + -0.01029081828892231, -0.0011133974185213447, -0.01282224990427494, -0.035314254462718964, + -0.021918106824159622, -0.029622463509440422, -0.007818348705768585, 0.016383549198508263, + -0.02347470074892044, -0.001990947173908353, -0.019622523337602615, 0.0001655847008805722, + -0.04628903046250343, 0.00123033847194165, -0.0027201094198971987, 0.011572257615625858, + 0.016179148107767105, 0.022342633455991745, -0.004146987572312355, 0.015322234481573105, + 0.009999940171837807, -0.008309698663651943, -0.023694826290011406, 0.006859235465526581, + 0.0027102823369205, 0.004532205406576395, 0.028128761798143387, -0.009937047027051449, + -0.02122628688812256, 0.007586432155221701, -0.0002751555875875056, -0.06100592389702797, + 0.006116315256804228, 0.02492123283445835, -0.005184717010706663, -0.017468448728322983, + -0.0016145736444741488, -0.03600607439875603, 0.018003037199378014, -0.02655644342303276, + -0.011815967038273811, 0.013576962053775787, 0.015793930739164352, 0.014001487754285336, + -0.0032743513584136963, -0.0344337560236454, -0.036666445434093475, -0.015801791101694107, + 0.014433875679969788, -0.029512401670217514, -0.0393708311021328, -0.03770417720079422, + 0.009048687294125557, 0.014308090321719646, 0.008687054738402367, 0.0026336319278925657, + -0.0008691968396306038, 0.01822316087782383, -0.002963818609714508, -0.03808153048157692, + 0.008191774599254131, 0.011776658706367016, -0.004135195165872574, 0.018427561968564987, + -0.005817574914544821, -0.014992048032581806, 0.009543967433273792, 0.014268781989812851, + -0.018521901220083237, 0.011792382225394249, -0.01345903892070055, -0.022798605263233185, + -0.0382387638092041, 0.01504707895219326, 0.0044968281872570515, 0.04515695944428444, + 0.0025746701285243034, 0.028883473947644234, -0.0021973138209432364, 0.011242070235311985, + 0.013710609637200832, -0.005617104470729828, 0.024685386568307877, 0.002128524938598275, + -0.02210678532719612, -0.0012480270816013217, -0.01580965332686901, -0.011021946556866169, + -0.011863135732710361, -0.01704392209649086, -0.010141448117792606, -0.03833310306072235, + 0.009182334877550602, 0.02220112457871437, -0.06043988838791847, 0.004032994620501995, + -0.006084869150072336, -0.007893034256994724, 0.00745278550311923, -0.05657198652625084, + 0.021446412429213524, -0.009347427636384964, 0.004980315919965506, 0.0027849674224853516, + 0.003586849430575967, 0.0070754289627075195, -0.015707451850175858, 0.002657216740772128, + -0.0036379497032612562, 0.008333283476531506, 0.00700467498973012, -0.012083260342478752, + 0.021462135016918182, -0.0022012447007000446, 0.012554955668747425, 0.019056489691138268, + -0.0504085011780262, 0.008207498118281364, 0.020424405112862587, -0.0031013963744044304, + 0.024811170995235443, -0.004992108326405287, 0.0003626157413236797, -0.0040565794333815575, + -0.04776700958609581, -0.01459110714495182, -0.020345790311694145, -0.010251510888338089, + 0.01732693985104561, 0.006293200887739658, 0.012547094374895096, -0.014952740631997585, + 0.007920550182461739, -0.030408622696995735, -0.016996752470731735, 0.0063482322730124, + 0.03698090836405754, -0.01913510449230671, 0.022405525669455528, -0.0044221431016922, + -0.012554955668747425, -0.006792412139475346, 0.009999940171837807, 0.00750388577580452, + 0.008404037915170193, 0.023537594825029373, -0.0011595842661336064, -0.02349042519927025, + 0.01047163549810648, 0.03073880821466446, -0.006572287529706955, 0.022798605263233185, + -0.027436941862106323, -0.011674458160996437, -0.0429871641099453, -0.019701140001416206, + -0.004834876395761967, 0.005432357080280781, 0.014347397722303867, 0.022688543424010277, + -0.02638348937034607, 0.01704392209649086, -0.0088442862033844, -0.01128923986107111, + -0.046037457883358, 0.013207467272877693, 0.00874994695186615, 0.02077031508088112, + 0.021525027230381966, -0.03654066100716591, -0.012177599593997002, 0.01051880419254303, + -0.012806526385247707, 0.017814358696341515, 0.03155641257762909, -0.01784580387175083, + 0.02693380042910576, -0.006859235465526581, -0.01976403221487999, 0.0012264077086001635, + 0.045660100877285004, -0.015518774278461933, -0.02963818609714508, 0.03245263546705246, + 0.0033647597301751375, 0.01776718907058239, -0.00111634552013129, 0.028804857283830643, + -0.007220868486911058, 0.019072212278842926, -0.017169708386063576, -0.023003006353974342, + -0.006497602444142103, -0.002983472542837262, -0.014504630118608475, -0.014095827005803585, + 0.005341948941349983, -0.009992077946662903, -0.030691638588905334, -0.03218534216284752, + -0.00011479146633064374, 0.02446526102721691, 0.012209045700728893, -0.035597268491983414, + -0.00819963589310646, 0.027861466631293297, -0.00015674041060265154, 0.03355325758457184, + 0.03415073826909065, 0.003262558951973915, -0.01318388245999813, 0.012790803797543049, + 0.007665048353374004, -0.04198088124394417, 0.00580578250810504, 0.01273577194660902, + -0.0052083018235862255, 0.011344271712005138, 0.0015713348984718323, -0.00519257877022028, + 0.04103748872876167, -0.0018808848690241575, 0.0038737973663955927, 0.0020056876819580793, + -0.0024980194866657257, -0.01549518946558237, -0.016116255894303322, -0.013026650995016098, + 0.0113678565248847, -0.00795199628919363, 0.013899287208914757, -0.03691801801323891, + 0.021509304642677307, 0.018160268664360046, 0.004316011909395456, 0.00421381089836359, + -0.00919805746525526, -0.004166641738265753, -0.01327822171151638, -0.02682373858988285, + 0.00452827475965023, -0.05386760085821152, 0.010990499518811703, 0.0022169677540659904, + 0.022185400128364563, 0.013584824278950691, 0.022609926760196686, -0.003791250754147768, + 0.009858431294560432, -0.007767248898744583, 0.0066351802088320255, 0.0307230856269598, + 0.030785977840423584, -0.00348071800544858, 0.018065929412841797, -0.012759356759488583, + 0.033930614590644836, -0.010526666417717934, 0.018474731594324112, 0.014638276770710945, + -0.004701229743659496, 0.008655608631670475, 0.012570679187774658, -0.027421219274401665, + 0.02600613236427307, -0.02718537114560604, -8.230099774664268e-5, 0.03713814169168472, + -0.0462261363863945, -0.027625620365142822, 0.03506268188357353, -0.02311306819319725, + 0.020534466952085495, 0.01073892880231142, -0.018459009006619453, -0.0014760131016373634, + 0.010432327166199684, 0.041760753840208054, 0.02048729732632637, 0.04333307221531868, + -0.03282999247312546, 0.0026021855883300304, -0.012940173968672752, 0.04521985352039337, + -0.0346224345266819, -0.04352175071835518, -0.019072212278842926, 0.004433935508131981, + 0.041100382804870605, -0.003791250754147768, -0.028050145134329796, -0.007558916695415974, + 0.007197283674031496, 0.005330156534910202, -0.013757779262959957, -0.009724784642457962, + -0.0011301032500341535, -0.0004680101410485804, 0.01713826134800911, -0.02077031508088112, + -0.013215329498052597, -0.014072242192924023, -0.01913510449230671, -0.021902384236454964, + 0.032767098397016525, -0.00763753242790699, 0.017153983935713768, 0.050534285604953766, + -0.03135201334953308, -0.020707422867417336, -0.015817515552043915, -0.012539233081042767, + 0.00829397514462471, 0.022892944514751434, 0.03209100291132927, 0.0232074074447155, + -3.6666937376139686e-5, 0.015558082610368729, 0.011234208941459656, 0.05556570366024971, + 0.03452809527516365, 0.013325391337275505, -0.019984155893325806, -0.0024213690776377916, + -0.013396145775914192, 0.0010524700628593564, 0.01577034592628479, -0.009543967433273792, + -0.002022393513470888, -0.005117893684655428, 0.012523509562015533, -0.021965276449918747, + -0.030770255252718925, 0.03279854357242584, -0.002444953890517354, 0.014567522332072258, + 0.0196854155510664, 0.025172803550958633, -0.00700467498973012, 0.013262499123811722, + -0.0028557218611240387, -0.03355325758457184, -0.014111550524830818, 0.014182304963469505, + 0.005660343449562788, -0.020157111808657646, 0.016383549198508263, -0.002385991858318448, + 0.02176087535917759, 0.020817484706640244, -0.005939429625868797, -0.010188617743551731, + -0.001019058283418417, 0.014315951615571976, 0.013859979808330536, 0.024323752149939537, + 0.011352133005857468, -0.008474791422486305, -0.024449538439512253, -0.023458978161215782, + -0.03298722207546234, -0.024622492492198944, -0.0026611476205289364, 0.01014931034296751, + -0.002704386133700609, 0.022169677540659904, -0.01345903892070055, -0.0050667934119701385, + -0.026965245604515076, 0.01301092840731144, 0.014669722877442837, 0.02003132551908493, + -0.034590985625982285, -0.016069086268544197, -0.04402489215135574, 0.0052397483959794044, + 0.0123662780970335, 0.008121020160615444, 0.006399332545697689, 0.014536076225340366, + 0.012712188065052032, -0.0008593698148615658, 0.025141358375549316, -0.010841129347682, + -0.007810487411916256, -0.01327822171151638, 0.022531310096383095, -0.012413447722792625, + 0.007362376898527145, -0.012649294920265675, 0.010793960653245449, 0.0034335486125200987, + -0.02636776491999626, -0.004123402759432793, -0.024591047316789627, -0.002820344641804695, + 0.011981059797108173, -0.01949673891067505, 0.02410362847149372, -0.02455960027873516, + ], + index: 87, + }, + { + title: "Cynric of Wessex", + text: "Cynric was King of Wessex from 534 to 560. Everything known about him comes from the Anglo-Saxon Chronicle. There he is stated to have been the son of Cerdic, and also (in the regnal list in the preface) to have been the son of Cerdic's son, Creoda. During his reign it is said that the Saxons expanded into Wiltshire against strong resistance and captured Searobyrig or Old Sarum, near Salisbury, in 552.", + vector: [ + 0.0034433980472385883, 0.06477025151252747, -0.021929355338215828, -0.0037375078536570072, + 0.024573039263486862, 0.040580544620752335, -0.011288529261946678, -0.04845872148871422, + -0.023819589987397194, 0.018479349091649055, -0.034526508301496506, -0.012458359822630882, + -0.058108165860176086, -0.02717706747353077, 0.0484851598739624, 0.024202924221754074, + -0.05305873230099678, -0.015848884359002113, -0.012127898633480072, -0.00563765550032258, + 0.013826466165482998, 0.00533363176509738, 0.00780547596514225, -0.010931632481515408, + 0.05905989184975624, 0.01290778536349535, -0.03291386365890503, -0.008241684176027775, + -0.048379410058259964, -0.00652328971773386, 0.023753497749567032, 0.01587532088160515, + -0.01547876838594675, 0.06027598679065704, 0.0008290426922030747, -0.04874952882528305, + 0.019298890605568886, 0.02019774354994297, -0.004533917643129826, -0.020012686029076576, + 0.0493575744330883, 0.015743136405944824, 0.020871883258223534, 0.03748743608593941, + 0.02565694972872734, -0.00637127785012126, -0.033812712877988815, -0.005736793391406536, + -0.03257018327713013, -0.018915556371212006, 0.04280123859643936, -0.01587532088160515, + -0.03333685174584389, -0.025775916874408722, -0.03412995487451553, 0.03553110733628273, + 0.002270263386890292, 0.03693225979804993, 0.012101462110877037, 0.04388514906167984, + 0.014566697180271149, 0.027150630950927734, 0.0013928908156231046, -0.02096441201865673, + 0.01170490961521864, -0.01735578291118145, -0.01681382767856121, -0.023132232949137688, + 0.016060378402471542, -0.03357478231191635, -0.004335641395300627, -0.005568258929997683, + -0.02543223649263382, -0.003387219738215208, -0.054829999804496765, 0.017871301621198654, + 0.011942841112613678, -0.0011128255864605308, -0.0009690753067843616, 0.027203505858778954, + -0.005208056885749102, -0.0007703859591856599, -0.01746153086423874, 0.024335108697414398, + 0.048934586346149445, -0.012213818728923798, 0.01948394812643528, -0.049807000905275345, + 0.023515567183494568, -0.016906356438994408, 0.08042085915803909, -0.05321735143661499, + -0.003972134552896023, -0.06228518858551979, 0.01001295167952776, 0.00318563892506063, + 0.06947600841522217, -0.009074443951249123, -0.004177020397037268, -0.011182782240211964, + -0.02722994238138199, -0.026714423671364784, 0.01506899669766426, -0.009953469038009644, + 0.005601305048912764, 0.028525346890091896, -0.005819408688694239, 0.024083958938717842, + 0.0018538831500336528, 0.07042773067951202, 0.02717706747353077, -0.014447730965912342, + 0.030111556872725487, 0.03685295209288597, -0.04444032162427902, -0.033812712877988815, + -0.027705805376172066, -0.018056359142065048, -0.07793579250574112, 0.008426741696894169, + -0.030983973294496536, -0.01779199205338955, 0.02897477336227894, 0.0197086613625288, + 0.030375925824046135, -0.00012330306344665587, -0.006315099541097879, 0.011341403238475323, + 0.008406913839280605, 0.0411621555685997, -0.014183362945914268, -0.06582772731781006, + 0.011057207360863686, 0.03865065425634384, 0.0718553215265274, -0.011301747523248196, + -0.005545126739889383, -0.005898719187825918, 0.03669432923197746, 0.010786229744553566, + 0.027811553329229355, 0.04454607143998146, 0.009656054899096489, 0.009081053547561169, + -0.020871883258223534, 0.006946278735995293, -0.001014513662084937, 0.012372439727187157, + 0.01801670528948307, -0.0015746441204100847, -0.01599428616464138, -0.015637388452887535, + 0.00807645358145237, 0.0124715780839324, -0.003902737982571125, -0.04956907033920288, + -0.03793686255812645, -0.03717019408941269, 0.06519324332475662, 0.0411621555685997, + 0.0033161707688122988, 0.05694494768977165, -0.024216143414378166, 0.004114232957363129, + 0.02635752595961094, 0.013410085812211037, -0.03307248279452324, 9.412959479959682e-5, + -0.050520796328783035, 0.005138660315424204, -0.004454607143998146, -0.017421875149011612, + -0.0019612829200923443, -0.04208744317293167, 0.01227991096675396, 0.03510811924934387, + -0.04161158204078674, 0.01356209721416235, 0.026291433721780777, 0.06233806163072586, + 0.009074443951249123, -0.019364982843399048, -0.07545073330402374, 0.006295271683484316, + 0.013575315475463867, 0.039813876152038574, 0.00021996274881530553, 0.029133394360542297, + -0.01097128726541996, -0.0195368230342865, 0.03307248279452324, -0.03843916207551956, + 0.018466129899024963, 0.047797802835702896, 0.002380967605859041, 0.010766401886940002, + 0.021413838490843773, 0.048617344349622726, 0.005568258929997683, -0.006718261167407036, + 0.052159879356622696, 0.03761962056159973, 0.0032979953102767467, -0.020620733499526978, + 0.00604412192478776, -0.013628189451992512, 0.013152326457202435, 0.018267855048179626, + -0.04153227061033249, 0.0014028046280145645, -0.0015647303080186248, -0.006321708671748638, + 0.00594828836619854, -0.019893718883395195, -0.030587419867515564, 0.0334954708814621, + 0.012081634253263474, 0.0277322418987751, -0.013092843815684319, 0.029054082930088043, + 0.015346583910286427, -0.024810971692204475, 0.046317338943481445, 0.01964256912469864, + 0.006325013004243374, -0.004999866709113121, -0.031406961381435394, 0.009292548522353172, + -0.002959273522719741, 0.03730237856507301, 0.006794266868382692, 0.05768517777323723, + 0.003535927040502429, 0.007831912487745285, -0.05699782073497772, 0.015809228643774986, + 0.043700091540813446, -0.04803573340177536, -0.007871568202972412, 0.006847140844911337, + 0.017818428575992584, 0.029556384310126305, -0.0024272319860756397, -0.058213915675878525, + 0.0017828341806307435, 0.0017828341806307435, -0.015796009451150894, -0.03172420337796211, + -0.0255512036383152, -0.044678255915641785, 0.012841693125665188, 0.04687251150608063, + 0.008697719313204288, -0.012167554348707199, -0.03143339976668358, -0.04999205842614174, + -0.01317876297980547, 0.027058102190494537, 0.01709141582250595, 0.027864426374435425, + -0.017977049574255943, -0.04147939756512642, 0.020501766353845596, 0.003045193152502179, + -0.03809548169374466, -0.054988618940114975, -0.015452330932021141, 0.01018479187041521, + -0.005551735870540142, -0.03336328640580177, 0.03619202971458435, 0.034896623343229294, + -0.026925917714834213, -0.022775335237383842, -0.027150630950927734, 0.002549502532929182, + -0.015187962912023067, 0.0204092375934124, -0.023766716942191124, -0.0006943800253793597, + -0.015320147387683392, 0.014209799468517303, 0.003810209222137928, -0.011956059373915195, + -0.002093466930091381, 0.021387401968240738, -0.030640294775366783, -0.011149736121296883, + 0.04562998190522194, -0.025366144254803658, -0.002921270439401269, 0.026463273912668228, + -0.03772536665201187, 0.02614603191614151, -0.040369048714637756, -0.04280123859643936, + -0.036429960280656815, -0.09184157103300095, -0.03656214475631714, -0.05213344097137451, + 0.03595409914851189, 0.01768624410033226, -0.00029514249763451517, 0.024493729695677757, + -0.00013796724670100957, 0.02025061659514904, 0.022312689572572708, -0.054116204380989075, + -0.003787076799198985, -0.014579915441572666, -0.07471050322055817, -0.023013265803456306, + 0.04679320007562637, 0.02684660814702511, -0.017183944582939148, -0.008710937574505806, + 0.04142652451992035, 0.02047532983124256, -0.03598053380846977, 0.061756450682878494, + 0.022907519713044167, 0.00523779820650816, 0.020435674116015434, -0.05152539536356926, + -0.012075025588274002, 0.019497167319059372, 0.0054724253714084625, 0.014170144684612751, + -0.005624437239021063, -0.003440093481913209, 0.04007824510335922, 0.04192882403731346, + 0.003985353279858828, -0.016086814925074577, -0.01588853821158409, -0.07217256724834442, + -0.012240255251526833, 0.005072568077594042, -0.04108284413814545, -0.03272880241274834, + -0.02778511494398117, 0.014619571156799793, 0.005826017819344997, 0.03563685715198517, + -0.02892190031707287, 0.016179343685507774, 0.018743718042969704, -2.3893840989330783e-5, + -0.054988618940114975, -0.058055292814970016, 0.0005543474107980728, -0.006338231731206179, + 0.024652350693941116, -0.008677891455590725, 0.03450007364153862, 0.03344259783625603, + -0.026621894910931587, 0.014540260657668114, -0.024810971692204475, -0.011638817377388477, + -0.01018479187041521, -0.02265636995434761, -0.012180772610008717, 0.013225027360022068, + 0.00033066701143980026, -0.022233380004763603, 0.011572725139558315, 0.039338015019893646, + 0.029556384310126305, 0.039390888065099716, 0.009616399183869362, 0.01296726893633604, + 0.01077962014824152, -0.029027646407485008, 0.007091681472957134, 0.046264465898275375, + 0.004596705082803965, 0.02881615236401558, -0.02002590335905552, 0.004666101653128862, + -0.015505204908549786, 0.005750012118369341, 0.004596705082803965, 0.0015680348733440042, + -0.03772536665201187, 0.016800610348582268, 0.008710937574505806, 0.04679320007562637, + -0.03693225979804993, 0.008777029812335968, -0.00269490503706038, 0.007137945853173733, + 0.0017068282468244433, 0.031142594292759895, 0.05578172579407692, -0.02194257453083992, + 0.0038796057924628258, 0.05583459883928299, 0.1138898953795433, 0.009907204657793045, + -0.05387827381491661, -0.06640933454036713, 0.03159201890230179, -0.04681963846087456, + 0.056521955877542496, 0.030587419867515564, -0.027467872947454453, -0.01522761769592762, + 0.0006237440975382924, -0.04161158204078674, 0.0069594974629580975, 0.04634377360343933, + -4.4147451262688264e-5, 0.010977896861732006, 0.04676676541566849, 0.048775963485240936, + -0.026159249246120453, 0.005968115758150816, 0.00272299419157207, 0.012273301370441914, + -0.016959231346845627, -0.03973456472158432, 0.004081186838448048, 0.004471130203455687, + -0.035716164857149124, 0.016575897112488747, -0.04073916748166084, 0.04065985605120659, + -0.013191981241106987, 0.0347115658223629, -0.07497487217187881, 0.023383382707834244, + 0.014368420466780663, 0.02794373594224453, -0.01348278671503067, -0.027547184377908707, + -0.07037486135959625, -0.011592552997171879, -0.01758049614727497, 0.05157826840877533, + 0.03341616317629814, 0.0008649802766740322, -0.04777136445045471, -0.0258155707269907, + -0.05509436875581741, 0.04229893907904625, -0.03164489194750786, -0.0317506417632103, + 0.006407628301531076, 0.00018691670265980065, -0.018426476046442986, -0.045709289610385895, + 0.05020355433225632, 0.014183362945914268, 0.024929936975240707, -0.04502193257212639, + 0.051604706794023514, -0.008195419795811176, -0.011724737472832203, 0.0010070782154798508, + 0.027362126857042313, 0.019801190122961998, -0.044889748096466064, -0.01730290986597538, + 0.019840845838189125, -0.017593715339899063, -0.02804948389530182, -0.047454122453927994, + -0.023872463032603264, 0.014090834185481071, 0.0027692585717886686, 0.013033360242843628, + -0.01768624410033226, -0.004785067401826382, -0.0047982861287891865, 0.041400086134672165, + 0.029450636357069016, -0.019669007509946823, 0.04195525869727135, 0.02117590606212616, + 0.05266217887401581, -0.018637970089912415, -0.037143755704164505, 0.06371277570724487, + 0.0156109519302845, -0.0306138563901186, -0.028234541416168213, 0.017699461430311203, + -0.07211969047784805, 0.03106328286230564, 0.027058102190494537, 0.0010814318666234612, + 0.07434038817882538, -0.029106957837939262, -0.01654946058988571, -2.552032492530998e-5, + -0.013760373927652836, 0.013158935122191906, 0.006724870298057795, 0.004081186838448048, + -0.007607199717313051, 0.008492833934724331, 0.0024272319860756397, 0.002314875600859523, + -0.001741526648402214, 0.06693807244300842, -0.02489028126001358, 0.043250665068626404, + 0.013760373927652836, 0.03389202430844307, 0.056310463696718216, 0.010079043917357922, + 0.0003688764991238713, -0.011156344786286354, 0.001260706689208746, -0.008552316576242447, + -0.021625332534313202, 0.011632207781076431, -0.0008315211161971092, -0.00958335306495428, + -0.01801670528948307, -0.02559085749089718, -0.02752074785530567, 0.009570134803652763, + -0.0026238560676574707, 0.038624219596385956, 0.0511024072766304, -0.00144328607711941, + -0.006106909364461899, 0.010581344366073608, 0.04433457553386688, -0.003516099415719509, + 0.0011557855177670717, -0.025286834686994553, -0.007289957720786333, 0.001361497095786035, + 0.006539812311530113, 0.009827894158661366, -0.01998624950647354, 0.05757943168282509, + -0.008585362695157528, 0.007111509330570698, -0.0007435360457748175, 0.027097757905721664, + 0.03159201890230179, -0.006106909364461899, -0.006344840861856937, 0.06566910445690155, + 0.012101462110877037, 0.025670168921351433, 0.008254902437329292, -0.0038796057924628258, + -0.04163801670074463, 0.01582244597375393, -0.0017068282468244433, 0.015452330932021141, + 0.008050017058849335, -0.0039820484817028046, 0.018968431279063225, -0.015108652412891388, + 0.03849203512072563, -0.017276473343372345, -0.0047751534730196, 0.022828208282589912, + -0.032993171364068985, 0.02593453787267208, 0.011678473092615604, 0.0021546022035181522, + -0.008942260406911373, -0.01784486509859562, 0.03978743776679039, -0.014540260657668114, + 0.0021529498044401407, 0.012094852514564991, -0.0014201538870111108, 0.007111509330570698, + 0.012015542015433311, -0.004834636580199003, 0.025471892207860947, 0.004203456919640303, + -0.016404056921601295, 0.011506632901728153, 0.021982230246067047, 0.03973456472158432, + -0.016774173825979233, -0.012015542015433311, -0.009656054899096489, 0.015452330932021141, + 0.0641886368393898, -0.04245756193995476, -0.050467923283576965, 0.03997249901294708, + 0.013985087163746357, 0.016298310831189156, 0.04999205842614174, -0.004907337948679924, + -0.03182995319366455, 0.05921851471066475, -0.028075920417904854, 0.007441969588398933, + -0.012656635604798794, 0.01632474735379219, 0.012002323754131794, -0.014857502654194832, + 0.034077081829309464, -0.05726218968629837, -0.033918462693691254, -0.00815576408058405, + -0.029873626306653023, 0.006741393357515335, -0.021360963582992554, -0.027097757905721664, + -0.041400086134672165, -0.02091153711080551, 0.011645426973700523, -0.01039628591388464, + -0.009788238443434238, 0.03320466727018356, 0.0020819008350372314, 0.007164382841438055, + -0.009219846688210964, 0.04214031621813774, 0.018743718042969704, -9.474920807406306e-5, + 0.03674720227718353, -0.015055778436362743, -0.008314385078847408, -0.012610371224582195, + 0.015386238694190979, 0.04721619188785553, -0.017725899815559387, -0.022616714239120483, + 0.0028072616551071405, -0.000620852573774755, -0.020343145355582237, 0.007329612970352173, + 0.004656187724322081, -0.029292015358805656, -0.004834636580199003, -0.029952935874462128, + -0.0009376815869472921, -0.02046211250126362, 0.02609315887093544, -0.014593133702874184, + -0.015901757404208183, -0.001073170336894691, -0.013225027360022068, 0.04092422500252724, + 0.014738536439836025, -0.016628770157694817, 0.001217746757902205, 0.02871040441095829, + -0.028023047372698784, -0.017382219433784485, 0.023211542516946793, -0.02663511410355568, + 0.013462958857417107, -0.010601171292364597, -0.011420713737607002, -0.006645559798926115, + 0.028128795325756073, -0.03777823969721794, -0.010178182274103165, 0.021162688732147217, + 0.02544545568525791, -0.028736840933561325, 0.014646007679402828, -0.021189125254750252, + 0.012352611869573593, 0.007673291955143213, 0.00012196056195534766, -0.0021727774292230606, + -0.005260930396616459, -0.011691691353917122, 0.0011194348335266113, -0.0011466977884992957, + 0.011566116474568844, 0.0030204085633158684, 0.0019745011813938618, 0.023211542516946793, + -0.02073969878256321, 0.0026155945379287004, 0.0001970370503840968, -0.011552897281944752, + -0.014289109967648983, -0.0002645749191287905, -0.0114669781178236, 0.002893181284889579, + 0.01154628861695528, 0.013852902688086033, 0.015624170191586018, 0.04557710513472557, + 0.004930470138788223, 0.0011029117740690708, -0.00010388850932940841, -0.040527671575546265, + 0.00957674439996481, 0.01871727965772152, -0.0007195776561275125, 0.0594828836619854, + -0.007593981456011534, 0.04925182834267616, 0.03487018868327141, 0.010958069004118443, + -0.002303309505805373, 0.013733936473727226, 0.0127756018191576, -0.0002914248325396329, + 0.021546022966504097, -0.019470730796456337, -0.0156109519302845, -0.013165544718503952, + -0.030983973294496536, -0.01660233363509178, -0.002410709159448743, -0.013191981241106987, + 0.02614603191614151, -0.0042464169673621655, -0.011169563978910446, 0.008869558572769165, + 0.017064977437257767, -0.01200893335044384, -0.0075675444677472115, 0.03722306713461876, + 0.015082215890288353, -0.003483053296804428, 0.035293176770210266, -0.019933374598622322, + 0.003724289359524846, 0.008591972291469574, -0.017038540914654732, 0.0493575744330883, + -0.03040236234664917, 0.018466129899024963, 0.027758678421378136, -0.014368420466780663, + 0.009543698281049728, 0.0013780201552435756, 0.05567597970366478, -0.04153227061033249, + -0.034738004207611084, 0.0242425799369812, 0.0516311414539814, 0.020316708832979202, + 0.026516146957874298, -0.0076005905866622925, -0.03399777412414551, -0.019246017560362816, + -0.018519004806876183, 0.028578219935297966, 0.004553745035082102, -0.030693167820572853, + 0.01958969607949257, -0.05120815336704254, 0.007012370973825455, -0.027256378903985023, + 0.002257044892758131, -0.021955793723464012, 0.029609257355332375, 0.02128165401518345, + -0.013654625974595547, 0.02183682657778263, -0.022008666768670082, -0.02368740551173687, + 0.05757943168282509, 0.0012020498979836702, 0.014778192155063152, -0.0017580497078597546, + 0.015042560175061226, 0.023753497749567032, 0.020210962742567062, -0.023819589987397194, + 0.010059216059744358, -0.009841112419962883, 0.022801771759986877, 0.004884205758571625, + 0.010561516508460045, -0.022828208282589912, 0.022392001003026962, -0.04525986313819885, + 0.0217178612947464, -0.009669273160398006, -0.014751754701137543, 0.008433351293206215, + -0.00027345604030415416, 0.032993171364068985, -0.008036798797547817, -0.02255062200129032, + 0.009986515156924725, 0.036271341145038605, -0.0022256511729210615, 0.01697244867682457, + -0.023013265803456306, 0.03788398578763008, -0.010944850742816925, 0.02330407127737999, + 0.027150630950927734, 0.020396020263433456, -0.0002994797832798213, -0.038888588547706604, + -0.011585943400859833, 0.017263254150748253, -0.018902339041233063, 0.00544598838314414, + 0.014341983944177628, 0.03487018868327141, -0.020118432119488716, 0.027705805376172066, + -0.0028898767195641994, -0.012623589485883713, 0.012167554348707199, 0.013720718212425709, + 0.007448578719049692, 0.023185105994343758, -0.022087976336479187, -0.006880186963826418, + 0.0026238560676574707, -0.0027940431609749794, 0.013231636956334114, 0.03344259783625603, + -0.012973877601325512, -0.006807485595345497, -0.0021760822273790836, -0.0033756536431610584, + 0.0019745011813938618, 0.019854065030813217, 0.06577485054731369, -0.06794267147779465, + -0.003339302958920598, -0.0022983525414019823, -0.0013961954973638058, 0.014368420466780663, + -0.02063395082950592, -0.012319565750658512, 0.0264236181974411, 0.014170144684612751, + -0.0105086425319314, -0.011314965784549713, -0.0038663872983306646, -0.02794373594224453, + 0.02614603191614151, 0.003489662427455187, 0.011255483143031597, -0.03693225979804993, + -0.02952994592487812, 0.030746040865778923, -0.03143339976668358, 0.010462378151714802, + -0.0031030236277729273, -0.0664622113108635, 0.027864426374435425, 0.011030769906938076, + -0.011837094090878963, 0.009642836637794971, -0.02166498824954033, 0.002266958821564913, + 0.0373288132250309, -0.006417542230337858, 0.004692538641393185, -0.04777136445045471, + 0.00313772214576602, 0.024361545220017433, 0.018902339041233063, -0.015862101688981056, + 0.007911222986876965, 0.016575897112488747, 0.04073916748166084, -0.011116690002381802, + 0.04002537205815315, -0.025128213688731194, 0.019113833084702492, -0.011863530613481998, + 0.008400305174291134, -0.04208744317293167, -0.02630465291440487, -0.05223919078707695, + -0.01208824384957552, 0.0528472363948822, -0.011843702755868435, 0.013529051095247269, + -0.02253740280866623, 0.02799661085009575, -0.00943795032799244, 0.016033941879868507, + 0.011889967136085033, -0.00013373322144616395, 0.02482418902218342, 0.015386238694190979, + 0.030375925824046135, -0.04528630152344704, 0.012431922368705273, -0.013747154735028744, + -0.013535660691559315, -0.004527308512479067, 0.035451799631118774, -0.012643417343497276, + 0.011757783591747284, 0.00156886107288301, -0.05530586466193199, -0.02085866406559944, + 0.003661501919850707, 0.01555807888507843, -0.035716164857149124, -0.043356411159038544, + -0.014738536439836025, -0.02047532983124256, 0.036456398665905, -0.00044818699825555086, + -0.01047559641301632, 0.02346269227564335, -0.017818428575992584, -0.013826466165482998, + -0.03833341225981712, 0.0002542480069678277, 0.015597733668982983, -0.03711731731891632, + -0.05007136985659599, 0.013733936473727226, -0.0014978119870647788, 0.035187430679798126, + 0.03320466727018356, 0.028075920417904854, -0.026621894910931587, 0.01643049344420433, + 0.020343145355582237, 0.020488549023866653, 0.03307248279452324, -0.034579381346702576, + -0.009477606043219566, -0.013158935122191906, 0.0009343769634142518, -0.008611799217760563, + 0.009715537540614605, -0.04372652992606163, -0.0044083427637815475, -0.026383962482213974, + -0.047189753502607346, 0.018955212086439133, 0.00253132707439363, 0.0007274260860867798, + -0.010819275863468647, -0.024427637457847595, 0.01773911714553833, 0.032226502895355225, + 0.03656214475631714, -0.016496585682034492, -0.019034521654248238, -0.005769839510321617, + -0.01394543144851923, -0.00845978781580925, -0.012815256603062153, -0.038624219596385956, + -0.0032203372102230787, -0.006946278735995293, -0.0320943184196949, 0.018637970089912415, + -0.0018274463945999742, 0.007005761843174696, -0.05535873770713806, -0.03701157122850418, + 0.005459206644445658, -0.015108652412891388, 0.002448712009936571, 0.003483053296804428, + -0.04163801670074463, -0.023171886801719666, 0.02145349234342575, 0.01378681045025587, + -0.030904661864042282, 0.011718127876520157, 0.02331729047000408, 0.05065298080444336, + -0.01866440661251545, -0.040633417665958405, -0.014500604942440987, 0.043858710676431656, + 0.019576476886868477, 0.031221903860569, 0.05136677250266075, 0.010376458056271076, + -0.03500237315893173, -0.011281920596957207, -0.03674720227718353, 0.010911804623901844, + 0.0647173747420311, 0.0788346454501152, 0.010178182274103165, 0.029027646407485008, + -0.009543698281049728, -0.002569330157712102, -0.005571563262492418, -0.01576957292854786, + 0.0020422455854713917, -0.01992015726864338, -0.01329111959785223, 0.011566116474568844, + -0.01670808158814907, 0.04983343929052353, -0.01304657943546772, -0.013284510932862759, + -0.005260930396616459, -0.005181619897484779, 0.013588533736765385, -0.009477606043219566, + -0.030058683827519417, -0.0014928551390767097, -0.018241416662931442, 0.015862101688981056, + 0.03666789457201958, -0.02958282083272934, -0.023158669471740723, 0.024057522416114807, + 0.006070558447390795, -0.06403002142906189, 0.02717706747353077, -0.02440120093524456, + -0.039655257016420364, -0.005601305048912764, -0.04896102100610733, 0.04071272909641266, + 0.02222016081213951, -0.02384602651000023, -0.01285491231828928, -0.02871040441095829, + -0.015320147387683392, 0.046475958079099655, -0.005627741571515799, -0.001429241499863565, + 0.002324789296835661, 0.02391211874783039, 0.025630513206124306, -0.006282053422182798, + 0.0044347792863845825, 0.013145716860890388, -0.017659807577729225, -0.020131651312112808, + 0.004996562376618385, 0.007104899734258652, -0.0030435407534241676, 0.011863530613481998, + 0.013628189451992512, -0.030904661864042282, -0.03743455931544304, -0.006635645870119333, + 0.005611218512058258, -0.026027066633105278, 0.026701204478740692, 0.013681063428521156, + 0.007527889218181372, -0.04105640947818756, 0.0047949813306331635, 0.008433351293206215, + -0.014844284392893314, -0.01468566246330738, -0.0038432551082223654, 0.0060209897346794605, + 0.010059216059744358, -0.013588533736765385, -0.007686510216444731, -0.01241209451109171, + 0.0014085876755416393, -0.0016266916645690799, -0.0009748583543114364, -0.011129908263683319, + 0.022180506959557533, 0.02728281542658806, -0.030111556872725487, -0.02968856878578663, + -0.01015174575150013, -0.0162189994007349, 0.02095119282603264, 0.019893718883395195, + 0.02570982463657856, 0.02576269768178463, 0.0025957669131457806, 0.045709289610385895, + -0.0007625375292263925, -0.018360383808612823, 0.019179925322532654, -0.008823294192552567, + -0.011744564399123192, 0.015465549193322659, 0.004943688400089741, -0.0017481358954682946, + -0.02942419983446598, 0.029926499351859093, -0.018862683326005936, 0.010211228393018246, + 0.002043897984549403, -0.008492833934724331, -0.011744564399123192, -0.0236345324665308, + 0.029212703928351402, 0.002708123531192541, 0.025471892207860947, 0.03405064716935158, + -0.027203505858778954, 0.0012788820313289762, -0.04346216097474098, -0.0003143505018670112, + 0.008387086912989616, 0.004210066050291061, 0.002936141099780798, -0.02177073433995247, + 0.006133346352726221, -0.00637127785012126, 0.013377039693295956, 0.03426213935017586, + -0.03531961515545845, -0.018135670572519302, -0.008340821601450443, 0.005360068753361702, + -0.029715005308389664, 0.023290853947401047, -0.03143339976668358, -0.0277322418987751, + 0.0028353508096188307, 0.01206180639564991, 0.008096281439065933, 0.015280491672456264, + 0.03711731731891632, -0.043700091540813446, 0.0005229536909610033, 0.022193724289536476, + -0.01001295167952776, 0.007012370973825455, -0.005366677884012461, 0.006377886980772018, + 0.009530480019748211, 0.023608095943927765, -0.015967849642038345, -0.017765553668141365, + -0.03502880781888962, -0.030085120350122452, -0.005555040203034878, 0.04660814255475998, + 0.02553798444569111, -0.003668111050501466, -0.005558345001190901, -0.0028089138213545084, + -0.004930470138788223, -0.025894882157444954, -0.006149869412183762, -0.00799714308232069, + 0.011281920596957207, 0.00013631493493448943, -0.010568125173449516, 0.0062357890419662, + -0.005574868060648441, 0.04425526410341263, -0.017567278817296028, 0.0034995763562619686, + 0.019232798367738724, 0.020713262259960175, 0.01746153086423874, 0.023185105994343758, + 0.009186800569295883, 0.0005080829723738134, 0.00500647583976388, 0.034526508301496506, + 0.00996007863432169, 0.009702319279313087, -0.0029724917840212584, 0.004054749850183725, + -0.0013193633640184999, 0.018135670572519302, -0.010541688650846481, -0.019893718883395195, + -0.040474798530340195, 0.01471209991723299, -0.004768544342368841, 0.015981068834662437, + -0.0021678206976503134, 0.016496585682034492, 0.027917299419641495, 0.0036119327414780855, + -0.029027646407485008, 0.018029922619462013, 0.0032203372102230787, 0.011956059373915195, + 0.020396020263433456, 0.019364982843399048, 0.008129327557981014, -0.023211542516946793, + -0.01789773814380169, 0.026172468438744545, -0.034420762211084366, -0.0011962668504565954, + 9.578189929015934e-5, 0.02309257723391056, 0.01070030964910984, 0.014077615924179554, + 0.013489396311342716, 0.027705805376172066, 0.01018479187041521, -0.014500604942440987, + -0.023991430178284645, 0.01220060046762228, -0.006377886980772018, 0.0108589306473732, + -0.0077592115849256516, -0.016523022204637527, 0.027203505858778954, 0.03653571009635925, + 0.007983924821019173, -0.05958862975239754, 0.02128165401518345, -0.004642969463020563, + 0.047084007412195206, 0.01514830719679594, 0.006394410040229559, -0.00027738025528378785, + -0.006731479428708553, 0.0018505785847082734, 0.007369268219918013, -0.0016333007952198386, + 0.008149155415594578, -0.008631627075374126, 0.005935070104897022, 0.011526460759341717, + 0.007501452695578337, -0.030164431780576706, 0.008710937574505806, -0.0059086331166327, + -0.025313271209597588, -0.03301960974931717, -0.006814094725996256, 0.0023347032256424427, + 0.002597419312223792, 0.03537248820066452, 0.0043092044070363045, 0.03598053380846977, + 0.010350021533668041, -0.0012458359124138951, 0.040580544620752335, 0.0030468455515801907, + -0.016774173825979233, 0.0182281993329525, -0.010198010131716728, 0.011751173995435238, + -0.01525405514985323, -0.004487653262913227, -0.015187962912023067, -0.0230264849960804, + -0.020210962742567062, 0.0032748631201684475, 0.01873049885034561, -0.021546022966504097, + -0.020752916112542152, -0.005558345001190901, -0.01845291256904602, 0.016800610348582268, + -0.008241684176027775, 0.0026916004717350006, 0.0018770154565572739, 0.0001930095604620874, + 0.016959231346845627, 0.025419019162654877, 0.020819008350372314, -0.028631094843149185, + -0.03235868737101555, 0.011037379503250122, 0.01937820203602314, 0.010303757153451443, + -0.004940384067595005, -0.0017018713988363743, -0.036112718284130096, 0.008373867720365524, + 0.0004374470445327461, 0.026555802673101425, -0.002473496599122882, -0.01012530829757452, + -0.025352926924824715, 0.008102890104055405, 0.021056940779089928, -0.0021298176143318415, + -0.026185687631368637, 0.0008732417481951416, 0.006394410040229559, -0.007369268219918013, + -0.014434512704610825, -0.017012104392051697, -0.031089719384908676, -0.023660968989133835, + -0.029292015358805656, -0.014011523686349392, -0.005911937449127436, -0.023594876751303673, + -0.008935650810599327, 0.016575897112488747, -0.014394857920706272, 0.029662130400538445, + -0.006919842213392258, -0.010839102789759636, -0.0033905243035405874, 0.001910061459057033, + -0.009589962661266327, 0.007706338074058294, 0.007005761843174696, -0.012901176698505878, + -0.01746153086423874, 0.03516099229454994, -0.0077592115849256516, 0.014223018661141396, + -0.0006873577367514372, -0.02762649394571781, -0.009715537540614605, -0.009259502403438091, + -0.010792838409543037, 0.014196581207215786, 0.0048908148892223835, -0.006288662552833557, + 0.016800610348582268, -0.005687224678695202, 0.007190819829702377, 0.019404638558626175, + -0.018360383808612823, 0.024929936975240707, -0.061439208686351776, -0.006529898848384619, + 0.00511883245781064, 0.004457911476492882, 0.02635752595961094, -0.01220060046762228, + -0.009847722016274929, 0.020316708832979202, -5.5455395340686664e-5, -0.00303032249212265, + -0.06392427533864975, -0.02303970418870449, 0.004206761717796326, 0.020660387352108955, + 0.0060540358535945415, 0.005251016933470964, -0.0025676777586340904, -0.024427637457847595, + 0.04346216097474098, 0.0277322418987751, -0.022722462192177773, 0.03220006823539734, + 0.004847854841500521, -0.012451750226318836, -8.901778346626088e-5, 0.05316447839140892, + -0.041505832225084305, -0.0014416337944567204, 0.018162107095122337, -0.01674773544073105, + -0.027917299419641495, 0.004117537289857864, -0.01632474735379219, 0.0023826200049370527, + 0.02358165942132473, 0.013529051095247269, 0.010158354416489601, -0.027362126857042313, + 0.01665520668029785, -0.06519324332475662, -0.028208104893565178, 0.010277320630848408, + -0.028366725891828537, 0.0007633636705577374, 0.018241416662931442, -0.0014639399014413357, + -0.019338546320796013, -0.01604715920984745, 0.02674086019396782, 0.018690843135118484, + 0.041241466999053955, -0.021678205579519272, 0.007501452695578337, 0.024599477648735046, + 0.035293176770210266, -0.017778772860765457, -0.007957488298416138, -0.018254635855555534, + 0.009986515156924725, -0.0032368602696806192, -0.051446083933115005, -0.038624219596385956, + 0.012207209132611752, 0.010964677669107914, -0.015042560175061226, -0.00308980536647141, + 0.015412676148116589, -0.0033310414291918278, 0.022140851244330406, -0.037910424172878265, + 0.009715537540614605, 0.031354088336229324, 0.004937079269438982, 0.0035194039810448885, + 0.03180351480841637, -0.01440807618200779, -0.059800125658512115, 0.01697244867682457, + -0.04576216638088226, 0.025789134204387665, 0.019550040364265442, 0.02609315887093544, + -0.03775180131196976, -0.0020323318894952536, -0.005898719187825918, -4.776186324306764e-5, + 0.0019398028962314129, -0.009748583659529686, 0.015914976596832275, -0.021638551726937294, + -0.011348011903464794, -0.02717706747353077, 0.03394489735364914, 0.010905195027589798, + 0.018426476046442986, -0.003757335478439927, 0.014447730965912342, 0.013522442430257797, + 0.018043141812086105, -0.01479141041636467, 0.028525346890091896, 0.012577325105667114, + 0.0210172850638628, 0.01348278671503067, 0.004937079269438982, 0.02194257453083992, + -0.02215406857430935, -0.00962961744517088, 0.006807485595345497, -0.019232798367738724, + -0.01509543415158987, 0.0020719871390610933, -0.014143708162009716, -0.011671863496303558, + -0.0030352792236953974, 0.0028981382492929697, -0.0017861387459561229, -0.006367973051965237, + 0.027811553329229355, -0.023951774463057518, 0.05342884734272957, -0.016628770157694817, + -0.030428798869252205, -0.03656214475631714, 0.007686510216444731, 0.008023579604923725, + 0.03389202430844307, -0.01709141582250595, 0.027970174327492714, 0.00927932932972908, + -0.0060507310554385185, 0.016800610348582268, 0.025088557973504066, -0.002944402629509568, + -0.008869558572769165, -0.0169195756316185, -0.039047207683324814, -0.004143974278122187, + -0.018043141812086105, 0.008578754030168056, -0.004160497337579727, -0.012326175346970558, + 0.05615184083580971, 0.008439959958195686, -0.025313271209597588, -0.031909260898828506, + 0.005548431072384119, 0.009867548942565918, 0.04869665205478668, -0.02844603732228279, + -0.0004013029101770371, 0.008948869071900845, -0.0005270844558253884, -0.027811553329229355, + 0.026648331433534622, -0.028736840933561325, 0.007045417092740536, -0.011103471741080284, + 0.008611799217760563, -0.0333104133605957, -0.00239583826623857, -0.0027362126857042313, + 0.014223018661141396, -0.013733936473727226, 0.024956373497843742, 0.011903185397386551, + 0.00035586461308412254, 0.038729965686798096, 0.007356049958616495, 0.03481731563806534, + -0.029450636357069016, 0.01479141041636467, 0.00765346409752965, -0.023832809180021286, + 0.03547823429107666, -0.005366677884012461, -0.01468566246330738, -0.03116903081536293, + -0.027388563379645348, -0.007898004725575447, -0.0359276607632637, 0.04711044207215309, + 0.004190238658338785, 0.007772429846227169, 0.0027196896262466908, 0.0011847007554024458, + -0.004322422668337822, 0.019034521654248238, -0.00125161895994097, -0.0326230563223362, + -0.016417276114225388, -0.047295499593019485, -0.024163268506526947, -0.01653624139726162, + 0.020594295114278793, 0.0008269773097708821, 0.048670217394828796, -0.0249431561678648, + 0.020316708832979202, 0.010997723788022995, 0.011169563978910446, -0.010766401886940002, + -0.013971867971122265, 0.0108589306473732, 0.009953469038009644, -0.020607514306902885, + -0.025855226442217827, -0.01669486239552498, -0.016390839591622353, -0.014156926423311234, + 0.007838522084057331, -0.01932532712817192, -0.019735097885131836, 0.002410709159448743, + 0.02407073974609375, -0.012696291320025921, 0.03291386365890503, 0.028234541416168213, + ], + index: 88, + }, + { + title: "Tsq'altubo", + text: "Tsq'altubo, located in the north of Imereti region of Western Georgia, is a resort situated about 30 km northwest to the city of Kutaisi.et:Tskaltuboka:\u10ec\u10e7\u10d0\u10da\u10e2\u10e3\u10d1\u10ddfi:Tsqaltubo", + vector: [ + 0.014487741515040398, 0.023813346400856972, -0.020972061902284622, -0.0013942692894488573, + 0.04062194004654884, 0.004290059674531221, -0.004328740295022726, -0.0056368568912148476, + -0.02599354088306427, 0.023166321218013763, 0.005313344299793243, -0.008544954471290112, + -0.0009766918374225497, 0.011161187663674355, -0.03448926657438278, 0.014129064977169037, + -0.034826844930648804, -0.01925603672862053, 0.022941268980503082, 0.013735223561525345, + -0.014656530693173409, 0.008390231058001518, 0.009311539120972157, 0.032688844949007034, + -0.01195590291172266, -0.020915798842906952, -0.0248964112251997, -0.007926060818135738, + 0.012954573146998882, -0.02237863838672638, -0.04104391485452652, -0.017483750358223915, + 0.014072801917791367, 0.006530032958835363, -0.02118304744362831, 0.020381297916173935, + -0.02911614067852497, 0.006417506840080023, 0.005608725361526012, 0.016372554004192352, + -0.007082114461809397, 0.03828702121973038, 0.006980137899518013, 0.05522220954298973, + -0.0030680957715958357, -0.03873712569475174, -0.017638474702835083, -0.008256605826318264, + 0.033898502588272095, 0.0034179817885160446, 0.010774378664791584, -0.0040825894102454185, + 0.00025692005874589086, 0.00429709255695343, 0.03440487012267113, -0.008066718466579914, + -0.009937465190887451, 0.1251290738582611, 0.00907945353537798, 0.016710132360458374, + 0.00878407247364521, -0.004912469536066055, 0.01822923682630062, -0.0004303246096242219, + 0.04529177397489548, 0.007504087407141924, 0.010830641724169254, -0.01393214426934719, + -0.07083521038293839, 0.024769818410277367, 0.04565748572349548, 0.04852690175175667, + 0.009065387770533562, 0.010239879600703716, 0.029256798326969147, 0.023939939215779305, + -0.0011111957719549537, 0.022336440160870552, -0.005126972682774067, -0.0040192934684455395, + 0.005257081240415573, -0.009199013002216816, -0.029960086569190025, 0.0025283219292759895, + 0.04034062474966049, 0.03809010237455368, -0.08090630173683167, -0.05443452298641205, + 0.015162898227572441, 0.009156815707683563, 0.028764497488737106, -0.02183007262647152, + -0.03327960893511772, -0.005577077157795429, -0.029284929856657982, 0.04458848759531975, + 0.01925603672862053, 0.016499146819114685, -0.006835963577032089, 0.06661547720432281, + 0.011977002024650574, -0.034939371049404144, 0.01669606752693653, 0.011308877728879452, + 0.05696636438369751, -0.009163848124444485, 0.03907470405101776, 0.017497817054390907, + 0.040790729224681854, 0.03496750071644783, 0.016780462116003036, 0.013988407328724861, + -0.022674018517136574, -0.042112912982702255, -0.05828854441642761, -0.014867517165839672, + -0.012631060555577278, -0.025135528296232224, -0.011794147081673145, -0.0017801988869905472, + -0.03316708281636238, -0.008734842762351036, 0.021154915913939476, -0.028159668669104576, + 0.000808781711384654, -0.010999430902302265, 0.00126504001673311, 0.012764684855937958, + 0.0037203957326710224, 0.04416651278734207, -0.0012808640021830797, -0.06504011154174805, + -0.0099866958335042, -0.008256605826318264, 0.006786733400076628, -0.006132675334811211, + -0.009487360715866089, 0.04306938499212265, -0.0023946971632540226, -0.01458620186895132, + -0.046979665756225586, 0.020339101552963257, -0.02627485617995262, -0.004202148411422968, + -0.058626122772693634, -0.02085953578352928, -0.023110058158636093, -0.028975483030080795, + 0.01730089634656906, 0.0016140469815582037, 0.03944041579961777, -0.027160998433828354, + -0.02692188136279583, 0.03125413879752159, 0.04093138501048088, 0.06402737647294998, + -0.03763999789953232, 0.02981942892074585, 0.006487835664302111, -0.011688653379678726, + -0.04301312193274498, -0.020972061902284622, 0.03688044473528862, -0.030382059514522552, + 0.05257784202694893, -0.042056649923324585, -0.00936076883226633, 0.04830184951424599, + 0.022350506857037544, 0.001958658220246434, 0.03854020684957504, -0.02237863838672638, + 0.0009125167271122336, -0.027822090312838554, 0.015008174814283848, -0.008270671591162682, + -0.0242353193461895, -0.0041810497641563416, 0.048948876559734344, 0.013116328977048397, + -0.04247862100601196, -0.06661547720432281, 0.00919197965413332, -0.010253945365548134, + -0.009431097656488419, -0.0050390614196658134, 0.02358829416334629, 0.01910131424665451, + 0.07139784097671509, -0.03744307532906532, -0.03626155108213425, 0.01189963985234499, + -0.027428248897194862, -0.021745678037405014, 0.009445163421332836, 0.01739935576915741, + -0.024474438279867172, 0.07634899020195007, 0.010387570597231388, -0.02402433380484581, + -0.022406769916415215, 0.02561376430094242, -0.03432047739624977, 0.006698822136968374, + 0.023335110396146774, -0.00018285498663317412, -0.018355827778577805, 0.01679452694952488, + -0.005235982593148947, 0.002081733662635088, -0.03960920497775078, -0.019762404263019562, + -0.006628493312746286, 0.006681240163743496, 0.04509485512971878, 0.006586296018213034, + 0.024333780631422997, -0.035276949405670166, 0.04180346429347992, 0.04962403327226639, + 0.060820382088422775, 0.014037637040019035, 0.0021573372650891542, -0.046810876578092575, + 0.038990311324596405, 0.01680859364569187, -0.014445544220507145, 0.00407555652782321, + -0.003036447800695896, 0.04863942787051201, 0.02232237532734871, -0.036964841187000275, + 0.007377495523542166, -0.01904505118727684, -0.02976316586136818, 0.01910131424665451, + 0.005837293807417154, -0.01772286929190159, -0.0016843758057802916, 0.001625475357286632, + -0.005028512328863144, 0.05043984577059746, 0.0477110855281353, 0.02429158240556717, + 0.00206590979360044, 0.009796807542443275, -0.009290440008044243, 0.03398289531469345, + -0.023433569818735123, -0.005285212770104408, -0.0054715839214622974, -0.0019252521451562643, + 0.025909146293997765, -0.006586296018213034, -0.015134766697883606, -0.02550123818218708, + 0.011196351610124111, -0.05274663120508194, -0.006994203664362431, -0.07106026262044907, + -0.02298346534371376, -0.007194640580564737, 0.034995634108781815, -0.0407063327729702, + 0.01441741269081831, 0.01436114963144064, 0.008741875179111958, -0.020156245678663254, + -0.012307547964155674, -0.018918458372354507, -0.00037669888115487993, -0.004979282151907682, + 0.023897740989923477, 0.014403346925973892, 0.013418743386864662, 0.04042501747608185, + -0.03839954733848572, 0.021028324961662292, -0.011484700255095959, 0.023883674293756485, + 0.020592285320162773, -0.021084588021039963, -0.00021867874602321535, 0.04526364430785179, + 0.06768447905778885, -0.021900402382016182, 0.020972061902284622, 0.08158145844936371, + -0.0033634768333286047, -0.04565748572349548, -0.008059685118496418, 0.026302987709641457, + 0.07820567488670349, -0.0029485367704182863, 0.000345490436302498, 0.023180386051535606, + -0.008080784231424332, 0.0008795501198619604, 0.0248964112251997, 0.0012369084870442748, + 0.04129709675908089, 0.025838816538453102, -0.024713555350899696, -0.012687323614954948, + 0.042647410184144974, 0.02970690280199051, 0.01735715940594673, 0.04230983182787895, + -0.03173237293958664, -0.00418808264657855, 0.004342806059867144, 0.016020910814404488, + -0.04875195398926735, 0.018651209771633148, 0.014129064977169037, 0.019002852961421013, + -0.04551682621240616, -0.011618324555456638, -0.09260901808738708, -0.035642657428979874, + -0.0013503137743100524, 0.03173237293958664, -0.047964271157979965, -0.03063524328172207, + 0.08715150505304337, 0.03184489905834198, 0.00655113160610199, 0.006333112251013517, + 0.05845733359456062, -0.0062627834267914295, -0.030128875747323036, 0.007461890112608671, + -0.04450409114360809, 0.03108534961938858, 0.03989052027463913, -0.02031097002327442, + 0.0017476717475801706, 0.019452957436442375, -0.004191598854959011, 0.04748603329062462, + -0.01258182991296053, 0.011020530015230179, 0.044194646179676056, 0.035811446607112885, + 0.014185328036546707, 0.006280365865677595, 0.028033077716827393, -0.02341950498521328, + -0.00014725101937074214, -0.012068429961800575, 0.0006399924750439823, 0.026907814666628838, + -0.032041821628808975, 0.058851175010204315, 0.046698350459337234, 0.007075081579387188, + -0.08355066925287247, -0.028483182191848755, 0.05246531590819359, 0.01630222611129284, + 0.014129064977169037, -0.017483750358223915, -0.0021801942493766546, 0.015458280220627785, + -0.02275841310620308, 0.05752899497747421, 0.02709067054092884, 0.035923972725868225, + -0.03676791861653328, 0.005024995654821396, -0.01569739729166031, 0.02523398958146572, + -0.03457365930080414, 0.0861387699842453, 0.019284168258309364, -0.032041821628808975, + 0.026077935472130775, -0.053984418511390686, 0.04155028238892555, 0.0029327126685529947, + -0.028412852436304092, -0.022181717678904533, 0.0355863943696022, -0.012532600201666355, + 0.04351948946714401, -0.029200535267591476, -0.014726859517395496, -0.007764304522424936, + 0.022420834749937057, 0.0027252426370978355, -0.028145603835582733, 0.043857067823410034, + 0.010626688599586487, -0.06616537272930145, 0.015064437873661518, 0.037246156483888626, + -0.02510739676654339, -0.009529558010399342, 0.00459598982706666, -0.01061262283474207, + 0.03392663225531578, 0.02796274796128273, -0.0531967356801033, 0.030466454103589058, + -0.0053414758294820786, -0.025599699467420578, -0.03567079082131386, 0.017005514353513718, + -0.03758373484015465, 0.01488158293068409, -0.06549021601676941, -0.06515263766050339, + 0.04644516855478287, -0.004965216387063265, 0.02669682912528515, 0.012335679493844509, + 0.01228644885122776, 0.017919789999723434, -0.021379968151450157, 0.0007538372883573174, + -0.020761074498295784, -0.012631060555577278, -0.030382059514522552, -0.024826081469655037, + 0.010753280483186245, -0.008200342766940594, 0.012328646145761013, 0.0034988599363714457, + 0.05280289426445961, -0.08495724201202393, 0.028651971369981766, -0.017047710716724396, + -0.05238092318177223, 0.005875974893569946, -0.02008591778576374, 0.02544497512280941, + 0.024150924757122993, -0.021422166377305984, 0.0018056930275633931, 0.006421023514121771, + -0.01834176294505596, -0.0015375643270090222, 0.02917240373790264, 0.0013133911415934563, + 0.05992017313838005, 0.01165348943322897, 0.03688044473528862, 0.021914467215538025, + 0.041015781462192535, -0.009276374243199825, 0.03983425721526146, 0.06127048656344414, + -0.01817297376692295, 0.026063868775963783, -0.012272383086383343, -0.06897853314876556, + 0.025979474186897278, 0.04655769467353821, 0.0602014884352684, -0.01914351060986519, + -0.001329215127043426, -0.02616233006119728, -0.011562061496078968, -0.06205817312002182, + -0.02822999842464924, 0.003941931761801243, -0.035642657428979874, -0.0113581083714962, + -0.006438605487346649, 0.030325796455144882, 0.0023226100020110607, 0.026935946196317673, + -0.035220686346292496, -0.004736647475510836, -0.03254818916320801, -0.025529369711875916, + 0.0028659002855420113, -0.013742255978286266, -0.04039688780903816, 0.044841669499874115, + 0.019073182716965675, -0.005914655514061451, 0.024038398638367653, -0.025037068873643875, + -0.001607014099135995, 0.04745790362358093, 0.020325034856796265, 0.013728190213441849, + 0.015514543280005455, -0.022730281576514244, 0.020972061902284622, 0.019523287191987038, + 0.06352101266384125, -0.01800418458878994, 0.008931763470172882, 0.0030505135655403137, + -0.05100247636437416, -0.05634747073054314, -0.017202435061335564, -0.024994870647788048, + -0.026612434536218643, 0.05209960788488388, -0.01176601555198431, 0.004409618675708771, + -0.031000955030322075, -0.019621746614575386, -0.013573466800153255, 0.01356643345206976, + -0.03344839811325073, -0.024432240054011345, 0.03150732070207596, 0.02391180582344532, + -0.0337015800178051, -0.04323817417025566, -0.024643227458000183, 0.012525566853582859, + 0.03960920497775078, -0.028061209246516228, 0.022083256393671036, -0.035642657428979874, + -0.00039406129508279264, 0.009086486883461475, -0.03769626095890999, -0.013242920860648155, + -0.02665463089942932, 0.00678321672603488, -0.03139479458332062, -0.006456187926232815, + 0.017554080113768578, 0.0035639142151921988, -0.036796052008867264, 0.01964987814426422, + -0.0007569142035208642, 0.010999430902302265, 0.01717430353164673, 0.01910131424665451, + -0.0005652680993080139, -0.060539066791534424, -0.01308116503059864, -0.007511120289564133, + -0.01870747283101082, -0.0030839198734611273, -4.2334668250987306e-5, -0.0026338151656091213, + -0.01343280915170908, 0.019734272733330727, 0.019002852961421013, -0.010704049840569496, + -0.028862956911325455, -0.03474244847893715, 0.02090173214673996, 0.02987569198012352, + 0.023222584277391434, 0.02671089395880699, 0.01575366035103798, 0.014107965864241123, + -0.003825888969004154, -0.02211138792335987, 0.0005160378641448915, 0.023616425693035126, + 0.009902301244437695, 0.011337009258568287, 0.03491123765707016, 0.013889946974813938, + -0.01580992341041565, -0.012054364196956158, -0.03744307532906532, -0.029425587505102158, + -0.03156358376145363, 0.00018483298481442034, 0.024769818410277367, 0.00244216900318861, + 0.011808212846517563, -0.03758373484015465, 0.012406008318066597, 0.004497529473155737, + -0.03139479458332062, -0.04689527302980423, -0.015134766697883606, -0.031704243272542953, + 0.0035533648915588856, 0.018679341301321983, -0.0026742543559521437, 0.025754421949386597, + 0.010879872366786003, -0.0143400514498353, -0.037949442863464355, -0.0008492207853123546, + -0.06819084286689758, -0.0172305665910244, -0.017919789999723434, 0.0010654819197952747, + 0.0008008697186596692, -0.0034443552140146494, -0.015317621640861034, 0.007701008580625057, + 0.024446306750178337, -0.011991067789494991, -0.009789775125682354, 0.01211765967309475, + -0.0015823990106582642, 0.03136666491627693, 0.01211765967309475, -0.012019199319183826, + -0.03223874047398567, 0.006122125778347254, -0.00592168839648366, 0.02292720228433609, + -0.023785214871168137, 0.029313061386346817, -0.0581197552382946, -0.019579550251364708, + 0.030269533395767212, -0.019903061911463737, 0.011737884022295475, -0.009733512066304684, + 0.008115948177874088, 0.0526341050863266, 0.013524236157536507, -0.03471431881189346, + 0.01662573777139187, -0.025023002177476883, -0.0031858966685831547, 0.004986315034329891, + 0.03671165555715561, -0.008537921123206615, -0.01569739729166031, -0.025965409353375435, + -0.016541343182325363, -0.0003874679678119719, 0.01669606752693653, -0.012891276739537716, + 0.07938719540834427, -0.04723285138607025, 0.038765259087085724, 0.015528609044849873, + 0.01178711373358965, -0.027836157009005547, 0.0008122981525957584, -0.003528749803081155, + 0.0033652351703494787, -0.0034355639945715666, 0.031760506331920624, -0.05980764701962471, + -0.011744916439056396, -0.039215363562107086, 0.02484014816582203, 0.04745790362358093, + 0.009536591358482838, 0.01422752533107996, -0.06413990259170532, 0.021211178973317146, + 0.05738833546638489, 0.015387951396405697, 0.021647218614816666, 0.0026338151656091213, + -0.023292912170290947, -0.00027406270965002477, 0.01543014869093895, 0.009325604885816574, + -0.049595899879932404, 0.015387951396405697, 0.034995634108781815, 0.02834252454340458, + -0.006125642452389002, 0.018946589902043343, 0.008931763470172882, 0.011161187663674355, + -0.0016492113936692476, 1.659321060287766e-5, -0.03879338875412941, -0.01680859364569187, + -0.02769549936056137, 0.02178787626326084, 0.026359250769019127, -0.005186752416193485, + -0.0026742543559521437, -0.03232313692569733, -0.025796620175242424, 0.006442122161388397, + 0.006723437458276749, -0.017216501757502556, -0.03471431881189346, 0.02031097002327442, + -0.019931193441152573, 0.005517297890037298, -0.0006193333538249135, -0.003430289449170232, + 0.04475727677345276, -0.01267325785011053, 0.037611864507198334, 0.021408099681138992, + -0.02730165608227253, -0.001967449439689517, 0.007511120289564133, 0.023433569818735123, + -0.03434860706329346, -0.00919197965413332, -0.02665463089942932, -0.040734466165304184, + -0.010366471484303474, -0.007356396876275539, 0.021000193431973457, 0.018510552123188972, + 0.020015588030219078, 0.009156815707683563, -0.0014074560021981597, -0.0022593140602111816, + 0.01286314520984888, -0.01023284625262022, -0.011906673200428486, -0.027315722778439522, + -0.018468353897333145, 0.04011557251214981, 0.00752518605440855, 0.026668697595596313, + 0.02046569250524044, -0.05221213400363922, -0.043969593942165375, 0.05631933733820915, + -0.008566053584218025, -0.009213078767061234, -0.06143927574157715, -0.03792131319642067, + -0.00327029125764966, 0.03432047739624977, 0.020170312374830246, 0.051733896136283875, + 0.014783122576773167, -0.0004134017217438668, 0.0012421831488609314, -0.012567764148116112, + 0.02790648490190506, -0.00608696136623621, 0.04166280850768089, 0.0015015208628028631, + -0.0344611331820488, -0.011055693961679935, 0.005591142922639847, -0.042703673243522644, + 0.04357575252652168, -0.032913897186517715, -0.0189325250685215, 0.019438892602920532, + 0.008573086000978947, 0.02385554276406765, -0.026851551607251167, -0.0005683449562638998, + -0.02270215004682541, -0.013960275799036026, 0.005861909128725529, -0.03749933838844299, + 0.012272383086383343, -0.013826650567352772, -0.03375784307718277, -0.004332256969064474, + -0.027315722778439522, 0.00787683017551899, 0.010542294010519981, 0.014206426218152046, + 0.016766395419836044, 0.011864475905895233, 0.03704923391342163, -0.004778844770044088, + -0.03150732070207596, 0.018398026004433632, -0.020606352016329765, 0.026893749833106995, + -0.004110720939934254, -0.028117472305893898, 0.026007605716586113, 0.0405094139277935, + 0.03944041579961777, 0.021140851080417633, 0.022533360868692398, -0.020662615075707436, + 0.030128875747323036, 0.0006672448944300413, -0.026992209255695343, 0.00936076883226633, + 0.037611864507198334, -0.0013371271779760718, -0.002101074205711484, -0.029678771272301674, + -0.03311081975698471, -0.046529561281204224, -0.0005815316108055413, -0.011266680434346199, + -0.007546284701675177, 0.0420285165309906, 0.00033340268419124186, 0.007729140110313892, + -0.0012342712143436074, 0.00900209229439497, -0.014347083866596222, 0.014740925282239914, + 0.0401437021791935, 0.007300133816897869, 0.03583957999944687, 0.0030012833885848522, + 0.014129064977169037, -0.0012448205379769206, 0.05429386720061302, -0.05691010132431984, + -0.0023735985159873962, -0.05013040080666542, -0.001185920089483261, -0.048076797276735306, + 0.01430488657206297, 0.03327960893511772, 0.03353279083967209, 0.03643034026026726, + 0.014445544220507145, 0.02123931050300598, 0.021633151918649673, -0.008432428352534771, + -0.032801371067762375, -0.025360580533742905, 0.013798519037663937, -0.0034724867437034845, + -0.006072895601391792, 0.012595895677804947, 0.013249954208731651, -0.005700152833014727, + -0.018510552123188972, 0.02341950498521328, 0.043041251599788666, 0.027428248897194862, + -0.00791199505329132, 0.012476337142288685, -0.05851359665393829, 0.0013485555537045002, + -0.023236649110913277, -0.03229500353336334, 0.0021204145159572363, -0.02599354088306427, + -0.044082120060920715, 0.009965596720576286, -0.003045239020138979, 0.0010610864264890552, + -0.005981468129903078, 0.006283882074058056, 0.020943930372595787, 0.00787683017551899, + 0.03145105764269829, 0.044672880321741104, -0.02166128344833851, -0.021590955555438995, + -0.008805171586573124, 0.004546759650111198, 0.028412852436304092, 0.025895079597830772, + 0.0019270103657618165, -0.00051647744840011, 0.01575366035103798, 0.012237219139933586, + -0.021379968151450157, 0.004068523645401001, 0.03536134213209152, -0.0001274710230063647, + 0.04098764806985855, 0.02911614067852497, -0.0038856687024235725, -0.015303555876016617, + 0.002074700780212879, -0.02173161320388317, 0.03693670779466629, -0.029088009148836136, + 0.0008276825537905097, 0.03792131319642067, -0.02576848864555359, -0.049933478236198425, + 0.005510265007615089, 0.021759744733572006, 0.007919027470052242, -0.0012984463246539235, + -0.04427903890609741, -0.015387951396405697, -0.025754421949386597, 0.03820262849330902, + 0.01772286929190159, -0.004901920445263386, 0.027512643486261368, -0.007250903639942408, + -0.007630679290741682, 0.023616425693035126, -0.0401437021791935, 0.0009432855877093971, + -0.018960656598210335, 0.011688653379678726, 0.00296084419824183, -0.01586618646979332, + -0.0263170525431633, -0.01178711373358965, 0.015613003633916378, -0.017877591773867607, + 0.000429225736297667, -0.012574797496199608, 0.005313344299793243, -0.004880821797996759, + 0.006343661807477474, -0.04230983182787895, 0.01904505118727684, 0.02243490144610405, + -0.01745561882853508, -0.06273332983255386, -0.010197682306170464, -0.004919502418488264, + -0.026359250769019127, 0.037189893424510956, -0.023503899574279785, 0.05350618436932564, + -0.031000955030322075, -0.01849648542702198, -0.020381297916173935, -0.016935184597969055, + 0.03645847365260124, -0.015669265761971474, 0.019467024132609367, 0.042872462421655655, + -0.008713743649423122, 0.04290059581398964, 0.0025371129158884287, 0.00911461841315031, + -0.018398026004433632, -0.01630222611129284, 0.0035797380842268467, 0.02468542382121086, + -0.0014426204143092036, -0.0269781444221735, 0.01663980446755886, 0.017976053059101105, + 0.012110627256333828, -0.02002965472638607, -0.019678009673953056, 0.029903823509812355, + -0.004603022709488869, 0.003171830903738737, 0.012525566853582859, -0.012708421796560287, + -0.0018619560869410634, -0.009381867945194244, -0.02166128344833851, 0.00562279112637043, + -0.027667367830872536, 0.008073750883340836, -0.020339101552963257, -0.0023384341038763523, + -0.0469515360891819, 0.0412689670920372, -0.005721251480281353, -0.013207756914198399, + -0.01647101528942585, -0.013868847861886024, 0.04672648385167122, -0.016386620700359344, + -0.0365428663790226, 0.012314580380916595, -0.0420285165309906, -0.03353279083967209, + -0.017033645883202553, 0.023827411234378815, 0.011224483139812946, 0.012363811023533344, + 0.05494089424610138, -0.020015588030219078, -0.02002965472638607, 0.01652727834880352, + -0.01921384036540985, 0.009691314771771431, -0.015880253165960312, 0.01184337679296732, + 0.01620376482605934, 0.01898878812789917, -0.024980805814266205, -0.021112719550728798, + 0.004775328561663628, -0.020817337557673454, 0.015795858576893806, -0.006582779809832573, + 0.02616233006119728, 0.0006457067211158574, 0.017469685524702072, 0.002809637226164341, + 0.00936076883226633, 0.020915798842906952, 0.009395933710038662, 0.005520814098417759, + 0.01543014869093895, 0.0036430340260267258, 0.03195742517709732, 0.011400305666029453, + 0.027104735374450684, 0.034826844930648804, -0.005380156449973583, 0.03797757625579834, + 0.015950581058859825, -0.008798138238489628, -0.02709067054092884, 0.012785783968865871, + 0.01620376482605934, -0.007328265346586704, -0.013123362325131893, 0.03097282350063324, + -0.032970160245895386, -0.04332256689667702, -0.01575366035103798, -0.009297473356127739, + 0.010654820129275322, 0.03339213505387306, -0.004304125439375639, 0.03544573858380318, + -0.00043340149568393826, -0.027175065129995346, 0.02730165608227253, 0.0056368568912148476, + 0.015008174814283848, -0.03108534961938858, 0.007504087407141924, 0.03508002683520317, + -0.013671927154064178, -0.04596693068742752, -0.09620986133813858, -0.026823420077562332, + -0.006698822136968374, 0.01680859364569187, -0.03119787573814392, -0.011773047968745232, + 0.0031911712139844894, -0.022195782512426376, 0.020015588030219078, -0.0004415332805365324, + -0.0012852596119046211, -0.012631060555577278, -0.01921384036540985, -0.02762516960501671, + 0.0033810590393841267, -0.013151493854820728, -0.005482133477926254, 0.022899070754647255, + -0.0024527183268219233, -0.022463032975792885, -0.022125454619526863, -0.00935373641550541, + 0.009726478718221188, 0.03153545409440994, -0.028483182191848755, 0.06217069923877716, + -0.011104924604296684, 0.03364531695842743, -0.03848394379019737, -0.004022809676826, + 0.0027164516504853964, 0.01302490197122097, -0.014136097393929958, -0.024333780631422997, + -0.022688085213303566, 0.0070258514024317265, 0.0038751193787902594, 0.020831404253840446, + 0.007043433841317892, 0.0016553651075810194, 0.008882532827556133, 0.01482531987130642, + 0.0005441694520413876, 0.009438131004571915, 0.023447636514902115, 0.012265350669622421, + 0.006568714044988155, -0.004135335795581341, 0.009318571537733078, 0.007082114461809397, + 0.04706406220793724, 0.024150924757122993, 0.010795477777719498, -0.030438322573900223, + 0.02363049052655697, -0.009318571537733078, -0.005383673124015331, 0.02226611226797104, + -0.016133436933159828, 0.021590955555438995, -0.017118040472269058, 0.003458420978859067, + -0.031816769391298294, 0.013995439745485783, 0.01948108896613121, -0.009276374243199825, + -0.014670596458017826, 0.0060060834512114525, -0.0065581644885241985, 0.007834632880985737, + -0.024868279695510864, -0.008910664357244968, -0.015908384695649147, -0.002327884780243039, + 0.026499908417463303, 0.0022083257790654898, 0.012265350669622421, 0.026415513828396797, + -0.015275424346327782, -0.0053731235675513744, -0.03282950446009636, -0.013868847861886024, + 0.011850410141050816, -0.0060025667771697044, 0.025698158890008926, -0.03631781414151192, + -0.014178294688463211, -0.025909146293997765, -0.01877780072391033, -0.007658810820430517, + -0.018299564719200134, 0.010296142660081387, 0.008038586936891079, 0.005548945628106594, + -0.01178711373358965, 0.004979282151907682, 0.013165559619665146, 0.008931763470172882, + 0.004617088474333286, 0.016119370236992836, 0.015373884700238705, 0.023560162633657455, + -0.015627069398760796, 0.017047710716724396, 0.014572136104106903, -0.01206139661371708, + 0.05254971235990524, 0.0076166135258972645, -0.013130394741892815, 0.019832734018564224, + 0.0308602973818779, -0.011337009258568287, -0.01881999894976616, -0.023897740989923477, + 0.01630222611129284, -0.009402966126799583, 0.0010478997137397528, 0.013911045156419277, + -0.003917316440492868, -0.019073182716965675, 0.011147121898829937, 0.0024052464868873358, + 0.03755560144782066, -0.0017283313209190965, 0.00024065651814453304, 0.00971241295337677, + 0.0005199938896112144, -0.017990117892622948, -0.02796274796128273, -0.0012632817961275578, + 0.027386052533984184, 0.021464362740516663, -0.004050941206514835, -0.009325604885816574, + 0.044897932559251785, 0.020972061902284622, 0.015908384695649147, -0.005738833453506231, + -0.003628968261182308, -0.013151493854820728, -0.018426157534122467, -0.008685612119734287, + -0.020972061902284622, -0.02917240373790264, 0.005812678951770067, 0.006670690607279539, + 0.006185421720147133, -0.009888235479593277, 0.0230959914624691, -0.010415702126920223, + -0.0025986507534980774, -0.008425395004451275, -0.004086105618625879, -0.0012949298834428191, + 0.014023571275174618, 0.022181717678904533, -0.006424539722502232, -0.009149782359600067, + -0.01690705306828022, -0.0280190110206604, -0.029200535267591476, -0.008059685118496418, + -0.0026549138128757477, -0.010464931838214397, 0.019059116020798683, 0.0014118514955043793, + 0.0068922266364097595, -0.014515873044729233, -0.027315722778439522, -0.026795288547873497, + -0.012933474034070969, -0.017272764816880226, -0.001803934806957841, 0.014965977519750595, + 0.0053731235675513744, -0.025304317474365234, -0.0072860680520534515, 0.003115567844361067, + 0.012328646145761013, 0.05384376272559166, 0.008755940943956375, -0.01223018579185009, + -0.022533360868692398, -0.01821517013013363, -0.0002181293093599379, 0.018412090837955475, + -0.023771148175001144, -0.0012140516191720963, 0.01009922195225954, -0.024277517572045326, + -0.004690933972597122, -0.005183235742151737, 0.023222584277391434, -0.02959437668323517, + -0.012954573146998882, -0.005404771771281958, 0.02424938604235649, 0.012012166902422905, + -0.0013626213185489178, -0.012961605563759804, -0.0235742274671793, 0.0007485626265406609, + 0.012588863261044025, 0.019115379080176353, -0.02747044712305069, 0.024474438279867172, + 0.021703481674194336, -0.039749860763549805, -0.002945020329207182, 0.023166321218013763, + 0.03659912943840027, 0.0003788966569118202, 0.021520625799894333, -0.034995634108781815, + 0.016878921538591385, 0.024544766172766685, 0.0391872301697731, 0.015387951396405697, + 0.032576318830251694, -0.004666318651288748, 0.009501426480710506, 0.02436191216111183, + 0.008326934650540352, -0.009072421118617058, 0.04337882995605469, 0.007890895940363407, + -0.011716784909367561, -0.030775902792811394, 0.038708996027708054, 0.03282950446009636, + 0.018651209771633148, 0.016049042344093323, 0.027175065129995346, 0.03747120872139931, + -0.002971393521875143, 0.004979282151907682, 0.018074512481689453, -0.013826650567352772, + 0.003987645264714956, 0.019495155662298203, 0.0029344710055738688, -0.0552784726023674, + 0.011533929966390133, 0.02468542382121086, 0.012223153375089169, 0.012989737093448639, + -0.024826081469655037, -0.02965063974261284, 0.04124083369970322, -0.0020905248820781708, + 0.009501426480710506, 0.0010276802349835634, 0.0020325034856796265, 0.02604980394244194, + 0.010387570597231388, -0.010239879600703716, 0.04059380665421486, -0.010141419246792793, + 0.0053379591554403305, 0.01592244952917099, 0.023517964407801628, -0.0038012738805264235, + -0.0049406010657548904, -0.03356092423200607, -0.003664132673293352, 0.010647786781191826, + 0.024474438279867172, -0.012553698383271694, 0.015078503638505936, -0.007335298229008913, + -0.03820262849330902, 0.04185972735285759, 0.027540775015950203, 0.00752518605440855, + 0.04371640831232071, 0.02845505066215992, 0.008052652701735497, 0.03769626095890999, + 0.022519296035170555, 0.005953336600214243, 0.018580880016088486, -0.01078141201287508, + -0.012884244322776794, -0.00787683017551899, -0.011407338082790375, 0.011161187663674355, + -0.020704811438918114, 0.0033898502588272095, 0.010141419246792793, -0.0021854687947779894, + -0.009529558010399342, -0.006283882074058056, 0.015303555876016617, 0.01969207637012005, + 0.03944041579961777, -0.03420795127749443, -0.014150163158774376, 0.020507890731096268, + -0.020015588030219078, -0.025402778759598732, -0.005014446564018726, 0.020943930372595787, + 0.005510265007615089, 0.0070258514024317265, 0.028862956911325455, 0.024375976994633675, + 0.018412090837955475, 0.03353279083967209, -0.01223018579185009, 0.06526516377925873, + -0.0034267730079591274, 6.736184877809137e-5, -0.052887290716171265, -0.015472345985472202, + -0.012940507382154465, -0.009719446301460266, -0.01223018579185009, 7.321342309296597e-6, + 0.0031472158152610064, -0.008481658063828945, -1.0061695320473518e-5, -0.016456948593258858, + 0.008812204003334045, -0.01970614120364189, -0.008200342766940594, -0.0344611331820488, + 0.013439841568470001, 0.005130489356815815, -0.012771718204021454, 0.007869797758758068, + -0.046642087399959564, 0.005594659596681595, 0.013826650567352772, 0.03156358376145363, + 0.022941268980503082, -0.007036400958895683, -0.007272002287209034, -0.025473106652498245, + -0.002378873061388731, -0.04155028238892555, -0.019846798852086067, 0.018046380952000618, + 0.01141437143087387, -0.009775709360837936, -0.0013371271779760718, -0.02237863838672638, + -0.018834063783288002, -0.007588481996208429, -0.009817906655371189, 0.01143546961247921, + -0.01327105239033699, 0.005615758243948221, 0.012469303794205189, 0.009881202131509781, + 0.0029344710055738688, -0.022097323089838028, -0.04540430009365082, -0.019115379080176353, + 0.022519296035170555, 0.029960086569190025, 0.022969400510191917, 0.024263450875878334, + 0.03848394379019737, 0.019452957436442375, 0.007008269429206848, 0.017638474702835083, + -0.02232237532734871, 0.04098764806985855, -0.0026215077377855778, -0.022139519453048706, + 0.017877591773867607, -0.004501046147197485, 0.0051797195337712765, -0.022252045571804047, + -0.0140095055103302, -0.012919408269226551, 0.00516916997730732, -0.007567383348941803, + 0.0032368849497288465, 0.017371224239468575, -0.009262308478355408, -0.004054457880556583, + 0.027667367830872536, 0.02813153713941574, -0.00038856687024235725, -0.02769549936056137, + 0.0023841478396207094, -0.01717430353164673, -0.012019199319183826, -0.000520433415658772, + 0.011231516487896442, 0.024882344529032707, -0.014909714460372925, -0.008024521172046661, + 0.02112678438425064, 0.00642805639654398, -0.06368979811668396, -0.026401447132229805, + -0.005795096512883902, -0.024390043690800667, 0.007426725700497627, 0.009923399426043034, + 0.012019199319183826, -0.007391561288386583, -0.02550123818218708, 0.0016711890930309892, + 0.003991161938756704, 0.028469115495681763, 0.01321478933095932, 0.00888956617563963, + 0.006751568987965584, 0.0012158098397776484, -0.02073294296860695, 0.039271626621484756, + 0.02118304744362831, -0.004392036236822605, 0.019115379080176353, -0.016724199056625366, + 0.02171754650771618, -0.002558211563155055, -0.0032966644503176212, -0.014459609985351562, + 0.017469685524702072, -0.009564722888171673, -0.018524616956710815, -0.025093331933021545, + -0.016724199056625366, 0.01717430353164673, 0.003625451819971204, 0.011590193025767803, + -0.019452957436442375, 0.04214104264974594, -0.00039142396417446434, -0.021478429436683655, + 0.017807263880968094, 0.009817906655371189, 0.03856833651661873, 0.015739595517516136, + -0.01728682965040207, -0.01387588120996952, -0.02298346534371376, -0.008741875179111958, + -0.03381410613656044, -0.023883674293756485, -0.0015920691657811403, -0.015500477515161037, + -0.009564722888171673, 0.016006844118237495, -0.004093138501048088, -0.003486552508547902, + 0.03440487012267113, 0.022842807695269585, -0.0012202054494991899, 0.005211367271840572, + -0.03637407720088959, -0.01395324245095253, 0.02768143266439438, -0.014347083866596222, + -0.003062821226194501, -0.013383578509092331, -0.019579550251364708, 0.021408099681138992, + -0.02336324192583561, 0.01384071633219719, 0.012588863261044025, 7.763644680380821e-5, + -0.022842807695269585, 0.002774472814053297, -0.009388900361955166, -0.030550848692655563, + 0.02620452642440796, 0.003917316440492868, 0.003804790321737528, -0.023503899574279785, + 0.0061643230728805065, 0.03536134213209152, 0.013967308215796947, 0.01876373589038849, + 0.005584110040217638, -0.023321043699979782, 0.017483750358223915, 0.0049441177397966385, + 0.013580499216914177, 0.008706711232662201, 0.014614333398640156, -0.006378826219588518, + -0.004247861914336681, 0.021914467215538025, -0.0005903227138333023, -0.002486124634742737, + 0.034179817885160446, -0.010879872366786003, -0.056881967931985855, -0.021042389795184135, + -0.05021479353308678, 0.031873032450675964, 0.04683900997042656, -0.007778370287269354, + 0.014951911754906178, -0.005826744716614485, 0.022899070754647255, 0.02112678438425064, + -0.008390231058001518, 0.030775902792811394, 0.015387951396405697, -0.011287779547274113, + -0.018355827778577805, -0.0011191077064722776, -0.0055700442753732204, -0.020339101552963257, + -0.044672880321741104, 0.01680859364569187, 0.03749933838844299, 0.03004448115825653, + ], + index: 89, + }, + { + title: "Fernando Mezzasoma", + text: "Fernando Mezzasoma (August 3, 1907 \u2013 April 28, 1945) was an Italian fascist journalist and political figure.", + vector: [ + -0.01641802117228508, 0.06070755422115326, -0.025051983073353767, 0.02358151227235794, + 0.0010480484925210476, 0.007831274531781673, -0.03485962748527527, -0.00838438794016838, + -0.027237456291913986, 0.02827622927725315, -0.03990509733557701, 0.030893398448824883, + -0.038636986166238785, -0.021719813346862793, -0.010084198787808418, -0.0015471994411200285, + -0.10468680411577225, 0.00937594473361969, -0.04001302272081375, -0.041065286844968796, + 0.014300001785159111, -0.021760284900665283, -0.014907076954841614, -0.008465331047773361, + -0.02073500119149685, 0.026104247197508812, 0.00945014227181673, 0.012289906851947308, + 0.01281603891402483, 0.012330378405749798, 0.024040190503001213, 0.003919009584933519, + 0.008472076617181301, -0.009348963387310505, 0.012242689728736877, -0.03809736296534538, + 0.029814153909683228, 0.038556043058633804, 0.016957642510533333, 0.03523736074566841, + 0.020276322960853577, -0.007345614023506641, 0.031406041234731674, 0.009531085379421711, + -0.041065286844968796, -0.024768682196736336, -0.031298115849494934, -0.033375661820173264, + -0.027291417121887207, -0.0004222125862725079, 0.0425492487847805, -0.003949363715946674, + -0.04621868208050728, 0.03726094588637352, 0.002170294988900423, -0.04030981659889221, + 0.0382862314581871, 0.013787359930574894, -0.0465424582362175, 0.002617170102894306, + 0.0037335145752876997, -0.045652080327272415, -0.020586606115102768, -0.01626962423324585, + -0.019601793959736824, 0.02339264377951622, -0.007541227154433727, -0.019075661897659302, + 0.04451887309551239, -0.03664037957787514, -0.005025236401706934, 0.045571137219667435, + 0.056768305599689484, -0.020451700314879417, -0.011021793819963932, -0.013173539191484451, + 0.012559718452394009, -0.0047958968207240105, -0.08580000698566437, -0.01057660486549139, + 0.0022782194428145885, -0.043115854263305664, -0.02811434306204319, 0.03796245530247688, + 0.003418172476813197, 0.0030606724321842194, -0.04732491075992584, -0.04638057202100754, + -0.056768305599689484, 0.0006644104141741991, -0.024890096858143806, -0.011197171173989773, + -0.011075755581259727, 0.010414717718958855, 0.03755773976445198, -0.009989765472710133, + 0.028653964400291443, 0.009335472248494625, -0.01838764362037182, -0.03904170170426369, + -0.04138905927538872, -0.013544529676437378, -0.024161605164408684, -0.0033051890786737204, + 0.05541925132274628, 0.046407550573349, -0.01601330377161503, -0.019224058836698532, + 0.043223775923252106, 0.0685320794582367, 0.05088641867041588, -0.0330788716673851, + 0.004812759812921286, 0.017146511003375053, -0.010090944357216358, -0.026266135275363922, + -0.022205473855137825, 0.01670132204890251, -0.0382862314581871, -0.024957548826932907, + 0.05420510098338127, -0.047972455620765686, 0.054501891136169434, 0.043547552078962326, + 0.017106039449572563, 0.012323632836341858, -0.04055264592170715, 0.0006011733785271645, + -0.003032004926353693, -0.04055264592170715, 0.03564208000898361, 0.010097689926624298, + 0.04179377853870392, -0.03723396733403206, -0.02806038036942482, 0.024390945211052895, + -0.03437396511435509, 0.022353870794177055, 0.0027014859952032566, 0.028977738693356514, + 0.043034911155700684, 0.01397622749209404, -0.007588444277644157, -0.006954387295991182, + 0.024620285257697105, -0.02364896424114704, 0.015932360664010048, -0.0027621935587376356, + -0.013767124153673649, -0.026603398844599724, 0.03744981437921524, -0.038259249180555344, + 0.011966133490204811, -0.00941641628742218, 0.0044552600011229515, -0.045786984264850616, + -0.05892679840326309, 0.0003859566932078451, 0.029490379616618156, -0.04451887309551239, + -0.016863208264112473, 0.00401681661605835, 0.011075755581259727, 0.040714532136917114, + 0.008526038378477097, -0.033672455698251724, 0.015689529478549957, 0.013780614361166954, + 0.026616889983415604, 0.031513966619968414, -0.026576418429613113, -0.0040876418352127075, + 0.010421463288366795, 0.005972948856651783, 0.019777171313762665, -0.0020404483657330275, + -0.011547925882041454, -0.0025783847086131573, -0.045463211834430695, 0.013396133668720722, + 0.033699437975883484, 0.017497265711426735, 0.007325378246605396, -0.01286325603723526, + -0.04441094771027565, 0.06302793323993683, 0.031325098127126694, 0.01618868112564087, + -0.0010008314857259393, -0.05876491218805313, -0.02321726642549038, 0.04969925060868263, + 0.021800756454467773, 0.01872490718960762, -0.004978019278496504, 0.016795756295323372, + 0.03548019379377365, -0.03569604083895683, -0.014907076954841614, -0.06281208246946335, + 0.01505547296255827, 0.03345660865306854, 0.020073963329195976, 0.028842832893133163, + -0.010124670341610909, 0.03326774016022682, -0.002854941412806511, 0.017807548865675926, + -0.03440094739198685, 0.03005698323249817, 0.03467075899243355, -0.04457283392548561, + 0.06896378099918365, 0.025078965350985527, 0.004293372854590416, -0.009915567003190517, + -0.0020404483657330275, -0.011021793819963932, 0.034050192683935165, 0.04662340134382248, + -0.0053523825481534, -0.004863349720835686, -0.06551019847393036, -0.008944245986640453, + -0.012411321513354778, 0.008829575963318348, 0.032269436866045, 0.01420556753873825, + -0.0002618013240862638, 0.05328774079680443, -0.009861604310572147, 0.016917170956730843, + -0.03324075788259506, 0.04942943900823593, 0.0032866394612938166, 0.06351359188556671, + -0.031190192326903343, -0.061624910682439804, -0.05185773968696594, 0.04932151362299919, + -0.028600003570318222, 0.07754378020763397, -0.02362198382616043, 0.0068093640729784966, + 0.00027782138204202056, -0.008795849978923798, -0.05293698608875275, -0.03232339769601822, + -0.03936547413468361, -0.008674434386193752, 0.00032988653401844203, -0.04913264513015747, + -0.01655292697250843, 0.003713278565555811, 0.006276486441493034, -0.019197076559066772, + 0.01151419896632433, 0.0020370755810290575, -0.028896795585751534, 0.020181888714432716, + -0.007993160746991634, -0.010542877949774265, 0.02846509777009487, -0.013423114083707333, + -0.013611982576549053, 0.005760472267866135, -0.010266321711242199, 0.0024030073545873165, + -0.022583208978176117, -0.015500661917030811, -0.02316330373287201, -0.013699671253561974, + 0.04959132522344589, -0.007494010031223297, -0.02579396404325962, -0.01852254942059517, + -0.04198264703154564, 0.03256623074412346, -0.001146698254160583, -0.00233049551025033, + 0.030893398448824883, -0.018104340881109238, 0.007912217639386654, -0.019305001944303513, + -0.002693054499104619, 0.0211397185921669, -0.02768264338374138, -0.01838764362037182, + 0.02099132351577282, -0.01415160484611988, -0.0232037752866745, -0.015743492171168327, + -0.024175096303224564, -0.01875188946723938, 0.0006091834511607885, 0.00017643132014200091, + 0.0333486832678318, -0.017362359911203384, 0.008640708401799202, 0.029328493401408195, + 0.008984717540442944, 0.047972455620765686, 0.031406041234731674, -0.031864721328020096, + 0.029463399201631546, -0.024080662056803703, 0.02572651207447052, 0.03893377631902695, + 0.021625379100441933, 0.0031078895553946495, -0.019331982359290123, 0.01898122765123844, + -0.012586698867380619, -0.002467087469995022, -0.014731699600815773, -0.017969435080885887, + 0.01590537838637829, -0.04508547484874725, -0.006117972079664469, -0.006310212891548872, + -0.03021887131035328, -0.026239152997732162, -0.05806340277194977, -0.003517665434628725, + -0.028600003570318222, -0.03310585394501686, -0.0014536086237058043, -0.01844160631299019, + 0.018239246681332588, 0.02099132351577282, 0.036235664039850235, -0.024377455934882164, + 0.03947339951992035, -0.002736898837611079, 0.010515897534787655, 0.015527643263339996, + -0.02533528581261635, 0.08202265202999115, 0.0012343869311735034, -0.006667712703347206, + -0.010650803335011005, 0.05104830488562584, -0.04505849629640579, 0.006134835537523031, + 0.01415160484611988, 0.02364896424114704, 0.08849812299013138, 0.022421322762966156, + 0.03526434302330017, 0.014313491992652416, 0.00033094047103077173, 0.004465377889573574, + 0.0032208729535341263, 0.03960830718278885, -0.004563184455037117, 0.008580001071095467, + -0.01663387008011341, -0.038663964718580246, -0.009348963387310505, -0.014178586192429066, + -0.010367500595748425, 0.019952548667788506, 0.03904170170426369, 0.027035096660256386, + 0.009510849602520466, -0.008586745709180832, 0.007865000516176224, 0.01272835023701191, + -0.004155094735324383, 0.038798872381448746, 0.015864906832575798, 0.007811038289219141, + -0.004779033362865448, -0.026239152997732162, 0.0473518930375576, -0.057631704956293106, + 0.03286302089691162, 0.002971297362819314, -0.04260321334004402, 0.005797571502625942, + 0.008559765294194221, -0.012134765274822712, -0.01536575611680746, 0.017281416803598404, + -0.014596793800592422, -0.012930708937346935, -0.043088871985673904, -0.006772264838218689, + -0.019709719344973564, -0.012883491814136505, -0.014259529300034046, 0.017348868772387505, + 0.03790849447250366, -0.028653964400291443, -0.008640708401799202, 0.0015691216103732586, + 0.027089059352874756, 0.04969925060868263, -0.01610773801803589, 0.00020225311163812876, + 0.01635056734085083, -0.017092548310756683, 0.04408717527985573, 0.040741514414548874, + 0.03067754954099655, -0.009133114479482174, -0.029139624908566475, 0.009902076795697212, + -0.02302839793264866, 0.03024585172533989, -0.022826040163636208, -0.005743608810007572, + 0.02795245498418808, -0.0040640332736074924, -0.014556322246789932, -0.019871605560183525, + 0.026630379259586334, -0.004974646493792534, 0.01411113329231739, -0.043412644416093826, + 0.019547831267118454, 0.0036424531135708094, -0.006573278922587633, 0.000606653920840472, + 0.08277811855077744, 0.03731491044163704, -0.029274530708789825, -0.009564812295138836, + -0.0062967222183942795, -0.011898680590093136, 0.008681179955601692, -0.0028836086858063936, + -0.00209441059269011, 0.019210567697882652, 0.04816132411360741, -0.05844113603234291, + 0.01034726481884718, -0.01277556736022234, 0.010509151965379715, -0.00806735921651125, + 0.02364896424114704, -0.03245830535888672, 0.01536575611680746, 0.024283021688461304, + -0.1029600128531456, -0.003337229136377573, 0.01888679340481758, -0.03197264298796654, + -0.009160094894468784, 0.03793547675013542, -0.07317283749580383, -0.06351359188556671, + 0.014502359554171562, 0.018050378188490868, 0.06006000563502312, -0.047648683190345764, + 0.06124717369675636, 0.007689623162150383, -0.029058681800961494, 0.022758586332201958, + 0.014219057746231556, 0.04522038251161575, 0.02364896424114704, -0.017186982557177544, + 0.015703020617365837, -0.02590188942849636, 0.03674830496311188, 0.015864906832575798, + -0.029490379616618156, 0.024768682196736336, -0.009470378048717976, 0.05833321437239647, + 0.020168397575616837, -0.012438302859663963, 0.04629962518811226, 0.03526434302330017, + -0.02598283253610134, 0.035965852439403534, -0.001569964806549251, 0.0039932080544531345, + -0.02351405844092369, -0.006580024026334286, 0.017969435080885887, 0.036127738654613495, + 0.009517595171928406, -0.04961830750107765, -0.020289814099669456, 0.009800896979868412, + -0.054744720458984375, 0.019574813544750214, 0.038421135395765305, 0.04411415383219719, + -0.027372360229492188, 0.004195566289126873, -0.03518339991569519, 0.06032981723546982, + 0.022097548469901085, 0.005558113567531109, -0.025038493797183037, 0.005753727164119482, + 0.01859000138938427, 0.035938870161771774, 0.047783590853214264, -0.02309585176408291, + 0.022272925823926926, 0.0021399413235485554, 0.036019813269376755, -0.003320365911349654, + -0.021733304485678673, 0.00936919916421175, 0.028438115492463112, 0.03931151330471039, + 0.02833019196987152, 0.0026660733856260777, -0.029409436509013176, -0.03591189160943031, + -0.006225896999239922, -0.008822831325232983, 0.01840113289654255, 0.02564556896686554, + 8.278781751869246e-5, -0.015217360109090805, 0.038421135395765305, 0.0022057078313082457, + 0.04209056869149208, -0.031621888279914856, -0.05158792808651924, -0.0063237035647034645, + -0.036100756376981735, -0.008411368355154991, -0.02541622892022133, 0.017308397218585014, + -0.010913869366049767, 0.029841134324669838, -0.016849718987941742, 0.012411321513354778, + -0.03558811545372009, 0.014057171531021595, 0.01513641607016325, -0.029868116602301598, + 0.015878397971391678, 0.011844717897474766, -0.01633707620203495, -0.034023210406303406, + -0.006934151519089937, 0.022542737424373627, -0.009618774056434631, -0.03243132308125496, + 0.027453305199742317, -0.036397550255060196, 0.02770962566137314, 0.0026003068778663874, + -0.003215814009308815, 0.010198868811130524, 0.010178633034229279, -0.012330378405749798, + -0.026198681443929672, 0.052316419780254364, -0.016957642510533333, 0.014003208838403225, + 0.024067172780632973, -0.014569812454283237, 0.013746888376772404, 0.0018060497241094708, + -0.011541180312633514, 0.03073151223361492, -0.041065286844968796, -0.020424718037247658, + -0.02368943579494953, -0.049834154546260834, 0.04176679626107216, 0.01599981263279915, + 0.006677830591797829, -0.019966039806604385, -0.0305426437407732, 0.022812549024820328, + 0.04646151512861252, 0.012161746621131897, 0.01187844481319189, -0.03073151223361492, + 0.009436652064323425, -0.059412457048892975, 0.002231002552434802, 0.04360151290893555, + 0.02091037854552269, -0.0010615390492603183, -0.014124623499810696, 0.007844764739274979, + 0.004836368374526501, 0.027156511321663857, 0.035750001668930054, -0.008141557686030865, + 0.024458399042487144, 0.02331170067191124, 0.027520757168531418, 0.05693019554018974, + -0.006576651707291603, -0.020519152283668518, 0.005436698440462351, 0.007925707846879959, + 0.00027697821496985853, 0.029058681800961494, -0.005949340295046568, -0.03531830385327339, + 0.036262646317481995, -0.02364896424114704, -0.012532737106084824, -0.009045425802469254, + -0.014434906654059887, -0.018117832019925117, 0.0301379282027483, -0.027264436706900597, + -0.01398971863090992, 0.03197264298796654, 0.0376117005944252, -0.01039448194205761, + 0.0019342100713402033, -0.0042090569622814655, 0.018306700512766838, 0.007345614023506641, + -0.006239387206733227, 0.004293372854590416, 0.019871605560183525, 0.016687830910086632, + -0.009335472248494625, 0.019264530390501022, 0.01639103889465332, 0.03696415573358536, + -0.01625613309442997, 0.019777171313762665, -0.030003022402524948, 0.028950758278369904, + -0.014515850692987442, -0.012397831305861473, 0.03221547603607178, 0.0037436324637383223, + 0.01834717206656933, -0.03699113428592682, 0.004910566378384829, -0.047756608575582504, + 0.0032259318977594376, -0.026279624551534653, 0.001765577937476337, -0.052424345165491104, + -0.019480379298329353, 0.013079104945063591, 0.006647476926445961, -0.028384152799844742, + -0.033969249576330185, 0.03248528763651848, -0.0006547140656039119, -0.04678528755903244, + 0.012357359752058983, 0.007190472446382046, 0.031028304249048233, -0.010219104588031769, + -0.02092386968433857, 0.024175096303224564, 0.01040122751146555, 0.015622076578438282, + 0.014893586747348309, -0.027547737583518028, 0.012020095251500607, 0.041065286844968796, + -0.022906983271241188, 0.029625285416841507, -0.019750190898776054, 0.006256250664591789, + -0.017470285296440125, -0.022920474410057068, 0.050130948424339294, -0.024323493242263794, + -0.0070285857655107975, -0.0006568219978362322, -0.03329471871256828, -0.024768682196736336, + 0.01639103889465332, -0.0332137756049633, -0.009301746264100075, 0.02360849268734455, + 0.052856042981147766, 0.027439814060926437, 0.011224151588976383, 0.012647407129406929, + -0.03952736034989357, 0.006067382637411356, -0.01837415248155594, 0.0369371734559536, + 0.03299792855978012, -0.0011416393099352717, 0.0030994578264653683, -0.004610401578247547, + 0.017294907942414284, 0.031163210049271584, 0.02768264338374138, -0.0028701182454824448, + -0.004822877701371908, -0.061948686838150024, -0.0015902005834504962, 0.006016793195158243, + 0.014421416446566582, 0.019642265513539314, -0.014839624054729939, 0.01653943583369255, + 0.003456957871094346, -0.005241085309535265, 0.005433326121419668, -0.0005438384832814336, + -0.02819528616964817, -0.043061889708042145, 0.0027621935587376356, -0.014407926239073277, + 0.019561322405934334, -0.009922312572598457, -0.017875000834465027, -0.04039075970649719, + -0.009335472248494625, -0.0127688217908144, -0.021908681839704514, 0.015810944139957428, + 0.029706228524446487, 0.03906868398189545, -0.00922754779458046, -0.008175283670425415, + -0.06394528597593307, 0.026859719306230545, 0.006799245718866587, -0.01639103889465332, + 0.012330378405749798, 0.01397622749209404, 0.006134835537523031, 0.02565905824303627, + 0.005517642013728619, 0.008930755779147148, -0.002433361019939184, 0.015176888555288315, + -0.01049566175788641, -0.05191170424222946, -0.004225920420140028, -0.016876699402928352, + 0.007966180332005024, 0.015082454308867455, 0.006816109176725149, -0.03995906189084053, + -0.03048868291079998, 0.006667712703347206, 0.0014325296506285667, 0.004239410627633333, + 0.024512359872460365, 0.02797943726181984, 0.007352359127253294, -0.019912077113986015, + -0.027250945568084717, 0.008984717540442944, -0.017888491973280907, -0.03008396551012993, + 0.015568114817142487, -0.061948686838150024, -0.01670132204890251, 0.03283604234457016, + -0.001235230010934174, -0.014043680392205715, -0.014569812454283237, 0.05191170424222946, + -0.03262019157409668, 0.015433209016919136, -0.010886888019740582, -0.057361893355846405, + -0.015703020617365837, -0.0006188797997310758, -0.002495754975825548, -0.023864813148975372, + 0.0284111350774765, 0.010016745887696743, 0.0024417927488684654, -0.024363964796066284, + 0.029517361894249916, -0.011332076974213123, -0.009011698886752129, 0.027520757168531418, + -0.06313585489988327, 0.008789104409515858, -0.048215288668870926, 0.01393575593829155, + -0.033888306468725204, -0.02795245498418808, -0.013247736729681492, -0.017443303018808365, + -0.009618774056434631, -0.005726745817810297, -0.02132858708500862, 0.02131509594619274, + -0.007986416108906269, -0.031756795942783356, -0.01903519034385681, -0.026171701028943062, + 0.004974646493792534, 0.008256226778030396, -0.020087454468011856, -0.027439814060926437, + -0.04978019371628761, -0.030812455341219902, 0.04004000499844551, 0.06113925203680992, + 0.031271133571863174, 0.0017419694922864437, -0.03494057059288025, 0.0029409436974674463, + -0.041146229952573776, -0.023972738534212112, -0.00824273657053709, 0.03588490933179855, + -0.007676132954657078, 0.036343589425086975, -0.010880142450332642, 0.033780381083488464, + -0.025159908458590508, -0.02797943726181984, -0.02542972005903721, 0.015595096163451672, + 0.011662594974040985, 0.011332076974213123, -0.02569952979683876, 0.033591512590646744, + 0.015851415693759918, 0.022259436547756195, 0.008748632855713367, -0.02074849233031273, + -0.004961156286299229, -0.016957642510533333, 0.017375851050019264, -0.014812642708420753, + -0.0326741524040699, -0.03245830535888672, -0.011669340543448925, 0.03952736034989357, + 0.04926755279302597, -0.0036424531135708094, 0.022475285455584526, 0.033996228128671646, + -0.006849835626780987, -0.013335425406694412, -0.04888981580734253, 0.0003737308725249022, + -0.00699485931545496, 0.03701811656355858, -0.020168397575616837, -0.05380038172006607, + -0.022745097056031227, -0.06059962883591652, 0.024377455934882164, 0.009166840463876724, + 0.0130386333912611, -0.008053869009017944, 0.020438209176063538, -0.003895401256158948, + -0.008755378425121307, 0.001345684053376317, 0.03914962708950043, 0.019426416605710983, + -0.0019325237954035401, 0.004610401578247547, -0.026117738336324692, -0.030974343419075012, + 0.011325331404805183, -0.04357453063130379, -0.02337915264070034, -0.033699437975883484, + -0.020546134561300278, -0.05072453245520592, -0.009585048072040081, -0.017173491418361664, + 0.015082454308867455, -0.01590537838637829, -0.02335217222571373, 0.011952642351388931, + -0.024512359872460365, -0.000516435771714896, 0.03709905967116356, 0.013504058122634888, + 0.03534528613090515, 0.05908868461847305, 0.003571627661585808, -0.022272925823926926, + 0.01875188946723938, 0.020532643422484398, -0.001698968349955976, 0.02370292693376541, + -0.029571322724223137, 0.01635056734085083, -0.014610284008085728, 0.008775614202022552, + -0.007736840285360813, -0.03429302200675011, 0.004171957727521658, 0.0009628892294131219, + 0.01657990738749504, 0.0029190215282142162, -0.06448490917682648, -0.04033679515123367, + -0.01403019018471241, -0.014812642708420753, 0.049834154546260834, 0.0014611970400437713, + 0.033645473420619965, 0.0027605073992162943, 0.027358870953321457, -0.017524246126413345, + 0.010124670341610909, -0.03583094850182533, 0.01066429354250431, -0.033834341913461685, + -0.0010354010155424476, 0.010772217996418476, -0.06318981945514679, 0.033753398805856705, + -0.026333587244153023, -0.0027976064011454582, 0.027291417121887207, -0.017686134204268456, + 0.03029981441795826, -0.027534248307347298, 0.026832738891243935, 0.004381061531603336, + -0.012148255482316017, -0.020195379853248596, 0.00023566334857605398, 0.04381736367940903, + 0.019507359713315964, -0.0070960381999611855, -0.0063000950030982494, -0.003693042788654566, + 0.014192076399922371, -0.0027402713894844055, -0.026266135275363922, -0.021760284900665283, + -0.021436510607600212, 0.0036053541116416454, -0.007386085577309132, -0.006738538388162851, + 0.022731605917215347, 0.03065056912600994, 0.03008396551012993, 0.019669247791171074, + -0.00812132190912962, -0.031621888279914856, -0.031567927449941635, -0.036046795547008514, + -0.022165002301335335, 0.051614910364151, -0.005338891874998808, -0.022664153948426247, + -0.012269671075046062, -0.01040122751146555, 0.013962737284600735, 0.017227454110980034, + -0.012134765274822712, 0.006158444099128246, 0.0425492487847805, 0.00040071201510727406, + -0.009983019903302193, 0.017794057726860046, -0.021935662254691124, -0.0015733373584225774, + -0.04408717527985573, -0.01614820957183838, 0.004505849443376064, -0.015176888555288315, + 0.01505547296255827, 0.031190192326903343, -0.06043774262070656, 0.033753398805856705, + 0.022596700116991997, -0.014839624054729939, -0.010934105142951012, -0.00470483535900712, + 0.024094153195619583, 0.0321345329284668, -0.014907076954841614, 0.009483869187533855, + -0.016903681680560112, 0.024620285257697105, 0.007406321354210377, 0.01633707620203495, + -0.0008486409788019955, 0.015716511756181717, -0.024687739089131355, -0.012114529497921467, + 0.033807363361120224, 0.013308444991707802, -0.006397901568561792, 0.031513966619968414, + 0.01519037876278162, -0.00955132208764553, 0.017483774572610855, 0.007858255878090858, + 0.026954153552651405, -0.0011163444723933935, -0.014124623499810696, 0.008593491278588772, + -0.015203868970274925, -0.02587490901350975, -0.029517361894249916, -0.02833019196987152, + -0.043196797370910645, -0.0007402948685921729, 0.007264670450240374, -0.0032175004016608, + 0.006856580730527639, 0.03038075752556324, 0.001789186499081552, 0.011298350058495998, + 0.02571302093565464, 0.01864396408200264, 0.020519152283668518, -0.03968925029039383, + 0.014947548508644104, 0.03046170063316822, -0.0013684494188055396, 0.04424906149506569, + 0.0028094106819480658, -0.011122972704470158, -0.0026036794297397137, 0.019426416605710983, + -0.015851415693759918, 0.0330788716673851, -0.02822226658463478, -0.006074127741158009, + -0.012101039290428162, -0.006627241149544716, 0.019251039251685143, 0.022326888516545296, + 0.006016793195158243, 0.02368943579494953, -0.05860302597284317, 0.022650662809610367, + -0.00465761823579669, 0.014880095608532429, -0.007851510308682919, -0.0118379732593894, + -0.01036075595766306, -0.02534877508878708, -0.00838438794016838, -0.009052170440554619, + 0.0080336332321167, -0.045544154942035675, -0.0037065334618091583, -0.018212266266345978, + 0.022853020578622818, -0.031729813665151596, 0.0007141568930819631, 0.02111273817718029, + -0.015810944139957428, -0.009780661202967167, 0.010131415911018848, 0.011399528943002224, + -0.03688321262598038, -0.033915285021066666, -0.02575349248945713, 0.01643151044845581, + 0.029355473816394806, -0.029949059709906578, -0.015257831662893295, -0.01892726682126522, + 0.01608075574040413, 0.029706228524446487, 0.03310585394501686, 0.033780381083488464, + 0.04022887349128723, -0.011851463466882706, -0.008795849978923798, -0.0020185261964797974, + -0.050346795469522476, 0.014583303593099117, 0.019224058836698532, 0.0017352242721244693, + -0.0010075767058879137, -0.029004719108343124, 0.012350614182651043, -0.029031701385974884, + 0.07792151719331741, -0.012836274690926075, -0.03048868291079998, -0.001827971893362701, + -0.004354080650955439, 0.0370720773935318, -0.013713161461055279, -0.0030286323744803667, + -0.03502151370048523, -0.006357430014759302, -0.005561486352235079, 0.02541622892022133, + 0.010765472427010536, -0.005625566467642784, -0.0029628658667206764, -0.00174871482886374, + 0.008944245986640453, -0.05218151584267616, 0.000813649850897491, 0.027277927845716476, + -0.0018347171135246754, -0.03208056837320328, 0.004205684177577496, -0.033699437975883484, + 0.03065056912600994, -0.0066879489459097385, -0.0032815805170685053, -0.0008962795836851001, + -0.031406041234731674, 0.02827622927725315, -0.02352754957973957, -0.002190530765801668, + 0.0067823827266693115, 0.023905284702777863, -0.0047925240360200405, 0.011891935020685196, + -0.004397924989461899, 0.0005750354030169547, -0.01636405847966671, 0.003229304449632764, + -0.03947339951992035, -0.006279859226197004, -0.02795245498418808, -0.014259529300034046, + -0.017942454665899277, -0.0016525945393368602, -0.0025395993143320084, 0.011055519804358482, + -0.008856557309627533, -0.0035817455500364304, -0.028977738693356514, -0.02364896424114704, + -0.005564859136939049, 0.006546297576278448, 0.056768305599689484, 0.0007440890767611563, + 0.0065395524725317955, -0.03445490822196007, -0.008182029239833355, -0.00828995369374752, + -0.040930382907390594, -0.019075661897659302, 0.002920707920566201, 0.04265717417001724, + -0.017294907942414284, 0.029247550293803215, 0.002514304593205452, 0.029841134324669838, + -0.00037562797660939395, -0.003922382369637489, 0.005288302432745695, -0.040741514414548874, + 0.0026660733856260777, -0.011237642727792263, 0.014758680947124958, -0.017834529280662537, + -0.011035284027457237, -0.005514269229024649, 0.0071500008925795555, -0.03817830607295036, + 0.036370567977428436, 0.0017504011048004031, -0.022326888516545296, -0.005301793105900288, + -0.01295094471424818, -0.014583303593099117, 0.00928151048719883, -0.033915285021066666, + -0.011176935397088528, 0.001419039093889296, 0.020411228761076927, -0.019183587282896042, + -0.010590095072984695, -0.01398971863090992, -0.006192170549184084, 0.0006787441670894623, + -0.007757076062262058, -0.0033911913633346558, 0.0034434671979397535, -0.04678528755903244, + 0.0020758609753102064, -0.01680924743413925, 0.001505884574726224, 0.01633707620203495, + 0.03059660643339157, -0.0030387502629309893, -0.0324043408036232, 0.03318679705262184, + 0.023837832733988762, 0.007440047804266214, 0.012647407129406929, 0.029895097017288208, + -0.03491358831524849, -0.007129764650017023, -0.005773962941020727, -0.006792500615119934, + -0.0010219104588031769, -0.027116039767861366, -0.04217151179909706, -0.015487171709537506, + -0.010853161104023457, -0.02537575736641884, 0.03742283210158348, 0.004984764847904444, + -0.011338821612298489, 0.0037706135772168636, -0.03275509923696518, -0.0007837176672182977, + 0.013429859653115273, -0.031190192326903343, -0.022057076916098595, -0.024107644334435463, + 0.02348707802593708, 0.010596840642392635, -0.010805943980813026, -0.040984343737363815, + 0.0210722666233778, 0.020073963329195976, -0.0052781845442950726, 0.02613122947514057, + 0.0026812502183020115, -0.0006972937262617052, 0.0003996580489911139, -0.052532270550727844, + -0.005787453148514032, 0.01411113329231739, -0.0284111350774765, 0.0007048821425996721, + -0.006222524214535952, 0.015932360664010048, -0.03771962597966194, -0.020492171868681908, + -0.014246039092540741, 0.007986416108906269, -0.00802014209330082, -0.00764240650460124, + -0.007757076062262058, -0.007662642281502485, -0.01896773837506771, 0.019979530945420265, + -0.04894377663731575, 0.005335519555956125, -0.0017385968239977956, 0.0056221941486001015, + -0.02100481279194355, 0.0003676179621834308, 0.04149698466062546, 0.002133195986971259, + 0.017106039449572563, -0.017510756850242615, -0.022704625502228737, 0.03191868215799332, + -0.031406041234731674, 0.010644057765603065, 0.020100945606827736, 0.010367500595748425, + 0.02092386968433857, 0.026117738336324692, 0.018158303573727608, 0.04263019189238548, + -0.06275811791419983, 0.021679341793060303, 0.005230967421084642, -0.007156745996326208, + -0.03051566332578659, 0.012249435298144817, -0.014839624054729939, -0.01636405847966671, + 0.004357453435659409, 0.04168585315346718, -4.945663022226654e-5, 0.03742283210158348, + -0.04238736256957054, 0.041038304567337036, -0.0037099060136824846, 0.02073500119149685, + 0.0013625472784042358, -0.0025682668201625347, 0.05612076073884964, -0.017133019864559174, + -0.020006511360406876, -0.02827622927725315, -0.0058683967217803, 0.04662340134382248, + 0.006209033541381359, 0.0068801892921328545, -0.011062265373766422, -0.028815852478146553, + -0.006512571591883898, 0.0009561439510434866, -0.009160094894468784, 0.009295000694692135, + 0.0009451828664168715, 0.009517595171928406, -0.009861604310572147, -0.004077523946762085, + -0.009780661202967167, -0.01895424723625183, -0.0037099060136824846, -0.007568208035081625, + 0.01844160631299019, 0.0004768072394654155, 0.006725047715008259, 0.005750354379415512, + 0.029571322724223137, 0.004492358770221472, -0.02128811553120613, -0.009052170440554619, + 0.025119436904788017, 0.06518641859292984, -0.013214010745286942, -0.009787406772375107, + -0.004232665523886681, -0.01181773655116558, 0.027143022045493126, -0.043115854263305664, + -0.027008116245269775, -0.022461794316768646, 0.004215802066028118, 0.010590095072984695, + 0.03769264370203018, -0.020438209176063538, 0.01863047294318676, 0.04611076042056084, + 0.031082266941666603, -0.0025615214835852385, -0.04673132672905922, 0.008863302879035473, + -0.009821132756769657, -0.036127738654613495, 0.021881699562072754, -0.006023538298904896, + -0.022340379655361176, -0.02065405808389187, 0.006836344953626394, -0.04648849368095398, + 0.027304908260703087, -0.014542831107974052, -0.005284929648041725, 0.005649175029247999, + 0.04891679808497429, -0.013827831484377384, -4.782300675287843e-5, 0.007939198985695839, + -0.003952736034989357, 0.0037706135772168636, -0.008350661024451256, 0.024809153750538826, + 0.003895401256158948, -0.0038245758041739464, -0.048296231776475906, -0.017942454665899277, + -0.0184685867279768, -0.0016129659488797188, -0.006239387206733227, -0.014731699600815773, + -0.02061358653008938, 0.020262831822037697, 0.019669247791171074, 0.02569952979683876, + 0.02302839793264866, 0.00526469387114048, -0.011237642727792263, -0.007500755600631237, + 0.010252831503748894, -0.007325378246605396, 0.03326774016022682, -0.0465424582362175, + -0.0032664036843925714, 0.004866722039878368, -0.01531179342418909, 0.012532737106084824, + -0.014664246700704098, -0.005092689301818609, -0.008128066547214985, 0.0302728321403265, + 0.004195566289126873, -0.010853161104023457, 0.0008570725913159549, -0.037476796656847, + 0.012316888198256493, 0.017551228404045105, 0.010785708203911781, 0.031325098127126694, + 0.0058346702717244625, -0.009719953872263432, 0.005898750387132168, 0.015756983309984207, + -0.036289624869823456, 0.0094029251486063, 0.013308444991707802, -0.012087548151612282, + 0.012141510844230652, -0.04856604337692261, -0.024660756811499596, 0.029247550293803215, + -0.004927429836243391, -0.015581605024635792, -0.003881910815834999, 0.0032647172920405865, + -0.006613750476390123, -0.01621566154062748, 0.003053927095606923, 0.007898727431893349, + -0.021989624947309494, 0.045840948820114136, -0.00526469387114048, -0.01617518998682499, + -0.019696228206157684, 0.008404623717069626, 0.012377595528960228, -0.02142302133142948, + 0.012438302859663963, -0.008526038378477097, 0.006067382637411356, 0.005854906048625708, + -0.004937547724694014, 0.006117972079664469, -0.008431604132056236, 0.02564556896686554, + 0.0017841275548562407, -0.02811434306204319, 0.018158303573727608, -0.006097736302763224, + -0.015028491616249084, 0.027277927845716476, 0.008667689748108387, -0.03483264520764351, + 0.016984624788165092, -0.0006530277896672487, 0.017659151926636696, 0.011709812097251415, + 0.019426416605710983, -0.05412415415048599, 0.006010047625750303, -0.07937850058078766, + -0.015487171709537506, 0.00634056655690074, -0.011945897713303566, -0.01639103889465332, + -0.01160188764333725, -0.01598632149398327, 0.0010337147396057844, -0.000995772541500628, + -0.005025236401706934, 0.012802548706531525, -0.025173397734761238, -0.006451863795518875, + -0.029112644493579865, -0.003723396686837077, -0.03251226618885994, -0.01397622749209404, + -0.013065614737570286, 0.003473821096122265, -0.002649210160598159, 0.05444793030619621, + -0.0040640332736074924, 4.458210969460197e-5, 0.013497312553226948, -0.009166840463876724, + 0.0011753656435757875, -0.022515757009387016, -0.005929104518145323, -0.0281413234770298, + 0.008269717916846275, 0.03726094588637352, -0.036478493362665176, 0.03224245458841324, + 0.02360849268734455, 0.012364105321466923, -0.0052512031979858875, -0.013106086291372776, + -0.002209080383181572, 0.010468680411577225, 0.012391085736453533, 0.036262646317481995, + -0.020073963329195976, -0.01401669904589653, -0.0048195053823292255, -0.022745097056031227, + 0.031433023512363434, 0.006374293006956577, -0.00814830232411623, -0.0030994578264653683, + -0.004205684177577496, 0.013908774591982365, -0.010954340919852257, -0.017915474250912666, + 0.019291510805487633, 0.003355778520926833, 0.007433302700519562, 0.012087548151612282, + -0.006883562076836824, -0.027250945568084717, -0.004829623270779848, -0.007069057319313288, + 0.036154720932245255, -0.02808736078441143, 0.0016981251537799835, 0.010698019526898861, + 0.012424812652170658, -0.010138161480426788, -0.0016694576479494572, 0.025038493797183037, + 0.010967831127345562, -0.017348868772387505, -0.02100481279194355, -0.008613727055490017, + -0.021530944854021072, 0.003155106445774436, 0.014893586747348309, 0.018266228958964348, + 0.028492078185081482, -0.003723396686837077, 0.03229641914367676, 0.007446793373674154, + -0.007210708223283291, 0.0016804187325760722, 0.029571322724223137, 0.027615191414952278, + 0.017713114619255066, 0.021517455577850342, 0.010455189272761345, 0.022340379655361176, + -0.01863047294318676, 0.019305001944303513, -0.02822226658463478, -0.0017158315749838948, + -0.013659199699759483, 0.00955132208764553, 0.004603656008839607, 0.03008396551012993, + -0.0040640332736074924, 0.019588302820920944, 0.024310002103447914, -0.02122066169977188, + ], + index: 90, + }, + { + title: "Fuzhou", + text: "Fuzhou (Chinese: \u798f\u5dde; formerly Foochow) is the capital and one of the largest cities in Fujian province, People's Republic of China. Along with the many counties of Ningde, those of Fuzhou are considered to constitute the Mindong (lit. East of Fujian) linguistic and cultural area.Fuzhou's core counties lie on the north (left) bank of the estuary of Fujian's largest river, the Min River. All along its northern border lies Ningde, and Ningde's Gutian County lies upriver.", + vector: [ + 0.00944509543478489, 0.09612657874822617, -0.013512429781258106, -0.010648109018802643, + 0.0045900726690888405, -0.0046974848955869675, -0.0004128648724872619, -0.027382899075746536, + -0.04923766106367111, -0.042993441224098206, -0.011507405899465084, 0.01715727709233761, + -0.05562509223818779, 0.023129383102059364, 0.007121415343135595, 0.008012935519218445, + -0.022341696545481682, 0.03892610967159271, -0.025592699646949768, -0.005023301113396883, + -0.006716830190271139, 0.026595210656523705, 0.0036537982523441315, -0.013727253302931786, + 0.0062298960983753204, 0.04127484932541847, -0.010841450653970242, -0.02318667061626911, + -0.016340944916009903, 0.024203503504395485, 0.04943816363811493, -0.012087429873645306, + 0.009974994696676731, -0.029130134731531143, -0.02211255021393299, 0.031650736927986145, + 0.03929847106337547, -0.004264256451278925, 0.018847225233912468, 0.044769320636987686, + 0.013712931424379349, -0.013548233546316624, 0.049409519881010056, 0.028328124433755875, + 0.003200877457857132, -0.04330851882696152, 0.0011331966379657388, -0.03480148687958717, + -0.014414690434932709, -0.01488014217466116, 0.03497334569692612, -0.030562294647097588, + -0.01405664999037981, 0.04176178574562073, -0.018116824328899384, 0.03434319794178009, + 0.008285045623779297, 0.08329442143440247, -0.03786630928516388, 0.006172609515488148, + 0.017415065318346024, -0.039241183549165726, 0.0003311870095785707, 0.023415815085172653, + -0.019577626138925552, 0.035488925874233246, -0.013082781806588173, -0.01775878295302391, + 0.006734732538461685, -0.02132486179471016, 0.0019978631753474474, 0.06324418634176254, + 0.03199445456266403, 0.011915571056306362, -0.0011681055184453726, -0.007354141678661108, + -0.006025813054293394, -0.025621341541409492, -0.0234731025993824, -0.024103252217173576, + 0.049409519881010056, 0.02206958457827568, -0.033254753798246384, -0.006462621968239546, + -0.006444720085710287, -0.030562294647097588, -0.04794871434569359, -0.03050500713288784, + -0.07292558252811432, -0.009717205539345741, -0.018546471372246742, 0.007447232026606798, + -0.011908410117030144, 0.02464747242629528, 0.016083156690001488, 0.0024758465588092804, + 0.03637686371803284, 0.0040816557593643665, -0.019362803548574448, 0.029874857515096664, + 0.00020911773026455194, 0.03374169021844864, 0.023072097450494766, 0.04316530004143715, + 0.04199093207716942, 0.04193364456295967, -0.021253254264593124, -0.03995726257562637, + 0.026466315612196922, 0.0257215928286314, 0.04138942435383797, 0.05917685106396675, + 0.0450843945145607, 0.0411316342651844, 0.000989085528999567, 0.04972459375858307, + 0.01629798114299774, -0.017500994727015495, -0.017271850258111954, 0.003480148734524846, + 0.004826379008591175, 0.03772309422492981, 0.03354118764400482, -0.014300117269158363, + -0.0077694677747786045, 0.022313052788376808, 0.03236681595444679, -0.020938178524374962, + 0.01709998957812786, 0.00046724220737814903, -0.012832153588533401, 0.011077756993472576, + 0.03219495713710785, 0.006519908085465431, -0.027526114135980606, -0.013462304137647152, + 0.0234731025993824, 0.003517742967233062, -0.027984406799077988, 0.01874697394669056, + 0.001644298667088151, 0.047060776501894, -0.06049443781375885, 0.0009568618843331933, + 0.017443709075450897, -0.04156128317117691, 0.042563796043395996, 0.030590936541557312, + 0.038496460765600204, -0.020121848210692406, -0.010877255350351334, -0.038639675825834274, + 0.05556780844926834, -0.007275372743606567, 0.021725866943597794, -0.011557530611753464, + -0.004471919499337673, 0.0020694711711257696, 0.023072097450494766, -0.06324418634176254, + 0.015080644749104977, -0.017300492152571678, 0.029588425531983376, -0.015152252279222012, + -0.024404006078839302, -0.04731856659054756, 0.011407154612243176, -0.0286288782954216, + 0.007662056013941765, 0.020923856645822525, 0.04075927287340164, 0.0170570258051157, + -0.011500244960188866, -0.037092942744493484, -0.028514305129647255, -0.005087748169898987, + 0.027096467092633247, 0.04293615743517876, 0.02501983568072319, 0.03448641300201416, + 0.00955966766923666, -0.044540174305438995, 0.041160278022289276, -0.020279385149478912, + -0.049037158489227295, -0.0052810898050665855, -0.024203503504395485, -0.013627002015709877, + 0.037322089076042175, -0.0037379376590251923, -0.016054512932896614, 0.007221666630357504, + 0.044167812913656235, -0.04803464561700821, 0.05688539519906044, -0.010547858662903309, + -0.017314814031124115, 0.04780549928545952, 0.03749394789338112, -0.009531024843454361, + -0.02169722318649292, -0.0055854241363704205, -0.02815626561641693, 0.011872606351971626, + -0.006691767368465662, 0.00880778394639492, -0.013004012405872345, 0.007099932990968227, + -0.03866831958293915, -0.013641323894262314, 0.039899978786706924, -0.03792359679937363, + 0.010884416289627552, 0.04588640481233597, -0.008199116215109825, 0.0029538299422711134, + 0.002805243246257305, -0.011779516004025936, 0.02534923143684864, -0.015166574157774448, + 0.009774492122232914, 0.017357779666781425, -0.023014811798930168, 0.00486218323931098, + -0.05104218050837517, 0.04316530004143715, -0.04333716258406639, 0.04050148278474808, + -0.019506018608808517, 0.016899487003684044, -0.003974243998527527, 0.009731527417898178, + -0.044253744184970856, 0.036290932446718216, -0.013784539885818958, -0.005227384157478809, + -0.024905262514948845, -0.00034103309735655785, 0.004704645369201899, 0.053963787853717804, + -0.0157967247068882, 0.03259596228599548, -0.001917304121889174, 0.02877209335565567, + 0.022799987345933914, -0.019563306123018265, 0.006544970907270908, -0.003603672608733177, + 0.005968526937067509, -0.028557270765304565, -0.017458030954003334, -0.018431898206472397, + 0.02947385236620903, 0.039155252277851105, -0.026681140065193176, 0.018589437007904053, + -0.0021016946993768215, -0.02291456051170826, 0.008650246076285839, -0.026738427579402924, + -0.022313052788376808, -0.01687084510922432, 0.03359847143292427, -0.002721104072406888, + -0.0046581001952290535, 0.011213812977075577, -0.037092942744493484, 0.03102058544754982, + -0.022613806650042534, 0.013734414242208004, 0.022141193971037865, 0.008478387258946896, + 0.016283659264445305, -0.011636300012469292, -0.04989645257592201, -0.013190193101763725, + -0.0026315939612686634, 0.020866570994257927, 0.032825104892253876, 0.0017848294228315353, + 0.02000727504491806, 0.06158287823200226, -0.006351629737764597, -0.028170587494969368, + -0.046888917684555054, -0.004908728413283825, -0.016412552446126938, 0.035775355994701385, + -1.8167733287555166e-5, -0.028013048693537712, 0.002092743758112192, -0.04897987097501755, + -0.005288250744342804, -0.021195968613028526, -0.012223485857248306, 0.005950624588876963, + 0.014751248061656952, 0.02005023881793022, -0.005016140174120665, 0.0011645250488072634, + -0.0404728427529335, -0.012259289622306824, 0.010075245052576065, 0.006641641724854708, + 0.050440672785043716, 0.03182259574532509, -0.019949989393353462, -0.005556780844926834, + -0.06484820693731308, -0.04686027392745018, 0.040415555238723755, -0.004504143260419369, + -0.05258891358971596, 0.00504836393520236, -0.023029131814837456, -0.013784539885818958, + -0.01276770606637001, -0.03904068097472191, -0.021912047639489174, -0.026366064324975014, + -0.04370952397584915, -0.02174018882215023, -0.030476365238428116, -0.01565350778400898, + 0.005793087184429169, 0.008220598101615906, -0.022098228335380554, 0.02060878276824951, + 0.035632140934467316, 0.04840700700879097, -0.03929847106337547, -0.03631957620382309, + -0.01785903424024582, -0.014565067365765572, -0.0419050008058548, 0.0037522590719163418, + 0.009616954252123833, 0.019004762172698975, -0.008664567954838276, 0.07498789578676224, + -0.005972106941044331, 0.014249991625547409, 0.03251003101468086, 0.020723354071378708, + 0.025707270950078964, 0.029674354940652847, 0.03594721481204033, -0.023859785869717598, + 0.015195216983556747, -0.05797383561730385, 0.0006731151952408254, -0.05763011798262596, + 0.001617445726878941, 0.002286085393279791, 0.015152252279222012, 0.008170472458004951, + -0.0329110361635685, -0.018618078902363777, -0.004786994773894548, 0.02202662080526352, + -0.04325123131275177, 0.01213755551725626, -0.036290932446718216, 0.01972084306180477, + 0.024618830531835556, 0.004661680664867163, -0.019949989393353462, 0.016856523230671883, + 0.008764819242060184, 0.02145375683903694, 0.020837927237153053, 0.0694311186671257, + -0.018102502450346947, 0.014486297965049744, 0.014937428757548332, -0.005821730475872755, + 0.008313688449561596, -0.0167276281863451, 0.002474056323990226, -0.025607019662857056, + 0.025750236585736275, 0.02984621375799179, 0.05350549519062042, 0.04282158240675926, + 0.014471977017819881, -0.030304504558444023, -0.010948862880468369, -0.007099932990968227, + -0.01639823243021965, 0.035546209663152695, -0.05430750548839569, 0.02005023881793022, + 0.005538878496736288, 0.026179883629083633, 0.012968208640813828, -0.024962548166513443, + -0.0835808590054512, 0.005499494262039661, 0.009409290738403797, -0.061411019414663315, + 0.012717580422759056, 0.016412552446126938, 0.019190942868590355, 0.007547483313828707, + 0.002354112919420004, 0.028972595930099487, -0.011399993672966957, -0.008635925129055977, + -0.057716045528650284, 0.05952056869864464, 0.002805243246257305, -0.022785665467381477, + 0.012638811953365803, -0.016269337385892868, -0.013720092363655567, 0.023788176476955414, + -0.032080382108688354, -0.018145466223359108, 0.021969333291053772, 0.014808534644544125, + 0.026136919856071472, -0.03640550747513771, 0.021826118230819702, -0.029502496123313904, + 0.004629456903785467, 0.02788415551185608, 0.01164346095174551, 0.02408893033862114, + -0.01396355964243412, 0.05304720625281334, -0.011772355064749718, -0.009194467216730118, + 0.01377737894654274, 0.017930643633008003, 0.0072145056910812855, -0.020393958315253258, + 0.037236157804727554, -0.0143430819734931, 0.017357779666781425, 0.04428238794207573, + 0.02487661875784397, -0.018388934433460236, 0.020393958315253258, 0.006143966224044561, + -0.033197470009326935, -0.01009672787040472, 0.01026142667979002, -0.01525250356644392, + 0.006373112089931965, 0.03248138725757599, -0.029259027913212776, -0.020207777619361877, + -0.035402994602918625, 0.03692108392715454, -0.0015932780224829912, 0.011349868029356003, + 0.025363553315401077, 0.007884040474891663, 0.03497334569692612, -0.009710044600069523, + 0.0034568761475384235, -0.014565067365765572, 0.021482400596141815, 0.0003311870095785707, + 0.015309790149331093, -0.03987133502960205, 0.04531354084610939, -0.045571330934762955, + -0.0327964648604393, -0.0012271821033209562, -0.011235294863581657, 0.031135158613324165, + -0.029216064140200615, -0.04176178574562073, -0.031708020716905594, 0.020222099497914314, + -0.02749747224152088, -0.06960297375917435, 0.04330851882696152, -0.0018528569489717484, + -0.004095977637916803, -0.018961798399686813, -0.035259779542684555, -0.038725607097148895, + 0.02586480975151062, 0.023888427764177322, -0.007540322374552488, -0.012187681160867214, + 0.05731504410505295, 0.012574364431202412, 0.04293615743517876, -0.018116824328899384, + -0.01813114620745182, 0.0015207749092951417, -0.0007720237481407821, 0.025664307177066803, + -0.03102058544754982, -0.034887418150901794, -0.05270348861813545, -0.044167812913656235, + 0.021568330004811287, 0.07624819874763489, 0.02300048992037773, -0.03514520451426506, + -0.012388183735311031, 0.03497334569692612, -0.054049719125032425, 0.013175872154533863, + -0.022656770423054695, -0.04296480119228363, 0.016369588673114777, -0.019749486818909645, + 0.014479137025773525, -0.026179883629083633, -0.022098228335380554, -0.033340685069561005, + 0.030476365238428116, 0.039756760001182556, 0.015811046585440636, 0.004389570560306311, + -0.014586549252271652, 0.02553541213274002, -0.04834971949458122, -0.012889440171420574, + 0.027296969667077065, -0.023158026859164238, -0.021711545065045357, -0.004196228925138712, + -0.01818843185901642, -0.06897282600402832, -0.03666329383850098, 0.010648109018802643, + 0.004421793855726719, -0.0009568618843331933, 0.08031553030014038, -0.03566078469157219, + -0.0012039095163345337, -0.023401493206620216, 0.006251378450542688, -0.009960672818124294, + -0.045571330934762955, -0.009710044600069523, -0.008471226319670677, 0.003045130055397749, + -0.006727571599185467, -0.004618715960532427, 0.01808818057179451, -0.02638038620352745, + -0.02037963643670082, 0.018388934433460236, 0.01907637156546116, 0.04743313789367676, + -0.056255243718624115, 0.023315563797950745, 0.01794496364891529, -0.0011976438108831644, + -0.011901249177753925, -0.00615112716332078, -0.03574671223759651, -0.008972481824457645, + 0.013555394485592842, 0.042105503380298615, -0.028199229389429092, 0.022155513986945152, + -0.021639937534928322, 0.023014811798930168, 0.003039759583771229, -0.03580399975180626, + -0.05046931654214859, 0.030447721481323242, 0.010948862880468369, -0.02165425941348076, + 0.005026881583034992, -0.01934848167002201, 0.04061605781316757, 0.007755146361887455, + -0.015553257428109646, -0.04465474933385849, -0.013154389336705208, -0.01185828447341919, + 0.02338717319071293, -0.0036162040196359158, 0.022842951118946075, 0.03205174207687378, + 0.05193012207746506, 0.018059536814689636, 0.022928880527615547, -0.019992953166365623, + 0.009366326034069061, -0.021725866943597794, -0.012345219030976295, 0.03623364865779877, + -0.012080269865691662, 0.02910149097442627, 0.007461553439497948, 0.026451995596289635, + -0.02159697189927101, -0.0045113037340343, -0.03210902586579323, 0.00890087429434061, + 0.015639187768101692, -0.008335171267390251, -0.003447925206273794, -0.05894770473241806, + -0.03419997915625572, 0.024805011227726936, -0.029445208609104156, 0.0036537982523441315, + -0.01452926266938448, -0.00687436806038022, -0.023516066372394562, 0.020866570994257927, + 0.027583401650190353, 0.01485149934887886, -0.010963184759020805, 0.025191694498062134, + -0.0029681515879929066, 0.009495221078395844, 0.03823867067694664, -0.01833164691925049, + 0.027569079771637917, -0.05783062055706978, 0.049925096333026886, 0.018202753737568855, + -0.04118892177939415, -0.03293967992067337, 0.017400743439793587, -0.06335875391960144, + -0.019548984244465828, -0.022241445258259773, -0.025521090254187584, 0.0008257297449745238, + 0.02834244631230831, 0.009244592860341072, 0.032538674771785736, -0.004905147943645716, + -0.01562486495822668, -0.04399595409631729, -0.01606883481144905, -0.026824356988072395, + -0.029416566714644432, -0.0007711286307312548, 0.025735914707183838, -0.03222360089421272, + 0.02343013696372509, -0.02844269759953022, -0.0417904295027256, -0.005123552400618792, + 0.013698610477149487, 0.016412552446126938, 0.019463054835796356, 2.9006834665779024e-5, + 0.011142204515635967, -0.010304391384124756, -0.00874333642423153, 0.011185169219970703, + 0.029531138017773628, 0.0115718524903059, 0.01846054196357727, 0.02295752428472042, + 0.0143430819734931, -0.022227123379707336, 0.013834665529429913, -0.012789188884198666, + -0.03314018249511719, 0.0017275429563596845, -0.01926255226135254, 0.0034819389693439007, + 0.01532411202788353, 0.03546028211712837, 0.010719717480242252, 0.019620591774582863, + 0.026695461943745613, -0.03829595819115639, -0.03631957620382309, -0.010862933471798897, + 0.016226371750235558, -0.03743666037917137, 0.010948862880468369, 0.003673490369692445, + -0.021869082003831863, -0.009294718503952026, -0.0046581001952290535, -0.03130701556801796, + -0.0321376696228981, 0.011450119316577911, 0.015266825444996357, -0.01443617232143879, + 0.020322350785136223, 0.020222099497914314, -0.001010567881166935, -0.022986168041825294, + 0.015911297872662544, 0.019477374851703644, 0.008650246076285839, 0.009337683208286762, + -0.027855511754751205, -0.00046097650192677975, 0.007762307301163673, -0.043509021401405334, + 0.0041890679858624935, 0.021725866943597794, -0.0003972006088588387, -0.06146830692887306, + 0.010254265740513802, -0.0010794906411319971, -0.018546471372246742, 0.019291194155812263, + -0.020966822281479836, -0.0030111162923276424, 0.017744462937116623, -0.058403484523296356, + 0.01827436126768589, -0.013669966720044613, -0.0482637919485569, -0.02076631970703602, + 0.02633742243051529, -0.05642710253596306, 0.005417145323008299, 0.03566078469157219, + -0.025521090254187584, 0.00032357865711674094, 0.02506279945373535, 0.008499869145452976, + -0.034658271819353104, 0.007200184278190136, 0.004360927268862724, 0.029731640592217445, + -0.03480148687958717, 0.005256026983261108, -0.02000727504491806, 0.05576831102371216, + -0.01645551808178425, 0.005034042522311211, -0.007293274626135826, 0.056914038956165314, + -0.01934848167002201, 0.023644961416721344, 0.04010047763586044, -0.009810295887291431, + 0.0030737733468413353, -0.005853953771293163, 0.041876357048749924, 0.022198479622602463, + -0.0004963329411111772, -0.030247218906879425, -0.017816070467233658, 0.049581378698349, + -0.01701406016945839, 0.0367492251098156, 0.004611555021256208, -0.04213414713740349, + 0.029903501272201538, -0.027855511754751205, -0.014364564791321754, -0.009316200390458107, + -0.01990702375769615, -0.01112788263708353, -0.021382149308919907, 0.02914445474743843, + -0.007955648936331272, -0.02456154301762581, 0.02394571527838707, -0.016656020656228065, + -0.0019835415296256542, -0.05476579815149307, -0.01532411202788353, -0.005485172849148512, + -0.007468714378774166, -0.01311858557164669, 0.0021894145756959915, -0.01066243089735508, + 0.009029768407344818, -0.04502711072564125, 0.00908705499023199, 0.010841450653970242, + 0.0315934494137764, -0.026409029960632324, 0.015639187768101692, -0.0090226074680686, + -0.019878380000591278, -0.002275344217196107, -0.013548233546316624, 1.6083828086266294e-5, + -0.023372851312160492, -0.028499983251094818, -0.0046974848955869675, -0.02501983568072319, + -0.002570727141574025, 0.035259779542684555, -0.05969242751598358, -0.0033369327429682016, + -0.024346720427274704, -0.025320587679743767, 0.006007911171764135, -0.009144341573119164, + 0.033111538738012314, -0.005334795918315649, 0.014579388312995434, -0.025377875193953514, + 0.03703565523028374, -0.00781243247911334, 0.0025581957306712866, 0.025936417281627655, + 0.06152559444308281, 0.0028840121813118458, -0.0002163904282497242, -0.023501744493842125, + -0.06169745326042175, 0.017644211649894714, 0.018303005024790764, 0.004428954795002937, + 0.009323361329734325, 0.07756578177213669, -0.009738687425851822, 0.014550745487213135, + 0.00596136599779129, -0.013741575181484222, -0.00561048649251461, -0.028084658086299896, + 0.04600097984075546, -0.011937053874135017, 0.00047574564814567566, 0.00974584836512804, + -0.014300117269158363, 0.024762045592069626, 0.02126757614314556, -0.053304992616176605, + -0.0067454734817147255, -0.006376692093908787, -0.016756271943449974, -0.030963297933340073, + -0.023673605173826218, -0.0011296161683276296, -0.014722604304552078, -0.018546471372246742, + 0.05178690329194069, -0.017558282241225243, 0.026881642639636993, 0.022155513986945152, + -0.039670832455158234, -0.01916230097413063, 0.012867957353591919, 0.01485149934887886, + -0.02764068730175495, -0.02287159487605095, 0.013097102753818035, -0.03368440270423889, + 0.010626627132296562, -0.03846781700849533, 0.025621341541409492, 0.0157967247068882, + 0.02970299869775772, 0.003567868610844016, 0.039527613669633865, 0.023258278146386147, + -0.0547371543943882, -0.027239682152867317, -0.022227123379707336, -0.013311927206814289, + 0.021754510700702667, 0.01565350778400898, -0.03557485342025757, -0.002545664319768548, + -0.003988565411418676, -0.0008069326286204159, 0.01850350759923458, -0.02811329998075962, + -0.008507030084729195, 0.014386046677827835, -0.013440821319818497, -0.04766228422522545, + -0.01356255542486906, 0.005094909109175205, -0.003132849931716919, -0.03652007877826691, + -0.0032277305144816637, 0.013899113051593304, 0.03242410346865654, 0.030104001984000206, + 0.025463804602622986, 0.013440821319818497, 0.041074346750974655, -0.01063378807157278, + -0.004622296430170536, 0.03995726257562637, -0.005324054509401321, 0.009795974008738995, + 0.0193055160343647, -0.010232782922685146, 0.010254265740513802, 0.0392698273062706, + 0.04995374009013176, 0.01860375888645649, -0.0004059278580825776, -0.011249616742134094, + -0.0261082760989666, -0.025463804602622986, 0.021811796352267265, -0.0059255617670714855, + -0.010619466193020344, -0.01488014217466116, 0.027254004031419754, -0.03293967992067337, + -0.011593335308134556, 0.012624490074813366, 0.002520601497963071, 0.017930643633008003, + -0.00991054717451334, 0.03660601004958153, 0.026967572048306465, 0.02408893033862114, + -0.042850226163864136, -0.07859694212675095, -0.020408280193805695, -0.01424283068627119, + -0.04012912139296532, 0.058317553251981735, -0.007568965665996075, 0.01977812871336937, + -0.003788063069805503, 0.009180145338177681, -0.006176189985126257, -0.01785903424024582, + -0.009502381086349487, -0.011722229421138763, 0.031077871099114418, 0.021009786054491997, + -0.005377760622650385, 0.007662056013941765, 0.017185918986797333, 0.019520340487360954, + 0.027196718379855156, 0.012388183735311031, 0.02118164673447609, -0.02033667080104351, + -0.027683652937412262, -0.03351254388689995, 0.0004121935344301164, 0.016269337385892868, + 0.02431807667016983, -0.0033082894515246153, 0.030762797221541405, -0.05384921655058861, + -0.04007183760404587, -0.0020014436449855566, 0.0021786733996123075, 0.001600438728928566, + -0.030189933255314827, 0.04935223236680031, -0.04863615334033966, -0.026638176292181015, + 0.01621205173432827, -0.036806512624025345, 0.045857761055231094, -0.0010293649975210428, + -0.028170587494969368, 0.019692199304699898, 0.00817763339728117, -0.015725117176771164, + 0.03494470193982124, 0.030161289498209953, 0.008356653153896332, -0.0071572195738554, + 0.007776628714054823, 0.005735800601541996, 0.01374873612076044, -0.04161857068538666, + -0.008771980181336403, 0.007418588735163212, -0.002130337990820408, -0.011937053874135017, + -0.024289432913064957, 0.015052000992000103, 0.012925243936479092, 0.010390320792794228, + 0.02006456069648266, -0.006061617285013199, 0.02287159487605095, -0.014937428757548332, + 0.009101376868784428, 0.03079143911600113, 0.01916230097413063, 0.005220223218202591, + -0.004350185859948397, 0.025649985298514366, 0.0141497403383255, 0.0036949727218598127, + -0.05837484076619148, 0.01695677451789379, -0.0011681055184453726, -0.009044090285897255, + 0.03265324607491493, -0.036290932446718216, -0.01635526679456234, -0.023487424477934837, + -0.04133213683962822, -0.016799235716462135, 0.0006292553152889013, -0.0032742756884545088, + 0.005463690496981144, 0.0018886609468609095, -0.041446708142757416, -0.015223860740661621, + -0.047404494136571884, 0.022184157744050026, -0.005646290723234415, 0.004006467759609222, + -0.01752963848412037, 0.0046366178430616856, -0.01907637156546116, -0.03187987953424454, + 0.009702883660793304, -0.04153263941407204, 0.02460450865328312, -0.018388934433460236, + -0.005750122480094433, -0.015610544010996819, -0.00845690444111824, 0.009258913807570934, + -0.02060878276824951, -0.013712931424379349, -0.03468691557645798, -0.03228088468313217, + -0.006233476102352142, 0.03534570708870888, -0.0643899142742157, -3.896482303389348e-5, + -0.021167324855923653, -0.03818138688802719, -0.0015136140864342451, -0.005861114710569382, + 0.0008266248623840511, 0.02404596656560898, -0.04998238384723663, 0.03013264574110508, + -0.047060776501894, 0.0012540350435301661, -0.014493458904325962, 0.022943202406167984, + -0.013627002015709877, -0.01752963848412037, 0.004407472442835569, 0.02216983586549759, + -0.010039441287517548, -0.07097785174846649, 0.0104762502014637, -0.008464065380394459, + -0.009144341573119164, -0.02272837981581688, 0.04353766515851021, -0.01324031874537468, + 0.01695677451789379, -0.021969333291053772, -0.01612612046301365, 0.007278953213244677, + -0.018245717510581017, 0.028757771477103233, -0.005105650518089533, 0.003920537885278463, + -0.026494959369301796, 0.028227873146533966, -0.008850748650729656, -0.043365802615880966, + -0.005689255427569151, 0.028414053842425346, 0.015094966627657413, 0.03712158650159836, + 0.007712181657552719, 0.0008378135971724987, 0.0030164869967848063, -0.03293967992067337, + 0.001573585788719356, 0.0045900726690888405, 0.038124099373817444, 0.018618078902363777, + -0.008285045623779297, 0.006684606894850731, -0.018589437007904053, -0.004944532178342342, + 0.032166313380002975, -0.003100626403465867, 0.011256777681410313, 0.012445470318198204, + 0.037178874015808105, -0.026838678866624832, 0.002259232336655259, 0.029416566714644432, + 0.0012898390414193273, 0.026136919856071472, -0.012846475467085838, 0.006315825507044792, + 0.0035338548477739096, 0.0025546152610331774, 0.0005706262309104204, -0.002463315147906542, + -0.023559032008051872, 0.00039362022653222084, -0.031564805656671524, -0.0018815001240000129, + -0.016097478568553925, -0.01775878295302391, -0.01715727709233761, -0.014994715340435505, + 0.032825104892253876, 0.024633152410387993, -0.004532786551862955, -0.0247334036976099, + -0.01794496364891529, -0.015209538862109184, 0.02103842981159687, 0.010583662427961826, + 0.0045900726690888405, -0.000532584497705102, 0.01466531865298748, 0.01443617232143879, + -0.009330522269010544, -0.01709998957812786, 0.011901249177753925, -0.00943793449550867, + -0.00459365313872695, 0.021024107933044434, -0.0154386842623353, -0.0041210404597222805, + -0.018589437007904053, -0.015352754853665829, -0.01145728025585413, 0.025649985298514366, + 0.005216642748564482, 0.006752634420990944, -0.008335171267390251, -0.005624808371067047, + 0.014937428757548332, 0.016097478568553925, 0.018589437007904053, 0.012810670770704746, + 0.007221666630357504, -0.008564316667616367, -0.023115061223506927, -0.013977881520986557, + 0.04485525190830231, 0.01738642156124115, 0.0030057458207011223, 0.025463804602622986, + 0.025735914707183838, 0.0036233647260814905, -0.0017329135444015265, 0.05768740549683571, + -0.03583264350891113, 0.017028382048010826, 0.0022950363345444202, 0.0006704299012199044, + 0.016698986291885376, -0.0231437049806118, -0.006283601745963097, -0.0022771344520151615, + 0.010504893027245998, -0.008163311518728733, -0.016011549159884453, 0.007841075770556927, + 0.013934916816651821, -0.007096352521330118, -0.005954205058515072, -0.032452743500471115, + 0.013311927206814289, -0.004876504652202129, 0.03485877439379692, -0.019334159791469574, + -0.020966822281479836, -0.00017599904094822705, 0.013691449537873268, -0.0068994308821856976, + 0.004400311503559351, -0.01625501550734043, 0.0030308086425065994, -0.03918389603495598, + 0.012817831709980965, 0.014579388312995434, 0.011865445412695408, -0.001245979219675064, + -0.017500994727015495, -0.008578638546168804, -0.028972595930099487, 0.004536366555839777, + -0.014063810929656029, -0.041446708142757416, -0.02549244835972786, -0.01583968847990036, + -0.00716796051710844, -0.01450061984360218, -0.009108537808060646, 0.0008172263042069972, + 0.0016997948987409472, 0.0011842172825708985, -0.009638437069952488, 0.009223110042512417, + -0.01668466441333294, -0.04110299050807953, 0.007468714378774166, -0.027239682152867317, + -0.026409029960632324, -0.034457769244909286, 0.0033261915668845177, -0.0005607801140286028, + -0.023014811798930168, 0.010404642671346664, 0.001204804633744061, -0.009237431921064854, + -0.02126757614314556, -0.007053387816995382, -0.028600234538316727, 0.0078697195276618, + 0.03167937695980072, 0.009215949103236198, -0.012166199274361134, -0.03116380050778389, + 0.02174018882215023, 0.027382899075746536, 0.03354118764400482, 0.0327964648604393, + 0.028886666521430016, 0.014751248061656952, 0.03677786886692047, 0.02076631970703602, + -0.019276874139904976, 0.054479364305734634, 0.000131803477415815, -0.028013048693537712, + -0.006040134932845831, -0.007776628714054823, -0.008170472458004951, -0.005252446513622999, + -0.013233157806098461, 0.0457431897521019, -0.03626229241490364, -0.021353505551815033, + 0.021955013275146484, 0.0143430819734931, 0.006079519167542458, -0.007099932990968227, + 0.011278259567916393, 0.012159038335084915, 0.01110640075057745, 0.008786301128566265, + 0.009230270981788635, 0.04104570671916008, 0.04138942435383797, 0.0035804000217467546, + 0.00963127613067627, -0.017959285527467728, 0.00298784370534122, 0.005732220131903887, + -0.010483411140739918, 0.03251003101468086, -0.006913752295076847, -0.01846054196357727, + 0.017816070467233658, -0.027869833633303642, -0.010483411140739918, -0.014865820296108723, + -0.0042105503380298615, -0.0034246526192873716, 0.014092453755438328, -0.012287932448089123, + 0.044311027973890305, 0.024074608460068703, -0.039613544940948486, 0.012481274083256721, + 0.035861287266016006, 0.02718239650130272, -0.0012943146284669638, 0.024776367470622063, + -0.032023098319768906, 0.038639675825834274, 0.02258516289293766, 0.038782890886068344, + 0.02264244854450226, -0.013927755877375603, -0.009566828608512878, -0.020737675949931145, + 0.011242455802857876, 0.024489935487508774, -0.007705020718276501, -0.02357335388660431, + -0.04834971949458122, -0.019004762172698975, -0.016985418274998665, -0.0019155140034854412, + 0.017916321754455566, 0.027826867997646332, -0.04643062502145767, -0.013576876372098923, + 0.009309039451181889, 0.004242774099111557, 0.00034729880280792713, -0.013447982259094715, + 0.03468691557645798, 0.0179879292845726, -0.03789495304226875, -0.003428232856094837, + 0.04385273903608322, 0.005628388840705156, 0.011894088238477707, 0.023315563797950745, + 0.040701985359191895, -0.025377875193953514, 0.011185169219970703, -0.002923396648839116, + -0.008242080919444561, 0.03889746591448784, 0.010196979157626629, -0.011901249177753925, + -0.04855022206902504, 0.01506632287055254, -0.01084861159324646, -0.005467270500957966, + -0.0074973576702177525, -0.02563566341996193, 0.020265063270926476, 0.014923106878995895, + -0.0039348597638309, -0.041733141988515854, 0.0007071290165185928, 0.03228088468313217, + 0.01351958978921175, -0.0027282647788524628, 0.0016720467247068882, -0.007411427795886993, + -0.038353245705366135, -0.01715727709233761, -0.03958490118384361, 0.043136660009622574, + 0.015811046585440636, 0.0009514912962913513, 0.0047440300695598125, -0.02103842981159687, + 0.037092942744493484, -0.006928073707967997, -0.013490946963429451, 0.046029623597860336, + 0.00339779956266284, 0.014142579399049282, -0.00016044666699599475, -0.03737937659025192, + 0.005116391461342573, -0.005463690496981144, -0.012524238787591457, 0.020078882575035095, + 0.03021857514977455, -0.01488014217466116, -0.020021596923470497, -0.0130541380494833, + -0.02792711928486824, -0.029817570000886917, -0.014779890887439251, 0.022613806650042534, + -0.002441832795739174, 0.00042382985702715814, -0.0006520803435705602, 0.01794496364891529, + 0.002452573971822858, 0.0038525103591382504, -0.00827072374522686, 0.03583264350891113, + 0.015052000992000103, 0.015682151541113853, -0.030934656038880348, -0.04803464561700821, + -0.013412178494036198, 0.030676865950226784, 0.026165563613176346, -0.016140442341566086, + 0.01452926266938448, -0.014020846225321293, 0.009924869053065777, 0.0068815285339951515, + 0.0007044436642900109, -0.004944532178342342, -0.03646279126405716, -0.059119563549757004, + 0.002706782426685095, 0.01901908405125141, -0.016741950064897537, 0.006537810433655977, + 0.05164368823170662, 0.0417904295027256, 0.03485877439379692, -0.006072358228266239, + 0.0009819247061386704, -0.0032169893383979797, -0.0055854241363704205, 0.001805416657589376, + 0.01583968847990036, -0.04643062502145767, -0.014923106878995895, 0.02629445679485798, + -0.019362803548574448, 0.0016013338463380933, 0.020723354071378708, 0.019090693444013596, + 0.005134293343871832, 0.029731640592217445, -0.012495595961809158, -0.019334159791469574, + -0.012481274083256721, 0.020308028906583786, -0.002581468317657709, -2.5286573873017915e-5, + 0.02910149097442627, -0.001428579562343657, -0.021281898021697998, -0.0019137237686663866, + 0.021582650020718575, 0.0007747090421617031, 0.014751248061656952, 0.03623364865779877, + 0.028056014329195023, 0.02047988772392273, -0.0010034070583060384, 0.014937428757548332, + -0.011507405899465084, -0.0329110361635685, 0.02216983586549759, 0.022155513986945152, + 0.012381022796034813, -0.020694712176918983, -0.024346720427274704, -0.006741893012076616, + -0.00266560772433877, -0.010490572080016136, -0.0022986168041825294, 0.013111424632370472, + -0.015610544010996819, 0.02338717319071293, 0.04809193313121796, -0.011958535760641098, + -0.012474113143980503, 0.03523113578557968, 0.01450061984360218, -0.012287932448089123, + -0.017415065318346024, -0.023129383102059364, -0.036720581352710724, 0.0019029825925827026, + 0.020179133862257004, -0.0019298355327919126, -0.03351254388689995, -0.027211040258407593, + -0.0014536423841491342, -0.008721854537725449, 0.01645551808178425, 0.035173848271369934, + -0.03382761776447296, 0.03205174207687378, -0.029502496123313904, -0.01860375888645649, + -0.004307221155613661, 0.040186408907175064, 0.0027927120681852102, -0.02417485974729061, + -0.014085293747484684, 0.010533536784350872, -0.00022892182460054755, -0.004880085121840239, + -0.017372099682688713, 0.003360205329954624, -0.06708237528800964, 0.017185918986797333, + -0.026494959369301796, 0.020880892872810364, -0.013462304137647152, 0.013827504590153694, + -0.026867320761084557, 0.009523863904178143, 0.0010472669964656234, 0.007107093930244446, + 0.028170587494969368, 0.005739381071180105, -0.00909421592950821, -0.0209525004029274, + -0.014507780782878399, 0.0067239911295473576, -0.0209525004029274, 0.030333148315548897, + -0.015109287574887276, 0.015667829662561417, 0.012051626108586788, 0.05273212864995003, + 0.025807522237300873, 0.0007697860128246248, 0.0046366178430616856, 0.01823139563202858, + -0.033569831401109695, -0.013354891911149025, -0.03302560746669769, -0.02460450865328312, + 0.046029623597860336, -0.04316530004143715, 0.056856751441955566, 0.03468691557645798, + 0.005997169762849808, 0.018804261460900307, -0.0005594374961219728, 0.02652360312640667, + 0.029903501272201538, 0.015352754853665829, -0.024962548166513443, 0.00017778923211153597, + -0.03929847106337547, 0.03079143911600113, -0.05333363637328148, -0.020465565845370293, + -0.02699621580541134, -0.002089163288474083, 0.008227759040892124, -0.0007066814578138292, + 0.0012415036326274276, 0.022656770423054695, 0.015682151541113853, 0.03669193759560585, + 0.024518579244613647, -0.04353766515851021, 0.003195506986230612, 0.023587675765156746, + -0.013791700825095177, -0.016799235716462135, 0.001075910171493888, -0.01658441312611103, + -0.010433285497128963, -0.02023642137646675, -0.0329110361635685, 0.004153263755142689, + 0.005066265817731619, 0.022714057937264442, -0.011206652037799358, 0.03368440270423889, + ], + index: 91, + }, + { + title: "Patricide", + text: "Patricide is (i) the act of killing one's father, or (ii) a person who kills his father. The word patricide derives from the Latin word pater (father) and the Latin suffix -cida (cutter or killer). Patricide is a sub-form of parricide, which is defined as an act of killing a close relative.", + vector: [ + -0.02162994258105755, 0.009556903503835201, -0.03192991763353348, 0.04835101589560509, + -0.04882187023758888, 0.04479016736149788, -0.008497477509081364, -0.047703590244054794, + -0.007471159100532532, 0.03758018836379051, 0.0345490537583828, -0.03781561553478241, + -0.03966961055994034, -0.041553035378456116, -0.022571654990315437, -0.0428478866815567, + -0.010358829982578754, -0.0023524402640759945, 0.023380938917398453, -0.040081609040498734, + -0.014699532650411129, -0.004568773787468672, -0.009630474261939526, -0.01789252460002899, + 0.08952148258686066, 0.004469452425837517, -0.00014806211402174085, -0.010027759708464146, + -0.0021390835754573345, -0.014066820032894611, -0.014515604823827744, -0.0006492661777883768, + 0.021747658029198647, 0.034078195691108704, 0.014110962860286236, -0.04114103317260742, + -0.03602047637104988, 0.0020912622567266226, 0.06274154782295227, 0.010380901396274567, + 0.027559785172343254, 0.013412036001682281, -0.0344313383102417, 0.03961075469851494, + -0.01818680949509144, 0.04031703621149063, -0.013750463724136353, 0.0038514542393386364, + -0.09782031178474426, -0.05915127322077751, 0.014787818305194378, -0.020187946036458015, + -0.0019202092662453651, 0.03663847595453262, 0.02444036491215229, 0.005639235023409128, + 0.03937532380223274, -0.013809320516884327, -0.0300759207457304, 0.04220046103000641, + -0.02062937431037426, -0.018392808735370636, -0.017833666875958443, 0.012359967455267906, + 0.039905037730932236, 0.012234896421432495, -0.009770260192453861, -0.0002317493926966563, + -0.0013941748766228557, 0.02202722802758217, 0.04902787134051323, 0.0044473810121417046, + -0.012985322624444962, -0.01815738156437874, -0.030458491295576096, 0.012212825007736683, + 0.025190791115164757, 0.01250710990279913, 0.022409798577427864, -0.012926465831696987, + 0.011131327599287033, -0.009704045951366425, 0.02717721462249756, 0.03581447899341583, + 0.02848678268492222, -0.00645955465734005, 0.011050399392843246, -0.06486040353775024, + 0.028575068339705467, 0.023792937397956848, 0.023439794778823853, -0.016936099156737328, + 0.008688762784004211, 0.01206568256020546, 0.028163067996501923, 0.026794644072651863, + 0.047585874795913696, 0.02318965271115303, -0.002093101618811488, -0.031135346740484238, + -0.0344901941716671, 0.019216805696487427, -0.025396790355443954, -0.04955758526921272, + -0.007294587790966034, 0.016950812190771103, -0.0854603499174118, 0.029369637370109558, + 0.021747658029198647, 0.08234092593193054, -0.03675618767738342, -0.003139652544632554, + 0.03457847982645035, 0.011815540492534637, 0.0010143633699044585, -0.05918070301413536, + 0.04031703621149063, -0.011925897561013699, -0.027957068756222725, -0.012028897181153297, + -0.03178277239203453, -0.04561416432261467, 0.007901550270617008, 0.007268838118761778, + -0.02995820716023445, 0.022659940645098686, 0.02574993297457695, 0.003910311032086611, + -0.040729034692049026, -0.003735579550266266, 0.002306458307430148, -0.051970720291137695, + -0.0012277199421077967, 0.08334149420261383, 0.0343136228621006, -0.029384350404143333, + -0.01877537928521633, -0.014228676445782185, 0.01880480721592903, 0.02703007124364376, + 0.011668398045003414, -0.00615423358976841, -0.006573589984327555, 0.009409761056303978, + 0.01316189393401146, -0.021615229547023773, 0.009409761056303978, 0.046879589557647705, + 0.028148354962468147, 0.034843336790800095, 0.015317531302571297, -0.030752776190638542, + 0.012396752834320068, 0.015111532062292099, 0.02669164352118969, -0.0013748625060543418, + 0.007099624257534742, -0.03861018270254135, 0.009983616881072521, 0.03275391459465027, + -0.024675792083144188, 0.04893958568572998, -0.00719894515350461, 0.014000605791807175, + 0.020070232450962067, 0.021865371614694595, -0.039139896631240845, -0.008254692889750004, + 0.018819522112607956, 0.00030233178404159844, 0.02532321959733963, -0.04361302778124809, + 0.04814501479268074, -0.04620273411273956, -0.008725548163056374, -0.0517941489815712, + 0.024793505668640137, 0.002484868513420224, 0.0052272360771894455, 0.02995820716023445, + 0.012440895661711693, 0.037521328777074814, -0.023572223260998726, -0.004697523545473814, + 0.007842693477869034, 0.0060990555211901665, 0.0037999541964381933, 0.006128483917564154, + 0.043524742126464844, -0.04826273024082184, -0.027559785172343254, 0.015214531682431698, + -0.01706852577626705, 0.032135915011167526, 0.026941785588860512, 0.021835941821336746, + -0.006992945913225412, 0.03354848176240921, 0.017818953841924667, 0.023204367607831955, + 0.010138115845620632, -0.07363009452819824, 0.0027386893052607775, 0.09581917524337769, + 0.015096817165613174, 0.0019606733694672585, 0.023719366639852524, 0.00943183246999979, + 0.03937532380223274, -0.021924227476119995, 0.013198679313063622, 0.010851757600903511, + 0.005959270056337118, 0.040787894278764725, 0.004469452425837517, 0.012926465831696987, + -0.023410366848111153, 0.02017323300242424, 0.045084454119205475, 0.011234327219426632, + -0.0041898819617927074, 0.018819522112607956, 0.045231595635414124, -0.016141528263688087, + 0.018142666667699814, -0.01581781543791294, -0.014339033514261246, -0.005631878040730953, + -0.024822935461997986, 0.032224200665950775, 0.02703007124364376, -0.015611816197633743, + -0.016582956537604332, -0.016376957297325134, -0.04184731841087341, -0.007629337254911661, + -0.026132503524422646, -0.045084454119205475, -0.004186203237622976, -0.026338502764701843, + -0.03343077003955841, -0.007261481136083603, -0.008004550822079182, -0.00591144897043705, + 0.04052303731441498, 0.03287162631750107, -0.0052272360771894455, -0.07827979326248169, + -0.04220046103000641, -0.01461124699562788, -0.029811063781380653, 0.015641244128346443, + 0.04461359605193138, -0.02922249399125576, -0.010454472154378891, -0.01227903924882412, + 0.029663922265172005, 0.013345821760594845, 0.018245667219161987, 0.0474681593477726, + -0.03975789621472359, -0.03607933223247528, -0.0469384491443634, 0.0018834236543625593, + 0.011366755701601505, -0.08075178414583206, -0.02544093318283558, -0.013463536277413368, + -0.02532321959733963, -0.008975690230727196, 0.0035001514479517937, 0.011293184943497181, + -0.029207780957221985, -0.05294186249375343, -0.024190222844481468, 0.007644051220268011, + 0.0346079096198082, 0.04476074129343033, -0.009784974157810211, 0.030576204881072044, + -0.027294928207993507, -0.04196503385901451, -0.035549622029066086, 0.023145509883761406, + 0.053736429661512375, -0.01328696496784687, -0.03525533527135849, 0.005756949074566364, + 0.026838786900043488, 0.023483937606215477, 0.010174902155995369, 0.03178277239203453, + 0.0075704799965023994, 0.020040804520249367, -0.01544995978474617, -0.04976358264684677, + -0.0013242822606116533, -0.08063407242298126, -0.01724509708583355, -0.015420530922710896, + 0.02541150525212288, -0.020850088447332382, 0.032165344804525375, 0.016950812190771103, + -0.021644657477736473, -0.00033130045630969107, -0.003855132730677724, 0.019496377557516098, + -0.02398422174155712, -0.01305889431387186, -0.02285122498869896, -0.040699608623981476, + 0.017598239704966545, 0.058032989501953125, -0.0021335657220333815, -0.04896901547908783, + -0.006919374689459801, -0.013088323175907135, -0.011896468698978424, 0.00171237054746598, + -0.0517352931201458, 0.02032037451863289, -0.00034739417606033385, -0.040052179247140884, + 0.016980241984128952, -0.058739274740219116, -0.017200954258441925, -0.03504933789372444, + -0.028810495510697365, -0.03337191045284271, -0.023763509467244148, 0.023174939677119255, + 0.011830254457890987, -0.010785543359816074, -0.015832530334591866, 0.009255261160433292, + -0.017171526327729225, 0.05953384190797806, 0.05488414317369461, -0.06274154782295227, + -0.017863096669316292, 0.008924190886318684, 0.031311918050050735, 0.0600929856300354, + -0.014361104927957058, 0.026382645592093468, -0.025602789595723152, 0.010962113738059998, + -0.01968766190111637, 0.02964920736849308, 0.0005927082384005189, 0.03204762935638428, + -0.041670747101306915, -0.03966961055994034, 0.014868746511638165, -0.05732670798897743, + 0.02398422174155712, -0.03334248438477516, 0.04387788474559784, -0.007710265461355448, + 0.0013435946311801672, -0.027809927240014076, 0.000797328248154372, -0.06509582698345184, + -0.015979671850800514, -0.06427183002233505, 0.061564408242702484, 0.05509014055132866, + 0.025823503732681274, 0.0383453294634819, 0.01480988971889019, -0.043230459094047546, + 0.07480723410844803, 0.01286025159060955, -0.013507679104804993, 0.013882892206311226, + 0.04476074129343033, 0.015302817337214947, -0.010866471566259861, 0.018701808527112007, + -0.008806477300822735, -0.01602381467819214, -0.012433539144694805, 0.0030587241053581238, + -0.060622699558734894, -0.019672948867082596, 0.0026890286244452, 0.0018356023356318474, + -0.0030899918638169765, -0.02800121158361435, -0.015332245267927647, 0.03354848176240921, + -0.031135346740484238, -0.030635062605142593, 0.01986423321068287, -0.011337327770888805, + 0.0016176474746316671, 0.002551082521677017, 0.017348097637295723, -0.05785641819238663, + 0.018024953082203865, -0.040081609040498734, 0.045055024325847626, 0.037462472915649414, + 0.02093837410211563, -0.007673479616641998, 0.021291514858603477, -0.026588644832372665, + -0.05052872374653816, 0.015096817165613174, 0.010601614601910114, 0.020702945068478584, + 0.01227903924882412, 0.04190617427229881, 0.05176471918821335, -0.02096780203282833, + -0.014118320308625698, 0.006838446483016014, -0.006761196535080671, 0.02882521040737629, + -0.04905730113387108, 0.005436914507299662, 0.007125373929738998, 0.004657058976590633, + 0.03275391459465027, 0.016582956537604332, 0.01226432528346777, 0.0047490233555436134, + 0.05058757960796356, 0.019040236249566078, -0.07262952625751495, -0.019672948867082596, + 0.009115476161241531, 0.10711971670389175, -0.019525805488228798, -0.04558473825454712, + -0.019761234521865845, 0.002392904367297888, 0.014339033514261246, 0.03160620108246803, + 0.00619469815865159, -0.06244726479053497, -0.018701808527112007, 0.026882929727435112, + 0.0256910752505064, 0.005782699212431908, -0.010270544327795506, 0.003349330509081483, + 0.02861921116709709, -0.023660508915781975, 0.0033107055351138115, -0.01989366114139557, + -0.0258970744907856, -0.01965823397040367, 0.05158815160393715, -0.006591982673853636, + -0.004462095443159342, -0.05912184342741966, -0.024263793602585793, 0.02452865056693554, + -0.032135915011167526, 0.021262086927890778, -0.02976692095398903, -0.03696218878030777, + 0.05423671379685402, -0.01293382328003645, 0.011727254837751389, -0.005852591712027788, + -0.003932382445782423, -0.0016912188148126006, 0.011101899668574333, 0.014316962100565434, + -0.04031703621149063, -0.034931622445583344, 0.02461693435907364, -0.04470188170671463, + 0.02617664635181427, -0.011455041356384754, 0.009637831710278988, -0.0004575211205519736, + 0.03928703814744949, 0.0030734383035451174, -0.02492593415081501, 0.025073077529668808, + 0.005238271784037352, -0.0561789944767952, -0.044231027364730835, -0.02964920736849308, + -0.05326557531952858, 0.011020971462130547, 0.018657665699720383, 0.0028950280975550413, + -0.005859948694705963, -0.049528155475854874, 0.004693844821304083, -0.005050665233284235, + -0.013721035793423653, 0.028722209855914116, 0.004234024789184332, -0.001844798680394888, + 0.015758957713842392, -0.0386984683573246, 0.02065880224108696, 0.018731236457824707, + 0.046879589557647705, 0.034755051136016846, 0.0017638703575357795, 0.010270544327795506, + 0.007140088360756636, 0.01675952784717083, -0.023086654022336006, 0.03749190270900726, + -0.040022753179073334, 0.015096817165613174, 0.006735446397215128, -0.0023303688503801823, + 0.006389661692082882, -0.02182122878730297, -0.008821191266179085, -0.009777616709470749, + -0.011800826527178288, -0.042494744062423706, -0.007364480756223202, -0.04228874668478966, + -0.011366755701601505, 0.028207210823893547, 0.017348097637295723, 0.014706890098750591, + 0.006967195775359869, -0.020467517897486687, 0.03245962783694267, 0.027692213654518127, + 0.004620273597538471, 0.03089991956949234, 0.0038588112220168114, -0.011903826147317886, + -0.02705950103700161, -0.030635062605142593, 0.0035130265168845654, 0.0035369370598345995, + 0.01139618456363678, 0.008460692130029202, 0.026044217869639397, 0.03166506066918373, + -0.015832530334591866, -0.004605559166520834, 0.018569380044937134, 0.05414842814207077, + -0.03946360945701599, -0.04582016542553902, 0.008379763923585415, -0.03678561747074127, + 0.01141089852899313, 0.051058437675237656, 0.04484902322292328, -0.004267131444066763, + 0.009696688503026962, 0.0023653151001781225, 0.02157108671963215, -0.014912889339029789, + 0.028898781165480614, 0.01834866590797901, 0.0071180169470608234, 0.004002275411039591, + -0.036461904644966125, 0.023380938917398453, 0.025705790147185326, -0.017598239704966545, + 0.03599104657769203, 0.010550115257501602, 0.01767181046307087, -0.02102665975689888, + -0.027412641793489456, 0.01983480527997017, 0.03872789815068245, 0.00025841896422207355, + -0.01681838370859623, 0.01789252460002899, 0.003950775135308504, -0.03599104657769203, + -0.0193492341786623, -0.0022144941613078117, -0.03087048977613449, 0.01986423321068287, + 0.008416549302637577, -0.0018218077020719647, -0.03710933029651642, 0.02779521234333515, + 0.0171273835003376, 0.0014162462903186679, -0.030487919226288795, -0.02285122498869896, + 0.03357791155576706, 0.017774811014533043, -0.009137547574937344, 0.0015799422981217504, + -0.005959270056337118, 0.01670067012310028, 0.015744244679808617, 0.023454509675502777, + 0.004822594579309225, 0.032989341765642166, 0.0009840152924880385, -0.02635321579873562, + -0.002955724485218525, -0.008166407234966755, 0.0559435673058033, -0.10735514760017395, + 0.003231616457924247, 0.06321240216493607, -0.0038404185324907303, -0.04193560406565666, + -0.052853576838970184, -0.0343136228621006, 0.023969508707523346, 0.022601082921028137, + 0.022571654990315437, -0.043230459094047546, 0.003641776042059064, -0.02413136512041092, + -0.01986423321068287, 0.023910650983452797, 0.015288102440536022, -0.023483937606215477, + -0.05500185489654541, -0.0024536007549613714, 0.0030624025966972113, -0.0069966246373951435, + 0.004337024409323931, 0.006385983433574438, 0.015758957713842392, -0.0010474704904481769, + 0.006555196829140186, 0.0016360403969883919, -0.03275391459465027, -0.02486707828938961, + 0.019923090934753418, -0.037433043122291565, -0.013470892794430256, -0.002271511824801564, + 0.0140447486191988, -0.008960976265370846, -0.0037742042914032936, -0.028751637786626816, + -0.009623117744922638, 0.0214828010648489, -0.005587735213339329, 0.009490689262747765, + 0.009380332194268703, 0.02669164352118969, -0.012713109143078327, -0.030281919986009598, + 0.006069627124816179, -0.007460123393684626, 0.016965527087450027, -0.04534931108355522, + -0.014236033894121647, -0.0129191093146801, 0.013522393070161343, 0.002540046814829111, + -0.022983653470873833, -0.028045354411005974, -0.016833098605275154, -0.002479350659996271, + -0.018760664388537407, -0.002242083428427577, -0.017789524048566818, -0.03178277239203453, + -0.030752776190638542, 0.02501421980559826, -0.017833666875958443, -0.013412036001682281, + 0.0016820223536342382, -0.011190185323357582, 0.0021280478686094284, 0.010631043463945389, + -0.003628901205956936, -0.012448253110051155, 0.02745678462088108, 0.015001174993813038, + -0.017083240672945976, -0.005264021921902895, -0.011999468319118023, -0.009174332953989506, + 0.029119495302438736, -0.00944654643535614, 0.006242519244551659, -0.0004543023824226111, + -0.012330538593232632, -0.03928703814744949, -0.0049807727336883545, 0.03978732228279114, + 0.0010787382489070296, 0.03684447333216667, 0.016376957297325134, 0.011440327391028404, + -0.009865902364253998, -0.009247904643416405, -0.012095111422240734, 0.007879478856921196, + 0.03790390118956566, -0.0015422370051965117, -0.03866904228925705, 0.012161324732005596, + -0.008092835545539856, 0.005183093715459108, -0.010270544327795506, -0.02245394140481949, + -0.0009463099995627999, -0.026706358417868614, 0.001094372128136456, 0.044083885848522186, + -0.001933084218762815, 0.0037282223347574472, 0.0029060638044029474, 0.020423375070095062, + 0.010947399772703648, -0.01831923797726631, 0.013676892966032028, 0.020379232242703438, + 0.0043333456851542, 0.016170958057045937, -0.011013614013791084, 0.025308504700660706, + -0.004623952321708202, -0.011506541632115841, -0.04891015589237213, -0.02096780203282833, + -0.006065948400646448, 0.00857840571552515, -0.018422236666083336, 0.03104706108570099, + 0.025131933391094208, 0.00679430365562439, 0.015700101852416992, -0.015611816197633743, + -0.009027190506458282, -0.03357791155576706, -0.05423671379685402, -0.004520952235907316, + -0.026824072003364563, -0.022071370854973793, 0.0025952253490686417, -0.03793332725763321, + -0.012654252350330353, -0.007232052274048328, -0.012448253110051155, 0.024881791323423386, + -0.006882588844746351, 0.020040804520249367, 0.045937880873680115, 0.015582387335598469, + 0.005870984401553869, -0.02273351140320301, 0.015376388095319271, -0.027927640825510025, + -0.051264435052871704, -0.02355751022696495, 0.007938336580991745, -0.01776009611785412, + -0.0034394552931189537, 0.005172058008611202, -0.009726117365062237, 0.011661040596663952, + 0.027250785380601883, -0.044289883226156235, 0.01403003465384245, -0.02404307946562767, + 0.0030679204501211643, 0.016009101644158363, 0.013853463344275951, 0.031459059566259384, + 0.02102665975689888, -0.059769272804260254, -0.026927072554826736, -0.03758018836379051, + -0.00472327321767807, 0.022998368367552757, 0.008696120232343674, -0.040876179933547974, + 0.00879176240414381, -0.023748794570565224, -0.034755051136016846, -0.010395615361630917, + 0.008585763163864613, -0.018113238736987114, 0.03369562700390816, 0.009777616709470749, + -0.010093973018229008, 0.004745344631373882, 0.026309072971343994, -0.028589781373739243, + -0.004167810548096895, 0.03675618767738342, -0.006669232621788979, -0.02435207925736904, + -0.027074214071035385, 0.011771397665143013, -0.01621510088443756, -0.05002843961119652, + 0.03849247097969055, -0.002484868513420224, -0.0025786717887967825, 0.0076881940476596355, + 0.021291514858603477, 0.004355417098850012, 0.05158815160393715, -0.005304486025124788, + -0.024970076978206635, -0.05423671379685402, 0.018701808527112007, 0.05511957034468651, + 0.0033327769488096237, 0.026882929727435112, -0.04537873715162277, 0.00821055006235838, + 0.010667828842997551, -0.03381333872675896, -0.0018236469477415085, 0.03257734328508377, + -0.029487350955605507, 0.0021409229375422, 0.06650839745998383, -0.018083808943629265, + -0.004164131823927164, -0.00802662130445242, 0.07056953012943268, -0.015015888959169388, + 0.009829116985201836, -0.016597671434283257, 0.012757251970469952, 0.008048692718148232, + 0.01798081025481224, -0.04043475165963173, 0.03084106184542179, -0.015611816197633743, + 0.029781635850667953, 0.001980905421078205, -0.0007265159511007369, 0.028442639857530594, + -0.0035829192493110895, -0.004719594959169626, 0.039110466837882996, -0.03087048977613449, + -0.03346019610762596, -0.032253630459308624, -0.009571617469191551, -0.014912889339029789, + 0.014552390202879906, -0.04496673867106438, 0.009748188778758049, -0.04702673479914665, + 0.025117220357060432, 0.0256910752505064, -0.06097583845257759, -0.0013638267992064357, + 0.0384041853249073, -0.0014705050271004438, -0.021924227476119995, -0.021306229755282402, + -0.013051536865532398, 0.02663278765976429, -0.0473504476249218, 0.0139417489990592, + -0.017259811982512474, 0.009777616709470749, 0.049469299614429474, -0.028383782133460045, + 0.008519548922777176, -0.031282488256692886, 0.012801394797861576, -0.02279236912727356, + 0.048557016998529434, -0.011020971462130547, -0.02051166072487831, 0.010991542600095272, + 0.029178351163864136, -0.018819522112607956, 0.026809358969330788, 0.039051610976457596, + -0.00620941212400794, 0.027383213862776756, -0.014508247375488281, -0.004370131529867649, + 0.0070039816200733185, 0.01546467375010252, 0.04149417579174042, 0.003936061169952154, + 0.03195934370160103, -0.03234191611409187, 0.014471461996436119, 0.009601046331226826, + -0.006113769486546516, -0.04187674820423126, 0.011035685427486897, 0.024087222293019295, + -0.008938904851675034, 0.007165838498622179, -0.016494670882821083, -0.05411900207400322, + 0.006334483157843351, 0.013478250242769718, -0.04411331191658974, 0.023013083264231682, + 0.0279129259288311, 0.006389661692082882, 0.03275391459465027, -0.009240547195076942, + 0.0012709430884569883, 0.010211687535047531, 0.0045356666669249535, -0.017568811774253845, + -0.030782204121351242, -0.01667124219238758, 0.03243020176887512, 0.015273388475179672, + -0.03693275898694992, -0.019334521144628525, -0.0024168151430785656, -0.02876635268330574, + 0.03805104270577431, 0.019923090934753418, -0.030487919226288795, -0.004693844821304083, + -0.0002706041850615293, 0.013228108175098896, 0.04022875055670738, 0.02401365153491497, + 0.030635062605142593, 0.009284690022468567, -0.014272819273173809, -0.004962379578500986, + 0.011043041944503784, 0.009152261540293694, -0.003141491673886776, -0.05226500704884529, + -0.017039097845554352, -0.0027442071586847305, -0.036432474851608276, -0.030664490535855293, + -0.04234760254621506, 0.026618072763085365, 0.02523493394255638, -0.021777085959911346, + 0.07539580017328262, 0.02626493014395237, -0.015126246027648449, -0.01675952784717083, + -0.024749362841248512, -0.019643519073724747, -0.03101763315498829, -0.018966663628816605, + -0.006731768138706684, -0.025279076769948006, -0.009483331814408302, -0.020452803000807762, + -0.006492661312222481, -0.011741968803107738, -0.004517273977398872, -0.007379194721579552, + 0.00025474041467532516, 0.04187674820423126, 0.032312486320734024, 0.005418521352112293, + -0.04293617233633995, 0.00505802221596241, 0.011065113358199596, -0.03705047443509102, + 0.014817247167229652, -0.003097349079325795, 0.0005076415254734457, -0.046761877834796906, + 0.009012476541101933, 0.045996736735105515, -0.0013509518466889858, -0.004590845201164484, + 0.010601614601910114, 0.026426788419485092, 0.0035056693013757467, 0.006382304709404707, + -0.016185671091079712, 0.02617664635181427, 0.01077082846313715, 0.004031703807413578, + -0.013139822520315647, 0.04387788474559784, -0.03607933223247528, 0.039228182286024094, + -0.005749592091888189, 0.031341347843408585, 0.001635120715945959, 0.01031468715518713, + 0.009049261920154095, -0.04896901547908783, 0.014236033894121647, -0.00645955465734005, + 0.023292653262615204, 0.005179414991289377, -0.02401365153491497, -0.016259243711829185, + -0.030281919986009598, 0.0022163335233926773, -0.027648070827126503, -0.0429656021296978, + -0.012514467351138592, 0.007265159394592047, -0.01435374841094017, 0.007872122339904308, + -0.04222988709807396, -0.02276293933391571, 0.010594258084893227, -0.001023559831082821, + -0.00422666734084487, 0.021291514858603477, 0.020364517346024513, 0.030576204881072044, + 0.03587333485484123, -0.03596162050962448, -0.018848950043320656, 0.058945272117853165, + -0.004991808440536261, 0.04552587866783142, 0.023866508156061172, 0.044260453432798386, + -0.0234692245721817, 0.04049360752105713, -0.03716818615794182, 0.008401835337281227, + 0.023969508707523346, 0.014471461996436119, 0.013904963620007038, -0.015288102440536022, + 0.015729529783129692, 0.01602381467819214, -0.004679130390286446, -0.021350372582674026, + -0.03178277239203453, -0.03519647940993309, -0.004679130390286446, -0.006702339742332697, + 0.01238939631730318, 0.016612384468317032, 0.0019202092662453651, 0.0033051876816898584, + -0.01858409307897091, -0.0026375288143754005, 0.013309036381542683, -0.03192991763353348, + -0.003581079887226224, -0.046820733696222305, -0.02273351140320301, -0.023145509883761406, + -0.004300238564610481, 0.021247372031211853, -0.027839355170726776, 0.010035116225481033, + -0.0026908679865300655, -0.006823732051998377, -0.032077059149742126, -0.013559178449213505, + 0.004587166476994753, -0.005403807386755943, 0.01227903924882412, -0.00013357777788769454, + 0.024646364152431488, -0.004182524513453245, 0.005337593145668507, -0.0008198594441637397, + 0.003770525800064206, -0.005286093335598707, -0.010704615153372288, -0.006080662366002798, + -0.00024761317763477564, -2.1051143903605407e-6, 0.01886366493999958, 0.019584663212299347, + 0.00262833246961236, -0.003088152501732111, 0.02102665975689888, 0.022939510643482208, + 0.004969737026840448, 0.03351905569434166, 0.008409191854298115, -0.013853463344275951, + -0.03610876202583313, -0.01892252080142498, -0.0024131364189088345, -0.01260275300592184, + 0.027765784412622452, -0.02444036491215229, -0.009946830570697784, 0.01645052805542946, + -0.015920815989375114, 0.01642110012471676, -0.0010318366112187505, 0.02526436187326908, + -0.0012222020886838436, -0.010476543568074703, -0.03169448673725128, 0.01647995598614216, + -0.019143234938383102, 0.008092835545539856, 0.013735749758780003, 0.04896901547908783, + 0.006385983433574438, 0.026029502972960472, -0.01901080645620823, 0.00444002402946353, + -0.02677992917597294, 0.003788918722420931, 0.026103073731064796, 0.00635287631303072, + -0.01789252460002899, -0.03540247678756714, 0.009056619368493557, -0.02105608768761158, + -0.02157108671963215, -0.008821191266179085, 0.0007872122223488986, -0.024366792291402817, + 0.02922249399125576, -0.01627395674586296, -0.005381735973060131, 0.02264522574841976, + -0.006926731672137976, -0.01051332987844944, 0.002801224822178483, 0.015361674129962921, + 0.01238939631730318, 0.01549410168081522, -0.01989366114139557, -0.01293382328003645, + -0.02111494354903698, 0.022115513682365417, -0.007533694617450237, 0.04493730887770653, + 0.027839355170726776, -0.0052198790945112705, 0.003796275705099106, -0.0473504476249218, + -0.00663612550124526, 0.019878948107361794, -0.0047674160450696945, -0.020408660173416138, + 0.019569948315620422, -0.012786680832505226, -0.023601653054356575, 0.022586369886994362, + -0.0010437918826937675, 0.02307193912565708, -0.009696688503026962, 0.0005140790017321706, + 0.010461829602718353, 0.005374378524720669, 0.01226432528346777, 0.006926731672137976, + -0.01718624122440815, -0.015420530922710896, -0.0140153206884861, 0.024425650015473366, + -0.03849247097969055, 0.02279236912727356, 0.0259265024214983, 0.04529045149683952, + 0.013478250242769718, 0.021718228235840797, -0.03884561359882355, -0.0037558116018772125, + -0.0035111871547997, -0.024690506979823112, 0.021762371063232422, 0.03357791155576706, + -0.0010217205854132771, 0.00599605543538928, 0.053765859454870224, -0.03784504160284996, + -0.016170958057045937, -0.001600174349732697, -0.0006170787382870913, -0.006466911640018225, + 0.012242253869771957, 0.007842693477869034, 0.010925328359007835, 0.008100192993879318, + -0.00012622064969036728, 0.01227903924882412, -0.003170920303091407, -0.006073305383324623, + -0.004410595633089542, -0.00599605543538928, 0.0016544332029297948, 0.005142629146575928, + -0.011712540872395039, -0.021865371614694595, -0.00036601690226234496, 0.012411467730998993, + -0.004620273597538471, 0.02273351140320301, -0.006242519244551659, 0.009704045951366425, + 0.0018622719217091799, -0.012874966487288475, 0.029237208887934685, 0.027191927656531334, + -0.019113807007670403, -0.030782204121351242, -0.01684781350195408, -0.03510819375514984, + 0.034078195691108704, 0.0076881940476596355, -0.0034541694913059473, -0.010719329118728638, + 0.00909340474754572, -0.042671315371990204, 0.025955932214856148, -0.004925594199448824, + -0.022189084440469742, 0.0021022979635745287, -0.00040992972208186984, -0.029855206608772278, + 0.000574315432459116, -0.008379763923585415, -0.020526373758912086, -0.0236752238124609, + -0.014699532650411129, 0.043583597987890244, -0.0012387556489557028, 0.0025731539353728294, + 0.02188008464872837, 0.014206605963408947, -0.01849580928683281, 0.016465242952108383, + 0.027765784412622452, -0.0025363683234900236, 0.013492964208126068, -0.024881791323423386, + -0.01687724143266678, -0.007445408962666988, 0.0034063481725752354, 0.015346959233283997, + 0.019981946796178818, -0.031429633498191833, 0.023969508707523346, -0.0020563160069286823, + 0.009961545467376709, 0.018701808527112007, 0.000969301036093384, 0.03087048977613449, + 0.01892252080142498, -0.005028593819588423, 0.024278508499264717, -0.013088323175907135, + 0.008033978752791882, 0.02202722802758217, 0.025985360145568848, -1.984411574085243e-5, + 0.03964018076658249, 0.035637907683849335, 0.023425081744790077, -0.03961075469851494, + -0.0171273835003376, -0.04011103883385658, 0.013419393450021744, -0.001683861599303782, + 0.014618604443967342, 0.019569948315620422, -0.008725548163056374, 0.008291478268802166, + -0.0023873865138739347, -0.01445674803107977, 0.005473699886351824, 0.039169326424598694, + -0.0015477548586204648, -0.014618604443967342, 0.0023285294882953167, 0.03610876202583313, + -0.024455077946186066, -0.029443208128213882, -0.02005551941692829, -0.020585231482982635, + -0.004443702753633261, -0.0129485372453928, 0.019334521144628525, 0.017289239913225174, + -0.03516704961657524, 0.003593954723328352, -0.015729529783129692, -0.026529787108302116, + 0.014971746131777763, -0.018113238736987114, 0.011315256357192993, 0.0024131364189088345, + 0.0008198594441637397, -0.017142098397016525, -0.027162499725818634, 0.006216769572347403, + 0.025882359594106674, 0.006003412883728743, -0.0071180169470608234, -0.030031777918338776, + -0.0032757592853158712, 0.014037392102181911, -0.008688762784004211, -0.011455041356384754, + -0.045084454119205475, -0.02635321579873562, 0.009895331226289272, 0.00020117135136388242, + 0.03699161857366562, 0.002212654799222946, 0.006669232621788979, -0.04108217731118202, + -0.011388827115297318, 0.015082103200256824, -0.00516470056027174, -0.0051132007502019405, + -0.0024664755910634995, 0.004454738460481167, -0.007592551410198212, -0.017804238945245743, + 0.0029115816578269005, 0.0007692791987210512, 0.009748188778758049, 0.012249610386788845, + -0.025485076010227203, -0.014780460856854916, -0.00040602125227451324, -0.01317660789936781, + 0.0017767453100532293, 0.009571617469191551, 0.00117713981308043, -0.019084379076957703, + 0.0051941294223070145, 0.009137547574937344, -0.02763335593044758, -0.010498614981770515, + 0.02763335593044758, 0.009063975885510445, 0.00041774666169658303, 0.004892487078905106, + 0.017509954050183296, -0.01459653303027153, -0.00023531299666501582, 0.04649702087044716, + 0.009843830950558186, 0.022601082921028137, 0.01217603962868452, -0.002878474537283182, + 0.01815738156437874, -0.03084106184542179, -0.02745678462088108, -0.0023101367987692356, + 0.001088854274712503, -0.020393947139382362, 0.002177708549425006, -0.04623216390609741, + 0.01581781543791294, -0.02660335786640644, -0.018422236666083336, 0.02833963930606842, + -0.032224200665950775, 0.009505403228104115, 0.04378959909081459, -0.019305091351270676, + -0.00027014437364414334, 0.03204762935638428, 0.010189616121351719, -0.019981946796178818, + 0.032312486320734024, 0.000429701991379261, 0.02477879263460636, 0.020761802792549133, + 0.06127012521028519, -0.023351509124040604, -0.033107057213783264, -0.040729034692049026, + 0.01803966611623764, -0.008983047679066658, -0.0215122289955616, -0.013669535517692566, + 0.005032272543758154, 0.0096599031239748, -0.017053812742233276, -0.03275391459465027, + 0.03098820336163044, 0.0058746631257236, 0.010219044983386993, -0.02956092171370983, + 0.0035884371027350426, 0.013772535137832165, 0.024793505668640137, 0.021335657685995102, + 0.007607265841215849, -0.04311274364590645, -0.005197807680815458, -0.002731332089751959, + 0.0019294056110084057, 0.0017224865732714534, -0.01590610109269619, 0.031253062188625336, + -0.028604496270418167, -0.01645052805542946, -0.0021574764978140593, -0.011506541632115841, + 0.004520952235907316, 0.030370205640792847, -0.010211687535047531, 0.022689368575811386, + -0.0015183263458311558, 0.003490955103188753, 0.0052198790945112705, 0.009424475021660328, + 0.024749362841248512, 0.02675050124526024, 0.0046423450112342834, -0.00039153691614046693, + -0.0076955510303378105, -0.00504330825060606, 0.01752466894686222, 0.03543190658092499, + -0.02051166072487831, -0.00729090953245759, 0.013809320516884327, 0.028295496478676796, + 0.016170958057045937, -0.0004464854428078979, 0.020908944308757782, -0.00626091193407774, + 0.019599376246333122, -0.028045354411005974, 0.014110962860286236, 0.007044445723295212, + -0.01142561249434948, 0.007114338222891092, 0.01971709169447422, 0.01007190253585577, + 0.0027037428226321936, 0.0020305661018937826, 0.007636694237589836, -0.038374755531549454, + 0.003604990430176258, 0.00941711850464344, 0.022071370854973793, 0.019040236249566078, + -0.006065948400646448, -0.021615229547023773, 0.01752466894686222, -0.02404307946562767, + -0.029472636058926582, 0.01424339134246111, 0.012698395177721977, -0.034931622445583344, + -0.0009794171201065183, 0.008534262888133526, -0.01445674803107977, -0.012433539144694805, + 0.02188008464872837, 0.007386552169919014, 0.004649701993912458, 0.018790094181895256, + 0.017627667635679245, 0.01142561249434948, -0.03201820328831673, -0.01801023818552494, + -0.014522962272167206, -0.008659333921968937, 0.03275391459465027, -0.03266562893986702, + -0.007026053033769131, -0.017568811774253845, -0.01226432528346777, 0.00039843423292040825, + 0.01706852577626705, -0.016582956537604332, -0.019820090383291245, 0.021409230306744576, + 0.001914691412821412, -0.029001781716942787, 0.04222988709807396, 0.030120063573122025, + 0.004016989376395941, -0.015258674509823322, 0.04376016929745674, 0.013963820412755013, + 0.005197807680815458, -0.014302248135209084, -0.008909476920962334, 0.0342547670006752, + 0.006963517516851425, -0.009578974917531013, -0.013095679692924023, -0.02620607428252697, + 0.008725548163056374, 0.04526102542877197, 0.0005361503572203219, -0.013441464863717556, + -0.023366224020719528, 0.025955932214856148, 0.03245962783694267, -0.018024953082203865, + 0.0192903783172369, -0.034048765897750854, -0.0346079096198082, -0.026161931455135345, + -0.006628768052905798, -0.018848950043320656, 0.008526906371116638, 0.013507679104804993, + 0.013522393070161343, -0.019069664180278778, -0.057885847985744476, 0.005124236457049847, + -0.0024499220307916403, -0.014221319928765297, 0.0020894231274724007, -0.017142098397016525, + 0.020187946036458015, 0.0010539079084992409, 0.05673813819885254, -0.033107057213783264, + -0.005631878040730953, 0.005782699212431908, -0.009608402848243713, -0.023631080985069275, + -0.027339071035385132, -0.036550190299749374, -0.0006529447273351252, -0.02392536588013172, + -0.008585763163864613, -0.03552019223570824, 0.003021938493475318, -3.2798113807075424e-6, + 0.016656527295708656, 0.0022218513768166304, 0.017686525359749794, -0.007151124067604542, + ], + index: 92, + }, + { + title: "Beni Mellal", + text: "Beni-Mellal (Berber: Bni Mellal, Arabic: \u0628\u0646\u064a \u0645\u0644\u0627\u0644\u200e) is a Moroccan city located at (32\u00b020\u203222\u2033N 6\u00b021\u203239\u2033W). It is the capital city of the Tadla-Azilal Region, with a population of 489,248 (2010 census).", + vector: [ + 0.017672881484031677, 0.031421344727277756, 0.007017173338681459, -0.010213885456323624, + 0.03908825293183327, 0.0003459856379777193, -0.06684507429599762, -0.025365782901644707, + -0.026197446510195732, -0.06325852125883102, -0.01639939472079277, -0.01394338347017765, + -0.046391312032938004, 0.03994590789079666, 0.021376390010118484, 0.017114106565713882, + -0.02446914277970791, 0.014554137364029884, 0.02910827472805977, -0.016594314947724342, + -0.012364519760012627, -0.0002984735183417797, 0.036489300429821014, 0.03552768751978874, + -0.019518136978149414, -0.008946896530687809, -0.009622624143958092, -0.014943980611860752, + -0.013774451799690723, -0.04368840157985687, -0.012455482967197895, 0.004246039781719446, + 0.016763247549533844, -0.003437115577980876, -0.0062959641218185425, -0.0059808408841490746, + -0.03521581366658211, -0.014749058522284031, -0.0070106759667396545, 0.05247286334633827, + 0.019959960132837296, -0.02793874591588974, -0.04160923883318901, 0.007030168082565069, + 0.03508586809039116, -0.05847644433379173, 0.06596142798662186, -0.01734801195561886, + 0.00348259718157351, -0.01972605474293232, 0.022870786488056183, 0.01895936205983162, + -0.03446211665868759, -0.028692442923784256, 0.029758013784885406, 0.011903204955160618, + 0.03355248644948006, 0.1191360130906105, -0.020635686814785004, 0.02255891263484955, + -0.005964597221463919, -0.026977133005857468, 0.022039122879505157, 0.014450179412961006, + 0.02228602208197117, 0.04428616166114807, -0.02307870425283909, 0.00851157121360302, + 0.026405364274978638, 0.03019983507692814, -0.004938011057674885, 0.020648682489991188, + -0.04761281982064247, -0.02228602208197117, -0.028562495484948158, 0.04267480969429016, + 0.013839425519108772, -0.00972658209502697, 0.051199376583099365, 0.009486178867518902, + -0.00754346139729023, -0.061543211340904236, 0.01625645160675049, 0.01476205326616764, + -0.0011484123533591628, 0.031993113458156586, 0.002546973992139101, -0.0536423921585083, + -0.037528883665800095, 0.01890738308429718, -0.030459729954600334, -0.0026103234849870205, + -0.04498787969350815, 0.015749655663967133, 0.005529272835701704, 0.0065915947780013084, + -0.003152854973450303, 0.005990586709231138, 0.033110663294792175, 0.019414179027080536, + -0.02161029540002346, -0.00031857480644248426, -0.01271537784487009, -0.05049765855073929, + 0.00784234143793583, 0.06518174707889557, 0.03599550202488899, -0.04925016313791275, + 0.02895233780145645, -0.012007162906229496, 0.019089311361312866, -0.004967248998582363, + 0.04015382379293442, 0.005155673250555992, -0.03004389815032482, 0.007458995562046766, + -0.01841358281672001, -0.010727179236710072, 0.017724860459566116, 0.0008893292397260666, + -0.04568959400057793, -0.01607452519237995, 0.019933970645070076, -0.0005908557213842869, + 0.008531063795089722, 0.005607241299003363, 0.013917393982410431, -0.020856598392128944, + -0.006627330556511879, -0.003375390311703086, -0.04228496551513672, -0.034722015261650085, + -0.012526953592896461, 0.010311346501111984, -0.0581645704805851, -0.03295472636818886, + 0.043480485677719116, -0.015580723993480206, 0.006614335812628269, -0.03165524825453758, + -0.012617917731404305, -0.018595509231090546, -0.07162714749574661, 0.046781156212091446, + -0.030355772003531456, -0.06253080815076828, -0.011682294309139252, 0.00957714207470417, + 0.07162714749574661, 0.0210645142942667, 0.010727179236710072, -0.011974676512181759, + -0.01580163463950157, -0.0003599956107791513, 0.03157728165388107, 0.03869841247797012, + -0.0038821862544864416, 0.006042566150426865, -0.023585500195622444, -0.04618339613080025, + 0.07329047471284866, 0.05166718736290932, 0.05754082277417183, 0.03415024280548096, + -0.019933970645070076, -0.008251676335930824, -0.0036255395971238613, 0.014632105827331543, + 0.001154097612015903, 0.014593121595680714, -0.038152631372213364, 0.0006793825887143612, + -0.05296666547656059, -0.07516172528266907, 0.05034172162413597, -0.008602534420788288, + 0.07536964118480682, 0.025989530608057976, 0.02079162560403347, 0.016620304435491562, + 0.03435815870761871, -0.028068693354725838, 0.025274818763136864, -0.00866101123392582, + 0.010018964298069477, -0.051823124289512634, 0.009642115794122219, -0.059983838349580765, + 0.04264882206916809, -0.009356231428682804, -0.06840444356203079, 0.007666911464184523, + 0.04636532440781593, 0.014177288860082626, 0.028302598744630814, 0.03817862272262573, + -0.013774451799690723, 0.02073964662849903, 0.04657324030995369, 0.008082743734121323, + 0.018296629190444946, 0.028380567207932472, -0.04893828555941582, 0.03927018120884895, + 0.08602534979581833, 0.020063918083906174, 0.019843006506562233, -0.03337055817246437, + -0.02848452515900135, 0.051277343183755875, -0.0010907481191679835, 0.005311610642820597, + -0.023832399398088455, 0.012254063971340656, 0.07178308814764023, -0.013410598039627075, + 0.004220050293952227, -0.028796400874853134, 0.011727775447070599, 0.028770411387085915, + 0.01083113718777895, -0.03745091333985329, -0.08280264586210251, -0.0642981007695198, + -0.0028799648862332106, 0.011136514134705067, 0.004986741114407778, 0.007062654942274094, + -0.04870438203215599, -0.0118967080488801, -0.023559510707855225, -0.007569450885057449, + -0.008303655311465263, -0.0022269778419286013, -0.03329258784651756, 0.02359849400818348, + 0.031447332352399826, -0.019440168514847755, -0.021298421546816826, 0.026418358087539673, + 0.015762651339173317, 0.014151299372315407, -0.024573100730776787, 0.0058021629229187965, + 0.0366712287068367, -0.037476904690265656, -0.026639269664883614, -0.0018777436343953013, + 0.04015382379293442, 0.011669299565255642, -0.0058508929796516895, -0.013189687393605709, + 0.018725456669926643, 0.013462577015161514, -0.0017851559678092599, -0.01051926240324974, + -0.009408210404217243, 0.038048673421144485, 0.019011342898011208, -0.027237027883529663, + -0.014099320396780968, 0.01811470277607441, -0.01734801195561886, 0.0128778126090765, + 0.020011939108371735, 0.010525760240852833, -0.05164119973778725, 0.013098723255097866, + -0.04004986584186554, 0.008303655311465263, -0.05164119973778725, -0.01925824210047722, + 0.022545918822288513, 0.04168720915913582, 0.02248094417154789, -0.013735467568039894, + 0.008401116356253624, -0.023780420422554016, 0.0018956114072352648, -0.050133805721998215, + 0.055669575929641724, 0.03942611813545227, 0.017205068841576576, 0.005610490217804909, + -0.04049168899655342, 0.014060336165130138, 0.008712990209460258, -0.04095949977636337, + -0.023663468658924103, -0.005084202159196138, -0.0043922308832407, 0.01069469191133976, + -0.003706756979227066, 0.017140096053481102, -0.03661924973130226, 0.01967407576739788, + 0.011708283796906471, 0.007088644430041313, 0.00018923627794720232, 0.02851051650941372, + -0.027548903599381447, 0.0027256521862000227, -0.012546446174383163, 0.019635090604424477, + -0.02496294490993023, -0.0012629288248717785, 0.04381835088133812, 0.009239278733730316, + -0.02079162560403347, -0.020037928596138954, -0.01645137369632721, -0.025794610381126404, + 0.024625081568956375, -0.017685875296592712, -0.03615143895149231, -0.00845959223806858, + -0.022052116692066193, -0.02079162560403347, -0.03165524825453758, 0.028666453436017036, + -0.016906190663576126, -0.04145330190658569, -0.001793277682736516, -0.04932812973856926, + -0.036905135959386826, 0.02352052554488182, -0.0003599956107791513, 0.00867400597780943, + 0.010109927505254745, -0.05858040228486061, -0.05080953240394592, 0.011052047833800316, + -0.03895830735564232, -0.016243457794189453, -0.020635686814785004, 0.022169070318341255, + 0.0357356034219265, -0.025443751364946365, 0.006140026729553938, 0.0026720487512648106, + -8.172489469870925e-5, 0.02029782347381115, 0.028380567207932472, 0.01773785427212715, + 0.05044567957520485, 0.009707089513540268, -0.01925824210047722, 0.017127100378274918, + 0.02791275642812252, -0.005048466380685568, 0.0004954254254698753, -0.008914409205317497, + -0.024729039520025253, 0.03739893436431885, 0.020128892734646797, -0.045247774571180344, + -0.04870438203215599, -0.024975938722491264, -0.026587290689349174, 0.026483332738280296, + -0.015489760786294937, -0.025105886161327362, -0.02793874591588974, 0.0017981507116928697, + -0.022584902122616768, -0.005464299116283655, 0.006520123686641455, 0.008920906111598015, + -0.016568325459957123, -0.011389912106096745, 0.06045164912939072, 0.04379235953092575, + 0.0038432020228356123, 0.06939204782247543, -0.0028149911668151617, 0.03009587712585926, + 0.03022582456469536, 0.0028734675142914057, 0.0032584373839199543, -0.01065570767968893, + -0.023169666528701782, -0.0064746420830488205, -0.008056754246354103, -0.03544972091913223, + -0.00859603751450777, -0.004915270023047924, 0.045195795595645905, -0.033188629895448685, + -0.01816668175160885, -0.027756819501519203, 0.006497382652014494, -0.03495591878890991, + 0.038646433502435684, -0.02843254618346691, 0.03955606743693352, 0.02908228524029255, + -0.024923959746956825, -0.010889613069593906, 0.020830608904361725, -0.009908508509397507, + -0.0007541024824604392, -0.007796859368681908, 0.004609893076121807, -0.020167876034975052, + 0.02046675607562065, -0.015385802835226059, 0.014333226718008518, -0.09881220012903214, + 0.024495132267475128, 0.01942717470228672, 0.011298948898911476, -0.00029360048938542604, + -0.008095738478004932, 0.007270571310073137, -0.02089558355510235, -0.028692442923784256, + 0.014372210949659348, 0.0038821862544864416, -0.043506473302841187, -0.026665259152650833, + -0.02602851577103138, -0.037996694445610046, -0.0015869857743382454, -0.014814033173024654, + -0.033630453050136566, 0.04555964842438698, -0.04787271469831467, 0.03238295391201973, + -0.03009587712585926, 0.036489300429821014, -0.05073156580328941, -0.007400518748909235, + -0.034280192106962204, 0.01506093330681324, 0.048574432730674744, 0.008355634286999702, + 0.04389631748199463, -0.007160115987062454, 0.004847047384828329, 0.020206861197948456, + 0.004434463568031788, -0.004233045037835836, -0.026314400136470795, 0.06653320044279099, + -0.03378638997673988, -0.00022903273929841816, 0.02793874591588974, -0.04361043497920036, + 0.004236293490976095, -0.012650404125452042, -0.0548379123210907, 0.026951143518090248, + -0.023663468658924103, 0.04036174342036247, 0.01274136733263731, 0.00433050561696291, + 0.02163628488779068, 0.04457204416394234, -0.0030375265050679445, 0.008173707872629166, + -0.033734411001205444, -0.0057404376566410065, -0.028770411387085915, -0.01476205326616764, + 0.009193796664476395, -0.027003122493624687, -0.00755645614117384, 0.05644926056265831, + 0.014216273091733456, 0.030797595158219337, 0.01704913191497326, 0.06741684675216675, + -0.02354651503264904, -0.020921573042869568, 0.018764441832900047, -0.028068693354725838, + -0.029861971735954285, -0.0487823486328125, -0.025963541120290756, -0.020128892734646797, + 0.03765882924199104, 0.002482000272721052, -0.02294875681400299, 0.012143608182668686, + 0.009785058908164501, 0.02076563611626625, -0.014359216205775738, -0.010350330732762814, + -0.023949353024363518, -0.013449582271277905, 0.008855932392179966, -0.018972357735037804, + 0.006075053010135889, 0.033136650919914246, -0.01058423612266779, 0.01702314242720604, + 0.00754346139729023, -0.0097655663266778, -0.06346643716096878, 0.01202015858143568, + -0.028224630281329155, 0.006201751995831728, 0.02144136279821396, -0.00967460311949253, + 0.03773679956793785, 0.042908716946840286, -0.035891544073820114, -0.032538894563913345, + 0.02461208589375019, -0.015541739761829376, 0.009733079001307487, 0.03552768751978874, + 0.020726650953292847, -0.02270185574889183, -0.008180204778909683, -0.026743227615952492, + 0.017425980418920517, -0.030797595158219337, -0.03602148965001106, -0.006497382652014494, + 0.009992974810302258, -0.01950514316558838, 0.0009664857061579823, 0.024196254089474678, + -0.015008954331278801, -0.007329047657549381, -0.015775645151734352, -0.020583707839250565, + -0.006243984680622816, -0.07490182667970657, 0.004307764582335949, 0.012819335795938969, + -0.013709478080272675, 0.02471604384481907, 0.009375723078846931, 0.006672812160104513, + -0.023754430934786797, -0.03732096776366234, -0.04641730338335037, 0.00975257158279419, + -0.007647419348359108, 0.010454288683831692, 0.0354757085442543, 0.0075044771656394005, + 0.02446914277970791, 0.011565341614186764, 0.03071962483227253, 0.014515153132379055, + -0.009518666192889214, -0.011181996203958988, 0.04106345772743225, -0.010798649862408638, + 0.023442557081580162, -0.020609697327017784, -0.04418220371007919, 0.021753236651420593, + 0.004934762138873339, -0.02161029540002346, -0.02632739581167698, 0.019076315686106682, + 0.028848379850387573, -0.025911562144756317, -0.007335545029491186, 0.021233446896076202, + -0.026951143518090248, 0.00955115258693695, -0.00972658209502697, 0.004512432496994734, + 0.017153089866042137, -0.022091101855039597, 0.010337335988879204, -0.017101110890507698, + 0.03500789776444435, -0.025599688291549683, -0.0014675963902845979, -0.013748462311923504, + 0.008017770014703274, -0.013371613807976246, -0.015125907026231289, 0.0003518738958518952, + 0.02404031716287136, -0.021896179765462875, 0.051797136664390564, 0.004171319771558046, + 0.007153618615120649, -0.003982895519584417, 0.040257785469293594, -0.005288869608193636, + 0.005526023916900158, 0.012169597670435905, 0.08004775643348694, -0.02900431677699089, + -0.02346854656934738, -0.00985003262758255, -0.02294875681400299, -0.0172700434923172, + 0.012936289422214031, 0.010246372781693935, -0.004460453055799007, 0.005958099849522114, + -0.010590733960270882, -0.01285182312130928, 0.015502755530178547, 0.001162219326943159, + 0.05650123953819275, -0.007744880393147469, -0.004103097133338451, 0.019843006506562233, + -0.02431320585310459, -0.000877958838827908, -0.011013063602149487, 0.021597299724817276, + 0.01395637821406126, 0.0026785461232066154, -0.01945316419005394, 0.009109330363571644, + -0.01095458772033453, -0.04389631748199463, -0.000756538996938616, -0.07562953233718872, + -0.012474974617362022, -0.016711268573999405, 0.0074460008181631565, -0.0007134938496164978, + -0.008043759502470493, -0.009992974810302258, 0.017140096053481102, -0.0010330838849768043, + 0.006926210131496191, -0.03069363534450531, 0.019466158002614975, 0.021675268188118935, + 0.018127698451280594, 0.0017071872716769576, -0.004743089433759451, -0.0195311326533556, + -0.007465492933988571, -0.012910299934446812, -0.017412986606359482, -0.010155409574508667, + 0.020427770912647247, -0.01830962486565113, 0.0013092226581647992, -0.04719698801636696, + -0.008979382924735546, 0.00039227947127074003, -0.006705299019813538, -0.006536366883665323, + -0.005292118061333895, -0.006624081637710333, 0.023689458146691322, -0.03724299743771553, + 0.01912829466164112, 0.006429160479456186, -0.006913215387612581, 0.0014667841605842113, + 0.01590559259057045, -0.012832330539822578, 0.023481542244553566, 0.011454885825514793, + -0.03570961579680443, -0.016711268573999405, 0.0032600618433207273, -0.007608435116708279, + 0.03617742657661438, 0.0030245317611843348, -0.0442601703107357, 0.03498191013932228, + 0.033136650919914246, -0.01858251541852951, -0.040283773094415665, -0.03126540407538414, + 0.005025725346058607, -0.011214482598006725, 0.006153021473437548, 0.006640325300395489, + -0.06705299019813538, -0.01069469191133976, -0.0037327464669942856, 0.012721875682473183, + 0.017659885808825493, -0.02436518482863903, -0.015294838696718216, 0.060503628104925156, + -0.032590873539447784, 0.0017542933346703649, -0.0295500960201025, 0.00037420864100567997, + 0.016802232712507248, -0.0017851559678092599, 0.051277343183755875, 0.0033851363696157932, + -0.025885572656989098, -0.018348608165979385, 0.014606116339564323, -0.004847047384828329, + 0.012312540784478188, -0.039218202233314514, -0.015593718737363815, -0.03734695538878441, + -0.006630579009652138, -0.015762651339173317, -0.051745157688856125, -0.009278262965381145, + -0.02791275642812252, 0.035813573747873306, 0.0024072802625596523, -0.032123059034347534, + 0.03191514313220978, -0.02515786699950695, 0.0019443418132141232, -0.0025453497655689716, + 0.05112140625715256, 0.012923294678330421, -0.022883782163262367, -0.01890738308429718, + -0.0020223103929311037, 0.008803953416645527, 0.01734801195561886, 0.0069002206437289715, + 0.024183258414268494, 0.04293470457196236, 0.0005027349689044058, -0.008966388180851936, + -0.014956975355744362, -0.0026476834900677204, 0.008186702616512775, -0.01256593782454729, + -0.022584902122616768, 0.0016430256655439734, -0.06835246831178665, 0.005152424331754446, + -0.01478804275393486, 0.010129420086741447, -0.0070691523142158985, 0.011104026809334755, + 0.001187396701425314, -0.012260560877621174, 0.01623046211898327, 0.01895936205983162, + -0.0017299281898885965, -0.04314262047410011, 0.040777575224637985, -0.03846450522542, + -0.01751694455742836, 0.023962346836924553, -0.017828818410634995, 0.012819335795938969, + 0.0015082049649208784, 0.005815157666802406, 0.01304024737328291, -0.009304252453148365, + 0.017776839435100555, -0.03888033702969551, -0.014476168900728226, 0.04218100756406784, + 0.07703296840190887, 0.013098723255097866, 0.005958099849522114, -0.050575628876686096, + -0.023286620154976845, -0.039166223257780075, 0.043558452278375626, -0.00949267577379942, + -0.004986741114407778, -0.0351378470659256, -0.057800717651844025, 0.005600743927061558, + -0.015424787066876888, 0.019414179027080536, 0.006672812160104513, -0.01702314242720604, + 0.007166613359004259, 0.02228602208197117, 0.042986683547496796, 0.020908577367663383, + 0.051771145313978195, -0.02384539507329464, -0.017412986606359482, -0.023936357349157333, + 0.017893793061375618, -0.03823060169816017, 0.05473395064473152, 0.030771605670452118, + 0.013566534966230392, 0.03469602391123772, -0.009447194635868073, -0.034202221781015396, + -0.010590733960270882, -0.025352787226438522, -0.00851157121360302, -0.032668840140104294, + -0.02485898695886135, -0.011851225979626179, -0.007907315157353878, 0.021220451220870018, + -0.0007435442530550063, -0.013007760047912598, 0.012929791584610939, 0.020674671977758408, + 0.004687861539423466, -0.01509991753846407, 0.029835982248187065, 0.03136936575174332, + -0.0012840452836826444, 0.03326660022139549, -0.016035540029406548, 0.010148911736905575, + 0.010285357013344765, -0.014892001636326313, -0.008992377668619156, -0.02044076658785343, + 0.00048811588203534484, -0.0078033567406237125, 0.004876285791397095, 0.0023260631132870913, + 0.0330067053437233, -0.0006107539520598948, 0.025794610381126404, 0.03352649509906769, + 0.05416218191385269, -0.028900358825922012, 0.009031361900269985, -0.02595054730772972, + 0.0007082147058099508, -0.010207388550043106, 0.0012669896241277456, -0.005454552825540304, + -0.04020580276846886, 0.013228671625256538, -0.010012466460466385, 0.026691248640418053, + -0.03882835805416107, -0.0027597632724791765, -0.019037332385778427, -0.023143677040934563, + -0.057124990969896317, -0.005724193993955851, -0.0012182592181488872, 0.04883432760834694, + -0.013397603295743465, 0.007627927232533693, 0.06065956503152847, -0.004704105202108622, + -0.007218592334538698, 0.03136936575174332, 0.03191514313220978, -0.027081090956926346, + 0.024703050032258034, -0.008284162729978561, 0.002542101079598069, 0.005698204506188631, + -0.024079300463199615, -0.0127283725887537, -0.009661608375608921, -0.022350996732711792, + 0.01868647336959839, 0.0028620969969779253, 0.010077441111207008, 0.031109469011425972, + 0.001973580103367567, -0.0003626351826824248, -0.005210901144891977, -0.03734695538878441, + -0.0033494008239358664, -0.008115231059491634, -0.03924419358372688, -0.0075629535131156445, + 0.003107373369857669, 0.020999541506171227, 0.00832314696162939, -0.04329855740070343, + 0.014736063778400421, 0.020583707839250565, 0.020154882222414017, -0.018231656402349472, + -0.012845325283706188, 0.04010184481739998, 0.008297157473862171, 0.011552346870303154, + 0.021675268188118935, 0.025937551632523537, 0.020726650953292847, -0.012949284166097641, + -0.053486455231904984, 0.013917393982410431, -0.0075629535131156445, -0.025118881836533546, + -0.028328588232398033, -0.045715585350990295, -0.005282372236251831, -0.03220102936029434, + 0.033084671944379807, -0.001965458272024989, 0.028822390362620354, 0.019193269312381744, + 0.0059808408841490746, 0.012643907219171524, -0.026366379112005234, -0.001351455575786531, + 0.034176234155893326, -0.018374597653746605, 0.008667509071528912, -0.010168404318392277, + 0.024923959746956825, -0.01977803371846676, 0.015125907026231289, 0.02161029540002346, + 0.0011792749864980578, 0.01781582273542881, -0.005555262323468924, 0.016009550541639328, + 0.01945316419005394, -0.0327468104660511, -0.01808871328830719, -0.020037928596138954, + -0.009083340875804424, 0.030797595158219337, 0.006084798835217953, 0.04345449432730675, + 0.03064165636897087, 0.0018143941415473819, 0.004629385191947222, -0.06253080815076828, + 0.0012645531678572297, -0.002853975398465991, 0.010168404318392277, 0.03383836895227432, + 0.0295500960201025, -0.003960154950618744, 0.030511708930134773, 0.009512168355286121, + 0.009570645168423653, 0.005951602477580309, 0.05416218191385269, -0.01365749817341566, + 0.010408807545900345, 0.016295436769723892, -0.009947492741048336, -0.0014034346677362919, + 0.01923225261271, -0.024845991283655167, 0.022299017757177353, -0.01316369790583849, + -0.026119478046894073, -0.01803673431277275, -0.010233378037810326, 0.0019232253544032574, + -0.023910367861390114, 0.02292276732623577, -0.010486776009202003, -0.0469890721142292, + -0.007679906208068132, 0.011110524646937847, 0.04654724895954132, 0.03544972091913223, + -0.03282477706670761, 0.023286620154976845, -0.05265479162335396, 0.014853017404675484, + 0.023104693740606308, 0.020401781424880028, -0.03191514313220978, 0.014021351933479309, + 0.00493151368573308, 0.0073745292611420155, -0.0028344832826405764, -0.018023740500211716, + 0.03139535337686539, -0.014229267835617065, -0.005318108014762402, 0.0366712287068367, + 0.03981596231460571, 0.04181715473532677, -0.040257785469293594, 0.002548598451539874, + -0.02193516492843628, 0.0140083571895957, 0.039114244282245636, 0.010727179236710072, + 0.020986545830965042, -0.015918588265776634, 0.03625539690256119, -0.02218206413090229, + 0.049094222486019135, 0.06372632831335068, -0.01208513230085373, -0.019466158002614975, + 0.023689458146691322, 0.014242262579500675, -0.021896179765462875, -0.05473395064473152, + 0.01882941462099552, -0.011792750097811222, 0.030355772003531456, 0.006029571406543255, + 0.0035345761571079493, 0.0233256034553051, 0.011104026809334755, -0.009928001090884209, + 0.00597434351220727, -0.006815754342824221, 0.019765038043260574, -0.015385802835226059, + 0.051797136664390564, -0.0006968443049117923, -0.03134337440133095, 0.003183717606589198, + 0.006744283251464367, 0.025079896673560143, 0.0008121728315018117, 0.025989530608057976, + -0.0030716375913470984, 0.03555367887020111, 0.0351378470659256, 0.011136514134705067, + -0.021571310237050056, 0.00987602211534977, 0.024183258414268494, 0.013085728511214256, + 0.017361007630825043, 0.012637409381568432, -0.02848452515900135, 0.028744421899318695, + -0.02461208589375019, 0.013878409750759602, 0.011246969923377037, -0.04589751362800598, + 0.0330067053437233, -0.006455149967223406, -0.003100875997915864, 0.005288869608193636, + 0.009265268221497536, 0.03745091333985329, -0.04490990936756134, -0.015528745017945766, + 0.03355248644948006, 0.017711864784359932, 0.010538754984736443, -0.009798053652048111, + -0.004447458311915398, 0.02084360457956791, -0.014372210949659348, 0.012585430406033993, + -0.02114248275756836, -0.017724860459566116, -0.014619111083447933, -0.020986545830965042, + -0.0077513777650892735, 0.01860850490629673, -0.004694358911365271, -0.014593121595680714, + 0.012117618694901466, -0.0005847644642926753, 0.010018964298069477, -0.01565869338810444, + -0.003159352345392108, -0.009102833457291126, -0.012487969361245632, -0.013631508685648441, + 0.0007260825368575752, -0.02357250452041626, -0.03500789776444435, -0.0017802828224375844, + 0.010987074114382267, 0.04228496551513672, 0.03282477706670761, 0.011305445805191994, + 0.02436518482863903, 0.011039053089916706, -0.0048080631531775, -0.014671090058982372, + -0.0019817017018795013, 0.002015813020989299, 0.03170722723007202, 0.0354757085442543, + 0.01669827289879322, -0.0219611544162035, 0.02962806634604931, -0.02079162560403347, + 0.008394618518650532, 0.0022091101855039597, 0.02193516492843628, 0.01504793856292963, + 0.015749655663967133, -0.023832399398088455, 0.0005543079460039735, -0.00849857646971941, + -0.028354577720165253, -0.02567765675485134, -0.008134723640978336, 0.0210645142942667, + -0.030797595158219337, 0.009343236684799194, 0.014463174156844616, -0.016763247549533844, + 0.02731499634683132, -0.0032389452680945396, -0.0055617596954107285, -0.0307456161826849, + -0.011084535159170628, 5.908557432121597e-5, 0.023442557081580162, -0.007900817319750786, + -0.016529342159628868, -0.003713254351168871, -0.028666453436017036, 0.05143328383564949, + -0.028562495484948158, -0.04587152227759361, -0.02277982421219349, 0.03680117428302765, + 0.04171319678425789, 0.01888139359652996, 0.010356828570365906, -0.00652662105858326, + 0.015723666176199913, 0.015333822928369045, 0.008940398693084717, 0.026717238128185272, + -0.0030586428474634886, 0.012799844145774841, -0.0031853418331593275, -0.008011273108422756, + 0.04259684309363365, -0.02952410653233528, -0.022221049293875694, 0.02002493292093277, + 0.002553471364080906, -0.018673477694392204, -0.026613280177116394, 0.008290660567581654, + 0.028276609256863594, 0.02223404310643673, 0.043922308832407, -0.009557650424540043, + 0.003580057993531227, 0.003924419172108173, 0.0001221304846694693, -0.01399536244571209, + 0.009336738847196102, 0.024300212040543556, -0.010194393806159496, 0.021376390010118484, + 0.0131766926497221, -0.011233975179493427, -0.01278035156428814, -0.0015926709165796638, + -0.02796473540365696, 0.03004389815032482, 0.028744421899318695, -0.0038334557320922613, + -0.0035703119356185198, 0.001139478525146842, -8.253706619143486e-5, -0.028250619769096375, + 0.0012921669986099005, -0.01920626312494278, -0.06372632831335068, -0.016321426257491112, + -0.011981173418462276, 0.02692515403032303, -0.008479084819555283, 0.03170722723007202, + 0.004031626041978598, -0.013397603295743465, -0.010226880200207233, -0.026197446510195732, + 0.0043175108730793, 0.03157728165388107, -0.017750849947333336, 0.02580760419368744, + -0.025079896673560143, 0.001905357465147972, -0.01972605474293232, -0.06653320044279099, + -0.023403571918606758, -0.036359354853630066, 0.0061660162173211575, -0.049588024616241455, + -0.025118881836533546, 0.021155478432774544, -0.008907911367714405, 0.03456607460975647, + -0.004031626041978598, -0.022325007244944572, -0.027756819501519203, 0.028328588232398033, + 0.006084798835217953, -0.030433740466833115, -0.002205861499533057, 0.007523969281464815, + 0.005704701878130436, 0.01650335267186165, 0.016802232712507248, 0.0007102451636455953, + 0.036957114934921265, 0.028120672330260277, 0.0030212830752134323, -0.02471604384481907, + -0.0034566076938062906, -0.029498117044568062, 0.024300212040543556, -0.020661676302552223, + -0.018075719475746155, 0.023416567593812943, 0.008992377668619156, -0.04101147875189781, + 0.020154882222414017, 0.035397741943597794, -0.032097071409225464, -0.016659289598464966, + -0.0077513777650892735, -0.020037928596138954, -0.0005116689135320485, -0.020336808636784554, + 0.007043162826448679, -0.006620833184570074, 0.020141886547207832, 0.013358619064092636, + 0.03446211665868759, 0.002808493794873357, 0.02213008515536785, 0.024157268926501274, + 0.018205666914582253, 0.004434463568031788, -0.033734411001205444, -0.029809992760419846, + -0.025989530608057976, -0.010181399062275887, 0.020752640441060066, 0.017283037304878235, + -0.01304024737328291, -0.005181662738323212, -0.05520176514983177, -0.008751974441111088, + 0.014073330909013748, 0.03825658932328224, -0.016061529517173767, 0.011630315333604813, + -0.013248163275420666, 0.010142414830625057, -0.024209247902035713, 0.020804619416594505, + 0.01582762412726879, 0.06502580642700195, -0.0060393172316253185, -0.006705299019813538, + -0.017335018143057823, -0.015450776554644108, 0.019881991669535637, 0.0018192671705037355, + -0.006815754342824221, 0.0130272526293993, -0.001158158527687192, 0.005971094593405724, + 0.020921573042869568, 0.011552346870303154, 0.01645137369632721, 0.012273555621504784, + -0.009992974810302258, -0.010402309708297253, -0.023130683228373528, 0.03376040235161781, + -0.02567765675485134, 0.030329782515764236, 0.015346817672252655, 0.03843851760029793, + 0.029887961223721504, 0.0497179739177227, 0.03890632838010788, 0.014489163644611835, + 0.0010103429667651653, -0.008699995465576649, -0.02044076658785343, 0.010051450692117214, + -0.02292276732623577, 0.009525163099169731, 0.023663468658924103, -0.020960556343197823, + -0.009668105281889439, -0.0025226089637726545, -0.017114106565713882, -0.027548903599381447, + 0.03230498731136322, -0.042440902441740036, -0.019894985482096672, -0.011669299565255642, + 0.02550872415304184, 0.02739296667277813, 0.02384539507329464, -0.04205106198787689, + -0.01476205326616764, 0.02456010691821575, -0.053434476256370544, -0.01173427328467369, + -0.00871948804706335, 0.03017384558916092, -0.0051979064010083675, -0.02622343599796295, + 0.013209179043769836, 0.001120798522606492, 0.004986741114407778, 0.024807007983326912, + 0.017880797386169434, 0.009772063232958317, -0.002361798658967018, -0.013774451799690723, + -0.008303655311465263, 0.014606116339564323, -0.019037332385778427, 0.01778983324766159, + 5.888253144803457e-5, 0.005227144341915846, 0.01863449439406395, -0.013111717998981476, + -0.0024755029007792473, -0.005480542313307524, 0.015268849208950996, 0.0022887031082063913, + -0.01072068139910698, -0.012936289422214031, -0.008687000721693039, -0.008602534420788288, + -0.04568959400057793, 0.013274152763187885, 0.007523969281464815, 0.013358619064092636, + -0.013222173787653446, -0.03555367887020111, 0.026288410648703575, 0.01637340523302555, + -0.02572963573038578, -0.03555367887020111, 0.03986794129014015, 0.0045806546695530415, + -0.008505074307322502, 0.011402906849980354, 0.016490356996655464, -0.001158158527687192, + 0.011370419524610043, -0.011311943642795086, -7.91868515079841e-5, -0.0016422135522589087, + 0.013865415006875992, 0.01838759332895279, 0.025612682104110718, 0.030901553109288216, + -0.012150106020271778, -0.014099320396780968, 0.020882587879896164, -0.008258173242211342, + -0.03113545849919319, -0.013105221092700958, -0.02845853567123413, -0.007679906208068132, + -0.03508586809039116, 0.028224630281329155, 0.03186316415667534, -0.009135319851338863, + 9.101411706069484e-5, -0.011656304821372032, 0.003934165462851524, 0.011558843776583672, + 0.007777367252856493, -0.03012186661362648, -0.010057948529720306, -0.016737258061766624, + -0.033084671944379807, -0.025794610381126404, 0.03238295391201973, 0.04436412826180458, + -0.0012093253899365664, -0.01623046211898327, -0.014632105827331543, 0.027574893087148666, + 0.0007727824850007892, 0.004986741114407778, -0.0345400869846344, -0.0045221783220767975, + 0.04379235953092575, 0.002525857649743557, -0.0012759235687553883, 0.005022476892918348, + -0.006013327743858099, 0.017231058329343796, -0.015138901770114899, -0.008056754246354103, + -0.026665259152650833, 0.017906786873936653, -0.025222839787602425, 0.018478557467460632, + -0.0014464798150584102, -0.05416218191385269, 0.011500367894768715, -0.026977133005857468, + -0.003982895519584417, 0.026665259152650833, 0.02002493292093277, 0.004483194090425968, + -0.024352191016077995, -0.008069748990237713, -0.006234238855540752, 0.00755645614117384, + -0.0626867488026619, 0.0210645142942667, 0.036931123584508896, 0.026119478046894073, + 0.01393038872629404, 0.030381761491298676, -0.002974177012220025, 0.014177288860082626, + 0.03321462124586105, -0.002590831369161606, 0.009284759871661663, 0.00866101123392582, + 0.015242859721183777, 0.0037392438389360905, -0.02376742660999298, 0.0020434269681572914, + 0.008641518652439117, 0.014242262579500675, -0.002397534204646945, 0.014463174156844616, + 0.023611489683389664, -0.024651071056723595, 0.003632036969065666, 0.0022367241326719522, + -0.027756819501519203, -0.004421468824148178, 0.027107080444693565, 0.0008194823749363422, + -0.004099848680198193, -0.004541670437902212, 0.042960695922374725, -0.010155409574508667, + -0.00738102663308382, -0.008102236315608025, 0.0363333635032177, 0.004544919356703758, + 0.004730094689875841, -0.022013133391737938, 0.03012186661362648, 0.011201487854123116, + -0.034202221781015396, -0.00947968102991581, 0.007322550285607576, -0.03243493661284447, + -0.03490393981337547, 0.002278957050293684, -0.020011939108371735, 0.00635119155049324, + -0.0015187632525339723, 0.027522914111614227, 0.0017396742478013039, 0.02002493292093277, + -0.021623289212584496, -0.0054935370571911335, 0.040725596249103546, 0.028822390362620354, + -0.016165487468242645, -0.043012674897909164, -0.023182662203907967, -0.02736697532236576, + 0.006802759598940611, -0.022870786488056183, 0.016087519004940987, -0.0018322619143873453, + 0.004278526641428471, 0.023754430934786797, -0.013800441287457943, 0.026340389624238014, + -0.016841216012835503, 0.006399922072887421, -0.029861971735954285, -0.00755645614117384, + -0.011695289053022861, 0.015216870233416557, 0.028250619769096375, 0.03469602391123772, + -0.024261226877570152, 0.0017461716197431087, 0.022883782163262367, 0.025326797738671303, + -0.002413777634501457, 0.0048308041878044605, 0.0064746420830488205, -0.001591858803294599, + 0.015359812416136265, -0.02161029540002346, -0.004145330283790827, 0.04966599494218826, + -0.029472127556800842, 0.03771080821752548, -0.016269447281956673, 7.030371489236131e-5, + 0.026262421160936356, 0.03557966649532318, -0.013222173787653446, 0.029861971735954285, + 0.0025144871324300766, -0.04368840157985687, 0.009544655680656433, -0.028042703866958618, + -0.007913812063634396, -0.015528745017945766, -0.02905629575252533, -0.00215875543653965, + -0.001247497508302331, 0.02853650599718094, 0.016529342159628868, 0.02466406486928463, + -0.022818807512521744, -0.016282441094517708, -0.006393424700945616, 0.007595440372824669, + 0.046807143837213516, -0.020128892734646797, 0.016633300110697746, 0.029498117044568062, + 0.008855932392179966, 0.015775645151734352, 0.0015691178850829601, -0.008589539676904678, + -0.014385205693542957, -0.04976995289325714, -0.018842410296201706, -0.05385030806064606, + 0.0009616126772016287, 0.002530730562284589, 0.03004389815032482, -0.007426508702337742, + -0.04501386731863022, 0.02488497644662857, 0.014645100571215153, 0.028094682842493057, + ], + index: 93, + }, + { + title: "High-speed steel", + text: "High-speed steel (HSS or HS) is a subset of tool steels, commonly used in tool bits and cutting tools.It is often used in power-saw blades and drill bits. It is superior to the older high-carbon steel tools used extensively through the 1940s in that it can withstand higher temperatures without losing its temper (hardness). This property allows HSS to cut faster than high carbon steel, hence the name high-speed steel.", + vector: [ + 0.025558795779943466, 0.039122700691223145, -0.023505879566073418, 0.015382200479507446, + 0.037890952080488205, 0.013343948870897293, 0.0008614912512712181, -0.04448960721492767, + 0.011298365890979767, -0.0006002944428473711, -0.00047519488725811243, 0.04290593042969704, + 0.03111632913351059, 0.012852716259658337, -0.007456481456756592, 0.05619122460484505, + 0.022068839520215988, 0.024224400520324707, 0.01000796165317297, -0.0478035993874073, + 0.06475481390953064, -0.028696822002530098, -0.06311248242855072, -0.03284664452075958, + -0.0020675789564847946, -0.02954731695353985, 0.004494417924433947, 0.0025038234889507294, + -0.09150136262178421, -0.02145296521484852, -0.0018705357797443867, -0.007342838216573, + -0.011364351958036423, -0.013167984783649445, 0.058390773832798004, 0.012647424824535847, + -0.008446279913187027, 0.001985095674172044, -0.055311404168605804, 0.00019750144565477967, + 0.025397494435310364, -0.05173346400260925, -0.033726464956998825, 0.038301534950733185, + 0.008475607261061668, 0.001821962301619351, -0.0031141990330070257, 0.002324193250387907, + 0.023344580084085464, -0.005997445434331894, -0.006279721390455961, 0.05129355564713478, + 0.0037575680762529373, 0.0324360616505146, 0.00177155586425215, 0.006466683000326157, + 0.06622117757797241, 0.1239960789680481, -0.016848569735884666, 0.008666235022246838, + -0.04135157912969589, -0.009487401694059372, 0.006704967934638262, -0.024327045306563377, + -0.007064227946102619, -0.025676105171442032, 0.010191258043050766, 0.026995835825800896, + -0.033491846174001694, -0.013409935869276524, -0.06059032678604126, -0.010271907784044743, + 0.08053293079137802, 0.02752372808754444, -0.007771750446408987, -0.006107422988861799, + 0.02783166617155075, 0.005858140531927347, -0.0027384422719478607, -0.007254855707287788, + 0.014949622564017773, 0.020807761698961258, 0.012581437826156616, -0.008160337805747986, + 0.02148229256272316, -0.007144878152757883, -0.004241469781845808, -0.037568349391222, + 0.014260428957641125, -0.015895429998636246, -0.02926870621740818, 0.004743700847029686, + 0.043463148176670074, -0.0006552832201123238, -0.023388570174574852, 0.04217274487018585, + -0.00038240128196775913, -0.012163522653281689, 0.009575383737683296, 0.030207181349396706, + -0.012889374978840351, 0.013571236282587051, 0.00857092160731554, -0.017713725566864014, + -0.0009256448247469962, -0.04457758739590645, -0.00646301731467247, 0.01564614661037922, + 0.03613130748271942, -0.02305130660533905, -0.018564218655228615, -0.026423951610922813, + 0.008717558346688747, -9.760512330103666e-5, 0.01286004763096571, -0.022318121045827866, + 0.02657058835029602, -0.0031581902876496315, 0.013688545674085617, 0.02415108121931553, + -0.04255400225520134, 0.06463750451803207, 0.002666956977918744, 0.007529799826443195, + -0.03419570252299309, 0.028154266998171806, -0.01922408491373062, -0.008160337805747986, + -0.01244946476072073, -0.048448801040649414, 0.005733498837798834, 0.005755494814366102, + 0.0631711333990097, -0.0014535373775288463, 0.01970798708498478, -0.02291933260858059, + 0.036424580961465836, 0.021130364388227463, 0.0093920873478055, 0.010367222130298615, + -0.048888709396123886, -0.005682175979018211, -0.03838951513171196, 0.025998705998063087, + 0.040765032172203064, -0.006268723402172327, -0.022992650046944618, 0.006184407044202089, + -0.019620005041360855, 0.03445965051651001, 0.04047175869345665, -0.02790498360991478, + -0.015734128654003143, -0.026981171220541, -0.0009998796740546823, -0.009736684150993824, + -0.04789157956838608, 0.02772901952266693, -0.028095612302422523, -0.00558319641277194, + 0.02291933260858059, -0.05079498887062073, -0.005744496826082468, 0.029151396825909615, + -0.02469363808631897, 0.009252781979739666, -0.020133232697844505, -0.01991327852010727, + -0.03319857269525528, 0.0148543082177639, 0.03170287609100342, 0.03915202617645264, + 0.020103905349969864, -0.04736368730664253, 0.005586862098425627, 0.00836563017219305, + -0.019356058910489082, 0.016789915040135384, 0.017904354259371758, -0.005935124587267637, + -0.008328970521688461, 0.010873119346797466, 0.031028347089886665, -0.025573458522558212, + 0.013101998716592789, -0.02387247234582901, 0.013497917912900448, 0.07695499807596207, + -0.025353504344820976, -0.020441170781850815, -0.03011919930577278, 0.004780360031872988, + 0.016921887174248695, 0.004076503217220306, -0.000938017328735441, -0.03008987195789814, + -0.03762700408697128, -0.017977671697735786, 0.006899261847138405, -0.027362428605556488, + -0.014385070651769638, 0.01202421821653843, 0.021057045087218285, -0.009538724087178707, + 0.06721831113100052, 0.048272836953401566, 0.027860993519425392, 0.006008442956954241, + -0.0508829727768898, 0.012794061563909054, 0.035632744431495667, 0.008944844827055931, + -0.014927626587450504, -0.03272933512926102, -0.005487882532179356, -0.011379015631973743, + 0.006133084185421467, -0.023931127041578293, -0.015602155588567257, 0.025764087215065956, + -0.01819762773811817, -0.0022307124454528093, 0.02541215904057026, -0.031820185482501984, + -0.022567404434084892, -0.029122069478034973, -0.012574106454849243, 0.031438931822776794, + 0.024165745824575424, 0.005707837641239166, 0.062174003571271896, -0.0010521190706640482, + 0.017229825258255005, 0.020235879346728325, -0.031438931822776794, 0.01523556374013424, + -0.002892411081120372, -0.024869602173566818, -0.008380293846130371, -0.06287786364555359, + 0.03979722782969475, 0.006041436456143856, 0.009897984564304352, -0.0009852160001173615, + -0.08147140592336655, -0.025118885561823845, 0.015088927000761032, -0.04070637747645378, + -0.0044724224135279655, -0.007815741933882236, 0.005605191923677921, -0.011730944737792015, + 0.018564218655228615, 0.04821418225765228, 0.03504619747400284, -0.004740034695714712, + -0.016335340216755867, 0.014304419979453087, 0.027567720040678978, -0.024224400520324707, + 0.019751977175474167, -0.011093074455857277, -6.121800311120751e-7, 0.054460909217596054, + -0.042466018348932266, 0.003728240728378296, 0.032084133476018906, -0.03988521173596382, + -0.008175001479685307, 0.018490901216864586, 0.022068839520215988, -0.03794960677623749, + 0.017743052914738655, 0.002098739380016923, 0.020367851480841637, -0.050736334174871445, + 0.006833275314420462, 0.017699062824249268, -0.008600248955190182, 0.00877621304243803, + -0.007515136152505875, -0.006287053227424622, 0.05648449808359146, 0.03794960677623749, + -0.030207181349396706, -0.05243732035160065, -0.03179085999727249, 0.011899576522409916, + 0.04091166704893112, -0.012750070542097092, -0.014802985824644566, -0.03275866061449051, + 0.02425372786819935, 0.013820518739521503, 0.008350965566933155, 0.016027402132749557, + -0.007269519381225109, -0.02572009526193142, 0.03783229738473892, -0.004439429379999638, + 0.04589731991291046, 0.0327879898250103, -0.021335655823349953, -0.03387310355901718, + -0.01311666239053011, 0.005253263749182224, 5.5704800615785643e-5, -0.023300588130950928, + 0.014883635565638542, -0.07806943356990814, -0.010836459696292877, 0.030383145436644554, + -0.01130569726228714, 0.05607391521334648, 0.020030587911605835, -0.008453612215816975, + -0.0011703449999913573, -0.034166377037763596, -0.029386015608906746, -0.0022160487715154886, + -0.02940068021416664, 0.006653645075857639, -0.08575320243835449, -0.005942456424236298, + 0.031849514693021774, -0.0007299763383343816, -0.04135157912969589, 0.0324360616505146, + 0.054050326347351074, -0.025588123127818108, 0.03445965051651001, -0.03161489591002464, + -0.026687897741794586, 0.016540631651878357, 0.021335655823349953, -0.07806943356990814, + -0.004762030206620693, -0.014693007804453373, -0.05437292903661728, -0.02107170969247818, + 0.007859732955694199, 0.02649727091193199, 0.0062174005433917046, 0.04220207408070564, + 0.053434450179338455, 0.018124308437108994, -0.050120458006858826, 0.017801707610487938, + -0.002157394075766206, 0.009047490544617176, 0.0006332877092063427, -0.002492825733497739, + 0.010345226153731346, 0.009890652261674404, -0.008328970521688461, -0.03193749487400055, + -0.006701301783323288, -0.009700024500489235, -0.015426191501319408, 0.019268076866865158, + 0.05372772365808487, -0.00804302841424942, 0.01824161782860756, -0.022068839520215988, + 0.02145296521484852, -0.01068982295691967, -0.02574942260980606, 0.022054174914956093, + -0.022977987304329872, -0.01865220069885254, -0.006957916542887688, -0.017772380262613297, + 0.06000377982854843, -0.013175317086279392, -0.05023777112364769, -0.01670193113386631, + 0.017391124740242958, -0.04220207408070564, -0.06328844279050827, 0.023784490302205086, + 0.028506195172667503, 0.06064898148179054, 0.020543815568089485, 0.03149758651852608, + 0.014465720392763615, -0.04314054921269417, -0.0067526246421039104, -0.011826258152723312, + -0.02052915282547474, -0.006734295282512903, 0.02032386139035225, 0.0017779712798073888, + -0.012838052585721016, -0.020001260563731194, 0.026805207133293152, 0.03337453678250313, + -0.017713725566864014, -0.027948975563049316, 0.01246412843465805, 0.00366775318980217, + -0.0007872563437558711, 0.024957584217190742, -0.018329599872231483, 0.006939586717635393, + 0.005047971848398447, -0.05416763573884964, -0.013791191391646862, -0.01950269564986229, + -0.039914537221193314, 0.008021033369004726, 0.01333661749958992, -0.04894736409187317, + 0.04176216199994087, -0.002118901815265417, -0.00872488971799612, -0.004333117511123419, + 0.03882942721247673, 0.015895429998636246, 0.02605736069381237, -0.04932862147688866, + -0.03378511965274811, -0.06258458644151688, 0.019751977175474167, -0.0010832793777808547, + 0.02459099143743515, 0.0440496951341629, -0.04293525591492653, 0.03422503173351288, + 0.027127807959914207, -0.04627857729792595, -0.02769969217479229, -0.00707889162003994, + -0.00039683585055172443, 0.07214530557394028, -0.03575005382299423, -0.003390975994989276, + 0.02913673222064972, -0.004883005749434233, 0.001687239739112556, 0.046395886689424515, + -0.009626706130802631, -0.04085301235318184, -0.01901879347860813, 0.009604711085557938, + -0.02636529691517353, 0.0006484095938503742, -0.04572135582566261, -0.009142804890871048, + 0.015499509871006012, -0.03674718365073204, -0.049739204347133636, 0.006840607151389122, + -0.02497224695980549, -0.018769510090351105, 0.010968432761728764, -0.048038218170404434, + 0.013923164457082748, 0.011679621413350105, 0.00788906030356884, -0.017743052914738655, + 0.013380608521401882, 0.08176468312740326, 0.04434296861290932, -0.04296458512544632, + 0.033726464956998825, 0.022068839520215988, 0.0006195405148901045, 0.048008888959884644, + -0.002157394075766206, 0.0372164212167263, -0.0631711333990097, -0.03231875225901604, + -0.04255400225520134, 0.029693953692913055, -0.01111506950110197, -0.02137964591383934, + 0.02981126308441162, -0.015484846197068691, -0.0512349009513855, 0.005381570663303137, + 0.015690138563513756, -0.01922408491373062, 0.008754217065870762, 0.049299292266368866, + 0.01937072165310383, 0.008153006434440613, 0.04231938347220421, -0.023007314652204514, + -0.025324176996946335, 0.03284664452075958, -0.006932254880666733, -0.013974487781524658, + -0.03821355104446411, -0.03531014174222946, -0.004754698369652033, 0.057774901390075684, + 0.011840921826660633, 0.0018668698612600565, -0.0020455834455788136, -0.002626631874591112, + -0.021115699782967567, -0.02459099143743515, -0.04753965139389038, -0.013754532672464848, + 0.03094036504626274, 0.026453278958797455, -0.01752309873700142, -0.04032512009143829, + 0.003999518696218729, -0.005055303685367107, -0.048038218170404434, -0.037861622869968414, + -0.00729151489213109, 0.009216123260557652, -0.002580807777121663, 0.03566206991672516, + -0.01786036230623722, 0.0015781786059960723, 0.008783544413745403, 0.019927941262722015, + 0.0016111718723550439, 0.039122700691223145, -0.02893144078552723, -0.008182333782315254, + 0.023916462436318398, -0.0283448938280344, 0.01891614869236946, 0.01505959965288639, + -0.00018959680164698511, -0.008182333782315254, -0.023799153044819832, -0.033081263303756714, + -0.03343319147825241, 0.018388254567980766, -0.02025054208934307, 0.017464444041252136, + 0.007735091261565685, 0.022992650046944618, 0.009744015522301197, 0.017127178609371185, + -0.010902446694672108, 0.052202701568603516, 0.018901484087109566, -0.006437355652451515, + 0.011027087457478046, 0.030001889914274216, -0.00558319641277194, -0.018505563959479332, + -0.013160653412342072, -0.02940068021416664, -0.011965563520789146, 0.03959193825721741, + -0.005663846619427204, -0.01467101275920868, 0.007287849206477404, -0.006048768293112516, + -0.03489955887198448, -0.044694896787405014, 0.040383774787187576, 0.003647590521723032, + -0.005850808694958687, 0.012310159392654896, 0.04557471722364426, -0.00826298352330923, + -0.024678973481059074, 0.013849846087396145, 0.00023484800476580858, 0.018094981089234352, + -0.04399104043841362, 0.009861324913799763, 0.0018448743503540754, 0.009758679196238518, + 0.01272074319422245, -0.0008523264550603926, -0.040354449301958084, -0.02708381786942482, + -0.0553407296538353, -0.028476867824792862, -0.005704171489924192, -0.0037868954241275787, + -0.011994890868663788, -0.026731889694929123, -0.016232693567872047, -0.018021663650870323, + 0.005869138054549694, 0.02608668804168701, -0.019268076866865158, -0.05126422643661499, + -0.005220270249992609, 0.0011034419294446707, -0.012060876935720444, 0.024297717958688736, + -0.04384440556168556, 0.02705449052155018, -0.0028869120869785547, 0.01286004763096571, + -0.029723281040787697, -0.05932925269007683, -0.027245119214057922, 0.08375894278287888, + 0.04237803816795349, 0.03170287609100342, 0.031820185482501984, 0.00966336578130722, + -0.02212749421596527, 0.029254041612148285, -0.000954055693000555, -0.03363848477602005, + -0.012838052585721016, -0.004109496250748634, 0.023095296695828438, 0.007779082283377647, + 0.047422342002391815, 0.00030083456658758223, 0.03665919974446297, -0.00918679591268301, + -0.00700923940166831, 0.0032223437447100878, 0.027582382783293724, -0.054460909217596054, + 0.025016238912940025, 0.01786036230623722, 0.0006997325108386576, 0.01311666239053011, + -0.007302512880414724, 0.0009169382974505424, 0.0028209255542606115, 0.03070574626326561, + 0.04252467304468155, 0.004487086087465286, -0.018666865304112434, -0.0042707971297204494, + -0.021438300609588623, -0.004857344087213278, 0.005931458901613951, 0.0010035455925390124, + 0.052818577736616135, 0.014627020806074142, 0.014751662500202656, -0.0059461225755512714, + 0.028784804046154022, 0.012214845977723598, 0.023520544171333313, -0.022068839520215988, + -0.017743052914738655, 0.03302260860800743, 0.006188073195517063, 0.01162829902023077, + -0.002558812266215682, -0.010205921716988087, -0.012163522653281689, -0.034166377037763596, + -0.015719465911388397, 0.027142472565174103, -0.014832313172519207, -0.006664642598479986, + -0.001512192073278129, 0.007669104728847742, 0.03410772234201431, 0.0020804095547646284, + -0.0123834777623415, -0.02223013900220394, 0.020881080999970436, 0.005487882532179356, + 0.01588076539337635, 0.060062434524297714, -0.014553702436387539, 0.005905797239392996, + -0.02500157430768013, 0.010308567434549332, -0.03419570252299309, -0.03718709200620651, + -0.0023846810217946768, 0.024224400520324707, 0.025485476478934288, -0.02063179761171341, + -0.0019631001632660627, -0.0020804095547646284, 0.033139917999506, 0.024708300828933716, + 0.025265522301197052, 0.005066301673650742, -0.003645757446065545, -0.025368167087435722, + 0.050765663385391235, -0.04143955931067467, -0.03844816982746124, 0.008013701066374779, + -0.009678029455244541, 0.01395249180495739, -0.003709911135956645, -0.006957916542887688, + -0.028843458741903305, 0.03319857269525528, 0.026629243046045303, 0.02363785356283188, + -0.008702894672751427, -0.04363911226391792, 0.011701617389917374, 0.008673567324876785, + 0.0011813427554443479, 0.0064923446625471115, -0.0026339637115597725, -0.01203888189047575, + 0.05337579548358917, 0.042055435478687286, 0.008673567324876785, -0.05721767991781235, + -0.029957899823784828, -0.019458703696727753, 0.001026457641273737, 0.02844754047691822, + 0.019356058910489082, -0.02530951239168644, 0.03706978261470795, 0.016657941043376923, + -0.01048453152179718, 0.0035999335814267397, -0.035192832350730896, 0.038682788610458374, + 0.05918261408805847, 0.024957584217190742, -0.00944341067224741, -0.006679306272417307, + 0.021775566041469574, -0.01580744795501232, 0.026247987523674965, 0.01241280511021614, + -0.013754532672464848, 0.0019814297556877136, 0.036453910171985626, -0.029019422829151154, + -0.02746507339179516, 0.019268076866865158, 0.0032461723312735558, -0.01629134826362133, + 0.00028754561208188534, -0.017889689654111862, -0.005975449923425913, 0.017801707610487938, + -0.008336301892995834, -0.01916543021798134, -0.01819762773811817, -0.032260097563266754, + -0.011173724196851254, 0.00810901541262865, 0.031204311177134514, 0.013138657435774803, + -0.000333369622239843, 0.026614580303430557, 0.008842199109494686, -0.02469363808631897, + 0.018784174695611, -0.02690785378217697, 0.005509878043085337, 0.02438570000231266, + -0.03384377434849739, 0.0070862234570086, -0.001434291247278452, -0.005014978814870119, + -0.031820185482501984, 0.05047238990664482, -0.04190880060195923, -0.002853918820619583, + 0.030353818088769913, 0.052642613649368286, 0.02250874973833561, -0.01110040582716465, + 0.0011281869374215603, 0.02947399765253067, 0.0005219353479333222, 0.04214341938495636, + -0.014304419979453087, -0.0073465039022266865, 0.010132603347301483, 0.01292603462934494, + 0.02572009526193142, 0.010315898805856705, -0.011679621413350105, -0.004663050174713135, + 0.018872156739234924, 0.011914240196347237, -0.0036714191082865, 0.03695247322320938, + 0.04633723199367523, 0.0023095295764505863, -0.033110588788986206, -0.017097851261496544, + 0.039533283561468124, 0.010572513565421104, 0.053199831396341324, 0.02001592330634594, + -0.0006158745964057744, 0.048243507742881775, 0.00823365617543459, -0.0009623040095902979, + -0.03158556669950485, 0.02420973591506481, -0.03114565648138523, -0.015587491914629936, + -0.0015974247362464666, -0.015176909044384956, 0.028183594346046448, -0.004780360031872988, + 0.053199831396341324, -0.02445901930332184, -0.027685029432177544, 0.01005928497761488, + 0.05023777112364769, -0.004556738771498203, -0.012933366000652313, 0.054871492087841034, + 0.009824666194617748, 0.03844816982746124, -0.003077539848163724, 0.020001260563731194, + -0.003775897668674588, -0.00022247552988119423, 0.02168758399784565, 0.030383145436644554, + -0.03569139912724495, -0.030823055654764175, -0.0013683047145605087, -0.012845383957028389, + 0.007793745957314968, 0.0416741780936718, 0.01847623661160469, -0.0044174338690936565, + 0.02988458052277565, -0.010917110368609428, 0.011994890868663788, -0.03531014174222946, + -0.005150617565959692, -0.020382516086101532, -0.05915328860282898, 0.026731889694929123, + -0.04569202661514282, 0.06393364816904068, 0.018212290480732918, -0.016643276438117027, + 0.027846328914165497, -0.03566206991672516, -0.010029957629740238, 0.028095612302422523, + -0.014465720392763615, -0.006048768293112516, -0.026042696088552475, -0.004556738771498203, + -0.008798208087682724, 0.022010184824466705, 0.05129355564713478, 0.0029455667827278376, + 0.023608526214957237, 0.06305382400751114, -0.010645831935107708, 0.031204311177134514, + 0.03111632913351059, -0.016760587692260742, 0.016437985002994537, -0.040589068084955215, + 0.030823055654764175, 0.010440540499985218, -0.034166377037763596, 0.036835163831710815, + 0.00021961152378935367, -0.0013472256250679493, 0.023623188957571983, 0.000476111366879195, + 0.052642613649368286, 0.02988458052277565, 0.00877621304243803, 0.01156231202185154, + 0.003830886445939541, -0.026995835825800896, -0.009494733065366745, -0.012889374978840351, + -0.06293651461601257, -0.011892245151102543, 0.003728240728378296, 0.040794357657432556, + 0.054020997136831284, 0.00025363583699800074, -0.0033488180488348007, -0.018212290480732918, + 0.011261706240475178, 0.04026646539568901, -0.039973191916942596, -0.0072145308367908, + 0.022156821563839912, 0.004945326130837202, -0.012933366000652313, 0.03217211365699768, + 0.039738573133945465, -0.003878543386235833, 0.0024616653099656105, 0.02469363808631897, + -0.0017358132172375917, 0.01137168426066637, 0.014179779216647148, -0.016115384176373482, + -0.0015891763614490628, -0.011122401803731918, -0.014458389021456242, -0.0196346677839756, + 0.011093074455857277, -0.01636466756463051, -0.03073507361114025, 0.017801707610487938, + 0.020103905349969864, -0.008189665153622627, 0.02001592330634594, 0.04627857729792595, + -0.0009659699280746281, -0.0002884620917029679, -0.0031746868044137955, 0.00415715342387557, + 0.004648386500775814, 0.005553869064897299, -0.019971933215856552, -0.014685676433146, + 0.042231399565935135, -0.020573142915964127, 0.0031123661901801825, 0.008614912629127502, + -0.03841884434223175, 0.0016322509618476033, -0.0007826739456504583, -0.006759956479072571, + 0.009414083324372768, -0.02585206925868988, -0.035574089735746384, -0.02909274213016033, + 0.01991327852010727, -0.019004130735993385, -0.022626059129834175, -0.02073444426059723, + -0.012016885913908482, 0.011137065477669239, -0.015660811215639114, -0.017669735476374626, + 0.00041608192259445786, 0.012566774152219296, -0.018256282433867455, 0.018842829391360283, + 0.010037289001047611, -0.02308063395321369, -0.044079024344682693, -0.0025826406199485064, + -0.027450410649180412, 0.06950584799051285, 0.0029290702659636736, 0.04352180287241936, + -0.012427468784153461, -0.01595408469438553, -0.06786351650953293, -0.014502380043268204, + -0.012845383957028389, 0.01601273939013481, -0.05624987930059433, 0.014121124520897865, + 0.01896013878285885, -0.036424580961465836, 0.02240610308945179, 0.025294849649071693, + -0.012625428847968578, -0.02988458052277565, -0.014978949911892414, -0.04281794652342796, + -0.061763420701026917, -0.007559127174317837, 0.02124767377972603, 0.01844690926373005, + 0.019150767475366592, 0.03472359478473663, -0.00807968806475401, -0.010645831935107708, + 0.020778434351086617, 0.025148212909698486, 0.044518932700157166, 0.016995206475257874, + -0.009516729041934013, 0.03481157869100571, -0.026717225089669228, 0.017699062824249268, + 0.054284945130348206, -0.013622559607028961, 0.029224714264273643, 0.005256929434835911, + -0.01601273939013481, 0.02161426469683647, 0.002098739380016923, -0.017640408128499985, + 0.026731889694929123, 0.0026138010434806347, -0.005850808694958687, 0.042260728776454926, + -0.004912333097308874, 0.02821292169392109, -0.051146917045116425, -0.05680709704756737, + 0.017567088827490807, -0.04296458512544632, -0.06745292991399765, -0.04352180287241936, + 0.002054748125374317, 0.01891614869236946, -0.02944467030465603, 0.04011983051896095, + -0.03821355104446411, -0.029151396825909615, 0.015924757346510887, -0.03410772234201431, + -0.02394578978419304, 0.010323231108486652, -0.017332470044493675, 0.03548610582947731, + -0.01205354556441307, -0.03264135122299194, 0.02261139452457428, 0.028095612302422523, + 0.02001592330634594, -0.02813960239291191, -0.007225528359413147, -0.0068442728370428085, + -0.011884912848472595, 0.006085427477955818, 0.002307696733623743, -0.0003842342412099242, + 0.010719150304794312, -0.023388570174574852, -0.03730440139770508, 0.0022362112067639828, + 0.004054507706314325, -0.061528801918029785, 0.027685029432177544, -0.00782307330518961, + 0.008438948541879654, -0.009098813869059086, -0.005282591097056866, 0.0017468109726905823, + -0.028462203219532967, -0.01703919656574726, 0.022274130955338478, -0.005080965347588062, + 0.019590677693486214, -0.007830405607819557, 0.02258206717669964, -0.002327859168872237, + 0.042260728776454926, -0.04522278904914856, 0.010425876826047897, -0.020705116912722588, + 0.00763244554400444, 0.023300588130950928, -0.028872786089777946, -0.01088045071810484, + -0.025148212909698486, -0.0016111718723550439, 0.006312714423984289, -0.005528207402676344, + -0.015176909044384956, -0.04231938347220421, -0.0014287923695519567, -0.0011153562227264047, + 0.003204014152288437, 0.01875484734773636, -0.02032386139035225, 0.0024854938965290785, + 0.00015202112263068557, -0.013021348044276237, 0.012002222239971161, -0.014443725347518921, + -0.0182709451764822, 0.009531392715871334, 0.003733739722520113, 0.006356705445796251, + -0.02533883973956108, 0.005649182945489883, 0.0019631001632660627, 0.0032645019236952066, + -0.023857807740569115, -0.005938790738582611, 0.005348577629774809, -0.011679621413350105, + 0.002599137369543314, 0.019766641780734062, 0.030617764219641685, 0.01355657260864973, + -0.009568051435053349, -0.00788906030356884, -0.006004777271300554, 0.017772380262613297, + 0.02343256212770939, 0.01881350204348564, 0.003418470500037074, -0.006224732380360365, + 0.01327063050121069, 0.057364318519830704, -0.03882942721247673, -0.0010035455925390124, + -0.0034917888697236776, -0.015088927000761032, -0.03841884434223175, -0.005847142543643713, + 0.0065326695330441, 0.016819242388010025, -0.00489400327205658, -0.012955361977219582, + -0.03750969469547272, -0.012816056609153748, 0.034958213567733765, 0.03833086043596268, + 0.01744977943599224, 0.004384440369904041, -0.0007043149089440703, -0.0040508415549993515, + -0.020367851480841637, -0.01724448800086975, 0.019883951172232628, 0.04290593042969704, + 0.008673567324876785, 0.006972580216825008, 0.0036329268477857113, -0.01646731235086918, + 0.0013087334809824824, 0.002974894130602479, 0.016130048781633377, 0.0006117504090070724, + 0.00024217984173446894, -0.0009760512039065361, -0.002976727206259966, -0.016115384176373482, + 0.015411527827382088, -0.031820185482501984, -0.007042232435196638, 0.008607580326497555, + -0.03152691200375557, 0.0033836441580206156, 0.002428672043606639, 0.00244700163602829, + -0.006382367108017206, -0.013644554652273655, -0.002930903108790517, -0.019869286566972733, + 0.018798837438225746, 0.020573142915964127, 0.0013976320624351501, 0.04727570712566376, + 0.01354190893471241, 0.009824666194617748, -0.0008921932894736528, -0.013673882000148296, + 0.018461573868989944, 0.031233638525009155, -0.02063179761171341, 0.005275259260088205, + -0.021320991218090057, 0.030793728306889534, 0.0074711451306939125, -0.01420910656452179, + 0.02769969217479229, -0.002388346940279007, 0.03261202573776245, 0.03363848477602005, + -0.03572072461247444, 0.0036109313368797302, 0.02677587978541851, -0.001668910146690905, + -0.010235249064862728, 0.049885839223861694, -0.004883005749434233, 0.016613949090242386, + 0.008145674131810665, 0.018637537956237793, -0.021335655823349953, 0.005722501315176487, + -0.018124308437108994, -0.0004871091223321855, -0.006921257358044386, 0.006184407044202089, + 0.02690785378217697, 0.012346819043159485, 0.02950332500040531, -0.00034940801560878754, + 0.029957899823784828, 0.016555294394493103, -0.03111632913351059, -0.019971933215856552, + 0.013710541650652885, -0.015734128654003143, -0.0008940262487158179, -0.010814464651048183, + -0.014495047740638256, 0.0013866343069821596, 0.04316987469792366, -0.013255966827273369, + 0.00196859915740788, -0.005326582118868828, 0.0026064692065119743, -0.035808708518743515, + -0.023887135088443756, 0.02217148430645466, -0.0016514969756826758, 0.006514340173453093, + -0.014055137522518635, -0.014539038762450218, -0.007661772891879082, -0.028359558433294296, + 0.006602322217077017, 0.0003106867370661348, 0.015015608631074429, -0.020690452307462692, + -0.0060231066308915615, -0.005172613076865673, 0.02261139452457428, -0.01503027230501175, + -0.060062434524297714, -0.03906404599547386, 0.028183594346046448, -0.0035559425596147776, + -0.018769510090351105, -0.007669104728847742, 0.02410709112882614, -0.025382831692695618, + 0.012156191281974316, -0.01347592193633318, 0.021731574088335037, -0.013659218326210976, + -0.029532652348279953, -0.01355657260864973, 0.0035724390763789415, -0.010836459696292877, + 8.076480298768729e-5, 0.0402957946062088, 0.003711744211614132, -0.0005411814781837165, + 0.0024415028747171164, 0.006906593684107065, 0.008702894672751427, -0.033961083739995956, + -0.0167312603443861, 0.01752309873700142, -0.015074263326823711, 0.053639743477106094, + -0.008783544413745403, 0.021057045087218285, -0.01437773834913969, -0.007830405607819557, + -0.008482939563691616, -0.013717873021960258, 0.010403880849480629, 0.03445965051651001, + -0.03011919930577278, 0.05856674164533615, 0.018417581915855408, -0.0024579993914812803, + 0.02896076813340187, -0.013549240306019783, 0.03730440139770508, 0.009985966607928276, + -0.0283448938280344, 0.0338144488632679, -0.017640408128499985, 0.023315252736210823, + -0.037451039999723434, 0.06616252660751343, -0.0024268392007797956, 0.00048481792327947915, + -0.005542871076613665, 0.01775771751999855, 0.006085427477955818, -0.012955361977219582, + -0.027230454608798027, -0.018769510090351105, 0.020793098956346512, 0.04487086087465286, + 0.02435637265443802, -0.011144396848976612, 0.038712117820978165, -0.012354150414466858, + 0.009751347824931145, -0.01629134826362133, -0.03921068087220192, 0.024165745824575424, + -0.008409621194005013, 0.03487023338675499, 0.0032974951900541782, -0.0324360616505146, + 0.0046447208151221275, -0.015440855175256729, 0.00831430684775114, 0.004300124477595091, + 0.05745229870080948, 0.02181955613195896, -0.0033854772336781025, -0.006316380575299263, + 0.02274336852133274, -0.01379852369427681, -0.007133880630135536, 0.02674655243754387, + 0.01703919656574726, -0.0053962343372404575, 0.03481157869100571, -0.044929515570402145, + -0.03982655704021454, -0.04073570296168327, -0.004039844032377005, -0.011093074455857277, + -0.019209422171115875, 0.0317615307867527, -0.004853678401559591, -0.026893189176917076, + -0.029561979696154594, 0.0082849794998765, -0.014810317195951939, -0.010095943696796894, + 0.017068523913621902, 0.013204644434154034, 0.031233638525009155, -0.03445965051651001, + -0.010462536476552486, 0.019561350345611572, 0.002351687755435705, -0.027333101257681847, + 0.018666865304112434, -0.024327045306563377, -0.012016885913908482, 0.013681214302778244, + 0.026555925607681274, -0.05504745617508888, -0.007383163087069988, 0.002344355918467045, + -0.015008277259767056, 0.021878210827708244, -0.002896076999604702, -0.0039042048156261444, + 0.026819871738553047, -0.02291933260858059, 0.01646731235086918, 0.021291663870215416, + 0.0433751679956913, 0.03460628539323807, -0.0001539686491014436, -0.005506211891770363, + 0.010557849891483784, -0.019561350345611572, -0.0010961100924760103, -0.0075737908482551575, + 0.02462031878530979, 0.00565284863114357, -0.02294865995645523, -0.006979912053793669, + -0.05607391521334648, 0.007053230423480272, 0.00720719899982214, 0.0002046041627181694, + 0.01601273939013481, 0.011027087457478046, 0.005579530261456966, 0.020646462216973305, + -0.041820816695690155, 0.017288479954004288, -0.02489892952144146, 0.014348411001265049, + 0.00381622277200222, 0.007031234912574291, 0.008328970521688461, -0.009032826870679855, + -0.005326582118868828, 0.013036011718213558, -0.020470498129725456, 0.002155561000108719, + -0.014861640520393848, 0.014956953935325146, 0.015836775302886963, -0.01844690926373005, + -0.004344115499407053, 0.009912648238241673, 0.03501686826348305, -0.029943235218524933, + 0.004003184847533703, -0.004611727315932512, -0.001837542513385415, 0.0215116199105978, + -0.006015774793922901, -0.01137168426066637, -0.01005928497761488, -0.006202736869454384, + -0.0021757236681878567, -0.0032150119077414274, -0.005891133565455675, -0.013233971782028675, + -0.013659218326210976, -0.020705116912722588, 0.01505959965288639, -0.01504493597894907, + -0.03469426929950714, -0.013101998716592789, 0.0069945757277309895, 0.026101350784301758, + -0.03575005382299423, -0.01314598973840475, -0.005810483358800411, -0.011921572498977184, + 0.019238749518990517, 0.008013701066374779, -0.01898946613073349, 0.009678029455244541, + 0.014011146500706673, -0.007522467989474535, -0.004314788151532412, -0.0093920873478055, + 1.4950080185371917e-5, 0.005132288206368685, -0.0018467073095962405, 0.016144711524248123, + 0.0030097204726189375, 0.017669735476374626, 0.015822110697627068, 0.01662861369550228, + 0.005737164989113808, -0.011027087457478046, -0.003392809070646763, 0.009223454631865025, + 0.03363848477602005, 0.021394310519099236, 0.006690304260700941, 0.011012423783540726, + -0.0069945757277309895, -0.007779082283377647, -0.0012299162335693836, 0.014106460846960545, + -0.00944341067224741, 0.003504619700834155, -0.0026247987989336252, 0.03337453678250313, + 0.015103590674698353, 0.01205354556441307, -0.01898946613073349, -0.003966525662690401, + 0.005799485836178064, 0.04463624209165573, -0.021804893389344215, 0.02217148430645466, + 0.011547648347914219, -0.011943567544221878, 0.016965879127383232, 0.012632761150598526, + -0.012376146391034126, 0.008380293846130371, -0.07466746121644974, -0.009098813869059086, + -0.0274944007396698, -0.010924441739916801, 0.029957899823784828, -0.0060927593149244785, + 0.006583992391824722, -0.0009485568152740598, -0.008849531412124634, 0.018798837438225746, + 0.004351447336375713, -0.03275866061449051, -0.03610198199748993, 0.012082872912287712, + -0.029122069478034973, 0.02811027504503727, -0.0022068838588893414, -0.021570274606347084, + -0.022670049220323563, -0.0023828481789678335, 0.00826298352330923, 0.013365944847464561, + 0.045516062527894974, 0.0047253710217773914, -0.00810901541262865, -0.01241280511021614, + -0.018564218655228615, 0.01286004763096571, 0.012764734216034412, 0.021540947258472443, + -0.011408342979848385, 0.01595408469438553, -0.007159541826695204, 0.01490563154220581, + 0.010594509541988373, 0.048859383910894394, -0.02643861621618271, 0.01960534043610096, + -0.0029895578045397997, 0.0372164212167263, 0.031820185482501984, -0.02346188947558403, + -0.011723612435162067, 0.0179336816072464, 0.008123679086565971, 0.014011146500706673, + -0.00674529280513525, 0.015367536805570126, -0.00826298352330923, 0.014260428957641125, + 0.012251504696905613, -0.02415108121931553, -0.034342341125011444, -0.011349688284099102, + -0.03366781026124954, -0.0005498880054801702, 0.013717873021960258, 0.000322371837683022, + 0.01731780730187893, -0.04381507635116577, -0.01703919656574726, 0.0379202775657177, + -0.01327063050121069, 0.02366718091070652, 0.014788322150707245, 0.0010209587635472417, + -0.01314598973840475, -0.0021922201849520206, -0.018021663650870323, -0.01483964454382658, + -0.0032205109018832445, 0.014546371065080166, -0.016027402132749557, 0.027685029432177544, + -0.0009316019713878632, -0.0017532262718304992, 0.010220585390925407, -0.010931774042546749, + 0.01203888189047575, -0.003077539848163724, 0.014297088608145714, -0.011745608411729336, + 0.0029950567986816168, -0.051557499915361404, -0.0032571700867265463, -0.02114502713084221, + ], + index: 94, + }, + { + title: "Cricket poetry", + text: "The game of cricket has inspired much poetry, most of which romanticises the sport and its culture.", + vector: [ + -0.0013973518507555127, 0.011464058421552181, -0.027261095121502876, 0.05063745006918907, + -0.027315428480505943, 0.05960223823785782, -0.02391967549920082, -0.03827691450715065, + -0.023580100387334824, -0.01996702142059803, 0.012829150073230267, 0.015335215255618095, + -0.00465218024328351, -0.027804415673017502, -0.0011511598713696003, -0.031648408621549606, + 0.03338703140616417, 0.014085578732192516, -0.033495694398880005, -0.027274679392576218, + -0.006485885940492153, 0.04588339850306511, 0.003484041430056095, -0.029420794919133186, + 0.04292230308055878, 0.03254488483071327, -0.0291491337120533, -0.004587660543620586, + -0.012937814928591251, 0.013046478852629662, 0.006146310828626156, 0.004356749821454287, + 0.05574466288089752, -0.013746003620326519, -0.015824204310774803, 0.003579122480005026, + -0.00483215507119894, 0.03412051498889923, 0.004302417393773794, -0.06470944732427597, + -0.027193181216716766, -0.01688367873430252, 0.06976232677698135, 0.007103912997990847, + -0.003721744054928422, -0.009732224978506565, -0.013895416632294655, -0.01231978740543127, + 0.013026104308664799, -0.015158636495471, 0.08247601985931396, -0.01343359425663948, + -0.004788009915500879, 0.005433203186839819, 0.00360968429595232, 0.00660813320428133, + 0.021488318219780922, -0.021366070955991745, 0.03667411953210831, -0.031268082559108734, + -0.042623478919267654, -0.008170179091393948, 0.02549530565738678, -0.040749020874500275, + 0.02363443374633789, -0.03509848937392235, -0.009535270743072033, -0.029638122767210007, + 0.008822163566946983, 0.0008820465300232172, 0.002821869682520628, 0.027166014537215233, + -0.02656836248934269, 0.02966528758406639, 0.025087814778089523, -0.00793926790356636, + 0.02643253281712532, 0.03259921818971634, -0.0060648126527667046, 0.016842929646372795, + -0.003229360096156597, -0.004478996619582176, -0.05090911313891411, 0.027736501768231392, + -0.011185606941580772, -0.018581554293632507, 0.030480269342660904, -0.03993404284119606, + 0.03172990679740906, 0.06367713958024979, 0.027057351544499397, 0.03482683002948761, + 0.0341748483479023, 0.01687009446322918, -0.04914332181215286, 0.018989045172929764, + 0.002329485723748803, 0.015009223483502865, 0.018404975533485413, 0.005979918874800205, + 0.05536433681845665, -0.016530519351363182, -0.018228396773338318, -0.04751335829496384, + -0.012469200417399406, -0.014954891055822372, -0.07595618069171906, -0.0323275588452816, + 0.04512275010347366, -0.029692454263567924, 0.006231204606592655, -0.026486864313483238, + 0.017399832606315613, -0.03599496930837631, 0.013229848816990852, -0.01457456685602665, + 0.027179596945643425, -0.00285412953235209, -0.0007165036513470113, 0.027980994433164597, + -0.044552262872457504, 0.009229653514921665, -0.018703801557421684, 0.019804025068879128, + 0.02800816111266613, 0.018282728269696236, -0.03528865426778793, -0.016340358182787895, + 0.033441364765167236, -0.0015756288776174188, -0.01687009446322918, -0.0015467649791389704, + 0.01961386203765869, 0.029040470719337463, 0.03757059946656227, 0.035859137773513794, + -0.04191716015338898, -0.05574466288089752, 0.03355002775788307, -0.011185606941580772, + 0.009148155339062214, 0.0032480366062372923, 0.028687311336398125, 0.024150587618350983, + 0.0029543042182922363, 0.007789854891598225, -0.01572912186384201, -0.030507434159517288, + -0.016340358182787895, 0.04561173915863037, -0.017182504758238792, 0.023240525275468826, + 0.018133314326405525, -0.028904639184474945, -0.04995829984545708, 0.04102068394422531, + 0.021379653364419937, -0.011212772689759731, 0.017033090814948082, 0.031213751062750816, + -0.017535662278532982, -0.015172218903899193, 0.0017793739680200815, -0.017929568886756897, + 0.05710296332836151, -0.027396926656365395, -0.06345981359481812, -0.026391783729195595, + 0.004316000733524561, 0.007681190501898527, 0.0070020402781665325, 0.02879597619175911, + 0.007273700553923845, 0.019708944484591484, -0.004261668771505356, -0.011178814806044102, + -0.022792287170886993, -0.03297954052686691, -0.0015671395231038332, 0.04167266562581062, + -0.03588630631566048, -0.03814108297228813, -0.00016671018966007978, -0.0542776994407177, + -0.039173394441604614, 0.0768798217177391, 0.02118949219584465, 0.03863007202744484, + 0.02836131863296032, 0.03765209764242172, 0.013155142776668072, -0.0019933064468204975, + 0.0019440678879618645, -0.05161542817950249, 0.04042302817106247, 0.016421856358647346, + 0.004777822643518448, -0.009229653514921665, -0.007796646095812321, -0.03322403505444527, + 0.03023577481508255, 0.013345304876565933, 0.028252655640244484, -0.045204248279333115, + 0.012000586837530136, 0.06889301538467407, -0.013094019144773483, 0.032273225486278534, + 0.014248575083911419, -0.0020866894628852606, 0.0017284377245232463, 0.04903465509414673, + -0.009100615046918392, 0.016897261142730713, -0.021855058148503304, -0.002769235521554947, + 0.002156302332878113, 0.044117607176303864, -0.02449016273021698, -0.035234320908784866, + 0.015253717079758644, 0.009317942894995213, -0.028850307688117027, 0.006723588798195124, + -0.07579318434000015, -0.030779095366597176, -0.053598545491695404, -0.004733677953481674, + -0.052185915410518646, -0.01407199539244175, 0.04343845695257187, 0.009229653514921665, + -0.05196858569979668, -0.028632979840040207, 0.004261668771505356, 0.0291491337120533, + 0.0020866894628852606, -0.007626858539879322, 0.027233930304646492, 0.057917945086956024, + 0.03871157020330429, -0.0028592231683433056, 0.015674790367484093, -0.019858356565237045, + -0.031920067965984344, -0.0007716846303083003, -0.0032259642612189054, -0.02053750678896904, + -0.04281364008784294, -0.025807714089751244, 0.030561767518520355, 0.00023642921587452292, + -0.02893180586397648, 0.020157182589173317, 0.02435433305799961, 0.007239743135869503, + 0.06862135231494904, -0.013644130900502205, 0.007368781603872776, 0.018119731917977333, + 0.02068692073225975, 0.0007534324540756643, 0.016340358182787895, -0.009759390726685524, + -0.028415651991963387, 0.015158636495471, 0.031702738255262375, 0.016286026686429977, + -0.02548172138631344, 0.05802660807967186, 0.014397988095879555, -0.0723702609539032, + 0.003200496081262827, -0.008394298143684864, -0.025305142626166344, 0.03708161041140556, + 0.010058216750621796, -0.003380470909178257, 0.023240525275468826, 0.00624818354845047, + 0.04034153372049332, 0.004720095079392195, 0.11529256403446198, 0.013114393688738346, + -0.05384304001927376, -0.018649470061063766, -0.02038809470832348, 0.00041237162076868117, + -0.03287087753415108, -0.041319508105516434, 0.03238188847899437, 0.0038168251048773527, + -0.006017272360622883, 0.007952851243317127, 0.024965567514300346, 0.02923063188791275, + -0.01615019515156746, -9.773398051038384e-5, -0.007477445527911186, 0.02117590792477131, + 0.00782381184399128, 0.0032123811542987823, -0.012801984325051308, 0.05237607657909393, + -0.02068692073225975, -0.046997204422950745, 0.06552442908287048, 0.030561767518520355, + -0.013053270056843758, -0.013121184892952442, -0.04612789303064346, -0.013121184892952442, + 0.02004851959645748, -0.011864757165312767, -0.026975853368639946, 0.03297954052686691, + -0.006231204606592655, 0.020741252228617668, -0.037380434572696686, -0.034229177981615067, + 0.0067439633421599865, -0.014248575083911419, -0.009813723154366016, 0.019776858389377594, + 0.055473003536462784, 0.008176970295608044, 0.01063549518585205, -0.04762202501296997, + 0.011586305685341358, 0.012224706821143627, -0.010560788214206696, 0.004492579493671656, + 0.025943543761968613, -0.03757059946656227, 0.01623169332742691, 0.04400894418358803, + 0.05579899623990059, -0.05134376883506775, -0.00944019015878439, -0.026907937601208687, + -0.035859137773513794, 0.032436221837997437, -0.010750950314104557, 0.03129524737596512, + 0.02944795973598957, -0.0020153787918388844, 0.000795879343058914, -0.0341748483479023, + 0.03425634652376175, -0.0313224159181118, 0.0006001991569064558, 0.06737171858549118, + -0.06394879519939423, 0.0008578518172726035, 0.011953046545386314, 0.01902979426085949, + 0.044986922293901443, -0.08611626923084259, 0.008149804547429085, -0.03504415974020958, + 0.01923353783786297, -0.0161637794226408, -0.015280883759260178, -0.0788901075720787, + 0.03556031361222267, -0.028415651991963387, 0.0029339296743273735, -0.03776076063513756, + 0.04023286700248718, -0.017902404069900513, -0.03488116338849068, 0.026052208617329597, + -0.016353940591216087, -0.03911906108260155, -0.0283069871366024, -0.030290106311440468, + -0.019858356565237045, -0.009874846786260605, -0.01693801023066044, -0.00310711283236742, + -0.008224510587751865, -0.034582335501909256, 0.04289513826370239, 0.007389156147837639, + -0.05550016835331917, -0.002670758869498968, 0.027030184864997864, -0.007817020639777184, + -0.012686529196798801, 0.016842929646372795, 0.02311827801167965, 0.025087814778089523, + -0.011307853274047375, 0.004088485147804022, 0.015498211607336998, 0.05867859348654747, + 0.03640246018767357, -0.013277390040457249, -0.009311151690781116, -0.02557680383324623, + -0.003020521253347397, -0.003928884863853455, -0.04775785282254219, 0.00944019015878439, + 0.021922973915934563, -0.025250811129808426, 0.01752207987010479, 0.019980603829026222, + -0.03588630631566048, -0.003647037548944354, 0.007952851243317127, 0.0525934062898159, + -0.019831189885735512, -0.0060580214485526085, 0.03360436111688614, 0.00804793182760477, + -0.002565490547567606, 0.04332979395985603, 0.004862716421484947, -0.025033483281731606, + 0.003431407269090414, 0.017345501109957695, -0.022357629612088203, -0.00821771938353777, + -0.03892889991402626, 0.04509558528661728, -0.015430296771228313, 0.020877081900835037, + 0.004353353753685951, -0.01127389632165432, -0.025549637153744698, 0.025807714089751244, + 0.04544874280691147, 0.050528787076473236, 0.03322403505444527, -0.05797227472066879, + -0.03604930266737938, 0.05104494094848633, 0.04134667292237282, 0.019831189885735512, + 0.0024279626086354256, -0.03058893233537674, -0.01145726628601551, -0.05824393406510353, + -0.02792666293680668, 0.014316489920020103, -0.01623169332742691, -0.017929568886756897, + -0.03197439759969711, -0.02980111911892891, 0.05006696656346321, -0.007891727611422539, + -0.0433841273188591, 0.008482588455080986, 0.03746193274855614, -0.004159796051681042, + -0.0291491337120533, 0.010295920073986053, -0.033006709069013596, 0.030643263831734657, + -0.030561767518520355, 0.03933639079332352, -0.014982056804001331, -0.053326886147260666, + -0.058787256479263306, -0.02534589171409607, 0.025237226858735085, 0.04778502136468887, + -0.014221408404409885, -0.003108810866251588, -0.03729894012212753, -0.04259631037712097, + -0.09768898785114288, 0.03569614514708519, -0.015484628267586231, -0.0525934062898159, + 0.0564509779214859, 0.004088485147804022, -0.02556321956217289, -0.00501212989911437, + -0.002672456670552492, 0.008129430003464222, -0.026446115225553513, 0.02779083326458931, + 0.02457166090607643, 0.015688372775912285, -0.015783455222845078, -0.03944505378603935, + 0.004723490681499243, 0.022968865931034088, -0.03697294741868973, -0.022058803588151932, + -0.00031686609145253897, -0.018948296085000038, -0.026731358841061592, 0.02284661866724491, + 0.01213641744107008, -0.014289324171841145, -0.009976718574762344, 0.009847680106759071, + -0.0061361235566437244, -0.04066752269864082, 0.0003612230939324945, 0.03352286294102669, + -0.022276131436228752, 0.022928116843104362, 0.033278368413448334, 0.04373728483915329, + -0.0311594195663929, 0.05313672497868538, 0.04946931451559067, 0.05737462267279625, + -0.025468138977885246, -0.012285830453038216, -0.008489379659295082, 0.006479094736278057, + 0.05998256057500839, 0.022588541731238365, 0.00611914461478591, -0.014099162071943283, + -0.018703801557421684, 0.015960033982992172, 0.019573112949728966, 0.011735718697309494, + -0.01593286730349064, 0.018866797909140587, 0.03871157020330429, 0.002382119884714484, + -0.07209860533475876, -0.01446590293198824, -0.0009592999122105539, 0.024734657257795334, + 0.03308820724487305, -0.04544874280691147, -0.02398759126663208, 0.007626858539879322, + 0.0050664618611335754, -0.03879306837916374, -0.0075114029459655285, -0.011674595065414906, + -0.05550016835331917, 0.01954594813287258, -0.02478898875415325, 0.00034042412880808115, + 0.014099162071943283, 0.02743767574429512, -0.01037741731852293, 0.02334919013082981, + -0.028035327792167664, -0.008536919951438904, 0.0017233440885320306, -0.021800726652145386, + 0.014275740832090378, -0.011335019953548908, -0.022588541731238365, 0.005338122136890888, + -0.054196201264858246, 0.014859810471534729, -0.0005021467804908752, -0.01681576296687126, + 0.007063163910061121, 0.015212967991828918, -0.005147960036993027, 0.040830519050359726, + 0.007531777489930391, 0.0035859139170497656, 0.02579413168132305, -0.02758708782494068, + 0.027301844209432602, -0.04653538390994072, 0.00944019015878439, 0.0584612637758255, + 0.04553024098277092, -0.01446590293198824, -0.008564086630940437, -0.023743096739053726, + -0.019478032365441322, 0.023797428235411644, 0.013053270056843758, -0.015212967991828918, + -0.014751145616173744, 0.01396333146840334, 0.00664548622444272, 0.0028677124064415693, + -0.01708742417395115, -0.02053750678896904, 0.002494179643690586, 0.02196372300386429, + -0.02398759126663208, 0.014479486271739006, -0.027166014537215233, -0.003200496081262827, + -0.008244885131716728, -0.0291491337120533, 0.00624818354845047, 0.01360338181257248, + 0.0044348519295454025, -0.018500056117773056, -0.0014397987397387624, -0.0252100620418787, + 0.04580190032720566, 0.0007148057920858264, -0.012190748937427998, 0.029773952439427376, + 0.027464840561151505, 0.007097121328115463, 0.013141559436917305, -0.010370626114308834, + 0.013311346992850304, 0.02182789333164692, -0.051751259714365005, -0.022955281659960747, + 0.0003085889620706439, 0.017128173261880875, -0.03477250039577484, -0.0291491337120533, + -0.0036572248209267855, 0.017114588990807533, 0.004271856043487787, 0.005844088736921549, + 0.027899498119950294, -0.015321631915867329, -0.016123030334711075, -0.03746193274855614, + 0.054196201264858246, -0.020279429852962494, -0.006163289770483971, -0.0034976243041455746, + 0.006305911112576723, 0.0075114029459655285, 0.00448578828945756, 0.02284661866724491, + -0.02190939150750637, 0.02893180586397648, -0.007008831948041916, 0.013426803052425385, + 0.005949357058852911, 0.000777202716562897, -0.0008052176563069224, -0.017046675086021423, + -0.0020866894628852606, -0.02341710403561592, 0.002565490547567606, -0.03175707161426544, + -0.021298155188560486, 0.010397791862487793, -0.018649470061063766, 0.03001844696700573, + 0.02276512049138546, 0.04596489667892456, 0.0007610729080624878, 0.010533622466027737, + -0.0023906093556433916, 0.022493461146950722, 0.026826439425349236, 0.049306318163871765, + 0.013698463328182697, -0.02334919013082981, 0.015851369127631187, 0.0027182993944734335, + 0.030697597190737724, -0.0004626711888704449, 0.009277193807065487, -0.01973610930144787, + 0.0110565684735775, 0.015443879179656506, -0.032653551548719406, 0.013630547560751438, + 0.024585243314504623, -0.039254892617464066, -0.007395947352051735, 0.008380715735256672, + -0.004139421507716179, -0.03914622589945793, 0.03330553323030472, 0.0062651620246469975, + -0.0331697054207325, -0.016612017527222633, -0.00148479244671762, 0.019763275980949402, + -0.02412342093884945, -0.02233046479523182, -0.022805869579315186, -0.05617931857705116, + 0.027233930304646492, -0.012034544721245766, 0.03814108297228813, -0.02743767574429512, + -0.0011503109708428383, -0.013114393688738346, -0.022656455636024475, 0.019491614773869514, + -0.017359083518385887, 0.04246048256754875, 0.0544406920671463, 0.03230039030313492, + -0.013005729764699936, 0.003392356215044856, -0.00796643365174532, -0.001701271627098322, + -0.03474533185362816, 0.0011503109708428383, 0.009745807386934757, -0.00855050329118967, + -0.01213641744107008, 0.027532756328582764, -0.0034076368901878595, 0.006611528806388378, + -0.012523532845079899, 0.002151208696886897, -0.0020034934859722853, 0.016136612743139267, + 0.012944606132805347, 0.013189099729061127, 0.03355002775788307, -0.014289324171841145, + 0.0019746297039091587, -0.00023982497805263847, -0.01688367873430252, 0.028605813160538673, + 0.0033295347820967436, 0.027845164760947227, -0.02663627825677395, -0.006003689486533403, + 0.007980016991496086, 0.0683496966958046, -0.0037251398898661137, -0.003776076016947627, + -0.002298923907801509, -0.003360096365213394, -0.01443873718380928, -0.0010798490839079022, + -0.002616426907479763, 0.014262157492339611, 0.014628899283707142, 0.013420010916888714, + -0.002888086950406432, -0.0064383456483483315, -0.044552262872457504, 0.020646171644330025, + -0.01623169332742691, -0.027980994433164597, -0.02685360610485077, 0.004326188005506992, + 0.04588339850306511, 0.011042985133826733, 0.015769870951771736, 0.0035519564989954233, + 0.001264068647287786, -0.033061038702726364, 0.005599594675004482, -0.031213751062750816, + 0.0505831204354763, -0.0026435928884893656, -0.004923840053379536, 0.0025400223676115274, + -0.012897065840661526, 0.012414868921041489, -0.009643935598433018, 0.019016209989786148, + -0.021488318219780922, 0.05954790487885475, 0.027166014537215233, -0.006638695020228624, + -0.00723295146599412, 0.018567971885204315, -0.03246338665485382, 0.02189580723643303, + -0.017033090814948082, -0.005358496215194464, -0.018866797909140587, 0.016503354534506798, + 0.010839239694178104, 0.03857574239373207, -0.012557490728795528, -0.03748910129070282, + -0.015824204310774803, -0.030290106311440468, -0.004105464089661837, 0.0038202209398150444, + -0.012815567664802074, 0.019002627581357956, -0.04433493688702583, 0.00797322578728199, + -0.02398759126663208, -0.007497820071876049, 0.014031246304512024, -0.006197247188538313, + -0.031186584383249283, -0.009868054650723934, 0.006954499986022711, 0.02664986066520214, + -0.00339405401609838, -0.003864365629851818, 0.008102264255285263, -0.010927529074251652, + 0.02569904923439026, -0.0012674643658101559, -0.025087814778089523, -0.05395170673727989, + -0.044552262872457504, 0.011593096889555454, 0.022113136947155, 0.00023133559443522245, + 0.013528675772249699, 0.012082085013389587, -0.04012420400977135, -0.041754163801670074, + 0.014601732604205608, 0.0008701613987796009, 0.05137093365192413, 0.006030855234712362, + 0.024748239666223526, -0.062373168766498566, 0.0025790734216570854, 0.02318619377911091, + 0.04006987065076828, -0.0021987492218613625, 0.0267177764326334, 0.04379161447286606, + 0.009935969486832619, -0.02405550703406334, 0.022031638771295547, 0.029393628239631653, + -0.022574957460165024, 0.024829737842082977, 0.04107501357793808, -0.0012199238408356905, + 0.0029033678583800793, -0.0006405236781574786, 0.0016112842131406069, -0.03857574239373207, + 0.023539351299405098, -0.01730475202202797, 0.0040511321276426315, 0.03977104648947716, + 0.033278368413448334, -0.004251481499522924, -0.00019748418708331883, -0.017780156806111336, + 0.008163387887179852, 0.004923840053379536, 0.007165036629885435, -0.022778702899813652, + -0.0343378409743309, 0.001136727980338037, -0.0028269633185118437, 0.011267104186117649, + -0.03412051498889923, -0.0007385760545730591, -0.009073449298739433, 0.030860593542456627, + 0.04797518253326416, 0.014357239007949829, -0.05169692635536194, -0.00721936859190464, + 0.05884158983826637, 0.036728452891111374, 0.016027947887778282, -0.005127585493028164, + -0.010289127938449383, 0.03211022913455963, 0.0026249161455780268, -0.015756288543343544, + 0.02083633281290531, 0.018146898597478867, 0.05270206928253174, 0.019342202693223953, + 0.01310081034898758, -0.04251481220126152, -0.0564509779214859, 0.02463957481086254, + 0.006995248608291149, -0.01507713831961155, 0.024014757946133614, -0.002930533839389682, + 0.03947221860289574, -0.0018303102115169168, 0.009379066526889801, -0.003193704644218087, + 0.011953046545386314, -4.650588380172849e-5, -0.034799665212631226, -0.005304164253175259, + -0.041618335992097855, 0.053462717682123184, -0.021814309060573578, 0.02018434926867485, + -0.0030833426862955093, -0.008353549987077713, 0.005229457747191191, 0.00671679712831974, + -0.018038233742117882, 0.03346852958202362, -0.038602907210588455, 0.0018303102115169168, + -0.020143600180745125, -0.005643739365041256, -0.016421856358647346, -0.03431067615747452, + 0.011987004429101944, -0.025373058393597603, -0.020496757701039314, -0.005487535148859024, + 0.03811391815543175, -0.010248378850519657, -0.0052430410869419575, -0.010234796442091465, + 0.04661688208580017, 0.0033176494762301445, -0.018554387614130974, 0.020360928028821945, + 0.03455517068505287, 0.0015781756956130266, 0.036239463835954666, -0.007185410708189011, + 0.010105757042765617, -0.0036809949669986963, 0.02018434926867485, 0.012761235237121582, + 0.040613193064928055, -0.014452319592237473, -0.04960514232516289, 0.01346076000481844, + -0.0004715850518550724, 0.01019404735416174, 0.026826439425349236, -0.019410118460655212, + -0.030480269342660904, -0.018649470061063766, 0.02584846317768097, -0.0028286613523960114, + 0.022737953811883926, 0.021433984860777855, -0.013134768232703209, 0.008122638799250126, + 0.02485690265893936, -0.03743476793169975, -0.008598043583333492, -0.06590475142002106, + -0.014778312295675278, -0.05063745006918907, 0.023376354947686195, -0.022968865931034088, + 0.04892599210143089, -0.03640246018767357, 0.020632587373256683, 0.03295237571001053, + -0.034500837326049805, -0.01738625019788742, -0.0030544789042323828, -0.005144563969224691, + 0.00476084416732192, 0.015321631915867329, 0.0056335520930588245, 0.02844281680881977, + -0.011796842329204082, -0.01923353783786297, -0.023648016154766083, 0.011824008077383041, + -0.026242369785904884, -0.025468138977885246, -0.01701950840651989, 0.0007131078746169806, + 0.022737953811883926, 0.045068416744470596, -0.018364226445555687, -0.010187255218625069, + -0.011586305685341358, 0.015226551331579685, -6.727833533659577e-5, -0.012401285581290722, + -0.05737462267279625, -0.007212576922029257, -0.016041532158851624, 0.008210928179323673, + 0.0007143812836147845, -0.0028082868084311485, 0.024177752435207367, 0.018690217286348343, + -0.0010017467429861426, 0.02598429284989834, -0.03914622589945793, 0.01752207987010479, + 0.00916173867881298, 0.0033465134911239147, -0.020279429852962494, -0.02492481842637062, + -0.001428762567229569, 0.03172990679740906, -0.04126517474651337, -0.019654611125588417, + -0.01152518205344677, -0.002694529015570879, -0.027315428480505943, 0.0056301564909517765, + 0.015987198799848557, 0.007491028402000666, -0.03843991085886955, -0.02988261543214321, + 0.010309502482414246, 0.021922973915934563, 0.01810614950954914, 0.003928884863853455, + -0.015362381003797054, 0.008380715735256672, -0.004886487033218145, 0.05998256057500839, + 0.04895315691828728, 0.008210928179323673, -0.018554387614130974, 0.037516266107559204, + -0.013637339696288109, 0.004010383039712906, 0.03865724056959152, -0.022996030747890472, + -0.03721744194626808, -0.025033483281731606, -0.03053460083901882, 0.024150587618350983, + -0.010289127938449383, -0.011844382621347904, -0.0034415945410728455, -0.01968177780508995, + 0.015688372775912285, 0.01310081034898758, -0.04770352318882942, 0.009358691982924938, + 0.014425153844058514, -0.007572526577860117, 0.042052991688251495, -0.012061710469424725, + -0.005606386344879866, 0.016408272087574005, -0.024530911818146706, 0.012020961381494999, + 0.04186283051967621, 0.011749301105737686, -0.001011934014968574, -0.010730575770139694, + -0.004190357867628336, 0.01738625019788742, 0.01257107313722372, 0.008699916303157806, + 0.007613275665789843, 0.0029424189124256372, 0.005175125785171986, 0.027125265449285507, + -0.0025773756206035614, -0.022724371403455734, 0.00897157657891512, 0.03409335017204285, + 0.017331916838884354, 0.009725432842969894, -0.02822548896074295, -0.019858356565237045, + 0.016421856358647346, 0.015634041279554367, -0.011267104186117649, 0.022248966619372368, + 0.010730575770139694, -0.014914141967892647, 0.0010509851854294538, -0.02261570654809475, + -0.0028456400614231825, 0.004203940741717815, 0.042052991688251495, -0.0014423455577343702, + 0.03140391409397125, -0.015837786719202995, 0.044063277542591095, 0.0024075880646705627, + 0.02591637894511223, -0.019070541486144066, 0.024082671850919724, -0.005090232007205486, + -0.012706903740763664, 0.03797809034585953, 0.037516266107559204, 0.03814108297228813, + -0.022303298115730286, -0.027383342385292053, -0.0038202209398150444, -0.007334824185818434, + -0.02993694879114628, -0.027451258152723312, 0.01159988809376955, -0.0012199238408356905, + 0.022574957460165024, -0.0027896100655198097, -0.003647037548944354, 0.023933259770274162, + 0.004709907807409763, -0.015769870951771736, 0.0005136074614711106, 0.011783258989453316, + -0.04251481220126152, 0.0393635556101799, -0.03151257708668709, 0.01782090589404106, + -0.00014431944873649627, -0.030072778463363647, -0.0281439907848835, 0.009786556474864483, + -0.021420402452349663, 0.016353940591216087, 0.015742706134915352, -0.007538569159805775, + -0.036375295370817184, -0.021719228476285934, 0.001552707515656948, 0.02262929081916809, + 0.04110218212008476, 0.004244689829647541, -0.0007657420355826616, 0.014493068680167198, + -0.00502571277320385, 0.019423700869083405, -0.0018914337269961834, -0.02333560585975647, + -0.00448578828945756, 0.0025162522215396166, -0.008509754203259945, -0.016068696975708008, + -0.05438636243343353, 0.00897157657891512, 0.00628553656861186, -0.006784712430089712, + -0.03531581908464432, 0.0054501816630363464, -0.011987004429101944, 0.010255170986056328, + -0.02038809470832348, 0.0323275588452816, 0.0008353549637831748, 0.01665276661515236, + 0.020374510437250137, 0.022099552676081657, 0.020795583724975586, -0.014031246304512024, + -0.009480939246714115, -0.014139911159873009, -0.024245668202638626, -0.005949357058852911, + 0.00018305225239600986, -0.030344437807798386, 0.010166880674660206, -0.000542471359949559, + -0.02190939150750637, 0.051751259714365005, -0.01504997257143259, -0.017141755670309067, + -0.016476187855005264, 0.022574957460165024, 0.03303387388586998, 0.0064417412504553795, + 0.0020866894628852606, -0.006013876758515835, 0.025970710441470146, -0.010547204874455929, + 0.02866014651954174, 0.02089066617190838, 0.0066930269822478294, -0.0019933064468204975, + 0.00037926304503344, -0.032653551548719406, 0.026622693985700607, 0.007708356715738773, + -0.025318725034594536, -0.007783063221722841, -0.009895221330225468, 0.02298244833946228, + -0.04126517474651337, -0.0003056176647078246, -0.02936646156013012, 0.005535075441002846, + -0.028741642832756042, -0.06579608470201492, -0.04574757069349289, -0.006513052154332399, + 0.0053788707591593266, -0.037597764283418655, 0.02291453257203102, 0.004696324933320284, + -0.022113136947155, -0.007239743135869503, 0.00010309290519217029, -0.04224315285682678, + 0.03713594377040863, 0.012109250761568546, 0.04178133234381676, 0.0021274385508149862, + -0.013807127252221107, -0.003198798280209303, -0.002981470199301839, 0.009861263446509838, + 0.010547204874455929, -0.01242845132946968, 0.018146898597478867, 0.022656455636024475, + -0.00843504723161459, -0.026174455881118774, 0.006390804890543222, 0.005351705010980368, + 0.00014325827942229807, 0.04093918576836586, 0.031186584383249283, -0.013583007268607616, + -0.0037353269290179014, 0.0031139045022428036, -0.0010441937483847141, -0.008346757851541042, + -0.022072387859225273, 0.006703214254230261, -0.02879597619175911, 0.0018642677459865808, + 0.0011537066893652081, -0.028958972543478012, -0.043411292135715485, 0.002764142118394375, + -0.028823141008615494, -0.03963521495461464, -0.027383342385292053, 0.01738625019788742, + -0.016218110918998718, -0.01731833443045616, -0.014710397459566593, -0.056559644639492035, + 0.00027017449610866606, 1.4604385796701536e-5, 0.036945778876543045, -0.03221889212727547, + 0.037869423627853394, -0.023077528923749924, -0.043139632791280746, 0.021556232124567032, + 0.010852823033928871, -0.03509848937392235, -0.025019899010658264, 0.02291453257203102, + -0.002220821799710393, -0.02196372300386429, -0.006574175786226988, 0.019858356565237045, + -0.009195695631206036, -0.006906959228217602, -0.005810131318867207, -0.014941307716071606, + 0.004136025905609131, 0.007029206492006779, -0.018513638526201248, -0.0030833426862955093, + -0.005878046620637178, 0.007681190501898527, -0.011314645409584045, 0.003864365629851818, + 0.00422091968357563, -0.021012911573052406, -0.022710788995027542, -0.0031139045022428036, + -0.0333327017724514, -0.019708944484591484, 0.009895221330225468, 0.009779765270650387, + 0.03944505378603935, -0.016408272087574005, -0.017861654981970787, 0.011464058421552181, + 0.011531973257660866, 0.00029394475859589875, 0.03425634652376175, -0.040966350585222244, + -0.009650726802647114, 0.04156400263309479, 0.04710587114095688, 0.010241587646305561, + -0.01030271127820015, 0.003918697591871023, -0.008747456595301628, -0.018500056117773056, + -0.006930729374289513, -0.02923063188791275, 0.010499664582312107, -0.007294075097888708, + 0.012652571313083172, -0.016408272087574005, 0.002760746283456683, -0.03289804235100746, + -0.00423450255766511, -0.005412828642874956, 0.020714085549116135, -0.004923840053379536, + 0.005341517738997936, -0.00012330824392847717, -0.024897651746869087, 0.0100514255464077, + 0.007314449641853571, 0.008672750554978848, 0.002166489604860544, -0.019124874845147133, + -0.019994186237454414, 0.026826439425349236, 0.03330553323030472, -0.027899498119950294, + -0.0006719343946315348, 0.011857965029776096, -0.028768809512257576, 0.0033906581811606884, + 0.009372275322675705, 0.019708944484591484, 0.030317272990942, 0.015090721659362316, + 0.001390560413710773, 0.011464058421552181, -0.01644902117550373, -0.002601145999506116, + -0.00915494654327631, -0.02857864834368229, 0.02549530565738678, -0.02226254902780056, + 0.026989435777068138, -0.00013487502292264253, -0.00422091968357563, -0.007572526577860117, + 0.00879499688744545, 0.015756288543343544, -0.020360928028821945, 0.02313186228275299, + -0.04273214191198349, -0.014927725307643414, -0.025196479633450508, -0.018269145861268044, + 0.009555645287036896, -0.03849424421787262, -0.03276221454143524, 0.006020667962729931, + 0.012183957733213902, -0.010506455786526203, 0.01629960909485817, -0.014194242656230927, + -0.011864757165312767, 0.00169702700804919, 1.554617665533442e-5, -0.0018557783914729953, + 0.024870486930012703, 0.00538566242903471, -0.0293121300637722, 0.0033550027292221785, + -0.03490832820534706, 0.030860593542456627, -0.007063163910061121, -0.005253227893263102, + 0.006811878178268671, 0.008890078403055668, -0.02988261543214321, 0.016992341727018356, + 0.04911615327000618, 0.013223057612776756, 0.022289715707302094, -0.013847876340150833, + 0.009324735030531883, 0.01044533308595419, -0.050012633204460144, -0.013610173016786575, + -0.013243432156741619, 0.019084125757217407, -0.007959642447531223, -0.012815567664802074, + 0.013053270056843758, 0.009392649866640568, -0.003776076016947627, 0.016530519351363182, + -0.014696814119815826, -0.03841274604201317, 0.030860593542456627, 0.005779569502919912, + 0.0015977012226358056, -0.009311151690781116, -0.026038624346256256, -0.005368683487176895, + 0.005643739365041256, -0.03705444559454918, 0.0025705841835588217, -0.01242845132946968, + -0.005575824528932571, -0.026120122522115707, -0.012706903740763664, -0.018771715462207794, + 0.009847680106759071, -0.03667411953210831, -0.0034398967400193214, -0.0011469151359051466, + 0.04879016429185867, 0.009847680106759071, 0.00012171648268122226, -0.006156498100608587, + -0.008054723031818867, -0.040178537368774414, 0.0023549539037048817, -0.012346954084932804, + 0.003704765345901251, -0.01780732348561287, 0.005429807119071484, -0.0059357741847634315, + -0.006244787480682135, -0.03642962500452995, 0.01788882166147232, -0.005236249417066574, + 0.015919284895062447, 0.04881732910871506, 0.012550698593258858, -0.044416435062885284, + 0.00075852609006688, -0.01730475202202797, 0.01195983774960041, 0.003701369510963559, + 0.0036028926260769367, 0.009868054650723934, -0.049523644149303436, 0.07171827554702759, + 0.03186573460698128, 0.023077528923749924, -0.0007296621915884316, -0.013379261828958988, + -0.004804988857358694, 0.012577865272760391, 0.0206054225564003, 0.04308529943227768, + 0.0010739065473899245, -0.05900458246469498, 0.0005390755832195282, 0.009277193807065487, + 0.011925880797207355, 0.015837786719202995, 0.017780156806111336, 0.008835745975375175, + -0.06688272953033447, 0.003596101189032197, -0.0075793182477355, -0.010764533653855324, + 0.008557294495403767, -0.022670039907097816, 0.007280491758137941, -0.0033821689430624247, + 0.026772107928991318, -0.000561572436708957, 0.041401006281375885, 0.03784225881099701, + 0.00865916721522808, 0.00698166573420167, -0.006166685372591019, -0.02578054741024971, + 0.004618222359567881, 0.0231997761875391, -0.033006709069013596, 0.0005743065266869962, + -0.009134572930634022, 0.0022632686886936426, 0.0002784516545943916, 0.01213641744107008, + 0.010886779986321926, 0.0180925652384758, 0.011932672001421452, 0.022276131436228752, + -0.024150587618350983, 0.05463085696101189, -0.040966350585222244, 0.00734161539003253, + 0.017576411366462708, -0.03197439759969711, -0.013311346992850304, -0.03268071636557579, + -0.012903857044875622, 0.017399832606315613, -0.008306008763611317, -0.02857864834368229, + -0.01586495339870453, -0.028469983488321304, 0.018500056117773056, -0.017494913190603256, + 0.006835648324340582, 0.030616099014878273, -0.02713884972035885, -0.012951397337019444, + 0.027980994433164597, -0.008523337543010712, -0.01149122416973114, -0.011015819385647774, + -0.0027862144634127617, 0.008890078403055668, 0.0072533260099589825, -0.005188708659261465, + -0.023933259770274162, 0.015919284895062447, 0.006115749012678862, -0.01518580224364996, + -0.005657322704792023, -0.03023577481508255, 0.02262929081916809, 0.016978759318590164, + -0.0016426949296146631, -0.00013338937424123287, -0.02118949219584465, -0.002723393030464649, + 0.00606820872053504, 0.007884935475885868, -0.03566897660493851, -0.028334153816103935, + 0.002641894854605198, 0.008815371431410313, -0.0013837688602507114, 0.006580966990441084, + -0.017562828958034515, 0.026812857016921043, -0.008516545407474041, -0.0028965764213353395, + 0.002081595826894045, 0.00891045294702053, -0.025957128033041954, -0.0226972047239542, + 0.01837780885398388, 0.034066181629896164, 0.010968278162181377, 0.028171157464385033, + -0.0005068159662187099, 0.023783845826983452, 0.0011579514248296618, 0.00709032965824008, + -0.014411570504307747, 0.0030629681423306465, -0.05406036972999573, 0.0013752795057371259, + 0.009827305562794209, 0.03892889991402626, 0.01923353783786297, -0.00785776972770691, + ], + index: 95, + }, + { + title: "Clint Stennett", + text: 'W. Clinton "Clint" Stennett (October 1, 1956 \u2013 October 14, 2010) was a Democratic politician and a minority leader of the Idaho Senate. Stennett represented District 25, which includes Blaine, Gooding, Camas and Lincoln Counties. Stennett served in the Idaho Senate from 1994 to 2010, but was unable to fulfill his duties after the 2008 session due to poor health. He served as the minority leader from 1999 to 2009.', + vector: [ + 0.035401877015829086, -0.027498804032802582, -0.021522914990782738, -0.010113664902746677, + 0.02487524226307869, -0.007089282386004925, 0.02983085811138153, 1.987977339013014e-5, + -0.019320419058203697, 0.049135081470012665, -0.007915218360722065, 0.04550744220614433, + -0.019530951976776123, 0.007712782826274633, -0.01033229473978281, 0.022008759900927544, + -0.02928023412823677, 0.03093210607767105, 0.021296188235282898, -0.02740163542330265, + 0.04145873710513115, -0.04026032239198685, -0.041167233139276505, 0.002064839471131563, + 0.06464972347021103, 0.027061544358730316, 0.009959814138710499, -0.006052813958376646, + -0.029118286445736885, -0.031547509133815765, -0.011376860551536083, 0.007340302225202322, + 0.04181502386927605, 0.03909429535269737, 0.024859048426151276, 0.02532869763672352, + 0.004963712301105261, -0.002483880380168557, -0.012518595904111862, 0.042495205998420715, + -0.019644316285848618, -0.023935943841934204, -0.019530951976776123, -0.01319068018347025, + 0.013287849724292755, -0.000880087201949209, -0.010696678422391415, -0.006931382697075605, + 0.012154212221503258, 0.01590331271290779, -0.026689061895012856, -0.03381478413939476, + -0.024891437962651253, -0.0033280353527516127, 0.05208253860473633, 0.0272234920412302, + 0.000954482180532068, 0.0782533660531044, -0.05094890296459198, -0.030219532549381256, + -0.031094053760170937, 0.0064576840959489346, -0.04638196527957916, 0.02226787619292736, + 0.01695597544312477, 0.022332657128572464, 0.030349092558026314, 0.001865440746769309, + -0.04009837284684181, -0.011028672568500042, 0.028988726437091827, -0.0360172800719738, + 0.03844650089740753, 0.03770153969526291, 0.03494841977953911, 0.0018522824393585324, + -0.016891196370124817, -0.03776631876826286, -0.03588772192597389, 0.008672325871884823, + -0.0034515210427343845, -0.03426823765039444, 0.005129708908498287, 0.006077106110751629, + -0.0052187805995345116, -0.02612224407494068, 0.03193618357181549, -0.05732966214418411, + 0.013846570625901222, 0.023482488468289375, 0.05072217434644699, 0.005639845971018076, + 0.004380698781460524, -0.01805722340941429, -0.008137896656990051, -0.024664711207151413, + 0.04667346924543381, -0.01695597544312477, -0.007073087617754936, -0.05072217434644699, + 0.0059192064218223095, 0.03702135756611824, 0.03423584997653961, 0.0598236620426178, + 0.05347529426217079, 0.033879563212394714, -0.02890775352716446, -0.024583736434578896, + 0.013563161715865135, 0.07954895496368408, 0.006004229187965393, -0.017652353271842003, + -0.02670525759458542, -0.0062309568747878075, 0.026915790513157845, 0.03284309431910515, + -0.029863247647881508, 0.06189659982919693, 0.009109586477279663, -0.03977447748184204, + -0.0152555201202631, -0.01891554892063141, -0.0330212377011776, -0.019952017813920975, + -0.004032509867101908, -0.009190560318529606, -0.02532869763672352, 0.01868882216513157, + -0.005745112430304289, 0.003996071871370077, -0.02702915482223034, -0.04048704728484154, + -0.037410032004117966, -0.010259417816996574, -0.02602507546544075, 0.004060850944370031, + 0.051661472767591476, 0.008664228953421116, 0.01910988800227642, 0.0019646340515464544, + 0.03303743153810501, 0.013441700488328934, -0.05593690648674965, 0.03468930348753929, + -0.015968091785907745, -0.04210653156042099, 0.04285149276256561, 0.013733207248151302, + -0.015239325352013111, 0.008996222168207169, 0.010542827658355236, 0.0031539411284029484, + -0.030575819313526154, -0.012745322659611702, 0.029976611956954002, -0.07838292419910431, + -0.060730572789907455, 0.003489983733743429, -0.028065621852874756, 0.007486055605113506, + -0.02905350551009178, 0.017247483134269714, -0.021603889763355255, 0.025458255782723427, + 0.031320780515670776, -0.041167233139276505, 0.0360172800719738, 0.03179043158888817, + -0.04732126370072365, 0.022105928510427475, -0.005534579511731863, -0.0539611391723156, + 0.02259177342057228, -0.006097349803894758, -0.038835179060697556, -0.017668548971414566, + 0.0215391106903553, -0.004538598004728556, 0.008445598185062408, -0.005809891503304243, + 0.019320419058203697, 0.003390790428966284, -0.0229156706482172, 0.00151522783562541, + -0.015190741047263145, -0.006405051331967115, 0.05927303805947304, -0.002747046295553446, + 0.041879802942276, -0.04265715554356575, 0.027709336951375008, -0.04291627183556557, + -0.004789617843925953, 0.01786288619041443, 0.03491603210568428, 0.05172625556588173, + -0.01289917342364788, 0.009425384923815727, -0.011660270392894745, 0.03279450908303261, + 0.020324498414993286, -0.0009651100262999535, 0.00702045438811183, 0.025539230555295944, + -0.0059880344197154045, -0.01154690608382225, 0.004898932762444019, -0.0003152928838972002, + -0.033199381083250046, -0.011976068839430809, -0.011093451641499996, 0.015304104425013065, + -2.584212415968068e-5, 0.03504559025168419, -0.037960655987262726, 0.014275733381509781, + 0.016421547159552574, 0.03702135756611824, 0.04184741526842117, 0.008024533279240131, + 0.057621169835329056, -0.0007226938032545149, -0.03285928815603256, -0.019919628277420998, + 0.011992263607680798, -0.025393476709723473, -0.01718270406126976, 0.02647853083908558, + 0.027385439723730087, 0.008745202794671059, -0.04324016720056534, -0.019320419058203697, + -0.02515055425465107, 0.04884357750415802, -0.03436540812253952, -0.01642964407801628, + 0.030041391029953957, -0.004579085391014814, -0.035855330526828766, -0.016526812687516212, + -0.01755518466234207, 0.05502999573945999, -0.031628482043743134, 0.03111024759709835, + 0.009287728928029537, 0.017846690490841866, -0.0065427073277533054, -0.022688942030072212, + -0.02813040092587471, 0.047353651374578476, -0.03689179942011833, -0.015798047184944153, + 0.002599268453195691, 0.010478048585355282, 0.0002546888426877558, -0.02442178875207901, + -0.050786953419446945, -0.04003359377384186, 0.01600858010351658, -0.03115883283317089, + -0.015287909656763077, -0.0069435290060937405, 0.014162370003759861, 0.030672987923026085, + 0.0087047154083848, 0.03423584997653961, -0.01642964407801628, 0.029474571347236633, + 0.050365887582302094, -0.003724808571860194, 0.03967730700969696, -0.022688942030072212, + 0.023336734622716904, 0.02757977694272995, -0.011247302405536175, 0.011012477800250053, + -0.013142095878720284, -0.01901271753013134, -0.07268235087394714, 0.023352930322289467, + -0.03180662542581558, -0.013636037707328796, 0.020454056560993195, -0.030122363939881325, + -0.02885916829109192, 0.017717132344841957, 0.042268477380275726, -0.024891437962651253, + 0.028648635372519493, -0.004575036466121674, -0.031191222369670868, 0.026365166530013084, + 0.034300629049539566, 0.032697342336177826, 0.0022612016182392836, 0.019725291058421135, + -0.02680242620408535, 0.02497241273522377, 0.030721573159098625, -0.0045547932386398315, + -0.005020393989980221, 0.002083058701828122, 0.040389880537986755, -0.03880278766155243, + 0.008720910176634789, 0.02327195554971695, 0.005307852290570736, -0.009020514786243439, + 0.0004327053320594132, -0.0020709126256406307, -0.06011516973376274, 0.005020393989980221, + 0.026332776993513107, 0.033879563212394714, 0.010000301524996758, -0.00504063768312335, + 0.002067876048386097, 0.0015466052573174238, -0.010704775340855122, -0.009401093237102032, + 0.008510377258062363, 0.0014656311832368374, 0.03676224127411842, -0.007044746540486813, + 0.025004802271723747, -0.04887596517801285, -0.011538809165358543, 0.02923164889216423, + -0.04732126370072365, 0.010437561199069023, -0.05405830964446068, -0.0317094586789608, + 0.022300265729427338, -0.03527231886982918, -0.02923164889216423, 0.018397314473986626, + -0.04320777952671051, -0.007453665602952242, 0.03728047385811806, 0.026510920375585556, + -0.008405111730098724, -0.038640838116407394, -0.011109646409749985, 0.0044171372428536415, + -0.010251320898532867, -0.013984226621687412, 0.0743018314242363, 0.007105477154254913, + 0.01727987267076969, 0.005226877983659506, 0.000804173992946744, 0.015061181969940662, + -0.01317448541522026, -0.0016984316753223538, 0.01157119870185852, 0.0248266588896513, + -0.05017155036330223, -0.0011771610006690025, 0.02116663008928299, 0.055645398795604706, + 0.029199259355664253, 0.02071317471563816, 0.0019869019743055105, -0.014032810926437378, + 0.022462215274572372, -0.006287638563662767, 0.024227449670433998, 0.010818139649927616, + -0.0379282683134079, -0.005797745659947395, 0.002263226080685854, -0.03624400496482849, + 0.019984407350420952, 0.039968814700841904, 0.039385803043842316, -0.025992685928940773, + -0.0003780478145927191, 0.03964491933584213, -0.025506841018795967, -0.012607666663825512, + 0.0394829697906971, 0.004498111084103584, 0.018397314473986626, -0.03656790405511856, + -0.017992444336414337, -0.039418190717697144, -0.011886997148394585, 0.03546665608882904, + -0.022575577720999718, -0.03783109784126282, 0.0012996342265978456, -0.04145873710513115, + -0.030980689451098442, 0.0006402014405466616, 0.01833253540098667, -0.030753962695598602, + -0.012154212221503258, 0.011150132864713669, 0.05668186768889427, -0.04641435295343399, + -0.03190379589796066, -0.07404271513223648, 0.0356609933078289, -0.008834274485707283, + -0.006032570265233517, -0.023531073704361916, -0.020275915041565895, -0.012364745140075684, + 0.006886846851557493, -0.030543429777026176, -0.010073177516460419, -0.010040787979960442, + -0.06691699475049973, 0.028017038479447365, 0.050365887582302094, -0.01983865350484848, + -0.041393958032131195, 0.03854367136955261, 0.011806023307144642, 0.01923944614827633, + 0.034300629049539566, -0.02432461827993393, 0.03153131529688835, 0.01896413415670395, + 0.026332776993513107, 0.0007849426474422216, -0.004202555865049362, 0.019757680594921112, + 0.008931443095207214, -0.026996763423085213, -0.049361810088157654, -0.024065501987934113, + -0.011976068839430809, 0.04884357750415802, -0.019628120586276054, -0.026770036667585373, + -0.05483565852046013, 0.015490344725549221, -0.019579537212848663, 0.03556382283568382, + -0.021846812218427658, -0.020956097170710564, -0.014470071531832218, 0.06312740594148636, + -0.0434345044195652, 0.0195633415132761, -0.006069008726626635, 0.020923707634210587, + -0.008510377258062363, -0.013020634651184082, -0.039742086082696915, -0.012162309139966965, + 0.007271474227309227, 0.0008846420096233487, 0.01129588671028614, 0.011652172543108463, + 0.013757498934864998, -0.0032875484321266413, 0.04230086877942085, -0.04609045758843422, + -0.01539317611604929, -0.059953223913908005, -0.00029935111524537206, -0.0029879442881792784, + -0.027741726487874985, -0.013555063866078854, 0.020648395642638206, -0.03987164422869682, + -0.01174934208393097, 0.039515361189842224, 0.011619783006608486, 0.024162670597434044, + -0.07494962215423584, -0.00457098800688982, 0.029085896909236908, 0.028875363990664482, + -0.004518354777246714, 0.00374505203217268, 0.027919869869947433, 0.0029231649823486805, + 0.008648033253848553, -0.023854969069361687, 0.0031154784373939037, -0.015263617038726807, + 0.041393958032131195, 0.01841351017355919, -0.04916747286915779, -0.06335413455963135, + -0.04589612036943436, -0.02890775352716446, 0.012793907895684242, 0.053540073335170746, + 0.03617922589182854, -0.019822459667921066, -0.0018421607092022896, 0.024227449670433998, + -0.05007438361644745, 0.009222949855029583, 0.03455974534153938, -0.0031397705897688866, + 0.03336132690310478, 0.06691699475049973, 0.001359352725557983, -0.0201625507324934, + -0.06464972347021103, 0.0020628152415156364, 0.04842251166701317, 0.017166508361697197, + -0.004530500620603561, -0.017247483134269714, 0.02089131809771061, 0.051013682037591934, + -0.00966830737888813, 0.010291808284819126, 0.042819101363420486, -0.03462452441453934, + -0.004607426002621651, 0.0047693741507828236, 0.009101488627493382, -0.010388976894319057, + -0.016243403777480125, -0.009206755086779594, -0.019773874431848526, 0.010704775340855122, + -0.015182643197476864, 0.006959723774343729, 0.014065200462937355, -0.03536948561668396, + -0.052762720733881, -0.056519921869039536, -0.003536543808877468, 0.0017227239441126585, + 0.024178866297006607, 0.003971779718995094, -0.03106166422367096, 0.05447937175631523, + -0.01778191141784191, -0.0014727164525538683, 0.0061054471880197525, -0.007696588058024645, + 0.011101548559963703, 0.0272234920412302, 0.0038563914131373167, -0.03698896989226341, + 0.029749883338809013, 0.03336132690310478, -0.043272558599710464, -0.0014484241837635636, + 0.004773423075675964, -0.028551466763019562, -0.0007029564003460109, 0.0269805695861578, + -0.011344471015036106, 0.00012291615712456405, -0.03101307898759842, -0.031077858060598373, + 0.00517829367890954, 0.030413871631026268, 0.0047693741507828236, 0.0010971990413963795, + -0.0067006065510213375, -0.030527234077453613, -0.04026032239198685, -0.019207056611776352, + -0.011992263607680798, 0.010243223048746586, -0.06319218873977661, 0.030915910378098488, + -0.010680483654141426, 0.005546725820749998, 0.02850288338959217, -0.021474331617355347, + -1.2256820980383054e-7, 0.017522795125842094, -0.007947607897222042, 0.0379282683134079, + 0.02349868416786194, -0.007060941308736801, -0.01613003946840763, 0.021409550681710243, + -0.0052754622884094715, -0.0012055018451064825, 0.05736204981803894, -0.02717490680515766, + -0.010308003053069115, 0.033053625375032425, 0.012834394350647926, -0.017247483134269714, + 0.00800429005175829, 0.021571500226855278, -0.02753119356930256, -0.014210954308509827, + 0.019628120586276054, 0.02029210887849331, 0.02534489333629608, 0.053216177970170975, + -0.009619723074138165, 0.011198718100786209, -0.013579356484115124, 0.007473909296095371, + 0.027110127732157707, 0.017700938507914543, 0.010243223048746586, -0.04048704728484154, + 0.023887358605861664, -0.04910269379615784, -0.04984765499830246, -0.01833253540098667, + 0.0016093602171167731, -0.029296427965164185, 0.048228174448013306, -0.05379918962717056, + 0.01495591551065445, -0.023158591240644455, -0.0017864910187199712, -0.029312623664736748, + 0.034333016723394394, 0.035401877015829086, -0.023660631850361824, -0.026996763423085213, + -0.0269805695861578, -0.03909429535269737, 0.021830616518855095, 0.04055183008313179, + 0.04599328711628914, 0.04064899682998657, -0.0003836147952824831, 0.007652052212506533, + -0.006040667649358511, -0.016364865005016327, -0.0449892096221447, -0.034430187195539474, + -0.013538869097828865, 0.015895215794444084, -0.014324317686259747, -0.019644316285848618, + 0.026316581293940544, -0.00688279839232564, -0.011142035946249962, 0.009870742447674274, + 0.02221929281949997, 0.03627639636397362, 0.04942658916115761, 0.016219111159443855, + -0.013506479561328888, -0.011101548559963703, 0.02089131809771061, 0.04045465961098671, + 0.022964254021644592, 0.010955795645713806, 0.025118164718151093, -0.0277579203248024, + -0.015522734262049198, -0.006959723774343729, -0.025134360417723656, -0.03284309431910515, + 0.0007545773987658322, 0.025684984400868416, 0.05959693714976311, -0.016632080078125, + -0.011603588238358498, -0.024486567825078964, 0.03284309431910515, -0.014146175235509872, + 0.021020876243710518, 0.051985371857881546, 0.046479132026433945, 0.016526812687516212, + -0.01623530685901642, 0.026818621903657913, -0.057750727981328964, 0.039418190717697144, + 0.024211255833506584, -0.0003557799500413239, 0.019401393830776215, -0.0015304104890674353, + -0.04622001573443413, -0.01255098544061184, 0.024713294580578804, -0.018478289246559143, + 0.022656552493572235, -0.019028913229703903, -0.017069339752197266, 0.009457774460315704, + -0.03870561718940735, 0.018267756327986717, 0.0087047154083848, -0.010688580572605133, + 0.020324498414993286, -0.010097470134496689, 0.00859135203063488, 0.020972291007637978, + 0.005826086271554232, -0.011765536852180958, 0.018996523693203926, -0.015409370884299278, + 0.024357007816433907, -0.032000962644815445, -0.00682611670345068, -0.022575577720999718, + -0.00336244935169816, 0.025490645319223404, 0.023450098931789398, 0.02304522879421711, + 0.009716891683638096, 0.04126439988613129, -0.01237284205853939, -0.025280114263296127, + -0.013546966947615147, 0.007692539133131504, -0.006781580857932568, 0.036405954509973526, + -0.009716891683638096, 0.02254318818449974, 0.0075508346781134605, 0.012996342964470387, + 0.02116663008928299, -0.016162430867552757, 0.018202977254986763, -0.022332657128572464, + 0.019223250448703766, 0.03179043158888817, -0.006170226261019707, -0.002961627673357725, + -0.019028913229703903, 0.04907030239701271, -0.015385078266263008, 0.010810041800141335, + 0.018445899710059166, 0.01993582211434841, -0.020032992586493492, -0.04417946934700012, + 0.04142634943127632, -0.024033112451434135, 0.03247061371803284, -0.01647822931408882, + 0.031822819262742996, -0.01723128743469715, 0.016664469614624977, -0.005328095518052578, + 0.007056892849504948, -0.04252759739756584, -0.029166869819164276, 0.001460570259951055, + 0.03624400496482849, -0.01695597544312477, 0.03582294285297394, 0.018866965547204018, + 0.003151916665956378, -0.0008654106641188264, 0.03478647395968437, -0.04356406629085541, + -0.002805752446874976, 0.002356346230953932, -0.030025195330381393, -0.03536948561668396, + -0.009303923696279526, 6.838515400886536e-5, 0.04252759739756584, 0.031029274687170982, + -0.010413268581032753, 0.0053240470588207245, 0.038640838116407394, 0.021425746381282806, + 0.00333208404481411, 0.001055699773132801, 0.05726488307118416, 0.008785689249634743, + -0.0010435536969453096, 0.033231768757104874, -0.0018158440943807364, -0.05869002640247345, + -0.01484255213290453, -0.010696678422391415, -0.005239024292677641, 0.01796005479991436, + -0.0016528838314116001, 0.056293193250894547, 0.028891557827591896, -0.039385803043842316, + -0.05856046825647354, 0.037086136639118195, 0.00289279967546463, -0.0028361177537590265, + -0.017377041280269623, -0.011878900229930878, 0.062382444739341736, 0.031223611906170845, + -0.03899712488055229, -0.03394434228539467, 0.013142095878720284, 0.009344411082565784, + 0.021587694063782692, -0.011142035946249962, 0.039742086082696915, 0.0019190860912203789, + 0.02437320351600647, -0.0014959964901208878, -0.0005835195770487189, 0.004664108157157898, + 0.051564306020736694, -0.032778315246105194, 0.015061181969940662, -0.01713411882519722, + 0.06264156103134155, -0.02469710074365139, -0.007267425302416086, -0.04000120609998703, + -0.005287608597427607, -0.0009549882961437106, 0.03747481107711792, -0.008526572957634926, + 0.003449496580287814, -0.0001495490432716906, -0.006380758713930845, 0.0072755226865410805, + -0.03669746220111847, 0.0403251014649868, -0.006522463634610176, -0.030446261167526245, + -0.019579537212848663, 0.00286445883102715, 0.04919986054301262, -0.021782033145427704, + -0.028017038479447365, 0.03407390043139458, 0.03669746220111847, -0.025361087173223495, + -0.0008077166276052594, 0.011255399323999882, 0.004526452161371708, 0.04699736833572388, + -0.03511036932468414, -0.0006290675373747945, -0.05645514279603958, 0.03676224127411842, + -0.07864204049110413, -0.029668910428881645, -0.011214912869036198, 0.03899712488055229, + 0.03313460201025009, -0.03349088877439499, -0.012308062985539436, -0.018947938457131386, + 0.04443858563899994, 0.013822278939187527, 0.006712752860039473, -0.0026883401442319155, + 0.0007702661096118391, -0.007635857444256544, 0.020227329805493355, 0.01833253540098667, + -0.030964495614171028, 0.02442178875207901, 0.037086136639118195, 0.02740163542330265, + 0.03028431348502636, -0.01705314591526985, 0.013854668475687504, -0.018041029572486877, + 0.04175024479627609, 0.024178866297006607, -0.0017115899827331305, -0.02474568411707878, + -0.012154212221503258, 0.016615884378552437, 0.004429283086210489, -0.03617922589182854, + 0.012210894376039505, -0.06445538252592087, 0.03436540812253952, 0.009660209529101849, + 0.012866783887147903, -0.02652711421251297, -0.0005410081939771771, 0.034754082560539246, + -0.019579537212848663, 0.006008278112858534, 0.025830736383795738, 0.008324136957526207, + -0.008012386970221996, -0.015036890283226967, -0.04087572544813156, -0.04081094637513161, + 0.021863006055355072, -0.02226787619292736, -0.053216177970170975, -0.002866483060643077, + -0.0004823019844479859, -0.00580584304407239, 0.004307821858674288, -0.007814000360667706, + 0.016372961923480034, -0.04596089944243431, 0.008445598185062408, 0.018543068319559097, + 0.014445778913795948, -0.007437470834702253, -0.014874941669404507, -0.03326416015625, + 0.011830315925180912, -0.034851253032684326, -0.011563100852072239, 0.031175028532743454, + 0.04022793099284172, -0.007660149596631527, -0.0035405925009399652, 0.008206725120544434, + 0.037539590150117874, -0.01307731680572033, 0.025733567774295807, -0.049135081470012665, + 1.706465809547808e-5, -0.01676163822412491, 0.04126439988613129, 0.018931744620203972, + -0.01690739206969738, 0.010024593211710453, 0.020680785179138184, -0.0012915368424728513, + -0.012016556225717068, 0.05020394176244736, -0.0016619933303445578, -0.01351457741111517, + -0.022624162957072258, -0.028600051999092102, 0.00289279967546463, -0.033150795847177505, + -0.007951656356453896, 0.03569338098168373, -0.021587694063782692, -0.019692901521921158, + 0.021879201754927635, -0.014057103544473648, 0.043272558599710464, -0.0031903793569654226, + 0.02562020532786846, 0.03345849737524986, -0.010413268581032753, -0.01276151742786169, + 0.018931744620203972, 0.027158712968230247, -0.012891076505184174, 0.003330059815198183, + 0.011579295620322227, 0.00950635876506567, -0.0010354563128203154, -0.005376680288463831, + 0.010243223048746586, 3.0523438908858225e-5, 0.04485965147614479, 0.011360665783286095, + -0.02396833337843418, 0.0011903191916644573, 0.014478168450295925, 0.0217172522097826, + -0.013717012479901314, 0.02730446681380272, 0.0029049457516521215, -0.0028320690616965294, + -0.008332234807312489, -0.019093692302703857, -0.019854849204421043, -0.004182312171906233, + 0.036859408020973206, 0.016186721622943878, 0.011206815019249916, -0.0008699654717929661, + -0.02642994560301304, -0.028891557827591896, -0.007769464515149593, 0.03164467588067055, + -0.001584055833518505, 0.01836492493748665, -0.04728887230157852, 0.025118164718151093, + -0.03345849737524986, 0.006360515486449003, 0.04511876776814461, 0.021506721153855324, + 0.03478647395968437, 0.055191945284605026, 0.0021093753166496754, 0.033782392740249634, + 0.025717373937368393, 0.04288388416171074, -0.002659999066963792, 0.03643834590911865, + 0.04045465961098671, 0.0406813882291317, -0.03559621423482895, -0.03647073358297348, + 0.017765717580914497, -0.003473788732662797, 0.009457774460315704, 0.024211255833506584, + -0.06409909576177597, -0.004745081998407841, 0.02702915482223034, -0.0006032570381648839, + 0.0008942576823756099, 0.03821977600455284, -0.013943740166723728, 0.011741244234144688, + -0.003907000180333853, 0.003423179965466261, -0.0017298092134296894, 0.02642994560301304, + -0.007805902976542711, 0.03766915202140808, 0.009733086451888084, 0.01509357150644064, + 0.01961192674934864, 0.00633217440918088, 0.03143414482474327, -0.038090214133262634, + -0.00043877839925698936, -0.005133757833391428, -0.01610574871301651, 0.019676705822348595, + -0.0017480283277109265, -0.011814121156930923, 0.007441519759595394, 0.028470491990447044, + -0.010623801499605179, -0.012777713127434254, 0.026235608384013176, 0.00014524729340337217, + 0.012882978655397892, 0.01264815405011177, 0.015514637343585491, 0.0305110402405262, + -0.006866603624075651, 0.019142277538776398, 0.004979907069355249, -0.018591653555631638, + 0.017943860962986946, 0.05026872083544731, -0.00020357394532766193, -0.0465439110994339, + 0.03582294285297394, 0.015352688729763031, -0.021312382072210312, 0.02562020532786846, + -0.030980689451098442, -0.006781580857932568, -0.04252759739756584, 0.012583374977111816, + -0.03133697435259819, -0.029523156583309174, -0.01319877803325653, -0.012518595904111862, + -0.012955855578184128, -0.008137896656990051, 0.023288151249289513, -0.03439779579639435, + 0.04311060905456543, -0.015425565652549267, -0.02204114943742752, 0.020097771659493446, + -0.003611444728448987, -0.025944100692868233, 0.0187859907746315, 0.03216291218996048, + 0.0006862554582767189, 0.012316159904003143, 0.0040932404808700085, 0.014089493080973625, + -0.020194940268993378, -0.004400942008942366, 0.008834274485707283, -0.021231409162282944, + 0.0066317785531282425, 0.012891076505184174, -0.03990403562784195, 0.029992805793881416, + -0.020696979016065598, 0.02106945961713791, -0.04168546572327614, -0.022850889712572098, + -0.0023158593103289604, 0.03614683821797371, -0.0330212377011776, 0.007660149596631527, + 0.006858506239950657, 0.020535031333565712, 0.002060790779069066, 0.024988606572151184, + -0.005380728747695684, 0.005028491374105215, -0.009749281220138073, 0.0010045849485322833, + -0.016291989013552666, -0.01647822931408882, 0.006514366250485182, 0.017603768035769463, + -0.012777713127434254, 0.03368522599339485, -0.043499287217855453, -0.021247602999210358, + -0.0031397705897688866, -0.02996041625738144, -0.020194940268993378, -0.007016405463218689, + -0.01846209354698658, 0.003864488797262311, -0.015870923176407814, 0.02863244153559208, + -0.026867205277085304, -0.015644196420907974, 0.00845369603484869, 0.01838112063705921, + -0.009125781245529652, 0.014834455214440823, -0.0059313527308404446, -0.013166388496756554, + -0.028162790462374687, 0.00898002739995718, -0.011530711315572262, -0.0005293681751936674, + -0.04732126370072365, -0.0065629505552351475, -0.00454669538885355, -0.0022105928510427475, + 0.002259177388623357, -0.028373323380947113, 0.0007910157437436283, 0.0001891504361992702, + 0.042268477380275726, 0.0024676856119185686, -0.03060820885002613, -0.03311840444803238, + -0.004639816004782915, -0.005457654129713774, 0.001134649501182139, -0.008963832631707191, + -0.018656432628631592, -0.008712813258171082, 0.02377399429678917, 0.0021923736203461885, + 0.01703695021569729, -0.01681022346019745, -0.0046681566163897514, 0.013976129703223705, + 0.04184741526842117, -0.00495966337621212, -0.004830104764550924, 0.01676163822412491, + -0.009684502147138119, 9.672609303379431e-5, -0.0026296337600797415, -0.021571500226855278, + -0.0037754173390567303, 0.0027409731410443783, 0.03815499320626259, -0.008793787099421024, + 0.02639755606651306, -0.00994361937046051, -0.006846359930932522, 0.029895637184381485, + -0.00980596337467432, -0.014162370003759861, -0.006878749467432499, 0.0005809891736134887, + 0.006996162235736847, 0.03621161729097366, -0.02098848670721054, -0.01864023692905903, + -0.00032541464315727353, -0.016121942549943924, -0.01773332804441452, 0.025166749954223633, + -0.04395274072885513, -0.012518595904111862, 0.021101849153637886, -0.007226938381791115, + -0.01805722340941429, 0.04126439988613129, 0.02034069411456585, -0.014210954308509827, + -0.02963651902973652, -0.010567119345068932, 0.040163151919841766, -0.007858536206185818, + -0.0026377311442047358, 0.005534579511731863, 0.03834933415055275, -0.019644316285848618, + -0.04200936108827591, 0.01470489613711834, -0.0021761788520962, -0.024583736434578896, + 0.029539350420236588, -0.029814662411808968, 0.006073057185858488, -0.03821977600455284, + 0.012324257753789425, 0.013595551252365112, 0.005907060578465462, 0.007174305152148008, + -0.004643864464014769, -0.012016556225717068, -0.012380939908325672, 0.009976008906960487, + -0.006927334237843752, -0.029847051948308945, -0.0013370848027989268, -0.02349868416786194, + 0.01509357150644064, 0.028259960934519768, -0.02694818004965782, -0.00584228103980422, + 0.007036649156361818, 0.01565229333937168, 0.035531435161828995, -0.0035588114988058805, + 0.0140004213899374, -0.00039803830441087484, 0.017668548971414566, -0.02051883563399315, + 0.01282629743218422, -0.03812260553240776, -0.004777472000569105, -0.021296188235282898, + -0.02895633690059185, 0.0014798016054555774, -0.00043599490891210735, -0.022705137729644775, + 0.007818048819899559, -0.012696738354861736, -0.03245441988110542, 0.005789647810161114, + -0.016891196370124817, -0.013368823565542698, -0.0036276394966989756, -0.07779991626739502, + 0.015660390257835388, 0.04097289219498634, 0.0009585308725945652, 0.0152555201202631, + 0.020858928561210632, 0.005077076144516468, -0.04268954321742058, -0.012704836204648018, + -0.01280200481414795, 0.011903192847967148, -0.0028806535992771387, 0.002382662845775485, + -0.022883279249072075, 0.019919628277420998, -0.007854487746953964, -0.00740912975743413, + 0.00886666402220726, -0.02808181755244732, -0.007623711135238409, -0.006988064851611853, + -0.0017945884028449655, 0.02144194208085537, -0.003973803948611021, 0.0032875484321266413, + -0.006789678242057562, 0.025782153010368347, 0.032826900482177734, 0.03737764433026314, + 0.023628242313861847, 0.013749402016401291, -0.04181502386927605, 0.00749010406434536, + 0.021199019625782967, 0.004006193485110998, -0.025231529027223587, -0.007154061459004879, + 0.018154392018914223, -0.009449677541851997, -0.024437982589006424, 0.009595430456101894, + 0.0007707722252234817, 0.015765657648444176, -0.019725291058421135, 0.03909429535269737, + -0.011393055319786072, 0.009214852005243301, -0.0033138650469481945, -0.018267756327986717, + 0.012267575599253178, 0.004781520459800959, -0.0027652655262500048, -0.0011538808466866612, + -0.009652112610638142, 0.007603467907756567, 0.011085353791713715, 0.025684984400868416, + 0.004054777789860964, -0.010963892564177513, -0.019093692302703857, -0.01317448541522026, + -0.0013836448779329658, -0.007133818231523037, -0.0044738189317286015, -0.004996101837605238, + -0.0050811246037483215, -0.0031154784373939037, -0.035531435161828995, -0.010777652263641357, + 0.00015726688434369862, -0.018543068319559097, -0.012486206367611885, 0.0023705167695879936, + 0.005004199221730232, 0.014988305978477001, 0.022413630038499832, -0.02437320351600647, + -0.011886997148394585, 0.0283571295440197, 0.004202555865049362, 0.008882858790457249, + 0.019045107066631317, 0.00754678575322032, 0.027644557878375053, 0.00672489870339632, + 0.011603588238358498, -0.026559503749012947, -0.021360967308282852, -0.020648395642638206, + -0.03253539279103279, 0.003423179965466261, -0.024616125971078873, 0.011352568864822388, + -0.0037187354173511267, -0.025134360417723656, 0.00037551738205365837, 0.0035021298099309206, + -0.02199256420135498, -0.04113484174013138, -0.02474568411707878, 0.0034393747337162495, + -0.00641314871609211, -0.009328216314315796, 0.03634117543697357, 9.46384752751328e-5, + 0.0014271684922277927, 0.007562980987131596, -0.00025380318402312696, 0.04275432229042053, + -0.03656790405511856, -0.004190409556031227, 0.03689179942011833, 0.001110357348807156, + 0.027612168341875076, -0.034754082560539246, -0.0021964223124086857, 0.0026053416077047586, + 0.028842974454164505, 0.018251562491059303, -0.029928026720881462, 0.013749402016401291, + 0.0019514757441356778, -0.01781430095434189, 0.006016375496983528, -0.010429464280605316, + -0.023110007867217064, 0.011085353791713715, 0.013506479561328888, -0.030770156532526016, + -0.010461853817105293, -0.0004896402242593467, 0.027385439723730087, 0.025182943791151047, + -0.010939600877463818, 0.0051499526016414165, -0.024859048426151276, 0.0016022749477997422, + 0.005870622117072344, 0.02029210887849331, 0.010348489508032799, 0.006571047939360142, + -0.0002457057707943022, -0.0217172522097826, -0.02557162009179592, -0.004898932762444019, + -0.029668910428881645, -0.026267997920513153, -0.018526874482631683, 0.011789828538894653, + 0.051467135548591614, 0.027968453243374825, -0.0020729368552565575, -0.00625524902716279, + 0.005907060578465462, 0.014283831231296062, 0.005348339211195707, 0.030543429777026176, + -0.03183901682496071, -0.011328276246786118, -0.0002316618338227272, 0.005550774279981852, + -0.006360515486449003, 0.0018340633250772953, -0.004975858144462109, 0.03436540812253952, + -0.023514878004789352, -0.012332355603575706, 0.008971930481493473, -0.01979007013142109, + -0.025490645319223404, -0.03316698968410492, -0.019903432577848434, -0.016972171142697334, + 0.0016457985620945692, -0.03724808618426323, -0.0244703721255064, -0.006320028565824032, + 0.005939450114965439, -0.002704534912481904, 0.022251682355999947, 0.011344471015036106, + 0.009061001241207123, 0.07015595585107803, -0.021782033145427704, 0.0025284162256866693, + -0.015336493961513042, 0.01074526272714138, -0.0008072105119936168, 0.05713532492518425, + 0.004842251073569059, -0.035855330526828766, -0.025863127782940865, -0.039288632571697235, + 0.019547147676348686, -0.020308304578065872, -0.024357007816433907, -0.0030871375929564238, + 0.0009686526609584689, -0.006344320718199015, 0.03224388509988785, 0.012931563891470432, + 0.009133878163993359, -0.008834274485707283, 0.039612527936697006, -0.022802306339144707, + 0.02194398082792759, -0.010113664902746677, 0.03352327644824982, 0.028292350471019745, + -0.020745564252138138, -0.04336972534656525, -0.022786110639572144, 0.0114578353241086, + 0.015644196420907974, 0.014883039519190788, 0.015223130583763123, 0.0014200832229107618, + -0.0025182943791151047, -0.03715091571211815, 0.031596094369888306, 0.04123201221227646, + 0.014065200462937355, -0.003767319954931736, 0.04022793099284172, 0.007664198521524668, + -0.02029210887849331, 0.01332833617925644, -0.03352327644824982, -0.01102057471871376, + -0.037636760622262955, -0.03381478413939476, -0.0023239566944539547, 0.011239204555749893, + -0.031045468524098396, -0.013636037707328796, 0.005328095518052578, 0.007384837605059147, + -0.0006437440752051771, 0.006012326572090387, -0.012704836204648018, -0.031677067279815674, + -0.004380698781460524, -0.007320058532059193, -0.02286708541214466, -0.05098129063844681, + 0.01668066345155239, -0.011814121156930923, -0.013814181089401245, -0.00043953751446679235, + 0.00023710228560958058, 0.030770156532526016, -0.006259297952055931, 0.026316581293940544, + 0.011352568864822388, 0.025684984400868416, -0.027158712968230247, 0.0038563914131373167, + 0.014996402896940708, -0.020227329805493355, -0.02341770939528942, -0.013020634651184082, + 0.0018016736721619964, -0.010761457495391369, 0.026867205277085304, -0.01319068018347025, + 0.0036964674945920706, -0.0048462999984622, 0.00214783800765872, -0.027288271114230156, + -0.027563583105802536, 0.038284555077552795, -0.05214731767773628, -0.0083160400390625, + -0.02547445148229599, -0.014065200462937355, 0.01676163822412491, -0.009069099090993404, + 0.012607666663825512, 0.003943438641726971, 0.01553083211183548, 0.014421487227082253, + 0.033328939229249954, -0.02945837751030922, -0.04401751980185509, 0.011700756847858429, + 0.009935521520674229, -0.02519913949072361, -0.006263346411287785, -0.017328457906842232, + -0.009846450760960579, -0.06241483613848686, -0.004064899869263172, 0.02294806018471718, + -0.010688580572605133, -0.006514366250485182, 0.00011254134733462706, -0.011498321779072285, + 0.030397675931453705, -0.04443858563899994, -0.011838412843644619, 0.02024352364242077, + ], + index: 96, + }, + { + title: "Soyuz 1", + text: "Soyuz 1 (Russian: \u0421\u043e\u044e\u0437 1 , Union 1) was a manned spaceflight of the Soviet space program. Launched into orbit on 23 April 1967 carrying cosmonaut Colonel Vladimir Komarov, Soyuz 1 was the first crewed flight of the Soyuz spacecraft. The mission plan was complex, involving a rendezvous with Soyuz 2 and an exchange of crew members before returning to Earth.", + vector: [ + 0.027997292578220367, 0.01810913160443306, 0.0026427116245031357, -0.022966979071497917, + -0.04242710769176483, -0.03782796487212181, 0.0009494718397036195, 0.03363124653697014, + -0.013517173007130623, -0.013783060945570469, -0.03590207174420357, -0.039006493985652924, + -0.021041085943579674, 0.0021702214144170284, 0.028299111872911453, 0.07927775382995605, + -0.0028044001664966345, 0.01566583663225174, -0.02280888333916664, -0.04136355593800545, + 0.05001569911837578, -0.0103983785957098, 0.023872435092926025, 0.0312166940420866, + 0.04403680935502052, -0.04139230027794838, 0.021889053285121918, 0.035557135939598083, + -0.029980674386024475, -0.02975071594119072, 0.017289908602833748, -0.03196405619382858, + -0.016715016216039658, 0.03196405619382858, 0.06657262146472931, -0.04472668096423149, + 0.019014587625861168, -0.006553781218826771, -0.029161451384425163, -0.008314390666782856, + -0.008515603840351105, -0.02884525991976261, 0.024116763845086098, -0.009622273035347462, + -0.01609700545668602, -0.01399146020412445, -0.015536485239863396, 0.010010325349867344, + 0.024418583139777184, 0.0034637306816875935, -0.0097013209015131, 0.02529529482126236, + 0.014817869290709496, 0.04443923383951187, 0.021213553845882416, 0.023699967190623283, + 0.013409380801022053, 0.04489915072917938, -0.044640447944402695, -0.053148865699768066, + -3.208509588148445e-5, -0.0702519342303276, -0.05004444345831871, -0.010944526642560959, + 0.020035022869706154, -0.012051195837557316, 0.013179423287510872, -0.009794740937650204, + -0.025913305580615997, -0.0026966077275574207, 0.056282032281160355, 0.028586557134985924, + 0.025453390553593636, 0.0028151795268058777, 0.017117440700531006, -0.05478730797767639, + 0.07939273118972778, 0.022248361259698868, -0.03955264389514923, -0.03857532516121864, + 0.03915021941065788, 0.022392084822058678, 0.014437002129852772, 0.03207903355360031, + 0.031705353409051895, -0.04685378447175026, -0.008077247999608517, -0.06772240251302719, + -0.0008928807801567018, -0.024375466629862785, -0.04027125984430313, 0.05458609759807587, + -0.0042003123089671135, 0.01842532306909561, 0.08071498572826385, -0.06047875061631203, + 0.044927895069122314, -0.01006062887609005, -0.04314572364091873, -0.0005636647110804915, + -0.009765995666384697, -0.024131136015057564, -0.00966538954526186, -0.04510036110877991, + 0.03848909214138985, 0.03397618234157562, 0.0395238995552063, 0.044209275394678116, + 0.021716585382819176, 0.03713809326291084, -0.052401501685380936, 0.0064603607170283794, + -0.0004356611461844295, -0.018008526414632797, 0.007509540766477585, -0.035442158579826355, + -0.02575520984828472, -0.0047967638820409775, -0.039753854274749756, -0.014523236081004143, + 0.0304980780929327, 0.011311021633446217, -0.011950589716434479, -0.014587911777198315, + -0.03147539496421814, 0.022090265527367592, 0.01440825778990984, 0.009873788803815842, + -0.006370533723384142, 0.016326963901519775, 0.06697504222393036, -0.01276981271803379, + -0.034579817205667496, 0.03064180165529251, 0.019963162019848824, 0.01753423921763897, + -0.048233527690172195, 0.031417906284332275, -0.008400624617934227, 0.033257562667131424, + -0.023757455870509148, 0.002008532639592886, 0.00964383129030466, 0.08887846767902374, + 0.008005386218428612, 0.03647696599364281, -0.006560967303812504, 0.0330563522875309, + -0.024317976087331772, -0.03075677901506424, 0.03294137120246887, -0.06910214573144913, + 0.019373895600438118, 0.003249942325055599, 0.003564337035641074, 0.011138553731143475, + 0.041679747402668, -0.01605388894677162, 0.045905210077762604, 0.024763518944382668, + 0.0020516496151685715, -0.029578248038887978, 0.003161911852657795, 0.0035140339750796556, + -0.0025151572190225124, -0.040012557059526443, 0.003469120478257537, 0.010685824789106846, + -0.013941156677901745, 0.00833594985306263, -0.0007213111384771764, -0.05967390164732933, + 0.009011449292302132, -0.029405780136585236, 0.035298433154821396, 0.01031214464455843, + 0.022320223972201347, 0.01566583663225174, -0.014975964091718197, 0.01655692048370838, + 0.006115424912422895, 0.04556027427315712, 0.0005407587741501629, 0.030871758237481117, + 0.009550411254167557, 0.015766441822052002, 0.01605388894677162, 0.01605388894677162, + 0.0005057262605987489, 0.047227464616298676, 0.019086450338363647, -0.027221186086535454, + 0.030843013897538185, 0.03236648067831993, -0.010858292691409588, 0.02733616530895233, + 0.02194654382765293, 0.03138916194438934, 0.002497191773727536, -0.030153142288327217, + 0.009543225169181824, -0.03420613706111908, -0.029089588671922684, -0.03411990404129028, + -0.02582707069814205, -0.014163928106427193, 0.042513344436883926, 0.01698809117078781, + 0.02493598684668541, -0.01796540804207325, 0.04265706613659859, -0.046077679842710495, + 0.0603637732565403, 0.016441941261291504, 0.02553962543606758, -0.019517619162797928, + -0.029262056574225426, 0.03420613706111908, -0.02302446775138378, 0.04208217188715935, + -0.004674599505960941, -0.03363124653697014, 0.06640014797449112, -0.01153379213064909, + -0.002213338389992714, 0.015335272997617722, 0.01734739914536476, -0.022320223972201347, + 0.0020732081029564142, -0.09296020865440369, -0.08600400388240814, 0.026215124875307083, + 0.021889053285121918, 0.0431169793009758, -0.009995953179895878, 0.012834487482905388, + 0.027034346014261246, 0.01318661030381918, -0.025625858455896378, -0.030411843210458755, + -0.019158311188220978, -0.014171114191412926, -0.028040409088134766, -0.04645135998725891, + 0.033861201256513596, 0.04898088797926903, 0.06024879217147827, 0.0023211308289319277, + -0.02917582355439663, 0.009248591959476471, 0.03676441311836243, 0.03535592555999756, + -0.0287446528673172, 0.026387592777609825, -0.009169544093310833, -0.018410950899124146, + -0.0034906789660453796, -0.017979780212044716, -0.04107610881328583, 0.008932401426136494, + -0.05073431506752968, 0.05708688125014305, 0.023556243628263474, 0.003916459158062935, + -0.015680208802223206, -0.05967390164732933, 0.0004913539160043001, -0.040185026824474335, + 0.016010772436857224, -0.01957510970532894, 0.02515157125890255, -0.007660450413823128, + -0.0016653933562338352, -0.009974394924938679, 0.0033882760908454657, 0.018669651821255684, + 0.010470240376889706, 0.0588403046131134, -0.022507064044475555, -0.041765980422496796, + 0.036591943353414536, -0.02040870487689972, 0.05608081817626953, -0.08186477422714233, + -0.03963887691497803, -0.01770670711994171, -0.022363340482115746, -0.00038064210093580186, + -0.010599590837955475, 0.018525930121541023, -0.043030746281147, 0.008343135938048363, + -0.04127732291817665, -0.03205028921365738, -0.009521666914224625, 0.07099929451942444, + 0.028428463265299797, 0.02374308370053768, 0.01806601509451866, -0.010175607167184353, + -0.011806866154074669, 0.007739497814327478, 0.031532883644104004, 0.026646293699741364, + -0.02338377572596073, 0.014199858531355858, 0.036735668778419495, -0.0681823194026947, + -0.0033541417215019464, 0.019014587625861168, -0.030239375308156013, -0.002560070715844631, + 0.009464177303016186, -0.025568369776010513, 0.04900963604450226, -0.01115292590111494, + 0.02242082916200161, 0.027609240263700485, -0.011914659291505814, 0.01465977355837822, + -0.014465746469795704, 0.011375696398317814, 0.011691887862980366, -0.05401120334863663, + 0.048520974814891815, -0.008163481950759888, -0.014803496189415455, 0.034551072865724564, + -0.01064989436417818, 0.0014013018226251006, 0.04725620895624161, -0.025683347135782242, + 0.01695934496819973, 0.019460130482912064, 0.0287015363574028, 0.012151801958680153, + 0.028974611312150955, -0.022320223972201347, 0.006981357932090759, -0.04495663940906525, + 0.05329258739948273, -0.0006521443137899041, 0.006898717023432255, -0.03018188662827015, + -0.02137164957821369, 0.06789486855268478, 0.03035435453057289, -0.008918028324842453, + -0.00659330515190959, -0.03130292892456055, 0.0004376822616904974, 0.0222339890897274, + 0.012194919399917126, -0.02500784955918789, 0.003948797006160021, -0.024519190192222595, + -0.014702890068292618, -0.01445856038480997, -0.004128450993448496, -0.025137199088931084, + -0.029017727822065353, -0.001185716944746673, 0.02975071594119072, 0.035298433154821396, + -0.011936217546463013, -0.05205656588077545, 0.00869525782763958, -0.00833594985306263, + 0.01619761250913143, 0.002392992377281189, 0.000190433333045803, 0.022176500409841537, + 0.0136537104845047, -0.0031134053133428097, -0.03064180165529251, -0.04573274403810501, + -0.01460228394716978, 0.003641588380560279, 0.019488874822854996, 0.017778567969799042, + -0.0031026259530335665, -0.024332350119948387, -0.05990385636687279, 0.017289908602833748, + -0.0003941161558032036, -0.011612839996814728, 0.02206152118742466, -0.0034978650510311127, + 0.019963162019848824, -0.014465746469795704, -0.04357689619064331, -0.008364694193005562, + -0.0037547703832387924, 0.028227249160408974, 0.02270827628672123, -0.03265392780303955, + 0.011167298071086407, -0.01412081066519022, -0.014142369851469994, 0.06122611090540886, + -0.04556027427315712, 0.01655692048370838, 0.01741925999522209, -0.034867264330387115, + 0.02313944697380066, -0.0011938014067709446, -0.05452860891819, 0.001882774755358696, + -0.0265456885099411, 0.024706030264496803, -0.0037152464501559734, -0.026502570137381554, + 0.021615980193018913, -0.019819438457489014, 0.03107297047972679, -0.031561627984046936, + 0.010132490657269955, 0.02572646550834179, -0.02946327067911625, -0.029808206483721733, + -0.042513344436883926, 0.04443923383951187, 0.01451604999601841, 0.03239522501826286, + 0.003999100066721439, -0.02141476608812809, 0.02069615013897419, 0.018985843285918236, + -0.025237806141376495, -0.02931954711675644, 0.048233527690172195, -0.04130606725811958, + 0.01379743404686451, 0.03518345579504967, -0.022478319704532623, 0.010139676742255688, + 0.05645449832081795, 0.0015171787235885859, -0.0017040190286934376, 0.0116775156930089, + 0.008874911814928055, 0.05564964935183525, -0.015320900827646255, -0.02338377572596073, + -0.05271769315004349, -0.02884525991976261, -0.018367834389209747, 0.007304735016077757, + 0.005396808497607708, -0.023656850680708885, -0.0183247160166502, -0.03958138823509216, + 0.005540532059967518, 0.04216840863227844, 0.0035607439931482077, 0.0025870187673717737, + -0.007459237705916166, -0.006410057656466961, -0.01839657872915268, 0.03207903355360031, + 0.02543901838362217, 0.009061751887202263, 0.04282953217625618, -0.010297772474586964, + 0.02565460279583931, 0.028874004259705544, 0.006424430292099714, -0.06381312757730484, + 0.01445856038480997, -0.011267904192209244, -0.02043744921684265, 0.002463057404384017, + -0.007531099021434784, -0.0480610616505146, 0.012741067446768284, 0.01854030229151249, + -0.006995730102062225, 0.02288074418902397, -0.011095436289906502, -0.00494767352938652, + -0.01064989436417818, 0.014932847581803799, 0.0011282276827841997, 0.001262968173250556, + 0.05349380150437355, 0.0020678185392171144, 0.064675472676754, -0.03345877677202225, + -0.028658419847488403, -0.00035818532342091203, 0.05013067647814751, 0.001404894981533289, + 0.04656633734703064, 0.05481605604290962, -0.00731192110106349, -0.001782168517820537, + -0.01796540804207325, 0.013718386180698872, 0.02647382579743862, 0.0011461930116638541, + 0.04541655257344246, 0.006309451535344124, -0.017074324190616608, 0.012496737763285637, + 0.011993707157671452, 0.021328533068299294, 0.005993260070681572, -0.02206152118742466, + 0.035154711455106735, -0.02712058089673519, -0.004017065279185772, 0.014092066325247288, + 0.051107995212078094, 0.05358003452420235, -0.009097683243453503, 0.015004709362983704, + 0.004293732810765505, -0.029836950823664665, 0.008752747438848019, 0.030986737459897995, + -0.001139006926678121, 0.006086680572479963, -0.0022887929808348417, 0.023843690752983093, + 0.007617333438247442, -0.00930608157068491, 0.024691658094525337, 0.0033002456184476614, + 0.04196719452738762, -0.025956422090530396, -0.009428245946764946, 0.0003878282441291958, + -0.02280888333916664, -0.01904333382844925, 0.009974394924938679, 0.013610593043267727, + -0.01681562326848507, -0.014480119571089745, -0.011052318848669529, -0.014034576714038849, + -0.011196042411029339, 0.021386021748185158, -0.03575835004448891, 0.003298449097201228, + -0.005285423249006271, 0.013337519019842148, 0.026286985725164413, -0.03662068769335747, + -0.00023085549764800817, -0.011612839996814728, 0.0013599813682958484, 0.03302760794758797, + -0.0388052836060524, 0.007753870449960232, 0.03998381271958351, -0.05530471354722977, + 0.008450928144156933, 0.027063092216849327, -0.008436555974185467, 0.032711416482925415, + 0.0005546819884330034, -0.021041085943579674, 0.018669651821255684, 0.0009041091543622315, + 0.044784169644117355, 0.008422183804214, -0.015076571144163609, 0.026128889992833138, + -0.02381494641304016, -0.034263625741004944, 0.006496291607618332, -0.04547404125332832, + 0.02608577348291874, -0.038747791200876236, 0.018152248114347458, -0.023398147895932198, + 0.023153819143772125, -0.0005708508542738855, 0.03777047619223595, -0.008982704021036625, + 0.0013734555104747415, 0.011497861705720425, 0.012245221994817257, -0.016844367608428, + 0.015823932364583015, 0.033717479556798935, -0.006758586503565311, 0.016154495999217033, + 0.0015998196322470903, -0.005572869908064604, 0.0215584896504879, -0.03380371257662773, + -0.026028282940387726, 0.008472486399114132, -0.015306527726352215, 0.022392084822058678, + 0.02364247851073742, 0.03894900530576706, 0.027149325236678123, -0.018669651821255684, + -0.009988767094910145, -0.012942280620336533, -0.026459453627467155, 0.0222339890897274, + -0.013502800837159157, 0.026172006502747536, -0.02697685733437538, -0.001409386284649372, + -0.003063102252781391, 0.00830001849681139, -0.027134953066706657, -0.0035355924628674984, + 0.02252143621444702, -0.0012584768701344728, -0.020178746432065964, -0.006025597918778658, + -0.015450251288712025, -0.0019043333595618606, 0.03503973409533501, 0.03268267214298248, + 0.011713446117937565, 0.03248145803809166, 0.01348842866718769, 0.014774751849472523, + -0.016614409163594246, 0.04639387130737305, -0.018295971676707268, 0.031245438382029533, + -0.00020121257693972439, 0.015090943314135075, -0.031130459159612656, 0.012503924779593945, + -0.01273388136178255, 0.018554674461483955, -0.0012117668520659208, 0.005860316101461649, + 0.0423121303319931, -0.05734558403491974, -0.0006350771873258054, -0.02543901838362217, + -0.02608577348291874, -0.011131366714835167, 0.009801927022635937, -0.007782614789903164, + -0.012137429788708687, -0.011296648532152176, 0.010628336109220982, 0.035269688814878464, + -0.03613203018903732, 0.03210777789354324, -0.0036523675080388784, 0.013589034788310528, + 0.03245271369814873, 0.0019905671942979097, -0.0366494320333004, -0.014235789887607098, + -0.0008017063373699784, -0.013574662618339062, 0.007595774717628956, -0.007315514143556356, + 0.003436782630160451, 0.029434524476528168, 0.010743314400315285, -0.003641588380560279, + -0.00046216012560762465, 0.003643384901806712, -0.011792493984103203, 0.00012441044964361936, + -0.00039613727130927145, -0.0011946996673941612, 0.031015481799840927, -0.030411843210458755, + 0.03633324056863785, 0.03811541199684143, -0.0009683355456218123, 0.020839873701334, + -0.04193845018744469, 0.03348752111196518, 0.0022259140387177467, 0.0018558267038315535, + 0.020207490772008896, -0.017936663702130318, -0.019129566848278046, 0.021041085943579674, + -0.007883220911026001, -0.00297327502630651, 0.03308509662747383, -0.03782796487212181, + -0.04860720783472061, 0.0029085995629429817, -0.012051195837557316, -0.00019200530368834734, + 0.0008133838418871164, 0.042513344436883926, -0.006582525558769703, 0.011584095656871796, + 0.002576239639893174, 0.0027990106027573347, -0.002330113435164094, 0.0018558267038315535, + -0.0006781941629014909, -0.0016995276091620326, 0.020250609144568443, -0.007696380838751793, + 0.015708953142166138, -0.02316819131374359, -0.008091620169579983, 0.01566583663225174, + 0.016930600628256798, 0.018094759434461594, -0.019891301169991493, -0.01609700545668602, + -0.05320635437965393, 0.01720367558300495, -0.03187781944870949, -0.030153142288327217, + -0.022578924894332886, -0.0013734555104747415, 0.012841673567891121, -0.03483851999044418, + -0.00284751714207232, 0.01810913160443306, -0.0012207494582980871, -0.0373680479824543, + -0.02946327067911625, -0.006057935766875744, -0.035988304764032364, -0.003492475487291813, + -0.03251020237803459, 0.006647201254963875, 0.004031437449157238, -0.010261841118335724, + 0.006474733352661133, 0.03210777789354324, 0.014020204544067383, 0.0038410043343901634, + -0.021587233990430832, -0.03118794970214367, 0.007854476571083069, 0.024993475526571274, + 0.0409611314535141, 0.01602514460682869, -0.03742554038763046, 0.011397255584597588, + -0.002238489920273423, -0.010067814961075783, 0.040328748524188995, -0.02503659389913082, + -0.0287015363574028, -0.0016088023548945785, 0.004904556553810835, 0.03351626545190811, + -0.0005600716103799641, -0.017491120845079422, -0.008709629997611046, -0.01609700545668602, + 0.02690499648451805, 0.0062878928147256374, 0.006758586503565311, 0.025841442868113518, + 0.05145293101668358, 0.0037403979804366827, -0.02438983879983425, 0.032855138182640076, + 0.013071631081402302, -0.0011614636750891805, -0.0001121153763961047, -0.007408934645354748, + -0.0056052072905004025, 0.009320453740656376, 0.016140123829245567, 0.01228833943605423, + -0.04561776667833328, -0.029693227261304855, -0.017994152382016182, -0.020063769072294235, + 0.009564783424139023, -0.0017058155499398708, -0.025266550481319427, -0.012108685448765755, + 0.011691887862980366, -0.035269688814878464, -0.029262056574225426, 0.026416337117552757, + -0.006769366096705198, -0.00031776315881870687, 0.026603177189826965, -0.011447558179497719, + 0.0025079711340367794, 0.014199858531355858, -0.04081740975379944, -0.0013734555104747415, + 0.0123745733872056, 0.026071401312947273, -0.011311021633446217, -0.03092924691736698, + -0.001334829838015139, 0.003052322892472148, -0.010441495105624199, -0.010326516814529896, + 0.036994367837905884, -0.04271455481648445, -0.011253532022237778, -0.022622043266892433, + -0.01445856038480997, 0.003909273073077202, -0.0013204575516283512, 0.01463821530342102, + -0.026387592777609825, 0.01993441767990589, -0.014990337193012238, -0.009370757266879082, + 0.017304280772805214, 0.017361771315336227, -0.027249932289123535, 0.021457884460687637, + 0.021529745310544968, -0.018957098945975304, 0.005795640870928764, -0.011770935729146004, + 0.03751177340745926, -0.00046754974755458534, 0.010010325349867344, -0.036275751888751984, + 0.05631077662110329, -0.02191779762506485, -0.014307651668787003, 0.005515380296856165, + 0.015119687654078007, -0.014889730140566826, -0.002003143075853586, 0.01835346221923828, + 0.023484382778406143, 2.3495385903515853e-5, 0.02230585180222988, -0.02862967550754547, + 0.0731263980269432, 0.0008600939181633294, 0.018310343846678734, 0.04058745130896568, + -0.012992583215236664, -0.023455636575818062, -0.033717479556798935, -0.0027181662153452635, + -0.021357277408242226, 0.010189979337155819, -0.025022221729159355, 0.008867725729942322, + -0.011045132763683796, -0.04716997593641281, -0.03489600867033005, 0.005766896065324545, + -0.005281830206513405, 0.01455198135226965, -0.038460347801446915, 0.003212215146049857, + -1.771276947692968e-5, 0.00894677359610796, 0.007516726851463318, -0.014731635339558125, + 0.05978887900710106, 6.6703596530715e-6, -0.007516726851463318, -0.018195366486907005, + -0.005375250242650509, -0.03633324056863785, 0.017146185040473938, -0.026172006502747536, + -0.06208845227956772, 0.03411990404129028, -0.010685824789106846, 0.010182793252170086, + -0.022004032507538795, 0.004793170839548111, -0.013984274119138718, -0.0008268579258583486, + 0.006862786132842302, 0.001845047459937632, -0.031015481799840927, 0.02108420431613922, + 0.0022115418687462807, 0.012762626633048058, -0.012856046669185162, 0.017131812870502472, + 0.03075677901506424, -0.004897370468825102, 0.023843690752983093, 0.032423969358205795, + 0.02582707069814205, -0.04581897705793381, 2.122163823514711e-5, 0.02977946028113365, + -0.020308097824454308, -0.01140444166958332, -0.05047561228275299, -0.041047364473342896, + 0.01691622845828533, 0.0459914468228817, -0.044065553694963455, -0.005845943931490183, + 0.0020750046242028475, -0.00022456760052591562, -0.035729605704545975, -0.0016510210698470473, + -0.03383245691657066, -0.034263625741004944, -0.007617333438247442, -0.026861878111958504, + 0.013775874860584736, -0.017289908602833748, -0.012906349264085293, 0.02069615013897419, + -0.03843160346150398, 0.04849223047494888, -0.031532883644104004, -0.027278676629066467, + -0.006327416747808456, 0.013732758350670338, 0.02594204992055893, 0.03216526657342911, + 0.01774982362985611, -0.056885670870542526, 0.0009584545623511076, 0.0051345136016607285, + 0.01767796277999878, -0.06369815021753311, -0.02349875494837761, -0.013711200095713139, + 0.012281153351068497, -0.020379958674311638, -0.007157418876886368, 0.018885238096117973, + -0.01412081066519022, -0.035873327404260635, -0.005486635956913233, -0.02781045250594616, + 0.0595589205622673, 0.03064180165529251, 0.031101714819669724, -0.03337254375219345, + -0.010621149092912674, 0.018008526414632797, 0.010103745386004448, 0.020178746432065964, + -0.0069310544058680534, -0.03857532516121864, 0.008795863948762417, 0.023699967190623283, + 0.01703120768070221, -0.011857169680297375, -0.01287760492414236, -0.01731865294277668, + -0.026631921529769897, -0.04280078783631325, 0.017002463340759277, -0.01312912069261074, + -0.004886591341346502, -0.02266515977680683, -0.046365126967430115, 0.001954636536538601, + 0.00758140254765749, -0.008565906435251236, -0.033430032432079315, 0.02237771265208721, + 0.003564337035641074, -0.019589481875300407, -0.0337749682366848, -0.016326963901519775, + -0.01153379213064909, 0.024763518944382668, -0.016226356849074364, -0.0038805282674729824, + 0.05573588237166405, -0.07416120916604996, -0.0007612842018716037, -0.01501908153295517, + -0.03791419789195061, 0.017548611387610435, -0.01516280509531498, 0.03613203018903732, + -0.019876927137374878, -0.05234401300549507, -0.0038014804013073444, -0.06318075209856033, + 0.0012827301397919655, 0.009974394924938679, -0.0222339890897274, 0.0009584545623511076, + -0.02977946028113365, 0.0013527952833101153, 0.003294855821877718, -0.011167298071086407, + 0.04386433959007263, 0.004002693109214306, 0.006453174632042646, 0.016010772436857224, + 0.08502668887376785, 0.01806601509451866, 0.01117448415607214, 0.005996853578835726, + -0.019057705998420715, -0.026631921529769897, 0.0017372550209984183, -0.0054794494062662125, + 0.016571292653679848, 0.03046933375298977, 0.021098576486110687, -0.02129978872835636, + -0.03618951886892319, -0.0010473832953721285, 0.007355038076639175, -0.011921845376491547, + 0.009888160973787308, -0.06398560106754303, 0.001176734222099185, 0.013833364471793175, + -0.018525930121541023, -0.03236648067831993, 0.07663324475288391, 0.04906712472438812, + -0.015867048874497414, -0.016829995438456535, -0.022075893357396126, 0.025410274043679237, + -0.008652140386402607, 0.023872435092926025, 0.04558902233839035, 0.00459914468228817, + -0.005598021205514669, 0.027580495923757553, -0.000665169267449528, -0.024634167551994324, + -0.0005623172619380057, -0.017907919362187386, -0.01670064404606819, -0.0015126874204725027, + -0.011461930349469185, 0.015478995628654957, -0.006920275278389454, 0.0265456885099411, + -0.006129797548055649, -0.01081517618149519, 0.023728711530566216, -0.00582079216837883, + 0.02776733599603176, -0.039897579699754715, -0.03575835004448891, 0.006474733352661133, + -0.014278906397521496, -0.00022355705732479692, -0.0025439017917960882, 0.003524813102558255, + -0.015708953142166138, 0.004132044035941362, 0.004254208877682686, -0.014760379679501057, + -0.04576148837804794, 0.006262741517275572, 0.040759917348623276, -0.01228833943605423, + -0.03245271369814873, 0.017663588747382164, 0.02436109445989132, 0.01993441767990589, + 0.02931954711675644, -0.041449788957834244, 0.004383559804409742, -0.009888160973787308, + 0.02781045250594616, 0.005443518981337547, 0.026991229504346848, 0.01020435243844986, + 0.02242082916200161, 0.019244546070694923, -0.02464853972196579, 0.0008780593634583056, + -0.02773859165608883, -0.00704962620511651, 0.004591958597302437, 0.0028834480326622725, + 0.03621826320886612, -0.009342011995613575, 0.0035122374538332224, -0.01856904663145542, + 0.012712323106825352, 0.005411181133240461, -0.010283399373292923, 0.036591943353414536, + 0.0015513129765167832, -0.020178746432065964, -0.006769366096705198, -0.011562536470592022, + 0.014178300276398659, -0.024404210969805717, -0.020724894478917122, -0.008364694193005562, + -0.015177177265286446, -0.008953959681093693, -0.030268119648098946, 0.0215584896504879, + -0.00817066803574562, 0.006352568510919809, -0.02457667887210846, 0.009945650584995747, + 0.018640907481312752, -0.020379958674311638, 0.020638661459088326, -0.029089588671922684, + 0.02539590187370777, 0.02633010223507881, 0.006873565260320902, 0.035585880279541016, + -0.011814052239060402, 0.028543440625071526, -0.004052996169775724, 0.00297686830163002, + -0.00657533947378397, -0.006722656078636646, 0.013330332934856415, 0.029578248038887978, + -0.03202154487371445, -0.001377048552967608, 0.0006296875653788447, 0.05151041969656944, + -0.0016573088942095637, 0.01892835460603237, 0.015996400266885757, 0.003909273073077202, + -0.03239522501826286, 0.019531991332769394, 0.0001857174065662548, -0.04498538374900818, + 0.025568369776010513, -0.015867048874497414, 0.03909273073077202, -0.007559843827039003, + 0.000790927093476057, -0.0240736473351717, -0.003397258697077632, -0.017117440700531006, + 0.025352785363793373, 0.027422400191426277, -0.027508633211255074, 0.056885670870542526, + -0.022751392796635628, 0.012108685448765755, -0.034579817205667496, -0.02324005216360092, + -0.005296202376484871, -0.031561627984046936, 0.010089373216032982, 0.020423077046871185, + -0.002152255969122052, -0.014271720312535763, 0.012604530900716782, 0.01997753418982029, + -0.017692334949970245, 0.007283176761120558, -0.03308509662747383, -0.010197165422141552, + -0.02338377572596073, 0.00545070506632328, -0.0036218264140188694, -0.03532717749476433, + -0.03480977565050125, -0.06013381481170654, -0.030239375308156013, -0.0294201523065567, + -0.024777891114354134, 0.05036063492298126, 0.02198966033756733, 0.013725572265684605, + -0.020308097824454308, -0.009924091398715973, -0.0437493622303009, 0.03167660906910896, + 0.00804850272834301, -0.0279829204082489, -0.033142585307359695, 0.022507064044475555, + 0.011706260032951832, 0.008616209961473942, 0.03863281384110451, 0.011857169680297375, + 0.023326287046074867, 0.03046933375298977, -0.005928584840148687, -0.01002469751983881, + 0.02737928181886673, -0.04570399969816208, 0.0028600930236279964, -0.010599590837955475, + -0.018008526414632797, -0.015910165384411812, -0.011972147971391678, -0.02237771265208721, + -0.0233550313860178, 0.005914212670177221, -0.01304288674145937, -0.019991906359791756, + 0.030124396085739136, 0.0020929700694978237, 0.0329701192677021, -0.0029175824020057917, + -0.007811359595507383, -0.015090943314135075, -0.025597114115953445, 0.018669651821255684, + -0.02367122285068035, -0.031245438382029533, -0.013452498242259026, -0.013955529779195786, + 0.012511110864579678, 0.02417425438761711, 0.019158311188220978, 0.02781045250594616, + 0.01248236559331417, 0.015191549435257912, -0.00909049715846777, -0.0002957555407192558, + -0.0502169094979763, 0.04487040266394615, -0.03179158642888069, -0.0233119148761034, + -0.015680208802223206, -0.019891301169991493, 0.005389622412621975, 0.015795188024640083, + 0.02306758426129818, 0.008364694193005562, -0.033430032432079315, 0.01979069411754608, + 0.01911519467830658, -0.052430249750614166, 0.007674822583794594, -0.03912147507071495, + -0.012115871533751488, -0.021544117480516434, 0.006126204505562782, -0.0031044224742799997, + -0.05202782154083252, -0.03092924691736698, -0.00855153426527977, 0.011828425340354443, + 0.031532883644104004, 0.0002721759374253452, 0.010836734436452389, -0.014142369851469994, + 0.017002463340759277, -0.034004926681518555, 0.01243206299841404, -0.05358003452420235, + -0.03288388252258301, -0.005924991797655821, -0.020638661459088326, -0.004308104980736971, + -0.02069615013897419, -0.02862967550754547, 0.01997753418982029, -0.0007419713656418025, + 0.014537608250975609, -0.0047033438459038734, 0.020926108583807945, -0.03205028921365738, + 0.015263411216437817, -0.016657527536153793, -0.0003718839434441179, -0.008041316643357277, + 0.009658203460276127, -0.03782796487212181, -0.018152248114347458, 0.055132243782281876, + -0.01703120768070221, 0.048635952174663544, 0.02055242657661438, 0.0026552872732281685, + -0.009004263207316399, 0.00791915226727724, -0.025553997606039047, 0.009694134816527367, + -0.015507740899920464, 0.01835346221923828, 0.007495168596506119, -0.007358631119132042, + -0.015220293775200844, 0.02776733599603176, 0.007897594012320042, 0.0008515603840351105, + -0.025783954188227654, -0.0013285420136526227, 0.005562090314924717, 0.0182815995067358, + -0.0024522782769054174, -0.018295971676707268, 0.001537838950753212, 0.002777452114969492, + 0.0330563522875309, -0.01681562326848507, -0.01785043068230152, 0.03825913369655609, + -0.058150433003902435, -0.01106669194996357, -0.011957775801420212, -0.004056589212268591, + -0.005874688737094402, 0.05386748164892197, -0.002772062551230192, 0.008724002167582512, + -0.03374622389674187, -0.006715469527989626, -0.012151801958680153, 0.013617780059576035, + -0.02234896831214428, -0.015090943314135075, -0.005041093565523624, -0.015263411216437817, + -0.003109812270849943, 0.022435201331973076, -0.006111831869930029, 0.015565229579806328, + -0.0143507681787014, 0.0037152464501559734, 0.010470240376889706, -0.0005712999845854938, + -0.0040278444066643715, -0.008501231670379639, -0.023369403555989265, -0.015349645167589188, + -0.013474056497216225, -0.007423306815326214, -0.02781045250594616, -0.013876481913030148, + 0.02119918167591095, -0.0032768906094133854, -0.019819438457489014, -0.04222589731216431, + -0.004369187168776989, -0.024734774604439735, 0.009931277483701706, -0.007229280192404985, + -0.01251829694956541, -0.00011554003140190616, -0.00024994375417008996, + -0.0012530871899798512, -0.013071631081402302, -0.034436095505952835, -0.0005367166013456881, + 0.0226364154368639, 0.0011309224646538496, 0.02719244174659252, 0.02438983879983425, + -0.02589893341064453, 0.018842119723558426, 0.020825501531362534, 0.0019438571762293577, + 0.015680208802223206, 0.023153819143772125, 0.01634133607149124, -0.009794740937650204, + 0.026028282940387726, 0.010836734436452389, 0.018942726776003838, -0.00631304457783699, + -0.02781045250594616, 0.042484596371650696, -0.012654833495616913, 0.017663588747382164, + 0.001915112603455782, -0.021472256630659103, -0.007890406996011734, 0.018727142363786697, + -0.005885467864573002, 0.0010375023121014237, 0.02428923174738884, -0.03923645243048668, + -0.03216526657342911, 0.006154948845505714, -0.01983381062746048, -0.02903209999203682, + 0.018267227336764336, 0.006259148474782705, 0.021026713773608208, -0.0091623580083251, + -0.04788859188556671, 0.03541341423988342, 0.009780368767678738, 0.0344073511660099, + 0.01426453422755003, -0.020969225093722343, -0.034263625741004944, 0.007373003754764795, + -0.043921831995248795, -0.011454744264483452, 0.042197152972221375, 0.0168874841183424, + 0.015478995628654957, -0.004818322602659464, -0.00011408034333726391, 0.00880305003374815, + -0.0027828416787087917, 0.031015481799840927, 0.01724679209291935, 0.03998381271958351, + 0.028141016140580177, 0.025783954188227654, 0.01914393901824951, -0.036735668778419495, + 0.0030110024381428957, -0.009629459120333195, -0.005051872693002224, 0.04639387130737305, + 0.014544794335961342, -0.007495168596506119, 0.048377253115177155, 0.007365817669779062, + 0.0019510433776304126, 0.002834941493347287, 0.02931954711675644, 0.004070961382240057, + 0.0280260369181633, 0.017448004335165024, 0.0026534907519817352, 0.01979069411754608, + -0.044209275394678116, 0.03294137120246887, 0.0011399051873013377, 0.0265888050198555, + -0.03423488140106201, -0.0020372772123664618, -0.021242298185825348, 0.015924537554383278, + 0.006154948845505714, -0.015407134778797626, -0.03167660906910896, -0.0008618904976174235, + -0.029434524476528168, -0.0036469779442995787, 0.018454067409038544, -0.00944980513304472, + -0.019560737535357475, -0.004746460821479559, -0.04489915072917938, 0.006018411833792925, + -0.02194654382765293, -0.03794294223189354, 0.016729388386011124, -0.02719244174659252, + 9.059899639396463e-6, 0.009528852999210358, 0.01624072901904583, -0.01474600750952959, + -0.024547934532165527, -0.03420613706111908, -0.015507740899920464, 0.02148662880063057, + 0.0028690756298601627, -0.012194919399917126, 0.00679811043664813, -0.02622949704527855, + -0.002145069884136319, -0.032567691057920456, 0.0062878928147256374, -0.023081956431269646, + 0.01273388136178255, -0.014322023838758469, 0.009974394924938679, -0.04142104461789131, + -0.011612839996814728, 0.014760379679501057, 0.024131136015057564, -0.022507064044475555, + 0.012022451497614384, -0.004157195333391428, -0.018640907481312752, 0.0011228380026295781, + -0.013466870412230492, -0.029218940064311028, -0.002078597666695714, -0.02898898348212242, + -0.03360249847173691, 0.008853353559970856, 0.0029624958988279104, -0.02446169964969158, + 0.007473609875887632, -0.016643155366182327, -0.00533572630956769, 0.0013608797453343868, + -0.02927643060684204, -0.027364909648895264, 0.0033002456184476614, 3.435884354985319e-5, + 0.013768688775599003, 0.008429369889199734, 0.00409611314535141, 0.021860308945178986, + -0.0020336841698735952, 0.007588588632643223, -0.03219401091337204, -0.03409115970134735, + -0.00780417351052165, -0.006560967303812504, -0.012065568007528782, -0.0029463269747793674, + -0.01648505963385105, 0.012848860584199429, -0.016298217698931694, -0.029233312234282494, + 0.013624966144561768, 0.031245438382029533, -0.023728711530566216, 0.01645631343126297, + -0.034292370080947876, -0.008889283984899521, -0.0032535353675484657, -0.019100822508335114, + -0.03409115970134735, 0.02608577348291874, -0.019014587625861168, 0.03288388252258301, + -0.005770489107817411, -0.00029081504908390343, 0.0071897562593221664, 0.011167298071086407, + 0.013337519019842148, 0.001416572486050427, -0.01354591827839613, -0.0016411400865763426, + 0.011483489535748959, -0.023455636575818062, -0.015723325312137604, 0.02737928181886673, + 0.013143492862582207, -0.012604530900716782, 0.0233550313860178, 0.024346722289919853, + -0.025712093338370323, + ], + index: 97, + }, + { + title: "Bob Wilson (footballer, born 1941)", + text: 'Robert "Bob" Primrose Wilson OBE (born 30 October 1941 in Chesterfield, England) is a former Scotland international football goalkeeper and later broadcaster and is noted for creating the charity the Willow FoundationAs a player, Wilson is most noted for his career at Arsenal between 1963 and 1974. He made over 300 appearances for Arsenal and two appearances for Scotland.', + vector: [ + 0.02003723941743374, 0.005079223774373531, -0.02599387988448143, 0.01989741250872612, + 0.011102280579507351, -0.005596584174782038, -0.007173136342316866, -0.014737788587808609, + 0.001047830213792622, 0.08288957178592682, -0.02238633669912815, 0.028832372277975082, + -0.011864339001476765, 0.03154502063989639, -0.0036669687833637, 0.04709380492568016, + 0.005110684782266617, 0.03769741579890251, -0.03450935706496239, -0.06040535867214203, + 0.02656717039644718, -0.022358370944857597, -0.016583507880568504, 0.00018330474267713726, + 0.025085002183914185, 0.03017471358180046, 0.020191049203276634, 0.01304587908089161, + 0.0006217941408976912, -0.013835903257131577, 0.021295685321092606, 0.020554600283503532, + 0.010389162227511406, 0.0019156328635290265, -0.006851533427834511, -0.002890927717089653, + -0.01696104183793068, -0.018037710338830948, -0.004261234309524298, 0.022638026624917984, + -0.007606600411236286, 0.009207622148096561, 0.031489089131355286, -0.02149144373834133, + -0.005628045182675123, 0.009046820923686028, -0.026427343487739563, 0.021169841289520264, + -0.025532448664307594, 0.0023403579834848642, 0.04723363369703293, -0.050981003791093826, + 0.030118782073259354, 0.08115571737289429, 0.013136766850948334, -0.0319644995033741, + -0.01580047607421875, 0.041276995092630386, 0.035711869597435, -0.036830488592386246, + 0.029447611421346664, -0.06113245710730553, 0.015646666288375854, -0.011857347562909126, + 0.021351614966988564, -0.003427514573559165, 0.03512459620833397, -0.010333231650292873, + -0.06762044131755829, 0.0001246428582817316, 0.0046177939511835575, 0.024413831532001495, + 0.030146747827529907, 0.0060335444286465645, -0.02020503208041191, 0.036438971757888794, + 0.06292224675416946, -0.012738259509205818, 0.02270793914794922, 0.023043524473905563, + -0.002567577175796032, -0.007319954689592123, -0.024917209520936012, -0.01086457446217537, + -0.04038209840655327, -0.02100204862654209, -0.0036215248983353376, -0.06146804243326187, + 0.017072902992367744, 0.027797650545835495, -0.013374472968280315, 0.05204369127750397, + 0.01280118152499199, -0.02568626031279564, -0.014947528950870037, -0.01677926629781723, + -0.03548814728856087, -0.01981351710855961, 0.015772510319948196, -0.00892796739935875, + -0.023518936708569527, -0.003285939572378993, -0.01497549470514059, 0.005044266581535339, + -0.015017443336546421, -0.021211788058280945, 0.020806290209293365, -0.011095289140939713, + 0.02750401385128498, -0.004761116579174995, 0.03000692091882229, 0.01571657881140709, + -0.02835696004331112, 0.032244157046079636, -0.04519215598702431, 0.020624514669179916, + 0.00885805394500494, -0.014220427721738815, -0.04041006416082382, 0.00442902697250247, + -0.0035603505093604326, -0.02662310190498829, -0.01610809564590454, -0.03506866469979286, + 0.01633181795477867, -0.029671335592865944, -0.015828439965844154, 0.006393599323928356, + -0.0003165775560773909, 0.002829753328114748, -0.022232526913285255, -0.016933076083660126, + -0.05086914077401161, 0.04152868315577507, -0.05047762393951416, 0.0447726733982563, + -0.01508735679090023, 0.015688613057136536, 0.049750521779060364, 0.029084060341119766, + 0.01620597392320633, 4.1948165744543076e-5, 0.047289565205574036, 0.0902724489569664, + 0.011332996189594269, -0.05176403373479843, 0.019114380702376366, 7.805199129506946e-5, + 0.0030534768011420965, 0.00983684416860342, -0.017869917675852776, 0.003705421229824424, + 0.0026357430033385754, 0.032328050583601, -0.002307149115949869, -0.03993465378880501, + -0.024959158152341843, -0.04421336576342583, 0.005841281730681658, 0.016947058960795403, + -0.014737788587808609, -0.0016709351912140846, -0.0003089307574555278, 0.019240224733948708, + -0.03529239073395729, -0.0009281031670980155, -0.01399670448154211, 0.007236058358103037, + 0.04798870161175728, 0.016569525003433228, -0.014402203261852264, -0.0031181469094008207, + 0.00455137575045228, 0.012961982749402523, -0.020232997834682465, 0.0017102615674957633, + -0.06454424560070038, -0.00599858770146966, 0.010109507478773594, -0.0030150243546813726, + -0.01985546387732029, -0.033222947269678116, -0.01594030298292637, -0.022190578281879425, + -0.016667403280735016, -0.019463948905467987, 0.028720509260892868, -0.005477731116116047, + 0.006519443821161985, -0.03579576686024666, 0.026553187519311905, 0.019394034519791603, + 0.008158917538821697, -0.0406058244407177, 0.036914385855197906, 0.01462592650204897, + 0.006190849933773279, -0.041864268481731415, 0.007795367389917374, -0.012269837781786919, + 0.05380551144480705, 0.04491250216960907, 0.01647164672613144, -0.016975024715065956, + 0.003023763420060277, 0.041332926601171494, 0.0138219203799963, 0.013786963187158108, + -0.01861100271344185, -0.01726866140961647, 0.0380050353705883, 0.008130952715873718, + -0.03165687993168831, 0.05056152120232582, 0.01780000515282154, -0.005739907268434763, + -0.014122548513114452, 0.03400597721338272, -0.008319719694554806, 0.020988065749406815, + 0.00020668210345320404, 0.014346272684633732, -0.017646195366978645, -0.007487747352570295, + -0.01931013911962509, 0.031321294605731964, -0.032300084829330444, 0.0010513258166611195, + 0.020540617406368256, 0.0010172430193051696, -0.03512459620833397, 0.030734021216630936, + -0.008515477180480957, 0.028832372277975082, 0.0058307950384914875, 0.05053355544805527, + 0.03711014240980148, -0.03537628427147865, 0.006330677308142185, -0.012025140225887299, + 0.02323928289115429, 0.012332760728895664, -0.033139050006866455, -0.06336969137191772, + 0.0372220054268837, 0.02020503208041191, -0.024623572826385498, 0.015786493197083473, + -0.05545547232031822, -0.009410372003912926, 0.05070134997367859, 0.0059111956506967545, + -0.006956404075026512, -0.013675102032721043, -0.019575810059905052, -0.035851698368787766, + -0.005572114605456591, 0.04376591742038727, 0.04301084950566292, 0.01571657881140709, + -0.07589821517467499, -0.01395475585013628, 0.01883472502231598, 0.06734078377485275, + -0.06443238258361816, -0.017016971483826637, -0.060069773346185684, -0.011207151226699352, + 0.023267248645424843, -0.03862027823925018, 0.01682121306657791, 0.003375079482793808, + 0.031097572296857834, 0.01714281737804413, -0.030482333153486252, -0.02319733425974846, + -0.01406661793589592, 0.015171253122389317, -0.018331347033381462, -0.0003611474821809679, + 0.02358885109424591, -0.03210432827472687, 0.02172914892435074, -0.053973305970430374, + -0.006596348714083433, -0.022693956270813942, -0.003235252108424902, 0.02768578939139843, + 0.0031618429347872734, -0.01931013911962509, -0.037054210901260376, 0.07863882929086685, + 0.009927731938660145, 0.03375428915023804, 0.04910731688141823, -0.004914926830679178, + 0.006627810187637806, -0.02242828533053398, 0.012283820658922195, 0.03392208367586136, + 0.0030167722143232822, 0.014919564127922058, -0.03820079565048218, -0.06281038373708725, + -0.04242357611656189, -0.030817918479442596, -0.005844777449965477, -0.002476689638569951, + 0.03339073807001114, -0.009270544163882732, -0.07930999994277954, -0.034956805408000946, + -0.020023256540298462, -0.0010137473000213504, 0.032383982092142105, 0.030817918479442596, + 0.02007918804883957, 0.002868205774575472, -0.03543221578001976, 0.03341870382428169, + -0.01388484239578247, 0.025406604632735252, -0.0586715005338192, -0.004079458769410849, + 0.03624321520328522, -0.053749579936265945, 0.010633859783411026, -0.0197575856000185, + -0.026357430964708328, -0.031125538051128387, -0.01633181795477867, -0.05738509073853493, + 0.014052635058760643, 0.023295214399695396, 0.02666505053639412, 0.007134683430194855, + -0.031852640211582184, 0.056322403252124786, -0.072262704372406, 0.012989948503673077, + 0.030482333153486252, 0.009927731938660145, -0.026553187519311905, -0.018093641847372055, + -0.05777660384774208, -0.01757628098130226, 0.07612193375825882, -0.04927511140704155, + -0.026818860322237015, -0.04144478589296341, 0.0006436421535909176, 0.03339073807001114, + 0.060908734798431396, 0.03702624514698982, -0.018093641847372055, -0.0038242742884904146, + 0.016947058960795403, -0.03350260108709335, 0.011053341440856457, -0.056602057069540024, + 0.005809820722788572, 0.011053341440856457, -0.00017817046318668872, 0.022540146484971046, + -0.012871094979345798, -0.003205538960173726, 0.036215249449014664, -0.03176874294877052, + -0.0074318163096904755, -0.030286574736237526, 0.013982721604406834, 0.0027336219791322947, + -0.0011640615994110703, 0.029279818758368492, 0.026147689670324326, 0.02136559784412384, + -0.03241194784641266, -0.04463284835219383, -0.014821684919297695, -0.005834290757775307, + -0.04854800924658775, -0.003546367632225156, -0.03355853259563446, -0.008019090630114079, + -0.001001512398943305, -0.042311716824769974, -0.006134918890893459, -0.05100896954536438, + 0.03235601633787155, 0.022554129362106323, 0.015926320105791092, 0.045387912541627884, + -0.005460252519696951, -0.08233026415109634, -0.010200395248830318, -0.019729619845747948, + 0.0017967796884477139, 0.021757114678621292, 0.033055152744054794, -0.010920505039393902, + 0.0018701889785006642, 0.007071761414408684, -0.022232526913285255, -0.011416892521083355, + 0.013304559513926506, -0.018233468756079674, -0.024246038869023323, -0.017100868746638298, + 0.01887667365372181, 0.02358885109424591, 0.005505696404725313, 0.046142980456352234, + -0.035991523414850235, -0.06062908098101616, 0.025490501895546913, 0.001368558849208057, + 0.0043800873681902885, -0.013765988871455193, 0.020988065749406815, -0.015325062908232212, + -0.013430403545498848, -0.012528518214821815, 0.02554643154144287, 0.005019797012209892, + 0.014905581250786781, 0.02554643154144287, 0.029475577175617218, 0.06219514459371567, + -0.005925178062170744, -0.00938939768821001, -0.04910731688141823, 0.014695839956402779, + -0.010277300141751766, 0.018932605162262917, -0.020484687760472298, -0.0481564924120903, + -0.08434377610683441, -0.010710764676332474, 0.004114415962249041, 0.005309938453137875, + 0.025448553264141083, 0.07405249029397964, -0.0013327281922101974, -0.027224358171224594, + -0.028384923934936523, -0.0019663202110677958, 0.00872521847486496, 0.045387912541627884, + 0.008774157613515854, 0.03610338643193245, 0.0010618128580972552, -0.0051456415094435215, + 0.009445328265428543, 0.01798178069293499, -0.02911202609539032, -0.05212758481502533, + 0.06325783580541611, 0.012885077856481075, -0.039095688611269, 0.032300084829330444, + -0.05514785274863243, 0.012745250947773457, 0.049163248389959335, 0.007788375951349735, + -0.01745043694972992, 0.006617323029786348, 0.0009420858696103096, -0.02177109755575657, + -0.0013003931380808353, -0.023449024185538292, -0.020904168486595154, 0.0349847674369812, + -0.04505232721567154, 0.00808201264590025, -0.00825679674744606, -0.0195478443056345, + 0.005142145790159702, -0.018792778253555298, 0.045331984758377075, -0.030678091570734978, + 0.03551611304283142, -0.036522869020700455, -0.042926955968141556, 0.0018911630613729358, + 0.0670052021741867, -0.012067088857293129, -0.050142038613557816, -0.029056094586849213, + 0.012234881520271301, -0.004893952514976263, 0.02030291222035885, 0.012724276632070541, + -0.02862263098359108, 0.030202679336071014, 0.013807937502861023, -0.01085758302360773, + -0.009724983014166355, 0.002553594531491399, 0.024861278012394905, 0.023742660880088806, + 0.028287045657634735, -0.006938925478607416, 0.013982721604406834, 0.028077304363250732, + 0.035460181534290314, -0.0100605683401227, 0.013276593759655952, 0.06868312507867813, + 0.009578164666891098, 0.042619336396455765, 0.01606614701449871, -0.0016482132486999035, + -0.0083686588332057, -0.015213200822472572, -0.019505895674228668, -0.03912365436553955, + -0.02030291222035885, -0.028301028534770012, 0.023071490228176117, 0.006099962163716555, + -0.014262376353144646, 0.023602833971381187, -0.001861449796706438, 0.06991361081600189, + 0.03263567015528679, 0.015143287368118763, 0.013542265631258488, -0.004771603737026453, + -0.09066396951675415, -0.015492855571210384, -0.009424353949725628, 0.028077304363250732, + 0.02852475270628929, -0.016709351912140846, -0.024497728794813156, 0.021113909780979156, + 0.026245567947626114, 0.028832372277975082, 0.012500553391873837, 0.024469763040542603, + 0.050365764647722244, -0.016989005729556084, 0.010410136543214321, -0.044716741889715195, + -0.012982957065105438, 0.0020135119557380676, -0.0032789481338113546, -0.004103928804397583, + -0.03492883965373039, -0.028860338032245636, -0.03529239073395729, 0.011130246333777905, + 0.007103222422301769, 0.017212729901075363, 0.04124902933835983, -0.0002529998600948602, + -0.04793277010321617, -0.02199482172727585, -0.014821684919297695, -0.014723805710673332, + 0.032244157046079636, 0.0007485125679522753, -0.023337163031101227, 0.00994870625436306, + 0.031181469559669495, 0.03733386471867561, -0.01949191465973854, 0.022889714688062668, + -0.034481391310691833, 0.00697737792506814, -0.011277064681053162, -0.00934744905680418, + 0.029084060341119766, 0.007858289405703545, -0.053078409284353256, -0.0030062850564718246, + 0.031181469559669495, 0.012046114541590214, 0.0021603305358439684, -0.020023256540298462, + 0.014793719165027142, -0.024413831532001495, 0.0009045072947628796, -0.0267069973051548, + -0.00200302479788661, -0.00685502914711833, 0.012724276632070541, 0.011312021873891354, + -0.019338103011250496, -0.04169647395610809, -0.01195522677153349, -0.03610338643193245, + 0.004684211686253548, 0.011444857344031334, 0.03476104512810707, 0.005037275608628988, + 0.01075271237641573, 0.019394034519791603, -0.006858524866402149, 0.006288729142397642, + 0.0030779466032981873, -0.010941479355096817, -0.016681386157870293, 0.024917209520936012, + 0.0001365500211250037, 0.0015957780415192246, -0.014807702042162418, 0.02964336983859539, + -0.019156329333782196, -0.017702125012874603, 0.007264023646712303, 0.016947058960795403, + -0.028105270117521286, 0.020484687760472298, 0.025350674986839294, -0.014793719165027142, + -0.04144478589296341, 0.027294272556900978, 0.018932605162262917, -0.002623508218675852, + -0.022721922025084496, -0.0300908163189888, -0.01132600475102663, 0.016499610617756844, + 0.04348626360297203, -0.01557675190269947, 0.015255149453878403, -0.06197142228484154, + 0.005100197624415159, 0.009822862222790718, 0.041193097829818726, -0.008445563726127148, + -0.020177066326141357, -0.015297097153961658, 0.010584920644760132, -0.0010784174082800746, + 0.06079687178134918, -0.026720980182290077, 0.02105797827243805, -0.023518936708569527, + 0.019352085888385773, 0.016191991046071053, -0.009731974452733994, -0.0026497256476432085, + -0.02185499295592308, 0.007718462496995926, 0.006215319503098726, -0.018009744584560394, + 0.0028856841381639242, -0.024134177714586258, -0.10397551953792572, -0.03227212280035019, + 0.021337632089853287, -0.007424825336784124, 0.01315074972808361, 0.020624514669179916, + 0.028021374717354774, -0.0008616851991973817, -0.017995761707425117, -0.0018894152017310262, + -0.022498199716210365, 0.04015837609767914, 0.011060332879424095, 0.02613370679318905, + -0.009906758554279804, 0.010473058559000492, -0.02732223831117153, 0.011011392809450626, + 0.06560692936182022, 0.03202043101191521, 0.009193639270961285, -0.0017382270889356732, + -0.02065248042345047, -0.0045758457854390144, 0.016038181260228157, 0.013528282754123211, + -0.029056094586849213, -0.0003574333095457405, 0.05447668209671974, 0.003971092868596315, + -0.016261905431747437, -0.02465153858065605, -0.0007174884085543454, -0.031321294605731964, + 0.03635507449507713, -0.008270779624581337, -0.015283114276826382, 0.031237399205565453, + 0.0032702090684324503, 0.02648327499628067, 0.0016508350381627679, -0.018261434510350227, + 0.011235116980969906, -0.04203205928206444, 0.0238964706659317, 0.030286574736237526, + -0.01322066318243742, -0.023756643757224083, -0.03464918211102486, 0.010899531655013561, + -0.005631540901958942, 0.019785551354289055, -0.0017950318288058043, -0.02007918804883957, + -0.00878814049065113, 0.011319013312458992, -0.003046485362574458, -0.012954991310834885, + 0.012598431669175625, 0.0031653386540710926, -0.013828911818563938, 0.024287987500429153, + -0.05109286308288574, -0.002924136584624648, 0.0319644995033741, -0.01602419838309288, + 0.014255384914577007, 0.01333252526819706, 0.006019561551511288, 0.03797707334160805, + -0.01266135461628437, 0.006026552990078926, -0.014989477582275867, -0.0009237335179932415, + 0.02185499295592308, 0.021799063310027122, 0.010703773237764835, -0.03845248371362686, + -0.02919592335820198, -0.003497428260743618, 0.0010521997464820743, 0.025532448664307594, + 0.003132129553705454, 0.01905844919383526, 0.0015782996779307723, -0.01066182553768158, + -0.02639937773346901, -0.004726159851998091, 0.024945175275206566, 0.0002013293415075168, + 0.010640851221978664, 0.024427814409136772, 0.06661368161439896, -0.010137473233044147, + -0.03241194784641266, -0.02091815136373043, -0.05542750656604767, -0.022442268207669258, + -0.02323928289115429, -0.011242108419537544, 0.039822790771722794, 0.07181525975465775, + 0.014150514267385006, 0.0028856841381639242, -0.0225681122392416, 0.026902755722403526, + 0.004806560464203358, 0.029000164940953255, -0.017688142135739326, 0.018303383141756058, + -0.005149137228727341, 0.009291518479585648, -0.0008752309950068593, -0.020890185609459877, + 0.026651067659258842, 0.013367481529712677, -0.003929144702851772, -0.0022494702134281397, + 0.012353734113276005, 0.03092977963387966, 0.042087990790605545, -0.010976436547935009, + -0.021603304892778397, -0.013437394984066486, 0.028692545369267464, 0.01793983206152916, + 0.024008333683013916, -0.030901813879609108, -0.018499139696359634, -0.02154737338423729, + -0.06297817826271057, -0.03252381086349487, -0.03811689838767052, -0.027881545946002007, + -0.01700298860669136, 0.01268931943923235, -0.009235587902367115, 0.007536686956882477, + -0.04099734127521515, -0.03397801145911217, -0.013255620375275612, 0.03115350380539894, + 0.01659749075770378, -0.0002228496305178851, 0.006841046269983053, -0.00850149430334568, + 0.02474941685795784, 0.007606600411236286, -0.0007135557825677097, -0.006099962163716555, + -0.011179185472428799, -0.0056909676641225815, -0.029531508684158325, -0.011367952451109886, + -0.035096630454063416, -0.04161258041858673, -0.034201737493276596, -0.003946623299270868, + 0.002829753328114748, -0.011123254895210266, 0.013115792535245419, 0.011668581515550613, + 0.017478402704000473, -0.02096009999513626, -0.015227183699607849, 0.015059391036629677, + -0.006257267668843269, 0.019743602722883224, 0.0231414046138525, -0.032915327697992325, + 0.030202679336071014, -0.0068864901550114155, -0.0259519312530756, 0.030566228553652763, + -0.007257032673805952, 0.02639937773346901, 0.009864809922873974, 0.011409901082515717, + 0.0133534986525774, -0.02862263098359108, 0.00890000257641077, 0.021085944026708603, + -0.0439896434545517, -0.0173106100410223, -0.013975730165839195, 0.060069773346185684, + 0.010473058559000492, -0.03587966412305832, 0.012276829220354557, 0.009997646324336529, + 0.039822790771722794, 0.004991831723600626, -0.01310880109667778, -0.025979897007346153, + 0.04192019999027252, -0.0038941879756748676, 0.025182882323861122, -0.052239447832107544, + -0.04384981468319893, -0.03560001030564308, -0.037725381553173065, 0.012011157348752022, + -0.04494046792387962, -0.00666626263409853, -0.013989713042974472, -0.007963160052895546, + -0.0028647100552916527, 0.007047291845083237, -0.01985546387732029, 0.021533390507102013, + 0.025071019306778908, -0.02733622118830681, -0.017520349472761154, -0.04116513207554817, + 0.002284427173435688, -0.008249805308878422, 0.03680252283811569, -0.02693072147667408, + 0.00044132964103482664, -0.0511767603456974, -0.0026637085247784853, 0.02407824620604515, + 0.0013711806386709213, -0.018806761130690575, -0.05635036900639534, 0.02114187553524971, + -0.05288265272974968, -0.04256340488791466, 0.013059861958026886, 0.04625484347343445, + 0.002567577175796032, -0.006068501155823469, -0.004047997761517763, -0.007305971812456846, + -0.01284313015639782, -0.014458133839070797, -0.02585405297577381, -0.003764847759157419, + 0.006536922417581081, 0.008466538041830063, 0.018219485878944397, 0.03582373261451721, + -0.02888830192387104, -0.0041773379780352116, -0.02061053179204464, -0.011444857344031334, + -0.026147689670324326, -0.02925185300409794, -0.02817518450319767, -0.01708688586950302, + 0.013157741166651249, 0.025085002183914185, 0.024329936131834984, -0.03940330818295479, + 0.024539675563573837, 0.02416214346885681, 0.017058920115232468, 0.017883900552988052, + -0.013241637498140335, -0.04782090708613396, 0.011717520654201508, 0.024329936131834984, + -0.0004754125257022679, 0.07092036306858063, 0.02590998262166977, 0.035991523414850235, + -0.023798592388629913, 0.0009831601055338979, 0.004121406935155392, -0.021169841289520264, + 0.005089710466563702, 0.03635507449507713, -0.03864824399352074, 0.015926320105791092, + -0.030789952725172043, -0.02799340896308422, -0.006005578674376011, -0.016905110329389572, + 0.0346212200820446, 0.02456764131784439, 0.03850841522216797, 0.011654598638415337, + 0.020051222294569016, 0.006089475005865097, 0.03560001030564308, 0.004289199598133564, + 0.04250747337937355, 0.009892775677144527, -0.03271956741809845, -0.039011791348457336, + 0.0074667735025286674, 0.025476519018411636, -0.007683505304157734, -0.012325769290328026, + 0.0068060895428061485, -0.006071996875107288, 0.004268225748091936, -0.01508735679090023, + -0.012675337493419647, -0.005656010936945677, 0.05710543319582939, 0.008508485741913319, + 0.014765754342079163, -0.01745043694972992, -0.029139991849660873, 0.047513287514448166, + 0.0026304994244128466, 0.026902755722403526, -0.015632683411240578, -0.030062850564718246, + -0.040298204869031906, -0.01816355437040329, -0.06868312507867813, 0.005778359714895487, + 0.005558131728321314, -0.004166850820183754, 0.03529239073395729, -0.03506866469979286, + 0.0013169975718483329, 0.0032037911005318165, 0.03744572773575783, 7.280847057700157e-5, + -0.008005107752978802, -0.00257631647400558, -0.00018177538004238158, 0.001744344481267035, + -0.008851062506437302, 0.009396389126777649, 0.010179420933127403, 0.008089004084467888, + -0.05702153965830803, 0.016219956800341606, -0.0150454081594944, -0.013346507214009762, + 0.021757114678621292, 0.00819387473165989, -0.021211788058280945, 0.04552774131298065, + 0.0034956804011017084, -0.029699301347136497, -0.0707525685429573, 0.02430197037756443, + 0.00400604959577322, -0.01068279892206192, 0.016317835077643394, 0.009913749992847443, + -0.0007402102928608656, -0.019925378262996674, 0.006267754826694727, -0.01824745163321495, + -0.014500082470476627, -0.009424353949725628, -0.008473529480397701, -0.04317864403128624, + -0.01659749075770378, 0.005502200685441494, -0.030873849987983704, 0.0027248829137533903, + 0.013800946064293385, -0.016038181260228157, -0.006411077920347452, 0.02658115327358246, + -0.01121414266526699, 0.0008761048666201532, 0.013556248508393764, 0.0006244159303605556, + -0.0074667735025286674, -0.01026331726461649, 0.020512651652097702, 0.043821848928928375, + -0.01887667365372181, 0.005565123166888952, -0.015646666288375854, 0.002307149115949869, + -0.02052663452923298, 0.01036818791180849, 0.0020012769382447004, -0.011556719429790974, + 0.04463284835219383, 0.017841951921582222, 0.006582366302609444, -0.0010539476061239839, + 0.03632710874080658, 0.0019191285828128457, -0.03940330818295479, 0.007417833898216486, + -0.017296627163887024, 0.04603111743927002, -0.02919592335820198, 0.019128363579511642, + 0.009934723377227783, -0.02363079972565174, -0.03459325432777405, -0.0034816977567970753, + -0.04723363369703293, 0.013619170524179935, -0.029895057901740074, 0.013633153401315212, + 0.01696104183793068, -0.02711249701678753, -0.020442739129066467, 0.026413360610604286, + 0.012682328000664711, 0.020414773374795914, -0.017198747023940086, 0.0012724276166409254, + -0.005075728055089712, 0.004317165352404118, 0.04670228809118271, 0.0077743930742144585, + 0.00045924499863758683, -0.02212066575884819, -0.011298038996756077, -0.0008629960939288139, + 0.04001854732632637, -0.008592382073402405, 0.023001577705144882, -0.014989477582275867, + -0.002887431997805834, -0.012500553391873837, 0.007438807748258114, 0.035683903843164444, + 0.0034380017314106226, -0.017953814938664436, 0.02804933860898018, 0.009927731938660145, + 0.014038652181625366, -0.0071661449037492275, 0.005180598236620426, -0.002557090250775218, + 0.029671335592865944, 0.006889985874295235, 0.005995091982185841, -0.017953814938664436, + -0.04206002503633499, -0.03490087389945984, -0.0018090145895257592, 0.02003723941743374, + 0.007138179149478674, 0.029056094586849213, -0.005033779889345169, -0.004268225748091936, + 0.028035355731844902, -0.03400597721338272, 0.031405191868543625, 0.011228125542402267, + -0.010088533163070679, 0.05979011580348015, -0.017282644286751747, 0.03627118095755577, + -0.018862690776586533, -0.014793719165027142, -0.01217195950448513, -0.021533390507102013, + 0.024847296997904778, -0.0022704442963004112, -0.002211017766967416, 0.02381257526576519, + -0.05327416956424713, -0.020946117118000984, -0.01753433234989643, -0.012556483969092369, + 0.014919564127922058, 0.011906287632882595, 0.045248087495565414, -0.020932134240865707, + 0.008578399196267128, -0.02862263098359108, 0.0005623675533570349, -0.006274746265262365, + -0.03375428915023804, -0.010277300141751766, 0.023337163031101227, 0.01820550300180912, + 0.012402674183249474, 0.009018855169415474, -0.0011623137397691607, 0.017660176381468773, + -0.023938419297337532, 0.02760189212858677, -0.03249584510922432, -0.01904446631669998, + -0.01896057091653347, 0.005442774388939142, -0.025001106783747673, -0.024022314697504044, + 0.00042341428343206644, 0.0034642191603779793, -0.03814486414194107, 0.005376356188207865, + 0.0042577385902404785, -0.008795131929218769, -0.0015529560623690486, 0.024385865777730942, + -0.005124667659401894, -0.019729619845747948, -0.013073844835162163, 0.02065248042345047, + -0.03862027823925018, 0.01865295134484768, -0.01602419838309288, -0.014150514267385006, + 0.018219485878944397, -0.0012872843071818352, 0.034425459802150726, 0.010039594024419785, + 0.019925378262996674, -0.012025140225887299, -0.02509898506104946, 0.008767166174948215, + 0.010361196473240852, -0.003799804486334324, -0.00917266495525837, -0.02448374591767788, + -0.01793983206152916, 0.002646230161190033, 0.0030202679336071014, 0.015646666288375854, + 0.00393963186070323, 0.029839128255844116, 0.011158212088048458, 0.008424589410424232, + -0.02821713127195835, -0.02291768044233322, -0.021841010078787804, 0.047737009823322296, + -0.023966385051608086, 0.013647136278450489, -0.020484687760472298, -0.02911202609539032, + 0.0075716436840593815, -0.005229537840932608, 0.0057154372334480286, -0.012738259509205818, + -0.003694934071972966, -0.003918657545000315, -0.0072290669195353985, -0.005460252519696951, + -0.005659506656229496, -0.002053712261840701, -0.0024277500342577696, 0.020065205171704292, + -0.0034537322353571653, -0.011857347562909126, -0.017827969044446945, -0.006306207273155451, + -0.04496843367815018, 7.242612628033385e-5, 0.0012112532276660204, 0.06269852072000504, + -0.009249569848179817, -0.003652985906228423, -0.0018457192927598953, -0.0028647100552916527, + -0.0016237435629591346, -0.04348626360297203, -0.025826087221503258, -0.03179670870304108, + -0.030146747827529907, 0.02465153858065605, -0.024637555703520775, -0.014073609374463558, + 0.0001496588229201734, -0.0033296355977654457, 0.03778131306171417, -0.034117840230464935, + 0.022498199716210365, -0.00012256728950887918, 0.009221605025231838, 0.022498199716210365, + -0.013528282754123211, -0.015380993485450745, -0.00934744905680418, 0.002966084750369191, + -0.0018369799945503473, -0.01402466930449009, -0.00981587078422308, -0.005663002375513315, + -0.013073844835162163, 0.037194039672613144, -0.020191049203276634, -0.03587966412305832, + 0.03979482501745224, -0.008040064945816994, -0.004911431111395359, -0.03459325432777405, + -0.017030954360961914, -0.022064734250307083, -0.014003695920109749, 0.00400604959577322, + 0.005767872557044029, -0.003530637128278613, -0.0026532213669270277, -0.04228375107049942, + -0.04695397987961769, 0.018457192927598953, 0.03551611304283142, -0.01732459105551243, + -0.0038557355292141438, -0.02813323587179184, 0.003943127579987049, 0.012150985188782215, + -0.005711941514164209, -0.007347919978201389, -0.028692545369267464, 0.001232227310538292, + 0.006477495655417442, 0.035320352762937546, 0.00336634018458426, 0.007844306528568268, + 0.022889714688062668, -0.002158582676202059, 0.007403851021081209, 0.024385865777730942, + 0.014472116716206074, -0.01838727854192257, -0.01248657051473856, -0.035236459225416183, + -0.011647607199847698, 0.00040440651355311275, -0.014003695920109749, 0.0436260923743248, + 0.00903283804655075, 0.03520849347114563, -0.029223887249827385, -0.009193639270961285, + -0.019128363579511642, -0.00040528044337406754, -0.018988536670804024, 0.03134926036000252, + 0.009669051505625248, 0.008962924592196941, 0.002689925953745842, 0.008487512357532978, + 0.021910924464464188, 0.004229773301631212, 0.0055511402897536755, -0.025140933692455292, + -0.01448609959334135, -0.0014105070149526, -0.0040375106036663055, 0.0087461918592453, + -0.01061987690627575, -0.028776440769433975, -0.02515491656959057, 0.002191791543737054, + -0.008340693078935146, -0.00028271315386518836, -0.01455601304769516, -0.013255620375275612, + 0.010053576901555061, 0.025630328804254532, 0.0011448353761807084, -0.005400826223194599, + -0.004467479418963194, -0.048631906509399414, 0.009361431933939457, -0.014891598373651505, + -0.01740848831832409, 0.007536686956882477, -0.03266363590955734, -0.01682121306657791, + -0.018009744584560394, 0.00861335638910532, 0.051484379917383194, 0.031852640211582184, + -0.004411548841744661, -0.02585405297577381, -0.007564652245491743, 0.00941736251115799, + 0.002751100342720747, -0.0042157904244959354, 0.024315953254699707, -0.007050787098705769, + -0.006659271195530891, 0.02105797827243805, -0.005809820722788572, 0.006970386486500502, + -0.05537157878279686, -0.017380522564053535, -0.0402422733604908, -0.0010915262391790748, + -0.039682962000370026, -0.010515006259083748, 0.024623572826385498, -0.019156329333782196, + 0.012472587637603283, -0.013877850957214832, 0.012745250947773457, -0.030118782073259354, + -0.02319733425974846, -0.005540653597563505, -6.909430521773174e-5, 0.007312963251024485, + 0.013542265631258488, 0.016191991046071053, -0.011144229210913181, -0.07019326090812683, + -0.027406133711338043, -0.05956639349460602, 0.017156798392534256, -0.003569089574739337, + -0.004068972077220678, -0.041948165744543076, 0.00757863512262702, 0.022624043747782707, + 0.024581624194979668, 0.019967326894402504, -0.010403145104646683, -0.017562298104166985, + -0.00865530502051115, -0.007257032673805952, 0.01873684674501419, -0.007250041235238314, + -0.015786493197083473, 0.0150454081594944, -0.007928202860057354, 0.0033174005802720785, + -0.027545960620045662, 0.03325091302394867, 0.01333252526819706, 0.013786963187158108, + 0.023309197276830673, 0.0413888543844223, 0.010696781799197197, -0.015478872694075108, + -0.011179185472428799, 0.02247023396193981, -0.0016482132486999035, 0.008550434373319149, + 0.016303854063153267, 0.002506402786821127, 0.016261905431747437, -0.023155387490987778, + -0.025308726355433464, -0.02862263098359108, 0.00023879866057541221, -0.002473193919286132, + 0.004946387838572264, 0.017254678532481194, -0.026804877445101738, 0.0036914385855197906, + 0.006117440760135651, 0.008893011137843132, -0.01567463018000126, 0.004027023911476135, + -0.007865280844271183, -0.02790951170027256, -0.016583507880568504, -0.03199246525764465, + -0.0293357502669096, -0.01700298860669136, 0.01838727854192257, 0.019519878551363945, + 0.026511240750551224, 0.012989948503673077, 0.004096937365829945, 0.01359819620847702, + 0.021868975833058357, 0.012668346054852009, -0.026818860322237015, 0.01511532161384821, + -0.010046585462987423, 0.0036634730640798807, 0.031125538051128387, -0.03898382931947708, + -0.0024889244232326746, 0.005547644570469856, -0.032747533172369, 0.046618394553661346, + -0.012675337493419647, 0.009396389126777649, 0.004845012910664082, 0.020596548914909363, + 0.03350260108709335, 0.018443210050463676, -0.04379388317465782, 0.004998823162168264, + 0.008851062506437302, -0.00037338235415518284, -0.0003838693955913186, -0.003013276495039463, + -0.03154502063989639, 0.016863161697983742, 0.02590998262166977, -0.0011902791447937489, + -0.004236764740198851, 0.04320660978555679, 0.030789952725172043, -0.01526913233101368, + -0.006473999936133623, 0.0083686588332057, 0.05042169243097305, 0.032467879354953766, + -0.02030291222035885, -0.010703773237764835, 0.008634330704808235, 0.007291989400982857, + 0.025029070675373077, -0.00019630430324468762, 0.02684682607650757, -0.02825907990336418, + -0.010773686692118645, 0.012430639006197453, 0.0035236459225416183, -0.012290812097489834, + 0.010689790360629559, 0.007047291845083237, 0.0006357768434099853, -0.0083686588332057, + 0.011724512092769146, -0.009676042944192886, 0.0036599773447960615, -0.012745250947773457, + -0.010088533163070679, -0.0050477623008191586, 0.02385452203452587, -0.008809114806354046, + 0.028245097026228905, 0.03070605732500553, 0.021924907341599464, -0.03417377173900604, + -0.005037275608628988, 0.042675264179706573, -0.020372824743390083, 0.0014061374822631478, + 0.014611943624913692, -0.043598126620054245, 0.018051693215966225, -0.012773215770721436, + 0.04829632118344307, 0.007739436347037554, -0.019422000274062157, 0.006687236484140158, + -0.019771568477153778, 0.008459546603262424, 0.0016726830508559942, 0.03204839676618576, + 0.03934737667441368, 0.021617287769913673, 0.029895057901740074, -0.021757114678621292, + 0.02118382230401039, 0.014262376353144646, -0.03898382931947708, 0.019282173365354538, + 0.012710293754935265, 0.008948941715061665, 0.007417833898216486, 0.03355853259563446, + 0.0002971328212879598, -0.008627339266240597, 0.03154502063989639, -0.025840070098638535, + 0.04281509295105934, 0.01424140203744173, -0.07310166954994202, 0.007257032673805952, + -0.03115350380539894, -0.028119252994656563, 0.03308311849832535, 0.023826558142900467, + -0.019883429631590843, -0.032915327697992325, -0.03711014240980148, -0.038927897810935974, + -0.021127892658114433, -0.0029416149482131004, -0.008179891854524612, 0.010403145104646683, + 0.008529460057616234, 0.0063411640003323555, 0.020988065749406815, -0.015353028662502766, + -0.018135590478777885, 0.008844071067869663, 0.00981587078422308, 0.0029276323039084673, + -0.0011981443967670202, 0.019156329333782196, -0.02140754647552967, -0.01268931943923235, + 0.02332318015396595, 0.010494032874703407, -0.020708410069346428, -0.03601948916912079, + ], + index: 98, + }, + { + title: "University of Monastir", + text: "The University of Monastir (Arabic: \u062c\u0627\u0645\u0639\u0629 \u0627\u0644\u0645\u0646\u0633\u062a\u064a\u0631\u200e) is a university located in Monastir, Tunisia. It was founded in 2004 and is organized in 6 Faculties.", + vector: [ + 0.01370352040976286, 0.08861248940229416, -0.023745546117424965, 0.009841619059443474, + 0.026930395513772964, 0.02426552213728428, -0.06265704333782196, 0.0036425364669412374, + 0.0031144365202635527, -0.0054516177624464035, -0.0017657499993219972, -0.012641903944313526, + -0.01959657482802868, -0.009787455201148987, -0.0074475654400885105, 0.027970347553491592, + -0.02119983360171318, 0.06798679381608963, -0.0010318263666704297, 0.03739490360021591, + -0.021925631910562515, 0.019899895414710045, -0.011970268562436104, -0.028338663280010223, + 0.03119852766394615, 0.024698834866285324, 0.01349769625812769, -0.03732990473508835, + -0.008005456067621708, 0.028706979006528854, -0.01930408924818039, 0.011536955833435059, + -0.01502512488514185, -0.023377230390906334, -0.0027258088812232018, 0.029291952028870583, + -0.02024654485285282, -0.005524739157408476, -0.03654994070529938, -0.0066621857695281506, + 0.04766441881656647, -0.02404886484146118, 0.05706730857491493, 0.017884990200400352, + 0.005484116263687611, -0.04757775738835335, -0.019618241116404533, -0.06902674585580826, + -0.04892102628946304, -0.014104334637522697, 0.03966979682445526, 0.044631227850914, + 0.0036723266821354628, -0.03041856549680233, -0.04666779935359955, -0.001960740890353918, + -0.013411033898591995, 0.05256085470318794, 0.011753612197935581, -0.017061695456504822, + 0.027082055807113647, 0.0633070170879364, -0.0013879553880542517, -0.023918870836496353, + 0.04757775738835335, 0.0024861327838152647, 0.02112400345504284, 0.0043439618311822414, + 0.04983098432421684, -0.011211970821022987, 0.04541119188070297, 0.02608543634414673, + -0.044457901269197464, -0.015588431619107723, -0.04402459040284157, -0.020842351019382477, + -0.056114017963409424, -0.04088307172060013, -0.004693320486694574, -0.020029887557029724, + -0.01140696182847023, -0.05004763975739479, 0.019271591678261757, -0.07747634500265121, + -0.021513985469937325, 0.02851198799908161, 0.03509834408760071, -0.007983789779245853, + -0.0047447760589420795, 0.046234484761953354, 0.010572834871709347, 0.004828730598092079, + -0.02235894463956356, 0.0037941960617899895, -0.01250107679516077, -0.010188269428908825, + -0.0380232073366642, 0.013291873037815094, -0.022532271221280098, -0.014981793239712715, + -0.004907268565148115, 0.0008436060161329806, 0.04393792897462845, -0.016270898282527924, + 0.02472050115466118, 0.011190305463969707, 0.040731411427259445, -0.010881570167839527, + 0.03615996241569519, 0.02413552813231945, 0.02599877305328846, 0.04274631664156914, + 0.002840907545760274, 0.038413189351558685, -0.02115650102496147, 0.02649708278477192, + -0.04203135147690773, 0.03009358048439026, -0.05312415957450867, 0.020820684731006622, + -0.04740443080663681, 9.732614125823602e-5, -0.003978353925049305, -0.009435388259589672, + -0.024980487301945686, 0.04658113420009613, -0.02376721240580082, 0.02810034155845642, + -0.006770513951778412, 0.013335204683244228, 0.04580117389559746, 0.028533654287457466, + -0.04322296008467674, -0.011916104704141617, -0.004105639643967152, 0.01805831491947174, + 0.024828828871250153, 0.04003811255097389, -0.0004962786915712059, 0.023983867838978767, + -0.0036777432542294264, 0.040319763123989105, -0.02326890267431736, 0.004831438884139061, + -0.002784035401418805, -0.04714444279670715, -0.01113614160567522, 0.02955194003880024, + 0.04541119188070297, -0.012717733159661293, 0.03633328527212143, 0.03743823245167732, + -0.009164568036794662, 0.006651353091001511, 0.0005944511503912508, 0.028533654287457466, + -0.0021015675738453865, 0.04315796494483948, 0.02699539251625538, -0.015263446606695652, + 0.00529183354228735, 0.017884990200400352, -0.005611401982605457, -0.033126771450042725, + 0.011688615195453167, -0.027537034824490547, -0.02454717457294464, -0.04567117989063263, + 0.042507994920015335, 0.00153419841080904, -0.010399509221315384, -0.014808468520641327, + 0.0027813271153718233, -0.022618932649493217, -0.030938539654016495, -0.008650008589029312, + -0.017874157056212425, 0.004335836973041296, -0.015252613462507725, -0.0016804415499791503, + -0.03451337292790413, 0.0003165215312037617, 0.023333899676799774, -0.048747699707746506, + 0.01539344061166048, 0.00503184599801898, 0.008476683869957924, -0.04161970317363739, + -0.03241180256009102, -0.005012888461351395, -0.015653427690267563, 0.014667641371488571, + 0.037178244441747665, 0.01113614160567522, 0.00441166665405035, 0.011851107701659203, + 0.00958704762160778, 0.08986909687519073, -0.006413030903786421, -0.004503746051341295, + 0.02732037752866745, -0.03286678344011307, 0.03379840403795242, -0.011114475317299366, + 0.038456518203020096, 0.046971116214990616, 0.007555893622338772, -0.01801498420536518, + -0.03245513513684273, 0.00611512828618288, 0.002352076582610607, -0.028013678267598152, + -0.0033690077252686024, 0.013172712177038193, 0.018404964357614517, 0.026670409366488457, + -0.019000770524144173, -0.05134757608175278, -0.024850495159626007, -0.022120622918009758, + -0.06391365081071854, -0.08094284683465958, -0.007626306731253862, -0.00787546206265688, + -0.009175400249660015, -0.007539644371718168, 0.010480755940079689, -0.045064542442560196, + 0.0043520862236619, 0.062137067317962646, -0.07808298617601395, -0.015447604469954967, + 0.008996658958494663, 0.003970229532569647, -0.04140304774045944, 0.033711742609739304, + 0.023247236385941505, -0.0042654238641262054, -0.027255380526185036, 0.03405839204788208, + -0.016130072996020317, 0.045194536447525024, -0.0025321722496300936, 0.0646502822637558, + 0.017495008185505867, -0.0017386679537594318, 0.025738785043358803, -0.013584359548985958, + 0.01518761646002531, -0.006212623789906502, -0.010724494233727455, -0.011255302466452122, + 0.0013920177007094026, -0.0040731411427259445, -0.036723267287015915, -0.010637831874191761, + 0.03278012201189995, -0.0332350991666317, -0.034860022366046906, -0.05078427121043205, + -0.04211801290512085, -0.023117242380976677, 0.021383991464972496, -0.018534958362579346, + 0.015945915132761, -0.03158850967884064, -0.02950860746204853, 0.005562654230743647, + -0.03167517110705376, -0.010995314456522465, 0.009402889758348465, -0.046971116214990616, + 0.0687667578458786, -0.015761757269501686, 0.05364413559436798, -0.00878000259399414, + 0.001538260723464191, 0.04441457241773605, 0.02545713260769844, -0.06309035420417786, + -0.014364322647452354, 0.014418486505746841, -0.05667732656002045, -0.06495360285043716, + -0.0016763792373239994, 0.006033882033079863, 0.004717694129794836, 0.02294391766190529, + -0.010280348360538483, -0.041814692318439484, 0.04675446078181267, -0.04740443080663681, + -0.006050131283700466, 0.07041334360837936, -0.012576906941831112, -0.009554549120366573, + -0.0057901437394320965, 0.03962646424770355, 0.007068416569381952, 0.012121927924454212, + 0.007268823683261871, 0.024698834866285324, -0.03369007632136345, -0.030266905203461647, + 0.006694684270769358, -0.0291402917355299, -0.004124597180634737, -0.0006259339861571789, + -0.00029773334972560406, -0.032758455723524094, 0.0015991954132914543, -0.02732037752866745, + -0.043461281806230545, 0.004335836973041296, 0.01987822912633419, 0.012371082790195942, + 0.001933658728376031, -0.03382007032632828, -0.007431316189467907, 0.0026581038255244493, + -0.016552552580833435, -0.02823033556342125, -0.0003014571266248822, -0.03206515312194824, + 0.01864328794181347, -0.019856562837958336, 0.004579575732350349, 0.00797837320715189, + -0.0007698074332438409, -0.03704825043678284, -0.009809120558202267, -0.024287188425660133, + -0.02210978977382183, -0.01689920201897621, 0.03345175459980965, 0.0010975003242492676, + 0.04653780534863472, -0.027623696252703667, -0.008964160457253456, -0.016801707446575165, + 0.0009038636344484985, 0.04588783532381058, 0.01140696182847023, 0.03934480994939804, + 0.007880878634750843, 0.03083021193742752, -0.027212049812078476, 0.026475418359041214, + 0.012620237655937672, -0.038001541048288345, 0.00014835888578090817, -0.025283807888627052, + -0.013129380531609058, -0.007274240255355835, 0.03466503322124481, -0.05633067712187767, + 0.004089390393346548, -0.0633070170879364, 0.029768595471978188, 0.008281692862510681, + -0.014440151862800121, 0.055940695106983185, 0.02736370824277401, 0.0014624310424551368, + -0.03310510516166687, 0.008579595014452934, 0.015848418697714806, 0.004644572734832764, + 0.002119170967489481, -0.015685927122831345, 0.00946788676083088, 0.0013425928773358464, + 0.03611662983894348, 0.04493454843759537, 0.03423171862959862, -0.033625081181526184, + -0.007664221804589033, 0.033993396908044815, 0.0018280387157574296, -0.038911499083042145, + 0.010296597145497799, -0.05520406365394592, 0.005876806098967791, 0.004582284018397331, + 0.009711625054478645, -0.016130072996020317, 0.05386079102754593, -0.04406792297959328, + -0.012815228663384914, -0.04584450274705887, -0.02827366627752781, -0.029248619452118874, + -0.018664952367544174, 0.02294391766190529, 0.03518500551581383, -0.030656887218356133, + -0.047101110219955444, -0.053167492151260376, -0.03037523292005062, -0.01107656117528677, + -0.018004151061177254, -0.01801498420536518, -0.048661038279533386, 0.013811848126351833, + -0.03091687522828579, 0.027948681265115738, -0.002346660243347287, -0.003377132350578904, + -0.02285725437104702, -0.02690873108804226, -0.009987861849367619, -0.017245853319764137, + 0.009939114563167095, 0.06313368678092957, 0.012631070800125599, 0.03624662384390831, + 0.01101698074489832, -0.01757083833217621, -0.02446051314473152, 0.030201908200979233, + 0.04853104427456856, 0.024352185428142548, -0.008438768796622753, 0.045194536447525024, + 0.012533575296401978, 0.051564235240221024, -0.05728396400809288, -0.03360341489315033, + -0.05923387408256531, 0.02872864529490471, 0.005121216643601656, 0.00192418007645756, + -0.020192380994558334, 0.0182208064943552, 0.052517522126436234, 0.010838238522410393, + -0.010572834871709347, 0.03550999239087105, 0.047014448791742325, -0.033625081181526184, + -0.0017467925790697336, -0.039734791964292526, 0.03871650621294975, 0.05797726660966873, + -0.009494968689978123, 0.0034908768720924854, 0.00801628828048706, -0.014180164784193039, + 0.0019052226562052965, 0.009641211479902267, 0.07535310834646225, 0.00440083397552371, + -0.04541119188070297, -0.03685326129198074, 0.025305472314357758, -0.025023819878697395, + 0.04588783532381058, 0.03228181228041649, 0.014288492500782013, 6.804366421420127e-5, + -0.016758376732468605, 0.016433391720056534, -0.0147976353764534, 0.008054203353822231, + -0.02968193218111992, -0.046234484761953354, -0.015761757269501686, -0.020517366006970406, + -0.013021052815020084, 0.011981101706624031, -0.00692217331379652, 0.0025755034293979406, + -0.03284511715173721, 0.03243346884846687, 0.003935022745281458, 0.00479352381080389, + 0.007474647369235754, 0.009034574031829834, 0.01872994937002659, -0.013031885027885437, + -0.0008862602990120649, 0.02290058694779873, 0.020690690726041794, 0.036224957555532455, + -0.010989897884428501, 0.014905963093042374, -0.01980239897966385, 0.02500215359032154, + 0.002010842552408576, 0.023290567100048065, -0.012641903944313526, -0.009153734892606735, + 0.03087354265153408, 0.02454717457294464, -0.01641172543168068, 0.005178089253604412, + 0.04840105026960373, 0.030635220929980278, -0.026302091777324677, 0.02309557795524597, + -0.07127997279167175, -0.00787546206265688, 0.03817486763000488, -0.014905963093042374, + -0.04060141742229462, 0.06478027999401093, 0.003146934788674116, 0.022878920659422874, + -0.03037523292005062, 0.01029118150472641, 0.00820586271584034, 0.034903354942798615, + 0.018296636641025543, 0.019520746544003487, 0.024373849853873253, 0.02495882287621498, + 0.038001541048288345, 0.012576906941831112, 0.007783382665365934, 0.00797837320715189, + 0.04588783532381058, 0.0010975003242492676, -0.000725122052244842, 0.010204518213868141, + -0.025197144597768784, -0.024525510147213936, -0.02896696701645851, -0.034578368067741394, + 0.037178244441747665, -0.02153564989566803, 0.001083959243260324, -0.0015612804563716054, + 0.009169983677566051, 0.04931100830435753, -0.005925553850829601, 0.02992025576531887, + -0.01504679024219513, -0.024937156587839127, -0.009104987606406212, 0.0014339948538690805, + 0.001570759224705398, 0.003271512221544981, -0.005386620759963989, -0.027385374531149864, + 0.0056763989850878716, -0.02115650102496147, 0.0030358985532075167, -0.010399509221315384, + -0.030266905203461647, 0.019206594675779343, -0.021102337166666985, 0.05607068911194801, + 0.00290861283428967, 0.0111578069627285, -0.023030580952763557, -0.0066188545897603035, + -0.03054855950176716, -0.011320299468934536, -0.053254153579473495, -0.030158577486872673, + 0.033581748604774475, 0.0036750349681824446, 0.04649447277188301, 0.016682546585798264, + 0.01192693691700697, 0.024005534127354622, 0.0016817956930026412, 0.023983867838978767, + -0.02004072070121765, 0.02513214759528637, 0.016595883294939995, 0.016151737421751022, + 0.026583746075630188, 0.00028385379118844867, 0.008081285282969475, -0.010567418299615383, + 0.01574009098112583, -0.006656769197434187, 0.02049569971859455, 0.010117855854332447, + 0.05260418355464935, -0.010339928790926933, 0.0016872120322659612, -0.027493702247738838, + 0.03650661185383797, 0.006575522944331169, -0.004747484344989061, 0.016379227861762047, + -0.015512601472437382, -0.023485558107495308, 0.06547357887029648, -0.045237865298986435, + -0.021524818614125252, -0.008086701855063438, 0.000903186562936753, 0.02318223938345909, + 0.005381204653531313, -0.0034367127809673548, 0.011396128684282303, 0.019704904407262802, + -0.03520667180418968, 0.0022261450067162514, -0.04441457241773605, 0.036809928715229034, + 0.0024184274952858686, 0.03737323731184006, -0.022228950634598732, -0.02235894463956356, + -0.023485558107495308, -0.047057781368494034, 0.019455749541521072, -0.033495087176561356, + 0.037221577018499374, 0.02892363630235195, -0.029356949031352997, -0.03050522692501545, + 0.017787493765354156, -0.015490936115384102, 0.02905363030731678, 0.029811926186084747, + 0.027797022834420204, 0.02781868726015091, -0.021113170310854912, -0.004918101243674755, + 0.008899163454771042, 0.028078675270080566, -0.003260679543018341, -0.027537034824490547, + -0.026345424354076385, 0.006283036898821592, -0.009343309327960014, 0.019618241116404533, + 0.0016587759600952268, 0.012327752076089382, -0.019748235121369362, 0.0038266945630311966, + 0.013281039893627167, -0.020029887557029724, 0.010664913803339005, -0.003122560912743211, + -0.010356178507208824, -0.03752489760518074, 0.024850495159626007, 0.0009221439831890166, + 0.0033256765455007553, -0.00011645283666439354, -0.007079249247908592, -0.02554379589855671, + -0.0063588665798306465, 0.01211109571158886, -0.03128518909215927, 0.0364416129887104, + 0.019412416964769363, 0.011298634111881256, 0.0001987145806197077, -0.014700139872729778, + -0.01587008498609066, 0.03345175459980965, 0.011807776056230068, -0.0332350991666317, + -0.012121927924454212, 0.009922864846885204, -0.004647280555218458, -0.005359538830816746, + 0.008536264300346375, 0.020755687728524208, 0.01711585931479931, -0.02781868726015091, + 0.010935734026134014, 0.019065767526626587, 0.024807162582874298, -0.009771205484867096, + -0.008325023576617241, 0.0111578069627285, -0.00717132817953825, -0.034361712634563446, + -0.058540571480989456, 0.04311463236808777, -0.03356008231639862, -0.017050862312316895, + -0.022640598937869072, -0.02723371610045433, 0.039453137665987015, 0.035726647824048996, + 0.008297941647469997, -0.022077292203903198, 0.02768869325518608, 0.0028463241178542376, + 0.010708244517445564, -0.05113092064857483, 0.017300017178058624, -0.006369699724018574, + 0.0009167275857180357, 0.01719168946146965, 0.0042410497553646564, 0.021438155323266983, + 0.02235894463956356, -0.021513985469937325, 0.043006304651498795, -0.04404625669121742, + 0.021871468052268028, 0.022640598937869072, -0.03124186024069786, -0.02083151787519455, + -0.0027325793635100126, -0.005169964395463467, -0.004807064775377512, 0.008530847728252411, + 0.007257991004735231, 0.03295344486832619, 0.006255954969674349, -0.0020270918030291796, + 0.040774744004011154, -0.016335895285010338, -0.019824065268039703, 0.002056882018223405, + -0.00022224211716093123, 0.015220114961266518, 0.004801648668944836, 0.035943303257226944, + 0.0320868194103241, 0.020961511880159378, -0.03046189621090889, 0.022044792771339417, + 0.045237865298986435, 0.019444916397333145, 0.03821819648146629, 0.013172712177038193, + 0.00769672030583024, 6.626640242757276e-5, 0.002862573368474841, 0.004414374940097332, + -0.019856562837958336, 0.022965583950281143, -0.056027356535196304, 0.026973728090524673, + -0.0043087550438940525, -0.026627076789736748, 0.03542332723736763, 0.028490323573350906, + -0.03652827814221382, 0.03291011229157448, 0.012620237655937672, 0.03037523292005062, + 0.021264830604195595, -0.019780732691287994, -0.029898589476943016, -0.0014719096943736076, + 0.0005172672681510448, 0.045107871294021606, -0.05399078503251076, -0.009695376269519329, + -0.03384173661470413, -0.0011164577445015311, -0.031220193952322006, 0.03148018196225166, + 0.03611662983894348, 0.005232253111898899, 0.026692073792219162, -0.011049478314816952, + -0.005159131716936827, -0.04261632263660431, 0.02476383186876774, 0.03884650021791458, + -0.04909434914588928, -0.006250538397580385, 0.011244469322264194, -0.020398205146193504, + -0.00857417844235897, 0.021633146330714226, -0.007962124422192574, -0.04662446677684784, + 0.011796943843364716, 0.0037129498086869717, 0.051564235240221024, 0.05728396400809288, + 0.029898589476943016, -0.040363095700740814, 0.0010873444844037294, -0.020268211141228676, + -0.0019079308258369565, 0.012826061807572842, 0.022467274218797684, 0.04393792897462845, + -0.030700217932462692, -0.03964813053607941, -0.0348166897892952, -0.020929012447595596, + -0.029248619452118874, 0.024005534127354622, 0.015588431619107723, -0.02736370824277401, + 0.010453673079609871, 0.00771838566288352, 0.01971573568880558, 0.047967735677957535, + 0.019889062270522118, 0.03297511115670204, -0.007155078928917646, -0.019564077258110046, + -0.005800976417958736, -0.009473303332924843, -0.027927014976739883, 0.00370482518337667, + -0.020766520872712135, 0.02028987556695938, -0.03971312567591667, -0.013053551316261292, + -0.016216734424233437, 0.0061476267874240875, -0.004579575732350349, 0.007886294275522232, + -0.0034448374062776566, 0.030028583481907845, -0.019488247111439705, 0.03269345685839653, + 0.08271943032741547, -0.04298463836312294, 0.005941803101450205, -0.02446051314473152, + 0.05836724489927292, 0.006992586888372898, 0.016801707446575165, 0.03641995042562485, + 0.001058908412232995, 0.014115167781710625, 0.025067150592803955, 0.02025737799704075, + -0.007680471055209637, -0.0111578069627285, -0.027493702247738838, -0.019206594675779343, + 0.00919706653803587, -0.01661754958331585, -0.0032444302923977375, -0.008021704852581024, + -0.030440229922533035, 0.021145669743418694, -0.007182161323726177, 0.012674402445554733, + -0.0016845038626343012, 0.011710280552506447, 0.00636428315192461, 0.02025737799704075, + 0.005516614764928818, -0.010448257438838482, 0.014104334637522697, -0.008958743885159492, + -0.02677873708307743, 0.008926245383918285, 0.021438155323266983, 0.0371132493019104, + 0.05186755210161209, 0.04107806086540222, 0.04818439483642578, 0.001882202923297882, + -0.04814106225967407, -0.01006369199603796, 0.0016411725664511323, -0.001005421276204288, + -0.018318302929401398, 0.027493702247738838, -0.017300017178058624, -0.040688078850507736, + -0.01607590913772583, -0.00613679364323616, -0.0002750521234702319, -0.023550555109977722, + 0.03293177857995033, 0.0007711615180596709, 0.019000770524144173, -0.006965504959225655, + 0.0040189772844314575, 0.025803782045841217, 0.00022190359595697373, -0.020571529865264893, + -0.002671644790098071, -0.003821277990937233, -0.03041856549680233, 0.008633759804069996, + -0.012858560308814049, 0.04148970916867256, -0.0018957438878715038, -0.026843734085559845, + -0.01345436554402113, 0.013790182769298553, -0.022293947637081146, -0.010166604071855545, + 0.02203396148979664, 0.036138296127319336, 0.036311618983745575, -0.03295344486832619, + 9.15712007554248e-5, -0.014645976014435291, 0.011331131681799889, -0.008086701855063438, + 0.005313499365001917, 0.03145851567387581, -0.01056200172752142, -0.01930408924818039, + -0.0019092849688604474, -0.026627076789736748, 0.006694684270769358, -0.023377230390906334, + -0.027472037822008133, -0.01192693691700697, 0.029855258762836456, -0.026930395513772964, + -0.004991223104298115, -0.014960127882659435, -0.01992155984044075, 0.05035095661878586, + -0.0500909686088562, -0.05585402995347977, 0.008937078528106213, 0.00851459801197052, + -0.004774566274136305, 0.04170636460185051, -0.06023049354553223, 0.010502421297132969, + 0.016292564570903778, -0.03100353665649891, -0.0250454843044281, 0.0005744781228713691, + -0.008417102508246899, 0.012782730162143707, 0.00605554785579443, 0.03269345685839653, + 0.029486943036317825, -0.02178480476140976, 0.0029438193887472153, -0.02294391766190529, + 0.009863284416496754, 0.012349417433142662, 0.0473610982298851, -0.011948603205382824, + -0.013519362546503544, 0.04092640429735184, 0.00637511583045125, 0.025305472314357758, + 0.021503152325749397, 0.014602644369006157, 0.03243346884846687, -0.008043370209634304, + -0.0018564749043434858, 0.014613477513194084, -0.02169814333319664, -0.01459181122481823, + -0.013411033898591995, 0.022618932649493217, 0.029573604464530945, -0.012945222668349743, + -0.024525510147213936, 0.04567117989063263, 0.027623696252703667, 0.007350069936364889, + 0.021091505885124207, -0.00541370315477252, -0.023550555109977722, 0.004815189633518457, + -0.00581722566857934, 0.01914159767329693, 0.01846996136009693, 0.009180816821753979, + 0.0017088777385652065, 0.025262141600251198, 0.013887678273022175, -0.012067764066159725, + -0.0015653427690267563, -0.006732598878443241, -0.012511909939348698, -0.007041334640234709, + 0.053297486156225204, -0.019856562837958336, -0.00738798500970006, -0.008855831809341908, + 0.052387528121471405, 0.004189594183117151, -0.008043370209634304, 0.008585011586546898, + 0.009327059611678123, -0.014732638373970985, 0.02210978977382183, -0.0069330064579844475, + 9.377161768497899e-5, -0.003742740023881197, 0.019239092245697975, -0.027667028829455376, + 0.04987431317567825, -0.011363630183041096, 0.012555240653455257, -0.03319176658987999, + 0.014765136875212193, 0.025500463321805, -0.016379227861762047, 0.043829597532749176, + 0.02335556410253048, 0.03304010629653931, -0.037546563893556595, -0.037546563893556595, + 0.009603297337889671, -0.021015675738453865, 0.018090812489390373, -0.025023819878697395, + -0.002096151001751423, 0.040774744004011154, -0.0076588052324950695, 0.015295945107936859, + 0.03054855950176716, -0.01624923385679722, -0.004677071236073971, 0.01165611669421196, + 0.05390412360429764, -0.0037535729352384806, 0.007106331642717123, -0.014830133877694607, + 0.0132052106782794, 0.023702215403318405, 0.02500215359032154, -0.015696760267019272, + -0.017711663618683815, -0.0038754420820623636, 0.010285764932632446, -0.006960088387131691, + -0.014017672277987003, 0.012587739154696465, -0.019856562837958336, -0.002320932224392891, + -0.007268823683261871, 0.033083438873291016, -0.03195682540535927, -0.013519362546503544, + 0.002832782920449972, 0.00960871297866106, 0.003886274993419647, -0.004460414405912161, + -0.019694071263074875, 0.008417102508246899, -0.007490896619856358, -0.022174786776304245, + -0.01384434662759304, 0.007339237257838249, -0.0014840966323390603, 0.04224800691008568, + -0.016953367739915848, -0.00843335222452879, -0.0025308181066066027, 0.004457706585526466, + 0.011027812957763672, 0.011087393388152122, 0.010805740021169186, 0.039084821939468384, + 0.015133452601730824, -0.02905363030731678, 0.018123311921954155, -0.038369856774806976, + 0.04016810655593872, -0.01751667447388172, -0.011536955833435059, -0.02203396148979664, + -0.013649356551468372, 0.0007149662706069648, 0.03087354265153408, -0.011027812957763672, + 0.03154517710208893, 0.00979828741401434, -0.005121216643601656, 0.05186755210161209, + 0.02141648903489113, 0.007095498498529196, -0.0020338622853159904, -0.02313890866935253, + 0.012316918931901455, 0.0582805834710598, 0.017083359882235527, 0.034903354942798615, + 0.0006652029696851969, -0.0004783368203788996, -0.01908743381500244, -0.046927787363529205, + -0.031025202944874763, 0.020690690726041794, 0.0373515710234642, -0.038456518203020096, + 0.009294561110436916, 0.00686259288340807, 0.010529503226280212, -0.048877693712711334, + -0.012046098709106445, -0.02181730419397354, -0.0033690077252686024, -0.00685176020488143, + 0.008249194361269474, 0.010670330375432968, 0.051607564091682434, 0.03345175459980965, + 0.016541719436645508, -0.028576985001564026, 0.003899815957993269, -0.02768869325518608, + -0.017083359882235527, 0.005763061344623566, -0.00558973615989089, -0.007095498498529196, + -0.005402870010584593, 0.010605333372950554, 0.046061161905527115, -0.02066902443766594, + 0.05485741049051285, 0.004048767499625683, -0.01848079450428486, -0.016606716439127922, + -0.043872930109500885, 0.00473394338041544, -0.02409219741821289, 0.006131377536803484, + 0.012923557311296463, -0.012046098709106445, -0.00981453713029623, 0.04057975113391876, + 0.0066621857695281506, 0.024893825873732567, -0.04207468032836914, 0.057760607451200485, + 0.023052245378494263, -0.010513254441320896, -0.0034773359075188637, 0.00039946031756699085, + -0.011515290476381779, 0.01347603090107441, -0.011753612197935581, 0.0419013574719429, + 0.01967240497469902, 0.010491588152945042, 0.029486943036317825, -0.0021069839131087065, + -0.007100915070623159, 2.5960689526982605e-5, 0.0057901437394320965, -0.011439460329711437, + 0.00878000259399414, 0.00661343801766634, -0.013432699255645275, 0.04021143540740013, + -0.011970268562436104, 0.020528199151158333, 0.004000019747763872, 0.011493624188005924, + 0.04411125183105469, 0.03288844972848892, 0.0019526162650436163, 0.008384604007005692, + 0.005156423430889845, 0.024525510147213936, -0.004761025309562683, -0.01598924584686756, + 0.03466503322124481, -0.010708244517445564, -0.019542410969734192, -0.009234980680048466, + -0.00439000129699707, -0.00880166795104742, 0.006023049354553223, 0.0464511401951313, + -0.02459050714969635, 0.012338584288954735, 0.02099400945007801, 0.004243758041411638, + -0.011482791975140572, -0.0006577554158866405, 0.00480435648933053, -0.034080058336257935, + -0.015295945107936859, -0.0678567960858345, -0.006694684270769358, -0.03364674746990204, + 0.02227228321135044, -0.01117947231978178, 0.006174708716571331, 0.020896514877676964, + 0.0009532883414067328, -0.014310157857835293, -0.004089390393346548, 0.024893825873732567, + -0.02946527674794197, 0.013129380531609058, -0.0028436158318072557, -0.028663648292422295, + 0.0320868194103241, 0.008167947642505169, 0.021914798766374588, -0.0020690690726041794, + -0.01950991339981556, -0.00019752974912989885, -0.010058275423943996, -0.02677873708307743, + -0.015978412702679634, 0.008070453070104122, -0.0018253305461257696, 0.0127502316609025, + -0.011471958830952644, 0.03124186024069786, 0.01574009098112583, -0.032628461718559265, + -0.01506845559924841, -0.03743823245167732, 0.005595152731984854, -0.008178780786693096, + -0.005012888461351395, -0.02968193218111992, -0.05286417156457901, -0.004966848995536566, + 0.03637661784887314, -0.011959435418248177, 0.005643900483846664, 0.024070531129837036, + 0.008335856720805168, 0.011233637109398842, -0.0018713700119405985, 0.03343008831143379, + -0.005140174180269241, 0.0153717752546072, 0.022922251373529434, -0.0024116570129990578, + 0.02376721240580082, 0.025262141600251198, -0.007653389126062393, -0.01686670444905758, + 0.008601261302828789, 0.019206594675779343, 0.03501168265938759, 0.037719886749982834, + -0.016888370737433434, -0.001004067249596119, -0.03637661784887314, -0.019737401977181435, + -0.02950860746204853, 0.00582805834710598, 0.06179041787981987, 0.003065688768401742, + -0.04757775738835335, 0.00793504249304533, -0.01186194084584713, -0.011699448339641094, + -0.009229565039277077, 0.0227705929428339, -0.022922251373529434, -0.02078818529844284, + -0.030591890215873718, -0.025760451331734657, 0.013270207680761814, 0.03460003435611725, + -0.018004151061177254, 0.015935081988573074, -0.0025064442306756973, -0.03810986876487732, + 0.008617510087788105, -0.012262755073606968, 0.0019471998093649745, -0.004078557714819908, + -0.020647360011935234, 0.038868166506290436, 0.011796943843364716, 0.004035226535052061, + 0.04352628067135811, 0.006640519946813583, -0.003344633849337697, 0.007593808230012655, + 0.06287369877099991, 0.009597880765795708, -0.006895091384649277, 0.01863245479762554, + -0.002136774128302932, 0.018773281946778297, -0.004974973853677511, -0.00137712259311229, + -0.014916796237230301, 0.004874770063906908, 0.0023507224395871162, -0.028013678267598152, + -0.016151737421751022, -0.025760451331734657, 0.03245513513684273, -0.009099571034312248, + 0.010957399383187294, -0.015360942110419273, 0.02963860146701336, -0.004154387395828962, + -0.014960127882659435, 0.014765136875212193, 0.040233101695775986, -0.014017672277987003, + 0.009435388259589672, -0.0005365632241591811, 0.01661754958331585, -0.04363460838794708, + 0.00607721321284771, 0.013107715174555779, -0.0075613101944327354, 0.018794946372509003, + 0.005492241121828556, -0.00746923079714179, 0.005703480914235115, 0.02818700298666954, + -0.007176744751632214, -0.024850495159626007, 0.023117242380976677, -0.0027312252204865217, + -0.009803703986108303, 0.04057975113391876, 0.014505148865282536, -0.0016398184234276414, + -0.03678826615214348, 0.018784113228321075, 0.013183544389903545, 0.002832782920449972, + 0.04094806686043739, 0.014645976014435291, 0.031046869233250618, 0.004227508790791035, + 0.02066902443766594, 0.0005517968675121665, -0.01926075853407383, 0.017841657623648643, + -0.0307435505092144, -0.004384584724903107, 0.004040642641484737, 0.04419791325926781, + -0.006878842134028673, 0.005616818554699421, 0.002792160026729107, 0.009863284416496754, + 0.028620315715670586, -0.0021340660750865936, -0.04083973914384842, -0.016270898282527924, + -0.05455409362912178, 0.006710933521389961, 0.04083973914384842, 0.016595883294939995, + -0.0034069225657731295, 0.020777354016900063, -5.0863487558672205e-5, 0.02918362244963646, + 0.036593273282051086, 0.007745468057692051, 0.02777535654604435, -0.02124316431581974, + -0.01393100991845131, -0.004116472322493792, 0.02591211162507534, 0.026540415361523628, + -0.00740965036675334, 0.005963468458503485, -0.002824658527970314, 0.0031144365202635527, + 0.001378476619720459, -0.037589892745018005, 0.022044792771339417, -0.0023155156522989273, + -0.005600569304078817, -0.008200446143746376, 0.007534227799624205, 0.016845038160681725, + -0.01744084432721138, -0.012089429423213005, 0.035856641829013824, 0.010258683003485203, + -0.0003447884228080511, -0.026800401508808136, 0.002203125273808837, 0.009440804831683636, + -0.030028583481907845, -0.009039990603923798, -0.005272876471281052, 0.009928281418979168, + 0.006023049354553223, 0.0546407550573349, 0.008525431156158447, 0.02381054311990738, + -0.006071797106415033, -0.03514167666435242, -0.0043520862236619, 0.010166604071855545, + -0.00975495669990778, -0.014743471518158913, 0.02157898247241974, 0.03728657588362694, + -0.014331824146211147, 0.05442409962415695, -0.023485558107495308, -0.019943226128816605, + -0.008612093515694141, 0.012013600207865238, -0.006938422564417124, -0.004325004294514656, + -0.005995966959744692, 0.051564235240221024, -0.0018998062005266547, -0.006093462463468313, + 0.013692687265574932, -0.006337201222777367, -0.0007515270262956619, 0.0009512571850791574, + 0.0188924428075552, 0.05459742620587349, -0.006348033901304007, 0.007035918068140745, + -0.02335556410253048, 0.016151737421751022, 0.00795670785009861, 0.029443610459566116, + 0.0074583981186151505, 0.0016641922993585467, -0.02946527674794197, 0.016725877299904823, + 0.02454717457294464, 0.009511218406260014, -0.011796943843364716, 0.04356960952281952, + 0.03410172462463379, 0.019434083253145218, 0.03574831411242485, 0.023247236385941505, + -0.0021381282713264227, -0.06668685376644135, -0.005958052352070808, -0.019737401977181435, + -0.036224957555532455, 0.002234269632026553, 0.026692073792219162, 0.02992025576531887, + 0.04274631664156914, -0.01921742595732212, -0.005903888028115034, -0.01846996136009693, + -0.01926075853407383, -0.0026107102166861296, 0.02781868726015091, -0.017061695456504822, + -0.005386620759963989, -0.0026134182699024677, 0.01004744227975607, -0.03392839804291725, + 0.036809928715229034, 0.00818419735878706, -0.014537647366523743, 0.019000770524144173, + -0.0031333938241004944, -0.005584320053458214, -0.0067759305238723755, -0.01484096609055996, + 0.010128688998520374, -0.007756300736218691, 0.04361294209957123, -0.008736670948565006, + -0.043287958949804306, 0.006006800103932619, 0.011807776056230068, -0.00425729900598526, + -0.012013600207865238, -0.03158850967884064, -0.008839583024382591, 0.013779349625110626, + -0.007333820685744286, 0.055940695106983185, -0.034860022366046906, -0.018448296934366226, + -0.03202182427048683, -0.00979287177324295, -0.009673709981143475, -0.01880577951669693, + -0.008530847728252411, 0.004173344932496548, 0.042464662343263626, 0.00872042216360569, + -0.059450529515743256, 0.002840907545760274, 0.03806653618812561, 0.02099400945007801, + 0.004855812527239323, -0.01270690094679594, 0.00212323316372931, 0.007490896619856358, + 0.018740782514214516, 0.03206515312194824, -0.001734605641104281, -0.01454848051071167, + 0.0011252594413235784, 0.003978353925049305, -0.029313616454601288, 0.02066902443766594, + 0.00849293265491724, 0.011796943843364716, 0.010388677008450031, -0.014645976014435291, + 0.02417885884642601, 0.016953367739915848, 0.018859943374991417, -0.018567457795143127, + 0.0005277615855447948, -0.034405045211315155, -0.01025326643139124, 0.008893746882677078, + -0.014830133877694607, 0.006456362083554268, 0.022922251373529434, -0.013389368541538715, + -0.013887678273022175, 0.00529183354228735, -0.012414414435625076, 0.016433391720056534, + -0.0211673341691494, -0.013140213675796986, 0.02313890866935253, -0.0021814596839249134, + 0.012511909939348698, -0.0021922923624515533, 0.020517366006970406, 0.04558451473712921, + -0.015285111963748932, 0.015350108966231346, -0.003274220507591963, 0.03050522692501545, + 0.0014746179804205894, 0.015501768328249454, -0.07179994881153107, -0.020755687728524208, + -0.016314230859279633, 0.02404886484146118, -0.012327752076089382, 0.000824648595880717, + -0.010193686001002789, -0.016920868307352066, 0.01698586530983448, -0.007360902614891529, + ], + index: 99, + }, + { + title: "Jarkko Wiss", + text: "Jarkko Wiss (born 17 April 1972) is a Finnish former footballer. Wiss is currently working as a manager of the Finland national under-18 football team.", + vector: [ + 0.006705993786454201, 0.04774228855967522, -0.008756163530051708, -0.04268447309732437, + -0.011321617290377617, 0.04590042307972908, 0.04107649624347687, 0.009333573281764984, + -0.03189640864729881, 0.019456516951322556, -0.03610638529062271, -0.002424755599349737, + -0.027174806222319603, 0.004699677228927612, -0.0427137054502964, 0.014354846440255642, + 0.0020465156994760036, 0.0397024042904377, -0.04142732545733452, -0.028402715921401978, + 0.04861936718225479, 0.022935593500733376, -0.015538902021944523, -0.013046537525951862, + 0.029469827190041542, -0.028037264943122864, 0.014822620898485184, 0.020640572533011436, + -0.028899725526571274, 0.02362263947725296, 0.03692499175667763, 0.023798054084181786, + 0.016606014221906662, -0.06198019161820412, 0.013718964532017708, 0.038416024297475815, + 0.024426627904176712, 0.01893027126789093, -0.03534625098109245, 0.004436553921550512, + 0.026063838973641396, -0.005565791856497526, 0.004560806322842836, 0.014917638152837753, + 0.00958938803523779, 0.011818628758192062, -0.044994112104177475, -0.006124929059296846, + -0.008478422649204731, -0.03572631627321243, 0.07273901998996735, 0.02276017889380455, + 0.016006676480174065, -0.02898743376135826, 0.010780752636492252, -0.028621984645724297, + 0.019544225186109543, 0.09068988263607025, -0.0154658118262887, 0.03449840843677521, + -0.018330933526158333, -0.0025617992505431175, 0.001768774352967739, -0.029996072873473167, + 0.023388750851154327, -0.011007331311702728, 0.0015586409717798233, 0.015202688053250313, + 0.001157560502178967, 0.044350918382406235, -0.0006367953028529882, -0.013543548993766308, + 0.020128944888710976, -0.029732950031757355, -0.03552166745066643, -0.024207357317209244, + 0.05353100597858429, 0.015085744671523571, 0.04347384348511696, 0.0007290712092071772, + 0.0004184393910691142, -0.05221538618206978, -0.06630711257457733, -0.0036764193791896105, + -0.03414757549762726, -0.03613562136888504, 0.012695706449449062, -0.0567469596862793, + -0.031194746494293213, -0.0012425273889675736, -0.016547542065382004, 0.049876511096954346, + 0.011306999251246452, 0.04136885330080986, 0.008814635686576366, -0.011204673908650875, + 0.006314963102340698, -0.02081598900258541, 0.001997180050238967, 0.009684405289590359, + 0.02422197535634041, -0.009757494553923607, -0.012023280374705791, -0.05013963580131531, + 0.018915653228759766, -0.05148448795080185, -0.006881409324705601, 0.015787407755851746, + 0.031867172569036484, 0.028417332097887993, 0.051221366971731186, 0.025903042405843735, + -0.03645721450448036, 0.018594058230519295, 0.017190732061862946, 0.030434612184762955, + -0.005419612396508455, -0.0340891070663929, 0.002591035095974803, 0.031107040122151375, + -0.010612646117806435, -0.0029016670305281878, -0.0015979268355295062, 0.024441245943307877, + 0.002474091248586774, 0.03274425119161606, 0.01260799914598465, 0.015275778248906136, + -0.0028340588323771954, -0.019573461264371872, -0.05329711735248566, 0.014903020113706589, + -0.04414626955986023, -0.011182746849954128, 0.02138608880341053, 0.03750970959663391, + -0.04233364015817642, -0.006855827756226063, -0.009077759459614754, 0.053735654801130295, + 0.0737915113568306, 0.0033146245405077934, 0.03160405158996582, -0.00278837769292295, + 0.023286426439881325, -0.004897019825875759, 0.02898743376135826, -0.0030515012331306934, + -0.049905747175216675, -0.009340882301330566, 0.03417681157588959, -0.024061178788542747, + -0.04420474171638489, -0.020158180966973305, -0.007762141991406679, 0.0223070215433836, + 0.009106995537877083, -0.009720949456095695, 0.014471789821982384, 0.0154658118262887, + -0.0028413678519427776, -0.007056824862957001, -0.016971463337540627, 0.00019254606741014868, + -0.045666538178920746, 0.004001669120043516, -0.06127852946519852, 0.019412662833929062, + 0.01933957450091839, -0.0027207694947719574, -0.012220622971653938, 0.028651220723986626, + 0.014340228401124477, 0.02467513270676136, 0.02977680414915085, 0.0034352228976786137, + 0.0052843960002064705, 0.0382990799844265, -0.004681404680013657, 0.012308330275118351, + -0.017950866371393204, 0.01895950734615326, 0.007586726453155279, -0.018623292446136475, + -0.05736091360449791, -0.023067155852913857, -0.005448848009109497, 0.014120958745479584, + 0.05247851088643074, -0.04689444601535797, 0.016006676480174065, 0.03745123744010925, + 0.0406087189912796, -0.017497709020972252, 0.004027250688523054, -0.005503665655851364, + 0.034586116671562195, 0.014259829185903072, -0.03949775546789169, 0.003734891302883625, + 0.05318017303943634, -0.03502465412020683, -0.02238011173903942, 0.011979426257312298, + 0.0152903962880373, 0.025040581822395325, 0.014369464479386806, -0.04128114506602287, + -0.04844395071268082, -0.017029935494065285, 0.005510974675416946, 0.013507003895938396, + 0.054466553032398224, -0.021079111844301224, -0.00906314142048359, -0.03172099590301514, + 0.030405376106500626, 0.006420942954719067, 0.041515033692121506, -0.015743553638458252, + -0.0015211824793368578, -0.016971463337540627, 0.020640572533011436, -0.026063838973641396, + 0.034206047654151917, 0.00071216921787709, 0.024441245943307877, -0.025449885055422783, + -0.022175459191203117, 0.03405987098813057, 0.035697080194950104, 0.045023348182439804, + 0.03025919757783413, -0.035317014902830124, -0.013119627721607685, -0.0302299614995718, + 0.027145570144057274, -2.2983331291470677e-5, 0.014617969281971455, -0.04771305248141289, + 0.031048567965626717, 0.011270454153418541, -0.01825784333050251, -0.011562814004719257, + -0.033855218440294266, -0.011979426257312298, -0.04549112170934677, 0.013916307128965855, + -0.076598159968853, 0.021824628114700317, -0.003608811181038618, 0.0010780752636492252, + -0.0255668293684721, -0.03657415881752968, -0.005529247224330902, -0.006972771603614092, + 0.0074551645666360855, -0.02786185033619404, 0.04245058447122574, 0.013178099878132343, + -0.005653499625623226, -0.015875114127993584, -0.03020072542130947, -0.011211982928216457, + -0.05285857990384102, 0.008624602109193802, -0.04686520993709564, -0.03511236235499382, + 0.02786185033619404, -0.0037458548322319984, -0.008069119416177273, 0.06010909005999565, + 0.00422093877568841, 0.07431776076555252, 0.03686651960015297, -0.015275778248906136, + 0.0003460347361396998, 0.03435222804546356, -0.011116965673863888, 0.0822114646434784, + 0.027247894555330276, 0.017497709020972252, 0.008573438972234726, 0.001554986578412354, + 0.008273771032691002, 0.024952873587608337, -0.021941572427749634, -0.0019715987145900726, + 0.031048567965626717, 0.031077804043889046, -0.033855218440294266, -0.013879762031137943, + 0.006632903590798378, -0.018667146563529968, 0.06291574239730835, -0.06069381162524223, + 0.0046777501702308655, 0.009932910092175007, -0.01358009409159422, 0.012023280374705791, + 0.005364794749766588, 0.03622332960367203, -0.05455426126718521, -0.05528515949845314, + -0.039146922528743744, -0.02384190820157528, -0.009026596322655678, 0.04306453838944435, + 0.008734236471354961, 0.03449840843677521, -0.008851180784404278, 0.0212545283138752, + -0.029835276305675507, -0.008368787355720997, -0.026794739067554474, 0.019076449796557426, + 0.023958852514624596, 0.03160405158996582, -0.03403063490986824, 0.03166252374649048, + 0.03327050060033798, 0.007181077729910612, -0.03484924137592316, 0.015129598788917065, + 0.05046123266220093, -0.012673779390752316, 0.0059166233986616135, 0.028066501021385193, + -0.04861936718225479, 0.01449371688067913, 0.03964393213391304, -0.032451894134283066, + -0.03063926473259926, -0.04133961722254753, 0.024631278589367867, -0.03139939904212952, + -0.08835101127624512, -0.025464503094553947, -0.049730334430933, 0.0032433620654046535, + 0.004568115342408419, 0.025683771818876266, -0.006537886802107096, -0.010861151851713657, + -0.028271153569221497, -0.012534908950328827, 0.04037483036518097, -0.01831631548702717, + -0.007034897804260254, 0.010203342884778976, 0.0005084312288090587, -0.014734913595020771, + 0.02729174867272377, 0.018520968034863472, 0.019324956461787224, 0.007623271085321903, + 0.045666538178920746, -0.006033566780388355, -0.013667801395058632, -0.016430597752332687, + -0.008821944706141949, 0.0151149807497859, -0.010013309307396412, 0.0022091406863182783, + 0.04455557093024254, 0.014756840653717518, 0.045666538178920746, -0.013711655512452126, + -0.08022341877222061, 0.01828707940876484, 0.029294410720467567, -0.008975433185696602, + 0.030434612184762955, 0.0706925019621849, 0.03239342197775841, -0.04721604287624359, + -0.047479163855314255, -0.006830246187746525, -0.016810664907097816, -0.003402332542464137, + -0.002455818932503462, -0.02422197535634041, -0.019134921953082085, 0.037422001361846924, + 0.016240565106272697, 0.00620167376473546, 0.013565476052463055, 0.0007034898153506219, + 0.010298359207808971, -0.038796089589595795, -0.009925601072609425, 0.018696382641792297, + -0.005942204501479864, -0.015611991286277771, -0.007871776819229126, -0.009545533917844296, + 0.02923593856394291, -0.009604006074368954, -0.01969040557742119, -0.032159533351659775, + -0.028753546997904778, 0.0021963499020785093, -0.0072541674599051476, -0.05832570046186447, + -0.0034918675664812326, -0.024748222902417183, -0.035287778824567795, 0.01219138689339161, + 0.00010301100701326504, -0.0061797467060387135, 0.0295282993465662, -0.01966116949915886, + -0.027598727494478226, -0.025318322703242302, 0.002667779568582773, 0.01742462068796158, + 0.03441070020198822, 0.001052493811585009, 0.00823722593486309, -0.008134899660944939, + -0.008931579068303108, -0.015085744671523571, 0.015275778248906136, 0.01847711391746998, + 0.01569969952106476, 0.05809181183576584, -0.020611336454749107, 0.05242003872990608, + 0.031223982572555542, 0.020611336454749107, -0.035287778824567795, -0.013843216933310032, + 3.2890431612031534e-5, 0.026341581717133522, -0.004897019825875759, 0.0014736740849912167, + -0.030463848263025284, 0.04897020012140274, 0.0015476775588467717, -0.019734259694814682, + 0.03262730687856674, -0.004199011716991663, -0.004407317843288183, 0.02289174124598503, + 0.014099031686782837, 0.0156412273645401, -0.04277217760682106, 0.037714362144470215, + 0.027730287984013557, 0.0840240865945816, 0.014932256191968918, -0.032130297273397446, + 0.03791901469230652, -0.021590741351246834, -0.0008030746830627322, 0.009472444653511047, + 0.006844864226877689, 0.02680935710668564, -0.015582755208015442, -0.039117686450481415, + 0.019266484305262566, 0.02664855867624283, -0.05350176990032196, 0.004611969459801912, + -0.015158834867179394, -0.03373827412724495, 0.01701531745493412, 0.043210718780756, + -0.002735387533903122, -0.01650368794798851, 0.023374132812023163, -0.022833269089460373, + -0.004831239115446806, 0.027817996218800545, 0.042596764862537384, 0.054788149893283844, + 0.01742462068796158, 0.0005801506922580302, -0.01976349577307701, -0.03172099590301514, + 0.04446786269545555, 0.01286381296813488, -0.05730244144797325, 0.03476153314113617, + 0.07431776076555252, -0.020435921847820282, 0.06157088652253151, -0.027876468375325203, + 0.010795370675623417, -0.011087729595601559, 0.09121613204479218, 0.010824606753885746, + 0.003775090677663684, -0.005291705019772053, -0.036281801760196686, 0.005394030828028917, + 0.03294890373945236, -0.013609330169856548, -0.031867172569036484, -0.010875768959522247, + 0.012008662335574627, -0.01083922479301691, -0.002687879139557481, 0.07367456704378128, + 0.01739538460969925, -0.030493084341287613, 0.03020072542130947, 0.018184754997491837, + 0.011402016505599022, -0.01882794499397278, 0.012505672872066498, 0.010524937883019447, + -0.01803857460618019, -0.034235283732414246, -0.022423965856432915, 0.008566129952669144, + -0.04476022347807884, -0.0266193225979805, 0.03230571374297142, 0.002764623612165451, + -0.02508443593978882, -0.00599336763843894, -0.019017977640032768, -0.010159488767385483, + 0.0562499463558197, 0.01101464033126831, 0.006811973638832569, -0.04207051545381546, + -0.0032908704597502947, 0.014449862763285637, -0.005598682444542646, 0.0055475193075835705, + -0.006684066727757454, 0.016971463337540627, -0.06408517807722092, 0.02604922279715538, + -0.011562814004719257, -0.00543423043563962, 0.017161495983600616, 0.05066588148474693, + 0.04493563994765282, -0.011073111556470394, -0.015217306092381477, 0.007414964959025383, + -0.00013293216761667281, 0.005887387320399284, -0.03160405158996582, -0.004728913307189941, + 0.006062802858650684, 0.0205528661608696, -0.01174553856253624, -0.008990051224827766, + 0.045081816613674164, -0.022833269089460373, 0.03593096882104874, -0.01602129451930523, + 0.0009291546884924173, -0.02017279900610447, -0.01442793570458889, -0.04768381640315056, + 0.027715669944882393, 0.010605337098240852, -0.0018491731025278568, 0.01035683136433363, + 0.04031636193394661, 0.041515033692121506, -0.0560452938079834, 0.021619977429509163, + -0.052653927356004715, 0.03537548705935478, 0.03517083451151848, 0.03099009580910206, + -0.02221931330859661, -0.0020154525991529226, -0.014639896340668201, 0.009552842937409878, + 0.014237902127206326, -0.033884454518556595, 0.03677881136536598, 0.0046448600478470325, + 0.018301697447896004, -0.005912968888878822, -0.015933586284518242, 0.05326788127422333, + -0.0004090747388545424, 0.046397436410188675, 0.016445215791463852, 0.028812017291784286, + -0.01201597135514021, 0.014822620898485184, -0.004915292374789715, -0.036661867052316666, + 0.02793494053184986, 0.03821137174963951, 0.001878409064374864, -0.016109002754092216, + -0.011380089446902275, -0.010079090483486652, 0.04785923287272453, -0.002130569191649556, + -0.02648776024580002, 0.012454509735107422, -0.005967786069959402, 0.019997382536530495, + -0.0058033340610563755, -0.022497056052088737, 0.010539555922150612, -0.012805341742932796, + -0.02694091759622097, -0.01244720071554184, 0.04835624247789383, -0.04651438072323799, + 0.0115043418481946, 0.007864467799663544, -0.0005294446018524468, 0.004264792427420616, + -0.020669808611273766, -0.02221931330859661, 0.010751516558229923, 0.02378343604505062, + -0.01726382225751877, 0.020055854693055153, 0.001746847410686314, 0.013638565316796303, + 0.03344591334462166, -0.0030350559391081333, -0.021429942920804024, -0.022497056052088737, + -0.010400685481727123, -0.002167114056646824, 0.006117620505392551, 0.003722100518643856, + -0.0020245888736099005, 0.00041478488128632307, -0.01841864176094532, 0.010093707591295242, + 0.06613169610500336, 0.0036453562788665295, -0.015246542170643806, -0.007107987534254789, + 0.044380154460668564, 0.0378020703792572, -0.029323646798729897, 0.004085722379386425, + -0.05250774696469307, -0.03581402450799942, 0.023403368890285492, -0.06724265962839127, + 0.017804687842726707, -0.0031921991612762213, -0.02413426712155342, 0.02202928066253662, + 0.04005323722958565, 0.0219561904668808, 0.010634573176503181, -0.014866475015878677, + 0.039819348603487015, 0.013382751494646072, -0.023227954283356667, -0.02243858389556408, + 0.009808657690882683, -0.014946874231100082, -0.017833922058343887, 0.017293058335781097, + -0.04414626955986023, 0.019061831757426262, -0.01358009409159422, 0.034966181963682175, + -0.022994065657258034, -0.014501025900244713, 0.017117641866207123, -0.003537548705935478, + -0.002145186997950077, -0.02202928066253662, 0.004973764065653086, -0.011730920523405075, + -0.012454509735107422, -0.05584064498543739, 0.028651220723986626, -0.006022603716701269, + 0.014778767712414265, -0.016942227259278297, 0.024821313098073006, -0.016927609220147133, + 0.02144456095993519, 0.022263167425990105, 0.026034604758024216, 0.02192695438861847, + -0.0019588079303503036, -0.012352184392511845, 0.004118612967431545, 0.019573461264371872, + 0.038825325667858124, 0.030083781108260155, 0.02221931330859661, 0.008551511913537979, + -0.020509012043476105, -0.04718680679798126, 0.013287734240293503, 0.005320941098034382, + -0.01306846458464861, 0.035609375685453415, -0.018520968034863472, -0.0005623350152745843, + 0.02049439400434494, -0.010736898519098759, -0.0015586409717798233, -0.00911430362612009, + -0.01682528294622898, -0.029645241796970367, 0.020830607041716576, -0.03099009580910206, + 0.01966116949915886, -0.009947528131306171, 0.04034559801220894, 0.015933586284518242, + 0.0049956911243498325, 0.020421303808689117, -0.04002400115132332, 0.05794563144445419, + 0.019032595679163933, 0.03692499175667763, -0.04037483036518097, -0.04932102933526039, + 0.030376140028238297, -0.027788760140538216, -0.009194702841341496, 0.022555526345968246, + -0.006077420897781849, -8.342520595761016e-5, -0.04999345541000366, 0.014734913595020771, + -0.01742462068796158, 0.007937557063996792, -0.020918315276503563, 0.03540472313761711, + -0.05399877950549126, 0.014786076731979847, -0.007126260083168745, -0.018199373036623, + 0.016415979713201523, -0.045344941318035126, -0.04660208895802498, -0.033387441188097, + -0.009669787250459194, -0.03938081115484238, -0.007513636257499456, 0.0013549030991271138, + 0.008653838187456131, 0.04277217760682106, -0.018053192645311356, 0.013075773604214191, + 0.02295021153986454, -0.004089376889169216, -0.016620632261037827, -0.021619977429509163, + -0.0013265807647258043, -0.00028596402262337506, -0.00646479707211256, -0.05320940911769867, + 0.01637212559580803, -0.018623292446136475, -0.0056352270767092705, 0.0005216787685640156, + 0.04823929816484451, -0.00699835317209363, -0.005423266906291246, -0.0223070215433836, + -0.0051455250941216946, 0.011906336061656475, 0.05622071027755737, -0.017293058335781097, + 0.04160274192690849, 0.021810010075569153, -0.0014727604575455189, -0.018974125385284424, + -0.018462495878338814, -0.015626609325408936, 0.002638543490320444, -0.031428635120391846, + -0.05002269148826599, -0.018155518919229507, -0.05326788127422333, -0.008390714414417744, + 0.022233931347727776, 0.031487107276916504, 0.048853255808353424, 0.007056824862957001, + -0.027540255337953568, 0.05759480223059654, -0.013002684339880943, 0.014544880017638206, + 0.007097024470567703, -0.01163590420037508, 0.008990051224827766, -0.012666470371186733, + 0.013587403111159801, -0.005605991464108229, 0.03745123744010925, -0.03125321865081787, + -0.013214644975960255, 0.004224593285471201, 0.0312824547290802, 0.020216651260852814, + 0.006325926166027784, -0.033884454518556595, -0.015246542170643806, -0.020918315276503563, + 0.043678492307662964, 0.01007178146392107, 0.025318322703242302, 0.024148885160684586, + 0.0011867964640259743, 0.006899681873619556, -0.06338351964950562, -0.011847864836454391, + -0.03724658489227295, 0.015392721630632877, -0.009991382248699665, -0.06993236392736435, + -0.04926255717873573, 0.02387114427983761, 0.016971463337540627, -0.01863791048526764, + -0.04429244622588158, -0.010035236366093159, 0.005368449259549379, -0.009852511808276176, + -0.011577432043850422, -0.053706418722867966, -0.024412009865045547, 0.0166937205940485, + -0.027467165142297745, -0.010210651904344559, -0.05040276050567627, -0.012169459834694862, + 0.02186848223209381, 0.02292097732424736, 0.003131899982690811, 0.020406685769557953, + 0.008324934169650078, -0.019222630187869072, -0.024075796827673912, 0.020976785570383072, + 0.01688375510275364, -0.027744906023144722, -0.04095955193042755, -0.049876511096954346, + 0.015611991286277771, -0.0418073944747448, -0.009487062692642212, -0.006205328274518251, + 0.003141036257147789, 0.0026330617256462574, 0.00608107540756464, 0.017190732061862946, + -0.008069119416177273, 0.00289253075607121, 0.033592093735933304, -0.010312977246940136, + 0.004962800536304712, -0.0036727648694068193, -0.016620632261037827, -0.024850549176335335, + 0.00958938803523779, -0.05449578911066055, 0.02071366272866726, -0.03788977861404419, + -0.008916961029171944, 0.002446682658046484, 0.021751537919044495, 0.01704455353319645, + -0.007586726453155279, 0.014018632471561432, -0.004728913307189941, 0.014515643939375877, + -0.031867172569036484, 0.014435244724154472, -0.01898874342441559, 0.013507003895938396, + 0.029996072873473167, -0.02821268141269684, -0.01425252016633749, 0.018535586073994637, + -0.03786054253578186, 0.015173452906310558, 0.005923932418227196, -0.021619977429509163, + 0.010371449403464794, 0.009823275730013847, 0.017146877944469452, -0.00965516921132803, + -0.022263167425990105, 0.014384082518517971, 0.004111303947865963, 0.026034604758024216, + -0.01672295667231083, -0.004199011716991663, -0.024909019470214844, 0.016415979713201523, + -0.01192095410078764, -0.013806672766804695, 0.027876468375325203, 0.005931240972131491, + -0.014201357960700989, -0.004114958457648754, 0.00318854465149343, 4.376825745566748e-5, + 0.05239080265164375, -0.005843533203005791, 0.026692412793636322, -0.011774774640798569, + -0.059290483593940735, 0.03443993628025055, 0.0016070629935711622, 0.014055177569389343, + -0.012206004932522774, 0.0291774682700634, -0.0009323523845523596, 0.006110311485826969, + 0.04806388542056084, -0.003194026416167617, 0.010407994501292706, -0.021663831546902657, + 0.004951837006956339, 0.007827922701835632, 0.0003455779515206814, -0.032861195504665375, + 0.014310992322862148, 0.03265654295682907, -0.055811408907175064, -0.00442924490198493, + 0.02381267212331295, -0.0003805240266956389, -0.009794039651751518, 0.023037919774651527, + 0.032539598643779755, 0.016299035400152206, 0.03096085973083973, -0.04405856132507324, + 0.019237248227000237, 0.04970109835267067, -0.008997360244393349, 0.03604791313409805, + 0.002792032202705741, -0.01104387640953064, -0.03952699154615402, -0.06192171946167946, + -0.02888510748744011, 0.043210718780756, 0.06490378826856613, -0.012374111451208591, + -0.007652507163584232, 0.020801370963454247, -0.016971463337540627, -0.012776105664670467, + -0.005156488623470068, 0.01663525030016899, 0.014435244724154472, -0.011672448366880417, + 0.002494191052392125, -0.026443907991051674, -0.04587118700146675, 0.017790069803595543, + 0.001997180050238967, 0.014186739921569824, -0.051981501281261444, 0.0073418752290308475, + 0.01463258732110262, 0.017833922058343887, -0.002104987623170018, 0.015407339669764042, + 0.019047213718295097, 0.036691103130578995, 0.0012005007592961192, 0.024850549176335335, + -0.019924292340874672, 0.0018080601003021002, 0.05119213089346886, 0.0061212750151753426, + -0.004381736274808645, 0.023403368890285492, 0.005682735703885555, -0.03403063490986824, + 0.0347907692193985, 0.01707378774881363, -0.0011201018933206797, 0.010539555922150612, + -0.0013649528846144676, 0.011350853368639946, -0.02106449380517006, -0.02993760257959366, + 0.017673125490546227, 0.0039029978215694427, -0.029513681307435036, -0.022000044584274292, + 0.011928263120353222, -0.034936945885419846, 0.044672515243291855, -0.003935888409614563, + 0.009004669263958931, -0.003206817200407386, -0.011511650867760181, -0.008478422649204731, + 0.008807326667010784, 0.024616660550236702, -0.03262730687856674, 0.02224854938685894, + -0.009004669263958931, -0.0018053192179650068, -0.003141036257147789, -0.031487107276916504, + 0.019734259694814682, -0.0033529968932271004, 0.01463258732110262, -0.05984596908092499, + 0.004228247795253992, 0.019237248227000237, 0.005518283694982529, 0.05142601579427719, + -0.003360305679962039, -0.01931033842265606, 0.06373434513807297, 0.04516952484846115, + -0.006424597464501858, 0.04335689917206764, 0.007696360815316439, -0.0015796542866155505, + 0.01985120214521885, 0.021108347922563553, 0.03020072542130947, -0.03332896903157234, + 0.03473229706287384, 0.015875114127993584, 0.007835231721401215, 0.006980080623179674, + -0.002000834560021758, 0.017994720488786697, -0.020962169393897057, 0.007334566209465265, + 0.026853209361433983, 0.013046537525951862, 0.021283764392137527, -0.00782061368227005, + -0.02977680414915085, -0.012586072087287903, -0.008536893874406815, -0.0026093076448887587, + 0.012140223756432533, 0.002792032202705741, -0.012235241010785103, 0.013770127668976784, + 0.023198718205094337, 0.008069119416177273, -0.03335820510983467, 0.024602042511105537, + 0.0028907035011798143, -0.006475760601460934, 0.03648645058274269, 0.02604922279715538, + 0.007908321917057037, -0.010291050188243389, -0.024952873587608337, 0.027891086414456367, + 0.012973448261618614, -0.0368957556784153, 0.026882445439696312, 0.03993629291653633, + 0.027686433866620064, 0.009333573281764984, 0.006782738026231527, 0.0206551905721426, + -0.006950844544917345, 0.0340891070663929, 0.058881182223558426, 0.021079111844301224, + -0.019061831757426262, -0.021473797038197517, -0.01701531745493412, 0.01612362079322338, + -0.01966116949915886, -0.045403413474559784, -0.02812497317790985, 0.0032671161461621523, + 0.0024137923028320074, -0.00033529967186041176, 0.023768818005919456, 0.012008662335574627, + 0.012132914736866951, 0.05209844559431076, -0.005364794749766588, -0.014515643939375877, + 0.018433259800076485, 0.02537679485976696, 0.00043054489651694894, -0.0067352293990552425, + -0.04686520993709564, -0.03593096882104874, -0.004546188749372959, 0.009172775782644749, + 0.02642928995192051, -0.0291774682700634, -0.024251211434602737, 0.007184732239693403, + 0.002126914681866765, 0.03099009580910206, 0.011211982928216457, 0.019705023616552353, + -0.025128290057182312, 0.014237902127206326, -0.02238011173903942, 0.0354924313724041, + 0.018374787643551826, -0.011928263120353222, -0.010583410039544106, 0.011862481944262981, + 0.003979742061346769, -0.021561505272984505, 0.03063926473259926, -0.008661147207021713, + -0.03324126452207565, 0.009172775782644749, -0.002823095303028822, -0.024207357317209244, + -0.009618624113500118, -0.031837936490774155, -0.003530239686369896, 0.0018117146100848913, + 0.03862067684531212, 0.006446524523198605, -0.03210106119513512, -0.01618209294974804, + -0.029411355033516884, -0.032539598643779755, 0.013653183355927467, 0.02799341268837452, + 0.008134899660944939, 0.005437884479761124, 0.029469827190041542, -0.0010725934989750385, + 0.012184077873826027, 0.016679102554917336, -0.02384190820157528, 0.012885740026831627, + 0.045403413474559784, -0.00696546258404851, -0.014062486588954926, -0.009582079015672207, + -0.016240565106272697, 0.013704346492886543, -0.013178099878132343, 0.01596282236278057, + 0.004231902305036783, -0.03446917235851288, 0.004202666226774454, 0.017848540097475052, + 0.008244534954428673, 0.028066501021385193, -0.009903674013912678, 0.008032574318349361, + -0.013229262083768845, -0.011380089446902275, -0.013879762031137943, -0.01723458617925644, + -0.015041890554130077, -0.003482731292024255, 0.034556880593299866, -0.028168827295303345, + 0.015875114127993584, 0.03645721450448036, 0.01189171802252531, -0.027598727494478226, + -0.0025837260764092207, -0.0069910441525280476, -0.025844570249319077, -0.009501680731773376, + -0.016766810789704323, 0.0007423187489621341, 0.004893365316092968, -0.02311100997030735, + -0.003652665065601468, -0.027788760140538216, -0.009808657690882683, -0.007784069050103426, + -0.013090391643345356, 0.014946874231100082, 0.007118951063603163, -0.053004756569862366, + 0.007827922701835632, 0.01976349577307701, 0.0003293611225672066, 0.02926517464220524, + -0.05072435364127159, 0.005616954993456602, -0.038386788219213486, -0.018491731956601143, + 0.0003910306841135025, 0.025449885055422783, -0.009918292053043842, 0.013441222719848156, + 0.0017103024292737246, -0.03613562136888504, 0.0023662839084863663, 0.010714971460402012, + -0.021824628114700317, 0.01469836849719286, -0.018345551565289497, -0.008544202893972397, + -0.019997382536530495, -0.007484400644898415, -0.03265654295682907, -0.008653838187456131, + 0.04043330252170563, -0.005255159921944141, 0.021751537919044495, -0.008017956279218197, + -0.0203043594956398, 0.05154296010732651, 0.016255183145403862, 0.021079111844301224, + 0.0034443591721355915, -0.004294028505682945, -0.028709692880511284, 0.003194026416167617, + -0.01330966129899025, 0.006680412217974663, -0.03482000529766083, -0.029601387679576874, + 0.006015294697135687, -0.00868307426571846, 0.0210060216486454, -0.005236887838691473, + -0.006475760601460934, 0.02157612331211567, 0.008463804610073566, 0.012900358065962791, + -0.01077344361692667, -0.0030770825687795877, -0.002205486176535487, -0.010853842832148075, + -0.027233276516199112, 0.007071442902088165, 0.014822620898485184, -0.030142253264784813, + -0.038035955280065536, 0.02780337817966938, 0.02993760257959366, 0.015714317560195923, + 0.005496356636285782, 0.0012388728791847825, 0.01650368794798851, 0.010371449403464794, + -0.030756209045648575, 0.004491371102631092, 0.00422093877568841, -0.011467796750366688, + -0.006705993786454201, -0.025391412898898125, -2.048514261332457e-6, -0.02243858389556408, + -0.06157088652253151, -0.002634888980537653, -0.026692412793636322, 0.011643213219940662, + -0.01976349577307701, -0.0031081459019333124, -0.0027573145925998688, -0.03467382490634918, + -0.019953528419137, -0.018725618720054626, 0.0004383106715977192, 0.012666470371186733, + 0.011738229542970657, 0.010583410039544106, -0.020055854693055153, -0.009070450440049171, + 0.011979426257312298, 0.008734236471354961, 0.03230571374297142, -0.00015451651415787637, + -0.003738545812666416, 0.030171489343047142, -0.03613562136888504, -0.0031958536710590124, + -0.03125321865081787, -0.04654361680150032, -0.03581402450799942, -0.01841864176094532, + -0.01777545176446438, 0.001956980675458908, -0.05771174281835556, 0.04142732545733452, + -0.021488415077328682, -0.016386743634939194, 0.006819282658398151, 0.015451193787157536, + 0.014859165996313095, -0.020962169393897057, 0.006885063834488392, 0.0019368809880688787, + 0.02534755878150463, 0.035580139607191086, -0.021912336349487305, 0.025069817900657654, + 0.010590719059109688, -0.014479098841547966, 0.0057485164143145084, -0.025610683485865593, + -0.053677186369895935, 0.03555090352892876, -0.03192564472556114, 0.0021872136276215315, + -0.05709778890013695, 0.01171630248427391, 0.03613562136888504, 0.015538902021944523, + -0.004794694017618895, -0.018667146563529968, 0.006607322487980127, 0.013075773604214191, + -0.00498838210478425, -0.003382232738658786, 0.005050508305430412, -0.008909652940928936, + -0.02923593856394291, 0.0020830605644732714, 0.03555090352892876, 0.014800693839788437, + 0.012052515521645546, 0.04315224662423134, -0.02403194271028042, 0.006176092196255922, + 0.010393376462161541, -0.004370772745460272, -0.02575686201453209, 0.012388729490339756, + -0.023900380358099937, 0.005529247224330902, 0.0028249225579202175, -0.016869137063622475, + -0.009633242152631283, 0.025654537603259087, -0.0002528452023398131, 0.017439236864447594, + -0.009428590536117554, 0.008990051224827766, 0.017468472942709923, -0.023885762318968773, + 0.03727582097053528, -0.03028843365609646, -0.025303704664111137, -0.009326264262199402, + -0.03847449645400047, -0.02604922279715538, 0.02961600571870804, 0.001576913520693779, + -0.015041890554130077, 0.001594272325746715, 0.005065126344561577, 0.007422273978590965, + -0.01449371688067913, -0.01857944019138813, 0.000633597606793046, -0.020187415182590485, + 0.018243225291371346, -0.03821137174963951, 0.018111664801836014, -0.010488392785191536, + 0.015305014327168465, -0.00478007597848773, 0.013704346492886543, 0.032861195504665375, + 0.01988043822348118, -0.001184055581688881, 0.020757516846060753, -0.00010672259668353945, + 0.005620609503239393, 0.017029935494065285, -0.007484400644898415, 0.0024137923028320074, + -0.0002987547486554831, -0.02259938046336174, 0.0013512485893443227, 0.013704346492886543, + 0.015904350206255913, -0.016240565106272697, 0.011723611503839493, 0.03329973667860031, + 0.026604704558849335, 0.017600035294890404, -0.005525592714548111, 0.007444201037287712, + -0.02780337817966938, -0.004016287159174681, -0.03160405158996582, -0.00047325677587650716, + -0.03686651960015297, 0.015407339669764042, -0.01707378774881363, -0.00941397249698639, + 0.011095038615167141, -0.03221800550818443, -0.003088046098127961, 0.02850504033267498, + 0.017146877944469452, -0.01236680243164301, 0.012995375320315361, 0.004122267477214336, + -0.004809312056750059, -0.035667844116687775, -0.009070450440049171, 0.006782738026231527, + 0.017848540097475052, -0.02993760257959366, 0.03552166745066643, -0.02036283165216446, + 0.03517083451151848, 0.032451894134283066, 0.002764623612165451, 0.03695422783493996, + 0.01771697960793972, 0.007159150671213865, -0.0248651672154665, 0.033855218440294266, + 0.005945859011262655, -0.010897696018218994, -0.00820068083703518, -0.013894380070269108, + 0.027364838868379593, -0.002424755599349737, 0.010890386998653412, 0.013675110414624214, + -0.00016399534069932997, -0.0017148705665022135, 0.0009159071487374604, 0.012827268801629543, + 0.01739538460969925, -0.00896812416613102, -0.01950037106871605, -0.013821289874613285, + -0.0223070215433836, 0.003972433041781187, 0.03151634335517883, 0.012695706449449062, + -0.0011867964640259743, 0.020582100376486778, 0.030025308951735497, 0.004041868727654219, + 0.003797017503529787, 0.008405332453548908, 0.025654537603259087, 0.012878431007266045, + -0.0020958513487130404, 0.0018354688072577119, 0.029484445229172707, 0.02642928995192051, + 0.004294028505682945, -0.028621984645724297, -0.0034005052875727415, -0.010459157638251781, + -0.0021835591178387403, 0.0055475193075835705, -0.009399354457855225, 0.006479415111243725, + 0.0023955197539180517, 0.01615285687148571, -0.010291050188243389, -0.004290373995900154, + 0.0219561904668808, -0.000965699611697346, -0.010269124060869217, 0.007981411181390285, + 0.018082428723573685, 0.013221953995525837, 0.027087097987532616, 0.006826591677963734, + 0.010108325630426407, -0.026502378284931183, 0.02828577160835266, -0.0106784263625741, + 0.018491731956601143, 0.0007633321220055223, -0.02847580425441265, 0.011255837045609951, + 0.018871799111366272, 0.005529247224330902, 0.007020279765129089, 0.0017358838813379407, + -0.012293712235987186, 0.03923463076353073, 0.01631365343928337, -0.0007532822201028466, + 0.023988088592886925, 0.05692237243056297, -0.005269777961075306, 0.021634595468640327, + 0.028519658371806145, -0.00037938199238851666, -0.0021908681374043226, 0.0031227637082338333, + 0.007203004322946072, -0.01348507683724165, -0.004374427255243063, -0.005967786069959402, + 0.003157481551170349, 0.0034681132528930902, -0.03347514942288399, -0.0011676102876663208, + 0.0034681132528930902, -0.04163197800517082, -0.03063926473259926, 0.01602129451930523, + -0.013813980855047703, -0.03376751020550728, 0.0692891776561737, -0.01094885915517807, + -0.029762186110019684, -0.013221953995525837, -0.009399354457855225, 0.0002273779537063092, + 0.02610769309103489, -0.0004408231470733881, 0.05037352442741394, -0.019675787538290024, + 0.015348868444561958, -0.006483069621026516, 0.015407339669764042, -0.017848540097475052, + -0.001891199848614633, 0.01514421682804823, 0.03201335296034813, 0.022935593500733376, + 0.019573461264371872, -0.00782061368227005, -0.008039883337914944, -0.02403194271028042, + ], + index: 100, + }, +]; + +export default items; diff --git a/sdk/cosmosdb/cosmos/tsconfig.strict.json b/sdk/cosmosdb/cosmos/tsconfig.strict.json index f70d882bf8d4..7381b95c5f02 100644 --- a/sdk/cosmosdb/cosmos/tsconfig.strict.json +++ b/sdk/cosmosdb/cosmos/tsconfig.strict.json @@ -152,6 +152,11 @@ "src/queryExecutionContext/orderByComparator.ts", "src/utils/fixedSizePriorityQueue.ts", "src/utils/supportedQueryFeaturesBuilder.ts", + "src/documents/FullTextPolicy.ts", + "src/queryExecutionContext/Aggregators/GlobalStatisticsAggregator.ts", + "src/queryExecutionContext/hybridQueryExecutionContext.ts", + "src/request/globalStatistics.ts", + "src/request/hybridSearchQueryResult.ts", "test/public/common/TestHelpers.ts", "test/internal/session.spec.ts", "test/internal/unit/auth.spec.ts", @@ -175,6 +180,7 @@ "test/internal/unit/timeoutFailoverRetryPolicy.spec.ts", "test/internal/unit/nonStreamingOrderByMap.spec.ts", "test/internal/unit/utils/supportedQueryFeaturesBuilder.spec.ts", + "test/internal/unit/getHeader.spec.ts", "test/public/common/BaselineTest.PathParser.ts", "test/public/common/TestData.ts", "test/public/common/setup.ts", @@ -223,8 +229,11 @@ "test/public/integration/nonStreamingOrderBy/nonStreamingOrderBy.spec.ts", "test/public/integration/nonStreamingOrderBy/nonStreamingDistinctOrderBy.spec.ts", "test/public/integration/client.retry.spec.ts", - "test/public/functional/vectorEmbeddingPolicy.spec.ts", + "test/public/integration/fullTextSearch.spec.ts", + "test/public/integration/text-3properties-1536dimensions-100documents.ts", + "test/public/functional/NonStreamingQueryPolicy.spec.ts", "test/public/functional/computedProperties.spec.ts", - "test/internal/unit/utils/nonStreamingOrderByPriorityQueue.spec.ts" + "test/internal/unit/utils/nonStreamingOrderByPriorityQueue.spec.ts", + "test/internal/unit/globalStatisticsAggregator.spec.ts" ] } diff --git a/sdk/deviceupdate/iot-device-update-rest/package.json b/sdk/deviceupdate/iot-device-update-rest/package.json index 1ed534e6a03c..13c88019110f 100644 --- a/sdk/deviceupdate/iot-device-update-rest/package.json +++ b/sdk/deviceupdate/iot-device-update-rest/package.json @@ -109,7 +109,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-json-preprocessor": "^0.3.3", "karma-json-to-file-reporter": "^1.0.1", "karma-junit-reporter": "^2.0.1", diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/CHANGELOG.md b/sdk/devopsinfrastructure/arm-devopsinfrastructure/CHANGELOG.md index 89f216f08d4a..68c9eaab6b48 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/CHANGELOG.md +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/CHANGELOG.md @@ -1,15 +1,7 @@ # Release History - -## 1.0.0-beta.2 (Unreleased) + +## 1.0.0 (2024-11-25) ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0-beta.1 (2024-05-09) - -The package of @azure/arm-devopsinfrastructure is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). +This is the first stable version with the package of @azure/arm-devopsinfrastructure diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/README.md b/sdk/devopsinfrastructure/arm-devopsinfrastructure/README.md index 7b11f3e2df42..37f4789ea84c 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/README.md +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/README.md @@ -1,13 +1,15 @@ -# Azure ManagedDevOpsInfrastructure client library for JavaScript +# Azure DevOpsInfrastructure client library for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ManagedDevOpsInfrastructure client. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure DevOpsInfrastructure client. -[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure) | -[Package (NPM)](https://www.npmjs.com/package/@azure/arm-devopsinfrastructure) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-devopsinfrastructure?view=azure-node-preview) | -[Samples](https://github.com/Azure-Samples/azure-samples-js-management) +Key links: + +- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure) +- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-devopsinfrastructure) +- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-devopsinfrastructure?view=azure-node-preview) +- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples) ## Getting started @@ -24,16 +26,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP ### Install the `@azure/arm-devopsinfrastructure` package -Install the Azure ManagedDevOpsInfrastructure client library for JavaScript with `npm`: +Install the Azure DevOpsInfrastructure client library for JavaScript with `npm`: ```bash npm install @azure/arm-devopsinfrastructure ``` -### Create and authenticate a `ManagedDevOpsInfrastructure` +### Create and authenticate a `DevOpsInfrastructureClient` -To create a client object to access the Azure ManagedDevOpsInfrastructure API, you will need the `endpoint` of your Azure ManagedDevOpsInfrastructure resource and a `credential`. The Azure ManagedDevOpsInfrastructure client can use Azure Active Directory credentials to authenticate. -You can find the endpoint for your Azure ManagedDevOpsInfrastructure resource in the [Azure Portal][azure_portal]. +To create a client object to access the Azure DevOpsInfrastructure API, you will need the `endpoint` of your Azure DevOpsInfrastructure resource and a `credential`. The Azure DevOpsInfrastructure client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure DevOpsInfrastructure resource in the [Azure Portal][azure_portal]. You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). @@ -43,25 +45,24 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below npm install @azure/identity ``` -You will also need to **register a new AAD application and grant access to Azure ManagedDevOpsInfrastructure** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. +You will also need to **register a new AAD application and grant access to Azure DevOpsInfrastructure** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). ```javascript -const { ManagedDevOpsInfrastructure } = require("@azure/arm-devopsinfrastructure"); +const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure"); const { DefaultAzureCredential } = require("@azure/identity"); // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. const subscriptionId = "00000000-0000-0000-0000-000000000000"; -const client = new ManagedDevOpsInfrastructure(new DefaultAzureCredential(), subscriptionId); +const client = new DevOpsInfrastructureClient(new DefaultAzureCredential(), subscriptionId); // For client-side applications running in the browser, use this code instead: // const credential = new InteractiveBrowserCredential({ // tenantId: "", // clientId: "" // }); -// const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); +// const client = new DevOpsInfrastructureClient(credential, subscriptionId); ``` @@ -70,9 +71,9 @@ To use this client library in the browser, first you need to use a bundler. For ## Key concepts -### ManagedDevOpsInfrastructure +### DevOpsInfrastructureClient -`ManagedDevOpsInfrastructure` is the primary interface for developers using the Azure ManagedDevOpsInfrastructure client library. Explore the methods on this client object to understand the different features of the Azure ManagedDevOpsInfrastructure service that you can access. +`DevOpsInfrastructureClient` is the primary interface for developers using the Azure DevOpsInfrastructure client library. Explore the methods on this client object to understand the different features of the Azure DevOpsInfrastructure service that you can access. ## Troubleshooting @@ -89,7 +90,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur ## Next steps -Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library. +Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples) directory for detailed examples on how to use this library. ## Contributing @@ -99,10 +100,6 @@ If you'd like to contribute to this library, please read the [contributing guide - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fdevopsinfrastructure%2Farm-devopsinfrastructure%2FREADME.png) - -[azure_cli]: https://docs.microsoft.com/cli/azure -[azure_sub]: https://azure.microsoft.com/free/ [azure_sub]: https://azure.microsoft.com/free/ [azure_portal]: https://portal.azure.com [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/_meta.json b/sdk/devopsinfrastructure/arm-devopsinfrastructure/_meta.json deleted file mode 100644 index 787d16c08e4c..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/_meta.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "commit": "185960b80913e3300b96afd0f902f80a973b8da9", - "readme": "specification/devopsinfrastructure/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\devopsinfrastructure\\resource-manager\\readme.md --use=@autorest/typescript@6.0.21 --generate-sample=true", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.7", - "use": "@autorest/typescript@6.0.21" -} \ No newline at end of file diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/api-extractor.json b/sdk/devopsinfrastructure/arm-devopsinfrastructure/api-extractor.json index 9bcb91290276..893efe8891ee 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/api-extractor.json +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/api-extractor.json @@ -1,31 +1,18 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { - "enabled": true - }, - "apiReport": { - "enabled": true, - "reportFolder": "./review" - }, + "mainEntryPointFilePath": "./dist/esm/index.d.ts", + "docModel": { "enabled": true }, + "apiReport": { "enabled": true, "reportFolder": "./review" }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-devopsinfrastructure.d.ts" }, "messages": { - "tsdocMessageReporting": { - "default": { - "logLevel": "none" - } - }, + "tsdocMessageReporting": { "default": { "logLevel": "none" } }, "extractorMessageReporting": { - "ae-missing-release-tag": { - "logLevel": "none" - }, - "ae-unresolved-link": { - "logLevel": "none" - } + "ae-missing-release-tag": { "logLevel": "none" }, + "ae-unresolved-link": { "logLevel": "none" } } } -} \ No newline at end of file +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/assets.json b/sdk/devopsinfrastructure/arm-devopsinfrastructure/assets.json index e11a517d671c..cf47e469c2cc 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/assets.json +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/devopsinfrastructure/arm-devopsinfrastructure", - "Tag": "js/devopsinfrastructure/arm-devopsinfrastructure_b94eee1eb5" + "Tag": "js/devopsinfrastructure/arm-devopsinfrastructure_48497bdbe1" } diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/eslint.config.mjs b/sdk/devopsinfrastructure/arm-devopsinfrastructure/eslint.config.mjs new file mode 100644 index 000000000000..03244d34a19f --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/eslint.config.mjs @@ -0,0 +1,17 @@ +import azsdkEslint from "@azure/eslint-plugin-azure-sdk"; + +export default [ + ...azsdkEslint.configs.recommended, + { + rules: { + "@azure/azure-sdk/ts-modules-only-named": "warn", + "@azure/azure-sdk/ts-apiextractor-json-types": "warn", + "@azure/azure-sdk/ts-package-json-types": "warn", + "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", + "@azure/azure-sdk/ts-package-json-module": "off", + "@azure/azure-sdk/ts-package-json-files-required": "off", + "@azure/azure-sdk/ts-package-json-main-is-cjs": "off", + "tsdoc/syntax": "warn", + }, + }, +]; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/package.json b/sdk/devopsinfrastructure/arm-devopsinfrastructure/package.json index d44a17219ca2..ff69151db42d 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/package.json +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/package.json @@ -1,114 +1,161 @@ { "name": "@azure/arm-devopsinfrastructure", - "sdk-type": "mgmt", - "author": "Microsoft Corporation", - "description": "A generated SDK for ManagedDevOpsInfrastructure.", - "version": "1.0.0-beta.2", + "version": "1.0.0", + "description": "A generated SDK for DevOpsInfrastructureClient.", "engines": { "node": ">=18.0.0" }, - "dependencies": { - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.6.0", - "@azure/core-client": "^1.7.0", - "@azure/core-lro": "^2.5.4", - "@azure/core-paging": "^1.2.0", - "@azure/core-rest-pipeline": "^1.14.0", - "tslib": "^2.2.0" + "sideEffects": false, + "autoPublish": false, + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts", + "./models": "./src/models/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false }, + "type": "module", "keywords": [ "node", "azure", + "cloud", "typescript", "browser", "isomorphic" ], + "author": "Microsoft Corporation", "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-devopsinfrastructure.d.ts", - "devDependencies": { - "@azure-tools/test-credential": "^1.1.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", - "@types/node": "^18.0.0", - "chai": "^4.2.0", - "dotenv": "^16.0.0", - "esm": "^3.2.18", - "mocha": "^10.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" - }, - "repository": { - "type": "git", - "url": "https://github.com/Azure/azure-sdk-for-js.git" - }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "dist-esm/**/*.js", - "dist-esm/**/*.js.map", - "dist-esm/**/*.d.ts", - "dist-esm/**/*.d.ts.map", - "src/**/*.ts", + "dist", "README.md", "LICENSE", - "tsconfig.json", "review/*", - "CHANGELOG.md", - "types/*" + "CHANGELOG.md" ], - "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "build:browser": "echo skipped", - "build:node": "echo skipped", - "build:samples": "echo skipped.", - "build:test": "echo skipped", - "check-format": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "execute:samples": "echo skipped", - "extract-api": "dev-tool run extract-api", - "format": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "lint": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "prepack": "npm run build", - "test": "npm run integration-test", - "test:browser": "echo skipped", - "test:node": "echo skipped", - "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", - "update-snippets": "echo skipped" + "sdk-type": "mgmt", + "repository": "github:Azure/azure-sdk-for-js", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, - "sideEffects": false, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/README.md", + "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "//metadata": { "constantPaths": [ { - "path": "src/managedDevOpsInfrastructure.ts", - "prefix": "packageDetails" + "path": "src/api/devOpsInfrastructureContext.ts", + "prefix": "userAgentInfo" } ] }, - "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure", + "dependencies": { + "@azure/core-util": "^1.9.2", + "@azure-rest/core-client": "^2.3.1", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.5.0", + "@azure/logger": "^1.0.0", + "tslib": "^2.6.2", + "@azure/core-lro": "^3.1.0", + "@azure/abort-controller": "^2.1.2" + }, + "devDependencies": { + "dotenv": "^16.0.0", + "@microsoft/api-extractor": "^7.40.3", + "@types/node": "^18.0.0", + "eslint": "^8.55.0", + "typescript": "~5.6.2", + "tshy": "^2.0.0", + "@azure/identity": "^4.2.1", + "@vitest/browser": "^2.0.5", + "@vitest/coverage-istanbul": "^2.0.5", + "playwright": "^1.41.2", + "vitest": "^2.0.5", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.0.0", + "@azure/dev-tool": "^1.0.0", + "@azure/eslint-plugin-azure-sdk": "^3.0.0" + }, + "scripts": { + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", + "pack": "npm pack 2>&1", + "lint": "echo skipped", + "lint:fix": "echo skipped", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "echo skipped", + "build:samples": "dev-tool run typecheck --paths samples-dev/*.ts && dev-tool samples publish -f", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"", + "execute:samples": "dev-tool samples run samples-dev", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"", + "generate:client": "echo skipped", + "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", + "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", + "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", + "update-snippets": "echo skipped" + }, "//sampleConfiguration": { - "productName": "", + "productName": "@azure/arm-devopsinfrastructure", "productSlugs": [ "azure" ], "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-devopsinfrastructure?view=azure-node-preview" - } + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + }, + "./models": { + "browser": { + "types": "./dist/browser/models/index.d.ts", + "default": "./dist/browser/models/index.js" + }, + "react-native": { + "types": "./dist/react-native/models/index.d.ts", + "default": "./dist/react-native/models/index.js" + }, + "import": { + "types": "./dist/esm/models/index.d.ts", + "default": "./dist/esm/models/index.js" + }, + "require": { + "types": "./dist/commonjs/models/index.d.ts", + "default": "./dist/commonjs/models/index.js" + } + } + }, + "main": "./dist/commonjs/index.js", + "types": "./dist/commonjs/index.d.ts", + "module": "./dist/esm/index.js" } diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/review/arm-devopsinfrastructure-models.api.md b/sdk/devopsinfrastructure/arm-devopsinfrastructure/review/arm-devopsinfrastructure-models.api.md new file mode 100644 index 000000000000..6db4d2ea553a --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/review/arm-devopsinfrastructure-models.api.md @@ -0,0 +1,504 @@ +## API Report File for "@azure/arm-devopsinfrastructure" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +// @public +export type ActionType = string; + +// @public +export interface AgentProfile { + kind: string; + resourcePredictions?: ResourcePredictions; + resourcePredictionsProfile?: ResourcePredictionsProfileUnion; +} + +// @public +export type AgentProfileUnion = StatelessAgentProfile | Stateful | AgentProfile; + +// @public +export interface AutomaticResourcePredictionsProfile extends ResourcePredictionsProfile { + kind: "Automatic"; + predictionPreference?: PredictionPreference; +} + +// @public +export interface AzureDevOpsOrganizationProfile extends OrganizationProfile { + kind: "AzureDevOps"; + organizations: Organization[]; + permissionProfile?: AzureDevOpsPermissionProfile; +} + +// @public +export interface AzureDevOpsPermissionProfile { + groups?: string[]; + kind: AzureDevOpsPermissionType; + users?: string[]; +} + +// @public +export type AzureDevOpsPermissionType = string; + +// @public +export type CachingType = string; + +// @public +export type CreatedByType = string; + +// @public +export interface DataDisk { + caching?: CachingType; + diskSizeGiB?: number; + driveLetter?: string; + storageAccountType?: StorageAccountType; +} + +// @public +export interface DevOpsAzureSku { + name: string; +} + +// @public +export interface FabricProfile { + kind: string; +} + +// @public +export type FabricProfileUnion = VmssFabricProfile | FabricProfile; + +// @public +export interface GitHubOrganization { + repositories?: string[]; + url: string; +} + +// @public +export interface GitHubOrganizationProfile extends OrganizationProfile { + kind: "GitHub"; + organizations: GitHubOrganization[]; +} + +// @public +export interface ImageVersion extends ProxyResource { + properties?: ImageVersionProperties; +} + +// @public +export interface ImageVersionProperties { + version: string; +} + +// @public +export enum KnownActionType { + Internal = "Internal" +} + +// @public +export enum KnownAzureDevOpsPermissionType { + CreatorOnly = "CreatorOnly", + Inherit = "Inherit", + SpecificAccounts = "SpecificAccounts" +} + +// @public +export enum KnownCachingType { + None = "None", + ReadOnly = "ReadOnly", + ReadWrite = "ReadWrite" +} + +// @public +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" +} + +// @public +export enum KnownLogonType { + Interactive = "Interactive", + Service = "Service" +} + +// @public +export enum KnownManagedServiceIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", + UserAssigned = "UserAssigned" +} + +// @public +export enum KnownOrigin { + System = "system", + User = "user", + UserSystem = "user,system" +} + +// @public +export enum KnownOsDiskStorageAccountType { + Premium = "Premium", + Standard = "Standard", + StandardSSD = "StandardSSD" +} + +// @public +export enum KnownPredictionPreference { + Balanced = "Balanced", + BestPerformance = "BestPerformance", + MoreCostEffective = "MoreCostEffective", + MorePerformance = "MorePerformance", + MostCostEffective = "MostCostEffective" +} + +// @public +export enum KnownProvisioningState { + Accepted = "Accepted", + Canceled = "Canceled", + Deleting = "Deleting", + Failed = "Failed", + Provisioning = "Provisioning", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownResourcePredictionsProfileType { + Automatic = "Automatic", + Manual = "Manual" +} + +// @public +export enum KnownResourceSkuRestrictionsReasonCode { + NotAvailableForSubscription = "NotAvailableForSubscription", + QuotaId = "QuotaId" +} + +// @public +export enum KnownResourceSkuRestrictionsType { + Location = "Location", + Zone = "Zone" +} + +// @public +export enum KnownResourceStatus { + Allocated = "Allocated", + Leased = "Leased", + NotReady = "NotReady", + PendingReimage = "PendingReimage", + PendingReturn = "PendingReturn", + Provisioning = "Provisioning", + Ready = "Ready", + Reimaging = "Reimaging", + Returned = "Returned", + Starting = "Starting", + Updating = "Updating" +} + +// @public +export enum KnownStorageAccountType { + PremiumLRS = "Premium_LRS", + PremiumZRS = "Premium_ZRS", + StandardLRS = "Standard_LRS", + StandardSSDLRS = "StandardSSD_LRS", + StandardSSDZRS = "StandardSSD_ZRS" +} + +// @public +export enum KnownVersions { + "V2024-10-19" = "2024-10-19" +} + +// @public +export type LogonType = string; + +// @public +export interface ManagedServiceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type: ManagedServiceIdentityType; + userAssignedIdentities?: Record; +} + +// @public +export type ManagedServiceIdentityType = string; + +// @public +export interface ManualResourcePredictionsProfile extends ResourcePredictionsProfile { + kind: "Manual"; +} + +// @public +export interface NetworkProfile { + subnetId: string; +} + +// @public +export interface Operation { + actionType?: ActionType; + readonly display?: OperationDisplay; + readonly isDataAction?: boolean; + readonly name?: string; + readonly origin?: Origin; +} + +// @public +export interface OperationDisplay { + readonly description?: string; + readonly operation?: string; + readonly provider?: string; + readonly resource?: string; +} + +// @public +export interface Organization { + parallelism?: number; + projects?: string[]; + url: string; +} + +// @public +export interface OrganizationProfile { + kind: string; +} + +// @public +export type OrganizationProfileUnion = GitHubOrganizationProfile | AzureDevOpsOrganizationProfile | OrganizationProfile; + +// @public +export type Origin = string; + +// @public +export type OsDiskStorageAccountType = string; + +// @public +export interface OsProfile { + logonType?: LogonType; + secretsManagementSettings?: SecretsManagementSettings; +} + +// @public +export interface Pool extends TrackedResource { + identity?: ManagedServiceIdentity; + properties?: PoolProperties; +} + +// @public +export interface PoolImage { + aliases?: string[]; + buffer?: string; + resourceId?: string; + wellKnownImageName?: string; +} + +// @public +export interface PoolProperties { + agentProfile: AgentProfileUnion; + devCenterProjectResourceId: string; + fabricProfile: FabricProfileUnion; + maximumConcurrency: number; + organizationProfile: OrganizationProfileUnion; + provisioningState?: ProvisioningState; +} + +// @public +export interface PoolUpdate { + identity?: ManagedServiceIdentity; + properties?: PoolUpdateProperties; + tags?: Record; +} + +// @public +export interface PoolUpdateProperties { + agentProfile?: AgentProfileUnion; + devCenterProjectResourceId?: string; + fabricProfile?: FabricProfileUnion; + maximumConcurrency?: number; + organizationProfile?: OrganizationProfileUnion; + provisioningState?: ProvisioningState; +} + +// @public +export type PredictionPreference = string; + +// @public +export type ProvisioningState = string; + +// @public +export interface ProxyResource extends Resource { +} + +// @public +export interface Quota { + currentValue: number; + id: string; + limit: number; + readonly name?: QuotaName; + unit: string; +} + +// @public +export interface QuotaName { + localizedValue?: string; + value?: string; +} + +// @public +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public +export interface ResourceDetailsObject extends ProxyResource { + properties?: ResourceDetailsObjectProperties; +} + +// @public +export interface ResourceDetailsObjectProperties { + image: string; + imageVersion: string; + status: ResourceStatus; +} + +// @public +export interface ResourcePredictions { +} + +// @public +export interface ResourcePredictionsProfile { + kind: ResourcePredictionsProfileType; +} + +// @public +export type ResourcePredictionsProfileType = string; + +// @public +export type ResourcePredictionsProfileUnion = ManualResourcePredictionsProfile | AutomaticResourcePredictionsProfile | ResourcePredictionsProfile; + +// @public +export interface ResourceSku extends ProxyResource { + properties?: ResourceSkuProperties; +} + +// @public +export interface ResourceSkuCapabilities { + name: string; + value: string; +} + +// @public +export interface ResourceSkuLocationInfo { + location: string; + zoneDetails: ResourceSkuZoneDetails[]; + zones: string[]; +} + +// @public +export interface ResourceSkuProperties { + capabilities: ResourceSkuCapabilities[]; + family: string; + locationInfo: ResourceSkuLocationInfo[]; + locations: string[]; + resourceType: string; + restrictions: ResourceSkuRestrictions[]; + size: string; + tier: string; +} + +// @public +export interface ResourceSkuRestrictionInfo { + locations?: string[]; + zones?: string[]; +} + +// @public +export interface ResourceSkuRestrictions { + reasonCode?: ResourceSkuRestrictionsReasonCode; + restrictionInfo: ResourceSkuRestrictionInfo; + type?: ResourceSkuRestrictionsType; + values: string[]; +} + +// @public +export type ResourceSkuRestrictionsReasonCode = string; + +// @public +export type ResourceSkuRestrictionsType = string; + +// @public +export interface ResourceSkuZoneDetails { + capabilities: ResourceSkuCapabilities[]; + name: string[]; +} + +// @public +export type ResourceStatus = string; + +// @public +export interface SecretsManagementSettings { + certificateStoreLocation?: string; + keyExportable: boolean; + observedCertificates: string[]; +} + +// @public +export interface Stateful extends AgentProfile { + gracePeriodTimeSpan?: string; + kind: "Stateful"; + maxAgentLifetime?: string; +} + +// @public +export interface StatelessAgentProfile extends AgentProfile { + kind: "Stateless"; +} + +// @public +export type StorageAccountType = string; + +// @public +export interface StorageProfile { + dataDisks?: DataDisk[]; + osDiskStorageAccountType?: OsDiskStorageAccountType; +} + +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface TrackedResource extends Resource { + location: string; + tags?: Record; +} + +// @public +export interface UserAssignedIdentity { + readonly clientId?: string; + readonly principalId?: string; +} + +// @public +export interface VmssFabricProfile extends FabricProfile { + images: PoolImage[]; + kind: "Vmss"; + networkProfile?: NetworkProfile; + osProfile?: OsProfile; + sku: DevOpsAzureSku; + storageProfile?: StorageProfile; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/review/arm-devopsinfrastructure.api.md b/sdk/devopsinfrastructure/arm-devopsinfrastructure/review/arm-devopsinfrastructure.api.md index 4388eada01ce..dad1de7456fb 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/review/arm-devopsinfrastructure.api.md +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/review/arm-devopsinfrastructure.api.md @@ -4,34 +4,27 @@ ```ts -import * as coreAuth from '@azure/core-auth'; -import * as coreClient from '@azure/core-client'; +import { AbortSignalLike } from '@azure/abort-controller'; +import { ClientOptions } from '@azure-rest/core-client'; +import { OperationOptions } from '@azure-rest/core-client'; import { OperationState } from '@azure/core-lro'; -import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { SimplePollerLike } from '@azure/core-lro'; +import { PathUncheckedResponse } from '@azure-rest/core-client'; +import { Pipeline } from '@azure/core-rest-pipeline'; +import { PollerLike } from '@azure/core-lro'; +import { TokenCredential } from '@azure/core-auth'; // @public export type ActionType = string; // @public export interface AgentProfile { - kind: "Stateful" | "Stateless"; - resourcePredictions?: Record; + kind: string; + resourcePredictions?: ResourcePredictions; resourcePredictionsProfile?: ResourcePredictionsProfileUnion; } -// @public (undocumented) -export type AgentProfileUnion = AgentProfile | Stateful | StatelessAgentProfile; - // @public -export interface AgentProfileUpdate { - kind: "Stateful" | "Stateless"; - resourcePredictions?: Record; - resourcePredictionsProfile?: ResourcePredictionsProfileUpdateUnion; -} - -// @public (undocumented) -export type AgentProfileUpdateUnion = AgentProfileUpdate | StatefulUpdate | StatelessAgentProfileUpdate; +export type AgentProfileUnion = StatelessAgentProfile | Stateful | AgentProfile; // @public export interface AutomaticResourcePredictionsProfile extends ResourcePredictionsProfile { @@ -39,12 +32,6 @@ export interface AutomaticResourcePredictionsProfile extends ResourcePredictions predictionPreference?: PredictionPreference; } -// @public -export interface AutomaticResourcePredictionsProfileUpdate extends ResourcePredictionsProfileUpdate { - kind: "Automatic"; - predictionPreference?: PredictionPreference; -} - // @public export interface AzureDevOpsOrganizationProfile extends OrganizationProfile { kind: "AzureDevOps"; @@ -65,6 +52,11 @@ export type AzureDevOpsPermissionType = string; // @public export type CachingType = string; +// @public +export type ContinuablePage = TPage & { + continuationToken?: string; +}; + // @public export type CreatedByType = string; @@ -81,36 +73,30 @@ export interface DevOpsAzureSku { name: string; } -// @public -export interface ErrorAdditionalInfo { - readonly info?: Record; - readonly type?: string; -} - -// @public -export interface ErrorDetail { - readonly additionalInfo?: ErrorAdditionalInfo[]; - readonly code?: string; - readonly details?: ErrorDetail[]; - readonly message?: string; - readonly target?: string; +// @public (undocumented) +export class DevOpsInfrastructureClient { + constructor(credential: TokenCredential, subscriptionId: string, options?: DevOpsInfrastructureClientOptionalParams); + readonly imageVersions: ImageVersionsOperations; + readonly operations: OperationsOperations; + readonly pipeline: Pipeline; + readonly pools: PoolsOperations; + readonly resourceDetails: ResourceDetailsOperations; + readonly sku: SkuOperations; + readonly subscriptionUsages: SubscriptionUsagesOperations; } // @public -export interface ErrorResponse { - error?: ErrorDetail; +export interface DevOpsInfrastructureClientOptionalParams extends ClientOptions { + apiVersion?: string; } // @public export interface FabricProfile { - kind: "Vmss"; + kind: string; } -// @public (undocumented) -export type FabricProfileUnion = FabricProfile | VmssFabricProfile; - // @public -export function getContinuationToken(page: unknown): string | undefined; +export type FabricProfileUnion = VmssFabricProfile | FabricProfile; // @public export interface GitHubOrganization { @@ -129,36 +115,20 @@ export interface ImageVersion extends ProxyResource { properties?: ImageVersionProperties; } -// @public -export interface ImageVersionListResult { - nextLink?: string; - value: ImageVersion[]; -} - // @public export interface ImageVersionProperties { version: string; } // @public -export interface ImageVersions { - listByImage(resourceGroupName: string, imageName: string, options?: ImageVersionsListByImageOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ImageVersionsListByImageNextOptionalParams extends coreClient.OperationOptions { +export interface ImageVersionsListByImageOptionalParams extends OperationOptions { } // @public -export type ImageVersionsListByImageNextResponse = ImageVersionListResult; - -// @public -export interface ImageVersionsListByImageOptionalParams extends coreClient.OperationOptions { +export interface ImageVersionsOperations { + listByImage: (resourceGroupName: string, imageName: string, options?: ImageVersionsListByImageOptionalParams) => PagedAsyncIterableIterator; } -// @public -export type ImageVersionsListByImageResponse = ImageVersionListResult; - // @public export enum KnownActionType { Internal = "Internal" @@ -272,51 +242,24 @@ export enum KnownStorageAccountType { PremiumLRS = "Premium_LRS", PremiumZRS = "Premium_ZRS", StandardLRS = "Standard_LRS", - StandardSsdlrs = "StandardSSD_LRS", - StandardSsdzrs = "StandardSSD_ZRS" + StandardSSDLRS = "StandardSSD_LRS", + StandardSSDZRS = "StandardSSD_ZRS" } // @public -export type LogonType = string; - -// @public (undocumented) -export class ManagedDevOpsInfrastructure extends coreClient.ServiceClient { - // (undocumented) - $host: string; - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagedDevOpsInfrastructureOptionalParams); - // (undocumented) - apiVersion: string; - // (undocumented) - imageVersions: ImageVersions; - // (undocumented) - operations: Operations; - // (undocumented) - pools: Pools; - // (undocumented) - resourceDetails: ResourceDetails; - // (undocumented) - sku: Sku; - // (undocumented) - subscriptionId: string; - // (undocumented) - subscriptionUsages: SubscriptionUsages; -} - -// @public -export interface ManagedDevOpsInfrastructureOptionalParams extends coreClient.ServiceClientOptions { - $host?: string; - apiVersion?: string; - endpoint?: string; +export enum KnownVersions { + "V2024-10-19" = "2024-10-19" } +// @public +export type LogonType = string; + // @public export interface ManagedServiceIdentity { readonly principalId?: string; readonly tenantId?: string; type: ManagedServiceIdentityType; - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentity | null; - }; + userAssignedIdentities?: Record; } // @public @@ -327,11 +270,6 @@ export interface ManualResourcePredictionsProfile extends ResourcePredictionsPro kind: "Manual"; } -// @public -export interface ManualResourcePredictionsProfileUpdate extends ResourcePredictionsProfileUpdate { - kind: "Manual"; -} - // @public export interface NetworkProfile { subnetId: string; @@ -339,8 +277,8 @@ export interface NetworkProfile { // @public export interface Operation { - readonly actionType?: ActionType; - display?: OperationDisplay; + actionType?: ActionType; + readonly display?: OperationDisplay; readonly isDataAction?: boolean; readonly name?: string; readonly origin?: Origin; @@ -355,30 +293,14 @@ export interface OperationDisplay { } // @public -export interface OperationListResult { - readonly nextLink?: string; - readonly value?: Operation[]; -} - -// @public -export interface Operations { - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; +export interface OperationsListOptionalParams extends OperationOptions { } // @public -export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { +export interface OperationsOperations { + list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator; } -// @public -export type OperationsListNextResponse = OperationListResult; - -// @public -export interface OperationsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationsListResponse = OperationListResult; - // @public export interface Organization { parallelism?: number; @@ -388,11 +310,11 @@ export interface Organization { // @public export interface OrganizationProfile { - kind: "AzureDevOps" | "GitHub"; + kind: string; } -// @public (undocumented) -export type OrganizationProfileUnion = OrganizationProfile | AzureDevOpsOrganizationProfile | GitHubOrganizationProfile; +// @public +export type OrganizationProfileUnion = GitHubOrganizationProfile | AzureDevOpsOrganizationProfile | OrganizationProfile; // @public export type Origin = string; @@ -406,6 +328,18 @@ export interface OsProfile { secretsManagementSettings?: SecretsManagementSettings; } +// @public +export interface PagedAsyncIterableIterator { + [Symbol.asyncIterator](): PagedAsyncIterableIterator; + byPage: (settings?: TPageSettings) => AsyncIterableIterator>; + next(): Promise>; +} + +// @public +export interface PageSettings { + continuationToken?: string; +} + // @public export interface Pool extends TrackedResource { identity?: ManagedServiceIdentity; @@ -420,12 +354,6 @@ export interface PoolImage { wellKnownImageName?: string; } -// @public -export interface PoolListResult { - nextLink?: string; - value: Pool[]; -} - // @public export interface PoolProperties { agentProfile: AgentProfileUnion; @@ -437,109 +365,52 @@ export interface PoolProperties { } // @public -export interface Pools { - beginCreateOrUpdate(resourceGroupName: string, poolName: string, resource: Pool, options?: PoolsCreateOrUpdateOptionalParams): Promise, PoolsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, poolName: string, resource: Pool, options?: PoolsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, poolName: string, options?: PoolsDeleteOptionalParams): Promise, PoolsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, poolName: string, options?: PoolsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, poolName: string, properties: PoolUpdate, options?: PoolsUpdateOptionalParams): Promise, PoolsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, poolName: string, properties: PoolUpdate, options?: PoolsUpdateOptionalParams): Promise; - get(resourceGroupName: string, poolName: string, options?: PoolsGetOptionalParams): Promise; - listByResourceGroup(resourceGroupName: string, options?: PoolsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySubscription(options?: PoolsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface PoolsCreateOrUpdateHeaders { - retryAfter?: number; -} - -// @public -export interface PoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; +export interface PoolsCreateOrUpdateOptionalParams extends OperationOptions { updateIntervalInMs?: number; } // @public -export type PoolsCreateOrUpdateResponse = Pool; - -// @public -export interface PoolsDeleteHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface PoolsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; +export interface PoolsDeleteOptionalParams extends OperationOptions { updateIntervalInMs?: number; } // @public -export type PoolsDeleteResponse = PoolsDeleteHeaders; - -// @public -export interface PoolsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PoolsGetResponse = Pool; - -// @public -export interface PoolsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type PoolsListByResourceGroupNextResponse = PoolListResult; - -// @public -export interface PoolsListByResourceGroupOptionalParams extends coreClient.OperationOptions { +export interface PoolsGetOptionalParams extends OperationOptions { } // @public -export type PoolsListByResourceGroupResponse = PoolListResult; - -// @public -export interface PoolsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +export interface PoolsListByResourceGroupOptionalParams extends OperationOptions { } // @public -export type PoolsListBySubscriptionNextResponse = PoolListResult; - -// @public -export interface PoolsListBySubscriptionOptionalParams extends coreClient.OperationOptions { +export interface PoolsListBySubscriptionOptionalParams extends OperationOptions { } // @public -export type PoolsListBySubscriptionResponse = PoolListResult; - -// @public -export interface PoolsUpdateHeaders { - location?: string; - retryAfter?: number; +export interface PoolsOperations { + createOrUpdate: (resourceGroupName: string, poolName: string, resource: Pool, options?: PoolsCreateOrUpdateOptionalParams) => PollerLike, Pool>; + delete: (resourceGroupName: string, poolName: string, options?: PoolsDeleteOptionalParams) => PollerLike, void>; + get: (resourceGroupName: string, poolName: string, options?: PoolsGetOptionalParams) => Promise; + listByResourceGroup: (resourceGroupName: string, options?: PoolsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; + listBySubscription: (options?: PoolsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; + update: (resourceGroupName: string, poolName: string, properties: PoolUpdate, options?: PoolsUpdateOptionalParams) => PollerLike, Pool>; } // @public -export interface PoolsUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; +export interface PoolsUpdateOptionalParams extends OperationOptions { updateIntervalInMs?: number; } -// @public -export type PoolsUpdateResponse = Pool; - // @public export interface PoolUpdate { identity?: ManagedServiceIdentity; properties?: PoolUpdateProperties; - tags?: { - [propertyName: string]: string; - }; + tags?: Record; } // @public export interface PoolUpdateProperties { - agentProfile?: AgentProfileUpdateUnion; + agentProfile?: AgentProfileUnion; devCenterProjectResourceId?: string; fabricProfile?: FabricProfileUnion; maximumConcurrency?: number; @@ -558,14 +429,12 @@ export interface ProxyResource extends Resource { } // @public -export interface Quota extends ProxyResource { - properties?: QuotaProperties; -} - -// @public -export interface QuotaListResult { - nextLink?: string; - value: Quota[]; +export interface Quota { + currentValue: number; + id: string; + limit: number; + readonly name?: QuotaName; + unit: string; } // @public @@ -574,14 +443,6 @@ export interface QuotaName { value?: string; } -// @public -export interface QuotaProperties { - currentValue: number; - limit: number; - name: QuotaName; - unit: string; -} - // @public export interface Resource { readonly id?: string; @@ -591,35 +452,14 @@ export interface Resource { } // @public -export interface ResourceDetails { - listByPool(resourceGroupName: string, poolName: string, options?: ResourceDetailsListByPoolOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ResourceDetailsListByPoolNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ResourceDetailsListByPoolNextResponse = ResourceDetailsObjectListResult; - -// @public -export interface ResourceDetailsListByPoolOptionalParams extends coreClient.OperationOptions { +export interface ResourceDetailsListByPoolOptionalParams extends OperationOptions { } -// @public -export type ResourceDetailsListByPoolResponse = ResourceDetailsObjectListResult; - // @public export interface ResourceDetailsObject extends ProxyResource { properties?: ResourceDetailsObjectProperties; } -// @public -export interface ResourceDetailsObjectListResult { - nextLink?: string; - value: ResourceDetailsObject[]; -} - // @public export interface ResourceDetailsObjectProperties { image: string; @@ -628,23 +468,24 @@ export interface ResourceDetailsObjectProperties { } // @public -export interface ResourcePredictionsProfile { - kind: "Automatic" | "Manual"; +export interface ResourceDetailsOperations { + listByPool: (resourceGroupName: string, poolName: string, options?: ResourceDetailsListByPoolOptionalParams) => PagedAsyncIterableIterator; } // @public -export type ResourcePredictionsProfileType = string; - -// @public (undocumented) -export type ResourcePredictionsProfileUnion = ResourcePredictionsProfile | AutomaticResourcePredictionsProfile | ManualResourcePredictionsProfile; +export interface ResourcePredictions { +} // @public -export interface ResourcePredictionsProfileUpdate { - kind: "Automatic" | "Manual"; +export interface ResourcePredictionsProfile { + kind: ResourcePredictionsProfileType; } -// @public (undocumented) -export type ResourcePredictionsProfileUpdateUnion = ResourcePredictionsProfileUpdate | AutomaticResourcePredictionsProfileUpdate | ManualResourcePredictionsProfileUpdate; +// @public +export type ResourcePredictionsProfileType = string; + +// @public +export type ResourcePredictionsProfileUnion = ManualResourcePredictionsProfile | AutomaticResourcePredictionsProfile | ResourcePredictionsProfile; // @public export interface ResourceSku extends ProxyResource { @@ -657,12 +498,6 @@ export interface ResourceSkuCapabilities { value: string; } -// @public -export interface ResourceSkuListResult { - nextLink?: string; - value: ResourceSku[]; -} - // @public export interface ResourceSkuLocationInfo { location: string; @@ -711,6 +546,16 @@ export interface ResourceSkuZoneDetails { // @public export type ResourceStatus = string; +// @public +export function restorePoller(client: DevOpsInfrastructureClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike, TResult>, options?: RestorePollerOptions): PollerLike, TResult>; + +// @public (undocumented) +export interface RestorePollerOptions extends OperationOptions { + abortSignal?: AbortSignalLike; + processResponseBody?: (result: TResponse) => Promise; + updateIntervalInMs?: number; +} + // @public export interface SecretsManagementSettings { certificateStoreLocation?: string; @@ -719,24 +564,14 @@ export interface SecretsManagementSettings { } // @public -export interface Sku { - listByLocation(locationName: string, options?: SkuListByLocationOptionalParams): PagedAsyncIterableIterator; +export interface SkuListByLocationOptionalParams extends OperationOptions { } // @public -export interface SkuListByLocationNextOptionalParams extends coreClient.OperationOptions { +export interface SkuOperations { + listByLocation: (locationName: string, options?: SkuListByLocationOptionalParams) => PagedAsyncIterableIterator; } -// @public -export type SkuListByLocationNextResponse = ResourceSkuListResult; - -// @public -export interface SkuListByLocationOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type SkuListByLocationResponse = ResourceSkuListResult; - // @public export interface Stateful extends AgentProfile { gracePeriodTimeSpan?: string; @@ -744,23 +579,11 @@ export interface Stateful extends AgentProfile { maxAgentLifetime?: string; } -// @public -export interface StatefulUpdate extends AgentProfileUpdate { - gracePeriodTimeSpan?: string; - kind: "Stateful"; - maxAgentLifetime?: string; -} - // @public export interface StatelessAgentProfile extends AgentProfile { kind: "Stateless"; } -// @public -export interface StatelessAgentProfileUpdate extends AgentProfileUpdate { - kind: "Stateless"; -} - // @public export type StorageAccountType = string; @@ -771,24 +594,14 @@ export interface StorageProfile { } // @public -export interface SubscriptionUsages { - listByLocation(locationName: string, options?: SubscriptionUsagesListByLocationOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface SubscriptionUsagesListByLocationNextOptionalParams extends coreClient.OperationOptions { +export interface SubscriptionUsagesOperations { + usages: (location: string, options?: SubscriptionUsagesUsagesOptionalParams) => PagedAsyncIterableIterator; } // @public -export type SubscriptionUsagesListByLocationNextResponse = QuotaListResult; - -// @public -export interface SubscriptionUsagesListByLocationOptionalParams extends coreClient.OperationOptions { +export interface SubscriptionUsagesUsagesOptionalParams extends OperationOptions { } -// @public -export type SubscriptionUsagesListByLocationResponse = QuotaListResult; - // @public export interface SystemData { createdAt?: Date; @@ -802,9 +615,7 @@ export interface SystemData { // @public export interface TrackedResource extends Resource { location: string; - tags?: { - [propertyName: string]: string; - }; + tags?: Record; } // @public diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/sample.env b/sdk/devopsinfrastructure/arm-devopsinfrastructure/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/sample.env +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/imageVersionsListByImageSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/imageVersionsListByImageSample.ts index a7c2d0df1e33..cca0febce861 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/imageVersionsListByImageSample.ts +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/imageVersionsListByImageSample.ts @@ -1,41 +1,24 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; -dotenv.config(); +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; /** - * This sample demonstrates how to List ImageVersion resources by Image + * This sample demonstrates how to list ImageVersion resources by Image * - * @summary List ImageVersion resources by Image - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ImageVersions_ListByImage.json + * @summary list ImageVersion resources by Image + * x-ms-original-file: 2024-10-19/ImageVersions_ListByImage.json */ async function imageVersionsListByImage() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "my-resource-group"; - const imageName = "windows-2022"; const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.imageVersions.listByImage( - resourceGroupName, - imageName, - )) { + for await (let item of client.imageVersions.listByImage("my-resource-group", "windows-2022")) { resArray.push(item); } + console.log(resArray); } diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/operationsListSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/operationsListSample.ts index 846ffb10bf1d..2e635c0c30b5 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/operationsListSample.ts +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/operationsListSample.ts @@ -1,35 +1,24 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; -dotenv.config(); +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; /** - * This sample demonstrates how to List the operations for the provider + * This sample demonstrates how to list the operations for the provider * - * @summary List the operations for the provider - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListOperations.json + * @summary list the operations for the provider + * x-ms-original-file: 2024-10-19/ListOperations.json */ async function operationsList() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); + const subscriptionId = "00000000-0000-0000-0000-00000000000"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.operations.list()) { resArray.push(item); } + console.log(resArray); } diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsCreateOrUpdateSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsCreateOrUpdateSample.ts index 42520866fe49..af1b823344d1 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsCreateOrUpdateSample.ts +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsCreateOrUpdateSample.ts @@ -1,66 +1,42 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { - Pool, - ManagedDevOpsInfrastructure, -} from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; -dotenv.config(); +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; /** - * This sample demonstrates how to Create a Pool + * This sample demonstrates how to create a Pool * - * @summary Create a Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/CreateOrUpdatePool.json + * @summary create a Pool + * x-ms-original-file: 2024-10-19/CreateOrUpdatePool.json */ async function poolsCreateOrUpdate() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const poolName = "pool"; - const resource: Pool = { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const result = await client.pools.createOrUpdate("rg", "pool", { location: "eastus", properties: { - agentProfile: { kind: "Stateless" }, + provisioningState: "Succeeded", + maximumConcurrency: 10, devCenterProjectResourceId: "/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES", + organizationProfile: { + kind: "AzureDevOps", + organizations: [{ url: "https://mseng.visualstudio.com" }], + }, + agentProfile: { kind: "Stateless" }, fabricProfile: { + kind: "Vmss", + sku: { name: "Standard_D4ads_v5" }, images: [ { - resourceId: - "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest", + resourceId: "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest", }, ], - kind: "Vmss", - sku: { name: "Standard_D4ads_v5" }, - }, - maximumConcurrency: 10, - organizationProfile: { - kind: "AzureDevOps", - organizations: [{ url: "https://mseng.visualstudio.com" }], }, - provisioningState: "Succeeded", }, - }; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const result = await client.pools.beginCreateOrUpdateAndWait( - resourceGroupName, - poolName, - resource, - ); + }); console.log(result); } diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsDeleteSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsDeleteSample.ts index 44d67f65c6c5..87595f8657b6 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsDeleteSample.ts +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsDeleteSample.ts @@ -1,39 +1,20 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; -dotenv.config(); +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; /** - * This sample demonstrates how to Delete a Pool + * This sample demonstrates how to delete a Pool * - * @summary Delete a Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/DeletePool.json + * @summary delete a Pool + * x-ms-original-file: 2024-10-19/DeletePool.json */ async function poolsDelete() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const poolName = "pool"; const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const result = await client.pools.beginDeleteAndWait( - resourceGroupName, - poolName, - ); - console.log(result); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + await client.pools.delete("rg", "pool"); } async function main() { diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsGetSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsGetSample.ts index 084268dadec2..fb0c07d2b276 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsGetSample.ts +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsGetSample.ts @@ -1,35 +1,20 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; -dotenv.config(); +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; /** - * This sample demonstrates how to Get a Pool + * This sample demonstrates how to get a Pool * - * @summary Get a Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/GetPool.json + * @summary get a Pool + * x-ms-original-file: 2024-10-19/GetPool.json */ async function poolsGet() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const poolName = "pool"; const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const result = await client.pools.get(resourceGroupName, poolName); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const result = await client.pools.get("rg", "pool"); console.log(result); } diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsListByResourceGroupSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsListByResourceGroupSample.ts index 7b6581b337e5..4035863afbf4 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsListByResourceGroupSample.ts +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsListByResourceGroupSample.ts @@ -1,37 +1,24 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; -dotenv.config(); +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; /** - * This sample demonstrates how to List Pool resources by resource group + * This sample demonstrates how to list Pool resources by resource group * - * @summary List Pool resources by resource group - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListPoolsBySubscriptionAndResourceGroup.json + * @summary list Pool resources by resource group + * x-ms-original-file: 2024-10-19/ListPoolsBySubscriptionAndResourceGroup.json */ async function poolsListByResourceGroup() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.pools.listByResourceGroup(resourceGroupName)) { + for await (let item of client.pools.listByResourceGroup("rg")) { resArray.push(item); } + console.log(resArray); } diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsListBySubscriptionSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsListBySubscriptionSample.ts index c6d553e58304..03a24f19eb0f 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsListBySubscriptionSample.ts +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsListBySubscriptionSample.ts @@ -1,35 +1,24 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; -dotenv.config(); +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; /** - * This sample demonstrates how to List Pool resources by subscription ID + * This sample demonstrates how to list Pool resources by subscription ID * - * @summary List Pool resources by subscription ID - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListPoolsBySubscription.json + * @summary list Pool resources by subscription ID + * x-ms-original-file: 2024-10-19/ListPoolsBySubscription.json */ async function poolsListBySubscription() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.pools.listBySubscription()) { resArray.push(item); } + console.log(resArray); } diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsUpdateSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsUpdateSample.ts index 29706aa1d3a8..816fd95181c9 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsUpdateSample.ts +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/poolsUpdateSample.ts @@ -1,43 +1,20 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { - PoolUpdate, - ManagedDevOpsInfrastructure, -} from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; -dotenv.config(); +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; /** - * This sample demonstrates how to Update a Pool + * This sample demonstrates how to update a Pool * - * @summary Update a Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/UpdatePool.json + * @summary update a Pool + * x-ms-original-file: 2024-10-19/UpdatePool.json */ async function poolsUpdate() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const poolName = "pool"; - const properties: PoolUpdate = {}; const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const result = await client.pools.beginUpdateAndWait( - resourceGroupName, - poolName, - properties, - ); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const result = await client.pools.update("rg", "pool", {}); console.log(result); } diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/resourceDetailsListByPoolSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/resourceDetailsListByPoolSample.ts index eb551fd80ed8..f58df9ceda8c 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/resourceDetailsListByPoolSample.ts +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/resourceDetailsListByPoolSample.ts @@ -1,41 +1,27 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; -dotenv.config(); +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; /** - * This sample demonstrates how to List ResourceDetailsObject resources by Pool + * This sample demonstrates how to list ResourceDetailsObject resources by Pool * - * @summary List ResourceDetailsObject resources by Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ResourceDetails_ListByPool.json + * @summary list ResourceDetailsObject resources by Pool + * x-ms-original-file: 2024-10-19/ResourceDetails_ListByPool.json */ async function resourceDetailsListByPool() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "my-resource-group"; - const poolName = "my-dev-ops-pool"; const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.resourceDetails.listByPool( - resourceGroupName, - poolName, + "my-resource-group", + "my-dev-ops-pool", )) { resArray.push(item); } + console.log(resArray); } diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/skuListByLocationSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/skuListByLocationSample.ts index 3d74e7f9c164..c97fb9cc7434 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/skuListByLocationSample.ts +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/skuListByLocationSample.ts @@ -1,36 +1,24 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; -dotenv.config(); +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; /** - * This sample demonstrates how to List ResourceSku resources by subscription ID + * This sample demonstrates how to list ResourceSku resources by subscription ID * - * @summary List ResourceSku resources by subscription ID - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/Sku_ListByLocation.json + * @summary list ResourceSku resources by subscription ID + * x-ms-original-file: 2024-10-19/Sku_ListByLocation.json */ async function skuListByLocation() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const locationName = "eastus"; const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.sku.listByLocation(locationName)) { + for await (let item of client.sku.listByLocation("eastus")) { resArray.push(item); } + console.log(resArray); } diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/subscriptionUsagesListByLocationSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/subscriptionUsagesListByLocationSample.ts deleted file mode 100644 index 1e49a721ca07..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/subscriptionUsagesListByLocationSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Quota resources by subscription ID - * - * @summary List Quota resources by subscription ID - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/SubscriptionUsages_ListByLocation.json - */ -async function subscriptionUsagesListByLocation() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const locationName = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.subscriptionUsages.listByLocation( - locationName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - subscriptionUsagesListByLocation(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/subscriptionUsagesUsagesSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/subscriptionUsagesUsagesSample.ts new file mode 100644 index 000000000000..52442b03de2f --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples-dev/subscriptionUsagesUsagesSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list Quota resources by subscription ID + * + * @summary list Quota resources by subscription ID + * x-ms-original-file: 2024-10-19/SubscriptionUsages_Usages.json + */ +async function subscriptionUsagesUsages() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.subscriptionUsages.usages("eastus")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + subscriptionUsagesUsages(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/README.md b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/README.md deleted file mode 100644 index f814895bce7d..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/README.md +++ /dev/null @@ -1,70 +0,0 @@ -# client library samples for JavaScript (Beta) - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [imageVersionsListByImageSample.js][imageversionslistbyimagesample] | List ImageVersion resources by Image x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ImageVersions_ListByImage.json | -| [operationsListSample.js][operationslistsample] | List the operations for the provider x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListOperations.json | -| [poolsCreateOrUpdateSample.js][poolscreateorupdatesample] | Create a Pool x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/CreateOrUpdatePool.json | -| [poolsDeleteSample.js][poolsdeletesample] | Delete a Pool x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/DeletePool.json | -| [poolsGetSample.js][poolsgetsample] | Get a Pool x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/GetPool.json | -| [poolsListByResourceGroupSample.js][poolslistbyresourcegroupsample] | List Pool resources by resource group x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListPoolsBySubscriptionAndResourceGroup.json | -| [poolsListBySubscriptionSample.js][poolslistbysubscriptionsample] | List Pool resources by subscription ID x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListPoolsBySubscription.json | -| [poolsUpdateSample.js][poolsupdatesample] | Update a Pool x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/UpdatePool.json | -| [resourceDetailsListByPoolSample.js][resourcedetailslistbypoolsample] | List ResourceDetailsObject resources by Pool x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ResourceDetails_ListByPool.json | -| [skuListByLocationSample.js][skulistbylocationsample] | List ResourceSku resources by subscription ID x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/Sku_ListByLocation.json | -| [subscriptionUsagesListByLocationSample.js][subscriptionusageslistbylocationsample] | List Quota resources by subscription ID x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/SubscriptionUsages_ListByLocation.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node imageVersionsListByImageSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID="" DEVOPSINFRASTRUCTURE_RESOURCE_GROUP="" node imageVersionsListByImageSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[imageversionslistbyimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/imageVersionsListByImageSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/operationsListSample.js -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsCreateOrUpdateSample.js -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsDeleteSample.js -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsGetSample.js -[poolslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsListByResourceGroupSample.js -[poolslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsListBySubscriptionSample.js -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsUpdateSample.js -[resourcedetailslistbypoolsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/resourceDetailsListByPoolSample.js -[skulistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/skuListByLocationSample.js -[subscriptionusageslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/subscriptionUsagesListByLocationSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-devopsinfrastructure?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/README.md diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/imageVersionsListByImageSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/imageVersionsListByImageSample.js deleted file mode 100644 index bd3e938e7541..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/imageVersionsListByImageSample.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ManagedDevOpsInfrastructure } = require("@azure/arm-devopsinfrastructure"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List ImageVersion resources by Image - * - * @summary List ImageVersion resources by Image - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ImageVersions_ListByImage.json - */ -async function imageVersionsListByImage() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "my-resource-group"; - const imageName = "windows-2022"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.imageVersions.listByImage(resourceGroupName, imageName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - imageVersionsListByImage(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/operationsListSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/operationsListSample.js deleted file mode 100644 index 5ca6398534a7..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/operationsListSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ManagedDevOpsInfrastructure } = require("@azure/arm-devopsinfrastructure"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListOperations.json - */ -async function operationsList() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - operationsList(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/package.json b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/package.json deleted file mode 100644 index 4dc6ffdfe514..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-devopsinfrastructure-js-beta", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/devopsinfrastructure/arm-devopsinfrastructure" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure", - "dependencies": { - "@azure/arm-devopsinfrastructure": "next", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - } -} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsCreateOrUpdateSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsCreateOrUpdateSample.js deleted file mode 100644 index 8dd4de26181a..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsCreateOrUpdateSample.js +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ManagedDevOpsInfrastructure } = require("@azure/arm-devopsinfrastructure"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a Pool - * - * @summary Create a Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/CreateOrUpdatePool.json - */ -async function poolsCreateOrUpdate() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const poolName = "pool"; - const resource = { - location: "eastus", - properties: { - agentProfile: { kind: "Stateless" }, - devCenterProjectResourceId: - "/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES", - fabricProfile: { - images: [ - { - resourceId: "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest", - }, - ], - kind: "Vmss", - sku: { name: "Standard_D4ads_v5" }, - }, - maximumConcurrency: 10, - organizationProfile: { - kind: "AzureDevOps", - organizations: [{ url: "https://mseng.visualstudio.com" }], - }, - provisioningState: "Succeeded", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const result = await client.pools.beginCreateOrUpdateAndWait( - resourceGroupName, - poolName, - resource, - ); - console.log(result); -} - -async function main() { - poolsCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsDeleteSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsDeleteSample.js deleted file mode 100644 index 18e1ab7ec39b..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ManagedDevOpsInfrastructure } = require("@azure/arm-devopsinfrastructure"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a Pool - * - * @summary Delete a Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/DeletePool.json - */ -async function poolsDelete() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const poolName = "pool"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const result = await client.pools.beginDeleteAndWait(resourceGroupName, poolName); - console.log(result); -} - -async function main() { - poolsDelete(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsGetSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsGetSample.js deleted file mode 100644 index 2a40721aad7b..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ManagedDevOpsInfrastructure } = require("@azure/arm-devopsinfrastructure"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a Pool - * - * @summary Get a Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/GetPool.json - */ -async function poolsGet() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const poolName = "pool"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const result = await client.pools.get(resourceGroupName, poolName); - console.log(result); -} - -async function main() { - poolsGet(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsListByResourceGroupSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsListByResourceGroupSample.js deleted file mode 100644 index 8864a90b07f3..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ManagedDevOpsInfrastructure } = require("@azure/arm-devopsinfrastructure"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List Pool resources by resource group - * - * @summary List Pool resources by resource group - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListPoolsBySubscriptionAndResourceGroup.json - */ -async function poolsListByResourceGroup() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.pools.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - poolsListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsListBySubscriptionSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsListBySubscriptionSample.js deleted file mode 100644 index 35c3d84dc38f..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ManagedDevOpsInfrastructure } = require("@azure/arm-devopsinfrastructure"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List Pool resources by subscription ID - * - * @summary List Pool resources by subscription ID - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListPoolsBySubscription.json - */ -async function poolsListBySubscription() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.pools.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - poolsListBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsUpdateSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsUpdateSample.js deleted file mode 100644 index 7cd768ed1bb7..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/poolsUpdateSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ManagedDevOpsInfrastructure } = require("@azure/arm-devopsinfrastructure"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update a Pool - * - * @summary Update a Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/UpdatePool.json - */ -async function poolsUpdate() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const poolName = "pool"; - const properties = {}; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const result = await client.pools.beginUpdateAndWait(resourceGroupName, poolName, properties); - console.log(result); -} - -async function main() { - poolsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/resourceDetailsListByPoolSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/resourceDetailsListByPoolSample.js deleted file mode 100644 index 4ef908856929..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/resourceDetailsListByPoolSample.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ManagedDevOpsInfrastructure } = require("@azure/arm-devopsinfrastructure"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List ResourceDetailsObject resources by Pool - * - * @summary List ResourceDetailsObject resources by Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ResourceDetails_ListByPool.json - */ -async function resourceDetailsListByPool() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "my-resource-group"; - const poolName = "my-dev-ops-pool"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.resourceDetails.listByPool(resourceGroupName, poolName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - resourceDetailsListByPool(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/sample.env b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/skuListByLocationSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/skuListByLocationSample.js deleted file mode 100644 index e5a14c504c46..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/skuListByLocationSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ManagedDevOpsInfrastructure } = require("@azure/arm-devopsinfrastructure"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List ResourceSku resources by subscription ID - * - * @summary List ResourceSku resources by subscription ID - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/Sku_ListByLocation.json - */ -async function skuListByLocation() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const locationName = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.sku.listByLocation(locationName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - skuListByLocation(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/subscriptionUsagesListByLocationSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/subscriptionUsagesListByLocationSample.js deleted file mode 100644 index 18e96f2168c4..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/javascript/subscriptionUsagesListByLocationSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { ManagedDevOpsInfrastructure } = require("@azure/arm-devopsinfrastructure"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List Quota resources by subscription ID - * - * @summary List Quota resources by subscription ID - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/SubscriptionUsages_ListByLocation.json - */ -async function subscriptionUsagesListByLocation() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const locationName = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.subscriptionUsages.listByLocation(locationName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - subscriptionUsagesListByLocation(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/README.md b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/README.md deleted file mode 100644 index 2019da9785e7..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/README.md +++ /dev/null @@ -1,83 +0,0 @@ -# client library samples for TypeScript (Beta) - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [imageVersionsListByImageSample.ts][imageversionslistbyimagesample] | List ImageVersion resources by Image x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ImageVersions_ListByImage.json | -| [operationsListSample.ts][operationslistsample] | List the operations for the provider x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListOperations.json | -| [poolsCreateOrUpdateSample.ts][poolscreateorupdatesample] | Create a Pool x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/CreateOrUpdatePool.json | -| [poolsDeleteSample.ts][poolsdeletesample] | Delete a Pool x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/DeletePool.json | -| [poolsGetSample.ts][poolsgetsample] | Get a Pool x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/GetPool.json | -| [poolsListByResourceGroupSample.ts][poolslistbyresourcegroupsample] | List Pool resources by resource group x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListPoolsBySubscriptionAndResourceGroup.json | -| [poolsListBySubscriptionSample.ts][poolslistbysubscriptionsample] | List Pool resources by subscription ID x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListPoolsBySubscription.json | -| [poolsUpdateSample.ts][poolsupdatesample] | Update a Pool x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/UpdatePool.json | -| [resourceDetailsListByPoolSample.ts][resourcedetailslistbypoolsample] | List ResourceDetailsObject resources by Pool x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ResourceDetails_ListByPool.json | -| [skuListByLocationSample.ts][skulistbylocationsample] | List ResourceSku resources by subscription ID x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/Sku_ListByLocation.json | -| [subscriptionUsagesListByLocationSample.ts][subscriptionusageslistbylocationsample] | List Quota resources by subscription ID x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/SubscriptionUsages_ListByLocation.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/imageVersionsListByImageSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID="" DEVOPSINFRASTRUCTURE_RESOURCE_GROUP="" node dist/imageVersionsListByImageSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[imageversionslistbyimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/imageVersionsListByImageSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/operationsListSample.ts -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsCreateOrUpdateSample.ts -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsDeleteSample.ts -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsGetSample.ts -[poolslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsListByResourceGroupSample.ts -[poolslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsListBySubscriptionSample.ts -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsUpdateSample.ts -[resourcedetailslistbypoolsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/resourceDetailsListByPoolSample.ts -[skulistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/skuListByLocationSample.ts -[subscriptionusageslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/subscriptionUsagesListByLocationSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-devopsinfrastructure?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/package.json b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/package.json deleted file mode 100644 index 52ed54ab4b7e..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-devopsinfrastructure-ts-beta", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/devopsinfrastructure/arm-devopsinfrastructure" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure", - "dependencies": { - "@azure/arm-devopsinfrastructure": "next", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.6.2", - "rimraf": "latest" - } -} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/sample.env b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/imageVersionsListByImageSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/imageVersionsListByImageSample.ts deleted file mode 100644 index a7c2d0df1e33..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/imageVersionsListByImageSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List ImageVersion resources by Image - * - * @summary List ImageVersion resources by Image - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ImageVersions_ListByImage.json - */ -async function imageVersionsListByImage() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "my-resource-group"; - const imageName = "windows-2022"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.imageVersions.listByImage( - resourceGroupName, - imageName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - imageVersionsListByImage(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/operationsListSample.ts deleted file mode 100644 index 846ffb10bf1d..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListOperations.json - */ -async function operationsList() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - operationsList(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsCreateOrUpdateSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsCreateOrUpdateSample.ts deleted file mode 100644 index 42520866fe49..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsCreateOrUpdateSample.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - Pool, - ManagedDevOpsInfrastructure, -} from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a Pool - * - * @summary Create a Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/CreateOrUpdatePool.json - */ -async function poolsCreateOrUpdate() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const poolName = "pool"; - const resource: Pool = { - location: "eastus", - properties: { - agentProfile: { kind: "Stateless" }, - devCenterProjectResourceId: - "/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES", - fabricProfile: { - images: [ - { - resourceId: - "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest", - }, - ], - kind: "Vmss", - sku: { name: "Standard_D4ads_v5" }, - }, - maximumConcurrency: 10, - organizationProfile: { - kind: "AzureDevOps", - organizations: [{ url: "https://mseng.visualstudio.com" }], - }, - provisioningState: "Succeeded", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const result = await client.pools.beginCreateOrUpdateAndWait( - resourceGroupName, - poolName, - resource, - ); - console.log(result); -} - -async function main() { - poolsCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsDeleteSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsDeleteSample.ts deleted file mode 100644 index 44d67f65c6c5..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a Pool - * - * @summary Delete a Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/DeletePool.json - */ -async function poolsDelete() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const poolName = "pool"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const result = await client.pools.beginDeleteAndWait( - resourceGroupName, - poolName, - ); - console.log(result); -} - -async function main() { - poolsDelete(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsGetSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsGetSample.ts deleted file mode 100644 index 084268dadec2..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a Pool - * - * @summary Get a Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/GetPool.json - */ -async function poolsGet() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const poolName = "pool"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const result = await client.pools.get(resourceGroupName, poolName); - console.log(result); -} - -async function main() { - poolsGet(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsListByResourceGroupSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsListByResourceGroupSample.ts deleted file mode 100644 index 7b6581b337e5..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsListByResourceGroupSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Pool resources by resource group - * - * @summary List Pool resources by resource group - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListPoolsBySubscriptionAndResourceGroup.json - */ -async function poolsListByResourceGroup() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.pools.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - poolsListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsListBySubscriptionSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsListBySubscriptionSample.ts deleted file mode 100644 index c6d553e58304..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Pool resources by subscription ID - * - * @summary List Pool resources by subscription ID - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ListPoolsBySubscription.json - */ -async function poolsListBySubscription() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.pools.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - poolsListBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsUpdateSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsUpdateSample.ts deleted file mode 100644 index 29706aa1d3a8..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/poolsUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PoolUpdate, - ManagedDevOpsInfrastructure, -} from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a Pool - * - * @summary Update a Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/UpdatePool.json - */ -async function poolsUpdate() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "rg"; - const poolName = "pool"; - const properties: PoolUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const result = await client.pools.beginUpdateAndWait( - resourceGroupName, - poolName, - properties, - ); - console.log(result); -} - -async function main() { - poolsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/resourceDetailsListByPoolSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/resourceDetailsListByPoolSample.ts deleted file mode 100644 index eb551fd80ed8..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/resourceDetailsListByPoolSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List ResourceDetailsObject resources by Pool - * - * @summary List ResourceDetailsObject resources by Pool - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/ResourceDetails_ListByPool.json - */ -async function resourceDetailsListByPool() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const resourceGroupName = - process.env["DEVOPSINFRASTRUCTURE_RESOURCE_GROUP"] || "my-resource-group"; - const poolName = "my-dev-ops-pool"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.resourceDetails.listByPool( - resourceGroupName, - poolName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - resourceDetailsListByPool(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/skuListByLocationSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/skuListByLocationSample.ts deleted file mode 100644 index 3d74e7f9c164..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/skuListByLocationSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List ResourceSku resources by subscription ID - * - * @summary List ResourceSku resources by subscription ID - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/Sku_ListByLocation.json - */ -async function skuListByLocation() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const locationName = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.sku.listByLocation(locationName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - skuListByLocation(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/subscriptionUsagesListByLocationSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/subscriptionUsagesListByLocationSample.ts deleted file mode 100644 index 1e49a721ca07..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1-beta/typescript/src/subscriptionUsagesListByLocationSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ManagedDevOpsInfrastructure } from "@azure/arm-devopsinfrastructure"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Quota resources by subscription ID - * - * @summary List Quota resources by subscription ID - * x-ms-original-file: specification/devopsinfrastructure/resource-manager/Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/examples/SubscriptionUsages_ListByLocation.json - */ -async function subscriptionUsagesListByLocation() { - const subscriptionId = - process.env["DEVOPSINFRASTRUCTURE_SUBSCRIPTION_ID"] || - "a2e95d27-c161-4b61-bda4-11512c14c2c2"; - const locationName = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new ManagedDevOpsInfrastructure(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.subscriptionUsages.listByLocation( - locationName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - subscriptionUsagesListByLocation(); -} - -main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/README.md b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/README.md new file mode 100644 index 000000000000..af547876ed71 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/README.md @@ -0,0 +1,70 @@ +# @azure/arm-devopsinfrastructure client library samples for JavaScript + +These sample programs show how to use the JavaScript client libraries for @azure/arm-devopsinfrastructure in some common scenarios. + +| **File Name** | **Description** | +| --------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| [imageVersionsListByImageSample.js][imageversionslistbyimagesample] | list ImageVersion resources by Image x-ms-original-file: 2024-10-19/ImageVersions_ListByImage.json | +| [operationsListSample.js][operationslistsample] | list the operations for the provider x-ms-original-file: 2024-10-19/ListOperations.json | +| [poolsCreateOrUpdateSample.js][poolscreateorupdatesample] | create a Pool x-ms-original-file: 2024-10-19/CreateOrUpdatePool.json | +| [poolsDeleteSample.js][poolsdeletesample] | delete a Pool x-ms-original-file: 2024-10-19/DeletePool.json | +| [poolsGetSample.js][poolsgetsample] | get a Pool x-ms-original-file: 2024-10-19/GetPool.json | +| [poolsListByResourceGroupSample.js][poolslistbyresourcegroupsample] | list Pool resources by resource group x-ms-original-file: 2024-10-19/ListPoolsBySubscriptionAndResourceGroup.json | +| [poolsListBySubscriptionSample.js][poolslistbysubscriptionsample] | list Pool resources by subscription ID x-ms-original-file: 2024-10-19/ListPoolsBySubscription.json | +| [poolsUpdateSample.js][poolsupdatesample] | update a Pool x-ms-original-file: 2024-10-19/UpdatePool.json | +| [resourceDetailsListByPoolSample.js][resourcedetailslistbypoolsample] | list ResourceDetailsObject resources by Pool x-ms-original-file: 2024-10-19/ResourceDetails_ListByPool.json | +| [skuListByLocationSample.js][skulistbylocationsample] | list ResourceSku resources by subscription ID x-ms-original-file: 2024-10-19/Sku_ListByLocation.json | +| [subscriptionUsagesUsagesSample.js][subscriptionusagesusagessample] | list Quota resources by subscription ID x-ms-original-file: 2024-10-19/SubscriptionUsages_Usages.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node imageVersionsListByImageSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env node imageVersionsListByImageSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[imageversionslistbyimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/imageVersionsListByImageSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/operationsListSample.js +[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsCreateOrUpdateSample.js +[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsDeleteSample.js +[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsGetSample.js +[poolslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsListByResourceGroupSample.js +[poolslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsListBySubscriptionSample.js +[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsUpdateSample.js +[resourcedetailslistbypoolsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/resourceDetailsListByPoolSample.js +[skulistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/skuListByLocationSample.js +[subscriptionusagesusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/subscriptionUsagesUsagesSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-devopsinfrastructure?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/README.md diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/imageVersionsListByImageSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/imageVersionsListByImageSample.js new file mode 100644 index 000000000000..33a25ed9488b --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/imageVersionsListByImageSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list ImageVersion resources by Image + * + * @summary list ImageVersion resources by Image + * x-ms-original-file: 2024-10-19/ImageVersions_ListByImage.json + */ +async function imageVersionsListByImage() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.imageVersions.listByImage("my-resource-group", "windows-2022")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + imageVersionsListByImage(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/operationsListSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/operationsListSample.js new file mode 100644 index 000000000000..e40e8657d330 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/operationsListSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list the operations for the provider + * + * @summary list the operations for the provider + * x-ms-original-file: 2024-10-19/ListOperations.json + */ +async function operationsList() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "00000000-0000-0000-0000-00000000000"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/package.json b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/package.json new file mode 100644 index 000000000000..49e019bbcbec --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/package.json @@ -0,0 +1,33 @@ +{ + "name": "@azure-samples/arm-devopsinfrastructure-js", + "private": true, + "version": "1.0.0", + "description": "@azure/arm-devopsinfrastructure client library samples for JavaScript", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/devopsinfrastructure/arm-devopsinfrastructure" + }, + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure", + "dependencies": { + "@azure/arm-devopsinfrastructure": "latest", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + } +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsCreateOrUpdateSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsCreateOrUpdateSample.js new file mode 100644 index 000000000000..47cd7328da38 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsCreateOrUpdateSample.js @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to create a Pool + * + * @summary create a Pool + * x-ms-original-file: 2024-10-19/CreateOrUpdatePool.json + */ +async function poolsCreateOrUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const result = await client.pools.createOrUpdate("rg", "pool", { + location: "eastus", + properties: { + provisioningState: "Succeeded", + maximumConcurrency: 10, + devCenterProjectResourceId: + "/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES", + organizationProfile: { + kind: "AzureDevOps", + organizations: [{ url: "https://mseng.visualstudio.com" }], + }, + agentProfile: { kind: "Stateless" }, + fabricProfile: { + kind: "Vmss", + sku: { name: "Standard_D4ads_v5" }, + images: [ + { + resourceId: "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest", + }, + ], + }, + }, + }); + console.log(result); +} + +async function main() { + poolsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsDeleteSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsDeleteSample.js new file mode 100644 index 000000000000..24258b68ec53 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsDeleteSample.js @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to delete a Pool + * + * @summary delete a Pool + * x-ms-original-file: 2024-10-19/DeletePool.json + */ +async function poolsDelete() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + await client.pools.delete("rg", "pool"); +} + +async function main() { + poolsDelete(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsGetSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsGetSample.js new file mode 100644 index 000000000000..4e4da4ddb904 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsGetSample.js @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to get a Pool + * + * @summary get a Pool + * x-ms-original-file: 2024-10-19/GetPool.json + */ +async function poolsGet() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const result = await client.pools.get("rg", "pool"); + console.log(result); +} + +async function main() { + poolsGet(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsListByResourceGroupSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsListByResourceGroupSample.js new file mode 100644 index 000000000000..31f2a0ef49b2 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsListByResourceGroupSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list Pool resources by resource group + * + * @summary list Pool resources by resource group + * x-ms-original-file: 2024-10-19/ListPoolsBySubscriptionAndResourceGroup.json + */ +async function poolsListByResourceGroup() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.pools.listByResourceGroup("rg")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + poolsListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsListBySubscriptionSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsListBySubscriptionSample.js new file mode 100644 index 000000000000..78c3ba2838c8 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsListBySubscriptionSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list Pool resources by subscription ID + * + * @summary list Pool resources by subscription ID + * x-ms-original-file: 2024-10-19/ListPoolsBySubscription.json + */ +async function poolsListBySubscription() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.pools.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + poolsListBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsUpdateSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsUpdateSample.js new file mode 100644 index 000000000000..159c071daf7a --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/poolsUpdateSample.js @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to update a Pool + * + * @summary update a Pool + * x-ms-original-file: 2024-10-19/UpdatePool.json + */ +async function poolsUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const result = await client.pools.update("rg", "pool", {}); + console.log(result); +} + +async function main() { + poolsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/resourceDetailsListByPoolSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/resourceDetailsListByPoolSample.js new file mode 100644 index 000000000000..d8548fff503f --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/resourceDetailsListByPoolSample.js @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list ResourceDetailsObject resources by Pool + * + * @summary list ResourceDetailsObject resources by Pool + * x-ms-original-file: 2024-10-19/ResourceDetails_ListByPool.json + */ +async function resourceDetailsListByPool() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.resourceDetails.listByPool( + "my-resource-group", + "my-dev-ops-pool", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + resourceDetailsListByPool(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/sample.env b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/skuListByLocationSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/skuListByLocationSample.js new file mode 100644 index 000000000000..fc9d29053daa --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/skuListByLocationSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list ResourceSku resources by subscription ID + * + * @summary list ResourceSku resources by subscription ID + * x-ms-original-file: 2024-10-19/Sku_ListByLocation.json + */ +async function skuListByLocation() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.sku.listByLocation("eastus")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + skuListByLocation(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/subscriptionUsagesUsagesSample.js b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/subscriptionUsagesUsagesSample.js new file mode 100644 index 000000000000..89301a17d02d --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/javascript/subscriptionUsagesUsagesSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list Quota resources by subscription ID + * + * @summary list Quota resources by subscription ID + * x-ms-original-file: 2024-10-19/SubscriptionUsages_Usages.json + */ +async function subscriptionUsagesUsages() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.subscriptionUsages.usages("eastus")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + subscriptionUsagesUsages(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/README.md b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/README.md new file mode 100644 index 000000000000..cc8aa2addcd1 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/README.md @@ -0,0 +1,83 @@ +# @azure/arm-devopsinfrastructure client library samples for TypeScript + +These sample programs show how to use the TypeScript client libraries for @azure/arm-devopsinfrastructure in some common scenarios. + +| **File Name** | **Description** | +| --------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| [imageVersionsListByImageSample.ts][imageversionslistbyimagesample] | list ImageVersion resources by Image x-ms-original-file: 2024-10-19/ImageVersions_ListByImage.json | +| [operationsListSample.ts][operationslistsample] | list the operations for the provider x-ms-original-file: 2024-10-19/ListOperations.json | +| [poolsCreateOrUpdateSample.ts][poolscreateorupdatesample] | create a Pool x-ms-original-file: 2024-10-19/CreateOrUpdatePool.json | +| [poolsDeleteSample.ts][poolsdeletesample] | delete a Pool x-ms-original-file: 2024-10-19/DeletePool.json | +| [poolsGetSample.ts][poolsgetsample] | get a Pool x-ms-original-file: 2024-10-19/GetPool.json | +| [poolsListByResourceGroupSample.ts][poolslistbyresourcegroupsample] | list Pool resources by resource group x-ms-original-file: 2024-10-19/ListPoolsBySubscriptionAndResourceGroup.json | +| [poolsListBySubscriptionSample.ts][poolslistbysubscriptionsample] | list Pool resources by subscription ID x-ms-original-file: 2024-10-19/ListPoolsBySubscription.json | +| [poolsUpdateSample.ts][poolsupdatesample] | update a Pool x-ms-original-file: 2024-10-19/UpdatePool.json | +| [resourceDetailsListByPoolSample.ts][resourcedetailslistbypoolsample] | list ResourceDetailsObject resources by Pool x-ms-original-file: 2024-10-19/ResourceDetails_ListByPool.json | +| [skuListByLocationSample.ts][skulistbylocationsample] | list ResourceSku resources by subscription ID x-ms-original-file: 2024-10-19/Sku_ListByLocation.json | +| [subscriptionUsagesUsagesSample.ts][subscriptionusagesusagessample] | list Quota resources by subscription ID x-ms-original-file: 2024-10-19/SubscriptionUsages_Usages.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/imageVersionsListByImageSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env node dist/imageVersionsListByImageSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[imageversionslistbyimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/imageVersionsListByImageSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/operationsListSample.ts +[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsCreateOrUpdateSample.ts +[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsDeleteSample.ts +[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsGetSample.ts +[poolslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsListByResourceGroupSample.ts +[poolslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsListBySubscriptionSample.ts +[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsUpdateSample.ts +[resourcedetailslistbypoolsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/resourceDetailsListByPoolSample.ts +[skulistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/skuListByLocationSample.ts +[subscriptionusagesusagessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/subscriptionUsagesUsagesSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-devopsinfrastructure?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/package.json b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/package.json new file mode 100644 index 000000000000..677f0ba8dc42 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/package.json @@ -0,0 +1,42 @@ +{ + "name": "@azure-samples/arm-devopsinfrastructure-ts", + "private": true, + "version": "1.0.0", + "description": "@azure/arm-devopsinfrastructure client library samples for TypeScript", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/devopsinfrastructure/arm-devopsinfrastructure" + }, + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/devopsinfrastructure/arm-devopsinfrastructure", + "dependencies": { + "@azure/arm-devopsinfrastructure": "latest", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.6.2", + "rimraf": "latest" + } +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/sample.env b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/imageVersionsListByImageSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/imageVersionsListByImageSample.ts new file mode 100644 index 000000000000..20e56bc12fa2 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/imageVersionsListByImageSample.ts @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list ImageVersion resources by Image + * + * @summary list ImageVersion resources by Image + * x-ms-original-file: 2024-10-19/ImageVersions_ListByImage.json + */ +async function imageVersionsListByImage() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.imageVersions.listByImage( + "my-resource-group", + "windows-2022", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + imageVersionsListByImage(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/operationsListSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/operationsListSample.ts new file mode 100644 index 000000000000..2e635c0c30b5 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/operationsListSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list the operations for the provider + * + * @summary list the operations for the provider + * x-ms-original-file: 2024-10-19/ListOperations.json + */ +async function operationsList() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "00000000-0000-0000-0000-00000000000"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsCreateOrUpdateSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..8023a6f65027 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsCreateOrUpdateSample.ts @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to create a Pool + * + * @summary create a Pool + * x-ms-original-file: 2024-10-19/CreateOrUpdatePool.json + */ +async function poolsCreateOrUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const result = await client.pools.createOrUpdate("rg", "pool", { + location: "eastus", + properties: { + provisioningState: "Succeeded", + maximumConcurrency: 10, + devCenterProjectResourceId: + "/subscriptions/222e81d0-cf38-4dab-baa5-289bf16baaa4/resourceGroups/rg-1es-devcenter/providers/Microsoft.DevCenter/projects/1ES", + organizationProfile: { + kind: "AzureDevOps", + organizations: [{ url: "https://mseng.visualstudio.com" }], + }, + agentProfile: { kind: "Stateless" }, + fabricProfile: { + kind: "Vmss", + sku: { name: "Standard_D4ads_v5" }, + images: [ + { + resourceId: + "/MicrosoftWindowsServer/WindowsServer/2019-Datacenter/latest", + }, + ], + }, + }, + }); + console.log(result); +} + +async function main() { + poolsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsDeleteSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsDeleteSample.ts new file mode 100644 index 000000000000..87595f8657b6 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsDeleteSample.ts @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to delete a Pool + * + * @summary delete a Pool + * x-ms-original-file: 2024-10-19/DeletePool.json + */ +async function poolsDelete() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + await client.pools.delete("rg", "pool"); +} + +async function main() { + poolsDelete(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsGetSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsGetSample.ts new file mode 100644 index 000000000000..fb0c07d2b276 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsGetSample.ts @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to get a Pool + * + * @summary get a Pool + * x-ms-original-file: 2024-10-19/GetPool.json + */ +async function poolsGet() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const result = await client.pools.get("rg", "pool"); + console.log(result); +} + +async function main() { + poolsGet(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsListByResourceGroupSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsListByResourceGroupSample.ts new file mode 100644 index 000000000000..4035863afbf4 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsListByResourceGroupSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list Pool resources by resource group + * + * @summary list Pool resources by resource group + * x-ms-original-file: 2024-10-19/ListPoolsBySubscriptionAndResourceGroup.json + */ +async function poolsListByResourceGroup() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.pools.listByResourceGroup("rg")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + poolsListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsListBySubscriptionSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsListBySubscriptionSample.ts new file mode 100644 index 000000000000..03a24f19eb0f --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsListBySubscriptionSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list Pool resources by subscription ID + * + * @summary list Pool resources by subscription ID + * x-ms-original-file: 2024-10-19/ListPoolsBySubscription.json + */ +async function poolsListBySubscription() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.pools.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + poolsListBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsUpdateSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsUpdateSample.ts new file mode 100644 index 000000000000..816fd95181c9 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/poolsUpdateSample.ts @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to update a Pool + * + * @summary update a Pool + * x-ms-original-file: 2024-10-19/UpdatePool.json + */ +async function poolsUpdate() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const result = await client.pools.update("rg", "pool", {}); + console.log(result); +} + +async function main() { + poolsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/resourceDetailsListByPoolSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/resourceDetailsListByPoolSample.ts new file mode 100644 index 000000000000..f58df9ceda8c --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/resourceDetailsListByPoolSample.ts @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list ResourceDetailsObject resources by Pool + * + * @summary list ResourceDetailsObject resources by Pool + * x-ms-original-file: 2024-10-19/ResourceDetails_ListByPool.json + */ +async function resourceDetailsListByPool() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.resourceDetails.listByPool( + "my-resource-group", + "my-dev-ops-pool", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + resourceDetailsListByPool(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/skuListByLocationSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/skuListByLocationSample.ts new file mode 100644 index 000000000000..c97fb9cc7434 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/skuListByLocationSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list ResourceSku resources by subscription ID + * + * @summary list ResourceSku resources by subscription ID + * x-ms-original-file: 2024-10-19/Sku_ListByLocation.json + */ +async function skuListByLocation() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.sku.listByLocation("eastus")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + skuListByLocation(); +} + +main().catch(console.error); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/subscriptionUsagesUsagesSample.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/subscriptionUsagesUsagesSample.ts new file mode 100644 index 000000000000..52442b03de2f --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/src/subscriptionUsagesUsagesSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list Quota resources by subscription ID + * + * @summary list Quota resources by subscription ID + * x-ms-original-file: 2024-10-19/SubscriptionUsages_Usages.json + */ +async function subscriptionUsagesUsages() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2"; + const client = new DevOpsInfrastructureClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.subscriptionUsages.usages("eastus")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + subscriptionUsagesUsages(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/tsconfig.json b/sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/tsconfig.json similarity index 100% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/tsconfig.json rename to sdk/devopsinfrastructure/arm-devopsinfrastructure/samples/v1/typescript/tsconfig.json diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/devOpsInfrastructureContext.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/devOpsInfrastructureContext.ts new file mode 100644 index 000000000000..874f37587737 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/devOpsInfrastructureContext.ts @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { logger } from "../logger.js"; +import { KnownVersions } from "../models/models.js"; +import { Client, ClientOptions, getClient } from "@azure-rest/core-client"; +import { TokenCredential } from "@azure/core-auth"; + +export interface DevOpsInfrastructureContext extends Client {} + +/** Optional parameters for the client. */ +export interface DevOpsInfrastructureClientOptionalParams extends ClientOptions { + /** The API version to use for this operation. */ + /** Known values of {@link KnownVersions} that the service accepts. */ + apiVersion?: string; +} + +export function createDevOpsInfrastructure( + credential: TokenCredential, + options: DevOpsInfrastructureClientOptionalParams = {}, +): DevOpsInfrastructureContext { + const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; + const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; + const userAgentInfo = `azsdk-js-arm-devopsinfrastructure/1.0.0-beta.1`; + const userAgentPrefix = prefixFromOptions + ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}` + : `azsdk-js-api ${userAgentInfo}`; + const { apiVersion: _, ...updatedOptions } = { + ...options, + userAgentOptions: { userAgentPrefix }, + loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info }, + credentials: { + scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], + }, + }; + const clientContext = getClient(endpointUrl, credential, updatedOptions); + clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + const apiVersion = options.apiVersion ?? "2024-10-19"; + clientContext.pipeline.addPolicy({ + name: "ClientApiVersionPolicy", + sendRequest: (req, next) => { + // Use the apiVersion defined in request url directly + // Append one if there is no apiVersion and we have one at client options + const url = new URL(req.url); + if (!url.searchParams.get("api-version")) { + req.url = `${req.url}${ + Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; + } + + return next(req); + }, + }); + return clientContext; +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/imageVersions/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/imageVersions/index.ts new file mode 100644 index 000000000000..1062dc3236d9 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/imageVersions/index.ts @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + DevOpsInfrastructureContext as Client, + ImageVersionsListByImageOptionalParams, +} from "../index.js"; +import { + _ImageVersionListResult, + _imageVersionListResultDeserializer, + ImageVersion, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; + +export function _imageVersionsListByImageSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + imageName: string, + options: ImageVersionsListByImageOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/images/{imageName}/versions", + subscriptionId, + resourceGroupName, + imageName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _imageVersionsListByImageDeserialize( + result: PathUncheckedResponse, +): Promise<_ImageVersionListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _imageVersionListResultDeserializer(result.body); +} + +/** List ImageVersion resources by Image */ +export function imageVersionsListByImage( + context: Client, + subscriptionId: string, + resourceGroupName: string, + imageName: string, + options: ImageVersionsListByImageOptionalParams = { requestOptions: {} }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => + _imageVersionsListByImageSend(context, subscriptionId, resourceGroupName, imageName, options), + _imageVersionsListByImageDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/index.ts new file mode 100644 index 000000000000..a2dc6adc3996 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/index.ts @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +export { + createDevOpsInfrastructure, + DevOpsInfrastructureContext, + DevOpsInfrastructureClientOptionalParams, +} from "./devOpsInfrastructureContext.js"; +export { + OperationsListOptionalParams, + PoolsGetOptionalParams, + PoolsCreateOrUpdateOptionalParams, + PoolsUpdateOptionalParams, + PoolsDeleteOptionalParams, + PoolsListByResourceGroupOptionalParams, + PoolsListBySubscriptionOptionalParams, + ResourceDetailsListByPoolOptionalParams, + SkuListByLocationOptionalParams, + SubscriptionUsagesUsagesOptionalParams, + ImageVersionsListByImageOptionalParams, +} from "./options.js"; +export { imageVersionsListByImage } from "./imageVersions/index.js"; +export { operationsList } from "./operations/index.js"; +export { + poolsGet, + poolsCreateOrUpdate, + poolsUpdate, + poolsDelete, + poolsListByResourceGroup, + poolsListBySubscription, +} from "./pools/index.js"; +export { resourceDetailsListByPool } from "./resourceDetails/index.js"; +export { skuListByLocation } from "./sku/index.js"; +export { subscriptionUsagesUsages } from "./subscriptionUsages/index.js"; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/operations/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/operations/index.ts new file mode 100644 index 000000000000..77b2aa2e0260 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/operations/index.ts @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureContext as Client, OperationsListOptionalParams } from "../index.js"; +import { + _OperationListResult, + _operationListResultDeserializer, + Operation, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; + +export function _operationsListSend( + context: Client, + options: OperationsListOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path("/providers/Microsoft.DevOpsInfrastructure/operations") + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _operationsListDeserialize( + result: PathUncheckedResponse, +): Promise<_OperationListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _operationListResultDeserializer(result.body); +} + +/** List the operations for the provider */ +export function operationsList( + context: Client, + options: OperationsListOptionalParams = { requestOptions: {} }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _operationsListSend(context, options), + _operationsListDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/options.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/options.ts new file mode 100644 index 000000000000..55252f8c5668 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/options.ts @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { OperationOptions } from "@azure-rest/core-client"; + +/** Optional parameters. */ +export interface OperationsListOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface PoolsGetOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface PoolsCreateOrUpdateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface PoolsUpdateOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface PoolsDeleteOptionalParams extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; +} + +/** Optional parameters. */ +export interface PoolsListByResourceGroupOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface PoolsListBySubscriptionOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface ResourceDetailsListByPoolOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface SkuListByLocationOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface SubscriptionUsagesUsagesOptionalParams extends OperationOptions {} + +/** Optional parameters. */ +export interface ImageVersionsListByImageOptionalParams extends OperationOptions {} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/pools/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/pools/index.ts new file mode 100644 index 000000000000..ff74cc858b33 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/pools/index.ts @@ -0,0 +1,300 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + DevOpsInfrastructureContext as Client, + PoolsCreateOrUpdateOptionalParams, + PoolsDeleteOptionalParams, + PoolsGetOptionalParams, + PoolsListByResourceGroupOptionalParams, + PoolsListBySubscriptionOptionalParams, + PoolsUpdateOptionalParams, +} from "../index.js"; +import { + Pool, + poolSerializer, + poolDeserializer, + PoolUpdate, + poolUpdateSerializer, + _PoolListResult, + _poolListResultDeserializer, +} from "../../models/models.js"; +import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +export function _poolsGetSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + poolName: string, + options: PoolsGetOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}", + subscriptionId, + resourceGroupName, + poolName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _poolsGetDeserialize(result: PathUncheckedResponse): Promise { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return poolDeserializer(result.body); +} + +/** Get a Pool */ +export async function poolsGet( + context: Client, + subscriptionId: string, + resourceGroupName: string, + poolName: string, + options: PoolsGetOptionalParams = { requestOptions: {} }, +): Promise { + const result = await _poolsGetSend(context, subscriptionId, resourceGroupName, poolName, options); + return _poolsGetDeserialize(result); +} + +export function _poolsCreateOrUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + poolName: string, + resource: Pool, + options: PoolsCreateOrUpdateOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}", + subscriptionId, + resourceGroupName, + poolName, + ) + .put({ + ...operationOptionsToRequestParameters(options), + body: poolSerializer(resource), + }); +} + +export async function _poolsCreateOrUpdateDeserialize( + result: PathUncheckedResponse, +): Promise { + const expectedStatuses = ["200", "201"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return poolDeserializer(result.body); +} + +/** Create a Pool */ +export function poolsCreateOrUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + poolName: string, + resource: Pool, + options: PoolsCreateOrUpdateOptionalParams = { requestOptions: {} }, +): PollerLike, Pool> { + return getLongRunningPoller(context, _poolsCreateOrUpdateDeserialize, ["200", "201"], { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _poolsCreateOrUpdateSend( + context, + subscriptionId, + resourceGroupName, + poolName, + resource, + options, + ), + resourceLocationConfig: "azure-async-operation", + }) as PollerLike, Pool>; +} + +export function _poolsUpdateSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + poolName: string, + properties: PoolUpdate, + options: PoolsUpdateOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}", + subscriptionId, + resourceGroupName, + poolName, + ) + .patch({ + ...operationOptionsToRequestParameters(options), + body: poolUpdateSerializer(properties), + }); +} + +export async function _poolsUpdateDeserialize(result: PathUncheckedResponse): Promise { + const expectedStatuses = ["200", "202"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return poolDeserializer(result.body); +} + +/** Update a Pool */ +export function poolsUpdate( + context: Client, + subscriptionId: string, + resourceGroupName: string, + poolName: string, + properties: PoolUpdate, + options: PoolsUpdateOptionalParams = { requestOptions: {} }, +): PollerLike, Pool> { + return getLongRunningPoller(context, _poolsUpdateDeserialize, ["200", "202"], { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _poolsUpdateSend(context, subscriptionId, resourceGroupName, poolName, properties, options), + resourceLocationConfig: "location", + }) as PollerLike, Pool>; +} + +export function _poolsDeleteSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + poolName: string, + options: PoolsDeleteOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}", + subscriptionId, + resourceGroupName, + poolName, + ) + .delete({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _poolsDeleteDeserialize(result: PathUncheckedResponse): Promise { + const expectedStatuses = ["202", "204", "200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return; +} + +/** Delete a Pool */ +export function poolsDelete( + context: Client, + subscriptionId: string, + resourceGroupName: string, + poolName: string, + options: PoolsDeleteOptionalParams = { requestOptions: {} }, +): PollerLike, void> { + return getLongRunningPoller(context, _poolsDeleteDeserialize, ["202", "204", "200"], { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _poolsDeleteSend(context, subscriptionId, resourceGroupName, poolName, options), + resourceLocationConfig: "location", + }) as PollerLike, void>; +} + +export function _poolsListByResourceGroupSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: PoolsListByResourceGroupOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools", + subscriptionId, + resourceGroupName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _poolsListByResourceGroupDeserialize( + result: PathUncheckedResponse, +): Promise<_PoolListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _poolListResultDeserializer(result.body); +} + +/** List Pool resources by resource group */ +export function poolsListByResourceGroup( + context: Client, + subscriptionId: string, + resourceGroupName: string, + options: PoolsListByResourceGroupOptionalParams = { requestOptions: {} }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _poolsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options), + _poolsListByResourceGroupDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} + +export function _poolsListBySubscriptionSend( + context: Client, + subscriptionId: string, + options: PoolsListBySubscriptionOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/providers/Microsoft.DevOpsInfrastructure/pools", + subscriptionId, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _poolsListBySubscriptionDeserialize( + result: PathUncheckedResponse, +): Promise<_PoolListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _poolListResultDeserializer(result.body); +} + +/** List Pool resources by subscription ID */ +export function poolsListBySubscription( + context: Client, + subscriptionId: string, + options: PoolsListBySubscriptionOptionalParams = { requestOptions: {} }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _poolsListBySubscriptionSend(context, subscriptionId, options), + _poolsListBySubscriptionDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/resourceDetails/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/resourceDetails/index.ts new file mode 100644 index 000000000000..cc4ff90fb39c --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/resourceDetails/index.ts @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + DevOpsInfrastructureContext as Client, + ResourceDetailsListByPoolOptionalParams, +} from "../index.js"; +import { + _ResourceDetailsObjectListResult, + _resourceDetailsObjectListResultDeserializer, + ResourceDetailsObject, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; + +export function _resourceDetailsListByPoolSend( + context: Client, + subscriptionId: string, + resourceGroupName: string, + poolName: string, + options: ResourceDetailsListByPoolOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}/resources", + subscriptionId, + resourceGroupName, + poolName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _resourceDetailsListByPoolDeserialize( + result: PathUncheckedResponse, +): Promise<_ResourceDetailsObjectListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _resourceDetailsObjectListResultDeserializer(result.body); +} + +/** List ResourceDetailsObject resources by Pool */ +export function resourceDetailsListByPool( + context: Client, + subscriptionId: string, + resourceGroupName: string, + poolName: string, + options: ResourceDetailsListByPoolOptionalParams = { requestOptions: {} }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => + _resourceDetailsListByPoolSend(context, subscriptionId, resourceGroupName, poolName, options), + _resourceDetailsListByPoolDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/sku/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/sku/index.ts new file mode 100644 index 000000000000..92d777d1c67f --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/sku/index.ts @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + DevOpsInfrastructureContext as Client, + SkuListByLocationOptionalParams, +} from "../index.js"; +import { + _ResourceSkuListResult, + _resourceSkuListResultDeserializer, + ResourceSku, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; + +export function _skuListByLocationSend( + context: Client, + subscriptionId: string, + locationName: string, + options: SkuListByLocationOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/providers/Microsoft.DevOpsInfrastructure/locations/{locationName}/skus", + subscriptionId, + locationName, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _skuListByLocationDeserialize( + result: PathUncheckedResponse, +): Promise<_ResourceSkuListResult> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _resourceSkuListResultDeserializer(result.body); +} + +/** List ResourceSku resources by subscription ID */ +export function skuListByLocation( + context: Client, + subscriptionId: string, + locationName: string, + options: SkuListByLocationOptionalParams = { requestOptions: {} }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _skuListByLocationSend(context, subscriptionId, locationName, options), + _skuListByLocationDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/subscriptionUsages/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/subscriptionUsages/index.ts new file mode 100644 index 000000000000..76ee7d51a7aa --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/api/subscriptionUsages/index.ts @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + DevOpsInfrastructureContext as Client, + SubscriptionUsagesUsagesOptionalParams, +} from "../index.js"; +import { _PagedQuota, _pagedQuotaDeserializer, Quota } from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; + +export function _subscriptionUsagesUsagesSend( + context: Client, + subscriptionId: string, + location: string, + options: SubscriptionUsagesUsagesOptionalParams = { requestOptions: {} }, +): StreamableMethod { + return context + .path( + "/subscriptions/{subscriptionId}/providers/Microsoft.DevOpsInfrastructure/locations/{location}/usages", + subscriptionId, + location, + ) + .get({ ...operationOptionsToRequestParameters(options) }); +} + +export async function _subscriptionUsagesUsagesDeserialize( + result: PathUncheckedResponse, +): Promise<_PagedQuota> { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { + throw createRestError(result); + } + + return _pagedQuotaDeserializer(result.body); +} + +/** List Quota resources by subscription ID */ +export function subscriptionUsagesUsages( + context: Client, + subscriptionId: string, + location: string, + options: SubscriptionUsagesUsagesOptionalParams = { requestOptions: {} }, +): PagedAsyncIterableIterator { + return buildPagedAsyncIterator( + context, + () => _subscriptionUsagesUsagesSend(context, subscriptionId, location, options), + _subscriptionUsagesUsagesDeserialize, + ["200"], + { itemName: "value", nextLinkName: "nextLink" }, + ); +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/imageVersions/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/imageVersions/index.ts new file mode 100644 index 000000000000..30672a6e3924 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/imageVersions/index.ts @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureContext } from "../../api/devOpsInfrastructureContext.js"; +import { imageVersionsListByImage } from "../../api/imageVersions/index.js"; +import { ImageVersionsListByImageOptionalParams } from "../../api/options.js"; +import { ImageVersion } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; + +/** Interface representing a ImageVersions operations. */ +export interface ImageVersionsOperations { + /** List ImageVersion resources by Image */ + listByImage: ( + resourceGroupName: string, + imageName: string, + options?: ImageVersionsListByImageOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getImageVersions(context: DevOpsInfrastructureContext, subscriptionId: string) { + return { + listByImage: ( + resourceGroupName: string, + imageName: string, + options?: ImageVersionsListByImageOptionalParams, + ) => imageVersionsListByImage(context, subscriptionId, resourceGroupName, imageName, options), + }; +} + +export function getImageVersionsOperations( + context: DevOpsInfrastructureContext, + subscriptionId: string, +): ImageVersionsOperations { + return { + ...getImageVersions(context, subscriptionId), + }; +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/index.ts new file mode 100644 index 000000000000..9d4c5b46151a --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/index.ts @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +export { ImageVersionsOperations } from "./imageVersions/index.js"; +export { OperationsOperations } from "./operations/index.js"; +export { PoolsOperations } from "./pools/index.js"; +export { ResourceDetailsOperations } from "./resourceDetails/index.js"; +export { SkuOperations } from "./sku/index.js"; +export { SubscriptionUsagesOperations } from "./subscriptionUsages/index.js"; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/operations/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/operations/index.ts new file mode 100644 index 000000000000..135d5967bc7f --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/operations/index.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureContext } from "../../api/devOpsInfrastructureContext.js"; +import { operationsList } from "../../api/operations/index.js"; +import { OperationsListOptionalParams } from "../../api/options.js"; +import { Operation } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; + +/** Interface representing a Operations operations. */ +export interface OperationsOperations { + /** List the operations for the provider */ + list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator; +} + +export function getOperations(context: DevOpsInfrastructureContext) { + return { + list: (options?: OperationsListOptionalParams) => operationsList(context, options), + }; +} + +export function getOperationsOperations( + context: DevOpsInfrastructureContext, +): OperationsOperations { + return { + ...getOperations(context), + }; +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/pools/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/pools/index.ts new file mode 100644 index 000000000000..5c784bb6deac --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/pools/index.ts @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureContext } from "../../api/devOpsInfrastructureContext.js"; +import { + PoolsGetOptionalParams, + PoolsCreateOrUpdateOptionalParams, + PoolsUpdateOptionalParams, + PoolsDeleteOptionalParams, + PoolsListByResourceGroupOptionalParams, + PoolsListBySubscriptionOptionalParams, +} from "../../api/options.js"; +import { + poolsGet, + poolsCreateOrUpdate, + poolsUpdate, + poolsDelete, + poolsListByResourceGroup, + poolsListBySubscription, +} from "../../api/pools/index.js"; +import { Pool, PoolUpdate } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; + +/** Interface representing a Pools operations. */ +export interface PoolsOperations { + /** Get a Pool */ + get: ( + resourceGroupName: string, + poolName: string, + options?: PoolsGetOptionalParams, + ) => Promise; + /** Create a Pool */ + createOrUpdate: ( + resourceGroupName: string, + poolName: string, + resource: Pool, + options?: PoolsCreateOrUpdateOptionalParams, + ) => PollerLike, Pool>; + /** Update a Pool */ + update: ( + resourceGroupName: string, + poolName: string, + properties: PoolUpdate, + options?: PoolsUpdateOptionalParams, + ) => PollerLike, Pool>; + /** Delete a Pool */ + delete: ( + resourceGroupName: string, + poolName: string, + options?: PoolsDeleteOptionalParams, + ) => PollerLike, void>; + /** List Pool resources by resource group */ + listByResourceGroup: ( + resourceGroupName: string, + options?: PoolsListByResourceGroupOptionalParams, + ) => PagedAsyncIterableIterator; + /** List Pool resources by subscription ID */ + listBySubscription: ( + options?: PoolsListBySubscriptionOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getPools(context: DevOpsInfrastructureContext, subscriptionId: string) { + return { + get: (resourceGroupName: string, poolName: string, options?: PoolsGetOptionalParams) => + poolsGet(context, subscriptionId, resourceGroupName, poolName, options), + createOrUpdate: ( + resourceGroupName: string, + poolName: string, + resource: Pool, + options?: PoolsCreateOrUpdateOptionalParams, + ) => + poolsCreateOrUpdate(context, subscriptionId, resourceGroupName, poolName, resource, options), + update: ( + resourceGroupName: string, + poolName: string, + properties: PoolUpdate, + options?: PoolsUpdateOptionalParams, + ) => poolsUpdate(context, subscriptionId, resourceGroupName, poolName, properties, options), + delete: (resourceGroupName: string, poolName: string, options?: PoolsDeleteOptionalParams) => + poolsDelete(context, subscriptionId, resourceGroupName, poolName, options), + listByResourceGroup: ( + resourceGroupName: string, + options?: PoolsListByResourceGroupOptionalParams, + ) => poolsListByResourceGroup(context, subscriptionId, resourceGroupName, options), + listBySubscription: (options?: PoolsListBySubscriptionOptionalParams) => + poolsListBySubscription(context, subscriptionId, options), + }; +} + +export function getPoolsOperations( + context: DevOpsInfrastructureContext, + subscriptionId: string, +): PoolsOperations { + return { + ...getPools(context, subscriptionId), + }; +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/resourceDetails/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/resourceDetails/index.ts new file mode 100644 index 000000000000..b1015e34e8fe --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/resourceDetails/index.ts @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureContext } from "../../api/devOpsInfrastructureContext.js"; +import { ResourceDetailsListByPoolOptionalParams } from "../../api/options.js"; +import { resourceDetailsListByPool } from "../../api/resourceDetails/index.js"; +import { ResourceDetailsObject } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; + +/** Interface representing a ResourceDetails operations. */ +export interface ResourceDetailsOperations { + /** List ResourceDetailsObject resources by Pool */ + listByPool: ( + resourceGroupName: string, + poolName: string, + options?: ResourceDetailsListByPoolOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getResourceDetails(context: DevOpsInfrastructureContext, subscriptionId: string) { + return { + listByPool: ( + resourceGroupName: string, + poolName: string, + options?: ResourceDetailsListByPoolOptionalParams, + ) => resourceDetailsListByPool(context, subscriptionId, resourceGroupName, poolName, options), + }; +} + +export function getResourceDetailsOperations( + context: DevOpsInfrastructureContext, + subscriptionId: string, +): ResourceDetailsOperations { + return { + ...getResourceDetails(context, subscriptionId), + }; +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/sku/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/sku/index.ts new file mode 100644 index 000000000000..0b585b404d6a --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/sku/index.ts @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureContext } from "../../api/devOpsInfrastructureContext.js"; +import { SkuListByLocationOptionalParams } from "../../api/options.js"; +import { skuListByLocation } from "../../api/sku/index.js"; +import { ResourceSku } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; + +/** Interface representing a Sku operations. */ +export interface SkuOperations { + /** List ResourceSku resources by subscription ID */ + listByLocation: ( + locationName: string, + options?: SkuListByLocationOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getSku(context: DevOpsInfrastructureContext, subscriptionId: string) { + return { + listByLocation: (locationName: string, options?: SkuListByLocationOptionalParams) => + skuListByLocation(context, subscriptionId, locationName, options), + }; +} + +export function getSkuOperations( + context: DevOpsInfrastructureContext, + subscriptionId: string, +): SkuOperations { + return { + ...getSku(context, subscriptionId), + }; +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/subscriptionUsages/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/subscriptionUsages/index.ts new file mode 100644 index 000000000000..8e9981e3b6fc --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/classic/subscriptionUsages/index.ts @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureContext } from "../../api/devOpsInfrastructureContext.js"; +import { SubscriptionUsagesUsagesOptionalParams } from "../../api/options.js"; +import { subscriptionUsagesUsages } from "../../api/subscriptionUsages/index.js"; +import { Quota } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; + +/** Interface representing a SubscriptionUsages operations. */ +export interface SubscriptionUsagesOperations { + /** List Quota resources by subscription ID */ + usages: ( + location: string, + options?: SubscriptionUsagesUsagesOptionalParams, + ) => PagedAsyncIterableIterator; +} + +export function getSubscriptionUsages( + context: DevOpsInfrastructureContext, + subscriptionId: string, +) { + return { + usages: (location: string, options?: SubscriptionUsagesUsagesOptionalParams) => + subscriptionUsagesUsages(context, subscriptionId, location, options), + }; +} + +export function getSubscriptionUsagesOperations( + context: DevOpsInfrastructureContext, + subscriptionId: string, +): SubscriptionUsagesOperations { + return { + ...getSubscriptionUsages(context, subscriptionId), + }; +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/devOpsInfrastructureClient.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/devOpsInfrastructureClient.ts new file mode 100644 index 000000000000..78f8062925f9 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/devOpsInfrastructureClient.ts @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { getOperationsOperations, OperationsOperations } from "./classic/operations/index.js"; +import { getPoolsOperations, PoolsOperations } from "./classic/pools/index.js"; +import { + getResourceDetailsOperations, + ResourceDetailsOperations, +} from "./classic/resourceDetails/index.js"; +import { getSkuOperations, SkuOperations } from "./classic/sku/index.js"; +import { + getSubscriptionUsagesOperations, + SubscriptionUsagesOperations, +} from "./classic/subscriptionUsages/index.js"; +import { + getImageVersionsOperations, + ImageVersionsOperations, +} from "./classic/imageVersions/index.js"; +import { + createDevOpsInfrastructure, + DevOpsInfrastructureContext, + DevOpsInfrastructureClientOptionalParams, +} from "./api/index.js"; +import { Pipeline } from "@azure/core-rest-pipeline"; +import { TokenCredential } from "@azure/core-auth"; + +export { DevOpsInfrastructureClientOptionalParams } from "./api/devOpsInfrastructureContext.js"; + +export class DevOpsInfrastructureClient { + private _client: DevOpsInfrastructureContext; + /** The pipeline used by this client to make requests */ + public readonly pipeline: Pipeline; + + constructor( + credential: TokenCredential, + subscriptionId: string, + options: DevOpsInfrastructureClientOptionalParams = {}, + ) { + const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; + const userAgentPrefix = prefixFromOptions + ? `${prefixFromOptions} azsdk-js-client` + : `azsdk-js-client`; + this._client = createDevOpsInfrastructure(credential, { + ...options, + userAgentOptions: { userAgentPrefix }, + }); + this.pipeline = this._client.pipeline; + this.operations = getOperationsOperations(this._client); + this.pools = getPoolsOperations(this._client, subscriptionId); + this.resourceDetails = getResourceDetailsOperations(this._client, subscriptionId); + this.sku = getSkuOperations(this._client, subscriptionId); + this.subscriptionUsages = getSubscriptionUsagesOperations(this._client, subscriptionId); + this.imageVersions = getImageVersionsOperations(this._client, subscriptionId); + } + + /** The operation groups for Operations */ + public readonly operations: OperationsOperations; + /** The operation groups for Pools */ + public readonly pools: PoolsOperations; + /** The operation groups for ResourceDetails */ + public readonly resourceDetails: ResourceDetailsOperations; + /** The operation groups for Sku */ + public readonly sku: SkuOperations; + /** The operation groups for SubscriptionUsages */ + public readonly subscriptionUsages: SubscriptionUsagesOperations; + /** The operation groups for ImageVersions */ + public readonly imageVersions: ImageVersionsOperations; +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/helpers/serializerHelpers.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/helpers/serializerHelpers.ts new file mode 100644 index 000000000000..7518a16c2ee9 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/helpers/serializerHelpers.ts @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +export function serializeRecord( + item: Record, +): Record; +export function serializeRecord( + item: Record, + serializer: (item: T) => R, +): Record; +export function serializeRecord( + item: Record, + serializer?: (item: T) => R, +): Record { + return Object.keys(item).reduce( + (acc, key) => { + if (isSupportedRecordType(item[key])) { + acc[key] = item[key] as any; + } else if (serializer) { + const value = item[key]; + if (value !== undefined) { + acc[key] = serializer(value); + } + } else { + console.warn(`Don't know how to serialize ${item[key]}`); + acc[key] = item[key] as any; + } + return acc; + }, + {} as Record, + ); +} + +function isSupportedRecordType(t: any) { + return ["number", "string", "boolean", "null"].includes(typeof t) || t instanceof Date; +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/index.ts index dc6a6c0a1d3e..4c70a8305161 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/index.ts +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/index.ts @@ -1,13 +1,118 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. -/// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { ManagedDevOpsInfrastructure } from "./managedDevOpsInfrastructure"; -export * from "./operationsInterfaces"; +import { + PageSettings, + ContinuablePage, + PagedAsyncIterableIterator, +} from "./static-helpers/pagingHelpers.js"; + +export { DevOpsInfrastructureClient } from "./devOpsInfrastructureClient.js"; +export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js"; +export { + ImageVersion, + ImageVersionProperties, + ProxyResource, + Resource, + SystemData, + KnownCreatedByType, + CreatedByType, + Quota, + QuotaName, + ResourceSku, + ResourceSkuProperties, + ResourceSkuLocationInfo, + ResourceSkuZoneDetails, + ResourceSkuCapabilities, + ResourceSkuRestrictions, + KnownResourceSkuRestrictionsType, + ResourceSkuRestrictionsType, + ResourceSkuRestrictionInfo, + KnownResourceSkuRestrictionsReasonCode, + ResourceSkuRestrictionsReasonCode, + ResourceDetailsObject, + ResourceDetailsObjectProperties, + KnownResourceStatus, + ResourceStatus, + Pool, + PoolProperties, + KnownProvisioningState, + ProvisioningState, + OrganizationProfile, + OrganizationProfileUnion, + GitHubOrganizationProfile, + GitHubOrganization, + AzureDevOpsOrganizationProfile, + Organization, + AzureDevOpsPermissionProfile, + KnownAzureDevOpsPermissionType, + AzureDevOpsPermissionType, + AgentProfile, + AgentProfileUnion, + ResourcePredictions, + ResourcePredictionsProfile, + ResourcePredictionsProfileUnion, + KnownResourcePredictionsProfileType, + ResourcePredictionsProfileType, + ManualResourcePredictionsProfile, + AutomaticResourcePredictionsProfile, + KnownPredictionPreference, + PredictionPreference, + StatelessAgentProfile, + Stateful, + FabricProfile, + FabricProfileUnion, + VmssFabricProfile, + DevOpsAzureSku, + PoolImage, + OsProfile, + SecretsManagementSettings, + KnownLogonType, + LogonType, + StorageProfile, + KnownOsDiskStorageAccountType, + OsDiskStorageAccountType, + DataDisk, + KnownCachingType, + CachingType, + KnownStorageAccountType, + StorageAccountType, + NetworkProfile, + ManagedServiceIdentity, + KnownManagedServiceIdentityType, + ManagedServiceIdentityType, + UserAssignedIdentity, + TrackedResource, + PoolUpdate, + PoolUpdateProperties, + Operation, + OperationDisplay, + KnownOrigin, + Origin, + KnownActionType, + ActionType, + KnownVersions, +} from "./models/index.js"; +export { + DevOpsInfrastructureClientOptionalParams, + OperationsListOptionalParams, + PoolsGetOptionalParams, + PoolsCreateOrUpdateOptionalParams, + PoolsUpdateOptionalParams, + PoolsDeleteOptionalParams, + PoolsListByResourceGroupOptionalParams, + PoolsListBySubscriptionOptionalParams, + ResourceDetailsListByPoolOptionalParams, + SkuListByLocationOptionalParams, + SubscriptionUsagesUsagesOptionalParams, + ImageVersionsListByImageOptionalParams, +} from "./api/index.js"; +export { + ImageVersionsOperations, + OperationsOperations, + PoolsOperations, + ResourceDetailsOperations, + SkuOperations, + SubscriptionUsagesOperations, +} from "./classic/index.js"; +export { PageSettings, ContinuablePage, PagedAsyncIterableIterator }; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/logger.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/logger.ts new file mode 100644 index 000000000000..f150e5b3b4c2 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/logger.ts @@ -0,0 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { createClientLogger } from "@azure/logger"; +export const logger = createClientLogger("arm-devopsinfrastructure"); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/lroImpl.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/lroImpl.ts deleted file mode 100644 index 5f88efab981b..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/lroImpl.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AbortSignalLike } from "@azure/abort-controller"; -import { LongRunningOperation, LroResponse } from "@azure/core-lro"; - -export function createLroSpec(inputs: { - sendOperationFn: (args: any, spec: any) => Promise>; - args: Record; - spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record; -}): LongRunningOperation { - const { args, spec, sendOperationFn } = inputs; - return { - requestMethod: spec.httpMethod, - requestPath: spec.path!, - sendInitialRequest: () => sendOperationFn(args, spec), - sendPollRequest: ( - path: string, - options?: { abortSignal?: AbortSignalLike }, - ) => { - const { requestBody, ...restSpec } = spec; - return sendOperationFn(args, { - ...restSpec, - httpMethod: "GET", - path, - abortSignal: options?.abortSignal, - }); - }, - }; -} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/managedDevOpsInfrastructure.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/managedDevOpsInfrastructure.ts deleted file mode 100644 index 06339dba7a72..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/managedDevOpsInfrastructure.ts +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; -import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import { - PipelineRequest, - PipelineResponse, - SendRequest, -} from "@azure/core-rest-pipeline"; -import * as coreAuth from "@azure/core-auth"; -import { - OperationsImpl, - SkuImpl, - SubscriptionUsagesImpl, - PoolsImpl, - ImageVersionsImpl, - ResourceDetailsImpl, -} from "./operations"; -import { - Operations, - Sku, - SubscriptionUsages, - Pools, - ImageVersions, - ResourceDetails, -} from "./operationsInterfaces"; -import { ManagedDevOpsInfrastructureOptionalParams } from "./models"; - -export class ManagedDevOpsInfrastructure extends coreClient.ServiceClient { - $host: string; - apiVersion: string; - subscriptionId: string; - - /** - * Initializes a new instance of the ManagedDevOpsInfrastructure class. - * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. The value must be an UUID. - * @param options The parameter options - */ - constructor( - credentials: coreAuth.TokenCredential, - subscriptionId: string, - options?: ManagedDevOpsInfrastructureOptionalParams, - ) { - if (credentials === undefined) { - throw new Error("'credentials' cannot be null"); - } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); - } - - // Initializing default values for options - if (!options) { - options = {}; - } - const defaults: ManagedDevOpsInfrastructureOptionalParams = { - requestContentType: "application/json; charset=utf-8", - credential: credentials, - }; - - const packageDetails = `azsdk-js-arm-devopsinfrastructure/1.0.0-beta.2`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` - : `${packageDetails}`; - - const optionsWithDefaults = { - ...defaults, - ...options, - userAgentOptions: { - userAgentPrefix, - }, - endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com", - }; - super(optionsWithDefaults); - - let bearerTokenAuthenticationPolicyFound: boolean = false; - if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = - options.pipeline.getOrderedPolicies(); - bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( - (pipelinePolicy) => - pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName, - ); - } - if ( - !options || - !options.pipeline || - options.pipeline.getOrderedPolicies().length == 0 || - !bearerTokenAuthenticationPolicyFound - ) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName, - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credentials, - scopes: - optionsWithDefaults.credentialScopes ?? - `${optionsWithDefaults.endpoint}/.default`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge, - }, - }), - ); - } - // Parameter assignments - this.subscriptionId = subscriptionId; - - // Assigning values to Constant parameters - this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2024-04-04-preview"; - this.operations = new OperationsImpl(this); - this.sku = new SkuImpl(this); - this.subscriptionUsages = new SubscriptionUsagesImpl(this); - this.pools = new PoolsImpl(this); - this.imageVersions = new ImageVersionsImpl(this); - this.resourceDetails = new ResourceDetailsImpl(this); - this.addCustomApiVersionPolicy(options.apiVersion); - } - - /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ - private addCustomApiVersionPolicy(apiVersion?: string) { - if (!apiVersion) { - return; - } - const apiVersionPolicy = { - name: "CustomApiVersionPolicy", - async sendRequest( - request: PipelineRequest, - next: SendRequest, - ): Promise { - const param = request.url.split("?"); - if (param.length > 1) { - const newParams = param[1].split("&").map((item) => { - if (item.indexOf("api-version") > -1) { - return "api-version=" + apiVersion; - } else { - return item; - } - }); - request.url = param[0] + "?" + newParams.join("&"); - } - return next(request); - }, - }; - this.pipeline.addPolicy(apiVersionPolicy); - } - - operations: Operations; - sku: Sku; - subscriptionUsages: SubscriptionUsages; - pools: Pools; - imageVersions: ImageVersions; - resourceDetails: ResourceDetails; -} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/index.ts index 2cb194f9d4d2..3118381761f2 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/index.ts +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/index.ts @@ -1,1197 +1,87 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; - -export type OrganizationProfileUnion = - | OrganizationProfile - | AzureDevOpsOrganizationProfile - | GitHubOrganizationProfile; -export type AgentProfileUnion = AgentProfile | Stateful | StatelessAgentProfile; -export type ResourcePredictionsProfileUnion = - | ResourcePredictionsProfile - | AutomaticResourcePredictionsProfile - | ManualResourcePredictionsProfile; -export type FabricProfileUnion = FabricProfile | VmssFabricProfile; -export type AgentProfileUpdateUnion = - | AgentProfileUpdate - | StatefulUpdate - | StatelessAgentProfileUpdate; -export type ResourcePredictionsProfileUpdateUnion = - | ResourcePredictionsProfileUpdate - | AutomaticResourcePredictionsProfileUpdate - | ManualResourcePredictionsProfileUpdate; - -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export interface OperationListResult { - /** - * List of operations supported by the resource provider - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Operation[]; - /** - * URL to get the next set of operation list results (if there are any). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface Operation { - /** - * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - display?: OperationDisplay; - /** - * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly origin?: Origin; - /** - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actionType?: ActionType; -} - -/** Localized display information for this particular operation. */ -export interface OperationDisplay { - /** - * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provider?: string; - /** - * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resource?: string; - /** - * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operation?: string; - /** - * The short, localized friendly description of the operation; suitable for tool tips and detailed views. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; -} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; -} - -/** The error detail. */ -export interface ErrorDetail { - /** - * The error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * The error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** - * The error target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly target?: string; - /** - * The error details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly details?: ErrorDetail[]; - /** - * The error additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfo { - /** - * The additional info type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * The additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly info?: Record; -} - -/** The response of a ResourceSku list operation. */ -export interface ResourceSkuListResult { - /** The ResourceSku items on this page */ - value: ResourceSku[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Properties of a ResourceSku */ -export interface ResourceSkuProperties { - /** The type of resource the SKU applies to. */ - resourceType: string; - /** The tier of virtual machines in a scale set */ - tier: string; - /** The size of the SKU. */ - size: string; - /** The family of the SKU. */ - family: string; - /** The set of locations that the SKU is available. */ - locations: string[]; - /** A list of locations and availability zones in those locations where the SKU is available */ - locationInfo: ResourceSkuLocationInfo[]; - /** Name value pairs to describe the capability. */ - capabilities: ResourceSkuCapabilities[]; - /** The restrictions of the SKU. */ - restrictions: ResourceSkuRestrictions[]; -} - -/** Describes an available Compute SKU Location Information. */ -export interface ResourceSkuLocationInfo { - /** Location of the SKU */ - location: string; - /** List of availability zones where the SKU is supported. */ - zones: string[]; - /** Gets details of capabilities available to a SKU in specific zones. */ - zoneDetails: ResourceSkuZoneDetails[]; -} - -/** Describes The zonal capabilities of a SKU. */ -export interface ResourceSkuZoneDetails { - /** Gets the set of zones that the SKU is available in with the specified capabilities. */ - name: string[]; - /** A list of capabilities that are available for the SKU in the specified list of zones. */ - capabilities: ResourceSkuCapabilities[]; -} - -/** Describes The SKU capabilities object. */ -export interface ResourceSkuCapabilities { - /** The name of the SKU capability. */ - name: string; - /** The value of the SKU capability. */ - value: string; -} - -/** The restrictions of the SKU. */ -export interface ResourceSkuRestrictions { - /** the type of restrictions. */ - type?: ResourceSkuRestrictionsType; - /** The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. */ - values: string[]; - /** The information about the restriction where the SKU cannot be used. */ - restrictionInfo: ResourceSkuRestrictionInfo; - /** the reason for restriction. */ - reasonCode?: ResourceSkuRestrictionsReasonCode; -} - -/** Describes an available Compute SKU Restriction Information. */ -export interface ResourceSkuRestrictionInfo { - /** Locations where the SKU is restricted */ - locations?: string[]; - /** List of availability zones where the SKU is restricted. */ - zones?: string[]; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** The response of a Quota list operation. */ -export interface QuotaListResult { - /** The Quota items on this page */ - value: Quota[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Describes Resource Quota properties */ -export interface QuotaProperties { - /** The unit of usage measurement. */ - unit: string; - /** The current usage of the resource. */ - currentValue: number; - /** The maximum permitted usage of the resource. */ - limit: number; - /** The details of the quota. */ - name: QuotaName; -} - -/** The Quota Names */ -export interface QuotaName { - /** The name of the resource. */ - value?: string; - /** The localized name of the resource. */ - localizedValue?: string; -} - -/** The response of a Pool list operation. */ -export interface PoolListResult { - /** The Pool items on this page */ - value: Pool[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Pool properties */ -export interface PoolProperties { - /** The status of the current operation. */ - provisioningState?: ProvisioningState; - /** Defines how many resources can there be created at any given time. */ - maximumConcurrency: number; - /** Defines the organization in which the pool will be used. */ - organizationProfile: OrganizationProfileUnion; - /** Defines how the machine will be handled once it executed a job. */ - agentProfile: AgentProfileUnion; - /** Defines the type of fabric the agent will run on. */ - fabricProfile: FabricProfileUnion; - /** The resource id of the DevCenter Project the pool belongs to. */ - devCenterProjectResourceId: string; -} - -/** Defines the organization in which the pool will be used. */ -export interface OrganizationProfile { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "AzureDevOps" | "GitHub"; -} - -/** The agent profile of the machines in the pool. */ -export interface AgentProfile { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Stateful" | "Stateless"; - /** Defines pool buffer/stand-by agents. */ - resourcePredictions?: Record; - /** Defines how the pool buffer/stand-by agents is provided. */ - resourcePredictionsProfile?: ResourcePredictionsProfileUnion; -} - -/** Determines how the stand-by scheme should be provided. */ -export interface ResourcePredictionsProfile { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Automatic" | "Manual"; -} - -/** Defines the type of fabric the agent will run on. */ -export interface FabricProfile { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Vmss"; -} - -/** Managed service identity (system assigned and/or user assigned identities) */ -export interface ManagedServiceIdentity { - /** - * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; - /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ - type: ManagedServiceIdentityType; - /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentity | null; - }; -} - -/** User assigned identity properties */ -export interface UserAssignedIdentity { - /** - * The principal ID of the assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The client ID of the assigned identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly clientId?: string; -} - -/** The response of a ImageVersion list operation. */ -export interface ImageVersionListResult { - /** The ImageVersion items on this page */ - value: ImageVersion[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Details of the ImageVersionProperties. */ -export interface ImageVersionProperties { - /** Version of the image. */ - version: string; -} - -/** The type used for update operations of the Pool. */ -export interface PoolUpdate { - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The updatable properties of the Pool. */ - properties?: PoolUpdateProperties; -} - -/** The updatable properties of the Pool. */ -export interface PoolUpdateProperties { - /** The status of the current operation. */ - provisioningState?: ProvisioningState; - /** Defines how many resources can there be created at any given time. */ - maximumConcurrency?: number; - /** Defines the organization in which the pool will be used. */ - organizationProfile?: OrganizationProfileUnion; - /** Defines how the machine will be handled once it executed a job. */ - agentProfile?: AgentProfileUpdateUnion; - /** Defines the type of fabric the agent will run on. */ - fabricProfile?: FabricProfileUnion; - /** The resource id of the DevCenter Project the pool belongs to. */ - devCenterProjectResourceId?: string; -} - -/** The agent profile of the machines in the pool. */ -export interface AgentProfileUpdate { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Stateful" | "Stateless"; - /** Defines pool buffer/stand-by agents. */ - resourcePredictions?: Record; - /** Defines how the pool buffer/stand-by agents is provided. */ - resourcePredictionsProfile?: ResourcePredictionsProfileUpdateUnion; -} - -/** Determines how the stand-by scheme should be provided. */ -export interface ResourcePredictionsProfileUpdate { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Automatic" | "Manual"; -} - -/** The response of a ResourceDetailsObject list operation. */ -export interface ResourceDetailsObjectListResult { - /** The ResourceDetailsObject items on this page */ - value: ResourceDetailsObject[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Details of the ResourceDetailsObject. */ -export interface ResourceDetailsObjectProperties { - /** The status of the resource. */ - status: ResourceStatus; - /** The image name of the resource. */ - image: string; - /** The version of the image running on the resource. */ - imageVersion: string; -} - -/** Defines an Azure DevOps organization. */ -export interface Organization { - /** The Azure DevOps organization URL in which the pool should be created. */ - url: string; - /** Optional list of projects in which the pool should be created. */ - projects?: string[]; - /** How many machines can be created at maximum in this organization out of the maximumConcurrency of the pool. */ - parallelism?: number; -} - -/** Defines the type of Azure DevOps pool permission. */ -export interface AzureDevOpsPermissionProfile { - /** Determines who has admin permissions to the Azure DevOps pool. */ - kind: AzureDevOpsPermissionType; - /** User email addresses */ - users?: string[]; - /** Group email addresses */ - groups?: string[]; -} - -/** The data disk of the VMSS. */ -export interface DataDisk { - /** The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. */ - caching?: CachingType; - /** The initial disk size in gigabytes. */ - diskSizeGiB?: number; - /** The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs". */ - storageAccountType?: StorageAccountType; - /** The drive letter for the empty data disk. If not specified, it will be the first available letter. */ - driveLetter?: string; -} - -/** The Azure SKU of the machines in the pool. */ -export interface DevOpsAzureSku { - /** The Azure SKU name of the machines in the pool. */ - name: string; -} - -/** Defines a GitHub organization */ -export interface GitHubOrganization { - /** The GitHub organization URL in which the pool should be created. */ - url: string; - /** Optional list of repositories in which the pool should be created. */ - repositories?: string[]; -} - -/** The network profile of the machines in the pool. */ -export interface NetworkProfile { - /** The subnet id on which to put all machines created in the pool. */ - subnetId: string; -} - -/** The OS profile of the machines in the pool. */ -export interface OsProfile { - /** The secret management settings of the machines in the pool. */ - secretsManagementSettings?: SecretsManagementSettings; - /** Determines how the service should be run. By default, this will be set to Service. */ - logonType?: LogonType; -} - -/** The secret management settings of the machines in the pool. */ -export interface SecretsManagementSettings { - /** Where to store certificates on the machine. */ - certificateStoreLocation?: string; - /** The list of certificates to install on all machines in the pool. */ - observedCertificates: string[]; - /** Defines if the key of the certificates should be exportable. */ - keyExportable: boolean; -} - -/** The VM image of the machines in the pool. */ -export interface PoolImage { - /** The resource id of the image. */ - resourceId?: string; - /** The image to use from a well-known set of images made available to customers. */ - wellKnownImageName?: string; - /** List of aliases to reference the image by. */ - aliases?: string[]; - /** The percentage of the buffer to be allocated to this image. */ - buffer?: string; -} - -/** The storage profile of the VMSS. */ -export interface StorageProfile { - /** The Azure SKU name of the machines in the pool. */ - osDiskStorageAccountType?: OsDiskStorageAccountType; - /** A list of empty data disks to attach. */ - dataDisks?: DataDisk[]; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The geo-location where the resource lives */ - location: string; -} - -/** Azure DevOps organization profile */ -export interface AzureDevOpsOrganizationProfile extends OrganizationProfile { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "AzureDevOps"; - /** The list of Azure DevOps organizations the pool should be present in. */ - organizations: Organization[]; - /** The type of permission which determines which accounts are admins on the Azure DevOps pool. */ - permissionProfile?: AzureDevOpsPermissionProfile; -} - -/** GitHub organization profile */ -export interface GitHubOrganizationProfile extends OrganizationProfile { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "GitHub"; - /** The list of GitHub organizations/repositories the pool should be present in. */ - organizations: GitHubOrganization[]; -} - -/** Stateful profile meaning that the machines will be returned to the pool after running a job. */ -export interface Stateful extends AgentProfile { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Stateful"; - /** How long should stateful machines be kept around. The maximum is one week. */ - maxAgentLifetime?: string; - /** How long should the machine be kept around after it ran a workload when there are no stand-by agents. The maximum is one week. */ - gracePeriodTimeSpan?: string; -} - -/** Stateless profile meaning that the machines will be cleaned up after running a job. */ -export interface StatelessAgentProfile extends AgentProfile { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Stateless"; -} - -/** The stand-by agent scheme is determined based on historical demand. */ -export interface AutomaticResourcePredictionsProfile - extends ResourcePredictionsProfile { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Automatic"; - /** Determines the balance between cost and performance. */ - predictionPreference?: PredictionPreference; -} - -/** Customer provides the stand-by agent scheme. */ -export interface ManualResourcePredictionsProfile - extends ResourcePredictionsProfile { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Manual"; -} - -/** The agents will run on Virtual Machine Scale Sets. */ -export interface VmssFabricProfile extends FabricProfile { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Vmss"; - /** The Azure SKU of the machines in the pool. */ - sku: DevOpsAzureSku; - /** The VM images of the machines in the pool. */ - images: PoolImage[]; - /** The OS profile of the machines in the pool. */ - osProfile?: OsProfile; - /** The storage profile of the machines in the pool. */ - storageProfile?: StorageProfile; - /** The network profile of the machines in the pool. */ - networkProfile?: NetworkProfile; -} - -/** Stateful profile meaning that the machines will be returned to the pool after running a job. */ -export interface StatefulUpdate extends AgentProfileUpdate { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Stateful"; - /** How long should stateful machines be kept around. The maximum is one week. */ - maxAgentLifetime?: string; - /** How long should the machine be kept around after it ran a workload when there are no stand-by agents. The maximum is one week. */ - gracePeriodTimeSpan?: string; -} - -/** Stateless profile meaning that the machines will be cleaned up after running a job. */ -export interface StatelessAgentProfileUpdate extends AgentProfileUpdate { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Stateless"; -} - -/** The stand-by agent scheme is determined based on historical demand. */ -export interface AutomaticResourcePredictionsProfileUpdate - extends ResourcePredictionsProfileUpdate { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Automatic"; - /** Determines the balance between cost and performance. */ - predictionPreference?: PredictionPreference; -} - -/** Customer provides the stand-by agent scheme. */ -export interface ManualResourcePredictionsProfileUpdate - extends ResourcePredictionsProfileUpdate { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Manual"; -} - -/** A ResourceSku */ -export interface ResourceSku extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: ResourceSkuProperties; -} - -/** Describes Resource Quota */ -export interface Quota extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: QuotaProperties; -} - -/** An image version object */ -export interface ImageVersion extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: ImageVersionProperties; -} - -/** A ResourceDetailsObject */ -export interface ResourceDetailsObject extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: ResourceDetailsObjectProperties; -} - -/** Concrete tracked resource types can be created by aliasing this type using a specific property type. */ -export interface Pool extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: PoolProperties; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; -} - -/** Defines headers for Pools_createOrUpdate operation. */ -export interface PoolsCreateOrUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for Pools_update operation. */ -export interface PoolsUpdateHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for Pools_delete operation. */ -export interface PoolsDeleteHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Known values of {@link Origin} that the service accepts. */ -export enum KnownOrigin { - /** User */ - User = "user", - /** System */ - System = "system", - /** UserSystem */ - UserSystem = "user,system", -} - -/** - * Defines values for Origin. \ - * {@link KnownOrigin} can be used interchangeably with Origin, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **user** \ - * **system** \ - * **user,system** - */ -export type Origin = string; - -/** Known values of {@link ActionType} that the service accepts. */ -export enum KnownActionType { - /** Internal */ - Internal = "Internal", -} - -/** - * Defines values for ActionType. \ - * {@link KnownActionType} can be used interchangeably with ActionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Internal** - */ -export type ActionType = string; - -/** Known values of {@link ResourceSkuRestrictionsType} that the service accepts. */ -export enum KnownResourceSkuRestrictionsType { - /** Location */ - Location = "Location", - /** Zone */ - Zone = "Zone", -} - -/** - * Defines values for ResourceSkuRestrictionsType. \ - * {@link KnownResourceSkuRestrictionsType} can be used interchangeably with ResourceSkuRestrictionsType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Location** \ - * **Zone** - */ -export type ResourceSkuRestrictionsType = string; - -/** Known values of {@link ResourceSkuRestrictionsReasonCode} that the service accepts. */ -export enum KnownResourceSkuRestrictionsReasonCode { - /** QuotaId */ - QuotaId = "QuotaId", - /** NotAvailableForSubscription */ - NotAvailableForSubscription = "NotAvailableForSubscription", -} - -/** - * Defines values for ResourceSkuRestrictionsReasonCode. \ - * {@link KnownResourceSkuRestrictionsReasonCode} can be used interchangeably with ResourceSkuRestrictionsReasonCode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **QuotaId** \ - * **NotAvailableForSubscription** - */ -export type ResourceSkuRestrictionsReasonCode = string; - -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key", -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Represents a succeeded operation. */ - Succeeded = "Succeeded", - /** Represents a failed operation. */ - Failed = "Failed", - /** Represents a canceled operation. */ - Canceled = "Canceled", - /** Represents a pending operation. */ - Provisioning = "Provisioning", - /** Represents a pending operation. */ - Updating = "Updating", - /** Represents an operation under deletion. */ - Deleting = "Deleting", - /** Represents an accepted operation. */ - Accepted = "Accepted", -} - -/** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded**: Represents a succeeded operation. \ - * **Failed**: Represents a failed operation. \ - * **Canceled**: Represents a canceled operation. \ - * **Provisioning**: Represents a pending operation. \ - * **Updating**: Represents a pending operation. \ - * **Deleting**: Represents an operation under deletion. \ - * **Accepted**: Represents an accepted operation. - */ -export type ProvisioningState = string; - -/** Known values of {@link ResourcePredictionsProfileType} that the service accepts. */ -export enum KnownResourcePredictionsProfileType { - /** Customer provides the stand-by agent scheme. */ - Manual = "Manual", - /** The stand-by agent scheme is determined based on historical demand. */ - Automatic = "Automatic", -} - -/** - * Defines values for ResourcePredictionsProfileType. \ - * {@link KnownResourcePredictionsProfileType} can be used interchangeably with ResourcePredictionsProfileType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Manual**: Customer provides the stand-by agent scheme. \ - * **Automatic**: The stand-by agent scheme is determined based on historical demand. - */ -export type ResourcePredictionsProfileType = string; - -/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ -export enum KnownManagedServiceIdentityType { - /** None */ - None = "None", - /** SystemAssigned */ - SystemAssigned = "SystemAssigned", - /** UserAssigned */ - UserAssigned = "UserAssigned", - /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", -} - -/** - * Defines values for ManagedServiceIdentityType. \ - * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned,UserAssigned** - */ -export type ManagedServiceIdentityType = string; - -/** Known values of {@link ResourceStatus} that the service accepts. */ -export enum KnownResourceStatus { - /** Represents a machine resource that is ready. */ - Ready = "Ready", - /** Represents a machine resource that is not ready. */ - NotReady = "NotReady", - /** Represents a machine resource that is allocated. */ - Allocated = "Allocated", - /** Represents a machine resource that is pending return. */ - PendingReturn = "PendingReturn", - /** Represents a machine resource that is returned. */ - Returned = "Returned", - /** Represents a machine resource that is leased. */ - Leased = "Leased", - /** Represents a machine resource that is provisioning. */ - Provisioning = "Provisioning", - /** Represents a machine resource that is updating. */ - Updating = "Updating", - /** Represents a machine resource that is starting. */ - Starting = "Starting", - /** Represents a machine resource that is pending reimage. */ - PendingReimage = "PendingReimage", - /** Represents a machine resource that is reimaging. */ - Reimaging = "Reimaging", -} - -/** - * Defines values for ResourceStatus. \ - * {@link KnownResourceStatus} can be used interchangeably with ResourceStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Ready**: Represents a machine resource that is ready. \ - * **NotReady**: Represents a machine resource that is not ready. \ - * **Allocated**: Represents a machine resource that is allocated. \ - * **PendingReturn**: Represents a machine resource that is pending return. \ - * **Returned**: Represents a machine resource that is returned. \ - * **Leased**: Represents a machine resource that is leased. \ - * **Provisioning**: Represents a machine resource that is provisioning. \ - * **Updating**: Represents a machine resource that is updating. \ - * **Starting**: Represents a machine resource that is starting. \ - * **PendingReimage**: Represents a machine resource that is pending reimage. \ - * **Reimaging**: Represents a machine resource that is reimaging. - */ -export type ResourceStatus = string; - -/** Known values of {@link PredictionPreference} that the service accepts. */ -export enum KnownPredictionPreference { - /** Balance between cost and performance. */ - Balanced = "Balanced", - /** Optimizes for cost over performance. */ - MostCostEffective = "MostCostEffective", - /** Halfway through cost and balanced. */ - MoreCostEffective = "MoreCostEffective", - /** Halfway through balanced and performance. */ - MorePerformance = "MorePerformance", - /** Optimizes for performance over cost. */ - BestPerformance = "BestPerformance", -} - -/** - * Defines values for PredictionPreference. \ - * {@link KnownPredictionPreference} can be used interchangeably with PredictionPreference, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Balanced**: Balance between cost and performance. \ - * **MostCostEffective**: Optimizes for cost over performance. \ - * **MoreCostEffective**: Halfway through cost and balanced. \ - * **MorePerformance**: Halfway through balanced and performance. \ - * **BestPerformance**: Optimizes for performance over cost. - */ -export type PredictionPreference = string; - -/** Known values of {@link AzureDevOpsPermissionType} that the service accepts. */ -export enum KnownAzureDevOpsPermissionType { - /** Pool will inherit permissions from the project or organization. */ - Inherit = "Inherit", - /** Only the pool creator will be an admin of the pool. */ - CreatorOnly = "CreatorOnly", - /** Only the specified accounts will be admins of the pool. */ - SpecificAccounts = "SpecificAccounts", -} - -/** - * Defines values for AzureDevOpsPermissionType. \ - * {@link KnownAzureDevOpsPermissionType} can be used interchangeably with AzureDevOpsPermissionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Inherit**: Pool will inherit permissions from the project or organization. \ - * **CreatorOnly**: Only the pool creator will be an admin of the pool. \ - * **SpecificAccounts**: Only the specified accounts will be admins of the pool. - */ -export type AzureDevOpsPermissionType = string; - -/** Known values of {@link CachingType} that the service accepts. */ -export enum KnownCachingType { - /** Don't use host caching. */ - None = "None", - /** For workloads that only do read operations. */ - ReadOnly = "ReadOnly", - /** For workloads that do a balance of read and write operations. */ - ReadWrite = "ReadWrite", -} - -/** - * Defines values for CachingType. \ - * {@link KnownCachingType} can be used interchangeably with CachingType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: Don't use host caching. \ - * **ReadOnly**: For workloads that only do read operations. \ - * **ReadWrite**: For workloads that do a balance of read and write operations. - */ -export type CachingType = string; - -/** Known values of {@link StorageAccountType} that the service accepts. */ -export enum KnownStorageAccountType { - /** The data disk should use standard locally redundant storage. */ - StandardLRS = "Standard_LRS", - /** The data disk should use premium locally redundant storage. */ - PremiumLRS = "Premium_LRS", - /** The data disk should use standard SSD locally redundant storage. */ - StandardSsdlrs = "StandardSSD_LRS", - /** The data disk should use premium SSD zonal redundant storage. */ - PremiumZRS = "Premium_ZRS", - /** The data disk should use standard SSD zonal redundant storage. */ - StandardSsdzrs = "StandardSSD_ZRS", -} - -/** - * Defines values for StorageAccountType. \ - * {@link KnownStorageAccountType} can be used interchangeably with StorageAccountType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Standard_LRS**: The data disk should use standard locally redundant storage. \ - * **Premium_LRS**: The data disk should use premium locally redundant storage. \ - * **StandardSSD_LRS**: The data disk should use standard SSD locally redundant storage. \ - * **Premium_ZRS**: The data disk should use premium SSD zonal redundant storage. \ - * **StandardSSD_ZRS**: The data disk should use standard SSD zonal redundant storage. - */ -export type StorageAccountType = string; - -/** Known values of {@link LogonType} that the service accepts. */ -export enum KnownLogonType { - /** Run as a service. */ - Service = "Service", - /** Run in interactive mode. */ - Interactive = "Interactive", -} - -/** - * Defines values for LogonType. \ - * {@link KnownLogonType} can be used interchangeably with LogonType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Service**: Run as a service. \ - * **Interactive**: Run in interactive mode. - */ -export type LogonType = string; - -/** Known values of {@link OsDiskStorageAccountType} that the service accepts. */ -export enum KnownOsDiskStorageAccountType { - /** Standard OS disk type. */ - Standard = "Standard", - /** Premium OS disk type. */ - Premium = "Premium", - /** Standard SSD OS disk type. */ - StandardSSD = "StandardSSD", -} - -/** - * Defines values for OsDiskStorageAccountType. \ - * {@link KnownOsDiskStorageAccountType} can be used interchangeably with OsDiskStorageAccountType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Standard**: Standard OS disk type. \ - * **Premium**: Premium OS disk type. \ - * **StandardSSD**: Standard SSD OS disk type. - */ -export type OsDiskStorageAccountType = string; - -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; - -/** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; - -/** Optional parameters. */ -export interface SkuListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type SkuListByLocationResponse = ResourceSkuListResult; - -/** Optional parameters. */ -export interface SkuListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type SkuListByLocationNextResponse = ResourceSkuListResult; - -/** Optional parameters. */ -export interface SubscriptionUsagesListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type SubscriptionUsagesListByLocationResponse = QuotaListResult; - -/** Optional parameters. */ -export interface SubscriptionUsagesListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type SubscriptionUsagesListByLocationNextResponse = QuotaListResult; - -/** Optional parameters. */ -export interface PoolsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type PoolsListBySubscriptionResponse = PoolListResult; - -/** Optional parameters. */ -export interface PoolsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type PoolsListByResourceGroupResponse = PoolListResult; - -/** Optional parameters. */ -export interface PoolsGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type PoolsGetResponse = Pool; - -/** Optional parameters. */ -export interface PoolsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type PoolsCreateOrUpdateResponse = Pool; - -/** Optional parameters. */ -export interface PoolsUpdateOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type PoolsUpdateResponse = Pool; - -/** Optional parameters. */ -export interface PoolsDeleteOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type PoolsDeleteResponse = PoolsDeleteHeaders; - -/** Optional parameters. */ -export interface PoolsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type PoolsListBySubscriptionNextResponse = PoolListResult; - -/** Optional parameters. */ -export interface PoolsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type PoolsListByResourceGroupNextResponse = PoolListResult; - -/** Optional parameters. */ -export interface ImageVersionsListByImageOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByImage operation. */ -export type ImageVersionsListByImageResponse = ImageVersionListResult; - -/** Optional parameters. */ -export interface ImageVersionsListByImageNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByImageNext operation. */ -export type ImageVersionsListByImageNextResponse = ImageVersionListResult; - -/** Optional parameters. */ -export interface ResourceDetailsListByPoolOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByPool operation. */ -export type ResourceDetailsListByPoolResponse = ResourceDetailsObjectListResult; - -/** Optional parameters. */ -export interface ResourceDetailsListByPoolNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByPoolNext operation. */ -export type ResourceDetailsListByPoolNextResponse = - ResourceDetailsObjectListResult; - -/** Optional parameters. */ -export interface ManagedDevOpsInfrastructureOptionalParams - extends coreClient.ServiceClientOptions { - /** server parameter */ - $host?: string; - /** Api Version */ - apiVersion?: string; - /** Overrides client endpoint. */ - endpoint?: string; -} +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +export { + ImageVersion, + ImageVersionProperties, + ProxyResource, + Resource, + SystemData, + KnownCreatedByType, + CreatedByType, + Quota, + QuotaName, + ResourceSku, + ResourceSkuProperties, + ResourceSkuLocationInfo, + ResourceSkuZoneDetails, + ResourceSkuCapabilities, + ResourceSkuRestrictions, + KnownResourceSkuRestrictionsType, + ResourceSkuRestrictionsType, + ResourceSkuRestrictionInfo, + KnownResourceSkuRestrictionsReasonCode, + ResourceSkuRestrictionsReasonCode, + ResourceDetailsObject, + ResourceDetailsObjectProperties, + KnownResourceStatus, + ResourceStatus, + Pool, + PoolProperties, + KnownProvisioningState, + ProvisioningState, + OrganizationProfile, + OrganizationProfileUnion, + GitHubOrganizationProfile, + GitHubOrganization, + AzureDevOpsOrganizationProfile, + Organization, + AzureDevOpsPermissionProfile, + KnownAzureDevOpsPermissionType, + AzureDevOpsPermissionType, + AgentProfile, + AgentProfileUnion, + ResourcePredictions, + ResourcePredictionsProfile, + ResourcePredictionsProfileUnion, + KnownResourcePredictionsProfileType, + ResourcePredictionsProfileType, + ManualResourcePredictionsProfile, + AutomaticResourcePredictionsProfile, + KnownPredictionPreference, + PredictionPreference, + StatelessAgentProfile, + Stateful, + FabricProfile, + FabricProfileUnion, + VmssFabricProfile, + DevOpsAzureSku, + PoolImage, + OsProfile, + SecretsManagementSettings, + KnownLogonType, + LogonType, + StorageProfile, + KnownOsDiskStorageAccountType, + OsDiskStorageAccountType, + DataDisk, + KnownCachingType, + CachingType, + KnownStorageAccountType, + StorageAccountType, + NetworkProfile, + ManagedServiceIdentity, + KnownManagedServiceIdentityType, + ManagedServiceIdentityType, + UserAssignedIdentity, + TrackedResource, + PoolUpdate, + PoolUpdateProperties, + Operation, + OperationDisplay, + KnownOrigin, + Origin, + KnownActionType, + ActionType, + KnownVersions, +} from "./models.js"; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/mappers.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/mappers.ts deleted file mode 100644 index 4275dbcfc96d..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/mappers.ts +++ /dev/null @@ -1,1899 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; - -export const OperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const Operation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - isDataAction: { - serializedName: "isDataAction", - readOnly: true, - type: { - name: "Boolean", - }, - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay", - }, - }, - origin: { - serializedName: "origin", - readOnly: true, - type: { - name: "String", - }, - }, - actionType: { - serializedName: "actionType", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String", - }, - }, - resource: { - serializedName: "resource", - readOnly: true, - type: { - name: "String", - }, - }, - operation: { - serializedName: "operation", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetail", - }, - }, - }, - }, -}; - -export const ErrorDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorDetail", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String", - }, - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String", - }, - }, - target: { - serializedName: "target", - readOnly: true, - type: { - name: "String", - }, - }, - details: { - serializedName: "details", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail", - }, - }, - }, - }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - }, - }, - }, - }, - }, - }, -}; - -export const ErrorAdditionalInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - info: { - serializedName: "info", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } }, - }, - }, - }, - }, -}; - -export const ResourceSkuListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSku", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ResourceSkuProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuProperties", - modelProperties: { - resourceType: { - serializedName: "resourceType", - required: true, - type: { - name: "String", - }, - }, - tier: { - serializedName: "tier", - required: true, - type: { - name: "String", - }, - }, - size: { - serializedName: "size", - required: true, - type: { - name: "String", - }, - }, - family: { - serializedName: "family", - required: true, - type: { - name: "String", - }, - }, - locations: { - serializedName: "locations", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - locationInfo: { - serializedName: "locationInfo", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuLocationInfo", - }, - }, - }, - }, - capabilities: { - serializedName: "capabilities", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuCapabilities", - }, - }, - }, - }, - restrictions: { - serializedName: "restrictions", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuRestrictions", - }, - }, - }, - }, - }, - }, -}; - -export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuLocationInfo", - modelProperties: { - location: { - serializedName: "location", - required: true, - type: { - name: "String", - }, - }, - zones: { - serializedName: "zones", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - zoneDetails: { - serializedName: "zoneDetails", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuZoneDetails", - }, - }, - }, - }, - }, - }, -}; - -export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuZoneDetails", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - capabilities: { - serializedName: "capabilities", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuCapabilities", - }, - }, - }, - }, - }, - }, -}; - -export const ResourceSkuCapabilities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuCapabilities", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - value: { - serializedName: "value", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ResourceSkuRestrictions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuRestrictions", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String", - }, - }, - values: { - serializedName: "values", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - restrictionInfo: { - serializedName: "restrictionInfo", - type: { - name: "Composite", - className: "ResourceSkuRestrictionInfo", - }, - }, - reasonCode: { - serializedName: "reasonCode", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuRestrictionInfo", - modelProperties: { - locations: { - serializedName: "locations", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - zones: { - serializedName: "zones", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - }, - }, - }, - }, -}; - -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String", - }, - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String", - }, - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime", - }, - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String", - }, - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String", - }, - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime", - }, - }, - }, - }, -}; - -export const QuotaListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QuotaListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Quota", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const QuotaProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QuotaProperties", - modelProperties: { - unit: { - serializedName: "unit", - required: true, - type: { - name: "String", - }, - }, - currentValue: { - serializedName: "currentValue", - required: true, - type: { - name: "Number", - }, - }, - limit: { - serializedName: "limit", - required: true, - type: { - name: "Number", - }, - }, - name: { - serializedName: "name", - type: { - name: "Composite", - className: "QuotaName", - }, - }, - }, - }, -}; - -export const QuotaName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QuotaName", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "String", - }, - }, - localizedValue: { - serializedName: "localizedValue", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const PoolListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PoolListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Pool", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const PoolProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PoolProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - type: { - name: "String", - }, - }, - maximumConcurrency: { - constraints: { - InclusiveMaximum: 10000, - InclusiveMinimum: 1, - }, - serializedName: "maximumConcurrency", - required: true, - type: { - name: "Number", - }, - }, - organizationProfile: { - serializedName: "organizationProfile", - type: { - name: "Composite", - className: "OrganizationProfile", - }, - }, - agentProfile: { - serializedName: "agentProfile", - type: { - name: "Composite", - className: "AgentProfile", - }, - }, - fabricProfile: { - serializedName: "fabricProfile", - type: { - name: "Composite", - className: "FabricProfile", - }, - }, - devCenterProjectResourceId: { - serializedName: "devCenterProjectResourceId", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const OrganizationProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OrganizationProfile", - uberParent: "OrganizationProfile", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, - modelProperties: { - kind: { - serializedName: "kind", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AgentProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentProfile", - uberParent: "AgentProfile", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, - modelProperties: { - kind: { - serializedName: "kind", - required: true, - type: { - name: "String", - }, - }, - resourcePredictions: { - serializedName: "resourcePredictions", - type: { - name: "Dictionary", - value: { type: { name: "any" } }, - }, - }, - resourcePredictionsProfile: { - serializedName: "resourcePredictionsProfile", - type: { - name: "Composite", - className: "ResourcePredictionsProfile", - }, - }, - }, - }, -}; - -export const ResourcePredictionsProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourcePredictionsProfile", - uberParent: "ResourcePredictionsProfile", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, - modelProperties: { - kind: { - serializedName: "kind", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const FabricProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FabricProfile", - uberParent: "FabricProfile", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, - modelProperties: { - kind: { - serializedName: "kind", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ManagedServiceIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedServiceIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "Uuid", - }, - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "Uuid", - }, - }, - type: { - serializedName: "type", - required: true, - type: { - name: "String", - }, - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserAssignedIdentity" }, - }, - }, - }, - }, - }, -}; - -export const UserAssignedIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserAssignedIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "Uuid", - }, - }, - clientId: { - serializedName: "clientId", - readOnly: true, - type: { - name: "Uuid", - }, - }, - }, - }, -}; - -export const ImageVersionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageVersionListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ImageVersion", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ImageVersionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageVersionProperties", - modelProperties: { - version: { - serializedName: "version", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const PoolUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PoolUpdate", - modelProperties: { - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity", - }, - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "PoolUpdateProperties", - }, - }, - }, - }, -}; - -export const PoolUpdateProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PoolUpdateProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - type: { - name: "String", - }, - }, - maximumConcurrency: { - constraints: { - InclusiveMaximum: 10000, - InclusiveMinimum: 1, - }, - serializedName: "maximumConcurrency", - type: { - name: "Number", - }, - }, - organizationProfile: { - serializedName: "organizationProfile", - type: { - name: "Composite", - className: "OrganizationProfile", - }, - }, - agentProfile: { - serializedName: "agentProfile", - type: { - name: "Composite", - className: "AgentProfileUpdate", - }, - }, - fabricProfile: { - serializedName: "fabricProfile", - type: { - name: "Composite", - className: "FabricProfile", - }, - }, - devCenterProjectResourceId: { - serializedName: "devCenterProjectResourceId", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AgentProfileUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentProfileUpdate", - uberParent: "AgentProfileUpdate", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, - modelProperties: { - kind: { - serializedName: "kind", - required: true, - type: { - name: "String", - }, - }, - resourcePredictions: { - serializedName: "resourcePredictions", - type: { - name: "Dictionary", - value: { type: { name: "any" } }, - }, - }, - resourcePredictionsProfile: { - serializedName: "resourcePredictionsProfile", - type: { - name: "Composite", - className: "ResourcePredictionsProfileUpdate", - }, - }, - }, - }, -}; - -export const ResourcePredictionsProfileUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourcePredictionsProfileUpdate", - uberParent: "ResourcePredictionsProfileUpdate", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, - modelProperties: { - kind: { - serializedName: "kind", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ResourceDetailsObjectListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceDetailsObjectListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceDetailsObject", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ResourceDetailsObjectProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceDetailsObjectProperties", - modelProperties: { - status: { - serializedName: "status", - required: true, - type: { - name: "String", - }, - }, - image: { - serializedName: "image", - required: true, - type: { - name: "String", - }, - }, - imageVersion: { - serializedName: "imageVersion", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const Organization: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Organization", - modelProperties: { - url: { - serializedName: "url", - required: true, - type: { - name: "String", - }, - }, - projects: { - serializedName: "projects", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - parallelism: { - serializedName: "parallelism", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const AzureDevOpsPermissionProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureDevOpsPermissionProfile", - modelProperties: { - kind: { - serializedName: "kind", - required: true, - type: { - name: "String", - }, - }, - users: { - serializedName: "users", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - groups: { - serializedName: "groups", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const DataDisk: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataDisk", - modelProperties: { - caching: { - serializedName: "caching", - type: { - name: "String", - }, - }, - diskSizeGiB: { - serializedName: "diskSizeGiB", - type: { - name: "Number", - }, - }, - storageAccountType: { - serializedName: "storageAccountType", - type: { - name: "String", - }, - }, - driveLetter: { - serializedName: "driveLetter", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DevOpsAzureSku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DevOpsAzureSku", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const GitHubOrganization: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GitHubOrganization", - modelProperties: { - url: { - serializedName: "url", - required: true, - type: { - name: "String", - }, - }, - repositories: { - serializedName: "repositories", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const NetworkProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkProfile", - modelProperties: { - subnetId: { - serializedName: "subnetId", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const OsProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OsProfile", - modelProperties: { - secretsManagementSettings: { - serializedName: "secretsManagementSettings", - type: { - name: "Composite", - className: "SecretsManagementSettings", - }, - }, - logonType: { - serializedName: "logonType", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const SecretsManagementSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecretsManagementSettings", - modelProperties: { - certificateStoreLocation: { - serializedName: "certificateStoreLocation", - type: { - name: "String", - }, - }, - observedCertificates: { - serializedName: "observedCertificates", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - keyExportable: { - serializedName: "keyExportable", - required: true, - type: { - name: "Boolean", - }, - }, - }, - }, -}; - -export const PoolImage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PoolImage", - modelProperties: { - resourceId: { - serializedName: "resourceId", - type: { - name: "String", - }, - }, - wellKnownImageName: { - serializedName: "wellKnownImageName", - type: { - name: "String", - }, - }, - aliases: { - serializedName: "aliases", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - buffer: { - defaultValue: "*", - serializedName: "buffer", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const StorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageProfile", - modelProperties: { - osDiskStorageAccountType: { - serializedName: "osDiskStorageAccountType", - type: { - name: "String", - }, - }, - dataDisks: { - serializedName: "dataDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataDisk", - }, - }, - }, - }, - }, - }, -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties, - }, - }, -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AzureDevOpsOrganizationProfile: coreClient.CompositeMapper = { - serializedName: "AzureDevOps", - type: { - name: "Composite", - className: "AzureDevOpsOrganizationProfile", - uberParent: "OrganizationProfile", - polymorphicDiscriminator: OrganizationProfile.type.polymorphicDiscriminator, - modelProperties: { - ...OrganizationProfile.type.modelProperties, - organizations: { - serializedName: "organizations", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Organization", - }, - }, - }, - }, - permissionProfile: { - serializedName: "permissionProfile", - type: { - name: "Composite", - className: "AzureDevOpsPermissionProfile", - }, - }, - }, - }, -}; - -export const GitHubOrganizationProfile: coreClient.CompositeMapper = { - serializedName: "GitHub", - type: { - name: "Composite", - className: "GitHubOrganizationProfile", - uberParent: "OrganizationProfile", - polymorphicDiscriminator: OrganizationProfile.type.polymorphicDiscriminator, - modelProperties: { - ...OrganizationProfile.type.modelProperties, - organizations: { - serializedName: "organizations", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GitHubOrganization", - }, - }, - }, - }, - }, - }, -}; - -export const Stateful: coreClient.CompositeMapper = { - serializedName: "Stateful", - type: { - name: "Composite", - className: "Stateful", - uberParent: "AgentProfile", - polymorphicDiscriminator: AgentProfile.type.polymorphicDiscriminator, - modelProperties: { - ...AgentProfile.type.modelProperties, - maxAgentLifetime: { - serializedName: "maxAgentLifetime", - type: { - name: "String", - }, - }, - gracePeriodTimeSpan: { - serializedName: "gracePeriodTimeSpan", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const StatelessAgentProfile: coreClient.CompositeMapper = { - serializedName: "Stateless", - type: { - name: "Composite", - className: "StatelessAgentProfile", - uberParent: "AgentProfile", - polymorphicDiscriminator: AgentProfile.type.polymorphicDiscriminator, - modelProperties: { - ...AgentProfile.type.modelProperties, - }, - }, -}; - -export const AutomaticResourcePredictionsProfile: coreClient.CompositeMapper = { - serializedName: "Automatic", - type: { - name: "Composite", - className: "AutomaticResourcePredictionsProfile", - uberParent: "ResourcePredictionsProfile", - polymorphicDiscriminator: - ResourcePredictionsProfile.type.polymorphicDiscriminator, - modelProperties: { - ...ResourcePredictionsProfile.type.modelProperties, - predictionPreference: { - serializedName: "predictionPreference", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ManualResourcePredictionsProfile: coreClient.CompositeMapper = { - serializedName: "Manual", - type: { - name: "Composite", - className: "ManualResourcePredictionsProfile", - uberParent: "ResourcePredictionsProfile", - polymorphicDiscriminator: - ResourcePredictionsProfile.type.polymorphicDiscriminator, - modelProperties: { - ...ResourcePredictionsProfile.type.modelProperties, - }, - }, -}; - -export const VmssFabricProfile: coreClient.CompositeMapper = { - serializedName: "Vmss", - type: { - name: "Composite", - className: "VmssFabricProfile", - uberParent: "FabricProfile", - polymorphicDiscriminator: FabricProfile.type.polymorphicDiscriminator, - modelProperties: { - ...FabricProfile.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "DevOpsAzureSku", - }, - }, - images: { - serializedName: "images", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PoolImage", - }, - }, - }, - }, - osProfile: { - serializedName: "osProfile", - type: { - name: "Composite", - className: "OsProfile", - }, - }, - storageProfile: { - serializedName: "storageProfile", - type: { - name: "Composite", - className: "StorageProfile", - }, - }, - networkProfile: { - serializedName: "networkProfile", - type: { - name: "Composite", - className: "NetworkProfile", - }, - }, - }, - }, -}; - -export const StatefulUpdate: coreClient.CompositeMapper = { - serializedName: "Stateful", - type: { - name: "Composite", - className: "StatefulUpdate", - uberParent: "AgentProfileUpdate", - polymorphicDiscriminator: AgentProfileUpdate.type.polymorphicDiscriminator, - modelProperties: { - ...AgentProfileUpdate.type.modelProperties, - maxAgentLifetime: { - serializedName: "maxAgentLifetime", - type: { - name: "String", - }, - }, - gracePeriodTimeSpan: { - serializedName: "gracePeriodTimeSpan", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const StatelessAgentProfileUpdate: coreClient.CompositeMapper = { - serializedName: "Stateless", - type: { - name: "Composite", - className: "StatelessAgentProfileUpdate", - uberParent: "AgentProfileUpdate", - polymorphicDiscriminator: AgentProfileUpdate.type.polymorphicDiscriminator, - modelProperties: { - ...AgentProfileUpdate.type.modelProperties, - }, - }, -}; - -export const AutomaticResourcePredictionsProfileUpdate: coreClient.CompositeMapper = - { - serializedName: "Automatic", - type: { - name: "Composite", - className: "AutomaticResourcePredictionsProfileUpdate", - uberParent: "ResourcePredictionsProfileUpdate", - polymorphicDiscriminator: - ResourcePredictionsProfileUpdate.type.polymorphicDiscriminator, - modelProperties: { - ...ResourcePredictionsProfileUpdate.type.modelProperties, - predictionPreference: { - serializedName: "predictionPreference", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const ManualResourcePredictionsProfileUpdate: coreClient.CompositeMapper = - { - serializedName: "Manual", - type: { - name: "Composite", - className: "ManualResourcePredictionsProfileUpdate", - uberParent: "ResourcePredictionsProfileUpdate", - polymorphicDiscriminator: - ResourcePredictionsProfileUpdate.type.polymorphicDiscriminator, - modelProperties: { - ...ResourcePredictionsProfileUpdate.type.modelProperties, - }, - }, - }; - -export const ResourceSku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSku", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ResourceSkuProperties", - }, - }, - }, - }, -}; - -export const Quota: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Quota", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "QuotaProperties", - }, - }, - }, - }, -}; - -export const ImageVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageVersion", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ImageVersionProperties", - }, - }, - }, - }, -}; - -export const ResourceDetailsObject: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceDetailsObject", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ResourceDetailsObjectProperties", - }, - }, - }, - }, -}; - -export const Pool: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Pool", - modelProperties: { - ...TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "PoolProperties", - }, - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity", - }, - }, - }, - }, -}; - -export const PoolsCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PoolsCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const PoolsUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PoolsUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const PoolsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PoolsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export let discriminators = { - OrganizationProfile: OrganizationProfile, - AgentProfile: AgentProfile, - ResourcePredictionsProfile: ResourcePredictionsProfile, - FabricProfile: FabricProfile, - AgentProfileUpdate: AgentProfileUpdate, - ResourcePredictionsProfileUpdate: ResourcePredictionsProfileUpdate, - "OrganizationProfile.AzureDevOps": AzureDevOpsOrganizationProfile, - "OrganizationProfile.GitHub": GitHubOrganizationProfile, - "AgentProfile.Stateful": Stateful, - "AgentProfile.Stateless": StatelessAgentProfile, - "ResourcePredictionsProfile.Automatic": AutomaticResourcePredictionsProfile, - "ResourcePredictionsProfile.Manual": ManualResourcePredictionsProfile, - "FabricProfile.Vmss": VmssFabricProfile, - "AgentProfileUpdate.Stateful": StatefulUpdate, - "AgentProfileUpdate.Stateless": StatelessAgentProfileUpdate, - "ResourcePredictionsProfileUpdate.Automatic": - AutomaticResourcePredictionsProfileUpdate, - "ResourcePredictionsProfileUpdate.Manual": - ManualResourcePredictionsProfileUpdate, -}; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/models.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/models.ts new file mode 100644 index 000000000000..5c04d4458f29 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/models.ts @@ -0,0 +1,1882 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** The response of a ImageVersion list operation. */ +export interface _ImageVersionListResult { + /** The ImageVersion items on this page */ + value: ImageVersion[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _imageVersionListResultDeserializer(item: any): _ImageVersionListResult { + return { + value: imageVersionArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function imageVersionArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return imageVersionDeserializer(item); + }); +} + +/** An image version object */ +export interface ImageVersion extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: ImageVersionProperties; +} + +export function imageVersionDeserializer(item: any): ImageVersion { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : imageVersionPropertiesDeserializer(item["properties"]), + }; +} + +/** Details of the ImageVersionProperties. */ +export interface ImageVersionProperties { + /** Version of the image. */ + version: string; +} + +export function imageVersionPropertiesDeserializer(item: any): ImageVersionProperties { + return { + version: item["version"], + }; +} + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +export function proxyResourceDeserializer(item: any): ProxyResource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + }; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ + readonly id?: string; + /** The name of the resource */ + readonly name?: string; + /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ + readonly type?: string; + /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ + readonly systemData?: SystemData; +} + +export function resourceSerializer(item: Resource): any { + return item; +} + +export function resourceDeserializer(item: any): Resource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + }; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +export function systemDataDeserializer(item: any): SystemData { + return { + createdBy: item["createdBy"], + createdByType: item["createdByType"], + createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]), + lastModifiedBy: item["lastModifiedBy"], + lastModifiedByType: item["lastModifiedByType"], + lastModifiedAt: !item["lastModifiedAt"] + ? item["lastModifiedAt"] + : new Date(item["lastModifiedAt"]), + }; +} + +/** The kind of entity that created the resource. */ +export enum KnownCreatedByType { + /** The entity was created by a user. */ + User = "User", + /** The entity was created by an application. */ + Application = "Application", + /** The entity was created by a managed identity. */ + ManagedIdentity = "ManagedIdentity", + /** The entity was created by a key. */ + Key = "Key", +} + +/** + * The kind of entity that created the resource. \ + * {@link KnowncreatedByType} can be used interchangeably with createdByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User**: The entity was created by a user. \ + * **Application**: The entity was created by an application. \ + * **ManagedIdentity**: The entity was created by a managed identity. \ + * **Key**: The entity was created by a key. + */ +export type CreatedByType = string; + +/** Paged collection of Quota items */ +export interface _PagedQuota { + /** The Quota items on this page */ + value: Quota[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _pagedQuotaDeserializer(item: any): _PagedQuota { + return { + value: quotaArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function quotaArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return quotaDeserializer(item); + }); +} + +/** Describes Resource Quota */ +export interface Quota { + /** The name of the quota. */ + readonly name?: QuotaName; + /** Fully qualified ARM resource id */ + id: string; + /** The unit of usage measurement. */ + unit: string; + /** The current usage of the resource. */ + currentValue: number; + /** The maximum permitted usage of the resource. */ + limit: number; +} + +export function quotaDeserializer(item: any): Quota { + return { + name: !item["name"] ? item["name"] : quotaNameDeserializer(item["name"]), + id: item["id"], + unit: item["unit"], + currentValue: item["currentValue"], + limit: item["limit"], + }; +} + +/** The Quota Names */ +export interface QuotaName { + /** The name of the resource. */ + value?: string; + /** The localized name of the resource. */ + localizedValue?: string; +} + +export function quotaNameDeserializer(item: any): QuotaName { + return { + value: item["value"], + localizedValue: item["localizedValue"], + }; +} + +/** The response of a ResourceSku list operation. */ +export interface _ResourceSkuListResult { + /** The ResourceSku items on this page */ + value: ResourceSku[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _resourceSkuListResultDeserializer(item: any): _ResourceSkuListResult { + return { + value: resourceSkuArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function resourceSkuArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return resourceSkuDeserializer(item); + }); +} + +/** A ResourceSku */ +export interface ResourceSku extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: ResourceSkuProperties; +} + +export function resourceSkuDeserializer(item: any): ResourceSku { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : resourceSkuPropertiesDeserializer(item["properties"]), + }; +} + +/** Properties of a ResourceSku */ +export interface ResourceSkuProperties { + /** The type of resource the SKU applies to. */ + resourceType: string; + /** The tier of virtual machines in a scale set */ + tier: string; + /** The size of the SKU. */ + size: string; + /** The family of the SKU. */ + family: string; + /** The set of locations that the SKU is available. */ + locations: string[]; + /** A list of locations and availability zones in those locations where the SKU is available */ + locationInfo: ResourceSkuLocationInfo[]; + /** Name value pairs to describe the capability. */ + capabilities: ResourceSkuCapabilities[]; + /** The restrictions of the SKU. */ + restrictions: ResourceSkuRestrictions[]; +} + +export function resourceSkuPropertiesDeserializer(item: any): ResourceSkuProperties { + return { + resourceType: item["resourceType"], + tier: item["tier"], + size: item["size"], + family: item["family"], + locations: item["locations"].map((p: any) => { + return p; + }), + locationInfo: resourceSkuLocationInfoArrayDeserializer(item["locationInfo"]), + capabilities: resourceSkuCapabilitiesArrayDeserializer(item["capabilities"]), + restrictions: resourceSkuRestrictionsArrayDeserializer(item["restrictions"]), + }; +} + +export function resourceSkuLocationInfoArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return resourceSkuLocationInfoDeserializer(item); + }); +} + +/** Describes an available Compute SKU Location Information. */ +export interface ResourceSkuLocationInfo { + /** Location of the SKU */ + location: string; + /** List of availability zones where the SKU is supported. */ + zones: string[]; + /** Gets details of capabilities available to a SKU in specific zones. */ + zoneDetails: ResourceSkuZoneDetails[]; +} + +export function resourceSkuLocationInfoDeserializer(item: any): ResourceSkuLocationInfo { + return { + location: item["location"], + zones: item["zones"].map((p: any) => { + return p; + }), + zoneDetails: resourceSkuZoneDetailsArrayDeserializer(item["zoneDetails"]), + }; +} + +export function resourceSkuZoneDetailsArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return resourceSkuZoneDetailsDeserializer(item); + }); +} + +/** Describes The zonal capabilities of a SKU. */ +export interface ResourceSkuZoneDetails { + /** Gets the set of zones that the SKU is available in with the specified capabilities. */ + name: string[]; + /** A list of capabilities that are available for the SKU in the specified list of zones. */ + capabilities: ResourceSkuCapabilities[]; +} + +export function resourceSkuZoneDetailsDeserializer(item: any): ResourceSkuZoneDetails { + return { + name: item["name"].map((p: any) => { + return p; + }), + capabilities: resourceSkuCapabilitiesArrayDeserializer(item["capabilities"]), + }; +} + +export function resourceSkuCapabilitiesArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return resourceSkuCapabilitiesDeserializer(item); + }); +} + +/** Describes The SKU capabilities object. */ +export interface ResourceSkuCapabilities { + /** The name of the SKU capability. */ + name: string; + /** The value of the SKU capability. */ + value: string; +} + +export function resourceSkuCapabilitiesDeserializer(item: any): ResourceSkuCapabilities { + return { + name: item["name"], + value: item["value"], + }; +} + +export function resourceSkuRestrictionsArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return resourceSkuRestrictionsDeserializer(item); + }); +} + +/** The restrictions of the SKU. */ +export interface ResourceSkuRestrictions { + /** the type of restrictions. */ + type?: ResourceSkuRestrictionsType; + /** The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. */ + values: string[]; + /** The information about the restriction where the SKU cannot be used. */ + restrictionInfo: ResourceSkuRestrictionInfo; + /** the reason for restriction. */ + reasonCode?: ResourceSkuRestrictionsReasonCode; +} + +export function resourceSkuRestrictionsDeserializer(item: any): ResourceSkuRestrictions { + return { + type: item["type"], + values: item["values"].map((p: any) => { + return p; + }), + restrictionInfo: resourceSkuRestrictionInfoDeserializer(item["restrictionInfo"]), + reasonCode: item["reasonCode"], + }; +} + +/** Describes the kind of SKU restrictions that can exist */ +export enum KnownResourceSkuRestrictionsType { + /** SKU restricted by location. */ + Location = "Location", + /** SKU restricted by availability zone. */ + Zone = "Zone", +} + +/** + * Describes the kind of SKU restrictions that can exist \ + * {@link KnownResourceSkuRestrictionsType} can be used interchangeably with ResourceSkuRestrictionsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Location**: SKU restricted by location. \ + * **Zone**: SKU restricted by availability zone. + */ +export type ResourceSkuRestrictionsType = string; + +/** Describes an available Compute SKU Restriction Information. */ +export interface ResourceSkuRestrictionInfo { + /** Locations where the SKU is restricted */ + locations?: string[]; + /** List of availability zones where the SKU is restricted. */ + zones?: string[]; +} + +export function resourceSkuRestrictionInfoDeserializer(item: any): ResourceSkuRestrictionInfo { + return { + locations: !item["locations"] + ? item["locations"] + : item["locations"].map((p: any) => { + return p; + }), + zones: !item["zones"] + ? item["zones"] + : item["zones"].map((p: any) => { + return p; + }), + }; +} + +/** Describes the reason for SKU restriction. */ +export enum KnownResourceSkuRestrictionsReasonCode { + /** The restriction is due to exceeding a quota limitation. */ + QuotaId = "QuotaId", + /** The restriction is not available for this subscription. */ + NotAvailableForSubscription = "NotAvailableForSubscription", +} + +/** + * Describes the reason for SKU restriction. \ + * {@link KnownResourceSkuRestrictionsReasonCode} can be used interchangeably with ResourceSkuRestrictionsReasonCode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **QuotaId**: The restriction is due to exceeding a quota limitation. \ + * **NotAvailableForSubscription**: The restriction is not available for this subscription. + */ +export type ResourceSkuRestrictionsReasonCode = string; + +/** The response of a ResourceDetailsObject list operation. */ +export interface _ResourceDetailsObjectListResult { + /** The ResourceDetailsObject items on this page */ + value: ResourceDetailsObject[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _resourceDetailsObjectListResultDeserializer( + item: any, +): _ResourceDetailsObjectListResult { + return { + value: resourceDetailsObjectArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function resourceDetailsObjectArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return resourceDetailsObjectDeserializer(item); + }); +} + +/** A ResourceDetailsObject */ +export interface ResourceDetailsObject extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: ResourceDetailsObjectProperties; +} + +export function resourceDetailsObjectDeserializer(item: any): ResourceDetailsObject { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : resourceDetailsObjectPropertiesDeserializer(item["properties"]), + }; +} + +/** Details of the ResourceDetailsObject. */ +export interface ResourceDetailsObjectProperties { + /** The status of the resource. */ + status: ResourceStatus; + /** The image name of the resource. */ + image: string; + /** The version of the image running on the resource. */ + imageVersion: string; +} + +export function resourceDetailsObjectPropertiesDeserializer( + item: any, +): ResourceDetailsObjectProperties { + return { + status: item["status"], + image: item["image"], + imageVersion: item["imageVersion"], + }; +} + +/** The status of the machine resource. */ +export enum KnownResourceStatus { + /** Represents a machine resource that is ready. */ + Ready = "Ready", + /** Represents a machine resource that is not ready. */ + NotReady = "NotReady", + /** Represents a machine resource that is allocated. */ + Allocated = "Allocated", + /** Represents a machine resource that is pending return. */ + PendingReturn = "PendingReturn", + /** Represents a machine resource that is returned. */ + Returned = "Returned", + /** Represents a machine resource that is leased. */ + Leased = "Leased", + /** Represents a machine resource that is provisioning. */ + Provisioning = "Provisioning", + /** Represents a machine resource that is updating. */ + Updating = "Updating", + /** Represents a machine resource that is starting. */ + Starting = "Starting", + /** Represents a machine resource that is pending reimage. */ + PendingReimage = "PendingReimage", + /** Represents a machine resource that is reimaging. */ + Reimaging = "Reimaging", +} + +/** + * The status of the machine resource. \ + * {@link KnownResourceStatus} can be used interchangeably with ResourceStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Ready**: Represents a machine resource that is ready. \ + * **NotReady**: Represents a machine resource that is not ready. \ + * **Allocated**: Represents a machine resource that is allocated. \ + * **PendingReturn**: Represents a machine resource that is pending return. \ + * **Returned**: Represents a machine resource that is returned. \ + * **Leased**: Represents a machine resource that is leased. \ + * **Provisioning**: Represents a machine resource that is provisioning. \ + * **Updating**: Represents a machine resource that is updating. \ + * **Starting**: Represents a machine resource that is starting. \ + * **PendingReimage**: Represents a machine resource that is pending reimage. \ + * **Reimaging**: Represents a machine resource that is reimaging. + */ +export type ResourceStatus = string; + +/** Concrete tracked resource types can be created by aliasing this type using a specific property type. */ +export interface Pool extends TrackedResource { + /** The resource-specific properties for this resource. */ + properties?: PoolProperties; + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; +} + +export function poolSerializer(item: Pool): any { + return { + tags: item["tags"], + location: item["location"], + properties: !item["properties"] + ? item["properties"] + : poolPropertiesSerializer(item["properties"]), + identity: !item["identity"] + ? item["identity"] + : managedServiceIdentitySerializer(item["identity"]), + }; +} + +export function poolDeserializer(item: any): Pool { + return { + tags: item["tags"], + location: item["location"], + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : poolPropertiesDeserializer(item["properties"]), + identity: !item["identity"] + ? item["identity"] + : managedServiceIdentityDeserializer(item["identity"]), + }; +} + +/** Pool properties */ +export interface PoolProperties { + /** The status of the current operation. */ + provisioningState?: ProvisioningState; + /** Defines how many resources can there be created at any given time. */ + maximumConcurrency: number; + /** Defines the organization in which the pool will be used. */ + organizationProfile: OrganizationProfileUnion; + /** Defines how the machine will be handled once it executed a job. */ + agentProfile: AgentProfileUnion; + /** Defines the type of fabric the agent will run on. */ + fabricProfile: FabricProfileUnion; + /** The resource id of the DevCenter Project the pool belongs to. */ + devCenterProjectResourceId: string; +} + +export function poolPropertiesSerializer(item: PoolProperties): any { + return { + provisioningState: item["provisioningState"], + maximumConcurrency: item["maximumConcurrency"], + organizationProfile: organizationProfileUnionSerializer(item["organizationProfile"]), + agentProfile: agentProfileUnionSerializer(item["agentProfile"]), + fabricProfile: fabricProfileUnionSerializer(item["fabricProfile"]), + devCenterProjectResourceId: item["devCenterProjectResourceId"], + }; +} + +export function poolPropertiesDeserializer(item: any): PoolProperties { + return { + provisioningState: item["provisioningState"], + maximumConcurrency: item["maximumConcurrency"], + organizationProfile: organizationProfileUnionDeserializer(item["organizationProfile"]), + agentProfile: agentProfileUnionDeserializer(item["agentProfile"]), + fabricProfile: fabricProfileUnionDeserializer(item["fabricProfile"]), + devCenterProjectResourceId: item["devCenterProjectResourceId"], + }; +} + +/** The status of the current operation. */ +export enum KnownProvisioningState { + /** Represents a succeeded operation. */ + Succeeded = "Succeeded", + /** Represents a failed operation. */ + Failed = "Failed", + /** Represents a canceled operation. */ + Canceled = "Canceled", + /** Represents a pending operation. */ + Provisioning = "Provisioning", + /** Represents a pending operation. */ + Updating = "Updating", + /** Represents an operation under deletion. */ + Deleting = "Deleting", + /** Represents an accepted operation. */ + Accepted = "Accepted", +} + +/** + * The status of the current operation. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded**: Represents a succeeded operation. \ + * **Failed**: Represents a failed operation. \ + * **Canceled**: Represents a canceled operation. \ + * **Provisioning**: Represents a pending operation. \ + * **Updating**: Represents a pending operation. \ + * **Deleting**: Represents an operation under deletion. \ + * **Accepted**: Represents an accepted operation. + */ +export type ProvisioningState = string; + +/** Defines the organization in which the pool will be used. */ +export interface OrganizationProfile { + /** Discriminator property for OrganizationProfile. */ + /** The discriminator possible values: GitHub, AzureDevOps */ + kind: string; +} + +export function organizationProfileSerializer(item: OrganizationProfile): any { + return { kind: item["kind"] }; +} + +export function organizationProfileDeserializer(item: any): OrganizationProfile { + return { + kind: item["kind"], + }; +} + +/** Alias for OrganizationProfileUnion */ +export type OrganizationProfileUnion = + | GitHubOrganizationProfile + | AzureDevOpsOrganizationProfile + | OrganizationProfile; + +export function organizationProfileUnionSerializer(item: OrganizationProfileUnion): any { + switch (item.kind) { + case "GitHub": + return gitHubOrganizationProfileSerializer(item as GitHubOrganizationProfile); + + case "AzureDevOps": + return azureDevOpsOrganizationProfileSerializer(item as AzureDevOpsOrganizationProfile); + + default: + return organizationProfileSerializer(item); + } +} + +export function organizationProfileUnionDeserializer(item: any): OrganizationProfileUnion { + switch (item.kind) { + case "GitHub": + return gitHubOrganizationProfileDeserializer(item as GitHubOrganizationProfile); + + case "AzureDevOps": + return azureDevOpsOrganizationProfileDeserializer(item as AzureDevOpsOrganizationProfile); + + default: + return organizationProfileDeserializer(item); + } +} + +/** GitHub organization profile */ +export interface GitHubOrganizationProfile extends OrganizationProfile { + /** GitHub organization profile */ + kind: "GitHub"; + /** The list of GitHub organizations/repositories the pool should be present in. */ + organizations: GitHubOrganization[]; +} + +export function gitHubOrganizationProfileSerializer(item: GitHubOrganizationProfile): any { + return { + kind: item["kind"], + organizations: gitHubOrganizationArraySerializer(item["organizations"]), + }; +} + +export function gitHubOrganizationProfileDeserializer(item: any): GitHubOrganizationProfile { + return { + kind: item["kind"], + organizations: gitHubOrganizationArrayDeserializer(item["organizations"]), + }; +} + +export function gitHubOrganizationArraySerializer(result: Array): any[] { + return result.map((item) => { + return gitHubOrganizationSerializer(item); + }); +} + +export function gitHubOrganizationArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return gitHubOrganizationDeserializer(item); + }); +} + +/** Defines a GitHub organization */ +export interface GitHubOrganization { + /** The GitHub organization URL in which the pool should be created. */ + url: string; + /** Optional list of repositories in which the pool should be created. */ + repositories?: string[]; +} + +export function gitHubOrganizationSerializer(item: GitHubOrganization): any { + return { + url: item["url"], + repositories: !item["repositories"] + ? item["repositories"] + : item["repositories"].map((p: any) => { + return p; + }), + }; +} + +export function gitHubOrganizationDeserializer(item: any): GitHubOrganization { + return { + url: item["url"], + repositories: !item["repositories"] + ? item["repositories"] + : item["repositories"].map((p: any) => { + return p; + }), + }; +} + +/** Azure DevOps organization profile */ +export interface AzureDevOpsOrganizationProfile extends OrganizationProfile { + /** Azure DevOps organization profile */ + kind: "AzureDevOps"; + /** The list of Azure DevOps organizations the pool should be present in. */ + organizations: Organization[]; + /** The type of permission which determines which accounts are admins on the Azure DevOps pool. */ + permissionProfile?: AzureDevOpsPermissionProfile; +} + +export function azureDevOpsOrganizationProfileSerializer( + item: AzureDevOpsOrganizationProfile, +): any { + return { + kind: item["kind"], + organizations: organizationArraySerializer(item["organizations"]), + permissionProfile: !item["permissionProfile"] + ? item["permissionProfile"] + : azureDevOpsPermissionProfileSerializer(item["permissionProfile"]), + }; +} + +export function azureDevOpsOrganizationProfileDeserializer( + item: any, +): AzureDevOpsOrganizationProfile { + return { + kind: item["kind"], + organizations: organizationArrayDeserializer(item["organizations"]), + permissionProfile: !item["permissionProfile"] + ? item["permissionProfile"] + : azureDevOpsPermissionProfileDeserializer(item["permissionProfile"]), + }; +} + +export function organizationArraySerializer(result: Array): any[] { + return result.map((item) => { + return organizationSerializer(item); + }); +} + +export function organizationArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return organizationDeserializer(item); + }); +} + +/** Defines an Azure DevOps organization. */ +export interface Organization { + /** The Azure DevOps organization URL in which the pool should be created. */ + url: string; + /** Optional list of projects in which the pool should be created. */ + projects?: string[]; + /** How many machines can be created at maximum in this organization out of the maximumConcurrency of the pool. */ + parallelism?: number; +} + +export function organizationSerializer(item: Organization): any { + return { + url: item["url"], + projects: !item["projects"] + ? item["projects"] + : item["projects"].map((p: any) => { + return p; + }), + parallelism: item["parallelism"], + }; +} + +export function organizationDeserializer(item: any): Organization { + return { + url: item["url"], + projects: !item["projects"] + ? item["projects"] + : item["projects"].map((p: any) => { + return p; + }), + parallelism: item["parallelism"], + }; +} + +/** Defines the type of Azure DevOps pool permission. */ +export interface AzureDevOpsPermissionProfile { + /** Determines who has admin permissions to the Azure DevOps pool. */ + kind: AzureDevOpsPermissionType; + /** User email addresses */ + users?: string[]; + /** Group email addresses */ + groups?: string[]; +} + +export function azureDevOpsPermissionProfileSerializer(item: AzureDevOpsPermissionProfile): any { + return { + kind: item["kind"], + users: !item["users"] + ? item["users"] + : item["users"].map((p: any) => { + return p; + }), + groups: !item["groups"] + ? item["groups"] + : item["groups"].map((p: any) => { + return p; + }), + }; +} + +export function azureDevOpsPermissionProfileDeserializer(item: any): AzureDevOpsPermissionProfile { + return { + kind: item["kind"], + users: !item["users"] + ? item["users"] + : item["users"].map((p: any) => { + return p; + }), + groups: !item["groups"] + ? item["groups"] + : item["groups"].map((p: any) => { + return p; + }), + }; +} + +/** Determines who has admin permissions to the Azure DevOps pool. */ +export enum KnownAzureDevOpsPermissionType { + /** Pool will inherit permissions from the project or organization. */ + Inherit = "Inherit", + /** Only the pool creator will be an admin of the pool. */ + CreatorOnly = "CreatorOnly", + /** Only the specified accounts will be admins of the pool. */ + SpecificAccounts = "SpecificAccounts", +} + +/** + * Determines who has admin permissions to the Azure DevOps pool. \ + * {@link KnownAzureDevOpsPermissionType} can be used interchangeably with AzureDevOpsPermissionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Inherit**: Pool will inherit permissions from the project or organization. \ + * **CreatorOnly**: Only the pool creator will be an admin of the pool. \ + * **SpecificAccounts**: Only the specified accounts will be admins of the pool. + */ +export type AzureDevOpsPermissionType = string; + +/** The agent profile of the machines in the pool. */ +export interface AgentProfile { + /** Discriminator property for AgentProfile. */ + /** The discriminator possible values: Stateless, Stateful */ + kind: string; + /** Defines pool buffer/stand-by agents. */ + resourcePredictions?: ResourcePredictions; + /** Defines how the pool buffer/stand-by agents is provided. */ + resourcePredictionsProfile?: ResourcePredictionsProfileUnion; +} + +export function agentProfileSerializer(item: AgentProfile): any { + return { + resourcePredictions: !item["resourcePredictions"] + ? item["resourcePredictions"] + : resourcePredictionsSerializer(item["resourcePredictions"]), + resourcePredictionsProfile: !item["resourcePredictionsProfile"] + ? item["resourcePredictionsProfile"] + : resourcePredictionsProfileUnionSerializer(item["resourcePredictionsProfile"]), + kind: item["kind"], + }; +} + +export function agentProfileDeserializer(item: any): AgentProfile { + return { + resourcePredictions: !item["resourcePredictions"] + ? item["resourcePredictions"] + : resourcePredictionsDeserializer(item["resourcePredictions"]), + resourcePredictionsProfile: !item["resourcePredictionsProfile"] + ? item["resourcePredictionsProfile"] + : resourcePredictionsProfileUnionDeserializer(item["resourcePredictionsProfile"]), + kind: item["kind"], + }; +} + +/** Alias for AgentProfileUnion */ +export type AgentProfileUnion = StatelessAgentProfile | Stateful | AgentProfile; + +export function agentProfileUnionSerializer(item: AgentProfileUnion): any { + switch (item.kind) { + case "Stateless": + return statelessAgentProfileSerializer(item as StatelessAgentProfile); + + case "Stateful": + return statefulSerializer(item as Stateful); + + default: + return agentProfileSerializer(item); + } +} + +export function agentProfileUnionDeserializer(item: any): AgentProfileUnion { + switch (item.kind) { + case "Stateless": + return statelessAgentProfileDeserializer(item as StatelessAgentProfile); + + case "Stateful": + return statefulDeserializer(item as Stateful); + + default: + return agentProfileDeserializer(item); + } +} + +/** Defines pool buffer. */ +export interface ResourcePredictions {} + +export function resourcePredictionsSerializer(item: ResourcePredictions): any { + return item; +} + +export function resourcePredictionsDeserializer(item: any): ResourcePredictions { + return item; +} + +/** Determines how the stand-by scheme should be provided. */ +export interface ResourcePredictionsProfile { + /** Determines how the stand-by scheme should be provided. */ + /** The discriminator possible values: Manual, Automatic */ + kind: ResourcePredictionsProfileType; +} + +export function resourcePredictionsProfileSerializer(item: ResourcePredictionsProfile): any { + return { kind: item["kind"] }; +} + +export function resourcePredictionsProfileDeserializer(item: any): ResourcePredictionsProfile { + return { + kind: item["kind"], + }; +} + +/** Alias for ResourcePredictionsProfileUnion */ +export type ResourcePredictionsProfileUnion = + | ManualResourcePredictionsProfile + | AutomaticResourcePredictionsProfile + | ResourcePredictionsProfile; + +export function resourcePredictionsProfileUnionSerializer( + item: ResourcePredictionsProfileUnion, +): any { + switch (item.kind) { + case "Manual": + return manualResourcePredictionsProfileSerializer(item as ManualResourcePredictionsProfile); + + case "Automatic": + return automaticResourcePredictionsProfileSerializer( + item as AutomaticResourcePredictionsProfile, + ); + + default: + return resourcePredictionsProfileSerializer(item); + } +} + +export function resourcePredictionsProfileUnionDeserializer( + item: any, +): ResourcePredictionsProfileUnion { + switch (item.kind) { + case "Manual": + return manualResourcePredictionsProfileDeserializer(item as ManualResourcePredictionsProfile); + + case "Automatic": + return automaticResourcePredictionsProfileDeserializer( + item as AutomaticResourcePredictionsProfile, + ); + + default: + return resourcePredictionsProfileDeserializer(item); + } +} + +/** Determines how the stand-by scheme should be provided. */ +export enum KnownResourcePredictionsProfileType { + /** Customer provides the stand-by agent scheme. */ + Manual = "Manual", + /** The stand-by agent scheme is determined based on historical demand. */ + Automatic = "Automatic", +} + +/** + * Determines how the stand-by scheme should be provided. \ + * {@link KnownResourcePredictionsProfileType} can be used interchangeably with ResourcePredictionsProfileType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Manual**: Customer provides the stand-by agent scheme. \ + * **Automatic**: The stand-by agent scheme is determined based on historical demand. + */ +export type ResourcePredictionsProfileType = string; + +/** Customer provides the stand-by agent scheme. */ +export interface ManualResourcePredictionsProfile extends ResourcePredictionsProfile { + /** Customer provides the stand-by agent scheme. */ + kind: "Manual"; +} + +export function manualResourcePredictionsProfileSerializer( + item: ManualResourcePredictionsProfile, +): any { + return { kind: item["kind"] }; +} + +export function manualResourcePredictionsProfileDeserializer( + item: any, +): ManualResourcePredictionsProfile { + return { + kind: item["kind"], + }; +} + +/** The stand-by agent scheme is determined based on historical demand. */ +export interface AutomaticResourcePredictionsProfile extends ResourcePredictionsProfile { + /** The stand-by agent scheme is determined based on historical demand. */ + kind: "Automatic"; + /** Determines the balance between cost and performance. */ + predictionPreference?: PredictionPreference; +} + +export function automaticResourcePredictionsProfileSerializer( + item: AutomaticResourcePredictionsProfile, +): any { + return { + kind: item["kind"], + predictionPreference: item["predictionPreference"], + }; +} + +export function automaticResourcePredictionsProfileDeserializer( + item: any, +): AutomaticResourcePredictionsProfile { + return { + kind: item["kind"], + predictionPreference: item["predictionPreference"], + }; +} + +/** Determines the balance between cost and performance. */ +export enum KnownPredictionPreference { + /** Balance between cost and performance. */ + Balanced = "Balanced", + /** Optimizes for cost over performance. */ + MostCostEffective = "MostCostEffective", + /** Halfway through cost and balanced. */ + MoreCostEffective = "MoreCostEffective", + /** Halfway through balanced and performance. */ + MorePerformance = "MorePerformance", + /** Optimizes for performance over cost. */ + BestPerformance = "BestPerformance", +} + +/** + * Determines the balance between cost and performance. \ + * {@link KnownPredictionPreference} can be used interchangeably with PredictionPreference, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Balanced**: Balance between cost and performance. \ + * **MostCostEffective**: Optimizes for cost over performance. \ + * **MoreCostEffective**: Halfway through cost and balanced. \ + * **MorePerformance**: Halfway through balanced and performance. \ + * **BestPerformance**: Optimizes for performance over cost. + */ +export type PredictionPreference = string; + +/** Stateless profile meaning that the machines will be cleaned up after running a job. */ +export interface StatelessAgentProfile extends AgentProfile { + /** Stateless profile meaning that the machines will be cleaned up after running a job. */ + kind: "Stateless"; +} + +export function statelessAgentProfileSerializer(item: StatelessAgentProfile): any { + return { + resourcePredictions: !item["resourcePredictions"] + ? item["resourcePredictions"] + : resourcePredictionsSerializer(item["resourcePredictions"]), + resourcePredictionsProfile: !item["resourcePredictionsProfile"] + ? item["resourcePredictionsProfile"] + : resourcePredictionsProfileUnionSerializer(item["resourcePredictionsProfile"]), + kind: item["kind"], + }; +} + +export function statelessAgentProfileDeserializer(item: any): StatelessAgentProfile { + return { + resourcePredictions: !item["resourcePredictions"] + ? item["resourcePredictions"] + : resourcePredictionsDeserializer(item["resourcePredictions"]), + resourcePredictionsProfile: !item["resourcePredictionsProfile"] + ? item["resourcePredictionsProfile"] + : resourcePredictionsProfileUnionDeserializer(item["resourcePredictionsProfile"]), + kind: item["kind"], + }; +} + +/** Stateful profile meaning that the machines will be returned to the pool after running a job. */ +export interface Stateful extends AgentProfile { + /** Stateful profile meaning that the machines will be returned to the pool after running a job. */ + kind: "Stateful"; + /** How long should stateful machines be kept around. The maximum is one week. */ + maxAgentLifetime?: string; + /** How long should the machine be kept around after it ran a workload when there are no stand-by agents. The maximum is one week. */ + gracePeriodTimeSpan?: string; +} + +export function statefulSerializer(item: Stateful): any { + return { + resourcePredictions: !item["resourcePredictions"] + ? item["resourcePredictions"] + : resourcePredictionsSerializer(item["resourcePredictions"]), + resourcePredictionsProfile: !item["resourcePredictionsProfile"] + ? item["resourcePredictionsProfile"] + : resourcePredictionsProfileUnionSerializer(item["resourcePredictionsProfile"]), + kind: item["kind"], + maxAgentLifetime: item["maxAgentLifetime"], + gracePeriodTimeSpan: item["gracePeriodTimeSpan"], + }; +} + +export function statefulDeserializer(item: any): Stateful { + return { + resourcePredictions: !item["resourcePredictions"] + ? item["resourcePredictions"] + : resourcePredictionsDeserializer(item["resourcePredictions"]), + resourcePredictionsProfile: !item["resourcePredictionsProfile"] + ? item["resourcePredictionsProfile"] + : resourcePredictionsProfileUnionDeserializer(item["resourcePredictionsProfile"]), + kind: item["kind"], + maxAgentLifetime: item["maxAgentLifetime"], + gracePeriodTimeSpan: item["gracePeriodTimeSpan"], + }; +} + +/** Defines the type of fabric the agent will run on. */ +export interface FabricProfile { + /** Discriminator property for FabricProfile. */ + /** The discriminator possible values: Vmss */ + kind: string; +} + +export function fabricProfileSerializer(item: FabricProfile): any { + return { kind: item["kind"] }; +} + +export function fabricProfileDeserializer(item: any): FabricProfile { + return { + kind: item["kind"], + }; +} + +/** Alias for FabricProfileUnion */ +export type FabricProfileUnion = VmssFabricProfile | FabricProfile; + +export function fabricProfileUnionSerializer(item: FabricProfileUnion): any { + switch (item.kind) { + case "Vmss": + return vmssFabricProfileSerializer(item as VmssFabricProfile); + + default: + return fabricProfileSerializer(item); + } +} + +export function fabricProfileUnionDeserializer(item: any): FabricProfileUnion { + switch (item.kind) { + case "Vmss": + return vmssFabricProfileDeserializer(item as VmssFabricProfile); + + default: + return fabricProfileDeserializer(item); + } +} + +/** The agents will run on Virtual Machine Scale Sets. */ +export interface VmssFabricProfile extends FabricProfile { + /** Virtual Machine Scale Sets */ + kind: "Vmss"; + /** The Azure SKU of the machines in the pool. */ + sku: DevOpsAzureSku; + /** The VM images of the machines in the pool. */ + images: PoolImage[]; + /** The OS profile of the machines in the pool. */ + osProfile?: OsProfile; + /** The storage profile of the machines in the pool. */ + storageProfile?: StorageProfile; + /** The network profile of the machines in the pool. */ + networkProfile?: NetworkProfile; +} + +export function vmssFabricProfileSerializer(item: VmssFabricProfile): any { + return { + kind: item["kind"], + sku: devOpsAzureSkuSerializer(item["sku"]), + images: poolImageArraySerializer(item["images"]), + osProfile: !item["osProfile"] ? item["osProfile"] : osProfileSerializer(item["osProfile"]), + storageProfile: !item["storageProfile"] + ? item["storageProfile"] + : storageProfileSerializer(item["storageProfile"]), + networkProfile: !item["networkProfile"] + ? item["networkProfile"] + : networkProfileSerializer(item["networkProfile"]), + }; +} + +export function vmssFabricProfileDeserializer(item: any): VmssFabricProfile { + return { + kind: item["kind"], + sku: devOpsAzureSkuDeserializer(item["sku"]), + images: poolImageArrayDeserializer(item["images"]), + osProfile: !item["osProfile"] ? item["osProfile"] : osProfileDeserializer(item["osProfile"]), + storageProfile: !item["storageProfile"] + ? item["storageProfile"] + : storageProfileDeserializer(item["storageProfile"]), + networkProfile: !item["networkProfile"] + ? item["networkProfile"] + : networkProfileDeserializer(item["networkProfile"]), + }; +} + +/** The Azure SKU of the machines in the pool. */ +export interface DevOpsAzureSku { + /** The Azure SKU name of the machines in the pool. */ + name: string; +} + +export function devOpsAzureSkuSerializer(item: DevOpsAzureSku): any { + return { name: item["name"] }; +} + +export function devOpsAzureSkuDeserializer(item: any): DevOpsAzureSku { + return { + name: item["name"], + }; +} + +export function poolImageArraySerializer(result: Array): any[] { + return result.map((item) => { + return poolImageSerializer(item); + }); +} + +export function poolImageArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return poolImageDeserializer(item); + }); +} + +/** The VM image of the machines in the pool. */ +export interface PoolImage { + /** The resource id of the image. */ + resourceId?: string; + /** The image to use from a well-known set of images made available to customers. */ + wellKnownImageName?: string; + /** List of aliases to reference the image by. */ + aliases?: string[]; + /** The percentage of the buffer to be allocated to this image. */ + buffer?: string; +} + +export function poolImageSerializer(item: PoolImage): any { + return { + resourceId: item["resourceId"], + wellKnownImageName: item["wellKnownImageName"], + aliases: !item["aliases"] + ? item["aliases"] + : item["aliases"].map((p: any) => { + return p; + }), + buffer: item["buffer"], + }; +} + +export function poolImageDeserializer(item: any): PoolImage { + return { + resourceId: item["resourceId"], + wellKnownImageName: item["wellKnownImageName"], + aliases: !item["aliases"] + ? item["aliases"] + : item["aliases"].map((p: any) => { + return p; + }), + buffer: item["buffer"], + }; +} + +/** The OS profile of the machines in the pool. */ +export interface OsProfile { + /** The secret management settings of the machines in the pool. */ + secretsManagementSettings?: SecretsManagementSettings; + /** Determines how the service should be run. By default, this will be set to Service. */ + logonType?: LogonType; +} + +export function osProfileSerializer(item: OsProfile): any { + return { + secretsManagementSettings: !item["secretsManagementSettings"] + ? item["secretsManagementSettings"] + : secretsManagementSettingsSerializer(item["secretsManagementSettings"]), + logonType: item["logonType"], + }; +} + +export function osProfileDeserializer(item: any): OsProfile { + return { + secretsManagementSettings: !item["secretsManagementSettings"] + ? item["secretsManagementSettings"] + : secretsManagementSettingsDeserializer(item["secretsManagementSettings"]), + logonType: item["logonType"], + }; +} + +/** The secret management settings of the machines in the pool. */ +export interface SecretsManagementSettings { + /** Where to store certificates on the machine. */ + certificateStoreLocation?: string; + /** The list of certificates to install on all machines in the pool. */ + observedCertificates: string[]; + /** Defines if the key of the certificates should be exportable. */ + keyExportable: boolean; +} + +export function secretsManagementSettingsSerializer(item: SecretsManagementSettings): any { + return { + certificateStoreLocation: item["certificateStoreLocation"], + observedCertificates: item["observedCertificates"].map((p: any) => { + return p; + }), + keyExportable: item["keyExportable"], + }; +} + +export function secretsManagementSettingsDeserializer(item: any): SecretsManagementSettings { + return { + certificateStoreLocation: item["certificateStoreLocation"], + observedCertificates: item["observedCertificates"].map((p: any) => { + return p; + }), + keyExportable: item["keyExportable"], + }; +} + +/** Determines how the service should be run. */ +export enum KnownLogonType { + /** Run as a service. */ + Service = "Service", + /** Run in interactive mode. */ + Interactive = "Interactive", +} + +/** + * Determines how the service should be run. \ + * {@link KnownLogonType} can be used interchangeably with LogonType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Service**: Run as a service. \ + * **Interactive**: Run in interactive mode. + */ +export type LogonType = string; + +/** The storage profile of the VMSS. */ +export interface StorageProfile { + /** The Azure SKU name of the machines in the pool. */ + osDiskStorageAccountType?: OsDiskStorageAccountType; + /** A list of empty data disks to attach. */ + dataDisks?: DataDisk[]; +} + +export function storageProfileSerializer(item: StorageProfile): any { + return { + osDiskStorageAccountType: item["osDiskStorageAccountType"], + dataDisks: !item["dataDisks"] ? item["dataDisks"] : dataDiskArraySerializer(item["dataDisks"]), + }; +} + +export function storageProfileDeserializer(item: any): StorageProfile { + return { + osDiskStorageAccountType: item["osDiskStorageAccountType"], + dataDisks: !item["dataDisks"] + ? item["dataDisks"] + : dataDiskArrayDeserializer(item["dataDisks"]), + }; +} + +/** The storage account type of the OS disk. */ +export enum KnownOsDiskStorageAccountType { + /** Standard OS disk type. */ + Standard = "Standard", + /** Premium OS disk type. */ + Premium = "Premium", + /** Standard SSD OS disk type. */ + StandardSSD = "StandardSSD", +} + +/** + * The storage account type of the OS disk. \ + * {@link KnownOsDiskStorageAccountType} can be used interchangeably with OsDiskStorageAccountType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard**: Standard OS disk type. \ + * **Premium**: Premium OS disk type. \ + * **StandardSSD**: Standard SSD OS disk type. + */ +export type OsDiskStorageAccountType = string; + +export function dataDiskArraySerializer(result: Array): any[] { + return result.map((item) => { + return dataDiskSerializer(item); + }); +} + +export function dataDiskArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return dataDiskDeserializer(item); + }); +} + +/** The data disk of the VMSS. */ +export interface DataDisk { + /** The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. */ + caching?: CachingType; + /** The initial disk size in gigabytes. */ + diskSizeGiB?: number; + /** The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs". */ + storageAccountType?: StorageAccountType; + /** The drive letter for the empty data disk. If not specified, it will be the first available letter. */ + driveLetter?: string; +} + +export function dataDiskSerializer(item: DataDisk): any { + return { + caching: item["caching"], + diskSizeGiB: item["diskSizeGiB"], + storageAccountType: item["storageAccountType"], + driveLetter: item["driveLetter"], + }; +} + +export function dataDiskDeserializer(item: any): DataDisk { + return { + caching: item["caching"], + diskSizeGiB: item["diskSizeGiB"], + storageAccountType: item["storageAccountType"], + driveLetter: item["driveLetter"], + }; +} + +/** The type of caching in a data disk. */ +export enum KnownCachingType { + /** Don't use host caching. */ + None = "None", + /** For workloads that only do read operations. */ + ReadOnly = "ReadOnly", + /** For workloads that do a balance of read and write operations. */ + ReadWrite = "ReadWrite", +} + +/** + * The type of caching in a data disk. \ + * {@link KnownCachingType} can be used interchangeably with CachingType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Don't use host caching. \ + * **ReadOnly**: For workloads that only do read operations. \ + * **ReadWrite**: For workloads that do a balance of read and write operations. + */ +export type CachingType = string; + +/** StorageAccountType enums */ +export enum KnownStorageAccountType { + /** The data disk should use standard locally redundant storage. */ + StandardLRS = "Standard_LRS", + /** The data disk should use premium locally redundant storage. */ + PremiumLRS = "Premium_LRS", + /** The data disk should use standard SSD locally redundant storage. */ + StandardSSDLRS = "StandardSSD_LRS", + /** The data disk should use premium SSD zonal redundant storage. */ + PremiumZRS = "Premium_ZRS", + /** The data disk should use standard SSD zonal redundant storage. */ + StandardSSDZRS = "StandardSSD_ZRS", +} + +/** + * StorageAccountType enums \ + * {@link KnownStorageAccountType} can be used interchangeably with StorageAccountType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard_LRS**: The data disk should use standard locally redundant storage. \ + * **Premium_LRS**: The data disk should use premium locally redundant storage. \ + * **StandardSSD_LRS**: The data disk should use standard SSD locally redundant storage. \ + * **Premium_ZRS**: The data disk should use premium SSD zonal redundant storage. \ + * **StandardSSD_ZRS**: The data disk should use standard SSD zonal redundant storage. + */ +export type StorageAccountType = string; + +/** The network profile of the machines in the pool. */ +export interface NetworkProfile { + /** The subnet id on which to put all machines created in the pool. */ + subnetId: string; +} + +export function networkProfileSerializer(item: NetworkProfile): any { + return { subnetId: item["subnetId"] }; +} + +export function networkProfileDeserializer(item: any): NetworkProfile { + return { + subnetId: item["subnetId"], + }; +} + +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface ManagedServiceIdentity { + /** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */ + readonly principalId?: string; + /** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */ + readonly tenantId?: string; + /** The type of managed identity assigned to this resource. */ + type: ManagedServiceIdentityType; + /** The identities assigned to this resource by the user. */ + userAssignedIdentities?: Record; +} + +export function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any { + return { + type: item["type"], + userAssignedIdentities: item["userAssignedIdentities"], + }; +} + +export function managedServiceIdentityDeserializer(item: any): ManagedServiceIdentity { + return { + principalId: item["principalId"], + tenantId: item["tenantId"], + type: item["type"], + userAssignedIdentities: item["userAssignedIdentities"], + }; +} + +/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ +export enum KnownManagedServiceIdentityType { + /** No managed identity. */ + None = "None", + /** System assigned managed identity. */ + SystemAssigned = "SystemAssigned", + /** User assigned managed identity. */ + UserAssigned = "UserAssigned", + /** System and user assigned managed identity. */ + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", +} + +/** + * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). \ + * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No managed identity. \ + * **SystemAssigned**: System assigned managed identity. \ + * **UserAssigned**: User assigned managed identity. \ + * **SystemAssigned,UserAssigned**: System and user assigned managed identity. + */ +export type ManagedServiceIdentityType = string; + +/** User assigned identity properties */ +export interface UserAssignedIdentity { + /** The principal ID of the assigned identity. */ + readonly principalId?: string; + /** The client ID of the assigned identity. */ + readonly clientId?: string; +} + +export function userAssignedIdentitySerializer(item: UserAssignedIdentity): any { + return item; +} + +export function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity { + return { + principalId: item["principalId"], + clientId: item["clientId"], + }; +} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: Record; + /** The geo-location where the resource lives */ + location: string; +} + +export function trackedResourceSerializer(item: TrackedResource): any { + return { tags: item["tags"], location: item["location"] }; +} + +export function trackedResourceDeserializer(item: any): TrackedResource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + tags: item["tags"], + location: item["location"], + }; +} + +/** The type used for update operations of the Pool. */ +export interface PoolUpdate { + /** The managed service identities assigned to this resource. */ + identity?: ManagedServiceIdentity; + /** Resource tags. */ + tags?: Record; + /** The resource-specific properties for this resource. */ + properties?: PoolUpdateProperties; +} + +export function poolUpdateSerializer(item: PoolUpdate): any { + return { + identity: !item["identity"] + ? item["identity"] + : managedServiceIdentitySerializer(item["identity"]), + tags: item["tags"], + properties: !item["properties"] + ? item["properties"] + : poolUpdatePropertiesSerializer(item["properties"]), + }; +} + +/** The updatable properties of the Pool. */ +export interface PoolUpdateProperties { + /** The status of the current operation. */ + provisioningState?: ProvisioningState; + /** Defines how many resources can there be created at any given time. */ + maximumConcurrency?: number; + /** Defines the organization in which the pool will be used. */ + organizationProfile?: OrganizationProfileUnion; + /** Defines how the machine will be handled once it executed a job. */ + agentProfile?: AgentProfileUnion; + /** Defines the type of fabric the agent will run on. */ + fabricProfile?: FabricProfileUnion; + /** The resource id of the DevCenter Project the pool belongs to. */ + devCenterProjectResourceId?: string; +} + +export function poolUpdatePropertiesSerializer(item: PoolUpdateProperties): any { + return { + provisioningState: item["provisioningState"], + maximumConcurrency: item["maximumConcurrency"], + organizationProfile: !item["organizationProfile"] + ? item["organizationProfile"] + : organizationProfileUnionSerializer(item["organizationProfile"]), + agentProfile: !item["agentProfile"] + ? item["agentProfile"] + : agentProfileUnionSerializer(item["agentProfile"]), + fabricProfile: !item["fabricProfile"] + ? item["fabricProfile"] + : fabricProfileUnionSerializer(item["fabricProfile"]), + devCenterProjectResourceId: item["devCenterProjectResourceId"], + }; +} + +/** The response of a Pool list operation. */ +export interface _PoolListResult { + /** The Pool items on this page */ + value: Pool[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _poolListResultDeserializer(item: any): _PoolListResult { + return { + value: poolArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function poolArraySerializer(result: Array): any[] { + return result.map((item) => { + return poolSerializer(item); + }); +} + +export function poolArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return poolDeserializer(item); + }); +} + +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface _OperationListResult { + /** The Operation items on this page */ + value: Operation[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _operationListResultDeserializer(item: any): _OperationListResult { + return { + value: operationArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function operationArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return operationDeserializer(item); + }); +} + +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { + /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ + readonly name?: string; + /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + readonly display?: OperationDisplay; + /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ + readonly origin?: Origin; + /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ + actionType?: ActionType; +} + +export function operationDeserializer(item: any): Operation { + return { + name: item["name"], + isDataAction: item["isDataAction"], + display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]), + origin: item["origin"], + actionType: item["actionType"], + }; +} + +/** Localized display information for and operation. */ +export interface OperationDisplay { + /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ + readonly provider?: string; + /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ + readonly resource?: string; + /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ + readonly operation?: string; + /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ + readonly description?: string; +} + +export function operationDisplayDeserializer(item: any): OperationDisplay { + return { + provider: item["provider"], + resource: item["resource"], + operation: item["operation"], + description: item["description"], + }; +} + +/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ +export enum KnownOrigin { + /** Indicates the operation is initiated by a user. */ + User = "user", + /** Indicates the operation is initiated by a system. */ + System = "system", + /** Indicates the operation is initiated by a user or system. */ + UserSystem = "user,system", +} + +/** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" \ + * {@link KnownOrigin} can be used interchangeably with Origin, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **user**: Indicates the operation is initiated by a user. \ + * **system**: Indicates the operation is initiated by a system. \ + * **user,system**: Indicates the operation is initiated by a user or system. + */ +export type Origin = string; + +/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ +export enum KnownActionType { + /** Actions are for internal-only APIs. */ + Internal = "Internal", +} + +/** + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. \ + * {@link KnownActionType} can be used interchangeably with ActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Internal**: Actions are for internal-only APIs. + */ +export type ActionType = string; + +/** Api versions */ +export enum KnownVersions { + /** 2024-10-19 version */ + "V2024-10-19" = "2024-10-19", +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/parameters.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/parameters.ts deleted file mode 100644 index 66625c41fed9..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/models/parameters.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - OperationParameter, - OperationURLParameter, - OperationQueryParameter, -} from "@azure/core-client"; -import { - Pool as PoolMapper, - PoolUpdate as PoolUpdateMapper, -} from "../models/mappers"; - -export const accept: OperationParameter = { - parameterPath: "accept", - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Accept", - type: { - name: "String", - }, - }, -}; - -export const $host: OperationURLParameter = { - parameterPath: "$host", - mapper: { - serializedName: "$host", - required: true, - type: { - name: "String", - }, - }, - skipEncoding: true, -}; - -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2024-04-04-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String", - }, - }, -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String", - }, - }, - skipEncoding: true, -}; - -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", - mapper: { - serializedName: "subscriptionId", - required: true, - type: { - name: "Uuid", - }, - }, -}; - -export const locationName: OperationURLParameter = { - parameterPath: "locationName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9-.]*$"), - }, - serializedName: "locationName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - constraints: { - MaxLength: 90, - MinLength: 1, - }, - serializedName: "resourceGroupName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const poolName: OperationURLParameter = { - parameterPath: "poolName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9-.]*$"), - }, - serializedName: "poolName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String", - }, - }, -}; - -export const resource: OperationParameter = { - parameterPath: "resource", - mapper: PoolMapper, -}; - -export const properties: OperationParameter = { - parameterPath: "properties", - mapper: PoolUpdateMapper, -}; - -export const imageName: OperationURLParameter = { - parameterPath: "imageName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9-.]*$"), - }, - serializedName: "imageName", - required: true, - type: { - name: "String", - }, - }, -}; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/imageVersions.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/imageVersions.ts deleted file mode 100644 index 9e02da613642..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/imageVersions.ts +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ImageVersions } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ManagedDevOpsInfrastructure } from "../managedDevOpsInfrastructure"; -import { - ImageVersion, - ImageVersionsListByImageNextOptionalParams, - ImageVersionsListByImageOptionalParams, - ImageVersionsListByImageResponse, - ImageVersionsListByImageNextResponse, -} from "../models"; - -/// -/** Class containing ImageVersions operations. */ -export class ImageVersionsImpl implements ImageVersions { - private readonly client: ManagedDevOpsInfrastructure; - - /** - * Initialize a new instance of the class ImageVersions class. - * @param client Reference to the service client - */ - constructor(client: ManagedDevOpsInfrastructure) { - this.client = client; - } - - /** - * List ImageVersion resources by Image - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param imageName Name of the image. - * @param options The options parameters. - */ - public listByImage( - resourceGroupName: string, - imageName: string, - options?: ImageVersionsListByImageOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByImagePagingAll( - resourceGroupName, - imageName, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByImagePagingPage( - resourceGroupName, - imageName, - options, - settings, - ); - }, - }; - } - - private async *listByImagePagingPage( - resourceGroupName: string, - imageName: string, - options?: ImageVersionsListByImageOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: ImageVersionsListByImageResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByImage(resourceGroupName, imageName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByImageNext( - resourceGroupName, - imageName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByImagePagingAll( - resourceGroupName: string, - imageName: string, - options?: ImageVersionsListByImageOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByImagePagingPage( - resourceGroupName, - imageName, - options, - )) { - yield* page; - } - } - - /** - * List ImageVersion resources by Image - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param imageName Name of the image. - * @param options The options parameters. - */ - private _listByImage( - resourceGroupName: string, - imageName: string, - options?: ImageVersionsListByImageOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, imageName, options }, - listByImageOperationSpec, - ); - } - - /** - * ListByImageNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param imageName Name of the image. - * @param nextLink The nextLink from the previous successful call to the ListByImage method. - * @param options The options parameters. - */ - private _listByImageNext( - resourceGroupName: string, - imageName: string, - nextLink: string, - options?: ImageVersionsListByImageNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, imageName, nextLink, options }, - listByImageNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByImageOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/images/{imageName}/versions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ImageVersionListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.imageName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByImageNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ImageVersionListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.imageName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/index.ts deleted file mode 100644 index ad3bc37a2b93..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export * from "./operations"; -export * from "./sku"; -export * from "./subscriptionUsages"; -export * from "./pools"; -export * from "./imageVersions"; -export * from "./resourceDetails"; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/operations.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/operations.ts deleted file mode 100644 index ac361b93f435..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/operations.ts +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Operations } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ManagedDevOpsInfrastructure } from "../managedDevOpsInfrastructure"; -import { - Operation, - OperationsListNextOptionalParams, - OperationsListOptionalParams, - OperationsListResponse, - OperationsListNextResponse, -} from "../models"; - -/// -/** Class containing Operations operations. */ -export class OperationsImpl implements Operations { - private readonly client: ManagedDevOpsInfrastructure; - - /** - * Initialize a new instance of the class Operations class. - * @param client Reference to the service client - */ - constructor(client: ManagedDevOpsInfrastructure) { - this.client = client; - } - - /** - * List the operations for the provider - * @param options The options parameters. - */ - public list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(options, settings); - }, - }; - } - - private async *listPagingPage( - options?: OperationsListOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: OperationsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - options?: OperationsListOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { - yield* page; - } - } - - /** - * List the operations for the provider - * @param options The options parameters. - */ - private _list( - options?: OperationsListOptionalParams, - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: OperationsListNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/providers/Microsoft.DevOpsInfrastructure/operations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host], - headerParameters: [Parameters.accept], - serializer, -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [Parameters.$host, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/pools.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/pools.ts deleted file mode 100644 index c2b81ed067f0..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/pools.ts +++ /dev/null @@ -1,718 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Pools } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ManagedDevOpsInfrastructure } from "../managedDevOpsInfrastructure"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - Pool, - PoolsListBySubscriptionNextOptionalParams, - PoolsListBySubscriptionOptionalParams, - PoolsListBySubscriptionResponse, - PoolsListByResourceGroupNextOptionalParams, - PoolsListByResourceGroupOptionalParams, - PoolsListByResourceGroupResponse, - PoolsGetOptionalParams, - PoolsGetResponse, - PoolsCreateOrUpdateOptionalParams, - PoolsCreateOrUpdateResponse, - PoolUpdate, - PoolsUpdateOptionalParams, - PoolsUpdateResponse, - PoolsDeleteOptionalParams, - PoolsDeleteResponse, - PoolsListBySubscriptionNextResponse, - PoolsListByResourceGroupNextResponse, -} from "../models"; - -/// -/** Class containing Pools operations. */ -export class PoolsImpl implements Pools { - private readonly client: ManagedDevOpsInfrastructure; - - /** - * Initialize a new instance of the class Pools class. - * @param client Reference to the service client - */ - constructor(client: ManagedDevOpsInfrastructure) { - this.client = client; - } - - /** - * List Pool resources by subscription ID - * @param options The options parameters. - */ - public listBySubscription( - options?: PoolsListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBySubscriptionPagingPage(options, settings); - }, - }; - } - - private async *listBySubscriptionPagingPage( - options?: PoolsListBySubscriptionOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: PoolsListBySubscriptionResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listBySubscriptionPagingAll( - options?: PoolsListBySubscriptionOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { - yield* page; - } - } - - /** - * List Pool resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - options?: PoolsListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); - }, - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: PoolsListByResourceGroupOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: PoolsListByResourceGroupResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: PoolsListByResourceGroupOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { - yield* page; - } - } - - /** - * List Pool resources by subscription ID - * @param options The options parameters. - */ - private _listBySubscription( - options?: PoolsListBySubscriptionOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); - } - - /** - * List Pool resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: PoolsListByResourceGroupOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec, - ); - } - - /** - * Get a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - poolName: string, - options?: PoolsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, poolName, options }, - getOperationSpec, - ); - } - - /** - * Create a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - poolName: string, - resource: Pool, - options?: PoolsCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - PoolsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, poolName, resource, options }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - PoolsCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation", - }); - await poller.poll(); - return poller; - } - - /** - * Create a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - poolName: string, - resource: Pool, - options?: PoolsCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - poolName, - resource, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Update a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - poolName: string, - properties: PoolUpdate, - options?: PoolsUpdateOptionalParams, - ): Promise< - SimplePollerLike, PoolsUpdateResponse> - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, poolName, properties, options }, - spec: updateOperationSpec, - }); - const poller = await createHttpPoller< - PoolsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Update a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - poolName: string, - properties: PoolUpdate, - options?: PoolsUpdateOptionalParams, - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - poolName, - properties, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Delete a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - poolName: string, - options?: PoolsDeleteOptionalParams, - ): Promise< - SimplePollerLike, PoolsDeleteResponse> - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, poolName, options }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - PoolsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Delete a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - poolName: string, - options?: PoolsDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete(resourceGroupName, poolName, options); - return poller.pollUntilDone(); - } - - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - nextLink: string, - options?: PoolsListBySubscriptionNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec, - ); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: PoolsListByResourceGroupNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevOpsInfrastructure/pools", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PoolListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PoolListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Pool, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.poolName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.Pool, - }, - 201: { - bodyMapper: Mappers.Pool, - }, - 202: { - bodyMapper: Mappers.Pool, - }, - 204: { - bodyMapper: Mappers.Pool, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.resource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.poolName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.Pool, - }, - 201: { - bodyMapper: Mappers.Pool, - }, - 202: { - bodyMapper: Mappers.Pool, - }, - 204: { - bodyMapper: Mappers.Pool, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.properties, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.poolName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.PoolsDeleteHeaders, - }, - 201: { - headersMapper: Mappers.PoolsDeleteHeaders, - }, - 202: { - headersMapper: Mappers.PoolsDeleteHeaders, - }, - 204: { - headersMapper: Mappers.PoolsDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.poolName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PoolListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PoolListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/resourceDetails.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/resourceDetails.ts deleted file mode 100644 index 802ec1a58617..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/resourceDetails.ts +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ResourceDetails } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ManagedDevOpsInfrastructure } from "../managedDevOpsInfrastructure"; -import { - ResourceDetailsObject, - ResourceDetailsListByPoolNextOptionalParams, - ResourceDetailsListByPoolOptionalParams, - ResourceDetailsListByPoolResponse, - ResourceDetailsListByPoolNextResponse, -} from "../models"; - -/// -/** Class containing ResourceDetails operations. */ -export class ResourceDetailsImpl implements ResourceDetails { - private readonly client: ManagedDevOpsInfrastructure; - - /** - * Initialize a new instance of the class ResourceDetails class. - * @param client Reference to the service client - */ - constructor(client: ManagedDevOpsInfrastructure) { - this.client = client; - } - - /** - * List ResourceDetailsObject resources by Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param options The options parameters. - */ - public listByPool( - resourceGroupName: string, - poolName: string, - options?: ResourceDetailsListByPoolOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByPoolPagingAll(resourceGroupName, poolName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByPoolPagingPage( - resourceGroupName, - poolName, - options, - settings, - ); - }, - }; - } - - private async *listByPoolPagingPage( - resourceGroupName: string, - poolName: string, - options?: ResourceDetailsListByPoolOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: ResourceDetailsListByPoolResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByPool(resourceGroupName, poolName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByPoolNext( - resourceGroupName, - poolName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByPoolPagingAll( - resourceGroupName: string, - poolName: string, - options?: ResourceDetailsListByPoolOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByPoolPagingPage( - resourceGroupName, - poolName, - options, - )) { - yield* page; - } - } - - /** - * List ResourceDetailsObject resources by Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param options The options parameters. - */ - private _listByPool( - resourceGroupName: string, - poolName: string, - options?: ResourceDetailsListByPoolOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, poolName, options }, - listByPoolOperationSpec, - ); - } - - /** - * ListByPoolNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param nextLink The nextLink from the previous successful call to the ListByPool method. - * @param options The options parameters. - */ - private _listByPoolNext( - resourceGroupName: string, - poolName: string, - nextLink: string, - options?: ResourceDetailsListByPoolNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, poolName, nextLink, options }, - listByPoolNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByPoolOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}/resources", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ResourceDetailsObjectListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.poolName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByPoolNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ResourceDetailsObjectListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.poolName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/sku.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/sku.ts deleted file mode 100644 index 07d967c783a6..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/sku.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Sku } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ManagedDevOpsInfrastructure } from "../managedDevOpsInfrastructure"; -import { - ResourceSku, - SkuListByLocationNextOptionalParams, - SkuListByLocationOptionalParams, - SkuListByLocationResponse, - SkuListByLocationNextResponse, -} from "../models"; - -/// -/** Class containing Sku operations. */ -export class SkuImpl implements Sku { - private readonly client: ManagedDevOpsInfrastructure; - - /** - * Initialize a new instance of the class Sku class. - * @param client Reference to the service client - */ - constructor(client: ManagedDevOpsInfrastructure) { - this.client = client; - } - - /** - * List ResourceSku resources by subscription ID - * @param locationName Name of the location. - * @param options The options parameters. - */ - public listByLocation( - locationName: string, - options?: SkuListByLocationOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(locationName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByLocationPagingPage(locationName, options, settings); - }, - }; - } - - private async *listByLocationPagingPage( - locationName: string, - options?: SkuListByLocationOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: SkuListByLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByLocation(locationName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByLocationNext( - locationName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByLocationPagingAll( - locationName: string, - options?: SkuListByLocationOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage( - locationName, - options, - )) { - yield* page; - } - } - - /** - * List ResourceSku resources by subscription ID - * @param locationName Name of the location. - * @param options The options parameters. - */ - private _listByLocation( - locationName: string, - options?: SkuListByLocationOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec, - ); - } - - /** - * ListByLocationNext - * @param locationName Name of the location. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. - * @param options The options parameters. - */ - private _listByLocationNext( - locationName: string, - nextLink: string, - options?: SkuListByLocationNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { locationName, nextLink, options }, - listByLocationNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevOpsInfrastructure/locations/{locationName}/skus", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ResourceSkuListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.locationName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ResourceSkuListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.locationName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/subscriptionUsages.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/subscriptionUsages.ts deleted file mode 100644 index 79055ba8a2a7..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operations/subscriptionUsages.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { SubscriptionUsages } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ManagedDevOpsInfrastructure } from "../managedDevOpsInfrastructure"; -import { - Quota, - SubscriptionUsagesListByLocationNextOptionalParams, - SubscriptionUsagesListByLocationOptionalParams, - SubscriptionUsagesListByLocationResponse, - SubscriptionUsagesListByLocationNextResponse, -} from "../models"; - -/// -/** Class containing SubscriptionUsages operations. */ -export class SubscriptionUsagesImpl implements SubscriptionUsages { - private readonly client: ManagedDevOpsInfrastructure; - - /** - * Initialize a new instance of the class SubscriptionUsages class. - * @param client Reference to the service client - */ - constructor(client: ManagedDevOpsInfrastructure) { - this.client = client; - } - - /** - * List Quota resources by subscription ID - * @param locationName Name of the location. - * @param options The options parameters. - */ - public listByLocation( - locationName: string, - options?: SubscriptionUsagesListByLocationOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(locationName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByLocationPagingPage(locationName, options, settings); - }, - }; - } - - private async *listByLocationPagingPage( - locationName: string, - options?: SubscriptionUsagesListByLocationOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: SubscriptionUsagesListByLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByLocation(locationName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByLocationNext( - locationName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByLocationPagingAll( - locationName: string, - options?: SubscriptionUsagesListByLocationOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage( - locationName, - options, - )) { - yield* page; - } - } - - /** - * List Quota resources by subscription ID - * @param locationName Name of the location. - * @param options The options parameters. - */ - private _listByLocation( - locationName: string, - options?: SubscriptionUsagesListByLocationOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { locationName, options }, - listByLocationOperationSpec, - ); - } - - /** - * ListByLocationNext - * @param locationName Name of the location. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. - * @param options The options parameters. - */ - private _listByLocationNext( - locationName: string, - nextLink: string, - options?: SubscriptionUsagesListByLocationNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { locationName, nextLink, options }, - listByLocationNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevOpsInfrastructure/locations/{locationName}/usages", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.QuotaListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.locationName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.QuotaListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.locationName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/imageVersions.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/imageVersions.ts deleted file mode 100644 index 8d50854b1d23..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/imageVersions.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - ImageVersion, - ImageVersionsListByImageOptionalParams, -} from "../models"; - -/// -/** Interface representing a ImageVersions. */ -export interface ImageVersions { - /** - * List ImageVersion resources by Image - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param imageName Name of the image. - * @param options The options parameters. - */ - listByImage( - resourceGroupName: string, - imageName: string, - options?: ImageVersionsListByImageOptionalParams, - ): PagedAsyncIterableIterator; -} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/index.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/index.ts deleted file mode 100644 index ad3bc37a2b93..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export * from "./operations"; -export * from "./sku"; -export * from "./subscriptionUsages"; -export * from "./pools"; -export * from "./imageVersions"; -export * from "./resourceDetails"; diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/operations.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/operations.ts deleted file mode 100644 index 251f5f582e64..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/operations.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Operation, OperationsListOptionalParams } from "../models"; - -/// -/** Interface representing a Operations. */ -export interface Operations { - /** - * List the operations for the provider - * @param options The options parameters. - */ - list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator; -} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/pools.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/pools.ts deleted file mode 100644 index 5b5ab2adaa55..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/pools.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - Pool, - PoolsListBySubscriptionOptionalParams, - PoolsListByResourceGroupOptionalParams, - PoolsGetOptionalParams, - PoolsGetResponse, - PoolsCreateOrUpdateOptionalParams, - PoolsCreateOrUpdateResponse, - PoolUpdate, - PoolsUpdateOptionalParams, - PoolsUpdateResponse, - PoolsDeleteOptionalParams, - PoolsDeleteResponse, -} from "../models"; - -/// -/** Interface representing a Pools. */ -export interface Pools { - /** - * List Pool resources by subscription ID - * @param options The options parameters. - */ - listBySubscription( - options?: PoolsListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator; - /** - * List Pool resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: PoolsListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - poolName: string, - options?: PoolsGetOptionalParams, - ): Promise; - /** - * Create a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - poolName: string, - resource: Pool, - options?: PoolsCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - PoolsCreateOrUpdateResponse - > - >; - /** - * Create a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - poolName: string, - resource: Pool, - options?: PoolsCreateOrUpdateOptionalParams, - ): Promise; - /** - * Update a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - poolName: string, - properties: PoolUpdate, - options?: PoolsUpdateOptionalParams, - ): Promise< - SimplePollerLike, PoolsUpdateResponse> - >; - /** - * Update a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - poolName: string, - properties: PoolUpdate, - options?: PoolsUpdateOptionalParams, - ): Promise; - /** - * Delete a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - poolName: string, - options?: PoolsDeleteOptionalParams, - ): Promise< - SimplePollerLike, PoolsDeleteResponse> - >; - /** - * Delete a Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - poolName: string, - options?: PoolsDeleteOptionalParams, - ): Promise; -} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/resourceDetails.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/resourceDetails.ts deleted file mode 100644 index 2a0ef8fa0926..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/resourceDetails.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - ResourceDetailsObject, - ResourceDetailsListByPoolOptionalParams, -} from "../models"; - -/// -/** Interface representing a ResourceDetails. */ -export interface ResourceDetails { - /** - * List ResourceDetailsObject resources by Pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param poolName Name of the pool. It needs to be globally unique. - * @param options The options parameters. - */ - listByPool( - resourceGroupName: string, - poolName: string, - options?: ResourceDetailsListByPoolOptionalParams, - ): PagedAsyncIterableIterator; -} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/sku.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/sku.ts deleted file mode 100644 index 15e1aff1a017..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/sku.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { ResourceSku, SkuListByLocationOptionalParams } from "../models"; - -/// -/** Interface representing a Sku. */ -export interface Sku { - /** - * List ResourceSku resources by subscription ID - * @param locationName Name of the location. - * @param options The options parameters. - */ - listByLocation( - locationName: string, - options?: SkuListByLocationOptionalParams, - ): PagedAsyncIterableIterator; -} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/subscriptionUsages.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/subscriptionUsages.ts deleted file mode 100644 index 2a40f145768e..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/operationsInterfaces/subscriptionUsages.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - Quota, - SubscriptionUsagesListByLocationOptionalParams, -} from "../models"; - -/// -/** Interface representing a SubscriptionUsages. */ -export interface SubscriptionUsages { - /** - * List Quota resources by subscription ID - * @param locationName Name of the location. - * @param options The options parameters. - */ - listByLocation( - locationName: string, - options?: SubscriptionUsagesListByLocationOptionalParams, - ): PagedAsyncIterableIterator; -} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/pagingHelper.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/pagingHelper.ts deleted file mode 100644 index 205cccc26592..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/pagingHelper.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export interface PageInfo { - continuationToken?: string; -} - -const pageMap = new WeakMap(); - -/** - * Given the last `.value` produced by the `byPage` iterator, - * returns a continuation token that can be used to begin paging from - * that point later. - * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. - * @returns The continuation token that can be passed into byPage() during future calls. - */ -export function getContinuationToken(page: unknown): string | undefined { - if (typeof page !== "object" || page === null) { - return undefined; - } - return pageMap.get(page)?.continuationToken; -} - -export function setContinuationToken( - page: unknown, - continuationToken: string | undefined, -): void { - if (typeof page !== "object" || page === null || !continuationToken) { - return; - } - const pageInfo = pageMap.get(page) ?? {}; - pageInfo.continuationToken = continuationToken; - pageMap.set(page, pageInfo); -} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/restorePollerHelpers.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/restorePollerHelpers.ts new file mode 100644 index 000000000000..e8be2b14348b --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/restorePollerHelpers.ts @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { DevOpsInfrastructureClient } from "./devOpsInfrastructureClient.js"; +import { + _poolsCreateOrUpdateDeserialize, + _poolsUpdateDeserialize, + _poolsDeleteDeserialize, +} from "./api/pools/index.js"; +import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js"; +import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; +import { + PollerLike, + OperationState, + deserializeState, + ResourceLocationConfig, +} from "@azure/core-lro"; + +export interface RestorePollerOptions< + TResult, + TResponse extends PathUncheckedResponse = PathUncheckedResponse, +> extends OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** + * The signal which can be used to abort requests. + */ + abortSignal?: AbortSignalLike; + /** Deserialization function for raw response body */ + processResponseBody?: (result: TResponse) => Promise; +} + +/** + * Creates a poller from the serialized state of another poller. This can be + * useful when you want to create pollers on a different host or a poller + * needs to be constructed after the original one is not in scope. + */ +export function restorePoller( + client: DevOpsInfrastructureClient, + serializedState: string, + sourceOperation: (...args: any[]) => PollerLike, TResult>, + options?: RestorePollerOptions, +): PollerLike, TResult> { + const pollerConfig = deserializeState(serializedState).config; + const { initialRequestUrl, requestMethod, metadata } = pollerConfig; + if (!initialRequestUrl || !requestMethod) { + throw new Error( + `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`, + ); + } + const resourceLocationConfig = metadata?.["resourceLocationConfig"] as + | ResourceLocationConfig + | undefined; + const { deserializer, expectedStatuses = [] } = + getDeserializationHelper(initialRequestUrl, requestMethod) ?? {}; + const deserializeHelper = options?.processResponseBody ?? deserializer; + if (!deserializeHelper) { + throw new Error( + `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`, + ); + } + return getLongRunningPoller( + (client as any)["_client"] ?? client, + deserializeHelper as (result: TResponse) => Promise, + expectedStatuses, + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + resourceLocationConfig, + restoreFrom: serializedState, + initialRequestUrl, + }, + ); +} + +interface DeserializationHelper { + deserializer: Function; + expectedStatuses: string[]; +} + +const deserializeMap: Record = { + "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}": + { + deserializer: _poolsCreateOrUpdateDeserialize, + expectedStatuses: ["200", "201"], + }, + "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}": + { deserializer: _poolsUpdateDeserialize, expectedStatuses: ["200", "202"] }, + "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevOpsInfrastructure/pools/{poolName}": + { + deserializer: _poolsDeleteDeserialize, + expectedStatuses: ["202", "204", "200"], + }, +}; + +function getDeserializationHelper( + urlStr: string, + method: string, +): DeserializationHelper | undefined { + const path = new URL(urlStr).pathname; + const pathParts = path.split("/"); + + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, + matchedValue: DeserializationHelper | undefined; + + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(deserializeMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + + // track if we have found a match to return the values found. + let found = true; + for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { + if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { + const start = candidateParts[i]!.indexOf("}") + 1, + end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( + pathParts[j] || "", + ); + + if (!isMatched) { + found = false; + break; + } + continue; + } + + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + + return matchedValue; +} + +function getPathFromMapKey(mapKey: string): string { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/static-helpers/pagingHelpers.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/static-helpers/pagingHelpers.ts new file mode 100644 index 000000000000..ce33af5f4178 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/static-helpers/pagingHelpers.ts @@ -0,0 +1,241 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; +import { RestError } from "@azure/core-rest-pipeline"; + +/** + * Options for the byPage method + */ +export interface PageSettings { + /** + * A reference to a specific page to start iterating from. + */ + continuationToken?: string; +} + +/** + * An interface that describes a page of results. + */ +export type ContinuablePage = TPage & { + /** + * The token that keeps track of where to continue the iterator + */ + continuationToken?: string; +}; + +/** + * An interface that allows async iterable iteration both to completion and by page. + */ +export interface PagedAsyncIterableIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +> { + /** + * The next method, part of the iteration protocol + */ + next(): Promise>; + /** + * The connection to the async iterator, part of the iteration protocol + */ + [Symbol.asyncIterator](): PagedAsyncIterableIterator; + /** + * Return an AsyncIterableIterator that works a page at a time + */ + byPage: (settings?: TPageSettings) => AsyncIterableIterator>; +} + +/** + * An interface that describes how to communicate with the service. + */ +export interface PagedResult< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +> { + /** + * Link to the first page of results. + */ + firstPageLink?: string; + /** + * A method that returns a page of results. + */ + getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>; + /** + * a function to implement the `byPage` method on the paged async iterator. + */ + byPage?: (settings?: TPageSettings) => AsyncIterableIterator>; + + /** + * A function to extract elements from a page. + */ + toElements?: (page: TPage) => TElement[]; +} + +/** + * Options for the paging helper + */ +export interface BuildPagedAsyncIteratorOptions { + itemName?: string; + nextLinkName?: string; +} + +/** + * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator + */ +export function buildPagedAsyncIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, + TResponse extends PathUncheckedResponse = PathUncheckedResponse, +>( + client: Client, + getInitialResponse: () => PromiseLike, + processResponseBody: (result: TResponse) => PromiseLike, + expectedStatuses: string[], + options: BuildPagedAsyncIteratorOptions = {}, +): PagedAsyncIterableIterator { + const itemName = options.itemName ?? "value"; + const nextLinkName = options.nextLinkName ?? "nextLink"; + const pagedResult: PagedResult = { + getPage: async (pageLink?: string) => { + const result = + pageLink === undefined + ? await getInitialResponse() + : await client.pathUnchecked(pageLink).get(); + checkPagingRequest(result, expectedStatuses); + const results = await processResponseBody(result as TResponse); + const nextLink = getNextLink(results, nextLinkName); + const values = getElements(results, itemName) as TPage; + return { + page: values, + nextPageLink: nextLink, + }; + }, + byPage: (settings?: TPageSettings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken, + }); + }, + }; + return getPagedAsyncIterator(pagedResult); +} + +/** + * returns an async iterator that iterates over results. It also has a `byPage` + * method that returns pages of items at once. + * + * @param pagedResult - an object that specifies how to get pages. + * @returns a paged async iterator that iterates over results. + */ + +function getPagedAsyncIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +>( + pagedResult: PagedResult, +): PagedAsyncIterableIterator { + const iter = getItemAsyncIterator(pagedResult); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: + pagedResult?.byPage ?? + ((settings?: TPageSettings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken, + }); + }), + }; +} + +async function* getItemAsyncIterator( + pagedResult: PagedResult, +): AsyncIterableIterator { + const pages = getPageAsyncIterator(pagedResult); + for await (const page of pages) { + yield* page as unknown as TElement[]; + } +} + +async function* getPageAsyncIterator( + pagedResult: PagedResult, + options: { + pageLink?: string; + } = {}, +): AsyncIterableIterator> { + const { pageLink } = options; + let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink); + if (!response) { + return; + } + let result = response.page as ContinuablePage; + result.continuationToken = response.nextPageLink; + yield result; + while (response.nextPageLink) { + response = await pagedResult.getPage(response.nextPageLink); + if (!response) { + return; + } + result = response.page as ContinuablePage; + result.continuationToken = response.nextPageLink; + yield result; + } +} + +/** + * Gets for the value of nextLink in the body + */ +function getNextLink(body: unknown, nextLinkName?: string): string | undefined { + if (!nextLinkName) { + return undefined; + } + + const nextLink = (body as Record)[nextLinkName]; + + if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) { + throw new RestError( + `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`, + ); + } + + if (nextLink === null) { + return undefined; + } + + return nextLink; +} + +/** + * Gets the elements of the current request in the body. + */ +function getElements(body: unknown, itemName: string): T[] { + const value = (body as Record)[itemName] as T[]; + if (!Array.isArray(value)) { + throw new RestError( + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, + ); + } + + return value ?? []; +} + +/** + * Checks if a request failed + */ +function checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void { + if (!expectedStatuses.includes(response.status)) { + throw createRestError( + `Pagination failed with unexpected statusCode ${response.status}`, + response, + ); + } +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/static-helpers/pollingHelpers.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/static-helpers/pollingHelpers.ts new file mode 100644 index 000000000000..f01c41bab69d --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/src/static-helpers/pollingHelpers.ts @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + PollerLike, + OperationState, + ResourceLocationConfig, + RunningOperation, + createHttpPoller, + OperationResponse, +} from "@azure/core-lro"; + +import { Client, PathUncheckedResponse, createRestError } from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; + +export interface GetLongRunningPollerOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** + * The signal which can be used to abort requests. + */ + abortSignal?: AbortSignalLike; + /** + * The potential location of the result of the LRO if specified by the LRO extension in the swagger. + */ + resourceLocationConfig?: ResourceLocationConfig; + /** + * The original url of the LRO + * Should not be null when restoreFrom is set + */ + initialRequestUrl?: string; + /** + * A serialized poller which can be used to resume an existing paused Long-Running-Operation. + */ + restoreFrom?: string; + /** + * The function to get the initial response + */ + getInitialResponse?: () => PromiseLike; +} +export function getLongRunningPoller( + client: Client, + processResponseBody: (result: TResponse) => Promise, + expectedStatuses: string[], + options: GetLongRunningPollerOptions, +): PollerLike, TResult> { + const { restoreFrom, getInitialResponse } = options; + if (!restoreFrom && !getInitialResponse) { + throw new Error("Either restoreFrom or getInitialResponse must be specified"); + } + let initialResponse: TResponse | undefined = undefined; + const pollAbortController = new AbortController(); + const poller: RunningOperation = { + sendInitialRequest: async () => { + if (!getInitialResponse) { + throw new Error("getInitialResponse is required when initializing a new poller"); + } + initialResponse = await getInitialResponse(); + return getLroResponse(initialResponse, expectedStatuses); + }, + sendPollRequest: async ( + path: string, + pollOptions?: { + abortSignal?: AbortSignalLike; + }, + ) => { + // The poll request would both listen to the user provided abort signal and the poller's own abort signal + function abortListener(): void { + pollAbortController.abort(); + } + const abortSignal = pollAbortController.signal; + if (options.abortSignal?.aborted) { + pollAbortController.abort(); + } else if (pollOptions?.abortSignal?.aborted) { + pollAbortController.abort(); + } else if (!abortSignal.aborted) { + options.abortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + pollOptions?.abortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + } + let response; + try { + response = await client.pathUnchecked(path).get({ abortSignal }); + } finally { + options.abortSignal?.removeEventListener("abort", abortListener); + pollOptions?.abortSignal?.removeEventListener("abort", abortListener); + } + + return getLroResponse(response as TResponse, expectedStatuses); + }, + }; + return createHttpPoller(poller, { + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: options?.resourceLocationConfig, + restoreFrom: options?.restoreFrom, + processResult: (result: unknown) => { + return processResponseBody(result as TResponse); + }, + }); +} +/** + * Converts a Rest Client response to a response that the LRO implementation understands + * @param response - a rest client http response + * @param deserializeFn - deserialize function to convert Rest response to modular output + * @returns - An LRO response that the LRO implementation understands + */ +function getLroResponse( + response: TResponse, + expectedStatuses: string[], +): OperationResponse { + if (!expectedStatuses.includes(response.status)) { + throw createRestError(response); + } + + return { + flatResponse: response, + rawResponse: { + ...response, + statusCode: Number.parseInt(response.status), + body: response.body, + }, + }; +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/test/devopsinfrastructure_operations_test.spec.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/test/devopsinfrastructure_operations_test.spec.ts deleted file mode 100644 index a0727878b73f..000000000000 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/test/devopsinfrastructure_operations_test.spec.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - env, - Recorder, - RecorderStartOptions, - delay, - isPlaybackMode, -} from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { ManagedDevOpsInfrastructure } from "../src/managedDevOpsInfrastructure"; - -const replaceableVariables: Record = { - SUBSCRIPTION_ID: " 88888888-8888-8888-8888-888888888888" -}; - -const recorderOptions: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("DevOpsInfrastructure test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: ManagedDevOpsInfrastructure; - let location: string; - let resourceGroup: string; - let resourcename: string; - - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); - await recorder.start(recorderOptions); - subscriptionId = env.SUBSCRIPTION_ID || ''; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new ManagedDevOpsInfrastructure(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; - - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("operations list test", async function () { - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - assert.notEqual(resArray.length, 0); - }); -}) diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/test/public/devopsinfrastructure_operations_test.spec.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/test/public/devopsinfrastructure_operations_test.spec.ts new file mode 100644 index 000000000000..4ff9df621bbc --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/test/public/devopsinfrastructure_operations_test.spec.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { env, Recorder, isPlaybackMode } from "@azure-tools/test-recorder"; +import { createTestCredential } from "@azure-tools/test-credential"; +import { assert, beforeEach, afterEach, it, describe } from "vitest"; +import { createRecorder } from "./utils/recordedClient.js"; +import { DevOpsInfrastructureClient } from "../../src/devOpsInfrastructureClient.js"; + +export const testPollingOptions = { + updateIntervalInMs: isPlaybackMode() ? 0 : undefined, +}; + +describe("DevOpsInfrastructure test", () => { + let recorder: Recorder; + let subscriptionId: string; + let client: DevOpsInfrastructureClient; + + beforeEach(async (context) => { + process.env.SystemRoot = process.env.SystemRoot || "C:\\Windows"; + recorder = await createRecorder(context); + subscriptionId = env.SUBSCRIPTION_ID || ""; + // This is an example of how the environment variables are used + const credential = createTestCredential(); + client = new DevOpsInfrastructureClient( + credential, + subscriptionId, + recorder.configureClientOptions({}), + ); + }); + + afterEach(async function () { + await recorder.stop(); + }); + it("operations list test", async function () { + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + assert.notEqual(resArray.length, 0); + }); +}); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/test/public/utils/recordedClient.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/test/public/utils/recordedClient.ts new file mode 100644 index 000000000000..527ccc9dee86 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/test/public/utils/recordedClient.ts @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { Recorder, RecorderStartOptions, VitestTestContext } from "@azure-tools/test-recorder"; + +const replaceableVariables: Record = { + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderEnvSetup: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, + removeCentralSanitizers: [ + "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section + "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section + ], +}; + +/** + * creates the recorder and reads the environment variables from the `.env` file. + * Should be called first in the test suite to make sure environment variables are + * read before they are being used. + */ +export async function createRecorder(context: VitestTestContext): Promise { + const recorder = new Recorder(context); + await recorder.start(recorderEnvSetup); + return recorder; +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/tsconfig.browser.config.json b/sdk/devopsinfrastructure/arm-devopsinfrastructure/tsconfig.browser.config.json new file mode 100644 index 000000000000..091177fcb991 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["src/**/*.ts", "src/**/*.mts", "test/**/*.spec.ts"], + "exclude": ["test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/tsconfig.json b/sdk/devopsinfrastructure/arm-devopsinfrastructure/tsconfig.json index f573af1f5fed..4cf32debb8cc 100644 --- a/sdk/devopsinfrastructure/arm-devopsinfrastructure/tsconfig.json +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/tsconfig.json @@ -1,33 +1,18 @@ { + "extends": "../../../tsconfig", "compilerOptions": { - "module": "es6", - "moduleResolution": "node", - "strict": true, - "target": "es6", - "sourceMap": true, - "declarationMap": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, - "lib": [ - "es6", - "dom" - ], - "declaration": true, - "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-devopsinfrastructure": [ - "./src/index" - ] - } + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": ".", + "skipLibCheck": true, + "paths": { "@azure/arm-devopsinfrastructure": ["./src/index"] } }, "include": [ - "./src/**/*.ts", - "./test/**/*.ts", + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "test/**/*.ts", + "test/**/*.ts", "samples-dev/**/*.ts" - ], - "exclude": [ - "node_modules" ] -} \ No newline at end of file +} diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/tsp-location.yaml b/sdk/devopsinfrastructure/arm-devopsinfrastructure/tsp-location.yaml new file mode 100644 index 000000000000..5b31d5c128b1 --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management +commit: fa6c6015b1633a701edb629c1a759433aa1fdaf2 +repo: Azure/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/vitest.browser.config.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/vitest.browser.config.ts new file mode 100644 index 000000000000..da68c1d231aa --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/vitest.browser.config.ts @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig } from "vitest/config"; +import { relativeRecordingsPath } from "@azure-tools/test-recorder"; + +process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); + +export default defineConfig({ + define: { + "process.env": process.env, + }, + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.browser.xml", + }, + browser: { + enabled: true, + headless: true, + name: "chromium", + provider: "playwright", + }, + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["dist-test/browser/**/*.spec.js"], + coverage: { + include: ["dist-test/browser/**/*.spec.js"], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage-browser", + }, + testTimeout: 1200000, + hookTimeout: 1200000, + }, +}); diff --git a/sdk/devopsinfrastructure/arm-devopsinfrastructure/vitest.config.ts b/sdk/devopsinfrastructure/arm-devopsinfrastructure/vitest.config.ts new file mode 100644 index 000000000000..2cf5d0e02c2e --- /dev/null +++ b/sdk/devopsinfrastructure/arm-devopsinfrastructure/vitest.config.ts @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig } from "vitest/config"; +import { relativeRecordingsPath } from "@azure-tools/test-recorder"; + +export default defineConfig({ + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.browser.xml", + }, + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["test/**/*.spec.ts"], + exclude: ["test/**/browser/*.spec.ts"], + coverage: { + include: ["src/**/*.ts"], + exclude: [ + "src/**/*-browser.mts", + "src/**/*-react-native.mts", + "vitest*.config.ts", + "samples-dev/**/*.ts", + ], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage", + }, + testTimeout: 1200000, + hookTimeout: 1200000, + }, +}); diff --git a/sdk/digitaltwins/digital-twins-core/package.json b/sdk/digitaltwins/digital-twins-core/package.json index 0c03377fae60..1658643528ed 100644 --- a/sdk/digitaltwins/digital-twins-core/package.json +++ b/sdk/digitaltwins/digital-twins-core/package.json @@ -92,7 +92,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/documenttranslator/ai-document-translator-rest/README.md b/sdk/documenttranslator/ai-document-translator-rest/README.md index be9e4255d694..a69821a4ac84 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/README.md +++ b/sdk/documenttranslator/ai-document-translator-rest/README.md @@ -197,7 +197,7 @@ Please refer to the samples folder to see code samples, including: Enabling 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`: -```javascript +```ts import { setLogLevel } from "@azure/logger"; setLogLevel("info"); diff --git a/sdk/documenttranslator/ai-document-translator-rest/api-extractor.json b/sdk/documenttranslator/ai-document-translator-rest/api-extractor.json index a48e9e8b796d..2d776f914324 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/api-extractor.json +++ b/sdk/documenttranslator/ai-document-translator-rest/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/ai-document-translator.d.ts" + "publicTrimmedFilePath": "dist/ai-document-translator.d.ts" }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/documenttranslator/ai-document-translator-rest/karma.conf.js b/sdk/documenttranslator/ai-document-translator-rest/karma.conf.js deleted file mode 100644 index 243c4718ab95..000000000000 --- a/sdk/documenttranslator/ai-document-translator-rest/karma.conf.js +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); - -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-json-to-file-reporter", - "karma-source-map-support", - "karma-json-preprocessor", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { pattern: "dist-test/index.browser.js.map", type: "html", included: false, served: true }, - ], - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: [ - "TEST_MODE", - "ENDPOINT", - "DOCUMENT_TRANSLATOR_API_KEY", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: 0, - }, - }, - }); -}; diff --git a/sdk/documenttranslator/ai-document-translator-rest/package.json b/sdk/documenttranslator/ai-document-translator-rest/package.json index 6ce62eb617ab..ed38e7610b62 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/package.json +++ b/sdk/documenttranslator/ai-document-translator-rest/package.json @@ -13,9 +13,9 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/ai-document-translator.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/documenttranslator/ai-document-translator/README.md", "repository": "github:Azure/azure-sdk-for-js", "bugs": { @@ -23,8 +23,6 @@ }, "files": [ "dist/", - "dist-esm/src/", - "types/ai-document-translator.d.ts", "README.md", "LICENSE" ], @@ -55,21 +53,21 @@ } }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run bundle", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api", + "build:node": "dev-tool run build-package && dev-tool run bundle", "build:samples": "echo Obsolete.", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", - "extract-api": "tsc -p . && dev-tool run extract-api", + "extract-api": "dev-tool run build-package && dev-tool run extract-api", "format": "dev-tool run vendored 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": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -77,47 +75,71 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.1.0", - "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "@azure-rest/core-client": "^2.3.1", + "@azure/core-auth": "^1.9.0", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.1.6", - "@types/mocha": "^10.0.0", + "@azure/identity": "^4.5.0", "@types/node": "^18.0.0", - "chai": "^4.2.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-json-preprocessor": "^0.3.3", - "karma-json-to-file-reporter": "^1.0.1", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.49.0", + "typescript": "~5.6.2", + "vitest": "^2.1.5" + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "browser": "./dist/browser/index.js", + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/documenttranslator/ai-document-translator-rest/samples-dev/listFormats.ts b/sdk/documenttranslator/ai-document-translator-rest/samples-dev/listFormats.ts index 06c8863f9540..4046f3f77b1a 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/samples-dev/listFormats.ts +++ b/sdk/documenttranslator/ai-document-translator-rest/samples-dev/listFormats.ts @@ -10,14 +10,12 @@ */ import DocumentTranslator from "@azure-rest/ai-document-translator"; - -import * as dotenv from "dotenv"; -dotenv.config(); +import "dotenv/config"; const endpoint = process.env["ENDPOINT"] || "document-translator endpoint"; const apiKey = process.env["DOCUMENT_TRANSLATOR_API_KEY"] || ""; -export async function main() { +export async function main(): Promise { console.log("== List supported document formats sample =="); const client = DocumentTranslator(endpoint, { key: apiKey }); diff --git a/sdk/documenttranslator/ai-document-translator-rest/samples-dev/translateFromBlob.ts b/sdk/documenttranslator/ai-document-translator-rest/samples-dev/translateFromBlob.ts index f91934681670..0200353fa815 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/samples-dev/translateFromBlob.ts +++ b/sdk/documenttranslator/ai-document-translator-rest/samples-dev/translateFromBlob.ts @@ -14,10 +14,9 @@ * @azsdk-weight 40 */ -import DocumentTranslator, { StartTranslationDetails } from "@azure-rest/ai-document-translator"; - -import * as dotenv from "dotenv"; -dotenv.config(); +import type { StartTranslationDetails } from "@azure-rest/ai-document-translator"; +import DocumentTranslator from "@azure-rest/ai-document-translator"; +import "dotenv/config"; /** * These are states of the Long Running Operation considered as terminal @@ -49,7 +48,7 @@ const batchSubmissionRequest: StartTranslationDetails = { ], }; -export async function main() { +export async function main(): Promise { console.log("== Translate documents in a container sample =="); // Create a new client @@ -113,7 +112,7 @@ function wait(seconds: number): Promise { } // Helper function that extracts the batch id from operation-location header -function extractBatchId(batchUrl: string = "") { +function extractBatchId(batchUrl: string = ""): string { const parts = batchUrl.split("/"); return parts[parts.length - 1]; diff --git a/sdk/documenttranslator/ai-document-translator-rest/src/documentTranslator.ts b/sdk/documenttranslator/ai-document-translator-rest/src/documentTranslator.ts index 3cf8624df91f..cce578145d12 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/src/documentTranslator.ts +++ b/sdk/documenttranslator/ai-document-translator-rest/src/documentTranslator.ts @@ -51,7 +51,7 @@ import type { StartTranslation429Response, StartTranslation500Response, StartTranslation503Response, -} from "./responses"; +} from "./responses.js"; import type { CancelTranslationParameters, GetDocumentStatusParameters, @@ -62,7 +62,7 @@ import type { GetTranslationStatusParameters, GetTranslationsStatusParameters, StartTranslationParameters, -} from "./parameters"; +} from "./parameters.js"; import type { Client, ClientOptions } from "@azure-rest/core-client"; import { getClient } from "@azure-rest/core-client"; import type { KeyCredential, TokenCredential } from "@azure/core-auth"; diff --git a/sdk/documenttranslator/ai-document-translator-rest/src/index.ts b/sdk/documenttranslator/ai-document-translator-rest/src/index.ts index 8f34edb82053..1d400e531bb4 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/src/index.ts +++ b/sdk/documenttranslator/ai-document-translator-rest/src/index.ts @@ -6,9 +6,10 @@ * @packageDocumentation */ -import DocumentTranslator from "./documentTranslator"; -export * from "./documentTranslator"; -export * from "./models"; -export * from "./parameters"; -export * from "./responses"; +import DocumentTranslator from "./documentTranslator.js"; +export * from "./documentTranslator.js"; +export * from "./models.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +// eslint-disable-next-line @azure/azure-sdk/ts-modules-only-named export default DocumentTranslator; diff --git a/sdk/documenttranslator/ai-document-translator-rest/src/parameters.ts b/sdk/documenttranslator/ai-document-translator-rest/src/parameters.ts index 39615d78aeed..d88aa204ca1f 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/src/parameters.ts +++ b/sdk/documenttranslator/ai-document-translator-rest/src/parameters.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import type { RequestParameters } from "@azure-rest/core-client"; -import type { StartTranslationDetails } from "./models"; +import type { StartTranslationDetails } from "./models.js"; export interface StartTranslationBodyParam { body: StartTranslationDetails; diff --git a/sdk/documenttranslator/ai-document-translator-rest/src/responses.ts b/sdk/documenttranslator/ai-document-translator-rest/src/responses.ts index 309b6cf7b712..4f5b0b4f7122 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/src/responses.ts +++ b/sdk/documenttranslator/ai-document-translator-rest/src/responses.ts @@ -9,7 +9,7 @@ import type { DocumentsStatus, SupportedFileFormats, SupportedStorageSources, -} from "./models"; +} from "./models.js"; import type { HttpResponse } from "@azure-rest/core-client"; import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; diff --git a/sdk/documenttranslator/ai-document-translator-rest/test/public/listFormats.spec.ts b/sdk/documenttranslator/ai-document-translator-rest/test/public/listFormats.spec.ts index 9b74273846f1..4dbeefc72a79 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/test/public/listFormats.spec.ts +++ b/sdk/documenttranslator/ai-document-translator-rest/test/public/listFormats.spec.ts @@ -1,22 +1,21 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Context } from "mocha"; -import type { DocumentTranslatorClient } from "../../src"; +import type { DocumentTranslatorClient } from "../../src/index.js"; import { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { createClient } from "./utils/recordedClient"; +import { createClient } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; describe("List Document Formats", () => { let recorder: Recorder; let client: DocumentTranslatorClient; - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); + beforeEach(async (ctx) => { + recorder = new Recorder(ctx); client = await createClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); diff --git a/sdk/documenttranslator/ai-document-translator-rest/test/public/utils/recordedClient.ts b/sdk/documenttranslator/ai-document-translator-rest/test/public/utils/recordedClient.ts index cbb9f60cceeb..cea2c4fe14ab 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/test/public/utils/recordedClient.ts +++ b/sdk/documenttranslator/ai-document-translator-rest/test/public/utils/recordedClient.ts @@ -3,8 +3,8 @@ /// -import type { DocumentTranslatorClient } from "../../../src"; -import DocumentTranslator from "../../../src"; +import type { DocumentTranslatorClient } from "../../../src/index.js"; +import DocumentTranslator from "../../../src/index.js"; import type { Recorder } from "@azure-tools/test-recorder"; import { env } from "@azure-tools/test-recorder"; diff --git a/sdk/documenttranslator/ai-document-translator-rest/tsconfig.browser.config.json b/sdk/documenttranslator/ai-document-translator-rest/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/documenttranslator/ai-document-translator-rest/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/documenttranslator/ai-document-translator-rest/tsconfig.json b/sdk/documenttranslator/ai-document-translator-rest/tsconfig.json index af2f9d466e93..b0c6bdad9067 100644 --- a/sdk/documenttranslator/ai-document-translator-rest/tsconfig.json +++ b/sdk/documenttranslator/ai-document-translator-rest/tsconfig.json @@ -1,11 +1,12 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "paths": { "@azure-rest/ai-document-translator": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts", "../documentTranslation.ts"] + "include": ["src/**/*.ts", "src/**/*.mts", "src/**/*.cts", "samples-dev/**/*.ts", "test/**/*.ts"] } diff --git a/sdk/documenttranslator/ai-document-translator-rest/vitest.browser.config.ts b/sdk/documenttranslator/ai-document-translator-rest/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/documenttranslator/ai-document-translator-rest/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/documenttranslator/ai-document-translator-rest/vitest.config.ts b/sdk/documenttranslator/ai-document-translator-rest/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/documenttranslator/ai-document-translator-rest/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/easm/defender-easm-rest/package.json b/sdk/easm/defender-easm-rest/package.json index b7af015899ab..bd0514511da2 100644 --- a/sdk/easm/defender-easm-rest/package.json +++ b/sdk/easm/defender-easm-rest/package.json @@ -87,7 +87,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-json-preprocessor": "^0.3.3", "karma-json-to-file-reporter": "^1.0.1", "karma-junit-reporter": "^2.0.1", diff --git a/sdk/edgezones/arm-edgezones/CHANGELOG.md b/sdk/edgezones/arm-edgezones/CHANGELOG.md index f379fadbe8d8..3ba50853ac12 100644 --- a/sdk/edgezones/arm-edgezones/CHANGELOG.md +++ b/sdk/edgezones/arm-edgezones/CHANGELOG.md @@ -1,5 +1,21 @@ # Release History - + +## 1.0.0-beta.4 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + +## 1.0.0-beta.3 (2024-11-07) + +### Bugs Fixed + +- Fix missing package information issue in user agent + ## 1.0.0-beta.2 (2024-07-26) ### Features Added diff --git a/sdk/edgezones/arm-edgezones/assets.json b/sdk/edgezones/arm-edgezones/assets.json index 64dd671c98af..d6f31f76cb01 100644 --- a/sdk/edgezones/arm-edgezones/assets.json +++ b/sdk/edgezones/arm-edgezones/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/edgezones/arm-edgezones", - "Tag": "js/edgezones/arm-edgezones_dbaf4ac435" + "Tag": "js/edgezones/arm-edgezones_e01caa1f6b" } diff --git a/sdk/edgezones/arm-edgezones/package.json b/sdk/edgezones/arm-edgezones/package.json index 7ec19a7937ab..d20c305805f3 100644 --- a/sdk/edgezones/arm-edgezones/package.json +++ b/sdk/edgezones/arm-edgezones/package.json @@ -1,7 +1,7 @@ { "name": "@azure/arm-edgezones", - "version": "1.0.0-beta.2", - "description": "Azure Edgezones Service", + "version": "1.0.0-beta.4", + "description": "A generated SDK for EdgeZonesClient.", "engines": { "node": ">=18.0.0" }, @@ -11,7 +11,6 @@ "exports": { "./package.json": "./package.json", ".": "./src/index.ts", - "./api": "./src/api/index.ts", "./models": "./src/models/index.ts" }, "dialects": [ @@ -51,59 +50,59 @@ "//metadata": { "constantPaths": [ { - "path": "src/rest/edgeZonesClient.ts", + "path": "src/api/edgeZonesContext.ts", "prefix": "userAgentInfo" } ] }, "dependencies": { - "@azure-rest/core-client": "^2.1.0", + "@azure/core-util": "^1.9.2", + "@azure-rest/core-client": "^2.3.1", "@azure/core-auth": "^1.6.0", - "@azure/core-paging": "^1.5.0", "@azure/core-rest-pipeline": "^1.5.0", "@azure/logger": "^1.0.0", "tslib": "^2.6.2" }, "devDependencies": { - "@azure-tools/test-credential": "^2.0.0", - "@azure-tools/test-recorder": "^4.0.0", - "@azure/core-util": "^1.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^4.2.1", + "dotenv": "^16.0.0", + "@microsoft/api-extractor": "^7.40.3", "@types/node": "^18.0.0", + "eslint": "^9.9.0", + "typescript": "~5.6.2", + "tshy": "^2.0.0", + "@azure/identity": "^4.2.1", "@vitest/browser": "^2.0.5", "@vitest/coverage-istanbul": "^2.0.5", - "dotenv": "^16.0.0", - "eslint": "^9.9.0", "playwright": "^1.41.2", - "prettier": "^3.2.5", - "typescript": "~5.6.2", - "vitest": "^2.0.5" + "vitest": "^2.0.5", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.0.0", + "@azure/dev-tool": "^1.0.0", + "@azure/eslint-plugin-azure-sdk": "^3.0.0" }, "scripts": { - "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:samples": "echo skipped", - "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test", - "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "execute:samples": "echo skipped", "extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", - "generate:client": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "echo skipped", + "pack": "npm pack 2>&1", "lint": "echo skipped", "lint:fix": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", - "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", - "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser", "unit-test:node": "dev-tool run test:vitest", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "echo skipped", + "build:samples": "echo skipped", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", + "execute:samples": "echo skipped", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", + "generate:client": "echo skipped", + "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", + "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", + "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", "update-snippets": "echo skipped" }, "exports": { @@ -126,24 +125,6 @@ "default": "./dist/commonjs/index.js" } }, - "./api": { - "browser": { - "types": "./dist/browser/api/index.d.ts", - "default": "./dist/browser/api/index.js" - }, - "react-native": { - "types": "./dist/react-native/api/index.d.ts", - "default": "./dist/react-native/api/index.js" - }, - "import": { - "types": "./dist/esm/api/index.d.ts", - "default": "./dist/esm/api/index.js" - }, - "require": { - "types": "./dist/commonjs/api/index.d.ts", - "default": "./dist/commonjs/api/index.js" - } - }, "./models": { "browser": { "types": "./dist/browser/models/index.d.ts", diff --git a/sdk/edgezones/arm-edgezones/review/arm-edgezones-api.api.md b/sdk/edgezones/arm-edgezones/review/arm-edgezones-api.api.md deleted file mode 100644 index 82f656a82a9a..000000000000 --- a/sdk/edgezones/arm-edgezones/review/arm-edgezones-api.api.md +++ /dev/null @@ -1,46 +0,0 @@ -## API Report File for "@azure/arm-edgezones" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import { Client } from '@azure-rest/core-client'; -import { ClientOptions } from '@azure-rest/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; -import { OperationOptions } from '@azure-rest/core-client'; -import { Paged } from '@azure/core-paging'; -import { RequestParameters } from '@azure-rest/core-client'; -import { StreamableMethod } from '@azure-rest/core-client'; -import { TokenCredential } from '@azure/core-auth'; - -// @public (undocumented) -export function createEdgeZones(credential: TokenCredential, options?: EdgeZonesClientOptionalParams): EdgeZonesContext; - -// @public -export interface EdgeZonesClientOptionalParams extends ClientOptions { - apiVersion?: string; -} - -// @public (undocumented) -export type EdgeZonesContext = Client & { - path: Routes; -}; - -// @public -export function extendedZonesGet(context: EdgeZonesContext, subscriptionId: string, extendedZoneName: string, options?: ExtendedZonesGetOptionalParams): Promise; - -// @public -export function extendedZonesListBySubscription(context: EdgeZonesContext, subscriptionId: string, options?: ExtendedZonesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - -// @public -export function extendedZonesRegister(context: EdgeZonesContext, subscriptionId: string, extendedZoneName: string, options?: ExtendedZonesRegisterOptionalParams): Promise; - -// @public -export function extendedZonesUnregister(context: EdgeZonesContext, subscriptionId: string, extendedZoneName: string, options?: ExtendedZonesUnregisterOptionalParams): Promise; - -// @public -export function operationsList(context: EdgeZonesContext, options?: OperationsListOptionalParams): PagedAsyncIterableIterator; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/edgezones/arm-edgezones/review/arm-edgezones-models.api.md b/sdk/edgezones/arm-edgezones/review/arm-edgezones-models.api.md index 64935ba066a6..0c6664cce351 100644 --- a/sdk/edgezones/arm-edgezones/review/arm-edgezones-models.api.md +++ b/sdk/edgezones/arm-edgezones/review/arm-edgezones-models.api.md @@ -4,16 +4,9 @@ ```ts -import { OperationOptions } from '@azure-rest/core-client'; - // @public export type ActionType = string; -// @public -export type ContinuablePage = TPage & { - continuationToken?: string; -}; - // @public export type CreatedByType = string; @@ -57,22 +50,6 @@ export interface ExtendedZoneProperties { readonly registrationState?: RegistrationState; } -// @public -export interface ExtendedZonesGetOptionalParams extends OperationOptions { -} - -// @public -export interface ExtendedZonesListBySubscriptionOptionalParams extends OperationOptions { -} - -// @public -export interface ExtendedZonesRegisterOptionalParams extends OperationOptions { -} - -// @public -export interface ExtendedZonesUnregisterOptionalParams extends OperationOptions { -} - // @public export enum KnownActionType { Internal = "Internal" @@ -125,25 +102,9 @@ export interface OperationDisplay { readonly resource?: string; } -// @public -export interface OperationsListOptionalParams extends OperationOptions { -} - // @public export type Origin = string; -// @public -export interface PagedAsyncIterableIterator { - [Symbol.asyncIterator](): PagedAsyncIterableIterator; - byPage: (settings?: TPageSettings) => AsyncIterableIterator>; - next(): Promise>; -} - -// @public -export interface PageSettings { - continuationToken?: string; -} - // @public export type ProvisioningState = string | ResourceProvisioningState | "Provisioning" | "Updating" | "Deleting" | "Accepted"; diff --git a/sdk/edgezones/arm-edgezones/src/api/edgeZonesContext.ts b/sdk/edgezones/arm-edgezones/src/api/edgeZonesContext.ts index 1682af6a3550..0bb1768acf69 100644 --- a/sdk/edgezones/arm-edgezones/src/api/edgeZonesContext.ts +++ b/sdk/edgezones/arm-edgezones/src/api/edgeZonesContext.ts @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +import { logger } from "../logger.js"; +import { Client, ClientOptions, getClient } from "@azure-rest/core-client"; import { TokenCredential } from "@azure/core-auth"; -import { ClientOptions } from "@azure-rest/core-client"; -import { EdgeZonesContext } from "../rest/index.js"; -import getClient from "../rest/index.js"; + +export interface EdgeZonesContext extends Client {} /** Optional parameters for the client. */ export interface EdgeZonesClientOptionalParams extends ClientOptions { @@ -12,18 +13,41 @@ export interface EdgeZonesClientOptionalParams extends ClientOptions { apiVersion?: string; } -export { EdgeZonesContext } from "../rest/index.js"; - export function createEdgeZones( credential: TokenCredential, options: EdgeZonesClientOptionalParams = {}, ): EdgeZonesContext { + const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; - const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-api` : "azsdk-js-api"; - - const clientContext = getClient(credential, { + const userAgentInfo = `azsdk-js-arm-edgezones/1.0.0-beta.4`; + const userAgentPrefix = prefixFromOptions + ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}` + : `azsdk-js-api ${userAgentInfo}`; + const { apiVersion: _, ...updatedOptions } = { ...options, userAgentOptions: { userAgentPrefix }, + loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info }, + credentials: { + scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], + }, + }; + const clientContext = getClient(endpointUrl, credential, updatedOptions); + clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + const apiVersion = options.apiVersion ?? "2024-04-01-preview"; + clientContext.pipeline.addPolicy({ + name: "ClientApiVersionPolicy", + sendRequest: (req, next) => { + // Use the apiVersion defined in request url directly + // Append one if there is no apiVersion and we have one at client options + const url = new URL(req.url); + if (!url.searchParams.get("api-version")) { + req.url = `${req.url}${ + Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; + } + + return next(req); + }, }); return clientContext; } diff --git a/sdk/edgezones/arm-edgezones/src/api/extendedZones/index.ts b/sdk/edgezones/arm-edgezones/src/api/extendedZones/index.ts index 64263463b447..2e66856c5637 100644 --- a/sdk/edgezones/arm-edgezones/src/api/extendedZones/index.ts +++ b/sdk/edgezones/arm-edgezones/src/api/extendedZones/index.ts @@ -1,39 +1,36 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { ExtendedZone, _ExtendedZoneListResult } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; import { - isUnexpected, EdgeZonesContext as Client, - ExtendedZonesGet200Response, - ExtendedZonesGetDefaultResponse, - ExtendedZonesListBySubscription200Response, - ExtendedZonesListBySubscriptionDefaultResponse, - ExtendedZonesRegister200Response, - ExtendedZonesRegisterDefaultResponse, - ExtendedZonesUnregister200Response, - ExtendedZonesUnregisterDefaultResponse, -} from "../../rest/index.js"; -import { - StreamableMethod, - operationOptionsToRequestParameters, - createRestError, -} from "@azure-rest/core-client"; -import { ExtendedZonesGetOptionalParams, ExtendedZonesListBySubscriptionOptionalParams, ExtendedZonesRegisterOptionalParams, ExtendedZonesUnregisterOptionalParams, -} from "../../models/options.js"; +} from "../index.js"; +import { + ExtendedZone, + extendedZoneDeserializer, + _ExtendedZoneListResult, + _extendedZoneListResultDeserializer, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; export function _extendedZonesGetSend( context: Client, subscriptionId: string, extendedZoneName: string, options: ExtendedZonesGetOptionalParams = { requestOptions: {} }, -): StreamableMethod { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}", @@ -44,48 +41,14 @@ export function _extendedZonesGetSend( } export async function _extendedZonesGetDeserialize( - result: ExtendedZonesGet200Response | ExtendedZonesGetDefaultResponse, + result: PathUncheckedResponse, ): Promise { - if (isUnexpected(result)) { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - provisioningState: result.body.properties?.["provisioningState"], - registrationState: result.body.properties?.["registrationState"], - displayName: result.body.properties?.["displayName"], - regionalDisplayName: result.body.properties?.["regionalDisplayName"], - regionType: result.body.properties?.["regionType"], - regionCategory: result.body.properties?.["regionCategory"], - geography: result.body.properties?.["geography"], - geographyGroup: result.body.properties?.["geographyGroup"], - longitude: result.body.properties?.["longitude"], - latitude: result.body.properties?.["latitude"], - homeLocation: result.body.properties?.["homeLocation"], - }, - }; + return extendedZoneDeserializer(result.body); } /** Gets an Azure Extended Zone for a subscription */ @@ -105,9 +68,7 @@ export function _extendedZonesListBySubscriptionSend( options: ExtendedZonesListBySubscriptionOptionalParams = { requestOptions: {}, }, -): StreamableMethod< - ExtendedZonesListBySubscription200Response | ExtendedZonesListBySubscriptionDefaultResponse -> { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones", @@ -117,55 +78,14 @@ export function _extendedZonesListBySubscriptionSend( } export async function _extendedZonesListBySubscriptionDeserialize( - result: - | ExtendedZonesListBySubscription200Response - | ExtendedZonesListBySubscriptionDefaultResponse, + result: PathUncheckedResponse, ): Promise<_ExtendedZoneListResult> { - if (isUnexpected(result)) { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - return { - value: result.body["value"].map((p) => { - return { - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - provisioningState: p.properties?.["provisioningState"], - registrationState: p.properties?.["registrationState"], - displayName: p.properties?.["displayName"], - regionalDisplayName: p.properties?.["regionalDisplayName"], - regionType: p.properties?.["regionType"], - regionCategory: p.properties?.["regionCategory"], - geography: p.properties?.["geography"], - geographyGroup: p.properties?.["geographyGroup"], - longitude: p.properties?.["longitude"], - latitude: p.properties?.["latitude"], - homeLocation: p.properties?.["homeLocation"], - }, - }; - }), - nextLink: result.body["nextLink"], - }; + return _extendedZoneListResultDeserializer(result.body); } /** Lists the Azure Extended Zones available to a subscription */ @@ -180,6 +100,7 @@ export function extendedZonesListBySubscription( context, () => _extendedZonesListBySubscriptionSend(context, subscriptionId, options), _extendedZonesListBySubscriptionDeserialize, + ["200"], { itemName: "value", nextLinkName: "nextLink" }, ); } @@ -189,7 +110,7 @@ export function _extendedZonesRegisterSend( subscriptionId: string, extendedZoneName: string, options: ExtendedZonesRegisterOptionalParams = { requestOptions: {} }, -): StreamableMethod { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/register", @@ -200,48 +121,14 @@ export function _extendedZonesRegisterSend( } export async function _extendedZonesRegisterDeserialize( - result: ExtendedZonesRegister200Response | ExtendedZonesRegisterDefaultResponse, + result: PathUncheckedResponse, ): Promise { - if (isUnexpected(result)) { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - provisioningState: result.body.properties?.["provisioningState"], - registrationState: result.body.properties?.["registrationState"], - displayName: result.body.properties?.["displayName"], - regionalDisplayName: result.body.properties?.["regionalDisplayName"], - regionType: result.body.properties?.["regionType"], - regionCategory: result.body.properties?.["regionCategory"], - geography: result.body.properties?.["geography"], - geographyGroup: result.body.properties?.["geographyGroup"], - longitude: result.body.properties?.["longitude"], - latitude: result.body.properties?.["latitude"], - homeLocation: result.body.properties?.["homeLocation"], - }, - }; + return extendedZoneDeserializer(result.body); } /** Registers a subscription for an Extended Zone */ @@ -265,7 +152,7 @@ export function _extendedZonesUnregisterSend( subscriptionId: string, extendedZoneName: string, options: ExtendedZonesUnregisterOptionalParams = { requestOptions: {} }, -): StreamableMethod { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/unregister", @@ -276,48 +163,14 @@ export function _extendedZonesUnregisterSend( } export async function _extendedZonesUnregisterDeserialize( - result: ExtendedZonesUnregister200Response | ExtendedZonesUnregisterDefaultResponse, + result: PathUncheckedResponse, ): Promise { - if (isUnexpected(result)) { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - provisioningState: result.body.properties?.["provisioningState"], - registrationState: result.body.properties?.["registrationState"], - displayName: result.body.properties?.["displayName"], - regionalDisplayName: result.body.properties?.["regionalDisplayName"], - regionType: result.body.properties?.["regionType"], - regionCategory: result.body.properties?.["regionCategory"], - geography: result.body.properties?.["geography"], - geographyGroup: result.body.properties?.["geographyGroup"], - longitude: result.body.properties?.["longitude"], - latitude: result.body.properties?.["latitude"], - homeLocation: result.body.properties?.["homeLocation"], - }, - }; + return extendedZoneDeserializer(result.body); } /** Unregisters a subscription for an Extended Zone */ diff --git a/sdk/edgezones/arm-edgezones/src/api/index.ts b/sdk/edgezones/arm-edgezones/src/api/index.ts index 5c9655d1cc43..173950c5429f 100644 --- a/sdk/edgezones/arm-edgezones/src/api/index.ts +++ b/sdk/edgezones/arm-edgezones/src/api/index.ts @@ -3,9 +3,16 @@ export { createEdgeZones, - EdgeZonesClientOptionalParams, EdgeZonesContext, + EdgeZonesClientOptionalParams, } from "./edgeZonesContext.js"; +export { + OperationsListOptionalParams, + ExtendedZonesGetOptionalParams, + ExtendedZonesListBySubscriptionOptionalParams, + ExtendedZonesRegisterOptionalParams, + ExtendedZonesUnregisterOptionalParams, +} from "./options.js"; export { extendedZonesGet, extendedZonesListBySubscription, diff --git a/sdk/edgezones/arm-edgezones/src/api/operations/index.ts b/sdk/edgezones/arm-edgezones/src/api/operations/index.ts index ca2a2330dae7..b8881aa8d77a 100644 --- a/sdk/edgezones/arm-edgezones/src/api/operations/index.ts +++ b/sdk/edgezones/arm-edgezones/src/api/operations/index.ts @@ -1,57 +1,41 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { Operation, _OperationListResult } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; +import { EdgeZonesContext as Client, OperationsListOptionalParams } from "../index.js"; import { - isUnexpected, - EdgeZonesContext as Client, - OperationsList200Response, - OperationsListDefaultResponse, -} from "../../rest/index.js"; + _OperationListResult, + _operationListResultDeserializer, + Operation, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; import { StreamableMethod, - operationOptionsToRequestParameters, + PathUncheckedResponse, createRestError, + operationOptionsToRequestParameters, } from "@azure-rest/core-client"; -import { OperationsListOptionalParams } from "../../models/options.js"; export function _operationsListSend( context: Client, options: OperationsListOptionalParams = { requestOptions: {} }, -): StreamableMethod { +): StreamableMethod { return context .path("/providers/Microsoft.EdgeZones/operations") .get({ ...operationOptionsToRequestParameters(options) }); } export async function _operationsListDeserialize( - result: OperationsList200Response | OperationsListDefaultResponse, + result: PathUncheckedResponse, ): Promise<_OperationListResult> { - if (isUnexpected(result)) { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - return { - value: result.body["value"].map((p) => { - return { - name: p["name"], - isDataAction: p["isDataAction"], - display: !p.display - ? undefined - : { - provider: p.display?.["provider"], - resource: p.display?.["resource"], - operation: p.display?.["operation"], - description: p.display?.["description"], - }, - origin: p["origin"], - actionType: p["actionType"], - }; - }), - nextLink: result.body["nextLink"], - }; + return _operationListResultDeserializer(result.body); } /** List the operations for the provider */ @@ -63,6 +47,7 @@ export function operationsList( context, () => _operationsListSend(context, options), _operationsListDeserialize, + ["200"], { itemName: "value", nextLinkName: "nextLink" }, ); } diff --git a/sdk/edgezones/arm-edgezones/src/models/options.ts b/sdk/edgezones/arm-edgezones/src/api/options.ts similarity index 100% rename from sdk/edgezones/arm-edgezones/src/models/options.ts rename to sdk/edgezones/arm-edgezones/src/api/options.ts diff --git a/sdk/edgezones/arm-edgezones/src/api/pagingHelpers.ts b/sdk/edgezones/arm-edgezones/src/api/pagingHelpers.ts deleted file mode 100644 index 5342e57b798f..000000000000 --- a/sdk/edgezones/arm-edgezones/src/api/pagingHelpers.ts +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; -import { RestError } from "@azure/core-rest-pipeline"; -import { - BuildPagedAsyncIteratorOptions, - ContinuablePage, - PageSettings, - PagedAsyncIterableIterator, - PagedResult, -} from "../models/pagingTypes.js"; -import { isUnexpected } from "../rest/index.js"; - -/** - * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator - */ -export function buildPagedAsyncIterator< - TElement, - TPage = TElement[], - TPageSettings extends PageSettings = PageSettings, - TResponse extends PathUncheckedResponse = PathUncheckedResponse, ->( - client: Client, - getInitialResponse: () => PromiseLike, - processResponseBody: (result: TResponse) => PromiseLike, - options: BuildPagedAsyncIteratorOptions = {}, -): PagedAsyncIterableIterator { - const itemName = options.itemName ?? "value"; - const nextLinkName = options.nextLinkName ?? "nextLink"; - const pagedResult: PagedResult = { - getPage: async (pageLink?: string) => { - const result = - pageLink === undefined - ? await getInitialResponse() - : await client.pathUnchecked(pageLink).get(); - checkPagingRequest(result); - const results = await processResponseBody(result as TResponse); - const nextLink = getNextLink(results, nextLinkName); - const values = getElements(results, itemName) as TPage; - return { - page: values, - nextPageLink: nextLink, - }; - }, - byPage: (settings?: TPageSettings) => { - const { continuationToken } = settings ?? {}; - return getPageAsyncIterator(pagedResult, { - pageLink: continuationToken, - }); - }, - }; - return getPagedAsyncIterator(pagedResult); -} - -/** - * returns an async iterator that iterates over results. It also has a `byPage` - * method that returns pages of items at once. - * - * @param pagedResult - an object that specifies how to get pages. - * @returns a paged async iterator that iterates over results. - */ - -function getPagedAsyncIterator< - TElement, - TPage = TElement[], - TPageSettings extends PageSettings = PageSettings, ->( - pagedResult: PagedResult, -): PagedAsyncIterableIterator { - const iter = getItemAsyncIterator(pagedResult); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: - pagedResult?.byPage ?? - ((settings?: TPageSettings) => { - const { continuationToken } = settings ?? {}; - return getPageAsyncIterator(pagedResult, { - pageLink: continuationToken, - }); - }), - }; -} - -async function* getItemAsyncIterator( - pagedResult: PagedResult, -): AsyncIterableIterator { - const pages = getPageAsyncIterator(pagedResult); - for await (const page of pages) { - yield* page as unknown as TElement[]; - } -} - -async function* getPageAsyncIterator( - pagedResult: PagedResult, - options: { - pageLink?: string; - } = {}, -): AsyncIterableIterator> { - const { pageLink } = options; - let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink); - if (!response) { - return; - } - let result = response.page as ContinuablePage; - result.continuationToken = response.nextPageLink; - yield result; - while (response.nextPageLink) { - response = await pagedResult.getPage(response.nextPageLink); - if (!response) { - return; - } - result = response.page as ContinuablePage; - result.continuationToken = response.nextPageLink; - yield result; - } -} - -/** - * Gets for the value of nextLink in the body - */ -function getNextLink(body: unknown, nextLinkName?: string): string | undefined { - if (!nextLinkName) { - return undefined; - } - - const nextLink = (body as Record)[nextLinkName]; - - if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) { - throw new RestError( - `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`, - ); - } - - if (nextLink === null) { - return undefined; - } - - return nextLink; -} - -/** - * Gets the elements of the current request in the body. - */ -function getElements(body: unknown, itemName: string): T[] { - const value = (body as Record)[itemName] as T[]; - if (!Array.isArray(value)) { - throw new RestError( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, - ); - } - - return value ?? []; -} - -/** - * Checks if a request failed - */ -function checkPagingRequest(response: PathUncheckedResponse): void { - if (isUnexpected(response)) { - throw createRestError( - `Pagination failed with unexpected statusCode ${response.status}`, - response, - ); - } -} diff --git a/sdk/edgezones/arm-edgezones/src/classic/extendedZones/index.ts b/sdk/edgezones/arm-edgezones/src/classic/extendedZones/index.ts index 4b5c32697f7a..3211cfa66c64 100644 --- a/sdk/edgezones/arm-edgezones/src/classic/extendedZones/index.ts +++ b/sdk/edgezones/arm-edgezones/src/classic/extendedZones/index.ts @@ -2,20 +2,20 @@ // Licensed under the MIT License. import { EdgeZonesContext } from "../../api/edgeZonesContext.js"; -import { ExtendedZone } from "../../models/models.js"; import { extendedZonesGet, extendedZonesListBySubscription, extendedZonesRegister, extendedZonesUnregister, } from "../../api/extendedZones/index.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; import { ExtendedZonesGetOptionalParams, ExtendedZonesListBySubscriptionOptionalParams, ExtendedZonesRegisterOptionalParams, ExtendedZonesUnregisterOptionalParams, -} from "../../models/options.js"; +} from "../../api/options.js"; +import { ExtendedZone } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; /** Interface representing a ExtendedZones operations. */ export interface ExtendedZonesOperations { diff --git a/sdk/edgezones/arm-edgezones/src/classic/operations/index.ts b/sdk/edgezones/arm-edgezones/src/classic/operations/index.ts index cd66c7bf8188..08fa1220a67b 100644 --- a/sdk/edgezones/arm-edgezones/src/classic/operations/index.ts +++ b/sdk/edgezones/arm-edgezones/src/classic/operations/index.ts @@ -2,10 +2,10 @@ // Licensed under the MIT License. import { EdgeZonesContext } from "../../api/edgeZonesContext.js"; -import { Operation } from "../../models/models.js"; import { operationsList } from "../../api/operations/index.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { OperationsListOptionalParams } from "../../models/options.js"; +import { OperationsListOptionalParams } from "../../api/options.js"; +import { Operation } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; /** Interface representing a Operations operations. */ export interface OperationsOperations { diff --git a/sdk/edgezones/arm-edgezones/src/edgeZonesClient.ts b/sdk/edgezones/arm-edgezones/src/edgeZonesClient.ts index c4dcc233ab45..c56cd5dc771b 100644 --- a/sdk/edgezones/arm-edgezones/src/edgeZonesClient.ts +++ b/sdk/edgezones/arm-edgezones/src/edgeZonesClient.ts @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { TokenCredential } from "@azure/core-auth"; -import { Pipeline } from "@azure/core-rest-pipeline"; import { getOperationsOperations, OperationsOperations } from "./classic/operations/index.js"; import { getExtendedZonesOperations, ExtendedZonesOperations, } from "./classic/extendedZones/index.js"; -import { createEdgeZones, EdgeZonesClientOptionalParams, EdgeZonesContext } from "./api/index.js"; +import { createEdgeZones, EdgeZonesContext, EdgeZonesClientOptionalParams } from "./api/index.js"; +import { Pipeline } from "@azure/core-rest-pipeline"; +import { TokenCredential } from "@azure/core-auth"; export { EdgeZonesClientOptionalParams } from "./api/edgeZonesContext.js"; @@ -25,8 +25,7 @@ export class EdgeZonesClient { const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-client` - : "azsdk-js-client"; - + : `azsdk-js-client`; this._client = createEdgeZones(credential, { ...options, userAgentOptions: { userAgentPrefix }, diff --git a/sdk/edgezones/arm-edgezones/src/index.ts b/sdk/edgezones/arm-edgezones/src/index.ts index efbc40758fd8..c1d1295efad9 100644 --- a/sdk/edgezones/arm-edgezones/src/index.ts +++ b/sdk/edgezones/arm-edgezones/src/index.ts @@ -1,19 +1,26 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export { EdgeZonesClient, EdgeZonesClientOptionalParams } from "./edgeZonesClient.js"; +import { + PageSettings, + ContinuablePage, + PagedAsyncIterableIterator, +} from "./static-helpers/pagingHelpers.js"; + +export { EdgeZonesClient } from "./edgeZonesClient.js"; export { - Resource, - SystemData, - KnownCreatedByType, - CreatedByType, - ProxyResource, ExtendedZone, ExtendedZoneProperties, + ProvisioningState, KnownResourceProvisioningState, ResourceProvisioningState, KnownRegistrationState, RegistrationState, + ProxyResource, + Resource, + SystemData, + KnownCreatedByType, + CreatedByType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, @@ -23,14 +30,14 @@ export { Origin, KnownActionType, ActionType, - ProvisioningState, +} from "./models/index.js"; +export { + EdgeZonesClientOptionalParams, OperationsListOptionalParams, ExtendedZonesGetOptionalParams, ExtendedZonesListBySubscriptionOptionalParams, ExtendedZonesRegisterOptionalParams, ExtendedZonesUnregisterOptionalParams, - PageSettings, - ContinuablePage, - PagedAsyncIterableIterator, -} from "./models/index.js"; +} from "./api/index.js"; export { ExtendedZonesOperations, OperationsOperations } from "./classic/index.js"; +export { PageSettings, ContinuablePage, PagedAsyncIterableIterator }; diff --git a/sdk/edgezones/arm-edgezones/src/models/index.ts b/sdk/edgezones/arm-edgezones/src/models/index.ts index 70119689eb96..7fb8e89bc3dc 100644 --- a/sdk/edgezones/arm-edgezones/src/models/index.ts +++ b/sdk/edgezones/arm-edgezones/src/models/index.ts @@ -2,17 +2,18 @@ // Licensed under the MIT License. export { - Resource, - SystemData, - KnownCreatedByType, - CreatedByType, - ProxyResource, ExtendedZone, ExtendedZoneProperties, + ProvisioningState, KnownResourceProvisioningState, ResourceProvisioningState, KnownRegistrationState, RegistrationState, + ProxyResource, + Resource, + SystemData, + KnownCreatedByType, + CreatedByType, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, @@ -22,13 +23,4 @@ export { Origin, KnownActionType, ActionType, - ProvisioningState, } from "./models.js"; -export { - OperationsListOptionalParams, - ExtendedZonesGetOptionalParams, - ExtendedZonesListBySubscriptionOptionalParams, - ExtendedZonesRegisterOptionalParams, - ExtendedZonesUnregisterOptionalParams, -} from "./options.js"; -export { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./pagingTypes.js"; diff --git a/sdk/edgezones/arm-edgezones/src/models/models.ts b/sdk/edgezones/arm-edgezones/src/models/models.ts index 4a3480d1e5a2..154925f136ef 100644 --- a/sdk/edgezones/arm-edgezones/src/models/models.ts +++ b/sdk/edgezones/arm-edgezones/src/models/models.ts @@ -1,67 +1,26 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - readonly id?: string; - /** The name of the resource */ - readonly name?: string; - /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - readonly type?: string; - /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - readonly systemData?: SystemData; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key", -} - -/** - * The kind of entity that created the resource. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - /** Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering. */ export interface ExtendedZone extends ProxyResource { /** The resource-specific properties for this resource. */ properties?: ExtendedZoneProperties; } +export function extendedZoneDeserializer(item: any): ExtendedZone { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : extendedZonePropertiesDeserializer(item["properties"]), + }; +} + /** The properties of an Extended Zone resource. */ export interface ExtendedZoneProperties { /** Status of the last operation performed by the subscription on the Edge Zone resource */ @@ -88,13 +47,48 @@ export interface ExtendedZoneProperties { readonly homeLocation: string; } -/** Known values of {@link ResourceProvisioningState} that the service accepts. */ +export function extendedZonePropertiesDeserializer(item: any): ExtendedZoneProperties { + return { + provisioningState: !item["provisioningState"] + ? item["provisioningState"] + : provisioningStateDeserializer(item["provisioningState"]), + registrationState: item["registrationState"], + displayName: item["displayName"], + regionalDisplayName: item["regionalDisplayName"], + regionType: item["regionType"], + regionCategory: item["regionCategory"], + geography: item["geography"], + geographyGroup: item["geographyGroup"], + longitude: item["longitude"], + latitude: item["latitude"], + homeLocation: item["homeLocation"], + }; +} + +/** Alias for ProvisioningState */ +export type ProvisioningState = + | string + | ResourceProvisioningState + | "Provisioning" + | "Updating" + | "Deleting" + | "Accepted"; + +export function provisioningStateSerializer(item: ProvisioningState): any { + return item; +} + +export function provisioningStateDeserializer(item: any): ProvisioningState { + return item; +} + +/** The provisioning state of a resource type. */ export enum KnownResourceProvisioningState { - /** Succeeded */ + /** Resource has been created. */ Succeeded = "Succeeded", - /** Failed */ + /** Resource creation failed. */ Failed = "Failed", - /** Canceled */ + /** Resource creation was canceled. */ Canceled = "Canceled", } @@ -103,21 +97,21 @@ export enum KnownResourceProvisioningState { * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **Succeeded**: Resource has been created. \ + * **Failed**: Resource creation failed. \ + * **Canceled**: Resource creation was canceled. */ export type ResourceProvisioningState = string; -/** Known values of {@link RegistrationState} that the service accepts. */ +/** The Azure Extended Zone registration status for a subscription */ export enum KnownRegistrationState { - /** NotRegistered */ + /** Subscription not registered for the Azure Extended Zone */ NotRegistered = "NotRegistered", - /** PendingRegister */ + /** Subscription pending registration for the Azure Extended Zone */ PendingRegister = "PendingRegister", - /** Registered */ + /** Subscription is registered for the Azure Extended Zone */ Registered = "Registered", - /** PendingUnregister */ + /** Subscription is pending unregistering for the Azure Extended Zone */ PendingUnregister = "PendingUnregister", } @@ -126,19 +120,115 @@ export enum KnownRegistrationState { * {@link KnownRegistrationState} can be used interchangeably with RegistrationState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotRegistered** \ - * **PendingRegister** \ - * **Registered** \ - * **PendingUnregister** + * **NotRegistered**: Subscription not registered for the Azure Extended Zone \ + * **PendingRegister**: Subscription pending registration for the Azure Extended Zone \ + * **Registered**: Subscription is registered for the Azure Extended Zone \ + * **PendingUnregister**: Subscription is pending unregistering for the Azure Extended Zone */ export type RegistrationState = string; +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +export function proxyResourceDeserializer(item: any): ProxyResource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + }; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ + readonly id?: string; + /** The name of the resource */ + readonly name?: string; + /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ + readonly type?: string; + /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ + readonly systemData?: SystemData; +} + +export function resourceDeserializer(item: any): Resource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + }; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +export function systemDataDeserializer(item: any): SystemData { + return { + createdBy: item["createdBy"], + createdByType: item["createdByType"], + createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]), + lastModifiedBy: item["lastModifiedBy"], + lastModifiedByType: item["lastModifiedByType"], + lastModifiedAt: !item["lastModifiedAt"] + ? item["lastModifiedAt"] + : new Date(item["lastModifiedAt"]), + }; +} + +/** The kind of entity that created the resource. */ +export enum KnownCreatedByType { + /** The entity was created by a user. */ + User = "User", + /** The entity was created by an application. */ + Application = "Application", + /** The entity was created by a managed identity. */ + ManagedIdentity = "ManagedIdentity", + /** The entity was created by a key. */ + Key = "Key", +} + +/** + * The kind of entity that created the resource. \ + * {@link KnowncreatedByType} can be used interchangeably with createdByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User**: The entity was created by a user. \ + * **Application**: The entity was created by an application. \ + * **ManagedIdentity**: The entity was created by a managed identity. \ + * **Key**: The entity was created by a key. + */ +export type CreatedByType = string; + /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ export interface ErrorResponse { /** The error object. */ error?: ErrorDetail; } +export function errorResponseDeserializer(item: any): ErrorResponse { + return { + error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]), + }; +} + /** The error detail. */ export interface ErrorDetail { /** The error code. */ @@ -153,6 +243,24 @@ export interface ErrorDetail { readonly additionalInfo?: ErrorAdditionalInfo[]; } +export function errorDetailDeserializer(item: any): ErrorDetail { + return { + code: item["code"], + message: item["message"], + target: item["target"], + details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]), + additionalInfo: !item["additionalInfo"] + ? item["additionalInfo"] + : errorAdditionalInfoArrayDeserializer(item["additionalInfo"]), + }; +} + +export function errorDetailArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return errorDetailDeserializer(item); + }); +} + /** The resource management error additional info. */ export interface ErrorAdditionalInfo { /** The additional info type. */ @@ -161,6 +269,26 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } +export function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo { + return { + type: item["type"], + info: !item["info"] ? item["info"] : _errorAdditionalInfoInfoDeserializer(item["info"]), + }; +} + +/** model interface _ErrorAdditionalInfoInfo */ +export interface _ErrorAdditionalInfoInfo {} + +export function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo { + return item; +} + +export function errorAdditionalInfoArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return errorAdditionalInfoDeserializer(item); + }); +} + /** The response of a ExtendedZone list operation. */ export interface _ExtendedZoneListResult { /** The ExtendedZone items on this page */ @@ -169,6 +297,19 @@ export interface _ExtendedZoneListResult { nextLink?: string; } +export function _extendedZoneListResultDeserializer(item: any): _ExtendedZoneListResult { + return { + value: extendedZoneArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function extendedZoneArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return extendedZoneDeserializer(item); + }); +} + /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ export interface _OperationListResult { /** The Operation items on this page */ @@ -177,6 +318,13 @@ export interface _OperationListResult { nextLink?: string; } +export function _operationListResultDeserializer(item: any): _OperationListResult { + return { + value: operationArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + /** Details of a REST API operation, returned from the Resource Provider Operations API */ export interface Operation { /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ @@ -191,6 +339,16 @@ export interface Operation { actionType?: ActionType; } +export function operationDeserializer(item: any): Operation { + return { + name: item["name"], + isDataAction: item["isDataAction"], + display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]), + origin: item["origin"], + actionType: item["actionType"], + }; +} + /** Localized display information for and operation. */ export interface OperationDisplay { /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ @@ -203,13 +361,22 @@ export interface OperationDisplay { readonly description?: string; } -/** Known values of {@link Origin} that the service accepts. */ +export function operationDisplayDeserializer(item: any): OperationDisplay { + return { + provider: item["provider"], + resource: item["resource"], + operation: item["operation"], + description: item["description"], + }; +} + +/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ export enum KnownOrigin { - /** user */ + /** Indicates the operation is initiated by a user. */ user = "user", - /** system */ + /** Indicates the operation is initiated by a system. */ system = "system", - /** user,system */ + /** Indicates the operation is initiated by a user or system. */ "user,system" = "user,system", } @@ -218,15 +385,15 @@ export enum KnownOrigin { * {@link KnownOrigin} can be used interchangeably with Origin, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **user** \ - * **system** \ - * **user,system** + * **user**: Indicates the operation is initiated by a user. \ + * **system**: Indicates the operation is initiated by a system. \ + * **user,system**: Indicates the operation is initiated by a user or system. */ export type Origin = string; -/** Known values of {@link ActionType} that the service accepts. */ +/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ export enum KnownActionType { - /** Internal */ + /** Actions are for internal-only APIs. */ Internal = "Internal", } @@ -235,14 +402,12 @@ export enum KnownActionType { * {@link KnownActionType} can be used interchangeably with ActionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Internal** + * **Internal**: Actions are for internal-only APIs. */ export type ActionType = string; -/** Alias for ProvisioningState */ -export type ProvisioningState = - | string - | ResourceProvisioningState - | "Provisioning" - | "Updating" - | "Deleting" - | "Accepted"; + +export function operationArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return operationDeserializer(item); + }); +} diff --git a/sdk/edgezones/arm-edgezones/src/models/pagingTypes.ts b/sdk/edgezones/arm-edgezones/src/models/pagingTypes.ts deleted file mode 100644 index c002c23f31eb..000000000000 --- a/sdk/edgezones/arm-edgezones/src/models/pagingTypes.ts +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * Options for the byPage method - */ -export interface PageSettings { - /** - * A reference to a specific page to start iterating from. - */ - continuationToken?: string; -} - -/** - * An interface that describes a page of results. - */ -export type ContinuablePage = TPage & { - /** - * The token that keeps track of where to continue the iterator - */ - continuationToken?: string; -}; - -/** - * An interface that allows async iterable iteration both to completion and by page. - */ -export interface PagedAsyncIterableIterator< - TElement, - TPage = TElement[], - TPageSettings extends PageSettings = PageSettings, -> { - /** - * The next method, part of the iteration protocol - */ - next(): Promise>; - /** - * The connection to the async iterator, part of the iteration protocol - */ - [Symbol.asyncIterator](): PagedAsyncIterableIterator; - /** - * Return an AsyncIterableIterator that works a page at a time - */ - byPage: (settings?: TPageSettings) => AsyncIterableIterator>; -} - -/** - * An interface that describes how to communicate with the service. - */ -export interface PagedResult< - TElement, - TPage = TElement[], - TPageSettings extends PageSettings = PageSettings, -> { - /** - * Link to the first page of results. - */ - firstPageLink?: string; - /** - * A method that returns a page of results. - */ - getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>; - /** - * a function to implement the `byPage` method on the paged async iterator. - */ - byPage?: (settings?: TPageSettings) => AsyncIterableIterator>; - - /** - * A function to extract elements from a page. - */ - toElements?: (page: TPage) => TElement[]; -} - -/** - * Options for the paging helper - */ -export interface BuildPagedAsyncIteratorOptions { - itemName?: string; - nextLinkName?: string; -} diff --git a/sdk/edgezones/arm-edgezones/src/rest/clientDefinitions.ts b/sdk/edgezones/arm-edgezones/src/rest/clientDefinitions.ts deleted file mode 100644 index 60a51e03484b..000000000000 --- a/sdk/edgezones/arm-edgezones/src/rest/clientDefinitions.ts +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { - OperationsListParameters, - ExtendedZonesGetParameters, - ExtendedZonesListBySubscriptionParameters, - ExtendedZonesRegisterParameters, - ExtendedZonesUnregisterParameters, -} from "./parameters.js"; -import { - OperationsList200Response, - OperationsListDefaultResponse, - ExtendedZonesGet200Response, - ExtendedZonesGetDefaultResponse, - ExtendedZonesListBySubscription200Response, - ExtendedZonesListBySubscriptionDefaultResponse, - ExtendedZonesRegister200Response, - ExtendedZonesRegisterDefaultResponse, - ExtendedZonesUnregister200Response, - ExtendedZonesUnregisterDefaultResponse, -} from "./responses.js"; -import { Client, StreamableMethod } from "@azure-rest/core-client"; - -export interface OperationsList { - /** List the operations for the provider */ - get( - options?: OperationsListParameters, - ): StreamableMethod; -} - -export interface ExtendedZonesGet { - /** Gets an Azure Extended Zone for a subscription */ - get( - options?: ExtendedZonesGetParameters, - ): StreamableMethod; -} - -export interface ExtendedZonesListBySubscription { - /** Lists the Azure Extended Zones available to a subscription */ - get( - options?: ExtendedZonesListBySubscriptionParameters, - ): StreamableMethod< - ExtendedZonesListBySubscription200Response | ExtendedZonesListBySubscriptionDefaultResponse - >; -} - -export interface ExtendedZonesRegister { - /** Registers a subscription for an Extended Zone */ - post( - options: ExtendedZonesRegisterParameters, - ): StreamableMethod; -} - -export interface ExtendedZonesUnregister { - /** Unregisters a subscription for an Extended Zone */ - post( - options: ExtendedZonesUnregisterParameters, - ): StreamableMethod; -} - -export interface Routes { - /** Resource for '/providers/Microsoft.EdgeZones/operations' has methods for the following verbs: get */ - (path: "/providers/Microsoft.EdgeZones/operations"): OperationsList; - /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.EdgeZones/extendedZones/\{extendedZoneName\}' has methods for the following verbs: get */ - ( - path: "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}", - subscriptionId: string, - extendedZoneName: string, - ): ExtendedZonesGet; - /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.EdgeZones/extendedZones' has methods for the following verbs: get */ - ( - path: "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones", - subscriptionId: string, - ): ExtendedZonesListBySubscription; - /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.EdgeZones/extendedZones/\{extendedZoneName\}/register' has methods for the following verbs: post */ - ( - path: "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/register", - subscriptionId: string, - extendedZoneName: string, - ): ExtendedZonesRegister; - /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.EdgeZones/extendedZones/\{extendedZoneName\}/unregister' has methods for the following verbs: post */ - ( - path: "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/unregister", - subscriptionId: string, - extendedZoneName: string, - ): ExtendedZonesUnregister; -} - -export type EdgeZonesContext = Client & { - path: Routes; -}; diff --git a/sdk/edgezones/arm-edgezones/src/rest/edgeZonesClient.ts b/sdk/edgezones/arm-edgezones/src/rest/edgeZonesClient.ts deleted file mode 100644 index 6eb20a0c3a11..000000000000 --- a/sdk/edgezones/arm-edgezones/src/rest/edgeZonesClient.ts +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "../logger.js"; -import { TokenCredential } from "@azure/core-auth"; -import { EdgeZonesContext } from "./clientDefinitions.js"; - -/** The optional parameters for the client */ -export interface EdgeZonesContextOptions extends ClientOptions { - /** The api version option of the client */ - apiVersion?: string; -} - -/** - * Initialize a new instance of `EdgeZonesContext` - * @param credentials - uniquely identify client credential - * @param options - the parameter for all optional parameters - */ -export default function createClient( - credentials: TokenCredential, - { apiVersion = "2024-04-01-preview", ...options }: EdgeZonesContextOptions = {}, -): EdgeZonesContext { - const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; - const userAgentInfo = `azsdk-js-arm-edgezones/1.0.0-beta.2`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` - : `${userAgentInfo}`; - options = { - ...options, - userAgentOptions: { - userAgentPrefix, - }, - loggingOptions: { - logger: options.loggingOptions?.logger ?? logger.info, - }, - credentials: { - scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], - }, - }; - const client = getClient(endpointUrl, credentials, options) as EdgeZonesContext; - - client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); - client.pipeline.addPolicy({ - name: "ClientApiVersionPolicy", - sendRequest: (req, next) => { - // Use the apiVersion defined in request url directly - // Append one if there is no apiVersion and we have one at client options - const url = new URL(req.url); - if (!url.searchParams.get("api-version") && apiVersion) { - req.url = `${req.url}${ - Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" - }api-version=${apiVersion}`; - } - - return next(req); - }, - }); - return client; -} diff --git a/sdk/edgezones/arm-edgezones/src/rest/index.ts b/sdk/edgezones/arm-edgezones/src/rest/index.ts deleted file mode 100644 index 7c19600cac4e..000000000000 --- a/sdk/edgezones/arm-edgezones/src/rest/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import EdgeZonesClient from "./edgeZonesClient.js"; - -export * from "./edgeZonesClient.js"; -export * from "./parameters.js"; -export * from "./responses.js"; -export * from "./clientDefinitions.js"; -export * from "./isUnexpected.js"; -export * from "./outputModels.js"; -export * from "./paginateHelper.js"; - -export default EdgeZonesClient; diff --git a/sdk/edgezones/arm-edgezones/src/rest/isUnexpected.ts b/sdk/edgezones/arm-edgezones/src/rest/isUnexpected.ts deleted file mode 100644 index 7ffff74a5f91..000000000000 --- a/sdk/edgezones/arm-edgezones/src/rest/isUnexpected.ts +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { - OperationsList200Response, - OperationsListDefaultResponse, - ExtendedZonesGet200Response, - ExtendedZonesGetDefaultResponse, - ExtendedZonesListBySubscription200Response, - ExtendedZonesListBySubscriptionDefaultResponse, - ExtendedZonesRegister200Response, - ExtendedZonesRegisterDefaultResponse, - ExtendedZonesUnregister200Response, - ExtendedZonesUnregisterDefaultResponse, -} from "./responses.js"; - -const responseMap: Record = { - "GET /providers/Microsoft.EdgeZones/operations": ["200"], - "GET /subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}": - ["200"], - "GET /subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones": ["200"], - "POST /subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/register": - ["200"], - "POST /subscriptions/{subscriptionId}/providers/Microsoft.EdgeZones/extendedZones/{extendedZoneName}/unregister": - ["200"], -}; - -export function isUnexpected( - response: OperationsList200Response | OperationsListDefaultResponse, -): response is OperationsListDefaultResponse; -export function isUnexpected( - response: ExtendedZonesGet200Response | ExtendedZonesGetDefaultResponse, -): response is ExtendedZonesGetDefaultResponse; -export function isUnexpected( - response: - | ExtendedZonesListBySubscription200Response - | ExtendedZonesListBySubscriptionDefaultResponse, -): response is ExtendedZonesListBySubscriptionDefaultResponse; -export function isUnexpected( - response: ExtendedZonesRegister200Response | ExtendedZonesRegisterDefaultResponse, -): response is ExtendedZonesRegisterDefaultResponse; -export function isUnexpected( - response: ExtendedZonesUnregister200Response | ExtendedZonesUnregisterDefaultResponse, -): response is ExtendedZonesUnregisterDefaultResponse; -export function isUnexpected( - response: - | OperationsList200Response - | OperationsListDefaultResponse - | ExtendedZonesGet200Response - | ExtendedZonesGetDefaultResponse - | ExtendedZonesListBySubscription200Response - | ExtendedZonesListBySubscriptionDefaultResponse - | ExtendedZonesRegister200Response - | ExtendedZonesRegisterDefaultResponse - | ExtendedZonesUnregister200Response - | ExtendedZonesUnregisterDefaultResponse, -): response is - | OperationsListDefaultResponse - | ExtendedZonesGetDefaultResponse - | ExtendedZonesListBySubscriptionDefaultResponse - | ExtendedZonesRegisterDefaultResponse - | ExtendedZonesUnregisterDefaultResponse { - const lroOriginal = response.headers["x-ms-original-url"]; - const url = new URL(lroOriginal ?? response.request.url); - const method = response.request.method; - let pathDetails = responseMap[`${method} ${url.pathname}`]; - if (!pathDetails) { - pathDetails = getParametrizedPathSuccess(method, url.pathname); - } - return !pathDetails.includes(response.status); -} - -function getParametrizedPathSuccess(method: string, path: string): string[] { - const pathParts = path.split("/"); - - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, - matchedValue: string[] = []; - - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(responseMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - - // track if we have found a match to return the values found. - let found = true; - for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { - if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { - const start = candidateParts[i]!.indexOf("}") + 1, - end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "", - ); - - if (!isMatched) { - found = false; - break; - } - continue; - } - - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value; - } - } - - return matchedValue; -} - -function getPathFromMapKey(mapKey: string): string { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} diff --git a/sdk/edgezones/arm-edgezones/src/rest/outputModels.ts b/sdk/edgezones/arm-edgezones/src/rest/outputModels.ts deleted file mode 100644 index e1ecdd671670..000000000000 --- a/sdk/edgezones/arm-edgezones/src/rest/outputModels.ts +++ /dev/null @@ -1,306 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { Paged } from "@azure/core-paging"; - -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface OperationOutput { - /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ - readonly name?: string; - /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - readonly display?: OperationDisplayOutput; - /** - * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" - * - * Possible values: "user", "system", "user,system" - */ - readonly origin?: OriginOutput; - /** - * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - * - * Possible values: "Internal" - */ - actionType?: ActionTypeOutput; -} - -/** Localized display information for and operation. */ -export interface OperationDisplayOutput { - /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ - readonly provider?: string; - /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ - readonly resource?: string; - /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ - readonly operation?: string; - /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ - readonly description?: string; -} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ -export interface ErrorResponseOutput { - /** The error object. */ - error?: ErrorDetailOutput; -} - -/** The error detail. */ -export interface ErrorDetailOutput { - /** The error code. */ - readonly code?: string; - /** The error message. */ - readonly message?: string; - /** The error target. */ - readonly target?: string; - /** The error details. */ - readonly details?: Array; - /** The error additional info. */ - readonly additionalInfo?: Array; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfoOutput { - /** The additional info type. */ - readonly type?: string; - /** The additional info. */ - readonly info?: Record; -} - -/** Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering. */ -export interface ExtendedZoneOutput extends ProxyResourceOutput { - /** The resource-specific properties for this resource. */ - properties?: ExtendedZonePropertiesOutput; -} - -/** The properties of an Extended Zone resource. */ -export interface ExtendedZonePropertiesOutput { - /** - * Status of the last operation performed by the subscription on the Edge Zone resource - * - * Possible values: "Provisioning", "Updating", "Deleting", "Accepted" - */ - readonly provisioningState?: ProvisioningStateOutput; - /** - * Indicates the Azure Extended Zone registration’s approval status. - * - * Possible values: "NotRegistered", "PendingRegister", "Registered", "PendingUnregister" - */ - readonly registrationState?: RegistrationStateOutput; - /** Display name of the Azure Extended Zone. */ - readonly displayName: string; - /** Regional display name of the Azure Extended Zone. */ - readonly regionalDisplayName: string; - /** Type of region for the Azure Extended Zone. */ - readonly regionType: string; - /** Category of region for the Azure Extended Zone. */ - readonly regionCategory: string; - /** Geography of the Azure Extended Zone. */ - readonly geography: string; - /** The Geography Group of the Azure Extended Zone. */ - readonly geographyGroup: string; - /** The Longitude of the Azure Extended Zone. */ - readonly longitude: string; - /** The Latitude of the Azure Extended Zone. */ - readonly latitude: string; - /** The Home Location of the Azure Extended Zone. */ - readonly homeLocation: string; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResourceOutput extends ResourceOutput {} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface ResourceOutput { - /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - readonly id?: string; - /** The name of the resource */ - readonly name?: string; - /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - readonly type?: string; - /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - readonly systemData?: SystemDataOutput; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemDataOutput { - /** The identity that created the resource. */ - createdBy?: string; - /** - * The type of identity that created the resource. - * - * Possible values: "User", "Application", "ManagedIdentity", "Key" - */ - createdByType?: CreatedByTypeOutput; - /** The timestamp of resource creation (UTC). */ - createdAt?: string; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** - * The type of identity that last modified the resource. - * - * Possible values: "User", "Application", "ManagedIdentity", "Key" - */ - lastModifiedByType?: CreatedByTypeOutput; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: string; -} - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResourceOutput extends ResourceOutput { - /** Resource tags. */ - tags?: Record; - /** The geo-location where the resource lives */ - location: string; -} - -/** The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set. */ -export interface ResourceModelWithAllowedPropertySetOutput extends TrackedResourceOutput { - /** - * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. - * If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. - */ - managedBy?: string; - /** - * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. - * If supported, the resource provider must validate and persist this value. - */ - kind?: string; - /** - * The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. - * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), - * If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. - */ - eTag?: string; - identity?: IdentityOutput; - sku?: SkuOutput; - plan?: PlanOutput; -} - -/** Identity for the resource. */ -export interface IdentityOutput { - /** The principal ID of resource identity. The value must be an UUID. */ - readonly principalId?: string; - /** The tenant ID of resource. The value must be an UUID. */ - readonly tenantId?: string; - /** The identity type. */ - type?: ResourceIdentityTypeOutput; -} - -/** The resource model definition representing SKU */ -export interface SkuOutput { - /** The name of the SKU. Ex - P3. It is typically a letter+number code */ - name: string; - /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ - tier?: SkuTierOutput; - /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ - size?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ - capacity?: number; -} - -/** Plan for the resource. */ -export interface PlanOutput { - /** A user defined name of the 3rd Party Artifact that is being procured. */ - name: string; - /** The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic */ - publisher: string; - /** The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. */ - product: string; - /** A publisher provided promotion code as provisioned in Data Market for the said product/artifact. */ - promotionCode?: string; - /** The version of the desired product/artifact. */ - version?: string; -} - -/** The base extension resource. */ -export interface ExtensionResourceOutput extends ResourceOutput {} - -/** The resource model definition for an Azure Resource Manager resource with an etag. */ -export interface AzureEntityResourceOutput extends ResourceOutput { - /** Resource Etag. */ - readonly etag?: string; -} - -/** A private link resource. */ -export interface PrivateLinkResourceOutput extends ResourceOutput { - /** Resource properties. */ - properties?: PrivateLinkResourcePropertiesOutput; -} - -/** Properties of a private link resource. */ -export interface PrivateLinkResourcePropertiesOutput { - /** The private link resource group id. */ - readonly groupId?: string; - /** The private link resource required member names. */ - readonly requiredMembers?: string[]; - /** The private link resource private link DNS zone name. */ - requiredZoneNames?: string[]; -} - -/** The private endpoint connection resource */ -export interface PrivateEndpointConnectionOutput extends ResourceOutput { - /** The private endpoint connection properties */ - properties?: PrivateEndpointConnectionPropertiesOutput; -} - -/** Properties of the private endpoint connection. */ -export interface PrivateEndpointConnectionPropertiesOutput { - /** The group ids for the private endpoint resource. */ - readonly groupIds?: string[]; - /** The private endpoint resource. */ - privateEndpoint?: PrivateEndpointOutput; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState: PrivateLinkServiceConnectionStateOutput; - /** - * The provisioning state of the private endpoint connection resource. - * - * Possible values: "Succeeded", "Creating", "Deleting", "Failed" - */ - readonly provisioningState?: PrivateEndpointConnectionProvisioningStateOutput; -} - -/** The Private Endpoint resource. */ -export interface PrivateEndpointOutput { - /** The resource identifier for private endpoint */ - readonly id?: string; -} - -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionStateOutput { - /** - * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. - * - * Possible values: "Pending", "Approved", "Rejected" - */ - status?: PrivateEndpointServiceConnectionStatusOutput; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} - -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export type OperationListResultOutput = Paged; -/** Alias for OriginOutput */ -export type OriginOutput = string; -/** Alias for ActionTypeOutput */ -export type ActionTypeOutput = string; -/** Alias for ResourceProvisioningStateOutput */ -export type ResourceProvisioningStateOutput = string; -/** Alias for ProvisioningStateOutput */ -export type ProvisioningStateOutput = string; -/** Alias for RegistrationStateOutput */ -export type RegistrationStateOutput = string; -/** Alias for CreatedByTypeOutput */ -export type CreatedByTypeOutput = string; -/** Alias for ResourceIdentityTypeOutput */ -export type ResourceIdentityTypeOutput = "SystemAssigned"; -/** Alias for SkuTierOutput */ -export type SkuTierOutput = "Free" | "Basic" | "Standard" | "Premium"; -/** Alias for PrivateEndpointServiceConnectionStatusOutput */ -export type PrivateEndpointServiceConnectionStatusOutput = string; -/** Alias for PrivateEndpointConnectionProvisioningStateOutput */ -export type PrivateEndpointConnectionProvisioningStateOutput = string; -/** The response of a ExtendedZone list operation. */ -export type ExtendedZoneListResultOutput = Paged; diff --git a/sdk/edgezones/arm-edgezones/src/rest/paginateHelper.ts b/sdk/edgezones/arm-edgezones/src/rest/paginateHelper.ts deleted file mode 100644 index e27846d32a90..000000000000 --- a/sdk/edgezones/arm-edgezones/src/rest/paginateHelper.ts +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { getPagedAsyncIterator, PagedAsyncIterableIterator, PagedResult } from "@azure/core-paging"; -import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; - -/** - * Helper type to extract the type of an array - */ -export type GetArrayType = T extends Array ? TData : never; - -/** - * The type of a custom function that defines how to get a page and a link to the next one if any. - */ -export type GetPage = ( - pageLink: string, - maxPageSize?: number, -) => Promise<{ - page: TPage; - nextPageLink?: string; -}>; - -/** - * Options for the paging helper - */ -export interface PagingOptions { - /** - * Custom function to extract pagination details for crating the PagedAsyncIterableIterator - */ - customGetPage?: GetPage[]>; -} - -/** - * Helper type to infer the Type of the paged elements from the response type - * This type is generated based on the swagger information for x-ms-pageable - * specifically on the itemName property which indicates the property of the response - * where the page items are found. The default value is `value`. - * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter - */ -export type PaginateReturn = TResult extends { - body: { value?: infer TPage }; -} - ? GetArrayType - : Array; - -/** - * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension - * @param client - Client to use for sending the next page requests - * @param initialResponse - Initial response containing the nextLink and current page of elements - * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results - * @returns - PagedAsyncIterableIterator to iterate the elements - */ -export function paginate( - client: Client, - initialResponse: TResponse, - options: PagingOptions = {}, -): PagedAsyncIterableIterator> { - // Extract element type from initial response - type TElement = PaginateReturn; - let firstRun = true; - const itemName = "value"; - const nextLinkName = "nextLink"; - const { customGetPage } = options; - const pagedResult: PagedResult = { - firstPageLink: "", - getPage: - typeof customGetPage === "function" - ? customGetPage - : async (pageLink: string) => { - const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get(); - firstRun = false; - checkPagingRequest(result); - const nextLink = getNextLink(result.body, nextLinkName); - const values = getElements(result.body, itemName); - return { - page: values, - nextPageLink: nextLink, - }; - }, - }; - - return getPagedAsyncIterator(pagedResult); -} - -/** - * Gets for the value of nextLink in the body - */ -function getNextLink(body: unknown, nextLinkName?: string): string | undefined { - if (!nextLinkName) { - return undefined; - } - - const nextLink = (body as Record)[nextLinkName]; - - if (typeof nextLink !== "string" && typeof nextLink !== "undefined") { - throw new Error(`Body Property ${nextLinkName} should be a string or undefined`); - } - - return nextLink; -} - -/** - * Gets the elements of the current request in the body. - */ -function getElements(body: unknown, itemName: string): T[] { - const value = (body as Record)[itemName] as T[]; - - // value has to be an array according to the x-ms-pageable extension. - // The fact that this must be an array is used above to calculate the - // type of elements in the page in PaginateReturn - if (!Array.isArray(value)) { - throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, - ); - } - - return value ?? []; -} - -/** - * Checks if a request failed - */ -function checkPagingRequest(response: PathUncheckedResponse): void { - const Http2xxStatusCodes = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226"]; - if (!Http2xxStatusCodes.includes(response.status)) { - throw createRestError( - `Pagination failed with unexpected statusCode ${response.status}`, - response, - ); - } -} diff --git a/sdk/edgezones/arm-edgezones/src/rest/parameters.ts b/sdk/edgezones/arm-edgezones/src/rest/parameters.ts deleted file mode 100644 index ecffba11f3a9..000000000000 --- a/sdk/edgezones/arm-edgezones/src/rest/parameters.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { RequestParameters } from "@azure-rest/core-client"; - -export type OperationsListParameters = RequestParameters; -export type ExtendedZonesGetParameters = RequestParameters; -export type ExtendedZonesListBySubscriptionParameters = RequestParameters; -export type ExtendedZonesRegisterParameters = RequestParameters; -export type ExtendedZonesUnregisterParameters = RequestParameters; diff --git a/sdk/edgezones/arm-edgezones/src/rest/responses.ts b/sdk/edgezones/arm-edgezones/src/rest/responses.ts deleted file mode 100644 index 94adf7a0091d..000000000000 --- a/sdk/edgezones/arm-edgezones/src/rest/responses.ts +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { HttpResponse } from "@azure-rest/core-client"; -import { - OperationListResultOutput, - ErrorResponseOutput, - ExtendedZoneOutput, - ExtendedZoneListResultOutput, -} from "./outputModels.js"; - -/** Azure operation completed successfully. */ -export interface OperationsList200Response extends HttpResponse { - status: "200"; - body: OperationListResultOutput; -} - -export interface OperationsListDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface ExtendedZonesGet200Response extends HttpResponse { - status: "200"; - body: ExtendedZoneOutput; -} - -export interface ExtendedZonesGetDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface ExtendedZonesListBySubscription200Response extends HttpResponse { - status: "200"; - body: ExtendedZoneListResultOutput; -} - -export interface ExtendedZonesListBySubscriptionDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface ExtendedZonesRegister200Response extends HttpResponse { - status: "200"; - body: ExtendedZoneOutput; -} - -export interface ExtendedZonesRegisterDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface ExtendedZonesUnregister200Response extends HttpResponse { - status: "200"; - body: ExtendedZoneOutput; -} - -export interface ExtendedZonesUnregisterDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} diff --git a/sdk/edgezones/arm-edgezones/src/static-helpers/pagingHelpers.ts b/sdk/edgezones/arm-edgezones/src/static-helpers/pagingHelpers.ts new file mode 100644 index 000000000000..ce33af5f4178 --- /dev/null +++ b/sdk/edgezones/arm-edgezones/src/static-helpers/pagingHelpers.ts @@ -0,0 +1,241 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; +import { RestError } from "@azure/core-rest-pipeline"; + +/** + * Options for the byPage method + */ +export interface PageSettings { + /** + * A reference to a specific page to start iterating from. + */ + continuationToken?: string; +} + +/** + * An interface that describes a page of results. + */ +export type ContinuablePage = TPage & { + /** + * The token that keeps track of where to continue the iterator + */ + continuationToken?: string; +}; + +/** + * An interface that allows async iterable iteration both to completion and by page. + */ +export interface PagedAsyncIterableIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +> { + /** + * The next method, part of the iteration protocol + */ + next(): Promise>; + /** + * The connection to the async iterator, part of the iteration protocol + */ + [Symbol.asyncIterator](): PagedAsyncIterableIterator; + /** + * Return an AsyncIterableIterator that works a page at a time + */ + byPage: (settings?: TPageSettings) => AsyncIterableIterator>; +} + +/** + * An interface that describes how to communicate with the service. + */ +export interface PagedResult< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +> { + /** + * Link to the first page of results. + */ + firstPageLink?: string; + /** + * A method that returns a page of results. + */ + getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>; + /** + * a function to implement the `byPage` method on the paged async iterator. + */ + byPage?: (settings?: TPageSettings) => AsyncIterableIterator>; + + /** + * A function to extract elements from a page. + */ + toElements?: (page: TPage) => TElement[]; +} + +/** + * Options for the paging helper + */ +export interface BuildPagedAsyncIteratorOptions { + itemName?: string; + nextLinkName?: string; +} + +/** + * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator + */ +export function buildPagedAsyncIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, + TResponse extends PathUncheckedResponse = PathUncheckedResponse, +>( + client: Client, + getInitialResponse: () => PromiseLike, + processResponseBody: (result: TResponse) => PromiseLike, + expectedStatuses: string[], + options: BuildPagedAsyncIteratorOptions = {}, +): PagedAsyncIterableIterator { + const itemName = options.itemName ?? "value"; + const nextLinkName = options.nextLinkName ?? "nextLink"; + const pagedResult: PagedResult = { + getPage: async (pageLink?: string) => { + const result = + pageLink === undefined + ? await getInitialResponse() + : await client.pathUnchecked(pageLink).get(); + checkPagingRequest(result, expectedStatuses); + const results = await processResponseBody(result as TResponse); + const nextLink = getNextLink(results, nextLinkName); + const values = getElements(results, itemName) as TPage; + return { + page: values, + nextPageLink: nextLink, + }; + }, + byPage: (settings?: TPageSettings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken, + }); + }, + }; + return getPagedAsyncIterator(pagedResult); +} + +/** + * returns an async iterator that iterates over results. It also has a `byPage` + * method that returns pages of items at once. + * + * @param pagedResult - an object that specifies how to get pages. + * @returns a paged async iterator that iterates over results. + */ + +function getPagedAsyncIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +>( + pagedResult: PagedResult, +): PagedAsyncIterableIterator { + const iter = getItemAsyncIterator(pagedResult); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: + pagedResult?.byPage ?? + ((settings?: TPageSettings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken, + }); + }), + }; +} + +async function* getItemAsyncIterator( + pagedResult: PagedResult, +): AsyncIterableIterator { + const pages = getPageAsyncIterator(pagedResult); + for await (const page of pages) { + yield* page as unknown as TElement[]; + } +} + +async function* getPageAsyncIterator( + pagedResult: PagedResult, + options: { + pageLink?: string; + } = {}, +): AsyncIterableIterator> { + const { pageLink } = options; + let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink); + if (!response) { + return; + } + let result = response.page as ContinuablePage; + result.continuationToken = response.nextPageLink; + yield result; + while (response.nextPageLink) { + response = await pagedResult.getPage(response.nextPageLink); + if (!response) { + return; + } + result = response.page as ContinuablePage; + result.continuationToken = response.nextPageLink; + yield result; + } +} + +/** + * Gets for the value of nextLink in the body + */ +function getNextLink(body: unknown, nextLinkName?: string): string | undefined { + if (!nextLinkName) { + return undefined; + } + + const nextLink = (body as Record)[nextLinkName]; + + if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) { + throw new RestError( + `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`, + ); + } + + if (nextLink === null) { + return undefined; + } + + return nextLink; +} + +/** + * Gets the elements of the current request in the body. + */ +function getElements(body: unknown, itemName: string): T[] { + const value = (body as Record)[itemName] as T[]; + if (!Array.isArray(value)) { + throw new RestError( + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, + ); + } + + return value ?? []; +} + +/** + * Checks if a request failed + */ +function checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void { + if (!expectedStatuses.includes(response.status)) { + throw createRestError( + `Pagination failed with unexpected statusCode ${response.status}`, + response, + ); + } +} diff --git a/sdk/edgezones/arm-edgezones/test/public/edgezones_operations_test.spec.ts b/sdk/edgezones/arm-edgezones/test/public/edgezones_operations_test.spec.ts index a49dcd2943b1..c110191e0705 100644 --- a/sdk/edgezones/arm-edgezones/test/public/edgezones_operations_test.spec.ts +++ b/sdk/edgezones/arm-edgezones/test/public/edgezones_operations_test.spec.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { env, Recorder, isPlaybackMode, delay } from "@azure-tools/test-recorder"; +import { env, Recorder, isPlaybackMode } from "@azure-tools/test-recorder"; import { createTestCredential } from "@azure-tools/test-credential"; import { assert, beforeEach, afterEach, it, describe } from "vitest"; import { createRecorder } from "./utils/recordedClient.js"; @@ -20,10 +20,7 @@ describe("extendedZones test", () => { let recorder: Recorder; let subscriptionId: string; let client: EdgeZonesClient; - let location: string; - let resourceGroup: string; let resourcename: string; - let resourcename1: string; beforeEach(async (context) => { process.env.SystemRoot = process.env.SystemRoot || "C:\\Windows"; @@ -32,10 +29,7 @@ describe("extendedZones test", () => { // This is an example of how the environment variables are used const credential = createTestCredential(); client = new EdgeZonesClient(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus"; - resourceGroup = "myjstest"; resourcename = "losangeles"; - resourcename1 = "losangeless"; }); afterEach(async function () { @@ -61,7 +55,7 @@ describe("extendedZones test", () => { }); it("extendedZones unregister test", async function () { - const res = await client.extendedZones.unregister(resourcename); + await client.extendedZones.unregister(resourcename); }); it("operations list test", async function () { diff --git a/sdk/edgezones/arm-edgezones/vitest.browser.config.ts b/sdk/edgezones/arm-edgezones/vitest.browser.config.ts index 5e0dc418cfa2..da68c1d231aa 100644 --- a/sdk/edgezones/arm-edgezones/vitest.browser.config.ts +++ b/sdk/edgezones/arm-edgezones/vitest.browser.config.ts @@ -33,5 +33,6 @@ export default defineConfig({ reportsDirectory: "coverage-browser", }, testTimeout: 1200000, + hookTimeout: 1200000, }, }); diff --git a/sdk/edgezones/arm-edgezones/vitest.config.ts b/sdk/edgezones/arm-edgezones/vitest.config.ts index f8ab2a758bf9..2cf5d0e02c2e 100644 --- a/sdk/edgezones/arm-edgezones/vitest.config.ts +++ b/sdk/edgezones/arm-edgezones/vitest.config.ts @@ -29,5 +29,6 @@ export default defineConfig({ reportsDirectory: "coverage", }, testTimeout: 1200000, + hookTimeout: 1200000, }, }); diff --git a/sdk/entra/functions-authentication-events/package.json b/sdk/entra/functions-authentication-events/package.json index df6990adcb4d..bce749d4ea20 100644 --- a/sdk/entra/functions-authentication-events/package.json +++ b/sdk/entra/functions-authentication-events/package.json @@ -81,7 +81,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-json-preprocessor": "^0.3.3", "karma-json-to-file-reporter": "^1.0.1", "karma-junit-reporter": "^2.0.1", diff --git a/sdk/eventgrid/eventgrid-namespaces/package.json b/sdk/eventgrid/eventgrid-namespaces/package.json index 58c827e9bc3c..604adc82799d 100644 --- a/sdk/eventgrid/eventgrid-namespaces/package.json +++ b/sdk/eventgrid/eventgrid-namespaces/package.json @@ -103,7 +103,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/eventgrid/eventgrid-system-events/.nycrc b/sdk/eventgrid/eventgrid-system-events/.nycrc deleted file mode 100644 index 1caf4f590592..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/.nycrc +++ /dev/null @@ -1,19 +0,0 @@ -{ - "include": [ - "dist-esm/src/**/*.js" - ], - "exclude": [ - "**/*.d.ts", - "dist-esm/src/cadl-generated/*" - ], - "reporter": [ - "text-summary", - "html", - "cobertura" - ], - "exclude-after-remap": false, - "sourceMap": true, - "produce-source-map": true, - "instrument": true, - "all": true -} diff --git a/sdk/eventgrid/eventgrid-system-events/api-extractor.json b/sdk/eventgrid/eventgrid-system-events/api-extractor.json index 1f029b64d7dd..2a37a1b5b386 100644 --- a/sdk/eventgrid/eventgrid-system-events/api-extractor.json +++ b/sdk/eventgrid/eventgrid-system-events/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/eventgrid-system-events.d.ts" + "publicTrimmedFilePath": "dist/eventgrid-system-events.d.ts" }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/eventgrid/eventgrid-system-events/karma.conf.js b/sdk/eventgrid/eventgrid-system-events/karma.conf.js deleted file mode 100644 index e325037a3736..000000000000 --- a/sdk/eventgrid/eventgrid-system-events/karma.conf.js +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -require("dotenv").config(); - -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - ], - - // list of files / patterns to load in the browser - files: ["dist-test/index.browser.js"], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.browser.js": ["coverage"] - }, - - envPreprocessor: ["TEST_MODE", "RECORDINGS_RELATIVE_PATH"], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 600000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/eventgrid/eventgrid-system-events/package.json b/sdk/eventgrid/eventgrid-system-events/package.json index a274026e2299..4665374d1d26 100644 --- a/sdk/eventgrid/eventgrid-system-events/package.json +++ b/sdk/eventgrid/eventgrid-system-events/package.json @@ -13,9 +13,9 @@ "cloud" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/eventgrid-system-events.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/eventgrid-system-events/README.md", "repository": "github:Azure/azure-sdk-for-js", "bugs": { @@ -26,25 +26,23 @@ }, "files": [ "dist/", - "dist-esm/src/", - "types/eventgrid-system-events.d.ts", "README.md", "LICENSE" ], "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:node": "tsc -p . && dev-tool run bundle", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:node": "dev-tool run build-package && dev-tool run bundle", "build:samples": "echo Obsolete", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm dist-test temp types *.tgz *.log", "execute:samples": "echo skipped", - "extract-api": "tsc -p . && dev-tool run extract-api", + "extract-api": "dev-tool run build-package && dev-tool run extract-api", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser --no-test-proxy", + "integration-test:node": "dev-tool run test:vitest --no-test-proxy", "lint": "eslint package.json api-extractor.json README.md src test", "lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -52,53 +50,67 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run test:browser", - "unit-test:node": "dev-tool run test:node-tsx-ts -- --timeout 1200000 'test/**/*.spec.ts'", + "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser --no-test-proxy", + "unit-test:node": "dev-tool run test:vitest --no-test-proxy", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.3.1", - "@azure/core-auth": "^1.7.0", - "@azure/core-rest-pipeline": "^1.1.3", - "@azure/core-util": "^1.6.1", - "@azure/logger": "^1.0.0", - "buffer": "^6.0.0", - "tslib": "^2.2.0" + "@azure-rest/core-client": "^2.3.1", + "@azure/core-auth": "^1.9.0", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/core-util": "^1.11.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-recorder": "^3.0.0", - "@azure/core-client": "^1.5.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^4.1.0", - "@azure/service-bus": "^7.0.0", - "@types/chai": "^4.1.6", - "@types/chai-as-promised": "^7.1.0", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "@types/sinon": "^17.0.0", - "@types/uuid": "^8.0.0", - "chai": "^4.2.0", - "chai-as-promised": "^7.1.1", - "dotenv": "^16.0.0", + "@vitest/browser": "^2.1.6", + "@vitest/coverage-istanbul": "^2.1.6", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "prettier": "^2.5.1", - "sinon": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.49.0", + "typescript": "~5.6.2", + "vitest": "^2.1.6" + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "browser": "./dist/browser/index.js", + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/SystemEventsClient.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/SystemEventsClient.ts index db130f23d9bc..9be54bc76c7a 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/SystemEventsClient.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/SystemEventsClient.ts @@ -2,11 +2,11 @@ // Licensed under the MIT License. import type { Pipeline } from "@azure/core-rest-pipeline"; -import "./models/options"; -import type { SystemEventsClientOptionalParams, SystemEventsContext } from "./api/index"; -import { createSystemEvents } from "./api/index"; +import "./models/options.js"; +import type { SystemEventsClientOptionalParams, SystemEventsContext } from "./api/index.js"; +import { createSystemEvents } from "./api/index.js"; -export { SystemEventsClientOptionalParams } from "./api/systemEventsContext"; +export { SystemEventsClientOptionalParams } from "./api/systemEventsContext.js"; export class SystemEventsClient { private _client: SystemEventsContext; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/index.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/index.ts index 590e857f1da4..2eedcc56a4c4 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/index.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/index.ts @@ -5,4 +5,4 @@ export { createSystemEvents, SystemEventsClientOptionalParams, SystemEventsContext, -} from "./systemEventsContext"; +} from "./systemEventsContext.js"; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/systemEventsContext.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/systemEventsContext.ts index f9de9b96eea8..3040a2cae70c 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/systemEventsContext.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/api/systemEventsContext.ts @@ -2,13 +2,13 @@ // Licensed under the MIT License. import type { ClientOptions } from "@azure-rest/core-client"; -import type { SystemEventsContext } from "../rest/index"; -import getClient from "../rest/index"; +import type { SystemEventsContext } from "../rest/index.js"; +import getClient from "../rest/index.js"; /** Optional parameters for the client. */ export interface SystemEventsClientOptionalParams extends ClientOptions {} -export { SystemEventsContext } from "../rest/index"; +export { SystemEventsContext } from "../rest/index.js"; /** Azure Messaging EventGrid SystemEvents */ export function createSystemEvents( diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/index.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/index.ts index c82d3829dc4c..976a0fa70517 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/index.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/index.ts @@ -356,4 +356,4 @@ export { ResourceNotificationsResourceManagementDeletedEventData, ServiceApiVersions, MediaJobOutputUnion, -} from "./models/index"; +} from "./models/index.js"; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/index.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/index.ts index 95d2ce47067a..78293adc511b 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/index.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/models/index.ts @@ -356,5 +356,5 @@ export { ResourceNotificationsResourceManagementDeletedEventData, ServiceApiVersions, MediaJobOutputUnion, -} from "./models"; +} from "./models.js"; // export * from "./options"; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/index.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/index.ts index ae0a9aca7649..fa5bd7d969d8 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/index.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/index.ts @@ -1,11 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import SystemEventsClient from "./systemEventsClient"; +import SystemEventsClient from "./systemEventsClient.js"; -export * from "./systemEventsClient"; +export * from "./systemEventsClient.js"; // export * from "./parameters"; // export * from "./responses"; -export * from "./clientDefinitions"; +export * from "./clientDefinitions.js"; export default SystemEventsClient; diff --git a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/systemEventsClient.ts b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/systemEventsClient.ts index 6cb57eaaf83b..bbe531e0843c 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/systemEventsClient.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/cadl-generated/rest/systemEventsClient.ts @@ -3,8 +3,8 @@ import type { ClientOptions } from "@azure-rest/core-client"; import { getClient } from "@azure-rest/core-client"; -import { logger } from "../logger"; -import type { SystemEventsContext } from "./clientDefinitions"; +import { logger } from "../logger.js"; +import type { SystemEventsContext } from "./clientDefinitions.js"; /** The optional parameters for the client */ export interface SystemEventsContextOptions extends ClientOptions {} diff --git a/sdk/eventgrid/eventgrid-system-events/src/index.ts b/sdk/eventgrid/eventgrid-system-events/src/index.ts index f0a3abb95e08..869a903270a1 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/index.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/index.ts @@ -346,7 +346,7 @@ export { ResourceNotificationsResourceManagementDeletedEventData, ServiceApiVersions, MediaJobOutputUnion, -} from "./cadl-generated"; +} from "./cadl-generated/index.js"; export { CloudEvent, @@ -361,6 +361,6 @@ export { KeyVaultSecretNearExpiryEventData, KeyVaultAccessPolicyChangedEventData, KeyVaultSecretExpiredEventData, -} from "./models"; +} from "./models.js"; -export { isSystemEvent, KnownSystemEventTypes, SystemEventNameToEventData } from "./predicates"; +export { isSystemEvent, KnownSystemEventTypes, SystemEventNameToEventData } from "./predicates.js"; diff --git a/sdk/eventgrid/eventgrid-system-events/src/predicates.ts b/sdk/eventgrid/eventgrid-system-events/src/predicates.ts index df95814c1128..269d533ef46b 100644 --- a/sdk/eventgrid/eventgrid-system-events/src/predicates.ts +++ b/sdk/eventgrid/eventgrid-system-events/src/predicates.ts @@ -12,7 +12,7 @@ import type { KeyVaultSecretNearExpiryEventData, KeyVaultAccessPolicyChangedEventData, KeyVaultSecretExpiredEventData, -} from "./models"; +} from "./models.js"; import type { AcsChatMessageDeletedEventData, @@ -212,9 +212,9 @@ import type { AcsMessageDeliveryStatusUpdatedEventData, AcsMessageReceivedEventData, AcsRouterWorkerUpdatedEventData, -} from "./cadl-generated/models"; +} from "./cadl-generated/models/index.js"; -import type { CloudEvent, EventGridEvent } from "./models"; +import type { CloudEvent, EventGridEvent } from "./models.js"; /** * The Event Types for all System Events. These may be used with `isSystemEvent` to determine if an diff --git a/sdk/eventgrid/eventgrid-system-events/test/public/events.spec.ts b/sdk/eventgrid/eventgrid-system-events/test/public/events.spec.ts index 90452d211213..6ff0d97d0774 100644 --- a/sdk/eventgrid/eventgrid-system-events/test/public/events.spec.ts +++ b/sdk/eventgrid/eventgrid-system-events/test/public/events.spec.ts @@ -1,11 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Suite } from "mocha"; +import { isSystemEvent } from "../../src/index.js"; +import { describe, it, assert } from "vitest"; -import { isSystemEvent } from "../../src"; -import { assert } from "chai"; - -describe("Events tests", function (this: Suite) { +describe("Events tests", () => { it("isSystemEvent test", async () => { const result = isSystemEvent("Microsoft.KeyVault.SecretNearExpiry", { eventType: "Microsoft.KeyVault.SecretNearExpiry", diff --git a/sdk/eventgrid/eventgrid-system-events/tsconfig.browser.config.json b/sdk/eventgrid/eventgrid-system-events/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/eventgrid/eventgrid-system-events/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/eventgrid/eventgrid-system-events/tsconfig.json b/sdk/eventgrid/eventgrid-system-events/tsconfig.json index ad3df4b7d162..37ae09e5937a 100644 --- a/sdk/eventgrid/eventgrid-system-events/tsconfig.json +++ b/sdk/eventgrid/eventgrid-system-events/tsconfig.json @@ -1,12 +1,21 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "lib": ["ES2018.AsyncIterable"], "paths": { "@azure/eventgrid-system-events": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/eventgrid/eventgrid-system-events/vitest.browser.config.ts b/sdk/eventgrid/eventgrid-system-events/vitest.browser.config.ts new file mode 100644 index 000000000000..d4ae4f01c222 --- /dev/null +++ b/sdk/eventgrid/eventgrid-system-events/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.base.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/eventgrid/eventgrid-system-events/vitest.config.ts b/sdk/eventgrid/eventgrid-system-events/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/eventgrid/eventgrid-system-events/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/eventgrid/eventgrid/.nycrc b/sdk/eventgrid/eventgrid/.nycrc deleted file mode 100644 index 29174b423579..000000000000 --- a/sdk/eventgrid/eventgrid/.nycrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "include": ["dist-esm/src/**/*.js"], - "exclude": ["**/*.d.ts", "dist-esm/src/generated/*"], - "reporter": ["text-summary", "html", "cobertura"], - "exclude-after-remap": false, - "sourceMap": true, - "produce-source-map": true, - "instrument": true, - "all": true -} diff --git a/sdk/eventgrid/eventgrid/api-extractor.json b/sdk/eventgrid/eventgrid/api-extractor.json index c68e22fa317a..564186671af2 100644 --- a/sdk/eventgrid/eventgrid/api-extractor.json +++ b/sdk/eventgrid/eventgrid/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/eventgrid.d.ts" + "publicTrimmedFilePath": "dist/eventgrid.d.ts" }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/eventgrid/eventgrid/karma.conf.js b/sdk/eventgrid/eventgrid/karma.conf.js deleted file mode 100644 index d7ed19a9750c..000000000000 --- a/sdk/eventgrid/eventgrid/karma.conf.js +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -require("dotenv").config(); - -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - ], - - // list of files / patterns to load in the browser - files: ["dist-test/index.browser.js"], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.browser.js": ["coverage"] - }, - - envPreprocessor: [ - "TEST_MODE", - "EVENT_GRID_EVENT_GRID_SCHEMA_ENDPOINT", - "EVENT_GRID_CUSTOM_SCHEMA_ENDPOINT", - "EVENT_GRID_CLOUD_EVENT_SCHEMA_ENDPOINT", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 600000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/eventgrid/eventgrid/package.json b/sdk/eventgrid/eventgrid/package.json index b7fac3ee40ba..d5354267b974 100644 --- a/sdk/eventgrid/eventgrid/package.json +++ b/sdk/eventgrid/eventgrid/package.json @@ -13,9 +13,9 @@ "cloud" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/eventgrid.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/eventgrid/README.md", "repository": "github:Azure/azure-sdk-for-js", "bugs": { @@ -26,8 +26,6 @@ }, "files": [ "dist/", - "dist-esm/src/", - "types/eventgrid.d.ts", "README.md", "LICENSE" ], @@ -59,24 +57,20 @@ } ] }, - "browser": { - "./dist-esm/src/cryptoHelpers.js": "./dist-esm/src/cryptoHelpers.browser.js" - }, + "browser": "./dist/browser/index.js", "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:node": "tsc -p . && dev-tool run bundle", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", "build:samples": "echo Obsolete", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "echo Obsolete", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm dist-test temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", - "extract-api": "tsc -p . && dev-tool run extract-api", + "extract-api": "dev-tool run build-package && dev-tool run extract-api", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && node ./scripts/setPathToEmpty.js", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json README.md src test", "lint:fix": "eslint package.json api-extractor.json README.md src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -84,53 +78,72 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run test:browser", - "unit-test:node": "dev-tool run test:node-tsx-ts -- --timeout 1200000 'test/**/*.spec.ts'", + "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure/core-auth": "^1.3.0", - "@azure/core-client": "^1.5.0", - "@azure/core-rest-pipeline": "^1.1.0", - "@azure/core-tracing": "^1.0.0", - "@azure/logger": "^1.0.0", - "tslib": "^2.2.0", - "uuid": "^8.3.0" + "@azure/core-auth": "^1.9.0", + "@azure/core-client": "^1.9.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/core-tracing": "^1.2.0", + "@azure/core-util": "^1.11.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-utils": "^1.0.1", - "@azure/core-util": "^1.9.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/service-bus": "^7.0.0", - "@types/chai": "^4.1.6", - "@types/chai-as-promised": "^7.1.0", - "@types/mocha": "^10.0.0", + "@azure/service-bus": "^7.9.5", "@types/node": "^18.0.0", - "@types/sinon": "^17.0.0", - "@types/uuid": "^8.0.0", - "chai": "^4.2.0", - "chai-as-promised": "^7.1.1", + "@vitest/browser": "^2.1.6", + "@vitest/coverage-istanbul": "^2.1.6", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "sinon": "^17.0.0", - "source-map-support": "^0.5.9", - "tsx": "^4.7.1", - "typescript": "~5.6.2" + "playwright": "^1.49.0", + "typescript": "~5.6.2", + "vitest": "^2.1.6" + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/eventgrid/eventgrid/samples-dev/consumeEventsFromServiceBusQueue.ts b/sdk/eventgrid/eventgrid/samples-dev/consumeEventsFromServiceBusQueue.ts index aa43983b3c5c..50fe33b29ad1 100644 --- a/sdk/eventgrid/eventgrid/samples-dev/consumeEventsFromServiceBusQueue.ts +++ b/sdk/eventgrid/eventgrid/samples-dev/consumeEventsFromServiceBusQueue.ts @@ -7,11 +7,9 @@ */ import { EventGridDeserializer, isSystemEvent } from "@azure/eventgrid"; -import { ServiceBusClient, ServiceBusReceivedMessage } from "@azure/service-bus"; -import * as dotenv from "dotenv"; - -// Load the .env file if it exists -dotenv.config(); +import type { ServiceBusReceivedMessage } from "@azure/service-bus"; +import { ServiceBusClient } from "@azure/service-bus"; +import "dotenv/config"; // Create a Event Grid Consumer which will decode the payload of service bus message into an array of EventGridEvent objects. const consumer = new EventGridDeserializer(); @@ -46,7 +44,7 @@ async function processMessage(message: ServiceBusReceivedMessage): Promise } } -async function main() { +async function main(): Promise { // Start processing events. const closer = receiver.subscribe({ processMessage, diff --git a/sdk/eventgrid/eventgrid/samples-dev/sendCloudEvent.ts b/sdk/eventgrid/eventgrid/samples-dev/sendCloudEvent.ts index 4d783f423641..1fe6901a4a8a 100644 --- a/sdk/eventgrid/eventgrid/samples-dev/sendCloudEvent.ts +++ b/sdk/eventgrid/eventgrid/samples-dev/sendCloudEvent.ts @@ -7,10 +7,7 @@ */ import { EventGridPublisherClient, AzureKeyCredential } from "@azure/eventgrid"; -import * as dotenv from "dotenv"; - -// Load the .env file if it exists -dotenv.config(); +import "dotenv/config"; // The URL of the endpoint of the Event Grid topic. const endpoint = process.env["EVENT_GRID_CLOUD_EVENT_SCHEMA_ENDPOINT"] || ""; diff --git a/sdk/eventgrid/eventgrid/samples-dev/sendEventGridEvent.ts b/sdk/eventgrid/eventgrid/samples-dev/sendEventGridEvent.ts index cf3e31aadd8a..d39e19bbd628 100644 --- a/sdk/eventgrid/eventgrid/samples-dev/sendEventGridEvent.ts +++ b/sdk/eventgrid/eventgrid/samples-dev/sendEventGridEvent.ts @@ -7,10 +7,7 @@ */ import { EventGridPublisherClient, AzureKeyCredential } from "@azure/eventgrid"; -import * as dotenv from "dotenv"; - -// Load the .env file if it exists -dotenv.config(); +import "dotenv/config"; // The URL of the endpoint of the Event Grid topic. const endpoint = process.env["EVENT_GRID_EVENT_GRID_SCHEMA_ENDPOINT"] || ""; diff --git a/sdk/eventgrid/eventgrid/src/consumer.ts b/sdk/eventgrid/eventgrid/src/consumer.ts index bd217c94bf3b..2fc6195d554c 100644 --- a/sdk/eventgrid/eventgrid/src/consumer.ts +++ b/sdk/eventgrid/eventgrid/src/consumer.ts @@ -2,14 +2,14 @@ // Licensed under the MIT License. import { createSerializer } from "@azure/core-client"; -import type { CloudEvent as WireCloudEvent } from "./generated/models"; -import type { CloudEvent, EventGridEvent } from "./models"; -import { cloudEventReservedPropertyNames } from "./models"; +import type { CloudEvent as WireCloudEvent } from "./generated/models/index.js"; +import type { CloudEvent, EventGridEvent } from "./models.js"; +import { cloudEventReservedPropertyNames } from "./models.js"; import { EventGridEvent as EventGridEventMapper, CloudEvent as CloudEventMapper, -} from "./generated/models/mappers"; -import { parseAndWrap, validateEventGridEvent, validateCloudEventEvent } from "./util"; +} from "./generated/models/mappers.js"; +import { parseAndWrap, validateEventGridEvent, validateCloudEventEvent } from "./util.js"; const serializer = createSerializer(); diff --git a/sdk/eventgrid/eventgrid/src/cryptoHelpers-browser.mts b/sdk/eventgrid/eventgrid/src/cryptoHelpers-browser.mts new file mode 100644 index 000000000000..5e45a318423e --- /dev/null +++ b/sdk/eventgrid/eventgrid/src/cryptoHelpers-browser.mts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/// + +/** + * @internal + */ +export async function sha256Hmac(secret: string, stringToSign: string): Promise { + const key = await globalThis.crypto.subtle.importKey( + "raw", + Uint8Array.from(atob(secret), (c) => c.charCodeAt(0)), + { + name: "HMAC", + hash: "SHA-256", + }, + false, + ["sign"], + ); + + const sigArray = await globalThis.crypto.subtle.sign( + "HMAC", + key, + new TextEncoder().encode(stringToSign), + ); + + // The conversions here are a bit odd but necessary (see "Unicode strings" in the link below) + // https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa + return btoa(String.fromCharCode(...new Uint8Array(sigArray))); +} diff --git a/sdk/eventgrid/eventgrid/src/cryptoHelpers.browser.ts b/sdk/eventgrid/eventgrid/src/cryptoHelpers.browser.ts deleted file mode 100644 index 742470d72603..000000000000 --- a/sdk/eventgrid/eventgrid/src/cryptoHelpers.browser.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/// - -/** - * @internal - */ -export async function sha256Hmac(secret: string, stringToSign: string): Promise { - const key = await self.crypto.subtle.importKey( - "raw", - Uint8Array.from(atob(secret), (c) => c.charCodeAt(0)), - { - name: "HMAC", - hash: "SHA-256", - }, - false, - ["sign"], - ); - - const sigArray = await self.crypto.subtle.sign( - "HMAC", - key, - new TextEncoder().encode(stringToSign), - ); - - // The conversions here are a bit odd but necessary (see "Unicode strings" in the link below) - // https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/btoa - return btoa(String.fromCharCode(...new Uint8Array(sigArray))); -} diff --git a/sdk/eventgrid/eventgrid/src/cryptoHelpers.ts b/sdk/eventgrid/eventgrid/src/cryptoHelpers.ts index a0310e37e332..ca2ed4030c29 100644 --- a/sdk/eventgrid/eventgrid/src/cryptoHelpers.ts +++ b/sdk/eventgrid/eventgrid/src/cryptoHelpers.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { createHmac } from "crypto"; +import { createHmac } from "node:crypto"; /** * @internal diff --git a/sdk/eventgrid/eventgrid/src/eventGridAuthenticationPolicy.ts b/sdk/eventgrid/eventgrid/src/eventGridAuthenticationPolicy.ts index 2565b7308cfd..75e853159b45 100644 --- a/sdk/eventgrid/eventgrid/src/eventGridAuthenticationPolicy.ts +++ b/sdk/eventgrid/eventgrid/src/eventGridAuthenticationPolicy.ts @@ -9,7 +9,7 @@ import type { PipelinePolicy, } from "@azure/core-rest-pipeline"; -import { isKeyCredentialLike } from "./util"; +import { isKeyCredentialLike } from "./util.js"; /** * The name of the header to include when a Shared Key is used for authentication. diff --git a/sdk/eventgrid/eventgrid/src/eventGridClient.ts b/sdk/eventgrid/eventgrid/src/eventGridClient.ts index 13cc16452eda..8a72878e2991 100644 --- a/sdk/eventgrid/eventgrid/src/eventGridClient.ts +++ b/sdk/eventgrid/eventgrid/src/eventGridClient.ts @@ -4,20 +4,19 @@ import type { KeyCredential, SASCredential } from "@azure/core-auth"; import { isTokenCredential } from "@azure/core-auth"; import type { OperationOptions, CommonClientOptions } from "@azure/core-client"; - -import { eventGridCredentialPolicy } from "./eventGridAuthenticationPolicy"; -import { DEFAULT_EVENTGRID_SCOPE } from "./constants"; -import type { SendCloudEventInput, SendEventGridEventInput } from "./models"; -import { cloudEventReservedPropertyNames } from "./models"; -import { GeneratedClient } from "./generated/generatedClient"; +import { eventGridCredentialPolicy } from "./eventGridAuthenticationPolicy.js"; +import { DEFAULT_EVENTGRID_SCOPE } from "./constants.js"; +import type { SendCloudEventInput, SendEventGridEventInput } from "./models.js"; +import { cloudEventReservedPropertyNames } from "./models.js"; +import { GeneratedClient } from "./generated/generatedClient.js"; import type { CloudEvent as CloudEventWireModel, EventGridEvent as EventGridEventWireModel, GeneratedClientPublishCloudEventEventsOptionalParams, -} from "./generated/models"; -import { cloudEventDistributedTracingEnricherPolicy } from "./cloudEventDistrubtedTracingEnricherPolicy"; -import { tracingClient } from "./tracing"; -import { v4 as uuidv4 } from "uuid"; +} from "./generated/models/index.js"; +import { cloudEventDistributedTracingEnricherPolicy } from "./cloudEventDistrubtedTracingEnricherPolicy.js"; +import { tracingClient } from "./tracing.js"; +import { randomUUID } from "@azure/core-util"; import type { TokenCredential } from "@azure/core-auth"; import { bearerTokenAuthenticationPolicy, tracingPolicyName } from "@azure/core-rest-pipeline"; @@ -212,7 +211,7 @@ export function convertEventGridEventToModelType( return { eventType: event.eventType, eventTime: event.eventTime ?? new Date(), - id: event.id ?? uuidv4(), + id: event.id ?? randomUUID(), subject: event.subject, topic: event.topic, data: event.data, @@ -242,7 +241,7 @@ export function convertCloudEventToModelType(event: SendCloudEventInput): C specversion: "1.0", type: event.type, source: event.source, - id: event.id ?? uuidv4(), + id: event.id ?? randomUUID(), time: event.time ?? new Date(), subject: event.subject, dataschema: event.dataschema, diff --git a/sdk/eventgrid/eventgrid/src/generateSharedAccessSignature.ts b/sdk/eventgrid/eventgrid/src/generateSharedAccessSignature.ts index 78144f8a46f2..f0ee137976f1 100644 --- a/sdk/eventgrid/eventgrid/src/generateSharedAccessSignature.ts +++ b/sdk/eventgrid/eventgrid/src/generateSharedAccessSignature.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import type { KeyCredential } from "@azure/core-auth"; -import { DEFAULT_API_VERSION } from "./constants"; -import { sha256Hmac } from "./cryptoHelpers"; -import { dateToServiceTimeString } from "./util"; +import { DEFAULT_API_VERSION } from "./constants.js"; +import { sha256Hmac } from "./cryptoHelpers.js"; +import { dateToServiceTimeString } from "./util.js"; export interface GenerateSharedAccessSignatureOptions { /** diff --git a/sdk/eventgrid/eventgrid/src/generated/generatedClient.ts b/sdk/eventgrid/eventgrid/src/generated/generatedClient.ts index ebfacdc690e9..2114cc9a6b79 100644 --- a/sdk/eventgrid/eventgrid/src/generated/generatedClient.ts +++ b/sdk/eventgrid/eventgrid/src/generated/generatedClient.ts @@ -7,9 +7,9 @@ */ import * as coreClient from "@azure/core-client"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; -import { GeneratedClientContext } from "./generatedClientContext"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; +import { GeneratedClientContext } from "./generatedClientContext.js"; import { GeneratedClientOptionalParams, EventGridEvent, @@ -17,7 +17,7 @@ import { CloudEvent, GeneratedClientPublishCloudEventEventsOptionalParams, GeneratedClientPublishCustomEventEventsOptionalParams -} from "./models"; +} from "./models/index.js"; /** @internal */ export class GeneratedClient extends GeneratedClientContext { diff --git a/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts b/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts index c7637c014597..9480de15b34d 100644 --- a/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts +++ b/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts @@ -7,7 +7,7 @@ */ import * as coreClient from "@azure/core-client"; -import { GeneratedClientOptionalParams } from "./models"; +import { GeneratedClientOptionalParams } from "./models/index.js"; /** @internal */ export class GeneratedClientContext extends coreClient.ServiceClient { diff --git a/sdk/eventgrid/eventgrid/src/generated/index.ts b/sdk/eventgrid/eventgrid/src/generated/index.ts index 3aebf3c9a56c..7306abf24853 100644 --- a/sdk/eventgrid/eventgrid/src/generated/index.ts +++ b/sdk/eventgrid/eventgrid/src/generated/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./models"; -export { GeneratedClient } from "./generatedClient"; -export { GeneratedClientContext } from "./generatedClientContext"; +export * from "./models/index.js"; +export { GeneratedClient } from "./generatedClient.js"; +export { GeneratedClientContext } from "./generatedClientContext.js"; diff --git a/sdk/eventgrid/eventgrid/src/index.ts b/sdk/eventgrid/eventgrid/src/index.ts index 6d1caf4a3a71..a547c39f366d 100644 --- a/sdk/eventgrid/eventgrid/src/index.ts +++ b/sdk/eventgrid/eventgrid/src/index.ts @@ -3,7 +3,12 @@ export { AzureKeyCredential, AzureSASCredential } from "@azure/core-auth"; -export { CloudEvent, EventGridEvent, SendCloudEventInput, SendEventGridEventInput } from "./models"; +export { + CloudEvent, + EventGridEvent, + SendCloudEventInput, + SendEventGridEventInput, +} from "./models.js"; export { EventGridPublisherClient, @@ -13,16 +18,16 @@ export { InputSchema, InputSchemaToInputTypeMap, InputSchemaToOptionsTypeMap, -} from "./eventGridClient"; +} from "./eventGridClient.js"; export { generateSharedAccessSignature, GenerateSharedAccessSignatureOptions, -} from "./generateSharedAccessSignature"; +} from "./generateSharedAccessSignature.js"; -export { EventGridDeserializer } from "./consumer"; +export { EventGridDeserializer } from "./consumer.js"; -export { isSystemEvent, KnownSystemEventTypes, SystemEventNameToEventData } from "./predicates"; +export { isSystemEvent, KnownSystemEventTypes, SystemEventNameToEventData } from "./predicates.js"; export { AcsChatEventBase, @@ -364,4 +369,4 @@ export { AcsChatThreadPropertiesUpdatedEventData, AcsChatThreadEventInThreadBase, StorageBlobAccessTier, -} from "./generated/models"; +} from "./generated/models/index.js"; diff --git a/sdk/eventgrid/eventgrid/src/predicates.ts b/sdk/eventgrid/eventgrid/src/predicates.ts index dda8eedd8baa..c52e047b7db3 100644 --- a/sdk/eventgrid/eventgrid/src/predicates.ts +++ b/sdk/eventgrid/eventgrid/src/predicates.ts @@ -212,9 +212,9 @@ import type { AcsChatThreadDeletedEventData, AcsChatThreadCreatedEventData, AcsChatThreadPropertiesUpdatedEventData, -} from "./generated/models"; +} from "./generated/models/index.js"; -import type { CloudEvent, EventGridEvent } from "./models"; +import type { CloudEvent, EventGridEvent } from "./models.js"; /** * The Event Types for all System Events. These may be used with `isSystemEvent` to determine if an diff --git a/sdk/eventgrid/eventgrid/test/internal/cloudEventDistributedTracingEnricherPolicy.spec.ts b/sdk/eventgrid/eventgrid/test/internal/cloudEventDistributedTracingEnricherPolicy.spec.ts index a18aefc728fc..caa5e6703f16 100644 --- a/sdk/eventgrid/eventgrid/test/internal/cloudEventDistributedTracingEnricherPolicy.spec.ts +++ b/sdk/eventgrid/eventgrid/test/internal/cloudEventDistributedTracingEnricherPolicy.spec.ts @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { assert } from "chai"; -import { cloudEventDistributedTracingEnricherPolicy } from "../../src/cloudEventDistrubtedTracingEnricherPolicy"; +import { cloudEventDistributedTracingEnricherPolicy } from "../../src/cloudEventDistrubtedTracingEnricherPolicy.js"; import type { PipelineRequest, PipelineResponse, SendRequest } from "@azure/core-rest-pipeline"; import { createPipelineRequest } from "@azure/core-rest-pipeline"; +import { describe, it, assert } from "vitest"; const CloudEventBatchContentType = "application/cloudevents-batch+json; charset=utf-8"; -describe("CloudEventDistributedTracingEnricherPolicy", function () { +describe("CloudEventDistributedTracingEnricherPolicy", () => { const emptyResponse: SendRequest = (request: PipelineRequest): Promise => { return Promise.resolve({ request: request, status: 200, headers: request.headers }); }; diff --git a/sdk/eventgrid/eventgrid/test/internal/convertToWireModel.spec.ts b/sdk/eventgrid/eventgrid/test/internal/convertToWireModel.spec.ts index 2163d8311f50..cd382b2e5baa 100644 --- a/sdk/eventgrid/eventgrid/test/internal/convertToWireModel.spec.ts +++ b/sdk/eventgrid/eventgrid/test/internal/convertToWireModel.spec.ts @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { assert } from "chai"; - import { convertEventGridEventToModelType, convertCloudEventToModelType, -} from "../../src/eventGridClient"; +} from "../../src/eventGridClient.js"; +import { describe, it, assert } from "vitest"; -describe("convertEventGridEventToModelType", function () { +describe("convertEventGridEventToModelType", () => { it("sets a default ID if one is not provided", () => { const convertedEvent = convertEventGridEventToModelType({ dataVersion: "1.0", @@ -48,7 +47,7 @@ describe("convertEventGridEventToModelType", function () { }); }); -describe("convertCloudEventToModelType", function () { +describe("convertCloudEventToModelType", () => { it("sets a default ID if one is not provided", () => { const convertedEvent = convertCloudEventToModelType({ source: "/azure/sdk/tests", diff --git a/sdk/eventgrid/eventgrid/test/internal/util.spec.ts b/sdk/eventgrid/eventgrid/test/internal/util.spec.ts index 99e48450963b..5ca7753b14b6 100644 --- a/sdk/eventgrid/eventgrid/test/internal/util.spec.ts +++ b/sdk/eventgrid/eventgrid/test/internal/util.spec.ts @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { assert } from "chai"; +import { dateToServiceTimeString } from "../../src/util.js"; +import { describe, it, assert } from "vitest"; -import { dateToServiceTimeString } from "../../src/util"; - -describe("util", function () { +describe("util", () => { describe("dateToServiceTimeString", () => { it("converts dates correctly", () => { const simpleMorningDate = new Date(Date.UTC(2020, 0, 2, 3, 4, 5)); diff --git a/sdk/eventgrid/eventgrid/test/public/consumer.spec.ts b/sdk/eventgrid/eventgrid/test/public/consumer.spec.ts index 07a617938be0..910c4c651447 100644 --- a/sdk/eventgrid/eventgrid/test/public/consumer.spec.ts +++ b/sdk/eventgrid/eventgrid/test/public/consumer.spec.ts @@ -1,18 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { assert, use as chaiUse } from "chai"; -import chaiPromises from "chai-as-promised"; +import { EventGridDeserializer } from "../../src/index.js"; +import * as testData from "./utils/testData.js"; +import { describe, it, assert, expect } from "vitest"; -import { EventGridDeserializer } from "../../src"; -import * as testData from "./utils/testData"; - -chaiUse(chaiPromises); - -describe("EventGridDeserializer", function () { +describe("EventGridDeserializer", () => { const consumer = new EventGridDeserializer(); - describe("#deserializeEventGridEvents", function () { + describe("#deserializeEventGridEvents", () => { it("deserializes a single event", async () => { const events = await consumer.deserializeEventGridEvents( testData.customTestEvent1.eventGridSchema.encodedEvent, @@ -56,8 +52,7 @@ describe("EventGridDeserializer", function () { ]) { delete o[property]; - assert.isRejected( - consumer.deserializeEventGridEvents(JSON.stringify(o)), + expect(() => consumer.deserializeEventGridEvents(JSON.stringify(o))).rejects.toThrow( /missing required property/, ); } @@ -67,14 +62,13 @@ describe("EventGridDeserializer", function () { const o = { ...testData.customTestEvent1.eventGridSchema.expected }; o.metadataVersion = "2"; - assert.isRejected( - consumer.deserializeEventGridEvents(JSON.stringify(o)), + expect(() => consumer.deserializeEventGridEvents(JSON.stringify(o))).rejects.toThrow( /event is not in the Event Grid schema/, ); }); }); - describe("#deserializeCloudEvents", function () { + describe("#deserializeCloudEvents", () => { it("deserializes a single event", async () => { const events = await consumer.deserializeCloudEvents( testData.customTestEvent1.cloudEventSchema.encodedEvent, @@ -111,8 +105,7 @@ describe("EventGridDeserializer", function () { for (const property of ["type", "source", "id", "specversion"]) { delete o[property]; - assert.isRejected( - consumer.deserializeCloudEvents(JSON.stringify(o)), + expect(() => consumer.deserializeEventGridEvents(JSON.stringify(o))).rejects.toThrow( /missing required property/, ); } @@ -122,8 +115,7 @@ describe("EventGridDeserializer", function () { const o = { ...testData.customTestEvent1.cloudEventSchema.expected }; o.specversion = "2.0"; - assert.isRejected( - consumer.deserializeCloudEvents(JSON.stringify(o)), + expect(() => consumer.deserializeCloudEvents(JSON.stringify(o))).rejects.toThrow( /event is not in the Cloud Event 1.0 schema/, ); }); diff --git a/sdk/eventgrid/eventgrid/test/public/eventGridClient.spec.ts b/sdk/eventgrid/eventgrid/test/public/eventGridClient.spec.ts index 95f61333efc8..04a04a2b6278 100644 --- a/sdk/eventgrid/eventgrid/test/public/eventGridClient.spec.ts +++ b/sdk/eventgrid/eventgrid/test/public/eventGridClient.spec.ts @@ -1,40 +1,36 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { assert } from "@azure-tools/test-utils"; -import type { Suite, Context } from "mocha"; - import type { Recorder } from "@azure-tools/test-recorder"; - -import { createRecordedClient } from "./utils/recordedClient"; - -import type { EventGridPublisherClient } from "../../src"; - +import { createRecordedClient } from "./utils/recordedClient.js"; +import type { EventGridPublisherClient } from "../../src/index.js"; import type { RestError } from "@azure/core-rest-pipeline"; -import type { AdditionalPolicyConfig } from "@azure/core-client"; -import { getRandomNumber } from "./utils/testUtils"; +import type { AdditionalPolicyConfig, OperationOptions } from "@azure/core-client"; +import { getRandomNumber } from "./utils/testUtils.js"; import { TraceParentHeaderName, TraceStateHeaderName, -} from "../../src/cloudEventDistrubtedTracingEnricherPolicy"; +} from "../../src/cloudEventDistrubtedTracingEnricherPolicy.js"; +import { describe, it, assert, expect, beforeEach, afterEach } from "vitest"; +import { toSupportTracing } from "@azure-tools/test-utils-vitest"; -describe("EventGridPublisherClient", function (this: Suite) { - let recorder: Recorder; +expect.extend({ toSupportTracing }); - this.timeout(10000); +describe("EventGridPublisherClient", { timeout: 10000 }, () => { + let recorder: Recorder; - describe("#send (EventGrid schema)", function () { + describe("#send (EventGrid schema)", () => { let client: EventGridPublisherClient<"EventGrid">; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { ({ client, recorder } = await createRecordedClient( - this.currentTest, + ctx, "EVENT_GRID_EVENT_GRID_SCHEMA_ENDPOINT", "EventGrid", )); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); @@ -93,12 +89,12 @@ describe("EventGridPublisherClient", function (this: Suite) { }); }); - describe("#send error cases (EventGrid schema)", function () { + describe("#send error cases (EventGrid schema)", () => { let client: EventGridPublisherClient<"EventGrid">; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { ({ client, recorder } = await createRecordedClient( - this.currentTest, + ctx, "EVENT_GRID_CUSTOM_SCHEMA_ENDPOINT", "EventGrid", { @@ -107,7 +103,7 @@ describe("EventGridPublisherClient", function (this: Suite) { )); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); @@ -137,19 +133,19 @@ describe("EventGridPublisherClient", function (this: Suite) { }); }); - describe("#send (CloudEvent schema)", function () { + describe("#send (CloudEvent schema)", () => { let client: EventGridPublisherClient<"CloudEvent">; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { ({ client, recorder } = await createRecordedClient( - this.currentTest, + ctx, "EVENT_GRID_CLOUD_EVENT_SCHEMA_ENDPOINT", "CloudEvent", )); await recorder.setMatcher("HeaderlessMatcher"); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); @@ -206,11 +202,11 @@ describe("EventGridPublisherClient", function (this: Suite) { assert.strictEqual(status, 200); }); - describe("when tracing headers are present in the request", function () { + describe("when tracing headers are present in the request", () => { const traceparentValue = "00-00000000000000000000000000000001-0000000000000003-00"; const tracestateValue = "00-123"; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { const setHeadersPolicy: AdditionalPolicyConfig = { policy: { name: "foo", @@ -224,7 +220,7 @@ describe("EventGridPublisherClient", function (this: Suite) { }; ({ client, recorder } = await createRecordedClient( - this.currentTest, + ctx, "EVENT_GRID_CLOUD_EVENT_SCHEMA_ENDPOINT", "CloudEvent", { @@ -234,35 +230,32 @@ describe("EventGridPublisherClient", function (this: Suite) { await recorder.setMatcher("HeaderlessMatcher"); }); - it("enriches events with distributed tracing information", async function (this: Context) { + it("enriches events with distributed tracing information", async () => { let requestBody: string | undefined; - await assert.supportsTracing( - async (options) => { - await client.send( - [ - { - type: "Azure.Sdk.TestEvent1", - id: recorder.variable( - "cloudTracingEventId", - `cloudTracingEventId${getRandomNumber()}`, - ), - time: new Date(recorder.variable("cloudTracingEventDate", new Date().toString())), - source: "/earth/unitedstates/washington/kirkland/finnhill", - subject: "Single with Trace Parent", - data: { - hello: "world", - }, - }, - ], + await expect(async (options: OperationOptions) => { + await client.send( + [ { - ...options, - onResponse: (response) => (requestBody = response.request.body as string), + type: "Azure.Sdk.TestEvent1", + id: recorder.variable( + "cloudTracingEventId", + `cloudTracingEventId${getRandomNumber()}`, + ), + time: new Date(recorder.variable("cloudTracingEventDate", new Date().toString())), + source: "/earth/unitedstates/washington/kirkland/finnhill", + subject: "Single with Trace Parent", + data: { + hello: "world", + }, }, - ); - }, - ["EventGridPublisherClient.send"], - ); + ], + { + ...options, + onResponse: (response) => (requestBody = response.request.body as string), + }, + ); + }).toSupportTracing(["EventGridPublisherClient.send"]); const parsedBody = JSON.parse(requestBody || ""); assert.isArray(parsedBody); @@ -272,12 +265,12 @@ describe("EventGridPublisherClient", function (this: Suite) { }); }); - describe("#send error cases (CloudEvent schema)", function () { + describe("#send error cases (CloudEvent schema)", () => { let client: EventGridPublisherClient<"CloudEvent">; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { ({ client, recorder } = await createRecordedClient( - this.currentTest, + ctx, "EVENT_GRID_CLOUD_EVENT_SCHEMA_ENDPOINT", "CloudEvent", { @@ -286,7 +279,7 @@ describe("EventGridPublisherClient", function (this: Suite) { )); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); @@ -314,18 +307,18 @@ describe("EventGridPublisherClient", function (this: Suite) { }); }); - describe("#send (Custom Event Schema)", function () { + describe("#send (Custom Event Schema)", () => { let client: EventGridPublisherClient<"Custom">; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { ({ client, recorder } = await createRecordedClient( - this.currentTest, + ctx, "EVENT_GRID_CUSTOM_SCHEMA_ENDPOINT", "Custom", )); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); @@ -378,12 +371,12 @@ describe("EventGridPublisherClient", function (this: Suite) { }); }); - describe("#send error cases (Custom Event Schema)", function () { + describe("#send error cases (Custom Event Schema)", () => { let client: EventGridPublisherClient<"Custom">; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { ({ client, recorder } = await createRecordedClient( - this.currentTest, + ctx, "EVENT_GRID_CUSTOM_SCHEMA_ENDPOINT", "Custom", { @@ -392,7 +385,7 @@ describe("EventGridPublisherClient", function (this: Suite) { )); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); diff --git a/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts b/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts index 46a648ab8e3b..a36475a0f2d3 100644 --- a/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts +++ b/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts @@ -1,13 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -/// - -import { assert } from "chai"; -import { AzureKeyCredential, generateSharedAccessSignature } from "../../src"; +import { AzureKeyCredential, generateSharedAccessSignature } from "../../src/index.js"; import { isNodeLike } from "@azure/core-util"; +import { describe, it, assert } from "vitest"; -describe("generateSharedAccessSignature", function () { +describe("generateSharedAccessSignature", () => { it("generates the correct signiture", async () => { // This is not a real key, it's the base64 encoding of "this is not a real EventGrid key", which happens to be the same // number of bytes as an actual EventGrid Access Key. diff --git a/sdk/eventgrid/eventgrid/test/public/utils/recordedClient.ts b/sdk/eventgrid/eventgrid/test/public/utils/recordedClient.ts index 89b432fcae6e..f1a6700a10b1 100644 --- a/sdk/eventgrid/eventgrid/test/public/utils/recordedClient.ts +++ b/sdk/eventgrid/eventgrid/test/public/utils/recordedClient.ts @@ -1,16 +1,16 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Test } from "mocha"; - -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { + FindReplaceSanitizer, + RecorderStartOptions, + TestInfo, +} from "@azure-tools/test-recorder"; import { assertEnvironmentVariable, Recorder } from "@azure-tools/test-recorder"; - -import type { InputSchema } from "../../../src"; -import { EventGridPublisherClient } from "../../../src"; +import type { InputSchema } from "../../../src/index.js"; +import { EventGridPublisherClient } from "../../../src/index.js"; import { createTestCredential } from "@azure-tools/test-credential"; import type { AdditionalPolicyConfig } from "@azure/core-client"; -import type { FindReplaceSanitizer } from "@azure-tools/test-recorder/types/src/utils/utils"; export interface RecordedClient { client: EventGridPublisherClient; @@ -43,7 +43,7 @@ export const recorderOptions: RecorderStartOptions = { }; export async function createRecordedClient( - currentTest: Test | undefined, + currentTest: TestInfo | undefined, endpointEnv: string, eventSchema: T, options: { diff --git a/sdk/eventgrid/eventgrid/test/public/utils/testUtils.ts b/sdk/eventgrid/eventgrid/test/public/utils/testUtils.ts index 057942a1cbda..4806c14b072f 100644 --- a/sdk/eventgrid/eventgrid/test/public/utils/testUtils.ts +++ b/sdk/eventgrid/eventgrid/test/public/utils/testUtils.ts @@ -1,15 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -/** - * A constant that indicates whether the environment is node.js or browser based. - */ -export const isNode = - typeof process !== "undefined" && - !!process.version && - !!process.versions && - !!process.versions.node; - export function getRandomNumber(): number { return Math.floor(Math.random() * 1000 + 100000); } diff --git a/sdk/eventgrid/eventgrid/tsconfig.browser.config.json b/sdk/eventgrid/eventgrid/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/eventgrid/eventgrid/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/eventgrid/eventgrid/tsconfig.json b/sdk/eventgrid/eventgrid/tsconfig.json index 8ae9be2b6038..cf89109384d9 100644 --- a/sdk/eventgrid/eventgrid/tsconfig.json +++ b/sdk/eventgrid/eventgrid/tsconfig.json @@ -1,12 +1,21 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "lib": ["ES2018.AsyncIterable"], "paths": { "@azure/eventgrid": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/eventgrid/eventgrid/vitest.browser.config.ts b/sdk/eventgrid/eventgrid/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/eventgrid/eventgrid/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/eventgrid/eventgrid/vitest.config.ts b/sdk/eventgrid/eventgrid/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/eventgrid/eventgrid/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/fabric/arm-fabric/package.json b/sdk/fabric/arm-fabric/package.json index 04100873fee5..adb699c55ea1 100644 --- a/sdk/fabric/arm-fabric/package.json +++ b/sdk/fabric/arm-fabric/package.json @@ -68,7 +68,7 @@ "devDependencies": { "dotenv": "^16.0.0", "@types/node": "^18.0.0", - "eslint": "^8.55.0", + "eslint": "^9.9.0", "prettier": "^3.2.5", "typescript": "~5.6.2", "@azure/identity": "^4.2.1", diff --git a/sdk/face/ai-vision-face-rest/package.json b/sdk/face/ai-vision-face-rest/package.json index c21381b1ca52..ecccc62edf42 100644 --- a/sdk/face/ai-vision-face-rest/package.json +++ b/sdk/face/ai-vision-face-rest/package.json @@ -67,7 +67,7 @@ "devDependencies": { "dotenv": "^16.0.0", "@types/node": "^18.0.0", - "eslint": "^9.13.0", + "eslint": "^9.9.0", "prettier": "^3.2.5", "typescript": "~5.6.3", "tshy": "^1.11.1", diff --git a/sdk/formrecognizer/ai-form-recognizer/package.json b/sdk/formrecognizer/ai-form-recognizer/package.json index ebc83590caff..9d0de3133dfa 100644 --- a/sdk/formrecognizer/ai-form-recognizer/package.json +++ b/sdk/formrecognizer/ai-form-recognizer/package.json @@ -109,7 +109,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/CHANGELOG.md b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/CHANGELOG.md index a9012f74717a..d536c9b699db 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/CHANGELOG.md +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/CHANGELOG.md @@ -1,15 +1,149 @@ # Release History - -## 2.0.0-beta.2 (Unreleased) - + +## 2.0.0-beta.2 (2024-11-11) +Compared with version 1.0.0 + ### Features Added -### Breaking Changes - -### Bugs Fixed + - Added operation group CloudHsmClusterBackupStatus + - Added operation group CloudHsmClusterPrivateEndpointConnections + - Added operation group CloudHsmClusterPrivateLinkResources + - Added operation group CloudHsmClusterRestoreStatus + - Added operation group CloudHsmClusters + - Added operation group PrivateEndpointConnections + - Added Interface AzureHSMResourceProviderOptionalParams + - Added Interface BackupRequestProperties + - Added Interface BackupRestoreBaseResultProperties + - Added Interface BackupRestoreRequestBaseProperties + - Added Interface BackupResult + - Added Interface BackupResultProperties + - Added Interface CloudHsmCluster + - Added Interface CloudHsmClusterBackupStatusGetExceptionHeaders + - Added Interface CloudHsmClusterBackupStatusGetHeaders + - Added Interface CloudHsmClusterBackupStatusGetOptionalParams + - Added Interface CloudHsmClusterListResult + - Added Interface CloudHsmClusterPatchParameters + - Added Interface CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams + - Added Interface CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders + - Added Interface CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams + - Added Interface CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams + - Added Interface CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterNextOptionalParams + - Added Interface CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams + - Added Interface CloudHsmClusterResource + - Added Interface CloudHsmClusterRestoreStatusGetExceptionHeaders + - Added Interface CloudHsmClusterRestoreStatusGetHeaders + - Added Interface CloudHsmClusterRestoreStatusGetOptionalParams + - Added Interface CloudHsmClustersBackupHeaders + - Added Interface CloudHsmClustersBackupOptionalParams + - Added Interface CloudHsmClustersCreateOrUpdateOptionalParams + - Added Interface CloudHsmClustersDeleteHeaders + - Added Interface CloudHsmClustersDeleteOptionalParams + - Added Interface CloudHsmClustersGetOptionalParams + - Added Interface CloudHsmClusterSku + - Added Interface CloudHsmClustersListByResourceGroupNextOptionalParams + - Added Interface CloudHsmClustersListByResourceGroupOptionalParams + - Added Interface CloudHsmClustersListBySubscriptionNextOptionalParams + - Added Interface CloudHsmClustersListBySubscriptionOptionalParams + - Added Interface CloudHsmClustersRestoreHeaders + - Added Interface CloudHsmClustersRestoreOptionalParams + - Added Interface CloudHsmClustersUpdateHeaders + - Added Interface CloudHsmClustersUpdateOptionalParams + - Added Interface CloudHsmClustersValidateBackupPropertiesHeaders + - Added Interface CloudHsmClustersValidateBackupPropertiesOptionalParams + - Added Interface CloudHsmClustersValidateRestorePropertiesHeaders + - Added Interface CloudHsmClustersValidateRestorePropertiesOptionalParams + - Added Interface CloudHsmProperties + - Added Interface DedicatedHsm + - Added Interface DedicatedHsmDeleteHeaders + - Added Interface DedicatedHsmUpdateHeaders + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface ErrorResponse + - Added Interface ManagedServiceIdentity + - Added Interface Operation + - Added Interface OperationDisplay + - Added Interface OperationListResult + - Added Interface PrivateEndpoint + - Added Interface PrivateEndpointConnection + - Added Interface PrivateEndpointConnectionListResult + - Added Interface PrivateEndpointConnectionsListByCloudHsmClusterNextOptionalParams + - Added Interface PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams + - Added Interface PrivateLinkResource + - Added Interface PrivateLinkResourceListResult + - Added Interface PrivateLinkServiceConnectionState + - Added Interface ProxyResource + - Added Interface RestoreRequestProperties + - Added Interface RestoreResult + - Added Interface TrackedResource + - Added Interface UserAssignedIdentity + - Added Class AzureHSMResourceProvider + - Added Type Alias ActionType + - Added Type Alias ActivationState + - Added Type Alias AutoGeneratedDomainNameLabelScope + - Added Type Alias BackupRestoreOperationStatus + - Added Type Alias CloudHsmClusterBackupStatusGetResponse + - Added Type Alias CloudHsmClusterPrivateEndpointConnectionsCreateResponse + - Added Type Alias CloudHsmClusterPrivateEndpointConnectionsDeleteResponse + - Added Type Alias CloudHsmClusterPrivateEndpointConnectionsGetResponse + - Added Type Alias CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterNextResponse + - Added Type Alias CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse + - Added Type Alias CloudHsmClusterRestoreStatusGetResponse + - Added Type Alias CloudHsmClustersBackupResponse + - Added Type Alias CloudHsmClustersCreateOrUpdateResponse + - Added Type Alias CloudHsmClustersDeleteResponse + - Added Type Alias CloudHsmClustersGetResponse + - Added Type Alias CloudHsmClusterSkuFamily + - Added Type Alias CloudHsmClusterSkuName + - Added Type Alias CloudHsmClustersListByResourceGroupNextResponse + - Added Type Alias CloudHsmClustersListByResourceGroupResponse + - Added Type Alias CloudHsmClustersListBySubscriptionNextResponse + - Added Type Alias CloudHsmClustersListBySubscriptionResponse + - Added Type Alias CloudHsmClustersRestoreResponse + - Added Type Alias CloudHsmClustersUpdateResponse + - Added Type Alias CloudHsmClustersValidateBackupPropertiesResponse + - Added Type Alias CloudHsmClustersValidateRestorePropertiesResponse + - Added Type Alias CreatedByType + - Added Type Alias DedicatedHsmDeleteResponse + - Added Type Alias ManagedServiceIdentityType + - Added Type Alias Origin + - Added Type Alias PrivateEndpointConnectionProvisioningState + - Added Type Alias PrivateEndpointConnectionsListByCloudHsmClusterNextResponse + - Added Type Alias PrivateEndpointConnectionsListByCloudHsmClusterResponse + - Added Type Alias PrivateEndpointServiceConnectionStatus + - Added Type Alias ProvisioningState + - Added Type Alias PublicNetworkAccess + - Interface ApiEntityReference has a new optional parameter resourceId + - Interface NetworkInterface has a new optional parameter resourceId + - Interface Resource has a new optional parameter systemData + - Added Enum KnownActionType + - Added Enum KnownActivationState + - Added Enum KnownAutoGeneratedDomainNameLabelScope + - Added Enum KnownBackupRestoreOperationStatus + - Added Enum KnownCloudHsmClusterSkuFamily + - Added Enum KnownCreatedByType + - Added Enum KnownManagedServiceIdentityType + - Added Enum KnownOrigin + - Added Enum KnownPrivateEndpointConnectionProvisioningState + - Added Enum KnownPrivateEndpointServiceConnectionStatus + - Added Enum KnownProvisioningState + - Added Enum KnownPublicNetworkAccess + - Added function getContinuationToken -### Other Changes +### Breaking Changes + - Deleted Class AzureDedicatedHSMResourceProvider + - Interface ApiEntityReference no longer has parameter id + - Interface DedicatedHsmListByResourceGroupNextOptionalParams no longer has parameter top + - Interface DedicatedHsmListBySubscriptionNextOptionalParams no longer has parameter top + - Interface NetworkInterface no longer has parameter id + - Interface Resource no longer has parameter location + - Interface Resource no longer has parameter sku + - Interface Resource no longer has parameter tags + - Interface Resource no longer has parameter zones + - Type of parameter createdByType of interface SystemData is changed from IdentityType to CreatedByType + - Type of parameter lastModifiedByType of interface SystemData is changed from IdentityType to CreatedByType + + ## 2.0.0-beta.1 (2024-01-04) ### Features Added diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/_meta.json b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/_meta.json index 4bda5739cf4f..4f55041d8900 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/_meta.json +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/_meta.json @@ -1,8 +1,8 @@ { - "commit": "be0d1c383d683a8eb22ab5fd5b75e380ac3c2eea", + "commit": "766fbdcae199a5b2a3b7d2910f32b37cac7947de", "readme": "specification/hardwaresecuritymodules/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\hardwaresecuritymodules\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\hardwaresecuritymodules\\resource-manager\\readme.md --use=@autorest/typescript@6.0.27 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.15", + "use": "@autorest/typescript@6.0.27" } \ No newline at end of file diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/assets.json b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/assets.json index fa55eb80fbd3..43073259821b 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/assets.json +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/hardwaresecuritymodules/arm-hardwaresecuritymodules", - "Tag": "js/hardwaresecuritymodules/arm-hardwaresecuritymodules_7bbf0ccc4a" + "Tag": "js/hardwaresecuritymodules/arm-hardwaresecuritymodules_031f420a43" } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/package.json b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/package.json index e36f560e1a05..8530fbf8875d 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/package.json +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/package.json @@ -8,12 +8,12 @@ "node": ">=18.0.0" }, "dependencies": { - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-client": "^1.7.0", "@azure/core-lro": "^2.5.4", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -28,18 +28,24 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-hardwaresecuritymodules.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@microsoft/api-extractor": "^7.31.1", + "mkdirp": "^3.0.1", + "typescript": "~5.5.3", + "uglify-js": "^3.4.9", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", + "@azure/identity": "^4.2.1", + "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^1.1.0", + "mocha": "^10.0.0", "@types/mocha": "^10.0.0", - "@types/node": "^18.0.0", + "tsx": "^4.7.1", + "@types/chai": "^4.2.8", "chai": "^4.2.0", - "dotenv": "^16.0.0", - "mocha": "^10.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "cross-env": "^7.0.2", + "@types/node": "^18.0.0", + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -67,29 +73,28 @@ ], "scripts": { "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "build:browser": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "dev-tool run extract-api", + "lint": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", - "build:samples": "echo skipped.", + "build:browser": "echo skipped", "build:test": "echo skipped", + "build:samples": "echo skipped.", "check-format": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", - "extract-api": "dev-tool run extract-api", "format": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "lint": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "prepack": "npm run build", "test": "npm run integration-test", - "test:browser": "echo skipped", "test:node": "echo skipped", + "test:browser": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", - "update-snippets": "echo skipped" + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -110,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-hardwaresecuritymodules?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/review/arm-hardwaresecuritymodules.api.md b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/review/arm-hardwaresecuritymodules.api.md index 72b5d69799f9..7bf9d05ee4df 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/review/arm-hardwaresecuritymodules.api.md +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/review/arm-hardwaresecuritymodules.api.md @@ -10,21 +10,36 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; +// @public +export type ActionType = string; + +// @public +export type ActivationState = string; + // @public export interface ApiEntityReference { - id?: string; + resourceId?: string; } +// @public +export type AutoGeneratedDomainNameLabelScope = string; + // @public (undocumented) export class AzureHSMResourceProvider extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureHSMResourceProviderOptionalParams); // (undocumented) + apiVersion: string; + // (undocumented) + cloudHsmClusterBackupStatus: CloudHsmClusterBackupStatus; + // (undocumented) cloudHsmClusterPrivateEndpointConnections: CloudHsmClusterPrivateEndpointConnections; // (undocumented) cloudHsmClusterPrivateLinkResources: CloudHsmClusterPrivateLinkResources; // (undocumented) + cloudHsmClusterRestoreStatus: CloudHsmClusterRestoreStatus; + // (undocumented) cloudHsmClusters: CloudHsmClusters; // (undocumented) dedicatedHsmOperations: DedicatedHsmOperations; @@ -39,40 +54,84 @@ export class AzureHSMResourceProvider extends coreClient.ServiceClient { // @public export interface AzureHSMResourceProviderOptionalParams extends coreClient.ServiceClientOptions { $host?: string; + apiVersion?: string; endpoint?: string; } // @public -export interface BackupProperties { - azureStorageResourceUri?: string; - readonly lastBackupDateTime?: Date; - readonly lastBackupStatus?: string; +export interface BackupRequestProperties extends BackupRestoreRequestBaseProperties { } // @public -export interface CHsmError { - readonly code?: string; - readonly message?: string; +export interface BackupRestoreBaseResultProperties { + readonly endTime?: Date; + error?: ErrorDetail; + jobId?: string; + readonly startTime?: Date; + readonly status?: BackupRestoreOperationStatus; + statusDetails?: string; +} + +// @public +export type BackupRestoreOperationStatus = string; + +// @public +export interface BackupRestoreRequestBaseProperties { + azureStorageBlobContainerUri: string; + token?: string; +} + +// @public +export interface BackupResult { + azureStorageBlobContainerUri?: string; + backupId?: string; + readonly endTime?: Date; + error?: ErrorDetail; + jobId?: string; + readonly startTime?: Date; + readonly status?: BackupRestoreOperationStatus; + statusDetails?: string; +} + +// @public +export interface BackupResultProperties extends BackupRestoreBaseResultProperties { + azureStorageBlobContainerUri?: string; + backupId?: string; } // @public export interface CloudHsmCluster extends CloudHsmClusterResource { - autoGeneratedDomainNameLabelScope?: string; - backupProperties?: BackupProperties; - hsms?: CloudHsmProperties[]; - privateEndpointConnections?: PrivateEndpointConnection[]; - provisioningState?: ProvisioningState; - publicNetworkAccess?: string; - restoreProperties?: RestoreProperties; - securityDomain?: CloudHsmClusterSecurityDomainProperties; + readonly activationState?: ActivationState; + autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope; + readonly hsms?: CloudHsmProperties[]; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + readonly provisioningState?: ProvisioningState; + publicNetworkAccess?: PublicNetworkAccess; readonly statusMessage?: string; } // @public -export interface CloudHsmClusterError { - error?: CHsmError; +export interface CloudHsmClusterBackupStatus { + get(resourceGroupName: string, cloudHsmClusterName: string, jobId: string, options?: CloudHsmClusterBackupStatusGetOptionalParams): Promise; +} + +// @public +export interface CloudHsmClusterBackupStatusGetExceptionHeaders { + xMsRequestId?: string; +} + +// @public +export interface CloudHsmClusterBackupStatusGetHeaders { + xMsRequestId?: string; +} + +// @public +export interface CloudHsmClusterBackupStatusGetOptionalParams extends coreClient.OperationOptions { } +// @public +export type CloudHsmClusterBackupStatusGetResponse = CloudHsmClusterBackupStatusGetHeaders & BackupResult; + // @public export interface CloudHsmClusterListResult { nextLink?: string; @@ -81,9 +140,7 @@ export interface CloudHsmClusterListResult { // @public export interface CloudHsmClusterPatchParameters { - backupProperties?: BackupProperties; identity?: ManagedServiceIdentity; - sku?: CloudHsmClusterSku; tags?: { [propertyName: string]: string; }; @@ -91,8 +148,8 @@ export interface CloudHsmClusterPatchParameters { // @public export interface CloudHsmClusterPrivateEndpointConnections { - beginDelete(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams): Promise, CloudHsmClusterPrivateEndpointConnectionsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams): Promise; create(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, properties: PrivateEndpointConnection, options?: CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams): Promise; get(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, options?: CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams): Promise; } @@ -115,6 +172,9 @@ export interface CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams e updateIntervalInMs?: number; } +// @public +export type CloudHsmClusterPrivateEndpointConnectionsDeleteResponse = CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders; + // @public export interface CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { } @@ -124,9 +184,16 @@ export type CloudHsmClusterPrivateEndpointConnectionsGetResponse = PrivateEndpoi // @public export interface CloudHsmClusterPrivateLinkResources { - listByCloudHsmCluster(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams): Promise; + listByCloudHsmCluster(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterNextOptionalParams extends coreClient.OperationOptions { } +// @public +export type CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterNextResponse = PrivateLinkResourceListResult; + // @public export interface CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams extends coreClient.OperationOptions { } @@ -140,31 +207,70 @@ export interface CloudHsmClusterResource extends TrackedResource { sku?: CloudHsmClusterSku; } +// @public +export interface CloudHsmClusterRestoreStatus { + get(resourceGroupName: string, cloudHsmClusterName: string, jobId: string, options?: CloudHsmClusterRestoreStatusGetOptionalParams): Promise; +} + +// @public +export interface CloudHsmClusterRestoreStatusGetExceptionHeaders { + xMsRequestId?: string; +} + +// @public +export interface CloudHsmClusterRestoreStatusGetHeaders { + xMsRequestId?: string; +} + +// @public +export interface CloudHsmClusterRestoreStatusGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CloudHsmClusterRestoreStatusGetResponse = CloudHsmClusterRestoreStatusGetHeaders & RestoreResult; + // @public export interface CloudHsmClusters { + beginBackup(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersBackupOptionalParams): Promise, CloudHsmClustersBackupResponse>>; + beginBackupAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersBackupOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, cloudHsmClusterName: string, location: string, options?: CloudHsmClustersCreateOrUpdateOptionalParams): Promise, CloudHsmClustersCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, cloudHsmClusterName: string, location: string, options?: CloudHsmClustersCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersDeleteOptionalParams): Promise, CloudHsmClustersDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersDeleteOptionalParams): Promise; + beginRestore(resourceGroupName: string, cloudHsmClusterName: string, restoreRequestProperties: RestoreRequestProperties, options?: CloudHsmClustersRestoreOptionalParams): Promise, CloudHsmClustersRestoreResponse>>; + beginRestoreAndWait(resourceGroupName: string, cloudHsmClusterName: string, restoreRequestProperties: RestoreRequestProperties, options?: CloudHsmClustersRestoreOptionalParams): Promise; beginUpdate(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersUpdateOptionalParams): Promise, CloudHsmClustersUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersUpdateOptionalParams): Promise; + beginValidateBackupProperties(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersValidateBackupPropertiesOptionalParams): Promise, CloudHsmClustersValidateBackupPropertiesResponse>>; + beginValidateBackupPropertiesAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersValidateBackupPropertiesOptionalParams): Promise; + beginValidateRestoreProperties(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersValidateRestorePropertiesOptionalParams): Promise, CloudHsmClustersValidateRestorePropertiesResponse>>; + beginValidateRestorePropertiesAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersValidateRestorePropertiesOptionalParams): Promise; get(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: CloudHsmClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: CloudHsmClustersListBySubscriptionOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface CloudHsmClustersBackupHeaders { + xMsRequestId?: string; +} + +// @public +export interface CloudHsmClustersBackupOptionalParams extends coreClient.OperationOptions { + backupRequestProperties?: BackupRequestProperties; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CloudHsmClustersBackupResponse = CloudHsmClustersBackupHeaders & BackupResult; + // @public export interface CloudHsmClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - autoGeneratedDomainNameLabelScope?: string; - backupProperties?: BackupProperties; - hsms?: CloudHsmProperties[]; + autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope; identity?: ManagedServiceIdentity; - privateEndpointConnections?: PrivateEndpointConnection[]; - provisioningState?: ProvisioningState; - publicNetworkAccess?: string; - restoreProperties?: RestoreProperties; + publicNetworkAccess?: PublicNetworkAccess; resumeFrom?: string; - securityDomain?: CloudHsmClusterSecurityDomainProperties; sku?: CloudHsmClusterSku; tags?: { [propertyName: string]: string; @@ -187,10 +293,7 @@ export interface CloudHsmClustersDeleteOptionalParams extends coreClient.Operati } // @public -export interface CloudHsmClusterSecurityDomainProperties { - activationStatus?: string; - fipsState?: number; -} +export type CloudHsmClustersDeleteResponse = CloudHsmClustersDeleteHeaders; // @public export interface CloudHsmClustersGetOptionalParams extends coreClient.OperationOptions { @@ -242,6 +345,20 @@ export interface CloudHsmClustersListBySubscriptionOptionalParams extends coreCl // @public export type CloudHsmClustersListBySubscriptionResponse = CloudHsmClusterListResult; +// @public +export interface CloudHsmClustersRestoreHeaders { + xMsRequestId?: string; +} + +// @public +export interface CloudHsmClustersRestoreOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CloudHsmClustersRestoreResponse = CloudHsmClustersRestoreHeaders & RestoreResult; + // @public export interface CloudHsmClustersUpdateHeaders { location?: string; @@ -249,10 +366,8 @@ export interface CloudHsmClustersUpdateHeaders { // @public export interface CloudHsmClustersUpdateOptionalParams extends coreClient.OperationOptions { - backupProperties?: BackupProperties; identity?: ManagedServiceIdentity; resumeFrom?: string; - sku?: CloudHsmClusterSku; tags?: { [propertyName: string]: string; }; @@ -262,6 +377,36 @@ export interface CloudHsmClustersUpdateOptionalParams extends coreClient.Operati // @public export type CloudHsmClustersUpdateResponse = CloudHsmCluster; +// @public +export interface CloudHsmClustersValidateBackupPropertiesHeaders { + xMsRequestId?: string; +} + +// @public +export interface CloudHsmClustersValidateBackupPropertiesOptionalParams extends coreClient.OperationOptions { + backupRequestProperties?: BackupRequestProperties; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CloudHsmClustersValidateBackupPropertiesResponse = CloudHsmClustersValidateBackupPropertiesHeaders & BackupResult; + +// @public +export interface CloudHsmClustersValidateRestorePropertiesHeaders { + xMsRequestId?: string; +} + +// @public +export interface CloudHsmClustersValidateRestorePropertiesOptionalParams extends coreClient.OperationOptions { + restoreRequestProperties?: RestoreRequestProperties; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type CloudHsmClustersValidateRestorePropertiesResponse = CloudHsmClustersValidateRestorePropertiesHeaders & RestoreResult; + // @public export interface CloudHsmProperties { fqdn?: string; @@ -273,13 +418,14 @@ export interface CloudHsmProperties { export type CreatedByType = string; // @public -export interface DedicatedHsm extends DedicatedHsmResource { +export interface DedicatedHsm extends TrackedResource { managementNetworkProfile?: NetworkProfile; networkProfile?: NetworkProfile; readonly provisioningState?: JsonWebKeyType; + sku: Sku; stampId?: string; readonly statusMessage?: string; - readonly systemData?: SystemDataAutoGenerated; + zones?: string[]; } // @public @@ -291,12 +437,20 @@ export interface DedicatedHsmCreateOrUpdateOptionalParams extends coreClient.Ope // @public export type DedicatedHsmCreateOrUpdateResponse = DedicatedHsm; +// @public +export interface DedicatedHsmDeleteHeaders { + location?: string; +} + // @public export interface DedicatedHsmDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export type DedicatedHsmDeleteResponse = DedicatedHsmDeleteHeaders; + // @public export interface DedicatedHsmError { readonly error?: ErrorModel; @@ -359,33 +513,12 @@ export interface DedicatedHsmListResult { value?: DedicatedHsm[]; } -// @public -export interface DedicatedHsmOperation { - display?: DedicatedHsmOperationDisplay; - readonly isDataAction?: boolean; - name?: string; - origin?: string; -} - -// @public -export interface DedicatedHsmOperationDisplay { - description?: string; - operation?: string; - provider?: string; - resource?: string; -} - -// @public -export interface DedicatedHsmOperationListResult { - value?: DedicatedHsmOperation[]; -} - // @public export interface DedicatedHsmOperations { beginCreateOrUpdate(resourceGroupName: string, name: string, parameters: DedicatedHsm, options?: DedicatedHsmCreateOrUpdateOptionalParams): Promise, DedicatedHsmCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, parameters: DedicatedHsm, options?: DedicatedHsmCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise, DedicatedHsmDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, name: string, options?: DedicatedHsmUpdateOptionalParams): Promise, DedicatedHsmUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, name: string, options?: DedicatedHsmUpdateOptionalParams): Promise; get(resourceGroupName: string, name: string, options?: DedicatedHsmGetOptionalParams): Promise; @@ -402,16 +535,8 @@ export interface DedicatedHsmPatchParameters { } // @public -export interface DedicatedHsmResource { - readonly id?: string; - location: string; - readonly name?: string; - sku?: Sku; - tags?: { - [propertyName: string]: string; - }; - readonly type?: string; - zones?: string[]; +export interface DedicatedHsmUpdateHeaders { + location?: string; } // @public @@ -440,6 +565,21 @@ export interface EndpointDetail { protocol?: string; } +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + // @public export interface ErrorModel { readonly code?: string; @@ -447,6 +587,11 @@ export interface ErrorModel { readonly message?: string; } +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + // @public export function getContinuationToken(page: unknown): string | undefined; @@ -456,6 +601,36 @@ export type IdentityType = string; // @public export type JsonWebKeyType = string; +// @public +export enum KnownActionType { + Internal = "Internal" +} + +// @public +export enum KnownActivationState { + Active = "Active", + Failed = "Failed", + NotActivated = "NotActivated", + NotDefined = "NotDefined", + Unknown = "Unknown" +} + +// @public +export enum KnownAutoGeneratedDomainNameLabelScope { + NoReuse = "NoReuse", + ResourceGroupReuse = "ResourceGroupReuse", + SubscriptionReuse = "SubscriptionReuse", + TenantReuse = "TenantReuse" +} + +// @public +export enum KnownBackupRestoreOperationStatus { + Cancelled = "Cancelled", + Failed = "Failed", + InProgress = "InProgress", + Succeeded = "Succeeded" +} + // @public export enum KnownCloudHsmClusterSkuFamily { // (undocumented) @@ -497,6 +672,13 @@ export enum KnownManagedServiceIdentityType { UserAssigned = "UserAssigned" } +// @public +export enum KnownOrigin { + System = "system", + User = "user", + UserSystem = "user,system" +} + // @public export enum KnownPrivateEndpointConnectionProvisioningState { Canceled = "Canceled", @@ -524,6 +706,11 @@ export enum KnownProvisioningState { Succeeded = "Succeeded" } +// @public +export enum KnownPublicNetworkAccess { + Disabled = "Disabled" +} + // @public export enum KnownSkuName { PayShield10KLMK1CPS250 = "payShield10K_LMK1_CPS250", @@ -550,8 +737,8 @@ export type ManagedServiceIdentityType = string; // @public export interface NetworkInterface { - readonly id?: string; privateIpAddress?: string; + readonly resourceId?: string; } // @public @@ -560,9 +747,32 @@ export interface NetworkProfile { subnet?: ApiEntityReference; } +// @public +export interface Operation { + readonly actionType?: ActionType; + display?: OperationDisplay; + readonly isDataAction?: boolean; + readonly name?: string; + readonly origin?: Origin; +} + +// @public +export interface OperationDisplay { + readonly description?: string; + readonly operation?: string; + readonly provider?: string; + readonly resource?: string; +} + +// @public +export interface OperationListResult { + readonly nextLink?: string; + readonly value?: Operation[]; +} + // @public export interface Operations { - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -570,7 +780,10 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption } // @public -export type OperationsListResponse = DedicatedHsmOperationListResult; +export type OperationsListResponse = OperationListResult; + +// @public +export type Origin = string; // @public export interface OutboundEnvironmentEndpoint { @@ -638,6 +851,7 @@ export interface PrivateLinkResource extends Resource { // @public export interface PrivateLinkResourceListResult { + readonly nextLink?: string; value?: PrivateLinkResource[]; } @@ -655,6 +869,9 @@ export type ProvisioningState = string; export interface ProxyResource extends Resource { } +// @public +export type PublicNetworkAccess = string; + // @public export interface Resource { readonly id?: string; @@ -664,15 +881,13 @@ export interface Resource { } // @public -export interface ResourceListResult { - nextLink?: string; - value?: DedicatedHsmResource[]; +export interface RestoreRequestProperties extends BackupRestoreRequestBaseProperties { + backupId: string; } // @public -export interface RestoreProperties { - azureStorageResourceUri?: string; - foldername?: string; +export interface RestoreResult { + properties?: BackupRestoreBaseResultProperties; } // @public @@ -693,16 +908,6 @@ export interface SystemData { lastModifiedByType?: CreatedByType; } -// @public -export interface SystemDataAutoGenerated { - createdAt?: Date; - createdBy?: string; - createdByType?: IdentityType; - lastModifiedAt?: Date; - lastModifiedBy?: string; - lastModifiedByType?: IdentityType; -} - // @public export interface TrackedResource extends Resource { location: string; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterBackupStatusGetSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterBackupStatusGetSample.ts new file mode 100644 index 000000000000..7cfee1b08405 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterBackupStatusGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AzureHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the backup operation status of the specified Cloud HSM Cluster + * + * @summary Gets the backup operation status of the specified Cloud HSM Cluster + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Backup_Pending_MaximumSet_Gen.json + */ +async function cloudHsmClusterGetBackupStatusMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const jobId = "572a45927fc240e1ac075de27371680b"; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusterBackupStatus.get( + resourceGroupName, + cloudHsmClusterName, + jobId, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterGetBackupStatusMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.ts index f41ebf976f81..90a3d1d1db04 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - AzureHSMResourceProvider + AzureHSMResourceProvider, } from "@azure/arm-hardwaresecuritymodules"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the private endpoint connection for the Cloud Hsm Cluster. * * @summary Creates or updates the private endpoint connection for the Cloud Hsm Cluster. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Create_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Create_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateEndpointConnectionCreateMaximumSetGen() { const subscriptionId = @@ -34,8 +34,8 @@ async function cloudHsmClusterPrivateEndpointConnectionCreateMaximumSetGen() { const properties: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "My name is Joe and I'm approving this.", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); @@ -43,7 +43,7 @@ async function cloudHsmClusterPrivateEndpointConnectionCreateMaximumSetGen() { resourceGroupName, cloudHsmClusterName, peConnectionName, - properties + properties, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.ts index 12628ec7b9d5..2d827c54086c 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the private endpoint connection for the Cloud Hsm Cluster. * * @summary Deletes the private endpoint connection for the Cloud Hsm Cluster. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Delete_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateEndpointConnectionDeleteMaximumSetGen() { const subscriptionId = @@ -30,11 +30,12 @@ async function cloudHsmClusterPrivateEndpointConnectionDeleteMaximumSetGen() { const peConnectionName = "sample-pec"; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); - const result = await client.cloudHsmClusterPrivateEndpointConnections.beginDeleteAndWait( - resourceGroupName, - cloudHsmClusterName, - peConnectionName - ); + const result = + await client.cloudHsmClusterPrivateEndpointConnections.beginDeleteAndWait( + resourceGroupName, + cloudHsmClusterName, + peConnectionName, + ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.ts index afd73be39e13..44e86bab1528 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private endpoint connection for the Cloud Hsm Cluster. * * @summary Gets the private endpoint connection for the Cloud Hsm Cluster. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Get_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateEndpointConnectionGetMaximumSetGen() { const subscriptionId = @@ -33,7 +33,7 @@ async function cloudHsmClusterPrivateEndpointConnectionGetMaximumSetGen() { const result = await client.cloudHsmClusterPrivateEndpointConnections.get( resourceGroupName, cloudHsmClusterName, - peConnectionName + peConnectionName, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.ts index 4bb3383db7fd..1b959402d91f 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources supported for the Cloud Hsm Cluster. * * @summary Gets the private link resources supported for the Cloud Hsm Cluster. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateLinkResource_ListByCloudHsmCluster_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateLinkResource_ListByCloudHsmCluster_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateLinkResourcesListByResourceMaximumSetGen() { const subscriptionId = @@ -29,11 +29,14 @@ async function cloudHsmClusterPrivateLinkResourcesListByResourceMaximumSetGen() const cloudHsmClusterName = "chsm1"; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); - const result = await client.cloudHsmClusterPrivateLinkResources.listByCloudHsmCluster( + const resArray = new Array(); + for await (let item of client.cloudHsmClusterPrivateLinkResources.listByCloudHsmCluster( resourceGroupName, - cloudHsmClusterName - ); - console.log(result); + cloudHsmClusterName, + )) { + resArray.push(item); + } + console.log(resArray); } async function main() { diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterRestoreStatusGetSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterRestoreStatusGetSample.ts new file mode 100644 index 000000000000..caba331a773d --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClusterRestoreStatusGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AzureHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the restore operation status of the specified Cloud HSM Cluster + * + * @summary Gets the restore operation status of the specified Cloud HSM Cluster + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Restore_Pending_MaximumSet_Gen.json + */ +async function cloudHsmClusterGetRestoreStatusMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const jobId = "572a45927fc240e1ac075de27371680b"; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusterRestoreStatus.get( + resourceGroupName, + cloudHsmClusterName, + jobId, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterGetRestoreStatusMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersBackupSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersBackupSample.ts new file mode 100644 index 000000000000..9d0f6d3d6651 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersBackupSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AzureHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a backup of the Cloud HSM Cluster in the specified subscription + * + * @summary Create a backup of the Cloud HSM Cluster in the specified subscription + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrValidate_Backup_MaximumSet_Gen.json + */ +async function cloudHsmClusterCreateBackupMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusters.beginBackupAndWait( + resourceGroupName, + cloudHsmClusterName, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterCreateBackupMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersCreateOrUpdateSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersCreateOrUpdateSample.ts index 4703402a8023..7875f1db417e 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersCreateOrUpdateSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersCreateOrUpdateSample.ts @@ -11,7 +11,7 @@ import { CloudHsmClustersCreateOrUpdateOptionalParams, AzureHSMResourceProvider, - CloudHsmClusterSku + CloudHsmClusterSku, } from "@azure/arm-hardwaresecuritymodules"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update a Cloud HSM Cluster in the specified subscription. * * @summary Create or Update a Cloud HSM Cluster in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrUpdate_MaximumSet_Gen.json */ async function cloudHsmClusterCreateOrUpdateMaximumSetGen() { const subscriptionId = @@ -33,17 +33,18 @@ async function cloudHsmClusterCreateOrUpdateMaximumSetGen() { const cloudHsmClusterName = "chsm1"; const tags = { dept: "hsm", environment: "dogfood" }; const location = "eastus2"; - const sku: CloudHsmClusterSku = { name: "Standard_B1", family: "B" }; const identity = { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/contosoResources/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": {} - } + "/subscriptions/00000000000000000000000000000000/resourceGroups/contosoResources/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": + {}, + }, }; + const sku: CloudHsmClusterSku = { name: "Standard_B1", family: "B" }; const options: CloudHsmClustersCreateOrUpdateOptionalParams = { tags, + identity, sku, - identity }; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); @@ -51,7 +52,7 @@ async function cloudHsmClusterCreateOrUpdateMaximumSetGen() { resourceGroupName, cloudHsmClusterName, location, - options + options, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersDeleteSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersDeleteSample.ts index 354090618b17..3be5d135f712 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersDeleteSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Cloud HSM Cluster * * @summary Deletes the specified Cloud HSM Cluster - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Delete_MaximumSet_Gen.json */ async function cloudHsmClusterDeleteMaximumSetGen() { const subscriptionId = @@ -31,7 +31,7 @@ async function cloudHsmClusterDeleteMaximumSetGen() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.cloudHsmClusters.beginDeleteAndWait( resourceGroupName, - cloudHsmClusterName + cloudHsmClusterName, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersGetSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersGetSample.ts index 91311f57d238..809bb9ce1b79 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersGetSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Cloud HSM Cluster * * @summary Gets the specified Cloud HSM Cluster - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Get_MaximumSet_Gen.json */ async function cloudHsmClusterGetMaximumSetGen() { const subscriptionId = @@ -31,7 +31,7 @@ async function cloudHsmClusterGetMaximumSetGen() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.cloudHsmClusters.get( resourceGroupName, - cloudHsmClusterName + cloudHsmClusterName, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersListByResourceGroupSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersListByResourceGroupSample.ts index fe78d379b24a..992050e527b4 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersListByResourceGroupSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group. * * @summary The List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_ListByResourceGroup_MaximumSet_Gen.json */ async function cloudHsmClusterListByResourceGroupMaximumSetGen() { const subscriptionId = @@ -30,7 +30,7 @@ async function cloudHsmClusterListByResourceGroupMaximumSetGen() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const resArray = new Array(); for await (let item of client.cloudHsmClusters.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersListBySubscriptionSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersListBySubscriptionSample.ts index dc79fb81adb4..ee4a43206afe 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersListBySubscriptionSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The List operation gets information about the Cloud HSM Clusters associated with the subscription. * * @summary The List operation gets information about the Cloud HSM Clusters associated with the subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_ListBySubscription_MaximumSet_Gen.json */ async function cloudHsmClusterListBySubscriptionMaximumSetGen() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersRestoreSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersRestoreSample.ts new file mode 100644 index 000000000000..db2557e8db2d --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersRestoreSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RestoreRequestProperties, + AzureHSMResourceProvider, +} from "@azure/arm-hardwaresecuritymodules"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Restores all key materials of a specified Cloud HSM Cluster + * + * @summary Restores all key materials of a specified Cloud HSM Cluster + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_RequestOrValidate_Restore_MaximumSet_Gen.json + */ +async function cloudHsmClusterRestoreMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const restoreRequestProperties: RestoreRequestProperties = { + azureStorageBlobContainerUri: + "https://myaccount.blob.core.windows.net/sascontainer/sasContainer", + backupId: "backupId", + }; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusters.beginRestoreAndWait( + resourceGroupName, + cloudHsmClusterName, + restoreRequestProperties, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterRestoreMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersUpdateSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersUpdateSample.ts index 70a475a9e13f..5eaf3c2e886b 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersUpdateSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CloudHsmClustersUpdateOptionalParams, - AzureHSMResourceProvider + AzureHSMResourceProvider, } from "@azure/arm-hardwaresecuritymodules"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a Cloud HSM Cluster in the specified subscription. * * @summary Update a Cloud HSM Cluster in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Update_MaximumSet_Gen.json */ async function cloudHsmClusterUpdateMaximumSetGen() { const subscriptionId = @@ -34,8 +34,9 @@ async function cloudHsmClusterUpdateMaximumSetGen() { const identity = { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/contosoResources/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": {} - } + "/subscriptions/00000000000000000000000000000000/resourceGroups/contosoResources/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": + {}, + }, }; const options: CloudHsmClustersUpdateOptionalParams = { tags, identity }; const credential = new DefaultAzureCredential(); @@ -43,7 +44,7 @@ async function cloudHsmClusterUpdateMaximumSetGen() { const result = await client.cloudHsmClusters.beginUpdateAndWait( resourceGroupName, cloudHsmClusterName, - options + options, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersValidateBackupPropertiesSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersValidateBackupPropertiesSample.ts new file mode 100644 index 000000000000..51e06d582d5b --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersValidateBackupPropertiesSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AzureHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription. + * + * @summary Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription. + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrValidate_Backup_MaximumSet_Gen.json + */ +async function cloudHsmClusterValidateBackupValidationMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = + await client.cloudHsmClusters.beginValidateBackupPropertiesAndWait( + resourceGroupName, + cloudHsmClusterName, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterValidateBackupValidationMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersValidateRestorePropertiesSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersValidateRestorePropertiesSample.ts new file mode 100644 index 000000000000..b71dbb905916 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/cloudHsmClustersValidateRestorePropertiesSample.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RestoreRequestProperties, + CloudHsmClustersValidateRestorePropertiesOptionalParams, + AzureHSMResourceProvider, +} from "@azure/arm-hardwaresecuritymodules"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Queued validating pre restore operation + * + * @summary Queued validating pre restore operation + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_RequestOrValidate_Restore_MaximumSet_Gen.json + */ +async function cloudHsmClusterValidateRestoreMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const restoreRequestProperties: RestoreRequestProperties = { + azureStorageBlobContainerUri: + "https://myaccount.blob.core.windows.net/sascontainer/sasContainer", + backupId: "backupId", + }; + const options: CloudHsmClustersValidateRestorePropertiesOptionalParams = { + restoreRequestProperties, + }; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = + await client.cloudHsmClusters.beginValidateRestorePropertiesAndWait( + resourceGroupName, + cloudHsmClusterName, + options, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterValidateRestoreMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmCreateOrUpdateSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmCreateOrUpdateSample.ts index 3f97b4ae7584..3a342427b738 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmCreateOrUpdateSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHsm, - AzureHSMResourceProvider + AzureHSMResourceProvider, } from "@azure/arm-hardwaresecuritymodules"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update a dedicated HSM in the specified subscription. * * @summary Create or Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_CreateOrUpdate.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_CreateOrUpdate.json */ async function createANewOrUpdateAnExistingDedicatedHsm() { const subscriptionId = @@ -35,20 +35,20 @@ async function createANewOrUpdateAnExistingDedicatedHsm() { networkProfile: { networkInterfaces: [{ privateIpAddress: "1.0.0.1" }], subnet: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01" - } + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", + }, }, sku: { name: "SafeNet Luna Network HSM A790" }, stampId: "stamp01", - tags: { dept: "hsm", environment: "dogfood" } + tags: { dept: "hsm", environment: "dogfood" }, }; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.beginCreateOrUpdateAndWait( resourceGroupName, name, - parameters + parameters, ); console.log(result); } @@ -57,7 +57,7 @@ async function createANewOrUpdateAnExistingDedicatedHsm() { * This sample demonstrates how to Create or Update a dedicated HSM in the specified subscription. * * @summary Create or Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_CreateOrUpdate.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_CreateOrUpdate.json */ async function createANewOrUpdateAnExistingPaymentHsm() { const subscriptionId = @@ -71,20 +71,20 @@ async function createANewOrUpdateAnExistingPaymentHsm() { networkProfile: { networkInterfaces: [{ privateIpAddress: "1.0.0.1" }], subnet: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01" - } + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", + }, }, sku: { name: "payShield10K_LMK1_CPS60" }, stampId: "stamp01", - tags: { dept: "hsm", environment: "dogfood" } + tags: { dept: "hsm", environment: "dogfood" }, }; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.beginCreateOrUpdateAndWait( resourceGroupName, name, - parameters + parameters, ); console.log(result); } @@ -93,7 +93,7 @@ async function createANewOrUpdateAnExistingPaymentHsm() { * This sample demonstrates how to Create or Update a dedicated HSM in the specified subscription. * * @summary Create or Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_CreateOrUpdate_WithManagementProfile.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_CreateOrUpdate_WithManagementProfile.json */ async function createANewOrUpdateAnExistingPaymentHsmWithManagementProfile() { const subscriptionId = @@ -107,27 +107,27 @@ async function createANewOrUpdateAnExistingPaymentHsmWithManagementProfile() { managementNetworkProfile: { networkInterfaces: [{ privateIpAddress: "1.0.0.2" }], subnet: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01" - } + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", + }, }, networkProfile: { networkInterfaces: [{ privateIpAddress: "1.0.0.1" }], subnet: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01" - } + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", + }, }, sku: { name: "payShield10K_LMK1_CPS60" }, stampId: "stamp01", - tags: { dept: "hsm", environment: "dogfood" } + tags: { dept: "hsm", environment: "dogfood" }, }; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.beginCreateOrUpdateAndWait( resourceGroupName, name, - parameters + parameters, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmDeleteSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmDeleteSample.ts index 0769b78971c9..f664b377abac 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmDeleteSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Azure Dedicated HSM. * * @summary Deletes the specified Azure Dedicated HSM. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Delete.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Delete.json */ async function deleteADedicatedHsm() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteADedicatedHsm() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.beginDeleteAndWait( resourceGroupName, - name + name, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmGetSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmGetSample.ts index 3de06c720b51..2df1b9876d10 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmGetSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Azure dedicated HSM. * * @summary Gets the specified Azure dedicated HSM. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Get.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Get.json */ async function getADedicatedHsm() { const subscriptionId = @@ -31,7 +31,7 @@ async function getADedicatedHsm() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.get( resourceGroupName, - name + name, ); console.log(result); } @@ -40,7 +40,7 @@ async function getADedicatedHsm() { * This sample demonstrates how to Gets the specified Azure dedicated HSM. * * @summary Gets the specified Azure dedicated HSM. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_Get.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_Get.json */ async function getAPaymentHsm() { const subscriptionId = @@ -53,7 +53,7 @@ async function getAPaymentHsm() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.get( resourceGroupName, - name + name, ); console.log(result); } @@ -62,7 +62,7 @@ async function getAPaymentHsm() { * This sample demonstrates how to Gets the specified Azure dedicated HSM. * * @summary Gets the specified Azure dedicated HSM. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_Get_With_2018-10-31Preview_Version.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_Get_With_2018-10-31Preview_Version.json */ async function getAPaymentHsmWith20181031PreviewApiVersion() { const subscriptionId = @@ -75,7 +75,7 @@ async function getAPaymentHsmWith20181031PreviewApiVersion() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.get( resourceGroupName, - name + name, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmListByResourceGroupSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmListByResourceGroupSample.ts index 3616b82ed5f0..1a9bbaab95ec 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmListByResourceGroupSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. * * @summary The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_ListByResourceGroup.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_ListByResourceGroup.json */ async function listDedicatedHsmDevicesInAResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listDedicatedHsmDevicesInAResourceGroup() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const resArray = new Array(); for await (let item of client.dedicatedHsmOperations.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -41,7 +41,7 @@ async function listDedicatedHsmDevicesInAResourceGroup() { * This sample demonstrates how to The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. * * @summary The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_ListByResourceGroup.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_ListByResourceGroup.json */ async function listDedicatedHsmDevicesInAResourceGroupIncludingPaymentHsm() { const subscriptionId = @@ -53,7 +53,7 @@ async function listDedicatedHsmDevicesInAResourceGroupIncludingPaymentHsm() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const resArray = new Array(); for await (let item of client.dedicatedHsmOperations.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmListBySubscriptionSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmListBySubscriptionSample.ts index 8dbe9e692b59..f490109654e5 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmListBySubscriptionSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The List operation gets information about the dedicated HSMs associated with the subscription. * * @summary The List operation gets information about the dedicated HSMs associated with the subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_ListBySubscription.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_ListBySubscription.json */ async function listDedicatedHsmDevicesInASubscription() { const subscriptionId = @@ -37,7 +37,7 @@ async function listDedicatedHsmDevicesInASubscription() { * This sample demonstrates how to The List operation gets information about the dedicated HSMs associated with the subscription. * * @summary The List operation gets information about the dedicated HSMs associated with the subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_ListBySubscription.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_ListBySubscription.json */ async function listDedicatedHsmDevicesInASubscriptionIncludingPaymentHsm() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.ts index ac7f75faca85..550d752071d0 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint. * * @summary Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/GetOutboundNetworkDependenciesEndpointsList.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/GetOutboundNetworkDependenciesEndpointsList.json */ async function listOutboundNetworkDependenciesEndpointsByManagedCluster() { const subscriptionId = @@ -32,7 +32,7 @@ async function listOutboundNetworkDependenciesEndpointsByManagedCluster() { const resArray = new Array(); for await (let item of client.dedicatedHsmOperations.listOutboundNetworkDependenciesEndpoints( resourceGroupName, - name + name, )) { resArray.push(item); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmUpdateSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmUpdateSample.ts index 0bc04cf0f6c8..a5ebb2c7cdb5 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmUpdateSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/dedicatedHsmUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHsmUpdateOptionalParams, - AzureHSMResourceProvider + AzureHSMResourceProvider, } from "@azure/arm-hardwaresecuritymodules"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a dedicated HSM in the specified subscription. * * @summary Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Update.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Update.json */ async function updateAnExistingDedicatedHsm() { const subscriptionId = @@ -37,7 +37,7 @@ async function updateAnExistingDedicatedHsm() { const result = await client.dedicatedHsmOperations.beginUpdateAndWait( resourceGroupName, name, - options + options, ); console.log(result); } @@ -46,7 +46,7 @@ async function updateAnExistingDedicatedHsm() { * This sample demonstrates how to Update a dedicated HSM in the specified subscription. * * @summary Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_Update.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_Update.json */ async function updateAnExistingPaymentHsm() { const subscriptionId = @@ -62,7 +62,7 @@ async function updateAnExistingPaymentHsm() { const result = await client.dedicatedHsmOperations.beginUpdateAndWait( resourceGroupName, name, - options + options, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/operationsListSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/operationsListSample.ts index d362324f525a..272191bacf6e 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/operationsListSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/operationsListSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Get a list of Dedicated HSM operations. + * This sample demonstrates how to Get a list of Hardware Security Modules operations. * - * @summary Get a list of Dedicated HSM operations. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_OperationsList.json + * @summary Get a list of Hardware Security Modules operations. + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/OperationsList.json */ async function getAListOfDedicatedHsmOperations() { const subscriptionId = @@ -34,10 +34,10 @@ async function getAListOfDedicatedHsmOperations() { } /** - * This sample demonstrates how to Get a list of Dedicated HSM operations. + * This sample demonstrates how to Get a list of Hardware Security Modules operations. * - * @summary Get a list of Dedicated HSM operations. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_OperationsList.json + * @summary Get a list of Hardware Security Modules operations. + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/OperationsList.json */ async function getAListOfPaymentHsmOperations() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.ts index cef91d6ca660..d03d392931e2 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The List operation gets information about the private endpoint connections associated with the Cloud HSM Cluster * * @summary The List operation gets information about the private endpoint connections associated with the Cloud HSM Cluster - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_ListByCloudHsmCluster_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_ListByCloudHsmCluster_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateEndpointConnectionListByResourceMaximumSetGen() { const subscriptionId = @@ -32,7 +32,7 @@ async function cloudHsmClusterPrivateEndpointConnectionListByResourceMaximumSetG const resArray = new Array(); for await (let item of client.privateEndpointConnections.listByCloudHsmCluster( resourceGroupName, - cloudHsmClusterName + cloudHsmClusterName, )) { resArray.push(item); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/README.md b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/README.md index 112fe07ff7be..03c3db812c57 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/README.md +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/README.md @@ -2,27 +2,33 @@ These sample programs show how to use the JavaScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ----------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [cloudHsmClusterPrivateEndpointConnectionsCreateSample.js][cloudhsmclusterprivateendpointconnectionscreatesample] | Creates or updates the private endpoint connection for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Create_MaximumSet_Gen.json | -| [cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js][cloudhsmclusterprivateendpointconnectionsdeletesample] | Deletes the private endpoint connection for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Delete_MaximumSet_Gen.json | -| [cloudHsmClusterPrivateEndpointConnectionsGetSample.js][cloudhsmclusterprivateendpointconnectionsgetsample] | Gets the private endpoint connection for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Get_MaximumSet_Gen.json | -| [cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js][cloudhsmclusterprivatelinkresourceslistbycloudhsmclustersample] | Gets the private link resources supported for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateLinkResource_ListByCloudHsmCluster_MaximumSet_Gen.json | -| [cloudHsmClustersCreateOrUpdateSample.js][cloudhsmclusterscreateorupdatesample] | Create or Update a Cloud HSM Cluster in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_CreateOrUpdate_MaximumSet_Gen.json | -| [cloudHsmClustersDeleteSample.js][cloudhsmclustersdeletesample] | Deletes the specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Delete_MaximumSet_Gen.json | -| [cloudHsmClustersGetSample.js][cloudhsmclustersgetsample] | Gets the specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Get_MaximumSet_Gen.json | -| [cloudHsmClustersListByResourceGroupSample.js][cloudhsmclusterslistbyresourcegroupsample] | The List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_ListByResourceGroup_MaximumSet_Gen.json | -| [cloudHsmClustersListBySubscriptionSample.js][cloudhsmclusterslistbysubscriptionsample] | The List operation gets information about the Cloud HSM Clusters associated with the subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_ListBySubscription_MaximumSet_Gen.json | -| [cloudHsmClustersUpdateSample.js][cloudhsmclustersupdatesample] | Update a Cloud HSM Cluster in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Update_MaximumSet_Gen.json | -| [dedicatedHsmCreateOrUpdateSample.js][dedicatedhsmcreateorupdatesample] | Create or Update a dedicated HSM in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_CreateOrUpdate.json | -| [dedicatedHsmDeleteSample.js][dedicatedhsmdeletesample] | Deletes the specified Azure Dedicated HSM. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Delete.json | -| [dedicatedHsmGetSample.js][dedicatedhsmgetsample] | Gets the specified Azure dedicated HSM. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Get.json | -| [dedicatedHsmListByResourceGroupSample.js][dedicatedhsmlistbyresourcegroupsample] | The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_ListByResourceGroup.json | -| [dedicatedHsmListBySubscriptionSample.js][dedicatedhsmlistbysubscriptionsample] | The List operation gets information about the dedicated HSMs associated with the subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_ListBySubscription.json | -| [dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js][dedicatedhsmlistoutboundnetworkdependenciesendpointssample] | Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/GetOutboundNetworkDependenciesEndpointsList.json | -| [dedicatedHsmUpdateSample.js][dedicatedhsmupdatesample] | Update a dedicated HSM in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Update.json | -| [operationsListSample.js][operationslistsample] | Get a list of Dedicated HSM operations. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_OperationsList.json | -| [privateEndpointConnectionsListByCloudHsmClusterSample.js][privateendpointconnectionslistbycloudhsmclustersample] | The List operation gets information about the private endpoint connections associated with the Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_ListByCloudHsmCluster_MaximumSet_Gen.json | +| **File Name** | **Description** | +| ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [cloudHsmClusterBackupStatusGetSample.js][cloudhsmclusterbackupstatusgetsample] | Gets the backup operation status of the specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Backup_Pending_MaximumSet_Gen.json | +| [cloudHsmClusterPrivateEndpointConnectionsCreateSample.js][cloudhsmclusterprivateendpointconnectionscreatesample] | Creates or updates the private endpoint connection for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Create_MaximumSet_Gen.json | +| [cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js][cloudhsmclusterprivateendpointconnectionsdeletesample] | Deletes the private endpoint connection for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Delete_MaximumSet_Gen.json | +| [cloudHsmClusterPrivateEndpointConnectionsGetSample.js][cloudhsmclusterprivateendpointconnectionsgetsample] | Gets the private endpoint connection for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Get_MaximumSet_Gen.json | +| [cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js][cloudhsmclusterprivatelinkresourceslistbycloudhsmclustersample] | Gets the private link resources supported for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateLinkResource_ListByCloudHsmCluster_MaximumSet_Gen.json | +| [cloudHsmClusterRestoreStatusGetSample.js][cloudhsmclusterrestorestatusgetsample] | Gets the restore operation status of the specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Restore_Pending_MaximumSet_Gen.json | +| [cloudHsmClustersBackupSample.js][cloudhsmclustersbackupsample] | Create a backup of the Cloud HSM Cluster in the specified subscription x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrValidate_Backup_MaximumSet_Gen.json | +| [cloudHsmClustersCreateOrUpdateSample.js][cloudhsmclusterscreateorupdatesample] | Create or Update a Cloud HSM Cluster in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrUpdate_MaximumSet_Gen.json | +| [cloudHsmClustersDeleteSample.js][cloudhsmclustersdeletesample] | Deletes the specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Delete_MaximumSet_Gen.json | +| [cloudHsmClustersGetSample.js][cloudhsmclustersgetsample] | Gets the specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Get_MaximumSet_Gen.json | +| [cloudHsmClustersListByResourceGroupSample.js][cloudhsmclusterslistbyresourcegroupsample] | The List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_ListByResourceGroup_MaximumSet_Gen.json | +| [cloudHsmClustersListBySubscriptionSample.js][cloudhsmclusterslistbysubscriptionsample] | The List operation gets information about the Cloud HSM Clusters associated with the subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_ListBySubscription_MaximumSet_Gen.json | +| [cloudHsmClustersRestoreSample.js][cloudhsmclustersrestoresample] | Restores all key materials of a specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_RequestOrValidate_Restore_MaximumSet_Gen.json | +| [cloudHsmClustersUpdateSample.js][cloudhsmclustersupdatesample] | Update a Cloud HSM Cluster in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Update_MaximumSet_Gen.json | +| [cloudHsmClustersValidateBackupPropertiesSample.js][cloudhsmclustersvalidatebackuppropertiessample] | Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrValidate_Backup_MaximumSet_Gen.json | +| [cloudHsmClustersValidateRestorePropertiesSample.js][cloudhsmclustersvalidaterestorepropertiessample] | Queued validating pre restore operation x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_RequestOrValidate_Restore_MaximumSet_Gen.json | +| [dedicatedHsmCreateOrUpdateSample.js][dedicatedhsmcreateorupdatesample] | Create or Update a dedicated HSM in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_CreateOrUpdate.json | +| [dedicatedHsmDeleteSample.js][dedicatedhsmdeletesample] | Deletes the specified Azure Dedicated HSM. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Delete.json | +| [dedicatedHsmGetSample.js][dedicatedhsmgetsample] | Gets the specified Azure dedicated HSM. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Get.json | +| [dedicatedHsmListByResourceGroupSample.js][dedicatedhsmlistbyresourcegroupsample] | The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_ListByResourceGroup.json | +| [dedicatedHsmListBySubscriptionSample.js][dedicatedhsmlistbysubscriptionsample] | The List operation gets information about the dedicated HSMs associated with the subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_ListBySubscription.json | +| [dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js][dedicatedhsmlistoutboundnetworkdependenciesendpointssample] | Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/GetOutboundNetworkDependenciesEndpointsList.json | +| [dedicatedHsmUpdateSample.js][dedicatedhsmupdatesample] | Update a dedicated HSM in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Update.json | +| [operationsListSample.js][operationslistsample] | Get a list of Hardware Security Modules operations. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/OperationsList.json | +| [privateEndpointConnectionsListByCloudHsmClusterSample.js][privateendpointconnectionslistbycloudhsmclustersample] | The List operation gets information about the private endpoint connections associated with the Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_ListByCloudHsmCluster_MaximumSet_Gen.json | ## Prerequisites @@ -49,29 +55,35 @@ npm install 3. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node cloudHsmClusterPrivateEndpointConnectionsCreateSample.js +node cloudHsmClusterBackupStatusGetSample.js ``` Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx dev-tool run vendored cross-env HARDWARESECURITYMODULES_SUBSCRIPTION_ID="" HARDWARESECURITYMODULES_RESOURCE_GROUP="" node cloudHsmClusterPrivateEndpointConnectionsCreateSample.js +npx dev-tool run vendored cross-env HARDWARESECURITYMODULES_SUBSCRIPTION_ID="" HARDWARESECURITYMODULES_RESOURCE_GROUP="" node cloudHsmClusterBackupStatusGetSample.js ``` ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. +[cloudhsmclusterbackupstatusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterBackupStatusGetSample.js [cloudhsmclusterprivateendpointconnectionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js [cloudhsmclusterprivateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js [cloudhsmclusterprivateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsGetSample.js [cloudhsmclusterprivatelinkresourceslistbycloudhsmclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js +[cloudhsmclusterrestorestatusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterRestoreStatusGetSample.js +[cloudhsmclustersbackupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersBackupSample.js [cloudhsmclusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersCreateOrUpdateSample.js [cloudhsmclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersDeleteSample.js [cloudhsmclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersGetSample.js [cloudhsmclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersListByResourceGroupSample.js [cloudhsmclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersListBySubscriptionSample.js +[cloudhsmclustersrestoresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersRestoreSample.js [cloudhsmclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersUpdateSample.js +[cloudhsmclustersvalidatebackuppropertiessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersValidateBackupPropertiesSample.js +[cloudhsmclustersvalidaterestorepropertiessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersValidateRestorePropertiesSample.js [dedicatedhsmcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmCreateOrUpdateSample.js [dedicatedhsmdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmDeleteSample.js [dedicatedhsmgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmGetSample.js diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterBackupStatusGetSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterBackupStatusGetSample.js new file mode 100644 index 000000000000..c4bc3d2310e6 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterBackupStatusGetSample.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { AzureHSMResourceProvider } = require("@azure/arm-hardwaresecuritymodules"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the backup operation status of the specified Cloud HSM Cluster + * + * @summary Gets the backup operation status of the specified Cloud HSM Cluster + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Backup_Pending_MaximumSet_Gen.json + */ +async function cloudHsmClusterGetBackupStatusMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const jobId = "572a45927fc240e1ac075de27371680b"; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusterBackupStatus.get( + resourceGroupName, + cloudHsmClusterName, + jobId, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterGetBackupStatusMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js index 92d3c52e1371..28dfaba8cebf 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates the private endpoint connection for the Cloud Hsm Cluster. * * @summary Creates or updates the private endpoint connection for the Cloud Hsm Cluster. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Create_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Create_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateEndpointConnectionCreateMaximumSetGen() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js index f7c8e116ecf5..87d488429d5e 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the private endpoint connection for the Cloud Hsm Cluster. * * @summary Deletes the private endpoint connection for the Cloud Hsm Cluster. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Delete_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateEndpointConnectionDeleteMaximumSetGen() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsGetSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsGetSample.js index 7a5cfaf28df9..4d5ad960e10c 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsGetSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateEndpointConnectionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the private endpoint connection for the Cloud Hsm Cluster. * * @summary Gets the private endpoint connection for the Cloud Hsm Cluster. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Get_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateEndpointConnectionGetMaximumSetGen() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js index 2882e7b33342..1a5c1f1bb460 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the private link resources supported for the Cloud Hsm Cluster. * * @summary Gets the private link resources supported for the Cloud Hsm Cluster. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateLinkResource_ListByCloudHsmCluster_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateLinkResource_ListByCloudHsmCluster_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateLinkResourcesListByResourceMaximumSetGen() { const subscriptionId = @@ -26,11 +26,14 @@ async function cloudHsmClusterPrivateLinkResourcesListByResourceMaximumSetGen() const cloudHsmClusterName = "chsm1"; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); - const result = await client.cloudHsmClusterPrivateLinkResources.listByCloudHsmCluster( + const resArray = new Array(); + for await (let item of client.cloudHsmClusterPrivateLinkResources.listByCloudHsmCluster( resourceGroupName, cloudHsmClusterName, - ); - console.log(result); + )) { + resArray.push(item); + } + console.log(resArray); } async function main() { diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterRestoreStatusGetSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterRestoreStatusGetSample.js new file mode 100644 index 000000000000..7eac68c0d0d2 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClusterRestoreStatusGetSample.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { AzureHSMResourceProvider } = require("@azure/arm-hardwaresecuritymodules"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the restore operation status of the specified Cloud HSM Cluster + * + * @summary Gets the restore operation status of the specified Cloud HSM Cluster + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Restore_Pending_MaximumSet_Gen.json + */ +async function cloudHsmClusterGetRestoreStatusMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const jobId = "572a45927fc240e1ac075de27371680b"; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusterRestoreStatus.get( + resourceGroupName, + cloudHsmClusterName, + jobId, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterGetRestoreStatusMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersBackupSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersBackupSample.js new file mode 100644 index 000000000000..3e41aeae7a51 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersBackupSample.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { AzureHSMResourceProvider } = require("@azure/arm-hardwaresecuritymodules"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create a backup of the Cloud HSM Cluster in the specified subscription + * + * @summary Create a backup of the Cloud HSM Cluster in the specified subscription + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrValidate_Backup_MaximumSet_Gen.json + */ +async function cloudHsmClusterCreateBackupMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusters.beginBackupAndWait( + resourceGroupName, + cloudHsmClusterName, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterCreateBackupMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersCreateOrUpdateSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersCreateOrUpdateSample.js index e0ec19e87013..535bfc7ce05d 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersCreateOrUpdateSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or Update a Cloud HSM Cluster in the specified subscription. * * @summary Create or Update a Cloud HSM Cluster in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrUpdate_MaximumSet_Gen.json */ async function cloudHsmClusterCreateOrUpdateMaximumSetGen() { const subscriptionId = @@ -26,7 +26,6 @@ async function cloudHsmClusterCreateOrUpdateMaximumSetGen() { const cloudHsmClusterName = "chsm1"; const tags = { dept: "hsm", environment: "dogfood" }; const location = "eastus2"; - const sku = { name: "Standard_B1", family: "B" }; const identity = { type: "UserAssigned", userAssignedIdentities: { @@ -34,10 +33,11 @@ async function cloudHsmClusterCreateOrUpdateMaximumSetGen() { {}, }, }; + const sku = { name: "Standard_B1", family: "B" }; const options = { tags, - sku, identity, + sku, }; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersDeleteSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersDeleteSample.js index d753bd6d4d6c..3047aefcb6c7 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersDeleteSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified Cloud HSM Cluster * * @summary Deletes the specified Cloud HSM Cluster - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Delete_MaximumSet_Gen.json */ async function cloudHsmClusterDeleteMaximumSetGen() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersGetSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersGetSample.js index 769ee245f8e7..db3039ffd091 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersGetSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the specified Cloud HSM Cluster * * @summary Gets the specified Cloud HSM Cluster - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Get_MaximumSet_Gen.json */ async function cloudHsmClusterGetMaximumSetGen() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersListByResourceGroupSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersListByResourceGroupSample.js index afc547233d07..0b94860ea003 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersListByResourceGroupSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group. * * @summary The List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_ListByResourceGroup_MaximumSet_Gen.json */ async function cloudHsmClusterListByResourceGroupMaximumSetGen() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersListBySubscriptionSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersListBySubscriptionSample.js index 37b2e03dc602..1e1500842000 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersListBySubscriptionSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The List operation gets information about the Cloud HSM Clusters associated with the subscription. * * @summary The List operation gets information about the Cloud HSM Clusters associated with the subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_ListBySubscription_MaximumSet_Gen.json */ async function cloudHsmClusterListBySubscriptionMaximumSetGen() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersRestoreSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersRestoreSample.js new file mode 100644 index 000000000000..e5704fe76222 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersRestoreSample.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { AzureHSMResourceProvider } = require("@azure/arm-hardwaresecuritymodules"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Restores all key materials of a specified Cloud HSM Cluster + * + * @summary Restores all key materials of a specified Cloud HSM Cluster + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_RequestOrValidate_Restore_MaximumSet_Gen.json + */ +async function cloudHsmClusterRestoreMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const restoreRequestProperties = { + azureStorageBlobContainerUri: + "https://myaccount.blob.core.windows.net/sascontainer/sasContainer", + backupId: "backupId", + }; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusters.beginRestoreAndWait( + resourceGroupName, + cloudHsmClusterName, + restoreRequestProperties, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterRestoreMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersUpdateSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersUpdateSample.js index 32feeb37f31d..076297eff1fb 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersUpdateSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update a Cloud HSM Cluster in the specified subscription. * * @summary Update a Cloud HSM Cluster in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Update_MaximumSet_Gen.json */ async function cloudHsmClusterUpdateMaximumSetGen() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersValidateBackupPropertiesSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersValidateBackupPropertiesSample.js new file mode 100644 index 000000000000..2b6b6bc57a95 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersValidateBackupPropertiesSample.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { AzureHSMResourceProvider } = require("@azure/arm-hardwaresecuritymodules"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription. + * + * @summary Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription. + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrValidate_Backup_MaximumSet_Gen.json + */ +async function cloudHsmClusterValidateBackupValidationMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusters.beginValidateBackupPropertiesAndWait( + resourceGroupName, + cloudHsmClusterName, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterValidateBackupValidationMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersValidateRestorePropertiesSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersValidateRestorePropertiesSample.js new file mode 100644 index 000000000000..d4c8bf5a6631 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/cloudHsmClustersValidateRestorePropertiesSample.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { AzureHSMResourceProvider } = require("@azure/arm-hardwaresecuritymodules"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Queued validating pre restore operation + * + * @summary Queued validating pre restore operation + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_RequestOrValidate_Restore_MaximumSet_Gen.json + */ +async function cloudHsmClusterValidateRestoreMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const restoreRequestProperties = { + azureStorageBlobContainerUri: + "https://myaccount.blob.core.windows.net/sascontainer/sasContainer", + backupId: "backupId", + }; + const options = { + restoreRequestProperties, + }; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusters.beginValidateRestorePropertiesAndWait( + resourceGroupName, + cloudHsmClusterName, + options, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterValidateRestoreMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmCreateOrUpdateSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmCreateOrUpdateSample.js index 4407f4eeadc7..12d79b98708e 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmCreateOrUpdateSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or Update a dedicated HSM in the specified subscription. * * @summary Create or Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_CreateOrUpdate.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_CreateOrUpdate.json */ async function createANewOrUpdateAnExistingDedicatedHsm() { const subscriptionId = @@ -29,7 +29,8 @@ async function createANewOrUpdateAnExistingDedicatedHsm() { networkProfile: { networkInterfaces: [{ privateIpAddress: "1.0.0.1" }], subnet: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", }, }, sku: { name: "SafeNet Luna Network HSM A790" }, @@ -50,7 +51,7 @@ async function createANewOrUpdateAnExistingDedicatedHsm() { * This sample demonstrates how to Create or Update a dedicated HSM in the specified subscription. * * @summary Create or Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_CreateOrUpdate.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_CreateOrUpdate.json */ async function createANewOrUpdateAnExistingPaymentHsm() { const subscriptionId = @@ -63,7 +64,8 @@ async function createANewOrUpdateAnExistingPaymentHsm() { networkProfile: { networkInterfaces: [{ privateIpAddress: "1.0.0.1" }], subnet: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", }, }, sku: { name: "payShield10K_LMK1_CPS60" }, @@ -84,7 +86,7 @@ async function createANewOrUpdateAnExistingPaymentHsm() { * This sample demonstrates how to Create or Update a dedicated HSM in the specified subscription. * * @summary Create or Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_CreateOrUpdate_WithManagementProfile.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_CreateOrUpdate_WithManagementProfile.json */ async function createANewOrUpdateAnExistingPaymentHsmWithManagementProfile() { const subscriptionId = @@ -97,13 +99,15 @@ async function createANewOrUpdateAnExistingPaymentHsmWithManagementProfile() { managementNetworkProfile: { networkInterfaces: [{ privateIpAddress: "1.0.0.2" }], subnet: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", }, }, networkProfile: { networkInterfaces: [{ privateIpAddress: "1.0.0.1" }], subnet: { - id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", }, }, sku: { name: "payShield10K_LMK1_CPS60" }, diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmDeleteSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmDeleteSample.js index 66d5e7864035..1f0302deae57 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmDeleteSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified Azure Dedicated HSM. * * @summary Deletes the specified Azure Dedicated HSM. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Delete.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Delete.json */ async function deleteADedicatedHsm() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmGetSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmGetSample.js index b99954e460b8..567237fae4b7 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmGetSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the specified Azure dedicated HSM. * * @summary Gets the specified Azure dedicated HSM. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Get.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Get.json */ async function getADedicatedHsm() { const subscriptionId = @@ -34,7 +34,7 @@ async function getADedicatedHsm() { * This sample demonstrates how to Gets the specified Azure dedicated HSM. * * @summary Gets the specified Azure dedicated HSM. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_Get.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_Get.json */ async function getAPaymentHsm() { const subscriptionId = @@ -52,7 +52,7 @@ async function getAPaymentHsm() { * This sample demonstrates how to Gets the specified Azure dedicated HSM. * * @summary Gets the specified Azure dedicated HSM. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_Get_With_2018-10-31Preview_Version.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_Get_With_2018-10-31Preview_Version.json */ async function getAPaymentHsmWith20181031PreviewApiVersion() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmListByResourceGroupSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmListByResourceGroupSample.js index 3f77d1120c05..09642d47faee 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmListByResourceGroupSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. * * @summary The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_ListByResourceGroup.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_ListByResourceGroup.json */ async function listDedicatedHsmDevicesInAResourceGroup() { const subscriptionId = @@ -36,7 +36,7 @@ async function listDedicatedHsmDevicesInAResourceGroup() { * This sample demonstrates how to The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. * * @summary The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_ListByResourceGroup.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_ListByResourceGroup.json */ async function listDedicatedHsmDevicesInAResourceGroupIncludingPaymentHsm() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmListBySubscriptionSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmListBySubscriptionSample.js index 838d88986a10..c7a69640fe9f 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmListBySubscriptionSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The List operation gets information about the dedicated HSMs associated with the subscription. * * @summary The List operation gets information about the dedicated HSMs associated with the subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_ListBySubscription.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_ListBySubscription.json */ async function listDedicatedHsmDevicesInASubscription() { const subscriptionId = @@ -35,7 +35,7 @@ async function listDedicatedHsmDevicesInASubscription() { * This sample demonstrates how to The List operation gets information about the dedicated HSMs associated with the subscription. * * @summary The List operation gets information about the dedicated HSMs associated with the subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_ListBySubscription.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_ListBySubscription.json */ async function listDedicatedHsmDevicesInASubscriptionIncludingPaymentHsm() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js index bc505100b605..3ee74560d85e 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint. * * @summary Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/GetOutboundNetworkDependenciesEndpointsList.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/GetOutboundNetworkDependenciesEndpointsList.json */ async function listOutboundNetworkDependenciesEndpointsByManagedCluster() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmUpdateSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmUpdateSample.js index 5227a75a3502..fbf83ade0a44 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmUpdateSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/dedicatedHsmUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update a dedicated HSM in the specified subscription. * * @summary Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Update.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Update.json */ async function updateAnExistingDedicatedHsm() { const subscriptionId = @@ -40,7 +40,7 @@ async function updateAnExistingDedicatedHsm() { * This sample demonstrates how to Update a dedicated HSM in the specified subscription. * * @summary Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_Update.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_Update.json */ async function updateAnExistingPaymentHsm() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/operationsListSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/operationsListSample.js index 46701b4547e0..8e775695a539 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/operationsListSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/operationsListSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Get a list of Dedicated HSM operations. + * This sample demonstrates how to Get a list of Hardware Security Modules operations. * - * @summary Get a list of Dedicated HSM operations. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_OperationsList.json + * @summary Get a list of Hardware Security Modules operations. + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/OperationsList.json */ async function getAListOfDedicatedHsmOperations() { const subscriptionId = @@ -32,10 +32,10 @@ async function getAListOfDedicatedHsmOperations() { } /** - * This sample demonstrates how to Get a list of Dedicated HSM operations. + * This sample demonstrates how to Get a list of Hardware Security Modules operations. * - * @summary Get a list of Dedicated HSM operations. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_OperationsList.json + * @summary Get a list of Hardware Security Modules operations. + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/OperationsList.json */ async function getAListOfPaymentHsmOperations() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/privateEndpointConnectionsListByCloudHsmClusterSample.js b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/privateEndpointConnectionsListByCloudHsmClusterSample.js index 32e6cb214feb..e07d2422a746 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/privateEndpointConnectionsListByCloudHsmClusterSample.js +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/javascript/privateEndpointConnectionsListByCloudHsmClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The List operation gets information about the private endpoint connections associated with the Cloud HSM Cluster * * @summary The List operation gets information about the private endpoint connections associated with the Cloud HSM Cluster - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_ListByCloudHsmCluster_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_ListByCloudHsmCluster_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateEndpointConnectionListByResourceMaximumSetGen() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/README.md b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/README.md index f7a7841231ce..a18df5d46080 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/README.md +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/README.md @@ -2,27 +2,33 @@ These sample programs show how to use the TypeScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ----------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [cloudHsmClusterPrivateEndpointConnectionsCreateSample.ts][cloudhsmclusterprivateendpointconnectionscreatesample] | Creates or updates the private endpoint connection for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Create_MaximumSet_Gen.json | -| [cloudHsmClusterPrivateEndpointConnectionsDeleteSample.ts][cloudhsmclusterprivateendpointconnectionsdeletesample] | Deletes the private endpoint connection for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Delete_MaximumSet_Gen.json | -| [cloudHsmClusterPrivateEndpointConnectionsGetSample.ts][cloudhsmclusterprivateendpointconnectionsgetsample] | Gets the private endpoint connection for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Get_MaximumSet_Gen.json | -| [cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.ts][cloudhsmclusterprivatelinkresourceslistbycloudhsmclustersample] | Gets the private link resources supported for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateLinkResource_ListByCloudHsmCluster_MaximumSet_Gen.json | -| [cloudHsmClustersCreateOrUpdateSample.ts][cloudhsmclusterscreateorupdatesample] | Create or Update a Cloud HSM Cluster in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_CreateOrUpdate_MaximumSet_Gen.json | -| [cloudHsmClustersDeleteSample.ts][cloudhsmclustersdeletesample] | Deletes the specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Delete_MaximumSet_Gen.json | -| [cloudHsmClustersGetSample.ts][cloudhsmclustersgetsample] | Gets the specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Get_MaximumSet_Gen.json | -| [cloudHsmClustersListByResourceGroupSample.ts][cloudhsmclusterslistbyresourcegroupsample] | The List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_ListByResourceGroup_MaximumSet_Gen.json | -| [cloudHsmClustersListBySubscriptionSample.ts][cloudhsmclusterslistbysubscriptionsample] | The List operation gets information about the Cloud HSM Clusters associated with the subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_ListBySubscription_MaximumSet_Gen.json | -| [cloudHsmClustersUpdateSample.ts][cloudhsmclustersupdatesample] | Update a Cloud HSM Cluster in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Update_MaximumSet_Gen.json | -| [dedicatedHsmCreateOrUpdateSample.ts][dedicatedhsmcreateorupdatesample] | Create or Update a dedicated HSM in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_CreateOrUpdate.json | -| [dedicatedHsmDeleteSample.ts][dedicatedhsmdeletesample] | Deletes the specified Azure Dedicated HSM. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Delete.json | -| [dedicatedHsmGetSample.ts][dedicatedhsmgetsample] | Gets the specified Azure dedicated HSM. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Get.json | -| [dedicatedHsmListByResourceGroupSample.ts][dedicatedhsmlistbyresourcegroupsample] | The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_ListByResourceGroup.json | -| [dedicatedHsmListBySubscriptionSample.ts][dedicatedhsmlistbysubscriptionsample] | The List operation gets information about the dedicated HSMs associated with the subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_ListBySubscription.json | -| [dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.ts][dedicatedhsmlistoutboundnetworkdependenciesendpointssample] | Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/GetOutboundNetworkDependenciesEndpointsList.json | -| [dedicatedHsmUpdateSample.ts][dedicatedhsmupdatesample] | Update a dedicated HSM in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Update.json | -| [operationsListSample.ts][operationslistsample] | Get a list of Dedicated HSM operations. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_OperationsList.json | -| [privateEndpointConnectionsListByCloudHsmClusterSample.ts][privateendpointconnectionslistbycloudhsmclustersample] | The List operation gets information about the private endpoint connections associated with the Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_ListByCloudHsmCluster_MaximumSet_Gen.json | +| **File Name** | **Description** | +| ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [cloudHsmClusterBackupStatusGetSample.ts][cloudhsmclusterbackupstatusgetsample] | Gets the backup operation status of the specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Backup_Pending_MaximumSet_Gen.json | +| [cloudHsmClusterPrivateEndpointConnectionsCreateSample.ts][cloudhsmclusterprivateendpointconnectionscreatesample] | Creates or updates the private endpoint connection for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Create_MaximumSet_Gen.json | +| [cloudHsmClusterPrivateEndpointConnectionsDeleteSample.ts][cloudhsmclusterprivateendpointconnectionsdeletesample] | Deletes the private endpoint connection for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Delete_MaximumSet_Gen.json | +| [cloudHsmClusterPrivateEndpointConnectionsGetSample.ts][cloudhsmclusterprivateendpointconnectionsgetsample] | Gets the private endpoint connection for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Get_MaximumSet_Gen.json | +| [cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.ts][cloudhsmclusterprivatelinkresourceslistbycloudhsmclustersample] | Gets the private link resources supported for the Cloud Hsm Cluster. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateLinkResource_ListByCloudHsmCluster_MaximumSet_Gen.json | +| [cloudHsmClusterRestoreStatusGetSample.ts][cloudhsmclusterrestorestatusgetsample] | Gets the restore operation status of the specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Restore_Pending_MaximumSet_Gen.json | +| [cloudHsmClustersBackupSample.ts][cloudhsmclustersbackupsample] | Create a backup of the Cloud HSM Cluster in the specified subscription x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrValidate_Backup_MaximumSet_Gen.json | +| [cloudHsmClustersCreateOrUpdateSample.ts][cloudhsmclusterscreateorupdatesample] | Create or Update a Cloud HSM Cluster in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrUpdate_MaximumSet_Gen.json | +| [cloudHsmClustersDeleteSample.ts][cloudhsmclustersdeletesample] | Deletes the specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Delete_MaximumSet_Gen.json | +| [cloudHsmClustersGetSample.ts][cloudhsmclustersgetsample] | Gets the specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Get_MaximumSet_Gen.json | +| [cloudHsmClustersListByResourceGroupSample.ts][cloudhsmclusterslistbyresourcegroupsample] | The List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_ListByResourceGroup_MaximumSet_Gen.json | +| [cloudHsmClustersListBySubscriptionSample.ts][cloudhsmclusterslistbysubscriptionsample] | The List operation gets information about the Cloud HSM Clusters associated with the subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_ListBySubscription_MaximumSet_Gen.json | +| [cloudHsmClustersRestoreSample.ts][cloudhsmclustersrestoresample] | Restores all key materials of a specified Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_RequestOrValidate_Restore_MaximumSet_Gen.json | +| [cloudHsmClustersUpdateSample.ts][cloudhsmclustersupdatesample] | Update a Cloud HSM Cluster in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Update_MaximumSet_Gen.json | +| [cloudHsmClustersValidateBackupPropertiesSample.ts][cloudhsmclustersvalidatebackuppropertiessample] | Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrValidate_Backup_MaximumSet_Gen.json | +| [cloudHsmClustersValidateRestorePropertiesSample.ts][cloudhsmclustersvalidaterestorepropertiessample] | Queued validating pre restore operation x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_RequestOrValidate_Restore_MaximumSet_Gen.json | +| [dedicatedHsmCreateOrUpdateSample.ts][dedicatedhsmcreateorupdatesample] | Create or Update a dedicated HSM in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_CreateOrUpdate.json | +| [dedicatedHsmDeleteSample.ts][dedicatedhsmdeletesample] | Deletes the specified Azure Dedicated HSM. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Delete.json | +| [dedicatedHsmGetSample.ts][dedicatedhsmgetsample] | Gets the specified Azure dedicated HSM. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Get.json | +| [dedicatedHsmListByResourceGroupSample.ts][dedicatedhsmlistbyresourcegroupsample] | The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_ListByResourceGroup.json | +| [dedicatedHsmListBySubscriptionSample.ts][dedicatedhsmlistbysubscriptionsample] | The List operation gets information about the dedicated HSMs associated with the subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_ListBySubscription.json | +| [dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.ts][dedicatedhsmlistoutboundnetworkdependenciesendpointssample] | Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/GetOutboundNetworkDependenciesEndpointsList.json | +| [dedicatedHsmUpdateSample.ts][dedicatedhsmupdatesample] | Update a dedicated HSM in the specified subscription. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Update.json | +| [operationsListSample.ts][operationslistsample] | Get a list of Hardware Security Modules operations. x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/OperationsList.json | +| [privateEndpointConnectionsListByCloudHsmClusterSample.ts][privateendpointconnectionslistbycloudhsmclustersample] | The List operation gets information about the private endpoint connections associated with the Cloud HSM Cluster x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_ListByCloudHsmCluster_MaximumSet_Gen.json | ## Prerequisites @@ -61,29 +67,35 @@ npm run build 4. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node dist/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js +node dist/cloudHsmClusterBackupStatusGetSample.js ``` Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx dev-tool run vendored cross-env HARDWARESECURITYMODULES_SUBSCRIPTION_ID="" HARDWARESECURITYMODULES_RESOURCE_GROUP="" node dist/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js +npx dev-tool run vendored cross-env HARDWARESECURITYMODULES_SUBSCRIPTION_ID="" HARDWARESECURITYMODULES_RESOURCE_GROUP="" node dist/cloudHsmClusterBackupStatusGetSample.js ``` ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. +[cloudhsmclusterbackupstatusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterBackupStatusGetSample.ts [cloudhsmclusterprivateendpointconnectionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsCreateSample.ts [cloudhsmclusterprivateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.ts [cloudhsmclusterprivateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsGetSample.ts [cloudhsmclusterprivatelinkresourceslistbycloudhsmclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.ts +[cloudhsmclusterrestorestatusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterRestoreStatusGetSample.ts +[cloudhsmclustersbackupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersBackupSample.ts [cloudhsmclusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersCreateOrUpdateSample.ts [cloudhsmclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersDeleteSample.ts [cloudhsmclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersGetSample.ts [cloudhsmclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersListByResourceGroupSample.ts [cloudhsmclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersListBySubscriptionSample.ts +[cloudhsmclustersrestoresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersRestoreSample.ts [cloudhsmclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersUpdateSample.ts +[cloudhsmclustersvalidatebackuppropertiessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersValidateBackupPropertiesSample.ts +[cloudhsmclustersvalidaterestorepropertiessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersValidateRestorePropertiesSample.ts [dedicatedhsmcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmCreateOrUpdateSample.ts [dedicatedhsmdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmDeleteSample.ts [dedicatedhsmgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmGetSample.ts diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterBackupStatusGetSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterBackupStatusGetSample.ts new file mode 100644 index 000000000000..7cfee1b08405 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterBackupStatusGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AzureHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the backup operation status of the specified Cloud HSM Cluster + * + * @summary Gets the backup operation status of the specified Cloud HSM Cluster + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Backup_Pending_MaximumSet_Gen.json + */ +async function cloudHsmClusterGetBackupStatusMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const jobId = "572a45927fc240e1ac075de27371680b"; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusterBackupStatus.get( + resourceGroupName, + cloudHsmClusterName, + jobId, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterGetBackupStatusMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsCreateSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsCreateSample.ts index f41ebf976f81..90a3d1d1db04 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsCreateSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - AzureHSMResourceProvider + AzureHSMResourceProvider, } from "@azure/arm-hardwaresecuritymodules"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the private endpoint connection for the Cloud Hsm Cluster. * * @summary Creates or updates the private endpoint connection for the Cloud Hsm Cluster. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Create_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Create_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateEndpointConnectionCreateMaximumSetGen() { const subscriptionId = @@ -34,8 +34,8 @@ async function cloudHsmClusterPrivateEndpointConnectionCreateMaximumSetGen() { const properties: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "My name is Joe and I'm approving this.", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); @@ -43,7 +43,7 @@ async function cloudHsmClusterPrivateEndpointConnectionCreateMaximumSetGen() { resourceGroupName, cloudHsmClusterName, peConnectionName, - properties + properties, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.ts index 12628ec7b9d5..2d827c54086c 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the private endpoint connection for the Cloud Hsm Cluster. * * @summary Deletes the private endpoint connection for the Cloud Hsm Cluster. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Delete_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateEndpointConnectionDeleteMaximumSetGen() { const subscriptionId = @@ -30,11 +30,12 @@ async function cloudHsmClusterPrivateEndpointConnectionDeleteMaximumSetGen() { const peConnectionName = "sample-pec"; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); - const result = await client.cloudHsmClusterPrivateEndpointConnections.beginDeleteAndWait( - resourceGroupName, - cloudHsmClusterName, - peConnectionName - ); + const result = + await client.cloudHsmClusterPrivateEndpointConnections.beginDeleteAndWait( + resourceGroupName, + cloudHsmClusterName, + peConnectionName, + ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsGetSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsGetSample.ts index afd73be39e13..44e86bab1528 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsGetSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private endpoint connection for the Cloud Hsm Cluster. * * @summary Gets the private endpoint connection for the Cloud Hsm Cluster. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_Get_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateEndpointConnectionGetMaximumSetGen() { const subscriptionId = @@ -33,7 +33,7 @@ async function cloudHsmClusterPrivateEndpointConnectionGetMaximumSetGen() { const result = await client.cloudHsmClusterPrivateEndpointConnections.get( resourceGroupName, cloudHsmClusterName, - peConnectionName + peConnectionName, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.ts index 4bb3383db7fd..1b959402d91f 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources supported for the Cloud Hsm Cluster. * * @summary Gets the private link resources supported for the Cloud Hsm Cluster. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateLinkResource_ListByCloudHsmCluster_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateLinkResource_ListByCloudHsmCluster_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateLinkResourcesListByResourceMaximumSetGen() { const subscriptionId = @@ -29,11 +29,14 @@ async function cloudHsmClusterPrivateLinkResourcesListByResourceMaximumSetGen() const cloudHsmClusterName = "chsm1"; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); - const result = await client.cloudHsmClusterPrivateLinkResources.listByCloudHsmCluster( + const resArray = new Array(); + for await (let item of client.cloudHsmClusterPrivateLinkResources.listByCloudHsmCluster( resourceGroupName, - cloudHsmClusterName - ); - console.log(result); + cloudHsmClusterName, + )) { + resArray.push(item); + } + console.log(resArray); } async function main() { diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterRestoreStatusGetSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterRestoreStatusGetSample.ts new file mode 100644 index 000000000000..caba331a773d --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClusterRestoreStatusGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AzureHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the restore operation status of the specified Cloud HSM Cluster + * + * @summary Gets the restore operation status of the specified Cloud HSM Cluster + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Restore_Pending_MaximumSet_Gen.json + */ +async function cloudHsmClusterGetRestoreStatusMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const jobId = "572a45927fc240e1ac075de27371680b"; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusterRestoreStatus.get( + resourceGroupName, + cloudHsmClusterName, + jobId, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterGetRestoreStatusMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersBackupSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersBackupSample.ts new file mode 100644 index 000000000000..9d0f6d3d6651 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersBackupSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AzureHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a backup of the Cloud HSM Cluster in the specified subscription + * + * @summary Create a backup of the Cloud HSM Cluster in the specified subscription + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrValidate_Backup_MaximumSet_Gen.json + */ +async function cloudHsmClusterCreateBackupMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusters.beginBackupAndWait( + resourceGroupName, + cloudHsmClusterName, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterCreateBackupMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersCreateOrUpdateSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersCreateOrUpdateSample.ts index 4703402a8023..7875f1db417e 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersCreateOrUpdateSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersCreateOrUpdateSample.ts @@ -11,7 +11,7 @@ import { CloudHsmClustersCreateOrUpdateOptionalParams, AzureHSMResourceProvider, - CloudHsmClusterSku + CloudHsmClusterSku, } from "@azure/arm-hardwaresecuritymodules"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update a Cloud HSM Cluster in the specified subscription. * * @summary Create or Update a Cloud HSM Cluster in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrUpdate_MaximumSet_Gen.json */ async function cloudHsmClusterCreateOrUpdateMaximumSetGen() { const subscriptionId = @@ -33,17 +33,18 @@ async function cloudHsmClusterCreateOrUpdateMaximumSetGen() { const cloudHsmClusterName = "chsm1"; const tags = { dept: "hsm", environment: "dogfood" }; const location = "eastus2"; - const sku: CloudHsmClusterSku = { name: "Standard_B1", family: "B" }; const identity = { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/contosoResources/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": {} - } + "/subscriptions/00000000000000000000000000000000/resourceGroups/contosoResources/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": + {}, + }, }; + const sku: CloudHsmClusterSku = { name: "Standard_B1", family: "B" }; const options: CloudHsmClustersCreateOrUpdateOptionalParams = { tags, + identity, sku, - identity }; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); @@ -51,7 +52,7 @@ async function cloudHsmClusterCreateOrUpdateMaximumSetGen() { resourceGroupName, cloudHsmClusterName, location, - options + options, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersDeleteSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersDeleteSample.ts index 354090618b17..3be5d135f712 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersDeleteSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Cloud HSM Cluster * * @summary Deletes the specified Cloud HSM Cluster - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Delete_MaximumSet_Gen.json */ async function cloudHsmClusterDeleteMaximumSetGen() { const subscriptionId = @@ -31,7 +31,7 @@ async function cloudHsmClusterDeleteMaximumSetGen() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.cloudHsmClusters.beginDeleteAndWait( resourceGroupName, - cloudHsmClusterName + cloudHsmClusterName, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersGetSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersGetSample.ts index 91311f57d238..809bb9ce1b79 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersGetSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Cloud HSM Cluster * * @summary Gets the specified Cloud HSM Cluster - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Get_MaximumSet_Gen.json */ async function cloudHsmClusterGetMaximumSetGen() { const subscriptionId = @@ -31,7 +31,7 @@ async function cloudHsmClusterGetMaximumSetGen() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.cloudHsmClusters.get( resourceGroupName, - cloudHsmClusterName + cloudHsmClusterName, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersListByResourceGroupSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersListByResourceGroupSample.ts index fe78d379b24a..992050e527b4 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersListByResourceGroupSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group. * * @summary The List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_ListByResourceGroup_MaximumSet_Gen.json */ async function cloudHsmClusterListByResourceGroupMaximumSetGen() { const subscriptionId = @@ -30,7 +30,7 @@ async function cloudHsmClusterListByResourceGroupMaximumSetGen() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const resArray = new Array(); for await (let item of client.cloudHsmClusters.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersListBySubscriptionSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersListBySubscriptionSample.ts index dc79fb81adb4..ee4a43206afe 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersListBySubscriptionSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The List operation gets information about the Cloud HSM Clusters associated with the subscription. * * @summary The List operation gets information about the Cloud HSM Clusters associated with the subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_ListBySubscription_MaximumSet_Gen.json */ async function cloudHsmClusterListBySubscriptionMaximumSetGen() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersRestoreSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersRestoreSample.ts new file mode 100644 index 000000000000..db2557e8db2d --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersRestoreSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RestoreRequestProperties, + AzureHSMResourceProvider, +} from "@azure/arm-hardwaresecuritymodules"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Restores all key materials of a specified Cloud HSM Cluster + * + * @summary Restores all key materials of a specified Cloud HSM Cluster + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_RequestOrValidate_Restore_MaximumSet_Gen.json + */ +async function cloudHsmClusterRestoreMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const restoreRequestProperties: RestoreRequestProperties = { + azureStorageBlobContainerUri: + "https://myaccount.blob.core.windows.net/sascontainer/sasContainer", + backupId: "backupId", + }; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = await client.cloudHsmClusters.beginRestoreAndWait( + resourceGroupName, + cloudHsmClusterName, + restoreRequestProperties, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterRestoreMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersUpdateSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersUpdateSample.ts index 70a475a9e13f..5eaf3c2e886b 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersUpdateSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CloudHsmClustersUpdateOptionalParams, - AzureHSMResourceProvider + AzureHSMResourceProvider, } from "@azure/arm-hardwaresecuritymodules"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a Cloud HSM Cluster in the specified subscription. * * @summary Update a Cloud HSM Cluster in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmCluster_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_Update_MaximumSet_Gen.json */ async function cloudHsmClusterUpdateMaximumSetGen() { const subscriptionId = @@ -34,8 +34,9 @@ async function cloudHsmClusterUpdateMaximumSetGen() { const identity = { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/contosoResources/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": {} - } + "/subscriptions/00000000000000000000000000000000/resourceGroups/contosoResources/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity1": + {}, + }, }; const options: CloudHsmClustersUpdateOptionalParams = { tags, identity }; const credential = new DefaultAzureCredential(); @@ -43,7 +44,7 @@ async function cloudHsmClusterUpdateMaximumSetGen() { const result = await client.cloudHsmClusters.beginUpdateAndWait( resourceGroupName, cloudHsmClusterName, - options + options, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersValidateBackupPropertiesSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersValidateBackupPropertiesSample.ts new file mode 100644 index 000000000000..51e06d582d5b --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersValidateBackupPropertiesSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AzureHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription. + * + * @summary Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription. + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_CreateOrValidate_Backup_MaximumSet_Gen.json + */ +async function cloudHsmClusterValidateBackupValidationMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = + await client.cloudHsmClusters.beginValidateBackupPropertiesAndWait( + resourceGroupName, + cloudHsmClusterName, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterValidateBackupValidationMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersValidateRestorePropertiesSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersValidateRestorePropertiesSample.ts new file mode 100644 index 000000000000..b71dbb905916 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/cloudHsmClustersValidateRestorePropertiesSample.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RestoreRequestProperties, + CloudHsmClustersValidateRestorePropertiesOptionalParams, + AzureHSMResourceProvider, +} from "@azure/arm-hardwaresecuritymodules"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Queued validating pre restore operation + * + * @summary Queued validating pre restore operation + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmCluster_RequestOrValidate_Restore_MaximumSet_Gen.json + */ +async function cloudHsmClusterValidateRestoreMaximumSetGen() { + const subscriptionId = + process.env["HARDWARESECURITYMODULES_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["HARDWARESECURITYMODULES_RESOURCE_GROUP"] || "rgcloudhsm"; + const cloudHsmClusterName = "chsm1"; + const restoreRequestProperties: RestoreRequestProperties = { + azureStorageBlobContainerUri: + "https://myaccount.blob.core.windows.net/sascontainer/sasContainer", + backupId: "backupId", + }; + const options: CloudHsmClustersValidateRestorePropertiesOptionalParams = { + restoreRequestProperties, + }; + const credential = new DefaultAzureCredential(); + const client = new AzureHSMResourceProvider(credential, subscriptionId); + const result = + await client.cloudHsmClusters.beginValidateRestorePropertiesAndWait( + resourceGroupName, + cloudHsmClusterName, + options, + ); + console.log(result); +} + +async function main() { + cloudHsmClusterValidateRestoreMaximumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmCreateOrUpdateSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmCreateOrUpdateSample.ts index 3f97b4ae7584..3a342427b738 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmCreateOrUpdateSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHsm, - AzureHSMResourceProvider + AzureHSMResourceProvider, } from "@azure/arm-hardwaresecuritymodules"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update a dedicated HSM in the specified subscription. * * @summary Create or Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_CreateOrUpdate.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_CreateOrUpdate.json */ async function createANewOrUpdateAnExistingDedicatedHsm() { const subscriptionId = @@ -35,20 +35,20 @@ async function createANewOrUpdateAnExistingDedicatedHsm() { networkProfile: { networkInterfaces: [{ privateIpAddress: "1.0.0.1" }], subnet: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01" - } + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", + }, }, sku: { name: "SafeNet Luna Network HSM A790" }, stampId: "stamp01", - tags: { dept: "hsm", environment: "dogfood" } + tags: { dept: "hsm", environment: "dogfood" }, }; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.beginCreateOrUpdateAndWait( resourceGroupName, name, - parameters + parameters, ); console.log(result); } @@ -57,7 +57,7 @@ async function createANewOrUpdateAnExistingDedicatedHsm() { * This sample demonstrates how to Create or Update a dedicated HSM in the specified subscription. * * @summary Create or Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_CreateOrUpdate.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_CreateOrUpdate.json */ async function createANewOrUpdateAnExistingPaymentHsm() { const subscriptionId = @@ -71,20 +71,20 @@ async function createANewOrUpdateAnExistingPaymentHsm() { networkProfile: { networkInterfaces: [{ privateIpAddress: "1.0.0.1" }], subnet: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01" - } + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", + }, }, sku: { name: "payShield10K_LMK1_CPS60" }, stampId: "stamp01", - tags: { dept: "hsm", environment: "dogfood" } + tags: { dept: "hsm", environment: "dogfood" }, }; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.beginCreateOrUpdateAndWait( resourceGroupName, name, - parameters + parameters, ); console.log(result); } @@ -93,7 +93,7 @@ async function createANewOrUpdateAnExistingPaymentHsm() { * This sample demonstrates how to Create or Update a dedicated HSM in the specified subscription. * * @summary Create or Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_CreateOrUpdate_WithManagementProfile.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_CreateOrUpdate_WithManagementProfile.json */ async function createANewOrUpdateAnExistingPaymentHsmWithManagementProfile() { const subscriptionId = @@ -107,27 +107,27 @@ async function createANewOrUpdateAnExistingPaymentHsmWithManagementProfile() { managementNetworkProfile: { networkInterfaces: [{ privateIpAddress: "1.0.0.2" }], subnet: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01" - } + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", + }, }, networkProfile: { networkInterfaces: [{ privateIpAddress: "1.0.0.1" }], subnet: { - id: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01" - } + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.Network/virtualNetworks/stamp01/subnets/stamp01", + }, }, sku: { name: "payShield10K_LMK1_CPS60" }, stampId: "stamp01", - tags: { dept: "hsm", environment: "dogfood" } + tags: { dept: "hsm", environment: "dogfood" }, }; const credential = new DefaultAzureCredential(); const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.beginCreateOrUpdateAndWait( resourceGroupName, name, - parameters + parameters, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmDeleteSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmDeleteSample.ts index 0769b78971c9..f664b377abac 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmDeleteSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Azure Dedicated HSM. * * @summary Deletes the specified Azure Dedicated HSM. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Delete.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Delete.json */ async function deleteADedicatedHsm() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteADedicatedHsm() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.beginDeleteAndWait( resourceGroupName, - name + name, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmGetSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmGetSample.ts index 3de06c720b51..2df1b9876d10 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmGetSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Azure dedicated HSM. * * @summary Gets the specified Azure dedicated HSM. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Get.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Get.json */ async function getADedicatedHsm() { const subscriptionId = @@ -31,7 +31,7 @@ async function getADedicatedHsm() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.get( resourceGroupName, - name + name, ); console.log(result); } @@ -40,7 +40,7 @@ async function getADedicatedHsm() { * This sample demonstrates how to Gets the specified Azure dedicated HSM. * * @summary Gets the specified Azure dedicated HSM. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_Get.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_Get.json */ async function getAPaymentHsm() { const subscriptionId = @@ -53,7 +53,7 @@ async function getAPaymentHsm() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.get( resourceGroupName, - name + name, ); console.log(result); } @@ -62,7 +62,7 @@ async function getAPaymentHsm() { * This sample demonstrates how to Gets the specified Azure dedicated HSM. * * @summary Gets the specified Azure dedicated HSM. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_Get_With_2018-10-31Preview_Version.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_Get_With_2018-10-31Preview_Version.json */ async function getAPaymentHsmWith20181031PreviewApiVersion() { const subscriptionId = @@ -75,7 +75,7 @@ async function getAPaymentHsmWith20181031PreviewApiVersion() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const result = await client.dedicatedHsmOperations.get( resourceGroupName, - name + name, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmListByResourceGroupSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmListByResourceGroupSample.ts index 3616b82ed5f0..1a9bbaab95ec 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmListByResourceGroupSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. * * @summary The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_ListByResourceGroup.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_ListByResourceGroup.json */ async function listDedicatedHsmDevicesInAResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listDedicatedHsmDevicesInAResourceGroup() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const resArray = new Array(); for await (let item of client.dedicatedHsmOperations.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -41,7 +41,7 @@ async function listDedicatedHsmDevicesInAResourceGroup() { * This sample demonstrates how to The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. * * @summary The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_ListByResourceGroup.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_ListByResourceGroup.json */ async function listDedicatedHsmDevicesInAResourceGroupIncludingPaymentHsm() { const subscriptionId = @@ -53,7 +53,7 @@ async function listDedicatedHsmDevicesInAResourceGroupIncludingPaymentHsm() { const client = new AzureHSMResourceProvider(credential, subscriptionId); const resArray = new Array(); for await (let item of client.dedicatedHsmOperations.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmListBySubscriptionSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmListBySubscriptionSample.ts index 8dbe9e692b59..f490109654e5 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmListBySubscriptionSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The List operation gets information about the dedicated HSMs associated with the subscription. * * @summary The List operation gets information about the dedicated HSMs associated with the subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_ListBySubscription.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_ListBySubscription.json */ async function listDedicatedHsmDevicesInASubscription() { const subscriptionId = @@ -37,7 +37,7 @@ async function listDedicatedHsmDevicesInASubscription() { * This sample demonstrates how to The List operation gets information about the dedicated HSMs associated with the subscription. * * @summary The List operation gets information about the dedicated HSMs associated with the subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_ListBySubscription.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_ListBySubscription.json */ async function listDedicatedHsmDevicesInASubscriptionIncludingPaymentHsm() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.ts index ac7f75faca85..550d752071d0 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint. * * @summary Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/GetOutboundNetworkDependenciesEndpointsList.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/GetOutboundNetworkDependenciesEndpointsList.json */ async function listOutboundNetworkDependenciesEndpointsByManagedCluster() { const subscriptionId = @@ -32,7 +32,7 @@ async function listOutboundNetworkDependenciesEndpointsByManagedCluster() { const resArray = new Array(); for await (let item of client.dedicatedHsmOperations.listOutboundNetworkDependenciesEndpoints( resourceGroupName, - name + name, )) { resArray.push(item); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmUpdateSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmUpdateSample.ts index 0bc04cf0f6c8..a5ebb2c7cdb5 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmUpdateSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/dedicatedHsmUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHsmUpdateOptionalParams, - AzureHSMResourceProvider + AzureHSMResourceProvider, } from "@azure/arm-hardwaresecuritymodules"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a dedicated HSM in the specified subscription. * * @summary Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Update.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/DedicatedHsm_Update.json */ async function updateAnExistingDedicatedHsm() { const subscriptionId = @@ -37,7 +37,7 @@ async function updateAnExistingDedicatedHsm() { const result = await client.dedicatedHsmOperations.beginUpdateAndWait( resourceGroupName, name, - options + options, ); console.log(result); } @@ -46,7 +46,7 @@ async function updateAnExistingDedicatedHsm() { * This sample demonstrates how to Update a dedicated HSM in the specified subscription. * * @summary Update a dedicated HSM in the specified subscription. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_Update.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/PaymentHsm_Update.json */ async function updateAnExistingPaymentHsm() { const subscriptionId = @@ -62,7 +62,7 @@ async function updateAnExistingPaymentHsm() { const result = await client.dedicatedHsmOperations.beginUpdateAndWait( resourceGroupName, name, - options + options, ); console.log(result); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/operationsListSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/operationsListSample.ts index d362324f525a..272191bacf6e 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/operationsListSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/operationsListSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Get a list of Dedicated HSM operations. + * This sample demonstrates how to Get a list of Hardware Security Modules operations. * - * @summary Get a list of Dedicated HSM operations. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_OperationsList.json + * @summary Get a list of Hardware Security Modules operations. + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/OperationsList.json */ async function getAListOfDedicatedHsmOperations() { const subscriptionId = @@ -34,10 +34,10 @@ async function getAListOfDedicatedHsmOperations() { } /** - * This sample demonstrates how to Get a list of Dedicated HSM operations. + * This sample demonstrates how to Get a list of Hardware Security Modules operations. * - * @summary Get a list of Dedicated HSM operations. - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_OperationsList.json + * @summary Get a list of Hardware Security Modules operations. + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/OperationsList.json */ async function getAListOfPaymentHsmOperations() { const subscriptionId = diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/privateEndpointConnectionsListByCloudHsmClusterSample.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/privateEndpointConnectionsListByCloudHsmClusterSample.ts index cef91d6ca660..d03d392931e2 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/privateEndpointConnectionsListByCloudHsmClusterSample.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/samples/v2-beta/typescript/src/privateEndpointConnectionsListByCloudHsmClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The List operation gets information about the private endpoint connections associated with the Cloud HSM Cluster * * @summary The List operation gets information about the private endpoint connections associated with the Cloud HSM Cluster - * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2023-12-10-preview/examples/CloudHsmClusterPrivateEndpointConnection_ListByCloudHsmCluster_MaximumSet_Gen.json + * x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/preview/2024-06-30-preview/examples/CloudHsmClusterPrivateEndpointConnection_ListByCloudHsmCluster_MaximumSet_Gen.json */ async function cloudHsmClusterPrivateEndpointConnectionListByResourceMaximumSetGen() { const subscriptionId = @@ -32,7 +32,7 @@ async function cloudHsmClusterPrivateEndpointConnectionListByResourceMaximumSetG const resArray = new Array(); for await (let item of client.privateEndpointConnections.listByCloudHsmCluster( resourceGroupName, - cloudHsmClusterName + cloudHsmClusterName, )) { resArray.push(item); } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/azureHSMResourceProvider.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/azureHSMResourceProvider.ts index bad73d2c494f..7cd4695765d7 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/azureHSMResourceProvider.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/azureHSMResourceProvider.ts @@ -8,28 +8,38 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest, +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { CloudHsmClustersImpl, CloudHsmClusterPrivateLinkResourcesImpl, CloudHsmClusterPrivateEndpointConnectionsImpl, PrivateEndpointConnectionsImpl, + CloudHsmClusterBackupStatusImpl, + CloudHsmClusterRestoreStatusImpl, + DedicatedHsmOperationsImpl, OperationsImpl, - DedicatedHsmOperationsImpl } from "./operations"; import { CloudHsmClusters, CloudHsmClusterPrivateLinkResources, CloudHsmClusterPrivateEndpointConnections, PrivateEndpointConnections, + CloudHsmClusterBackupStatus, + CloudHsmClusterRestoreStatus, + DedicatedHsmOperations, Operations, - DedicatedHsmOperations } from "./operationsInterfaces"; import { AzureHSMResourceProviderOptionalParams } from "./models"; export class AzureHSMResourceProvider extends coreClient.ServiceClient { $host: string; subscriptionId: string; + apiVersion: string; /** * Initializes a new instance of the AzureHSMResourceProvider class. @@ -40,7 +50,7 @@ export class AzureHSMResourceProvider extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: AzureHSMResourceProviderOptionalParams + options?: AzureHSMResourceProviderOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -55,7 +65,7 @@ export class AzureHSMResourceProvider extends coreClient.ServiceClient { } const defaults: AzureHSMResourceProviderOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; const packageDetails = `azsdk-js-arm-hardwaresecuritymodules/2.0.0-beta.2`; @@ -68,20 +78,21 @@ export class AzureHSMResourceProvider extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -91,7 +102,7 @@ export class AzureHSMResourceProvider extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -101,9 +112,9 @@ export class AzureHSMResourceProvider extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -111,22 +122,58 @@ export class AzureHSMResourceProvider extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2024-06-30-preview"; this.cloudHsmClusters = new CloudHsmClustersImpl(this); - this.cloudHsmClusterPrivateLinkResources = new CloudHsmClusterPrivateLinkResourcesImpl( - this + this.cloudHsmClusterPrivateLinkResources = + new CloudHsmClusterPrivateLinkResourcesImpl(this); + this.cloudHsmClusterPrivateEndpointConnections = + new CloudHsmClusterPrivateEndpointConnectionsImpl(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); + this.cloudHsmClusterBackupStatus = new CloudHsmClusterBackupStatusImpl( + this, ); - this.cloudHsmClusterPrivateEndpointConnections = new CloudHsmClusterPrivateEndpointConnectionsImpl( - this + this.cloudHsmClusterRestoreStatus = new CloudHsmClusterRestoreStatusImpl( + this, ); - this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); - this.operations = new OperationsImpl(this); this.dedicatedHsmOperations = new DedicatedHsmOperationsImpl(this); + this.operations = new OperationsImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest, + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + }, + }; + this.pipeline.addPolicy(apiVersionPolicy); } cloudHsmClusters: CloudHsmClusters; cloudHsmClusterPrivateLinkResources: CloudHsmClusterPrivateLinkResources; cloudHsmClusterPrivateEndpointConnections: CloudHsmClusterPrivateEndpointConnections; privateEndpointConnections: PrivateEndpointConnections; - operations: Operations; + cloudHsmClusterBackupStatus: CloudHsmClusterBackupStatus; + cloudHsmClusterRestoreStatus: CloudHsmClusterRestoreStatus; dedicatedHsmOperations: DedicatedHsmOperations; + operations: Operations; } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/lroImpl.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/lroImpl.ts index 52f6eaacfb83..5f88efab981b 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/lroImpl.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/models/index.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/models/index.ts index f07525ece8e6..2d89d7cbb839 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/models/index.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/models/index.ts @@ -8,19 +8,11 @@ import * as coreClient from "@azure/core-client"; -/** Security domain properties information for Cloud HSM cluster */ -export interface CloudHsmClusterSecurityDomainProperties { - /** FIPS state information for security domain */ - fipsState?: number; - /** status of security domain activation */ - activationStatus?: string; -} - /** The Cloud HSM Properties */ export interface CloudHsmProperties { /** FQDN of the Cloud HSM */ fqdn?: string; - /** The Cloud HSM State */ + /** The Cloud HSM State. Values are: Deploying, ConfiguringSlb, Starting, Starting, Failed, Failed, Deleting, DeletingSlbEntry, InitialProvisioning, Updating */ state?: string; /** The Cloud HSM State message */ stateMessage?: string; @@ -85,40 +77,6 @@ export interface SystemData { lastModifiedAt?: Date; } -/** Cloud Hsm Cluster restore information */ -export interface RestoreProperties { - /** Directory name in Azure Storage Blob where the backup is stored */ - foldername?: string; - /** Azure Blob storage container Uri */ - azureStorageResourceUri?: string; -} - -/** Cloud Hsm Cluster backup information */ -export interface BackupProperties { - /** Azure storage Resource Uri */ - azureStorageResourceUri?: string; - /** - * Last Date Time that Customer Enabled Backup was taken - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastBackupDateTime?: Date; - /** - * Status of last backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastBackupStatus?: string; -} - -/** Cloud Hsm Cluster SKU information */ -export interface CloudHsmClusterSku { - /** Sku family of the Cloud HSM Cluster */ - family: CloudHsmClusterSkuFamily; - /** Sku name of the Cloud HSM Cluster */ - name: CloudHsmClusterSkuName; - /** Sku capacity */ - capacity?: number; -} - /** Managed service identity (system assigned and/or user assigned identities) */ export interface ManagedServiceIdentity { /** @@ -153,14 +111,24 @@ export interface UserAssignedIdentity { readonly clientId?: string; } -/** The Cloud HSM Cluster error details */ -export interface CloudHsmClusterError { - /** Error details */ - error?: CHsmError; +/** Cloud Hsm Cluster SKU information */ +export interface CloudHsmClusterSku { + /** Sku family of the Cloud HSM Cluster */ + family: CloudHsmClusterSkuFamily; + /** Sku name of the Cloud HSM Cluster */ + name: CloudHsmClusterSkuName; + /** Sku capacity */ + capacity?: number; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; } -/** Error details */ -export interface CHsmError { +/** The error detail. */ +export interface ErrorDetail { /** * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -171,18 +139,43 @@ export interface CHsmError { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; } /** Patchable properties of the Cloud HSM Cluster */ export interface CloudHsmClusterPatchParameters { /** The Cloud HSM Cluster's tags */ tags?: { [propertyName: string]: string }; - /** SKU details */ - sku?: CloudHsmClusterSku; /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; - /** Cloud Hsm Cluster backup information */ - backupProperties?: BackupProperties; } /** List of Cloud HSM Clusters */ @@ -197,6 +190,11 @@ export interface CloudHsmClusterListResult { export interface PrivateLinkResourceListResult { /** Array of private link resources */ value?: PrivateLinkResource[]; + /** + * URL to get the next set of operation list results (if there are any). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } /** List of private endpoint connections associated with the specified resource. */ @@ -207,81 +205,78 @@ export interface PrivateEndpointConnectionListResult { nextLink?: string; } -/** Result of the request to list Dedicated HSM Provider operations. It contains a list of operations. */ -export interface DedicatedHsmOperationListResult { - /** List of Dedicated HSM Resource Provider operations. */ - value?: DedicatedHsmOperation[]; +/** Backup and Restore Common properties */ +export interface BackupRestoreRequestBaseProperties { + /** The Azure blob storage container Uri which contains the backup */ + azureStorageBlobContainerUri: string; + /** The SAS token pointing to an Azure blob storage container. This property is reserved for Azure Backup Service. */ + token?: string; } -/** REST API operation */ -export interface DedicatedHsmOperation { - /** The name of the Dedicated HSM Resource Provider Operation. */ - name?: string; +/** Backup operation Result */ +export interface BackupResult { /** - * Gets or sets a value indicating whether it is a data plane action + * Status of the backup/restore operation * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDataAction?: boolean; - /** The origin of the operation */ - origin?: string; - /** The display string. */ - display?: DedicatedHsmOperationDisplay; -} - -/** The display string. */ -export interface DedicatedHsmOperationDisplay { - /** The Resource Provider of the operation */ - provider?: string; - /** Resource on which the operation is performed. */ - resource?: string; - /** Operation type: Read, write, delete, etc. */ - operation?: string; - /** The object that represents the operation. */ - description?: string; -} - -/** The error exception. */ -export interface DedicatedHsmError { + readonly status?: BackupRestoreOperationStatus; + /** The status details of backup/restore operation */ + statusDetails?: string; + /** Error encountered, if any, during the backup/restore operation. */ + error?: ErrorDetail; /** - * The error detail of the operation if any. + * The start time of the backup/restore operation in UTC * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly error?: ErrorModel; + readonly startTime?: Date; + /** + * The end time of the backup/restore operation in UTC + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endTime?: Date; + /** Identifier for the backup/restore operation. */ + jobId?: string; + /** The Azure blob storage container Uri which contains the backup */ + azureStorageBlobContainerUri?: string; + /** The ID of the backup. */ + backupId?: string; } -/** The key vault server error. */ -export interface ErrorModel { +/** Backup and Restore operation common properties */ +export interface BackupRestoreBaseResultProperties { /** - * The error code. + * Status of the backup/restore operation * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly status?: BackupRestoreOperationStatus; + /** The status details of backup/restore operation */ + statusDetails?: string; + /** Error encountered, if any, during the backup/restore operation. */ + error?: ErrorDetail; /** - * The error message. + * The start time of the backup/restore operation in UTC * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly startTime?: Date; /** - * Contains more specific error that narrows down the cause. May be null. + * The end time of the backup/restore operation in UTC * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly innerError?: ErrorModel; + readonly endTime?: Date; + /** Identifier for the backup/restore operation. */ + jobId?: string; } -/** Metadata pertaining to creation and last modification of dedicated hsm resource. */ -export interface SystemDataAutoGenerated { - /** The identity that created dedicated hsm resource. */ - createdBy?: string; - /** The type of identity that created dedicated hsm resource. */ - createdByType?: IdentityType; - /** The timestamp of dedicated hsm resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified dedicated hsm resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified dedicated hsm resource. */ - lastModifiedByType?: IdentityType; - /** The timestamp of dedicated hsm resource last modification (UTC). */ - lastModifiedAt?: Date; +/** Restore operation properties */ +export interface RestoreResult { + /** Backup and Restore operation common properties */ + properties?: BackupRestoreBaseResultProperties; +} + +/** SKU of the dedicated HSM */ +export interface Sku { + /** SKU of the dedicated HSM */ + name?: SkuName; } /** The network profile definition. */ @@ -294,52 +289,47 @@ export interface NetworkProfile { /** The API entity reference. */ export interface ApiEntityReference { - /** The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... */ - id?: string; + /** The Azure resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... */ + resourceId?: string; } /** The network interface definition. */ export interface NetworkInterface { /** - * The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... + * The Azure resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly resourceId?: string; /** Private Ip address of the interface */ privateIpAddress?: string; } -/** Dedicated HSM resource */ -export interface DedicatedHsmResource { +/** The error exception. */ +export interface DedicatedHsmError { + /** + * The error detail of the operation if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly error?: ErrorModel; +} + +/** The key vault server error. */ +export interface ErrorModel { /** - * The Azure Resource Manager resource ID for the dedicated HSM. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly code?: string; /** - * The name of the dedicated HSM. + * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly message?: string; /** - * The resource type of the dedicated HSM. + * Contains more specific error that narrows down the cause. May be null. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; - /** The supported Azure location where the dedicated HSM should be created. */ - location: string; - /** SKU details */ - sku?: Sku; - /** The Dedicated Hsm zones. */ - zones?: string[]; - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - -/** SKU of the dedicated HSM */ -export interface Sku { - /** SKU of the dedicated HSM */ - name?: SkuName; + readonly innerError?: ErrorModel; } /** Patchable properties of the dedicated HSM */ @@ -395,12 +385,68 @@ export interface EndpointDetail { description?: string; } -/** List of dedicated HSM resources. */ -export interface ResourceListResult { - /** The list of dedicated HSM resources. */ - value?: DedicatedHsmResource[]; - /** The URL to get the next set of dedicated HSM resources. */ - nextLink?: string; +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface OperationListResult { + /** + * List of operations supported by the resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Operation[]; + /** + * URL to get the next set of operation list results (if there are any). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { + /** + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; + /** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly origin?: Origin; + /** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionType?: ActionType; +} + +/** Localized display information for this particular operation. */ +export interface OperationDisplay { + /** + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provider?: string; + /** + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resource?: string; + /** + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operation?: string; + /** + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; } /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ @@ -430,29 +476,24 @@ export interface PrivateLinkResource extends Resource { requiredZoneNames?: string[]; } -/** Resource information with extended details. */ -export interface DedicatedHsm extends DedicatedHsmResource { - /** - * Metadata pertaining to creation and last modification of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemDataAutoGenerated; - /** Specifies the network interfaces of the dedicated hsm. */ - networkProfile?: NetworkProfile; - /** Specifies the management network interfaces of the dedicated hsm. */ - managementNetworkProfile?: NetworkProfile; - /** This field will be used when RP does not support Availability zones. */ - stampId?: string; - /** - * Resource Status Message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly statusMessage?: string; - /** - * Provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: JsonWebKeyType; +/** Backup properties */ +export interface BackupRequestProperties + extends BackupRestoreRequestBaseProperties {} + +/** Cloud Hsm Cluster restore information */ +export interface RestoreRequestProperties + extends BackupRestoreRequestBaseProperties { + /** An autogenerated unique string ID for labeling the backup. It contains both a UUID and a date timestamp. */ + backupId: string; +} + +/** Properties of the Cloud HSM Cluster */ +export interface BackupResultProperties + extends BackupRestoreBaseResultProperties { + /** The Azure blob storage container Uri which contains the backup */ + azureStorageBlobContainerUri?: string; + /** The ID of the backup. */ + backupId?: string; } /** The private endpoint connection resource. */ @@ -477,35 +518,67 @@ export interface PrivateEndpointConnection extends ProxyResource { /** Cloud HSM Cluster Resource */ export interface CloudHsmClusterResource extends TrackedResource { - /** SKU details */ - sku?: CloudHsmClusterSku; /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; + /** SKU details */ + sku?: CloudHsmClusterSku; +} + +/** Resource information with extended details. */ +export interface DedicatedHsm extends TrackedResource { + /** SKU details */ + sku: Sku; + /** The Dedicated Hsm zones. */ + zones?: string[]; + /** Specifies the network interfaces of the dedicated hsm. */ + networkProfile?: NetworkProfile; + /** Specifies the management network interfaces of the dedicated hsm. */ + managementNetworkProfile?: NetworkProfile; + /** This field will be used when RP does not support Availability zones. */ + stampId?: string; + /** + * Resource Status Message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly statusMessage?: string; + /** + * Provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: JsonWebKeyType; } /** Resource information with extended details. */ export interface CloudHsmCluster extends CloudHsmClusterResource { - /** The Cloud HSM Cluster's provisioningState */ - provisioningState?: ProvisioningState; + /** + * State of security domain activation + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly activationState?: ActivationState; /** The Cloud HSM Cluster's auto-generated Domain Name Label Scope */ - autoGeneratedDomainNameLabelScope?: string; - /** Security domain properties information for Cloud HSM cluster */ - securityDomain?: CloudHsmClusterSecurityDomainProperties; - /** An array of Cloud HSM Cluster's HSMs */ - hsms?: CloudHsmProperties[]; + autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope; + /** + * An array of Cloud HSM Cluster's HSMs + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hsms?: CloudHsmProperties[]; + /** + * List of private endpoint connection resources + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * The Cloud HSM Cluster's provisioningState + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; /** The Cloud HSM Cluster public network access */ - publicNetworkAccess?: string; - /** List of private endpoint connection resources */ - privateEndpointConnections?: PrivateEndpointConnection[]; + publicNetworkAccess?: PublicNetworkAccess; /** * Cloud HSM Cluster status message * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly statusMessage?: string; - /** Cloud Hsm Cluster restore information */ - restoreProperties?: RestoreProperties; - /** Cloud Hsm Cluster backup information */ - backupProperties?: BackupProperties; } /** Defines headers for CloudHsmClusters_update operation. */ @@ -520,38 +593,122 @@ export interface CloudHsmClustersDeleteHeaders { location?: string; } +/** Defines headers for CloudHsmClusters_validateBackupProperties operation. */ +export interface CloudHsmClustersValidateBackupPropertiesHeaders { + /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */ + xMsRequestId?: string; +} + +/** Defines headers for CloudHsmClusters_backup operation. */ +export interface CloudHsmClustersBackupHeaders { + /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */ + xMsRequestId?: string; +} + +/** Defines headers for CloudHsmClusters_validateRestoreProperties operation. */ +export interface CloudHsmClustersValidateRestorePropertiesHeaders { + /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */ + xMsRequestId?: string; +} + +/** Defines headers for CloudHsmClusters_restore operation. */ +export interface CloudHsmClustersRestoreHeaders { + /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */ + xMsRequestId?: string; +} + /** Defines headers for CloudHsmClusterPrivateEndpointConnections_delete operation. */ export interface CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders { /** The URI to poll for completion status. */ location?: string; } -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Provisioning */ - Provisioning = "Provisioning", - /** Succeeded */ - Succeeded = "Succeeded", +/** Defines headers for CloudHsmClusterBackupStatus_get operation. */ +export interface CloudHsmClusterBackupStatusGetHeaders { + /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */ + xMsRequestId?: string; +} + +/** Defines headers for CloudHsmClusterBackupStatus_get operation. */ +export interface CloudHsmClusterBackupStatusGetExceptionHeaders { + /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */ + xMsRequestId?: string; +} + +/** Defines headers for CloudHsmClusterRestoreStatus_get operation. */ +export interface CloudHsmClusterRestoreStatusGetHeaders { + /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */ + xMsRequestId?: string; +} + +/** Defines headers for CloudHsmClusterRestoreStatus_get operation. */ +export interface CloudHsmClusterRestoreStatusGetExceptionHeaders { + /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */ + xMsRequestId?: string; +} + +/** Defines headers for DedicatedHsm_update operation. */ +export interface DedicatedHsmUpdateHeaders { + /** The URI to poll for completion status. */ + location?: string; +} + +/** Defines headers for DedicatedHsm_delete operation. */ +export interface DedicatedHsmDeleteHeaders { + /** The URI to poll for completion status. */ + location?: string; +} + +/** Known values of {@link ActivationState} that the service accepts. */ +export enum KnownActivationState { + /** NotDefined */ + NotDefined = "NotDefined", + /** NotActivated */ + NotActivated = "NotActivated", + /** Active */ + Active = "Active", /** Failed */ Failed = "Failed", - /** Deleting */ - Deleting = "Deleting", - /** Canceled */ - Canceled = "Canceled" + /** Unknown */ + Unknown = "Unknown", } /** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * Defines values for ActivationState. \ + * {@link KnownActivationState} can be used interchangeably with ActivationState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Provisioning** \ - * **Succeeded** \ + * **NotDefined** \ + * **NotActivated** \ + * **Active** \ * **Failed** \ - * **Deleting** \ - * **Canceled** + * **Unknown** */ -export type ProvisioningState = string; +export type ActivationState = string; + +/** Known values of {@link AutoGeneratedDomainNameLabelScope} that the service accepts. */ +export enum KnownAutoGeneratedDomainNameLabelScope { + /** TenantReuse */ + TenantReuse = "TenantReuse", + /** SubscriptionReuse */ + SubscriptionReuse = "SubscriptionReuse", + /** ResourceGroupReuse */ + ResourceGroupReuse = "ResourceGroupReuse", + /** NoReuse */ + NoReuse = "NoReuse", +} + +/** + * Defines values for AutoGeneratedDomainNameLabelScope. \ + * {@link KnownAutoGeneratedDomainNameLabelScope} can be used interchangeably with AutoGeneratedDomainNameLabelScope, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TenantReuse** \ + * **SubscriptionReuse** \ + * **ResourceGroupReuse** \ + * **NoReuse** + */ +export type AutoGeneratedDomainNameLabelScope = string; /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ export enum KnownPrivateEndpointServiceConnectionStatus { @@ -560,7 +717,7 @@ export enum KnownPrivateEndpointServiceConnectionStatus { /** Approved */ Approved = "Approved", /** Rejected */ - Rejected = "Rejected" + Rejected = "Rejected", } /** @@ -589,7 +746,7 @@ export enum KnownPrivateEndpointConnectionProvisioningState { /** InternalError */ InternalError = "InternalError", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -616,7 +773,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -631,20 +788,47 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; -/** Known values of {@link CloudHsmClusterSkuFamily} that the service accepts. */ -export enum KnownCloudHsmClusterSkuFamily { - /** B */ - B = "B" +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Provisioning */ + Provisioning = "Provisioning", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Deleting */ + Deleting = "Deleting", + /** Canceled */ + Canceled = "Canceled", } /** - * Defines values for CloudHsmClusterSkuFamily. \ - * {@link KnownCloudHsmClusterSkuFamily} can be used interchangeably with CloudHsmClusterSkuFamily, + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **B** + * **Provisioning** \ + * **Succeeded** \ + * **Failed** \ + * **Deleting** \ + * **Canceled** */ -export type CloudHsmClusterSkuFamily = string; +export type ProvisioningState = string; + +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + /** Disabled */ + Disabled = "Disabled", +} + +/** + * Defines values for PublicNetworkAccess. \ + * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** + */ +export type PublicNetworkAccess = string; /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ export enum KnownManagedServiceIdentityType { @@ -655,7 +839,7 @@ export enum KnownManagedServiceIdentityType { /** UserAssigned */ UserAssigned = "UserAssigned", /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", } /** @@ -670,62 +854,44 @@ export enum KnownManagedServiceIdentityType { */ export type ManagedServiceIdentityType = string; -/** Known values of {@link IdentityType} that the service accepts. */ -export enum KnownIdentityType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" +/** Known values of {@link CloudHsmClusterSkuFamily} that the service accepts. */ +export enum KnownCloudHsmClusterSkuFamily { + /** B */ + B = "B", } /** - * Defines values for IdentityType. \ - * {@link KnownIdentityType} can be used interchangeably with IdentityType, + * Defines values for CloudHsmClusterSkuFamily. \ + * {@link KnownCloudHsmClusterSkuFamily} can be used interchangeably with CloudHsmClusterSkuFamily, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** + * **B** */ -export type IdentityType = string; +export type CloudHsmClusterSkuFamily = string; -/** Known values of {@link JsonWebKeyType} that the service accepts. */ -export enum KnownJsonWebKeyType { - /** The dedicated HSM has been full provisioned. */ +/** Known values of {@link BackupRestoreOperationStatus} that the service accepts. */ +export enum KnownBackupRestoreOperationStatus { + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ Succeeded = "Succeeded", - /** The dedicated HSM is currently being provisioned. */ - Provisioning = "Provisioning", - /** A device is currently being allocated for the dedicated HSM resource. */ - Allocating = "Allocating", - /** The dedicated HSM is being connected to the virtual network. */ - Connecting = "Connecting", - /** Provisioning of the dedicated HSM has failed. */ + /** Failed */ Failed = "Failed", - /** Validating the subscription has sufficient quota to allocate a dedicated HSM device. */ - CheckingQuota = "CheckingQuota", - /** The dedicated HSM is currently being deleted. */ - Deleting = "Deleting" + /** Cancelled */ + Cancelled = "Cancelled", } /** - * Defines values for JsonWebKeyType. \ - * {@link KnownJsonWebKeyType} can be used interchangeably with JsonWebKeyType, + * Defines values for BackupRestoreOperationStatus. \ + * {@link KnownBackupRestoreOperationStatus} can be used interchangeably with BackupRestoreOperationStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded**: The dedicated HSM has been full provisioned. \ - * **Provisioning**: The dedicated HSM is currently being provisioned. \ - * **Allocating**: A device is currently being allocated for the dedicated HSM resource. \ - * **Connecting**: The dedicated HSM is being connected to the virtual network. \ - * **Failed**: Provisioning of the dedicated HSM has failed. \ - * **CheckingQuota**: Validating the subscription has sufficient quota to allocate a dedicated HSM device. \ - * **Deleting**: The dedicated HSM is currently being deleted. + * **InProgress** \ + * **Succeeded** \ + * **Failed** \ + * **Cancelled** */ -export type JsonWebKeyType = string; +export type BackupRestoreOperationStatus = string; /** Known values of {@link SkuName} that the service accepts. */ export enum KnownSkuName { @@ -742,7 +908,7 @@ export enum KnownSkuName { /** The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 2 local master keys which supports up to 250 calls per second. */ PayShield10KLMK2CPS250 = "payShield10K_LMK2_CPS250", /** The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 2 local master keys which supports up to 2500 calls per second. */ - PayShield10KLMK2CPS2500 = "payShield10K_LMK2_CPS2500" + PayShield10KLMK2CPS2500 = "payShield10K_LMK2_CPS2500", } /** @@ -759,6 +925,99 @@ export enum KnownSkuName { * **payShield10K_LMK2_CPS2500**: The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 2 local master keys which supports up to 2500 calls per second. */ export type SkuName = string; + +/** Known values of {@link JsonWebKeyType} that the service accepts. */ +export enum KnownJsonWebKeyType { + /** The dedicated HSM has been fully provisioned. */ + Succeeded = "Succeeded", + /** The dedicated HSM is currently being provisioned. */ + Provisioning = "Provisioning", + /** A device is currently being allocated for the dedicated HSM resource. */ + Allocating = "Allocating", + /** The dedicated HSM is being connected to the virtual network. */ + Connecting = "Connecting", + /** Provisioning of the dedicated HSM has failed. */ + Failed = "Failed", + /** Validating the subscription has sufficient quota to allocate a dedicated HSM device. */ + CheckingQuota = "CheckingQuota", + /** The dedicated HSM is currently being deleted. */ + Deleting = "Deleting", +} + +/** + * Defines values for JsonWebKeyType. \ + * {@link KnownJsonWebKeyType} can be used interchangeably with JsonWebKeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded**: The dedicated HSM has been fully provisioned. \ + * **Provisioning**: The dedicated HSM is currently being provisioned. \ + * **Allocating**: A device is currently being allocated for the dedicated HSM resource. \ + * **Connecting**: The dedicated HSM is being connected to the virtual network. \ + * **Failed**: Provisioning of the dedicated HSM has failed. \ + * **CheckingQuota**: Validating the subscription has sufficient quota to allocate a dedicated HSM device. \ + * **Deleting**: The dedicated HSM is currently being deleted. + */ +export type JsonWebKeyType = string; + +/** Known values of {@link Origin} that the service accepts. */ +export enum KnownOrigin { + /** User */ + User = "user", + /** System */ + System = "system", + /** UserSystem */ + UserSystem = "user,system", +} + +/** + * Defines values for Origin. \ + * {@link KnownOrigin} can be used interchangeably with Origin, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **user** \ + * **system** \ + * **user,system** + */ +export type Origin = string; + +/** Known values of {@link ActionType} that the service accepts. */ +export enum KnownActionType { + /** Internal */ + Internal = "Internal", +} + +/** + * Defines values for ActionType. \ + * {@link KnownActionType} can be used interchangeably with ActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Internal** + */ +export type ActionType = string; + +/** Known values of {@link IdentityType} that the service accepts. */ +export enum KnownIdentityType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key", +} + +/** + * Defines values for IdentityType. \ + * {@link KnownIdentityType} can be used interchangeably with IdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type IdentityType = string; /** Defines values for CloudHsmClusterSkuName. */ export type CloudHsmClusterSkuName = "Standard_B1" | "Standard B10"; @@ -767,26 +1026,14 @@ export interface CloudHsmClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Resource tags. */ tags?: { [propertyName: string]: string }; - /** SKU details */ - sku?: CloudHsmClusterSku; /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; - /** The Cloud HSM Cluster's provisioningState */ - provisioningState?: ProvisioningState; + /** SKU details */ + sku?: CloudHsmClusterSku; /** The Cloud HSM Cluster's auto-generated Domain Name Label Scope */ - autoGeneratedDomainNameLabelScope?: string; - /** Security domain properties information for Cloud HSM cluster */ - securityDomain?: CloudHsmClusterSecurityDomainProperties; - /** An array of Cloud HSM Cluster's HSMs */ - hsms?: CloudHsmProperties[]; + autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope; /** The Cloud HSM Cluster public network access */ - publicNetworkAccess?: string; - /** List of private endpoint connection resources */ - privateEndpointConnections?: PrivateEndpointConnection[]; - /** Cloud Hsm Cluster restore information */ - restoreProperties?: RestoreProperties; - /** Cloud Hsm Cluster backup information */ - backupProperties?: BackupProperties; + publicNetworkAccess?: PublicNetworkAccess; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -801,12 +1048,8 @@ export interface CloudHsmClustersUpdateOptionalParams extends coreClient.OperationOptions { /** The Cloud HSM Cluster's tags */ tags?: { [propertyName: string]: string }; - /** SKU details */ - sku?: CloudHsmClusterSku; /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; - /** Cloud Hsm Cluster backup information */ - backupProperties?: BackupProperties; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -832,6 +1075,9 @@ export interface CloudHsmClustersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type CloudHsmClustersDeleteResponse = CloudHsmClustersDeleteHeaders; + /** Optional parameters. */ export interface CloudHsmClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions { @@ -840,7 +1086,8 @@ export interface CloudHsmClustersListByResourceGroupOptionalParams } /** Contains response data for the listByResourceGroup operation. */ -export type CloudHsmClustersListByResourceGroupResponse = CloudHsmClusterListResult; +export type CloudHsmClustersListByResourceGroupResponse = + CloudHsmClusterListResult; /** Optional parameters. */ export interface CloudHsmClustersListBySubscriptionOptionalParams @@ -850,35 +1097,106 @@ export interface CloudHsmClustersListBySubscriptionOptionalParams } /** Contains response data for the listBySubscription operation. */ -export type CloudHsmClustersListBySubscriptionResponse = CloudHsmClusterListResult; +export type CloudHsmClustersListBySubscriptionResponse = + CloudHsmClusterListResult; + +/** Optional parameters. */ +export interface CloudHsmClustersValidateBackupPropertiesOptionalParams + extends coreClient.OperationOptions { + /** Backup Operation Required properties */ + backupRequestProperties?: BackupRequestProperties; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the validateBackupProperties operation. */ +export type CloudHsmClustersValidateBackupPropertiesResponse = + CloudHsmClustersValidateBackupPropertiesHeaders & BackupResult; + +/** Optional parameters. */ +export interface CloudHsmClustersBackupOptionalParams + extends coreClient.OperationOptions { + /** Azure storage Resource Uri */ + backupRequestProperties?: BackupRequestProperties; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the backup operation. */ +export type CloudHsmClustersBackupResponse = CloudHsmClustersBackupHeaders & + BackupResult; + +/** Optional parameters. */ +export interface CloudHsmClustersValidateRestorePropertiesOptionalParams + extends coreClient.OperationOptions { + /** Optional Parameters to validate prior performing a restore operation. */ + restoreRequestProperties?: RestoreRequestProperties; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the validateRestoreProperties operation. */ +export type CloudHsmClustersValidateRestorePropertiesResponse = + CloudHsmClustersValidateRestorePropertiesHeaders & RestoreResult; + +/** Optional parameters. */ +export interface CloudHsmClustersRestoreOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the restore operation. */ +export type CloudHsmClustersRestoreResponse = CloudHsmClustersRestoreHeaders & + RestoreResult; /** Optional parameters. */ export interface CloudHsmClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type CloudHsmClustersListByResourceGroupNextResponse = CloudHsmClusterListResult; +export type CloudHsmClustersListByResourceGroupNextResponse = + CloudHsmClusterListResult; /** Optional parameters. */ export interface CloudHsmClustersListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type CloudHsmClustersListBySubscriptionNextResponse = CloudHsmClusterListResult; +export type CloudHsmClustersListBySubscriptionNextResponse = + CloudHsmClusterListResult; /** Optional parameters. */ export interface CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByCloudHsmCluster operation. */ -export type CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse = PrivateLinkResourceListResult; +export type CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse = + PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByCloudHsmClusterNext operation. */ +export type CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterNextResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ -export type CloudHsmClusterPrivateEndpointConnectionsCreateResponse = PrivateEndpointConnection; +export type CloudHsmClusterPrivateEndpointConnectionsCreateResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams @@ -889,33 +1207,49 @@ export interface CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type CloudHsmClusterPrivateEndpointConnectionsDeleteResponse = + CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders; + /** Optional parameters. */ export interface CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CloudHsmClusterPrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +export type CloudHsmClusterPrivateEndpointConnectionsGetResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByCloudHsmCluster operation. */ -export type PrivateEndpointConnectionsListByCloudHsmClusterResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListByCloudHsmClusterResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface PrivateEndpointConnectionsListByCloudHsmClusterNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByCloudHsmClusterNext operation. */ -export type PrivateEndpointConnectionsListByCloudHsmClusterNextResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListByCloudHsmClusterNextResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface CloudHsmClusterBackupStatusGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = DedicatedHsmOperationListResult; +/** Contains response data for the get operation. */ +export type CloudHsmClusterBackupStatusGetResponse = + CloudHsmClusterBackupStatusGetHeaders & BackupResult; + +/** Optional parameters. */ +export interface CloudHsmClusterRestoreStatusGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CloudHsmClusterRestoreStatusGetResponse = + CloudHsmClusterRestoreStatusGetHeaders & RestoreResult; /** Optional parameters. */ export interface DedicatedHsmCreateOrUpdateOptionalParams @@ -952,6 +1286,9 @@ export interface DedicatedHsmDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type DedicatedHsmDeleteResponse = DedicatedHsmDeleteHeaders; + /** Optional parameters. */ export interface DedicatedHsmGetOptionalParams extends coreClient.OperationOptions {} @@ -984,14 +1321,16 @@ export interface DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalPar extends coreClient.OperationOptions {} /** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ -export type DedicatedHsmListOutboundNetworkDependenciesEndpointsResponse = OutboundEnvironmentEndpointCollection; +export type DedicatedHsmListOutboundNetworkDependenciesEndpointsResponse = + OutboundEnvironmentEndpointCollection; /** Optional parameters. */ export interface DedicatedHsmListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type DedicatedHsmListByResourceGroupNextResponse = DedicatedHsmListResult; +export type DedicatedHsmListByResourceGroupNextResponse = + DedicatedHsmListResult; /** Optional parameters. */ export interface DedicatedHsmListBySubscriptionNextOptionalParams @@ -1005,13 +1344,23 @@ export interface DedicatedHsmListOutboundNetworkDependenciesEndpointsNextOptiona extends coreClient.OperationOptions {} /** Contains response data for the listOutboundNetworkDependenciesEndpointsNext operation. */ -export type DedicatedHsmListOutboundNetworkDependenciesEndpointsNextResponse = OutboundEnvironmentEndpointCollection; +export type DedicatedHsmListOutboundNetworkDependenciesEndpointsNextResponse = + OutboundEnvironmentEndpointCollection; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ export interface AzureHSMResourceProviderOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; + /** Api Version */ + apiVersion?: string; /** Overrides client endpoint. */ endpoint?: string; } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/models/mappers.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/models/mappers.ts index 57b8f5212316..32b229e44863 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/models/mappers.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/models/mappers.ts @@ -8,27 +8,6 @@ import * as coreClient from "@azure/core-client"; -export const CloudHsmClusterSecurityDomainProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudHsmClusterSecurityDomainProperties", - modelProperties: { - fipsState: { - serializedName: "fipsState", - type: { - name: "Number" - } - }, - activationStatus: { - serializedName: "activationStatus", - type: { - name: "String" - } - } - } - } -}; - export const CloudHsmProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -37,23 +16,23 @@ export const CloudHsmProperties: coreClient.CompositeMapper = { fqdn: { serializedName: "fqdn", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "state", type: { - name: "String" - } + name: "String", + }, }, stateMessage: { serializedName: "stateMessage", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -65,11 +44,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -80,23 +59,23 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -108,32 +87,32 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -144,121 +123,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } -}; - -export const RestoreProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestoreProperties", - modelProperties: { - foldername: { - serializedName: "foldername", - type: { - name: "String" - } - }, - azureStorageResourceUri: { - serializedName: "azureStorageResourceUri", - type: { - name: "String" - } - } - } - } -}; - -export const BackupProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupProperties", - modelProperties: { - azureStorageResourceUri: { - serializedName: "azureStorageResourceUri", - type: { - name: "String" - } - }, - lastBackupDateTime: { - serializedName: "lastBackupDateTime", - readOnly: true, - type: { - name: "DateTime" - } + name: "DateTime", + }, }, - lastBackupStatus: { - serializedName: "lastBackupStatus", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const CloudHsmClusterSku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudHsmClusterSku", - modelProperties: { - family: { - serializedName: "family", - required: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - required: true, - type: { - name: "Enum", - allowedValues: ["Standard_B1", "Standard B10"] - } - }, - capacity: { - serializedName: "capacity", - type: { - name: "Number" - } - } - } - } + }, + }, }; export const ManagedServiceIdentity: coreClient.CompositeMapper = { @@ -270,34 +169,34 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentity" } - } - } - } - } - } + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentity: coreClient.CompositeMapper = { @@ -309,57 +208,144 @@ export const UserAssignedIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "Uuid" - } - } - } - } + name: "Uuid", + }, + }, + }, + }, +}; + +export const CloudHsmClusterSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudHsmClusterSku", + modelProperties: { + family: { + serializedName: "family", + required: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + required: true, + type: { + name: "Enum", + allowedValues: ["Standard_B1", "Standard B10"], + }, + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number", + }, + }, + }, + }, }; -export const CloudHsmClusterError: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudHsmClusterError", + className: "ErrorResponse", modelProperties: { error: { serializedName: "error", type: { name: "Composite", - className: "CHsmError" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; -export const CHsmError: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CHsmError", + className: "ErrorDetail", modelProperties: { code: { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const CloudHsmClusterPatchParameters: coreClient.CompositeMapper = { @@ -371,32 +357,18 @@ export const CloudHsmClusterPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "CloudHsmClusterSku" - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedServiceIdentity" - } + className: "ManagedServiceIdentity", + }, }, - backupProperties: { - serializedName: "properties.backupProperties", - type: { - name: "Composite", - className: "BackupProperties" - } - } - } - } + }, + }, }; export const CloudHsmClusterListResult: coreClient.CompositeMapper = { @@ -411,19 +383,19 @@ export const CloudHsmClusterListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudHsmCluster" - } - } - } + className: "CloudHsmCluster", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { @@ -438,13 +410,20 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "PrivateLinkResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { @@ -459,199 +438,184 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DedicatedHsmOperationListResult: coreClient.CompositeMapper = { +export const BackupRestoreRequestBaseProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DedicatedHsmOperationListResult", + className: "BackupRestoreRequestBaseProperties", modelProperties: { - value: { - serializedName: "value", + azureStorageBlobContainerUri: { + serializedName: "azureStorageBlobContainerUri", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DedicatedHsmOperation" - } - } - } - } - } - } + name: "String", + }, + }, + token: { + serializedName: "token", + type: { + name: "String", + }, + }, + }, + }, }; -export const DedicatedHsmOperation: coreClient.CompositeMapper = { +export const BackupResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DedicatedHsmOperation", + className: "BackupResult", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - isDataAction: { - serializedName: "isDataAction", + status: { + serializedName: "properties.status", readOnly: true, type: { - name: "Boolean" - } + name: "String", + }, }, - origin: { - serializedName: "origin", + statusDetails: { + serializedName: "properties.statusDetails", type: { - name: "String" - } + name: "String", + }, }, - display: { - serializedName: "display", + error: { + serializedName: "properties.error", type: { name: "Composite", - className: "DedicatedHsmOperationDisplay" - } - } - } - } -}; - -export const DedicatedHsmOperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHsmOperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", + className: "ErrorDetail", + }, + }, + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "String" - } + name: "DateTime", + }, }, - resource: { - serializedName: "resource", + endTime: { + serializedName: "properties.endTime", + readOnly: true, + nullable: true, type: { - name: "String" - } + name: "DateTime", + }, }, - operation: { - serializedName: "operation", + jobId: { + serializedName: "properties.jobId", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "description", + azureStorageBlobContainerUri: { + serializedName: "properties.azureStorageBlobContainerUri", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + backupId: { + serializedName: "properties.backupId", + type: { + name: "String", + }, + }, + }, + }, }; -export const DedicatedHsmError: coreClient.CompositeMapper = { +export const BackupRestoreBaseResultProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DedicatedHsmError", + className: "BackupRestoreBaseResultProperties", modelProperties: { + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String", + }, + }, + statusDetails: { + serializedName: "statusDetails", + type: { + name: "String", + }, + }, error: { serializedName: "error", type: { name: "Composite", - className: "ErrorModel" - } - } - } - } -}; - -export const ErrorModel: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorModel", - modelProperties: { - code: { - serializedName: "code", + className: "ErrorDetail", + }, + }, + startTime: { + serializedName: "startTime", readOnly: true, type: { - name: "String" - } + name: "DateTime", + }, }, - message: { - serializedName: "message", + endTime: { + serializedName: "endTime", readOnly: true, + nullable: true, type: { - name: "String" - } + name: "DateTime", + }, }, - innerError: { - serializedName: "innererror", + jobId: { + serializedName: "jobId", type: { - name: "Composite", - className: "ErrorModel" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SystemDataAutoGenerated: coreClient.CompositeMapper = { +export const RestoreResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemDataAutoGenerated", + className: "RestoreResult", modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + properties: { + serializedName: "properties", type: { - name: "String" - } + name: "Composite", + className: "BackupRestoreBaseResultProperties", + }, }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + }, + }, +}; + +export const Sku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } + }, + }, }; export const NetworkProfile: coreClient.CompositeMapper = { @@ -663,8 +627,8 @@ export const NetworkProfile: coreClient.CompositeMapper = { serializedName: "subnet", type: { name: "Composite", - className: "ApiEntityReference" - } + className: "ApiEntityReference", + }, }, networkInterfaces: { serializedName: "networkInterfaces", @@ -673,13 +637,13 @@ export const NetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkInterface" - } - } - } - } - } - } + className: "NetworkInterface", + }, + }, + }, + }, + }, + }, }; export const ApiEntityReference: coreClient.CompositeMapper = { @@ -687,14 +651,14 @@ export const ApiEntityReference: coreClient.CompositeMapper = { name: "Composite", className: "ApiEntityReference", modelProperties: { - id: { - serializedName: "id", + resourceId: { + serializedName: "resourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkInterface: coreClient.CompositeMapper = { @@ -702,98 +666,67 @@ export const NetworkInterface: coreClient.CompositeMapper = { name: "Composite", className: "NetworkInterface", modelProperties: { - id: { - serializedName: "id", + resourceId: { + serializedName: "resourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateIpAddress: { serializedName: "privateIpAddress", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DedicatedHsmResource: coreClient.CompositeMapper = { +export const DedicatedHsmError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DedicatedHsmResource", + className: "DedicatedHsmError", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + error: { + serializedName: "error", type: { - name: "String" - } + name: "Composite", + className: "ErrorModel", + }, }, - name: { - serializedName: "name", + }, + }, +}; + +export const ErrorModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorModel", + modelProperties: { + code: { + serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - type: { - serializedName: "type", + message: { + serializedName: "message", readOnly: true, type: { - name: "String" - } - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } + name: "String", + }, }, - sku: { - serializedName: "sku", + innerError: { + serializedName: "innererror", type: { name: "Composite", - className: "Sku" - } - }, - zones: { - serializedName: "zones", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + className: "ErrorModel", + }, }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const Sku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Sku", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - } - } - } + }, + }, }; export const DedicatedHsmPatchParameters: coreClient.CompositeMapper = { @@ -805,11 +738,11 @@ export const DedicatedHsmPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const DedicatedHsmListResult: coreClient.CompositeMapper = { @@ -824,50 +757,51 @@ export const DedicatedHsmListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHsm" - } - } - } + className: "DedicatedHsm", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpointCollection", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpoint" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; +export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpointCollection", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", @@ -876,8 +810,8 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { category: { serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, endpoints: { serializedName: "endpoints", @@ -886,13 +820,13 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDependency" - } - } - } - } - } - } + className: "EndpointDependency", + }, + }, + }, + }, + }, + }, }; export const EndpointDependency: coreClient.CompositeMapper = { @@ -903,8 +837,8 @@ export const EndpointDependency: coreClient.CompositeMapper = { domainName: { serializedName: "domainName", type: { - name: "String" - } + name: "String", + }, }, endpointDetails: { serializedName: "endpointDetails", @@ -913,13 +847,13 @@ export const EndpointDependency: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDetail" - } - } - } - } - } - } + className: "EndpointDetail", + }, + }, + }, + }, + }, + }, }; export const EndpointDetail: coreClient.CompositeMapper = { @@ -930,56 +864,139 @@ export const EndpointDetail: coreClient.CompositeMapper = { ipAddress: { serializedName: "ipAddress", type: { - name: "String" - } + name: "String", + }, }, port: { serializedName: "port", type: { - name: "Number" - } + name: "Number", + }, }, protocol: { serializedName: "protocol", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ResourceListResult: coreClient.CompositeMapper = { +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceListResult", + className: "OperationListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DedicatedHsmResource" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + type: { + name: "Boolean", + }, + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay", + }, + }, + origin: { + serializedName: "origin", + readOnly: true, + type: { + name: "String", + }, + }, + actionType: { + serializedName: "actionType", + readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + readOnly: true, + type: { + name: "String", + }, + }, + resource: { + serializedName: "resource", + readOnly: true, + type: { + name: "String", + }, + }, + operation: { + serializedName: "operation", + readOnly: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -987,9 +1004,9 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "Composite", className: "ProxyResource", modelProperties: { - ...Resource.type.modelProperties - } - } + ...Resource.type.modelProperties, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -1002,18 +1019,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -1026,8 +1043,8 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "properties.groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -1036,10 +1053,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -1047,64 +1064,62 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; -export const DedicatedHsm: coreClient.CompositeMapper = { +export const BackupRequestProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DedicatedHsm", + className: "BackupRequestProperties", modelProperties: { - ...DedicatedHsmResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemDataAutoGenerated" - } - }, - networkProfile: { - serializedName: "properties.networkProfile", - type: { - name: "Composite", - className: "NetworkProfile" - } - }, - managementNetworkProfile: { - serializedName: "properties.managementNetworkProfile", + ...BackupRestoreRequestBaseProperties.type.modelProperties, + }, + }, +}; + +export const RestoreRequestProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestoreRequestProperties", + modelProperties: { + ...BackupRestoreRequestBaseProperties.type.modelProperties, + backupId: { + serializedName: "backupId", + required: true, type: { - name: "Composite", - className: "NetworkProfile" - } + name: "String", + }, }, - stampId: { - serializedName: "properties.stampId", + }, + }, +}; + +export const BackupResultProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BackupResultProperties", + modelProperties: { + ...BackupRestoreBaseResultProperties.type.modelProperties, + azureStorageBlobContainerUri: { + serializedName: "azureStorageBlobContainerUri", type: { - name: "String" - } + name: "String", + }, }, - statusMessage: { - serializedName: "properties.statusMessage", - readOnly: true, + backupId: { + serializedName: "backupId", type: { - name: "String" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -1116,29 +1131,29 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { etag: { serializedName: "etag", type: { - name: "String" - } + name: "String", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + className: "PrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, groupIds: { serializedName: "properties.groupIds", @@ -1147,13 +1162,13 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CloudHsmClusterResource: coreClient.CompositeMapper = { @@ -1162,22 +1177,84 @@ export const CloudHsmClusterResource: coreClient.CompositeMapper = { className: "CloudHsmClusterResource", modelProperties: { ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity", + }, + }, sku: { serializedName: "sku", type: { name: "Composite", - className: "CloudHsmClusterSku" - } + className: "CloudHsmClusterSku", + }, }, - identity: { - serializedName: "identity", + }, + }, +}; + +export const DedicatedHsm: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DedicatedHsm", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku", + }, + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + networkProfile: { + serializedName: "properties.networkProfile", type: { name: "Composite", - className: "ManagedServiceIdentity" - } - } - } - } + className: "NetworkProfile", + }, + }, + managementNetworkProfile: { + serializedName: "properties.managementNetworkProfile", + type: { + name: "Composite", + className: "NetworkProfile", + }, + }, + stampId: { + serializedName: "properties.stampId", + type: { + name: "String", + }, + }, + statusMessage: { + serializedName: "properties.statusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const CloudHsmCluster: coreClient.CompositeMapper = { @@ -1186,78 +1263,67 @@ export const CloudHsmCluster: coreClient.CompositeMapper = { className: "CloudHsmCluster", modelProperties: { ...CloudHsmClusterResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", + activationState: { + serializedName: "properties.activationState", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, autoGeneratedDomainNameLabelScope: { serializedName: "properties.autoGeneratedDomainNameLabelScope", type: { - name: "String" - } - }, - securityDomain: { - serializedName: "properties.securityDomain", - type: { - name: "Composite", - className: "CloudHsmClusterSecurityDomainProperties" - } + name: "String", + }, }, hsms: { serializedName: "properties.hsms", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "CloudHsmProperties" - } - } - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" - } + className: "CloudHsmProperties", + }, + }, + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, - statusMessage: { - serializedName: "properties.statusMessage", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - restoreProperties: { - serializedName: "properties.restoreProperties", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { - name: "Composite", - className: "RestoreProperties" - } + name: "String", + }, }, - backupProperties: { - serializedName: "properties.backupProperties", + statusMessage: { + serializedName: "properties.statusMessage", + readOnly: true, type: { - name: "Composite", - className: "BackupProperties" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudHsmClustersUpdateHeaders: coreClient.CompositeMapper = { @@ -1268,11 +1334,11 @@ export const CloudHsmClustersUpdateHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudHsmClustersDeleteHeaders: coreClient.CompositeMapper = { @@ -1283,24 +1349,181 @@ export const CloudHsmClustersDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const CloudHsmClustersValidateBackupPropertiesHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CloudHsmClustersValidateBackupPropertiesHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const CloudHsmClustersBackupHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudHsmClustersBackupHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CloudHsmClustersValidateRestorePropertiesHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CloudHsmClustersValidateRestorePropertiesHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const CloudHsmClustersRestoreHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudHsmClustersRestoreHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const CloudHsmClusterBackupStatusGetHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CloudHsmClusterBackupStatusGetHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const CloudHsmClusterBackupStatusGetExceptionHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CloudHsmClusterBackupStatusGetExceptionHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const CloudHsmClusterRestoreStatusGetHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CloudHsmClusterRestoreStatusGetHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const CloudHsmClusterRestoreStatusGetExceptionHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CloudHsmClusterRestoreStatusGetExceptionHeaders", + modelProperties: { + xMsRequestId: { + serializedName: "x-ms-request-id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const DedicatedHsmUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DedicatedHsmUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, }; -export const CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper = { +export const DedicatedHsmDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders", + className: "DedicatedHsmDeleteHeaders", modelProperties: { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/models/parameters.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/models/parameters.ts index 81712175b553..c475f999c35d 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/models/parameters.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/models/parameters.ts @@ -9,14 +9,16 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { CloudHsmCluster as CloudHsmClusterMapper, CloudHsmClusterPatchParameters as CloudHsmClusterPatchParametersMapper, + BackupRequestProperties as BackupRequestPropertiesMapper, + RestoreRequestProperties as RestoreRequestPropertiesMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, DedicatedHsm as DedicatedHsmMapper, - DedicatedHsmPatchParameters as DedicatedHsmPatchParametersMapper + DedicatedHsmPatchParameters as DedicatedHsmPatchParametersMapper, } from "../models/mappers"; export const contentType: OperationParameter = { @@ -26,9 +28,9 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const accept: OperationParameter = { @@ -38,69 +40,39 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const tags: OperationParameter = { parameterPath: ["options", "tags"], - mapper: CloudHsmClusterMapper + mapper: CloudHsmClusterMapper, }; export const location: OperationParameter = { parameterPath: "location", - mapper: CloudHsmClusterMapper -}; - -export const sku: OperationParameter = { - parameterPath: ["options", "sku"], - mapper: CloudHsmClusterMapper + mapper: CloudHsmClusterMapper, }; export const identity: OperationParameter = { parameterPath: ["options", "identity"], - mapper: CloudHsmClusterMapper + mapper: CloudHsmClusterMapper, }; -export const provisioningState: OperationParameter = { - parameterPath: ["options", "provisioningState"], - mapper: CloudHsmClusterMapper +export const sku: OperationParameter = { + parameterPath: ["options", "sku"], + mapper: CloudHsmClusterMapper, }; export const autoGeneratedDomainNameLabelScope: OperationParameter = { parameterPath: ["options", "autoGeneratedDomainNameLabelScope"], - mapper: CloudHsmClusterMapper -}; - -export const securityDomain: OperationParameter = { - parameterPath: ["options", "securityDomain"], - mapper: CloudHsmClusterMapper -}; - -export const hsms: OperationParameter = { - parameterPath: ["options", "hsms"], - mapper: CloudHsmClusterMapper + mapper: CloudHsmClusterMapper, }; export const publicNetworkAccess: OperationParameter = { parameterPath: ["options", "publicNetworkAccess"], - mapper: CloudHsmClusterMapper -}; - -export const privateEndpointConnections: OperationParameter = { - parameterPath: ["options", "privateEndpointConnections"], - mapper: CloudHsmClusterMapper -}; - -export const restoreProperties: OperationParameter = { - parameterPath: ["options", "restoreProperties"], - mapper: CloudHsmClusterMapper -}; - -export const backupProperties: OperationParameter = { - parameterPath: ["options", "backupProperties"], - mapper: CloudHsmClusterMapper + mapper: CloudHsmClusterMapper, }; export const $host: OperationURLParameter = { @@ -109,10 +81,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { @@ -121,9 +93,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "Uuid" - } - } + name: "Uuid", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -131,62 +103,52 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const cloudHsmClusterName: OperationURLParameter = { parameterPath: "cloudHsmClusterName", mapper: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$"), - MaxLength: 24, - MinLength: 3 + Pattern: new RegExp("^[a-zA-Z0-9-]{3,23}$"), + MaxLength: 23, + MinLength: 3, }, serializedName: "cloudHsmClusterName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-12-10-preview", + defaultValue: "2024-06-30-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const tags1: OperationParameter = { parameterPath: ["options", "tags"], - mapper: CloudHsmClusterPatchParametersMapper -}; - -export const sku1: OperationParameter = { - parameterPath: ["options", "sku"], - mapper: CloudHsmClusterPatchParametersMapper + mapper: CloudHsmClusterPatchParametersMapper, }; export const identity1: OperationParameter = { parameterPath: ["options", "identity"], - mapper: CloudHsmClusterPatchParametersMapper -}; - -export const backupProperties1: OperationParameter = { - parameterPath: ["options", "backupProperties"], - mapper: CloudHsmClusterPatchParametersMapper + mapper: CloudHsmClusterPatchParametersMapper, }; export const skiptoken: OperationQueryParameter = { @@ -194,9 +156,24 @@ export const skiptoken: OperationQueryParameter = { mapper: { serializedName: "$skiptoken", type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const backupRequestProperties: OperationParameter = { + parameterPath: ["options", "backupRequestProperties"], + mapper: BackupRequestPropertiesMapper, +}; + +export const restoreRequestProperties: OperationParameter = { + parameterPath: ["options", "restoreRequestProperties"], + mapper: RestoreRequestPropertiesMapper, +}; + +export const restoreRequestProperties1: OperationParameter = { + parameterPath: "restoreRequestProperties", + mapper: RestoreRequestPropertiesMapper, }; export const nextLink: OperationURLParameter = { @@ -205,15 +182,15 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const properties: OperationParameter = { parameterPath: "properties", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const peConnectionName: OperationURLParameter = { @@ -222,72 +199,49 @@ export const peConnectionName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$"), MaxLength: 24, - MinLength: 3 + MinLength: 3, }, serializedName: "peConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const apiVersion1: OperationQueryParameter = { - parameterPath: "apiVersion", +export const jobId: OperationURLParameter = { + parameterPath: "jobId", mapper: { - defaultValue: "2021-11-30", - isConstant: true, - serializedName: "api-version", + serializedName: "jobId", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHsmMapper -}; - -export const resourceGroupName1: OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - serializedName: "resourceGroupName", - required: true, - type: { - name: "String" - } - } + mapper: DedicatedHsmMapper, }; export const name: OperationURLParameter = { parameterPath: "name", mapper: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$") + Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$"), }, serializedName: "name", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const tags2: OperationParameter = { parameterPath: ["options", "tags"], - mapper: DedicatedHsmPatchParametersMapper -}; - -export const name1: OperationURLParameter = { - parameterPath: "name", - mapper: { - serializedName: "name", - required: true, - type: { - name: "String" - } - } + mapper: DedicatedHsmPatchParametersMapper, }; export const top: OperationQueryParameter = { @@ -295,7 +249,7 @@ export const top: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterBackupStatus.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterBackupStatus.ts new file mode 100644 index 000000000000..f38c1ddd51ae --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterBackupStatus.ts @@ -0,0 +1,82 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { CloudHsmClusterBackupStatus } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureHSMResourceProvider } from "../azureHSMResourceProvider"; +import { + CloudHsmClusterBackupStatusGetOptionalParams, + CloudHsmClusterBackupStatusGetResponse, +} from "../models"; + +/** Class containing CloudHsmClusterBackupStatus operations. */ +export class CloudHsmClusterBackupStatusImpl + implements CloudHsmClusterBackupStatus +{ + private readonly client: AzureHSMResourceProvider; + + /** + * Initialize a new instance of the class CloudHsmClusterBackupStatus class. + * @param client Reference to the service client + */ + constructor(client: AzureHSMResourceProvider) { + this.client = client; + } + + /** + * Gets the backup operation status of the specified Cloud HSM Cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param jobId The id returned as part of the backup request + * @param options The options parameters. + */ + get( + resourceGroupName: string, + cloudHsmClusterName: string, + jobId: string, + options?: CloudHsmClusterBackupStatusGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, cloudHsmClusterName, jobId, options }, + getOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backupOperationStatus/{jobId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BackupResult, + headersMapper: Mappers.CloudHsmClusterBackupStatusGetHeaders, + }, + 202: { + headersMapper: Mappers.CloudHsmClusterBackupStatusGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.CloudHsmClusterBackupStatusGetExceptionHeaders, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.cloudHsmClusterName, + Parameters.jobId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterPrivateEndpointConnections.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterPrivateEndpointConnections.ts index 5f1aa7e35082..0614a145e9c8 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterPrivateEndpointConnections.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterPrivateEndpointConnections.ts @@ -14,7 +14,7 @@ import { AzureHSMResourceProvider } from "../azureHSMResourceProvider"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -22,13 +22,15 @@ import { CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams, CloudHsmClusterPrivateEndpointConnectionsCreateResponse, CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams, + CloudHsmClusterPrivateEndpointConnectionsDeleteResponse, CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams, - CloudHsmClusterPrivateEndpointConnectionsGetResponse + CloudHsmClusterPrivateEndpointConnectionsGetResponse, } from "../models"; /** Class containing CloudHsmClusterPrivateEndpointConnections operations. */ export class CloudHsmClusterPrivateEndpointConnectionsImpl - implements CloudHsmClusterPrivateEndpointConnections { + implements CloudHsmClusterPrivateEndpointConnections +{ private readonly client: AzureHSMResourceProvider; /** @@ -43,7 +45,7 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl * Creates or updates the private endpoint connection for the Cloud Hsm Cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM * Cluster. * @param properties Parameters of the PrivateEndpointConnection @@ -54,7 +56,7 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl cloudHsmClusterName: string, peConnectionName: string, properties: PrivateEndpointConnection, - options?: CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams + options?: CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -62,9 +64,9 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl cloudHsmClusterName, peConnectionName, properties, - options + options, }, - createOperationSpec + createOperationSpec, ); } @@ -72,7 +74,7 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl * Deletes the private endpoint connection for the Cloud Hsm Cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM * Cluster. * @param options The options parameters. @@ -81,25 +83,29 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, - options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams - ): Promise, void>> { + options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudHsmClusterPrivateEndpointConnectionsDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -108,8 +114,8 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -117,8 +123,8 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -128,14 +134,17 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl resourceGroupName, cloudHsmClusterName, peConnectionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + CloudHsmClusterPrivateEndpointConnectionsDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -145,7 +154,7 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl * Deletes the private endpoint connection for the Cloud Hsm Cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM * Cluster. * @param options The options parameters. @@ -154,13 +163,13 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, - options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams - ): Promise { + options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, cloudHsmClusterName, peConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -169,7 +178,7 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl * Gets the private endpoint connection for the Cloud Hsm Cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM * Cluster. * @param options The options parameters. @@ -178,11 +187,11 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, - options?: CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams + options?: CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudHsmClusterName, peConnectionName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -190,16 +199,15 @@ export class CloudHsmClusterPrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.properties, queryParameters: [Parameters.apiVersion], @@ -208,24 +216,35 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudHsmClusterName, - Parameters.peConnectionName + Parameters.peConnectionName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: + Mappers.CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders, + }, + 201: { + headersMapper: + Mappers.CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders, + }, + 202: { + headersMapper: + Mappers.CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders, + }, + 204: { + headersMapper: + Mappers.CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders, + }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -233,22 +252,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudHsmClusterName, - Parameters.peConnectionName + Parameters.peConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -256,8 +274,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudHsmClusterName, - Parameters.peConnectionName + Parameters.peConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterPrivateLinkResources.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterPrivateLinkResources.ts index d893995f9182..bc0fd6288e99 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterPrivateLinkResources.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterPrivateLinkResources.ts @@ -6,19 +6,26 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { CloudHsmClusterPrivateLinkResources } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureHSMResourceProvider } from "../azureHSMResourceProvider"; import { + PrivateLinkResource, + CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterNextOptionalParams, CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams, - CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse + CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse, + CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterNextResponse, } from "../models"; +/// /** Class containing CloudHsmClusterPrivateLinkResources operations. */ export class CloudHsmClusterPrivateLinkResourcesImpl - implements CloudHsmClusterPrivateLinkResources { + implements CloudHsmClusterPrivateLinkResources +{ private readonly client: AzureHSMResourceProvider; /** @@ -33,17 +40,122 @@ export class CloudHsmClusterPrivateLinkResourcesImpl * Gets the private link resources supported for the Cloud Hsm Cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ - listByCloudHsmCluster( + public listByCloudHsmCluster( resourceGroupName: string, cloudHsmClusterName: string, - options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams + options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByCloudHsmClusterPagingAll( + resourceGroupName, + cloudHsmClusterName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByCloudHsmClusterPagingPage( + resourceGroupName, + cloudHsmClusterName, + options, + settings, + ); + }, + }; + } + + private async *listByCloudHsmClusterPagingPage( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByCloudHsmCluster( + resourceGroupName, + cloudHsmClusterName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByCloudHsmClusterNext( + resourceGroupName, + cloudHsmClusterName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByCloudHsmClusterPagingAll( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByCloudHsmClusterPagingPage( + resourceGroupName, + cloudHsmClusterName, + options, + )) { + yield* page; + } + } + + /** + * Gets the private link resources supported for the Cloud Hsm Cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + private _listByCloudHsmCluster( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudHsmClusterName, options }, - listByCloudHsmClusterOperationSpec + listByCloudHsmClusterOperationSpec, + ); + } + + /** + * ListByCloudHsmClusterNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param nextLink The nextLink from the previous successful call to the ListByCloudHsmCluster method. + * @param options The options parameters. + */ + private _listByCloudHsmClusterNext( + resourceGroupName: string, + cloudHsmClusterName: string, + nextLink: string, + options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, cloudHsmClusterName, nextLink, options }, + listByCloudHsmClusterNextOperationSpec, ); } } @@ -51,24 +163,44 @@ export class CloudHsmClusterPrivateLinkResourcesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByCloudHsmClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.PrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudHsmClusterName + Parameters.cloudHsmClusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByCloudHsmClusterNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.cloudHsmClusterName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterRestoreStatus.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterRestoreStatus.ts new file mode 100644 index 000000000000..ab49dadbb9f2 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusterRestoreStatus.ts @@ -0,0 +1,82 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { CloudHsmClusterRestoreStatus } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureHSMResourceProvider } from "../azureHSMResourceProvider"; +import { + CloudHsmClusterRestoreStatusGetOptionalParams, + CloudHsmClusterRestoreStatusGetResponse, +} from "../models"; + +/** Class containing CloudHsmClusterRestoreStatus operations. */ +export class CloudHsmClusterRestoreStatusImpl + implements CloudHsmClusterRestoreStatus +{ + private readonly client: AzureHSMResourceProvider; + + /** + * Initialize a new instance of the class CloudHsmClusterRestoreStatus class. + * @param client Reference to the service client + */ + constructor(client: AzureHSMResourceProvider) { + this.client = client; + } + + /** + * Gets the restore operation status of the specified Cloud HSM Cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param jobId The id returned as part of the backup request + * @param options The options parameters. + */ + get( + resourceGroupName: string, + cloudHsmClusterName: string, + jobId: string, + options?: CloudHsmClusterRestoreStatusGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, cloudHsmClusterName, jobId, options }, + getOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restoreOperationStatus/{jobId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RestoreResult, + headersMapper: Mappers.CloudHsmClusterRestoreStatusGetHeaders, + }, + 202: { + headersMapper: Mappers.CloudHsmClusterRestoreStatusGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + headersMapper: Mappers.CloudHsmClusterRestoreStatusGetExceptionHeaders, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.cloudHsmClusterName, + Parameters.jobId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusters.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusters.ts index 7f25b8124c50..129b326225af 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusters.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/cloudHsmClusters.ts @@ -16,7 +16,7 @@ import { AzureHSMResourceProvider } from "../azureHSMResourceProvider"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -34,8 +34,18 @@ import { CloudHsmClustersGetOptionalParams, CloudHsmClustersGetResponse, CloudHsmClustersDeleteOptionalParams, + CloudHsmClustersDeleteResponse, + CloudHsmClustersValidateBackupPropertiesOptionalParams, + CloudHsmClustersValidateBackupPropertiesResponse, + CloudHsmClustersBackupOptionalParams, + CloudHsmClustersBackupResponse, + CloudHsmClustersValidateRestorePropertiesOptionalParams, + CloudHsmClustersValidateRestorePropertiesResponse, + RestoreRequestProperties, + CloudHsmClustersRestoreOptionalParams, + CloudHsmClustersRestoreResponse, CloudHsmClustersListByResourceGroupNextResponse, - CloudHsmClustersListBySubscriptionNextResponse + CloudHsmClustersListBySubscriptionNextResponse, } from "../models"; /// @@ -59,7 +69,7 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { */ public listByResourceGroup( resourceGroupName: string, - options?: CloudHsmClustersListByResourceGroupOptionalParams + options?: CloudHsmClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -76,16 +86,16 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: CloudHsmClustersListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudHsmClustersListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +110,7 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -111,11 +121,11 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: CloudHsmClustersListByResourceGroupOptionalParams + options?: CloudHsmClustersListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -126,7 +136,7 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { * @param options The options parameters. */ public listBySubscription( - options?: CloudHsmClustersListBySubscriptionOptionalParams + options?: CloudHsmClustersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -141,13 +151,13 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: CloudHsmClustersListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudHsmClustersListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -168,7 +178,7 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { } private async *listBySubscriptionPagingAll( - options?: CloudHsmClustersListBySubscriptionOptionalParams + options?: CloudHsmClustersListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -179,7 +189,7 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { * Create or Update a Cloud HSM Cluster in the specified subscription. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param location The geo-location where the resource lives * @param options The options parameters. */ @@ -187,7 +197,7 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { resourceGroupName: string, cloudHsmClusterName: string, location: string, - options?: CloudHsmClustersCreateOrUpdateOptionalParams + options?: CloudHsmClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -196,21 +206,20 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -219,8 +228,8 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -228,15 +237,15 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudHsmClusterName, location, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CloudHsmClustersCreateOrUpdateResponse, @@ -244,7 +253,7 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "original-uri" + resourceLocationConfig: "original-uri", }); await poller.poll(); return poller; @@ -254,7 +263,7 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { * Create or Update a Cloud HSM Cluster in the specified subscription. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param location The geo-location where the resource lives * @param options The options parameters. */ @@ -262,13 +271,13 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { resourceGroupName: string, cloudHsmClusterName: string, location: string, - options?: CloudHsmClustersCreateOrUpdateOptionalParams + options?: CloudHsmClustersCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, cloudHsmClusterName, location, - options + options, ); return poller.pollUntilDone(); } @@ -277,13 +286,13 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { * Update a Cloud HSM Cluster in the specified subscription. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ async beginUpdate( resourceGroupName: string, cloudHsmClusterName: string, - options?: CloudHsmClustersUpdateOptionalParams + options?: CloudHsmClustersUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -292,21 +301,20 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -315,8 +323,8 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -324,15 +332,15 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudHsmClusterName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< CloudHsmClustersUpdateResponse, @@ -340,7 +348,7 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -350,18 +358,18 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { * Update a Cloud HSM Cluster in the specified subscription. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ async beginUpdateAndWait( resourceGroupName: string, cloudHsmClusterName: string, - options?: CloudHsmClustersUpdateOptionalParams + options?: CloudHsmClustersUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, cloudHsmClusterName, - options + options, ); return poller.pollUntilDone(); } @@ -370,17 +378,17 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { * Gets the specified Cloud HSM Cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ get( resourceGroupName: string, cloudHsmClusterName: string, - options?: CloudHsmClustersGetOptionalParams + options?: CloudHsmClustersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudHsmClusterName, options }, - getOperationSpec + getOperationSpec, ); } @@ -388,31 +396,35 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { * Deletes the specified Cloud HSM Cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, cloudHsmClusterName: string, - options?: CloudHsmClustersDeleteOptionalParams - ): Promise, void>> { + options?: CloudHsmClustersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudHsmClustersDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -421,8 +433,8 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -430,20 +442,23 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudHsmClusterName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + CloudHsmClustersDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -453,18 +468,18 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { * Deletes the specified Cloud HSM Cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, cloudHsmClusterName: string, - options?: CloudHsmClustersDeleteOptionalParams - ): Promise { + options?: CloudHsmClustersDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, cloudHsmClusterName, - options + options, ); return poller.pollUntilDone(); } @@ -477,11 +492,11 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { */ private _listByResourceGroup( resourceGroupName: string, - options?: CloudHsmClustersListByResourceGroupOptionalParams + options?: CloudHsmClustersListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -490,14 +505,394 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { * @param options The options parameters. */ private _listBySubscription( - options?: CloudHsmClustersListBySubscriptionOptionalParams + options?: CloudHsmClustersListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } + /** + * Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster + * resource in the specified subscription. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + async beginValidateBackupProperties( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClustersValidateBackupPropertiesOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudHsmClustersValidateBackupPropertiesResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudHsmClusterName, options }, + spec: validateBackupPropertiesOperationSpec, + }); + const poller = await createHttpPoller< + CloudHsmClustersValidateBackupPropertiesResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster + * resource in the specified subscription. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + async beginValidateBackupPropertiesAndWait( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClustersValidateBackupPropertiesOptionalParams, + ): Promise { + const poller = await this.beginValidateBackupProperties( + resourceGroupName, + cloudHsmClusterName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Create a backup of the Cloud HSM Cluster in the specified subscription + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + async beginBackup( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClustersBackupOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudHsmClustersBackupResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudHsmClusterName, options }, + spec: backupOperationSpec, + }); + const poller = await createHttpPoller< + CloudHsmClustersBackupResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Create a backup of the Cloud HSM Cluster in the specified subscription + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + async beginBackupAndWait( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClustersBackupOptionalParams, + ): Promise { + const poller = await this.beginBackup( + resourceGroupName, + cloudHsmClusterName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Queued validating pre restore operation + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + async beginValidateRestoreProperties( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClustersValidateRestorePropertiesOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudHsmClustersValidateRestorePropertiesResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, cloudHsmClusterName, options }, + spec: validateRestorePropertiesOperationSpec, + }); + const poller = await createHttpPoller< + CloudHsmClustersValidateRestorePropertiesResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Queued validating pre restore operation + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + async beginValidateRestorePropertiesAndWait( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClustersValidateRestorePropertiesOptionalParams, + ): Promise { + const poller = await this.beginValidateRestoreProperties( + resourceGroupName, + cloudHsmClusterName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Restores all key materials of a specified Cloud HSM Cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param restoreRequestProperties Restore Operation Required properties + * @param options The options parameters. + */ + async beginRestore( + resourceGroupName: string, + cloudHsmClusterName: string, + restoreRequestProperties: RestoreRequestProperties, + options?: CloudHsmClustersRestoreOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudHsmClustersRestoreResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + cloudHsmClusterName, + restoreRequestProperties, + options, + }, + spec: restoreOperationSpec, + }); + const poller = await createHttpPoller< + CloudHsmClustersRestoreResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Restores all key materials of a specified Cloud HSM Cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param restoreRequestProperties Restore Operation Required properties + * @param options The options parameters. + */ + async beginRestoreAndWait( + resourceGroupName: string, + cloudHsmClusterName: string, + restoreRequestProperties: RestoreRequestProperties, + options?: CloudHsmClustersRestoreOptionalParams, + ): Promise { + const poller = await this.beginRestore( + resourceGroupName, + cloudHsmClusterName, + restoreRequestProperties, + options, + ); + return poller.pollUntilDone(); + } + /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -507,11 +902,11 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: CloudHsmClustersListByResourceGroupNextOptionalParams + options?: CloudHsmClustersListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -522,11 +917,11 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { */ private _listBySubscriptionNext( nextLink: string, - options?: CloudHsmClustersListBySubscriptionNextOptionalParams + options?: CloudHsmClustersListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -534,217 +929,355 @@ export class CloudHsmClustersImpl implements CloudHsmClusters { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CloudHsmCluster + bodyMapper: Mappers.CloudHsmCluster, }, 201: { - bodyMapper: Mappers.CloudHsmCluster + bodyMapper: Mappers.CloudHsmCluster, }, 202: { - bodyMapper: Mappers.CloudHsmCluster + bodyMapper: Mappers.CloudHsmCluster, }, 204: { - bodyMapper: Mappers.CloudHsmCluster + bodyMapper: Mappers.CloudHsmCluster, }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: { parameterPath: { tags: ["options", "tags"], location: ["location"], - sku: ["options", "sku"], identity: ["options", "identity"], - provisioningState: ["options", "provisioningState"], + sku: ["options", "sku"], autoGeneratedDomainNameLabelScope: [ "options", - "autoGeneratedDomainNameLabelScope" + "autoGeneratedDomainNameLabelScope", ], - securityDomain: ["options", "securityDomain"], - hsms: ["options", "hsms"], publicNetworkAccess: ["options", "publicNetworkAccess"], - privateEndpointConnections: ["options", "privateEndpointConnections"], - restoreProperties: ["options", "restoreProperties"], - backupProperties: ["options", "backupProperties"] }, - mapper: { ...Mappers.CloudHsmCluster, required: true } + mapper: { ...Mappers.CloudHsmCluster, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudHsmClusterName + Parameters.cloudHsmClusterName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CloudHsmCluster + bodyMapper: Mappers.CloudHsmCluster, }, 201: { - bodyMapper: Mappers.CloudHsmCluster + bodyMapper: Mappers.CloudHsmCluster, }, 202: { - bodyMapper: Mappers.CloudHsmCluster + bodyMapper: Mappers.CloudHsmCluster, }, 204: { - bodyMapper: Mappers.CloudHsmCluster + bodyMapper: Mappers.CloudHsmCluster, }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: { parameterPath: { tags: ["options", "tags"], - sku: ["options", "sku"], identity: ["options", "identity"], - backupProperties: ["options", "backupProperties"] }, - mapper: { ...Mappers.CloudHsmClusterPatchParameters, required: true } + mapper: { ...Mappers.CloudHsmClusterPatchParameters, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudHsmClusterName + Parameters.cloudHsmClusterName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudHsmCluster + bodyMapper: Mappers.CloudHsmCluster, }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudHsmClusterName + Parameters.cloudHsmClusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.CloudHsmClustersDeleteHeaders, + }, + 201: { + headersMapper: Mappers.CloudHsmClustersDeleteHeaders, + }, + 202: { + headersMapper: Mappers.CloudHsmClustersDeleteHeaders, + }, + 204: { + headersMapper: Mappers.CloudHsmClustersDeleteHeaders, + }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudHsmClusterName + Parameters.cloudHsmClusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudHsmClusterListResult + bodyMapper: Mappers.CloudHsmClusterListResult, }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skiptoken], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudHsmClusterListResult + bodyMapper: Mappers.CloudHsmClusterListResult, }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skiptoken], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const validateBackupPropertiesOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateBackupProperties", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.BackupResult, + headersMapper: Mappers.CloudHsmClustersValidateBackupPropertiesHeaders, + }, + 201: { + bodyMapper: Mappers.BackupResult, + headersMapper: Mappers.CloudHsmClustersValidateBackupPropertiesHeaders, + }, + 202: { + bodyMapper: Mappers.BackupResult, + headersMapper: Mappers.CloudHsmClustersValidateBackupPropertiesHeaders, + }, + 204: { + bodyMapper: Mappers.BackupResult, + headersMapper: Mappers.CloudHsmClustersValidateBackupPropertiesHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.backupRequestProperties, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.cloudHsmClusterName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; +const backupOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backup", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.BackupResult, + headersMapper: Mappers.CloudHsmClustersBackupHeaders, + }, + 201: { + bodyMapper: Mappers.BackupResult, + headersMapper: Mappers.CloudHsmClustersBackupHeaders, + }, + 202: { + bodyMapper: Mappers.BackupResult, + headersMapper: Mappers.CloudHsmClustersBackupHeaders, + }, + 204: { + bodyMapper: Mappers.BackupResult, + headersMapper: Mappers.CloudHsmClustersBackupHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.backupRequestProperties, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.cloudHsmClusterName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; +const validateRestorePropertiesOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateRestoreProperties", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RestoreResult, + headersMapper: Mappers.CloudHsmClustersValidateRestorePropertiesHeaders, + }, + 201: { + bodyMapper: Mappers.RestoreResult, + headersMapper: Mappers.CloudHsmClustersValidateRestorePropertiesHeaders, + }, + 202: { + bodyMapper: Mappers.RestoreResult, + headersMapper: Mappers.CloudHsmClustersValidateRestorePropertiesHeaders, + }, + 204: { + bodyMapper: Mappers.RestoreResult, + headersMapper: Mappers.CloudHsmClustersValidateRestorePropertiesHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.restoreRequestProperties, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.cloudHsmClusterName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; +const restoreOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restore", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RestoreResult, + headersMapper: Mappers.CloudHsmClustersRestoreHeaders, + }, + 201: { + bodyMapper: Mappers.RestoreResult, + headersMapper: Mappers.CloudHsmClustersRestoreHeaders, + }, + 202: { + bodyMapper: Mappers.RestoreResult, + headersMapper: Mappers.CloudHsmClustersRestoreHeaders, + }, + 204: { + bodyMapper: Mappers.RestoreResult, + headersMapper: Mappers.CloudHsmClustersRestoreHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.restoreRequestProperties1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.cloudHsmClusterName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudHsmClusterListResult + bodyMapper: Mappers.CloudHsmClusterListResult, }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudHsmClusterListResult + bodyMapper: Mappers.CloudHsmClusterListResult, }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/dedicatedHsmOperations.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/dedicatedHsmOperations.ts index 3f86e532ddb3..6899280f8ead 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/dedicatedHsmOperations.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/dedicatedHsmOperations.ts @@ -16,7 +16,7 @@ import { AzureHSMResourceProvider } from "../azureHSMResourceProvider"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,11 +36,12 @@ import { DedicatedHsmUpdateOptionalParams, DedicatedHsmUpdateResponse, DedicatedHsmDeleteOptionalParams, + DedicatedHsmDeleteResponse, DedicatedHsmGetOptionalParams, DedicatedHsmGetResponse, DedicatedHsmListByResourceGroupNextResponse, DedicatedHsmListBySubscriptionNextResponse, - DedicatedHsmListOutboundNetworkDependenciesEndpointsNextResponse + DedicatedHsmListOutboundNetworkDependenciesEndpointsNextResponse, } from "../models"; /// @@ -59,12 +60,12 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { /** * The List operation gets information about the dedicated hsms associated with the subscription and * within the specified resource group. - * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public listByResourceGroup( resourceGroupName: string, - options?: DedicatedHsmListByResourceGroupOptionalParams + options?: DedicatedHsmListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -81,16 +82,16 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DedicatedHsmListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHsmListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -105,7 +106,7 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,11 +117,11 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DedicatedHsmListByResourceGroupOptionalParams + options?: DedicatedHsmListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -131,7 +132,7 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { * @param options The options parameters. */ public listBySubscription( - options?: DedicatedHsmListBySubscriptionOptionalParams + options?: DedicatedHsmListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -146,13 +147,13 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: DedicatedHsmListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHsmListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -173,7 +174,7 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { } private async *listBySubscriptionPagingAll( - options?: DedicatedHsmListBySubscriptionOptionalParams + options?: DedicatedHsmListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -183,19 +184,19 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified * dedicated hsm resource. The operation returns properties of each egress endpoint. - * @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs. - * @param name The name of the dedicated HSM. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ public listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, name: string, - options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams + options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll( resourceGroupName, name, - options + options, ); return { next() { @@ -212,9 +213,9 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { resourceGroupName, name, options, - settings + settings, ); - } + }, }; } @@ -222,7 +223,7 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { resourceGroupName: string, name: string, options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHsmListOutboundNetworkDependenciesEndpointsResponse; let continuationToken = settings?.continuationToken; @@ -230,7 +231,7 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { result = await this._listOutboundNetworkDependenciesEndpoints( resourceGroupName, name, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -242,7 +243,7 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { resourceGroupName, name, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -254,12 +255,12 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { private async *listOutboundNetworkDependenciesEndpointsPagingAll( resourceGroupName: string, name: string, - options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams + options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage( resourceGroupName, name, - options + options, )) { yield* page; } @@ -267,7 +268,7 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { /** * Create or Update a dedicated HSM in the specified subscription. - * @param resourceGroupName The name of the Resource Group to which the resource belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name Name of the dedicated Hsm * @param parameters Parameters to create or update the dedicated hsm * @param options The options parameters. @@ -276,7 +277,7 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { resourceGroupName: string, name: string, parameters: DedicatedHsm, - options?: DedicatedHsmCreateOrUpdateOptionalParams + options?: DedicatedHsmCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -285,21 +286,20 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -308,8 +308,8 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -317,22 +317,22 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, name, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DedicatedHsmCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -340,7 +340,7 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { /** * Create or Update a dedicated HSM in the specified subscription. - * @param resourceGroupName The name of the Resource Group to which the resource belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name Name of the dedicated Hsm * @param parameters Parameters to create or update the dedicated hsm * @param options The options parameters. @@ -349,27 +349,27 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { resourceGroupName: string, name: string, parameters: DedicatedHsm, - options?: DedicatedHsmCreateOrUpdateOptionalParams + options?: DedicatedHsmCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, name, parameters, - options + options, ); return poller.pollUntilDone(); } /** * Update a dedicated HSM in the specified subscription. - * @param resourceGroupName The name of the Resource Group to which the server belongs. - * @param name Name of the dedicated HSM + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ async beginUpdate( resourceGroupName: string, name: string, - options?: DedicatedHsmUpdateOptionalParams + options?: DedicatedHsmUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -378,21 +378,20 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -401,8 +400,8 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -410,22 +409,22 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, name, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DedicatedHsmUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -433,14 +432,14 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { /** * Update a dedicated HSM in the specified subscription. - * @param resourceGroupName The name of the Resource Group to which the server belongs. - * @param name Name of the dedicated HSM + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ async beginUpdateAndWait( resourceGroupName: string, name: string, - options?: DedicatedHsmUpdateOptionalParams + options?: DedicatedHsmUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate(resourceGroupName, name, options); return poller.pollUntilDone(); @@ -448,32 +447,36 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { /** * Deletes the specified Azure Dedicated HSM. - * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs. - * @param name The name of the dedicated HSM to delete + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ async beginDelete( resourceGroupName: string, name: string, - options?: DedicatedHsmDeleteOptionalParams - ): Promise, void>> { + options?: DedicatedHsmDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DedicatedHsmDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -482,8 +485,8 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -491,19 +494,22 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, name, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + DedicatedHsmDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -511,49 +517,49 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { /** * Deletes the specified Azure Dedicated HSM. - * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs. - * @param name The name of the dedicated HSM to delete + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, name: string, - options?: DedicatedHsmDeleteOptionalParams - ): Promise { + options?: DedicatedHsmDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete(resourceGroupName, name, options); return poller.pollUntilDone(); } /** * Gets the specified Azure dedicated HSM. - * @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs. - * @param name The name of the dedicated HSM. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ get( resourceGroupName: string, name: string, - options?: DedicatedHsmGetOptionalParams + options?: DedicatedHsmGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, options }, - getOperationSpec + getOperationSpec, ); } /** * The List operation gets information about the dedicated hsms associated with the subscription and * within the specified resource group. - * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listByResourceGroup( resourceGroupName: string, - options?: DedicatedHsmListByResourceGroupOptionalParams + options?: DedicatedHsmListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -562,46 +568,46 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { * @param options The options parameters. */ private _listBySubscription( - options?: DedicatedHsmListBySubscriptionOptionalParams + options?: DedicatedHsmListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified * dedicated hsm resource. The operation returns properties of each egress endpoint. - * @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs. - * @param name The name of the dedicated HSM. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ private _listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, name: string, - options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams + options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, options }, - listOutboundNetworkDependenciesEndpointsOperationSpec + listOutboundNetworkDependenciesEndpointsOperationSpec, ); } /** * ListByResourceGroupNext - * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. * @param options The options parameters. */ private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DedicatedHsmListByResourceGroupNextOptionalParams + options?: DedicatedHsmListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -612,18 +618,18 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { */ private _listBySubscriptionNext( nextLink: string, - options?: DedicatedHsmListBySubscriptionNextOptionalParams + options?: DedicatedHsmListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } /** * ListOutboundNetworkDependenciesEndpointsNext - * @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs. - * @param name The name of the dedicated HSM. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param nextLink The nextLink from the previous successful call to the * ListOutboundNetworkDependenciesEndpoints method. * @param options The options parameters. @@ -632,11 +638,11 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { resourceGroupName: string, name: string, nextLink: string, - options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsNextOptionalParams + options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, nextLink, options }, - listOutboundNetworkDependenciesEndpointsNextOperationSpec + listOutboundNetworkDependenciesEndpointsNextOperationSpec, ); } } @@ -644,236 +650,239 @@ export class DedicatedHsmOperationsImpl implements DedicatedHsmOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DedicatedHsm + bodyMapper: Mappers.DedicatedHsm, }, 201: { - bodyMapper: Mappers.DedicatedHsm + bodyMapper: Mappers.DedicatedHsm, }, 202: { - bodyMapper: Mappers.DedicatedHsm + bodyMapper: Mappers.DedicatedHsm, }, 204: { - bodyMapper: Mappers.DedicatedHsm + bodyMapper: Mappers.DedicatedHsm, }, default: { - bodyMapper: Mappers.DedicatedHsmError - } + bodyMapper: Mappers.DedicatedHsmError, + }, }, requestBody: Parameters.parameters, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName1, - Parameters.name + Parameters.resourceGroupName, + Parameters.name, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DedicatedHsm + bodyMapper: Mappers.DedicatedHsm, }, 201: { - bodyMapper: Mappers.DedicatedHsm + bodyMapper: Mappers.DedicatedHsm, }, 202: { - bodyMapper: Mappers.DedicatedHsm + bodyMapper: Mappers.DedicatedHsm, }, 204: { - bodyMapper: Mappers.DedicatedHsm + bodyMapper: Mappers.DedicatedHsm, }, default: { - bodyMapper: Mappers.DedicatedHsmError - } + bodyMapper: Mappers.DedicatedHsmError, + }, }, requestBody: { parameterPath: { tags: ["options", "tags"] }, - mapper: { ...Mappers.DedicatedHsmPatchParameters, required: true } + mapper: { ...Mappers.DedicatedHsmPatchParameters, required: true }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName1, - Parameters.name + Parameters.resourceGroupName, + Parameters.name, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.DedicatedHsmDeleteHeaders, + }, + 201: { + headersMapper: Mappers.DedicatedHsmDeleteHeaders, + }, + 202: { + headersMapper: Mappers.DedicatedHsmDeleteHeaders, + }, + 204: { + headersMapper: Mappers.DedicatedHsmDeleteHeaders, + }, default: { - bodyMapper: Mappers.DedicatedHsmError - } + bodyMapper: Mappers.DedicatedHsmError, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName1, - Parameters.name1 + Parameters.resourceGroupName, + Parameters.name, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHsm + bodyMapper: Mappers.DedicatedHsm, }, default: { - bodyMapper: Mappers.DedicatedHsmError - } + bodyMapper: Mappers.DedicatedHsmError, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName1, - Parameters.name1 + Parameters.resourceGroupName, + Parameters.name, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHsmListResult + bodyMapper: Mappers.DedicatedHsmListResult, }, default: { - bodyMapper: Mappers.DedicatedHsmError - } + bodyMapper: Mappers.DedicatedHsmError, + }, }, - queryParameters: [Parameters.apiVersion1, Parameters.top], + queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName1 + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHsmListResult + bodyMapper: Mappers.DedicatedHsmListResult, }, default: { - bodyMapper: Mappers.DedicatedHsmError - } + bodyMapper: Mappers.DedicatedHsmError, + }, }, - queryParameters: [Parameters.apiVersion1, Parameters.top], + queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}/outboundNetworkDependenciesEndpoints", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointCollection +const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}/outboundNetworkDependenciesEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, + }, + default: { + bodyMapper: Mappers.DedicatedHsmError, + }, }, - default: { - bodyMapper: Mappers.DedicatedHsmError - } - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName1, - Parameters.name1 - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.name, + ], + headerParameters: [Parameters.accept], + serializer, + }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHsmListResult + bodyMapper: Mappers.DedicatedHsmListResult, }, default: { - bodyMapper: Mappers.DedicatedHsmError - } + bodyMapper: Mappers.DedicatedHsmError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.nextLink, - Parameters.resourceGroupName1 ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHsmListResult + bodyMapper: Mappers.DedicatedHsmListResult, }, default: { - bodyMapper: Mappers.DedicatedHsmError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointCollection + bodyMapper: Mappers.DedicatedHsmError, }, - default: { - bodyMapper: Mappers.DedicatedHsmError - } }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName1, - Parameters.name1 ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, + }, + default: { + bodyMapper: Mappers.DedicatedHsmError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.name, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/index.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/index.ts index 73ae14b8ccdc..2ac0975795d8 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/index.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/index.ts @@ -10,5 +10,7 @@ export * from "./cloudHsmClusters"; export * from "./cloudHsmClusterPrivateLinkResources"; export * from "./cloudHsmClusterPrivateEndpointConnections"; export * from "./privateEndpointConnections"; -export * from "./operations"; +export * from "./cloudHsmClusterBackupStatus"; +export * from "./cloudHsmClusterRestoreStatus"; export * from "./dedicatedHsmOperations"; +export * from "./operations"; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/operations.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/operations.ts index 2a65d0a86623..8f37b43dea56 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/operations.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/operations.ts @@ -13,9 +13,9 @@ import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureHSMResourceProvider } from "../azureHSMResourceProvider"; import { - DedicatedHsmOperation, + Operation, OperationsListOptionalParams, - OperationsListResponse + OperationsListResponse, } from "../models"; /// @@ -32,12 +32,12 @@ export class OperationsImpl implements Operations { } /** - * Get a list of Dedicated HSM operations. + * Get a list of Hardware Security Modules operations. * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams - ): PagedAsyncIterableIterator { + options?: OperationsListOptionalParams, + ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -51,33 +51,33 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { + _settings?: PageSettings, + ): AsyncIterableIterator { let result: OperationsListResponse; result = await this._list(options); yield result.value || []; } private async *listPagingAll( - options?: OperationsListOptionalParams - ): AsyncIterableIterator { + options?: OperationsListOptionalParams, + ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; } } /** - * Get a list of Dedicated HSM operations. + * Get a list of Hardware Security Modules operations. * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -90,14 +90,14 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHsmOperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.DedicatedHsmError - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/privateEndpointConnections.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/privateEndpointConnections.ts index d05cf9fc2892..12e67fcc1839 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/privateEndpointConnections.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operations/privateEndpointConnections.ts @@ -18,13 +18,14 @@ import { PrivateEndpointConnectionsListByCloudHsmClusterNextOptionalParams, PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams, PrivateEndpointConnectionsListByCloudHsmClusterResponse, - PrivateEndpointConnectionsListByCloudHsmClusterNextResponse + PrivateEndpointConnectionsListByCloudHsmClusterNextResponse, } from "../models"; /// /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl - implements PrivateEndpointConnections { + implements PrivateEndpointConnections +{ private readonly client: AzureHSMResourceProvider; /** @@ -40,18 +41,18 @@ export class PrivateEndpointConnectionsImpl * HSM Cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ public listByCloudHsmCluster( resourceGroupName: string, cloudHsmClusterName: string, - options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams + options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByCloudHsmClusterPagingAll( resourceGroupName, cloudHsmClusterName, - options + options, ); return { next() { @@ -68,9 +69,9 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, cloudHsmClusterName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +79,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, cloudHsmClusterName: string, options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionsListByCloudHsmClusterResponse; let continuationToken = settings?.continuationToken; @@ -86,7 +87,7 @@ export class PrivateEndpointConnectionsImpl result = await this._listByCloudHsmCluster( resourceGroupName, cloudHsmClusterName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -98,7 +99,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, cloudHsmClusterName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +111,12 @@ export class PrivateEndpointConnectionsImpl private async *listByCloudHsmClusterPagingAll( resourceGroupName: string, cloudHsmClusterName: string, - options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams + options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByCloudHsmClusterPagingPage( resourceGroupName, cloudHsmClusterName, - options + options, )) { yield* page; } @@ -126,17 +127,17 @@ export class PrivateEndpointConnectionsImpl * HSM Cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ private _listByCloudHsmCluster( resourceGroupName: string, cloudHsmClusterName: string, - options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams + options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudHsmClusterName, options }, - listByCloudHsmClusterOperationSpec + listByCloudHsmClusterOperationSpec, ); } @@ -144,7 +145,7 @@ export class PrivateEndpointConnectionsImpl * ListByCloudHsmClusterNext * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param nextLink The nextLink from the previous successful call to the ListByCloudHsmCluster method. * @param options The options parameters. */ @@ -152,11 +153,11 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, cloudHsmClusterName: string, nextLink: string, - options?: PrivateEndpointConnectionsListByCloudHsmClusterNextOptionalParams + options?: PrivateEndpointConnectionsListByCloudHsmClusterNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudHsmClusterName, nextLink, options }, - listByCloudHsmClusterNextOperationSpec + listByCloudHsmClusterNextOperationSpec, ); } } @@ -164,45 +165,44 @@ export class PrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByCloudHsmClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudHsmClusterName + Parameters.cloudHsmClusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByCloudHsmClusterNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.CloudHsmClusterError - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudHsmClusterName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterBackupStatus.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterBackupStatus.ts new file mode 100644 index 000000000000..c8c3a5a70240 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterBackupStatus.ts @@ -0,0 +1,30 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + CloudHsmClusterBackupStatusGetOptionalParams, + CloudHsmClusterBackupStatusGetResponse, +} from "../models"; + +/** Interface representing a CloudHsmClusterBackupStatus. */ +export interface CloudHsmClusterBackupStatus { + /** + * Gets the backup operation status of the specified Cloud HSM Cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param jobId The id returned as part of the backup request + * @param options The options parameters. + */ + get( + resourceGroupName: string, + cloudHsmClusterName: string, + jobId: string, + options?: CloudHsmClusterBackupStatusGetOptionalParams, + ): Promise; +} diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.ts index b8d9ef12a073..bf0ff9a6656c 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.ts @@ -12,8 +12,9 @@ import { CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams, CloudHsmClusterPrivateEndpointConnectionsCreateResponse, CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams, + CloudHsmClusterPrivateEndpointConnectionsDeleteResponse, CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams, - CloudHsmClusterPrivateEndpointConnectionsGetResponse + CloudHsmClusterPrivateEndpointConnectionsGetResponse, } from "../models"; /** Interface representing a CloudHsmClusterPrivateEndpointConnections. */ @@ -22,7 +23,7 @@ export interface CloudHsmClusterPrivateEndpointConnections { * Creates or updates the private endpoint connection for the Cloud Hsm Cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM * Cluster. * @param properties Parameters of the PrivateEndpointConnection @@ -33,13 +34,13 @@ export interface CloudHsmClusterPrivateEndpointConnections { cloudHsmClusterName: string, peConnectionName: string, properties: PrivateEndpointConnection, - options?: CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams + options?: CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams, ): Promise; /** * Deletes the private endpoint connection for the Cloud Hsm Cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM * Cluster. * @param options The options parameters. @@ -48,13 +49,18 @@ export interface CloudHsmClusterPrivateEndpointConnections { resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, - options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams - ): Promise, void>>; + options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudHsmClusterPrivateEndpointConnectionsDeleteResponse + > + >; /** * Deletes the private endpoint connection for the Cloud Hsm Cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM * Cluster. * @param options The options parameters. @@ -63,13 +69,13 @@ export interface CloudHsmClusterPrivateEndpointConnections { resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, - options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams - ): Promise; + options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams, + ): Promise; /** * Gets the private endpoint connection for the Cloud Hsm Cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM * Cluster. * @param options The options parameters. @@ -78,6 +84,6 @@ export interface CloudHsmClusterPrivateEndpointConnections { resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, - options?: CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams + options?: CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams, ): Promise; } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.ts index e91d4852e300..4707f25553c8 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.ts @@ -6,23 +6,25 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PrivateLinkResource, CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams, - CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse } from "../models"; +/// /** Interface representing a CloudHsmClusterPrivateLinkResources. */ export interface CloudHsmClusterPrivateLinkResources { /** * Gets the private link resources supported for the Cloud Hsm Cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ listByCloudHsmCluster( resourceGroupName: string, cloudHsmClusterName: string, - options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams - ): Promise; + options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams, + ): PagedAsyncIterableIterator; } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterRestoreStatus.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterRestoreStatus.ts new file mode 100644 index 000000000000..e322ec783dd2 --- /dev/null +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusterRestoreStatus.ts @@ -0,0 +1,30 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + CloudHsmClusterRestoreStatusGetOptionalParams, + CloudHsmClusterRestoreStatusGetResponse, +} from "../models"; + +/** Interface representing a CloudHsmClusterRestoreStatus. */ +export interface CloudHsmClusterRestoreStatus { + /** + * Gets the restore operation status of the specified Cloud HSM Cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param jobId The id returned as part of the backup request + * @param options The options parameters. + */ + get( + resourceGroupName: string, + cloudHsmClusterName: string, + jobId: string, + options?: CloudHsmClusterRestoreStatusGetOptionalParams, + ): Promise; +} diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusters.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusters.ts index 3f50074713d8..b6df4f20239e 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusters.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/cloudHsmClusters.ts @@ -18,7 +18,17 @@ import { CloudHsmClustersUpdateResponse, CloudHsmClustersGetOptionalParams, CloudHsmClustersGetResponse, - CloudHsmClustersDeleteOptionalParams + CloudHsmClustersDeleteOptionalParams, + CloudHsmClustersDeleteResponse, + CloudHsmClustersValidateBackupPropertiesOptionalParams, + CloudHsmClustersValidateBackupPropertiesResponse, + CloudHsmClustersBackupOptionalParams, + CloudHsmClustersBackupResponse, + CloudHsmClustersValidateRestorePropertiesOptionalParams, + CloudHsmClustersValidateRestorePropertiesResponse, + RestoreRequestProperties, + CloudHsmClustersRestoreOptionalParams, + CloudHsmClustersRestoreResponse, } from "../models"; /// @@ -32,20 +42,20 @@ export interface CloudHsmClusters { */ listByResourceGroup( resourceGroupName: string, - options?: CloudHsmClustersListByResourceGroupOptionalParams + options?: CloudHsmClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * The List operation gets information about the Cloud HSM Clusters associated with the subscription. * @param options The options parameters. */ listBySubscription( - options?: CloudHsmClustersListBySubscriptionOptionalParams + options?: CloudHsmClustersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Create or Update a Cloud HSM Cluster in the specified subscription. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param location The geo-location where the resource lives * @param options The options parameters. */ @@ -53,7 +63,7 @@ export interface CloudHsmClusters { resourceGroupName: string, cloudHsmClusterName: string, location: string, - options?: CloudHsmClustersCreateOrUpdateOptionalParams + options?: CloudHsmClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -64,7 +74,7 @@ export interface CloudHsmClusters { * Create or Update a Cloud HSM Cluster in the specified subscription. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param location The geo-location where the resource lives * @param options The options parameters. */ @@ -72,19 +82,19 @@ export interface CloudHsmClusters { resourceGroupName: string, cloudHsmClusterName: string, location: string, - options?: CloudHsmClustersCreateOrUpdateOptionalParams + options?: CloudHsmClustersCreateOrUpdateOptionalParams, ): Promise; /** * Update a Cloud HSM Cluster in the specified subscription. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ beginUpdate( resourceGroupName: string, cloudHsmClusterName: string, - options?: CloudHsmClustersUpdateOptionalParams + options?: CloudHsmClustersUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -95,48 +105,175 @@ export interface CloudHsmClusters { * Update a Cloud HSM Cluster in the specified subscription. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ beginUpdateAndWait( resourceGroupName: string, cloudHsmClusterName: string, - options?: CloudHsmClustersUpdateOptionalParams + options?: CloudHsmClustersUpdateOptionalParams, ): Promise; /** * Gets the specified Cloud HSM Cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ get( resourceGroupName: string, cloudHsmClusterName: string, - options?: CloudHsmClustersGetOptionalParams + options?: CloudHsmClustersGetOptionalParams, ): Promise; /** * Deletes the specified Cloud HSM Cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ beginDelete( resourceGroupName: string, cloudHsmClusterName: string, - options?: CloudHsmClustersDeleteOptionalParams - ): Promise, void>>; + options?: CloudHsmClustersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudHsmClustersDeleteResponse + > + >; /** * Deletes the specified Cloud HSM Cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, cloudHsmClusterName: string, - options?: CloudHsmClustersDeleteOptionalParams - ): Promise; + options?: CloudHsmClustersDeleteOptionalParams, + ): Promise; + /** + * Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster + * resource in the specified subscription. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + beginValidateBackupProperties( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClustersValidateBackupPropertiesOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudHsmClustersValidateBackupPropertiesResponse + > + >; + /** + * Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster + * resource in the specified subscription. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + beginValidateBackupPropertiesAndWait( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClustersValidateBackupPropertiesOptionalParams, + ): Promise; + /** + * Create a backup of the Cloud HSM Cluster in the specified subscription + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + beginBackup( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClustersBackupOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudHsmClustersBackupResponse + > + >; + /** + * Create a backup of the Cloud HSM Cluster in the specified subscription + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + beginBackupAndWait( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClustersBackupOptionalParams, + ): Promise; + /** + * Queued validating pre restore operation + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + beginValidateRestoreProperties( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClustersValidateRestorePropertiesOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudHsmClustersValidateRestorePropertiesResponse + > + >; + /** + * Queued validating pre restore operation + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param options The options parameters. + */ + beginValidateRestorePropertiesAndWait( + resourceGroupName: string, + cloudHsmClusterName: string, + options?: CloudHsmClustersValidateRestorePropertiesOptionalParams, + ): Promise; + /** + * Restores all key materials of a specified Cloud HSM Cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param restoreRequestProperties Restore Operation Required properties + * @param options The options parameters. + */ + beginRestore( + resourceGroupName: string, + cloudHsmClusterName: string, + restoreRequestProperties: RestoreRequestProperties, + options?: CloudHsmClustersRestoreOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudHsmClustersRestoreResponse + > + >; + /** + * Restores all key materials of a specified Cloud HSM Cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. + * @param restoreRequestProperties Restore Operation Required properties + * @param options The options parameters. + */ + beginRestoreAndWait( + resourceGroupName: string, + cloudHsmClusterName: string, + restoreRequestProperties: RestoreRequestProperties, + options?: CloudHsmClustersRestoreOptionalParams, + ): Promise; } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/dedicatedHsmOperations.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/dedicatedHsmOperations.ts index 640c1a5978d3..fe772a3539e5 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/dedicatedHsmOperations.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/dedicatedHsmOperations.ts @@ -19,8 +19,9 @@ import { DedicatedHsmUpdateOptionalParams, DedicatedHsmUpdateResponse, DedicatedHsmDeleteOptionalParams, + DedicatedHsmDeleteResponse, DedicatedHsmGetOptionalParams, - DedicatedHsmGetResponse + DedicatedHsmGetResponse, } from "../models"; /// @@ -29,35 +30,35 @@ export interface DedicatedHsmOperations { /** * The List operation gets information about the dedicated hsms associated with the subscription and * within the specified resource group. - * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listByResourceGroup( resourceGroupName: string, - options?: DedicatedHsmListByResourceGroupOptionalParams + options?: DedicatedHsmListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * The List operation gets information about the dedicated HSMs associated with the subscription. * @param options The options parameters. */ listBySubscription( - options?: DedicatedHsmListBySubscriptionOptionalParams + options?: DedicatedHsmListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified * dedicated hsm resource. The operation returns properties of each egress endpoint. - * @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs. - * @param name The name of the dedicated HSM. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, name: string, - options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams + options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams, ): PagedAsyncIterableIterator; /** * Create or Update a dedicated HSM in the specified subscription. - * @param resourceGroupName The name of the Resource Group to which the resource belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name Name of the dedicated Hsm * @param parameters Parameters to create or update the dedicated hsm * @param options The options parameters. @@ -66,7 +67,7 @@ export interface DedicatedHsmOperations { resourceGroupName: string, name: string, parameters: DedicatedHsm, - options?: DedicatedHsmCreateOrUpdateOptionalParams + options?: DedicatedHsmCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -75,7 +76,7 @@ export interface DedicatedHsmOperations { >; /** * Create or Update a dedicated HSM in the specified subscription. - * @param resourceGroupName The name of the Resource Group to which the resource belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param name Name of the dedicated Hsm * @param parameters Parameters to create or update the dedicated hsm * @param options The options parameters. @@ -84,18 +85,18 @@ export interface DedicatedHsmOperations { resourceGroupName: string, name: string, parameters: DedicatedHsm, - options?: DedicatedHsmCreateOrUpdateOptionalParams + options?: DedicatedHsmCreateOrUpdateOptionalParams, ): Promise; /** * Update a dedicated HSM in the specified subscription. - * @param resourceGroupName The name of the Resource Group to which the server belongs. - * @param name Name of the dedicated HSM + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ beginUpdate( resourceGroupName: string, name: string, - options?: DedicatedHsmUpdateOptionalParams + options?: DedicatedHsmUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -104,46 +105,51 @@ export interface DedicatedHsmOperations { >; /** * Update a dedicated HSM in the specified subscription. - * @param resourceGroupName The name of the Resource Group to which the server belongs. - * @param name Name of the dedicated HSM + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ beginUpdateAndWait( resourceGroupName: string, name: string, - options?: DedicatedHsmUpdateOptionalParams + options?: DedicatedHsmUpdateOptionalParams, ): Promise; /** * Deletes the specified Azure Dedicated HSM. - * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs. - * @param name The name of the dedicated HSM to delete + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ beginDelete( resourceGroupName: string, name: string, - options?: DedicatedHsmDeleteOptionalParams - ): Promise, void>>; + options?: DedicatedHsmDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DedicatedHsmDeleteResponse + > + >; /** * Deletes the specified Azure Dedicated HSM. - * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs. - * @param name The name of the dedicated HSM to delete + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, name: string, - options?: DedicatedHsmDeleteOptionalParams - ): Promise; + options?: DedicatedHsmDeleteOptionalParams, + ): Promise; /** * Gets the specified Azure dedicated HSM. - * @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs. - * @param name The name of the dedicated HSM. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param name Name of the dedicated Hsm * @param options The options parameters. */ get( resourceGroupName: string, name: string, - options?: DedicatedHsmGetOptionalParams + options?: DedicatedHsmGetOptionalParams, ): Promise; } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/index.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/index.ts index 73ae14b8ccdc..2ac0975795d8 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/index.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/index.ts @@ -10,5 +10,7 @@ export * from "./cloudHsmClusters"; export * from "./cloudHsmClusterPrivateLinkResources"; export * from "./cloudHsmClusterPrivateEndpointConnections"; export * from "./privateEndpointConnections"; -export * from "./operations"; +export * from "./cloudHsmClusterBackupStatus"; +export * from "./cloudHsmClusterRestoreStatus"; export * from "./dedicatedHsmOperations"; +export * from "./operations"; diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/operations.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/operations.ts index 0ea412b95083..f8c3fad6e826 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/operations.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/operations.ts @@ -7,16 +7,16 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { DedicatedHsmOperation, OperationsListOptionalParams } from "../models"; +import { Operation, OperationsListOptionalParams } from "../models"; /// /** Interface representing a Operations. */ export interface Operations { /** - * Get a list of Dedicated HSM operations. + * Get a list of Hardware Security Modules operations. * @param options The options parameters. */ list( - options?: OperationsListOptionalParams - ): PagedAsyncIterableIterator; + options?: OperationsListOptionalParams, + ): PagedAsyncIterableIterator; } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/privateEndpointConnections.ts index 25643dad8bbc..493c987168dc 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/operationsInterfaces/privateEndpointConnections.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateEndpointConnection, - PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams + PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams, } from "../models"; /// @@ -20,12 +20,12 @@ export interface PrivateEndpointConnections { * HSM Cluster * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group. - * Cloud HSM Cluster names must be between 3 and 24 characters in length. + * Cloud HSM Cluster names must be between 3 and 23 characters in length. * @param options The options parameters. */ listByCloudHsmCluster( resourceGroupName: string, cloudHsmClusterName: string, - options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams + options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/pagingHelper.ts b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/pagingHelper.ts +++ b/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/CHANGELOG.md b/sdk/healthdataaiservices/arm-healthdataaiservices/CHANGELOG.md index 55f5947169a6..acb3e72e5ddb 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/CHANGELOG.md +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/CHANGELOG.md @@ -1,17 +1,7 @@ # Release History - -## 1.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0-beta.1 (2024-08-06) + +## 1.0.0 (2024-11-25) ### Features Added -Initial release of the Azure HealthDataAIServices Package. +This is the first stable version with the package of @azure/arm-healthdataaiservices. diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/README.md b/sdk/healthdataaiservices/arm-healthdataaiservices/README.md index 9f762aac6abf..380dce74025d 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/README.md +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/README.md @@ -4,9 +4,12 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f -[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthdataaiservices/arm-healthdataaiservices) | -[Package (NPM)](https://www.npmjs.com/package/@azure/arm-healthdataaiservices) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-healthdataaiservices?view=azure-node-preview) | +Key links: + +- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthdataaiservices/arm-healthdataaiservices) +- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-healthdataaiservices) +- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-healthdataaiservices?view=azure-node-preview) +- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples) ## Getting started @@ -43,7 +46,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure HealthDataAIServices** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). @@ -86,6 +88,10 @@ setLogLevel("info"); For 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). +## Next steps + +Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples) directory for detailed examples on how to use this library. + ## Contributing If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/assets.json b/sdk/healthdataaiservices/arm-healthdataaiservices/assets.json index 52ab65ca68e6..45edcabdc8f5 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/assets.json +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/healthdataaiservices/arm-healthdataaiservices", - "Tag": "js/healthdataaiservices/arm-healthdataaiservices_acbd358478" + "Tag": "js/healthdataaiservices/arm-healthdataaiservices_a1c8e2c3a3" } diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/eslint.config.mjs b/sdk/healthdataaiservices/arm-healthdataaiservices/eslint.config.mjs index 68c02604a4c1..03244d34a19f 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/eslint.config.mjs +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/eslint.config.mjs @@ -8,10 +8,10 @@ export default [ "@azure/azure-sdk/ts-apiextractor-json-types": "warn", "@azure/azure-sdk/ts-package-json-types": "warn", "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", - "tsdoc/syntax": "warn", "@azure/azure-sdk/ts-package-json-module": "off", "@azure/azure-sdk/ts-package-json-files-required": "off", "@azure/azure-sdk/ts-package-json-main-is-cjs": "off", + "tsdoc/syntax": "warn", }, }, ]; diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/package.json b/sdk/healthdataaiservices/arm-healthdataaiservices/package.json index 5319380fd379..415fcbdb222c 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/package.json +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/package.json @@ -1,6 +1,6 @@ { "name": "@azure/arm-healthdataaiservices", - "version": "1.0.0-beta.2", + "version": "1.0.0", "description": "A generated SDK for HealthDataAIServicesClient.", "engines": { "node": ">=18.0.0" @@ -11,7 +11,6 @@ "exports": { "./package.json": "./package.json", ".": "./src/index.ts", - "./api": "./src/api/index.ts", "./models": "./src/models/index.ts" }, "dialects": [ @@ -52,63 +51,71 @@ "//metadata": { "constantPaths": [ { - "path": "src/rest/healthDataAIServicesClient.ts", + "path": "src/api/healthDataAIServicesContext.ts", "prefix": "userAgentInfo" } ] }, "dependencies": { - "@azure-rest/core-client": "^2.1.0", - "@azure/abort-controller": "^2.1.2", + "@azure/core-util": "^1.9.2", + "@azure-rest/core-client": "^2.3.1", "@azure/core-auth": "^1.6.0", - "@azure/core-lro": "^3.0.0", - "@azure/core-paging": "^1.5.0", "@azure/core-rest-pipeline": "^1.5.0", "@azure/logger": "^1.0.0", - "tslib": "^2.6.2" + "tslib": "^2.6.2", + "@azure/core-lro": "^3.1.0", + "@azure/abort-controller": "^2.1.2" }, "devDependencies": { - "@azure-tools/test-credential": "^2.0.0", - "@azure-tools/test-recorder": "^4.0.0", - "@azure/core-util": "^1.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^4.2.1", + "dotenv": "^16.0.0", + "@microsoft/api-extractor": "^7.40.3", "@types/node": "^18.0.0", + "eslint": "^8.55.0", + "typescript": "~5.6.2", + "tshy": "^2.0.0", + "@azure/identity": "^4.2.1", "@vitest/browser": "^2.0.5", "@vitest/coverage-istanbul": "^2.0.5", - "dotenv": "^16.0.0", - "eslint": "^9.9.0", "playwright": "^1.41.2", - "prettier": "^3.2.5", - "typescript": "~5.6.2", - "vitest": "^2.0.5" + "vitest": "^2.0.5", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.0.0", + "@azure/dev-tool": "^1.0.0", + "@azure/eslint-plugin-azure-sdk": "^3.0.0" }, "scripts": { - "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:samples": "echo skipped", - "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test", - "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "execute:samples": "echo skipped", "extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", - "generate:client": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "echo skipped", + "pack": "npm pack 2>&1", "lint": "echo skipped", "lint:fix": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", - "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", - "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser", "unit-test:node": "dev-tool run test:vitest", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "echo skipped", + "build:samples": "dev-tool run typecheck --paths samples-dev/*.ts && dev-tool samples publish -f", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"", + "execute:samples": "dev-tool samples run samples-dev", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"", + "generate:client": "echo skipped", + "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", + "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", + "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", "update-snippets": "echo skipped" }, + "//sampleConfiguration": { + "productName": "@azure/arm-healthdataaiservices", + "productSlugs": [ + "azure" + ], + "disableDocsMs": true, + "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-healthdataaiservices?view=azure-node-preview" + }, "exports": { "./package.json": "./package.json", ".": { @@ -129,24 +136,6 @@ "default": "./dist/commonjs/index.js" } }, - "./api": { - "browser": { - "types": "./dist/browser/api/index.d.ts", - "default": "./dist/browser/api/index.js" - }, - "react-native": { - "types": "./dist/react-native/api/index.d.ts", - "default": "./dist/react-native/api/index.js" - }, - "import": { - "types": "./dist/esm/api/index.d.ts", - "default": "./dist/esm/api/index.js" - }, - "require": { - "types": "./dist/commonjs/api/index.d.ts", - "default": "./dist/commonjs/api/index.js" - } - }, "./models": { "browser": { "types": "./dist/browser/models/index.d.ts", diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/review/arm-healthdataaiservices-models.api.md b/sdk/healthdataaiservices/arm-healthdataaiservices/review/arm-healthdataaiservices-models.api.md index edcacb690e73..f691d89bdf10 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/review/arm-healthdataaiservices-models.api.md +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/review/arm-healthdataaiservices-models.api.md @@ -4,16 +4,9 @@ ```ts -import { OperationOptions } from '@azure-rest/core-client'; - // @public export type ActionType = string; -// @public -export type ContinuablePage = TPage & { - continuationToken?: string; -}; - // @public export type CreatedByType = string; @@ -36,33 +29,6 @@ export interface DeidServiceProperties { readonly serviceUrl?: string; } -// @public -export interface DeidServicesCreateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DeidServicesDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DeidServicesGetOptionalParams extends OperationOptions { -} - -// @public -export interface DeidServicesListByResourceGroupOptionalParams extends OperationOptions { -} - -// @public -export interface DeidServicesListBySubscriptionOptionalParams extends OperationOptions { -} - -// @public -export interface DeidServicesUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - // @public export interface DeidUpdate { identity?: ManagedServiceIdentityUpdate; @@ -70,26 +36,6 @@ export interface DeidUpdate { tags?: Record; } -// @public -export interface ErrorAdditionalInfo { - readonly info?: Record; - readonly type?: string; -} - -// @public -export interface ErrorDetail { - readonly additionalInfo?: ErrorAdditionalInfo[]; - readonly code?: string; - readonly details?: ErrorDetail[]; - readonly message?: string; - readonly target?: string; -} - -// @public -export interface ErrorResponse { - error?: ErrorDetail; -} - // @public export enum KnownActionType { Internal = "Internal" @@ -105,17 +51,17 @@ export enum KnownCreatedByType { // @public export enum KnownManagedServiceIdentityType { - "SystemAssigned,UserAssigned" = "SystemAssigned,UserAssigned", None = "None", SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", UserAssigned = "UserAssigned" } // @public export enum KnownOrigin { - "user,system" = "user,system", - system = "system", - user = "user" + System = "system", + User = "user", + UserSystem = "user,system" } // @public @@ -134,10 +80,19 @@ export enum KnownPrivateEndpointServiceConnectionStatus { } // @public -export enum KnownResourceProvisioningState { +export enum KnownProvisioningState { + Accepted = "Accepted", Canceled = "Canceled", + Deleting = "Deleting", Failed = "Failed", - Succeeded = "Succeeded" + Provisioning = "Provisioning", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownVersions { + V2024_09_20 = "2024-09-20" } // @public @@ -174,25 +129,9 @@ export interface OperationDisplay { readonly resource?: string; } -// @public -export interface OperationsListOptionalParams extends OperationOptions { -} - // @public export type Origin = string; -// @public -export interface PagedAsyncIterableIterator { - [Symbol.asyncIterator](): PagedAsyncIterableIterator; - byPage: (settings?: TPageSettings) => AsyncIterableIterator>; - next(): Promise>; -} - -// @public -export interface PageSettings { - continuationToken?: string; -} - // @public export interface PrivateEndpoint { readonly id?: string; @@ -219,24 +158,6 @@ export interface PrivateEndpointConnectionResource extends ProxyResource { properties?: PrivateEndpointConnectionProperties; } -// @public -export interface PrivateEndpointConnectionsCreateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface PrivateEndpointConnectionsDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface PrivateEndpointConnectionsGetOptionalParams extends OperationOptions { -} - -// @public -export interface PrivateEndpointConnectionsListByDeidServiceOptionalParams extends OperationOptions { -} - // @public export type PrivateEndpointServiceConnectionStatus = string; @@ -260,11 +181,7 @@ export interface PrivateLinkServiceConnectionState { } // @public -export interface PrivateLinksListByDeidServiceOptionalParams extends OperationOptions { -} - -// @public -export type ProvisioningState = ResourceProvisioningState | "Provisioning" | "Updating" | "Deleting" | "Accepted" | string; +export type ProvisioningState = string; // @public export interface ProxyResource extends Resource { @@ -281,9 +198,6 @@ export interface Resource { readonly type?: string; } -// @public -export type ResourceProvisioningState = string; - // @public export interface SystemData { createdAt?: Date; @@ -306,9 +220,6 @@ export interface UserAssignedIdentity { readonly principalId?: string; } -// @public -export type Versions = "2024-02-28-preview"; - // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/review/arm-healthdataaiservices.api.md b/sdk/healthdataaiservices/arm-healthdataaiservices/review/arm-healthdataaiservices.api.md index e92a68cab1d1..515e6528452a 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/review/arm-healthdataaiservices.api.md +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/review/arm-healthdataaiservices.api.md @@ -87,26 +87,6 @@ export interface DeidUpdate { tags?: Record; } -// @public -export interface ErrorAdditionalInfo { - readonly info?: Record; - readonly type?: string; -} - -// @public -export interface ErrorDetail { - readonly additionalInfo?: ErrorAdditionalInfo[]; - readonly code?: string; - readonly details?: ErrorDetail[]; - readonly message?: string; - readonly target?: string; -} - -// @public -export interface ErrorResponse { - error?: ErrorDetail; -} - // @public (undocumented) export class HealthDataAIServicesClient { constructor(credential: TokenCredential, subscriptionId: string, options?: HealthDataAIServicesClientOptionalParams); @@ -137,17 +117,17 @@ export enum KnownCreatedByType { // @public export enum KnownManagedServiceIdentityType { - "SystemAssigned,UserAssigned" = "SystemAssigned,UserAssigned", None = "None", SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", UserAssigned = "UserAssigned" } // @public export enum KnownOrigin { - "user,system" = "user,system", - system = "system", - user = "user" + System = "system", + User = "user", + UserSystem = "user,system" } // @public @@ -166,10 +146,19 @@ export enum KnownPrivateEndpointServiceConnectionStatus { } // @public -export enum KnownResourceProvisioningState { +export enum KnownProvisioningState { + Accepted = "Accepted", Canceled = "Canceled", + Deleting = "Deleting", Failed = "Failed", - Succeeded = "Succeeded" + Provisioning = "Provisioning", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownVersions { + V2024_09_20 = "2024-09-20" } // @public @@ -314,7 +303,7 @@ export interface PrivateLinksOperations { } // @public -export type ProvisioningState = ResourceProvisioningState | "Provisioning" | "Updating" | "Deleting" | "Accepted" | string; +export type ProvisioningState = string; // @public export interface ProxyResource extends Resource { @@ -331,9 +320,6 @@ export interface Resource { readonly type?: string; } -// @public -export type ResourceProvisioningState = string; - // @public export function restorePoller(client: HealthDataAIServicesClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike, TResult>, options?: RestorePollerOptions): PollerLike, TResult>; @@ -366,9 +352,6 @@ export interface UserAssignedIdentity { readonly principalId?: string; } -// @public -export type Versions = "2024-02-28-preview"; - // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/sample.env b/sdk/healthdataaiservices/arm-healthdataaiservices/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesCreateSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesCreateSample.ts new file mode 100644 index 000000000000..e1934a5bf503 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesCreateSample.ts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to create a DeidService + * + * @summary create a DeidService + * x-ms-original-file: 2024-09-20/DeidServices_Create_MaximumSet_Gen.json + */ +async function deidServicesCreateGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.deidServices.create("rgopenapi", "deidTest", { + properties: { publicNetworkAccess: "Enabled" }, + identity: { type: "None", userAssignedIdentities: {} }, + tags: {}, + location: "qwyhvdwcsjulggagdqxlmazcl", + }); + console.log(result); +} + +async function main() { + deidServicesCreateGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesDeleteSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesDeleteSample.ts new file mode 100644 index 000000000000..3590544f3917 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesDeleteSample.ts @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to delete a DeidService + * + * @summary delete a DeidService + * x-ms-original-file: 2024-09-20/DeidServices_Delete_MaximumSet_Gen.json + */ +async function deidServicesDeleteGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + await client.deidServices.delete("rgopenapi", "deidTest"); +} + +async function main() { + deidServicesDeleteGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesGetSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesGetSample.ts new file mode 100644 index 000000000000..f7ad16ce09be --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesGetSample.ts @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to get a DeidService + * + * @summary get a DeidService + * x-ms-original-file: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json + */ +async function deidServicesGetGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.deidServices.get("rgopenapi", "deidTest"); + console.log(result); +} + +async function main() { + deidServicesGetGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesListByResourceGroupSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesListByResourceGroupSample.ts new file mode 100644 index 000000000000..4a362fc833f5 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesListByResourceGroupSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list DeidService resources by resource group + * + * @summary list DeidService resources by resource group + * x-ms-original-file: 2024-09-20/DeidServices_ListByResourceGroup_MaximumSet_Gen.json + */ +async function deidServicesListByResourceGroupGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deidServices.listByResourceGroup("rgopenapi")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + deidServicesListByResourceGroupGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesListBySubscriptionSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesListBySubscriptionSample.ts new file mode 100644 index 000000000000..36078e160839 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesListBySubscriptionSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list DeidService resources by subscription ID + * + * @summary list DeidService resources by subscription ID + * x-ms-original-file: 2024-09-20/DeidServices_ListBySubscription_MaximumSet_Gen.json + */ +async function deidServicesListBySubscriptionGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deidServices.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + deidServicesListBySubscriptionGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesUpdateSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesUpdateSample.ts new file mode 100644 index 000000000000..305d38ef9786 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/deidServicesUpdateSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to update a DeidService + * + * @summary update a DeidService + * x-ms-original-file: 2024-09-20/DeidServices_Update_MaximumSet_Gen.json + */ +async function deidServicesUpdateGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.deidServices.update("rgopenapi", "deidTest", { + identity: { type: "None", userAssignedIdentities: {} }, + tags: {}, + properties: { publicNetworkAccess: "Enabled" }, + }); + console.log(result); +} + +async function main() { + deidServicesUpdateGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/operationsListSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/operationsListSample.ts new file mode 100644 index 000000000000..756b35ba97ba --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/operationsListSample.ts @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list the operations for the provider + * + * @summary list the operations for the provider + * x-ms-original-file: 2024-09-20/Operations_List_MaximumSet_Gen.json + */ +async function operationsListMaximumSetGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "00000000-0000-0000-0000-00000000000"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + + console.log(resArray); +} + +/** + * This sample demonstrates how to list the operations for the provider + * + * @summary list the operations for the provider + * x-ms-original-file: 2024-09-20/Operations_List_MinimumSet_Gen.json + */ +async function operationsListMinimumSetGeneratedByMinimumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "00000000-0000-0000-0000-00000000000"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + operationsListMaximumSetGeneratedByMaximumSetRuleStable(); + operationsListMinimumSetGeneratedByMinimumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateEndpointConnectionsCreateSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateEndpointConnectionsCreateSample.ts new file mode 100644 index 000000000000..8b6bdb0ec7db --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateEndpointConnectionsCreateSample.ts @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to create a Private endpoint connection + * + * @summary create a Private endpoint connection + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Create_MaximumSet_Gen.json + */ +async function privateEndpointConnectionsCreateGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.create( + "rgopenapi", + "deidTest", + "kgwgrrpabvrsrrvpcgcnfmyfgyrl", + { + properties: { + privateEndpoint: {}, + privateLinkServiceConnectionState: { + status: "Pending", + actionsRequired: "ulb", + description: "xr", + }, + }, + }, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsCreateGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateEndpointConnectionsDeleteSample.ts new file mode 100644 index 000000000000..d7a11e6409d6 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to delete the private endpoint connection + * + * @summary delete the private endpoint connection + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Delete_MaximumSet_Gen.json + */ +async function privateEndpointConnectionsDeleteGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + await client.privateEndpointConnections.delete( + "rgopenapi", + "deidTest", + "kgwgrrpabvrsrrvpcgcnfmyfgyrl", + ); +} + +async function main() { + privateEndpointConnectionsDeleteGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateEndpointConnectionsGetSample.ts new file mode 100644 index 000000000000..66daafb6cee1 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateEndpointConnectionsGetSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to get a specific private connection + * + * @summary get a specific private connection + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json + */ +async function privateEndpointConnectionsGetGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.get( + "rgopenapi", + "deidTest", + "kgwgrrpabvrsrrvpcgcnfmyfgyrl", + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGetGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateEndpointConnectionsListByDeidServiceSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateEndpointConnectionsListByDeidServiceSample.ts new file mode 100644 index 000000000000..1d402109c507 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateEndpointConnectionsListByDeidServiceSample.ts @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list private endpoint connections on the given resource + * + * @summary list private endpoint connections on the given resource + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_ListByDeidService_MaximumSet_Gen.json + */ +async function privateEndpointConnectionsListByDeidServiceGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listByDeidService( + "rgopenapi", + "deidTest", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsListByDeidServiceGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateLinksListByDeidServiceSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateLinksListByDeidServiceSample.ts new file mode 100644 index 000000000000..b7b8289e0c6a --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples-dev/privateLinksListByDeidServiceSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list private links on the given resource + * + * @summary list private links on the given resource + * x-ms-original-file: 2024-09-20/PrivateLinks_ListByDeidService_MaximumSet_Gen.json + */ +async function privateLinksListByDeidServiceGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateLinks.listByDeidService("rgopenapi", "deidTest")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + privateLinksListByDeidServiceGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/README.md b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/README.md new file mode 100644 index 000000000000..51da38843ab6 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/README.md @@ -0,0 +1,72 @@ +# @azure/arm-healthdataaiservices client library samples for JavaScript + +These sample programs show how to use the JavaScript client libraries for @azure/arm-healthdataaiservices in some common scenarios. + +| **File Name** | **Description** | +| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [deidServicesCreateSample.js][deidservicescreatesample] | create a DeidService x-ms-original-file: 2024-09-20/DeidServices_Create_MaximumSet_Gen.json | +| [deidServicesDeleteSample.js][deidservicesdeletesample] | delete a DeidService x-ms-original-file: 2024-09-20/DeidServices_Delete_MaximumSet_Gen.json | +| [deidServicesGetSample.js][deidservicesgetsample] | get a DeidService x-ms-original-file: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json | +| [deidServicesListByResourceGroupSample.js][deidserviceslistbyresourcegroupsample] | list DeidService resources by resource group x-ms-original-file: 2024-09-20/DeidServices_ListByResourceGroup_MaximumSet_Gen.json | +| [deidServicesListBySubscriptionSample.js][deidserviceslistbysubscriptionsample] | list DeidService resources by subscription ID x-ms-original-file: 2024-09-20/DeidServices_ListBySubscription_MaximumSet_Gen.json | +| [deidServicesUpdateSample.js][deidservicesupdatesample] | update a DeidService x-ms-original-file: 2024-09-20/DeidServices_Update_MaximumSet_Gen.json | +| [operationsListSample.js][operationslistsample] | list the operations for the provider x-ms-original-file: 2024-09-20/Operations_List_MaximumSet_Gen.json | +| [privateEndpointConnectionsCreateSample.js][privateendpointconnectionscreatesample] | create a Private endpoint connection x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Create_MaximumSet_Gen.json | +| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | delete the private endpoint connection x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Delete_MaximumSet_Gen.json | +| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | get a specific private connection x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json | +| [privateEndpointConnectionsListByDeidServiceSample.js][privateendpointconnectionslistbydeidservicesample] | list private endpoint connections on the given resource x-ms-original-file: 2024-09-20/PrivateEndpointConnections_ListByDeidService_MaximumSet_Gen.json | +| [privateLinksListByDeidServiceSample.js][privatelinkslistbydeidservicesample] | list private links on the given resource x-ms-original-file: 2024-09-20/PrivateLinks_ListByDeidService_MaximumSet_Gen.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node deidServicesCreateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env node deidServicesCreateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[deidservicescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesCreateSample.js +[deidservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesDeleteSample.js +[deidservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesGetSample.js +[deidserviceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesListByResourceGroupSample.js +[deidserviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesListBySubscriptionSample.js +[deidservicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesUpdateSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/operationsListSample.js +[privateendpointconnectionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsCreateSample.js +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsDeleteSample.js +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsGetSample.js +[privateendpointconnectionslistbydeidservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsListByDeidServiceSample.js +[privatelinkslistbydeidservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateLinksListByDeidServiceSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-healthdataaiservices?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthdataaiservices/arm-healthdataaiservices/README.md diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesCreateSample.js b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesCreateSample.js new file mode 100644 index 000000000000..9c7cbc9ca7b1 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesCreateSample.js @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { HealthDataAIServicesClient } = require("@azure/arm-healthdataaiservices"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to create a DeidService + * + * @summary create a DeidService + * x-ms-original-file: 2024-09-20/DeidServices_Create_MaximumSet_Gen.json + */ +async function deidServicesCreateGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.deidServices.create("rgopenapi", "deidTest", { + properties: { publicNetworkAccess: "Enabled" }, + identity: { type: "None", userAssignedIdentities: {} }, + tags: {}, + location: "qwyhvdwcsjulggagdqxlmazcl", + }); + console.log(result); +} + +async function main() { + deidServicesCreateGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesDeleteSample.js b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesDeleteSample.js new file mode 100644 index 000000000000..e96c493c49a7 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesDeleteSample.js @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { HealthDataAIServicesClient } = require("@azure/arm-healthdataaiservices"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to delete a DeidService + * + * @summary delete a DeidService + * x-ms-original-file: 2024-09-20/DeidServices_Delete_MaximumSet_Gen.json + */ +async function deidServicesDeleteGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + await client.deidServices.delete("rgopenapi", "deidTest"); +} + +async function main() { + deidServicesDeleteGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesGetSample.js b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesGetSample.js new file mode 100644 index 000000000000..427f86fa7ea8 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesGetSample.js @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { HealthDataAIServicesClient } = require("@azure/arm-healthdataaiservices"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to get a DeidService + * + * @summary get a DeidService + * x-ms-original-file: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json + */ +async function deidServicesGetGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.deidServices.get("rgopenapi", "deidTest"); + console.log(result); +} + +async function main() { + deidServicesGetGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesListByResourceGroupSample.js b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesListByResourceGroupSample.js new file mode 100644 index 000000000000..8ff37656b3c2 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesListByResourceGroupSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { HealthDataAIServicesClient } = require("@azure/arm-healthdataaiservices"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list DeidService resources by resource group + * + * @summary list DeidService resources by resource group + * x-ms-original-file: 2024-09-20/DeidServices_ListByResourceGroup_MaximumSet_Gen.json + */ +async function deidServicesListByResourceGroupGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deidServices.listByResourceGroup("rgopenapi")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + deidServicesListByResourceGroupGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesListBySubscriptionSample.js b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesListBySubscriptionSample.js new file mode 100644 index 000000000000..58c9c7061587 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesListBySubscriptionSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { HealthDataAIServicesClient } = require("@azure/arm-healthdataaiservices"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list DeidService resources by subscription ID + * + * @summary list DeidService resources by subscription ID + * x-ms-original-file: 2024-09-20/DeidServices_ListBySubscription_MaximumSet_Gen.json + */ +async function deidServicesListBySubscriptionGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deidServices.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + deidServicesListBySubscriptionGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesUpdateSample.js b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesUpdateSample.js new file mode 100644 index 000000000000..f2e2abf87238 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/deidServicesUpdateSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { HealthDataAIServicesClient } = require("@azure/arm-healthdataaiservices"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to update a DeidService + * + * @summary update a DeidService + * x-ms-original-file: 2024-09-20/DeidServices_Update_MaximumSet_Gen.json + */ +async function deidServicesUpdateGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.deidServices.update("rgopenapi", "deidTest", { + identity: { type: "None", userAssignedIdentities: {} }, + tags: {}, + properties: { publicNetworkAccess: "Enabled" }, + }); + console.log(result); +} + +async function main() { + deidServicesUpdateGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/operationsListSample.js b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/operationsListSample.js new file mode 100644 index 000000000000..4facb6795a60 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/operationsListSample.js @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { HealthDataAIServicesClient } = require("@azure/arm-healthdataaiservices"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list the operations for the provider + * + * @summary list the operations for the provider + * x-ms-original-file: 2024-09-20/Operations_List_MaximumSet_Gen.json + */ +async function operationsListMaximumSetGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "00000000-0000-0000-0000-00000000000"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + + console.log(resArray); +} + +/** + * This sample demonstrates how to list the operations for the provider + * + * @summary list the operations for the provider + * x-ms-original-file: 2024-09-20/Operations_List_MinimumSet_Gen.json + */ +async function operationsListMinimumSetGeneratedByMinimumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "00000000-0000-0000-0000-00000000000"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + operationsListMaximumSetGeneratedByMaximumSetRuleStable(); + operationsListMinimumSetGeneratedByMinimumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/package.json b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/package.json new file mode 100644 index 000000000000..00c800165563 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/package.json @@ -0,0 +1,33 @@ +{ + "name": "@azure-samples/arm-healthdataaiservices-js", + "private": true, + "version": "1.0.0", + "description": "@azure/arm-healthdataaiservices client library samples for JavaScript", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/healthdataaiservices/arm-healthdataaiservices" + }, + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthdataaiservices/arm-healthdataaiservices", + "dependencies": { + "@azure/arm-healthdataaiservices": "latest", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + } +} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsCreateSample.js b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsCreateSample.js new file mode 100644 index 000000000000..57944704c282 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsCreateSample.js @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { HealthDataAIServicesClient } = require("@azure/arm-healthdataaiservices"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to create a Private endpoint connection + * + * @summary create a Private endpoint connection + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Create_MaximumSet_Gen.json + */ +async function privateEndpointConnectionsCreateGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.create( + "rgopenapi", + "deidTest", + "kgwgrrpabvrsrrvpcgcnfmyfgyrl", + { + properties: { + privateEndpoint: {}, + privateLinkServiceConnectionState: { + status: "Pending", + actionsRequired: "ulb", + description: "xr", + }, + }, + }, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsCreateGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsDeleteSample.js new file mode 100644 index 000000000000..e426a59fe521 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsDeleteSample.js @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { HealthDataAIServicesClient } = require("@azure/arm-healthdataaiservices"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to delete the private endpoint connection + * + * @summary delete the private endpoint connection + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Delete_MaximumSet_Gen.json + */ +async function privateEndpointConnectionsDeleteGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + await client.privateEndpointConnections.delete( + "rgopenapi", + "deidTest", + "kgwgrrpabvrsrrvpcgcnfmyfgyrl", + ); +} + +async function main() { + privateEndpointConnectionsDeleteGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsGetSample.js b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsGetSample.js new file mode 100644 index 000000000000..b1f99dcc972b --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsGetSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { HealthDataAIServicesClient } = require("@azure/arm-healthdataaiservices"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to get a specific private connection + * + * @summary get a specific private connection + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json + */ +async function privateEndpointConnectionsGetGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.get( + "rgopenapi", + "deidTest", + "kgwgrrpabvrsrrvpcgcnfmyfgyrl", + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGetGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsListByDeidServiceSample.js b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsListByDeidServiceSample.js new file mode 100644 index 000000000000..dcf26c93a0ab --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateEndpointConnectionsListByDeidServiceSample.js @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { HealthDataAIServicesClient } = require("@azure/arm-healthdataaiservices"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list private endpoint connections on the given resource + * + * @summary list private endpoint connections on the given resource + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_ListByDeidService_MaximumSet_Gen.json + */ +async function privateEndpointConnectionsListByDeidServiceGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listByDeidService( + "rgopenapi", + "deidTest", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsListByDeidServiceGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateLinksListByDeidServiceSample.js b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateLinksListByDeidServiceSample.js new file mode 100644 index 000000000000..cbc693bcbdc2 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/privateLinksListByDeidServiceSample.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { HealthDataAIServicesClient } = require("@azure/arm-healthdataaiservices"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to list private links on the given resource + * + * @summary list private links on the given resource + * x-ms-original-file: 2024-09-20/PrivateLinks_ListByDeidService_MaximumSet_Gen.json + */ +async function privateLinksListByDeidServiceGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateLinks.listByDeidService("rgopenapi", "deidTest")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + privateLinksListByDeidServiceGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/sample.env b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/javascript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/README.md b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/README.md new file mode 100644 index 000000000000..da294655bb00 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/README.md @@ -0,0 +1,85 @@ +# @azure/arm-healthdataaiservices client library samples for TypeScript + +These sample programs show how to use the TypeScript client libraries for @azure/arm-healthdataaiservices in some common scenarios. + +| **File Name** | **Description** | +| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [deidServicesCreateSample.ts][deidservicescreatesample] | create a DeidService x-ms-original-file: 2024-09-20/DeidServices_Create_MaximumSet_Gen.json | +| [deidServicesDeleteSample.ts][deidservicesdeletesample] | delete a DeidService x-ms-original-file: 2024-09-20/DeidServices_Delete_MaximumSet_Gen.json | +| [deidServicesGetSample.ts][deidservicesgetsample] | get a DeidService x-ms-original-file: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json | +| [deidServicesListByResourceGroupSample.ts][deidserviceslistbyresourcegroupsample] | list DeidService resources by resource group x-ms-original-file: 2024-09-20/DeidServices_ListByResourceGroup_MaximumSet_Gen.json | +| [deidServicesListBySubscriptionSample.ts][deidserviceslistbysubscriptionsample] | list DeidService resources by subscription ID x-ms-original-file: 2024-09-20/DeidServices_ListBySubscription_MaximumSet_Gen.json | +| [deidServicesUpdateSample.ts][deidservicesupdatesample] | update a DeidService x-ms-original-file: 2024-09-20/DeidServices_Update_MaximumSet_Gen.json | +| [operationsListSample.ts][operationslistsample] | list the operations for the provider x-ms-original-file: 2024-09-20/Operations_List_MaximumSet_Gen.json | +| [privateEndpointConnectionsCreateSample.ts][privateendpointconnectionscreatesample] | create a Private endpoint connection x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Create_MaximumSet_Gen.json | +| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | delete the private endpoint connection x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Delete_MaximumSet_Gen.json | +| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | get a specific private connection x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json | +| [privateEndpointConnectionsListByDeidServiceSample.ts][privateendpointconnectionslistbydeidservicesample] | list private endpoint connections on the given resource x-ms-original-file: 2024-09-20/PrivateEndpointConnections_ListByDeidService_MaximumSet_Gen.json | +| [privateLinksListByDeidServiceSample.ts][privatelinkslistbydeidservicesample] | list private links on the given resource x-ms-original-file: 2024-09-20/PrivateLinks_ListByDeidService_MaximumSet_Gen.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/deidServicesCreateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env node dist/deidServicesCreateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[deidservicescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesCreateSample.ts +[deidservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesDeleteSample.ts +[deidservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesGetSample.ts +[deidserviceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesListByResourceGroupSample.ts +[deidserviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesListBySubscriptionSample.ts +[deidservicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesUpdateSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/operationsListSample.ts +[privateendpointconnectionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsCreateSample.ts +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsDeleteSample.ts +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsGetSample.ts +[privateendpointconnectionslistbydeidservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsListByDeidServiceSample.ts +[privatelinkslistbydeidservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateLinksListByDeidServiceSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-healthdataaiservices?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthdataaiservices/arm-healthdataaiservices/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/package.json b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/package.json new file mode 100644 index 000000000000..898f07e1f302 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/package.json @@ -0,0 +1,42 @@ +{ + "name": "@azure-samples/arm-healthdataaiservices-ts", + "private": true, + "version": "1.0.0", + "description": "@azure/arm-healthdataaiservices client library samples for TypeScript", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/healthdataaiservices/arm-healthdataaiservices" + }, + "keywords": [ + "node", + "azure", + "cloud", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthdataaiservices/arm-healthdataaiservices", + "dependencies": { + "@azure/arm-healthdataaiservices": "latest", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.6.2", + "rimraf": "latest" + } +} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/sample.env b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesCreateSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesCreateSample.ts new file mode 100644 index 000000000000..e1934a5bf503 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesCreateSample.ts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to create a DeidService + * + * @summary create a DeidService + * x-ms-original-file: 2024-09-20/DeidServices_Create_MaximumSet_Gen.json + */ +async function deidServicesCreateGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.deidServices.create("rgopenapi", "deidTest", { + properties: { publicNetworkAccess: "Enabled" }, + identity: { type: "None", userAssignedIdentities: {} }, + tags: {}, + location: "qwyhvdwcsjulggagdqxlmazcl", + }); + console.log(result); +} + +async function main() { + deidServicesCreateGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesDeleteSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesDeleteSample.ts new file mode 100644 index 000000000000..3590544f3917 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesDeleteSample.ts @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to delete a DeidService + * + * @summary delete a DeidService + * x-ms-original-file: 2024-09-20/DeidServices_Delete_MaximumSet_Gen.json + */ +async function deidServicesDeleteGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + await client.deidServices.delete("rgopenapi", "deidTest"); +} + +async function main() { + deidServicesDeleteGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesGetSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesGetSample.ts new file mode 100644 index 000000000000..f7ad16ce09be --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesGetSample.ts @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to get a DeidService + * + * @summary get a DeidService + * x-ms-original-file: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json + */ +async function deidServicesGetGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.deidServices.get("rgopenapi", "deidTest"); + console.log(result); +} + +async function main() { + deidServicesGetGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesListByResourceGroupSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesListByResourceGroupSample.ts new file mode 100644 index 000000000000..4a362fc833f5 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesListByResourceGroupSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list DeidService resources by resource group + * + * @summary list DeidService resources by resource group + * x-ms-original-file: 2024-09-20/DeidServices_ListByResourceGroup_MaximumSet_Gen.json + */ +async function deidServicesListByResourceGroupGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deidServices.listByResourceGroup("rgopenapi")) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + deidServicesListByResourceGroupGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesListBySubscriptionSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesListBySubscriptionSample.ts new file mode 100644 index 000000000000..36078e160839 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesListBySubscriptionSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list DeidService resources by subscription ID + * + * @summary list DeidService resources by subscription ID + * x-ms-original-file: 2024-09-20/DeidServices_ListBySubscription_MaximumSet_Gen.json + */ +async function deidServicesListBySubscriptionGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deidServices.listBySubscription()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + deidServicesListBySubscriptionGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesUpdateSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesUpdateSample.ts new file mode 100644 index 000000000000..305d38ef9786 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/deidServicesUpdateSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to update a DeidService + * + * @summary update a DeidService + * x-ms-original-file: 2024-09-20/DeidServices_Update_MaximumSet_Gen.json + */ +async function deidServicesUpdateGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.deidServices.update("rgopenapi", "deidTest", { + identity: { type: "None", userAssignedIdentities: {} }, + tags: {}, + properties: { publicNetworkAccess: "Enabled" }, + }); + console.log(result); +} + +async function main() { + deidServicesUpdateGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/operationsListSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/operationsListSample.ts new file mode 100644 index 000000000000..756b35ba97ba --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/operationsListSample.ts @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list the operations for the provider + * + * @summary list the operations for the provider + * x-ms-original-file: 2024-09-20/Operations_List_MaximumSet_Gen.json + */ +async function operationsListMaximumSetGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "00000000-0000-0000-0000-00000000000"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + + console.log(resArray); +} + +/** + * This sample demonstrates how to list the operations for the provider + * + * @summary list the operations for the provider + * x-ms-original-file: 2024-09-20/Operations_List_MinimumSet_Gen.json + */ +async function operationsListMinimumSetGeneratedByMinimumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "00000000-0000-0000-0000-00000000000"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + operationsListMaximumSetGeneratedByMaximumSetRuleStable(); + operationsListMinimumSetGeneratedByMinimumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsCreateSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsCreateSample.ts new file mode 100644 index 000000000000..8b6bdb0ec7db --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsCreateSample.ts @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to create a Private endpoint connection + * + * @summary create a Private endpoint connection + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Create_MaximumSet_Gen.json + */ +async function privateEndpointConnectionsCreateGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.create( + "rgopenapi", + "deidTest", + "kgwgrrpabvrsrrvpcgcnfmyfgyrl", + { + properties: { + privateEndpoint: {}, + privateLinkServiceConnectionState: { + status: "Pending", + actionsRequired: "ulb", + description: "xr", + }, + }, + }, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsCreateGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsDeleteSample.ts new file mode 100644 index 000000000000..d7a11e6409d6 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to delete the private endpoint connection + * + * @summary delete the private endpoint connection + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Delete_MaximumSet_Gen.json + */ +async function privateEndpointConnectionsDeleteGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + await client.privateEndpointConnections.delete( + "rgopenapi", + "deidTest", + "kgwgrrpabvrsrrvpcgcnfmyfgyrl", + ); +} + +async function main() { + privateEndpointConnectionsDeleteGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsGetSample.ts new file mode 100644 index 000000000000..66daafb6cee1 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsGetSample.ts @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to get a specific private connection + * + * @summary get a specific private connection + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json + */ +async function privateEndpointConnectionsGetGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.get( + "rgopenapi", + "deidTest", + "kgwgrrpabvrsrrvpcgcnfmyfgyrl", + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGetGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsListByDeidServiceSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsListByDeidServiceSample.ts new file mode 100644 index 000000000000..1d402109c507 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateEndpointConnectionsListByDeidServiceSample.ts @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list private endpoint connections on the given resource + * + * @summary list private endpoint connections on the given resource + * x-ms-original-file: 2024-09-20/PrivateEndpointConnections_ListByDeidService_MaximumSet_Gen.json + */ +async function privateEndpointConnectionsListByDeidServiceGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listByDeidService( + "rgopenapi", + "deidTest", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsListByDeidServiceGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateLinksListByDeidServiceSample.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateLinksListByDeidServiceSample.ts new file mode 100644 index 000000000000..f989dea30844 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/src/privateLinksListByDeidServiceSample.ts @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HealthDataAIServicesClient } from "@azure/arm-healthdataaiservices"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to list private links on the given resource + * + * @summary list private links on the given resource + * x-ms-original-file: 2024-09-20/PrivateLinks_ListByDeidService_MaximumSet_Gen.json + */ +async function privateLinksListByDeidServiceGeneratedByMaximumSetRuleStable() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + const client = new HealthDataAIServicesClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateLinks.listByDeidService( + "rgopenapi", + "deidTest", + )) { + resArray.push(item); + } + + console.log(resArray); +} + +async function main() { + privateLinksListByDeidServiceGeneratedByMaximumSetRuleStable(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/tsconfig.json b/sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/tsconfig.json similarity index 100% rename from sdk/netapp/arm-netapp/samples/v20/typescript/tsconfig.json rename to sdk/healthdataaiservices/arm-healthdataaiservices/samples/v1/typescript/tsconfig.json diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/deidServices/index.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/deidServices/index.ts index be41c99df1f5..78e011e42033 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/deidServices/index.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/deidServices/index.ts @@ -1,55 +1,36 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { getLongRunningPoller } from "../pollingHelpers.js"; -import { PollerLike, OperationState } from "@azure/core-lro"; import { - deidServicePropertiesSerializer, - managedServiceIdentitySerializer, - managedServiceIdentityUpdateSerializer, - deidPropertiesUpdateSerializer, + HealthDataAIServicesContext as Client, + DeidServicesCreateOptionalParams, + DeidServicesDeleteOptionalParams, + DeidServicesGetOptionalParams, + DeidServicesListByResourceGroupOptionalParams, + DeidServicesListBySubscriptionOptionalParams, + DeidServicesUpdateOptionalParams, +} from "../index.js"; +import { DeidService, - DeidUpdate, + deidServiceSerializer, + deidServiceDeserializer, _DeidServiceListResult, + _deidServiceListResultDeserializer, + DeidUpdate, + deidUpdateSerializer, } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; import { - isUnexpected, - HealthDataAIServicesContext as Client, - DeidServicesCreate200Response, - DeidServicesCreate201Response, - DeidServicesCreateDefaultResponse, - DeidServicesCreateLogicalResponse, - DeidServicesDelete202Response, - DeidServicesDelete204Response, - DeidServicesDeleteDefaultResponse, - DeidServicesDeleteLogicalResponse, - DeidServicesGet200Response, - DeidServicesGetDefaultResponse, - DeidServicesListByResourceGroup200Response, - DeidServicesListByResourceGroupDefaultResponse, - DeidServicesListBySubscription200Response, - DeidServicesListBySubscriptionDefaultResponse, - DeidServicesUpdate200Response, - DeidServicesUpdate202Response, - DeidServicesUpdateDefaultResponse, - DeidServicesUpdateLogicalResponse, -} from "../../rest/index.js"; + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; import { StreamableMethod, - operationOptionsToRequestParameters, + PathUncheckedResponse, createRestError, + operationOptionsToRequestParameters, } from "@azure-rest/core-client"; -import { serializeRecord } from "../../helpers/serializerHelpers.js"; -import { - DeidServicesGetOptionalParams, - DeidServicesListByResourceGroupOptionalParams, - DeidServicesListBySubscriptionOptionalParams, - DeidServicesCreateOptionalParams, - DeidServicesUpdateOptionalParams, - DeidServicesDeleteOptionalParams, -} from "../../models/options.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; export function _deidServicesGetSend( context: Client, @@ -57,7 +38,7 @@ export function _deidServicesGetSend( resourceGroupName: string, deidServiceName: string, options: DeidServicesGetOptionalParams = { requestOptions: {} }, -): StreamableMethod { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", @@ -69,92 +50,14 @@ export function _deidServicesGetSend( } export async function _deidServicesGetDeserialize( - result: DeidServicesGet200Response | DeidServicesGetDefaultResponse, + result: PathUncheckedResponse, ): Promise { - if (isUnexpected(result)) { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - return { - tags: result.body["tags"], - location: result.body["location"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - provisioningState: result.body.properties?.["provisioningState"], - serviceUrl: result.body.properties?.["serviceUrl"], - privateEndpointConnections: - result.body.properties?.["privateEndpointConnections"] === undefined - ? result.body.properties?.["privateEndpointConnections"] - : result.body.properties?.["privateEndpointConnections"].map((p) => { - return { - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - groupIds: p.properties?.["groupIds"], - privateEndpoint: !p.properties?.privateEndpoint - ? undefined - : { id: p.properties?.privateEndpoint?.["id"] }, - privateLinkServiceConnectionState: { - status: p.properties?.privateLinkServiceConnectionState["status"], - description: - p.properties?.privateLinkServiceConnectionState["description"], - actionsRequired: - p.properties?.privateLinkServiceConnectionState["actionsRequired"], - }, - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - publicNetworkAccess: result.body.properties?.["publicNetworkAccess"], - }, - identity: !result.body.identity - ? undefined - : { - principalId: result.body.identity?.["principalId"], - tenantId: result.body.identity?.["tenantId"], - type: result.body.identity?.["type"], - userAssignedIdentities: result.body.identity?.["userAssignedIdentities"], - }, - }; + return deidServiceDeserializer(result.body); } /** Get a DeidService */ @@ -182,9 +85,7 @@ export function _deidServicesListByResourceGroupSend( options: DeidServicesListByResourceGroupOptionalParams = { requestOptions: {}, }, -): StreamableMethod< - DeidServicesListByResourceGroup200Response | DeidServicesListByResourceGroupDefaultResponse -> { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices", @@ -195,101 +96,14 @@ export function _deidServicesListByResourceGroupSend( } export async function _deidServicesListByResourceGroupDeserialize( - result: - | DeidServicesListByResourceGroup200Response - | DeidServicesListByResourceGroupDefaultResponse, + result: PathUncheckedResponse, ): Promise<_DeidServiceListResult> { - if (isUnexpected(result)) { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - return { - value: result.body["value"].map((p) => { - return { - tags: p["tags"], - location: p["location"], - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - provisioningState: p.properties?.["provisioningState"], - serviceUrl: p.properties?.["serviceUrl"], - privateEndpointConnections: - p.properties?.["privateEndpointConnections"] === undefined - ? p.properties?.["privateEndpointConnections"] - : p.properties?.["privateEndpointConnections"].map((p) => { - return { - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - groupIds: p.properties?.["groupIds"], - privateEndpoint: !p.properties?.privateEndpoint - ? undefined - : { id: p.properties?.privateEndpoint?.["id"] }, - privateLinkServiceConnectionState: { - status: p.properties?.privateLinkServiceConnectionState["status"], - description: - p.properties?.privateLinkServiceConnectionState["description"], - actionsRequired: - p.properties?.privateLinkServiceConnectionState[ - "actionsRequired" - ], - }, - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - publicNetworkAccess: p.properties?.["publicNetworkAccess"], - }, - identity: !p.identity - ? undefined - : { - principalId: p.identity?.["principalId"], - tenantId: p.identity?.["tenantId"], - type: p.identity?.["type"], - userAssignedIdentities: p.identity?.["userAssignedIdentities"], - }, - }; - }), - nextLink: result.body["nextLink"], - }; + return _deidServiceListResultDeserializer(result.body); } /** List DeidService resources by resource group */ @@ -305,6 +119,7 @@ export function deidServicesListByResourceGroup( context, () => _deidServicesListByResourceGroupSend(context, subscriptionId, resourceGroupName, options), _deidServicesListByResourceGroupDeserialize, + ["200"], { itemName: "value", nextLinkName: "nextLink" }, ); } @@ -315,9 +130,7 @@ export function _deidServicesListBySubscriptionSend( options: DeidServicesListBySubscriptionOptionalParams = { requestOptions: {}, }, -): StreamableMethod< - DeidServicesListBySubscription200Response | DeidServicesListBySubscriptionDefaultResponse -> { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/providers/Microsoft.HealthDataAIServices/deidServices", @@ -327,99 +140,14 @@ export function _deidServicesListBySubscriptionSend( } export async function _deidServicesListBySubscriptionDeserialize( - result: DeidServicesListBySubscription200Response | DeidServicesListBySubscriptionDefaultResponse, + result: PathUncheckedResponse, ): Promise<_DeidServiceListResult> { - if (isUnexpected(result)) { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - return { - value: result.body["value"].map((p) => { - return { - tags: p["tags"], - location: p["location"], - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - provisioningState: p.properties?.["provisioningState"], - serviceUrl: p.properties?.["serviceUrl"], - privateEndpointConnections: - p.properties?.["privateEndpointConnections"] === undefined - ? p.properties?.["privateEndpointConnections"] - : p.properties?.["privateEndpointConnections"].map((p) => { - return { - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - groupIds: p.properties?.["groupIds"], - privateEndpoint: !p.properties?.privateEndpoint - ? undefined - : { id: p.properties?.privateEndpoint?.["id"] }, - privateLinkServiceConnectionState: { - status: p.properties?.privateLinkServiceConnectionState["status"], - description: - p.properties?.privateLinkServiceConnectionState["description"], - actionsRequired: - p.properties?.privateLinkServiceConnectionState[ - "actionsRequired" - ], - }, - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - publicNetworkAccess: p.properties?.["publicNetworkAccess"], - }, - identity: !p.identity - ? undefined - : { - principalId: p.identity?.["principalId"], - tenantId: p.identity?.["tenantId"], - type: p.identity?.["type"], - userAssignedIdentities: p.identity?.["userAssignedIdentities"], - }, - }; - }), - nextLink: result.body["nextLink"], - }; + return _deidServiceListResultDeserializer(result.body); } /** List DeidService resources by subscription ID */ @@ -434,6 +162,7 @@ export function deidServicesListBySubscription( context, () => _deidServicesListBySubscriptionSend(context, subscriptionId, options), _deidServicesListBySubscriptionDeserialize, + ["200"], { itemName: "value", nextLinkName: "nextLink" }, ); } @@ -445,12 +174,7 @@ export function _deidServicesCreateSend( deidServiceName: string, resource: DeidService, options: DeidServicesCreateOptionalParams = { requestOptions: {} }, -): StreamableMethod< - | DeidServicesCreate200Response - | DeidServicesCreate201Response - | DeidServicesCreateDefaultResponse - | DeidServicesCreateLogicalResponse -> { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", @@ -460,111 +184,19 @@ export function _deidServicesCreateSend( ) .put({ ...operationOptionsToRequestParameters(options), - body: { - tags: !resource.tags ? resource.tags : (serializeRecord(resource.tags as any) as any), - location: resource["location"], - properties: !resource.properties - ? resource.properties - : deidServicePropertiesSerializer(resource.properties), - identity: !resource.identity - ? resource.identity - : managedServiceIdentitySerializer(resource.identity), - }, + body: deidServiceSerializer(resource), }); } export async function _deidServicesCreateDeserialize( - result: - | DeidServicesCreate200Response - | DeidServicesCreate201Response - | DeidServicesCreateDefaultResponse - | DeidServicesCreateLogicalResponse, + result: PathUncheckedResponse, ): Promise { - if (isUnexpected(result)) { + const expectedStatuses = ["200", "201"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - const res = result as unknown as DeidServicesCreateLogicalResponse; - return { - tags: res.body["tags"], - location: res.body["location"], - id: res.body["id"], - name: res.body["name"], - type: res.body["type"], - systemData: !res.body.systemData - ? undefined - : { - createdBy: res.body.systemData?.["createdBy"], - createdByType: res.body.systemData?.["createdByType"], - createdAt: - res.body.systemData?.["createdAt"] !== undefined - ? new Date(res.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: res.body.systemData?.["lastModifiedBy"], - lastModifiedByType: res.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - res.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(res.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !res.body.properties - ? undefined - : { - provisioningState: res.body.properties?.["provisioningState"], - serviceUrl: res.body.properties?.["serviceUrl"], - privateEndpointConnections: - res.body.properties?.["privateEndpointConnections"] === undefined - ? res.body.properties?.["privateEndpointConnections"] - : res.body.properties?.["privateEndpointConnections"].map((p) => { - return { - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - groupIds: p.properties?.["groupIds"], - privateEndpoint: !p.properties?.privateEndpoint - ? undefined - : { id: p.properties?.privateEndpoint?.["id"] }, - privateLinkServiceConnectionState: { - status: p.properties?.privateLinkServiceConnectionState["status"], - description: - p.properties?.privateLinkServiceConnectionState["description"], - actionsRequired: - p.properties?.privateLinkServiceConnectionState["actionsRequired"], - }, - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - publicNetworkAccess: res.body.properties?.["publicNetworkAccess"], - }, - identity: !res.body.identity - ? undefined - : { - principalId: res.body.identity?.["principalId"], - tenantId: res.body.identity?.["tenantId"], - type: res.body.identity?.["type"], - userAssignedIdentities: res.body.identity?.["userAssignedIdentities"], - }, - }; + return deidServiceDeserializer(result.body); } /** Create a DeidService */ @@ -576,7 +208,7 @@ export function deidServicesCreate( resource: DeidService, options: DeidServicesCreateOptionalParams = { requestOptions: {} }, ): PollerLike, DeidService> { - return getLongRunningPoller(context, _deidServicesCreateDeserialize, { + return getLongRunningPoller(context, _deidServicesCreateDeserialize, ["200", "201"], { updateIntervalInMs: options?.updateIntervalInMs, abortSignal: options?.abortSignal, getInitialResponse: () => @@ -588,6 +220,7 @@ export function deidServicesCreate( resource, options, ), + resourceLocationConfig: "azure-async-operation", }) as PollerLike, DeidService>; } @@ -598,12 +231,7 @@ export function _deidServicesUpdateSend( deidServiceName: string, properties: DeidUpdate, options: DeidServicesUpdateOptionalParams = { requestOptions: {} }, -): StreamableMethod< - | DeidServicesUpdate200Response - | DeidServicesUpdate202Response - | DeidServicesUpdateDefaultResponse - | DeidServicesUpdateLogicalResponse -> { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", @@ -613,110 +241,19 @@ export function _deidServicesUpdateSend( ) .patch({ ...operationOptionsToRequestParameters(options), - body: { - tags: !properties.tags ? properties.tags : (serializeRecord(properties.tags as any) as any), - identity: !properties.identity - ? properties.identity - : managedServiceIdentityUpdateSerializer(properties.identity), - properties: !properties.properties - ? properties.properties - : deidPropertiesUpdateSerializer(properties.properties), - }, + body: deidUpdateSerializer(properties), }); } export async function _deidServicesUpdateDeserialize( - result: - | DeidServicesUpdate200Response - | DeidServicesUpdate202Response - | DeidServicesUpdateDefaultResponse - | DeidServicesUpdateLogicalResponse, + result: PathUncheckedResponse, ): Promise { - if (isUnexpected(result)) { + const expectedStatuses = ["200", "202"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - const res = result as unknown as DeidServicesUpdateLogicalResponse; - return { - tags: res.body["tags"], - location: res.body["location"], - id: res.body["id"], - name: res.body["name"], - type: res.body["type"], - systemData: !res.body.systemData - ? undefined - : { - createdBy: res.body.systemData?.["createdBy"], - createdByType: res.body.systemData?.["createdByType"], - createdAt: - res.body.systemData?.["createdAt"] !== undefined - ? new Date(res.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: res.body.systemData?.["lastModifiedBy"], - lastModifiedByType: res.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - res.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(res.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !res.body.properties - ? undefined - : { - provisioningState: res.body.properties?.["provisioningState"], - serviceUrl: res.body.properties?.["serviceUrl"], - privateEndpointConnections: - res.body.properties?.["privateEndpointConnections"] === undefined - ? res.body.properties?.["privateEndpointConnections"] - : res.body.properties?.["privateEndpointConnections"].map((p) => { - return { - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - groupIds: p.properties?.["groupIds"], - privateEndpoint: !p.properties?.privateEndpoint - ? undefined - : { id: p.properties?.privateEndpoint?.["id"] }, - privateLinkServiceConnectionState: { - status: p.properties?.privateLinkServiceConnectionState["status"], - description: - p.properties?.privateLinkServiceConnectionState["description"], - actionsRequired: - p.properties?.privateLinkServiceConnectionState["actionsRequired"], - }, - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - publicNetworkAccess: res.body.properties?.["publicNetworkAccess"], - }, - identity: !res.body.identity - ? undefined - : { - principalId: res.body.identity?.["principalId"], - tenantId: res.body.identity?.["tenantId"], - type: res.body.identity?.["type"], - userAssignedIdentities: res.body.identity?.["userAssignedIdentities"], - }, - }; + return deidServiceDeserializer(result.body); } /** Update a DeidService */ @@ -728,7 +265,7 @@ export function deidServicesUpdate( properties: DeidUpdate, options: DeidServicesUpdateOptionalParams = { requestOptions: {} }, ): PollerLike, DeidService> { - return getLongRunningPoller(context, _deidServicesUpdateDeserialize, { + return getLongRunningPoller(context, _deidServicesUpdateDeserialize, ["200", "202"], { updateIntervalInMs: options?.updateIntervalInMs, abortSignal: options?.abortSignal, getInitialResponse: () => @@ -740,6 +277,7 @@ export function deidServicesUpdate( properties, options, ), + resourceLocationConfig: "location", }) as PollerLike, DeidService>; } @@ -749,12 +287,7 @@ export function _deidServicesDeleteSend( resourceGroupName: string, deidServiceName: string, options: DeidServicesDeleteOptionalParams = { requestOptions: {} }, -): StreamableMethod< - | DeidServicesDelete202Response - | DeidServicesDelete204Response - | DeidServicesDeleteDefaultResponse - | DeidServicesDeleteLogicalResponse -> { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", @@ -765,14 +298,9 @@ export function _deidServicesDeleteSend( .delete({ ...operationOptionsToRequestParameters(options) }); } -export async function _deidServicesDeleteDeserialize( - result: - | DeidServicesDelete202Response - | DeidServicesDelete204Response - | DeidServicesDeleteDefaultResponse - | DeidServicesDeleteLogicalResponse, -): Promise { - if (isUnexpected(result)) { +export async function _deidServicesDeleteDeserialize(result: PathUncheckedResponse): Promise { + const expectedStatuses = ["202", "204", "200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } @@ -787,10 +315,11 @@ export function deidServicesDelete( deidServiceName: string, options: DeidServicesDeleteOptionalParams = { requestOptions: {} }, ): PollerLike, void> { - return getLongRunningPoller(context, _deidServicesDeleteDeserialize, { + return getLongRunningPoller(context, _deidServicesDeleteDeserialize, ["202", "204", "200"], { updateIntervalInMs: options?.updateIntervalInMs, abortSignal: options?.abortSignal, getInitialResponse: () => _deidServicesDeleteSend(context, subscriptionId, resourceGroupName, deidServiceName, options), + resourceLocationConfig: "location", }) as PollerLike, void>; } diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/healthDataAIServicesContext.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/healthDataAIServicesContext.ts index d63f1164f437..d1d4110e1228 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/healthDataAIServicesContext.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/healthDataAIServicesContext.ts @@ -1,30 +1,55 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +import { logger } from "../logger.js"; +import { KnownVersions } from "../models/models.js"; +import { Client, ClientOptions, getClient } from "@azure-rest/core-client"; import { TokenCredential } from "@azure/core-auth"; -import { ClientOptions } from "@azure-rest/core-client"; -import { HealthDataAIServicesContext } from "../rest/index.js"; -import getClient from "../rest/index.js"; + +export interface HealthDataAIServicesContext extends Client {} /** Optional parameters for the client. */ export interface HealthDataAIServicesClientOptionalParams extends ClientOptions { /** The API version to use for this operation. */ + /** Known values of {@link KnownVersions} that the service accepts. */ apiVersion?: string; } -export { HealthDataAIServicesContext } from "../rest/index.js"; - -/** The Microsoft Azure management API provides create, read, update, and delete functionality for Microsoft HealthDataAIServices resources including deidServices */ export function createHealthDataAIServices( credential: TokenCredential, options: HealthDataAIServicesClientOptionalParams = {}, ): HealthDataAIServicesContext { + const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; - const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-api` : "azsdk-js-api"; - - const clientContext = getClient(credential, { + const userAgentInfo = `azsdk-js-arm-healthdataaiservices/1.0.0-beta.1`; + const userAgentPrefix = prefixFromOptions + ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}` + : `azsdk-js-api ${userAgentInfo}`; + const { apiVersion: _, ...updatedOptions } = { ...options, userAgentOptions: { userAgentPrefix }, + loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info }, + credentials: { + scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], + }, + }; + const clientContext = getClient(endpointUrl, credential, updatedOptions); + clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + const apiVersion = options.apiVersion ?? "2024-09-20"; + clientContext.pipeline.addPolicy({ + name: "ClientApiVersionPolicy", + sendRequest: (req, next) => { + // Use the apiVersion defined in request url directly + // Append one if there is no apiVersion and we have one at client options + const url = new URL(req.url); + if (!url.searchParams.get("api-version")) { + req.url = `${req.url}${ + Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; + } + + return next(req); + }, }); return clientContext; } diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/index.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/index.ts index 14c04ee35ca1..0411e16822fa 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/index.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/index.ts @@ -3,9 +3,23 @@ export { createHealthDataAIServices, - HealthDataAIServicesClientOptionalParams, HealthDataAIServicesContext, + HealthDataAIServicesClientOptionalParams, } from "./healthDataAIServicesContext.js"; +export { + OperationsListOptionalParams, + DeidServicesGetOptionalParams, + DeidServicesListByResourceGroupOptionalParams, + DeidServicesListBySubscriptionOptionalParams, + DeidServicesCreateOptionalParams, + DeidServicesUpdateOptionalParams, + DeidServicesDeleteOptionalParams, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsCreateOptionalParams, + PrivateEndpointConnectionsDeleteOptionalParams, + PrivateEndpointConnectionsListByDeidServiceOptionalParams, + PrivateLinksListByDeidServiceOptionalParams, +} from "./options.js"; export { deidServicesGet, deidServicesListByResourceGroup, diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/operations/index.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/operations/index.ts index e6a2af367b7d..87be0c827d08 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/operations/index.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/operations/index.ts @@ -1,57 +1,41 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { Operation, _OperationListResult } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; +import { HealthDataAIServicesContext as Client, OperationsListOptionalParams } from "../index.js"; import { - isUnexpected, - HealthDataAIServicesContext as Client, - OperationsList200Response, - OperationsListDefaultResponse, -} from "../../rest/index.js"; + _OperationListResult, + _operationListResultDeserializer, + Operation, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; import { StreamableMethod, - operationOptionsToRequestParameters, + PathUncheckedResponse, createRestError, + operationOptionsToRequestParameters, } from "@azure-rest/core-client"; -import { OperationsListOptionalParams } from "../../models/options.js"; export function _operationsListSend( context: Client, options: OperationsListOptionalParams = { requestOptions: {} }, -): StreamableMethod { +): StreamableMethod { return context .path("/providers/Microsoft.HealthDataAIServices/operations") .get({ ...operationOptionsToRequestParameters(options) }); } export async function _operationsListDeserialize( - result: OperationsList200Response | OperationsListDefaultResponse, + result: PathUncheckedResponse, ): Promise<_OperationListResult> { - if (isUnexpected(result)) { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - return { - value: result.body["value"].map((p) => { - return { - name: p["name"], - isDataAction: p["isDataAction"], - display: !p.display - ? undefined - : { - provider: p.display?.["provider"], - resource: p.display?.["resource"], - operation: p.display?.["operation"], - description: p.display?.["description"], - }, - origin: p["origin"], - actionType: p["actionType"], - }; - }), - nextLink: result.body["nextLink"], - }; + return _operationListResultDeserializer(result.body); } /** List the operations for the provider */ @@ -63,6 +47,7 @@ export function operationsList( context, () => _operationsListSend(context, options), _operationsListDeserialize, + ["200"], { itemName: "value", nextLinkName: "nextLink" }, ); } diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/models/options.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/options.ts similarity index 100% rename from sdk/healthdataaiservices/arm-healthdataaiservices/src/models/options.ts rename to sdk/healthdataaiservices/arm-healthdataaiservices/src/api/options.ts diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/pagingHelpers.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/pagingHelpers.ts deleted file mode 100644 index 5342e57b798f..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/pagingHelpers.ts +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; -import { RestError } from "@azure/core-rest-pipeline"; -import { - BuildPagedAsyncIteratorOptions, - ContinuablePage, - PageSettings, - PagedAsyncIterableIterator, - PagedResult, -} from "../models/pagingTypes.js"; -import { isUnexpected } from "../rest/index.js"; - -/** - * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator - */ -export function buildPagedAsyncIterator< - TElement, - TPage = TElement[], - TPageSettings extends PageSettings = PageSettings, - TResponse extends PathUncheckedResponse = PathUncheckedResponse, ->( - client: Client, - getInitialResponse: () => PromiseLike, - processResponseBody: (result: TResponse) => PromiseLike, - options: BuildPagedAsyncIteratorOptions = {}, -): PagedAsyncIterableIterator { - const itemName = options.itemName ?? "value"; - const nextLinkName = options.nextLinkName ?? "nextLink"; - const pagedResult: PagedResult = { - getPage: async (pageLink?: string) => { - const result = - pageLink === undefined - ? await getInitialResponse() - : await client.pathUnchecked(pageLink).get(); - checkPagingRequest(result); - const results = await processResponseBody(result as TResponse); - const nextLink = getNextLink(results, nextLinkName); - const values = getElements(results, itemName) as TPage; - return { - page: values, - nextPageLink: nextLink, - }; - }, - byPage: (settings?: TPageSettings) => { - const { continuationToken } = settings ?? {}; - return getPageAsyncIterator(pagedResult, { - pageLink: continuationToken, - }); - }, - }; - return getPagedAsyncIterator(pagedResult); -} - -/** - * returns an async iterator that iterates over results. It also has a `byPage` - * method that returns pages of items at once. - * - * @param pagedResult - an object that specifies how to get pages. - * @returns a paged async iterator that iterates over results. - */ - -function getPagedAsyncIterator< - TElement, - TPage = TElement[], - TPageSettings extends PageSettings = PageSettings, ->( - pagedResult: PagedResult, -): PagedAsyncIterableIterator { - const iter = getItemAsyncIterator(pagedResult); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: - pagedResult?.byPage ?? - ((settings?: TPageSettings) => { - const { continuationToken } = settings ?? {}; - return getPageAsyncIterator(pagedResult, { - pageLink: continuationToken, - }); - }), - }; -} - -async function* getItemAsyncIterator( - pagedResult: PagedResult, -): AsyncIterableIterator { - const pages = getPageAsyncIterator(pagedResult); - for await (const page of pages) { - yield* page as unknown as TElement[]; - } -} - -async function* getPageAsyncIterator( - pagedResult: PagedResult, - options: { - pageLink?: string; - } = {}, -): AsyncIterableIterator> { - const { pageLink } = options; - let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink); - if (!response) { - return; - } - let result = response.page as ContinuablePage; - result.continuationToken = response.nextPageLink; - yield result; - while (response.nextPageLink) { - response = await pagedResult.getPage(response.nextPageLink); - if (!response) { - return; - } - result = response.page as ContinuablePage; - result.continuationToken = response.nextPageLink; - yield result; - } -} - -/** - * Gets for the value of nextLink in the body - */ -function getNextLink(body: unknown, nextLinkName?: string): string | undefined { - if (!nextLinkName) { - return undefined; - } - - const nextLink = (body as Record)[nextLinkName]; - - if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) { - throw new RestError( - `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`, - ); - } - - if (nextLink === null) { - return undefined; - } - - return nextLink; -} - -/** - * Gets the elements of the current request in the body. - */ -function getElements(body: unknown, itemName: string): T[] { - const value = (body as Record)[itemName] as T[]; - if (!Array.isArray(value)) { - throw new RestError( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, - ); - } - - return value ?? []; -} - -/** - * Checks if a request failed - */ -function checkPagingRequest(response: PathUncheckedResponse): void { - if (isUnexpected(response)) { - throw createRestError( - `Pagination failed with unexpected statusCode ${response.status}`, - response, - ); - } -} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/pollingHelpers.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/pollingHelpers.ts deleted file mode 100644 index bfbeffa13669..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/pollingHelpers.ts +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { - PollerLike, - OperationState, - ResourceLocationConfig, - RunningOperation, - createHttpPoller, - OperationResponse, -} from "@azure/core-lro"; - -import { Client, PathUncheckedResponse, createRestError } from "@azure-rest/core-client"; -import { AbortSignalLike } from "@azure/abort-controller"; -import { isUnexpected } from "../rest/index.js"; - -export interface GetLongRunningPollerOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** - * The signal which can be used to abort requests. - */ - abortSignal?: AbortSignalLike; - /** - * The potential location of the result of the LRO if specified by the LRO extension in the swagger. - */ - resourceLocationConfig?: ResourceLocationConfig; - /** - * The original url of the LRO - * Should not be null when restoreFrom is set - */ - initialRequestUrl?: string; - /** - * A serialized poller which can be used to resume an existing paused Long-Running-Operation. - */ - restoreFrom?: string; - /** - * The function to get the initial response - */ - getInitialResponse?: () => PromiseLike; -} -export function getLongRunningPoller( - client: Client, - processResponseBody: (result: TResponse) => Promise, - options: GetLongRunningPollerOptions, -): PollerLike, TResult> { - const { restoreFrom, getInitialResponse } = options; - if (!restoreFrom && !getInitialResponse) { - throw new Error("Either restoreFrom or getInitialResponse must be specified"); - } - let initialResponse: TResponse | undefined = undefined; - const pollAbortController = new AbortController(); - const poller: RunningOperation = { - sendInitialRequest: async () => { - if (!getInitialResponse) { - throw new Error("getInitialResponse is required when initializing a new poller"); - } - initialResponse = await getInitialResponse(); - return getLroResponse(initialResponse); - }, - sendPollRequest: async ( - path: string, - pollOptions?: { - abortSignal?: AbortSignalLike; - }, - ) => { - // The poll request would both listen to the user provided abort signal and the poller's own abort signal - function abortListener(): void { - pollAbortController.abort(); - } - const abortSignal = pollAbortController.signal; - if (options.abortSignal?.aborted) { - pollAbortController.abort(); - } else if (pollOptions?.abortSignal?.aborted) { - pollAbortController.abort(); - } else if (!abortSignal.aborted) { - options.abortSignal?.addEventListener("abort", abortListener, { - once: true, - }); - pollOptions?.abortSignal?.addEventListener("abort", abortListener, { - once: true, - }); - } - let response; - try { - response = await client.pathUnchecked(path).get({ abortSignal }); - } finally { - options.abortSignal?.removeEventListener("abort", abortListener); - pollOptions?.abortSignal?.removeEventListener("abort", abortListener); - } - if (options.initialRequestUrl || initialResponse) { - response.headers["x-ms-original-url"] = - options.initialRequestUrl ?? initialResponse!.request.url; - } - - return getLroResponse(response as TResponse); - }, - }; - return createHttpPoller(poller, { - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: options?.resourceLocationConfig, - restoreFrom: options?.restoreFrom, - processResult: (result: unknown) => { - return processResponseBody(result as TResponse); - }, - }); -} -/** - * Converts a Rest Client response to a response that the LRO implementation understands - * @param response - a rest client http response - * @param deserializeFn - deserialize function to convert Rest response to modular output - * @returns - An LRO response that the LRO implementation understands - */ -function getLroResponse( - response: TResponse, -): OperationResponse { - if (isUnexpected(response as PathUncheckedResponse)) { - throw createRestError(response); - } - return { - flatResponse: response, - rawResponse: { - ...response, - statusCode: Number.parseInt(response.status), - body: response.body, - }, - }; -} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/privateEndpointConnections/index.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/privateEndpointConnections/index.ts index 93301095eb1b..e1bbfb15a799 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/privateEndpointConnections/index.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/privateEndpointConnections/index.ts @@ -1,42 +1,32 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { getLongRunningPoller } from "../pollingHelpers.js"; -import { PollerLike, OperationState } from "@azure/core-lro"; import { - privateEndpointConnectionPropertiesSerializer, + HealthDataAIServicesContext as Client, + PrivateEndpointConnectionsCreateOptionalParams, + PrivateEndpointConnectionsDeleteOptionalParams, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsListByDeidServiceOptionalParams, +} from "../index.js"; +import { PrivateEndpointConnectionResource, + privateEndpointConnectionResourceSerializer, + privateEndpointConnectionResourceDeserializer, _PrivateEndpointConnectionResourceListResult, + _privateEndpointConnectionResourceListResultDeserializer, } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; import { - isUnexpected, - HealthDataAIServicesContext as Client, - PrivateEndpointConnectionsCreate200Response, - PrivateEndpointConnectionsCreate201Response, - PrivateEndpointConnectionsCreateDefaultResponse, - PrivateEndpointConnectionsCreateLogicalResponse, - PrivateEndpointConnectionsDelete202Response, - PrivateEndpointConnectionsDelete204Response, - PrivateEndpointConnectionsDeleteDefaultResponse, - PrivateEndpointConnectionsDeleteLogicalResponse, - PrivateEndpointConnectionsGet200Response, - PrivateEndpointConnectionsGetDefaultResponse, - PrivateEndpointConnectionsListByDeidService200Response, - PrivateEndpointConnectionsListByDeidServiceDefaultResponse, -} from "../../rest/index.js"; + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; import { StreamableMethod, - operationOptionsToRequestParameters, + PathUncheckedResponse, createRestError, + operationOptionsToRequestParameters, } from "@azure-rest/core-client"; -import { - PrivateEndpointConnectionsGetOptionalParams, - PrivateEndpointConnectionsCreateOptionalParams, - PrivateEndpointConnectionsDeleteOptionalParams, - PrivateEndpointConnectionsListByDeidServiceOptionalParams, -} from "../../models/options.js"; +import { PollerLike, OperationState } from "@azure/core-lro"; export function _privateEndpointConnectionsGetSend( context: Client, @@ -45,9 +35,7 @@ export function _privateEndpointConnectionsGetSend( deidServiceName: string, privateEndpointConnectionName: string, options: PrivateEndpointConnectionsGetOptionalParams = { requestOptions: {} }, -): StreamableMethod< - PrivateEndpointConnectionsGet200Response | PrivateEndpointConnectionsGetDefaultResponse -> { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", @@ -60,48 +48,14 @@ export function _privateEndpointConnectionsGetSend( } export async function _privateEndpointConnectionsGetDeserialize( - result: PrivateEndpointConnectionsGet200Response | PrivateEndpointConnectionsGetDefaultResponse, + result: PathUncheckedResponse, ): Promise { - if (isUnexpected(result)) { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - groupIds: result.body.properties?.["groupIds"], - privateEndpoint: !result.body.properties?.privateEndpoint - ? undefined - : { id: result.body.properties?.privateEndpoint?.["id"] }, - privateLinkServiceConnectionState: { - status: result.body.properties?.privateLinkServiceConnectionState["status"], - description: result.body.properties?.privateLinkServiceConnectionState["description"], - actionsRequired: - result.body.properties?.privateLinkServiceConnectionState["actionsRequired"], - }, - provisioningState: result.body.properties?.["provisioningState"], - }, - }; + return privateEndpointConnectionResourceDeserializer(result.body); } /** Get a specific private connection */ @@ -134,12 +88,7 @@ export function _privateEndpointConnectionsCreateSend( options: PrivateEndpointConnectionsCreateOptionalParams = { requestOptions: {}, }, -): StreamableMethod< - | PrivateEndpointConnectionsCreate200Response - | PrivateEndpointConnectionsCreate201Response - | PrivateEndpointConnectionsCreateDefaultResponse - | PrivateEndpointConnectionsCreateLogicalResponse -> { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", @@ -150,62 +99,19 @@ export function _privateEndpointConnectionsCreateSend( ) .put({ ...operationOptionsToRequestParameters(options), - body: { - properties: !resource.properties - ? resource.properties - : privateEndpointConnectionPropertiesSerializer(resource.properties), - }, + body: privateEndpointConnectionResourceSerializer(resource), }); } export async function _privateEndpointConnectionsCreateDeserialize( - result: - | PrivateEndpointConnectionsCreate200Response - | PrivateEndpointConnectionsCreate201Response - | PrivateEndpointConnectionsCreateDefaultResponse - | PrivateEndpointConnectionsCreateLogicalResponse, + result: PathUncheckedResponse, ): Promise { - if (isUnexpected(result)) { + const expectedStatuses = ["200", "201"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - const res = result as unknown as PrivateEndpointConnectionsCreateLogicalResponse; - return { - id: res.body["id"], - name: res.body["name"], - type: res.body["type"], - systemData: !res.body.systemData - ? undefined - : { - createdBy: res.body.systemData?.["createdBy"], - createdByType: res.body.systemData?.["createdByType"], - createdAt: - res.body.systemData?.["createdAt"] !== undefined - ? new Date(res.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: res.body.systemData?.["lastModifiedBy"], - lastModifiedByType: res.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - res.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(res.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !res.body.properties - ? undefined - : { - groupIds: res.body.properties?.["groupIds"], - privateEndpoint: !res.body.properties?.privateEndpoint - ? undefined - : { id: res.body.properties?.privateEndpoint?.["id"] }, - privateLinkServiceConnectionState: { - status: res.body.properties?.privateLinkServiceConnectionState["status"], - description: res.body.properties?.privateLinkServiceConnectionState["description"], - actionsRequired: - res.body.properties?.privateLinkServiceConnectionState["actionsRequired"], - }, - provisioningState: res.body.properties?.["provisioningState"], - }, - }; + return privateEndpointConnectionResourceDeserializer(result.body); } /** Create a Private endpoint connection */ @@ -223,20 +129,26 @@ export function privateEndpointConnectionsCreate( OperationState, PrivateEndpointConnectionResource > { - return getLongRunningPoller(context, _privateEndpointConnectionsCreateDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _privateEndpointConnectionsCreateSend( - context, - subscriptionId, - resourceGroupName, - deidServiceName, - privateEndpointConnectionName, - resource, - options, - ), - }) as PollerLike< + return getLongRunningPoller( + context, + _privateEndpointConnectionsCreateDeserialize, + ["200", "201"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _privateEndpointConnectionsCreateSend( + context, + subscriptionId, + resourceGroupName, + deidServiceName, + privateEndpointConnectionName, + resource, + options, + ), + resourceLocationConfig: "azure-async-operation", + }, + ) as PollerLike< OperationState, PrivateEndpointConnectionResource >; @@ -251,12 +163,7 @@ export function _privateEndpointConnectionsDeleteSend( options: PrivateEndpointConnectionsDeleteOptionalParams = { requestOptions: {}, }, -): StreamableMethod< - | PrivateEndpointConnectionsDelete202Response - | PrivateEndpointConnectionsDelete204Response - | PrivateEndpointConnectionsDeleteDefaultResponse - | PrivateEndpointConnectionsDeleteLogicalResponse -> { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", @@ -269,13 +176,10 @@ export function _privateEndpointConnectionsDeleteSend( } export async function _privateEndpointConnectionsDeleteDeserialize( - result: - | PrivateEndpointConnectionsDelete202Response - | PrivateEndpointConnectionsDelete204Response - | PrivateEndpointConnectionsDeleteDefaultResponse - | PrivateEndpointConnectionsDeleteLogicalResponse, + result: PathUncheckedResponse, ): Promise { - if (isUnexpected(result)) { + const expectedStatuses = ["202", "204", "200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } @@ -293,19 +197,25 @@ export function privateEndpointConnectionsDelete( requestOptions: {}, }, ): PollerLike, void> { - return getLongRunningPoller(context, _privateEndpointConnectionsDeleteDeserialize, { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _privateEndpointConnectionsDeleteSend( - context, - subscriptionId, - resourceGroupName, - deidServiceName, - privateEndpointConnectionName, - options, - ), - }) as PollerLike, void>; + return getLongRunningPoller( + context, + _privateEndpointConnectionsDeleteDeserialize, + ["202", "204", "200"], + { + updateIntervalInMs: options?.updateIntervalInMs, + abortSignal: options?.abortSignal, + getInitialResponse: () => + _privateEndpointConnectionsDeleteSend( + context, + subscriptionId, + resourceGroupName, + deidServiceName, + privateEndpointConnectionName, + options, + ), + resourceLocationConfig: "location", + }, + ) as PollerLike, void>; } export function _privateEndpointConnectionsListByDeidServiceSend( @@ -316,10 +226,7 @@ export function _privateEndpointConnectionsListByDeidServiceSend( options: PrivateEndpointConnectionsListByDeidServiceOptionalParams = { requestOptions: {}, }, -): StreamableMethod< - | PrivateEndpointConnectionsListByDeidService200Response - | PrivateEndpointConnectionsListByDeidServiceDefaultResponse -> { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections", @@ -331,54 +238,14 @@ export function _privateEndpointConnectionsListByDeidServiceSend( } export async function _privateEndpointConnectionsListByDeidServiceDeserialize( - result: - | PrivateEndpointConnectionsListByDeidService200Response - | PrivateEndpointConnectionsListByDeidServiceDefaultResponse, + result: PathUncheckedResponse, ): Promise<_PrivateEndpointConnectionResourceListResult> { - if (isUnexpected(result)) { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - return { - value: result.body["value"].map((p) => { - return { - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - groupIds: p.properties?.["groupIds"], - privateEndpoint: !p.properties?.privateEndpoint - ? undefined - : { id: p.properties?.privateEndpoint?.["id"] }, - privateLinkServiceConnectionState: { - status: p.properties?.privateLinkServiceConnectionState["status"], - description: p.properties?.privateLinkServiceConnectionState["description"], - actionsRequired: p.properties?.privateLinkServiceConnectionState["actionsRequired"], - }, - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - nextLink: result.body["nextLink"], - }; + return _privateEndpointConnectionResourceListResultDeserializer(result.body); } /** List private endpoint connections on the given resource */ @@ -402,6 +269,7 @@ export function privateEndpointConnectionsListByDeidService( options, ), _privateEndpointConnectionsListByDeidServiceDeserialize, + ["200"], { itemName: "value", nextLinkName: "nextLink" }, ); } diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/privateLinks/index.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/privateLinks/index.ts index 32be798a6378..aa0fd02be475 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/privateLinks/index.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/api/privateLinks/index.ts @@ -1,21 +1,25 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { PrivateLinkResource, _PrivateLinkResourceListResult } from "../../models/models.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { buildPagedAsyncIterator } from "../pagingHelpers.js"; import { - isUnexpected, HealthDataAIServicesContext as Client, - PrivateLinksListByDeidService200Response, - PrivateLinksListByDeidServiceDefaultResponse, -} from "../../rest/index.js"; + PrivateLinksListByDeidServiceOptionalParams, +} from "../index.js"; +import { + _PrivateLinkResourceListResult, + _privateLinkResourceListResultDeserializer, + PrivateLinkResource, +} from "../../models/models.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; import { StreamableMethod, - operationOptionsToRequestParameters, + PathUncheckedResponse, createRestError, + operationOptionsToRequestParameters, } from "@azure-rest/core-client"; -import { PrivateLinksListByDeidServiceOptionalParams } from "../../models/options.js"; export function _privateLinksListByDeidServiceSend( context: Client, @@ -23,9 +27,7 @@ export function _privateLinksListByDeidServiceSend( resourceGroupName: string, deidServiceName: string, options: PrivateLinksListByDeidServiceOptionalParams = { requestOptions: {} }, -): StreamableMethod< - PrivateLinksListByDeidService200Response | PrivateLinksListByDeidServiceDefaultResponse -> { +): StreamableMethod { return context .path( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateLinkResources", @@ -37,45 +39,14 @@ export function _privateLinksListByDeidServiceSend( } export async function _privateLinksListByDeidServiceDeserialize( - result: PrivateLinksListByDeidService200Response | PrivateLinksListByDeidServiceDefaultResponse, + result: PathUncheckedResponse, ): Promise<_PrivateLinkResourceListResult> { - if (isUnexpected(result)) { + const expectedStatuses = ["200"]; + if (!expectedStatuses.includes(result.status)) { throw createRestError(result); } - return { - value: result.body["value"].map((p) => { - return { - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - groupId: p.properties?.["groupId"], - requiredMembers: p.properties?.["requiredMembers"], - requiredZoneNames: p.properties?.["requiredZoneNames"], - }, - }; - }), - nextLink: result.body["nextLink"], - }; + return _privateLinkResourceListResultDeserializer(result.body); } /** List private links on the given resource */ @@ -97,6 +68,7 @@ export function privateLinksListByDeidService( options, ), _privateLinksListByDeidServiceDeserialize, + ["200"], { itemName: "value", nextLinkName: "nextLink" }, ); } diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/deidServices/index.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/deidServices/index.ts index 698055c914ac..e240e4e00528 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/deidServices/index.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/deidServices/index.ts @@ -2,7 +2,6 @@ // Licensed under the MIT License. import { HealthDataAIServicesContext } from "../../api/healthDataAIServicesContext.js"; -import { DeidService, DeidUpdate } from "../../models/models.js"; import { deidServicesGet, deidServicesListByResourceGroup, @@ -11,7 +10,8 @@ import { deidServicesUpdate, deidServicesDelete, } from "../../api/deidServices/index.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { DeidService, DeidUpdate } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; import { PollerLike, OperationState } from "@azure/core-lro"; import { DeidServicesGetOptionalParams, @@ -20,7 +20,7 @@ import { DeidServicesCreateOptionalParams, DeidServicesUpdateOptionalParams, DeidServicesDeleteOptionalParams, -} from "../../models/options.js"; +} from "../../api/options.js"; /** Interface representing a DeidServices operations. */ export interface DeidServicesOperations { diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/operations/index.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/operations/index.ts index 9b91560312e7..6b3d1c1e1d4f 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/operations/index.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/operations/index.ts @@ -2,10 +2,10 @@ // Licensed under the MIT License. import { HealthDataAIServicesContext } from "../../api/healthDataAIServicesContext.js"; -import { Operation } from "../../models/models.js"; import { operationsList } from "../../api/operations/index.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { OperationsListOptionalParams } from "../../models/options.js"; +import { OperationsListOptionalParams } from "../../api/options.js"; +import { Operation } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; /** Interface representing a Operations operations. */ export interface OperationsOperations { diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/privateEndpointConnections/index.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/privateEndpointConnections/index.ts index 69b1e7eb94d7..aeaa77fb99cc 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/privateEndpointConnections/index.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/privateEndpointConnections/index.ts @@ -2,21 +2,21 @@ // Licensed under the MIT License. import { HealthDataAIServicesContext } from "../../api/healthDataAIServicesContext.js"; -import { PrivateEndpointConnectionResource } from "../../models/models.js"; +import { + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsCreateOptionalParams, + PrivateEndpointConnectionsDeleteOptionalParams, + PrivateEndpointConnectionsListByDeidServiceOptionalParams, +} from "../../api/options.js"; import { privateEndpointConnectionsGet, privateEndpointConnectionsCreate, privateEndpointConnectionsDelete, privateEndpointConnectionsListByDeidService, } from "../../api/privateEndpointConnections/index.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; +import { PrivateEndpointConnectionResource } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; import { PollerLike, OperationState } from "@azure/core-lro"; -import { - PrivateEndpointConnectionsGetOptionalParams, - PrivateEndpointConnectionsCreateOptionalParams, - PrivateEndpointConnectionsDeleteOptionalParams, - PrivateEndpointConnectionsListByDeidServiceOptionalParams, -} from "../../models/options.js"; /** Interface representing a PrivateEndpointConnections operations. */ export interface PrivateEndpointConnectionsOperations { diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/privateLinks/index.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/privateLinks/index.ts index b9ae9d2ddda2..ee6407ddfd0c 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/privateLinks/index.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/classic/privateLinks/index.ts @@ -2,10 +2,10 @@ // Licensed under the MIT License. import { HealthDataAIServicesContext } from "../../api/healthDataAIServicesContext.js"; -import { PrivateLinkResource } from "../../models/models.js"; +import { PrivateLinksListByDeidServiceOptionalParams } from "../../api/options.js"; import { privateLinksListByDeidService } from "../../api/privateLinks/index.js"; -import { PagedAsyncIterableIterator } from "../../models/pagingTypes.js"; -import { PrivateLinksListByDeidServiceOptionalParams } from "../../models/options.js"; +import { PrivateLinkResource } from "../../models/models.js"; +import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; /** Interface representing a PrivateLinks operations. */ export interface PrivateLinksOperations { diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/healthDataAIServicesClient.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/healthDataAIServicesClient.ts index ceb8c6acc450..8b6baf67dcd2 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/healthDataAIServicesClient.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/healthDataAIServicesClient.ts @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { TokenCredential } from "@azure/core-auth"; -import { Pipeline } from "@azure/core-rest-pipeline"; import { getOperationsOperations, OperationsOperations } from "./classic/operations/index.js"; import { getDeidServicesOperations, DeidServicesOperations } from "./classic/deidServices/index.js"; import { @@ -12,9 +10,11 @@ import { import { getPrivateLinksOperations, PrivateLinksOperations } from "./classic/privateLinks/index.js"; import { createHealthDataAIServices, - HealthDataAIServicesClientOptionalParams, HealthDataAIServicesContext, + HealthDataAIServicesClientOptionalParams, } from "./api/index.js"; +import { Pipeline } from "@azure/core-rest-pipeline"; +import { TokenCredential } from "@azure/core-auth"; export { HealthDataAIServicesClientOptionalParams } from "./api/healthDataAIServicesContext.js"; @@ -31,8 +31,7 @@ export class HealthDataAIServicesClient { const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-client` - : "azsdk-js-client"; - + : `azsdk-js-client`; this._client = createHealthDataAIServices(credential, { ...options, userAgentOptions: { userAgentPrefix }, diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/index.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/index.ts index 8747c24afada..e5514dee179c 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/index.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/index.ts @@ -1,22 +1,22 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export { - HealthDataAIServicesClient, - HealthDataAIServicesClientOptionalParams, -} from "./healthDataAIServicesClient.js"; +import { + PageSettings, + ContinuablePage, + PagedAsyncIterableIterator, +} from "./static-helpers/pagingHelpers.js"; + +export { HealthDataAIServicesClient } from "./healthDataAIServicesClient.js"; export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js"; export { + PrivateLinkResource, + PrivateLinkResourceProperties, + ProxyResource, Resource, SystemData, KnownCreatedByType, CreatedByType, - ProxyResource, - PrivateLinkResource, - PrivateLinkResourceProperties, - ErrorResponse, - ErrorDetail, - ErrorAdditionalInfo, PrivateEndpointConnectionResource, PrivateEndpointConnectionProperties, PrivateEndpoint, @@ -25,17 +25,17 @@ export { PrivateEndpointServiceConnectionStatus, KnownPrivateEndpointConnectionProvisioningState, PrivateEndpointConnectionProvisioningState, - TrackedResource, DeidService, DeidServiceProperties, - KnownResourceProvisioningState, - ResourceProvisioningState, + KnownProvisioningState, + ProvisioningState, PrivateEndpointConnection, PublicNetworkAccess, ManagedServiceIdentity, KnownManagedServiceIdentityType, ManagedServiceIdentityType, UserAssignedIdentity, + TrackedResource, DeidUpdate, ManagedServiceIdentityUpdate, DeidPropertiesUpdate, @@ -45,8 +45,10 @@ export { Origin, KnownActionType, ActionType, - Versions, - ProvisioningState, + KnownVersions, +} from "./models/index.js"; +export { + HealthDataAIServicesClientOptionalParams, OperationsListOptionalParams, DeidServicesGetOptionalParams, DeidServicesListByResourceGroupOptionalParams, @@ -59,13 +61,11 @@ export { PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsListByDeidServiceOptionalParams, PrivateLinksListByDeidServiceOptionalParams, - PageSettings, - ContinuablePage, - PagedAsyncIterableIterator, -} from "./models/index.js"; +} from "./api/index.js"; export { DeidServicesOperations, OperationsOperations, PrivateEndpointConnectionsOperations, PrivateLinksOperations, } from "./classic/index.js"; +export { PageSettings, ContinuablePage, PagedAsyncIterableIterator }; diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/models/index.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/models/index.ts index 8b22787363b1..024275d03222 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/models/index.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/models/index.ts @@ -2,16 +2,13 @@ // Licensed under the MIT License. export { + PrivateLinkResource, + PrivateLinkResourceProperties, + ProxyResource, Resource, SystemData, KnownCreatedByType, CreatedByType, - ProxyResource, - PrivateLinkResource, - PrivateLinkResourceProperties, - ErrorResponse, - ErrorDetail, - ErrorAdditionalInfo, PrivateEndpointConnectionResource, PrivateEndpointConnectionProperties, PrivateEndpoint, @@ -20,17 +17,17 @@ export { PrivateEndpointServiceConnectionStatus, KnownPrivateEndpointConnectionProvisioningState, PrivateEndpointConnectionProvisioningState, - TrackedResource, DeidService, DeidServiceProperties, - KnownResourceProvisioningState, - ResourceProvisioningState, + KnownProvisioningState, + ProvisioningState, PrivateEndpointConnection, PublicNetworkAccess, ManagedServiceIdentity, KnownManagedServiceIdentityType, ManagedServiceIdentityType, UserAssignedIdentity, + TrackedResource, DeidUpdate, ManagedServiceIdentityUpdate, DeidPropertiesUpdate, @@ -40,21 +37,5 @@ export { Origin, KnownActionType, ActionType, - Versions, - ProvisioningState, + KnownVersions, } from "./models.js"; -export { - OperationsListOptionalParams, - DeidServicesGetOptionalParams, - DeidServicesListByResourceGroupOptionalParams, - DeidServicesListBySubscriptionOptionalParams, - DeidServicesCreateOptionalParams, - DeidServicesUpdateOptionalParams, - DeidServicesDeleteOptionalParams, - PrivateEndpointConnectionsGetOptionalParams, - PrivateEndpointConnectionsCreateOptionalParams, - PrivateEndpointConnectionsDeleteOptionalParams, - PrivateEndpointConnectionsListByDeidServiceOptionalParams, - PrivateLinksListByDeidServiceOptionalParams, -} from "./options.js"; -export { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./pagingTypes.js"; diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/models/models.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/models/models.ts index 632bb9d83ada..c4dfd9f38a3a 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/models/models.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/models/models.ts @@ -1,20 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { serializeRecord } from "../helpers/serializerHelpers.js"; -import { - PrivateEndpointConnectionResource as PrivateEndpointConnectionResourceRest, - PrivateEndpointConnectionProperties as PrivateEndpointConnectionPropertiesRest, - PrivateLinkServiceConnectionState as PrivateLinkServiceConnectionStateRest, - TrackedResource as TrackedResourceRest, - DeidService as DeidServiceRest, - DeidServiceProperties as DeidServicePropertiesRest, - ManagedServiceIdentity as ManagedServiceIdentityRest, - DeidUpdate as DeidUpdateRest, - ManagedServiceIdentityUpdate as ManagedServiceIdentityUpdateRest, - DeidPropertiesUpdate as DeidPropertiesUpdateRest, -} from "../rest/index.js"; - /** The response of a PrivateLinkResource list operation. */ export interface _PrivateLinkResourceListResult { /** The PrivateLinkResource items on this page */ @@ -23,6 +9,87 @@ export interface _PrivateLinkResourceListResult { nextLink?: string; } +export function _privateLinkResourceListResultDeserializer( + item: any, +): _PrivateLinkResourceListResult { + return { + value: privateLinkResourceArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function privateLinkResourceArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return privateLinkResourceDeserializer(item); + }); +} + +/** Private Links for DeidService resource */ +export interface PrivateLinkResource extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: PrivateLinkResourceProperties; +} + +export function privateLinkResourceDeserializer(item: any): PrivateLinkResource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : privateLinkResourcePropertiesDeserializer(item["properties"]), + }; +} + +/** Properties of a private link resource. */ +export interface PrivateLinkResourceProperties { + /** The private link resource group id. */ + readonly groupId?: string; + /** The private link resource required member names. */ + readonly requiredMembers?: string[]; + /** The private link resource private link DNS zone name. */ + requiredZoneNames?: string[]; +} + +export function privateLinkResourcePropertiesDeserializer( + item: any, +): PrivateLinkResourceProperties { + return { + groupId: item["groupId"], + requiredMembers: !item["requiredMembers"] + ? item["requiredMembers"] + : item["requiredMembers"].map((p: any) => { + return p; + }), + requiredZoneNames: !item["requiredZoneNames"] + ? item["requiredZoneNames"] + : item["requiredZoneNames"].map((p: any) => { + return p; + }), + }; +} + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +export function proxyResourceSerializer(item: ProxyResource): any { + return item; +} + +export function proxyResourceDeserializer(item: any): ProxyResource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + }; +} + /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ @@ -35,8 +102,19 @@ export interface Resource { readonly systemData?: SystemData; } -export function resourceSerializer(item: Resource) { - return item as any; +export function resourceSerializer(item: Resource): any { + return item; +} + +export function resourceDeserializer(item: any): Resource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + }; } /** Metadata pertaining to creation and last modification of the resource. */ @@ -55,81 +133,43 @@ export interface SystemData { lastModifiedAt?: Date; } -/** Known values of {@link CreatedByType} that the service accepts. */ +export function systemDataDeserializer(item: any): SystemData { + return { + createdBy: item["createdBy"], + createdByType: item["createdByType"], + createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]), + lastModifiedBy: item["lastModifiedBy"], + lastModifiedByType: item["lastModifiedByType"], + lastModifiedAt: !item["lastModifiedAt"] + ? item["lastModifiedAt"] + : new Date(item["lastModifiedAt"]), + }; +} + +/** The kind of entity that created the resource. */ export enum KnownCreatedByType { - /** User */ + /** The entity was created by a user. */ User = "User", - /** Application */ + /** The entity was created by an application. */ Application = "Application", - /** ManagedIdentity */ + /** The entity was created by a managed identity. */ ManagedIdentity = "ManagedIdentity", - /** Key */ + /** The entity was created by a key. */ Key = "Key", } /** * The kind of entity that created the resource. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * {@link KnowncreatedByType} can be used interchangeably with createdByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** + * **User**: The entity was created by a user. \ + * **Application**: The entity was created by an application. \ + * **ManagedIdentity**: The entity was created by a managed identity. \ + * **Key**: The entity was created by a key. */ export type CreatedByType = string; -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - -export function proxyResourceSerializer(item: ProxyResource) { - return item as any; -} - -/** Private Links for DeidService resource */ -export interface PrivateLinkResource extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: PrivateLinkResourceProperties; -} - -/** Properties of a private link resource. */ -export interface PrivateLinkResourceProperties { - /** The private link resource group id. */ - readonly groupId?: string; - /** The private link resource required member names. */ - readonly requiredMembers?: string[]; - /** The private link resource private link DNS zone name. */ - requiredZoneNames?: string[]; -} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; -} - -/** The error detail. */ -export interface ErrorDetail { - /** The error code. */ - readonly code?: string; - /** The error message. */ - readonly message?: string; - /** The error target. */ - readonly target?: string; - /** The error details. */ - readonly details?: ErrorDetail[]; - /** The error additional info. */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfo { - /** The additional info type. */ - readonly type?: string; - /** The additional info. */ - readonly info?: Record; -} - /** Holder for private endpoint connections */ export interface PrivateEndpointConnectionResource extends ProxyResource { /** The resource-specific properties for this resource. */ @@ -138,11 +178,27 @@ export interface PrivateEndpointConnectionResource extends ProxyResource { export function privateEndpointConnectionResourceSerializer( item: PrivateEndpointConnectionResource, -): PrivateEndpointConnectionResourceRest { +): any { + return { + properties: !item["properties"] + ? item["properties"] + : privateEndpointConnectionPropertiesSerializer(item["properties"]), + }; +} + +export function privateEndpointConnectionResourceDeserializer( + item: any, +): PrivateEndpointConnectionResource { return { - properties: !item.properties - ? item.properties - : privateEndpointConnectionPropertiesSerializer(item.properties), + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : privateEndpointConnectionPropertiesDeserializer(item["properties"]), }; } @@ -160,25 +216,50 @@ export interface PrivateEndpointConnectionProperties { export function privateEndpointConnectionPropertiesSerializer( item: PrivateEndpointConnectionProperties, -): PrivateEndpointConnectionPropertiesRest { +): any { return { - privateEndpoint: !item.privateEndpoint - ? item.privateEndpoint - : privateEndpointSerializer(item.privateEndpoint), + privateEndpoint: !item["privateEndpoint"] + ? item["privateEndpoint"] + : privateEndpointSerializer(item["privateEndpoint"]), privateLinkServiceConnectionState: privateLinkServiceConnectionStateSerializer( - item.privateLinkServiceConnectionState, + item["privateLinkServiceConnectionState"], ), }; } +export function privateEndpointConnectionPropertiesDeserializer( + item: any, +): PrivateEndpointConnectionProperties { + return { + groupIds: !item["groupIds"] + ? item["groupIds"] + : item["groupIds"].map((p: any) => { + return p; + }), + privateEndpoint: !item["privateEndpoint"] + ? item["privateEndpoint"] + : privateEndpointDeserializer(item["privateEndpoint"]), + privateLinkServiceConnectionState: privateLinkServiceConnectionStateDeserializer( + item["privateLinkServiceConnectionState"], + ), + provisioningState: item["provisioningState"], + }; +} + /** The Private Endpoint resource. */ export interface PrivateEndpoint { /** The resource identifier for private endpoint */ readonly id?: string; } -export function privateEndpointSerializer(item: PrivateEndpoint) { - return item as any; +export function privateEndpointSerializer(item: PrivateEndpoint): any { + return item; +} + +export function privateEndpointDeserializer(item: any): PrivateEndpoint { + return { + id: item["id"], + }; } /** A collection of information about the state of the connection between service consumer and provider. */ @@ -193,7 +274,17 @@ export interface PrivateLinkServiceConnectionState { export function privateLinkServiceConnectionStateSerializer( item: PrivateLinkServiceConnectionState, -): PrivateLinkServiceConnectionStateRest { +): any { + return { + status: item["status"], + description: item["description"], + actionsRequired: item["actionsRequired"], + }; +} + +export function privateLinkServiceConnectionStateDeserializer( + item: any, +): PrivateLinkServiceConnectionState { return { status: item["status"], description: item["description"], @@ -201,13 +292,13 @@ export function privateLinkServiceConnectionStateSerializer( }; } -/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ +/** The private endpoint connection status. */ export enum KnownPrivateEndpointServiceConnectionStatus { - /** Pending */ + /** Connectionaiting for approval or rejection */ Pending = "Pending", - /** Approved */ + /** Connection approved */ Approved = "Approved", - /** Rejected */ + /** Connection Rejected */ Rejected = "Rejected", } @@ -216,21 +307,21 @@ export enum KnownPrivateEndpointServiceConnectionStatus { * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Pending** \ - * **Approved** \ - * **Rejected** + * **Pending**: Connectionaiting for approval or rejection \ + * **Approved**: Connection approved \ + * **Rejected**: Connection Rejected */ export type PrivateEndpointServiceConnectionStatus = string; -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +/** The current provisioning state. */ export enum KnownPrivateEndpointConnectionProvisioningState { - /** Succeeded */ + /** Connection has been provisioned */ Succeeded = "Succeeded", - /** Creating */ + /** Connection is being created */ Creating = "Creating", - /** Deleting */ + /** Connection is being deleted */ Deleting = "Deleting", - /** Failed */ + /** Connection provisioning has failed */ Failed = "Failed", } @@ -239,10 +330,10 @@ export enum KnownPrivateEndpointConnectionProvisioningState { * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ - * **Creating** \ - * **Deleting** \ - * **Failed** + * **Succeeded**: Connection has been provisioned \ + * **Creating**: Connection is being created \ + * **Deleting**: Connection is being deleted \ + * **Failed**: Connection provisioning has failed */ export type PrivateEndpointConnectionProvisioningState = string; @@ -254,21 +345,31 @@ export interface _PrivateEndpointConnectionResourceListResult { nextLink?: string; } -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: Record; - /** The geo-location where the resource lives */ - location: string; -} - -export function trackedResourceSerializer(item: TrackedResource): TrackedResourceRest { +export function _privateEndpointConnectionResourceListResultDeserializer( + item: any, +): _PrivateEndpointConnectionResourceListResult { return { - tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any), - location: item["location"], + value: privateEndpointConnectionResourceArrayDeserializer(item["value"]), + nextLink: item["nextLink"], }; } +export function privateEndpointConnectionResourceArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return privateEndpointConnectionResourceSerializer(item); + }); +} + +export function privateEndpointConnectionResourceArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return privateEndpointConnectionResourceDeserializer(item); + }); +} + /** A HealthDataAIServicesProviderHub resource */ export interface DeidService extends TrackedResource { /** The resource-specific properties for this resource. */ @@ -277,14 +378,35 @@ export interface DeidService extends TrackedResource { identity?: ManagedServiceIdentity; } -export function deidServiceSerializer(item: DeidService): DeidServiceRest { +export function deidServiceSerializer(item: DeidService): any { + return { + tags: item["tags"], + location: item["location"], + properties: !item["properties"] + ? item["properties"] + : deidServicePropertiesSerializer(item["properties"]), + identity: !item["identity"] + ? item["identity"] + : managedServiceIdentitySerializer(item["identity"]), + }; +} + +export function deidServiceDeserializer(item: any): DeidService { return { - tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any), + tags: item["tags"], location: item["location"], - properties: !item.properties - ? item.properties - : deidServicePropertiesSerializer(item.properties), - identity: !item.identity ? item.identity : managedServiceIdentitySerializer(item.identity), + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : deidServicePropertiesDeserializer(item["properties"]), + identity: !item["identity"] + ? item["identity"] + : managedServiceIdentityDeserializer(item["identity"]), }; } @@ -300,34 +422,61 @@ export interface DeidServiceProperties { publicNetworkAccess?: PublicNetworkAccess; } -export function deidServicePropertiesSerializer( - item: DeidServiceProperties, -): DeidServicePropertiesRest { +export function deidServicePropertiesSerializer(item: DeidServiceProperties): any { + return { publicNetworkAccess: item["publicNetworkAccess"] }; +} + +export function deidServicePropertiesDeserializer(item: any): DeidServiceProperties { return { + provisioningState: item["provisioningState"], + serviceUrl: item["serviceUrl"], + privateEndpointConnections: !item["privateEndpointConnections"] + ? item["privateEndpointConnections"] + : privateEndpointConnectionArrayDeserializer(item["privateEndpointConnections"]), publicNetworkAccess: item["publicNetworkAccess"], }; } -/** Known values of {@link ResourceProvisioningState} that the service accepts. */ -export enum KnownResourceProvisioningState { - /** Succeeded */ +/** The status of the current operation. */ +export enum KnownProvisioningState { + /** Resource has been created. */ Succeeded = "Succeeded", - /** Failed */ + /** Resource creation failed. */ Failed = "Failed", - /** Canceled */ + /** Resource creation was canceled. */ Canceled = "Canceled", + /** The resource is being provisioned. */ + Provisioning = "Provisioning", + /** The resource is being updated. */ + Updating = "Updating", + /** The resource is being deleted. */ + Deleting = "Deleting", + /** The resource provisioning request has been accepted. */ + Accepted = "Accepted", } /** - * The provisioning state of a resource type. \ - * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState, + * The status of the current operation. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ - * **Failed** \ - * **Canceled** + * **Succeeded**: Resource has been created. \ + * **Failed**: Resource creation failed. \ + * **Canceled**: Resource creation was canceled. \ + * **Provisioning**: The resource is being provisioned. \ + * **Updating**: The resource is being updated. \ + * **Deleting**: The resource is being deleted. \ + * **Accepted**: The resource provisioning request has been accepted. */ -export type ResourceProvisioningState = string; +export type ProvisioningState = string; + +export function privateEndpointConnectionArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return privateEndpointConnectionDeserializer(item); + }); +} /** The private endpoint connection resource */ export interface PrivateEndpointConnection extends Resource { @@ -335,6 +484,20 @@ export interface PrivateEndpointConnection extends Resource { properties?: PrivateEndpointConnectionProperties; } +export function privateEndpointConnectionDeserializer(item: any): PrivateEndpointConnection { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : privateEndpointConnectionPropertiesDeserializer(item["properties"]), + }; +} + /** State of the public network access. */ export type PublicNetworkAccess = "Enabled" | "Disabled"; @@ -350,30 +513,32 @@ export interface ManagedServiceIdentity { userAssignedIdentities?: Record; } -export function managedServiceIdentitySerializer( - item: ManagedServiceIdentity, -): ManagedServiceIdentityRest { +export function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any { return { type: item["type"], - userAssignedIdentities: !item.userAssignedIdentities - ? item.userAssignedIdentities - : (serializeRecord( - item.userAssignedIdentities as any, - userAssignedIdentitySerializer, - ) as any), + userAssignedIdentities: item["userAssignedIdentities"], }; } -/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ +export function managedServiceIdentityDeserializer(item: any): ManagedServiceIdentity { + return { + principalId: item["principalId"], + tenantId: item["tenantId"], + type: item["type"], + userAssignedIdentities: item["userAssignedIdentities"], + }; +} + +/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ export enum KnownManagedServiceIdentityType { - /** None */ + /** No managed identity. */ None = "None", - /** SystemAssigned */ + /** System assigned managed identity. */ SystemAssigned = "SystemAssigned", - /** UserAssigned */ + /** User assigned managed identity. */ UserAssigned = "UserAssigned", - /** SystemAssigned,UserAssigned */ - "SystemAssigned,UserAssigned" = "SystemAssigned,UserAssigned", + /** System and user assigned managed identity. */ + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", } /** @@ -381,10 +546,10 @@ export enum KnownManagedServiceIdentityType { * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned,UserAssigned** + * **None**: No managed identity. \ + * **SystemAssigned**: System assigned managed identity. \ + * **UserAssigned**: User assigned managed identity. \ + * **SystemAssigned,UserAssigned**: System and user assigned managed identity. */ export type ManagedServiceIdentityType = string; @@ -396,8 +561,40 @@ export interface UserAssignedIdentity { readonly clientId?: string; } -export function userAssignedIdentitySerializer(item: UserAssignedIdentity) { - return item as any; +export function userAssignedIdentitySerializer(item: UserAssignedIdentity): any { + return item; +} + +export function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity { + return { + principalId: item["principalId"], + clientId: item["clientId"], + }; +} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: Record; + /** The geo-location where the resource lives */ + location: string; +} + +export function trackedResourceSerializer(item: TrackedResource): any { + return { tags: item["tags"], location: item["location"] }; +} + +export function trackedResourceDeserializer(item: any): TrackedResource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + tags: item["tags"], + location: item["location"], + }; } /** The response of a DeidService list operation. */ @@ -408,6 +605,25 @@ export interface _DeidServiceListResult { nextLink?: string; } +export function _deidServiceListResultDeserializer(item: any): _DeidServiceListResult { + return { + value: deidServiceArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function deidServiceArraySerializer(result: Array): any[] { + return result.map((item) => { + return deidServiceSerializer(item); + }); +} + +export function deidServiceArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return deidServiceDeserializer(item); + }); +} + /** Patch request body for DeidService */ export interface DeidUpdate { /** Resource tags. */ @@ -418,15 +634,15 @@ export interface DeidUpdate { properties?: DeidPropertiesUpdate; } -export function deidUpdateSerializer(item: DeidUpdate): DeidUpdateRest { +export function deidUpdateSerializer(item: DeidUpdate): any { return { - tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any), - identity: !item.identity - ? item.identity - : managedServiceIdentityUpdateSerializer(item.identity), - properties: !item.properties - ? item.properties - : deidPropertiesUpdateSerializer(item.properties), + tags: item["tags"], + identity: !item["identity"] + ? item["identity"] + : managedServiceIdentityUpdateSerializer(item["identity"]), + properties: !item["properties"] + ? item["properties"] + : deidPropertiesUpdateSerializer(item["properties"]), }; } @@ -438,17 +654,10 @@ export interface ManagedServiceIdentityUpdate { userAssignedIdentities?: Record; } -export function managedServiceIdentityUpdateSerializer( - item: ManagedServiceIdentityUpdate, -): ManagedServiceIdentityUpdateRest { +export function managedServiceIdentityUpdateSerializer(item: ManagedServiceIdentityUpdate): any { return { type: item["type"], - userAssignedIdentities: !item.userAssignedIdentities - ? item.userAssignedIdentities - : (serializeRecord( - item.userAssignedIdentities as any, - userAssignedIdentitySerializer, - ) as any), + userAssignedIdentities: item["userAssignedIdentities"], }; } @@ -458,12 +667,8 @@ export interface DeidPropertiesUpdate { publicNetworkAccess?: PublicNetworkAccess; } -export function deidPropertiesUpdateSerializer( - item: DeidPropertiesUpdate, -): DeidPropertiesUpdateRest { - return { - publicNetworkAccess: item["publicNetworkAccess"], - }; +export function deidPropertiesUpdateSerializer(item: DeidPropertiesUpdate): any { + return { publicNetworkAccess: item["publicNetworkAccess"] }; } /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ @@ -474,6 +679,19 @@ export interface _OperationListResult { nextLink?: string; } +export function _operationListResultDeserializer(item: any): _OperationListResult { + return { + value: operationArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function operationArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return operationDeserializer(item); + }); +} + /** Details of a REST API operation, returned from the Resource Provider Operations API */ export interface Operation { /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ @@ -488,6 +706,16 @@ export interface Operation { actionType?: ActionType; } +export function operationDeserializer(item: any): Operation { + return { + name: item["name"], + isDataAction: item["isDataAction"], + display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]), + origin: item["origin"], + actionType: item["actionType"], + }; +} + /** Localized display information for and operation. */ export interface OperationDisplay { /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ @@ -500,14 +728,23 @@ export interface OperationDisplay { readonly description?: string; } -/** Known values of {@link Origin} that the service accepts. */ +export function operationDisplayDeserializer(item: any): OperationDisplay { + return { + provider: item["provider"], + resource: item["resource"], + operation: item["operation"], + description: item["description"], + }; +} + +/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ export enum KnownOrigin { - /** user */ - user = "user", - /** system */ - system = "system", - /** user,system */ - "user,system" = "user,system", + /** Indicates the operation is initiated by a user. */ + User = "user", + /** Indicates the operation is initiated by a system. */ + System = "system", + /** Indicates the operation is initiated by a user or system. */ + UserSystem = "user,system", } /** @@ -515,15 +752,15 @@ export enum KnownOrigin { * {@link KnownOrigin} can be used interchangeably with Origin, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **user** \ - * **system** \ - * **user,system** + * **user**: Indicates the operation is initiated by a user. \ + * **system**: Indicates the operation is initiated by a system. \ + * **user,system**: Indicates the operation is initiated by a user or system. */ export type Origin = string; -/** Known values of {@link ActionType} that the service accepts. */ +/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ export enum KnownActionType { - /** Internal */ + /** Actions are for internal-only APIs. */ Internal = "Internal", } @@ -532,16 +769,12 @@ export enum KnownActionType { * {@link KnownActionType} can be used interchangeably with ActionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Internal** + * **Internal**: Actions are for internal-only APIs. */ export type ActionType = string; + /** Supported API versions for the Microsoft.HealthDataAIServices resource provider. */ -export type Versions = "2024-02-28-preview"; -/** Alias for ProvisioningState */ -export type ProvisioningState = - | ResourceProvisioningState - | "Provisioning" - | "Updating" - | "Deleting" - | "Accepted" - | string; +export enum KnownVersions { + /** The 2024-09-20 version. */ + V2024_09_20 = "2024-09-20", +} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/models/pagingTypes.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/models/pagingTypes.ts deleted file mode 100644 index c002c23f31eb..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/models/pagingTypes.ts +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * Options for the byPage method - */ -export interface PageSettings { - /** - * A reference to a specific page to start iterating from. - */ - continuationToken?: string; -} - -/** - * An interface that describes a page of results. - */ -export type ContinuablePage = TPage & { - /** - * The token that keeps track of where to continue the iterator - */ - continuationToken?: string; -}; - -/** - * An interface that allows async iterable iteration both to completion and by page. - */ -export interface PagedAsyncIterableIterator< - TElement, - TPage = TElement[], - TPageSettings extends PageSettings = PageSettings, -> { - /** - * The next method, part of the iteration protocol - */ - next(): Promise>; - /** - * The connection to the async iterator, part of the iteration protocol - */ - [Symbol.asyncIterator](): PagedAsyncIterableIterator; - /** - * Return an AsyncIterableIterator that works a page at a time - */ - byPage: (settings?: TPageSettings) => AsyncIterableIterator>; -} - -/** - * An interface that describes how to communicate with the service. - */ -export interface PagedResult< - TElement, - TPage = TElement[], - TPageSettings extends PageSettings = PageSettings, -> { - /** - * Link to the first page of results. - */ - firstPageLink?: string; - /** - * A method that returns a page of results. - */ - getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>; - /** - * a function to implement the `byPage` method on the paged async iterator. - */ - byPage?: (settings?: TPageSettings) => AsyncIterableIterator>; - - /** - * A function to extract elements from a page. - */ - toElements?: (page: TPage) => TElement[]; -} - -/** - * Options for the paging helper - */ -export interface BuildPagedAsyncIteratorOptions { - itemName?: string; - nextLinkName?: string; -} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/clientDefinitions.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/clientDefinitions.ts deleted file mode 100644 index 961f7c6d3079..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/clientDefinitions.ts +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { - OperationsListParameters, - DeidServicesGetParameters, - DeidServicesCreateParameters, - DeidServicesUpdateParameters, - DeidServicesDeleteParameters, - DeidServicesListByResourceGroupParameters, - DeidServicesListBySubscriptionParameters, - PrivateEndpointConnectionsGetParameters, - PrivateEndpointConnectionsCreateParameters, - PrivateEndpointConnectionsDeleteParameters, - PrivateEndpointConnectionsListByDeidServiceParameters, - PrivateLinksListByDeidServiceParameters, -} from "./parameters.js"; -import { - OperationsList200Response, - OperationsListDefaultResponse, - DeidServicesGet200Response, - DeidServicesGetDefaultResponse, - DeidServicesCreate200Response, - DeidServicesCreate201Response, - DeidServicesCreateDefaultResponse, - DeidServicesUpdate200Response, - DeidServicesUpdate202Response, - DeidServicesUpdateDefaultResponse, - DeidServicesDelete202Response, - DeidServicesDelete204Response, - DeidServicesDeleteDefaultResponse, - DeidServicesListByResourceGroup200Response, - DeidServicesListByResourceGroupDefaultResponse, - DeidServicesListBySubscription200Response, - DeidServicesListBySubscriptionDefaultResponse, - PrivateEndpointConnectionsGet200Response, - PrivateEndpointConnectionsGetDefaultResponse, - PrivateEndpointConnectionsCreate200Response, - PrivateEndpointConnectionsCreate201Response, - PrivateEndpointConnectionsCreateDefaultResponse, - PrivateEndpointConnectionsDelete202Response, - PrivateEndpointConnectionsDelete204Response, - PrivateEndpointConnectionsDeleteDefaultResponse, - PrivateEndpointConnectionsListByDeidService200Response, - PrivateEndpointConnectionsListByDeidServiceDefaultResponse, - PrivateLinksListByDeidService200Response, - PrivateLinksListByDeidServiceDefaultResponse, -} from "./responses.js"; -import { Client, StreamableMethod } from "@azure-rest/core-client"; - -export interface OperationsList { - /** List the operations for the provider */ - get( - options?: OperationsListParameters, - ): StreamableMethod; -} - -export interface DeidServicesGet { - /** Get a DeidService */ - get( - options?: DeidServicesGetParameters, - ): StreamableMethod; - /** Create a DeidService */ - put( - options: DeidServicesCreateParameters, - ): StreamableMethod< - | DeidServicesCreate200Response - | DeidServicesCreate201Response - | DeidServicesCreateDefaultResponse - >; - /** Update a DeidService */ - patch( - options: DeidServicesUpdateParameters, - ): StreamableMethod< - | DeidServicesUpdate200Response - | DeidServicesUpdate202Response - | DeidServicesUpdateDefaultResponse - >; - /** Delete a DeidService */ - delete( - options?: DeidServicesDeleteParameters, - ): StreamableMethod< - | DeidServicesDelete202Response - | DeidServicesDelete204Response - | DeidServicesDeleteDefaultResponse - >; -} - -export interface DeidServicesListByResourceGroup { - /** List DeidService resources by resource group */ - get( - options?: DeidServicesListByResourceGroupParameters, - ): StreamableMethod< - DeidServicesListByResourceGroup200Response | DeidServicesListByResourceGroupDefaultResponse - >; -} - -export interface DeidServicesListBySubscription { - /** List DeidService resources by subscription ID */ - get( - options?: DeidServicesListBySubscriptionParameters, - ): StreamableMethod< - DeidServicesListBySubscription200Response | DeidServicesListBySubscriptionDefaultResponse - >; -} - -export interface PrivateEndpointConnectionsGet { - /** Get a specific private connection */ - get( - options?: PrivateEndpointConnectionsGetParameters, - ): StreamableMethod< - PrivateEndpointConnectionsGet200Response | PrivateEndpointConnectionsGetDefaultResponse - >; - /** Create a Private endpoint connection */ - put( - options: PrivateEndpointConnectionsCreateParameters, - ): StreamableMethod< - | PrivateEndpointConnectionsCreate200Response - | PrivateEndpointConnectionsCreate201Response - | PrivateEndpointConnectionsCreateDefaultResponse - >; - /** Delete the private endpoint connection */ - delete( - options?: PrivateEndpointConnectionsDeleteParameters, - ): StreamableMethod< - | PrivateEndpointConnectionsDelete202Response - | PrivateEndpointConnectionsDelete204Response - | PrivateEndpointConnectionsDeleteDefaultResponse - >; -} - -export interface PrivateEndpointConnectionsListByDeidService { - /** List private endpoint connections on the given resource */ - get( - options?: PrivateEndpointConnectionsListByDeidServiceParameters, - ): StreamableMethod< - | PrivateEndpointConnectionsListByDeidService200Response - | PrivateEndpointConnectionsListByDeidServiceDefaultResponse - >; -} - -export interface PrivateLinksListByDeidService { - /** List private links on the given resource */ - get( - options?: PrivateLinksListByDeidServiceParameters, - ): StreamableMethod< - PrivateLinksListByDeidService200Response | PrivateLinksListByDeidServiceDefaultResponse - >; -} - -export interface Routes { - /** Resource for '/providers/Microsoft.HealthDataAIServices/operations' has methods for the following verbs: get */ - (path: "/providers/Microsoft.HealthDataAIServices/operations"): OperationsList; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.HealthDataAIServices/deidServices/\{deidServiceName\}' has methods for the following verbs: get, put, patch, delete */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}", - subscriptionId: string, - resourceGroupName: string, - deidServiceName: string, - ): DeidServicesGet; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.HealthDataAIServices/deidServices' has methods for the following verbs: get */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices", - subscriptionId: string, - resourceGroupName: string, - ): DeidServicesListByResourceGroup; - /** Resource for '/subscriptions/\{subscriptionId\}/providers/Microsoft.HealthDataAIServices/deidServices' has methods for the following verbs: get */ - ( - path: "/subscriptions/{subscriptionId}/providers/Microsoft.HealthDataAIServices/deidServices", - subscriptionId: string, - ): DeidServicesListBySubscription; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.HealthDataAIServices/deidServices/\{deidServiceName\}/privateEndpointConnections/\{privateEndpointConnectionName\}' has methods for the following verbs: get, put, delete */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", - subscriptionId: string, - resourceGroupName: string, - deidServiceName: string, - privateEndpointConnectionName: string, - ): PrivateEndpointConnectionsGet; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.HealthDataAIServices/deidServices/\{deidServiceName\}/privateEndpointConnections' has methods for the following verbs: get */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections", - subscriptionId: string, - resourceGroupName: string, - deidServiceName: string, - ): PrivateEndpointConnectionsListByDeidService; - /** Resource for '/subscriptions/\{subscriptionId\}/resourceGroups/\{resourceGroupName\}/providers/Microsoft.HealthDataAIServices/deidServices/\{deidServiceName\}/privateLinkResources' has methods for the following verbs: get */ - ( - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateLinkResources", - subscriptionId: string, - resourceGroupName: string, - deidServiceName: string, - ): PrivateLinksListByDeidService; -} - -export type HealthDataAIServicesContext = Client & { - path: Routes; -}; diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/healthDataAIServicesClient.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/healthDataAIServicesClient.ts deleted file mode 100644 index 1a6ffcd95342..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/healthDataAIServicesClient.ts +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "../logger.js"; -import { TokenCredential } from "@azure/core-auth"; -import { HealthDataAIServicesContext } from "./clientDefinitions.js"; - -/** The optional parameters for the client */ -export interface HealthDataAIServicesContextOptions extends ClientOptions { - /** The api version option of the client */ - apiVersion?: string; -} - -/** - * Initialize a new instance of `HealthDataAIServicesContext` - * @param credentials - uniquely identify client credential - * @param options - the parameter for all optional parameters - */ -export default function createClient( - credentials: TokenCredential, - { apiVersion = "2024-02-28-preview", ...options }: HealthDataAIServicesContextOptions = {}, -): HealthDataAIServicesContext { - const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; - const userAgentInfo = `azsdk-js-arm-healthdataaiservices/1.0.0-beta.2`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` - : `${userAgentInfo}`; - options = { - ...options, - userAgentOptions: { - userAgentPrefix, - }, - loggingOptions: { - logger: options.loggingOptions?.logger ?? logger.info, - }, - credentials: { - scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`], - }, - }; - const client = getClient(endpointUrl, credentials, options) as HealthDataAIServicesContext; - - client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); - client.pipeline.addPolicy({ - name: "ClientApiVersionPolicy", - sendRequest: (req, next) => { - // Use the apiVersion defined in request url directly - // Append one if there is no apiVersion and we have one at client options - const url = new URL(req.url); - if (!url.searchParams.get("api-version") && apiVersion) { - req.url = `${req.url}${ - Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" - }api-version=${apiVersion}`; - } - - return next(req); - }, - }); - return client; -} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/index.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/index.ts deleted file mode 100644 index ad8f052fc7da..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import HealthDataAIServicesClient from "./healthDataAIServicesClient.js"; - -export * from "./healthDataAIServicesClient.js"; -export * from "./parameters.js"; -export * from "./responses.js"; -export * from "./clientDefinitions.js"; -export * from "./isUnexpected.js"; -export * from "./models.js"; -export * from "./outputModels.js"; -export * from "./paginateHelper.js"; -export * from "./pollingHelper.js"; - -export default HealthDataAIServicesClient; diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/isUnexpected.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/isUnexpected.ts deleted file mode 100644 index 51ff0fac2f5d..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/isUnexpected.ts +++ /dev/null @@ -1,253 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { - OperationsList200Response, - OperationsListDefaultResponse, - DeidServicesGet200Response, - DeidServicesGetDefaultResponse, - DeidServicesCreate200Response, - DeidServicesCreate201Response, - DeidServicesCreateLogicalResponse, - DeidServicesCreateDefaultResponse, - DeidServicesUpdate200Response, - DeidServicesUpdate202Response, - DeidServicesUpdateLogicalResponse, - DeidServicesUpdateDefaultResponse, - DeidServicesDelete202Response, - DeidServicesDelete204Response, - DeidServicesDeleteLogicalResponse, - DeidServicesDeleteDefaultResponse, - DeidServicesListByResourceGroup200Response, - DeidServicesListByResourceGroupDefaultResponse, - DeidServicesListBySubscription200Response, - DeidServicesListBySubscriptionDefaultResponse, - PrivateEndpointConnectionsGet200Response, - PrivateEndpointConnectionsGetDefaultResponse, - PrivateEndpointConnectionsCreate200Response, - PrivateEndpointConnectionsCreate201Response, - PrivateEndpointConnectionsCreateLogicalResponse, - PrivateEndpointConnectionsCreateDefaultResponse, - PrivateEndpointConnectionsDelete202Response, - PrivateEndpointConnectionsDelete204Response, - PrivateEndpointConnectionsDeleteLogicalResponse, - PrivateEndpointConnectionsDeleteDefaultResponse, - PrivateEndpointConnectionsListByDeidService200Response, - PrivateEndpointConnectionsListByDeidServiceDefaultResponse, - PrivateLinksListByDeidService200Response, - PrivateLinksListByDeidServiceDefaultResponse, -} from "./responses.js"; - -const responseMap: Record = { - "GET /providers/Microsoft.HealthDataAIServices/operations": ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": - ["200"], - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": - ["200", "201"], - "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": - ["200", "202"], - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": - ["202", "204"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices": - ["200"], - "GET /subscriptions/{subscriptionId}/providers/Microsoft.HealthDataAIServices/deidServices": [ - "200", - ], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}": - ["200"], - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}": - ["200", "201"], - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}": - ["202", "204"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections": - ["200"], - "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateLinkResources": - ["200"], -}; - -export function isUnexpected( - response: OperationsList200Response | OperationsListDefaultResponse, -): response is OperationsListDefaultResponse; -export function isUnexpected( - response: DeidServicesGet200Response | DeidServicesGetDefaultResponse, -): response is DeidServicesGetDefaultResponse; -export function isUnexpected( - response: - | DeidServicesCreate200Response - | DeidServicesCreate201Response - | DeidServicesCreateLogicalResponse - | DeidServicesCreateDefaultResponse, -): response is DeidServicesCreateDefaultResponse; -export function isUnexpected( - response: - | DeidServicesUpdate200Response - | DeidServicesUpdate202Response - | DeidServicesUpdateLogicalResponse - | DeidServicesUpdateDefaultResponse, -): response is DeidServicesUpdateDefaultResponse; -export function isUnexpected( - response: - | DeidServicesDelete202Response - | DeidServicesDelete204Response - | DeidServicesDeleteLogicalResponse - | DeidServicesDeleteDefaultResponse, -): response is DeidServicesDeleteDefaultResponse; -export function isUnexpected( - response: - | DeidServicesListByResourceGroup200Response - | DeidServicesListByResourceGroupDefaultResponse, -): response is DeidServicesListByResourceGroupDefaultResponse; -export function isUnexpected( - response: - | DeidServicesListBySubscription200Response - | DeidServicesListBySubscriptionDefaultResponse, -): response is DeidServicesListBySubscriptionDefaultResponse; -export function isUnexpected( - response: PrivateEndpointConnectionsGet200Response | PrivateEndpointConnectionsGetDefaultResponse, -): response is PrivateEndpointConnectionsGetDefaultResponse; -export function isUnexpected( - response: - | PrivateEndpointConnectionsCreate200Response - | PrivateEndpointConnectionsCreate201Response - | PrivateEndpointConnectionsCreateLogicalResponse - | PrivateEndpointConnectionsCreateDefaultResponse, -): response is PrivateEndpointConnectionsCreateDefaultResponse; -export function isUnexpected( - response: - | PrivateEndpointConnectionsDelete202Response - | PrivateEndpointConnectionsDelete204Response - | PrivateEndpointConnectionsDeleteLogicalResponse - | PrivateEndpointConnectionsDeleteDefaultResponse, -): response is PrivateEndpointConnectionsDeleteDefaultResponse; -export function isUnexpected( - response: - | PrivateEndpointConnectionsListByDeidService200Response - | PrivateEndpointConnectionsListByDeidServiceDefaultResponse, -): response is PrivateEndpointConnectionsListByDeidServiceDefaultResponse; -export function isUnexpected( - response: PrivateLinksListByDeidService200Response | PrivateLinksListByDeidServiceDefaultResponse, -): response is PrivateLinksListByDeidServiceDefaultResponse; -export function isUnexpected( - response: - | OperationsList200Response - | OperationsListDefaultResponse - | DeidServicesGet200Response - | DeidServicesGetDefaultResponse - | DeidServicesCreate200Response - | DeidServicesCreate201Response - | DeidServicesCreateLogicalResponse - | DeidServicesCreateDefaultResponse - | DeidServicesUpdate200Response - | DeidServicesUpdate202Response - | DeidServicesUpdateLogicalResponse - | DeidServicesUpdateDefaultResponse - | DeidServicesDelete202Response - | DeidServicesDelete204Response - | DeidServicesDeleteLogicalResponse - | DeidServicesDeleteDefaultResponse - | DeidServicesListByResourceGroup200Response - | DeidServicesListByResourceGroupDefaultResponse - | DeidServicesListBySubscription200Response - | DeidServicesListBySubscriptionDefaultResponse - | PrivateEndpointConnectionsGet200Response - | PrivateEndpointConnectionsGetDefaultResponse - | PrivateEndpointConnectionsCreate200Response - | PrivateEndpointConnectionsCreate201Response - | PrivateEndpointConnectionsCreateLogicalResponse - | PrivateEndpointConnectionsCreateDefaultResponse - | PrivateEndpointConnectionsDelete202Response - | PrivateEndpointConnectionsDelete204Response - | PrivateEndpointConnectionsDeleteLogicalResponse - | PrivateEndpointConnectionsDeleteDefaultResponse - | PrivateEndpointConnectionsListByDeidService200Response - | PrivateEndpointConnectionsListByDeidServiceDefaultResponse - | PrivateLinksListByDeidService200Response - | PrivateLinksListByDeidServiceDefaultResponse, -): response is - | OperationsListDefaultResponse - | DeidServicesGetDefaultResponse - | DeidServicesCreateDefaultResponse - | DeidServicesUpdateDefaultResponse - | DeidServicesDeleteDefaultResponse - | DeidServicesListByResourceGroupDefaultResponse - | DeidServicesListBySubscriptionDefaultResponse - | PrivateEndpointConnectionsGetDefaultResponse - | PrivateEndpointConnectionsCreateDefaultResponse - | PrivateEndpointConnectionsDeleteDefaultResponse - | PrivateEndpointConnectionsListByDeidServiceDefaultResponse - | PrivateLinksListByDeidServiceDefaultResponse { - const lroOriginal = response.headers["x-ms-original-url"]; - const url = new URL(lroOriginal ?? response.request.url); - const method = response.request.method; - let pathDetails = responseMap[`${method} ${url.pathname}`]; - if (!pathDetails) { - pathDetails = getParametrizedPathSuccess(method, url.pathname); - } - return !pathDetails.includes(response.status); -} - -function getParametrizedPathSuccess(method: string, path: string): string[] { - const pathParts = path.split("/"); - - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, - matchedValue: string[] = []; - - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(responseMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - - // track if we have found a match to return the values found. - let found = true; - for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { - if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { - const start = candidateParts[i]!.indexOf("}") + 1, - end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "", - ); - - if (!isMatched) { - found = false; - break; - } - continue; - } - - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value; - } - } - - return matchedValue; -} - -function getPathFromMapKey(mapKey: string): string { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/models.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/models.ts deleted file mode 100644 index a14e32ae224f..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/models.ts +++ /dev/null @@ -1,234 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** A HealthDataAIServicesProviderHub resource */ -export interface DeidService extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: DeidServiceProperties; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; -} - -/** Details of the HealthDataAIServices DeidService. */ -export interface DeidServiceProperties { - /** Gets or sets allow or disallow public network access to resource */ - publicNetworkAccess?: PublicNetworkAccess; -} - -/** The private endpoint connection resource */ -export interface PrivateEndpointConnection extends Resource { - /** The private endpoint connection properties */ - properties?: PrivateEndpointConnectionProperties; -} - -/** Properties of the private endpoint connection. */ -export interface PrivateEndpointConnectionProperties { - /** The private endpoint resource. */ - privateEndpoint?: PrivateEndpoint; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; -} - -/** The Private Endpoint resource. */ -export interface PrivateEndpoint {} - -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionState { - /** - * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. - * - * Possible values: "Pending", "Approved", "Rejected" - */ - status?: PrivateEndpointServiceConnectionStatus; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource {} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** - * The type of identity that created the resource. - * - * Possible values: "User", "Application", "ManagedIdentity", "Key" - */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date | string; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** - * The type of identity that last modified the resource. - * - * Possible values: "User", "Application", "ManagedIdentity", "Key" - */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date | string; -} - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: Record; - /** The geo-location where the resource lives */ - location: string; -} - -/** The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set. */ -export interface ResourceModelWithAllowedPropertySet extends TrackedResource { - /** - * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. - * If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. - */ - managedBy?: string; - /** - * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. - * If supported, the resource provider must validate and persist this value. - */ - kind?: string; - /** - * The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. - * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), - * If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. - */ - eTag?: string; - identity?: Identity; - sku?: Sku; - plan?: Plan; -} - -/** Identity for the resource. */ -export interface Identity { - /** The identity type. */ - type?: ResourceIdentityType; -} - -/** The resource model definition representing SKU */ -export interface Sku { - /** The name of the SKU. Ex - P3. It is typically a letter+number code */ - name: string; - /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ - tier?: SkuTier; - /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ - size?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ - capacity?: number; -} - -/** Plan for the resource. */ -export interface Plan { - /** A user defined name of the 3rd Party Artifact that is being procured. */ - name: string; - /** The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic */ - publisher: string; - /** The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. */ - product: string; - /** A publisher provided promotion code as provisioned in Data Market for the said product/artifact. */ - promotionCode?: string; - /** The version of the desired product/artifact. */ - version?: string; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - -/** Holder for private endpoint connections */ -export interface PrivateEndpointConnectionResource extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: PrivateEndpointConnectionProperties; -} - -/** Private Links for DeidService resource */ -export interface PrivateLinkResource extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: PrivateLinkResourceProperties; -} - -/** Properties of a private link resource. */ -export interface PrivateLinkResourceProperties { - /** The private link resource private link DNS zone name. */ - requiredZoneNames?: string[]; -} - -/** The base extension resource. */ -export interface ExtensionResource extends Resource {} - -/** The resource model definition for an Azure Resource Manager resource with an etag. */ -export interface AzureEntityResource extends Resource {} - -/** A private link resource. */ -export interface PrivateLinkResource extends Resource { - /** Resource properties. */ - properties?: PrivateLinkResourceProperties; -} - -/** Managed service identity (system assigned and/or user assigned identities) */ -export interface ManagedServiceIdentity { - /** - * The type of managed identity assigned to this resource. - * - * Possible values: "None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned" - */ - type: ManagedServiceIdentityType; - /** The identities assigned to this resource by the user. */ - userAssignedIdentities?: Record; -} - -/** User assigned identity properties */ -export interface UserAssignedIdentity {} - -/** Patch request body for DeidService */ -export interface DeidUpdate { - /** Resource tags. */ - tags?: Record; - /** Updatable managed service identity */ - identity?: ManagedServiceIdentityUpdate; - /** RP-specific properties */ - properties?: DeidPropertiesUpdate; -} - -/** The template for adding optional properties. */ -export interface ManagedServiceIdentityUpdate { - /** - * The type of managed identity assigned to this resource. - * - * Possible values: "None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned" - */ - type?: ManagedServiceIdentityType; - /** The identities assigned to this resource by the user. */ - userAssignedIdentities?: Record; -} - -/** The template for adding optional properties. */ -export interface DeidPropertiesUpdate { - /** Gets or sets allow or disallow public network access to resource */ - publicNetworkAccess?: PublicNetworkAccess; -} - -/** Alias for ResourceProvisioningState */ -export type ResourceProvisioningState = string; -/** Alias for ProvisioningState */ -export type ProvisioningState = string; -/** Alias for PrivateEndpointServiceConnectionStatus */ -export type PrivateEndpointServiceConnectionStatus = string; -/** Alias for PrivateEndpointConnectionProvisioningState */ -export type PrivateEndpointConnectionProvisioningState = string; -/** Alias for CreatedByType */ -export type CreatedByType = string; -/** Alias for ResourceIdentityType */ -export type ResourceIdentityType = "SystemAssigned"; -/** Alias for SkuTier */ -export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; -/** State of the public network access. */ -export type PublicNetworkAccess = "Enabled" | "Disabled"; -/** Alias for ManagedServiceIdentityType */ -export type ManagedServiceIdentityType = string; diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/outputModels.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/outputModels.ts deleted file mode 100644 index 0ac87c9a1161..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/outputModels.ts +++ /dev/null @@ -1,333 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { Paged } from "@azure/core-paging"; - -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface OperationOutput { - /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ - readonly name?: string; - /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - readonly display?: OperationDisplayOutput; - /** - * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" - * - * Possible values: "user", "system", "user,system" - */ - readonly origin?: OriginOutput; - /** - * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - * - * Possible values: "Internal" - */ - actionType?: ActionTypeOutput; -} - -/** Localized display information for and operation. */ -export interface OperationDisplayOutput { - /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ - readonly provider?: string; - /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ - readonly resource?: string; - /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ - readonly operation?: string; - /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ - readonly description?: string; -} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ -export interface ErrorResponseOutput { - /** The error object. */ - error?: ErrorDetailOutput; -} - -/** The error detail. */ -export interface ErrorDetailOutput { - /** The error code. */ - readonly code?: string; - /** The error message. */ - readonly message?: string; - /** The error target. */ - readonly target?: string; - /** The error details. */ - readonly details?: Array; - /** The error additional info. */ - readonly additionalInfo?: Array; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfoOutput { - /** The additional info type. */ - readonly type?: string; - /** The additional info. */ - readonly info?: Record; -} - -/** A HealthDataAIServicesProviderHub resource */ -export interface DeidServiceOutput extends TrackedResourceOutput { - /** The resource-specific properties for this resource. */ - properties?: DeidServicePropertiesOutput; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentityOutput; -} - -/** Details of the HealthDataAIServices DeidService. */ -export interface DeidServicePropertiesOutput { - /** - * The status of the last operation. - * - * Possible values: "Provisioning", "Updating", "Deleting", "Accepted" - */ - readonly provisioningState?: ProvisioningStateOutput; - /** Deid service url. */ - readonly serviceUrl?: string; - /** List of private endpoint connections. */ - readonly privateEndpointConnections?: Array; - /** Gets or sets allow or disallow public network access to resource */ - publicNetworkAccess?: PublicNetworkAccessOutput; -} - -/** The private endpoint connection resource */ -export interface PrivateEndpointConnectionOutput extends ResourceOutput { - /** The private endpoint connection properties */ - properties?: PrivateEndpointConnectionPropertiesOutput; -} - -/** Properties of the private endpoint connection. */ -export interface PrivateEndpointConnectionPropertiesOutput { - /** The group ids for the private endpoint resource. */ - readonly groupIds?: string[]; - /** The private endpoint resource. */ - privateEndpoint?: PrivateEndpointOutput; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState: PrivateLinkServiceConnectionStateOutput; - /** - * The provisioning state of the private endpoint connection resource. - * - * Possible values: "Succeeded", "Creating", "Deleting", "Failed" - */ - readonly provisioningState?: PrivateEndpointConnectionProvisioningStateOutput; -} - -/** The Private Endpoint resource. */ -export interface PrivateEndpointOutput { - /** The resource identifier for private endpoint */ - readonly id?: string; -} - -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionStateOutput { - /** - * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. - * - * Possible values: "Pending", "Approved", "Rejected" - */ - status?: PrivateEndpointServiceConnectionStatusOutput; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface ResourceOutput { - /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - readonly id?: string; - /** The name of the resource */ - readonly name?: string; - /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - readonly type?: string; - /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - readonly systemData?: SystemDataOutput; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemDataOutput { - /** The identity that created the resource. */ - createdBy?: string; - /** - * The type of identity that created the resource. - * - * Possible values: "User", "Application", "ManagedIdentity", "Key" - */ - createdByType?: CreatedByTypeOutput; - /** The timestamp of resource creation (UTC). */ - createdAt?: string; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** - * The type of identity that last modified the resource. - * - * Possible values: "User", "Application", "ManagedIdentity", "Key" - */ - lastModifiedByType?: CreatedByTypeOutput; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: string; -} - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResourceOutput extends ResourceOutput { - /** Resource tags. */ - tags?: Record; - /** The geo-location where the resource lives */ - location: string; -} - -/** The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set. */ -export interface ResourceModelWithAllowedPropertySetOutput extends TrackedResourceOutput { - /** - * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. - * If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. - */ - managedBy?: string; - /** - * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. - * If supported, the resource provider must validate and persist this value. - */ - kind?: string; - /** - * The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. - * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), - * If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. - */ - eTag?: string; - identity?: IdentityOutput; - sku?: SkuOutput; - plan?: PlanOutput; -} - -/** Identity for the resource. */ -export interface IdentityOutput { - /** The principal ID of resource identity. The value must be an UUID. */ - readonly principalId?: string; - /** The tenant ID of resource. The value must be an UUID. */ - readonly tenantId?: string; - /** The identity type. */ - type?: ResourceIdentityTypeOutput; -} - -/** The resource model definition representing SKU */ -export interface SkuOutput { - /** The name of the SKU. Ex - P3. It is typically a letter+number code */ - name: string; - /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ - tier?: SkuTierOutput; - /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ - size?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ - capacity?: number; -} - -/** Plan for the resource. */ -export interface PlanOutput { - /** A user defined name of the 3rd Party Artifact that is being procured. */ - name: string; - /** The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic */ - publisher: string; - /** The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. */ - product: string; - /** A publisher provided promotion code as provisioned in Data Market for the said product/artifact. */ - promotionCode?: string; - /** The version of the desired product/artifact. */ - version?: string; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResourceOutput extends ResourceOutput {} - -/** Holder for private endpoint connections */ -export interface PrivateEndpointConnectionResourceOutput extends ProxyResourceOutput { - /** The resource-specific properties for this resource. */ - properties?: PrivateEndpointConnectionPropertiesOutput; -} - -/** Private Links for DeidService resource */ -export interface PrivateLinkResourceOutput extends ProxyResourceOutput { - /** The resource-specific properties for this resource. */ - properties?: PrivateLinkResourcePropertiesOutput; -} - -/** Properties of a private link resource. */ -export interface PrivateLinkResourcePropertiesOutput { - /** The private link resource group id. */ - readonly groupId?: string; - /** The private link resource required member names. */ - readonly requiredMembers?: string[]; - /** The private link resource private link DNS zone name. */ - requiredZoneNames?: string[]; -} - -/** The base extension resource. */ -export interface ExtensionResourceOutput extends ResourceOutput {} - -/** The resource model definition for an Azure Resource Manager resource with an etag. */ -export interface AzureEntityResourceOutput extends ResourceOutput { - /** Resource Etag. */ - readonly etag?: string; -} - -/** A private link resource. */ -export interface PrivateLinkResourceOutput extends ResourceOutput { - /** Resource properties. */ - properties?: PrivateLinkResourcePropertiesOutput; -} - -/** Managed service identity (system assigned and/or user assigned identities) */ -export interface ManagedServiceIdentityOutput { - /** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */ - readonly principalId?: string; - /** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */ - readonly tenantId?: string; - /** - * The type of managed identity assigned to this resource. - * - * Possible values: "None", "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned" - */ - type: ManagedServiceIdentityTypeOutput; - /** The identities assigned to this resource by the user. */ - userAssignedIdentities?: Record; -} - -/** User assigned identity properties */ -export interface UserAssignedIdentityOutput { - /** The principal ID of the assigned identity. */ - readonly principalId?: string; - /** The client ID of the assigned identity. */ - readonly clientId?: string; -} - -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export type OperationListResultOutput = Paged; -/** Alias for OriginOutput */ -export type OriginOutput = string; -/** Alias for ActionTypeOutput */ -export type ActionTypeOutput = string; -/** Alias for ResourceProvisioningStateOutput */ -export type ResourceProvisioningStateOutput = string; -/** Alias for ProvisioningStateOutput */ -export type ProvisioningStateOutput = string; -/** Alias for PrivateEndpointServiceConnectionStatusOutput */ -export type PrivateEndpointServiceConnectionStatusOutput = string; -/** Alias for PrivateEndpointConnectionProvisioningStateOutput */ -export type PrivateEndpointConnectionProvisioningStateOutput = string; -/** Alias for CreatedByTypeOutput */ -export type CreatedByTypeOutput = string; -/** Alias for ResourceIdentityTypeOutput */ -export type ResourceIdentityTypeOutput = "SystemAssigned"; -/** Alias for SkuTierOutput */ -export type SkuTierOutput = "Free" | "Basic" | "Standard" | "Premium"; -/** State of the public network access. */ -export type PublicNetworkAccessOutput = "Enabled" | "Disabled"; -/** Alias for ManagedServiceIdentityTypeOutput */ -export type ManagedServiceIdentityTypeOutput = string; -/** The response of a DeidService list operation. */ -export type DeidServiceListResultOutput = Paged; -/** The response of a PrivateEndpointConnectionResource list operation. */ -export type PrivateEndpointConnectionResourceListResultOutput = - Paged; -/** The response of a PrivateLinkResource list operation. */ -export type PrivateLinkResourceListResultOutput = Paged; diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/paginateHelper.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/paginateHelper.ts deleted file mode 100644 index e27846d32a90..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/paginateHelper.ts +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { getPagedAsyncIterator, PagedAsyncIterableIterator, PagedResult } from "@azure/core-paging"; -import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; - -/** - * Helper type to extract the type of an array - */ -export type GetArrayType = T extends Array ? TData : never; - -/** - * The type of a custom function that defines how to get a page and a link to the next one if any. - */ -export type GetPage = ( - pageLink: string, - maxPageSize?: number, -) => Promise<{ - page: TPage; - nextPageLink?: string; -}>; - -/** - * Options for the paging helper - */ -export interface PagingOptions { - /** - * Custom function to extract pagination details for crating the PagedAsyncIterableIterator - */ - customGetPage?: GetPage[]>; -} - -/** - * Helper type to infer the Type of the paged elements from the response type - * This type is generated based on the swagger information for x-ms-pageable - * specifically on the itemName property which indicates the property of the response - * where the page items are found. The default value is `value`. - * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter - */ -export type PaginateReturn = TResult extends { - body: { value?: infer TPage }; -} - ? GetArrayType - : Array; - -/** - * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension - * @param client - Client to use for sending the next page requests - * @param initialResponse - Initial response containing the nextLink and current page of elements - * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results - * @returns - PagedAsyncIterableIterator to iterate the elements - */ -export function paginate( - client: Client, - initialResponse: TResponse, - options: PagingOptions = {}, -): PagedAsyncIterableIterator> { - // Extract element type from initial response - type TElement = PaginateReturn; - let firstRun = true; - const itemName = "value"; - const nextLinkName = "nextLink"; - const { customGetPage } = options; - const pagedResult: PagedResult = { - firstPageLink: "", - getPage: - typeof customGetPage === "function" - ? customGetPage - : async (pageLink: string) => { - const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get(); - firstRun = false; - checkPagingRequest(result); - const nextLink = getNextLink(result.body, nextLinkName); - const values = getElements(result.body, itemName); - return { - page: values, - nextPageLink: nextLink, - }; - }, - }; - - return getPagedAsyncIterator(pagedResult); -} - -/** - * Gets for the value of nextLink in the body - */ -function getNextLink(body: unknown, nextLinkName?: string): string | undefined { - if (!nextLinkName) { - return undefined; - } - - const nextLink = (body as Record)[nextLinkName]; - - if (typeof nextLink !== "string" && typeof nextLink !== "undefined") { - throw new Error(`Body Property ${nextLinkName} should be a string or undefined`); - } - - return nextLink; -} - -/** - * Gets the elements of the current request in the body. - */ -function getElements(body: unknown, itemName: string): T[] { - const value = (body as Record)[itemName] as T[]; - - // value has to be an array according to the x-ms-pageable extension. - // The fact that this must be an array is used above to calculate the - // type of elements in the page in PaginateReturn - if (!Array.isArray(value)) { - throw new Error( - `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, - ); - } - - return value ?? []; -} - -/** - * Checks if a request failed - */ -function checkPagingRequest(response: PathUncheckedResponse): void { - const Http2xxStatusCodes = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226"]; - if (!Http2xxStatusCodes.includes(response.status)) { - throw createRestError( - `Pagination failed with unexpected statusCode ${response.status}`, - response, - ); - } -} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/parameters.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/parameters.ts deleted file mode 100644 index c6037f57f0bc..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/parameters.ts +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { RequestParameters } from "@azure-rest/core-client"; -import { DeidService, DeidUpdate, PrivateEndpointConnectionResource } from "./models.js"; - -export type OperationsListParameters = RequestParameters; -export type DeidServicesGetParameters = RequestParameters; -export type DeidServicesListByResourceGroupParameters = RequestParameters; -export type DeidServicesListBySubscriptionParameters = RequestParameters; - -export interface DeidServicesCreateBodyParam { - /** Resource create parameters. */ - body: DeidService; -} - -export type DeidServicesCreateParameters = DeidServicesCreateBodyParam & RequestParameters; - -export interface DeidServicesUpdateBodyParam { - /** The resource properties to be updated. */ - body: DeidUpdate; -} - -export type DeidServicesUpdateParameters = DeidServicesUpdateBodyParam & RequestParameters; -export type DeidServicesDeleteParameters = RequestParameters; -export type PrivateEndpointConnectionsGetParameters = RequestParameters; - -export interface PrivateEndpointConnectionsCreateBodyParam { - /** Resource create parameters. */ - body: PrivateEndpointConnectionResource; -} - -export type PrivateEndpointConnectionsCreateParameters = PrivateEndpointConnectionsCreateBodyParam & - RequestParameters; -export type PrivateEndpointConnectionsDeleteParameters = RequestParameters; -export type PrivateEndpointConnectionsListByDeidServiceParameters = RequestParameters; -export type PrivateLinksListByDeidServiceParameters = RequestParameters; diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/pollingHelper.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/pollingHelper.ts deleted file mode 100644 index c9c42fb78e69..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/pollingHelper.ts +++ /dev/null @@ -1,270 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { Client, HttpResponse } from "@azure-rest/core-client"; -import { AbortSignalLike } from "@azure/abort-controller"; -import { - CancelOnProgress, - CreateHttpPollerOptions, - RunningOperation, - OperationResponse, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { - DeidServicesCreate200Response, - DeidServicesCreate201Response, - DeidServicesCreateDefaultResponse, - DeidServicesCreateLogicalResponse, - DeidServicesUpdate200Response, - DeidServicesUpdate202Response, - DeidServicesUpdateDefaultResponse, - DeidServicesUpdateLogicalResponse, - DeidServicesDelete202Response, - DeidServicesDelete204Response, - DeidServicesDeleteDefaultResponse, - DeidServicesDeleteLogicalResponse, - PrivateEndpointConnectionsCreate200Response, - PrivateEndpointConnectionsCreate201Response, - PrivateEndpointConnectionsCreateDefaultResponse, - PrivateEndpointConnectionsCreateLogicalResponse, - PrivateEndpointConnectionsDelete202Response, - PrivateEndpointConnectionsDelete204Response, - PrivateEndpointConnectionsDeleteDefaultResponse, - PrivateEndpointConnectionsDeleteLogicalResponse, -} from "./responses.js"; - -/** - * A simple poller that can be used to poll a long running operation. - */ -export interface SimplePollerLike, TResult> { - /** - * Returns true if the poller has finished polling. - */ - isDone(): boolean; - /** - * Returns the state of the operation. - */ - getOperationState(): TState; - /** - * Returns the result value of the operation, - * regardless of the state of the poller. - * It can return undefined or an incomplete form of the final TResult value - * depending on the implementation. - */ - getResult(): TResult | undefined; - /** - * Returns a promise that will resolve once a single polling request finishes. - * It does this by calling the update method of the Poller's operation. - */ - poll(options?: { abortSignal?: AbortSignalLike }): Promise; - /** - * Returns a promise that will resolve once the underlying operation is completed. - */ - pollUntilDone(pollOptions?: { abortSignal?: AbortSignalLike }): Promise; - /** - * Invokes the provided callback after each polling is completed, - * sending the current state of the poller's operation. - * - * It returns a method that can be used to stop receiving updates on the given callback function. - */ - onProgress(callback: (state: TState) => void): CancelOnProgress; - - /** - * Returns a promise that could be used for serialized version of the poller's operation - * by invoking the operation's serialize method. - */ - serialize(): Promise; - - /** - * Wait the poller to be submitted. - */ - submitted(): Promise; - - /** - * Returns a string representation of the poller's operation. Similar to serialize but returns a string. - * @deprecated Use serialize() instead. - */ - toString(): string; - - /** - * Stops the poller from continuing to poll. Please note this will only stop the client-side polling - * @deprecated Use abortSignal to stop polling instead. - */ - stopPolling(): void; - - /** - * Returns true if the poller is stopped. - * @deprecated Use abortSignal status to track this instead. - */ - isStopped(): boolean; -} - -/** - * Helper function that builds a Poller object to help polling a long running operation. - * @param client - Client to use for sending the request to get additional pages. - * @param initialResponse - The initial response. - * @param options - Options to set a resume state or custom polling interval. - * @returns - A poller object to poll for operation state updates and eventually get the final response. - */ -export async function getLongRunningPoller< - TResult extends DeidServicesCreateLogicalResponse | DeidServicesCreateDefaultResponse, ->( - client: Client, - initialResponse: - | DeidServicesCreate200Response - | DeidServicesCreate201Response - | DeidServicesCreateDefaultResponse, - options?: CreateHttpPollerOptions>, -): Promise, TResult>>; -export async function getLongRunningPoller< - TResult extends DeidServicesUpdateLogicalResponse | DeidServicesUpdateDefaultResponse, ->( - client: Client, - initialResponse: - | DeidServicesUpdate200Response - | DeidServicesUpdate202Response - | DeidServicesUpdateDefaultResponse, - options?: CreateHttpPollerOptions>, -): Promise, TResult>>; -export async function getLongRunningPoller< - TResult extends DeidServicesDeleteLogicalResponse | DeidServicesDeleteDefaultResponse, ->( - client: Client, - initialResponse: - | DeidServicesDelete202Response - | DeidServicesDelete204Response - | DeidServicesDeleteDefaultResponse, - options?: CreateHttpPollerOptions>, -): Promise, TResult>>; -export async function getLongRunningPoller< - TResult extends - | PrivateEndpointConnectionsCreateLogicalResponse - | PrivateEndpointConnectionsCreateDefaultResponse, ->( - client: Client, - initialResponse: - | PrivateEndpointConnectionsCreate200Response - | PrivateEndpointConnectionsCreate201Response - | PrivateEndpointConnectionsCreateDefaultResponse, - options?: CreateHttpPollerOptions>, -): Promise, TResult>>; -export async function getLongRunningPoller< - TResult extends - | PrivateEndpointConnectionsDeleteLogicalResponse - | PrivateEndpointConnectionsDeleteDefaultResponse, ->( - client: Client, - initialResponse: - | PrivateEndpointConnectionsDelete202Response - | PrivateEndpointConnectionsDelete204Response - | PrivateEndpointConnectionsDeleteDefaultResponse, - options?: CreateHttpPollerOptions>, -): Promise, TResult>>; -export async function getLongRunningPoller( - client: Client, - initialResponse: TResult, - options: CreateHttpPollerOptions> = {}, -): Promise, TResult>> { - const abortController = new AbortController(); - const poller: RunningOperation = { - sendInitialRequest: async () => { - // In the case of Rest Clients we are building the LRO poller object from a response that's the reason - // we are not triggering the initial request here, just extracting the information from the - // response we were provided. - return getLroResponse(initialResponse); - }, - sendPollRequest: async (path: string, pollOptions?: { abortSignal?: AbortSignalLike }) => { - // This is the callback that is going to be called to poll the service - // to get the latest status. We use the client provided and the polling path - // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location - // depending on the lro pattern that the service implements. If non is provided we default to the initial path. - function abortListener(): void { - abortController.abort(); - } - const inputAbortSignal = pollOptions?.abortSignal; - const abortSignal = abortController.signal; - if (inputAbortSignal?.aborted) { - abortController.abort(); - } else if (!abortSignal.aborted) { - inputAbortSignal?.addEventListener("abort", abortListener, { - once: true, - }); - } - let response; - try { - response = await client - .pathUnchecked(path ?? initialResponse.request.url) - .get({ abortSignal }); - } finally { - inputAbortSignal?.removeEventListener("abort", abortListener); - } - const lroResponse = getLroResponse(response as TResult); - lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url; - return lroResponse; - }, - }; - - options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true; - const httpPoller = createHttpPoller(poller, options); - const simplePoller: SimplePollerLike, TResult> = { - isDone() { - return httpPoller.isDone; - }, - isStopped() { - return abortController.signal.aborted; - }, - getOperationState() { - if (!httpPoller.operationState) { - throw new Error( - "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", - ); - } - return httpPoller.operationState; - }, - getResult() { - return httpPoller.result; - }, - toString() { - if (!httpPoller.operationState) { - throw new Error( - "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", - ); - } - return JSON.stringify({ - state: httpPoller.operationState, - }); - }, - stopPolling() { - abortController.abort(); - }, - onProgress: httpPoller.onProgress, - poll: httpPoller.poll, - pollUntilDone: httpPoller.pollUntilDone, - serialize: httpPoller.serialize, - submitted: httpPoller.submitted, - }; - return simplePoller; -} - -/** - * Converts a Rest Client response to a response that the LRO implementation understands - * @param response - a rest client http response - * @returns - An LRO response that the LRO implementation understands - */ -function getLroResponse( - response: TResult, -): OperationResponse { - if (Number.isNaN(response.status)) { - throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`); - } - - return { - flatResponse: response, - rawResponse: { - ...response, - statusCode: Number.parseInt(response.status), - body: response.body, - }, - }; -} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/responses.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/responses.ts deleted file mode 100644 index 52285ea0594c..000000000000 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/rest/responses.ts +++ /dev/null @@ -1,239 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { RawHttpHeaders } from "@azure/core-rest-pipeline"; -import { HttpResponse } from "@azure-rest/core-client"; -import { - OperationListResultOutput, - ErrorResponseOutput, - DeidServiceOutput, - DeidServiceListResultOutput, - PrivateEndpointConnectionResourceOutput, - PrivateEndpointConnectionResourceListResultOutput, - PrivateLinkResourceListResultOutput, -} from "./outputModels.js"; - -/** Azure operation completed successfully. */ -export interface OperationsList200Response extends HttpResponse { - status: "200"; - body: OperationListResultOutput; -} - -export interface OperationsListDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DeidServicesGet200Response extends HttpResponse { - status: "200"; - body: DeidServiceOutput; -} - -export interface DeidServicesGetDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DeidServicesListByResourceGroup200Response extends HttpResponse { - status: "200"; - body: DeidServiceListResultOutput; -} - -export interface DeidServicesListByResourceGroupDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface DeidServicesListBySubscription200Response extends HttpResponse { - status: "200"; - body: DeidServiceListResultOutput; -} - -export interface DeidServicesListBySubscriptionDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Resource 'DeidService' update operation succeeded */ -export interface DeidServicesCreate200Response extends HttpResponse { - status: "200"; - body: DeidServiceOutput; -} - -export interface DeidServicesCreate201Headers { - /** A link to the status monitor */ - "azure-asyncoperation"?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} - -/** Resource 'DeidService' create operation succeeded */ -export interface DeidServicesCreate201Response extends HttpResponse { - status: "201"; - body: DeidServiceOutput; - headers: RawHttpHeaders & DeidServicesCreate201Headers; -} - -export interface DeidServicesCreateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** The final response for long-running create operation */ -export interface DeidServicesCreateLogicalResponse extends HttpResponse { - status: "200"; - body: DeidServiceOutput; -} - -/** Azure operation completed successfully. */ -export interface DeidServicesUpdate200Response extends HttpResponse { - status: "200"; - body: DeidServiceOutput; -} - -export interface DeidServicesUpdate202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} - -/** Resource update request accepted. */ -export interface DeidServicesUpdate202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DeidServicesUpdate202Headers; -} - -export interface DeidServicesUpdateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** The final response for long-running update operation */ -export interface DeidServicesUpdateLogicalResponse extends HttpResponse { - status: "200"; - body: DeidServiceOutput; -} - -export interface DeidServicesDelete202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} - -/** Resource deletion accepted. */ -export interface DeidServicesDelete202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & DeidServicesDelete202Headers; -} - -/** Resource does not exist. */ -export interface DeidServicesDelete204Response extends HttpResponse { - status: "204"; -} - -export interface DeidServicesDeleteDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** The final response for long-running delete operation */ -export interface DeidServicesDeleteLogicalResponse extends HttpResponse { - status: "200"; -} - -/** Azure operation completed successfully. */ -export interface PrivateEndpointConnectionsGet200Response extends HttpResponse { - status: "200"; - body: PrivateEndpointConnectionResourceOutput; -} - -export interface PrivateEndpointConnectionsGetDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Resource 'PrivateEndpointConnectionResource' update operation succeeded */ -export interface PrivateEndpointConnectionsCreate200Response extends HttpResponse { - status: "200"; - body: PrivateEndpointConnectionResourceOutput; -} - -export interface PrivateEndpointConnectionsCreate201Headers { - /** A link to the status monitor */ - "azure-asyncoperation"?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} - -/** Resource 'PrivateEndpointConnectionResource' create operation succeeded */ -export interface PrivateEndpointConnectionsCreate201Response extends HttpResponse { - status: "201"; - body: PrivateEndpointConnectionResourceOutput; - headers: RawHttpHeaders & PrivateEndpointConnectionsCreate201Headers; -} - -export interface PrivateEndpointConnectionsCreateDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** The final response for long-running create operation */ -export interface PrivateEndpointConnectionsCreateLogicalResponse extends HttpResponse { - status: "200"; - body: PrivateEndpointConnectionResourceOutput; -} - -export interface PrivateEndpointConnectionsDelete202Headers { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - "retry-after"?: number; -} - -/** Resource deletion accepted. */ -export interface PrivateEndpointConnectionsDelete202Response extends HttpResponse { - status: "202"; - headers: RawHttpHeaders & PrivateEndpointConnectionsDelete202Headers; -} - -/** Resource does not exist. */ -export interface PrivateEndpointConnectionsDelete204Response extends HttpResponse { - status: "204"; -} - -export interface PrivateEndpointConnectionsDeleteDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** The final response for long-running delete operation */ -export interface PrivateEndpointConnectionsDeleteLogicalResponse extends HttpResponse { - status: "200"; -} - -/** Azure operation completed successfully. */ -export interface PrivateEndpointConnectionsListByDeidService200Response extends HttpResponse { - status: "200"; - body: PrivateEndpointConnectionResourceListResultOutput; -} - -export interface PrivateEndpointConnectionsListByDeidServiceDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** Azure operation completed successfully. */ -export interface PrivateLinksListByDeidService200Response extends HttpResponse { - status: "200"; - body: PrivateLinkResourceListResultOutput; -} - -export interface PrivateLinksListByDeidServiceDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/restorePollerHelpers.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/restorePollerHelpers.ts index 7ad41df7ab1f..1a0591562cb3 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/src/restorePollerHelpers.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/restorePollerHelpers.ts @@ -1,14 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { - PollerLike, - OperationState, - deserializeState, - ResourceLocationConfig, -} from "@azure/core-lro"; import { HealthDataAIServicesClient } from "./healthDataAIServicesClient.js"; -import { getLongRunningPoller } from "./api/pollingHelpers.js"; import { _deidServicesCreateDeserialize, _deidServicesUpdateDeserialize, @@ -18,8 +11,15 @@ import { _privateEndpointConnectionsCreateDeserialize, _privateEndpointConnectionsDeleteDeserialize, } from "./api/privateEndpointConnections/index.js"; -import { PathUncheckedResponse, OperationOptions } from "@azure-rest/core-client"; +import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js"; +import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client"; import { AbortSignalLike } from "@azure/abort-controller"; +import { + PollerLike, + OperationState, + deserializeState, + ResourceLocationConfig, +} from "@azure/core-lro"; export interface RestorePollerOptions< TResult, @@ -56,8 +56,9 @@ export function restorePoller( const resourceLocationConfig = metadata?.["resourceLocationConfig"] as | ResourceLocationConfig | undefined; - const deserializeHelper = - options?.processResponseBody ?? getDeserializationHelper(initialRequestUrl, requestMethod); + const { deserializer, expectedStatuses = [] } = + getDeserializationHelper(initialRequestUrl, requestMethod) ?? {}; + const deserializeHelper = options?.processResponseBody ?? deserializer; if (!deserializeHelper) { throw new Error( `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`, @@ -66,6 +67,7 @@ export function restorePoller( return getLongRunningPoller( (client as any)["_client"] ?? client, deserializeHelper as (result: TResponse) => Promise, + expectedStatuses, { updateIntervalInMs: options?.updateIntervalInMs, abortSignal: options?.abortSignal, @@ -76,23 +78,43 @@ export function restorePoller( ); } -const deserializeMap: Record = { +interface DeserializationHelper { + deserializer: Function; + expectedStatuses: string[]; +} + +const deserializeMap: Record = { "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": - _deidServicesCreateDeserialize, + { + deserializer: _deidServicesCreateDeserialize, + expectedStatuses: ["200", "201"], + }, "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": - _deidServicesUpdateDeserialize, + { + deserializer: _deidServicesUpdateDeserialize, + expectedStatuses: ["200", "202"], + }, "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}": - _deidServicesDeleteDeserialize, + { + deserializer: _deidServicesDeleteDeserialize, + expectedStatuses: ["202", "204", "200"], + }, "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}": - _privateEndpointConnectionsCreateDeserialize, + { + deserializer: _privateEndpointConnectionsCreateDeserialize, + expectedStatuses: ["200", "201"], + }, "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthDataAIServices/deidServices/{deidServiceName}/privateEndpointConnections/{privateEndpointConnectionName}": - _privateEndpointConnectionsDeleteDeserialize, + { + deserializer: _privateEndpointConnectionsDeleteDeserialize, + expectedStatuses: ["202", "204", "200"], + }, }; function getDeserializationHelper( urlStr: string, method: string, -): ((result: unknown) => Promise) | undefined { +): DeserializationHelper | undefined { const path = new URL(urlStr).pathname; const pathParts = path.split("/"); @@ -100,7 +122,7 @@ function getDeserializationHelper( // matchedLen: the length of candidate path // matchedValue: the matched status code array let matchedLen = -1, - matchedValue: ((result: unknown) => Promise) | undefined; + matchedValue: DeserializationHelper | undefined; // Iterate the responseMap to find a match for (const [key, value] of Object.entries(deserializeMap)) { @@ -147,7 +169,7 @@ function getDeserializationHelper( // Update the matched value if and only if we found the longer pattern if (found && candidatePath.length > matchedLen) { matchedLen = candidatePath.length; - matchedValue = value as (result: unknown) => Promise; + matchedValue = value; } } diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/static-helpers/pagingHelpers.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/static-helpers/pagingHelpers.ts new file mode 100644 index 000000000000..ce33af5f4178 --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/static-helpers/pagingHelpers.ts @@ -0,0 +1,241 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; +import { RestError } from "@azure/core-rest-pipeline"; + +/** + * Options for the byPage method + */ +export interface PageSettings { + /** + * A reference to a specific page to start iterating from. + */ + continuationToken?: string; +} + +/** + * An interface that describes a page of results. + */ +export type ContinuablePage = TPage & { + /** + * The token that keeps track of where to continue the iterator + */ + continuationToken?: string; +}; + +/** + * An interface that allows async iterable iteration both to completion and by page. + */ +export interface PagedAsyncIterableIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +> { + /** + * The next method, part of the iteration protocol + */ + next(): Promise>; + /** + * The connection to the async iterator, part of the iteration protocol + */ + [Symbol.asyncIterator](): PagedAsyncIterableIterator; + /** + * Return an AsyncIterableIterator that works a page at a time + */ + byPage: (settings?: TPageSettings) => AsyncIterableIterator>; +} + +/** + * An interface that describes how to communicate with the service. + */ +export interface PagedResult< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +> { + /** + * Link to the first page of results. + */ + firstPageLink?: string; + /** + * A method that returns a page of results. + */ + getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>; + /** + * a function to implement the `byPage` method on the paged async iterator. + */ + byPage?: (settings?: TPageSettings) => AsyncIterableIterator>; + + /** + * A function to extract elements from a page. + */ + toElements?: (page: TPage) => TElement[]; +} + +/** + * Options for the paging helper + */ +export interface BuildPagedAsyncIteratorOptions { + itemName?: string; + nextLinkName?: string; +} + +/** + * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator + */ +export function buildPagedAsyncIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, + TResponse extends PathUncheckedResponse = PathUncheckedResponse, +>( + client: Client, + getInitialResponse: () => PromiseLike, + processResponseBody: (result: TResponse) => PromiseLike, + expectedStatuses: string[], + options: BuildPagedAsyncIteratorOptions = {}, +): PagedAsyncIterableIterator { + const itemName = options.itemName ?? "value"; + const nextLinkName = options.nextLinkName ?? "nextLink"; + const pagedResult: PagedResult = { + getPage: async (pageLink?: string) => { + const result = + pageLink === undefined + ? await getInitialResponse() + : await client.pathUnchecked(pageLink).get(); + checkPagingRequest(result, expectedStatuses); + const results = await processResponseBody(result as TResponse); + const nextLink = getNextLink(results, nextLinkName); + const values = getElements(results, itemName) as TPage; + return { + page: values, + nextPageLink: nextLink, + }; + }, + byPage: (settings?: TPageSettings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken, + }); + }, + }; + return getPagedAsyncIterator(pagedResult); +} + +/** + * returns an async iterator that iterates over results. It also has a `byPage` + * method that returns pages of items at once. + * + * @param pagedResult - an object that specifies how to get pages. + * @returns a paged async iterator that iterates over results. + */ + +function getPagedAsyncIterator< + TElement, + TPage = TElement[], + TPageSettings extends PageSettings = PageSettings, +>( + pagedResult: PagedResult, +): PagedAsyncIterableIterator { + const iter = getItemAsyncIterator(pagedResult); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: + pagedResult?.byPage ?? + ((settings?: TPageSettings) => { + const { continuationToken } = settings ?? {}; + return getPageAsyncIterator(pagedResult, { + pageLink: continuationToken, + }); + }), + }; +} + +async function* getItemAsyncIterator( + pagedResult: PagedResult, +): AsyncIterableIterator { + const pages = getPageAsyncIterator(pagedResult); + for await (const page of pages) { + yield* page as unknown as TElement[]; + } +} + +async function* getPageAsyncIterator( + pagedResult: PagedResult, + options: { + pageLink?: string; + } = {}, +): AsyncIterableIterator> { + const { pageLink } = options; + let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink); + if (!response) { + return; + } + let result = response.page as ContinuablePage; + result.continuationToken = response.nextPageLink; + yield result; + while (response.nextPageLink) { + response = await pagedResult.getPage(response.nextPageLink); + if (!response) { + return; + } + result = response.page as ContinuablePage; + result.continuationToken = response.nextPageLink; + yield result; + } +} + +/** + * Gets for the value of nextLink in the body + */ +function getNextLink(body: unknown, nextLinkName?: string): string | undefined { + if (!nextLinkName) { + return undefined; + } + + const nextLink = (body as Record)[nextLinkName]; + + if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) { + throw new RestError( + `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`, + ); + } + + if (nextLink === null) { + return undefined; + } + + return nextLink; +} + +/** + * Gets the elements of the current request in the body. + */ +function getElements(body: unknown, itemName: string): T[] { + const value = (body as Record)[itemName] as T[]; + if (!Array.isArray(value)) { + throw new RestError( + `Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`, + ); + } + + return value ?? []; +} + +/** + * Checks if a request failed + */ +function checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void { + if (!expectedStatuses.includes(response.status)) { + throw createRestError( + `Pagination failed with unexpected statusCode ${response.status}`, + response, + ); + } +} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/src/static-helpers/pollingHelpers.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/src/static-helpers/pollingHelpers.ts new file mode 100644 index 000000000000..f01c41bab69d --- /dev/null +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/src/static-helpers/pollingHelpers.ts @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + PollerLike, + OperationState, + ResourceLocationConfig, + RunningOperation, + createHttpPoller, + OperationResponse, +} from "@azure/core-lro"; + +import { Client, PathUncheckedResponse, createRestError } from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; + +export interface GetLongRunningPollerOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** + * The signal which can be used to abort requests. + */ + abortSignal?: AbortSignalLike; + /** + * The potential location of the result of the LRO if specified by the LRO extension in the swagger. + */ + resourceLocationConfig?: ResourceLocationConfig; + /** + * The original url of the LRO + * Should not be null when restoreFrom is set + */ + initialRequestUrl?: string; + /** + * A serialized poller which can be used to resume an existing paused Long-Running-Operation. + */ + restoreFrom?: string; + /** + * The function to get the initial response + */ + getInitialResponse?: () => PromiseLike; +} +export function getLongRunningPoller( + client: Client, + processResponseBody: (result: TResponse) => Promise, + expectedStatuses: string[], + options: GetLongRunningPollerOptions, +): PollerLike, TResult> { + const { restoreFrom, getInitialResponse } = options; + if (!restoreFrom && !getInitialResponse) { + throw new Error("Either restoreFrom or getInitialResponse must be specified"); + } + let initialResponse: TResponse | undefined = undefined; + const pollAbortController = new AbortController(); + const poller: RunningOperation = { + sendInitialRequest: async () => { + if (!getInitialResponse) { + throw new Error("getInitialResponse is required when initializing a new poller"); + } + initialResponse = await getInitialResponse(); + return getLroResponse(initialResponse, expectedStatuses); + }, + sendPollRequest: async ( + path: string, + pollOptions?: { + abortSignal?: AbortSignalLike; + }, + ) => { + // The poll request would both listen to the user provided abort signal and the poller's own abort signal + function abortListener(): void { + pollAbortController.abort(); + } + const abortSignal = pollAbortController.signal; + if (options.abortSignal?.aborted) { + pollAbortController.abort(); + } else if (pollOptions?.abortSignal?.aborted) { + pollAbortController.abort(); + } else if (!abortSignal.aborted) { + options.abortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + pollOptions?.abortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + } + let response; + try { + response = await client.pathUnchecked(path).get({ abortSignal }); + } finally { + options.abortSignal?.removeEventListener("abort", abortListener); + pollOptions?.abortSignal?.removeEventListener("abort", abortListener); + } + + return getLroResponse(response as TResponse, expectedStatuses); + }, + }; + return createHttpPoller(poller, { + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: options?.resourceLocationConfig, + restoreFrom: options?.restoreFrom, + processResult: (result: unknown) => { + return processResponseBody(result as TResponse); + }, + }); +} +/** + * Converts a Rest Client response to a response that the LRO implementation understands + * @param response - a rest client http response + * @param deserializeFn - deserialize function to convert Rest response to modular output + * @returns - An LRO response that the LRO implementation understands + */ +function getLroResponse( + response: TResponse, + expectedStatuses: string[], +): OperationResponse { + if (!expectedStatuses.includes(response.status)) { + throw createRestError(response); + } + + return { + flatResponse: response, + rawResponse: { + ...response, + statusCode: Number.parseInt(response.status), + body: response.body, + }, + }; +} diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/test/public/healthdataaiservices_operations_test.spec.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/test/public/healthdataaiservices_operations_test.spec.ts index b357852744fc..2534741a9647 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/test/public/healthdataaiservices_operations_test.spec.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/test/public/healthdataaiservices_operations_test.spec.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { env, Recorder, isPlaybackMode, delay } from "@azure-tools/test-recorder"; +import { env, Recorder, isPlaybackMode } from "@azure-tools/test-recorder"; import { createTestCredential } from "@azure-tools/test-credential"; import { assert, beforeEach, afterEach, it, describe } from "vitest"; import { createRecorder } from "./utils/recordedClient.js"; @@ -20,9 +20,6 @@ describe("HealthDataAIServices test", () => { let recorder: Recorder; let subscriptionId: string; let client: HealthDataAIServicesClient; - let location: string; - let resourceGroup: string; - let resourcename: string; beforeEach(async (context) => { process.env.SystemRoot = process.env.SystemRoot || "C:\\Windows"; @@ -35,9 +32,6 @@ describe("HealthDataAIServices test", () => { subscriptionId, recorder.configureClientOptions({}), ); - location = "eastus"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; }); afterEach(async function () { diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/test/public/utils/recordedClient.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/test/public/utils/recordedClient.ts index 527ccc9dee86..14dcd9fa397c 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/test/public/utils/recordedClient.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/test/public/utils/recordedClient.ts @@ -9,10 +9,6 @@ const replaceableVariables: Record = { const recorderEnvSetup: RecorderStartOptions = { envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], }; /** diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/tsconfig.browser.config.json b/sdk/healthdataaiservices/arm-healthdataaiservices/tsconfig.browser.config.json index 1b37aebc5457..091177fcb991 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/tsconfig.browser.config.json +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/tsconfig.browser.config.json @@ -1,7 +1,7 @@ { "extends": "./.tshy/build.json", - "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts"], - "exclude": ["./test/**/node/**/*.ts"], + "include": ["src/**/*.ts", "src/**/*.mts", "test/**/*.spec.ts"], + "exclude": ["test/**/node/**/*.ts"], "compilerOptions": { "outDir": "./dist-test/browser", "rootDir": ".", diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/tsconfig.json b/sdk/healthdataaiservices/arm-healthdataaiservices/tsconfig.json index a10f22a54c88..acb46afff78f 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/tsconfig.json +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/tsconfig.json @@ -3,7 +3,16 @@ "compilerOptions": { "module": "NodeNext", "moduleResolution": "NodeNext", - "rootDir": "." + "rootDir": ".", + "skipLibCheck": true, + "paths": { "@azure/arm-healthdataaiservices": ["./src/index"] } }, - "include": ["./src/**/*.ts", "./src/**/*.mts", "./src/**/*.cts", "test/**/*.ts", "./test/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "test/**/*.ts", + "test/**/*.ts", + "samples-dev/**/*.ts" + ] } diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/tsp-location.yaml b/sdk/healthdataaiservices/arm-healthdataaiservices/tsp-location.yaml index b62beaef0692..4b31e83a8740 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/tsp-location.yaml +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/healthdataaiservices/HealthDataAIServices.Management -commit: c37a507e520767c5bafde6d8fbf9aabef6316fdb -repo: ../azure-rest-api-specs -additionalDirectories: \ No newline at end of file +commit: fec6882b306f1860eec64898d3663202abb8d42f +repo: Azure/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/vitest.browser.config.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/vitest.browser.config.ts index 5e0dc418cfa2..da68c1d231aa 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/vitest.browser.config.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/vitest.browser.config.ts @@ -33,5 +33,6 @@ export default defineConfig({ reportsDirectory: "coverage-browser", }, testTimeout: 1200000, + hookTimeout: 1200000, }, }); diff --git a/sdk/healthdataaiservices/arm-healthdataaiservices/vitest.config.ts b/sdk/healthdataaiservices/arm-healthdataaiservices/vitest.config.ts index f8ab2a758bf9..2cf5d0e02c2e 100644 --- a/sdk/healthdataaiservices/arm-healthdataaiservices/vitest.config.ts +++ b/sdk/healthdataaiservices/arm-healthdataaiservices/vitest.config.ts @@ -29,5 +29,6 @@ export default defineConfig({ reportsDirectory: "coverage", }, testTimeout: 1200000, + hookTimeout: 1200000, }, }); diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/api-extractor.json b/sdk/healthinsights/health-insights-cancerprofiling-rest/api-extractor.json index 1b1086dc9aa5..4e6c999da545 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/api-extractor.json +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "mainEntryPointFilePath": "dist/esm/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/health-insights-cancerprofiling-rest.d.ts" + "publicTrimmedFilePath": "dist/health-insights-cancerprofiling-rest.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } } diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/karma.conf.js b/sdk/healthinsights/health-insights-cancerprofiling-rest/karma.conf.js deleted file mode 100644 index 1db6874bed55..000000000000 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/karma.conf.js +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: [ - "TEST_MODE", - "HEALTH_INSIGHTS_ENDPOINT", - "HEALTH_INSIGHTS_KEY", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/package.json b/sdk/healthinsights/health-insights-cancerprofiling-rest/package.json index 151d1cabd213..4844c737403e 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/package.json +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/package.json @@ -13,31 +13,28 @@ "isomorphic" ], "license": "MIT", - "main": "dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/health-insights-cancerprofiling-rest.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/", - "dist-esm/src/", - "types/health-indights-cancerprofiling.d.ts", "README.md", - "LICENSE", - "review/*" + "LICENSE" ], "engines": { "node": ">=18.0.0" }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run bundle --browser-test false", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api", + "build:node": "dev-tool run build-package && dev-tool run bundle --browser-test false", "build:samples": "echo skipped.", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", @@ -45,8 +42,8 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "generate:client": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -54,49 +51,37 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.1.3", - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-lro": "^2.5.3", - "@azure/core-rest-pipeline": "^1.8.0", - "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "@azure-rest/core-client": "^2.3.1", + "@azure/abort-controller": "^2.1.2", + "@azure/core-auth": "^1.9.0", + "@azure/core-lro": "^2.7.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "autorest": "latest", - "chai": "^4.2.0", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.49.0", + "typescript": "~5.6.2", + "vitest": "^2.1.5" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-cancerprofiling-rest/README.md", "//metadata": { @@ -107,9 +92,7 @@ } ] }, - "browser": { - "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" - }, + "browser": "./dist/browser/index.js", "//sampleConfiguration": { "productName": "HealthInsightsCancerprifiling", "productSlugs": [ @@ -117,5 +100,42 @@ ], "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api" + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/samples-dev/sample_infer_cancer_profiling.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/samples-dev/sample_infer_cancer_profiling.ts index 10f7154e4a9d..79b99c871fd0 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/samples-dev/sample_infer_cancer_profiling.ts +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/samples-dev/sample_infer_cancer_profiling.ts @@ -8,18 +8,14 @@ * @summary detects change points. */ -import {AzureKeyCredential} from "@azure/core-auth"; - -import * as dotenv from "dotenv"; -import CancerProfilingRestClient, { - CreateJobParameters, - getLongRunningPoller, - isUnexpected, - OncoPhenotypeData, - OncoPhenotypeResultOutput -} from "../src"; - -dotenv.config(); +import { AzureKeyCredential } from "@azure/core-auth"; +import "dotenv/config"; +import type { + CreateJobParameters, + OncoPhenotypeData, + OncoPhenotypeResultOutput, +} from "../src/index.js"; +import CancerProfilingRestClient, { getLongRunningPoller, isUnexpected } from "../src/index.js"; // You will need to set this environment variables or edit the following values const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; @@ -27,117 +23,121 @@ const apiKey = process.env["HEALTH_INSIGHTS_API_KEY"] || ""; // Print the inference results function printResults(cancerProfilingResult: OncoPhenotypeResultOutput): void { - if (cancerProfilingResult.status === "succeeded") { - const results = cancerProfilingResult.results; - if (results) { - for (const patientResult of results.patients) { - console.log(`Inferences of Patient ${patientResult.id}`); - for (const { type, value, confidenceScore, evidence } of patientResult.inferences) { - console.log(`Clinical Type: ${String(type)} Value: ${value}, ConfidenceScore: ${confidenceScore}`); - for (const { patientDataEvidence } of evidence || []) { - if (patientDataEvidence) { - console.log(`Evidence: ${patientDataEvidence.id} ${patientDataEvidence.offset} ${patientDataEvidence.length} ${patientDataEvidence.text}`); - } - } - } + if (cancerProfilingResult.status === "succeeded") { + const results = cancerProfilingResult.results; + if (results) { + for (const patientResult of results.patients) { + console.log(`Inferences of Patient ${patientResult.id}`); + for (const { type, value, confidenceScore, evidence } of patientResult.inferences) { + console.log( + `Clinical Type: ${String(type)} Value: ${value}, ConfidenceScore: ${confidenceScore}`, + ); + for (const { patientDataEvidence } of evidence || []) { + if (patientDataEvidence) { + console.log( + `Evidence: ${patientDataEvidence.id} ${patientDataEvidence.offset} ${patientDataEvidence.length} ${patientDataEvidence.text}`, + ); } - } - } else { - const errors = cancerProfilingResult.errors; - if (errors) { - for (const error of errors) { - console.log(error.code, ":", error.message); } } + } + } + } else { + const errors = cancerProfilingResult.errors; + if (errors) { + for (const error of errors) { + console.log(error.code, ":", error.message); + } } + } } // Create request body for cancer profiling function createRequestBody(): CreateJobParameters { - // Define patient information and clinical documents - const patientInfo = { - sex: "FEMALE", - birthDate: new Date("1979-10-08T00:00:00.000Z"), // Note: Months are zero-based (11 represents December) - }; - - const doc1 = "15.8.2021" - "Jane Doe 091175-8967" - "42 year old female, married with 3 children, works as a nurse. " - "Healthy, no medications taken on a regular basis." - "PMHx is significant for migraines with aura, uses Mirena for contraception." - "Smoking history of 10 pack years (has stopped and relapsed several times)." - "She is in c/o 2 weeks of productive cough and shortness of breath." - "She has a fever of 37.8 and general weakness. " - "Denies night sweats and rash. She denies symptoms of rhinosinusitis, asthma, and heartburn. " - "On PE:" - "GENERAL: mild pallor, no cyanosis. Regular breathing rate. " - "LUNGS: decreased breath sounds on the base of the right lung. Vesicular breathing." - " No crackles, rales, and wheezes. Resonant percussion. " - "PLAN: " - "Will be referred for a chest x-ray. " - "======================================" - "CXR showed mild nonspecific opacities in right lung base. " - "PLAN:" - "Findings are suggestive of a working diagnosis of pneumonia. The patient is referred to a " - "follow-up CXR in 2 weeks. "; - - const docContent = { - sourceType: "INLINE", - value: doc1 - }; - - const patientDoc1 = { - type: "NOTE", - id: "doc1", - content: docContent, - clinicalType: "IMAGING", - language: "en", - createdDateTime: new Date("2021-08-15T00:00:00.000Z") - }; - - // Define patientDoc2 and patientDoc3 similarly - const doc2 = `Oncology Clinic - 20.10.2021 - Jane Doe 091175-8967 - 42-year-old healthy female who works as a nurse in the ER of this hospital. - First menstruation at 11 years old. First delivery- 27 years old. She has 3 children. - Didn’t breastfeed. - Contraception- Mirena. - Smoking- 10 pack years. - Mother- Belarusian. Father- Georgian. - About 3 months prior to admission, she stated she had SOB and was febrile. - She did a CXR as an outpatient which showed a finding in the base of the right lung- - possibly an infiltrate. - She was treated with antibiotics with partial response. - 6 weeks later a repeat CXR was performed- a few solid dense findings in the right lung. - Therefore, she was referred for a PET-CT which demonstrated increased uptake in the right - breast, lymph nodes on the right a few areas in the lungs and liver. - On biopsy from the lesion in the right breast- triple negative adenocarcinoma. Genetic - testing has not been done thus far. - Genetic counseling- the patient denies a family history of breast, ovary, uterus, - and prostate cancer. Her mother has chronic lymphocytic leukemia (CLL). - She is planned to undergo genetic tests because the aggressive course of the disease, - and her young age. - Impression: - Stage 4 triple negative breast adenocarcinoma. - Could benefit from biological therapy. - Different treatment options were explained- the patient wants to get a second opinion.`; - - const docContent2 = { - sourceType: "INLINE", - value: doc2 - }; - - const patientDoc2 = { - type: "NOTE", - id: "doc2", - content: docContent2, - clinicalType: "PATHOLOGY", - language: "en", - createdDateTime: new Date("2021-10-20T00:00:00.000Z") - }; - - const doc3 = `PATHOLOGY REPORT + // Define patient information and clinical documents + const patientInfo = { + sex: "FEMALE", + birthDate: new Date("1979-10-08T00:00:00.000Z"), // Note: Months are zero-based (11 represents December) + }; + + const doc1 = `15.8.2021 +Jane Doe 091175-8967 +42 year old female, married with 3 children, works as a nurse. +Healthy, no medications taken on a regular basis. +PMHx is significant for migraines with aura, uses Mirena for contraception. +Smoking history of 10 pack years (has stopped and relapsed several times). +She is in c/o 2 weeks of productive cough and shortness of breath. +She has a fever of 37.8 and general weakness. +Denies night sweats and rash. She denies symptoms of rhinosinusitis, asthma, and heartburn. +On PE: +GENERAL: mild pallor, no cyanosis. Regular breathing rate. +LUNGS: decreased breath sounds on the base of the right lung. Vesicular breathing. +No crackles, rales, and wheezes. Resonant percussion. +PLAN: +Will be referred for a chest x-ray. +====================================== +CXR showed mild nonspecific opacities in right lung base. +PLAN: +Findings are suggestive of a working diagnosis of pneumonia. The patient is referred to a +follow-up CXR in 2 weeks.`; + + const docContent = { + sourceType: "INLINE", + value: doc1, + }; + + const patientDoc1 = { + type: "NOTE", + id: "doc1", + content: docContent, + clinicalType: "IMAGING", + language: "en", + createdDateTime: new Date("2021-08-15T00:00:00.000Z"), + }; + + // Define patientDoc2 and patientDoc3 similarly + const doc2 = `Oncology Clinic +20.10.2021 +Jane Doe 091175-8967 +42-year-old healthy female who works as a nurse in the ER of this hospital. +First menstruation at 11 years old. First delivery- 27 years old. She has 3 children. +Didn’t breastfeed. +Contraception- Mirena. +Smoking- 10 pack years. +Mother- Belarusian. Father- Georgian. +About 3 months prior to admission, she stated she had SOB and was febrile. +She did a CXR as an outpatient which showed a finding in the base of the right lung- +possibly an infiltrate. +She was treated with antibiotics with partial response. +6 weeks later a repeat CXR was performed- a few solid dense findings in the right lung. +Therefore, she was referred for a PET-CT which demonstrated increased uptake in the right +breast, lymph nodes on the right a few areas in the lungs and liver. +On biopsy from the lesion in the right breast- triple negative adenocarcinoma. Genetic +testing has not been done thus far. +Genetic counseling- the patient denies a family history of breast, ovary, uterus, +and prostate cancer. Her mother has chronic lymphocytic leukemia (CLL). +She is planned to undergo genetic tests because the aggressive course of the disease, +and her young age. +Impression: +Stage 4 triple negative breast adenocarcinoma. +Could benefit from biological therapy. +Different treatment options were explained- the patient wants to get a second opinion.`; + + const docContent2 = { + sourceType: "INLINE", + value: doc2, + }; + + const patientDoc2 = { + type: "NOTE", + id: "doc2", + content: docContent2, + clinicalType: "PATHOLOGY", + language: "en", + createdDateTime: new Date("2021-10-20T00:00:00.000Z"), + }; + + const doc3 = `PATHOLOGY REPORT Clinical Information Ultrasound-guided biopsy; A. 18 mm mass; most likely diagnosis based on imaging: IDC Diagnosis @@ -158,55 +158,54 @@ function createRequestBody(): CreateJobParameters { Blocks with invasive carcinoma: A1 Special studies: Pending`; - const docContent3 = { - sourceType: "INLINE", - value: doc3 - }; - - const patientDoc3 = { - type: "NOTE", - id: "doc3", - content: docContent3, - clinicalType: "PATHOLOGY", - language: "en", - createdDateTime: new Date("2022-01-01T00:00:00.000Z") - }; - - const patient1 = { - id: "patient_id", - info: patientInfo, - data: [patientDoc1, patientDoc2, patientDoc3] - }; - - const cancerProfilingData: OncoPhenotypeData = { - patients: [patient1], - configuration: {includeEvidence: true} - }; - - return { - body: cancerProfilingData - }; - + const docContent3 = { + sourceType: "INLINE", + value: doc3, + }; + + const patientDoc3 = { + type: "NOTE", + id: "doc3", + content: docContent3, + clinicalType: "PATHOLOGY", + language: "en", + createdDateTime: new Date("2022-01-01T00:00:00.000Z"), + }; + + const patient1 = { + id: "patient_id", + info: patientInfo, + data: [patientDoc1, patientDoc2, patientDoc3], + }; + + const cancerProfilingData: OncoPhenotypeData = { + patients: [patient1], + configuration: { includeEvidence: true }, + }; + + return { + body: cancerProfilingData, + }; } -export async function main() { - const credential = new AzureKeyCredential(apiKey); - const client = CancerProfilingRestClient(endpoint, credential); - // Create body request for cancer profiling - const parameters = createRequestBody(); - // Initiate cancer profiling job and retrieve results - const initialResponse = await client.path("/oncophenotype/jobs").post(parameters); - if (isUnexpected(initialResponse)) { - throw initialResponse; - } - const poller = await getLongRunningPoller(client, initialResponse); - const cancerProfilingResult = await poller.pollUntilDone(); - if (isUnexpected(cancerProfilingResult)) { - throw cancerProfilingResult; - } - const resultBody = cancerProfilingResult.body; - printResults(resultBody); +export async function main(): Promise { + const credential = new AzureKeyCredential(apiKey); + const client = CancerProfilingRestClient(endpoint, credential); + // Create body request for cancer profiling + const parameters = createRequestBody(); + // Initiate cancer profiling job and retrieve results + const initialResponse = await client.path("/oncophenotype/jobs").post(parameters); + if (isUnexpected(initialResponse)) { + throw initialResponse; + } + const poller = await getLongRunningPoller(client, initialResponse); + const cancerProfilingResult = await poller.pollUntilDone(); + if (isUnexpected(cancerProfilingResult)) { + throw cancerProfilingResult; + } + const resultBody = cancerProfilingResult.body; + printResults(resultBody); } main().catch((err) => { console.error("The sample encountered an error:", err); -}); \ No newline at end of file +}); diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/cancerProfilingRest.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/cancerProfilingRest.ts index 951ed8cd9e12..731a7a245fda 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/cancerProfilingRest.ts +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/cancerProfilingRest.ts @@ -3,9 +3,9 @@ import type { ClientOptions } from "@azure-rest/core-client"; import { getClient } from "@azure-rest/core-client"; -import { logger } from "./logger"; +import { logger } from "./logger.js"; import type { KeyCredential } from "@azure/core-auth"; -import type { CancerProfilingRestClient } from "./clientDefinitions"; +import type { CancerProfilingRestClient } from "./clientDefinitions.js"; /** * Initialize a new instance of `CancerProfilingRestClient` diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/clientDefinitions.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/clientDefinitions.ts index c813411be6cf..cf46c1a21e4c 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/clientDefinitions.ts +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/clientDefinitions.ts @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { GetJobParameters, CreateJobParameters } from "./parameters"; +import type { GetJobParameters, CreateJobParameters } from "./parameters.js"; import type { GetJob200Response, GetJobDefaultResponse, CreateJob200Response, CreateJob202Response, CreateJobDefaultResponse, -} from "./responses"; +} from "./responses.js"; import type { Client, StreamableMethod } from "@azure-rest/core-client"; export interface GetJob { diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/index.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/index.ts index 1daec9044257..df693c82310c 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/index.ts +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/index.ts @@ -1,15 +1,16 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import CancerProfilingRest from "./cancerProfilingRest"; +import CancerProfilingRest from "./cancerProfilingRest.js"; -export * from "./cancerProfilingRest"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./pollingHelper"; +export * from "./cancerProfilingRest.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./pollingHelper.js"; +// eslint-disable-next-line @azure/azure-sdk/ts-modules-only-named export default CancerProfilingRest; diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/isUnexpected.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/isUnexpected.ts index 64869331e1b8..0a002e342f15 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/isUnexpected.ts +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/isUnexpected.ts @@ -8,7 +8,7 @@ import type { CreateJob202Response, CreateJobLogicalResponse, CreateJobDefaultResponse, -} from "./responses"; +} from "./responses.js"; const responseMap: Record = { "GET /oncophenotype/jobs/{jobId}": ["200"], diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/parameters.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/parameters.ts index 74b04772b496..22ca1566c83a 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/parameters.ts +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/parameters.ts @@ -3,7 +3,7 @@ import type { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; import type { RequestParameters } from "@azure-rest/core-client"; -import type { OncoPhenotypeData } from "./models"; +import type { OncoPhenotypeData } from "./models.js"; export type GetJobParameters = RequestParameters; diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/pollingHelper.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/pollingHelper.ts index b7d10988d757..dd67caa4766c 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/pollingHelper.ts +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/pollingHelper.ts @@ -15,7 +15,7 @@ import type { CreateJob202Response, CreateJobDefaultResponse, CreateJobLogicalResponse, -} from "./responses"; +} from "./responses.js"; /** * Helper function that builds a Poller object to help polling a long running operation. * @param client - Client to use for sending the request to get additional pages. diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/responses.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/responses.ts index 2b9a4ac93604..d57d1da01d88 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/src/responses.ts +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/src/responses.ts @@ -3,7 +3,7 @@ import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; import type { HttpResponse, ErrorResponse } from "@azure-rest/core-client"; -import type { OncoPhenotypeResultOutput } from "./outputModels"; +import type { OncoPhenotypeResultOutput } from "./outputModels.js"; /** The request has succeeded. */ export interface GetJob200Response extends HttpResponse { diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/test/public/cancerprofiling.spec.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/test/public/cancerprofiling.spec.ts index 78dda0506f1b..fbd856b4d48c 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/test/public/cancerprofiling.spec.ts +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/test/public/cancerprofiling.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { CancerProfilingRestClient } from "../../src"; -import { getLongRunningPoller } from "../../src"; -import { createClient, createRecorder } from "./utils/recordedClient"; +import type { CancerProfilingRestClient } from "../../src/index.js"; +import { getLongRunningPoller } from "../../src/index.js"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const patientInfo = { sex: "FEMALE", @@ -110,12 +109,12 @@ describe("My test", () => { let recorder: Recorder; let client: CancerProfilingRestClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/test/public/utils/env.browser.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/test/public/utils/env-browser.mts similarity index 100% rename from sdk/healthinsights/health-insights-cancerprofiling-rest/test/public/utils/env.browser.ts rename to sdk/healthinsights/health-insights-cancerprofiling-rest/test/public/utils/env-browser.mts diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/test/public/utils/recordedClient.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/test/public/utils/recordedClient.ts index 35e92c644919..5bb5168c3b8e 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/test/public/utils/recordedClient.ts +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/test/public/utils/recordedClient.ts @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { assertEnvironmentVariable, Recorder } from "@azure-tools/test-recorder"; import { AzureKeyCredential } from "@azure/core-auth"; -import type { Context } from "mocha"; -import type { CancerProfilingRestClient } from "../../../src"; -import CancerProfiling from "../../../src"; -import "./env"; +import type { CancerProfilingRestClient } from "../../../src/index.js"; +import CancerProfiling from "../../../src/index.js"; +import "./env.js"; const envSetupForPlayback: Record = { HEALTH_INSIGHTS_ENDPOINT: "https://sanitized/", @@ -31,8 +30,8 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); +export async function createRecorder(context: TestInfo): Promise { + const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; } diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/tsconfig.browser.config.json b/sdk/healthinsights/health-insights-cancerprofiling-rest/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/tsconfig.json b/sdk/healthinsights/health-insights-cancerprofiling-rest/tsconfig.json index 9104e0706670..9535ad5d272a 100644 --- a/sdk/healthinsights/health-insights-cancerprofiling-rest/tsconfig.json +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/tsconfig.json @@ -1,9 +1,20 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", - "paths": { "@azure-rest/health-insights-cancerprofiling": ["./src/index"] } + "paths": { + "@azure-rest/health-insights-cancerprofiling": ["./src/index"] + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/vitest.browser.config.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/healthinsights/health-insights-cancerprofiling-rest/vitest.config.ts b/sdk/healthinsights/health-insights-cancerprofiling-rest/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/healthinsights/health-insights-cancerprofiling-rest/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/api-extractor.json b/sdk/healthinsights/health-insights-clinicalmatching-rest/api-extractor.json index 38f19b1f4f5f..ca259f2be5b1 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/api-extractor.json +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "mainEntryPointFilePath": "dist/esm/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/health-insights-clinicalmatching-rest.d.ts" + "publicTrimmedFilePath": "dist/health-insights-clinicalmatching-rest.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } } diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/karma.conf.js b/sdk/healthinsights/health-insights-clinicalmatching-rest/karma.conf.js deleted file mode 100644 index 1db6874bed55..000000000000 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/karma.conf.js +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: [ - "TEST_MODE", - "HEALTH_INSIGHTS_ENDPOINT", - "HEALTH_INSIGHTS_KEY", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/package.json b/sdk/healthinsights/health-insights-clinicalmatching-rest/package.json index 35d99bc28f1e..38f7956f504b 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/package.json +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/package.json @@ -13,31 +13,28 @@ "isomorphic" ], "license": "MIT", - "main": "dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/health-insights-clinicalmatching-rest.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/", - "dist-esm/src/", - "types/health-indights-clinicalmatching.d.ts", "README.md", - "LICENSE", - "review/*" + "LICENSE" ], "engines": { "node": ">=18.0.0" }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run bundle --browser-test false", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api", + "build:node": "dev-tool run build-package && dev-tool run bundle --browser-test false", "build:samples": "echo skipped.", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", @@ -45,8 +42,8 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "generate:client": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -54,49 +51,37 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.1.3", - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-lro": "^2.5.3", - "@azure/core-rest-pipeline": "^1.8.0", - "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "@azure-rest/core-client": "^2.3.1", + "@azure/abort-controller": "^2.1.2", + "@azure/core-auth": "^1.9.0", + "@azure/core-lro": "^2.7.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "autorest": "latest", - "chai": "^4.2.0", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.49.0", + "typescript": "~5.6.2", + "vitest": "^2.1.5" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-clinicalmatching-rest/README.md", "//metadata": { @@ -107,9 +92,7 @@ } ] }, - "browser": { - "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" - }, + "browser": "./dist/browser/index.js", "//sampleConfiguration": { "productName": "HealthInsightsClinicalmatching", "productSlugs": [ @@ -117,5 +100,42 @@ ], "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api" + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/samples-dev/sample_match_trials_fhir.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/samples-dev/sample_match_trials_fhir.ts index 27f1ecf2156f..5652ef23a9ff 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/samples-dev/sample_match_trials_fhir.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/samples-dev/sample_match_trials_fhir.ts @@ -7,18 +7,11 @@ * @summary detects change points. */ -import {AzureKeyCredential} from "@azure/core-auth"; - -import * as dotenv from "dotenv"; -import * as fs from 'fs'; -import ClinicalMatchingRestClient, { - CreateJobParameters, - getLongRunningPoller, - isUnexpected, - TrialMatcherResultOutput -} from "../src"; - -dotenv.config(); +import { AzureKeyCredential } from "@azure/core-auth"; +import { readFileSync } from "node:fs"; +import type { CreateJobParameters, TrialMatcherResultOutput } from "../src/index.js"; +import ClinicalMatchingRestClient, { getLongRunningPoller, isUnexpected } from "../src/index.js"; +import "dotenv/config"; // You will need to set this environment variables or edit the following values const apiKey = process.env["HEALTH_INSIGHTS_API_KEY"] || ""; @@ -26,33 +19,32 @@ const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; // Get patient data in fhir format function getPatientDocContent(): string { - const content = fs.readFileSync("./example-data/match_trial_fhir_data.txt").toString(); + const content = readFileSync("./example-data/match_trial_fhir_data.txt").toString(); return content; } // Print the inference results for a patient's cancer attributes function printResults(trialMatcherResult: TrialMatcherResultOutput): void { - if (trialMatcherResult.status === "succeeded") { - const results = trialMatcherResult.results; - if (results != undefined) { - const patients = results.patients; - for (const patientResult of patients) { - console.log(`Inferences of Patient ${patientResult.id}`); - for (const tmInferences of patientResult.inferences) { - console.log(`Trial Id ${tmInferences.id}`); - console.log(`Type: ${String(tmInferences.type)} Value: ${tmInferences.value}`); - console.log(`Description ${tmInferences.description}`); - } + if (trialMatcherResult.status === "succeeded") { + const results = trialMatcherResult.results; + if (results) { + const patients = results.patients; + for (const patientResult of patients) { + console.log(`Inferences of Patient ${patientResult.id}`); + for (const tmInferences of patientResult.inferences) { + console.log(`Trial Id ${tmInferences.id}`); + console.log(`Type: ${String(tmInferences.type)} Value: ${tmInferences.value}`); + console.log(`Description ${tmInferences.description}`); } } } - else { - const errors = trialMatcherResult.errors; - if (errors) { - for (const error of errors) { - console.log(error.code, ":", error.message); - } + } else { + const errors = trialMatcherResult.errors; + if (errors) { + for (const error of errors) { + console.log(error.code, ":", error.message); } + } } } @@ -89,7 +81,7 @@ function createRequestBody(): CreateJobParameters { code: "C1300072", name: "Tumor stage", value: "2", - } + }, ]; const patientInfo = { @@ -98,32 +90,36 @@ function createRequestBody(): CreateJobParameters { clinicalInfo: clinicalInfoList, }; - const docContent = {sourceType: "INLINE", value: getPatientDocContent()}; + const docContent = { sourceType: "INLINE", value: getPatientDocContent() }; const patientDataList = { - type: "fhirBundle", - id: "Consultation-14-Demo", - content: docContent, - clinicalType: "CONSULTATION" + type: "fhirBundle", + id: "Consultation-14-Demo", + content: docContent, + clinicalType: "CONSULTATION", }; const patient1 = { id: "patient_id", info: patientInfo, - data: [patientDataList] + data: [patientDataList], }; - const geographicLocation = { countryOrRegion: "United States", city: "Gilbert", state: "Arizona" }; + const geographicLocation = { + countryOrRegion: "United States", + city: "Gilbert", + state: "Arizona", + }; const registryFilters = { conditions: ["Non-small cell lung cancer"], phases: ["PHASE1"], sources: ["CLINICALTRIALS_GOV"], - facilityLocations: [ geographicLocation ], - studyTypes: ["INTERVENTIONAL"] + facilityLocations: [geographicLocation], + studyTypes: ["INTERVENTIONAL"], }; - const clinicalTrials = ({ - registryFilters: [registryFilters] - }); + const clinicalTrials = { + registryFilters: [registryFilters], + }; const configuration = { clinicalTrials: clinicalTrials, @@ -135,16 +131,16 @@ function createRequestBody(): CreateJobParameters { }; return { - body: trialMatcherData + body: trialMatcherData, }; } -export async function main() { +export async function main(): Promise { const credential = new AzureKeyCredential(apiKey); const client = ClinicalMatchingRestClient(endpoint, credential); // Create request body for clinical matching - const trialMatcherParameter = createRequestBody() + const trialMatcherParameter = createRequestBody(); // Initiate clinical matching job and retrieve results const initialResponse = await client.path("/trialmatcher/jobs").post(trialMatcherParameter); if (isUnexpected(initialResponse)) { @@ -161,4 +157,4 @@ export async function main() { main().catch((err) => { console.error("The sample encountered an error:", err); -}); \ No newline at end of file +}); diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/samples-dev/sample_match_trials_structured_coded_elements.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/samples-dev/sample_match_trials_structured_coded_elements.ts index 7bf6ef18b9f7..f08558c6ce85 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/samples-dev/sample_match_trials_structured_coded_elements.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/samples-dev/sample_match_trials_structured_coded_elements.ts @@ -7,17 +7,10 @@ * @summary detects change points. */ -import {AzureKeyCredential} from "@azure/core-auth"; - -import * as dotenv from "dotenv"; -import ClinicalMatchingRestClient, { - CreateJobParameters, - getLongRunningPoller, - isUnexpected, - TrialMatcherResultOutput -} from "../src"; - -dotenv.config(); +import { AzureKeyCredential } from "@azure/core-auth"; +import type { CreateJobParameters, TrialMatcherResultOutput } from "../src/index.js"; +import ClinicalMatchingRestClient, { getLongRunningPoller, isUnexpected } from "../src/index.js"; +import "dotenv/config"; // You will need to set this environment variables or edit the following values const apiKey = process.env["HEALTH_INSIGHTS_API_KEY"] || ""; @@ -25,27 +18,26 @@ const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; // Print the inference results for a patient's cancer attributes function printResults(trialMatcherResult: TrialMatcherResultOutput): void { - if (trialMatcherResult.status === "succeeded") { - const results = trialMatcherResult.results; - if (results != undefined) { - const patients = results.patients; - for (const patientResult of patients) { - console.log(`Inferences of Patient ${patientResult.id}`); - for (const tmInferences of patientResult.inferences) { - console.log(`Trial Id ${tmInferences.id}`); - console.log(`Type: ${String(tmInferences.type)} Value: ${tmInferences.value}`); - console.log(`Description ${tmInferences.description}`); - } + if (trialMatcherResult.status === "succeeded") { + const results = trialMatcherResult.results; + if (results) { + const patients = results.patients; + for (const patientResult of patients) { + console.log(`Inferences of Patient ${patientResult.id}`); + for (const tmInferences of patientResult.inferences) { + console.log(`Trial Id ${tmInferences.id}`); + console.log(`Type: ${String(tmInferences.type)} Value: ${tmInferences.value}`); + console.log(`Description ${tmInferences.description}`); } } } - else { - const errors = trialMatcherResult.errors; - if (errors) { - for (const error of errors) { - console.log(error.code, ":", error.message); - } + } else { + const errors = trialMatcherResult.errors; + if (errors) { + for (const error of errors) { + console.log(error.code, ":", error.message); } + } } } @@ -126,18 +118,22 @@ function createRequestBody(): CreateJobParameters { info: patientInfo, }; - const geographicLocation = { countryOrRegion: "United States", city: "Gilbert", state: "Arizona" }; + const geographicLocation = { + countryOrRegion: "United States", + city: "Gilbert", + state: "Arizona", + }; const registryFilters = { conditions: ["Non-small cell lung cancer"], phases: ["PHASE1"], sources: ["CLINICALTRIALS_GOV"], - facilityLocations: [ geographicLocation ], - studyTypes: ["INTERVENTIONAL"] + facilityLocations: [geographicLocation], + studyTypes: ["INTERVENTIONAL"], }; - const clinicalTrials = ({ - registryFilters: [registryFilters] - }); + const clinicalTrials = { + registryFilters: [registryFilters], + }; const configuration = { clinicalTrials: clinicalTrials, @@ -149,16 +145,16 @@ function createRequestBody(): CreateJobParameters { }; return { - body: trialMatcherData + body: trialMatcherData, }; } -export async function main() { +export async function main(): Promise { const credential = new AzureKeyCredential(apiKey); const client = ClinicalMatchingRestClient(endpoint, credential); // Create request body for clinical matching - const trialMatcherParameter = createRequestBody() + const trialMatcherParameter = createRequestBody(); // Initiate clinical matching job and retrieve results const initialResponse = await client.path("/trialmatcher/jobs").post(trialMatcherParameter); if (isUnexpected(initialResponse)) { diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/samples-dev/sample_match_trials_unstructured_clinical_note.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/samples-dev/sample_match_trials_unstructured_clinical_note.ts index d00d98026e3c..52c096e771a0 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/samples-dev/sample_match_trials_unstructured_clinical_note.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/samples-dev/sample_match_trials_unstructured_clinical_note.ts @@ -8,16 +8,10 @@ * @summary detects change points. */ -import * as dotenv from "dotenv"; -import ClinicalMatchingRestClient, { - CreateJobParameters, - getLongRunningPoller, - isUnexpected, - TrialMatcherResultOutput -} from "../src"; -import {AzureKeyCredential} from "@azure/core-auth"; - -dotenv.config(); +import type { CreateJobParameters, TrialMatcherResultOutput } from "../src/index.js"; +import ClinicalMatchingRestClient, { getLongRunningPoller, isUnexpected } from "../src/index.js"; +import { AzureKeyCredential } from "@azure/core-auth"; +import "dotenv/config"; // You will need to set this environment variables or edit the following values const apiKey = process.env["HEALTH_INSIGHTS_API_KEY"] || ""; @@ -25,171 +19,171 @@ const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; // Print the inference results for a patient's cancer attributes function printResults(trialMatcherResult: TrialMatcherResultOutput): void { - if (trialMatcherResult.status === "succeeded") { - const results = trialMatcherResult.results; - if (results != undefined) { - const patients = results.patients; - for (const patientResult of patients) { - console.log(`Inferences of Patient ${patientResult.id}`); - for (const tmInferences of patientResult.inferences) { - console.log(`Trial Id ${tmInferences.id}`); - console.log(`Type: ${String(tmInferences.type)} Value: ${tmInferences.value}`); - console.log(`Description ${tmInferences.description}`); - } - } + if (trialMatcherResult.status === "succeeded") { + const results = trialMatcherResult.results; + if (results) { + const patients = results.patients; + for (const patientResult of patients) { + console.log(`Inferences of Patient ${patientResult.id}`); + for (const tmInferences of patientResult.inferences) { + console.log(`Trial Id ${tmInferences.id}`); + console.log(`Type: ${String(tmInferences.type)} Value: ${tmInferences.value}`); + console.log(`Description ${tmInferences.description}`); } + } } - else { - const errors = trialMatcherResult.errors; - if (errors) { - for (const error of errors) { - console.log(error.code, ":", error.message); - } + } else { + const errors = trialMatcherResult.errors; + if (errors) { + for (const error of errors) { + console.log(error.code, ":", error.message); } + } } } function getPatientDocContent(): string { - let content = "TITLE: Cardiology Consult\r\n DIVISION OF CARDIOLOGY\r\n " - " COMPREHENSIVE CONSULTATION NOTE\r\nCHIEF " - "COMPLAINT: Patient is seen in consultation today at the\r\nrequest of Dr. [**Last Name (STitle) " - "13959**]. We are asked to give consultative advice\r\nregarding evaluation and management of Acute " - "CHF.\r\nHISTORY OF PRESENT ILLNESS:\r\n71 year old man with CAD w/ diastolic dysfunction, CKD, " - "Renal\r\nCell CA s/p left nephrectomy, CLL, known lung masses and recent\r\nbrochial artery bleed, " - "s/p embolization of LLL bronchial artery\r\n[**1-17**], readmitted with hemoptysis on [" - "**2120-2-3**] from [**Hospital 328**] [**Hospital 9250**]\r\ntransferred from BMT floor following " - "second episode of hypoxic\r\nrespiratory failure, HTN and tachycardia in 3 days. Per report," - "\r\non the evening of transfer to the [**Hospital Unit Name 1**], patient continued to\r\nremain " - "tachypnic in upper 30s and was receiving IVF NS at\r\n100cc/hr for concern of hypovolemic " - "hypernatremia. He also had\r\nreceived 1unit PRBCs with temp rise for 98.3 to 100.4, " - "he was\r\ncultured at that time, and transfusion rxn work up was initiated.\r\nAt around 5:30am, " - "he was found to be newly hypertensive with SBP\r\n>200 with a regular tachycardia to 160 with new " - "hypoxia requiring\r\nshovel mask. He received 1mg IV ativan, 1mg morphine, lasix 40mg\r\nIV x1, " - "and lopressor 5mg IV. ABG 7.20/63/61 on shovel mask. He\r\nwas transferred to the ICU for further " - "care. On arrival to the\r\n[**Hospital Unit Name 1**], he received 5mg IV Dilt and was found to be " - "febrile to\r\n101.3. Blood and urine cultures were draw. He was placed on BIPAP\r\n12/5 with " - "improvement in his respiratory rate and sats. Repeat\r\nABG 7.43/34/130.\r\nOvernight, " - "he continued to be tachycardic, with stable O2 sats.\r\nHe was treated for agitation with haldol, " - "as well as IV beta\r\nblockers, with some improvement in his heart rate to the 80s at\r\nrest. He " - "has and continues to deny symptoms of chest pain. When\r\nassessed, he grunted responses to " - "questions, and was non-verbal.\r\nOn cardiac review of symptoms, no chest pain or other " - "discomfort.\r\nFurther questions limited by mental status.\r\nPAST MEDICAL HISTORY:\r\nCLL x 20 " - "yrs\r\n-s/p fludarabine and Cytoxan ([**7-14**]) with good response\r\n-auto-immune hemolytic " - "anemia on chronic steroids\r\n-mediastinal lymphadenopathy\r\n-h/o bilat pleural effusions with + " - "cytology ([**6-13**])\r\nRCC s/p Left nephrectomy [**2106**]\r\nCKD: prior baseline CR 1.5, " - "most recently 1.1-1.2\r\nBPH vs Prostate cancer\r\n- h/o multiple prostate biopsies with only 1 " - "c/w adenocarcinoma\r\n([**Doctor Last Name 2470**] 3+3)\r\nGERD\r\nType II DM: -recently started " - "insulin\r\nR-sided Exotropia\r\nGallstone pancreatitis [**12-10**]; s/p lap " - "chole\r\nHyperlipidemia\r\nCAD s/p cath [**4-13**] with diffuse 2 vessel dz\r\n- 70% RCA/PDA, " - "60%prox/mid LAD)\r\nHypogammaglobumenia, recurrent URI/PNA, on IVIG X 2years, good\r\nresponse (" - "last dose [**2118-11-11**])\r\nAllergic rhinitis\r\nGilberts disease\r\nHypotesteronemia\r\nR " - "humeral fracture ([**12-16**])\r\nEnlarged spleen secondary to CLL vs portal " - "hypertension.\r\nCardiac Risk Factors include diabetes, dyslipidemia,\r\nhypertension, and family " - "history of CAD.\r\nHOME MEDICATIONS:\r\nAlbuterol 90 mcg 2 puffs PRN\r\nAllopurinol 100mg PO " - "Daily\r\nFolic Acid 2mg PO Daily\r\nInsulin Lispro Protam & Lispro As Directed\r\nMetoprolol " - "Succinate 25mg PO BID\r\nNitroglycerin [NitroQuick] 0.3mg SL PRN\r\nPrednisone 2mg PO " - "daily\r\nRosuvastatin 5mg PO daily\r\nDocusate Sodium [Colace] 100mg PO BID\r\nSenna 8.6 PO BID " - "PRN\r\nCURRENT MEDICATIONS:\r\nAluminum-Magnesium Hydrox.-Simethicone 15-30 mL PO/NG " - "QID:PRN\r\ndyspepsia\r\nAllopurinol 100 mg PO/NG DAILY\r\nAlbuterol 0.083% Neb Soln 1 NEB IH " - "Q6H:PRN\r\nBisacodyl 10 mg PO/PR DAILY:PRN constipation\r\nCaphosol 30 mL ORAL QID:PRN dry " - "mouth\r\nDextrose 50% 12.5 gm IV PRN hypoglycemia\r\nDocusate Sodium 100 mg PO BID\r\nFamotidine " - "20 mg IV Q24H\r\nGlucagon 1 mg IM Q15MIN:PRN\r\nGuaifenesin-Dextromethorphan 10 mL PO/NG Q6H:PRN " - "cough\r\nInsulin SC SS\r\nIpratropium Bromide Neb 1 NEB IH Q6H:PRN\r\nMagnesium Sulfate " - "Replacement (Oncology) IV Sliding Scale\r\nMetoprolol Tartrate 5 mg IV " - "Q6H\r\nPiperacillin-Tazobactam 2.25 g IV Q6H\r\nPotassium Chloride Replacement (Oncology) IV " - "Sliding\r\nHydrocortisone Na Succ. 20 mg IV Q24H\r\nSenna 1 TAB PO/NG [**Hospital1 7**]:PRN " - "constipation\r\nVancomycin 1000 mg IV\r\nMetoprolol Tartrate 10 mg IV Q6H\r\nDiltiazem 5 mg IV " - "ONCE\r\nMetoprolol Tartrate 5 mg IV ONCE\r\nFurosemide 40 mg IV " - "ONCE\r\nALLERGIES:\r\nNKDA\r\nSOCIAL HISTORY:\r\nMarried, lives with wife [**Name (NI) **] in [" - "**Location (un) 12995**]. Has long history\r\nof CLL since [**2096**]. Is a rabbi working in " - "academics with 30 year\r\nhistory prior to that of congregation work in [**State 1698**]. " - "They\r\nhave two adult children in [**Location (un) 3063**] and LA and three\r\ngrandchildren. " - "Life-time nonsmoker, rare EtOH, no illicit drug\r\nuse.\r\nFAMILY HISTORY:\r\nFather w/ [**Name2 (" - "NI) 118**] cancer and coronary artery disease. Multiple\r\nrelatives with DM.\r\nREVIEW OF " - "SYSTEMS: ALL OTHER SYSTEMS NEGATIVE EXCEPT AS NOTED\r\nABOVE\r\nPHYSICAL EXAMINATION\r\nVitals: " - "T: 97.8 degrees Farenheit (max 101.3), BP: 128/73 mmHg\r\nsupine, HR 97 bpm, RR 35 bpm, " - "O2: 94 % on 0.4 aerosol mask.\r\nCONSTITUTIONAL: No acute distress.\r\nEYES: No conjunctival " - "pallor. No icterus.\r\nENT/Mouth: MMM. OP clear.\r\nTHYROID: No thyromegaly or thyroid " - "nodules.\r\nCV: Nondisplaced PMI. Tachycardic. Regular rhythm. nl S1, S2. No\r\nextra heart " - "sounds. No appreciable murmurs. No JVD. Normal\r\ncarotid upstroke without bruits.\r\nLUNGS: " - "Breath sounds bilaterally. No crackles, wheezes or rhonchi\r\nappreciated.\r\nGI: NABS. Soft, NT, " - "ND. No HSM. No abdominal bruits.\r\nMUSCULO: Supple neck. Normal muscle tone. Full strength " - "grossly.\r\nHEME/LYMPH: No palpable LAD. No peripheral edema. Full distal\r\npulses " - "bilaterally.\r\nSKIN: Warm extremities. No rashes/lesions, ecchymoses.\r\nNEURO: Limited responses " - "to questions. [**Name8 (MD) 54**] RN, the patient tends\r\nto wax and wane throughout the day; at " - "times answering questions\r\nand conversing, at other times being more confused. Other " - "exam\r\ngrossly normal without any significant focal deficits\r\nPSYCH: Mood and affect were " - "appropriate.\r\nTELEMETRY: Sinus tachycardia at 101. Runs of sinus tachycardia\r\nto 120s, " - "with brief episodes of atrial tach vs AF.\r\nECG ([**2120-2-15**]): Sinus tach @ 124. Normal " - "Axis/intervals.\r\nDiffuse nonspecific TW flattening with inferolateral T wave\r\ninversions, " - "not appreciably worse, and probably better than\r\nprior. No ECG tracing available more proximal " - "to this admission\r\nto ICU.\r\nTRANSTHORACIC ECHOCARDIOGRAM ([**2120-1-15**]):\r\nThe left atrium " - "is elongated. No atrial septal defect is seen by\r\n2D or color Doppler. Left ventricular wall " - "thicknesses and cavity\r\nsize are normal. There is probably mild regional left " - "ventricular\r\nsystolic dysfunction with distal lateral/apical lateral\r\nhypokinesis . There is " - "no ventricular septal defect. Right\r\nventricular chamber size and free wall motion are normal. " - "The\r\naortic root is mildly dilated at the sinus level. The aortic\r\nvalve leaflets (3) are " - "mildly thickened but aortic stenosis is\r\nnot present. No aortic regurgitation is seen. The " - "mitral valve\r\nleaflets are mildly thickened. There is no mitral valve prolapse.\r\nTrivial " - "mitral regurgitation is seen. The estimated pulmonary\r\nartery systolic pressure is normal. There " - "is no pericardial\r\neffusion. Compared with the prior study (images reviewed) of\r\n[" - "**2119-1-11**], mild regional LV systolic dysfunction is new.\r\nETT ([**2114-11-13**]):\r\nThe " - "patient\r\nexercised for 9.5 minutes of [**Initials (NamePattern4) **] [**Last Name (NamePattern4) " - "84**] protocol and was stopped at\r\nrequest for fatigue. This represents an average " - "functional\r\ncapacity.\r\nThere were no chest, neck, back, or arm discomforts reported " - "by\r\npatient throughout the procedure. There were no significant ST\r\nsegment\r\nchanges at peak " - "exercise or during recovery. The rhythm was sinus\r\nwith\r\nrare APBs and VPBs. The hemodynamic " - "response to exercise was\r\nappropriate.\r\nIMPRESSION: No anginal symptoms or ischemic EKG " - "changes at the\r\nachieved\r\nworkload. Nuclear report sent separately. Compared to ETT " - "report\r\n[**2113-11-29**], there are now no EKG changes noted and the " - "exercise\r\ntolerance\r\nhas increased by one minute.\r\nMIBI: 1) Again noted is mild, reversible " - "basilar inferior wall\r\nperfusion\r\ndefect in the face of soft tissue attenuation from the " - "diaphragm.\r\n2) Normal\r\nleft ventricular cavity size and function.\r\nCath: [**4-13**]:\r\n1. " - "Coronary angiography in this right-dominant system revealed:\r\n--the LMCA had no angiographically " - "apparent disease.\r\n--the LAD had diffuse proximal-mid 60% stenosis\r\n--the LCX had minimal " - "disease\r\n--the RCA was a small vessel with a distal 70% lesion going into\r\nthe RPDA\r\n2. " - "Limited resting hemodynamics revealed elevated left-sided\r\nfilling pressures, with LVEDP 18 " - "mmHg. There was high-normal\r\nsystemic arterial systolic pressures, with SBP 134 mmHg. " - "There\r\nwas no significant gradient upon pullback of the angled pigtail\r\ncatheter from LV to " - "ascending aorta.\r\nOTHER TESTING:\r\nCXR: Worsening fluid status versus prior. Followup needed to " - "see\r\nairspace processes track with CHF or are independent and in the\r\nlatter\r\nsituation " - "could represent pneumonia.\r\nLABORATORY DATA: Reviewed in OMR\r\nASSESSMENT AND PLAN:\r\n71 year " - "old man with complicated medical history including CAD w/\r\ndiastolic dysfunction, CKD, " - "Renal Cell CA s/p left nephrectomy,\r\nCLL, known lung masses and recent brochial artery bleed, " - "who has\r\nhad a complicated hospital course including s/p embolization of\r\nLLL bronchial artery " - "[**1-17**], readmitted with hemoptysis on [**2120-2-3**]\r\nfrom [**Hospital 328**] Rehab, " - "and is now transferred from BMT floor for a\r\nsecond episode of hypoxic respiratory failure, " - "HTN and\r\ntachycardia in 3 days. Although details with regard to the\r\ninitiating event last " - "night are limited by difficulty with\r\nobtaining a history, review of his relevant data indicates " - "that\r\nventilatory failure as indicated by his elevated PCO2 appears to\r\nhave played a " - "significant role. He clearly has a history of\r\nobstructive coronary artery disease, and likely " - "had some element\r\nof diastolic dysfunction in the setting of his " - "acute\r\ntachycardia/hypoxia/hypertensive episode yesterday, although\r\nthere is no obvious " - "indication that his CAD was a primary cause\r\nof these events based on the history (an ECG from " - "the peri-event\r\nwould be helpful, but non-specific). According to his RN, he has\r\nnot had " - "excess secretions today, although he has a new fever and\r\nWBC, which indicates that he could " - "have had some mucous plugging\r\nin the setting of a new PNA, which is currently being " - "treated\r\nwith antibiotics. Otherwise, would not diurese him any further\r\nas he looks quite " - "dry by exam and labs. Would try gentle\r\nhydration, and monitor his volume status closely. I'm " - "not sure\r\nthat a TTE will shed a whole lot more light on the current\r\nsituation, but it will " - "at least assess any myocardial damage he\r\nmight have sustained.\r\nRecs:\r\n--Continue beta " - "blocker as you are\r\n--Hold diuretics, start gentle IV hydration, close monitor " - "of\r\nhemodynamics\r\n--Obtain an ECG, monitor for any new changes\r\n--Consider pulmonary causes " - "(decreased alveolar ventilation) for hypoxia\r\nThe Assessment and Plan will be reviewed with Dr. " - "[**Last Name (STitle) 5550**] in\r\nmulti- disciplinary rounds. Please see his/her note in " - "the\r\n[**Hospital 7382**] medical record for further comments and\r\nrecommendations. Thank you " - "for allowing us to participate in the\r\ncare of this patient. Please feel free to contact us with " - "any\r\nquestions or concerns.\r\n"; - return content; + const content = ` +TITLE: Cardiology Consult\r\n DIVISION OF CARDIOLOGY\r\n + COMPREHENSIVE CONSULTATION NOTE\r\nCHIEF +COMPLAINT: Patient is seen in consultation today at the\r\nrequest of Dr. [**Last Name (STitle) +13959**]. We are asked to give consultative advice\r\nregarding evaluation and management of Acute +CHF.\r\nHISTORY OF PRESENT ILLNESS:\r\n71 year old man with CAD w/ diastolic dysfunction, CKD, +Renal\r\nCell CA s/p left nephrectomy, CLL, known lung masses and recent\r\nbrochial artery bleed, +s/p embolization of LLL bronchial artery\r\n[**1-17**], readmitted with hemoptysis on [ +**2120-2-3**] from [**Hospital 328**] [**Hospital 9250**]\r\ntransferred from BMT floor following +second episode of hypoxic\r\nrespiratory failure, HTN and tachycardia in 3 days. Per report, +\r\non the evening of transfer to the [**Hospital Unit Name 1**], patient continued to\r\nremain +tachypnic in upper 30s and was receiving IVF NS at\r\n100cc/hr for concern of hypovolemic +hypernatremia. He also had\r\nreceived 1unit PRBCs with temp rise for 98.3 to 100.4, +he was\r\ncultured at that time, and transfusion rxn work up was initiated.\r\nAt around 5:30am, +he was found to be newly hypertensive with SBP\r\n>200 with a regular tachycardia to 160 with new +hypoxia requiring\r\nshovel mask. He received 1mg IV ativan, 1mg morphine, lasix 40mg\r\nIV x1, +and lopressor 5mg IV. ABG 7.20/63/61 on shovel mask. He\r\nwas transferred to the ICU for further +care. On arrival to the\r\n[**Hospital Unit Name 1**], he received 5mg IV Dilt and was found to be +febrile to\r\n101.3. Blood and urine cultures were draw. He was placed on BIPAP\r\n12/5 with +improvement in his respiratory rate and sats. Repeat\r\nABG 7.43/34/130.\r\nOvernight, +he continued to be tachycardic, with stable O2 sats.\r\nHe was treated for agitation with haldol, +as well as IV beta\r\nblockers, with some improvement in his heart rate to the 80s at\r\nrest. He +has and continues to deny symptoms of chest pain. When\r\nassessed, he grunted responses to +questions, and was non-verbal.\r\nOn cardiac review of symptoms, no chest pain or other +discomfort.\r\nFurther questions limited by mental status.\r\nPAST MEDICAL HISTORY:\r\nCLL x 20 +yrs\r\n-s/p fludarabine and Cytoxan ([**7-14**]) with good response\r\n-auto-immune hemolytic +anemia on chronic steroids\r\n-mediastinal lymphadenopathy\r\n-h/o bilat pleural effusions with + +cytology ([**6-13**])\r\nRCC s/p Left nephrectomy [**2106**]\r\nCKD: prior baseline CR 1.5, +most recently 1.1-1.2\r\nBPH vs Prostate cancer\r\n- h/o multiple prostate biopsies with only 1 +c/w adenocarcinoma\r\n([**Doctor Last Name 2470**] 3+3)\r\nGERD\r\nType II DM: -recently started +insulin\r\nR-sided Exotropia\r\nGallstone pancreatitis [**12-10**]; s/p lap +chole\r\nHyperlipidemia\r\nCAD s/p cath [**4-13**] with diffuse 2 vessel dz\r\n- 70% RCA/PDA, +60%prox/mid LAD)\r\nHypogammaglobumenia, recurrent URI/PNA, on IVIG X 2years, good\r\nresponse ( +last dose [**2118-11-11**])\r\nAllergic rhinitis\r\nGilberts disease\r\nHypotesteronemia\r\nR +humeral fracture ([**12-16**])\r\nEnlarged spleen secondary to CLL vs portal +hypertension.\r\nCardiac Risk Factors include diabetes, dyslipidemia,\r\nhypertension, and family +history of CAD.\r\nHOME MEDICATIONS:\r\nAlbuterol 90 mcg 2 puffs PRN\r\nAllopurinol 100mg PO +Daily\r\nFolic Acid 2mg PO Daily\r\nInsulin Lispro Protam & Lispro As Directed\r\nMetoprolol +Succinate 25mg PO BID\r\nNitroglycerin [NitroQuick] 0.3mg SL PRN\r\nPrednisone 2mg PO +daily\r\nRosuvastatin 5mg PO daily\r\nDocusate Sodium [Colace] 100mg PO BID\r\nSenna 8.6 PO BID +PRN\r\nCURRENT MEDICATIONS:\r\nAluminum-Magnesium Hydrox.-Simethicone 15-30 mL PO/NG +QID:PRN\r\ndyspepsia\r\nAllopurinol 100 mg PO/NG DAILY\r\nAlbuterol 0.083% Neb Soln 1 NEB IH +Q6H:PRN\r\nBisacodyl 10 mg PO/PR DAILY:PRN constipation\r\nCaphosol 30 mL ORAL QID:PRN dry +mouth\r\nDextrose 50% 12.5 gm IV PRN hypoglycemia\r\nDocusate Sodium 100 mg PO BID\r\nFamotidine +20 mg IV Q24H\r\nGlucagon 1 mg IM Q15MIN:PRN\r\nGuaifenesin-Dextromethorphan 10 mL PO/NG Q6H:PRN +cough\r\nInsulin SC SS\r\nIpratropium Bromide Neb 1 NEB IH Q6H:PRN\r\nMagnesium Sulfate +Replacement (Oncology) IV Sliding Scale\r\nMetoprolol Tartrate 5 mg IV +Q6H\r\nPiperacillin-Tazobactam 2.25 g IV Q6H\r\nPotassium Chloride Replacement (Oncology) IV +Sliding\r\nHydrocortisone Na Succ. 20 mg IV Q24H\r\nSenna 1 TAB PO/NG [**Hospital1 7**]:PRN +constipation\r\nVancomycin 1000 mg IV\r\nMetoprolol Tartrate 10 mg IV Q6H\r\nDiltiazem 5 mg IV +ONCE\r\nMetoprolol Tartrate 5 mg IV ONCE\r\nFurosemide 40 mg IV +ONCE\r\nALLERGIES:\r\nNKDA\r\nSOCIAL HISTORY:\r\nMarried, lives with wife [**Name (NI) **] in [ +**Location (un) 12995**]. Has long history\r\nof CLL since [**2096**]. Is a rabbi working in +academics with 30 year\r\nhistory prior to that of congregation work in [**State 1698**]. +They\r\nhave two adult children in [**Location (un) 3063**] and LA and three\r\ngrandchildren. +Life-time nonsmoker, rare EtOH, no illicit drug\r\nuse.\r\nFAMILY HISTORY:\r\nFather w/ [**Name2 ( +NI) 118**] cancer and coronary artery disease. Multiple\r\nrelatives with DM.\r\nREVIEW OF +SYSTEMS: ALL OTHER SYSTEMS NEGATIVE EXCEPT AS NOTED\r\nABOVE\r\nPHYSICAL EXAMINATION\r\nVitals: +T: 97.8 degrees Farenheit (max 101.3), BP: 128/73 mmHg\r\nsupine, HR 97 bpm, RR 35 bpm, +O2: 94 % on 0.4 aerosol mask.\r\nCONSTITUTIONAL: No acute distress.\r\nEYES: No conjunctival +pallor. No icterus.\r\nENT/Mouth: MMM. OP clear.\r\nTHYROID: No thyromegaly or thyroid +nodules.\r\nCV: Nondisplaced PMI. Tachycardic. Regular rhythm. nl S1, S2. No\r\nextra heart +sounds. No appreciable murmurs. No JVD. Normal\r\ncarotid upstroke without bruits.\r\nLUNGS: +Breath sounds bilaterally. No crackles, wheezes or rhonchi\r\nappreciated.\r\nGI: NABS. Soft, NT, +ND. No HSM. No abdominal bruits.\r\nMUSCULO: Supple neck. Normal muscle tone. Full strength +grossly.\r\nHEME/LYMPH: No palpable LAD. No peripheral edema. Full distal\r\npulses +bilaterally.\r\nSKIN: Warm extremities. No rashes/lesions, ecchymoses.\r\nNEURO: Limited responses +to questions. [**Name8 (MD) 54**] RN, the patient tends\r\nto wax and wane throughout the day; at +times answering questions\r\nand conversing, at other times being more confused. Other +exam\r\ngrossly normal without any significant focal deficits\r\nPSYCH: Mood and affect were +appropriate.\r\nTELEMETRY: Sinus tachycardia at 101. Runs of sinus tachycardia\r\nto 120s, +with brief episodes of atrial tach vs AF.\r\nECG ([**2120-2-15**]): Sinus tach @ 124. Normal +Axis/intervals.\r\nDiffuse nonspecific TW flattening with inferolateral T wave\r\ninversions, +not appreciably worse, and probably better than\r\nprior. No ECG tracing available more proximal +to this admission\r\nto ICU.\r\nTRANSTHORACIC ECHOCARDIOGRAM ([**2120-1-15**]):\r\nThe left atrium +is elongated. No atrial septal defect is seen by\r\n2D or color Doppler. Left ventricular wall +thicknesses and cavity\r\nsize are normal. There is probably mild regional left +ventricular\r\nsystolic dysfunction with distal lateral/apical lateral\r\nhypokinesis . There is +no ventricular septal defect. Right\r\nventricular chamber size and free wall motion are normal. +The\r\naortic root is mildly dilated at the sinus level. The aortic\r\nvalve leaflets (3) are +mildly thickened but aortic stenosis is\r\nnot present. No aortic regurgitation is seen. The +mitral valve\r\nleaflets are mildly thickened. There is no mitral valve prolapse.\r\nTrivial +mitral regurgitation is seen. The estimated pulmonary\r\nartery systolic pressure is normal. There +is no pericardial\r\neffusion. Compared with the prior study (images reviewed) of\r\n[ +**2119-1-11**], mild regional LV systolic dysfunction is new.\r\nETT ([**2114-11-13**]):\r\nThe +patient\r\nexercised for 9.5 minutes of [**Initials (NamePattern4) **] [**Last Name (NamePattern4) +84**] protocol and was stopped at\r\nrequest for fatigue. This represents an average +functional\r\ncapacity.\r\nThere were no chest, neck, back, or arm discomforts reported +by\r\npatient throughout the procedure. There were no significant ST\r\nsegment\r\nchanges at peak +exercise or during recovery. The rhythm was sinus\r\nwith\r\nrare APBs and VPBs. The hemodynamic +response to exercise was\r\nappropriate.\r\nIMPRESSION: No anginal symptoms or ischemic EKG +changes at the\r\nachieved\r\nworkload. Nuclear report sent separately. Compared to ETT +report\r\n[**2113-11-29**], there are now no EKG changes noted and the +exercise\r\ntolerance\r\nhas increased by one minute.\r\nMIBI: 1) Again noted is mild, reversible +basilar inferior wall\r\nperfusion\r\ndefect in the face of soft tissue attenuation from the +diaphragm.\r\n2) Normal\r\nleft ventricular cavity size and function.\r\nCath: [**4-13**]:\r\n1. +Coronary angiography in this right-dominant system revealed:\r\n--the LMCA had no angiographically +apparent disease.\r\n--the LAD had diffuse proximal-mid 60% stenosis\r\n--the LCX had minimal +disease\r\n--the RCA was a small vessel with a distal 70% lesion going into\r\nthe RPDA\r\n2. +Limited resting hemodynamics revealed elevated left-sided\r\nfilling pressures, with LVEDP 18 +mmHg. There was high-normal\r\nsystemic arterial systolic pressures, with SBP 134 mmHg. +There\r\nwas no significant gradient upon pullback of the angled pigtail\r\ncatheter from LV to +ascending aorta.\r\nOTHER TESTING:\r\nCXR: Worsening fluid status versus prior. Followup needed to +see\r\nairspace processes track with CHF or are independent and in the\r\nlatter\r\nsituation +could represent pneumonia.\r\nLABORATORY DATA: Reviewed in OMR\r\nASSESSMENT AND PLAN:\r\n71 year +old man with complicated medical history including CAD w/\r\ndiastolic dysfunction, CKD, +Renal Cell CA s/p left nephrectomy,\r\nCLL, known lung masses and recent brochial artery bleed, +who has\r\nhad a complicated hospital course including s/p embolization of\r\nLLL bronchial artery +[**1-17**], readmitted with hemoptysis on [**2120-2-3**]\r\nfrom [**Hospital 328**] Rehab, +and is now transferred from BMT floor for a\r\nsecond episode of hypoxic respiratory failure, +HTN and\r\ntachycardia in 3 days. Although details with regard to the\r\ninitiating event last +night are limited by difficulty with\r\nobtaining a history, review of his relevant data indicates +that\r\nventilatory failure as indicated by his elevated PCO2 appears to\r\nhave played a +significant role. He clearly has a history of\r\nobstructive coronary artery disease, and likely +had some element\r\nof diastolic dysfunction in the setting of his +acute\r\ntachycardia/hypoxia/hypertensive episode yesterday, although\r\nthere is no obvious +indication that his CAD was a primary cause\r\nof these events based on the history (an ECG from +the peri-event\r\nwould be helpful, but non-specific). According to his RN, he has\r\nnot had +excess secretions today, although he has a new fever and\r\nWBC, which indicates that he could +have had some mucous plugging\r\nin the setting of a new PNA, which is currently being +treated\r\nwith antibiotics. Otherwise, would not diurese him any further\r\nas he looks quite +dry by exam and labs. Would try gentle\r\nhydration, and monitor his volume status closely. I'm +not sure\r\nthat a TTE will shed a whole lot more light on the current\r\nsituation, but it will +at least assess any myocardial damage he\r\nmight have sustained.\r\nRecs:\r\n--Continue beta +blocker as you are\r\n--Hold diuretics, start gentle IV hydration, close monitor +of\r\nhemodynamics\r\n--Obtain an ECG, monitor for any new changes\r\n--Consider pulmonary causes +(decreased alveolar ventilation) for hypoxia\r\nThe Assessment and Plan will be reviewed with Dr. +[**Last Name (STitle) 5550**] in\r\nmulti- disciplinary rounds. Please see his/her note in +the\r\n[**Hospital 7382**] medical record for further comments and\r\nrecommendations. Thank you +for allowing us to participate in the\r\ncare of this patient. Please feel free to contact us with +any\r\nquestions or concerns.\r\n`; + return content; } // Create request body for clinical matching function createRequestBody(): CreateJobParameters { - const docContent = {sourceType: "INLINE", value: getPatientDocContent()}; + const docContent = { sourceType: "INLINE", value: getPatientDocContent() }; const patientDataList = { - type: "NOTE", - id: "12-consult_15", - content: docContent + type: "NOTE", + id: "12-consult_15", + content: docContent, }; const patientInfo = { sex: "MALE", @@ -199,21 +193,25 @@ function createRequestBody(): CreateJobParameters { const patient1 = { id: "patient_id", info: patientInfo, - data: [patientDataList] + data: [patientDataList], }; - const geographicLocation = { countryOrRegion: "United States", city: "Gilbert", state: "Arizona" }; + const geographicLocation = { + countryOrRegion: "United States", + city: "Gilbert", + state: "Arizona", + }; const registryFilters = { conditions: ["non small cell lung cancer (nsclc)"], sources: ["CLINICALTRIALS_GOV"], - facilityLocations: [ geographicLocation ], - recruitmentStatuses: ["RECRUITING"] + facilityLocations: [geographicLocation], + recruitmentStatuses: ["RECRUITING"], }; // Construct ClinicalTrial instance and attach the registry filter to it. - const clinicalTrials = ({ - registryFilters: [registryFilters] - }); + const clinicalTrials = { + registryFilters: [registryFilters], + }; // Create TrialMatcherRequest const configuration = { @@ -226,16 +224,16 @@ function createRequestBody(): CreateJobParameters { }; return { - body: trialMatcherData + body: trialMatcherData, }; } -export async function main() { +export async function main(): Promise { const credential = new AzureKeyCredential(apiKey); const client = ClinicalMatchingRestClient(endpoint, credential); // Create request body for clinical matching - const trialMatcherParameters = createRequestBody() + const trialMatcherParameters = createRequestBody(); // Initiate clinical matching job and retrieve results const initialResponse = await client.path("/trialmatcher/jobs").post(trialMatcherParameters); if (isUnexpected(initialResponse)) { diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clientDefinitions.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clientDefinitions.ts index 5d151a61d4cf..c73557bc4cbd 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clientDefinitions.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clientDefinitions.ts @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { GetJobParameters, CreateJobParameters } from "./parameters"; +import type { GetJobParameters, CreateJobParameters } from "./parameters.js"; import type { GetJob200Response, GetJobDefaultResponse, CreateJob200Response, CreateJob202Response, CreateJobDefaultResponse, -} from "./responses"; +} from "./responses.js"; import type { Client, StreamableMethod } from "@azure-rest/core-client"; export interface GetJob { diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clinicalMatchingRest.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clinicalMatchingRest.ts index c307d2643e21..b9fb54b870c2 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clinicalMatchingRest.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/clinicalMatchingRest.ts @@ -3,9 +3,9 @@ import type { ClientOptions } from "@azure-rest/core-client"; import { getClient } from "@azure-rest/core-client"; -import { logger } from "./logger"; +import { logger } from "./logger.js"; import type { KeyCredential } from "@azure/core-auth"; -import type { ClinicalMatchingRestClient } from "./clientDefinitions"; +import type { ClinicalMatchingRestClient } from "./clientDefinitions.js"; /** * Initialize a new instance of `ClinicalMatchingRestClient` diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/index.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/index.ts index bb023478105a..b0ad83f6f05c 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/index.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/index.ts @@ -1,15 +1,16 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import ClinicalMatchingRest from "./clinicalMatchingRest"; +import ClinicalMatchingRest from "./clinicalMatchingRest.js"; -export * from "./clinicalMatchingRest"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./pollingHelper"; +export * from "./clinicalMatchingRest.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./pollingHelper.js"; +// eslint-disable-next-line @azure/azure-sdk/ts-modules-only-named export default ClinicalMatchingRest; diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/isUnexpected.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/isUnexpected.ts index 75595bb191e8..74c3722b9626 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/isUnexpected.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/isUnexpected.ts @@ -8,7 +8,7 @@ import type { CreateJob202Response, CreateJobLogicalResponse, CreateJobDefaultResponse, -} from "./responses"; +} from "./responses.js"; const responseMap: Record = { "GET /trialmatcher/jobs/{jobId}": ["200"], diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/parameters.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/parameters.ts index 408b8abd6ddd..775fdbf888bc 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/parameters.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/parameters.ts @@ -3,7 +3,7 @@ import type { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; import type { RequestParameters } from "@azure-rest/core-client"; -import type { TrialMatcherData } from "./models"; +import type { TrialMatcherData } from "./models.js"; export type GetJobParameters = RequestParameters; diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/pollingHelper.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/pollingHelper.ts index b7d10988d757..dd67caa4766c 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/pollingHelper.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/pollingHelper.ts @@ -15,7 +15,7 @@ import type { CreateJob202Response, CreateJobDefaultResponse, CreateJobLogicalResponse, -} from "./responses"; +} from "./responses.js"; /** * Helper function that builds a Poller object to help polling a long running operation. * @param client - Client to use for sending the request to get additional pages. diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/responses.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/responses.ts index 504a9710293f..7d5b8d0956f0 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/src/responses.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/src/responses.ts @@ -3,7 +3,7 @@ import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; import type { HttpResponse, ErrorResponse } from "@azure-rest/core-client"; -import type { TrialMatcherResultOutput } from "./outputModels"; +import type { TrialMatcherResultOutput } from "./outputModels.js"; /** The request has succeeded. */ export interface GetJob200Response extends HttpResponse { diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/test/public/clinicalmatching.spec.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/test/public/clinicalmatching.spec.ts index 6452e20dafc3..ef3259af0d5e 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/test/public/clinicalmatching.spec.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/test/public/clinicalmatching.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { ClinicalMatchingRestClient } from "../../src"; -import { getLongRunningPoller } from "../../src"; -import { createClient, createRecorder } from "./utils/recordedClient"; +import type { ClinicalMatchingRestClient } from "../../src/index.js"; +import { getLongRunningPoller } from "../../src/index.js"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const clinicalInfoList = [ { @@ -106,16 +105,16 @@ describe("My test", () => { let recorder: Recorder; let client: ClinicalMatchingRestClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("clinical matching test", async function () { + it("clinical matching test", async () => { const result = await client.path("/trialmatcher/jobs").post(trialMatcherParameter); const poller = await getLongRunningPoller(client, result); const res = await poller.pollUntilDone(); diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/test/public/utils/env.browser.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/test/public/utils/env-browser.mts similarity index 100% rename from sdk/healthinsights/health-insights-clinicalmatching-rest/test/public/utils/env.browser.ts rename to sdk/healthinsights/health-insights-clinicalmatching-rest/test/public/utils/env-browser.mts diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/test/public/utils/recordedClient.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/test/public/utils/recordedClient.ts index 253678ebd2cc..14b3352a23a3 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/test/public/utils/recordedClient.ts +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/test/public/utils/recordedClient.ts @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { assertEnvironmentVariable, Recorder } from "@azure-tools/test-recorder"; import { AzureKeyCredential } from "@azure/core-auth"; -import type { Context } from "mocha"; -import type { ClinicalMatchingRestClient } from "../../../src"; -import ClinicalMatching from "../../../src"; -import "./env"; +import type { ClinicalMatchingRestClient } from "../../../src/index.js"; +import ClinicalMatching from "../../../src/index.js"; +import "./env.js"; const envSetupForPlayback: Record = { HEALTH_INSIGHTS_ENDPOINT: "https://sanitized/", @@ -31,8 +30,8 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); +export async function createRecorder(context: TestInfo): Promise { + const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; } diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/tsconfig.browser.config.json b/sdk/healthinsights/health-insights-clinicalmatching-rest/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/tsconfig.json b/sdk/healthinsights/health-insights-clinicalmatching-rest/tsconfig.json index efb1e1a4751f..820e2bd8ae85 100644 --- a/sdk/healthinsights/health-insights-clinicalmatching-rest/tsconfig.json +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/tsconfig.json @@ -1,9 +1,20 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", - "paths": { "@azure-rest/health-insights-clinicalmatching": ["./src/index"] } + "paths": { + "@azure-rest/health-insights-clinicalmatching": ["./src/index"] + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/vitest.browser.config.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/healthinsights/health-insights-clinicalmatching-rest/vitest.config.ts b/sdk/healthinsights/health-insights-clinicalmatching-rest/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/healthinsights/health-insights-clinicalmatching-rest/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/api-extractor.json b/sdk/healthinsights/health-insights-radiologyinsights-rest/api-extractor.json index 5bd6c944197f..9680e08dedb1 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/api-extractor.json +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/health-insights-radiologyinsights-rest.d.ts" + "publicTrimmedFilePath": "dist/health-insights-radiologyinsights-rest.d.ts" }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/karma.conf.js b/sdk/healthinsights/health-insights-radiologyinsights-rest/karma.conf.js deleted file mode 100644 index 39937e8e97fa..000000000000 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/karma.conf.js +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: [ - "TEST_MODE", - "HEALTH_INSIGHTS_ENDPOINT", - "RECORDINGS_RELATIVE_PATH", - "MANAGED_IDENTITY_CLIENT_ID", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/package.json b/sdk/healthinsights/health-insights-radiologyinsights-rest/package.json index 5f95b6bca3f6..6ffc3942a887 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/package.json +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/package.json @@ -13,31 +13,28 @@ "isomorphic" ], "license": "MIT", - "main": "dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/health-insights-radiologyinsights-rest.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/", - "dist-esm/src/", - "types/health-insights-radiologyinsights.d.ts", "README.md", - "LICENSE", - "review/*" + "LICENSE" ], "engines": { "node": ">=18.0.0" }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run vendored cross-env ONLY_BROWSER=true rollup -c 2>&1", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run vendored cross-env ONLY_NODE=true rollup -c 2>&1", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run vendored cross-env ONLY_BROWSER=true rollup -c 2>&1", + "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api", + "build:node": "dev-tool run build-package && dev-tool run vendored cross-env ONLY_NODE=true rollup -c 2>&1", "build:samples": "echo skipped.", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", @@ -54,49 +51,37 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.2.0", - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.6.0", - "@azure/core-lro": "^2.5.4", - "@azure/core-rest-pipeline": "^1.14.0", - "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "@azure-rest/core-client": "^2.3.1", + "@azure/abort-controller": "^2.1.2", + "@azure/core-auth": "^1.9.0", + "@azure/core-lro": "^2.7.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/logger": "^1.1.4", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "autorest": "latest", - "chai": "^4.2.0", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^2.1.2", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.4.0", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.49.0", + "typescript": "~5.6.2", + "vitest": "^2.1.5" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/healthinsights/health-insights-radiologyinsights-rest/README.md", "//metadata": { @@ -107,9 +92,7 @@ } ] }, - "browser": { - "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" - }, + "browser": "./dist/browser/index.js", "//sampleConfiguration": { "productName": "HealthInsightsRadiologyInsights", "productSlugs": [ @@ -117,5 +100,42 @@ ], "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api" + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_age_mismatch_inference_async.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_age_mismatch_inference_async.ts index 5b987a13f0de..499a02b454d5 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_age_mismatch_inference_async.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_age_mismatch_inference_async.ts @@ -6,23 +6,20 @@ */ import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; +import "dotenv/config"; +import type { CreateJobParameters, RadiologyInsightsJobOutput } from "../src/index.js"; import AzureHealthInsightsClient, { ClinicalDocumentTypeEnum, - CreateJobParameters, - RadiologyInsightsJobOutput, getLongRunningPoller, - isUnexpected -} from "../src"; - -dotenv.config(); + isUnexpected, +} from "../src/index.js"; // You will need to set this environment variables or edit the following values const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; /** - * Print the age mismatch inference + * Print the age mismatch inference */ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput, content: string): void { @@ -48,7 +45,7 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput, conte } } - function findAgeEvidence(extensions: any, content: string) { + function findAgeEvidence(extensions: any, innerContent: string): string { let offset = -1; let length = -1; let piece = ""; @@ -62,27 +59,25 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput, conte length = ext.valueInteger; } if (offset > 0 && length > 0) { - piece = content.substring(offset, offset + length); + piece = innerContent.substring(offset, offset + length); } } evidence += `${piece} `; } return evidence; } - } // Create request body for radiology insights function createRequestBody(): CreateJobParameters { - const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", code: "USPELVIS", - display: "US PELVIS COMPLETE" + display: "US PELVIS COMPLETE", }; const code = { - coding: [codingData] + coding: [codingData], }; const patientInfo = { @@ -93,10 +88,10 @@ function createRequestBody(): CreateJobParameters { const encounterData = { id: "encounterid1", period: { - "start": "2021-8-28T00:00:00", - "end": "2021-8-28T00:00:00" + start: "2021-8-28T00:00:00", + end: "2021-8-28T00:00:00", }, - class: "inpatient" + class: "inpatient", }; const authorData = { @@ -106,12 +101,12 @@ function createRequestBody(): CreateJobParameters { const orderedProceduresData = { code: code, - description: "US PELVIS COMPLETE" + description: "US PELVIS COMPLETE", }; const administrativeMetadata = { orderedProcedures: [orderedProceduresData], - encounterId: "encounterid1" + encounterId: "encounterid1", }; const content = { @@ -151,15 +146,14 @@ function createRequestBody(): CreateJobParameters { administrativeMetadata: administrativeMetadata, content: content, createdAt: new Date("2021-05-31T16:00:00.000Z"), - orderedProceduresAsCsv: "US PELVIS COMPLETE" + orderedProceduresAsCsv: "US PELVIS COMPLETE", }; - const patientData = { id: "Samantha Jones", details: patientInfo, encounters: [encounterData], - patientDocuments: [patientDocumentData] + patientDocuments: [patientDocumentData], }; const inferenceTypes = [ @@ -173,21 +167,22 @@ function createRequestBody(): CreateJobParameters { "criticalRecommendation", "followupRecommendation", "followupCommunication", - "radiologyProcedure"]; + "radiologyProcedure", + ]; const followupRecommendationOptions = { includeRecommendationsWithNoSpecifiedModality: true, includeRecommendationsInReferences: true, - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const findingOptions = { - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const inferenceOptions = { followupRecommendationOptions: followupRecommendationOptions, - findingOptions: findingOptions + findingOptions: findingOptions, }; // Create RI Configuration @@ -196,7 +191,7 @@ function createRequestBody(): CreateJobParameters { inferenceTypes: inferenceTypes, locale: "en-US", verbose: false, - includeEvidence: true + includeEvidence: true, }; // create RI Data @@ -204,16 +199,15 @@ function createRequestBody(): CreateJobParameters { jobData: { patients: [patientData], configuration: configuration, - } + }, }; return { body: RadiologyInsightsJob, }; - } -export async function main() { +export async function main(): Promise { const credential = new DefaultAzureCredential(); const client = AzureHealthInsightsClient(endpoint, credential); @@ -223,7 +217,9 @@ export async function main() { // Initiate radiology insights job and retrieve results const dateString = Date.now(); const jobID = "jobId-" + dateString; - const initialResponse = await client.path("/radiology-insights/jobs/{id}", jobID).put(radiologyInsightsParameter); + const initialResponse = await client + .path("/radiology-insights/jobs/{id}", jobID) + .put(radiologyInsightsParameter); if (isUnexpected(initialResponse)) { throw initialResponse; } @@ -233,7 +229,9 @@ export async function main() { throw RadiologyInsightsResult; } const resultBody = RadiologyInsightsResult.body; - const content = radiologyInsightsParameter?.body?.jobData?.patients?.[0]?.patientDocuments?.[0]?.content?.value ?? ''; + const content = + radiologyInsightsParameter?.body?.jobData?.patients?.[0]?.patientDocuments?.[0]?.content + ?.value ?? ""; printResults(resultBody, content); } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_complete_order_discrepancy_inference_async.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_complete_order_discrepancy_inference_async.ts index 721da0ff1753..4c9f74ffc419 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_complete_order_discrepancy_inference_async.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_complete_order_discrepancy_inference_async.ts @@ -5,24 +5,20 @@ * Displays the complete order discrepancy of the Radiology Insights request. */ import { DefaultAzureCredential } from "@azure/identity"; - -import * as dotenv from "dotenv"; +import "dotenv/config"; +import type { CreateJobParameters, RadiologyInsightsJobOutput } from "../src/index.js"; import AzureHealthInsightsClient, { ClinicalDocumentTypeEnum, - CreateJobParameters, - RadiologyInsightsJobOutput, getLongRunningPoller, - isUnexpected -} from "../src"; - -dotenv.config(); + isUnexpected, +} from "../src/index.js"; // You will need to set this environment variables or edit the following values const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; /** - * Print the complete order discrepancy inference + * Print the complete order discrepancy inference */ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void { @@ -37,7 +33,7 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void if ("orderType" in inference) { console.log(" Ordertype: "); displayCodes({ codeableConcept: inference.orderType }); - }; + } inference.missingBodyParts?.forEach((bodyparts: any) => { console.log(" Missing Body Parts: "); @@ -60,27 +56,27 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void } } - function displayCodes({ codeableConcept }: { codeableConcept: any; }): void { + function displayCodes({ codeableConcept }: { codeableConcept: any }): void { codeableConcept.coding?.forEach((coding: any) => { if ("code" in coding) { - console.log(" Coding: " + coding.code + ", " + coding.display + " (" + coding.system + ")"); + console.log( + " Coding: " + coding.code + ", " + coding.display + " (" + coding.system + ")", + ); } }); } - } // Create request body for radiology insights function createRequestBody(): CreateJobParameters { - const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", code: "USPELVIS", - display: "US PELVIS COMPLETE" + display: "US PELVIS COMPLETE", }; const code = { - coding: [codingData] + coding: [codingData], }; const patientInfo = { @@ -91,10 +87,10 @@ function createRequestBody(): CreateJobParameters { const encounterData = { id: "encounterid1", period: { - "start": "2021-8-28T00:00:00", - "end": "2021-8-28T00:00:00" + start: "2021-8-28T00:00:00", + end: "2021-8-28T00:00:00", }, - class: "inpatient" + class: "inpatient", }; const authorData = { @@ -104,12 +100,12 @@ function createRequestBody(): CreateJobParameters { const orderedProceduresData = { code: code, - description: "US PELVIS COMPLETE" + description: "US PELVIS COMPLETE", }; const administrativeMetadata = { orderedProcedures: [orderedProceduresData], - encounterId: "encounterid1" + encounterId: "encounterid1", }; const content = { @@ -149,15 +145,14 @@ function createRequestBody(): CreateJobParameters { administrativeMetadata: administrativeMetadata, content: content, createdAt: new Date("2021-05-31T16:00:00.000Z"), - orderedProceduresAsCsv: "US PELVIS COMPLETE" + orderedProceduresAsCsv: "US PELVIS COMPLETE", }; - const patientData = { id: "Samantha Jones", details: patientInfo, encounters: [encounterData], - patientDocuments: [patientDocumentData] + patientDocuments: [patientDocumentData], }; const inferenceTypes = [ @@ -171,21 +166,22 @@ function createRequestBody(): CreateJobParameters { "criticalRecommendation", "followupRecommendation", "followupCommunication", - "radiologyProcedure"]; + "radiologyProcedure", + ]; const followupRecommendationOptions = { includeRecommendationsWithNoSpecifiedModality: true, includeRecommendationsInReferences: true, - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const findingOptions = { - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const inferenceOptions = { followupRecommendationOptions: followupRecommendationOptions, - findingOptions: findingOptions + findingOptions: findingOptions, }; // Create RI Configuration @@ -194,7 +190,7 @@ function createRequestBody(): CreateJobParameters { inferenceTypes: inferenceTypes, locale: "en-US", verbose: false, - includeEvidence: true + includeEvidence: true, }; // create RI Data @@ -202,16 +198,15 @@ function createRequestBody(): CreateJobParameters { jobData: { patients: [patientData], configuration: configuration, - } + }, }; return { body: RadiologyInsightsJob, }; - } -export async function main() { +export async function main(): Promise { const credential = new DefaultAzureCredential(); const client = AzureHealthInsightsClient(endpoint, credential); @@ -221,7 +216,9 @@ export async function main() { // Initiate radiology insights job and retrieve results const dateString = Date.now(); const jobID = "jobId-" + dateString; - const initialResponse = await client.path("/radiology-insights/jobs/{id}", jobID).put(radiologyInsightsParameter); + const initialResponse = await client + .path("/radiology-insights/jobs/{id}", jobID) + .put(radiologyInsightsParameter); if (isUnexpected(initialResponse)) { throw initialResponse; } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_critical_result_inference_async.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_critical_result_inference_async.ts index 479a01b7577d..fc019a55033a 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_critical_result_inference_async.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_critical_result_inference_async.ts @@ -5,31 +5,27 @@ * Displays the critical results of the Radiology Insights request. */ import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - +import "dotenv/config"; +import type { CreateJobParameters, RadiologyInsightsJobOutput } from "../src/index.js"; import AzureHealthInsightsClient, { ClinicalDocumentTypeEnum, - CreateJobParameters, - RadiologyInsightsJobOutput, getLongRunningPoller, - isUnexpected -} from "../src"; - -dotenv.config(); + isUnexpected, +} from "../src/index.js"; // You will need to set this environment variables or edit the following values const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; /** - * Print the critical result inference + * Print the critical result inference */ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void { if (radiologyInsightsResult.status === "succeeded") { const results = radiologyInsightsResult.result; if (results !== undefined) { - results.patientResults.forEach((patientResult: { inferences: any[]; }) => { + results.patientResults.forEach((patientResult: { inferences: any[] }) => { if (patientResult.inferences) { patientResult.inferences.forEach((inference) => { if (inference.kind === "criticalResult") { @@ -51,15 +47,14 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void // Create request body for radiology insights function createRequestBody(): CreateJobParameters { - const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", code: "USPELVIS", - display: "US PELVIS COMPLETE" + display: "US PELVIS COMPLETE", }; const code = { - coding: [codingData] + coding: [codingData], }; const patientInfo = { @@ -70,10 +65,10 @@ function createRequestBody(): CreateJobParameters { const encounterData = { id: "encounterid1", period: { - "start": "2021-8-28T00:00:00", - "end": "2021-8-28T00:00:00" + start: "2021-8-28T00:00:00", + end: "2021-8-28T00:00:00", }, - class: "inpatient" + class: "inpatient", }; const authorData = { @@ -83,12 +78,12 @@ function createRequestBody(): CreateJobParameters { const orderedProceduresData = { code: code, - description: "US PELVIS COMPLETE" + description: "US PELVIS COMPLETE", }; const administrativeMetadata = { orderedProcedures: [orderedProceduresData], - encounterId: "encounterid1" + encounterId: "encounterid1", }; const content = { @@ -128,15 +123,14 @@ function createRequestBody(): CreateJobParameters { administrativeMetadata: administrativeMetadata, content: content, createdAt: new Date("2021-05-31T16:00:00.000Z"), - orderedProceduresAsCsv: "US PELVIS COMPLETE" + orderedProceduresAsCsv: "US PELVIS COMPLETE", }; - const patientData = { id: "Samantha Jones", details: patientInfo, encounters: [encounterData], - patientDocuments: [patientDocumentData] + patientDocuments: [patientDocumentData], }; const inferenceTypes = [ @@ -150,21 +144,22 @@ function createRequestBody(): CreateJobParameters { "criticalRecommendation", "followupRecommendation", "followupCommunication", - "radiologyProcedure"]; + "radiologyProcedure", + ]; const followupRecommendationOptions = { includeRecommendationsWithNoSpecifiedModality: true, includeRecommendationsInReferences: true, - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const findingOptions = { - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const inferenceOptions = { followupRecommendationOptions: followupRecommendationOptions, - findingOptions: findingOptions + findingOptions: findingOptions, }; // Create RI Configuration @@ -173,7 +168,7 @@ function createRequestBody(): CreateJobParameters { inferenceTypes: inferenceTypes, locale: "en-US", verbose: false, - includeEvidence: true + includeEvidence: true, }; // create RI Data @@ -181,16 +176,15 @@ function createRequestBody(): CreateJobParameters { jobData: { patients: [patientData], configuration: configuration, - } + }, }; return { body: RadiologyInsightsJob, }; - } -export async function main() { +export async function main(): Promise { const credential = new DefaultAzureCredential(); const client = AzureHealthInsightsClient(endpoint, credential); @@ -200,7 +194,9 @@ export async function main() { // Initiate radiology insights job and retrieve results const dateString = Date.now(); const jobID = "jobId-" + dateString; - const initialResponse = await client.path("/radiology-insights/jobs/{id}", jobID).put(radiologyInsightsParameter); + const initialResponse = await client + .path("/radiology-insights/jobs/{id}", jobID) + .put(radiologyInsightsParameter); if (isUnexpected(initialResponse)) { throw initialResponse; } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_critical_result_managed_identity.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_critical_result_managed_identity.ts index 1607392c0316..c83f5f19a66f 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_critical_result_managed_identity.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_critical_result_managed_identity.ts @@ -5,17 +5,13 @@ * Displays the critical results of the Radiology Insights request. */ import { DefaultAzureCredential, logger } from "@azure/identity"; -import * as dotenv from "dotenv"; - +import "dotenv/config"; +import type { CreateJobParameters, RadiologyInsightsJobOutput } from "../src/index.js"; import AzureHealthInsightsClient, { ClinicalDocumentTypeEnum, - CreateJobParameters, - RadiologyInsightsJobOutput, getLongRunningPoller, - isUnexpected -} from "../src"; - -dotenv.config(); + isUnexpected, +} from "../src/index.js"; // You will need to set this environment variables or edit the following values @@ -23,14 +19,14 @@ const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; const clientID = process.env["MANAGED_IDENTITY_CLIENT_ID"] || ""; /** - * Print the critical result inference + * Print the critical result inference */ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void { if (radiologyInsightsResult.status === "succeeded") { const results = radiologyInsightsResult.result; if (results !== undefined) { - results.patientResults.forEach((patientResult: { inferences: any[]; }) => { + results.patientResults.forEach((patientResult: { inferences: any[] }) => { if (patientResult.inferences) { patientResult.inferences.forEach((inference) => { if (inference.kind === "criticalResult") { @@ -52,15 +48,14 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void // Create request body for radiology insights function createRequestBody(): CreateJobParameters { - const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", code: "USPELVIS", - display: "US PELVIS COMPLETE" + display: "US PELVIS COMPLETE", }; const code = { - coding: [codingData] + coding: [codingData], }; const patientInfo = { @@ -71,10 +66,10 @@ function createRequestBody(): CreateJobParameters { const encounterData = { id: "encounterid1", period: { - "start": "2021-8-28T00:00:00", - "end": "2021-8-28T00:00:00" + start: "2021-8-28T00:00:00", + end: "2021-8-28T00:00:00", }, - class: "inpatient" + class: "inpatient", }; const authorData = { @@ -84,12 +79,12 @@ function createRequestBody(): CreateJobParameters { const orderedProceduresData = { code: code, - description: "US PELVIS COMPLETE" + description: "US PELVIS COMPLETE", }; const administrativeMetadata = { orderedProcedures: [orderedProceduresData], - encounterId: "encounterid1" + encounterId: "encounterid1", }; const content = { @@ -129,15 +124,14 @@ function createRequestBody(): CreateJobParameters { administrativeMetadata: administrativeMetadata, content: content, createdAt: new Date("2021-05-31T16:00:00.000Z"), - orderedProceduresAsCsv: "US PELVIS COMPLETE" + orderedProceduresAsCsv: "US PELVIS COMPLETE", }; - const patientData = { id: "Samantha Jones", details: patientInfo, encounters: [encounterData], - patientDocuments: [patientDocumentData] + patientDocuments: [patientDocumentData], }; const inferenceTypes = [ @@ -151,21 +145,22 @@ function createRequestBody(): CreateJobParameters { "criticalRecommendation", "followupRecommendation", "followupCommunication", - "radiologyProcedure"]; + "radiologyProcedure", + ]; const followupRecommendationOptions = { includeRecommendationsWithNoSpecifiedModality: true, includeRecommendationsInReferences: true, - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const findingOptions = { - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const inferenceOptions = { followupRecommendationOptions: followupRecommendationOptions, - findingOptions: findingOptions + findingOptions: findingOptions, }; // Create RI Configuration @@ -188,15 +183,14 @@ function createRequestBody(): CreateJobParameters { return { body: RadiologyInsightsJob, }; - } -export async function main() { - //Create Managed Identity Credential +export async function main(): Promise { + // Create Managed Identity Credential const credential = new DefaultAzureCredential( clientID ? { managedIdentityClientId: clientID } : undefined, ); - const tokenResponse = await credential.getToken('https://cognitiveservices.azure.com/.default'); + const tokenResponse = await credential.getToken("https://cognitiveservices.azure.com/.default"); logger.info(null, `Got token for Cognitive Services ${tokenResponse?.token}`); const client = AzureHealthInsightsClient(endpoint, credential); @@ -206,12 +200,14 @@ export async function main() { // Initiate radiology insights job and retrieve results const dateString = Date.now(); const jobID = "jobId-" + dateString; - const initialResponse = await client.path("/radiology-insights/jobs/{id}", jobID).put(radiologyInsightsParameter, { - headers: { - 'Authorization': `Bearer ${tokenResponse?.token}`, - 'Content-Type': 'application/json' - }, - }); + const initialResponse = await client + .path("/radiology-insights/jobs/{id}", jobID) + .put(radiologyInsightsParameter, { + headers: { + Authorization: `Bearer ${tokenResponse?.token}`, + "Content-Type": "application/json", + }, + }); if (isUnexpected(initialResponse)) { throw initialResponse; diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_finding_inference_async.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_finding_inference_async.ts index 0411d458a5a9..38b2d056485a 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_finding_inference_async.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_finding_inference_async.ts @@ -5,39 +5,35 @@ * Displays the finding of the Radiology Insights request. */ import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - +import "dotenv/config"; +import type { CreateJobParameters, RadiologyInsightsJobOutput } from "../src/index.js"; import AzureHealthInsightsClient, { ClinicalDocumentTypeEnum, - CreateJobParameters, - RadiologyInsightsJobOutput, getLongRunningPoller, - isUnexpected -} from "../src"; - -dotenv.config(); + isUnexpected, +} from "../src/index.js"; // You will need to set this environment variables or edit the following values const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; /** - * Print the finding inference + * Print the finding inference */ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void { if (radiologyInsightsResult.status === "succeeded") { const results = radiologyInsightsResult.result; if (results !== undefined) { - results.patientResults.forEach((patientResult: { inferences: any[]; }) => { + results.patientResults.forEach((patientResult: { inferences: any[] }) => { if (patientResult.inferences) { patientResult.inferences.forEach((inference) => { if (inference.kind === "finding") { console.log("Finding Inference found: "); - let find = inference.finding; + const find = inference.finding; if ("code" in find) { - let fcode = find.code; + const fcode = find.code; console.log(" Code: "); displayCodes(fcode); } @@ -47,19 +43,20 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void displayCodes(inter); }); - inference.finding.component?.forEach((comp: { code: any; valueCodeableConcept: any }) => { - console.log(" Component code: "); - displayCodes(comp.code); - if ("valueCodeableConcept" in comp) { - console.log(" Value component codeable concept: "); - displayCodes(comp.valueCodeableConcept); - } - }); + inference.finding.component?.forEach( + (comp: { code: any; valueCodeableConcept: any }) => { + console.log(" Component code: "); + displayCodes(comp.code); + if ("valueCodeableConcept" in comp) { + console.log(" Value component codeable concept: "); + displayCodes(comp.valueCodeableConcept); + } + }, + ); if ("extension" in inference) { displaySectionInfo(inference); - }; - + } } }); } @@ -75,16 +72,18 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void function displayCodes(codeableConcept: any): void { codeableConcept.coding?.forEach((coding: any) => { if ("code" in coding) { - console.log(" Coding: " + coding.code + ", " + coding.display + " (" + coding.system + ")"); + console.log( + " Coding: " + coding.code + ", " + coding.display + " (" + coding.system + ")", + ); } }); } - function displaySectionInfo(inference: { extension: any[]; }) { + function displaySectionInfo(inference: { extension: any[] }): void { inference.extension?.forEach((ext: any) => { if ("url" in ext && ext.url === "section") { console.log(" Section:"); - ext.extension?.forEach((subextension: { url: string; valueString: string; }) => { + ext.extension?.forEach((subextension: { url: string; valueString: string }) => { if ("url" in subextension && "valueString" in subextension) { console.log(" " + subextension.url + ": " + subextension.valueString); } @@ -92,34 +91,32 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void } }); } - } // Create request body for radiology insights function createRequestBody(): CreateJobParameters { - const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", code: "ANG366", - display: "XA VENACAVA FILTER INSERTION" + display: "XA VENACAVA FILTER INSERTION", }; const code = { - coding: [codingData] + coding: [codingData], }; const patientInfo = { sex: "male", - birthDate: new Date("1980-04-22T02:00:00+00:00") + birthDate: new Date("1980-04-22T02:00:00+00:00"), }; const encounterData = { id: "encounterid1", period: { - "start": "2021-8-28T00:00:00", - "end": "2021-8-28T00:00:00" + start: "2021-8-28T00:00:00", + end: "2021-8-28T00:00:00", }, - class: "inpatient" + class: "inpatient", }; const authorData = { @@ -129,12 +126,12 @@ function createRequestBody(): CreateJobParameters { const orderedProceduresData = { code: code, - description: "XA VENACAVA FILTER INSERTION" + description: "XA VENACAVA FILTER INSERTION", }; const administrativeMetadata = { orderedProcedures: [orderedProceduresData], - encounterId: "encounterid1" + encounterId: "encounterid1", }; const content = { @@ -144,7 +141,7 @@ function createRequestBody(): CreateJobParameters { in course and caliber without filling defects to indicate clot. It measures 19.8 mm. in diameter infrarenally. - 2. Successful placement of IVC filter in infrarenal location.` + 2. Successful placement of IVC filter in infrarenal location.`, }; const patientDocumentData = { type: "note", @@ -156,15 +153,14 @@ function createRequestBody(): CreateJobParameters { administrativeMetadata: administrativeMetadata, content: content, createdAt: new Date("2021-05-31T16:00:00.000Z"), - orderedProceduresAsCsv: "XA VENACAVA FILTER INSERTION" + orderedProceduresAsCsv: "XA VENACAVA FILTER INSERTION", }; - const patientData = { id: "Roberto Lewis", details: patientInfo, encounters: [encounterData], - patientDocuments: [patientDocumentData] + patientDocuments: [patientDocumentData], }; const inferenceTypes = [ @@ -178,21 +174,22 @@ function createRequestBody(): CreateJobParameters { "criticalRecommendation", "followupRecommendation", "followupCommunication", - "radiologyProcedure"]; + "radiologyProcedure", + ]; const followupRecommendationOptions = { includeRecommendationsWithNoSpecifiedModality: true, includeRecommendationsInReferences: true, - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const findingOptions = { - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const inferenceOptions = { followupRecommendationOptions: followupRecommendationOptions, - findingOptions: findingOptions + findingOptions: findingOptions, }; // Create RI Configuration @@ -201,7 +198,7 @@ function createRequestBody(): CreateJobParameters { inferenceTypes: inferenceTypes, locale: "en-US", verbose: false, - includeEvidence: true + includeEvidence: true, }; // create RI Data @@ -209,16 +206,15 @@ function createRequestBody(): CreateJobParameters { jobData: { patients: [patientData], configuration: configuration, - } + }, }; return { body: RadiologyInsightsJob, }; - } -export async function main() { +export async function main(): Promise { const credential = new DefaultAzureCredential(); const client = AzureHealthInsightsClient(endpoint, credential); @@ -228,7 +224,9 @@ export async function main() { // Initiate radiology insights job and retrieve results const dateString = Date.now(); const jobID = "jobId-" + dateString; - const initialResponse = await client.path("/radiology-insights/jobs/{id}", jobID).put(radiologyInsightsParameter); + const initialResponse = await client + .path("/radiology-insights/jobs/{id}", jobID) + .put(radiologyInsightsParameter); if (isUnexpected(initialResponse)) { throw initialResponse; } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_follow_up_communication_inference_async.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_follow_up_communication_inference_async.ts index 40a5b85a2a76..905ceab66da1 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_follow_up_communication_inference_async.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_follow_up_communication_inference_async.ts @@ -5,24 +5,20 @@ * Displays the follow up communication of the Radiology Insights request. */ import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - +import "dotenv/config"; +import type { CreateJobParameters, RadiologyInsightsJobOutput } from "../src/index.js"; import AzureHealthInsightsClient, { ClinicalDocumentTypeEnum, - CreateJobParameters, - RadiologyInsightsJobOutput, getLongRunningPoller, - isUnexpected -} from "../src"; - -dotenv.config(); + isUnexpected, +} from "../src/index.js"; // You will need to set this environment variables or edit the following values const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; /** - * Print the follow up communication inference + * Print the follow up communication inference */ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void { @@ -30,18 +26,25 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void const results = radiologyInsightsResult.result; if (results !== undefined) { results.patientResults.forEach((patientResult: any) => { - patientResult.inferences.forEach((inference: { kind: string; communicatedAt: any[]; recipient: any[]; wasAcknowledged: string; }) => { - if (inference.kind === "followupCommunication") { - console.log("Followup Communication Inference found"); - if ("communicatedAt" in inference) { - console.log("Communicated at: " + inference.communicatedAt.join(" ")); - } - if ("recipient" in inference) { - console.log("Recipient: " + inference.recipient.join(" ")); + patientResult.inferences.forEach( + (inference: { + kind: string; + communicatedAt: any[]; + recipient: any[]; + wasAcknowledged: string; + }) => { + if (inference.kind === "followupCommunication") { + console.log("Followup Communication Inference found"); + if ("communicatedAt" in inference) { + console.log("Communicated at: " + inference.communicatedAt.join(" ")); + } + if ("recipient" in inference) { + console.log("Recipient: " + inference.recipient.join(" ")); + } + console.log(" Aknowledged: " + inference.wasAcknowledged); } - console.log(" Aknowledged: " + inference.wasAcknowledged); - } - }); + }, + ); }); } } else { @@ -50,21 +53,18 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void console.log(error.code, ":", error.message); } } - } - // Create request body for radiology insights function createRequestBody(): CreateJobParameters { - const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", code: "USPELVIS", - display: "US PELVIS COMPLETE" + display: "US PELVIS COMPLETE", }; const code = { - coding: [codingData] + coding: [codingData], }; const patientInfo = { @@ -75,10 +75,10 @@ function createRequestBody(): CreateJobParameters { const encounterData = { id: "encounterid1", period: { - "start": "2021-8-28T00:00:00", - "end": "2021-8-28T00:00:00" + start: "2021-8-28T00:00:00", + end: "2021-8-28T00:00:00", }, - class: "inpatient" + class: "inpatient", }; const authorData = { @@ -88,12 +88,12 @@ function createRequestBody(): CreateJobParameters { const orderedProceduresData = { code: code, - description: "US PELVIS COMPLETE" + description: "US PELVIS COMPLETE", }; const administrativeMetadata = { orderedProcedures: [orderedProceduresData], - encounterId: "encounterid1" + encounterId: "encounterid1", }; const content = { @@ -120,7 +120,7 @@ function createRequestBody(): CreateJobParameters { 1. Normal pelvic sonography. Findings of testicular torsion. A new US pelvis within the next 6 months is recommended. - These results have been discussed with Dr. Jones at 3 PM on November 5 2020.` + These results have been discussed with Dr. Jones at 3 PM on November 5 2020.`, }; const patientDocumentData = { @@ -133,15 +133,14 @@ function createRequestBody(): CreateJobParameters { administrativeMetadata: administrativeMetadata, content: content, createdAt: new Date("2021-05-31T16:00:00.000Z"), - orderedProceduresAsCsv: "US PELVIS COMPLETE" + orderedProceduresAsCsv: "US PELVIS COMPLETE", }; - const patientData = { id: "Samantha Jones", details: patientInfo, encounters: [encounterData], - patientDocuments: [patientDocumentData] + patientDocuments: [patientDocumentData], }; const inferenceTypes = [ @@ -155,21 +154,22 @@ function createRequestBody(): CreateJobParameters { "criticalRecommendation", "followupRecommendation", "followupCommunication", - "radiologyProcedure"]; + "radiologyProcedure", + ]; const followupRecommendationOptions = { includeRecommendationsWithNoSpecifiedModality: true, includeRecommendationsInReferences: true, - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const findingOptions = { - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const inferenceOptions = { followupRecommendationOptions: followupRecommendationOptions, - findingOptions: findingOptions + findingOptions: findingOptions, }; // Create RI Configuration @@ -178,7 +178,7 @@ function createRequestBody(): CreateJobParameters { inferenceTypes: inferenceTypes, locale: "en-US", verbose: false, - includeEvidence: true + includeEvidence: true, }; // create RI Data @@ -186,16 +186,15 @@ function createRequestBody(): CreateJobParameters { jobData: { patients: [patientData], configuration: configuration, - } + }, }; return { body: RadiologyInsightsJob, }; - } -export async function main() { +export async function main(): Promise { const credential = new DefaultAzureCredential(); const client = AzureHealthInsightsClient(endpoint, credential); @@ -205,7 +204,9 @@ export async function main() { // Initiate radiology insights job and retrieve results const dateString = Date.now(); const jobID = "jobId-" + dateString; - const initialResponse = await client.path("/radiology-insights/jobs/{id}", jobID).put(radiologyInsightsParameter); + const initialResponse = await client + .path("/radiology-insights/jobs/{id}", jobID) + .put(radiologyInsightsParameter); if (isUnexpected(initialResponse)) { throw initialResponse; } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_follow_up_recommendation_inference_async.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_follow_up_recommendation_inference_async.ts index 1bfa07aac320..a1876195b08e 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_follow_up_recommendation_inference_async.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_follow_up_recommendation_inference_async.ts @@ -5,24 +5,20 @@ * Displays the follow up recommendation of the Radiology Insights request. */ import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - +import "dotenv/config"; +import type { CreateJobParameters, RadiologyInsightsJobOutput } from "../src/index.js"; import AzureHealthInsightsClient, { ClinicalDocumentTypeEnum, - CreateJobParameters, - RadiologyInsightsJobOutput, getLongRunningPoller, - isUnexpected -} from "../src"; - -dotenv.config(); + isUnexpected, +} from "../src/index.js"; // You will need to set this environment variables or edit the following values const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; /** - * Print the follow up recommendation inference + * Print the follow up recommendation inference */ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void { @@ -30,37 +26,49 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void const results = radiologyInsightsResult.result; if (results !== undefined) { results.patientResults.forEach((patientResult: any) => { - patientResult.inferences.forEach((inference: { kind: string; isConditional: any; isGuideline: any; isHedging: any; isOption: any; recommendedProcedure: any; }) => { - if (inference.kind === "followupRecommendation") { - console.log("Follow Up Recommendation Inference found"); - console.log(" Is conditional: ", inference.isConditional); - console.log(" Is guidline: ", inference.isGuideline); - console.log(" Is hedging: ", inference.isHedging); - console.log(" Is option: ", inference.isOption); - - var procedure = inference.recommendedProcedure; - if ("kind" in procedure && procedure.kind === "genericProcedureRecommendation") { - if ("code" in procedure) { - console.log(" Recommended Generic Procedure: ", procedure.code); - } - if ("description" in procedure) { - console.log(" Description: ", procedure.description); - } - } else if ("kind" in procedure && procedure.kind === "imagingProcedureRecommendation") { - procedure.procedureCodes?.forEach((procedureCode: any) => { - console.log(" Recommended Procedure Codes: "); - displayCodes(procedureCode); - }); - - if ("imagingProcedures" in procedure) { - procedure.imagingProcedures?.forEach((imagingProcedure: any) => { - console.log(" Recommended Imaging Procedure Codes: "); - displayImaging(imagingProcedure); + patientResult.inferences.forEach( + (inference: { + kind: string; + isConditional: any; + isGuideline: any; + isHedging: any; + isOption: any; + recommendedProcedure: any; + }) => { + if (inference.kind === "followupRecommendation") { + console.log("Follow Up Recommendation Inference found"); + console.log(" Is conditional: ", inference.isConditional); + console.log(" Is guidline: ", inference.isGuideline); + console.log(" Is hedging: ", inference.isHedging); + console.log(" Is option: ", inference.isOption); + + const procedure = inference.recommendedProcedure; + if ("kind" in procedure && procedure.kind === "genericProcedureRecommendation") { + if ("code" in procedure) { + console.log(" Recommended Generic Procedure: ", procedure.code); + } + if ("description" in procedure) { + console.log(" Description: ", procedure.description); + } + } else if ( + "kind" in procedure && + procedure.kind === "imagingProcedureRecommendation" + ) { + procedure.procedureCodes?.forEach((procedureCode: any) => { + console.log(" Recommended Procedure Codes: "); + displayCodes(procedureCode); }); + + if ("imagingProcedures" in procedure) { + procedure.imagingProcedures?.forEach((imagingProcedure: any) => { + console.log(" Recommended Imaging Procedure Codes: "); + displayImaging(imagingProcedure); + }); + } } } - } - }); + }, + ); }); } } else { @@ -73,12 +81,20 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void function displayCodes(codeableConcept: any): void { codeableConcept.coding?.forEach((coding: any) => { if ("code" in coding) { - console.log(" Coding: " + coding.code + ", " + coding.display + " (" + coding.system + ")"); + console.log( + " Coding: " + coding.code + ", " + coding.display + " (" + coding.system + ")", + ); } }); } - function displayImaging(images: { modality: { coding: any[]; }; anatomy: { coding: any[]; }; laterality: { coding: any[]; }; contrast: { code: { coding: any[]; }; }; view: { code: { coding: any[]; }; }; }) { + function displayImaging(images: { + modality: { coding: any[] }; + anatomy: { coding: any[] }; + laterality: { coding: any[] }; + contrast: { code: { coding: any[] } }; + view: { code: { coding: any[] } }; + }): void { console.log(" Modality Codes: "); displayCodes(images.modality); console.log(" Anatomy Codes: "); @@ -96,21 +112,18 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void displayCodes(images.view.code); } } - } - // Create request body for radiology insights function createRequestBody(): CreateJobParameters { - const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", code: "USPELVIS", - display: "US PELVIS COMPLETE" + display: "US PELVIS COMPLETE", }; const code = { - coding: [codingData] + coding: [codingData], }; const patientInfo = { @@ -121,10 +134,10 @@ function createRequestBody(): CreateJobParameters { const encounterData = { id: "encounterid1", period: { - "start": "2021-8-28T00:00:00", - "end": "2021-8-28T00:00:00" + start: "2021-8-28T00:00:00", + end: "2021-8-28T00:00:00", }, - class: "inpatient" + class: "inpatient", }; const authorData = { @@ -134,12 +147,12 @@ function createRequestBody(): CreateJobParameters { const orderedProceduresData = { code: code, - description: "US PELVIS COMPLETE" + description: "US PELVIS COMPLETE", }; const administrativeMetadata = { orderedProcedures: [orderedProceduresData], - encounterId: "encounterid1" + encounterId: "encounterid1", }; const content = { @@ -165,7 +178,7 @@ function createRequestBody(): CreateJobParameters { 1. Normal pelvic sonography. Findings of testicular torsion. A new US pelvis within the next 6 months is recommended. - These results have been discussed with Dr. Jones at 3 PM on November 5 2020.` + These results have been discussed with Dr. Jones at 3 PM on November 5 2020.`, }; const patientDocumentData = { @@ -178,15 +191,14 @@ function createRequestBody(): CreateJobParameters { administrativeMetadata: administrativeMetadata, content: content, createdAt: new Date("2021-05-31T16:00:00.000Z"), - orderedProceduresAsCsv: "US PELVIS COMPLETE" + orderedProceduresAsCsv: "US PELVIS COMPLETE", }; - const patientData = { id: "Samantha Jones", details: patientInfo, encounters: [encounterData], - patientDocuments: [patientDocumentData] + patientDocuments: [patientDocumentData], }; const inferenceTypes = [ @@ -200,21 +212,22 @@ function createRequestBody(): CreateJobParameters { "criticalRecommendation", "followupRecommendation", "followupCommunication", - "radiologyProcedure"]; + "radiologyProcedure", + ]; const followupRecommendationOptions = { includeRecommendationsWithNoSpecifiedModality: true, includeRecommendationsInReferences: true, - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const findingOptions = { - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const inferenceOptions = { followupRecommendationOptions: followupRecommendationOptions, - findingOptions: findingOptions + findingOptions: findingOptions, }; // Create RI Configuration @@ -223,7 +236,7 @@ function createRequestBody(): CreateJobParameters { inferenceTypes: inferenceTypes, locale: "en-US", verbose: false, - includeEvidence: true + includeEvidence: true, }; // create RI Data @@ -231,16 +244,15 @@ function createRequestBody(): CreateJobParameters { jobData: { patients: [patientData], configuration: configuration, - } + }, }; return { body: RadiologyInsightsJob, }; - } -export async function main() { +export async function main(): Promise { const credential = new DefaultAzureCredential(); const client = AzureHealthInsightsClient(endpoint, credential); @@ -250,7 +262,9 @@ export async function main() { // Initiate radiology insights job and retrieve results const dateString = Date.now(); const jobID = "jobId-" + dateString; - const initialResponse = await client.path("/radiology-insights/jobs/{id}", jobID).put(radiologyInsightsParameter); + const initialResponse = await client + .path("/radiology-insights/jobs/{id}", jobID) + .put(radiologyInsightsParameter); if (isUnexpected(initialResponse)) { throw initialResponse; } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_laterality_discrepancy_inference_async.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_laterality_discrepancy_inference_async.ts index e5006715e287..cfdeabadd74c 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_laterality_discrepancy_inference_async.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_laterality_discrepancy_inference_async.ts @@ -5,24 +5,20 @@ * Displays the laterality discrepancy of the Radiology Insights request. */ import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - +import "dotenv/config"; +import type { CreateJobParameters, RadiologyInsightsJobOutput } from "../src/index.js"; import AzureHealthInsightsClient, { ClinicalDocumentTypeEnum, - CreateJobParameters, - RadiologyInsightsJobOutput, getLongRunningPoller, - isUnexpected -} from "../src"; - -dotenv.config(); + isUnexpected, +} from "../src/index.js"; // You will need to set this environment variables or edit the following values const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; /** - * Print the laterality discrepancy recommendation inference + * Print the laterality discrepancy recommendation inference */ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void { @@ -30,12 +26,14 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void const results = radiologyInsightsResult.result; if (results !== undefined) { results.patientResults.forEach((patientResult: any) => { - patientResult.inferences.forEach((inference: { kind: string; lateralityIndication: any }) => { - if (inference.kind === "lateralityDiscrepancy") { - console.log("Laterality Discrepancy Inference found: "); - displayCodes(inference.lateralityIndication); - } - }); + patientResult.inferences.forEach( + (inference: { kind: string; lateralityIndication: any }) => { + if (inference.kind === "lateralityDiscrepancy") { + console.log("Laterality Discrepancy Inference found: "); + displayCodes(inference.lateralityIndication); + } + }, + ); }); } } else { @@ -48,26 +46,31 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void function displayCodes(codeableConcept: any): void { codeableConcept.coding?.forEach((coding: any) => { if ("code" in coding) { - console.log(" Coding: " + coding.code + ", " + coding.display + " (" + coding.system + "), type: " + coding.type); + console.log( + " Coding: " + + coding.code + + ", " + + coding.display + + " (" + + coding.system + + "), type: " + + coding.type, + ); } }); } - } - // Create request body for radiology insights function createRequestBody(): CreateJobParameters { - const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", code: "26688-1", - display: "US BREAST - LEFT LIMITED" + display: "US BREAST - LEFT LIMITED", }; - const code = { - coding: [codingData] + coding: [codingData], }; const patientInfo = { @@ -78,10 +81,10 @@ function createRequestBody(): CreateJobParameters { const encounterData = { id: "encounterid1", period: { - "start": "2021-8-28T00:00:00", - "end": "2021-8-28T00:00:00" + start: "2021-8-28T00:00:00", + end: "2021-8-28T00:00:00", }, - class: "inpatient" + class: "inpatient", }; const authorData = { @@ -91,12 +94,12 @@ function createRequestBody(): CreateJobParameters { const orderedProceduresData = { code: code, - description: "US BREAST - LEFT LIMITED" + description: "US BREAST - LEFT LIMITED", }; const administrativeMetadata = { orderedProcedures: [orderedProceduresData], - encounterId: "encounterid1" + encounterId: "encounterid1", }; const content = { @@ -107,7 +110,7 @@ function createRequestBody(): CreateJobParameters { Findings: Targeted imaging of the left breast is performed from the 6:00 to the 9:00 position. At the 6:00 position, 5 cm from the nipple, there is a 3 x 2 x 4 mm minimally hypoechoic mass with a peripheral calcification. - This may correspond to the mammographic finding. No other cystic or solid masses visualized.` + This may correspond to the mammographic finding. No other cystic or solid masses visualized.`, }; const patientDocumentData = { @@ -120,15 +123,14 @@ function createRequestBody(): CreateJobParameters { administrativeMetadata: administrativeMetadata, content: content, createdAt: new Date("2021-05-31T16:00:00.000Z"), - orderedProceduresAsCsv: "US BREAST - LEFT LIMITED" + orderedProceduresAsCsv: "US BREAST - LEFT LIMITED", }; - const patientData = { id: "Samantha Jones", details: patientInfo, encounters: [encounterData], - patientDocuments: [patientDocumentData] + patientDocuments: [patientDocumentData], }; const inferenceTypes = [ @@ -142,21 +144,22 @@ function createRequestBody(): CreateJobParameters { "criticalRecommendation", "followupRecommendation", "followupCommunication", - "radiologyProcedure"]; + "radiologyProcedure", + ]; const followupRecommendationOptions = { includeRecommendationsWithNoSpecifiedModality: true, includeRecommendationsInReferences: true, - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const findingOptions = { - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const inferenceOptions = { followupRecommendationOptions: followupRecommendationOptions, - findingOptions: findingOptions + findingOptions: findingOptions, }; // Create RI Configuration @@ -165,7 +168,7 @@ function createRequestBody(): CreateJobParameters { inferenceTypes: inferenceTypes, locale: "en-US", verbose: false, - includeEvidence: true + includeEvidence: true, }; // create RI Data @@ -173,16 +176,15 @@ function createRequestBody(): CreateJobParameters { jobData: { patients: [patientData], configuration: configuration, - } + }, }; return { body: RadiologyInsightsJob, }; - } -export async function main() { +export async function main(): Promise { const credential = new DefaultAzureCredential(); const client = AzureHealthInsightsClient(endpoint, credential); @@ -192,7 +194,9 @@ export async function main() { // Initiate radiology insights job and retrieve results const dateString = Date.now(); const jobID = "jobId-" + dateString; - const initialResponse = await client.path("/radiology-insights/jobs/{id}", jobID).put(radiologyInsightsParameter); + const initialResponse = await client + .path("/radiology-insights/jobs/{id}", jobID) + .put(radiologyInsightsParameter); if (isUnexpected(initialResponse)) { throw initialResponse; } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_limited_order_discrepancy_inference_async.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_limited_order_discrepancy_inference_async.ts index 3e16402a569c..ae35f1563f0b 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_limited_order_discrepancy_inference_async.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_limited_order_discrepancy_inference_async.ts @@ -5,31 +5,27 @@ * Displays the limited order discrepancy of the Radiology Insights request. */ import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - +import "dotenv/config"; +import type { CreateJobParameters, RadiologyInsightsJobOutput } from "../src/index.js"; import AzureHealthInsightsClient, { ClinicalDocumentTypeEnum, - CreateJobParameters, - RadiologyInsightsJobOutput, getLongRunningPoller, - isUnexpected -} from "../src"; - -dotenv.config(); + isUnexpected, +} from "../src/index.js"; // You will need to set this environment variables or edit the following values const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; /** - * Print the limited order discrepancy inference + * Print the limited order discrepancy inference */ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void { if (radiologyInsightsResult.status === "succeeded") { const results = radiologyInsightsResult.result; if (results !== undefined) { - results.patientResults.forEach((patientResult: { inferences: any[]; }) => { + results.patientResults.forEach((patientResult: { inferences: any[] }) => { if (patientResult.inferences) { patientResult.inferences.forEach((inference) => { if (inference.kind === "limitedOrderDiscrepancy") { @@ -37,7 +33,7 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void if ("orderType" in inference) { console.log(" Ordertype: "); displayCodes(inference.orderType); - }; + } inference.presentBodyParts?.forEach((bodyparts: any) => { console.log(" Present Body Parts: "); @@ -63,24 +59,24 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void function displayCodes(codeableConcept: any): void { codeableConcept.coding?.forEach((coding: any) => { if ("code" in coding) { - console.log(" Coding: " + coding.code + ", " + coding.display + " (" + coding.system + ")"); + console.log( + " Coding: " + coding.code + ", " + coding.display + " (" + coding.system + ")", + ); } }); } - } // Create request body for radiology insights function createRequestBody(): CreateJobParameters { - const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", code: "30704-1", - display: "US ABDOMEN LIMITED" + display: "US ABDOMEN LIMITED", }; const code = { - coding: [codingData] + coding: [codingData], }; const patientInfo = { @@ -91,10 +87,10 @@ function createRequestBody(): CreateJobParameters { const encounterData = { id: "encounterid1", period: { - "start": "2021-8-28T00:00:00", - "end": "2021-8-28T00:00:00" + start: "2021-8-28T00:00:00", + end: "2021-8-28T00:00:00", }, - class: "inpatient" + class: "inpatient", }; const authorData = { @@ -104,12 +100,12 @@ function createRequestBody(): CreateJobParameters { const orderedProceduresData = { code: code, - description: "US ABDOMEN LIMITED" + description: "US ABDOMEN LIMITED", }; const administrativeMetadata = { orderedProcedures: [orderedProceduresData], - encounterId: "encounterid1" + encounterId: "encounterid1", }; const content = { @@ -158,13 +154,13 @@ function createRequestBody(): CreateJobParameters { administrativeMetadata: administrativeMetadata, content: content, createdAt: new Date("2021-05-31T16:00:00.000Z"), - orderedProceduresAsCsv: "US ABDOMEN LIMITED" + orderedProceduresAsCsv: "US ABDOMEN LIMITED", }; const patientData = { id: "Samantha Jones", details: patientInfo, encounters: [encounterData], - patientDocuments: [patientDocumentData] + patientDocuments: [patientDocumentData], }; const inferenceTypes = [ @@ -178,21 +174,22 @@ function createRequestBody(): CreateJobParameters { "criticalRecommendation", "followupRecommendation", "followupCommunication", - "radiologyProcedure"]; + "radiologyProcedure", + ]; const followupRecommendationOptions = { includeRecommendationsWithNoSpecifiedModality: true, includeRecommendationsInReferences: true, - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const findingOptions = { - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const inferenceOptions = { followupRecommendationOptions: followupRecommendationOptions, - findingOptions: findingOptions + findingOptions: findingOptions, }; // Create RI Configuration @@ -201,7 +198,7 @@ function createRequestBody(): CreateJobParameters { inferenceTypes: inferenceTypes, locale: "en-US", verbose: false, - includeEvidence: true + includeEvidence: true, }; // create RI Data @@ -209,16 +206,15 @@ function createRequestBody(): CreateJobParameters { jobData: { patients: [patientData], configuration: configuration, - } + }, }; return { body: RadiologyInsightsJob, }; - } -export async function main() { +export async function main(): Promise { const credential = new DefaultAzureCredential(); const client = AzureHealthInsightsClient(endpoint, credential); @@ -228,7 +224,9 @@ export async function main() { // Initiate radiology insights job and retrieve results const dateString = Date.now(); const jobID = "jobId-" + dateString; - const initialResponse = await client.path("/radiology-insights/jobs/{id}", jobID).put(radiologyInsightsParameter); + const initialResponse = await client + .path("/radiology-insights/jobs/{id}", jobID) + .put(radiologyInsightsParameter); if (isUnexpected(initialResponse)) { throw initialResponse; } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_radiology_procedure_inference_async.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_radiology_procedure_inference_async.ts index 72001e661b90..b9f2db48faca 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_radiology_procedure_inference_async.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_radiology_procedure_inference_async.ts @@ -5,31 +5,27 @@ * Displays the radiology procedure of the Radiology Insights request. */ import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - +import "dotenv/config"; +import type { CreateJobParameters, RadiologyInsightsJobOutput } from "../src/index.js"; import AzureHealthInsightsClient, { ClinicalDocumentTypeEnum, - CreateJobParameters, - RadiologyInsightsJobOutput, getLongRunningPoller, - isUnexpected -} from "../src"; - -dotenv.config(); + isUnexpected, +} from "../src/index.js"; // You will need to set this environment variables or edit the following values const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; /** - * Print the radiology procedure inference + * Print the radiology procedure inference */ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void { if (radiologyInsightsResult.status === "succeeded") { const results = radiologyInsightsResult.result; if (results !== undefined) { - results.patientResults.forEach((patientResult: { inferences: any[]; }) => { + results.patientResults.forEach((patientResult: { inferences: any[] }) => { if (patientResult.inferences) { patientResult.inferences.forEach((inference) => { if (inference.kind === "radiologyProcedure") { @@ -71,7 +67,9 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void function displayCodes(codeableConcept: any): void { codeableConcept.coding?.forEach((coding: any) => { if ("code" in coding) { - console.log(" Coding: " + coding.code + ", " + coding.display + " (" + coding.system + ")"); + console.log( + " Coding: " + coding.code + ", " + coding.display + " (" + coding.system + ")", + ); } }); } @@ -94,20 +92,18 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void displayCodes(images.view.code); } } - } // Create request body for radiology insights function createRequestBody(): CreateJobParameters { - const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", code: "24727-0", - display: "CT HEAD W CONTRAST IV" + display: "CT HEAD W CONTRAST IV", }; const code = { - coding: [codingData] + coding: [codingData], }; const patientInfo = { @@ -118,10 +114,10 @@ function createRequestBody(): CreateJobParameters { const encounterData = { id: "encounterid1", period: { - "start": "2021-8-28T00:00:00", - "end": "2021-8-28T00:00:00" + start: "2021-8-28T00:00:00", + end: "2021-8-28T00:00:00", }, - class: "inpatient" + class: "inpatient", }; const authorData = { @@ -131,12 +127,12 @@ function createRequestBody(): CreateJobParameters { const orderedProceduresData = { code: code, - description: "CT HEAD W CONTRAST IV" + description: "CT HEAD W CONTRAST IV", }; const administrativeMetadata = { orderedProcedures: [orderedProceduresData], - encounterId: "encounterid1" + encounterId: "encounterid1", }; const content = { @@ -163,15 +159,14 @@ function createRequestBody(): CreateJobParameters { administrativeMetadata: administrativeMetadata, content: content, createdAt: new Date("2021-05-31T16:00:00.000Z"), - orderedProceduresAsCsv: "CT HEAD W CONTRAST IV" + orderedProceduresAsCsv: "CT HEAD W CONTRAST IV", }; - const patientData = { id: "Samantha Jones", details: patientInfo, encounters: [encounterData], - patientDocuments: [patientDocumentData] + patientDocuments: [patientDocumentData], }; const inferenceTypes = [ @@ -185,21 +180,22 @@ function createRequestBody(): CreateJobParameters { "criticalRecommendation", "followupRecommendation", "followupCommunication", - "radiologyProcedure"]; + "radiologyProcedure", + ]; const followupRecommendationOptions = { includeRecommendationsWithNoSpecifiedModality: true, includeRecommendationsInReferences: true, - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const findingOptions = { - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const inferenceOptions = { followupRecommendationOptions: followupRecommendationOptions, - findingOptions: findingOptions + findingOptions: findingOptions, }; // Create RI Configuration @@ -208,7 +204,7 @@ function createRequestBody(): CreateJobParameters { inferenceTypes: inferenceTypes, locale: "en-US", verbose: false, - includeEvidence: true + includeEvidence: true, }; // create RI Data @@ -216,16 +212,15 @@ function createRequestBody(): CreateJobParameters { jobData: { patients: [patientData], configuration: configuration, - } + }, }; return { body: RadiologyInsightsJob, }; - } -export async function main() { +export async function main(): Promise { const credential = new DefaultAzureCredential(); const client = AzureHealthInsightsClient(endpoint, credential); @@ -235,7 +230,9 @@ export async function main() { // Initiate radiology insights job and retrieve results const dateString = Date.now(); const jobID = "jobId-" + dateString; - const initialResponse = await client.path("/radiology-insights/jobs/{id}", jobID).put(radiologyInsightsParameter); + const initialResponse = await client + .path("/radiology-insights/jobs/{id}", jobID) + .put(radiologyInsightsParameter); if (isUnexpected(initialResponse)) { throw initialResponse; } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_sex_mismatch_inference_async.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_sex_mismatch_inference_async.ts index 5b199a92e189..8c2921e76acd 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_sex_mismatch_inference_async.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/samples-dev/sample_sex_mismatch_inference_async.ts @@ -5,37 +5,33 @@ * Displays the sex mismatch of the Radiology Insights request. */ import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - +import "dotenv/config"; +import type { CreateJobParameters, RadiologyInsightsJobOutput } from "../src/index.js"; import AzureHealthInsightsClient, { ClinicalDocumentTypeEnum, - CreateJobParameters, - RadiologyInsightsJobOutput, getLongRunningPoller, - isUnexpected -} from "../src"; - -dotenv.config(); + isUnexpected, +} from "../src/index.js"; // You will need to set this environment variables or edit the following values const endpoint = process.env["HEALTH_INSIGHTS_ENDPOINT"] || ""; /** - * Print the sex mismatch inference + * Print the sex mismatch inference */ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void { if (radiologyInsightsResult.status === "succeeded") { const results = radiologyInsightsResult.result; if (results !== undefined) { - results.patientResults.forEach((patientResult: { inferences: any[]; }) => { + results.patientResults.forEach((patientResult: { inferences: any[] }) => { if (patientResult.inferences) { patientResult.inferences.forEach((inference) => { if (inference.kind === "sexMismatch") { console.log("Sex Mismatch Inference found: "); if ("sexIndication" in inference) { - displayCodes(inference.sexIndication) + displayCodes(inference.sexIndication); } } }); @@ -52,24 +48,24 @@ function printResults(radiologyInsightsResult: RadiologyInsightsJobOutput): void function displayCodes(codeableConcept: any): void { codeableConcept.coding?.forEach((coding: any) => { if ("code" in coding) { - console.log(" Coding: " + coding.code + ", " + coding.display + " (" + coding.system + ")"); + console.log( + " Coding: " + coding.code + ", " + coding.display + " (" + coding.system + ")", + ); } }); } - } // Create request body for radiology insights function createRequestBody(): CreateJobParameters { - const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", code: "USPELVIS", - display: "US PELVIS COMPLETE" + display: "US PELVIS COMPLETE", }; const code = { - coding: [codingData] + coding: [codingData], }; const patientInfo = { @@ -80,10 +76,10 @@ function createRequestBody(): CreateJobParameters { const encounterData = { id: "encounterid1", period: { - "start": "2021-8-28T00:00:00", - "end": "2021-8-28T00:00:00" + start: "2021-8-28T00:00:00", + end: "2021-8-28T00:00:00", }, - class: "inpatient" + class: "inpatient", }; const authorData = { @@ -93,12 +89,12 @@ function createRequestBody(): CreateJobParameters { const orderedProceduresData = { code: code, - description: "US PELVIS COMPLETE" + description: "US PELVIS COMPLETE", }; const administrativeMetadata = { orderedProcedures: [orderedProceduresData], - encounterId: "encounterid1" + encounterId: "encounterid1", }; const content = { @@ -140,15 +136,14 @@ function createRequestBody(): CreateJobParameters { administrativeMetadata: administrativeMetadata, content: content, createdAt: new Date("2021-05-31T16:00:00.000Z"), - orderedProceduresAsCsv: "US PELVIS COMPLETE" + orderedProceduresAsCsv: "US PELVIS COMPLETE", }; - const patientData = { id: "Samantha Jones", details: patientInfo, encounters: [encounterData], - patientDocuments: [patientDocumentData] + patientDocuments: [patientDocumentData], }; const inferenceTypes = [ @@ -162,21 +157,22 @@ function createRequestBody(): CreateJobParameters { "criticalRecommendation", "followupRecommendation", "followupCommunication", - "radiologyProcedure"]; + "radiologyProcedure", + ]; const followupRecommendationOptions = { includeRecommendationsWithNoSpecifiedModality: true, includeRecommendationsInReferences: true, - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const findingOptions = { - provideFocusedSentenceEvidence: true + provideFocusedSentenceEvidence: true, }; const inferenceOptions = { followupRecommendationOptions: followupRecommendationOptions, - findingOptions: findingOptions + findingOptions: findingOptions, }; // Create RI Configuration @@ -185,7 +181,7 @@ function createRequestBody(): CreateJobParameters { inferenceTypes: inferenceTypes, locale: "en-US", verbose: false, - includeEvidence: true + includeEvidence: true, }; // create RI Data @@ -193,16 +189,15 @@ function createRequestBody(): CreateJobParameters { jobData: { patients: [patientData], configuration: configuration, - } + }, }; return { body: RadiologyInsightsJob, }; - } -export async function main() { +export async function main(): Promise { const credential = new DefaultAzureCredential(); const client = AzureHealthInsightsClient(endpoint, credential); @@ -212,7 +207,9 @@ export async function main() { // Initiate radiology insights job and retrieve results const dateString = Date.now(); const jobID = "jobId-" + dateString; - const initialResponse = await client.path("/radiology-insights/jobs/{id}", jobID).put(radiologyInsightsParameter); + const initialResponse = await client + .path("/radiology-insights/jobs/{id}", jobID) + .put(radiologyInsightsParameter); if (isUnexpected(initialResponse)) { throw initialResponse; } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/azureHealthInsightsClient.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/azureHealthInsightsClient.ts index b646b318053a..7ee1d76c4bd8 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/azureHealthInsightsClient.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/azureHealthInsightsClient.ts @@ -4,8 +4,8 @@ import type { ClientOptions } from "@azure-rest/core-client"; import { getClient } from "@azure-rest/core-client"; import type { TokenCredential } from "@azure/core-auth"; -import type { AzureHealthInsightsClient } from "./clientDefinitions"; -import { logger } from "./logger"; +import type { AzureHealthInsightsClient } from "./clientDefinitions.js"; +import { logger } from "./logger.js"; /** * Initialize a new instance of `AzureHealthInsightsClient` diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/clientDefinitions.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/clientDefinitions.ts index e35d4a60d70c..44315dcfdcec 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/clientDefinitions.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/clientDefinitions.ts @@ -2,14 +2,14 @@ // Licensed under the MIT License. import type { Client, StreamableMethod } from "@azure-rest/core-client"; -import type { CreateJobParameters, GetJobParameters } from "./parameters"; +import type { CreateJobParameters, GetJobParameters } from "./parameters.js"; import type { CreateJob200Response, CreateJob201Response, CreateJobDefaultResponse, GetJob200Response, GetJobDefaultResponse, -} from "./responses"; +} from "./responses.js"; /** Gets the Radiology Insights job. */ export interface GetJob { diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/index.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/index.ts index f59844d33546..79c13bbc8aea 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/index.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/index.ts @@ -1,16 +1,17 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import AzureHealthInsightsClient from "./azureHealthInsightsClient"; +import AzureHealthInsightsClient from "./azureHealthInsightsClient.js"; -export * from "./azureHealthInsightsClient"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./parameters"; -export * from "./pollingHelper"; -export * from "./responses"; -export * from "./serializeHelper"; +export * from "./azureHealthInsightsClient.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./parameters.js"; +export * from "./pollingHelper.js"; +export * from "./responses.js"; +export * from "./serializeHelper.js"; +// eslint-disable-next-line @azure/azure-sdk/ts-modules-only-named export default AzureHealthInsightsClient; diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/isUnexpected.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/isUnexpected.ts index 45f2b2c3cb4a..a462994c8e8e 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/isUnexpected.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/isUnexpected.ts @@ -8,7 +8,7 @@ import type { CreateJobLogicalResponse, GetJob200Response, GetJobDefaultResponse, -} from "./responses"; +} from "./responses.js"; const responseMap: Record = { "GET /radiology-insights/jobs/{id}": ["200"], diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/parameters.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/parameters.ts index fbb6ca41dfef..1610e24a7ee9 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/parameters.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/parameters.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import type { RequestParameters } from "@azure-rest/core-client"; -import type { RadiologyInsightsJob } from "./models"; +import type { RadiologyInsightsJob } from "./models.js"; /** Get the job query parameter properties */ export interface GetJobQueryParamProperties { diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/pollingHelper.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/pollingHelper.ts index eec9de7b36a0..55f12a7d3c63 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/pollingHelper.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/pollingHelper.ts @@ -15,7 +15,7 @@ import type { CreateJob201Response, CreateJobDefaultResponse, CreateJobLogicalResponse, -} from "./responses"; +} from "./responses.js"; /** * Helper function that builds a Poller object to help polling a long running operation. * @param client - Client to use for sending the request to get additional pages. diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/responses.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/responses.ts index b14c229f84c0..51e0b1cb5b11 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/src/responses.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/src/responses.ts @@ -3,7 +3,10 @@ import type { HttpResponse } from "@azure-rest/core-client"; import type { RawHttpHeaders } from "@azure/core-rest-pipeline"; -import type { HealthInsightsErrorResponseOutput, RadiologyInsightsJobOutput } from "./outputModels"; +import type { + HealthInsightsErrorResponseOutput, + RadiologyInsightsJobOutput, +} from "./outputModels.js"; /** Get the headers of the succeeded request */ export interface GetJob200Headers { diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleAgeMismatchInferenceAsync.spec.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleAgeMismatchInferenceAsync.spec.ts index e7a5a9f51830..993ad9c994f1 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleAgeMismatchInferenceAsync.spec.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleAgeMismatchInferenceAsync.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureHealthInsightsClient } from "../../src"; -import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src"; -import { createRecorder, createTestClient } from "./utils/recordedClient"; +import type { AzureHealthInsightsClient } from "../../src/index.js"; +import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src/index.js"; +import { createRecorder, createTestClient } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", @@ -191,16 +190,16 @@ describe("Age Mismatch Inference Test", () => { let recorder: Recorder; let client: AzureHealthInsightsClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createTestClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("age mismatch inference test", async function () { + it("age mismatch inference test", async () => { const result = await client .path("/radiology-insights/jobs/{id}", "jobId-17138794618263") .put(param); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleCompleteOrderDiscrepancyInferenceAsync.spec.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleCompleteOrderDiscrepancyInferenceAsync.spec.ts index 8d054489c7ab..4c569d8a3e71 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleCompleteOrderDiscrepancyInferenceAsync.spec.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleCompleteOrderDiscrepancyInferenceAsync.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureHealthInsightsClient } from "../../src"; -import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src"; -import { createRecorder, createTestClient } from "./utils/recordedClient"; +import type { AzureHealthInsightsClient } from "../../src/index.js"; +import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src/index.js"; +import { createRecorder, createTestClient } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", @@ -192,16 +191,16 @@ describe("Complete Order Discrepancy Inference Test", () => { let recorder: Recorder; let client: AzureHealthInsightsClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createTestClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("complete order discrepancy inference test", async function () { + it("complete order discrepancy inference test", async () => { const result = await client .path("/radiology-insights/jobs/{id}", "jobId-17138794703804") .put(param); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleCriticalResultInferenceAsync.spec.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleCriticalResultInferenceAsync.spec.ts index 116c318802a1..c4fe432f3081 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleCriticalResultInferenceAsync.spec.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleCriticalResultInferenceAsync.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureHealthInsightsClient } from "../../src"; -import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src"; -import { createRecorder, createTestClient } from "./utils/recordedClient"; +import type { AzureHealthInsightsClient } from "../../src/index.js"; +import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src/index.js"; +import { createRecorder, createTestClient } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", @@ -169,16 +168,16 @@ describe("Critical Result Inference Test", () => { let recorder: Recorder; let client: AzureHealthInsightsClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createTestClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("critical result inference test", async function () { + it("critical result inference test", async () => { const result = await client .path("/radiology-insights/jobs/{id}", "jobId-17138794753465") .put(param); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleFindingInferenceAsync.spec.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleFindingInferenceAsync.spec.ts index 6dc64f8f5e1f..b5aab505ae50 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleFindingInferenceAsync.spec.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleFindingInferenceAsync.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureHealthInsightsClient } from "../../src"; -import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src"; -import { createRecorder, createTestClient } from "./utils/recordedClient"; +import type { AzureHealthInsightsClient } from "../../src/index.js"; +import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src/index.js"; +import { createRecorder, createTestClient } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", @@ -201,16 +200,16 @@ describe("Finding Inference Test", () => { let recorder: Recorder; let client: AzureHealthInsightsClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createTestClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("finding inference test", async function () { + it("finding inference test", async () => { const result = await client .path("/radiology-insights/jobs/{id}", "jobId-17138794807336") .put(param); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleFollowUpCommunicationAsync.spec.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleFollowUpCommunicationAsync.spec.ts index 0b9d1901896c..7f01632e1b25 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleFollowUpCommunicationAsync.spec.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleFollowUpCommunicationAsync.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureHealthInsightsClient } from "../../src"; -import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src"; -import { createRecorder, createTestClient } from "./utils/recordedClient"; +import type { AzureHealthInsightsClient } from "../../src/index.js"; +import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src/index.js"; +import { createRecorder, createTestClient } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", @@ -182,16 +181,16 @@ describe("Follow Up Communication Inference Test", () => { let recorder: Recorder; let client: AzureHealthInsightsClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createTestClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("follow up communication inference test", async function () { + it("follow up communication inference test", async () => { const result = await client .path("/radiology-insights/jobs/{id}", "jobId-17138794923687") .put(param); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleFollowUpRecommendationAsync.spec.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleFollowUpRecommendationAsync.spec.ts index 19037e7fde74..fae60fa25217 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleFollowUpRecommendationAsync.spec.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleFollowUpRecommendationAsync.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureHealthInsightsClient } from "../../src"; -import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src"; -import { createRecorder, createTestClient } from "./utils/recordedClient"; +import type { AzureHealthInsightsClient } from "../../src/index.js"; +import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src/index.js"; +import { createRecorder, createTestClient } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", @@ -240,16 +239,16 @@ describe("Follow Up Recommendation Inference Test", () => { let recorder: Recorder; let client: AzureHealthInsightsClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createTestClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("follow up recommendation inference test", async function () { + it("follow up recommendation inference test", async () => { const result = await client .path("/radiology-insights/jobs/{id}", "jobId-17138794993579") .put(param); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleLateralityDiscrepancyInferenceAsync.spec.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleLateralityDiscrepancyInferenceAsync.spec.ts index 10df7301c2ef..4e950dbe8f2b 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleLateralityDiscrepancyInferenceAsync.spec.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleLateralityDiscrepancyInferenceAsync.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureHealthInsightsClient } from "../../src"; -import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src"; -import { createRecorder, createTestClient } from "./utils/recordedClient"; +import type { AzureHealthInsightsClient } from "../../src/index.js"; +import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src/index.js"; +import { createRecorder, createTestClient } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", @@ -169,16 +168,16 @@ describe("Laterality Discrepancy Inference Test", () => { let recorder: Recorder; let client: AzureHealthInsightsClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createTestClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("laterality discrepancy inference test", async function () { + it("laterality discrepancy inference test", async () => { const result = await client .path("/radiology-insights/jobs/{id}", "jobId-17138795064698") .put(param); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleLimitedOrderDiscrepancyInferenceAsync.spec.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleLimitedOrderDiscrepancyInferenceAsync.spec.ts index f10672c8deee..286f1cb657b1 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleLimitedOrderDiscrepancyInferenceAsync.spec.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleLimitedOrderDiscrepancyInferenceAsync.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureHealthInsightsClient } from "../../src"; -import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src"; -import { createRecorder, createTestClient } from "./utils/recordedClient"; +import type { AzureHealthInsightsClient } from "../../src/index.js"; +import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src/index.js"; +import { createRecorder, createTestClient } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", @@ -202,16 +201,16 @@ describe("Limited Order Discrepancy Inference Test", () => { let recorder: Recorder; let client: AzureHealthInsightsClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createTestClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("limited order discrepancy inference test", async function () { + it("limited order discrepancy inference test", async () => { const result = await client .path("/radiology-insights/jobs/{id}", "jobId-17138795112952") .put(param); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleRadiologyProcedureInferenceAsync.spec.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleRadiologyProcedureInferenceAsync.spec.ts index 4324afc1c2b4..a2ef0cc6837b 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleRadiologyProcedureInferenceAsync.spec.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleRadiologyProcedureInferenceAsync.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureHealthInsightsClient } from "../../src"; -import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src"; -import { createRecorder, createTestClient } from "./utils/recordedClient"; +import type { AzureHealthInsightsClient } from "../../src/index.js"; +import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src/index.js"; +import { createRecorder, createTestClient } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", @@ -219,16 +218,16 @@ describe("Radiology Procedure Inference Test", () => { let recorder: Recorder; let client: AzureHealthInsightsClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createTestClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("radiology procedure inference test", async function () { + it("radiology procedure inference test", async () => { const result = await client .path("/radiology-insights/jobs/{id}", "jobId-17138795206163") .put(param); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleSexMismatchInferenceAsync.spec.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleSexMismatchInferenceAsync.spec.ts index 0c59597c47fb..4f19aa54f03f 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleSexMismatchInferenceAsync.spec.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/SampleSexMismatchInferenceAsync.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureHealthInsightsClient } from "../../src"; -import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src"; -import { createRecorder, createTestClient } from "./utils/recordedClient"; +import type { AzureHealthInsightsClient } from "../../src/index.js"; +import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src/index.js"; +import { createRecorder, createTestClient } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const codingData = { system: "Http://hl7.org/fhir/ValueSet/cpt-all", @@ -183,16 +182,16 @@ describe("Sex Mismatch Inference Test", () => { let recorder: Recorder; let client: AzureHealthInsightsClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createTestClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("sex mismatch inference test", async function () { + it("sex mismatch inference test", async () => { const result = await client .path("/radiology-insights/jobs/{id}", "jobId-17138795260264") .put(param); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/Test_RadiologyInsights_async.spec.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/Test_RadiologyInsights_async.spec.ts index 183d65118897..5dcae2f9617d 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/Test_RadiologyInsights_async.spec.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/Test_RadiologyInsights_async.spec.ts @@ -2,11 +2,10 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { AzureHealthInsightsClient } from "../../src"; -import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src"; -import { createRecorder, createTestClient } from "./utils/recordedClient"; +import type { AzureHealthInsightsClient } from "../../src/index.js"; +import { ClinicalDocumentTypeEnum, getLongRunningPoller } from "../../src/index.js"; +import { createRecorder, createTestClient } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const codingData = { system: "http://www.nlm.nih.gov/research/umls", @@ -144,16 +143,16 @@ describe("Radiology Insights Test", () => { let recorder: Recorder; let client: AzureHealthInsightsClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = await createTestClient(recorder); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("radiology Insights test", async function () { + it("radiology Insights test", async () => { const result = await client .path("/radiology-insights/jobs/{id}", "jobId-17138795314335") .put(param); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/utils/env.browser.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/utils/env-browser.mts similarity index 100% rename from sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/utils/env.browser.ts rename to sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/utils/env-browser.mts diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/utils/recordedClient.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/utils/recordedClient.ts index b724a91ec15c..2482e9bf99b3 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/utils/recordedClient.ts +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/test/public/utils/recordedClient.ts @@ -2,13 +2,12 @@ // Licensed under the MIT License. import { createTestCredential } from "@azure-tools/test-credential"; -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { assertEnvironmentVariable, Recorder } from "@azure-tools/test-recorder"; import { DefaultAzureCredential, logger } from "@azure/identity"; -import type { Context } from "mocha"; -import type { AzureHealthInsightsClient } from "../../../src"; -import AHIClient from "../../../src"; -import "./env"; +import type { AzureHealthInsightsClient } from "../../../src/index.js"; +import AHIClient from "../../../src/index.js"; +import "./env.js"; const envSetupForPlayback: Record = { HEALTH_INSIGHTS_ENDPOINT: "https://sanitized/", @@ -28,8 +27,8 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); +export async function createRecorder(context: TestInfo): Promise { + const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/tsconfig.browser.config.json b/sdk/healthinsights/health-insights-radiologyinsights-rest/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/tsconfig.json b/sdk/healthinsights/health-insights-radiologyinsights-rest/tsconfig.json index 0510e8cffc8f..3728324f5b8f 100644 --- a/sdk/healthinsights/health-insights-radiologyinsights-rest/tsconfig.json +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/tsconfig.json @@ -1,11 +1,20 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "paths": { "@azure-rest/health-insights-radiologyinsights": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/vitest.browser.config.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/healthinsights/health-insights-radiologyinsights-rest/vitest.config.ts b/sdk/healthinsights/health-insights-radiologyinsights-rest/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/healthinsights/health-insights-radiologyinsights-rest/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md b/sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md index de275795f929..e42b5208579a 100644 --- a/sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md +++ b/sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md @@ -1,15 +1,85 @@ # Release History - -## 4.0.1 (Unreleased) - + +## 4.1.0-beta.1 (2024-11-12) +Compared with version 4.0.0 + ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added operation group Gateways + - Added operation group MachineRunCommands + - Added operation group SettingsOperations + - Added Interface AgentVersion + - Added Interface AgentVersionsList + - Added Interface Disk + - Added Interface ErrorDetailAutoGenerated + - Added Interface ErrorResponseAutoGenerated + - Added Interface FirmwareProfile + - Added Interface Gateway + - Added Interface GatewaysCreateOrUpdateHeaders + - Added Interface GatewaysCreateOrUpdateOptionalParams + - Added Interface GatewaysDeleteHeaders + - Added Interface GatewaysDeleteOptionalParams + - Added Interface GatewaysGetOptionalParams + - Added Interface GatewaysListByResourceGroupNextOptionalParams + - Added Interface GatewaysListByResourceGroupOptionalParams + - Added Interface GatewaysListBySubscriptionNextOptionalParams + - Added Interface GatewaysListBySubscriptionOptionalParams + - Added Interface GatewaysListResult + - Added Interface GatewaysUpdateOptionalParams + - Added Interface GatewayUpdate + - Added Interface HardwareProfile + - Added Interface HybridIdentityMetadata + - Added Interface HybridIdentityMetadataList + - Added Interface MachineRunCommand + - Added Interface MachineRunCommandInstanceView + - Added Interface MachineRunCommandsCreateOrUpdateHeaders + - Added Interface MachineRunCommandsCreateOrUpdateOptionalParams + - Added Interface MachineRunCommandScriptSource + - Added Interface MachineRunCommandsDeleteHeaders + - Added Interface MachineRunCommandsDeleteOptionalParams + - Added Interface MachineRunCommandsGetOptionalParams + - Added Interface MachineRunCommandsListNextOptionalParams + - Added Interface MachineRunCommandsListOptionalParams + - Added Interface MachineRunCommandsListResult + - Added Interface MachineRunCommandUpdate + - Added Interface NetworkConfiguration + - Added Interface Processor + - Added Interface RunCommandInputParameter + - Added Interface RunCommandManagedIdentity + - Added Interface Settings + - Added Interface SettingsGetOptionalParams + - Added Interface SettingsPatchOptionalParams + - Added Interface SettingsUpdateOptionalParams + - Added Interface StorageProfile + - Added Interface TrackedResourceAutoGenerated + - Added Type Alias ExecutionState + - Added Type Alias GatewaysCreateOrUpdateResponse + - Added Type Alias GatewaysDeleteResponse + - Added Type Alias GatewaysGetResponse + - Added Type Alias GatewaysListByResourceGroupNextResponse + - Added Type Alias GatewaysListByResourceGroupResponse + - Added Type Alias GatewaysListBySubscriptionNextResponse + - Added Type Alias GatewaysListBySubscriptionResponse + - Added Type Alias GatewaysUpdateResponse + - Added Type Alias GatewayType + - Added Type Alias MachineRunCommandsCreateOrUpdateResponse + - Added Type Alias MachineRunCommandsDeleteResponse + - Added Type Alias MachineRunCommandsGetResponse + - Added Type Alias MachineRunCommandsListNextResponse + - Added Type Alias MachineRunCommandsListResponse + - Added Type Alias SettingsGetResponse + - Added Type Alias SettingsPatchResponse + - Added Type Alias SettingsUpdateResponse + - Interface Machine has a new optional parameter firmwareProfile + - Interface Machine has a new optional parameter hardwareProfile + - Interface Machine has a new optional parameter storageProfile + - Interface NetworkInterface has a new optional parameter id + - Interface NetworkInterface has a new optional parameter macAddress + - Interface NetworkInterface has a new optional parameter name + - Added Enum KnownExecutionState + - Added Enum KnownGatewayType + + ## 4.0.0 (2024-10-12) ### Features Added diff --git a/sdk/hybridcompute/arm-hybridcompute/README.md b/sdk/hybridcompute/arm-hybridcompute/README.md index 54a92e8185f5..9ed36d6bf2c2 100644 --- a/sdk/hybridcompute/arm-hybridcompute/README.md +++ b/sdk/hybridcompute/arm-hybridcompute/README.md @@ -6,7 +6,7 @@ The Hybrid Compute Management Client. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcompute/arm-hybridcompute) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-hybridcompute) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-hybridcompute) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-hybridcompute?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/hybridcompute/arm-hybridcompute/_meta.json b/sdk/hybridcompute/arm-hybridcompute/_meta.json index 9ec2e53b558f..e7422a57b72e 100644 --- a/sdk/hybridcompute/arm-hybridcompute/_meta.json +++ b/sdk/hybridcompute/arm-hybridcompute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "15b16d1b5c3cccdecdd1cfe936f6a8005680c557", + "commit": "2d4992bd73955a93f972ba6c476e980e7e16a992", "readme": "specification/hybridcompute/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\hybridcompute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.27 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\hybridcompute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.28 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.13", - "use": "@autorest/typescript@6.0.27" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.15", + "use": "@autorest/typescript@6.0.28" } \ No newline at end of file diff --git a/sdk/hybridcompute/arm-hybridcompute/assets.json b/sdk/hybridcompute/arm-hybridcompute/assets.json index 616866d8b1e9..51cfc773ee0c 100644 --- a/sdk/hybridcompute/arm-hybridcompute/assets.json +++ b/sdk/hybridcompute/arm-hybridcompute/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/hybridcompute/arm-hybridcompute", - "Tag": "js/hybridcompute/arm-hybridcompute_d121632d82" + "Tag": "js/hybridcompute/arm-hybridcompute_0fd9d119d9" } diff --git a/sdk/hybridcompute/arm-hybridcompute/package.json b/sdk/hybridcompute/arm-hybridcompute/package.json index 2631757f9793..00a1cbb6b900 100644 --- a/sdk/hybridcompute/arm-hybridcompute/package.json +++ b/sdk/hybridcompute/arm-hybridcompute/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for HybridComputeManagementClient.", - "version": "4.0.1", + "version": "4.1.0-beta.1", "engines": { "node": ">=18.0.0" }, @@ -28,6 +28,7 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-hybridcompute.d.ts", "devDependencies": { + "@microsoft/api-extractor": "^7.31.1", "typescript": "~5.6.2", "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", @@ -89,7 +90,8 @@ "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped" + "integration-test:browser": "echo skipped", + "update-snippets": "echo skipped" }, "sideEffects": false, "//metadata": { diff --git a/sdk/hybridcompute/arm-hybridcompute/review/arm-hybridcompute.api.md b/sdk/hybridcompute/arm-hybridcompute/review/arm-hybridcompute.api.md index c047dd6b0819..37ac2bc81a8e 100644 --- a/sdk/hybridcompute/arm-hybridcompute/review/arm-hybridcompute.api.md +++ b/sdk/hybridcompute/arm-hybridcompute/review/arm-hybridcompute.api.md @@ -49,6 +49,19 @@ export interface AgentUpgrade { readonly lastAttemptTimestamp?: Date; } +// @public +export interface AgentVersion { + agentVersion?: string; + downloadLink?: string; + osType?: string; +} + +// @public +export interface AgentVersionsList { + nextLink?: string; + value?: AgentVersion[]; +} + // @public export type ArcKindEnum = string; @@ -91,6 +104,17 @@ export interface ConnectionDetail { // @public export type CreatedByType = string; +// @public +export interface Disk { + diskType?: string; + generatedId?: string; + id?: string; + maxSizeInBytes?: number; + name?: string; + path?: string; + usedSpaceInBytes?: number; +} + // @public export interface ErrorAdditionalInfo { readonly info?: Record; @@ -106,11 +130,25 @@ export interface ErrorDetail { readonly target?: string; } +// @public +export interface ErrorDetailAutoGenerated { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetailAutoGenerated[]; + readonly message?: string; + readonly target?: string; +} + // @public export interface ErrorResponse { error?: ErrorDetail; } +// @public +export interface ErrorResponseAutoGenerated { + error?: ErrorDetailAutoGenerated; +} + // @public export type EsuEligibility = string; @@ -126,6 +164,9 @@ export type EsuKeyState = string; // @public export type EsuServerType = string; +// @public +export type ExecutionState = string; + // @public export interface ExtensionMetadata { get(location: string, publisher: string, extensionType: string, version: string, options?: ExtensionMetadataGetOptionalParams): Promise; @@ -175,9 +216,131 @@ export interface ExtensionValueListResult { readonly value?: ExtensionValue[]; } +// @public +export interface FirmwareProfile { + readonly serialNumber?: string; + readonly type?: string; +} + +// @public +export interface Gateway extends TrackedResourceAutoGenerated { + allowedFeatures?: string[]; + readonly gatewayEndpoint?: string; + readonly gatewayId?: string; + gatewayType?: GatewayType; + readonly provisioningState?: ProvisioningState; +} + +// @public +export interface Gateways { + beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, parameters: Gateway, options?: GatewaysCreateOrUpdateOptionalParams): Promise, GatewaysCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, gatewayName: string, parameters: Gateway, options?: GatewaysCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, gatewayName: string, options?: GatewaysDeleteOptionalParams): Promise, GatewaysDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, gatewayName: string, options?: GatewaysDeleteOptionalParams): Promise; + get(resourceGroupName: string, gatewayName: string, options?: GatewaysGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: GatewaysListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: GatewaysListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, gatewayName: string, parameters: GatewayUpdate, options?: GatewaysUpdateOptionalParams): Promise; +} + +// @public +export interface GatewaysCreateOrUpdateHeaders { + azureAsyncOperation?: string; + location?: string; + retryAfter?: number; +} + +// @public +export interface GatewaysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GatewaysCreateOrUpdateResponse = Gateway; + +// @public +export interface GatewaysDeleteHeaders { + azureAsyncOperation?: string; + location?: string; + retryAfter?: number; +} + +// @public +export interface GatewaysDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GatewaysDeleteResponse = GatewaysDeleteHeaders; + +// @public +export interface GatewaysGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewaysGetResponse = Gateway; + +// @public +export interface GatewaysListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewaysListByResourceGroupNextResponse = GatewaysListResult; + +// @public +export interface GatewaysListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewaysListByResourceGroupResponse = GatewaysListResult; + +// @public +export interface GatewaysListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewaysListBySubscriptionNextResponse = GatewaysListResult; + +// @public +export interface GatewaysListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewaysListBySubscriptionResponse = GatewaysListResult; + +// @public +export interface GatewaysListResult { + nextLink?: string; + value: Gateway[]; +} + +// @public +export interface GatewaysUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewaysUpdateResponse = Gateway; + +// @public +export type GatewayType = string; + +// @public +export interface GatewayUpdate extends ResourceUpdate { + allowedFeatures?: string[]; +} + // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export interface HardwareProfile { + readonly numberOfCpuSockets?: number; + readonly processors?: Processor[]; + readonly totalPhysicalMemoryInBytes?: number; +} + // @public export type HotpatchEnablementStatus = string; @@ -193,12 +356,16 @@ export class HybridComputeManagementClient extends coreClient.ServiceClient { // (undocumented) extensionMetadata: ExtensionMetadata; // (undocumented) + gateways: Gateways; + // (undocumented) licenseProfiles: LicenseProfiles; // (undocumented) licenses: Licenses; // (undocumented) machineExtensions: MachineExtensions; // (undocumented) + machineRunCommands: MachineRunCommands; + // (undocumented) machines: Machines; // (undocumented) networkProfileOperations: NetworkProfileOperations; @@ -213,6 +380,8 @@ export class HybridComputeManagementClient extends coreClient.ServiceClient { // (undocumented) privateLinkScopes: PrivateLinkScopes; // (undocumented) + settingsOperations: SettingsOperations; + // (undocumented) subscriptionId: string; } @@ -250,6 +419,19 @@ export interface HybridComputePrivateLinkScopeProperties { publicNetworkAccess?: PublicNetworkAccessType; } +// @public +export interface HybridIdentityMetadata extends ProxyResourceAutoGenerated { + readonly identity?: Identity; + publicKey?: string; + vmId?: string; +} + +// @public +export interface HybridIdentityMetadataList { + nextLink?: string; + value: HybridIdentityMetadata[]; +} + // @public export interface Identity { readonly principalId?: string; @@ -343,6 +525,22 @@ export enum KnownEsuServerType { Standard = "Standard" } +// @public +export enum KnownExecutionState { + Canceled = "Canceled", + Failed = "Failed", + Pending = "Pending", + Running = "Running", + Succeeded = "Succeeded", + TimedOut = "TimedOut", + Unknown = "Unknown" +} + +// @public +export enum KnownGatewayType { + Public = "Public" +} + // @public export enum KnownHotpatchEnablementStatus { ActionRequired = "ActionRequired", @@ -899,6 +1097,8 @@ export interface Machine extends TrackedResource { readonly domainName?: string; readonly errorDetails?: ErrorDetail[]; extensions?: MachineExtensionInstanceView[]; + readonly firmwareProfile?: FirmwareProfile; + readonly hardwareProfile?: HardwareProfile; identity?: Identity; kind?: ArcKindEnum; readonly lastStatusChange?: Date; @@ -919,6 +1119,7 @@ export interface Machine extends TrackedResource { readonly resources?: MachineExtension[]; serviceStatuses?: ServiceStatuses; readonly status?: StatusTypes; + readonly storageProfile?: StorageProfile; vmId?: string; readonly vmUuid?: string; } @@ -1111,6 +1312,117 @@ export interface MachineListResult { value: Machine[]; } +// @public +export interface MachineRunCommand extends TrackedResource { + asyncExecution?: boolean; + errorBlobManagedIdentity?: RunCommandManagedIdentity; + errorBlobUri?: string; + readonly instanceView?: MachineRunCommandInstanceView; + outputBlobManagedIdentity?: RunCommandManagedIdentity; + outputBlobUri?: string; + parameters?: RunCommandInputParameter[]; + protectedParameters?: RunCommandInputParameter[]; + readonly provisioningState?: string; + runAsPassword?: string; + runAsUser?: string; + source?: MachineRunCommandScriptSource; + timeoutInSeconds?: number; +} + +// @public +export interface MachineRunCommandInstanceView { + endTime?: Date; + error?: string; + executionMessage?: string; + executionState?: ExecutionState; + exitCode?: number; + output?: string; + startTime?: Date; + statuses?: ExtensionsResourceStatus[]; +} + +// @public +export interface MachineRunCommands { + beginCreateOrUpdate(resourceGroupName: string, machineName: string, runCommandName: string, runCommandProperties: MachineRunCommand, options?: MachineRunCommandsCreateOrUpdateOptionalParams): Promise, MachineRunCommandsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, machineName: string, runCommandName: string, runCommandProperties: MachineRunCommand, options?: MachineRunCommandsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, machineName: string, runCommandName: string, options?: MachineRunCommandsDeleteOptionalParams): Promise, MachineRunCommandsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, machineName: string, runCommandName: string, options?: MachineRunCommandsDeleteOptionalParams): Promise; + get(resourceGroupName: string, machineName: string, runCommandName: string, options?: MachineRunCommandsGetOptionalParams): Promise; + list(resourceGroupName: string, machineName: string, options?: MachineRunCommandsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface MachineRunCommandsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + location?: string; + retryAfter?: number; +} + +// @public +export interface MachineRunCommandsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type MachineRunCommandsCreateOrUpdateResponse = MachineRunCommand; + +// @public +export interface MachineRunCommandScriptSource { + commandId?: string; + script?: string; + scriptUri?: string; + scriptUriManagedIdentity?: RunCommandManagedIdentity; +} + +// @public +export interface MachineRunCommandsDeleteHeaders { + azureAsyncOperation?: string; + location?: string; + retryAfter?: number; +} + +// @public +export interface MachineRunCommandsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type MachineRunCommandsDeleteResponse = MachineRunCommandsDeleteHeaders; + +// @public +export interface MachineRunCommandsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type MachineRunCommandsGetResponse = MachineRunCommand; + +// @public +export interface MachineRunCommandsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type MachineRunCommandsListNextResponse = MachineRunCommandsListResult; + +// @public +export interface MachineRunCommandsListOptionalParams extends coreClient.OperationOptions { + expand?: string; +} + +// @public +export type MachineRunCommandsListResponse = MachineRunCommandsListResult; + +// @public +export interface MachineRunCommandsListResult { + nextLink?: string; + value?: MachineRunCommand[]; +} + +// @public +export interface MachineRunCommandUpdate extends ResourceUpdate { +} + // @public export interface Machines { beginAssessPatches(resourceGroupName: string, name: string, options?: MachinesAssessPatchesOptionalParams): Promise, MachinesAssessPatchesResponse>>; @@ -1204,9 +1516,21 @@ export interface MachineUpdate extends ResourceUpdate { privateLinkScopeResourceId?: string; } +// @public (undocumented) +export interface NetworkConfiguration extends ProxyResourceAutoGenerated { + readonly keyProperties?: KeyProperties; + location?: string; + networkConfigurationScopeId?: string; + networkConfigurationScopeResourceId?: string; + readonly tenantId?: string; +} + // @public export interface NetworkInterface { + id?: string; ipAddresses?: IpAddress[]; + macAddress?: string; + name?: string; } // @public @@ -1631,6 +1955,12 @@ export interface PrivateLinkServiceConnectionStateProperty { status: string; } +// @public +export interface Processor { + readonly name?: string; + readonly numberOfCores?: number; +} + // @public export interface ProductFeature { readonly billingEndDate?: Date; @@ -1710,6 +2040,18 @@ export interface ResourceUpdate { }; } +// @public +export interface RunCommandInputParameter { + name: string; + value: string; +} + +// @public +export interface RunCommandManagedIdentity { + clientId?: string; + objectId?: string; +} + // @public export interface ServiceStatus { startupType?: string; @@ -1722,12 +2064,51 @@ export interface ServiceStatuses { guestConfigurationService?: ServiceStatus; } +// @public (undocumented) +export interface Settings extends ProxyResourceAutoGenerated { + gatewayResourceId?: string; + readonly tenantId?: string; +} + +// @public +export interface SettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SettingsGetResponse = Settings; + +// @public +export interface SettingsOperations { + get(resourceGroupName: string, baseProvider: string, baseResourceType: string, baseResourceName: string, settingsResourceName: string, options?: SettingsGetOptionalParams): Promise; + patch(resourceGroupName: string, baseProvider: string, baseResourceType: string, baseResourceName: string, settingsResourceName: string, parameters: Settings, options?: SettingsPatchOptionalParams): Promise; + update(resourceGroupName: string, baseProvider: string, baseResourceType: string, baseResourceName: string, settingsResourceName: string, parameters: Settings, options?: SettingsUpdateOptionalParams): Promise; +} + +// @public +export interface SettingsPatchOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SettingsPatchResponse = Settings; + +// @public +export interface SettingsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SettingsUpdateResponse = Settings; + // @public export type StatusLevelTypes = string; // @public export type StatusTypes = string; +// @public +export interface StorageProfile { + disks?: Disk[]; +} + // @public export interface Subnet { addressPrefix?: string; @@ -1758,6 +2139,14 @@ export interface TrackedResource extends Resource { }; } +// @public +export interface TrackedResourceAutoGenerated extends ResourceAutoGenerated { + location: string; + tags?: { + [propertyName: string]: string; + }; +} + // @public export interface UpgradeExtensionsOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; diff --git a/sdk/hybridcompute/arm-hybridcompute/sample.env b/sdk/hybridcompute/arm-hybridcompute/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/hybridcompute/arm-hybridcompute/sample.env +++ b/sdk/hybridcompute/arm-hybridcompute/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/extensionMetadataGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/extensionMetadataGetSample.ts index fdfdf4e7f633..af8f820a24fa 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/extensionMetadataGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/extensionMetadataGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets an Extension Metadata based on location, publisher, extensionType and version * * @summary Gets an Extension Metadata based on location, publisher, extensionType and version - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_Get.json */ async function getAnExtensionsMetadata() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/extensionMetadataListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/extensionMetadataListSample.ts index d6f71ead9f77..2b8036e88d01 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/extensionMetadataListSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/extensionMetadataListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all Extension versions based on location, publisher, extensionType * * @summary Gets all Extension versions based on location, publisher, extensionType - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_List.json */ async function getAListOfExtensions() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysCreateOrUpdateSample.ts new file mode 100644 index 000000000000..47e89c7492a5 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysCreateOrUpdateSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + Gateway, + HybridComputeManagementClient, +} from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to create or update a gateway. + * + * @summary The operation to create or update a gateway. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_CreateOrUpdate.json + */ +async function createOrUpdateAGateway() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const gatewayName = "{gatewayName}"; + const parameters: Gateway = { + allowedFeatures: ["*"], + gatewayType: "Public", + location: "eastus2euap", + }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.gateways.beginCreateOrUpdateAndWait( + resourceGroupName, + gatewayName, + parameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateAGateway(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysDeleteSample.ts new file mode 100644 index 000000000000..6356de13502f --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysDeleteSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to delete a gateway. + * + * @summary The operation to delete a gateway. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Delete.json + */ +async function deleteAGateway() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const gatewayName = "{gatewayName}"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.gateways.beginDeleteAndWait( + resourceGroupName, + gatewayName, + ); + console.log(result); +} + +async function main() { + deleteAGateway(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysGetSample.ts new file mode 100644 index 000000000000..ddfd2392ac08 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysGetSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieves information about the view of a gateway. + * + * @summary Retrieves information about the view of a gateway. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Get.json + */ +async function getGateway() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const gatewayName = "{gatewayName}"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.gateways.get(resourceGroupName, gatewayName); + console.log(result); +} + +async function main() { + getGateway(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysListByResourceGroupSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysListByResourceGroupSample.ts new file mode 100644 index 000000000000..58cfa35f7a1a --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysListByResourceGroupSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to get all gateways of a non-Azure machine + * + * @summary The operation to get all gateways of a non-Azure machine + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListByResourceGroup.json + */ +async function listGatewaysByResourceGroup() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.gateways.listByResourceGroup( + resourceGroupName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listGatewaysByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysListBySubscriptionSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysListBySubscriptionSample.ts new file mode 100644 index 000000000000..602f8ff3e961 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysListBySubscriptionSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to get all gateways of a non-Azure machine + * + * @summary The operation to get all gateways of a non-Azure machine + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListBySubscription.json + */ +async function listGatewaysBySubscription() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.gateways.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listGatewaysBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysUpdateSample.ts new file mode 100644 index 000000000000..f9eb46e9a8aa --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/gatewaysUpdateSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + GatewayUpdate, + HybridComputeManagementClient, +} from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to update a gateway. + * + * @summary The operation to update a gateway. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Update.json + */ +async function updateAGateway() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const gatewayName = "{gatewayName}"; + const parameters: GatewayUpdate = { allowedFeatures: ["*"] }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.gateways.update( + resourceGroupName, + gatewayName, + parameters, + ); + console.log(result); +} + +async function main() { + updateAGateway(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesCreateOrUpdateSample.ts index f954114f396d..0e95e3714bb1 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesCreateOrUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update a license profile. * * @summary The operation to create or update a license profile. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json */ async function createOrUpdateALicenseProfile() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesDeleteSample.ts index d5677baacab0..b2528c2fa698 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesDeleteSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a license profile. * * @summary The operation to delete a license profile. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Delete.json */ async function deleteALicenseProfile() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesGetSample.ts index fa41f9858860..fdaa61f73846 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about the view of a license profile. * * @summary Retrieves information about the view of a license profile. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Get.json */ async function getLicenseProfile() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesListSample.ts index b9f3a086c038..2b3c280b1cd1 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesListSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all license profiles of a non-Azure machine * * @summary The operation to get all license profiles of a non-Azure machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_List.json */ async function listAllLicenseProfiles() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesUpdateSample.ts index b6fac9c01086..f1611d087909 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licenseProfilesUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update a license profile. * * @summary The operation to update a license profile. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Update.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Update.json */ async function updateALicenseProfile() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesCreateOrUpdateSample.ts index b64b89da6fb1..7fe57120501d 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesCreateOrUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update a license. * * @summary The operation to create or update a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_CreateOrUpdate.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_CreateOrUpdate.json */ async function createOrUpdateALicense() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesDeleteSample.ts index 4d3be2b7b2ad..6712f0a8e586 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesDeleteSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a license. * * @summary The operation to delete a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Delete.json */ async function deleteALicense() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesGetSample.ts index 1e8a977f4203..330fbbc35ee1 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about the view of a license. * * @summary Retrieves information about the view of a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Get.json */ async function getLicense() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesListByResourceGroupSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesListByResourceGroupSample.ts index dfcaff3ff4c8..2a33da473251 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesListByResourceGroupSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all licenses of a non-Azure machine * * @summary The operation to get all licenses of a non-Azure machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListByResourceGroup.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListByResourceGroup.json */ async function getAllMachineExtensions() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesListBySubscriptionSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesListBySubscriptionSample.ts index f2d22d0609b0..2a914fd801ab 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesListBySubscriptionSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all licenses of a non-Azure machine * * @summary The operation to get all licenses of a non-Azure machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListBySubscription.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListBySubscription.json */ async function listLicensesBySubscription() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesUpdateSample.ts index f14a3d4deac8..2dfb630cc977 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update a license. * * @summary The operation to update a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Update.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Update.json */ async function updateALicense() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesValidateLicenseSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesValidateLicenseSample.ts index df06b892c3ed..5055bca8488f 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesValidateLicenseSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/licensesValidateLicenseSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to validate a license. * * @summary The operation to validate a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ValidateLicense.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ValidateLicense.json */ async function validateALicense() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsCreateOrUpdateSample.ts index c9610fd5d948..45477734d242 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsCreateOrUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update the extension. * * @summary The operation to create or update the extension. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_CreateOrUpdate.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_CreateOrUpdate.json */ async function createOrUpdateAMachineExtension() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsDeleteSample.ts index 480214199bf3..331b833d31c1 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsDeleteSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Delete.json */ async function deleteAMachineExtension() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsGetSample.ts index df6dd1bd383e..2ca155afa7bc 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Get.json */ async function getMachineExtension() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsListSample.ts index 3d2be11300c7..ade0ca815227 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsListSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all extensions of a non-Azure machine * * @summary The operation to get all extensions of a non-Azure machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_List.json */ async function getAllMachineExtensionsList() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsUpdateSample.ts index 6d590e16722f..a6cfa6a6984b 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineExtensionsUpdateSample.ts @@ -18,10 +18,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to The operation to update the extension. + * This sample demonstrates how to The operation to create or update the extension. * - * @summary The operation to update the extension. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Update.json + * @summary The operation to create or update the extension. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Update.json */ async function createOrUpdateAMachineExtension() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineRunCommandsCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineRunCommandsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..89ce6e7b767a --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineRunCommandsCreateOrUpdateSample.ts @@ -0,0 +1,64 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + MachineRunCommand, + HybridComputeManagementClient, +} from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to create or update a run command. + * + * @summary The operation to create or update a run command. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_CreateOrUpdate.json + */ +async function createOrUpdateARunCommand() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const machineName = "myMachine"; + const runCommandName = "myRunCommand"; + const runCommandProperties: MachineRunCommand = { + asyncExecution: false, + errorBlobUri: + "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", + location: "eastus2", + outputBlobUri: + "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + parameters: [ + { name: "param1", value: "value1" }, + { name: "param2", value: "value2" }, + ], + runAsPassword: "", + runAsUser: "user1", + source: { script: "Write-Host Hello World!" }, + timeoutInSeconds: 3600, + }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.machineRunCommands.beginCreateOrUpdateAndWait( + resourceGroupName, + machineName, + runCommandName, + runCommandProperties, + ); + console.log(result); +} + +async function main() { + createOrUpdateARunCommand(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineRunCommandsDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineRunCommandsDeleteSample.ts new file mode 100644 index 000000000000..ba53653d46cf --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineRunCommandsDeleteSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to delete a run command. + * + * @summary The operation to delete a run command. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Delete.json + */ +async function deleteAMachineRunCommand() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const machineName = "myMachine"; + const runCommandName = "myRunCommand"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.machineRunCommands.beginDeleteAndWait( + resourceGroupName, + machineName, + runCommandName, + ); + console.log(result); +} + +async function main() { + deleteAMachineRunCommand(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineRunCommandsGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineRunCommandsGetSample.ts new file mode 100644 index 000000000000..f8b9fb9b06a8 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineRunCommandsGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to get a run command. + * + * @summary The operation to get a run command. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Get.json + */ +async function getARunCommand() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const machineName = "myMachine"; + const runCommandName = "myRunCommand"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.machineRunCommands.get( + resourceGroupName, + machineName, + runCommandName, + ); + console.log(result); +} + +async function main() { + getARunCommand(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineRunCommandsListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineRunCommandsListSample.ts new file mode 100644 index 000000000000..48061f1bb283 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machineRunCommandsListSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to get all the run commands of a non-Azure machine. + * + * @summary The operation to get all the run commands of a non-Azure machine. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_List.json + */ +async function getAllMachineRunCommands() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const machineName = "myMachine"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.machineRunCommands.list( + resourceGroupName, + machineName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getAllMachineRunCommands(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesAssessPatchesSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesAssessPatchesSample.ts index f3392d1522a4..f85c3d3f47e5 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesAssessPatchesSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesAssessPatchesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to assess patches on a hybrid machine identity in Azure. * * @summary The operation to assess patches on a hybrid machine identity in Azure. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_AssessPatches.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_AssessPatches.json */ async function assessPatchStateOfAMachine() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesDeleteSample.ts index 4815ae06e1ab..bb6d9174a36f 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesDeleteSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a hybrid machine. * * @summary The operation to delete a hybrid machine. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Delete.json */ async function deleteAMachine() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesGetSample.ts index 192712fd9c41..93858b34e645 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesGetSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about the model view or the instance view of a hybrid machine. * * @summary Retrieves information about the model view or the instance view of a hybrid machine. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get.json */ async function getMachine() { const subscriptionId = @@ -39,7 +39,7 @@ async function getMachine() { * This sample demonstrates how to Retrieves information about the model view or the instance view of a hybrid machine. * * @summary Retrieves information about the model view or the instance view of a hybrid machine. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get_LicenseProfileInstanceView.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json */ async function getMachineWithLicenseProfileInstanceView() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesInstallPatchesSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesInstallPatchesSample.ts index afe1b93360b8..11ed6a98fdd8 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesInstallPatchesSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesInstallPatchesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to install patches on a hybrid machine identity in Azure. * * @summary The operation to install patches on a hybrid machine identity in Azure. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_InstallPatches.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_InstallPatches.json */ async function installPatchStateOfAMachine() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesListByResourceGroupSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesListByResourceGroupSample.ts index be99cc483938..ae276b6ab013 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesListByResourceGroupSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. * * @summary Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListByResourceGroup.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListByResourceGroup.json */ async function listMachinesByResourceGroup() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesListBySubscriptionSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesListBySubscriptionSample.ts index 315585d665f3..409e584f954e 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesListBySubscriptionSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/machinesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. * * @summary Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListBySubscription.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListBySubscription.json */ async function listMachinesByResourceGroup() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkProfileGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkProfileGetSample.ts index 6689495efe0f..fac322570b78 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkProfileGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkProfileGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get network information of hybrid machine * * @summary The operation to get network information of hybrid machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/NetworkProfile_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/NetworkProfile_Get.json */ async function getNetworkProfile() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts index b48a7a834795..6889a5e285e1 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the network security perimeter configuration for a private link scope. * * @summary Gets the network security perimeter configuration for a private link scope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json */ async function getsTheNetworkSecurityPerimeterConfigurationOfThePrivateLinkScope() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts index 04e7d1b503d3..5221504c5152 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the network security perimeter configurations for a private link scope. * * @summary Lists the network security perimeter configurations for a private link scope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json */ async function getsTheListOfNetworkSecurityPerimeterConfigurationsOfThePrivateLinkScope() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts index c1fb893f5a52..7d7a80b1ea94 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Forces the network security perimeter configuration to refresh for a private link scope. * * @summary Forces the network security perimeter configuration to refresh for a private link scope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json */ async function reconcilesTheNetworkSecurityPerimeterConfigurationOfThePrivateLinkScope() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/operationsListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/operationsListSample.ts index d387b1854233..392118b18f37 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/operationsListSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of hybrid compute operations. * * @summary Gets a list of hybrid compute operations. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/Operations_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/Operations_List.json */ async function listHybridComputeProviderOperations() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts index e149d0eb0ec0..80f78fbd092c 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Approve or reject a private endpoint connection with a given name. * * @summary Approve or reject a private endpoint connection with a given name. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Update.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Update.json */ async function approveOrRejectAPrivateEndpointConnectionWithAGivenName() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsDeleteSample.ts index e44918f7df50..301ebd1a5bf2 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a private endpoint connection with a given name. * * @summary Deletes a private endpoint connection with a given name. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Delete.json */ async function deletesAPrivateEndpointConnectionWithAGivenName() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsGetSample.ts index eb3c01a68ea4..82e552c20458 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a private endpoint connection. * * @summary Gets a private endpoint connection. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Get.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.ts index edb567a0ca22..ccc529d9e325 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all private endpoint connections on a private link scope. * * @summary Gets all private endpoint connections on a private link scope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_List.json */ async function getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkResourcesGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkResourcesGetSample.ts index 100226c597f5..9f8a0f5631a4 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkResourcesGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkResourcesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. * * @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.ts index 007f14cf4948..3fd96f3d2c21 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. * * @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesCreateOrUpdateSample.ts index 8b6e4ae7579a..31d54ad20316 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesCreateOrUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. * * @summary Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Create.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Create.json */ async function privateLinkScopeCreate() { const subscriptionId = @@ -45,7 +45,7 @@ async function privateLinkScopeCreate() { * This sample demonstrates how to Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. * * @summary Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Update.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Update.json */ async function privateLinkScopeUpdate() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesDeleteSample.ts index 896013f60f6c..3d3d7fee9de9 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesDeleteSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a Azure Arc PrivateLinkScope. * * @summary Deletes a Azure Arc PrivateLinkScope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Delete.json */ async function privateLinkScopesDelete() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesGetSample.ts index e289948c48ac..7ccc812ca7c6 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a Azure Arc PrivateLinkScope. * * @summary Returns a Azure Arc PrivateLinkScope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Get.json */ async function privateLinkScopeGet() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesGetValidationDetailsForMachineSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesGetValidationDetailsForMachineSample.ts index cab5e9864dc4..34e1c458285c 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesGetValidationDetailsForMachineSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesGetValidationDetailsForMachineSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a Azure Arc PrivateLinkScope's validation details for a given machine. * * @summary Returns a Azure Arc PrivateLinkScope's validation details for a given machine. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json */ async function privateLinkScopeGet() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesGetValidationDetailsSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesGetValidationDetailsSample.ts index 3604d0978229..f5adb503f05a 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesGetValidationDetailsSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesGetValidationDetailsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a Azure Arc PrivateLinkScope's validation details. * * @summary Returns a Azure Arc PrivateLinkScope's validation details. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json */ async function privateLinkScopeGet() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesListByResourceGroupSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesListByResourceGroupSample.ts index 7d698639ccdd..9bf91ce632d7 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesListByResourceGroupSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of Azure Arc PrivateLinkScopes within a resource group. * * @summary Gets a list of Azure Arc PrivateLinkScopes within a resource group. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json */ async function privateLinkScopeListByResourceGroup() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesListSample.ts index 0e95c3e9b028..80c105b347d7 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesListSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all Azure Arc PrivateLinkScopes within a subscription. * * @summary Gets a list of all Azure Arc PrivateLinkScopes within a subscription. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_List.json */ async function privateLinkScopesListJson() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesUpdateTagsSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesUpdateTagsSample.ts index 8c1b870b9098..db53e0b85c41 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesUpdateTagsSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/privateLinkScopesUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. * * @summary Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json */ async function privateLinkScopeUpdateTagsOnly() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/settingsGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/settingsGetSample.ts new file mode 100644 index 000000000000..2b7639278313 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/settingsGetSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns the base Settings for the target resource. + * + * @summary Returns the base Settings for the target resource. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsGet.json + */ +async function networkConfigurationsGet() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "hybridRG"; + const baseProvider = "Microsoft.HybridCompute"; + const baseResourceType = "machines"; + const baseResourceName = "testMachine"; + const settingsResourceName = "default"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.settingsOperations.get( + resourceGroupName, + baseProvider, + baseResourceType, + baseResourceName, + settingsResourceName, + ); + console.log(result); +} + +async function main() { + networkConfigurationsGet(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/settingsPatchSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/settingsPatchSample.ts new file mode 100644 index 000000000000..d5e7fc2346b7 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/settingsPatchSample.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + Settings, + HybridComputeManagementClient, +} from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update the base Settings of the target resource. + * + * @summary Update the base Settings of the target resource. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsPatch.json + */ +async function networkConfigurationsPatch() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "hybridRG"; + const baseProvider = "Microsoft.HybridCompute"; + const baseResourceType = "machines"; + const baseResourceName = "testMachine"; + const settingsResourceName = "default"; + const parameters: Settings = { + gatewayResourceId: + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway", + }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.settingsOperations.patch( + resourceGroupName, + baseProvider, + baseResourceType, + baseResourceName, + settingsResourceName, + parameters, + ); + console.log(result); +} + +async function main() { + networkConfigurationsPatch(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/settingsUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/settingsUpdateSample.ts new file mode 100644 index 000000000000..fdf91e4b41d1 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/settingsUpdateSample.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + Settings, + HybridComputeManagementClient, +} from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates the base Settings of the target resource. + * + * @summary Updates the base Settings of the target resource. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsUpdate.json + */ +async function settingsUpdate() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "hybridRG"; + const baseProvider = "Microsoft.HybridCompute"; + const baseResourceType = "machines"; + const baseResourceName = "testMachine"; + const settingsResourceName = "default"; + const parameters: Settings = { + gatewayResourceId: + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway", + }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.settingsOperations.update( + resourceGroupName, + baseProvider, + baseResourceType, + baseResourceName, + settingsResourceName, + parameters, + ); + console.log(result); +} + +async function main() { + settingsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples-dev/upgradeExtensionsSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples-dev/upgradeExtensionsSample.ts index ec8a23160b3a..50cd5abe82e8 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples-dev/upgradeExtensionsSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples-dev/upgradeExtensionsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to Upgrade Machine Extensions. * * @summary The operation to Upgrade Machine Extensions. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extensions_Upgrade.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extensions_Upgrade.json */ async function upgradeMachineExtensions() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/README.md b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/README.md new file mode 100644 index 000000000000..73337eecc98f --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/README.md @@ -0,0 +1,164 @@ +# client library samples for JavaScript (Beta) + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [extensionMetadataGetSample.js][extensionmetadatagetsample] | Gets an Extension Metadata based on location, publisher, extensionType and version x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_Get.json | +| [extensionMetadataListSample.js][extensionmetadatalistsample] | Gets all Extension versions based on location, publisher, extensionType x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_List.json | +| [gatewaysCreateOrUpdateSample.js][gatewayscreateorupdatesample] | The operation to create or update a gateway. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_CreateOrUpdate.json | +| [gatewaysDeleteSample.js][gatewaysdeletesample] | The operation to delete a gateway. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Delete.json | +| [gatewaysGetSample.js][gatewaysgetsample] | Retrieves information about the view of a gateway. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Get.json | +| [gatewaysListByResourceGroupSample.js][gatewayslistbyresourcegroupsample] | The operation to get all gateways of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListByResourceGroup.json | +| [gatewaysListBySubscriptionSample.js][gatewayslistbysubscriptionsample] | The operation to get all gateways of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListBySubscription.json | +| [gatewaysUpdateSample.js][gatewaysupdatesample] | The operation to update a gateway. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Update.json | +| [licenseProfilesCreateOrUpdateSample.js][licenseprofilescreateorupdatesample] | The operation to create or update a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json | +| [licenseProfilesDeleteSample.js][licenseprofilesdeletesample] | The operation to delete a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Delete.json | +| [licenseProfilesGetSample.js][licenseprofilesgetsample] | Retrieves information about the view of a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Get.json | +| [licenseProfilesListSample.js][licenseprofileslistsample] | The operation to get all license profiles of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_List.json | +| [licenseProfilesUpdateSample.js][licenseprofilesupdatesample] | The operation to update a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Update.json | +| [licensesCreateOrUpdateSample.js][licensescreateorupdatesample] | The operation to create or update a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_CreateOrUpdate.json | +| [licensesDeleteSample.js][licensesdeletesample] | The operation to delete a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Delete.json | +| [licensesGetSample.js][licensesgetsample] | Retrieves information about the view of a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Get.json | +| [licensesListByResourceGroupSample.js][licenseslistbyresourcegroupsample] | The operation to get all licenses of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListByResourceGroup.json | +| [licensesListBySubscriptionSample.js][licenseslistbysubscriptionsample] | The operation to get all licenses of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListBySubscription.json | +| [licensesUpdateSample.js][licensesupdatesample] | The operation to update a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Update.json | +| [licensesValidateLicenseSample.js][licensesvalidatelicensesample] | The operation to validate a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ValidateLicense.json | +| [machineExtensionsCreateOrUpdateSample.js][machineextensionscreateorupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_CreateOrUpdate.json | +| [machineExtensionsDeleteSample.js][machineextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Delete.json | +| [machineExtensionsGetSample.js][machineextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Get.json | +| [machineExtensionsListSample.js][machineextensionslistsample] | The operation to get all extensions of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_List.json | +| [machineExtensionsUpdateSample.js][machineextensionsupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Update.json | +| [machineRunCommandsCreateOrUpdateSample.js][machineruncommandscreateorupdatesample] | The operation to create or update a run command. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_CreateOrUpdate.json | +| [machineRunCommandsDeleteSample.js][machineruncommandsdeletesample] | The operation to delete a run command. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Delete.json | +| [machineRunCommandsGetSample.js][machineruncommandsgetsample] | The operation to get a run command. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Get.json | +| [machineRunCommandsListSample.js][machineruncommandslistsample] | The operation to get all the run commands of a non-Azure machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_List.json | +| [machinesAssessPatchesSample.js][machinesassesspatchessample] | The operation to assess patches on a hybrid machine identity in Azure. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_AssessPatches.json | +| [machinesDeleteSample.js][machinesdeletesample] | The operation to delete a hybrid machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Delete.json | +| [machinesGetSample.js][machinesgetsample] | Retrieves information about the model view or the instance view of a hybrid machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get.json | +| [machinesInstallPatchesSample.js][machinesinstallpatchessample] | The operation to install patches on a hybrid machine identity in Azure. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_InstallPatches.json | +| [machinesListByResourceGroupSample.js][machineslistbyresourcegroupsample] | Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListByResourceGroup.json | +| [machinesListBySubscriptionSample.js][machineslistbysubscriptionsample] | Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListBySubscription.json | +| [networkProfileGetSample.js][networkprofilegetsample] | The operation to get network information of hybrid machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/NetworkProfile_Get.json | +| [networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js][networksecurityperimeterconfigurationsgetbyprivatelinkscopesample] | Gets the network security perimeter configuration for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json | +| [networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js][networksecurityperimeterconfigurationslistbyprivatelinkscopesample] | Lists the network security perimeter configurations for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json | +| [networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js][networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample] | Forces the network security perimeter configuration to refresh for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json | +| [operationsListSample.js][operationslistsample] | Gets a list of hybrid compute operations. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/Operations_List.json | +| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Update.json | +| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Delete.json | +| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets a private endpoint connection. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Get.json | +| [privateEndpointConnectionsListByPrivateLinkScopeSample.js][privateendpointconnectionslistbyprivatelinkscopesample] | Gets all private endpoint connections on a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_List.json | +| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json | +| [privateLinkResourcesListByPrivateLinkScopeSample.js][privatelinkresourceslistbyprivatelinkscopesample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json | +| [privateLinkScopesCreateOrUpdateSample.js][privatelinkscopescreateorupdatesample] | Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Create.json | +| [privateLinkScopesDeleteSample.js][privatelinkscopesdeletesample] | Deletes a Azure Arc PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Delete.json | +| [privateLinkScopesGetSample.js][privatelinkscopesgetsample] | Returns a Azure Arc PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Get.json | +| [privateLinkScopesGetValidationDetailsForMachineSample.js][privatelinkscopesgetvalidationdetailsformachinesample] | Returns a Azure Arc PrivateLinkScope's validation details for a given machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json | +| [privateLinkScopesGetValidationDetailsSample.js][privatelinkscopesgetvalidationdetailssample] | Returns a Azure Arc PrivateLinkScope's validation details. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json | +| [privateLinkScopesListByResourceGroupSample.js][privatelinkscopeslistbyresourcegroupsample] | Gets a list of Azure Arc PrivateLinkScopes within a resource group. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json | +| [privateLinkScopesListSample.js][privatelinkscopeslistsample] | Gets a list of all Azure Arc PrivateLinkScopes within a subscription. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_List.json | +| [privateLinkScopesUpdateTagsSample.js][privatelinkscopesupdatetagssample] | Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json | +| [settingsGetSample.js][settingsgetsample] | Returns the base Settings for the target resource. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsGet.json | +| [settingsPatchSample.js][settingspatchsample] | Update the base Settings of the target resource. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsPatch.json | +| [settingsUpdateSample.js][settingsupdatesample] | Updates the base Settings of the target resource. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsUpdate.json | +| [upgradeExtensionsSample.js][upgradeextensionssample] | The operation to Upgrade Machine Extensions. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extensions_Upgrade.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node extensionMetadataGetSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env HYBRIDCOMPUTE_SUBSCRIPTION_ID="" node extensionMetadataGetSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[extensionmetadatagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/extensionMetadataGetSample.js +[extensionmetadatalistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/extensionMetadataListSample.js +[gatewayscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysCreateOrUpdateSample.js +[gatewaysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysDeleteSample.js +[gatewaysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysGetSample.js +[gatewayslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysListByResourceGroupSample.js +[gatewayslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysListBySubscriptionSample.js +[gatewaysupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysUpdateSample.js +[licenseprofilescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesCreateOrUpdateSample.js +[licenseprofilesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesDeleteSample.js +[licenseprofilesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesGetSample.js +[licenseprofileslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesListSample.js +[licenseprofilesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesUpdateSample.js +[licensescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesCreateOrUpdateSample.js +[licensesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesDeleteSample.js +[licensesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesGetSample.js +[licenseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesListByResourceGroupSample.js +[licenseslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesListBySubscriptionSample.js +[licensesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesUpdateSample.js +[licensesvalidatelicensesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesValidateLicenseSample.js +[machineextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsCreateOrUpdateSample.js +[machineextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsDeleteSample.js +[machineextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsGetSample.js +[machineextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsListSample.js +[machineextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsUpdateSample.js +[machineruncommandscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsCreateOrUpdateSample.js +[machineruncommandsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsDeleteSample.js +[machineruncommandsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsGetSample.js +[machineruncommandslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsListSample.js +[machinesassesspatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesAssessPatchesSample.js +[machinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesDeleteSample.js +[machinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesGetSample.js +[machinesinstallpatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesInstallPatchesSample.js +[machineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesListByResourceGroupSample.js +[machineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesListBySubscriptionSample.js +[networkprofilegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkProfileGetSample.js +[networksecurityperimeterconfigurationsgetbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js +[networksecurityperimeterconfigurationslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js +[networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/operationsListSample.js +[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsDeleteSample.js +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsGetSample.js +[privateendpointconnectionslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js +[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkResourcesGetSample.js +[privatelinkresourceslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js +[privatelinkscopescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesCreateOrUpdateSample.js +[privatelinkscopesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesDeleteSample.js +[privatelinkscopesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetSample.js +[privatelinkscopesgetvalidationdetailsformachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetValidationDetailsForMachineSample.js +[privatelinkscopesgetvalidationdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetValidationDetailsSample.js +[privatelinkscopeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesListByResourceGroupSample.js +[privatelinkscopeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesListSample.js +[privatelinkscopesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesUpdateTagsSample.js +[settingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsGetSample.js +[settingspatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsPatchSample.js +[settingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsUpdateSample.js +[upgradeextensionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/upgradeExtensionsSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-hybridcompute?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcompute/arm-hybridcompute/README.md diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/extensionMetadataGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/extensionMetadataGetSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/extensionMetadataGetSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/extensionMetadataGetSample.js index b4158e554522..2602b5b4fa4d 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/extensionMetadataGetSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/extensionMetadataGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets an Extension Metadata based on location, publisher, extensionType and version * * @summary Gets an Extension Metadata based on location, publisher, extensionType and version - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_Get.json */ async function getAnExtensionsMetadata() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/extensionMetadataListSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/extensionMetadataListSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/extensionMetadataListSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/extensionMetadataListSample.js index 31f6a20ad75e..7c02cca26c38 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/extensionMetadataListSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/extensionMetadataListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets all Extension versions based on location, publisher, extensionType * * @summary Gets all Extension versions based on location, publisher, extensionType - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_List.json */ async function getAListOfExtensions() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysCreateOrUpdateSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysCreateOrUpdateSample.js new file mode 100644 index 000000000000..b61109a17d76 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysCreateOrUpdateSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to The operation to create or update a gateway. + * + * @summary The operation to create or update a gateway. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_CreateOrUpdate.json + */ +async function createOrUpdateAGateway() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const gatewayName = "{gatewayName}"; + const parameters = { + allowedFeatures: ["*"], + gatewayType: "Public", + location: "eastus2euap", + }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.gateways.beginCreateOrUpdateAndWait( + resourceGroupName, + gatewayName, + parameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateAGateway(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysDeleteSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysDeleteSample.js new file mode 100644 index 000000000000..083dbd1017c4 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysDeleteSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to The operation to delete a gateway. + * + * @summary The operation to delete a gateway. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Delete.json + */ +async function deleteAGateway() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const gatewayName = "{gatewayName}"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.gateways.beginDeleteAndWait(resourceGroupName, gatewayName); + console.log(result); +} + +async function main() { + deleteAGateway(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysGetSample.js new file mode 100644 index 000000000000..c87958f71cab --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysGetSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Retrieves information about the view of a gateway. + * + * @summary Retrieves information about the view of a gateway. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Get.json + */ +async function getGateway() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const gatewayName = "{gatewayName}"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.gateways.get(resourceGroupName, gatewayName); + console.log(result); +} + +async function main() { + getGateway(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysListByResourceGroupSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysListByResourceGroupSample.js new file mode 100644 index 000000000000..92ad5843b533 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysListByResourceGroupSample.js @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to The operation to get all gateways of a non-Azure machine + * + * @summary The operation to get all gateways of a non-Azure machine + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListByResourceGroup.json + */ +async function listGatewaysByResourceGroup() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.gateways.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listGatewaysByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysListBySubscriptionSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysListBySubscriptionSample.js new file mode 100644 index 000000000000..7cb73fb149f6 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysListBySubscriptionSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to The operation to get all gateways of a non-Azure machine + * + * @summary The operation to get all gateways of a non-Azure machine + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListBySubscription.json + */ +async function listGatewaysBySubscription() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.gateways.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listGatewaysBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysUpdateSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysUpdateSample.js new file mode 100644 index 000000000000..79114faa721f --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysUpdateSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to The operation to update a gateway. + * + * @summary The operation to update a gateway. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Update.json + */ +async function updateAGateway() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const gatewayName = "{gatewayName}"; + const parameters = { allowedFeatures: ["*"] }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.gateways.update(resourceGroupName, gatewayName, parameters); + console.log(result); +} + +async function main() { + updateAGateway(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesCreateOrUpdateSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesCreateOrUpdateSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesCreateOrUpdateSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesCreateOrUpdateSample.js index d2274bce8e93..465fd8cb155a 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesCreateOrUpdateSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update a license profile. * * @summary The operation to create or update a license profile. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json */ async function createOrUpdateALicenseProfile() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesDeleteSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesDeleteSample.js similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesDeleteSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesDeleteSample.js index cebc6902c901..23e27b828afa 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesDeleteSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete a license profile. * * @summary The operation to delete a license profile. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Delete.json */ async function deleteALicenseProfile() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesGetSample.js similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesGetSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesGetSample.js index 46c6c4d161c2..bdb5bae83a0d 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesGetSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about the view of a license profile. * * @summary Retrieves information about the view of a license profile. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Get.json */ async function getLicenseProfile() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesListSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesListSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesListSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesListSample.js index 6b6060383411..f9a4a85c24e6 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesListSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get all license profiles of a non-Azure machine * * @summary The operation to get all license profiles of a non-Azure machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_List.json */ async function listAllLicenseProfiles() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesUpdateSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesUpdateSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesUpdateSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesUpdateSample.js index d419660a7f18..6b6489613d94 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesUpdateSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update a license profile. * * @summary The operation to update a license profile. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Update.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Update.json */ async function updateALicenseProfile() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesCreateOrUpdateSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesCreateOrUpdateSample.js similarity index 94% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesCreateOrUpdateSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesCreateOrUpdateSample.js index 8e9a1f0cf779..0d5da7dfbcdb 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesCreateOrUpdateSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update a license. * * @summary The operation to create or update a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_CreateOrUpdate.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_CreateOrUpdate.json */ async function createOrUpdateALicense() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesDeleteSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesDeleteSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesDeleteSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesDeleteSample.js index f7626be0d92d..b891de00a14a 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesDeleteSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete a license. * * @summary The operation to delete a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Delete.json */ async function deleteALicense() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesGetSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesGetSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesGetSample.js index 7161ef3e06f4..cb5a928ec55a 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesGetSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about the view of a license. * * @summary Retrieves information about the view of a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Get.json */ async function getLicense() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesListByResourceGroupSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesListByResourceGroupSample.js similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesListByResourceGroupSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesListByResourceGroupSample.js index 5f1d0e6321ee..8cd6a43d4a85 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesListByResourceGroupSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get all licenses of a non-Azure machine * * @summary The operation to get all licenses of a non-Azure machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListByResourceGroup.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListByResourceGroup.json */ async function getAllMachineExtensions() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesListBySubscriptionSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesListBySubscriptionSample.js similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesListBySubscriptionSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesListBySubscriptionSample.js index 362e671043d4..f307af8a876d 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesListBySubscriptionSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get all licenses of a non-Azure machine * * @summary The operation to get all licenses of a non-Azure machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListBySubscription.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListBySubscription.json */ async function listLicensesBySubscription() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesUpdateSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesUpdateSample.js similarity index 94% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesUpdateSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesUpdateSample.js index 72d58b0d6f89..51880ea78740 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesUpdateSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update a license. * * @summary The operation to update a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Update.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Update.json */ async function updateALicense() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesValidateLicenseSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesValidateLicenseSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesValidateLicenseSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesValidateLicenseSample.js index c777647bfaa9..3912217ed654 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesValidateLicenseSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesValidateLicenseSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to validate a license. * * @summary The operation to validate a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ValidateLicense.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ValidateLicense.json */ async function validateALicense() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsCreateOrUpdateSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsCreateOrUpdateSample.js similarity index 94% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsCreateOrUpdateSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsCreateOrUpdateSample.js index 06f3abf3a676..fdbe51b08c8f 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsCreateOrUpdateSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update the extension. * * @summary The operation to create or update the extension. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_CreateOrUpdate.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_CreateOrUpdate.json */ async function createOrUpdateAMachineExtension() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsDeleteSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsDeleteSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsDeleteSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsDeleteSample.js index 2a1bfbc237de..763e63a5671f 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsDeleteSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Delete.json */ async function deleteAMachineExtension() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsGetSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsGetSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsGetSample.js index 0640e720dd85..994f77e492d2 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsGetSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Get.json */ async function getMachineExtension() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsListSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsListSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsListSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsListSample.js index f234b881d791..036131f8b715 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsListSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get all extensions of a non-Azure machine * * @summary The operation to get all extensions of a non-Azure machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_List.json */ async function getAllMachineExtensionsList() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsUpdateSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsUpdateSample.js similarity index 86% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsUpdateSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsUpdateSample.js index a53b853083dc..366400365c1f 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsUpdateSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsUpdateSample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to The operation to update the extension. + * This sample demonstrates how to The operation to create or update the extension. * - * @summary The operation to update the extension. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Update.json + * @summary The operation to create or update the extension. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Update.json */ async function createOrUpdateAMachineExtension() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsCreateOrUpdateSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsCreateOrUpdateSample.js new file mode 100644 index 000000000000..b38cf941b8b8 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsCreateOrUpdateSample.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to The operation to create or update a run command. + * + * @summary The operation to create or update a run command. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_CreateOrUpdate.json + */ +async function createOrUpdateARunCommand() { + const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const machineName = "myMachine"; + const runCommandName = "myRunCommand"; + const runCommandProperties = { + asyncExecution: false, + errorBlobUri: "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", + location: "eastus2", + outputBlobUri: + "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + parameters: [ + { name: "param1", value: "value1" }, + { name: "param2", value: "value2" }, + ], + runAsPassword: "", + runAsUser: "user1", + source: { script: "Write-Host Hello World!" }, + timeoutInSeconds: 3600, + }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.machineRunCommands.beginCreateOrUpdateAndWait( + resourceGroupName, + machineName, + runCommandName, + runCommandProperties, + ); + console.log(result); +} + +async function main() { + createOrUpdateARunCommand(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsDeleteSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsDeleteSample.js new file mode 100644 index 000000000000..f00efd300a25 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsDeleteSample.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to The operation to delete a run command. + * + * @summary The operation to delete a run command. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Delete.json + */ +async function deleteAMachineRunCommand() { + const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const machineName = "myMachine"; + const runCommandName = "myRunCommand"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.machineRunCommands.beginDeleteAndWait( + resourceGroupName, + machineName, + runCommandName, + ); + console.log(result); +} + +async function main() { + deleteAMachineRunCommand(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsGetSample.js new file mode 100644 index 000000000000..a5f9a7e2c021 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsGetSample.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to The operation to get a run command. + * + * @summary The operation to get a run command. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Get.json + */ +async function getARunCommand() { + const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const machineName = "myMachine"; + const runCommandName = "myRunCommand"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.machineRunCommands.get( + resourceGroupName, + machineName, + runCommandName, + ); + console.log(result); +} + +async function main() { + getARunCommand(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsListSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsListSample.js new file mode 100644 index 000000000000..6e469c037b85 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsListSample.js @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to The operation to get all the run commands of a non-Azure machine. + * + * @summary The operation to get all the run commands of a non-Azure machine. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_List.json + */ +async function getAllMachineRunCommands() { + const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const machineName = "myMachine"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.machineRunCommands.list(resourceGroupName, machineName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getAllMachineRunCommands(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesAssessPatchesSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesAssessPatchesSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesAssessPatchesSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesAssessPatchesSample.js index a642d14cb8e5..da8a976b2a66 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesAssessPatchesSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesAssessPatchesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to assess patches on a hybrid machine identity in Azure. * * @summary The operation to assess patches on a hybrid machine identity in Azure. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_AssessPatches.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_AssessPatches.json */ async function assessPatchStateOfAMachine() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesDeleteSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesDeleteSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesDeleteSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesDeleteSample.js index e4677dc800c0..289ed6e90d74 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesDeleteSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete a hybrid machine. * * @summary The operation to delete a hybrid machine. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Delete.json */ async function deleteAMachine() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesGetSample.js similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesGetSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesGetSample.js index 299633c601b6..dd524dfb3c4a 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesGetSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about the model view or the instance view of a hybrid machine. * * @summary Retrieves information about the model view or the instance view of a hybrid machine. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get.json */ async function getMachine() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; @@ -32,7 +32,7 @@ async function getMachine() { * This sample demonstrates how to Retrieves information about the model view or the instance view of a hybrid machine. * * @summary Retrieves information about the model view or the instance view of a hybrid machine. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get_LicenseProfileInstanceView.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json */ async function getMachineWithLicenseProfileInstanceView() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesInstallPatchesSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesInstallPatchesSample.js similarity index 94% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesInstallPatchesSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesInstallPatchesSample.js index b093f202e831..334c0d5286db 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesInstallPatchesSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesInstallPatchesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to install patches on a hybrid machine identity in Azure. * * @summary The operation to install patches on a hybrid machine identity in Azure. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_InstallPatches.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_InstallPatches.json */ async function installPatchStateOfAMachine() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesListByResourceGroupSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesListByResourceGroupSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesListByResourceGroupSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesListByResourceGroupSample.js index 619a31b83e76..66c3f65f6930 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesListByResourceGroupSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. * * @summary Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListByResourceGroup.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListByResourceGroup.json */ async function listMachinesByResourceGroup() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesListBySubscriptionSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesListBySubscriptionSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesListBySubscriptionSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesListBySubscriptionSample.js index 7b4aeea82d34..fc510e31a154 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesListBySubscriptionSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. * * @summary Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListBySubscription.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListBySubscription.json */ async function listMachinesByResourceGroup() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkProfileGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkProfileGetSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkProfileGetSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkProfileGetSample.js index f6f6cf246b33..662d64396072 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkProfileGetSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkProfileGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get network information of hybrid machine * * @summary The operation to get network information of hybrid machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/NetworkProfile_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/NetworkProfile_Get.json */ async function getNetworkProfile() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js index 813511aa7c77..4450cacfa3f0 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the network security perimeter configuration for a private link scope. * * @summary Gets the network security perimeter configuration for a private link scope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json */ async function getsTheNetworkSecurityPerimeterConfigurationOfThePrivateLinkScope() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js index 8a8508253bc4..7739ec97328b 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the network security perimeter configurations for a private link scope. * * @summary Lists the network security perimeter configurations for a private link scope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json */ async function getsTheListOfNetworkSecurityPerimeterConfigurationsOfThePrivateLinkScope() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js index 63ce24d6e120..75ab03c2bb86 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Forces the network security perimeter configuration to refresh for a private link scope. * * @summary Forces the network security perimeter configuration to refresh for a private link scope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json */ async function reconcilesTheNetworkSecurityPerimeterConfigurationOfThePrivateLinkScope() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/operationsListSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/operationsListSample.js new file mode 100644 index 000000000000..ba97f906ca2e --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/operationsListSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of hybrid compute operations. + * + * @summary Gets a list of hybrid compute operations. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/Operations_List.json + */ +async function listHybridComputeProviderOperations() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listHybridComputeProviderOperations(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/package.json b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/package.json new file mode 100644 index 000000000000..b45773fdaf3a --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/package.json @@ -0,0 +1,32 @@ +{ + "name": "@azure-samples/arm-hybridcompute-js-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for JavaScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/hybridcompute/arm-hybridcompute" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcompute/arm-hybridcompute", + "dependencies": { + "@azure/arm-hybridcompute": "next", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + } +} diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsCreateOrUpdateSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsCreateOrUpdateSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js index 7d99bce8757a..257b3d5b2d05 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsCreateOrUpdateSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Approve or reject a private endpoint connection with a given name. * * @summary Approve or reject a private endpoint connection with a given name. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Update.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Update.json */ async function approveOrRejectAPrivateEndpointConnectionWithAGivenName() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsDeleteSample.js new file mode 100644 index 000000000000..124aca46f770 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a private endpoint connection with a given name. + * + * @summary Deletes a private endpoint connection with a given name. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Delete.json + */ +async function deletesAPrivateEndpointConnectionWithAGivenName() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const scopeName = "myPrivateLinkScope"; + const privateEndpointConnectionName = "private-endpoint-connection-name"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.beginDeleteAndWait( + resourceGroupName, + scopeName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + deletesAPrivateEndpointConnectionWithAGivenName(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsGetSample.js new file mode 100644 index 000000000000..4b510b81dd5d --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsGetSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a private endpoint connection. + * + * @summary Gets a private endpoint connection. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Get.json + */ +async function getsPrivateEndpointConnection() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const scopeName = "myPrivateLinkScope"; + const privateEndpointConnectionName = "private-endpoint-connection-name"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.get( + resourceGroupName, + scopeName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + getsPrivateEndpointConnection(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js index c2cfb857ad50..a7b8f65ce9d7 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets all private endpoint connections on a private link scope. * * @summary Gets all private endpoint connections on a private link scope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_List.json */ async function getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkResourcesGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkResourcesGetSample.js similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkResourcesGetSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkResourcesGetSample.js index 6bad5cdc2d2e..531c15eedfbf 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkResourcesGetSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkResourcesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. * * @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js index 74d948ba07f6..06840e40c03b 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. * * @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesCreateOrUpdateSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesCreateOrUpdateSample.js similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesCreateOrUpdateSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesCreateOrUpdateSample.js index 0718413f5a57..ade45e659bba 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesCreateOrUpdateSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. * * @summary Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Create.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Create.json */ async function privateLinkScopeCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function privateLinkScopeCreate() { * This sample demonstrates how to Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. * * @summary Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Update.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Update.json */ async function privateLinkScopeUpdate() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesDeleteSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesDeleteSample.js similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesDeleteSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesDeleteSample.js index 629981863905..076d8ac7f4a9 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesDeleteSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a Azure Arc PrivateLinkScope. * * @summary Deletes a Azure Arc PrivateLinkScope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Delete.json */ async function privateLinkScopesDelete() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetSample.js similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetSample.js index e73191097628..65bd0f90a727 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns a Azure Arc PrivateLinkScope. * * @summary Returns a Azure Arc PrivateLinkScope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Get.json */ async function privateLinkScopeGet() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetValidationDetailsForMachineSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetValidationDetailsForMachineSample.js similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetValidationDetailsForMachineSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetValidationDetailsForMachineSample.js index 417bda37da93..345673ca18ce 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetValidationDetailsForMachineSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetValidationDetailsForMachineSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns a Azure Arc PrivateLinkScope's validation details for a given machine. * * @summary Returns a Azure Arc PrivateLinkScope's validation details for a given machine. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json */ async function privateLinkScopeGet() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetValidationDetailsSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetValidationDetailsSample.js similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetValidationDetailsSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetValidationDetailsSample.js index 7b4ce0b16cdb..dbfeb2512095 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetValidationDetailsSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetValidationDetailsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns a Azure Arc PrivateLinkScope's validation details. * * @summary Returns a Azure Arc PrivateLinkScope's validation details. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json */ async function privateLinkScopeGet() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesListByResourceGroupSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesListByResourceGroupSample.js similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesListByResourceGroupSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesListByResourceGroupSample.js index 5a18e24df860..49f830b8279e 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesListByResourceGroupSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of Azure Arc PrivateLinkScopes within a resource group. * * @summary Gets a list of Azure Arc PrivateLinkScopes within a resource group. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json */ async function privateLinkScopeListByResourceGroup() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesListSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesListSample.js similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesListSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesListSample.js index 386571020bdb..77ba4caeeeef 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesListSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets a list of all Azure Arc PrivateLinkScopes within a subscription. * * @summary Gets a list of all Azure Arc PrivateLinkScopes within a subscription. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_List.json */ async function privateLinkScopesListJson() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesUpdateTagsSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesUpdateTagsSample.js similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesUpdateTagsSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesUpdateTagsSample.js index afe615bfbe8b..57a16b4f7508 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesUpdateTagsSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesUpdateTagsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. * * @summary Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json */ async function privateLinkScopeUpdateTagsOnly() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/sample.env b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsGetSample.js new file mode 100644 index 000000000000..d746ec3d22aa --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsGetSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Returns the base Settings for the target resource. + * + * @summary Returns the base Settings for the target resource. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsGet.json + */ +async function networkConfigurationsGet() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "hybridRG"; + const baseProvider = "Microsoft.HybridCompute"; + const baseResourceType = "machines"; + const baseResourceName = "testMachine"; + const settingsResourceName = "default"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.settingsOperations.get( + resourceGroupName, + baseProvider, + baseResourceType, + baseResourceName, + settingsResourceName, + ); + console.log(result); +} + +async function main() { + networkConfigurationsGet(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsPatchSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsPatchSample.js new file mode 100644 index 000000000000..c735f15654b0 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsPatchSample.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Update the base Settings of the target resource. + * + * @summary Update the base Settings of the target resource. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsPatch.json + */ +async function networkConfigurationsPatch() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "hybridRG"; + const baseProvider = "Microsoft.HybridCompute"; + const baseResourceType = "machines"; + const baseResourceName = "testMachine"; + const settingsResourceName = "default"; + const parameters = { + gatewayResourceId: + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway", + }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.settingsOperations.patch( + resourceGroupName, + baseProvider, + baseResourceType, + baseResourceName, + settingsResourceName, + parameters, + ); + console.log(result); +} + +async function main() { + networkConfigurationsPatch(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsUpdateSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsUpdateSample.js new file mode 100644 index 000000000000..72bb593a9929 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsUpdateSample.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates the base Settings of the target resource. + * + * @summary Updates the base Settings of the target resource. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsUpdate.json + */ +async function settingsUpdate() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "hybridRG"; + const baseProvider = "Microsoft.HybridCompute"; + const baseResourceType = "machines"; + const baseResourceName = "testMachine"; + const settingsResourceName = "default"; + const parameters = { + gatewayResourceId: + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway", + }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.settingsOperations.update( + resourceGroupName, + baseProvider, + baseResourceType, + baseResourceName, + settingsResourceName, + parameters, + ); + console.log(result); +} + +async function main() { + settingsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/upgradeExtensionsSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/upgradeExtensionsSample.js similarity index 94% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/upgradeExtensionsSample.js rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/upgradeExtensionsSample.js index e20517a5b5c6..ec4c89647417 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/upgradeExtensionsSample.js +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/upgradeExtensionsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to Upgrade Machine Extensions. * * @summary The operation to Upgrade Machine Extensions. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extensions_Upgrade.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extensions_Upgrade.json */ async function upgradeMachineExtensions() { const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/README.md b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/README.md new file mode 100644 index 000000000000..21ad222c5066 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/README.md @@ -0,0 +1,177 @@ +# client library samples for TypeScript (Beta) + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [extensionMetadataGetSample.ts][extensionmetadatagetsample] | Gets an Extension Metadata based on location, publisher, extensionType and version x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_Get.json | +| [extensionMetadataListSample.ts][extensionmetadatalistsample] | Gets all Extension versions based on location, publisher, extensionType x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_List.json | +| [gatewaysCreateOrUpdateSample.ts][gatewayscreateorupdatesample] | The operation to create or update a gateway. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_CreateOrUpdate.json | +| [gatewaysDeleteSample.ts][gatewaysdeletesample] | The operation to delete a gateway. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Delete.json | +| [gatewaysGetSample.ts][gatewaysgetsample] | Retrieves information about the view of a gateway. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Get.json | +| [gatewaysListByResourceGroupSample.ts][gatewayslistbyresourcegroupsample] | The operation to get all gateways of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListByResourceGroup.json | +| [gatewaysListBySubscriptionSample.ts][gatewayslistbysubscriptionsample] | The operation to get all gateways of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListBySubscription.json | +| [gatewaysUpdateSample.ts][gatewaysupdatesample] | The operation to update a gateway. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Update.json | +| [licenseProfilesCreateOrUpdateSample.ts][licenseprofilescreateorupdatesample] | The operation to create or update a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json | +| [licenseProfilesDeleteSample.ts][licenseprofilesdeletesample] | The operation to delete a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Delete.json | +| [licenseProfilesGetSample.ts][licenseprofilesgetsample] | Retrieves information about the view of a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Get.json | +| [licenseProfilesListSample.ts][licenseprofileslistsample] | The operation to get all license profiles of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_List.json | +| [licenseProfilesUpdateSample.ts][licenseprofilesupdatesample] | The operation to update a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Update.json | +| [licensesCreateOrUpdateSample.ts][licensescreateorupdatesample] | The operation to create or update a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_CreateOrUpdate.json | +| [licensesDeleteSample.ts][licensesdeletesample] | The operation to delete a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Delete.json | +| [licensesGetSample.ts][licensesgetsample] | Retrieves information about the view of a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Get.json | +| [licensesListByResourceGroupSample.ts][licenseslistbyresourcegroupsample] | The operation to get all licenses of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListByResourceGroup.json | +| [licensesListBySubscriptionSample.ts][licenseslistbysubscriptionsample] | The operation to get all licenses of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListBySubscription.json | +| [licensesUpdateSample.ts][licensesupdatesample] | The operation to update a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Update.json | +| [licensesValidateLicenseSample.ts][licensesvalidatelicensesample] | The operation to validate a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ValidateLicense.json | +| [machineExtensionsCreateOrUpdateSample.ts][machineextensionscreateorupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_CreateOrUpdate.json | +| [machineExtensionsDeleteSample.ts][machineextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Delete.json | +| [machineExtensionsGetSample.ts][machineextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Get.json | +| [machineExtensionsListSample.ts][machineextensionslistsample] | The operation to get all extensions of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_List.json | +| [machineExtensionsUpdateSample.ts][machineextensionsupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Update.json | +| [machineRunCommandsCreateOrUpdateSample.ts][machineruncommandscreateorupdatesample] | The operation to create or update a run command. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_CreateOrUpdate.json | +| [machineRunCommandsDeleteSample.ts][machineruncommandsdeletesample] | The operation to delete a run command. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Delete.json | +| [machineRunCommandsGetSample.ts][machineruncommandsgetsample] | The operation to get a run command. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Get.json | +| [machineRunCommandsListSample.ts][machineruncommandslistsample] | The operation to get all the run commands of a non-Azure machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_List.json | +| [machinesAssessPatchesSample.ts][machinesassesspatchessample] | The operation to assess patches on a hybrid machine identity in Azure. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_AssessPatches.json | +| [machinesDeleteSample.ts][machinesdeletesample] | The operation to delete a hybrid machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Delete.json | +| [machinesGetSample.ts][machinesgetsample] | Retrieves information about the model view or the instance view of a hybrid machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get.json | +| [machinesInstallPatchesSample.ts][machinesinstallpatchessample] | The operation to install patches on a hybrid machine identity in Azure. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_InstallPatches.json | +| [machinesListByResourceGroupSample.ts][machineslistbyresourcegroupsample] | Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListByResourceGroup.json | +| [machinesListBySubscriptionSample.ts][machineslistbysubscriptionsample] | Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListBySubscription.json | +| [networkProfileGetSample.ts][networkprofilegetsample] | The operation to get network information of hybrid machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/NetworkProfile_Get.json | +| [networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts][networksecurityperimeterconfigurationsgetbyprivatelinkscopesample] | Gets the network security perimeter configuration for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json | +| [networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts][networksecurityperimeterconfigurationslistbyprivatelinkscopesample] | Lists the network security perimeter configurations for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json | +| [networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts][networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample] | Forces the network security perimeter configuration to refresh for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json | +| [operationsListSample.ts][operationslistsample] | Gets a list of hybrid compute operations. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/Operations_List.json | +| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Update.json | +| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Delete.json | +| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets a private endpoint connection. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Get.json | +| [privateEndpointConnectionsListByPrivateLinkScopeSample.ts][privateendpointconnectionslistbyprivatelinkscopesample] | Gets all private endpoint connections on a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_List.json | +| [privateLinkResourcesGetSample.ts][privatelinkresourcesgetsample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json | +| [privateLinkResourcesListByPrivateLinkScopeSample.ts][privatelinkresourceslistbyprivatelinkscopesample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json | +| [privateLinkScopesCreateOrUpdateSample.ts][privatelinkscopescreateorupdatesample] | Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Create.json | +| [privateLinkScopesDeleteSample.ts][privatelinkscopesdeletesample] | Deletes a Azure Arc PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Delete.json | +| [privateLinkScopesGetSample.ts][privatelinkscopesgetsample] | Returns a Azure Arc PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Get.json | +| [privateLinkScopesGetValidationDetailsForMachineSample.ts][privatelinkscopesgetvalidationdetailsformachinesample] | Returns a Azure Arc PrivateLinkScope's validation details for a given machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json | +| [privateLinkScopesGetValidationDetailsSample.ts][privatelinkscopesgetvalidationdetailssample] | Returns a Azure Arc PrivateLinkScope's validation details. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json | +| [privateLinkScopesListByResourceGroupSample.ts][privatelinkscopeslistbyresourcegroupsample] | Gets a list of Azure Arc PrivateLinkScopes within a resource group. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json | +| [privateLinkScopesListSample.ts][privatelinkscopeslistsample] | Gets a list of all Azure Arc PrivateLinkScopes within a subscription. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_List.json | +| [privateLinkScopesUpdateTagsSample.ts][privatelinkscopesupdatetagssample] | Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json | +| [settingsGetSample.ts][settingsgetsample] | Returns the base Settings for the target resource. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsGet.json | +| [settingsPatchSample.ts][settingspatchsample] | Update the base Settings of the target resource. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsPatch.json | +| [settingsUpdateSample.ts][settingsupdatesample] | Updates the base Settings of the target resource. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsUpdate.json | +| [upgradeExtensionsSample.ts][upgradeextensionssample] | The operation to Upgrade Machine Extensions. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extensions_Upgrade.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/extensionMetadataGetSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env HYBRIDCOMPUTE_SUBSCRIPTION_ID="" node dist/extensionMetadataGetSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[extensionmetadatagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/extensionMetadataGetSample.ts +[extensionmetadatalistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/extensionMetadataListSample.ts +[gatewayscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysCreateOrUpdateSample.ts +[gatewaysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysDeleteSample.ts +[gatewaysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysGetSample.ts +[gatewayslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysListByResourceGroupSample.ts +[gatewayslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysListBySubscriptionSample.ts +[gatewaysupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysUpdateSample.ts +[licenseprofilescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesCreateOrUpdateSample.ts +[licenseprofilesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesDeleteSample.ts +[licenseprofilesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesGetSample.ts +[licenseprofileslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesListSample.ts +[licenseprofilesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesUpdateSample.ts +[licensescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesCreateOrUpdateSample.ts +[licensesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesDeleteSample.ts +[licensesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesGetSample.ts +[licenseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesListByResourceGroupSample.ts +[licenseslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesListBySubscriptionSample.ts +[licensesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesUpdateSample.ts +[licensesvalidatelicensesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesValidateLicenseSample.ts +[machineextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsCreateOrUpdateSample.ts +[machineextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsDeleteSample.ts +[machineextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsGetSample.ts +[machineextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsListSample.ts +[machineextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsUpdateSample.ts +[machineruncommandscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsCreateOrUpdateSample.ts +[machineruncommandsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsDeleteSample.ts +[machineruncommandsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsGetSample.ts +[machineruncommandslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsListSample.ts +[machinesassesspatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesAssessPatchesSample.ts +[machinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesDeleteSample.ts +[machinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesGetSample.ts +[machinesinstallpatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesInstallPatchesSample.ts +[machineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesListByResourceGroupSample.ts +[machineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesListBySubscriptionSample.ts +[networkprofilegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkProfileGetSample.ts +[networksecurityperimeterconfigurationsgetbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts +[networksecurityperimeterconfigurationslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts +[networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/operationsListSample.ts +[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsGetSample.ts +[privateendpointconnectionslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsListByPrivateLinkScopeSample.ts +[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkResourcesGetSample.ts +[privatelinkresourceslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkResourcesListByPrivateLinkScopeSample.ts +[privatelinkscopescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesCreateOrUpdateSample.ts +[privatelinkscopesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesDeleteSample.ts +[privatelinkscopesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesGetSample.ts +[privatelinkscopesgetvalidationdetailsformachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesGetValidationDetailsForMachineSample.ts +[privatelinkscopesgetvalidationdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesGetValidationDetailsSample.ts +[privatelinkscopeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesListByResourceGroupSample.ts +[privatelinkscopeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesListSample.ts +[privatelinkscopesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesUpdateTagsSample.ts +[settingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/settingsGetSample.ts +[settingspatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/settingsPatchSample.ts +[settingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/settingsUpdateSample.ts +[upgradeextensionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/upgradeExtensionsSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-hybridcompute?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcompute/arm-hybridcompute/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/package.json b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/package.json new file mode 100644 index 000000000000..a1db4d982a7b --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/package.json @@ -0,0 +1,41 @@ +{ + "name": "@azure-samples/arm-hybridcompute-ts-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for TypeScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/hybridcompute/arm-hybridcompute" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcompute/arm-hybridcompute", + "dependencies": { + "@azure/arm-hybridcompute": "next", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.6.2", + "rimraf": "latest" + } +} diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/sample.env b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/extensionMetadataGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/extensionMetadataGetSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/extensionMetadataGetSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/extensionMetadataGetSample.ts index fdfdf4e7f633..af8f820a24fa 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/extensionMetadataGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/extensionMetadataGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets an Extension Metadata based on location, publisher, extensionType and version * * @summary Gets an Extension Metadata based on location, publisher, extensionType and version - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_Get.json */ async function getAnExtensionsMetadata() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/extensionMetadataListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/extensionMetadataListSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/extensionMetadataListSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/extensionMetadataListSample.ts index d6f71ead9f77..2b8036e88d01 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/extensionMetadataListSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/extensionMetadataListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all Extension versions based on location, publisher, extensionType * * @summary Gets all Extension versions based on location, publisher, extensionType - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_List.json */ async function getAListOfExtensions() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysCreateOrUpdateSample.ts new file mode 100644 index 000000000000..47e89c7492a5 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysCreateOrUpdateSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + Gateway, + HybridComputeManagementClient, +} from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to create or update a gateway. + * + * @summary The operation to create or update a gateway. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_CreateOrUpdate.json + */ +async function createOrUpdateAGateway() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const gatewayName = "{gatewayName}"; + const parameters: Gateway = { + allowedFeatures: ["*"], + gatewayType: "Public", + location: "eastus2euap", + }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.gateways.beginCreateOrUpdateAndWait( + resourceGroupName, + gatewayName, + parameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateAGateway(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysDeleteSample.ts new file mode 100644 index 000000000000..6356de13502f --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysDeleteSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to delete a gateway. + * + * @summary The operation to delete a gateway. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Delete.json + */ +async function deleteAGateway() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const gatewayName = "{gatewayName}"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.gateways.beginDeleteAndWait( + resourceGroupName, + gatewayName, + ); + console.log(result); +} + +async function main() { + deleteAGateway(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysGetSample.ts new file mode 100644 index 000000000000..ddfd2392ac08 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysGetSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieves information about the view of a gateway. + * + * @summary Retrieves information about the view of a gateway. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Get.json + */ +async function getGateway() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const gatewayName = "{gatewayName}"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.gateways.get(resourceGroupName, gatewayName); + console.log(result); +} + +async function main() { + getGateway(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysListByResourceGroupSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysListByResourceGroupSample.ts new file mode 100644 index 000000000000..58cfa35f7a1a --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysListByResourceGroupSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to get all gateways of a non-Azure machine + * + * @summary The operation to get all gateways of a non-Azure machine + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListByResourceGroup.json + */ +async function listGatewaysByResourceGroup() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.gateways.listByResourceGroup( + resourceGroupName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listGatewaysByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysListBySubscriptionSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysListBySubscriptionSample.ts new file mode 100644 index 000000000000..602f8ff3e961 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysListBySubscriptionSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to get all gateways of a non-Azure machine + * + * @summary The operation to get all gateways of a non-Azure machine + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListBySubscription.json + */ +async function listGatewaysBySubscription() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.gateways.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listGatewaysBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysUpdateSample.ts new file mode 100644 index 000000000000..f9eb46e9a8aa --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/gatewaysUpdateSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + GatewayUpdate, + HybridComputeManagementClient, +} from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to update a gateway. + * + * @summary The operation to update a gateway. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Update.json + */ +async function updateAGateway() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "ffd506c8-3415-42d3-9612-fdb423fb17df"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const gatewayName = "{gatewayName}"; + const parameters: GatewayUpdate = { allowedFeatures: ["*"] }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.gateways.update( + resourceGroupName, + gatewayName, + parameters, + ); + console.log(result); +} + +async function main() { + updateAGateway(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesCreateOrUpdateSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesCreateOrUpdateSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesCreateOrUpdateSample.ts index f954114f396d..0e95e3714bb1 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesCreateOrUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update a license profile. * * @summary The operation to create or update a license profile. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json */ async function createOrUpdateALicenseProfile() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesDeleteSample.ts similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesDeleteSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesDeleteSample.ts index d5677baacab0..b2528c2fa698 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesDeleteSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a license profile. * * @summary The operation to delete a license profile. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Delete.json */ async function deleteALicenseProfile() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesGetSample.ts similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesGetSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesGetSample.ts index fa41f9858860..fdaa61f73846 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about the view of a license profile. * * @summary Retrieves information about the view of a license profile. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Get.json */ async function getLicenseProfile() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesListSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesListSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesListSample.ts index b9f3a086c038..2b3c280b1cd1 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesListSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all license profiles of a non-Azure machine * * @summary The operation to get all license profiles of a non-Azure machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_List.json */ async function listAllLicenseProfiles() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesUpdateSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesUpdateSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesUpdateSample.ts index b6fac9c01086..f1611d087909 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licenseProfilesUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update a license profile. * * @summary The operation to update a license profile. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Update.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Update.json */ async function updateALicenseProfile() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesCreateOrUpdateSample.ts similarity index 94% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesCreateOrUpdateSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesCreateOrUpdateSample.ts index b64b89da6fb1..7fe57120501d 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesCreateOrUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update a license. * * @summary The operation to create or update a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_CreateOrUpdate.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_CreateOrUpdate.json */ async function createOrUpdateALicense() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesDeleteSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesDeleteSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesDeleteSample.ts index 4d3be2b7b2ad..6712f0a8e586 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesDeleteSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a license. * * @summary The operation to delete a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Delete.json */ async function deleteALicense() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesGetSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesGetSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesGetSample.ts index 1e8a977f4203..330fbbc35ee1 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about the view of a license. * * @summary Retrieves information about the view of a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Get.json */ async function getLicense() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesListByResourceGroupSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesListByResourceGroupSample.ts similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesListByResourceGroupSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesListByResourceGroupSample.ts index dfcaff3ff4c8..2a33da473251 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesListByResourceGroupSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all licenses of a non-Azure machine * * @summary The operation to get all licenses of a non-Azure machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListByResourceGroup.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListByResourceGroup.json */ async function getAllMachineExtensions() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesListBySubscriptionSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesListBySubscriptionSample.ts similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesListBySubscriptionSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesListBySubscriptionSample.ts index f2d22d0609b0..2a914fd801ab 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesListBySubscriptionSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all licenses of a non-Azure machine * * @summary The operation to get all licenses of a non-Azure machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListBySubscription.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListBySubscription.json */ async function listLicensesBySubscription() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesUpdateSample.ts similarity index 94% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesUpdateSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesUpdateSample.ts index f14a3d4deac8..2dfb630cc977 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update a license. * * @summary The operation to update a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Update.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Update.json */ async function updateALicense() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesValidateLicenseSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesValidateLicenseSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesValidateLicenseSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesValidateLicenseSample.ts index df06b892c3ed..5055bca8488f 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesValidateLicenseSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/licensesValidateLicenseSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to validate a license. * * @summary The operation to validate a license. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ValidateLicense.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ValidateLicense.json */ async function validateALicense() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsCreateOrUpdateSample.ts similarity index 94% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsCreateOrUpdateSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsCreateOrUpdateSample.ts index c9610fd5d948..45477734d242 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsCreateOrUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update the extension. * * @summary The operation to create or update the extension. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_CreateOrUpdate.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_CreateOrUpdate.json */ async function createOrUpdateAMachineExtension() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsDeleteSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsDeleteSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsDeleteSample.ts index 480214199bf3..331b833d31c1 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsDeleteSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete the extension. * * @summary The operation to delete the extension. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Delete.json */ async function deleteAMachineExtension() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsGetSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsGetSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsGetSample.ts index df6dd1bd383e..2ca155afa7bc 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get the extension. * * @summary The operation to get the extension. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Get.json */ async function getMachineExtension() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsListSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsListSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsListSample.ts index 3d2be11300c7..ade0ca815227 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsListSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get all extensions of a non-Azure machine * * @summary The operation to get all extensions of a non-Azure machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_List.json */ async function getAllMachineExtensionsList() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsUpdateSample.ts similarity index 87% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsUpdateSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsUpdateSample.ts index 6d590e16722f..a6cfa6a6984b 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineExtensionsUpdateSample.ts @@ -18,10 +18,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to The operation to update the extension. + * This sample demonstrates how to The operation to create or update the extension. * - * @summary The operation to update the extension. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Update.json + * @summary The operation to create or update the extension. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Update.json */ async function createOrUpdateAMachineExtension() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..89ce6e7b767a --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsCreateOrUpdateSample.ts @@ -0,0 +1,64 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + MachineRunCommand, + HybridComputeManagementClient, +} from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to create or update a run command. + * + * @summary The operation to create or update a run command. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_CreateOrUpdate.json + */ +async function createOrUpdateARunCommand() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const machineName = "myMachine"; + const runCommandName = "myRunCommand"; + const runCommandProperties: MachineRunCommand = { + asyncExecution: false, + errorBlobUri: + "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", + location: "eastus2", + outputBlobUri: + "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", + parameters: [ + { name: "param1", value: "value1" }, + { name: "param2", value: "value2" }, + ], + runAsPassword: "", + runAsUser: "user1", + source: { script: "Write-Host Hello World!" }, + timeoutInSeconds: 3600, + }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.machineRunCommands.beginCreateOrUpdateAndWait( + resourceGroupName, + machineName, + runCommandName, + runCommandProperties, + ); + console.log(result); +} + +async function main() { + createOrUpdateARunCommand(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsDeleteSample.ts new file mode 100644 index 000000000000..ba53653d46cf --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsDeleteSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to delete a run command. + * + * @summary The operation to delete a run command. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Delete.json + */ +async function deleteAMachineRunCommand() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const machineName = "myMachine"; + const runCommandName = "myRunCommand"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.machineRunCommands.beginDeleteAndWait( + resourceGroupName, + machineName, + runCommandName, + ); + console.log(result); +} + +async function main() { + deleteAMachineRunCommand(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsGetSample.ts new file mode 100644 index 000000000000..f8b9fb9b06a8 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to get a run command. + * + * @summary The operation to get a run command. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Get.json + */ +async function getARunCommand() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const machineName = "myMachine"; + const runCommandName = "myRunCommand"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.machineRunCommands.get( + resourceGroupName, + machineName, + runCommandName, + ); + console.log(result); +} + +async function main() { + getARunCommand(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsListSample.ts new file mode 100644 index 000000000000..48061f1bb283 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machineRunCommandsListSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to The operation to get all the run commands of a non-Azure machine. + * + * @summary The operation to get all the run commands of a non-Azure machine. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_List.json + */ +async function getAllMachineRunCommands() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const machineName = "myMachine"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.machineRunCommands.list( + resourceGroupName, + machineName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getAllMachineRunCommands(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesAssessPatchesSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesAssessPatchesSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesAssessPatchesSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesAssessPatchesSample.ts index f3392d1522a4..f85c3d3f47e5 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesAssessPatchesSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesAssessPatchesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to assess patches on a hybrid machine identity in Azure. * * @summary The operation to assess patches on a hybrid machine identity in Azure. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_AssessPatches.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_AssessPatches.json */ async function assessPatchStateOfAMachine() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesDeleteSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesDeleteSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesDeleteSample.ts index 4815ae06e1ab..bb6d9174a36f 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesDeleteSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a hybrid machine. * * @summary The operation to delete a hybrid machine. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Delete.json */ async function deleteAMachine() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesGetSample.ts similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesGetSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesGetSample.ts index 192712fd9c41..93858b34e645 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesGetSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about the model view or the instance view of a hybrid machine. * * @summary Retrieves information about the model view or the instance view of a hybrid machine. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get.json */ async function getMachine() { const subscriptionId = @@ -39,7 +39,7 @@ async function getMachine() { * This sample demonstrates how to Retrieves information about the model view or the instance view of a hybrid machine. * * @summary Retrieves information about the model view or the instance view of a hybrid machine. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get_LicenseProfileInstanceView.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json */ async function getMachineWithLicenseProfileInstanceView() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesInstallPatchesSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesInstallPatchesSample.ts similarity index 94% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesInstallPatchesSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesInstallPatchesSample.ts index afe1b93360b8..11ed6a98fdd8 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesInstallPatchesSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesInstallPatchesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to install patches on a hybrid machine identity in Azure. * * @summary The operation to install patches on a hybrid machine identity in Azure. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_InstallPatches.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_InstallPatches.json */ async function installPatchStateOfAMachine() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesListByResourceGroupSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesListByResourceGroupSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesListByResourceGroupSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesListByResourceGroupSample.ts index be99cc483938..ae276b6ab013 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesListByResourceGroupSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. * * @summary Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListByResourceGroup.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListByResourceGroup.json */ async function listMachinesByResourceGroup() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesListBySubscriptionSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesListBySubscriptionSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesListBySubscriptionSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesListBySubscriptionSample.ts index 315585d665f3..409e584f954e 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesListBySubscriptionSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/machinesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. * * @summary Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListBySubscription.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListBySubscription.json */ async function listMachinesByResourceGroup() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkProfileGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkProfileGetSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkProfileGetSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkProfileGetSample.ts index 6689495efe0f..fac322570b78 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkProfileGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkProfileGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get network information of hybrid machine * * @summary The operation to get network information of hybrid machine - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/NetworkProfile_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/NetworkProfile_Get.json */ async function getNetworkProfile() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts index b48a7a834795..6889a5e285e1 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the network security perimeter configuration for a private link scope. * * @summary Gets the network security perimeter configuration for a private link scope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json */ async function getsTheNetworkSecurityPerimeterConfigurationOfThePrivateLinkScope() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts index 04e7d1b503d3..5221504c5152 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the network security perimeter configurations for a private link scope. * * @summary Lists the network security perimeter configurations for a private link scope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json */ async function getsTheListOfNetworkSecurityPerimeterConfigurationsOfThePrivateLinkScope() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts index c1fb893f5a52..7d7a80b1ea94 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Forces the network security perimeter configuration to refresh for a private link scope. * * @summary Forces the network security perimeter configuration to refresh for a private link scope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json */ async function reconcilesTheNetworkSecurityPerimeterConfigurationOfThePrivateLinkScope() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/operationsListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/operationsListSample.ts new file mode 100644 index 000000000000..392118b18f37 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/operationsListSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of hybrid compute operations. + * + * @summary Gets a list of hybrid compute operations. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/Operations_List.json + */ +async function listHybridComputeProviderOperations() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listHybridComputeProviderOperations(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts similarity index 94% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts index e149d0eb0ec0..80f78fbd092c 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Approve or reject a private endpoint connection with a given name. * * @summary Approve or reject a private endpoint connection with a given name. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Update.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Update.json */ async function approveOrRejectAPrivateEndpointConnectionWithAGivenName() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts new file mode 100644 index 000000000000..301ebd1a5bf2 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a private endpoint connection with a given name. + * + * @summary Deletes a private endpoint connection with a given name. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Delete.json + */ +async function deletesAPrivateEndpointConnectionWithAGivenName() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const scopeName = "myPrivateLinkScope"; + const privateEndpointConnectionName = "private-endpoint-connection-name"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.beginDeleteAndWait( + resourceGroupName, + scopeName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + deletesAPrivateEndpointConnectionWithAGivenName(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsGetSample.ts new file mode 100644 index 000000000000..82e552c20458 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a private endpoint connection. + * + * @summary Gets a private endpoint connection. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Get.json + */ +async function getsPrivateEndpointConnection() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; + const scopeName = "myPrivateLinkScope"; + const privateEndpointConnectionName = "private-endpoint-connection-name"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.get( + resourceGroupName, + scopeName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + getsPrivateEndpointConnection(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsListByPrivateLinkScopeSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsListByPrivateLinkScopeSample.ts similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsListByPrivateLinkScopeSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsListByPrivateLinkScopeSample.ts index edb567a0ca22..ccc529d9e325 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsListByPrivateLinkScopeSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateEndpointConnectionsListByPrivateLinkScopeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all private endpoint connections on a private link scope. * * @summary Gets all private endpoint connections on a private link scope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_List.json */ async function getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkResourcesGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkResourcesGetSample.ts similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkResourcesGetSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkResourcesGetSample.ts index 100226c597f5..9f8a0f5631a4 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkResourcesGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkResourcesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. * * @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkResourcesListByPrivateLinkScopeSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkResourcesListByPrivateLinkScopeSample.ts similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkResourcesListByPrivateLinkScopeSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkResourcesListByPrivateLinkScopeSample.ts index 007f14cf4948..3fd96f3d2c21 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkResourcesListByPrivateLinkScopeSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkResourcesListByPrivateLinkScopeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. * * @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json */ async function getsPrivateEndpointConnection() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesCreateOrUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesCreateOrUpdateSample.ts similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesCreateOrUpdateSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesCreateOrUpdateSample.ts index 8b6e4ae7579a..31d54ad20316 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesCreateOrUpdateSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. * * @summary Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Create.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Create.json */ async function privateLinkScopeCreate() { const subscriptionId = @@ -45,7 +45,7 @@ async function privateLinkScopeCreate() { * This sample demonstrates how to Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. * * @summary Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Update.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Update.json */ async function privateLinkScopeUpdate() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesDeleteSample.ts similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesDeleteSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesDeleteSample.ts index 896013f60f6c..3d3d7fee9de9 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesDeleteSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a Azure Arc PrivateLinkScope. * * @summary Deletes a Azure Arc PrivateLinkScope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Delete.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Delete.json */ async function privateLinkScopesDelete() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesGetSample.ts similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesGetSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesGetSample.ts index e289948c48ac..7ccc812ca7c6 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesGetSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a Azure Arc PrivateLinkScope. * * @summary Returns a Azure Arc PrivateLinkScope. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Get.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Get.json */ async function privateLinkScopeGet() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesGetValidationDetailsForMachineSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesGetValidationDetailsForMachineSample.ts similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesGetValidationDetailsForMachineSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesGetValidationDetailsForMachineSample.ts index cab5e9864dc4..34e1c458285c 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesGetValidationDetailsForMachineSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesGetValidationDetailsForMachineSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a Azure Arc PrivateLinkScope's validation details for a given machine. * * @summary Returns a Azure Arc PrivateLinkScope's validation details for a given machine. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json */ async function privateLinkScopeGet() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesGetValidationDetailsSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesGetValidationDetailsSample.ts similarity index 91% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesGetValidationDetailsSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesGetValidationDetailsSample.ts index 3604d0978229..f5adb503f05a 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesGetValidationDetailsSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesGetValidationDetailsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a Azure Arc PrivateLinkScope's validation details. * * @summary Returns a Azure Arc PrivateLinkScope's validation details. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json */ async function privateLinkScopeGet() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesListByResourceGroupSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesListByResourceGroupSample.ts similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesListByResourceGroupSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesListByResourceGroupSample.ts index 7d698639ccdd..9bf91ce632d7 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesListByResourceGroupSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of Azure Arc PrivateLinkScopes within a resource group. * * @summary Gets a list of Azure Arc PrivateLinkScopes within a resource group. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json */ async function privateLinkScopeListByResourceGroup() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesListSample.ts similarity index 92% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesListSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesListSample.ts index 0e95c3e9b028..80c105b347d7 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesListSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all Azure Arc PrivateLinkScopes within a subscription. * * @summary Gets a list of all Azure Arc PrivateLinkScopes within a subscription. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_List.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_List.json */ async function privateLinkScopesListJson() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesUpdateTagsSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesUpdateTagsSample.ts similarity index 93% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesUpdateTagsSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesUpdateTagsSample.ts index 8c1b870b9098..db53e0b85c41 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesUpdateTagsSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/privateLinkScopesUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. * * @summary Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json */ async function privateLinkScopeUpdateTagsOnly() { const subscriptionId = diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/settingsGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/settingsGetSample.ts new file mode 100644 index 000000000000..2b7639278313 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/settingsGetSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns the base Settings for the target resource. + * + * @summary Returns the base Settings for the target resource. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsGet.json + */ +async function networkConfigurationsGet() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "hybridRG"; + const baseProvider = "Microsoft.HybridCompute"; + const baseResourceType = "machines"; + const baseResourceName = "testMachine"; + const settingsResourceName = "default"; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.settingsOperations.get( + resourceGroupName, + baseProvider, + baseResourceType, + baseResourceName, + settingsResourceName, + ); + console.log(result); +} + +async function main() { + networkConfigurationsGet(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/settingsPatchSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/settingsPatchSample.ts new file mode 100644 index 000000000000..d5e7fc2346b7 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/settingsPatchSample.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + Settings, + HybridComputeManagementClient, +} from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update the base Settings of the target resource. + * + * @summary Update the base Settings of the target resource. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsPatch.json + */ +async function networkConfigurationsPatch() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "hybridRG"; + const baseProvider = "Microsoft.HybridCompute"; + const baseResourceType = "machines"; + const baseResourceName = "testMachine"; + const settingsResourceName = "default"; + const parameters: Settings = { + gatewayResourceId: + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway", + }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.settingsOperations.patch( + resourceGroupName, + baseProvider, + baseResourceType, + baseResourceName, + settingsResourceName, + parameters, + ); + console.log(result); +} + +async function main() { + networkConfigurationsPatch(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/settingsUpdateSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/settingsUpdateSample.ts new file mode 100644 index 000000000000..fdf91e4b41d1 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/settingsUpdateSample.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + Settings, + HybridComputeManagementClient, +} from "@azure/arm-hybridcompute"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates the base Settings of the target resource. + * + * @summary Updates the base Settings of the target resource. + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsUpdate.json + */ +async function settingsUpdate() { + const subscriptionId = + process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "hybridRG"; + const baseProvider = "Microsoft.HybridCompute"; + const baseResourceType = "machines"; + const baseResourceName = "testMachine"; + const settingsResourceName = "default"; + const parameters: Settings = { + gatewayResourceId: + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway", + }; + const credential = new DefaultAzureCredential(); + const client = new HybridComputeManagementClient(credential, subscriptionId); + const result = await client.settingsOperations.update( + resourceGroupName, + baseProvider, + baseResourceType, + baseResourceName, + settingsResourceName, + parameters, + ); + console.log(result); +} + +async function main() { + settingsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/upgradeExtensionsSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/upgradeExtensionsSample.ts similarity index 94% rename from sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/upgradeExtensionsSample.ts rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/upgradeExtensionsSample.ts index ec8a23160b3a..50cd5abe82e8 100644 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/upgradeExtensionsSample.ts +++ b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/src/upgradeExtensionsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to Upgrade Machine Extensions. * * @summary The operation to Upgrade Machine Extensions. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extensions_Upgrade.json + * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extensions_Upgrade.json */ async function upgradeMachineExtensions() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/tsconfig.json b/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/tsconfig.json similarity index 100% rename from sdk/netapp/arm-netapp/samples/v21/typescript/tsconfig.json rename to sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/typescript/tsconfig.json diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/README.md b/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/README.md deleted file mode 100644 index cc7a8e150a21..000000000000 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/README.md +++ /dev/null @@ -1,138 +0,0 @@ -# client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [extensionMetadataGetSample.js][extensionmetadatagetsample] | Gets an Extension Metadata based on location, publisher, extensionType and version x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_Get.json | -| [extensionMetadataListSample.js][extensionmetadatalistsample] | Gets all Extension versions based on location, publisher, extensionType x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_List.json | -| [licenseProfilesCreateOrUpdateSample.js][licenseprofilescreateorupdatesample] | The operation to create or update a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json | -| [licenseProfilesDeleteSample.js][licenseprofilesdeletesample] | The operation to delete a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Delete.json | -| [licenseProfilesGetSample.js][licenseprofilesgetsample] | Retrieves information about the view of a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Get.json | -| [licenseProfilesListSample.js][licenseprofileslistsample] | The operation to get all license profiles of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_List.json | -| [licenseProfilesUpdateSample.js][licenseprofilesupdatesample] | The operation to update a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Update.json | -| [licensesCreateOrUpdateSample.js][licensescreateorupdatesample] | The operation to create or update a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_CreateOrUpdate.json | -| [licensesDeleteSample.js][licensesdeletesample] | The operation to delete a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Delete.json | -| [licensesGetSample.js][licensesgetsample] | Retrieves information about the view of a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Get.json | -| [licensesListByResourceGroupSample.js][licenseslistbyresourcegroupsample] | The operation to get all licenses of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListByResourceGroup.json | -| [licensesListBySubscriptionSample.js][licenseslistbysubscriptionsample] | The operation to get all licenses of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListBySubscription.json | -| [licensesUpdateSample.js][licensesupdatesample] | The operation to update a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Update.json | -| [licensesValidateLicenseSample.js][licensesvalidatelicensesample] | The operation to validate a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ValidateLicense.json | -| [machineExtensionsCreateOrUpdateSample.js][machineextensionscreateorupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_CreateOrUpdate.json | -| [machineExtensionsDeleteSample.js][machineextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Delete.json | -| [machineExtensionsGetSample.js][machineextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Get.json | -| [machineExtensionsListSample.js][machineextensionslistsample] | The operation to get all extensions of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_List.json | -| [machineExtensionsUpdateSample.js][machineextensionsupdatesample] | The operation to update the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Update.json | -| [machinesAssessPatchesSample.js][machinesassesspatchessample] | The operation to assess patches on a hybrid machine identity in Azure. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_AssessPatches.json | -| [machinesDeleteSample.js][machinesdeletesample] | The operation to delete a hybrid machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Delete.json | -| [machinesGetSample.js][machinesgetsample] | Retrieves information about the model view or the instance view of a hybrid machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get.json | -| [machinesInstallPatchesSample.js][machinesinstallpatchessample] | The operation to install patches on a hybrid machine identity in Azure. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_InstallPatches.json | -| [machinesListByResourceGroupSample.js][machineslistbyresourcegroupsample] | Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListByResourceGroup.json | -| [machinesListBySubscriptionSample.js][machineslistbysubscriptionsample] | Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListBySubscription.json | -| [networkProfileGetSample.js][networkprofilegetsample] | The operation to get network information of hybrid machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/NetworkProfile_Get.json | -| [networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js][networksecurityperimeterconfigurationsgetbyprivatelinkscopesample] | Gets the network security perimeter configuration for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json | -| [networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js][networksecurityperimeterconfigurationslistbyprivatelinkscopesample] | Lists the network security perimeter configurations for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json | -| [networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js][networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample] | Forces the network security perimeter configuration to refresh for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json | -| [operationsListSample.js][operationslistsample] | Gets a list of hybrid compute operations. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/Operations_List.json | -| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Update.json | -| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Delete.json | -| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets a private endpoint connection. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Get.json | -| [privateEndpointConnectionsListByPrivateLinkScopeSample.js][privateendpointconnectionslistbyprivatelinkscopesample] | Gets all private endpoint connections on a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_List.json | -| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json | -| [privateLinkResourcesListByPrivateLinkScopeSample.js][privatelinkresourceslistbyprivatelinkscopesample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json | -| [privateLinkScopesCreateOrUpdateSample.js][privatelinkscopescreateorupdatesample] | Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Create.json | -| [privateLinkScopesDeleteSample.js][privatelinkscopesdeletesample] | Deletes a Azure Arc PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Delete.json | -| [privateLinkScopesGetSample.js][privatelinkscopesgetsample] | Returns a Azure Arc PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Get.json | -| [privateLinkScopesGetValidationDetailsForMachineSample.js][privatelinkscopesgetvalidationdetailsformachinesample] | Returns a Azure Arc PrivateLinkScope's validation details for a given machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json | -| [privateLinkScopesGetValidationDetailsSample.js][privatelinkscopesgetvalidationdetailssample] | Returns a Azure Arc PrivateLinkScope's validation details. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json | -| [privateLinkScopesListByResourceGroupSample.js][privatelinkscopeslistbyresourcegroupsample] | Gets a list of Azure Arc PrivateLinkScopes within a resource group. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json | -| [privateLinkScopesListSample.js][privatelinkscopeslistsample] | Gets a list of all Azure Arc PrivateLinkScopes within a subscription. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_List.json | -| [privateLinkScopesUpdateTagsSample.js][privatelinkscopesupdatetagssample] | Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json | -| [upgradeExtensionsSample.js][upgradeextensionssample] | The operation to Upgrade Machine Extensions. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extensions_Upgrade.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node extensionMetadataGetSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env HYBRIDCOMPUTE_SUBSCRIPTION_ID="" node extensionMetadataGetSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[extensionmetadatagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/extensionMetadataGetSample.js -[extensionmetadatalistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/extensionMetadataListSample.js -[licenseprofilescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesCreateOrUpdateSample.js -[licenseprofilesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesDeleteSample.js -[licenseprofilesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesGetSample.js -[licenseprofileslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesListSample.js -[licenseprofilesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesUpdateSample.js -[licensescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesCreateOrUpdateSample.js -[licensesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesDeleteSample.js -[licensesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesGetSample.js -[licenseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesListByResourceGroupSample.js -[licenseslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesListBySubscriptionSample.js -[licensesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesUpdateSample.js -[licensesvalidatelicensesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesValidateLicenseSample.js -[machineextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsCreateOrUpdateSample.js -[machineextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsDeleteSample.js -[machineextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsGetSample.js -[machineextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsListSample.js -[machineextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsUpdateSample.js -[machinesassesspatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesAssessPatchesSample.js -[machinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesDeleteSample.js -[machinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesGetSample.js -[machinesinstallpatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesInstallPatchesSample.js -[machineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesListByResourceGroupSample.js -[machineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesListBySubscriptionSample.js -[networkprofilegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkProfileGetSample.js -[networksecurityperimeterconfigurationsgetbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js -[networksecurityperimeterconfigurationslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js -[networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/operationsListSample.js -[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsCreateOrUpdateSample.js -[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsDeleteSample.js -[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsGetSample.js -[privateendpointconnectionslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js -[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkResourcesGetSample.js -[privatelinkresourceslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js -[privatelinkscopescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesCreateOrUpdateSample.js -[privatelinkscopesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesDeleteSample.js -[privatelinkscopesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetSample.js -[privatelinkscopesgetvalidationdetailsformachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetValidationDetailsForMachineSample.js -[privatelinkscopesgetvalidationdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetValidationDetailsSample.js -[privatelinkscopeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesListByResourceGroupSample.js -[privatelinkscopeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesListSample.js -[privatelinkscopesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesUpdateTagsSample.js -[upgradeextensionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/upgradeExtensionsSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-hybridcompute?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcompute/arm-hybridcompute/README.md diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/operationsListSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/operationsListSample.js deleted file mode 100644 index 148eaa892a0e..000000000000 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/operationsListSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets a list of hybrid compute operations. - * - * @summary Gets a list of hybrid compute operations. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/Operations_List.json - */ -async function listHybridComputeProviderOperations() { - const subscriptionId = - process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new HybridComputeManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listHybridComputeProviderOperations(); -} - -main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/package.json b/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/package.json deleted file mode 100644 index 0ed9123957f5..000000000000 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-hybridcompute-js", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/hybridcompute/arm-hybridcompute" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcompute/arm-hybridcompute", - "dependencies": { - "@azure/arm-hybridcompute": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - } -} diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsDeleteSample.js deleted file mode 100644 index 74f7b9b11773..000000000000 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes a private endpoint connection with a given name. - * - * @summary Deletes a private endpoint connection with a given name. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Delete.json - */ -async function deletesAPrivateEndpointConnectionWithAGivenName() { - const subscriptionId = - process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; - const scopeName = "myPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const credential = new DefaultAzureCredential(); - const client = new HybridComputeManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.beginDeleteAndWait( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - ); - console.log(result); -} - -async function main() { - deletesAPrivateEndpointConnectionWithAGivenName(); -} - -main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsGetSample.js b/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsGetSample.js deleted file mode 100644 index 7dff5ae5ccbf..000000000000 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets a private endpoint connection. - * - * @summary Gets a private endpoint connection. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Get.json - */ -async function getsPrivateEndpointConnection() { - const subscriptionId = - process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; - const scopeName = "myPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const credential = new DefaultAzureCredential(); - const client = new HybridComputeManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.get( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - ); - console.log(result); -} - -async function main() { - getsPrivateEndpointConnection(); -} - -main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/sample.env b/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/README.md b/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/README.md deleted file mode 100644 index 7eaacc08d525..000000000000 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/README.md +++ /dev/null @@ -1,151 +0,0 @@ -# client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [extensionMetadataGetSample.ts][extensionmetadatagetsample] | Gets an Extension Metadata based on location, publisher, extensionType and version x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_Get.json | -| [extensionMetadataListSample.ts][extensionmetadatalistsample] | Gets all Extension versions based on location, publisher, extensionType x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_List.json | -| [licenseProfilesCreateOrUpdateSample.ts][licenseprofilescreateorupdatesample] | The operation to create or update a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json | -| [licenseProfilesDeleteSample.ts][licenseprofilesdeletesample] | The operation to delete a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Delete.json | -| [licenseProfilesGetSample.ts][licenseprofilesgetsample] | Retrieves information about the view of a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Get.json | -| [licenseProfilesListSample.ts][licenseprofileslistsample] | The operation to get all license profiles of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_List.json | -| [licenseProfilesUpdateSample.ts][licenseprofilesupdatesample] | The operation to update a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Update.json | -| [licensesCreateOrUpdateSample.ts][licensescreateorupdatesample] | The operation to create or update a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_CreateOrUpdate.json | -| [licensesDeleteSample.ts][licensesdeletesample] | The operation to delete a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Delete.json | -| [licensesGetSample.ts][licensesgetsample] | Retrieves information about the view of a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Get.json | -| [licensesListByResourceGroupSample.ts][licenseslistbyresourcegroupsample] | The operation to get all licenses of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListByResourceGroup.json | -| [licensesListBySubscriptionSample.ts][licenseslistbysubscriptionsample] | The operation to get all licenses of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListBySubscription.json | -| [licensesUpdateSample.ts][licensesupdatesample] | The operation to update a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Update.json | -| [licensesValidateLicenseSample.ts][licensesvalidatelicensesample] | The operation to validate a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ValidateLicense.json | -| [machineExtensionsCreateOrUpdateSample.ts][machineextensionscreateorupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_CreateOrUpdate.json | -| [machineExtensionsDeleteSample.ts][machineextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Delete.json | -| [machineExtensionsGetSample.ts][machineextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Get.json | -| [machineExtensionsListSample.ts][machineextensionslistsample] | The operation to get all extensions of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_List.json | -| [machineExtensionsUpdateSample.ts][machineextensionsupdatesample] | The operation to update the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Update.json | -| [machinesAssessPatchesSample.ts][machinesassesspatchessample] | The operation to assess patches on a hybrid machine identity in Azure. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_AssessPatches.json | -| [machinesDeleteSample.ts][machinesdeletesample] | The operation to delete a hybrid machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Delete.json | -| [machinesGetSample.ts][machinesgetsample] | Retrieves information about the model view or the instance view of a hybrid machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get.json | -| [machinesInstallPatchesSample.ts][machinesinstallpatchessample] | The operation to install patches on a hybrid machine identity in Azure. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_InstallPatches.json | -| [machinesListByResourceGroupSample.ts][machineslistbyresourcegroupsample] | Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListByResourceGroup.json | -| [machinesListBySubscriptionSample.ts][machineslistbysubscriptionsample] | Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListBySubscription.json | -| [networkProfileGetSample.ts][networkprofilegetsample] | The operation to get network information of hybrid machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/NetworkProfile_Get.json | -| [networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts][networksecurityperimeterconfigurationsgetbyprivatelinkscopesample] | Gets the network security perimeter configuration for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json | -| [networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts][networksecurityperimeterconfigurationslistbyprivatelinkscopesample] | Lists the network security perimeter configurations for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json | -| [networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts][networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample] | Forces the network security perimeter configuration to refresh for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json | -| [operationsListSample.ts][operationslistsample] | Gets a list of hybrid compute operations. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/Operations_List.json | -| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Update.json | -| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Delete.json | -| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets a private endpoint connection. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Get.json | -| [privateEndpointConnectionsListByPrivateLinkScopeSample.ts][privateendpointconnectionslistbyprivatelinkscopesample] | Gets all private endpoint connections on a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_List.json | -| [privateLinkResourcesGetSample.ts][privatelinkresourcesgetsample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json | -| [privateLinkResourcesListByPrivateLinkScopeSample.ts][privatelinkresourceslistbyprivatelinkscopesample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json | -| [privateLinkScopesCreateOrUpdateSample.ts][privatelinkscopescreateorupdatesample] | Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Create.json | -| [privateLinkScopesDeleteSample.ts][privatelinkscopesdeletesample] | Deletes a Azure Arc PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Delete.json | -| [privateLinkScopesGetSample.ts][privatelinkscopesgetsample] | Returns a Azure Arc PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Get.json | -| [privateLinkScopesGetValidationDetailsForMachineSample.ts][privatelinkscopesgetvalidationdetailsformachinesample] | Returns a Azure Arc PrivateLinkScope's validation details for a given machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json | -| [privateLinkScopesGetValidationDetailsSample.ts][privatelinkscopesgetvalidationdetailssample] | Returns a Azure Arc PrivateLinkScope's validation details. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json | -| [privateLinkScopesListByResourceGroupSample.ts][privatelinkscopeslistbyresourcegroupsample] | Gets a list of Azure Arc PrivateLinkScopes within a resource group. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json | -| [privateLinkScopesListSample.ts][privatelinkscopeslistsample] | Gets a list of all Azure Arc PrivateLinkScopes within a subscription. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_List.json | -| [privateLinkScopesUpdateTagsSample.ts][privatelinkscopesupdatetagssample] | Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json | -| [upgradeExtensionsSample.ts][upgradeextensionssample] | The operation to Upgrade Machine Extensions. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extensions_Upgrade.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/extensionMetadataGetSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env HYBRIDCOMPUTE_SUBSCRIPTION_ID="" node dist/extensionMetadataGetSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[extensionmetadatagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/extensionMetadataGetSample.ts -[extensionmetadatalistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/extensionMetadataListSample.ts -[licenseprofilescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesCreateOrUpdateSample.ts -[licenseprofilesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesDeleteSample.ts -[licenseprofilesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesGetSample.ts -[licenseprofileslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesListSample.ts -[licenseprofilesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licenseProfilesUpdateSample.ts -[licensescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesCreateOrUpdateSample.ts -[licensesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesDeleteSample.ts -[licensesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesGetSample.ts -[licenseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesListByResourceGroupSample.ts -[licenseslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesListBySubscriptionSample.ts -[licensesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesUpdateSample.ts -[licensesvalidatelicensesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/licensesValidateLicenseSample.ts -[machineextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsCreateOrUpdateSample.ts -[machineextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsDeleteSample.ts -[machineextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsGetSample.ts -[machineextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsListSample.ts -[machineextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machineExtensionsUpdateSample.ts -[machinesassesspatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesAssessPatchesSample.ts -[machinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesDeleteSample.ts -[machinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesGetSample.ts -[machinesinstallpatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesInstallPatchesSample.ts -[machineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesListByResourceGroupSample.ts -[machineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/machinesListBySubscriptionSample.ts -[networkprofilegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkProfileGetSample.ts -[networksecurityperimeterconfigurationsgetbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.ts -[networksecurityperimeterconfigurationslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.ts -[networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/operationsListSample.ts -[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts -[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsDeleteSample.ts -[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsGetSample.ts -[privateendpointconnectionslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsListByPrivateLinkScopeSample.ts -[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkResourcesGetSample.ts -[privatelinkresourceslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkResourcesListByPrivateLinkScopeSample.ts -[privatelinkscopescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesCreateOrUpdateSample.ts -[privatelinkscopesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesDeleteSample.ts -[privatelinkscopesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesGetSample.ts -[privatelinkscopesgetvalidationdetailsformachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesGetValidationDetailsForMachineSample.ts -[privatelinkscopesgetvalidationdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesGetValidationDetailsSample.ts -[privatelinkscopeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesListByResourceGroupSample.ts -[privatelinkscopeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesListSample.ts -[privatelinkscopesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateLinkScopesUpdateTagsSample.ts -[upgradeextensionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/upgradeExtensionsSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-hybridcompute?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcompute/arm-hybridcompute/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/package.json b/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/package.json deleted file mode 100644 index e6f4fa1d1b1b..000000000000 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-hybridcompute-ts", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/hybridcompute/arm-hybridcompute" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcompute/arm-hybridcompute", - "dependencies": { - "@azure/arm-hybridcompute": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.6.2", - "rimraf": "latest" - } -} diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/sample.env b/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/operationsListSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/operationsListSample.ts deleted file mode 100644 index d387b1854233..000000000000 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a list of hybrid compute operations. - * - * @summary Gets a list of hybrid compute operations. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/Operations_List.json - */ -async function listHybridComputeProviderOperations() { - const subscriptionId = - process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new HybridComputeManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listHybridComputeProviderOperations(); -} - -main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsDeleteSample.ts deleted file mode 100644 index e44918f7df50..000000000000 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a private endpoint connection with a given name. - * - * @summary Deletes a private endpoint connection with a given name. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Delete.json - */ -async function deletesAPrivateEndpointConnectionWithAGivenName() { - const subscriptionId = - process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; - const scopeName = "myPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const credential = new DefaultAzureCredential(); - const client = new HybridComputeManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.beginDeleteAndWait( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - ); - console.log(result); -} - -async function main() { - deletesAPrivateEndpointConnectionWithAGivenName(); -} - -main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsGetSample.ts deleted file mode 100644 index eb3c01a68ea4..000000000000 --- a/sdk/hybridcompute/arm-hybridcompute/samples/v4/typescript/src/privateEndpointConnectionsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { HybridComputeManagementClient } from "@azure/arm-hybridcompute"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a private endpoint connection. - * - * @summary Gets a private endpoint connection. - * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Get.json - */ -async function getsPrivateEndpointConnection() { - const subscriptionId = - process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; - const scopeName = "myPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const credential = new DefaultAzureCredential(); - const client = new HybridComputeManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.get( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - ); - console.log(result); -} - -async function main() { - getsPrivateEndpointConnection(); -} - -main().catch(console.error); diff --git a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts index 76005a1946d4..6acba958f7a9 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts @@ -28,6 +28,9 @@ import { ExtensionMetadataImpl, OperationsImpl, NetworkProfileOperationsImpl, + MachineRunCommandsImpl, + GatewaysImpl, + SettingsOperationsImpl, PrivateLinkScopesImpl, PrivateLinkResourcesImpl, PrivateEndpointConnectionsImpl, @@ -41,6 +44,9 @@ import { ExtensionMetadata, Operations, NetworkProfileOperations, + MachineRunCommands, + Gateways, + SettingsOperations, PrivateLinkScopes, PrivateLinkResources, PrivateEndpointConnections, @@ -86,7 +92,7 @@ export class HybridComputeManagementClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-hybridcompute/4.0.1`; + const packageDetails = `azsdk-js-arm-hybridcompute/4.1.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -140,7 +146,7 @@ export class HybridComputeManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2024-07-10"; + this.apiVersion = options.apiVersion || "2024-07-31-preview"; this.licenses = new LicensesImpl(this); this.machines = new MachinesImpl(this); this.licenseProfiles = new LicenseProfilesImpl(this); @@ -148,6 +154,9 @@ export class HybridComputeManagementClient extends coreClient.ServiceClient { this.extensionMetadata = new ExtensionMetadataImpl(this); this.operations = new OperationsImpl(this); this.networkProfileOperations = new NetworkProfileOperationsImpl(this); + this.machineRunCommands = new MachineRunCommandsImpl(this); + this.gateways = new GatewaysImpl(this); + this.settingsOperations = new SettingsOperationsImpl(this); this.privateLinkScopes = new PrivateLinkScopesImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); @@ -282,6 +291,9 @@ export class HybridComputeManagementClient extends coreClient.ServiceClient { extensionMetadata: ExtensionMetadata; operations: Operations; networkProfileOperations: NetworkProfileOperations; + machineRunCommands: MachineRunCommands; + gateways: Gateways; + settingsOperations: SettingsOperations; privateLinkScopes: PrivateLinkScopes; privateLinkResources: PrivateLinkResources; privateEndpointConnections: PrivateEndpointConnections; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts index d8a94f4e931d..d487fa84269a 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts @@ -230,6 +230,77 @@ export interface ServiceStatus { startupType?: string; } +/** Describes the hardware of the machine */ +export interface HardwareProfile { + /** + * The total physical memory on the machine + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly totalPhysicalMemoryInBytes?: number; + /** + * The total number of CPU sockets available on the machine + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfCpuSockets?: number; + /** + * The physical processors of the machine. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly processors?: Processor[]; +} + +/** Describes the firmware of the machine */ +export interface Processor { + /** + * The name of the processor. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The total number of physical cores on the processor. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfCores?: number; +} + +/** Describes the storage configuration of the machine */ +export interface StorageProfile { + /** The disks on the machine. */ + disks?: Disk[]; +} + +/** Describes a disk on the machine */ +export interface Disk { + /** The path of the disk. */ + path?: string; + /** The type of the disk. */ + diskType?: string; + /** The generated ID of the disk. */ + generatedId?: string; + /** The ID of the disk. */ + id?: string; + /** The name of the disk. */ + name?: string; + /** The size of the disk, in bytes */ + maxSizeInBytes?: number; + /** The amount of space used on the disk, in bytes */ + usedSpaceInBytes?: number; +} + +/** Describes the firmware of the machine */ +export interface FirmwareProfile { + /** + * The serial number of the firmware + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serialNumber?: string; + /** + * The type of the firmware + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + /** The metadata of the cloud environment (Azure/GCP/AWS/OCI...). */ export interface CloudMetadata { /** @@ -243,9 +314,9 @@ export interface CloudMetadata { export interface AgentUpgrade { /** Specifies the version info w.r.t AgentUpgrade for the machine. */ desiredVersion?: string; - /** The correlation ID passed in from RSM per upgrade. */ + /** The correlation ID associated with an agent upgrade operation. */ correlationId?: string; - /** Specifies if RSM should try to upgrade this machine */ + /** Specifies if the machine's agent should be upgraded */ enableAutomaticUpgrade?: boolean; /** * Specifies the version of the last attempt @@ -461,6 +532,12 @@ export interface NetworkProfile { /** Describes a network interface. */ export interface NetworkInterface { + /** Represents MAC address of the network interface. */ + macAddress?: string; + /** Represents the ID of the network interface. */ + id?: string; + /** Represents the name of the network interface. */ + name?: string; /** The list of IP addresses in this interface. */ ipAddresses?: IpAddress[]; } @@ -873,6 +950,119 @@ export interface OperationValueDisplay { readonly provider?: string; } +/** Describes the script sources for run command. Use only one of script, scriptUri, commandId. */ +export interface MachineRunCommandScriptSource { + /** Specifies the script content to be executed on the machine. */ + script?: string; + /** Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI. */ + scriptUri?: string; + /** Specifies the commandId of predefined built-in script. */ + commandId?: string; + /** User-assigned managed identity that has access to scriptUri in case of Azure storage blob. Use an empty object in case of system-assigned identity. Make sure the Azure storage blob exists, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. */ + scriptUriManagedIdentity?: RunCommandManagedIdentity; +} + +/** Contains clientId or objectId (use only one, not both) of a user-assigned managed identity that has access to storage blob used in Run Command. Use an empty RunCommandManagedIdentity object in case of system-assigned identity. Make sure the Azure storage blob exists in case of scriptUri, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment with scriptUri blob and 'Storage Blob Data Contributor' for Append blobs(outputBlobUri, errorBlobUri). In case of user assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. */ +export interface RunCommandManagedIdentity { + /** Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided. */ + clientId?: string; + /** Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided. */ + objectId?: string; +} + +/** Describes the properties of a run command parameter. */ +export interface RunCommandInputParameter { + /** The run command parameter name. */ + name: string; + /** The run command parameter value. */ + value: string; +} + +/** The instance view of a machine run command. */ +export interface MachineRunCommandInstanceView { + /** Script execution status. */ + executionState?: ExecutionState; + /** Communicate script configuration errors or execution messages. */ + executionMessage?: string; + /** Exit code returned from script execution. */ + exitCode?: number; + /** Script output stream. */ + output?: string; + /** Script error stream. */ + error?: string; + /** Script start time. */ + startTime?: Date; + /** Script end time. */ + endTime?: Date; + /** The status information. */ + statuses?: ExtensionsResourceStatus[]; +} + +/** Instance view status. */ +export interface ExtensionsResourceStatus { + /** The status code. */ + code?: string; + /** The level code. */ + level?: ExtensionsStatusLevelTypes; + /** The short localizable label for the status. */ + displayStatus?: string; + /** The detailed status message, including for alerts and error messages. */ + message?: string; + /** The time of the status. */ + time?: Date; +} + +/** Describes the Run Commands List Result. */ +export interface MachineRunCommandsListResult { + /** The list of run commands */ + value?: MachineRunCommand[]; + /** The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands. */ + nextLink?: string; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponseAutoGenerated { + /** The error object. */ + error?: ErrorDetailAutoGenerated; +} + +/** The error detail. */ +export interface ErrorDetailAutoGenerated { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetailAutoGenerated[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The List license operation response. */ +export interface GatewaysListResult { + /** The list of Gateways. */ + value: Gateway[]; + /** The URI to fetch the next page of Gateways. Call ListNext() with this URI to fetch the next page of Gateways. */ + nextLink?: string; +} + /** Describes the list of Azure Arc PrivateLinkScope resources. */ export interface HybridComputePrivateLinkScopeListResult { /** List of Azure Arc PrivateLinkScope definitions. */ @@ -1246,18 +1436,30 @@ export interface NetworkSecurityPerimeterConfigurationReconcileResult { location?: string; } -/** Instance view status. */ -export interface ExtensionsResourceStatus { - /** The status code. */ - code?: string; - /** The level code. */ - level?: ExtensionsStatusLevelTypes; - /** The short localizable label for the status. */ - displayStatus?: string; - /** The detailed status message, including for alerts and error messages. */ - message?: string; - /** The time of the status. */ - time?: Date; +/** List of HybridIdentityMetadata. */ +export interface HybridIdentityMetadataList { + /** Url to follow for getting next page of HybridIdentityMetadata. */ + nextLink?: string; + /** Array of HybridIdentityMetadata */ + value: HybridIdentityMetadata[]; +} + +/** Describes AgentVersions List. */ +export interface AgentVersionsList { + /** The list of available Agent Versions. */ + value?: AgentVersion[]; + /** The URI to fetch the next 10 available Agent Versions. */ + nextLink?: string; +} + +/** Describes properties of Agent Version. */ +export interface AgentVersion { + /** Represents the agent version. */ + agentVersion?: string; + /** Represents the download link of specific agent version. */ + downloadLink?: string; + /** Defines the os type. */ + osType?: string; } /** Public key information for client authentication */ @@ -1354,6 +1556,12 @@ export interface MachineExtensionUpdate extends ResourceUpdate { protectedSettings?: { [propertyName: string]: any }; } +/** Describes a License Update. */ +export interface GatewayUpdate extends ResourceUpdate { + /** Specifies the list of features that are enabled for this Gateway. */ + allowedFeatures?: string[]; +} + /** Describes a hybrid machine Update. */ export interface MachineUpdate extends ResourceUpdate { /** Identity for the resource. */ @@ -1374,6 +1582,9 @@ export interface MachineUpdate extends ResourceUpdate { privateLinkScopeResourceId?: string; } +/** Describes a Machine Extension Update. */ +export interface MachineRunCommandUpdate extends ResourceUpdate {} + /** Describes the properties of a License Profile ARM model. */ export interface LicenseProfileArmEsuPropertiesWithoutAssignedLicense extends LicenseProfileStorageModelEsuProperties { @@ -1397,6 +1608,14 @@ export interface LicenseProfileArmEsuPropertiesWithoutAssignedLicense /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends ResourceAutoGenerated {} +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResourceAutoGenerated extends ResourceAutoGenerated { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + /** An Azure Arc PrivateLinkScope definition. */ export interface HybridComputePrivateLinkScope extends PrivateLinkScopesResource { @@ -1450,6 +1669,21 @@ export interface Machine extends TrackedResource { readonly agentConfiguration?: AgentConfiguration; /** Statuses of dependent services that are reported back to ARM. */ serviceStatuses?: ServiceStatuses; + /** + * Information about the machine's hardware + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hardwareProfile?: HardwareProfile; + /** + * Information about the machine's storage + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly storageProfile?: StorageProfile; + /** + * Information about the machine's firmware + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly firmwareProfile?: FirmwareProfile; /** The metadata of the cloud environment (Azure/GCP/AWS/OCI...). */ cloudMetadata?: CloudMetadata; /** The info of the machine w.r.t Agent Upgrade */ @@ -1628,6 +1862,52 @@ export interface LicenseProfile extends TrackedResource { softwareAssuranceCustomer?: boolean; } +/** Describes a Run Command */ +export interface MachineRunCommand extends TrackedResource { + /** The source of the run command script. */ + source?: MachineRunCommandScriptSource; + /** The parameters used by the script. */ + parameters?: RunCommandInputParameter[]; + /** The parameters used by the script. */ + protectedParameters?: RunCommandInputParameter[]; + /** Optional. If set to true, provisioning will complete as soon as script starts and will not wait for script to complete. */ + asyncExecution?: boolean; + /** Specifies the user account on the machine when executing the run command. */ + runAsUser?: string; + /** Specifies the user account password on the machine when executing the run command. */ + runAsPassword?: string; + /** The timeout in seconds to execute the run command. */ + timeoutInSeconds?: number; + /** Specifies the Azure storage blob where script output stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer outputBlobManagedIdentity parameter. */ + outputBlobUri?: string; + /** Specifies the Azure storage blob where script error stream will be uploaded. Use a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob. Refer errorBlobManagedIdentity parameter. */ + errorBlobUri?: string; + /** User-assigned managed identity that has access to outputBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged */ + outputBlobManagedIdentity?: RunCommandManagedIdentity; + /** User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged */ + errorBlobManagedIdentity?: RunCommandManagedIdentity; + /** + * The provisioning state, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The machine run command instance view. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceView?: MachineRunCommandInstanceView; +} + +export interface Settings extends ProxyResourceAutoGenerated { + /** + * Azure resource tenant Id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Associated Gateway Resource Id */ + gatewayResourceId?: string; +} + /** A private link resource */ export interface PrivateLinkResource extends ProxyResourceAutoGenerated { /** Resource properties. */ @@ -1640,6 +1920,38 @@ export interface PrivateEndpointConnection extends ProxyResourceAutoGenerated { properties?: PrivateEndpointConnectionProperties; } +/** Defines the HybridIdentityMetadata. */ +export interface HybridIdentityMetadata extends ProxyResourceAutoGenerated { + /** The unique identifier for the resource. */ + vmId?: string; + /** The Public Key. */ + publicKey?: string; + /** + * Identity for the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly identity?: Identity; +} + +export interface NetworkConfiguration extends ProxyResourceAutoGenerated { + /** Resource location */ + location?: string; + /** + * Azure resource tenant Id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Associated Network Configuration Scope Id (GUID) */ + networkConfigurationScopeId?: string; + /** Associated Network Configuration Scope Resource Id */ + networkConfigurationScopeResourceId?: string; + /** + * Public key information for client authentication + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly keyProperties?: KeyProperties; +} + /** Properties for the Machine ESU profile. */ export interface LicenseProfileMachineInstanceViewEsuProperties extends LicenseProfileArmEsuPropertiesWithoutAssignedLicense { @@ -1675,6 +1987,29 @@ export interface ExtensionValue extends ProxyResource { readonly publisher?: string; } +/** Describes an Arc Gateway. */ +export interface Gateway extends TrackedResourceAutoGenerated { + /** + * The provisioning state, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * A unique, immutable, identifier for the Gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly gatewayId?: string; + /** The type of the Gateway resource. */ + gatewayType?: GatewayType; + /** + * The endpoint fqdn for the Gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly gatewayEndpoint?: string; + /** Specifies the list of features that are enabled for this Gateway. */ + allowedFeatures?: string[]; +} + /** Defines headers for Machines_assessPatches operation. */ export interface MachinesAssessPatchesHeaders { /** The URL of the resource used to check the status of the asynchronous operation. */ @@ -1747,6 +2082,46 @@ export interface HybridComputeManagementClientUpgradeExtensionsHeaders { azureAsyncOperation?: string; } +/** Defines headers for MachineRunCommands_createOrUpdate operation. */ +export interface MachineRunCommandsCreateOrUpdateHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; + /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */ + retryAfter?: number; + /** The URI to poll for completion status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for MachineRunCommands_delete operation. */ +export interface MachineRunCommandsDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; + /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */ + retryAfter?: number; + /** The URI to poll for completion status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Gateways_createOrUpdate operation. */ +export interface GatewaysCreateOrUpdateHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; + /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */ + retryAfter?: number; + /** The URI to poll for completion status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Gateways_delete operation. */ +export interface GatewaysDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; + /** The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation. */ + retryAfter?: number; + /** The URI to poll for completion status. */ + azureAsyncOperation?: string; +} + /** Defines headers for PrivateLinkScopes_delete operation. */ export interface PrivateLinkScopesDeleteHeaders { /** The URL of the resource used to check the status of the asynchronous operation. */ @@ -2515,6 +2890,54 @@ export enum KnownVMGuestPatchRebootStatus { */ export type VMGuestPatchRebootStatus = string; +/** Known values of {@link ExecutionState} that the service accepts. */ +export enum KnownExecutionState { + /** Unknown */ + Unknown = "Unknown", + /** Pending */ + Pending = "Pending", + /** Running */ + Running = "Running", + /** Failed */ + Failed = "Failed", + /** Succeeded */ + Succeeded = "Succeeded", + /** TimedOut */ + TimedOut = "TimedOut", + /** Canceled */ + Canceled = "Canceled", +} + +/** + * Defines values for ExecutionState. \ + * {@link KnownExecutionState} can be used interchangeably with ExecutionState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Pending** \ + * **Running** \ + * **Failed** \ + * **Succeeded** \ + * **TimedOut** \ + * **Canceled** + */ +export type ExecutionState = string; + +/** Known values of {@link GatewayType} that the service accepts. */ +export enum KnownGatewayType { + /** Public */ + Public = "Public", +} + +/** + * Defines values for GatewayType. \ + * {@link KnownGatewayType} can be used interchangeably with GatewayType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Public** + */ +export type GatewayType = string; + /** Known values of {@link PublicNetworkAccessType} that the service accepts. */ export enum KnownPublicNetworkAccessType { /** Allows Azure Arc agents to communicate with Azure Arc services over both public (internet) and private endpoints. */ @@ -2918,6 +3341,141 @@ export interface NetworkProfileGetOptionalParams /** Contains response data for the get operation. */ export type NetworkProfileGetResponse = NetworkProfile; +/** Optional parameters. */ +export interface MachineRunCommandsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type MachineRunCommandsCreateOrUpdateResponse = MachineRunCommand; + +/** Optional parameters. */ +export interface MachineRunCommandsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type MachineRunCommandsDeleteResponse = MachineRunCommandsDeleteHeaders; + +/** Optional parameters. */ +export interface MachineRunCommandsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type MachineRunCommandsGetResponse = MachineRunCommand; + +/** Optional parameters. */ +export interface MachineRunCommandsListOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply on the operation. */ + expand?: string; +} + +/** Contains response data for the list operation. */ +export type MachineRunCommandsListResponse = MachineRunCommandsListResult; + +/** Optional parameters. */ +export interface MachineRunCommandsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type MachineRunCommandsListNextResponse = MachineRunCommandsListResult; + +/** Optional parameters. */ +export interface GatewaysCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GatewaysCreateOrUpdateResponse = Gateway; + +/** Optional parameters. */ +export interface GatewaysUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type GatewaysUpdateResponse = Gateway; + +/** Optional parameters. */ +export interface GatewaysGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GatewaysGetResponse = Gateway; + +/** Optional parameters. */ +export interface GatewaysDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type GatewaysDeleteResponse = GatewaysDeleteHeaders; + +/** Optional parameters. */ +export interface GatewaysListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type GatewaysListByResourceGroupResponse = GatewaysListResult; + +/** Optional parameters. */ +export interface GatewaysListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type GatewaysListBySubscriptionResponse = GatewaysListResult; + +/** Optional parameters. */ +export interface GatewaysListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type GatewaysListByResourceGroupNextResponse = GatewaysListResult; + +/** Optional parameters. */ +export interface GatewaysListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type GatewaysListBySubscriptionNextResponse = GatewaysListResult; + +/** Optional parameters. */ +export interface SettingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SettingsGetResponse = Settings; + +/** Optional parameters. */ +export interface SettingsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type SettingsUpdateResponse = Settings; + +/** Optional parameters. */ +export interface SettingsPatchOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the patch operation. */ +export type SettingsPatchResponse = Settings; + /** Optional parameters. */ export interface PrivateLinkScopesListOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts index 851c60a1c50a..536f96a10d01 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts @@ -507,6 +507,160 @@ export const ServiceStatus: coreClient.CompositeMapper = { }, }; +export const HardwareProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HardwareProfile", + modelProperties: { + totalPhysicalMemoryInBytes: { + serializedName: "totalPhysicalMemoryInBytes", + readOnly: true, + type: { + name: "Number", + }, + }, + numberOfCpuSockets: { + serializedName: "numberOfCpuSockets", + readOnly: true, + type: { + name: "Number", + }, + }, + processors: { + serializedName: "processors", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Processor", + }, + }, + }, + }, + }, + }, +}; + +export const Processor: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Processor", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + numberOfCores: { + serializedName: "numberOfCores", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const StorageProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StorageProfile", + modelProperties: { + disks: { + serializedName: "disks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Disk", + }, + }, + }, + }, + }, + }, +}; + +export const Disk: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Disk", + modelProperties: { + path: { + serializedName: "path", + type: { + name: "String", + }, + }, + diskType: { + serializedName: "diskType", + type: { + name: "String", + }, + }, + generatedId: { + serializedName: "generatedId", + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + maxSizeInBytes: { + serializedName: "maxSizeInBytes", + type: { + name: "Number", + }, + }, + usedSpaceInBytes: { + serializedName: "usedSpaceInBytes", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const FirmwareProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FirmwareProfile", + modelProperties: { + serialNumber: { + serializedName: "serialNumber", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + export const CloudMetadata: coreClient.CompositeMapper = { type: { name: "Composite", @@ -999,6 +1153,24 @@ export const NetworkInterface: coreClient.CompositeMapper = { name: "Composite", className: "NetworkInterface", modelProperties: { + macAddress: { + serializedName: "macAddress", + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, ipAddresses: { serializedName: "ipAddresses", type: { @@ -1852,162 +2024,470 @@ export const OperationValueDisplay: coreClient.CompositeMapper = { }, }; -export const HybridComputePrivateLinkScopeListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "HybridComputePrivateLinkScopeListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HybridComputePrivateLinkScope", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const HybridComputePrivateLinkScopeProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "HybridComputePrivateLinkScopeProperties", - modelProperties: { - publicNetworkAccess: { - defaultValue: "Disabled", - serializedName: "publicNetworkAccess", - type: { - name: "String", - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - privateLinkScopeId: { - serializedName: "privateLinkScopeId", - readOnly: true, - type: { - name: "String", - }, - }, - privateEndpointConnections: { - serializedName: "privateEndpointConnections", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnectionDataModel", - }, - }, - }, - }, - }, - }, - }; - -export const PrivateEndpointConnectionDataModel: coreClient.CompositeMapper = { +export const MachineRunCommandScriptSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionDataModel", + className: "MachineRunCommandScriptSource", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + script: { + serializedName: "script", type: { name: "String", }, }, - name: { - serializedName: "name", - readOnly: true, + scriptUri: { + serializedName: "scriptUri", type: { name: "String", }, }, - type: { - serializedName: "type", - readOnly: true, + commandId: { + serializedName: "commandId", type: { name: "String", }, }, - properties: { - serializedName: "properties", + scriptUriManagedIdentity: { + serializedName: "scriptUriManagedIdentity", type: { name: "Composite", - className: "PrivateEndpointConnectionProperties", + className: "RunCommandManagedIdentity", }, }, }, }, }; -export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { +export const RunCommandManagedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionProperties", + className: "RunCommandManagedIdentity", modelProperties: { - privateEndpoint: { - serializedName: "privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpointProperty", - }, - }, - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty", - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + clientId: { + serializedName: "clientId", type: { name: "String", }, }, - groupIds: { - serializedName: "groupIds", - readOnly: true, + objectId: { + serializedName: "objectId", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, }, }, }; -export const PrivateEndpointProperty: coreClient.CompositeMapper = { +export const RunCommandInputParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointProperty", + className: "RunCommandInputParameter", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const MachineRunCommandInstanceView: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MachineRunCommandInstanceView", + modelProperties: { + executionState: { + serializedName: "executionState", + type: { + name: "String", + }, + }, + executionMessage: { + serializedName: "executionMessage", + type: { + name: "String", + }, + }, + exitCode: { + serializedName: "exitCode", + type: { + name: "Number", + }, + }, + output: { + serializedName: "output", + type: { + name: "String", + }, + }, + error: { + serializedName: "error", + type: { + name: "String", + }, + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime", + }, + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime", + }, + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtensionsResourceStatus", + }, + }, + }, + }, + }, + }, +}; + +export const ExtensionsResourceStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExtensionsResourceStatus", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + level: { + serializedName: "level", + type: { + name: "Enum", + allowedValues: ["Info", "Warning", "Error"], + }, + }, + displayStatus: { + serializedName: "displayStatus", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + type: { + name: "String", + }, + }, + time: { + serializedName: "time", + type: { + name: "DateTime", + }, + }, + }, + }, +}; + +export const MachineRunCommandsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MachineRunCommandsListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MachineRunCommand", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + }, + }, + }, + }, +}; + +export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, +}; + +export const GatewaysListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewaysListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Gateway", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const HybridComputePrivateLinkScopeListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "HybridComputePrivateLinkScopeListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HybridComputePrivateLinkScope", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const HybridComputePrivateLinkScopeProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "HybridComputePrivateLinkScopeProperties", + modelProperties: { + publicNetworkAccess: { + defaultValue: "Disabled", + serializedName: "publicNetworkAccess", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + privateLinkScopeId: { + serializedName: "privateLinkScopeId", + readOnly: true, + type: { + name: "String", + }, + }, + privateEndpointConnections: { + serializedName: "privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionDataModel", + }, + }, + }, + }, + }, + }, + }; + +export const PrivateEndpointConnectionDataModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionDataModel", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + modelProperties: { + privateEndpoint: { + serializedName: "privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointProperty", + }, + }, + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + groupIds: { + serializedName: "groupIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const PrivateEndpointProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointProperty", modelProperties: { id: { serializedName: "id", @@ -2610,40 +3090,82 @@ export const NetworkSecurityPerimeterConfigurationReconcileResult: coreClient.Co }, }; -export const ExtensionsResourceStatus: coreClient.CompositeMapper = { +export const HybridIdentityMetadataList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtensionsResourceStatus", + className: "HybridIdentityMetadataList", modelProperties: { - code: { - serializedName: "code", + nextLink: { + serializedName: "nextLink", type: { name: "String", }, }, - level: { - serializedName: "level", + value: { + serializedName: "value", + required: true, type: { - name: "Enum", - allowedValues: ["Info", "Warning", "Error"], + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HybridIdentityMetadata", + }, + }, }, }, - displayStatus: { - serializedName: "displayStatus", + }, + }, +}; + +export const AgentVersionsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentVersionsList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AgentVersion", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, }, - message: { - serializedName: "message", + }, + }, +}; + +export const AgentVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentVersion", + modelProperties: { + agentVersion: { + serializedName: "agentVersion", type: { name: "String", }, }, - time: { - serializedName: "time", + downloadLink: { + serializedName: "downloadLink", type: { - name: "DateTime", + name: "String", + }, + }, + osType: { + serializedName: "osType", + type: { + name: "String", }, }, }, @@ -2890,6 +3412,27 @@ export const MachineExtensionUpdate: coreClient.CompositeMapper = { }, }; +export const GatewayUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewayUpdate", + modelProperties: { + ...ResourceUpdate.type.modelProperties, + allowedFeatures: { + serializedName: "properties.allowedFeatures", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + export const MachineUpdate: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2953,6 +3496,16 @@ export const MachineUpdate: coreClient.CompositeMapper = { }, }; +export const MachineRunCommandUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MachineRunCommandUpdate", + modelProperties: { + ...ResourceUpdate.type.modelProperties, + }, + }, +}; + export const LicenseProfileArmEsuPropertiesWithoutAssignedLicense: coreClient.CompositeMapper = { type: { @@ -2995,6 +3548,30 @@ export const ProxyResource: coreClient.CompositeMapper = { }, }; +export const TrackedResourceAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResourceAutoGenerated", + modelProperties: { + ...ResourceAutoGenerated.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + export const HybridComputePrivateLinkScope: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3125,6 +3702,27 @@ export const Machine: coreClient.CompositeMapper = { className: "ServiceStatuses", }, }, + hardwareProfile: { + serializedName: "properties.hardwareProfile", + type: { + name: "Composite", + className: "HardwareProfile", + }, + }, + storageProfile: { + serializedName: "properties.storageProfile", + type: { + name: "Composite", + className: "StorageProfile", + }, + }, + firmwareProfile: { + serializedName: "properties.firmwareProfile", + type: { + name: "Composite", + className: "FirmwareProfile", + }, + }, cloudMetadata: { serializedName: "properties.cloudMetadata", type: { @@ -3410,51 +4008,180 @@ export const LicenseProfile: coreClient.CompositeMapper = { name: "String", }, }, - esuKeys: { - serializedName: "properties.esuProfile.esuKeys", - readOnly: true, + esuKeys: { + serializedName: "properties.esuProfile.esuKeys", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EsuKey", + }, + }, + }, + }, + serverType: { + serializedName: "properties.esuProfile.serverType", + readOnly: true, + type: { + name: "String", + }, + }, + esuEligibility: { + serializedName: "properties.esuProfile.esuEligibility", + readOnly: true, + type: { + name: "String", + }, + }, + esuKeyState: { + serializedName: "properties.esuProfile.esuKeyState", + readOnly: true, + type: { + name: "String", + }, + }, + assignedLicense: { + serializedName: "properties.esuProfile.assignedLicense", + type: { + name: "String", + }, + }, + softwareAssuranceCustomer: { + serializedName: + "properties.softwareAssurance.softwareAssuranceCustomer", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const MachineRunCommand: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MachineRunCommand", + modelProperties: { + ...TrackedResource.type.modelProperties, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "MachineRunCommandScriptSource", + }, + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter", + }, + }, + }, + }, + protectedParameters: { + serializedName: "properties.protectedParameters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EsuKey", + className: "RunCommandInputParameter", }, }, }, }, - serverType: { - serializedName: "properties.esuProfile.serverType", - readOnly: true, + asyncExecution: { + defaultValue: false, + serializedName: "properties.asyncExecution", + type: { + name: "Boolean", + }, + }, + runAsUser: { + serializedName: "properties.runAsUser", type: { name: "String", }, }, - esuEligibility: { - serializedName: "properties.esuProfile.esuEligibility", - readOnly: true, + runAsPassword: { + serializedName: "properties.runAsPassword", type: { name: "String", }, }, - esuKeyState: { - serializedName: "properties.esuProfile.esuKeyState", + timeoutInSeconds: { + serializedName: "properties.timeoutInSeconds", + type: { + name: "Number", + }, + }, + outputBlobUri: { + serializedName: "properties.outputBlobUri", + type: { + name: "String", + }, + }, + errorBlobUri: { + serializedName: "properties.errorBlobUri", + type: { + name: "String", + }, + }, + outputBlobManagedIdentity: { + serializedName: "properties.outputBlobManagedIdentity", + type: { + name: "Composite", + className: "RunCommandManagedIdentity", + }, + }, + errorBlobManagedIdentity: { + serializedName: "properties.errorBlobManagedIdentity", + type: { + name: "Composite", + className: "RunCommandManagedIdentity", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String", }, }, - assignedLicense: { - serializedName: "properties.esuProfile.assignedLicense", + instanceView: { + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "MachineRunCommandInstanceView", + }, + }, + }, + }, +}; + +export const Settings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Settings", + modelProperties: { + ...ProxyResourceAutoGenerated.type.modelProperties, + tenantId: { + serializedName: "properties.tenantId", + readOnly: true, type: { name: "String", }, }, - softwareAssuranceCustomer: { - serializedName: - "properties.softwareAssurance.softwareAssuranceCustomer", + gatewayResourceId: { + serializedName: "properties.gatewayProperties.gatewayResourceId", type: { - name: "Boolean", + name: "String", }, }, }, @@ -3495,6 +4222,77 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { }, }; +export const HybridIdentityMetadata: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HybridIdentityMetadata", + modelProperties: { + ...ProxyResourceAutoGenerated.type.modelProperties, + vmId: { + serializedName: "properties.vmId", + type: { + name: "String", + }, + }, + publicKey: { + serializedName: "properties.publicKey", + type: { + name: "String", + }, + }, + identity: { + serializedName: "properties.identity", + type: { + name: "Composite", + className: "Identity", + }, + }, + }, + }, +}; + +export const NetworkConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkConfiguration", + modelProperties: { + ...ProxyResourceAutoGenerated.type.modelProperties, + location: { + serializedName: "properties.location", + type: { + name: "String", + }, + }, + tenantId: { + serializedName: "properties.tenantId", + readOnly: true, + type: { + name: "String", + }, + }, + networkConfigurationScopeId: { + serializedName: "properties.networkConfigurationScopeId", + type: { + name: "String", + }, + }, + networkConfigurationScopeResourceId: { + serializedName: "properties.networkConfigurationScopeResourceId", + type: { + name: "String", + }, + }, + keyProperties: { + serializedName: "properties.keyProperties", + type: { + name: "Composite", + className: "KeyProperties", + }, + }, + }, + }, +}; + export const LicenseProfileMachineInstanceViewEsuProperties: coreClient.CompositeMapper = { type: { @@ -3568,6 +4366,54 @@ export const ExtensionValue: coreClient.CompositeMapper = { }, }; +export const Gateway: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Gateway", + modelProperties: { + ...TrackedResourceAutoGenerated.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + gatewayId: { + serializedName: "properties.gatewayId", + readOnly: true, + type: { + name: "String", + }, + }, + gatewayType: { + serializedName: "properties.gatewayType", + type: { + name: "String", + }, + }, + gatewayEndpoint: { + serializedName: "properties.gatewayEndpoint", + readOnly: true, + type: { + name: "String", + }, + }, + allowedFeatures: { + serializedName: "properties.allowedFeatures", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + export const MachinesAssessPatchesHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3762,6 +4608,115 @@ export const HybridComputeManagementClientUpgradeExtensionsHeaders: coreClient.C }, }; +export const MachineRunCommandsCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "MachineRunCommandsCreateOrUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const MachineRunCommandsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MachineRunCommandsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GatewaysCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewaysCreateOrUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GatewaysDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GatewaysDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + export const PrivateLinkScopesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts index 8b97d87b591a..4820870804ec 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts @@ -20,6 +20,10 @@ import { MachineExtension as MachineExtensionMapper, MachineExtensionUpdate as MachineExtensionUpdateMapper, MachineExtensionUpgrade as MachineExtensionUpgradeMapper, + MachineRunCommand as MachineRunCommandMapper, + Gateway as GatewayMapper, + GatewayUpdate as GatewayUpdateMapper, + Settings as SettingsMapper, HybridComputePrivateLinkScope as HybridComputePrivateLinkScopeMapper, TagsResource as TagsResourceMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, @@ -69,7 +73,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-07-10", + defaultValue: "2024-07-31-preview", isConstant: true, serializedName: "api-version", type: { @@ -307,6 +311,110 @@ export const version: OperationURLParameter = { }, }; +export const runCommandProperties: OperationParameter = { + parameterPath: "runCommandProperties", + mapper: MachineRunCommandMapper, +}; + +export const runCommandName: OperationURLParameter = { + parameterPath: "runCommandName", + mapper: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9-_\\.]+"), + }, + serializedName: "runCommandName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const parameters4: OperationParameter = { + parameterPath: "parameters", + mapper: GatewayMapper, +}; + +export const gatewayName: OperationURLParameter = { + parameterPath: "gatewayName", + mapper: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9-_\\.]+"), + }, + serializedName: "gatewayName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const parameters5: OperationParameter = { + parameterPath: "parameters", + mapper: GatewayUpdateMapper, +}; + +export const baseProvider: OperationURLParameter = { + parameterPath: "baseProvider", + mapper: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9-_\\.]+"), + }, + serializedName: "baseProvider", + required: true, + type: { + name: "String", + }, + }, +}; + +export const baseResourceType: OperationURLParameter = { + parameterPath: "baseResourceType", + mapper: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9-_\\.]+"), + }, + serializedName: "baseResourceType", + required: true, + type: { + name: "String", + }, + }, +}; + +export const baseResourceName: OperationURLParameter = { + parameterPath: "baseResourceName", + mapper: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9-_\\.]+"), + }, + serializedName: "baseResourceName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const settingsResourceName: OperationURLParameter = { + parameterPath: "settingsResourceName", + mapper: { + constraints: { + Pattern: new RegExp("default"), + }, + serializedName: "settingsResourceName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: SettingsMapper, +}; + export const scopeName: OperationURLParameter = { parameterPath: "scopeName", mapper: { @@ -321,7 +429,7 @@ export const scopeName: OperationURLParameter = { }, }; -export const parameters4: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: HybridComputePrivateLinkScopeMapper, }; @@ -360,6 +468,7 @@ export const machineName2: OperationURLParameter = { parameterPath: "machineName", mapper: { constraints: { + Pattern: new RegExp("^[a-zA-Z0-9-_\\.]{1,54}$"), MinLength: 1, }, serializedName: "machineName", @@ -392,7 +501,7 @@ export const privateEndpointConnectionName: OperationURLParameter = { }, }; -export const parameters5: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper, }; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/gateways.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/gateways.ts new file mode 100644 index 000000000000..0952484b6ffb --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/gateways.ts @@ -0,0 +1,641 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Gateways } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { HybridComputeManagementClient } from "../hybridComputeManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + Gateway, + GatewaysListByResourceGroupNextOptionalParams, + GatewaysListByResourceGroupOptionalParams, + GatewaysListByResourceGroupResponse, + GatewaysListBySubscriptionNextOptionalParams, + GatewaysListBySubscriptionOptionalParams, + GatewaysListBySubscriptionResponse, + GatewaysCreateOrUpdateOptionalParams, + GatewaysCreateOrUpdateResponse, + GatewayUpdate, + GatewaysUpdateOptionalParams, + GatewaysUpdateResponse, + GatewaysGetOptionalParams, + GatewaysGetResponse, + GatewaysDeleteOptionalParams, + GatewaysDeleteResponse, + GatewaysListByResourceGroupNextResponse, + GatewaysListBySubscriptionNextResponse, +} from "../models"; + +/// +/** Class containing Gateways operations. */ +export class GatewaysImpl implements Gateways { + private readonly client: HybridComputeManagementClient; + + /** + * Initialize a new instance of the class Gateways class. + * @param client Reference to the service client + */ + constructor(client: HybridComputeManagementClient) { + this.client = client; + } + + /** + * The operation to get all gateways of a non-Azure machine + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: GatewaysListByResourceGroupOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings, + ); + }, + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: GatewaysListByResourceGroupOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: GatewaysListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: GatewaysListByResourceGroupOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options, + )) { + yield* page; + } + } + + /** + * The operation to get all gateways of a non-Azure machine + * @param options The options parameters. + */ + public listBySubscription( + options?: GatewaysListBySubscriptionOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + }, + }; + } + + private async *listBySubscriptionPagingPage( + options?: GatewaysListBySubscriptionOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: GatewaysListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: GatewaysListBySubscriptionOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * The operation to create or update a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the Gateway. + * @param parameters Parameters supplied to the Create gateway operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: Gateway, + options?: GatewaysCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GatewaysCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, gatewayName, parameters, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + GatewaysCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * The operation to create or update a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the Gateway. + * @param parameters Parameters supplied to the Create gateway operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: Gateway, + options?: GatewaysCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + gatewayName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to update a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the Gateway. + * @param parameters Parameters supplied to the Update gateway operation. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + gatewayName: string, + parameters: GatewayUpdate, + options?: GatewaysUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, gatewayName, parameters, options }, + updateOperationSpec, + ); + } + + /** + * Retrieves information about the view of a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the Gateway. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + gatewayName: string, + options?: GatewaysGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, gatewayName, options }, + getOperationSpec, + ); + } + + /** + * The operation to delete a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the Gateway. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + gatewayName: string, + options?: GatewaysDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GatewaysDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, gatewayName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + GatewaysDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * The operation to delete a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the Gateway. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + gatewayName: string, + options?: GatewaysDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + gatewayName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to get all gateways of a non-Azure machine + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: GatewaysListByResourceGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec, + ); + } + + /** + * The operation to get all gateways of a non-Azure machine + * @param options The options parameters. + */ + private _listBySubscription( + options?: GatewaysListBySubscriptionOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec, + ); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: GatewaysListByResourceGroupNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec, + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: GatewaysListBySubscriptionNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Gateway, + }, + 201: { + bodyMapper: Mappers.Gateway, + }, + 202: { + bodyMapper: Mappers.Gateway, + }, + 204: { + bodyMapper: Mappers.Gateway, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.gatewayName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.Gateway, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.gatewayName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Gateway, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.GatewaysDeleteHeaders, + }, + 201: { + headersMapper: Mappers.GatewaysDeleteHeaders, + }, + 202: { + headersMapper: Mappers.GatewaysDeleteHeaders, + }, + 204: { + headersMapper: Mappers.GatewaysDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewaysListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/gateways", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewaysListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewaysListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewaysListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/index.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/index.ts index 82a706e66981..37d17a5cf6ad 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/operations/index.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/index.ts @@ -13,6 +13,9 @@ export * from "./machineExtensions"; export * from "./extensionMetadata"; export * from "./operations"; export * from "./networkProfileOperations"; +export * from "./machineRunCommands"; +export * from "./gateways"; +export * from "./settingsOperations"; export * from "./privateLinkScopes"; export * from "./privateLinkResources"; export * from "./privateEndpointConnections"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/machineExtensions.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/machineExtensions.ts index 866ee4d1bf7f..606c2bb29e78 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/operations/machineExtensions.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/machineExtensions.ts @@ -230,7 +230,7 @@ export class MachineExtensionsImpl implements MachineExtensions { } /** - * The operation to update the extension. + * The operation to create or update the extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param machineName The name of the machine where the extension should be created or updated. * @param extensionName The name of the machine extension. @@ -310,7 +310,7 @@ export class MachineExtensionsImpl implements MachineExtensions { } /** - * The operation to update the extension. + * The operation to create or update the extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param machineName The name of the machine where the extension should be created or updated. * @param extensionName The name of the machine extension. diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/machineRunCommands.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/machineRunCommands.ts new file mode 100644 index 000000000000..78ea0d9e4ca0 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/machineRunCommands.ts @@ -0,0 +1,511 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { MachineRunCommands } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { HybridComputeManagementClient } from "../hybridComputeManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + MachineRunCommand, + MachineRunCommandsListNextOptionalParams, + MachineRunCommandsListOptionalParams, + MachineRunCommandsListResponse, + MachineRunCommandsCreateOrUpdateOptionalParams, + MachineRunCommandsCreateOrUpdateResponse, + MachineRunCommandsDeleteOptionalParams, + MachineRunCommandsDeleteResponse, + MachineRunCommandsGetOptionalParams, + MachineRunCommandsGetResponse, + MachineRunCommandsListNextResponse, +} from "../models"; + +/// +/** Class containing MachineRunCommands operations. */ +export class MachineRunCommandsImpl implements MachineRunCommands { + private readonly client: HybridComputeManagementClient; + + /** + * Initialize a new instance of the class MachineRunCommands class. + * @param client Reference to the service client + */ + constructor(client: HybridComputeManagementClient) { + this.client = client; + } + + /** + * The operation to get all the run commands of a non-Azure machine. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + machineName: string, + options?: MachineRunCommandsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, machineName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + machineName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + machineName: string, + options?: MachineRunCommandsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: MachineRunCommandsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, machineName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + machineName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + machineName: string, + options?: MachineRunCommandsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + machineName, + options, + )) { + yield* page; + } + } + + /** + * The operation to create or update a run command. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param runCommandName The name of the run command. + * @param runCommandProperties Parameters supplied to the Create Run Command. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + machineName: string, + runCommandName: string, + runCommandProperties: MachineRunCommand, + options?: MachineRunCommandsCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MachineRunCommandsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + machineName, + runCommandName, + runCommandProperties, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + MachineRunCommandsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to create or update a run command. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param runCommandName The name of the run command. + * @param runCommandProperties Parameters supplied to the Create Run Command. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + machineName: string, + runCommandName: string, + runCommandProperties: MachineRunCommand, + options?: MachineRunCommandsCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + machineName, + runCommandName, + runCommandProperties, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to delete a run command. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param runCommandName The name of the run command. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + machineName: string, + runCommandName: string, + options?: MachineRunCommandsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MachineRunCommandsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, machineName, runCommandName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + MachineRunCommandsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to delete a run command. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param runCommandName The name of the run command. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + machineName: string, + runCommandName: string, + options?: MachineRunCommandsDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + machineName, + runCommandName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to get a run command. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param runCommandName The name of the run command. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + machineName: string, + runCommandName: string, + options?: MachineRunCommandsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, machineName, runCommandName, options }, + getOperationSpec, + ); + } + + /** + * The operation to get all the run commands of a non-Azure machine. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + machineName: string, + options?: MachineRunCommandsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, machineName, options }, + listOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + machineName: string, + nextLink: string, + options?: MachineRunCommandsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, machineName, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.MachineRunCommand, + }, + 201: { + bodyMapper: Mappers.MachineRunCommand, + }, + 202: { + bodyMapper: Mappers.MachineRunCommand, + }, + 204: { + bodyMapper: Mappers.MachineRunCommand, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.runCommandProperties, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.machineName1, + Parameters.runCommandName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.MachineRunCommandsDeleteHeaders, + }, + 201: { + headersMapper: Mappers.MachineRunCommandsDeleteHeaders, + }, + 202: { + headersMapper: Mappers.MachineRunCommandsDeleteHeaders, + }, + 204: { + headersMapper: Mappers.MachineRunCommandsDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.machineName1, + Parameters.runCommandName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MachineRunCommand, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.machineName1, + Parameters.runCommandName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MachineRunCommandsListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.expand1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.machineName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MachineRunCommandsListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.machineName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/privateEndpointConnections.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateEndpointConnections.ts index 212af0968396..d6f1089dd6d2 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/operations/privateEndpointConnections.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateEndpointConnections.ts @@ -427,7 +427,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopes.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopes.ts index a8364837762c..b4b146df8ab6 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopes.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopes.ts @@ -505,7 +505,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/settingsOperations.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/settingsOperations.ts new file mode 100644 index 000000000000..6ab0fb863354 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/settingsOperations.ts @@ -0,0 +1,213 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { SettingsOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { HybridComputeManagementClient } from "../hybridComputeManagementClient"; +import { + SettingsGetOptionalParams, + SettingsGetResponse, + Settings, + SettingsUpdateOptionalParams, + SettingsUpdateResponse, + SettingsPatchOptionalParams, + SettingsPatchResponse, +} from "../models"; + +/** Class containing SettingsOperations operations. */ +export class SettingsOperationsImpl implements SettingsOperations { + private readonly client: HybridComputeManagementClient; + + /** + * Initialize a new instance of the class SettingsOperations class. + * @param client Reference to the service client + */ + constructor(client: HybridComputeManagementClient) { + this.client = client; + } + + /** + * Returns the base Settings for the target resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param baseProvider The name of the base Resource Provider. + * @param baseResourceType The name of the base Resource Type. + * @param baseResourceName The name of the base resource. + * @param settingsResourceName The name of the settings resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + baseProvider: string, + baseResourceType: string, + baseResourceName: string, + settingsResourceName: string, + options?: SettingsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + baseProvider, + baseResourceType, + baseResourceName, + settingsResourceName, + options, + }, + getOperationSpec, + ); + } + + /** + * Updates the base Settings of the target resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param baseProvider The name of the base Resource Provider. + * @param baseResourceType The name of the base Resource Type. + * @param baseResourceName The name of the base resource. + * @param settingsResourceName The name of the settings resource. + * @param parameters Settings details + * @param options The options parameters. + */ + update( + resourceGroupName: string, + baseProvider: string, + baseResourceType: string, + baseResourceName: string, + settingsResourceName: string, + parameters: Settings, + options?: SettingsUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + baseProvider, + baseResourceType, + baseResourceName, + settingsResourceName, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Update the base Settings of the target resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param baseProvider The name of the base Resource Provider. + * @param baseResourceType The name of the base Resource Type. + * @param baseResourceName The name of the base resource. + * @param settingsResourceName The name of the settings resource. + * @param parameters Settings details + * @param options The options parameters. + */ + patch( + resourceGroupName: string, + baseProvider: string, + baseResourceType: string, + baseResourceName: string, + settingsResourceName: string, + parameters: Settings, + options?: SettingsPatchOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + baseProvider, + baseResourceType, + baseResourceName, + settingsResourceName, + parameters, + options, + }, + patchOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{baseProvider}/{baseResourceType}/{baseResourceName}/providers/Microsoft.HybridCompute/settings/{settingsResourceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Settings, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.baseProvider, + Parameters.baseResourceType, + Parameters.baseResourceName, + Parameters.settingsResourceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{baseProvider}/{baseResourceType}/{baseResourceName}/providers/Microsoft.HybridCompute/settings/{settingsResourceName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Settings, + }, + 201: { + bodyMapper: Mappers.Settings, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.baseProvider, + Parameters.baseResourceType, + Parameters.baseResourceName, + Parameters.settingsResourceName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; +const patchOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{baseProvider}/{baseResourceType}/{baseResourceName}/providers/Microsoft.HybridCompute/settings/{settingsResourceName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.Settings, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.baseProvider, + Parameters.baseResourceType, + Parameters.baseResourceName, + Parameters.settingsResourceName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/gateways.ts b/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/gateways.ts new file mode 100644 index 000000000000..fe6fd1da2a26 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/gateways.ts @@ -0,0 +1,127 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + Gateway, + GatewaysListByResourceGroupOptionalParams, + GatewaysListBySubscriptionOptionalParams, + GatewaysCreateOrUpdateOptionalParams, + GatewaysCreateOrUpdateResponse, + GatewayUpdate, + GatewaysUpdateOptionalParams, + GatewaysUpdateResponse, + GatewaysGetOptionalParams, + GatewaysGetResponse, + GatewaysDeleteOptionalParams, + GatewaysDeleteResponse, +} from "../models"; + +/// +/** Interface representing a Gateways. */ +export interface Gateways { + /** + * The operation to get all gateways of a non-Azure machine + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: GatewaysListByResourceGroupOptionalParams, + ): PagedAsyncIterableIterator; + /** + * The operation to get all gateways of a non-Azure machine + * @param options The options parameters. + */ + listBySubscription( + options?: GatewaysListBySubscriptionOptionalParams, + ): PagedAsyncIterableIterator; + /** + * The operation to create or update a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the Gateway. + * @param parameters Parameters supplied to the Create gateway operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: Gateway, + options?: GatewaysCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GatewaysCreateOrUpdateResponse + > + >; + /** + * The operation to create or update a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the Gateway. + * @param parameters Parameters supplied to the Create gateway operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: Gateway, + options?: GatewaysCreateOrUpdateOptionalParams, + ): Promise; + /** + * The operation to update a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the Gateway. + * @param parameters Parameters supplied to the Update gateway operation. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + gatewayName: string, + parameters: GatewayUpdate, + options?: GatewaysUpdateOptionalParams, + ): Promise; + /** + * Retrieves information about the view of a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the Gateway. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + gatewayName: string, + options?: GatewaysGetOptionalParams, + ): Promise; + /** + * The operation to delete a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the Gateway. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + gatewayName: string, + options?: GatewaysDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GatewaysDeleteResponse + > + >; + /** + * The operation to delete a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the Gateway. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + gatewayName: string, + options?: GatewaysDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/index.ts b/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/index.ts index 82a706e66981..37d17a5cf6ad 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/index.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/index.ts @@ -13,6 +13,9 @@ export * from "./machineExtensions"; export * from "./extensionMetadata"; export * from "./operations"; export * from "./networkProfileOperations"; +export * from "./machineRunCommands"; +export * from "./gateways"; +export * from "./settingsOperations"; export * from "./privateLinkScopes"; export * from "./privateLinkResources"; export * from "./privateEndpointConnections"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/machineExtensions.ts b/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/machineExtensions.ts index 03bb7f196ecb..4fe917df0bb9 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/machineExtensions.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/machineExtensions.ts @@ -71,7 +71,7 @@ export interface MachineExtensions { options?: MachineExtensionsCreateOrUpdateOptionalParams, ): Promise; /** - * The operation to update the extension. + * The operation to create or update the extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param machineName The name of the machine where the extension should be created or updated. * @param extensionName The name of the machine extension. @@ -91,7 +91,7 @@ export interface MachineExtensions { > >; /** - * The operation to update the extension. + * The operation to create or update the extension. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param machineName The name of the machine where the extension should be created or updated. * @param extensionName The name of the machine extension. diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/machineRunCommands.ts b/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/machineRunCommands.ts new file mode 100644 index 000000000000..3420ebbfdca1 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/machineRunCommands.ts @@ -0,0 +1,115 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + MachineRunCommand, + MachineRunCommandsListOptionalParams, + MachineRunCommandsCreateOrUpdateOptionalParams, + MachineRunCommandsCreateOrUpdateResponse, + MachineRunCommandsDeleteOptionalParams, + MachineRunCommandsDeleteResponse, + MachineRunCommandsGetOptionalParams, + MachineRunCommandsGetResponse, +} from "../models"; + +/// +/** Interface representing a MachineRunCommands. */ +export interface MachineRunCommands { + /** + * The operation to get all the run commands of a non-Azure machine. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + machineName: string, + options?: MachineRunCommandsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * The operation to create or update a run command. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param runCommandName The name of the run command. + * @param runCommandProperties Parameters supplied to the Create Run Command. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + machineName: string, + runCommandName: string, + runCommandProperties: MachineRunCommand, + options?: MachineRunCommandsCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MachineRunCommandsCreateOrUpdateResponse + > + >; + /** + * The operation to create or update a run command. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param runCommandName The name of the run command. + * @param runCommandProperties Parameters supplied to the Create Run Command. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + machineName: string, + runCommandName: string, + runCommandProperties: MachineRunCommand, + options?: MachineRunCommandsCreateOrUpdateOptionalParams, + ): Promise; + /** + * The operation to delete a run command. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param runCommandName The name of the run command. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + machineName: string, + runCommandName: string, + options?: MachineRunCommandsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MachineRunCommandsDeleteResponse + > + >; + /** + * The operation to delete a run command. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param runCommandName The name of the run command. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + machineName: string, + runCommandName: string, + options?: MachineRunCommandsDeleteOptionalParams, + ): Promise; + /** + * The operation to get a run command. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param runCommandName The name of the run command. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + machineName: string, + runCommandName: string, + options?: MachineRunCommandsGetOptionalParams, + ): Promise; +} diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/settingsOperations.ts b/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/settingsOperations.ts new file mode 100644 index 000000000000..e3573d89b76e --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operationsInterfaces/settingsOperations.ts @@ -0,0 +1,76 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + SettingsGetOptionalParams, + SettingsGetResponse, + Settings, + SettingsUpdateOptionalParams, + SettingsUpdateResponse, + SettingsPatchOptionalParams, + SettingsPatchResponse, +} from "../models"; + +/** Interface representing a SettingsOperations. */ +export interface SettingsOperations { + /** + * Returns the base Settings for the target resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param baseProvider The name of the base Resource Provider. + * @param baseResourceType The name of the base Resource Type. + * @param baseResourceName The name of the base resource. + * @param settingsResourceName The name of the settings resource. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + baseProvider: string, + baseResourceType: string, + baseResourceName: string, + settingsResourceName: string, + options?: SettingsGetOptionalParams, + ): Promise; + /** + * Updates the base Settings of the target resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param baseProvider The name of the base Resource Provider. + * @param baseResourceType The name of the base Resource Type. + * @param baseResourceName The name of the base resource. + * @param settingsResourceName The name of the settings resource. + * @param parameters Settings details + * @param options The options parameters. + */ + update( + resourceGroupName: string, + baseProvider: string, + baseResourceType: string, + baseResourceName: string, + settingsResourceName: string, + parameters: Settings, + options?: SettingsUpdateOptionalParams, + ): Promise; + /** + * Update the base Settings of the target resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param baseProvider The name of the base Resource Provider. + * @param baseResourceType The name of the base Resource Type. + * @param baseResourceName The name of the base resource. + * @param settingsResourceName The name of the settings resource. + * @param parameters Settings details + * @param options The options parameters. + */ + patch( + resourceGroupName: string, + baseProvider: string, + baseResourceType: string, + baseResourceName: string, + settingsResourceName: string, + parameters: Settings, + options?: SettingsPatchOptionalParams, + ): Promise; +} diff --git a/sdk/hybridcompute/arm-hybridcompute/tsconfig.json b/sdk/hybridcompute/arm-hybridcompute/tsconfig.json index a87ba17ac142..284dd00b1dd5 100644 --- a/sdk/hybridcompute/arm-hybridcompute/tsconfig.json +++ b/sdk/hybridcompute/arm-hybridcompute/tsconfig.json @@ -23,8 +23,8 @@ } }, "include": [ - "./src/**/*.ts", - "./test/**/*.ts", + "src/**/*.ts", + "test/**/*.ts", "samples-dev/**/*.ts" ], "exclude": [ diff --git a/sdk/identity/identity-broker/samples/v1/typescript/package.json b/sdk/identity/identity-broker/samples/v1/typescript/package.json index f24abe9b4380..aff32c0bdfb3 100644 --- a/sdk/identity/identity-broker/samples/v1/typescript/package.json +++ b/sdk/identity/identity-broker/samples/v1/typescript/package.json @@ -37,7 +37,7 @@ "@types/node": "^18.0.0", "@eslint/js": "^9.9.0", "eslint": "^9.9.0", - "typescript-eslint": "8.2.0", + "typescript-eslint": "~8.16.0", "typescript": "~5.6.2", "rimraf": "^5.0.0" } diff --git a/sdk/identity/identity/assets.json b/sdk/identity/identity/assets.json index cdec30fa6034..93c7469444f0 100644 --- a/sdk/identity/identity/assets.json +++ b/sdk/identity/identity/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/identity/identity", - "Tag": "js/identity/identity_41bcaec991" + "Tag": "js/identity/identity_9dc037e376" } diff --git a/sdk/identity/identity/package.json b/sdk/identity/identity/package.json index 1e65c63921bd..2ea548c66903 100644 --- a/sdk/identity/identity/package.json +++ b/sdk/identity/identity/package.json @@ -29,7 +29,7 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "echo skipped", - "integration-test:managed-identity": "dev-tool run test:vitest -- --test-timeout 180000 'test/integration/**/*.spec.ts'", + "integration-test:managed-identity": "dev-tool run test:vitest -- --test-timeout 180000 --config ./vitest.managed-identity.config.ts", "integration-test:node": "dev-tool run test:vitest -- --test-timeout 180000 'test/public/node/*.spec.ts' 'test/internal/node/*.spec.ts'", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", diff --git a/sdk/identity/identity/test/integration/node/azureKubernetesTest.spec.ts b/sdk/identity/identity/test/integration/node/azureKubernetesTest.spec.ts index 2f4a241b0f86..51b0c634ec6f 100644 --- a/sdk/identity/identity/test/integration/node/azureKubernetesTest.spec.ts +++ b/sdk/identity/identity/test/integration/node/azureKubernetesTest.spec.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { execSync } from "child_process"; import { isLiveMode } from "@azure-tools/test-recorder"; -import { describe, it, assert, expect, vi, beforeEach, afterEach, beforeAll } from "vitest"; +import { describe, it, assert, beforeEach } from "vitest"; describe("Azure Kubernetes Integration test", function () { let podOutput: string; diff --git a/sdk/identity/identity/test/internal/node/deviceCodeCredential.spec.ts b/sdk/identity/identity/test/internal/node/deviceCodeCredential.spec.ts index 7614b763c71f..c3b61a8bb1ca 100644 --- a/sdk/identity/identity/test/internal/node/deviceCodeCredential.spec.ts +++ b/sdk/identity/identity/test/internal/node/deviceCodeCredential.spec.ts @@ -7,7 +7,7 @@ import type { Recorder } from "@azure-tools/test-recorder"; import { env, isLiveMode } from "@azure-tools/test-recorder"; import { DeviceCodeCredential } from "../../../src/index.js"; import { PublicClientApplication } from "@azure/msal-node"; -import { describe, it, assert, expect, vi, beforeEach, afterEach, MockInstance } from "vitest"; +import { describe, it, expect, vi, beforeEach, afterEach, MockInstance } from "vitest"; describe("DeviceCodeCredential (internal)", function () { let cleanup: MsalTestCleanup; @@ -32,7 +32,7 @@ describe("DeviceCodeCredential (internal)", function () { await cleanup(); }); - const scope = "https://vault.azure.net/.default"; + const scope = "https://graph.microsoft.com/.default"; it("Authenticates silently after the initial request", async function (ctx) { // These tests should not run live because this credential requires user interaction. diff --git a/sdk/identity/identity/test/node/msalNodeTestSetup.ts b/sdk/identity/identity/test/node/msalNodeTestSetup.ts index f432507b8983..3355d0d2270b 100644 --- a/sdk/identity/identity/test/node/msalNodeTestSetup.ts +++ b/sdk/identity/identity/test/node/msalNodeTestSetup.ts @@ -102,6 +102,13 @@ export async function msalNodeTestSetup( // Playback sanitizers await recorder.addSanitizers( { + uriSanitizers: [ + { + regex: true, + target: `client-request-id=[a-zA-Z0-9-]+`, + value: `client-request-id=${playbackValues.correlationId}`, + }, + ], bodySanitizers: [ { regex: true, diff --git a/sdk/identity/identity/test/public/node/multiTenantAuthentication.spec.ts b/sdk/identity/identity/test/public/node/multiTenantAuthentication.spec.ts index 091a13d37be1..c3e542ee85a0 100644 --- a/sdk/identity/identity/test/public/node/multiTenantAuthentication.spec.ts +++ b/sdk/identity/identity/test/public/node/multiTenantAuthentication.spec.ts @@ -8,7 +8,7 @@ import { env } from "@azure-tools/test-recorder"; import { createHttpHeaders, createPipelineRequest } from "@azure/core-rest-pipeline"; import { ClientSecretCredential } from "../../../src/credentials/clientSecretCredential.js"; import { IdentityClient } from "../../../src/client/identityClient.js"; -import { describe, it, assert, expect, vi, beforeEach, afterEach } from "vitest"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; describe("MultiTenantAuthentication", function () { let cleanup: MsalTestCleanup; @@ -24,7 +24,7 @@ describe("MultiTenantAuthentication", function () { await cleanup(); }); - it("supports calling graph with client secret", async function () { + it("supports calling graph with client secret", async function (ctx) { const [tenantId, clientId, clientSecret] = [ env.AZURE_IDENTITY_MULTI_TENANT_TENANT_ID, env.AZURE_IDENTITY_MULTI_TENANT_CLIENT_ID, diff --git a/sdk/identity/identity/tests.yml b/sdk/identity/identity/tests.yml index 6b7e43ec8299..4eb016b19189 100644 --- a/sdk/identity/identity/tests.yml +++ b/sdk/identity/identity/tests.yml @@ -3,6 +3,7 @@ trigger: none extends: template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: + Location: westus2 PreSteps: - task: AzureCLI@2 displayName: Set OIDC variables diff --git a/sdk/identity/identity/vitest.browser.config.ts b/sdk/identity/identity/vitest.browser.config.ts index 304ad6de01f5..2303fced5fd3 100644 --- a/sdk/identity/identity/vitest.browser.config.ts +++ b/sdk/identity/identity/vitest.browser.config.ts @@ -10,6 +10,8 @@ export default mergeConfig( test: { include: ["dist-test/browser/test/**/*.spec.js"], exclude: ["dist-test/browser/test/snippets.spec.js"], + hookTimeout: 500000, + testTimeout: 500000, }, }), ); diff --git a/sdk/identity/identity/vitest.config.ts b/sdk/identity/identity/vitest.config.ts index cf36d0cf28a7..6f96ac13b36a 100644 --- a/sdk/identity/identity/vitest.config.ts +++ b/sdk/identity/identity/vitest.config.ts @@ -14,6 +14,8 @@ export default mergeConfig( "test/snippets.spec.ts", "test/integration/**/*.spec.ts", ], + hookTimeout: 500000, + testTimeout: 500000, }, }), ); diff --git a/sdk/identity/identity/vitest.managed-identity.config.ts b/sdk/identity/identity/vitest.managed-identity.config.ts new file mode 100644 index 000000000000..dea28373e23a --- /dev/null +++ b/sdk/identity/identity/vitest.managed-identity.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/integration/**/*.spec.ts"], + hookTimeout: 500000, + testTimeout: 500000, + }, + }), +); diff --git a/sdk/identity/test-resources-pre.ps1 b/sdk/identity/test-resources-pre.ps1 index ae2518b4caa0..6b3c8cb29e90 100644 --- a/sdk/identity/test-resources-pre.ps1 +++ b/sdk/identity/test-resources-pre.ps1 @@ -60,8 +60,6 @@ $env:IDENTITY_SP_CERT_PEM = $pemPath if ($CI) { - # Install this specific version of the Azure CLI to avoid https://github.com/Azure/azure-cli/issues/28358. - pip install azure-cli=="2.56.0" # The owner is a service principal $templateFileParameters['principalUserType'] = 'ServicePrincipal' Write-Host "Sleeping for a bit to ensure service principal is ready." diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json index e952c2d52083..b301d6fb9154 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json @@ -68,16 +68,16 @@ "@azure/core-tracing": "^1.2.0", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^1.9.0", - "@opentelemetry/core": "^1.27.0", - "@opentelemetry/instrumentation": "^0.54.0", + "@opentelemetry/core": "^1.28.0", + "@opentelemetry/instrumentation": "^0.55.0", "tslib": "^2.7.0" }, "devDependencies": { "@azure/core-rest-pipeline": "^1.5.1", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@opentelemetry/sdk-trace-base": "^1.27.0", - "@opentelemetry/sdk-trace-node": "^1.27.0", + "@opentelemetry/sdk-trace-base": "^1.28.0", + "@opentelemetry/sdk-trace-node": "^1.28.0", "@types/node": "^18.0.0", "@vitest/browser": "^2.1.1", "@vitest/coverage-istanbul": "^2.1.1", diff --git a/sdk/iot/iot-modelsrepository/.nycrc b/sdk/iot/iot-modelsrepository/.nycrc deleted file mode 100644 index 320eddfeffb9..000000000000 --- a/sdk/iot/iot-modelsrepository/.nycrc +++ /dev/null @@ -1,19 +0,0 @@ -{ - "include": [ - "dist-esm/src/**/*.js" - ], - "exclude": [ - "**/*.d.ts", - "dist-esm/src/generated/*" - ], - "reporter": [ - "text-summary", - "html", - "cobertura" - ], - "exclude-after-remap": false, - "sourceMap": true, - "produce-source-map": true, - "instrument": true, - "all": true - } diff --git a/sdk/iot/iot-modelsrepository/README.md b/sdk/iot/iot-modelsrepository/README.md index 677aaeb6083d..8740cc024d04 100644 --- a/sdk/iot/iot-modelsrepository/README.md +++ b/sdk/iot/iot-modelsrepository/README.md @@ -37,7 +37,7 @@ npm install @azure/iot-modelsrepository // When no URI is provided for instantiation, the Azure IoT Models Repository global endpoint // https://devicemodels.azure.com/ is used and the model dependency resolution // configuration is set to TryFromExpanded. -const { ModelsRepositoryClient } = require("@azure/iot-modelsrepository"); +import { ModelsRepositoryClient } from "@azure/iot-modelsrepository"; const client = new ModelsRepositoryClient(); console.log(`Initialized client point to global endpoint: ${client.repositoryLocation}`); diff --git a/sdk/iot/iot-modelsrepository/api-extractor.json b/sdk/iot/iot-modelsrepository/api-extractor.json index 35d4a6bcb767..59fdd0e81463 100644 --- a/sdk/iot/iot-modelsrepository/api-extractor.json +++ b/sdk/iot/iot-modelsrepository/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/iot-modelsrepository.d.ts" + "publicTrimmedFilePath": "dist/iot-modelsrepository.d.ts" }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/iot/iot-modelsrepository/karma.conf.js b/sdk/iot/iot-modelsrepository/karma.conf.js deleted file mode 100644 index 96b2ff48cce5..000000000000 --- a/sdk/iot/iot-modelsrepository/karma.conf.js +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); - -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { pattern: "dist-test/index.browser.js.map", type: "html", included: false, served: true }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.browser.js": ["coverage"] - }, - - // inject following environment values into browser testing with window.__env__ - // environment values MUST be exported or set with same console running "karma start" - // https://www.npmjs.com/package/karma-env-preprocessor - envPreprocessor: [], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // start these browsers - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - // 'ChromeHeadless', 'Chrome', 'Firefox', 'Edge', 'IE' - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 600000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/iot/iot-modelsrepository/package.json b/sdk/iot/iot-modelsrepository/package.json index 72026b47b39d..4d189fde4b4a 100644 --- a/sdk/iot/iot-modelsrepository/package.json +++ b/sdk/iot/iot-modelsrepository/package.json @@ -3,44 +3,38 @@ "version": "1.0.0-beta.3", "description": "Device Model Repository Library with typescript type definitions for node.js and browser.", "sdk-type": "client", - "main": "dist/index.js", - "module": "dist-esm/src/index.js", - "browser": { - "./dist-esm/src/print.js": "./dist-esm/src/print.browser.js", - "./dist-esm/src/utils/path.js": "./dist-esm/src/utils/path.browser.js", - "./dist-esm/src/fetcherFilesystem.js": "./dist-esm/src/utils/fetcherFilesystem.browser.js" - }, - "types": "types/iot-modelsrepository.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "browser": "./dist/browser/index.js", + "types": "./dist/commonjs/index.d.ts", "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:node": "tsc -p . && dev-tool run bundle", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:node": "dev-tool run build-package && dev-tool run bundle", "build:samples": "echo Obsolete.", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-* test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", - "extract-api": "tsc -p . && dev-tool run extract-api", + "extract-api": "dev-tool run build-package && dev-tool run extract-api", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "karma start --single-run", - "integration-test:node": "dev-tool run test:node-js-input", - "lint": "eslint package.json api-extractor.json src test", - "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", + "integration-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", + "lint": "dev-tool run vendored eslint package.json api-extractor.json src test", + "lint:fix": "dev-tool run vendored eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", "temp-unit-test": "mocha -r ts-node/register --timeout 1200000 test/node/*.spec.ts", "test": "npm run build:test && npm run unit-test && npm run integration-test", "test:browser": "npm run build:test && npm run unit-test:browser && npm run integration-test:browser", "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "karma start --single-run", - "unit-test:node": "dev-tool run test:node-ts-input --no-test-proxy", + "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "files": [ "dist/", - "dist-esm/src/", - "types/iot-modelsrepository.d.ts", "README.md", "LICENSE" ], @@ -62,42 +56,26 @@ "sideEffects": false, "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "dependencies": { - "@azure/core-client": "^1.0.0", - "@azure/core-rest-pipeline": "^1.1.0", - "@azure/core-tracing": "^1.0.0", - "@azure/core-util": "^1.0.0", - "@azure/logger": "^1.0.0", - "events": "^3.0.0", - "tslib": "^2.2.0" + "@azure/core-client": "^1.9.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/core-tracing": "^1.2.0", + "@azure/core-util": "^1.11.0", + "@azure/logger": "^1.1.4", + "events": "^3.3.0", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@types/chai": "^4.1.6", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "@types/sinon": "^17.0.0", - "chai": "^4.2.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "eslint": "^9.9.0", - "inherits": "^2.0.3", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-json-preprocessor": "^0.3.3", - "karma-json-to-file-reporter": "^1.0.1", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "sinon": "^17.0.0", - "ts-node": "^10.0.0", + "playwright": "^1.49.0", "typescript": "~5.6.2", - "util": "^0.12.1" + "vitest": "^2.1.5" }, "standard": { "env": [ @@ -122,5 +100,42 @@ "prefix": "SDK_VERSION" } ] + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/iot/iot-modelsrepository/src/dtmiResolver.ts b/sdk/iot/iot-modelsrepository/src/dtmiResolver.ts index e77cc83bb646..42e4d08030cf 100644 --- a/sdk/iot/iot-modelsrepository/src/dtmiResolver.ts +++ b/sdk/iot/iot-modelsrepository/src/dtmiResolver.ts @@ -2,11 +2,11 @@ // Licensed under the MIT License. import type { OperationOptions } from "@azure/core-client"; -import type { DTDL } from "./psuedoDtdl"; -import { convertDtmiToPath } from "./dtmiConventions"; -import { ModelError } from "./exceptions"; -import type { Fetcher } from "./fetcherAbstract"; -import { logger } from "./logger"; +import type { DTDL } from "./psuedoDtdl.js"; +import { convertDtmiToPath } from "./dtmiConventions.js"; +import { ModelError } from "./exceptions.js"; +import type { Fetcher } from "./fetcherAbstract.js"; +import { logger } from "./logger.js"; /** * DtmiResolver handles reformatting the DTMIs to paths and passing options diff --git a/sdk/iot/iot-modelsrepository/src/fetcherAbstract.ts b/sdk/iot/iot-modelsrepository/src/fetcherAbstract.ts index 1e9b8b20b508..e96b68273e33 100644 --- a/sdk/iot/iot-modelsrepository/src/fetcherAbstract.ts +++ b/sdk/iot/iot-modelsrepository/src/fetcherAbstract.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import type { OperationOptions } from "@azure/core-client"; -import type { DTDL } from "./psuedoDtdl"; +import type { DTDL } from "./psuedoDtdl.js"; /** * Base Interface for Fetchers, which fetch models from endpoints. diff --git a/sdk/iot/iot-modelsrepository/src/utils/fetcherFilesystem.browser.ts b/sdk/iot/iot-modelsrepository/src/fetcherFilesystem-browser.mts similarity index 100% rename from sdk/iot/iot-modelsrepository/src/utils/fetcherFilesystem.browser.ts rename to sdk/iot/iot-modelsrepository/src/fetcherFilesystem-browser.mts diff --git a/sdk/iot/iot-modelsrepository/src/fetcherFilesystem.ts b/sdk/iot/iot-modelsrepository/src/fetcherFilesystem.ts index fad283e4f14f..0cfdbc2b3dfd 100644 --- a/sdk/iot/iot-modelsrepository/src/fetcherFilesystem.ts +++ b/sdk/iot/iot-modelsrepository/src/fetcherFilesystem.ts @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import fs from "fs"; -import * as path from "path"; +import fs from "node:fs"; +import * as path from "node:path"; import type { RestErrorOptions } from "@azure/core-rest-pipeline"; import { RestError } from "@azure/core-rest-pipeline"; -import type { Fetcher } from "./fetcherAbstract"; -import { logger } from "./logger"; -import type { DTDL } from "./psuedoDtdl"; +import type { Fetcher } from "./fetcherAbstract.js"; +import { logger } from "./logger.js"; +import type { DTDL } from "./psuedoDtdl.js"; function readFilePromise(filePath: string): Promise { return new Promise((resolve, reject) => { diff --git a/sdk/iot/iot-modelsrepository/src/fetcherHTTP.ts b/sdk/iot/iot-modelsrepository/src/fetcherHTTP.ts index 3655725f7fd1..1bae874c7041 100644 --- a/sdk/iot/iot-modelsrepository/src/fetcherHTTP.ts +++ b/sdk/iot/iot-modelsrepository/src/fetcherHTTP.ts @@ -9,9 +9,9 @@ import type { PipelineResponse, } from "@azure/core-rest-pipeline"; import { createHttpHeaders, createPipelineRequest, RestError } from "@azure/core-rest-pipeline"; -import { logger } from "./logger"; -import type { Fetcher } from "./fetcherAbstract"; -import type { DTDL } from "./psuedoDtdl"; +import { logger } from "./logger.js"; +import type { Fetcher } from "./fetcherAbstract.js"; +import type { DTDL } from "./psuedoDtdl.js"; /** * The HTTP Fetcher implements the Fetcher interface to @@ -23,6 +23,7 @@ export class HttpFetcher implements Fetcher { private _client: ServiceClient; private _baseURL: string; + // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters constructor(baseURL: string, client: ServiceClient) { this._client = client; this._baseURL = baseURL; diff --git a/sdk/iot/iot-modelsrepository/src/index.ts b/sdk/iot/iot-modelsrepository/src/index.ts index b6d446cddf38..cd547276298c 100644 --- a/sdk/iot/iot-modelsrepository/src/index.ts +++ b/sdk/iot/iot-modelsrepository/src/index.ts @@ -36,9 +36,9 @@ * @packageDocumentation */ -export { ModelsRepositoryClient } from "./modelsRepositoryClient"; -export { GetModelsOptions } from "./interfaces/getModelsOptions"; -export { ModelsRepositoryClientOptions } from "./interfaces/modelsRepositoryClientOptions"; -export { dependencyResolutionType } from "./dependencyResolutionType"; -export { ModelError } from "./exceptions"; -export { getModelUri, isValidDtmi } from "./dtmiConventions"; +export { ModelsRepositoryClient } from "./modelsRepositoryClient.js"; +export { GetModelsOptions } from "./interfaces/getModelsOptions.js"; +export { ModelsRepositoryClientOptions } from "./interfaces/modelsRepositoryClientOptions.js"; +export { dependencyResolutionType } from "./dependencyResolutionType.js"; +export { ModelError } from "./exceptions.js"; +export { getModelUri, isValidDtmi } from "./dtmiConventions.js"; diff --git a/sdk/iot/iot-modelsrepository/src/interfaces/getModelsOptions.ts b/sdk/iot/iot-modelsrepository/src/interfaces/getModelsOptions.ts index e10fcd5924f5..e38e1ab949f7 100644 --- a/sdk/iot/iot-modelsrepository/src/interfaces/getModelsOptions.ts +++ b/sdk/iot/iot-modelsrepository/src/interfaces/getModelsOptions.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import type { OperationOptions } from "@azure/core-client"; -import type { dependencyResolutionType } from "../dependencyResolutionType"; +import type { dependencyResolutionType } from "../dependencyResolutionType.js"; /** * Options for getting models. diff --git a/sdk/iot/iot-modelsrepository/src/interfaces/modelsRepositoryClientOptions.ts b/sdk/iot/iot-modelsrepository/src/interfaces/modelsRepositoryClientOptions.ts index 7d20c5062fd3..69426a04d92c 100644 --- a/sdk/iot/iot-modelsrepository/src/interfaces/modelsRepositoryClientOptions.ts +++ b/sdk/iot/iot-modelsrepository/src/interfaces/modelsRepositoryClientOptions.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import type { CommonClientOptions } from "@azure/core-client"; -import type { dependencyResolutionType } from "../dependencyResolutionType"; +import type { dependencyResolutionType } from "../dependencyResolutionType.js"; /** * Options for creating a Pipeline to use with ModelsRepositoryClient. diff --git a/sdk/iot/iot-modelsrepository/src/modelsRepositoryClient.ts b/sdk/iot/iot-modelsrepository/src/modelsRepositoryClient.ts index 4a73f396976c..3cff84a19626 100644 --- a/sdk/iot/iot-modelsrepository/src/modelsRepositoryClient.ts +++ b/sdk/iot/iot-modelsrepository/src/modelsRepositoryClient.ts @@ -8,21 +8,21 @@ import { DEPENDENCY_MODE_DISABLED, DEPENDENCY_MODE_ENABLED, DEPENDENCY_MODE_TRY_FROM_EXPANDED, -} from "./utils/constants"; +} from "./utils/constants.js"; import type { InternalClientPipelineOptions } from "@azure/core-client"; import { createClientPipeline } from "@azure/core-client"; -import type { Fetcher } from "./fetcherAbstract"; -import { isLocalPath, normalize } from "./utils/path"; -import { FilesystemFetcher } from "./fetcherFilesystem"; -import type { dependencyResolutionType } from "./dependencyResolutionType"; -import { DtmiResolver } from "./dtmiResolver"; -import { PseudoParser } from "./psuedoParser"; -import type { ModelsRepositoryClientOptions } from "./interfaces/modelsRepositoryClientOptions"; -import { logger } from "./logger"; -import { IoTModelsRepositoryServiceClient } from "./modelsRepositoryServiceClient"; -import { HttpFetcher } from "./fetcherHTTP"; -import type { GetModelsOptions } from "./interfaces/getModelsOptions"; -import type { DTDL } from "./psuedoDtdl"; +import type { Fetcher } from "./fetcherAbstract.js"; +import { isLocalPath, normalize } from "./utils/path.js"; +import { FilesystemFetcher } from "./fetcherFilesystem.js"; +import type { dependencyResolutionType } from "./dependencyResolutionType.js"; +import { DtmiResolver } from "./dtmiResolver.js"; +import { PseudoParser } from "./psuedoParser.js"; +import type { ModelsRepositoryClientOptions } from "./interfaces/modelsRepositoryClientOptions.js"; +import { logger } from "./logger.js"; +import { IoTModelsRepositoryServiceClient } from "./modelsRepositoryServiceClient.js"; +import { HttpFetcher } from "./fetcherHTTP.js"; +import type { GetModelsOptions } from "./interfaces/getModelsOptions.js"; +import type { DTDL } from "./psuedoDtdl.js"; /** * Initializes a new instance of the IoT Models Repository Client. diff --git a/sdk/iot/iot-modelsrepository/src/modelsRepositoryServiceClient.ts b/sdk/iot/iot-modelsrepository/src/modelsRepositoryServiceClient.ts index ce07dfd857c9..225e5d528995 100644 --- a/sdk/iot/iot-modelsrepository/src/modelsRepositoryServiceClient.ts +++ b/sdk/iot/iot-modelsrepository/src/modelsRepositoryServiceClient.ts @@ -3,7 +3,7 @@ import type { ServiceClientOptions } from "@azure/core-client"; import { ServiceClient } from "@azure/core-client"; -import { DEFAULT_API_VERSION } from "./utils/constants"; +import { DEFAULT_API_VERSION } from "./utils/constants.js"; interface IoTModelsRepositoryServiceClientOptions extends ServiceClientOptions { // API Version to be used during HTTP Calls. diff --git a/sdk/iot/iot-modelsrepository/src/psuedoParser.ts b/sdk/iot/iot-modelsrepository/src/psuedoParser.ts index f63eb6359a72..d40e42436bc2 100644 --- a/sdk/iot/iot-modelsrepository/src/psuedoParser.ts +++ b/sdk/iot/iot-modelsrepository/src/psuedoParser.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { DTDL } from "./psuedoDtdl"; -import { logger } from "./logger"; -import type { DtmiResolver } from "./dtmiResolver"; +import type { DTDL } from "./psuedoDtdl.js"; +import { logger } from "./logger.js"; +import type { DtmiResolver } from "./dtmiResolver.js"; import { RestError } from "@azure/core-rest-pipeline"; /** @@ -20,6 +20,7 @@ import { RestError } from "@azure/core-rest-pipeline"; export class PseudoParser { private _resolver: DtmiResolver; + // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters constructor(resolver: DtmiResolver) { this._resolver = resolver; } @@ -74,7 +75,7 @@ export class PseudoParser { } } - private _getModelDependencies(model: DTDL) { + private _getModelDependencies(model: DTDL): string[] { const dependencies = []; if (model.contents !== undefined) { diff --git a/sdk/iot/iot-modelsrepository/src/utils/path.browser.ts b/sdk/iot/iot-modelsrepository/src/utils/path-browser.mts similarity index 100% rename from sdk/iot/iot-modelsrepository/src/utils/path.browser.ts rename to sdk/iot/iot-modelsrepository/src/utils/path-browser.mts diff --git a/sdk/iot/iot-modelsrepository/src/utils/path.ts b/sdk/iot/iot-modelsrepository/src/utils/path.ts index 2d471a206105..466ded2d56d3 100644 --- a/sdk/iot/iot-modelsrepository/src/utils/path.ts +++ b/sdk/iot/iot-modelsrepository/src/utils/path.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { isAbsolute, normalize } from "path"; +import { isAbsolute, normalize } from "node:path"; function isLocalPath(p: string): boolean { return isAbsolute(p); diff --git a/sdk/iot/iot-modelsrepository/test/browser/browserTest.spec.ts b/sdk/iot/iot-modelsrepository/test/browser/browserTest.spec.ts index fc5b888ab5f8..c3a85d61fb61 100644 --- a/sdk/iot/iot-modelsrepository/test/browser/browserTest.spec.ts +++ b/sdk/iot/iot-modelsrepository/test/browser/browserTest.spec.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { expect } from "chai"; -import { ModelsRepositoryClient } from "../../src"; +import { ModelsRepositoryClient } from "../../src/index.js"; +import { describe, it, expect } from "vitest"; describe("resolver - browser", () => { describe("single resolution (no pseudo-parsing)", () => { diff --git a/sdk/iot/iot-modelsrepository/test/node/integration/index.spec.ts b/sdk/iot/iot-modelsrepository/test/node/integration/index.spec.ts index 4ec1318812b4..9c2fb3bbda85 100644 --- a/sdk/iot/iot-modelsrepository/test/node/integration/index.spec.ts +++ b/sdk/iot/iot-modelsrepository/test/node/integration/index.spec.ts @@ -1,16 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -/* eslint-disable no-undef */ -import type { ModelsRepositoryClientOptions } from "../../../src"; -import { ModelsRepositoryClient } from "../../../src"; - -import { assert, expect } from "chai"; -import * as sinon from "sinon"; - -import type { dependencyResolutionType } from "../../../src/dependencyResolutionType"; +import type { ModelsRepositoryClientOptions } from "../../../src/index.js"; +import { ModelsRepositoryClient } from "../../../src/index.js"; +import type { dependencyResolutionType } from "../../../src/dependencyResolutionType.js"; import { ServiceClient } from "@azure/core-client"; import type { PipelineRequest } from "@azure/core-rest-pipeline"; +import { describe, it, assert, expect, vi } from "vitest"; interface RemoteResolutionScenario { name: string; @@ -155,18 +151,14 @@ const remoteResolutionScenarios: RemoteResolutionScenario[] = [ }, ]; -describe("resolver - node", function () { - afterEach(function () { - sinon.restore(); - }); - - describe("remote URL resolution", function () { +describe("resolver - node", () => { + describe("remote URL resolution", () => { remoteResolutionScenarios.forEach((scenario: RemoteResolutionScenario) => { - it(scenario.name, async function () { + it(scenario.name, async () => { console.log(scenario.name); - const myStub = sinon.stub(ServiceClient.prototype, "sendRequest"); + const myStub = vi.spyOn(ServiceClient.prototype, "sendRequest"); for (let i = 0; i < scenario.dtmis.length; i++) { - myStub.onCall(i).callsFake((request: PipelineRequest) => { + myStub.mockImplementationOnce((request: PipelineRequest) => { expect(request.url, "URL not formatted for request correctly.").to.deep.equal( scenario.dtmis[i].expectedUri, ); diff --git a/sdk/iot/iot-modelsrepository/test/node/unit/constants.spec.ts b/sdk/iot/iot-modelsrepository/test/node/unit/constants.spec.ts index e8dfd6d11fb1..5e25bdf537a3 100644 --- a/sdk/iot/iot-modelsrepository/test/node/unit/constants.spec.ts +++ b/sdk/iot/iot-modelsrepository/test/node/unit/constants.spec.ts @@ -1,11 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import * as cnst from "../../../src/utils/constants"; -import { readFileSync } from "fs"; -import { expect } from "chai"; -describe("constants", function () { - it("uses same version as package.json", function () { +import * as cnst from "../../../src/utils/constants.js"; +import { readFileSync } from "node:fs"; +import { describe, it, expect } from "vitest"; + +describe("constants", () => { + it("uses same version as package.json", () => { const pkgjson = readFileSync("./package.json", "utf-8"); const pkgjsonVersion = JSON.parse(pkgjson).version; expect(cnst.SDK_VERSION).to.equal(pkgjsonVersion); diff --git a/sdk/iot/iot-modelsrepository/test/node/unit/dtmiConventions.spec.ts b/sdk/iot/iot-modelsrepository/test/node/unit/dtmiConventions.spec.ts index d2aee2f0c801..2c3459bbb754 100644 --- a/sdk/iot/iot-modelsrepository/test/node/unit/dtmiConventions.spec.ts +++ b/sdk/iot/iot-modelsrepository/test/node/unit/dtmiConventions.spec.ts @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import * as lib from "../../../src/dtmiConventions"; - -import { assert, expect } from "chai"; +import * as lib from "../../../src/dtmiConventions.js"; +import { describe, it, assert, expect } from "vitest"; interface TestCase { dtmi: string; @@ -33,16 +32,16 @@ const testCases: TestCase[] = [ const fakeBasePath = "https://contoso.com"; -describe("dtmiConventions", function () { +describe("dtmiConventions", () => { testCases.forEach((testCase) => { - describe("isValidDtmi", function () { + describe("isValidDtmi", () => { if (testCase.valid) { - it(`valid dtmi - ${testCase.dtmi}`, function () { + it(`valid dtmi - ${testCase.dtmi}`, () => { const result = lib.isValidDtmi(testCase.dtmi); assert(result, `${testCase.dtmi} was incorrectly labelled invalid.`); }); } else { - it(`invalid dtmi - ${testCase.dtmi}`, function () { + it(`invalid dtmi - ${testCase.dtmi}`, () => { const result = lib.isValidDtmi(testCase.dtmi); expect(result, `${testCase.dtmi} was incorrectly labelled as valid.`).to.equal(false); }); @@ -51,19 +50,19 @@ describe("dtmiConventions", function () { }); testCases.forEach((testCase) => { - describe("convertDtmiToPath", function () { + describe("convertDtmiToPath", () => { if (testCase.valid) { - it(`converts dtmi to path - ${testCase.dtmi}`, function () { + it(`converts dtmi to path - ${testCase.dtmi}`, () => { const result = lib.convertDtmiToPath(testCase.dtmi, false); expect(result).to.deep.equal(testCase.expectedPath); }); - it(`converts dtmi to expanded path - ${testCase.dtmi}`, function () { + it(`converts dtmi to expanded path - ${testCase.dtmi}`, () => { const result = lib.convertDtmiToPath(testCase.dtmi, true); const expected = testCase.expectedPath?.replace(".json", ".expanded.json"); expect(result).to.deep.equal(expected); }); } else { - it(`throw error on invalid dtmi - ${testCase.dtmi}`, function () { + it(`throw error on invalid dtmi - ${testCase.dtmi}`, () => { expect(() => { lib.convertDtmiToPath(testCase.dtmi, false); }).to.throw("DTMI provided is invalid. Ensure it follows DTMI conventions."); @@ -73,20 +72,20 @@ describe("dtmiConventions", function () { }); testCases.forEach((testCase) => { - describe("getModelUri", function () { + describe("getModelUri", () => { if (testCase.valid) { - it(`generates model uri - ${testCase.dtmi}`, function () { + it(`generates model uri - ${testCase.dtmi}`, () => { const result = lib.getModelUri(testCase.dtmi, fakeBasePath, false); expect(result).to.equal(testCase.expectedURL); }); - it(`generates expanded model uri - ${testCase.dtmi}`, function () { + it(`generates expanded model uri - ${testCase.dtmi}`, () => { const result = lib.getModelUri(testCase.dtmi, fakeBasePath, true); const expected = testCase.expectedURL?.replace(".json", ".expanded.json"); expect(result).to.equal(expected); }); } else { - it("should fail if the dtmi is not formatted correctly", function () { + it("should fail if the dtmi is not formatted correctly", () => { expect(() => { lib.getModelUri(testCase.dtmi, fakeBasePath, false); }).to.throw("DTMI provided is invalid. Ensure it follows DTMI conventions."); diff --git a/sdk/iot/iot-modelsrepository/tsconfig.browser.config.json b/sdk/iot/iot-modelsrepository/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/iot/iot-modelsrepository/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/iot/iot-modelsrepository/tsconfig.json b/sdk/iot/iot-modelsrepository/tsconfig.json index 44cca3b8d912..459703f9c4dd 100644 --- a/sdk/iot/iot-modelsrepository/tsconfig.json +++ b/sdk/iot/iot-modelsrepository/tsconfig.json @@ -1,11 +1,20 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "paths": { "@azure/iot-modelsrepository": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/iot/iot-modelsrepository/vitest.browser.config.ts b/sdk/iot/iot-modelsrepository/vitest.browser.config.ts new file mode 100644 index 000000000000..b9401dbaf2bb --- /dev/null +++ b/sdk/iot/iot-modelsrepository/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 500000, + testTimeout: 500000, + }, + }), +); diff --git a/sdk/iot/iot-modelsrepository/vitest.config.ts b/sdk/iot/iot-modelsrepository/vitest.config.ts new file mode 100644 index 000000000000..b073a7d2a979 --- /dev/null +++ b/sdk/iot/iot-modelsrepository/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 500000, + testTimeout: 500000, + }, + }), +); diff --git a/sdk/iotoperations/arm-iotoperations/package.json b/sdk/iotoperations/arm-iotoperations/package.json index fe70e6608c80..857793303ee4 100644 --- a/sdk/iotoperations/arm-iotoperations/package.json +++ b/sdk/iotoperations/arm-iotoperations/package.json @@ -68,7 +68,7 @@ "devDependencies": { "dotenv": "^16.0.0", "@types/node": "^18.0.0", - "eslint": "^8.55.0", + "eslint": "^9.9.0", "typescript": "~5.6.2", "@azure/identity": "^4.2.1", "@vitest/browser": "^2.0.5", diff --git a/sdk/kubernetesruntime/arm-containerorchestratorruntime/package.json b/sdk/kubernetesruntime/arm-containerorchestratorruntime/package.json index 6de142f4cbc0..31e9947fc47e 100644 --- a/sdk/kubernetesruntime/arm-containerorchestratorruntime/package.json +++ b/sdk/kubernetesruntime/arm-containerorchestratorruntime/package.json @@ -68,7 +68,7 @@ "devDependencies": { "dotenv": "^16.0.0", "@types/node": "^18.0.0", - "eslint": "^8.55.0", + "eslint": "^9.9.0", "typescript": "~5.6.2", "@azure/identity": "^4.2.1", "@vitest/browser": "^2.0.5", diff --git a/sdk/loadtesting/load-testing-rest/CHANGELOG.md b/sdk/loadtesting/load-testing-rest/CHANGELOG.md index 5c0c1e2a2b41..ea58bd9cc40d 100644 --- a/sdk/loadtesting/load-testing-rest/CHANGELOG.md +++ b/sdk/loadtesting/load-testing-rest/CHANGELOG.md @@ -10,6 +10,8 @@ ### Other Changes +- Add NOT_VALIDATED to the list of terminal states for the file validation poller. + ## 1.0.0 (2023-03-07) First stable release of Azure Load Testing client library for Javascript. diff --git a/sdk/loadtesting/load-testing-rest/api-extractor.json b/sdk/loadtesting/load-testing-rest/api-extractor.json index 2f752668f341..52de93127a2c 100644 --- a/sdk/loadtesting/load-testing-rest/api-extractor.json +++ b/sdk/loadtesting/load-testing-rest/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "mainEntryPointFilePath": "dist/esm/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/load-testing.d.ts" + "publicTrimmedFilePath": "dist/load-testing.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } } diff --git a/sdk/loadtesting/load-testing-rest/karma.conf.js b/sdk/loadtesting/load-testing-rest/karma.conf.js deleted file mode 100644 index 5f468354314d..000000000000 --- a/sdk/loadtesting/load-testing-rest/karma.conf.js +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - failOnEmptyTestSuite: false, - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: [ - "TEST_MODE", - "LOADTESTSERVICE_ENDPOINT", - "AZURE_CLIENT_SECRET", - "AZURE_CLIENT_ID", - "AZURE_TENANT_ID", - "SUBSCRIPTION_ID", - "RECORDINGS_RELATIVE_PATH", - ], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security", "--lang=en-US"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/loadtesting/load-testing-rest/package.json b/sdk/loadtesting/load-testing-rest/package.json index 97046b5dc2de..bd872c34804f 100644 --- a/sdk/loadtesting/load-testing-rest/package.json +++ b/sdk/loadtesting/load-testing-rest/package.json @@ -13,20 +13,17 @@ "isomorphic" ], "license": "MIT", - "main": "dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/load-testing.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/", - "dist-esm/src/", - "types/load-testing.d.ts", "README.md", - "LICENSE", - "review/*" + "LICENSE" ], "//sampleConfiguration": { "productName": "Azure Load Testing rest", @@ -41,12 +38,12 @@ "node": ">=18.0.0" }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run bundle --browser-test false", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api", + "build:node": "dev-tool run build-package && dev-tool run bundle --browser-test false", "build:samples": "echo skipped.", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", @@ -54,8 +51,8 @@ "format": "dev-tool run vendored 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": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -63,53 +60,39 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.0.0", + "@azure-rest/core-client": "^2.3.1", "@azure/abort-controller": "^2.1.2", - "@azure/core-auth": "^1.3.0", - "@azure/core-lro": "^2.4.1", - "@azure/core-paging": "^1.2.0", - "@azure/core-rest-pipeline": "^1.8.0", - "@azure/core-util": "^1.1.1", - "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "@azure/core-auth": "^1.9.0", + "@azure/core-lro": "^2.7.2", + "@azure/core-paging": "^1.6.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/core-util": "^1.11.0", + "@azure/logger": "^1.1.3", + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.4", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", + "@azure/identity": "^4.5.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "@types/uuid": "^8.3.4", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "autorest": "latest", - "chai": "^4.2.0", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", + "playwright": "^1.49.0", "typescript": "~5.6.2", - "uuid": "^9.0.0" + "vitest": "^2.1.5" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtesting/load-testing-rest/README.md", "//metadata": { @@ -124,7 +107,42 @@ } ] }, - "browser": { - "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" + "browser": "./dist/browser/index.js", + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/loadtesting/load-testing-rest/samples-dev/sample.ts b/sdk/loadtesting/load-testing-rest/samples-dev/sample.ts index 4467375d0718..cf850523788d 100644 --- a/sdk/loadtesting/load-testing-rest/samples-dev/sample.ts +++ b/sdk/loadtesting/load-testing-rest/samples-dev/sample.ts @@ -10,17 +10,17 @@ import AzureLoadTesting, { isUnexpected, getLongRunningPoller } from "@azure-rest/load-testing"; import { DefaultAzureCredential } from "@azure/identity"; -import { createReadStream } from "fs"; -import { v4 as uuidv4 } from "uuid"; +import { createReadStream } from "node:fs"; +import { randomUUID } from "node:crypto"; const readStream = createReadStream("./sample.jmx"); -async function main() { +async function main(): Promise { const endpoint = process.env["LOADTESTSERVICE_ENDPOINT"] || ""; const displayName = "some-load-test"; const SUBSCRIPTION_ID = process.env["SUBSCRIPTION_ID"] || ""; - const testId = uuidv4(); // ID to be assigned to a test - const testRunId = uuidv4(); // ID to be assigned to a testRun + const testId = randomUUID(); // ID to be assigned to a test + const testRunId = randomUUID(); // ID to be assigned to a testRun // Build a client through AAD const client = AzureLoadTesting(endpoint, new DefaultAzureCredential()); @@ -41,8 +41,9 @@ async function main() { throw testCreationResult.body.error; } - if (testCreationResult.body.testId === undefined) + if (testCreationResult.body.testId === undefined) { throw new Error("Test ID returned as undefined."); + } // Uploading .jmx file to a test const fileUploadResult = await client @@ -63,14 +64,15 @@ async function main() { abortSignal: AbortSignal.timeout(120 * 1000), // timeout of 120 seconds }); } catch (ex: any) { - new Error("Error in polling file Validation" + ex.message); //polling timed out + new Error("Error in polling file Validation" + ex.message); // polling timed out } - if (fileValidatePoller.getOperationState().status != "succeeded" && fileValidateResult) + if (fileValidatePoller.getOperationState().status !== "succeeded" && fileValidateResult) { throw new Error( "There is some issue in validation, please make sure uploaded file is a valid JMX." + fileValidateResult.body.validationFailureDetails, ); + } // Creating/Updating app component const appComponentCreationResult = await client @@ -110,8 +112,9 @@ async function main() { throw testRunCreationResult.body.error; } - if (testRunCreationResult.body.testRunId === undefined) + if (testRunCreationResult.body.testRunId === undefined) { throw new Error("Test Run ID returned as undefined."); + } let testRunResult; const testRunPoller = await getLongRunningPoller(client, testRunCreationResult); @@ -121,15 +124,16 @@ async function main() { abortSignal: AbortSignal.timeout(300 * 1000), // timeout of 5 minutes }); } catch (ex: any) { - new Error("Error in polling test run completion" + ex.message); //polling timed out + new Error("Error in polling test run completion" + ex.message); // polling timed out } - if (testRunPoller.getOperationState().status != "succeeded") + if (testRunPoller.getOperationState().status !== "succeeded") { throw new Error("There is some issue in running the test, Error Response : " + testRunResult); + } if (testRunResult) { - let testRunStarttime = testRunResult.body.startDateTime; - let testRunEndTime = testRunResult.body.endDateTime; + const testRunStarttime = testRunResult.body.startDateTime; + const testRunEndTime = testRunResult.body.endDateTime; // get list of all metric namespaces and pick the first one const metricNamespaces = await client diff --git a/sdk/loadtesting/load-testing-rest/samples-dev/stopTest.ts b/sdk/loadtesting/load-testing-rest/samples-dev/stopTest.ts index daa145545c5b..20104cfc899f 100644 --- a/sdk/loadtesting/load-testing-rest/samples-dev/stopTest.ts +++ b/sdk/loadtesting/load-testing-rest/samples-dev/stopTest.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** * This sample demonstrates how to run a test and stop execution * @@ -7,13 +10,13 @@ import AzureLoadTesting, { isUnexpected } from "@azure-rest/load-testing"; import { DefaultAzureCredential } from "@azure/identity"; -import { v4 as uuidv4 } from "uuid"; +import { randomUUID } from "node:crypto"; -async function main() { +async function main(): Promise { const endpoint = process.env["LOADTESTSERVICE_ENDPOINT"] || ""; const displayName = "some-load-test"; - const testId = uuidv4(); // ID to be assigned to a test - const testRunId = uuidv4(); // ID to be assigned to a testRun + const testId = randomUUID(); // ID to be assigned to a test + const testRunId = randomUUID(); // ID to be assigned to a testRun // Build a client through AAD const client = AzureLoadTesting(endpoint, new DefaultAzureCredential()); @@ -34,8 +37,9 @@ async function main() { throw testCreationResult.body.error; } - if (testCreationResult.body.testId === undefined) + if (testCreationResult.body.testId === undefined) { throw new Error("Test ID returned as undefined."); + } // Patching the test run const testRunCreationResult = await client.path("/test-runs/{testRunId}", testRunId).patch({ @@ -51,15 +55,16 @@ async function main() { throw testRunCreationResult.body.error; } - if (testRunCreationResult.body.testRunId === undefined) + if (testRunCreationResult.body.testRunId === undefined) { throw new Error("Test Run ID returned as undefined."); + } // Checking the test run status const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); sleep(30000); - let stopTestRunResult = await client.path("/test-runs/{testRunId}:stop", testRunId).post(); + const stopTestRunResult = await client.path("/test-runs/{testRunId}:stop", testRunId).post(); if (isUnexpected(stopTestRunResult)) { throw stopTestRunResult.body.error; diff --git a/sdk/loadtesting/load-testing-rest/src/azureLoadTesting.ts b/sdk/loadtesting/load-testing-rest/src/azureLoadTesting.ts index cfd1f47b4e05..23f3585ce09a 100644 --- a/sdk/loadtesting/load-testing-rest/src/azureLoadTesting.ts +++ b/sdk/loadtesting/load-testing-rest/src/azureLoadTesting.ts @@ -4,12 +4,12 @@ import type { ClientOptions } from "@azure-rest/core-client"; import { getClient } from "@azure-rest/core-client"; import type { TokenCredential } from "@azure/core-auth"; -import type { AzureLoadTestingClient } from "./clientDefinitions"; +import type { AzureLoadTestingClient } from "./clientDefinitions.js"; /** * Initialize a new instance of the class AzureLoadTestingClient class. - * @param Endpoint type: string URL to perform data plane API operations on the resource. - * @param credentials type: TokenCredential + * @param Endpoint - type: string URL to perform data plane API operations on the resource. + * @param credentials - type: TokenCredential */ export default function createClient( Endpoint: string, diff --git a/sdk/loadtesting/load-testing-rest/src/clientDefinitions.ts b/sdk/loadtesting/load-testing-rest/src/clientDefinitions.ts index e4a573b69454..9536d79d431e 100644 --- a/sdk/loadtesting/load-testing-rest/src/clientDefinitions.ts +++ b/sdk/loadtesting/load-testing-rest/src/clientDefinitions.ts @@ -28,7 +28,7 @@ import type { TestRunListAppComponentsParameters, TestRunCreateOrUpdateServerMetricsConfigParameters, TestRunListServerMetricsConfigParameters, -} from "./parameters"; +} from "./parameters.js"; import type { TestCreateOrUpdate200Response, TestCreateOrUpdate201Response, @@ -88,7 +88,7 @@ import type { TestRunCreateOrUpdateServerMetricsConfigDefaultResponse, TestRunListServerMetricsConfig200Response, TestRunListServerMetricsConfigDefaultResponse, -} from "./responses"; +} from "./responses.js"; import type { Client, StreamableMethod } from "@azure-rest/core-client"; export interface TestCreateOrUpdate { diff --git a/sdk/loadtesting/load-testing-rest/src/getFileValidationPoller.ts b/sdk/loadtesting/load-testing-rest/src/getFileValidationPoller.ts index bbc56b5e733d..eca0e23a1219 100644 --- a/sdk/loadtesting/load-testing-rest/src/getFileValidationPoller.ts +++ b/sdk/loadtesting/load-testing-rest/src/getFileValidationPoller.ts @@ -4,11 +4,11 @@ import type { AbortSignalLike } from "@azure/abort-controller"; import { AbortError } from "@azure/abort-controller"; import type { CancelOnProgress, OperationState, SimplePollerLike } from "@azure/core-lro"; -import type { FileUploadAndValidatePoller, PolledOperationOptions } from "./models"; -import type { AzureLoadTestingClient } from "./clientDefinitions"; -import type { TestGetFile200Response, TestUploadFile201Response } from "./responses"; -import { isUnexpected } from "./isUnexpected"; -import { sleep } from "./util/LROUtil"; +import type { FileUploadAndValidatePoller, PolledOperationOptions } from "./models.js"; +import type { AzureLoadTestingClient } from "./clientDefinitions.js"; +import type { TestGetFile200Response, TestUploadFile201Response } from "./responses.js"; +import { isUnexpected } from "./isUnexpected.js"; +import { sleep } from "./util/LROUtil.js"; /** * Uploads a file and creates a poller to poll for validation. @@ -60,11 +60,7 @@ export async function getFileValidationPoller( switch (fileValidationResponse.body.validationStatus) { case "NOT_VALIDATED": { - if (fileValidationResponse.body.fileType === "JMX_FILE") { - state.status = "running"; - } else { - state.status = "succeeded"; - } + state.status = "succeeded"; break; } case "VALIDATION_INITIATED": { diff --git a/sdk/loadtesting/load-testing-rest/src/getTestRunCompletionPoller.ts b/sdk/loadtesting/load-testing-rest/src/getTestRunCompletionPoller.ts index 4d73be9c295b..025f126af320 100644 --- a/sdk/loadtesting/load-testing-rest/src/getTestRunCompletionPoller.ts +++ b/sdk/loadtesting/load-testing-rest/src/getTestRunCompletionPoller.ts @@ -4,15 +4,15 @@ import type { AbortSignalLike } from "@azure/abort-controller"; import { AbortError } from "@azure/abort-controller"; import type { CancelOnProgress, OperationState, SimplePollerLike } from "@azure/core-lro"; -import type { TestRunCompletionPoller, PolledOperationOptions } from "./models"; -import type { AzureLoadTestingClient } from "./clientDefinitions"; +import type { TestRunCompletionPoller, PolledOperationOptions } from "./models.js"; +import type { AzureLoadTestingClient } from "./clientDefinitions.js"; import type { TestRunCreateOrUpdate200Response, TestRunCreateOrUpdate201Response, TestRunGet200Response, -} from "./responses"; -import { isUnexpected } from "./isUnexpected"; -import { sleep, isTestRunInProgress } from "./util/LROUtil"; +} from "./responses.js"; +import { isUnexpected } from "./isUnexpected.js"; +import { sleep, isTestRunInProgress } from "./util/LROUtil.js"; /** * Creates a poller to poll for test run status. diff --git a/sdk/loadtesting/load-testing-rest/src/index.ts b/sdk/loadtesting/load-testing-rest/src/index.ts index e5f7eab868f6..66977aa711fe 100644 --- a/sdk/loadtesting/load-testing-rest/src/index.ts +++ b/sdk/loadtesting/load-testing-rest/src/index.ts @@ -1,15 +1,16 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import AzureLoadTesting from "./azureLoadTesting"; +import AzureLoadTesting from "./azureLoadTesting.js"; -export * from "./azureLoadTesting"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./paginateHelper"; -export { getLongRunningPoller } from "./pollingHelper"; +export * from "./azureLoadTesting.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./paginateHelper.js"; +export { getLongRunningPoller } from "./pollingHelper.js"; +// eslint-disable-next-line @azure/azure-sdk/ts-modules-only-named export default AzureLoadTesting; diff --git a/sdk/loadtesting/load-testing-rest/src/isUnexpected.ts b/sdk/loadtesting/load-testing-rest/src/isUnexpected.ts index 8bbf954f5b0a..b3b39454a3f7 100644 --- a/sdk/loadtesting/load-testing-rest/src/isUnexpected.ts +++ b/sdk/loadtesting/load-testing-rest/src/isUnexpected.ts @@ -60,7 +60,7 @@ import type { TestRunCreateOrUpdateServerMetricsConfigDefaultResponse, TestRunListServerMetricsConfig200Response, TestRunListServerMetricsConfigDefaultResponse, -} from "./responses"; +} from "./responses.js"; const responseMap: Record = { "PATCH /tests/{testId}": ["200", "201"], diff --git a/sdk/loadtesting/load-testing-rest/src/models.ts b/sdk/loadtesting/load-testing-rest/src/models.ts index f1efe3e7657a..67f736e71050 100644 --- a/sdk/loadtesting/load-testing-rest/src/models.ts +++ b/sdk/loadtesting/load-testing-rest/src/models.ts @@ -8,7 +8,7 @@ import type { TestRunCreateOrUpdate201Response, TestRunGet200Response, TestUploadFile201Response, -} from "./responses"; +} from "./responses.js"; /** Load test model */ export interface Test { diff --git a/sdk/loadtesting/load-testing-rest/src/parameters.ts b/sdk/loadtesting/load-testing-rest/src/parameters.ts index fd4508d1d30e..f07dfa92a7b6 100644 --- a/sdk/loadtesting/load-testing-rest/src/parameters.ts +++ b/sdk/loadtesting/load-testing-rest/src/parameters.ts @@ -10,7 +10,7 @@ import type { MetricRequestPayload, TestRunAppComponents, TestRunServerMetricConfig, -} from "./models"; +} from "./models.js"; export interface TestCreateOrUpdateBodyParam { /** Load test model */ diff --git a/sdk/loadtesting/load-testing-rest/src/pollingHelper.ts b/sdk/loadtesting/load-testing-rest/src/pollingHelper.ts index 6fe6bca4fc0f..eb01bcefc65b 100644 --- a/sdk/loadtesting/load-testing-rest/src/pollingHelper.ts +++ b/sdk/loadtesting/load-testing-rest/src/pollingHelper.ts @@ -1,15 +1,15 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { AzureLoadTestingClient } from "./clientDefinitions"; -import { getFileValidationPoller } from "./getFileValidationPoller"; -import { getTestRunCompletionPoller } from "./getTestRunCompletionPoller"; +import type { AzureLoadTestingClient } from "./clientDefinitions.js"; +import { getFileValidationPoller } from "./getFileValidationPoller.js"; +import { getTestRunCompletionPoller } from "./getTestRunCompletionPoller.js"; import type { FileUploadAndValidatePoller, TestUploadFileSuccessResponse, TestRunCompletionPoller, TestRunCreateOrUpdateSuccessResponse, -} from "./models"; +} from "./models.js"; export async function getLongRunningPoller( client: AzureLoadTestingClient, diff --git a/sdk/loadtesting/load-testing-rest/src/responses.ts b/sdk/loadtesting/load-testing-rest/src/responses.ts index 3fc01611f085..20ee95fc477b 100644 --- a/sdk/loadtesting/load-testing-rest/src/responses.ts +++ b/sdk/loadtesting/load-testing-rest/src/responses.ts @@ -19,7 +19,7 @@ import type { DimensionValueListOutput, TestRunAppComponentsOutput, TestRunServerMetricConfigOutput, -} from "./outputModels"; +} from "./outputModels.js"; /** Create a new test or update an existing test. */ export interface TestCreateOrUpdate200Response extends HttpResponse { diff --git a/sdk/loadtesting/load-testing-rest/src/util/LROUtil.ts b/sdk/loadtesting/load-testing-rest/src/util/LROUtil.ts index a800d12f9eb2..520d1c0112fe 100644 --- a/sdk/loadtesting/load-testing-rest/src/util/LROUtil.ts +++ b/sdk/loadtesting/load-testing-rest/src/util/LROUtil.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import type { AbortSignalLike } from "@azure/abort-controller"; import { AbortError } from "@azure/abort-controller"; -import type { TestRunOutput } from "../outputModels"; +import type { TestRunOutput } from "../outputModels.js"; const REJECTED_ERR = new AbortError("The polling was aborted."); diff --git a/sdk/loadtesting/load-testing-rest/test/public/testAdministration.spec.ts b/sdk/loadtesting/load-testing-rest/test/public/testAdministration.spec.ts index 316af8d0cdc9..d6a5c2b84a5a 100644 --- a/sdk/loadtesting/load-testing-rest/test/public/testAdministration.spec.ts +++ b/sdk/loadtesting/load-testing-rest/test/public/testAdministration.spec.ts @@ -1,16 +1,15 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { assert } from "chai"; -import { createClient, createRecorder } from "./utils/recordedClient"; -import type { Context } from "mocha"; -import type { AzureLoadTestingClient } from "../../src"; -import { isUnexpected } from "../../src"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; +import type { AzureLoadTestingClient } from "../../src/index.js"; +import { isUnexpected } from "../../src/index.js"; import type { Recorder } from "@azure-tools/test-recorder"; import { env, isPlaybackMode } from "@azure-tools/test-recorder"; -import * as fs from "fs"; +import * as fs from "node:fs"; import { isNodeLike } from "@azure/core-util"; -import { getLongRunningPoller } from "../../src/pollingHelper"; +import { getLongRunningPoller } from "../../src/pollingHelper.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; describe("Test Creation", () => { let recorder: Recorder; @@ -18,17 +17,17 @@ describe("Test Creation", () => { let readStreamTestFile: fs.ReadStream; let readStreamAdditionalFile: fs.ReadStream; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); if (!isNodeLike || isPlaybackMode()) { - this.skip(); + ctx.skip(); } client = createClient(recorder); readStreamTestFile = fs.createReadStream("./test/public/sample.jmx"); readStreamAdditionalFile = fs.createReadStream("./test/public/additional-data.csv"); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); diff --git a/sdk/loadtesting/load-testing-rest/test/public/testRun.spec.ts b/sdk/loadtesting/load-testing-rest/test/public/testRun.spec.ts index e4e845162582..ee1b697334f2 100644 --- a/sdk/loadtesting/load-testing-rest/test/public/testRun.spec.ts +++ b/sdk/loadtesting/load-testing-rest/test/public/testRun.spec.ts @@ -3,14 +3,13 @@ import type { Recorder } from "@azure-tools/test-recorder"; import { env, isPlaybackMode } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { createRecorder, createClient } from "./utils/recordedClient"; -import type { Context } from "mocha"; -import * as fs from "fs"; -import type { AzureLoadTestingClient } from "../../src"; -import { isUnexpected } from "../../src"; +import { createRecorder, createClient } from "./utils/recordedClient.js"; +import * as fs from "node:fs"; +import type { AzureLoadTestingClient } from "../../src/index.js"; +import { isUnexpected } from "../../src/index.js"; import { isNodeLike } from "@azure/core-util"; -import { getLongRunningPoller } from "../../src/pollingHelper"; +import { getLongRunningPoller } from "../../src/pollingHelper.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; describe("Test Run Creation", () => { let recorder: Recorder; @@ -18,16 +17,16 @@ describe("Test Run Creation", () => { const SUBSCRIPTION_ID = env["SUBSCRIPTION_ID"] || ""; let readStreamTestFile: fs.ReadStream; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); if (!isNodeLike || isPlaybackMode()) { - this.skip(); + ctx.skip(); } client = createClient(recorder); readStreamTestFile = fs.createReadStream("./test/public/sample.jmx"); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); diff --git a/sdk/loadtesting/load-testing-rest/test/public/utils/env.browser.ts b/sdk/loadtesting/load-testing-rest/test/public/utils/env-browser.mts similarity index 100% rename from sdk/loadtesting/load-testing-rest/test/public/utils/env.browser.ts rename to sdk/loadtesting/load-testing-rest/test/public/utils/env-browser.mts diff --git a/sdk/loadtesting/load-testing-rest/test/public/utils/recordedClient.ts b/sdk/loadtesting/load-testing-rest/test/public/utils/recordedClient.ts index 369a31dfb666..a936bc0f1ba6 100644 --- a/sdk/loadtesting/load-testing-rest/test/public/utils/recordedClient.ts +++ b/sdk/loadtesting/load-testing-rest/test/public/utils/recordedClient.ts @@ -1,12 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { AzureLoadTestingClient } from "../../../src"; -import AzureLoadTesting from "../../../src"; -import type { Context } from "mocha"; -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; -import { Recorder, env } from "@azure-tools/test-recorder"; -import "./env"; +import type { AzureLoadTestingClient } from "../../../src/index.js"; +import AzureLoadTesting from "../../../src/index.js"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; +import { Recorder, env } from "@azure-tools/test-recorder"; +import "./env.js"; import type { ClientOptions } from "@azure-rest/core-client"; import { createTestCredential } from "@azure-tools/test-credential"; @@ -40,8 +39,8 @@ export function createClient( * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); +export async function createRecorder(context: TestInfo): Promise { + const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; } diff --git a/sdk/loadtesting/load-testing-rest/tsconfig.browser.config.json b/sdk/loadtesting/load-testing-rest/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/loadtesting/load-testing-rest/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/loadtesting/load-testing-rest/tsconfig.json b/sdk/loadtesting/load-testing-rest/tsconfig.json index 513b0a33f593..75e93289e93b 100644 --- a/sdk/loadtesting/load-testing-rest/tsconfig.json +++ b/sdk/loadtesting/load-testing-rest/tsconfig.json @@ -1,11 +1,20 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", "paths": { "@azure-rest/load-testing": ["./src/index"] - } + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/loadtesting/load-testing-rest/vitest.browser.config.ts b/sdk/loadtesting/load-testing-rest/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/loadtesting/load-testing-rest/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/loadtesting/load-testing-rest/vitest.config.ts b/sdk/loadtesting/load-testing-rest/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/loadtesting/load-testing-rest/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/maps/maps-geolocation-rest/CHANGELOG.md b/sdk/maps/maps-geolocation-rest/CHANGELOG.md index 85a720b4323d..3965b7e45136 100644 --- a/sdk/maps/maps-geolocation-rest/CHANGELOG.md +++ b/sdk/maps/maps-geolocation-rest/CHANGELOG.md @@ -1,8 +1,6 @@ # Release History -## 1.0.0-beta.4 (Unreleased) - -### Features Added +## 1.0.0-beta.4 (2024-12-10) ### Breaking Changes @@ -12,8 +10,6 @@ - Fix the Microsoft Entra ID authentication when providing `baseUrl`. -### Other Changes - ## 1.0.0-beta.3 (2024-01-09) ### Features Added diff --git a/sdk/maps/maps-geolocation-rest/api-extractor.json b/sdk/maps/maps-geolocation-rest/api-extractor.json index 6c501e513d39..44f9eacb9557 100644 --- a/sdk/maps/maps-geolocation-rest/api-extractor.json +++ b/sdk/maps/maps-geolocation-rest/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "mainEntryPointFilePath": "dist/esm/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/maps-geolocation-rest.d.ts" + "publicTrimmedFilePath": "dist/maps-geolocation-rest.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } } diff --git a/sdk/maps/maps-geolocation-rest/generated/clientDefinitions.ts b/sdk/maps/maps-geolocation-rest/generated/clientDefinitions.ts deleted file mode 100644 index e95e57e86f55..000000000000 --- a/sdk/maps/maps-geolocation-rest/generated/clientDefinitions.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { GeolocationGetLocationParameters } from "./parameters"; -import { - GeolocationGetLocation200Response, - GeolocationGetLocationDefaultResponse, -} from "./responses"; -import { Client, StreamableMethod } from "@azure-rest/core-client"; - -export interface GetLocation { - /** - * - * The `Get IP To Location` API is an HTTP `GET` request that, given an IP address, returns the ISO country code from which that IP address is located. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from. - */ - get( - options: GeolocationGetLocationParameters, - ): StreamableMethod< - GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse - >; -} - -export interface Routes { - /** Resource for '/geolocation/ip/\{format\}' has methods for the following verbs: get */ - (path: "/geolocation/ip/{format}", format: "json"): GetLocation; -} - -export type MapsGeolocationClient = Client & { - path: Routes; -}; diff --git a/sdk/maps/maps-geolocation-rest/generated/index.ts b/sdk/maps/maps-geolocation-rest/generated/index.ts deleted file mode 100644 index f43ad067fa00..000000000000 --- a/sdk/maps/maps-geolocation-rest/generated/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import MapsGeolocationClient from "./mapsGeolocationClient"; - -export * from "./mapsGeolocationClient"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./outputModels"; - -export default MapsGeolocationClient; diff --git a/sdk/maps/maps-geolocation-rest/generated/isUnexpected.ts b/sdk/maps/maps-geolocation-rest/generated/isUnexpected.ts deleted file mode 100644 index 1b0e6578d1a0..000000000000 --- a/sdk/maps/maps-geolocation-rest/generated/isUnexpected.ts +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { - GeolocationGetLocation200Response, - GeolocationGetLocationDefaultResponse, -} from "./responses"; - -const responseMap: Record = { - "GET /geolocation/ip/{format}": ["200"], -}; - -export function isUnexpected( - response: - | GeolocationGetLocation200Response - | GeolocationGetLocationDefaultResponse, -): response is GeolocationGetLocationDefaultResponse; -export function isUnexpected( - response: - | GeolocationGetLocation200Response - | GeolocationGetLocationDefaultResponse, -): response is GeolocationGetLocationDefaultResponse { - const lroOriginal = response.headers["x-ms-original-url"]; - const url = new URL(lroOriginal ?? response.request.url); - const method = response.request.method; - let pathDetails = responseMap[`${method} ${url.pathname}`]; - if (!pathDetails) { - pathDetails = getParametrizedPathSuccess(method, url.pathname); - } - return !pathDetails.includes(response.status); -} - -function getParametrizedPathSuccess(method: string, path: string): string[] { - const pathParts = path.split("/"); - - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, - matchedValue: string[] = []; - - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(responseMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - - // track if we have found a match to return the values found. - let found = true; - for ( - let i = candidateParts.length - 1, j = pathParts.length - 1; - i >= 1 && j >= 1; - i--, j-- - ) { - if ( - candidateParts[i]?.startsWith("{") && - candidateParts[i]?.indexOf("}") !== -1 - ) { - const start = candidateParts[i]!.indexOf("}") + 1, - end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp( - `${candidateParts[i]?.slice(start, end)}`, - ).test(pathParts[j] || ""); - - if (!isMatched) { - found = false; - break; - } - continue; - } - - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value; - } - } - - return matchedValue; -} - -function getPathFromMapKey(mapKey: string): string { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} diff --git a/sdk/maps/maps-geolocation-rest/generated/responses.ts b/sdk/maps/maps-geolocation-rest/generated/responses.ts deleted file mode 100644 index 74ca486501af..000000000000 --- a/sdk/maps/maps-geolocation-rest/generated/responses.ts +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { HttpResponse } from "@azure-rest/core-client"; -import { - IpAddressToLocationResultOutput, - ErrorResponseOutput, -} from "./outputModels"; - -/** - * - * The `Get IP To Location` API is an HTTP `GET` request that, given an IP address, returns the ISO country code from which that IP address is located. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from. - */ -export interface GeolocationGetLocation200Response extends HttpResponse { - status: "200"; - body: IpAddressToLocationResultOutput; -} - -/** - * - * The `Get IP To Location` API is an HTTP `GET` request that, given an IP address, returns the ISO country code from which that IP address is located. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from. - */ -export interface GeolocationGetLocationDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} diff --git a/sdk/maps/maps-geolocation-rest/karma.conf.js b/sdk/maps/maps-geolocation-rest/karma.conf.js deleted file mode 100644 index 8793e336491d..000000000000 --- a/sdk/maps/maps-geolocation-rest/karma.conf.js +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: ["TEST_MODE", "MAPS_RESOURCE_CLIENT_ID", "RECORDINGS_RELATIVE_PATH"], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/maps/maps-geolocation-rest/package.json b/sdk/maps/maps-geolocation-rest/package.json index fe07781f5934..0809d727d370 100644 --- a/sdk/maps/maps-geolocation-rest/package.json +++ b/sdk/maps/maps-geolocation-rest/package.json @@ -13,31 +13,25 @@ "isomorphic" ], "license": "MIT", - "main": "dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/maps-geolocation-rest.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/", - "dist-esm/src/", - "types/maps-geolocation-rest.d.ts", "README.md", - "LICENSE", - "review/*" + "LICENSE" ], "engines": { "node": ">=18.0.0" }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run bundle --browser-test false", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", "build:samples": "dev-tool samples publish --force", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "echo skipped", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", @@ -45,8 +39,8 @@ "format": "dev-tool run vendored 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": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -54,50 +48,37 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure-rest/core-client": "^2.3.1", + "@azure/core-auth": "^1.9.0", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/logger": "^1.1.4", "@azure/maps-common": "1.0.0-beta.2", - "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-utils": "~1.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/core-util": "^1.9.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "autorest": "latest", - "chai": "^4.2.0", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.49.0", + "typescript": "~5.6.2", + "vitest": "^2.1.5" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/maps-geolocation-rest/README.md", "//metadata": { @@ -108,9 +89,7 @@ } ] }, - "browser": { - "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" - }, + "browser": "./dist/browser/index.js", "//sampleConfiguration": { "productName": "MapsGeolocationClient", "productSlugs": [ @@ -121,5 +100,42 @@ "Azure Maps Resource": "https://docs.microsoft.com/azure/azure-maps/how-to-create-template" }, "disableDocsMs": true + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/maps/maps-geolocation-rest/samples-dev/getCountryCodeFromIP.ts b/sdk/maps/maps-geolocation-rest/samples-dev/getCountryCodeFromIP.ts index b305fe202163..a8fce26cee27 100644 --- a/sdk/maps/maps-geolocation-rest/samples-dev/getCountryCodeFromIP.ts +++ b/sdk/maps/maps-geolocation-rest/samples-dev/getCountryCodeFromIP.ts @@ -3,9 +3,7 @@ import MapsGeolocation, { isUnexpected } from "@azure-rest/maps-geolocation"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * @summary This sample demonstrates how to get the country code for an IP address using MapsGeolocation. diff --git a/sdk/maps/maps-geolocation-rest/src/MapsGeolocation.ts b/sdk/maps/maps-geolocation-rest/src/MapsGeolocation.ts index 16d7a040d7c8..c396077bce56 100644 --- a/sdk/maps/maps-geolocation-rest/src/MapsGeolocation.ts +++ b/sdk/maps/maps-geolocation-rest/src/MapsGeolocation.ts @@ -5,8 +5,8 @@ import type { ClientOptions } from "@azure-rest/core-client"; import type { AzureKeyCredential, AzureSASCredential, TokenCredential } from "@azure/core-auth"; import { isSASCredential, isTokenCredential } from "@azure/core-auth"; import { createMapsClientIdPolicy } from "@azure/maps-common"; -import type { MapsGeolocationClient } from "../generated"; -import createClient from "../generated"; +import type { MapsGeolocationClient } from "./generated/index.js"; +import createClient from "./generated/index.js"; import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; /** diff --git a/sdk/maps/maps-geolocation-rest/src/generated/clientDefinitions.ts b/sdk/maps/maps-geolocation-rest/src/generated/clientDefinitions.ts new file mode 100644 index 000000000000..10bab94ed0dd --- /dev/null +++ b/sdk/maps/maps-geolocation-rest/src/generated/clientDefinitions.ts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { GeolocationGetLocationParameters } from "./parameters.js"; +import { + GeolocationGetLocation200Response, + GeolocationGetLocationDefaultResponse, +} from "./responses.js"; +import { Client, StreamableMethod } from "@azure-rest/core-client"; + +export interface GetLocation { + /** + * + * The `Get IP To Location` API is an HTTP `GET` request that, given an IP address, returns the ISO country code from which that IP address is located. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from. + */ + get( + options: GeolocationGetLocationParameters, + ): StreamableMethod< + GeolocationGetLocation200Response | GeolocationGetLocationDefaultResponse + >; +} + +export interface Routes { + /** Resource for '/geolocation/ip/\{format\}' has methods for the following verbs: get */ + (path: "/geolocation/ip/{format}", format: "json"): GetLocation; +} + +export type MapsGeolocationClient = Client & { + path: Routes; +}; diff --git a/sdk/maps/maps-geolocation-rest/src/generated/index.ts b/sdk/maps/maps-geolocation-rest/src/generated/index.ts new file mode 100644 index 000000000000..abf7899c84f2 --- /dev/null +++ b/sdk/maps/maps-geolocation-rest/src/generated/index.ts @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import MapsGeolocationClient from "./mapsGeolocationClient.js"; + +export * from "./mapsGeolocationClient.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./outputModels.js"; + +export default MapsGeolocationClient; diff --git a/sdk/maps/maps-geolocation-rest/src/generated/isUnexpected.ts b/sdk/maps/maps-geolocation-rest/src/generated/isUnexpected.ts new file mode 100644 index 000000000000..91e8eeaf0a5f --- /dev/null +++ b/sdk/maps/maps-geolocation-rest/src/generated/isUnexpected.ts @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + GeolocationGetLocation200Response, + GeolocationGetLocationDefaultResponse, +} from "./responses.js"; + +const responseMap: Record = { + "GET /geolocation/ip/{format}": ["200"], +}; + +export function isUnexpected( + response: + | GeolocationGetLocation200Response + | GeolocationGetLocationDefaultResponse, +): response is GeolocationGetLocationDefaultResponse; +export function isUnexpected( + response: + | GeolocationGetLocation200Response + | GeolocationGetLocationDefaultResponse, +): response is GeolocationGetLocationDefaultResponse { + const lroOriginal = response.headers["x-ms-original-url"]; + const url = new URL(lroOriginal ?? response.request.url); + const method = response.request.method; + let pathDetails = responseMap[`${method} ${url.pathname}`]; + if (!pathDetails) { + pathDetails = getParametrizedPathSuccess(method, url.pathname); + } + return !pathDetails.includes(response.status); +} + +function getParametrizedPathSuccess(method: string, path: string): string[] { + const pathParts = path.split("/"); + + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, + matchedValue: string[] = []; + + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(responseMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + + // track if we have found a match to return the values found. + let found = true; + for ( + let i = candidateParts.length - 1, j = pathParts.length - 1; + i >= 1 && j >= 1; + i--, j-- + ) { + if ( + candidateParts[i]?.startsWith("{") && + candidateParts[i]?.indexOf("}") !== -1 + ) { + const start = candidateParts[i]!.indexOf("}") + 1, + end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp( + `${candidateParts[i]?.slice(start, end)}`, + ).test(pathParts[j] || ""); + + if (!isMatched) { + found = false; + break; + } + continue; + } + + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + + return matchedValue; +} + +function getPathFromMapKey(mapKey: string): string { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} diff --git a/sdk/maps/maps-geolocation-rest/generated/logger.ts b/sdk/maps/maps-geolocation-rest/src/generated/logger.ts similarity index 100% rename from sdk/maps/maps-geolocation-rest/generated/logger.ts rename to sdk/maps/maps-geolocation-rest/src/generated/logger.ts diff --git a/sdk/maps/maps-geolocation-rest/generated/mapsGeolocationClient.ts b/sdk/maps/maps-geolocation-rest/src/generated/mapsGeolocationClient.ts similarity index 95% rename from sdk/maps/maps-geolocation-rest/generated/mapsGeolocationClient.ts rename to sdk/maps/maps-geolocation-rest/src/generated/mapsGeolocationClient.ts index f3332c57a116..2c98606ad5fc 100644 --- a/sdk/maps/maps-geolocation-rest/generated/mapsGeolocationClient.ts +++ b/sdk/maps/maps-geolocation-rest/src/generated/mapsGeolocationClient.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "./logger"; +import { logger } from "./logger.js"; import { KeyCredential } from "@azure/core-auth"; -import { MapsGeolocationClient } from "./clientDefinitions"; +import { MapsGeolocationClient } from "./clientDefinitions.js"; /** The optional parameters for the client */ export interface MapsGeolocationClientOptions extends ClientOptions { diff --git a/sdk/maps/maps-geolocation-rest/generated/outputModels.ts b/sdk/maps/maps-geolocation-rest/src/generated/outputModels.ts similarity index 100% rename from sdk/maps/maps-geolocation-rest/generated/outputModels.ts rename to sdk/maps/maps-geolocation-rest/src/generated/outputModels.ts diff --git a/sdk/maps/maps-geolocation-rest/generated/parameters.ts b/sdk/maps/maps-geolocation-rest/src/generated/parameters.ts similarity index 100% rename from sdk/maps/maps-geolocation-rest/generated/parameters.ts rename to sdk/maps/maps-geolocation-rest/src/generated/parameters.ts diff --git a/sdk/maps/maps-geolocation-rest/src/generated/responses.ts b/sdk/maps/maps-geolocation-rest/src/generated/responses.ts new file mode 100644 index 000000000000..6d51d10ba9cd --- /dev/null +++ b/sdk/maps/maps-geolocation-rest/src/generated/responses.ts @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { HttpResponse } from "@azure-rest/core-client"; +import { + IpAddressToLocationResultOutput, + ErrorResponseOutput, +} from "./outputModels.js"; + +/** + * + * The `Get IP To Location` API is an HTTP `GET` request that, given an IP address, returns the ISO country code from which that IP address is located. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from. + */ +export interface GeolocationGetLocation200Response extends HttpResponse { + status: "200"; + body: IpAddressToLocationResultOutput; +} + +/** + * + * The `Get IP To Location` API is an HTTP `GET` request that, given an IP address, returns the ISO country code from which that IP address is located. Developers can use this information to block or alter certain content based on geographical locations where the application is being viewed from. + */ +export interface GeolocationGetLocationDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} diff --git a/sdk/maps/maps-geolocation-rest/src/index.ts b/sdk/maps/maps-geolocation-rest/src/index.ts index ffddb554ecf2..5d55a1ae90ff 100644 --- a/sdk/maps/maps-geolocation-rest/src/index.ts +++ b/sdk/maps/maps-geolocation-rest/src/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import MapsGeolocation from "./MapsGeolocation"; +import MapsGeolocation from "./MapsGeolocation.js"; -export * from "../generated"; +export * from "./generated/index.js"; export default MapsGeolocation; diff --git a/sdk/maps/maps-geolocation-rest/swagger/README.md b/sdk/maps/maps-geolocation-rest/swagger/README.md index 7e42ffc835e1..1ae8784c6e28 100644 --- a/sdk/maps/maps-geolocation-rest/swagger/README.md +++ b/sdk/maps/maps-geolocation-rest/swagger/README.md @@ -25,7 +25,7 @@ generate-test: false generate-sample: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ -source-code-folder-path: ./generated +source-code-folder-path: ./src/generated input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/maps/data-plane/Geolocation/preview/1.0/geolocation.json package-version: 1.0.0-beta.4 rest-level-client: true diff --git a/sdk/maps/maps-geolocation-rest/test/public/MapsGeolocation.spec.ts b/sdk/maps/maps-geolocation-rest/test/public/MapsGeolocation.spec.ts index 8037b5bbb8f9..0b059fad60f8 100644 --- a/sdk/maps/maps-geolocation-rest/test/public/MapsGeolocation.spec.ts +++ b/sdk/maps/maps-geolocation-rest/test/public/MapsGeolocation.spec.ts @@ -5,29 +5,27 @@ import type { Recorder } from "@azure-tools/test-recorder"; import { env } from "@azure-tools/test-recorder"; import { isNodeLike } from "@azure/core-util"; import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { createClient, createRecorder } from "./utils/recordedClient"; -import type { Context } from "mocha"; -import type { MapsGeolocationClient } from "../../src"; -import MapsGeolocation, { isUnexpected } from "../../src"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; +import type { MapsGeolocationClient } from "../../src/index.js"; +import MapsGeolocation, { isUnexpected } from "../../src/index.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("Authentication", function () { +describe("Authentication", () => { let recorder: Recorder; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should work with Microsoft Entra ID authentication", async function () { - /** - * Skip this test in browser because we have to use InteractiveBrowserCredential in the browser. - * But it requires user's interaction, which is not testable in karma. - * */ - if (!isNodeLike) this.skip(); + /** + * Skip this test in browser because we have to use InteractiveBrowserCredential in the browser. + * But it requires user's interaction, which is not testable in karma. + * */ + it("should work with Microsoft Entra ID authentication", { skip: !isNodeLike }, async () => { /** * Use createTestCredential() instead of new DefaultAzureCredential(), else the playback mode won't work * Reference: https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/test-quickstart.md#azuread-oauth2-authentication @@ -46,18 +44,18 @@ describe("Authentication", function () { }); }); -describe("Endpoint can be overwritten", function () { +describe("Endpoint can be overwritten", () => { let recorder: Recorder; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should be executed without specifying baseUrl", async function () { + it("should be executed without specifying baseUrl", async () => { const client = createClient(recorder.configureClientOptions({})); const response = await client .path("/geolocation/ip/{format}", "json") @@ -66,7 +64,7 @@ describe("Endpoint can be overwritten", function () { assert.isOk(!isUnexpected(response)); }); - it("should be executed with different baseUrl", async function () { + it("should be executed with different baseUrl", async () => { const client = createClient( recorder.configureClientOptions({ baseUrl: "https://us.atlas.microsoft.com/" }), ); @@ -82,16 +80,16 @@ describe("MapsGeolocation", () => { let recorder: Recorder; let client: MapsGeolocationClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("can transform IP to location", async function () { + it("can transform IP to location", async () => { const response = await client .path("/geolocation/ip/{format}", "json") .get({ queryParameters: { ip: "2001:4898:80e8:b::189" } }); diff --git a/sdk/maps/maps-geolocation-rest/test/public/utils/env.browser.ts b/sdk/maps/maps-geolocation-rest/test/public/utils/env-browser.mts similarity index 100% rename from sdk/maps/maps-geolocation-rest/test/public/utils/env.browser.ts rename to sdk/maps/maps-geolocation-rest/test/public/utils/env-browser.mts diff --git a/sdk/maps/maps-geolocation-rest/test/public/utils/recordedClient.ts b/sdk/maps/maps-geolocation-rest/test/public/utils/recordedClient.ts index cdb1e8c13fd0..c7623b317b35 100644 --- a/sdk/maps/maps-geolocation-rest/test/public/utils/recordedClient.ts +++ b/sdk/maps/maps-geolocation-rest/test/public/utils/recordedClient.ts @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Context } from "mocha"; -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, env } from "@azure-tools/test-recorder"; -import "./env"; +import "./env.js"; import type { ClientOptions } from "@azure-rest/core-client"; -import type { MapsGeolocationClient } from "../../../src/"; -import MapsGeolocation from "../../../src/"; +import type { MapsGeolocationClient } from "../../../src/index.js"; +import MapsGeolocation from "../../../src/index.js"; import { createTestCredential } from "@azure-tools/test-credential"; const envSetupForPlayback: Record = { @@ -23,8 +22,8 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); +export async function createRecorder(context: TestInfo): Promise { + const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; } diff --git a/sdk/maps/maps-geolocation-rest/tsconfig.browser.config.json b/sdk/maps/maps-geolocation-rest/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/maps/maps-geolocation-rest/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/maps/maps-geolocation-rest/tsconfig.json b/sdk/maps/maps-geolocation-rest/tsconfig.json index 87aac4f9a24d..7d3a699ab5bb 100644 --- a/sdk/maps/maps-geolocation-rest/tsconfig.json +++ b/sdk/maps/maps-geolocation-rest/tsconfig.json @@ -1,9 +1,20 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", - "paths": { "@azure-rest/maps-geolocation": ["./src/index"] } + "paths": { + "@azure-rest/maps-geolocation": ["./src/index"] + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/maps/maps-geolocation-rest/vitest.browser.config.ts b/sdk/maps/maps-geolocation-rest/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/maps/maps-geolocation-rest/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/maps/maps-geolocation-rest/vitest.config.ts b/sdk/maps/maps-geolocation-rest/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/maps/maps-geolocation-rest/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/maps/maps-render-rest/CHANGELOG.md b/sdk/maps/maps-render-rest/CHANGELOG.md index 127eb1ad8cdd..69a34421b37f 100644 --- a/sdk/maps/maps-render-rest/CHANGELOG.md +++ b/sdk/maps/maps-render-rest/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 2.0.0-beta.1 (Unreleased) +## 2.0.0-beta.1 (2024-12-10) ### Features Added @@ -14,19 +14,8 @@ ### Bugs Fixed -### Other Changes - -## 1.0.0-beta.4 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - - Fix the Microsoft Entra ID authentication when providing `baseUrl`. -### Other Changes ## 1.0.0-beta.3 (2024-01-09) diff --git a/sdk/maps/maps-render-rest/api-extractor.json b/sdk/maps/maps-render-rest/api-extractor.json index 55029990e9b4..743b708dfe75 100644 --- a/sdk/maps/maps-render-rest/api-extractor.json +++ b/sdk/maps/maps-render-rest/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "mainEntryPointFilePath": "dist/esm/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/maps-render-rest.d.ts" + "publicTrimmedFilePath": "dist/maps-render-rest.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } } diff --git a/sdk/maps/maps-render-rest/generated/clientDefinitions.ts b/sdk/maps/maps-render-rest/generated/clientDefinitions.ts deleted file mode 100644 index b30d34a59ec4..000000000000 --- a/sdk/maps/maps-render-rest/generated/clientDefinitions.ts +++ /dev/null @@ -1,225 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { - RenderGetMapTileParameters, - RenderGetMapTilesetParameters, - RenderGetMapAttributionParameters, - RenderGetMapStateTileParameters, - RenderGetCopyrightCaptionParameters, - RenderGetMapStaticImageParameters, - RenderGetCopyrightFromBoundingBoxParameters, - RenderGetCopyrightForTileParameters, - RenderGetCopyrightForWorldParameters, -} from "./parameters"; -import { - RenderGetMapTile200Response, - RenderGetMapTileDefaultResponse, - RenderGetMapTileset200Response, - RenderGetMapTilesetDefaultResponse, - RenderGetMapAttribution200Response, - RenderGetMapAttributionDefaultResponse, - RenderGetMapStateTile200Response, - RenderGetMapStateTileDefaultResponse, - RenderGetCopyrightCaption200Response, - RenderGetCopyrightCaptionDefaultResponse, - RenderGetMapStaticImage200Response, - RenderGetMapStaticImageDefaultResponse, - RenderGetCopyrightFromBoundingBox200Response, - RenderGetCopyrightFromBoundingBoxDefaultResponse, - RenderGetCopyrightForTile200Response, - RenderGetCopyrightForTileDefaultResponse, - RenderGetCopyrightForWorld200Response, - RenderGetCopyrightForWorldDefaultResponse, -} from "./responses"; -import { Client, StreamableMethod } from "@azure-rest/core-client"; - -export interface GetMapTile { - /** - * - * The `Get Map Tiles` API in an HTTP GET request that allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control ([Web SDK](/azure/azure-maps/about-azure-maps#web-sdk)) and [Android SDK](/azure/azure-maps/about-azure-maps#android-sdk). - */ - get( - options: RenderGetMapTileParameters, - ): StreamableMethod< - RenderGetMapTile200Response | RenderGetMapTileDefaultResponse - >; -} - -export interface GetMapTileset { - /** - * - * The Get Map Tileset API allows users to request metadata for a tileset. - */ - get( - options: RenderGetMapTilesetParameters, - ): StreamableMethod< - RenderGetMapTileset200Response | RenderGetMapTilesetDefaultResponse - >; -} - -export interface GetMapAttribution { - /** - * - * The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset. - */ - get( - options: RenderGetMapAttributionParameters, - ): StreamableMethod< - RenderGetMapAttribution200Response | RenderGetMapAttributionDefaultResponse - >; -} - -export interface GetMapStateTile { - /** - * - * Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling. For more information, see [Zoom Levels and Tile Grid](/azure/location-based-services/zoom-levels-and-tile-grid). - */ - get( - options: RenderGetMapStateTileParameters, - ): StreamableMethod< - RenderGetMapStateTile200Response | RenderGetMapStateTileDefaultResponse - >; -} - -export interface GetCopyrightCaption { - /** - * - * The `Get Copyright Caption` API is an HTTP GET request designed to serve copyright information to be used with tiles requested from the Render service. In addition to a basic copyright for the whole map, it can serve specific groups of copyrights for some countries/regions. - * - * As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map. - */ - get( - options?: RenderGetCopyrightCaptionParameters, - ): StreamableMethod< - | RenderGetCopyrightCaption200Response - | RenderGetCopyrightCaptionDefaultResponse - >; -} - -export interface GetMapStaticImage { - /** - * This rendering API produces static, rasterized map views of a user-defined area. It's suitable for lightweight web applications, when the desired user experience doesn't require interactive map controls, or when bandwidth is limited. This API is also useful for embedding maps in applications outside of the browser, in backend services, report generation, or desktop applications. - * - * This API includes parameters for basic data visualization: - * - * - Labeled pushpins in multiple styles. - * - Render circle, path, and polygon geometry types. - * - * For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data). - *

- * The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail. - *

- * - * |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range| - * |:----------|:----------------|:----------------|:----------------|:-------------| - * |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 | - * |1 | 28.125 | 360.0 | 14.87468995 | 180.0 | - * |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 | - * |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 | - * |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 | - * |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 | - * |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 | - * |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 | - * |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 | - * |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 | - * |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 | - * |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 | - * |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 | - * |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 | - * |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 | - * |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 | - * |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 | - * |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 | - * |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 | - * |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 | - * |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 | - * - * _Note_ : Either **center** or **bbox** parameter must be supplied to the API. - */ - get( - options?: RenderGetMapStaticImageParameters, - ): StreamableMethod< - RenderGetMapStaticImage200Response | RenderGetMapStaticImageDefaultResponse - >; -} - -export interface GetCopyrightFromBoundingBox { - /** - * - * Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates - */ - get( - options: RenderGetCopyrightFromBoundingBoxParameters, - ): StreamableMethod< - | RenderGetCopyrightFromBoundingBox200Response - | RenderGetCopyrightFromBoundingBoxDefaultResponse - >; -} - -export interface GetCopyrightForTile { - /** - * - * To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates. For more information, see [Zoom Levels and Tile Grid](/azure/azure-maps/zoom-levels-and-tile-grid). - * - * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions. - */ - get( - options: RenderGetCopyrightForTileParameters, - ): StreamableMethod< - | RenderGetCopyrightForTile200Response - | RenderGetCopyrightForTileDefaultResponse - >; -} - -export interface GetCopyrightForWorld { - /** - * - * Returns the copyright information for the world. To obtain the default copyright information for the whole world, don't specify a tile or bounding box. - * - * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions. - */ - get( - options?: RenderGetCopyrightForWorldParameters, - ): StreamableMethod< - | RenderGetCopyrightForWorld200Response - | RenderGetCopyrightForWorldDefaultResponse - >; -} - -export interface Routes { - /** Resource for '/map/tile' has methods for the following verbs: get */ - (path: "/map/tile"): GetMapTile; - /** Resource for '/map/tileset' has methods for the following verbs: get */ - (path: "/map/tileset"): GetMapTileset; - /** Resource for '/map/attribution' has methods for the following verbs: get */ - (path: "/map/attribution"): GetMapAttribution; - /** Resource for '/map/statetile' has methods for the following verbs: get */ - (path: "/map/statetile"): GetMapStateTile; - /** Resource for '/map/copyright/caption/\{format\}' has methods for the following verbs: get */ - ( - path: "/map/copyright/caption/{format}", - format: "json" | "xml", - ): GetCopyrightCaption; - /** Resource for '/map/static' has methods for the following verbs: get */ - (path: "/map/static"): GetMapStaticImage; - /** Resource for '/map/copyright/bounding/\{format\}' has methods for the following verbs: get */ - ( - path: "/map/copyright/bounding/{format}", - format: "json" | "xml", - ): GetCopyrightFromBoundingBox; - /** Resource for '/map/copyright/tile/\{format\}' has methods for the following verbs: get */ - ( - path: "/map/copyright/tile/{format}", - format: "json" | "xml", - ): GetCopyrightForTile; - /** Resource for '/map/copyright/world/\{format\}' has methods for the following verbs: get */ - ( - path: "/map/copyright/world/{format}", - format: "json" | "xml", - ): GetCopyrightForWorld; -} - -export type MapsRenderClient = Client & { - path: Routes; -}; diff --git a/sdk/maps/maps-render-rest/generated/index.ts b/sdk/maps/maps-render-rest/generated/index.ts deleted file mode 100644 index 3e6219acc76b..000000000000 --- a/sdk/maps/maps-render-rest/generated/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import MapsRenderClient from "./mapsRenderClient"; - -export * from "./mapsRenderClient"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./outputModels"; - -export default MapsRenderClient; diff --git a/sdk/maps/maps-render-rest/generated/isUnexpected.ts b/sdk/maps/maps-render-rest/generated/isUnexpected.ts deleted file mode 100644 index 5ecfe547c008..000000000000 --- a/sdk/maps/maps-render-rest/generated/isUnexpected.ts +++ /dev/null @@ -1,189 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { - RenderGetMapTile200Response, - RenderGetMapTileDefaultResponse, - RenderGetMapTileset200Response, - RenderGetMapTilesetDefaultResponse, - RenderGetMapAttribution200Response, - RenderGetMapAttributionDefaultResponse, - RenderGetMapStateTile200Response, - RenderGetMapStateTileDefaultResponse, - RenderGetCopyrightCaption200Response, - RenderGetCopyrightCaptionDefaultResponse, - RenderGetMapStaticImage200Response, - RenderGetMapStaticImageDefaultResponse, - RenderGetCopyrightFromBoundingBox200Response, - RenderGetCopyrightFromBoundingBoxDefaultResponse, - RenderGetCopyrightForTile200Response, - RenderGetCopyrightForTileDefaultResponse, - RenderGetCopyrightForWorld200Response, - RenderGetCopyrightForWorldDefaultResponse, -} from "./responses"; - -const responseMap: Record = { - "GET /map/tile": ["200"], - "GET /map/tileset": ["200"], - "GET /map/attribution": ["200"], - "GET /map/statetile": ["200"], - "GET /map/copyright/caption/{format}": ["200"], - "GET /map/static": ["200"], - "GET /map/copyright/bounding/{format}": ["200"], - "GET /map/copyright/tile/{format}": ["200"], - "GET /map/copyright/world/{format}": ["200"], -}; - -export function isUnexpected( - response: RenderGetMapTile200Response | RenderGetMapTileDefaultResponse, -): response is RenderGetMapTileDefaultResponse; -export function isUnexpected( - response: RenderGetMapTileset200Response | RenderGetMapTilesetDefaultResponse, -): response is RenderGetMapTilesetDefaultResponse; -export function isUnexpected( - response: - | RenderGetMapAttribution200Response - | RenderGetMapAttributionDefaultResponse, -): response is RenderGetMapAttributionDefaultResponse; -export function isUnexpected( - response: - | RenderGetMapStateTile200Response - | RenderGetMapStateTileDefaultResponse, -): response is RenderGetMapStateTileDefaultResponse; -export function isUnexpected( - response: - | RenderGetCopyrightCaption200Response - | RenderGetCopyrightCaptionDefaultResponse, -): response is RenderGetCopyrightCaptionDefaultResponse; -export function isUnexpected( - response: - | RenderGetMapStaticImage200Response - | RenderGetMapStaticImageDefaultResponse, -): response is RenderGetMapStaticImageDefaultResponse; -export function isUnexpected( - response: - | RenderGetCopyrightFromBoundingBox200Response - | RenderGetCopyrightFromBoundingBoxDefaultResponse, -): response is RenderGetCopyrightFromBoundingBoxDefaultResponse; -export function isUnexpected( - response: - | RenderGetCopyrightForTile200Response - | RenderGetCopyrightForTileDefaultResponse, -): response is RenderGetCopyrightForTileDefaultResponse; -export function isUnexpected( - response: - | RenderGetCopyrightForWorld200Response - | RenderGetCopyrightForWorldDefaultResponse, -): response is RenderGetCopyrightForWorldDefaultResponse; -export function isUnexpected( - response: - | RenderGetMapTile200Response - | RenderGetMapTileDefaultResponse - | RenderGetMapTileset200Response - | RenderGetMapTilesetDefaultResponse - | RenderGetMapAttribution200Response - | RenderGetMapAttributionDefaultResponse - | RenderGetMapStateTile200Response - | RenderGetMapStateTileDefaultResponse - | RenderGetCopyrightCaption200Response - | RenderGetCopyrightCaptionDefaultResponse - | RenderGetMapStaticImage200Response - | RenderGetMapStaticImageDefaultResponse - | RenderGetCopyrightFromBoundingBox200Response - | RenderGetCopyrightFromBoundingBoxDefaultResponse - | RenderGetCopyrightForTile200Response - | RenderGetCopyrightForTileDefaultResponse - | RenderGetCopyrightForWorld200Response - | RenderGetCopyrightForWorldDefaultResponse, -): response is - | RenderGetMapTileDefaultResponse - | RenderGetMapTilesetDefaultResponse - | RenderGetMapAttributionDefaultResponse - | RenderGetMapStateTileDefaultResponse - | RenderGetCopyrightCaptionDefaultResponse - | RenderGetMapStaticImageDefaultResponse - | RenderGetCopyrightFromBoundingBoxDefaultResponse - | RenderGetCopyrightForTileDefaultResponse - | RenderGetCopyrightForWorldDefaultResponse { - const lroOriginal = response.headers["x-ms-original-url"]; - const url = new URL(lroOriginal ?? response.request.url); - const method = response.request.method; - let pathDetails = responseMap[`${method} ${url.pathname}`]; - if (!pathDetails) { - pathDetails = getParametrizedPathSuccess(method, url.pathname); - } - return !pathDetails.includes(response.status); -} - -function getParametrizedPathSuccess(method: string, path: string): string[] { - const pathParts = path.split("/"); - - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, - matchedValue: string[] = []; - - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(responseMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - - // track if we have found a match to return the values found. - let found = true; - for ( - let i = candidateParts.length - 1, j = pathParts.length - 1; - i >= 1 && j >= 1; - i--, j-- - ) { - if ( - candidateParts[i]?.startsWith("{") && - candidateParts[i]?.indexOf("}") !== -1 - ) { - const start = candidateParts[i]!.indexOf("}") + 1, - end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp( - `${candidateParts[i]?.slice(start, end)}`, - ).test(pathParts[j] || ""); - - if (!isMatched) { - found = false; - break; - } - continue; - } - - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value; - } - } - - return matchedValue; -} - -function getPathFromMapKey(mapKey: string): string { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} diff --git a/sdk/maps/maps-render-rest/generated/responses.ts b/sdk/maps/maps-render-rest/generated/responses.ts deleted file mode 100644 index 10325414ade7..000000000000 --- a/sdk/maps/maps-render-rest/generated/responses.ts +++ /dev/null @@ -1,280 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { RawHttpHeaders } from "@azure/core-rest-pipeline"; -import { HttpResponse } from "@azure-rest/core-client"; -import { - ErrorResponseOutput, - MapTilesetOutput, - MapAttributionOutput, - CopyrightCaptionOutput, - CopyrightOutput, -} from "./outputModels"; - -export interface RenderGetMapTile200Headers { - /** The content-type for the response. */ - "content-type"?: string; -} - -/** - * - * The `Get Map Tiles` API in an HTTP GET request that allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control ([Web SDK](/azure/azure-maps/about-azure-maps#web-sdk)) and [Android SDK](/azure/azure-maps/about-azure-maps#android-sdk). - */ -export interface RenderGetMapTile200Response extends HttpResponse { - status: "200"; - /** Value may contain any sequence of octets */ - body: Uint8Array; - headers: RawHttpHeaders & RenderGetMapTile200Headers; -} - -/** - * - * The `Get Map Tiles` API in an HTTP GET request that allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control ([Web SDK](/azure/azure-maps/about-azure-maps#web-sdk)) and [Android SDK](/azure/azure-maps/about-azure-maps#android-sdk). - */ -export interface RenderGetMapTileDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** - * - * The Get Map Tileset API allows users to request metadata for a tileset. - */ -export interface RenderGetMapTileset200Response extends HttpResponse { - status: "200"; - body: MapTilesetOutput; -} - -/** - * - * The Get Map Tileset API allows users to request metadata for a tileset. - */ -export interface RenderGetMapTilesetDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** - * - * The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset. - */ -export interface RenderGetMapAttribution200Response extends HttpResponse { - status: "200"; - body: MapAttributionOutput; -} - -/** - * - * The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset. - */ -export interface RenderGetMapAttributionDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -export interface RenderGetMapStateTile200Headers { - /** The content-type for the response. */ - "content-type"?: string; -} - -/** - * - * Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling. For more information, see [Zoom Levels and Tile Grid](/azure/location-based-services/zoom-levels-and-tile-grid). - */ -export interface RenderGetMapStateTile200Response extends HttpResponse { - status: "200"; - /** Value may contain any sequence of octets */ - body: Uint8Array; - headers: RawHttpHeaders & RenderGetMapStateTile200Headers; -} - -/** - * - * Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling. For more information, see [Zoom Levels and Tile Grid](/azure/location-based-services/zoom-levels-and-tile-grid). - */ -export interface RenderGetMapStateTileDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** - * - * The `Get Copyright Caption` API is an HTTP GET request designed to serve copyright information to be used with tiles requested from the Render service. In addition to a basic copyright for the whole map, it can serve specific groups of copyrights for some countries/regions. - * - * As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map. - */ -export interface RenderGetCopyrightCaption200Response extends HttpResponse { - status: "200"; - body: CopyrightCaptionOutput; -} - -/** - * - * The `Get Copyright Caption` API is an HTTP GET request designed to serve copyright information to be used with tiles requested from the Render service. In addition to a basic copyright for the whole map, it can serve specific groups of copyrights for some countries/regions. - * - * As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map. - */ -export interface RenderGetCopyrightCaptionDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -export interface RenderGetMapStaticImage200Headers { - /** The content-type for the response. */ - "content-type"?: string; -} - -/** - * This rendering API produces static, rasterized map views of a user-defined area. It's suitable for lightweight web applications, when the desired user experience doesn't require interactive map controls, or when bandwidth is limited. This API is also useful for embedding maps in applications outside of the browser, in backend services, report generation, or desktop applications. - * - * This API includes parameters for basic data visualization: - * - * - Labeled pushpins in multiple styles. - * - Render circle, path, and polygon geometry types. - * - * For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data). - *

- * The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail. - *

- * - * |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range| - * |:----------|:----------------|:----------------|:----------------|:-------------| - * |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 | - * |1 | 28.125 | 360.0 | 14.87468995 | 180.0 | - * |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 | - * |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 | - * |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 | - * |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 | - * |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 | - * |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 | - * |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 | - * |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 | - * |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 | - * |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 | - * |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 | - * |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 | - * |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 | - * |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 | - * |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 | - * |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 | - * |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 | - * |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 | - * |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 | - * - * _Note_ : Either **center** or **bbox** parameter must be supplied to the API. - */ -export interface RenderGetMapStaticImage200Response extends HttpResponse { - status: "200"; - /** Value may contain any sequence of octets */ - body: Uint8Array; - headers: RawHttpHeaders & RenderGetMapStaticImage200Headers; -} - -/** - * This rendering API produces static, rasterized map views of a user-defined area. It's suitable for lightweight web applications, when the desired user experience doesn't require interactive map controls, or when bandwidth is limited. This API is also useful for embedding maps in applications outside of the browser, in backend services, report generation, or desktop applications. - * - * This API includes parameters for basic data visualization: - * - * - Labeled pushpins in multiple styles. - * - Render circle, path, and polygon geometry types. - * - * For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data). - *

- * The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail. - *

- * - * |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range| - * |:----------|:----------------|:----------------|:----------------|:-------------| - * |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 | - * |1 | 28.125 | 360.0 | 14.87468995 | 180.0 | - * |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 | - * |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 | - * |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 | - * |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 | - * |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 | - * |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 | - * |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 | - * |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 | - * |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 | - * |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 | - * |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 | - * |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 | - * |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 | - * |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 | - * |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 | - * |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 | - * |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 | - * |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 | - * |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 | - * - * _Note_ : Either **center** or **bbox** parameter must be supplied to the API. - */ -export interface RenderGetMapStaticImageDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** - * - * Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates - */ -export interface RenderGetCopyrightFromBoundingBox200Response - extends HttpResponse { - status: "200"; - body: CopyrightOutput; -} - -/** - * - * Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates - */ -export interface RenderGetCopyrightFromBoundingBoxDefaultResponse - extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** - * - * To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates. For more information, see [Zoom Levels and Tile Grid](/azure/azure-maps/zoom-levels-and-tile-grid). - * - * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions. - */ -export interface RenderGetCopyrightForTile200Response extends HttpResponse { - status: "200"; - body: CopyrightOutput; -} - -/** - * - * To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates. For more information, see [Zoom Levels and Tile Grid](/azure/azure-maps/zoom-levels-and-tile-grid). - * - * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions. - */ -export interface RenderGetCopyrightForTileDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** - * - * Returns the copyright information for the world. To obtain the default copyright information for the whole world, don't specify a tile or bounding box. - * - * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions. - */ -export interface RenderGetCopyrightForWorld200Response extends HttpResponse { - status: "200"; - body: CopyrightOutput; -} - -/** - * - * Returns the copyright information for the world. To obtain the default copyright information for the whole world, don't specify a tile or bounding box. - * - * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions. - */ -export interface RenderGetCopyrightForWorldDefaultResponse - extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} diff --git a/sdk/maps/maps-render-rest/karma.conf.js b/sdk/maps/maps-render-rest/karma.conf.js deleted file mode 100644 index 8793e336491d..000000000000 --- a/sdk/maps/maps-render-rest/karma.conf.js +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: ["TEST_MODE", "MAPS_RESOURCE_CLIENT_ID", "RECORDINGS_RELATIVE_PATH"], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/maps/maps-render-rest/package.json b/sdk/maps/maps-render-rest/package.json index 5d50cdf3afba..c8e5a48c1fe7 100644 --- a/sdk/maps/maps-render-rest/package.json +++ b/sdk/maps/maps-render-rest/package.json @@ -13,31 +13,28 @@ "isomorphic" ], "license": "MIT", - "main": "dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/maps-render-rest.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/", - "dist-esm/src/", - "types/maps-render-rest.d.ts", "README.md", - "LICENSE", - "review/*" + "LICENSE" ], "engines": { "node": ">=18.0.0" }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run bundle --browser-test false", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api", + "build:node": "dev-tool run build-package && dev-tool run bundle --browser-test false", "build:samples": "dev-tool samples publish --force", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", @@ -45,8 +42,8 @@ "format": "dev-tool run vendored 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": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -54,50 +51,37 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure-rest/core-client": "^2.3.1", + "@azure/core-auth": "^1.9.0", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/logger": "^1.1.4", "@azure/maps-common": "1.0.0-beta.2", - "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-utils": "^1.0.1", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/core-util": "^1.9.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "autorest": "latest", - "chai": "^4.2.0", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.49.0", + "typescript": "~5.6.2", + "vitest": "^2.1.5" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/maps-render-rest/README.md", "//metadata": { @@ -108,9 +92,7 @@ } ] }, - "browser": { - "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" - }, + "browser": "./dist/browser/index.js", "//sampleConfiguration": { "productName": "Azure Maps Render", "productSlugs": [ @@ -121,5 +103,42 @@ "Azure Maps Resource": "https://docs.microsoft.com/azure/azure-maps/how-to-create-template" }, "disableDocsMs": true + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/maps/maps-render-rest/samples-dev/getMapStaticImage.ts b/sdk/maps/maps-render-rest/samples-dev/getMapStaticImage.ts index 923d2db193aa..73939be93191 100644 --- a/sdk/maps/maps-render-rest/samples-dev/getMapStaticImage.ts +++ b/sdk/maps/maps-render-rest/samples-dev/getMapStaticImage.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import { DefaultAzureCredential } from "@azure/identity"; -import { createWriteStream } from "fs"; +import { createWriteStream } from "node:fs"; import MapsRender, { createPathQuery, createPinsQuery } from "@azure-rest/maps-render"; -import { LatLon } from "@azure/maps-common"; +import type { LatLon } from "@azure/maps-common"; /** * @summary How to get the map static image with pins and paths specified. diff --git a/sdk/maps/maps-render-rest/samples-dev/getMapTileInNode.ts b/sdk/maps/maps-render-rest/samples-dev/getMapTileInNode.ts index 380d77d703de..7de9fbd19ccf 100644 --- a/sdk/maps/maps-render-rest/samples-dev/getMapTileInNode.ts +++ b/sdk/maps/maps-render-rest/samples-dev/getMapTileInNode.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { DefaultAzureCredential } from "@azure/identity"; -import { createWriteStream } from "fs"; +import { createWriteStream } from "node:fs"; import MapsRender, { positionToTileXY } from "@azure-rest/maps-render"; /** diff --git a/sdk/maps/maps-render-rest/src/createPathQuery.ts b/sdk/maps/maps-render-rest/src/createPathQuery.ts index dcda517b677b..619db1bd3773 100644 --- a/sdk/maps/maps-render-rest/src/createPathQuery.ts +++ b/sdk/maps/maps-render-rest/src/createPathQuery.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import type { LatLon } from "@azure/maps-common"; -import { createMultiCollection } from "./createMultiCollection"; +import { createMultiCollection } from "./createMultiCollection.js"; /** * The options that modify the style of a circular path. diff --git a/sdk/maps/maps-render-rest/src/createPinsQuery.ts b/sdk/maps/maps-render-rest/src/createPinsQuery.ts index f059aea97700..3fc4b2250d01 100644 --- a/sdk/maps/maps-render-rest/src/createPinsQuery.ts +++ b/sdk/maps/maps-render-rest/src/createPinsQuery.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import type { LatLon } from "@azure/maps-common"; -import { createMultiCollection } from "./createMultiCollection"; +import { createMultiCollection } from "./createMultiCollection.js"; /** * Specify how the pin's position and label text. diff --git a/sdk/maps/maps-render-rest/src/generated/clientDefinitions.ts b/sdk/maps/maps-render-rest/src/generated/clientDefinitions.ts new file mode 100644 index 000000000000..cbf3fbf26938 --- /dev/null +++ b/sdk/maps/maps-render-rest/src/generated/clientDefinitions.ts @@ -0,0 +1,225 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + RenderGetMapTileParameters, + RenderGetMapTilesetParameters, + RenderGetMapAttributionParameters, + RenderGetMapStateTileParameters, + RenderGetCopyrightCaptionParameters, + RenderGetMapStaticImageParameters, + RenderGetCopyrightFromBoundingBoxParameters, + RenderGetCopyrightForTileParameters, + RenderGetCopyrightForWorldParameters, +} from "./parameters.js"; +import { + RenderGetMapTile200Response, + RenderGetMapTileDefaultResponse, + RenderGetMapTileset200Response, + RenderGetMapTilesetDefaultResponse, + RenderGetMapAttribution200Response, + RenderGetMapAttributionDefaultResponse, + RenderGetMapStateTile200Response, + RenderGetMapStateTileDefaultResponse, + RenderGetCopyrightCaption200Response, + RenderGetCopyrightCaptionDefaultResponse, + RenderGetMapStaticImage200Response, + RenderGetMapStaticImageDefaultResponse, + RenderGetCopyrightFromBoundingBox200Response, + RenderGetCopyrightFromBoundingBoxDefaultResponse, + RenderGetCopyrightForTile200Response, + RenderGetCopyrightForTileDefaultResponse, + RenderGetCopyrightForWorld200Response, + RenderGetCopyrightForWorldDefaultResponse, +} from "./responses.js"; +import { Client, StreamableMethod } from "@azure-rest/core-client"; + +export interface GetMapTile { + /** + * + * The `Get Map Tiles` API in an HTTP GET request that allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control ([Web SDK](/azure/azure-maps/about-azure-maps#web-sdk)) and [Android SDK](/azure/azure-maps/about-azure-maps#android-sdk). + */ + get( + options: RenderGetMapTileParameters, + ): StreamableMethod< + RenderGetMapTile200Response | RenderGetMapTileDefaultResponse + >; +} + +export interface GetMapTileset { + /** + * + * The Get Map Tileset API allows users to request metadata for a tileset. + */ + get( + options: RenderGetMapTilesetParameters, + ): StreamableMethod< + RenderGetMapTileset200Response | RenderGetMapTilesetDefaultResponse + >; +} + +export interface GetMapAttribution { + /** + * + * The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset. + */ + get( + options: RenderGetMapAttributionParameters, + ): StreamableMethod< + RenderGetMapAttribution200Response | RenderGetMapAttributionDefaultResponse + >; +} + +export interface GetMapStateTile { + /** + * + * Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling. For more information, see [Zoom Levels and Tile Grid](/azure/location-based-services/zoom-levels-and-tile-grid). + */ + get( + options: RenderGetMapStateTileParameters, + ): StreamableMethod< + RenderGetMapStateTile200Response | RenderGetMapStateTileDefaultResponse + >; +} + +export interface GetCopyrightCaption { + /** + * + * The `Get Copyright Caption` API is an HTTP GET request designed to serve copyright information to be used with tiles requested from the Render service. In addition to a basic copyright for the whole map, it can serve specific groups of copyrights for some countries/regions. + * + * As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map. + */ + get( + options?: RenderGetCopyrightCaptionParameters, + ): StreamableMethod< + | RenderGetCopyrightCaption200Response + | RenderGetCopyrightCaptionDefaultResponse + >; +} + +export interface GetMapStaticImage { + /** + * This rendering API produces static, rasterized map views of a user-defined area. It's suitable for lightweight web applications, when the desired user experience doesn't require interactive map controls, or when bandwidth is limited. This API is also useful for embedding maps in applications outside of the browser, in backend services, report generation, or desktop applications. + * + * This API includes parameters for basic data visualization: + * + * - Labeled pushpins in multiple styles. + * - Render circle, path, and polygon geometry types. + * + * For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data). + *

+ * The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail. + *

+ * + * |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range| + * |:----------|:----------------|:----------------|:----------------|:-------------| + * |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 | + * |1 | 28.125 | 360.0 | 14.87468995 | 180.0 | + * |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 | + * |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 | + * |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 | + * |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 | + * |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 | + * |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 | + * |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 | + * |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 | + * |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 | + * |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 | + * |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 | + * |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 | + * |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 | + * |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 | + * |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 | + * |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 | + * |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 | + * |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 | + * |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 | + * + * _Note_ : Either **center** or **bbox** parameter must be supplied to the API. + */ + get( + options?: RenderGetMapStaticImageParameters, + ): StreamableMethod< + RenderGetMapStaticImage200Response | RenderGetMapStaticImageDefaultResponse + >; +} + +export interface GetCopyrightFromBoundingBox { + /** + * + * Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates + */ + get( + options: RenderGetCopyrightFromBoundingBoxParameters, + ): StreamableMethod< + | RenderGetCopyrightFromBoundingBox200Response + | RenderGetCopyrightFromBoundingBoxDefaultResponse + >; +} + +export interface GetCopyrightForTile { + /** + * + * To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates. For more information, see [Zoom Levels and Tile Grid](/azure/azure-maps/zoom-levels-and-tile-grid). + * + * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions. + */ + get( + options: RenderGetCopyrightForTileParameters, + ): StreamableMethod< + | RenderGetCopyrightForTile200Response + | RenderGetCopyrightForTileDefaultResponse + >; +} + +export interface GetCopyrightForWorld { + /** + * + * Returns the copyright information for the world. To obtain the default copyright information for the whole world, don't specify a tile or bounding box. + * + * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions. + */ + get( + options?: RenderGetCopyrightForWorldParameters, + ): StreamableMethod< + | RenderGetCopyrightForWorld200Response + | RenderGetCopyrightForWorldDefaultResponse + >; +} + +export interface Routes { + /** Resource for '/map/tile' has methods for the following verbs: get */ + (path: "/map/tile"): GetMapTile; + /** Resource for '/map/tileset' has methods for the following verbs: get */ + (path: "/map/tileset"): GetMapTileset; + /** Resource for '/map/attribution' has methods for the following verbs: get */ + (path: "/map/attribution"): GetMapAttribution; + /** Resource for '/map/statetile' has methods for the following verbs: get */ + (path: "/map/statetile"): GetMapStateTile; + /** Resource for '/map/copyright/caption/\{format\}' has methods for the following verbs: get */ + ( + path: "/map/copyright/caption/{format}", + format: "json" | "xml", + ): GetCopyrightCaption; + /** Resource for '/map/static' has methods for the following verbs: get */ + (path: "/map/static"): GetMapStaticImage; + /** Resource for '/map/copyright/bounding/\{format\}' has methods for the following verbs: get */ + ( + path: "/map/copyright/bounding/{format}", + format: "json" | "xml", + ): GetCopyrightFromBoundingBox; + /** Resource for '/map/copyright/tile/\{format\}' has methods for the following verbs: get */ + ( + path: "/map/copyright/tile/{format}", + format: "json" | "xml", + ): GetCopyrightForTile; + /** Resource for '/map/copyright/world/\{format\}' has methods for the following verbs: get */ + ( + path: "/map/copyright/world/{format}", + format: "json" | "xml", + ): GetCopyrightForWorld; +} + +export type MapsRenderClient = Client & { + path: Routes; +}; diff --git a/sdk/maps/maps-render-rest/src/generated/index.ts b/sdk/maps/maps-render-rest/src/generated/index.ts new file mode 100644 index 000000000000..ca4e82731bb5 --- /dev/null +++ b/sdk/maps/maps-render-rest/src/generated/index.ts @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import MapsRenderClient from "./mapsRenderClient.js"; + +export * from "./mapsRenderClient.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./outputModels.js"; + +export default MapsRenderClient; diff --git a/sdk/maps/maps-render-rest/src/generated/isUnexpected.ts b/sdk/maps/maps-render-rest/src/generated/isUnexpected.ts new file mode 100644 index 000000000000..1447f629a46e --- /dev/null +++ b/sdk/maps/maps-render-rest/src/generated/isUnexpected.ts @@ -0,0 +1,189 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + RenderGetMapTile200Response, + RenderGetMapTileDefaultResponse, + RenderGetMapTileset200Response, + RenderGetMapTilesetDefaultResponse, + RenderGetMapAttribution200Response, + RenderGetMapAttributionDefaultResponse, + RenderGetMapStateTile200Response, + RenderGetMapStateTileDefaultResponse, + RenderGetCopyrightCaption200Response, + RenderGetCopyrightCaptionDefaultResponse, + RenderGetMapStaticImage200Response, + RenderGetMapStaticImageDefaultResponse, + RenderGetCopyrightFromBoundingBox200Response, + RenderGetCopyrightFromBoundingBoxDefaultResponse, + RenderGetCopyrightForTile200Response, + RenderGetCopyrightForTileDefaultResponse, + RenderGetCopyrightForWorld200Response, + RenderGetCopyrightForWorldDefaultResponse, +} from "./responses.js"; + +const responseMap: Record = { + "GET /map/tile": ["200"], + "GET /map/tileset": ["200"], + "GET /map/attribution": ["200"], + "GET /map/statetile": ["200"], + "GET /map/copyright/caption/{format}": ["200"], + "GET /map/static": ["200"], + "GET /map/copyright/bounding/{format}": ["200"], + "GET /map/copyright/tile/{format}": ["200"], + "GET /map/copyright/world/{format}": ["200"], +}; + +export function isUnexpected( + response: RenderGetMapTile200Response | RenderGetMapTileDefaultResponse, +): response is RenderGetMapTileDefaultResponse; +export function isUnexpected( + response: RenderGetMapTileset200Response | RenderGetMapTilesetDefaultResponse, +): response is RenderGetMapTilesetDefaultResponse; +export function isUnexpected( + response: + | RenderGetMapAttribution200Response + | RenderGetMapAttributionDefaultResponse, +): response is RenderGetMapAttributionDefaultResponse; +export function isUnexpected( + response: + | RenderGetMapStateTile200Response + | RenderGetMapStateTileDefaultResponse, +): response is RenderGetMapStateTileDefaultResponse; +export function isUnexpected( + response: + | RenderGetCopyrightCaption200Response + | RenderGetCopyrightCaptionDefaultResponse, +): response is RenderGetCopyrightCaptionDefaultResponse; +export function isUnexpected( + response: + | RenderGetMapStaticImage200Response + | RenderGetMapStaticImageDefaultResponse, +): response is RenderGetMapStaticImageDefaultResponse; +export function isUnexpected( + response: + | RenderGetCopyrightFromBoundingBox200Response + | RenderGetCopyrightFromBoundingBoxDefaultResponse, +): response is RenderGetCopyrightFromBoundingBoxDefaultResponse; +export function isUnexpected( + response: + | RenderGetCopyrightForTile200Response + | RenderGetCopyrightForTileDefaultResponse, +): response is RenderGetCopyrightForTileDefaultResponse; +export function isUnexpected( + response: + | RenderGetCopyrightForWorld200Response + | RenderGetCopyrightForWorldDefaultResponse, +): response is RenderGetCopyrightForWorldDefaultResponse; +export function isUnexpected( + response: + | RenderGetMapTile200Response + | RenderGetMapTileDefaultResponse + | RenderGetMapTileset200Response + | RenderGetMapTilesetDefaultResponse + | RenderGetMapAttribution200Response + | RenderGetMapAttributionDefaultResponse + | RenderGetMapStateTile200Response + | RenderGetMapStateTileDefaultResponse + | RenderGetCopyrightCaption200Response + | RenderGetCopyrightCaptionDefaultResponse + | RenderGetMapStaticImage200Response + | RenderGetMapStaticImageDefaultResponse + | RenderGetCopyrightFromBoundingBox200Response + | RenderGetCopyrightFromBoundingBoxDefaultResponse + | RenderGetCopyrightForTile200Response + | RenderGetCopyrightForTileDefaultResponse + | RenderGetCopyrightForWorld200Response + | RenderGetCopyrightForWorldDefaultResponse, +): response is + | RenderGetMapTileDefaultResponse + | RenderGetMapTilesetDefaultResponse + | RenderGetMapAttributionDefaultResponse + | RenderGetMapStateTileDefaultResponse + | RenderGetCopyrightCaptionDefaultResponse + | RenderGetMapStaticImageDefaultResponse + | RenderGetCopyrightFromBoundingBoxDefaultResponse + | RenderGetCopyrightForTileDefaultResponse + | RenderGetCopyrightForWorldDefaultResponse { + const lroOriginal = response.headers["x-ms-original-url"]; + const url = new URL(lroOriginal ?? response.request.url); + const method = response.request.method; + let pathDetails = responseMap[`${method} ${url.pathname}`]; + if (!pathDetails) { + pathDetails = getParametrizedPathSuccess(method, url.pathname); + } + return !pathDetails.includes(response.status); +} + +function getParametrizedPathSuccess(method: string, path: string): string[] { + const pathParts = path.split("/"); + + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, + matchedValue: string[] = []; + + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(responseMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + + // track if we have found a match to return the values found. + let found = true; + for ( + let i = candidateParts.length - 1, j = pathParts.length - 1; + i >= 1 && j >= 1; + i--, j-- + ) { + if ( + candidateParts[i]?.startsWith("{") && + candidateParts[i]?.indexOf("}") !== -1 + ) { + const start = candidateParts[i]!.indexOf("}") + 1, + end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp( + `${candidateParts[i]?.slice(start, end)}`, + ).test(pathParts[j] || ""); + + if (!isMatched) { + found = false; + break; + } + continue; + } + + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + + return matchedValue; +} + +function getPathFromMapKey(mapKey: string): string { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} diff --git a/sdk/maps/maps-render-rest/generated/logger.ts b/sdk/maps/maps-render-rest/src/generated/logger.ts similarity index 100% rename from sdk/maps/maps-render-rest/generated/logger.ts rename to sdk/maps/maps-render-rest/src/generated/logger.ts diff --git a/sdk/maps/maps-render-rest/generated/mapsRenderClient.ts b/sdk/maps/maps-render-rest/src/generated/mapsRenderClient.ts similarity index 95% rename from sdk/maps/maps-render-rest/generated/mapsRenderClient.ts rename to sdk/maps/maps-render-rest/src/generated/mapsRenderClient.ts index f32ecf1ba3c6..05bb1d6d88c5 100644 --- a/sdk/maps/maps-render-rest/generated/mapsRenderClient.ts +++ b/sdk/maps/maps-render-rest/src/generated/mapsRenderClient.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "./logger"; +import { logger } from "./logger.js"; import { KeyCredential } from "@azure/core-auth"; -import { MapsRenderClient } from "./clientDefinitions"; +import { MapsRenderClient } from "./clientDefinitions.js"; /** The optional parameters for the client */ export interface MapsRenderClientOptions extends ClientOptions { diff --git a/sdk/maps/maps-render-rest/generated/outputModels.ts b/sdk/maps/maps-render-rest/src/generated/outputModels.ts similarity index 100% rename from sdk/maps/maps-render-rest/generated/outputModels.ts rename to sdk/maps/maps-render-rest/src/generated/outputModels.ts diff --git a/sdk/maps/maps-render-rest/generated/parameters.ts b/sdk/maps/maps-render-rest/src/generated/parameters.ts similarity index 100% rename from sdk/maps/maps-render-rest/generated/parameters.ts rename to sdk/maps/maps-render-rest/src/generated/parameters.ts diff --git a/sdk/maps/maps-render-rest/src/generated/responses.ts b/sdk/maps/maps-render-rest/src/generated/responses.ts new file mode 100644 index 000000000000..de5eda908cdb --- /dev/null +++ b/sdk/maps/maps-render-rest/src/generated/responses.ts @@ -0,0 +1,280 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { RawHttpHeaders } from "@azure/core-rest-pipeline"; +import { HttpResponse } from "@azure-rest/core-client"; +import { + ErrorResponseOutput, + MapTilesetOutput, + MapAttributionOutput, + CopyrightCaptionOutput, + CopyrightOutput, +} from "./outputModels.js"; + +export interface RenderGetMapTile200Headers { + /** The content-type for the response. */ + "content-type"?: string; +} + +/** + * + * The `Get Map Tiles` API in an HTTP GET request that allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control ([Web SDK](/azure/azure-maps/about-azure-maps#web-sdk)) and [Android SDK](/azure/azure-maps/about-azure-maps#android-sdk). + */ +export interface RenderGetMapTile200Response extends HttpResponse { + status: "200"; + /** Value may contain any sequence of octets */ + body: Uint8Array; + headers: RawHttpHeaders & RenderGetMapTile200Headers; +} + +/** + * + * The `Get Map Tiles` API in an HTTP GET request that allows users to request map tiles in vector or raster formats typically to be integrated into a map control or SDK. Some example tiles that can be requested are Azure Maps road tiles, real-time Weather Radar tiles or the map tiles created using [Azure Maps Creator](https://aka.ms/amcreator). By default, Azure Maps uses vector tiles for its web map control ([Web SDK](/azure/azure-maps/about-azure-maps#web-sdk)) and [Android SDK](/azure/azure-maps/about-azure-maps#android-sdk). + */ +export interface RenderGetMapTileDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** + * + * The Get Map Tileset API allows users to request metadata for a tileset. + */ +export interface RenderGetMapTileset200Response extends HttpResponse { + status: "200"; + body: MapTilesetOutput; +} + +/** + * + * The Get Map Tileset API allows users to request metadata for a tileset. + */ +export interface RenderGetMapTilesetDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** + * + * The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset. + */ +export interface RenderGetMapAttribution200Response extends HttpResponse { + status: "200"; + body: MapAttributionOutput; +} + +/** + * + * The `Get Map Attribution` API allows users to request map copyright attribution information for a section of a tileset. + */ +export interface RenderGetMapAttributionDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +export interface RenderGetMapStateTile200Headers { + /** The content-type for the response. */ + "content-type"?: string; +} + +/** + * + * Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling. For more information, see [Zoom Levels and Tile Grid](/azure/location-based-services/zoom-levels-and-tile-grid). + */ +export interface RenderGetMapStateTile200Response extends HttpResponse { + status: "200"; + /** Value may contain any sequence of octets */ + body: Uint8Array; + headers: RawHttpHeaders & RenderGetMapStateTile200Headers; +} + +/** + * + * Fetches state tiles in vector format typically to be integrated into indoor maps module of map control or SDK. The map control will call this API after user turns on dynamic styling. For more information, see [Zoom Levels and Tile Grid](/azure/location-based-services/zoom-levels-and-tile-grid). + */ +export interface RenderGetMapStateTileDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** + * + * The `Get Copyright Caption` API is an HTTP GET request designed to serve copyright information to be used with tiles requested from the Render service. In addition to a basic copyright for the whole map, it can serve specific groups of copyrights for some countries/regions. + * + * As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map. + */ +export interface RenderGetCopyrightCaption200Response extends HttpResponse { + status: "200"; + body: CopyrightCaptionOutput; +} + +/** + * + * The `Get Copyright Caption` API is an HTTP GET request designed to serve copyright information to be used with tiles requested from the Render service. In addition to a basic copyright for the whole map, it can serve specific groups of copyrights for some countries/regions. + * + * As an alternative to copyrights for map request, it can also return captions for displaying provider information on the map. + */ +export interface RenderGetCopyrightCaptionDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +export interface RenderGetMapStaticImage200Headers { + /** The content-type for the response. */ + "content-type"?: string; +} + +/** + * This rendering API produces static, rasterized map views of a user-defined area. It's suitable for lightweight web applications, when the desired user experience doesn't require interactive map controls, or when bandwidth is limited. This API is also useful for embedding maps in applications outside of the browser, in backend services, report generation, or desktop applications. + * + * This API includes parameters for basic data visualization: + * + * - Labeled pushpins in multiple styles. + * - Render circle, path, and polygon geometry types. + * + * For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data). + *

+ * The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail. + *

+ * + * |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range| + * |:----------|:----------------|:----------------|:----------------|:-------------| + * |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 | + * |1 | 28.125 | 360.0 | 14.87468995 | 180.0 | + * |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 | + * |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 | + * |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 | + * |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 | + * |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 | + * |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 | + * |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 | + * |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 | + * |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 | + * |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 | + * |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 | + * |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 | + * |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 | + * |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 | + * |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 | + * |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 | + * |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 | + * |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 | + * |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 | + * + * _Note_ : Either **center** or **bbox** parameter must be supplied to the API. + */ +export interface RenderGetMapStaticImage200Response extends HttpResponse { + status: "200"; + /** Value may contain any sequence of octets */ + body: Uint8Array; + headers: RawHttpHeaders & RenderGetMapStaticImage200Headers; +} + +/** + * This rendering API produces static, rasterized map views of a user-defined area. It's suitable for lightweight web applications, when the desired user experience doesn't require interactive map controls, or when bandwidth is limited. This API is also useful for embedding maps in applications outside of the browser, in backend services, report generation, or desktop applications. + * + * This API includes parameters for basic data visualization: + * + * - Labeled pushpins in multiple styles. + * - Render circle, path, and polygon geometry types. + * + * For more information and detailed examples, see [Render custom data on a raster map](/azure/azure-maps/how-to-render-custom-data). + *

+ * The dimensions of the bbox parameter are constrained, depending on the zoom level. This ensures the resulting image has an appropriate level of detail. + *

+ * + * |Zoom Level | Min Lon Range | Max Lon Range | Min Lat Range| Max Lat Range| + * |:----------|:----------------|:----------------|:----------------|:-------------| + * |0 | 56.25 | 360.0 | 30.1105585173 | 180.0 | + * |1 | 28.125 | 360.0 | 14.87468995 | 180.0 | + * |2 | 14.063 | 351.5625 | 7.4130741851 | 137.9576312246 | + * |3 | 7.03125 | 175.78125 | 3.7034501005 | 73.6354071932 | + * |4 | 3.515625 | 87.890625 | 1.8513375155 | 35.4776115315 | + * |5 | 1.7578125 | 43.9453125 | 0.925620264 | 17.4589959239 | + * |6 | 0.87890625 | 21.97265625 | 0.4628040687 | 8.6907788223 | + * |7 | 0.439453125 | 10.986328125 | 0.2314012764 | 4.3404320789 | + * |8 | 0.2197265625 | 5.4931640625 | 0.1157005434 | 2.1695927024 | + * |9 | 0.1098632812 | 2.7465820312 | 0.0578502599 | 1.0847183194 | + * |10 | 0.0549316406 | 1.3732910156 | 0.0289251285 | 0.5423494021 | + * |11 | 0.0274658203 | 0.6866455078 | 0.014462564 | 0.2711734813 | + * |12 | 0.0137329102 | 0.3433227539 | 0.007231282 | 0.1355865882 | + * |13 | 0.0068664551 | 0.171661377 | 0.003615641 | 0.067793275 | + * |14 | 0.0034332275 | 0.0858306885 | 0.0018078205 | 0.0338966351 | + * |15 | 0.0017166138 | 0.0429153442 | 0.0009039102 | 0.0169483173 | + * |16 | 0.0008583069 | 0.0214576721 | 0.0004519551 | 0.0084741586 | + * |17 | 0.0004291534 | 0.0107288361 | 0.0002259776 | 0.0042370793 | + * |18 | 0.0002145767 | 0.005364418 | 0.0001129888 | 0.0021185396 | + * |19 | 0.0001072884 | 0.002682209 | 5.64944E-05 | 0.0010592698 | + * |20 | 5.36442E-05 | 0.0013411045 | 2.82472E-05 | 0.0005296349 | + * + * _Note_ : Either **center** or **bbox** parameter must be supplied to the API. + */ +export interface RenderGetMapStaticImageDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** + * + * Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates + */ +export interface RenderGetCopyrightFromBoundingBox200Response + extends HttpResponse { + status: "200"; + body: CopyrightOutput; +} + +/** + * + * Returns copyright information for a given bounding box. Bounding-box requests should specify the minimum and maximum longitude and latitude (EPSG-3857) coordinates + */ +export interface RenderGetCopyrightFromBoundingBoxDefaultResponse + extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** + * + * To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates. For more information, see [Zoom Levels and Tile Grid](/azure/azure-maps/zoom-levels-and-tile-grid). + * + * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions. + */ +export interface RenderGetCopyrightForTile200Response extends HttpResponse { + status: "200"; + body: CopyrightOutput; +} + +/** + * + * To obtain the copyright information for a particular tile, the request should specify the tile's zoom level and x and y coordinates. For more information, see [Zoom Levels and Tile Grid](/azure/azure-maps/zoom-levels-and-tile-grid). + * + * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions. + */ +export interface RenderGetCopyrightForTileDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** + * + * Returns the copyright information for the world. To obtain the default copyright information for the whole world, don't specify a tile or bounding box. + * + * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions. + */ +export interface RenderGetCopyrightForWorld200Response extends HttpResponse { + status: "200"; + body: CopyrightOutput; +} + +/** + * + * Returns the copyright information for the world. To obtain the default copyright information for the whole world, don't specify a tile or bounding box. + * + * Copyrights API is designed to serve copyright information for Render service. In addition to basic copyright for the whole map, API is serving specific groups of copyrights for some countries/regions. + */ +export interface RenderGetCopyrightForWorldDefaultResponse + extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} diff --git a/sdk/maps/maps-render-rest/src/index.ts b/sdk/maps/maps-render-rest/src/index.ts index b7242c5581b3..a87694177f8b 100644 --- a/sdk/maps/maps-render-rest/src/index.ts +++ b/sdk/maps/maps-render-rest/src/index.ts @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import MapsRender from "./mapsRender"; +import MapsRender from "./mapsRender.js"; + +export * from "./generated/index.js"; +export * from "./positionToTileXY.js"; +export * from "./createPinsQuery.js"; +export * from "./createPathQuery.js"; -export * from "../generated"; -export * from "./positionToTileXY"; -export * from "./createPinsQuery"; -export * from "./createPathQuery"; export default MapsRender; diff --git a/sdk/maps/maps-render-rest/src/mapsRender.ts b/sdk/maps/maps-render-rest/src/mapsRender.ts index bcd87f4b8e7d..6950c85d1edc 100644 --- a/sdk/maps/maps-render-rest/src/mapsRender.ts +++ b/sdk/maps/maps-render-rest/src/mapsRender.ts @@ -6,8 +6,8 @@ import type { AzureKeyCredential, AzureSASCredential, TokenCredential } from "@a import { isSASCredential, isTokenCredential } from "@azure/core-auth"; import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; import { createMapsClientIdPolicy } from "@azure/maps-common"; -import type { MapsRenderClient } from "../generated"; -import createClient from "../generated/mapsRenderClient"; +import type { MapsRenderClient } from "./generated/index.js"; +import createClient from "./generated/mapsRenderClient.js"; /** * Creates an instance of MapsRenderClient from a subscription key. diff --git a/sdk/maps/maps-render-rest/swagger/README.md b/sdk/maps/maps-render-rest/swagger/README.md index efd3133aff5e..19edbf47344b 100644 --- a/sdk/maps/maps-render-rest/swagger/README.md +++ b/sdk/maps/maps-render-rest/swagger/README.md @@ -22,7 +22,7 @@ generate-metadata: false generate-test: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ -source-code-folder-path: ./generated +source-code-folder-path: ./src/generated input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/maps/data-plane/Render/stable/2024-04-01/render.json package-version: 2.0.0-beta.1 rest-level-client: true diff --git a/sdk/maps/maps-render-rest/test/internal/createMultiCollection.spec.ts b/sdk/maps/maps-render-rest/test/internal/createMultiCollection.spec.ts index 426211d45d16..df93959ecdc0 100644 --- a/sdk/maps/maps-render-rest/test/internal/createMultiCollection.spec.ts +++ b/sdk/maps/maps-render-rest/test/internal/createMultiCollection.spec.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { assert } from "chai"; -import { createMultiCollection } from "../../src/createMultiCollection"; +import { createMultiCollection } from "../../src/createMultiCollection.js"; +import { describe, it, assert } from "vitest"; describe("createMultiCollection", () => { it("should create a multi collection query string", () => { diff --git a/sdk/maps/maps-render-rest/test/public/createPathQuery.spec.ts b/sdk/maps/maps-render-rest/test/public/createPathQuery.spec.ts index b923914097cb..6f9255aa281c 100644 --- a/sdk/maps/maps-render-rest/test/public/createPathQuery.spec.ts +++ b/sdk/maps/maps-render-rest/test/public/createPathQuery.spec.ts @@ -3,22 +3,21 @@ import type { Recorder } from "@azure-tools/test-recorder"; import type { LatLon } from "@azure/maps-common"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { MapsRenderClient } from "../../src"; -import { isUnexpected, createPathQuery } from "../../src"; -import { createClient, createRecorder } from "./utils/recordedClient"; +import type { MapsRenderClient } from "../../src/index.js"; +import { isUnexpected, createPathQuery } from "../../src/index.js"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; describe("create path query helper", () => { let recorder: Recorder; let client: MapsRenderClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); diff --git a/sdk/maps/maps-render-rest/test/public/createPinsQuery.spec.ts b/sdk/maps/maps-render-rest/test/public/createPinsQuery.spec.ts index 5adcd43ac1e0..a5707aed2e15 100644 --- a/sdk/maps/maps-render-rest/test/public/createPinsQuery.spec.ts +++ b/sdk/maps/maps-render-rest/test/public/createPinsQuery.spec.ts @@ -3,22 +3,21 @@ import type { Recorder } from "@azure-tools/test-recorder"; import type { LatLon } from "@azure/maps-common"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { MapsRenderClient } from "../../src"; -import { createPinsQuery, isUnexpected } from "../../src"; -import { createClient, createRecorder } from "./utils/recordedClient"; +import type { MapsRenderClient } from "../../src/index.js"; +import { createPinsQuery, isUnexpected } from "../../src/index.js"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; describe("create pins query helper", () => { let recorder: Recorder; let client: MapsRenderClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); diff --git a/sdk/maps/maps-render-rest/test/public/mapsRender.spec.ts b/sdk/maps/maps-render-rest/test/public/mapsRender.spec.ts index a614c07aa678..95eef85406de 100644 --- a/sdk/maps/maps-render-rest/test/public/mapsRender.spec.ts +++ b/sdk/maps/maps-render-rest/test/public/mapsRender.spec.ts @@ -5,29 +5,30 @@ import type { Recorder } from "@azure-tools/test-recorder"; import { env } from "@azure-tools/test-recorder"; import { isNodeLike } from "@azure/core-util"; import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { createClient, createRecorder } from "./utils/recordedClient"; -import type { Context } from "mocha"; -import type { MapsRenderClient } from "../../src"; -import MapsRender, { isUnexpected } from "../../src"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; +import type { MapsRenderClient } from "../../src/index.js"; +import MapsRender, { isUnexpected } from "../../src/index.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("Authentication", function () { +describe("Authentication", () => { let recorder: Recorder; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should work with Microsoft Entra ID authentication", async function () { - /** - * Skip this test in browser because we have to use InteractiveBrowserCredential in the browser. - * But it requires user's interaction, which is not testable in karma. - * */ - if (!isNodeLike) this.skip(); + /** + * Skip this test in browser because we have to use InteractiveBrowserCredential in the browser. + * But it requires user's interaction, which is not testable in karma. + * */ /** + * Skip this test in browser because we have to use InteractiveBrowserCredential in the browser. + * But it requires user's interaction, which is not testable in karma. + * */ + it("should work with Microsoft Entra ID authentication", { skip: !isNodeLike }, async () => { /** * Use createTestCredential() instead of new DefaultAzureCredential(), else the playback mode won't work * Reference: https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/test-quickstart.md#azuread-oauth2-authentication @@ -44,25 +45,25 @@ describe("Authentication", function () { }); }); -describe("Endpoint can be overwritten", function () { +describe("Endpoint can be overwritten", () => { let recorder: Recorder; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should be executed without specifying baseUrl", async function () { + it("should be executed without specifying baseUrl", async () => { const client = createClient(recorder.configureClientOptions({})); const response = await client.path("/map/copyright/caption/{format}", "json").get(); assert.isOk(!isUnexpected(response)); }); - it("should be executed with different baseUrl", async function () { + it("should be executed with different baseUrl", async () => { const client = createClient( recorder.configureClientOptions({ baseUrl: "https://us.atlas.microsoft.com/" }), ); @@ -76,16 +77,16 @@ describe("MapsRender", () => { let recorder: Recorder; let client: MapsRenderClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("can get copyright caption", async function () { + it("can get copyright caption", async () => { const response = await client.path("/map/copyright/caption/{format}", "json").get(); if (isUnexpected(response)) { assert.fail(response.body.error?.message || "Unexpected error."); @@ -94,7 +95,7 @@ describe("MapsRender", () => { } }); - it("can get copyright information for tile", async function () { + it("can get copyright information for tile", async () => { const response = await client .path("/map/copyright/tile/{format}", "json") .get({ queryParameters: { zoom: 6, x: 9, y: 22 } }); @@ -107,7 +108,7 @@ describe("MapsRender", () => { } }); - it("can get copyright information for world", async function () { + it("can get copyright information for world", async () => { const response = await client.path("/map/copyright/world/{format}", "json").get(); if (isUnexpected(response)) { @@ -117,7 +118,7 @@ describe("MapsRender", () => { assert.isNotEmpty(response.body.regions); }); - it("can get copyright from bounding box", async function () { + it("can get copyright from bounding box", async () => { const response = await client.path("/map/copyright/bounding/{format}", "json").get({ queryParameters: { maxcoordinates: [52.41064, 4.84228], @@ -132,7 +133,7 @@ describe("MapsRender", () => { assert.isNotEmpty(response.body.regions); }); - it("can get copyright information for map attribution", async function () { + it("can get copyright information for map attribution", async () => { const response = await client.path("/map/attribution").get({ queryParameters: { tilesetId: "microsoft.base", @@ -148,7 +149,7 @@ describe("MapsRender", () => { assert.isNotEmpty(response.body.copyrights); }); - it("can get static image", async function () { + it("can get static image", async () => { const response = await client.path("/map/static").get({ queryParameters: { layer: "basic", @@ -165,7 +166,7 @@ describe("MapsRender", () => { assert.isNotEmpty(response.body); }); - it("can get map tile", async function () { + it("can get map tile", async () => { const response = await client.path("/map/tile").get({ queryParameters: { tilesetId: "microsoft.base", @@ -181,7 +182,7 @@ describe("MapsRender", () => { assert.isNotEmpty(response.body); }); - it("can get map tilest information", async function () { + it("can get map tilest information", async () => { const response = await client .path("/map/tileset") .get({ queryParameters: { tilesetId: "microsoft.base" } }); diff --git a/sdk/maps/maps-render-rest/test/public/pointToTileXY.spec.ts b/sdk/maps/maps-render-rest/test/public/pointToTileXY.spec.ts index 9b9c6bc922d3..ddffb7ed21d7 100644 --- a/sdk/maps/maps-render-rest/test/public/pointToTileXY.spec.ts +++ b/sdk/maps/maps-render-rest/test/public/pointToTileXY.spec.ts @@ -2,24 +2,24 @@ // Licensed under the MIT License. import type { Recorder } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import type { Context } from "mocha"; -import type { MapsRenderClient } from "../../src"; -import { isUnexpected, positionToTileXY } from "../../src"; -import { createClient, createRecorder } from "./utils/recordedClient"; +import type { MapsRenderClient } from "../../src/index.js"; +import { isUnexpected, positionToTileXY } from "../../src/index.js"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("position to tile index helper", function () { +describe("position to tile index helper", () => { let recorder: Recorder; let client: MapsRenderClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); + it("positionToTileXY", async () => { const zoom = 10; const tileSize = "512"; diff --git a/sdk/maps/maps-render-rest/test/public/utils/env.browser.ts b/sdk/maps/maps-render-rest/test/public/utils/env-browser.mts similarity index 100% rename from sdk/maps/maps-render-rest/test/public/utils/env.browser.ts rename to sdk/maps/maps-render-rest/test/public/utils/env-browser.mts diff --git a/sdk/maps/maps-render-rest/test/public/utils/recordedClient.ts b/sdk/maps/maps-render-rest/test/public/utils/recordedClient.ts index f61348658e30..25b9d233c177 100644 --- a/sdk/maps/maps-render-rest/test/public/utils/recordedClient.ts +++ b/sdk/maps/maps-render-rest/test/public/utils/recordedClient.ts @@ -1,12 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Context } from "mocha"; -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { env, Recorder } from "@azure-tools/test-recorder"; -import "./env"; -import type { MapsRenderClient } from "../../../src"; -import MapsRender from "../../../src"; +import "./env.js"; +import type { MapsRenderClient } from "../../../src/index.js"; +import MapsRender from "../../../src/index.js"; import type { ClientOptions } from "@azure-rest/core-client"; import { createTestCredential } from "@azure-tools/test-credential"; @@ -23,8 +22,8 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); +export async function createRecorder(context: TestInfo): Promise { + const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; } diff --git a/sdk/maps/maps-render-rest/tsconfig.browser.config.json b/sdk/maps/maps-render-rest/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/maps/maps-render-rest/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/maps/maps-render-rest/tsconfig.json b/sdk/maps/maps-render-rest/tsconfig.json index 29ac8612d4fc..b37095bd775d 100644 --- a/sdk/maps/maps-render-rest/tsconfig.json +++ b/sdk/maps/maps-render-rest/tsconfig.json @@ -1,10 +1,21 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", - "paths": { "@azure-rest/maps-render": ["./src/index"] }, - "lib": ["DOM"] + "paths": { + "@azure-rest/maps-render": ["./src/index"] + }, + "lib": ["DOM"], + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "./test/**/*.ts", "./samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/maps/maps-render-rest/vitest.browser.config.ts b/sdk/maps/maps-render-rest/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/maps/maps-render-rest/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/maps/maps-render-rest/vitest.config.ts b/sdk/maps/maps-render-rest/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/maps/maps-render-rest/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/maps/maps-route-rest/CHANGELOG.md b/sdk/maps/maps-route-rest/CHANGELOG.md index df8641c468bb..7ea24208c09e 100644 --- a/sdk/maps/maps-route-rest/CHANGELOG.md +++ b/sdk/maps/maps-route-rest/CHANGELOG.md @@ -1,17 +1,15 @@ # Release History -## 1.0.0-beta.4 (Unreleased) - -### Features Added +## 1.0.0-beta.4 (2024-12-10) ### Breaking Changes +- Poller creation is now asynchronous, requiring an await statement. The resumeFrom parameter has been replaced with restoreFrom, and state serialization is now also asynchronous. + ### Bugs Fixed - Fix the Microsoft Entra ID authentication when providing `baseUrl`. -### Other Changes - ## 1.0.0-beta.3 (2024-01-09) ### Features Added diff --git a/sdk/maps/maps-route-rest/api-extractor.json b/sdk/maps/maps-route-rest/api-extractor.json index 914d0d6f4f95..bdec5854157b 100644 --- a/sdk/maps/maps-route-rest/api-extractor.json +++ b/sdk/maps/maps-route-rest/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "mainEntryPointFilePath": "dist/esm/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/maps-route-rest.d.ts" + "publicTrimmedFilePath": "dist/maps-route-rest.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } } diff --git a/sdk/maps/maps-route-rest/karma.conf.js b/sdk/maps/maps-route-rest/karma.conf.js deleted file mode 100644 index 8793e336491d..000000000000 --- a/sdk/maps/maps-route-rest/karma.conf.js +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: ["TEST_MODE", "MAPS_RESOURCE_CLIENT_ID", "RECORDINGS_RELATIVE_PATH"], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/maps/maps-route-rest/package.json b/sdk/maps/maps-route-rest/package.json index fd669c6d8c68..67daef58053d 100644 --- a/sdk/maps/maps-route-rest/package.json +++ b/sdk/maps/maps-route-rest/package.json @@ -15,9 +15,9 @@ "route" ], "license": "MIT", - "main": "dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/maps-route-rest.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/maps-route-rest/README.md", "repository": "github:Azure/azure-sdk-for-js", "bugs": { @@ -25,11 +25,8 @@ }, "files": [ "dist/", - "dist-esm/src/", - "types/maps-route-rest.d.ts", "README.md", - "LICENSE", - "review/*" + "LICENSE" ], "//sampleConfiguration": { "productName": "Azure Maps Route", @@ -55,12 +52,12 @@ "node": ">=18.0.0" }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run bundle --browser-test false", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api", + "build:node": "dev-tool run build-package && dev-tool run bundle --browser-test false", "build:samples": "dev-tool samples publish --force", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", @@ -77,51 +74,75 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { "@azure-rest/core-client": "^1.0.0", + "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.3.0", - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^3.1.0", "@azure/core-rest-pipeline": "^1.8.0", "@azure/logger": "^1.0.0", "@azure/maps-common": "1.0.0-beta.2", "tslib": "^2.4.0" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "autorest": "latest", - "chai": "^4.2.0", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.49.0", + "typescript": "~5.6.2", + "vitest": "^2.1.5" }, - "browser": { - "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" + "browser": "./dist/browser/index.js", + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/maps/maps-route-rest/review/maps-route.api.md b/sdk/maps/maps-route-rest/review/maps-route.api.md index 49783e02fc99..7d6f27f25bc5 100644 --- a/sdk/maps/maps-route-rest/review/maps-route.api.md +++ b/sdk/maps/maps-route-rest/review/maps-route.api.md @@ -4,15 +4,16 @@ ```ts +import { AbortSignalLike } from '@azure/abort-controller'; import type { AzureKeyCredential } from '@azure/core-auth'; import type { AzureSASCredential } from '@azure/core-auth'; +import { CancelOnProgress } from '@azure/core-lro'; import { Client } from '@azure-rest/core-client'; -import type { ClientOptions } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; +import { CreateHttpPollerOptions } from '@azure/core-lro'; import { HttpResponse } from '@azure-rest/core-client'; import type { LatLon } from '@azure/maps-common'; -import { LroEngineOptions } from '@azure/core-lro'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { OperationState } from '@azure/core-lro'; import { RawHttpHeaders } from '@azure/core-rest-pipeline'; import { RequestParameters } from '@azure-rest/core-client'; import { StreamableMethod } from '@azure-rest/core-client'; @@ -30,33 +31,36 @@ export interface BatchRequestItem { // @public export interface BatchResultItemOutput { - statusCode: number; + readonly statusCode: number; } // @public export interface BatchResultOutput { - summary: BatchResultSummaryOutput; + readonly summary: BatchResultSummaryOutput; } // @public export interface BatchResultSummaryOutput { - successfulRequests: number; - totalRequests: number; + readonly successfulRequests: number; + readonly totalRequests: number; } +// @public (undocumented) +export function buildMultiCollection(items: string[], parameterName: string): string; + // @public export function createRouteDirectionsBatchRequest(queryParamProperties: RouteGetRouteDirectionsQueryParamProperties[]): BatchRequest; // @public export interface EffectiveSettingOutput { - key: string; - value: string; + readonly key: string; + readonly value: string; } // @public export interface ErrorDetailOutput { - code?: string; - message?: string; + readonly code?: string; + readonly message?: string; } // @public @@ -185,7 +189,7 @@ export interface GeoJsonPolygonData { } // @public -export function getLongRunningPoller(client: Client, initialResponse: TResult, options?: LroEngineOptions>): PollerLike, TResult>; +export function getLongRunningPoller(client: Client, initialResponse: TResult, options?: CreateHttpPollerOptions>): Promise, TResult>>; // @public (undocumented) export interface GetRouteDirections { @@ -234,6 +238,11 @@ export type MapsRouteClient = Client & { path: Routes; }; +// @public +export interface MapsRouteClientOptions extends ClientOptions { + apiVersion?: string; +} + // @public (undocumented) export interface RequestRouteDirectionsBatch { get(options?: RouteGetRouteDirectionsBatchParameters): StreamableMethod; @@ -266,7 +275,7 @@ export interface RouteDirectionParameters { // @public export interface RouteDirectionsBatchItemOutput extends BatchResultItemOutput { - response: RouteDirectionsBatchItemResponseOutput; + readonly response: RouteDirectionsBatchItemResponseOutput; } // @public @@ -275,15 +284,15 @@ export interface RouteDirectionsBatchItemResponseOutput extends RouteDirectionsO // @public export interface RouteDirectionsBatchResultOutput extends BatchResultOutput { - batchItems: Array; + readonly batchItems: Array; } // @public export interface RouteDirectionsOutput { - formatVersion?: string; - optimizedWaypoints?: Array; + readonly formatVersion?: string; + readonly optimizedWaypoints?: Array; report?: RouteReportOutput; - routes: Array; + readonly routes: Array; } // @public @@ -309,8 +318,6 @@ export interface RouteGetRouteDirectionsBatch202Headers { // @public export interface RouteGetRouteDirectionsBatch202Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) headers: RawHttpHeaders & RouteGetRouteDirectionsBatch202Headers; // (undocumented) @@ -366,7 +373,7 @@ export interface RouteGetRouteDirectionsQueryParamProperties { report?: "effectiveSettings"; routeRepresentation?: "polyline" | "summaryOnly" | "none"; routeType?: "fastest" | "shortest" | "eco" | "thrilling"; - sectionType?: "carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban"; + sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">; traffic?: boolean; travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian"; uphillEfficiency?: number; @@ -447,7 +454,7 @@ export interface RouteGetRouteDirectionsWithAdditionalParametersQueryParamProper report?: "effectiveSettings"; routeRepresentation?: "polyline" | "summaryOnly" | "none"; routeType?: "fastest" | "shortest" | "eco" | "thrilling"; - sectionType?: "carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban"; + sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">; traffic?: boolean; travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian"; uphillEfficiency?: number; @@ -479,8 +486,6 @@ export interface RouteGetRouteMatrix202Headers { // @public export interface RouteGetRouteMatrix202Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) headers: RawHttpHeaders & RouteGetRouteMatrix202Headers; // (undocumented) @@ -554,51 +559,51 @@ export interface RouteGetRouteRangeQueryParamProperties { // @public export interface RouteGuidanceOutput { - instructionGroups: Array; - instructions: Array; + readonly instructionGroups: Array; + readonly instructions: Array; } // @public export interface RouteInstructionGroupOutput { - firstInstructionIndex?: number; - groupLengthInMeters?: number; - groupMessage?: string; - lastInstructionIndex?: number; + readonly firstInstructionIndex?: number; + readonly groupLengthInMeters?: number; + readonly groupMessage?: string; + readonly lastInstructionIndex?: number; } // @public export interface RouteInstructionOutput { - combinedMessage?: string; - countryCode?: string; - drivingSide?: "LEFT" | "RIGHT"; - exitNumber?: string; + readonly combinedMessage?: string; + readonly countryCode?: string; + readonly drivingSide?: "LEFT" | "RIGHT"; + readonly exitNumber?: string; instructionType?: "TURN" | "ROAD_CHANGE" | "LOCATION_DEPARTURE" | "LOCATION_ARRIVAL" | "DIRECTION_INFO" | "LOCATION_WAYPOINT"; - junctionType?: "REGULAR" | "ROUNDABOUT" | "BIFURCATION"; - maneuver?: "ARRIVE" | "ARRIVE_LEFT" | "ARRIVE_RIGHT" | "DEPART" | "STRAIGHT" | "KEEP_RIGHT" | "BEAR_RIGHT" | "TURN_RIGHT" | "SHARP_RIGHT" | "KEEP_LEFT" | "BEAR_LEFT" | "TURN_LEFT" | "SHARP_LEFT" | "MAKE_UTURN" | "ENTER_MOTORWAY" | "ENTER_FREEWAY" | "ENTER_HIGHWAY" | "TAKE_EXIT" | "MOTORWAY_EXIT_LEFT" | "MOTORWAY_EXIT_RIGHT" | "TAKE_FERRY" | "ROUNDABOUT_CROSS" | "ROUNDABOUT_RIGHT" | "ROUNDABOUT_LEFT" | "ROUNDABOUT_BACK" | "TRY_MAKE_UTURN" | "FOLLOW" | "SWITCH_PARALLEL_ROAD" | "SWITCH_MAIN_ROAD" | "ENTRANCE_RAMP" | "WAYPOINT_LEFT" | "WAYPOINT_RIGHT" | "WAYPOINT_REACHED"; - message?: string; + readonly junctionType?: "REGULAR" | "ROUNDABOUT" | "BIFURCATION"; + readonly maneuver?: "ARRIVE" | "ARRIVE_LEFT" | "ARRIVE_RIGHT" | "DEPART" | "STRAIGHT" | "KEEP_RIGHT" | "BEAR_RIGHT" | "TURN_RIGHT" | "SHARP_RIGHT" | "KEEP_LEFT" | "BEAR_LEFT" | "TURN_LEFT" | "SHARP_LEFT" | "MAKE_UTURN" | "ENTER_MOTORWAY" | "ENTER_FREEWAY" | "ENTER_HIGHWAY" | "TAKE_EXIT" | "MOTORWAY_EXIT_LEFT" | "MOTORWAY_EXIT_RIGHT" | "TAKE_FERRY" | "ROUNDABOUT_CROSS" | "ROUNDABOUT_RIGHT" | "ROUNDABOUT_LEFT" | "ROUNDABOUT_BACK" | "TRY_MAKE_UTURN" | "FOLLOW" | "SWITCH_PARALLEL_ROAD" | "SWITCH_MAIN_ROAD" | "ENTRANCE_RAMP" | "WAYPOINT_LEFT" | "WAYPOINT_RIGHT" | "WAYPOINT_REACHED"; + readonly message?: string; point?: LatLongPairOutput; - pointIndex?: number; - possibleCombineWithNext?: boolean; - roadNumbers?: Array; - roundaboutExitNumber?: string; - routeOffsetInMeters?: number; - signpostText?: string; - stateCode?: string; - street?: string; - travelTimeInSeconds?: number; - turnAngleInDecimalDegrees?: number; + readonly pointIndex?: number; + readonly possibleCombineWithNext?: boolean; + readonly roadNumbers?: Array; + readonly roundaboutExitNumber?: number; + readonly routeOffsetInMeters?: number; + readonly signpostText?: string; + readonly stateCode?: string; + readonly street?: string; + readonly travelTimeInSeconds?: number; + readonly turnAngleInDecimalDegrees?: number; } // @public export interface RouteLegOutput { - points: Array; - summary: RouteSummaryOutput; + readonly points: Array; + readonly summary: RouteSummaryOutput; } // @public export interface RouteMatrixOutput { - response?: RouteMatrixResultResponseOutput; - statusCode: number; + readonly response?: RouteMatrixResultResponseOutput; + readonly statusCode: number; } // @public @@ -609,52 +614,52 @@ export interface RouteMatrixQuery { // @public export interface RouteMatrixResultOutput { - formatVersion?: string; - matrix: Array>; - summary: RouteMatrixSummaryOutput; + readonly formatVersion?: string; + readonly matrix: Array>; + readonly summary: RouteMatrixSummaryOutput; } // @public export interface RouteMatrixResultResponseOutput { - routeSummary?: RouteSummaryOutput; + readonly routeSummary?: RouteSummaryOutput; } // @public export interface RouteMatrixSummaryOutput { - successfulRoutes: number; - totalRoutes: number; + readonly successfulRoutes: number; + readonly totalRoutes: number; } // @public export interface RouteOptimizedWaypointOutput { - optimizedIndex: number; - providedIndex: number; + readonly optimizedIndex: number; + readonly providedIndex: number; } // @public (undocumented) export interface RouteOutput { - guidance?: RouteGuidanceOutput; - legs: Array; - sections?: Array; - summary: RouteSummaryOutput; + readonly guidance?: RouteGuidanceOutput; + readonly legs: Array; + readonly sections?: Array; + readonly summary: RouteSummaryOutput; } // @public export interface RouteRangeOutput { - boundary: Array; + readonly boundary: Array; center: LatLongPairOutput; } // @public export interface RouteRangeResultOutput { - formatVersion?: string; + readonly formatVersion?: string; reachableRange: RouteRangeOutput; report?: RouteReportOutput; } // @public export interface RouteReportOutput { - effectiveSettings: Array; + readonly effectiveSettings: Array; } // @public @@ -672,8 +677,6 @@ export interface RouteRequestRouteDirectionsBatch202Headers { // @public export interface RouteRequestRouteDirectionsBatch202Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) headers: RawHttpHeaders & RouteRequestRouteDirectionsBatch202Headers; // (undocumented) @@ -745,8 +748,6 @@ export interface RouteRequestRouteMatrix202Headers { // @public export interface RouteRequestRouteMatrix202Response extends HttpResponse { - // (undocumented) - body: Record; // (undocumented) headers: RawHttpHeaders & RouteRequestRouteMatrix202Headers; // (undocumented) @@ -780,7 +781,7 @@ export interface RouteRequestRouteMatrixQueryParamProperties { departAt?: Date | string; hilliness?: "low" | "normal" | "high"; routeType?: "fastest" | "shortest" | "eco" | "thrilling"; - sectionType?: "carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban"; + sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">; traffic?: boolean; travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian"; vehicleAxleWeight?: number; @@ -845,7 +846,7 @@ export interface RouteRequestRouteMatrixSyncQueryParamProperties { departAt?: Date | string; hilliness?: "low" | "normal" | "high"; routeType?: "fastest" | "shortest" | "eco" | "thrilling"; - sectionType?: "carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban"; + sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">; traffic?: boolean; travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian"; vehicleAxleWeight?: number; @@ -871,36 +872,58 @@ export interface Routes { // @public export interface RouteSectionOutput { - delayInSeconds?: number; - effectiveSpeedInKmh?: number; - endPointIndex: number; - magnitudeOfDelay?: "0" | "1" | "2" | "3" | "4"; - sectionType: "CAR_TRAIN" | "COUNTRY" | "FERRY" | "MOTORWAY" | "PEDESTRIAN" | "TOLL_ROAD" | "TOLL_VIGNETTE" | "TRAFFIC" | "TRAVEL_MODE" | "TUNNEL" | "CARPOOL" | "URBAN"; - simpleCategory?: "JAM" | "ROAD_WORK" | "ROAD_CLOSURE" | "OTHER"; - startPointIndex: number; + readonly delayInSeconds?: number; + readonly effectiveSpeedInKmh?: number; + readonly endPointIndex: number; + readonly magnitudeOfDelay?: "0" | "1" | "2" | "3" | "4"; + readonly sectionType: "CAR_TRAIN" | "COUNTRY" | "FERRY" | "MOTORWAY" | "PEDESTRIAN" | "TOLL_ROAD" | "TOLL_VIGNETTE" | "TRAFFIC" | "TRAVEL_MODE" | "TUNNEL" | "CARPOOL" | "URBAN"; + readonly simpleCategory?: "JAM" | "ROAD_WORK" | "ROAD_CLOSURE" | "OTHER"; + readonly startPointIndex: number; tec?: RouteSectionTecOutput; - travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian" | "other"; + readonly travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian" | "other"; } // @public export interface RouteSectionTecCauseOutput { - mainCauseCode?: number; - subCauseCode?: number; + readonly mainCauseCode?: number; + readonly subCauseCode?: number; } // @public export interface RouteSectionTecOutput { causes?: Array; - effectCode?: number; + readonly effectCode?: number; } // @public export interface RouteSummaryOutput { - arrivalTime: string; - departureTime: string; - lengthInMeters: number; - trafficDelayInSeconds: number; - travelTimeInSeconds: number; + readonly arrivalTime: string; + readonly departureTime: string; + readonly lengthInMeters: number; + readonly trafficDelayInSeconds: number; + readonly travelTimeInSeconds: number; +} + +// @public +export interface SimplePollerLike, TResult> { + getOperationState(): TState; + getResult(): TResult | undefined; + isDone(): boolean; + // @deprecated + isStopped(): boolean; + onProgress(callback: (state: TState) => void): CancelOnProgress; + poll(options?: { + abortSignal?: AbortSignalLike; + }): Promise; + pollUntilDone(pollOptions?: { + abortSignal?: AbortSignalLike; + }): Promise; + serialize(): Promise; + // @deprecated + stopPolling(): void; + submitted(): Promise; + // @deprecated + toString(): string; } // @public diff --git a/sdk/maps/maps-route-rest/samples-dev/directions.ts b/sdk/maps/maps-route-rest/samples-dev/directions.ts index 291ad5ab4ff1..178863031eee 100644 --- a/sdk/maps/maps-route-rest/samples-dev/directions.ts +++ b/sdk/maps/maps-route-rest/samples-dev/directions.ts @@ -6,16 +6,13 @@ */ import { DefaultAzureCredential } from "@azure/identity"; +import type { RouteRequestRouteDirectionsBatchSync200Response } from "@azure-rest/maps-route"; import MapsRoute, { createRouteDirectionsBatchRequest, isUnexpected, toColonDelimitedLatLonString, - RouteRequestRouteDirectionsBatchSync200Response, } from "@azure-rest/maps-route"; - -// Load the .env file if it exists -import * as dotenv from "dotenv"; -dotenv.config(); +import "dotenv/config"; async function main(): Promise { /** diff --git a/sdk/maps/maps-route-rest/samples-dev/lro.ts b/sdk/maps/maps-route-rest/samples-dev/lro.ts index 4024666d8973..7f67f2e4868e 100644 --- a/sdk/maps/maps-route-rest/samples-dev/lro.ts +++ b/sdk/maps/maps-route-rest/samples-dev/lro.ts @@ -6,15 +6,13 @@ */ import { DefaultAzureCredential } from "@azure/identity"; +import type { RouteGetRouteDirectionsBatch200Response } from "@azure-rest/maps-route"; import MapsRoute, { createRouteDirectionsBatchRequest, getLongRunningPoller, - RouteGetRouteDirectionsBatch200Response, toColonDelimitedLatLonString, } from "@azure-rest/maps-route"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * We use "/route/directions/batch/" in this example. @@ -67,7 +65,7 @@ async function main(): Promise { body: request, }); - const poller = getLongRunningPoller(client, response); + const poller = await getLongRunningPoller(client, response); /** Wait until the total request is done */ const finalResult = await poller.pollUntilDone(); logBatchResponse(finalResult as RouteGetRouteDirectionsBatch200Response); diff --git a/sdk/maps/maps-route-rest/samples-dev/matrix.ts b/sdk/maps/maps-route-rest/samples-dev/matrix.ts index a03cd7f6a1e0..ecec712ddf4f 100644 --- a/sdk/maps/maps-route-rest/samples-dev/matrix.ts +++ b/sdk/maps/maps-route-rest/samples-dev/matrix.ts @@ -6,11 +6,9 @@ */ import { DefaultAzureCredential } from "@azure/identity"; -import MapsRoute, { RouteGetRouteMatrix200Response, isUnexpected } from "@azure-rest/maps-route"; - -// Load the .env file if it exists -import * as dotenv from "dotenv"; -dotenv.config(); +import type { RouteGetRouteMatrix200Response } from "@azure-rest/maps-route"; +import MapsRoute, { isUnexpected } from "@azure-rest/maps-route"; +import "dotenv/config"; async function main(): Promise { /** diff --git a/sdk/maps/maps-route-rest/samples-dev/range.ts b/sdk/maps/maps-route-rest/samples-dev/range.ts index e15398c7ebdf..6f0dcc508328 100644 --- a/sdk/maps/maps-route-rest/samples-dev/range.ts +++ b/sdk/maps/maps-route-rest/samples-dev/range.ts @@ -7,10 +7,7 @@ import { DefaultAzureCredential } from "@azure/identity"; import MapsRoute, { isUnexpected } from "@azure-rest/maps-route"; - -// Load the .env file if it exists -import * as dotenv from "dotenv"; -dotenv.config(); +import "dotenv/config"; async function main(): Promise { /** diff --git a/sdk/maps/maps-route-rest/samples-dev/resumeLro.ts b/sdk/maps/maps-route-rest/samples-dev/resumeLro.ts index ae149cf459f1..58e70c764817 100644 --- a/sdk/maps/maps-route-rest/samples-dev/resumeLro.ts +++ b/sdk/maps/maps-route-rest/samples-dev/resumeLro.ts @@ -6,15 +6,13 @@ */ import { DefaultAzureCredential } from "@azure/identity"; +import type { RouteGetRouteDirectionsBatch200Response } from "@azure-rest/maps-route"; import MapsRoute, { createRouteDirectionsBatchRequest, getLongRunningPoller, - RouteGetRouteDirectionsBatch200Response, toColonDelimitedLatLonString, } from "@azure-rest/maps-route"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * With the help from the long running operation poller, we can resume a long running request. @@ -70,14 +68,13 @@ async function main(): Promise { body: request, }); - const initialPoller = getLongRunningPoller(client, initialResponse); + const initialPoller = await getLongRunningPoller(client, initialResponse); /* We can get a partial of the results first */ - await initialPoller.poll(); /** Serialized the current operation for future poller */ - const serializedState = initialPoller.toString(); + const serializedState = await initialPoller.serialize(); /** Use the `resumeFrom` option to rehydrate the previous operation */ - const rehydratedPoller = getLongRunningPoller(client, initialResponse, { - resumeFrom: serializedState, + const rehydratedPoller = await getLongRunningPoller(client, initialResponse, { + restoreFrom: serializedState, }); const { body: { summary, batchItems }, diff --git a/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/lro.ts b/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/lro.ts index 4024666d8973..c262d1cd3185 100644 --- a/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/lro.ts +++ b/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/lro.ts @@ -67,7 +67,7 @@ async function main(): Promise { body: request, }); - const poller = getLongRunningPoller(client, response); + const poller = await getLongRunningPoller(client, response); /** Wait until the total request is done */ const finalResult = await poller.pollUntilDone(); logBatchResponse(finalResult as RouteGetRouteDirectionsBatch200Response); diff --git a/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/matrix.ts b/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/matrix.ts index 19b651ed9852..a03cd7f6a1e0 100644 --- a/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/matrix.ts +++ b/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/matrix.ts @@ -73,7 +73,7 @@ async function main(): Promise { ); matrix.forEach((row) => { row.forEach((cell) => { - if(cell.response) console.dir(cell.response.routeSummary); + if (cell.response) console.dir(cell.response.routeSummary); }); }); } diff --git a/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/range.ts b/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/range.ts index c2a03c580ab4..e15398c7ebdf 100644 --- a/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/range.ts +++ b/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/range.ts @@ -12,7 +12,7 @@ import MapsRoute, { isUnexpected } from "@azure-rest/maps-route"; import * as dotenv from "dotenv"; dotenv.config(); -async function main():Promise { +async function main(): Promise { /** * Azure Maps supports two ways to authenticate requests: * - Shared Key authentication (subscription-key) diff --git a/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/resumeLro.ts b/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/resumeLro.ts index a06c9fd9f322..7a348a14f1aa 100644 --- a/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/resumeLro.ts +++ b/sdk/maps/maps-route-rest/samples/v1-beta/typescript/src/resumeLro.ts @@ -70,14 +70,14 @@ async function main(): Promise { body: request, }); - const initialPoller = getLongRunningPoller(client, initialResponse); + const initialPoller = await getLongRunningPoller(client, initialResponse); /* We can get a partial of the results first */ await initialPoller.poll(); /** Serialized the current operation for future poller */ - const serializedState = initialPoller.toString(); + const serializedState = await initialPoller.serialize(); /** Use the `resumeFrom` option to rehydrate the previous operation */ - const rehydratedPoller = getLongRunningPoller(client, initialResponse, { - resumeFrom: serializedState, + const rehydratedPoller = await getLongRunningPoller(client, initialResponse, { + restoreFrom: serializedState, }); const { body: { summary, batchItems }, diff --git a/sdk/maps/maps-route-rest/src/generated/clientDefinitions.ts b/sdk/maps/maps-route-rest/src/generated/clientDefinitions.ts index 2bec63dc425b..30b0d6044e49 100644 --- a/sdk/maps/maps-route-rest/src/generated/clientDefinitions.ts +++ b/sdk/maps/maps-route-rest/src/generated/clientDefinitions.ts @@ -10,8 +10,8 @@ import { RouteGetRouteRangeParameters, RouteRequestRouteDirectionsBatchParameters, RouteGetRouteDirectionsBatchParameters, - RouteRequestRouteDirectionsBatchSyncParameters -} from "./parameters"; + RouteRequestRouteDirectionsBatchSyncParameters, +} from "./parameters.js"; import { RouteRequestRouteMatrix200Response, RouteRequestRouteMatrix202Response, @@ -32,16 +32,14 @@ import { RouteGetRouteDirectionsBatch202Response, RouteRequestRouteDirectionsBatchSync200Response, RouteRequestRouteDirectionsBatchSync408Response, - RouteRequestRouteDirectionsBatchSyncDefaultResponse -} from "./responses"; + RouteRequestRouteDirectionsBatchSyncDefaultResponse, +} from "./responses.js"; import { Client, StreamableMethod } from "@azure-rest/core-client"; export interface RequestRouteMatrix { /** * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * - * The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. + * The `Post Route Matrix` API is an HTTP `POST` request that allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) request. To make a synchronous (sync) request, see [Post Route Matrix Sync](/rest/api/maps/route/post-route-matrix-sync). For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. * * * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API. @@ -49,6 +47,9 @@ export interface RequestRouteMatrix { * * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations). * + * > [!NOTE] + * > All origins and destinations should be contained in an axis-aligned 400 km x 400 km bounding box. Otherwise some matrix cells will be resolved as OUT_OF_REGION. + * * * * ### Submit Synchronous Route Matrix Request @@ -65,7 +66,7 @@ export interface RequestRouteMatrix { * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square). * * - * The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period. + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. * * * @@ -109,14 +110,58 @@ export interface RequestRouteMatrix { * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results. */ post( - options: RouteRequestRouteMatrixParameters + options: RouteRequestRouteMatrixParameters, ): StreamableMethod< RouteRequestRouteMatrix200Response | RouteRequestRouteMatrix202Response >; /** - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). * - * If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following: + * The `Get Route Matrix` API is an HTTP `GET` request that computes the travel time and distance for all possible pairs in a list of origins and destinations. Unlike the [Get Route Directions](/rest/api/maps/route/get-route-directions) API, which provide detailed route instructions, this API focuses on efficiency by giving you the cost (travel time and distance) of routing from each origin to every destination. For more information, see [Best practices for Azure Maps Route service](/azure/azure-maps/how-to-use-best-practices-for-routing). + * + * For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. + * + * + * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API. + * + * + * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations). + * + * + * + * ### Submit Synchronous Route Matrix Request + * If your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square). + * + * ``` + * GET https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key} + * ``` + * + * ### Submit Asynchronous Route Matrix Request + * The Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds. + * + * + * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square). + * + * + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. + * + * + * + * + * ``` + * GET https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key} + * ``` + * + * Here's a typical sequence of asynchronous operations: + * 1. Client sends a Route Matrix GET request to Azure Maps + * + * 2. The server will respond with one of the following: + * + * > HTTP `202 Accepted` - Route Matrix request has been accepted. + * + * > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code. + * + * + * 3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following: * * ``` * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key} @@ -126,7 +171,7 @@ export interface RequestRouteMatrix { * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results * * ### Download Sync Results - * When you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later. + * When you make a GET request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later. * * ### Download Async Results * When a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following: @@ -141,7 +186,7 @@ export interface RequestRouteMatrix { * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results. */ get( - options?: RouteGetRouteMatrixParameters + options?: RouteGetRouteMatrixParameters, ): StreamableMethod< RouteGetRouteMatrix200Response | RouteGetRouteMatrix202Response >; @@ -150,9 +195,7 @@ export interface RequestRouteMatrix { export interface RequestRouteMatrixSync { /** * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * - * The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. + * The `Post Route Matrix Sync` API is an HTTP `POST` request that allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using a single synchronous (sync) request. To make an asynchronous (async) request, see [Post Route Matrix](/rest/api/maps/route/post-route-matrix). For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. * * * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API. @@ -176,7 +219,7 @@ export interface RequestRouteMatrixSync { * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square). * * - * The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period. + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. * * * @@ -220,7 +263,7 @@ export interface RequestRouteMatrixSync { * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results. */ post( - options: RouteRequestRouteMatrixSyncParameters + options: RouteRequestRouteMatrixSyncParameters, ): StreamableMethod< | RouteRequestRouteMatrixSync200Response | RouteRequestRouteMatrixSync408Response @@ -230,32 +273,28 @@ export interface RequestRouteMatrixSync { export interface GetRouteDirections { /** - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * * - * Returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. + * The `Get Route Directions` API is an HTTP `GET` request that returns a route between an origin and a destination, passing through waypoints if specified. The route takes into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. * * Information returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected. * - * Routing service provides a set of parameters for a detailed description of vehicle-specific Consumption Model. Please check [Consumption Model](https://docs.microsoft.com/azure/azure-maps/consumption-model) for detailed explanation of the concepts and parameters involved. + * Routing service provides a set of parameters for a detailed description of a vehicle-specific consumption model. For more information, see [Consumption Model](/azure/azure-maps/consumption-model). */ get( - options: RouteGetRouteDirectionsParameters + options: RouteGetRouteDirectionsParameters, ): StreamableMethod< RouteGetRouteDirections200Response | RouteGetRouteDirectionsDefaultResponse >; /** - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * * - * Returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. + * The `Post Route Directions` API is an HTTP `POST` request that returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. * * Information returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected. * * Routing service provides a set of parameters for a detailed description of a vehicle-specific Consumption Model. Please check [Consumption Model](https://docs.microsoft.com/azure/azure-maps/consumption-model) for detailed explanation of the concepts and parameters involved. */ post( - options: RouteGetRouteDirectionsWithAdditionalParametersParameters + options: RouteGetRouteDirectionsWithAdditionalParametersParameters, ): StreamableMethod< | RouteGetRouteDirectionsWithAdditionalParameters200Response | RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse @@ -264,17 +303,13 @@ export interface GetRouteDirections { export interface GetRouteRange { /** - * __Route Range (Isochrone) API__ * + * The `Get Route Range` (Isochrone) API is an HTTP `GET` request that will calculate a set of locations that can be reached from the origin point based on fuel, energy, time or distance budget that is specified. A polygon boundary (or Isochrone) is returned in a counterclockwise orientation as well as the precise polygon center which was the result of the origin point. * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * - * This service will calculate a set of locations that can be reached from the origin point based on fuel, energy, time or distance budget that is specified. A polygon boundary (or Isochrone) is returned in a counterclockwise orientation as well as the precise polygon center which was the result of the origin point. - * - * The returned polygon can be used for further processing such as [Search Inside Geometry](https://docs.microsoft.com/rest/api/maps/search/postsearchinsidegeometry) to search for POIs within the provided Isochrone. + * The returned polygon can be used for further processing such as [Search Inside Geometry](/rest/api/maps/search/post-search-inside-geometry) to search for POIs within the provided isochrone. */ get( - options: RouteGetRouteRangeParameters + options: RouteGetRouteRangeParameters, ): StreamableMethod< RouteGetRouteRange200Response | RouteGetRouteRangeDefaultResponse >; @@ -282,14 +317,9 @@ export interface GetRouteRange { export interface RequestRouteDirectionsBatch { /** - * **Route Directions Batch API** - * - * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). * + * The `Post Route Directions Batch` API is an HTTP `POST` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single asynchronous request. You can call `Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. To call the `Post Route Directions Batch` API in a synchronous request, see [Post Route Directions Batch Sync](/rest/api/maps/route/post-route-directions-batch-sync). * - * - * The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. * ### Submit Asynchronous Batch Request * The Asynchronous API is appropriate for processing big volumes of relatively complex route requests * - It allows the retrieval of results in a separate call (multiple downloads are possible). @@ -297,10 +327,13 @@ export interface RequestRouteDirectionsBatch { * - The number of batch items is limited to **700** for this API. * * When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. - * The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period. + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. * - * Please note that asynchronous batch request is a long-running request. Here's a typical sequence of operations: - * 1. Client sends a Route Directions Batch `POST` request to Azure Maps + * Please note that asynchronous batch request is a long-running operation. Here's a typical sequence of operations: + * 1. Client sends a Route Directions Batch `POST` request to Azure Maps. + * ``` + * POST https://atlas.microsoft.com/route/directions/batch/json?api-version=1.0&subscription-key={subscription-key} + * ``` * 2. The server will respond with one of the following: * * > HTTP `202 Accepted` - Batch request has been accepted. @@ -309,9 +342,9 @@ export interface RequestRouteDirectionsBatch { * * 3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request. * This status URI looks like following: - * - * ``` GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0 ``` - * Note:- Please remember to add AUTH information (subscription-key/azure_auth - See [Security](#security)) to the _status URI_ before running it.
+ * ``` + * GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key} + * ``` * 4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results. * * ### POST Body for Batch Request @@ -433,13 +466,14 @@ export interface RequestRouteDirectionsBatch { * ``` */ post( - options: RouteRequestRouteDirectionsBatchParameters + options: RouteRequestRouteDirectionsBatchParameters, ): StreamableMethod< | RouteRequestRouteDirectionsBatch200Response | RouteRequestRouteDirectionsBatch202Response >; /** - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). + * + * The `Get Route Directions Batch` API is an HTTP `GET` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single request. You can call `Get Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. * * ### Download Asynchronous Batch Results * To download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following: @@ -540,7 +574,7 @@ export interface RequestRouteDirectionsBatch { * ``` */ get( - options?: RouteGetRouteDirectionsBatchParameters + options?: RouteGetRouteDirectionsBatchParameters, ): StreamableMethod< | RouteGetRouteDirectionsBatch200Response | RouteGetRouteDirectionsBatch202Response @@ -549,14 +583,8 @@ export interface RequestRouteDirectionsBatch { export interface RequestRouteDirectionsBatchSync { /** - * **Route Directions Batch API** - * - * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * - * * - * The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. + * The `Post Route Directions Batch Sync` API is an HTTP `POST` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single synchronous request. You can call `Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. To call the `Post Route Directions Batch` API in a asynchronous request, see [Post Route Directions Batch](/rest/api/maps/route/post-route-directions-batch). * ### Submit Synchronous Batch Request * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. * ``` @@ -645,7 +673,7 @@ export interface RequestRouteDirectionsBatchSync { * ``` */ post( - options: RouteRequestRouteDirectionsBatchSyncParameters + options: RouteRequestRouteDirectionsBatchSyncParameters, ): StreamableMethod< | RouteRequestRouteDirectionsBatchSync200Response | RouteRequestRouteDirectionsBatchSync408Response @@ -661,19 +689,19 @@ export interface Routes { /** Resource for '/route/directions/\{format\}' has methods for the following verbs: get, post */ ( path: "/route/directions/{format}", - format: "json" | "xml" + format: "json" | "xml", ): GetRouteDirections; /** Resource for '/route/range/\{format\}' has methods for the following verbs: get */ (path: "/route/range/{format}", format: "json" | "xml"): GetRouteRange; /** Resource for '/route/directions/batch/\{format\}' has methods for the following verbs: post, get */ ( path: "/route/directions/batch/{format}", - format: "json" + format: "json", ): RequestRouteDirectionsBatch; /** Resource for '/route/directions/batch/sync/\{format\}' has methods for the following verbs: post */ ( path: "/route/directions/batch/sync/{format}", - format: "json" + format: "json", ): RequestRouteDirectionsBatchSync; } diff --git a/sdk/maps/maps-route-rest/src/generated/index.ts b/sdk/maps/maps-route-rest/src/generated/index.ts index 319f352415ae..581a3f200682 100644 --- a/sdk/maps/maps-route-rest/src/generated/index.ts +++ b/sdk/maps/maps-route-rest/src/generated/index.ts @@ -1,15 +1,16 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import MapsRouteClient from "./mapsRouteClient"; +import MapsRouteClient from "./mapsRouteClient.js"; -export * from "./mapsRouteClient"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; -export * from "./pollingHelper"; +export * from "./mapsRouteClient.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; +export * from "./pollingHelper.js"; +export * from "./serializeHelper.js"; export default MapsRouteClient; diff --git a/sdk/maps/maps-route-rest/src/generated/isUnexpected.ts b/sdk/maps/maps-route-rest/src/generated/isUnexpected.ts index 70e131f17979..165c00027d02 100644 --- a/sdk/maps/maps-route-rest/src/generated/isUnexpected.ts +++ b/sdk/maps/maps-route-rest/src/generated/isUnexpected.ts @@ -13,45 +13,45 @@ import { RouteGetRouteRangeDefaultResponse, RouteRequestRouteDirectionsBatchSync200Response, RouteRequestRouteDirectionsBatchSync408Response, - RouteRequestRouteDirectionsBatchSyncDefaultResponse -} from "./responses"; + RouteRequestRouteDirectionsBatchSyncDefaultResponse, +} from "./responses.js"; const responseMap: Record = { - "POST /route/matrix/{format}": ["200", "202"], "GET /route/matrix/{format}": ["200", "202"], + "POST /route/matrix/{format}": ["200", "202"], "POST /route/matrix/sync/{format}": ["200"], "GET /route/directions/{format}": ["200"], "POST /route/directions/{format}": ["200"], "GET /route/range/{format}": ["200"], - "POST /route/directions/batch/{format}": ["200", "202"], "GET /route/directions/batch/{format}": ["200", "202"], - "POST /route/directions/batch/sync/{format}": ["200"] + "POST /route/directions/batch/{format}": ["200", "202"], + "POST /route/directions/batch/sync/{format}": ["200"], }; export function isUnexpected( response: | RouteRequestRouteMatrixSync200Response | RouteRequestRouteMatrixSync408Response - | RouteRequestRouteMatrixSyncDefaultResponse + | RouteRequestRouteMatrixSyncDefaultResponse, ): response is RouteRequestRouteMatrixSync408Response; export function isUnexpected( response: | RouteGetRouteDirections200Response - | RouteGetRouteDirectionsDefaultResponse + | RouteGetRouteDirectionsDefaultResponse, ): response is RouteGetRouteDirectionsDefaultResponse; export function isUnexpected( response: | RouteGetRouteDirectionsWithAdditionalParameters200Response - | RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse + | RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse, ): response is RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse; export function isUnexpected( - response: RouteGetRouteRange200Response | RouteGetRouteRangeDefaultResponse + response: RouteGetRouteRange200Response | RouteGetRouteRangeDefaultResponse, ): response is RouteGetRouteRangeDefaultResponse; export function isUnexpected( response: | RouteRequestRouteDirectionsBatchSync200Response | RouteRequestRouteDirectionsBatchSync408Response - | RouteRequestRouteDirectionsBatchSyncDefaultResponse + | RouteRequestRouteDirectionsBatchSyncDefaultResponse, ): response is RouteRequestRouteDirectionsBatchSync408Response; export function isUnexpected( response: @@ -66,7 +66,7 @@ export function isUnexpected( | RouteGetRouteRangeDefaultResponse | RouteRequestRouteDirectionsBatchSync200Response | RouteRequestRouteDirectionsBatchSync408Response - | RouteRequestRouteDirectionsBatchSyncDefaultResponse + | RouteRequestRouteDirectionsBatchSyncDefaultResponse, ): response is | RouteRequestRouteMatrixSync408Response | RouteRequestRouteMatrixSyncDefaultResponse @@ -80,14 +80,20 @@ export function isUnexpected( const method = response.request.method; let pathDetails = responseMap[`${method} ${url.pathname}`]; if (!pathDetails) { - pathDetails = geParametrizedPathSuccess(method, url.pathname); + pathDetails = getParametrizedPathSuccess(method, url.pathname); } return !pathDetails.includes(response.status); } -function geParametrizedPathSuccess(method: string, path: string): string[] { +function getParametrizedPathSuccess(method: string, path: string): string[] { const pathParts = path.split("/"); + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, + matchedValue: string[] = []; + // Iterate the responseMap to find a match for (const [key, value] of Object.entries(responseMap)) { // Extracting the path from the map key which is in format @@ -99,49 +105,52 @@ function geParametrizedPathSuccess(method: string, path: string): string[] { // Get each part of the url path const candidateParts = candidatePath.split("/"); - // If the candidate and actual paths don't match in size - // we move on to the next candidate path - if ( - candidateParts.length === pathParts.length && - hasParametrizedPath(key) + // track if we have found a match to return the values found. + let found = true; + for ( + let i = candidateParts.length - 1, j = pathParts.length - 1; + i >= 1 && j >= 1; + i--, j-- ) { - // track if we have found a match to return the values found. - let found = true; - for (let i = 0; i < candidateParts.length; i++) { - if ( - candidateParts[i]?.startsWith("{") && - candidateParts[i]?.endsWith("}") - ) { - // If the current part of the candidate is a "template" part - // it is a match with the actual path part on hand - // skip as the parameterized part can match anything - continue; - } + if ( + candidateParts[i]?.startsWith("{") && + candidateParts[i]?.indexOf("}") !== -1 + ) { + const start = candidateParts[i]!.indexOf("}") + 1, + end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp( + `${candidateParts[i]?.slice(start, end)}`, + ).test(pathParts[j] || ""); - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[i]) { + if (!isMatched) { found = false; break; } + continue; } - // We finished evaluating the current candidate parts - // if all parts matched we return the success values form - // the path mapping. - if (found) { - return value; + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; } } - } - // No match was found, return an empty array. - return []; -} + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } -function hasParametrizedPath(path: string): boolean { - return path.includes("/{"); + return matchedValue; } function getPathFromMapKey(mapKey: string): string { diff --git a/sdk/maps/maps-route-rest/src/generated/logger.ts b/sdk/maps/maps-route-rest/src/generated/logger.ts new file mode 100644 index 000000000000..ddecb3ca6580 --- /dev/null +++ b/sdk/maps/maps-route-rest/src/generated/logger.ts @@ -0,0 +1,5 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { createClientLogger } from "@azure/logger"; +export const logger = createClientLogger("maps-route"); diff --git a/sdk/maps/maps-route-rest/src/generated/mapsRouteClient.ts b/sdk/maps/maps-route-rest/src/generated/mapsRouteClient.ts index 52612ede8616..cbe76d274bc1 100644 --- a/sdk/maps/maps-route-rest/src/generated/mapsRouteClient.ts +++ b/sdk/maps/maps-route-rest/src/generated/mapsRouteClient.ts @@ -2,27 +2,28 @@ // Licensed under the MIT License. import { getClient, ClientOptions } from "@azure-rest/core-client"; +import { logger } from "./logger.js"; import { KeyCredential } from "@azure/core-auth"; -import { MapsRouteClient } from "./clientDefinitions"; +import { MapsRouteClient } from "./clientDefinitions.js"; + +/** The optional parameters for the client */ +export interface MapsRouteClientOptions extends ClientOptions { + /** The api version option of the client */ + apiVersion?: string; +} /** - * Initialize a new instance of the class MapsRouteClient class. - * @param credentials type: KeyCredential + * Initialize a new instance of `MapsRouteClient` + * @param credentials - uniquely identify client credential + * @param options - the parameter for all optional parameters */ export default function createClient( credentials: KeyCredential, - options: ClientOptions = {} + { apiVersion = "1.0", ...options }: MapsRouteClientOptions = {}, ): MapsRouteClient { - const baseUrl = options.baseUrl ?? `https://atlas.microsoft.com`; - options.apiVersion = options.apiVersion ?? "1.0"; - options = { - ...options, - credentials: { - apiKeyHeaderName: "subscription-key" - } - }; - - const userAgentInfo = `azsdk-js-maps-route-rest/1.0.0-beta.1`; + const endpointUrl = + options.endpoint ?? options.baseUrl ?? `https://atlas.microsoft.com`; + const userAgentInfo = `azsdk-js-maps-route-rest/1.0.0-beta.4`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` @@ -30,11 +31,38 @@ export default function createClient( options = { ...options, userAgentOptions: { - userAgentPrefix - } + userAgentPrefix, + }, + loggingOptions: { + logger: options.loggingOptions?.logger ?? logger.info, + }, + credentials: { + apiKeyHeaderName: + options.credentials?.apiKeyHeaderName ?? "subscription-key", + }, }; + const client = getClient( + endpointUrl, + credentials, + options, + ) as MapsRouteClient; + + client.pipeline.removePolicy({ name: "ApiVersionPolicy" }); + client.pipeline.addPolicy({ + name: "ClientApiVersionPolicy", + sendRequest: (req, next) => { + // Use the apiVersion defined in request url directly + // Append one if there is no apiVersion and we have one at client options + const url = new URL(req.url); + if (!url.searchParams.get("api-version") && apiVersion) { + req.url = `${req.url}${ + Array.from(url.searchParams.keys()).length > 0 ? "&" : "?" + }api-version=${apiVersion}`; + } - const client = getClient(baseUrl, credentials, options) as MapsRouteClient; + return next(req); + }, + }); return client; } diff --git a/sdk/maps/maps-route-rest/src/generated/models.ts b/sdk/maps/maps-route-rest/src/generated/models.ts index c87f088f0c53..4431efd2086b 100644 --- a/sdk/maps/maps-route-rest/src/generated/models.ts +++ b/sdk/maps/maps-route-rest/src/generated/models.ts @@ -64,9 +64,9 @@ export interface RouteDirectionParameters { * ignored for the calculation of the reference route's travel time and traffic delay. */ supportingPoints?: Record; - /** This is a list of 3-character, ISO 3166-1, alpha-3 country codes of countries in which all toll roads with vignettes are to be avoided, e.g. "AUS,CHE". Toll roads with vignettes in countries not in the list are unaffected. Note: It is an error to specify both **avoidVignette** and **allowVignette**. */ + /** This is a list of 3-character, ISO 3166-1, alpha-3 country codes of countries/regions in which all toll roads with vignettes are to be avoided, e.g. "AUS,CHE". Toll roads with vignettes in countries/regions not in the list are unaffected. Note: It is an error to specify both **avoidVignette** and **allowVignette**. */ avoidVignette?: Array; - /** This is a list of 3-character, ISO 3166-1, alpha-3 country codes of countries in which toll roads with vignettes are allowed, e.g. "AUS,CHE". Specifying **allowVignette** with some countries X is equivalent to specifying **avoidVignette** with all countries but X. Specifying **allowVignette** with an empty list is the same as avoiding all toll roads with vignettes. Note: It is an error to specify both **avoidVignette** and **allowVignette**. */ + /** This is a list of 3-character, ISO 3166-1, alpha-3 country codes of countries/regions in which toll roads with vignettes are allowed, e.g. "AUS,CHE". Specifying **allowVignette** with some countries/regions X is equivalent to specifying **avoidVignette** with all countries/regions but X. Specifying **allowVignette** with an empty list is the same as avoiding all toll roads with vignettes. Note: It is an error to specify both **avoidVignette** and **allowVignette**. */ allowVignette?: Array; /** A GeoJSON MultiPolygon representing list of areas to avoid. Only rectangle polygons are supported. The maximum size of a rectangle is about 160x160 km. Maximum number of avoided areas is **10**. It cannot cross the 180th meridian. It must be between -80 and +80 degrees of latitude. */ avoidAreas?: GeoJsonMultiPolygon; diff --git a/sdk/maps/maps-route-rest/src/generated/outputModels.ts b/sdk/maps/maps-route-rest/src/generated/outputModels.ts index 21c02bbd7e21..e5c169e5885f 100644 --- a/sdk/maps/maps-route-rest/src/generated/outputModels.ts +++ b/sdk/maps/maps-route-rest/src/generated/outputModels.ts @@ -4,47 +4,47 @@ /** This object is returned from a successful Route Matrix call. For ex, if 2 origins and 3 destinations are provided, there are going to 2 arrays with 3 elements in each. Each element's content depends on the options provided in the query. */ export interface RouteMatrixResultOutput { /** Format Version property */ - formatVersion?: string; + readonly formatVersion?: string; /** Results as a 2 dimensional array of route summaries. */ - matrix: Array>; + readonly matrix: Array>; /** Summary object */ - summary: RouteMatrixSummaryOutput; + readonly summary: RouteMatrixSummaryOutput; } /** Matrix result object */ export interface RouteMatrixOutput { /** StatusCode property for the current cell in the input matrix. */ - statusCode: number; + readonly statusCode: number; /** Response object of the current cell in the input matrix. */ - response?: RouteMatrixResultResponseOutput; + readonly response?: RouteMatrixResultResponseOutput; } /** Response object of the current cell in the input matrix. */ export interface RouteMatrixResultResponseOutput { /** Summary object */ - routeSummary?: RouteSummaryOutput; + readonly routeSummary?: RouteSummaryOutput; } /** Summary object */ export interface RouteSummaryOutput { /** Length In Meters property */ - lengthInMeters: number; + readonly lengthInMeters: number; /** Estimated travel time in seconds property that includes the delay due to real-time traffic. Note that even when traffic=false travelTimeInSeconds still includes the delay due to traffic. If DepartAt is in the future, travel time is calculated using time-dependent historic traffic data. */ - travelTimeInSeconds: number; + readonly travelTimeInSeconds: number; /** Estimated delay in seconds caused by the real-time incident(s) according to traffic information. For routes planned with departure time in the future, delays is always 0. To return additional travel times using different types of traffic information, parameter computeTravelTimeFor=all needs to be added. */ - trafficDelayInSeconds: number; - /** The estimated departure time for the route or leg. */ - departureTime: string; - /** The estimated arrival time for the route or leg. */ - arrivalTime: string; + readonly trafficDelayInSeconds: number; + /** The estimated departure time for the route or leg. Time is in UTC. */ + readonly departureTime: string; + /** The estimated arrival time for the route or leg. Time is in UTC. */ + readonly arrivalTime: string; } /** Summary object */ export interface RouteMatrixSummaryOutput { /** Number of successful routes in the response. */ - successfulRoutes: number; + readonly successfulRoutes: number; /** Total number of routes requested. Number of cells in the input matrix. */ - totalRoutes: number; + readonly totalRoutes: number; } /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ @@ -56,17 +56,17 @@ export interface ErrorResponseOutput { /** The error detail. */ export interface ErrorDetailOutput { /** The error code. */ - code?: string; + readonly code?: string; /** The error message. */ - message?: string; + readonly message?: string; } /** This object is returned from a successful Route Directions call */ export interface RouteDirectionsOutput { /** Format Version property */ - formatVersion?: string; + readonly formatVersion?: string; /** Routes array */ - routes: Array; + readonly routes: Array; /** * Optimized sequence of waypoints. It shows the index from the user provided waypoint sequence for the original and optimized list. For instance, a response: * @@ -80,28 +80,28 @@ export interface RouteDirectionsOutput { * * means that the original sequence is [0, 1, 2] and optimized sequence is [1, 2, 0]. Since the index starts by 0 the original is "first, second, third" while the optimized is "second, third, first". */ - optimizedWaypoints?: Array; + readonly optimizedWaypoints?: Array; /** Reports the effective settings used in the current call. */ report?: RouteReportOutput; } export interface RouteOutput { /** Summary object */ - summary: RouteSummaryOutput; + readonly summary: RouteSummaryOutput; /** Legs array */ - legs: Array; + readonly legs: Array; /** Sections array */ - sections?: Array; + readonly sections?: Array; /** Contains guidance related elements. This field is present only when guidance was requested and is available. */ - guidance?: RouteGuidanceOutput; + readonly guidance?: RouteGuidanceOutput; } /** A description of a part of a route, comprised of a list of points. Each additional waypoint provided in the request will result in an additional leg in the returned route. */ export interface RouteLegOutput { /** Summary object */ - summary: RouteSummaryOutput; + readonly summary: RouteSummaryOutput; /** Points array */ - points: Array; + readonly points: Array; } /** A location represented as a latitude and longitude. */ @@ -115,11 +115,11 @@ export interface LatLongPairOutput { /** Route sections contain additional information about parts of a route. Each section contains at least the elements `startPointIndex`, `endPointIndex`, and `sectionType`. */ export interface RouteSectionOutput { /** Index of the first point (offset 0) in the route this section applies to. */ - startPointIndex: number; + readonly startPointIndex: number; /** Index of the last point (offset 0) in the route this section applies to. */ - endPointIndex: number; + readonly endPointIndex: number; /** Section types of the reported route response */ - sectionType: + readonly sectionType: | "CAR_TRAIN" | "COUNTRY" | "FERRY" @@ -133,7 +133,7 @@ export interface RouteSectionOutput { | "CARPOOL" | "URBAN"; /** Travel mode for the calculated route. The value will be set to `other` if the requested mode of transport is not possible in this section */ - travelMode?: + readonly travelMode?: | "car" | "truck" | "taxi" @@ -144,13 +144,13 @@ export interface RouteSectionOutput { | "pedestrian" | "other"; /** Type of the incident. Can currently be JAM, ROAD_WORK, ROAD_CLOSURE, or OTHER. See "tec" for detailed information. */ - simpleCategory?: "JAM" | "ROAD_WORK" | "ROAD_CLOSURE" | "OTHER"; + readonly simpleCategory?: "JAM" | "ROAD_WORK" | "ROAD_CLOSURE" | "OTHER"; /** Effective speed of the incident in km/h, averaged over its entire length. */ - effectiveSpeedInKmh?: number; + readonly effectiveSpeedInKmh?: number; /** Delay in seconds caused by the incident. */ - delayInSeconds?: number; + readonly delayInSeconds?: number; /** The magnitude of delay caused by the incident. These values correspond to the values of the response field ty of the [Get Traffic Incident Detail API](https://docs.microsoft.com/rest/api/maps/traffic/gettrafficincidentdetail). */ - magnitudeOfDelay?: "0" | "1" | "2" | "3" | "4"; + readonly magnitudeOfDelay?: "0" | "1" | "2" | "3" | "4"; /** Details of the traffic event, using definitions in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. Can contain effectCode and causes elements. */ tec?: RouteSectionTecOutput; } @@ -158,7 +158,7 @@ export interface RouteSectionOutput { /** Details of the traffic event, using definitions in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. Can contain effectCode and causes elements. */ export interface RouteSectionTecOutput { /** The effect on the traffic flow. Contains a value in the tec001:EffectCode table, as defined in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. Can be used to color-code traffic events according to severity. */ - effectCode?: number; + readonly effectCode?: number; /** Causes array */ causes?: Array; } @@ -166,29 +166,29 @@ export interface RouteSectionTecOutput { /** The cause of the traffic event. Can contain mainCauseCode and subCauseCode elements. Can be used to define iconography and descriptions. */ export interface RouteSectionTecCauseOutput { /** The main cause of the traffic event. Contains a value in the tec002:CauseCode table, as defined in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. */ - mainCauseCode?: number; + readonly mainCauseCode?: number; /** The subcause of the traffic event. Contains a value in the sub cause table defined by the mainCauseCode, as defined in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. */ - subCauseCode?: number; + readonly subCauseCode?: number; } /** Contains guidance related elements. This field is present only when guidance was requested and is available. */ export interface RouteGuidanceOutput { /** A list of instructions describing maneuvers. */ - instructions: Array; + readonly instructions: Array; /** Groups a sequence of instruction elements which are related to each other. */ - instructionGroups: Array; + readonly instructionGroups: Array; } /** A set of attributes describing a maneuver, e.g. 'Turn right', 'Keep left', 'Take the ferry', 'Take the motorway', 'Arrive'. */ export interface RouteInstructionOutput { /** Distance from the start of the route to the point of the instruction. */ - routeOffsetInMeters?: number; + readonly routeOffsetInMeters?: number; /** Estimated travel time up to the point corresponding to routeOffsetInMeters. */ - travelTimeInSeconds?: number; + readonly travelTimeInSeconds?: number; /** A location represented as a latitude and longitude. */ point?: LatLongPairOutput; /** The index of the point in the list of polyline "points" corresponding to the point of the instruction. */ - pointIndex?: number; + readonly pointIndex?: number; /** Type of the instruction, e.g., turn or change of road form. */ instructionType?: | "TURN" @@ -198,19 +198,19 @@ export interface RouteInstructionOutput { | "DIRECTION_INFO" | "LOCATION_WAYPOINT"; /** The road number(s) of the next significant road segment(s) after the maneuver, or of the road(s) to be followed. Example: ["E34", "N205"] */ - roadNumbers?: Array; + readonly roadNumbers?: Array; /** The number(s) of a highway exit taken by the current maneuver. If an exit has multiple exit numbers, they will be separated by "," and possibly aggregated by "-", e.g., "10, 13-15". */ - exitNumber?: string; + readonly exitNumber?: string; /** Street name of the next significant road segment after the maneuver, or of the street that should be followed. */ - street?: string; + readonly street?: string; /** The text on a signpost which is most relevant to the maneuver, or to the direction that should be followed. */ - signpostText?: string; + readonly signpostText?: string; /** 3-character [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html) alpha-3 country code. E.g. USA. */ - countryCode?: string; - /** A subdivision (e.g., state) of the country, represented by the second part of an [ISO 3166-2](https://www.iso.org/standard/63546.html) code. This is only available for some countries like the US, Canada, and Mexico. */ - stateCode?: string; + readonly countryCode?: string; + /** A subdivision (e.g., state) of the country, represented by the second part of an [ISO 3166-2](https://www.iso.org/standard/63546.html) code. This is only available for some countries/regions like the US, Canada, and Mexico. */ + readonly stateCode?: string; /** The type of the junction where the maneuver takes place. For larger roundabouts, two separate instructions are generated for entering and leaving the roundabout. */ - junctionType?: "REGULAR" | "ROUNDABOUT" | "BIFURCATION"; + readonly junctionType?: "REGULAR" | "ROUNDABOUT" | "BIFURCATION"; /** * Indicates the direction of an instruction. If junctionType indicates a turn instruction: * @@ -224,15 +224,15 @@ export interface RouteInstructionOutput { * * <0 - keep left * * \>0 - keep right */ - turnAngleInDecimalDegrees?: number; + readonly turnAngleInDecimalDegrees?: number; /** This indicates which exit to take at a roundabout. */ - roundaboutExitNumber?: string; + readonly roundaboutExitNumber?: number; /** It is possible to optionally combine the instruction with the next one. This can be used to build messages like "Turn left and then turn right". */ - possibleCombineWithNext?: boolean; + readonly possibleCombineWithNext?: boolean; /** Indicates left-hand vs. right-hand side driving at the point of the maneuver. */ - drivingSide?: "LEFT" | "RIGHT"; + readonly drivingSide?: "LEFT" | "RIGHT"; /** A code identifying the maneuver. */ - maneuver?: + readonly maneuver?: | "ARRIVE" | "ARRIVE_LEFT" | "ARRIVE_RIGHT" @@ -267,7 +267,7 @@ export interface RouteInstructionOutput { | "WAYPOINT_RIGHT" | "WAYPOINT_REACHED"; /** A human-readable message for the maneuver. */ - message?: string; + readonly message?: string; /** * A human-readable message for the maneuver combined with the message from the next instruction. Sometimes it is possible to combine two successive instructions into a single instruction making it easier to follow. When this is the case the possibleCombineWithNext flag will be true. For example: * @@ -283,47 +283,47 @@ export interface RouteInstructionOutput { * then follow Einsteinweg/A10/E22 towards Ring Amsterdam. * ``` */ - combinedMessage?: string; + readonly combinedMessage?: string; } /** Groups a sequence of instruction elements which are related to each other. The sequence range is constrained with firstInstructionIndex and lastInstructionIndex. When human-readable text messages are requested for guidance (instructionType=text or tagged), then the instructionGroup has a summary message returned when available. */ export interface RouteInstructionGroupOutput { /** Index of the first instruction in the instructions and belonging to this group. */ - firstInstructionIndex?: number; + readonly firstInstructionIndex?: number; /** Index of the last instruction in the instructions and belonging to this group. */ - lastInstructionIndex?: number; + readonly lastInstructionIndex?: number; /** Length of the group. */ - groupLengthInMeters?: number; + readonly groupLengthInMeters?: number; /** Summary message when human-readable text messages are requested for guidance (instructionType=text or tagged). */ - groupMessage?: string; + readonly groupMessage?: string; } /** Optimized way point object. */ export interface RouteOptimizedWaypointOutput { /** Way point index provided by the user. */ - providedIndex: number; + readonly providedIndex: number; /** Optimized way point index from the system. */ - optimizedIndex: number; + readonly optimizedIndex: number; } /** Reports the effective settings used in the current call. */ export interface RouteReportOutput { /** Effective parameters or data used when calling this Route API. */ - effectiveSettings: Array; + readonly effectiveSettings: Array; } /** Effective parameter or data used when calling this Route API. */ export interface EffectiveSettingOutput { /** Name of the parameter used. */ - key: string; + readonly key: string; /** Value of the parameter used. */ - value: string; + readonly value: string; } /** This object is returned from a successful Route Reachable Range call */ export interface RouteRangeResultOutput { /** Format Version property */ - formatVersion?: string; + readonly formatVersion?: string; /** Reachable Range */ reachableRange: RouteRangeOutput; /** Reports the effective settings used in the current call. */ @@ -335,19 +335,19 @@ export interface RouteRangeOutput { /** Center point of the reachable range */ center: LatLongPairOutput; /** Polygon boundary of the reachable range represented as a list of points. */ - boundary: Array; + readonly boundary: Array; } /** This object is returned from a successful Route Directions Batch service call. */ export interface RouteDirectionsBatchResultOutput extends BatchResultOutput { /** Array containing the batch results. */ - batchItems: Array; + readonly batchItems: Array; } /** An item returned from Route Directions Batch service call. */ export interface RouteDirectionsBatchItemOutput extends BatchResultItemOutput { /** The result of the query. RouteDirections if the query completed successfully, ErrorResponse otherwise. */ - response: RouteDirectionsBatchItemResponseOutput; + readonly response: RouteDirectionsBatchItemResponseOutput; } /** The result of the query. RouteDirections if the query completed successfully, ErrorResponse otherwise. */ @@ -358,19 +358,19 @@ export interface RouteDirectionsBatchItemResponseOutput /** An item returned from Batch API. Extend with 'response' property. */ export interface BatchResultItemOutput { /** HTTP request status code. */ - statusCode: number; + readonly statusCode: number; } /** This object is returned from a successful Batch service call. Extend with 'batchItems' property. */ export interface BatchResultOutput { /** Summary of the results for the batch request */ - summary: BatchResultSummaryOutput; + readonly summary: BatchResultSummaryOutput; } /** Summary of the results for the batch request */ export interface BatchResultSummaryOutput { /** Number of successful requests in the batch */ - successfulRequests: number; + readonly successfulRequests: number; /** Total number of requests in the batch */ - totalRequests: number; + readonly totalRequests: number; } diff --git a/sdk/maps/maps-route-rest/src/generated/parameters.ts b/sdk/maps/maps-route-rest/src/generated/parameters.ts index f4b5e5641bbb..02f3ccde373f 100644 --- a/sdk/maps/maps-route-rest/src/generated/parameters.ts +++ b/sdk/maps/maps-route-rest/src/generated/parameters.ts @@ -5,8 +5,8 @@ import { RequestParameters } from "@azure-rest/core-client"; import { RouteMatrixQuery, RouteDirectionParameters, - BatchRequest -} from "./models"; + BatchRequest, +} from "./models.js"; export interface RouteRequestRouteMatrixBodyParam { /** The matrix of origin and destination coordinates to compute the route distance, travel time and other summary for each cell of the matrix based on the input parameters. The minimum and the maximum cell count supported are 1 and **700** for async and **100** for sync respectively. For example, it can be 35 origins and 20 destinations or 25 origins and 25 destinations for async API. */ @@ -18,8 +18,8 @@ export interface RouteRequestRouteMatrixQueryParamProperties { waitForResults?: boolean; /** Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. */ computeTravelTimeFor?: "none" | "all"; - /** Specifies which of the section types is reported in the route response.

For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Multiple types can be used. The default sectionType refers to the travelMode input. By default travelMode is set to car */ - sectionType?: + /** Specifies which of the section types is reported in the route response.

For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Can be specified multiple times in one request, for example, '§ionType=carTrain§ionType=pedestrian§ionType=motorway'. The default sectionType refers to the travelMode input. By default travelMode is set to car */ + sectionType?: Array< | "carTrain" | "country" | "ferry" @@ -31,10 +31,29 @@ export interface RouteRequestRouteMatrixQueryParamProperties { | "travelMode" | "tunnel" | "carpool" - | "urban"; - /** The date and time of arrival at the destination point. It must be specified as a dateTime. When a time zone offset is not specified it will be assumed to be that of the destination point. The arriveAt value must be in the future. The arriveAt parameter cannot be used in conjunction with departAt, minDeviationDistance or minDeviationTime. */ + | "urban" + >; + /** + * The date and time of arrival at the destination point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified it will be assumed to be that of the destination point. + * + * Examples: + * * 2023-12-19T16:39:57 + * * 2023-12-19T16:39:57-08:00 + * + * The `arriveAt` parameter cannot be used in conjunction with `departAt`, `minDeviationDistance` or `minDeviationTime`. + */ arriveAt?: Date | string; - /** The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format (1996-12-19T16:39:57-08:00). */ + /** + * The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point. + * * Default value: now + * * Other value: `dateTime` + * + * Examples: + * * 2023-12-19T16:39:57 + * * 2023-12-19T16:39:57-08:00 + * + * The `departAt` parameter cannot be used in conjunction with `arriveAt`. + */ departAt?: Date | string; /** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */ vehicleAxleWeight?: number; @@ -58,7 +77,7 @@ export interface RouteRequestRouteMatrixQueryParamProperties { windingness?: "low" | "normal" | "high"; /** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */ hilliness?: "low" | "normal" | "high"; - /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. In **calculateReachableRange** requests, the values bicycle and pedestrian must not be used. */ + /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. */ travelMode?: | "car" | "truck" @@ -68,7 +87,7 @@ export interface RouteRequestRouteMatrixQueryParamProperties { | "motorcycle" | "bicycle" | "pedestrian"; - /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In calculateReachableRange requests, the value alreadyUsedRoads must not be used. */ + /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In Route Range requests, the value alreadyUsedRoads must not be used. */ avoid?: Array< | "tollRoads" | "motorways" @@ -87,7 +106,7 @@ export interface RouteRequestRouteMatrixQueryParamProperties { traffic?: boolean; /** The type of route requested. */ routeType?: "fastest" | "shortest" | "eco" | "thrilling"; - /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */ + /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */ vehicleLoadType?: | "USHazmatClass1" | "USHazmatClass2" @@ -112,10 +131,11 @@ export interface RouteRequestRouteMatrixMediaTypesParam { contentType?: "application/json"; } -export type RouteRequestRouteMatrixParameters = RouteRequestRouteMatrixQueryParam & - RouteRequestRouteMatrixMediaTypesParam & - RouteRequestRouteMatrixBodyParam & - RequestParameters; +export type RouteRequestRouteMatrixParameters = + RouteRequestRouteMatrixQueryParam & + RouteRequestRouteMatrixMediaTypesParam & + RouteRequestRouteMatrixBodyParam & + RequestParameters; export type RouteGetRouteMatrixParameters = RequestParameters; export interface RouteRequestRouteMatrixSyncBodyParam { @@ -128,8 +148,8 @@ export interface RouteRequestRouteMatrixSyncQueryParamProperties { waitForResults?: boolean; /** Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. */ computeTravelTimeFor?: "none" | "all"; - /** Specifies which of the section types is reported in the route response.

For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Multiple types can be used. The default sectionType refers to the travelMode input. By default travelMode is set to car */ - sectionType?: + /** Specifies which of the section types is reported in the route response.

For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Can be specified multiple times in one request, for example, '§ionType=carTrain§ionType=pedestrian§ionType=motorway'. The default sectionType refers to the travelMode input. By default travelMode is set to car */ + sectionType?: Array< | "carTrain" | "country" | "ferry" @@ -141,10 +161,29 @@ export interface RouteRequestRouteMatrixSyncQueryParamProperties { | "travelMode" | "tunnel" | "carpool" - | "urban"; - /** The date and time of arrival at the destination point. It must be specified as a dateTime. When a time zone offset is not specified it will be assumed to be that of the destination point. The arriveAt value must be in the future. The arriveAt parameter cannot be used in conjunction with departAt, minDeviationDistance or minDeviationTime. */ + | "urban" + >; + /** + * The date and time of arrival at the destination point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified it will be assumed to be that of the destination point. + * + * Examples: + * * 2023-12-19T16:39:57 + * * 2023-12-19T16:39:57-08:00 + * + * The `arriveAt` parameter cannot be used in conjunction with `departAt`, `minDeviationDistance` or `minDeviationTime`. + */ arriveAt?: Date | string; - /** The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format (1996-12-19T16:39:57-08:00). */ + /** + * The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point. + * * Default value: now + * * Other value: `dateTime` + * + * Examples: + * * 2023-12-19T16:39:57 + * * 2023-12-19T16:39:57-08:00 + * + * The `departAt` parameter cannot be used in conjunction with `arriveAt`. + */ departAt?: Date | string; /** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */ vehicleAxleWeight?: number; @@ -168,7 +207,7 @@ export interface RouteRequestRouteMatrixSyncQueryParamProperties { windingness?: "low" | "normal" | "high"; /** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */ hilliness?: "low" | "normal" | "high"; - /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. In **calculateReachableRange** requests, the values bicycle and pedestrian must not be used. */ + /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. */ travelMode?: | "car" | "truck" @@ -178,7 +217,7 @@ export interface RouteRequestRouteMatrixSyncQueryParamProperties { | "motorcycle" | "bicycle" | "pedestrian"; - /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In calculateReachableRange requests, the value alreadyUsedRoads must not be used. */ + /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In Route Range requests, the value alreadyUsedRoads must not be used. */ avoid?: Array< | "tollRoads" | "motorways" @@ -197,7 +236,7 @@ export interface RouteRequestRouteMatrixSyncQueryParamProperties { traffic?: boolean; /** The type of route requested. */ routeType?: "fastest" | "shortest" | "eco" | "thrilling"; - /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */ + /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */ vehicleLoadType?: | "USHazmatClass1" | "USHazmatClass2" @@ -222,10 +261,11 @@ export interface RouteRequestRouteMatrixSyncMediaTypesParam { contentType?: "application/json"; } -export type RouteRequestRouteMatrixSyncParameters = RouteRequestRouteMatrixSyncQueryParam & - RouteRequestRouteMatrixSyncMediaTypesParam & - RouteRequestRouteMatrixSyncBodyParam & - RequestParameters; +export type RouteRequestRouteMatrixSyncParameters = + RouteRequestRouteMatrixSyncQueryParam & + RouteRequestRouteMatrixSyncMediaTypesParam & + RouteRequestRouteMatrixSyncBodyParam & + RequestParameters; export interface RouteGetRouteDirectionsQueryParamProperties { /** The Coordinates through which the route is calculated, delimited by a colon. A minimum of two coordinates is required. The first one is the origin and the last is the destination of the route. Optional coordinates in-between act as WayPoints in the route. You can pass up to 150 WayPoints. */ @@ -236,9 +276,27 @@ export interface RouteGetRouteDirectionsQueryParamProperties { alternativeType?: "anyRoute" | "betterRoute"; /** All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of meters. Can only be used when reconstructing a route. The minDeviationDistance parameter cannot be used in conjunction with arriveAt */ minDeviationDistance?: number; - /** The date and time of arrival at the destination point. It must be specified as a dateTime. When a time zone offset is not specified it will be assumed to be that of the destination point. The arriveAt value must be in the future. The arriveAt parameter cannot be used in conjunction with departAt, minDeviationDistance or minDeviationTime. */ + /** + * The date and time of arrival at the destination point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified it will be assumed to be that of the destination point. + * + * Examples: + * * 2023-12-19T16:39:57 + * * 2023-12-19T16:39:57-08:00 + * + * The `arriveAt` parameter cannot be used in conjunction with `departAt`, `minDeviationDistance` or `minDeviationTime`. + */ arriveAt?: Date | string; - /** The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format (1996-12-19T16:39:57-08:00). */ + /** + * The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point. + * * Default value: now + * * Other value: `dateTime` + * + * Examples: + * * 2023-12-19T16:39:57 + * * 2023-12-19T16:39:57-08:00 + * + * The `departAt` parameter cannot be used in conjunction with `arriveAt`. + */ departAt?: Date | string; /** * All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of seconds. Can only be used when reconstructing a route. The minDeviationTime parameter cannot be used in conjunction with arriveAt. Default value is 0. Setting )minDeviationTime_ to a value greater than zero has the following consequences: @@ -259,7 +317,7 @@ export interface RouteGetRouteDirectionsQueryParamProperties { * - The _vehicleHeading_ is ignored. */ minDeviationTime?: number; - /** If specified, guidance instructions will be returned. Note that the instructionsType parameter cannot be used in conjunction with routeRepresentation=none */ + /** If specified, guidance instructions will be returned. Note that the instructionsType parameter cannot be used in conjunction with routeRepresentation=none. */ instructionsType?: "coded" | "text" | "tagged"; /** * The language parameter determines the language of the guidance messages. Proper nouns (the names of streets, plazas, etc.) are returned in the specified language, or if that is not available, they are returned in an available language that is close to it. Allowed values are (a subset of) the IETF language tags. The currently supported languages are listed in the [Supported languages section](https://docs.microsoft.com/azure/azure-maps/supported-languages). @@ -269,7 +327,7 @@ export interface RouteGetRouteDirectionsQueryParamProperties { language?: string; /** Re-order the route waypoints using a fast heuristic algorithm to reduce the route length. Yields best results when used in conjunction with routeType _shortest_. Notice that origin and destination are excluded from the optimized waypoint indices. To include origin and destination in the response, please increase all the indices by 1 to account for the origin, and then add the destination as the final index. Possible values are true or false. True computes a better order if possible, but is not allowed to be used in conjunction with maxAlternatives value greater than 0 or in conjunction with circle waypoints. False will use the locations in the given order and not allowed to be used in conjunction with routeRepresentation _none_. */ computeBestOrder?: boolean; - /** Specifies the representation of the set of routes provided as response. This parameter value can only be used in conjunction with computeBestOrder=true. */ + /** Specifies the representation of the set of routes provided as response. */ routeRepresentation?: "polyline" | "summaryOnly" | "none"; /** Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. */ computeTravelTimeFor?: "none" | "all"; @@ -277,8 +335,8 @@ export interface RouteGetRouteDirectionsQueryParamProperties { vehicleHeading?: number; /** Specifies which data should be reported for diagnosis purposes. The only possible value is _effectiveSettings_. Reports the effective parameters or data used when calling the API. In the case of defaulted parameters the default will be reflected where the parameter was not specified by the caller. */ report?: "effectiveSettings"; - /** Specifies which of the section types is reported in the route response.

For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Multiple types can be used. The default sectionType refers to the travelMode input. By default travelMode is set to car */ - sectionType?: + /** Specifies which of the section types is reported in the route response.

For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Can be specified multiple times in one request, for example, '§ionType=carTrain§ionType=pedestrian§ionType=motorway'. The default sectionType refers to the travelMode input. By default travelMode is set to car */ + sectionType?: Array< | "carTrain" | "country" | "ferry" @@ -290,7 +348,8 @@ export interface RouteGetRouteDirectionsQueryParamProperties { | "travelMode" | "tunnel" | "carpool" - | "urban"; + | "urban" + >; /** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */ vehicleAxleWeight?: number; /** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */ @@ -327,7 +386,7 @@ export interface RouteGetRouteDirectionsQueryParamProperties { windingness?: "low" | "normal" | "high"; /** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */ hilliness?: "low" | "normal" | "high"; - /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. In **calculateReachableRange** requests, the values bicycle and pedestrian must not be used. */ + /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. */ travelMode?: | "car" | "truck" @@ -337,7 +396,7 @@ export interface RouteGetRouteDirectionsQueryParamProperties { | "motorcycle" | "bicycle" | "pedestrian"; - /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In calculateReachableRange requests, the value alreadyUsedRoads must not be used. */ + /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In Route Range requests, the value alreadyUsedRoads must not be used. */ avoid?: Array< | "tollRoads" | "motorways" @@ -356,7 +415,7 @@ export interface RouteGetRouteDirectionsQueryParamProperties { traffic?: boolean; /** The type of route requested. */ routeType?: "fastest" | "shortest" | "eco" | "thrilling"; - /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */ + /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */ vehicleLoadType?: | "USHazmatClass1" | "USHazmatClass2" @@ -513,8 +572,8 @@ export interface RouteGetRouteDirectionsQueryParam { queryParameters: RouteGetRouteDirectionsQueryParamProperties; } -export type RouteGetRouteDirectionsParameters = RouteGetRouteDirectionsQueryParam & - RequestParameters; +export type RouteGetRouteDirectionsParameters = + RouteGetRouteDirectionsQueryParam & RequestParameters; export interface RouteGetRouteDirectionsWithAdditionalParametersBodyParam { /** @@ -559,13 +618,13 @@ export interface RouteGetRouteDirectionsWithAdditionalParametersQueryParamProper * - The _vehicleHeading_ is ignored. */ minDeviationTime?: number; - /** If specified, guidance instructions will be returned. Note that the instructionsType parameter cannot be used in conjunction with routeRepresentation=none */ + /** If specified, guidance instructions will be returned. Note that the instructionsType parameter cannot be used in conjunction with routeRepresentation=none. */ instructionsType?: "coded" | "text" | "tagged"; /** The language parameter determines the language of the guidance messages. It does not affect proper nouns (the names of streets, plazas, etc.) It has no effect when instructionsType=coded. Allowed values are (a subset of) the IETF language tags described */ language?: string; /** Re-order the route waypoints using a fast heuristic algorithm to reduce the route length. Yields best results when used in conjunction with routeType _shortest_. Notice that origin and destination are excluded from the optimized waypoint indices. To include origin and destination in the response, please increase all the indices by 1 to account for the origin, and then add the destination as the final index. Possible values are true or false. True computes a better order if possible, but is not allowed to be used in conjunction with maxAlternatives value greater than 0 or in conjunction with circle waypoints. False will use the locations in the given order and not allowed to be used in conjunction with routeRepresentation _none_. */ computeBestOrder?: boolean; - /** Specifies the representation of the set of routes provided as response. This parameter value can only be used in conjunction with computeBestOrder=true. */ + /** Specifies the representation of the set of routes provided as response. */ routeRepresentation?: "polyline" | "summaryOnly" | "none"; /** Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. */ computeTravelTimeFor?: "none" | "all"; @@ -573,8 +632,8 @@ export interface RouteGetRouteDirectionsWithAdditionalParametersQueryParamProper vehicleHeading?: number; /** Specifies which data should be reported for diagnosis purposes. The only possible value is _effectiveSettings_. Reports the effective parameters or data used when calling the API. In the case of defaulted parameters the default will be reflected where the parameter was not specified by the caller. */ report?: "effectiveSettings"; - /** Specifies which of the section types is reported in the route response.

For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Multiple types can be used. The default sectionType refers to the travelMode input. By default travelMode is set to car */ - sectionType?: + /** Specifies which of the section types is reported in the route response.

For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Can be specified multiple times in one request, for example, '§ionType=carTrain§ionType=pedestrian§ionType=motorway'. The default sectionType refers to the travelMode input. By default travelMode is set to car */ + sectionType?: Array< | "carTrain" | "country" | "ferry" @@ -586,10 +645,29 @@ export interface RouteGetRouteDirectionsWithAdditionalParametersQueryParamProper | "travelMode" | "tunnel" | "carpool" - | "urban"; - /** The date and time of arrival at the destination point. It must be specified as a dateTime. When a time zone offset is not specified it will be assumed to be that of the destination point. The arriveAt value must be in the future. The arriveAt parameter cannot be used in conjunction with departAt, minDeviationDistance or minDeviationTime. */ + | "urban" + >; + /** + * The date and time of arrival at the destination point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified it will be assumed to be that of the destination point. + * + * Examples: + * * 2023-12-19T16:39:57 + * * 2023-12-19T16:39:57-08:00 + * + * The `arriveAt` parameter cannot be used in conjunction with `departAt`, `minDeviationDistance` or `minDeviationTime`. + */ arriveAt?: Date | string; - /** The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format (1996-12-19T16:39:57-08:00). */ + /** + * The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point. + * * Default value: now + * * Other value: `dateTime` + * + * Examples: + * * 2023-12-19T16:39:57 + * * 2023-12-19T16:39:57-08:00 + * + * The `departAt` parameter cannot be used in conjunction with `arriveAt`. + */ departAt?: Date | string; /** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */ vehicleAxleWeight?: number; @@ -627,7 +705,7 @@ export interface RouteGetRouteDirectionsWithAdditionalParametersQueryParamProper windingness?: "low" | "normal" | "high"; /** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */ hilliness?: "low" | "normal" | "high"; - /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. In **calculateReachableRange** requests, the values bicycle and pedestrian must not be used. */ + /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. */ travelMode?: | "car" | "truck" @@ -637,7 +715,7 @@ export interface RouteGetRouteDirectionsWithAdditionalParametersQueryParamProper | "motorcycle" | "bicycle" | "pedestrian"; - /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In calculateReachableRange requests, the value alreadyUsedRoads must not be used. */ + /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In Route Range requests, the value alreadyUsedRoads must not be used. */ avoid?: Array< | "tollRoads" | "motorways" @@ -656,7 +734,7 @@ export interface RouteGetRouteDirectionsWithAdditionalParametersQueryParamProper traffic?: boolean; /** The type of route requested. */ routeType?: "fastest" | "shortest" | "eco" | "thrilling"; - /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */ + /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */ vehicleLoadType?: | "USHazmatClass1" | "USHazmatClass2" @@ -818,10 +896,11 @@ export interface RouteGetRouteDirectionsWithAdditionalParametersMediaTypesParam contentType?: "application/json"; } -export type RouteGetRouteDirectionsWithAdditionalParametersParameters = RouteGetRouteDirectionsWithAdditionalParametersQueryParam & - RouteGetRouteDirectionsWithAdditionalParametersMediaTypesParam & - RouteGetRouteDirectionsWithAdditionalParametersBodyParam & - RequestParameters; +export type RouteGetRouteDirectionsWithAdditionalParametersParameters = + RouteGetRouteDirectionsWithAdditionalParametersQueryParam & + RouteGetRouteDirectionsWithAdditionalParametersMediaTypesParam & + RouteGetRouteDirectionsWithAdditionalParametersBodyParam & + RequestParameters; export interface RouteGetRouteRangeQueryParamProperties { /** The Coordinate from which the range calculation should start. */ @@ -834,7 +913,17 @@ export interface RouteGetRouteRangeQueryParamProperties { timeBudgetInSec?: number; /** Distance budget in meters that determines maximal range which can be travelled using driving distance. The Consumption Model will only affect the range when routeType is eco.
Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used. */ distanceBudgetInMeters?: number; - /** The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format (1996-12-19T16:39:57-08:00). */ + /** + * The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point. + * * Default value: now + * * Other value: `dateTime` + * + * Examples: + * * 2023-12-19T16:39:57 + * * 2023-12-19T16:39:57-08:00 + * + * The `departAt` parameter cannot be used in conjunction with `arriveAt`. + */ departAt?: Date | string; /** The type of route requested. */ routeType?: "fastest" | "shortest" | "eco" | "thrilling"; @@ -845,7 +934,7 @@ export interface RouteGetRouteRangeQueryParamProperties { * during routing, the effect of historic traffic on effective road speeds is still incorporated. */ traffic?: boolean; - /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In calculateReachableRange requests, the value alreadyUsedRoads must not be used. */ + /** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In Route Range requests, the value alreadyUsedRoads must not be used. */ avoid?: Array< | "tollRoads" | "motorways" @@ -855,7 +944,7 @@ export interface RouteGetRouteRangeQueryParamProperties { | "alreadyUsedRoads" | "borderCrossings" >; - /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. In **calculateReachableRange** requests, the values bicycle and pedestrian must not be used. */ + /** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. */ travelMode?: | "car" | "truck" @@ -901,7 +990,7 @@ export interface RouteGetRouteRangeQueryParamProperties { vehicleWeight?: number; /** Whether the vehicle is used for commercial purposes. Commercial vehicles may not be allowed to drive on some roads. */ vehicleCommercial?: boolean; - /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */ + /** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */ vehicleLoadType?: | "USHazmatClass1" | "USHazmatClass2" @@ -1071,9 +1160,10 @@ export interface RouteRequestRouteDirectionsBatchMediaTypesParam { contentType?: "application/json"; } -export type RouteRequestRouteDirectionsBatchParameters = RouteRequestRouteDirectionsBatchMediaTypesParam & - RouteRequestRouteDirectionsBatchBodyParam & - RequestParameters; +export type RouteRequestRouteDirectionsBatchParameters = + RouteRequestRouteDirectionsBatchMediaTypesParam & + RouteRequestRouteDirectionsBatchBodyParam & + RequestParameters; export type RouteGetRouteDirectionsBatchParameters = RequestParameters; export interface RouteRequestRouteDirectionsBatchSyncBodyParam { @@ -1086,6 +1176,7 @@ export interface RouteRequestRouteDirectionsBatchSyncMediaTypesParam { contentType?: "application/json"; } -export type RouteRequestRouteDirectionsBatchSyncParameters = RouteRequestRouteDirectionsBatchSyncMediaTypesParam & - RouteRequestRouteDirectionsBatchSyncBodyParam & - RequestParameters; +export type RouteRequestRouteDirectionsBatchSyncParameters = + RouteRequestRouteDirectionsBatchSyncMediaTypesParam & + RouteRequestRouteDirectionsBatchSyncBodyParam & + RequestParameters; diff --git a/sdk/maps/maps-route-rest/src/generated/pollingHelper.ts b/sdk/maps/maps-route-rest/src/generated/pollingHelper.ts index 8e3cd945ae46..131043e0b2d0 100644 --- a/sdk/maps/maps-route-rest/src/generated/pollingHelper.ts +++ b/sdk/maps/maps-route-rest/src/generated/pollingHelper.ts @@ -2,15 +2,87 @@ // Licensed under the MIT License. import { Client, HttpResponse } from "@azure-rest/core-client"; +import { AbortSignalLike } from "@azure/abort-controller"; import { - LongRunningOperation, - LroEngine, - LroEngineOptions, - LroResponse, - PollerLike, - PollOperationState + CancelOnProgress, + CreateHttpPollerOptions, + RunningOperation, + OperationResponse, + OperationState, + createHttpPoller, } from "@azure/core-lro"; +/** + * A simple poller that can be used to poll a long running operation. + */ +export interface SimplePollerLike< + TState extends OperationState, + TResult, +> { + /** + * Returns true if the poller has finished polling. + */ + isDone(): boolean; + /** + * Returns the state of the operation. + */ + getOperationState(): TState; + /** + * Returns the result value of the operation, + * regardless of the state of the poller. + * It can return undefined or an incomplete form of the final TResult value + * depending on the implementation. + */ + getResult(): TResult | undefined; + /** + * Returns a promise that will resolve once a single polling request finishes. + * It does this by calling the update method of the Poller's operation. + */ + poll(options?: { abortSignal?: AbortSignalLike }): Promise; + /** + * Returns a promise that will resolve once the underlying operation is completed. + */ + pollUntilDone(pollOptions?: { + abortSignal?: AbortSignalLike; + }): Promise; + /** + * Invokes the provided callback after each polling is completed, + * sending the current state of the poller's operation. + * + * It returns a method that can be used to stop receiving updates on the given callback function. + */ + onProgress(callback: (state: TState) => void): CancelOnProgress; + + /** + * Returns a promise that could be used for serialized version of the poller's operation + * by invoking the operation's serialize method. + */ + serialize(): Promise; + + /** + * Wait the poller to be submitted. + */ + submitted(): Promise; + + /** + * Returns a string representation of the poller's operation. Similar to serialize but returns a string. + * @deprecated Use serialize() instead. + */ + toString(): string; + + /** + * Stops the poller from continuing to poll. Please note this will only stop the client-side polling + * @deprecated Use abortSignal to stop polling instead. + */ + stopPolling(): void; + + /** + * Returns true if the poller is stopped. + * @deprecated Use abortSignal status to track this instead. + */ + isStopped(): boolean; +} + /** * Helper function that builds a Poller object to help polling a long running operation. * @param client - Client to use for sending the request to get additional pages. @@ -18,49 +90,107 @@ import { * @param options - Options to set a resume state or custom polling interval. * @returns - A poller object to poll for operation state updates and eventually get the final response. */ -export function getLongRunningPoller( +export async function getLongRunningPoller( client: Client, initialResponse: TResult, - options: LroEngineOptions> = {} -): PollerLike, TResult> { - const poller: LongRunningOperation = { - requestMethod: initialResponse.request.method, - requestPath: initialResponse.request.url, + options: CreateHttpPollerOptions> = {}, +): Promise, TResult>> { + const abortController = new AbortController(); + const poller: RunningOperation = { sendInitialRequest: async () => { // In the case of Rest Clients we are building the LRO poller object from a response that's the reason // we are not triggering the initial request here, just extracting the information from the // response we were provided. return getLroResponse(initialResponse); }, - sendPollRequest: async (path) => { + sendPollRequest: async ( + path: string, + pollOptions?: { abortSignal?: AbortSignalLike }, + ) => { // This is the callback that is going to be called to poll the service // to get the latest status. We use the client provided and the polling path // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location // depending on the lro pattern that the service implements. If non is provided we default to the initial path. - const response = await client - .pathUnchecked(path ?? initialResponse.request.url) - .get(); + function abortListener(): void { + abortController.abort(); + } + const inputAbortSignal = pollOptions?.abortSignal; + const abortSignal = abortController.signal; + if (inputAbortSignal?.aborted) { + abortController.abort(); + } else if (!abortSignal.aborted) { + inputAbortSignal?.addEventListener("abort", abortListener, { + once: true, + }); + } + let response; + try { + response = await client + .pathUnchecked(path ?? initialResponse.request.url) + .get({ abortSignal }); + } finally { + inputAbortSignal?.removeEventListener("abort", abortListener); + } const lroResponse = getLroResponse(response as TResult); lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url; return lroResponse; - } + }, }; - return new LroEngine(poller, options); + options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true; + const httpPoller = createHttpPoller(poller, options); + const simplePoller: SimplePollerLike, TResult> = { + isDone() { + return httpPoller.isDone; + }, + isStopped() { + return abortController.signal.aborted; + }, + getOperationState() { + if (!httpPoller.operationState) { + throw new Error( + "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", + ); + } + return httpPoller.operationState; + }, + getResult() { + return httpPoller.result; + }, + toString() { + if (!httpPoller.operationState) { + throw new Error( + "Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().", + ); + } + return JSON.stringify({ + state: httpPoller.operationState, + }); + }, + stopPolling() { + abortController.abort(); + }, + onProgress: httpPoller.onProgress, + poll: httpPoller.poll, + pollUntilDone: httpPoller.pollUntilDone, + serialize: httpPoller.serialize, + submitted: httpPoller.submitted, + }; + return simplePoller; } /** - * Converts a Rest Client response to a response that the LRO engine knows about + * Converts a Rest Client response to a response that the LRO implementation understands * @param response - a rest client http response - * @returns - An LRO response that the LRO engine can work with + * @returns - An LRO response that the LRO implementation understands */ function getLroResponse( - response: TResult -): LroResponse { + response: TResult, +): OperationResponse { if (Number.isNaN(response.status)) { throw new TypeError( - `Status code of the response is not a number. Value: ${response.status}` + `Status code of the response is not a number. Value: ${response.status}`, ); } @@ -69,7 +199,7 @@ function getLroResponse( rawResponse: { ...response, statusCode: Number.parseInt(response.status), - body: response.body - } + body: response.body, + }, }; } diff --git a/sdk/maps/maps-route-rest/src/generated/responses.ts b/sdk/maps/maps-route-rest/src/generated/responses.ts index 2616076effd2..082ea3fe953b 100644 --- a/sdk/maps/maps-route-rest/src/generated/responses.ts +++ b/sdk/maps/maps-route-rest/src/generated/responses.ts @@ -8,14 +8,12 @@ import { ErrorResponseOutput, RouteDirectionsOutput, RouteRangeResultOutput, - RouteDirectionsBatchResultOutput -} from "./outputModels"; + RouteDirectionsBatchResultOutput, +} from "./outputModels.js"; /** * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * - * The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. + * The `Post Route Matrix` API is an HTTP `POST` request that allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) request. To make a synchronous (sync) request, see [Post Route Matrix Sync](/rest/api/maps/route/post-route-matrix-sync). For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. * * * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API. @@ -23,6 +21,9 @@ import { * * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations). * + * > [!NOTE] + * > All origins and destinations should be contained in an axis-aligned 400 km x 400 km bounding box. Otherwise some matrix cells will be resolved as OUT_OF_REGION. + * * * * ### Submit Synchronous Route Matrix Request @@ -39,7 +40,7 @@ import { * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square). * * - * The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period. + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. * * * @@ -88,15 +89,13 @@ export interface RouteRequestRouteMatrix200Response extends HttpResponse { } export interface RouteRequestRouteMatrix202Headers { - /** New URL to check for the results of the long running process. */ + /** New URL to check for the results of the long-running operation. */ location?: string; } /** * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * - * The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. + * The `Post Route Matrix` API is an HTTP `POST` request that allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) request. To make a synchronous (sync) request, see [Post Route Matrix Sync](/rest/api/maps/route/post-route-matrix-sync). For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. * * * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API. @@ -104,6 +103,9 @@ export interface RouteRequestRouteMatrix202Headers { * * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations). * + * > [!NOTE] + * > All origins and destinations should be contained in an axis-aligned 400 km x 400 km bounding box. Otherwise some matrix cells will be resolved as OUT_OF_REGION. + * * * * ### Submit Synchronous Route Matrix Request @@ -120,7 +122,7 @@ export interface RouteRequestRouteMatrix202Headers { * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square). * * - * The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period. + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. * * * @@ -165,14 +167,57 @@ export interface RouteRequestRouteMatrix202Headers { */ export interface RouteRequestRouteMatrix202Response extends HttpResponse { status: "202"; - body: Record; headers: RawHttpHeaders & RouteRequestRouteMatrix202Headers; } /** - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). * - * If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following: + * The `Get Route Matrix` API is an HTTP `GET` request that computes the travel time and distance for all possible pairs in a list of origins and destinations. Unlike the [Get Route Directions](/rest/api/maps/route/get-route-directions) API, which provide detailed route instructions, this API focuses on efficiency by giving you the cost (travel time and distance) of routing from each origin to every destination. For more information, see [Best practices for Azure Maps Route service](/azure/azure-maps/how-to-use-best-practices-for-routing). + * + * For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. + * + * + * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API. + * + * + * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations). + * + * + * + * ### Submit Synchronous Route Matrix Request + * If your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square). + * + * ``` + * GET https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key} + * ``` + * + * ### Submit Asynchronous Route Matrix Request + * The Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds. + * + * + * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square). + * + * + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. + * + * + * + * + * ``` + * GET https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key} + * ``` + * + * Here's a typical sequence of asynchronous operations: + * 1. Client sends a Route Matrix GET request to Azure Maps + * + * 2. The server will respond with one of the following: + * + * > HTTP `202 Accepted` - Route Matrix request has been accepted. + * + * > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code. + * + * + * 3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following: * * ``` * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key} @@ -182,7 +227,7 @@ export interface RouteRequestRouteMatrix202Response extends HttpResponse { * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results * * ### Download Sync Results - * When you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later. + * When you make a GET request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later. * * ### Download Async Results * When a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following: @@ -202,14 +247,58 @@ export interface RouteGetRouteMatrix200Response extends HttpResponse { } export interface RouteGetRouteMatrix202Headers { - /** New URL to check for the results of the long running process. */ + /** New URL to check for the results of the long-running operation. */ location?: string; } /** - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). * - * If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following: + * The `Get Route Matrix` API is an HTTP `GET` request that computes the travel time and distance for all possible pairs in a list of origins and destinations. Unlike the [Get Route Directions](/rest/api/maps/route/get-route-directions) API, which provide detailed route instructions, this API focuses on efficiency by giving you the cost (travel time and distance) of routing from each origin to every destination. For more information, see [Best practices for Azure Maps Route service](/azure/azure-maps/how-to-use-best-practices-for-routing). + * + * For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. + * + * + * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API. + * + * + * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations). + * + * + * + * ### Submit Synchronous Route Matrix Request + * If your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square). + * + * ``` + * GET https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key} + * ``` + * + * ### Submit Asynchronous Route Matrix Request + * The Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds. + * + * + * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square). + * + * + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. + * + * + * + * + * ``` + * GET https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key} + * ``` + * + * Here's a typical sequence of asynchronous operations: + * 1. Client sends a Route Matrix GET request to Azure Maps + * + * 2. The server will respond with one of the following: + * + * > HTTP `202 Accepted` - Route Matrix request has been accepted. + * + * > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code. + * + * + * 3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following: * * ``` * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key} @@ -219,7 +308,7 @@ export interface RouteGetRouteMatrix202Headers { * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results * * ### Download Sync Results - * When you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later. + * When you make a GET request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later. * * ### Download Async Results * When a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following: @@ -235,15 +324,12 @@ export interface RouteGetRouteMatrix202Headers { */ export interface RouteGetRouteMatrix202Response extends HttpResponse { status: "202"; - body: Record; headers: RawHttpHeaders & RouteGetRouteMatrix202Headers; } /** * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * - * The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. + * The `Post Route Matrix Sync` API is an HTTP `POST` request that allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using a single synchronous (sync) request. To make an asynchronous (async) request, see [Post Route Matrix](/rest/api/maps/route/post-route-matrix). For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. * * * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API. @@ -267,7 +353,7 @@ export interface RouteGetRouteMatrix202Response extends HttpResponse { * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square). * * - * The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period. + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. * * * @@ -317,9 +403,7 @@ export interface RouteRequestRouteMatrixSync200Response extends HttpResponse { /** * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * - * The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. + * The `Post Route Matrix Sync` API is an HTTP `POST` request that allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using a single synchronous (sync) request. To make an asynchronous (async) request, see [Post Route Matrix](/rest/api/maps/route/post-route-matrix). For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. * * * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API. @@ -343,7 +427,7 @@ export interface RouteRequestRouteMatrixSync200Response extends HttpResponse { * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square). * * - * The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period. + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. * * * @@ -393,9 +477,7 @@ export interface RouteRequestRouteMatrixSync408Response extends HttpResponse { /** * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * - * The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. + * The `Post Route Matrix Sync` API is an HTTP `POST` request that allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using a single synchronous (sync) request. To make an asynchronous (async) request, see [Post Route Matrix](/rest/api/maps/route/post-route-matrix). For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API. * * * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API. @@ -419,7 +501,7 @@ export interface RouteRequestRouteMatrixSync408Response extends HttpResponse { * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square). * * - * The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period. + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. * * * @@ -469,14 +551,12 @@ export interface RouteRequestRouteMatrixSyncDefaultResponse } /** - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * * - * Returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. + * The `Get Route Directions` API is an HTTP `GET` request that returns a route between an origin and a destination, passing through waypoints if specified. The route takes into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. * * Information returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected. * - * Routing service provides a set of parameters for a detailed description of vehicle-specific Consumption Model. Please check [Consumption Model](https://docs.microsoft.com/azure/azure-maps/consumption-model) for detailed explanation of the concepts and parameters involved. + * Routing service provides a set of parameters for a detailed description of a vehicle-specific consumption model. For more information, see [Consumption Model](/azure/azure-maps/consumption-model). */ export interface RouteGetRouteDirections200Response extends HttpResponse { status: "200"; @@ -484,14 +564,12 @@ export interface RouteGetRouteDirections200Response extends HttpResponse { } /** - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). * - * - * Returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. + * The `Get Route Directions` API is an HTTP `GET` request that returns a route between an origin and a destination, passing through waypoints if specified. The route takes into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. * * Information returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected. * - * Routing service provides a set of parameters for a detailed description of vehicle-specific Consumption Model. Please check [Consumption Model](https://docs.microsoft.com/azure/azure-maps/consumption-model) for detailed explanation of the concepts and parameters involved. + * Routing service provides a set of parameters for a detailed description of a vehicle-specific consumption model. For more information, see [Consumption Model](/azure/azure-maps/consumption-model). */ export interface RouteGetRouteDirectionsDefaultResponse extends HttpResponse { status: string; @@ -499,10 +577,8 @@ export interface RouteGetRouteDirectionsDefaultResponse extends HttpResponse { } /** - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * * - * Returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. + * The `Post Route Directions` API is an HTTP `POST` request that returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. * * Information returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected. * @@ -515,10 +591,8 @@ export interface RouteGetRouteDirectionsWithAdditionalParameters200Response } /** - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). * - * - * Returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. + * The `Post Route Directions` API is an HTTP `POST` request that returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day. * * Information returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected. * @@ -531,14 +605,10 @@ export interface RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse } /** - * __Route Range (Isochrone) API__ - * * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). + * The `Get Route Range` (Isochrone) API is an HTTP `GET` request that will calculate a set of locations that can be reached from the origin point based on fuel, energy, time or distance budget that is specified. A polygon boundary (or Isochrone) is returned in a counterclockwise orientation as well as the precise polygon center which was the result of the origin point. * - * This service will calculate a set of locations that can be reached from the origin point based on fuel, energy, time or distance budget that is specified. A polygon boundary (or Isochrone) is returned in a counterclockwise orientation as well as the precise polygon center which was the result of the origin point. - * - * The returned polygon can be used for further processing such as [Search Inside Geometry](https://docs.microsoft.com/rest/api/maps/search/postsearchinsidegeometry) to search for POIs within the provided Isochrone. + * The returned polygon can be used for further processing such as [Search Inside Geometry](/rest/api/maps/search/post-search-inside-geometry) to search for POIs within the provided isochrone. */ export interface RouteGetRouteRange200Response extends HttpResponse { status: "200"; @@ -546,14 +616,10 @@ export interface RouteGetRouteRange200Response extends HttpResponse { } /** - * __Route Range (Isochrone) API__ - * * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). + * The `Get Route Range` (Isochrone) API is an HTTP `GET` request that will calculate a set of locations that can be reached from the origin point based on fuel, energy, time or distance budget that is specified. A polygon boundary (or Isochrone) is returned in a counterclockwise orientation as well as the precise polygon center which was the result of the origin point. * - * This service will calculate a set of locations that can be reached from the origin point based on fuel, energy, time or distance budget that is specified. A polygon boundary (or Isochrone) is returned in a counterclockwise orientation as well as the precise polygon center which was the result of the origin point. - * - * The returned polygon can be used for further processing such as [Search Inside Geometry](https://docs.microsoft.com/rest/api/maps/search/postsearchinsidegeometry) to search for POIs within the provided Isochrone. + * The returned polygon can be used for further processing such as [Search Inside Geometry](/rest/api/maps/search/post-search-inside-geometry) to search for POIs within the provided isochrone. */ export interface RouteGetRouteRangeDefaultResponse extends HttpResponse { status: string; @@ -561,14 +627,9 @@ export interface RouteGetRouteRangeDefaultResponse extends HttpResponse { } /** - * **Route Directions Batch API** - * - * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * * + * The `Post Route Directions Batch` API is an HTTP `POST` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single asynchronous request. You can call `Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. To call the `Post Route Directions Batch` API in a synchronous request, see [Post Route Directions Batch Sync](/rest/api/maps/route/post-route-directions-batch-sync). * - * The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. * ### Submit Asynchronous Batch Request * The Asynchronous API is appropriate for processing big volumes of relatively complex route requests * - It allows the retrieval of results in a separate call (multiple downloads are possible). @@ -576,10 +637,13 @@ export interface RouteGetRouteRangeDefaultResponse extends HttpResponse { * - The number of batch items is limited to **700** for this API. * * When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. - * The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period. + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. * - * Please note that asynchronous batch request is a long-running request. Here's a typical sequence of operations: - * 1. Client sends a Route Directions Batch `POST` request to Azure Maps + * Please note that asynchronous batch request is a long-running operation. Here's a typical sequence of operations: + * 1. Client sends a Route Directions Batch `POST` request to Azure Maps. + * ``` + * POST https://atlas.microsoft.com/route/directions/batch/json?api-version=1.0&subscription-key={subscription-key} + * ``` * 2. The server will respond with one of the following: * * > HTTP `202 Accepted` - Batch request has been accepted. @@ -588,9 +652,9 @@ export interface RouteGetRouteRangeDefaultResponse extends HttpResponse { * * 3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request. * This status URI looks like following: - * - * ``` GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0 ``` - * Note:- Please remember to add AUTH information (subscription-key/azure_auth - See [Security](#security)) to the _status URI_ before running it.
+ * ``` + * GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key} + * ``` * 4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results. * * ### POST Body for Batch Request @@ -718,19 +782,14 @@ export interface RouteRequestRouteDirectionsBatch200Response } export interface RouteRequestRouteDirectionsBatch202Headers { - /** New URL to check for the results of the long running process. */ + /** New URL to check for the results of the long-running operation. */ location?: string; } /** - * **Route Directions Batch API** - * - * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * * + * The `Post Route Directions Batch` API is an HTTP `POST` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single asynchronous request. You can call `Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. To call the `Post Route Directions Batch` API in a synchronous request, see [Post Route Directions Batch Sync](/rest/api/maps/route/post-route-directions-batch-sync). * - * The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. * ### Submit Asynchronous Batch Request * The Asynchronous API is appropriate for processing big volumes of relatively complex route requests * - It allows the retrieval of results in a separate call (multiple downloads are possible). @@ -738,10 +797,13 @@ export interface RouteRequestRouteDirectionsBatch202Headers { * - The number of batch items is limited to **700** for this API. * * When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. - * The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period. + * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period. * - * Please note that asynchronous batch request is a long-running request. Here's a typical sequence of operations: - * 1. Client sends a Route Directions Batch `POST` request to Azure Maps + * Please note that asynchronous batch request is a long-running operation. Here's a typical sequence of operations: + * 1. Client sends a Route Directions Batch `POST` request to Azure Maps. + * ``` + * POST https://atlas.microsoft.com/route/directions/batch/json?api-version=1.0&subscription-key={subscription-key} + * ``` * 2. The server will respond with one of the following: * * > HTTP `202 Accepted` - Batch request has been accepted. @@ -750,9 +812,9 @@ export interface RouteRequestRouteDirectionsBatch202Headers { * * 3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request. * This status URI looks like following: - * - * ``` GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0 ``` - * Note:- Please remember to add AUTH information (subscription-key/azure_auth - See [Security](#security)) to the _status URI_ before running it.
+ * ``` + * GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key} + * ``` * 4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results. * * ### POST Body for Batch Request @@ -876,12 +938,12 @@ export interface RouteRequestRouteDirectionsBatch202Headers { export interface RouteRequestRouteDirectionsBatch202Response extends HttpResponse { status: "202"; - body: Record; headers: RawHttpHeaders & RouteRequestRouteDirectionsBatch202Headers; } /** - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). + * + * The `Get Route Directions Batch` API is an HTTP `GET` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single request. You can call `Get Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. * * ### Download Asynchronous Batch Results * To download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following: @@ -987,12 +1049,13 @@ export interface RouteGetRouteDirectionsBatch200Response extends HttpResponse { } export interface RouteGetRouteDirectionsBatch202Headers { - /** New URL to check for the results of the long running process. */ + /** New URL to check for the results of the long-running operation. */ location?: string; } /** - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). + * + * The `Get Route Directions Batch` API is an HTTP `GET` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single request. You can call `Get Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. * * ### Download Asynchronous Batch Results * To download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following: @@ -1094,19 +1157,12 @@ export interface RouteGetRouteDirectionsBatch202Headers { */ export interface RouteGetRouteDirectionsBatch202Response extends HttpResponse { status: "202"; - body: Record; headers: RawHttpHeaders & RouteGetRouteDirectionsBatch202Headers; } /** - * **Route Directions Batch API** - * * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * - * - * - * The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. + * The `Post Route Directions Batch Sync` API is an HTTP `POST` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single synchronous request. You can call `Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. To call the `Post Route Directions Batch` API in a asynchronous request, see [Post Route Directions Batch](/rest/api/maps/route/post-route-directions-batch). * ### Submit Synchronous Batch Request * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. * ``` @@ -1201,14 +1257,8 @@ export interface RouteRequestRouteDirectionsBatchSync200Response } /** - * **Route Directions Batch API** - * * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * - * - * - * The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. + * The `Post Route Directions Batch Sync` API is an HTTP `POST` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single synchronous request. You can call `Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. To call the `Post Route Directions Batch` API in a asynchronous request, see [Post Route Directions Batch](/rest/api/maps/route/post-route-directions-batch). * ### Submit Synchronous Batch Request * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. * ``` @@ -1303,14 +1353,8 @@ export interface RouteRequestRouteDirectionsBatchSync408Response } /** - * **Route Directions Batch API** - * - * - * **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier). - * - * * - * The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. You can call Route Directions Batch API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. + * The `Post Route Directions Batch Sync` API is an HTTP `POST` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single synchronous request. You can call `Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. To call the `Post Route Directions Batch` API in a asynchronous request, see [Post Route Directions Batch](/rest/api/maps/route/post-route-directions-batch). * ### Submit Synchronous Batch Request * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. * ``` diff --git a/sdk/maps/maps-route-rest/src/generated/serializeHelper.ts b/sdk/maps/maps-route-rest/src/generated/serializeHelper.ts new file mode 100644 index 000000000000..a19f11ca222a --- /dev/null +++ b/sdk/maps/maps-route-rest/src/generated/serializeHelper.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +export function buildMultiCollection( + items: string[], + parameterName: string, +): string { + return items + .map((item, index) => { + if (index === 0) { + return item; + } + return `${parameterName}=${item}`; + }) + .join("&"); +} diff --git a/sdk/maps/maps-route-rest/src/helpers.ts b/sdk/maps/maps-route-rest/src/helpers.ts index 5057188daa74..59170a62323c 100644 --- a/sdk/maps/maps-route-rest/src/helpers.ts +++ b/sdk/maps/maps-route-rest/src/helpers.ts @@ -2,7 +2,10 @@ // Licensed under the MIT License. import type { LatLon } from "@azure/maps-common"; -import type { BatchRequest, RouteGetRouteDirectionsQueryParamProperties } from "./generated"; +import type { + BatchRequest, + RouteGetRouteDirectionsQueryParamProperties, +} from "./generated/index.js"; function toLatLonString(coordinates: LatLon): string { return `${coordinates[0]},${coordinates[1]}`; diff --git a/sdk/maps/maps-route-rest/src/index.ts b/sdk/maps/maps-route-rest/src/index.ts index b4ee3027f76c..ab7a5f13ed86 100644 --- a/sdk/maps/maps-route-rest/src/index.ts +++ b/sdk/maps/maps-route-rest/src/index.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import MapsRoute from "./mapsRoute"; +import MapsRoute from "./mapsRoute.js"; -export * from "./generated"; -export * from "./helpers"; +export * from "./generated/index.js"; +export * from "./helpers.js"; export default MapsRoute; diff --git a/sdk/maps/maps-route-rest/src/mapsRoute.ts b/sdk/maps/maps-route-rest/src/mapsRoute.ts index dee3cdbc8718..b26c9625c968 100644 --- a/sdk/maps/maps-route-rest/src/mapsRoute.ts +++ b/sdk/maps/maps-route-rest/src/mapsRoute.ts @@ -5,8 +5,8 @@ import type { ClientOptions } from "@azure-rest/core-client"; import type { AzureKeyCredential, AzureSASCredential, TokenCredential } from "@azure/core-auth"; import { isSASCredential, isTokenCredential } from "@azure/core-auth"; import { createMapsClientIdPolicy } from "@azure/maps-common"; -import type { MapsRouteClient } from "./generated"; -import createClient from "./generated"; +import type { MapsRouteClient } from "./generated/index.js"; +import createClient from "./generated/index.js"; import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; /** diff --git a/sdk/maps/maps-route-rest/swagger/README.md b/sdk/maps/maps-route-rest/swagger/README.md index 49c90304b73e..5eb1df35f9f4 100644 --- a/sdk/maps/maps-route-rest/swagger/README.md +++ b/sdk/maps/maps-route-rest/swagger/README.md @@ -8,6 +8,8 @@ The configuration is following the [RLC quick start guide](https://github.com/Az For the configuration property, please refer to [Index of AutoRestFlag](https://github.com/Azure/autorest/blob/main/docs/generate/flags.md). ```yaml +flavor: azure +openapi-type: data-plane package-name: "@azure-rest/maps-route" title: MapsRouteClient description: Azure Maps Route Client @@ -29,7 +31,7 @@ rest-level-client: true security: AzureKey security-header-name: subscription-key use-extension: - "@autorest/typescript": "6.0.0-rc.3" + "@autorest/typescript": "6.0.28" ``` ## Customization for Track 2 Generator diff --git a/sdk/maps/maps-route-rest/test/public/helper.spec.ts b/sdk/maps/maps-route-rest/test/public/helper.spec.ts index 5593301d09e8..46019043c1ad 100644 --- a/sdk/maps/maps-route-rest/test/public/helper.spec.ts +++ b/sdk/maps/maps-route-rest/test/public/helper.spec.ts @@ -1,10 +1,13 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { BatchRequest, RouteGetRouteDirectionsQueryParamProperties } from "../../src"; -import { createRouteDirectionsBatchRequest, toColonDelimitedLatLonString } from "../../src"; -import { assert } from "chai"; +import type { BatchRequest, RouteGetRouteDirectionsQueryParamProperties } from "../../src/index.js"; +import { + createRouteDirectionsBatchRequest, + toColonDelimitedLatLonString, +} from "../../src/index.js"; import type { LatLon } from "@azure/maps-common"; +import { describe, it, assert } from "vitest"; describe("toColonDelimitedLatLonString", function () { it("should compose the string correctly", function () { diff --git a/sdk/maps/maps-route-rest/test/public/mapsRouteClient.spec.ts b/sdk/maps/maps-route-rest/test/public/mapsRouteClient.spec.ts index 90b0caf37e9f..38ff6edcd6b1 100644 --- a/sdk/maps/maps-route-rest/test/public/mapsRouteClient.spec.ts +++ b/sdk/maps/maps-route-rest/test/public/mapsRouteClient.spec.ts @@ -1,41 +1,38 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Context, Suite } from "mocha"; -import type { RouteDirectionParameters, RouteMatrixQuery } from "../../src"; -import { createRouteDirectionsBatchRequest, toColonDelimitedLatLonString } from "../../src"; +import type { RouteDirectionParameters, RouteMatrixQuery } from "../../src/index.js"; +import { + createRouteDirectionsBatchRequest, + toColonDelimitedLatLonString, +} from "../../src/index.js"; import type { Recorder } from "@azure-tools/test-recorder"; import { isPlaybackMode } from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { createClient, createRecorder, testLogger } from "./utils/recordedClient"; +import { createClient, createRecorder, testLogger } from "./utils/recordedClient.js"; import type { MapsRouteClient, RouteGetRouteDirectionsBatch200Response, RouteGetRouteDirectionsQueryParamProperties, RouteGetRouteMatrix200Response, -} from "../../src/generated"; -import { getLongRunningPoller, isUnexpected } from "../../src/generated"; +} from "../../src/generated/index.js"; +import { getLongRunningPoller, isUnexpected } from "../../src/generated/index.js"; import type { LatLon } from "@azure/maps-common"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("Endpoint can be overwritten", function (this: Suite) { +describe("Endpoint can be overwritten", () => { let recorder: Recorder; - const fastTimeout = 10000; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { testLogger.verbose(`Recorder: starting...`); - recorder = await createRecorder(this); + recorder = await createRecorder(ctx); }); - afterEach(async function () { + afterEach(async () => { testLogger.verbose(`Recorder: stopping...`); await recorder.stop(); }); - before(function (this: Context) { - this.timeout(fastTimeout); - }); - - it("should be executed without specifying baseUrl", async function () { + it("should be executed without specifying baseUrl", async () => { const client = createClient(recorder.configureClientOptions({})); const routeDirectionsResult = await client.path("/route/directions/{format}", "json").get({ queryParameters: { @@ -49,7 +46,7 @@ describe("Endpoint can be overwritten", function (this: Suite) { assert.isOk(!isUnexpected(routeDirectionsResult)); }); - it("should be executed with different baseUrl", async function () { + it("should be executed with different baseUrl", async () => { const client = createClient( recorder.configureClientOptions({ baseUrl: "https://us.atlas.microsoft.com/" }), ); @@ -66,27 +63,22 @@ describe("Endpoint can be overwritten", function (this: Suite) { }); }); -describe("Get Route Directions", function (this: Suite) { +describe("Get Route Directions", () => { let recorder: Recorder; let client: MapsRouteClient; - const fastTimeout = 10000; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { testLogger.verbose(`Recorder: starting...`); - recorder = await createRecorder(this); + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { testLogger.verbose(`Recorder: stopping...`); await recorder.stop(); }); - before(function (this: Context) { - this.timeout(fastTimeout); - }); - - it("should accept LatLon[] and return route directions", async function () { + it("should accept LatLon[] and return route directions", async () => { const routePoints: LatLon[] = [ [52.50931, 13.42936], [52.50274, 13.43872], @@ -102,7 +94,7 @@ describe("Get Route Directions", function (this: Suite) { } }); - it("should accept additional parameters and return route directions", async function () { + it("should accept additional parameters and return route directions", async () => { const routePoints: LatLon[] = [ [47.6133869, -122.0235832], [47.5565375, -122.1411044], @@ -136,27 +128,22 @@ describe("Get Route Directions", function (this: Suite) { }); }); -describe("Get Route Range", function () { +describe("Get Route Range", () => { let recorder: Recorder; let client: MapsRouteClient; - const fastTimeout = 10000; - beforeEach(async function (this: Context) { + beforeEach(async (ctx) => { testLogger.verbose(`Recorder: starting...`); - recorder = await createRecorder(this); + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { testLogger.verbose(`Recorder: stopping...`); await recorder.stop(); }); - before(function (this: Context) { - this.timeout(fastTimeout); - }); - - it("should accept LatLon and return reachable range", async function () { + it("should accept LatLon and return reachable range", async () => { const startCoordinates: LatLon = [50.97452, 5.86605]; const routeRangeResult = await client @@ -170,29 +157,23 @@ describe("Get Route Range", function () { }); }); -describe("LRO", function (this: Suite) { +describe("LRO", () => { let recorder: Recorder; let client: MapsRouteClient; - const CLITimeout = this.timeout(); - const fastTimeout = 10000; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); const pollingInterval = isPlaybackMode() ? 0 : 2000; - before(function (this: Context) { - this.timeout(isPlaybackMode() ? fastTimeout : CLITimeout); - }); - - describe("Begin Request Route Directions Batch", function () { - it("could take an array of route directions requests as input", async function () { + describe("Begin Request Route Directions Batch", () => { + it("could take an array of route directions requests as input", async () => { const batchRequests: RouteGetRouteDirectionsQueryParamProperties[] = [ { query: toColonDelimitedLatLonString([ @@ -225,7 +206,7 @@ describe("LRO", function (this: Suite) { const initialResponse = await client.path("/route/directions/batch/{format}", "json").post({ body: createRouteDirectionsBatchRequest(batchRequests), }); - const poller = getLongRunningPoller(client, initialResponse, { + const poller = await getLongRunningPoller(client, initialResponse, { intervalInMs: pollingInterval, }); @@ -236,8 +217,8 @@ describe("LRO", function (this: Suite) { }); }); - describe("Resume Route Directions Batch Result", function () { - it("should be able to resume the previous request", async function () { + describe("Resume Route Directions Batch Result", () => { + it("should be able to resume the previous request", async () => { const batchRequests: RouteGetRouteDirectionsQueryParamProperties[] = [ { query: toColonDelimitedLatLonString([ @@ -272,14 +253,14 @@ describe("LRO", function (this: Suite) { const initialResponse = await client.path("/route/directions/batch/{format}", "json").post({ body: createRouteDirectionsBatchRequest(batchRequests), }); - const originalPoller = getLongRunningPoller(client, initialResponse, { + const originalPoller = await getLongRunningPoller(client, initialResponse, { intervalInMs: pollingInterval, }); - const serializedState = originalPoller.toString(); + const serializedState = await originalPoller.serialize(); // Use serialized state to retrieve the result - const rehydratedPoller = getLongRunningPoller(client, initialResponse, { - resumeFrom: serializedState, + const rehydratedPoller = await getLongRunningPoller(client, initialResponse, { + restoreFrom: serializedState, intervalInMs: pollingInterval, }); const batchResult = @@ -289,7 +270,7 @@ describe("LRO", function (this: Suite) { assert.equal(batchResult.body.batchItems.length, batchRequests.length); }); - it("should obtain the same result from the rehydrated poller after the lro is finished", async function () { + it("should obtain the same result from the rehydrated poller after the lro is finished", async () => { const batchRequests: RouteGetRouteDirectionsQueryParamProperties[] = [ { query: toColonDelimitedLatLonString([ @@ -324,15 +305,16 @@ describe("LRO", function (this: Suite) { const initialResponse = await client.path("/route/directions/batch/{format}", "json").post({ body: createRouteDirectionsBatchRequest(batchRequests), }); - const originalPoller = getLongRunningPoller(client, initialResponse, { + const originalPoller = await getLongRunningPoller(client, initialResponse, { intervalInMs: pollingInterval, }); const originalResult = await originalPoller.pollUntilDone(); // Use serialized state to retrieve the result - const serializedState = originalPoller.toString(); - const rehydratedPoller = getLongRunningPoller(client, initialResponse, { - resumeFrom: serializedState, + const serializedState = await originalPoller.serialize(); + + const rehydratedPoller = await getLongRunningPoller(client, initialResponse, { + restoreFrom: serializedState, intervalInMs: pollingInterval, }); const rehydratedResult = await rehydratedPoller.pollUntilDone(); @@ -341,8 +323,8 @@ describe("LRO", function (this: Suite) { }); }); - describe("Begin Request Route Matrix", function () { - it("should accept routeMatrixQuery as input", async function () { + describe("Begin Request Route Matrix", () => { + it("should accept routeMatrixQuery as input", async () => { const routeMatrixQuery: RouteMatrixQuery = { origins: { type: "MultiPoint", @@ -363,7 +345,7 @@ describe("LRO", function (this: Suite) { const initialResponse = await client .path("/route/matrix/{format}", "json") .post({ body: routeMatrixQuery }); - const poller = getLongRunningPoller(client, initialResponse, { + const poller = await getLongRunningPoller(client, initialResponse, { intervalInMs: pollingInterval, }); const routeMatrixResult = (await poller.pollUntilDone()) as RouteGetRouteMatrix200Response; @@ -374,8 +356,8 @@ describe("LRO", function (this: Suite) { }); }); - describe("Resume Get Route Matrix Result", function () { - it("should be able to resume the previous request", async function () { + describe("Resume Get Route Matrix Result", () => { + it("should be able to resume the previous request", async () => { const routeMatrixQuery: RouteMatrixQuery = { origins: { type: "MultiPoint", @@ -397,15 +379,15 @@ describe("LRO", function (this: Suite) { const initialResponse = await client.path("/route/matrix/{format}", "json").post({ body: routeMatrixQuery, }); - const originalPoller = getLongRunningPoller(client, initialResponse, { + const originalPoller = await getLongRunningPoller(client, initialResponse, { intervalInMs: pollingInterval, }); - const serializedState = originalPoller.toString(); + const serializedState = await originalPoller.serialize(); // Use saved batchId to retrieve the result - const rehydratedPoller = getLongRunningPoller(client, initialResponse, { + const rehydratedPoller = await getLongRunningPoller(client, initialResponse, { intervalInMs: pollingInterval, - resumeFrom: serializedState, + restoreFrom: serializedState, }); const routeMatrixResult = (await rehydratedPoller.pollUntilDone()) as RouteGetRouteMatrix200Response; @@ -415,7 +397,7 @@ describe("LRO", function (this: Suite) { assert.equal(routeMatrixResult.body.summary.totalRoutes, 4); }); - it("should obtain the same result as beginRequestRouteMatrix ", async function () { + it("should obtain the same result as beginRequestRouteMatrix ", async () => { const routeMatrixQuery: RouteMatrixQuery = { origins: { type: "MultiPoint", @@ -437,16 +419,17 @@ describe("LRO", function (this: Suite) { const initialResponse = await client.path("/route/matrix/{format}", "json").post({ body: routeMatrixQuery, }); - const originalPoller = getLongRunningPoller(client, initialResponse, { + const originalPoller = await getLongRunningPoller(client, initialResponse, { intervalInMs: pollingInterval, }); const originalResult = await originalPoller.pollUntilDone(); // Use serialized state to retrieve the result - const serializedState = originalPoller.toString(); - const rehydratedPoller = getLongRunningPoller(client, initialResponse, { + const serializedState = await originalPoller.serialize(); + + const rehydratedPoller = await getLongRunningPoller(client, initialResponse, { intervalInMs: pollingInterval, - resumeFrom: serializedState, + restoreFrom: serializedState, }); const rehydratedResult = await rehydratedPoller.pollUntilDone(); diff --git a/sdk/maps/maps-route-rest/test/public/utils/env.browser.ts b/sdk/maps/maps-route-rest/test/public/utils/env-browser.mts similarity index 100% rename from sdk/maps/maps-route-rest/test/public/utils/env.browser.ts rename to sdk/maps/maps-route-rest/test/public/utils/env-browser.mts diff --git a/sdk/maps/maps-route-rest/test/public/utils/recordedClient.ts b/sdk/maps/maps-route-rest/test/public/utils/recordedClient.ts index 67d28f41a749..3d76cebb4825 100644 --- a/sdk/maps/maps-route-rest/test/public/utils/recordedClient.ts +++ b/sdk/maps/maps-route-rest/test/public/utils/recordedClient.ts @@ -1,15 +1,13 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. - -import type { Context } from "mocha"; -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { Recorder, env } from "@azure-tools/test-recorder"; -import "./env"; +import "./env.js"; import { createClientLogger } from "@azure/logger"; import { createTestCredential } from "@azure-tools/test-credential"; -import MapsRoute from "../../../src/mapsRoute"; +import MapsRoute from "../../../src/mapsRoute.js"; import type { ClientOptions } from "@azure-rest/core-client"; -import type { MapsRouteClient } from "../../../src/generated"; +import type { MapsRouteClient } from "../../../src/generated/index.js"; const envSetupForPlayback: Record = { MAPS_RESOURCE_CLIENT_ID: "azure_maps_client_id", @@ -24,8 +22,8 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); +export async function createRecorder(context: TestInfo): Promise { + const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; } diff --git a/sdk/maps/maps-route-rest/tsconfig.browser.config.json b/sdk/maps/maps-route-rest/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/maps/maps-route-rest/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/maps/maps-route-rest/tsconfig.json b/sdk/maps/maps-route-rest/tsconfig.json index 8c95568f19e6..8b6fad2202c0 100644 --- a/sdk/maps/maps-route-rest/tsconfig.json +++ b/sdk/maps/maps-route-rest/tsconfig.json @@ -1,11 +1,20 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", - // Configuring the path so that the Samples engine could resolve the sample-dev package against the source code of the SDK. - // Reference: https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/RLC-quickstart.md#how-to-write-samples - "paths": { "@azure-rest/maps-route": ["./src/index"] } + "paths": { + "@azure-rest/maps-route": ["./src/index"] + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/maps/maps-route-rest/vitest.browser.config.ts b/sdk/maps/maps-route-rest/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/maps/maps-route-rest/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/maps/maps-route-rest/vitest.config.ts b/sdk/maps/maps-route-rest/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/maps/maps-route-rest/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/maps/maps-search-rest/CHANGELOG.md b/sdk/maps/maps-search-rest/CHANGELOG.md index 244f7fc50d1b..8fff536e61e1 100644 --- a/sdk/maps/maps-search-rest/CHANGELOG.md +++ b/sdk/maps/maps-search-rest/CHANGELOG.md @@ -1,8 +1,6 @@ # Release History -## 2.0.0-beta.2 (Unreleased) - -### Features Added +## 2.0.0-beta.2 (2024-12-10) ### Breaking Changes @@ -12,8 +10,6 @@ - Fix the Microsoft Entra ID authentication when providing `baseUrl`. -### Other Changes - ## 2.0.0-beta.1 (2024-01-09) ### Features Added diff --git a/sdk/maps/maps-search-rest/api-extractor.json b/sdk/maps/maps-search-rest/api-extractor.json index 3b45c10dca04..9a6ebf0a0ba0 100644 --- a/sdk/maps/maps-search-rest/api-extractor.json +++ b/sdk/maps/maps-search-rest/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./types/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "mainEntryPointFilePath": "dist/esm/index.d.ts", + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/maps-search-rest.d.ts" + "publicTrimmedFilePath": "dist/maps-search-rest.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } } diff --git a/sdk/maps/maps-search-rest/generated/clientDefinitions.ts b/sdk/maps/maps-search-rest/generated/clientDefinitions.ts deleted file mode 100644 index 324d124601d9..000000000000 --- a/sdk/maps/maps-search-rest/generated/clientDefinitions.ts +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { - SearchGetGeocodingParameters, - SearchGetGeocodingBatchParameters, - SearchGetPolygonParameters, - SearchGetReverseGeocodingParameters, - SearchGetReverseGeocodingBatchParameters, -} from "./parameters"; -import { - SearchGetGeocoding200Response, - SearchGetGeocodingDefaultResponse, - SearchGetGeocodingBatch200Response, - SearchGetGeocodingBatchDefaultResponse, - SearchGetPolygon200Response, - SearchGetPolygonDefaultResponse, - SearchGetReverseGeocoding200Response, - SearchGetReverseGeocodingDefaultResponse, - SearchGetReverseGeocodingBatch200Response, - SearchGetReverseGeocodingBatchDefaultResponse, -} from "./responses"; -import { Client, StreamableMethod } from "@azure-rest/core-client"; - -export interface GetGeocoding { - /** - * - * The `Get Geocoding` API is an HTTP `GET` request that returns the longitude and latitude coordinates of the location being searched. - * - * In many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocoding endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No Point of Interest (POIs) will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties and states. The response also returns detailed address properties such as street, postal code, municipality, and country/region information. - */ - get( - options?: SearchGetGeocodingParameters, - ): StreamableMethod< - SearchGetGeocoding200Response | SearchGetGeocodingDefaultResponse - >; -} - -export interface GetGeocodingBatch { - /** - * - * The `Get Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to the [Geocoding](/rest/api/maps/search/get-geocoding) API in a single request. - * - * ### Submit Synchronous Batch Request - * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. - * ``` - * POST https://atlas.microsoft.com/geocode:batch?api-version=2023-06-01 - * ``` - * ### POST Body for Batch Request - * To send the _geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _geocoding_ queries: - * - * - * ``` - * { - * "batchItems": [ - * { - * "addressLine": "One, Microsoft Way, Redmond, WA 98052", - * "top": 2 - * }, - * { - * "addressLine": "Pike Pl", - * "adminDistrict": "WA", - * "locality": "Seattle", - * "top": 3 - * } - * ] - * } - * ``` - * - * A _geocoding_ batchItem object can accept any of the supported _geocoding_ [URI parameters](/rest/api/maps/search/get-geocoding#uri-parameters). - * - * - * The batch should contain at least **1** query. - * - * - * ### Batch Response Model - * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types: - * - * - [`GeocodingResponse`](/rest/api/maps/search/get-geocoding#geocodingresponse) - If the query completed successfully. - * - * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case. - * - * - * - */ - post( - options: SearchGetGeocodingBatchParameters, - ): StreamableMethod< - SearchGetGeocodingBatch200Response | SearchGetGeocodingBatchDefaultResponse - >; -} - -export interface GetPolygon { - /** - * - * The `Get Polygon` API is an HTTP `GET` request that supplies polygon data of a geographical area outline such as a city or a country region. - */ - get( - options: SearchGetPolygonParameters, - ): StreamableMethod< - SearchGetPolygon200Response | SearchGetPolygonDefaultResponse - >; -} - -export interface GetReverseGeocoding { - /** - * - * The `Get Reverse Geocoding` API is an HTTP `GET` request used to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Useful in tracking applications where you receive a GPS feed from the device or asset and wish to know the address associated with the coordinates. This endpoint will return address information for a given coordinate. - */ - get( - options: SearchGetReverseGeocodingParameters, - ): StreamableMethod< - | SearchGetReverseGeocoding200Response - | SearchGetReverseGeocodingDefaultResponse - >; -} - -export interface GetReverseGeocodingBatch { - /** - * - * The `Get Reverse Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to [Reverse Geocoding](/rest/api/maps/search/get-reverse-geocoding) API using a single request. - * - * ### Submit Synchronous Batch Request - * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. - * ``` - * POST https://atlas.microsoft.com/reverseGeocode:batch?api-version=2023-06-01 - * ``` - * ### POST Body for Batch Request - * To send the _reverse geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _reverse geocoding_ queries: - * - * - * ``` - * { - * "batchItems": [ - * { - * "coordinates": [-122.128275, 47.639429], - * "resultTypes": ["Address", "PopulatedPlace"] - * }, - * { - * "coordinates": [-122.341979399674, 47.6095253501216] - * } - * ] - * } - * ``` - * - * A _reverse geocoding_ batchItem object can accept any of the supported _reverse geocoding_ [URI parameters](/rest/api/maps/search/get-reverse-geocoding#uri-parameters). - * - * - * The batch should contain at least **1** query. - * - * - * ### Batch Response Model - * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types: - * - * - [`GeocodingResponse`](/rest/api/maps/search/get-reverse-geocoding#geocodingresponse) - If the query completed successfully. - * - * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case. - * - * - * - */ - post( - options: SearchGetReverseGeocodingBatchParameters, - ): StreamableMethod< - | SearchGetReverseGeocodingBatch200Response - | SearchGetReverseGeocodingBatchDefaultResponse - >; -} - -export interface Routes { - /** Resource for '/geocode' has methods for the following verbs: get */ - (path: "/geocode"): GetGeocoding; - /** Resource for '/geocode:batch' has methods for the following verbs: post */ - (path: "/geocode:batch"): GetGeocodingBatch; - /** Resource for '/search/polygon' has methods for the following verbs: get */ - (path: "/search/polygon"): GetPolygon; - /** Resource for '/reverseGeocode' has methods for the following verbs: get */ - (path: "/reverseGeocode"): GetReverseGeocoding; - /** Resource for '/reverseGeocode:batch' has methods for the following verbs: post */ - (path: "/reverseGeocode:batch"): GetReverseGeocodingBatch; -} - -export type MapsSearchClient = Client & { - path: Routes; -}; diff --git a/sdk/maps/maps-search-rest/generated/index.ts b/sdk/maps/maps-search-rest/generated/index.ts deleted file mode 100644 index 488446420b82..000000000000 --- a/sdk/maps/maps-search-rest/generated/index.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import MapsSearchClient from "./mapsSearchClient"; - -export * from "./mapsSearchClient"; -export * from "./parameters"; -export * from "./responses"; -export * from "./clientDefinitions"; -export * from "./isUnexpected"; -export * from "./models"; -export * from "./outputModels"; - -export default MapsSearchClient; diff --git a/sdk/maps/maps-search-rest/generated/isUnexpected.ts b/sdk/maps/maps-search-rest/generated/isUnexpected.ts deleted file mode 100644 index 06ec16983749..000000000000 --- a/sdk/maps/maps-search-rest/generated/isUnexpected.ts +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { - SearchGetGeocoding200Response, - SearchGetGeocodingDefaultResponse, - SearchGetGeocodingBatch200Response, - SearchGetGeocodingBatchDefaultResponse, - SearchGetPolygon200Response, - SearchGetPolygonDefaultResponse, - SearchGetReverseGeocoding200Response, - SearchGetReverseGeocodingDefaultResponse, - SearchGetReverseGeocodingBatch200Response, - SearchGetReverseGeocodingBatchDefaultResponse, -} from "./responses"; - -const responseMap: Record = { - "GET /geocode": ["200"], - "POST /geocode:batch": ["200"], - "GET /search/polygon": ["200"], - "GET /reverseGeocode": ["200"], - "POST /reverseGeocode:batch": ["200"], -}; - -export function isUnexpected( - response: SearchGetGeocoding200Response | SearchGetGeocodingDefaultResponse, -): response is SearchGetGeocodingDefaultResponse; -export function isUnexpected( - response: - | SearchGetGeocodingBatch200Response - | SearchGetGeocodingBatchDefaultResponse, -): response is SearchGetGeocodingBatchDefaultResponse; -export function isUnexpected( - response: SearchGetPolygon200Response | SearchGetPolygonDefaultResponse, -): response is SearchGetPolygonDefaultResponse; -export function isUnexpected( - response: - | SearchGetReverseGeocoding200Response - | SearchGetReverseGeocodingDefaultResponse, -): response is SearchGetReverseGeocodingDefaultResponse; -export function isUnexpected( - response: - | SearchGetReverseGeocodingBatch200Response - | SearchGetReverseGeocodingBatchDefaultResponse, -): response is SearchGetReverseGeocodingBatchDefaultResponse; -export function isUnexpected( - response: - | SearchGetGeocoding200Response - | SearchGetGeocodingDefaultResponse - | SearchGetGeocodingBatch200Response - | SearchGetGeocodingBatchDefaultResponse - | SearchGetPolygon200Response - | SearchGetPolygonDefaultResponse - | SearchGetReverseGeocoding200Response - | SearchGetReverseGeocodingDefaultResponse - | SearchGetReverseGeocodingBatch200Response - | SearchGetReverseGeocodingBatchDefaultResponse, -): response is - | SearchGetGeocodingDefaultResponse - | SearchGetGeocodingBatchDefaultResponse - | SearchGetPolygonDefaultResponse - | SearchGetReverseGeocodingDefaultResponse - | SearchGetReverseGeocodingBatchDefaultResponse { - const lroOriginal = response.headers["x-ms-original-url"]; - const url = new URL(lroOriginal ?? response.request.url); - const method = response.request.method; - let pathDetails = responseMap[`${method} ${url.pathname}`]; - if (!pathDetails) { - pathDetails = getParametrizedPathSuccess(method, url.pathname); - } - return !pathDetails.includes(response.status); -} - -function getParametrizedPathSuccess(method: string, path: string): string[] { - const pathParts = path.split("/"); - - // Traverse list to match the longest candidate - // matchedLen: the length of candidate path - // matchedValue: the matched status code array - let matchedLen = -1, - matchedValue: string[] = []; - - // Iterate the responseMap to find a match - for (const [key, value] of Object.entries(responseMap)) { - // Extracting the path from the map key which is in format - // GET /path/foo - if (!key.startsWith(method)) { - continue; - } - const candidatePath = getPathFromMapKey(key); - // Get each part of the url path - const candidateParts = candidatePath.split("/"); - - // track if we have found a match to return the values found. - let found = true; - for ( - let i = candidateParts.length - 1, j = pathParts.length - 1; - i >= 1 && j >= 1; - i--, j-- - ) { - if ( - candidateParts[i]?.startsWith("{") && - candidateParts[i]?.indexOf("}") !== -1 - ) { - const start = candidateParts[i]!.indexOf("}") + 1, - end = candidateParts[i]?.length; - // If the current part of the candidate is a "template" part - // Try to use the suffix of pattern to match the path - // {guid} ==> $ - // {guid}:export ==> :export$ - const isMatched = new RegExp( - `${candidateParts[i]?.slice(start, end)}`, - ).test(pathParts[j] || ""); - - if (!isMatched) { - found = false; - break; - } - continue; - } - - // If the candidate part is not a template and - // the parts don't match mark the candidate as not found - // to move on with the next candidate path. - if (candidateParts[i] !== pathParts[j]) { - found = false; - break; - } - } - - // We finished evaluating the current candidate parts - // Update the matched value if and only if we found the longer pattern - if (found && candidatePath.length > matchedLen) { - matchedLen = candidatePath.length; - matchedValue = value; - } - } - - return matchedValue; -} - -function getPathFromMapKey(mapKey: string): string { - const pathStart = mapKey.indexOf("/"); - return mapKey.slice(pathStart); -} diff --git a/sdk/maps/maps-search-rest/generated/parameters.ts b/sdk/maps/maps-search-rest/generated/parameters.ts deleted file mode 100644 index 3a3040443689..000000000000 --- a/sdk/maps/maps-search-rest/generated/parameters.ts +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { RequestParameters } from "@azure-rest/core-client"; -import { - GeocodingBatchRequestBody, - ReverseGeocodingBatchRequestBody, -} from "./models"; - -export interface SearchGetGeocodingQueryParamProperties { - /** Maximum number of responses that will be returned. Default: 5, minimum: 1 and maximum: 20. */ - top?: number; - /** A string that contains information about a location, such as an address or landmark name. */ - query?: string; - /** - * The official street line of an address relative to the area, as specified by the locality, or postalCode, properties. Typical use of this element would be to provide a street address or any official address. - * - * **If query is given, should not use this parameter.** - */ - addressLine?: string; - /** - * Signal for the geocoding result to an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) that is specified e.g. FR./ - * - * **If query is given, should not use this parameter.** - */ - countryRegion?: string; - /** - * A rectangular area on the earth defined as a bounding box object. The sides of the rectangles are defined by longitude and latitude values. When you specify this parameter, the geographical area is taken into account when computing the results of a location query. - * - * Example: lon1,lat1,lon2,lat2 - */ - bbox?: Array; - /** - * A string that represents an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request. - * - * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views. - */ - view?: string; - /** A point on the earth specified as a longitude and latitude. When you specify this parameter, the user’s location is taken into account and the results returned may be more relevant to the user. Example: &coordinates=lon,lat */ - coordinates?: Array; - /** - * The country subdivision portion of an address, such as WA. - * - * **If query is given, should not use this parameter.** - */ - adminDistrict?: string; - /** - * The county for the structured address, such as King. - * - * **If query is given, should not use this parameter.** - */ - adminDistrict2?: string; - /** - * The named area for the structured address. - * - * **If query is given, should not use this parameter.** - */ - adminDistrict3?: string; - /** - * The locality portion of an address, such as Seattle. - * - * **If query is given, should not use this parameter.** - */ - locality?: string; - /** - * The postal code portion of an address. - * - * **If query is given, should not use this parameter.** - */ - postalCode?: string; -} - -export interface SearchGetGeocodingQueryParam { - queryParameters?: SearchGetGeocodingQueryParamProperties; -} - -export type SearchGetGeocodingParameters = SearchGetGeocodingQueryParam & - RequestParameters; - -export interface SearchGetGeocodingBatchBodyParam { - /** The list of address geocoding queries/requests to process. The list can contain a max of 100 queries and must contain at least 1 query. */ - body: GeocodingBatchRequestBody; -} - -export interface SearchGetGeocodingBatchMediaTypesParam { - /** Request content type */ - contentType?: "application/json"; -} - -export type SearchGetGeocodingBatchParameters = - SearchGetGeocodingBatchMediaTypesParam & - SearchGetGeocodingBatchBodyParam & - RequestParameters; - -export interface SearchGetPolygonQueryParamProperties { - /** A point on the earth specified as a longitude and latitude. Example: &coordinates=lon,lat */ - coordinates: Array; - /** - * A string that represents an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request. - * - * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views. - */ - view?: string; - /** The geopolitical concept to return a boundary for. If not specified, the default is `countryRegion` result type. */ - resultType?: - | "countryRegion" - | "adminDistrict" - | "adminDistrict2" - | "postalCode" - | "postalCode2" - | "postalCode3" - | "postalCode4" - | "neighborhood" - | "locality"; - /** Resolution determines the amount of points to send back. If not specified, the default is medium resolution. */ - resolution?: "small" | "medium" | "large" | "huge"; -} - -export interface SearchGetPolygonQueryParam { - queryParameters: SearchGetPolygonQueryParamProperties; -} - -export type SearchGetPolygonParameters = SearchGetPolygonQueryParam & - RequestParameters; - -export interface SearchGetReverseGeocodingQueryParamProperties { - /** The coordinates of the location that you want to reverse geocode. Example: &coordinates=lon,lat */ - coordinates: Array; - /** - * Specify entity types that you want in the response. Only the types you specify will be returned. If the point cannot be mapped to the entity types you specify, no location information is returned in the response. - * Default value is all possible entities. - * A comma separated list of entity types selected from the following options. - * - * - Address - * - Neighborhood - * - PopulatedPlace - * - Postcode1 - * - AdminDivision1 - * - AdminDivision2 - * - CountryRegion - * - * These entity types are ordered from the most specific entity to the least specific entity. When entities of more than one entity type are found, only the most specific entity is returned. For example, if you specify Address and AdminDistrict1 as entity types and entities were found for both types, only the Address entity information is returned in the response. - */ - resultTypes?: Array< - | "Address" - | "Neighborhood" - | "PopulatedPlace" - | "Postcode1" - | "AdminDivision1" - | "AdminDivision2" - | "CountryRegion" - >; - /** - * A string that represents an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request. - * - * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views. - */ - view?: string; -} - -export interface SearchGetReverseGeocodingQueryParam { - queryParameters: SearchGetReverseGeocodingQueryParamProperties; -} - -export type SearchGetReverseGeocodingParameters = - SearchGetReverseGeocodingQueryParam & RequestParameters; - -export interface SearchGetReverseGeocodingBatchBodyParam { - /** The list of reverse geocoding queries/requests to process. The list can contain a max of 100 queries and must contain at least 1 query. */ - body: ReverseGeocodingBatchRequestBody; -} - -export interface SearchGetReverseGeocodingBatchMediaTypesParam { - /** Request content type */ - contentType?: "application/json"; -} - -export type SearchGetReverseGeocodingBatchParameters = - SearchGetReverseGeocodingBatchMediaTypesParam & - SearchGetReverseGeocodingBatchBodyParam & - RequestParameters; diff --git a/sdk/maps/maps-search-rest/generated/responses.ts b/sdk/maps/maps-search-rest/generated/responses.ts deleted file mode 100644 index 16de475d489a..000000000000 --- a/sdk/maps/maps-search-rest/generated/responses.ts +++ /dev/null @@ -1,275 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { RawHttpHeaders } from "@azure/core-rest-pipeline"; -import { HttpResponse } from "@azure-rest/core-client"; -import { - GeocodingResponseOutput, - ErrorResponseOutput, - GeocodingBatchResponseOutput, - BoundaryOutput, -} from "./outputModels"; - -export interface SearchGetGeocoding200Headers { - /** request id. */ - "x-ms-request-id"?: string; -} - -/** - * - * The `Get Geocoding` API is an HTTP `GET` request that returns the longitude and latitude coordinates of the location being searched. - * - * In many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocoding endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No Point of Interest (POIs) will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties and states. The response also returns detailed address properties such as street, postal code, municipality, and country/region information. - */ -export interface SearchGetGeocoding200Response extends HttpResponse { - status: "200"; - body: GeocodingResponseOutput; - headers: RawHttpHeaders & SearchGetGeocoding200Headers; -} - -/** - * - * The `Get Geocoding` API is an HTTP `GET` request that returns the longitude and latitude coordinates of the location being searched. - * - * In many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocoding endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No Point of Interest (POIs) will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties and states. The response also returns detailed address properties such as street, postal code, municipality, and country/region information. - */ -export interface SearchGetGeocodingDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** - * - * The `Get Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to the [Geocoding](/rest/api/maps/search/get-geocoding) API in a single request. - * - * ### Submit Synchronous Batch Request - * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. - * ``` - * POST https://atlas.microsoft.com/geocode:batch?api-version=2023-06-01 - * ``` - * ### POST Body for Batch Request - * To send the _geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _geocoding_ queries: - * - * - * ``` - * { - * "batchItems": [ - * { - * "addressLine": "One, Microsoft Way, Redmond, WA 98052", - * "top": 2 - * }, - * { - * "addressLine": "Pike Pl", - * "adminDistrict": "WA", - * "locality": "Seattle", - * "top": 3 - * } - * ] - * } - * ``` - * - * A _geocoding_ batchItem object can accept any of the supported _geocoding_ [URI parameters](/rest/api/maps/search/get-geocoding#uri-parameters). - * - * - * The batch should contain at least **1** query. - * - * - * ### Batch Response Model - * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types: - * - * - [`GeocodingResponse`](/rest/api/maps/search/get-geocoding#geocodingresponse) - If the query completed successfully. - * - * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case. - * - * - * - */ -export interface SearchGetGeocodingBatch200Response extends HttpResponse { - status: "200"; - body: GeocodingBatchResponseOutput; -} - -/** - * - * The `Get Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to the [Geocoding](/rest/api/maps/search/get-geocoding) API in a single request. - * - * ### Submit Synchronous Batch Request - * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. - * ``` - * POST https://atlas.microsoft.com/geocode:batch?api-version=2023-06-01 - * ``` - * ### POST Body for Batch Request - * To send the _geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _geocoding_ queries: - * - * - * ``` - * { - * "batchItems": [ - * { - * "addressLine": "One, Microsoft Way, Redmond, WA 98052", - * "top": 2 - * }, - * { - * "addressLine": "Pike Pl", - * "adminDistrict": "WA", - * "locality": "Seattle", - * "top": 3 - * } - * ] - * } - * ``` - * - * A _geocoding_ batchItem object can accept any of the supported _geocoding_ [URI parameters](/rest/api/maps/search/get-geocoding#uri-parameters). - * - * - * The batch should contain at least **1** query. - * - * - * ### Batch Response Model - * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types: - * - * - [`GeocodingResponse`](/rest/api/maps/search/get-geocoding#geocodingresponse) - If the query completed successfully. - * - * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case. - * - * - * - */ -export interface SearchGetGeocodingBatchDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** - * - * The `Get Polygon` API is an HTTP `GET` request that supplies polygon data of a geographical area outline such as a city or a country region. - */ -export interface SearchGetPolygon200Response extends HttpResponse { - status: "200"; - body: BoundaryOutput; -} - -/** - * - * The `Get Polygon` API is an HTTP `GET` request that supplies polygon data of a geographical area outline such as a city or a country region. - */ -export interface SearchGetPolygonDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** - * - * The `Get Reverse Geocoding` API is an HTTP `GET` request used to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Useful in tracking applications where you receive a GPS feed from the device or asset and wish to know the address associated with the coordinates. This endpoint will return address information for a given coordinate. - */ -export interface SearchGetReverseGeocoding200Response extends HttpResponse { - status: "200"; - body: GeocodingResponseOutput; -} - -/** - * - * The `Get Reverse Geocoding` API is an HTTP `GET` request used to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Useful in tracking applications where you receive a GPS feed from the device or asset and wish to know the address associated with the coordinates. This endpoint will return address information for a given coordinate. - */ -export interface SearchGetReverseGeocodingDefaultResponse extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} - -/** - * - * The `Get Reverse Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to [Reverse Geocoding](/rest/api/maps/search/get-reverse-geocoding) API using a single request. - * - * ### Submit Synchronous Batch Request - * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. - * ``` - * POST https://atlas.microsoft.com/reverseGeocode:batch?api-version=2023-06-01 - * ``` - * ### POST Body for Batch Request - * To send the _reverse geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _reverse geocoding_ queries: - * - * - * ``` - * { - * "batchItems": [ - * { - * "coordinates": [-122.128275, 47.639429], - * "resultTypes": ["Address", "PopulatedPlace"] - * }, - * { - * "coordinates": [-122.341979399674, 47.6095253501216] - * } - * ] - * } - * ``` - * - * A _reverse geocoding_ batchItem object can accept any of the supported _reverse geocoding_ [URI parameters](/rest/api/maps/search/get-reverse-geocoding#uri-parameters). - * - * - * The batch should contain at least **1** query. - * - * - * ### Batch Response Model - * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types: - * - * - [`GeocodingResponse`](/rest/api/maps/search/get-reverse-geocoding#geocodingresponse) - If the query completed successfully. - * - * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case. - * - * - * - */ -export interface SearchGetReverseGeocodingBatch200Response - extends HttpResponse { - status: "200"; - body: GeocodingBatchResponseOutput; -} - -/** - * - * The `Get Reverse Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to [Reverse Geocoding](/rest/api/maps/search/get-reverse-geocoding) API using a single request. - * - * ### Submit Synchronous Batch Request - * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. - * ``` - * POST https://atlas.microsoft.com/reverseGeocode:batch?api-version=2023-06-01 - * ``` - * ### POST Body for Batch Request - * To send the _reverse geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _reverse geocoding_ queries: - * - * - * ``` - * { - * "batchItems": [ - * { - * "coordinates": [-122.128275, 47.639429], - * "resultTypes": ["Address", "PopulatedPlace"] - * }, - * { - * "coordinates": [-122.341979399674, 47.6095253501216] - * } - * ] - * } - * ``` - * - * A _reverse geocoding_ batchItem object can accept any of the supported _reverse geocoding_ [URI parameters](/rest/api/maps/search/get-reverse-geocoding#uri-parameters). - * - * - * The batch should contain at least **1** query. - * - * - * ### Batch Response Model - * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types: - * - * - [`GeocodingResponse`](/rest/api/maps/search/get-reverse-geocoding#geocodingresponse) - If the query completed successfully. - * - * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case. - * - * - * - */ -export interface SearchGetReverseGeocodingBatchDefaultResponse - extends HttpResponse { - status: string; - body: ErrorResponseOutput; -} diff --git a/sdk/maps/maps-search-rest/karma.conf.js b/sdk/maps/maps-search-rest/karma.conf.js deleted file mode 100644 index 8793e336491d..000000000000 --- a/sdk/maps/maps-search-rest/karma.conf.js +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// https://github.com/karma-runner/karma-chrome-launcher -process.env.CHROME_BIN = require("puppeteer").executablePath(); -require("dotenv").config(); -const { relativeRecordingsPath } = require("@azure-tools/test-recorder"); -process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath(); - -module.exports = function (config) { - config.set({ - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: "./", - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ["source-map-support", "mocha"], - - plugins: [ - "karma-mocha", - "karma-mocha-reporter", - "karma-chrome-launcher", - "karma-firefox-launcher", - "karma-env-preprocessor", - "karma-coverage", - "karma-sourcemap-loader", - "karma-junit-reporter", - "karma-source-map-support", - ], - - // list of files / patterns to load in the browser - files: [ - "dist-test/index.browser.js", - { - pattern: "dist-test/index.browser.js.map", - type: "html", - included: false, - served: true, - }, - ], - - // list of files / patterns to exclude - exclude: [], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - "**/*.js": ["sourcemap", "env"], - // IMPORTANT: COMMENT following line if you want to debug in your browsers!! - // Preprocess source file to calculate code coverage, however this will make source file unreadable - // "dist-test/index.js": ["coverage"] - }, - - envPreprocessor: ["TEST_MODE", "MAPS_RESOURCE_CLIENT_ID", "RECORDINGS_RELATIVE_PATH"], - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ["mocha", "coverage", "junit"], - - coverageReporter: { - // specify a common output directory - dir: "coverage-browser/", - reporters: [ - { type: "json", subdir: ".", file: "coverage.json" }, - { type: "lcovonly", subdir: ".", file: "lcov.info" }, - { type: "html", subdir: "html" }, - { type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }, - ], - }, - - junitReporter: { - outputDir: "", // results will be saved as $outputDir/$browserName.xml - outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile - suite: "", // suite will become the package name attribute in xml testsuite element - useBrowserName: false, // add browser name to report and classes names - nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element - classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element - properties: {}, // key value pair of properties to add to the section of the report - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // --no-sandbox allows our tests to run in Linux without having to change the system. - // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], - customLaunchers: { - ChromeHeadlessNoSandbox: { - base: "ChromeHeadless", - flags: ["--no-sandbox", "--disable-web-security"], - }, - }, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: false, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: 1, - - browserNoActivityTimeout: 60000000, - browserDisconnectTimeout: 10000, - browserDisconnectTolerance: 3, - - client: { - mocha: { - // change Karma's debug.html to the mocha web reporter - reporter: "html", - timeout: "600000", - }, - }, - }); -}; diff --git a/sdk/maps/maps-search-rest/package.json b/sdk/maps/maps-search-rest/package.json index c03f6c9db2fb..ef9a8e541e84 100644 --- a/sdk/maps/maps-search-rest/package.json +++ b/sdk/maps/maps-search-rest/package.json @@ -13,31 +13,28 @@ "isomorphic" ], "license": "MIT", - "main": "dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/maps-search-rest.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/", - "dist-esm/src/", - "types/maps-search-rest.d.ts", "README.md", - "LICENSE", - "review/*" + "LICENSE" ], "engines": { "node": ">=18.0.0" }, "scripts": { - "build": "npm run clean && tsc -p . && dev-tool run bundle && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:browser": "tsc -p . && dev-tool run bundle", - "build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api", - "build:node": "tsc -p . && dev-tool run bundle --browser-test false", + "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "dev-tool run build-package && dev-tool run bundle", + "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api", + "build:node": "dev-tool run build-package && dev-tool run bundle --browser-test false", "build:samples": "dev-tool samples publish --force", - "build:test": "tsc -p . && dev-tool run bundle", + "build:test": "dev-tool run build-package && dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "dev-tool samples run samples-dev", @@ -45,8 +42,8 @@ "format": "dev-tool run vendored 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": "npm run integration-test:node && npm run integration-test:browser", - "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "integration-test:node": "dev-tool run test:vitest", "lint": "eslint package.json api-extractor.json src test", "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", @@ -54,51 +51,38 @@ "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", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "dev-tool run 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": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, "autoPublish": false, "dependencies": { - "@azure-rest/core-client": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-lro": "^2.2.0", - "@azure/core-rest-pipeline": "^1.8.0", - "@azure/logger": "^1.0.4", + "@azure-rest/core-client": "^2.3.1", + "@azure/core-auth": "^1.9.0", + "@azure/core-lro": "^2.7.2", + "@azure/core-rest-pipeline": "^1.18.0", + "@azure/logger": "^1.1.4", "@azure/maps-common": "1.0.0-beta.2", - "tslib": "^2.2.0" + "tslib": "^2.8.1" }, "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-utils": "~1.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/core-util": "^1.9.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", + "@azure/identity": "^4.5.0", "@types/node": "^18.0.0", + "@vitest/browser": "^2.1.5", + "@vitest/coverage-istanbul": "^2.1.5", "autorest": "latest", - "chai": "^4.2.0", "dotenv": "^16.0.0", "eslint": "^9.9.0", - "karma": "^6.2.0", - "karma-chrome-launcher": "^3.0.0", - "karma-coverage": "^2.0.0", - "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", - "karma-junit-reporter": "^2.0.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.5", - "karma-source-map-support": "~1.4.0", - "karma-sourcemap-loader": "^0.3.8", - "mocha": "^10.0.0", - "nyc": "^17.0.0", - "source-map-support": "^0.5.9", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "playwright": "^1.49.0", + "typescript": "~5.6.2", + "vitest": "^2.1.5" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/maps-search-rest/README.md", "//metadata": { @@ -109,9 +93,7 @@ } ] }, - "browser": { - "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js" - }, + "browser": "./dist/browser/index.js", "//sampleConfiguration": { "productName": "MapsSearchClient", "productSlugs": [ @@ -123,5 +105,42 @@ }, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure-rest/maps-search", "disableDocsMs": true + }, + "type": "module", + "tshy": { + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/maps/maps-search-rest/samples-dev/geocoding.ts b/sdk/maps/maps-search-rest/samples-dev/geocoding.ts index 5c1d99272c10..16f1ddb4dc42 100644 --- a/sdk/maps/maps-search-rest/samples-dev/geocoding.ts +++ b/sdk/maps/maps-search-rest/samples-dev/geocoding.ts @@ -3,9 +3,7 @@ import MapsSearch, { isUnexpected } from "@azure-rest/maps-search"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * @summary Demonstrate how to search the coordinates of an address (a.k.a. Geocoding). diff --git a/sdk/maps/maps-search-rest/samples-dev/geocodingBatch.ts b/sdk/maps/maps-search-rest/samples-dev/geocodingBatch.ts index c634bc0b6430..0c9bbf275953 100644 --- a/sdk/maps/maps-search-rest/samples-dev/geocodingBatch.ts +++ b/sdk/maps/maps-search-rest/samples-dev/geocodingBatch.ts @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import MapsSearch, { GeocodingBatchResponseOutput, isUnexpected } from "@azure-rest/maps-search"; +import type { GeocodingBatchResponseOutput } from "@azure-rest/maps-search"; +import MapsSearch, { isUnexpected } from "@azure-rest/maps-search"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * @summary This sample demonstrates how to make a batched search address request. diff --git a/sdk/maps/maps-search-rest/samples-dev/reverseGeocoding.ts b/sdk/maps/maps-search-rest/samples-dev/reverseGeocoding.ts index 03aeccfee5c9..fe93fc8f9abe 100644 --- a/sdk/maps/maps-search-rest/samples-dev/reverseGeocoding.ts +++ b/sdk/maps/maps-search-rest/samples-dev/reverseGeocoding.ts @@ -3,9 +3,7 @@ import MapsSearch, { isUnexpected } from "@azure-rest/maps-search"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * @summary This sample demonstrates how to reverse a geocode to an address. diff --git a/sdk/maps/maps-search-rest/samples-dev/reverseGeocodingBatch.ts b/sdk/maps/maps-search-rest/samples-dev/reverseGeocodingBatch.ts index 1f44c417a146..cc6664ab62e4 100644 --- a/sdk/maps/maps-search-rest/samples-dev/reverseGeocodingBatch.ts +++ b/sdk/maps/maps-search-rest/samples-dev/reverseGeocodingBatch.ts @@ -1,11 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import MapsSearch, { GeocodingBatchResponseOutput, isUnexpected } from "@azure-rest/maps-search"; +import type { GeocodingBatchResponseOutput } from "@azure-rest/maps-search"; +import MapsSearch, { isUnexpected } from "@azure-rest/maps-search"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * @summary Demonstrate how to request a batch of reverse geocoding. diff --git a/sdk/maps/maps-search-rest/samples-dev/searchPolygons.ts b/sdk/maps/maps-search-rest/samples-dev/searchPolygons.ts index 4ea4947c408d..b0d1cd7d4ffe 100644 --- a/sdk/maps/maps-search-rest/samples-dev/searchPolygons.ts +++ b/sdk/maps/maps-search-rest/samples-dev/searchPolygons.ts @@ -3,9 +3,7 @@ import MapsSearch, { isUnexpected } from "@azure-rest/maps-search"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * @summary Demonstrate how to request the geometry data such as a city or country outline for a set of entities, previously retrieved from an Online Search request in GeoJSON format. diff --git a/sdk/maps/maps-search-rest/src/MapsSearch.ts b/sdk/maps/maps-search-rest/src/MapsSearch.ts index 1dc9301f8cce..61c7a44d417b 100644 --- a/sdk/maps/maps-search-rest/src/MapsSearch.ts +++ b/sdk/maps/maps-search-rest/src/MapsSearch.ts @@ -5,8 +5,8 @@ import type { ClientOptions } from "@azure-rest/core-client"; import type { AzureKeyCredential, AzureSASCredential, TokenCredential } from "@azure/core-auth"; import { isSASCredential, isTokenCredential } from "@azure/core-auth"; import { createMapsClientIdPolicy } from "@azure/maps-common"; -import type { MapsSearchClient } from "../generated"; -import createClient from "../generated"; +import type { MapsSearchClient } from "./generated/index.js"; +import createClient from "./generated/index.js"; import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; /** diff --git a/sdk/maps/maps-search-rest/src/generated/clientDefinitions.ts b/sdk/maps/maps-search-rest/src/generated/clientDefinitions.ts new file mode 100644 index 000000000000..c0934494090f --- /dev/null +++ b/sdk/maps/maps-search-rest/src/generated/clientDefinitions.ts @@ -0,0 +1,185 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + SearchGetGeocodingParameters, + SearchGetGeocodingBatchParameters, + SearchGetPolygonParameters, + SearchGetReverseGeocodingParameters, + SearchGetReverseGeocodingBatchParameters, +} from "./parameters.js"; +import { + SearchGetGeocoding200Response, + SearchGetGeocodingDefaultResponse, + SearchGetGeocodingBatch200Response, + SearchGetGeocodingBatchDefaultResponse, + SearchGetPolygon200Response, + SearchGetPolygonDefaultResponse, + SearchGetReverseGeocoding200Response, + SearchGetReverseGeocodingDefaultResponse, + SearchGetReverseGeocodingBatch200Response, + SearchGetReverseGeocodingBatchDefaultResponse, +} from "./responses.js"; +import { Client, StreamableMethod } from "@azure-rest/core-client"; + +export interface GetGeocoding { + /** + * + * The `Get Geocoding` API is an HTTP `GET` request that returns the longitude and latitude coordinates of the location being searched. + * + * In many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocoding endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No Point of Interest (POIs) will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties and states. The response also returns detailed address properties such as street, postal code, municipality, and country/region information. + */ + get( + options?: SearchGetGeocodingParameters, + ): StreamableMethod< + SearchGetGeocoding200Response | SearchGetGeocodingDefaultResponse + >; +} + +export interface GetGeocodingBatch { + /** + * + * The `Get Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to the [Geocoding](/rest/api/maps/search/get-geocoding) API in a single request. + * + * ### Submit Synchronous Batch Request + * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. + * ``` + * POST https://atlas.microsoft.com/geocode:batch?api-version=2023-06-01 + * ``` + * ### POST Body for Batch Request + * To send the _geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _geocoding_ queries: + * + * + * ``` + * { + * "batchItems": [ + * { + * "addressLine": "One, Microsoft Way, Redmond, WA 98052", + * "top": 2 + * }, + * { + * "addressLine": "Pike Pl", + * "adminDistrict": "WA", + * "locality": "Seattle", + * "top": 3 + * } + * ] + * } + * ``` + * + * A _geocoding_ batchItem object can accept any of the supported _geocoding_ [URI parameters](/rest/api/maps/search/get-geocoding#uri-parameters). + * + * + * The batch should contain at least **1** query. + * + * + * ### Batch Response Model + * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types: + * + * - [`GeocodingResponse`](/rest/api/maps/search/get-geocoding#geocodingresponse) - If the query completed successfully. + * + * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case. + * + * + * + */ + post( + options: SearchGetGeocodingBatchParameters, + ): StreamableMethod< + SearchGetGeocodingBatch200Response | SearchGetGeocodingBatchDefaultResponse + >; +} + +export interface GetPolygon { + /** + * + * The `Get Polygon` API is an HTTP `GET` request that supplies polygon data of a geographical area outline such as a city or a country region. + */ + get( + options: SearchGetPolygonParameters, + ): StreamableMethod< + SearchGetPolygon200Response | SearchGetPolygonDefaultResponse + >; +} + +export interface GetReverseGeocoding { + /** + * + * The `Get Reverse Geocoding` API is an HTTP `GET` request used to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Useful in tracking applications where you receive a GPS feed from the device or asset and wish to know the address associated with the coordinates. This endpoint will return address information for a given coordinate. + */ + get( + options: SearchGetReverseGeocodingParameters, + ): StreamableMethod< + | SearchGetReverseGeocoding200Response + | SearchGetReverseGeocodingDefaultResponse + >; +} + +export interface GetReverseGeocodingBatch { + /** + * + * The `Get Reverse Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to [Reverse Geocoding](/rest/api/maps/search/get-reverse-geocoding) API using a single request. + * + * ### Submit Synchronous Batch Request + * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. + * ``` + * POST https://atlas.microsoft.com/reverseGeocode:batch?api-version=2023-06-01 + * ``` + * ### POST Body for Batch Request + * To send the _reverse geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _reverse geocoding_ queries: + * + * + * ``` + * { + * "batchItems": [ + * { + * "coordinates": [-122.128275, 47.639429], + * "resultTypes": ["Address", "PopulatedPlace"] + * }, + * { + * "coordinates": [-122.341979399674, 47.6095253501216] + * } + * ] + * } + * ``` + * + * A _reverse geocoding_ batchItem object can accept any of the supported _reverse geocoding_ [URI parameters](/rest/api/maps/search/get-reverse-geocoding#uri-parameters). + * + * + * The batch should contain at least **1** query. + * + * + * ### Batch Response Model + * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types: + * + * - [`GeocodingResponse`](/rest/api/maps/search/get-reverse-geocoding#geocodingresponse) - If the query completed successfully. + * + * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case. + * + * + * + */ + post( + options: SearchGetReverseGeocodingBatchParameters, + ): StreamableMethod< + | SearchGetReverseGeocodingBatch200Response + | SearchGetReverseGeocodingBatchDefaultResponse + >; +} + +export interface Routes { + /** Resource for '/geocode' has methods for the following verbs: get */ + (path: "/geocode"): GetGeocoding; + /** Resource for '/geocode:batch' has methods for the following verbs: post */ + (path: "/geocode:batch"): GetGeocodingBatch; + /** Resource for '/search/polygon' has methods for the following verbs: get */ + (path: "/search/polygon"): GetPolygon; + /** Resource for '/reverseGeocode' has methods for the following verbs: get */ + (path: "/reverseGeocode"): GetReverseGeocoding; + /** Resource for '/reverseGeocode:batch' has methods for the following verbs: post */ + (path: "/reverseGeocode:batch"): GetReverseGeocodingBatch; +} + +export type MapsSearchClient = Client & { + path: Routes; +}; diff --git a/sdk/maps/maps-search-rest/src/generated/index.ts b/sdk/maps/maps-search-rest/src/generated/index.ts new file mode 100644 index 000000000000..062ad78d87e8 --- /dev/null +++ b/sdk/maps/maps-search-rest/src/generated/index.ts @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import MapsSearchClient from "./mapsSearchClient.js"; + +export * from "./mapsSearchClient.js"; +export * from "./parameters.js"; +export * from "./responses.js"; +export * from "./clientDefinitions.js"; +export * from "./isUnexpected.js"; +export * from "./models.js"; +export * from "./outputModels.js"; + +export default MapsSearchClient; diff --git a/sdk/maps/maps-search-rest/src/generated/isUnexpected.ts b/sdk/maps/maps-search-rest/src/generated/isUnexpected.ts new file mode 100644 index 000000000000..97eb0d9c9a27 --- /dev/null +++ b/sdk/maps/maps-search-rest/src/generated/isUnexpected.ts @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { + SearchGetGeocoding200Response, + SearchGetGeocodingDefaultResponse, + SearchGetGeocodingBatch200Response, + SearchGetGeocodingBatchDefaultResponse, + SearchGetPolygon200Response, + SearchGetPolygonDefaultResponse, + SearchGetReverseGeocoding200Response, + SearchGetReverseGeocodingDefaultResponse, + SearchGetReverseGeocodingBatch200Response, + SearchGetReverseGeocodingBatchDefaultResponse, +} from "./responses.js"; + +const responseMap: Record = { + "GET /geocode": ["200"], + "POST /geocode:batch": ["200"], + "GET /search/polygon": ["200"], + "GET /reverseGeocode": ["200"], + "POST /reverseGeocode:batch": ["200"], +}; + +export function isUnexpected( + response: SearchGetGeocoding200Response | SearchGetGeocodingDefaultResponse, +): response is SearchGetGeocodingDefaultResponse; +export function isUnexpected( + response: + | SearchGetGeocodingBatch200Response + | SearchGetGeocodingBatchDefaultResponse, +): response is SearchGetGeocodingBatchDefaultResponse; +export function isUnexpected( + response: SearchGetPolygon200Response | SearchGetPolygonDefaultResponse, +): response is SearchGetPolygonDefaultResponse; +export function isUnexpected( + response: + | SearchGetReverseGeocoding200Response + | SearchGetReverseGeocodingDefaultResponse, +): response is SearchGetReverseGeocodingDefaultResponse; +export function isUnexpected( + response: + | SearchGetReverseGeocodingBatch200Response + | SearchGetReverseGeocodingBatchDefaultResponse, +): response is SearchGetReverseGeocodingBatchDefaultResponse; +export function isUnexpected( + response: + | SearchGetGeocoding200Response + | SearchGetGeocodingDefaultResponse + | SearchGetGeocodingBatch200Response + | SearchGetGeocodingBatchDefaultResponse + | SearchGetPolygon200Response + | SearchGetPolygonDefaultResponse + | SearchGetReverseGeocoding200Response + | SearchGetReverseGeocodingDefaultResponse + | SearchGetReverseGeocodingBatch200Response + | SearchGetReverseGeocodingBatchDefaultResponse, +): response is + | SearchGetGeocodingDefaultResponse + | SearchGetGeocodingBatchDefaultResponse + | SearchGetPolygonDefaultResponse + | SearchGetReverseGeocodingDefaultResponse + | SearchGetReverseGeocodingBatchDefaultResponse { + const lroOriginal = response.headers["x-ms-original-url"]; + const url = new URL(lroOriginal ?? response.request.url); + const method = response.request.method; + let pathDetails = responseMap[`${method} ${url.pathname}`]; + if (!pathDetails) { + pathDetails = getParametrizedPathSuccess(method, url.pathname); + } + return !pathDetails.includes(response.status); +} + +function getParametrizedPathSuccess(method: string, path: string): string[] { + const pathParts = path.split("/"); + + // Traverse list to match the longest candidate + // matchedLen: the length of candidate path + // matchedValue: the matched status code array + let matchedLen = -1, + matchedValue: string[] = []; + + // Iterate the responseMap to find a match + for (const [key, value] of Object.entries(responseMap)) { + // Extracting the path from the map key which is in format + // GET /path/foo + if (!key.startsWith(method)) { + continue; + } + const candidatePath = getPathFromMapKey(key); + // Get each part of the url path + const candidateParts = candidatePath.split("/"); + + // track if we have found a match to return the values found. + let found = true; + for ( + let i = candidateParts.length - 1, j = pathParts.length - 1; + i >= 1 && j >= 1; + i--, j-- + ) { + if ( + candidateParts[i]?.startsWith("{") && + candidateParts[i]?.indexOf("}") !== -1 + ) { + const start = candidateParts[i]!.indexOf("}") + 1, + end = candidateParts[i]?.length; + // If the current part of the candidate is a "template" part + // Try to use the suffix of pattern to match the path + // {guid} ==> $ + // {guid}:export ==> :export$ + const isMatched = new RegExp( + `${candidateParts[i]?.slice(start, end)}`, + ).test(pathParts[j] || ""); + + if (!isMatched) { + found = false; + break; + } + continue; + } + + // If the candidate part is not a template and + // the parts don't match mark the candidate as not found + // to move on with the next candidate path. + if (candidateParts[i] !== pathParts[j]) { + found = false; + break; + } + } + + // We finished evaluating the current candidate parts + // Update the matched value if and only if we found the longer pattern + if (found && candidatePath.length > matchedLen) { + matchedLen = candidatePath.length; + matchedValue = value; + } + } + + return matchedValue; +} + +function getPathFromMapKey(mapKey: string): string { + const pathStart = mapKey.indexOf("/"); + return mapKey.slice(pathStart); +} diff --git a/sdk/maps/maps-search-rest/generated/logger.ts b/sdk/maps/maps-search-rest/src/generated/logger.ts similarity index 100% rename from sdk/maps/maps-search-rest/generated/logger.ts rename to sdk/maps/maps-search-rest/src/generated/logger.ts diff --git a/sdk/maps/maps-search-rest/generated/mapsSearchClient.ts b/sdk/maps/maps-search-rest/src/generated/mapsSearchClient.ts similarity index 95% rename from sdk/maps/maps-search-rest/generated/mapsSearchClient.ts rename to sdk/maps/maps-search-rest/src/generated/mapsSearchClient.ts index 6581f5e89847..f9b43b8faaae 100644 --- a/sdk/maps/maps-search-rest/generated/mapsSearchClient.ts +++ b/sdk/maps/maps-search-rest/src/generated/mapsSearchClient.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import { getClient, ClientOptions } from "@azure-rest/core-client"; -import { logger } from "./logger"; +import { logger } from "./logger.js"; import { KeyCredential } from "@azure/core-auth"; -import { MapsSearchClient } from "./clientDefinitions"; +import { MapsSearchClient } from "./clientDefinitions.js"; /** The optional parameters for the client */ export interface MapsSearchClientOptions extends ClientOptions { diff --git a/sdk/maps/maps-search-rest/generated/models.ts b/sdk/maps/maps-search-rest/src/generated/models.ts similarity index 100% rename from sdk/maps/maps-search-rest/generated/models.ts rename to sdk/maps/maps-search-rest/src/generated/models.ts diff --git a/sdk/maps/maps-search-rest/generated/outputModels.ts b/sdk/maps/maps-search-rest/src/generated/outputModels.ts similarity index 100% rename from sdk/maps/maps-search-rest/generated/outputModels.ts rename to sdk/maps/maps-search-rest/src/generated/outputModels.ts diff --git a/sdk/maps/maps-search-rest/src/generated/parameters.ts b/sdk/maps/maps-search-rest/src/generated/parameters.ts new file mode 100644 index 000000000000..9a3cd5b4b32a --- /dev/null +++ b/sdk/maps/maps-search-rest/src/generated/parameters.ts @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { RequestParameters } from "@azure-rest/core-client"; +import { + GeocodingBatchRequestBody, + ReverseGeocodingBatchRequestBody, +} from "./models.js"; + +export interface SearchGetGeocodingQueryParamProperties { + /** Maximum number of responses that will be returned. Default: 5, minimum: 1 and maximum: 20. */ + top?: number; + /** A string that contains information about a location, such as an address or landmark name. */ + query?: string; + /** + * The official street line of an address relative to the area, as specified by the locality, or postalCode, properties. Typical use of this element would be to provide a street address or any official address. + * + * **If query is given, should not use this parameter.** + */ + addressLine?: string; + /** + * Signal for the geocoding result to an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) that is specified e.g. FR./ + * + * **If query is given, should not use this parameter.** + */ + countryRegion?: string; + /** + * A rectangular area on the earth defined as a bounding box object. The sides of the rectangles are defined by longitude and latitude values. When you specify this parameter, the geographical area is taken into account when computing the results of a location query. + * + * Example: lon1,lat1,lon2,lat2 + */ + bbox?: Array; + /** + * A string that represents an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request. + * + * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views. + */ + view?: string; + /** A point on the earth specified as a longitude and latitude. When you specify this parameter, the user’s location is taken into account and the results returned may be more relevant to the user. Example: &coordinates=lon,lat */ + coordinates?: Array; + /** + * The country subdivision portion of an address, such as WA. + * + * **If query is given, should not use this parameter.** + */ + adminDistrict?: string; + /** + * The county for the structured address, such as King. + * + * **If query is given, should not use this parameter.** + */ + adminDistrict2?: string; + /** + * The named area for the structured address. + * + * **If query is given, should not use this parameter.** + */ + adminDistrict3?: string; + /** + * The locality portion of an address, such as Seattle. + * + * **If query is given, should not use this parameter.** + */ + locality?: string; + /** + * The postal code portion of an address. + * + * **If query is given, should not use this parameter.** + */ + postalCode?: string; +} + +export interface SearchGetGeocodingQueryParam { + queryParameters?: SearchGetGeocodingQueryParamProperties; +} + +export type SearchGetGeocodingParameters = SearchGetGeocodingQueryParam & + RequestParameters; + +export interface SearchGetGeocodingBatchBodyParam { + /** The list of address geocoding queries/requests to process. The list can contain a max of 100 queries and must contain at least 1 query. */ + body: GeocodingBatchRequestBody; +} + +export interface SearchGetGeocodingBatchMediaTypesParam { + /** Request content type */ + contentType?: "application/json"; +} + +export type SearchGetGeocodingBatchParameters = + SearchGetGeocodingBatchMediaTypesParam & + SearchGetGeocodingBatchBodyParam & + RequestParameters; + +export interface SearchGetPolygonQueryParamProperties { + /** A point on the earth specified as a longitude and latitude. Example: &coordinates=lon,lat */ + coordinates: Array; + /** + * A string that represents an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request. + * + * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views. + */ + view?: string; + /** The geopolitical concept to return a boundary for. If not specified, the default is `countryRegion` result type. */ + resultType?: + | "countryRegion" + | "adminDistrict" + | "adminDistrict2" + | "postalCode" + | "postalCode2" + | "postalCode3" + | "postalCode4" + | "neighborhood" + | "locality"; + /** Resolution determines the amount of points to send back. If not specified, the default is medium resolution. */ + resolution?: "small" | "medium" | "large" | "huge"; +} + +export interface SearchGetPolygonQueryParam { + queryParameters: SearchGetPolygonQueryParamProperties; +} + +export type SearchGetPolygonParameters = SearchGetPolygonQueryParam & + RequestParameters; + +export interface SearchGetReverseGeocodingQueryParamProperties { + /** The coordinates of the location that you want to reverse geocode. Example: &coordinates=lon,lat */ + coordinates: Array; + /** + * Specify entity types that you want in the response. Only the types you specify will be returned. If the point cannot be mapped to the entity types you specify, no location information is returned in the response. + * Default value is all possible entities. + * A comma separated list of entity types selected from the following options. + * + * - Address + * - Neighborhood + * - PopulatedPlace + * - Postcode1 + * - AdminDivision1 + * - AdminDivision2 + * - CountryRegion + * + * These entity types are ordered from the most specific entity to the least specific entity. When entities of more than one entity type are found, only the most specific entity is returned. For example, if you specify Address and AdminDistrict1 as entity types and entities were found for both types, only the Address entity information is returned in the response. + */ + resultTypes?: Array< + | "Address" + | "Neighborhood" + | "PopulatedPlace" + | "Postcode1" + | "AdminDivision1" + | "AdminDivision2" + | "CountryRegion" + >; + /** + * A string that represents an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region. By default, the View parameter is set to “Auto” even if you haven’t defined it in the request. + * + * Please refer to [Supported Views](https://aka.ms/AzureMapsLocalizationViews) for details and to see the available Views. + */ + view?: string; +} + +export interface SearchGetReverseGeocodingQueryParam { + queryParameters: SearchGetReverseGeocodingQueryParamProperties; +} + +export type SearchGetReverseGeocodingParameters = + SearchGetReverseGeocodingQueryParam & RequestParameters; + +export interface SearchGetReverseGeocodingBatchBodyParam { + /** The list of reverse geocoding queries/requests to process. The list can contain a max of 100 queries and must contain at least 1 query. */ + body: ReverseGeocodingBatchRequestBody; +} + +export interface SearchGetReverseGeocodingBatchMediaTypesParam { + /** Request content type */ + contentType?: "application/json"; +} + +export type SearchGetReverseGeocodingBatchParameters = + SearchGetReverseGeocodingBatchMediaTypesParam & + SearchGetReverseGeocodingBatchBodyParam & + RequestParameters; diff --git a/sdk/maps/maps-search-rest/src/generated/responses.ts b/sdk/maps/maps-search-rest/src/generated/responses.ts new file mode 100644 index 000000000000..e9dfee856731 --- /dev/null +++ b/sdk/maps/maps-search-rest/src/generated/responses.ts @@ -0,0 +1,275 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { RawHttpHeaders } from "@azure/core-rest-pipeline"; +import { HttpResponse } from "@azure-rest/core-client"; +import { + GeocodingResponseOutput, + ErrorResponseOutput, + GeocodingBatchResponseOutput, + BoundaryOutput, +} from "./outputModels.js"; + +export interface SearchGetGeocoding200Headers { + /** request id. */ + "x-ms-request-id"?: string; +} + +/** + * + * The `Get Geocoding` API is an HTTP `GET` request that returns the longitude and latitude coordinates of the location being searched. + * + * In many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocoding endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No Point of Interest (POIs) will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties and states. The response also returns detailed address properties such as street, postal code, municipality, and country/region information. + */ +export interface SearchGetGeocoding200Response extends HttpResponse { + status: "200"; + body: GeocodingResponseOutput; + headers: RawHttpHeaders & SearchGetGeocoding200Headers; +} + +/** + * + * The `Get Geocoding` API is an HTTP `GET` request that returns the longitude and latitude coordinates of the location being searched. + * + * In many cases, the complete search service might be too much, for instance if you are only interested in traditional geocoding. Search can also be accessed for address look up exclusively. The geocoding is performed by hitting the geocoding endpoint with just the address or partial address in question. The geocoding search index will be queried for everything above the street level data. No Point of Interest (POIs) will be returned. Note that the geocoder is very tolerant of typos and incomplete addresses. It will also handle everything from exact street addresses or street or intersections as well as higher level geographies such as city centers, counties and states. The response also returns detailed address properties such as street, postal code, municipality, and country/region information. + */ +export interface SearchGetGeocodingDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** + * + * The `Get Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to the [Geocoding](/rest/api/maps/search/get-geocoding) API in a single request. + * + * ### Submit Synchronous Batch Request + * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. + * ``` + * POST https://atlas.microsoft.com/geocode:batch?api-version=2023-06-01 + * ``` + * ### POST Body for Batch Request + * To send the _geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _geocoding_ queries: + * + * + * ``` + * { + * "batchItems": [ + * { + * "addressLine": "One, Microsoft Way, Redmond, WA 98052", + * "top": 2 + * }, + * { + * "addressLine": "Pike Pl", + * "adminDistrict": "WA", + * "locality": "Seattle", + * "top": 3 + * } + * ] + * } + * ``` + * + * A _geocoding_ batchItem object can accept any of the supported _geocoding_ [URI parameters](/rest/api/maps/search/get-geocoding#uri-parameters). + * + * + * The batch should contain at least **1** query. + * + * + * ### Batch Response Model + * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types: + * + * - [`GeocodingResponse`](/rest/api/maps/search/get-geocoding#geocodingresponse) - If the query completed successfully. + * + * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case. + * + * + * + */ +export interface SearchGetGeocodingBatch200Response extends HttpResponse { + status: "200"; + body: GeocodingBatchResponseOutput; +} + +/** + * + * The `Get Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to the [Geocoding](/rest/api/maps/search/get-geocoding) API in a single request. + * + * ### Submit Synchronous Batch Request + * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. + * ``` + * POST https://atlas.microsoft.com/geocode:batch?api-version=2023-06-01 + * ``` + * ### POST Body for Batch Request + * To send the _geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _geocoding_ queries: + * + * + * ``` + * { + * "batchItems": [ + * { + * "addressLine": "One, Microsoft Way, Redmond, WA 98052", + * "top": 2 + * }, + * { + * "addressLine": "Pike Pl", + * "adminDistrict": "WA", + * "locality": "Seattle", + * "top": 3 + * } + * ] + * } + * ``` + * + * A _geocoding_ batchItem object can accept any of the supported _geocoding_ [URI parameters](/rest/api/maps/search/get-geocoding#uri-parameters). + * + * + * The batch should contain at least **1** query. + * + * + * ### Batch Response Model + * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types: + * + * - [`GeocodingResponse`](/rest/api/maps/search/get-geocoding#geocodingresponse) - If the query completed successfully. + * + * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case. + * + * + * + */ +export interface SearchGetGeocodingBatchDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** + * + * The `Get Polygon` API is an HTTP `GET` request that supplies polygon data of a geographical area outline such as a city or a country region. + */ +export interface SearchGetPolygon200Response extends HttpResponse { + status: "200"; + body: BoundaryOutput; +} + +/** + * + * The `Get Polygon` API is an HTTP `GET` request that supplies polygon data of a geographical area outline such as a city or a country region. + */ +export interface SearchGetPolygonDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** + * + * The `Get Reverse Geocoding` API is an HTTP `GET` request used to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Useful in tracking applications where you receive a GPS feed from the device or asset and wish to know the address associated with the coordinates. This endpoint will return address information for a given coordinate. + */ +export interface SearchGetReverseGeocoding200Response extends HttpResponse { + status: "200"; + body: GeocodingResponseOutput; +} + +/** + * + * The `Get Reverse Geocoding` API is an HTTP `GET` request used to translate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Useful in tracking applications where you receive a GPS feed from the device or asset and wish to know the address associated with the coordinates. This endpoint will return address information for a given coordinate. + */ +export interface SearchGetReverseGeocodingDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} + +/** + * + * The `Get Reverse Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to [Reverse Geocoding](/rest/api/maps/search/get-reverse-geocoding) API using a single request. + * + * ### Submit Synchronous Batch Request + * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. + * ``` + * POST https://atlas.microsoft.com/reverseGeocode:batch?api-version=2023-06-01 + * ``` + * ### POST Body for Batch Request + * To send the _reverse geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _reverse geocoding_ queries: + * + * + * ``` + * { + * "batchItems": [ + * { + * "coordinates": [-122.128275, 47.639429], + * "resultTypes": ["Address", "PopulatedPlace"] + * }, + * { + * "coordinates": [-122.341979399674, 47.6095253501216] + * } + * ] + * } + * ``` + * + * A _reverse geocoding_ batchItem object can accept any of the supported _reverse geocoding_ [URI parameters](/rest/api/maps/search/get-reverse-geocoding#uri-parameters). + * + * + * The batch should contain at least **1** query. + * + * + * ### Batch Response Model + * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types: + * + * - [`GeocodingResponse`](/rest/api/maps/search/get-reverse-geocoding#geocodingresponse) - If the query completed successfully. + * + * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case. + * + * + * + */ +export interface SearchGetReverseGeocodingBatch200Response + extends HttpResponse { + status: "200"; + body: GeocodingBatchResponseOutput; +} + +/** + * + * The `Get Reverse Geocoding Batch` API is an HTTP `POST` request that sends batches of up to **100** queries to [Reverse Geocoding](/rest/api/maps/search/get-reverse-geocoding) API using a single request. + * + * ### Submit Synchronous Batch Request + * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API. + * ``` + * POST https://atlas.microsoft.com/reverseGeocode:batch?api-version=2023-06-01 + * ``` + * ### POST Body for Batch Request + * To send the _reverse geocoding_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 2 _reverse geocoding_ queries: + * + * + * ``` + * { + * "batchItems": [ + * { + * "coordinates": [-122.128275, 47.639429], + * "resultTypes": ["Address", "PopulatedPlace"] + * }, + * { + * "coordinates": [-122.341979399674, 47.6095253501216] + * } + * ] + * } + * ``` + * + * A _reverse geocoding_ batchItem object can accept any of the supported _reverse geocoding_ [URI parameters](/rest/api/maps/search/get-reverse-geocoding#uri-parameters). + * + * + * The batch should contain at least **1** query. + * + * + * ### Batch Response Model + * The batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests` i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item is of one of the following types: + * + * - [`GeocodingResponse`](/rest/api/maps/search/get-reverse-geocoding#geocodingresponse) - If the query completed successfully. + * + * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case. + * + * + * + */ +export interface SearchGetReverseGeocodingBatchDefaultResponse + extends HttpResponse { + status: string; + body: ErrorResponseOutput; +} diff --git a/sdk/maps/maps-search-rest/src/index.ts b/sdk/maps/maps-search-rest/src/index.ts index 9a0c5844337b..9d691b4503b4 100644 --- a/sdk/maps/maps-search-rest/src/index.ts +++ b/sdk/maps/maps-search-rest/src/index.ts @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import MapsSearch from "./MapsSearch"; -export * from "../generated"; +import MapsSearch from "./MapsSearch.js"; + +export * from "./generated/index.js"; export default MapsSearch; diff --git a/sdk/maps/maps-search-rest/swagger/README.md b/sdk/maps/maps-search-rest/swagger/README.md index f102ba07afa0..1e3674affcc2 100644 --- a/sdk/maps/maps-search-rest/swagger/README.md +++ b/sdk/maps/maps-search-rest/swagger/README.md @@ -25,7 +25,7 @@ generate-test: false generate-sample: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ -source-code-folder-path: ./generated +source-code-folder-path: ./src/generated input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/maps/data-plane/Search/stable/2023-06-01/search.json package-version: 2.0.0-beta.2 rest-level-client: true diff --git a/sdk/maps/maps-search-rest/test/public/MapsSearch.spec.ts b/sdk/maps/maps-search-rest/test/public/MapsSearch.spec.ts index 986dd8142357..144bedffbfe9 100644 --- a/sdk/maps/maps-search-rest/test/public/MapsSearch.spec.ts +++ b/sdk/maps/maps-search-rest/test/public/MapsSearch.spec.ts @@ -1,33 +1,31 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Context } from "mocha"; import type { Recorder } from "@azure-tools/test-recorder"; import { env } from "@azure-tools/test-recorder"; import { isNodeLike } from "@azure/core-util"; import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { createClient, createRecorder } from "./utils/recordedClient"; -import type { MapsSearchClient } from "../../src"; -import MapsSearch, { isUnexpected } from "../../src"; +import { createClient, createRecorder } from "./utils/recordedClient.js"; +import type { MapsSearchClient } from "../../src/index.js"; +import MapsSearch, { isUnexpected } from "../../src/index.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; -describe("Authentication", function () { +describe("Authentication", () => { let recorder: Recorder; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should work with Microsoft Entra ID authentication", async function () { - /** - * Skip this test in browser because we have to use InteractiveBrowserCredential in the browser. - * But it requires user's interaction, which is not testable in karma. - * */ - if (!isNodeLike) this.skip(); + /** + * Skip this test in browser because we have to use InteractiveBrowserCredential in the browser. + * But it requires user's interaction, which is not testable in karma. + * */ + it("should work with Microsoft Entra ID authentication", { skip: !isNodeLike }, async () => { /** * Use createTestCredential() instead of new DefaultAzureCredential(), else the playback mode won't work * Reference: https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/test-quickstart.md#azuread-oauth2-authentication @@ -44,24 +42,24 @@ describe("Authentication", function () { }); }); -describe("Endpoint can be overwritten", function () { +describe("Endpoint can be overwritten", () => { let recorder: Recorder; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should be executed without specifying baseUrl", async function () { + it("should be executed without specifying baseUrl", async () => { const client = createClient(recorder.configureClientOptions({})); const response = await client.path("/geocode").get({ queryParameters: { query: "Starbucks" } }); assert.isOk(!isUnexpected(response)); }); - it("should be executed with different baseUrl", async function () { + it("should be executed with different baseUrl", async () => { const client = createClient( recorder.configureClientOptions({ baseUrl: "https://us.atlas.microsoft.com/" }), ); @@ -70,20 +68,20 @@ describe("Endpoint can be overwritten", function () { }); }); -describe("Get Search Polygon", function () { +describe("Get Search Polygon", () => { let recorder: Recorder; let client: MapsSearchClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should accept coordinates and other options and return geometry data", async function () { + it("should accept coordinates and other options and return geometry data", async () => { const response = await client.path("/search/polygon").get({ queryParameters: { coordinates: [-122.204141, 47.61256], @@ -98,20 +96,20 @@ describe("Get Search Polygon", function () { }); }); -describe("/geocode", function () { +describe("/geocode", () => { let recorder: Recorder; let client: MapsSearchClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should return non-empty results", async function () { + it("should return non-empty results", async () => { const response = await client .path("/geocode") .get({ queryParameters: { query: "1 Microsoft Way, Redmond, WA 98052" } }); @@ -122,20 +120,20 @@ describe("/geocode", function () { }); }); -describe("/geocode:batch", function () { +describe("/geocode:batch", () => { let recorder: Recorder; let client: MapsSearchClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should return non-empty results", async function () { + it("should return non-empty results", async () => { const response = await client.path("/geocode:batch").post({ body: { batchItems: [ @@ -151,7 +149,7 @@ describe("/geocode:batch", function () { assert.isNotEmpty(response.body); }); - it("should be expected even one of the batch items failed", async function () { + it("should be expected even one of the batch items failed", async () => { const response = await client.path("/geocode:batch").post({ body: { batchItems: [ @@ -167,20 +165,20 @@ describe("/geocode:batch", function () { }); }); -describe("/reverseGeocode", function () { +describe("/reverseGeocode", () => { let recorder: Recorder; let client: MapsSearchClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should throw error if query is invalid", async function () { + it("should throw error if query is invalid", async () => { // "The provided coordinates in query are invalid, out of range, or not in the expected format" assert.isTrue( isUnexpected( @@ -194,7 +192,7 @@ describe("/reverseGeocode", function () { ); }); - it("should return non-empty results", async function () { + it("should return non-empty results", async () => { const response = await client .path("/reverseGeocode") .get({ queryParameters: { coordinates: [121, 25] } }); @@ -205,20 +203,20 @@ describe("/reverseGeocode", function () { }); }); -describe("/reverseGeocode:batch", function () { +describe("/reverseGeocode:batch", () => { let recorder: Recorder; let client: MapsSearchClient; - beforeEach(async function (this: Context) { - recorder = await createRecorder(this); + beforeEach(async (ctx) => { + recorder = await createRecorder(ctx); client = createClient(recorder.configureClientOptions({})); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("should return non-empty results", async function () { + it("should return non-empty results", async () => { const response = await client.path("/reverseGeocode:batch").post({ body: { batchItems: [ @@ -233,7 +231,7 @@ describe("/reverseGeocode:batch", function () { assert.isNotEmpty(response.body); }); - it("should be expected even one of the batch items failed", async function () { + it("should be expected even one of the batch items failed", async () => { const response = await client.path("/reverseGeocode:batch").post({ body: { batchItems: [ diff --git a/sdk/maps/maps-search-rest/test/public/utils/env.browser.ts b/sdk/maps/maps-search-rest/test/public/utils/env-browser.mts similarity index 100% rename from sdk/maps/maps-search-rest/test/public/utils/env.browser.ts rename to sdk/maps/maps-search-rest/test/public/utils/env-browser.mts diff --git a/sdk/maps/maps-search-rest/test/public/utils/recordedClient.ts b/sdk/maps/maps-search-rest/test/public/utils/recordedClient.ts index 27531b789f46..147b6e646f21 100644 --- a/sdk/maps/maps-search-rest/test/public/utils/recordedClient.ts +++ b/sdk/maps/maps-search-rest/test/public/utils/recordedClient.ts @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import type { Context } from "mocha"; -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import type { RecorderStartOptions, TestInfo } from "@azure-tools/test-recorder"; import { env, Recorder } from "@azure-tools/test-recorder"; -import "./env"; +import "./env.js"; import type { ClientOptions } from "@azure-rest/core-client"; -import type { MapsSearchClient } from "../../../src/"; -import MapsSearch from "../../../src/"; +import type { MapsSearchClient } from "../../../src/index.js"; +import MapsSearch from "../../../src/index.js"; import { createTestCredential } from "@azure-tools/test-credential"; const envSetupForPlayback: Record = { @@ -23,8 +22,8 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: Context): Promise { - const recorder = new Recorder(context.currentTest); +export async function createRecorder(context: TestInfo): Promise { + const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; } diff --git a/sdk/maps/maps-search-rest/tsconfig.browser.config.json b/sdk/maps/maps-search-rest/tsconfig.browser.config.json new file mode 100644 index 000000000000..f772e6eb3b76 --- /dev/null +++ b/sdk/maps/maps-search-rest/tsconfig.browser.config.json @@ -0,0 +1,10 @@ +{ + "extends": "./.tshy/build.json", + "include": ["./src/**/*.ts", "./src/**/*.mts", "./test/**/*.spec.ts", "./test/**/*.mts"], + "exclude": ["./test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/maps/maps-search-rest/tsconfig.json b/sdk/maps/maps-search-rest/tsconfig.json index 9e810cffd80b..2c08b3b98722 100644 --- a/sdk/maps/maps-search-rest/tsconfig.json +++ b/sdk/maps/maps-search-rest/tsconfig.json @@ -1,9 +1,20 @@ { "extends": "../../../tsconfig", "compilerOptions": { - "outDir": "./dist-esm", - "declarationDir": "./types", - "paths": { "@azure-rest/maps-search": ["./src/index"] } + "paths": { + "@azure-rest/maps-search": ["./src/index"] + }, + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": "." }, - "include": ["src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "samples-dev/**/*.ts", + "test/**/*.ts", + "test/**/*.mts", + "test/**/*.cts" + ] } diff --git a/sdk/maps/maps-search-rest/vitest.browser.config.ts b/sdk/maps/maps-search-rest/vitest.browser.config.ts new file mode 100644 index 000000000000..50ec2d5489b0 --- /dev/null +++ b/sdk/maps/maps-search-rest/vitest.browser.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/maps/maps-search-rest/vitest.config.ts b/sdk/maps/maps-search-rest/vitest.config.ts new file mode 100644 index 000000000000..d01fdec8ac69 --- /dev/null +++ b/sdk/maps/maps-search-rest/vitest.config.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["test/**/*.spec.ts"], + hookTimeout: 5000000, + testTimeout: 5000000, + }, + }), +); diff --git a/sdk/metricsadvisor/ai-metrics-advisor/package.json b/sdk/metricsadvisor/ai-metrics-advisor/package.json index b8a64a7d6f4e..2ee52dc1a74d 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/package.json +++ b/sdk/metricsadvisor/ai-metrics-advisor/package.json @@ -112,7 +112,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/mixedreality/mixed-reality-authentication/package.json b/sdk/mixedreality/mixed-reality-authentication/package.json index 606724eeba6c..dd863ea9b7ea 100644 --- a/sdk/mixedreality/mixed-reality-authentication/package.json +++ b/sdk/mixedreality/mixed-reality-authentication/package.json @@ -87,7 +87,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/mongocluster/arm-mongocluster/package.json b/sdk/mongocluster/arm-mongocluster/package.json index 53bca8277cae..0a254d432298 100644 --- a/sdk/mongocluster/arm-mongocluster/package.json +++ b/sdk/mongocluster/arm-mongocluster/package.json @@ -76,7 +76,7 @@ "@vitest/browser": "^2.0.5", "@vitest/coverage-istanbul": "^2.0.5", "dotenv": "^16.0.0", - "eslint": "^8.55.0", + "eslint": "^9.9.0", "playwright": "^1.41.2", "prettier": "^3.2.5", "typescript": "~5.6.2", diff --git a/sdk/monitor/monitor-opentelemetry-exporter/package.json b/sdk/monitor/monitor-opentelemetry-exporter/package.json index dbaf94519f9d..29cc3094e154 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/package.json +++ b/sdk/monitor/monitor-opentelemetry-exporter/package.json @@ -77,9 +77,9 @@ "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@opentelemetry/instrumentation": "^0.54.0", - "@opentelemetry/instrumentation-http": "^0.54.0", - "@opentelemetry/sdk-trace-node": "^1.27.0", + "@opentelemetry/instrumentation": "^0.55.0", + "@opentelemetry/instrumentation-http": "^0.55.0", + "@opentelemetry/sdk-trace-node": "^1.28.0", "@types/node": "^18.0.0", "@vitest/browser": "^2.1.4", "@vitest/coverage-istanbul": "^2.1.4", @@ -95,14 +95,14 @@ "@azure/core-client": "^1.0.0", "@azure/core-rest-pipeline": "^1.1.0", "@opentelemetry/api": "^1.9.0", - "@opentelemetry/api-logs": "^0.54.0", - "@opentelemetry/core": "^1.27.0", - "@opentelemetry/resources": "^1.26.0", - "@opentelemetry/sdk-logs": "^0.54.0", - "@opentelemetry/sdk-metrics": "^1.27.0", - "@opentelemetry/sdk-trace-base": "^1.27.0", + "@opentelemetry/api-logs": "^0.55.0", + "@opentelemetry/core": "^1.28.0", + "@opentelemetry/resources": "^1.28.0", + "@opentelemetry/sdk-logs": "^0.55.0", + "@opentelemetry/sdk-metrics": "^1.28.0", + "@opentelemetry/sdk-trace-base": "^1.28.0", "@opentelemetry/semantic-conventions": "^1.27.0", - "tslib": "^2.7.0" + "tslib": "^2.8.1" }, "sideEffects": false, "keywords": [ diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/logUtils.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/logUtils.ts index fd8ee8b9507c..7663b048e246 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/logUtils.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/logUtils.ts @@ -60,6 +60,7 @@ export function logToEnvelope(log: ReadableLogRecord, ikey: string): Envelope | name = ApplicationInsightsExceptionName; baseType = ApplicationInsightsExceptionBaseType; const exceptionDetails: TelemetryExceptionDetails = { + // eslint-disable-next-line @typescript-eslint/no-base-to-string typeName: String(exceptionType), message: String(exceptionMessage), hasFullStack: exceptionStacktrace ? true : false, @@ -83,6 +84,7 @@ export function logToEnvelope(log: ReadableLogRecord, ikey: string): Envelope | } } else { // If Legacy Application Insights Log + // eslint-disable-next-line @typescript-eslint/no-base-to-string baseType = String(log.attributes[ApplicationInsightsBaseType]); name = getLegacyApplicationInsightsName(log); baseData = getLegacyApplicationInsightsBaseData(log); @@ -98,6 +100,7 @@ export function logToEnvelope(log: ReadableLogRecord, ikey: string): Envelope | } if (properties) { for (const key of Object.keys(properties)) { + // eslint-disable-next-line @typescript-eslint/no-base-to-string properties[key] = String(properties[key]).substring(0, MaxPropertyLengths.THIRTEEN_BIT); } } diff --git a/sdk/monitor/monitor-opentelemetry/package.json b/sdk/monitor/monitor-opentelemetry/package.json index c8504a480422..6d129aae8b51 100644 --- a/sdk/monitor/monitor-opentelemetry/package.json +++ b/sdk/monitor/monitor-opentelemetry/package.json @@ -89,27 +89,27 @@ "@azure/opentelemetry-instrumentation-azure-sdk": "^1.0.0-beta.7", "@microsoft/applicationinsights-web-snippet": "^1.2.1", "@opentelemetry/api": "^1.9.0", - "@opentelemetry/api-logs": "^0.54.0", - "@opentelemetry/core": "^1.27.0", - "@opentelemetry/instrumentation": "^0.54.0", - "@opentelemetry/instrumentation-bunyan": "^0.42.0", - "@opentelemetry/instrumentation-http": "^0.54.0", - "@opentelemetry/instrumentation-mongodb": "^0.48.0", - "@opentelemetry/instrumentation-mysql": "^0.42.0", - "@opentelemetry/instrumentation-pg": "^0.47.0", - "@opentelemetry/instrumentation-redis": "^0.43.0", - "@opentelemetry/instrumentation-redis-4": "^0.43.0", - "@opentelemetry/instrumentation-winston": "^0.41.0", - "@opentelemetry/resource-detector-azure": "^0.2.12", - "@opentelemetry/resources": "^1.27.0", - "@opentelemetry/sdk-logs": "^0.54.0", - "@opentelemetry/sdk-metrics": "^1.27.0", - "@opentelemetry/sdk-node": "^0.54.0", - "@opentelemetry/sdk-trace-base": "^1.27.0", - "@opentelemetry/sdk-trace-node": "^1.27.0", + "@opentelemetry/api-logs": "^0.55.0", + "@opentelemetry/core": "^1.28.0", + "@opentelemetry/instrumentation": "^0.55.0", + "@opentelemetry/instrumentation-bunyan": "^0.43.0", + "@opentelemetry/instrumentation-http": "^0.55.0", + "@opentelemetry/instrumentation-mongodb": "^0.49.0", + "@opentelemetry/instrumentation-mysql": "^0.43.0", + "@opentelemetry/instrumentation-pg": "^0.48.0", + "@opentelemetry/instrumentation-redis": "^0.44.0", + "@opentelemetry/instrumentation-redis-4": "^0.44.0", + "@opentelemetry/instrumentation-winston": "^0.42.0", + "@opentelemetry/resource-detector-azure": "^0.3.0", + "@opentelemetry/resources": "^1.28.0", + "@opentelemetry/sdk-logs": "^0.55.0", + "@opentelemetry/sdk-metrics": "^1.28.0", + "@opentelemetry/sdk-node": "^0.55.0", + "@opentelemetry/sdk-trace-base": "^1.28.0", + "@opentelemetry/sdk-trace-node": "^1.28.0", "@opentelemetry/semantic-conventions": "^1.27.0", - "@opentelemetry/winston-transport": "^0.7.0", - "tslib": "^2.7.0" + "@opentelemetry/winston-transport": "^0.8.0", + "tslib": "^2.8.1" }, "sideEffects": false, "keywords": [ diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts index 2a878ef95d84..79bbf750c0b7 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts @@ -190,7 +190,7 @@ const testAttributes: any = { "service.name": "unknown_service:node", "telemetry.sdk.language": "nodejs", "telemetry.sdk.name": "opentelemetry", - "telemetry.sdk.version": "1.27.0", + "telemetry.sdk.version": "1.28.0", }; describe("Library/Config", () => { diff --git a/sdk/monitor/monitor-query/package.json b/sdk/monitor/monitor-query/package.json index 3923f0032379..aa669af5cc1f 100644 --- a/sdk/monitor/monitor-query/package.json +++ b/sdk/monitor/monitor-query/package.json @@ -104,8 +104,8 @@ "@azure/identity": "^4.0.1", "@azure/monitor-opentelemetry-exporter": "1.0.0-beta.27", "@opentelemetry/api": "^1.9.0", - "@opentelemetry/sdk-trace-base": "^1.27.0", - "@opentelemetry/sdk-trace-node": "^1.27.0", + "@opentelemetry/sdk-trace-base": "^1.28.0", + "@opentelemetry/sdk-trace-node": "^1.28.0", "@types/node": "^18.0.0", "@vitest/browser": "^2.1.4", "@vitest/coverage-istanbul": "^2.1.4", diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/package.json b/sdk/monitor/perf-tests/monitor-opentelemetry/package.json index 1b309023d796..7b60fed19409 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/package.json +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/package.json @@ -12,8 +12,8 @@ "@azure-tools/test-perf": "^1.0.0", "@azure/monitor-opentelemetry": "^1.8.0", "@opentelemetry/api": "^1.9.0", - "@opentelemetry/api-logs": "^0.53.0", - "@opentelemetry/sdk-logs": "^0.53.0", + "@opentelemetry/api-logs": "^0.55.0", + "@opentelemetry/sdk-logs": "^0.55.0", "dotenv": "^16.0.0", "tslib": "^2.6.2" }, diff --git a/sdk/netapp/arm-netapp/CHANGELOG.md b/sdk/netapp/arm-netapp/CHANGELOG.md index 3beaed356481..c80718146013 100644 --- a/sdk/netapp/arm-netapp/CHANGELOG.md +++ b/sdk/netapp/arm-netapp/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 21.3.1 (Unreleased) +## 21.4.0-beta.2 (Unreleased) ### Features Added @@ -10,6 +10,66 @@ ### Other Changes +## 21.4.0-beta.1 (2024-11-18) +Compared with version 21.3.0 + +### Features Added + + - Added operation Accounts.beginChangeKeyVault + - Added operation Accounts.beginChangeKeyVaultAndWait + - Added operation Accounts.beginGetChangeKeyVaultInformation + - Added operation Accounts.beginGetChangeKeyVaultInformationAndWait + - Added operation Accounts.beginTransitionToCmk + - Added operation Accounts.beginTransitionToCmkAndWait + - Added operation Volumes.beginListQuotaReport + - Added operation Volumes.beginListQuotaReportAndWait + - Added operation Volumes.beginSplitCloneFromParent + - Added operation Volumes.beginSplitCloneFromParentAndWait + - Added Interface AccountsChangeKeyVaultHeaders + - Added Interface AccountsChangeKeyVaultOptionalParams + - Added Interface AccountsGetChangeKeyVaultInformationHeaders + - Added Interface AccountsGetChangeKeyVaultInformationOptionalParams + - Added Interface AccountsTransitionToCmkHeaders + - Added Interface AccountsTransitionToCmkOptionalParams + - Added Interface ChangeKeyVault + - Added Interface DestinationReplication + - Added Interface EncryptionTransitionRequest + - Added Interface KeyVaultPrivateEndpoint + - Added Interface ListQuotaReportResponse + - Added Interface QuotaReport + - Added Interface VolumesListQuotaReportHeaders + - Added Interface VolumesListQuotaReportOptionalParams + - Added Interface VolumesSplitCloneFromParentHeaders + - Added Interface VolumesSplitCloneFromParentOptionalParams + - Added Type Alias AcceptGrowCapacityPoolForShortTermCloneSplit + - Added Type Alias AccountsChangeKeyVaultResponse + - Added Type Alias AccountsGetChangeKeyVaultInformationResponse + - Added Type Alias AccountsTransitionToCmkResponse + - Added Type Alias ReplicationType + - Added Type Alias VolumeLanguage + - Added Type Alias VolumesListQuotaReportResponse + - Added Type Alias VolumesSplitCloneFromParentResponse + - Interface Backup has a new optional parameter isLargeVolume + - Interface CapacityPool has a new optional parameter customThroughputMibps + - Interface CapacityPoolPatch has a new optional parameter customThroughputMibps + - Interface EncryptionIdentity has a new optional parameter federatedClientId + - Interface NetAppAccount has a new optional parameter isMultiAdEnabled + - Interface NetAppAccount has a new optional parameter nfsV4IDDomain + - Interface NetAppAccountPatch has a new optional parameter isMultiAdEnabled + - Interface NetAppAccountPatch has a new optional parameter nfsV4IDDomain + - Interface ReplicationObject has a new optional parameter destinationReplications + - Interface Volume has a new optional parameter acceptGrowCapacityPoolForShortTermCloneSplit + - Interface Volume has a new optional parameter inheritedSizeInBytes + - Interface Volume has a new optional parameter language + - Interface VolumeGroupVolumeProperties has a new optional parameter acceptGrowCapacityPoolForShortTermCloneSplit + - Interface VolumeGroupVolumeProperties has a new optional parameter inheritedSizeInBytes + - Interface VolumeGroupVolumeProperties has a new optional parameter language + - Added Enum KnownAcceptGrowCapacityPoolForShortTermCloneSplit + - Added Enum KnownReplicationType + - Added Enum KnownVolumeLanguage + - Enum KnownServiceLevel has a new value Flexible + + ## 21.3.0 (2024-10-24) ### Features Added diff --git a/sdk/netapp/arm-netapp/README.md b/sdk/netapp/arm-netapp/README.md index 0d9fb4d010e8..78ab29c62855 100644 --- a/sdk/netapp/arm-netapp/README.md +++ b/sdk/netapp/arm-netapp/README.md @@ -6,7 +6,7 @@ Microsoft NetApp Files Azure Resource Provider specification [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-netapp) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-netapp) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/netapp/arm-netapp/_meta.json b/sdk/netapp/arm-netapp/_meta.json index 195b581e222f..a7dc38b828ab 100644 --- a/sdk/netapp/arm-netapp/_meta.json +++ b/sdk/netapp/arm-netapp/_meta.json @@ -1,8 +1,8 @@ { - "commit": "ff8e9ca54d60afff681c7492fd0777aab6198efa", + "commit": "86d9b39c82444344723eb239f2f16aa47280dad7", "readme": "specification/netapp/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\netapp\\resource-manager\\readme.md --use=@autorest/typescript@6.0.27 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\netapp\\resource-manager\\readme.md --use=@autorest/typescript@6.0.28 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.15", - "use": "@autorest/typescript@6.0.27" + "use": "@autorest/typescript@6.0.28" } \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/assets.json b/sdk/netapp/arm-netapp/assets.json index 7bb9b90fdeac..0fe9a4b932c0 100644 --- a/sdk/netapp/arm-netapp/assets.json +++ b/sdk/netapp/arm-netapp/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/netapp/arm-netapp", - "Tag": "js/netapp/arm-netapp_8bf887d503" + "Tag": "js/netapp/arm-netapp_62119140d7" } diff --git a/sdk/netapp/arm-netapp/package.json b/sdk/netapp/arm-netapp/package.json index a1d5836604d3..26815dac6914 100644 --- a/sdk/netapp/arm-netapp/package.json +++ b/sdk/netapp/arm-netapp/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetAppManagementClient.", - "version": "21.3.1", + "version": "21.4.0-beta.2", "engines": { "node": ">=18.0.0" }, @@ -28,6 +28,7 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-netapp.d.ts", "devDependencies": { + "@microsoft/api-extractor": "^7.31.1", "typescript": "~5.6.2", "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", @@ -89,7 +90,8 @@ "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped" + "integration-test:browser": "echo skipped", + "update-snippets": "echo skipped" }, "sideEffects": false, "//metadata": { diff --git a/sdk/netapp/arm-netapp/review/arm-netapp.api.md b/sdk/netapp/arm-netapp/review/arm-netapp.api.md index 17496138adcd..debba8b254c3 100644 --- a/sdk/netapp/arm-netapp/review/arm-netapp.api.md +++ b/sdk/netapp/arm-netapp/review/arm-netapp.api.md @@ -10,6 +10,9 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; +// @public +export type AcceptGrowCapacityPoolForShortTermCloneSplit = string; + // @public export interface AccountEncryption { identity?: EncryptionIdentity; @@ -19,12 +22,18 @@ export interface AccountEncryption { // @public export interface Accounts { + beginChangeKeyVault(resourceGroupName: string, accountName: string, options?: AccountsChangeKeyVaultOptionalParams): Promise, AccountsChangeKeyVaultResponse>>; + beginChangeKeyVaultAndWait(resourceGroupName: string, accountName: string, options?: AccountsChangeKeyVaultOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, accountName: string, body: NetAppAccount, options?: AccountsCreateOrUpdateOptionalParams): Promise, AccountsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, body: NetAppAccount, options?: AccountsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise; + beginGetChangeKeyVaultInformation(resourceGroupName: string, accountName: string, options?: AccountsGetChangeKeyVaultInformationOptionalParams): Promise, AccountsGetChangeKeyVaultInformationResponse>>; + beginGetChangeKeyVaultInformationAndWait(resourceGroupName: string, accountName: string, options?: AccountsGetChangeKeyVaultInformationOptionalParams): Promise; beginRenewCredentials(resourceGroupName: string, accountName: string, options?: AccountsRenewCredentialsOptionalParams): Promise, void>>; beginRenewCredentialsAndWait(resourceGroupName: string, accountName: string, options?: AccountsRenewCredentialsOptionalParams): Promise; + beginTransitionToCmk(resourceGroupName: string, accountName: string, options?: AccountsTransitionToCmkOptionalParams): Promise, AccountsTransitionToCmkResponse>>; + beginTransitionToCmkAndWait(resourceGroupName: string, accountName: string, options?: AccountsTransitionToCmkOptionalParams): Promise; beginUpdate(resourceGroupName: string, accountName: string, body: NetAppAccountPatch, options?: AccountsUpdateOptionalParams): Promise, AccountsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, accountName: string, body: NetAppAccountPatch, options?: AccountsUpdateOptionalParams): Promise; get(resourceGroupName: string, accountName: string, options?: AccountsGetOptionalParams): Promise; @@ -32,6 +41,22 @@ export interface Accounts { listBySubscription(options?: AccountsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface AccountsChangeKeyVaultHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface AccountsChangeKeyVaultOptionalParams extends coreClient.OperationOptions { + body?: ChangeKeyVault; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AccountsChangeKeyVaultResponse = AccountsChangeKeyVaultHeaders; + // @public export interface AccountsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -47,6 +72,21 @@ export interface AccountsDeleteOptionalParams extends coreClient.OperationOption updateIntervalInMs?: number; } +// @public +export interface AccountsGetChangeKeyVaultInformationHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface AccountsGetChangeKeyVaultInformationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AccountsGetChangeKeyVaultInformationResponse = AccountsGetChangeKeyVaultInformationHeaders; + // @public export interface AccountsGetOptionalParams extends coreClient.OperationOptions { } @@ -88,6 +128,22 @@ export interface AccountsRenewCredentialsOptionalParams extends coreClient.Opera updateIntervalInMs?: number; } +// @public +export interface AccountsTransitionToCmkHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface AccountsTransitionToCmkOptionalParams extends coreClient.OperationOptions { + body?: EncryptionTransitionRequest; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AccountsTransitionToCmkResponse = AccountsTransitionToCmkHeaders; + // @public export interface AccountsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -145,6 +201,7 @@ export interface Backup extends ProxyResource { readonly backupType?: BackupType; readonly creationDate?: Date; readonly failureReason?: string; + readonly isLargeVolume?: boolean; label?: string; readonly provisioningState?: string; readonly size?: number; @@ -536,6 +593,7 @@ export interface BreakReplicationRequest { // @public export interface CapacityPool extends TrackedResource { coolAccess?: boolean; + customThroughputMibps?: number; encryptionType?: EncryptionType; readonly etag?: string; readonly poolId?: string; @@ -556,6 +614,7 @@ export interface CapacityPoolList { // @public export interface CapacityPoolPatch { coolAccess?: boolean; + customThroughputMibps?: number; readonly id?: string; location?: string; readonly name?: string; @@ -567,6 +626,14 @@ export interface CapacityPoolPatch { readonly type?: string; } +// @public +export interface ChangeKeyVault { + keyName: string; + keyVaultPrivateEndpoints: KeyVaultPrivateEndpoint[]; + keyVaultResourceId?: string; + keyVaultUri: string; +} + // @public export interface CheckAvailabilityResponse { isAvailable?: boolean; @@ -613,6 +680,14 @@ export interface DailySchedule { usedBytes?: number; } +// @public +export interface DestinationReplication { + region?: string; + replicationType?: ReplicationType; + resourceId?: string; + zone?: string; +} + // @public export interface Dimension { displayName?: string; @@ -624,6 +699,7 @@ export type EnableSubvolumes = string; // @public export interface EncryptionIdentity { + federatedClientId?: string; readonly principalId?: string; userAssignedIdentity?: string; } @@ -631,6 +707,12 @@ export interface EncryptionIdentity { // @public export type EncryptionKeySource = string; +// @public +export interface EncryptionTransitionRequest { + privateEndpointId: string; + virtualNetworkId: string; +} + // @public export type EncryptionType = string; @@ -712,6 +794,12 @@ export type InAvailabilityReasonType = string; // @public export type KeySource = string; +// @public +export interface KeyVaultPrivateEndpoint { + privateEndpointId?: string; + virtualNetworkId?: string; +} + // @public export interface KeyVaultProperties { keyName: string; @@ -724,6 +812,12 @@ export interface KeyVaultProperties { // @public export type KeyVaultStatus = string; +// @public +export enum KnownAcceptGrowCapacityPoolForShortTermCloneSplit { + Accepted = "Accepted", + Declined = "Declined" +} + // @public export enum KnownActiveDirectoryStatus { Created = "Created", @@ -908,6 +1002,12 @@ export enum KnownReplicationSchedule { Hourly = "hourly" } +// @public +export enum KnownReplicationType { + CrossRegionReplication = "CrossRegionReplication", + CrossZoneReplication = "CrossZoneReplication" +} + // @public export enum KnownSecurityStyle { Ntfs = "ntfs", @@ -916,6 +1016,7 @@ export enum KnownSecurityStyle { // @public export enum KnownServiceLevel { + Flexible = "Flexible", Premium = "Premium", Standard = "Standard", StandardZRS = "StandardZRS", @@ -942,6 +1043,79 @@ export enum KnownType { IndividualUserQuota = "IndividualUserQuota" } +// @public +export enum KnownVolumeLanguage { + Ar = "ar", + ArUtf8 = "ar.utf-8", + C = "c", + Cs = "cs", + CsUtf8 = "cs.utf-8", + CUtf8 = "c.utf-8", + Da = "da", + DaUtf8 = "da.utf-8", + De = "de", + DeUtf8 = "de.utf-8", + En = "en", + EnUs = "en-us", + EnUsUtf8 = "en-us.utf-8", + EnUtf8 = "en.utf-8", + Es = "es", + EsUtf8 = "es.utf-8", + Fi = "fi", + FiUtf8 = "fi.utf-8", + Fr = "fr", + FrUtf8 = "fr.utf-8", + He = "he", + HeUtf8 = "he.utf-8", + Hr = "hr", + HrUtf8 = "hr.utf-8", + Hu = "hu", + HuUtf8 = "hu.utf-8", + It = "it", + ItUtf8 = "it.utf-8", + Ja = "ja", + JaJp932 = "ja-jp.932", + JaJp932Utf8 = "ja-jp.932.utf-8", + JaJpPck = "ja-jp.pck", + JaJpPckUtf8 = "ja-jp.pck.utf-8", + JaJpPckV2 = "ja-jp.pck-v2", + JaJpPckV2Utf8 = "ja-jp.pck-v2.utf-8", + JaUtf8 = "ja.utf-8", + JaV1 = "ja-v1", + JaV1Utf8 = "ja-v1.utf-8", + Ko = "ko", + KoUtf8 = "ko.utf-8", + Nl = "nl", + NlUtf8 = "nl.utf-8", + No = "no", + NoUtf8 = "no.utf-8", + Pl = "pl", + PlUtf8 = "pl.utf-8", + Pt = "pt", + PtUtf8 = "pt.utf-8", + Ro = "ro", + RoUtf8 = "ro.utf-8", + Ru = "ru", + RuUtf8 = "ru.utf-8", + Sk = "sk", + SkUtf8 = "sk.utf-8", + Sl = "sl", + SlUtf8 = "sl.utf-8", + Sv = "sv", + SvUtf8 = "sv.utf-8", + Tr = "tr", + TrUtf8 = "tr.utf-8", + Utf8Mb4 = "utf8mb4", + Zh = "zh", + ZhGbk = "zh.gbk", + ZhGbkUtf8 = "zh.gbk.utf-8", + ZhTw = "zh-tw", + ZhTwBig5 = "zh-tw.big5", + ZhTwBig5Utf8 = "zh-tw.big5.utf-8", + ZhTwUtf8 = "zh-tw.utf-8", + ZhUtf8 = "zh.utf-8" +} + // @public export enum KnownVolumeStorageToNetworkProximity { AcrossT2 = "AcrossT2", @@ -957,6 +1131,12 @@ export interface LdapSearchScopeOpt { userDN?: string; } +// @public +export interface ListQuotaReportResponse { + nextLink?: string; + value?: QuotaReport[]; +} + // @public export interface ListReplications { value?: Replication[]; @@ -1046,6 +1226,8 @@ export interface NetAppAccount extends TrackedResource { encryption?: AccountEncryption; readonly etag?: string; identity?: ManagedServiceIdentity; + readonly isMultiAdEnabled?: boolean; + nfsV4IDDomain?: string; readonly provisioningState?: string; } @@ -1062,8 +1244,10 @@ export interface NetAppAccountPatch { encryption?: AccountEncryption; readonly id?: string; identity?: ManagedServiceIdentity; + readonly isMultiAdEnabled?: boolean; location?: string; readonly name?: string; + nfsV4IDDomain?: string; readonly provisioningState?: string; tags?: { [propertyName: string]: string; @@ -1385,6 +1569,16 @@ export interface QuotaAvailabilityRequest { type: CheckQuotaNameResourceTypes; } +// @public +export interface QuotaReport { + isDerivedQuota?: boolean; + percentageUsed?: number; + quotaLimitTotalInKiBs?: number; + quotaLimitUsedInKiBs?: number; + quotaTarget?: string; + quotaType?: Type; +} + // @public export interface ReestablishReplicationRequest { sourceVolumeId?: string; @@ -1443,6 +1637,7 @@ export interface Replication { // @public export interface ReplicationObject { + readonly destinationReplications?: DestinationReplication[]; endpointType?: EndpointType; remotePath?: RemotePath; remoteVolumeRegion?: string; @@ -1463,6 +1658,9 @@ export interface ReplicationStatus { totalProgress?: string; } +// @public +export type ReplicationType = string; + // @public export interface Resource { readonly id?: string; @@ -1858,6 +2056,7 @@ export interface UserAssignedIdentity { // @public export interface Volume extends TrackedResource { + acceptGrowCapacityPoolForShortTermCloneSplit?: AcceptGrowCapacityPoolForShortTermCloneSplit; readonly actualThroughputMibps?: number; avsDataStore?: AvsDataStore; backupId?: string; @@ -1881,11 +2080,13 @@ export interface Volume extends TrackedResource { exportPolicy?: VolumePropertiesExportPolicy; readonly fileAccessLogs?: FileAccessLogs; readonly fileSystemId?: string; + readonly inheritedSizeInBytes?: number; isDefaultQuotaEnabled?: boolean; isLargeVolume?: boolean; isRestoring?: boolean; kerberosEnabled?: boolean; keyVaultPrivateEndpointResourceId?: string; + language?: VolumeLanguage; ldapEnabled?: boolean; readonly maximumNumberOfFiles?: number; readonly mountTargets?: MountTargetProperties[]; @@ -2008,6 +2209,7 @@ export type VolumeGroupsListByNetAppAccountResponse = VolumeGroupList; // @public export interface VolumeGroupVolumeProperties { + acceptGrowCapacityPoolForShortTermCloneSplit?: AcceptGrowCapacityPoolForShortTermCloneSplit; readonly actualThroughputMibps?: number; avsDataStore?: AvsDataStore; backupId?: string; @@ -2031,11 +2233,13 @@ export interface VolumeGroupVolumeProperties { readonly fileAccessLogs?: FileAccessLogs; readonly fileSystemId?: string; readonly id?: string; + readonly inheritedSizeInBytes?: number; isDefaultQuotaEnabled?: boolean; isLargeVolume?: boolean; isRestoring?: boolean; kerberosEnabled?: boolean; keyVaultPrivateEndpointResourceId?: string; + language?: VolumeLanguage; ldapEnabled?: boolean; readonly maximumNumberOfFiles?: number; readonly mountTargets?: MountTargetProperties[]; @@ -2072,6 +2276,9 @@ export interface VolumeGroupVolumeProperties { zones?: string[]; } +// @public +export type VolumeLanguage = string; + // @public export interface VolumeList { nextLink?: string; @@ -2236,6 +2443,8 @@ export interface Volumes { beginFinalizeRelocationAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesFinalizeRelocationOptionalParams): Promise; beginListGetGroupIdListForLdapUser(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, options?: VolumesListGetGroupIdListForLdapUserOptionalParams): Promise, VolumesListGetGroupIdListForLdapUserResponse>>; beginListGetGroupIdListForLdapUserAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, options?: VolumesListGetGroupIdListForLdapUserOptionalParams): Promise; + beginListQuotaReport(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesListQuotaReportOptionalParams): Promise, VolumesListQuotaReportResponse>>; + beginListQuotaReportAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesListQuotaReportOptionalParams): Promise; beginPeerExternalCluster(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: PeerClusterForVolumeMigrationRequest, options?: VolumesPeerExternalClusterOptionalParams): Promise, VolumesPeerExternalClusterResponse>>; beginPeerExternalClusterAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: PeerClusterForVolumeMigrationRequest, options?: VolumesPeerExternalClusterOptionalParams): Promise; beginPerformReplicationTransfer(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesPerformReplicationTransferOptionalParams): Promise, VolumesPerformReplicationTransferResponse>>; @@ -2258,6 +2467,8 @@ export interface Volumes { beginRevertAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: VolumeRevert, options?: VolumesRevertOptionalParams): Promise; beginRevertRelocation(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesRevertRelocationOptionalParams): Promise, void>>; beginRevertRelocationAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesRevertRelocationOptionalParams): Promise; + beginSplitCloneFromParent(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesSplitCloneFromParentOptionalParams): Promise, VolumesSplitCloneFromParentResponse>>; + beginSplitCloneFromParentAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesSplitCloneFromParentOptionalParams): Promise; beginUpdate(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: VolumePatch, options?: VolumesUpdateOptionalParams): Promise, VolumesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: VolumePatch, options?: VolumesUpdateOptionalParams): Promise; get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesGetOptionalParams): Promise; @@ -2383,6 +2594,21 @@ export type VolumesListNextResponse = VolumeList; export interface VolumesListOptionalParams extends coreClient.OperationOptions { } +// @public +export interface VolumesListQuotaReportHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VolumesListQuotaReportOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VolumesListQuotaReportResponse = ListQuotaReportResponse; + // @public export interface VolumesListReplicationsOptionalParams extends coreClient.OperationOptions { } @@ -2508,6 +2734,21 @@ export interface VolumesRevertRelocationOptionalParams extends coreClient.Operat updateIntervalInMs?: number; } +// @public +export interface VolumesSplitCloneFromParentHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VolumesSplitCloneFromParentOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VolumesSplitCloneFromParentResponse = VolumesSplitCloneFromParentHeaders; + // @public export type VolumeStorageToNetworkProximity = string; diff --git a/sdk/netapp/arm-netapp/sample.env b/sdk/netapp/arm-netapp/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/netapp/arm-netapp/sample.env +++ b/sdk/netapp/arm-netapp/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsChangeKeyVaultSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsChangeKeyVaultSample.ts new file mode 100644 index 000000000000..bcc24bd2fc03 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples-dev/accountsChangeKeyVaultSample.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ChangeKeyVault, + AccountsChangeKeyVaultOptionalParams, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + * + * @summary Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_ChangeKeyVault.json + */ +async function accountsChangeKeyVault() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const body: ChangeKeyVault = { + keyName: "rsakey", + keyVaultPrivateEndpoints: [ + { + privateEndpointId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", + virtualNetworkId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1", + }, + ], + keyVaultResourceId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.KeyVault/managedHSMs/my-hsm", + keyVaultUri: "https://my-key-vault.managedhsm.azure.net", + }; + const options: AccountsChangeKeyVaultOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginChangeKeyVaultAndWait( + resourceGroupName, + accountName, + options, + ); + console.log(result); +} + +async function main() { + accountsChangeKeyVault(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts index be866923aabd..f86da618169a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_CreateOrUpdate.json */ async function accountsCreateOrUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function accountsCreateOrUpdate() { * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts index 98e9c58905f7..7fbeb8a7c1e2 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified NetApp account * * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsGetChangeKeyVaultInformationSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsGetChangeKeyVaultInformationSample.ts new file mode 100644 index 000000000000..2650d2f736fd --- /dev/null +++ b/sdk/netapp/arm-netapp/samples-dev/accountsGetChangeKeyVaultInformationSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. + * + * @summary Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_GetChangeKeyVaultInformation.json + */ +async function accountsGetChangeKeyVaultInformation() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginGetChangeKeyVaultInformationAndWait( + resourceGroupName, + accountName, + ); + console.log(result); +} + +async function main() { + accountsGetChangeKeyVaultInformation(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts index 3ef2d3189440..98271a039976 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the NetApp account * * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Get.json */ async function accountsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts index 7b4f2c4a9131..b864594d697c 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the subscription. * * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts index ec5d5f6027d8..53bf3f464604 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the resource group. * * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts index 702cfb844201..7e742b573d2a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsTransitionToCmkSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsTransitionToCmkSample.ts new file mode 100644 index 000000000000..7ef222083aec --- /dev/null +++ b/sdk/netapp/arm-netapp/samples-dev/accountsTransitionToCmkSample.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + EncryptionTransitionRequest, + AccountsTransitionToCmkOptionalParams, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. + * + * @summary Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_TransitionEncryptionKey.json + */ +async function accountsMigrateEncryptionKey() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const body: EncryptionTransitionRequest = { + privateEndpointId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", + virtualNetworkId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1", + }; + const options: AccountsTransitionToCmkOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginTransitionToCmkAndWait( + resourceGroupName, + accountName, + options, + ); + console.log(result); +} + +async function main() { + accountsMigrateEncryptionKey(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts index ff77c071ac74..1a4c5a922f6b 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified NetApp account * * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts index 24e4ae9cc85e..3111249d5e2b 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a backup policy for Netapp Account * * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts index 4081cc1c84fe..895b0e5557f6 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete backup policy * * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Delete.json */ async function backupPoliciesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts index 7b39b11a5c83..7cbea1607981 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a particular backup Policy * * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts index 5ae4eb0d4dcf..8ca5ffd3ca3a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List backup policies for Netapp Account * * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_List.json */ async function backupPoliciesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts index f83d0e476f7b..12f768e4ce86 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a backup policy for Netapp Account * * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts index 33a99faf16c4..e7e2601df865 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified Backup Vault in the NetApp account * * @summary Create or update the specified Backup Vault in the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Create.json */ async function backupVaultCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts index 2dd8eda92b42..6dd84c39b9c5 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified Backup Vault * * @summary Delete the specified Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Delete.json */ async function backupVaultsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts index b7ecf0725337..b858f573781e 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the Backup Vault * * @summary Get the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Get.json */ async function backupVaultsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts index 6e02c8391b16..f4c8c253a676 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all Backup Vaults in the NetApp account. * * @summary List and describe all Backup Vaults in the NetApp account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_List.json */ async function backupVaultsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts index 965a9116ca85..a1cfb7a59018 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified NetApp Backup Vault * * @summary Patch the specified NetApp Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Update.json */ async function backupVaultsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts index 35becef9835d..a12e6961556b 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a backup under the Backup Vault * * @summary Create a backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Create.json */ async function backupsUnderBackupVaultCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts index d2830d556671..2f735c1ee2ed 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a Backup under the Backup Vault * * @summary Delete a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Delete.json */ async function backupsUnderBackupVaultDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts index cb03727171db..95c0133b0959 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the latest status of the backup for a volume * * @summary Get the latest status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestBackupStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_LatestBackupStatus.json */ async function volumesBackupStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts index 3c8fcac643c1..266fd0afcbbc 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified Backup under Backup Vault. * * @summary Get the specified Backup under Backup Vault. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Get.json */ async function backupsUnderBackupVaultGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeLatestRestoreStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeLatestRestoreStatusSample.ts index fb034002e284..71393aa6f51a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeLatestRestoreStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeLatestRestoreStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the latest status of the restore for a volume * * @summary Get the latest status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestRestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_LatestRestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts index 830a6202628e..86a3fe9ddc56 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all backups Under a Backup Vault * * @summary List all backups Under a Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_List.json */ async function backupsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts index 09efd8f56fa3..b915d63acb00 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Migrate the backups under a NetApp account to backup vault * * @summary Migrate the backups under a NetApp account to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderAccount_Migrate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderAccount_Migrate.json */ async function backupsUnderAccountMigrate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts index 19fc8d342083..d5177e055b22 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Restore the specified files from the specified backup to the active filesystem * * @summary Restore the specified files from the specified backup to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json */ async function backupsSingleFileRestore() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts index bc51d294fc8d..16c8455040c5 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Migrate the backups under volume to backup vault * * @summary Migrate the backups under volume to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderVolume_Migrate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderVolume_Migrate.json */ async function backupsUnderVolumeMigrate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts index aff934dc54bb..9da440b6495a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch a Backup under the Backup Vault * * @summary Patch a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Update.json */ async function backupsUnderBackupVaultUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts index 312bfd105850..f6fc91b20c9b 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Check if a file path is available. * * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts index 7f150570fc53..e9d282912baa 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a resource name is available. * * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts index ac0930547626..8167d108cab9 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a quota is available. * * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts index f576b245bd0c..36864972950b 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified network sibling set. * * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/NetworkSiblingSet_Query.json */ async function networkSiblingSetQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts index 60b17af11f9d..7425998b85c6 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfo.json */ async function regionInfoQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts index bcf775db18e5..61c68d1fa8e2 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current subscription quota limit * * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts index 43c8e0581eed..409515e39698 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current limits for quotas * * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts index 3664878301e3..6402390503d1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_Get.json */ async function regionInfosGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts index 12ce7b50c6f6..1d2c694519ce 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Provides region specific information. * * @summary Provides region specific information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_List.json */ async function regionInfosList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts index 168c88d59fc9..7dd12cef2a15 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update the network features of the specified network sibling set. * * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/NetworkSiblingSet_Update.json */ async function networkFeaturesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts index 1336f706f943..2202fee1cd71 100644 --- a/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations * * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts index 059fdb4ebbc1..b22ee020a2e5 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update a capacity pool * * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = @@ -44,8 +44,40 @@ async function poolsCreateOrUpdate() { console.log(result); } +/** + * This sample demonstrates how to Create or Update a capacity pool + * + * @summary Create or Update a capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate_CustomThroughput.json + */ +async function poolsCreateOrUpdateCustomThroughput() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "customPool1"; + const body: CapacityPool = { + customThroughputMibps: 128, + location: "eastus", + qosType: "Manual", + serviceLevel: "Flexible", + size: 4398046511104, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.beginCreateOrUpdateAndWait( + resourceGroupName, + accountName, + poolName, + body, + ); + console.log(result); +} + async function main() { poolsCreateOrUpdate(); + poolsCreateOrUpdateCustomThroughput(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts index 732d33235e00..562bdeecdf0a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified capacity pool * * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts index 2049001e7ee2..0f30853d4a87 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified capacity pool * * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = @@ -37,8 +37,32 @@ async function poolsGet() { console.log(result); } +/** + * This sample demonstrates how to Get details of the specified capacity pool + * + * @summary Get details of the specified capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get_CustomThroughput.json + */ +async function poolsGetCustomThroughput() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "customPool1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.get( + resourceGroupName, + accountName, + poolName, + ); + console.log(result); +} + async function main() { poolsGet(); + poolsGetCustomThroughput(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts index a1a871c52433..45a9b45390ee 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all capacity pools in the NetApp Account * * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_List.json */ async function poolsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts index 03bf830b6d12..89b742ecac42 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified capacity pool * * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = @@ -39,8 +39,34 @@ async function poolsUpdate() { console.log(result); } +/** + * This sample demonstrates how to Patch the specified capacity pool + * + * @summary Patch the specified capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update_CustomThroughput.json + */ +async function poolsUpdateCustomThroughput() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "customPool1"; + const body: CapacityPoolPatch = {}; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + body, + ); + console.log(result); +} + async function main() { poolsUpdate(); + poolsUpdateCustomThroughput(); } main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts index 5b35ac9c0dc3..3dbc5bdc2135 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a snapshot policy * * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts index 805c5ec6ea2b..a60d5342dcd6 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot policy * * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts index 2900d5ffc314..3d9f8497bdc7 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a snapshot Policy * * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts index 13be7a33280a..829f17b1a3be 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List snapshot policy * * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts index 38ffbf57eed9..a64eba76b691 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get volumes associated with snapshot policy * * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts index 3453c70019d8..e04088415ad3 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot policy * * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts index cc5671daae71..3055a7457d27 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified snapshot within the given volume * * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts index 59b60a2897aa..b2eeaadd42cc 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot * * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts index f92d52cd2743..a2837c37d139 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified snapshot * * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts index 66e6f3498d4c..0cac2c3cc50c 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all snapshots associated with the volume * * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts index 16eec29c0071..3cacd742ac36 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem * * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts index 3cd6b7671d03..8ea265fb1257 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot * * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts index 957c0f7abea3..0d234c9fb499 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath * * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts index 246a4982fad1..c9f5fd9bcef9 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete subvolume * * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts index fa0dd6f09899..dd796b5380b9 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified subvolume * * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts index aab9c9564056..098647570967 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the path associated with the subvolumeName provided * * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts index de7301bfe092..467be8735bd1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a list of the subvolumes in the volume * * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts index 0a94aa73ba97..9544dfe0fc18 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a subvolume * * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts index b4a526e3d66a..a0da8e5f7265 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Create_Oracle.json */ async function volumeGroupsCreateOracle() { const subscriptionId = @@ -460,7 +460,7 @@ async function volumeGroupsCreateOracle() { * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Create_SapHana.json */ async function volumeGroupsCreateSapHana() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts index 5faec89c03d2..9d0f9774dbfd 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. * * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts index 3b5c29c8d156..1b8bfc978ea0 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Get_Oracle.json */ async function volumeGroupsGetOracle() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumeGroupsGetOracle() { * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Get_SapHana.json */ async function volumeGroupsGetSapHana() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts index d37186d21c0f..bcedb0dc4a5f 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_List_Oracle.json */ async function volumeGroupsListOracle() { const subscriptionId = @@ -42,7 +42,7 @@ async function volumeGroupsListOracle() { * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_List_SapHana.json */ async function volumeGroupsListSapHana() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts index 7fd7dc328120..601518418d16 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified quota rule within the given volume * * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts index 2058674b2455..5c1154a51c86 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete quota rule * * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts index e38d949f7eee..42cd3ab72f71 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified quota rule * * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts index 8ec4063134cb..cb5d13627e56 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all quota rules associated with the volume * * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts index 79ee11cad2bd..1600400f97f1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a quota rule * * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeExternalReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeExternalReplicationSample.ts index f8dfcacf9702..47d5e60ddac7 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeExternalReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeExternalReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created * * @summary Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeExternalReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeExternalReplication.json */ async function volumesAuthorizeExternalReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts index 80c72256367c..ba2660ddf5de 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Authorize the replication connection on the source volume * * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts index cb330092e0b1..715d3391f2fc 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break all the file locks on a volume * * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts index 63d0b5957368..0946804f9467 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break the replication connection on the destination volume * * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts index 0be04816ab73..32e103bff9e1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified volume within the capacity pool * * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts index 417468220430..d5e9dd642fde 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication * * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts index 05f4fd29222c..b8254263cf14 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume * * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeExternalReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeExternalReplicationSample.ts index bb7cce78b348..81da2d6e8e0d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeExternalReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeExternalReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. * * @summary Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeExternalReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeExternalReplication.json */ async function volumesFinalizeExternalReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts index f400bdccfc8e..e6a1ac2b6d82 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. * * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts index 7f13bd97c8ef..b3bffafc9081 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the details of the specified volume * * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts index 426ed9b2182a..1324f5064b71 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User * * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListQuotaReportSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListQuotaReportSample.ts new file mode 100644 index 000000000000..4337dc2d6814 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListQuotaReportSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns report of quotas for the volume + * + * @summary Returns report of quotas for the volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListQuotaReport.json + */ +async function listQuotaReport() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginListQuotaReportAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + listQuotaReport(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts index be3bcd5cac91..2809b80e738d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all replications for a specified volume * * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts index cd289530a649..790c6f717e08 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volumes within the capacity pool * * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesPeerExternalClusterSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesPeerExternalClusterSample.ts index 2e0bf916ca36..76c3637717a7 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesPeerExternalClusterSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesPeerExternalClusterSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Starts peering the external cluster for this migration volume * * @summary Starts peering the external cluster for this migration volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PeerExternalCluster.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PeerExternalCluster.json */ async function volumesPeerExternalCluster() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesPerformReplicationTransferSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesPerformReplicationTransferSample.ts index 7639451186f2..f51f8f4fadd9 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesPerformReplicationTransferSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesPerformReplicationTransferSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Performs an adhoc replication transfer on a volume with volumeType Migration * * @summary Performs an adhoc replication transfer on a volume with volumeType Migration - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PerformReplicationTransfer.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PerformReplicationTransfer.json */ async function volumesPerformReplicationTransfer() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts index 5991f83df369..1fea7a413505 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Moves volume to another pool * * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts index 7a86fcf80506..6065b90278b7 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation will populate availability zone information for a volume * * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PopulateAvailabilityZones.json */ async function volumesPopulateAvailabilityZones() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts index b6fc9d14fd51..a5e7b3229c1b 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Re-Initializes the replication connection on the destination volume * * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts index 8fe8945a361e..7111c9e664a4 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots * * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts index 3886ec588fd0..8b19c40383db 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Relocates volume to a new stamp * * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts index c840a49303dc..44d117b2daed 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the replication * * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts index 925e89026735..dbf047a0c650 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reset cifs password from volume * * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts index 8049beb297cb..786bd94bf53a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. * * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts index 3f3c0c90bf09..7a42495740a9 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts index 28364eeaaa72..179e77c90190 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Revert a volume to the snapshot specified in the body * * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts new file mode 100644 index 000000000000..32b34b2e080f --- /dev/null +++ b/sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Split operation to convert clone volume to an independent volume. + * + * @summary Split operation to convert clone volume to an independent volume. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_SplitClone.json + */ +async function volumesSplitClone() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginSplitCloneFromParentAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesSplitClone(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts index 81f44b27b979..a715f554959d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified volume * * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/README.md b/sdk/netapp/arm-netapp/samples/v20/javascript/README.md deleted file mode 100644 index 20047ec218cd..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/README.md +++ /dev/null @@ -1,200 +0,0 @@ -# client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [accountsCreateOrUpdateSample.js][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json | -| [accountsDeleteSample.js][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json | -| [accountsGetSample.js][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json | -| [accountsListBySubscriptionSample.js][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | -| [accountsListSample.js][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | -| [accountsRenewCredentialsSample.js][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json | -| [accountsUpdateSample.js][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json | -| [backupPoliciesCreateSample.js][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json | -| [backupPoliciesDeleteSample.js][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json | -| [backupPoliciesGetSample.js][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json | -| [backupPoliciesListSample.js][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json | -| [backupPoliciesUpdateSample.js][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json | -| [backupsGetVolumeRestoreStatusSample.js][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json | -| [netAppResourceCheckFilePathAvailabilitySample.js][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json | -| [netAppResourceCheckNameAvailabilitySample.js][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json | -| [netAppResourceCheckQuotaAvailabilitySample.js][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json | -| [netAppResourceQueryNetworkSiblingSetSample.js][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json | -| [netAppResourceQueryRegionInfoSample.js][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json | -| [netAppResourceQuotaLimitsGetSample.js][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json | -| [netAppResourceQuotaLimitsListSample.js][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json | -| [netAppResourceUpdateNetworkSiblingSetSample.js][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json | -| [poolsCreateOrUpdateSample.js][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json | -| [poolsDeleteSample.js][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json | -| [poolsGetSample.js][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json | -| [poolsListSample.js][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json | -| [poolsUpdateSample.js][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json | -| [snapshotPoliciesCreateSample.js][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json | -| [snapshotPoliciesDeleteSample.js][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json | -| [snapshotPoliciesGetSample.js][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json | -| [snapshotPoliciesListSample.js][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json | -| [snapshotPoliciesListVolumesSample.js][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json | -| [snapshotPoliciesUpdateSample.js][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json | -| [snapshotsCreateSample.js][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json | -| [snapshotsDeleteSample.js][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json | -| [snapshotsGetSample.js][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json | -| [snapshotsListSample.js][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json | -| [snapshotsRestoreFilesSample.js][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json | -| [snapshotsUpdateSample.js][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json | -| [subvolumesCreateSample.js][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json | -| [subvolumesDeleteSample.js][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json | -| [subvolumesGetMetadataSample.js][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json | -| [subvolumesGetSample.js][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json | -| [subvolumesListByVolumeSample.js][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json | -| [subvolumesUpdateSample.js][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json | -| [volumeGroupsCreateSample.js][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json | -| [volumeGroupsDeleteSample.js][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json | -| [volumeGroupsGetSample.js][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json | -| [volumeGroupsListByNetAppAccountSample.js][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json | -| [volumeQuotaRulesCreateSample.js][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json | -| [volumeQuotaRulesDeleteSample.js][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json | -| [volumeQuotaRulesGetSample.js][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json | -| [volumeQuotaRulesListByVolumeSample.js][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json | -| [volumeQuotaRulesUpdateSample.js][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json | -| [volumesAuthorizeReplicationSample.js][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json | -| [volumesBreakFileLocksSample.js][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json | -| [volumesBreakReplicationSample.js][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json | -| [volumesCreateOrUpdateSample.js][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json | -| [volumesDeleteReplicationSample.js][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json | -| [volumesDeleteSample.js][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json | -| [volumesFinalizeRelocationSample.js][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json | -| [volumesGetSample.js][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json | -| [volumesListGetGroupIdListForLdapUserSample.js][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json | -| [volumesListReplicationsSample.js][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json | -| [volumesListSample.js][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json | -| [volumesPoolChangeSample.js][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json | -| [volumesPopulateAvailabilityZoneSample.js][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json | -| [volumesReInitializeReplicationSample.js][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json | -| [volumesReestablishReplicationSample.js][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json | -| [volumesRelocateSample.js][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json | -| [volumesReplicationStatusSample.js][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json | -| [volumesResetCifsPasswordSample.js][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json | -| [volumesResyncReplicationSample.js][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json | -| [volumesRevertRelocationSample.js][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json | -| [volumesRevertSample.js][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json | -| [volumesUpdateSample.js][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node accountsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node accountsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js -[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js -[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js -[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js -[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js -[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js -[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js -[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js -[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js -[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js -[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js -[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js -[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js -[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js -[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js -[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js -[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js -[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js -[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js -[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js -[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js -[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js -[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js -[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js -[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js -[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js -[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js -[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js -[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js -[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js -[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js -[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js -[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js -[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js -[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js -[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js -[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js -[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js -[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js -[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js -[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js -[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js -[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js -[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js -[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js -[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js -[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js -[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js -[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js -[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js -[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js -[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js -[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js -[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js -[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js -[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js -[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js -[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js -[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js -[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js -[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js -[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js -[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp/README.md diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js deleted file mode 100644 index 1544effbc70c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update the specified NetApp account within the resource group - * - * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json - */ -async function accountsCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update the specified NetApp account within the resource group - * - * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json - */ -async function accountsCreateOrUpdateWithActiveDirectory() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body = { - activeDirectories: [ - { - aesEncryption: true, - dns: "10.10.10.3", - domain: "10.10.10.3", - ldapOverTLS: false, - ldapSigning: false, - organizationalUnit: "OU=Engineering", - password: "ad_password", - site: "SiteName", - smbServerName: "SMBServer", - username: "ad_user_name", - }, - ], - location: "eastus", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -async function main() { - accountsCreateOrUpdate(); - accountsCreateOrUpdateWithActiveDirectory(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js deleted file mode 100644 index e9fdc967f06c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified NetApp account - * - * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json - */ -async function accountsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginDeleteAndWait(resourceGroupName, accountName); - console.log(result); -} - -async function main() { - accountsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js deleted file mode 100644 index a325d7313e6e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the NetApp account - * - * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json - */ -async function accountsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.get(resourceGroupName, accountName); - console.log(result); -} - -async function main() { - accountsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js deleted file mode 100644 index 4194be94bf6c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List and describe all NetApp accounts in the subscription. - * - * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json - */ -async function accountsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accounts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js deleted file mode 100644 index 69fff1d5b2f7..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List and describe all NetApp accounts in the resource group. - * - * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json - */ -async function accountsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accounts.list(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js deleted file mode 100644 index 613b31721b67..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * - * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json - */ -async function accountsRenewCredentials() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginRenewCredentialsAndWait(resourceGroupName, accountName); - console.log(result); -} - -async function main() { - accountsRenewCredentials(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js deleted file mode 100644 index 60fdb74aa56a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the specified NetApp account - * - * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json - */ -async function accountsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginUpdateAndWait(resourceGroupName, accountName, body); - console.log(result); -} - -async function main() { - accountsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js deleted file mode 100644 index a5ec4f9458f9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a backup policy for Netapp Account - * - * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json - */ -async function backupPoliciesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupPolicyName = "backupPolicyName"; - const body = { - dailyBackupsToKeep: 10, - enabled: true, - location: "westus", - monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.beginCreateAndWait( - resourceGroupName, - accountName, - backupPolicyName, - body, - ); - console.log(result); -} - -async function main() { - backupPoliciesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js deleted file mode 100644 index 67938cd240bb..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete backup policy - * - * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json - */ -async function backupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupPolicyName = "backupPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.beginDeleteAndWait( - resourceGroupName, - accountName, - backupPolicyName, - ); - console.log(result); -} - -async function main() { - backupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js deleted file mode 100644 index fe3ad0fb8931..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a particular backup Policy - * - * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json - */ -async function backupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupPolicyName = "backupPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.get(resourceGroupName, accountName, backupPolicyName); - console.log(result); -} - -async function main() { - backupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js deleted file mode 100644 index 63b9ed79d04d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List backup policies for Netapp Account - * - * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json - */ -async function backupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupPolicies.list(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js deleted file mode 100644 index 38ba7d79729a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a backup policy for Netapp Account - * - * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json - */ -async function backupPoliciesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupPolicyName = "backupPolicyName"; - const body = { - dailyBackupsToKeep: 5, - enabled: false, - location: "westus", - monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.beginUpdateAndWait( - resourceGroupName, - accountName, - backupPolicyName, - body, - ); - console.log(result); -} - -async function main() { - backupPoliciesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js deleted file mode 100644 index 7f65c6254e9d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the status of the restore for a volume - * - * @summary Get the status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json - */ -async function volumesRestoreStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getVolumeRestoreStatus( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesRestoreStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js deleted file mode 100644 index 16a84fccdae1..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Check if a file path is available. - * - * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json - */ -async function checkFilePathAvailability() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const name = "my-exact-filepth"; - const subnetId = - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.checkFilePathAvailability(location, name, subnetId); - console.log(result); -} - -async function main() { - checkFilePathAvailability(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js deleted file mode 100644 index 0121ab5a7286..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Check if a resource name is available. - * - * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json - */ -async function checkNameAvailability() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const name = "accName"; - const typeParam = "Microsoft.NetApp/netAppAccounts"; - const resourceGroup = "myRG"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.checkNameAvailability( - location, - name, - typeParam, - resourceGroup, - ); - console.log(result); -} - -async function main() { - checkNameAvailability(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js deleted file mode 100644 index ba37d725fcd3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Check if a quota is available. - * - * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json - */ -async function checkQuotaAvailability() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const name = "resource1"; - const typeParam = "Microsoft.NetApp/netAppAccounts"; - const resourceGroup = "myRG"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.checkQuotaAvailability( - location, - name, - typeParam, - resourceGroup, - ); - console.log(result); -} - -async function main() { - checkQuotaAvailability(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js deleted file mode 100644 index 0e83f9d34f4d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details of the specified network sibling set. - * - * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json - */ -async function networkSiblingSetQuery() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; - const subnetId = - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.queryNetworkSiblingSet( - location, - networkSiblingSetId, - subnetId, - ); - console.log(result); -} - -async function main() { - networkSiblingSetQuery(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js deleted file mode 100644 index e3f2b4227f9a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json - */ -async function regionInfoQuery() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.queryRegionInfo(location); - console.log(result); -} - -async function main() { - regionInfoQuery(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js deleted file mode 100644 index 8d3265e1a3e9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the default and current subscription quota limit - * - * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json - */ -async function quotaLimits() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const quotaLimitName = "totalCoolAccessVolumesPerSubscription"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceQuotaLimits.get(location, quotaLimitName); - console.log(result); -} - -async function main() { - quotaLimits(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js deleted file mode 100644 index 28dd26713ef3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the default and current limits for quotas - * - * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json - */ -async function quotaLimits() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.netAppResourceQuotaLimits.list(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - quotaLimits(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js deleted file mode 100644 index fc59d24be22c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update the network features of the specified network sibling set. - * - * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json - */ -async function networkFeaturesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; - const subnetId = - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; - const networkSiblingSetStateId = "12345_44420.8001578125"; - const networkFeatures = "Standard"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( - location, - networkSiblingSetId, - subnetId, - networkSiblingSetStateId, - networkFeatures, - ); - console.log(result); -} - -async function main() { - networkFeaturesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js deleted file mode 100644 index dfa127d2fcbf..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations - * - * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json - */ -async function operationList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - operationList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/package.json b/sdk/netapp/arm-netapp/samples/v20/javascript/package.json deleted file mode 100644 index 4fd4687db5bd..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-netapp-js", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/netapp/arm-netapp" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", - "dependencies": { - "@azure/arm-netapp": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - } -} diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js deleted file mode 100644 index 1c28fc96a651..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or Update a capacity pool - * - * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json - */ -async function poolsCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const body = { - location: "eastus", - qosType: "Auto", - serviceLevel: "Premium", - size: 4398046511104, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - poolName, - body, - ); - console.log(result); -} - -async function main() { - poolsCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js deleted file mode 100644 index 72039201a54b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified capacity pool - * - * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json - */ -async function poolsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.beginDeleteAndWait(resourceGroupName, accountName, poolName); - console.log(result); -} - -async function main() { - poolsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js deleted file mode 100644 index 1a6779ef5004..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details of the specified capacity pool - * - * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json - */ -async function poolsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.get(resourceGroupName, accountName, poolName); - console.log(result); -} - -async function main() { - poolsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js deleted file mode 100644 index 32d2cc2a3786..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all capacity pools in the NetApp Account - * - * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json - */ -async function poolsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.pools.list(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - poolsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js deleted file mode 100644 index a5a2939e9e31..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the specified capacity pool - * - * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json - */ -async function poolsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const body = {}; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - body, - ); - console.log(result); -} - -async function main() { - poolsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/sample.env b/sdk/netapp/arm-netapp/samples/v20/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js deleted file mode 100644 index 4fb870bb2ad9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a snapshot policy - * - * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json - */ -async function snapshotPoliciesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const body = { - dailySchedule: { hour: 14, minute: 30, snapshotsToKeep: 4 }, - enabled: true, - hourlySchedule: { minute: 50, snapshotsToKeep: 2 }, - location: "eastus", - monthlySchedule: { - daysOfMonth: "10,11,12", - hour: 14, - minute: 15, - snapshotsToKeep: 5, - }, - weeklySchedule: { - day: "Wednesday", - hour: 14, - minute: 45, - snapshotsToKeep: 3, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.create( - resourceGroupName, - accountName, - snapshotPolicyName, - body, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js deleted file mode 100644 index aca1c0fc43a6..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete snapshot policy - * - * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json - */ -async function snapshotPoliciesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const snapshotPolicyName = "snapshotPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.beginDeleteAndWait( - resourceGroupName, - accountName, - snapshotPolicyName, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js deleted file mode 100644 index 2922f8467118..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a snapshot Policy - * - * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json - */ -async function snapshotPoliciesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.get( - resourceGroupName, - accountName, - snapshotPolicyName, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js deleted file mode 100644 index 6ecbceb2855e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List snapshot policy - * - * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json - */ -async function snapshotPoliciesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.snapshotPolicies.list(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - snapshotPoliciesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js deleted file mode 100644 index deb60ce0a89b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get volumes associated with snapshot policy - * - * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json - */ -async function snapshotPoliciesListVolumes() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.listVolumes( - resourceGroupName, - accountName, - snapshotPolicyName, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesListVolumes(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js deleted file mode 100644 index d1439a5f3df1..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a snapshot policy - * - * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json - */ -async function snapshotPoliciesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const body = { - dailySchedule: { hour: 14, minute: 30, snapshotsToKeep: 4 }, - enabled: true, - hourlySchedule: { minute: 50, snapshotsToKeep: 2 }, - location: "eastus", - monthlySchedule: { - daysOfMonth: "10,11,12", - hour: 14, - minute: 15, - snapshotsToKeep: 5, - }, - weeklySchedule: { - day: "Wednesday", - hour: 14, - minute: 45, - snapshotsToKeep: 3, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.beginUpdateAndWait( - resourceGroupName, - accountName, - snapshotPolicyName, - body, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js deleted file mode 100644 index 47d944c52b8d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create the specified snapshot within the given volume - * - * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json - */ -async function snapshotsCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const body = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - body, - ); - console.log(result); -} - -async function main() { - snapshotsCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js deleted file mode 100644 index 6294f65e40fb..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete snapshot - * - * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json - */ -async function snapshotsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - ); - console.log(result); -} - -async function main() { - snapshotsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js deleted file mode 100644 index f98caec5ba51..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details of the specified snapshot - * - * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json - */ -async function snapshotsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.get( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - ); - console.log(result); -} - -async function main() { - snapshotsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js deleted file mode 100644 index 78770a032be2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all snapshots associated with the volume - * - * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json - */ -async function snapshotsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.snapshots.list( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - snapshotsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js deleted file mode 100644 index 169d7ab8f641..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem - * - * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json - */ -async function snapshotsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const body = { - filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - body, - ); - console.log(result); -} - -async function main() { - snapshotsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js deleted file mode 100644 index c54a09206c20..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a snapshot - * - * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json - */ -async function snapshotsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const body = {}; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - body, - ); - console.log(result); -} - -async function main() { - snapshotsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js deleted file mode 100644 index f7ee2b70c08b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * - * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json - */ -async function subvolumesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const body = { path: "/subvolumePath" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - body, - ); - console.log(result); -} - -async function main() { - subvolumesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js deleted file mode 100644 index d8032603ebd8..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete subvolume - * - * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json - */ -async function subvolumesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - ); - console.log(result); -} - -async function main() { - subvolumesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js deleted file mode 100644 index 858a3e95f1e8..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details of the specified subvolume - * - * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json - */ -async function subvolumesMetadata() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginGetMetadataAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - ); - console.log(result); -} - -async function main() { - subvolumesMetadata(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js deleted file mode 100644 index 5d971b8dc798..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns the path associated with the subvolumeName provided - * - * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json - */ -async function subvolumesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.get( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - ); - console.log(result); -} - -async function main() { - subvolumesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js deleted file mode 100644 index 6ea9f4328fd3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns a list of the subvolumes in the volume - * - * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json - */ -async function subvolumesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.subvolumes.listByVolume( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - subvolumesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js deleted file mode 100644 index 234e2bdec241..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a subvolume - * - * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json - */ -async function subvolumesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const body = { path: "/subvolumePath" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - body, - ); - console.log(result); -} - -async function main() { - subvolumesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js deleted file mode 100644 index 3adb55c40a43..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js +++ /dev/null @@ -1,669 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a volume group along with specified volumes - * - * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json - */ -async function volumeGroupsCreateOracle() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const body = { - groupMetaData: { - applicationIdentifier: "OR2", - applicationType: "ORACLE", - groupDescription: "Volume group", - }, - location: "westus", - volumes: [ - { - name: "test-ora-data1", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data1", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data1", - zones: ["1"], - }, - { - name: "test-ora-data2", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data2", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data2", - zones: ["1"], - }, - { - name: "test-ora-data3", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data3", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data3", - zones: ["1"], - }, - { - name: "test-ora-data4", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data4", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data4", - zones: ["1"], - }, - { - name: "test-ora-data5", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data5", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data5", - zones: ["1"], - }, - { - name: "test-ora-data6", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data6", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data6", - zones: ["1"], - }, - { - name: "test-ora-data7", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data7", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data7", - zones: ["1"], - }, - { - name: "test-ora-data8", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data8", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data8", - zones: ["1"], - }, - { - name: "test-ora-log", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-log", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-log", - zones: ["1"], - }, - { - name: "test-ora-log-mirror", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-log-mirror", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-log-mirror", - zones: ["1"], - }, - { - name: "test-ora-binary", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-binary", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-binary", - zones: ["1"], - }, - { - name: "test-ora-backup", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-backup", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-backup", - zones: ["1"], - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginCreateAndWait( - resourceGroupName, - accountName, - volumeGroupName, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a volume group along with specified volumes - * - * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.json - */ -async function volumeGroupsCreateSapHana() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const body = { - groupMetaData: { - applicationIdentifier: "SH9", - applicationType: "SAP-HANA", - groupDescription: "Volume group", - }, - location: "westus", - volumes: [ - { - name: "test-data-mnt00001", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-data-mnt00001", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "data", - }, - { - name: "test-log-mnt00001", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-log-mnt00001", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "log", - }, - { - name: "test-shared", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-shared", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "shared", - }, - { - name: "test-data-backup", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-data-backup", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "data-backup", - }, - { - name: "test-log-backup", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-log-backup", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "log-backup", - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginCreateAndWait( - resourceGroupName, - accountName, - volumeGroupName, - body, - ); - console.log(result); -} - -async function main() { - volumeGroupsCreateOracle(); - volumeGroupsCreateSapHana(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js deleted file mode 100644 index 0b7293904c17..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. - * - * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json - */ -async function volumeGroupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginDeleteAndWait( - resourceGroupName, - accountName, - volumeGroupName, - ); - console.log(result); -} - -async function main() { - volumeGroupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js deleted file mode 100644 index 56a109ae5d10..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details of the specified volume group - * - * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json - */ -async function volumeGroupsGetOracle() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.get(resourceGroupName, accountName, volumeGroupName); - console.log(result); -} - -/** - * This sample demonstrates how to Get details of the specified volume group - * - * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json - */ -async function volumeGroupsGetSapHana() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.get(resourceGroupName, accountName, volumeGroupName); - console.log(result); -} - -async function main() { - volumeGroupsGetOracle(); - volumeGroupsGetSapHana(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js deleted file mode 100644 index 419907f398f9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all volume groups for given account - * - * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json - */ -async function volumeGroupsListOracle() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumeGroups.listByNetAppAccount(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List all volume groups for given account - * - * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json - */ -async function volumeGroupsListSapHana() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumeGroups.listByNetAppAccount(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumeGroupsListOracle(); - volumeGroupsListSapHana(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js deleted file mode 100644 index 086d94ea8814..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create the specified quota rule within the given volume - * - * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json - */ -async function volumeQuotaRulesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const body = { - location: "westus", - quotaSizeInKiBs: 100005, - quotaTarget: "1821", - quotaType: "IndividualUserQuota", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - body, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js deleted file mode 100644 index 69f776285ca3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete quota rule - * - * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json - */ -async function volumeQuotaRulesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js deleted file mode 100644 index 7524e3d3c2e6..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details of the specified quota rule - * - * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json - */ -async function volumeQuotaRulesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.get( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js deleted file mode 100644 index dcbd3baf1019..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all quota rules associated with the volume - * - * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json - */ -async function volumeQuotaRulesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumeQuotaRules.listByVolume( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumeQuotaRulesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js deleted file mode 100644 index a0d46bbf91d0..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a quota rule - * - * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json - */ -async function volumeQuotaRulesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const body = { quotaSizeInKiBs: 100009 }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - body, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js deleted file mode 100644 index 4e687f1135cc..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Authorize the replication connection on the source volume - * - * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json - */ -async function volumesAuthorizeReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - remoteVolumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginAuthorizeReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesAuthorizeReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js deleted file mode 100644 index 5e455f0f76e8..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Break all the file locks on a volume - * - * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json - */ -async function volumesBreakFileLocks() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - clientIp: "101.102.103.104", - confirmRunningDisruptiveOperation: true, - }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginBreakFileLocksAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - ); - console.log(result); -} - -async function main() { - volumesBreakFileLocks(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js deleted file mode 100644 index a28912dda337..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Break the replication connection on the destination volume - * - * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json - */ -async function volumesBreakReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { forceBreakReplication: false }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginBreakReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - ); - console.log(result); -} - -async function main() { - volumesBreakReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js deleted file mode 100644 index 89be59853b90..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update the specified volume within the capacity pool - * - * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json - */ -async function volumesCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - creationToken: "my-unique-file-path", - location: "eastus", - serviceLevel: "Premium", - subnetId: - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - usageThreshold: 107374182400, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js deleted file mode 100644 index d27770c6a6ef..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication - * - * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json - */ -async function volumesDeleteReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginDeleteReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesDeleteReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js deleted file mode 100644 index b03cee655e34..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified volume - * - * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json - */ -async function volumesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js deleted file mode 100644 index 0d6a8cc6575c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. - * - * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json - */ -async function volumesFinalizeRelocation() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginFinalizeRelocationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesFinalizeRelocation(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js deleted file mode 100644 index 00aca6a08a28..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the details of the specified volume - * - * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json - */ -async function volumesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.get(resourceGroupName, accountName, poolName, volumeName); - console.log(result); -} - -async function main() { - volumesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js deleted file mode 100644 index 5a8486115672..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User - * - * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json - */ -async function getGroupIdListForUser() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { username: "user1" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginListGetGroupIdListForLdapUserAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - getGroupIdListForUser(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js deleted file mode 100644 index 4cfc39c0206b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all replications for a specified volume - * - * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json - */ -async function volumesListReplications() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.listReplications( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumesListReplications(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js deleted file mode 100644 index e9f51e07671e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all volumes within the capacity pool - * - * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json - */ -async function volumesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.list(resourceGroupName, accountName, poolName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js deleted file mode 100644 index 3de6653754d0..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Moves volume to another pool - * - * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json - */ -async function volumesAuthorizeReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - newPoolResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginPoolChangeAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesAuthorizeReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js deleted file mode 100644 index 4e703835d807..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to This operation will populate availability zone information for a volume - * - * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json - */ -async function volumesPopulateAvailabilityZones() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginPopulateAvailabilityZoneAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesPopulateAvailabilityZones(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js deleted file mode 100644 index 8306dd7dd2fc..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Re-Initializes the replication connection on the destination volume - * - * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json - */ -async function volumesReInitializeReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginReInitializeReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesReInitializeReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js deleted file mode 100644 index 0599fa16285f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * - * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json - */ -async function volumesReestablishReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - sourceVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginReestablishReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesReestablishReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js deleted file mode 100644 index 57cc4cee6507..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Relocates volume to a new stamp - * - * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json - */ -async function volumesRelocate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = {}; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginRelocateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - ); - console.log(result); -} - -async function main() { - volumesRelocate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js deleted file mode 100644 index a8c4696ca2a6..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the status of the replication - * - * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json - */ -async function volumesReplicationStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.replicationStatus( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesReplicationStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js deleted file mode 100644 index c06aa55070b5..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Reset cifs password from volume - * - * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json - */ -async function volumesResetCifsPassword() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginResetCifsPasswordAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesResetCifsPassword(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js deleted file mode 100644 index 49ae5f35a38c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * - * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json - */ -async function volumesResyncReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginResyncReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesResyncReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js deleted file mode 100644 index 568add203759..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * - * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json - */ -async function volumesRevertRelocation() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginRevertRelocationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesRevertRelocation(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js deleted file mode 100644 index d09afe402a22..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Revert a volume to the snapshot specified in the body - * - * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json - */ -async function volumesRevert() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - snapshotId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginRevertAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesRevert(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js deleted file mode 100644 index ff1b6792e390..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the specified volume - * - * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json - */ -async function volumesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = {}; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/README.md b/sdk/netapp/arm-netapp/samples/v20/typescript/README.md deleted file mode 100644 index a5e196d69396..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/README.md +++ /dev/null @@ -1,213 +0,0 @@ -# client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [accountsCreateOrUpdateSample.ts][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json | -| [accountsDeleteSample.ts][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json | -| [accountsGetSample.ts][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json | -| [accountsListBySubscriptionSample.ts][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | -| [accountsListSample.ts][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | -| [accountsRenewCredentialsSample.ts][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json | -| [accountsUpdateSample.ts][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json | -| [backupPoliciesCreateSample.ts][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json | -| [backupPoliciesDeleteSample.ts][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json | -| [backupPoliciesGetSample.ts][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json | -| [backupPoliciesListSample.ts][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json | -| [backupPoliciesUpdateSample.ts][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json | -| [backupsGetVolumeRestoreStatusSample.ts][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json | -| [netAppResourceCheckFilePathAvailabilitySample.ts][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json | -| [netAppResourceCheckNameAvailabilitySample.ts][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json | -| [netAppResourceCheckQuotaAvailabilitySample.ts][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json | -| [netAppResourceQueryNetworkSiblingSetSample.ts][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json | -| [netAppResourceQueryRegionInfoSample.ts][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json | -| [netAppResourceQuotaLimitsGetSample.ts][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json | -| [netAppResourceQuotaLimitsListSample.ts][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json | -| [netAppResourceUpdateNetworkSiblingSetSample.ts][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json | -| [poolsCreateOrUpdateSample.ts][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json | -| [poolsDeleteSample.ts][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json | -| [poolsGetSample.ts][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json | -| [poolsListSample.ts][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json | -| [poolsUpdateSample.ts][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json | -| [snapshotPoliciesCreateSample.ts][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json | -| [snapshotPoliciesDeleteSample.ts][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json | -| [snapshotPoliciesGetSample.ts][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json | -| [snapshotPoliciesListSample.ts][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json | -| [snapshotPoliciesListVolumesSample.ts][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json | -| [snapshotPoliciesUpdateSample.ts][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json | -| [snapshotsCreateSample.ts][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json | -| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json | -| [snapshotsGetSample.ts][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json | -| [snapshotsListSample.ts][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json | -| [snapshotsRestoreFilesSample.ts][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json | -| [snapshotsUpdateSample.ts][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json | -| [subvolumesCreateSample.ts][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json | -| [subvolumesDeleteSample.ts][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json | -| [subvolumesGetMetadataSample.ts][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json | -| [subvolumesGetSample.ts][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json | -| [subvolumesListByVolumeSample.ts][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json | -| [subvolumesUpdateSample.ts][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json | -| [volumeGroupsCreateSample.ts][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json | -| [volumeGroupsDeleteSample.ts][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json | -| [volumeGroupsGetSample.ts][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json | -| [volumeGroupsListByNetAppAccountSample.ts][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json | -| [volumeQuotaRulesCreateSample.ts][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json | -| [volumeQuotaRulesDeleteSample.ts][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json | -| [volumeQuotaRulesGetSample.ts][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json | -| [volumeQuotaRulesListByVolumeSample.ts][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json | -| [volumeQuotaRulesUpdateSample.ts][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json | -| [volumesAuthorizeReplicationSample.ts][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json | -| [volumesBreakFileLocksSample.ts][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json | -| [volumesBreakReplicationSample.ts][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json | -| [volumesCreateOrUpdateSample.ts][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json | -| [volumesDeleteReplicationSample.ts][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json | -| [volumesDeleteSample.ts][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json | -| [volumesFinalizeRelocationSample.ts][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json | -| [volumesGetSample.ts][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json | -| [volumesListGetGroupIdListForLdapUserSample.ts][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json | -| [volumesListReplicationsSample.ts][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json | -| [volumesListSample.ts][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json | -| [volumesPoolChangeSample.ts][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json | -| [volumesPopulateAvailabilityZoneSample.ts][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json | -| [volumesReInitializeReplicationSample.ts][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json | -| [volumesReestablishReplicationSample.ts][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json | -| [volumesRelocateSample.ts][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json | -| [volumesReplicationStatusSample.ts][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json | -| [volumesResetCifsPasswordSample.ts][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json | -| [volumesResyncReplicationSample.ts][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json | -| [volumesRevertRelocationSample.ts][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json | -| [volumesRevertSample.ts][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json | -| [volumesUpdateSample.ts][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/accountsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node dist/accountsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts -[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts -[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts -[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts -[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts -[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts -[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts -[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts -[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts -[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts -[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts -[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts -[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts -[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts -[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts -[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts -[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts -[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts -[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts -[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts -[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts -[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts -[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts -[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts -[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts -[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts -[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts -[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts -[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts -[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts -[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts -[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts -[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts -[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts -[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts -[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts -[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts -[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts -[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts -[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts -[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts -[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts -[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts -[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts -[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts -[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts -[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts -[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts -[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts -[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts -[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts -[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts -[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts -[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts -[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts -[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts -[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts -[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts -[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts -[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts -[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts -[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts -[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/package.json b/sdk/netapp/arm-netapp/samples/v20/typescript/package.json deleted file mode 100644 index e5e03895d47b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-netapp-ts", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/netapp/arm-netapp" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", - "dependencies": { - "@azure/arm-netapp": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.6.2", - "rimraf": "latest" - } -} diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/sample.env b/sdk/netapp/arm-netapp/samples/v20/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts deleted file mode 100644 index 85c10bc1b59d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppAccount, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update the specified NetApp account within the resource group - * - * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json - */ -async function accountsCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: NetAppAccount = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update the specified NetApp account within the resource group - * - * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json - */ -async function accountsCreateOrUpdateWithActiveDirectory() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: NetAppAccount = { - activeDirectories: [ - { - aesEncryption: true, - dns: "10.10.10.3", - domain: "10.10.10.3", - ldapOverTLS: false, - ldapSigning: false, - organizationalUnit: "OU=Engineering", - password: "ad_password", - site: "SiteName", - smbServerName: "SMBServer", - username: "ad_user_name", - }, - ], - location: "eastus", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -async function main() { - accountsCreateOrUpdate(); - accountsCreateOrUpdateWithActiveDirectory(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts deleted file mode 100644 index 0308e9ad499a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified NetApp account - * - * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json - */ -async function accountsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginDeleteAndWait( - resourceGroupName, - accountName, - ); - console.log(result); -} - -async function main() { - accountsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts deleted file mode 100644 index 38bb8c6756c1..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the NetApp account - * - * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json - */ -async function accountsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.get(resourceGroupName, accountName); - console.log(result); -} - -async function main() { - accountsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts deleted file mode 100644 index 05a45b7d8c31..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List and describe all NetApp accounts in the subscription. - * - * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json - */ -async function accountsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accounts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts deleted file mode 100644 index 852a3d845dd8..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List and describe all NetApp accounts in the resource group. - * - * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json - */ -async function accountsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accounts.list(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts deleted file mode 100644 index 3280153c50ce..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * - * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json - */ -async function accountsRenewCredentials() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginRenewCredentialsAndWait( - resourceGroupName, - accountName, - ); - console.log(result); -} - -async function main() { - accountsRenewCredentials(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts deleted file mode 100644 index 6ad6f365b75d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppAccountPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the specified NetApp account - * - * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json - */ -async function accountsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: NetAppAccountPatch = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginUpdateAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -async function main() { - accountsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts deleted file mode 100644 index 5349b14f7720..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupPolicy, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a backup policy for Netapp Account - * - * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json - */ -async function backupPoliciesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupPolicyName = "backupPolicyName"; - const body: BackupPolicy = { - dailyBackupsToKeep: 10, - enabled: true, - location: "westus", - monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.beginCreateAndWait( - resourceGroupName, - accountName, - backupPolicyName, - body, - ); - console.log(result); -} - -async function main() { - backupPoliciesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts deleted file mode 100644 index b08e68c37a1f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete backup policy - * - * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json - */ -async function backupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupPolicyName = "backupPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.beginDeleteAndWait( - resourceGroupName, - accountName, - backupPolicyName, - ); - console.log(result); -} - -async function main() { - backupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts deleted file mode 100644 index 8f692b9901bd..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a particular backup Policy - * - * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json - */ -async function backupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupPolicyName = "backupPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.get( - resourceGroupName, - accountName, - backupPolicyName, - ); - console.log(result); -} - -async function main() { - backupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts deleted file mode 100644 index 0fe398c65443..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List backup policies for Netapp Account - * - * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json - */ -async function backupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupPolicies.list( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts deleted file mode 100644 index ebce8bb82494..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupPolicyPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a backup policy for Netapp Account - * - * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json - */ -async function backupPoliciesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupPolicyName = "backupPolicyName"; - const body: BackupPolicyPatch = { - dailyBackupsToKeep: 5, - enabled: false, - location: "westus", - monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.beginUpdateAndWait( - resourceGroupName, - accountName, - backupPolicyName, - body, - ); - console.log(result); -} - -async function main() { - backupPoliciesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts deleted file mode 100644 index b65cb60d137c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the status of the restore for a volume - * - * @summary Get the status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json - */ -async function volumesRestoreStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getVolumeRestoreStatus( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesRestoreStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts deleted file mode 100644 index 05b7dc514c9f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Check if a file path is available. - * - * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json - */ -async function checkFilePathAvailability() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const name = "my-exact-filepth"; - const subnetId = - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.checkFilePathAvailability( - location, - name, - subnetId, - ); - console.log(result); -} - -async function main() { - checkFilePathAvailability(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts deleted file mode 100644 index 820942bee7b4..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Check if a resource name is available. - * - * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json - */ -async function checkNameAvailability() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const name = "accName"; - const typeParam = "Microsoft.NetApp/netAppAccounts"; - const resourceGroup = "myRG"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.checkNameAvailability( - location, - name, - typeParam, - resourceGroup, - ); - console.log(result); -} - -async function main() { - checkNameAvailability(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts deleted file mode 100644 index 2a1f7e3c50c1..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Check if a quota is available. - * - * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json - */ -async function checkQuotaAvailability() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const name = "resource1"; - const typeParam = "Microsoft.NetApp/netAppAccounts"; - const resourceGroup = "myRG"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.checkQuotaAvailability( - location, - name, - typeParam, - resourceGroup, - ); - console.log(result); -} - -async function main() { - checkQuotaAvailability(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts deleted file mode 100644 index a936ed78bbc9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details of the specified network sibling set. - * - * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json - */ -async function networkSiblingSetQuery() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; - const subnetId = - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.queryNetworkSiblingSet( - location, - networkSiblingSetId, - subnetId, - ); - console.log(result); -} - -async function main() { - networkSiblingSetQuery(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts deleted file mode 100644 index 1d9c5323cee2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json - */ -async function regionInfoQuery() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.queryRegionInfo(location); - console.log(result); -} - -async function main() { - regionInfoQuery(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts deleted file mode 100644 index 3078387d6b35..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the default and current subscription quota limit - * - * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json - */ -async function quotaLimits() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const quotaLimitName = "totalCoolAccessVolumesPerSubscription"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceQuotaLimits.get( - location, - quotaLimitName, - ); - console.log(result); -} - -async function main() { - quotaLimits(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts deleted file mode 100644 index 2d0326e06565..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the default and current limits for quotas - * - * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json - */ -async function quotaLimits() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.netAppResourceQuotaLimits.list(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - quotaLimits(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts deleted file mode 100644 index d813bd8ef06a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update the network features of the specified network sibling set. - * - * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json - */ -async function networkFeaturesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; - const subnetId = - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; - const networkSiblingSetStateId = "12345_44420.8001578125"; - const networkFeatures = "Standard"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = - await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( - location, - networkSiblingSetId, - subnetId, - networkSiblingSetStateId, - networkFeatures, - ); - console.log(result); -} - -async function main() { - networkFeaturesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts deleted file mode 100644 index 1d41bd056620..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations - * - * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json - */ -async function operationList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - operationList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts deleted file mode 100644 index 2959e4972a83..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CapacityPool, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or Update a capacity pool - * - * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json - */ -async function poolsCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const body: CapacityPool = { - location: "eastus", - qosType: "Auto", - serviceLevel: "Premium", - size: 4398046511104, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - poolName, - body, - ); - console.log(result); -} - -async function main() { - poolsCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts deleted file mode 100644 index 3f3b5543f973..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified capacity pool - * - * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json - */ -async function poolsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - ); - console.log(result); -} - -async function main() { - poolsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts deleted file mode 100644 index ec8b1e723890..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details of the specified capacity pool - * - * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json - */ -async function poolsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.get( - resourceGroupName, - accountName, - poolName, - ); - console.log(result); -} - -async function main() { - poolsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts deleted file mode 100644 index 732e49f0d81f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all capacity pools in the NetApp Account - * - * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json - */ -async function poolsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.pools.list(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - poolsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts deleted file mode 100644 index fad1ab8f816a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CapacityPoolPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the specified capacity pool - * - * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json - */ -async function poolsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const body: CapacityPoolPatch = {}; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - body, - ); - console.log(result); -} - -async function main() { - poolsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts deleted file mode 100644 index 5c03a27f4400..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { SnapshotPolicy, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a snapshot policy - * - * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json - */ -async function snapshotPoliciesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const body: SnapshotPolicy = { - dailySchedule: { hour: 14, minute: 30, snapshotsToKeep: 4 }, - enabled: true, - hourlySchedule: { minute: 50, snapshotsToKeep: 2 }, - location: "eastus", - monthlySchedule: { - daysOfMonth: "10,11,12", - hour: 14, - minute: 15, - snapshotsToKeep: 5, - }, - weeklySchedule: { - day: "Wednesday", - hour: 14, - minute: 45, - snapshotsToKeep: 3, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.create( - resourceGroupName, - accountName, - snapshotPolicyName, - body, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts deleted file mode 100644 index 54342c7e4429..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete snapshot policy - * - * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json - */ -async function snapshotPoliciesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const snapshotPolicyName = "snapshotPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.beginDeleteAndWait( - resourceGroupName, - accountName, - snapshotPolicyName, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts deleted file mode 100644 index 22cee775c848..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a snapshot Policy - * - * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json - */ -async function snapshotPoliciesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.get( - resourceGroupName, - accountName, - snapshotPolicyName, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts deleted file mode 100644 index c5979f7e1943..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List snapshot policy - * - * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json - */ -async function snapshotPoliciesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.snapshotPolicies.list( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - snapshotPoliciesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts deleted file mode 100644 index 9b9cba0c5ca5..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get volumes associated with snapshot policy - * - * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json - */ -async function snapshotPoliciesListVolumes() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.listVolumes( - resourceGroupName, - accountName, - snapshotPolicyName, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesListVolumes(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts deleted file mode 100644 index 13bbe1990711..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { SnapshotPolicyPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a snapshot policy - * - * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json - */ -async function snapshotPoliciesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const body: SnapshotPolicyPatch = { - dailySchedule: { hour: 14, minute: 30, snapshotsToKeep: 4 }, - enabled: true, - hourlySchedule: { minute: 50, snapshotsToKeep: 2 }, - location: "eastus", - monthlySchedule: { - daysOfMonth: "10,11,12", - hour: 14, - minute: 15, - snapshotsToKeep: 5, - }, - weeklySchedule: { - day: "Wednesday", - hour: 14, - minute: 45, - snapshotsToKeep: 3, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.beginUpdateAndWait( - resourceGroupName, - accountName, - snapshotPolicyName, - body, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts deleted file mode 100644 index a31ec846a3f1..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Snapshot, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create the specified snapshot within the given volume - * - * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json - */ -async function snapshotsCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const body: Snapshot = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - body, - ); - console.log(result); -} - -async function main() { - snapshotsCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts deleted file mode 100644 index 6b948039b70e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete snapshot - * - * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json - */ -async function snapshotsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - ); - console.log(result); -} - -async function main() { - snapshotsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts deleted file mode 100644 index a9ccd7cce449..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details of the specified snapshot - * - * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json - */ -async function snapshotsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.get( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - ); - console.log(result); -} - -async function main() { - snapshotsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts deleted file mode 100644 index 523f96cd67fa..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all snapshots associated with the volume - * - * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json - */ -async function snapshotsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.snapshots.list( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - snapshotsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts deleted file mode 100644 index fb03516b70a3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SnapshotRestoreFiles, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem - * - * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json - */ -async function snapshotsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const body: SnapshotRestoreFiles = { - filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - body, - ); - console.log(result); -} - -async function main() { - snapshotsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts deleted file mode 100644 index cda8036eac64..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a snapshot - * - * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json - */ -async function snapshotsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const body: Record = {}; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - body, - ); - console.log(result); -} - -async function main() { - snapshotsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts deleted file mode 100644 index 38e28ef35576..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { SubvolumeInfo, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * - * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json - */ -async function subvolumesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const body: SubvolumeInfo = { path: "/subvolumePath" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - body, - ); - console.log(result); -} - -async function main() { - subvolumesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts deleted file mode 100644 index b05b7aad7892..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete subvolume - * - * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json - */ -async function subvolumesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - ); - console.log(result); -} - -async function main() { - subvolumesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts deleted file mode 100644 index ea888f2ca111..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details of the specified subvolume - * - * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json - */ -async function subvolumesMetadata() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginGetMetadataAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - ); - console.log(result); -} - -async function main() { - subvolumesMetadata(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts deleted file mode 100644 index 5c524fb51a04..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns the path associated with the subvolumeName provided - * - * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json - */ -async function subvolumesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.get( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - ); - console.log(result); -} - -async function main() { - subvolumesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts deleted file mode 100644 index bd5d44c32e37..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns a list of the subvolumes in the volume - * - * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json - */ -async function subvolumesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.subvolumes.listByVolume( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - subvolumesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts deleted file mode 100644 index 9d2bcb771801..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SubvolumePatchRequest, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a subvolume - * - * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json - */ -async function subvolumesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const body: SubvolumePatchRequest = { path: "/subvolumePath" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - body, - ); - console.log(result); -} - -async function main() { - subvolumesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts deleted file mode 100644 index 418ad5aa3844..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts +++ /dev/null @@ -1,673 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { VolumeGroupDetails, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a volume group along with specified volumes - * - * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json - */ -async function volumeGroupsCreateOracle() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const body: VolumeGroupDetails = { - groupMetaData: { - applicationIdentifier: "OR2", - applicationType: "ORACLE", - groupDescription: "Volume group", - }, - location: "westus", - volumes: [ - { - name: "test-ora-data1", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data1", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data1", - zones: ["1"], - }, - { - name: "test-ora-data2", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data2", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data2", - zones: ["1"], - }, - { - name: "test-ora-data3", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data3", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data3", - zones: ["1"], - }, - { - name: "test-ora-data4", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data4", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data4", - zones: ["1"], - }, - { - name: "test-ora-data5", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data5", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data5", - zones: ["1"], - }, - { - name: "test-ora-data6", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data6", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data6", - zones: ["1"], - }, - { - name: "test-ora-data7", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data7", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data7", - zones: ["1"], - }, - { - name: "test-ora-data8", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data8", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data8", - zones: ["1"], - }, - { - name: "test-ora-log", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-log", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-log", - zones: ["1"], - }, - { - name: "test-ora-log-mirror", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-log-mirror", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-log-mirror", - zones: ["1"], - }, - { - name: "test-ora-binary", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-binary", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-binary", - zones: ["1"], - }, - { - name: "test-ora-backup", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-backup", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-backup", - zones: ["1"], - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginCreateAndWait( - resourceGroupName, - accountName, - volumeGroupName, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a volume group along with specified volumes - * - * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.json - */ -async function volumeGroupsCreateSapHana() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const body: VolumeGroupDetails = { - groupMetaData: { - applicationIdentifier: "SH9", - applicationType: "SAP-HANA", - groupDescription: "Volume group", - }, - location: "westus", - volumes: [ - { - name: "test-data-mnt00001", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-data-mnt00001", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "data", - }, - { - name: "test-log-mnt00001", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-log-mnt00001", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "log", - }, - { - name: "test-shared", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-shared", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "shared", - }, - { - name: "test-data-backup", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-data-backup", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "data-backup", - }, - { - name: "test-log-backup", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-log-backup", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "log-backup", - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginCreateAndWait( - resourceGroupName, - accountName, - volumeGroupName, - body, - ); - console.log(result); -} - -async function main() { - volumeGroupsCreateOracle(); - volumeGroupsCreateSapHana(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts deleted file mode 100644 index bfd01348e971..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. - * - * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json - */ -async function volumeGroupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginDeleteAndWait( - resourceGroupName, - accountName, - volumeGroupName, - ); - console.log(result); -} - -async function main() { - volumeGroupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts deleted file mode 100644 index 54fc72bd6985..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details of the specified volume group - * - * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json - */ -async function volumeGroupsGetOracle() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.get( - resourceGroupName, - accountName, - volumeGroupName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Get details of the specified volume group - * - * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json - */ -async function volumeGroupsGetSapHana() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.get( - resourceGroupName, - accountName, - volumeGroupName, - ); - console.log(result); -} - -async function main() { - volumeGroupsGetOracle(); - volumeGroupsGetSapHana(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts deleted file mode 100644 index ae79592660c1..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all volume groups for given account - * - * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json - */ -async function volumeGroupsListOracle() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumeGroups.listByNetAppAccount( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List all volume groups for given account - * - * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json - */ -async function volumeGroupsListSapHana() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumeGroups.listByNetAppAccount( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumeGroupsListOracle(); - volumeGroupsListSapHana(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts deleted file mode 100644 index ebf4971bd014..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { VolumeQuotaRule, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create the specified quota rule within the given volume - * - * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json - */ -async function volumeQuotaRulesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const body: VolumeQuotaRule = { - location: "westus", - quotaSizeInKiBs: 100005, - quotaTarget: "1821", - quotaType: "IndividualUserQuota", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - body, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts deleted file mode 100644 index 8df9f5b6705a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete quota rule - * - * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json - */ -async function volumeQuotaRulesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts deleted file mode 100644 index d51f2cbe651d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details of the specified quota rule - * - * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json - */ -async function volumeQuotaRulesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.get( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts deleted file mode 100644 index 3c0e2c1a473b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all quota rules associated with the volume - * - * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json - */ -async function volumeQuotaRulesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumeQuotaRules.listByVolume( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumeQuotaRulesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts deleted file mode 100644 index 556ec699bf30..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - VolumeQuotaRulePatch, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a quota rule - * - * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json - */ -async function volumeQuotaRulesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const body: VolumeQuotaRulePatch = { quotaSizeInKiBs: 100009 }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - body, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts deleted file mode 100644 index 6278a643d49e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AuthorizeRequest, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Authorize the replication connection on the source volume - * - * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json - */ -async function volumesAuthorizeReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: AuthorizeRequest = { - remoteVolumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginAuthorizeReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesAuthorizeReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts deleted file mode 100644 index a0caa568c761..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BreakFileLocksRequest, - VolumesBreakFileLocksOptionalParams, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Break all the file locks on a volume - * - * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json - */ -async function volumesBreakFileLocks() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: BreakFileLocksRequest = { - clientIp: "101.102.103.104", - confirmRunningDisruptiveOperation: true, - }; - const options: VolumesBreakFileLocksOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginBreakFileLocksAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - ); - console.log(result); -} - -async function main() { - volumesBreakFileLocks(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts deleted file mode 100644 index 64c5fdbfcebf..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BreakReplicationRequest, - VolumesBreakReplicationOptionalParams, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Break the replication connection on the destination volume - * - * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json - */ -async function volumesBreakReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: BreakReplicationRequest = { forceBreakReplication: false }; - const options: VolumesBreakReplicationOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginBreakReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - ); - console.log(result); -} - -async function main() { - volumesBreakReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts deleted file mode 100644 index a9a34de126df..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Volume, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update the specified volume within the capacity pool - * - * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json - */ -async function volumesCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: Volume = { - creationToken: "my-unique-file-path", - location: "eastus", - serviceLevel: "Premium", - subnetId: - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - usageThreshold: 107374182400, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts deleted file mode 100644 index a4d66f403658..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication - * - * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json - */ -async function volumesDeleteReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginDeleteReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesDeleteReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts deleted file mode 100644 index f66ad69f0fc2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified volume - * - * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json - */ -async function volumesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts deleted file mode 100644 index f5a6a2a32128..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. - * - * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json - */ -async function volumesFinalizeRelocation() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginFinalizeRelocationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesFinalizeRelocation(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts deleted file mode 100644 index 148073a4ea21..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the details of the specified volume - * - * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json - */ -async function volumesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.get( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts deleted file mode 100644 index 2c3af3ef5a2a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GetGroupIdListForLdapUserRequest, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User - * - * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json - */ -async function getGroupIdListForUser() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: GetGroupIdListForLdapUserRequest = { username: "user1" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginListGetGroupIdListForLdapUserAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - getGroupIdListForUser(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts deleted file mode 100644 index 8d4ffdb22d84..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all replications for a specified volume - * - * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json - */ -async function volumesListReplications() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.listReplications( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumesListReplications(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts deleted file mode 100644 index 1897922b20bd..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all volumes within the capacity pool - * - * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json - */ -async function volumesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.list( - resourceGroupName, - accountName, - poolName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts deleted file mode 100644 index 27f44c2d5091..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { PoolChangeRequest, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Moves volume to another pool - * - * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json - */ -async function volumesAuthorizeReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: PoolChangeRequest = { - newPoolResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginPoolChangeAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesAuthorizeReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts deleted file mode 100644 index 693dd0710a7d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to This operation will populate availability zone information for a volume - * - * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json - */ -async function volumesPopulateAvailabilityZones() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginPopulateAvailabilityZoneAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesPopulateAvailabilityZones(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts deleted file mode 100644 index 212d4a1b7728..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Re-Initializes the replication connection on the destination volume - * - * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json - */ -async function volumesReInitializeReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginReInitializeReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesReInitializeReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts deleted file mode 100644 index afdd687cbe2c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ReestablishReplicationRequest, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * - * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json - */ -async function volumesReestablishReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: ReestablishReplicationRequest = { - sourceVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginReestablishReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesReestablishReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts deleted file mode 100644 index 8ee2bb638298..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RelocateVolumeRequest, - VolumesRelocateOptionalParams, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Relocates volume to a new stamp - * - * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json - */ -async function volumesRelocate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: RelocateVolumeRequest = {}; - const options: VolumesRelocateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginRelocateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - ); - console.log(result); -} - -async function main() { - volumesRelocate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts deleted file mode 100644 index 841b6e9cb282..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the status of the replication - * - * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json - */ -async function volumesReplicationStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.replicationStatus( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesReplicationStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts deleted file mode 100644 index 12a35039d3f2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Reset cifs password from volume - * - * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json - */ -async function volumesResetCifsPassword() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginResetCifsPasswordAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesResetCifsPassword(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts deleted file mode 100644 index bbefe158f37e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * - * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json - */ -async function volumesResyncReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginResyncReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesResyncReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts deleted file mode 100644 index b88b8b4b77ba..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * - * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json - */ -async function volumesRevertRelocation() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginRevertRelocationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesRevertRelocation(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts deleted file mode 100644 index bf4f444ee1fa..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { VolumeRevert, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Revert a volume to the snapshot specified in the body - * - * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json - */ -async function volumesRevert() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: VolumeRevert = { - snapshotId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginRevertAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesRevert(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts deleted file mode 100644 index 9f6d327bb77a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { VolumePatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the specified volume - * - * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json - */ -async function volumesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: VolumePatch = {}; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/README.md b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/README.md new file mode 100644 index 000000000000..2466b65cf65c --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/README.md @@ -0,0 +1,250 @@ +# client library samples for JavaScript (Beta) + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [accountsChangeKeyVaultSample.js][accountschangekeyvaultsample] | Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_ChangeKeyVault.json | +| [accountsCreateOrUpdateSample.js][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_CreateOrUpdate.json | +| [accountsDeleteSample.js][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Delete.json | +| [accountsGetChangeKeyVaultInformationSample.js][accountsgetchangekeyvaultinformationsample] | Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_GetChangeKeyVaultInformation.json | +| [accountsGetSample.js][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Get.json | +| [accountsListBySubscriptionSample.js][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json | +| [accountsListSample.js][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json | +| [accountsRenewCredentialsSample.js][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_RenewCredentials.json | +| [accountsTransitionToCmkSample.js][accountstransitiontocmksample] | Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_TransitionEncryptionKey.json | +| [accountsUpdateSample.js][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Update.json | +| [backupPoliciesCreateSample.js][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Create.json | +| [backupPoliciesDeleteSample.js][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Delete.json | +| [backupPoliciesGetSample.js][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Get.json | +| [backupPoliciesListSample.js][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_List.json | +| [backupPoliciesUpdateSample.js][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Update.json | +| [backupVaultsCreateOrUpdateSample.js][backupvaultscreateorupdatesample] | Create or update the specified Backup Vault in the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Create.json | +| [backupVaultsDeleteSample.js][backupvaultsdeletesample] | Delete the specified Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Delete.json | +| [backupVaultsGetSample.js][backupvaultsgetsample] | Get the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Get.json | +| [backupVaultsListByNetAppAccountSample.js][backupvaultslistbynetappaccountsample] | List and describe all Backup Vaults in the NetApp account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_List.json | +| [backupVaultsUpdateSample.js][backupvaultsupdatesample] | Patch the specified NetApp Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Update.json | +| [backupsCreateSample.js][backupscreatesample] | Create a backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Create.json | +| [backupsDeleteSample.js][backupsdeletesample] | Delete a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Delete.json | +| [backupsGetLatestStatusSample.js][backupsgetlateststatussample] | Get the latest status of the backup for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_LatestBackupStatus.json | +| [backupsGetSample.js][backupsgetsample] | Get the specified Backup under Backup Vault. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Get.json | +| [backupsGetVolumeLatestRestoreStatusSample.js][backupsgetvolumelatestrestorestatussample] | Get the latest status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_LatestRestoreStatus.json | +| [backupsListByVaultSample.js][backupslistbyvaultsample] | List all backups Under a Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_List.json | +| [backupsUnderAccountMigrateBackupsSample.js][backupsunderaccountmigratebackupssample] | Migrate the backups under a NetApp account to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderAccount_Migrate.json | +| [backupsUnderBackupVaultRestoreFilesSample.js][backupsunderbackupvaultrestorefilessample] | Restore the specified files from the specified backup to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json | +| [backupsUnderVolumeMigrateBackupsSample.js][backupsundervolumemigratebackupssample] | Migrate the backups under volume to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderVolume_Migrate.json | +| [backupsUpdateSample.js][backupsupdatesample] | Patch a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Update.json | +| [netAppResourceCheckFilePathAvailabilitySample.js][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckFilePathAvailability.json | +| [netAppResourceCheckNameAvailabilitySample.js][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckNameAvailability.json | +| [netAppResourceCheckQuotaAvailabilitySample.js][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckQuotaAvailability.json | +| [netAppResourceQueryNetworkSiblingSetSample.js][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/NetworkSiblingSet_Query.json | +| [netAppResourceQueryRegionInfoSample.js][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfo.json | +| [netAppResourceQuotaLimitsGetSample.js][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_Get.json | +| [netAppResourceQuotaLimitsListSample.js][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_List.json | +| [netAppResourceRegionInfosGetSample.js][netappresourceregioninfosgetsample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_Get.json | +| [netAppResourceRegionInfosListSample.js][netappresourceregioninfoslistsample] | Provides region specific information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_List.json | +| [netAppResourceUpdateNetworkSiblingSetSample.js][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/NetworkSiblingSet_Update.json | +| [operationsListSample.js][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/OperationList.json | +| [poolsCreateOrUpdateSample.js][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate.json | +| [poolsDeleteSample.js][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Delete.json | +| [poolsGetSample.js][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get.json | +| [poolsListSample.js][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_List.json | +| [poolsUpdateSample.js][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update.json | +| [snapshotPoliciesCreateSample.js][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Create.json | +| [snapshotPoliciesDeleteSample.js][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Delete.json | +| [snapshotPoliciesGetSample.js][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Get.json | +| [snapshotPoliciesListSample.js][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_List.json | +| [snapshotPoliciesListVolumesSample.js][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_ListVolumes.json | +| [snapshotPoliciesUpdateSample.js][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Update.json | +| [snapshotsCreateSample.js][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Create.json | +| [snapshotsDeleteSample.js][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Delete.json | +| [snapshotsGetSample.js][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Get.json | +| [snapshotsListSample.js][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_List.json | +| [snapshotsRestoreFilesSample.js][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_SingleFileRestore.json | +| [snapshotsUpdateSample.js][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Update.json | +| [subvolumesCreateSample.js][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Create.json | +| [subvolumesDeleteSample.js][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Delete.json | +| [subvolumesGetMetadataSample.js][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Metadata.json | +| [subvolumesGetSample.js][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Get.json | +| [subvolumesListByVolumeSample.js][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_List.json | +| [subvolumesUpdateSample.js][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Update.json | +| [volumeGroupsCreateSample.js][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Create_Oracle.json | +| [volumeGroupsDeleteSample.js][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Delete.json | +| [volumeGroupsGetSample.js][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Get_Oracle.json | +| [volumeGroupsListByNetAppAccountSample.js][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_List_Oracle.json | +| [volumeQuotaRulesCreateSample.js][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Create.json | +| [volumeQuotaRulesDeleteSample.js][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Delete.json | +| [volumeQuotaRulesGetSample.js][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Get.json | +| [volumeQuotaRulesListByVolumeSample.js][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_List.json | +| [volumeQuotaRulesUpdateSample.js][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Update.json | +| [volumesAuthorizeExternalReplicationSample.js][volumesauthorizeexternalreplicationsample] | Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeExternalReplication.json | +| [volumesAuthorizeReplicationSample.js][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeReplication.json | +| [volumesBreakFileLocksSample.js][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakFileLocks.json | +| [volumesBreakReplicationSample.js][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakReplication.json | +| [volumesCreateOrUpdateSample.js][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_CreateOrUpdate.json | +| [volumesDeleteReplicationSample.js][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_DeleteReplication.json | +| [volumesDeleteSample.js][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Delete.json | +| [volumesFinalizeExternalReplicationSample.js][volumesfinalizeexternalreplicationsample] | Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeExternalReplication.json | +| [volumesFinalizeRelocationSample.js][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeRelocation.json | +| [volumesGetSample.js][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Get.json | +| [volumesListGetGroupIdListForLdapUserSample.js][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/GroupIdListForLDAPUser.json | +| [volumesListQuotaReportSample.js][volumeslistquotareportsample] | Returns report of quotas for the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListQuotaReport.json | +| [volumesListReplicationsSample.js][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListReplications.json | +| [volumesListSample.js][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_List.json | +| [volumesPeerExternalClusterSample.js][volumespeerexternalclustersample] | Starts peering the external cluster for this migration volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PeerExternalCluster.json | +| [volumesPerformReplicationTransferSample.js][volumesperformreplicationtransfersample] | Performs an adhoc replication transfer on a volume with volumeType Migration x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PerformReplicationTransfer.json | +| [volumesPoolChangeSample.js][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PoolChange.json | +| [volumesPopulateAvailabilityZoneSample.js][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PopulateAvailabilityZones.json | +| [volumesReInitializeReplicationSample.js][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReInitializeReplication.json | +| [volumesReestablishReplicationSample.js][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReestablishReplication.json | +| [volumesRelocateSample.js][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Relocate.json | +| [volumesReplicationStatusSample.js][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReplicationStatus.json | +| [volumesResetCifsPasswordSample.js][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResetCifsPassword.json | +| [volumesResyncReplicationSample.js][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResyncReplication.json | +| [volumesRevertRelocationSample.js][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_RevertRelocation.json | +| [volumesRevertSample.js][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Revert.json | +| [volumesSplitCloneFromParentSample.js][volumessplitclonefromparentsample] | Split operation to convert clone volume to an independent volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_SplitClone.json | +| [volumesUpdateSample.js][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Update.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node accountsChangeKeyVaultSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node accountsChangeKeyVaultSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[accountschangekeyvaultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsChangeKeyVaultSample.js +[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsCreateOrUpdateSample.js +[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsDeleteSample.js +[accountsgetchangekeyvaultinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsGetChangeKeyVaultInformationSample.js +[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsGetSample.js +[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsListBySubscriptionSample.js +[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsListSample.js +[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsRenewCredentialsSample.js +[accountstransitiontocmksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsTransitionToCmkSample.js +[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsUpdateSample.js +[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesCreateSample.js +[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesDeleteSample.js +[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesGetSample.js +[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesListSample.js +[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesUpdateSample.js +[backupvaultscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsCreateOrUpdateSample.js +[backupvaultsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsDeleteSample.js +[backupvaultsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsGetSample.js +[backupvaultslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsListByNetAppAccountSample.js +[backupvaultsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsUpdateSample.js +[backupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsCreateSample.js +[backupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsDeleteSample.js +[backupsgetlateststatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsGetLatestStatusSample.js +[backupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsGetSample.js +[backupsgetvolumelatestrestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsGetVolumeLatestRestoreStatusSample.js +[backupslistbyvaultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsListByVaultSample.js +[backupsunderaccountmigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUnderAccountMigrateBackupsSample.js +[backupsunderbackupvaultrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js +[backupsundervolumemigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js +[backupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUpdateSample.js +[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js +[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceCheckNameAvailabilitySample.js +[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js +[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js +[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQueryRegionInfoSample.js +[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQuotaLimitsGetSample.js +[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQuotaLimitsListSample.js +[netappresourceregioninfosgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceRegionInfosGetSample.js +[netappresourceregioninfoslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceRegionInfosListSample.js +[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/operationsListSample.js +[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsCreateOrUpdateSample.js +[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsDeleteSample.js +[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsGetSample.js +[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsListSample.js +[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsUpdateSample.js +[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesCreateSample.js +[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesDeleteSample.js +[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesGetSample.js +[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesListSample.js +[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesListVolumesSample.js +[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesUpdateSample.js +[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsCreateSample.js +[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsDeleteSample.js +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsGetSample.js +[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsListSample.js +[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsRestoreFilesSample.js +[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsUpdateSample.js +[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesCreateSample.js +[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesDeleteSample.js +[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesGetMetadataSample.js +[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesGetSample.js +[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesListByVolumeSample.js +[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesUpdateSample.js +[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsCreateSample.js +[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsDeleteSample.js +[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsGetSample.js +[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsListByNetAppAccountSample.js +[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesCreateSample.js +[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesDeleteSample.js +[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesGetSample.js +[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesListByVolumeSample.js +[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesUpdateSample.js +[volumesauthorizeexternalreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesAuthorizeExternalReplicationSample.js +[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesAuthorizeReplicationSample.js +[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesBreakFileLocksSample.js +[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesBreakReplicationSample.js +[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesCreateOrUpdateSample.js +[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesDeleteReplicationSample.js +[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesDeleteSample.js +[volumesfinalizeexternalreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesFinalizeExternalReplicationSample.js +[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesFinalizeRelocationSample.js +[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesGetSample.js +[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js +[volumeslistquotareportsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListQuotaReportSample.js +[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListReplicationsSample.js +[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListSample.js +[volumespeerexternalclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPeerExternalClusterSample.js +[volumesperformreplicationtransfersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPerformReplicationTransferSample.js +[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPoolChangeSample.js +[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPopulateAvailabilityZoneSample.js +[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesReInitializeReplicationSample.js +[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesReestablishReplicationSample.js +[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesRelocateSample.js +[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesReplicationStatusSample.js +[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesResetCifsPasswordSample.js +[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesResyncReplicationSample.js +[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesRevertRelocationSample.js +[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesRevertSample.js +[volumessplitclonefromparentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesSplitCloneFromParentSample.js +[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesUpdateSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp/README.md diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsChangeKeyVaultSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsChangeKeyVaultSample.js new file mode 100644 index 000000000000..22d13c526b9e --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsChangeKeyVaultSample.js @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + * + * @summary Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_ChangeKeyVault.json + */ +async function accountsChangeKeyVault() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const body = { + keyName: "rsakey", + keyVaultPrivateEndpoints: [ + { + privateEndpointId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", + virtualNetworkId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1", + }, + ], + keyVaultResourceId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.KeyVault/managedHSMs/my-hsm", + keyVaultUri: "https://my-key-vault.managedhsm.azure.net", + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginChangeKeyVaultAndWait( + resourceGroupName, + accountName, + options, + ); + console.log(result); +} + +async function main() { + accountsChangeKeyVault(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsCreateOrUpdateSample.js new file mode 100644 index 000000000000..b54b050efdb0 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsCreateOrUpdateSample.js @@ -0,0 +1,80 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update the specified NetApp account within the resource group + * + * @summary Create or update the specified NetApp account within the resource group + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_CreateOrUpdate.json + */ +async function accountsCreateOrUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const body = { location: "eastus" }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginCreateOrUpdateAndWait( + resourceGroupName, + accountName, + body, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create or update the specified NetApp account within the resource group + * + * @summary Create or update the specified NetApp account within the resource group + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_CreateOrUpdateAD.json + */ +async function accountsCreateOrUpdateWithActiveDirectory() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const body = { + activeDirectories: [ + { + aesEncryption: true, + dns: "10.10.10.3", + domain: "10.10.10.3", + ldapOverTLS: false, + ldapSigning: false, + organizationalUnit: "OU=Engineering", + password: "ad_password", + site: "SiteName", + smbServerName: "SMBServer", + username: "ad_user_name", + }, + ], + location: "eastus", + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginCreateOrUpdateAndWait( + resourceGroupName, + accountName, + body, + ); + console.log(result); +} + +async function main() { + accountsCreateOrUpdate(); + accountsCreateOrUpdateWithActiveDirectory(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsDeleteSample.js new file mode 100644 index 000000000000..6c97ecd61715 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsDeleteSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete the specified NetApp account + * + * @summary Delete the specified NetApp account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Delete.json + */ +async function accountsDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginDeleteAndWait(resourceGroupName, accountName); + console.log(result); +} + +async function main() { + accountsDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsGetChangeKeyVaultInformationSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsGetChangeKeyVaultInformationSample.js new file mode 100644 index 000000000000..ba21ed308dd9 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsGetChangeKeyVaultInformationSample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. + * + * @summary Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_GetChangeKeyVaultInformation.json + */ +async function accountsGetChangeKeyVaultInformation() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginGetChangeKeyVaultInformationAndWait( + resourceGroupName, + accountName, + ); + console.log(result); +} + +async function main() { + accountsGetChangeKeyVaultInformation(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsGetSample.js new file mode 100644 index 000000000000..a80df582fe50 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsGetSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the NetApp account + * + * @summary Get the NetApp account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Get.json + */ +async function accountsGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.get(resourceGroupName, accountName); + console.log(result); +} + +async function main() { + accountsGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsListBySubscriptionSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsListBySubscriptionSample.js new file mode 100644 index 000000000000..76c9e988c01e --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsListBySubscriptionSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List and describe all NetApp accounts in the subscription. + * + * @summary List and describe all NetApp accounts in the subscription. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json + */ +async function accountsList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.accounts.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + accountsList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsListSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsListSample.js new file mode 100644 index 000000000000..5744f87c0c97 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsListSample.js @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List and describe all NetApp accounts in the resource group. + * + * @summary List and describe all NetApp accounts in the resource group. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json + */ +async function accountsList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.accounts.list(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + accountsList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsRenewCredentialsSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsRenewCredentialsSample.js new file mode 100644 index 000000000000..df8ff5a9ea56 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsRenewCredentialsSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. + * + * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_RenewCredentials.json + */ +async function accountsRenewCredentials() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginRenewCredentialsAndWait(resourceGroupName, accountName); + console.log(result); +} + +async function main() { + accountsRenewCredentials(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsTransitionToCmkSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsTransitionToCmkSample.js new file mode 100644 index 000000000000..63cc30d04436 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsTransitionToCmkSample.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. + * + * @summary Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_TransitionEncryptionKey.json + */ +async function accountsMigrateEncryptionKey() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const body = { + privateEndpointId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", + virtualNetworkId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1", + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginTransitionToCmkAndWait( + resourceGroupName, + accountName, + options, + ); + console.log(result); +} + +async function main() { + accountsMigrateEncryptionKey(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsUpdateSample.js new file mode 100644 index 000000000000..9a6775e54297 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/accountsUpdateSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patch the specified NetApp account + * + * @summary Patch the specified NetApp account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Update.json + */ +async function accountsUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const body = { tags: { tag1: "Value1" } }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginUpdateAndWait(resourceGroupName, accountName, body); + console.log(result); +} + +async function main() { + accountsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesCreateSample.js new file mode 100644 index 000000000000..54032ba51f32 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesCreateSample.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create a backup policy for Netapp Account + * + * @summary Create a backup policy for Netapp Account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Create.json + */ +async function backupPoliciesCreate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const backupPolicyName = "backupPolicyName"; + const body = { + dailyBackupsToKeep: 10, + enabled: true, + location: "westus", + monthlyBackupsToKeep: 10, + weeklyBackupsToKeep: 10, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.backupPolicies.beginCreateAndWait( + resourceGroupName, + accountName, + backupPolicyName, + body, + ); + console.log(result); +} + +async function main() { + backupPoliciesCreate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesDeleteSample.js new file mode 100644 index 000000000000..24a60778212e --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete backup policy + * + * @summary Delete backup policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Delete.json + */ +async function backupPoliciesDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; + const accountName = "accountName"; + const backupPolicyName = "backupPolicyName"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.backupPolicies.beginDeleteAndWait( + resourceGroupName, + accountName, + backupPolicyName, + ); + console.log(result); +} + +async function main() { + backupPoliciesDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesGetSample.js new file mode 100644 index 000000000000..9c27021ecbf0 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesGetSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get a particular backup Policy + * + * @summary Get a particular backup Policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Get.json + */ +async function backupsGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const backupPolicyName = "backupPolicyName"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.backupPolicies.get(resourceGroupName, accountName, backupPolicyName); + console.log(result); +} + +async function main() { + backupsGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesListSample.js new file mode 100644 index 000000000000..7d7febc83112 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesListSample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List backup policies for Netapp Account + * + * @summary List backup policies for Netapp Account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_List.json + */ +async function backupPoliciesList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.backupPolicies.list(resourceGroupName, accountName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + backupPoliciesList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesUpdateSample.js new file mode 100644 index 000000000000..96d39a851e93 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupPoliciesUpdateSample.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patch a backup policy for Netapp Account + * + * @summary Patch a backup policy for Netapp Account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Update.json + */ +async function backupPoliciesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const backupPolicyName = "backupPolicyName"; + const body = { + dailyBackupsToKeep: 5, + enabled: false, + location: "westus", + monthlyBackupsToKeep: 10, + weeklyBackupsToKeep: 10, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.backupPolicies.beginUpdateAndWait( + resourceGroupName, + accountName, + backupPolicyName, + body, + ); + console.log(result); +} + +async function main() { + backupPoliciesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsCreateOrUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsCreateOrUpdateSample.js index 598d3f65f4f4..bfdeea81eba5 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update the specified Backup Vault in the NetApp account * * @summary Create or update the specified Backup Vault in the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Create.json */ async function backupVaultCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsDeleteSample.js index 4c2ff0afb15a..19bbf48fd116 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified Backup Vault * * @summary Delete the specified Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Delete.json */ async function backupVaultsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsGetSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsGetSample.js index d80abca74998..ead8cf049465 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the Backup Vault * * @summary Get the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Get.json */ async function backupVaultsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsListByNetAppAccountSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsListByNetAppAccountSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsListByNetAppAccountSample.js index 608c11cab9d2..7efc84a69437 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsListByNetAppAccountSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsListByNetAppAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List and describe all Backup Vaults in the NetApp account. * * @summary List and describe all Backup Vaults in the NetApp account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_List.json */ async function backupVaultsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsUpdateSample.js index c439fc54acdb..ec77f87905de 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupVaultsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the specified NetApp Backup Vault * * @summary Patch the specified NetApp Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Update.json */ async function backupVaultsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsCreateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupsCreateSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsCreateSample.js index 63ac40b8444c..342268079302 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a backup under the Backup Vault * * @summary Create a backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Create.json */ async function backupsUnderBackupVaultCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsDeleteSample.js index ea22d27e81dc..b3c23e19e69a 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a Backup under the Backup Vault * * @summary Delete a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Delete.json */ async function backupsUnderBackupVaultDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsGetLatestStatusSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsGetLatestStatusSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupsGetLatestStatusSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsGetLatestStatusSample.js index 573a0e281e4d..43e525bb47de 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsGetLatestStatusSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsGetLatestStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the latest status of the backup for a volume * * @summary Get the latest status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestBackupStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_LatestBackupStatus.json */ async function volumesBackupStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupsGetSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsGetSample.js index 694e99876962..52c4af39a1fb 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the specified Backup under Backup Vault. * * @summary Get the specified Backup under Backup Vault. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Get.json */ async function backupsUnderBackupVaultGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsGetVolumeLatestRestoreStatusSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsGetVolumeLatestRestoreStatusSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupsGetVolumeLatestRestoreStatusSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsGetVolumeLatestRestoreStatusSample.js index 7b9ae78fc8f6..5094dcc8e274 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsGetVolumeLatestRestoreStatusSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsGetVolumeLatestRestoreStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the latest status of the restore for a volume * * @summary Get the latest status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestRestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_LatestRestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsListByVaultSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsListByVaultSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupsListByVaultSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsListByVaultSample.js index 0530df92e6dd..6db825db362b 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsListByVaultSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsListByVaultSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all backups Under a Backup Vault * * @summary List all backups Under a Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_List.json */ async function backupsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsUnderAccountMigrateBackupsSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUnderAccountMigrateBackupsSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupsUnderAccountMigrateBackupsSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUnderAccountMigrateBackupsSample.js index fd3b2fe75480..5949d077156a 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsUnderAccountMigrateBackupsSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUnderAccountMigrateBackupsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate the backups under a NetApp account to backup vault * * @summary Migrate the backups under a NetApp account to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderAccount_Migrate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderAccount_Migrate.json */ async function backupsUnderAccountMigrate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsUnderBackupVaultRestoreFilesSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupsUnderBackupVaultRestoreFilesSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js index f7bcb0f9e848..b90d765028a0 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsUnderBackupVaultRestoreFilesSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Restore the specified files from the specified backup to the active filesystem * * @summary Restore the specified files from the specified backup to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json */ async function backupsSingleFileRestore() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsUnderVolumeMigrateBackupsSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupsUnderVolumeMigrateBackupsSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js index 316790bf1077..ce0d42034d51 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsUnderVolumeMigrateBackupsSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Migrate the backups under volume to backup vault * * @summary Migrate the backups under volume to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderVolume_Migrate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderVolume_Migrate.json */ async function backupsUnderVolumeMigrate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/backupsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUpdateSample.js index 69ab380fed6a..7a35a30c56f3 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/backupsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a Backup under the Backup Vault * * @summary Patch a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Update.json */ async function backupsUnderBackupVaultUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js new file mode 100644 index 000000000000..fdad846eeb88 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Check if a file path is available. + * + * @summary Check if a file path is available. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckFilePathAvailability.json + */ +async function checkFilePathAvailability() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const name = "my-exact-filepth"; + const subnetId = + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"; + const availabilityZone = "undefined"; + const options = { + availabilityZone, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResource.checkFilePathAvailability( + location, + name, + subnetId, + options, + ); + console.log(result); +} + +async function main() { + checkFilePathAvailability(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceCheckNameAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceCheckNameAvailabilitySample.js new file mode 100644 index 000000000000..0e606b95d9bb --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceCheckNameAvailabilitySample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Check if a resource name is available. + * + * @summary Check if a resource name is available. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckNameAvailability.json + */ +async function checkNameAvailability() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const name = "accName"; + const typeParam = "Microsoft.NetApp/netAppAccounts"; + const resourceGroup = "myRG"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResource.checkNameAvailability( + location, + name, + typeParam, + resourceGroup, + ); + console.log(result); +} + +async function main() { + checkNameAvailability(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js new file mode 100644 index 000000000000..9a1682f42224 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Check if a quota is available. + * + * @summary Check if a quota is available. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckQuotaAvailability.json + */ +async function checkQuotaAvailability() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const name = "resource1"; + const typeParam = "Microsoft.NetApp/netAppAccounts"; + const resourceGroup = "myRG"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResource.checkQuotaAvailability( + location, + name, + typeParam, + resourceGroup, + ); + console.log(result); +} + +async function main() { + checkQuotaAvailability(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js new file mode 100644 index 000000000000..ec3e13d47560 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get details of the specified network sibling set. + * + * @summary Get details of the specified network sibling set. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/NetworkSiblingSet_Query.json + */ +async function networkSiblingSetQuery() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; + const subnetId = + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResource.queryNetworkSiblingSet( + location, + networkSiblingSetId, + subnetId, + ); + console.log(result); +} + +async function main() { + networkSiblingSetQuery(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQueryRegionInfoSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQueryRegionInfoSample.js new file mode 100644 index 000000000000..0eeca9a1c25e --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQueryRegionInfoSample.js @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. + * + * @summary Provides storage to network proximity and logical zone mapping information. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfo.json + */ +async function regionInfoQuery() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResource.queryRegionInfo(location); + console.log(result); +} + +async function main() { + regionInfoQuery(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQuotaLimitsGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQuotaLimitsGetSample.js new file mode 100644 index 000000000000..ec2a1f3a4b1d --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQuotaLimitsGetSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the default and current subscription quota limit + * + * @summary Get the default and current subscription quota limit + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_Get.json + */ +async function quotaLimits() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const quotaLimitName = "totalCoolAccessVolumesPerSubscription"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResourceQuotaLimits.get(location, quotaLimitName); + console.log(result); +} + +async function main() { + quotaLimits(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQuotaLimitsListSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQuotaLimitsListSample.js new file mode 100644 index 000000000000..f33b7e5f96f0 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceQuotaLimitsListSample.js @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the default and current limits for quotas + * + * @summary Get the default and current limits for quotas + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_List.json + */ +async function quotaLimits() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.netAppResourceQuotaLimits.list(location)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + quotaLimits(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceRegionInfosGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceRegionInfosGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceRegionInfosGetSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceRegionInfosGetSample.js index de784dbd8868..b888294d9a6e 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceRegionInfosGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceRegionInfosGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_Get.json */ async function regionInfosGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceRegionInfosListSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceRegionInfosListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceRegionInfosListSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceRegionInfosListSample.js index 0ca7155a76ae..dc54b7439b19 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceRegionInfosListSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceRegionInfosListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Provides region specific information. * * @summary Provides region specific information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_List.json */ async function regionInfosList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js new file mode 100644 index 000000000000..3fdec341f463 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Update the network features of the specified network sibling set. + * + * @summary Update the network features of the specified network sibling set. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/NetworkSiblingSet_Update.json + */ +async function networkFeaturesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; + const subnetId = + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; + const networkSiblingSetStateId = "12345_44420.8001578125"; + const networkFeatures = "Standard"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures, + ); + console.log(result); +} + +async function main() { + networkFeaturesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/operationsListSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/operationsListSample.js new file mode 100644 index 000000000000..880cdacd7110 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/operationsListSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations + * + * @summary Lists all of the available Microsoft.NetApp Rest API operations + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/OperationList.json + */ +async function operationList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + operationList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/package.json b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/package.json new file mode 100644 index 000000000000..87c835db2160 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/package.json @@ -0,0 +1,32 @@ +{ + "name": "@azure-samples/arm-netapp-js-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for JavaScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/netapp/arm-netapp" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", + "dependencies": { + "@azure/arm-netapp": "next", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + } +} diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsCreateOrUpdateSample.js new file mode 100644 index 000000000000..ffa21e34e485 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsCreateOrUpdateSample.js @@ -0,0 +1,79 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or Update a capacity pool + * + * @summary Create or Update a capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate.json + */ +async function poolsCreateOrUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const body = { + location: "eastus", + qosType: "Auto", + serviceLevel: "Premium", + size: 4398046511104, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.beginCreateOrUpdateAndWait( + resourceGroupName, + accountName, + poolName, + body, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create or Update a capacity pool + * + * @summary Create or Update a capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate_CustomThroughput.json + */ +async function poolsCreateOrUpdateCustomThroughput() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "customPool1"; + const body = { + customThroughputMibps: 128, + location: "eastus", + qosType: "Manual", + serviceLevel: "Flexible", + size: 4398046511104, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.beginCreateOrUpdateAndWait( + resourceGroupName, + accountName, + poolName, + body, + ); + console.log(result); +} + +async function main() { + poolsCreateOrUpdate(); + poolsCreateOrUpdateCustomThroughput(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsDeleteSample.js new file mode 100644 index 000000000000..58b998cb02b9 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsDeleteSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete the specified capacity pool + * + * @summary Delete the specified capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Delete.json + */ +async function poolsDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.beginDeleteAndWait(resourceGroupName, accountName, poolName); + console.log(result); +} + +async function main() { + poolsDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsGetSample.js new file mode 100644 index 000000000000..215169c3557b --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsGetSample.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get details of the specified capacity pool + * + * @summary Get details of the specified capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get.json + */ +async function poolsGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.get(resourceGroupName, accountName, poolName); + console.log(result); +} + +/** + * This sample demonstrates how to Get details of the specified capacity pool + * + * @summary Get details of the specified capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get_CustomThroughput.json + */ +async function poolsGetCustomThroughput() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "customPool1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.get(resourceGroupName, accountName, poolName); + console.log(result); +} + +async function main() { + poolsGet(); + poolsGetCustomThroughput(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsListSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsListSample.js new file mode 100644 index 000000000000..e24cb465cbe0 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsListSample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all capacity pools in the NetApp Account + * + * @summary List all capacity pools in the NetApp Account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_List.json + */ +async function poolsList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.pools.list(resourceGroupName, accountName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + poolsList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsUpdateSample.js new file mode 100644 index 000000000000..224fd92a7284 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/poolsUpdateSample.js @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patch the specified capacity pool + * + * @summary Patch the specified capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update.json + */ +async function poolsUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const body = {}; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + body, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the specified capacity pool + * + * @summary Patch the specified capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update_CustomThroughput.json + */ +async function poolsUpdateCustomThroughput() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "customPool1"; + const body = {}; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + body, + ); + console.log(result); +} + +async function main() { + poolsUpdate(); + poolsUpdateCustomThroughput(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/sample.env b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesCreateSample.js new file mode 100644 index 000000000000..b921fcef5696 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesCreateSample.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create a snapshot policy + * + * @summary Create a snapshot policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Create.json + */ +async function snapshotPoliciesCreate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const snapshotPolicyName = "snapshotPolicyName"; + const body = { + dailySchedule: { hour: 14, minute: 30, snapshotsToKeep: 4 }, + enabled: true, + hourlySchedule: { minute: 50, snapshotsToKeep: 2 }, + location: "eastus", + monthlySchedule: { + daysOfMonth: "10,11,12", + hour: 14, + minute: 15, + snapshotsToKeep: 5, + }, + weeklySchedule: { + day: "Wednesday", + hour: 14, + minute: 45, + snapshotsToKeep: 3, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshotPolicies.create( + resourceGroupName, + accountName, + snapshotPolicyName, + body, + ); + console.log(result); +} + +async function main() { + snapshotPoliciesCreate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesDeleteSample.js new file mode 100644 index 000000000000..18fb8c12c221 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete snapshot policy + * + * @summary Delete snapshot policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Delete.json + */ +async function snapshotPoliciesDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; + const accountName = "accountName"; + const snapshotPolicyName = "snapshotPolicyName"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshotPolicies.beginDeleteAndWait( + resourceGroupName, + accountName, + snapshotPolicyName, + ); + console.log(result); +} + +async function main() { + snapshotPoliciesDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesGetSample.js new file mode 100644 index 000000000000..03ba8d37cc4e --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesGetSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get a snapshot Policy + * + * @summary Get a snapshot Policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Get.json + */ +async function snapshotPoliciesGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const snapshotPolicyName = "snapshotPolicyName"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshotPolicies.get( + resourceGroupName, + accountName, + snapshotPolicyName, + ); + console.log(result); +} + +async function main() { + snapshotPoliciesGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesListSample.js new file mode 100644 index 000000000000..d4b6df890aaa --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesListSample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List snapshot policy + * + * @summary List snapshot policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_List.json + */ +async function snapshotPoliciesList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.snapshotPolicies.list(resourceGroupName, accountName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + snapshotPoliciesList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesListVolumesSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesListVolumesSample.js new file mode 100644 index 000000000000..65a120be422e --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesListVolumesSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get volumes associated with snapshot policy + * + * @summary Get volumes associated with snapshot policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_ListVolumes.json + */ +async function snapshotPoliciesListVolumes() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const snapshotPolicyName = "snapshotPolicyName"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshotPolicies.listVolumes( + resourceGroupName, + accountName, + snapshotPolicyName, + ); + console.log(result); +} + +async function main() { + snapshotPoliciesListVolumes(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesUpdateSample.js new file mode 100644 index 000000000000..0944fbd6eb62 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotPoliciesUpdateSample.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patch a snapshot policy + * + * @summary Patch a snapshot policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Update.json + */ +async function snapshotPoliciesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const snapshotPolicyName = "snapshotPolicyName"; + const body = { + dailySchedule: { hour: 14, minute: 30, snapshotsToKeep: 4 }, + enabled: true, + hourlySchedule: { minute: 50, snapshotsToKeep: 2 }, + location: "eastus", + monthlySchedule: { + daysOfMonth: "10,11,12", + hour: 14, + minute: 15, + snapshotsToKeep: 5, + }, + weeklySchedule: { + day: "Wednesday", + hour: 14, + minute: 45, + snapshotsToKeep: 3, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshotPolicies.beginUpdateAndWait( + resourceGroupName, + accountName, + snapshotPolicyName, + body, + ); + console.log(result); +} + +async function main() { + snapshotPoliciesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsCreateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsCreateSample.js new file mode 100644 index 000000000000..af1fba36cba1 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsCreateSample.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create the specified snapshot within the given volume + * + * @summary Create the specified snapshot within the given volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Create.json + */ +async function snapshotsCreate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const snapshotName = "snapshot1"; + const body = { location: "eastus" }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshots.beginCreateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + snapshotName, + body, + ); + console.log(result); +} + +async function main() { + snapshotsCreate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsDeleteSample.js new file mode 100644 index 000000000000..86e616713351 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsDeleteSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete snapshot + * + * @summary Delete snapshot + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Delete.json + */ +async function snapshotsDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const snapshotName = "snapshot1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshots.beginDeleteAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + snapshotName, + ); + console.log(result); +} + +async function main() { + snapshotsDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsGetSample.js new file mode 100644 index 000000000000..c27d3cd7f86c --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsGetSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get details of the specified snapshot + * + * @summary Get details of the specified snapshot + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Get.json + */ +async function snapshotsGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const snapshotName = "snapshot1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshots.get( + resourceGroupName, + accountName, + poolName, + volumeName, + snapshotName, + ); + console.log(result); +} + +async function main() { + snapshotsGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsListSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsListSample.js new file mode 100644 index 000000000000..d01953d89e97 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsListSample.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all snapshots associated with the volume + * + * @summary List all snapshots associated with the volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_List.json + */ +async function snapshotsList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.snapshots.list( + resourceGroupName, + accountName, + poolName, + volumeName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + snapshotsList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsRestoreFilesSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsRestoreFilesSample.js new file mode 100644 index 000000000000..c959804a3ae5 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsRestoreFilesSample.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem + * + * @summary Restore the specified files from the specified snapshot to the active filesystem + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_SingleFileRestore.json + */ +async function snapshotsSingleFileRestore() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const snapshotName = "snapshot1"; + const body = { + filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"], + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshots.beginRestoreFilesAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + snapshotName, + body, + ); + console.log(result); +} + +async function main() { + snapshotsSingleFileRestore(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsUpdateSample.js new file mode 100644 index 000000000000..5ab546544b40 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/snapshotsUpdateSample.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patch a snapshot + * + * @summary Patch a snapshot + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Update.json + */ +async function snapshotsUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const snapshotName = "snapshot1"; + const body = {}; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshots.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + snapshotName, + body, + ); + console.log(result); +} + +async function main() { + snapshotsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesCreateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesCreateSample.js new file mode 100644 index 000000000000..dbfa8f54f6a2 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesCreateSample.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath + * + * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Create.json + */ +async function subvolumesCreate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const subvolumeName = "subvolume1"; + const body = { path: "/subvolumePath" }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.subvolumes.beginCreateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + body, + ); + console.log(result); +} + +async function main() { + subvolumesCreate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesDeleteSample.js new file mode 100644 index 000000000000..c2577d0462e0 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesDeleteSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete subvolume + * + * @summary Delete subvolume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Delete.json + */ +async function subvolumesDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const subvolumeName = "subvolume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.subvolumes.beginDeleteAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + ); + console.log(result); +} + +async function main() { + subvolumesDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesGetMetadataSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesGetMetadataSample.js new file mode 100644 index 000000000000..ff1546d45b31 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesGetMetadataSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get details of the specified subvolume + * + * @summary Get details of the specified subvolume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Metadata.json + */ +async function subvolumesMetadata() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const subvolumeName = "subvolume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.subvolumes.beginGetMetadataAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + ); + console.log(result); +} + +async function main() { + subvolumesMetadata(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesGetSample.js new file mode 100644 index 000000000000..72d6306e7df7 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesGetSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Returns the path associated with the subvolumeName provided + * + * @summary Returns the path associated with the subvolumeName provided + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Get.json + */ +async function subvolumesGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const subvolumeName = "subvolume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.subvolumes.get( + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + ); + console.log(result); +} + +async function main() { + subvolumesGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesListByVolumeSample.js new file mode 100644 index 000000000000..36dcf6f802f1 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesListByVolumeSample.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Returns a list of the subvolumes in the volume + * + * @summary Returns a list of the subvolumes in the volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_List.json + */ +async function subvolumesList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.subvolumes.listByVolume( + resourceGroupName, + accountName, + poolName, + volumeName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + subvolumesList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesUpdateSample.js new file mode 100644 index 000000000000..795c92ec8d96 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/subvolumesUpdateSample.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patch a subvolume + * + * @summary Patch a subvolume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Update.json + */ +async function subvolumesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const subvolumeName = "subvolume1"; + const body = { path: "/subvolumePath" }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.subvolumes.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + body, + ); + console.log(result); +} + +async function main() { + subvolumesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsCreateSample.js new file mode 100644 index 000000000000..3f01ceb13d85 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsCreateSample.js @@ -0,0 +1,669 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create a volume group along with specified volumes + * + * @summary Create a volume group along with specified volumes + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Create_Oracle.json + */ +async function volumeGroupsCreateOracle() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const body = { + groupMetaData: { + applicationIdentifier: "OR2", + applicationType: "ORACLE", + groupDescription: "Volume group", + }, + location: "westus", + volumes: [ + { + name: "test-ora-data1", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data1", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data1", + zones: ["1"], + }, + { + name: "test-ora-data2", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data2", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data2", + zones: ["1"], + }, + { + name: "test-ora-data3", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data3", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data3", + zones: ["1"], + }, + { + name: "test-ora-data4", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data4", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data4", + zones: ["1"], + }, + { + name: "test-ora-data5", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data5", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data5", + zones: ["1"], + }, + { + name: "test-ora-data6", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data6", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data6", + zones: ["1"], + }, + { + name: "test-ora-data7", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data7", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data7", + zones: ["1"], + }, + { + name: "test-ora-data8", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data8", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data8", + zones: ["1"], + }, + { + name: "test-ora-log", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-log", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-log", + zones: ["1"], + }, + { + name: "test-ora-log-mirror", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-log-mirror", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-log-mirror", + zones: ["1"], + }, + { + name: "test-ora-binary", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-binary", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-binary", + zones: ["1"], + }, + { + name: "test-ora-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-backup", + zones: ["1"], + }, + ], + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.beginCreateAndWait( + resourceGroupName, + accountName, + volumeGroupName, + body, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create a volume group along with specified volumes + * + * @summary Create a volume group along with specified volumes + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Create_SapHana.json + */ +async function volumeGroupsCreateSapHana() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const body = { + groupMetaData: { + applicationIdentifier: "SH9", + applicationType: "SAP-HANA", + groupDescription: "Volume group", + }, + location: "westus", + volumes: [ + { + name: "test-data-mnt00001", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-data-mnt00001", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "data", + }, + { + name: "test-log-mnt00001", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-log-mnt00001", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "log", + }, + { + name: "test-shared", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-shared", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "shared", + }, + { + name: "test-data-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-data-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "data-backup", + }, + { + name: "test-log-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-log-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "log-backup", + }, + ], + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.beginCreateAndWait( + resourceGroupName, + accountName, + volumeGroupName, + body, + ); + console.log(result); +} + +async function main() { + volumeGroupsCreateOracle(); + volumeGroupsCreateSapHana(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsDeleteSample.js new file mode 100644 index 000000000000..e9e819b4bb4f --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. + * + * @summary Delete the specified volume group only if there are no volumes under volume group. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Delete.json + */ +async function volumeGroupsDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.beginDeleteAndWait( + resourceGroupName, + accountName, + volumeGroupName, + ); + console.log(result); +} + +async function main() { + volumeGroupsDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsGetSample.js new file mode 100644 index 000000000000..c849699cf5ac --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsGetSample.js @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get details of the specified volume group + * + * @summary Get details of the specified volume group + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Get_Oracle.json + */ +async function volumeGroupsGetOracle() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.get(resourceGroupName, accountName, volumeGroupName); + console.log(result); +} + +/** + * This sample demonstrates how to Get details of the specified volume group + * + * @summary Get details of the specified volume group + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Get_SapHana.json + */ +async function volumeGroupsGetSapHana() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.get(resourceGroupName, accountName, volumeGroupName); + console.log(result); +} + +async function main() { + volumeGroupsGetOracle(); + volumeGroupsGetSapHana(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsListByNetAppAccountSample.js new file mode 100644 index 000000000000..82ec50f734e0 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeGroupsListByNetAppAccountSample.js @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all volume groups for given account + * + * @summary List all volume groups for given account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_List_Oracle.json + */ +async function volumeGroupsListOracle() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.volumeGroups.listByNetAppAccount(resourceGroupName, accountName)) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List all volume groups for given account + * + * @summary List all volume groups for given account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_List_SapHana.json + */ +async function volumeGroupsListSapHana() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.volumeGroups.listByNetAppAccount(resourceGroupName, accountName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + volumeGroupsListOracle(); + volumeGroupsListSapHana(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesCreateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesCreateSample.js new file mode 100644 index 000000000000..6ec3f3de146c --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesCreateSample.js @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create the specified quota rule within the given volume + * + * @summary Create the specified quota rule within the given volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Create.json + */ +async function volumeQuotaRulesCreate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account-9957"; + const poolName = "pool-5210"; + const volumeName = "volume-6387"; + const volumeQuotaRuleName = "rule-0004"; + const body = { + location: "westus", + quotaSizeInKiBs: 100005, + quotaTarget: "1821", + quotaType: "IndividualUserQuota", + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeQuotaRules.beginCreateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + volumeQuotaRuleName, + body, + ); + console.log(result); +} + +async function main() { + volumeQuotaRulesCreate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesDeleteSample.js new file mode 100644 index 000000000000..971cbe6d042d --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesDeleteSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete quota rule + * + * @summary Delete quota rule + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Delete.json + */ +async function volumeQuotaRulesDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account-9957"; + const poolName = "pool-5210"; + const volumeName = "volume-6387"; + const volumeQuotaRuleName = "rule-0004"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeQuotaRules.beginDeleteAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + volumeQuotaRuleName, + ); + console.log(result); +} + +async function main() { + volumeQuotaRulesDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesGetSample.js new file mode 100644 index 000000000000..19b174acdc1c --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesGetSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get details of the specified quota rule + * + * @summary Get details of the specified quota rule + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Get.json + */ +async function volumeQuotaRulesGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account-9957"; + const poolName = "pool-5210"; + const volumeName = "volume-6387"; + const volumeQuotaRuleName = "rule-0004"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeQuotaRules.get( + resourceGroupName, + accountName, + poolName, + volumeName, + volumeQuotaRuleName, + ); + console.log(result); +} + +async function main() { + volumeQuotaRulesGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesListByVolumeSample.js new file mode 100644 index 000000000000..79d3451e168d --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesListByVolumeSample.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all quota rules associated with the volume + * + * @summary List all quota rules associated with the volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_List.json + */ +async function volumeQuotaRulesList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account-9957"; + const poolName = "pool-5210"; + const volumeName = "volume-6387"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.volumeQuotaRules.listByVolume( + resourceGroupName, + accountName, + poolName, + volumeName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + volumeQuotaRulesList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesUpdateSample.js new file mode 100644 index 000000000000..f758025369df --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumeQuotaRulesUpdateSample.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patch a quota rule + * + * @summary Patch a quota rule + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Update.json + */ +async function volumeQuotaRulesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account-9957"; + const poolName = "pool-5210"; + const volumeName = "volume-6387"; + const volumeQuotaRuleName = "rule-0004"; + const body = { quotaSizeInKiBs: 100009 }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeQuotaRules.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + volumeQuotaRuleName, + body, + ); + console.log(result); +} + +async function main() { + volumeQuotaRulesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesAuthorizeExternalReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesAuthorizeExternalReplicationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/volumesAuthorizeExternalReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesAuthorizeExternalReplicationSample.js index 503726e69540..527f1e9ce81c 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesAuthorizeExternalReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesAuthorizeExternalReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created * * @summary Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeExternalReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeExternalReplication.json */ async function volumesAuthorizeExternalReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesAuthorizeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesAuthorizeReplicationSample.js new file mode 100644 index 000000000000..84238e312949 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesAuthorizeReplicationSample.js @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Authorize the replication connection on the source volume + * + * @summary Authorize the replication connection on the source volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeReplication.json + */ +async function volumesAuthorizeReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body = { + remoteVolumeResourceId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1", + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginAuthorizeReplicationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + volumesAuthorizeReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesBreakFileLocksSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesBreakFileLocksSample.js new file mode 100644 index 000000000000..908defb28250 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesBreakFileLocksSample.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Break all the file locks on a volume + * + * @summary Break all the file locks on a volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakFileLocks.json + */ +async function volumesBreakFileLocks() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body = { + clientIp: "101.102.103.104", + confirmRunningDisruptiveOperation: true, + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginBreakFileLocksAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + options, + ); + console.log(result); +} + +async function main() { + volumesBreakFileLocks(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesBreakReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesBreakReplicationSample.js new file mode 100644 index 000000000000..db7e975a4ad1 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesBreakReplicationSample.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Break the replication connection on the destination volume + * + * @summary Break the replication connection on the destination volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakReplication.json + */ +async function volumesBreakReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body = { forceBreakReplication: false }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginBreakReplicationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + options, + ); + console.log(result); +} + +async function main() { + volumesBreakReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesCreateOrUpdateSample.js new file mode 100644 index 000000000000..ffdbc0d28790 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesCreateOrUpdateSample.js @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update the specified volume within the capacity pool + * + * @summary Create or update the specified volume within the capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_CreateOrUpdate.json + */ +async function volumesCreateOrUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body = { + creationToken: "my-unique-file-path", + location: "eastus", + serviceLevel: "Premium", + subnetId: + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + usageThreshold: 107374182400, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginCreateOrUpdateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + volumesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesDeleteReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesDeleteReplicationSample.js new file mode 100644 index 000000000000..a9a251a03341 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesDeleteReplicationSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication + * + * @summary Delete the replication connection on the destination volume, and send release to the source replication + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_DeleteReplication.json + */ +async function volumesDeleteReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginDeleteReplicationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesDeleteReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesDeleteSample.js new file mode 100644 index 000000000000..450797182339 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesDeleteSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete the specified volume + * + * @summary Delete the specified volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Delete.json + */ +async function volumesDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginDeleteAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesFinalizeExternalReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesFinalizeExternalReplicationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/volumesFinalizeExternalReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesFinalizeExternalReplicationSample.js index aaf239086f11..008b0d9c69aa 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesFinalizeExternalReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesFinalizeExternalReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. * * @summary Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeExternalReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeExternalReplication.json */ async function volumesFinalizeExternalReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesFinalizeRelocationSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesFinalizeRelocationSample.js new file mode 100644 index 000000000000..a60ae161002d --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesFinalizeRelocationSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. + * + * @summary Finalizes the relocation of the volume and cleans up the old volume. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeRelocation.json + */ +async function volumesFinalizeRelocation() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginFinalizeRelocationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesFinalizeRelocation(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesGetSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesGetSample.js new file mode 100644 index 000000000000..8f62911d3f34 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesGetSample.js @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the details of the specified volume + * + * @summary Get the details of the specified volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Get.json + */ +async function volumesGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.get(resourceGroupName, accountName, poolName, volumeName); + console.log(result); +} + +async function main() { + volumesGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js new file mode 100644 index 000000000000..12c30e91f33c --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User + * + * @summary Returns the list of group Ids for a specific LDAP User + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/GroupIdListForLDAPUser.json + */ +async function getGroupIdListForUser() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body = { username: "user1" }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginListGetGroupIdListForLdapUserAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + getGroupIdListForUser(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListQuotaReportSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListQuotaReportSample.js new file mode 100644 index 000000000000..d30a8348f687 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListQuotaReportSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Returns report of quotas for the volume + * + * @summary Returns report of quotas for the volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListQuotaReport.json + */ +async function listQuotaReport() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginListQuotaReportAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + listQuotaReport(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListReplicationsSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListReplicationsSample.js new file mode 100644 index 000000000000..8b49beec778b --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListReplicationsSample.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all replications for a specified volume + * + * @summary List all replications for a specified volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListReplications.json + */ +async function volumesListReplications() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.volumes.listReplications( + resourceGroupName, + accountName, + poolName, + volumeName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + volumesListReplications(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListSample.js new file mode 100644 index 000000000000..7b2cd65e672a --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesListSample.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all volumes within the capacity pool + * + * @summary List all volumes within the capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_List.json + */ +async function volumesList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.volumes.list(resourceGroupName, accountName, poolName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + volumesList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPeerExternalClusterSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPeerExternalClusterSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/volumesPeerExternalClusterSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPeerExternalClusterSample.js index a6c4324ef08e..baee623c604a 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPeerExternalClusterSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPeerExternalClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Starts peering the external cluster for this migration volume * * @summary Starts peering the external cluster for this migration volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PeerExternalCluster.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PeerExternalCluster.json */ async function volumesPeerExternalCluster() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPerformReplicationTransferSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPerformReplicationTransferSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/javascript/volumesPerformReplicationTransferSample.js rename to sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPerformReplicationTransferSample.js index f4a7210f9264..d241069ae3d1 100644 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPerformReplicationTransferSample.js +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPerformReplicationTransferSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Performs an adhoc replication transfer on a volume with volumeType Migration * * @summary Performs an adhoc replication transfer on a volume with volumeType Migration - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PerformReplicationTransfer.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PerformReplicationTransfer.json */ async function volumesPerformReplicationTransfer() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPoolChangeSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPoolChangeSample.js new file mode 100644 index 000000000000..071b8c62f5d9 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPoolChangeSample.js @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Moves volume to another pool + * + * @summary Moves volume to another pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PoolChange.json + */ +async function volumesAuthorizeReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body = { + newPoolResourceId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginPoolChangeAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + volumesAuthorizeReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPopulateAvailabilityZoneSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPopulateAvailabilityZoneSample.js new file mode 100644 index 000000000000..7d69efffed6a --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesPopulateAvailabilityZoneSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to This operation will populate availability zone information for a volume + * + * @summary This operation will populate availability zone information for a volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PopulateAvailabilityZones.json + */ +async function volumesPopulateAvailabilityZones() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginPopulateAvailabilityZoneAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesPopulateAvailabilityZones(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesReInitializeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesReInitializeReplicationSample.js new file mode 100644 index 000000000000..56a6c22ad947 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesReInitializeReplicationSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Re-Initializes the replication connection on the destination volume + * + * @summary Re-Initializes the replication connection on the destination volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReInitializeReplication.json + */ +async function volumesReInitializeReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginReInitializeReplicationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesReInitializeReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesReestablishReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesReestablishReplicationSample.js new file mode 100644 index 000000000000..dc59ceb27614 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesReestablishReplicationSample.js @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots + * + * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReestablishReplication.json + */ +async function volumesReestablishReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body = { + sourceVolumeId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1", + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginReestablishReplicationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + volumesReestablishReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesRelocateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesRelocateSample.js new file mode 100644 index 000000000000..5bb9e7cccd81 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesRelocateSample.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Relocates volume to a new stamp + * + * @summary Relocates volume to a new stamp + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Relocate.json + */ +async function volumesRelocate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body = {}; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginRelocateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + options, + ); + console.log(result); +} + +async function main() { + volumesRelocate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesReplicationStatusSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesReplicationStatusSample.js new file mode 100644 index 000000000000..d4acecdb8358 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesReplicationStatusSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the status of the replication + * + * @summary Get the status of the replication + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReplicationStatus.json + */ +async function volumesReplicationStatus() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.replicationStatus( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesReplicationStatus(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesResetCifsPasswordSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesResetCifsPasswordSample.js new file mode 100644 index 000000000000..1d4a98fe469f --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesResetCifsPasswordSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Reset cifs password from volume + * + * @summary Reset cifs password from volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResetCifsPassword.json + */ +async function volumesResetCifsPassword() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginResetCifsPasswordAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesResetCifsPassword(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesResyncReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesResyncReplicationSample.js new file mode 100644 index 000000000000..effdb90db75f --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesResyncReplicationSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. + * + * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResyncReplication.json + */ +async function volumesResyncReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginResyncReplicationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesResyncReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesRevertRelocationSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesRevertRelocationSample.js new file mode 100644 index 000000000000..7d40e27b8607 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesRevertRelocationSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. + * + * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_RevertRelocation.json + */ +async function volumesRevertRelocation() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginRevertRelocationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesRevertRelocation(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesRevertSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesRevertSample.js new file mode 100644 index 000000000000..239e3319e34d --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesRevertSample.js @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Revert a volume to the snapshot specified in the body + * + * @summary Revert a volume to the snapshot specified in the body + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Revert.json + */ +async function volumesRevert() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body = { + snapshotId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginRevertAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + volumesRevert(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesSplitCloneFromParentSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesSplitCloneFromParentSample.js new file mode 100644 index 000000000000..61e73bce3b62 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesSplitCloneFromParentSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Split operation to convert clone volume to an independent volume. + * + * @summary Split operation to convert clone volume to an independent volume. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_SplitClone.json + */ +async function volumesSplitClone() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginSplitCloneFromParentAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesSplitClone(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesUpdateSample.js new file mode 100644 index 000000000000..0fa2e6b7c370 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/javascript/volumesUpdateSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetAppManagementClient } = require("@azure/arm-netapp"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patch the specified volume + * + * @summary Patch the specified volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Update.json + */ +async function volumesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body = {}; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + volumesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/README.md b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/README.md new file mode 100644 index 000000000000..066e16d91b81 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/README.md @@ -0,0 +1,263 @@ +# client library samples for TypeScript (Beta) + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [accountsChangeKeyVaultSample.ts][accountschangekeyvaultsample] | Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_ChangeKeyVault.json | +| [accountsCreateOrUpdateSample.ts][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_CreateOrUpdate.json | +| [accountsDeleteSample.ts][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Delete.json | +| [accountsGetChangeKeyVaultInformationSample.ts][accountsgetchangekeyvaultinformationsample] | Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_GetChangeKeyVaultInformation.json | +| [accountsGetSample.ts][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Get.json | +| [accountsListBySubscriptionSample.ts][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json | +| [accountsListSample.ts][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json | +| [accountsRenewCredentialsSample.ts][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_RenewCredentials.json | +| [accountsTransitionToCmkSample.ts][accountstransitiontocmksample] | Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_TransitionEncryptionKey.json | +| [accountsUpdateSample.ts][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Update.json | +| [backupPoliciesCreateSample.ts][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Create.json | +| [backupPoliciesDeleteSample.ts][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Delete.json | +| [backupPoliciesGetSample.ts][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Get.json | +| [backupPoliciesListSample.ts][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_List.json | +| [backupPoliciesUpdateSample.ts][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Update.json | +| [backupVaultsCreateOrUpdateSample.ts][backupvaultscreateorupdatesample] | Create or update the specified Backup Vault in the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Create.json | +| [backupVaultsDeleteSample.ts][backupvaultsdeletesample] | Delete the specified Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Delete.json | +| [backupVaultsGetSample.ts][backupvaultsgetsample] | Get the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Get.json | +| [backupVaultsListByNetAppAccountSample.ts][backupvaultslistbynetappaccountsample] | List and describe all Backup Vaults in the NetApp account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_List.json | +| [backupVaultsUpdateSample.ts][backupvaultsupdatesample] | Patch the specified NetApp Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Update.json | +| [backupsCreateSample.ts][backupscreatesample] | Create a backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Create.json | +| [backupsDeleteSample.ts][backupsdeletesample] | Delete a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Delete.json | +| [backupsGetLatestStatusSample.ts][backupsgetlateststatussample] | Get the latest status of the backup for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_LatestBackupStatus.json | +| [backupsGetSample.ts][backupsgetsample] | Get the specified Backup under Backup Vault. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Get.json | +| [backupsGetVolumeLatestRestoreStatusSample.ts][backupsgetvolumelatestrestorestatussample] | Get the latest status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_LatestRestoreStatus.json | +| [backupsListByVaultSample.ts][backupslistbyvaultsample] | List all backups Under a Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_List.json | +| [backupsUnderAccountMigrateBackupsSample.ts][backupsunderaccountmigratebackupssample] | Migrate the backups under a NetApp account to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderAccount_Migrate.json | +| [backupsUnderBackupVaultRestoreFilesSample.ts][backupsunderbackupvaultrestorefilessample] | Restore the specified files from the specified backup to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json | +| [backupsUnderVolumeMigrateBackupsSample.ts][backupsundervolumemigratebackupssample] | Migrate the backups under volume to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderVolume_Migrate.json | +| [backupsUpdateSample.ts][backupsupdatesample] | Patch a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Update.json | +| [netAppResourceCheckFilePathAvailabilitySample.ts][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckFilePathAvailability.json | +| [netAppResourceCheckNameAvailabilitySample.ts][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckNameAvailability.json | +| [netAppResourceCheckQuotaAvailabilitySample.ts][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckQuotaAvailability.json | +| [netAppResourceQueryNetworkSiblingSetSample.ts][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/NetworkSiblingSet_Query.json | +| [netAppResourceQueryRegionInfoSample.ts][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfo.json | +| [netAppResourceQuotaLimitsGetSample.ts][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_Get.json | +| [netAppResourceQuotaLimitsListSample.ts][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_List.json | +| [netAppResourceRegionInfosGetSample.ts][netappresourceregioninfosgetsample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_Get.json | +| [netAppResourceRegionInfosListSample.ts][netappresourceregioninfoslistsample] | Provides region specific information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_List.json | +| [netAppResourceUpdateNetworkSiblingSetSample.ts][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/NetworkSiblingSet_Update.json | +| [operationsListSample.ts][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/OperationList.json | +| [poolsCreateOrUpdateSample.ts][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate.json | +| [poolsDeleteSample.ts][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Delete.json | +| [poolsGetSample.ts][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get.json | +| [poolsListSample.ts][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_List.json | +| [poolsUpdateSample.ts][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update.json | +| [snapshotPoliciesCreateSample.ts][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Create.json | +| [snapshotPoliciesDeleteSample.ts][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Delete.json | +| [snapshotPoliciesGetSample.ts][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Get.json | +| [snapshotPoliciesListSample.ts][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_List.json | +| [snapshotPoliciesListVolumesSample.ts][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_ListVolumes.json | +| [snapshotPoliciesUpdateSample.ts][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Update.json | +| [snapshotsCreateSample.ts][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Create.json | +| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Delete.json | +| [snapshotsGetSample.ts][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Get.json | +| [snapshotsListSample.ts][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_List.json | +| [snapshotsRestoreFilesSample.ts][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_SingleFileRestore.json | +| [snapshotsUpdateSample.ts][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Update.json | +| [subvolumesCreateSample.ts][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Create.json | +| [subvolumesDeleteSample.ts][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Delete.json | +| [subvolumesGetMetadataSample.ts][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Metadata.json | +| [subvolumesGetSample.ts][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Get.json | +| [subvolumesListByVolumeSample.ts][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_List.json | +| [subvolumesUpdateSample.ts][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Update.json | +| [volumeGroupsCreateSample.ts][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Create_Oracle.json | +| [volumeGroupsDeleteSample.ts][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Delete.json | +| [volumeGroupsGetSample.ts][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Get_Oracle.json | +| [volumeGroupsListByNetAppAccountSample.ts][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_List_Oracle.json | +| [volumeQuotaRulesCreateSample.ts][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Create.json | +| [volumeQuotaRulesDeleteSample.ts][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Delete.json | +| [volumeQuotaRulesGetSample.ts][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Get.json | +| [volumeQuotaRulesListByVolumeSample.ts][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_List.json | +| [volumeQuotaRulesUpdateSample.ts][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Update.json | +| [volumesAuthorizeExternalReplicationSample.ts][volumesauthorizeexternalreplicationsample] | Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeExternalReplication.json | +| [volumesAuthorizeReplicationSample.ts][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeReplication.json | +| [volumesBreakFileLocksSample.ts][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakFileLocks.json | +| [volumesBreakReplicationSample.ts][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakReplication.json | +| [volumesCreateOrUpdateSample.ts][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_CreateOrUpdate.json | +| [volumesDeleteReplicationSample.ts][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_DeleteReplication.json | +| [volumesDeleteSample.ts][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Delete.json | +| [volumesFinalizeExternalReplicationSample.ts][volumesfinalizeexternalreplicationsample] | Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeExternalReplication.json | +| [volumesFinalizeRelocationSample.ts][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeRelocation.json | +| [volumesGetSample.ts][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Get.json | +| [volumesListGetGroupIdListForLdapUserSample.ts][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/GroupIdListForLDAPUser.json | +| [volumesListQuotaReportSample.ts][volumeslistquotareportsample] | Returns report of quotas for the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListQuotaReport.json | +| [volumesListReplicationsSample.ts][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListReplications.json | +| [volumesListSample.ts][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_List.json | +| [volumesPeerExternalClusterSample.ts][volumespeerexternalclustersample] | Starts peering the external cluster for this migration volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PeerExternalCluster.json | +| [volumesPerformReplicationTransferSample.ts][volumesperformreplicationtransfersample] | Performs an adhoc replication transfer on a volume with volumeType Migration x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PerformReplicationTransfer.json | +| [volumesPoolChangeSample.ts][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PoolChange.json | +| [volumesPopulateAvailabilityZoneSample.ts][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PopulateAvailabilityZones.json | +| [volumesReInitializeReplicationSample.ts][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReInitializeReplication.json | +| [volumesReestablishReplicationSample.ts][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReestablishReplication.json | +| [volumesRelocateSample.ts][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Relocate.json | +| [volumesReplicationStatusSample.ts][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReplicationStatus.json | +| [volumesResetCifsPasswordSample.ts][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResetCifsPassword.json | +| [volumesResyncReplicationSample.ts][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResyncReplication.json | +| [volumesRevertRelocationSample.ts][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_RevertRelocation.json | +| [volumesRevertSample.ts][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Revert.json | +| [volumesSplitCloneFromParentSample.ts][volumessplitclonefromparentsample] | Split operation to convert clone volume to an independent volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_SplitClone.json | +| [volumesUpdateSample.ts][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Update.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/accountsChangeKeyVaultSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node dist/accountsChangeKeyVaultSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[accountschangekeyvaultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsChangeKeyVaultSample.ts +[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsCreateOrUpdateSample.ts +[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsDeleteSample.ts +[accountsgetchangekeyvaultinformationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsGetChangeKeyVaultInformationSample.ts +[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsGetSample.ts +[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsListBySubscriptionSample.ts +[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsListSample.ts +[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsRenewCredentialsSample.ts +[accountstransitiontocmksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsTransitionToCmkSample.ts +[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsUpdateSample.ts +[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesCreateSample.ts +[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesDeleteSample.ts +[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesGetSample.ts +[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesListSample.ts +[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesUpdateSample.ts +[backupvaultscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts +[backupvaultsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsDeleteSample.ts +[backupvaultsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsGetSample.ts +[backupvaultslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts +[backupvaultsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsUpdateSample.ts +[backupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsCreateSample.ts +[backupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsDeleteSample.ts +[backupsgetlateststatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsGetLatestStatusSample.ts +[backupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsGetSample.ts +[backupsgetvolumelatestrestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsGetVolumeLatestRestoreStatusSample.ts +[backupslistbyvaultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsListByVaultSample.ts +[backupsunderaccountmigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts +[backupsunderbackupvaultrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts +[backupsundervolumemigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts +[backupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUpdateSample.ts +[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts +[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts +[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts +[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts +[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts +[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts +[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts +[netappresourceregioninfosgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceRegionInfosGetSample.ts +[netappresourceregioninfoslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceRegionInfosListSample.ts +[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/operationsListSample.ts +[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsCreateOrUpdateSample.ts +[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsDeleteSample.ts +[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsGetSample.ts +[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsListSample.ts +[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsUpdateSample.ts +[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesCreateSample.ts +[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesDeleteSample.ts +[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesGetSample.ts +[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesListSample.ts +[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesListVolumesSample.ts +[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesUpdateSample.ts +[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsCreateSample.ts +[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsDeleteSample.ts +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsGetSample.ts +[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsListSample.ts +[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsRestoreFilesSample.ts +[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsUpdateSample.ts +[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesCreateSample.ts +[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesDeleteSample.ts +[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesGetMetadataSample.ts +[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesGetSample.ts +[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesListByVolumeSample.ts +[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesUpdateSample.ts +[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsCreateSample.ts +[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsDeleteSample.ts +[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsGetSample.ts +[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts +[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesCreateSample.ts +[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesDeleteSample.ts +[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesGetSample.ts +[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts +[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesUpdateSample.ts +[volumesauthorizeexternalreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesAuthorizeExternalReplicationSample.ts +[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesAuthorizeReplicationSample.ts +[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesBreakFileLocksSample.ts +[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesBreakReplicationSample.ts +[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesCreateOrUpdateSample.ts +[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesDeleteReplicationSample.ts +[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesDeleteSample.ts +[volumesfinalizeexternalreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesFinalizeExternalReplicationSample.ts +[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesFinalizeRelocationSample.ts +[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesGetSample.ts +[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts +[volumeslistquotareportsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListQuotaReportSample.ts +[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListReplicationsSample.ts +[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListSample.ts +[volumespeerexternalclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPeerExternalClusterSample.ts +[volumesperformreplicationtransfersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPerformReplicationTransferSample.ts +[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPoolChangeSample.ts +[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts +[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesReInitializeReplicationSample.ts +[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesReestablishReplicationSample.ts +[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesRelocateSample.ts +[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesReplicationStatusSample.ts +[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesResetCifsPasswordSample.ts +[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesResyncReplicationSample.ts +[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesRevertRelocationSample.ts +[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesRevertSample.ts +[volumessplitclonefromparentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesSplitCloneFromParentSample.ts +[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesUpdateSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/package.json b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/package.json new file mode 100644 index 000000000000..e5b9526aacb3 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/package.json @@ -0,0 +1,41 @@ +{ + "name": "@azure-samples/arm-netapp-ts-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for TypeScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/netapp/arm-netapp" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", + "dependencies": { + "@azure/arm-netapp": "next", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.6.2", + "rimraf": "latest" + } +} diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/sample.env b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsChangeKeyVaultSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsChangeKeyVaultSample.ts new file mode 100644 index 000000000000..bcc24bd2fc03 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsChangeKeyVaultSample.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ChangeKeyVault, + AccountsChangeKeyVaultOptionalParams, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + * + * @summary Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_ChangeKeyVault.json + */ +async function accountsChangeKeyVault() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const body: ChangeKeyVault = { + keyName: "rsakey", + keyVaultPrivateEndpoints: [ + { + privateEndpointId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", + virtualNetworkId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1", + }, + ], + keyVaultResourceId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.KeyVault/managedHSMs/my-hsm", + keyVaultUri: "https://my-key-vault.managedhsm.azure.net", + }; + const options: AccountsChangeKeyVaultOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginChangeKeyVaultAndWait( + resourceGroupName, + accountName, + options, + ); + console.log(result); +} + +async function main() { + accountsChangeKeyVault(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..f86da618169a --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsCreateOrUpdateSample.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppAccount, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update the specified NetApp account within the resource group + * + * @summary Create or update the specified NetApp account within the resource group + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_CreateOrUpdate.json + */ +async function accountsCreateOrUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const body: NetAppAccount = { location: "eastus" }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginCreateOrUpdateAndWait( + resourceGroupName, + accountName, + body, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create or update the specified NetApp account within the resource group + * + * @summary Create or update the specified NetApp account within the resource group + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_CreateOrUpdateAD.json + */ +async function accountsCreateOrUpdateWithActiveDirectory() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const body: NetAppAccount = { + activeDirectories: [ + { + aesEncryption: true, + dns: "10.10.10.3", + domain: "10.10.10.3", + ldapOverTLS: false, + ldapSigning: false, + organizationalUnit: "OU=Engineering", + password: "ad_password", + site: "SiteName", + smbServerName: "SMBServer", + username: "ad_user_name", + }, + ], + location: "eastus", + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginCreateOrUpdateAndWait( + resourceGroupName, + accountName, + body, + ); + console.log(result); +} + +async function main() { + accountsCreateOrUpdate(); + accountsCreateOrUpdateWithActiveDirectory(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsDeleteSample.ts new file mode 100644 index 000000000000..7fbeb8a7c1e2 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsDeleteSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete the specified NetApp account + * + * @summary Delete the specified NetApp account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Delete.json + */ +async function accountsDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginDeleteAndWait( + resourceGroupName, + accountName, + ); + console.log(result); +} + +async function main() { + accountsDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsGetChangeKeyVaultInformationSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsGetChangeKeyVaultInformationSample.ts new file mode 100644 index 000000000000..2650d2f736fd --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsGetChangeKeyVaultInformationSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. + * + * @summary Contains data from encryption.keyVaultProperties as well as information about which private endpoint is used by each encryption sibling set. Response from this endpoint can be modified and used as request body for POST request. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_GetChangeKeyVaultInformation.json + */ +async function accountsGetChangeKeyVaultInformation() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginGetChangeKeyVaultInformationAndWait( + resourceGroupName, + accountName, + ); + console.log(result); +} + +async function main() { + accountsGetChangeKeyVaultInformation(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsGetSample.ts new file mode 100644 index 000000000000..98271a039976 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsGetSample.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the NetApp account + * + * @summary Get the NetApp account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Get.json + */ +async function accountsGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.get(resourceGroupName, accountName); + console.log(result); +} + +async function main() { + accountsGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsListBySubscriptionSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsListBySubscriptionSample.ts new file mode 100644 index 000000000000..b864594d697c --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsListBySubscriptionSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List and describe all NetApp accounts in the subscription. + * + * @summary List and describe all NetApp accounts in the subscription. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json + */ +async function accountsList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.accounts.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + accountsList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsListSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsListSample.ts new file mode 100644 index 000000000000..53bf3f464604 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsListSample.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List and describe all NetApp accounts in the resource group. + * + * @summary List and describe all NetApp accounts in the resource group. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_List.json + */ +async function accountsList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.accounts.list(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + accountsList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsRenewCredentialsSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsRenewCredentialsSample.ts new file mode 100644 index 000000000000..7e742b573d2a --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsRenewCredentialsSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. + * + * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_RenewCredentials.json + */ +async function accountsRenewCredentials() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginRenewCredentialsAndWait( + resourceGroupName, + accountName, + ); + console.log(result); +} + +async function main() { + accountsRenewCredentials(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsTransitionToCmkSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsTransitionToCmkSample.ts new file mode 100644 index 000000000000..7ef222083aec --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsTransitionToCmkSample.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + EncryptionTransitionRequest, + AccountsTransitionToCmkOptionalParams, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. + * + * @summary Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_TransitionEncryptionKey.json + */ +async function accountsMigrateEncryptionKey() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const body: EncryptionTransitionRequest = { + privateEndpointId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", + virtualNetworkId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1", + }; + const options: AccountsTransitionToCmkOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginTransitionToCmkAndWait( + resourceGroupName, + accountName, + options, + ); + console.log(result); +} + +async function main() { + accountsMigrateEncryptionKey(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsUpdateSample.ts new file mode 100644 index 000000000000..1a4c5a922f6b --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/accountsUpdateSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppAccountPatch, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch the specified NetApp account + * + * @summary Patch the specified NetApp account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Update.json + */ +async function accountsUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const body: NetAppAccountPatch = { tags: { tag1: "Value1" } }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.accounts.beginUpdateAndWait( + resourceGroupName, + accountName, + body, + ); + console.log(result); +} + +async function main() { + accountsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesCreateSample.ts new file mode 100644 index 000000000000..3111249d5e2b --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesCreateSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { BackupPolicy, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a backup policy for Netapp Account + * + * @summary Create a backup policy for Netapp Account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Create.json + */ +async function backupPoliciesCreate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const backupPolicyName = "backupPolicyName"; + const body: BackupPolicy = { + dailyBackupsToKeep: 10, + enabled: true, + location: "westus", + monthlyBackupsToKeep: 10, + weeklyBackupsToKeep: 10, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.backupPolicies.beginCreateAndWait( + resourceGroupName, + accountName, + backupPolicyName, + body, + ); + console.log(result); +} + +async function main() { + backupPoliciesCreate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesDeleteSample.ts new file mode 100644 index 000000000000..895b0e5557f6 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete backup policy + * + * @summary Delete backup policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Delete.json + */ +async function backupPoliciesDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = + process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; + const accountName = "accountName"; + const backupPolicyName = "backupPolicyName"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.backupPolicies.beginDeleteAndWait( + resourceGroupName, + accountName, + backupPolicyName, + ); + console.log(result); +} + +async function main() { + backupPoliciesDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesGetSample.ts new file mode 100644 index 000000000000..7cbea1607981 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a particular backup Policy + * + * @summary Get a particular backup Policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Get.json + */ +async function backupsGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const backupPolicyName = "backupPolicyName"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.backupPolicies.get( + resourceGroupName, + accountName, + backupPolicyName, + ); + console.log(result); +} + +async function main() { + backupsGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesListSample.ts new file mode 100644 index 000000000000..8ca5ffd3ca3a --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesListSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List backup policies for Netapp Account + * + * @summary List backup policies for Netapp Account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_List.json + */ +async function backupPoliciesList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.backupPolicies.list( + resourceGroupName, + accountName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + backupPoliciesList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesUpdateSample.ts new file mode 100644 index 000000000000..12f768e4ce86 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupPoliciesUpdateSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { BackupPolicyPatch, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch a backup policy for Netapp Account + * + * @summary Patch a backup policy for Netapp Account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Update.json + */ +async function backupPoliciesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const backupPolicyName = "backupPolicyName"; + const body: BackupPolicyPatch = { + dailyBackupsToKeep: 5, + enabled: false, + location: "westus", + monthlyBackupsToKeep: 10, + weeklyBackupsToKeep: 10, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.backupPolicies.beginUpdateAndWait( + resourceGroupName, + accountName, + backupPolicyName, + body, + ); + console.log(result); +} + +async function main() { + backupPoliciesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts index 33a99faf16c4..e7e2601df865 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified Backup Vault in the NetApp account * * @summary Create or update the specified Backup Vault in the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Create.json */ async function backupVaultCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsDeleteSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsDeleteSample.ts index 2dd8eda92b42..6dd84c39b9c5 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified Backup Vault * * @summary Delete the specified Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Delete.json */ async function backupVaultsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsGetSample.ts index b7ecf0725337..b858f573781e 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the Backup Vault * * @summary Get the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Get.json */ async function backupVaultsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsListByNetAppAccountSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts index 6e02c8391b16..f4c8c253a676 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsListByNetAppAccountSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all Backup Vaults in the NetApp account. * * @summary List and describe all Backup Vaults in the NetApp account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_List.json */ async function backupVaultsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsUpdateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsUpdateSample.ts index 965a9116ca85..a1cfb7a59018 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupVaultsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified NetApp Backup Vault * * @summary Patch the specified NetApp Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Update.json */ async function backupVaultsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsCreateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsCreateSample.ts index 35becef9835d..a12e6961556b 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a backup under the Backup Vault * * @summary Create a backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Create.json */ async function backupsUnderBackupVaultCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsDeleteSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsDeleteSample.ts index d2830d556671..2f735c1ee2ed 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a Backup under the Backup Vault * * @summary Delete a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Delete.json */ async function backupsUnderBackupVaultDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsGetLatestStatusSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsGetLatestStatusSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsGetLatestStatusSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsGetLatestStatusSample.ts index cb03727171db..95c0133b0959 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsGetLatestStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsGetLatestStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the latest status of the backup for a volume * * @summary Get the latest status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestBackupStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_LatestBackupStatus.json */ async function volumesBackupStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsGetSample.ts index 3c8fcac643c1..266fd0afcbbc 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified Backup under Backup Vault. * * @summary Get the specified Backup under Backup Vault. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Get.json */ async function backupsUnderBackupVaultGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsGetVolumeLatestRestoreStatusSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsGetVolumeLatestRestoreStatusSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsGetVolumeLatestRestoreStatusSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsGetVolumeLatestRestoreStatusSample.ts index fb034002e284..71393aa6f51a 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsGetVolumeLatestRestoreStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsGetVolumeLatestRestoreStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the latest status of the restore for a volume * * @summary Get the latest status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestRestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_LatestRestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsListByVaultSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsListByVaultSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsListByVaultSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsListByVaultSample.ts index 830a6202628e..86a3fe9ddc56 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsListByVaultSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsListByVaultSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all backups Under a Backup Vault * * @summary List all backups Under a Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_List.json */ async function backupsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUnderAccountMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUnderAccountMigrateBackupsSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts index 09efd8f56fa3..b915d63acb00 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUnderAccountMigrateBackupsSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Migrate the backups under a NetApp account to backup vault * * @summary Migrate the backups under a NetApp account to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderAccount_Migrate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderAccount_Migrate.json */ async function backupsUnderAccountMigrate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts index 19fc8d342083..d5177e055b22 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Restore the specified files from the specified backup to the active filesystem * * @summary Restore the specified files from the specified backup to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json */ async function backupsSingleFileRestore() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts index bc51d294fc8d..16c8455040c5 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Migrate the backups under volume to backup vault * * @summary Migrate the backups under volume to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderVolume_Migrate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderVolume_Migrate.json */ async function backupsUnderVolumeMigrate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUpdateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUpdateSample.ts index aff934dc54bb..9da440b6495a 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/backupsUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch a Backup under the Backup Vault * * @summary Patch a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Update.json */ async function backupsUnderBackupVaultUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts new file mode 100644 index 000000000000..f6fc91b20c9b --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NetAppResourceCheckFilePathAvailabilityOptionalParams, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Check if a file path is available. + * + * @summary Check if a file path is available. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckFilePathAvailability.json + */ +async function checkFilePathAvailability() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const name = "my-exact-filepth"; + const subnetId = + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"; + const availabilityZone = "undefined"; + const options: NetAppResourceCheckFilePathAvailabilityOptionalParams = { + availabilityZone, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResource.checkFilePathAvailability( + location, + name, + subnetId, + options, + ); + console.log(result); +} + +async function main() { + checkFilePathAvailability(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts new file mode 100644 index 000000000000..e9d282912baa --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Check if a resource name is available. + * + * @summary Check if a resource name is available. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckNameAvailability.json + */ +async function checkNameAvailability() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const name = "accName"; + const typeParam = "Microsoft.NetApp/netAppAccounts"; + const resourceGroup = "myRG"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResource.checkNameAvailability( + location, + name, + typeParam, + resourceGroup, + ); + console.log(result); +} + +async function main() { + checkNameAvailability(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts new file mode 100644 index 000000000000..8167d108cab9 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Check if a quota is available. + * + * @summary Check if a quota is available. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/CheckQuotaAvailability.json + */ +async function checkQuotaAvailability() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const name = "resource1"; + const typeParam = "Microsoft.NetApp/netAppAccounts"; + const resourceGroup = "myRG"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResource.checkQuotaAvailability( + location, + name, + typeParam, + resourceGroup, + ); + console.log(result); +} + +async function main() { + checkQuotaAvailability(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts new file mode 100644 index 000000000000..36864972950b --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get details of the specified network sibling set. + * + * @summary Get details of the specified network sibling set. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/NetworkSiblingSet_Query.json + */ +async function networkSiblingSetQuery() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; + const subnetId = + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResource.queryNetworkSiblingSet( + location, + networkSiblingSetId, + subnetId, + ); + console.log(result); +} + +async function main() { + networkSiblingSetQuery(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts new file mode 100644 index 000000000000..7425998b85c6 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. + * + * @summary Provides storage to network proximity and logical zone mapping information. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfo.json + */ +async function regionInfoQuery() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResource.queryRegionInfo(location); + console.log(result); +} + +async function main() { + regionInfoQuery(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts new file mode 100644 index 000000000000..61c68d1fa8e2 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the default and current subscription quota limit + * + * @summary Get the default and current subscription quota limit + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_Get.json + */ +async function quotaLimits() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const quotaLimitName = "totalCoolAccessVolumesPerSubscription"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.netAppResourceQuotaLimits.get( + location, + quotaLimitName, + ); + console.log(result); +} + +async function main() { + quotaLimits(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts new file mode 100644 index 000000000000..409515e39698 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the default and current limits for quotas + * + * @summary Get the default and current limits for quotas + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/QuotaLimits_List.json + */ +async function quotaLimits() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.netAppResourceQuotaLimits.list(location)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + quotaLimits(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceRegionInfosGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceRegionInfosGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceRegionInfosGetSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceRegionInfosGetSample.ts index 3664878301e3..6402390503d1 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceRegionInfosGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceRegionInfosGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_Get.json */ async function regionInfosGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceRegionInfosListSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceRegionInfosListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceRegionInfosListSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceRegionInfosListSample.ts index 12ce7b50c6f6..1d2c694519ce 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceRegionInfosListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceRegionInfosListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Provides region specific information. * * @summary Provides region specific information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/RegionInfos_List.json */ async function regionInfosList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts new file mode 100644 index 000000000000..7dd12cef2a15 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update the network features of the specified network sibling set. + * + * @summary Update the network features of the specified network sibling set. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/NetworkSiblingSet_Update.json + */ +async function networkFeaturesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const location = "eastus"; + const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; + const subnetId = + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; + const networkSiblingSetStateId = "12345_44420.8001578125"; + const networkFeatures = "Standard"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = + await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures, + ); + console.log(result); +} + +async function main() { + networkFeaturesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/operationsListSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/operationsListSample.ts new file mode 100644 index 000000000000..2202fee1cd71 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/operationsListSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations + * + * @summary Lists all of the available Microsoft.NetApp Rest API operations + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/OperationList.json + */ +async function operationList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + operationList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..b22ee020a2e5 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsCreateOrUpdateSample.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { CapacityPool, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or Update a capacity pool + * + * @summary Create or Update a capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate.json + */ +async function poolsCreateOrUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const body: CapacityPool = { + location: "eastus", + qosType: "Auto", + serviceLevel: "Premium", + size: 4398046511104, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.beginCreateOrUpdateAndWait( + resourceGroupName, + accountName, + poolName, + body, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create or Update a capacity pool + * + * @summary Create or Update a capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate_CustomThroughput.json + */ +async function poolsCreateOrUpdateCustomThroughput() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "customPool1"; + const body: CapacityPool = { + customThroughputMibps: 128, + location: "eastus", + qosType: "Manual", + serviceLevel: "Flexible", + size: 4398046511104, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.beginCreateOrUpdateAndWait( + resourceGroupName, + accountName, + poolName, + body, + ); + console.log(result); +} + +async function main() { + poolsCreateOrUpdate(); + poolsCreateOrUpdateCustomThroughput(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsDeleteSample.ts new file mode 100644 index 000000000000..562bdeecdf0a --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsDeleteSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete the specified capacity pool + * + * @summary Delete the specified capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Delete.json + */ +async function poolsDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.beginDeleteAndWait( + resourceGroupName, + accountName, + poolName, + ); + console.log(result); +} + +async function main() { + poolsDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsGetSample.ts new file mode 100644 index 000000000000..0f30853d4a87 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsGetSample.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get details of the specified capacity pool + * + * @summary Get details of the specified capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get.json + */ +async function poolsGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.get( + resourceGroupName, + accountName, + poolName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Get details of the specified capacity pool + * + * @summary Get details of the specified capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get_CustomThroughput.json + */ +async function poolsGetCustomThroughput() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "customPool1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.get( + resourceGroupName, + accountName, + poolName, + ); + console.log(result); +} + +async function main() { + poolsGet(); + poolsGetCustomThroughput(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsListSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsListSample.ts new file mode 100644 index 000000000000..45a9b45390ee --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsListSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all capacity pools in the NetApp Account + * + * @summary List all capacity pools in the NetApp Account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_List.json + */ +async function poolsList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.pools.list(resourceGroupName, accountName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + poolsList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsUpdateSample.ts new file mode 100644 index 000000000000..89b742ecac42 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/poolsUpdateSample.ts @@ -0,0 +1,72 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { CapacityPoolPatch, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch the specified capacity pool + * + * @summary Patch the specified capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update.json + */ +async function poolsUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const body: CapacityPoolPatch = {}; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + body, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the specified capacity pool + * + * @summary Patch the specified capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Update_CustomThroughput.json + */ +async function poolsUpdateCustomThroughput() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "customPool1"; + const body: CapacityPoolPatch = {}; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.pools.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + body, + ); + console.log(result); +} + +async function main() { + poolsUpdate(); + poolsUpdateCustomThroughput(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesCreateSample.ts new file mode 100644 index 000000000000..3dbc5bdc2135 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesCreateSample.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SnapshotPolicy, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a snapshot policy + * + * @summary Create a snapshot policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Create.json + */ +async function snapshotPoliciesCreate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const snapshotPolicyName = "snapshotPolicyName"; + const body: SnapshotPolicy = { + dailySchedule: { hour: 14, minute: 30, snapshotsToKeep: 4 }, + enabled: true, + hourlySchedule: { minute: 50, snapshotsToKeep: 2 }, + location: "eastus", + monthlySchedule: { + daysOfMonth: "10,11,12", + hour: 14, + minute: 15, + snapshotsToKeep: 5, + }, + weeklySchedule: { + day: "Wednesday", + hour: 14, + minute: 45, + snapshotsToKeep: 3, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshotPolicies.create( + resourceGroupName, + accountName, + snapshotPolicyName, + body, + ); + console.log(result); +} + +async function main() { + snapshotPoliciesCreate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesDeleteSample.ts new file mode 100644 index 000000000000..a60d5342dcd6 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete snapshot policy + * + * @summary Delete snapshot policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Delete.json + */ +async function snapshotPoliciesDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = + process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; + const accountName = "accountName"; + const snapshotPolicyName = "snapshotPolicyName"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshotPolicies.beginDeleteAndWait( + resourceGroupName, + accountName, + snapshotPolicyName, + ); + console.log(result); +} + +async function main() { + snapshotPoliciesDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesGetSample.ts new file mode 100644 index 000000000000..3d9f8497bdc7 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesGetSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a snapshot Policy + * + * @summary Get a snapshot Policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Get.json + */ +async function snapshotPoliciesGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const snapshotPolicyName = "snapshotPolicyName"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshotPolicies.get( + resourceGroupName, + accountName, + snapshotPolicyName, + ); + console.log(result); +} + +async function main() { + snapshotPoliciesGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesListSample.ts new file mode 100644 index 000000000000..829f17b1a3be --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesListSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List snapshot policy + * + * @summary List snapshot policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_List.json + */ +async function snapshotPoliciesList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.snapshotPolicies.list( + resourceGroupName, + accountName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + snapshotPoliciesList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesListVolumesSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesListVolumesSample.ts new file mode 100644 index 000000000000..a64eba76b691 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesListVolumesSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get volumes associated with snapshot policy + * + * @summary Get volumes associated with snapshot policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_ListVolumes.json + */ +async function snapshotPoliciesListVolumes() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const snapshotPolicyName = "snapshotPolicyName"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshotPolicies.listVolumes( + resourceGroupName, + accountName, + snapshotPolicyName, + ); + console.log(result); +} + +async function main() { + snapshotPoliciesListVolumes(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesUpdateSample.ts new file mode 100644 index 000000000000..e04088415ad3 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotPoliciesUpdateSample.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SnapshotPolicyPatch, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch a snapshot policy + * + * @summary Patch a snapshot policy + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Update.json + */ +async function snapshotPoliciesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const snapshotPolicyName = "snapshotPolicyName"; + const body: SnapshotPolicyPatch = { + dailySchedule: { hour: 14, minute: 30, snapshotsToKeep: 4 }, + enabled: true, + hourlySchedule: { minute: 50, snapshotsToKeep: 2 }, + location: "eastus", + monthlySchedule: { + daysOfMonth: "10,11,12", + hour: 14, + minute: 15, + snapshotsToKeep: 5, + }, + weeklySchedule: { + day: "Wednesday", + hour: 14, + minute: 45, + snapshotsToKeep: 3, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshotPolicies.beginUpdateAndWait( + resourceGroupName, + accountName, + snapshotPolicyName, + body, + ); + console.log(result); +} + +async function main() { + snapshotPoliciesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsCreateSample.ts new file mode 100644 index 000000000000..3055a7457d27 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsCreateSample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { Snapshot, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create the specified snapshot within the given volume + * + * @summary Create the specified snapshot within the given volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Create.json + */ +async function snapshotsCreate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const snapshotName = "snapshot1"; + const body: Snapshot = { location: "eastus" }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshots.beginCreateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + snapshotName, + body, + ); + console.log(result); +} + +async function main() { + snapshotsCreate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsDeleteSample.ts new file mode 100644 index 000000000000..b2eeaadd42cc --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsDeleteSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete snapshot + * + * @summary Delete snapshot + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Delete.json + */ +async function snapshotsDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const snapshotName = "snapshot1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshots.beginDeleteAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + snapshotName, + ); + console.log(result); +} + +async function main() { + snapshotsDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsGetSample.ts new file mode 100644 index 000000000000..a2837c37d139 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsGetSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get details of the specified snapshot + * + * @summary Get details of the specified snapshot + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Get.json + */ +async function snapshotsGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const snapshotName = "snapshot1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshots.get( + resourceGroupName, + accountName, + poolName, + volumeName, + snapshotName, + ); + console.log(result); +} + +async function main() { + snapshotsGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsListSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsListSample.ts new file mode 100644 index 000000000000..0cac2c3cc50c --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsListSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all snapshots associated with the volume + * + * @summary List all snapshots associated with the volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_List.json + */ +async function snapshotsList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.snapshots.list( + resourceGroupName, + accountName, + poolName, + volumeName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + snapshotsList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsRestoreFilesSample.ts new file mode 100644 index 000000000000..3cacd742ac36 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsRestoreFilesSample.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + SnapshotRestoreFiles, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem + * + * @summary Restore the specified files from the specified snapshot to the active filesystem + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_SingleFileRestore.json + */ +async function snapshotsSingleFileRestore() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const snapshotName = "snapshot1"; + const body: SnapshotRestoreFiles = { + filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"], + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshots.beginRestoreFilesAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + snapshotName, + body, + ); + console.log(result); +} + +async function main() { + snapshotsSingleFileRestore(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsUpdateSample.ts new file mode 100644 index 000000000000..8ea265fb1257 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/snapshotsUpdateSample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch a snapshot + * + * @summary Patch a snapshot + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Update.json + */ +async function snapshotsUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const snapshotName = "snapshot1"; + const body: Record = {}; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.snapshots.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + snapshotName, + body, + ); + console.log(result); +} + +async function main() { + snapshotsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesCreateSample.ts new file mode 100644 index 000000000000..0d234c9fb499 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesCreateSample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { SubvolumeInfo, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath + * + * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Create.json + */ +async function subvolumesCreate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const subvolumeName = "subvolume1"; + const body: SubvolumeInfo = { path: "/subvolumePath" }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.subvolumes.beginCreateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + body, + ); + console.log(result); +} + +async function main() { + subvolumesCreate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesDeleteSample.ts new file mode 100644 index 000000000000..c9f5fd9bcef9 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesDeleteSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete subvolume + * + * @summary Delete subvolume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Delete.json + */ +async function subvolumesDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const subvolumeName = "subvolume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.subvolumes.beginDeleteAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + ); + console.log(result); +} + +async function main() { + subvolumesDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesGetMetadataSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesGetMetadataSample.ts new file mode 100644 index 000000000000..dd796b5380b9 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesGetMetadataSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get details of the specified subvolume + * + * @summary Get details of the specified subvolume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Metadata.json + */ +async function subvolumesMetadata() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const subvolumeName = "subvolume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.subvolumes.beginGetMetadataAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + ); + console.log(result); +} + +async function main() { + subvolumesMetadata(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesGetSample.ts new file mode 100644 index 000000000000..098647570967 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesGetSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns the path associated with the subvolumeName provided + * + * @summary Returns the path associated with the subvolumeName provided + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Get.json + */ +async function subvolumesGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const subvolumeName = "subvolume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.subvolumes.get( + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + ); + console.log(result); +} + +async function main() { + subvolumesGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesListByVolumeSample.ts new file mode 100644 index 000000000000..467be8735bd1 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesListByVolumeSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns a list of the subvolumes in the volume + * + * @summary Returns a list of the subvolumes in the volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_List.json + */ +async function subvolumesList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.subvolumes.listByVolume( + resourceGroupName, + accountName, + poolName, + volumeName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + subvolumesList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesUpdateSample.ts new file mode 100644 index 000000000000..9544dfe0fc18 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/subvolumesUpdateSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + SubvolumePatchRequest, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch a subvolume + * + * @summary Patch a subvolume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Update.json + */ +async function subvolumesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const subvolumeName = "subvolume1"; + const body: SubvolumePatchRequest = { path: "/subvolumePath" }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.subvolumes.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + subvolumeName, + body, + ); + console.log(result); +} + +async function main() { + subvolumesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsCreateSample.ts new file mode 100644 index 000000000000..a0da8e5f7265 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsCreateSample.ts @@ -0,0 +1,673 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { VolumeGroupDetails, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a volume group along with specified volumes + * + * @summary Create a volume group along with specified volumes + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Create_Oracle.json + */ +async function volumeGroupsCreateOracle() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const body: VolumeGroupDetails = { + groupMetaData: { + applicationIdentifier: "OR2", + applicationType: "ORACLE", + groupDescription: "Volume group", + }, + location: "westus", + volumes: [ + { + name: "test-ora-data1", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data1", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data1", + zones: ["1"], + }, + { + name: "test-ora-data2", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data2", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data2", + zones: ["1"], + }, + { + name: "test-ora-data3", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data3", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data3", + zones: ["1"], + }, + { + name: "test-ora-data4", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data4", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data4", + zones: ["1"], + }, + { + name: "test-ora-data5", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data5", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data5", + zones: ["1"], + }, + { + name: "test-ora-data6", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data6", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data6", + zones: ["1"], + }, + { + name: "test-ora-data7", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data7", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data7", + zones: ["1"], + }, + { + name: "test-ora-data8", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-data8", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-data8", + zones: ["1"], + }, + { + name: "test-ora-log", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-log", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-log", + zones: ["1"], + }, + { + name: "test-ora-log-mirror", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-log-mirror", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-log-mirror", + zones: ["1"], + }, + { + name: "test-ora-binary", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-binary", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-binary", + zones: ["1"], + }, + { + name: "test-ora-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-ora-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "ora-backup", + zones: ["1"], + }, + ], + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.beginCreateAndWait( + resourceGroupName, + accountName, + volumeGroupName, + body, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create a volume group along with specified volumes + * + * @summary Create a volume group along with specified volumes + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Create_SapHana.json + */ +async function volumeGroupsCreateSapHana() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const body: VolumeGroupDetails = { + groupMetaData: { + applicationIdentifier: "SH9", + applicationType: "SAP-HANA", + groupDescription: "Volume group", + }, + location: "westus", + volumes: [ + { + name: "test-data-mnt00001", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-data-mnt00001", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "data", + }, + { + name: "test-log-mnt00001", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-log-mnt00001", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "log", + }, + { + name: "test-shared", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-shared", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "shared", + }, + { + name: "test-data-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-data-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "data-backup", + }, + { + name: "test-log-backup", + capacityPoolResourceId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + creationToken: "test-log-backup", + exportPolicy: { + rules: [ + { + allowedClients: "0.0.0.0/0", + cifs: false, + hasRootAccess: true, + kerberos5ReadOnly: false, + kerberos5ReadWrite: false, + kerberos5IReadOnly: false, + kerberos5IReadWrite: false, + kerberos5PReadOnly: false, + kerberos5PReadWrite: false, + nfsv3: false, + nfsv41: true, + ruleIndex: 1, + unixReadOnly: true, + unixReadWrite: true, + }, + ], + }, + protocolTypes: ["NFSv4.1"], + proximityPlacementGroup: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", + serviceLevel: "Premium", + subnetId: + "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + throughputMibps: 10, + usageThreshold: 107374182400, + volumeSpecName: "log-backup", + }, + ], + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.beginCreateAndWait( + resourceGroupName, + accountName, + volumeGroupName, + body, + ); + console.log(result); +} + +async function main() { + volumeGroupsCreateOracle(); + volumeGroupsCreateSapHana(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsDeleteSample.ts new file mode 100644 index 000000000000..9d0f9774dbfd --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsDeleteSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. + * + * @summary Delete the specified volume group only if there are no volumes under volume group. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Delete.json + */ +async function volumeGroupsDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.beginDeleteAndWait( + resourceGroupName, + accountName, + volumeGroupName, + ); + console.log(result); +} + +async function main() { + volumeGroupsDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsGetSample.ts new file mode 100644 index 000000000000..1b8bfc978ea0 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsGetSample.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get details of the specified volume group + * + * @summary Get details of the specified volume group + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Get_Oracle.json + */ +async function volumeGroupsGetOracle() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.get( + resourceGroupName, + accountName, + volumeGroupName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Get details of the specified volume group + * + * @summary Get details of the specified volume group + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Get_SapHana.json + */ +async function volumeGroupsGetSapHana() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const volumeGroupName = "group1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeGroups.get( + resourceGroupName, + accountName, + volumeGroupName, + ); + console.log(result); +} + +async function main() { + volumeGroupsGetOracle(); + volumeGroupsGetSapHana(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts new file mode 100644 index 000000000000..bcedb0dc4a5f --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts @@ -0,0 +1,70 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all volume groups for given account + * + * @summary List all volume groups for given account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_List_Oracle.json + */ +async function volumeGroupsListOracle() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.volumeGroups.listByNetAppAccount( + resourceGroupName, + accountName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to List all volume groups for given account + * + * @summary List all volume groups for given account + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_List_SapHana.json + */ +async function volumeGroupsListSapHana() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.volumeGroups.listByNetAppAccount( + resourceGroupName, + accountName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + volumeGroupsListOracle(); + volumeGroupsListSapHana(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesCreateSample.ts new file mode 100644 index 000000000000..601518418d16 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesCreateSample.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { VolumeQuotaRule, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create the specified quota rule within the given volume + * + * @summary Create the specified quota rule within the given volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Create.json + */ +async function volumeQuotaRulesCreate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "5275316f-a498-48d6-b324-2cbfdc4311b9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account-9957"; + const poolName = "pool-5210"; + const volumeName = "volume-6387"; + const volumeQuotaRuleName = "rule-0004"; + const body: VolumeQuotaRule = { + location: "westus", + quotaSizeInKiBs: 100005, + quotaTarget: "1821", + quotaType: "IndividualUserQuota", + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeQuotaRules.beginCreateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + volumeQuotaRuleName, + body, + ); + console.log(result); +} + +async function main() { + volumeQuotaRulesCreate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesDeleteSample.ts new file mode 100644 index 000000000000..5c1154a51c86 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesDeleteSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete quota rule + * + * @summary Delete quota rule + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Delete.json + */ +async function volumeQuotaRulesDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "5275316f-a498-48d6-b324-2cbfdc4311b9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account-9957"; + const poolName = "pool-5210"; + const volumeName = "volume-6387"; + const volumeQuotaRuleName = "rule-0004"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeQuotaRules.beginDeleteAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + volumeQuotaRuleName, + ); + console.log(result); +} + +async function main() { + volumeQuotaRulesDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesGetSample.ts new file mode 100644 index 000000000000..42cd3ab72f71 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesGetSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get details of the specified quota rule + * + * @summary Get details of the specified quota rule + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Get.json + */ +async function volumeQuotaRulesGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "5275316f-a498-48d6-b324-2cbfdc4311b9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account-9957"; + const poolName = "pool-5210"; + const volumeName = "volume-6387"; + const volumeQuotaRuleName = "rule-0004"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeQuotaRules.get( + resourceGroupName, + accountName, + poolName, + volumeName, + volumeQuotaRuleName, + ); + console.log(result); +} + +async function main() { + volumeQuotaRulesGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts new file mode 100644 index 000000000000..cb5d13627e56 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all quota rules associated with the volume + * + * @summary List all quota rules associated with the volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_List.json + */ +async function volumeQuotaRulesList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "5275316f-a498-48d6-b324-2cbfdc4311b9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account-9957"; + const poolName = "pool-5210"; + const volumeName = "volume-6387"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.volumeQuotaRules.listByVolume( + resourceGroupName, + accountName, + poolName, + volumeName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + volumeQuotaRulesList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesUpdateSample.ts new file mode 100644 index 000000000000..1600400f97f1 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumeQuotaRulesUpdateSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + VolumeQuotaRulePatch, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch a quota rule + * + * @summary Patch a quota rule + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Update.json + */ +async function volumeQuotaRulesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "5275316f-a498-48d6-b324-2cbfdc4311b9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account-9957"; + const poolName = "pool-5210"; + const volumeName = "volume-6387"; + const volumeQuotaRuleName = "rule-0004"; + const body: VolumeQuotaRulePatch = { quotaSizeInKiBs: 100009 }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumeQuotaRules.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + volumeQuotaRuleName, + body, + ); + console.log(result); +} + +async function main() { + volumeQuotaRulesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesAuthorizeExternalReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesAuthorizeExternalReplicationSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesAuthorizeExternalReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesAuthorizeExternalReplicationSample.ts index f8dfcacf9702..47d5e60ddac7 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesAuthorizeExternalReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesAuthorizeExternalReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created * * @summary Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeExternalReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeExternalReplication.json */ async function volumesAuthorizeExternalReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesAuthorizeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesAuthorizeReplicationSample.ts new file mode 100644 index 000000000000..ba2660ddf5de --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesAuthorizeReplicationSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AuthorizeRequest, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Authorize the replication connection on the source volume + * + * @summary Authorize the replication connection on the source volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeReplication.json + */ +async function volumesAuthorizeReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body: AuthorizeRequest = { + remoteVolumeResourceId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1", + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginAuthorizeReplicationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + volumesAuthorizeReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesBreakFileLocksSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesBreakFileLocksSample.ts new file mode 100644 index 000000000000..715d3391f2fc --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesBreakFileLocksSample.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + BreakFileLocksRequest, + VolumesBreakFileLocksOptionalParams, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Break all the file locks on a volume + * + * @summary Break all the file locks on a volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakFileLocks.json + */ +async function volumesBreakFileLocks() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body: BreakFileLocksRequest = { + clientIp: "101.102.103.104", + confirmRunningDisruptiveOperation: true, + }; + const options: VolumesBreakFileLocksOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginBreakFileLocksAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + options, + ); + console.log(result); +} + +async function main() { + volumesBreakFileLocks(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesBreakReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesBreakReplicationSample.ts new file mode 100644 index 000000000000..0946804f9467 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesBreakReplicationSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + BreakReplicationRequest, + VolumesBreakReplicationOptionalParams, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Break the replication connection on the destination volume + * + * @summary Break the replication connection on the destination volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_BreakReplication.json + */ +async function volumesBreakReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body: BreakReplicationRequest = { forceBreakReplication: false }; + const options: VolumesBreakReplicationOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginBreakReplicationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + options, + ); + console.log(result); +} + +async function main() { + volumesBreakReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..32e103bff9e1 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesCreateOrUpdateSample.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { Volume, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update the specified volume within the capacity pool + * + * @summary Create or update the specified volume within the capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_CreateOrUpdate.json + */ +async function volumesCreateOrUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body: Volume = { + creationToken: "my-unique-file-path", + location: "eastus", + serviceLevel: "Premium", + subnetId: + "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", + usageThreshold: 107374182400, + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginCreateOrUpdateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + volumesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesDeleteReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesDeleteReplicationSample.ts new file mode 100644 index 000000000000..d5e9dd642fde --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesDeleteReplicationSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication + * + * @summary Delete the replication connection on the destination volume, and send release to the source replication + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_DeleteReplication.json + */ +async function volumesDeleteReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginDeleteReplicationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesDeleteReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesDeleteSample.ts new file mode 100644 index 000000000000..b8254263cf14 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesDeleteSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete the specified volume + * + * @summary Delete the specified volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Delete.json + */ +async function volumesDelete() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginDeleteAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesDelete(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesFinalizeExternalReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesFinalizeExternalReplicationSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesFinalizeExternalReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesFinalizeExternalReplicationSample.ts index bb7cce78b348..81da2d6e8e0d 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesFinalizeExternalReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesFinalizeExternalReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. * * @summary Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeExternalReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeExternalReplication.json */ async function volumesFinalizeExternalReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesFinalizeRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesFinalizeRelocationSample.ts new file mode 100644 index 000000000000..e6a1ac2b6d82 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesFinalizeRelocationSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. + * + * @summary Finalizes the relocation of the volume and cleans up the old volume. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeRelocation.json + */ +async function volumesFinalizeRelocation() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginFinalizeRelocationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesFinalizeRelocation(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesGetSample.ts new file mode 100644 index 000000000000..b3bffafc9081 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesGetSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the details of the specified volume + * + * @summary Get the details of the specified volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Get.json + */ +async function volumesGet() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.get( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesGet(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts new file mode 100644 index 000000000000..1324f5064b71 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + GetGroupIdListForLdapUserRequest, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User + * + * @summary Returns the list of group Ids for a specific LDAP User + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/GroupIdListForLDAPUser.json + */ +async function getGroupIdListForUser() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body: GetGroupIdListForLdapUserRequest = { username: "user1" }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginListGetGroupIdListForLdapUserAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + getGroupIdListForUser(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListQuotaReportSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListQuotaReportSample.ts new file mode 100644 index 000000000000..4337dc2d6814 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListQuotaReportSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns report of quotas for the volume + * + * @summary Returns report of quotas for the volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListQuotaReport.json + */ +async function listQuotaReport() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginListQuotaReportAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + listQuotaReport(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListReplicationsSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListReplicationsSample.ts new file mode 100644 index 000000000000..2809b80e738d --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListReplicationsSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all replications for a specified volume + * + * @summary List all replications for a specified volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ListReplications.json + */ +async function volumesListReplications() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.volumes.listReplications( + resourceGroupName, + accountName, + poolName, + volumeName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + volumesListReplications(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListSample.ts new file mode 100644 index 000000000000..790c6f717e08 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesListSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all volumes within the capacity pool + * + * @summary List all volumes within the capacity pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_List.json + */ +async function volumesList() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.volumes.list( + resourceGroupName, + accountName, + poolName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + volumesList(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPeerExternalClusterSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPeerExternalClusterSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPeerExternalClusterSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPeerExternalClusterSample.ts index 2e0bf916ca36..76c3637717a7 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPeerExternalClusterSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPeerExternalClusterSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Starts peering the external cluster for this migration volume * * @summary Starts peering the external cluster for this migration volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PeerExternalCluster.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PeerExternalCluster.json */ async function volumesPeerExternalCluster() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPerformReplicationTransferSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPerformReplicationTransferSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPerformReplicationTransferSample.ts rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPerformReplicationTransferSample.ts index 7639451186f2..f51f8f4fadd9 100644 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPerformReplicationTransferSample.ts +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPerformReplicationTransferSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Performs an adhoc replication transfer on a volume with volumeType Migration * * @summary Performs an adhoc replication transfer on a volume with volumeType Migration - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PerformReplicationTransfer.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PerformReplicationTransfer.json */ async function volumesPerformReplicationTransfer() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPoolChangeSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPoolChangeSample.ts new file mode 100644 index 000000000000..1fea7a413505 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPoolChangeSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { PoolChangeRequest, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Moves volume to another pool + * + * @summary Moves volume to another pool + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PoolChange.json + */ +async function volumesAuthorizeReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body: PoolChangeRequest = { + newPoolResourceId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginPoolChangeAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + volumesAuthorizeReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts new file mode 100644 index 000000000000..6065b90278b7 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to This operation will populate availability zone information for a volume + * + * @summary This operation will populate availability zone information for a volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PopulateAvailabilityZones.json + */ +async function volumesPopulateAvailabilityZones() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginPopulateAvailabilityZoneAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesPopulateAvailabilityZones(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesReInitializeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesReInitializeReplicationSample.ts new file mode 100644 index 000000000000..a5e7b3229c1b --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesReInitializeReplicationSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Re-Initializes the replication connection on the destination volume + * + * @summary Re-Initializes the replication connection on the destination volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReInitializeReplication.json + */ +async function volumesReInitializeReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginReInitializeReplicationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesReInitializeReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesReestablishReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesReestablishReplicationSample.ts new file mode 100644 index 000000000000..7111c9e664a4 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesReestablishReplicationSample.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ReestablishReplicationRequest, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots + * + * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReestablishReplication.json + */ +async function volumesReestablishReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body: ReestablishReplicationRequest = { + sourceVolumeId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1", + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginReestablishReplicationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + volumesReestablishReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesRelocateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesRelocateSample.ts new file mode 100644 index 000000000000..8b19c40383db --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesRelocateSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RelocateVolumeRequest, + VolumesRelocateOptionalParams, + NetAppManagementClient, +} from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Relocates volume to a new stamp + * + * @summary Relocates volume to a new stamp + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Relocate.json + */ +async function volumesRelocate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body: RelocateVolumeRequest = {}; + const options: VolumesRelocateOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginRelocateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + options, + ); + console.log(result); +} + +async function main() { + volumesRelocate(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesReplicationStatusSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesReplicationStatusSample.ts new file mode 100644 index 000000000000..44d117b2daed --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesReplicationStatusSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the status of the replication + * + * @summary Get the status of the replication + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReplicationStatus.json + */ +async function volumesReplicationStatus() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.replicationStatus( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesReplicationStatus(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesResetCifsPasswordSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesResetCifsPasswordSample.ts new file mode 100644 index 000000000000..dbf047a0c650 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesResetCifsPasswordSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Reset cifs password from volume + * + * @summary Reset cifs password from volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResetCifsPassword.json + */ +async function volumesResetCifsPassword() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginResetCifsPasswordAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesResetCifsPassword(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesResyncReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesResyncReplicationSample.ts new file mode 100644 index 000000000000..786bd94bf53a --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesResyncReplicationSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. + * + * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ResyncReplication.json + */ +async function volumesResyncReplication() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginResyncReplicationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesResyncReplication(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesRevertRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesRevertRelocationSample.ts new file mode 100644 index 000000000000..7a42495740a9 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesRevertRelocationSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. + * + * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_RevertRelocation.json + */ +async function volumesRevertRelocation() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginRevertRelocationAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesRevertRelocation(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesRevertSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesRevertSample.ts new file mode 100644 index 000000000000..179e77c90190 --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesRevertSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { VolumeRevert, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Revert a volume to the snapshot specified in the body + * + * @summary Revert a volume to the snapshot specified in the body + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Revert.json + */ +async function volumesRevert() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body: VolumeRevert = { + snapshotId: + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", + }; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginRevertAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + volumesRevert(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesSplitCloneFromParentSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesSplitCloneFromParentSample.ts new file mode 100644 index 000000000000..32b34b2e080f --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesSplitCloneFromParentSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Split operation to convert clone volume to an independent volume. + * + * @summary Split operation to convert clone volume to an independent volume. + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_SplitClone.json + */ +async function volumesSplitClone() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginSplitCloneFromParentAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + ); + console.log(result); +} + +async function main() { + volumesSplitClone(); +} + +main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesUpdateSample.ts new file mode 100644 index 000000000000..a715f554959d --- /dev/null +++ b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/src/volumesUpdateSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { VolumePatch, NetAppManagementClient } from "@azure/arm-netapp"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch the specified volume + * + * @summary Patch the specified volume + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Update.json + */ +async function volumesUpdate() { + const subscriptionId = + process.env["NETAPP_SUBSCRIPTION_ID"] || + "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; + const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; + const accountName = "account1"; + const poolName = "pool1"; + const volumeName = "volume1"; + const body: VolumePatch = {}; + const credential = new DefaultAzureCredential(); + const client = new NetAppManagementClient(credential, subscriptionId); + const result = await client.volumes.beginUpdateAndWait( + resourceGroupName, + accountName, + poolName, + volumeName, + body, + ); + console.log(result); +} + +async function main() { + volumesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/tsconfig.json b/sdk/netapp/arm-netapp/samples/v21-beta/typescript/tsconfig.json similarity index 100% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/tsconfig.json rename to sdk/netapp/arm-netapp/samples/v21-beta/typescript/tsconfig.json diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/README.md b/sdk/netapp/arm-netapp/samples/v21/javascript/README.md deleted file mode 100644 index 307b0a1fea29..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/README.md +++ /dev/null @@ -1,240 +0,0 @@ -# client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [accountsCreateOrUpdateSample.js][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdate.json | -| [accountsDeleteSample.js][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Delete.json | -| [accountsGetSample.js][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Get.json | -| [accountsListBySubscriptionSample.js][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json | -| [accountsListSample.js][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json | -| [accountsRenewCredentialsSample.js][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_RenewCredentials.json | -| [accountsUpdateSample.js][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Update.json | -| [backupPoliciesCreateSample.js][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Create.json | -| [backupPoliciesDeleteSample.js][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Delete.json | -| [backupPoliciesGetSample.js][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Get.json | -| [backupPoliciesListSample.js][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_List.json | -| [backupPoliciesUpdateSample.js][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Update.json | -| [backupVaultsCreateOrUpdateSample.js][backupvaultscreateorupdatesample] | Create or update the specified Backup Vault in the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Create.json | -| [backupVaultsDeleteSample.js][backupvaultsdeletesample] | Delete the specified Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Delete.json | -| [backupVaultsGetSample.js][backupvaultsgetsample] | Get the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Get.json | -| [backupVaultsListByNetAppAccountSample.js][backupvaultslistbynetappaccountsample] | List and describe all Backup Vaults in the NetApp account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_List.json | -| [backupVaultsUpdateSample.js][backupvaultsupdatesample] | Patch the specified NetApp Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Update.json | -| [backupsCreateSample.js][backupscreatesample] | Create a backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Create.json | -| [backupsDeleteSample.js][backupsdeletesample] | Delete a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Delete.json | -| [backupsGetLatestStatusSample.js][backupsgetlateststatussample] | Get the latest status of the backup for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestBackupStatus.json | -| [backupsGetSample.js][backupsgetsample] | Get the specified Backup under Backup Vault. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Get.json | -| [backupsGetVolumeLatestRestoreStatusSample.js][backupsgetvolumelatestrestorestatussample] | Get the latest status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestRestoreStatus.json | -| [backupsListByVaultSample.js][backupslistbyvaultsample] | List all backups Under a Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_List.json | -| [backupsUnderAccountMigrateBackupsSample.js][backupsunderaccountmigratebackupssample] | Migrate the backups under a NetApp account to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderAccount_Migrate.json | -| [backupsUnderBackupVaultRestoreFilesSample.js][backupsunderbackupvaultrestorefilessample] | Restore the specified files from the specified backup to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_SingleFileRestore.json | -| [backupsUnderVolumeMigrateBackupsSample.js][backupsundervolumemigratebackupssample] | Migrate the backups under volume to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderVolume_Migrate.json | -| [backupsUpdateSample.js][backupsupdatesample] | Patch a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Update.json | -| [netAppResourceCheckFilePathAvailabilitySample.js][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckFilePathAvailability.json | -| [netAppResourceCheckNameAvailabilitySample.js][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckNameAvailability.json | -| [netAppResourceCheckQuotaAvailabilitySample.js][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckQuotaAvailability.json | -| [netAppResourceQueryNetworkSiblingSetSample.js][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Query.json | -| [netAppResourceQueryRegionInfoSample.js][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfo.json | -| [netAppResourceQuotaLimitsGetSample.js][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_Get.json | -| [netAppResourceQuotaLimitsListSample.js][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_List.json | -| [netAppResourceRegionInfosGetSample.js][netappresourceregioninfosgetsample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_Get.json | -| [netAppResourceRegionInfosListSample.js][netappresourceregioninfoslistsample] | Provides region specific information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_List.json | -| [netAppResourceUpdateNetworkSiblingSetSample.js][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Update.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/OperationList.json | -| [poolsCreateOrUpdateSample.js][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_CreateOrUpdate.json | -| [poolsDeleteSample.js][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Delete.json | -| [poolsGetSample.js][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Get.json | -| [poolsListSample.js][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_List.json | -| [poolsUpdateSample.js][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Update.json | -| [snapshotPoliciesCreateSample.js][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Create.json | -| [snapshotPoliciesDeleteSample.js][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Delete.json | -| [snapshotPoliciesGetSample.js][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Get.json | -| [snapshotPoliciesListSample.js][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_List.json | -| [snapshotPoliciesListVolumesSample.js][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_ListVolumes.json | -| [snapshotPoliciesUpdateSample.js][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Update.json | -| [snapshotsCreateSample.js][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Create.json | -| [snapshotsDeleteSample.js][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Delete.json | -| [snapshotsGetSample.js][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Get.json | -| [snapshotsListSample.js][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_List.json | -| [snapshotsRestoreFilesSample.js][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_SingleFileRestore.json | -| [snapshotsUpdateSample.js][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Update.json | -| [subvolumesCreateSample.js][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Create.json | -| [subvolumesDeleteSample.js][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Delete.json | -| [subvolumesGetMetadataSample.js][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Metadata.json | -| [subvolumesGetSample.js][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Get.json | -| [subvolumesListByVolumeSample.js][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_List.json | -| [subvolumesUpdateSample.js][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Update.json | -| [volumeGroupsCreateSample.js][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_Oracle.json | -| [volumeGroupsDeleteSample.js][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Delete.json | -| [volumeGroupsGetSample.js][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_Oracle.json | -| [volumeGroupsListByNetAppAccountSample.js][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_Oracle.json | -| [volumeQuotaRulesCreateSample.js][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Create.json | -| [volumeQuotaRulesDeleteSample.js][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Delete.json | -| [volumeQuotaRulesGetSample.js][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Get.json | -| [volumeQuotaRulesListByVolumeSample.js][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_List.json | -| [volumeQuotaRulesUpdateSample.js][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Update.json | -| [volumesAuthorizeExternalReplicationSample.js][volumesauthorizeexternalreplicationsample] | Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeExternalReplication.json | -| [volumesAuthorizeReplicationSample.js][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeReplication.json | -| [volumesBreakFileLocksSample.js][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakFileLocks.json | -| [volumesBreakReplicationSample.js][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakReplication.json | -| [volumesCreateOrUpdateSample.js][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_CreateOrUpdate.json | -| [volumesDeleteReplicationSample.js][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_DeleteReplication.json | -| [volumesDeleteSample.js][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Delete.json | -| [volumesFinalizeExternalReplicationSample.js][volumesfinalizeexternalreplicationsample] | Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeExternalReplication.json | -| [volumesFinalizeRelocationSample.js][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeRelocation.json | -| [volumesGetSample.js][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Get.json | -| [volumesListGetGroupIdListForLdapUserSample.js][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/GroupIdListForLDAPUser.json | -| [volumesListReplicationsSample.js][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ListReplications.json | -| [volumesListSample.js][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_List.json | -| [volumesPeerExternalClusterSample.js][volumespeerexternalclustersample] | Starts peering the external cluster for this migration volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PeerExternalCluster.json | -| [volumesPerformReplicationTransferSample.js][volumesperformreplicationtransfersample] | Performs an adhoc replication transfer on a volume with volumeType Migration x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PerformReplicationTransfer.json | -| [volumesPoolChangeSample.js][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PoolChange.json | -| [volumesPopulateAvailabilityZoneSample.js][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PopulateAvailabilityZones.json | -| [volumesReInitializeReplicationSample.js][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReInitializeReplication.json | -| [volumesReestablishReplicationSample.js][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReestablishReplication.json | -| [volumesRelocateSample.js][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Relocate.json | -| [volumesReplicationStatusSample.js][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReplicationStatus.json | -| [volumesResetCifsPasswordSample.js][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResetCifsPassword.json | -| [volumesResyncReplicationSample.js][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResyncReplication.json | -| [volumesRevertRelocationSample.js][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_RevertRelocation.json | -| [volumesRevertSample.js][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Revert.json | -| [volumesUpdateSample.js][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Update.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node accountsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node accountsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/accountsCreateOrUpdateSample.js -[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/accountsDeleteSample.js -[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/accountsGetSample.js -[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/accountsListBySubscriptionSample.js -[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/accountsListSample.js -[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/accountsRenewCredentialsSample.js -[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/accountsUpdateSample.js -[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesCreateSample.js -[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesDeleteSample.js -[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesGetSample.js -[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesListSample.js -[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesUpdateSample.js -[backupvaultscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsCreateOrUpdateSample.js -[backupvaultsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsDeleteSample.js -[backupvaultsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsGetSample.js -[backupvaultslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsListByNetAppAccountSample.js -[backupvaultsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupVaultsUpdateSample.js -[backupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupsCreateSample.js -[backupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupsDeleteSample.js -[backupsgetlateststatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupsGetLatestStatusSample.js -[backupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupsGetSample.js -[backupsgetvolumelatestrestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupsGetVolumeLatestRestoreStatusSample.js -[backupslistbyvaultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupsListByVaultSample.js -[backupsunderaccountmigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupsUnderAccountMigrateBackupsSample.js -[backupsunderbackupvaultrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupsUnderBackupVaultRestoreFilesSample.js -[backupsundervolumemigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupsUnderVolumeMigrateBackupsSample.js -[backupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/backupsUpdateSample.js -[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceCheckFilePathAvailabilitySample.js -[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceCheckNameAvailabilitySample.js -[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceCheckQuotaAvailabilitySample.js -[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQueryNetworkSiblingSetSample.js -[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQueryRegionInfoSample.js -[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQuotaLimitsGetSample.js -[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQuotaLimitsListSample.js -[netappresourceregioninfosgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceRegionInfosGetSample.js -[netappresourceregioninfoslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceRegionInfosListSample.js -[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceUpdateNetworkSiblingSetSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/operationsListSample.js -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/poolsCreateOrUpdateSample.js -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/poolsDeleteSample.js -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/poolsGetSample.js -[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/poolsListSample.js -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/poolsUpdateSample.js -[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesCreateSample.js -[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesDeleteSample.js -[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesGetSample.js -[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesListSample.js -[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesListVolumesSample.js -[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesUpdateSample.js -[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsCreateSample.js -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsDeleteSample.js -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsGetSample.js -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsListSample.js -[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsRestoreFilesSample.js -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsUpdateSample.js -[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesCreateSample.js -[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesDeleteSample.js -[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesGetMetadataSample.js -[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesGetSample.js -[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesListByVolumeSample.js -[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesUpdateSample.js -[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsCreateSample.js -[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsDeleteSample.js -[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsGetSample.js -[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsListByNetAppAccountSample.js -[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesCreateSample.js -[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesDeleteSample.js -[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesGetSample.js -[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesListByVolumeSample.js -[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesUpdateSample.js -[volumesauthorizeexternalreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesAuthorizeExternalReplicationSample.js -[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesAuthorizeReplicationSample.js -[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesBreakFileLocksSample.js -[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesBreakReplicationSample.js -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesCreateOrUpdateSample.js -[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesDeleteReplicationSample.js -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesDeleteSample.js -[volumesfinalizeexternalreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesFinalizeExternalReplicationSample.js -[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesFinalizeRelocationSample.js -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesGetSample.js -[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesListGetGroupIdListForLdapUserSample.js -[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesListReplicationsSample.js -[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesListSample.js -[volumespeerexternalclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPeerExternalClusterSample.js -[volumesperformreplicationtransfersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPerformReplicationTransferSample.js -[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPoolChangeSample.js -[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPopulateAvailabilityZoneSample.js -[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesReInitializeReplicationSample.js -[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesReestablishReplicationSample.js -[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesRelocateSample.js -[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesReplicationStatusSample.js -[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesResetCifsPasswordSample.js -[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesResyncReplicationSample.js -[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesRevertRelocationSample.js -[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesRevertSample.js -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/javascript/volumesUpdateSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp/README.md diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/accountsCreateOrUpdateSample.js deleted file mode 100644 index f2bf75df991b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsCreateOrUpdateSample.js +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update the specified NetApp account within the resource group - * - * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdate.json - */ -async function accountsCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update the specified NetApp account within the resource group - * - * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdateAD.json - */ -async function accountsCreateOrUpdateWithActiveDirectory() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body = { - activeDirectories: [ - { - aesEncryption: true, - dns: "10.10.10.3", - domain: "10.10.10.3", - ldapOverTLS: false, - ldapSigning: false, - organizationalUnit: "OU=Engineering", - password: "ad_password", - site: "SiteName", - smbServerName: "SMBServer", - username: "ad_user_name", - }, - ], - location: "eastus", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -async function main() { - accountsCreateOrUpdate(); - accountsCreateOrUpdateWithActiveDirectory(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/accountsDeleteSample.js deleted file mode 100644 index 8fe8ccf104e2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified NetApp account - * - * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Delete.json - */ -async function accountsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginDeleteAndWait(resourceGroupName, accountName); - console.log(result); -} - -async function main() { - accountsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsGetSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/accountsGetSample.js deleted file mode 100644 index af4860d58dde..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the NetApp account - * - * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Get.json - */ -async function accountsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.get(resourceGroupName, accountName); - console.log(result); -} - -async function main() { - accountsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsListBySubscriptionSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/accountsListBySubscriptionSample.js deleted file mode 100644 index 29fe6ed623c9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List and describe all NetApp accounts in the subscription. - * - * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json - */ -async function accountsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accounts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsListSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/accountsListSample.js deleted file mode 100644 index 8c4569442c3e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsListSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List and describe all NetApp accounts in the resource group. - * - * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json - */ -async function accountsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accounts.list(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsRenewCredentialsSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/accountsRenewCredentialsSample.js deleted file mode 100644 index d7a12ac61873..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsRenewCredentialsSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * - * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_RenewCredentials.json - */ -async function accountsRenewCredentials() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginRenewCredentialsAndWait(resourceGroupName, accountName); - console.log(result); -} - -async function main() { - accountsRenewCredentials(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/accountsUpdateSample.js deleted file mode 100644 index 20ebf903acea..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/accountsUpdateSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the specified NetApp account - * - * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Update.json - */ -async function accountsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginUpdateAndWait(resourceGroupName, accountName, body); - console.log(result); -} - -async function main() { - accountsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesCreateSample.js deleted file mode 100644 index 9152d159c414..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesCreateSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a backup policy for Netapp Account - * - * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Create.json - */ -async function backupPoliciesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupPolicyName = "backupPolicyName"; - const body = { - dailyBackupsToKeep: 10, - enabled: true, - location: "westus", - monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.beginCreateAndWait( - resourceGroupName, - accountName, - backupPolicyName, - body, - ); - console.log(result); -} - -async function main() { - backupPoliciesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesDeleteSample.js deleted file mode 100644 index 9f657add4022..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete backup policy - * - * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Delete.json - */ -async function backupPoliciesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupPolicyName = "backupPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.beginDeleteAndWait( - resourceGroupName, - accountName, - backupPolicyName, - ); - console.log(result); -} - -async function main() { - backupPoliciesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesGetSample.js deleted file mode 100644 index b2651c961978..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a particular backup Policy - * - * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Get.json - */ -async function backupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupPolicyName = "backupPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.get(resourceGroupName, accountName, backupPolicyName); - console.log(result); -} - -async function main() { - backupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesListSample.js deleted file mode 100644 index 214bd4050434..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesListSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List backup policies for Netapp Account - * - * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_List.json - */ -async function backupPoliciesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupPolicies.list(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupPoliciesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesUpdateSample.js deleted file mode 100644 index 7803d265b827..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/backupPoliciesUpdateSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a backup policy for Netapp Account - * - * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Update.json - */ -async function backupPoliciesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupPolicyName = "backupPolicyName"; - const body = { - dailyBackupsToKeep: 5, - enabled: false, - location: "westus", - monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.beginUpdateAndWait( - resourceGroupName, - accountName, - backupPolicyName, - body, - ); - console.log(result); -} - -async function main() { - backupPoliciesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceCheckFilePathAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceCheckFilePathAvailabilitySample.js deleted file mode 100644 index ff93f7ab2e84..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceCheckFilePathAvailabilitySample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Check if a file path is available. - * - * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckFilePathAvailability.json - */ -async function checkFilePathAvailability() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const name = "my-exact-filepth"; - const subnetId = - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"; - const availabilityZone = "undefined"; - const options = { - availabilityZone, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.checkFilePathAvailability( - location, - name, - subnetId, - options, - ); - console.log(result); -} - -async function main() { - checkFilePathAvailability(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceCheckNameAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceCheckNameAvailabilitySample.js deleted file mode 100644 index 679ede83a8ac..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceCheckNameAvailabilitySample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Check if a resource name is available. - * - * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckNameAvailability.json - */ -async function checkNameAvailability() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const name = "accName"; - const typeParam = "Microsoft.NetApp/netAppAccounts"; - const resourceGroup = "myRG"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.checkNameAvailability( - location, - name, - typeParam, - resourceGroup, - ); - console.log(result); -} - -async function main() { - checkNameAvailability(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceCheckQuotaAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceCheckQuotaAvailabilitySample.js deleted file mode 100644 index 995fc58bbbfa..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceCheckQuotaAvailabilitySample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Check if a quota is available. - * - * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckQuotaAvailability.json - */ -async function checkQuotaAvailability() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const name = "resource1"; - const typeParam = "Microsoft.NetApp/netAppAccounts"; - const resourceGroup = "myRG"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.checkQuotaAvailability( - location, - name, - typeParam, - resourceGroup, - ); - console.log(result); -} - -async function main() { - checkQuotaAvailability(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQueryNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQueryNetworkSiblingSetSample.js deleted file mode 100644 index 71be01e8891f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQueryNetworkSiblingSetSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details of the specified network sibling set. - * - * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Query.json - */ -async function networkSiblingSetQuery() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; - const subnetId = - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.queryNetworkSiblingSet( - location, - networkSiblingSetId, - subnetId, - ); - console.log(result); -} - -async function main() { - networkSiblingSetQuery(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQueryRegionInfoSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQueryRegionInfoSample.js deleted file mode 100644 index cb457463c5e1..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQueryRegionInfoSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfo.json - */ -async function regionInfoQuery() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.queryRegionInfo(location); - console.log(result); -} - -async function main() { - regionInfoQuery(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQuotaLimitsGetSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQuotaLimitsGetSample.js deleted file mode 100644 index bb6623c1fb00..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQuotaLimitsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the default and current subscription quota limit - * - * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_Get.json - */ -async function quotaLimits() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const quotaLimitName = "totalCoolAccessVolumesPerSubscription"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceQuotaLimits.get(location, quotaLimitName); - console.log(result); -} - -async function main() { - quotaLimits(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQuotaLimitsListSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQuotaLimitsListSample.js deleted file mode 100644 index 3fe10e4bbf93..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceQuotaLimitsListSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the default and current limits for quotas - * - * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_List.json - */ -async function quotaLimits() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.netAppResourceQuotaLimits.list(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - quotaLimits(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceUpdateNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceUpdateNetworkSiblingSetSample.js deleted file mode 100644 index 449e795bedc9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/netAppResourceUpdateNetworkSiblingSetSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update the network features of the specified network sibling set. - * - * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Update.json - */ -async function networkFeaturesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; - const subnetId = - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; - const networkSiblingSetStateId = "12345_44420.8001578125"; - const networkFeatures = "Standard"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( - location, - networkSiblingSetId, - subnetId, - networkSiblingSetStateId, - networkFeatures, - ); - console.log(result); -} - -async function main() { - networkFeaturesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/operationsListSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/operationsListSample.js deleted file mode 100644 index 21e6d4b949fc..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/operationsListSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations - * - * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/OperationList.json - */ -async function operationList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - operationList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/package.json b/sdk/netapp/arm-netapp/samples/v21/javascript/package.json deleted file mode 100644 index 4fd4687db5bd..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-netapp-js", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/netapp/arm-netapp" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", - "dependencies": { - "@azure/arm-netapp": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - } -} diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/poolsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/poolsCreateOrUpdateSample.js deleted file mode 100644 index 2253d91726bd..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/poolsCreateOrUpdateSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or Update a capacity pool - * - * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_CreateOrUpdate.json - */ -async function poolsCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const body = { - location: "eastus", - qosType: "Auto", - serviceLevel: "Premium", - size: 4398046511104, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - poolName, - body, - ); - console.log(result); -} - -async function main() { - poolsCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/poolsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/poolsDeleteSample.js deleted file mode 100644 index 700e0851f530..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/poolsDeleteSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified capacity pool - * - * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Delete.json - */ -async function poolsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.beginDeleteAndWait(resourceGroupName, accountName, poolName); - console.log(result); -} - -async function main() { - poolsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/poolsGetSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/poolsGetSample.js deleted file mode 100644 index cf2cf91cbb37..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/poolsGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details of the specified capacity pool - * - * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Get.json - */ -async function poolsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.get(resourceGroupName, accountName, poolName); - console.log(result); -} - -async function main() { - poolsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/poolsListSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/poolsListSample.js deleted file mode 100644 index 82085bdf30d2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/poolsListSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all capacity pools in the NetApp Account - * - * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_List.json - */ -async function poolsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.pools.list(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - poolsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/poolsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/poolsUpdateSample.js deleted file mode 100644 index 58f241a880db..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/poolsUpdateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the specified capacity pool - * - * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Update.json - */ -async function poolsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const body = {}; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - body, - ); - console.log(result); -} - -async function main() { - poolsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/sample.env b/sdk/netapp/arm-netapp/samples/v21/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesCreateSample.js deleted file mode 100644 index f1518e863408..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesCreateSample.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a snapshot policy - * - * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Create.json - */ -async function snapshotPoliciesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const body = { - dailySchedule: { hour: 14, minute: 30, snapshotsToKeep: 4 }, - enabled: true, - hourlySchedule: { minute: 50, snapshotsToKeep: 2 }, - location: "eastus", - monthlySchedule: { - daysOfMonth: "10,11,12", - hour: 14, - minute: 15, - snapshotsToKeep: 5, - }, - weeklySchedule: { - day: "Wednesday", - hour: 14, - minute: 45, - snapshotsToKeep: 3, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.create( - resourceGroupName, - accountName, - snapshotPolicyName, - body, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesDeleteSample.js deleted file mode 100644 index d56264a0fc4a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete snapshot policy - * - * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Delete.json - */ -async function snapshotPoliciesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const snapshotPolicyName = "snapshotPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.beginDeleteAndWait( - resourceGroupName, - accountName, - snapshotPolicyName, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesGetSample.js deleted file mode 100644 index feece56ac527..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a snapshot Policy - * - * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Get.json - */ -async function snapshotPoliciesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.get( - resourceGroupName, - accountName, - snapshotPolicyName, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesListSample.js deleted file mode 100644 index f313ac0582c1..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesListSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List snapshot policy - * - * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_List.json - */ -async function snapshotPoliciesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.snapshotPolicies.list(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - snapshotPoliciesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesListVolumesSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesListVolumesSample.js deleted file mode 100644 index 28b1c8874da4..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesListVolumesSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get volumes associated with snapshot policy - * - * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_ListVolumes.json - */ -async function snapshotPoliciesListVolumes() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.listVolumes( - resourceGroupName, - accountName, - snapshotPolicyName, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesListVolumes(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesUpdateSample.js deleted file mode 100644 index 5f9fbbecacb7..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotPoliciesUpdateSample.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a snapshot policy - * - * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Update.json - */ -async function snapshotPoliciesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const body = { - dailySchedule: { hour: 14, minute: 30, snapshotsToKeep: 4 }, - enabled: true, - hourlySchedule: { minute: 50, snapshotsToKeep: 2 }, - location: "eastus", - monthlySchedule: { - daysOfMonth: "10,11,12", - hour: 14, - minute: 15, - snapshotsToKeep: 5, - }, - weeklySchedule: { - day: "Wednesday", - hour: 14, - minute: 45, - snapshotsToKeep: 3, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.beginUpdateAndWait( - resourceGroupName, - accountName, - snapshotPolicyName, - body, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsCreateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsCreateSample.js deleted file mode 100644 index 8f20c254f07c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsCreateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create the specified snapshot within the given volume - * - * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Create.json - */ -async function snapshotsCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const body = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - body, - ); - console.log(result); -} - -async function main() { - snapshotsCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsDeleteSample.js deleted file mode 100644 index 729f25a7d1ac..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsDeleteSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete snapshot - * - * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Delete.json - */ -async function snapshotsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - ); - console.log(result); -} - -async function main() { - snapshotsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsGetSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsGetSample.js deleted file mode 100644 index 673c0676ff8f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsGetSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details of the specified snapshot - * - * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Get.json - */ -async function snapshotsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.get( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - ); - console.log(result); -} - -async function main() { - snapshotsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsListSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsListSample.js deleted file mode 100644 index f33de0ec3a52..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsListSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all snapshots associated with the volume - * - * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_List.json - */ -async function snapshotsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.snapshots.list( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - snapshotsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsRestoreFilesSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsRestoreFilesSample.js deleted file mode 100644 index 2c3a54b036a9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsRestoreFilesSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem - * - * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_SingleFileRestore.json - */ -async function snapshotsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const body = { - filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - body, - ); - console.log(result); -} - -async function main() { - snapshotsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsUpdateSample.js deleted file mode 100644 index b6478440393e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/snapshotsUpdateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a snapshot - * - * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Update.json - */ -async function snapshotsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const body = {}; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - body, - ); - console.log(result); -} - -async function main() { - snapshotsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesCreateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesCreateSample.js deleted file mode 100644 index f5f96a170cd9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesCreateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * - * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Create.json - */ -async function subvolumesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const body = { path: "/subvolumePath" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - body, - ); - console.log(result); -} - -async function main() { - subvolumesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesDeleteSample.js deleted file mode 100644 index 07e34f7fc414..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesDeleteSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete subvolume - * - * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Delete.json - */ -async function subvolumesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - ); - console.log(result); -} - -async function main() { - subvolumesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesGetMetadataSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesGetMetadataSample.js deleted file mode 100644 index 9946be180d0e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesGetMetadataSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details of the specified subvolume - * - * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Metadata.json - */ -async function subvolumesMetadata() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginGetMetadataAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - ); - console.log(result); -} - -async function main() { - subvolumesMetadata(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesGetSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesGetSample.js deleted file mode 100644 index 1201fbaec706..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesGetSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns the path associated with the subvolumeName provided - * - * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Get.json - */ -async function subvolumesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.get( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - ); - console.log(result); -} - -async function main() { - subvolumesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesListByVolumeSample.js deleted file mode 100644 index aabe47e5d75e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesListByVolumeSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns a list of the subvolumes in the volume - * - * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_List.json - */ -async function subvolumesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.subvolumes.listByVolume( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - subvolumesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesUpdateSample.js deleted file mode 100644 index f3c3fef8aa1b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/subvolumesUpdateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a subvolume - * - * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Update.json - */ -async function subvolumesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const body = { path: "/subvolumePath" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - body, - ); - console.log(result); -} - -async function main() { - subvolumesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsCreateSample.js deleted file mode 100644 index 2f59c2b7eb06..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsCreateSample.js +++ /dev/null @@ -1,669 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a volume group along with specified volumes - * - * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_Oracle.json - */ -async function volumeGroupsCreateOracle() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const body = { - groupMetaData: { - applicationIdentifier: "OR2", - applicationType: "ORACLE", - groupDescription: "Volume group", - }, - location: "westus", - volumes: [ - { - name: "test-ora-data1", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data1", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data1", - zones: ["1"], - }, - { - name: "test-ora-data2", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data2", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data2", - zones: ["1"], - }, - { - name: "test-ora-data3", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data3", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data3", - zones: ["1"], - }, - { - name: "test-ora-data4", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data4", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data4", - zones: ["1"], - }, - { - name: "test-ora-data5", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data5", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data5", - zones: ["1"], - }, - { - name: "test-ora-data6", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data6", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data6", - zones: ["1"], - }, - { - name: "test-ora-data7", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data7", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data7", - zones: ["1"], - }, - { - name: "test-ora-data8", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data8", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data8", - zones: ["1"], - }, - { - name: "test-ora-log", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-log", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-log", - zones: ["1"], - }, - { - name: "test-ora-log-mirror", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-log-mirror", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-log-mirror", - zones: ["1"], - }, - { - name: "test-ora-binary", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-binary", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-binary", - zones: ["1"], - }, - { - name: "test-ora-backup", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-backup", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-backup", - zones: ["1"], - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginCreateAndWait( - resourceGroupName, - accountName, - volumeGroupName, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a volume group along with specified volumes - * - * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_SapHana.json - */ -async function volumeGroupsCreateSapHana() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const body = { - groupMetaData: { - applicationIdentifier: "SH9", - applicationType: "SAP-HANA", - groupDescription: "Volume group", - }, - location: "westus", - volumes: [ - { - name: "test-data-mnt00001", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-data-mnt00001", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "data", - }, - { - name: "test-log-mnt00001", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-log-mnt00001", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "log", - }, - { - name: "test-shared", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-shared", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "shared", - }, - { - name: "test-data-backup", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-data-backup", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "data-backup", - }, - { - name: "test-log-backup", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-log-backup", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "log-backup", - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginCreateAndWait( - resourceGroupName, - accountName, - volumeGroupName, - body, - ); - console.log(result); -} - -async function main() { - volumeGroupsCreateOracle(); - volumeGroupsCreateSapHana(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsDeleteSample.js deleted file mode 100644 index b8389852f5d8..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. - * - * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Delete.json - */ -async function volumeGroupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginDeleteAndWait( - resourceGroupName, - accountName, - volumeGroupName, - ); - console.log(result); -} - -async function main() { - volumeGroupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsGetSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsGetSample.js deleted file mode 100644 index 18867c320758..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsGetSample.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details of the specified volume group - * - * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_Oracle.json - */ -async function volumeGroupsGetOracle() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.get(resourceGroupName, accountName, volumeGroupName); - console.log(result); -} - -/** - * This sample demonstrates how to Get details of the specified volume group - * - * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_SapHana.json - */ -async function volumeGroupsGetSapHana() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.get(resourceGroupName, accountName, volumeGroupName); - console.log(result); -} - -async function main() { - volumeGroupsGetOracle(); - volumeGroupsGetSapHana(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsListByNetAppAccountSample.js deleted file mode 100644 index fa2ead48f8dd..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeGroupsListByNetAppAccountSample.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all volume groups for given account - * - * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_Oracle.json - */ -async function volumeGroupsListOracle() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumeGroups.listByNetAppAccount(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List all volume groups for given account - * - * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_SapHana.json - */ -async function volumeGroupsListSapHana() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumeGroups.listByNetAppAccount(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumeGroupsListOracle(); - volumeGroupsListSapHana(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesCreateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesCreateSample.js deleted file mode 100644 index fdda513887ee..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesCreateSample.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create the specified quota rule within the given volume - * - * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Create.json - */ -async function volumeQuotaRulesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const body = { - location: "westus", - quotaSizeInKiBs: 100005, - quotaTarget: "1821", - quotaType: "IndividualUserQuota", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - body, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesDeleteSample.js deleted file mode 100644 index e7ea1a50600b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesDeleteSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete quota rule - * - * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Delete.json - */ -async function volumeQuotaRulesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesGetSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesGetSample.js deleted file mode 100644 index ee738cf20f04..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesGetSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get details of the specified quota rule - * - * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Get.json - */ -async function volumeQuotaRulesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.get( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesListByVolumeSample.js deleted file mode 100644 index 98dadae63b81..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesListByVolumeSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all quota rules associated with the volume - * - * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_List.json - */ -async function volumeQuotaRulesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumeQuotaRules.listByVolume( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumeQuotaRulesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesUpdateSample.js deleted file mode 100644 index d766ae7a48c6..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumeQuotaRulesUpdateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a quota rule - * - * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Update.json - */ -async function volumeQuotaRulesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const body = { quotaSizeInKiBs: 100009 }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - body, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesAuthorizeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesAuthorizeReplicationSample.js deleted file mode 100644 index 75734724680c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesAuthorizeReplicationSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Authorize the replication connection on the source volume - * - * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeReplication.json - */ -async function volumesAuthorizeReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - remoteVolumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginAuthorizeReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesAuthorizeReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesBreakFileLocksSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesBreakFileLocksSample.js deleted file mode 100644 index 9d6f2f94c22b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesBreakFileLocksSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Break all the file locks on a volume - * - * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakFileLocks.json - */ -async function volumesBreakFileLocks() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - clientIp: "101.102.103.104", - confirmRunningDisruptiveOperation: true, - }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginBreakFileLocksAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - ); - console.log(result); -} - -async function main() { - volumesBreakFileLocks(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesBreakReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesBreakReplicationSample.js deleted file mode 100644 index 37db5e42d52d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesBreakReplicationSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Break the replication connection on the destination volume - * - * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakReplication.json - */ -async function volumesBreakReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { forceBreakReplication: false }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginBreakReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - ); - console.log(result); -} - -async function main() { - volumesBreakReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesCreateOrUpdateSample.js deleted file mode 100644 index 458207fb498d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesCreateOrUpdateSample.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update the specified volume within the capacity pool - * - * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_CreateOrUpdate.json - */ -async function volumesCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - creationToken: "my-unique-file-path", - location: "eastus", - serviceLevel: "Premium", - subnetId: - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - usageThreshold: 107374182400, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesDeleteReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesDeleteReplicationSample.js deleted file mode 100644 index c31a71556044..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesDeleteReplicationSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication - * - * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_DeleteReplication.json - */ -async function volumesDeleteReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginDeleteReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesDeleteReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesDeleteSample.js deleted file mode 100644 index 5f05fc483825..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesDeleteSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified volume - * - * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Delete.json - */ -async function volumesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesFinalizeRelocationSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesFinalizeRelocationSample.js deleted file mode 100644 index f803908a5b0a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesFinalizeRelocationSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. - * - * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeRelocation.json - */ -async function volumesFinalizeRelocation() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginFinalizeRelocationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesFinalizeRelocation(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesGetSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesGetSample.js deleted file mode 100644 index b4210c57e06c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesGetSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the details of the specified volume - * - * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Get.json - */ -async function volumesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.get(resourceGroupName, accountName, poolName, volumeName); - console.log(result); -} - -async function main() { - volumesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesListGetGroupIdListForLdapUserSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesListGetGroupIdListForLdapUserSample.js deleted file mode 100644 index 5ce3044c81d0..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesListGetGroupIdListForLdapUserSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User - * - * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/GroupIdListForLDAPUser.json - */ -async function getGroupIdListForUser() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { username: "user1" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginListGetGroupIdListForLdapUserAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - getGroupIdListForUser(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesListReplicationsSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesListReplicationsSample.js deleted file mode 100644 index b8b5c41bd251..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesListReplicationsSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all replications for a specified volume - * - * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ListReplications.json - */ -async function volumesListReplications() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.listReplications( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumesListReplications(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesListSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesListSample.js deleted file mode 100644 index 6a00026729ba..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesListSample.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all volumes within the capacity pool - * - * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_List.json - */ -async function volumesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.list(resourceGroupName, accountName, poolName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPoolChangeSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPoolChangeSample.js deleted file mode 100644 index 76e418a717b7..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPoolChangeSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Moves volume to another pool - * - * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PoolChange.json - */ -async function volumesAuthorizeReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - newPoolResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginPoolChangeAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesAuthorizeReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPopulateAvailabilityZoneSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPopulateAvailabilityZoneSample.js deleted file mode 100644 index bafaa48ded25..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesPopulateAvailabilityZoneSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to This operation will populate availability zone information for a volume - * - * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PopulateAvailabilityZones.json - */ -async function volumesPopulateAvailabilityZones() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginPopulateAvailabilityZoneAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesPopulateAvailabilityZones(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesReInitializeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesReInitializeReplicationSample.js deleted file mode 100644 index aaf51f31cbe1..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesReInitializeReplicationSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Re-Initializes the replication connection on the destination volume - * - * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReInitializeReplication.json - */ -async function volumesReInitializeReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginReInitializeReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesReInitializeReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesReestablishReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesReestablishReplicationSample.js deleted file mode 100644 index 6d1b3c8779f8..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesReestablishReplicationSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * - * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReestablishReplication.json - */ -async function volumesReestablishReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - sourceVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginReestablishReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesReestablishReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesRelocateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesRelocateSample.js deleted file mode 100644 index c239ce012481..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesRelocateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Relocates volume to a new stamp - * - * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Relocate.json - */ -async function volumesRelocate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = {}; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginRelocateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - ); - console.log(result); -} - -async function main() { - volumesRelocate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesReplicationStatusSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesReplicationStatusSample.js deleted file mode 100644 index e3265de2fa9d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesReplicationStatusSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the status of the replication - * - * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReplicationStatus.json - */ -async function volumesReplicationStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.replicationStatus( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesReplicationStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesResetCifsPasswordSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesResetCifsPasswordSample.js deleted file mode 100644 index df2c6225b5e2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesResetCifsPasswordSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Reset cifs password from volume - * - * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResetCifsPassword.json - */ -async function volumesResetCifsPassword() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginResetCifsPasswordAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesResetCifsPassword(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesResyncReplicationSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesResyncReplicationSample.js deleted file mode 100644 index 05d2824701ed..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesResyncReplicationSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * - * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResyncReplication.json - */ -async function volumesResyncReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginResyncReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesResyncReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesRevertRelocationSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesRevertRelocationSample.js deleted file mode 100644 index cc224d5331a7..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesRevertRelocationSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * - * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_RevertRelocation.json - */ -async function volumesRevertRelocation() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginRevertRelocationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesRevertRelocation(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesRevertSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesRevertSample.js deleted file mode 100644 index 6368284d0ba6..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesRevertSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Revert a volume to the snapshot specified in the body - * - * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Revert.json - */ -async function volumesRevert() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - snapshotId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginRevertAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesRevert(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v21/javascript/volumesUpdateSample.js deleted file mode 100644 index 36923be54de2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/javascript/volumesUpdateSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the specified volume - * - * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Update.json - */ -async function volumesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = {}; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/README.md b/sdk/netapp/arm-netapp/samples/v21/typescript/README.md deleted file mode 100644 index 9ac340ec312d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/README.md +++ /dev/null @@ -1,253 +0,0 @@ -# client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [accountsCreateOrUpdateSample.ts][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdate.json | -| [accountsDeleteSample.ts][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Delete.json | -| [accountsGetSample.ts][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Get.json | -| [accountsListBySubscriptionSample.ts][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json | -| [accountsListSample.ts][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json | -| [accountsRenewCredentialsSample.ts][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_RenewCredentials.json | -| [accountsUpdateSample.ts][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Update.json | -| [backupPoliciesCreateSample.ts][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Create.json | -| [backupPoliciesDeleteSample.ts][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Delete.json | -| [backupPoliciesGetSample.ts][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Get.json | -| [backupPoliciesListSample.ts][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_List.json | -| [backupPoliciesUpdateSample.ts][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Update.json | -| [backupVaultsCreateOrUpdateSample.ts][backupvaultscreateorupdatesample] | Create or update the specified Backup Vault in the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Create.json | -| [backupVaultsDeleteSample.ts][backupvaultsdeletesample] | Delete the specified Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Delete.json | -| [backupVaultsGetSample.ts][backupvaultsgetsample] | Get the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Get.json | -| [backupVaultsListByNetAppAccountSample.ts][backupvaultslistbynetappaccountsample] | List and describe all Backup Vaults in the NetApp account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_List.json | -| [backupVaultsUpdateSample.ts][backupvaultsupdatesample] | Patch the specified NetApp Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Update.json | -| [backupsCreateSample.ts][backupscreatesample] | Create a backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Create.json | -| [backupsDeleteSample.ts][backupsdeletesample] | Delete a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Delete.json | -| [backupsGetLatestStatusSample.ts][backupsgetlateststatussample] | Get the latest status of the backup for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestBackupStatus.json | -| [backupsGetSample.ts][backupsgetsample] | Get the specified Backup under Backup Vault. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Get.json | -| [backupsGetVolumeLatestRestoreStatusSample.ts][backupsgetvolumelatestrestorestatussample] | Get the latest status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestRestoreStatus.json | -| [backupsListByVaultSample.ts][backupslistbyvaultsample] | List all backups Under a Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_List.json | -| [backupsUnderAccountMigrateBackupsSample.ts][backupsunderaccountmigratebackupssample] | Migrate the backups under a NetApp account to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderAccount_Migrate.json | -| [backupsUnderBackupVaultRestoreFilesSample.ts][backupsunderbackupvaultrestorefilessample] | Restore the specified files from the specified backup to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_SingleFileRestore.json | -| [backupsUnderVolumeMigrateBackupsSample.ts][backupsundervolumemigratebackupssample] | Migrate the backups under volume to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderVolume_Migrate.json | -| [backupsUpdateSample.ts][backupsupdatesample] | Patch a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Update.json | -| [netAppResourceCheckFilePathAvailabilitySample.ts][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckFilePathAvailability.json | -| [netAppResourceCheckNameAvailabilitySample.ts][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckNameAvailability.json | -| [netAppResourceCheckQuotaAvailabilitySample.ts][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckQuotaAvailability.json | -| [netAppResourceQueryNetworkSiblingSetSample.ts][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Query.json | -| [netAppResourceQueryRegionInfoSample.ts][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfo.json | -| [netAppResourceQuotaLimitsGetSample.ts][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_Get.json | -| [netAppResourceQuotaLimitsListSample.ts][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_List.json | -| [netAppResourceRegionInfosGetSample.ts][netappresourceregioninfosgetsample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_Get.json | -| [netAppResourceRegionInfosListSample.ts][netappresourceregioninfoslistsample] | Provides region specific information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_List.json | -| [netAppResourceUpdateNetworkSiblingSetSample.ts][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Update.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/OperationList.json | -| [poolsCreateOrUpdateSample.ts][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_CreateOrUpdate.json | -| [poolsDeleteSample.ts][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Delete.json | -| [poolsGetSample.ts][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Get.json | -| [poolsListSample.ts][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_List.json | -| [poolsUpdateSample.ts][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Update.json | -| [snapshotPoliciesCreateSample.ts][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Create.json | -| [snapshotPoliciesDeleteSample.ts][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Delete.json | -| [snapshotPoliciesGetSample.ts][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Get.json | -| [snapshotPoliciesListSample.ts][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_List.json | -| [snapshotPoliciesListVolumesSample.ts][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_ListVolumes.json | -| [snapshotPoliciesUpdateSample.ts][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Update.json | -| [snapshotsCreateSample.ts][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Create.json | -| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Delete.json | -| [snapshotsGetSample.ts][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Get.json | -| [snapshotsListSample.ts][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_List.json | -| [snapshotsRestoreFilesSample.ts][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_SingleFileRestore.json | -| [snapshotsUpdateSample.ts][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Update.json | -| [subvolumesCreateSample.ts][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Create.json | -| [subvolumesDeleteSample.ts][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Delete.json | -| [subvolumesGetMetadataSample.ts][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Metadata.json | -| [subvolumesGetSample.ts][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Get.json | -| [subvolumesListByVolumeSample.ts][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_List.json | -| [subvolumesUpdateSample.ts][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Update.json | -| [volumeGroupsCreateSample.ts][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_Oracle.json | -| [volumeGroupsDeleteSample.ts][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Delete.json | -| [volumeGroupsGetSample.ts][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_Oracle.json | -| [volumeGroupsListByNetAppAccountSample.ts][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_Oracle.json | -| [volumeQuotaRulesCreateSample.ts][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Create.json | -| [volumeQuotaRulesDeleteSample.ts][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Delete.json | -| [volumeQuotaRulesGetSample.ts][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Get.json | -| [volumeQuotaRulesListByVolumeSample.ts][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_List.json | -| [volumeQuotaRulesUpdateSample.ts][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Update.json | -| [volumesAuthorizeExternalReplicationSample.ts][volumesauthorizeexternalreplicationsample] | Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once the SVM have been peered a SnapMirror will be created x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeExternalReplication.json | -| [volumesAuthorizeReplicationSample.ts][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeReplication.json | -| [volumesBreakFileLocksSample.ts][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakFileLocks.json | -| [volumesBreakReplicationSample.ts][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakReplication.json | -| [volumesCreateOrUpdateSample.ts][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_CreateOrUpdate.json | -| [volumesDeleteReplicationSample.ts][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_DeleteReplication.json | -| [volumesDeleteSample.ts][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Delete.json | -| [volumesFinalizeExternalReplicationSample.ts][volumesfinalizeexternalreplicationsample] | Finalizes the migration of an external volume by releasing the replication and breaking the external cluster peering if no other migration is active. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeExternalReplication.json | -| [volumesFinalizeRelocationSample.ts][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeRelocation.json | -| [volumesGetSample.ts][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Get.json | -| [volumesListGetGroupIdListForLdapUserSample.ts][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/GroupIdListForLDAPUser.json | -| [volumesListReplicationsSample.ts][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ListReplications.json | -| [volumesListSample.ts][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_List.json | -| [volumesPeerExternalClusterSample.ts][volumespeerexternalclustersample] | Starts peering the external cluster for this migration volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PeerExternalCluster.json | -| [volumesPerformReplicationTransferSample.ts][volumesperformreplicationtransfersample] | Performs an adhoc replication transfer on a volume with volumeType Migration x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PerformReplicationTransfer.json | -| [volumesPoolChangeSample.ts][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PoolChange.json | -| [volumesPopulateAvailabilityZoneSample.ts][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PopulateAvailabilityZones.json | -| [volumesReInitializeReplicationSample.ts][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReInitializeReplication.json | -| [volumesReestablishReplicationSample.ts][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReestablishReplication.json | -| [volumesRelocateSample.ts][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Relocate.json | -| [volumesReplicationStatusSample.ts][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReplicationStatus.json | -| [volumesResetCifsPasswordSample.ts][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResetCifsPassword.json | -| [volumesResyncReplicationSample.ts][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResyncReplication.json | -| [volumesRevertRelocationSample.ts][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_RevertRelocation.json | -| [volumesRevertSample.ts][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Revert.json | -| [volumesUpdateSample.ts][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Update.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/accountsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node dist/accountsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsCreateOrUpdateSample.ts -[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsDeleteSample.ts -[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsGetSample.ts -[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsListBySubscriptionSample.ts -[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsListSample.ts -[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsRenewCredentialsSample.ts -[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsUpdateSample.ts -[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesCreateSample.ts -[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesDeleteSample.ts -[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesGetSample.ts -[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesListSample.ts -[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesUpdateSample.ts -[backupvaultscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsCreateOrUpdateSample.ts -[backupvaultsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsDeleteSample.ts -[backupvaultsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsGetSample.ts -[backupvaultslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsListByNetAppAccountSample.ts -[backupvaultsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupVaultsUpdateSample.ts -[backupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsCreateSample.ts -[backupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsDeleteSample.ts -[backupsgetlateststatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsGetLatestStatusSample.ts -[backupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsGetSample.ts -[backupsgetvolumelatestrestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsGetVolumeLatestRestoreStatusSample.ts -[backupslistbyvaultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsListByVaultSample.ts -[backupsunderaccountmigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUnderAccountMigrateBackupsSample.ts -[backupsunderbackupvaultrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts -[backupsundervolumemigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts -[backupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupsUpdateSample.ts -[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts -[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceCheckNameAvailabilitySample.ts -[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts -[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts -[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQueryRegionInfoSample.ts -[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQuotaLimitsGetSample.ts -[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQuotaLimitsListSample.ts -[netappresourceregioninfosgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceRegionInfosGetSample.ts -[netappresourceregioninfoslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceRegionInfosListSample.ts -[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/operationsListSample.ts -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsCreateOrUpdateSample.ts -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsDeleteSample.ts -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsGetSample.ts -[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsListSample.ts -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsUpdateSample.ts -[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesCreateSample.ts -[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesDeleteSample.ts -[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesGetSample.ts -[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesListSample.ts -[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesListVolumesSample.ts -[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesUpdateSample.ts -[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsCreateSample.ts -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsDeleteSample.ts -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsGetSample.ts -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsListSample.ts -[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsRestoreFilesSample.ts -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsUpdateSample.ts -[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesCreateSample.ts -[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesDeleteSample.ts -[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesGetMetadataSample.ts -[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesGetSample.ts -[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesListByVolumeSample.ts -[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesUpdateSample.ts -[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsCreateSample.ts -[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsDeleteSample.ts -[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsGetSample.ts -[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsListByNetAppAccountSample.ts -[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesCreateSample.ts -[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesDeleteSample.ts -[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesGetSample.ts -[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesListByVolumeSample.ts -[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesUpdateSample.ts -[volumesauthorizeexternalreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesAuthorizeExternalReplicationSample.ts -[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesAuthorizeReplicationSample.ts -[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesBreakFileLocksSample.ts -[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesBreakReplicationSample.ts -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesCreateOrUpdateSample.ts -[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesDeleteReplicationSample.ts -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesDeleteSample.ts -[volumesfinalizeexternalreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesFinalizeExternalReplicationSample.ts -[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesFinalizeRelocationSample.ts -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesGetSample.ts -[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts -[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesListReplicationsSample.ts -[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesListSample.ts -[volumespeerexternalclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPeerExternalClusterSample.ts -[volumesperformreplicationtransfersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPerformReplicationTransferSample.ts -[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPoolChangeSample.ts -[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPopulateAvailabilityZoneSample.ts -[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesReInitializeReplicationSample.ts -[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesReestablishReplicationSample.ts -[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesRelocateSample.ts -[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesReplicationStatusSample.ts -[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesResetCifsPasswordSample.ts -[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesResyncReplicationSample.ts -[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesRevertRelocationSample.ts -[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesRevertSample.ts -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesUpdateSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/package.json b/sdk/netapp/arm-netapp/samples/v21/typescript/package.json deleted file mode 100644 index e5e03895d47b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-netapp-ts", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/netapp/arm-netapp" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", - "dependencies": { - "@azure/arm-netapp": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.6.2", - "rimraf": "latest" - } -} diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/sample.env b/sdk/netapp/arm-netapp/samples/v21/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsCreateOrUpdateSample.ts deleted file mode 100644 index be866923aabd..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsCreateOrUpdateSample.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppAccount, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update the specified NetApp account within the resource group - * - * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdate.json - */ -async function accountsCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: NetAppAccount = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update the specified NetApp account within the resource group - * - * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdateAD.json - */ -async function accountsCreateOrUpdateWithActiveDirectory() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: NetAppAccount = { - activeDirectories: [ - { - aesEncryption: true, - dns: "10.10.10.3", - domain: "10.10.10.3", - ldapOverTLS: false, - ldapSigning: false, - organizationalUnit: "OU=Engineering", - password: "ad_password", - site: "SiteName", - smbServerName: "SMBServer", - username: "ad_user_name", - }, - ], - location: "eastus", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -async function main() { - accountsCreateOrUpdate(); - accountsCreateOrUpdateWithActiveDirectory(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsDeleteSample.ts deleted file mode 100644 index 98e9c58905f7..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsDeleteSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified NetApp account - * - * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Delete.json - */ -async function accountsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginDeleteAndWait( - resourceGroupName, - accountName, - ); - console.log(result); -} - -async function main() { - accountsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsGetSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsGetSample.ts deleted file mode 100644 index 3ef2d3189440..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsGetSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the NetApp account - * - * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Get.json - */ -async function accountsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.get(resourceGroupName, accountName); - console.log(result); -} - -async function main() { - accountsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsListBySubscriptionSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsListBySubscriptionSample.ts deleted file mode 100644 index 7b4f2c4a9131..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List and describe all NetApp accounts in the subscription. - * - * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json - */ -async function accountsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accounts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsListSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsListSample.ts deleted file mode 100644 index ec5d5f6027d8..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsListSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List and describe all NetApp accounts in the resource group. - * - * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json - */ -async function accountsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accounts.list(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsRenewCredentialsSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsRenewCredentialsSample.ts deleted file mode 100644 index 702cfb844201..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsRenewCredentialsSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * - * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_RenewCredentials.json - */ -async function accountsRenewCredentials() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginRenewCredentialsAndWait( - resourceGroupName, - accountName, - ); - console.log(result); -} - -async function main() { - accountsRenewCredentials(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsUpdateSample.ts deleted file mode 100644 index ff77c071ac74..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/accountsUpdateSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppAccountPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the specified NetApp account - * - * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Update.json - */ -async function accountsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: NetAppAccountPatch = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginUpdateAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -async function main() { - accountsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesCreateSample.ts deleted file mode 100644 index 24e4ae9cc85e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesCreateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupPolicy, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a backup policy for Netapp Account - * - * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Create.json - */ -async function backupPoliciesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupPolicyName = "backupPolicyName"; - const body: BackupPolicy = { - dailyBackupsToKeep: 10, - enabled: true, - location: "westus", - monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.beginCreateAndWait( - resourceGroupName, - accountName, - backupPolicyName, - body, - ); - console.log(result); -} - -async function main() { - backupPoliciesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesDeleteSample.ts deleted file mode 100644 index 4081cc1c84fe..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete backup policy - * - * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Delete.json - */ -async function backupPoliciesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupPolicyName = "backupPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.beginDeleteAndWait( - resourceGroupName, - accountName, - backupPolicyName, - ); - console.log(result); -} - -async function main() { - backupPoliciesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesGetSample.ts deleted file mode 100644 index 7b39b11a5c83..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a particular backup Policy - * - * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Get.json - */ -async function backupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupPolicyName = "backupPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.get( - resourceGroupName, - accountName, - backupPolicyName, - ); - console.log(result); -} - -async function main() { - backupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesListSample.ts deleted file mode 100644 index 5ae4eb0d4dcf..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesListSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List backup policies for Netapp Account - * - * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_List.json - */ -async function backupPoliciesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupPolicies.list( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupPoliciesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesUpdateSample.ts deleted file mode 100644 index f83d0e476f7b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/backupPoliciesUpdateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BackupPolicyPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a backup policy for Netapp Account - * - * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Update.json - */ -async function backupPoliciesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupPolicyName = "backupPolicyName"; - const body: BackupPolicyPatch = { - dailyBackupsToKeep: 5, - enabled: false, - location: "westus", - monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupPolicies.beginUpdateAndWait( - resourceGroupName, - accountName, - backupPolicyName, - body, - ); - console.log(result); -} - -async function main() { - backupPoliciesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts deleted file mode 100644 index 312bfd105850..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetAppResourceCheckFilePathAvailabilityOptionalParams, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Check if a file path is available. - * - * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckFilePathAvailability.json - */ -async function checkFilePathAvailability() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const name = "my-exact-filepth"; - const subnetId = - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3"; - const availabilityZone = "undefined"; - const options: NetAppResourceCheckFilePathAvailabilityOptionalParams = { - availabilityZone, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.checkFilePathAvailability( - location, - name, - subnetId, - options, - ); - console.log(result); -} - -async function main() { - checkFilePathAvailability(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceCheckNameAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceCheckNameAvailabilitySample.ts deleted file mode 100644 index 7f150570fc53..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceCheckNameAvailabilitySample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Check if a resource name is available. - * - * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckNameAvailability.json - */ -async function checkNameAvailability() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const name = "accName"; - const typeParam = "Microsoft.NetApp/netAppAccounts"; - const resourceGroup = "myRG"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.checkNameAvailability( - location, - name, - typeParam, - resourceGroup, - ); - console.log(result); -} - -async function main() { - checkNameAvailability(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts deleted file mode 100644 index ac0930547626..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Check if a quota is available. - * - * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/CheckQuotaAvailability.json - */ -async function checkQuotaAvailability() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const name = "resource1"; - const typeParam = "Microsoft.NetApp/netAppAccounts"; - const resourceGroup = "myRG"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.checkQuotaAvailability( - location, - name, - typeParam, - resourceGroup, - ); - console.log(result); -} - -async function main() { - checkQuotaAvailability(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts deleted file mode 100644 index f576b245bd0c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details of the specified network sibling set. - * - * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Query.json - */ -async function networkSiblingSetQuery() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; - const subnetId = - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.queryNetworkSiblingSet( - location, - networkSiblingSetId, - subnetId, - ); - console.log(result); -} - -async function main() { - networkSiblingSetQuery(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQueryRegionInfoSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQueryRegionInfoSample.ts deleted file mode 100644 index 60b17af11f9d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQueryRegionInfoSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfo.json - */ -async function regionInfoQuery() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.queryRegionInfo(location); - console.log(result); -} - -async function main() { - regionInfoQuery(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQuotaLimitsGetSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQuotaLimitsGetSample.ts deleted file mode 100644 index bcf775db18e5..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQuotaLimitsGetSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the default and current subscription quota limit - * - * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_Get.json - */ -async function quotaLimits() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const quotaLimitName = "totalCoolAccessVolumesPerSubscription"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceQuotaLimits.get( - location, - quotaLimitName, - ); - console.log(result); -} - -async function main() { - quotaLimits(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQuotaLimitsListSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQuotaLimitsListSample.ts deleted file mode 100644 index 43c8e0581eed..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceQuotaLimitsListSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the default and current limits for quotas - * - * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_List.json - */ -async function quotaLimits() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.netAppResourceQuotaLimits.list(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - quotaLimits(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts deleted file mode 100644 index 168c88d59fc9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update the network features of the specified network sibling set. - * - * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/NetworkSiblingSet_Update.json - */ -async function networkFeaturesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const networkSiblingSetId = "9760acf5-4638-11e7-9bdb-020073ca3333"; - const subnetId = - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/testSubnet"; - const networkSiblingSetStateId = "12345_44420.8001578125"; - const networkFeatures = "Standard"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = - await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( - location, - networkSiblingSetId, - subnetId, - networkSiblingSetStateId, - networkFeatures, - ); - console.log(result); -} - -async function main() { - networkFeaturesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/operationsListSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/operationsListSample.ts deleted file mode 100644 index 1336f706f943..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations - * - * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/OperationList.json - */ -async function operationList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - operationList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsCreateOrUpdateSample.ts deleted file mode 100644 index 059fdb4ebbc1..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CapacityPool, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or Update a capacity pool - * - * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_CreateOrUpdate.json - */ -async function poolsCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const body: CapacityPool = { - location: "eastus", - qosType: "Auto", - serviceLevel: "Premium", - size: 4398046511104, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - poolName, - body, - ); - console.log(result); -} - -async function main() { - poolsCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsDeleteSample.ts deleted file mode 100644 index 732d33235e00..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsDeleteSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified capacity pool - * - * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Delete.json - */ -async function poolsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - ); - console.log(result); -} - -async function main() { - poolsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsGetSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsGetSample.ts deleted file mode 100644 index 2049001e7ee2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details of the specified capacity pool - * - * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Get.json - */ -async function poolsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.get( - resourceGroupName, - accountName, - poolName, - ); - console.log(result); -} - -async function main() { - poolsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsListSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsListSample.ts deleted file mode 100644 index a1a871c52433..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsListSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all capacity pools in the NetApp Account - * - * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_List.json - */ -async function poolsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.pools.list(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - poolsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsUpdateSample.ts deleted file mode 100644 index 03bf830b6d12..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/poolsUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { CapacityPoolPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the specified capacity pool - * - * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Update.json - */ -async function poolsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const body: CapacityPoolPatch = {}; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.pools.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - body, - ); - console.log(result); -} - -async function main() { - poolsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesCreateSample.ts deleted file mode 100644 index 5b35ac9c0dc3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesCreateSample.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { SnapshotPolicy, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a snapshot policy - * - * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Create.json - */ -async function snapshotPoliciesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const body: SnapshotPolicy = { - dailySchedule: { hour: 14, minute: 30, snapshotsToKeep: 4 }, - enabled: true, - hourlySchedule: { minute: 50, snapshotsToKeep: 2 }, - location: "eastus", - monthlySchedule: { - daysOfMonth: "10,11,12", - hour: 14, - minute: 15, - snapshotsToKeep: 5, - }, - weeklySchedule: { - day: "Wednesday", - hour: 14, - minute: 45, - snapshotsToKeep: 3, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.create( - resourceGroupName, - accountName, - snapshotPolicyName, - body, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesDeleteSample.ts deleted file mode 100644 index 805c5ec6ea2b..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete snapshot policy - * - * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Delete.json - */ -async function snapshotPoliciesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const snapshotPolicyName = "snapshotPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.beginDeleteAndWait( - resourceGroupName, - accountName, - snapshotPolicyName, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesGetSample.ts deleted file mode 100644 index 2900d5ffc314..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a snapshot Policy - * - * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Get.json - */ -async function snapshotPoliciesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.get( - resourceGroupName, - accountName, - snapshotPolicyName, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesListSample.ts deleted file mode 100644 index 13be7a33280a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesListSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List snapshot policy - * - * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_List.json - */ -async function snapshotPoliciesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.snapshotPolicies.list( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - snapshotPoliciesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesListVolumesSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesListVolumesSample.ts deleted file mode 100644 index 38ffbf57eed9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesListVolumesSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get volumes associated with snapshot policy - * - * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_ListVolumes.json - */ -async function snapshotPoliciesListVolumes() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.listVolumes( - resourceGroupName, - accountName, - snapshotPolicyName, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesListVolumes(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesUpdateSample.ts deleted file mode 100644 index 3453c70019d8..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotPoliciesUpdateSample.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { SnapshotPolicyPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a snapshot policy - * - * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Update.json - */ -async function snapshotPoliciesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const snapshotPolicyName = "snapshotPolicyName"; - const body: SnapshotPolicyPatch = { - dailySchedule: { hour: 14, minute: 30, snapshotsToKeep: 4 }, - enabled: true, - hourlySchedule: { minute: 50, snapshotsToKeep: 2 }, - location: "eastus", - monthlySchedule: { - daysOfMonth: "10,11,12", - hour: 14, - minute: 15, - snapshotsToKeep: 5, - }, - weeklySchedule: { - day: "Wednesday", - hour: 14, - minute: 45, - snapshotsToKeep: 3, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshotPolicies.beginUpdateAndWait( - resourceGroupName, - accountName, - snapshotPolicyName, - body, - ); - console.log(result); -} - -async function main() { - snapshotPoliciesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsCreateSample.ts deleted file mode 100644 index cc5671daae71..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsCreateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Snapshot, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create the specified snapshot within the given volume - * - * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Create.json - */ -async function snapshotsCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const body: Snapshot = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - body, - ); - console.log(result); -} - -async function main() { - snapshotsCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsDeleteSample.ts deleted file mode 100644 index 59b60a2897aa..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsDeleteSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete snapshot - * - * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Delete.json - */ -async function snapshotsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - ); - console.log(result); -} - -async function main() { - snapshotsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsGetSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsGetSample.ts deleted file mode 100644 index f92d52cd2743..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsGetSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details of the specified snapshot - * - * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Get.json - */ -async function snapshotsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.get( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - ); - console.log(result); -} - -async function main() { - snapshotsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsListSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsListSample.ts deleted file mode 100644 index 66e6f3498d4c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsListSample.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all snapshots associated with the volume - * - * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_List.json - */ -async function snapshotsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.snapshots.list( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - snapshotsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsRestoreFilesSample.ts deleted file mode 100644 index 16eec29c0071..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsRestoreFilesSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SnapshotRestoreFiles, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem - * - * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_SingleFileRestore.json - */ -async function snapshotsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const body: SnapshotRestoreFiles = { - filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - body, - ); - console.log(result); -} - -async function main() { - snapshotsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsUpdateSample.ts deleted file mode 100644 index 3cd6b7671d03..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/snapshotsUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a snapshot - * - * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Update.json - */ -async function snapshotsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const snapshotName = "snapshot1"; - const body: Record = {}; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.snapshots.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - snapshotName, - body, - ); - console.log(result); -} - -async function main() { - snapshotsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesCreateSample.ts deleted file mode 100644 index 957c0f7abea3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesCreateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { SubvolumeInfo, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * - * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Create.json - */ -async function subvolumesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const body: SubvolumeInfo = { path: "/subvolumePath" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - body, - ); - console.log(result); -} - -async function main() { - subvolumesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesDeleteSample.ts deleted file mode 100644 index 246a4982fad1..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesDeleteSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete subvolume - * - * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Delete.json - */ -async function subvolumesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - ); - console.log(result); -} - -async function main() { - subvolumesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesGetMetadataSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesGetMetadataSample.ts deleted file mode 100644 index fa0dd6f09899..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesGetMetadataSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details of the specified subvolume - * - * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Metadata.json - */ -async function subvolumesMetadata() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginGetMetadataAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - ); - console.log(result); -} - -async function main() { - subvolumesMetadata(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesGetSample.ts deleted file mode 100644 index aab9c9564056..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesGetSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns the path associated with the subvolumeName provided - * - * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Get.json - */ -async function subvolumesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.get( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - ); - console.log(result); -} - -async function main() { - subvolumesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesListByVolumeSample.ts deleted file mode 100644 index de7301bfe092..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesListByVolumeSample.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns a list of the subvolumes in the volume - * - * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_List.json - */ -async function subvolumesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.subvolumes.listByVolume( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - subvolumesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesUpdateSample.ts deleted file mode 100644 index 0a94aa73ba97..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/subvolumesUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - SubvolumePatchRequest, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a subvolume - * - * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Update.json - */ -async function subvolumesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const subvolumeName = "subvolume1"; - const body: SubvolumePatchRequest = { path: "/subvolumePath" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.subvolumes.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - subvolumeName, - body, - ); - console.log(result); -} - -async function main() { - subvolumesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsCreateSample.ts deleted file mode 100644 index b4a526e3d66a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsCreateSample.ts +++ /dev/null @@ -1,673 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { VolumeGroupDetails, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a volume group along with specified volumes - * - * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_Oracle.json - */ -async function volumeGroupsCreateOracle() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const body: VolumeGroupDetails = { - groupMetaData: { - applicationIdentifier: "OR2", - applicationType: "ORACLE", - groupDescription: "Volume group", - }, - location: "westus", - volumes: [ - { - name: "test-ora-data1", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data1", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data1", - zones: ["1"], - }, - { - name: "test-ora-data2", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data2", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data2", - zones: ["1"], - }, - { - name: "test-ora-data3", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data3", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data3", - zones: ["1"], - }, - { - name: "test-ora-data4", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data4", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data4", - zones: ["1"], - }, - { - name: "test-ora-data5", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data5", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data5", - zones: ["1"], - }, - { - name: "test-ora-data6", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data6", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data6", - zones: ["1"], - }, - { - name: "test-ora-data7", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data7", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data7", - zones: ["1"], - }, - { - name: "test-ora-data8", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-data8", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-data8", - zones: ["1"], - }, - { - name: "test-ora-log", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-log", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-log", - zones: ["1"], - }, - { - name: "test-ora-log-mirror", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-log-mirror", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-log-mirror", - zones: ["1"], - }, - { - name: "test-ora-binary", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-binary", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-binary", - zones: ["1"], - }, - { - name: "test-ora-backup", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-ora-backup", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "ora-backup", - zones: ["1"], - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginCreateAndWait( - resourceGroupName, - accountName, - volumeGroupName, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a volume group along with specified volumes - * - * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_SapHana.json - */ -async function volumeGroupsCreateSapHana() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const body: VolumeGroupDetails = { - groupMetaData: { - applicationIdentifier: "SH9", - applicationType: "SAP-HANA", - groupDescription: "Volume group", - }, - location: "westus", - volumes: [ - { - name: "test-data-mnt00001", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-data-mnt00001", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "data", - }, - { - name: "test-log-mnt00001", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-log-mnt00001", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "log", - }, - { - name: "test-shared", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-shared", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "shared", - }, - { - name: "test-data-backup", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-data-backup", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "data-backup", - }, - { - name: "test-log-backup", - capacityPoolResourceId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - creationToken: "test-log-backup", - exportPolicy: { - rules: [ - { - allowedClients: "0.0.0.0/0", - cifs: false, - hasRootAccess: true, - kerberos5ReadOnly: false, - kerberos5ReadWrite: false, - kerberos5IReadOnly: false, - kerberos5IReadWrite: false, - kerberos5PReadOnly: false, - kerberos5PReadWrite: false, - nfsv3: false, - nfsv41: true, - ruleIndex: 1, - unixReadOnly: true, - unixReadWrite: true, - }, - ], - }, - protocolTypes: ["NFSv4.1"], - proximityPlacementGroup: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/cys_sjain_fcp_rg/providers/Microsoft.Compute/proximityPlacementGroups/svlqa_sjain_multivolume_ppg", - serviceLevel: "Premium", - subnetId: - "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 10, - usageThreshold: 107374182400, - volumeSpecName: "log-backup", - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginCreateAndWait( - resourceGroupName, - accountName, - volumeGroupName, - body, - ); - console.log(result); -} - -async function main() { - volumeGroupsCreateOracle(); - volumeGroupsCreateSapHana(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsDeleteSample.ts deleted file mode 100644 index 5faec89c03d2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsDeleteSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. - * - * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Delete.json - */ -async function volumeGroupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.beginDeleteAndWait( - resourceGroupName, - accountName, - volumeGroupName, - ); - console.log(result); -} - -async function main() { - volumeGroupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsGetSample.ts deleted file mode 100644 index 3b5c29c8d156..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsGetSample.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details of the specified volume group - * - * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_Oracle.json - */ -async function volumeGroupsGetOracle() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.get( - resourceGroupName, - accountName, - volumeGroupName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Get details of the specified volume group - * - * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_SapHana.json - */ -async function volumeGroupsGetSapHana() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const volumeGroupName = "group1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeGroups.get( - resourceGroupName, - accountName, - volumeGroupName, - ); - console.log(result); -} - -async function main() { - volumeGroupsGetOracle(); - volumeGroupsGetSapHana(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsListByNetAppAccountSample.ts deleted file mode 100644 index d37186d21c0f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeGroupsListByNetAppAccountSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all volume groups for given account - * - * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_Oracle.json - */ -async function volumeGroupsListOracle() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumeGroups.listByNetAppAccount( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List all volume groups for given account - * - * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_SapHana.json - */ -async function volumeGroupsListSapHana() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumeGroups.listByNetAppAccount( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumeGroupsListOracle(); - volumeGroupsListSapHana(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesCreateSample.ts deleted file mode 100644 index 7fd7dc328120..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesCreateSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { VolumeQuotaRule, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create the specified quota rule within the given volume - * - * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Create.json - */ -async function volumeQuotaRulesCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const body: VolumeQuotaRule = { - location: "westus", - quotaSizeInKiBs: 100005, - quotaTarget: "1821", - quotaType: "IndividualUserQuota", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.beginCreateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - body, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesDeleteSample.ts deleted file mode 100644 index 2058674b2455..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesDeleteSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete quota rule - * - * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Delete.json - */ -async function volumeQuotaRulesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesGetSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesGetSample.ts deleted file mode 100644 index e38d949f7eee..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesGetSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get details of the specified quota rule - * - * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Get.json - */ -async function volumeQuotaRulesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.get( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesListByVolumeSample.ts deleted file mode 100644 index 8ec4063134cb..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesListByVolumeSample.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all quota rules associated with the volume - * - * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_List.json - */ -async function volumeQuotaRulesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumeQuotaRules.listByVolume( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumeQuotaRulesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesUpdateSample.ts deleted file mode 100644 index 79ee11cad2bd..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumeQuotaRulesUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - VolumeQuotaRulePatch, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a quota rule - * - * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Update.json - */ -async function volumeQuotaRulesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "5275316f-a498-48d6-b324-2cbfdc4311b9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account-9957"; - const poolName = "pool-5210"; - const volumeName = "volume-6387"; - const volumeQuotaRuleName = "rule-0004"; - const body: VolumeQuotaRulePatch = { quotaSizeInKiBs: 100009 }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumeQuotaRules.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - volumeQuotaRuleName, - body, - ); - console.log(result); -} - -async function main() { - volumeQuotaRulesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesAuthorizeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesAuthorizeReplicationSample.ts deleted file mode 100644 index 80c72256367c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesAuthorizeReplicationSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AuthorizeRequest, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Authorize the replication connection on the source volume - * - * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeReplication.json - */ -async function volumesAuthorizeReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: AuthorizeRequest = { - remoteVolumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginAuthorizeReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesAuthorizeReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesBreakFileLocksSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesBreakFileLocksSample.ts deleted file mode 100644 index cb330092e0b1..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesBreakFileLocksSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BreakFileLocksRequest, - VolumesBreakFileLocksOptionalParams, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Break all the file locks on a volume - * - * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakFileLocks.json - */ -async function volumesBreakFileLocks() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: BreakFileLocksRequest = { - clientIp: "101.102.103.104", - confirmRunningDisruptiveOperation: true, - }; - const options: VolumesBreakFileLocksOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginBreakFileLocksAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - ); - console.log(result); -} - -async function main() { - volumesBreakFileLocks(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesBreakReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesBreakReplicationSample.ts deleted file mode 100644 index 63d0b5957368..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesBreakReplicationSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BreakReplicationRequest, - VolumesBreakReplicationOptionalParams, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Break the replication connection on the destination volume - * - * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakReplication.json - */ -async function volumesBreakReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: BreakReplicationRequest = { forceBreakReplication: false }; - const options: VolumesBreakReplicationOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginBreakReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - ); - console.log(result); -} - -async function main() { - volumesBreakReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesCreateOrUpdateSample.ts deleted file mode 100644 index 0be04816ab73..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesCreateOrUpdateSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Volume, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update the specified volume within the capacity pool - * - * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_CreateOrUpdate.json - */ -async function volumesCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: Volume = { - creationToken: "my-unique-file-path", - location: "eastus", - serviceLevel: "Premium", - subnetId: - "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - usageThreshold: 107374182400, - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesDeleteReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesDeleteReplicationSample.ts deleted file mode 100644 index 417468220430..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesDeleteReplicationSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication - * - * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_DeleteReplication.json - */ -async function volumesDeleteReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginDeleteReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesDeleteReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesDeleteSample.ts deleted file mode 100644 index 05f4fd29222c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesDeleteSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified volume - * - * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Delete.json - */ -async function volumesDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginDeleteAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesFinalizeRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesFinalizeRelocationSample.ts deleted file mode 100644 index f400bdccfc8e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesFinalizeRelocationSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. - * - * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeRelocation.json - */ -async function volumesFinalizeRelocation() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginFinalizeRelocationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesFinalizeRelocation(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesGetSample.ts deleted file mode 100644 index 7f13bd97c8ef..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesGetSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the details of the specified volume - * - * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Get.json - */ -async function volumesGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.get( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts deleted file mode 100644 index 426ed9b2182a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GetGroupIdListForLdapUserRequest, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User - * - * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/GroupIdListForLDAPUser.json - */ -async function getGroupIdListForUser() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: GetGroupIdListForLdapUserRequest = { username: "user1" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginListGetGroupIdListForLdapUserAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - getGroupIdListForUser(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesListReplicationsSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesListReplicationsSample.ts deleted file mode 100644 index be3bcd5cac91..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesListReplicationsSample.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all replications for a specified volume - * - * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ListReplications.json - */ -async function volumesListReplications() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.listReplications( - resourceGroupName, - accountName, - poolName, - volumeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumesListReplications(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesListSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesListSample.ts deleted file mode 100644 index cd289530a649..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesListSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all volumes within the capacity pool - * - * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_List.json - */ -async function volumesList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volumes.list( - resourceGroupName, - accountName, - poolName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - volumesList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPoolChangeSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPoolChangeSample.ts deleted file mode 100644 index 5991f83df369..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPoolChangeSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { PoolChangeRequest, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Moves volume to another pool - * - * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PoolChange.json - */ -async function volumesAuthorizeReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: PoolChangeRequest = { - newPoolResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginPoolChangeAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesAuthorizeReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPopulateAvailabilityZoneSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPopulateAvailabilityZoneSample.ts deleted file mode 100644 index 7a86fcf80506..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesPopulateAvailabilityZoneSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to This operation will populate availability zone information for a volume - * - * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PopulateAvailabilityZones.json - */ -async function volumesPopulateAvailabilityZones() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginPopulateAvailabilityZoneAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesPopulateAvailabilityZones(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesReInitializeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesReInitializeReplicationSample.ts deleted file mode 100644 index b6fc9d14fd51..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesReInitializeReplicationSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Re-Initializes the replication connection on the destination volume - * - * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReInitializeReplication.json - */ -async function volumesReInitializeReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginReInitializeReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesReInitializeReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesReestablishReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesReestablishReplicationSample.ts deleted file mode 100644 index 8fe8945a361e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesReestablishReplicationSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ReestablishReplicationRequest, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * - * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReestablishReplication.json - */ -async function volumesReestablishReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: ReestablishReplicationRequest = { - sourceVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginReestablishReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesReestablishReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesRelocateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesRelocateSample.ts deleted file mode 100644 index 3886ec588fd0..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesRelocateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RelocateVolumeRequest, - VolumesRelocateOptionalParams, - NetAppManagementClient, -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Relocates volume to a new stamp - * - * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Relocate.json - */ -async function volumesRelocate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: RelocateVolumeRequest = {}; - const options: VolumesRelocateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginRelocateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - options, - ); - console.log(result); -} - -async function main() { - volumesRelocate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesReplicationStatusSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesReplicationStatusSample.ts deleted file mode 100644 index c840a49303dc..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesReplicationStatusSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the status of the replication - * - * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReplicationStatus.json - */ -async function volumesReplicationStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.replicationStatus( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesReplicationStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesResetCifsPasswordSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesResetCifsPasswordSample.ts deleted file mode 100644 index 925e89026735..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesResetCifsPasswordSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Reset cifs password from volume - * - * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResetCifsPassword.json - */ -async function volumesResetCifsPassword() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginResetCifsPasswordAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesResetCifsPassword(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesResyncReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesResyncReplicationSample.ts deleted file mode 100644 index 8049beb297cb..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesResyncReplicationSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * - * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResyncReplication.json - */ -async function volumesResyncReplication() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginResyncReplicationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesResyncReplication(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesRevertRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesRevertRelocationSample.ts deleted file mode 100644 index 3f3c0c90bf09..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesRevertRelocationSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * - * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_RevertRelocation.json - */ -async function volumesRevertRelocation() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginRevertRelocationAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesRevertRelocation(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesRevertSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesRevertSample.ts deleted file mode 100644 index 28364eeaaa72..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesRevertSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { VolumeRevert, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Revert a volume to the snapshot specified in the body - * - * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Revert.json - */ -async function volumesRevert() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: VolumeRevert = { - snapshotId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginRevertAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesRevert(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesUpdateSample.ts deleted file mode 100644 index 81f44b27b979..000000000000 --- a/sdk/netapp/arm-netapp/samples/v21/typescript/src/volumesUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { VolumePatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the specified volume - * - * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Update.json - */ -async function volumesUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: VolumePatch = {}; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginUpdateAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - volumesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/src/models/index.ts b/sdk/netapp/arm-netapp/src/models/index.ts index 52429d4d15e4..f14209d3aa11 100644 --- a/sdk/netapp/arm-netapp/src/models/index.ts +++ b/sdk/netapp/arm-netapp/src/models/index.ts @@ -419,6 +419,8 @@ export interface EncryptionIdentity { readonly principalId?: string; /** The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities. */ userAssignedIdentity?: string; + /** ClientId of the multi-tenant AAD Application. Used to access cross-tenant KeyVaults. */ + federatedClientId?: string; } /** Managed service identity (system assigned and/or user assigned identities) */ @@ -492,6 +494,41 @@ export interface NetAppAccountPatch { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly disableShowmount?: boolean; + /** Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. */ + nfsV4IDDomain?: string; + /** + * This will have true value only if account is Multiple AD enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isMultiAdEnabled?: boolean; +} + +/** Encryption transition request */ +export interface EncryptionTransitionRequest { + /** Identifier for the virtual network */ + virtualNetworkId: string; + /** Identifier of the private endpoint to reach the Azure Key Vault */ + privateEndpointId: string; +} + +/** Change key vault request */ +export interface ChangeKeyVault { + /** The URI of the key vault/managed HSM that should be used for encryption. */ + keyVaultUri: string; + /** The name of the key that should be used for encryption. */ + keyName: string; + /** Azure resource ID of the key vault/managed HSM that should be used for encryption. */ + keyVaultResourceId?: string; + /** Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. */ + keyVaultPrivateEndpoints: KeyVaultPrivateEndpoint[]; +} + +/** Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint. */ +export interface KeyVaultPrivateEndpoint { + /** Identifier for the virtual network id */ + virtualNetworkId?: string; + /** Identifier of the private endpoint to reach the Azure Key Vault */ + privateEndpointId?: string; } /** List of capacity pool resources */ @@ -529,6 +566,8 @@ export interface CapacityPoolPatch { qosType?: QosType; /** If enabled (true) the pool can contain cool Access enabled volumes. */ coolAccess?: boolean; + /** Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level */ + customThroughputMibps?: number; } /** List of volume resources */ @@ -636,6 +675,11 @@ export interface ReplicationObject { remotePath?: RemotePath; /** The remote region for the other end of the Volume Replication. */ remoteVolumeRegion?: string; + /** + * A list of destination replications + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly destinationReplications?: DestinationReplication[]; } /** The full path to a volume that is to be migrated into ANF. Required for Migration volumes */ @@ -648,6 +692,18 @@ export interface RemotePath { volumeName: string; } +/** Destination replication properties */ +export interface DestinationReplication { + /** The resource ID of the remote volume */ + resourceId?: string; + /** Indicates whether the replication is cross zone or cross region. */ + replicationType?: ReplicationType; + /** The remote region for the destination volume. */ + region?: string; + /** The remote zone for the destination volume. */ + zone?: string; +} + /** Volume Snapshot Properties */ export interface VolumeSnapshotProperties { /** Snapshot Policy ResourceId */ @@ -696,7 +752,7 @@ export interface VolumePatch { tags?: { [propertyName: string]: string }; /** The service level of the file system */ serviceLevel?: ServiceLevel; - /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. */ + /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. */ usageThreshold?: number; /** Set of export policy rules */ exportPolicy?: VolumePatchPropertiesExportPolicy; @@ -773,6 +829,30 @@ export interface GetGroupIdListForLdapUserResponse { groupIdsForLdapUser?: string[]; } +/** Quota Report for volume */ +export interface ListQuotaReportResponse { + /** List of volume quota report records */ + value?: QuotaReport[]; + /** URL to get the next set of results. */ + nextLink?: string; +} + +/** Quota report record properties */ +export interface QuotaReport { + /** Type of quota */ + quotaType?: Type; + /** UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running */ + quotaTarget?: string; + /** Specifies the current usage in kibibytes for the user/group quota. */ + quotaLimitUsedInKiBs?: number; + /** Specifies the total size limit in kibibytes for the user/group quota. */ + quotaLimitTotalInKiBs?: number; + /** Percentage of used size compared to total size. */ + percentageUsed?: number; + /** Flag to indicate whether the quota is derived from default quota. */ + isDerivedQuota?: boolean; +} + /** Break replication request */ export interface BreakReplicationRequest { /** If replication is in status transferring and you want to force break the replication, set to true */ @@ -1012,7 +1092,7 @@ export interface BackupPolicyPatch { /** Resource tags */ tags?: { [propertyName: string]: string }; /** - * Backup Policy GUID ID + * Backup Policy Resource ID * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupPolicyId?: string; @@ -1172,7 +1252,7 @@ export interface VolumeGroupVolumeProperties { creationToken: string; /** The service level of the file system */ serviceLevel?: ServiceLevel; - /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. */ + /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. */ usageThreshold: number; /** Set of export policy rules */ exportPolicy?: VolumePropertiesExportPolicy; @@ -1218,10 +1298,12 @@ export interface VolumeGroupVolumeProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly mountTargets?: MountTargetProperties[]; - /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection */ + /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone */ volumeType?: string; /** DataProtection type volumes include an object containing details of the replication */ dataProtection?: VolumePropertiesDataProtection; + /** While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. */ + acceptGrowCapacityPoolForShortTermCloneSplit?: AcceptGrowCapacityPoolForShortTermCloneSplit; /** Restoring */ isRestoring?: boolean; /** If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (defaults to true). */ @@ -1262,7 +1344,7 @@ export interface VolumeGroupVolumeProperties { * Never - No client-driven data is pulled from cool tier to standard storage. */ coolAccessRetrievalPolicy?: CoolAccessRetrievalPolicy; - /** UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. */ + /** UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain as its last saved value only. */ unixPermissions?: string; /** * When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. @@ -1329,6 +1411,13 @@ export interface VolumeGroupVolumeProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly originatingResourceId?: string; + /** + * Space shared by short term clone volume with parent volume in bytes. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inheritedSizeInBytes?: number; + /** Language supported for volume. */ + language?: VolumeLanguage; } /** List of Subvolumes */ @@ -1732,6 +1821,11 @@ export interface Backup extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupPolicyResourceId?: string; + /** + * Specifies if the backup is for a large volume. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isLargeVolume?: boolean; } /** NetApp account resource */ @@ -1757,6 +1851,13 @@ export interface NetAppAccount extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly disableShowmount?: boolean; + /** Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. */ + nfsV4IDDomain?: string; + /** + * This will have true value only if account is Multiple AD enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isMultiAdEnabled?: boolean; } /** Capacity pool resource */ @@ -1790,6 +1891,8 @@ export interface CapacityPool extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly utilizedThroughputMibps?: number; + /** Maximum throughput in MiB/s that can be achieved by this pool and this will be accepted as input only for manual qosType pool with Flexible service level */ + customThroughputMibps?: number; /** The qos type of the pool */ qosType?: QosType; /** If enabled (true) the pool can contain cool Access enabled volumes. */ @@ -1816,7 +1919,7 @@ export interface Volume extends TrackedResource { creationToken: string; /** The service level of the file system */ serviceLevel?: ServiceLevel; - /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. */ + /** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 1PiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. */ usageThreshold: number; /** Set of export policy rules */ exportPolicy?: VolumePropertiesExportPolicy; @@ -1862,10 +1965,12 @@ export interface Volume extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly mountTargets?: MountTargetProperties[]; - /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection */ + /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone */ volumeType?: string; /** DataProtection type volumes include an object containing details of the replication */ dataProtection?: VolumePropertiesDataProtection; + /** While auto splitting the short term clone volume, if the parent pool does not have enough space to accommodate the volume after split, it will be automatically resized, which will lead to increased billing. To accept capacity pool size auto grow and create a short term clone volume, set the property as accepted. */ + acceptGrowCapacityPoolForShortTermCloneSplit?: AcceptGrowCapacityPoolForShortTermCloneSplit; /** Restoring */ isRestoring?: boolean; /** If enabled (true) the volume will contain a read-only snapshot directory which provides access to each of the volume's snapshots (defaults to true). */ @@ -1906,7 +2011,7 @@ export interface Volume extends TrackedResource { * Never - No client-driven data is pulled from cool tier to standard storage. */ coolAccessRetrievalPolicy?: CoolAccessRetrievalPolicy; - /** UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. */ + /** UNIX permissions for NFS volume accepted in octal 4 digit format. First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third selects permissions for other users in the same group. the fourth for other users not in the group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. Avoid passing null value for unixPermissions in volume update operation, As per the behavior, If Null value is passed then user-visible unixPermissions value will became null, and user will not be able to get unixPermissions value. On safer side, actual unixPermissions value on volume will remain as its last saved value only. */ unixPermissions?: string; /** * When a volume is being restored from another volume's snapshot, will show the percentage completion of this cloning process. When this value is empty/null there is no cloning process currently happening on this volume. This value will update every 5 minutes during cloning. @@ -1973,6 +2078,13 @@ export interface Volume extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly originatingResourceId?: string; + /** + * Space shared by short term clone volume with parent volume in bytes. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inheritedSizeInBytes?: number; + /** Language supported for volume. */ + language?: VolumeLanguage; } /** Snapshot policy information */ @@ -2007,7 +2119,7 @@ export interface BackupPolicy extends TrackedResource { */ readonly etag?: string; /** - * Backup Policy GUID ID + * Backup Policy Resource ID * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly backupPolicyId?: string; @@ -2065,6 +2177,21 @@ export interface NetAppResourceUpdateNetworkSiblingSetHeaders { location?: string; } +/** Defines headers for Accounts_transitionToCmk operation. */ +export interface AccountsTransitionToCmkHeaders { + location?: string; +} + +/** Defines headers for Accounts_getChangeKeyVaultInformation operation. */ +export interface AccountsGetChangeKeyVaultInformationHeaders { + location?: string; +} + +/** Defines headers for Accounts_changeKeyVault operation. */ +export interface AccountsChangeKeyVaultHeaders { + location?: string; +} + /** Defines headers for Volumes_populateAvailabilityZone operation. */ export interface VolumesPopulateAvailabilityZoneHeaders { location?: string; @@ -2075,6 +2202,11 @@ export interface VolumesResetCifsPasswordHeaders { location?: string; } +/** Defines headers for Volumes_splitCloneFromParent operation. */ +export interface VolumesSplitCloneFromParentHeaders { + location?: string; +} + /** Defines headers for Volumes_breakFileLocks operation. */ export interface VolumesBreakFileLocksHeaders { location?: string; @@ -2085,6 +2217,11 @@ export interface VolumesListGetGroupIdListForLdapUserHeaders { location?: string; } +/** Defines headers for Volumes_listQuotaReport operation. */ +export interface VolumesListQuotaReportHeaders { + location?: string; +} + /** Defines headers for Volumes_peerExternalCluster operation. */ export interface VolumesPeerExternalClusterHeaders { location?: string; @@ -2435,6 +2572,8 @@ export enum KnownServiceLevel { Ultra = "Ultra", /** Zone redundant storage service level */ StandardZRS = "StandardZRS", + /** Flexible service level */ + Flexible = "Flexible", } /** @@ -2445,7 +2584,8 @@ export enum KnownServiceLevel { * **Standard**: Standard service level \ * **Premium**: Premium service level \ * **Ultra**: Ultra service level \ - * **StandardZRS**: Zone redundant storage service level + * **StandardZRS**: Zone redundant storage service level \ + * **Flexible**: Flexible service level */ export type ServiceLevel = string; @@ -2566,6 +2706,42 @@ export enum KnownReplicationSchedule { */ export type ReplicationSchedule = string; +/** Known values of {@link ReplicationType} that the service accepts. */ +export enum KnownReplicationType { + /** Cross region replication */ + CrossRegionReplication = "CrossRegionReplication", + /** Cross zone replication */ + CrossZoneReplication = "CrossZoneReplication", +} + +/** + * Defines values for ReplicationType. \ + * {@link KnownReplicationType} can be used interchangeably with ReplicationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CrossRegionReplication**: Cross region replication \ + * **CrossZoneReplication**: Cross zone replication + */ +export type ReplicationType = string; + +/** Known values of {@link AcceptGrowCapacityPoolForShortTermCloneSplit} that the service accepts. */ +export enum KnownAcceptGrowCapacityPoolForShortTermCloneSplit { + /** Auto grow capacity pool for short term clone split is accepted. */ + Accepted = "Accepted", + /** Auto grow capacity pool for short term clone split is declined. Short term clone volume creation will not be allowed, to create short term clone volume accept auto grow capacity pool. */ + Declined = "Declined", +} + +/** + * Defines values for AcceptGrowCapacityPoolForShortTermCloneSplit. \ + * {@link KnownAcceptGrowCapacityPoolForShortTermCloneSplit} can be used interchangeably with AcceptGrowCapacityPoolForShortTermCloneSplit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Accepted**: Auto grow capacity pool for short term clone split is accepted. \ + * **Declined**: Auto grow capacity pool for short term clone split is declined. Short term clone volume creation will not be allowed, to create short term clone volume accept auto grow capacity pool. + */ +export type AcceptGrowCapacityPoolForShortTermCloneSplit = string; + /** Known values of {@link SecurityStyle} that the service accepts. */ export enum KnownSecurityStyle { /** Ntfs */ @@ -2713,6 +2889,249 @@ export enum KnownEnableSubvolumes { */ export type EnableSubvolumes = string; +/** Known values of {@link VolumeLanguage} that the service accepts. */ +export enum KnownVolumeLanguage { + /** Posix with UTF-8 */ + CUtf8 = "c.utf-8", + /** UTF-8 with 4 byte character support */ + Utf8Mb4 = "utf8mb4", + /** Arabic - Deprecated */ + Ar = "ar", + /** Arabic with UTF-8 */ + ArUtf8 = "ar.utf-8", + /** Croatian - Deprecated */ + Hr = "hr", + /** Croatian with UTF-8 */ + HrUtf8 = "hr.utf-8", + /** Czech - Deprecated */ + Cs = "cs", + /** Czech with UTF-8 */ + CsUtf8 = "cs.utf-8", + /** Danish - Deprecated */ + Da = "da", + /** Danish with UTF-8 */ + DaUtf8 = "da.utf-8", + /** Dutch - Deprecated */ + Nl = "nl", + /** Dutch with UTF-8 */ + NlUtf8 = "nl.utf-8", + /** English - Deprecated */ + En = "en", + /** English with UTF-8 */ + EnUtf8 = "en.utf-8", + /** Finnish - Deprecated */ + Fi = "fi", + /** Finnish with UTF-8 */ + FiUtf8 = "fi.utf-8", + /** French - Deprecated */ + Fr = "fr", + /** French with UTF-8 */ + FrUtf8 = "fr.utf-8", + /** German - Deprecated */ + De = "de", + /** German with UTF-8 */ + DeUtf8 = "de.utf-8", + /** Hebrew - Deprecated */ + He = "he", + /** Hebrew with UTF-8 */ + HeUtf8 = "he.utf-8", + /** Hungarian - Deprecated */ + Hu = "hu", + /** Hungarian with UTF-8 */ + HuUtf8 = "hu.utf-8", + /** Italian - Deprecated */ + It = "it", + /** Italian with UTF-8 */ + ItUtf8 = "it.utf-8", + /** Japanese euc-j - Deprecated */ + Ja = "ja", + /** Japanese euc-j with UTF-8 */ + JaUtf8 = "ja.utf-8", + /** Japanese euc-j - Deprecated */ + JaV1 = "ja-v1", + /** Japanese euc-j with UTF-8 */ + JaV1Utf8 = "ja-v1.utf-8", + /** Japanese pck */ + JaJpPck = "ja-jp.pck", + /** Japanese pck with UTF-8 - Deprecated */ + JaJpPckUtf8 = "ja-jp.pck.utf-8", + /** Japanese cp932 */ + JaJp932 = "ja-jp.932", + /** Japanese cp932 with UTF-8 - Deprecated */ + JaJp932Utf8 = "ja-jp.932.utf-8", + /** Japanese pck - sjis */ + JaJpPckV2 = "ja-jp.pck-v2", + /** Japanese pck - sjis with UTF-8 - Deprecated */ + JaJpPckV2Utf8 = "ja-jp.pck-v2.utf-8", + /** Korean - Deprecated */ + Ko = "ko", + /** Korean with UTF-8 */ + KoUtf8 = "ko.utf-8", + /** Norwegian - Deprecated */ + No = "no", + /** Norwegian with UTF-8 */ + NoUtf8 = "no.utf-8", + /** Polish - Deprecated */ + Pl = "pl", + /** Polish with UTF-8 */ + PlUtf8 = "pl.utf-8", + /** Portuguese - Deprecated */ + Pt = "pt", + /** Portuguese with UTF-8 */ + PtUtf8 = "pt.utf-8", + /** Posix - Deprecated */ + C = "c", + /** Romanian - Deprecated */ + Ro = "ro", + /** Romanian with UTF-8 */ + RoUtf8 = "ro.utf-8", + /** Russian - Deprecated */ + Ru = "ru", + /** Russian with UTF-8 */ + RuUtf8 = "ru.utf-8", + /** Simplified Chinese - Deprecated */ + Zh = "zh", + /** Simplified Chinese with UTF-8 */ + ZhUtf8 = "zh.utf-8", + /** Simplified gbk Chinese */ + ZhGbk = "zh.gbk", + /** Simplified gbk Chinese with UTF-8 - Deprecated */ + ZhGbkUtf8 = "zh.gbk.utf-8", + /** Traditional Chinese BIG 5 */ + ZhTwBig5 = "zh-tw.big5", + /** Traditional Chinese BIG 5 with UTF-8 - Deprecated */ + ZhTwBig5Utf8 = "zh-tw.big5.utf-8", + /** Traditional Chinese EUC-TW */ + ZhTw = "zh-tw", + /** Traditional Chinese EUC-TW with UTF-8 - Deprecated */ + ZhTwUtf8 = "zh-tw.utf-8", + /** Slovak - Deprecated */ + Sk = "sk", + /** Slovak with UTF-8 */ + SkUtf8 = "sk.utf-8", + /** Slovenian - Deprecated */ + Sl = "sl", + /** Slovenian with UTF-8 */ + SlUtf8 = "sl.utf-8", + /** Spanish - Deprecated */ + Es = "es", + /** Spanish with UTF-8 */ + EsUtf8 = "es.utf-8", + /** Swedish - Deprecated */ + Sv = "sv", + /** Swedish with UTF-8 */ + SvUtf8 = "sv.utf-8", + /** Turkish - Deprecated */ + Tr = "tr", + /** Turkish with UTF-8 */ + TrUtf8 = "tr.utf-8", + /** US English - Deprecated */ + EnUs = "en-us", + /** US English with UTF-8 */ + EnUsUtf8 = "en-us.utf-8", +} + +/** + * Defines values for VolumeLanguage. \ + * {@link KnownVolumeLanguage} can be used interchangeably with VolumeLanguage, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **c.utf-8**: Posix with UTF-8 \ + * **utf8mb4**: UTF-8 with 4 byte character support \ + * **ar**: Arabic - Deprecated \ + * **ar.utf-8**: Arabic with UTF-8 \ + * **hr**: Croatian - Deprecated \ + * **hr.utf-8**: Croatian with UTF-8 \ + * **cs**: Czech - Deprecated \ + * **cs.utf-8**: Czech with UTF-8 \ + * **da**: Danish - Deprecated \ + * **da.utf-8**: Danish with UTF-8 \ + * **nl**: Dutch - Deprecated \ + * **nl.utf-8**: Dutch with UTF-8 \ + * **en**: English - Deprecated \ + * **en.utf-8**: English with UTF-8 \ + * **fi**: Finnish - Deprecated \ + * **fi.utf-8**: Finnish with UTF-8 \ + * **fr**: French - Deprecated \ + * **fr.utf-8**: French with UTF-8 \ + * **de**: German - Deprecated \ + * **de.utf-8**: German with UTF-8 \ + * **he**: Hebrew - Deprecated \ + * **he.utf-8**: Hebrew with UTF-8 \ + * **hu**: Hungarian - Deprecated \ + * **hu.utf-8**: Hungarian with UTF-8 \ + * **it**: Italian - Deprecated \ + * **it.utf-8**: Italian with UTF-8 \ + * **ja**: Japanese euc-j - Deprecated \ + * **ja.utf-8**: Japanese euc-j with UTF-8 \ + * **ja-v1**: Japanese euc-j - Deprecated \ + * **ja-v1.utf-8**: Japanese euc-j with UTF-8 \ + * **ja-jp.pck**: Japanese pck \ + * **ja-jp.pck.utf-8**: Japanese pck with UTF-8 - Deprecated \ + * **ja-jp.932**: Japanese cp932 \ + * **ja-jp.932.utf-8**: Japanese cp932 with UTF-8 - Deprecated \ + * **ja-jp.pck-v2**: Japanese pck - sjis \ + * **ja-jp.pck-v2.utf-8**: Japanese pck - sjis with UTF-8 - Deprecated \ + * **ko**: Korean - Deprecated \ + * **ko.utf-8**: Korean with UTF-8 \ + * **no**: Norwegian - Deprecated \ + * **no.utf-8**: Norwegian with UTF-8 \ + * **pl**: Polish - Deprecated \ + * **pl.utf-8**: Polish with UTF-8 \ + * **pt**: Portuguese - Deprecated \ + * **pt.utf-8**: Portuguese with UTF-8 \ + * **c**: Posix - Deprecated \ + * **ro**: Romanian - Deprecated \ + * **ro.utf-8**: Romanian with UTF-8 \ + * **ru**: Russian - Deprecated \ + * **ru.utf-8**: Russian with UTF-8 \ + * **zh**: Simplified Chinese - Deprecated \ + * **zh.utf-8**: Simplified Chinese with UTF-8 \ + * **zh.gbk**: Simplified gbk Chinese \ + * **zh.gbk.utf-8**: Simplified gbk Chinese with UTF-8 - Deprecated \ + * **zh-tw.big5**: Traditional Chinese BIG 5 \ + * **zh-tw.big5.utf-8**: Traditional Chinese BIG 5 with UTF-8 - Deprecated \ + * **zh-tw**: Traditional Chinese EUC-TW \ + * **zh-tw.utf-8**: Traditional Chinese EUC-TW with UTF-8 - Deprecated \ + * **sk**: Slovak - Deprecated \ + * **sk.utf-8**: Slovak with UTF-8 \ + * **sl**: Slovenian - Deprecated \ + * **sl.utf-8**: Slovenian with UTF-8 \ + * **es**: Spanish - Deprecated \ + * **es.utf-8**: Spanish with UTF-8 \ + * **sv**: Swedish - Deprecated \ + * **sv.utf-8**: Swedish with UTF-8 \ + * **tr**: Turkish - Deprecated \ + * **tr.utf-8**: Turkish with UTF-8 \ + * **en-us**: US English - Deprecated \ + * **en-us.utf-8**: US English with UTF-8 + */ +export type VolumeLanguage = string; + +/** Known values of {@link Type} that the service accepts. */ +export enum KnownType { + /** Default user quota */ + DefaultUserQuota = "DefaultUserQuota", + /** Default group quota */ + DefaultGroupQuota = "DefaultGroupQuota", + /** Individual user quota */ + IndividualUserQuota = "IndividualUserQuota", + /** Individual group quota */ + IndividualGroupQuota = "IndividualGroupQuota", +} + +/** + * Defines values for Type. \ + * {@link KnownType} can be used interchangeably with Type, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **DefaultUserQuota**: Default user quota \ + * **DefaultGroupQuota**: Default group quota \ + * **IndividualUserQuota**: Individual user quota \ + * **IndividualGroupQuota**: Individual group quota + */ +export type Type = string; + /** Known values of {@link RelationshipStatus} that the service accepts. */ export enum KnownRelationshipStatus { /** Idle */ @@ -2758,30 +3177,6 @@ export enum KnownMirrorState { */ export type MirrorState = string; -/** Known values of {@link Type} that the service accepts. */ -export enum KnownType { - /** Default user quota */ - DefaultUserQuota = "DefaultUserQuota", - /** Default group quota */ - DefaultGroupQuota = "DefaultGroupQuota", - /** Individual user quota */ - IndividualUserQuota = "IndividualUserQuota", - /** Individual group quota */ - IndividualGroupQuota = "IndividualGroupQuota", -} - -/** - * Defines values for Type. \ - * {@link KnownType} can be used interchangeably with Type, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **DefaultUserQuota**: Default user quota \ - * **DefaultGroupQuota**: Default group quota \ - * **IndividualUserQuota**: Individual user quota \ - * **IndividualGroupQuota**: Individual group quota - */ -export type Type = string; - /** Known values of {@link ApplicationType} that the service accepts. */ export enum KnownApplicationType { /** SAPHana */ @@ -2985,6 +3380,47 @@ export interface AccountsRenewCredentialsOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface AccountsTransitionToCmkOptionalParams + extends coreClient.OperationOptions { + /** The required parameters to perform encryption transition. */ + body?: EncryptionTransitionRequest; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the transitionToCmk operation. */ +export type AccountsTransitionToCmkResponse = AccountsTransitionToCmkHeaders; + +/** Optional parameters. */ +export interface AccountsGetChangeKeyVaultInformationOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the getChangeKeyVaultInformation operation. */ +export type AccountsGetChangeKeyVaultInformationResponse = + AccountsGetChangeKeyVaultInformationHeaders; + +/** Optional parameters. */ +export interface AccountsChangeKeyVaultOptionalParams + extends coreClient.OperationOptions { + /** The required parameters to perform encryption migration. */ + body?: ChangeKeyVault; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the changeKeyVault operation. */ +export type AccountsChangeKeyVaultResponse = AccountsChangeKeyVaultHeaders; + /** Optional parameters. */ export interface AccountsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { } @@ -3130,6 +3566,19 @@ export interface VolumesResetCifsPasswordOptionalParams /** Contains response data for the resetCifsPassword operation. */ export type VolumesResetCifsPasswordResponse = VolumesResetCifsPasswordHeaders; +/** Optional parameters. */ +export interface VolumesSplitCloneFromParentOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the splitCloneFromParent operation. */ +export type VolumesSplitCloneFromParentResponse = + VolumesSplitCloneFromParentHeaders; + /** Optional parameters. */ export interface VolumesBreakFileLocksOptionalParams extends coreClient.OperationOptions { @@ -3154,6 +3603,18 @@ export interface VolumesListGetGroupIdListForLdapUserOptionalParams export type VolumesListGetGroupIdListForLdapUserResponse = GetGroupIdListForLdapUserResponse; +/** Optional parameters. */ +export interface VolumesListQuotaReportOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the listQuotaReport operation. */ +export type VolumesListQuotaReportResponse = ListQuotaReportResponse; + /** Optional parameters. */ export interface VolumesBreakReplicationOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/netapp/arm-netapp/src/models/mappers.ts b/sdk/netapp/arm-netapp/src/models/mappers.ts index 59dbe068098a..7620ad52afc4 100644 --- a/sdk/netapp/arm-netapp/src/models/mappers.ts +++ b/sdk/netapp/arm-netapp/src/models/mappers.ts @@ -1214,6 +1214,12 @@ export const EncryptionIdentity: coreClient.CompositeMapper = { name: "String", }, }, + federatedClientId: { + serializedName: "federatedClientId", + type: { + name: "String", + }, + }, }, }, }; @@ -1360,6 +1366,111 @@ export const NetAppAccountPatch: coreClient.CompositeMapper = { name: "Boolean", }, }, + nfsV4IDDomain: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9.-]{0,253}[a-zA-Z0-9]$"), + MaxLength: 255, + }, + serializedName: "properties.nfsV4IDDomain", + nullable: true, + type: { + name: "String", + }, + }, + isMultiAdEnabled: { + serializedName: "properties.isMultiAdEnabled", + readOnly: true, + nullable: true, + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const EncryptionTransitionRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionTransitionRequest", + modelProperties: { + virtualNetworkId: { + serializedName: "virtualNetworkId", + required: true, + type: { + name: "String", + }, + }, + privateEndpointId: { + serializedName: "privateEndpointId", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ChangeKeyVault: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ChangeKeyVault", + modelProperties: { + keyVaultUri: { + serializedName: "keyVaultUri", + required: true, + type: { + name: "String", + }, + }, + keyName: { + serializedName: "keyName", + required: true, + type: { + name: "String", + }, + }, + keyVaultResourceId: { + serializedName: "keyVaultResourceId", + type: { + name: "String", + }, + }, + keyVaultPrivateEndpoints: { + serializedName: "keyVaultPrivateEndpoints", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KeyVaultPrivateEndpoint", + }, + }, + }, + }, + }, + }, +}; + +export const KeyVaultPrivateEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultPrivateEndpoint", + modelProperties: { + virtualNetworkId: { + serializedName: "virtualNetworkId", + type: { + name: "String", + }, + }, + privateEndpointId: { + serializedName: "privateEndpointId", + type: { + name: "String", + }, + }, }, }, }; @@ -1449,6 +1560,13 @@ export const CapacityPoolPatch: coreClient.CompositeMapper = { name: "Boolean", }, }, + customThroughputMibps: { + serializedName: "properties.customThroughputMibps", + nullable: true, + type: { + name: "Number", + }, + }, }, }, }; @@ -1765,6 +1883,19 @@ export const ReplicationObject: coreClient.CompositeMapper = { name: "String", }, }, + destinationReplications: { + serializedName: "destinationReplications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DestinationReplication", + }, + }, + }, + }, }, }, }; @@ -1799,6 +1930,39 @@ export const RemotePath: coreClient.CompositeMapper = { }, }; +export const DestinationReplication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DestinationReplication", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String", + }, + }, + replicationType: { + serializedName: "replicationType", + type: { + name: "String", + }, + }, + region: { + serializedName: "region", + type: { + name: "String", + }, + }, + zone: { + serializedName: "zone", + type: { + name: "String", + }, + }, + }, + }, +}; + export const VolumeSnapshotProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2150,6 +2314,78 @@ export const GetGroupIdListForLdapUserResponse: coreClient.CompositeMapper = { }, }; +export const ListQuotaReportResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListQuotaReportResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaReport", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const QuotaReport: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaReport", + modelProperties: { + quotaType: { + serializedName: "quotaType", + type: { + name: "String", + }, + }, + quotaTarget: { + serializedName: "quotaTarget", + type: { + name: "String", + }, + }, + quotaLimitUsedInKiBs: { + serializedName: "quotaLimitUsedInKiBs", + type: { + name: "Number", + }, + }, + quotaLimitTotalInKiBs: { + serializedName: "quotaLimitTotalInKiBs", + type: { + name: "Number", + }, + }, + percentageUsed: { + serializedName: "percentageUsed", + type: { + name: "Number", + }, + }, + isDerivedQuota: { + serializedName: "isDerivedQuota", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + export const BreakReplicationRequest: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3327,6 +3563,13 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { className: "VolumePropertiesDataProtection", }, }, + acceptGrowCapacityPoolForShortTermCloneSplit: { + serializedName: + "properties.acceptGrowCapacityPoolForShortTermCloneSplit", + type: { + name: "String", + }, + }, isRestoring: { serializedName: "properties.isRestoring", type: { @@ -3593,6 +3836,21 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { name: "String", }, }, + inheritedSizeInBytes: { + serializedName: "properties.inheritedSizeInBytes", + readOnly: true, + nullable: true, + type: { + name: "Number", + }, + }, + language: { + serializedName: "properties.language", + nullable: true, + type: { + name: "String", + }, + }, }, }, }; @@ -4496,6 +4754,13 @@ export const Backup: coreClient.CompositeMapper = { name: "String", }, }, + isLargeVolume: { + serializedName: "properties.isLargeVolume", + readOnly: true, + type: { + name: "Boolean", + }, + }, }, }, }; @@ -4554,6 +4819,25 @@ export const NetAppAccount: coreClient.CompositeMapper = { name: "Boolean", }, }, + nfsV4IDDomain: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9.-]{0,253}[a-zA-Z0-9]$"), + MaxLength: 255, + }, + serializedName: "properties.nfsV4IDDomain", + nullable: true, + type: { + name: "String", + }, + }, + isMultiAdEnabled: { + serializedName: "properties.isMultiAdEnabled", + readOnly: true, + nullable: true, + type: { + name: "Boolean", + }, + }, }, }, }; @@ -4622,6 +4906,13 @@ export const CapacityPool: coreClient.CompositeMapper = { name: "Number", }, }, + customThroughputMibps: { + serializedName: "properties.customThroughputMibps", + nullable: true, + type: { + name: "Number", + }, + }, qosType: { serializedName: "properties.qosType", type: { @@ -4841,6 +5132,13 @@ export const Volume: coreClient.CompositeMapper = { className: "VolumePropertiesDataProtection", }, }, + acceptGrowCapacityPoolForShortTermCloneSplit: { + serializedName: + "properties.acceptGrowCapacityPoolForShortTermCloneSplit", + type: { + name: "String", + }, + }, isRestoring: { serializedName: "properties.isRestoring", type: { @@ -5107,6 +5405,21 @@ export const Volume: coreClient.CompositeMapper = { name: "String", }, }, + inheritedSizeInBytes: { + serializedName: "properties.inheritedSizeInBytes", + readOnly: true, + nullable: true, + type: { + name: "Number", + }, + }, + language: { + serializedName: "properties.language", + nullable: true, + type: { + name: "String", + }, + }, }, }, }; @@ -5321,6 +5634,52 @@ export const NetAppResourceUpdateNetworkSiblingSetHeaders: coreClient.CompositeM }, }; +export const AccountsTransitionToCmkHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccountsTransitionToCmkHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AccountsGetChangeKeyVaultInformationHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccountsGetChangeKeyVaultInformationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AccountsChangeKeyVaultHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccountsChangeKeyVaultHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + export const VolumesPopulateAvailabilityZoneHeaders: coreClient.CompositeMapper = { type: { @@ -5352,6 +5711,21 @@ export const VolumesResetCifsPasswordHeaders: coreClient.CompositeMapper = { }, }; +export const VolumesSplitCloneFromParentHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VolumesSplitCloneFromParentHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + export const VolumesBreakFileLocksHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5383,6 +5757,21 @@ export const VolumesListGetGroupIdListForLdapUserHeaders: coreClient.CompositeMa }, }; +export const VolumesListQuotaReportHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VolumesListQuotaReportHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + export const VolumesPeerExternalClusterHeaders: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/netapp/arm-netapp/src/models/parameters.ts b/sdk/netapp/arm-netapp/src/models/parameters.ts index c4ac194960fb..870a38a18071 100644 --- a/sdk/netapp/arm-netapp/src/models/parameters.ts +++ b/sdk/netapp/arm-netapp/src/models/parameters.ts @@ -19,6 +19,8 @@ import { UpdateNetworkSiblingSetRequest as UpdateNetworkSiblingSetRequestMapper, NetAppAccount as NetAppAccountMapper, NetAppAccountPatch as NetAppAccountPatchMapper, + EncryptionTransitionRequest as EncryptionTransitionRequestMapper, + ChangeKeyVault as ChangeKeyVaultMapper, CapacityPool as CapacityPoolMapper, CapacityPoolPatch as CapacityPoolPatchMapper, Volume as VolumeMapper, @@ -78,7 +80,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-07-01", + defaultValue: "2024-07-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -261,6 +263,16 @@ export const body6: OperationParameter = { mapper: NetAppAccountPatchMapper, }; +export const body7: OperationParameter = { + parameterPath: ["options", "body"], + mapper: EncryptionTransitionRequestMapper, +}; + +export const body8: OperationParameter = { + parameterPath: ["options", "body"], + mapper: ChangeKeyVaultMapper, +}; + export const poolName: OperationURLParameter = { parameterPath: "poolName", mapper: { @@ -277,12 +289,12 @@ export const poolName: OperationURLParameter = { }, }; -export const body7: OperationParameter = { +export const body9: OperationParameter = { parameterPath: "body", mapper: CapacityPoolMapper, }; -export const body8: OperationParameter = { +export const body10: OperationParameter = { parameterPath: "body", mapper: CapacityPoolPatchMapper, }; @@ -303,12 +315,12 @@ export const volumeName: OperationURLParameter = { }, }; -export const body9: OperationParameter = { +export const body11: OperationParameter = { parameterPath: "body", mapper: VolumeMapper, }; -export const body10: OperationParameter = { +export const body12: OperationParameter = { parameterPath: "body", mapper: VolumePatchMapper, }; @@ -323,47 +335,47 @@ export const forceDelete: OperationQueryParameter = { }, }; -export const body11: OperationParameter = { +export const body13: OperationParameter = { parameterPath: "body", mapper: VolumeRevertMapper, }; -export const body12: OperationParameter = { +export const body14: OperationParameter = { parameterPath: ["options", "body"], mapper: BreakFileLocksRequestMapper, }; -export const body13: OperationParameter = { +export const body15: OperationParameter = { parameterPath: "body", mapper: GetGroupIdListForLdapUserRequestMapper, }; -export const body14: OperationParameter = { +export const body16: OperationParameter = { parameterPath: ["options", "body"], mapper: BreakReplicationRequestMapper, }; -export const body15: OperationParameter = { +export const body17: OperationParameter = { parameterPath: "body", mapper: ReestablishReplicationRequestMapper, }; -export const body16: OperationParameter = { +export const body18: OperationParameter = { parameterPath: "body", mapper: AuthorizeRequestMapper, }; -export const body17: OperationParameter = { +export const body19: OperationParameter = { parameterPath: "body", mapper: PeerClusterForVolumeMigrationRequestMapper, }; -export const body18: OperationParameter = { +export const body20: OperationParameter = { parameterPath: "body", mapper: PoolChangeRequestMapper, }; -export const body19: OperationParameter = { +export const body21: OperationParameter = { parameterPath: ["options", "body"], mapper: RelocateVolumeRequestMapper, }; @@ -379,12 +391,12 @@ export const snapshotName: OperationURLParameter = { }, }; -export const body20: OperationParameter = { +export const body22: OperationParameter = { parameterPath: "body", mapper: SnapshotMapper, }; -export const body21: OperationParameter = { +export const body23: OperationParameter = { parameterPath: "body", mapper: { serializedName: "body", @@ -396,7 +408,7 @@ export const body21: OperationParameter = { }, }; -export const body22: OperationParameter = { +export const body24: OperationParameter = { parameterPath: "body", mapper: SnapshotRestoreFilesMapper, }; @@ -412,12 +424,12 @@ export const snapshotPolicyName: OperationURLParameter = { }, }; -export const body23: OperationParameter = { +export const body25: OperationParameter = { parameterPath: "body", mapper: SnapshotPolicyMapper, }; -export const body24: OperationParameter = { +export const body26: OperationParameter = { parameterPath: "body", mapper: SnapshotPolicyPatchMapper, }; @@ -433,12 +445,12 @@ export const backupPolicyName: OperationURLParameter = { }, }; -export const body25: OperationParameter = { +export const body27: OperationParameter = { parameterPath: "body", mapper: BackupPolicyMapper, }; -export const body26: OperationParameter = { +export const body28: OperationParameter = { parameterPath: "body", mapper: BackupPolicyPatchMapper, }; @@ -454,12 +466,12 @@ export const volumeQuotaRuleName: OperationURLParameter = { }, }; -export const body27: OperationParameter = { +export const body29: OperationParameter = { parameterPath: "body", mapper: VolumeQuotaRuleMapper, }; -export const body28: OperationParameter = { +export const body30: OperationParameter = { parameterPath: "body", mapper: VolumeQuotaRulePatchMapper, }; @@ -480,7 +492,7 @@ export const volumeGroupName: OperationURLParameter = { }, }; -export const body29: OperationParameter = { +export const body31: OperationParameter = { parameterPath: "body", mapper: VolumeGroupDetailsMapper, }; @@ -501,12 +513,12 @@ export const subvolumeName: OperationURLParameter = { }, }; -export const body30: OperationParameter = { +export const body32: OperationParameter = { parameterPath: "body", mapper: SubvolumeInfoMapper, }; -export const body31: OperationParameter = { +export const body33: OperationParameter = { parameterPath: "body", mapper: SubvolumePatchRequestMapper, }; @@ -549,32 +561,32 @@ export const backupName: OperationURLParameter = { }, }; -export const body32: OperationParameter = { +export const body34: OperationParameter = { parameterPath: "body", mapper: BackupMapper, }; -export const body33: OperationParameter = { +export const body35: OperationParameter = { parameterPath: ["options", "body"], mapper: BackupPatchMapper, }; -export const body34: OperationParameter = { +export const body36: OperationParameter = { parameterPath: "body", mapper: BackupVaultMapper, }; -export const body35: OperationParameter = { +export const body37: OperationParameter = { parameterPath: "body", mapper: BackupVaultPatchMapper, }; -export const body36: OperationParameter = { +export const body38: OperationParameter = { parameterPath: "body", mapper: BackupRestoreFilesMapper, }; -export const body37: OperationParameter = { +export const body39: OperationParameter = { parameterPath: "body", mapper: BackupsMigrationRequestMapper, }; diff --git a/sdk/netapp/arm-netapp/src/netAppManagementClient.ts b/sdk/netapp/arm-netapp/src/netAppManagementClient.ts index 2fc977ed9235..edfa73939a4c 100644 --- a/sdk/netapp/arm-netapp/src/netAppManagementClient.ts +++ b/sdk/netapp/arm-netapp/src/netAppManagementClient.ts @@ -88,7 +88,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-netapp/21.3.1`; + const packageDetails = `azsdk-js-arm-netapp/21.4.0-beta.2`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -142,7 +142,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2024-07-01"; + this.apiVersion = options.apiVersion || "2024-07-01-preview"; this.operations = new OperationsImpl(this); this.netAppResource = new NetAppResourceImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsImpl(this); diff --git a/sdk/netapp/arm-netapp/src/operations/accounts.ts b/sdk/netapp/arm-netapp/src/operations/accounts.ts index c56dd8ecaca3..3f532c6a7830 100644 --- a/sdk/netapp/arm-netapp/src/operations/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operations/accounts.ts @@ -36,6 +36,12 @@ import { AccountsUpdateOptionalParams, AccountsUpdateResponse, AccountsRenewCredentialsOptionalParams, + AccountsTransitionToCmkOptionalParams, + AccountsTransitionToCmkResponse, + AccountsGetChangeKeyVaultInformationOptionalParams, + AccountsGetChangeKeyVaultInformationResponse, + AccountsChangeKeyVaultOptionalParams, + AccountsChangeKeyVaultResponse, AccountsListBySubscriptionNextResponse, AccountsListNextResponse, } from "../models"; @@ -572,6 +578,286 @@ export class AccountsImpl implements Accounts { return poller.pollUntilDone(); } + /** + * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or + * Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from + * another account. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param options The options parameters. + */ + async beginTransitionToCmk( + resourceGroupName: string, + accountName: string, + options?: AccountsTransitionToCmkOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + AccountsTransitionToCmkResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, accountName, options }, + spec: transitionToCmkOperationSpec, + }); + const poller = await createHttpPoller< + AccountsTransitionToCmkResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or + * Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from + * another account. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param options The options parameters. + */ + async beginTransitionToCmkAndWait( + resourceGroupName: string, + accountName: string, + options?: AccountsTransitionToCmkOptionalParams, + ): Promise { + const poller = await this.beginTransitionToCmk( + resourceGroupName, + accountName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Contains data from encryption.keyVaultProperties as well as information about which private endpoint + * is used by each encryption sibling set. Response from this endpoint can be modified and used as + * request body for POST request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param options The options parameters. + */ + async beginGetChangeKeyVaultInformation( + resourceGroupName: string, + accountName: string, + options?: AccountsGetChangeKeyVaultInformationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + AccountsGetChangeKeyVaultInformationResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, accountName, options }, + spec: getChangeKeyVaultInformationOperationSpec, + }); + const poller = await createHttpPoller< + AccountsGetChangeKeyVaultInformationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Contains data from encryption.keyVaultProperties as well as information about which private endpoint + * is used by each encryption sibling set. Response from this endpoint can be modified and used as + * request body for POST request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param options The options parameters. + */ + async beginGetChangeKeyVaultInformationAndWait( + resourceGroupName: string, + accountName: string, + options?: AccountsGetChangeKeyVaultInformationOptionalParams, + ): Promise { + const poller = await this.beginGetChangeKeyVaultInformation( + resourceGroupName, + accountName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports + * HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param options The options parameters. + */ + async beginChangeKeyVault( + resourceGroupName: string, + accountName: string, + options?: AccountsChangeKeyVaultOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + AccountsChangeKeyVaultResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, accountName, options }, + spec: changeKeyVaultOperationSpec, + }); + const poller = await createHttpPoller< + AccountsChangeKeyVaultResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports + * HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param options The options parameters. + */ + async beginChangeKeyVaultAndWait( + resourceGroupName: string, + accountName: string, + options?: AccountsChangeKeyVaultOptionalParams, + ): Promise { + const poller = await this.beginChangeKeyVault( + resourceGroupName, + accountName, + options, + ); + return poller.pollUntilDone(); + } + /** * ListBySubscriptionNext * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. @@ -772,6 +1058,100 @@ const renewCredentialsOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; +const transitionToCmkOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/transitiontocmk", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.AccountsTransitionToCmkHeaders, + }, + 201: { + headersMapper: Mappers.AccountsTransitionToCmkHeaders, + }, + 202: { + headersMapper: Mappers.AccountsTransitionToCmkHeaders, + }, + 204: { + headersMapper: Mappers.AccountsTransitionToCmkHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getChangeKeyVaultInformationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/getKeyVaultStatus", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.AccountsGetChangeKeyVaultInformationHeaders, + }, + 201: { + headersMapper: Mappers.AccountsGetChangeKeyVaultInformationHeaders, + }, + 202: { + headersMapper: Mappers.AccountsGetChangeKeyVaultInformationHeaders, + }, + 204: { + headersMapper: Mappers.AccountsGetChangeKeyVaultInformationHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const changeKeyVaultOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/changeKeyVault", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.AccountsChangeKeyVaultHeaders, + }, + 201: { + headersMapper: Mappers.AccountsChangeKeyVaultHeaders, + }, + 202: { + headersMapper: Mappers.AccountsChangeKeyVaultHeaders, + }, + 204: { + headersMapper: Mappers.AccountsChangeKeyVaultHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts index a6eff94779f0..f03e39a45549 100644 --- a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts @@ -492,7 +492,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body25, + requestBody: Parameters.body27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -525,7 +525,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body26, + requestBody: Parameters.body28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/backupVaults.ts b/sdk/netapp/arm-netapp/src/operations/backupVaults.ts index 5a32dba0f45a..5a29719bb963 100644 --- a/sdk/netapp/arm-netapp/src/operations/backupVaults.ts +++ b/sdk/netapp/arm-netapp/src/operations/backupVaults.ts @@ -549,7 +549,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body34, + requestBody: Parameters.body36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -582,7 +582,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body35, + requestBody: Parameters.body37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/backups.ts b/sdk/netapp/arm-netapp/src/operations/backups.ts index 1e15f9694c71..feeb55819bc0 100644 --- a/sdk/netapp/arm-netapp/src/operations/backups.ts +++ b/sdk/netapp/arm-netapp/src/operations/backups.ts @@ -686,7 +686,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body32, + requestBody: Parameters.body34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -720,7 +720,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body33, + requestBody: Parameters.body35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts b/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts index 7070e1db85b5..9a6e79388abf 100644 --- a/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts +++ b/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts @@ -153,7 +153,7 @@ const migrateBackupsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body37, + requestBody: Parameters.body39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts b/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts index 946774610fa9..80a53419d030 100644 --- a/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts +++ b/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts @@ -170,7 +170,7 @@ const restoreFilesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body36, + requestBody: Parameters.body38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts b/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts index 0afb4bbf3136..0e6093ff7f8a 100644 --- a/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts +++ b/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts @@ -170,7 +170,7 @@ const migrateBackupsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body37, + requestBody: Parameters.body39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/pools.ts b/sdk/netapp/arm-netapp/src/operations/pools.ts index 93650c768d2a..b23012fc3037 100644 --- a/sdk/netapp/arm-netapp/src/operations/pools.ts +++ b/sdk/netapp/arm-netapp/src/operations/pools.ts @@ -529,7 +529,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body7, + requestBody: Parameters.body9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -562,7 +562,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body8, + requestBody: Parameters.body10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts index 48f57ea821fa..ba7815a17685 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts @@ -434,7 +434,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body23, + requestBody: Parameters.body25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -467,7 +467,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body24, + requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/snapshots.ts b/sdk/netapp/arm-netapp/src/operations/snapshots.ts index b6bda70ae9d3..1d33ee55467d 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshots.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshots.ts @@ -699,7 +699,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body20, + requestBody: Parameters.body22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -734,7 +734,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body21, + requestBody: Parameters.body23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -786,7 +786,7 @@ const restoreFilesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body22, + requestBody: Parameters.body24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/subvolumes.ts b/sdk/netapp/arm-netapp/src/operations/subvolumes.ts index 97104aefccb1..ae43c2d2dde2 100644 --- a/sdk/netapp/arm-netapp/src/operations/subvolumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/subvolumes.ts @@ -755,7 +755,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body30, + requestBody: Parameters.body32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -790,7 +790,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body31, + requestBody: Parameters.body33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts b/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts index 170069393a94..746dd5909214 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts @@ -396,7 +396,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body29, + requestBody: Parameters.body31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts b/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts index 6576b9011e6f..a4feae80ae5b 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts @@ -588,7 +588,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body27, + requestBody: Parameters.body29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -623,7 +623,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body28, + requestBody: Parameters.body30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operations/volumes.ts b/sdk/netapp/arm-netapp/src/operations/volumes.ts index a179dad52303..6843f8d5fc22 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumes.ts @@ -41,10 +41,14 @@ import { VolumesRevertOptionalParams, VolumesResetCifsPasswordOptionalParams, VolumesResetCifsPasswordResponse, + VolumesSplitCloneFromParentOptionalParams, + VolumesSplitCloneFromParentResponse, VolumesBreakFileLocksOptionalParams, GetGroupIdListForLdapUserRequest, VolumesListGetGroupIdListForLdapUserOptionalParams, VolumesListGetGroupIdListForLdapUserResponse, + VolumesListQuotaReportOptionalParams, + VolumesListQuotaReportResponse, VolumesBreakReplicationOptionalParams, ReestablishReplicationRequest, VolumesReestablishReplicationOptionalParams, @@ -919,6 +923,106 @@ export class VolumesImpl implements Volumes { return poller.pollUntilDone(); } + /** + * Split operation to convert clone volume to an independent volume. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param poolName The name of the capacity pool + * @param volumeName The name of the volume + * @param options The options parameters. + */ + async beginSplitCloneFromParent( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesSplitCloneFromParentOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VolumesSplitCloneFromParentResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, accountName, poolName, volumeName, options }, + spec: splitCloneFromParentOperationSpec, + }); + const poller = await createHttpPoller< + VolumesSplitCloneFromParentResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Split operation to convert clone volume to an independent volume. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param poolName The name of the capacity pool + * @param volumeName The name of the volume + * @param options The options parameters. + */ + async beginSplitCloneFromParentAndWait( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesSplitCloneFromParentOptionalParams, + ): Promise { + const poller = await this.beginSplitCloneFromParent( + resourceGroupName, + accountName, + poolName, + volumeName, + options, + ); + return poller.pollUntilDone(); + } + /** * Break all the file locks on a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1123,6 +1227,106 @@ export class VolumesImpl implements Volumes { return poller.pollUntilDone(); } + /** + * Returns report of quotas for the volume + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param poolName The name of the capacity pool + * @param volumeName The name of the volume + * @param options The options parameters. + */ + async beginListQuotaReport( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesListQuotaReportOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VolumesListQuotaReportResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, accountName, poolName, volumeName, options }, + spec: listQuotaReportOperationSpec, + }); + const poller = await createHttpPoller< + VolumesListQuotaReportResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Returns report of quotas for the volume + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param poolName The name of the capacity pool + * @param volumeName The name of the volume + * @param options The options parameters. + */ + async beginListQuotaReportAndWait( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesListQuotaReportOptionalParams, + ): Promise { + const poller = await this.beginListQuotaReport( + resourceGroupName, + accountName, + poolName, + volumeName, + options, + ); + return poller.pollUntilDone(); + } + /** * Break the replication connection on the destination volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2631,7 +2835,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body9, + requestBody: Parameters.body11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2665,7 +2869,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body10, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2747,7 +2951,7 @@ const revertOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body11, + requestBody: Parameters.body13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2793,6 +2997,38 @@ const resetCifsPasswordOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; +const splitCloneFromParentOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.VolumesSplitCloneFromParentHeaders, + }, + 201: { + headersMapper: Mappers.VolumesSplitCloneFromParentHeaders, + }, + 202: { + headersMapper: Mappers.VolumesSplitCloneFromParentHeaders, + }, + 204: { + headersMapper: Mappers.VolumesSplitCloneFromParentHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.poolName, + Parameters.volumeName, + ], + headerParameters: [Parameters.accept], + serializer, +}; const breakFileLocksOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks", httpMethod: "POST", @@ -2805,7 +3041,7 @@ const breakFileLocksOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body12, + requestBody: Parameters.body14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2839,7 +3075,7 @@ const listGetGroupIdListForLdapUserOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body13, + requestBody: Parameters.body15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2853,6 +3089,38 @@ const listGetGroupIdListForLdapUserOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; +const listQuotaReportOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listQuotaReport", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ListQuotaReportResponse, + }, + 201: { + bodyMapper: Mappers.ListQuotaReportResponse, + }, + 202: { + bodyMapper: Mappers.ListQuotaReportResponse, + }, + 204: { + bodyMapper: Mappers.ListQuotaReportResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.poolName, + Parameters.volumeName, + ], + headerParameters: [Parameters.accept], + serializer, +}; const breakReplicationOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication", httpMethod: "POST", @@ -2865,7 +3133,7 @@ const breakReplicationOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body14, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2891,7 +3159,7 @@ const reestablishReplicationOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body15, + requestBody: Parameters.body17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -3011,7 +3279,7 @@ const authorizeReplicationOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body16, + requestBody: Parameters.body18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -3069,7 +3337,7 @@ const peerExternalClusterOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body17, + requestBody: Parameters.body19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -3191,7 +3459,7 @@ const poolChangeOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body18, + requestBody: Parameters.body20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -3217,7 +3485,7 @@ const relocateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - requestBody: Parameters.body19, + requestBody: Parameters.body21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts index da771b6e975d..9bad2ecdeb00 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts @@ -21,6 +21,12 @@ import { AccountsUpdateOptionalParams, AccountsUpdateResponse, AccountsRenewCredentialsOptionalParams, + AccountsTransitionToCmkOptionalParams, + AccountsTransitionToCmkResponse, + AccountsGetChangeKeyVaultInformationOptionalParams, + AccountsGetChangeKeyVaultInformationResponse, + AccountsChangeKeyVaultOptionalParams, + AccountsChangeKeyVaultResponse, } from "../models"; /// @@ -163,4 +169,95 @@ export interface Accounts { accountName: string, options?: AccountsRenewCredentialsOptionalParams, ): Promise; + /** + * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or + * Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from + * another account. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param options The options parameters. + */ + beginTransitionToCmk( + resourceGroupName: string, + accountName: string, + options?: AccountsTransitionToCmkOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + AccountsTransitionToCmkResponse + > + >; + /** + * Transitions all volumes in a VNet to a different encryption key source (Microsoft-managed key or + * Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from + * another account. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param options The options parameters. + */ + beginTransitionToCmkAndWait( + resourceGroupName: string, + accountName: string, + options?: AccountsTransitionToCmkOptionalParams, + ): Promise; + /** + * Contains data from encryption.keyVaultProperties as well as information about which private endpoint + * is used by each encryption sibling set. Response from this endpoint can be modified and used as + * request body for POST request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param options The options parameters. + */ + beginGetChangeKeyVaultInformation( + resourceGroupName: string, + accountName: string, + options?: AccountsGetChangeKeyVaultInformationOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + AccountsGetChangeKeyVaultInformationResponse + > + >; + /** + * Contains data from encryption.keyVaultProperties as well as information about which private endpoint + * is used by each encryption sibling set. Response from this endpoint can be modified and used as + * request body for POST request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param options The options parameters. + */ + beginGetChangeKeyVaultInformationAndWait( + resourceGroupName: string, + accountName: string, + options?: AccountsGetChangeKeyVaultInformationOptionalParams, + ): Promise; + /** + * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports + * HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param options The options parameters. + */ + beginChangeKeyVault( + resourceGroupName: string, + accountName: string, + options?: AccountsChangeKeyVaultOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + AccountsChangeKeyVaultResponse + > + >; + /** + * Affects existing volumes that are encrypted with Key Vault/Managed HSM, and new volumes. Supports + * HSM to Key Vault, Key Vault to HSM, HSM to HSM and Key Vault to Key Vault. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param options The options parameters. + */ + beginChangeKeyVaultAndWait( + resourceGroupName: string, + accountName: string, + options?: AccountsChangeKeyVaultOptionalParams, + ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts index b3bacefa4331..ebc60d83243f 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts @@ -27,10 +27,14 @@ import { VolumesRevertOptionalParams, VolumesResetCifsPasswordOptionalParams, VolumesResetCifsPasswordResponse, + VolumesSplitCloneFromParentOptionalParams, + VolumesSplitCloneFromParentResponse, VolumesBreakFileLocksOptionalParams, GetGroupIdListForLdapUserRequest, VolumesListGetGroupIdListForLdapUserOptionalParams, VolumesListGetGroupIdListForLdapUserResponse, + VolumesListQuotaReportOptionalParams, + VolumesListQuotaReportResponse, VolumesBreakReplicationOptionalParams, ReestablishReplicationRequest, VolumesReestablishReplicationOptionalParams, @@ -315,6 +319,41 @@ export interface Volumes { volumeName: string, options?: VolumesResetCifsPasswordOptionalParams, ): Promise; + /** + * Split operation to convert clone volume to an independent volume. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param poolName The name of the capacity pool + * @param volumeName The name of the volume + * @param options The options parameters. + */ + beginSplitCloneFromParent( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesSplitCloneFromParentOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VolumesSplitCloneFromParentResponse + > + >; + /** + * Split operation to convert clone volume to an independent volume. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param poolName The name of the capacity pool + * @param volumeName The name of the volume + * @param options The options parameters. + */ + beginSplitCloneFromParentAndWait( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesSplitCloneFromParentOptionalParams, + ): Promise; /** * Break all the file locks on a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -384,6 +423,41 @@ export interface Volumes { body: GetGroupIdListForLdapUserRequest, options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise; + /** + * Returns report of quotas for the volume + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param poolName The name of the capacity pool + * @param volumeName The name of the volume + * @param options The options parameters. + */ + beginListQuotaReport( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesListQuotaReportOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VolumesListQuotaReportResponse + > + >; + /** + * Returns report of quotas for the volume + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of the NetApp account + * @param poolName The name of the capacity pool + * @param volumeName The name of the volume + * @param options The options parameters. + */ + beginListQuotaReportAndWait( + resourceGroupName: string, + accountName: string, + poolName: string, + volumeName: string, + options?: VolumesListQuotaReportOptionalParams, + ): Promise; /** * Break the replication connection on the destination volume * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/netapp/arm-netapp/tsconfig.json b/sdk/netapp/arm-netapp/tsconfig.json index 1772b5822344..f0a64b12d18e 100644 --- a/sdk/netapp/arm-netapp/tsconfig.json +++ b/sdk/netapp/arm-netapp/tsconfig.json @@ -23,8 +23,8 @@ } }, "include": [ - "./src/**/*.ts", - "./test/**/*.ts", + "src/**/*.ts", + "test/**/*.ts", "samples-dev/**/*.ts" ], "exclude": [ diff --git a/sdk/network/arm-network-rest/karma.conf.js b/sdk/network/arm-network-rest/karma.conf.js index 782c9d1621b0..51f7527ce766 100644 --- a/sdk/network/arm-network-rest/karma.conf.js +++ b/sdk/network/arm-network-rest/karma.conf.js @@ -102,7 +102,7 @@ module.exports = function (config) { // --no-sandbox allows our tests to run in Linux without having to change the system. // --disable-web-security allows us to authenticate from the browser without having to write tests using interactive auth, which would be far more complex. - browsers: ["ChromeHeadlessNoSandbox"], + browsers: ["Firefox"], customLaunchers: { ChromeHeadlessNoSandbox: { base: "ChromeHeadless", diff --git a/sdk/network/arm-network-rest/package.json b/sdk/network/arm-network-rest/package.json index c3372a177437..def6d3ee5267 100644 --- a/sdk/network/arm-network-rest/package.json +++ b/sdk/network/arm-network-rest/package.json @@ -86,7 +86,7 @@ "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", "karma-env-preprocessor": "^0.1.1", - "karma-firefox-launcher": "^1.1.0", + "karma-firefox-launcher": "^2.1.3", "karma-junit-reporter": "^2.0.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", diff --git a/sdk/networkcloud/arm-networkcloud/CHANGELOG.md b/sdk/networkcloud/arm-networkcloud/CHANGELOG.md index 60d984a9420e..cf9b166e2082 100644 --- a/sdk/networkcloud/arm-networkcloud/CHANGELOG.md +++ b/sdk/networkcloud/arm-networkcloud/CHANGELOG.md @@ -1,5 +1,190 @@ # Release History + +## 2.0.0-beta.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + +## 2.0.0-beta.1 (2024-11-18) +Compared with version 1.0.0 +### Features Added + + - Added operation group KubernetesClusterFeatures + - Added operation Clusters.beginContinueUpdateVersion + - Added operation Clusters.beginContinueUpdateVersionAndWait + - Added operation Clusters.beginScanRuntime + - Added operation Clusters.beginScanRuntimeAndWait + - Added Interface AdministratorConfigurationPatch + - Added Interface ClusterContinueUpdateVersionParameters + - Added Interface ClusterScanRuntimeParameters + - Added Interface ClustersContinueUpdateVersionHeaders + - Added Interface ClustersContinueUpdateVersionOptionalParams + - Added Interface ClusterSecretArchive + - Added Interface ClustersScanRuntimeHeaders + - Added Interface ClustersScanRuntimeOptionalParams + - Added Interface ClusterUpdateStrategy + - Added Interface CommandOutputSettings + - Added Interface IdentitySelector + - Added Interface KubernetesClusterFeature + - Added Interface KubernetesClusterFeatureList + - Added Interface KubernetesClusterFeaturePatchParameters + - Added Interface KubernetesClusterFeaturesCreateOrUpdateHeaders + - Added Interface KubernetesClusterFeaturesCreateOrUpdateOptionalParams + - Added Interface KubernetesClusterFeaturesDeleteHeaders + - Added Interface KubernetesClusterFeaturesDeleteOptionalParams + - Added Interface KubernetesClusterFeaturesGetOptionalParams + - Added Interface KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams + - Added Interface KubernetesClusterFeaturesListByKubernetesClusterOptionalParams + - Added Interface KubernetesClusterFeaturesUpdateHeaders + - Added Interface KubernetesClusterFeaturesUpdateOptionalParams + - Added Interface L2ServiceLoadBalancerConfiguration + - Added Interface ManagedServiceIdentity + - Added Interface NodePoolAdministratorConfigurationPatch + - Added Interface RuntimeProtectionConfiguration + - Added Interface RuntimeProtectionStatus + - Added Interface SecretArchiveReference + - Added Interface SecretRotationStatus + - Added Interface StringKeyValuePair + - Added Interface UserAssignedIdentity + - Added Type Alias AgentPoolsDeleteResponse + - Added Type Alias BareMetalMachineKeySetsDeleteResponse + - Added Type Alias BareMetalMachinesDeleteResponse + - Added Type Alias BmcKeySetsDeleteResponse + - Added Type Alias CloudServicesNetworksDeleteResponse + - Added Type Alias ClusterContinueUpdateVersionMachineGroupTargetingMode + - Added Type Alias ClusterManagersDeleteResponse + - Added Type Alias ClusterScanRuntimeParametersScanActivity + - Added Type Alias ClustersContinueUpdateVersionResponse + - Added Type Alias ClustersDeleteResponse + - Added Type Alias ClusterSecretArchiveEnabled + - Added Type Alias ClustersScanRuntimeResponse + - Added Type Alias ClusterUpdateStrategyType + - Added Type Alias ConsolesDeleteResponse + - Added Type Alias KubernetesClusterFeatureAvailabilityLifecycle + - Added Type Alias KubernetesClusterFeatureDetailedStatus + - Added Type Alias KubernetesClusterFeatureProvisioningState + - Added Type Alias KubernetesClusterFeatureRequired + - Added Type Alias KubernetesClusterFeaturesCreateOrUpdateResponse + - Added Type Alias KubernetesClusterFeaturesDeleteResponse + - Added Type Alias KubernetesClusterFeaturesGetResponse + - Added Type Alias KubernetesClusterFeaturesListByKubernetesClusterNextResponse + - Added Type Alias KubernetesClusterFeaturesListByKubernetesClusterResponse + - Added Type Alias KubernetesClusterFeaturesUpdateResponse + - Added Type Alias KubernetesClustersDeleteResponse + - Added Type Alias L2NetworksDeleteResponse + - Added Type Alias L3NetworksDeleteResponse + - Added Type Alias ManagedServiceIdentitySelectorType + - Added Type Alias ManagedServiceIdentityType + - Added Type Alias MetricsConfigurationsDeleteResponse + - Added Type Alias RacksDeleteResponse + - Added Type Alias RuntimeProtectionEnforcementLevel + - Added Type Alias StorageAppliancesDeleteResponse + - Added Type Alias TrunkedNetworksDeleteResponse + - Added Type Alias VirtualMachinesDeleteResponse + - Added Type Alias VolumesDeleteResponse + - Interface AgentPoolPatchParameters has a new optional parameter administratorConfiguration + - Interface AgentPoolsUpdateHeaders has a new optional parameter location + - Interface AgentPoolUpgradeSettings has a new optional parameter drainTimeout + - Interface AgentPoolUpgradeSettings has a new optional parameter maxUnavailable + - Interface BareMetalMachine has a new optional parameter machineClusterVersion + - Interface BareMetalMachine has a new optional parameter machineRoles + - Interface BareMetalMachine has a new optional parameter runtimeProtectionStatus + - Interface BareMetalMachine has a new optional parameter secretRotationStatus + - Interface BareMetalMachineKeySetsUpdateHeaders has a new optional parameter location + - Interface BareMetalMachinesUpdateHeaders has a new optional parameter location + - Interface BmcKeySetsUpdateHeaders has a new optional parameter location + - Interface CloudServicesNetworksUpdateHeaders has a new optional parameter location + - Interface Cluster has a new optional parameter commandOutputSettings + - Interface Cluster has a new optional parameter identity + - Interface Cluster has a new optional parameter runtimeProtectionConfiguration + - Interface Cluster has a new optional parameter secretArchive + - Interface Cluster has a new optional parameter updateStrategy + - Interface ClusterManager has a new optional parameter identity + - Interface ClusterManagerPatchParameters has a new optional parameter identity + - Interface ClusterPatchParameters has a new optional parameter commandOutputSettings + - Interface ClusterPatchParameters has a new optional parameter identity + - Interface ClusterPatchParameters has a new optional parameter runtimeProtectionConfiguration + - Interface ClusterPatchParameters has a new optional parameter secretArchive + - Interface ClusterPatchParameters has a new optional parameter updateStrategy + - Interface ClustersUpdateHeaders has a new optional parameter location + - Interface ConsolesUpdateHeaders has a new optional parameter location + - Interface ControlPlaneNodePatchConfiguration has a new optional parameter administratorConfiguration + - Interface KeySetUser has a new optional parameter userPrincipalName + - Interface KubernetesClusterPatchParameters has a new optional parameter administratorConfiguration + - Interface KubernetesClustersUpdateHeaders has a new optional parameter location + - Interface MetricsConfigurationsUpdateHeaders has a new optional parameter location + - Interface NetworkConfiguration has a new optional parameter l2ServiceLoadBalancerConfiguration + - Interface OperationStatusResult has a new optional parameter exitCode + - Interface OperationStatusResult has a new optional parameter outputHead + - Interface OperationStatusResult has a new optional parameter resultRef + - Interface OperationStatusResult has a new optional parameter resultUrl + - Interface RacksUpdateHeaders has a new optional parameter location + - Interface StorageAppliance has a new optional parameter manufacturer + - Interface StorageAppliance has a new optional parameter model + - Interface StorageAppliance has a new optional parameter secretRotationStatus + - Interface StorageAppliance has a new optional parameter version + - Interface StorageAppliancesUpdateHeaders has a new optional parameter location + - Interface VirtualMachinesUpdateHeaders has a new optional parameter location + - Added Enum KnownClusterContinueUpdateVersionMachineGroupTargetingMode + - Added Enum KnownClusterScanRuntimeParametersScanActivity + - Added Enum KnownClusterSecretArchiveEnabled + - Added Enum KnownClusterUpdateStrategyType + - Added Enum KnownKubernetesClusterFeatureAvailabilityLifecycle + - Added Enum KnownKubernetesClusterFeatureDetailedStatus + - Added Enum KnownKubernetesClusterFeatureProvisioningState + - Added Enum KnownKubernetesClusterFeatureRequired + - Added Enum KnownManagedServiceIdentitySelectorType + - Added Enum KnownManagedServiceIdentityType + - Added Enum KnownRuntimeProtectionEnforcementLevel + - Enum KnownClusterConnectionStatus has a new value Disconnected + - Enum KnownClusterDetailedStatus has a new value UpdatePaused + - Enum KnownRackSkuProvisioningState has a new value Canceled + - Enum KnownRackSkuProvisioningState has a new value Failed + +### Breaking Changes + + - the return type of AgentPools.beginDelete operation has been changed from void into AgentPoolsDeleteResponse + - the return type of AgentPools.beginDeleteAndWait operation has been changed from void into AgentPoolsDeleteResponse + - the return type of BareMetalMachineKeySets.beginDelete operation has been changed from void into BareMetalMachineKeySetsDeleteResponse + - the return type of BareMetalMachineKeySets.beginDeleteAndWait operation has been changed from void into BareMetalMachineKeySetsDeleteResponse + - the return type of BareMetalMachines.beginDelete operation has been changed from void into BareMetalMachinesDeleteResponse + - the return type of BareMetalMachines.beginDeleteAndWait operation has been changed from void into BareMetalMachinesDeleteResponse + - the return type of BmcKeySets.beginDelete operation has been changed from void into BmcKeySetsDeleteResponse + - the return type of BmcKeySets.beginDeleteAndWait operation has been changed from void into BmcKeySetsDeleteResponse + - the return type of CloudServicesNetworks.beginDelete operation has been changed from void into CloudServicesNetworksDeleteResponse + - the return type of CloudServicesNetworks.beginDeleteAndWait operation has been changed from void into CloudServicesNetworksDeleteResponse + - the return type of ClusterManagers.beginDelete operation has been changed from void into ClusterManagersDeleteResponse + - the return type of ClusterManagers.beginDeleteAndWait operation has been changed from void into ClusterManagersDeleteResponse + - the return type of Clusters.beginDelete operation has been changed from void into ClustersDeleteResponse + - the return type of Clusters.beginDeleteAndWait operation has been changed from void into ClustersDeleteResponse + - the return type of Consoles.beginDelete operation has been changed from void into ConsolesDeleteResponse + - the return type of Consoles.beginDeleteAndWait operation has been changed from void into ConsolesDeleteResponse + - the return type of KubernetesClusters.beginDelete operation has been changed from void into KubernetesClustersDeleteResponse + - the return type of KubernetesClusters.beginDeleteAndWait operation has been changed from void into KubernetesClustersDeleteResponse + - the return type of L2Networks.beginDelete operation has been changed from void into L2NetworksDeleteResponse + - the return type of L2Networks.beginDeleteAndWait operation has been changed from void into L2NetworksDeleteResponse + - the return type of L3Networks.beginDelete operation has been changed from void into L3NetworksDeleteResponse + - the return type of L3Networks.beginDeleteAndWait operation has been changed from void into L3NetworksDeleteResponse + - the return type of MetricsConfigurations.beginDelete operation has been changed from void into MetricsConfigurationsDeleteResponse + - the return type of MetricsConfigurations.beginDeleteAndWait operation has been changed from void into MetricsConfigurationsDeleteResponse + - the return type of Racks.beginDelete operation has been changed from void into RacksDeleteResponse + - the return type of Racks.beginDeleteAndWait operation has been changed from void into RacksDeleteResponse + - the return type of StorageAppliances.beginDelete operation has been changed from void into StorageAppliancesDeleteResponse + - the return type of StorageAppliances.beginDeleteAndWait operation has been changed from void into StorageAppliancesDeleteResponse + - the return type of TrunkedNetworks.beginDelete operation has been changed from void into TrunkedNetworksDeleteResponse + - the return type of TrunkedNetworks.beginDeleteAndWait operation has been changed from void into TrunkedNetworksDeleteResponse + - the return type of VirtualMachines.beginDelete operation has been changed from void into VirtualMachinesDeleteResponse + - the return type of VirtualMachines.beginDeleteAndWait operation has been changed from void into VirtualMachinesDeleteResponse + - the return type of Volumes.beginDelete operation has been changed from void into VolumesDeleteResponse + - the return type of Volumes.beginDeleteAndWait operation has been changed from void into VolumesDeleteResponse + + ## 1.0.0 (2023-08-22) -The package of @azure/arm-networkcloud is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +The package of @azure/arm-networkcloud is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/networkcloud/arm-networkcloud/LICENSE b/sdk/networkcloud/arm-networkcloud/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/networkcloud/arm-networkcloud/LICENSE +++ b/sdk/networkcloud/arm-networkcloud/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/networkcloud/arm-networkcloud/README.md b/sdk/networkcloud/arm-networkcloud/README.md index 26ebda613e81..bb75025a8c98 100644 --- a/sdk/networkcloud/arm-networkcloud/README.md +++ b/sdk/networkcloud/arm-networkcloud/README.md @@ -2,11 +2,11 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure NetworkCloud client. -The Network Cloud APIs provide management of the on-premises clusters and their resources, such as, racks, bare metal hosts, virtual machines, workload networks and more. +The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-networkcloud) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-networkcloud) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-networkcloud?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/networkcloud/arm-networkcloud/_meta.json b/sdk/networkcloud/arm-networkcloud/_meta.json index 5fd598b8576b..4343fbe8a3fa 100644 --- a/sdk/networkcloud/arm-networkcloud/_meta.json +++ b/sdk/networkcloud/arm-networkcloud/_meta.json @@ -1,8 +1,8 @@ { - "commit": "bcfe02ef3ec205b5e52d927680d5c5f261c20a7a", + "commit": "297c3a012316e290e6a6ab737ec8944611554542", "readme": "specification/networkcloud/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\networkcloud\\resource-manager\\readme.md --use=@autorest/typescript@6.0.8 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\networkcloud\\resource-manager\\readme.md --use=@autorest/typescript@6.0.28 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.8" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.15", + "use": "@autorest/typescript@6.0.28" } \ No newline at end of file diff --git a/sdk/networkcloud/arm-networkcloud/assets.json b/sdk/networkcloud/arm-networkcloud/assets.json index a9a2c2cfbbee..b49e2e68a9dd 100644 --- a/sdk/networkcloud/arm-networkcloud/assets.json +++ b/sdk/networkcloud/arm-networkcloud/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/networkcloud/arm-networkcloud", - "Tag": "js/networkcloud/arm-networkcloud_02907c4af7" + "Tag": "js/networkcloud/arm-networkcloud_8692b651dd" } diff --git a/sdk/networkcloud/arm-networkcloud/package.json b/sdk/networkcloud/arm-networkcloud/package.json index e801c129c8fb..a2769d01e2cc 100644 --- a/sdk/networkcloud/arm-networkcloud/package.json +++ b/sdk/networkcloud/arm-networkcloud/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetworkCloud.", - "version": "1.0.0", + "version": "2.0.0-beta.2", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-client": "^1.7.0", "@azure/core-lro": "^2.5.4", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -28,18 +28,20 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-networkcloud.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@microsoft/api-extractor": "^7.31.1", + "typescript": "~5.6.2", + "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", + "@azure/identity": "^4.2.1", + "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^1.1.0", + "mocha": "^10.0.0", "@types/mocha": "^10.0.0", - "@types/node": "^18.0.0", + "tsx": "^4.7.1", + "@types/chai": "^4.2.8", "chai": "^4.2.0", - "dotenv": "^16.0.0", - "mocha": "^10.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "@types/node": "^18.0.0", + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -67,28 +69,28 @@ ], "scripts": { "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "build:browser": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "dev-tool run extract-api", + "lint": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", - "build:samples": "echo skipped.", + "build:browser": "echo skipped", "build:test": "echo skipped", + "build:samples": "echo skipped.", "check-format": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", - "extract-api": "dev-tool run extract-api", "format": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "lint": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "prepack": "npm run build", "test": "npm run integration-test", - "test:browser": "echo skipped", "test:node": "echo skipped", + "test:browser": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped", "update-snippets": "echo skipped" }, "sideEffects": false, diff --git a/sdk/networkcloud/arm-networkcloud/review/arm-networkcloud.api.md b/sdk/networkcloud/arm-networkcloud/review/arm-networkcloud.api.md index 8734d2d72ecb..3cb4a58176fd 100644 --- a/sdk/networkcloud/arm-networkcloud/review/arm-networkcloud.api.md +++ b/sdk/networkcloud/arm-networkcloud/review/arm-networkcloud.api.md @@ -30,6 +30,11 @@ export interface AdministratorConfiguration { sshPublicKeys?: SshPublicKey[]; } +// @public +export interface AdministratorConfigurationPatch { + sshPublicKeys?: SshPublicKey[]; +} + // @public export type AdvertiseToFabric = string; @@ -86,6 +91,7 @@ export type AgentPoolMode = string; // @public export interface AgentPoolPatchParameters { + administratorConfiguration?: NodePoolAdministratorConfigurationPatch; count?: number; tags?: { [propertyName: string]: string; @@ -100,8 +106,8 @@ export type AgentPoolProvisioningState = string; export interface AgentPools { beginCreateOrUpdate(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, agentPoolParameters: AgentPool, options?: AgentPoolsCreateOrUpdateOptionalParams): Promise, AgentPoolsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, agentPoolParameters: AgentPool, options?: AgentPoolsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams): Promise, AgentPoolsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsUpdateOptionalParams): Promise, AgentPoolsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsUpdateOptionalParams): Promise; get(resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, options?: AgentPoolsGetOptionalParams): Promise; @@ -133,6 +139,9 @@ export interface AgentPoolsDeleteOptionalParams extends coreClient.OperationOpti updateIntervalInMs?: number; } +// @public +export type AgentPoolsDeleteResponse = OperationStatusResult; + // @public export interface AgentPoolsGetOptionalParams extends coreClient.OperationOptions { } @@ -157,6 +166,7 @@ export type AgentPoolsListByKubernetesClusterResponse = AgentPoolList; // @public export interface AgentPoolsUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -171,7 +181,9 @@ export type AgentPoolsUpdateResponse = AgentPool; // @public export interface AgentPoolUpgradeSettings { + drainTimeout?: number; maxSurge?: string; + maxUnavailable?: string; } // @public @@ -207,8 +219,10 @@ export interface BareMetalMachine extends TrackedResource { readonly hybridAksClustersAssociatedIds?: string[]; readonly kubernetesNodeName?: string; readonly kubernetesVersion?: string; + machineClusterVersion?: string; machineDetails: string; machineName: string; + readonly machineRoles?: string[]; machineSkuId: string; readonly oamIpv4Address?: string; readonly oamIpv6Address?: string; @@ -218,6 +232,8 @@ export interface BareMetalMachine extends TrackedResource { rackId: string; rackSlot: number; readonly readyState?: BareMetalMachineReadyState; + readonly runtimeProtectionStatus?: RuntimeProtectionStatus; + readonly secretRotationStatus?: SecretRotationStatus[]; serialNumber: string; readonly serviceTag?: string; readonly virtualMachinesAssociatedIds?: string[]; @@ -303,8 +319,8 @@ export type BareMetalMachineKeySetProvisioningState = string; export interface BareMetalMachineKeySets { beginCreateOrUpdate(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, bareMetalMachineKeySetParameters: BareMetalMachineKeySet, options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams): Promise, BareMetalMachineKeySetsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, bareMetalMachineKeySetParameters: BareMetalMachineKeySet, options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsDeleteOptionalParams): Promise, BareMetalMachineKeySetsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsUpdateOptionalParams): Promise, BareMetalMachineKeySetsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsUpdateOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, options?: BareMetalMachineKeySetsGetOptionalParams): Promise; @@ -336,6 +352,9 @@ export interface BareMetalMachineKeySetsDeleteOptionalParams extends coreClient. updateIntervalInMs?: number; } +// @public +export type BareMetalMachineKeySetsDeleteResponse = OperationStatusResult; + // @public export interface BareMetalMachineKeySetsGetOptionalParams extends coreClient.OperationOptions { } @@ -360,6 +379,7 @@ export type BareMetalMachineKeySetsListByClusterResponse = BareMetalMachineKeySe // @public export interface BareMetalMachineKeySetsUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -437,8 +457,8 @@ export interface BareMetalMachines { beginCordonAndWait(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesCordonOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineParameters: BareMetalMachine, options?: BareMetalMachinesCreateOrUpdateOptionalParams): Promise, BareMetalMachinesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineParameters: BareMetalMachine, options?: BareMetalMachinesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesDeleteOptionalParams): Promise, BareMetalMachinesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesDeleteOptionalParams): Promise; beginPowerOff(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesPowerOffOptionalParams): Promise, BareMetalMachinesPowerOffResponse>>; beginPowerOffAndWait(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesPowerOffOptionalParams): Promise; beginReimage(resourceGroupName: string, bareMetalMachineName: string, options?: BareMetalMachinesReimageOptionalParams): Promise, BareMetalMachinesReimageResponse>>; @@ -504,6 +524,9 @@ export interface BareMetalMachinesDeleteOptionalParams extends coreClient.Operat updateIntervalInMs?: number; } +// @public +export type BareMetalMachinesDeleteResponse = OperationStatusResult; + // @public export interface BareMetalMachinesGetOptionalParams extends coreClient.OperationOptions { } @@ -673,6 +696,7 @@ export type BareMetalMachinesUncordonResponse = OperationStatusResult; // @public export interface BareMetalMachinesUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -749,8 +773,8 @@ export type BmcKeySetProvisioningState = string; export interface BmcKeySets { beginCreateOrUpdate(resourceGroupName: string, clusterName: string, bmcKeySetName: string, bmcKeySetParameters: BmcKeySet, options?: BmcKeySetsCreateOrUpdateOptionalParams): Promise, BmcKeySetsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, bmcKeySetName: string, bmcKeySetParameters: BmcKeySet, options?: BmcKeySetsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsDeleteOptionalParams): Promise, BmcKeySetsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsUpdateOptionalParams): Promise, BmcKeySetsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsUpdateOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, bmcKeySetName: string, options?: BmcKeySetsGetOptionalParams): Promise; @@ -782,6 +806,9 @@ export interface BmcKeySetsDeleteOptionalParams extends coreClient.OperationOpti updateIntervalInMs?: number; } +// @public +export type BmcKeySetsDeleteResponse = OperationStatusResult; + // @public export interface BmcKeySetsGetOptionalParams extends coreClient.OperationOptions { } @@ -806,6 +833,7 @@ export type BmcKeySetsListByClusterResponse = BmcKeySetList; // @public export interface BmcKeySetsUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -865,8 +893,8 @@ export type CloudServicesNetworkProvisioningState = string; export interface CloudServicesNetworks { beginCreateOrUpdate(resourceGroupName: string, cloudServicesNetworkName: string, cloudServicesNetworkParameters: CloudServicesNetwork, options?: CloudServicesNetworksCreateOrUpdateOptionalParams): Promise, CloudServicesNetworksCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, cloudServicesNetworkName: string, cloudServicesNetworkParameters: CloudServicesNetwork, options?: CloudServicesNetworksCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksDeleteOptionalParams): Promise, CloudServicesNetworksDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksUpdateOptionalParams): Promise, CloudServicesNetworksUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksUpdateOptionalParams): Promise; get(resourceGroupName: string, cloudServicesNetworkName: string, options?: CloudServicesNetworksGetOptionalParams): Promise; @@ -899,6 +927,9 @@ export interface CloudServicesNetworksDeleteOptionalParams extends coreClient.Op updateIntervalInMs?: number; } +// @public +export type CloudServicesNetworksDeleteResponse = OperationStatusResult; + // @public export interface CloudServicesNetworksGetOptionalParams extends coreClient.OperationOptions { } @@ -937,6 +968,7 @@ export type CloudServicesNetworksListBySubscriptionResponse = CloudServicesNetwo // @public export interface CloudServicesNetworksUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -963,17 +995,22 @@ export interface Cluster extends TrackedResource { clusterServicePrincipal?: ServicePrincipalInformation; clusterType: ClusterType; clusterVersion: string; + commandOutputSettings?: CommandOutputSettings; computeDeploymentThreshold?: ValidationThreshold; computeRackDefinitions?: RackDefinition[]; readonly detailedStatus?: ClusterDetailedStatus; readonly detailedStatusMessage?: string; extendedLocation: ExtendedLocation; readonly hybridAksExtendedLocation?: ExtendedLocation; + identity?: ManagedServiceIdentity; managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; readonly manualActionCount?: number; networkFabricId: string; readonly provisioningState?: ClusterProvisioningState; + runtimeProtectionConfiguration?: RuntimeProtectionConfiguration; + secretArchive?: ClusterSecretArchive; readonly supportExpiryDate?: string; + updateStrategy?: ClusterUpdateStrategy; readonly workloadResourceIds?: string[]; } @@ -1008,6 +1045,14 @@ export interface ClusterCapacity { // @public export type ClusterConnectionStatus = string; +// @public +export type ClusterContinueUpdateVersionMachineGroupTargetingMode = string; + +// @public +export interface ClusterContinueUpdateVersionParameters { + machineGroupTargetingMode?: ClusterContinueUpdateVersionMachineGroupTargetingMode; +} + // @public export interface ClusterDeployParameters { skipValidationsForMachines?: string[]; @@ -1030,6 +1075,7 @@ export interface ClusterManager extends TrackedResource { readonly detailedStatus?: ClusterManagerDetailedStatus; readonly detailedStatusMessage?: string; fabricControllerId: string; + identity?: ManagedServiceIdentity; managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; readonly managerExtendedLocation?: ExtendedLocation; readonly provisioningState?: ClusterManagerProvisioningState; @@ -1050,6 +1096,7 @@ export interface ClusterManagerList { // @public export interface ClusterManagerPatchParameters { + identity?: ManagedServiceIdentity; tags?: { [propertyName: string]: string; }; @@ -1062,8 +1109,8 @@ export type ClusterManagerProvisioningState = string; export interface ClusterManagers { beginCreateOrUpdate(resourceGroupName: string, clusterManagerName: string, clusterManagerParameters: ClusterManager, options?: ClusterManagersCreateOrUpdateOptionalParams): Promise, ClusterManagersCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterManagerName: string, clusterManagerParameters: ClusterManager, options?: ClusterManagersCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterManagerName: string, options?: ClusterManagersDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterManagerName: string, options?: ClusterManagersDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterManagerName: string, options?: ClusterManagersDeleteOptionalParams): Promise, ClusterManagersDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterManagerName: string, options?: ClusterManagersDeleteOptionalParams): Promise; get(resourceGroupName: string, clusterManagerName: string, options?: ClusterManagersGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: ClusterManagersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: ClusterManagersListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -1095,6 +1142,9 @@ export interface ClusterManagersDeleteOptionalParams extends coreClient.Operatio updateIntervalInMs?: number; } +// @public +export type ClusterManagersDeleteResponse = OperationStatusResult; + // @public export interface ClusterManagersGetOptionalParams extends coreClient.OperationOptions { } @@ -1175,11 +1225,16 @@ export interface ClusterPatchParameters { aggregatorOrSingleRackDefinition?: RackDefinition; clusterLocation?: string; clusterServicePrincipal?: ServicePrincipalInformation; + commandOutputSettings?: CommandOutputSettings; computeDeploymentThreshold?: ValidationThreshold; computeRackDefinitions?: RackDefinition[]; + identity?: ManagedServiceIdentity; + runtimeProtectionConfiguration?: RuntimeProtectionConfiguration; + secretArchive?: ClusterSecretArchive; tags?: { [propertyName: string]: string; }; + updateStrategy?: ClusterUpdateStrategy; } // @public @@ -1187,12 +1242,16 @@ export type ClusterProvisioningState = string; // @public export interface Clusters { + beginContinueUpdateVersion(resourceGroupName: string, clusterName: string, clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters, options?: ClustersContinueUpdateVersionOptionalParams): Promise, ClustersContinueUpdateVersionResponse>>; + beginContinueUpdateVersionAndWait(resourceGroupName: string, clusterName: string, clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters, options?: ClustersContinueUpdateVersionOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, clusterName: string, clusterParameters: Cluster, options?: ClustersCreateOrUpdateOptionalParams): Promise, ClustersCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, clusterParameters: Cluster, options?: ClustersCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise, ClustersDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise; beginDeploy(resourceGroupName: string, clusterName: string, options?: ClustersDeployOptionalParams): Promise, ClustersDeployResponse>>; beginDeployAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeployOptionalParams): Promise; + beginScanRuntime(resourceGroupName: string, clusterName: string, options?: ClustersScanRuntimeOptionalParams): Promise, ClustersScanRuntimeResponse>>; + beginScanRuntimeAndWait(resourceGroupName: string, clusterName: string, options?: ClustersScanRuntimeOptionalParams): Promise; beginUpdate(resourceGroupName: string, clusterName: string, options?: ClustersUpdateOptionalParams): Promise, ClustersUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, options?: ClustersUpdateOptionalParams): Promise; beginUpdateVersion(resourceGroupName: string, clusterName: string, clusterUpdateVersionParameters: ClusterUpdateVersionParameters, options?: ClustersUpdateVersionOptionalParams): Promise, ClustersUpdateVersionResponse>>; @@ -1202,6 +1261,28 @@ export interface Clusters { listBySubscription(options?: ClustersListBySubscriptionOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ClusterScanRuntimeParameters { + scanActivity?: ClusterScanRuntimeParametersScanActivity; +} + +// @public +export type ClusterScanRuntimeParametersScanActivity = string; + +// @public +export interface ClustersContinueUpdateVersionHeaders { + location?: string; +} + +// @public +export interface ClustersContinueUpdateVersionOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ClustersContinueUpdateVersionResponse = OperationStatusResult; + // @public export interface ClustersCreateOrUpdateHeaders { azureAsyncOperation?: string; @@ -1227,6 +1308,9 @@ export interface ClustersDeleteOptionalParams extends coreClient.OperationOption updateIntervalInMs?: number; } +// @public +export type ClustersDeleteResponse = OperationStatusResult; + // @public export interface ClustersDeployHeaders { location?: string; @@ -1242,6 +1326,15 @@ export interface ClustersDeployOptionalParams extends coreClient.OperationOption // @public export type ClustersDeployResponse = OperationStatusResult; +// @public +export interface ClusterSecretArchive { + keyVaultId: string; + useKeyVault?: ClusterSecretArchiveEnabled; +} + +// @public +export type ClusterSecretArchiveEnabled = string; + // @public export interface ClustersGetOptionalParams extends coreClient.OperationOptions { } @@ -1277,9 +1370,25 @@ export interface ClustersListBySubscriptionOptionalParams extends coreClient.Ope // @public export type ClustersListBySubscriptionResponse = ClusterList; +// @public +export interface ClustersScanRuntimeHeaders { + location?: string; +} + +// @public +export interface ClustersScanRuntimeOptionalParams extends coreClient.OperationOptions { + clusterScanRuntimeParameters?: ClusterScanRuntimeParameters; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ClustersScanRuntimeResponse = OperationStatusResult; + // @public export interface ClustersUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -1309,11 +1418,29 @@ export type ClustersUpdateVersionResponse = OperationStatusResult; // @public export type ClusterType = string; +// @public +export interface ClusterUpdateStrategy { + maxUnavailable?: number; + strategyType: ClusterUpdateStrategyType; + thresholdType: ValidationThresholdType; + thresholdValue: number; + waitTimeMinutes?: number; +} + +// @public +export type ClusterUpdateStrategyType = string; + // @public export interface ClusterUpdateVersionParameters { targetClusterVersion: string; } +// @public +export interface CommandOutputSettings { + associatedIdentity?: IdentitySelector; + containerUrl?: string; +} + // @public interface Console_2 extends TrackedResource { readonly detailedStatus?: ConsoleDetailedStatus; @@ -1357,8 +1484,8 @@ export type ConsoleProvisioningState = string; export interface Consoles { beginCreateOrUpdate(resourceGroupName: string, virtualMachineName: string, consoleName: string, consoleParameters: Console_2, options?: ConsolesCreateOrUpdateOptionalParams): Promise, ConsolesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, virtualMachineName: string, consoleName: string, consoleParameters: Console_2, options?: ConsolesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesDeleteOptionalParams): Promise, ConsolesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesUpdateOptionalParams): Promise, ConsolesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesUpdateOptionalParams): Promise; get(resourceGroupName: string, virtualMachineName: string, consoleName: string, options?: ConsolesGetOptionalParams): Promise; @@ -1390,6 +1517,9 @@ export interface ConsolesDeleteOptionalParams extends coreClient.OperationOption updateIntervalInMs?: number; } +// @public +export type ConsolesDeleteResponse = OperationStatusResult; + // @public export interface ConsolesGetOptionalParams extends coreClient.OperationOptions { } @@ -1414,6 +1544,7 @@ export type ConsolesListByVirtualMachineResponse = ConsoleList; // @public export interface ConsolesUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -1439,6 +1570,7 @@ export interface ControlPlaneNodeConfiguration { // @public export interface ControlPlaneNodePatchConfiguration { + administratorConfiguration?: AdministratorConfigurationPatch; count?: number; } @@ -1539,6 +1671,12 @@ export type HybridAksIpamEnabled = string; // @public export type HybridAksPluginType = string; +// @public +export interface IdentitySelector { + identityType?: ManagedServiceIdentitySelectorType; + userAssignedIdentityResourceId?: string; +} + // @public export interface ImageRepositoryCredentials { password: string; @@ -1577,6 +1715,7 @@ export interface KeySetUser { azureUserName: string; description?: string; sshPublicKey: SshPublicKey; + userPrincipalName?: string; } // @public @@ -1777,10 +1916,16 @@ export enum KnownCloudServicesNetworkProvisioningState { // @public export enum KnownClusterConnectionStatus { Connected = "Connected", + Disconnected = "Disconnected", Timeout = "Timeout", Undefined = "Undefined" } +// @public +export enum KnownClusterContinueUpdateVersionMachineGroupTargetingMode { + AlphaByRack = "AlphaByRack" +} + // @public export enum KnownClusterDetailedStatus { Degraded = "Degraded", @@ -1790,6 +1935,7 @@ export enum KnownClusterDetailedStatus { Failed = "Failed", PendingDeployment = "PendingDeployment", Running = "Running", + UpdatePaused = "UpdatePaused", Updating = "Updating" } @@ -1845,12 +1991,30 @@ export enum KnownClusterProvisioningState { Validating = "Validating" } +// @public +export enum KnownClusterScanRuntimeParametersScanActivity { + Scan = "Scan", + Skip = "Skip" +} + +// @public +export enum KnownClusterSecretArchiveEnabled { + False = "False", + True = "True" +} + // @public export enum KnownClusterType { MultiRack = "MultiRack", SingleRack = "SingleRack" } +// @public +export enum KnownClusterUpdateStrategyType { + PauseAfterRack = "PauseAfterRack", + Rack = "Rack" +} + // @public export enum KnownConsoleDetailedStatus { Error = "Error", @@ -1949,6 +2113,35 @@ export enum KnownKubernetesClusterDetailedStatus { Provisioning = "Provisioning" } +// @public +export enum KnownKubernetesClusterFeatureAvailabilityLifecycle { + GenerallyAvailable = "GenerallyAvailable", + Preview = "Preview" +} + +// @public +export enum KnownKubernetesClusterFeatureDetailedStatus { + Error = "Error", + Installed = "Installed", + Provisioning = "Provisioning" +} + +// @public +export enum KnownKubernetesClusterFeatureProvisioningState { + Accepted = "Accepted", + Canceled = "Canceled", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownKubernetesClusterFeatureRequired { + False = "False", + True = "True" +} + // @public export enum KnownKubernetesClusterNodeDetailedStatus { Available = "Available", @@ -2041,6 +2234,20 @@ export enum KnownMachineSkuDiskConnectionType { Sata = "SATA" } +// @public +export enum KnownManagedServiceIdentitySelectorType { + SystemAssignedIdentity = "SystemAssignedIdentity", + UserAssignedIdentity = "UserAssignedIdentity" +} + +// @public +export enum KnownManagedServiceIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", + UserAssigned = "UserAssigned" +} + // @public export enum KnownOrigin { System = "system", @@ -2076,6 +2283,8 @@ export enum KnownRackProvisioningState { // @public export enum KnownRackSkuProvisioningState { + Canceled = "Canceled", + Failed = "Failed", Succeeded = "Succeeded" } @@ -2099,6 +2308,15 @@ export enum KnownRemoteVendorManagementStatus { Unsupported = "Unsupported" } +// @public +export enum KnownRuntimeProtectionEnforcementLevel { + Audit = "Audit", + Disabled = "Disabled", + OnDemand = "OnDemand", + Passive = "Passive", + RealTime = "RealTime" +} + // @public export enum KnownSkipShutdown { False = "False", @@ -2273,6 +2491,120 @@ export interface KubernetesCluster extends TrackedResource { // @public export type KubernetesClusterDetailedStatus = string; +// @public +export interface KubernetesClusterFeature extends TrackedResource { + readonly availabilityLifecycle?: KubernetesClusterFeatureAvailabilityLifecycle; + readonly detailedStatus?: KubernetesClusterFeatureDetailedStatus; + readonly detailedStatusMessage?: string; + options?: StringKeyValuePair[]; + readonly provisioningState?: KubernetesClusterFeatureProvisioningState; + readonly required?: KubernetesClusterFeatureRequired; + readonly version?: string; +} + +// @public +export type KubernetesClusterFeatureAvailabilityLifecycle = string; + +// @public +export type KubernetesClusterFeatureDetailedStatus = string; + +// @public +export interface KubernetesClusterFeatureList { + nextLink?: string; + value?: KubernetesClusterFeature[]; +} + +// @public +export interface KubernetesClusterFeaturePatchParameters { + options?: StringKeyValuePair[]; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type KubernetesClusterFeatureProvisioningState = string; + +// @public +export type KubernetesClusterFeatureRequired = string; + +// @public +export interface KubernetesClusterFeatures { + beginCreateOrUpdate(resourceGroupName: string, kubernetesClusterName: string, featureName: string, kubernetesClusterFeatureParameters: KubernetesClusterFeature, options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams): Promise, KubernetesClusterFeaturesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, kubernetesClusterName: string, featureName: string, kubernetesClusterFeatureParameters: KubernetesClusterFeature, options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, kubernetesClusterName: string, featureName: string, options?: KubernetesClusterFeaturesDeleteOptionalParams): Promise, KubernetesClusterFeaturesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, kubernetesClusterName: string, featureName: string, options?: KubernetesClusterFeaturesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, kubernetesClusterName: string, featureName: string, options?: KubernetesClusterFeaturesUpdateOptionalParams): Promise, KubernetesClusterFeaturesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, kubernetesClusterName: string, featureName: string, options?: KubernetesClusterFeaturesUpdateOptionalParams): Promise; + get(resourceGroupName: string, kubernetesClusterName: string, featureName: string, options?: KubernetesClusterFeaturesGetOptionalParams): Promise; + listByKubernetesCluster(resourceGroupName: string, kubernetesClusterName: string, options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface KubernetesClusterFeaturesCreateOrUpdateHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface KubernetesClusterFeaturesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KubernetesClusterFeaturesCreateOrUpdateResponse = KubernetesClusterFeature; + +// @public +export interface KubernetesClusterFeaturesDeleteHeaders { + location?: string; +} + +// @public +export interface KubernetesClusterFeaturesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KubernetesClusterFeaturesDeleteResponse = OperationStatusResult; + +// @public +export interface KubernetesClusterFeaturesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KubernetesClusterFeaturesGetResponse = KubernetesClusterFeature; + +// @public +export interface KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KubernetesClusterFeaturesListByKubernetesClusterNextResponse = KubernetesClusterFeatureList; + +// @public +export interface KubernetesClusterFeaturesListByKubernetesClusterOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KubernetesClusterFeaturesListByKubernetesClusterResponse = KubernetesClusterFeatureList; + +// @public +export interface KubernetesClusterFeaturesUpdateHeaders { + azureAsyncOperation?: string; + location?: string; +} + +// @public +export interface KubernetesClusterFeaturesUpdateOptionalParams extends coreClient.OperationOptions { + kubernetesClusterFeatureUpdateParameters?: KubernetesClusterFeaturePatchParameters; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KubernetesClusterFeaturesUpdateResponse = KubernetesClusterFeature; + // @public export interface KubernetesClusterList { nextLink?: string; @@ -2306,6 +2638,7 @@ export type KubernetesClusterNodeDetailedStatus = string; // @public export interface KubernetesClusterPatchParameters { + administratorConfiguration?: AdministratorConfigurationPatch; controlPlaneNodeConfiguration?: ControlPlaneNodePatchConfiguration; kubernetesVersion?: string; tags?: { @@ -2325,8 +2658,8 @@ export interface KubernetesClusterRestartNodeParameters { export interface KubernetesClusters { beginCreateOrUpdate(resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterParameters: KubernetesCluster, options?: KubernetesClustersCreateOrUpdateOptionalParams): Promise, KubernetesClustersCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterParameters: KubernetesCluster, options?: KubernetesClustersCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, kubernetesClusterName: string, options?: KubernetesClustersDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, kubernetesClusterName: string, options?: KubernetesClustersDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, kubernetesClusterName: string, options?: KubernetesClustersDeleteOptionalParams): Promise, KubernetesClustersDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, kubernetesClusterName: string, options?: KubernetesClustersDeleteOptionalParams): Promise; beginRestartNode(resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters, options?: KubernetesClustersRestartNodeOptionalParams): Promise, KubernetesClustersRestartNodeResponse>>; beginRestartNodeAndWait(resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters, options?: KubernetesClustersRestartNodeOptionalParams): Promise; beginUpdate(resourceGroupName: string, kubernetesClusterName: string, options?: KubernetesClustersUpdateOptionalParams): Promise, KubernetesClustersUpdateResponse>>; @@ -2361,6 +2694,9 @@ export interface KubernetesClustersDeleteOptionalParams extends coreClient.Opera updateIntervalInMs?: number; } +// @public +export type KubernetesClustersDeleteResponse = OperationStatusResult; + // @public export interface KubernetesClustersGetOptionalParams extends coreClient.OperationOptions { } @@ -2413,6 +2749,7 @@ export type KubernetesClustersRestartNodeResponse = OperationStatusResult; // @public export interface KubernetesClustersUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -2484,8 +2821,8 @@ export type L2NetworkProvisioningState = string; export interface L2Networks { beginCreateOrUpdate(resourceGroupName: string, l2NetworkName: string, l2NetworkParameters: L2Network, options?: L2NetworksCreateOrUpdateOptionalParams): Promise, L2NetworksCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, l2NetworkName: string, l2NetworkParameters: L2Network, options?: L2NetworksCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, l2NetworkName: string, options?: L2NetworksDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, l2NetworkName: string, options?: L2NetworksDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, l2NetworkName: string, options?: L2NetworksDeleteOptionalParams): Promise, L2NetworksDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, l2NetworkName: string, options?: L2NetworksDeleteOptionalParams): Promise; get(resourceGroupName: string, l2NetworkName: string, options?: L2NetworksGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: L2NetworksListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: L2NetworksListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -2517,6 +2854,9 @@ export interface L2NetworksDeleteOptionalParams extends coreClient.OperationOpti updateIntervalInMs?: number; } +// @public +export type L2NetworksDeleteResponse = OperationStatusResult; + // @public export interface L2NetworksGetOptionalParams extends coreClient.OperationOptions { } @@ -2560,6 +2900,11 @@ export interface L2NetworksUpdateOptionalParams extends coreClient.OperationOpti // @public export type L2NetworksUpdateResponse = L2Network; +// @public +export interface L2ServiceLoadBalancerConfiguration { + ipAddressPools?: IpAddressPool[]; +} + // @public export interface L3Network extends TrackedResource { readonly associatedResourceIds?: string[]; @@ -2613,8 +2958,8 @@ export type L3NetworkProvisioningState = string; export interface L3Networks { beginCreateOrUpdate(resourceGroupName: string, l3NetworkName: string, l3NetworkParameters: L3Network, options?: L3NetworksCreateOrUpdateOptionalParams): Promise, L3NetworksCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, l3NetworkName: string, l3NetworkParameters: L3Network, options?: L3NetworksCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, l3NetworkName: string, options?: L3NetworksDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, l3NetworkName: string, options?: L3NetworksDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, l3NetworkName: string, options?: L3NetworksDeleteOptionalParams): Promise, L3NetworksDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, l3NetworkName: string, options?: L3NetworksDeleteOptionalParams): Promise; get(resourceGroupName: string, l3NetworkName: string, options?: L3NetworksGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: L3NetworksListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: L3NetworksListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -2646,6 +2991,9 @@ export interface L3NetworksDeleteOptionalParams extends coreClient.OperationOpti updateIntervalInMs?: number; } +// @public +export type L3NetworksDeleteResponse = OperationStatusResult; + // @public export interface L3NetworksGetOptionalParams extends coreClient.OperationOptions { } @@ -2729,12 +3077,28 @@ export interface ManagedResourceGroupConfiguration { name?: string; } +// @public +export interface ManagedServiceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type: ManagedServiceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity | null; + }; +} + +// @public +export type ManagedServiceIdentitySelectorType = string; + +// @public +export type ManagedServiceIdentityType = string; + // @public export interface MetricsConfigurations { beginCreateOrUpdate(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, metricsConfigurationParameters: ClusterMetricsConfiguration, options?: MetricsConfigurationsCreateOrUpdateOptionalParams): Promise, MetricsConfigurationsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, metricsConfigurationParameters: ClusterMetricsConfiguration, options?: MetricsConfigurationsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsDeleteOptionalParams): Promise, MetricsConfigurationsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsUpdateOptionalParams): Promise, MetricsConfigurationsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsUpdateOptionalParams): Promise; get(resourceGroupName: string, clusterName: string, metricsConfigurationName: string, options?: MetricsConfigurationsGetOptionalParams): Promise; @@ -2766,6 +3130,9 @@ export interface MetricsConfigurationsDeleteOptionalParams extends coreClient.Op updateIntervalInMs?: number; } +// @public +export type MetricsConfigurationsDeleteResponse = OperationStatusResult; + // @public export interface MetricsConfigurationsGetOptionalParams extends coreClient.OperationOptions { } @@ -2790,6 +3157,7 @@ export type MetricsConfigurationsListByClusterResponse = ClusterMetricsConfigura // @public export interface MetricsConfigurationsUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -2837,6 +3205,8 @@ export class NetworkCloud extends coreClient.ServiceClient { // (undocumented) consoles: Consoles; // (undocumented) + kubernetesClusterFeatures: KubernetesClusterFeatures; + // (undocumented) kubernetesClusters: KubernetesClusters; // (undocumented) l2Networks: L2Networks; @@ -2876,6 +3246,7 @@ export interface NetworkConfiguration { cloudServicesNetworkId: string; cniNetworkId: string; dnsServiceIp?: string; + l2ServiceLoadBalancerConfiguration?: L2ServiceLoadBalancerConfiguration; podCidrs?: string[]; serviceCidrs?: string[]; } @@ -2898,6 +3269,11 @@ export interface Nic { readonly name?: string; } +// @public +export interface NodePoolAdministratorConfigurationPatch { + sshPublicKeys?: SshPublicKey[]; +} + // @public export interface Operation { readonly actionType?: ActionType; @@ -2942,14 +3318,18 @@ export type OperationsListResponse = OperationListResult; // @public export interface OperationStatusResult { - endTime?: Date; - error?: ErrorDetail; - id?: string; - name?: string; - operations?: OperationStatusResult[]; - percentComplete?: number; + readonly endTime?: Date; + readonly error?: ErrorDetail; + readonly exitCode?: string; + readonly id?: string; + readonly name?: string; + readonly operations?: OperationStatusResult[]; + readonly outputHead?: string; + readonly percentComplete?: number; readonly resourceId?: string; - startTime?: Date; + readonly resultRef?: string; + readonly resultUrl?: string; + readonly startTime?: Date; status: string; } @@ -3018,8 +3398,8 @@ export type RackProvisioningState = string; export interface Racks { beginCreateOrUpdate(resourceGroupName: string, rackName: string, rackParameters: Rack, options?: RacksCreateOrUpdateOptionalParams): Promise, RacksCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, rackName: string, rackParameters: Rack, options?: RacksCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, rackName: string, options?: RacksDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, rackName: string, options?: RacksDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, rackName: string, options?: RacksDeleteOptionalParams): Promise, RacksDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, rackName: string, options?: RacksDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, rackName: string, options?: RacksUpdateOptionalParams): Promise, RacksUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, rackName: string, options?: RacksUpdateOptionalParams): Promise; get(resourceGroupName: string, rackName: string, options?: RacksGetOptionalParams): Promise; @@ -3052,6 +3432,9 @@ export interface RacksDeleteOptionalParams extends coreClient.OperationOptions { updateIntervalInMs?: number; } +// @public +export type RacksDeleteResponse = OperationStatusResult; + // @public export interface RacksGetOptionalParams extends coreClient.OperationOptions { } @@ -3141,6 +3524,7 @@ export type RacksListBySubscriptionResponse = RackList; // @public export interface RacksUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -3167,6 +3551,39 @@ export interface Resource { readonly type?: string; } +// @public +export interface RuntimeProtectionConfiguration { + enforcementLevel?: RuntimeProtectionEnforcementLevel; +} + +// @public +export type RuntimeProtectionEnforcementLevel = string; + +// @public +export interface RuntimeProtectionStatus { + readonly definitionsLastUpdated?: Date; + readonly definitionsVersion?: string; + readonly scanCompletedTime?: Date; + readonly scanScheduledTime?: Date; + readonly scanStartedTime?: Date; +} + +// @public +export interface SecretArchiveReference { + readonly keyVaultId?: string; + readonly secretName?: string; + readonly secretVersion?: string; +} + +// @public +export interface SecretRotationStatus { + readonly expirePeriodDays?: number; + readonly lastRotationTime?: Date; + readonly rotationPeriodDays?: number; + readonly secretArchiveReference?: SecretArchiveReference; + readonly secretType?: string; +} + // @public export interface ServiceLoadBalancerBgpPeer { bfdEnabled?: BfdEnabled; @@ -3207,13 +3624,17 @@ export interface StorageAppliance extends TrackedResource { readonly detailedStatusMessage?: string; extendedLocation: ExtendedLocation; readonly managementIpv4Address?: string; + readonly manufacturer?: string; + readonly model?: string; readonly provisioningState?: StorageApplianceProvisioningState; rackId: string; rackSlot: number; readonly remoteVendorManagementFeature?: RemoteVendorManagementFeature; readonly remoteVendorManagementStatus?: RemoteVendorManagementStatus; + readonly secretRotationStatus?: SecretRotationStatus[]; serialNumber: string; storageApplianceSkuId: string; + readonly version?: string; } // @public @@ -3253,8 +3674,8 @@ export type StorageApplianceProvisioningState = string; export interface StorageAppliances { beginCreateOrUpdate(resourceGroupName: string, storageApplianceName: string, storageApplianceParameters: StorageAppliance, options?: StorageAppliancesCreateOrUpdateOptionalParams): Promise, StorageAppliancesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, storageApplianceName: string, storageApplianceParameters: StorageAppliance, options?: StorageAppliancesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesDeleteOptionalParams): Promise, StorageAppliancesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesDeleteOptionalParams): Promise; beginDisableRemoteVendorManagement(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams): Promise, StorageAppliancesDisableRemoteVendorManagementResponse>>; beginDisableRemoteVendorManagementAndWait(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams): Promise; beginEnableRemoteVendorManagement(resourceGroupName: string, storageApplianceName: string, options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams): Promise, StorageAppliancesEnableRemoteVendorManagementResponse>>; @@ -3291,6 +3712,9 @@ export interface StorageAppliancesDeleteOptionalParams extends coreClient.Operat updateIntervalInMs?: number; } +// @public +export type StorageAppliancesDeleteResponse = OperationStatusResult; + // @public export interface StorageAppliancesDisableRemoteVendorManagementHeaders { location?: string; @@ -3365,6 +3789,7 @@ export type StorageAppliancesListBySubscriptionResponse = StorageApplianceList; // @public export interface StorageAppliancesUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -3383,6 +3808,12 @@ export interface StorageProfile { volumeAttachments?: string[]; } +// @public +export interface StringKeyValuePair { + key: string; + value: string; +} + // @public export interface SystemData { createdAt?: Date; @@ -3453,8 +3884,8 @@ export type TrunkedNetworkProvisioningState = string; export interface TrunkedNetworks { beginCreateOrUpdate(resourceGroupName: string, trunkedNetworkName: string, trunkedNetworkParameters: TrunkedNetwork, options?: TrunkedNetworksCreateOrUpdateOptionalParams): Promise, TrunkedNetworksCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, trunkedNetworkName: string, trunkedNetworkParameters: TrunkedNetwork, options?: TrunkedNetworksCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, trunkedNetworkName: string, options?: TrunkedNetworksDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, trunkedNetworkName: string, options?: TrunkedNetworksDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, trunkedNetworkName: string, options?: TrunkedNetworksDeleteOptionalParams): Promise, TrunkedNetworksDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, trunkedNetworkName: string, options?: TrunkedNetworksDeleteOptionalParams): Promise; get(resourceGroupName: string, trunkedNetworkName: string, options?: TrunkedNetworksGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: TrunkedNetworksListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: TrunkedNetworksListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -3486,6 +3917,9 @@ export interface TrunkedNetworksDeleteOptionalParams extends coreClient.Operatio updateIntervalInMs?: number; } +// @public +export type TrunkedNetworksDeleteResponse = OperationStatusResult; + // @public export interface TrunkedNetworksGetOptionalParams extends coreClient.OperationOptions { } @@ -3529,6 +3963,12 @@ export interface TrunkedNetworksUpdateOptionalParams extends coreClient.Operatio // @public export type TrunkedNetworksUpdateResponse = TrunkedNetwork; +// @public +export interface UserAssignedIdentity { + readonly clientId?: string; + readonly principalId?: string; +} + // @public export interface ValidationThreshold { grouping: ValidationThresholdGrouping; @@ -3629,8 +4069,8 @@ export type VirtualMachineProvisioningState = string; export interface VirtualMachines { beginCreateOrUpdate(resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, options?: VirtualMachinesCreateOrUpdateOptionalParams): Promise, VirtualMachinesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, options?: VirtualMachinesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesDeleteOptionalParams): Promise, VirtualMachinesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesDeleteOptionalParams): Promise; beginPowerOff(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesPowerOffOptionalParams): Promise, VirtualMachinesPowerOffResponse>>; beginPowerOffAndWait(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesPowerOffOptionalParams): Promise; beginReimage(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesReimageOptionalParams): Promise, VirtualMachinesReimageResponse>>; @@ -3674,6 +4114,9 @@ export interface VirtualMachinesDeleteOptionalParams extends coreClient.Operatio updateIntervalInMs?: number; } +// @public +export type VirtualMachinesDeleteResponse = OperationStatusResult; + // @public export interface VirtualMachinesGetOptionalParams extends coreClient.OperationOptions { } @@ -3769,6 +4212,7 @@ export type VirtualMachinesStartResponse = OperationStatusResult; // @public export interface VirtualMachinesUpdateHeaders { azureAsyncOperation?: string; + location?: string; } // @public @@ -3818,8 +4262,8 @@ export type VolumeProvisioningState = string; export interface Volumes { beginCreateOrUpdate(resourceGroupName: string, volumeName: string, volumeParameters: Volume, options?: VolumesCreateOrUpdateOptionalParams): Promise, VolumesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, volumeName: string, volumeParameters: Volume, options?: VolumesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise, VolumesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, volumeName: string, options?: VolumesDeleteOptionalParams): Promise; get(resourceGroupName: string, volumeName: string, options?: VolumesGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: VolumesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: VolumesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -3851,6 +4295,9 @@ export interface VolumesDeleteOptionalParams extends coreClient.OperationOptions updateIntervalInMs?: number; } +// @public +export type VolumesDeleteResponse = OperationStatusResult; + // @public export interface VolumesGetOptionalParams extends coreClient.OperationOptions { } diff --git a/sdk/networkcloud/arm-networkcloud/sample.env b/sdk/networkcloud/arm-networkcloud/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/networkcloud/arm-networkcloud/sample.env +++ b/sdk/networkcloud/arm-networkcloud/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsCreateOrUpdateSample.ts index a2076609325e..c7697d321c81 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new Kubernetes cluster agent pool or update the properties of the existing one. * * @summary Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Create.json */ async function createOrUpdateKubernetesClusterAgentPool() { const subscriptionId = @@ -34,9 +34,9 @@ async function createOrUpdateKubernetesClusterAgentPool() { sshPublicKeys: [ { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], }, agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, attachedNetworkConfiguration: { @@ -44,31 +44,30 @@ async function createOrUpdateKubernetesClusterAgentPool() { { networkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK" - } + pluginType: "DPDK", + }, ], l3Networks: [ { ipamEnabled: "False", networkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV" - } + pluginType: "SRIOV", + }, ], trunkedNetworks: [ { networkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN" - } - ] + pluginType: "MACVLAN", + }, + ], }, availabilityZones: ["1", "2", "3"], count: 3, extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, labels: [{ key: "kubernetes.label", value: "true" }], location: "location", @@ -76,7 +75,7 @@ async function createOrUpdateKubernetesClusterAgentPool() { tags: { key1: "myvalue1", key2: "myvalue2" }, taints: [{ key: "kubernetes.taint", value: "true" }], upgradeSettings: { maxSurge: "1" }, - vmSkuName: "NC_M16_v1" + vmSkuName: "NC_XXXX", }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); @@ -84,7 +83,7 @@ async function createOrUpdateKubernetesClusterAgentPool() { resourceGroupName, kubernetesClusterName, agentPoolName, - agentPoolParameters + agentPoolParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsDeleteSample.ts index 00a8c645c664..4387cc6d4396 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided Kubernetes cluster agent pool. * * @summary Delete the provided Kubernetes cluster agent pool. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Delete.json */ async function deleteKubernetesClusterAgentPool() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteKubernetesClusterAgentPool() { const result = await client.agentPools.beginDeleteAndWait( resourceGroupName, kubernetesClusterName, - agentPoolName + agentPoolName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsGetSample.ts index 001c12fe032d..a3a1b90c6688 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided Kubernetes cluster agent pool. * * @summary Get properties of the provided Kubernetes cluster agent pool. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Get.json */ async function getKubernetesClusterAgentPool() { const subscriptionId = @@ -33,7 +33,7 @@ async function getKubernetesClusterAgentPool() { const result = await client.agentPools.get( resourceGroupName, kubernetesClusterName, - agentPoolName + agentPoolName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsListByKubernetesClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsListByKubernetesClusterSample.ts index 26a902bff4c7..e5f73d56654b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsListByKubernetesClusterSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsListByKubernetesClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of agent pools for the provided Kubernetes cluster. * * @summary Get a list of agent pools for the provided Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_ListByKubernetesCluster.json */ async function listAgentPoolsOfTheKubernetesCluster() { const subscriptionId = @@ -32,7 +32,7 @@ async function listAgentPoolsOfTheKubernetesCluster() { const resArray = new Array(); for await (let item of client.agentPools.listByKubernetesCluster( resourceGroupName, - kubernetesClusterName + kubernetesClusterName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsUpdateSample.ts index 14a95490d128..c9894b4b06a5 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/agentPoolsUpdateSample.ts @@ -11,7 +11,7 @@ import { AgentPoolPatchParameters, AgentPoolsUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. * * @summary Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Patch.json */ async function patchKubernetesClusterAgentPool() { const subscriptionId = @@ -33,9 +33,17 @@ async function patchKubernetesClusterAgentPool() { const kubernetesClusterName = "kubernetesClusterName"; const agentPoolName = "agentPoolName"; const agentPoolUpdateParameters: AgentPoolPatchParameters = { + administratorConfiguration: { + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, count: 3, tags: { key1: "myvalue1", key2: "myvalue2" }, - upgradeSettings: { maxSurge: "1" } + upgradeSettings: { drainTimeout: 1800, maxSurge: "1", maxUnavailable: "0" }, }; const options: AgentPoolsUpdateOptionalParams = { agentPoolUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -44,7 +52,7 @@ async function patchKubernetesClusterAgentPool() { resourceGroupName, kubernetesClusterName, agentPoolName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsCreateOrUpdateSample.ts index cd503122977d..94db552f9acd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new bare metal machine key set or update the existing one for the provided cluster. * * @summary Create a new bare metal machine key set or update the existing one for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Create.json */ async function createOrUpdateBareMetalMachineKeySetOfCluster() { const subscriptionId = @@ -32,9 +32,8 @@ async function createOrUpdateBareMetalMachineKeySetOfCluster() { azureGroupId: "f110271b-XXXX-4163-9b99-214d91660f0e", expiration: new Date("2022-12-31T23:59:59.008Z"), extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, jumpHostsAllowed: ["192.0.2.1", "192.0.2.5"], location: "location", @@ -48,8 +47,9 @@ async function createOrUpdateBareMetalMachineKeySetOfCluster() { azureUserName: "userABC", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", }, { description: @@ -57,19 +57,21 @@ async function createOrUpdateBareMetalMachineKeySetOfCluster() { azureUserName: "userXYZ", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName, - bareMetalMachineKeySetParameters - ); + const result = + await client.bareMetalMachineKeySets.beginCreateOrUpdateAndWait( + resourceGroupName, + clusterName, + bareMetalMachineKeySetName, + bareMetalMachineKeySetParameters, + ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsDeleteSample.ts index a77d3fbc7a38..a458896b7afd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the bare metal machine key set of the provided cluster. * * @summary Delete the bare metal machine key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Delete.json */ async function deleteBareMetalMachineKeySetOfCluster() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteBareMetalMachineKeySetOfCluster() { const result = await client.bareMetalMachineKeySets.beginDeleteAndWait( resourceGroupName, clusterName, - bareMetalMachineKeySetName + bareMetalMachineKeySetName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsGetSample.ts index 0222668e85ef..2c9e83cfc938 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get bare metal machine key set of the provided cluster. * * @summary Get bare metal machine key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Get.json */ async function getBareMetalMachineKeySetOfCluster() { const subscriptionId = @@ -33,7 +33,7 @@ async function getBareMetalMachineKeySetOfCluster() { const result = await client.bareMetalMachineKeySets.get( resourceGroupName, clusterName, - bareMetalMachineKeySetName + bareMetalMachineKeySetName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsListByClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsListByClusterSample.ts index 5f796dbe3cae..469323ee8894 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsListByClusterSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of bare metal machine key sets for the provided cluster. * * @summary Get a list of bare metal machine key sets for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_ListByCluster.json */ async function listBareMetalMachineKeySetsOfTheCluster() { const subscriptionId = @@ -32,7 +32,7 @@ async function listBareMetalMachineKeySetsOfTheCluster() { const resArray = new Array(); for await (let item of client.bareMetalMachineKeySets.listByCluster( resourceGroupName, - clusterName + clusterName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsUpdateSample.ts index e5d05f5dcb2e..bfd3b96877c8 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachineKeySetsUpdateSample.ts @@ -11,7 +11,7 @@ import { BareMetalMachineKeySetPatchParameters, BareMetalMachineKeySetsUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. * * @summary Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Patch.json */ async function patchBareMetalMachineKeySetOfCluster() { const subscriptionId = @@ -32,33 +32,36 @@ async function patchBareMetalMachineKeySetOfCluster() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const clusterName = "clusterName"; const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const bareMetalMachineKeySetUpdateParameters: BareMetalMachineKeySetPatchParameters = { - expiration: new Date("2022-12-31T23:59:59.008Z"), - jumpHostsAllowed: ["192.0.2.1", "192.0.2.5"], - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - }, - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] - }; + const bareMetalMachineKeySetUpdateParameters: BareMetalMachineKeySetPatchParameters = + { + expiration: new Date("2022-12-31T23:59:59.008Z"), + jumpHostsAllowed: ["192.0.2.1", "192.0.2.5"], + tags: { key1: "myvalue1", key2: "myvalue2" }, + userList: [ + { + description: + "Needs access for troubleshooting as a part of the support team", + azureUserName: "userABC", + sshPublicKey: { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", + }, + { + description: + "Needs access for troubleshooting as a part of the support team", + azureUserName: "userXYZ", + sshPublicKey: { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", + }, + ], + }; const options: BareMetalMachineKeySetsUpdateOptionalParams = { - bareMetalMachineKeySetUpdateParameters + bareMetalMachineKeySetUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); @@ -66,7 +69,7 @@ async function patchBareMetalMachineKeySetOfCluster() { resourceGroupName, clusterName, bareMetalMachineKeySetName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCordonSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCordonSample.ts index 72b512e3f0aa..2d659f287539 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCordonSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCordonSample.ts @@ -11,7 +11,7 @@ import { BareMetalMachineCordonParameters, BareMetalMachinesCordonOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Cordon the provided bare metal machine's Kubernetes node. * * @summary Cordon the provided bare metal machine's Kubernetes node. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Cordon.json */ async function cordonBareMetalMachine() { const subscriptionId = @@ -32,17 +32,17 @@ async function cordonBareMetalMachine() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const bareMetalMachineName = "bareMetalMachineName"; const bareMetalMachineCordonParameters: BareMetalMachineCordonParameters = { - evacuate: "True" + evacuate: "True", }; const options: BareMetalMachinesCordonOptionalParams = { - bareMetalMachineCordonParameters + bareMetalMachineCordonParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginCordonAndWait( resourceGroupName, bareMetalMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCreateOrUpdateSample.ts index cf5b87d83e1b..67bc71f6b358 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Create.json */ async function createOrUpdateBareMetalMachine() { const subscriptionId = @@ -35,9 +35,8 @@ async function createOrUpdateBareMetalMachine() { bmcMacAddress: "00:00:4f:00:57:00", bootMacAddress: "00:00:4e:00:58:af", extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", machineDetails: "User-provided machine details.", @@ -47,14 +46,14 @@ async function createOrUpdateBareMetalMachine() { "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", rackSlot: 1, serialNumber: "BM1219XXX", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginCreateOrUpdateAndWait( resourceGroupName, bareMetalMachineName, - bareMetalMachineParameters + bareMetalMachineParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesDeleteSample.ts index 147005ac3c2e..91d9a17785d0 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesDeleteSample.ts @@ -20,7 +20,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Delete.json */ async function deleteBareMetalMachine() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginDeleteAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesGetSample.ts index 898d2ba8925d..4be051e7d876 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided bare metal machine. * * @summary Get properties of the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Get.json */ async function getBareMetalMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function getBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.get( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListByResourceGroupSample.ts index 7a9a6530455a..86cea406f77e 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of bare metal machines in the provided resource group. * * @summary Get a list of bare metal machines in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_ListByResourceGroup.json */ async function listBareMetalMachinesForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listBareMetalMachinesForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.bareMetalMachines.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListBySubscriptionSample.ts index 6d95b1f20189..a29e78895662 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of bare metal machines in the provided subscription. * * @summary Get a list of bare metal machines in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_ListBySubscription.json */ async function listBareMetalMachinesForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesPowerOffSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesPowerOffSample.ts index cddf836b806c..71c0995d5072 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesPowerOffSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesPowerOffSample.ts @@ -11,7 +11,7 @@ import { BareMetalMachinePowerOffParameters, BareMetalMachinesPowerOffOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Power off the provided bare metal machine. * * @summary Power off the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_PowerOff.json */ async function powerOffBareMetalMachine() { const subscriptionId = @@ -31,18 +31,17 @@ async function powerOffBareMetalMachine() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachinePowerOffParameters: BareMetalMachinePowerOffParameters = { - skipShutdown: "True" - }; + const bareMetalMachinePowerOffParameters: BareMetalMachinePowerOffParameters = + { skipShutdown: "True" }; const options: BareMetalMachinesPowerOffOptionalParams = { - bareMetalMachinePowerOffParameters + bareMetalMachinePowerOffParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginPowerOffAndWait( resourceGroupName, bareMetalMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReimageSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReimageSample.ts index 17ec2c06cd2c..084cec6a8a06 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReimageSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReimageSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reimage the provided bare metal machine. * * @summary Reimage the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Reimage.json */ async function reimageBareMetalMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function reimageBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginReimageAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReplaceSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReplaceSample.ts index 456671683c42..83432e15d1aa 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReplaceSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesReplaceSample.ts @@ -11,7 +11,7 @@ import { BareMetalMachineReplaceParameters, BareMetalMachinesReplaceOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Replace the provided bare metal machine. * * @summary Replace the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Replace.json */ async function replaceBareMetalMachine() { const subscriptionId = @@ -36,17 +36,17 @@ async function replaceBareMetalMachine() { bmcMacAddress: "00:00:4f:00:57:ad", bootMacAddress: "00:00:4e:00:58:af", machineName: "name", - serialNumber: "BM1219XXX" + serialNumber: "BM1219XXX", }; const options: BareMetalMachinesReplaceOptionalParams = { - bareMetalMachineReplaceParameters + bareMetalMachineReplaceParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginReplaceAndWait( resourceGroupName, bareMetalMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRestartSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRestartSample.ts index 268c6231bda4..3206a1b50e98 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRestartSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRestartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Restart the provided bare metal machine. * * @summary Restart the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Restart.json */ async function restartBareMetalMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function restartBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginRestartAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunCommandSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunCommandSample.ts index 26e4ef6dcd8c..affdd5903dfe 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunCommandSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunCommandSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BareMetalMachineRunCommandParameters, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. * * @summary Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunCommand.json */ async function runCommandOnBareMetalMachine() { const subscriptionId = @@ -30,17 +30,18 @@ async function runCommandOnBareMetalMachine() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters = { - arguments: ["--argument1", "argument2"], - limitTimeSeconds: 60, - script: "cHdkCg==" - }; + const bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters = + { + arguments: ["--argument1", "argument2"], + limitTimeSeconds: 60, + script: "cHdkCg==", + }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginRunCommandAndWait( resourceGroupName, bareMetalMachineName, - bareMetalMachineRunCommandParameters + bareMetalMachineRunCommandParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunDataExtractsSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunDataExtractsSample.ts index ed96a9667e78..934e95ee2f03 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunDataExtractsSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunDataExtractsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BareMetalMachineRunDataExtractsParameters, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. * * @summary Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunDataExtracts.json */ async function runDataExtractionOnBareMetalMachine() { const subscriptionId = @@ -30,21 +30,22 @@ async function runDataExtractionOnBareMetalMachine() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters = { - limitTimeSeconds: 60, - commands: [ - { - arguments: ["SysInfo", "TTYLog"], - command: "hardware-support-data-collection" - } - ] - }; + const bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters = + { + limitTimeSeconds: 60, + commands: [ + { + arguments: ["SysInfo", "TTYLog"], + command: "hardware-support-data-collection", + }, + ], + }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginRunDataExtractsAndWait( resourceGroupName, bareMetalMachineName, - bareMetalMachineRunDataExtractsParameters + bareMetalMachineRunDataExtractsParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunReadCommandsSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunReadCommandsSample.ts index dc364daab0eb..40f33b11b94e 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunReadCommandsSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesRunReadCommandsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BareMetalMachineRunReadCommandsParameters, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. * * @summary Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunReadCommands.json */ async function runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine() { const subscriptionId = @@ -30,19 +30,20 @@ async function runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters = { - limitTimeSeconds: 60, - commands: [ - { arguments: ["pods", "-A"], command: "kubectl get" }, - { arguments: ["192.168.0.99", "-c", "3"], command: "ping" } - ] - }; + const bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters = + { + limitTimeSeconds: 60, + commands: [ + { arguments: ["pods", "-A"], command: "kubectl get" }, + { arguments: ["192.168.0.99", "-c", "3"], command: "ping" }, + ], + }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginRunReadCommandsAndWait( resourceGroupName, bareMetalMachineName, - bareMetalMachineRunReadCommandsParameters + bareMetalMachineRunReadCommandsParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesStartSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesStartSample.ts index 830553300277..0de69d64e7e9 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesStartSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesStartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Start the provided bare metal machine. * * @summary Start the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Start.json */ async function startBareMetalMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function startBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginStartAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUncordonSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUncordonSample.ts index cb5e1e772a42..3135d60e38c7 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUncordonSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUncordonSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Uncordon the provided bare metal machine's Kubernetes node. * * @summary Uncordon the provided bare metal machine's Kubernetes node. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Uncordon.json */ async function uncordonBareMetalMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function uncordonBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginUncordonAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUpdateSample.ts index 988474b288a2..facf40c50473 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bareMetalMachinesUpdateSample.ts @@ -11,7 +11,7 @@ import { BareMetalMachinePatchParameters, BareMetalMachinesUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. * * @summary Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Patch.json */ async function patchBareMetalMachine() { const subscriptionId = @@ -33,17 +33,17 @@ async function patchBareMetalMachine() { const bareMetalMachineName = "bareMetalMachineName"; const bareMetalMachineUpdateParameters: BareMetalMachinePatchParameters = { machineDetails: "machinedetails", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: BareMetalMachinesUpdateOptionalParams = { - bareMetalMachineUpdateParameters + bareMetalMachineUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginUpdateAndWait( resourceGroupName, bareMetalMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsCreateOrUpdateSample.ts index b1704a449e4f..c6f32228e60b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new baseboard management controller key set or update the existing one for the provided cluster. * * @summary Create a new baseboard management controller key set or update the existing one for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Create.json */ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { const subscriptionId = @@ -32,9 +32,8 @@ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { azureGroupId: "f110271b-XXXX-4163-9b99-214d91660f0e", expiration: new Date("2022-12-31T23:59:59.008Z"), extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", privilegeLevel: "Administrator", @@ -46,8 +45,9 @@ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { azureUserName: "userABC", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", }, { description: @@ -55,10 +55,11 @@ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { azureUserName: "userXYZ", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); @@ -66,7 +67,7 @@ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { resourceGroupName, clusterName, bmcKeySetName, - bmcKeySetParameters + bmcKeySetParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsDeleteSample.ts index f322ca9e203f..65e4975cfb94 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the baseboard management controller key set of the provided cluster. * * @summary Delete the baseboard management controller key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Delete.json */ async function deleteBaseboardManagementControllerKeySetOfCluster() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteBaseboardManagementControllerKeySetOfCluster() { const result = await client.bmcKeySets.beginDeleteAndWait( resourceGroupName, clusterName, - bmcKeySetName + bmcKeySetName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsGetSample.ts index 96f12cd82c65..0ab7d176bac9 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get baseboard management controller key set of the provided cluster. * * @summary Get baseboard management controller key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Get.json */ async function getBaseboardManagementControllerKeySetOfCluster() { const subscriptionId = @@ -33,7 +33,7 @@ async function getBaseboardManagementControllerKeySetOfCluster() { const result = await client.bmcKeySets.get( resourceGroupName, clusterName, - bmcKeySetName + bmcKeySetName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsListByClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsListByClusterSample.ts index fa5b51fd4454..0a0a2ca745a8 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsListByClusterSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of baseboard management controller key sets for the provided cluster. * * @summary Get a list of baseboard management controller key sets for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_ListByCluster.json */ async function listBaseboardManagementControllerKeySetsOfTheCluster() { const subscriptionId = @@ -32,7 +32,7 @@ async function listBaseboardManagementControllerKeySetsOfTheCluster() { const resArray = new Array(); for await (let item of client.bmcKeySets.listByCluster( resourceGroupName, - clusterName + clusterName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsUpdateSample.ts index 526c869570a3..4940f7fc3c0b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/bmcKeySetsUpdateSample.ts @@ -11,7 +11,7 @@ import { BmcKeySetPatchParameters, BmcKeySetsUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. * * @summary Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Patch.json */ async function patchBaseboardManagementControllerKeySetOfCluster() { const subscriptionId = @@ -42,8 +42,9 @@ async function patchBaseboardManagementControllerKeySetOfCluster() { azureUserName: "userABC", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", }, { description: @@ -51,10 +52,11 @@ async function patchBaseboardManagementControllerKeySetOfCluster() { azureUserName: "userXYZ", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", + }, + ], }; const options: BmcKeySetsUpdateOptionalParams = { bmcKeySetUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -63,7 +65,7 @@ async function patchBaseboardManagementControllerKeySetOfCluster() { resourceGroupName, clusterName, bmcKeySetName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksCreateOrUpdateSample.ts index 751cfe345b6b..2d88858913ba 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new cloud services network or update the properties of the existing cloud services network. * * @summary Create a new cloud services network or update the properties of the existing cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Create.json */ async function createOrUpdateCloudServicesNetwork() { const subscriptionId = @@ -32,28 +32,24 @@ async function createOrUpdateCloudServicesNetwork() { { category: "azure-resource-management", endpoints: [ - { - domainName: "https://storageaccountex.blob.core.windows.net", - port: 443 - } - ] - } + { domainName: "storageaccountex.blob.core.windows.net", port: 443 }, + ], + }, ], enableDefaultEgressEndpoints: "False", extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.cloudServicesNetworks.beginCreateOrUpdateAndWait( resourceGroupName, cloudServicesNetworkName, - cloudServicesNetworkParameters + cloudServicesNetworkParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksDeleteSample.ts index 33e20d6ce77f..43272822c7be 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided cloud services network. * * @summary Delete the provided cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Delete.json */ async function deleteCloudServicesNetwork() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteCloudServicesNetwork() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.cloudServicesNetworks.beginDeleteAndWait( resourceGroupName, - cloudServicesNetworkName + cloudServicesNetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksGetSample.ts index 10e3d8a5ad39..b6c85a2484e8 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided cloud services network. * * @summary Get properties of the provided cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Get.json */ async function getCloudServicesNetwork() { const subscriptionId = @@ -31,7 +31,7 @@ async function getCloudServicesNetwork() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.cloudServicesNetworks.get( resourceGroupName, - cloudServicesNetworkName + cloudServicesNetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListByResourceGroupSample.ts index b4762be0068b..9acabedbc877 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of cloud services networks in the provided resource group. * * @summary Get a list of cloud services networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_ListByResourceGroup.json */ async function listCloudServicesNetworksForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listCloudServicesNetworksForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.cloudServicesNetworks.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListBySubscriptionSample.ts index 96508df8ece8..75873c6a5b70 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of cloud services networks in the provided subscription. * * @summary Get a list of cloud services networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_ListBySubscription.json */ async function listCloudServicesNetworksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksUpdateSample.ts index 430b362f8c08..6ed22847d911 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/cloudServicesNetworksUpdateSample.ts @@ -11,7 +11,7 @@ import { CloudServicesNetworkPatchParameters, CloudServicesNetworksUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. * * @summary Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Patch.json */ async function patchCloudServicesNetwork() { const subscriptionId = @@ -31,30 +31,28 @@ async function patchCloudServicesNetwork() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const cloudServicesNetworkName = "cloudServicesNetworkName"; - const cloudServicesNetworkUpdateParameters: CloudServicesNetworkPatchParameters = { - additionalEgressEndpoints: [ - { - category: "azure-resource-management", - endpoints: [ - { - domainName: "https://storageaccountex.blob.core.windows.net", - port: 443 - } - ] - } - ], - enableDefaultEgressEndpoints: "False", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; + const cloudServicesNetworkUpdateParameters: CloudServicesNetworkPatchParameters = + { + additionalEgressEndpoints: [ + { + category: "azure-resource-management", + endpoints: [ + { domainName: "storageaccountex.blob.core.windows.net", port: 443 }, + ], + }, + ], + enableDefaultEgressEndpoints: "False", + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; const options: CloudServicesNetworksUpdateOptionalParams = { - cloudServicesNetworkUpdateParameters + cloudServicesNetworkUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.cloudServicesNetworks.beginUpdateAndWait( resourceGroupName, cloudServicesNetworkName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersCreateOrUpdateSample.ts index d7c9fe357c13..339da6457153 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new cluster manager or update properties of the cluster manager if it exists. * * @summary Create a new cluster manager or update properties of the cluster manager if it exists. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Create.json */ async function createOrUpdateClusterManager() { const subscriptionId = @@ -32,25 +32,69 @@ async function createOrUpdateClusterManager() { "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", fabricControllerId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", + identity: { type: "SystemAssigned" }, location: "location", managedResourceGroupConfiguration: { name: "my-managed-rg", - location: "East US" + location: "East US", }, - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusterManagers.beginCreateOrUpdateAndWait( resourceGroupName, clusterManagerName, - clusterManagerParameters + clusterManagerParameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create a new cluster manager or update properties of the cluster manager if it exists. + * + * @summary Create a new cluster manager or update properties of the cluster manager if it exists. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Create_Uami.json + */ +async function createOrUpdateClusterManagerWithUserAssignedIdentity() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterManagerName = "clusterManagerName"; + const clusterManagerParameters: ClusterManager = { + analyticsWorkspaceId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", + fabricControllerId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity1": + {}, + }, + }, + location: "location", + managedResourceGroupConfiguration: { + name: "my-managed-rg", + location: "East US", + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusterManagers.beginCreateOrUpdateAndWait( + resourceGroupName, + clusterManagerName, + clusterManagerParameters, ); console.log(result); } async function main() { createOrUpdateClusterManager(); + createOrUpdateClusterManagerWithUserAssignedIdentity(); } main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersDeleteSample.ts index 89577c15b814..74835e71c48d 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided cluster manager. * * @summary Delete the provided cluster manager. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Delete.json */ async function deleteClusterManager() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteClusterManager() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusterManagers.beginDeleteAndWait( resourceGroupName, - clusterManagerName + clusterManagerName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersGetSample.ts index 7a1a29e11e85..bb1d8c46822f 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of the provided cluster manager. * * @summary Get the properties of the provided cluster manager. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Get.json */ async function getClusterManager() { const subscriptionId = @@ -31,7 +31,7 @@ async function getClusterManager() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusterManagers.get( resourceGroupName, - clusterManagerName + clusterManagerName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListByResourceGroupSample.ts index 16ccab096420..225f97edf840 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of cluster managers in the provided resource group. * * @summary Get a list of cluster managers in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_ListByResourceGroup.json */ async function listClusterManagersForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listClusterManagersForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.clusterManagers.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListBySubscriptionSample.ts index be2d1b6d25d4..d4512b994519 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of cluster managers in the provided subscription. * * @summary Get a list of cluster managers in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_ListBySubscription.json */ async function listClusterManagersForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersUpdateSample.ts index 216b55d721d7..078025fec242 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clusterManagersUpdateSample.ts @@ -11,7 +11,7 @@ import { ClusterManagerPatchParameters, ClusterManagersUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. * * @summary Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Patch.json */ async function patchClusterManager() { const subscriptionId = @@ -32,17 +32,26 @@ async function patchClusterManager() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const clusterManagerName = "clusterManagerName"; const clusterManagerUpdateParameters: ClusterManagerPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity1": + {}, + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity2": + {}, + }, + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: ClusterManagersUpdateOptionalParams = { - clusterManagerUpdateParameters + clusterManagerUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusterManagers.update( resourceGroupName, clusterManagerName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersContinueUpdateVersionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersContinueUpdateVersionSample.ts new file mode 100644 index 000000000000..23363b876cad --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersContinueUpdateVersionSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ClusterContinueUpdateVersionParameters, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Trigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update. + * + * @summary Trigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ContinueUpdateVersion.json + */ +async function continueUpdateClusterVersion() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters = + { machineGroupTargetingMode: "AlphaByRack" }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginContinueUpdateVersionAndWait( + resourceGroupName, + clusterName, + clusterContinueUpdateVersionParameters, + ); + console.log(result); +} + +async function main() { + continueUpdateClusterVersion(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersCreateOrUpdateSample.ts index d20dae405592..a1a46b51ce40 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new cluster or update the properties of the cluster if it exists. * * @summary Create a new cluster or update the properties of the cluster if it exists. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Create.json */ async function createOrUpdateCluster() { const subscriptionId = @@ -37,7 +37,7 @@ async function createOrUpdateCluster() { machineDetails: "extraDetails", machineName: "bmmName1", rackSlot: 1, - serialNumber: "BM1219XXX" + serialNumber: "BM1219XXX", }, { bmcCredentials: { password: "{password}", username: "username" }, @@ -46,8 +46,8 @@ async function createOrUpdateCluster() { machineDetails: "extraDetails", machineName: "bmmName2", rackSlot: 2, - serialNumber: "BM1219YYY" - } + serialNumber: "BM1219YYY", + }, ], networkRackId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", @@ -60,9 +60,9 @@ async function createOrUpdateCluster() { adminCredentials: { password: "{password}", username: "username" }, rackSlot: 1, serialNumber: "BM1219XXX", - storageApplianceName: "vmName" - } - ] + storageApplianceName: "vmName", + }, + ], }, analyticsWorkspaceId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", @@ -71,14 +71,23 @@ async function createOrUpdateCluster() { applicationId: "12345678-1234-1234-1234-123456789012", password: "{password}", principalId: "00000008-0004-0004-0004-000000000012", - tenantId: "80000000-4000-4000-4000-120000000000" + tenantId: "80000000-4000-4000-4000-120000000000", }, clusterType: "SingleRack", clusterVersion: "1.0.0", + commandOutputSettings: { + associatedIdentity: { + identityType: "UserAssignedIdentity", + userAssignedIdentityResourceId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + }, + containerUrl: + "https://myaccount.blob.core.windows.net/mycontainer?restype=container", + }, computeDeploymentThreshold: { type: "PercentSuccess", grouping: "PerCluster", - value: 90 + value: 90, }, computeRackDefinitions: [ { @@ -90,7 +99,7 @@ async function createOrUpdateCluster() { machineDetails: "extraDetails", machineName: "bmmName1", rackSlot: 1, - serialNumber: "BM1219XXX" + serialNumber: "BM1219XXX", }, { bmcCredentials: { password: "{password}", username: "username" }, @@ -99,8 +108,8 @@ async function createOrUpdateCluster() { machineDetails: "extraDetails", machineName: "bmmName2", rackSlot: 2, - serialNumber: "BM1219YYY" - } + serialNumber: "BM1219YYY", + }, ], networkRackId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", @@ -113,31 +122,50 @@ async function createOrUpdateCluster() { adminCredentials: { password: "{password}", username: "username" }, rackSlot: 1, serialNumber: "BM1219XXX", - storageApplianceName: "vmName" - } - ] - } + storageApplianceName: "vmName", + }, + ], + }, ], extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", + type: "CustomLocation", + }, + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity1": + {}, + }, }, location: "location", managedResourceGroupConfiguration: { name: "my-managed-rg", - location: "East US" + location: "East US", }, networkFabricId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName", - tags: { key1: "myvalue1", key2: "myvalue2" } + runtimeProtectionConfiguration: { enforcementLevel: "OnDemand" }, + secretArchive: { + keyVaultId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName", + useKeyVault: "True", + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + updateStrategy: { + maxUnavailable: 4, + strategyType: "Rack", + thresholdType: "CountSuccess", + thresholdValue: 4, + waitTimeMinutes: 10, + }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusters.beginCreateOrUpdateAndWait( resourceGroupName, clusterName, - clusterParameters + clusterParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeleteSample.ts index acbd520f548a..82178e264fa3 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided cluster. * * @summary Delete the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Delete.json */ async function deleteCluster() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteCluster() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusters.beginDeleteAndWait( resourceGroupName, - clusterName + clusterName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeploySample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeploySample.ts index 105097d9f8e9..528ceb23c65b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeploySample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersDeploySample.ts @@ -11,7 +11,7 @@ import { ClusterDeployParameters, ClustersDeployOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -19,10 +19,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Deploy the cluster to the provided rack. + * This sample demonstrates how to Deploy the cluster using the rack configuration provided during creation. * - * @summary Deploy the cluster to the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json + * @summary Deploy the cluster using the rack configuration provided during creation. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Deploy.json */ async function deployCluster() { const subscriptionId = @@ -38,16 +38,16 @@ async function deployCluster() { const result = await client.clusters.beginDeployAndWait( resourceGroupName, clusterName, - options + options, ); console.log(result); } /** - * This sample demonstrates how to Deploy the cluster to the provided rack. + * This sample demonstrates how to Deploy the cluster using the rack configuration provided during creation. * - * @summary Deploy the cluster to the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy_SkipValidation.json + * @summary Deploy the cluster using the rack configuration provided during creation. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Deploy_SkipValidation.json */ async function deployClusterSkippingValidation() { const subscriptionId = @@ -57,7 +57,7 @@ async function deployClusterSkippingValidation() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const clusterName = "clusterName"; const clusterDeployParameters: ClusterDeployParameters = { - skipValidationsForMachines: ["bmmName1"] + skipValidationsForMachines: ["bmmName1"], }; const options: ClustersDeployOptionalParams = { clusterDeployParameters }; const credential = new DefaultAzureCredential(); @@ -65,7 +65,7 @@ async function deployClusterSkippingValidation() { const result = await client.clusters.beginDeployAndWait( resourceGroupName, clusterName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersGetSample.ts index 901a95b06d7e..a401c420ecb7 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided cluster. * * @summary Get properties of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Get.json */ async function getCluster() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListByResourceGroupSample.ts index b07dc44c5fdf..938e7293a013 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of clusters in the provided resource group. * * @summary Get a list of clusters in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ListByResourceGroup.json */ async function listClustersForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listClustersForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.clusters.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListBySubscriptionSample.ts index b54d64e13348..fb5aac01e26d 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of clusters in the provided subscription. * * @summary Get a list of clusters in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ListBySubscription.json */ async function listClustersForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersScanRuntimeSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersScanRuntimeSample.ts new file mode 100644 index 000000000000..c61e9c230b5c --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersScanRuntimeSample.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ClusterScanRuntimeParameters, + ClustersScanRuntimeOptionalParams, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with the cluster configuration. + * + * @summary Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with the cluster configuration. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ScanRuntime.json + */ +async function executeARuntimeProtectionScanOnTheCluster() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterScanRuntimeParameters: ClusterScanRuntimeParameters = { + scanActivity: "Scan", + }; + const options: ClustersScanRuntimeOptionalParams = { + clusterScanRuntimeParameters, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginScanRuntimeAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +async function main() { + executeARuntimeProtectionScanOnTheCluster(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateSample.ts index d1af8f7c6383..65c151c685a2 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateSample.ts @@ -11,7 +11,7 @@ import { ClusterPatchParameters, ClustersUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. * * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json */ async function patchClusterAggregatorOrSingleRackDefinition() { const subscriptionId = @@ -41,7 +41,7 @@ async function patchClusterAggregatorOrSingleRackDefinition() { machineDetails: "extraDetails", machineName: "bmmName1", rackSlot: 1, - serialNumber: "BM1219XXX" + serialNumber: "BM1219XXX", }, { bmcCredentials: { password: "{password}", username: "username" }, @@ -50,8 +50,8 @@ async function patchClusterAggregatorOrSingleRackDefinition() { machineDetails: "extraDetails", machineName: "bmmName2", rackSlot: 2, - serialNumber: "BM1219YYY" - } + serialNumber: "BM1219YYY", + }, ], networkRackId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", @@ -64,16 +64,61 @@ async function patchClusterAggregatorOrSingleRackDefinition() { adminCredentials: { password: "{password}", username: "username" }, rackSlot: 1, serialNumber: "BM1219XXX", - storageApplianceName: "vmName" - } - ] + storageApplianceName: "vmName", + }, + ], }, computeDeploymentThreshold: { type: "PercentSuccess", grouping: "PerCluster", - value: 90 + value: 90, + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_CommandOutput.json + */ +async function patchClusterCommandOutput() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters: ClusterPatchParameters = { + commandOutputSettings: { + associatedIdentity: { + identityType: "UserAssignedIdentity", + userAssignedIdentityResourceId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2", + }, + containerUrl: + "https://myaccount.blob.core.windows.net/mycontainer?restype=container", + }, + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity1": + {}, + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity2": + {}, + }, }, - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -81,7 +126,7 @@ async function patchClusterAggregatorOrSingleRackDefinition() { const result = await client.clusters.beginUpdateAndWait( resourceGroupName, clusterName, - options + options, ); console.log(result); } @@ -90,7 +135,7 @@ async function patchClusterAggregatorOrSingleRackDefinition() { * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. * * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_Location.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_Location.json */ async function patchClusterLocation() { const subscriptionId = @@ -101,7 +146,101 @@ async function patchClusterLocation() { const clusterName = "clusterName"; const clusterUpdateParameters: ClusterPatchParameters = { clusterLocation: "Foo Street, 3rd Floor, row 9", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_RuntimeProtectionConfiguration.json + */ +async function patchRuntimeProtectionConfiguration() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters: ClusterPatchParameters = { + runtimeProtectionConfiguration: { enforcementLevel: "OnDemand" }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_SecretArchive.json + */ +async function patchSecretArchive() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters: ClusterPatchParameters = { + secretArchive: { + keyVaultId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName", + useKeyVault: "True", + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_UpdateStrategy.json + */ +async function patchUpdateStrategy() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters: ClusterPatchParameters = { + tags: { key1: "myvalue1", key2: "myvalue2" }, + updateStrategy: { + maxUnavailable: 4, + strategyType: "Rack", + thresholdType: "CountSuccess", + thresholdValue: 4, + waitTimeMinutes: 10, + }, }; const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -109,14 +248,18 @@ async function patchClusterLocation() { const result = await client.clusters.beginUpdateAndWait( resourceGroupName, clusterName, - options + options, ); console.log(result); } async function main() { patchClusterAggregatorOrSingleRackDefinition(); + patchClusterCommandOutput(); patchClusterLocation(); + patchRuntimeProtectionConfiguration(); + patchSecretArchive(); + patchUpdateStrategy(); } main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateVersionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateVersionSample.ts index 5a282913c830..e8e0d647b315 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateVersionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/clustersUpdateVersionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ClusterUpdateVersionParameters, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update the version of the provided cluster to one of the available supported versions. * * @summary Update the version of the provided cluster to one of the available supported versions. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_UpdateVersion.json */ async function updateClusterVersion() { const subscriptionId = @@ -31,14 +31,14 @@ async function updateClusterVersion() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const clusterName = "clusterName"; const clusterUpdateVersionParameters: ClusterUpdateVersionParameters = { - targetClusterVersion: "2.0" + targetClusterVersion: "2.0", }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusters.beginUpdateVersionAndWait( resourceGroupName, clusterName, - clusterUpdateVersionParameters + clusterUpdateVersionParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesCreateOrUpdateSample.ts index 6bedc871d012..b954c189d226 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new virtual machine console or update the properties of the existing virtual machine console. * * @summary Create a new virtual machine console or update the properties of the existing virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Create.json */ async function createOrUpdateVirtualMachineConsole() { const subscriptionId = @@ -32,16 +32,15 @@ async function createOrUpdateVirtualMachineConsole() { enabled: "True", expiration: new Date("2022-06-01T01:27:03.008Z"), extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", + type: "CustomLocation", }, location: "location", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", }, - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); @@ -49,7 +48,7 @@ async function createOrUpdateVirtualMachineConsole() { resourceGroupName, virtualMachineName, consoleName, - consoleParameters + consoleParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesDeleteSample.ts index de771fea82ca..0b55048fecca 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided virtual machine console. * * @summary Delete the provided virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Delete.json */ async function deleteVirtualMachineConsole() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteVirtualMachineConsole() { const result = await client.consoles.beginDeleteAndWait( resourceGroupName, virtualMachineName, - consoleName + consoleName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesGetSample.ts index b78b765d7d5e..ebf9811607ce 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided virtual machine console. * * @summary Get properties of the provided virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Get.json */ async function getVirtualMachineConsole() { const subscriptionId = @@ -33,7 +33,7 @@ async function getVirtualMachineConsole() { const result = await client.consoles.get( resourceGroupName, virtualMachineName, - consoleName + consoleName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesListByVirtualMachineSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesListByVirtualMachineSample.ts index 18a5b366f4fd..09c3ab9eefc3 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesListByVirtualMachineSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesListByVirtualMachineSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of consoles for the provided virtual machine. * * @summary Get a list of consoles for the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_ListByVirtualMachine.json */ async function listConsolesOfTheVirtualMachine() { const subscriptionId = @@ -32,7 +32,7 @@ async function listConsolesOfTheVirtualMachine() { const resArray = new Array(); for await (let item of client.consoles.listByVirtualMachine( resourceGroupName, - virtualMachineName + virtualMachineName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesUpdateSample.ts index 79bc537d32ac..45c35c2d0766 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/consolesUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/consolesUpdateSample.ts @@ -11,7 +11,7 @@ import { ConsolePatchParameters, ConsolesUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. * * @summary Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Patch.json */ async function patchVirtualMachineConsole() { const subscriptionId = @@ -37,9 +37,9 @@ async function patchVirtualMachineConsole() { expiration: new Date("2022-06-01T01:27:03.008Z"), sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", }, - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: ConsolesUpdateOptionalParams = { consoleUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -48,7 +48,7 @@ async function patchVirtualMachineConsole() { resourceGroupName, virtualMachineName, consoleName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..ac0651811c2a --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesCreateOrUpdateSample.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + KubernetesClusterFeature, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @summary Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Create.json + */ +async function createOrUpdateKubernetesClusterFeature() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const featureName = "featureName"; + const kubernetesClusterFeatureParameters: KubernetesClusterFeature = { + location: "location", + options: [{ key: "featureOptionName", value: "featureOptionValue" }], + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = + await client.kubernetesClusterFeatures.beginCreateOrUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + featureName, + kubernetesClusterFeatureParameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateKubernetesClusterFeature(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesDeleteSample.ts new file mode 100644 index 000000000000..1a7aad6538cc --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete the provided Kubernetes cluster feature. + * + * @summary Delete the provided Kubernetes cluster feature. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Delete.json + */ +async function deleteKubernetesClusterFeature() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const featureName = "featureName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusterFeatures.beginDeleteAndWait( + resourceGroupName, + kubernetesClusterName, + featureName, + ); + console.log(result); +} + +async function main() { + deleteKubernetesClusterFeature(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesGetSample.ts new file mode 100644 index 000000000000..f523f683a5d1 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get properties of the provided the Kubernetes cluster feature. + * + * @summary Get properties of the provided the Kubernetes cluster feature. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Get.json + */ +async function getKubernetesClusterFeature() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const featureName = "featureName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusterFeatures.get( + resourceGroupName, + kubernetesClusterName, + featureName, + ); + console.log(result); +} + +async function main() { + getKubernetesClusterFeature(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesListByKubernetesClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesListByKubernetesClusterSample.ts new file mode 100644 index 000000000000..5d856fd7fd8a --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesListByKubernetesClusterSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a list of features for the provided Kubernetes cluster. + * + * @summary Get a list of features for the provided Kubernetes cluster. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_ListByKubernetesCluster.json + */ +async function listFeaturesForTheKubernetesCluster() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.kubernetesClusterFeatures.listByKubernetesCluster( + resourceGroupName, + kubernetesClusterName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listFeaturesForTheKubernetesCluster(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesUpdateSample.ts new file mode 100644 index 000000000000..9066690dd962 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClusterFeaturesUpdateSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + KubernetesClusterFeaturePatchParameters, + KubernetesClusterFeaturesUpdateOptionalParams, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch properties of the provided Kubernetes cluster feature. + * + * @summary Patch properties of the provided Kubernetes cluster feature. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Patch.json + */ +async function patchKubernetesClusterFeature() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const featureName = "featureName"; + const kubernetesClusterFeatureUpdateParameters: KubernetesClusterFeaturePatchParameters = + { + options: [{ key: "featureOptionName", value: "featureOptionValue" }], + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: KubernetesClusterFeaturesUpdateOptionalParams = { + kubernetesClusterFeatureUpdateParameters, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusterFeatures.beginUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + featureName, + options, + ); + console.log(result); +} + +async function main() { + patchKubernetesClusterFeature(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersCreateOrUpdateSample.ts index 8bd0d5763c56..19ed7ee379b4 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new Kubernetes cluster or update the properties of the existing one. * * @summary Create a new Kubernetes cluster or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Create.json */ async function createOrUpdateKubernetesCluster() { const subscriptionId = @@ -29,16 +29,16 @@ async function createOrUpdateKubernetesCluster() { const kubernetesClusterName = "kubernetesClusterName"; const kubernetesClusterParameters: KubernetesCluster = { aadConfiguration: { - adminGroupObjectIds: ["ffffffff-ffff-ffff-ffff-ffffffffffff"] + adminGroupObjectIds: ["ffffffff-ffff-ffff-ffff-ffffffffffff"], }, administratorConfiguration: { adminUsername: "azure", sshPublicKeys: [ { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], }, controlPlaneNodeConfiguration: { administratorConfiguration: { @@ -46,18 +46,17 @@ async function createOrUpdateKubernetesCluster() { sshPublicKeys: [ { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], }, availabilityZones: ["1", "2", "3"], count: 3, - vmSkuName: "NC_G4_v1" + vmSkuName: "NC_XXXX", }, extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, initialAgentPoolConfigurations: [ { @@ -67,9 +66,9 @@ async function createOrUpdateKubernetesCluster() { sshPublicKeys: [ { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], }, agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, attachedNetworkConfiguration: { @@ -77,24 +76,24 @@ async function createOrUpdateKubernetesCluster() { { networkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK" - } + pluginType: "DPDK", + }, ], l3Networks: [ { ipamEnabled: "False", networkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV" - } + pluginType: "SRIOV", + }, ], trunkedNetworks: [ { networkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN" - } - ] + pluginType: "MACVLAN", + }, + ], }, availabilityZones: ["1", "2", "3"], count: 3, @@ -102,14 +101,14 @@ async function createOrUpdateKubernetesCluster() { mode: "System", taints: [{ key: "kubernetes.taint", value: "true" }], upgradeSettings: { maxSurge: "1" }, - vmSkuName: "NC_M16_v1" - } + vmSkuName: "NC_XXXX", + }, ], - kubernetesVersion: "1.24.12-1", + kubernetesVersion: "1.XX.Y", location: "location", managedResourceGroupConfiguration: { name: "my-managed-rg", - location: "East US" + location: "East US", }, networkConfiguration: { attachedNetworkConfiguration: { @@ -117,24 +116,24 @@ async function createOrUpdateKubernetesCluster() { { networkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK" - } + pluginType: "DPDK", + }, ], l3Networks: [ { ipamEnabled: "False", networkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV" - } + pluginType: "SRIOV", + }, ], trunkedNetworks: [ { networkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN" - } - ] + pluginType: "MACVLAN", + }, + ], }, bgpServiceLoadBalancerConfiguration: { bgpAdvertisements: [ @@ -142,8 +141,8 @@ async function createOrUpdateKubernetesCluster() { advertiseToFabric: "True", communities: ["64512:100"], ipAddressPools: ["pool1"], - peers: ["peer1"] - } + peers: ["peer1"], + }, ], bgpPeers: [ { @@ -155,8 +154,8 @@ async function createOrUpdateKubernetesCluster() { myAsn: 64512, peerAddress: "203.0.113.254", peerAsn: 64497, - peerPort: 179 - } + peerPort: 179, + }, ], fabricPeeringEnabled: "True", ipAddressPools: [ @@ -164,32 +163,183 @@ async function createOrUpdateKubernetesCluster() { name: "pool1", addresses: ["198.51.102.0/24"], autoAssign: "True", - onlyUseHostIps: "True" - } - ] + onlyUseHostIps: "True", + }, + ], + }, + cloudServicesNetworkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", + cniNetworkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + dnsServiceIp: "198.51.101.2", + podCidrs: ["198.51.100.0/24"], + serviceCidrs: ["198.51.101.0/24"], + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusters.beginCreateOrUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + kubernetesClusterParameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create a new Kubernetes cluster or update the properties of the existing one. + * + * @summary Create a new Kubernetes cluster or update the properties of the existing one. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_L2LoadBalancer_Create.json + */ +async function createOrUpdateKubernetesClusterWithALayer2LoadBalancer() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const kubernetesClusterParameters: KubernetesCluster = { + aadConfiguration: { + adminGroupObjectIds: ["ffffffff-ffff-ffff-ffff-ffffffffffff"], + }, + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + controlPlaneNodeConfiguration: { + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + availabilityZones: ["1", "2", "3"], + count: 3, + vmSkuName: "NC_XXXX", + }, + extendedLocation: { + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", + }, + initialAgentPoolConfigurations: [ + { + name: "SystemPool-1", + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, + attachedNetworkConfiguration: { + l2Networks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", + pluginType: "DPDK", + }, + ], + l3Networks: [ + { + ipamEnabled: "False", + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + pluginType: "SRIOV", + }, + ], + trunkedNetworks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", + pluginType: "MACVLAN", + }, + ], + }, + availabilityZones: ["1", "2", "3"], + count: 3, + labels: [{ key: "kubernetes.label", value: "true" }], + mode: "System", + taints: [{ key: "kubernetes.taint", value: "true" }], + upgradeSettings: { maxSurge: "1" }, + vmSkuName: "NC_XXXX", + }, + ], + kubernetesVersion: "1.XX.Y", + location: "location", + managedResourceGroupConfiguration: { + name: "my-managed-rg", + location: "East US", + }, + networkConfiguration: { + attachedNetworkConfiguration: { + l2Networks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", + pluginType: "DPDK", + }, + ], + l3Networks: [ + { + ipamEnabled: "False", + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + pluginType: "SRIOV", + }, + ], + trunkedNetworks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", + pluginType: "MACVLAN", + }, + ], }, cloudServicesNetworkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", cniNetworkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", dnsServiceIp: "198.51.101.2", + l2ServiceLoadBalancerConfiguration: { + ipAddressPools: [ + { + name: "pool1", + addresses: ["198.51.102.2-198.51.102.254"], + autoAssign: "True", + }, + ], + }, podCidrs: ["198.51.100.0/24"], - serviceCidrs: ["198.51.101.0/24"] + serviceCidrs: ["198.51.101.0/24"], }, - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.kubernetesClusters.beginCreateOrUpdateAndWait( resourceGroupName, kubernetesClusterName, - kubernetesClusterParameters + kubernetesClusterParameters, ); console.log(result); } async function main() { createOrUpdateKubernetesCluster(); + createOrUpdateKubernetesClusterWithALayer2LoadBalancer(); } main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersDeleteSample.ts index 1350c6cedc9b..9ac3d0cb4448 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided Kubernetes cluster. * * @summary Delete the provided Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Delete.json */ async function deleteKubernetesCluster() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteKubernetesCluster() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.kubernetesClusters.beginDeleteAndWait( resourceGroupName, - kubernetesClusterName + kubernetesClusterName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersGetSample.ts index ead163c25371..b373918d3c43 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided the Kubernetes cluster. * * @summary Get properties of the provided the Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Get.json */ async function getKubernetesCluster() { const subscriptionId = @@ -31,7 +31,7 @@ async function getKubernetesCluster() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.kubernetesClusters.get( resourceGroupName, - kubernetesClusterName + kubernetesClusterName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListByResourceGroupSample.ts index 0141f2f6a1c1..d82c55f07927 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of Kubernetes clusters in the provided resource group. * * @summary Get a list of Kubernetes clusters in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_ListByResourceGroup.json */ async function listKubernetesClustersForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listKubernetesClustersForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.kubernetesClusters.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListBySubscriptionSample.ts index fadbf0774006..1c194a841a0c 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of Kubernetes clusters in the provided subscription. * * @summary Get a list of Kubernetes clusters in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_ListBySubscription.json */ async function listKubernetesClustersForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersRestartNodeSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersRestartNodeSample.ts index 1f5f7fda3ba2..20ce002585cd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersRestartNodeSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersRestartNodeSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { KubernetesClusterRestartNodeParameters, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Restart a targeted node of a Kubernetes cluster. * * @summary Restart a targeted node of a Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_RestartNode.json */ async function restartAKubernetesClusterNode() { const subscriptionId = @@ -30,15 +30,14 @@ async function restartAKubernetesClusterNode() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters = { - nodeName: "nodeName" - }; + const kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters = + { nodeName: "nodeName" }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.kubernetesClusters.beginRestartNodeAndWait( resourceGroupName, kubernetesClusterName, - kubernetesClusterRestartNodeParameters + kubernetesClusterRestartNodeParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersUpdateSample.ts index d1f741a4bd67..2355f51f6e1a 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/kubernetesClustersUpdateSample.ts @@ -11,7 +11,7 @@ import { KubernetesClusterPatchParameters, KubernetesClustersUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. * * @summary Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Patch.json */ async function patchKubernetesCluster() { const subscriptionId = @@ -32,19 +32,37 @@ async function patchKubernetesCluster() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const kubernetesClusterName = "kubernetesClusterName"; const kubernetesClusterUpdateParameters: KubernetesClusterPatchParameters = { - controlPlaneNodeConfiguration: { count: 3 }, - kubernetesVersion: "1.24.12", - tags: { key1: "myvalue1", key2: "myvalue2" } + administratorConfiguration: { + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + controlPlaneNodeConfiguration: { + administratorConfiguration: { + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + count: 3, + }, + kubernetesVersion: "1.XX.Y", + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: KubernetesClustersUpdateOptionalParams = { - kubernetesClusterUpdateParameters + kubernetesClusterUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.kubernetesClusters.beginUpdateAndWait( resourceGroupName, kubernetesClusterName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksCreateOrUpdateSample.ts index e98e1748cb8f..31bec9c2b227 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new layer 2 (L2) network or update the properties of the existing network. * * @summary Create a new layer 2 (L2) network or update the properties of the existing network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Create.json */ async function createOrUpdateL2Network() { const subscriptionId = @@ -29,23 +29,22 @@ async function createOrUpdateL2Network() { const l2NetworkName = "l2NetworkName"; const l2NetworkParameters: L2Network = { extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, hybridAksPluginType: "DPDK", interfaceName: "eth0", l2IsolationDomainId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.l2Networks.beginCreateOrUpdateAndWait( resourceGroupName, l2NetworkName, - l2NetworkParameters + l2NetworkParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksDeleteSample.ts index 926c5fa7977f..37c1b4b6eedd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided layer 2 (L2) network. * * @summary Delete the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Delete.json */ async function deleteL2Network() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteL2Network() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.l2Networks.beginDeleteAndWait( resourceGroupName, - l2NetworkName + l2NetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksGetSample.ts index b9f744d589d5..a0164a1024e9 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided layer 2 (L2) network. * * @summary Get properties of the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Get.json */ async function getL2Network() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListByResourceGroupSample.ts index 1181459cdac7..cce081fb9f82 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of layer 2 (L2) networks in the provided resource group. * * @summary Get a list of layer 2 (L2) networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_ListByResourceGroup.json */ async function listL2NetworksForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listL2NetworksForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.l2Networks.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListBySubscriptionSample.ts index aaacc45b6098..97e4c5fd1ee4 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of layer 2 (L2) networks in the provided subscription. * * @summary Get a list of layer 2 (L2) networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_ListBySubscription.json */ async function listL2NetworksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksUpdateSample.ts index 9d097b2c628b..5b774ff6c176 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/l2NetworksUpdateSample.ts @@ -11,7 +11,7 @@ import { L2NetworkPatchParameters, L2NetworksUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update tags associated with the provided layer 2 (L2) network. * * @summary Update tags associated with the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Patch.json */ async function patchL2Network() { const subscriptionId = @@ -32,7 +32,7 @@ async function patchL2Network() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const l2NetworkName = "l2NetworkName"; const l2NetworkUpdateParameters: L2NetworkPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: L2NetworksUpdateOptionalParams = { l2NetworkUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -40,7 +40,7 @@ async function patchL2Network() { const result = await client.l2Networks.update( resourceGroupName, l2NetworkName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksCreateOrUpdateSample.ts index ff2a59c5e9cd..c68e1554a0ea 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new layer 3 (L3) network or update the properties of the existing network. * * @summary Create a new layer 3 (L3) network or update the properties of the existing network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Create.json */ async function createOrUpdateL3Network() { const subscriptionId = @@ -29,9 +29,8 @@ async function createOrUpdateL3Network() { const l3NetworkName = "l3NetworkName"; const l3NetworkParameters: L3Network = { extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, interfaceName: "eth0", ipAllocationType: "DualStack", @@ -41,14 +40,14 @@ async function createOrUpdateL3Network() { "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName", location: "location", tags: { key1: "myvalue1", key2: "myvalue2" }, - vlan: 12 + vlan: 12, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.l3Networks.beginCreateOrUpdateAndWait( resourceGroupName, l3NetworkName, - l3NetworkParameters + l3NetworkParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksDeleteSample.ts index 62420a21fcc3..3beb09b522eb 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided layer 3 (L3) network. * * @summary Delete the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Delete.json */ async function deleteL3Network() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteL3Network() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.l3Networks.beginDeleteAndWait( resourceGroupName, - l3NetworkName + l3NetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksGetSample.ts index f9fa9d18e3d3..6c0bf9238e23 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided layer 3 (L3) network. * * @summary Get properties of the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Get.json */ async function getL3Network() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListByResourceGroupSample.ts index d9f8111e52ff..ef5ace2744b7 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of layer 3 (L3) networks in the provided resource group. * * @summary Get a list of layer 3 (L3) networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_ListByResourceGroup.json */ async function listL3NetworksForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listL3NetworksForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.l3Networks.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListBySubscriptionSample.ts index 3a6e4716e65c..40e7098f0c59 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of layer 3 (L3) networks in the provided subscription. * * @summary Get a list of layer 3 (L3) networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_ListBySubscription.json */ async function listL3NetworksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksUpdateSample.ts index c0fbd7adcb39..f4c5d4c6c08c 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/l3NetworksUpdateSample.ts @@ -11,7 +11,7 @@ import { L3NetworkPatchParameters, L3NetworksUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update tags associated with the provided layer 3 (L3) network. * * @summary Update tags associated with the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Patch.json */ async function patchL3Network() { const subscriptionId = @@ -32,7 +32,7 @@ async function patchL3Network() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const l3NetworkName = "l3NetworkName"; const l3NetworkUpdateParameters: L3NetworkPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: L3NetworksUpdateOptionalParams = { l3NetworkUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -40,7 +40,7 @@ async function patchL3Network() { const result = await client.l3Networks.update( resourceGroupName, l3NetworkName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsCreateOrUpdateSample.ts index e2b6e4933550..5fe9b61cf0c5 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ClusterMetricsConfiguration, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create new or update the existing metrics configuration of the provided cluster. * * @summary Create new or update the existing metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Create.json */ async function createOrUpdateMetricsConfigurationOfCluster() { const subscriptionId = @@ -35,12 +35,11 @@ async function createOrUpdateMetricsConfigurationOfCluster() { collectionInterval: 15, enabledMetrics: ["metric1", "metric2"], extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); @@ -48,7 +47,7 @@ async function createOrUpdateMetricsConfigurationOfCluster() { resourceGroupName, clusterName, metricsConfigurationName, - metricsConfigurationParameters + metricsConfigurationParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsDeleteSample.ts index 61d449347a3c..59d304855e81 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the metrics configuration of the provided cluster. * * @summary Delete the metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Delete.json */ async function deleteMetricsConfigurationOfCluster() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteMetricsConfigurationOfCluster() { const result = await client.metricsConfigurations.beginDeleteAndWait( resourceGroupName, clusterName, - metricsConfigurationName + metricsConfigurationName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsGetSample.ts index 7bd3dc1518ab..73d0ae2712da 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get metrics configuration of the provided cluster. * * @summary Get metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Get.json */ async function getMetricsConfigurationOfCluster() { const subscriptionId = @@ -33,7 +33,7 @@ async function getMetricsConfigurationOfCluster() { const result = await client.metricsConfigurations.get( resourceGroupName, clusterName, - metricsConfigurationName + metricsConfigurationName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsListByClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsListByClusterSample.ts index 0db96c289859..71c61471d3d8 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsListByClusterSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of metrics configurations for the provided cluster. * * @summary Get a list of metrics configurations for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_ListByCluster.json */ async function listMetricsConfigurationsOfTheCluster() { const subscriptionId = @@ -32,7 +32,7 @@ async function listMetricsConfigurationsOfTheCluster() { const resArray = new Array(); for await (let item of client.metricsConfigurations.listByCluster( resourceGroupName, - clusterName + clusterName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsUpdateSample.ts index a95ab451a933..4cdc8ee1ae35 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/metricsConfigurationsUpdateSample.ts @@ -11,7 +11,7 @@ import { ClusterMetricsConfigurationPatchParameters, MetricsConfigurationsUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. * * @summary Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Patch.json */ async function patchMetricsConfigurationOfCluster() { const subscriptionId = @@ -32,13 +32,14 @@ async function patchMetricsConfigurationOfCluster() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const clusterName = "clusterName"; const metricsConfigurationName = "default"; - const metricsConfigurationUpdateParameters: ClusterMetricsConfigurationPatchParameters = { - collectionInterval: 15, - enabledMetrics: ["metric1", "metric2"], - tags: { key1: "myvalue1", key2: "myvalue2" } - }; + const metricsConfigurationUpdateParameters: ClusterMetricsConfigurationPatchParameters = + { + collectionInterval: 15, + enabledMetrics: ["metric1", "metric2"], + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; const options: MetricsConfigurationsUpdateOptionalParams = { - metricsConfigurationUpdateParameters + metricsConfigurationUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); @@ -46,7 +47,7 @@ async function patchMetricsConfigurationOfCluster() { resourceGroupName, clusterName, metricsConfigurationName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/operationsListSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/operationsListSample.ts index 55e5ced2ecbc..68353b739071 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/operationsListSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of all available resource provider operations. It contains a URL link to get the next set of results. * * @summary Get a list of all available resource provider operations. It contains a URL link to get the next set of results. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Operations_List.json */ async function listResourceProviderOperations() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusGetSample.ts index 75c47ffb32b7..e3f8ff2effeb 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of the provided rack SKU. * * @summary Get the properties of the provided rack SKU. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/RackSkus_Get.json */ async function getRackSkuResource() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusListBySubscriptionSample.ts index 102bbee4b1ab..be1d7a2aefec 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/rackSkusListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of rack SKUs in the provided subscription. * * @summary Get a list of rack SKUs in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/RackSkus_ListBySubscription.json */ async function listRackSkUsForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/racksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/racksCreateOrUpdateSample.ts index bd47106fee7c..7412607e52bd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/racksCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/racksCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Create a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Create.json */ async function createOrUpdateRack() { const subscriptionId = @@ -32,22 +32,22 @@ async function createOrUpdateRack() { const rackParameters: Rack = { availabilityZone: "1", extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", rackLocation: "Rack 28", rackSerialNumber: "RACK_SERIAL_NUMBER", - rackSkuId: "RACK-TYPE-1", - tags: { key1: "myvalue1", key2: "myvalue2" } + rackSkuId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.racks.beginCreateOrUpdateAndWait( resourceGroupName, rackName, - rackParameters + rackParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/racksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/racksDeleteSample.ts index 175174428e91..90376d4e75fa 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/racksDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/racksDeleteSample.ts @@ -20,7 +20,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Delete.json */ async function deleteRack() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteRack() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.racks.beginDeleteAndWait( resourceGroupName, - rackName + rackName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/racksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/racksGetSample.ts index ce6607ee76e9..88af1a48508f 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/racksGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/racksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided rack. * * @summary Get properties of the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Get.json */ async function getRack() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/racksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/racksListByResourceGroupSample.ts index 2449a8037439..2149fd803f10 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/racksListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/racksListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of racks in the provided resource group. * * @summary Get a list of racks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_ListByResourceGroup.json */ async function listRacksForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/racksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/racksListBySubscriptionSample.ts index 7c4e2654586c..6ad4e42aeec6 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/racksListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/racksListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of racks in the provided subscription. * * @summary Get a list of racks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_ListBySubscription.json */ async function listRacksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/racksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/racksUpdateSample.ts index c5ca795e2362..0127fe811192 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/racksUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/racksUpdateSample.ts @@ -11,7 +11,7 @@ import { RackPatchParameters, RacksUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. * * @summary Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Patch.json */ async function patchRack() { const subscriptionId = @@ -34,7 +34,7 @@ async function patchRack() { const rackUpdateParameters: RackPatchParameters = { rackLocation: "Rack 2B", rackSerialNumber: "RACK_SERIAL_NUMBER", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: RacksUpdateOptionalParams = { rackUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -42,7 +42,7 @@ async function patchRack() { const result = await client.racks.beginUpdateAndWait( resourceGroupName, rackName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesCreateOrUpdateSample.ts index 631149be3396..44ec1a8ad608 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Create a new storage appliance or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Create.json */ async function createOrUpdateStorageAppliance() { const subscriptionId = @@ -32,9 +32,8 @@ async function createOrUpdateStorageAppliance() { const storageApplianceParameters: StorageAppliance = { administratorCredentials: { password: "{password}", username: "adminUser" }, extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", rackId: @@ -42,14 +41,14 @@ async function createOrUpdateStorageAppliance() { rackSlot: 1, serialNumber: "BM1219XXX", storageApplianceSkuId: "684E-3B16-399E", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.storageAppliances.beginCreateOrUpdateAndWait( resourceGroupName, storageApplianceName, - storageApplianceParameters + storageApplianceParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDeleteSample.ts index ef264582ebbc..d507feb3877f 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDeleteSample.ts @@ -20,7 +20,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Delete.json */ async function deleteStorageAppliance() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteStorageAppliance() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.storageAppliances.beginDeleteAndWait( resourceGroupName, - storageApplianceName + storageApplianceName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDisableRemoteVendorManagementSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDisableRemoteVendorManagementSample.ts index 0b30a7656114..a3768dc42274 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDisableRemoteVendorManagementSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesDisableRemoteVendorManagementSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disable remote vendor management of the provided storage appliance. * * @summary Disable remote vendor management of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_DisableRemoteVendorManagement.json */ async function turnOffRemoteVendorManagementForStorageAppliance() { const subscriptionId = @@ -29,10 +29,11 @@ async function turnOffRemoteVendorManagementForStorageAppliance() { const storageApplianceName = "storageApplianceName"; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginDisableRemoteVendorManagementAndWait( - resourceGroupName, - storageApplianceName - ); + const result = + await client.storageAppliances.beginDisableRemoteVendorManagementAndWait( + resourceGroupName, + storageApplianceName, + ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesEnableRemoteVendorManagementSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesEnableRemoteVendorManagementSample.ts index 7157f25e955e..47ae73681018 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesEnableRemoteVendorManagementSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesEnableRemoteVendorManagementSample.ts @@ -11,7 +11,7 @@ import { StorageApplianceEnableRemoteVendorManagementParameters, StorageAppliancesEnableRemoteVendorManagementOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Enable remote vendor management of the provided storage appliance. * * @summary Enable remote vendor management of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_EnableRemoteVendorManagement.json */ async function turnOnRemoteVendorManagementForStorageAppliance() { const subscriptionId = @@ -31,19 +31,19 @@ async function turnOnRemoteVendorManagementForStorageAppliance() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const storageApplianceName = "storageApplianceName"; - const storageApplianceEnableRemoteVendorManagementParameters: StorageApplianceEnableRemoteVendorManagementParameters = { - supportEndpoints: ["10.0.0.0/24"] - }; + const storageApplianceEnableRemoteVendorManagementParameters: StorageApplianceEnableRemoteVendorManagementParameters = + { supportEndpoints: ["10.0.0.0/24"] }; const options: StorageAppliancesEnableRemoteVendorManagementOptionalParams = { - storageApplianceEnableRemoteVendorManagementParameters + storageApplianceEnableRemoteVendorManagementParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginEnableRemoteVendorManagementAndWait( - resourceGroupName, - storageApplianceName, - options - ); + const result = + await client.storageAppliances.beginEnableRemoteVendorManagementAndWait( + resourceGroupName, + storageApplianceName, + options, + ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesGetSample.ts index 4dbfb7f083cc..9fafa9fb064c 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided storage appliance. * * @summary Get properties of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Get.json */ async function getStorageAppliance() { const subscriptionId = @@ -31,7 +31,7 @@ async function getStorageAppliance() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.storageAppliances.get( resourceGroupName, - storageApplianceName + storageApplianceName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListByResourceGroupSample.ts index c8dd5e2dd9f4..1cd278e26780 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of storage appliances in the provided resource group. * * @summary Get a list of storage appliances in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_ListByResourceGroup.json */ async function listStorageAppliancesForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listStorageAppliancesForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.storageAppliances.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListBySubscriptionSample.ts index e1a91b14d06e..6b50c519f6b1 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of storage appliances in the provided subscription. * * @summary Get a list of storage appliances in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_ListBySubscription.json */ async function listStorageAppliancesForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesUpdateSample.ts index 4fef63297769..65a42d54e8e1 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/storageAppliancesUpdateSample.ts @@ -11,7 +11,7 @@ import { StorageAppliancePatchParameters, StorageAppliancesUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. * * @summary Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Patch.json */ async function patchStorageAppliance() { const subscriptionId = @@ -33,17 +33,17 @@ async function patchStorageAppliance() { const storageApplianceName = "storageApplianceName"; const storageApplianceUpdateParameters: StorageAppliancePatchParameters = { serialNumber: "BM1219XXX", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: StorageAppliancesUpdateOptionalParams = { - storageApplianceUpdateParameters + storageApplianceUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.storageAppliances.beginUpdateAndWait( resourceGroupName, storageApplianceName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksCreateOrUpdateSample.ts index 6da36dfb08ee..002ecbff0210 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new trunked network or update the properties of the existing trunked network. * * @summary Create a new trunked network or update the properties of the existing trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Create.json */ async function createOrUpdateTrunkedNetwork() { const subscriptionId = @@ -29,25 +29,24 @@ async function createOrUpdateTrunkedNetwork() { const trunkedNetworkName = "trunkedNetworkName"; const trunkedNetworkParameters: TrunkedNetwork = { extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, interfaceName: "eth0", isolationDomainIds: [ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName" + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName", ], location: "location", tags: { key1: "myvalue1", key2: "myvalue2" }, - vlans: [12, 14] + vlans: [12, 14], }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.trunkedNetworks.beginCreateOrUpdateAndWait( resourceGroupName, trunkedNetworkName, - trunkedNetworkParameters + trunkedNetworkParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksDeleteSample.ts index 4baf6c2974e7..e18a0529774a 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided trunked network. * * @summary Delete the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Delete.json */ async function deleteTrunkedNetwork() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteTrunkedNetwork() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.trunkedNetworks.beginDeleteAndWait( resourceGroupName, - trunkedNetworkName + trunkedNetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksGetSample.ts index 1ef09272355e..f2b5e9a4c810 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided trunked network. * * @summary Get properties of the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Get.json */ async function getTrunkedNetwork() { const subscriptionId = @@ -31,7 +31,7 @@ async function getTrunkedNetwork() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.trunkedNetworks.get( resourceGroupName, - trunkedNetworkName + trunkedNetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListByResourceGroupSample.ts index 60e72145bb4c..5a184c74e367 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of trunked networks in the provided resource group. * * @summary Get a list of trunked networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_ListByResourceGroup.json */ async function listTrunkedNetworksForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listTrunkedNetworksForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.trunkedNetworks.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListBySubscriptionSample.ts index a6630bf4b519..e8259d15f164 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of trunked networks in the provided subscription. * * @summary Get a list of trunked networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_ListBySubscription.json */ async function listTrunkedNetworksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksUpdateSample.ts index c3d281903f00..207a9c3ed034 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/trunkedNetworksUpdateSample.ts @@ -11,7 +11,7 @@ import { TrunkedNetworkPatchParameters, TrunkedNetworksUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update tags associated with the provided trunked network. * * @summary Update tags associated with the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Patch.json */ async function patchTrunkedNetwork() { const subscriptionId = @@ -32,17 +32,17 @@ async function patchTrunkedNetwork() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const trunkedNetworkName = "trunkedNetworkName"; const trunkedNetworkUpdateParameters: TrunkedNetworkPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: TrunkedNetworksUpdateOptionalParams = { - trunkedNetworkUpdateParameters + trunkedNetworkUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.trunkedNetworks.update( resourceGroupName, trunkedNetworkName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesCreateOrUpdateSample.ts index 8d6718892267..16e1e2e95c95 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new virtual machine or update the properties of the existing virtual machine. * * @summary Create a new virtual machine or update the properties of the existing virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Create.json */ async function createOrUpdateVirtualMachine() { const subscriptionId = @@ -33,13 +33,12 @@ async function createOrUpdateVirtualMachine() { cloudServicesNetworkAttachment: { attachedNetworkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", - ipAllocationMethod: "Dynamic" + ipAllocationMethod: "Dynamic", }, cpuCores: 2, extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", memorySizeGB: 8, @@ -51,8 +50,8 @@ async function createOrUpdateVirtualMachine() { ipAllocationMethod: "Dynamic", ipv4Address: "198.51.100.1", ipv6Address: "2001:0db8:0000:0000:0000:0000:0000:0000", - networkAttachmentName: "netAttachName01" - } + networkAttachmentName: "netAttachName01", + }, ], networkData: "bmV0d29ya0RhdGVTYW1wbGU=", placementHints: [ @@ -61,24 +60,24 @@ async function createOrUpdateVirtualMachine() { resourceId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", schedulingExecution: "Hard", - scope: "" - } + scope: "", + }, ], sshPublicKeys: [ { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, ], storageProfile: { osDisk: { createOption: "Ephemeral", deleteOption: "Delete", - diskSizeGB: 120 + diskSizeGB: 120, }, volumeAttachments: [ - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/volumes/volumeName" - ] + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/volumes/volumeName", + ], }, tags: { key1: "myvalue1", key2: "myvalue2" }, userData: "dXNlckRhdGVTYW1wbGU=", @@ -87,15 +86,15 @@ async function createOrUpdateVirtualMachine() { vmImageRepositoryCredentials: { password: "{password}", registryUrl: "myacr.azurecr.io", - username: "myuser" - } + username: "myuser", + }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, virtualMachineName, - virtualMachineParameters + virtualMachineParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesDeleteSample.ts index 7e629f112867..2554394d6ebe 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided virtual machine. * * @summary Delete the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Delete.json */ async function deleteVirtualMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginDeleteAndWait( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesGetSample.ts index d725e7bb842d..229cb0ff9010 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided virtual machine. * * @summary Get properties of the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Get.json */ async function getVirtualMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function getVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.get( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListByResourceGroupSample.ts index facafcb8ce03..0031a31b1973 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of virtual machines in the provided resource group. * * @summary Get a list of virtual machines in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_ListByResourceGroup.json */ async function listVirtualMachinesForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listVirtualMachinesForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachines.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListBySubscriptionSample.ts index 2ed3944d2b45..0e6ac5e7fb12 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of virtual machines in the provided subscription. * * @summary Get a list of virtual machines in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_ListBySubscription.json */ async function listVirtualMachinesForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesPowerOffSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesPowerOffSample.ts index c706c16583ea..c3a9b1dd89ea 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesPowerOffSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesPowerOffSample.ts @@ -11,7 +11,7 @@ import { VirtualMachinePowerOffParameters, VirtualMachinesPowerOffOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Power off the provided virtual machine. * * @summary Power off the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_PowerOff.json */ async function powerOffVirtualMachine() { const subscriptionId = @@ -32,17 +32,17 @@ async function powerOffVirtualMachine() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const virtualMachineName = "virtualMachineName"; const virtualMachinePowerOffParameters: VirtualMachinePowerOffParameters = { - skipShutdown: "True" + skipShutdown: "True", }; const options: VirtualMachinesPowerOffOptionalParams = { - virtualMachinePowerOffParameters + virtualMachinePowerOffParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginPowerOffAndWait( resourceGroupName, virtualMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesReimageSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesReimageSample.ts index eb5b51d4f9fe..46f8cf3aeb7c 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesReimageSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesReimageSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reimage the provided virtual machine. * * @summary Reimage the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Reimage.json */ async function reimageVirtualMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function reimageVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginReimageAndWait( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesRestartSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesRestartSample.ts index 1cfdb6d2a9e0..07933531d444 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesRestartSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesRestartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Restart the provided virtual machine. * * @summary Restart the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Restart.json */ async function restartVirtualMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function restartVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginRestartAndWait( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesStartSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesStartSample.ts index 55bcc24d32e0..6f8b0a3a5696 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesStartSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesStartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Start the provided virtual machine. * * @summary Start the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Start.json */ async function startVirtualMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function startVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginStartAndWait( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesUpdateSample.ts index b4c906a0564c..5bbe8699eee7 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/virtualMachinesUpdateSample.ts @@ -11,7 +11,7 @@ import { VirtualMachinePatchParameters, VirtualMachinesUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. * * @summary Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Patch.json */ async function patchVirtualMachine() { const subscriptionId = @@ -36,18 +36,18 @@ async function patchVirtualMachine() { vmImageRepositoryCredentials: { password: "{password}", registryUrl: "myacr.azurecr.io", - username: "myuser" - } + username: "myuser", + }, }; const options: VirtualMachinesUpdateOptionalParams = { - virtualMachineUpdateParameters + virtualMachineUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginUpdateAndWait( resourceGroupName, virtualMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesCreateOrUpdateSample.ts index ef0e7890c6d3..8ef7a264a3d6 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new volume or update the properties of the existing one. * * @summary Create a new volume or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Create.json */ async function createOrUpdateVolume() { const subscriptionId = @@ -29,20 +29,19 @@ async function createOrUpdateVolume() { const volumeName = "volumeName"; const volumeParameters: Volume = { extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", sizeMiB: 10000, - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.volumes.beginCreateOrUpdateAndWait( resourceGroupName, volumeName, - volumeParameters + volumeParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesDeleteSample.ts index 4b04e9295623..714bbc1b5e3d 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided volume. * * @summary Delete the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Delete.json */ async function deleteVolume() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteVolume() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.volumes.beginDeleteAndWait( resourceGroupName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesGetSample.ts index 8853154ecebd..ba640c877a79 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided volume. * * @summary Get properties of the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Get.json */ async function getVolume() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListByResourceGroupSample.ts index 4bb197be20b2..06d74ab0501a 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of volumes in the provided resource group. * * @summary Get a list of volumes in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_ListByResourceGroup.json */ async function listVolumesForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listVolumesForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.volumes.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListBySubscriptionSample.ts index 5b8d66ceddaf..dfcc9e784087 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of volumes in the provided subscription. * * @summary Get a list of volumes in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_ListBySubscription.json */ async function listVolumeForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesUpdateSample.ts index b35b7c0bcf70..26ea1bc26850 100644 --- a/sdk/networkcloud/arm-networkcloud/samples-dev/volumesUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples-dev/volumesUpdateSample.ts @@ -11,7 +11,7 @@ import { VolumePatchParameters, VolumesUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update tags associated with the provided volume. * * @summary Update tags associated with the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Patch.json */ async function patchVolume() { const subscriptionId = @@ -32,7 +32,7 @@ async function patchVolume() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const volumeName = "volumeName"; const volumeUpdateParameters: VolumePatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: VolumesUpdateOptionalParams = { volumeUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -40,7 +40,7 @@ async function patchVolume() { const result = await client.volumes.update( resourceGroupName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/README.md b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/README.md deleted file mode 100644 index 88292c0f2ca6..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/README.md +++ /dev/null @@ -1,286 +0,0 @@ -# client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [agentPoolsCreateOrUpdateSample.js][agentpoolscreateorupdatesample] | Create a new Kubernetes cluster agent pool or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json | -| [agentPoolsDeleteSample.js][agentpoolsdeletesample] | Delete the provided Kubernetes cluster agent pool. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json | -| [agentPoolsGetSample.js][agentpoolsgetsample] | Get properties of the provided Kubernetes cluster agent pool. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json | -| [agentPoolsListByKubernetesClusterSample.js][agentpoolslistbykubernetesclustersample] | Get a list of agent pools for the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json | -| [agentPoolsUpdateSample.js][agentpoolsupdatesample] | Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json | -| [bareMetalMachineKeySetsCreateOrUpdateSample.js][baremetalmachinekeysetscreateorupdatesample] | Create a new bare metal machine key set or update the existing one for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json | -| [bareMetalMachineKeySetsDeleteSample.js][baremetalmachinekeysetsdeletesample] | Delete the bare metal machine key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json | -| [bareMetalMachineKeySetsGetSample.js][baremetalmachinekeysetsgetsample] | Get bare metal machine key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json | -| [bareMetalMachineKeySetsListByClusterSample.js][baremetalmachinekeysetslistbyclustersample] | Get a list of bare metal machine key sets for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json | -| [bareMetalMachineKeySetsUpdateSample.js][baremetalmachinekeysetsupdatesample] | Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json | -| [bareMetalMachinesCordonSample.js][baremetalmachinescordonsample] | Cordon the provided bare metal machine's Kubernetes node. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json | -| [bareMetalMachinesCreateOrUpdateSample.js][baremetalmachinescreateorupdatesample] | Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json | -| [bareMetalMachinesDeleteSample.js][baremetalmachinesdeletesample] | Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json | -| [bareMetalMachinesGetSample.js][baremetalmachinesgetsample] | Get properties of the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json | -| [bareMetalMachinesListByResourceGroupSample.js][baremetalmachineslistbyresourcegroupsample] | Get a list of bare metal machines in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json | -| [bareMetalMachinesListBySubscriptionSample.js][baremetalmachineslistbysubscriptionsample] | Get a list of bare metal machines in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json | -| [bareMetalMachinesPowerOffSample.js][baremetalmachinespoweroffsample] | Power off the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json | -| [bareMetalMachinesReimageSample.js][baremetalmachinesreimagesample] | Reimage the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json | -| [bareMetalMachinesReplaceSample.js][baremetalmachinesreplacesample] | Replace the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json | -| [bareMetalMachinesRestartSample.js][baremetalmachinesrestartsample] | Restart the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json | -| [bareMetalMachinesRunCommandSample.js][baremetalmachinesruncommandsample] | Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json | -| [bareMetalMachinesRunDataExtractsSample.js][baremetalmachinesrundataextractssample] | Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json | -| [bareMetalMachinesRunReadCommandsSample.js][baremetalmachinesrunreadcommandssample] | Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json | -| [bareMetalMachinesStartSample.js][baremetalmachinesstartsample] | Start the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json | -| [bareMetalMachinesUncordonSample.js][baremetalmachinesuncordonsample] | Uncordon the provided bare metal machine's Kubernetes node. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json | -| [bareMetalMachinesUpdateSample.js][baremetalmachinesupdatesample] | Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json | -| [bmcKeySetsCreateOrUpdateSample.js][bmckeysetscreateorupdatesample] | Create a new baseboard management controller key set or update the existing one for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json | -| [bmcKeySetsDeleteSample.js][bmckeysetsdeletesample] | Delete the baseboard management controller key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json | -| [bmcKeySetsGetSample.js][bmckeysetsgetsample] | Get baseboard management controller key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json | -| [bmcKeySetsListByClusterSample.js][bmckeysetslistbyclustersample] | Get a list of baseboard management controller key sets for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json | -| [bmcKeySetsUpdateSample.js][bmckeysetsupdatesample] | Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json | -| [cloudServicesNetworksCreateOrUpdateSample.js][cloudservicesnetworkscreateorupdatesample] | Create a new cloud services network or update the properties of the existing cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json | -| [cloudServicesNetworksDeleteSample.js][cloudservicesnetworksdeletesample] | Delete the provided cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json | -| [cloudServicesNetworksGetSample.js][cloudservicesnetworksgetsample] | Get properties of the provided cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json | -| [cloudServicesNetworksListByResourceGroupSample.js][cloudservicesnetworkslistbyresourcegroupsample] | Get a list of cloud services networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json | -| [cloudServicesNetworksListBySubscriptionSample.js][cloudservicesnetworkslistbysubscriptionsample] | Get a list of cloud services networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json | -| [cloudServicesNetworksUpdateSample.js][cloudservicesnetworksupdatesample] | Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json | -| [clusterManagersCreateOrUpdateSample.js][clustermanagerscreateorupdatesample] | Create a new cluster manager or update properties of the cluster manager if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json | -| [clusterManagersDeleteSample.js][clustermanagersdeletesample] | Delete the provided cluster manager. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json | -| [clusterManagersGetSample.js][clustermanagersgetsample] | Get the properties of the provided cluster manager. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json | -| [clusterManagersListByResourceGroupSample.js][clustermanagerslistbyresourcegroupsample] | Get a list of cluster managers in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json | -| [clusterManagersListBySubscriptionSample.js][clustermanagerslistbysubscriptionsample] | Get a list of cluster managers in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json | -| [clusterManagersUpdateSample.js][clustermanagersupdatesample] | Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json | -| [clustersCreateOrUpdateSample.js][clusterscreateorupdatesample] | Create a new cluster or update the properties of the cluster if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json | -| [clustersDeleteSample.js][clustersdeletesample] | Delete the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json | -| [clustersDeploySample.js][clustersdeploysample] | Deploy the cluster to the provided rack. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json | -| [clustersGetSample.js][clustersgetsample] | Get properties of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json | -| [clustersListByResourceGroupSample.js][clusterslistbyresourcegroupsample] | Get a list of clusters in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json | -| [clustersListBySubscriptionSample.js][clusterslistbysubscriptionsample] | Get a list of clusters in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json | -| [clustersUpdateSample.js][clustersupdatesample] | Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json | -| [clustersUpdateVersionSample.js][clustersupdateversionsample] | Update the version of the provided cluster to one of the available supported versions. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json | -| [consolesCreateOrUpdateSample.js][consolescreateorupdatesample] | Create a new virtual machine console or update the properties of the existing virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json | -| [consolesDeleteSample.js][consolesdeletesample] | Delete the provided virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json | -| [consolesGetSample.js][consolesgetsample] | Get properties of the provided virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json | -| [consolesListByVirtualMachineSample.js][consoleslistbyvirtualmachinesample] | Get a list of consoles for the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json | -| [consolesUpdateSample.js][consolesupdatesample] | Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json | -| [kubernetesClustersCreateOrUpdateSample.js][kubernetesclusterscreateorupdatesample] | Create a new Kubernetes cluster or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json | -| [kubernetesClustersDeleteSample.js][kubernetesclustersdeletesample] | Delete the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json | -| [kubernetesClustersGetSample.js][kubernetesclustersgetsample] | Get properties of the provided the Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json | -| [kubernetesClustersListByResourceGroupSample.js][kubernetesclusterslistbyresourcegroupsample] | Get a list of Kubernetes clusters in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json | -| [kubernetesClustersListBySubscriptionSample.js][kubernetesclusterslistbysubscriptionsample] | Get a list of Kubernetes clusters in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json | -| [kubernetesClustersRestartNodeSample.js][kubernetesclustersrestartnodesample] | Restart a targeted node of a Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json | -| [kubernetesClustersUpdateSample.js][kubernetesclustersupdatesample] | Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json | -| [l2NetworksCreateOrUpdateSample.js][l2networkscreateorupdatesample] | Create a new layer 2 (L2) network or update the properties of the existing network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json | -| [l2NetworksDeleteSample.js][l2networksdeletesample] | Delete the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json | -| [l2NetworksGetSample.js][l2networksgetsample] | Get properties of the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json | -| [l2NetworksListByResourceGroupSample.js][l2networkslistbyresourcegroupsample] | Get a list of layer 2 (L2) networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json | -| [l2NetworksListBySubscriptionSample.js][l2networkslistbysubscriptionsample] | Get a list of layer 2 (L2) networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json | -| [l2NetworksUpdateSample.js][l2networksupdatesample] | Update tags associated with the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json | -| [l3NetworksCreateOrUpdateSample.js][l3networkscreateorupdatesample] | Create a new layer 3 (L3) network or update the properties of the existing network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json | -| [l3NetworksDeleteSample.js][l3networksdeletesample] | Delete the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json | -| [l3NetworksGetSample.js][l3networksgetsample] | Get properties of the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json | -| [l3NetworksListByResourceGroupSample.js][l3networkslistbyresourcegroupsample] | Get a list of layer 3 (L3) networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json | -| [l3NetworksListBySubscriptionSample.js][l3networkslistbysubscriptionsample] | Get a list of layer 3 (L3) networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json | -| [l3NetworksUpdateSample.js][l3networksupdatesample] | Update tags associated with the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json | -| [metricsConfigurationsCreateOrUpdateSample.js][metricsconfigurationscreateorupdatesample] | Create new or update the existing metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json | -| [metricsConfigurationsDeleteSample.js][metricsconfigurationsdeletesample] | Delete the metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json | -| [metricsConfigurationsGetSample.js][metricsconfigurationsgetsample] | Get metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json | -| [metricsConfigurationsListByClusterSample.js][metricsconfigurationslistbyclustersample] | Get a list of metrics configurations for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json | -| [metricsConfigurationsUpdateSample.js][metricsconfigurationsupdatesample] | Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json | -| [operationsListSample.js][operationslistsample] | Get a list of all available resource provider operations. It contains a URL link to get the next set of results. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json | -| [rackSkusGetSample.js][rackskusgetsample] | Get the properties of the provided rack SKU. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json | -| [rackSkusListBySubscriptionSample.js][rackskuslistbysubscriptionsample] | Get a list of rack SKUs in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json | -| [racksCreateOrUpdateSample.js][rackscreateorupdatesample] | Create a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json | -| [racksDeleteSample.js][racksdeletesample] | Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json | -| [racksGetSample.js][racksgetsample] | Get properties of the provided rack. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json | -| [racksListByResourceGroupSample.js][rackslistbyresourcegroupsample] | Get a list of racks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json | -| [racksListBySubscriptionSample.js][rackslistbysubscriptionsample] | Get a list of racks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json | -| [racksUpdateSample.js][racksupdatesample] | Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json | -| [storageAppliancesCreateOrUpdateSample.js][storageappliancescreateorupdatesample] | Create a new storage appliance or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json | -| [storageAppliancesDeleteSample.js][storageappliancesdeletesample] | Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json | -| [storageAppliancesDisableRemoteVendorManagementSample.js][storageappliancesdisableremotevendormanagementsample] | Disable remote vendor management of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json | -| [storageAppliancesEnableRemoteVendorManagementSample.js][storageappliancesenableremotevendormanagementsample] | Enable remote vendor management of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json | -| [storageAppliancesGetSample.js][storageappliancesgetsample] | Get properties of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json | -| [storageAppliancesListByResourceGroupSample.js][storageapplianceslistbyresourcegroupsample] | Get a list of storage appliances in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json | -| [storageAppliancesListBySubscriptionSample.js][storageapplianceslistbysubscriptionsample] | Get a list of storage appliances in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json | -| [storageAppliancesUpdateSample.js][storageappliancesupdatesample] | Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json | -| [trunkedNetworksCreateOrUpdateSample.js][trunkednetworkscreateorupdatesample] | Create a new trunked network or update the properties of the existing trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json | -| [trunkedNetworksDeleteSample.js][trunkednetworksdeletesample] | Delete the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json | -| [trunkedNetworksGetSample.js][trunkednetworksgetsample] | Get properties of the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json | -| [trunkedNetworksListByResourceGroupSample.js][trunkednetworkslistbyresourcegroupsample] | Get a list of trunked networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json | -| [trunkedNetworksListBySubscriptionSample.js][trunkednetworkslistbysubscriptionsample] | Get a list of trunked networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json | -| [trunkedNetworksUpdateSample.js][trunkednetworksupdatesample] | Update tags associated with the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json | -| [virtualMachinesCreateOrUpdateSample.js][virtualmachinescreateorupdatesample] | Create a new virtual machine or update the properties of the existing virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json | -| [virtualMachinesDeleteSample.js][virtualmachinesdeletesample] | Delete the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json | -| [virtualMachinesGetSample.js][virtualmachinesgetsample] | Get properties of the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json | -| [virtualMachinesListByResourceGroupSample.js][virtualmachineslistbyresourcegroupsample] | Get a list of virtual machines in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json | -| [virtualMachinesListBySubscriptionSample.js][virtualmachineslistbysubscriptionsample] | Get a list of virtual machines in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json | -| [virtualMachinesPowerOffSample.js][virtualmachinespoweroffsample] | Power off the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json | -| [virtualMachinesReimageSample.js][virtualmachinesreimagesample] | Reimage the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json | -| [virtualMachinesRestartSample.js][virtualmachinesrestartsample] | Restart the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json | -| [virtualMachinesStartSample.js][virtualmachinesstartsample] | Start the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json | -| [virtualMachinesUpdateSample.js][virtualmachinesupdatesample] | Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json | -| [volumesCreateOrUpdateSample.js][volumescreateorupdatesample] | Create a new volume or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json | -| [volumesDeleteSample.js][volumesdeletesample] | Delete the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json | -| [volumesGetSample.js][volumesgetsample] | Get properties of the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json | -| [volumesListByResourceGroupSample.js][volumeslistbyresourcegroupsample] | Get a list of volumes in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json | -| [volumesListBySubscriptionSample.js][volumeslistbysubscriptionsample] | Get a list of volumes in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json | -| [volumesUpdateSample.js][volumesupdatesample] | Update tags associated with the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node agentPoolsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env NETWORKCLOUD_SUBSCRIPTION_ID="" NETWORKCLOUD_RESOURCE_GROUP="" node agentPoolsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[agentpoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsCreateOrUpdateSample.js -[agentpoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsDeleteSample.js -[agentpoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsGetSample.js -[agentpoolslistbykubernetesclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsListByKubernetesClusterSample.js -[agentpoolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsUpdateSample.js -[baremetalmachinekeysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js -[baremetalmachinekeysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsDeleteSample.js -[baremetalmachinekeysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsGetSample.js -[baremetalmachinekeysetslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsListByClusterSample.js -[baremetalmachinekeysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsUpdateSample.js -[baremetalmachinescordonsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCordonSample.js -[baremetalmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCreateOrUpdateSample.js -[baremetalmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesDeleteSample.js -[baremetalmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesGetSample.js -[baremetalmachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListByResourceGroupSample.js -[baremetalmachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListBySubscriptionSample.js -[baremetalmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesPowerOffSample.js -[baremetalmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReimageSample.js -[baremetalmachinesreplacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReplaceSample.js -[baremetalmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRestartSample.js -[baremetalmachinesruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunCommandSample.js -[baremetalmachinesrundataextractssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunDataExtractsSample.js -[baremetalmachinesrunreadcommandssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunReadCommandsSample.js -[baremetalmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesStartSample.js -[baremetalmachinesuncordonsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUncordonSample.js -[baremetalmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUpdateSample.js -[bmckeysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsCreateOrUpdateSample.js -[bmckeysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsDeleteSample.js -[bmckeysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsGetSample.js -[bmckeysetslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsListByClusterSample.js -[bmckeysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsUpdateSample.js -[cloudservicesnetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksCreateOrUpdateSample.js -[cloudservicesnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksDeleteSample.js -[cloudservicesnetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksGetSample.js -[cloudservicesnetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListByResourceGroupSample.js -[cloudservicesnetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListBySubscriptionSample.js -[cloudservicesnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksUpdateSample.js -[clustermanagerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersCreateOrUpdateSample.js -[clustermanagersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersDeleteSample.js -[clustermanagersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersGetSample.js -[clustermanagerslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListByResourceGroupSample.js -[clustermanagerslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListBySubscriptionSample.js -[clustermanagersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersUpdateSample.js -[clusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersCreateOrUpdateSample.js -[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeleteSample.js -[clustersdeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeploySample.js -[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersGetSample.js -[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListByResourceGroupSample.js -[clusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListBySubscriptionSample.js -[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateSample.js -[clustersupdateversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateVersionSample.js -[consolescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesCreateOrUpdateSample.js -[consolesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesDeleteSample.js -[consolesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesGetSample.js -[consoleslistbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesListByVirtualMachineSample.js -[consolesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesUpdateSample.js -[kubernetesclusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersCreateOrUpdateSample.js -[kubernetesclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersDeleteSample.js -[kubernetesclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersGetSample.js -[kubernetesclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListByResourceGroupSample.js -[kubernetesclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListBySubscriptionSample.js -[kubernetesclustersrestartnodesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersRestartNodeSample.js -[kubernetesclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersUpdateSample.js -[l2networkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksCreateOrUpdateSample.js -[l2networksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksDeleteSample.js -[l2networksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksGetSample.js -[l2networkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListByResourceGroupSample.js -[l2networkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListBySubscriptionSample.js -[l2networksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksUpdateSample.js -[l3networkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksCreateOrUpdateSample.js -[l3networksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksDeleteSample.js -[l3networksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksGetSample.js -[l3networkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListByResourceGroupSample.js -[l3networkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListBySubscriptionSample.js -[l3networksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksUpdateSample.js -[metricsconfigurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsCreateOrUpdateSample.js -[metricsconfigurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsDeleteSample.js -[metricsconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsGetSample.js -[metricsconfigurationslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsListByClusterSample.js -[metricsconfigurationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsUpdateSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/operationsListSample.js -[rackskusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusGetSample.js -[rackskuslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusListBySubscriptionSample.js -[rackscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksCreateOrUpdateSample.js -[racksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksDeleteSample.js -[racksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksGetSample.js -[rackslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListByResourceGroupSample.js -[rackslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListBySubscriptionSample.js -[racksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksUpdateSample.js -[storageappliancescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesCreateOrUpdateSample.js -[storageappliancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDeleteSample.js -[storageappliancesdisableremotevendormanagementsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDisableRemoteVendorManagementSample.js -[storageappliancesenableremotevendormanagementsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesEnableRemoteVendorManagementSample.js -[storageappliancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesGetSample.js -[storageapplianceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListByResourceGroupSample.js -[storageapplianceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListBySubscriptionSample.js -[storageappliancesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesUpdateSample.js -[trunkednetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksCreateOrUpdateSample.js -[trunkednetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksDeleteSample.js -[trunkednetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksGetSample.js -[trunkednetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListByResourceGroupSample.js -[trunkednetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListBySubscriptionSample.js -[trunkednetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksUpdateSample.js -[virtualmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesCreateOrUpdateSample.js -[virtualmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesDeleteSample.js -[virtualmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesGetSample.js -[virtualmachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListByResourceGroupSample.js -[virtualmachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListBySubscriptionSample.js -[virtualmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesPowerOffSample.js -[virtualmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesReimageSample.js -[virtualmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesRestartSample.js -[virtualmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesStartSample.js -[virtualmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesUpdateSample.js -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesCreateOrUpdateSample.js -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesDeleteSample.js -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesGetSample.js -[volumeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListByResourceGroupSample.js -[volumeslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListBySubscriptionSample.js -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesUpdateSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-networkcloud?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud/README.md diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersCreateOrUpdateSample.js deleted file mode 100644 index e2e1f2650cb0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersCreateOrUpdateSample.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new cluster manager or update properties of the cluster manager if it exists. - * - * @summary Create a new cluster manager or update properties of the cluster manager if it exists. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json - */ -async function createOrUpdateClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const clusterManagerParameters = { - analyticsWorkspaceId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", - fabricControllerId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US", - }, - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterManagerName, - clusterManagerParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateSample.js deleted file mode 100644 index b4a8eeec5a69..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateSample.js +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json - */ -async function patchClusterAggregatorOrSingleRackDefinition() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateParameters = { - aggregatorOrSingleRackDefinition: { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX", - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY", - }, - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "newSerialNumber", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName", - }, - ], - }, - computeDeploymentThreshold: { - type: "PercentSuccess", - grouping: "PerCluster", - value: 90, - }, - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { clusterUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateAndWait(resourceGroupName, clusterName, options); - console.log(result); -} - -/** - * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_Location.json - */ -async function patchClusterLocation() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateParameters = { - clusterLocation: "Foo Street, 3rd Floor, row 9", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { clusterUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateAndWait(resourceGroupName, clusterName, options); - console.log(result); -} - -async function main() { - patchClusterAggregatorOrSingleRackDefinition(); - patchClusterLocation(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersCreateOrUpdateSample.js deleted file mode 100644 index 240c830cbd95..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersCreateOrUpdateSample.js +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new Kubernetes cluster or update the properties of the existing one. - * - * @summary Create a new Kubernetes cluster or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json - */ -async function createOrUpdateKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterParameters = { - aadConfiguration: { - adminGroupObjectIds: ["ffffffff-ffff-ffff-ffff-ffffffffffff"], - }, - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - ], - }, - controlPlaneNodeConfiguration: { - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - ], - }, - availabilityZones: ["1", "2", "3"], - count: 3, - vmSkuName: "NC_G4_v1", - }, - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - initialAgentPoolConfigurations: [ - { - name: "SystemPool-1", - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", - }, - ], - }, - agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK", - }, - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV", - }, - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN", - }, - ], - }, - availabilityZones: ["1", "2", "3"], - count: 3, - labels: [{ key: "kubernetes.label", value: "true" }], - mode: "System", - taints: [{ key: "kubernetes.taint", value: "true" }], - upgradeSettings: { maxSurge: "1" }, - vmSkuName: "NC_M16_v1", - }, - ], - kubernetesVersion: "1.24.12-1", - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US", - }, - networkConfiguration: { - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK", - }, - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV", - }, - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN", - }, - ], - }, - bgpServiceLoadBalancerConfiguration: { - bgpAdvertisements: [ - { - advertiseToFabric: "True", - communities: ["64512:100"], - ipAddressPools: ["pool1"], - peers: ["peer1"], - }, - ], - bgpPeers: [ - { - name: "peer1", - bfdEnabled: "False", - bgpMultiHop: "False", - holdTime: "P300s", - keepAliveTime: "P300s", - myAsn: 64512, - peerAddress: "203.0.113.254", - peerAsn: 64497, - peerPort: 179, - }, - ], - fabricPeeringEnabled: "True", - ipAddressPools: [ - { - name: "pool1", - addresses: ["198.51.102.0/24"], - autoAssign: "True", - onlyUseHostIps: "True", - }, - ], - }, - cloudServicesNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", - cniNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - dnsServiceIp: "198.51.101.2", - podCidrs: ["198.51.100.0/24"], - serviceCidrs: ["198.51.101.0/24"], - }, - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginCreateOrUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - kubernetesClusterParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersUpdateSample.js deleted file mode 100644 index 4806ea0a2996..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersUpdateSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json - */ -async function patchKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterUpdateParameters = { - controlPlaneNodeConfiguration: { count: 3 }, - kubernetesVersion: "1.24.12", - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { - kubernetesClusterUpdateParameters, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - options - ); - console.log(result); -} - -async function main() { - patchKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/operationsListSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/operationsListSample.js deleted file mode 100644 index 9d5deb39ee5a..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/operationsListSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of all available resource provider operations. It contains a URL link to get the next set of results. - * - * @summary Get a list of all available resource provider operations. It contains a URL link to get the next set of results. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json - */ -async function listResourceProviderOperations() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listResourceProviderOperations(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/package.json b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/package.json deleted file mode 100644 index 650f0a6ed2b5..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-networkcloud-js", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/networkcloud/arm-networkcloud" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud", - "dependencies": { - "@azure/arm-networkcloud": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - } -} diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/sample.env b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesCreateOrUpdateSample.js deleted file mode 100644 index d7f94b2c9a5c..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesCreateOrUpdateSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new volume or update the properties of the existing one. - * - * @summary Create a new volume or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json - */ -async function createOrUpdateVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const volumeParameters = { - extendedLocation: { - name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation", - }, - location: "location", - sizeMiB: 10000, - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.beginCreateOrUpdateAndWait( - resourceGroupName, - volumeName, - volumeParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesDeleteSample.js deleted file mode 100644 index a7a6b51c6a1e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the provided volume. - * - * @summary Delete the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json - */ -async function deleteVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.beginDeleteAndWait(resourceGroupName, volumeName); - console.log(result); -} - -async function main() { - deleteVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesGetSample.js deleted file mode 100644 index 9e922a4be2a6..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get properties of the provided volume. - * - * @summary Get properties of the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json - */ -async function getVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.get(resourceGroupName, volumeName); - console.log(result); -} - -async function main() { - getVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesUpdateSample.js deleted file mode 100644 index dc1033772012..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesUpdateSample.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { NetworkCloud } = require("@azure/arm-networkcloud"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update tags associated with the provided volume. - * - * @summary Update tags associated with the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.json - */ -async function patchVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const volumeUpdateParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" }, - }; - const options = { volumeUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.update(resourceGroupName, volumeName, options); - console.log(result); -} - -async function main() { - patchVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/README.md b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/README.md deleted file mode 100644 index 2330e4d6ae10..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/README.md +++ /dev/null @@ -1,299 +0,0 @@ -# client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [agentPoolsCreateOrUpdateSample.ts][agentpoolscreateorupdatesample] | Create a new Kubernetes cluster agent pool or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json | -| [agentPoolsDeleteSample.ts][agentpoolsdeletesample] | Delete the provided Kubernetes cluster agent pool. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json | -| [agentPoolsGetSample.ts][agentpoolsgetsample] | Get properties of the provided Kubernetes cluster agent pool. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json | -| [agentPoolsListByKubernetesClusterSample.ts][agentpoolslistbykubernetesclustersample] | Get a list of agent pools for the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json | -| [agentPoolsUpdateSample.ts][agentpoolsupdatesample] | Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json | -| [bareMetalMachineKeySetsCreateOrUpdateSample.ts][baremetalmachinekeysetscreateorupdatesample] | Create a new bare metal machine key set or update the existing one for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json | -| [bareMetalMachineKeySetsDeleteSample.ts][baremetalmachinekeysetsdeletesample] | Delete the bare metal machine key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json | -| [bareMetalMachineKeySetsGetSample.ts][baremetalmachinekeysetsgetsample] | Get bare metal machine key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json | -| [bareMetalMachineKeySetsListByClusterSample.ts][baremetalmachinekeysetslistbyclustersample] | Get a list of bare metal machine key sets for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json | -| [bareMetalMachineKeySetsUpdateSample.ts][baremetalmachinekeysetsupdatesample] | Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json | -| [bareMetalMachinesCordonSample.ts][baremetalmachinescordonsample] | Cordon the provided bare metal machine's Kubernetes node. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json | -| [bareMetalMachinesCreateOrUpdateSample.ts][baremetalmachinescreateorupdatesample] | Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json | -| [bareMetalMachinesDeleteSample.ts][baremetalmachinesdeletesample] | Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json | -| [bareMetalMachinesGetSample.ts][baremetalmachinesgetsample] | Get properties of the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json | -| [bareMetalMachinesListByResourceGroupSample.ts][baremetalmachineslistbyresourcegroupsample] | Get a list of bare metal machines in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json | -| [bareMetalMachinesListBySubscriptionSample.ts][baremetalmachineslistbysubscriptionsample] | Get a list of bare metal machines in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json | -| [bareMetalMachinesPowerOffSample.ts][baremetalmachinespoweroffsample] | Power off the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json | -| [bareMetalMachinesReimageSample.ts][baremetalmachinesreimagesample] | Reimage the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json | -| [bareMetalMachinesReplaceSample.ts][baremetalmachinesreplacesample] | Replace the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json | -| [bareMetalMachinesRestartSample.ts][baremetalmachinesrestartsample] | Restart the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json | -| [bareMetalMachinesRunCommandSample.ts][baremetalmachinesruncommandsample] | Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json | -| [bareMetalMachinesRunDataExtractsSample.ts][baremetalmachinesrundataextractssample] | Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json | -| [bareMetalMachinesRunReadCommandsSample.ts][baremetalmachinesrunreadcommandssample] | Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json | -| [bareMetalMachinesStartSample.ts][baremetalmachinesstartsample] | Start the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json | -| [bareMetalMachinesUncordonSample.ts][baremetalmachinesuncordonsample] | Uncordon the provided bare metal machine's Kubernetes node. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json | -| [bareMetalMachinesUpdateSample.ts][baremetalmachinesupdatesample] | Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json | -| [bmcKeySetsCreateOrUpdateSample.ts][bmckeysetscreateorupdatesample] | Create a new baseboard management controller key set or update the existing one for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json | -| [bmcKeySetsDeleteSample.ts][bmckeysetsdeletesample] | Delete the baseboard management controller key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json | -| [bmcKeySetsGetSample.ts][bmckeysetsgetsample] | Get baseboard management controller key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json | -| [bmcKeySetsListByClusterSample.ts][bmckeysetslistbyclustersample] | Get a list of baseboard management controller key sets for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json | -| [bmcKeySetsUpdateSample.ts][bmckeysetsupdatesample] | Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json | -| [cloudServicesNetworksCreateOrUpdateSample.ts][cloudservicesnetworkscreateorupdatesample] | Create a new cloud services network or update the properties of the existing cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json | -| [cloudServicesNetworksDeleteSample.ts][cloudservicesnetworksdeletesample] | Delete the provided cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json | -| [cloudServicesNetworksGetSample.ts][cloudservicesnetworksgetsample] | Get properties of the provided cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json | -| [cloudServicesNetworksListByResourceGroupSample.ts][cloudservicesnetworkslistbyresourcegroupsample] | Get a list of cloud services networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json | -| [cloudServicesNetworksListBySubscriptionSample.ts][cloudservicesnetworkslistbysubscriptionsample] | Get a list of cloud services networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json | -| [cloudServicesNetworksUpdateSample.ts][cloudservicesnetworksupdatesample] | Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json | -| [clusterManagersCreateOrUpdateSample.ts][clustermanagerscreateorupdatesample] | Create a new cluster manager or update properties of the cluster manager if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json | -| [clusterManagersDeleteSample.ts][clustermanagersdeletesample] | Delete the provided cluster manager. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json | -| [clusterManagersGetSample.ts][clustermanagersgetsample] | Get the properties of the provided cluster manager. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json | -| [clusterManagersListByResourceGroupSample.ts][clustermanagerslistbyresourcegroupsample] | Get a list of cluster managers in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json | -| [clusterManagersListBySubscriptionSample.ts][clustermanagerslistbysubscriptionsample] | Get a list of cluster managers in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json | -| [clusterManagersUpdateSample.ts][clustermanagersupdatesample] | Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json | -| [clustersCreateOrUpdateSample.ts][clusterscreateorupdatesample] | Create a new cluster or update the properties of the cluster if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json | -| [clustersDeleteSample.ts][clustersdeletesample] | Delete the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json | -| [clustersDeploySample.ts][clustersdeploysample] | Deploy the cluster to the provided rack. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json | -| [clustersGetSample.ts][clustersgetsample] | Get properties of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json | -| [clustersListByResourceGroupSample.ts][clusterslistbyresourcegroupsample] | Get a list of clusters in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json | -| [clustersListBySubscriptionSample.ts][clusterslistbysubscriptionsample] | Get a list of clusters in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json | -| [clustersUpdateSample.ts][clustersupdatesample] | Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json | -| [clustersUpdateVersionSample.ts][clustersupdateversionsample] | Update the version of the provided cluster to one of the available supported versions. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json | -| [consolesCreateOrUpdateSample.ts][consolescreateorupdatesample] | Create a new virtual machine console or update the properties of the existing virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json | -| [consolesDeleteSample.ts][consolesdeletesample] | Delete the provided virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json | -| [consolesGetSample.ts][consolesgetsample] | Get properties of the provided virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json | -| [consolesListByVirtualMachineSample.ts][consoleslistbyvirtualmachinesample] | Get a list of consoles for the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json | -| [consolesUpdateSample.ts][consolesupdatesample] | Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json | -| [kubernetesClustersCreateOrUpdateSample.ts][kubernetesclusterscreateorupdatesample] | Create a new Kubernetes cluster or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json | -| [kubernetesClustersDeleteSample.ts][kubernetesclustersdeletesample] | Delete the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json | -| [kubernetesClustersGetSample.ts][kubernetesclustersgetsample] | Get properties of the provided the Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json | -| [kubernetesClustersListByResourceGroupSample.ts][kubernetesclusterslistbyresourcegroupsample] | Get a list of Kubernetes clusters in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json | -| [kubernetesClustersListBySubscriptionSample.ts][kubernetesclusterslistbysubscriptionsample] | Get a list of Kubernetes clusters in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json | -| [kubernetesClustersRestartNodeSample.ts][kubernetesclustersrestartnodesample] | Restart a targeted node of a Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json | -| [kubernetesClustersUpdateSample.ts][kubernetesclustersupdatesample] | Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json | -| [l2NetworksCreateOrUpdateSample.ts][l2networkscreateorupdatesample] | Create a new layer 2 (L2) network or update the properties of the existing network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json | -| [l2NetworksDeleteSample.ts][l2networksdeletesample] | Delete the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json | -| [l2NetworksGetSample.ts][l2networksgetsample] | Get properties of the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json | -| [l2NetworksListByResourceGroupSample.ts][l2networkslistbyresourcegroupsample] | Get a list of layer 2 (L2) networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json | -| [l2NetworksListBySubscriptionSample.ts][l2networkslistbysubscriptionsample] | Get a list of layer 2 (L2) networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json | -| [l2NetworksUpdateSample.ts][l2networksupdatesample] | Update tags associated with the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json | -| [l3NetworksCreateOrUpdateSample.ts][l3networkscreateorupdatesample] | Create a new layer 3 (L3) network or update the properties of the existing network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json | -| [l3NetworksDeleteSample.ts][l3networksdeletesample] | Delete the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json | -| [l3NetworksGetSample.ts][l3networksgetsample] | Get properties of the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json | -| [l3NetworksListByResourceGroupSample.ts][l3networkslistbyresourcegroupsample] | Get a list of layer 3 (L3) networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json | -| [l3NetworksListBySubscriptionSample.ts][l3networkslistbysubscriptionsample] | Get a list of layer 3 (L3) networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json | -| [l3NetworksUpdateSample.ts][l3networksupdatesample] | Update tags associated with the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json | -| [metricsConfigurationsCreateOrUpdateSample.ts][metricsconfigurationscreateorupdatesample] | Create new or update the existing metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json | -| [metricsConfigurationsDeleteSample.ts][metricsconfigurationsdeletesample] | Delete the metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json | -| [metricsConfigurationsGetSample.ts][metricsconfigurationsgetsample] | Get metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json | -| [metricsConfigurationsListByClusterSample.ts][metricsconfigurationslistbyclustersample] | Get a list of metrics configurations for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json | -| [metricsConfigurationsUpdateSample.ts][metricsconfigurationsupdatesample] | Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json | -| [operationsListSample.ts][operationslistsample] | Get a list of all available resource provider operations. It contains a URL link to get the next set of results. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json | -| [rackSkusGetSample.ts][rackskusgetsample] | Get the properties of the provided rack SKU. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json | -| [rackSkusListBySubscriptionSample.ts][rackskuslistbysubscriptionsample] | Get a list of rack SKUs in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json | -| [racksCreateOrUpdateSample.ts][rackscreateorupdatesample] | Create a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json | -| [racksDeleteSample.ts][racksdeletesample] | Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json | -| [racksGetSample.ts][racksgetsample] | Get properties of the provided rack. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json | -| [racksListByResourceGroupSample.ts][rackslistbyresourcegroupsample] | Get a list of racks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json | -| [racksListBySubscriptionSample.ts][rackslistbysubscriptionsample] | Get a list of racks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json | -| [racksUpdateSample.ts][racksupdatesample] | Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json | -| [storageAppliancesCreateOrUpdateSample.ts][storageappliancescreateorupdatesample] | Create a new storage appliance or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json | -| [storageAppliancesDeleteSample.ts][storageappliancesdeletesample] | Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json | -| [storageAppliancesDisableRemoteVendorManagementSample.ts][storageappliancesdisableremotevendormanagementsample] | Disable remote vendor management of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json | -| [storageAppliancesEnableRemoteVendorManagementSample.ts][storageappliancesenableremotevendormanagementsample] | Enable remote vendor management of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json | -| [storageAppliancesGetSample.ts][storageappliancesgetsample] | Get properties of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json | -| [storageAppliancesListByResourceGroupSample.ts][storageapplianceslistbyresourcegroupsample] | Get a list of storage appliances in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json | -| [storageAppliancesListBySubscriptionSample.ts][storageapplianceslistbysubscriptionsample] | Get a list of storage appliances in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json | -| [storageAppliancesUpdateSample.ts][storageappliancesupdatesample] | Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json | -| [trunkedNetworksCreateOrUpdateSample.ts][trunkednetworkscreateorupdatesample] | Create a new trunked network or update the properties of the existing trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json | -| [trunkedNetworksDeleteSample.ts][trunkednetworksdeletesample] | Delete the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json | -| [trunkedNetworksGetSample.ts][trunkednetworksgetsample] | Get properties of the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json | -| [trunkedNetworksListByResourceGroupSample.ts][trunkednetworkslistbyresourcegroupsample] | Get a list of trunked networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json | -| [trunkedNetworksListBySubscriptionSample.ts][trunkednetworkslistbysubscriptionsample] | Get a list of trunked networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json | -| [trunkedNetworksUpdateSample.ts][trunkednetworksupdatesample] | Update tags associated with the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json | -| [virtualMachinesCreateOrUpdateSample.ts][virtualmachinescreateorupdatesample] | Create a new virtual machine or update the properties of the existing virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json | -| [virtualMachinesDeleteSample.ts][virtualmachinesdeletesample] | Delete the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json | -| [virtualMachinesGetSample.ts][virtualmachinesgetsample] | Get properties of the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json | -| [virtualMachinesListByResourceGroupSample.ts][virtualmachineslistbyresourcegroupsample] | Get a list of virtual machines in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json | -| [virtualMachinesListBySubscriptionSample.ts][virtualmachineslistbysubscriptionsample] | Get a list of virtual machines in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json | -| [virtualMachinesPowerOffSample.ts][virtualmachinespoweroffsample] | Power off the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json | -| [virtualMachinesReimageSample.ts][virtualmachinesreimagesample] | Reimage the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json | -| [virtualMachinesRestartSample.ts][virtualmachinesrestartsample] | Restart the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json | -| [virtualMachinesStartSample.ts][virtualmachinesstartsample] | Start the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json | -| [virtualMachinesUpdateSample.ts][virtualmachinesupdatesample] | Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json | -| [volumesCreateOrUpdateSample.ts][volumescreateorupdatesample] | Create a new volume or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json | -| [volumesDeleteSample.ts][volumesdeletesample] | Delete the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json | -| [volumesGetSample.ts][volumesgetsample] | Get properties of the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json | -| [volumesListByResourceGroupSample.ts][volumeslistbyresourcegroupsample] | Get a list of volumes in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json | -| [volumesListBySubscriptionSample.ts][volumeslistbysubscriptionsample] | Get a list of volumes in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json | -| [volumesUpdateSample.ts][volumesupdatesample] | Update tags associated with the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/agentPoolsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env NETWORKCLOUD_SUBSCRIPTION_ID="" NETWORKCLOUD_RESOURCE_GROUP="" node dist/agentPoolsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[agentpoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsCreateOrUpdateSample.ts -[agentpoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsDeleteSample.ts -[agentpoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsGetSample.ts -[agentpoolslistbykubernetesclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsListByKubernetesClusterSample.ts -[agentpoolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsUpdateSample.ts -[baremetalmachinekeysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts -[baremetalmachinekeysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsDeleteSample.ts -[baremetalmachinekeysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsGetSample.ts -[baremetalmachinekeysetslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts -[baremetalmachinekeysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsUpdateSample.ts -[baremetalmachinescordonsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCordonSample.ts -[baremetalmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts -[baremetalmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesDeleteSample.ts -[baremetalmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesGetSample.ts -[baremetalmachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListByResourceGroupSample.ts -[baremetalmachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListBySubscriptionSample.ts -[baremetalmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesPowerOffSample.ts -[baremetalmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReimageSample.ts -[baremetalmachinesreplacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReplaceSample.ts -[baremetalmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRestartSample.ts -[baremetalmachinesruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunCommandSample.ts -[baremetalmachinesrundataextractssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunDataExtractsSample.ts -[baremetalmachinesrunreadcommandssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunReadCommandsSample.ts -[baremetalmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesStartSample.ts -[baremetalmachinesuncordonsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUncordonSample.ts -[baremetalmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUpdateSample.ts -[bmckeysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsCreateOrUpdateSample.ts -[bmckeysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsDeleteSample.ts -[bmckeysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsGetSample.ts -[bmckeysetslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsListByClusterSample.ts -[bmckeysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsUpdateSample.ts -[cloudservicesnetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts -[cloudservicesnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksDeleteSample.ts -[cloudservicesnetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksGetSample.ts -[cloudservicesnetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts -[cloudservicesnetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts -[cloudservicesnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksUpdateSample.ts -[clustermanagerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersCreateOrUpdateSample.ts -[clustermanagersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersDeleteSample.ts -[clustermanagersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersGetSample.ts -[clustermanagerslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListByResourceGroupSample.ts -[clustermanagerslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListBySubscriptionSample.ts -[clustermanagersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersUpdateSample.ts -[clusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersCreateOrUpdateSample.ts -[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeleteSample.ts -[clustersdeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeploySample.ts -[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersGetSample.ts -[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListByResourceGroupSample.ts -[clusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListBySubscriptionSample.ts -[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateSample.ts -[clustersupdateversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateVersionSample.ts -[consolescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesCreateOrUpdateSample.ts -[consolesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesDeleteSample.ts -[consolesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesGetSample.ts -[consoleslistbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesListByVirtualMachineSample.ts -[consolesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesUpdateSample.ts -[kubernetesclusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersCreateOrUpdateSample.ts -[kubernetesclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersDeleteSample.ts -[kubernetesclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersGetSample.ts -[kubernetesclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListByResourceGroupSample.ts -[kubernetesclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListBySubscriptionSample.ts -[kubernetesclustersrestartnodesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersRestartNodeSample.ts -[kubernetesclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersUpdateSample.ts -[l2networkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksCreateOrUpdateSample.ts -[l2networksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksDeleteSample.ts -[l2networksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksGetSample.ts -[l2networkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListByResourceGroupSample.ts -[l2networkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListBySubscriptionSample.ts -[l2networksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksUpdateSample.ts -[l3networkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksCreateOrUpdateSample.ts -[l3networksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksDeleteSample.ts -[l3networksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksGetSample.ts -[l3networkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListByResourceGroupSample.ts -[l3networkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListBySubscriptionSample.ts -[l3networksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksUpdateSample.ts -[metricsconfigurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts -[metricsconfigurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsDeleteSample.ts -[metricsconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsGetSample.ts -[metricsconfigurationslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsListByClusterSample.ts -[metricsconfigurationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsUpdateSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/operationsListSample.ts -[rackskusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusGetSample.ts -[rackskuslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusListBySubscriptionSample.ts -[rackscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksCreateOrUpdateSample.ts -[racksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksDeleteSample.ts -[racksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksGetSample.ts -[rackslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListByResourceGroupSample.ts -[rackslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListBySubscriptionSample.ts -[racksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksUpdateSample.ts -[storageappliancescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesCreateOrUpdateSample.ts -[storageappliancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDeleteSample.ts -[storageappliancesdisableremotevendormanagementsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts -[storageappliancesenableremotevendormanagementsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts -[storageappliancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesGetSample.ts -[storageapplianceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListByResourceGroupSample.ts -[storageapplianceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListBySubscriptionSample.ts -[storageappliancesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesUpdateSample.ts -[trunkednetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksCreateOrUpdateSample.ts -[trunkednetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksDeleteSample.ts -[trunkednetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksGetSample.ts -[trunkednetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListByResourceGroupSample.ts -[trunkednetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListBySubscriptionSample.ts -[trunkednetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksUpdateSample.ts -[virtualmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesCreateOrUpdateSample.ts -[virtualmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesDeleteSample.ts -[virtualmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesGetSample.ts -[virtualmachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListByResourceGroupSample.ts -[virtualmachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListBySubscriptionSample.ts -[virtualmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesPowerOffSample.ts -[virtualmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesReimageSample.ts -[virtualmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesRestartSample.ts -[virtualmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesStartSample.ts -[virtualmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesUpdateSample.ts -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesCreateOrUpdateSample.ts -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesDeleteSample.ts -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesGetSample.ts -[volumeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListByResourceGroupSample.ts -[volumeslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListBySubscriptionSample.ts -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesUpdateSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-networkcloud?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/package.json b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/package.json deleted file mode 100644 index 746817586aff..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-networkcloud-ts", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/networkcloud/arm-networkcloud" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud", - "dependencies": { - "@azure/arm-networkcloud": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.6.2", - "rimraf": "latest" - } -} diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/sample.env b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsUpdateSample.ts deleted file mode 100644 index e5d05f5dcb2e..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsUpdateSample.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BareMetalMachineKeySetPatchParameters, - BareMetalMachineKeySetsUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * - * @summary Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json - */ -async function patchBareMetalMachineKeySetOfCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; - const bareMetalMachineKeySetUpdateParameters: BareMetalMachineKeySetPatchParameters = { - expiration: new Date("2022-12-31T23:59:59.008Z"), - jumpHostsAllowed: ["192.0.2.1", "192.0.2.5"], - tags: { key1: "myvalue1", key2: "myvalue2" }, - userList: [ - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userABC", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - }, - { - description: - "Needs access for troubleshooting as a part of the support team", - azureUserName: "userXYZ", - sshPublicKey: { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] - }; - const options: BareMetalMachineKeySetsUpdateOptionalParams = { - bareMetalMachineKeySetUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.beginUpdateAndWait( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName, - options - ); - console.log(result); -} - -async function main() { - patchBareMetalMachineKeySetOfCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersCreateOrUpdateSample.ts deleted file mode 100644 index d7c9fe357c13..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersCreateOrUpdateSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ClusterManager, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new cluster manager or update properties of the cluster manager if it exists. - * - * @summary Create a new cluster manager or update properties of the cluster manager if it exists. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json - */ -async function createOrUpdateClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const clusterManagerParameters: ClusterManager = { - analyticsWorkspaceId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", - fabricControllerId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US" - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterManagerName, - clusterManagerParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersUpdateSample.ts deleted file mode 100644 index 216b55d721d7..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersUpdateSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ClusterManagerPatchParameters, - ClusterManagersUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. - * - * @summary Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json - */ -async function patchClusterManager() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterManagerName = "clusterManagerName"; - const clusterManagerUpdateParameters: ClusterManagerPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: ClusterManagersUpdateOptionalParams = { - clusterManagerUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusterManagers.update( - resourceGroupName, - clusterManagerName, - options - ); - console.log(result); -} - -async function main() { - patchClusterManager(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersCreateOrUpdateSample.ts deleted file mode 100644 index d20dae405592..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersCreateOrUpdateSample.ts +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Cluster, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new cluster or update the properties of the cluster if it exists. - * - * @summary Create a new cluster or update the properties of the cluster if it exists. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json - */ -async function createOrUpdateCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterParameters: Cluster = { - aggregatorOrSingleRackDefinition: { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX" - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY" - } - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "AA1234", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName" - } - ] - }, - analyticsWorkspaceId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", - clusterLocation: "Foo Street, 3rd Floor, row 9", - clusterServicePrincipal: { - applicationId: "12345678-1234-1234-1234-123456789012", - password: "{password}", - principalId: "00000008-0004-0004-0004-000000000012", - tenantId: "80000000-4000-4000-4000-120000000000" - }, - clusterType: "SingleRack", - clusterVersion: "1.0.0", - computeDeploymentThreshold: { - type: "PercentSuccess", - grouping: "PerCluster", - value: 90 - }, - computeRackDefinitions: [ - { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX" - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY" - } - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "AA1234", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName" - } - ] - } - ], - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US" - }, - networkFabricId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - clusterParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateSample.ts deleted file mode 100644 index d1af8f7c6383..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateSample.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ClusterPatchParameters, - ClustersUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json - */ -async function patchClusterAggregatorOrSingleRackDefinition() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateParameters: ClusterPatchParameters = { - aggregatorOrSingleRackDefinition: { - bareMetalMachineConfigurationData: [ - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:FF", - bootMacAddress: "00:BB:CC:DD:EE:FF", - machineDetails: "extraDetails", - machineName: "bmmName1", - rackSlot: 1, - serialNumber: "BM1219XXX" - }, - { - bmcCredentials: { password: "{password}", username: "username" }, - bmcMacAddress: "AA:BB:CC:DD:EE:00", - bootMacAddress: "00:BB:CC:DD:EE:00", - machineDetails: "extraDetails", - machineName: "bmmName2", - rackSlot: 2, - serialNumber: "BM1219YYY" - } - ], - networkRackId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", - rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", - rackSerialNumber: "newSerialNumber", - rackSkuId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", - storageApplianceConfigurationData: [ - { - adminCredentials: { password: "{password}", username: "username" }, - rackSlot: 1, - serialNumber: "BM1219XXX", - storageApplianceName: "vmName" - } - ] - }, - computeDeploymentThreshold: { - type: "PercentSuccess", - grouping: "PerCluster", - value: 90 - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateAndWait( - resourceGroupName, - clusterName, - options - ); - console.log(result); -} - -/** - * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_Location.json - */ -async function patchClusterLocation() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const clusterName = "clusterName"; - const clusterUpdateParameters: ClusterPatchParameters = { - clusterLocation: "Foo Street, 3rd Floor, row 9", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.clusters.beginUpdateAndWait( - resourceGroupName, - clusterName, - options - ); - console.log(result); -} - -async function main() { - patchClusterAggregatorOrSingleRackDefinition(); - patchClusterLocation(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersCreateOrUpdateSample.ts deleted file mode 100644 index 8bd0d5763c56..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersCreateOrUpdateSample.ts +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { KubernetesCluster, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new Kubernetes cluster or update the properties of the existing one. - * - * @summary Create a new Kubernetes cluster or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json - */ -async function createOrUpdateKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterParameters: KubernetesCluster = { - aadConfiguration: { - adminGroupObjectIds: ["ffffffff-ffff-ffff-ffff-ffffffffffff"] - }, - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] - }, - controlPlaneNodeConfiguration: { - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] - }, - availabilityZones: ["1", "2", "3"], - count: 3, - vmSkuName: "NC_G4_v1" - }, - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - initialAgentPoolConfigurations: [ - { - name: "SystemPool-1", - administratorConfiguration: { - adminUsername: "azure", - sshPublicKeys: [ - { - keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] - }, - agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK" - } - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV" - } - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN" - } - ] - }, - availabilityZones: ["1", "2", "3"], - count: 3, - labels: [{ key: "kubernetes.label", value: "true" }], - mode: "System", - taints: [{ key: "kubernetes.taint", value: "true" }], - upgradeSettings: { maxSurge: "1" }, - vmSkuName: "NC_M16_v1" - } - ], - kubernetesVersion: "1.24.12-1", - location: "location", - managedResourceGroupConfiguration: { - name: "my-managed-rg", - location: "East US" - }, - networkConfiguration: { - attachedNetworkConfiguration: { - l2Networks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK" - } - ], - l3Networks: [ - { - ipamEnabled: "False", - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV" - } - ], - trunkedNetworks: [ - { - networkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN" - } - ] - }, - bgpServiceLoadBalancerConfiguration: { - bgpAdvertisements: [ - { - advertiseToFabric: "True", - communities: ["64512:100"], - ipAddressPools: ["pool1"], - peers: ["peer1"] - } - ], - bgpPeers: [ - { - name: "peer1", - bfdEnabled: "False", - bgpMultiHop: "False", - holdTime: "P300s", - keepAliveTime: "P300s", - myAsn: 64512, - peerAddress: "203.0.113.254", - peerAsn: 64497, - peerPort: 179 - } - ], - fabricPeeringEnabled: "True", - ipAddressPools: [ - { - name: "pool1", - addresses: ["198.51.102.0/24"], - autoAssign: "True", - onlyUseHostIps: "True" - } - ] - }, - cloudServicesNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", - cniNetworkId: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - dnsServiceIp: "198.51.101.2", - podCidrs: ["198.51.100.0/24"], - serviceCidrs: ["198.51.101.0/24"] - }, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginCreateOrUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - kubernetesClusterParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersUpdateSample.ts deleted file mode 100644 index d1f741a4bd67..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersUpdateSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - KubernetesClusterPatchParameters, - KubernetesClustersUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. - * - * @summary Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json - */ -async function patchKubernetesCluster() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterUpdateParameters: KubernetesClusterPatchParameters = { - controlPlaneNodeConfiguration: { count: 3 }, - kubernetesVersion: "1.24.12", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: KubernetesClustersUpdateOptionalParams = { - kubernetesClusterUpdateParameters - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.kubernetesClusters.beginUpdateAndWait( - resourceGroupName, - kubernetesClusterName, - options - ); - console.log(result); -} - -async function main() { - patchKubernetesCluster(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/operationsListSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/operationsListSample.ts deleted file mode 100644 index 55e5ced2ecbc..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all available resource provider operations. It contains a URL link to get the next set of results. - * - * @summary Get a list of all available resource provider operations. It contains a URL link to get the next set of results. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json - */ -async function listResourceProviderOperations() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listResourceProviderOperations(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesCreateOrUpdateSample.ts deleted file mode 100644 index ef0e7890c6d3..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesCreateOrUpdateSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Volume, NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new volume or update the properties of the existing one. - * - * @summary Create a new volume or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json - */ -async function createOrUpdateVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const volumeParameters: Volume = { - extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" - }, - location: "location", - sizeMiB: 10000, - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.beginCreateOrUpdateAndWait( - resourceGroupName, - volumeName, - volumeParameters - ); - console.log(result); -} - -async function main() { - createOrUpdateVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesDeleteSample.ts deleted file mode 100644 index 4b04e9295623..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the provided volume. - * - * @summary Delete the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json - */ -async function deleteVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.beginDeleteAndWait( - resourceGroupName, - volumeName - ); - console.log(result); -} - -async function main() { - deleteVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesGetSample.ts deleted file mode 100644 index 8853154ecebd..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NetworkCloud } from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get properties of the provided volume. - * - * @summary Get properties of the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json - */ -async function getVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.get(resourceGroupName, volumeName); - console.log(result); -} - -async function main() { - getVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesUpdateSample.ts deleted file mode 100644 index b35b7c0bcf70..000000000000 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesUpdateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - VolumePatchParameters, - VolumesUpdateOptionalParams, - NetworkCloud -} from "@azure/arm-networkcloud"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update tags associated with the provided volume. - * - * @summary Update tags associated with the provided volume. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.json - */ -async function patchVolume() { - const subscriptionId = - process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || - "123e4567-e89b-12d3-a456-426655440000"; - const resourceGroupName = - process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; - const volumeName = "volumeName"; - const volumeUpdateParameters: VolumePatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } - }; - const options: VolumesUpdateOptionalParams = { volumeUpdateParameters }; - const credential = new DefaultAzureCredential(); - const client = new NetworkCloud(credential, subscriptionId); - const result = await client.volumes.update( - resourceGroupName, - volumeName, - options - ); - console.log(result); -} - -async function main() { - patchVolume(); -} - -main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/README.md b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/README.md new file mode 100644 index 000000000000..4e56112a915b --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/README.md @@ -0,0 +1,300 @@ +# client library samples for JavaScript (Beta) + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [agentPoolsCreateOrUpdateSample.js][agentpoolscreateorupdatesample] | Create a new Kubernetes cluster agent pool or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Create.json | +| [agentPoolsDeleteSample.js][agentpoolsdeletesample] | Delete the provided Kubernetes cluster agent pool. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Delete.json | +| [agentPoolsGetSample.js][agentpoolsgetsample] | Get properties of the provided Kubernetes cluster agent pool. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Get.json | +| [agentPoolsListByKubernetesClusterSample.js][agentpoolslistbykubernetesclustersample] | Get a list of agent pools for the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_ListByKubernetesCluster.json | +| [agentPoolsUpdateSample.js][agentpoolsupdatesample] | Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Patch.json | +| [bareMetalMachineKeySetsCreateOrUpdateSample.js][baremetalmachinekeysetscreateorupdatesample] | Create a new bare metal machine key set or update the existing one for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Create.json | +| [bareMetalMachineKeySetsDeleteSample.js][baremetalmachinekeysetsdeletesample] | Delete the bare metal machine key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Delete.json | +| [bareMetalMachineKeySetsGetSample.js][baremetalmachinekeysetsgetsample] | Get bare metal machine key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Get.json | +| [bareMetalMachineKeySetsListByClusterSample.js][baremetalmachinekeysetslistbyclustersample] | Get a list of bare metal machine key sets for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_ListByCluster.json | +| [bareMetalMachineKeySetsUpdateSample.js][baremetalmachinekeysetsupdatesample] | Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Patch.json | +| [bareMetalMachinesCordonSample.js][baremetalmachinescordonsample] | Cordon the provided bare metal machine's Kubernetes node. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Cordon.json | +| [bareMetalMachinesCreateOrUpdateSample.js][baremetalmachinescreateorupdatesample] | Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Create.json | +| [bareMetalMachinesDeleteSample.js][baremetalmachinesdeletesample] | Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Delete.json | +| [bareMetalMachinesGetSample.js][baremetalmachinesgetsample] | Get properties of the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Get.json | +| [bareMetalMachinesListByResourceGroupSample.js][baremetalmachineslistbyresourcegroupsample] | Get a list of bare metal machines in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_ListByResourceGroup.json | +| [bareMetalMachinesListBySubscriptionSample.js][baremetalmachineslistbysubscriptionsample] | Get a list of bare metal machines in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_ListBySubscription.json | +| [bareMetalMachinesPowerOffSample.js][baremetalmachinespoweroffsample] | Power off the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_PowerOff.json | +| [bareMetalMachinesReimageSample.js][baremetalmachinesreimagesample] | Reimage the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Reimage.json | +| [bareMetalMachinesReplaceSample.js][baremetalmachinesreplacesample] | Replace the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Replace.json | +| [bareMetalMachinesRestartSample.js][baremetalmachinesrestartsample] | Restart the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Restart.json | +| [bareMetalMachinesRunCommandSample.js][baremetalmachinesruncommandsample] | Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunCommand.json | +| [bareMetalMachinesRunDataExtractsSample.js][baremetalmachinesrundataextractssample] | Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunDataExtracts.json | +| [bareMetalMachinesRunReadCommandsSample.js][baremetalmachinesrunreadcommandssample] | Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunReadCommands.json | +| [bareMetalMachinesStartSample.js][baremetalmachinesstartsample] | Start the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Start.json | +| [bareMetalMachinesUncordonSample.js][baremetalmachinesuncordonsample] | Uncordon the provided bare metal machine's Kubernetes node. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Uncordon.json | +| [bareMetalMachinesUpdateSample.js][baremetalmachinesupdatesample] | Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Patch.json | +| [bmcKeySetsCreateOrUpdateSample.js][bmckeysetscreateorupdatesample] | Create a new baseboard management controller key set or update the existing one for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Create.json | +| [bmcKeySetsDeleteSample.js][bmckeysetsdeletesample] | Delete the baseboard management controller key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Delete.json | +| [bmcKeySetsGetSample.js][bmckeysetsgetsample] | Get baseboard management controller key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Get.json | +| [bmcKeySetsListByClusterSample.js][bmckeysetslistbyclustersample] | Get a list of baseboard management controller key sets for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_ListByCluster.json | +| [bmcKeySetsUpdateSample.js][bmckeysetsupdatesample] | Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Patch.json | +| [cloudServicesNetworksCreateOrUpdateSample.js][cloudservicesnetworkscreateorupdatesample] | Create a new cloud services network or update the properties of the existing cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Create.json | +| [cloudServicesNetworksDeleteSample.js][cloudservicesnetworksdeletesample] | Delete the provided cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Delete.json | +| [cloudServicesNetworksGetSample.js][cloudservicesnetworksgetsample] | Get properties of the provided cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Get.json | +| [cloudServicesNetworksListByResourceGroupSample.js][cloudservicesnetworkslistbyresourcegroupsample] | Get a list of cloud services networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_ListByResourceGroup.json | +| [cloudServicesNetworksListBySubscriptionSample.js][cloudservicesnetworkslistbysubscriptionsample] | Get a list of cloud services networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_ListBySubscription.json | +| [cloudServicesNetworksUpdateSample.js][cloudservicesnetworksupdatesample] | Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Patch.json | +| [clusterManagersCreateOrUpdateSample.js][clustermanagerscreateorupdatesample] | Create a new cluster manager or update properties of the cluster manager if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Create.json | +| [clusterManagersDeleteSample.js][clustermanagersdeletesample] | Delete the provided cluster manager. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Delete.json | +| [clusterManagersGetSample.js][clustermanagersgetsample] | Get the properties of the provided cluster manager. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Get.json | +| [clusterManagersListByResourceGroupSample.js][clustermanagerslistbyresourcegroupsample] | Get a list of cluster managers in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_ListByResourceGroup.json | +| [clusterManagersListBySubscriptionSample.js][clustermanagerslistbysubscriptionsample] | Get a list of cluster managers in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_ListBySubscription.json | +| [clusterManagersUpdateSample.js][clustermanagersupdatesample] | Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Patch.json | +| [clustersContinueUpdateVersionSample.js][clusterscontinueupdateversionsample] | Trigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ContinueUpdateVersion.json | +| [clustersCreateOrUpdateSample.js][clusterscreateorupdatesample] | Create a new cluster or update the properties of the cluster if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Create.json | +| [clustersDeleteSample.js][clustersdeletesample] | Delete the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Delete.json | +| [clustersDeploySample.js][clustersdeploysample] | Deploy the cluster using the rack configuration provided during creation. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Deploy.json | +| [clustersGetSample.js][clustersgetsample] | Get properties of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Get.json | +| [clustersListByResourceGroupSample.js][clusterslistbyresourcegroupsample] | Get a list of clusters in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ListByResourceGroup.json | +| [clustersListBySubscriptionSample.js][clusterslistbysubscriptionsample] | Get a list of clusters in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ListBySubscription.json | +| [clustersScanRuntimeSample.js][clustersscanruntimesample] | Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with the cluster configuration. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ScanRuntime.json | +| [clustersUpdateSample.js][clustersupdatesample] | Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json | +| [clustersUpdateVersionSample.js][clustersupdateversionsample] | Update the version of the provided cluster to one of the available supported versions. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_UpdateVersion.json | +| [consolesCreateOrUpdateSample.js][consolescreateorupdatesample] | Create a new virtual machine console or update the properties of the existing virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Create.json | +| [consolesDeleteSample.js][consolesdeletesample] | Delete the provided virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Delete.json | +| [consolesGetSample.js][consolesgetsample] | Get properties of the provided virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Get.json | +| [consolesListByVirtualMachineSample.js][consoleslistbyvirtualmachinesample] | Get a list of consoles for the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_ListByVirtualMachine.json | +| [consolesUpdateSample.js][consolesupdatesample] | Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Patch.json | +| [kubernetesClusterFeaturesCreateOrUpdateSample.js][kubernetesclusterfeaturescreateorupdatesample] | Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Create.json | +| [kubernetesClusterFeaturesDeleteSample.js][kubernetesclusterfeaturesdeletesample] | Delete the provided Kubernetes cluster feature. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Delete.json | +| [kubernetesClusterFeaturesGetSample.js][kubernetesclusterfeaturesgetsample] | Get properties of the provided the Kubernetes cluster feature. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Get.json | +| [kubernetesClusterFeaturesListByKubernetesClusterSample.js][kubernetesclusterfeatureslistbykubernetesclustersample] | Get a list of features for the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_ListByKubernetesCluster.json | +| [kubernetesClusterFeaturesUpdateSample.js][kubernetesclusterfeaturesupdatesample] | Patch properties of the provided Kubernetes cluster feature. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Patch.json | +| [kubernetesClustersCreateOrUpdateSample.js][kubernetesclusterscreateorupdatesample] | Create a new Kubernetes cluster or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Create.json | +| [kubernetesClustersDeleteSample.js][kubernetesclustersdeletesample] | Delete the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Delete.json | +| [kubernetesClustersGetSample.js][kubernetesclustersgetsample] | Get properties of the provided the Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Get.json | +| [kubernetesClustersListByResourceGroupSample.js][kubernetesclusterslistbyresourcegroupsample] | Get a list of Kubernetes clusters in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_ListByResourceGroup.json | +| [kubernetesClustersListBySubscriptionSample.js][kubernetesclusterslistbysubscriptionsample] | Get a list of Kubernetes clusters in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_ListBySubscription.json | +| [kubernetesClustersRestartNodeSample.js][kubernetesclustersrestartnodesample] | Restart a targeted node of a Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_RestartNode.json | +| [kubernetesClustersUpdateSample.js][kubernetesclustersupdatesample] | Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Patch.json | +| [l2NetworksCreateOrUpdateSample.js][l2networkscreateorupdatesample] | Create a new layer 2 (L2) network or update the properties of the existing network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Create.json | +| [l2NetworksDeleteSample.js][l2networksdeletesample] | Delete the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Delete.json | +| [l2NetworksGetSample.js][l2networksgetsample] | Get properties of the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Get.json | +| [l2NetworksListByResourceGroupSample.js][l2networkslistbyresourcegroupsample] | Get a list of layer 2 (L2) networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_ListByResourceGroup.json | +| [l2NetworksListBySubscriptionSample.js][l2networkslistbysubscriptionsample] | Get a list of layer 2 (L2) networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_ListBySubscription.json | +| [l2NetworksUpdateSample.js][l2networksupdatesample] | Update tags associated with the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Patch.json | +| [l3NetworksCreateOrUpdateSample.js][l3networkscreateorupdatesample] | Create a new layer 3 (L3) network or update the properties of the existing network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Create.json | +| [l3NetworksDeleteSample.js][l3networksdeletesample] | Delete the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Delete.json | +| [l3NetworksGetSample.js][l3networksgetsample] | Get properties of the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Get.json | +| [l3NetworksListByResourceGroupSample.js][l3networkslistbyresourcegroupsample] | Get a list of layer 3 (L3) networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_ListByResourceGroup.json | +| [l3NetworksListBySubscriptionSample.js][l3networkslistbysubscriptionsample] | Get a list of layer 3 (L3) networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_ListBySubscription.json | +| [l3NetworksUpdateSample.js][l3networksupdatesample] | Update tags associated with the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Patch.json | +| [metricsConfigurationsCreateOrUpdateSample.js][metricsconfigurationscreateorupdatesample] | Create new or update the existing metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Create.json | +| [metricsConfigurationsDeleteSample.js][metricsconfigurationsdeletesample] | Delete the metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Delete.json | +| [metricsConfigurationsGetSample.js][metricsconfigurationsgetsample] | Get metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Get.json | +| [metricsConfigurationsListByClusterSample.js][metricsconfigurationslistbyclustersample] | Get a list of metrics configurations for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_ListByCluster.json | +| [metricsConfigurationsUpdateSample.js][metricsconfigurationsupdatesample] | Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Patch.json | +| [operationsListSample.js][operationslistsample] | Get a list of all available resource provider operations. It contains a URL link to get the next set of results. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Operations_List.json | +| [rackSkusGetSample.js][rackskusgetsample] | Get the properties of the provided rack SKU. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/RackSkus_Get.json | +| [rackSkusListBySubscriptionSample.js][rackskuslistbysubscriptionsample] | Get a list of rack SKUs in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/RackSkus_ListBySubscription.json | +| [racksCreateOrUpdateSample.js][rackscreateorupdatesample] | Create a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Create.json | +| [racksDeleteSample.js][racksdeletesample] | Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Delete.json | +| [racksGetSample.js][racksgetsample] | Get properties of the provided rack. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Get.json | +| [racksListByResourceGroupSample.js][rackslistbyresourcegroupsample] | Get a list of racks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_ListByResourceGroup.json | +| [racksListBySubscriptionSample.js][rackslistbysubscriptionsample] | Get a list of racks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_ListBySubscription.json | +| [racksUpdateSample.js][racksupdatesample] | Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Patch.json | +| [storageAppliancesCreateOrUpdateSample.js][storageappliancescreateorupdatesample] | Create a new storage appliance or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Create.json | +| [storageAppliancesDeleteSample.js][storageappliancesdeletesample] | Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Delete.json | +| [storageAppliancesDisableRemoteVendorManagementSample.js][storageappliancesdisableremotevendormanagementsample] | Disable remote vendor management of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_DisableRemoteVendorManagement.json | +| [storageAppliancesEnableRemoteVendorManagementSample.js][storageappliancesenableremotevendormanagementsample] | Enable remote vendor management of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_EnableRemoteVendorManagement.json | +| [storageAppliancesGetSample.js][storageappliancesgetsample] | Get properties of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Get.json | +| [storageAppliancesListByResourceGroupSample.js][storageapplianceslistbyresourcegroupsample] | Get a list of storage appliances in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_ListByResourceGroup.json | +| [storageAppliancesListBySubscriptionSample.js][storageapplianceslistbysubscriptionsample] | Get a list of storage appliances in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_ListBySubscription.json | +| [storageAppliancesUpdateSample.js][storageappliancesupdatesample] | Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Patch.json | +| [trunkedNetworksCreateOrUpdateSample.js][trunkednetworkscreateorupdatesample] | Create a new trunked network or update the properties of the existing trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Create.json | +| [trunkedNetworksDeleteSample.js][trunkednetworksdeletesample] | Delete the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Delete.json | +| [trunkedNetworksGetSample.js][trunkednetworksgetsample] | Get properties of the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Get.json | +| [trunkedNetworksListByResourceGroupSample.js][trunkednetworkslistbyresourcegroupsample] | Get a list of trunked networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_ListByResourceGroup.json | +| [trunkedNetworksListBySubscriptionSample.js][trunkednetworkslistbysubscriptionsample] | Get a list of trunked networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_ListBySubscription.json | +| [trunkedNetworksUpdateSample.js][trunkednetworksupdatesample] | Update tags associated with the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Patch.json | +| [virtualMachinesCreateOrUpdateSample.js][virtualmachinescreateorupdatesample] | Create a new virtual machine or update the properties of the existing virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Create.json | +| [virtualMachinesDeleteSample.js][virtualmachinesdeletesample] | Delete the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Delete.json | +| [virtualMachinesGetSample.js][virtualmachinesgetsample] | Get properties of the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Get.json | +| [virtualMachinesListByResourceGroupSample.js][virtualmachineslistbyresourcegroupsample] | Get a list of virtual machines in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_ListByResourceGroup.json | +| [virtualMachinesListBySubscriptionSample.js][virtualmachineslistbysubscriptionsample] | Get a list of virtual machines in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_ListBySubscription.json | +| [virtualMachinesPowerOffSample.js][virtualmachinespoweroffsample] | Power off the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_PowerOff.json | +| [virtualMachinesReimageSample.js][virtualmachinesreimagesample] | Reimage the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Reimage.json | +| [virtualMachinesRestartSample.js][virtualmachinesrestartsample] | Restart the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Restart.json | +| [virtualMachinesStartSample.js][virtualmachinesstartsample] | Start the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Start.json | +| [virtualMachinesUpdateSample.js][virtualmachinesupdatesample] | Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Patch.json | +| [volumesCreateOrUpdateSample.js][volumescreateorupdatesample] | Create a new volume or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Create.json | +| [volumesDeleteSample.js][volumesdeletesample] | Delete the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Delete.json | +| [volumesGetSample.js][volumesgetsample] | Get properties of the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Get.json | +| [volumesListByResourceGroupSample.js][volumeslistbyresourcegroupsample] | Get a list of volumes in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_ListByResourceGroup.json | +| [volumesListBySubscriptionSample.js][volumeslistbysubscriptionsample] | Get a list of volumes in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_ListBySubscription.json | +| [volumesUpdateSample.js][volumesupdatesample] | Update tags associated with the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Patch.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node agentPoolsCreateOrUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env NETWORKCLOUD_SUBSCRIPTION_ID="" NETWORKCLOUD_RESOURCE_GROUP="" node agentPoolsCreateOrUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[agentpoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsCreateOrUpdateSample.js +[agentpoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsDeleteSample.js +[agentpoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsGetSample.js +[agentpoolslistbykubernetesclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsListByKubernetesClusterSample.js +[agentpoolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsUpdateSample.js +[baremetalmachinekeysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js +[baremetalmachinekeysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsDeleteSample.js +[baremetalmachinekeysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsGetSample.js +[baremetalmachinekeysetslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsListByClusterSample.js +[baremetalmachinekeysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsUpdateSample.js +[baremetalmachinescordonsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesCordonSample.js +[baremetalmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesCreateOrUpdateSample.js +[baremetalmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesDeleteSample.js +[baremetalmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesGetSample.js +[baremetalmachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesListByResourceGroupSample.js +[baremetalmachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesListBySubscriptionSample.js +[baremetalmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesPowerOffSample.js +[baremetalmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesReimageSample.js +[baremetalmachinesreplacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesReplaceSample.js +[baremetalmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRestartSample.js +[baremetalmachinesruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRunCommandSample.js +[baremetalmachinesrundataextractssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRunDataExtractsSample.js +[baremetalmachinesrunreadcommandssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRunReadCommandsSample.js +[baremetalmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesStartSample.js +[baremetalmachinesuncordonsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesUncordonSample.js +[baremetalmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesUpdateSample.js +[bmckeysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsCreateOrUpdateSample.js +[bmckeysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsDeleteSample.js +[bmckeysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsGetSample.js +[bmckeysetslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsListByClusterSample.js +[bmckeysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsUpdateSample.js +[cloudservicesnetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksCreateOrUpdateSample.js +[cloudservicesnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksDeleteSample.js +[cloudservicesnetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksGetSample.js +[cloudservicesnetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksListByResourceGroupSample.js +[cloudservicesnetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksListBySubscriptionSample.js +[cloudservicesnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksUpdateSample.js +[clustermanagerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersCreateOrUpdateSample.js +[clustermanagersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersDeleteSample.js +[clustermanagersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersGetSample.js +[clustermanagerslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersListByResourceGroupSample.js +[clustermanagerslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersListBySubscriptionSample.js +[clustermanagersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersUpdateSample.js +[clusterscontinueupdateversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersContinueUpdateVersionSample.js +[clusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersCreateOrUpdateSample.js +[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersDeleteSample.js +[clustersdeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersDeploySample.js +[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersGetSample.js +[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersListByResourceGroupSample.js +[clusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersListBySubscriptionSample.js +[clustersscanruntimesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersScanRuntimeSample.js +[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersUpdateSample.js +[clustersupdateversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersUpdateVersionSample.js +[consolescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesCreateOrUpdateSample.js +[consolesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesDeleteSample.js +[consolesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesGetSample.js +[consoleslistbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesListByVirtualMachineSample.js +[consolesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesUpdateSample.js +[kubernetesclusterfeaturescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesCreateOrUpdateSample.js +[kubernetesclusterfeaturesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesDeleteSample.js +[kubernetesclusterfeaturesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesGetSample.js +[kubernetesclusterfeatureslistbykubernetesclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesListByKubernetesClusterSample.js +[kubernetesclusterfeaturesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesUpdateSample.js +[kubernetesclusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersCreateOrUpdateSample.js +[kubernetesclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersDeleteSample.js +[kubernetesclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersGetSample.js +[kubernetesclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersListByResourceGroupSample.js +[kubernetesclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersListBySubscriptionSample.js +[kubernetesclustersrestartnodesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersRestartNodeSample.js +[kubernetesclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersUpdateSample.js +[l2networkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksCreateOrUpdateSample.js +[l2networksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksDeleteSample.js +[l2networksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksGetSample.js +[l2networkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksListByResourceGroupSample.js +[l2networkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksListBySubscriptionSample.js +[l2networksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksUpdateSample.js +[l3networkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksCreateOrUpdateSample.js +[l3networksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksDeleteSample.js +[l3networksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksGetSample.js +[l3networkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksListByResourceGroupSample.js +[l3networkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksListBySubscriptionSample.js +[l3networksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksUpdateSample.js +[metricsconfigurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsCreateOrUpdateSample.js +[metricsconfigurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsDeleteSample.js +[metricsconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsGetSample.js +[metricsconfigurationslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsListByClusterSample.js +[metricsconfigurationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsUpdateSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/operationsListSample.js +[rackskusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/rackSkusGetSample.js +[rackskuslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/rackSkusListBySubscriptionSample.js +[rackscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksCreateOrUpdateSample.js +[racksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksDeleteSample.js +[racksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksGetSample.js +[rackslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksListByResourceGroupSample.js +[rackslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksListBySubscriptionSample.js +[racksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksUpdateSample.js +[storageappliancescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesCreateOrUpdateSample.js +[storageappliancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesDeleteSample.js +[storageappliancesdisableremotevendormanagementsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesDisableRemoteVendorManagementSample.js +[storageappliancesenableremotevendormanagementsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesEnableRemoteVendorManagementSample.js +[storageappliancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesGetSample.js +[storageapplianceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesListByResourceGroupSample.js +[storageapplianceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesListBySubscriptionSample.js +[storageappliancesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesUpdateSample.js +[trunkednetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksCreateOrUpdateSample.js +[trunkednetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksDeleteSample.js +[trunkednetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksGetSample.js +[trunkednetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksListByResourceGroupSample.js +[trunkednetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksListBySubscriptionSample.js +[trunkednetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksUpdateSample.js +[virtualmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesCreateOrUpdateSample.js +[virtualmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesDeleteSample.js +[virtualmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesGetSample.js +[virtualmachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesListByResourceGroupSample.js +[virtualmachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesListBySubscriptionSample.js +[virtualmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesPowerOffSample.js +[virtualmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesReimageSample.js +[virtualmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesRestartSample.js +[virtualmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesStartSample.js +[virtualmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesUpdateSample.js +[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesCreateOrUpdateSample.js +[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesDeleteSample.js +[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesGetSample.js +[volumeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesListByResourceGroupSample.js +[volumeslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesListBySubscriptionSample.js +[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesUpdateSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-networkcloud?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud/README.md diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsCreateOrUpdateSample.js similarity index 96% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsCreateOrUpdateSample.js index e6a43d5af15f..2a31cf7a3bcd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a new Kubernetes cluster agent pool or update the properties of the existing one. * * @summary Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Create.json */ async function createOrUpdateKubernetesClusterAgentPool() { const subscriptionId = @@ -71,7 +71,7 @@ async function createOrUpdateKubernetesClusterAgentPool() { tags: { key1: "myvalue1", key2: "myvalue2" }, taints: [{ key: "kubernetes.taint", value: "true" }], upgradeSettings: { maxSurge: "1" }, - vmSkuName: "NC_M16_v1", + vmSkuName: "NC_XXXX", }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); @@ -79,7 +79,7 @@ async function createOrUpdateKubernetesClusterAgentPool() { resourceGroupName, kubernetesClusterName, agentPoolName, - agentPoolParameters + agentPoolParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsDeleteSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsDeleteSample.js index f4446eee443c..64dba6a6e5a9 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the provided Kubernetes cluster agent pool. * * @summary Delete the provided Kubernetes cluster agent pool. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Delete.json */ async function deleteKubernetesClusterAgentPool() { const subscriptionId = @@ -29,7 +29,7 @@ async function deleteKubernetesClusterAgentPool() { const result = await client.agentPools.beginDeleteAndWait( resourceGroupName, kubernetesClusterName, - agentPoolName + agentPoolName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsGetSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsGetSample.js index 000ef23f19b1..ffd7e74912c0 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get properties of the provided Kubernetes cluster agent pool. * * @summary Get properties of the provided Kubernetes cluster agent pool. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Get.json */ async function getKubernetesClusterAgentPool() { const subscriptionId = @@ -29,7 +29,7 @@ async function getKubernetesClusterAgentPool() { const result = await client.agentPools.get( resourceGroupName, kubernetesClusterName, - agentPoolName + agentPoolName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsListByKubernetesClusterSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsListByKubernetesClusterSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsListByKubernetesClusterSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsListByKubernetesClusterSample.js index 63527ede27e0..58bf7291d274 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsListByKubernetesClusterSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsListByKubernetesClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of agent pools for the provided Kubernetes cluster. * * @summary Get a list of agent pools for the provided Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_ListByKubernetesCluster.json */ async function listAgentPoolsOfTheKubernetesCluster() { const subscriptionId = @@ -28,7 +28,7 @@ async function listAgentPoolsOfTheKubernetesCluster() { const resArray = new Array(); for await (let item of client.agentPools.listByKubernetesCluster( resourceGroupName, - kubernetesClusterName + kubernetesClusterName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsUpdateSample.js similarity index 75% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsUpdateSample.js index 459ec9e36ed4..31b69bdd30ae 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/agentPoolsUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/agentPoolsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. * * @summary Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Patch.json */ async function patchKubernetesClusterAgentPool() { const subscriptionId = @@ -25,9 +25,17 @@ async function patchKubernetesClusterAgentPool() { const kubernetesClusterName = "kubernetesClusterName"; const agentPoolName = "agentPoolName"; const agentPoolUpdateParameters = { + administratorConfiguration: { + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, count: 3, tags: { key1: "myvalue1", key2: "myvalue2" }, - upgradeSettings: { maxSurge: "1" }, + upgradeSettings: { drainTimeout: 1800, maxSurge: "1", maxUnavailable: "0" }, }; const options = { agentPoolUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -36,7 +44,7 @@ async function patchKubernetesClusterAgentPool() { resourceGroupName, kubernetesClusterName, agentPoolName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js index c5b16eef40d7..421d786c9308 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a new bare metal machine key set or update the existing one for the provided cluster. * * @summary Create a new bare metal machine key set or update the existing one for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Create.json */ async function createOrUpdateBareMetalMachineKeySetOfCluster() { const subscriptionId = @@ -44,6 +44,7 @@ async function createOrUpdateBareMetalMachineKeySetOfCluster() { keyData: "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", }, + userPrincipalName: "userABC@contoso.com", }, { description: "Needs access for troubleshooting as a part of the support team", @@ -52,6 +53,7 @@ async function createOrUpdateBareMetalMachineKeySetOfCluster() { keyData: "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", }, + userPrincipalName: "userABC@contoso.com", }, ], }; @@ -61,7 +63,7 @@ async function createOrUpdateBareMetalMachineKeySetOfCluster() { resourceGroupName, clusterName, bareMetalMachineKeySetName, - bareMetalMachineKeySetParameters + bareMetalMachineKeySetParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsDeleteSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsDeleteSample.js index d244b151d1ac..73e9f49332d7 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the bare metal machine key set of the provided cluster. * * @summary Delete the bare metal machine key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Delete.json */ async function deleteBareMetalMachineKeySetOfCluster() { const subscriptionId = @@ -29,7 +29,7 @@ async function deleteBareMetalMachineKeySetOfCluster() { const result = await client.bareMetalMachineKeySets.beginDeleteAndWait( resourceGroupName, clusterName, - bareMetalMachineKeySetName + bareMetalMachineKeySetName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsGetSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsGetSample.js index 27e0a7616fa0..79cd5e6759d5 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get bare metal machine key set of the provided cluster. * * @summary Get bare metal machine key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Get.json */ async function getBareMetalMachineKeySetOfCluster() { const subscriptionId = @@ -29,7 +29,7 @@ async function getBareMetalMachineKeySetOfCluster() { const result = await client.bareMetalMachineKeySets.get( resourceGroupName, clusterName, - bareMetalMachineKeySetName + bareMetalMachineKeySetName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsListByClusterSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsListByClusterSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsListByClusterSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsListByClusterSample.js index bb2a71ec7b4a..eda662a15174 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsListByClusterSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsListByClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of bare metal machine key sets for the provided cluster. * * @summary Get a list of bare metal machine key sets for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_ListByCluster.json */ async function listBareMetalMachineKeySetsOfTheCluster() { const subscriptionId = @@ -28,7 +28,7 @@ async function listBareMetalMachineKeySetsOfTheCluster() { const resArray = new Array(); for await (let item of client.bareMetalMachineKeySets.listByCluster( resourceGroupName, - clusterName + clusterName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsUpdateSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsUpdateSample.js index 19409fa45d26..5839c8c83e70 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachineKeySetsUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachineKeySetsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. * * @summary Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Patch.json */ async function patchBareMetalMachineKeySetOfCluster() { const subscriptionId = @@ -36,6 +36,7 @@ async function patchBareMetalMachineKeySetOfCluster() { keyData: "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", }, + userPrincipalName: "userABC@contoso.com", }, { description: "Needs access for troubleshooting as a part of the support team", @@ -44,6 +45,7 @@ async function patchBareMetalMachineKeySetOfCluster() { keyData: "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", }, + userPrincipalName: "userABC@contoso.com", }, ], }; @@ -56,7 +58,7 @@ async function patchBareMetalMachineKeySetOfCluster() { resourceGroupName, clusterName, bareMetalMachineKeySetName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCordonSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesCordonSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCordonSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesCordonSample.js index 25912f779613..a837a5e95efd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCordonSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesCordonSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Cordon the provided bare metal machine's Kubernetes node. * * @summary Cordon the provided bare metal machine's Kubernetes node. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Cordon.json */ async function cordonBareMetalMachine() { const subscriptionId = @@ -34,7 +34,7 @@ async function cordonBareMetalMachine() { const result = await client.bareMetalMachines.beginCordonAndWait( resourceGroupName, bareMetalMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesCreateOrUpdateSample.js similarity index 95% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesCreateOrUpdateSample.js index a4da994727aa..a3a210f8ded6 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesCreateOrUpdateSample.js @@ -18,7 +18,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Create.json */ async function createOrUpdateBareMetalMachine() { const subscriptionId = @@ -49,7 +49,7 @@ async function createOrUpdateBareMetalMachine() { const result = await client.bareMetalMachines.beginCreateOrUpdateAndWait( resourceGroupName, bareMetalMachineName, - bareMetalMachineParameters + bareMetalMachineParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesDeleteSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesDeleteSample.js index 8c152e787da9..23df4afdebf1 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesDeleteSample.js @@ -18,7 +18,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Delete.json */ async function deleteBareMetalMachine() { const subscriptionId = @@ -29,7 +29,7 @@ async function deleteBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginDeleteAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesGetSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesGetSample.js index 7c3c12fe0ef3..157c0e53da13 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get properties of the provided bare metal machine. * * @summary Get properties of the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Get.json */ async function getBareMetalMachine() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesListByResourceGroupSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListByResourceGroupSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesListByResourceGroupSample.js index 208611115245..b50a5447dc66 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListByResourceGroupSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of bare metal machines in the provided resource group. * * @summary Get a list of bare metal machines in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_ListByResourceGroup.json */ async function listBareMetalMachinesForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesListBySubscriptionSample.js index fc09df9c294a..ea4a45c427a3 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of bare metal machines in the provided subscription. * * @summary Get a list of bare metal machines in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_ListBySubscription.json */ async function listBareMetalMachinesForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesPowerOffSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesPowerOffSample.js similarity index 88% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesPowerOffSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesPowerOffSample.js index 769102d088f2..43cdc0ae6288 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesPowerOffSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesPowerOffSample.js @@ -16,16 +16,14 @@ require("dotenv").config(); * This sample demonstrates how to Power off the provided bare metal machine. * * @summary Power off the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_PowerOff.json */ async function powerOffBareMetalMachine() { const subscriptionId = process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachinePowerOffParameters = { - skipShutdown: "True", - }; + const bareMetalMachinePowerOffParameters = { skipShutdown: "True" }; const options = { bareMetalMachinePowerOffParameters, }; @@ -34,7 +32,7 @@ async function powerOffBareMetalMachine() { const result = await client.bareMetalMachines.beginPowerOffAndWait( resourceGroupName, bareMetalMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReimageSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesReimageSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReimageSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesReimageSample.js index b8d184b318a3..606051ee7fe9 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReimageSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesReimageSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Reimage the provided bare metal machine. * * @summary Reimage the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Reimage.json */ async function reimageBareMetalMachine() { const subscriptionId = @@ -27,7 +27,7 @@ async function reimageBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginReimageAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReplaceSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesReplaceSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReplaceSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesReplaceSample.js index 2e69577185f6..867707148ece 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesReplaceSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesReplaceSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Replace the provided bare metal machine. * * @summary Replace the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Replace.json */ async function replaceBareMetalMachine() { const subscriptionId = @@ -38,7 +38,7 @@ async function replaceBareMetalMachine() { const result = await client.bareMetalMachines.beginReplaceAndWait( resourceGroupName, bareMetalMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRestartSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRestartSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRestartSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRestartSample.js index dec5f2fcd7a1..8536ed5c7905 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRestartSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRestartSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Restart the provided bare metal machine. * * @summary Restart the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Restart.json */ async function restartBareMetalMachine() { const subscriptionId = @@ -27,7 +27,7 @@ async function restartBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginRestartAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunCommandSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRunCommandSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunCommandSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRunCommandSample.js index b7336cb538f4..f44b3ae8b2f6 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunCommandSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRunCommandSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. * * @summary Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunCommand.json */ async function runCommandOnBareMetalMachine() { const subscriptionId = @@ -33,7 +33,7 @@ async function runCommandOnBareMetalMachine() { const result = await client.bareMetalMachines.beginRunCommandAndWait( resourceGroupName, bareMetalMachineName, - bareMetalMachineRunCommandParameters + bareMetalMachineRunCommandParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunDataExtractsSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRunDataExtractsSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunDataExtractsSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRunDataExtractsSample.js index 352baa7a77fa..15c447246f17 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunDataExtractsSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRunDataExtractsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. * * @summary Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunDataExtracts.json */ async function runDataExtractionOnBareMetalMachine() { const subscriptionId = @@ -37,7 +37,7 @@ async function runDataExtractionOnBareMetalMachine() { const result = await client.bareMetalMachines.beginRunDataExtractsAndWait( resourceGroupName, bareMetalMachineName, - bareMetalMachineRunDataExtractsParameters + bareMetalMachineRunDataExtractsParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunReadCommandsSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRunReadCommandsSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunReadCommandsSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRunReadCommandsSample.js index c0f9f5dfef7e..9609a60ded96 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesRunReadCommandsSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesRunReadCommandsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. * * @summary Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunReadCommands.json */ async function runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine() { const subscriptionId = @@ -35,7 +35,7 @@ async function runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine() { const result = await client.bareMetalMachines.beginRunReadCommandsAndWait( resourceGroupName, bareMetalMachineName, - bareMetalMachineRunReadCommandsParameters + bareMetalMachineRunReadCommandsParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesStartSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesStartSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesStartSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesStartSample.js index 638ef8835448..cc92e867f1aa 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesStartSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesStartSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Start the provided bare metal machine. * * @summary Start the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Start.json */ async function startBareMetalMachine() { const subscriptionId = @@ -27,7 +27,7 @@ async function startBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginStartAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUncordonSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesUncordonSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUncordonSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesUncordonSample.js index 2c7d22500add..5da36a8e9133 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUncordonSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesUncordonSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Uncordon the provided bare metal machine's Kubernetes node. * * @summary Uncordon the provided bare metal machine's Kubernetes node. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Uncordon.json */ async function uncordonBareMetalMachine() { const subscriptionId = @@ -27,7 +27,7 @@ async function uncordonBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginUncordonAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesUpdateSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesUpdateSample.js index edb8620b0c3a..e8277ce5d2c4 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bareMetalMachinesUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bareMetalMachinesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. * * @summary Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Patch.json */ async function patchBareMetalMachine() { const subscriptionId = @@ -35,7 +35,7 @@ async function patchBareMetalMachine() { const result = await client.bareMetalMachines.beginUpdateAndWait( resourceGroupName, bareMetalMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsCreateOrUpdateSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsCreateOrUpdateSample.js index f5a125e7e921..d26e9bc6c6eb 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a new baseboard management controller key set or update the existing one for the provided cluster. * * @summary Create a new baseboard management controller key set or update the existing one for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Create.json */ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { const subscriptionId = @@ -42,6 +42,7 @@ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { keyData: "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", }, + userPrincipalName: "userABC@contoso.com", }, { description: "Needs access for troubleshooting as a part of the support team", @@ -50,6 +51,7 @@ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { keyData: "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", }, + userPrincipalName: "userABC@contoso.com", }, ], }; @@ -59,7 +61,7 @@ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { resourceGroupName, clusterName, bmcKeySetName, - bmcKeySetParameters + bmcKeySetParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsDeleteSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsDeleteSample.js index f62f455a5f9c..c1083660407c 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the baseboard management controller key set of the provided cluster. * * @summary Delete the baseboard management controller key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Delete.json */ async function deleteBaseboardManagementControllerKeySetOfCluster() { const subscriptionId = @@ -29,7 +29,7 @@ async function deleteBaseboardManagementControllerKeySetOfCluster() { const result = await client.bmcKeySets.beginDeleteAndWait( resourceGroupName, clusterName, - bmcKeySetName + bmcKeySetName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsGetSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsGetSample.js index b7479668b871..2bbce51bd4e2 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get baseboard management controller key set of the provided cluster. * * @summary Get baseboard management controller key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Get.json */ async function getBaseboardManagementControllerKeySetOfCluster() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsListByClusterSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsListByClusterSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsListByClusterSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsListByClusterSample.js index 7018508e2f1b..102cdc48f9e7 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsListByClusterSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsListByClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of baseboard management controller key sets for the provided cluster. * * @summary Get a list of baseboard management controller key sets for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_ListByCluster.json */ async function listBaseboardManagementControllerKeySetsOfTheCluster() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsUpdateSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsUpdateSample.js index 86781caf4a33..1145a0ed070f 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/bmcKeySetsUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/bmcKeySetsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. * * @summary Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Patch.json */ async function patchBaseboardManagementControllerKeySetOfCluster() { const subscriptionId = @@ -35,6 +35,7 @@ async function patchBaseboardManagementControllerKeySetOfCluster() { keyData: "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", }, + userPrincipalName: "userABC@contoso.com", }, { description: "Needs access for troubleshooting as a part of the support team", @@ -43,6 +44,7 @@ async function patchBaseboardManagementControllerKeySetOfCluster() { keyData: "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", }, + userPrincipalName: "userABC@contoso.com", }, ], }; @@ -53,7 +55,7 @@ async function patchBaseboardManagementControllerKeySetOfCluster() { resourceGroupName, clusterName, bmcKeySetName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksCreateOrUpdateSample.js similarity index 87% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksCreateOrUpdateSample.js index ad80b129e5d6..e27d5a0eeca0 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a new cloud services network or update the properties of the existing cloud services network. * * @summary Create a new cloud services network or update the properties of the existing cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Create.json */ async function createOrUpdateCloudServicesNetwork() { const subscriptionId = @@ -27,12 +27,7 @@ async function createOrUpdateCloudServicesNetwork() { additionalEgressEndpoints: [ { category: "azure-resource-management", - endpoints: [ - { - domainName: "https://storageaccountex.blob.core.windows.net", - port: 443, - }, - ], + endpoints: [{ domainName: "storageaccountex.blob.core.windows.net", port: 443 }], }, ], enableDefaultEgressEndpoints: "False", @@ -48,7 +43,7 @@ async function createOrUpdateCloudServicesNetwork() { const result = await client.cloudServicesNetworks.beginCreateOrUpdateAndWait( resourceGroupName, cloudServicesNetworkName, - cloudServicesNetworkParameters + cloudServicesNetworkParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksDeleteSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksDeleteSample.js index cadce0696738..4243ae8fcf11 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the provided cloud services network. * * @summary Delete the provided cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Delete.json */ async function deleteCloudServicesNetwork() { const subscriptionId = @@ -27,7 +27,7 @@ async function deleteCloudServicesNetwork() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.cloudServicesNetworks.beginDeleteAndWait( resourceGroupName, - cloudServicesNetworkName + cloudServicesNetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksGetSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksGetSample.js index a98b89b4b492..aba327a6f206 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get properties of the provided cloud services network. * * @summary Get properties of the provided cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Get.json */ async function getCloudServicesNetwork() { const subscriptionId = @@ -27,7 +27,7 @@ async function getCloudServicesNetwork() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.cloudServicesNetworks.get( resourceGroupName, - cloudServicesNetworkName + cloudServicesNetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksListByResourceGroupSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListByResourceGroupSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksListByResourceGroupSample.js index 4ff9cd250cd3..d2a39556aae2 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListByResourceGroupSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of cloud services networks in the provided resource group. * * @summary Get a list of cloud services networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_ListByResourceGroup.json */ async function listCloudServicesNetworksForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksListBySubscriptionSample.js index 779ab164ab7d..7c7842ff63ab 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of cloud services networks in the provided subscription. * * @summary Get a list of cloud services networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_ListBySubscription.json */ async function listCloudServicesNetworksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksUpdateSample.js similarity index 88% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksUpdateSample.js index 7fc577a89002..59e8e8544ef9 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/cloudServicesNetworksUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/cloudServicesNetworksUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. * * @summary Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Patch.json */ async function patchCloudServicesNetwork() { const subscriptionId = @@ -27,12 +27,7 @@ async function patchCloudServicesNetwork() { additionalEgressEndpoints: [ { category: "azure-resource-management", - endpoints: [ - { - domainName: "https://storageaccountex.blob.core.windows.net", - port: 443, - }, - ], + endpoints: [{ domainName: "storageaccountex.blob.core.windows.net", port: 443 }], }, ], enableDefaultEgressEndpoints: "False", @@ -46,7 +41,7 @@ async function patchCloudServicesNetwork() { const result = await client.cloudServicesNetworks.beginUpdateAndWait( resourceGroupName, cloudServicesNetworkName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersCreateOrUpdateSample.js new file mode 100644 index 000000000000..84f767d2e4e0 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersCreateOrUpdateSample.js @@ -0,0 +1,94 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create a new cluster manager or update properties of the cluster manager if it exists. + * + * @summary Create a new cluster manager or update properties of the cluster manager if it exists. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Create.json + */ +async function createOrUpdateClusterManager() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterManagerName = "clusterManagerName"; + const clusterManagerParameters = { + analyticsWorkspaceId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", + fabricControllerId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", + identity: { type: "SystemAssigned" }, + location: "location", + managedResourceGroupConfiguration: { + name: "my-managed-rg", + location: "East US", + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusterManagers.beginCreateOrUpdateAndWait( + resourceGroupName, + clusterManagerName, + clusterManagerParameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create a new cluster manager or update properties of the cluster manager if it exists. + * + * @summary Create a new cluster manager or update properties of the cluster manager if it exists. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Create_Uami.json + */ +async function createOrUpdateClusterManagerWithUserAssignedIdentity() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterManagerName = "clusterManagerName"; + const clusterManagerParameters = { + analyticsWorkspaceId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", + fabricControllerId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity1": + {}, + }, + }, + location: "location", + managedResourceGroupConfiguration: { + name: "my-managed-rg", + location: "East US", + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusterManagers.beginCreateOrUpdateAndWait( + resourceGroupName, + clusterManagerName, + clusterManagerParameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateClusterManager(); + createOrUpdateClusterManagerWithUserAssignedIdentity(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersDeleteSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersDeleteSample.js index 023799ff6e56..5e7d17da1228 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the provided cluster manager. * * @summary Delete the provided cluster manager. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Delete.json */ async function deleteClusterManager() { const subscriptionId = @@ -27,7 +27,7 @@ async function deleteClusterManager() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusterManagers.beginDeleteAndWait( resourceGroupName, - clusterManagerName + clusterManagerName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersGetSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersGetSample.js index 93fa9c5b458d..926123189786 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the properties of the provided cluster manager. * * @summary Get the properties of the provided cluster manager. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Get.json */ async function getClusterManager() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersListByResourceGroupSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListByResourceGroupSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersListByResourceGroupSample.js index 3d7f4a7028dc..fbabad0af888 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListByResourceGroupSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of cluster managers in the provided resource group. * * @summary Get a list of cluster managers in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_ListByResourceGroup.json */ async function listClusterManagersForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersListBySubscriptionSample.js index e8c0618c81b7..9c4ccc4a1c6d 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of cluster managers in the provided subscription. * * @summary Get a list of cluster managers in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_ListBySubscription.json */ async function listClusterManagersForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersUpdateSample.js similarity index 75% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersUpdateSample.js index 9a590b3658df..3241e71682a6 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clusterManagersUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clusterManagersUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. * * @summary Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Patch.json */ async function patchClusterManager() { const subscriptionId = @@ -24,6 +24,15 @@ async function patchClusterManager() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const clusterManagerName = "clusterManagerName"; const clusterManagerUpdateParameters = { + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity1": + {}, + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity2": + {}, + }, + }, tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options = { @@ -34,7 +43,7 @@ async function patchClusterManager() { const result = await client.clusterManagers.update( resourceGroupName, clusterManagerName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersContinueUpdateVersionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersContinueUpdateVersionSample.js new file mode 100644 index 000000000000..2db37c864165 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersContinueUpdateVersionSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Trigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update. + * + * @summary Trigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ContinueUpdateVersion.json + */ +async function continueUpdateClusterVersion() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterContinueUpdateVersionParameters = { machineGroupTargetingMode: "AlphaByRack" }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginContinueUpdateVersionAndWait( + resourceGroupName, + clusterName, + clusterContinueUpdateVersionParameters, + ); + console.log(result); +} + +async function main() { + continueUpdateClusterVersion(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersCreateOrUpdateSample.js similarity index 81% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersCreateOrUpdateSample.js index fabd8d5787cb..a67c825902e8 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a new cluster or update the properties of the cluster if it exists. * * @summary Create a new cluster or update the properties of the cluster if it exists. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Create.json */ async function createOrUpdateCluster() { const subscriptionId = @@ -71,6 +71,14 @@ async function createOrUpdateCluster() { }, clusterType: "SingleRack", clusterVersion: "1.0.0", + commandOutputSettings: { + associatedIdentity: { + identityType: "UserAssignedIdentity", + userAssignedIdentityResourceId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + }, + containerUrl: "https://myaccount.blob.core.windows.net/mycontainer?restype=container", + }, computeDeploymentThreshold: { type: "PercentSuccess", grouping: "PerCluster", @@ -118,6 +126,13 @@ async function createOrUpdateCluster() { name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", type: "CustomLocation", }, + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity1": + {}, + }, + }, location: "location", managedResourceGroupConfiguration: { name: "my-managed-rg", @@ -125,14 +140,27 @@ async function createOrUpdateCluster() { }, networkFabricId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName", + runtimeProtectionConfiguration: { enforcementLevel: "OnDemand" }, + secretArchive: { + keyVaultId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName", + useKeyVault: "True", + }, tags: { key1: "myvalue1", key2: "myvalue2" }, + updateStrategy: { + maxUnavailable: 4, + strategyType: "Rack", + thresholdType: "CountSuccess", + thresholdValue: 4, + waitTimeMinutes: 10, + }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusters.beginCreateOrUpdateAndWait( resourceGroupName, clusterName, - clusterParameters + clusterParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersDeleteSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersDeleteSample.js index d0cc13678deb..27c15d093986 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the provided cluster. * * @summary Delete the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Delete.json */ async function deleteCluster() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeploySample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersDeploySample.js similarity index 77% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeploySample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersDeploySample.js index 9ef9c05cb0e7..f9c43212df2a 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersDeploySample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersDeploySample.js @@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to Deploy the cluster to the provided rack. + * This sample demonstrates how to Deploy the cluster using the rack configuration provided during creation. * - * @summary Deploy the cluster to the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json + * @summary Deploy the cluster using the rack configuration provided during creation. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Deploy.json */ async function deployCluster() { const subscriptionId = @@ -32,10 +32,10 @@ async function deployCluster() { } /** - * This sample demonstrates how to Deploy the cluster to the provided rack. + * This sample demonstrates how to Deploy the cluster using the rack configuration provided during creation. * - * @summary Deploy the cluster to the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy_SkipValidation.json + * @summary Deploy the cluster using the rack configuration provided during creation. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Deploy_SkipValidation.json */ async function deployClusterSkippingValidation() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersGetSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersGetSample.js index c100c75d6bd7..485498590fa6 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get properties of the provided cluster. * * @summary Get properties of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Get.json */ async function getCluster() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersListByResourceGroupSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListByResourceGroupSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersListByResourceGroupSample.js index 7d61eb20fc69..542f3022055d 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListByResourceGroupSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of clusters in the provided resource group. * * @summary Get a list of clusters in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ListByResourceGroup.json */ async function listClustersForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersListBySubscriptionSample.js index 8a1e13108d7f..fe1b260e77dc 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of clusters in the provided subscription. * * @summary Get a list of clusters in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ListBySubscription.json */ async function listClustersForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersScanRuntimeSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersScanRuntimeSample.js new file mode 100644 index 000000000000..012799ea57c5 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersScanRuntimeSample.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with the cluster configuration. + * + * @summary Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with the cluster configuration. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ScanRuntime.json + */ +async function executeARuntimeProtectionScanOnTheCluster() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterScanRuntimeParameters = { + scanActivity: "Scan", + }; + const options = { + clusterScanRuntimeParameters, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginScanRuntimeAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +async function main() { + executeARuntimeProtectionScanOnTheCluster(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersUpdateSample.js new file mode 100644 index 000000000000..f00e4255dcb0 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersUpdateSample.js @@ -0,0 +1,222 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json + */ +async function patchClusterAggregatorOrSingleRackDefinition() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters = { + aggregatorOrSingleRackDefinition: { + bareMetalMachineConfigurationData: [ + { + bmcCredentials: { password: "{password}", username: "username" }, + bmcMacAddress: "AA:BB:CC:DD:EE:FF", + bootMacAddress: "00:BB:CC:DD:EE:FF", + machineDetails: "extraDetails", + machineName: "bmmName1", + rackSlot: 1, + serialNumber: "BM1219XXX", + }, + { + bmcCredentials: { password: "{password}", username: "username" }, + bmcMacAddress: "AA:BB:CC:DD:EE:00", + bootMacAddress: "00:BB:CC:DD:EE:00", + machineDetails: "extraDetails", + machineName: "bmmName2", + rackSlot: 2, + serialNumber: "BM1219YYY", + }, + ], + networkRackId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", + rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", + rackSerialNumber: "newSerialNumber", + rackSkuId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", + storageApplianceConfigurationData: [ + { + adminCredentials: { password: "{password}", username: "username" }, + rackSlot: 1, + serialNumber: "BM1219XXX", + storageApplianceName: "vmName", + }, + ], + }, + computeDeploymentThreshold: { + type: "PercentSuccess", + grouping: "PerCluster", + value: 90, + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait(resourceGroupName, clusterName, options); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_CommandOutput.json + */ +async function patchClusterCommandOutput() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters = { + commandOutputSettings: { + associatedIdentity: { + identityType: "UserAssignedIdentity", + userAssignedIdentityResourceId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2", + }, + containerUrl: "https://myaccount.blob.core.windows.net/mycontainer?restype=container", + }, + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity1": + {}, + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity2": + {}, + }, + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait(resourceGroupName, clusterName, options); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_Location.json + */ +async function patchClusterLocation() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters = { + clusterLocation: "Foo Street, 3rd Floor, row 9", + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait(resourceGroupName, clusterName, options); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_RuntimeProtectionConfiguration.json + */ +async function patchRuntimeProtectionConfiguration() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters = { + runtimeProtectionConfiguration: { enforcementLevel: "OnDemand" }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait(resourceGroupName, clusterName, options); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_SecretArchive.json + */ +async function patchSecretArchive() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters = { + secretArchive: { + keyVaultId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName", + useKeyVault: "True", + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait(resourceGroupName, clusterName, options); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_UpdateStrategy.json + */ +async function patchUpdateStrategy() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters = { + tags: { key1: "myvalue1", key2: "myvalue2" }, + updateStrategy: { + maxUnavailable: 4, + strategyType: "Rack", + thresholdType: "CountSuccess", + thresholdValue: 4, + waitTimeMinutes: 10, + }, + }; + const options = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait(resourceGroupName, clusterName, options); + console.log(result); +} + +async function main() { + patchClusterAggregatorOrSingleRackDefinition(); + patchClusterCommandOutput(); + patchClusterLocation(); + patchRuntimeProtectionConfiguration(); + patchSecretArchive(); + patchUpdateStrategy(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateVersionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersUpdateVersionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateVersionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersUpdateVersionSample.js index 94d1d8d4ca87..a729722c686b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/clustersUpdateVersionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/clustersUpdateVersionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update the version of the provided cluster to one of the available supported versions. * * @summary Update the version of the provided cluster to one of the available supported versions. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_UpdateVersion.json */ async function updateClusterVersion() { const subscriptionId = @@ -31,7 +31,7 @@ async function updateClusterVersion() { const result = await client.clusters.beginUpdateVersionAndWait( resourceGroupName, clusterName, - clusterUpdateVersionParameters + clusterUpdateVersionParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesCreateOrUpdateSample.js similarity index 95% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesCreateOrUpdateSample.js index 1cd6deec523d..5dae3b154db6 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a new virtual machine console or update the properties of the existing virtual machine console. * * @summary Create a new virtual machine console or update the properties of the existing virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Create.json */ async function createOrUpdateVirtualMachineConsole() { const subscriptionId = @@ -44,7 +44,7 @@ async function createOrUpdateVirtualMachineConsole() { resourceGroupName, virtualMachineName, consoleName, - consoleParameters + consoleParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesDeleteSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesDeleteSample.js index b46a9cd9603f..ba13f58fcd8c 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the provided virtual machine console. * * @summary Delete the provided virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Delete.json */ async function deleteVirtualMachineConsole() { const subscriptionId = @@ -29,7 +29,7 @@ async function deleteVirtualMachineConsole() { const result = await client.consoles.beginDeleteAndWait( resourceGroupName, virtualMachineName, - consoleName + consoleName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesGetSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesGetSample.js index 9c8b496c05da..b8da99ef8c68 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get properties of the provided virtual machine console. * * @summary Get properties of the provided virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Get.json */ async function getVirtualMachineConsole() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesListByVirtualMachineSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesListByVirtualMachineSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesListByVirtualMachineSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesListByVirtualMachineSample.js index 78dc2f18a240..78d5904dc0df 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesListByVirtualMachineSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesListByVirtualMachineSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of consoles for the provided virtual machine. * * @summary Get a list of consoles for the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_ListByVirtualMachine.json */ async function listConsolesOfTheVirtualMachine() { const subscriptionId = @@ -28,7 +28,7 @@ async function listConsolesOfTheVirtualMachine() { const resArray = new Array(); for await (let item of client.consoles.listByVirtualMachine( resourceGroupName, - virtualMachineName + virtualMachineName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesUpdateSample.js similarity index 95% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesUpdateSample.js index fe17a8dee0f3..72c8ba95f44c 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/consolesUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/consolesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. * * @summary Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Patch.json */ async function patchVirtualMachineConsole() { const subscriptionId = @@ -40,7 +40,7 @@ async function patchVirtualMachineConsole() { resourceGroupName, virtualMachineName, consoleName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesCreateOrUpdateSample.js new file mode 100644 index 000000000000..ab653df355df --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesCreateOrUpdateSample.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @summary Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Create.json + */ +async function createOrUpdateKubernetesClusterFeature() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const featureName = "featureName"; + const kubernetesClusterFeatureParameters = { + location: "location", + options: [{ key: "featureOptionName", value: "featureOptionValue" }], + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusterFeatures.beginCreateOrUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + featureName, + kubernetesClusterFeatureParameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateKubernetesClusterFeature(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesDeleteSample.js new file mode 100644 index 000000000000..738666ab80b1 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete the provided Kubernetes cluster feature. + * + * @summary Delete the provided Kubernetes cluster feature. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Delete.json + */ +async function deleteKubernetesClusterFeature() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const featureName = "featureName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusterFeatures.beginDeleteAndWait( + resourceGroupName, + kubernetesClusterName, + featureName, + ); + console.log(result); +} + +async function main() { + deleteKubernetesClusterFeature(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesGetSample.js new file mode 100644 index 000000000000..87abfe6d19de --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesGetSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get properties of the provided the Kubernetes cluster feature. + * + * @summary Get properties of the provided the Kubernetes cluster feature. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Get.json + */ +async function getKubernetesClusterFeature() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const featureName = "featureName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusterFeatures.get( + resourceGroupName, + kubernetesClusterName, + featureName, + ); + console.log(result); +} + +async function main() { + getKubernetesClusterFeature(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesListByKubernetesClusterSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesListByKubernetesClusterSample.js new file mode 100644 index 000000000000..41e4ddce6309 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesListByKubernetesClusterSample.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get a list of features for the provided Kubernetes cluster. + * + * @summary Get a list of features for the provided Kubernetes cluster. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_ListByKubernetesCluster.json + */ +async function listFeaturesForTheKubernetesCluster() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.kubernetesClusterFeatures.listByKubernetesCluster( + resourceGroupName, + kubernetesClusterName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listFeaturesForTheKubernetesCluster(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesUpdateSample.js new file mode 100644 index 000000000000..364e41ddd86d --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClusterFeaturesUpdateSample.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patch properties of the provided Kubernetes cluster feature. + * + * @summary Patch properties of the provided Kubernetes cluster feature. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Patch.json + */ +async function patchKubernetesClusterFeature() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const featureName = "featureName"; + const kubernetesClusterFeatureUpdateParameters = { + options: [{ key: "featureOptionName", value: "featureOptionValue" }], + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options = { + kubernetesClusterFeatureUpdateParameters, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusterFeatures.beginUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + featureName, + options, + ); + console.log(result); +} + +async function main() { + patchKubernetesClusterFeature(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersCreateOrUpdateSample.js new file mode 100644 index 000000000000..30f2430e0a59 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersCreateOrUpdateSample.js @@ -0,0 +1,339 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create a new Kubernetes cluster or update the properties of the existing one. + * + * @summary Create a new Kubernetes cluster or update the properties of the existing one. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Create.json + */ +async function createOrUpdateKubernetesCluster() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const kubernetesClusterParameters = { + aadConfiguration: { + adminGroupObjectIds: ["ffffffff-ffff-ffff-ffff-ffffffffffff"], + }, + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + controlPlaneNodeConfiguration: { + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + availabilityZones: ["1", "2", "3"], + count: 3, + vmSkuName: "NC_XXXX", + }, + extendedLocation: { + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", + }, + initialAgentPoolConfigurations: [ + { + name: "SystemPool-1", + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, + attachedNetworkConfiguration: { + l2Networks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", + pluginType: "DPDK", + }, + ], + l3Networks: [ + { + ipamEnabled: "False", + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + pluginType: "SRIOV", + }, + ], + trunkedNetworks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", + pluginType: "MACVLAN", + }, + ], + }, + availabilityZones: ["1", "2", "3"], + count: 3, + labels: [{ key: "kubernetes.label", value: "true" }], + mode: "System", + taints: [{ key: "kubernetes.taint", value: "true" }], + upgradeSettings: { maxSurge: "1" }, + vmSkuName: "NC_XXXX", + }, + ], + kubernetesVersion: "1.XX.Y", + location: "location", + managedResourceGroupConfiguration: { + name: "my-managed-rg", + location: "East US", + }, + networkConfiguration: { + attachedNetworkConfiguration: { + l2Networks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", + pluginType: "DPDK", + }, + ], + l3Networks: [ + { + ipamEnabled: "False", + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + pluginType: "SRIOV", + }, + ], + trunkedNetworks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", + pluginType: "MACVLAN", + }, + ], + }, + bgpServiceLoadBalancerConfiguration: { + bgpAdvertisements: [ + { + advertiseToFabric: "True", + communities: ["64512:100"], + ipAddressPools: ["pool1"], + peers: ["peer1"], + }, + ], + bgpPeers: [ + { + name: "peer1", + bfdEnabled: "False", + bgpMultiHop: "False", + holdTime: "P300s", + keepAliveTime: "P300s", + myAsn: 64512, + peerAddress: "203.0.113.254", + peerAsn: 64497, + peerPort: 179, + }, + ], + fabricPeeringEnabled: "True", + ipAddressPools: [ + { + name: "pool1", + addresses: ["198.51.102.0/24"], + autoAssign: "True", + onlyUseHostIps: "True", + }, + ], + }, + cloudServicesNetworkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", + cniNetworkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + dnsServiceIp: "198.51.101.2", + podCidrs: ["198.51.100.0/24"], + serviceCidrs: ["198.51.101.0/24"], + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusters.beginCreateOrUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + kubernetesClusterParameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create a new Kubernetes cluster or update the properties of the existing one. + * + * @summary Create a new Kubernetes cluster or update the properties of the existing one. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_L2LoadBalancer_Create.json + */ +async function createOrUpdateKubernetesClusterWithALayer2LoadBalancer() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const kubernetesClusterParameters = { + aadConfiguration: { + adminGroupObjectIds: ["ffffffff-ffff-ffff-ffff-ffffffffffff"], + }, + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + controlPlaneNodeConfiguration: { + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + availabilityZones: ["1", "2", "3"], + count: 3, + vmSkuName: "NC_XXXX", + }, + extendedLocation: { + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", + }, + initialAgentPoolConfigurations: [ + { + name: "SystemPool-1", + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, + attachedNetworkConfiguration: { + l2Networks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", + pluginType: "DPDK", + }, + ], + l3Networks: [ + { + ipamEnabled: "False", + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + pluginType: "SRIOV", + }, + ], + trunkedNetworks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", + pluginType: "MACVLAN", + }, + ], + }, + availabilityZones: ["1", "2", "3"], + count: 3, + labels: [{ key: "kubernetes.label", value: "true" }], + mode: "System", + taints: [{ key: "kubernetes.taint", value: "true" }], + upgradeSettings: { maxSurge: "1" }, + vmSkuName: "NC_XXXX", + }, + ], + kubernetesVersion: "1.XX.Y", + location: "location", + managedResourceGroupConfiguration: { + name: "my-managed-rg", + location: "East US", + }, + networkConfiguration: { + attachedNetworkConfiguration: { + l2Networks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", + pluginType: "DPDK", + }, + ], + l3Networks: [ + { + ipamEnabled: "False", + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + pluginType: "SRIOV", + }, + ], + trunkedNetworks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", + pluginType: "MACVLAN", + }, + ], + }, + cloudServicesNetworkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", + cniNetworkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + dnsServiceIp: "198.51.101.2", + l2ServiceLoadBalancerConfiguration: { + ipAddressPools: [ + { + name: "pool1", + addresses: ["198.51.102.2-198.51.102.254"], + autoAssign: "True", + }, + ], + }, + podCidrs: ["198.51.100.0/24"], + serviceCidrs: ["198.51.101.0/24"], + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusters.beginCreateOrUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + kubernetesClusterParameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateKubernetesCluster(); + createOrUpdateKubernetesClusterWithALayer2LoadBalancer(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersDeleteSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersDeleteSample.js index 1e6838307fea..3f689baafa02 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the provided Kubernetes cluster. * * @summary Delete the provided Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Delete.json */ async function deleteKubernetesCluster() { const subscriptionId = @@ -27,7 +27,7 @@ async function deleteKubernetesCluster() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.kubernetesClusters.beginDeleteAndWait( resourceGroupName, - kubernetesClusterName + kubernetesClusterName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersGetSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersGetSample.js index 16de0dfa3f79..34762f892afe 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get properties of the provided the Kubernetes cluster. * * @summary Get properties of the provided the Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Get.json */ async function getKubernetesCluster() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersListByResourceGroupSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListByResourceGroupSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersListByResourceGroupSample.js index 4af1351068ac..8b008eccde08 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListByResourceGroupSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of Kubernetes clusters in the provided resource group. * * @summary Get a list of Kubernetes clusters in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_ListByResourceGroup.json */ async function listKubernetesClustersForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersListBySubscriptionSample.js index 9c9612aa6fac..a0dbeaec9f78 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of Kubernetes clusters in the provided subscription. * * @summary Get a list of Kubernetes clusters in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_ListBySubscription.json */ async function listKubernetesClustersForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersRestartNodeSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersRestartNodeSample.js similarity index 86% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersRestartNodeSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersRestartNodeSample.js index b70558677a51..7c1b164c815a 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/kubernetesClustersRestartNodeSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersRestartNodeSample.js @@ -16,22 +16,20 @@ require("dotenv").config(); * This sample demonstrates how to Restart a targeted node of a Kubernetes cluster. * * @summary Restart a targeted node of a Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_RestartNode.json */ async function restartAKubernetesClusterNode() { const subscriptionId = process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterRestartNodeParameters = { - nodeName: "nodeName", - }; + const kubernetesClusterRestartNodeParameters = { nodeName: "nodeName" }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.kubernetesClusters.beginRestartNodeAndWait( resourceGroupName, kubernetesClusterName, - kubernetesClusterRestartNodeParameters + kubernetesClusterRestartNodeParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersUpdateSample.js new file mode 100644 index 000000000000..e8fb7a44d681 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/kubernetesClustersUpdateSample.js @@ -0,0 +1,66 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Patch.json + */ +async function patchKubernetesCluster() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const kubernetesClusterUpdateParameters = { + administratorConfiguration: { + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + controlPlaneNodeConfiguration: { + administratorConfiguration: { + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + count: 3, + }, + kubernetesVersion: "1.XX.Y", + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options = { + kubernetesClusterUpdateParameters, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusters.beginUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + options, + ); + console.log(result); +} + +async function main() { + patchKubernetesCluster(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksCreateOrUpdateSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksCreateOrUpdateSample.js index 2db137796b2a..aaaed9302a95 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a new layer 2 (L2) network or update the properties of the existing network. * * @summary Create a new layer 2 (L2) network or update the properties of the existing network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Create.json */ async function createOrUpdateL2Network() { const subscriptionId = @@ -40,7 +40,7 @@ async function createOrUpdateL2Network() { const result = await client.l2Networks.beginCreateOrUpdateAndWait( resourceGroupName, l2NetworkName, - l2NetworkParameters + l2NetworkParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksDeleteSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksDeleteSample.js index dd2e320b6cc4..73fd110eb356 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the provided layer 2 (L2) network. * * @summary Delete the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Delete.json */ async function deleteL2Network() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksGetSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksGetSample.js index 47d4e6113465..4ea47f06d3ac 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get properties of the provided layer 2 (L2) network. * * @summary Get properties of the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Get.json */ async function getL2Network() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksListByResourceGroupSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListByResourceGroupSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksListByResourceGroupSample.js index 48eb7714e165..ccbd5cde7f02 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListByResourceGroupSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of layer 2 (L2) networks in the provided resource group. * * @summary Get a list of layer 2 (L2) networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_ListByResourceGroup.json */ async function listL2NetworksForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksListBySubscriptionSample.js index a5e940811ded..d3cf5982acff 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of layer 2 (L2) networks in the provided subscription. * * @summary Get a list of layer 2 (L2) networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_ListBySubscription.json */ async function listL2NetworksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksUpdateSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksUpdateSample.js index ad6435963bf2..d747f77ec133 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l2NetworksUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l2NetworksUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update tags associated with the provided layer 2 (L2) network. * * @summary Update tags associated with the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Patch.json */ async function patchL2Network() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksCreateOrUpdateSample.js similarity index 95% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksCreateOrUpdateSample.js index 71b9bd43c17f..51f0c8e2c4d5 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a new layer 3 (L3) network or update the properties of the existing network. * * @summary Create a new layer 3 (L3) network or update the properties of the existing network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Create.json */ async function createOrUpdateL3Network() { const subscriptionId = @@ -43,7 +43,7 @@ async function createOrUpdateL3Network() { const result = await client.l3Networks.beginCreateOrUpdateAndWait( resourceGroupName, l3NetworkName, - l3NetworkParameters + l3NetworkParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksDeleteSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksDeleteSample.js index 73f233f5290a..dd5b503fc7b9 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the provided layer 3 (L3) network. * * @summary Delete the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Delete.json */ async function deleteL3Network() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksGetSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksGetSample.js index 6413f5064eca..d4e88b6d963d 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get properties of the provided layer 3 (L3) network. * * @summary Get properties of the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Get.json */ async function getL3Network() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksListByResourceGroupSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListByResourceGroupSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksListByResourceGroupSample.js index b030212297d0..95cd6fd4dffa 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListByResourceGroupSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of layer 3 (L3) networks in the provided resource group. * * @summary Get a list of layer 3 (L3) networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_ListByResourceGroup.json */ async function listL3NetworksForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksListBySubscriptionSample.js index 75742c5c9a4f..82e991da79f8 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of layer 3 (L3) networks in the provided subscription. * * @summary Get a list of layer 3 (L3) networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_ListBySubscription.json */ async function listL3NetworksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksUpdateSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksUpdateSample.js index f41bf893dc9d..4273a55d04fd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/l3NetworksUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/l3NetworksUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update tags associated with the provided layer 3 (L3) network. * * @summary Update tags associated with the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Patch.json */ async function patchL3Network() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsCreateOrUpdateSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsCreateOrUpdateSample.js index d04856d82f8f..69dacfeb077b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create new or update the existing metrics configuration of the provided cluster. * * @summary Create new or update the existing metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Create.json */ async function createOrUpdateMetricsConfigurationOfCluster() { const subscriptionId = @@ -40,7 +40,7 @@ async function createOrUpdateMetricsConfigurationOfCluster() { resourceGroupName, clusterName, metricsConfigurationName, - metricsConfigurationParameters + metricsConfigurationParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsDeleteSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsDeleteSample.js index 19e6580c5175..d705257735bb 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the metrics configuration of the provided cluster. * * @summary Delete the metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Delete.json */ async function deleteMetricsConfigurationOfCluster() { const subscriptionId = @@ -29,7 +29,7 @@ async function deleteMetricsConfigurationOfCluster() { const result = await client.metricsConfigurations.beginDeleteAndWait( resourceGroupName, clusterName, - metricsConfigurationName + metricsConfigurationName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsGetSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsGetSample.js index d408e57efdce..e566ee542092 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get metrics configuration of the provided cluster. * * @summary Get metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Get.json */ async function getMetricsConfigurationOfCluster() { const subscriptionId = @@ -29,7 +29,7 @@ async function getMetricsConfigurationOfCluster() { const result = await client.metricsConfigurations.get( resourceGroupName, clusterName, - metricsConfigurationName + metricsConfigurationName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsListByClusterSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsListByClusterSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsListByClusterSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsListByClusterSample.js index 561f9196eef1..b7b25736858d 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsListByClusterSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsListByClusterSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of metrics configurations for the provided cluster. * * @summary Get a list of metrics configurations for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_ListByCluster.json */ async function listMetricsConfigurationsOfTheCluster() { const subscriptionId = @@ -28,7 +28,7 @@ async function listMetricsConfigurationsOfTheCluster() { const resArray = new Array(); for await (let item of client.metricsConfigurations.listByCluster( resourceGroupName, - clusterName + clusterName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsUpdateSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsUpdateSample.js index d867a2ffcf5e..0f7842698be5 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/metricsConfigurationsUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/metricsConfigurationsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. * * @summary Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Patch.json */ async function patchMetricsConfigurationOfCluster() { const subscriptionId = @@ -38,7 +38,7 @@ async function patchMetricsConfigurationOfCluster() { resourceGroupName, clusterName, metricsConfigurationName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/operationsListSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/operationsListSample.js new file mode 100644 index 000000000000..c9de051be5ee --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/operationsListSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * + * @summary Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Operations_List.json + */ +async function listResourceProviderOperations() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listResourceProviderOperations(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/package.json b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/package.json new file mode 100644 index 000000000000..47fce9230b85 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/package.json @@ -0,0 +1,32 @@ +{ + "name": "@azure-samples/arm-networkcloud-js-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for JavaScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/networkcloud/arm-networkcloud" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud", + "dependencies": { + "@azure/arm-networkcloud": "next", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + } +} diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/rackSkusGetSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/rackSkusGetSample.js index 354af031fbb1..0a6a29c1cc92 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/rackSkusGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the properties of the provided rack SKU. * * @summary Get the properties of the provided rack SKU. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/RackSkus_Get.json */ async function getRackSkuResource() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/rackSkusListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/rackSkusListBySubscriptionSample.js index f39d48505c00..9e72cf31f42d 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/rackSkusListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/rackSkusListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of rack SKUs in the provided subscription. * * @summary Get a list of rack SKUs in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/RackSkus_ListBySubscription.json */ async function listRackSkUsForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksCreateOrUpdateSample.js similarity index 88% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksCreateOrUpdateSample.js index 11b7826a3645..403fdd6f39d3 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksCreateOrUpdateSample.js @@ -18,7 +18,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Create a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Create.json */ async function createOrUpdateRack() { const subscriptionId = @@ -34,7 +34,8 @@ async function createOrUpdateRack() { location: "location", rackLocation: "Rack 28", rackSerialNumber: "RACK_SERIAL_NUMBER", - rackSkuId: "RACK-TYPE-1", + rackSkuId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); @@ -42,7 +43,7 @@ async function createOrUpdateRack() { const result = await client.racks.beginCreateOrUpdateAndWait( resourceGroupName, rackName, - rackParameters + rackParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksDeleteSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksDeleteSample.js index e6b0208ebac1..790303b75502 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksDeleteSample.js @@ -18,7 +18,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Delete.json */ async function deleteRack() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksGetSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksGetSample.js index a476fbd23947..40c76fc65bf8 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get properties of the provided rack. * * @summary Get properties of the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Get.json */ async function getRack() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksListByResourceGroupSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListByResourceGroupSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksListByResourceGroupSample.js index 36b3000aa6f8..37246ade11c4 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListByResourceGroupSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of racks in the provided resource group. * * @summary Get a list of racks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_ListByResourceGroup.json */ async function listRacksForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksListBySubscriptionSample.js index b6554f077375..f220a15fe3d4 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of racks in the provided subscription. * * @summary Get a list of racks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_ListBySubscription.json */ async function listRacksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksUpdateSample.js similarity index 95% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksUpdateSample.js index e5aac1834f52..fb032d3644a1 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/racksUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/racksUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. * * @summary Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Patch.json */ async function patchRack() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/sample.env b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesCreateOrUpdateSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesCreateOrUpdateSample.js index f4ddede3648c..f3f233afbf2a 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesCreateOrUpdateSample.js @@ -18,7 +18,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Create a new storage appliance or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Create.json */ async function createOrUpdateStorageAppliance() { const subscriptionId = @@ -44,7 +44,7 @@ async function createOrUpdateStorageAppliance() { const result = await client.storageAppliances.beginCreateOrUpdateAndWait( resourceGroupName, storageApplianceName, - storageApplianceParameters + storageApplianceParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesDeleteSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesDeleteSample.js index 492f8cdc2274..50f1f3646b80 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesDeleteSample.js @@ -18,7 +18,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Delete.json */ async function deleteStorageAppliance() { const subscriptionId = @@ -29,7 +29,7 @@ async function deleteStorageAppliance() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.storageAppliances.beginDeleteAndWait( resourceGroupName, - storageApplianceName + storageApplianceName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDisableRemoteVendorManagementSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesDisableRemoteVendorManagementSample.js similarity index 90% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDisableRemoteVendorManagementSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesDisableRemoteVendorManagementSample.js index 7199b125dec5..c9efee46a0f3 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesDisableRemoteVendorManagementSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesDisableRemoteVendorManagementSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Disable remote vendor management of the provided storage appliance. * * @summary Disable remote vendor management of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_DisableRemoteVendorManagement.json */ async function turnOffRemoteVendorManagementForStorageAppliance() { const subscriptionId = @@ -27,7 +27,7 @@ async function turnOffRemoteVendorManagementForStorageAppliance() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.storageAppliances.beginDisableRemoteVendorManagementAndWait( resourceGroupName, - storageApplianceName + storageApplianceName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesEnableRemoteVendorManagementSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesEnableRemoteVendorManagementSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesEnableRemoteVendorManagementSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesEnableRemoteVendorManagementSample.js index 949a6e2fe7d9..b2f80f36231c 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesEnableRemoteVendorManagementSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesEnableRemoteVendorManagementSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Enable remote vendor management of the provided storage appliance. * * @summary Enable remote vendor management of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_EnableRemoteVendorManagement.json */ async function turnOnRemoteVendorManagementForStorageAppliance() { const subscriptionId = @@ -34,7 +34,7 @@ async function turnOnRemoteVendorManagementForStorageAppliance() { const result = await client.storageAppliances.beginEnableRemoteVendorManagementAndWait( resourceGroupName, storageApplianceName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesGetSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesGetSample.js index 9ff91e5018d4..c0c45c5e2687 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get properties of the provided storage appliance. * * @summary Get properties of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Get.json */ async function getStorageAppliance() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesListByResourceGroupSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListByResourceGroupSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesListByResourceGroupSample.js index 56be851903fa..71fa29a21b66 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListByResourceGroupSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of storage appliances in the provided resource group. * * @summary Get a list of storage appliances in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_ListByResourceGroup.json */ async function listStorageAppliancesForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesListBySubscriptionSample.js index 4ecd37d162df..8c38c545536a 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of storage appliances in the provided subscription. * * @summary Get a list of storage appliances in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_ListBySubscription.json */ async function listStorageAppliancesForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesUpdateSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesUpdateSample.js index 38fb2be58a4e..2b1dfd95c22b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/storageAppliancesUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/storageAppliancesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. * * @summary Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Patch.json */ async function patchStorageAppliance() { const subscriptionId = @@ -35,7 +35,7 @@ async function patchStorageAppliance() { const result = await client.storageAppliances.beginUpdateAndWait( resourceGroupName, storageApplianceName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksCreateOrUpdateSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksCreateOrUpdateSample.js index a7975574bb7c..19ab320d855b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a new trunked network or update the properties of the existing trunked network. * * @summary Create a new trunked network or update the properties of the existing trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Create.json */ async function createOrUpdateTrunkedNetwork() { const subscriptionId = @@ -42,7 +42,7 @@ async function createOrUpdateTrunkedNetwork() { const result = await client.trunkedNetworks.beginCreateOrUpdateAndWait( resourceGroupName, trunkedNetworkName, - trunkedNetworkParameters + trunkedNetworkParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksDeleteSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksDeleteSample.js index caef5ceb37da..fd9ba7494331 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the provided trunked network. * * @summary Delete the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Delete.json */ async function deleteTrunkedNetwork() { const subscriptionId = @@ -27,7 +27,7 @@ async function deleteTrunkedNetwork() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.trunkedNetworks.beginDeleteAndWait( resourceGroupName, - trunkedNetworkName + trunkedNetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksGetSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksGetSample.js index 0b391a995f1c..932d515a5f77 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get properties of the provided trunked network. * * @summary Get properties of the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Get.json */ async function getTrunkedNetwork() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksListByResourceGroupSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListByResourceGroupSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksListByResourceGroupSample.js index 7c800c8da8d4..31e914b7b22d 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListByResourceGroupSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of trunked networks in the provided resource group. * * @summary Get a list of trunked networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_ListByResourceGroup.json */ async function listTrunkedNetworksForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksListBySubscriptionSample.js index 72d1a7cf7e58..f0a5f8715651 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of trunked networks in the provided subscription. * * @summary Get a list of trunked networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_ListBySubscription.json */ async function listTrunkedNetworksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksUpdateSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksUpdateSample.js index d691298694cb..a783ca619b51 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/trunkedNetworksUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/trunkedNetworksUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update tags associated with the provided trunked network. * * @summary Update tags associated with the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Patch.json */ async function patchTrunkedNetwork() { const subscriptionId = @@ -34,7 +34,7 @@ async function patchTrunkedNetwork() { const result = await client.trunkedNetworks.update( resourceGroupName, trunkedNetworkName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesCreateOrUpdateSample.js similarity index 97% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesCreateOrUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesCreateOrUpdateSample.js index aef3743eb225..8345c5c98a1d 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesCreateOrUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a new virtual machine or update the properties of the existing virtual machine. * * @summary Create a new virtual machine or update the properties of the existing virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Create.json */ async function createOrUpdateVirtualMachine() { const subscriptionId = @@ -90,7 +90,7 @@ async function createOrUpdateVirtualMachine() { const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, virtualMachineName, - virtualMachineParameters + virtualMachineParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesDeleteSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesDeleteSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesDeleteSample.js index ffb2ba8052ad..e88fe80eacc2 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesDeleteSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the provided virtual machine. * * @summary Delete the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Delete.json */ async function deleteVirtualMachine() { const subscriptionId = @@ -27,7 +27,7 @@ async function deleteVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginDeleteAndWait( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesGetSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesGetSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesGetSample.js index fd60a65d3bfe..9b7b7bd550bd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesGetSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get properties of the provided virtual machine. * * @summary Get properties of the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Get.json */ async function getVirtualMachine() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesListByResourceGroupSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListByResourceGroupSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesListByResourceGroupSample.js index af68a935967d..139a2e54d463 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListByResourceGroupSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of virtual machines in the provided resource group. * * @summary Get a list of virtual machines in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_ListByResourceGroup.json */ async function listVirtualMachinesForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesListBySubscriptionSample.js index 80707c4a1702..b5d4be9bfd74 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of virtual machines in the provided subscription. * * @summary Get a list of virtual machines in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_ListBySubscription.json */ async function listVirtualMachinesForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesPowerOffSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesPowerOffSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesPowerOffSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesPowerOffSample.js index 36ccacce6095..7e626d6d4324 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesPowerOffSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesPowerOffSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Power off the provided virtual machine. * * @summary Power off the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_PowerOff.json */ async function powerOffVirtualMachine() { const subscriptionId = @@ -34,7 +34,7 @@ async function powerOffVirtualMachine() { const result = await client.virtualMachines.beginPowerOffAndWait( resourceGroupName, virtualMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesReimageSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesReimageSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesReimageSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesReimageSample.js index 1f5a96f25c48..2b595e41d827 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesReimageSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesReimageSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Reimage the provided virtual machine. * * @summary Reimage the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Reimage.json */ async function reimageVirtualMachine() { const subscriptionId = @@ -27,7 +27,7 @@ async function reimageVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginReimageAndWait( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesRestartSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesRestartSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesRestartSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesRestartSample.js index 2aa8a438e123..412bbad1e048 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesRestartSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesRestartSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Restart the provided virtual machine. * * @summary Restart the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Restart.json */ async function restartVirtualMachine() { const subscriptionId = @@ -27,7 +27,7 @@ async function restartVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginRestartAndWait( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesStartSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesStartSample.js similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesStartSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesStartSample.js index 9810553537b9..f10ae4f9078b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesStartSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesStartSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Start the provided virtual machine. * * @summary Start the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Start.json */ async function startVirtualMachine() { const subscriptionId = @@ -27,7 +27,7 @@ async function startVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginStartAndWait( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesUpdateSample.js similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesUpdateSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesUpdateSample.js index db804be1a41b..1ab9258f4dda 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/virtualMachinesUpdateSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/virtualMachinesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. * * @summary Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Patch.json */ async function patchVirtualMachine() { const subscriptionId = @@ -39,7 +39,7 @@ async function patchVirtualMachine() { const result = await client.virtualMachines.beginUpdateAndWait( resourceGroupName, virtualMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesCreateOrUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesCreateOrUpdateSample.js new file mode 100644 index 000000000000..4dba01968f21 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesCreateOrUpdateSample.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create a new volume or update the properties of the existing one. + * + * @summary Create a new volume or update the properties of the existing one. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Create.json + */ +async function createOrUpdateVolume() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const volumeName = "volumeName"; + const volumeParameters = { + extendedLocation: { + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", + }, + location: "location", + sizeMiB: 10000, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.volumes.beginCreateOrUpdateAndWait( + resourceGroupName, + volumeName, + volumeParameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateVolume(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesDeleteSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesDeleteSample.js new file mode 100644 index 000000000000..85a6b5ca9507 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesDeleteSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete the provided volume. + * + * @summary Delete the provided volume. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Delete.json + */ +async function deleteVolume() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const volumeName = "volumeName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.volumes.beginDeleteAndWait(resourceGroupName, volumeName); + console.log(result); +} + +async function main() { + deleteVolume(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesGetSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesGetSample.js new file mode 100644 index 000000000000..227d536b530a --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesGetSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get properties of the provided volume. + * + * @summary Get properties of the provided volume. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Get.json + */ +async function getVolume() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const volumeName = "volumeName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.volumes.get(resourceGroupName, volumeName); + console.log(result); +} + +async function main() { + getVolume(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListByResourceGroupSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesListByResourceGroupSample.js similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListByResourceGroupSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesListByResourceGroupSample.js index 135db76930b9..d109279f5c16 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListByResourceGroupSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of volumes in the provided resource group. * * @summary Get a list of volumes in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_ListByResourceGroup.json */ async function listVolumesForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListBySubscriptionSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesListBySubscriptionSample.js similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListBySubscriptionSample.js rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesListBySubscriptionSample.js index 7a81741b95c1..c0ae7290a276 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/javascript/volumesListBySubscriptionSample.js +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of volumes in the provided subscription. * * @summary Get a list of volumes in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_ListBySubscription.json */ async function listVolumeForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesUpdateSample.js b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesUpdateSample.js new file mode 100644 index 000000000000..4810322f7fee --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/javascript/volumesUpdateSample.js @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { NetworkCloud } = require("@azure/arm-networkcloud"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Update tags associated with the provided volume. + * + * @summary Update tags associated with the provided volume. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Patch.json + */ +async function patchVolume() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const volumeName = "volumeName"; + const volumeUpdateParameters = { + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options = { volumeUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.volumes.update(resourceGroupName, volumeName, options); + console.log(result); +} + +async function main() { + patchVolume(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/README.md b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/README.md new file mode 100644 index 000000000000..5e9685bdd0c0 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/README.md @@ -0,0 +1,313 @@ +# client library samples for TypeScript (Beta) + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [agentPoolsCreateOrUpdateSample.ts][agentpoolscreateorupdatesample] | Create a new Kubernetes cluster agent pool or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Create.json | +| [agentPoolsDeleteSample.ts][agentpoolsdeletesample] | Delete the provided Kubernetes cluster agent pool. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Delete.json | +| [agentPoolsGetSample.ts][agentpoolsgetsample] | Get properties of the provided Kubernetes cluster agent pool. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Get.json | +| [agentPoolsListByKubernetesClusterSample.ts][agentpoolslistbykubernetesclustersample] | Get a list of agent pools for the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_ListByKubernetesCluster.json | +| [agentPoolsUpdateSample.ts][agentpoolsupdatesample] | Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Patch.json | +| [bareMetalMachineKeySetsCreateOrUpdateSample.ts][baremetalmachinekeysetscreateorupdatesample] | Create a new bare metal machine key set or update the existing one for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Create.json | +| [bareMetalMachineKeySetsDeleteSample.ts][baremetalmachinekeysetsdeletesample] | Delete the bare metal machine key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Delete.json | +| [bareMetalMachineKeySetsGetSample.ts][baremetalmachinekeysetsgetsample] | Get bare metal machine key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Get.json | +| [bareMetalMachineKeySetsListByClusterSample.ts][baremetalmachinekeysetslistbyclustersample] | Get a list of bare metal machine key sets for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_ListByCluster.json | +| [bareMetalMachineKeySetsUpdateSample.ts][baremetalmachinekeysetsupdatesample] | Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Patch.json | +| [bareMetalMachinesCordonSample.ts][baremetalmachinescordonsample] | Cordon the provided bare metal machine's Kubernetes node. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Cordon.json | +| [bareMetalMachinesCreateOrUpdateSample.ts][baremetalmachinescreateorupdatesample] | Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Create.json | +| [bareMetalMachinesDeleteSample.ts][baremetalmachinesdeletesample] | Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Delete.json | +| [bareMetalMachinesGetSample.ts][baremetalmachinesgetsample] | Get properties of the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Get.json | +| [bareMetalMachinesListByResourceGroupSample.ts][baremetalmachineslistbyresourcegroupsample] | Get a list of bare metal machines in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_ListByResourceGroup.json | +| [bareMetalMachinesListBySubscriptionSample.ts][baremetalmachineslistbysubscriptionsample] | Get a list of bare metal machines in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_ListBySubscription.json | +| [bareMetalMachinesPowerOffSample.ts][baremetalmachinespoweroffsample] | Power off the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_PowerOff.json | +| [bareMetalMachinesReimageSample.ts][baremetalmachinesreimagesample] | Reimage the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Reimage.json | +| [bareMetalMachinesReplaceSample.ts][baremetalmachinesreplacesample] | Replace the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Replace.json | +| [bareMetalMachinesRestartSample.ts][baremetalmachinesrestartsample] | Restart the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Restart.json | +| [bareMetalMachinesRunCommandSample.ts][baremetalmachinesruncommandsample] | Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunCommand.json | +| [bareMetalMachinesRunDataExtractsSample.ts][baremetalmachinesrundataextractssample] | Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunDataExtracts.json | +| [bareMetalMachinesRunReadCommandsSample.ts][baremetalmachinesrunreadcommandssample] | Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunReadCommands.json | +| [bareMetalMachinesStartSample.ts][baremetalmachinesstartsample] | Start the provided bare metal machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Start.json | +| [bareMetalMachinesUncordonSample.ts][baremetalmachinesuncordonsample] | Uncordon the provided bare metal machine's Kubernetes node. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Uncordon.json | +| [bareMetalMachinesUpdateSample.ts][baremetalmachinesupdatesample] | Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Patch.json | +| [bmcKeySetsCreateOrUpdateSample.ts][bmckeysetscreateorupdatesample] | Create a new baseboard management controller key set or update the existing one for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Create.json | +| [bmcKeySetsDeleteSample.ts][bmckeysetsdeletesample] | Delete the baseboard management controller key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Delete.json | +| [bmcKeySetsGetSample.ts][bmckeysetsgetsample] | Get baseboard management controller key set of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Get.json | +| [bmcKeySetsListByClusterSample.ts][bmckeysetslistbyclustersample] | Get a list of baseboard management controller key sets for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_ListByCluster.json | +| [bmcKeySetsUpdateSample.ts][bmckeysetsupdatesample] | Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Patch.json | +| [cloudServicesNetworksCreateOrUpdateSample.ts][cloudservicesnetworkscreateorupdatesample] | Create a new cloud services network or update the properties of the existing cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Create.json | +| [cloudServicesNetworksDeleteSample.ts][cloudservicesnetworksdeletesample] | Delete the provided cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Delete.json | +| [cloudServicesNetworksGetSample.ts][cloudservicesnetworksgetsample] | Get properties of the provided cloud services network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Get.json | +| [cloudServicesNetworksListByResourceGroupSample.ts][cloudservicesnetworkslistbyresourcegroupsample] | Get a list of cloud services networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_ListByResourceGroup.json | +| [cloudServicesNetworksListBySubscriptionSample.ts][cloudservicesnetworkslistbysubscriptionsample] | Get a list of cloud services networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_ListBySubscription.json | +| [cloudServicesNetworksUpdateSample.ts][cloudservicesnetworksupdatesample] | Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Patch.json | +| [clusterManagersCreateOrUpdateSample.ts][clustermanagerscreateorupdatesample] | Create a new cluster manager or update properties of the cluster manager if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Create.json | +| [clusterManagersDeleteSample.ts][clustermanagersdeletesample] | Delete the provided cluster manager. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Delete.json | +| [clusterManagersGetSample.ts][clustermanagersgetsample] | Get the properties of the provided cluster manager. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Get.json | +| [clusterManagersListByResourceGroupSample.ts][clustermanagerslistbyresourcegroupsample] | Get a list of cluster managers in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_ListByResourceGroup.json | +| [clusterManagersListBySubscriptionSample.ts][clustermanagerslistbysubscriptionsample] | Get a list of cluster managers in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_ListBySubscription.json | +| [clusterManagersUpdateSample.ts][clustermanagersupdatesample] | Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Patch.json | +| [clustersContinueUpdateVersionSample.ts][clusterscontinueupdateversionsample] | Trigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ContinueUpdateVersion.json | +| [clustersCreateOrUpdateSample.ts][clusterscreateorupdatesample] | Create a new cluster or update the properties of the cluster if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Create.json | +| [clustersDeleteSample.ts][clustersdeletesample] | Delete the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Delete.json | +| [clustersDeploySample.ts][clustersdeploysample] | Deploy the cluster using the rack configuration provided during creation. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Deploy.json | +| [clustersGetSample.ts][clustersgetsample] | Get properties of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Get.json | +| [clustersListByResourceGroupSample.ts][clusterslistbyresourcegroupsample] | Get a list of clusters in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ListByResourceGroup.json | +| [clustersListBySubscriptionSample.ts][clusterslistbysubscriptionsample] | Get a list of clusters in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ListBySubscription.json | +| [clustersScanRuntimeSample.ts][clustersscanruntimesample] | Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with the cluster configuration. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ScanRuntime.json | +| [clustersUpdateSample.ts][clustersupdatesample] | Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json | +| [clustersUpdateVersionSample.ts][clustersupdateversionsample] | Update the version of the provided cluster to one of the available supported versions. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_UpdateVersion.json | +| [consolesCreateOrUpdateSample.ts][consolescreateorupdatesample] | Create a new virtual machine console or update the properties of the existing virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Create.json | +| [consolesDeleteSample.ts][consolesdeletesample] | Delete the provided virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Delete.json | +| [consolesGetSample.ts][consolesgetsample] | Get properties of the provided virtual machine console. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Get.json | +| [consolesListByVirtualMachineSample.ts][consoleslistbyvirtualmachinesample] | Get a list of consoles for the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_ListByVirtualMachine.json | +| [consolesUpdateSample.ts][consolesupdatesample] | Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Patch.json | +| [kubernetesClusterFeaturesCreateOrUpdateSample.ts][kubernetesclusterfeaturescreateorupdatesample] | Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Create.json | +| [kubernetesClusterFeaturesDeleteSample.ts][kubernetesclusterfeaturesdeletesample] | Delete the provided Kubernetes cluster feature. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Delete.json | +| [kubernetesClusterFeaturesGetSample.ts][kubernetesclusterfeaturesgetsample] | Get properties of the provided the Kubernetes cluster feature. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Get.json | +| [kubernetesClusterFeaturesListByKubernetesClusterSample.ts][kubernetesclusterfeatureslistbykubernetesclustersample] | Get a list of features for the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_ListByKubernetesCluster.json | +| [kubernetesClusterFeaturesUpdateSample.ts][kubernetesclusterfeaturesupdatesample] | Patch properties of the provided Kubernetes cluster feature. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Patch.json | +| [kubernetesClustersCreateOrUpdateSample.ts][kubernetesclusterscreateorupdatesample] | Create a new Kubernetes cluster or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Create.json | +| [kubernetesClustersDeleteSample.ts][kubernetesclustersdeletesample] | Delete the provided Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Delete.json | +| [kubernetesClustersGetSample.ts][kubernetesclustersgetsample] | Get properties of the provided the Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Get.json | +| [kubernetesClustersListByResourceGroupSample.ts][kubernetesclusterslistbyresourcegroupsample] | Get a list of Kubernetes clusters in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_ListByResourceGroup.json | +| [kubernetesClustersListBySubscriptionSample.ts][kubernetesclusterslistbysubscriptionsample] | Get a list of Kubernetes clusters in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_ListBySubscription.json | +| [kubernetesClustersRestartNodeSample.ts][kubernetesclustersrestartnodesample] | Restart a targeted node of a Kubernetes cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_RestartNode.json | +| [kubernetesClustersUpdateSample.ts][kubernetesclustersupdatesample] | Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Patch.json | +| [l2NetworksCreateOrUpdateSample.ts][l2networkscreateorupdatesample] | Create a new layer 2 (L2) network or update the properties of the existing network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Create.json | +| [l2NetworksDeleteSample.ts][l2networksdeletesample] | Delete the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Delete.json | +| [l2NetworksGetSample.ts][l2networksgetsample] | Get properties of the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Get.json | +| [l2NetworksListByResourceGroupSample.ts][l2networkslistbyresourcegroupsample] | Get a list of layer 2 (L2) networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_ListByResourceGroup.json | +| [l2NetworksListBySubscriptionSample.ts][l2networkslistbysubscriptionsample] | Get a list of layer 2 (L2) networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_ListBySubscription.json | +| [l2NetworksUpdateSample.ts][l2networksupdatesample] | Update tags associated with the provided layer 2 (L2) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Patch.json | +| [l3NetworksCreateOrUpdateSample.ts][l3networkscreateorupdatesample] | Create a new layer 3 (L3) network or update the properties of the existing network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Create.json | +| [l3NetworksDeleteSample.ts][l3networksdeletesample] | Delete the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Delete.json | +| [l3NetworksGetSample.ts][l3networksgetsample] | Get properties of the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Get.json | +| [l3NetworksListByResourceGroupSample.ts][l3networkslistbyresourcegroupsample] | Get a list of layer 3 (L3) networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_ListByResourceGroup.json | +| [l3NetworksListBySubscriptionSample.ts][l3networkslistbysubscriptionsample] | Get a list of layer 3 (L3) networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_ListBySubscription.json | +| [l3NetworksUpdateSample.ts][l3networksupdatesample] | Update tags associated with the provided layer 3 (L3) network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Patch.json | +| [metricsConfigurationsCreateOrUpdateSample.ts][metricsconfigurationscreateorupdatesample] | Create new or update the existing metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Create.json | +| [metricsConfigurationsDeleteSample.ts][metricsconfigurationsdeletesample] | Delete the metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Delete.json | +| [metricsConfigurationsGetSample.ts][metricsconfigurationsgetsample] | Get metrics configuration of the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Get.json | +| [metricsConfigurationsListByClusterSample.ts][metricsconfigurationslistbyclustersample] | Get a list of metrics configurations for the provided cluster. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_ListByCluster.json | +| [metricsConfigurationsUpdateSample.ts][metricsconfigurationsupdatesample] | Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Patch.json | +| [operationsListSample.ts][operationslistsample] | Get a list of all available resource provider operations. It contains a URL link to get the next set of results. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Operations_List.json | +| [rackSkusGetSample.ts][rackskusgetsample] | Get the properties of the provided rack SKU. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/RackSkus_Get.json | +| [rackSkusListBySubscriptionSample.ts][rackskuslistbysubscriptionsample] | Get a list of rack SKUs in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/RackSkus_ListBySubscription.json | +| [racksCreateOrUpdateSample.ts][rackscreateorupdatesample] | Create a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Create.json | +| [racksDeleteSample.ts][racksdeletesample] | Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Delete.json | +| [racksGetSample.ts][racksgetsample] | Get properties of the provided rack. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Get.json | +| [racksListByResourceGroupSample.ts][rackslistbyresourcegroupsample] | Get a list of racks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_ListByResourceGroup.json | +| [racksListBySubscriptionSample.ts][rackslistbysubscriptionsample] | Get a list of racks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_ListBySubscription.json | +| [racksUpdateSample.ts][racksupdatesample] | Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Patch.json | +| [storageAppliancesCreateOrUpdateSample.ts][storageappliancescreateorupdatesample] | Create a new storage appliance or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Create.json | +| [storageAppliancesDeleteSample.ts][storageappliancesdeletesample] | Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Delete.json | +| [storageAppliancesDisableRemoteVendorManagementSample.ts][storageappliancesdisableremotevendormanagementsample] | Disable remote vendor management of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_DisableRemoteVendorManagement.json | +| [storageAppliancesEnableRemoteVendorManagementSample.ts][storageappliancesenableremotevendormanagementsample] | Enable remote vendor management of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_EnableRemoteVendorManagement.json | +| [storageAppliancesGetSample.ts][storageappliancesgetsample] | Get properties of the provided storage appliance. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Get.json | +| [storageAppliancesListByResourceGroupSample.ts][storageapplianceslistbyresourcegroupsample] | Get a list of storage appliances in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_ListByResourceGroup.json | +| [storageAppliancesListBySubscriptionSample.ts][storageapplianceslistbysubscriptionsample] | Get a list of storage appliances in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_ListBySubscription.json | +| [storageAppliancesUpdateSample.ts][storageappliancesupdatesample] | Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Patch.json | +| [trunkedNetworksCreateOrUpdateSample.ts][trunkednetworkscreateorupdatesample] | Create a new trunked network or update the properties of the existing trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Create.json | +| [trunkedNetworksDeleteSample.ts][trunkednetworksdeletesample] | Delete the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Delete.json | +| [trunkedNetworksGetSample.ts][trunkednetworksgetsample] | Get properties of the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Get.json | +| [trunkedNetworksListByResourceGroupSample.ts][trunkednetworkslistbyresourcegroupsample] | Get a list of trunked networks in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_ListByResourceGroup.json | +| [trunkedNetworksListBySubscriptionSample.ts][trunkednetworkslistbysubscriptionsample] | Get a list of trunked networks in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_ListBySubscription.json | +| [trunkedNetworksUpdateSample.ts][trunkednetworksupdatesample] | Update tags associated with the provided trunked network. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Patch.json | +| [virtualMachinesCreateOrUpdateSample.ts][virtualmachinescreateorupdatesample] | Create a new virtual machine or update the properties of the existing virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Create.json | +| [virtualMachinesDeleteSample.ts][virtualmachinesdeletesample] | Delete the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Delete.json | +| [virtualMachinesGetSample.ts][virtualmachinesgetsample] | Get properties of the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Get.json | +| [virtualMachinesListByResourceGroupSample.ts][virtualmachineslistbyresourcegroupsample] | Get a list of virtual machines in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_ListByResourceGroup.json | +| [virtualMachinesListBySubscriptionSample.ts][virtualmachineslistbysubscriptionsample] | Get a list of virtual machines in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_ListBySubscription.json | +| [virtualMachinesPowerOffSample.ts][virtualmachinespoweroffsample] | Power off the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_PowerOff.json | +| [virtualMachinesReimageSample.ts][virtualmachinesreimagesample] | Reimage the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Reimage.json | +| [virtualMachinesRestartSample.ts][virtualmachinesrestartsample] | Restart the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Restart.json | +| [virtualMachinesStartSample.ts][virtualmachinesstartsample] | Start the provided virtual machine. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Start.json | +| [virtualMachinesUpdateSample.ts][virtualmachinesupdatesample] | Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Patch.json | +| [volumesCreateOrUpdateSample.ts][volumescreateorupdatesample] | Create a new volume or update the properties of the existing one. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Create.json | +| [volumesDeleteSample.ts][volumesdeletesample] | Delete the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Delete.json | +| [volumesGetSample.ts][volumesgetsample] | Get properties of the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Get.json | +| [volumesListByResourceGroupSample.ts][volumeslistbyresourcegroupsample] | Get a list of volumes in the provided resource group. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_ListByResourceGroup.json | +| [volumesListBySubscriptionSample.ts][volumeslistbysubscriptionsample] | Get a list of volumes in the provided subscription. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_ListBySubscription.json | +| [volumesUpdateSample.ts][volumesupdatesample] | Update tags associated with the provided volume. x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Patch.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/agentPoolsCreateOrUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx dev-tool run vendored cross-env NETWORKCLOUD_SUBSCRIPTION_ID="" NETWORKCLOUD_RESOURCE_GROUP="" node dist/agentPoolsCreateOrUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[agentpoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsCreateOrUpdateSample.ts +[agentpoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsDeleteSample.ts +[agentpoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsGetSample.ts +[agentpoolslistbykubernetesclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsListByKubernetesClusterSample.ts +[agentpoolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsUpdateSample.ts +[baremetalmachinekeysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts +[baremetalmachinekeysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsDeleteSample.ts +[baremetalmachinekeysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsGetSample.ts +[baremetalmachinekeysetslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts +[baremetalmachinekeysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsUpdateSample.ts +[baremetalmachinescordonsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesCordonSample.ts +[baremetalmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts +[baremetalmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesDeleteSample.ts +[baremetalmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesGetSample.ts +[baremetalmachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesListByResourceGroupSample.ts +[baremetalmachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesListBySubscriptionSample.ts +[baremetalmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesPowerOffSample.ts +[baremetalmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesReimageSample.ts +[baremetalmachinesreplacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesReplaceSample.ts +[baremetalmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRestartSample.ts +[baremetalmachinesruncommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRunCommandSample.ts +[baremetalmachinesrundataextractssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRunDataExtractsSample.ts +[baremetalmachinesrunreadcommandssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRunReadCommandsSample.ts +[baremetalmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesStartSample.ts +[baremetalmachinesuncordonsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesUncordonSample.ts +[baremetalmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesUpdateSample.ts +[bmckeysetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsCreateOrUpdateSample.ts +[bmckeysetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsDeleteSample.ts +[bmckeysetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsGetSample.ts +[bmckeysetslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsListByClusterSample.ts +[bmckeysetsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsUpdateSample.ts +[cloudservicesnetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts +[cloudservicesnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksDeleteSample.ts +[cloudservicesnetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksGetSample.ts +[cloudservicesnetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts +[cloudservicesnetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts +[cloudservicesnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksUpdateSample.ts +[clustermanagerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersCreateOrUpdateSample.ts +[clustermanagersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersDeleteSample.ts +[clustermanagersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersGetSample.ts +[clustermanagerslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersListByResourceGroupSample.ts +[clustermanagerslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersListBySubscriptionSample.ts +[clustermanagersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersUpdateSample.ts +[clusterscontinueupdateversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersContinueUpdateVersionSample.ts +[clusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersCreateOrUpdateSample.ts +[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersDeleteSample.ts +[clustersdeploysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersDeploySample.ts +[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersGetSample.ts +[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersListByResourceGroupSample.ts +[clusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersListBySubscriptionSample.ts +[clustersscanruntimesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersScanRuntimeSample.ts +[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersUpdateSample.ts +[clustersupdateversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersUpdateVersionSample.ts +[consolescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesCreateOrUpdateSample.ts +[consolesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesDeleteSample.ts +[consolesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesGetSample.ts +[consoleslistbyvirtualmachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesListByVirtualMachineSample.ts +[consolesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesUpdateSample.ts +[kubernetesclusterfeaturescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesCreateOrUpdateSample.ts +[kubernetesclusterfeaturesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesDeleteSample.ts +[kubernetesclusterfeaturesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesGetSample.ts +[kubernetesclusterfeatureslistbykubernetesclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesListByKubernetesClusterSample.ts +[kubernetesclusterfeaturesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesUpdateSample.ts +[kubernetesclusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersCreateOrUpdateSample.ts +[kubernetesclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersDeleteSample.ts +[kubernetesclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersGetSample.ts +[kubernetesclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersListByResourceGroupSample.ts +[kubernetesclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersListBySubscriptionSample.ts +[kubernetesclustersrestartnodesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersRestartNodeSample.ts +[kubernetesclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersUpdateSample.ts +[l2networkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksCreateOrUpdateSample.ts +[l2networksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksDeleteSample.ts +[l2networksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksGetSample.ts +[l2networkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksListByResourceGroupSample.ts +[l2networkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksListBySubscriptionSample.ts +[l2networksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksUpdateSample.ts +[l3networkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksCreateOrUpdateSample.ts +[l3networksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksDeleteSample.ts +[l3networksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksGetSample.ts +[l3networkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksListByResourceGroupSample.ts +[l3networkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksListBySubscriptionSample.ts +[l3networksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksUpdateSample.ts +[metricsconfigurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts +[metricsconfigurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsDeleteSample.ts +[metricsconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsGetSample.ts +[metricsconfigurationslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsListByClusterSample.ts +[metricsconfigurationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsUpdateSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/operationsListSample.ts +[rackskusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/rackSkusGetSample.ts +[rackskuslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/rackSkusListBySubscriptionSample.ts +[rackscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksCreateOrUpdateSample.ts +[racksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksDeleteSample.ts +[racksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksGetSample.ts +[rackslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksListByResourceGroupSample.ts +[rackslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksListBySubscriptionSample.ts +[racksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksUpdateSample.ts +[storageappliancescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesCreateOrUpdateSample.ts +[storageappliancesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesDeleteSample.ts +[storageappliancesdisableremotevendormanagementsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts +[storageappliancesenableremotevendormanagementsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts +[storageappliancesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesGetSample.ts +[storageapplianceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesListByResourceGroupSample.ts +[storageapplianceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesListBySubscriptionSample.ts +[storageappliancesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesUpdateSample.ts +[trunkednetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksCreateOrUpdateSample.ts +[trunkednetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksDeleteSample.ts +[trunkednetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksGetSample.ts +[trunkednetworkslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksListByResourceGroupSample.ts +[trunkednetworkslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksListBySubscriptionSample.ts +[trunkednetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksUpdateSample.ts +[virtualmachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesCreateOrUpdateSample.ts +[virtualmachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesDeleteSample.ts +[virtualmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesGetSample.ts +[virtualmachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesListByResourceGroupSample.ts +[virtualmachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesListBySubscriptionSample.ts +[virtualmachinespoweroffsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesPowerOffSample.ts +[virtualmachinesreimagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesReimageSample.ts +[virtualmachinesrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesRestartSample.ts +[virtualmachinesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesStartSample.ts +[virtualmachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesUpdateSample.ts +[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesCreateOrUpdateSample.ts +[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesDeleteSample.ts +[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesGetSample.ts +[volumeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesListByResourceGroupSample.ts +[volumeslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesListBySubscriptionSample.ts +[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesUpdateSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-networkcloud?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/package.json b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/package.json new file mode 100644 index 000000000000..58587b85baba --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/package.json @@ -0,0 +1,41 @@ +{ + "name": "@azure-samples/arm-networkcloud-ts-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for TypeScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/networkcloud/arm-networkcloud" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/networkcloud/arm-networkcloud", + "dependencies": { + "@azure/arm-networkcloud": "next", + "dotenv": "latest", + "@azure/identity": "^4.2.1" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.6.2", + "rimraf": "latest" + } +} diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/sample.env b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/sample.env new file mode 100644 index 000000000000..508439fc7d62 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/sample.env @@ -0,0 +1 @@ +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsCreateOrUpdateSample.ts similarity index 85% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsCreateOrUpdateSample.ts index a2076609325e..c7697d321c81 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new Kubernetes cluster agent pool or update the properties of the existing one. * * @summary Create a new Kubernetes cluster agent pool or update the properties of the existing one. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Create.json */ async function createOrUpdateKubernetesClusterAgentPool() { const subscriptionId = @@ -34,9 +34,9 @@ async function createOrUpdateKubernetesClusterAgentPool() { sshPublicKeys: [ { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - ] + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], }, agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, attachedNetworkConfiguration: { @@ -44,31 +44,30 @@ async function createOrUpdateKubernetesClusterAgentPool() { { networkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", - pluginType: "DPDK" - } + pluginType: "DPDK", + }, ], l3Networks: [ { ipamEnabled: "False", networkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", - pluginType: "SRIOV" - } + pluginType: "SRIOV", + }, ], trunkedNetworks: [ { networkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", - pluginType: "MACVLAN" - } - ] + pluginType: "MACVLAN", + }, + ], }, availabilityZones: ["1", "2", "3"], count: 3, extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, labels: [{ key: "kubernetes.label", value: "true" }], location: "location", @@ -76,7 +75,7 @@ async function createOrUpdateKubernetesClusterAgentPool() { tags: { key1: "myvalue1", key2: "myvalue2" }, taints: [{ key: "kubernetes.taint", value: "true" }], upgradeSettings: { maxSurge: "1" }, - vmSkuName: "NC_M16_v1" + vmSkuName: "NC_XXXX", }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); @@ -84,7 +83,7 @@ async function createOrUpdateKubernetesClusterAgentPool() { resourceGroupName, kubernetesClusterName, agentPoolName, - agentPoolParameters + agentPoolParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsDeleteSample.ts similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsDeleteSample.ts index 00a8c645c664..4387cc6d4396 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided Kubernetes cluster agent pool. * * @summary Delete the provided Kubernetes cluster agent pool. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Delete.json */ async function deleteKubernetesClusterAgentPool() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteKubernetesClusterAgentPool() { const result = await client.agentPools.beginDeleteAndWait( resourceGroupName, kubernetesClusterName, - agentPoolName + agentPoolName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsGetSample.ts similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsGetSample.ts index 001c12fe032d..a3a1b90c6688 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided Kubernetes cluster agent pool. * * @summary Get properties of the provided Kubernetes cluster agent pool. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Get.json */ async function getKubernetesClusterAgentPool() { const subscriptionId = @@ -33,7 +33,7 @@ async function getKubernetesClusterAgentPool() { const result = await client.agentPools.get( resourceGroupName, kubernetesClusterName, - agentPoolName + agentPoolName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsListByKubernetesClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsListByKubernetesClusterSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsListByKubernetesClusterSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsListByKubernetesClusterSample.ts index 26a902bff4c7..e5f73d56654b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsListByKubernetesClusterSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsListByKubernetesClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of agent pools for the provided Kubernetes cluster. * * @summary Get a list of agent pools for the provided Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_ListByKubernetesCluster.json */ async function listAgentPoolsOfTheKubernetesCluster() { const subscriptionId = @@ -32,7 +32,7 @@ async function listAgentPoolsOfTheKubernetesCluster() { const resArray = new Array(); for await (let item of client.agentPools.listByKubernetesCluster( resourceGroupName, - kubernetesClusterName + kubernetesClusterName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsUpdateSample.ts similarity index 76% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsUpdateSample.ts index 14a95490d128..c9894b4b06a5 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/agentPoolsUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/agentPoolsUpdateSample.ts @@ -11,7 +11,7 @@ import { AgentPoolPatchParameters, AgentPoolsUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. * * @summary Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Patch.json */ async function patchKubernetesClusterAgentPool() { const subscriptionId = @@ -33,9 +33,17 @@ async function patchKubernetesClusterAgentPool() { const kubernetesClusterName = "kubernetesClusterName"; const agentPoolName = "agentPoolName"; const agentPoolUpdateParameters: AgentPoolPatchParameters = { + administratorConfiguration: { + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, count: 3, tags: { key1: "myvalue1", key2: "myvalue2" }, - upgradeSettings: { maxSurge: "1" } + upgradeSettings: { drainTimeout: 1800, maxSurge: "1", maxUnavailable: "0" }, }; const options: AgentPoolsUpdateOptionalParams = { agentPoolUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -44,7 +52,7 @@ async function patchKubernetesClusterAgentPool() { resourceGroupName, kubernetesClusterName, agentPoolName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts similarity index 79% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts index cd503122977d..94db552f9acd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new bare metal machine key set or update the existing one for the provided cluster. * * @summary Create a new bare metal machine key set or update the existing one for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Create.json */ async function createOrUpdateBareMetalMachineKeySetOfCluster() { const subscriptionId = @@ -32,9 +32,8 @@ async function createOrUpdateBareMetalMachineKeySetOfCluster() { azureGroupId: "f110271b-XXXX-4163-9b99-214d91660f0e", expiration: new Date("2022-12-31T23:59:59.008Z"), extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, jumpHostsAllowed: ["192.0.2.1", "192.0.2.5"], location: "location", @@ -48,8 +47,9 @@ async function createOrUpdateBareMetalMachineKeySetOfCluster() { azureUserName: "userABC", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", }, { description: @@ -57,19 +57,21 @@ async function createOrUpdateBareMetalMachineKeySetOfCluster() { azureUserName: "userXYZ", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); - const result = await client.bareMetalMachineKeySets.beginCreateOrUpdateAndWait( - resourceGroupName, - clusterName, - bareMetalMachineKeySetName, - bareMetalMachineKeySetParameters - ); + const result = + await client.bareMetalMachineKeySets.beginCreateOrUpdateAndWait( + resourceGroupName, + clusterName, + bareMetalMachineKeySetName, + bareMetalMachineKeySetParameters, + ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsDeleteSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsDeleteSample.ts index a77d3fbc7a38..a458896b7afd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the bare metal machine key set of the provided cluster. * * @summary Delete the bare metal machine key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Delete.json */ async function deleteBareMetalMachineKeySetOfCluster() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteBareMetalMachineKeySetOfCluster() { const result = await client.bareMetalMachineKeySets.beginDeleteAndWait( resourceGroupName, clusterName, - bareMetalMachineKeySetName + bareMetalMachineKeySetName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsGetSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsGetSample.ts index 0222668e85ef..2c9e83cfc938 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get bare metal machine key set of the provided cluster. * * @summary Get bare metal machine key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Get.json */ async function getBareMetalMachineKeySetOfCluster() { const subscriptionId = @@ -33,7 +33,7 @@ async function getBareMetalMachineKeySetOfCluster() { const result = await client.bareMetalMachineKeySets.get( resourceGroupName, clusterName, - bareMetalMachineKeySetName + bareMetalMachineKeySetName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts index 5f796dbe3cae..469323ee8894 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of bare metal machine key sets for the provided cluster. * * @summary Get a list of bare metal machine key sets for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_ListByCluster.json */ async function listBareMetalMachineKeySetsOfTheCluster() { const subscriptionId = @@ -32,7 +32,7 @@ async function listBareMetalMachineKeySetsOfTheCluster() { const resArray = new Array(); for await (let item of client.bareMetalMachineKeySets.listByCluster( resourceGroupName, - clusterName + clusterName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsUpdateSample.ts new file mode 100644 index 000000000000..bfd3b96877c8 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachineKeySetsUpdateSample.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + BareMetalMachineKeySetPatchParameters, + BareMetalMachineKeySetsUpdateOptionalParams, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. + * + * @summary Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Patch.json + */ +async function patchBareMetalMachineKeySetOfCluster() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const bareMetalMachineKeySetName = "bareMetalMachineKeySetName"; + const bareMetalMachineKeySetUpdateParameters: BareMetalMachineKeySetPatchParameters = + { + expiration: new Date("2022-12-31T23:59:59.008Z"), + jumpHostsAllowed: ["192.0.2.1", "192.0.2.5"], + tags: { key1: "myvalue1", key2: "myvalue2" }, + userList: [ + { + description: + "Needs access for troubleshooting as a part of the support team", + azureUserName: "userABC", + sshPublicKey: { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", + }, + { + description: + "Needs access for troubleshooting as a part of the support team", + azureUserName: "userXYZ", + sshPublicKey: { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", + }, + ], + }; + const options: BareMetalMachineKeySetsUpdateOptionalParams = { + bareMetalMachineKeySetUpdateParameters, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.bareMetalMachineKeySets.beginUpdateAndWait( + resourceGroupName, + clusterName, + bareMetalMachineKeySetName, + options, + ); + console.log(result); +} + +async function main() { + patchBareMetalMachineKeySetOfCluster(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCordonSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesCordonSample.ts similarity index 89% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCordonSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesCordonSample.ts index 72b512e3f0aa..2d659f287539 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCordonSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesCordonSample.ts @@ -11,7 +11,7 @@ import { BareMetalMachineCordonParameters, BareMetalMachinesCordonOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Cordon the provided bare metal machine's Kubernetes node. * * @summary Cordon the provided bare metal machine's Kubernetes node. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Cordon.json */ async function cordonBareMetalMachine() { const subscriptionId = @@ -32,17 +32,17 @@ async function cordonBareMetalMachine() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const bareMetalMachineName = "bareMetalMachineName"; const bareMetalMachineCordonParameters: BareMetalMachineCordonParameters = { - evacuate: "True" + evacuate: "True", }; const options: BareMetalMachinesCordonOptionalParams = { - bareMetalMachineCordonParameters + bareMetalMachineCordonParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginCordonAndWait( resourceGroupName, bareMetalMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts similarity index 85% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts index cf5b87d83e1b..67bc71f6b358 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Create a new bare metal machine or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Create.json */ async function createOrUpdateBareMetalMachine() { const subscriptionId = @@ -35,9 +35,8 @@ async function createOrUpdateBareMetalMachine() { bmcMacAddress: "00:00:4f:00:57:00", bootMacAddress: "00:00:4e:00:58:af", extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", machineDetails: "User-provided machine details.", @@ -47,14 +46,14 @@ async function createOrUpdateBareMetalMachine() { "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", rackSlot: 1, serialNumber: "BM1219XXX", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginCreateOrUpdateAndWait( resourceGroupName, bareMetalMachineName, - bareMetalMachineParameters + bareMetalMachineParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesDeleteSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesDeleteSample.ts index 147005ac3c2e..91d9a17785d0 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesDeleteSample.ts @@ -20,7 +20,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Delete the provided bare metal machine. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Delete.json */ async function deleteBareMetalMachine() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginDeleteAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesGetSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesGetSample.ts index 898d2ba8925d..4be051e7d876 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided bare metal machine. * * @summary Get properties of the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Get.json */ async function getBareMetalMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function getBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.get( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesListByResourceGroupSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListByResourceGroupSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesListByResourceGroupSample.ts index 7a9a6530455a..86cea406f77e 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of bare metal machines in the provided resource group. * * @summary Get a list of bare metal machines in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_ListByResourceGroup.json */ async function listBareMetalMachinesForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listBareMetalMachinesForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.bareMetalMachines.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesListBySubscriptionSample.ts index 6d95b1f20189..a29e78895662 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of bare metal machines in the provided subscription. * * @summary Get a list of bare metal machines in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_ListBySubscription.json */ async function listBareMetalMachinesForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesPowerOffSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesPowerOffSample.ts similarity index 88% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesPowerOffSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesPowerOffSample.ts index cddf836b806c..71c0995d5072 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesPowerOffSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesPowerOffSample.ts @@ -11,7 +11,7 @@ import { BareMetalMachinePowerOffParameters, BareMetalMachinesPowerOffOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Power off the provided bare metal machine. * * @summary Power off the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_PowerOff.json */ async function powerOffBareMetalMachine() { const subscriptionId = @@ -31,18 +31,17 @@ async function powerOffBareMetalMachine() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachinePowerOffParameters: BareMetalMachinePowerOffParameters = { - skipShutdown: "True" - }; + const bareMetalMachinePowerOffParameters: BareMetalMachinePowerOffParameters = + { skipShutdown: "True" }; const options: BareMetalMachinesPowerOffOptionalParams = { - bareMetalMachinePowerOffParameters + bareMetalMachinePowerOffParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginPowerOffAndWait( resourceGroupName, bareMetalMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReimageSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesReimageSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReimageSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesReimageSample.ts index 17ec2c06cd2c..084cec6a8a06 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReimageSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesReimageSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reimage the provided bare metal machine. * * @summary Reimage the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Reimage.json */ async function reimageBareMetalMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function reimageBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginReimageAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReplaceSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesReplaceSample.ts similarity index 90% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReplaceSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesReplaceSample.ts index 456671683c42..83432e15d1aa 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesReplaceSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesReplaceSample.ts @@ -11,7 +11,7 @@ import { BareMetalMachineReplaceParameters, BareMetalMachinesReplaceOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Replace the provided bare metal machine. * * @summary Replace the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Replace.json */ async function replaceBareMetalMachine() { const subscriptionId = @@ -36,17 +36,17 @@ async function replaceBareMetalMachine() { bmcMacAddress: "00:00:4f:00:57:ad", bootMacAddress: "00:00:4e:00:58:af", machineName: "name", - serialNumber: "BM1219XXX" + serialNumber: "BM1219XXX", }; const options: BareMetalMachinesReplaceOptionalParams = { - bareMetalMachineReplaceParameters + bareMetalMachineReplaceParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginReplaceAndWait( resourceGroupName, bareMetalMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRestartSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRestartSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRestartSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRestartSample.ts index 268c6231bda4..3206a1b50e98 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRestartSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRestartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Restart the provided bare metal machine. * * @summary Restart the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Restart.json */ async function restartBareMetalMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function restartBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginRestartAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunCommandSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRunCommandSample.ts similarity index 86% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunCommandSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRunCommandSample.ts index 26e4ef6dcd8c..affdd5903dfe 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunCommandSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRunCommandSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BareMetalMachineRunCommandParameters, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. * * @summary Run the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunCommand.json */ async function runCommandOnBareMetalMachine() { const subscriptionId = @@ -30,17 +30,18 @@ async function runCommandOnBareMetalMachine() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters = { - arguments: ["--argument1", "argument2"], - limitTimeSeconds: 60, - script: "cHdkCg==" - }; + const bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters = + { + arguments: ["--argument1", "argument2"], + limitTimeSeconds: 60, + script: "cHdkCg==", + }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginRunCommandAndWait( resourceGroupName, bareMetalMachineName, - bareMetalMachineRunCommandParameters + bareMetalMachineRunCommandParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunDataExtractsSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRunDataExtractsSample.ts similarity index 82% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunDataExtractsSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRunDataExtractsSample.ts index ed96a9667e78..934e95ee2f03 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunDataExtractsSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRunDataExtractsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BareMetalMachineRunDataExtractsParameters, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. * * @summary Run one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunDataExtracts.json */ async function runDataExtractionOnBareMetalMachine() { const subscriptionId = @@ -30,21 +30,22 @@ async function runDataExtractionOnBareMetalMachine() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters = { - limitTimeSeconds: 60, - commands: [ - { - arguments: ["SysInfo", "TTYLog"], - command: "hardware-support-data-collection" - } - ] - }; + const bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters = + { + limitTimeSeconds: 60, + commands: [ + { + arguments: ["SysInfo", "TTYLog"], + command: "hardware-support-data-collection", + }, + ], + }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginRunDataExtractsAndWait( resourceGroupName, bareMetalMachineName, - bareMetalMachineRunDataExtractsParameters + bareMetalMachineRunDataExtractsParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunReadCommandsSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRunReadCommandsSample.ts similarity index 82% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunReadCommandsSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRunReadCommandsSample.ts index dc364daab0eb..40f33b11b94e 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesRunReadCommandsSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesRunReadCommandsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BareMetalMachineRunReadCommandsParameters, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. * * @summary Run one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunReadCommands.json */ async function runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine() { const subscriptionId = @@ -30,19 +30,20 @@ async function runAndRetrieveOutputFromReadOnlyCommandsOnBareMetalMachine() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const bareMetalMachineName = "bareMetalMachineName"; - const bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters = { - limitTimeSeconds: 60, - commands: [ - { arguments: ["pods", "-A"], command: "kubectl get" }, - { arguments: ["192.168.0.99", "-c", "3"], command: "ping" } - ] - }; + const bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters = + { + limitTimeSeconds: 60, + commands: [ + { arguments: ["pods", "-A"], command: "kubectl get" }, + { arguments: ["192.168.0.99", "-c", "3"], command: "ping" }, + ], + }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginRunReadCommandsAndWait( resourceGroupName, bareMetalMachineName, - bareMetalMachineRunReadCommandsParameters + bareMetalMachineRunReadCommandsParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesStartSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesStartSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesStartSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesStartSample.ts index 830553300277..0de69d64e7e9 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesStartSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesStartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Start the provided bare metal machine. * * @summary Start the provided bare metal machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Start.json */ async function startBareMetalMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function startBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginStartAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUncordonSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesUncordonSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUncordonSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesUncordonSample.ts index cb5e1e772a42..3135d60e38c7 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUncordonSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesUncordonSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Uncordon the provided bare metal machine's Kubernetes node. * * @summary Uncordon the provided bare metal machine's Kubernetes node. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Uncordon.json */ async function uncordonBareMetalMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function uncordonBareMetalMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginUncordonAndWait( resourceGroupName, - bareMetalMachineName + bareMetalMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesUpdateSample.ts similarity index 89% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesUpdateSample.ts index 988474b288a2..facf40c50473 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bareMetalMachinesUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bareMetalMachinesUpdateSample.ts @@ -11,7 +11,7 @@ import { BareMetalMachinePatchParameters, BareMetalMachinesUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. * * @summary Patch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Patch.json */ async function patchBareMetalMachine() { const subscriptionId = @@ -33,17 +33,17 @@ async function patchBareMetalMachine() { const bareMetalMachineName = "bareMetalMachineName"; const bareMetalMachineUpdateParameters: BareMetalMachinePatchParameters = { machineDetails: "machinedetails", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: BareMetalMachinesUpdateOptionalParams = { - bareMetalMachineUpdateParameters + bareMetalMachineUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.bareMetalMachines.beginUpdateAndWait( resourceGroupName, bareMetalMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsCreateOrUpdateSample.ts similarity index 83% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsCreateOrUpdateSample.ts index b1704a449e4f..c6f32228e60b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new baseboard management controller key set or update the existing one for the provided cluster. * * @summary Create a new baseboard management controller key set or update the existing one for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Create.json */ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { const subscriptionId = @@ -32,9 +32,8 @@ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { azureGroupId: "f110271b-XXXX-4163-9b99-214d91660f0e", expiration: new Date("2022-12-31T23:59:59.008Z"), extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", privilegeLevel: "Administrator", @@ -46,8 +45,9 @@ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { azureUserName: "userABC", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", }, { description: @@ -55,10 +55,11 @@ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { azureUserName: "userXYZ", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); @@ -66,7 +67,7 @@ async function createOrUpdateBaseboardManagementControllerKeySetOfCluster() { resourceGroupName, clusterName, bmcKeySetName, - bmcKeySetParameters + bmcKeySetParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsDeleteSample.ts similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsDeleteSample.ts index f322ca9e203f..65e4975cfb94 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the baseboard management controller key set of the provided cluster. * * @summary Delete the baseboard management controller key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Delete.json */ async function deleteBaseboardManagementControllerKeySetOfCluster() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteBaseboardManagementControllerKeySetOfCluster() { const result = await client.bmcKeySets.beginDeleteAndWait( resourceGroupName, clusterName, - bmcKeySetName + bmcKeySetName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsGetSample.ts similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsGetSample.ts index 96f12cd82c65..0ab7d176bac9 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get baseboard management controller key set of the provided cluster. * * @summary Get baseboard management controller key set of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Get.json */ async function getBaseboardManagementControllerKeySetOfCluster() { const subscriptionId = @@ -33,7 +33,7 @@ async function getBaseboardManagementControllerKeySetOfCluster() { const result = await client.bmcKeySets.get( resourceGroupName, clusterName, - bmcKeySetName + bmcKeySetName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsListByClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsListByClusterSample.ts similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsListByClusterSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsListByClusterSample.ts index fa5b51fd4454..0a0a2ca745a8 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsListByClusterSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of baseboard management controller key sets for the provided cluster. * * @summary Get a list of baseboard management controller key sets for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_ListByCluster.json */ async function listBaseboardManagementControllerKeySetsOfTheCluster() { const subscriptionId = @@ -32,7 +32,7 @@ async function listBaseboardManagementControllerKeySetsOfTheCluster() { const resArray = new Array(); for await (let item of client.bmcKeySets.listByCluster( resourceGroupName, - clusterName + clusterName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsUpdateSample.ts similarity index 89% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsUpdateSample.ts index 526c869570a3..4940f7fc3c0b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/bmcKeySetsUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/bmcKeySetsUpdateSample.ts @@ -11,7 +11,7 @@ import { BmcKeySetPatchParameters, BmcKeySetsUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. * * @summary Patch properties of baseboard management controller key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Patch.json */ async function patchBaseboardManagementControllerKeySetOfCluster() { const subscriptionId = @@ -42,8 +42,9 @@ async function patchBaseboardManagementControllerKeySetOfCluster() { azureUserName: "userABC", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", }, { description: @@ -51,10 +52,11 @@ async function patchBaseboardManagementControllerKeySetOfCluster() { azureUserName: "userXYZ", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } - } - ] + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + userPrincipalName: "userABC@contoso.com", + }, + ], }; const options: BmcKeySetsUpdateOptionalParams = { bmcKeySetUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -63,7 +65,7 @@ async function patchBaseboardManagementControllerKeySetOfCluster() { resourceGroupName, clusterName, bmcKeySetName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts similarity index 77% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts index 751cfe345b6b..2d88858913ba 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new cloud services network or update the properties of the existing cloud services network. * * @summary Create a new cloud services network or update the properties of the existing cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Create.json */ async function createOrUpdateCloudServicesNetwork() { const subscriptionId = @@ -32,28 +32,24 @@ async function createOrUpdateCloudServicesNetwork() { { category: "azure-resource-management", endpoints: [ - { - domainName: "https://storageaccountex.blob.core.windows.net", - port: 443 - } - ] - } + { domainName: "storageaccountex.blob.core.windows.net", port: 443 }, + ], + }, ], enableDefaultEgressEndpoints: "False", extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.cloudServicesNetworks.beginCreateOrUpdateAndWait( resourceGroupName, cloudServicesNetworkName, - cloudServicesNetworkParameters + cloudServicesNetworkParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksDeleteSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksDeleteSample.ts index 33e20d6ce77f..43272822c7be 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided cloud services network. * * @summary Delete the provided cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Delete.json */ async function deleteCloudServicesNetwork() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteCloudServicesNetwork() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.cloudServicesNetworks.beginDeleteAndWait( resourceGroupName, - cloudServicesNetworkName + cloudServicesNetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksGetSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksGetSample.ts index 10e3d8a5ad39..b6c85a2484e8 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided cloud services network. * * @summary Get properties of the provided cloud services network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Get.json */ async function getCloudServicesNetwork() { const subscriptionId = @@ -31,7 +31,7 @@ async function getCloudServicesNetwork() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.cloudServicesNetworks.get( resourceGroupName, - cloudServicesNetworkName + cloudServicesNetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts index b4762be0068b..9acabedbc877 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of cloud services networks in the provided resource group. * * @summary Get a list of cloud services networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_ListByResourceGroup.json */ async function listCloudServicesNetworksForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listCloudServicesNetworksForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.cloudServicesNetworks.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts index 96508df8ece8..75873c6a5b70 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of cloud services networks in the provided subscription. * * @summary Get a list of cloud services networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_ListBySubscription.json */ async function listCloudServicesNetworksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksUpdateSample.ts similarity index 77% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksUpdateSample.ts index 430b362f8c08..6ed22847d911 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/cloudServicesNetworksUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/cloudServicesNetworksUpdateSample.ts @@ -11,7 +11,7 @@ import { CloudServicesNetworkPatchParameters, CloudServicesNetworksUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. * * @summary Update properties of the provided cloud services network, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Patch.json */ async function patchCloudServicesNetwork() { const subscriptionId = @@ -31,30 +31,28 @@ async function patchCloudServicesNetwork() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const cloudServicesNetworkName = "cloudServicesNetworkName"; - const cloudServicesNetworkUpdateParameters: CloudServicesNetworkPatchParameters = { - additionalEgressEndpoints: [ - { - category: "azure-resource-management", - endpoints: [ - { - domainName: "https://storageaccountex.blob.core.windows.net", - port: 443 - } - ] - } - ], - enableDefaultEgressEndpoints: "False", - tags: { key1: "myvalue1", key2: "myvalue2" } - }; + const cloudServicesNetworkUpdateParameters: CloudServicesNetworkPatchParameters = + { + additionalEgressEndpoints: [ + { + category: "azure-resource-management", + endpoints: [ + { domainName: "storageaccountex.blob.core.windows.net", port: 443 }, + ], + }, + ], + enableDefaultEgressEndpoints: "False", + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; const options: CloudServicesNetworksUpdateOptionalParams = { - cloudServicesNetworkUpdateParameters + cloudServicesNetworkUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.cloudServicesNetworks.beginUpdateAndWait( resourceGroupName, cloudServicesNetworkName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersCreateOrUpdateSample.ts new file mode 100644 index 000000000000..339da6457153 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersCreateOrUpdateSample.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ClusterManager, NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a new cluster manager or update properties of the cluster manager if it exists. + * + * @summary Create a new cluster manager or update properties of the cluster manager if it exists. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Create.json + */ +async function createOrUpdateClusterManager() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterManagerName = "clusterManagerName"; + const clusterManagerParameters: ClusterManager = { + analyticsWorkspaceId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", + fabricControllerId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", + identity: { type: "SystemAssigned" }, + location: "location", + managedResourceGroupConfiguration: { + name: "my-managed-rg", + location: "East US", + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusterManagers.beginCreateOrUpdateAndWait( + resourceGroupName, + clusterManagerName, + clusterManagerParameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create a new cluster manager or update properties of the cluster manager if it exists. + * + * @summary Create a new cluster manager or update properties of the cluster manager if it exists. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Create_Uami.json + */ +async function createOrUpdateClusterManagerWithUserAssignedIdentity() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterManagerName = "clusterManagerName"; + const clusterManagerParameters: ClusterManager = { + analyticsWorkspaceId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", + fabricControllerId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity1": + {}, + }, + }, + location: "location", + managedResourceGroupConfiguration: { + name: "my-managed-rg", + location: "East US", + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusterManagers.beginCreateOrUpdateAndWait( + resourceGroupName, + clusterManagerName, + clusterManagerParameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateClusterManager(); + createOrUpdateClusterManagerWithUserAssignedIdentity(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersDeleteSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersDeleteSample.ts index 89577c15b814..74835e71c48d 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided cluster manager. * * @summary Delete the provided cluster manager. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Delete.json */ async function deleteClusterManager() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteClusterManager() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusterManagers.beginDeleteAndWait( resourceGroupName, - clusterManagerName + clusterManagerName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersGetSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersGetSample.ts index 7a1a29e11e85..bb1d8c46822f 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of the provided cluster manager. * * @summary Get the properties of the provided cluster manager. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Get.json */ async function getClusterManager() { const subscriptionId = @@ -31,7 +31,7 @@ async function getClusterManager() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusterManagers.get( resourceGroupName, - clusterManagerName + clusterManagerName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersListByResourceGroupSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListByResourceGroupSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersListByResourceGroupSample.ts index 16ccab096420..225f97edf840 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of cluster managers in the provided resource group. * * @summary Get a list of cluster managers in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_ListByResourceGroup.json */ async function listClusterManagersForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listClusterManagersForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.clusterManagers.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersListBySubscriptionSample.ts index be2d1b6d25d4..d4512b994519 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clusterManagersListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of cluster managers in the provided subscription. * * @summary Get a list of cluster managers in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_ListBySubscription.json */ async function listClusterManagersForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersUpdateSample.ts new file mode 100644 index 000000000000..078025fec242 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clusterManagersUpdateSample.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ClusterManagerPatchParameters, + ClusterManagersUpdateOptionalParams, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. + * + * @summary Patch properties of the provided cluster manager, or update the tags assigned to the cluster manager. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Patch.json + */ +async function patchClusterManager() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterManagerName = "clusterManagerName"; + const clusterManagerUpdateParameters: ClusterManagerPatchParameters = { + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity1": + {}, + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity2": + {}, + }, + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: ClusterManagersUpdateOptionalParams = { + clusterManagerUpdateParameters, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusterManagers.update( + resourceGroupName, + clusterManagerName, + options, + ); + console.log(result); +} + +async function main() { + patchClusterManager(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersContinueUpdateVersionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersContinueUpdateVersionSample.ts new file mode 100644 index 000000000000..23363b876cad --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersContinueUpdateVersionSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ClusterContinueUpdateVersionParameters, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Trigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update. + * + * @summary Trigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ContinueUpdateVersion.json + */ +async function continueUpdateClusterVersion() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters = + { machineGroupTargetingMode: "AlphaByRack" }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginContinueUpdateVersionAndWait( + resourceGroupName, + clusterName, + clusterContinueUpdateVersionParameters, + ); + console.log(result); +} + +async function main() { + continueUpdateClusterVersion(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersCreateOrUpdateSample.ts new file mode 100644 index 000000000000..a1a46b51ce40 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersCreateOrUpdateSample.ts @@ -0,0 +1,177 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { Cluster, NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a new cluster or update the properties of the cluster if it exists. + * + * @summary Create a new cluster or update the properties of the cluster if it exists. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Create.json + */ +async function createOrUpdateCluster() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterParameters: Cluster = { + aggregatorOrSingleRackDefinition: { + bareMetalMachineConfigurationData: [ + { + bmcCredentials: { password: "{password}", username: "username" }, + bmcMacAddress: "AA:BB:CC:DD:EE:FF", + bootMacAddress: "00:BB:CC:DD:EE:FF", + machineDetails: "extraDetails", + machineName: "bmmName1", + rackSlot: 1, + serialNumber: "BM1219XXX", + }, + { + bmcCredentials: { password: "{password}", username: "username" }, + bmcMacAddress: "AA:BB:CC:DD:EE:00", + bootMacAddress: "00:BB:CC:DD:EE:00", + machineDetails: "extraDetails", + machineName: "bmmName2", + rackSlot: 2, + serialNumber: "BM1219YYY", + }, + ], + networkRackId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", + rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", + rackSerialNumber: "AA1234", + rackSkuId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", + storageApplianceConfigurationData: [ + { + adminCredentials: { password: "{password}", username: "username" }, + rackSlot: 1, + serialNumber: "BM1219XXX", + storageApplianceName: "vmName", + }, + ], + }, + analyticsWorkspaceId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName", + clusterLocation: "Foo Street, 3rd Floor, row 9", + clusterServicePrincipal: { + applicationId: "12345678-1234-1234-1234-123456789012", + password: "{password}", + principalId: "00000008-0004-0004-0004-000000000012", + tenantId: "80000000-4000-4000-4000-120000000000", + }, + clusterType: "SingleRack", + clusterVersion: "1.0.0", + commandOutputSettings: { + associatedIdentity: { + identityType: "UserAssignedIdentity", + userAssignedIdentityResourceId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1", + }, + containerUrl: + "https://myaccount.blob.core.windows.net/mycontainer?restype=container", + }, + computeDeploymentThreshold: { + type: "PercentSuccess", + grouping: "PerCluster", + value: 90, + }, + computeRackDefinitions: [ + { + bareMetalMachineConfigurationData: [ + { + bmcCredentials: { password: "{password}", username: "username" }, + bmcMacAddress: "AA:BB:CC:DD:EE:FF", + bootMacAddress: "00:BB:CC:DD:EE:FF", + machineDetails: "extraDetails", + machineName: "bmmName1", + rackSlot: 1, + serialNumber: "BM1219XXX", + }, + { + bmcCredentials: { password: "{password}", username: "username" }, + bmcMacAddress: "AA:BB:CC:DD:EE:00", + bootMacAddress: "00:BB:CC:DD:EE:00", + machineDetails: "extraDetails", + machineName: "bmmName2", + rackSlot: 2, + serialNumber: "BM1219YYY", + }, + ], + networkRackId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", + rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", + rackSerialNumber: "AA1234", + rackSkuId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", + storageApplianceConfigurationData: [ + { + adminCredentials: { password: "{password}", username: "username" }, + rackSlot: 1, + serialNumber: "BM1219XXX", + storageApplianceName: "vmName", + }, + ], + }, + ], + extendedLocation: { + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", + type: "CustomLocation", + }, + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity1": + {}, + }, + }, + location: "location", + managedResourceGroupConfiguration: { + name: "my-managed-rg", + location: "East US", + }, + networkFabricId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName", + runtimeProtectionConfiguration: { enforcementLevel: "OnDemand" }, + secretArchive: { + keyVaultId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName", + useKeyVault: "True", + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + updateStrategy: { + maxUnavailable: 4, + strategyType: "Rack", + thresholdType: "CountSuccess", + thresholdValue: 4, + waitTimeMinutes: 10, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginCreateOrUpdateAndWait( + resourceGroupName, + clusterName, + clusterParameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateCluster(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersDeleteSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersDeleteSample.ts index acbd520f548a..82178e264fa3 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided cluster. * * @summary Delete the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Delete.json */ async function deleteCluster() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteCluster() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusters.beginDeleteAndWait( resourceGroupName, - clusterName + clusterName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeploySample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersDeploySample.ts similarity index 76% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeploySample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersDeploySample.ts index 105097d9f8e9..528ceb23c65b 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersDeploySample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersDeploySample.ts @@ -11,7 +11,7 @@ import { ClusterDeployParameters, ClustersDeployOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -19,10 +19,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Deploy the cluster to the provided rack. + * This sample demonstrates how to Deploy the cluster using the rack configuration provided during creation. * - * @summary Deploy the cluster to the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json + * @summary Deploy the cluster using the rack configuration provided during creation. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Deploy.json */ async function deployCluster() { const subscriptionId = @@ -38,16 +38,16 @@ async function deployCluster() { const result = await client.clusters.beginDeployAndWait( resourceGroupName, clusterName, - options + options, ); console.log(result); } /** - * This sample demonstrates how to Deploy the cluster to the provided rack. + * This sample demonstrates how to Deploy the cluster using the rack configuration provided during creation. * - * @summary Deploy the cluster to the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy_SkipValidation.json + * @summary Deploy the cluster using the rack configuration provided during creation. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Deploy_SkipValidation.json */ async function deployClusterSkippingValidation() { const subscriptionId = @@ -57,7 +57,7 @@ async function deployClusterSkippingValidation() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const clusterName = "clusterName"; const clusterDeployParameters: ClusterDeployParameters = { - skipValidationsForMachines: ["bmmName1"] + skipValidationsForMachines: ["bmmName1"], }; const options: ClustersDeployOptionalParams = { clusterDeployParameters }; const credential = new DefaultAzureCredential(); @@ -65,7 +65,7 @@ async function deployClusterSkippingValidation() { const result = await client.clusters.beginDeployAndWait( resourceGroupName, clusterName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersGetSample.ts similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersGetSample.ts index 901a95b06d7e..a401c420ecb7 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided cluster. * * @summary Get properties of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Get.json */ async function getCluster() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersListByResourceGroupSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListByResourceGroupSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersListByResourceGroupSample.ts index b07dc44c5fdf..938e7293a013 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of clusters in the provided resource group. * * @summary Get a list of clusters in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ListByResourceGroup.json */ async function listClustersForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listClustersForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.clusters.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersListBySubscriptionSample.ts index b54d64e13348..fb5aac01e26d 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of clusters in the provided subscription. * * @summary Get a list of clusters in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ListBySubscription.json */ async function listClustersForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersScanRuntimeSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersScanRuntimeSample.ts new file mode 100644 index 000000000000..c61e9c230b5c --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersScanRuntimeSample.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ClusterScanRuntimeParameters, + ClustersScanRuntimeOptionalParams, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with the cluster configuration. + * + * @summary Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with the cluster configuration. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ScanRuntime.json + */ +async function executeARuntimeProtectionScanOnTheCluster() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterScanRuntimeParameters: ClusterScanRuntimeParameters = { + scanActivity: "Scan", + }; + const options: ClustersScanRuntimeOptionalParams = { + clusterScanRuntimeParameters, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginScanRuntimeAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +async function main() { + executeARuntimeProtectionScanOnTheCluster(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersUpdateSample.ts new file mode 100644 index 000000000000..65c151c685a2 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersUpdateSample.ts @@ -0,0 +1,265 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ClusterPatchParameters, + ClustersUpdateOptionalParams, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json + */ +async function patchClusterAggregatorOrSingleRackDefinition() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters: ClusterPatchParameters = { + aggregatorOrSingleRackDefinition: { + bareMetalMachineConfigurationData: [ + { + bmcCredentials: { password: "{password}", username: "username" }, + bmcMacAddress: "AA:BB:CC:DD:EE:FF", + bootMacAddress: "00:BB:CC:DD:EE:FF", + machineDetails: "extraDetails", + machineName: "bmmName1", + rackSlot: 1, + serialNumber: "BM1219XXX", + }, + { + bmcCredentials: { password: "{password}", username: "username" }, + bmcMacAddress: "AA:BB:CC:DD:EE:00", + bootMacAddress: "00:BB:CC:DD:EE:00", + machineDetails: "extraDetails", + machineName: "bmmName2", + rackSlot: 2, + serialNumber: "BM1219YYY", + }, + ], + networkRackId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName", + rackLocation: "Foo Datacenter, Floor 3, Aisle 9, Rack 2", + rackSerialNumber: "newSerialNumber", + rackSkuId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", + storageApplianceConfigurationData: [ + { + adminCredentials: { password: "{password}", username: "username" }, + rackSlot: 1, + serialNumber: "BM1219XXX", + storageApplianceName: "vmName", + }, + ], + }, + computeDeploymentThreshold: { + type: "PercentSuccess", + grouping: "PerCluster", + value: 90, + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_CommandOutput.json + */ +async function patchClusterCommandOutput() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters: ClusterPatchParameters = { + commandOutputSettings: { + associatedIdentity: { + identityType: "UserAssignedIdentity", + userAssignedIdentityResourceId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2", + }, + containerUrl: + "https://myaccount.blob.core.windows.net/mycontainer?restype=container", + }, + identity: { + type: "UserAssigned", + userAssignedIdentities: { + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity1": + {}, + "/subscriptions/123e4567E89b12d3A456426655440000/resourceGroups/resourceGroupName/providers/MicrosoftManagedIdentity/userAssignedIdentities/userIdentity2": + {}, + }, + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_Location.json + */ +async function patchClusterLocation() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters: ClusterPatchParameters = { + clusterLocation: "Foo Street, 3rd Floor, row 9", + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_RuntimeProtectionConfiguration.json + */ +async function patchRuntimeProtectionConfiguration() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters: ClusterPatchParameters = { + runtimeProtectionConfiguration: { enforcementLevel: "OnDemand" }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_SecretArchive.json + */ +async function patchSecretArchive() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters: ClusterPatchParameters = { + secretArchive: { + keyVaultId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName", + useKeyVault: "True", + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_UpdateStrategy.json + */ +async function patchUpdateStrategy() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const clusterName = "clusterName"; + const clusterUpdateParameters: ClusterPatchParameters = { + tags: { key1: "myvalue1", key2: "myvalue2" }, + updateStrategy: { + maxUnavailable: 4, + strategyType: "Rack", + thresholdType: "CountSuccess", + thresholdValue: 4, + waitTimeMinutes: 10, + }, + }; + const options: ClustersUpdateOptionalParams = { clusterUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.clusters.beginUpdateAndWait( + resourceGroupName, + clusterName, + options, + ); + console.log(result); +} + +async function main() { + patchClusterAggregatorOrSingleRackDefinition(); + patchClusterCommandOutput(); + patchClusterLocation(); + patchRuntimeProtectionConfiguration(); + patchSecretArchive(); + patchUpdateStrategy(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateVersionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersUpdateVersionSample.ts similarity index 89% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateVersionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersUpdateVersionSample.ts index 5a282913c830..e8e0d647b315 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/clustersUpdateVersionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/clustersUpdateVersionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ClusterUpdateVersionParameters, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update the version of the provided cluster to one of the available supported versions. * * @summary Update the version of the provided cluster to one of the available supported versions. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_UpdateVersion.json */ async function updateClusterVersion() { const subscriptionId = @@ -31,14 +31,14 @@ async function updateClusterVersion() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const clusterName = "clusterName"; const clusterUpdateVersionParameters: ClusterUpdateVersionParameters = { - targetClusterVersion: "2.0" + targetClusterVersion: "2.0", }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.clusters.beginUpdateVersionAndWait( resourceGroupName, clusterName, - clusterUpdateVersionParameters + clusterUpdateVersionParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesCreateOrUpdateSample.ts similarity index 83% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesCreateOrUpdateSample.ts index 6bedc871d012..b954c189d226 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new virtual machine console or update the properties of the existing virtual machine console. * * @summary Create a new virtual machine console or update the properties of the existing virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Create.json */ async function createOrUpdateVirtualMachineConsole() { const subscriptionId = @@ -32,16 +32,15 @@ async function createOrUpdateVirtualMachineConsole() { enabled: "True", expiration: new Date("2022-06-01T01:27:03.008Z"), extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName", + type: "CustomLocation", }, location: "location", sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", }, - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); @@ -49,7 +48,7 @@ async function createOrUpdateVirtualMachineConsole() { resourceGroupName, virtualMachineName, consoleName, - consoleParameters + consoleParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesDeleteSample.ts similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesDeleteSample.ts index de771fea82ca..0b55048fecca 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided virtual machine console. * * @summary Delete the provided virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Delete.json */ async function deleteVirtualMachineConsole() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteVirtualMachineConsole() { const result = await client.consoles.beginDeleteAndWait( resourceGroupName, virtualMachineName, - consoleName + consoleName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesGetSample.ts similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesGetSample.ts index b78b765d7d5e..ebf9811607ce 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided virtual machine console. * * @summary Get properties of the provided virtual machine console. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Get.json */ async function getVirtualMachineConsole() { const subscriptionId = @@ -33,7 +33,7 @@ async function getVirtualMachineConsole() { const result = await client.consoles.get( resourceGroupName, virtualMachineName, - consoleName + consoleName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesListByVirtualMachineSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesListByVirtualMachineSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesListByVirtualMachineSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesListByVirtualMachineSample.ts index 18a5b366f4fd..09c3ab9eefc3 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesListByVirtualMachineSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesListByVirtualMachineSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of consoles for the provided virtual machine. * * @summary Get a list of consoles for the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_ListByVirtualMachine.json */ async function listConsolesOfTheVirtualMachine() { const subscriptionId = @@ -32,7 +32,7 @@ async function listConsolesOfTheVirtualMachine() { const resArray = new Array(); for await (let item of client.consoles.listByVirtualMachine( resourceGroupName, - virtualMachineName + virtualMachineName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesUpdateSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesUpdateSample.ts index 79bc537d32ac..45c35c2d0766 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/consolesUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/consolesUpdateSample.ts @@ -11,7 +11,7 @@ import { ConsolePatchParameters, ConsolesUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. * * @summary Patch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Patch.json */ async function patchVirtualMachineConsole() { const subscriptionId = @@ -37,9 +37,9 @@ async function patchVirtualMachineConsole() { expiration: new Date("2022-06-01T01:27:03.008Z"), sshPublicKey: { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", }, - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: ConsolesUpdateOptionalParams = { consoleUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -48,7 +48,7 @@ async function patchVirtualMachineConsole() { resourceGroupName, virtualMachineName, consoleName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..ac0651811c2a --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesCreateOrUpdateSample.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + KubernetesClusterFeature, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * + * @summary Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Create.json + */ +async function createOrUpdateKubernetesClusterFeature() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const featureName = "featureName"; + const kubernetesClusterFeatureParameters: KubernetesClusterFeature = { + location: "location", + options: [{ key: "featureOptionName", value: "featureOptionValue" }], + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = + await client.kubernetesClusterFeatures.beginCreateOrUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + featureName, + kubernetesClusterFeatureParameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateKubernetesClusterFeature(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesDeleteSample.ts new file mode 100644 index 000000000000..1a7aad6538cc --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete the provided Kubernetes cluster feature. + * + * @summary Delete the provided Kubernetes cluster feature. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Delete.json + */ +async function deleteKubernetesClusterFeature() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const featureName = "featureName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusterFeatures.beginDeleteAndWait( + resourceGroupName, + kubernetesClusterName, + featureName, + ); + console.log(result); +} + +async function main() { + deleteKubernetesClusterFeature(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesGetSample.ts new file mode 100644 index 000000000000..f523f683a5d1 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get properties of the provided the Kubernetes cluster feature. + * + * @summary Get properties of the provided the Kubernetes cluster feature. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Get.json + */ +async function getKubernetesClusterFeature() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const featureName = "featureName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusterFeatures.get( + resourceGroupName, + kubernetesClusterName, + featureName, + ); + console.log(result); +} + +async function main() { + getKubernetesClusterFeature(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesListByKubernetesClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesListByKubernetesClusterSample.ts new file mode 100644 index 000000000000..5d856fd7fd8a --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesListByKubernetesClusterSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a list of features for the provided Kubernetes cluster. + * + * @summary Get a list of features for the provided Kubernetes cluster. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_ListByKubernetesCluster.json + */ +async function listFeaturesForTheKubernetesCluster() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.kubernetesClusterFeatures.listByKubernetesCluster( + resourceGroupName, + kubernetesClusterName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listFeaturesForTheKubernetesCluster(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesUpdateSample.ts new file mode 100644 index 000000000000..9066690dd962 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClusterFeaturesUpdateSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + KubernetesClusterFeaturePatchParameters, + KubernetesClusterFeaturesUpdateOptionalParams, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch properties of the provided Kubernetes cluster feature. + * + * @summary Patch properties of the provided Kubernetes cluster feature. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Patch.json + */ +async function patchKubernetesClusterFeature() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const featureName = "featureName"; + const kubernetesClusterFeatureUpdateParameters: KubernetesClusterFeaturePatchParameters = + { + options: [{ key: "featureOptionName", value: "featureOptionValue" }], + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: KubernetesClusterFeaturesUpdateOptionalParams = { + kubernetesClusterFeatureUpdateParameters, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusterFeatures.beginUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + featureName, + options, + ); + console.log(result); +} + +async function main() { + patchKubernetesClusterFeature(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersCreateOrUpdateSample.ts new file mode 100644 index 000000000000..19ed7ee379b4 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersCreateOrUpdateSample.ts @@ -0,0 +1,345 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { KubernetesCluster, NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a new Kubernetes cluster or update the properties of the existing one. + * + * @summary Create a new Kubernetes cluster or update the properties of the existing one. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Create.json + */ +async function createOrUpdateKubernetesCluster() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const kubernetesClusterParameters: KubernetesCluster = { + aadConfiguration: { + adminGroupObjectIds: ["ffffffff-ffff-ffff-ffff-ffffffffffff"], + }, + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + controlPlaneNodeConfiguration: { + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + availabilityZones: ["1", "2", "3"], + count: 3, + vmSkuName: "NC_XXXX", + }, + extendedLocation: { + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", + }, + initialAgentPoolConfigurations: [ + { + name: "SystemPool-1", + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, + attachedNetworkConfiguration: { + l2Networks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", + pluginType: "DPDK", + }, + ], + l3Networks: [ + { + ipamEnabled: "False", + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + pluginType: "SRIOV", + }, + ], + trunkedNetworks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", + pluginType: "MACVLAN", + }, + ], + }, + availabilityZones: ["1", "2", "3"], + count: 3, + labels: [{ key: "kubernetes.label", value: "true" }], + mode: "System", + taints: [{ key: "kubernetes.taint", value: "true" }], + upgradeSettings: { maxSurge: "1" }, + vmSkuName: "NC_XXXX", + }, + ], + kubernetesVersion: "1.XX.Y", + location: "location", + managedResourceGroupConfiguration: { + name: "my-managed-rg", + location: "East US", + }, + networkConfiguration: { + attachedNetworkConfiguration: { + l2Networks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", + pluginType: "DPDK", + }, + ], + l3Networks: [ + { + ipamEnabled: "False", + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + pluginType: "SRIOV", + }, + ], + trunkedNetworks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", + pluginType: "MACVLAN", + }, + ], + }, + bgpServiceLoadBalancerConfiguration: { + bgpAdvertisements: [ + { + advertiseToFabric: "True", + communities: ["64512:100"], + ipAddressPools: ["pool1"], + peers: ["peer1"], + }, + ], + bgpPeers: [ + { + name: "peer1", + bfdEnabled: "False", + bgpMultiHop: "False", + holdTime: "P300s", + keepAliveTime: "P300s", + myAsn: 64512, + peerAddress: "203.0.113.254", + peerAsn: 64497, + peerPort: 179, + }, + ], + fabricPeeringEnabled: "True", + ipAddressPools: [ + { + name: "pool1", + addresses: ["198.51.102.0/24"], + autoAssign: "True", + onlyUseHostIps: "True", + }, + ], + }, + cloudServicesNetworkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", + cniNetworkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + dnsServiceIp: "198.51.101.2", + podCidrs: ["198.51.100.0/24"], + serviceCidrs: ["198.51.101.0/24"], + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusters.beginCreateOrUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + kubernetesClusterParameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Create a new Kubernetes cluster or update the properties of the existing one. + * + * @summary Create a new Kubernetes cluster or update the properties of the existing one. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_L2LoadBalancer_Create.json + */ +async function createOrUpdateKubernetesClusterWithALayer2LoadBalancer() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const kubernetesClusterParameters: KubernetesCluster = { + aadConfiguration: { + adminGroupObjectIds: ["ffffffff-ffff-ffff-ffff-ffffffffffff"], + }, + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + controlPlaneNodeConfiguration: { + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + availabilityZones: ["1", "2", "3"], + count: 3, + vmSkuName: "NC_XXXX", + }, + extendedLocation: { + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", + }, + initialAgentPoolConfigurations: [ + { + name: "SystemPool-1", + administratorConfiguration: { + adminUsername: "azure", + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + agentOptions: { hugepagesCount: 96, hugepagesSize: "1G" }, + attachedNetworkConfiguration: { + l2Networks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", + pluginType: "DPDK", + }, + ], + l3Networks: [ + { + ipamEnabled: "False", + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + pluginType: "SRIOV", + }, + ], + trunkedNetworks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", + pluginType: "MACVLAN", + }, + ], + }, + availabilityZones: ["1", "2", "3"], + count: 3, + labels: [{ key: "kubernetes.label", value: "true" }], + mode: "System", + taints: [{ key: "kubernetes.taint", value: "true" }], + upgradeSettings: { maxSurge: "1" }, + vmSkuName: "NC_XXXX", + }, + ], + kubernetesVersion: "1.XX.Y", + location: "location", + managedResourceGroupConfiguration: { + name: "my-managed-rg", + location: "East US", + }, + networkConfiguration: { + attachedNetworkConfiguration: { + l2Networks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName", + pluginType: "DPDK", + }, + ], + l3Networks: [ + { + ipamEnabled: "False", + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + pluginType: "SRIOV", + }, + ], + trunkedNetworks: [ + { + networkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName", + pluginType: "MACVLAN", + }, + ], + }, + cloudServicesNetworkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", + cniNetworkId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName", + dnsServiceIp: "198.51.101.2", + l2ServiceLoadBalancerConfiguration: { + ipAddressPools: [ + { + name: "pool1", + addresses: ["198.51.102.2-198.51.102.254"], + autoAssign: "True", + }, + ], + }, + podCidrs: ["198.51.100.0/24"], + serviceCidrs: ["198.51.101.0/24"], + }, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusters.beginCreateOrUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + kubernetesClusterParameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateKubernetesCluster(); + createOrUpdateKubernetesClusterWithALayer2LoadBalancer(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersDeleteSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersDeleteSample.ts index 1350c6cedc9b..9ac3d0cb4448 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided Kubernetes cluster. * * @summary Delete the provided Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Delete.json */ async function deleteKubernetesCluster() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteKubernetesCluster() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.kubernetesClusters.beginDeleteAndWait( resourceGroupName, - kubernetesClusterName + kubernetesClusterName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersGetSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersGetSample.ts index ead163c25371..b373918d3c43 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided the Kubernetes cluster. * * @summary Get properties of the provided the Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Get.json */ async function getKubernetesCluster() { const subscriptionId = @@ -31,7 +31,7 @@ async function getKubernetesCluster() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.kubernetesClusters.get( resourceGroupName, - kubernetesClusterName + kubernetesClusterName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersListByResourceGroupSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListByResourceGroupSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersListByResourceGroupSample.ts index 0141f2f6a1c1..d82c55f07927 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of Kubernetes clusters in the provided resource group. * * @summary Get a list of Kubernetes clusters in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_ListByResourceGroup.json */ async function listKubernetesClustersForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listKubernetesClustersForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.kubernetesClusters.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersListBySubscriptionSample.ts index fadbf0774006..1c194a841a0c 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of Kubernetes clusters in the provided subscription. * * @summary Get a list of Kubernetes clusters in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_ListBySubscription.json */ async function listKubernetesClustersForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersRestartNodeSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersRestartNodeSample.ts similarity index 87% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersRestartNodeSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersRestartNodeSample.ts index 1f5f7fda3ba2..20ce002585cd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/kubernetesClustersRestartNodeSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersRestartNodeSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { KubernetesClusterRestartNodeParameters, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Restart a targeted node of a Kubernetes cluster. * * @summary Restart a targeted node of a Kubernetes cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_RestartNode.json */ async function restartAKubernetesClusterNode() { const subscriptionId = @@ -30,15 +30,14 @@ async function restartAKubernetesClusterNode() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const kubernetesClusterName = "kubernetesClusterName"; - const kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters = { - nodeName: "nodeName" - }; + const kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters = + { nodeName: "nodeName" }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.kubernetesClusters.beginRestartNodeAndWait( resourceGroupName, kubernetesClusterName, - kubernetesClusterRestartNodeParameters + kubernetesClusterRestartNodeParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersUpdateSample.ts new file mode 100644 index 000000000000..2355f51f6e1a --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/kubernetesClustersUpdateSample.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + KubernetesClusterPatchParameters, + KubernetesClustersUpdateOptionalParams, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. + * + * @summary Patch the properties of the provided Kubernetes cluster, or update the tags associated with the Kubernetes cluster. Properties and tag updates can be done independently. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Patch.json + */ +async function patchKubernetesCluster() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const kubernetesClusterName = "kubernetesClusterName"; + const kubernetesClusterUpdateParameters: KubernetesClusterPatchParameters = { + administratorConfiguration: { + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + controlPlaneNodeConfiguration: { + administratorConfiguration: { + sshPublicKeys: [ + { + keyData: + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, + ], + }, + count: 3, + }, + kubernetesVersion: "1.XX.Y", + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: KubernetesClustersUpdateOptionalParams = { + kubernetesClusterUpdateParameters, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.kubernetesClusters.beginUpdateAndWait( + resourceGroupName, + kubernetesClusterName, + options, + ); + console.log(result); +} + +async function main() { + patchKubernetesCluster(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksCreateOrUpdateSample.ts similarity index 82% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksCreateOrUpdateSample.ts index e98e1748cb8f..31bec9c2b227 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new layer 2 (L2) network or update the properties of the existing network. * * @summary Create a new layer 2 (L2) network or update the properties of the existing network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Create.json */ async function createOrUpdateL2Network() { const subscriptionId = @@ -29,23 +29,22 @@ async function createOrUpdateL2Network() { const l2NetworkName = "l2NetworkName"; const l2NetworkParameters: L2Network = { extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, hybridAksPluginType: "DPDK", interfaceName: "eth0", l2IsolationDomainId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.l2Networks.beginCreateOrUpdateAndWait( resourceGroupName, l2NetworkName, - l2NetworkParameters + l2NetworkParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksDeleteSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksDeleteSample.ts index 926c5fa7977f..37c1b4b6eedd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided layer 2 (L2) network. * * @summary Delete the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Delete.json */ async function deleteL2Network() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteL2Network() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.l2Networks.beginDeleteAndWait( resourceGroupName, - l2NetworkName + l2NetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksGetSample.ts similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksGetSample.ts index b9f744d589d5..a0164a1024e9 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided layer 2 (L2) network. * * @summary Get properties of the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Get.json */ async function getL2Network() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksListByResourceGroupSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListByResourceGroupSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksListByResourceGroupSample.ts index 1181459cdac7..cce081fb9f82 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of layer 2 (L2) networks in the provided resource group. * * @summary Get a list of layer 2 (L2) networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_ListByResourceGroup.json */ async function listL2NetworksForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listL2NetworksForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.l2Networks.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksListBySubscriptionSample.ts index aaacc45b6098..97e4c5fd1ee4 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of layer 2 (L2) networks in the provided subscription. * * @summary Get a list of layer 2 (L2) networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_ListBySubscription.json */ async function listL2NetworksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksUpdateSample.ts similarity index 90% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksUpdateSample.ts index 9d097b2c628b..5b774ff6c176 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l2NetworksUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l2NetworksUpdateSample.ts @@ -11,7 +11,7 @@ import { L2NetworkPatchParameters, L2NetworksUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update tags associated with the provided layer 2 (L2) network. * * @summary Update tags associated with the provided layer 2 (L2) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Patch.json */ async function patchL2Network() { const subscriptionId = @@ -32,7 +32,7 @@ async function patchL2Network() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const l2NetworkName = "l2NetworkName"; const l2NetworkUpdateParameters: L2NetworkPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: L2NetworksUpdateOptionalParams = { l2NetworkUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -40,7 +40,7 @@ async function patchL2Network() { const result = await client.l2Networks.update( resourceGroupName, l2NetworkName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksCreateOrUpdateSample.ts similarity index 85% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksCreateOrUpdateSample.ts index ff2a59c5e9cd..c68e1554a0ea 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new layer 3 (L3) network or update the properties of the existing network. * * @summary Create a new layer 3 (L3) network or update the properties of the existing network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Create.json */ async function createOrUpdateL3Network() { const subscriptionId = @@ -29,9 +29,8 @@ async function createOrUpdateL3Network() { const l3NetworkName = "l3NetworkName"; const l3NetworkParameters: L3Network = { extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, interfaceName: "eth0", ipAllocationType: "DualStack", @@ -41,14 +40,14 @@ async function createOrUpdateL3Network() { "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName", location: "location", tags: { key1: "myvalue1", key2: "myvalue2" }, - vlan: 12 + vlan: 12, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.l3Networks.beginCreateOrUpdateAndWait( resourceGroupName, l3NetworkName, - l3NetworkParameters + l3NetworkParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksDeleteSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksDeleteSample.ts index 62420a21fcc3..3beb09b522eb 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided layer 3 (L3) network. * * @summary Delete the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Delete.json */ async function deleteL3Network() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteL3Network() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.l3Networks.beginDeleteAndWait( resourceGroupName, - l3NetworkName + l3NetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksGetSample.ts similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksGetSample.ts index f9fa9d18e3d3..6c0bf9238e23 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided layer 3 (L3) network. * * @summary Get properties of the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Get.json */ async function getL3Network() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksListByResourceGroupSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListByResourceGroupSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksListByResourceGroupSample.ts index d9f8111e52ff..ef5ace2744b7 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of layer 3 (L3) networks in the provided resource group. * * @summary Get a list of layer 3 (L3) networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_ListByResourceGroup.json */ async function listL3NetworksForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listL3NetworksForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.l3Networks.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksListBySubscriptionSample.ts index 3a6e4716e65c..40e7098f0c59 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of layer 3 (L3) networks in the provided subscription. * * @summary Get a list of layer 3 (L3) networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_ListBySubscription.json */ async function listL3NetworksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksUpdateSample.ts similarity index 90% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksUpdateSample.ts index c0fbd7adcb39..f4c5d4c6c08c 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/l3NetworksUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/l3NetworksUpdateSample.ts @@ -11,7 +11,7 @@ import { L3NetworkPatchParameters, L3NetworksUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update tags associated with the provided layer 3 (L3) network. * * @summary Update tags associated with the provided layer 3 (L3) network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Patch.json */ async function patchL3Network() { const subscriptionId = @@ -32,7 +32,7 @@ async function patchL3Network() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const l3NetworkName = "l3NetworkName"; const l3NetworkUpdateParameters: L3NetworkPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: L3NetworksUpdateOptionalParams = { l3NetworkUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -40,7 +40,7 @@ async function patchL3Network() { const result = await client.l3Networks.update( resourceGroupName, l3NetworkName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts similarity index 80% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts index e2b6e4933550..5fe9b61cf0c5 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ClusterMetricsConfiguration, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create new or update the existing metrics configuration of the provided cluster. * * @summary Create new or update the existing metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Create.json */ async function createOrUpdateMetricsConfigurationOfCluster() { const subscriptionId = @@ -35,12 +35,11 @@ async function createOrUpdateMetricsConfigurationOfCluster() { collectionInterval: 15, enabledMetrics: ["metric1", "metric2"], extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); @@ -48,7 +47,7 @@ async function createOrUpdateMetricsConfigurationOfCluster() { resourceGroupName, clusterName, metricsConfigurationName, - metricsConfigurationParameters + metricsConfigurationParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsDeleteSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsDeleteSample.ts index 61d449347a3c..59d304855e81 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the metrics configuration of the provided cluster. * * @summary Delete the metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Delete.json */ async function deleteMetricsConfigurationOfCluster() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteMetricsConfigurationOfCluster() { const result = await client.metricsConfigurations.beginDeleteAndWait( resourceGroupName, clusterName, - metricsConfigurationName + metricsConfigurationName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsGetSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsGetSample.ts index 7bd3dc1518ab..73d0ae2712da 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get metrics configuration of the provided cluster. * * @summary Get metrics configuration of the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Get.json */ async function getMetricsConfigurationOfCluster() { const subscriptionId = @@ -33,7 +33,7 @@ async function getMetricsConfigurationOfCluster() { const result = await client.metricsConfigurations.get( resourceGroupName, clusterName, - metricsConfigurationName + metricsConfigurationName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsListByClusterSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsListByClusterSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsListByClusterSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsListByClusterSample.ts index 0db96c289859..71c61471d3d8 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsListByClusterSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsListByClusterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of metrics configurations for the provided cluster. * * @summary Get a list of metrics configurations for the provided cluster. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_ListByCluster.json */ async function listMetricsConfigurationsOfTheCluster() { const subscriptionId = @@ -32,7 +32,7 @@ async function listMetricsConfigurationsOfTheCluster() { const resArray = new Array(); for await (let item of client.metricsConfigurations.listByCluster( resourceGroupName, - clusterName + clusterName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsUpdateSample.ts similarity index 84% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsUpdateSample.ts index a95ab451a933..4cdc8ee1ae35 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/metricsConfigurationsUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/metricsConfigurationsUpdateSample.ts @@ -11,7 +11,7 @@ import { ClusterMetricsConfigurationPatchParameters, MetricsConfigurationsUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. * * @summary Patch properties of metrics configuration for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Patch.json */ async function patchMetricsConfigurationOfCluster() { const subscriptionId = @@ -32,13 +32,14 @@ async function patchMetricsConfigurationOfCluster() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const clusterName = "clusterName"; const metricsConfigurationName = "default"; - const metricsConfigurationUpdateParameters: ClusterMetricsConfigurationPatchParameters = { - collectionInterval: 15, - enabledMetrics: ["metric1", "metric2"], - tags: { key1: "myvalue1", key2: "myvalue2" } - }; + const metricsConfigurationUpdateParameters: ClusterMetricsConfigurationPatchParameters = + { + collectionInterval: 15, + enabledMetrics: ["metric1", "metric2"], + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; const options: MetricsConfigurationsUpdateOptionalParams = { - metricsConfigurationUpdateParameters + metricsConfigurationUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); @@ -46,7 +47,7 @@ async function patchMetricsConfigurationOfCluster() { resourceGroupName, clusterName, metricsConfigurationName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/operationsListSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/operationsListSample.ts new file mode 100644 index 000000000000..68353b739071 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/operationsListSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * + * @summary Get a list of all available resource provider operations. It contains a URL link to get the next set of results. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Operations_List.json + */ +async function listResourceProviderOperations() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listResourceProviderOperations(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/rackSkusGetSample.ts similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/rackSkusGetSample.ts index 75c47ffb32b7..e3f8ff2effeb 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/rackSkusGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of the provided rack SKU. * * @summary Get the properties of the provided rack SKU. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/RackSkus_Get.json */ async function getRackSkuResource() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/rackSkusListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/rackSkusListBySubscriptionSample.ts index 102bbee4b1ab..be1d7a2aefec 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/rackSkusListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/rackSkusListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of rack SKUs in the provided subscription. * * @summary Get a list of rack SKUs in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/RackSkus_ListBySubscription.json */ async function listRackSkUsForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksCreateOrUpdateSample.ts similarity index 76% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksCreateOrUpdateSample.ts index bd47106fee7c..7412607e52bd 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Create a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Create.json */ async function createOrUpdateRack() { const subscriptionId = @@ -32,22 +32,22 @@ async function createOrUpdateRack() { const rackParameters: Rack = { availabilityZone: "1", extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", rackLocation: "Rack 28", rackSerialNumber: "RACK_SERIAL_NUMBER", - rackSkuId: "RACK-TYPE-1", - tags: { key1: "myvalue1", key2: "myvalue2" } + rackSkuId: + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName", + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.racks.beginCreateOrUpdateAndWait( resourceGroupName, rackName, - rackParameters + rackParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksDeleteSample.ts similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksDeleteSample.ts index 175174428e91..90376d4e75fa 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksDeleteSample.ts @@ -20,7 +20,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Delete.json */ async function deleteRack() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteRack() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.racks.beginDeleteAndWait( resourceGroupName, - rackName + rackName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksGetSample.ts similarity index 94% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksGetSample.ts index ce6607ee76e9..88af1a48508f 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided rack. * * @summary Get properties of the provided rack. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Get.json */ async function getRack() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksListByResourceGroupSample.ts similarity index 93% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListByResourceGroupSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksListByResourceGroupSample.ts index 2449a8037439..2149fd803f10 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of racks in the provided resource group. * * @summary Get a list of racks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_ListByResourceGroup.json */ async function listRacksForResourceGroup() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksListBySubscriptionSample.ts index 7c4e2654586c..6ad4e42aeec6 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of racks in the provided subscription. * * @summary Get a list of racks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_ListBySubscription.json */ async function listRacksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksUpdateSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksUpdateSample.ts index c5ca795e2362..0127fe811192 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/racksUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/racksUpdateSample.ts @@ -11,7 +11,7 @@ import { RackPatchParameters, RacksUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. * * @summary Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Patch.json */ async function patchRack() { const subscriptionId = @@ -34,7 +34,7 @@ async function patchRack() { const rackUpdateParameters: RackPatchParameters = { rackLocation: "Rack 2B", rackSerialNumber: "RACK_SERIAL_NUMBER", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: RacksUpdateOptionalParams = { rackUpdateParameters }; const credential = new DefaultAzureCredential(); @@ -42,7 +42,7 @@ async function patchRack() { const result = await client.racks.beginUpdateAndWait( resourceGroupName, rackName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesCreateOrUpdateSample.ts similarity index 84% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesCreateOrUpdateSample.ts index 631149be3396..44ec1a8ad608 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Create a new storage appliance or update the properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Create.json */ async function createOrUpdateStorageAppliance() { const subscriptionId = @@ -32,9 +32,8 @@ async function createOrUpdateStorageAppliance() { const storageApplianceParameters: StorageAppliance = { administratorCredentials: { password: "{password}", username: "adminUser" }, extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", rackId: @@ -42,14 +41,14 @@ async function createOrUpdateStorageAppliance() { rackSlot: 1, serialNumber: "BM1219XXX", storageApplianceSkuId: "684E-3B16-399E", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.storageAppliances.beginCreateOrUpdateAndWait( resourceGroupName, storageApplianceName, - storageApplianceParameters + storageApplianceParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesDeleteSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesDeleteSample.ts index ef264582ebbc..d507feb3877f 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesDeleteSample.ts @@ -20,7 +20,7 @@ All customer initiated requests will be rejected as the life cycle of this resou * * @summary Delete the provided storage appliance. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Delete.json */ async function deleteStorageAppliance() { const subscriptionId = @@ -33,7 +33,7 @@ async function deleteStorageAppliance() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.storageAppliances.beginDeleteAndWait( resourceGroupName, - storageApplianceName + storageApplianceName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts similarity index 83% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts index 0b30a7656114..a3768dc42274 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesDisableRemoteVendorManagementSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disable remote vendor management of the provided storage appliance. * * @summary Disable remote vendor management of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_DisableRemoteVendorManagement.json */ async function turnOffRemoteVendorManagementForStorageAppliance() { const subscriptionId = @@ -29,10 +29,11 @@ async function turnOffRemoteVendorManagementForStorageAppliance() { const storageApplianceName = "storageApplianceName"; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginDisableRemoteVendorManagementAndWait( - resourceGroupName, - storageApplianceName - ); + const result = + await client.storageAppliances.beginDisableRemoteVendorManagementAndWait( + resourceGroupName, + storageApplianceName, + ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts similarity index 77% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts index 7157f25e955e..47ae73681018 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesEnableRemoteVendorManagementSample.ts @@ -11,7 +11,7 @@ import { StorageApplianceEnableRemoteVendorManagementParameters, StorageAppliancesEnableRemoteVendorManagementOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Enable remote vendor management of the provided storage appliance. * * @summary Enable remote vendor management of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_EnableRemoteVendorManagement.json */ async function turnOnRemoteVendorManagementForStorageAppliance() { const subscriptionId = @@ -31,19 +31,19 @@ async function turnOnRemoteVendorManagementForStorageAppliance() { const resourceGroupName = process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const storageApplianceName = "storageApplianceName"; - const storageApplianceEnableRemoteVendorManagementParameters: StorageApplianceEnableRemoteVendorManagementParameters = { - supportEndpoints: ["10.0.0.0/24"] - }; + const storageApplianceEnableRemoteVendorManagementParameters: StorageApplianceEnableRemoteVendorManagementParameters = + { supportEndpoints: ["10.0.0.0/24"] }; const options: StorageAppliancesEnableRemoteVendorManagementOptionalParams = { - storageApplianceEnableRemoteVendorManagementParameters + storageApplianceEnableRemoteVendorManagementParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); - const result = await client.storageAppliances.beginEnableRemoteVendorManagementAndWait( - resourceGroupName, - storageApplianceName, - options - ); + const result = + await client.storageAppliances.beginEnableRemoteVendorManagementAndWait( + resourceGroupName, + storageApplianceName, + options, + ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesGetSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesGetSample.ts index 4dbfb7f083cc..9fafa9fb064c 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided storage appliance. * * @summary Get properties of the provided storage appliance. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Get.json */ async function getStorageAppliance() { const subscriptionId = @@ -31,7 +31,7 @@ async function getStorageAppliance() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.storageAppliances.get( resourceGroupName, - storageApplianceName + storageApplianceName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesListByResourceGroupSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListByResourceGroupSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesListByResourceGroupSample.ts index c8dd5e2dd9f4..1cd278e26780 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of storage appliances in the provided resource group. * * @summary Get a list of storage appliances in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_ListByResourceGroup.json */ async function listStorageAppliancesForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listStorageAppliancesForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.storageAppliances.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesListBySubscriptionSample.ts index e1a91b14d06e..6b50c519f6b1 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of storage appliances in the provided subscription. * * @summary Get a list of storage appliances in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_ListBySubscription.json */ async function listStorageAppliancesForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesUpdateSample.ts similarity index 89% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesUpdateSample.ts index 4fef63297769..65a42d54e8e1 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/storageAppliancesUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/storageAppliancesUpdateSample.ts @@ -11,7 +11,7 @@ import { StorageAppliancePatchParameters, StorageAppliancesUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. * * @summary Update properties of the provided storage appliance, or update tags associated with the storage appliance Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Patch.json */ async function patchStorageAppliance() { const subscriptionId = @@ -33,17 +33,17 @@ async function patchStorageAppliance() { const storageApplianceName = "storageApplianceName"; const storageApplianceUpdateParameters: StorageAppliancePatchParameters = { serialNumber: "BM1219XXX", - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: StorageAppliancesUpdateOptionalParams = { - storageApplianceUpdateParameters + storageApplianceUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.storageAppliances.beginUpdateAndWait( resourceGroupName, storageApplianceName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksCreateOrUpdateSample.ts similarity index 83% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksCreateOrUpdateSample.ts index 6da36dfb08ee..002ecbff0210 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new trunked network or update the properties of the existing trunked network. * * @summary Create a new trunked network or update the properties of the existing trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Create.json */ async function createOrUpdateTrunkedNetwork() { const subscriptionId = @@ -29,25 +29,24 @@ async function createOrUpdateTrunkedNetwork() { const trunkedNetworkName = "trunkedNetworkName"; const trunkedNetworkParameters: TrunkedNetwork = { extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, interfaceName: "eth0", isolationDomainIds: [ "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName", - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName" + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/l3IsolationDomainName", ], location: "location", tags: { key1: "myvalue1", key2: "myvalue2" }, - vlans: [12, 14] + vlans: [12, 14], }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.trunkedNetworks.beginCreateOrUpdateAndWait( resourceGroupName, trunkedNetworkName, - trunkedNetworkParameters + trunkedNetworkParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksDeleteSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksDeleteSample.ts index 4baf6c2974e7..e18a0529774a 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided trunked network. * * @summary Delete the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Delete.json */ async function deleteTrunkedNetwork() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteTrunkedNetwork() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.trunkedNetworks.beginDeleteAndWait( resourceGroupName, - trunkedNetworkName + trunkedNetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksGetSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksGetSample.ts index 1ef09272355e..f2b5e9a4c810 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided trunked network. * * @summary Get properties of the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Get.json */ async function getTrunkedNetwork() { const subscriptionId = @@ -31,7 +31,7 @@ async function getTrunkedNetwork() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.trunkedNetworks.get( resourceGroupName, - trunkedNetworkName + trunkedNetworkName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksListByResourceGroupSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListByResourceGroupSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksListByResourceGroupSample.ts index 60e72145bb4c..5a184c74e367 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of trunked networks in the provided resource group. * * @summary Get a list of trunked networks in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_ListByResourceGroup.json */ async function listTrunkedNetworksForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listTrunkedNetworksForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.trunkedNetworks.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksListBySubscriptionSample.ts index a6630bf4b519..e8259d15f164 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of trunked networks in the provided subscription. * * @summary Get a list of trunked networks in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_ListBySubscription.json */ async function listTrunkedNetworksForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksUpdateSample.ts similarity index 88% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksUpdateSample.ts index c3d281903f00..207a9c3ed034 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/trunkedNetworksUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/trunkedNetworksUpdateSample.ts @@ -11,7 +11,7 @@ import { TrunkedNetworkPatchParameters, TrunkedNetworksUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update tags associated with the provided trunked network. * * @summary Update tags associated with the provided trunked network. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Patch.json */ async function patchTrunkedNetwork() { const subscriptionId = @@ -32,17 +32,17 @@ async function patchTrunkedNetwork() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const trunkedNetworkName = "trunkedNetworkName"; const trunkedNetworkUpdateParameters: TrunkedNetworkPatchParameters = { - tags: { key1: "myvalue1", key2: "myvalue2" } + tags: { key1: "myvalue1", key2: "myvalue2" }, }; const options: TrunkedNetworksUpdateOptionalParams = { - trunkedNetworkUpdateParameters + trunkedNetworkUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.trunkedNetworks.update( resourceGroupName, trunkedNetworkName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesCreateOrUpdateSample.ts similarity index 85% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesCreateOrUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesCreateOrUpdateSample.ts index 8d6718892267..16e1e2e95c95 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesCreateOrUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a new virtual machine or update the properties of the existing virtual machine. * * @summary Create a new virtual machine or update the properties of the existing virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Create.json */ async function createOrUpdateVirtualMachine() { const subscriptionId = @@ -33,13 +33,12 @@ async function createOrUpdateVirtualMachine() { cloudServicesNetworkAttachment: { attachedNetworkId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", - ipAllocationMethod: "Dynamic" + ipAllocationMethod: "Dynamic", }, cpuCores: 2, extendedLocation: { - name: - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", - type: "CustomLocation" + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", }, location: "location", memorySizeGB: 8, @@ -51,8 +50,8 @@ async function createOrUpdateVirtualMachine() { ipAllocationMethod: "Dynamic", ipv4Address: "198.51.100.1", ipv6Address: "2001:0db8:0000:0000:0000:0000:0000:0000", - networkAttachmentName: "netAttachName01" - } + networkAttachmentName: "netAttachName01", + }, ], networkData: "bmV0d29ya0RhdGVTYW1wbGU=", placementHints: [ @@ -61,24 +60,24 @@ async function createOrUpdateVirtualMachine() { resourceId: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", schedulingExecution: "Hard", - scope: "" - } + scope: "", + }, ], sshPublicKeys: [ { keyData: - "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm" - } + "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm", + }, ], storageProfile: { osDisk: { createOption: "Ephemeral", deleteOption: "Delete", - diskSizeGB: 120 + diskSizeGB: 120, }, volumeAttachments: [ - "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/volumes/volumeName" - ] + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/volumes/volumeName", + ], }, tags: { key1: "myvalue1", key2: "myvalue2" }, userData: "dXNlckRhdGVTYW1wbGU=", @@ -87,15 +86,15 @@ async function createOrUpdateVirtualMachine() { vmImageRepositoryCredentials: { password: "{password}", registryUrl: "myacr.azurecr.io", - username: "myuser" - } + username: "myuser", + }, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, virtualMachineName, - virtualMachineParameters + virtualMachineParameters, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesDeleteSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesDeleteSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesDeleteSample.ts index 7e629f112867..2554394d6ebe 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesDeleteSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the provided virtual machine. * * @summary Delete the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Delete.json */ async function deleteVirtualMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function deleteVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginDeleteAndWait( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesGetSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesGetSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesGetSample.ts index d725e7bb842d..229cb0ff9010 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesGetSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get properties of the provided virtual machine. * * @summary Get properties of the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Get.json */ async function getVirtualMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function getVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.get( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesListByResourceGroupSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListByResourceGroupSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesListByResourceGroupSample.ts index facafcb8ce03..0031a31b1973 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of virtual machines in the provided resource group. * * @summary Get a list of virtual machines in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_ListByResourceGroup.json */ async function listVirtualMachinesForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listVirtualMachinesForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachines.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesListBySubscriptionSample.ts index 2ed3944d2b45..0e6ac5e7fb12 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of virtual machines in the provided subscription. * * @summary Get a list of virtual machines in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_ListBySubscription.json */ async function listVirtualMachinesForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesPowerOffSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesPowerOffSample.ts similarity index 89% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesPowerOffSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesPowerOffSample.ts index c706c16583ea..c3a9b1dd89ea 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesPowerOffSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesPowerOffSample.ts @@ -11,7 +11,7 @@ import { VirtualMachinePowerOffParameters, VirtualMachinesPowerOffOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Power off the provided virtual machine. * * @summary Power off the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_PowerOff.json */ async function powerOffVirtualMachine() { const subscriptionId = @@ -32,17 +32,17 @@ async function powerOffVirtualMachine() { process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; const virtualMachineName = "virtualMachineName"; const virtualMachinePowerOffParameters: VirtualMachinePowerOffParameters = { - skipShutdown: "True" + skipShutdown: "True", }; const options: VirtualMachinesPowerOffOptionalParams = { - virtualMachinePowerOffParameters + virtualMachinePowerOffParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginPowerOffAndWait( resourceGroupName, virtualMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesReimageSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesReimageSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesReimageSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesReimageSample.ts index eb5b51d4f9fe..46f8cf3aeb7c 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesReimageSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesReimageSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reimage the provided virtual machine. * * @summary Reimage the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Reimage.json */ async function reimageVirtualMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function reimageVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginReimageAndWait( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesRestartSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesRestartSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesRestartSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesRestartSample.ts index 1cfdb6d2a9e0..07933531d444 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesRestartSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesRestartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Restart the provided virtual machine. * * @summary Restart the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Restart.json */ async function restartVirtualMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function restartVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginRestartAndWait( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesStartSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesStartSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesStartSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesStartSample.ts index 55bcc24d32e0..6f8b0a3a5696 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesStartSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesStartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Start the provided virtual machine. * * @summary Start the provided virtual machine. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Start.json */ async function startVirtualMachine() { const subscriptionId = @@ -31,7 +31,7 @@ async function startVirtualMachine() { const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginStartAndWait( resourceGroupName, - virtualMachineName + virtualMachineName, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesUpdateSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesUpdateSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesUpdateSample.ts index b4c906a0564c..5bbe8699eee7 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/virtualMachinesUpdateSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/virtualMachinesUpdateSample.ts @@ -11,7 +11,7 @@ import { VirtualMachinePatchParameters, VirtualMachinesUpdateOptionalParams, - NetworkCloud + NetworkCloud, } from "@azure/arm-networkcloud"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. * * @summary Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Patch.json */ async function patchVirtualMachine() { const subscriptionId = @@ -36,18 +36,18 @@ async function patchVirtualMachine() { vmImageRepositoryCredentials: { password: "{password}", registryUrl: "myacr.azurecr.io", - username: "myuser" - } + username: "myuser", + }, }; const options: VirtualMachinesUpdateOptionalParams = { - virtualMachineUpdateParameters + virtualMachineUpdateParameters, }; const credential = new DefaultAzureCredential(); const client = new NetworkCloud(credential, subscriptionId); const result = await client.virtualMachines.beginUpdateAndWait( resourceGroupName, virtualMachineName, - options + options, ); console.log(result); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesCreateOrUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..8ef7a264a3d6 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesCreateOrUpdateSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { Volume, NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a new volume or update the properties of the existing one. + * + * @summary Create a new volume or update the properties of the existing one. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Create.json + */ +async function createOrUpdateVolume() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const volumeName = "volumeName"; + const volumeParameters: Volume = { + extendedLocation: { + name: "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", + type: "CustomLocation", + }, + location: "location", + sizeMiB: 10000, + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.volumes.beginCreateOrUpdateAndWait( + resourceGroupName, + volumeName, + volumeParameters, + ); + console.log(result); +} + +async function main() { + createOrUpdateVolume(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesDeleteSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesDeleteSample.ts new file mode 100644 index 000000000000..714bbc1b5e3d --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesDeleteSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete the provided volume. + * + * @summary Delete the provided volume. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Delete.json + */ +async function deleteVolume() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const volumeName = "volumeName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.volumes.beginDeleteAndWait( + resourceGroupName, + volumeName, + ); + console.log(result); +} + +async function main() { + deleteVolume(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesGetSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesGetSample.ts new file mode 100644 index 000000000000..ba640c877a79 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesGetSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkCloud } from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get properties of the provided volume. + * + * @summary Get properties of the provided volume. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Get.json + */ +async function getVolume() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const volumeName = "volumeName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.volumes.get(resourceGroupName, volumeName); + console.log(result); +} + +async function main() { + getVolume(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListByResourceGroupSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesListByResourceGroupSample.ts similarity index 91% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListByResourceGroupSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesListByResourceGroupSample.ts index 4bb197be20b2..06d74ab0501a 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListByResourceGroupSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of volumes in the provided resource group. * * @summary Get a list of volumes in the provided resource group. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_ListByResourceGroup.json */ async function listVolumesForResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function listVolumesForResourceGroup() { const client = new NetworkCloud(credential, subscriptionId); const resArray = new Array(); for await (let item of client.volumes.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListBySubscriptionSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesListBySubscriptionSample.ts similarity index 92% rename from sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListBySubscriptionSample.ts rename to sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesListBySubscriptionSample.ts index 5b8d66ceddaf..dfcc9e784087 100644 --- a/sdk/networkcloud/arm-networkcloud/samples/v1/typescript/src/volumesListBySubscriptionSample.ts +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a list of volumes in the provided subscription. * * @summary Get a list of volumes in the provided subscription. - * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_ListBySubscription.json */ async function listVolumeForSubscription() { const subscriptionId = diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesUpdateSample.ts b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesUpdateSample.ts new file mode 100644 index 000000000000..26ea1bc26850 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/src/volumesUpdateSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + VolumePatchParameters, + VolumesUpdateOptionalParams, + NetworkCloud, +} from "@azure/arm-networkcloud"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update tags associated with the provided volume. + * + * @summary Update tags associated with the provided volume. + * x-ms-original-file: specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Patch.json + */ +async function patchVolume() { + const subscriptionId = + process.env["NETWORKCLOUD_SUBSCRIPTION_ID"] || + "123e4567-e89b-12d3-a456-426655440000"; + const resourceGroupName = + process.env["NETWORKCLOUD_RESOURCE_GROUP"] || "resourceGroupName"; + const volumeName = "volumeName"; + const volumeUpdateParameters: VolumePatchParameters = { + tags: { key1: "myvalue1", key2: "myvalue2" }, + }; + const options: VolumesUpdateOptionalParams = { volumeUpdateParameters }; + const credential = new DefaultAzureCredential(); + const client = new NetworkCloud(credential, subscriptionId); + const result = await client.volumes.update( + resourceGroupName, + volumeName, + options, + ); + console.log(result); +} + +async function main() { + patchVolume(); +} + +main().catch(console.error); diff --git a/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/tsconfig.json b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/tsconfig.json new file mode 100644 index 000000000000..984eed535aa8 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/samples/v2-beta/typescript/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src/**/*.ts" + ] +} diff --git a/sdk/networkcloud/arm-networkcloud/src/lroImpl.ts b/sdk/networkcloud/arm-networkcloud/src/lroImpl.ts index 52f6eaacfb83..5f88efab981b 100644 --- a/sdk/networkcloud/arm-networkcloud/src/lroImpl.ts +++ b/sdk/networkcloud/arm-networkcloud/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/networkcloud/arm-networkcloud/src/models/index.ts b/sdk/networkcloud/arm-networkcloud/src/models/index.ts index 92e8f4a40567..8a3bed5124e2 100644 --- a/sdk/networkcloud/arm-networkcloud/src/models/index.ts +++ b/sdk/networkcloud/arm-networkcloud/src/models/index.ts @@ -245,6 +245,83 @@ export interface HardwareValidationStatus { readonly result?: BareMetalMachineHardwareValidationResult; } +/** RuntimeProtectionStatus represents the runtime protection status of the bare metal machine. */ +export interface RuntimeProtectionStatus { + /** + * The timestamp when the malware definitions were last updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly definitionsLastUpdated?: Date; + /** + * The version of the malware definitions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly definitionsVersion?: string; + /** + * The timestamp of the most recently completed scan, or empty if there has never been a scan. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scanCompletedTime?: Date; + /** + * The timestamp of the most recently scheduled scan, or empty if no scan has been scheduled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scanScheduledTime?: Date; + /** + * The timestamp of the most recently started scan, or empty if there has never been a scan. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scanStartedTime?: Date; +} + +/** SecretRotationStatus represents the status of a secret rotation. */ +export interface SecretRotationStatus { + /** + * The maximum number of days the secret may be used before it must be changed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly expirePeriodDays?: number; + /** + * The date and time when the secret was last changed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastRotationTime?: Date; + /** + * The number of days a secret exists before rotations will be attempted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly rotationPeriodDays?: number; + /** + * The reference to the secret in a key vault. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secretArchiveReference?: SecretArchiveReference; + /** + * The type name used to identify the purpose of the secret. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secretType?: string; +} + +/** SecretArchiveReference represents the reference to a secret in a key vault. */ +export interface SecretArchiveReference { + /** + * The resource ID of the key vault containing the secret. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly keyVaultId?: string; + /** + * The name of the secret in the key vault. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secretName?: string; + /** + * The version of the secret in the key vault. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secretVersion?: string; +} + /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** @@ -317,6 +394,40 @@ export interface ClusterManagerList { value?: ClusterManager[]; } +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface ManagedServiceIdentity { + /** + * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ + type: ManagedServiceIdentityType; + /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity | null; + }; +} + +/** User assigned identity properties */ +export interface UserAssignedIdentity { + /** + * The principal ID of the assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client ID of the assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; +} + /** ClusterAvailableVersion represents the cluster version that the cluster manager can be asked to create and manage. */ export interface ClusterAvailableVersion { /** @@ -439,21 +550,21 @@ export interface ClusterAvailableUpgradeVersion { /** ClusterCapacity represents various details regarding compute capacity. */ export interface ClusterCapacity { - /** The remaining appliance-based storage in GB available for workload use. */ + /** The remaining appliance-based storage in GB available for workload use. Measured in gibibytes. */ availableApplianceStorageGB?: number; /** The remaining number of cores that are available in this cluster for workload use. */ availableCoreCount?: number; - /** The remaining machine or host-based storage in GB available for workload use. */ + /** The remaining machine or host-based storage in GB available for workload use. Measured in gibibytes. */ availableHostStorageGB?: number; - /** The remaining memory in GB that are available in this cluster for workload use. */ + /** The remaining memory in GB that are available in this cluster for workload use. Measured in gibibytes. */ availableMemoryGB?: number; - /** The total appliance-based storage in GB supported by this cluster for workload use. */ + /** The total appliance-based storage in GB supported by this cluster for workload use. Measured in gibibytes. */ totalApplianceStorageGB?: number; /** The total number of cores that are supported by this cluster for workload use. */ totalCoreCount?: number; - /** The total machine or host-based storage in GB supported by this cluster for workload use. */ + /** The total machine or host-based storage in GB supported by this cluster for workload use. Measured in gibibytes. */ totalHostStorageGB?: number; - /** The total memory supported by this cluster for workload use. */ + /** The total memory supported by this cluster for workload use. Measured in gibibytes. */ totalMemoryGB?: number; } @@ -469,6 +580,22 @@ export interface ServicePrincipalInformation { tenantId: string; } +/** CommandOutputSettings represents the settings for commands run within the cluster such as bare metal machine run read-only commands. */ +export interface CommandOutputSettings { + /** The selection of the managed identity to use with this storage account container. The identity type must be either system assigned or user assigned. */ + associatedIdentity?: IdentitySelector; + /** The URL of the storage account container that is to be used by the specified identities. */ + containerUrl?: string; +} + +/** IdentitySelector represents the selection of a managed identity for use. */ +export interface IdentitySelector { + /** The type of managed identity that is being selected. */ + identityType?: ManagedServiceIdentitySelectorType; + /** The user assigned managed identity resource ID to use. Mutually exclusive with a system assigned identity type. */ + userAssignedIdentityResourceId?: string; +} + /** ValidationThreshold indicates allowed machine and node hardware and deployment failures. */ export interface ValidationThreshold { /** Selection of how the type evaluation is applied to the cluster calculation. */ @@ -479,6 +606,37 @@ export interface ValidationThreshold { value: number; } +/** RuntimeProtectionConfiguration represents the runtime protection configuration for the cluster. */ +export interface RuntimeProtectionConfiguration { + /** The mode of operation for runtime protection. */ + enforcementLevel?: RuntimeProtectionEnforcementLevel; +} + +/** ClusterSecretArchive configures the key vault to archive the secrets of the cluster for later retrieval. */ +export interface ClusterSecretArchive { + /** The resource ID of the key vault to archive the secrets of the cluster. */ + keyVaultId: string; + /** The indicator if the specified key vault should be used to archive the secrets of the cluster. */ + useKeyVault?: ClusterSecretArchiveEnabled; +} + +/** ClusterUpdateStrategy represents the strategy for updating the cluster. */ +export interface ClusterUpdateStrategy { + /** + * The maximum number of worker nodes that can be offline within the increment of update, e.g., rack-by-rack. + * Limited by the maximum number of machines in the increment. Defaults to the whole increment size. + */ + maxUnavailable?: number; + /** The mode of operation for runtime protection. */ + strategyType: ClusterUpdateStrategyType; + /** Selection of how the threshold should be evaluated. */ + thresholdType: ValidationThresholdType; + /** The numeric threshold value. */ + thresholdValue: number; + /** The time to wait between the increments of update defined by the strategy. */ + waitTimeMinutes?: number; +} + /** KubernetesClusterList represents a list of Kubernetes clusters. */ export interface KubernetesClusterList { /** The link used to get the next page of operations. */ @@ -637,15 +795,19 @@ export interface KubernetesLabel { /** AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. */ export interface AgentPoolUpgradeSettings { - /** The maximum number or percentage of nodes that are surged during upgrade. This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified, the default is 1. */ + /** The maximum time in seconds that is allowed for a node drain to complete before proceeding with the upgrade of the agent pool. If not specified during creation, a value of 1800 seconds is used. */ + drainTimeout?: number; + /** The maximum number or percentage of nodes that are surged during upgrade. This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified during creation, a value of 1 is used. One of MaxSurge and MaxUnavailable must be greater than 0. */ maxSurge?: string; + /** The maximum number or percentage of nodes that can be unavailable during upgrade. This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified during creation, a value of 0 is used. One of MaxSurge and MaxUnavailable must be greater than 0. */ + maxUnavailable?: string; } /** NetworkConfiguration specifies the Kubernetes cluster network related configuration. */ export interface NetworkConfiguration { /** The configuration of networks being attached to the cluster for use by the workloads that run on this Kubernetes cluster. */ attachedNetworkConfiguration?: AttachedNetworkConfiguration; - /** The configuration of the BGP service load balancer for this Kubernetes cluster. */ + /** The configuration of the BGP service load balancer for this Kubernetes cluster. A maximum of one service load balancer may be specified, either Layer 2 or BGP. */ bgpServiceLoadBalancerConfiguration?: BgpServiceLoadBalancerConfiguration; /** The resource ID of the associated Cloud Services network. */ cloudServicesNetworkId: string; @@ -653,6 +815,8 @@ export interface NetworkConfiguration { cniNetworkId: string; /** The IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in service CIDR. */ dnsServiceIp?: string; + /** The configuration of the Layer 2 service load balancer for this Kubernetes cluster. A maximum of one service load balancer may be specified, either Layer 2 or BGP. */ + l2ServiceLoadBalancerConfiguration?: L2ServiceLoadBalancerConfiguration; /** The CIDR notation IP ranges from which to assign pod IPs. One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. */ podCidrs?: string[]; /** The CIDR notation IP ranges from which to assign service IPs. One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. */ @@ -667,7 +831,7 @@ export interface BgpServiceLoadBalancerConfiguration { bgpPeers?: ServiceLoadBalancerBgpPeer[]; /** The indicator to specify if the load balancer peers with the network fabric. */ fabricPeeringEnabled?: FabricPeeringEnabled; - /** The list of pools of IP addresses that can be allocated to Load Balancer services. */ + /** The list of pools of IP addresses that can be allocated to load balancer services. */ ipAddressPools?: IpAddressPool[]; } @@ -689,9 +853,9 @@ export interface ServiceLoadBalancerBgpPeer { bfdEnabled?: BfdEnabled; /** The indicator to enable multi-hop peering support. */ bgpMultiHop?: BgpMultiHop; - /** The requested BGP hold time value. This field uses ISO 8601 duration format, for example P1H. */ + /** Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The requested BGP hold time value. This field uses ISO 8601 duration format, for example P1H. */ holdTime?: string; - /** The requested BGP keepalive time value. This field uses ISO 8601 duration format, for example P1H. */ + /** Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The requested BGP keepalive time value. This field uses ISO 8601 duration format, for example P1H. */ keepAliveTime?: string; /** The autonomous system number used for the local end of the BGP session. */ myAsn?: number; @@ -709,7 +873,7 @@ export interface ServiceLoadBalancerBgpPeer { /** IpAddressPool represents a pool of IP addresses that can be allocated to a service. */ export interface IpAddressPool { - /** The list of IP address ranges. Each range can be a either a subnet in CIDR format or an explicit start-end range of IP addresses. */ + /** The list of IP address ranges. Each range can be a either a subnet in CIDR format or an explicit start-end range of IP addresses. For a BGP service load balancer configuration, only CIDR format is supported and excludes /32 (IPv4) and /128 (IPv6) prefixes. */ addresses: string[]; /** The indicator to determine if automatic allocation from the pool should occur. */ autoAssign?: BfdEnabled; @@ -719,6 +883,12 @@ export interface IpAddressPool { onlyUseHostIps?: BfdEnabled; } +/** L2ServiceLoadBalancerConfiguration represents the configuration of a layer 2 service load balancer. */ +export interface L2ServiceLoadBalancerConfiguration { + /** The list of pools of IP addresses that can be allocated to load balancer services. */ + ipAddressPools?: IpAddressPool[]; +} + /** KubernetesClusterNode represents the details of a node in a Kubernetes cluster. */ export interface KubernetesClusterNode { /** @@ -752,7 +922,7 @@ export interface KubernetesClusterNode { */ readonly detailedStatusMessage?: string; /** - * The size of the disk configured for this node. + * The size of the disk configured for this node. Allocations are measured in gibibytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly diskSizeGB?: number; @@ -772,7 +942,7 @@ export interface KubernetesClusterNode { */ readonly labels?: KubernetesLabel[]; /** - * The amount of memory configured for this node, derived from the vm SKU specified. + * The amount of memory configured for this node, derived from the vm SKU specified. Allocations are measured in gibibytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly memorySizeGB?: number; @@ -929,7 +1099,7 @@ export interface MachineSkuSlot { */ readonly hardwareVersion?: string; /** - * The maximum amount of memory in GB. + * The maximum amount of memory. Measured in gibibytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly memoryCapacityGB?: number; @@ -958,7 +1128,7 @@ export interface MachineSkuSlot { /** Disk represents the properties of the disk. */ export interface MachineDisk { /** - * The maximum amount of storage in GB. + * The maximum amount of storage. Measured in gibibytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly capacityGB?: number; @@ -1002,7 +1172,7 @@ export interface NetworkInterface { */ readonly portCount?: number; /** - * The maximum amount of data in GB that the line card transmits through a port at any given second. + * The maximum amount of data in gigabits that the line card transmits through a port at any given second. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly portSpeed?: number; @@ -1021,7 +1191,7 @@ export interface StorageApplianceSkuSlot { */ readonly rackSlot?: number; /** - * The maximum capacity of the storage appliance. + * The maximum capacity of the storage appliance. Measured in gibibytes. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly capacityGB?: number; @@ -1090,7 +1260,7 @@ export interface OsDisk { createOption?: OsDiskCreateOption; /** The strategy for deleting the OS disk. */ deleteOption?: OsDiskDeleteOption; - /** The size of the disk in gigabytes. Required if the createOption is Ephemeral. */ + /** The size of the disk. Required if the createOption is Ephemeral. Allocations are measured in gibibytes. */ diskSizeGB: number; } @@ -1112,6 +1282,72 @@ export interface VolumeList { value?: Volume[]; } +/** The current status of an async operation. */ +export interface OperationStatusResult { + /** + * The end time of the operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endTime?: Date; + /** + * If present, details of the operation error. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly error?: ErrorDetail; + /** + * Fully qualified ID for the async operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Name of the async operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The operations list. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operations?: OperationStatusResult[]; + /** + * Percent of the operation that is complete. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly percentComplete?: number; + /** + * Fully qualified ID of the resource against which the original async operation was started. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceId?: string; + /** + * The start time of the operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: Date; + /** Operation status. */ + status: string; + /** + * For actions that run commands or scripts, the exit code of the script execution. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly exitCode?: string; + /** + * For actions that run commands or scripts, the leading bytes of the output of the script execution. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly outputHead?: string; + /** + * For actions that run commands or scripts, a reference to the location of the result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resultRef?: string; + /** + * For actions that run commands or scripts, the URL where the full output of the script output can be retrieved. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resultUrl?: string; +} + /** BareMetalMachinePatchParameters represents the body of the request to patch bare metal machine properties. */ export interface BareMetalMachinePatchParameters { /** The Azure resource tags that will replace the existing ones. */ @@ -1129,31 +1365,6 @@ export interface BareMetalMachineCordonParameters { evacuate?: BareMetalMachineEvacuate; } -/** The current status of an async operation. */ -export interface OperationStatusResult { - /** Fully qualified ID for the async operation. */ - id?: string; - /** - * Fully qualified ID of the resource against which the original async operation was started. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceId?: string; - /** Name of the async operation. */ - name?: string; - /** Operation status. */ - status: string; - /** Percent of the operation that is complete. */ - percentComplete?: number; - /** The start time of the operation. */ - startTime?: Date; - /** The end time of the operation. */ - endTime?: Date; - /** The operations list. */ - operations?: OperationStatusResult[]; - /** If present, details of the operation error. */ - error?: ErrorDetail; -} - /** BareMetalMachinePowerOffParameters represents the body of the request to power off bare metal machine. */ export interface BareMetalMachinePowerOffParameters { /** The indicator of whether to skip the graceful OS shutdown and power off the bare metal machine immediately. */ @@ -1229,12 +1440,16 @@ export interface CloudServicesNetworkPatchParameters { /** ClusterManagerPatchParameters represents the body of the request to patch the cluster properties. */ export interface ClusterManagerPatchParameters { + /** The identity for the resource. */ + identity?: ManagedServiceIdentity; /** The Azure resource tags that will replace the existing ones. */ tags?: { [propertyName: string]: string }; } /** ClusterPatchParameters represents the body of the request to patch the cluster properties. */ export interface ClusterPatchParameters { + /** The identity for the resource. */ + identity?: ManagedServiceIdentity; /** The Azure resource tags that will replace the existing ones. */ tags?: { [propertyName: string]: string }; /** The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. */ @@ -1243,6 +1458,8 @@ export interface ClusterPatchParameters { clusterLocation?: string; /** The service principal to be used by the cluster during Arc Appliance installation. */ clusterServicePrincipal?: ServicePrincipalInformation; + /** The settings for commands run in this cluster, such as bare metal machine run read only commands and data extracts. */ + commandOutputSettings?: CommandOutputSettings; /** The validation threshold indicating the allowable failures of compute machines during environment validation and deployment. */ computeDeploymentThreshold?: ValidationThreshold; /** @@ -1250,6 +1467,12 @@ export interface ClusterPatchParameters { * cluster, or an empty list in a single-rack cluster. */ computeRackDefinitions?: RackDefinition[]; + /** The settings for cluster runtime protection. */ + runtimeProtectionConfiguration?: RuntimeProtectionConfiguration; + /** The configuration for use of a key vault to store secrets for later retrieval by the operator. */ + secretArchive?: ClusterSecretArchive; + /** The strategy for updating the cluster. */ + updateStrategy?: ClusterUpdateStrategy; } /** BareMetalMachineKeySetList represents a list of bare metal machine key sets. */ @@ -1268,6 +1491,8 @@ export interface KeySetUser { description?: string; /** The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in. */ sshPublicKey: SshPublicKey; + /** The user principal name (email format) used to validate this user's group membership. */ + userPrincipalName?: string; } /** KeySetUserStatus represents the status of the key set user. */ @@ -1319,6 +1544,12 @@ export interface BmcKeySetPatchParameters { userList?: KeySetUser[]; } +/** ClusterContinueUpdateVersionParameters represents the body of the request to continue the update of a cluster version. */ +export interface ClusterContinueUpdateVersionParameters { + /** The mode by which the cluster will target the next grouping of servers to continue the update. */ + machineGroupTargetingMode?: ClusterContinueUpdateVersionMachineGroupTargetingMode; +} + /** ClusterDeployParameters represents the body of the request to deploy cluster. */ export interface ClusterDeployParameters { /** The names of bare metal machines in the cluster that should be skipped during environment validation. */ @@ -1343,6 +1574,12 @@ export interface ClusterMetricsConfigurationPatchParameters { enabledMetrics?: string[]; } +/** ClusterScanRuntimeParameters defines the parameters for the cluster scan runtime operation. */ +export interface ClusterScanRuntimeParameters { + /** The choice of if the scan operation should run the scan. */ + scanActivity?: ClusterScanRuntimeParametersScanActivity; +} + /** ClusterUpdateVersionParameters represents the body of the request to update cluster version. */ export interface ClusterUpdateVersionParameters { /** The version to be applied to the cluster during update. */ @@ -1353,14 +1590,24 @@ export interface ClusterUpdateVersionParameters { export interface KubernetesClusterPatchParameters { /** The Azure resource tags that will replace the existing ones. */ tags?: { [propertyName: string]: string }; + /** The configuration of the default administrator credentials. */ + administratorConfiguration?: AdministratorConfigurationPatch; /** The defining characteristics of the control plane that can be patched for this Kubernetes cluster. */ controlPlaneNodeConfiguration?: ControlPlaneNodePatchConfiguration; - /** The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n format. The interpreted version used will be resolved into this field after creation or update. */ + /** The Kubernetes version for this cluster. */ kubernetesVersion?: string; } +/** AdministratorConfigurationPatch represents the patching capabilities for the administrator configuration. */ +export interface AdministratorConfigurationPatch { + /** SshPublicKey represents the public key used to authenticate with a resource through SSH. */ + sshPublicKeys?: SshPublicKey[]; +} + /** ControlPlaneNodePatchConfiguration represents the properties of the control plane that can be patched for this Kubernetes cluster. */ export interface ControlPlaneNodePatchConfiguration { + /** The configuration of administrator credentials for the control plane nodes. */ + administratorConfiguration?: AdministratorConfigurationPatch; /** The number of virtual machines that use this configuration. */ count?: number; } @@ -1377,12 +1624,44 @@ export interface AgentPoolList { export interface AgentPoolPatchParameters { /** The Azure resource tags that will replace the existing ones. */ tags?: { [propertyName: string]: string }; + /** The configuration of administrator credentials for the control plane nodes. */ + administratorConfiguration?: NodePoolAdministratorConfigurationPatch; /** The number of virtual machines that use this configuration. */ count?: number; /** The configuration of the agent pool. */ upgradeSettings?: AgentPoolUpgradeSettings; } +/** NodePoolAdministratorConfigurationPatch represents the patching capabilities for the administrator configuration. */ +export interface NodePoolAdministratorConfigurationPatch { + /** SshPublicKey represents the public key used to authenticate with a resource through SSH. */ + sshPublicKeys?: SshPublicKey[]; +} + +/** KubernetesClusterFeatureList represents the list of Kubernetes cluster feature resources. */ +export interface KubernetesClusterFeatureList { + /** The link used to get the next page of operations. */ + nextLink?: string; + /** The list of Kubernetes cluster features. */ + value?: KubernetesClusterFeature[]; +} + +/** StringKeyValuePair represents a single entry in a mapping of keys to values. */ +export interface StringKeyValuePair { + /** The key to the mapped value. */ + key: string; + /** The value of the mapping key. */ + value: string; +} + +/** KubernetesClusterFeaturePatchParameters represents the body of the request to patch the Kubernetes cluster feature. */ +export interface KubernetesClusterFeaturePatchParameters { + /** The Azure resource tags that will replace the existing ones. */ + tags?: { [propertyName: string]: string }; + /** The configured options for the feature. */ + options?: StringKeyValuePair[]; +} + /** KubernetesClusterRestartNodeParameters represents the body of the request to restart the node of a Kubernetes cluster. */ export interface KubernetesClusterRestartNodeParameters { /** The name of the node to restart. */ @@ -1451,7 +1730,7 @@ export interface ConsoleList { export interface ConsolePatchParameters { /** The Azure resource tags that will replace the existing ones. */ tags?: { [propertyName: string]: string }; - /** The credentials used to login to the image repository that has access to the specified image. */ + /** The indicator of whether the console access is enabled. */ enabled?: ConsoleEnabled; /** The date and time after which the key will be disallowed access. */ expiration?: Date; @@ -1615,10 +1894,17 @@ export interface BareMetalMachine extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly kubernetesVersion?: string; + /** The cluster version that has been applied to this machine during deployment or a version update. */ + machineClusterVersion?: string; /** The custom details provided by the customer. */ machineDetails: string; /** The OS-level hostname assigned to this machine. */ machineName: string; + /** + * The list of roles that are assigned to the cluster node running on this machine. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly machineRoles?: string[]; /** The unique internal identifier of the bare metal machine SKU. */ machineSkuId: string; /** @@ -1655,6 +1941,16 @@ export interface BareMetalMachine extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly readyState?: BareMetalMachineReadyState; + /** + * The runtime protection status of the bare metal machine. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly runtimeProtectionStatus?: RuntimeProtectionStatus; + /** + * The list of statuses that represent secret rotation activity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secretRotationStatus?: SecretRotationStatus[]; /** The serial number of the bare metal machine. */ serialNumber: string; /** @@ -1731,6 +2027,8 @@ export interface CloudServicesNetwork extends TrackedResource { /** ClusterManager represents a control-plane to manage one or more on-premises clusters. */ export interface ClusterManager extends TrackedResource { + /** The identity of the cluster manager. */ + identity?: ManagedServiceIdentity; /** The resource ID of the Log Analytics workspace that is used for the logs collection. */ analyticsWorkspaceId?: string; /** Field deprecated, this value will no longer influence the cluster manager allocation process and will be removed in a future version. The Azure availability zones within the region that will be used to support the cluster manager resource. */ @@ -1772,6 +2070,8 @@ export interface ClusterManager extends TrackedResource { export interface Cluster extends TrackedResource { /** The extended location of the cluster manager associated with the cluster. */ extendedLocation: ExtendedLocation; + /** The identity for the resource. */ + identity?: ManagedServiceIdentity; /** The rack definition that is intended to reflect only a single rack in a single rack cluster, or an aggregator rack in a multi-rack cluster. */ aggregatorOrSingleRackDefinition: RackDefinition; /** The resource ID of the Log Analytics Workspace that will be used for storing relevant logs. */ @@ -1814,6 +2114,8 @@ export interface Cluster extends TrackedResource { clusterType: ClusterType; /** The current runtime version of the cluster. */ clusterVersion: string; + /** The settings for commands run in this cluster, such as bare metal machine run read only commands and data extracts. */ + commandOutputSettings?: CommandOutputSettings; /** The validation threshold indicating the allowable failures of compute machines during environment validation and deployment. */ computeDeploymentThreshold?: ValidationThreshold; /** @@ -1850,11 +2152,17 @@ export interface Cluster extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ClusterProvisioningState; + /** The settings for cluster runtime protection. */ + runtimeProtectionConfiguration?: RuntimeProtectionConfiguration; + /** The configuration for use of a key vault to store secrets for later retrieval by the operator. */ + secretArchive?: ClusterSecretArchive; /** * The support end date of the runtime version of the cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly supportExpiryDate?: string; + /** The strategy for updating the cluster. */ + updateStrategy?: ClusterUpdateStrategy; /** * The list of workload resource IDs that are hosted within this cluster. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1914,7 +2222,7 @@ export interface KubernetesCluster extends TrackedResource { readonly featureStatuses?: FeatureStatus[]; /** The agent pools that are created with this Kubernetes cluster for running critical system services and workloads. This data in this field is only used during creation, and the field will be empty following the creation of the Kubernetes Cluster. After creation, the management of agent pools is done using the agentPools sub-resource. */ initialAgentPoolConfigurations: InitialAgentPoolConfiguration[]; - /** The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n format. The interpreted version used will be resolved into this field after creation or update. */ + /** The Kubernetes version for this cluster. */ kubernetesVersion: string; /** The configuration of the managed resource group associated with the resource. */ managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; @@ -2112,6 +2420,16 @@ export interface StorageAppliance extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly managementIpv4Address?: string; + /** + * The manufacturer of the storage appliance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly manufacturer?: string; + /** + * The model of the storage appliance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly model?: string; /** * The provisioning state of the storage appliance. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2131,10 +2449,20 @@ export interface StorageAppliance extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly remoteVendorManagementStatus?: RemoteVendorManagementStatus; + /** + * The list of statuses that represent secret rotation activity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secretRotationStatus?: SecretRotationStatus[]; /** The serial number for the storage appliance. */ serialNumber: string; /** The SKU for the storage appliance. */ storageApplianceSkuId: string; + /** + * The version of the storage appliance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly version?: string; } /** TrunkedNetwork represents a network that utilizes multiple isolation domains and specified VLANs to create a trunked network. */ @@ -2198,7 +2526,7 @@ export interface VirtualMachine extends TrackedResource { */ readonly availabilityZone?: string; /** - * The resource ID of the bare metal machine the virtual machine has landed to. + * The resource ID of the bare metal machine that hosts the virtual machine. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly bareMetalMachineId?: string; @@ -2225,7 +2553,7 @@ export interface VirtualMachine extends TrackedResource { readonly detailedStatusMessage?: string; /** Field Deprecated, the value will be ignored if provided. The indicator of whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine. */ isolateEmulatorThread?: VirtualMachineIsolateEmulatorThread; - /** The memory size of the virtual machine in GB. */ + /** The memory size of the virtual machine. Allocations are measured in gibibytes. */ memorySizeGB: number; /** The list of network attachments to the virtual machine. */ networkAttachments?: NetworkAttachment[]; @@ -2455,6 +2783,42 @@ export interface AgentPool extends TrackedResource { vmSkuName: string; } +/** KubernetesClusterFeature represents the feature of a Kubernetes cluster. */ +export interface KubernetesClusterFeature extends TrackedResource { + /** + * The lifecycle indicator of the feature. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly availabilityLifecycle?: KubernetesClusterFeatureAvailabilityLifecycle; + /** + * The detailed status of the feature. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly detailedStatus?: KubernetesClusterFeatureDetailedStatus; + /** + * The descriptive message for the detailed status of the feature. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly detailedStatusMessage?: string; + /** The configured options for the feature. */ + options?: StringKeyValuePair[]; + /** + * The provisioning state of the Kubernetes cluster feature. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: KubernetesClusterFeatureProvisioningState; + /** + * The indicator of if the feature is required or optional. Optional features may be deleted by the user, while required features are managed with the kubernetes cluster lifecycle. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly required?: KubernetesClusterFeatureRequired; + /** + * The version of the feature. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly version?: string; +} + /** Console represents the console of an on-premises Network Cloud virtual machine. */ export interface Console extends TrackedResource { /** The extended location of the cluster manager associated with the cluster this virtual machine is created on. */ @@ -2508,6 +2872,8 @@ export interface BareMetalMachinesDeleteHeaders { export interface BareMetalMachinesUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for BareMetalMachines_cordon operation. */ @@ -2586,6 +2952,8 @@ export interface CloudServicesNetworksDeleteHeaders { export interface CloudServicesNetworksUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for ClusterManagers_createOrUpdate operation. */ @@ -2616,6 +2984,14 @@ export interface ClustersDeleteHeaders { export interface ClustersUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for Clusters_continueUpdateVersion operation. */ +export interface ClustersContinueUpdateVersionHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for Clusters_deploy operation. */ @@ -2624,6 +3000,12 @@ export interface ClustersDeployHeaders { location?: string; } +/** Defines headers for Clusters_scanRuntime operation. */ +export interface ClustersScanRuntimeHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + /** Defines headers for Clusters_updateVersion operation. */ export interface ClustersUpdateVersionHeaders { /** The URL to retrieve the status of the asynchronous operation. */ @@ -2646,6 +3028,8 @@ export interface KubernetesClustersDeleteHeaders { export interface KubernetesClustersUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for KubernetesClusters_restartNode operation. */ @@ -2694,6 +3078,8 @@ export interface RacksDeleteHeaders { export interface RacksUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for StorageAppliances_createOrUpdate operation. */ @@ -2712,6 +3098,8 @@ export interface StorageAppliancesDeleteHeaders { export interface StorageAppliancesUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for StorageAppliances_disableRemoteVendorManagement operation. */ @@ -2754,6 +3142,8 @@ export interface VirtualMachinesDeleteHeaders { export interface VirtualMachinesUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for VirtualMachines_powerOff operation. */ @@ -2808,6 +3198,8 @@ export interface BareMetalMachineKeySetsDeleteHeaders { export interface BareMetalMachineKeySetsUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for BmcKeySets_createOrUpdate operation. */ @@ -2826,6 +3218,8 @@ export interface BmcKeySetsDeleteHeaders { export interface BmcKeySetsUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for MetricsConfigurations_createOrUpdate operation. */ @@ -2844,6 +3238,8 @@ export interface MetricsConfigurationsDeleteHeaders { export interface MetricsConfigurationsUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for AgentPools_createOrUpdate operation. */ @@ -2862,6 +3258,28 @@ export interface AgentPoolsDeleteHeaders { export interface AgentPoolsUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for KubernetesClusterFeatures_createOrUpdate operation. */ +export interface KubernetesClusterFeaturesCreateOrUpdateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for KubernetesClusterFeatures_delete operation. */ +export interface KubernetesClusterFeaturesDeleteHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for KubernetesClusterFeatures_update operation. */ +export interface KubernetesClusterFeaturesUpdateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for Consoles_createOrUpdate operation. */ @@ -2880,6 +3298,8 @@ export interface ConsolesDeleteHeaders { export interface ConsolesUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Known values of {@link Origin} that the service accepts. */ @@ -2889,7 +3309,7 @@ export enum KnownOrigin { /** System */ System = "system", /** UserSystem */ - UserSystem = "user,system" + UserSystem = "user,system", } /** @@ -2906,7 +3326,7 @@ export type Origin = string; /** Known values of {@link ActionType} that the service accepts. */ export enum KnownActionType { /** Internal */ - Internal = "Internal" + Internal = "Internal", } /** @@ -2923,7 +3343,7 @@ export enum KnownBareMetalMachineCordonStatus { /** Cordoned */ Cordoned = "Cordoned", /** Uncordoned */ - Uncordoned = "Uncordoned" + Uncordoned = "Uncordoned", } /** @@ -2949,7 +3369,7 @@ export enum KnownBareMetalMachineDetailedStatus { /** Provisioned */ Provisioned = "Provisioned", /** Deprovisioning */ - Deprovisioning = "Deprovisioning" + Deprovisioning = "Deprovisioning", } /** @@ -2971,7 +3391,7 @@ export enum KnownBareMetalMachineHardwareValidationResult { /** Pass */ Pass = "Pass", /** Fail */ - Fail = "Fail" + Fail = "Fail", } /** @@ -2989,7 +3409,7 @@ export enum KnownBareMetalMachinePowerState { /** On */ On = "On", /** Off */ - Off = "Off" + Off = "Off", } /** @@ -3013,7 +3433,7 @@ export enum KnownBareMetalMachineProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -3034,7 +3454,7 @@ export enum KnownBareMetalMachineReadyState { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3056,7 +3476,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -3078,7 +3498,7 @@ export enum KnownCloudServicesNetworkDetailedStatus { /** Available */ Available = "Available", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -3097,7 +3517,7 @@ export enum KnownCloudServicesNetworkEnableDefaultEgressEndpoints { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3121,7 +3541,7 @@ export enum KnownCloudServicesNetworkProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -3137,6 +3557,30 @@ export enum KnownCloudServicesNetworkProvisioningState { */ export type CloudServicesNetworkProvisioningState = string; +/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ +export enum KnownManagedServiceIdentityType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", +} + +/** + * Defines values for ManagedServiceIdentityType. \ + * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned,UserAssigned** + */ +export type ManagedServiceIdentityType = string; + /** Known values of {@link ClusterManagerDetailedStatus} that the service accepts. */ export enum KnownClusterManagerDetailedStatus { /** Error */ @@ -3150,7 +3594,7 @@ export enum KnownClusterManagerDetailedStatus { /** Updating */ Updating = "Updating", /** UpdateFailed */ - UpdateFailed = "UpdateFailed" + UpdateFailed = "UpdateFailed", } /** @@ -3180,7 +3624,7 @@ export enum KnownClusterManagerProvisioningState { /** Accepted */ Accepted = "Accepted", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -3202,7 +3646,7 @@ export enum KnownControlImpact { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3220,7 +3664,7 @@ export enum KnownWorkloadImpact { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3237,10 +3681,12 @@ export type WorkloadImpact = string; export enum KnownClusterConnectionStatus { /** Connected */ Connected = "Connected", + /** Disconnected */ + Disconnected = "Disconnected", /** Timeout */ Timeout = "Timeout", /** Undefined */ - Undefined = "Undefined" + Undefined = "Undefined", } /** @@ -3249,6 +3695,7 @@ export enum KnownClusterConnectionStatus { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Connected** \ + * **Disconnected** \ * **Timeout** \ * **Undefined** */ @@ -3259,7 +3706,7 @@ export enum KnownClusterManagerConnectionStatus { /** Connected */ Connected = "Connected", /** Unreachable */ - Unreachable = "Unreachable" + Unreachable = "Unreachable", } /** @@ -3277,7 +3724,7 @@ export enum KnownClusterType { /** SingleRack */ SingleRack = "SingleRack", /** MultiRack */ - MultiRack = "MultiRack" + MultiRack = "MultiRack", } /** @@ -3290,12 +3737,30 @@ export enum KnownClusterType { */ export type ClusterType = string; +/** Known values of {@link ManagedServiceIdentitySelectorType} that the service accepts. */ +export enum KnownManagedServiceIdentitySelectorType { + /** SystemAssignedIdentity */ + SystemAssignedIdentity = "SystemAssignedIdentity", + /** UserAssignedIdentity */ + UserAssignedIdentity = "UserAssignedIdentity", +} + +/** + * Defines values for ManagedServiceIdentitySelectorType. \ + * {@link KnownManagedServiceIdentitySelectorType} can be used interchangeably with ManagedServiceIdentitySelectorType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SystemAssignedIdentity** \ + * **UserAssignedIdentity** + */ +export type ManagedServiceIdentitySelectorType = string; + /** Known values of {@link ValidationThresholdGrouping} that the service accepts. */ export enum KnownValidationThresholdGrouping { /** PerCluster */ PerCluster = "PerCluster", /** PerRack */ - PerRack = "PerRack" + PerRack = "PerRack", } /** @@ -3313,7 +3778,7 @@ export enum KnownValidationThresholdType { /** CountSuccess */ CountSuccess = "CountSuccess", /** PercentSuccess */ - PercentSuccess = "PercentSuccess" + PercentSuccess = "PercentSuccess", } /** @@ -3336,6 +3801,8 @@ export enum KnownClusterDetailedStatus { Running = "Running", /** Updating */ Updating = "Updating", + /** UpdatePaused */ + UpdatePaused = "UpdatePaused", /** Degraded */ Degraded = "Degraded", /** Deleting */ @@ -3343,7 +3810,7 @@ export enum KnownClusterDetailedStatus { /** Disconnected */ Disconnected = "Disconnected", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -3355,6 +3822,7 @@ export enum KnownClusterDetailedStatus { * **Deploying** \ * **Running** \ * **Updating** \ + * **UpdatePaused** \ * **Degraded** \ * **Deleting** \ * **Disconnected** \ @@ -3375,7 +3843,7 @@ export enum KnownClusterProvisioningState { /** Validating */ Validating = "Validating", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -3392,12 +3860,75 @@ export enum KnownClusterProvisioningState { */ export type ClusterProvisioningState = string; +/** Known values of {@link RuntimeProtectionEnforcementLevel} that the service accepts. */ +export enum KnownRuntimeProtectionEnforcementLevel { + /** Audit */ + Audit = "Audit", + /** Disabled */ + Disabled = "Disabled", + /** OnDemand */ + OnDemand = "OnDemand", + /** Passive */ + Passive = "Passive", + /** RealTime */ + RealTime = "RealTime", +} + +/** + * Defines values for RuntimeProtectionEnforcementLevel. \ + * {@link KnownRuntimeProtectionEnforcementLevel} can be used interchangeably with RuntimeProtectionEnforcementLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Audit** \ + * **Disabled** \ + * **OnDemand** \ + * **Passive** \ + * **RealTime** + */ +export type RuntimeProtectionEnforcementLevel = string; + +/** Known values of {@link ClusterSecretArchiveEnabled} that the service accepts. */ +export enum KnownClusterSecretArchiveEnabled { + /** True */ + True = "True", + /** False */ + False = "False", +} + +/** + * Defines values for ClusterSecretArchiveEnabled. \ + * {@link KnownClusterSecretArchiveEnabled} can be used interchangeably with ClusterSecretArchiveEnabled, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **True** \ + * **False** + */ +export type ClusterSecretArchiveEnabled = string; + +/** Known values of {@link ClusterUpdateStrategyType} that the service accepts. */ +export enum KnownClusterUpdateStrategyType { + /** Rack */ + Rack = "Rack", + /** PauseAfterRack */ + PauseAfterRack = "PauseAfterRack", +} + +/** + * Defines values for ClusterUpdateStrategyType. \ + * {@link KnownClusterUpdateStrategyType} can be used interchangeably with ClusterUpdateStrategyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Rack** \ + * **PauseAfterRack** + */ +export type ClusterUpdateStrategyType = string; + /** Known values of {@link AvailabilityLifecycle} that the service accepts. */ export enum KnownAvailabilityLifecycle { /** Preview */ Preview = "Preview", /** GenerallyAvailable */ - GenerallyAvailable = "GenerallyAvailable" + GenerallyAvailable = "GenerallyAvailable", } /** @@ -3417,7 +3948,7 @@ export enum KnownKubernetesClusterDetailedStatus { /** Error */ Error = "Error", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -3438,7 +3969,7 @@ export enum KnownFeatureDetailedStatus { /** Failed */ Failed = "Failed", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -3457,7 +3988,7 @@ export enum KnownHugepagesSize { /** TwoM */ TwoM = "2M", /** OneG */ - OneG = "1G" + OneG = "1G", } /** @@ -3481,7 +4012,7 @@ export enum KnownKubernetesPluginType { /** Macvlan */ Macvlan = "MACVLAN", /** Ipvlan */ - Ipvlan = "IPVLAN" + Ipvlan = "IPVLAN", } /** @@ -3502,7 +4033,7 @@ export enum KnownL3NetworkConfigurationIpamEnabled { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3522,7 +4053,7 @@ export enum KnownAgentPoolMode { /** User */ User = "User", /** NotApplicable */ - NotApplicable = "NotApplicable" + NotApplicable = "NotApplicable", } /** @@ -3541,7 +4072,7 @@ export enum KnownAdvertiseToFabric { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3559,7 +4090,7 @@ export enum KnownBfdEnabled { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3577,7 +4108,7 @@ export enum KnownBgpMultiHop { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3595,7 +4126,7 @@ export enum KnownFabricPeeringEnabled { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3625,7 +4156,7 @@ export enum KnownKubernetesClusterNodeDetailedStatus { /** Terminating */ Terminating = "Terminating", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -3649,7 +4180,7 @@ export enum KnownDefaultGateway { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3669,7 +4200,7 @@ export enum KnownVirtualMachineIPAllocationMethod { /** Static */ Static = "Static", /** Disabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -3690,7 +4221,7 @@ export enum KnownKubernetesNodePowerState { /** Off */ Off = "Off", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -3709,7 +4240,7 @@ export enum KnownKubernetesNodeRole { /** ControlPlane */ ControlPlane = "ControlPlane", /** Worker */ - Worker = "Worker" + Worker = "Worker", } /** @@ -3739,7 +4270,7 @@ export enum KnownKubernetesClusterProvisioningState { /** Updating */ Updating = "Updating", /** Deleting */ - Deleting = "Deleting" + Deleting = "Deleting", } /** @@ -3765,7 +4296,7 @@ export enum KnownL2NetworkDetailedStatus { /** Available */ Available = "Available", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -3786,7 +4317,7 @@ export enum KnownHybridAksPluginType { /** Sriov */ Sriov = "SRIOV", /** OSDevice */ - OSDevice = "OSDevice" + OSDevice = "OSDevice", } /** @@ -3811,7 +4342,7 @@ export enum KnownL2NetworkProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -3834,7 +4365,7 @@ export enum KnownL3NetworkDetailedStatus { /** Available */ Available = "Available", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -3853,7 +4384,7 @@ export enum KnownHybridAksIpamEnabled { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -3873,7 +4404,7 @@ export enum KnownIpAllocationType { /** IPV6 */ IPV6 = "IPV6", /** DualStack */ - DualStack = "DualStack" + DualStack = "DualStack", } /** @@ -3898,7 +4429,7 @@ export enum KnownL3NetworkProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -3917,7 +4448,7 @@ export type L3NetworkProvisioningState = string; /** Known values of {@link BootstrapProtocol} that the service accepts. */ export enum KnownBootstrapProtocol { /** PXE */ - PXE = "PXE" + PXE = "PXE", } /** @@ -3938,7 +4469,7 @@ export enum KnownMachineSkuDiskConnectionType { /** Raid */ Raid = "RAID", /** SAS */ - SAS = "SAS" + SAS = "SAS", } /** @@ -3958,7 +4489,7 @@ export enum KnownDiskType { /** HDD */ HDD = "HDD", /** SSD */ - SSD = "SSD" + SSD = "SSD", } /** @@ -3974,7 +4505,7 @@ export type DiskType = string; /** Known values of {@link DeviceConnectionType} that the service accepts. */ export enum KnownDeviceConnectionType { /** PCI */ - PCI = "PCI" + PCI = "PCI", } /** @@ -3988,8 +4519,12 @@ export type DeviceConnectionType = string; /** Known values of {@link RackSkuProvisioningState} that the service accepts. */ export enum KnownRackSkuProvisioningState { + /** Canceled */ + Canceled = "Canceled", + /** Failed */ + Failed = "Failed", /** Succeeded */ - Succeeded = "Succeeded" + Succeeded = "Succeeded", } /** @@ -3997,6 +4532,8 @@ export enum KnownRackSkuProvisioningState { * {@link KnownRackSkuProvisioningState} can be used interchangeably with RackSkuProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **Canceled** \ + * **Failed** \ * **Succeeded** */ export type RackSkuProvisioningState = string; @@ -4008,7 +4545,7 @@ export enum KnownRackSkuType { /** Compute */ Compute = "Compute", /** Single */ - Single = "Single" + Single = "Single", } /** @@ -4029,7 +4566,7 @@ export enum KnownRackDetailedStatus { /** Available */ Available = "Available", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4054,7 +4591,7 @@ export enum KnownRackProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -4077,7 +4614,7 @@ export enum KnownStorageApplianceDetailedStatus { /** Available */ Available = "Available", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4102,7 +4639,7 @@ export enum KnownStorageApplianceProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -4123,7 +4660,7 @@ export enum KnownRemoteVendorManagementFeature { /** Supported */ Supported = "Supported", /** Unsupported */ - Unsupported = "Unsupported" + Unsupported = "Unsupported", } /** @@ -4143,7 +4680,7 @@ export enum KnownRemoteVendorManagementStatus { /** Disabled */ Disabled = "Disabled", /** Unsupported */ - Unsupported = "Unsupported" + Unsupported = "Unsupported", } /** @@ -4164,7 +4701,7 @@ export enum KnownTrunkedNetworkDetailedStatus { /** Available */ Available = "Available", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4189,7 +4726,7 @@ export enum KnownTrunkedNetworkProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -4210,7 +4747,7 @@ export enum KnownVirtualMachineBootMethod { /** Uefi */ Uefi = "UEFI", /** Bios */ - Bios = "BIOS" + Bios = "BIOS", } /** @@ -4240,7 +4777,7 @@ export enum KnownVirtualMachineDetailedStatus { /** Terminating */ Terminating = "Terminating", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -4264,7 +4801,7 @@ export enum KnownVirtualMachineIsolateEmulatorThread { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -4282,7 +4819,7 @@ export enum KnownVirtualMachinePlacementHintType { /** Affinity */ Affinity = "Affinity", /** AntiAffinity */ - AntiAffinity = "AntiAffinity" + AntiAffinity = "AntiAffinity", } /** @@ -4300,7 +4837,7 @@ export enum KnownVirtualMachineSchedulingExecution { /** Hard */ Hard = "Hard", /** Soft */ - Soft = "Soft" + Soft = "Soft", } /** @@ -4318,7 +4855,7 @@ export enum KnownVirtualMachinePlacementHintPodAffinityScope { /** Rack */ Rack = "Rack", /** Machine */ - Machine = "Machine" + Machine = "Machine", } /** @@ -4338,7 +4875,7 @@ export enum KnownVirtualMachinePowerState { /** Off */ Off = "Off", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -4363,7 +4900,7 @@ export enum KnownVirtualMachineProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -4382,7 +4919,7 @@ export type VirtualMachineProvisioningState = string; /** Known values of {@link OsDiskCreateOption} that the service accepts. */ export enum KnownOsDiskCreateOption { /** Ephemeral */ - Ephemeral = "Ephemeral" + Ephemeral = "Ephemeral", } /** @@ -4397,7 +4934,7 @@ export type OsDiskCreateOption = string; /** Known values of {@link OsDiskDeleteOption} that the service accepts. */ export enum KnownOsDiskDeleteOption { /** Delete */ - Delete = "Delete" + Delete = "Delete", } /** @@ -4414,7 +4951,7 @@ export enum KnownVirtualMachineVirtioInterfaceType { /** Modern */ Modern = "Modern", /** Transitional */ - Transitional = "Transitional" + Transitional = "Transitional", } /** @@ -4432,7 +4969,7 @@ export enum KnownVirtualMachineDeviceModelType { /** T1 */ T1 = "T1", /** T2 */ - T2 = "T2" + T2 = "T2", } /** @@ -4452,7 +4989,7 @@ export enum KnownVolumeDetailedStatus { /** Active */ Active = "Active", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4477,7 +5014,7 @@ export enum KnownVolumeProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -4498,7 +5035,7 @@ export enum KnownBareMetalMachineEvacuate { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -4516,7 +5053,7 @@ export enum KnownBareMetalMachineSkipShutdown { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -4538,7 +5075,7 @@ export enum KnownBareMetalMachineKeySetDetailedStatus { /** AllInvalid */ AllInvalid = "AllInvalid", /** Validating */ - Validating = "Validating" + Validating = "Validating", } /** @@ -4558,7 +5095,7 @@ export enum KnownBareMetalMachineKeySetPrivilegeLevel { /** Standard */ Standard = "Standard", /** Superuser */ - Superuser = "Superuser" + Superuser = "Superuser", } /** @@ -4582,7 +5119,7 @@ export enum KnownBareMetalMachineKeySetProvisioningState { /** Accepted */ Accepted = "Accepted", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4603,7 +5140,7 @@ export enum KnownBareMetalMachineKeySetUserSetupStatus { /** Active */ Active = "Active", /** Invalid */ - Invalid = "Invalid" + Invalid = "Invalid", } /** @@ -4625,7 +5162,7 @@ export enum KnownBmcKeySetDetailedStatus { /** AllInvalid */ AllInvalid = "AllInvalid", /** Validating */ - Validating = "Validating" + Validating = "Validating", } /** @@ -4645,7 +5182,7 @@ export enum KnownBmcKeySetPrivilegeLevel { /** ReadOnly */ ReadOnly = "ReadOnly", /** Administrator */ - Administrator = "Administrator" + Administrator = "Administrator", } /** @@ -4669,7 +5206,7 @@ export enum KnownBmcKeySetProvisioningState { /** Accepted */ Accepted = "Accepted", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4685,6 +5222,21 @@ export enum KnownBmcKeySetProvisioningState { */ export type BmcKeySetProvisioningState = string; +/** Known values of {@link ClusterContinueUpdateVersionMachineGroupTargetingMode} that the service accepts. */ +export enum KnownClusterContinueUpdateVersionMachineGroupTargetingMode { + /** AlphaByRack */ + AlphaByRack = "AlphaByRack", +} + +/** + * Defines values for ClusterContinueUpdateVersionMachineGroupTargetingMode. \ + * {@link KnownClusterContinueUpdateVersionMachineGroupTargetingMode} can be used interchangeably with ClusterContinueUpdateVersionMachineGroupTargetingMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AlphaByRack** + */ +export type ClusterContinueUpdateVersionMachineGroupTargetingMode = string; + /** Known values of {@link ClusterMetricsConfigurationDetailedStatus} that the service accepts. */ export enum KnownClusterMetricsConfigurationDetailedStatus { /** Processing */ @@ -4692,7 +5244,7 @@ export enum KnownClusterMetricsConfigurationDetailedStatus { /** Applied */ Applied = "Applied", /** Error */ - Error = "Error" + Error = "Error", } /** @@ -4717,7 +5269,7 @@ export enum KnownClusterMetricsConfigurationProvisioningState { /** Accepted */ Accepted = "Accepted", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4733,6 +5285,24 @@ export enum KnownClusterMetricsConfigurationProvisioningState { */ export type ClusterMetricsConfigurationProvisioningState = string; +/** Known values of {@link ClusterScanRuntimeParametersScanActivity} that the service accepts. */ +export enum KnownClusterScanRuntimeParametersScanActivity { + /** Scan */ + Scan = "Scan", + /** Skip */ + Skip = "Skip", +} + +/** + * Defines values for ClusterScanRuntimeParametersScanActivity. \ + * {@link KnownClusterScanRuntimeParametersScanActivity} can be used interchangeably with ClusterScanRuntimeParametersScanActivity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Scan** \ + * **Skip** + */ +export type ClusterScanRuntimeParametersScanActivity = string; + /** Known values of {@link AgentPoolDetailedStatus} that the service accepts. */ export enum KnownAgentPoolDetailedStatus { /** Available */ @@ -4740,7 +5310,7 @@ export enum KnownAgentPoolDetailedStatus { /** Error */ Error = "Error", /** Provisioning */ - Provisioning = "Provisioning" + Provisioning = "Provisioning", } /** @@ -4769,7 +5339,7 @@ export enum KnownAgentPoolProvisioningState { /** Succeeded */ Succeeded = "Succeeded", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -4787,12 +5357,99 @@ export enum KnownAgentPoolProvisioningState { */ export type AgentPoolProvisioningState = string; +/** Known values of {@link KubernetesClusterFeatureAvailabilityLifecycle} that the service accepts. */ +export enum KnownKubernetesClusterFeatureAvailabilityLifecycle { + /** Preview */ + Preview = "Preview", + /** GenerallyAvailable */ + GenerallyAvailable = "GenerallyAvailable", +} + +/** + * Defines values for KubernetesClusterFeatureAvailabilityLifecycle. \ + * {@link KnownKubernetesClusterFeatureAvailabilityLifecycle} can be used interchangeably with KubernetesClusterFeatureAvailabilityLifecycle, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Preview** \ + * **GenerallyAvailable** + */ +export type KubernetesClusterFeatureAvailabilityLifecycle = string; + +/** Known values of {@link KubernetesClusterFeatureDetailedStatus} that the service accepts. */ +export enum KnownKubernetesClusterFeatureDetailedStatus { + /** Error */ + Error = "Error", + /** Provisioning */ + Provisioning = "Provisioning", + /** Installed */ + Installed = "Installed", +} + +/** + * Defines values for KubernetesClusterFeatureDetailedStatus. \ + * {@link KnownKubernetesClusterFeatureDetailedStatus} can be used interchangeably with KubernetesClusterFeatureDetailedStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Error** \ + * **Provisioning** \ + * **Installed** + */ +export type KubernetesClusterFeatureDetailedStatus = string; + +/** Known values of {@link KubernetesClusterFeatureProvisioningState} that the service accepts. */ +export enum KnownKubernetesClusterFeatureProvisioningState { + /** Accepted */ + Accepted = "Accepted", + /** Canceled */ + Canceled = "Canceled", + /** Deleting */ + Deleting = "Deleting", + /** Failed */ + Failed = "Failed", + /** Succeeded */ + Succeeded = "Succeeded", + /** Updating */ + Updating = "Updating", +} + +/** + * Defines values for KubernetesClusterFeatureProvisioningState. \ + * {@link KnownKubernetesClusterFeatureProvisioningState} can be used interchangeably with KubernetesClusterFeatureProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Accepted** \ + * **Canceled** \ + * **Deleting** \ + * **Failed** \ + * **Succeeded** \ + * **Updating** + */ +export type KubernetesClusterFeatureProvisioningState = string; + +/** Known values of {@link KubernetesClusterFeatureRequired} that the service accepts. */ +export enum KnownKubernetesClusterFeatureRequired { + /** True */ + True = "True", + /** False */ + False = "False", +} + +/** + * Defines values for KubernetesClusterFeatureRequired. \ + * {@link KnownKubernetesClusterFeatureRequired} can be used interchangeably with KubernetesClusterFeatureRequired, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **True** \ + * **False** + */ +export type KubernetesClusterFeatureRequired = string; + /** Known values of {@link ConsoleDetailedStatus} that the service accepts. */ export enum KnownConsoleDetailedStatus { /** Ready */ Ready = "Ready", /** Error */ - Error = "Error" + Error = "Error", } /** @@ -4810,7 +5467,7 @@ export enum KnownConsoleEnabled { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -4834,7 +5491,7 @@ export enum KnownConsoleProvisioningState { /** Provisioning */ Provisioning = "Provisioning", /** Accepted */ - Accepted = "Accepted" + Accepted = "Accepted", } /** @@ -4855,7 +5512,7 @@ export enum KnownSkipShutdown { /** True */ True = "True", /** False */ - False = "False" + False = "False", } /** @@ -4924,6 +5581,9 @@ export interface BareMetalMachinesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type BareMetalMachinesDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface BareMetalMachinesUpdateOptionalParams extends coreClient.OperationOptions { @@ -5069,28 +5729,32 @@ export interface BareMetalMachinesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type BareMetalMachinesListBySubscriptionNextResponse = BareMetalMachineList; +export type BareMetalMachinesListBySubscriptionNextResponse = + BareMetalMachineList; /** Optional parameters. */ export interface BareMetalMachinesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type BareMetalMachinesListByResourceGroupNextResponse = BareMetalMachineList; +export type BareMetalMachinesListByResourceGroupNextResponse = + BareMetalMachineList; /** Optional parameters. */ export interface CloudServicesNetworksListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type CloudServicesNetworksListBySubscriptionResponse = CloudServicesNetworkList; +export type CloudServicesNetworksListBySubscriptionResponse = + CloudServicesNetworkList; /** Optional parameters. */ export interface CloudServicesNetworksListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type CloudServicesNetworksListByResourceGroupResponse = CloudServicesNetworkList; +export type CloudServicesNetworksListByResourceGroupResponse = + CloudServicesNetworkList; /** Optional parameters. */ export interface CloudServicesNetworksGetOptionalParams @@ -5120,6 +5784,9 @@ export interface CloudServicesNetworksDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type CloudServicesNetworksDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface CloudServicesNetworksUpdateOptionalParams extends coreClient.OperationOptions { @@ -5139,14 +5806,16 @@ export interface CloudServicesNetworksListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type CloudServicesNetworksListBySubscriptionNextResponse = CloudServicesNetworkList; +export type CloudServicesNetworksListBySubscriptionNextResponse = + CloudServicesNetworkList; /** Optional parameters. */ export interface CloudServicesNetworksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type CloudServicesNetworksListByResourceGroupNextResponse = CloudServicesNetworkList; +export type CloudServicesNetworksListByResourceGroupNextResponse = + CloudServicesNetworkList; /** Optional parameters. */ export interface ClusterManagersListBySubscriptionOptionalParams @@ -5190,6 +5859,9 @@ export interface ClusterManagersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type ClusterManagersDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface ClusterManagersUpdateOptionalParams extends coreClient.OperationOptions { @@ -5256,6 +5928,9 @@ export interface ClustersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type ClustersDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface ClustersUpdateOptionalParams extends coreClient.OperationOptions { @@ -5270,6 +5945,18 @@ export interface ClustersUpdateOptionalParams /** Contains response data for the update operation. */ export type ClustersUpdateResponse = Cluster; +/** Optional parameters. */ +export interface ClustersContinueUpdateVersionOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the continueUpdateVersion operation. */ +export type ClustersContinueUpdateVersionResponse = OperationStatusResult; + /** Optional parameters. */ export interface ClustersDeployOptionalParams extends coreClient.OperationOptions { @@ -5284,6 +5971,20 @@ export interface ClustersDeployOptionalParams /** Contains response data for the deploy operation. */ export type ClustersDeployResponse = OperationStatusResult; +/** Optional parameters. */ +export interface ClustersScanRuntimeOptionalParams + extends coreClient.OperationOptions { + /** The request body. */ + clusterScanRuntimeParameters?: ClusterScanRuntimeParameters; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the scanRuntime operation. */ +export type ClustersScanRuntimeResponse = OperationStatusResult; + /** Optional parameters. */ export interface ClustersUpdateVersionOptionalParams extends coreClient.OperationOptions { @@ -5315,14 +6016,16 @@ export interface KubernetesClustersListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type KubernetesClustersListBySubscriptionResponse = KubernetesClusterList; +export type KubernetesClustersListBySubscriptionResponse = + KubernetesClusterList; /** Optional parameters. */ export interface KubernetesClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type KubernetesClustersListByResourceGroupResponse = KubernetesClusterList; +export type KubernetesClustersListByResourceGroupResponse = + KubernetesClusterList; /** Optional parameters. */ export interface KubernetesClustersGetOptionalParams @@ -5352,6 +6055,9 @@ export interface KubernetesClustersDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type KubernetesClustersDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface KubernetesClustersUpdateOptionalParams extends coreClient.OperationOptions { @@ -5383,14 +6089,16 @@ export interface KubernetesClustersListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type KubernetesClustersListBySubscriptionNextResponse = KubernetesClusterList; +export type KubernetesClustersListBySubscriptionNextResponse = + KubernetesClusterList; /** Optional parameters. */ export interface KubernetesClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type KubernetesClustersListByResourceGroupNextResponse = KubernetesClusterList; +export type KubernetesClustersListByResourceGroupNextResponse = + KubernetesClusterList; /** Optional parameters. */ export interface L2NetworksListBySubscriptionOptionalParams @@ -5434,6 +6142,9 @@ export interface L2NetworksDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type L2NetworksDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface L2NetworksUpdateOptionalParams extends coreClient.OperationOptions { @@ -5500,6 +6211,9 @@ export interface L3NetworksDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type L3NetworksDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface L3NetworksUpdateOptionalParams extends coreClient.OperationOptions { @@ -5585,6 +6299,9 @@ export interface RacksDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type RacksDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface RacksUpdateOptionalParams extends coreClient.OperationOptions { /** The request body. */ @@ -5654,6 +6371,9 @@ export interface StorageAppliancesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type StorageAppliancesDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface StorageAppliancesUpdateOptionalParams extends coreClient.OperationOptions { @@ -5678,7 +6398,8 @@ export interface StorageAppliancesDisableRemoteVendorManagementOptionalParams } /** Contains response data for the disableRemoteVendorManagement operation. */ -export type StorageAppliancesDisableRemoteVendorManagementResponse = OperationStatusResult; +export type StorageAppliancesDisableRemoteVendorManagementResponse = + OperationStatusResult; /** Optional parameters. */ export interface StorageAppliancesEnableRemoteVendorManagementOptionalParams @@ -5692,21 +6413,24 @@ export interface StorageAppliancesEnableRemoteVendorManagementOptionalParams } /** Contains response data for the enableRemoteVendorManagement operation. */ -export type StorageAppliancesEnableRemoteVendorManagementResponse = OperationStatusResult; +export type StorageAppliancesEnableRemoteVendorManagementResponse = + OperationStatusResult; /** Optional parameters. */ export interface StorageAppliancesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type StorageAppliancesListBySubscriptionNextResponse = StorageApplianceList; +export type StorageAppliancesListBySubscriptionNextResponse = + StorageApplianceList; /** Optional parameters. */ export interface StorageAppliancesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type StorageAppliancesListByResourceGroupNextResponse = StorageApplianceList; +export type StorageAppliancesListByResourceGroupNextResponse = + StorageApplianceList; /** Optional parameters. */ export interface TrunkedNetworksListBySubscriptionOptionalParams @@ -5750,6 +6474,9 @@ export interface TrunkedNetworksDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type TrunkedNetworksDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface TrunkedNetworksUpdateOptionalParams extends coreClient.OperationOptions { @@ -5816,6 +6543,9 @@ export interface VirtualMachinesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type VirtualMachinesDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface VirtualMachinesUpdateOptionalParams extends coreClient.OperationOptions { @@ -5935,6 +6665,9 @@ export interface VolumesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type VolumesDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface VolumesUpdateOptionalParams extends coreClient.OperationOptions { @@ -5964,7 +6697,8 @@ export interface BareMetalMachineKeySetsListByClusterOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByCluster operation. */ -export type BareMetalMachineKeySetsListByClusterResponse = BareMetalMachineKeySetList; +export type BareMetalMachineKeySetsListByClusterResponse = + BareMetalMachineKeySetList; /** Optional parameters. */ export interface BareMetalMachineKeySetsGetOptionalParams @@ -5983,7 +6717,8 @@ export interface BareMetalMachineKeySetsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type BareMetalMachineKeySetsCreateOrUpdateResponse = BareMetalMachineKeySet; +export type BareMetalMachineKeySetsCreateOrUpdateResponse = + BareMetalMachineKeySet; /** Optional parameters. */ export interface BareMetalMachineKeySetsDeleteOptionalParams @@ -5994,6 +6729,9 @@ export interface BareMetalMachineKeySetsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type BareMetalMachineKeySetsDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface BareMetalMachineKeySetsUpdateOptionalParams extends coreClient.OperationOptions { @@ -6013,7 +6751,8 @@ export interface BareMetalMachineKeySetsListByClusterNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByClusterNext operation. */ -export type BareMetalMachineKeySetsListByClusterNextResponse = BareMetalMachineKeySetList; +export type BareMetalMachineKeySetsListByClusterNextResponse = + BareMetalMachineKeySetList; /** Optional parameters. */ export interface BmcKeySetsListByClusterOptionalParams @@ -6050,6 +6789,9 @@ export interface BmcKeySetsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type BmcKeySetsDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface BmcKeySetsUpdateOptionalParams extends coreClient.OperationOptions { @@ -6076,7 +6818,8 @@ export interface MetricsConfigurationsListByClusterOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByCluster operation. */ -export type MetricsConfigurationsListByClusterResponse = ClusterMetricsConfigurationList; +export type MetricsConfigurationsListByClusterResponse = + ClusterMetricsConfigurationList; /** Optional parameters. */ export interface MetricsConfigurationsGetOptionalParams @@ -6095,7 +6838,8 @@ export interface MetricsConfigurationsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type MetricsConfigurationsCreateOrUpdateResponse = ClusterMetricsConfiguration; +export type MetricsConfigurationsCreateOrUpdateResponse = + ClusterMetricsConfiguration; /** Optional parameters. */ export interface MetricsConfigurationsDeleteOptionalParams @@ -6106,6 +6850,9 @@ export interface MetricsConfigurationsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type MetricsConfigurationsDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface MetricsConfigurationsUpdateOptionalParams extends coreClient.OperationOptions { @@ -6125,7 +6872,8 @@ export interface MetricsConfigurationsListByClusterNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByClusterNext operation. */ -export type MetricsConfigurationsListByClusterNextResponse = ClusterMetricsConfigurationList; +export type MetricsConfigurationsListByClusterNextResponse = + ClusterMetricsConfigurationList; /** Optional parameters. */ export interface AgentPoolsListByKubernetesClusterOptionalParams @@ -6162,6 +6910,9 @@ export interface AgentPoolsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type AgentPoolsDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface AgentPoolsUpdateOptionalParams extends coreClient.OperationOptions { @@ -6183,6 +6934,68 @@ export interface AgentPoolsListByKubernetesClusterNextOptionalParams /** Contains response data for the listByKubernetesClusterNext operation. */ export type AgentPoolsListByKubernetesClusterNextResponse = AgentPoolList; +/** Optional parameters. */ +export interface KubernetesClusterFeaturesListByKubernetesClusterOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByKubernetesCluster operation. */ +export type KubernetesClusterFeaturesListByKubernetesClusterResponse = + KubernetesClusterFeatureList; + +/** Optional parameters. */ +export interface KubernetesClusterFeaturesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type KubernetesClusterFeaturesGetResponse = KubernetesClusterFeature; + +/** Optional parameters. */ +export interface KubernetesClusterFeaturesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type KubernetesClusterFeaturesCreateOrUpdateResponse = + KubernetesClusterFeature; + +/** Optional parameters. */ +export interface KubernetesClusterFeaturesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type KubernetesClusterFeaturesDeleteResponse = OperationStatusResult; + +/** Optional parameters. */ +export interface KubernetesClusterFeaturesUpdateOptionalParams + extends coreClient.OperationOptions { + /** The request body. */ + kubernetesClusterFeatureUpdateParameters?: KubernetesClusterFeaturePatchParameters; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type KubernetesClusterFeaturesUpdateResponse = KubernetesClusterFeature; + +/** Optional parameters. */ +export interface KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByKubernetesClusterNext operation. */ +export type KubernetesClusterFeaturesListByKubernetesClusterNextResponse = + KubernetesClusterFeatureList; + /** Optional parameters. */ export interface ConsolesListByVirtualMachineOptionalParams extends coreClient.OperationOptions {} @@ -6218,6 +7031,9 @@ export interface ConsolesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type ConsolesDeleteResponse = OperationStatusResult; + /** Optional parameters. */ export interface ConsolesUpdateOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/networkcloud/arm-networkcloud/src/models/mappers.ts b/sdk/networkcloud/arm-networkcloud/src/models/mappers.ts index a6fd126490db..05c9f9cb8c3d 100644 --- a/sdk/networkcloud/arm-networkcloud/src/models/mappers.ts +++ b/sdk/networkcloud/arm-networkcloud/src/models/mappers.ts @@ -21,20 +21,20 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -46,39 +46,39 @@ export const Operation: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, actionType: { serializedName: "actionType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -90,32 +90,32 @@ export const OperationDisplay: coreClient.CompositeMapper = { serializedName: "provider", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -127,11 +127,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -143,22 +143,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -168,10 +168,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -181,13 +181,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -199,19 +199,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const BareMetalMachineList: coreClient.CompositeMapper = { @@ -222,8 +222,8 @@ export const BareMetalMachineList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -232,13 +232,13 @@ export const BareMetalMachineList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BareMetalMachine" - } - } - } - } - } - } + className: "BareMetalMachine", + }, + }, + }, + }, + }, + }, }; export const ExtendedLocation: coreClient.CompositeMapper = { @@ -250,18 +250,18 @@ export const ExtendedLocation: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AdministrativeCredentials: coreClient.CompositeMapper = { @@ -271,26 +271,26 @@ export const AdministrativeCredentials: coreClient.CompositeMapper = { modelProperties: { password: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "password", required: true, type: { - name: "String" - } + name: "String", + }, }, username: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "username", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const HardwareInventory: coreClient.CompositeMapper = { @@ -302,8 +302,8 @@ export const HardwareInventory: coreClient.CompositeMapper = { serializedName: "additionalHostInformation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, interfaces: { serializedName: "interfaces", @@ -313,10 +313,10 @@ export const HardwareInventory: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "HardwareInventoryNetworkInterface" - } - } - } + className: "HardwareInventoryNetworkInterface", + }, + }, + }, }, nics: { serializedName: "nics", @@ -326,13 +326,13 @@ export const HardwareInventory: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Nic" - } - } - } - } - } - } + className: "Nic", + }, + }, + }, + }, + }, + }, }; export const HardwareInventoryNetworkInterface: coreClient.CompositeMapper = { @@ -344,32 +344,32 @@ export const HardwareInventoryNetworkInterface: coreClient.CompositeMapper = { serializedName: "linkStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, macAddress: { serializedName: "macAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, networkInterfaceId: { serializedName: "networkInterfaceId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Nic: coreClient.CompositeMapper = { @@ -381,25 +381,25 @@ export const Nic: coreClient.CompositeMapper = { serializedName: "lldpNeighbor", type: { name: "Composite", - className: "LldpNeighbor" - } + className: "LldpNeighbor", + }, }, macAddress: { serializedName: "macAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LldpNeighbor: coreClient.CompositeMapper = { @@ -411,32 +411,32 @@ export const LldpNeighbor: coreClient.CompositeMapper = { serializedName: "portDescription", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, portName: { serializedName: "portName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemDescription: { serializedName: "systemDescription", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemName: { serializedName: "systemName", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const HardwareValidationStatus: coreClient.CompositeMapper = { @@ -448,18 +448,136 @@ export const HardwareValidationStatus: coreClient.CompositeMapper = { serializedName: "lastValidationTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, result: { serializedName: "result", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const RuntimeProtectionStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RuntimeProtectionStatus", + modelProperties: { + definitionsLastUpdated: { + serializedName: "definitionsLastUpdated", + readOnly: true, + type: { + name: "DateTime", + }, + }, + definitionsVersion: { + serializedName: "definitionsVersion", + readOnly: true, + type: { + name: "String", + }, + }, + scanCompletedTime: { + serializedName: "scanCompletedTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + scanScheduledTime: { + serializedName: "scanScheduledTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + scanStartedTime: { + serializedName: "scanStartedTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + }, + }, +}; + +export const SecretRotationStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecretRotationStatus", + modelProperties: { + expirePeriodDays: { + serializedName: "expirePeriodDays", + readOnly: true, + type: { + name: "Number", + }, + }, + lastRotationTime: { + serializedName: "lastRotationTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + rotationPeriodDays: { + serializedName: "rotationPeriodDays", + readOnly: true, + type: { + name: "Number", + }, + }, + secretArchiveReference: { + serializedName: "secretArchiveReference", + type: { + name: "Composite", + className: "SecretArchiveReference", + }, + }, + secretType: { + serializedName: "secretType", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SecretArchiveReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecretArchiveReference", + modelProperties: { + keyVaultId: { + serializedName: "keyVaultId", + readOnly: true, + type: { + name: "String", + }, + }, + secretName: { + serializedName: "secretName", + readOnly: true, + type: { + name: "String", + }, + }, + secretVersion: { + serializedName: "secretVersion", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -471,32 +589,32 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -507,41 +625,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const CloudServicesNetworkList: coreClient.CompositeMapper = { @@ -552,8 +670,8 @@ export const CloudServicesNetworkList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -562,13 +680,13 @@ export const CloudServicesNetworkList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServicesNetwork" - } - } - } - } - } - } + className: "CloudServicesNetwork", + }, + }, + }, + }, + }, + }, }; export const EgressEndpoint: coreClient.CompositeMapper = { @@ -580,12 +698,12 @@ export const EgressEndpoint: coreClient.CompositeMapper = { serializedName: "category", required: true, type: { - name: "String" - } + name: "String", + }, }, endpoints: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "endpoints", required: true, @@ -594,13 +712,13 @@ export const EgressEndpoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDependency" - } - } - } - } - } - } + className: "EndpointDependency", + }, + }, + }, + }, + }, + }, }; export const EndpointDependency: coreClient.CompositeMapper = { @@ -612,21 +730,21 @@ export const EndpointDependency: coreClient.CompositeMapper = { serializedName: "domainName", required: true, type: { - name: "String" - } + name: "String", + }, }, port: { constraints: { InclusiveMaximum: 65535, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "port", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ClusterManagerList: coreClient.CompositeMapper = { @@ -637,8 +755,8 @@ export const ClusterManagerList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -647,13 +765,75 @@ export const ClusterManagerList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClusterManager" - } - } - } - } - } - } + className: "ClusterManager", + }, + }, + }, + }, + }, + }, +}; + +export const ManagedServiceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedServiceIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, + }, + }, + }, + }, +}; + +export const UserAssignedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAssignedIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + }, + }, }; export const ClusterAvailableVersion: coreClient.CompositeMapper = { @@ -665,18 +845,18 @@ export const ClusterAvailableVersion: coreClient.CompositeMapper = { serializedName: "supportExpiryDate", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, targetClusterVersion: { serializedName: "targetClusterVersion", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedResourceGroupConfiguration: coreClient.CompositeMapper = { @@ -687,20 +867,20 @@ export const ManagedResourceGroupConfiguration: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, name: { constraints: { - MaxLength: 75 + MaxLength: 75, }, serializedName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterList: coreClient.CompositeMapper = { @@ -711,8 +891,8 @@ export const ClusterList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -721,13 +901,13 @@ export const ClusterList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Cluster" - } - } - } - } - } - } + className: "Cluster", + }, + }, + }, + }, + }, + }, }; export const RackDefinition: coreClient.CompositeMapper = { @@ -737,12 +917,12 @@ export const RackDefinition: coreClient.CompositeMapper = { modelProperties: { availabilityZone: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]{1,10}$") + Pattern: new RegExp("^[a-zA-Z0-9]{1,10}$"), }, serializedName: "availabilityZone", type: { - name: "String" - } + name: "String", + }, }, bareMetalMachineConfigurationData: { serializedName: "bareMetalMachineConfigurationData", @@ -751,44 +931,44 @@ export const RackDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BareMetalMachineConfigurationData" - } - } - } + className: "BareMetalMachineConfigurationData", + }, + }, + }, }, networkRackId: { serializedName: "networkRackId", required: true, type: { - name: "String" - } + name: "String", + }, }, rackLocation: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "rackLocation", type: { - name: "String" - } + name: "String", + }, }, rackSerialNumber: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "rackSerialNumber", required: true, type: { - name: "String" - } + name: "String", + }, }, rackSkuId: { serializedName: "rackSkuId", required: true, type: { - name: "String" - } + name: "String", + }, }, storageApplianceConfigurationData: { serializedName: "storageApplianceConfigurationData", @@ -797,13 +977,13 @@ export const RackDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StorageApplianceConfigurationData" - } - } - } - } - } - } + className: "StorageApplianceConfigurationData", + }, + }, + }, + }, + }, + }, }; export const BareMetalMachineConfigurationData: coreClient.CompositeMapper = { @@ -815,77 +995,77 @@ export const BareMetalMachineConfigurationData: coreClient.CompositeMapper = { serializedName: "bmcConnectionString", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, bmcCredentials: { serializedName: "bmcCredentials", type: { name: "Composite", - className: "AdministrativeCredentials" - } + className: "AdministrativeCredentials", + }, }, bmcMacAddress: { constraints: { - Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$") + Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"), }, serializedName: "bmcMacAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, bootMacAddress: { constraints: { - Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$") + Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"), }, serializedName: "bootMacAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, machineDetails: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "machineDetails", type: { - name: "String" - } + name: "String", + }, }, machineName: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$"), }, serializedName: "machineName", type: { - name: "String" - } + name: "String", + }, }, rackSlot: { constraints: { InclusiveMaximum: 256, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "rackSlot", required: true, type: { - name: "Number" - } + name: "Number", + }, }, serialNumber: { constraints: { - MaxLength: 64 + MaxLength: 64, }, serializedName: "serialNumber", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageApplianceConfigurationData: coreClient.CompositeMapper = { @@ -897,38 +1077,38 @@ export const StorageApplianceConfigurationData: coreClient.CompositeMapper = { serializedName: "adminCredentials", type: { name: "Composite", - className: "AdministrativeCredentials" - } + className: "AdministrativeCredentials", + }, }, rackSlot: { constraints: { InclusiveMaximum: 256, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "rackSlot", required: true, type: { - name: "Number" - } + name: "Number", + }, }, serialNumber: { serializedName: "serialNumber", required: true, type: { - name: "String" - } + name: "String", + }, }, storageApplianceName: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "storageApplianceName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterAvailableUpgradeVersion: coreClient.CompositeMapper = { @@ -940,46 +1120,46 @@ export const ClusterAvailableUpgradeVersion: coreClient.CompositeMapper = { serializedName: "controlImpact", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, expectedDuration: { serializedName: "expectedDuration", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, impactDescription: { serializedName: "impactDescription", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, supportExpiryDate: { serializedName: "supportExpiryDate", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, targetClusterVersion: { serializedName: "targetClusterVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, workloadImpact: { serializedName: "workloadImpact", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterCapacity: coreClient.CompositeMapper = { @@ -990,53 +1170,53 @@ export const ClusterCapacity: coreClient.CompositeMapper = { availableApplianceStorageGB: { serializedName: "availableApplianceStorageGB", type: { - name: "Number" - } + name: "Number", + }, }, availableCoreCount: { serializedName: "availableCoreCount", type: { - name: "Number" - } + name: "Number", + }, }, availableHostStorageGB: { serializedName: "availableHostStorageGB", type: { - name: "Number" - } + name: "Number", + }, }, availableMemoryGB: { serializedName: "availableMemoryGB", type: { - name: "Number" - } + name: "Number", + }, }, totalApplianceStorageGB: { serializedName: "totalApplianceStorageGB", type: { - name: "Number" - } + name: "Number", + }, }, totalCoreCount: { serializedName: "totalCoreCount", type: { - name: "Number" - } + name: "Number", + }, }, totalHostStorageGB: { serializedName: "totalHostStorageGB", type: { - name: "Number" - } + name: "Number", + }, }, totalMemoryGB: { serializedName: "totalMemoryGB", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ServicePrincipalInformation: coreClient.CompositeMapper = { @@ -1048,65 +1228,200 @@ export const ServicePrincipalInformation: coreClient.CompositeMapper = { serializedName: "applicationId", required: true, type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", required: true, type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "principalId", required: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ValidationThreshold: coreClient.CompositeMapper = { +export const CommandOutputSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidationThreshold", + className: "CommandOutputSettings", modelProperties: { - grouping: { - serializedName: "grouping", - required: true, + associatedIdentity: { + serializedName: "associatedIdentity", type: { - name: "String" - } + name: "Composite", + className: "IdentitySelector", + }, }, - type: { - serializedName: "type", - required: true, + containerUrl: { + serializedName: "containerUrl", type: { - name: "String" - } - }, - value: { - constraints: { - InclusiveMinimum: 0 + name: "String", }, - serializedName: "value", - required: true, + }, + }, + }, +}; + +export const IdentitySelector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdentitySelector", + modelProperties: { + identityType: { + serializedName: "identityType", + type: { + name: "String", + }, + }, + userAssignedIdentityResourceId: { + serializedName: "userAssignedIdentityResourceId", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ValidationThreshold: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ValidationThreshold", + modelProperties: { + grouping: { + serializedName: "grouping", + required: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, + value: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "value", + required: true, + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const RuntimeProtectionConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RuntimeProtectionConfiguration", + modelProperties: { + enforcementLevel: { + defaultValue: "Disabled", + serializedName: "enforcementLevel", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ClusterSecretArchive: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterSecretArchive", + modelProperties: { + keyVaultId: { + serializedName: "keyVaultId", + required: true, + type: { + name: "String", + }, + }, + useKeyVault: { + defaultValue: "False", + serializedName: "useKeyVault", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ClusterUpdateStrategy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterUpdateStrategy", + modelProperties: { + maxUnavailable: { + constraints: { + InclusiveMinimum: 1, + }, + serializedName: "maxUnavailable", + type: { + name: "Number", + }, + }, + strategyType: { + serializedName: "strategyType", + required: true, + type: { + name: "String", + }, + }, + thresholdType: { + serializedName: "thresholdType", + required: true, + type: { + name: "String", + }, + }, + thresholdValue: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "thresholdValue", + required: true, + type: { + name: "Number", + }, + }, + waitTimeMinutes: { + defaultValue: 15, + constraints: { + InclusiveMaximum: 60, + InclusiveMinimum: 0, + }, + serializedName: "waitTimeMinutes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const KubernetesClusterList: coreClient.CompositeMapper = { @@ -1117,8 +1432,8 @@ export const KubernetesClusterList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -1127,13 +1442,13 @@ export const KubernetesClusterList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesCluster" - } - } - } - } - } - } + className: "KubernetesCluster", + }, + }, + }, + }, + }, + }, }; export const AadConfiguration: coreClient.CompositeMapper = { @@ -1143,7 +1458,7 @@ export const AadConfiguration: coreClient.CompositeMapper = { modelProperties: { adminGroupObjectIds: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "adminGroupObjectIds", required: true, @@ -1151,13 +1466,13 @@ export const AadConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const AdministratorConfiguration: coreClient.CompositeMapper = { @@ -1168,8 +1483,8 @@ export const AdministratorConfiguration: coreClient.CompositeMapper = { adminUsername: { serializedName: "adminUsername", type: { - name: "String" - } + name: "String", + }, }, sshPublicKeys: { serializedName: "sshPublicKeys", @@ -1178,13 +1493,13 @@ export const AdministratorConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SshPublicKey" - } - } - } - } - } - } + className: "SshPublicKey", + }, + }, + }, + }, + }, + }, }; export const SshPublicKey: coreClient.CompositeMapper = { @@ -1194,16 +1509,16 @@ export const SshPublicKey: coreClient.CompositeMapper = { modelProperties: { keyData: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "keyData", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AvailableUpgrade: coreClient.CompositeMapper = { @@ -1215,18 +1530,18 @@ export const AvailableUpgrade: coreClient.CompositeMapper = { serializedName: "availabilityLifecycle", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ControlPlaneNodeConfiguration: coreClient.CompositeMapper = { @@ -1238,8 +1553,8 @@ export const ControlPlaneNodeConfiguration: coreClient.CompositeMapper = { serializedName: "administratorConfiguration", type: { name: "Composite", - className: "AdministratorConfiguration" - } + className: "AdministratorConfiguration", + }, }, availabilityZones: { serializedName: "availabilityZones", @@ -1247,30 +1562,30 @@ export const ControlPlaneNodeConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, count: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "count", required: true, type: { - name: "Number" - } + name: "Number", + }, }, vmSkuName: { serializedName: "vmSkuName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FeatureStatus: coreClient.CompositeMapper = { @@ -1282,32 +1597,32 @@ export const FeatureStatus: coreClient.CompositeMapper = { serializedName: "detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const InitialAgentPoolConfiguration: coreClient.CompositeMapper = { @@ -1319,22 +1634,22 @@ export const InitialAgentPoolConfiguration: coreClient.CompositeMapper = { serializedName: "administratorConfiguration", type: { name: "Composite", - className: "AdministratorConfiguration" - } + className: "AdministratorConfiguration", + }, }, agentOptions: { serializedName: "agentOptions", type: { name: "Composite", - className: "AgentOptions" - } + className: "AgentOptions", + }, }, attachedNetworkConfiguration: { serializedName: "attachedNetworkConfiguration", type: { name: "Composite", - className: "AttachedNetworkConfiguration" - } + className: "AttachedNetworkConfiguration", + }, }, availabilityZones: { serializedName: "availabilityZones", @@ -1342,17 +1657,17 @@ export const InitialAgentPoolConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, count: { serializedName: "count", required: true, type: { - name: "Number" - } + name: "Number", + }, }, labels: { serializedName: "labels", @@ -1361,27 +1676,27 @@ export const InitialAgentPoolConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, mode: { serializedName: "mode", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, taints: { serializedName: "taints", @@ -1390,27 +1705,27 @@ export const InitialAgentPoolConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, upgradeSettings: { serializedName: "upgradeSettings", type: { name: "Composite", - className: "AgentPoolUpgradeSettings" - } + className: "AgentPoolUpgradeSettings", + }, }, vmSkuName: { serializedName: "vmSkuName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentOptions: coreClient.CompositeMapper = { @@ -1422,18 +1737,18 @@ export const AgentOptions: coreClient.CompositeMapper = { serializedName: "hugepagesCount", required: true, type: { - name: "Number" - } + name: "Number", + }, }, hugepagesSize: { defaultValue: "2M", serializedName: "hugepagesSize", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AttachedNetworkConfiguration: coreClient.CompositeMapper = { @@ -1448,10 +1763,10 @@ export const AttachedNetworkConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "L2NetworkAttachmentConfiguration" - } - } - } + className: "L2NetworkAttachmentConfiguration", + }, + }, + }, }, l3Networks: { serializedName: "l3Networks", @@ -1460,10 +1775,10 @@ export const AttachedNetworkConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "L3NetworkAttachmentConfiguration" - } - } - } + className: "L3NetworkAttachmentConfiguration", + }, + }, + }, }, trunkedNetworks: { serializedName: "trunkedNetworks", @@ -1472,13 +1787,13 @@ export const AttachedNetworkConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TrunkedNetworkAttachmentConfiguration" - } - } - } - } - } - } + className: "TrunkedNetworkAttachmentConfiguration", + }, + }, + }, + }, + }, + }, }; export const L2NetworkAttachmentConfiguration: coreClient.CompositeMapper = { @@ -1490,17 +1805,17 @@ export const L2NetworkAttachmentConfiguration: coreClient.CompositeMapper = { serializedName: "networkId", required: true, type: { - name: "String" - } + name: "String", + }, }, pluginType: { serializedName: "pluginType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const L3NetworkAttachmentConfiguration: coreClient.CompositeMapper = { @@ -1512,47 +1827,48 @@ export const L3NetworkAttachmentConfiguration: coreClient.CompositeMapper = { defaultValue: "False", serializedName: "ipamEnabled", type: { - name: "String" - } + name: "String", + }, }, networkId: { serializedName: "networkId", required: true, type: { - name: "String" - } + name: "String", + }, }, pluginType: { serializedName: "pluginType", type: { - name: "String" - } - } - } - } -}; - -export const TrunkedNetworkAttachmentConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrunkedNetworkAttachmentConfiguration", - modelProperties: { - networkId: { - serializedName: "networkId", - required: true, - type: { - name: "String" - } + name: "String", + }, }, - pluginType: { - serializedName: "pluginType", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const TrunkedNetworkAttachmentConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "TrunkedNetworkAttachmentConfiguration", + modelProperties: { + networkId: { + serializedName: "networkId", + required: true, + type: { + name: "String", + }, + }, + pluginType: { + serializedName: "pluginType", + type: { + name: "String", + }, + }, + }, + }, + }; export const KubernetesLabel: coreClient.CompositeMapper = { type: { @@ -1563,18 +1879,18 @@ export const KubernetesLabel: coreClient.CompositeMapper = { serializedName: "key", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentPoolUpgradeSettings: coreClient.CompositeMapper = { @@ -1582,15 +1898,30 @@ export const AgentPoolUpgradeSettings: coreClient.CompositeMapper = { name: "Composite", className: "AgentPoolUpgradeSettings", modelProperties: { + drainTimeout: { + constraints: { + InclusiveMaximum: 86400, + InclusiveMinimum: 60, + }, + serializedName: "drainTimeout", + type: { + name: "Number", + }, + }, maxSurge: { - defaultValue: "1", serializedName: "maxSurge", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + maxUnavailable: { + serializedName: "maxUnavailable", + type: { + name: "String", + }, + }, + }, + }, }; export const NetworkConfiguration: coreClient.CompositeMapper = { @@ -1602,35 +1933,42 @@ export const NetworkConfiguration: coreClient.CompositeMapper = { serializedName: "attachedNetworkConfiguration", type: { name: "Composite", - className: "AttachedNetworkConfiguration" - } + className: "AttachedNetworkConfiguration", + }, }, bgpServiceLoadBalancerConfiguration: { serializedName: "bgpServiceLoadBalancerConfiguration", type: { name: "Composite", - className: "BgpServiceLoadBalancerConfiguration" - } + className: "BgpServiceLoadBalancerConfiguration", + }, }, cloudServicesNetworkId: { serializedName: "cloudServicesNetworkId", required: true, type: { - name: "String" - } + name: "String", + }, }, cniNetworkId: { serializedName: "cniNetworkId", required: true, type: { - name: "String" - } + name: "String", + }, }, dnsServiceIp: { serializedName: "dnsServiceIp", type: { - name: "String" - } + name: "String", + }, + }, + l2ServiceLoadBalancerConfiguration: { + serializedName: "l2ServiceLoadBalancerConfiguration", + type: { + name: "Composite", + className: "L2ServiceLoadBalancerConfiguration", + }, }, podCidrs: { serializedName: "podCidrs", @@ -1638,10 +1976,10 @@ export const NetworkConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, serviceCidrs: { serializedName: "serviceCidrs", @@ -1649,13 +1987,13 @@ export const NetworkConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const BgpServiceLoadBalancerConfiguration: coreClient.CompositeMapper = { @@ -1670,10 +2008,10 @@ export const BgpServiceLoadBalancerConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BgpAdvertisement" - } - } - } + className: "BgpAdvertisement", + }, + }, + }, }, bgpPeers: { serializedName: "bgpPeers", @@ -1682,17 +2020,17 @@ export const BgpServiceLoadBalancerConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServiceLoadBalancerBgpPeer" - } - } - } + className: "ServiceLoadBalancerBgpPeer", + }, + }, + }, }, fabricPeeringEnabled: { defaultValue: "True", serializedName: "fabricPeeringEnabled", type: { - name: "String" - } + name: "String", + }, }, ipAddressPools: { serializedName: "ipAddressPools", @@ -1701,13 +2039,13 @@ export const BgpServiceLoadBalancerConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IpAddressPool" - } - } - } - } - } - } + className: "IpAddressPool", + }, + }, + }, + }, + }, + }, }; export const BgpAdvertisement: coreClient.CompositeMapper = { @@ -1719,8 +2057,8 @@ export const BgpAdvertisement: coreClient.CompositeMapper = { defaultValue: "True", serializedName: "advertiseToFabric", type: { - name: "String" - } + name: "String", + }, }, communities: { serializedName: "communities", @@ -1728,10 +2066,10 @@ export const BgpAdvertisement: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ipAddressPools: { serializedName: "ipAddressPools", @@ -1740,10 +2078,10 @@ export const BgpAdvertisement: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, peers: { serializedName: "peers", @@ -1751,13 +2089,13 @@ export const BgpAdvertisement: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ServiceLoadBalancerBgpPeer: coreClient.CompositeMapper = { @@ -1768,85 +2106,85 @@ export const ServiceLoadBalancerBgpPeer: coreClient.CompositeMapper = { bfdEnabled: { serializedName: "bfdEnabled", type: { - name: "String" - } + name: "String", + }, }, bgpMultiHop: { defaultValue: "False", serializedName: "bgpMultiHop", type: { - name: "String" - } + name: "String", + }, }, holdTime: { serializedName: "holdTime", type: { - name: "String" - } + name: "String", + }, }, keepAliveTime: { serializedName: "keepAliveTime", type: { - name: "String" - } + name: "String", + }, }, myAsn: { constraints: { InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "myAsn", type: { - name: "Number" - } + name: "Number", + }, }, name: { constraints: { - Pattern: new RegExp("^[a-z0-9]([a-z0-9.-]{0,61}[a-z0-9]){0,1}$") + Pattern: new RegExp("^[a-z0-9]([a-z0-9.-]{0,61}[a-z0-9]){0,1}$"), }, serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, password: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9]{0,80}$"), - MaxLength: 80 + MaxLength: 80, }, serializedName: "password", type: { - name: "String" - } + name: "String", + }, }, peerAddress: { serializedName: "peerAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, peerAsn: { constraints: { InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "peerAsn", required: true, type: { - name: "Number" - } + name: "Number", + }, }, peerPort: { defaultValue: 179, serializedName: "peerPort", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const IpAddressPool: coreClient.CompositeMapper = { @@ -1861,35 +2199,56 @@ export const IpAddressPool: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, autoAssign: { serializedName: "autoAssign", type: { - name: "String" - } + name: "String", + }, }, name: { constraints: { - Pattern: new RegExp("^[a-z0-9]([a-z0-9.-]{0,61}[a-z0-9]){0,1}$") + Pattern: new RegExp("^[a-z0-9]([a-z0-9.-]{0,61}[a-z0-9]){0,1}$"), }, serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, onlyUseHostIps: { serializedName: "onlyUseHostIps", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const L2ServiceLoadBalancerConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "L2ServiceLoadBalancerConfiguration", + modelProperties: { + ipAddressPools: { + serializedName: "ipAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpAddressPool", + }, + }, + }, + }, + }, + }, }; export const KubernetesClusterNode: coreClient.CompositeMapper = { @@ -1901,64 +2260,64 @@ export const KubernetesClusterNode: coreClient.CompositeMapper = { serializedName: "agentPoolId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, availabilityZone: { serializedName: "availabilityZone", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, bareMetalMachineId: { serializedName: "bareMetalMachineId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, cpuCores: { serializedName: "cpuCores", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, detailedStatus: { serializedName: "detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, image: { serializedName: "image", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kubernetesVersion: { serializedName: "kubernetesVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, labels: { serializedName: "labels", @@ -1968,31 +2327,31 @@ export const KubernetesClusterNode: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, memorySizeGB: { serializedName: "memorySizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, mode: { serializedName: "mode", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, networkAttachments: { serializedName: "networkAttachments", @@ -2002,24 +2361,24 @@ export const KubernetesClusterNode: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkAttachment" - } - } - } + className: "NetworkAttachment", + }, + }, + }, }, powerState: { serializedName: "powerState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, role: { serializedName: "role", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, taints: { serializedName: "taints", @@ -2029,20 +2388,20 @@ export const KubernetesClusterNode: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, vmSkuName: { serializedName: "vmSkuName", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkAttachment: coreClient.CompositeMapper = { @@ -2054,52 +2413,52 @@ export const NetworkAttachment: coreClient.CompositeMapper = { serializedName: "attachedNetworkId", required: true, type: { - name: "String" - } + name: "String", + }, }, defaultGateway: { serializedName: "defaultGateway", type: { - name: "String" - } + name: "String", + }, }, ipAllocationMethod: { serializedName: "ipAllocationMethod", required: true, type: { - name: "String" - } + name: "String", + }, }, ipv4Address: { serializedName: "ipv4Address", type: { - name: "String" - } + name: "String", + }, }, ipv6Address: { serializedName: "ipv6Address", type: { - name: "String" - } + name: "String", + }, }, macAddress: { serializedName: "macAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, networkAttachmentName: { constraints: { - MaxLength: 15 + MaxLength: 15, }, serializedName: "networkAttachmentName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const L2NetworkList: coreClient.CompositeMapper = { @@ -2110,8 +2469,8 @@ export const L2NetworkList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2120,13 +2479,13 @@ export const L2NetworkList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "L2Network" - } - } - } - } - } - } + className: "L2Network", + }, + }, + }, + }, + }, + }, }; export const L3NetworkList: coreClient.CompositeMapper = { @@ -2137,8 +2496,8 @@ export const L3NetworkList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2147,13 +2506,13 @@ export const L3NetworkList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "L3Network" - } - } - } - } - } - } + className: "L3Network", + }, + }, + }, + }, + }, + }, }; export const RackSkuList: coreClient.CompositeMapper = { @@ -2164,8 +2523,8 @@ export const RackSkuList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2174,13 +2533,13 @@ export const RackSkuList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RackSku" - } - } - } - } - } - } + className: "RackSku", + }, + }, + }, + }, + }, + }, }; export const MachineSkuSlot: coreClient.CompositeMapper = { @@ -2192,29 +2551,29 @@ export const MachineSkuSlot: coreClient.CompositeMapper = { serializedName: "rackSlot", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, bootstrapProtocol: { serializedName: "properties.bootstrapProtocol", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, cpuCores: { serializedName: "properties.cpuCores", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, cpuSockets: { serializedName: "properties.cpuSockets", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, disks: { serializedName: "properties.disks", @@ -2224,38 +2583,38 @@ export const MachineSkuSlot: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MachineDisk" - } - } - } + className: "MachineDisk", + }, + }, + }, }, generation: { serializedName: "properties.generation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hardwareVersion: { serializedName: "properties.hardwareVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, memoryCapacityGB: { serializedName: "properties.memoryCapacityGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, model: { serializedName: "properties.model", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, networkInterfaces: { serializedName: "properties.networkInterfaces", @@ -2265,27 +2624,27 @@ export const MachineSkuSlot: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkInterface" - } - } - } + className: "NetworkInterface", + }, + }, + }, }, totalThreads: { serializedName: "properties.totalThreads", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, vendor: { serializedName: "properties.vendor", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MachineDisk: coreClient.CompositeMapper = { @@ -2297,25 +2656,25 @@ export const MachineDisk: coreClient.CompositeMapper = { serializedName: "capacityGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, connection: { serializedName: "connection", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkInterface: coreClient.CompositeMapper = { @@ -2327,53 +2686,53 @@ export const NetworkInterface: coreClient.CompositeMapper = { serializedName: "address", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, deviceConnectionType: { serializedName: "deviceConnectionType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, model: { serializedName: "model", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, physicalSlot: { serializedName: "physicalSlot", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, portCount: { serializedName: "portCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, portSpeed: { serializedName: "portSpeed", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, vendor: { serializedName: "vendor", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageApplianceSkuSlot: coreClient.CompositeMapper = { @@ -2385,25 +2744,25 @@ export const StorageApplianceSkuSlot: coreClient.CompositeMapper = { serializedName: "rackSlot", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, capacityGB: { serializedName: "properties.capacityGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, model: { serializedName: "properties.model", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RackList: coreClient.CompositeMapper = { @@ -2414,8 +2773,8 @@ export const RackList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2424,13 +2783,13 @@ export const RackList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Rack" - } - } - } - } - } - } + className: "Rack", + }, + }, + }, + }, + }, + }, }; export const StorageApplianceList: coreClient.CompositeMapper = { @@ -2441,8 +2800,8 @@ export const StorageApplianceList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2451,13 +2810,13 @@ export const StorageApplianceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StorageAppliance" - } - } - } - } - } - } + className: "StorageAppliance", + }, + }, + }, + }, + }, + }, }; export const TrunkedNetworkList: coreClient.CompositeMapper = { @@ -2468,8 +2827,8 @@ export const TrunkedNetworkList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2478,13 +2837,13 @@ export const TrunkedNetworkList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TrunkedNetwork" - } - } - } - } - } - } + className: "TrunkedNetwork", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineList: coreClient.CompositeMapper = { @@ -2495,8 +2854,8 @@ export const VirtualMachineList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2505,13 +2864,13 @@ export const VirtualMachineList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachine" - } - } - } - } - } - } + className: "VirtualMachine", + }, + }, + }, + }, + }, + }, }; export const VirtualMachinePlacementHint: coreClient.CompositeMapper = { @@ -2523,35 +2882,32 @@ export const VirtualMachinePlacementHint: coreClient.CompositeMapper = { serializedName: "hintType", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceId: { - constraints: { - MinLength: 1 - }, serializedName: "resourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, schedulingExecution: { serializedName: "schedulingExecution", required: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "scope", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageProfile: coreClient.CompositeMapper = { @@ -2563,8 +2919,8 @@ export const StorageProfile: coreClient.CompositeMapper = { serializedName: "osDisk", type: { name: "Composite", - className: "OsDisk" - } + className: "OsDisk", + }, }, volumeAttachments: { serializedName: "volumeAttachments", @@ -2572,13 +2928,13 @@ export const StorageProfile: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const OsDisk: coreClient.CompositeMapper = { @@ -2590,25 +2946,25 @@ export const OsDisk: coreClient.CompositeMapper = { defaultValue: "Ephemeral", serializedName: "createOption", type: { - name: "String" - } + name: "String", + }, }, deleteOption: { defaultValue: "Delete", serializedName: "deleteOption", type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ImageRepositoryCredentials: coreClient.CompositeMapper = { @@ -2618,33 +2974,33 @@ export const ImageRepositoryCredentials: coreClient.CompositeMapper = { modelProperties: { password: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "password", required: true, type: { - name: "String" - } + name: "String", + }, }, registryUrl: { serializedName: "registryUrl", required: true, type: { - name: "String" - } + name: "String", + }, }, username: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "username", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumeList: coreClient.CompositeMapper = { @@ -2655,8 +3011,8 @@ export const VolumeList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -2665,54 +3021,13 @@ export const VolumeList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Volume" - } - } - } - } - } - } -}; - -export const BareMetalMachinePatchParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachinePatchParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - machineDetails: { - constraints: { - MaxLength: 256 + className: "Volume", + }, + }, }, - serializedName: "properties.machineDetails", - type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachineCordonParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachineCordonParameters", - modelProperties: { - evacuate: { - defaultValue: "False", - serializedName: "evacuate", - type: { - name: "String" - } - } - } - } + }, + }, + }, }; export const OperationStatusResult: coreClient.CompositeMapper = { @@ -2720,75 +3035,150 @@ export const OperationStatusResult: coreClient.CompositeMapper = { name: "Composite", className: "OperationStatusResult", modelProperties: { - id: { - serializedName: "id", + endTime: { + serializedName: "endTime", + readOnly: true, type: { - name: "String" - } + name: "DateTime", + }, }, - resourceId: { - serializedName: "resourceId", + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + id: { + serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - status: { - serializedName: "status", - required: true, + operations: { + serializedName: "operations", + readOnly: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationStatusResult", + }, + }, + }, }, percentComplete: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "percentComplete", + readOnly: true, + type: { + name: "Number", + }, + }, + resourceId: { + serializedName: "resourceId", + readOnly: true, type: { - name: "Number" - } + name: "String", + }, }, startTime: { serializedName: "startTime", + readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, - endTime: { - serializedName: "endTime", + status: { + serializedName: "status", + required: true, type: { - name: "DateTime" - } + name: "String", + }, }, - operations: { - serializedName: "operations", + exitCode: { + serializedName: "properties.exitCode", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationStatusResult" - } - } - } + name: "String", + }, }, - error: { - serializedName: "error", + outputHead: { + serializedName: "properties.outputHead", + readOnly: true, type: { - name: "Composite", - className: "ErrorDetail" - } - } - } - } + name: "String", + }, + }, + resultRef: { + serializedName: "properties.resultRef", + readOnly: true, + type: { + name: "String", + }, + }, + resultUrl: { + serializedName: "properties.resultUrl", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const BareMetalMachinePatchParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BareMetalMachinePatchParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + machineDetails: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.machineDetails", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const BareMetalMachineCordonParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BareMetalMachineCordonParameters", + modelProperties: { + evacuate: { + defaultValue: "False", + serializedName: "evacuate", + type: { + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinePowerOffParameters: coreClient.CompositeMapper = { @@ -2800,11 +3190,11 @@ export const BareMetalMachinePowerOffParameters: coreClient.CompositeMapper = { defaultValue: "False", serializedName: "skipShutdown", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachineReplaceParameters: coreClient.CompositeMapper = { @@ -2816,275 +3206,300 @@ export const BareMetalMachineReplaceParameters: coreClient.CompositeMapper = { serializedName: "bmcCredentials", type: { name: "Composite", - className: "AdministrativeCredentials" - } + className: "AdministrativeCredentials", + }, }, bmcMacAddress: { constraints: { - Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$") + Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"), }, serializedName: "bmcMacAddress", type: { - name: "String" - } + name: "String", + }, }, bootMacAddress: { constraints: { - Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$") + Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"), }, serializedName: "bootMacAddress", type: { - name: "String" - } + name: "String", + }, }, machineName: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$"), }, serializedName: "machineName", type: { - name: "String" - } + name: "String", + }, }, serialNumber: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "serialNumber", type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachineRunCommandParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachineRunCommandParameters", - modelProperties: { - arguments: { - serializedName: "arguments", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - limitTimeSeconds: { - constraints: { - InclusiveMaximum: 14400, - InclusiveMinimum: 60 + }, + }, +}; + +export const BareMetalMachineRunCommandParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineRunCommandParameters", + modelProperties: { + arguments: { + serializedName: "arguments", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + limitTimeSeconds: { + constraints: { + InclusiveMaximum: 14400, + InclusiveMinimum: 60, + }, + serializedName: "limitTimeSeconds", + required: true, + type: { + name: "Number", + }, + }, + script: { + serializedName: "script", + required: true, + type: { + name: "String", + }, }, - serializedName: "limitTimeSeconds", - required: true, - type: { - name: "Number" - } }, - script: { - serializedName: "script", - required: true, - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const BareMetalMachineRunDataExtractsParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineRunDataExtractsParameters", + modelProperties: { + commands: { + constraints: { + MinItems: 1, + }, + serializedName: "commands", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BareMetalMachineCommandSpecification", + }, + }, + }, + }, + limitTimeSeconds: { + constraints: { + InclusiveMaximum: 14400, + InclusiveMinimum: 60, + }, + serializedName: "limitTimeSeconds", + required: true, + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const BareMetalMachineCommandSpecification: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineCommandSpecification", + modelProperties: { + arguments: { + serializedName: "arguments", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + command: { + serializedName: "command", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const BareMetalMachineRunReadCommandsParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineRunReadCommandsParameters", + modelProperties: { + commands: { + constraints: { + MinItems: 1, + }, + serializedName: "commands", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BareMetalMachineCommandSpecification", + }, + }, + }, + }, + limitTimeSeconds: { + constraints: { + InclusiveMaximum: 14400, + InclusiveMinimum: 60, + }, + serializedName: "limitTimeSeconds", + required: true, + type: { + name: "Number", + }, + }, + }, + }, + }; -export const BareMetalMachineRunDataExtractsParameters: coreClient.CompositeMapper = { +export const CloudServicesNetworkPatchParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BareMetalMachineRunDataExtractsParameters", + className: "CloudServicesNetworkPatchParameters", modelProperties: { - commands: { - constraints: { - MinItems: 1 + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, }, - serializedName: "commands", - required: true, + }, + additionalEgressEndpoints: { + serializedName: "properties.additionalEgressEndpoints", type: { name: "Sequence", element: { type: { name: "Composite", - className: "BareMetalMachineCommandSpecification" - } - } - } - }, - limitTimeSeconds: { - constraints: { - InclusiveMaximum: 14400, - InclusiveMinimum: 60 + className: "EgressEndpoint", + }, + }, }, - serializedName: "limitTimeSeconds", - required: true, + }, + enableDefaultEgressEndpoints: { + serializedName: "properties.enableDefaultEgressEndpoints", type: { - name: "Number" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BareMetalMachineCommandSpecification: coreClient.CompositeMapper = { +export const ClusterManagerPatchParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BareMetalMachineCommandSpecification", + className: "ClusterManagerPatchParameters", modelProperties: { - arguments: { - serializedName: "arguments", + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Composite", + className: "ManagedServiceIdentity", + }, }, - command: { - serializedName: "command", - required: true, + tags: { + serializedName: "tags", type: { - name: "String" - } - } - } - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, }; -export const BareMetalMachineRunReadCommandsParameters: coreClient.CompositeMapper = { +export const ClusterPatchParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BareMetalMachineRunReadCommandsParameters", + className: "ClusterPatchParameters", modelProperties: { - commands: { - constraints: { - MinItems: 1 - }, - serializedName: "commands", - required: true, + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BareMetalMachineCommandSpecification" - } - } - } - }, - limitTimeSeconds: { - constraints: { - InclusiveMaximum: 14400, - InclusiveMinimum: 60 + name: "Composite", + className: "ManagedServiceIdentity", }, - serializedName: "limitTimeSeconds", - required: true, - type: { - name: "Number" - } - } - } - } -}; - -export const CloudServicesNetworkPatchParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudServicesNetworkPatchParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } }, - additionalEgressEndpoints: { - serializedName: "properties.additionalEgressEndpoints", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EgressEndpoint" - } - } - } - }, - enableDefaultEgressEndpoints: { - serializedName: "properties.enableDefaultEgressEndpoints", - type: { - name: "String" - } - } - } - } -}; - -export const ClusterManagerPatchParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterManagerPatchParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const ClusterPatchParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterPatchParameters", - modelProperties: { tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, aggregatorOrSingleRackDefinition: { serializedName: "properties.aggregatorOrSingleRackDefinition", type: { name: "Composite", - className: "RackDefinition" - } + className: "RackDefinition", + }, }, clusterLocation: { serializedName: "properties.clusterLocation", type: { - name: "String" - } + name: "String", + }, }, clusterServicePrincipal: { serializedName: "properties.clusterServicePrincipal", type: { name: "Composite", - className: "ServicePrincipalInformation" - } + className: "ServicePrincipalInformation", + }, + }, + commandOutputSettings: { + serializedName: "properties.commandOutputSettings", + type: { + name: "Composite", + className: "CommandOutputSettings", + }, }, computeDeploymentThreshold: { serializedName: "properties.computeDeploymentThreshold", type: { name: "Composite", - className: "ValidationThreshold" - } + className: "ValidationThreshold", + }, }, computeRackDefinitions: { serializedName: "properties.computeRackDefinitions", @@ -3093,13 +3508,34 @@ export const ClusterPatchParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RackDefinition" - } - } - } - } - } - } + className: "RackDefinition", + }, + }, + }, + }, + runtimeProtectionConfiguration: { + serializedName: "properties.runtimeProtectionConfiguration", + type: { + name: "Composite", + className: "RuntimeProtectionConfiguration", + }, + }, + secretArchive: { + serializedName: "properties.secretArchive", + type: { + name: "Composite", + className: "ClusterSecretArchive", + }, + }, + updateStrategy: { + serializedName: "properties.updateStrategy", + type: { + name: "Composite", + className: "ClusterUpdateStrategy", + }, + }, + }, + }, }; export const BareMetalMachineKeySetList: coreClient.CompositeMapper = { @@ -3110,8 +3546,8 @@ export const BareMetalMachineKeySetList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -3120,13 +3556,13 @@ export const BareMetalMachineKeySetList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BareMetalMachineKeySet" - } - } - } - } - } - } + className: "BareMetalMachineKeySet", + }, + }, + }, + }, + }, + }, }; export const KeySetUser: coreClient.CompositeMapper = { @@ -3138,27 +3574,33 @@ export const KeySetUser: coreClient.CompositeMapper = { serializedName: "azureUserName", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, sshPublicKey: { serializedName: "sshPublicKey", type: { name: "Composite", - className: "SshPublicKey" - } - } - } - } + className: "SshPublicKey", + }, + }, + userPrincipalName: { + serializedName: "userPrincipalName", + type: { + name: "String", + }, + }, + }, + }, }; export const KeySetUserStatus: coreClient.CompositeMapper = { @@ -3170,74 +3612,75 @@ export const KeySetUserStatus: coreClient.CompositeMapper = { serializedName: "azureUserName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statusMessage: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "statusMessage", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachineKeySetPatchParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachineKeySetPatchParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - expiration: { - serializedName: "properties.expiration", - type: { - name: "DateTime" - } + name: "String", + }, }, - jumpHostsAllowed: { - serializedName: "properties.jumpHostsAllowed", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + }, + }, +}; + +export const BareMetalMachineKeySetPatchParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineKeySetPatchParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + expiration: { + serializedName: "properties.expiration", + type: { + name: "DateTime", + }, + }, + jumpHostsAllowed: { + serializedName: "properties.jumpHostsAllowed", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + userList: { + serializedName: "properties.userList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KeySetUser", + }, + }, + }, + }, }, - userList: { - serializedName: "properties.userList", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "KeySetUser" - } - } - } - } - } - } -}; + }, + }; export const BmcKeySetList: coreClient.CompositeMapper = { type: { @@ -3247,8 +3690,8 @@ export const BmcKeySetList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -3257,13 +3700,13 @@ export const BmcKeySetList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BmcKeySet" - } - } - } - } - } - } + className: "BmcKeySet", + }, + }, + }, + }, + }, + }, }; export const BmcKeySetPatchParameters: coreClient.CompositeMapper = { @@ -3275,14 +3718,14 @@ export const BmcKeySetPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, expiration: { serializedName: "properties.expiration", type: { - name: "DateTime" - } + name: "DateTime", + }, }, userList: { serializedName: "properties.userList", @@ -3291,14 +3734,31 @@ export const BmcKeySetPatchParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeySetUser" - } - } - } - } - } - } -}; + className: "KeySetUser", + }, + }, + }, + }, + }, + }, +}; + +export const ClusterContinueUpdateVersionParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClusterContinueUpdateVersionParameters", + modelProperties: { + machineGroupTargetingMode: { + defaultValue: "AlphaByRack", + serializedName: "machineGroupTargetingMode", + type: { + name: "String", + }, + }, + }, + }, + }; export const ClusterDeployParameters: coreClient.CompositeMapper = { type: { @@ -3311,13 +3771,13 @@ export const ClusterDeployParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ClusterMetricsConfigurationList: coreClient.CompositeMapper = { @@ -3328,8 +3788,8 @@ export const ClusterMetricsConfigurationList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -3338,50 +3798,67 @@ export const ClusterMetricsConfigurationList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClusterMetricsConfiguration" - } - } - } - } - } - } -}; + className: "ClusterMetricsConfiguration", + }, + }, + }, + }, + }, + }, +}; + +export const ClusterMetricsConfigurationPatchParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClusterMetricsConfigurationPatchParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + collectionInterval: { + constraints: { + InclusiveMaximum: 1440, + InclusiveMinimum: 1, + }, + serializedName: "properties.collectionInterval", + type: { + name: "Number", + }, + }, + enabledMetrics: { + serializedName: "properties.enabledMetrics", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; -export const ClusterMetricsConfigurationPatchParameters: coreClient.CompositeMapper = { +export const ClusterScanRuntimeParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterMetricsConfigurationPatchParameters", + className: "ClusterScanRuntimeParameters", modelProperties: { - tags: { - serializedName: "tags", + scanActivity: { + defaultValue: "Scan", + serializedName: "scanActivity", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - collectionInterval: { - constraints: { - InclusiveMaximum: 1440, - InclusiveMinimum: 1 + name: "String", }, - serializedName: "properties.collectionInterval", - type: { - name: "Number" - } }, - enabledMetrics: { - serializedName: "properties.enabledMetrics", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } + }, + }, }; export const ClusterUpdateVersionParameters: coreClient.CompositeMapper = { @@ -3393,11 +3870,11 @@ export const ClusterUpdateVersionParameters: coreClient.CompositeMapper = { serializedName: "targetClusterVersion", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KubernetesClusterPatchParameters: coreClient.CompositeMapper = { @@ -3409,24 +3886,52 @@ export const KubernetesClusterPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, + }, + administratorConfiguration: { + serializedName: "properties.administratorConfiguration", + type: { + name: "Composite", + className: "AdministratorConfigurationPatch", + }, }, controlPlaneNodeConfiguration: { serializedName: "properties.controlPlaneNodeConfiguration", type: { name: "Composite", - className: "ControlPlaneNodePatchConfiguration" - } + className: "ControlPlaneNodePatchConfiguration", + }, }, kubernetesVersion: { serializedName: "properties.kubernetesVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const AdministratorConfigurationPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdministratorConfigurationPatch", + modelProperties: { + sshPublicKeys: { + serializedName: "sshPublicKeys", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SshPublicKey", + }, + }, + }, + }, + }, + }, }; export const ControlPlaneNodePatchConfiguration: coreClient.CompositeMapper = { @@ -3434,17 +3939,24 @@ export const ControlPlaneNodePatchConfiguration: coreClient.CompositeMapper = { name: "Composite", className: "ControlPlaneNodePatchConfiguration", modelProperties: { + administratorConfiguration: { + serializedName: "administratorConfiguration", + type: { + name: "Composite", + className: "AdministratorConfigurationPatch", + }, + }, count: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "count", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AgentPoolList: coreClient.CompositeMapper = { @@ -3455,8 +3967,8 @@ export const AgentPoolList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -3465,13 +3977,13 @@ export const AgentPoolList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AgentPool" - } - } - } - } - } - } + className: "AgentPool", + }, + }, + }, + }, + }, + }, }; export const AgentPoolPatchParameters: coreClient.CompositeMapper = { @@ -3483,41 +3995,150 @@ export const AgentPoolPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, + }, + administratorConfiguration: { + serializedName: "properties.administratorConfiguration", + type: { + name: "Composite", + className: "NodePoolAdministratorConfigurationPatch", + }, }, count: { serializedName: "properties.count", type: { - name: "Number" - } + name: "Number", + }, }, upgradeSettings: { serializedName: "properties.upgradeSettings", type: { name: "Composite", - className: "AgentPoolUpgradeSettings" - } - } - } - } + className: "AgentPoolUpgradeSettings", + }, + }, + }, + }, +}; + +export const NodePoolAdministratorConfigurationPatch: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NodePoolAdministratorConfigurationPatch", + modelProperties: { + sshPublicKeys: { + serializedName: "sshPublicKeys", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SshPublicKey", + }, + }, + }, + }, + }, + }, + }; + +export const KubernetesClusterFeatureList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KubernetesClusterFeatureList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KubernetesClusterFeature", + }, + }, + }, + }, + }, + }, }; -export const KubernetesClusterRestartNodeParameters: coreClient.CompositeMapper = { +export const StringKeyValuePair: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesClusterRestartNodeParameters", + className: "StringKeyValuePair", modelProperties: { - nodeName: { - serializedName: "nodeName", + key: { + serializedName: "key", required: true, type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + value: { + serializedName: "value", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const KubernetesClusterFeaturePatchParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClusterFeaturePatchParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + options: { + serializedName: "properties.options", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StringKeyValuePair", + }, + }, + }, + }, + }, + }, + }; + +export const KubernetesClusterRestartNodeParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClusterRestartNodeParameters", + modelProperties: { + nodeName: { + serializedName: "nodeName", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const L2NetworkPatchParameters: coreClient.CompositeMapper = { type: { @@ -3528,11 +4149,11 @@ export const L2NetworkPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const L3NetworkPatchParameters: coreClient.CompositeMapper = { @@ -3544,11 +4165,11 @@ export const L3NetworkPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const RackPatchParameters: coreClient.CompositeMapper = { @@ -3560,30 +4181,30 @@ export const RackPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, rackLocation: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.rackLocation", type: { - name: "String" - } + name: "String", + }, }, rackSerialNumber: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.rackSerialNumber", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageAppliancePatchParameters: coreClient.CompositeMapper = { @@ -3595,38 +4216,39 @@ export const StorageAppliancePatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, serialNumber: { serializedName: "properties.serialNumber", type: { - name: "String" - } - } - } - } -}; - -export const StorageApplianceEnableRemoteVendorManagementParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageApplianceEnableRemoteVendorManagementParameters", - modelProperties: { - supportEndpoints: { - serializedName: "supportEndpoints", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const StorageApplianceEnableRemoteVendorManagementParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "StorageApplianceEnableRemoteVendorManagementParameters", + modelProperties: { + supportEndpoints: { + serializedName: "supportEndpoints", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; export const TrunkedNetworkPatchParameters: coreClient.CompositeMapper = { type: { @@ -3637,11 +4259,11 @@ export const TrunkedNetworkPatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const VirtualMachinePatchParameters: coreClient.CompositeMapper = { @@ -3653,18 +4275,18 @@ export const VirtualMachinePatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, vmImageRepositoryCredentials: { serializedName: "properties.vmImageRepositoryCredentials", type: { name: "Composite", - className: "ImageRepositoryCredentials" - } - } - } - } + className: "ImageRepositoryCredentials", + }, + }, + }, + }, }; export const ConsoleList: coreClient.CompositeMapper = { @@ -3675,8 +4297,8 @@ export const ConsoleList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -3685,13 +4307,13 @@ export const ConsoleList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Console" - } - } - } - } - } - } + className: "Console", + }, + }, + }, + }, + }, + }, }; export const ConsolePatchParameters: coreClient.CompositeMapper = { @@ -3703,30 +4325,30 @@ export const ConsolePatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "String" - } + name: "String", + }, }, expiration: { serializedName: "properties.expiration", type: { - name: "DateTime" - } + name: "DateTime", + }, }, sshPublicKey: { serializedName: "properties.sshPublicKey", type: { name: "Composite", - className: "SshPublicKey" - } - } - } - } + className: "SshPublicKey", + }, + }, + }, + }, }; export const VirtualMachinePowerOffParameters: coreClient.CompositeMapper = { @@ -3738,11 +4360,11 @@ export const VirtualMachinePowerOffParameters: coreClient.CompositeMapper = { defaultValue: "False", serializedName: "skipShutdown", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePatchParameters: coreClient.CompositeMapper = { @@ -3754,11 +4376,11 @@ export const VolumePatchParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const AgentPoolConfiguration: coreClient.CompositeMapper = { @@ -3770,22 +4392,22 @@ export const AgentPoolConfiguration: coreClient.CompositeMapper = { serializedName: "administratorConfiguration", type: { name: "Composite", - className: "AdministratorConfiguration" - } + className: "AdministratorConfiguration", + }, }, agentOptions: { serializedName: "agentOptions", type: { name: "Composite", - className: "AgentOptions" - } + className: "AgentOptions", + }, }, attachedNetworkConfiguration: { serializedName: "attachedNetworkConfiguration", type: { name: "Composite", - className: "AttachedNetworkConfiguration" - } + className: "AttachedNetworkConfiguration", + }, }, availabilityZones: { serializedName: "availabilityZones", @@ -3793,17 +4415,17 @@ export const AgentPoolConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, count: { serializedName: "count", required: true, type: { - name: "Number" - } + name: "Number", + }, }, labels: { serializedName: "labels", @@ -3812,17 +4434,17 @@ export const AgentPoolConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, mode: { serializedName: "mode", required: true, type: { - name: "String" - } + name: "String", + }, }, taints: { serializedName: "taints", @@ -3831,27 +4453,27 @@ export const AgentPoolConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, upgradeSettings: { serializedName: "upgradeSettings", type: { name: "Composite", - className: "AgentPoolUpgradeSettings" - } + className: "AgentPoolUpgradeSettings", + }, }, vmSkuName: { serializedName: "vmSkuName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagsParameter: coreClient.CompositeMapper = { @@ -3863,11 +4485,11 @@ export const TagsParameter: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -3880,18 +4502,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RackSku: coreClient.CompositeMapper = { @@ -3908,10 +4530,10 @@ export const RackSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MachineSkuSlot" - } - } - } + className: "MachineSkuSlot", + }, + }, + }, }, controllerMachines: { serializedName: "properties.controllerMachines", @@ -3921,38 +4543,38 @@ export const RackSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MachineSkuSlot" - } - } - } + className: "MachineSkuSlot", + }, + }, + }, }, description: { serializedName: "properties.description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, maxClusterSlots: { serializedName: "properties.maxClusterSlots", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rackType: { serializedName: "properties.rackType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageAppliances: { serializedName: "properties.storageAppliances", @@ -3962,10 +4584,10 @@ export const RackSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StorageApplianceSkuSlot" - } - } - } + className: "StorageApplianceSkuSlot", + }, + }, + }, }, supportedRackSkuIds: { serializedName: "properties.supportedRackSkuIds", @@ -3974,13 +4596,13 @@ export const RackSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const BareMetalMachine: coreClient.CompositeMapper = { @@ -3993,8 +4615,8 @@ export const BareMetalMachine: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, associatedResourceIds: { serializedName: "properties.associatedResourceIds", @@ -4003,86 +4625,86 @@ export const BareMetalMachine: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, bmcConnectionString: { serializedName: "properties.bmcConnectionString", required: true, type: { - name: "String" - } + name: "String", + }, }, bmcCredentials: { serializedName: "properties.bmcCredentials", type: { name: "Composite", - className: "AdministrativeCredentials" - } + className: "AdministrativeCredentials", + }, }, bmcMacAddress: { constraints: { - Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$") + Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"), }, serializedName: "properties.bmcMacAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, bootMacAddress: { constraints: { - Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$") + Pattern: new RegExp("^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"), }, serializedName: "properties.bootMacAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, cordonStatus: { serializedName: "properties.cordonStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hardwareInventory: { serializedName: "properties.hardwareInventory", type: { name: "Composite", - className: "HardwareInventory" - } + className: "HardwareInventory", + }, }, hardwareValidationStatus: { serializedName: "properties.hardwareValidationStatus", type: { name: "Composite", - className: "HardwareValidationStatus" - } + className: "HardwareValidationStatus", + }, }, hybridAksClustersAssociatedIds: { serializedName: "properties.hybridAksClustersAssociatedIds", @@ -4091,129 +4713,167 @@ export const BareMetalMachine: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kubernetesNodeName: { serializedName: "properties.kubernetesNodeName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kubernetesVersion: { serializedName: "properties.kubernetesVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + machineClusterVersion: { + serializedName: "properties.machineClusterVersion", + type: { + name: "String", + }, }, machineDetails: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.machineDetails", required: true, type: { - name: "String" - } + name: "String", + }, }, machineName: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$"), }, serializedName: "properties.machineName", required: true, type: { - name: "String" - } + name: "String", + }, + }, + machineRoles: { + serializedName: "properties.machineRoles", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, machineSkuId: { serializedName: "properties.machineSkuId", required: true, type: { - name: "String" - } + name: "String", + }, }, oamIpv4Address: { serializedName: "properties.oamIpv4Address", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, oamIpv6Address: { serializedName: "properties.oamIpv6Address", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, osImage: { serializedName: "properties.osImage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, powerState: { serializedName: "properties.powerState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rackId: { serializedName: "properties.rackId", required: true, type: { - name: "String" - } + name: "String", + }, }, rackSlot: { constraints: { InclusiveMaximum: 256, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.rackSlot", required: true, type: { - name: "Number" - } + name: "Number", + }, }, readyState: { serializedName: "properties.readyState", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + runtimeProtectionStatus: { + serializedName: "properties.runtimeProtectionStatus", + type: { + name: "Composite", + className: "RuntimeProtectionStatus", + }, + }, + secretRotationStatus: { + serializedName: "properties.secretRotationStatus", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecretRotationStatus", + }, + }, + }, }, serialNumber: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.serialNumber", required: true, type: { - name: "String" - } + name: "String", + }, }, serviceTag: { serializedName: "properties.serviceTag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachinesAssociatedIds: { serializedName: "properties.virtualMachinesAssociatedIds", @@ -4222,13 +4882,13 @@ export const BareMetalMachine: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CloudServicesNetwork: coreClient.CompositeMapper = { @@ -4241,8 +4901,8 @@ export const CloudServicesNetwork: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, additionalEgressEndpoints: { serializedName: "properties.additionalEgressEndpoints", @@ -4251,10 +4911,10 @@ export const CloudServicesNetwork: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EgressEndpoint" - } - } - } + className: "EgressEndpoint", + }, + }, + }, }, associatedResourceIds: { serializedName: "properties.associatedResourceIds", @@ -4263,37 +4923,37 @@ export const CloudServicesNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, enableDefaultEgressEndpoints: { serializedName: "properties.enableDefaultEgressEndpoints", type: { - name: "String" - } + name: "String", + }, }, enabledEgressEndpoints: { serializedName: "properties.enabledEgressEndpoints", @@ -4303,10 +4963,10 @@ export const CloudServicesNetwork: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EgressEndpoint" - } - } - } + className: "EgressEndpoint", + }, + }, + }, }, hybridAksClustersAssociatedIds: { serializedName: "properties.hybridAksClustersAssociatedIds", @@ -4315,24 +4975,24 @@ export const CloudServicesNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, interfaceName: { serializedName: "properties.interfaceName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachinesAssociatedIds: { serializedName: "properties.virtualMachinesAssociatedIds", @@ -4341,13 +5001,13 @@ export const CloudServicesNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ClusterManager: coreClient.CompositeMapper = { @@ -4356,11 +5016,18 @@ export const ClusterManager: coreClient.CompositeMapper = { className: "ClusterManager", modelProperties: { ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity", + }, + }, analyticsWorkspaceId: { serializedName: "properties.analyticsWorkspaceId", type: { - name: "String" - } + name: "String", + }, }, availabilityZones: { serializedName: "properties.availabilityZones", @@ -4368,10 +5035,10 @@ export const ClusterManager: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clusterVersions: { serializedName: "properties.clusterVersions", @@ -4381,61 +5048,61 @@ export const ClusterManager: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClusterAvailableVersion" - } - } - } + className: "ClusterAvailableVersion", + }, + }, + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, fabricControllerId: { serializedName: "properties.fabricControllerId", required: true, type: { - name: "String" - } + name: "String", + }, }, managedResourceGroupConfiguration: { serializedName: "properties.managedResourceGroupConfiguration", type: { name: "Composite", - className: "ManagedResourceGroupConfiguration" - } + className: "ManagedResourceGroupConfiguration", + }, }, managerExtendedLocation: { serializedName: "properties.managerExtendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, vmSize: { serializedName: "properties.vmSize", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Cluster: coreClient.CompositeMapper = { @@ -4448,21 +5115,28 @@ export const Cluster: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity", + }, }, aggregatorOrSingleRackDefinition: { serializedName: "properties.aggregatorOrSingleRackDefinition", type: { name: "Composite", - className: "RackDefinition" - } + className: "RackDefinition", + }, }, analyticsWorkspaceId: { serializedName: "properties.analyticsWorkspaceId", type: { - name: "String" - } + name: "String", + }, }, availableUpgradeVersions: { serializedName: "properties.availableUpgradeVersions", @@ -4472,82 +5146,89 @@ export const Cluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClusterAvailableUpgradeVersion" - } - } - } + className: "ClusterAvailableUpgradeVersion", + }, + }, + }, }, clusterCapacity: { serializedName: "properties.clusterCapacity", type: { name: "Composite", - className: "ClusterCapacity" - } + className: "ClusterCapacity", + }, }, clusterConnectionStatus: { serializedName: "properties.clusterConnectionStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clusterExtendedLocation: { serializedName: "properties.clusterExtendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, clusterLocation: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.clusterLocation", type: { - name: "String" - } + name: "String", + }, }, clusterManagerConnectionStatus: { serializedName: "properties.clusterManagerConnectionStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clusterManagerId: { serializedName: "properties.clusterManagerId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clusterServicePrincipal: { serializedName: "properties.clusterServicePrincipal", type: { name: "Composite", - className: "ServicePrincipalInformation" - } + className: "ServicePrincipalInformation", + }, }, clusterType: { serializedName: "properties.clusterType", required: true, type: { - name: "String" - } + name: "String", + }, }, clusterVersion: { serializedName: "properties.clusterVersion", required: true, type: { - name: "String" - } + name: "String", + }, + }, + commandOutputSettings: { + serializedName: "properties.commandOutputSettings", + type: { + name: "Composite", + className: "CommandOutputSettings", + }, }, computeDeploymentThreshold: { serializedName: "properties.computeDeploymentThreshold", type: { name: "Composite", - className: "ValidationThreshold" - } + className: "ValidationThreshold", + }, }, computeRackDefinitions: { serializedName: "properties.computeRackDefinitions", @@ -4556,66 +5237,87 @@ export const Cluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RackDefinition" - } - } - } + className: "RackDefinition", + }, + }, + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hybridAksExtendedLocation: { serializedName: "properties.hybridAksExtendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, managedResourceGroupConfiguration: { serializedName: "properties.managedResourceGroupConfiguration", type: { name: "Composite", - className: "ManagedResourceGroupConfiguration" - } + className: "ManagedResourceGroupConfiguration", + }, }, manualActionCount: { serializedName: "properties.manualActionCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, networkFabricId: { serializedName: "properties.networkFabricId", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + runtimeProtectionConfiguration: { + serializedName: "properties.runtimeProtectionConfiguration", + type: { + name: "Composite", + className: "RuntimeProtectionConfiguration", + }, + }, + secretArchive: { + serializedName: "properties.secretArchive", + type: { + name: "Composite", + className: "ClusterSecretArchive", + }, }, supportExpiryDate: { serializedName: "properties.supportExpiryDate", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + updateStrategy: { + serializedName: "properties.updateStrategy", + type: { + name: "Composite", + className: "ClusterUpdateStrategy", + }, }, workloadResourceIds: { serializedName: "properties.workloadResourceIds", @@ -4624,13 +5326,13 @@ export const Cluster: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const KubernetesCluster: coreClient.CompositeMapper = { @@ -4643,22 +5345,22 @@ export const KubernetesCluster: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, aadConfiguration: { serializedName: "properties.aadConfiguration", type: { name: "Composite", - className: "AadConfiguration" - } + className: "AadConfiguration", + }, }, administratorConfiguration: { serializedName: "properties.administratorConfiguration", type: { name: "Composite", - className: "AdministratorConfiguration" - } + className: "AdministratorConfiguration", + }, }, attachedNetworkIds: { serializedName: "properties.attachedNetworkIds", @@ -4667,10 +5369,10 @@ export const KubernetesCluster: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, availableUpgrades: { serializedName: "properties.availableUpgrades", @@ -4680,52 +5382,52 @@ export const KubernetesCluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AvailableUpgrade" - } - } - } + className: "AvailableUpgrade", + }, + }, + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, connectedClusterId: { serializedName: "properties.connectedClusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, controlPlaneKubernetesVersion: { serializedName: "properties.controlPlaneKubernetesVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, controlPlaneNodeConfiguration: { serializedName: "properties.controlPlaneNodeConfiguration", type: { name: "Composite", - className: "ControlPlaneNodeConfiguration" - } + className: "ControlPlaneNodeConfiguration", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, featureStatuses: { serializedName: "properties.featureStatuses", @@ -4735,14 +5437,14 @@ export const KubernetesCluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "FeatureStatus" - } - } - } + className: "FeatureStatus", + }, + }, + }, }, initialAgentPoolConfigurations: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "properties.initialAgentPoolConfigurations", required: true, @@ -4751,31 +5453,31 @@ export const KubernetesCluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InitialAgentPoolConfiguration" - } - } - } + className: "InitialAgentPoolConfiguration", + }, + }, + }, }, kubernetesVersion: { serializedName: "properties.kubernetesVersion", required: true, type: { - name: "String" - } + name: "String", + }, }, managedResourceGroupConfiguration: { serializedName: "properties.managedResourceGroupConfiguration", type: { name: "Composite", - className: "ManagedResourceGroupConfiguration" - } + className: "ManagedResourceGroupConfiguration", + }, }, networkConfiguration: { serializedName: "properties.networkConfiguration", type: { name: "Composite", - className: "NetworkConfiguration" - } + className: "NetworkConfiguration", + }, }, nodes: { serializedName: "properties.nodes", @@ -4785,20 +5487,20 @@ export const KubernetesCluster: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesClusterNode" - } - } - } + className: "KubernetesClusterNode", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const L2Network: coreClient.CompositeMapper = { @@ -4811,8 +5513,8 @@ export const L2Network: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, associatedResourceIds: { serializedName: "properties.associatedResourceIds", @@ -4821,31 +5523,31 @@ export const L2Network: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hybridAksClustersAssociatedIds: { serializedName: "properties.hybridAksClustersAssociatedIds", @@ -4854,40 +5556,40 @@ export const L2Network: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, hybridAksPluginType: { serializedName: "properties.hybridAksPluginType", type: { - name: "String" - } + name: "String", + }, }, interfaceName: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9@._-]*$"), - MaxLength: 12 + MaxLength: 12, }, serializedName: "properties.interfaceName", type: { - name: "String" - } + name: "String", + }, }, l2IsolationDomainId: { serializedName: "properties.l2IsolationDomainId", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachinesAssociatedIds: { serializedName: "properties.virtualMachinesAssociatedIds", @@ -4896,13 +5598,13 @@ export const L2Network: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const L3Network: coreClient.CompositeMapper = { @@ -4915,8 +5617,8 @@ export const L3Network: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, associatedResourceIds: { serializedName: "properties.associatedResourceIds", @@ -4925,31 +5627,31 @@ export const L3Network: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hybridAksClustersAssociatedIds: { serializedName: "properties.hybridAksClustersAssociatedIds", @@ -4958,66 +5660,66 @@ export const L3Network: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, hybridAksIpamEnabled: { defaultValue: "True", serializedName: "properties.hybridAksIpamEnabled", type: { - name: "String" - } + name: "String", + }, }, hybridAksPluginType: { serializedName: "properties.hybridAksPluginType", type: { - name: "String" - } + name: "String", + }, }, interfaceName: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9@._-]*$"), - MaxLength: 12 + MaxLength: 12, }, serializedName: "properties.interfaceName", type: { - name: "String" - } + name: "String", + }, }, ipAllocationType: { defaultValue: "DualStack", serializedName: "properties.ipAllocationType", type: { - name: "String" - } + name: "String", + }, }, ipv4ConnectedPrefix: { serializedName: "properties.ipv4ConnectedPrefix", type: { - name: "String" - } + name: "String", + }, }, ipv6ConnectedPrefix: { serializedName: "properties.ipv6ConnectedPrefix", type: { - name: "String" - } + name: "String", + }, }, l3IsolationDomainId: { serializedName: "properties.l3IsolationDomainId", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachinesAssociatedIds: { serializedName: "properties.virtualMachinesAssociatedIds", @@ -5026,20 +5728,20 @@ export const L3Network: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, vlan: { serializedName: "properties.vlan", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Rack: coreClient.CompositeMapper = { @@ -5052,77 +5754,77 @@ export const Rack: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, availabilityZone: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]{1,10}$") + Pattern: new RegExp("^[a-zA-Z0-9]{1,10}$"), }, serializedName: "properties.availabilityZone", required: true, type: { - name: "String" - } + name: "String", + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rackLocation: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.rackLocation", required: true, type: { - name: "String" - } + name: "String", + }, }, rackSerialNumber: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.rackSerialNumber", required: true, type: { - name: "String" - } + name: "String", + }, }, rackSkuId: { serializedName: "properties.rackSkuId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageAppliance: coreClient.CompositeMapper = { @@ -5135,113 +5837,147 @@ export const StorageAppliance: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, administratorCredentials: { serializedName: "properties.administratorCredentials", type: { name: "Composite", - className: "AdministrativeCredentials" - } + className: "AdministrativeCredentials", + }, }, capacity: { serializedName: "properties.capacity", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, capacityUsed: { serializedName: "properties.capacityUsed", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, managementIpv4Address: { serializedName: "properties.managementIpv4Address", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + manufacturer: { + serializedName: "properties.manufacturer", + readOnly: true, + type: { + name: "String", + }, + }, + model: { + serializedName: "properties.model", + readOnly: true, + type: { + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rackId: { serializedName: "properties.rackId", required: true, type: { - name: "String" - } + name: "String", + }, }, rackSlot: { constraints: { InclusiveMaximum: 256, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.rackSlot", required: true, type: { - name: "Number" - } + name: "Number", + }, }, remoteVendorManagementFeature: { serializedName: "properties.remoteVendorManagementFeature", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, remoteVendorManagementStatus: { serializedName: "properties.remoteVendorManagementStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + secretRotationStatus: { + serializedName: "properties.secretRotationStatus", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecretRotationStatus", + }, + }, + }, }, serialNumber: { serializedName: "properties.serialNumber", required: true, type: { - name: "String" - } + name: "String", + }, }, storageApplianceSkuId: { serializedName: "properties.storageApplianceSkuId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + version: { + serializedName: "properties.version", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const TrunkedNetwork: coreClient.CompositeMapper = { @@ -5254,8 +5990,8 @@ export const TrunkedNetwork: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, associatedResourceIds: { serializedName: "properties.associatedResourceIds", @@ -5264,31 +6000,31 @@ export const TrunkedNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hybridAksClustersAssociatedIds: { serializedName: "properties.hybridAksClustersAssociatedIds", @@ -5297,30 +6033,30 @@ export const TrunkedNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, hybridAksPluginType: { serializedName: "properties.hybridAksPluginType", type: { - name: "String" - } + name: "String", + }, }, interfaceName: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9@._-]*$"), - MaxLength: 12 + MaxLength: 12, }, serializedName: "properties.interfaceName", type: { - name: "String" - } + name: "String", + }, }, isolationDomainIds: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "properties.isolationDomainIds", required: true, @@ -5328,17 +6064,17 @@ export const TrunkedNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachinesAssociatedIds: { serializedName: "properties.virtualMachinesAssociatedIds", @@ -5347,14 +6083,14 @@ export const TrunkedNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, vlans: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "properties.vlans", required: true, @@ -5362,13 +6098,13 @@ export const TrunkedNetwork: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "Number" - } - } - } - } - } - } + name: "Number", + }, + }, + }, + }, + }, + }, }; export const VirtualMachine: coreClient.CompositeMapper = { @@ -5381,96 +6117,96 @@ export const VirtualMachine: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, adminUsername: { constraints: { Pattern: new RegExp("^[a-z_][a-z0-9_]{0,31}$"), MaxLength: 32, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.adminUsername", required: true, type: { - name: "String" - } + name: "String", + }, }, availabilityZone: { serializedName: "properties.availabilityZone", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, bareMetalMachineId: { serializedName: "properties.bareMetalMachineId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, bootMethod: { defaultValue: "UEFI", serializedName: "properties.bootMethod", type: { - name: "String" - } + name: "String", + }, }, cloudServicesNetworkAttachment: { serializedName: "properties.cloudServicesNetworkAttachment", type: { name: "Composite", - className: "NetworkAttachment" - } + className: "NetworkAttachment", + }, }, clusterId: { serializedName: "properties.clusterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, cpuCores: { constraints: { - InclusiveMinimum: 2 + InclusiveMinimum: 2, }, serializedName: "properties.cpuCores", required: true, type: { - name: "Number" - } + name: "Number", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isolateEmulatorThread: { defaultValue: "True", serializedName: "properties.isolateEmulatorThread", type: { - name: "String" - } + name: "String", + }, }, memorySizeGB: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.memorySizeGB", required: true, type: { - name: "Number" - } + name: "Number", + }, }, networkAttachments: { serializedName: "properties.networkAttachments", @@ -5479,16 +6215,16 @@ export const VirtualMachine: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkAttachment" - } - } - } + className: "NetworkAttachment", + }, + }, + }, }, networkData: { serializedName: "properties.networkData", type: { - name: "String" - } + name: "String", + }, }, placementHints: { serializedName: "properties.placementHints", @@ -5497,24 +6233,24 @@ export const VirtualMachine: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachinePlacementHint" - } - } - } + className: "VirtualMachinePlacementHint", + }, + }, + }, }, powerState: { serializedName: "properties.powerState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sshPublicKeys: { serializedName: "properties.sshPublicKeys", @@ -5523,51 +6259,51 @@ export const VirtualMachine: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SshPublicKey" - } - } - } + className: "SshPublicKey", + }, + }, + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "StorageProfile" - } + className: "StorageProfile", + }, }, userData: { serializedName: "properties.userData", type: { - name: "String" - } + name: "String", + }, }, virtioInterface: { defaultValue: "Modern", serializedName: "properties.virtioInterface", type: { - name: "String" - } + name: "String", + }, }, vmDeviceModel: { defaultValue: "T2", serializedName: "properties.vmDeviceModel", type: { - name: "String" - } + name: "String", + }, }, vmImage: { serializedName: "properties.vmImage", required: true, type: { - name: "String" - } + name: "String", + }, }, vmImageRepositoryCredentials: { serializedName: "properties.vmImageRepositoryCredentials", type: { name: "Composite", - className: "ImageRepositoryCredentials" - } + className: "ImageRepositoryCredentials", + }, }, volumes: { serializedName: "properties.volumes", @@ -5576,13 +6312,13 @@ export const VirtualMachine: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const Volume: coreClient.CompositeMapper = { @@ -5595,8 +6331,8 @@ export const Volume: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, attachedTo: { serializedName: "properties.attachedTo", @@ -5605,51 +6341,51 @@ export const Volume: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serialNumber: { serializedName: "properties.serialNumber", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sizeMiB: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.sizeMiB", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const BareMetalMachineKeySet: coreClient.CompositeMapper = { @@ -5662,36 +6398,36 @@ export const BareMetalMachineKeySet: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, azureGroupId: { serializedName: "properties.azureGroupId", required: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, expiration: { serializedName: "properties.expiration", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, jumpHostsAllowed: { serializedName: "properties.jumpHostsAllowed", @@ -5700,41 +6436,41 @@ export const BareMetalMachineKeySet: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, lastValidation: { serializedName: "properties.lastValidation", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, osGroupName: { constraints: { Pattern: new RegExp("^([A-Za-z]([A-Za-z0-9]*))$"), - MaxLength: 32 + MaxLength: 32, }, serializedName: "properties.osGroupName", type: { - name: "String" - } + name: "String", + }, }, privilegeLevel: { serializedName: "properties.privilegeLevel", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userList: { serializedName: "properties.userList", @@ -5744,10 +6480,10 @@ export const BareMetalMachineKeySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeySetUser" - } - } - } + className: "KeySetUser", + }, + }, + }, }, userListStatus: { serializedName: "properties.userListStatus", @@ -5757,13 +6493,13 @@ export const BareMetalMachineKeySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeySetUserStatus" - } - } - } - } - } - } + className: "KeySetUserStatus", + }, + }, + }, + }, + }, + }, }; export const BmcKeySet: coreClient.CompositeMapper = { @@ -5776,57 +6512,57 @@ export const BmcKeySet: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, azureGroupId: { serializedName: "properties.azureGroupId", required: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, expiration: { serializedName: "properties.expiration", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastValidation: { serializedName: "properties.lastValidation", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, privilegeLevel: { serializedName: "properties.privilegeLevel", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userList: { serializedName: "properties.userList", @@ -5836,10 +6572,10 @@ export const BmcKeySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeySetUser" - } - } - } + className: "KeySetUser", + }, + }, + }, }, userListStatus: { serializedName: "properties.userListStatus", @@ -5849,13 +6585,13 @@ export const BmcKeySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeySetUserStatus" - } - } - } - } - } - } + className: "KeySetUserStatus", + }, + }, + }, + }, + }, + }, }; export const ClusterMetricsConfiguration: coreClient.CompositeMapper = { @@ -5868,33 +6604,33 @@ export const ClusterMetricsConfiguration: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, collectionInterval: { constraints: { InclusiveMaximum: 1440, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.collectionInterval", required: true, type: { - name: "Number" - } + name: "Number", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, disabledMetrics: { serializedName: "properties.disabledMetrics", @@ -5903,10 +6639,10 @@ export const ClusterMetricsConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, enabledMetrics: { serializedName: "properties.enabledMetrics", @@ -5914,20 +6650,20 @@ export const ClusterMetricsConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentPool: coreClient.CompositeMapper = { @@ -5940,29 +6676,29 @@ export const AgentPool: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, administratorConfiguration: { serializedName: "properties.administratorConfiguration", type: { name: "Composite", - className: "AdministratorConfiguration" - } + className: "AdministratorConfiguration", + }, }, agentOptions: { serializedName: "properties.agentOptions", type: { name: "Composite", - className: "AgentOptions" - } + className: "AgentOptions", + }, }, attachedNetworkConfiguration: { serializedName: "properties.attachedNetworkConfiguration", type: { name: "Composite", - className: "AttachedNetworkConfiguration" - } + className: "AttachedNetworkConfiguration", + }, }, availabilityZones: { serializedName: "properties.availabilityZones", @@ -5970,38 +6706,38 @@ export const AgentPool: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, count: { serializedName: "properties.count", required: true, type: { - name: "Number" - } + name: "Number", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kubernetesVersion: { serializedName: "properties.kubernetesVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, labels: { serializedName: "properties.labels", @@ -6010,24 +6746,24 @@ export const AgentPool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, mode: { serializedName: "properties.mode", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, taints: { serializedName: "properties.taints", @@ -6036,27 +6772,91 @@ export const AgentPool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KubernetesLabel" - } - } - } + className: "KubernetesLabel", + }, + }, + }, }, upgradeSettings: { serializedName: "properties.upgradeSettings", type: { name: "Composite", - className: "AgentPoolUpgradeSettings" - } + className: "AgentPoolUpgradeSettings", + }, }, vmSkuName: { serializedName: "properties.vmSkuName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const KubernetesClusterFeature: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KubernetesClusterFeature", + modelProperties: { + ...TrackedResource.type.modelProperties, + availabilityLifecycle: { + serializedName: "properties.availabilityLifecycle", + readOnly: true, + type: { + name: "String", + }, + }, + detailedStatus: { + serializedName: "properties.detailedStatus", + readOnly: true, + type: { + name: "String", + }, + }, + detailedStatusMessage: { + serializedName: "properties.detailedStatusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + options: { + serializedName: "properties.options", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StringKeyValuePair", + }, + }, + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + required: { + serializedName: "properties.required", + readOnly: true, + type: { + name: "String", + }, + }, + version: { + serializedName: "properties.version", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const Console: coreClient.CompositeMapper = { @@ -6069,82 +6869,83 @@ export const Console: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, detailedStatus: { serializedName: "properties.detailedStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, detailedStatusMessage: { serializedName: "properties.detailedStatusMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "properties.enabled", required: true, type: { - name: "String" - } + name: "String", + }, }, expiration: { serializedName: "properties.expiration", type: { - name: "DateTime" - } + name: "DateTime", + }, }, privateLinkServiceId: { serializedName: "properties.privateLinkServiceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sshPublicKey: { serializedName: "properties.sshPublicKey", type: { name: "Composite", - className: "SshPublicKey" - } + className: "SshPublicKey", + }, }, virtualMachineAccessId: { serializedName: "properties.virtualMachineAccessId", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachinesCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachinesCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const BareMetalMachinesCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachinesCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const BareMetalMachinesDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6154,11 +6955,11 @@ export const BareMetalMachinesDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesUpdateHeaders: coreClient.CompositeMapper = { @@ -6169,11 +6970,17 @@ export const BareMetalMachinesUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesCordonHeaders: coreClient.CompositeMapper = { @@ -6184,11 +6991,11 @@ export const BareMetalMachinesCordonHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesPowerOffHeaders: coreClient.CompositeMapper = { @@ -6199,11 +7006,11 @@ export const BareMetalMachinesPowerOffHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesReimageHeaders: coreClient.CompositeMapper = { @@ -6214,11 +7021,11 @@ export const BareMetalMachinesReimageHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesReplaceHeaders: coreClient.CompositeMapper = { @@ -6229,11 +7036,11 @@ export const BareMetalMachinesReplaceHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesRestartHeaders: coreClient.CompositeMapper = { @@ -6244,11 +7051,11 @@ export const BareMetalMachinesRestartHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesRunCommandHeaders: coreClient.CompositeMapper = { @@ -6259,42 +7066,44 @@ export const BareMetalMachinesRunCommandHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachinesRunDataExtractsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachinesRunDataExtractsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachinesRunReadCommandsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachinesRunReadCommandsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const BareMetalMachinesRunDataExtractsHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachinesRunDataExtractsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const BareMetalMachinesRunReadCommandsHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachinesRunReadCommandsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const BareMetalMachinesStartHeaders: coreClient.CompositeMapper = { type: { @@ -6304,11 +7113,11 @@ export const BareMetalMachinesStartHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BareMetalMachinesUncordonHeaders: coreClient.CompositeMapper = { @@ -6319,27 +7128,28 @@ export const BareMetalMachinesUncordonHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const CloudServicesNetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudServicesNetworksCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const CloudServicesNetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CloudServicesNetworksCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const CloudServicesNetworksDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6349,11 +7159,11 @@ export const CloudServicesNetworksDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServicesNetworksUpdateHeaders: coreClient.CompositeMapper = { @@ -6364,27 +7174,34 @@ export const CloudServicesNetworksUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; - -export const ClusterManagersCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterManagersCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + name: "String", + }, + }, + location: { + serializedName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ClusterManagersCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClusterManagersCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const ClusterManagersDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6394,11 +7211,11 @@ export const ClusterManagersDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = { @@ -6409,11 +7226,11 @@ export const ClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClustersDeleteHeaders: coreClient.CompositeMapper = { @@ -6424,11 +7241,11 @@ export const ClustersDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClustersUpdateHeaders: coreClient.CompositeMapper = { @@ -6439,12 +7256,34 @@ export const ClustersUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ClustersContinueUpdateVersionHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClustersContinueUpdateVersionHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const ClustersDeployHeaders: coreClient.CompositeMapper = { type: { @@ -6454,42 +7293,58 @@ export const ClustersDeployHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ClustersUpdateVersionHeaders: coreClient.CompositeMapper = { +export const ClustersScanRuntimeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClustersUpdateVersionHeaders", + className: "ClustersScanRuntimeHeaders", modelProperties: { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const KubernetesClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const ClustersUpdateVersionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesClustersCreateOrUpdateHeaders", + className: "ClustersUpdateVersionHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const KubernetesClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClustersCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const KubernetesClustersDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6499,11 +7354,11 @@ export const KubernetesClustersDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KubernetesClustersUpdateHeaders: coreClient.CompositeMapper = { @@ -6514,27 +7369,34 @@ export const KubernetesClustersUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; - -export const KubernetesClustersRestartNodeHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KubernetesClustersRestartNodeHeaders", - modelProperties: { + name: "String", + }, + }, location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const KubernetesClustersRestartNodeHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClustersRestartNodeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const L2NetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { @@ -6544,11 +7406,11 @@ export const L2NetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const L2NetworksDeleteHeaders: coreClient.CompositeMapper = { @@ -6559,11 +7421,11 @@ export const L2NetworksDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const L3NetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = { @@ -6574,11 +7436,11 @@ export const L3NetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const L3NetworksDeleteHeaders: coreClient.CompositeMapper = { @@ -6589,11 +7451,11 @@ export const L3NetworksDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RacksCreateOrUpdateHeaders: coreClient.CompositeMapper = { @@ -6604,11 +7466,11 @@ export const RacksCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RacksDeleteHeaders: coreClient.CompositeMapper = { @@ -6619,11 +7481,11 @@ export const RacksDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RacksUpdateHeaders: coreClient.CompositeMapper = { @@ -6634,27 +7496,34 @@ export const RacksUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; - -export const StorageAppliancesCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageAppliancesCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + name: "String", + }, + }, + location: { + serializedName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const StorageAppliancesCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "StorageAppliancesCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const StorageAppliancesDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6664,11 +7533,11 @@ export const StorageAppliancesDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StorageAppliancesUpdateHeaders: coreClient.CompositeMapper = { @@ -6679,57 +7548,66 @@ export const StorageAppliancesUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; - -export const StorageAppliancesDisableRemoteVendorManagementHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageAppliancesDisableRemoteVendorManagementHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const StorageAppliancesEnableRemoteVendorManagementHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageAppliancesEnableRemoteVendorManagementHeaders", - modelProperties: { + name: "String", + }, + }, location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const TrunkedNetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrunkedNetworksCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const StorageAppliancesDisableRemoteVendorManagementHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "StorageAppliancesDisableRemoteVendorManagementHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const StorageAppliancesEnableRemoteVendorManagementHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "StorageAppliancesEnableRemoteVendorManagementHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const TrunkedNetworksCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "TrunkedNetworksCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const TrunkedNetworksDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6739,27 +7617,28 @@ export const TrunkedNetworksDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachinesCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachinesCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachinesCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachinesCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const VirtualMachinesDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6769,11 +7648,11 @@ export const VirtualMachinesDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachinesUpdateHeaders: coreClient.CompositeMapper = { @@ -6784,11 +7663,17 @@ export const VirtualMachinesUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, }; export const VirtualMachinesPowerOffHeaders: coreClient.CompositeMapper = { @@ -6799,11 +7684,11 @@ export const VirtualMachinesPowerOffHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachinesReimageHeaders: coreClient.CompositeMapper = { @@ -6814,11 +7699,11 @@ export const VirtualMachinesReimageHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachinesRestartHeaders: coreClient.CompositeMapper = { @@ -6829,11 +7714,11 @@ export const VirtualMachinesRestartHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachinesStartHeaders: coreClient.CompositeMapper = { @@ -6844,11 +7729,11 @@ export const VirtualMachinesStartHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumesCreateOrUpdateHeaders: coreClient.CompositeMapper = { @@ -6859,11 +7744,11 @@ export const VolumesCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumesDeleteHeaders: coreClient.CompositeMapper = { @@ -6874,57 +7759,66 @@ export const VolumesDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachineKeySetsCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachineKeySetsCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachineKeySetsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachineKeySetsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BareMetalMachineKeySetsUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BareMetalMachineKeySetsUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const BareMetalMachineKeySetsCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineKeySetsCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const BareMetalMachineKeySetsDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineKeySetsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const BareMetalMachineKeySetsUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BareMetalMachineKeySetsUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const BmcKeySetsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { @@ -6934,11 +7828,11 @@ export const BmcKeySetsCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BmcKeySetsDeleteHeaders: coreClient.CompositeMapper = { @@ -6949,11 +7843,11 @@ export const BmcKeySetsDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BmcKeySetsUpdateHeaders: coreClient.CompositeMapper = { @@ -6964,27 +7858,34 @@ export const BmcKeySetsUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; - -export const MetricsConfigurationsCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MetricsConfigurationsCreateOrUpdateHeaders", - modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + name: "String", + }, + }, + location: { + serializedName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const MetricsConfigurationsCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "MetricsConfigurationsCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; export const MetricsConfigurationsDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -6994,11 +7895,11 @@ export const MetricsConfigurationsDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MetricsConfigurationsUpdateHeaders: coreClient.CompositeMapper = { @@ -7009,11 +7910,17 @@ export const MetricsConfigurationsUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, }; export const AgentPoolsCreateOrUpdateHeaders: coreClient.CompositeMapper = { @@ -7024,11 +7931,11 @@ export const AgentPoolsCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentPoolsDeleteHeaders: coreClient.CompositeMapper = { @@ -7039,11 +7946,11 @@ export const AgentPoolsDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AgentPoolsUpdateHeaders: coreClient.CompositeMapper = { @@ -7054,12 +7961,72 @@ export const AgentPoolsUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const KubernetesClusterFeaturesCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClusterFeaturesCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const KubernetesClusterFeaturesDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClusterFeaturesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const KubernetesClusterFeaturesUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "KubernetesClusterFeaturesUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const ConsolesCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { @@ -7069,11 +8036,11 @@ export const ConsolesCreateOrUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConsolesDeleteHeaders: coreClient.CompositeMapper = { @@ -7084,11 +8051,11 @@ export const ConsolesDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConsolesUpdateHeaders: coreClient.CompositeMapper = { @@ -7099,9 +8066,15 @@ export const ConsolesUpdateHeaders: coreClient.CompositeMapper = { azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/models/parameters.ts b/sdk/networkcloud/arm-networkcloud/src/models/parameters.ts index 8ed6d775a5b1..9b6d298ff310 100644 --- a/sdk/networkcloud/arm-networkcloud/src/models/parameters.ts +++ b/sdk/networkcloud/arm-networkcloud/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { BareMetalMachine as BareMetalMachineMapper, @@ -26,7 +26,9 @@ import { ClusterManagerPatchParameters as ClusterManagerPatchParametersMapper, Cluster as ClusterMapper, ClusterPatchParameters as ClusterPatchParametersMapper, + ClusterContinueUpdateVersionParameters as ClusterContinueUpdateVersionParametersMapper, ClusterDeployParameters as ClusterDeployParametersMapper, + ClusterScanRuntimeParameters as ClusterScanRuntimeParametersMapper, ClusterUpdateVersionParameters as ClusterUpdateVersionParametersMapper, KubernetesCluster as KubernetesClusterMapper, KubernetesClusterPatchParameters as KubernetesClusterPatchParametersMapper, @@ -55,8 +57,10 @@ import { ClusterMetricsConfigurationPatchParameters as ClusterMetricsConfigurationPatchParametersMapper, AgentPool as AgentPoolMapper, AgentPoolPatchParameters as AgentPoolPatchParametersMapper, + KubernetesClusterFeature as KubernetesClusterFeatureMapper, + KubernetesClusterFeaturePatchParameters as KubernetesClusterFeaturePatchParametersMapper, Console as ConsoleMapper, - ConsolePatchParameters as ConsolePatchParametersMapper + ConsolePatchParameters as ConsolePatchParametersMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -66,9 +70,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -77,22 +81,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-07-01", + defaultValue: "2024-06-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -101,10 +105,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { @@ -113,9 +117,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "Uuid" - } - } + name: "Uuid", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -123,28 +127,28 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const bareMetalMachineName: OperationURLParameter = { parameterPath: "bareMetalMachineName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$"), }, serializedName: "bareMetalMachineName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -154,470 +158,508 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const bareMetalMachineParameters: OperationParameter = { parameterPath: "bareMetalMachineParameters", - mapper: BareMetalMachineMapper + mapper: BareMetalMachineMapper, }; export const bareMetalMachineUpdateParameters: OperationParameter = { parameterPath: ["options", "bareMetalMachineUpdateParameters"], - mapper: BareMetalMachinePatchParametersMapper + mapper: BareMetalMachinePatchParametersMapper, }; export const bareMetalMachineCordonParameters: OperationParameter = { parameterPath: ["options", "bareMetalMachineCordonParameters"], - mapper: BareMetalMachineCordonParametersMapper + mapper: BareMetalMachineCordonParametersMapper, }; export const bareMetalMachinePowerOffParameters: OperationParameter = { parameterPath: ["options", "bareMetalMachinePowerOffParameters"], - mapper: BareMetalMachinePowerOffParametersMapper + mapper: BareMetalMachinePowerOffParametersMapper, }; export const bareMetalMachineReplaceParameters: OperationParameter = { parameterPath: ["options", "bareMetalMachineReplaceParameters"], - mapper: BareMetalMachineReplaceParametersMapper + mapper: BareMetalMachineReplaceParametersMapper, }; export const bareMetalMachineRunCommandParameters: OperationParameter = { parameterPath: "bareMetalMachineRunCommandParameters", - mapper: BareMetalMachineRunCommandParametersMapper + mapper: BareMetalMachineRunCommandParametersMapper, }; export const bareMetalMachineRunDataExtractsParameters: OperationParameter = { parameterPath: "bareMetalMachineRunDataExtractsParameters", - mapper: BareMetalMachineRunDataExtractsParametersMapper + mapper: BareMetalMachineRunDataExtractsParametersMapper, }; export const bareMetalMachineRunReadCommandsParameters: OperationParameter = { parameterPath: "bareMetalMachineRunReadCommandsParameters", - mapper: BareMetalMachineRunReadCommandsParametersMapper + mapper: BareMetalMachineRunReadCommandsParametersMapper, }; export const cloudServicesNetworkName: OperationURLParameter = { parameterPath: "cloudServicesNetworkName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "cloudServicesNetworkName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const cloudServicesNetworkParameters: OperationParameter = { parameterPath: "cloudServicesNetworkParameters", - mapper: CloudServicesNetworkMapper + mapper: CloudServicesNetworkMapper, }; export const cloudServicesNetworkUpdateParameters: OperationParameter = { parameterPath: ["options", "cloudServicesNetworkUpdateParameters"], - mapper: CloudServicesNetworkPatchParametersMapper + mapper: CloudServicesNetworkPatchParametersMapper, }; export const clusterManagerName: OperationURLParameter = { parameterPath: "clusterManagerName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "clusterManagerName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const clusterManagerParameters: OperationParameter = { parameterPath: "clusterManagerParameters", - mapper: ClusterManagerMapper + mapper: ClusterManagerMapper, }; export const clusterManagerUpdateParameters: OperationParameter = { parameterPath: ["options", "clusterManagerUpdateParameters"], - mapper: ClusterManagerPatchParametersMapper + mapper: ClusterManagerPatchParametersMapper, }; export const clusterName: OperationURLParameter = { parameterPath: "clusterName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "clusterName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const clusterParameters: OperationParameter = { parameterPath: "clusterParameters", - mapper: ClusterMapper + mapper: ClusterMapper, }; export const clusterUpdateParameters: OperationParameter = { parameterPath: ["options", "clusterUpdateParameters"], - mapper: ClusterPatchParametersMapper + mapper: ClusterPatchParametersMapper, +}; + +export const clusterContinueUpdateVersionParameters: OperationParameter = { + parameterPath: "clusterContinueUpdateVersionParameters", + mapper: ClusterContinueUpdateVersionParametersMapper, }; export const clusterDeployParameters: OperationParameter = { parameterPath: ["options", "clusterDeployParameters"], - mapper: ClusterDeployParametersMapper + mapper: ClusterDeployParametersMapper, +}; + +export const clusterScanRuntimeParameters: OperationParameter = { + parameterPath: ["options", "clusterScanRuntimeParameters"], + mapper: ClusterScanRuntimeParametersMapper, }; export const clusterUpdateVersionParameters: OperationParameter = { parameterPath: "clusterUpdateVersionParameters", - mapper: ClusterUpdateVersionParametersMapper + mapper: ClusterUpdateVersionParametersMapper, }; export const kubernetesClusterName: OperationURLParameter = { parameterPath: "kubernetesClusterName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "kubernetesClusterName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const kubernetesClusterParameters: OperationParameter = { parameterPath: "kubernetesClusterParameters", - mapper: KubernetesClusterMapper + mapper: KubernetesClusterMapper, }; export const kubernetesClusterUpdateParameters: OperationParameter = { parameterPath: ["options", "kubernetesClusterUpdateParameters"], - mapper: KubernetesClusterPatchParametersMapper + mapper: KubernetesClusterPatchParametersMapper, }; export const kubernetesClusterRestartNodeParameters: OperationParameter = { parameterPath: "kubernetesClusterRestartNodeParameters", - mapper: KubernetesClusterRestartNodeParametersMapper + mapper: KubernetesClusterRestartNodeParametersMapper, }; export const l2NetworkName: OperationURLParameter = { parameterPath: "l2NetworkName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "l2NetworkName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const l2NetworkParameters: OperationParameter = { parameterPath: "l2NetworkParameters", - mapper: L2NetworkMapper + mapper: L2NetworkMapper, }; export const l2NetworkUpdateParameters: OperationParameter = { parameterPath: ["options", "l2NetworkUpdateParameters"], - mapper: L2NetworkPatchParametersMapper + mapper: L2NetworkPatchParametersMapper, }; export const l3NetworkName: OperationURLParameter = { parameterPath: "l3NetworkName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "l3NetworkName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const l3NetworkParameters: OperationParameter = { parameterPath: "l3NetworkParameters", - mapper: L3NetworkMapper + mapper: L3NetworkMapper, }; export const l3NetworkUpdateParameters: OperationParameter = { parameterPath: ["options", "l3NetworkUpdateParameters"], - mapper: L3NetworkPatchParametersMapper + mapper: L3NetworkPatchParametersMapper, }; export const rackSkuName: OperationURLParameter = { parameterPath: "rackSkuName", mapper: { + constraints: { + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,126}[a-zA-Z0-9])$"), + }, serializedName: "rackSkuName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const rackName: OperationURLParameter = { parameterPath: "rackName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "rackName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const rackParameters: OperationParameter = { parameterPath: "rackParameters", - mapper: RackMapper + mapper: RackMapper, }; export const rackUpdateParameters: OperationParameter = { parameterPath: ["options", "rackUpdateParameters"], - mapper: RackPatchParametersMapper + mapper: RackPatchParametersMapper, }; export const storageApplianceName: OperationURLParameter = { parameterPath: "storageApplianceName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "storageApplianceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const storageApplianceParameters: OperationParameter = { parameterPath: "storageApplianceParameters", - mapper: StorageApplianceMapper + mapper: StorageApplianceMapper, }; export const storageApplianceUpdateParameters: OperationParameter = { parameterPath: ["options", "storageApplianceUpdateParameters"], - mapper: StorageAppliancePatchParametersMapper + mapper: StorageAppliancePatchParametersMapper, }; -export const storageApplianceEnableRemoteVendorManagementParameters: OperationParameter = { - parameterPath: [ - "options", - "storageApplianceEnableRemoteVendorManagementParameters" - ], - mapper: StorageApplianceEnableRemoteVendorManagementParametersMapper -}; +export const storageApplianceEnableRemoteVendorManagementParameters: OperationParameter = + { + parameterPath: [ + "options", + "storageApplianceEnableRemoteVendorManagementParameters", + ], + mapper: StorageApplianceEnableRemoteVendorManagementParametersMapper, + }; export const trunkedNetworkName: OperationURLParameter = { parameterPath: "trunkedNetworkName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "trunkedNetworkName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const trunkedNetworkParameters: OperationParameter = { parameterPath: "trunkedNetworkParameters", - mapper: TrunkedNetworkMapper + mapper: TrunkedNetworkMapper, }; export const trunkedNetworkUpdateParameters: OperationParameter = { parameterPath: ["options", "trunkedNetworkUpdateParameters"], - mapper: TrunkedNetworkPatchParametersMapper + mapper: TrunkedNetworkPatchParametersMapper, }; export const virtualMachineName: OperationURLParameter = { parameterPath: "virtualMachineName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$"), }, serializedName: "virtualMachineName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const virtualMachineParameters: OperationParameter = { parameterPath: "virtualMachineParameters", - mapper: VirtualMachineMapper + mapper: VirtualMachineMapper, }; export const virtualMachineUpdateParameters: OperationParameter = { parameterPath: ["options", "virtualMachineUpdateParameters"], - mapper: VirtualMachinePatchParametersMapper + mapper: VirtualMachinePatchParametersMapper, }; export const virtualMachinePowerOffParameters: OperationParameter = { parameterPath: ["options", "virtualMachinePowerOffParameters"], - mapper: VirtualMachinePowerOffParametersMapper + mapper: VirtualMachinePowerOffParametersMapper, }; export const volumeName: OperationURLParameter = { parameterPath: "volumeName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,62}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,62}[a-zA-Z0-9])$"), }, serializedName: "volumeName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const volumeParameters: OperationParameter = { parameterPath: "volumeParameters", - mapper: VolumeMapper + mapper: VolumeMapper, }; export const volumeUpdateParameters: OperationParameter = { parameterPath: ["options", "volumeUpdateParameters"], - mapper: VolumePatchParametersMapper + mapper: VolumePatchParametersMapper, }; export const bareMetalMachineKeySetName: OperationURLParameter = { parameterPath: "bareMetalMachineKeySetName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "bareMetalMachineKeySetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const bareMetalMachineKeySetParameters: OperationParameter = { parameterPath: "bareMetalMachineKeySetParameters", - mapper: BareMetalMachineKeySetMapper + mapper: BareMetalMachineKeySetMapper, }; export const bareMetalMachineKeySetUpdateParameters: OperationParameter = { parameterPath: ["options", "bareMetalMachineKeySetUpdateParameters"], - mapper: BareMetalMachineKeySetPatchParametersMapper + mapper: BareMetalMachineKeySetPatchParametersMapper, }; export const bmcKeySetName: OperationURLParameter = { parameterPath: "bmcKeySetName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "bmcKeySetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const bmcKeySetParameters: OperationParameter = { parameterPath: "bmcKeySetParameters", - mapper: BmcKeySetMapper + mapper: BmcKeySetMapper, }; export const bmcKeySetUpdateParameters: OperationParameter = { parameterPath: ["options", "bmcKeySetUpdateParameters"], - mapper: BmcKeySetPatchParametersMapper + mapper: BmcKeySetPatchParametersMapper, }; export const metricsConfigurationName: OperationURLParameter = { parameterPath: "metricsConfigurationName", mapper: { constraints: { - Pattern: new RegExp("^default$") + Pattern: new RegExp("^default$"), }, serializedName: "metricsConfigurationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const metricsConfigurationParameters: OperationParameter = { parameterPath: "metricsConfigurationParameters", - mapper: ClusterMetricsConfigurationMapper + mapper: ClusterMetricsConfigurationMapper, }; export const metricsConfigurationUpdateParameters: OperationParameter = { parameterPath: ["options", "metricsConfigurationUpdateParameters"], - mapper: ClusterMetricsConfigurationPatchParametersMapper + mapper: ClusterMetricsConfigurationPatchParametersMapper, }; export const agentPoolName: OperationURLParameter = { parameterPath: "agentPoolName", mapper: { constraints: { - Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$") + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$"), }, serializedName: "agentPoolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const agentPoolParameters: OperationParameter = { parameterPath: "agentPoolParameters", - mapper: AgentPoolMapper + mapper: AgentPoolMapper, }; export const agentPoolUpdateParameters: OperationParameter = { parameterPath: ["options", "agentPoolUpdateParameters"], - mapper: AgentPoolPatchParametersMapper + mapper: AgentPoolPatchParametersMapper, +}; + +export const featureName: OperationURLParameter = { + parameterPath: "featureName", + mapper: { + constraints: { + Pattern: new RegExp("^([a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$"), + }, + serializedName: "featureName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const kubernetesClusterFeatureParameters: OperationParameter = { + parameterPath: "kubernetesClusterFeatureParameters", + mapper: KubernetesClusterFeatureMapper, +}; + +export const kubernetesClusterFeatureUpdateParameters: OperationParameter = { + parameterPath: ["options", "kubernetesClusterFeatureUpdateParameters"], + mapper: KubernetesClusterFeaturePatchParametersMapper, }; export const consoleName: OperationURLParameter = { parameterPath: "consoleName", mapper: { constraints: { - Pattern: new RegExp("^default$") + Pattern: new RegExp("^default$"), }, serializedName: "consoleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const consoleParameters: OperationParameter = { parameterPath: "consoleParameters", - mapper: ConsoleMapper + mapper: ConsoleMapper, }; export const consoleUpdateParameters: OperationParameter = { parameterPath: ["options", "consoleUpdateParameters"], - mapper: ConsolePatchParametersMapper + mapper: ConsolePatchParametersMapper, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/networkCloud.ts b/sdk/networkcloud/arm-networkcloud/src/networkCloud.ts index 0e6c3b9d201f..c838cae6979e 100644 --- a/sdk/networkcloud/arm-networkcloud/src/networkCloud.ts +++ b/sdk/networkcloud/arm-networkcloud/src/networkCloud.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -33,7 +33,8 @@ import { BmcKeySetsImpl, MetricsConfigurationsImpl, AgentPoolsImpl, - ConsolesImpl + KubernetesClusterFeaturesImpl, + ConsolesImpl, } from "./operations"; import { Operations, @@ -54,7 +55,8 @@ import { BmcKeySets, MetricsConfigurations, AgentPools, - Consoles + KubernetesClusterFeatures, + Consoles, } from "./operationsInterfaces"; import { NetworkCloudOptionalParams } from "./models"; @@ -72,7 +74,7 @@ export class NetworkCloud extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: NetworkCloudOptionalParams + options?: NetworkCloudOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -87,10 +89,10 @@ export class NetworkCloud extends coreClient.ServiceClient { } const defaults: NetworkCloudOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-networkcloud/1.0.0`; + const packageDetails = `azsdk-js-arm-networkcloud/2.0.0-beta.2`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -100,20 +102,21 @@ export class NetworkCloud extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -123,7 +126,7 @@ export class NetworkCloud extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -133,9 +136,9 @@ export class NetworkCloud extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -143,7 +146,7 @@ export class NetworkCloud extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-07-01"; + this.apiVersion = options.apiVersion || "2024-06-01-preview"; this.operations = new OperationsImpl(this); this.bareMetalMachines = new BareMetalMachinesImpl(this); this.cloudServicesNetworks = new CloudServicesNetworksImpl(this); @@ -162,6 +165,7 @@ export class NetworkCloud extends coreClient.ServiceClient { this.bmcKeySets = new BmcKeySetsImpl(this); this.metricsConfigurations = new MetricsConfigurationsImpl(this); this.agentPools = new AgentPoolsImpl(this); + this.kubernetesClusterFeatures = new KubernetesClusterFeaturesImpl(this); this.consoles = new ConsolesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -175,7 +179,7 @@ export class NetworkCloud extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -189,7 +193,7 @@ export class NetworkCloud extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -212,5 +216,6 @@ export class NetworkCloud extends coreClient.ServiceClient { bmcKeySets: BmcKeySets; metricsConfigurations: MetricsConfigurations; agentPools: AgentPools; + kubernetesClusterFeatures: KubernetesClusterFeatures; consoles: Consoles; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/agentPools.ts b/sdk/networkcloud/arm-networkcloud/src/operations/agentPools.ts index 70bad3445e33..14501bc786b3 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/agentPools.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/agentPools.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,9 +29,10 @@ import { AgentPoolsCreateOrUpdateOptionalParams, AgentPoolsCreateOrUpdateResponse, AgentPoolsDeleteOptionalParams, + AgentPoolsDeleteResponse, AgentPoolsUpdateOptionalParams, AgentPoolsUpdateResponse, - AgentPoolsListByKubernetesClusterNextResponse + AgentPoolsListByKubernetesClusterNextResponse, } from "../models"; /// @@ -56,12 +57,12 @@ export class AgentPoolsImpl implements AgentPools { public listByKubernetesCluster( resourceGroupName: string, kubernetesClusterName: string, - options?: AgentPoolsListByKubernetesClusterOptionalParams + options?: AgentPoolsListByKubernetesClusterOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByKubernetesClusterPagingAll( resourceGroupName, kubernetesClusterName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName, kubernetesClusterName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, options?: AgentPoolsListByKubernetesClusterOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AgentPoolsListByKubernetesClusterResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class AgentPoolsImpl implements AgentPools { result = await this._listByKubernetesCluster( resourceGroupName, kubernetesClusterName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName, kubernetesClusterName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class AgentPoolsImpl implements AgentPools { private async *listByKubernetesClusterPagingAll( resourceGroupName: string, kubernetesClusterName: string, - options?: AgentPoolsListByKubernetesClusterOptionalParams + options?: AgentPoolsListByKubernetesClusterOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByKubernetesClusterPagingPage( resourceGroupName, kubernetesClusterName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class AgentPoolsImpl implements AgentPools { private _listByKubernetesCluster( resourceGroupName: string, kubernetesClusterName: string, - options?: AgentPoolsListByKubernetesClusterOptionalParams + options?: AgentPoolsListByKubernetesClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, kubernetesClusterName, options }, - listByKubernetesClusterOperationSpec + listByKubernetesClusterOperationSpec, ); } @@ -159,11 +160,11 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsGetOptionalParams + options?: AgentPoolsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, kubernetesClusterName, agentPoolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -180,7 +181,7 @@ export class AgentPoolsImpl implements AgentPools { kubernetesClusterName: string, agentPoolName: string, agentPoolParameters: AgentPool, - options?: AgentPoolsCreateOrUpdateOptionalParams + options?: AgentPoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -189,21 +190,20 @@ export class AgentPoolsImpl implements AgentPools { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -212,8 +212,8 @@ export class AgentPoolsImpl implements AgentPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -221,8 +221,8 @@ export class AgentPoolsImpl implements AgentPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -233,9 +233,9 @@ export class AgentPoolsImpl implements AgentPools { kubernetesClusterName, agentPoolName, agentPoolParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< AgentPoolsCreateOrUpdateResponse, @@ -243,7 +243,7 @@ export class AgentPoolsImpl implements AgentPools { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -262,14 +262,14 @@ export class AgentPoolsImpl implements AgentPools { kubernetesClusterName: string, agentPoolName: string, agentPoolParameters: AgentPool, - options?: AgentPoolsCreateOrUpdateOptionalParams + options?: AgentPoolsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, kubernetesClusterName, agentPoolName, agentPoolParameters, - options + options, ); return poller.pollUntilDone(); } @@ -285,25 +285,29 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsDeleteOptionalParams - ): Promise, void>> { + options?: AgentPoolsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + AgentPoolsDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -312,8 +316,8 @@ export class AgentPoolsImpl implements AgentPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -321,8 +325,8 @@ export class AgentPoolsImpl implements AgentPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -332,14 +336,17 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName, kubernetesClusterName, agentPoolName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + AgentPoolsDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -356,13 +363,13 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsDeleteOptionalParams - ): Promise { + options?: AgentPoolsDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, kubernetesClusterName, agentPoolName, - options + options, ); return poller.pollUntilDone(); } @@ -379,7 +386,7 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsUpdateOptionalParams + options?: AgentPoolsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -388,21 +395,20 @@ export class AgentPoolsImpl implements AgentPools { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -411,8 +417,8 @@ export class AgentPoolsImpl implements AgentPools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -420,8 +426,8 @@ export class AgentPoolsImpl implements AgentPools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -431,9 +437,9 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName, kubernetesClusterName, agentPoolName, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< AgentPoolsUpdateResponse, @@ -441,7 +447,7 @@ export class AgentPoolsImpl implements AgentPools { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -459,13 +465,13 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsUpdateOptionalParams + options?: AgentPoolsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, kubernetesClusterName, agentPoolName, - options + options, ); return poller.pollUntilDone(); } @@ -482,11 +488,11 @@ export class AgentPoolsImpl implements AgentPools { resourceGroupName: string, kubernetesClusterName: string, nextLink: string, - options?: AgentPoolsListByKubernetesClusterNextOptionalParams + options?: AgentPoolsListByKubernetesClusterNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, kubernetesClusterName, nextLink, options }, - listByKubernetesClusterNextOperationSpec + listByKubernetesClusterNextOperationSpec, ); } } @@ -494,38 +500,36 @@ export class AgentPoolsImpl implements AgentPools { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByKubernetesClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentPoolList + bodyMapper: Mappers.AgentPoolList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -533,31 +537,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.kubernetesClusterName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 201: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 202: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 204: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.agentPoolParameters, queryParameters: [Parameters.apiVersion], @@ -566,24 +569,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.kubernetesClusterName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -591,31 +601,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.kubernetesClusterName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/agentPools/{agentPoolName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 201: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 202: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, 204: { - bodyMapper: Mappers.AgentPool + bodyMapper: Mappers.AgentPool, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.agentPoolUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -624,30 +633,30 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.kubernetesClusterName, - Parameters.agentPoolName + Parameters.agentPoolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByKubernetesClusterNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentPoolList + bodyMapper: Mappers.AgentPoolList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachineKeySets.ts b/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachineKeySets.ts index 6d8bf07e9085..59a4831330c6 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachineKeySets.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachineKeySets.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,9 +29,10 @@ import { BareMetalMachineKeySetsCreateOrUpdateOptionalParams, BareMetalMachineKeySetsCreateOrUpdateResponse, BareMetalMachineKeySetsDeleteOptionalParams, + BareMetalMachineKeySetsDeleteResponse, BareMetalMachineKeySetsUpdateOptionalParams, BareMetalMachineKeySetsUpdateResponse, - BareMetalMachineKeySetsListByClusterNextResponse + BareMetalMachineKeySetsListByClusterNextResponse, } from "../models"; /// @@ -56,12 +57,12 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { public listByCluster( resourceGroupName: string, clusterName: string, - options?: BareMetalMachineKeySetsListByClusterOptionalParams + options?: BareMetalMachineKeySetsListByClusterOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByClusterPagingAll( resourceGroupName, clusterName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName, clusterName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, options?: BareMetalMachineKeySetsListByClusterOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BareMetalMachineKeySetsListByClusterResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { result = await this._listByCluster( resourceGroupName, clusterName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName, clusterName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { private async *listByClusterPagingAll( resourceGroupName: string, clusterName: string, - options?: BareMetalMachineKeySetsListByClusterOptionalParams + options?: BareMetalMachineKeySetsListByClusterOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByClusterPagingPage( resourceGroupName, clusterName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { private _listByCluster( resourceGroupName: string, clusterName: string, - options?: BareMetalMachineKeySetsListByClusterOptionalParams + options?: BareMetalMachineKeySetsListByClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, options }, - listByClusterOperationSpec + listByClusterOperationSpec, ); } @@ -159,11 +160,11 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsGetOptionalParams + options?: BareMetalMachineKeySetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, bareMetalMachineKeySetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -180,7 +181,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { clusterName: string, bareMetalMachineKeySetName: string, bareMetalMachineKeySetParameters: BareMetalMachineKeySet, - options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams + options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -189,21 +190,20 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -212,8 +212,8 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -221,8 +221,8 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -233,9 +233,9 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { clusterName, bareMetalMachineKeySetName, bareMetalMachineKeySetParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< BareMetalMachineKeySetsCreateOrUpdateResponse, @@ -243,7 +243,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -262,14 +262,14 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { clusterName: string, bareMetalMachineKeySetName: string, bareMetalMachineKeySetParameters: BareMetalMachineKeySet, - options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams + options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterName, bareMetalMachineKeySetName, bareMetalMachineKeySetParameters, - options + options, ); return poller.pollUntilDone(); } @@ -285,25 +285,29 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsDeleteOptionalParams - ): Promise, void>> { + options?: BareMetalMachineKeySetsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + BareMetalMachineKeySetsDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -312,8 +316,8 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -321,8 +325,8 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -332,14 +336,17 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName, clusterName, bareMetalMachineKeySetName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + BareMetalMachineKeySetsDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -356,13 +363,13 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsDeleteOptionalParams - ): Promise { + options?: BareMetalMachineKeySetsDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, bareMetalMachineKeySetName, - options + options, ); return poller.pollUntilDone(); } @@ -379,7 +386,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsUpdateOptionalParams + options?: BareMetalMachineKeySetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -388,21 +395,20 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -411,8 +417,8 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -420,8 +426,8 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -431,9 +437,9 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName, clusterName, bareMetalMachineKeySetName, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< BareMetalMachineKeySetsUpdateResponse, @@ -441,7 +447,7 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -459,13 +465,13 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsUpdateOptionalParams + options?: BareMetalMachineKeySetsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, clusterName, bareMetalMachineKeySetName, - options + options, ); return poller.pollUntilDone(); } @@ -481,11 +487,11 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, nextLink: string, - options?: BareMetalMachineKeySetsListByClusterNextOptionalParams + options?: BareMetalMachineKeySetsListByClusterNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, nextLink, options }, - listByClusterNextOperationSpec + listByClusterNextOperationSpec, ); } } @@ -493,38 +499,36 @@ export class BareMetalMachineKeySetsImpl implements BareMetalMachineKeySets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineKeySetList + bodyMapper: Mappers.BareMetalMachineKeySetList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -532,31 +536,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bareMetalMachineKeySetName + Parameters.bareMetalMachineKeySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, 201: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, 202: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, 204: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineKeySetParameters, queryParameters: [Parameters.apiVersion], @@ -565,24 +568,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bareMetalMachineKeySetName + Parameters.bareMetalMachineKeySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -590,31 +600,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bareMetalMachineKeySetName + Parameters.bareMetalMachineKeySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bareMetalMachineKeySets/{bareMetalMachineKeySetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, 201: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, 202: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, 204: { - bodyMapper: Mappers.BareMetalMachineKeySet + bodyMapper: Mappers.BareMetalMachineKeySet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineKeySetUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -623,30 +632,30 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bareMetalMachineKeySetName + Parameters.bareMetalMachineKeySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByClusterNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineKeySetList + bodyMapper: Mappers.BareMetalMachineKeySetList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachines.ts b/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachines.ts index de3e2bca1b70..1c89773977ac 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachines.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/bareMetalMachines.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,6 +32,7 @@ import { BareMetalMachinesCreateOrUpdateOptionalParams, BareMetalMachinesCreateOrUpdateResponse, BareMetalMachinesDeleteOptionalParams, + BareMetalMachinesDeleteResponse, BareMetalMachinesUpdateOptionalParams, BareMetalMachinesUpdateResponse, BareMetalMachinesCordonOptionalParams, @@ -58,7 +59,7 @@ import { BareMetalMachinesUncordonOptionalParams, BareMetalMachinesUncordonResponse, BareMetalMachinesListBySubscriptionNextResponse, - BareMetalMachinesListByResourceGroupNextResponse + BareMetalMachinesListByResourceGroupNextResponse, } from "../models"; /// @@ -79,7 +80,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { * @param options The options parameters. */ public listBySubscription( - options?: BareMetalMachinesListBySubscriptionOptionalParams + options?: BareMetalMachinesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -94,13 +95,13 @@ export class BareMetalMachinesImpl implements BareMetalMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: BareMetalMachinesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BareMetalMachinesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -121,7 +122,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { } private async *listBySubscriptionPagingAll( - options?: BareMetalMachinesListBySubscriptionOptionalParams + options?: BareMetalMachinesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -135,7 +136,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { */ public listByResourceGroup( resourceGroupName: string, - options?: BareMetalMachinesListByResourceGroupOptionalParams + options?: BareMetalMachinesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -152,16 +153,16 @@ export class BareMetalMachinesImpl implements BareMetalMachines { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: BareMetalMachinesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BareMetalMachinesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -176,7 +177,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -187,11 +188,11 @@ export class BareMetalMachinesImpl implements BareMetalMachines { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: BareMetalMachinesListByResourceGroupOptionalParams + options?: BareMetalMachinesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -202,11 +203,11 @@ export class BareMetalMachinesImpl implements BareMetalMachines { * @param options The options parameters. */ private _listBySubscription( - options?: BareMetalMachinesListBySubscriptionOptionalParams + options?: BareMetalMachinesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -217,11 +218,11 @@ export class BareMetalMachinesImpl implements BareMetalMachines { */ private _listByResourceGroup( resourceGroupName: string, - options?: BareMetalMachinesListByResourceGroupOptionalParams + options?: BareMetalMachinesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -234,11 +235,11 @@ export class BareMetalMachinesImpl implements BareMetalMachines { get( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesGetOptionalParams + options?: BareMetalMachinesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, bareMetalMachineName, options }, - getOperationSpec + getOperationSpec, ); } @@ -255,7 +256,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineParameters: BareMetalMachine, - options?: BareMetalMachinesCreateOrUpdateOptionalParams + options?: BareMetalMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -264,21 +265,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -287,8 +287,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -296,8 +296,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -307,9 +307,9 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName, bareMetalMachineName, bareMetalMachineParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesCreateOrUpdateResponse, @@ -317,7 +317,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -336,13 +336,13 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineParameters: BareMetalMachine, - options?: BareMetalMachinesCreateOrUpdateOptionalParams + options?: BareMetalMachinesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, bareMetalMachineName, bareMetalMachineParameters, - options + options, ); return poller.pollUntilDone(); } @@ -358,25 +358,29 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginDelete( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesDeleteOptionalParams - ): Promise, void>> { + options?: BareMetalMachinesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + BareMetalMachinesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -385,8 +389,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -394,20 +398,23 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + BareMetalMachinesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -424,12 +431,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginDeleteAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesDeleteOptionalParams - ): Promise { + options?: BareMetalMachinesDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -444,7 +451,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginUpdate( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUpdateOptionalParams + options?: BareMetalMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -453,21 +460,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -476,8 +482,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -485,15 +491,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesUpdateResponse, @@ -501,7 +507,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -517,12 +523,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginUpdateAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUpdateOptionalParams + options?: BareMetalMachinesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -536,7 +542,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginCordon( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesCordonOptionalParams + options?: BareMetalMachinesCordonOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -545,21 +551,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -568,8 +573,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -577,15 +582,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: cordonOperationSpec + spec: cordonOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesCordonResponse, @@ -593,7 +598,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -608,12 +613,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginCordonAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesCordonOptionalParams + options?: BareMetalMachinesCordonOptionalParams, ): Promise { const poller = await this.beginCordon( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -627,7 +632,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginPowerOff( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesPowerOffOptionalParams + options?: BareMetalMachinesPowerOffOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -636,21 +641,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -659,8 +663,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -668,15 +672,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesPowerOffResponse, @@ -684,7 +688,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -699,12 +703,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginPowerOffAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesPowerOffOptionalParams + options?: BareMetalMachinesPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -718,7 +722,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginReimage( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReimageOptionalParams + options?: BareMetalMachinesReimageOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -727,21 +731,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -750,8 +753,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -759,15 +762,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesReimageResponse, @@ -775,7 +778,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -790,12 +793,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginReimageAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReimageOptionalParams + options?: BareMetalMachinesReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -809,7 +812,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginReplace( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReplaceOptionalParams + options?: BareMetalMachinesReplaceOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -818,21 +821,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -841,8 +843,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -850,15 +852,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: replaceOperationSpec + spec: replaceOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesReplaceResponse, @@ -866,7 +868,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -881,12 +883,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginReplaceAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReplaceOptionalParams + options?: BareMetalMachinesReplaceOptionalParams, ): Promise { const poller = await this.beginReplace( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -900,7 +902,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginRestart( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesRestartOptionalParams + options?: BareMetalMachinesRestartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -909,21 +911,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -932,8 +933,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -941,15 +942,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesRestartResponse, @@ -957,7 +958,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -972,12 +973,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginRestartAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesRestartOptionalParams + options?: BareMetalMachinesRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -995,7 +996,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters, - options?: BareMetalMachinesRunCommandOptionalParams + options?: BareMetalMachinesRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1004,21 +1005,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1027,8 +1027,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1036,8 +1036,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1047,9 +1047,9 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName, bareMetalMachineName, bareMetalMachineRunCommandParameters, - options + options, }, - spec: runCommandOperationSpec + spec: runCommandOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesRunCommandResponse, @@ -1057,7 +1057,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1076,13 +1076,13 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters, - options?: BareMetalMachinesRunCommandOptionalParams + options?: BareMetalMachinesRunCommandOptionalParams, ): Promise { const poller = await this.beginRunCommand( resourceGroupName, bareMetalMachineName, bareMetalMachineRunCommandParameters, - options + options, ); return poller.pollUntilDone(); } @@ -1100,7 +1100,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters, - options?: BareMetalMachinesRunDataExtractsOptionalParams + options?: BareMetalMachinesRunDataExtractsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1109,21 +1109,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1132,8 +1131,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1141,8 +1140,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1152,9 +1151,9 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsParameters, - options + options, }, - spec: runDataExtractsOperationSpec + spec: runDataExtractsOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesRunDataExtractsResponse, @@ -1162,7 +1161,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1181,13 +1180,13 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters, - options?: BareMetalMachinesRunDataExtractsOptionalParams + options?: BareMetalMachinesRunDataExtractsOptionalParams, ): Promise { const poller = await this.beginRunDataExtracts( resourceGroupName, bareMetalMachineName, bareMetalMachineRunDataExtractsParameters, - options + options, ); return poller.pollUntilDone(); } @@ -1205,7 +1204,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters, - options?: BareMetalMachinesRunReadCommandsOptionalParams + options?: BareMetalMachinesRunReadCommandsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1214,21 +1213,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1237,8 +1235,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1246,8 +1244,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1257,9 +1255,9 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName, bareMetalMachineName, bareMetalMachineRunReadCommandsParameters, - options + options, }, - spec: runReadCommandsOperationSpec + spec: runReadCommandsOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesRunReadCommandsResponse, @@ -1267,7 +1265,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1286,13 +1284,13 @@ export class BareMetalMachinesImpl implements BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters, - options?: BareMetalMachinesRunReadCommandsOptionalParams + options?: BareMetalMachinesRunReadCommandsOptionalParams, ): Promise { const poller = await this.beginRunReadCommands( resourceGroupName, bareMetalMachineName, bareMetalMachineRunReadCommandsParameters, - options + options, ); return poller.pollUntilDone(); } @@ -1306,7 +1304,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginStart( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesStartOptionalParams + options?: BareMetalMachinesStartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1315,21 +1313,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1338,8 +1335,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1347,15 +1344,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesStartResponse, @@ -1363,7 +1360,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1378,12 +1375,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginStartAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesStartOptionalParams + options?: BareMetalMachinesStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -1397,7 +1394,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginUncordon( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUncordonOptionalParams + options?: BareMetalMachinesUncordonOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1406,21 +1403,20 @@ export class BareMetalMachinesImpl implements BareMetalMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1429,8 +1425,8 @@ export class BareMetalMachinesImpl implements BareMetalMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1438,15 +1434,15 @@ export class BareMetalMachinesImpl implements BareMetalMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, bareMetalMachineName, options }, - spec: uncordonOperationSpec + spec: uncordonOperationSpec, }); const poller = await createHttpPoller< BareMetalMachinesUncordonResponse, @@ -1454,7 +1450,7 @@ export class BareMetalMachinesImpl implements BareMetalMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1469,12 +1465,12 @@ export class BareMetalMachinesImpl implements BareMetalMachines { async beginUncordonAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUncordonOptionalParams + options?: BareMetalMachinesUncordonOptionalParams, ): Promise { const poller = await this.beginUncordon( resourceGroupName, bareMetalMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -1486,11 +1482,11 @@ export class BareMetalMachinesImpl implements BareMetalMachines { */ private _listBySubscriptionNext( nextLink: string, - options?: BareMetalMachinesListBySubscriptionNextOptionalParams + options?: BareMetalMachinesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -1503,11 +1499,11 @@ export class BareMetalMachinesImpl implements BareMetalMachines { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: BareMetalMachinesListByResourceGroupNextOptionalParams + options?: BareMetalMachinesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -1515,85 +1511,81 @@ export class BareMetalMachinesImpl implements BareMetalMachines { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/bareMetalMachines", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/bareMetalMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineList + bodyMapper: Mappers.BareMetalMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineList + bodyMapper: Mappers.BareMetalMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, 201: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, 202: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, 204: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineParameters, queryParameters: [Parameters.apiVersion], @@ -1601,55 +1593,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, 201: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, 202: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, 204: { - bodyMapper: Mappers.BareMetalMachine + bodyMapper: Mappers.BareMetalMachine, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -1657,32 +1655,31 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const cordonOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/cordon", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/cordon", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineCordonParameters, queryParameters: [Parameters.apiVersion], @@ -1690,32 +1687,31 @@ const cordonOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/powerOff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/powerOff", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachinePowerOffParameters, queryParameters: [Parameters.apiVersion], @@ -1723,63 +1719,61 @@ const powerOffOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/reimage", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const replaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/replace", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/replace", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineReplaceParameters, queryParameters: [Parameters.apiVersion], @@ -1787,63 +1781,61 @@ const replaceOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/restart", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const runCommandOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runCommand", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runCommand", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineRunCommandParameters, queryParameters: [Parameters.apiVersion], @@ -1851,32 +1843,31 @@ const runCommandOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const runDataExtractsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runDataExtracts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runDataExtracts", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineRunDataExtractsParameters, queryParameters: [Parameters.apiVersion], @@ -1884,32 +1875,31 @@ const runDataExtractsOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const runReadCommandsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runReadCommands", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/runReadCommands", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bareMetalMachineRunReadCommandsParameters, queryParameters: [Parameters.apiVersion], @@ -1917,110 +1907,108 @@ const runReadCommandsOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/start", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const uncordonOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/uncordon", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}/uncordon", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.bareMetalMachineName + Parameters.bareMetalMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineList + bodyMapper: Mappers.BareMetalMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BareMetalMachineList + bodyMapper: Mappers.BareMetalMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/bmcKeySets.ts b/sdk/networkcloud/arm-networkcloud/src/operations/bmcKeySets.ts index ceba7831b8d3..91002037980f 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/bmcKeySets.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/bmcKeySets.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,9 +29,10 @@ import { BmcKeySetsCreateOrUpdateOptionalParams, BmcKeySetsCreateOrUpdateResponse, BmcKeySetsDeleteOptionalParams, + BmcKeySetsDeleteResponse, BmcKeySetsUpdateOptionalParams, BmcKeySetsUpdateResponse, - BmcKeySetsListByClusterNextResponse + BmcKeySetsListByClusterNextResponse, } from "../models"; /// @@ -56,12 +57,12 @@ export class BmcKeySetsImpl implements BmcKeySets { public listByCluster( resourceGroupName: string, clusterName: string, - options?: BmcKeySetsListByClusterOptionalParams + options?: BmcKeySetsListByClusterOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByClusterPagingAll( resourceGroupName, clusterName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName, clusterName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, options?: BmcKeySetsListByClusterOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BmcKeySetsListByClusterResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class BmcKeySetsImpl implements BmcKeySets { result = await this._listByCluster( resourceGroupName, clusterName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName, clusterName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class BmcKeySetsImpl implements BmcKeySets { private async *listByClusterPagingAll( resourceGroupName: string, clusterName: string, - options?: BmcKeySetsListByClusterOptionalParams + options?: BmcKeySetsListByClusterOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByClusterPagingPage( resourceGroupName, clusterName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class BmcKeySetsImpl implements BmcKeySets { private _listByCluster( resourceGroupName: string, clusterName: string, - options?: BmcKeySetsListByClusterOptionalParams + options?: BmcKeySetsListByClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, options }, - listByClusterOperationSpec + listByClusterOperationSpec, ); } @@ -159,11 +160,11 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsGetOptionalParams + options?: BmcKeySetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, bmcKeySetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -181,7 +182,7 @@ export class BmcKeySetsImpl implements BmcKeySets { clusterName: string, bmcKeySetName: string, bmcKeySetParameters: BmcKeySet, - options?: BmcKeySetsCreateOrUpdateOptionalParams + options?: BmcKeySetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -190,21 +191,20 @@ export class BmcKeySetsImpl implements BmcKeySets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -213,8 +213,8 @@ export class BmcKeySetsImpl implements BmcKeySets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -222,8 +222,8 @@ export class BmcKeySetsImpl implements BmcKeySets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -234,9 +234,9 @@ export class BmcKeySetsImpl implements BmcKeySets { clusterName, bmcKeySetName, bmcKeySetParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< BmcKeySetsCreateOrUpdateResponse, @@ -244,7 +244,7 @@ export class BmcKeySetsImpl implements BmcKeySets { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -264,14 +264,14 @@ export class BmcKeySetsImpl implements BmcKeySets { clusterName: string, bmcKeySetName: string, bmcKeySetParameters: BmcKeySet, - options?: BmcKeySetsCreateOrUpdateOptionalParams + options?: BmcKeySetsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterName, bmcKeySetName, bmcKeySetParameters, - options + options, ); return poller.pollUntilDone(); } @@ -287,25 +287,29 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsDeleteOptionalParams - ): Promise, void>> { + options?: BmcKeySetsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + BmcKeySetsDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -314,8 +318,8 @@ export class BmcKeySetsImpl implements BmcKeySets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -323,20 +327,23 @@ export class BmcKeySetsImpl implements BmcKeySets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, bmcKeySetName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + BmcKeySetsDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -353,13 +360,13 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsDeleteOptionalParams - ): Promise { + options?: BmcKeySetsDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, bmcKeySetName, - options + options, ); return poller.pollUntilDone(); } @@ -376,7 +383,7 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsUpdateOptionalParams + options?: BmcKeySetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -385,21 +392,20 @@ export class BmcKeySetsImpl implements BmcKeySets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -408,8 +414,8 @@ export class BmcKeySetsImpl implements BmcKeySets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -417,15 +423,15 @@ export class BmcKeySetsImpl implements BmcKeySets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, bmcKeySetName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< BmcKeySetsUpdateResponse, @@ -433,7 +439,7 @@ export class BmcKeySetsImpl implements BmcKeySets { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -451,13 +457,13 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsUpdateOptionalParams + options?: BmcKeySetsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, clusterName, bmcKeySetName, - options + options, ); return poller.pollUntilDone(); } @@ -473,11 +479,11 @@ export class BmcKeySetsImpl implements BmcKeySets { resourceGroupName: string, clusterName: string, nextLink: string, - options?: BmcKeySetsListByClusterNextOptionalParams + options?: BmcKeySetsListByClusterNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, nextLink, options }, - listByClusterNextOperationSpec + listByClusterNextOperationSpec, ); } } @@ -485,38 +491,36 @@ export class BmcKeySetsImpl implements BmcKeySets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BmcKeySetList + bodyMapper: Mappers.BmcKeySetList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -524,31 +528,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bmcKeySetName + Parameters.bmcKeySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, 201: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, 202: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, 204: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bmcKeySetParameters, queryParameters: [Parameters.apiVersion], @@ -557,24 +560,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bmcKeySetName + Parameters.bmcKeySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -582,31 +592,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bmcKeySetName + Parameters.bmcKeySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets/{bmcKeySetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, 201: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, 202: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, 204: { - bodyMapper: Mappers.BmcKeySet + bodyMapper: Mappers.BmcKeySet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.bmcKeySetUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -615,30 +624,30 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.bmcKeySetName + Parameters.bmcKeySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByClusterNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BmcKeySetList + bodyMapper: Mappers.BmcKeySetList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/cloudServicesNetworks.ts b/sdk/networkcloud/arm-networkcloud/src/operations/cloudServicesNetworks.ts index b2cc0981f850..0b447b724223 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/cloudServicesNetworks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/cloudServicesNetworks.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { CloudServicesNetworksCreateOrUpdateOptionalParams, CloudServicesNetworksCreateOrUpdateResponse, CloudServicesNetworksDeleteOptionalParams, + CloudServicesNetworksDeleteResponse, CloudServicesNetworksUpdateOptionalParams, CloudServicesNetworksUpdateResponse, CloudServicesNetworksListBySubscriptionNextResponse, - CloudServicesNetworksListByResourceGroupNextResponse + CloudServicesNetworksListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { * @param options The options parameters. */ public listBySubscription( - options?: CloudServicesNetworksListBySubscriptionOptionalParams + options?: CloudServicesNetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: CloudServicesNetworksListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesNetworksListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { } private async *listBySubscriptionPagingAll( - options?: CloudServicesNetworksListBySubscriptionOptionalParams + options?: CloudServicesNetworksListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { */ public listByResourceGroup( resourceGroupName: string, - options?: CloudServicesNetworksListByResourceGroupOptionalParams + options?: CloudServicesNetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: CloudServicesNetworksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesNetworksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: CloudServicesNetworksListByResourceGroupOptionalParams + options?: CloudServicesNetworksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { * @param options The options parameters. */ private _listBySubscription( - options?: CloudServicesNetworksListBySubscriptionOptionalParams + options?: CloudServicesNetworksListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { */ private _listByResourceGroup( resourceGroupName: string, - options?: CloudServicesNetworksListByResourceGroupOptionalParams + options?: CloudServicesNetworksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { get( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksGetOptionalParams + options?: CloudServicesNetworksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServicesNetworkName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,7 +231,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { resourceGroupName: string, cloudServicesNetworkName: string, cloudServicesNetworkParameters: CloudServicesNetwork, - options?: CloudServicesNetworksCreateOrUpdateOptionalParams + options?: CloudServicesNetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -239,21 +240,20 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -262,8 +262,8 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -271,8 +271,8 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -282,9 +282,9 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { resourceGroupName, cloudServicesNetworkName, cloudServicesNetworkParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CloudServicesNetworksCreateOrUpdateResponse, @@ -292,7 +292,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -309,13 +309,13 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { resourceGroupName: string, cloudServicesNetworkName: string, cloudServicesNetworkParameters: CloudServicesNetwork, - options?: CloudServicesNetworksCreateOrUpdateOptionalParams + options?: CloudServicesNetworksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, cloudServicesNetworkName, cloudServicesNetworkParameters, - options + options, ); return poller.pollUntilDone(); } @@ -329,25 +329,29 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { async beginDelete( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksDeleteOptionalParams - ): Promise, void>> { + options?: CloudServicesNetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudServicesNetworksDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -356,8 +360,8 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -365,20 +369,23 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServicesNetworkName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + CloudServicesNetworksDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -393,12 +400,12 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { async beginDeleteAndWait( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksDeleteOptionalParams - ): Promise { + options?: CloudServicesNetworksDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, cloudServicesNetworkName, - options + options, ); return poller.pollUntilDone(); } @@ -413,7 +420,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { async beginUpdate( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksUpdateOptionalParams + options?: CloudServicesNetworksUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -422,21 +429,20 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -445,8 +451,8 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -454,15 +460,15 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServicesNetworkName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< CloudServicesNetworksUpdateResponse, @@ -470,7 +476,7 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -486,12 +492,12 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { async beginUpdateAndWait( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksUpdateOptionalParams + options?: CloudServicesNetworksUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, cloudServicesNetworkName, - options + options, ); return poller.pollUntilDone(); } @@ -503,11 +509,11 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { */ private _listBySubscriptionNext( nextLink: string, - options?: CloudServicesNetworksListBySubscriptionNextOptionalParams + options?: CloudServicesNetworksListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -520,11 +526,11 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: CloudServicesNetworksListByResourceGroupNextOptionalParams + options?: CloudServicesNetworksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -532,85 +538,81 @@ export class CloudServicesNetworksImpl implements CloudServicesNetworks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/cloudServicesNetworks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/cloudServicesNetworks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetworkList + bodyMapper: Mappers.CloudServicesNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetworkList + bodyMapper: Mappers.CloudServicesNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServicesNetworkName + Parameters.cloudServicesNetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, 201: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, 202: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, 204: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.cloudServicesNetworkParameters, queryParameters: [Parameters.apiVersion], @@ -618,55 +620,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServicesNetworkName + Parameters.cloudServicesNetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServicesNetworkName + Parameters.cloudServicesNetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, 201: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, 202: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, 204: { - bodyMapper: Mappers.CloudServicesNetwork + bodyMapper: Mappers.CloudServicesNetwork, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.cloudServicesNetworkUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -674,48 +682,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServicesNetworkName + Parameters.cloudServicesNetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetworkList + bodyMapper: Mappers.CloudServicesNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServicesNetworkList + bodyMapper: Mappers.CloudServicesNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/clusterManagers.ts b/sdk/networkcloud/arm-networkcloud/src/operations/clusterManagers.ts index b2b726ae4572..f1ecfa32658a 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/clusterManagers.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/clusterManagers.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { ClusterManagersCreateOrUpdateOptionalParams, ClusterManagersCreateOrUpdateResponse, ClusterManagersDeleteOptionalParams, + ClusterManagersDeleteResponse, ClusterManagersUpdateOptionalParams, ClusterManagersUpdateResponse, ClusterManagersListBySubscriptionNextResponse, - ClusterManagersListByResourceGroupNextResponse + ClusterManagersListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class ClusterManagersImpl implements ClusterManagers { * @param options The options parameters. */ public listBySubscription( - options?: ClusterManagersListBySubscriptionOptionalParams + options?: ClusterManagersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class ClusterManagersImpl implements ClusterManagers { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ClusterManagersListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ClusterManagersListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class ClusterManagersImpl implements ClusterManagers { } private async *listBySubscriptionPagingAll( - options?: ClusterManagersListBySubscriptionOptionalParams + options?: ClusterManagersListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class ClusterManagersImpl implements ClusterManagers { */ public listByResourceGroup( resourceGroupName: string, - options?: ClusterManagersListByResourceGroupOptionalParams + options?: ClusterManagersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class ClusterManagersImpl implements ClusterManagers { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ClusterManagersListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ClusterManagersListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class ClusterManagersImpl implements ClusterManagers { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class ClusterManagersImpl implements ClusterManagers { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ClusterManagersListByResourceGroupOptionalParams + options?: ClusterManagersListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class ClusterManagersImpl implements ClusterManagers { * @param options The options parameters. */ private _listBySubscription( - options?: ClusterManagersListBySubscriptionOptionalParams + options?: ClusterManagersListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class ClusterManagersImpl implements ClusterManagers { */ private _listByResourceGroup( resourceGroupName: string, - options?: ClusterManagersListByResourceGroupOptionalParams + options?: ClusterManagersListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class ClusterManagersImpl implements ClusterManagers { get( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersGetOptionalParams + options?: ClusterManagersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterManagerName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,7 +231,7 @@ export class ClusterManagersImpl implements ClusterManagers { resourceGroupName: string, clusterManagerName: string, clusterManagerParameters: ClusterManager, - options?: ClusterManagersCreateOrUpdateOptionalParams + options?: ClusterManagersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -239,21 +240,20 @@ export class ClusterManagersImpl implements ClusterManagers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -262,8 +262,8 @@ export class ClusterManagersImpl implements ClusterManagers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -271,8 +271,8 @@ export class ClusterManagersImpl implements ClusterManagers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -282,9 +282,9 @@ export class ClusterManagersImpl implements ClusterManagers { resourceGroupName, clusterManagerName, clusterManagerParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ClusterManagersCreateOrUpdateResponse, @@ -292,7 +292,7 @@ export class ClusterManagersImpl implements ClusterManagers { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -309,13 +309,13 @@ export class ClusterManagersImpl implements ClusterManagers { resourceGroupName: string, clusterManagerName: string, clusterManagerParameters: ClusterManager, - options?: ClusterManagersCreateOrUpdateOptionalParams + options?: ClusterManagersCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterManagerName, clusterManagerParameters, - options + options, ); return poller.pollUntilDone(); } @@ -329,25 +329,29 @@ export class ClusterManagersImpl implements ClusterManagers { async beginDelete( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersDeleteOptionalParams - ): Promise, void>> { + options?: ClusterManagersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClusterManagersDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -356,8 +360,8 @@ export class ClusterManagersImpl implements ClusterManagers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -365,20 +369,23 @@ export class ClusterManagersImpl implements ClusterManagers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterManagerName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ClusterManagersDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -393,12 +400,12 @@ export class ClusterManagersImpl implements ClusterManagers { async beginDeleteAndWait( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersDeleteOptionalParams - ): Promise { + options?: ClusterManagersDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterManagerName, - options + options, ); return poller.pollUntilDone(); } @@ -413,11 +420,11 @@ export class ClusterManagersImpl implements ClusterManagers { update( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersUpdateOptionalParams + options?: ClusterManagersUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterManagerName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -428,11 +435,11 @@ export class ClusterManagersImpl implements ClusterManagers { */ private _listBySubscriptionNext( nextLink: string, - options?: ClusterManagersListBySubscriptionNextOptionalParams + options?: ClusterManagersListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -445,11 +452,11 @@ export class ClusterManagersImpl implements ClusterManagers { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ClusterManagersListByResourceGroupNextOptionalParams + options?: ClusterManagersListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -457,85 +464,81 @@ export class ClusterManagersImpl implements ClusterManagers { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/clusterManagers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/clusterManagers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterManagerList + bodyMapper: Mappers.ClusterManagerList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterManagerList + bodyMapper: Mappers.ClusterManagerList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterManager + bodyMapper: Mappers.ClusterManager, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterManagerName + Parameters.clusterManagerName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ClusterManager + bodyMapper: Mappers.ClusterManager, }, 201: { - bodyMapper: Mappers.ClusterManager + bodyMapper: Mappers.ClusterManager, }, 202: { - bodyMapper: Mappers.ClusterManager + bodyMapper: Mappers.ClusterManager, }, 204: { - bodyMapper: Mappers.ClusterManager + bodyMapper: Mappers.ClusterManager, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.clusterManagerParameters, queryParameters: [Parameters.apiVersion], @@ -543,46 +546,52 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterManagerName + Parameters.clusterManagerName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterManagerName + Parameters.clusterManagerName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusterManagers/{clusterManagerName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ClusterManager + bodyMapper: Mappers.ClusterManager, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.clusterManagerUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -590,48 +599,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterManagerName + Parameters.clusterManagerName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterManagerList + bodyMapper: Mappers.ClusterManagerList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterManagerList + bodyMapper: Mappers.ClusterManagerList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/clusters.ts b/sdk/networkcloud/arm-networkcloud/src/operations/clusters.ts index a18be5689324..efc03f5dab12 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/clusters.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/clusters.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,15 +32,21 @@ import { ClustersCreateOrUpdateOptionalParams, ClustersCreateOrUpdateResponse, ClustersDeleteOptionalParams, + ClustersDeleteResponse, ClustersUpdateOptionalParams, ClustersUpdateResponse, + ClusterContinueUpdateVersionParameters, + ClustersContinueUpdateVersionOptionalParams, + ClustersContinueUpdateVersionResponse, ClustersDeployOptionalParams, ClustersDeployResponse, + ClustersScanRuntimeOptionalParams, + ClustersScanRuntimeResponse, ClusterUpdateVersionParameters, ClustersUpdateVersionOptionalParams, ClustersUpdateVersionResponse, ClustersListBySubscriptionNextResponse, - ClustersListByResourceGroupNextResponse + ClustersListByResourceGroupNextResponse, } from "../models"; /// @@ -61,7 +67,7 @@ export class ClustersImpl implements Clusters { * @param options The options parameters. */ public listBySubscription( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -76,13 +82,13 @@ export class ClustersImpl implements Clusters { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ClustersListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ClustersListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +109,7 @@ export class ClustersImpl implements Clusters { } private async *listBySubscriptionPagingAll( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -117,7 +123,7 @@ export class ClustersImpl implements Clusters { */ public listByResourceGroup( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -134,16 +140,16 @@ export class ClustersImpl implements Clusters { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ClustersListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ClustersListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -158,7 +164,7 @@ export class ClustersImpl implements Clusters { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -169,11 +175,11 @@ export class ClustersImpl implements Clusters { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -184,11 +190,11 @@ export class ClustersImpl implements Clusters { * @param options The options parameters. */ private _listBySubscription( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -199,11 +205,11 @@ export class ClustersImpl implements Clusters { */ private _listByResourceGroup( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -216,11 +222,11 @@ export class ClustersImpl implements Clusters { get( resourceGroupName: string, clusterName: string, - options?: ClustersGetOptionalParams + options?: ClustersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, options }, - getOperationSpec + getOperationSpec, ); } @@ -235,7 +241,7 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, clusterParameters: Cluster, - options?: ClustersCreateOrUpdateOptionalParams + options?: ClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -244,21 +250,20 @@ export class ClustersImpl implements Clusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -267,8 +272,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -276,15 +281,15 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, clusterParameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ClustersCreateOrUpdateResponse, @@ -292,7 +297,7 @@ export class ClustersImpl implements Clusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -309,13 +314,13 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, clusterParameters: Cluster, - options?: ClustersCreateOrUpdateOptionalParams + options?: ClustersCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterName, clusterParameters, - options + options, ); return poller.pollUntilDone(); } @@ -329,25 +334,29 @@ export class ClustersImpl implements Clusters { async beginDelete( resourceGroupName: string, clusterName: string, - options?: ClustersDeleteOptionalParams - ): Promise, void>> { + options?: ClustersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClustersDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -356,8 +365,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -365,20 +374,23 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ClustersDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -393,12 +405,12 @@ export class ClustersImpl implements Clusters { async beginDeleteAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersDeleteOptionalParams - ): Promise { + options?: ClustersDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, - options + options, ); return poller.pollUntilDone(); } @@ -413,7 +425,7 @@ export class ClustersImpl implements Clusters { async beginUpdate( resourceGroupName: string, clusterName: string, - options?: ClustersUpdateOptionalParams + options?: ClustersUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -422,21 +434,20 @@ export class ClustersImpl implements Clusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -445,8 +456,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -454,15 +465,15 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ClustersUpdateResponse, @@ -470,7 +481,7 @@ export class ClustersImpl implements Clusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -486,18 +497,120 @@ export class ClustersImpl implements Clusters { async beginUpdateAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersUpdateOptionalParams + options?: ClustersUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, clusterName, - options + options, + ); + return poller.pollUntilDone(); + } + + /** + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused + * after completing a segment of the update. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param options The options parameters. + */ + async beginContinueUpdateVersion( + resourceGroupName: string, + clusterName: string, + clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters, + options?: ClustersContinueUpdateVersionOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClustersContinueUpdateVersionResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + clusterName, + clusterContinueUpdateVersionParameters, + options, + }, + spec: continueUpdateVersionOperationSpec, + }); + const poller = await createHttpPoller< + ClustersContinueUpdateVersionResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused + * after completing a segment of the update. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param options The options parameters. + */ + async beginContinueUpdateVersionAndWait( + resourceGroupName: string, + clusterName: string, + clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters, + options?: ClustersContinueUpdateVersionOptionalParams, + ): Promise { + const poller = await this.beginContinueUpdateVersion( + resourceGroupName, + clusterName, + clusterContinueUpdateVersionParameters, + options, ); return poller.pollUntilDone(); } /** - * Deploy the cluster to the provided rack. + * Deploy the cluster using the rack configuration provided during creation. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param options The options parameters. @@ -505,7 +618,7 @@ export class ClustersImpl implements Clusters { async beginDeploy( resourceGroupName: string, clusterName: string, - options?: ClustersDeployOptionalParams + options?: ClustersDeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -514,21 +627,20 @@ export class ClustersImpl implements Clusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -537,8 +649,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -546,15 +658,15 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, options }, - spec: deployOperationSpec + spec: deployOperationSpec, }); const poller = await createHttpPoller< ClustersDeployResponse, @@ -562,14 +674,14 @@ export class ClustersImpl implements Clusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; } /** - * Deploy the cluster to the provided rack. + * Deploy the cluster using the rack configuration provided during creation. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param options The options parameters. @@ -577,12 +689,104 @@ export class ClustersImpl implements Clusters { async beginDeployAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersDeployOptionalParams + options?: ClustersDeployOptionalParams, ): Promise { const poller = await this.beginDeploy( resourceGroupName, clusterName, - options + options, + ); + return poller.pollUntilDone(); + } + + /** + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in + * accordance with the cluster configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param options The options parameters. + */ + async beginScanRuntime( + resourceGroupName: string, + clusterName: string, + options?: ClustersScanRuntimeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClustersScanRuntimeResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, clusterName, options }, + spec: scanRuntimeOperationSpec, + }); + const poller = await createHttpPoller< + ClustersScanRuntimeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in + * accordance with the cluster configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param options The options parameters. + */ + async beginScanRuntimeAndWait( + resourceGroupName: string, + clusterName: string, + options?: ClustersScanRuntimeOptionalParams, + ): Promise { + const poller = await this.beginScanRuntime( + resourceGroupName, + clusterName, + options, ); return poller.pollUntilDone(); } @@ -598,7 +802,7 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, clusterUpdateVersionParameters: ClusterUpdateVersionParameters, - options?: ClustersUpdateVersionOptionalParams + options?: ClustersUpdateVersionOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -607,21 +811,20 @@ export class ClustersImpl implements Clusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -630,8 +833,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -639,8 +842,8 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -650,9 +853,9 @@ export class ClustersImpl implements Clusters { resourceGroupName, clusterName, clusterUpdateVersionParameters, - options + options, }, - spec: updateVersionOperationSpec + spec: updateVersionOperationSpec, }); const poller = await createHttpPoller< ClustersUpdateVersionResponse, @@ -660,7 +863,7 @@ export class ClustersImpl implements Clusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -677,13 +880,13 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, clusterUpdateVersionParameters: ClusterUpdateVersionParameters, - options?: ClustersUpdateVersionOptionalParams + options?: ClustersUpdateVersionOptionalParams, ): Promise { const poller = await this.beginUpdateVersion( resourceGroupName, clusterName, clusterUpdateVersionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -695,11 +898,11 @@ export class ClustersImpl implements Clusters { */ private _listBySubscriptionNext( nextLink: string, - options?: ClustersListBySubscriptionNextOptionalParams + options?: ClustersListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -712,11 +915,11 @@ export class ClustersImpl implements Clusters { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ClustersListByResourceGroupNextOptionalParams + options?: ClustersListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -724,85 +927,81 @@ export class ClustersImpl implements Clusters { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/clusters", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/clusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterList + bodyMapper: Mappers.ClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterList + bodyMapper: Mappers.ClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 201: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 202: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 204: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.clusterParameters, queryParameters: [Parameters.apiVersion], @@ -810,55 +1009,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 201: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 202: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 204: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.clusterUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -866,32 +1071,63 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, +}; +const continueUpdateVersionOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/continueUpdateVersion", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.clusterContinueUpdateVersionParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; const deployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/deploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/deploy", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.clusterDeployParameters, queryParameters: [Parameters.apiVersion], @@ -899,32 +1135,63 @@ const deployOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const scanRuntimeOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/scanRuntime", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.clusterScanRuntimeParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateVersionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/updateVersion", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/updateVersion", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.clusterUpdateVersionParameters, queryParameters: [Parameters.apiVersion], @@ -932,48 +1199,48 @@ const updateVersionOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterList + bodyMapper: Mappers.ClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterList + bodyMapper: Mappers.ClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/consoles.ts b/sdk/networkcloud/arm-networkcloud/src/operations/consoles.ts index 4847e9ee1b88..f1ff8c32f76b 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/consoles.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/consoles.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,9 +29,10 @@ import { ConsolesCreateOrUpdateOptionalParams, ConsolesCreateOrUpdateResponse, ConsolesDeleteOptionalParams, + ConsolesDeleteResponse, ConsolesUpdateOptionalParams, ConsolesUpdateResponse, - ConsolesListByVirtualMachineNextResponse + ConsolesListByVirtualMachineNextResponse, } from "../models"; /// @@ -56,12 +57,12 @@ export class ConsolesImpl implements Consoles { public listByVirtualMachine( resourceGroupName: string, virtualMachineName: string, - options?: ConsolesListByVirtualMachineOptionalParams + options?: ConsolesListByVirtualMachineOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByVirtualMachinePagingAll( resourceGroupName, virtualMachineName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class ConsolesImpl implements Consoles { resourceGroupName, virtualMachineName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, options?: ConsolesListByVirtualMachineOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ConsolesListByVirtualMachineResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class ConsolesImpl implements Consoles { result = await this._listByVirtualMachine( resourceGroupName, virtualMachineName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class ConsolesImpl implements Consoles { resourceGroupName, virtualMachineName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class ConsolesImpl implements Consoles { private async *listByVirtualMachinePagingAll( resourceGroupName: string, virtualMachineName: string, - options?: ConsolesListByVirtualMachineOptionalParams + options?: ConsolesListByVirtualMachineOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByVirtualMachinePagingPage( resourceGroupName, virtualMachineName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class ConsolesImpl implements Consoles { private _listByVirtualMachine( resourceGroupName: string, virtualMachineName: string, - options?: ConsolesListByVirtualMachineOptionalParams + options?: ConsolesListByVirtualMachineOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineName, options }, - listByVirtualMachineOperationSpec + listByVirtualMachineOperationSpec, ); } @@ -159,11 +160,11 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesGetOptionalParams + options?: ConsolesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineName, consoleName, options }, - getOperationSpec + getOperationSpec, ); } @@ -181,7 +182,7 @@ export class ConsolesImpl implements Consoles { virtualMachineName: string, consoleName: string, consoleParameters: Console, - options?: ConsolesCreateOrUpdateOptionalParams + options?: ConsolesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -190,21 +191,20 @@ export class ConsolesImpl implements Consoles { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -213,8 +213,8 @@ export class ConsolesImpl implements Consoles { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -222,8 +222,8 @@ export class ConsolesImpl implements Consoles { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -234,9 +234,9 @@ export class ConsolesImpl implements Consoles { virtualMachineName, consoleName, consoleParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ConsolesCreateOrUpdateResponse, @@ -244,7 +244,7 @@ export class ConsolesImpl implements Consoles { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -264,14 +264,14 @@ export class ConsolesImpl implements Consoles { virtualMachineName: string, consoleName: string, consoleParameters: Console, - options?: ConsolesCreateOrUpdateOptionalParams + options?: ConsolesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, virtualMachineName, consoleName, consoleParameters, - options + options, ); return poller.pollUntilDone(); } @@ -287,25 +287,29 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesDeleteOptionalParams - ): Promise, void>> { + options?: ConsolesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ConsolesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -314,8 +318,8 @@ export class ConsolesImpl implements Consoles { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -323,20 +327,23 @@ export class ConsolesImpl implements Consoles { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, consoleName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + ConsolesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -353,13 +360,13 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesDeleteOptionalParams - ): Promise { + options?: ConsolesDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, virtualMachineName, consoleName, - options + options, ); return poller.pollUntilDone(); } @@ -376,7 +383,7 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesUpdateOptionalParams + options?: ConsolesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -385,21 +392,20 @@ export class ConsolesImpl implements Consoles { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -408,8 +414,8 @@ export class ConsolesImpl implements Consoles { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -417,15 +423,15 @@ export class ConsolesImpl implements Consoles { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, consoleName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ConsolesUpdateResponse, @@ -433,7 +439,7 @@ export class ConsolesImpl implements Consoles { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -451,13 +457,13 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesUpdateOptionalParams + options?: ConsolesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, virtualMachineName, consoleName, - options + options, ); return poller.pollUntilDone(); } @@ -473,11 +479,11 @@ export class ConsolesImpl implements Consoles { resourceGroupName: string, virtualMachineName: string, nextLink: string, - options?: ConsolesListByVirtualMachineNextOptionalParams + options?: ConsolesListByVirtualMachineNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineName, nextLink, options }, - listByVirtualMachineNextOperationSpec + listByVirtualMachineNextOperationSpec, ); } } @@ -485,38 +491,36 @@ export class ConsolesImpl implements Consoles { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByVirtualMachineOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConsoleList + bodyMapper: Mappers.ConsoleList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -524,31 +528,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.virtualMachineName, - Parameters.consoleName + Parameters.consoleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, 201: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, 202: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, 204: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.consoleParameters, queryParameters: [Parameters.apiVersion], @@ -557,24 +560,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.virtualMachineName, - Parameters.consoleName + Parameters.consoleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -582,31 +592,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.virtualMachineName, - Parameters.consoleName + Parameters.consoleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, 201: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, 202: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, 204: { - bodyMapper: Mappers.Console + bodyMapper: Mappers.Console, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.consoleUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -615,30 +624,30 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.virtualMachineName, - Parameters.consoleName + Parameters.consoleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByVirtualMachineNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConsoleList + bodyMapper: Mappers.ConsoleList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/index.ts b/sdk/networkcloud/arm-networkcloud/src/operations/index.ts index 1f2559ff80a7..6b259f0f5d4d 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/index.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/index.ts @@ -24,4 +24,5 @@ export * from "./bareMetalMachineKeySets"; export * from "./bmcKeySets"; export * from "./metricsConfigurations"; export * from "./agentPools"; +export * from "./kubernetesClusterFeatures"; export * from "./consoles"; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusterFeatures.ts b/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusterFeatures.ts new file mode 100644 index 000000000000..11ddc39a4ccb --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusterFeatures.ts @@ -0,0 +1,654 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { KubernetesClusterFeatures } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkCloud } from "../networkCloud"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + KubernetesClusterFeature, + KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams, + KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + KubernetesClusterFeaturesListByKubernetesClusterResponse, + KubernetesClusterFeaturesGetOptionalParams, + KubernetesClusterFeaturesGetResponse, + KubernetesClusterFeaturesCreateOrUpdateOptionalParams, + KubernetesClusterFeaturesCreateOrUpdateResponse, + KubernetesClusterFeaturesDeleteOptionalParams, + KubernetesClusterFeaturesDeleteResponse, + KubernetesClusterFeaturesUpdateOptionalParams, + KubernetesClusterFeaturesUpdateResponse, + KubernetesClusterFeaturesListByKubernetesClusterNextResponse, +} from "../models"; + +/// +/** Class containing KubernetesClusterFeatures operations. */ +export class KubernetesClusterFeaturesImpl + implements KubernetesClusterFeatures +{ + private readonly client: NetworkCloud; + + /** + * Initialize a new instance of the class KubernetesClusterFeatures class. + * @param client Reference to the service client + */ + constructor(client: NetworkCloud) { + this.client = client; + } + + /** + * Get a list of features for the provided Kubernetes cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param options The options parameters. + */ + public listByKubernetesCluster( + resourceGroupName: string, + kubernetesClusterName: string, + options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByKubernetesClusterPagingAll( + resourceGroupName, + kubernetesClusterName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByKubernetesClusterPagingPage( + resourceGroupName, + kubernetesClusterName, + options, + settings, + ); + }, + }; + } + + private async *listByKubernetesClusterPagingPage( + resourceGroupName: string, + kubernetesClusterName: string, + options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: KubernetesClusterFeaturesListByKubernetesClusterResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByKubernetesCluster( + resourceGroupName, + kubernetesClusterName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByKubernetesClusterNext( + resourceGroupName, + kubernetesClusterName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByKubernetesClusterPagingAll( + resourceGroupName: string, + kubernetesClusterName: string, + options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByKubernetesClusterPagingPage( + resourceGroupName, + kubernetesClusterName, + options, + )) { + yield* page; + } + } + + /** + * Get a list of features for the provided Kubernetes cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param options The options parameters. + */ + private _listByKubernetesCluster( + resourceGroupName: string, + kubernetesClusterName: string, + options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, kubernetesClusterName, options }, + listByKubernetesClusterOperationSpec, + ); + } + + /** + * Get properties of the provided the Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, kubernetesClusterName, featureName, options }, + getOperationSpec, + ); + } + + /** + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it + * exists. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + kubernetesClusterFeatureParameters: KubernetesClusterFeature, + options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClusterFeaturesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + kubernetesClusterName, + featureName, + kubernetesClusterFeatureParameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + KubernetesClusterFeaturesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it + * exists. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + kubernetesClusterFeatureParameters: KubernetesClusterFeature, + options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + kubernetesClusterName, + featureName, + kubernetesClusterFeatureParameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Delete the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClusterFeaturesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, kubernetesClusterName, featureName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + KubernetesClusterFeaturesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Delete the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + kubernetesClusterName, + featureName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Patch properties of the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClusterFeaturesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, kubernetesClusterName, featureName, options }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + KubernetesClusterFeaturesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Patch properties of the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + kubernetesClusterName, + featureName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListByKubernetesClusterNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param nextLink The nextLink from the previous successful call to the ListByKubernetesCluster + * method. + * @param options The options parameters. + */ + private _listByKubernetesClusterNext( + resourceGroupName: string, + kubernetesClusterName: string, + nextLink: string, + options?: KubernetesClusterFeaturesListByKubernetesClusterNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, kubernetesClusterName, nextLink, options }, + listByKubernetesClusterNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByKubernetesClusterOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.KubernetesClusterFeatureList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.kubernetesClusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.kubernetesClusterName, + Parameters.featureName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + 201: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + 202: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + 204: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.kubernetesClusterFeatureParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.kubernetesClusterName, + Parameters.featureName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}", + httpMethod: "DELETE", + responses: { + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.kubernetesClusterName, + Parameters.featureName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + 201: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + 202: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + 204: { + bodyMapper: Mappers.KubernetesClusterFeature, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.kubernetesClusterFeatureUpdateParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.kubernetesClusterName, + Parameters.featureName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listByKubernetesClusterNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.KubernetesClusterFeatureList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.kubernetesClusterName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusters.ts b/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusters.ts index b4fa191d9ee2..c5a6c491ee52 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusters.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/kubernetesClusters.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,13 +32,14 @@ import { KubernetesClustersCreateOrUpdateOptionalParams, KubernetesClustersCreateOrUpdateResponse, KubernetesClustersDeleteOptionalParams, + KubernetesClustersDeleteResponse, KubernetesClustersUpdateOptionalParams, KubernetesClustersUpdateResponse, KubernetesClusterRestartNodeParameters, KubernetesClustersRestartNodeOptionalParams, KubernetesClustersRestartNodeResponse, KubernetesClustersListBySubscriptionNextResponse, - KubernetesClustersListByResourceGroupNextResponse + KubernetesClustersListByResourceGroupNextResponse, } from "../models"; /// @@ -59,7 +60,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { * @param options The options parameters. */ public listBySubscription( - options?: KubernetesClustersListBySubscriptionOptionalParams + options?: KubernetesClustersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -74,13 +75,13 @@ export class KubernetesClustersImpl implements KubernetesClusters { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: KubernetesClustersListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: KubernetesClustersListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +102,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { } private async *listBySubscriptionPagingAll( - options?: KubernetesClustersListBySubscriptionOptionalParams + options?: KubernetesClustersListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -115,7 +116,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { */ public listByResourceGroup( resourceGroupName: string, - options?: KubernetesClustersListByResourceGroupOptionalParams + options?: KubernetesClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -132,16 +133,16 @@ export class KubernetesClustersImpl implements KubernetesClusters { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: KubernetesClustersListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: KubernetesClustersListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -156,7 +157,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -167,11 +168,11 @@ export class KubernetesClustersImpl implements KubernetesClusters { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: KubernetesClustersListByResourceGroupOptionalParams + options?: KubernetesClustersListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -182,11 +183,11 @@ export class KubernetesClustersImpl implements KubernetesClusters { * @param options The options parameters. */ private _listBySubscription( - options?: KubernetesClustersListBySubscriptionOptionalParams + options?: KubernetesClustersListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -197,11 +198,11 @@ export class KubernetesClustersImpl implements KubernetesClusters { */ private _listByResourceGroup( resourceGroupName: string, - options?: KubernetesClustersListByResourceGroupOptionalParams + options?: KubernetesClustersListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -214,11 +215,11 @@ export class KubernetesClustersImpl implements KubernetesClusters { get( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersGetOptionalParams + options?: KubernetesClustersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, kubernetesClusterName, options }, - getOperationSpec + getOperationSpec, ); } @@ -233,7 +234,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterParameters: KubernetesCluster, - options?: KubernetesClustersCreateOrUpdateOptionalParams + options?: KubernetesClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -242,21 +243,20 @@ export class KubernetesClustersImpl implements KubernetesClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -265,8 +265,8 @@ export class KubernetesClustersImpl implements KubernetesClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -274,8 +274,8 @@ export class KubernetesClustersImpl implements KubernetesClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -285,9 +285,9 @@ export class KubernetesClustersImpl implements KubernetesClusters { resourceGroupName, kubernetesClusterName, kubernetesClusterParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< KubernetesClustersCreateOrUpdateResponse, @@ -295,7 +295,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -312,13 +312,13 @@ export class KubernetesClustersImpl implements KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterParameters: KubernetesCluster, - options?: KubernetesClustersCreateOrUpdateOptionalParams + options?: KubernetesClustersCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, kubernetesClusterName, kubernetesClusterParameters, - options + options, ); return poller.pollUntilDone(); } @@ -332,25 +332,29 @@ export class KubernetesClustersImpl implements KubernetesClusters { async beginDelete( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersDeleteOptionalParams - ): Promise, void>> { + options?: KubernetesClustersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClustersDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -359,8 +363,8 @@ export class KubernetesClustersImpl implements KubernetesClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -368,20 +372,23 @@ export class KubernetesClustersImpl implements KubernetesClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, kubernetesClusterName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + KubernetesClustersDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -396,12 +403,12 @@ export class KubernetesClustersImpl implements KubernetesClusters { async beginDeleteAndWait( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersDeleteOptionalParams - ): Promise { + options?: KubernetesClustersDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, kubernetesClusterName, - options + options, ); return poller.pollUntilDone(); } @@ -416,7 +423,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { async beginUpdate( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersUpdateOptionalParams + options?: KubernetesClustersUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -425,21 +432,20 @@ export class KubernetesClustersImpl implements KubernetesClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -448,8 +454,8 @@ export class KubernetesClustersImpl implements KubernetesClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -457,15 +463,15 @@ export class KubernetesClustersImpl implements KubernetesClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, kubernetesClusterName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< KubernetesClustersUpdateResponse, @@ -473,7 +479,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -489,12 +495,12 @@ export class KubernetesClustersImpl implements KubernetesClusters { async beginUpdateAndWait( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersUpdateOptionalParams + options?: KubernetesClustersUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, kubernetesClusterName, - options + options, ); return poller.pollUntilDone(); } @@ -510,7 +516,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters, - options?: KubernetesClustersRestartNodeOptionalParams + options?: KubernetesClustersRestartNodeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -519,21 +525,20 @@ export class KubernetesClustersImpl implements KubernetesClusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -542,8 +547,8 @@ export class KubernetesClustersImpl implements KubernetesClusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -551,8 +556,8 @@ export class KubernetesClustersImpl implements KubernetesClusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -562,9 +567,9 @@ export class KubernetesClustersImpl implements KubernetesClusters { resourceGroupName, kubernetesClusterName, kubernetesClusterRestartNodeParameters, - options + options, }, - spec: restartNodeOperationSpec + spec: restartNodeOperationSpec, }); const poller = await createHttpPoller< KubernetesClustersRestartNodeResponse, @@ -572,7 +577,7 @@ export class KubernetesClustersImpl implements KubernetesClusters { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -589,13 +594,13 @@ export class KubernetesClustersImpl implements KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters, - options?: KubernetesClustersRestartNodeOptionalParams + options?: KubernetesClustersRestartNodeOptionalParams, ): Promise { const poller = await this.beginRestartNode( resourceGroupName, kubernetesClusterName, kubernetesClusterRestartNodeParameters, - options + options, ); return poller.pollUntilDone(); } @@ -607,11 +612,11 @@ export class KubernetesClustersImpl implements KubernetesClusters { */ private _listBySubscriptionNext( nextLink: string, - options?: KubernetesClustersListBySubscriptionNextOptionalParams + options?: KubernetesClustersListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -624,11 +629,11 @@ export class KubernetesClustersImpl implements KubernetesClusters { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: KubernetesClustersListByResourceGroupNextOptionalParams + options?: KubernetesClustersListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -636,85 +641,81 @@ export class KubernetesClustersImpl implements KubernetesClusters { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/kubernetesClusters", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/kubernetesClusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KubernetesClusterList + bodyMapper: Mappers.KubernetesClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KubernetesClusterList + bodyMapper: Mappers.KubernetesClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, 201: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, 202: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, 204: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.kubernetesClusterParameters, queryParameters: [Parameters.apiVersion], @@ -722,55 +723,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, 201: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, 202: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, 204: { - bodyMapper: Mappers.KubernetesCluster + bodyMapper: Mappers.KubernetesCluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.kubernetesClusterUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -778,32 +785,31 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const restartNodeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/restartNode", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/restartNode", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.kubernetesClusterRestartNodeParameters, queryParameters: [Parameters.apiVersion], @@ -811,48 +817,48 @@ const restartNodeOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.kubernetesClusterName + Parameters.kubernetesClusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KubernetesClusterList + bodyMapper: Mappers.KubernetesClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.KubernetesClusterList + bodyMapper: Mappers.KubernetesClusterList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/l2Networks.ts b/sdk/networkcloud/arm-networkcloud/src/operations/l2Networks.ts index 52fb040eea08..b158b36632d1 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/l2Networks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/l2Networks.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { L2NetworksCreateOrUpdateOptionalParams, L2NetworksCreateOrUpdateResponse, L2NetworksDeleteOptionalParams, + L2NetworksDeleteResponse, L2NetworksUpdateOptionalParams, L2NetworksUpdateResponse, L2NetworksListBySubscriptionNextResponse, - L2NetworksListByResourceGroupNextResponse + L2NetworksListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class L2NetworksImpl implements L2Networks { * @param options The options parameters. */ public listBySubscription( - options?: L2NetworksListBySubscriptionOptionalParams + options?: L2NetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class L2NetworksImpl implements L2Networks { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: L2NetworksListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: L2NetworksListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class L2NetworksImpl implements L2Networks { } private async *listBySubscriptionPagingAll( - options?: L2NetworksListBySubscriptionOptionalParams + options?: L2NetworksListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class L2NetworksImpl implements L2Networks { */ public listByResourceGroup( resourceGroupName: string, - options?: L2NetworksListByResourceGroupOptionalParams + options?: L2NetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class L2NetworksImpl implements L2Networks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: L2NetworksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: L2NetworksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class L2NetworksImpl implements L2Networks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class L2NetworksImpl implements L2Networks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: L2NetworksListByResourceGroupOptionalParams + options?: L2NetworksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class L2NetworksImpl implements L2Networks { * @param options The options parameters. */ private _listBySubscription( - options?: L2NetworksListBySubscriptionOptionalParams + options?: L2NetworksListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class L2NetworksImpl implements L2Networks { */ private _listByResourceGroup( resourceGroupName: string, - options?: L2NetworksListByResourceGroupOptionalParams + options?: L2NetworksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class L2NetworksImpl implements L2Networks { get( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksGetOptionalParams + options?: L2NetworksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, l2NetworkName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,7 +231,7 @@ export class L2NetworksImpl implements L2Networks { resourceGroupName: string, l2NetworkName: string, l2NetworkParameters: L2Network, - options?: L2NetworksCreateOrUpdateOptionalParams + options?: L2NetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -239,21 +240,20 @@ export class L2NetworksImpl implements L2Networks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -262,8 +262,8 @@ export class L2NetworksImpl implements L2Networks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -271,15 +271,15 @@ export class L2NetworksImpl implements L2Networks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, l2NetworkName, l2NetworkParameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< L2NetworksCreateOrUpdateResponse, @@ -287,7 +287,7 @@ export class L2NetworksImpl implements L2Networks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -304,13 +304,13 @@ export class L2NetworksImpl implements L2Networks { resourceGroupName: string, l2NetworkName: string, l2NetworkParameters: L2Network, - options?: L2NetworksCreateOrUpdateOptionalParams + options?: L2NetworksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, l2NetworkName, l2NetworkParameters, - options + options, ); return poller.pollUntilDone(); } @@ -324,25 +324,29 @@ export class L2NetworksImpl implements L2Networks { async beginDelete( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksDeleteOptionalParams - ): Promise, void>> { + options?: L2NetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + L2NetworksDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -351,8 +355,8 @@ export class L2NetworksImpl implements L2Networks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -360,20 +364,23 @@ export class L2NetworksImpl implements L2Networks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, l2NetworkName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + L2NetworksDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -388,12 +395,12 @@ export class L2NetworksImpl implements L2Networks { async beginDeleteAndWait( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksDeleteOptionalParams - ): Promise { + options?: L2NetworksDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, l2NetworkName, - options + options, ); return poller.pollUntilDone(); } @@ -407,11 +414,11 @@ export class L2NetworksImpl implements L2Networks { update( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksUpdateOptionalParams + options?: L2NetworksUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, l2NetworkName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -422,11 +429,11 @@ export class L2NetworksImpl implements L2Networks { */ private _listBySubscriptionNext( nextLink: string, - options?: L2NetworksListBySubscriptionNextOptionalParams + options?: L2NetworksListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -439,11 +446,11 @@ export class L2NetworksImpl implements L2Networks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: L2NetworksListByResourceGroupNextOptionalParams + options?: L2NetworksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -451,85 +458,81 @@ export class L2NetworksImpl implements L2Networks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/l2Networks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/l2Networks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L2NetworkList + bodyMapper: Mappers.L2NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L2NetworkList + bodyMapper: Mappers.L2NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L2Network + bodyMapper: Mappers.L2Network, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l2NetworkName + Parameters.l2NetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.L2Network + bodyMapper: Mappers.L2Network, }, 201: { - bodyMapper: Mappers.L2Network + bodyMapper: Mappers.L2Network, }, 202: { - bodyMapper: Mappers.L2Network + bodyMapper: Mappers.L2Network, }, 204: { - bodyMapper: Mappers.L2Network + bodyMapper: Mappers.L2Network, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.l2NetworkParameters, queryParameters: [Parameters.apiVersion], @@ -537,46 +540,52 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l2NetworkName + Parameters.l2NetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l2NetworkName + Parameters.l2NetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.L2Network + bodyMapper: Mappers.L2Network, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.l2NetworkUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -584,48 +593,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l2NetworkName + Parameters.l2NetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L2NetworkList + bodyMapper: Mappers.L2NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L2NetworkList + bodyMapper: Mappers.L2NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/l3Networks.ts b/sdk/networkcloud/arm-networkcloud/src/operations/l3Networks.ts index d097cb07a0e8..bd123f75514f 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/l3Networks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/l3Networks.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { L3NetworksCreateOrUpdateOptionalParams, L3NetworksCreateOrUpdateResponse, L3NetworksDeleteOptionalParams, + L3NetworksDeleteResponse, L3NetworksUpdateOptionalParams, L3NetworksUpdateResponse, L3NetworksListBySubscriptionNextResponse, - L3NetworksListByResourceGroupNextResponse + L3NetworksListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class L3NetworksImpl implements L3Networks { * @param options The options parameters. */ public listBySubscription( - options?: L3NetworksListBySubscriptionOptionalParams + options?: L3NetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class L3NetworksImpl implements L3Networks { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: L3NetworksListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: L3NetworksListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class L3NetworksImpl implements L3Networks { } private async *listBySubscriptionPagingAll( - options?: L3NetworksListBySubscriptionOptionalParams + options?: L3NetworksListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class L3NetworksImpl implements L3Networks { */ public listByResourceGroup( resourceGroupName: string, - options?: L3NetworksListByResourceGroupOptionalParams + options?: L3NetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class L3NetworksImpl implements L3Networks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: L3NetworksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: L3NetworksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class L3NetworksImpl implements L3Networks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class L3NetworksImpl implements L3Networks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: L3NetworksListByResourceGroupOptionalParams + options?: L3NetworksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class L3NetworksImpl implements L3Networks { * @param options The options parameters. */ private _listBySubscription( - options?: L3NetworksListBySubscriptionOptionalParams + options?: L3NetworksListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class L3NetworksImpl implements L3Networks { */ private _listByResourceGroup( resourceGroupName: string, - options?: L3NetworksListByResourceGroupOptionalParams + options?: L3NetworksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class L3NetworksImpl implements L3Networks { get( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksGetOptionalParams + options?: L3NetworksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, l3NetworkName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,7 +231,7 @@ export class L3NetworksImpl implements L3Networks { resourceGroupName: string, l3NetworkName: string, l3NetworkParameters: L3Network, - options?: L3NetworksCreateOrUpdateOptionalParams + options?: L3NetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -239,21 +240,20 @@ export class L3NetworksImpl implements L3Networks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -262,8 +262,8 @@ export class L3NetworksImpl implements L3Networks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -271,15 +271,15 @@ export class L3NetworksImpl implements L3Networks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, l3NetworkName, l3NetworkParameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< L3NetworksCreateOrUpdateResponse, @@ -287,7 +287,7 @@ export class L3NetworksImpl implements L3Networks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -304,13 +304,13 @@ export class L3NetworksImpl implements L3Networks { resourceGroupName: string, l3NetworkName: string, l3NetworkParameters: L3Network, - options?: L3NetworksCreateOrUpdateOptionalParams + options?: L3NetworksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, l3NetworkName, l3NetworkParameters, - options + options, ); return poller.pollUntilDone(); } @@ -324,25 +324,29 @@ export class L3NetworksImpl implements L3Networks { async beginDelete( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksDeleteOptionalParams - ): Promise, void>> { + options?: L3NetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + L3NetworksDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -351,8 +355,8 @@ export class L3NetworksImpl implements L3Networks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -360,20 +364,23 @@ export class L3NetworksImpl implements L3Networks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, l3NetworkName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + L3NetworksDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -388,12 +395,12 @@ export class L3NetworksImpl implements L3Networks { async beginDeleteAndWait( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksDeleteOptionalParams - ): Promise { + options?: L3NetworksDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, l3NetworkName, - options + options, ); return poller.pollUntilDone(); } @@ -407,11 +414,11 @@ export class L3NetworksImpl implements L3Networks { update( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksUpdateOptionalParams + options?: L3NetworksUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, l3NetworkName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -422,11 +429,11 @@ export class L3NetworksImpl implements L3Networks { */ private _listBySubscriptionNext( nextLink: string, - options?: L3NetworksListBySubscriptionNextOptionalParams + options?: L3NetworksListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -439,11 +446,11 @@ export class L3NetworksImpl implements L3Networks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: L3NetworksListByResourceGroupNextOptionalParams + options?: L3NetworksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -451,85 +458,81 @@ export class L3NetworksImpl implements L3Networks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/l3Networks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/l3Networks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L3NetworkList + bodyMapper: Mappers.L3NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L3NetworkList + bodyMapper: Mappers.L3NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L3Network + bodyMapper: Mappers.L3Network, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l3NetworkName + Parameters.l3NetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.L3Network + bodyMapper: Mappers.L3Network, }, 201: { - bodyMapper: Mappers.L3Network + bodyMapper: Mappers.L3Network, }, 202: { - bodyMapper: Mappers.L3Network + bodyMapper: Mappers.L3Network, }, 204: { - bodyMapper: Mappers.L3Network + bodyMapper: Mappers.L3Network, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.l3NetworkParameters, queryParameters: [Parameters.apiVersion], @@ -537,46 +540,52 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l3NetworkName + Parameters.l3NetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l3NetworkName + Parameters.l3NetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l3Networks/{l3NetworkName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.L3Network + bodyMapper: Mappers.L3Network, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.l3NetworkUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -584,48 +593,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.l3NetworkName + Parameters.l3NetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L3NetworkList + bodyMapper: Mappers.L3NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.L3NetworkList + bodyMapper: Mappers.L3NetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/metricsConfigurations.ts b/sdk/networkcloud/arm-networkcloud/src/operations/metricsConfigurations.ts index b02ba9766770..7a6d657b2497 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/metricsConfigurations.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/metricsConfigurations.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,9 +29,10 @@ import { MetricsConfigurationsCreateOrUpdateOptionalParams, MetricsConfigurationsCreateOrUpdateResponse, MetricsConfigurationsDeleteOptionalParams, + MetricsConfigurationsDeleteResponse, MetricsConfigurationsUpdateOptionalParams, MetricsConfigurationsUpdateResponse, - MetricsConfigurationsListByClusterNextResponse + MetricsConfigurationsListByClusterNextResponse, } from "../models"; /// @@ -56,12 +57,12 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { public listByCluster( resourceGroupName: string, clusterName: string, - options?: MetricsConfigurationsListByClusterOptionalParams + options?: MetricsConfigurationsListByClusterOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByClusterPagingAll( resourceGroupName, clusterName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName, clusterName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, options?: MetricsConfigurationsListByClusterOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: MetricsConfigurationsListByClusterResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { result = await this._listByCluster( resourceGroupName, clusterName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName, clusterName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { private async *listByClusterPagingAll( resourceGroupName: string, clusterName: string, - options?: MetricsConfigurationsListByClusterOptionalParams + options?: MetricsConfigurationsListByClusterOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByClusterPagingPage( resourceGroupName, clusterName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { private _listByCluster( resourceGroupName: string, clusterName: string, - options?: MetricsConfigurationsListByClusterOptionalParams + options?: MetricsConfigurationsListByClusterOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, options }, - listByClusterOperationSpec + listByClusterOperationSpec, ); } @@ -159,11 +160,11 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsGetOptionalParams + options?: MetricsConfigurationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, metricsConfigurationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -180,7 +181,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { clusterName: string, metricsConfigurationName: string, metricsConfigurationParameters: ClusterMetricsConfiguration, - options?: MetricsConfigurationsCreateOrUpdateOptionalParams + options?: MetricsConfigurationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -189,21 +190,20 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -212,8 +212,8 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -221,8 +221,8 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -233,9 +233,9 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { clusterName, metricsConfigurationName, metricsConfigurationParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< MetricsConfigurationsCreateOrUpdateResponse, @@ -243,7 +243,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -262,14 +262,14 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { clusterName: string, metricsConfigurationName: string, metricsConfigurationParameters: ClusterMetricsConfiguration, - options?: MetricsConfigurationsCreateOrUpdateOptionalParams + options?: MetricsConfigurationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterName, metricsConfigurationName, metricsConfigurationParameters, - options + options, ); return poller.pollUntilDone(); } @@ -285,25 +285,29 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsDeleteOptionalParams - ): Promise, void>> { + options?: MetricsConfigurationsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MetricsConfigurationsDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -312,8 +316,8 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -321,8 +325,8 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -332,14 +336,17 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName, clusterName, metricsConfigurationName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + MetricsConfigurationsDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -356,13 +363,13 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsDeleteOptionalParams - ): Promise { + options?: MetricsConfigurationsDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, metricsConfigurationName, - options + options, ); return poller.pollUntilDone(); } @@ -379,7 +386,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsUpdateOptionalParams + options?: MetricsConfigurationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -388,21 +395,20 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -411,8 +417,8 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -420,8 +426,8 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -431,9 +437,9 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName, clusterName, metricsConfigurationName, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< MetricsConfigurationsUpdateResponse, @@ -441,7 +447,7 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -459,13 +465,13 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsUpdateOptionalParams + options?: MetricsConfigurationsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, clusterName, metricsConfigurationName, - options + options, ); return poller.pollUntilDone(); } @@ -481,11 +487,11 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { resourceGroupName: string, clusterName: string, nextLink: string, - options?: MetricsConfigurationsListByClusterNextOptionalParams + options?: MetricsConfigurationsListByClusterNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, nextLink, options }, - listByClusterNextOperationSpec + listByClusterNextOperationSpec, ); } } @@ -493,38 +499,36 @@ export class MetricsConfigurationsImpl implements MetricsConfigurations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByClusterOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterMetricsConfigurationList + bodyMapper: Mappers.ClusterMetricsConfigurationList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -532,31 +536,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.metricsConfigurationName + Parameters.metricsConfigurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, 201: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, 202: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, 204: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.metricsConfigurationParameters, queryParameters: [Parameters.apiVersion], @@ -565,24 +568,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.metricsConfigurationName + Parameters.metricsConfigurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -590,31 +600,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.metricsConfigurationName + Parameters.metricsConfigurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/metricsConfigurations/{metricsConfigurationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, 201: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, 202: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, 204: { - bodyMapper: Mappers.ClusterMetricsConfiguration + bodyMapper: Mappers.ClusterMetricsConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.metricsConfigurationUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -623,30 +632,30 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, - Parameters.metricsConfigurationName + Parameters.metricsConfigurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByClusterNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterMetricsConfigurationList + bodyMapper: Mappers.ClusterMetricsConfigurationList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/operations.ts b/sdk/networkcloud/arm-networkcloud/src/operations/operations.ts index e03dbe2bc7c8..8505b5b7dbc7 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/operations.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -40,7 +40,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -55,13 +55,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -82,7 +82,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -95,7 +95,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -107,11 +107,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -123,29 +123,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/rackSkus.ts b/sdk/networkcloud/arm-networkcloud/src/operations/rackSkus.ts index b8d5e500ad79..776ca14ad045 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/rackSkus.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/rackSkus.ts @@ -20,7 +20,7 @@ import { RackSkusListBySubscriptionResponse, RackSkusGetOptionalParams, RackSkusGetResponse, - RackSkusListBySubscriptionNextResponse + RackSkusListBySubscriptionNextResponse, } from "../models"; /// @@ -41,7 +41,7 @@ export class RackSkusImpl implements RackSkus { * @param options The options parameters. */ public listBySubscription( - options?: RackSkusListBySubscriptionOptionalParams + options?: RackSkusListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -56,13 +56,13 @@ export class RackSkusImpl implements RackSkus { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: RackSkusListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RackSkusListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class RackSkusImpl implements RackSkus { } private async *listBySubscriptionPagingAll( - options?: RackSkusListBySubscriptionOptionalParams + options?: RackSkusListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -95,11 +95,11 @@ export class RackSkusImpl implements RackSkus { * @param options The options parameters. */ private _listBySubscription( - options?: RackSkusListBySubscriptionOptionalParams + options?: RackSkusListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -110,11 +110,11 @@ export class RackSkusImpl implements RackSkus { */ get( rackSkuName: string, - options?: RackSkusGetOptionalParams + options?: RackSkusGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { rackSkuName, options }, - getOperationSpec + getOperationSpec, ); } @@ -125,11 +125,11 @@ export class RackSkusImpl implements RackSkus { */ private _listBySubscriptionNext( nextLink: string, - options?: RackSkusListBySubscriptionNextOptionalParams + options?: RackSkusListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -137,59 +137,57 @@ export class RackSkusImpl implements RackSkus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/rackSkus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/rackSkus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackSkuList + bodyMapper: Mappers.RackSkuList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/rackSkus/{rackSkuName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/rackSkus/{rackSkuName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackSku + bodyMapper: Mappers.RackSku, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.rackSkuName + Parameters.rackSkuName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackSkuList + bodyMapper: Mappers.RackSkuList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/racks.ts b/sdk/networkcloud/arm-networkcloud/src/operations/racks.ts index 516ca3bbd129..33ea11139bbd 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/racks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/racks.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { RacksCreateOrUpdateOptionalParams, RacksCreateOrUpdateResponse, RacksDeleteOptionalParams, + RacksDeleteResponse, RacksUpdateOptionalParams, RacksUpdateResponse, RacksListBySubscriptionNextResponse, - RacksListByResourceGroupNextResponse + RacksListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class RacksImpl implements Racks { * @param options The options parameters. */ public listBySubscription( - options?: RacksListBySubscriptionOptionalParams + options?: RacksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class RacksImpl implements Racks { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: RacksListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RacksListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class RacksImpl implements Racks { } private async *listBySubscriptionPagingAll( - options?: RacksListBySubscriptionOptionalParams + options?: RacksListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class RacksImpl implements Racks { */ public listByResourceGroup( resourceGroupName: string, - options?: RacksListByResourceGroupOptionalParams + options?: RacksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class RacksImpl implements Racks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: RacksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RacksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class RacksImpl implements Racks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class RacksImpl implements Racks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: RacksListByResourceGroupOptionalParams + options?: RacksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class RacksImpl implements Racks { * @param options The options parameters. */ private _listBySubscription( - options?: RacksListBySubscriptionOptionalParams + options?: RacksListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class RacksImpl implements Racks { */ private _listByResourceGroup( resourceGroupName: string, - options?: RacksListByResourceGroupOptionalParams + options?: RacksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class RacksImpl implements Racks { get( resourceGroupName: string, rackName: string, - options?: RacksGetOptionalParams + options?: RacksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, rackName, options }, - getOperationSpec + getOperationSpec, ); } @@ -232,7 +233,7 @@ export class RacksImpl implements Racks { resourceGroupName: string, rackName: string, rackParameters: Rack, - options?: RacksCreateOrUpdateOptionalParams + options?: RacksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -241,21 +242,20 @@ export class RacksImpl implements Racks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -264,8 +264,8 @@ export class RacksImpl implements Racks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -273,15 +273,15 @@ export class RacksImpl implements Racks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, rackName, rackParameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< RacksCreateOrUpdateResponse, @@ -289,7 +289,7 @@ export class RacksImpl implements Racks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -308,13 +308,13 @@ export class RacksImpl implements Racks { resourceGroupName: string, rackName: string, rackParameters: Rack, - options?: RacksCreateOrUpdateOptionalParams + options?: RacksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, rackName, rackParameters, - options + options, ); return poller.pollUntilDone(); } @@ -330,25 +330,26 @@ export class RacksImpl implements Racks { async beginDelete( resourceGroupName: string, rackName: string, - options?: RacksDeleteOptionalParams - ): Promise, void>> { + options?: RacksDeleteOptionalParams, + ): Promise< + SimplePollerLike, RacksDeleteResponse> + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -357,8 +358,8 @@ export class RacksImpl implements Racks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -366,20 +367,23 @@ export class RacksImpl implements Racks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, rackName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + RacksDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -396,8 +400,8 @@ export class RacksImpl implements Racks { async beginDeleteAndWait( resourceGroupName: string, rackName: string, - options?: RacksDeleteOptionalParams - ): Promise { + options?: RacksDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete(resourceGroupName, rackName, options); return poller.pollUntilDone(); } @@ -412,27 +416,26 @@ export class RacksImpl implements Racks { async beginUpdate( resourceGroupName: string, rackName: string, - options?: RacksUpdateOptionalParams + options?: RacksUpdateOptionalParams, ): Promise< SimplePollerLike, RacksUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -441,8 +444,8 @@ export class RacksImpl implements Racks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -450,15 +453,15 @@ export class RacksImpl implements Racks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, rackName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< RacksUpdateResponse, @@ -466,7 +469,7 @@ export class RacksImpl implements Racks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -482,7 +485,7 @@ export class RacksImpl implements Racks { async beginUpdateAndWait( resourceGroupName: string, rackName: string, - options?: RacksUpdateOptionalParams + options?: RacksUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate(resourceGroupName, rackName, options); return poller.pollUntilDone(); @@ -495,11 +498,11 @@ export class RacksImpl implements Racks { */ private _listBySubscriptionNext( nextLink: string, - options?: RacksListBySubscriptionNextOptionalParams + options?: RacksListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -512,11 +515,11 @@ export class RacksImpl implements Racks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: RacksListByResourceGroupNextOptionalParams + options?: RacksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -524,85 +527,81 @@ export class RacksImpl implements Racks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/racks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/racks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackList + bodyMapper: Mappers.RackList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackList + bodyMapper: Mappers.RackList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.rackName + Parameters.rackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, 201: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, 202: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, 204: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.rackParameters, queryParameters: [Parameters.apiVersion], @@ -610,55 +609,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.rackName + Parameters.rackName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.rackName + Parameters.rackName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/racks/{rackName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, 201: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, 202: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, 204: { - bodyMapper: Mappers.Rack + bodyMapper: Mappers.Rack, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.rackUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -666,48 +671,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.rackName + Parameters.rackName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackList + bodyMapper: Mappers.RackList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RackList + bodyMapper: Mappers.RackList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/storageAppliances.ts b/sdk/networkcloud/arm-networkcloud/src/operations/storageAppliances.ts index 508c635c843d..cc58484943e6 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/storageAppliances.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/storageAppliances.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,6 +32,7 @@ import { StorageAppliancesCreateOrUpdateOptionalParams, StorageAppliancesCreateOrUpdateResponse, StorageAppliancesDeleteOptionalParams, + StorageAppliancesDeleteResponse, StorageAppliancesUpdateOptionalParams, StorageAppliancesUpdateResponse, StorageAppliancesDisableRemoteVendorManagementOptionalParams, @@ -39,7 +40,7 @@ import { StorageAppliancesEnableRemoteVendorManagementOptionalParams, StorageAppliancesEnableRemoteVendorManagementResponse, StorageAppliancesListBySubscriptionNextResponse, - StorageAppliancesListByResourceGroupNextResponse + StorageAppliancesListByResourceGroupNextResponse, } from "../models"; /// @@ -60,7 +61,7 @@ export class StorageAppliancesImpl implements StorageAppliances { * @param options The options parameters. */ public listBySubscription( - options?: StorageAppliancesListBySubscriptionOptionalParams + options?: StorageAppliancesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -75,13 +76,13 @@ export class StorageAppliancesImpl implements StorageAppliances { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: StorageAppliancesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: StorageAppliancesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +103,7 @@ export class StorageAppliancesImpl implements StorageAppliances { } private async *listBySubscriptionPagingAll( - options?: StorageAppliancesListBySubscriptionOptionalParams + options?: StorageAppliancesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -116,7 +117,7 @@ export class StorageAppliancesImpl implements StorageAppliances { */ public listByResourceGroup( resourceGroupName: string, - options?: StorageAppliancesListByResourceGroupOptionalParams + options?: StorageAppliancesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -133,16 +134,16 @@ export class StorageAppliancesImpl implements StorageAppliances { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: StorageAppliancesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: StorageAppliancesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -157,7 +158,7 @@ export class StorageAppliancesImpl implements StorageAppliances { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -168,11 +169,11 @@ export class StorageAppliancesImpl implements StorageAppliances { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: StorageAppliancesListByResourceGroupOptionalParams + options?: StorageAppliancesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -183,11 +184,11 @@ export class StorageAppliancesImpl implements StorageAppliances { * @param options The options parameters. */ private _listBySubscription( - options?: StorageAppliancesListBySubscriptionOptionalParams + options?: StorageAppliancesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -198,11 +199,11 @@ export class StorageAppliancesImpl implements StorageAppliances { */ private _listByResourceGroup( resourceGroupName: string, - options?: StorageAppliancesListByResourceGroupOptionalParams + options?: StorageAppliancesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -215,11 +216,11 @@ export class StorageAppliancesImpl implements StorageAppliances { get( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesGetOptionalParams + options?: StorageAppliancesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, storageApplianceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -236,7 +237,7 @@ export class StorageAppliancesImpl implements StorageAppliances { resourceGroupName: string, storageApplianceName: string, storageApplianceParameters: StorageAppliance, - options?: StorageAppliancesCreateOrUpdateOptionalParams + options?: StorageAppliancesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -245,21 +246,20 @@ export class StorageAppliancesImpl implements StorageAppliances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -268,8 +268,8 @@ export class StorageAppliancesImpl implements StorageAppliances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -277,8 +277,8 @@ export class StorageAppliancesImpl implements StorageAppliances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -288,9 +288,9 @@ export class StorageAppliancesImpl implements StorageAppliances { resourceGroupName, storageApplianceName, storageApplianceParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< StorageAppliancesCreateOrUpdateResponse, @@ -298,7 +298,7 @@ export class StorageAppliancesImpl implements StorageAppliances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -317,13 +317,13 @@ export class StorageAppliancesImpl implements StorageAppliances { resourceGroupName: string, storageApplianceName: string, storageApplianceParameters: StorageAppliance, - options?: StorageAppliancesCreateOrUpdateOptionalParams + options?: StorageAppliancesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, storageApplianceName, storageApplianceParameters, - options + options, ); return poller.pollUntilDone(); } @@ -339,25 +339,29 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginDelete( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDeleteOptionalParams - ): Promise, void>> { + options?: StorageAppliancesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + StorageAppliancesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -366,8 +370,8 @@ export class StorageAppliancesImpl implements StorageAppliances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -375,20 +379,23 @@ export class StorageAppliancesImpl implements StorageAppliances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, storageApplianceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + StorageAppliancesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -405,12 +412,12 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginDeleteAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDeleteOptionalParams - ): Promise { + options?: StorageAppliancesDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, storageApplianceName, - options + options, ); return poller.pollUntilDone(); } @@ -425,7 +432,7 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginUpdate( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesUpdateOptionalParams + options?: StorageAppliancesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -434,21 +441,20 @@ export class StorageAppliancesImpl implements StorageAppliances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -457,8 +463,8 @@ export class StorageAppliancesImpl implements StorageAppliances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -466,15 +472,15 @@ export class StorageAppliancesImpl implements StorageAppliances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, storageApplianceName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< StorageAppliancesUpdateResponse, @@ -482,7 +488,7 @@ export class StorageAppliancesImpl implements StorageAppliances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -498,12 +504,12 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginUpdateAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesUpdateOptionalParams + options?: StorageAppliancesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, storageApplianceName, - options + options, ); return poller.pollUntilDone(); } @@ -517,7 +523,7 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginDisableRemoteVendorManagement( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams + options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -526,21 +532,20 @@ export class StorageAppliancesImpl implements StorageAppliances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -549,8 +554,8 @@ export class StorageAppliancesImpl implements StorageAppliances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -558,15 +563,15 @@ export class StorageAppliancesImpl implements StorageAppliances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, storageApplianceName, options }, - spec: disableRemoteVendorManagementOperationSpec + spec: disableRemoteVendorManagementOperationSpec, }); const poller = await createHttpPoller< StorageAppliancesDisableRemoteVendorManagementResponse, @@ -574,7 +579,7 @@ export class StorageAppliancesImpl implements StorageAppliances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -589,12 +594,12 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginDisableRemoteVendorManagementAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams + options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams, ): Promise { const poller = await this.beginDisableRemoteVendorManagement( resourceGroupName, storageApplianceName, - options + options, ); return poller.pollUntilDone(); } @@ -608,7 +613,7 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginEnableRemoteVendorManagement( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams + options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -617,21 +622,20 @@ export class StorageAppliancesImpl implements StorageAppliances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -640,8 +644,8 @@ export class StorageAppliancesImpl implements StorageAppliances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -649,15 +653,15 @@ export class StorageAppliancesImpl implements StorageAppliances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, storageApplianceName, options }, - spec: enableRemoteVendorManagementOperationSpec + spec: enableRemoteVendorManagementOperationSpec, }); const poller = await createHttpPoller< StorageAppliancesEnableRemoteVendorManagementResponse, @@ -665,7 +669,7 @@ export class StorageAppliancesImpl implements StorageAppliances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -680,12 +684,12 @@ export class StorageAppliancesImpl implements StorageAppliances { async beginEnableRemoteVendorManagementAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams + options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams, ): Promise { const poller = await this.beginEnableRemoteVendorManagement( resourceGroupName, storageApplianceName, - options + options, ); return poller.pollUntilDone(); } @@ -697,11 +701,11 @@ export class StorageAppliancesImpl implements StorageAppliances { */ private _listBySubscriptionNext( nextLink: string, - options?: StorageAppliancesListBySubscriptionNextOptionalParams + options?: StorageAppliancesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -714,11 +718,11 @@ export class StorageAppliancesImpl implements StorageAppliances { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: StorageAppliancesListByResourceGroupNextOptionalParams + options?: StorageAppliancesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -726,85 +730,81 @@ export class StorageAppliancesImpl implements StorageAppliances { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/storageAppliances", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/storageAppliances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageApplianceList + bodyMapper: Mappers.StorageApplianceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageApplianceList + bodyMapper: Mappers.StorageApplianceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.storageApplianceName + Parameters.storageApplianceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, 201: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, 202: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, 204: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.storageApplianceParameters, queryParameters: [Parameters.apiVersion], @@ -812,55 +812,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.storageApplianceName + Parameters.storageApplianceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.storageApplianceName + Parameters.storageApplianceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, 201: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, 202: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, 204: { - bodyMapper: Mappers.StorageAppliance + bodyMapper: Mappers.StorageAppliance, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.storageApplianceUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -868,63 +874,61 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.storageApplianceName + Parameters.storageApplianceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const disableRemoteVendorManagementOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/disableRemoteVendorManagement", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/disableRemoteVendorManagement", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.storageApplianceName + Parameters.storageApplianceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const enableRemoteVendorManagementOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/enableRemoteVendorManagement", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/storageAppliances/{storageApplianceName}/enableRemoteVendorManagement", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.storageApplianceEnableRemoteVendorManagementParameters, @@ -933,48 +937,48 @@ const enableRemoteVendorManagementOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.storageApplianceName + Parameters.storageApplianceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageApplianceList + bodyMapper: Mappers.StorageApplianceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StorageApplianceList + bodyMapper: Mappers.StorageApplianceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/trunkedNetworks.ts b/sdk/networkcloud/arm-networkcloud/src/operations/trunkedNetworks.ts index 9988469393bb..d81c65050407 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/trunkedNetworks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/trunkedNetworks.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { TrunkedNetworksCreateOrUpdateOptionalParams, TrunkedNetworksCreateOrUpdateResponse, TrunkedNetworksDeleteOptionalParams, + TrunkedNetworksDeleteResponse, TrunkedNetworksUpdateOptionalParams, TrunkedNetworksUpdateResponse, TrunkedNetworksListBySubscriptionNextResponse, - TrunkedNetworksListByResourceGroupNextResponse + TrunkedNetworksListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { * @param options The options parameters. */ public listBySubscription( - options?: TrunkedNetworksListBySubscriptionOptionalParams + options?: TrunkedNetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: TrunkedNetworksListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TrunkedNetworksListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { } private async *listBySubscriptionPagingAll( - options?: TrunkedNetworksListBySubscriptionOptionalParams + options?: TrunkedNetworksListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { */ public listByResourceGroup( resourceGroupName: string, - options?: TrunkedNetworksListByResourceGroupOptionalParams + options?: TrunkedNetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: TrunkedNetworksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TrunkedNetworksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: TrunkedNetworksListByResourceGroupOptionalParams + options?: TrunkedNetworksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { * @param options The options parameters. */ private _listBySubscription( - options?: TrunkedNetworksListBySubscriptionOptionalParams + options?: TrunkedNetworksListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { */ private _listByResourceGroup( resourceGroupName: string, - options?: TrunkedNetworksListByResourceGroupOptionalParams + options?: TrunkedNetworksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { get( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksGetOptionalParams + options?: TrunkedNetworksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, trunkedNetworkName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,7 +231,7 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { resourceGroupName: string, trunkedNetworkName: string, trunkedNetworkParameters: TrunkedNetwork, - options?: TrunkedNetworksCreateOrUpdateOptionalParams + options?: TrunkedNetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -239,21 +240,20 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -262,8 +262,8 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -271,8 +271,8 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -282,9 +282,9 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { resourceGroupName, trunkedNetworkName, trunkedNetworkParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< TrunkedNetworksCreateOrUpdateResponse, @@ -292,7 +292,7 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -309,13 +309,13 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { resourceGroupName: string, trunkedNetworkName: string, trunkedNetworkParameters: TrunkedNetwork, - options?: TrunkedNetworksCreateOrUpdateOptionalParams + options?: TrunkedNetworksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, trunkedNetworkName, trunkedNetworkParameters, - options + options, ); return poller.pollUntilDone(); } @@ -329,25 +329,29 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { async beginDelete( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksDeleteOptionalParams - ): Promise, void>> { + options?: TrunkedNetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + TrunkedNetworksDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -356,8 +360,8 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -365,20 +369,23 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, trunkedNetworkName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + TrunkedNetworksDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -393,12 +400,12 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { async beginDeleteAndWait( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksDeleteOptionalParams - ): Promise { + options?: TrunkedNetworksDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, trunkedNetworkName, - options + options, ); return poller.pollUntilDone(); } @@ -412,11 +419,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { update( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksUpdateOptionalParams + options?: TrunkedNetworksUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, trunkedNetworkName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -427,11 +434,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { */ private _listBySubscriptionNext( nextLink: string, - options?: TrunkedNetworksListBySubscriptionNextOptionalParams + options?: TrunkedNetworksListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -444,11 +451,11 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: TrunkedNetworksListByResourceGroupNextOptionalParams + options?: TrunkedNetworksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -456,85 +463,81 @@ export class TrunkedNetworksImpl implements TrunkedNetworks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/trunkedNetworks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/trunkedNetworks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrunkedNetworkList + bodyMapper: Mappers.TrunkedNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrunkedNetworkList + bodyMapper: Mappers.TrunkedNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrunkedNetwork + bodyMapper: Mappers.TrunkedNetwork, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.trunkedNetworkName + Parameters.trunkedNetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TrunkedNetwork + bodyMapper: Mappers.TrunkedNetwork, }, 201: { - bodyMapper: Mappers.TrunkedNetwork + bodyMapper: Mappers.TrunkedNetwork, }, 202: { - bodyMapper: Mappers.TrunkedNetwork + bodyMapper: Mappers.TrunkedNetwork, }, 204: { - bodyMapper: Mappers.TrunkedNetwork + bodyMapper: Mappers.TrunkedNetwork, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.trunkedNetworkParameters, queryParameters: [Parameters.apiVersion], @@ -542,46 +545,52 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.trunkedNetworkName + Parameters.trunkedNetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.trunkedNetworkName + Parameters.trunkedNetworkName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/trunkedNetworks/{trunkedNetworkName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.TrunkedNetwork + bodyMapper: Mappers.TrunkedNetwork, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.trunkedNetworkUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -589,48 +598,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.trunkedNetworkName + Parameters.trunkedNetworkName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrunkedNetworkList + bodyMapper: Mappers.TrunkedNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TrunkedNetworkList + bodyMapper: Mappers.TrunkedNetworkList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/virtualMachines.ts b/sdk/networkcloud/arm-networkcloud/src/operations/virtualMachines.ts index d0b64ba0aa07..f61f651c90a7 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/virtualMachines.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/virtualMachines.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,6 +32,7 @@ import { VirtualMachinesCreateOrUpdateOptionalParams, VirtualMachinesCreateOrUpdateResponse, VirtualMachinesDeleteOptionalParams, + VirtualMachinesDeleteResponse, VirtualMachinesUpdateOptionalParams, VirtualMachinesUpdateResponse, VirtualMachinesPowerOffOptionalParams, @@ -43,7 +44,7 @@ import { VirtualMachinesStartOptionalParams, VirtualMachinesStartResponse, VirtualMachinesListBySubscriptionNextResponse, - VirtualMachinesListByResourceGroupNextResponse + VirtualMachinesListByResourceGroupNextResponse, } from "../models"; /// @@ -64,7 +65,7 @@ export class VirtualMachinesImpl implements VirtualMachines { * @param options The options parameters. */ public listBySubscription( - options?: VirtualMachinesListBySubscriptionOptionalParams + options?: VirtualMachinesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -79,13 +80,13 @@ export class VirtualMachinesImpl implements VirtualMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: VirtualMachinesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -106,7 +107,7 @@ export class VirtualMachinesImpl implements VirtualMachines { } private async *listBySubscriptionPagingAll( - options?: VirtualMachinesListBySubscriptionOptionalParams + options?: VirtualMachinesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -120,7 +121,7 @@ export class VirtualMachinesImpl implements VirtualMachines { */ public listByResourceGroup( resourceGroupName: string, - options?: VirtualMachinesListByResourceGroupOptionalParams + options?: VirtualMachinesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -137,16 +138,16 @@ export class VirtualMachinesImpl implements VirtualMachines { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: VirtualMachinesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -161,7 +162,7 @@ export class VirtualMachinesImpl implements VirtualMachines { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -172,11 +173,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: VirtualMachinesListByResourceGroupOptionalParams + options?: VirtualMachinesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -187,11 +188,11 @@ export class VirtualMachinesImpl implements VirtualMachines { * @param options The options parameters. */ private _listBySubscription( - options?: VirtualMachinesListBySubscriptionOptionalParams + options?: VirtualMachinesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -202,11 +203,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _listByResourceGroup( resourceGroupName: string, - options?: VirtualMachinesListByResourceGroupOptionalParams + options?: VirtualMachinesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -219,11 +220,11 @@ export class VirtualMachinesImpl implements VirtualMachines { get( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesGetOptionalParams + options?: VirtualMachinesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineName, options }, - getOperationSpec + getOperationSpec, ); } @@ -238,7 +239,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -247,21 +248,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -270,8 +270,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -279,8 +279,8 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -290,9 +290,9 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName, virtualMachineName, virtualMachineParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesCreateOrUpdateResponse, @@ -300,7 +300,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -317,13 +317,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, virtualMachineName, virtualMachineParameters, - options + options, ); return poller.pollUntilDone(); } @@ -337,25 +337,29 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDelete( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesDeleteOptionalParams - ): Promise, void>> { + options?: VirtualMachinesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachinesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -364,8 +368,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -373,20 +377,23 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + VirtualMachinesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -401,12 +408,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDeleteAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesDeleteOptionalParams - ): Promise { + options?: VirtualMachinesDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, virtualMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -421,7 +428,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginUpdate( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -430,21 +437,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -453,8 +459,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -462,15 +468,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesUpdateResponse, @@ -478,7 +484,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -494,12 +500,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginUpdateAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, virtualMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -513,7 +519,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPowerOff( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -522,21 +528,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -545,8 +550,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -554,15 +559,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesPowerOffResponse, @@ -570,7 +575,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -585,12 +590,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPowerOffAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, virtualMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -604,7 +609,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReimage( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -613,21 +618,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -636,8 +640,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -645,15 +649,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesReimageResponse, @@ -661,7 +665,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -676,12 +680,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReimageAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, virtualMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -695,7 +699,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRestart( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -704,21 +708,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -727,8 +730,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -736,15 +739,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesRestartResponse, @@ -752,7 +755,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -767,12 +770,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRestartAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, virtualMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -786,7 +789,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginStart( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -795,21 +798,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -818,8 +820,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -827,15 +829,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, virtualMachineName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesStartResponse, @@ -843,7 +845,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -858,12 +860,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginStartAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, virtualMachineName, - options + options, ); return poller.pollUntilDone(); } @@ -875,11 +877,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _listBySubscriptionNext( nextLink: string, - options?: VirtualMachinesListBySubscriptionNextOptionalParams + options?: VirtualMachinesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -892,11 +894,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: VirtualMachinesListByResourceGroupNextOptionalParams + options?: VirtualMachinesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -904,85 +906,81 @@ export class VirtualMachinesImpl implements VirtualMachines { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/virtualMachines", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineList + bodyMapper: Mappers.VirtualMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineList + bodyMapper: Mappers.VirtualMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 201: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 202: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 204: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.virtualMachineParameters, queryParameters: [Parameters.apiVersion], @@ -990,55 +988,61 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 201: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 202: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 204: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.virtualMachineUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -1046,32 +1050,31 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/powerOff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/powerOff", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.virtualMachinePowerOffParameters, queryParameters: [Parameters.apiVersion], @@ -1079,141 +1082,138 @@ const powerOffOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/reimage", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/restart", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/start", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 201: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 202: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, 204: { - bodyMapper: Mappers.OperationStatusResult + bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineName + Parameters.virtualMachineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineList + bodyMapper: Mappers.VirtualMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineList + bodyMapper: Mappers.VirtualMachineList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operations/volumes.ts b/sdk/networkcloud/arm-networkcloud/src/operations/volumes.ts index 0e47ce7f7848..ef4be8ff4f0b 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operations/volumes.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operations/volumes.ts @@ -16,7 +16,7 @@ import { NetworkCloud } from "../networkCloud"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,10 +32,11 @@ import { VolumesCreateOrUpdateOptionalParams, VolumesCreateOrUpdateResponse, VolumesDeleteOptionalParams, + VolumesDeleteResponse, VolumesUpdateOptionalParams, VolumesUpdateResponse, VolumesListBySubscriptionNextResponse, - VolumesListByResourceGroupNextResponse + VolumesListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +57,7 @@ export class VolumesImpl implements Volumes { * @param options The options parameters. */ public listBySubscription( - options?: VolumesListBySubscriptionOptionalParams + options?: VolumesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +72,13 @@ export class VolumesImpl implements Volumes { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: VolumesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VolumesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class VolumesImpl implements Volumes { } private async *listBySubscriptionPagingAll( - options?: VolumesListBySubscriptionOptionalParams + options?: VolumesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -112,7 +113,7 @@ export class VolumesImpl implements Volumes { */ public listByResourceGroup( resourceGroupName: string, - options?: VolumesListByResourceGroupOptionalParams + options?: VolumesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +130,16 @@ export class VolumesImpl implements Volumes { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: VolumesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VolumesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +154,7 @@ export class VolumesImpl implements Volumes { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +165,11 @@ export class VolumesImpl implements Volumes { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: VolumesListByResourceGroupOptionalParams + options?: VolumesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +180,11 @@ export class VolumesImpl implements Volumes { * @param options The options parameters. */ private _listBySubscription( - options?: VolumesListBySubscriptionOptionalParams + options?: VolumesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -194,11 +195,11 @@ export class VolumesImpl implements Volumes { */ private _listByResourceGroup( resourceGroupName: string, - options?: VolumesListByResourceGroupOptionalParams + options?: VolumesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +212,11 @@ export class VolumesImpl implements Volumes { get( resourceGroupName: string, volumeName: string, - options?: VolumesGetOptionalParams + options?: VolumesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, volumeName, options }, - getOperationSpec + getOperationSpec, ); } @@ -230,7 +231,7 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, volumeName: string, volumeParameters: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -239,21 +240,20 @@ export class VolumesImpl implements Volumes { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -262,8 +262,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -271,15 +271,15 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, volumeName, volumeParameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VolumesCreateOrUpdateResponse, @@ -287,7 +287,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -304,13 +304,13 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, volumeName: string, volumeParameters: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, volumeName, volumeParameters, - options + options, ); return poller.pollUntilDone(); } @@ -324,25 +324,29 @@ export class VolumesImpl implements Volumes { async beginDelete( resourceGroupName: string, volumeName: string, - options?: VolumesDeleteOptionalParams - ): Promise, void>> { + options?: VolumesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VolumesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -351,8 +355,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -360,20 +364,23 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, volumeName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + VolumesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -388,12 +395,12 @@ export class VolumesImpl implements Volumes { async beginDeleteAndWait( resourceGroupName: string, volumeName: string, - options?: VolumesDeleteOptionalParams - ): Promise { + options?: VolumesDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -407,11 +414,11 @@ export class VolumesImpl implements Volumes { update( resourceGroupName: string, volumeName: string, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, volumeName, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -422,11 +429,11 @@ export class VolumesImpl implements Volumes { */ private _listBySubscriptionNext( nextLink: string, - options?: VolumesListBySubscriptionNextOptionalParams + options?: VolumesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -439,11 +446,11 @@ export class VolumesImpl implements Volumes { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: VolumesListByResourceGroupNextOptionalParams + options?: VolumesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -451,85 +458,81 @@ export class VolumesImpl implements Volumes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/volumes", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/volumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 201: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 202: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 204: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.volumeParameters, queryParameters: [Parameters.apiVersion], @@ -537,46 +540,52 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + 201: { + bodyMapper: Mappers.OperationStatusResult, + }, + 202: { + bodyMapper: Mappers.OperationStatusResult, + }, + 204: { + bodyMapper: Mappers.OperationStatusResult, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/volumes/{volumeName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.volumeUpdateParameters, queryParameters: [Parameters.apiVersion], @@ -584,48 +593,48 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/agentPools.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/agentPools.ts index 469357bcffa9..8439577a83c6 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/agentPools.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/agentPools.ts @@ -16,8 +16,9 @@ import { AgentPoolsCreateOrUpdateOptionalParams, AgentPoolsCreateOrUpdateResponse, AgentPoolsDeleteOptionalParams, + AgentPoolsDeleteResponse, AgentPoolsUpdateOptionalParams, - AgentPoolsUpdateResponse + AgentPoolsUpdateResponse, } from "../models"; /// @@ -32,7 +33,7 @@ export interface AgentPools { listByKubernetesCluster( resourceGroupName: string, kubernetesClusterName: string, - options?: AgentPoolsListByKubernetesClusterOptionalParams + options?: AgentPoolsListByKubernetesClusterOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided Kubernetes cluster agent pool. @@ -45,7 +46,7 @@ export interface AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsGetOptionalParams + options?: AgentPoolsGetOptionalParams, ): Promise; /** * Create a new Kubernetes cluster agent pool or update the properties of the existing one. @@ -60,7 +61,7 @@ export interface AgentPools { kubernetesClusterName: string, agentPoolName: string, agentPoolParameters: AgentPool, - options?: AgentPoolsCreateOrUpdateOptionalParams + options?: AgentPoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface AgentPools { kubernetesClusterName: string, agentPoolName: string, agentPoolParameters: AgentPool, - options?: AgentPoolsCreateOrUpdateOptionalParams + options?: AgentPoolsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided Kubernetes cluster agent pool. @@ -93,8 +94,13 @@ export interface AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsDeleteOptionalParams - ): Promise, void>>; + options?: AgentPoolsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + AgentPoolsDeleteResponse + > + >; /** * Delete the provided Kubernetes cluster agent pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -106,8 +112,8 @@ export interface AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsDeleteOptionalParams - ): Promise; + options?: AgentPoolsDeleteOptionalParams, + ): Promise; /** * Patch the properties of the provided Kubernetes cluster agent pool, or update the tags associated * with the Kubernetes cluster agent pool. Properties and tag updates can be done independently. @@ -120,7 +126,7 @@ export interface AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsUpdateOptionalParams + options?: AgentPoolsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -139,6 +145,6 @@ export interface AgentPools { resourceGroupName: string, kubernetesClusterName: string, agentPoolName: string, - options?: AgentPoolsUpdateOptionalParams + options?: AgentPoolsUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachineKeySets.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachineKeySets.ts index 99003c5620b3..5e70543f4dc8 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachineKeySets.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachineKeySets.ts @@ -16,8 +16,9 @@ import { BareMetalMachineKeySetsCreateOrUpdateOptionalParams, BareMetalMachineKeySetsCreateOrUpdateResponse, BareMetalMachineKeySetsDeleteOptionalParams, + BareMetalMachineKeySetsDeleteResponse, BareMetalMachineKeySetsUpdateOptionalParams, - BareMetalMachineKeySetsUpdateResponse + BareMetalMachineKeySetsUpdateResponse, } from "../models"; /// @@ -32,7 +33,7 @@ export interface BareMetalMachineKeySets { listByCluster( resourceGroupName: string, clusterName: string, - options?: BareMetalMachineKeySetsListByClusterOptionalParams + options?: BareMetalMachineKeySetsListByClusterOptionalParams, ): PagedAsyncIterableIterator; /** * Get bare metal machine key set of the provided cluster. @@ -45,7 +46,7 @@ export interface BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsGetOptionalParams + options?: BareMetalMachineKeySetsGetOptionalParams, ): Promise; /** * Create a new bare metal machine key set or update the existing one for the provided cluster. @@ -60,7 +61,7 @@ export interface BareMetalMachineKeySets { clusterName: string, bareMetalMachineKeySetName: string, bareMetalMachineKeySetParameters: BareMetalMachineKeySet, - options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams + options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface BareMetalMachineKeySets { clusterName: string, bareMetalMachineKeySetName: string, bareMetalMachineKeySetParameters: BareMetalMachineKeySet, - options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams + options?: BareMetalMachineKeySetsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the bare metal machine key set of the provided cluster. @@ -93,8 +94,13 @@ export interface BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsDeleteOptionalParams - ): Promise, void>>; + options?: BareMetalMachineKeySetsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + BareMetalMachineKeySetsDeleteResponse + > + >; /** * Delete the bare metal machine key set of the provided cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -106,8 +112,8 @@ export interface BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsDeleteOptionalParams - ): Promise; + options?: BareMetalMachineKeySetsDeleteOptionalParams, + ): Promise; /** * Patch properties of bare metal machine key set for the provided cluster, or update the tags * associated with it. Properties and tag updates can be done independently. @@ -120,7 +126,7 @@ export interface BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsUpdateOptionalParams + options?: BareMetalMachineKeySetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -139,6 +145,6 @@ export interface BareMetalMachineKeySets { resourceGroupName: string, clusterName: string, bareMetalMachineKeySetName: string, - options?: BareMetalMachineKeySetsUpdateOptionalParams + options?: BareMetalMachineKeySetsUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachines.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachines.ts index 22e437e09efc..cda173fb6a56 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachines.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bareMetalMachines.ts @@ -17,6 +17,7 @@ import { BareMetalMachinesCreateOrUpdateOptionalParams, BareMetalMachinesCreateOrUpdateResponse, BareMetalMachinesDeleteOptionalParams, + BareMetalMachinesDeleteResponse, BareMetalMachinesUpdateOptionalParams, BareMetalMachinesUpdateResponse, BareMetalMachinesCordonOptionalParams, @@ -41,7 +42,7 @@ import { BareMetalMachinesStartOptionalParams, BareMetalMachinesStartResponse, BareMetalMachinesUncordonOptionalParams, - BareMetalMachinesUncordonResponse + BareMetalMachinesUncordonResponse, } from "../models"; /// @@ -52,7 +53,7 @@ export interface BareMetalMachines { * @param options The options parameters. */ listBySubscription( - options?: BareMetalMachinesListBySubscriptionOptionalParams + options?: BareMetalMachinesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of bare metal machines in the provided resource group. @@ -61,7 +62,7 @@ export interface BareMetalMachines { */ listByResourceGroup( resourceGroupName: string, - options?: BareMetalMachinesListByResourceGroupOptionalParams + options?: BareMetalMachinesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided bare metal machine. @@ -72,7 +73,7 @@ export interface BareMetalMachines { get( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesGetOptionalParams + options?: BareMetalMachinesGetOptionalParams, ): Promise; /** * Create a new bare metal machine or update the properties of the existing one. @@ -87,7 +88,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineParameters: BareMetalMachine, - options?: BareMetalMachinesCreateOrUpdateOptionalParams + options?: BareMetalMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -107,7 +108,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineParameters: BareMetalMachine, - options?: BareMetalMachinesCreateOrUpdateOptionalParams + options?: BareMetalMachinesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided bare metal machine. @@ -120,8 +121,13 @@ export interface BareMetalMachines { beginDelete( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesDeleteOptionalParams - ): Promise, void>>; + options?: BareMetalMachinesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + BareMetalMachinesDeleteResponse + > + >; /** * Delete the provided bare metal machine. * All customer initiated requests will be rejected as the life cycle of this resource is managed by @@ -133,8 +139,8 @@ export interface BareMetalMachines { beginDeleteAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesDeleteOptionalParams - ): Promise; + options?: BareMetalMachinesDeleteOptionalParams, + ): Promise; /** * Patch properties of the provided bare metal machine, or update tags associated with the bare metal * machine. Properties and tag updates can be done independently. @@ -145,7 +151,7 @@ export interface BareMetalMachines { beginUpdate( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUpdateOptionalParams + options?: BareMetalMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -162,7 +168,7 @@ export interface BareMetalMachines { beginUpdateAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUpdateOptionalParams + options?: BareMetalMachinesUpdateOptionalParams, ): Promise; /** * Cordon the provided bare metal machine's Kubernetes node. @@ -173,7 +179,7 @@ export interface BareMetalMachines { beginCordon( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesCordonOptionalParams + options?: BareMetalMachinesCordonOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -189,7 +195,7 @@ export interface BareMetalMachines { beginCordonAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesCordonOptionalParams + options?: BareMetalMachinesCordonOptionalParams, ): Promise; /** * Power off the provided bare metal machine. @@ -200,7 +206,7 @@ export interface BareMetalMachines { beginPowerOff( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesPowerOffOptionalParams + options?: BareMetalMachinesPowerOffOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -216,7 +222,7 @@ export interface BareMetalMachines { beginPowerOffAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesPowerOffOptionalParams + options?: BareMetalMachinesPowerOffOptionalParams, ): Promise; /** * Reimage the provided bare metal machine. @@ -227,7 +233,7 @@ export interface BareMetalMachines { beginReimage( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReimageOptionalParams + options?: BareMetalMachinesReimageOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -243,7 +249,7 @@ export interface BareMetalMachines { beginReimageAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReimageOptionalParams + options?: BareMetalMachinesReimageOptionalParams, ): Promise; /** * Replace the provided bare metal machine. @@ -254,7 +260,7 @@ export interface BareMetalMachines { beginReplace( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReplaceOptionalParams + options?: BareMetalMachinesReplaceOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -270,7 +276,7 @@ export interface BareMetalMachines { beginReplaceAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesReplaceOptionalParams + options?: BareMetalMachinesReplaceOptionalParams, ): Promise; /** * Restart the provided bare metal machine. @@ -281,7 +287,7 @@ export interface BareMetalMachines { beginRestart( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesRestartOptionalParams + options?: BareMetalMachinesRestartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -297,7 +303,7 @@ export interface BareMetalMachines { beginRestartAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesRestartOptionalParams + options?: BareMetalMachinesRestartOptionalParams, ): Promise; /** * Run the command or the script on the provided bare metal machine. The URL to storage account with @@ -312,7 +318,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters, - options?: BareMetalMachinesRunCommandOptionalParams + options?: BareMetalMachinesRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -332,7 +338,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunCommandParameters: BareMetalMachineRunCommandParameters, - options?: BareMetalMachinesRunCommandOptionalParams + options?: BareMetalMachinesRunCommandOptionalParams, ): Promise; /** * Run one or more data extractions on the provided bare metal machine. The URL to storage account with @@ -347,7 +353,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters, - options?: BareMetalMachinesRunDataExtractsOptionalParams + options?: BareMetalMachinesRunDataExtractsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -367,7 +373,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunDataExtractsParameters: BareMetalMachineRunDataExtractsParameters, - options?: BareMetalMachinesRunDataExtractsOptionalParams + options?: BareMetalMachinesRunDataExtractsOptionalParams, ): Promise; /** * Run one or more read-only commands on the provided bare metal machine. The URL to storage account @@ -382,7 +388,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters, - options?: BareMetalMachinesRunReadCommandsOptionalParams + options?: BareMetalMachinesRunReadCommandsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -402,7 +408,7 @@ export interface BareMetalMachines { resourceGroupName: string, bareMetalMachineName: string, bareMetalMachineRunReadCommandsParameters: BareMetalMachineRunReadCommandsParameters, - options?: BareMetalMachinesRunReadCommandsOptionalParams + options?: BareMetalMachinesRunReadCommandsOptionalParams, ): Promise; /** * Start the provided bare metal machine. @@ -413,7 +419,7 @@ export interface BareMetalMachines { beginStart( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesStartOptionalParams + options?: BareMetalMachinesStartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -429,7 +435,7 @@ export interface BareMetalMachines { beginStartAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesStartOptionalParams + options?: BareMetalMachinesStartOptionalParams, ): Promise; /** * Uncordon the provided bare metal machine's Kubernetes node. @@ -440,7 +446,7 @@ export interface BareMetalMachines { beginUncordon( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUncordonOptionalParams + options?: BareMetalMachinesUncordonOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -456,6 +462,6 @@ export interface BareMetalMachines { beginUncordonAndWait( resourceGroupName: string, bareMetalMachineName: string, - options?: BareMetalMachinesUncordonOptionalParams + options?: BareMetalMachinesUncordonOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bmcKeySets.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bmcKeySets.ts index 24efd9347d29..612ebe2d3742 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bmcKeySets.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/bmcKeySets.ts @@ -16,8 +16,9 @@ import { BmcKeySetsCreateOrUpdateOptionalParams, BmcKeySetsCreateOrUpdateResponse, BmcKeySetsDeleteOptionalParams, + BmcKeySetsDeleteResponse, BmcKeySetsUpdateOptionalParams, - BmcKeySetsUpdateResponse + BmcKeySetsUpdateResponse, } from "../models"; /// @@ -32,7 +33,7 @@ export interface BmcKeySets { listByCluster( resourceGroupName: string, clusterName: string, - options?: BmcKeySetsListByClusterOptionalParams + options?: BmcKeySetsListByClusterOptionalParams, ): PagedAsyncIterableIterator; /** * Get baseboard management controller key set of the provided cluster. @@ -45,7 +46,7 @@ export interface BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsGetOptionalParams + options?: BmcKeySetsGetOptionalParams, ): Promise; /** * Create a new baseboard management controller key set or update the existing one for the provided @@ -61,7 +62,7 @@ export interface BmcKeySets { clusterName: string, bmcKeySetName: string, bmcKeySetParameters: BmcKeySet, - options?: BmcKeySetsCreateOrUpdateOptionalParams + options?: BmcKeySetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -82,7 +83,7 @@ export interface BmcKeySets { clusterName: string, bmcKeySetName: string, bmcKeySetParameters: BmcKeySet, - options?: BmcKeySetsCreateOrUpdateOptionalParams + options?: BmcKeySetsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the baseboard management controller key set of the provided cluster. @@ -95,8 +96,13 @@ export interface BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsDeleteOptionalParams - ): Promise, void>>; + options?: BmcKeySetsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + BmcKeySetsDeleteResponse + > + >; /** * Delete the baseboard management controller key set of the provided cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -108,8 +114,8 @@ export interface BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsDeleteOptionalParams - ): Promise; + options?: BmcKeySetsDeleteOptionalParams, + ): Promise; /** * Patch properties of baseboard management controller key set for the provided cluster, or update the * tags associated with it. Properties and tag updates can be done independently. @@ -122,7 +128,7 @@ export interface BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsUpdateOptionalParams + options?: BmcKeySetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -141,6 +147,6 @@ export interface BmcKeySets { resourceGroupName: string, clusterName: string, bmcKeySetName: string, - options?: BmcKeySetsUpdateOptionalParams + options?: BmcKeySetsUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/cloudServicesNetworks.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/cloudServicesNetworks.ts index 1a0d1367c252..bf6313765956 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/cloudServicesNetworks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/cloudServicesNetworks.ts @@ -17,8 +17,9 @@ import { CloudServicesNetworksCreateOrUpdateOptionalParams, CloudServicesNetworksCreateOrUpdateResponse, CloudServicesNetworksDeleteOptionalParams, + CloudServicesNetworksDeleteResponse, CloudServicesNetworksUpdateOptionalParams, - CloudServicesNetworksUpdateResponse + CloudServicesNetworksUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface CloudServicesNetworks { * @param options The options parameters. */ listBySubscription( - options?: CloudServicesNetworksListBySubscriptionOptionalParams + options?: CloudServicesNetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of cloud services networks in the provided resource group. @@ -38,7 +39,7 @@ export interface CloudServicesNetworks { */ listByResourceGroup( resourceGroupName: string, - options?: CloudServicesNetworksListByResourceGroupOptionalParams + options?: CloudServicesNetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided cloud services network. @@ -49,7 +50,7 @@ export interface CloudServicesNetworks { get( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksGetOptionalParams + options?: CloudServicesNetworksGetOptionalParams, ): Promise; /** * Create a new cloud services network or update the properties of the existing cloud services network. @@ -62,7 +63,7 @@ export interface CloudServicesNetworks { resourceGroupName: string, cloudServicesNetworkName: string, cloudServicesNetworkParameters: CloudServicesNetwork, - options?: CloudServicesNetworksCreateOrUpdateOptionalParams + options?: CloudServicesNetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface CloudServicesNetworks { resourceGroupName: string, cloudServicesNetworkName: string, cloudServicesNetworkParameters: CloudServicesNetwork, - options?: CloudServicesNetworksCreateOrUpdateOptionalParams + options?: CloudServicesNetworksCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided cloud services network. @@ -91,8 +92,13 @@ export interface CloudServicesNetworks { beginDelete( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksDeleteOptionalParams - ): Promise, void>>; + options?: CloudServicesNetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + CloudServicesNetworksDeleteResponse + > + >; /** * Delete the provided cloud services network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +108,8 @@ export interface CloudServicesNetworks { beginDeleteAndWait( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksDeleteOptionalParams - ): Promise; + options?: CloudServicesNetworksDeleteOptionalParams, + ): Promise; /** * Update properties of the provided cloud services network, or update the tags associated with it. * Properties and tag updates can be done independently. @@ -114,7 +120,7 @@ export interface CloudServicesNetworks { beginUpdate( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksUpdateOptionalParams + options?: CloudServicesNetworksUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -131,6 +137,6 @@ export interface CloudServicesNetworks { beginUpdateAndWait( resourceGroupName: string, cloudServicesNetworkName: string, - options?: CloudServicesNetworksUpdateOptionalParams + options?: CloudServicesNetworksUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusterManagers.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusterManagers.ts index 2f28cd2b5848..4ad05e825003 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusterManagers.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusterManagers.ts @@ -17,8 +17,9 @@ import { ClusterManagersCreateOrUpdateOptionalParams, ClusterManagersCreateOrUpdateResponse, ClusterManagersDeleteOptionalParams, + ClusterManagersDeleteResponse, ClusterManagersUpdateOptionalParams, - ClusterManagersUpdateResponse + ClusterManagersUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface ClusterManagers { * @param options The options parameters. */ listBySubscription( - options?: ClusterManagersListBySubscriptionOptionalParams + options?: ClusterManagersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of cluster managers in the provided resource group. @@ -38,7 +39,7 @@ export interface ClusterManagers { */ listByResourceGroup( resourceGroupName: string, - options?: ClusterManagersListByResourceGroupOptionalParams + options?: ClusterManagersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get the properties of the provided cluster manager. @@ -49,7 +50,7 @@ export interface ClusterManagers { get( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersGetOptionalParams + options?: ClusterManagersGetOptionalParams, ): Promise; /** * Create a new cluster manager or update properties of the cluster manager if it exists. @@ -62,7 +63,7 @@ export interface ClusterManagers { resourceGroupName: string, clusterManagerName: string, clusterManagerParameters: ClusterManager, - options?: ClusterManagersCreateOrUpdateOptionalParams + options?: ClusterManagersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface ClusterManagers { resourceGroupName: string, clusterManagerName: string, clusterManagerParameters: ClusterManager, - options?: ClusterManagersCreateOrUpdateOptionalParams + options?: ClusterManagersCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided cluster manager. @@ -91,8 +92,13 @@ export interface ClusterManagers { beginDelete( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersDeleteOptionalParams - ): Promise, void>>; + options?: ClusterManagersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClusterManagersDeleteResponse + > + >; /** * Delete the provided cluster manager. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +108,8 @@ export interface ClusterManagers { beginDeleteAndWait( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersDeleteOptionalParams - ): Promise; + options?: ClusterManagersDeleteOptionalParams, + ): Promise; /** * Patch properties of the provided cluster manager, or update the tags assigned to the cluster * manager. Properties and tag updates can be done independently. @@ -114,6 +120,6 @@ export interface ClusterManagers { update( resourceGroupName: string, clusterManagerName: string, - options?: ClusterManagersUpdateOptionalParams + options?: ClusterManagersUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusters.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusters.ts index 40222010c20d..26257e5406ef 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusters.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/clusters.ts @@ -17,13 +17,19 @@ import { ClustersCreateOrUpdateOptionalParams, ClustersCreateOrUpdateResponse, ClustersDeleteOptionalParams, + ClustersDeleteResponse, ClustersUpdateOptionalParams, ClustersUpdateResponse, + ClusterContinueUpdateVersionParameters, + ClustersContinueUpdateVersionOptionalParams, + ClustersContinueUpdateVersionResponse, ClustersDeployOptionalParams, ClustersDeployResponse, + ClustersScanRuntimeOptionalParams, + ClustersScanRuntimeResponse, ClusterUpdateVersionParameters, ClustersUpdateVersionOptionalParams, - ClustersUpdateVersionResponse + ClustersUpdateVersionResponse, } from "../models"; /// @@ -34,7 +40,7 @@ export interface Clusters { * @param options The options parameters. */ listBySubscription( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of clusters in the provided resource group. @@ -43,7 +49,7 @@ export interface Clusters { */ listByResourceGroup( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided cluster. @@ -54,7 +60,7 @@ export interface Clusters { get( resourceGroupName: string, clusterName: string, - options?: ClustersGetOptionalParams + options?: ClustersGetOptionalParams, ): Promise; /** * Create a new cluster or update the properties of the cluster if it exists. @@ -67,7 +73,7 @@ export interface Clusters { resourceGroupName: string, clusterName: string, clusterParameters: Cluster, - options?: ClustersCreateOrUpdateOptionalParams + options?: ClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -85,7 +91,7 @@ export interface Clusters { resourceGroupName: string, clusterName: string, clusterParameters: Cluster, - options?: ClustersCreateOrUpdateOptionalParams + options?: ClustersCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided cluster. @@ -96,8 +102,13 @@ export interface Clusters { beginDelete( resourceGroupName: string, clusterName: string, - options?: ClustersDeleteOptionalParams - ): Promise, void>>; + options?: ClustersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClustersDeleteResponse + > + >; /** * Delete the provided cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -107,8 +118,8 @@ export interface Clusters { beginDeleteAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersDeleteOptionalParams - ): Promise; + options?: ClustersDeleteOptionalParams, + ): Promise; /** * Patch the properties of the provided cluster, or update the tags associated with the cluster. * Properties and tag updates can be done independently. @@ -119,7 +130,7 @@ export interface Clusters { beginUpdate( resourceGroupName: string, clusterName: string, - options?: ClustersUpdateOptionalParams + options?: ClustersUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -136,10 +147,43 @@ export interface Clusters { beginUpdateAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersUpdateOptionalParams + options?: ClustersUpdateOptionalParams, ): Promise; /** - * Deploy the cluster to the provided rack. + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused + * after completing a segment of the update. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param options The options parameters. + */ + beginContinueUpdateVersion( + resourceGroupName: string, + clusterName: string, + clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters, + options?: ClustersContinueUpdateVersionOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClustersContinueUpdateVersionResponse + > + >; + /** + * Trigger the continuation of an update for a cluster with a matching update strategy that has paused + * after completing a segment of the update. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param clusterContinueUpdateVersionParameters The request body. + * @param options The options parameters. + */ + beginContinueUpdateVersionAndWait( + resourceGroupName: string, + clusterName: string, + clusterContinueUpdateVersionParameters: ClusterContinueUpdateVersionParameters, + options?: ClustersContinueUpdateVersionOptionalParams, + ): Promise; + /** + * Deploy the cluster using the rack configuration provided during creation. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param options The options parameters. @@ -147,7 +191,7 @@ export interface Clusters { beginDeploy( resourceGroupName: string, clusterName: string, - options?: ClustersDeployOptionalParams + options?: ClustersDeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -155,7 +199,7 @@ export interface Clusters { > >; /** - * Deploy the cluster to the provided rack. + * Deploy the cluster using the rack configuration provided during creation. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the cluster. * @param options The options parameters. @@ -163,8 +207,37 @@ export interface Clusters { beginDeployAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersDeployOptionalParams + options?: ClustersDeployOptionalParams, ): Promise; + /** + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in + * accordance with the cluster configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param options The options parameters. + */ + beginScanRuntime( + resourceGroupName: string, + clusterName: string, + options?: ClustersScanRuntimeOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ClustersScanRuntimeResponse + > + >; + /** + * Triggers the execution of a runtime protection scan to detect and remediate detected issues, in + * accordance with the cluster configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the cluster. + * @param options The options parameters. + */ + beginScanRuntimeAndWait( + resourceGroupName: string, + clusterName: string, + options?: ClustersScanRuntimeOptionalParams, + ): Promise; /** * Update the version of the provided cluster to one of the available supported versions. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -176,7 +249,7 @@ export interface Clusters { resourceGroupName: string, clusterName: string, clusterUpdateVersionParameters: ClusterUpdateVersionParameters, - options?: ClustersUpdateVersionOptionalParams + options?: ClustersUpdateVersionOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -194,6 +267,6 @@ export interface Clusters { resourceGroupName: string, clusterName: string, clusterUpdateVersionParameters: ClusterUpdateVersionParameters, - options?: ClustersUpdateVersionOptionalParams + options?: ClustersUpdateVersionOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/consoles.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/consoles.ts index f61c81b9feaf..83083e8a895f 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/consoles.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/consoles.ts @@ -16,8 +16,9 @@ import { ConsolesCreateOrUpdateOptionalParams, ConsolesCreateOrUpdateResponse, ConsolesDeleteOptionalParams, + ConsolesDeleteResponse, ConsolesUpdateOptionalParams, - ConsolesUpdateResponse + ConsolesUpdateResponse, } from "../models"; /// @@ -32,7 +33,7 @@ export interface Consoles { listByVirtualMachine( resourceGroupName: string, virtualMachineName: string, - options?: ConsolesListByVirtualMachineOptionalParams + options?: ConsolesListByVirtualMachineOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided virtual machine console. @@ -45,7 +46,7 @@ export interface Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesGetOptionalParams + options?: ConsolesGetOptionalParams, ): Promise; /** * Create a new virtual machine console or update the properties of the existing virtual machine @@ -61,7 +62,7 @@ export interface Consoles { virtualMachineName: string, consoleName: string, consoleParameters: Console, - options?: ConsolesCreateOrUpdateOptionalParams + options?: ConsolesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -82,7 +83,7 @@ export interface Consoles { virtualMachineName: string, consoleName: string, consoleParameters: Console, - options?: ConsolesCreateOrUpdateOptionalParams + options?: ConsolesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided virtual machine console. @@ -95,8 +96,13 @@ export interface Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesDeleteOptionalParams - ): Promise, void>>; + options?: ConsolesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ConsolesDeleteResponse + > + >; /** * Delete the provided virtual machine console. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -108,8 +114,8 @@ export interface Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesDeleteOptionalParams - ): Promise; + options?: ConsolesDeleteOptionalParams, + ): Promise; /** * Patch the properties of the provided virtual machine console, or update the tags associated with the * virtual machine console. Properties and tag updates can be done independently. @@ -122,7 +128,7 @@ export interface Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesUpdateOptionalParams + options?: ConsolesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -141,6 +147,6 @@ export interface Consoles { resourceGroupName: string, virtualMachineName: string, consoleName: string, - options?: ConsolesUpdateOptionalParams + options?: ConsolesUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/index.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/index.ts index 1f2559ff80a7..6b259f0f5d4d 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/index.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/index.ts @@ -24,4 +24,5 @@ export * from "./bareMetalMachineKeySets"; export * from "./bmcKeySets"; export * from "./metricsConfigurations"; export * from "./agentPools"; +export * from "./kubernetesClusterFeatures"; export * from "./consoles"; diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusterFeatures.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusterFeatures.ts new file mode 100644 index 000000000000..51fe50610b02 --- /dev/null +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusterFeatures.ts @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + KubernetesClusterFeature, + KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + KubernetesClusterFeaturesGetOptionalParams, + KubernetesClusterFeaturesGetResponse, + KubernetesClusterFeaturesCreateOrUpdateOptionalParams, + KubernetesClusterFeaturesCreateOrUpdateResponse, + KubernetesClusterFeaturesDeleteOptionalParams, + KubernetesClusterFeaturesDeleteResponse, + KubernetesClusterFeaturesUpdateOptionalParams, + KubernetesClusterFeaturesUpdateResponse, +} from "../models"; + +/// +/** Interface representing a KubernetesClusterFeatures. */ +export interface KubernetesClusterFeatures { + /** + * Get a list of features for the provided Kubernetes cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param options The options parameters. + */ + listByKubernetesCluster( + resourceGroupName: string, + kubernetesClusterName: string, + options?: KubernetesClusterFeaturesListByKubernetesClusterOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get properties of the provided the Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesGetOptionalParams, + ): Promise; + /** + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it + * exists. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + kubernetesClusterFeatureParameters: KubernetesClusterFeature, + options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClusterFeaturesCreateOrUpdateResponse + > + >; + /** + * Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it + * exists. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param kubernetesClusterFeatureParameters The request body. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + kubernetesClusterFeatureParameters: KubernetesClusterFeature, + options?: KubernetesClusterFeaturesCreateOrUpdateOptionalParams, + ): Promise; + /** + * Delete the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClusterFeaturesDeleteResponse + > + >; + /** + * Delete the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesDeleteOptionalParams, + ): Promise; + /** + * Patch properties of the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClusterFeaturesUpdateResponse + > + >; + /** + * Patch properties of the provided Kubernetes cluster feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kubernetesClusterName The name of the Kubernetes cluster. + * @param featureName The name of the feature. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + kubernetesClusterName: string, + featureName: string, + options?: KubernetesClusterFeaturesUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusters.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusters.ts index d83790759d9a..e5d96a1c2c31 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusters.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/kubernetesClusters.ts @@ -17,11 +17,12 @@ import { KubernetesClustersCreateOrUpdateOptionalParams, KubernetesClustersCreateOrUpdateResponse, KubernetesClustersDeleteOptionalParams, + KubernetesClustersDeleteResponse, KubernetesClustersUpdateOptionalParams, KubernetesClustersUpdateResponse, KubernetesClusterRestartNodeParameters, KubernetesClustersRestartNodeOptionalParams, - KubernetesClustersRestartNodeResponse + KubernetesClustersRestartNodeResponse, } from "../models"; /// @@ -32,7 +33,7 @@ export interface KubernetesClusters { * @param options The options parameters. */ listBySubscription( - options?: KubernetesClustersListBySubscriptionOptionalParams + options?: KubernetesClustersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of Kubernetes clusters in the provided resource group. @@ -41,7 +42,7 @@ export interface KubernetesClusters { */ listByResourceGroup( resourceGroupName: string, - options?: KubernetesClustersListByResourceGroupOptionalParams + options?: KubernetesClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided the Kubernetes cluster. @@ -52,7 +53,7 @@ export interface KubernetesClusters { get( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersGetOptionalParams + options?: KubernetesClustersGetOptionalParams, ): Promise; /** * Create a new Kubernetes cluster or update the properties of the existing one. @@ -65,7 +66,7 @@ export interface KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterParameters: KubernetesCluster, - options?: KubernetesClustersCreateOrUpdateOptionalParams + options?: KubernetesClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -83,7 +84,7 @@ export interface KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterParameters: KubernetesCluster, - options?: KubernetesClustersCreateOrUpdateOptionalParams + options?: KubernetesClustersCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided Kubernetes cluster. @@ -94,8 +95,13 @@ export interface KubernetesClusters { beginDelete( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersDeleteOptionalParams - ): Promise, void>>; + options?: KubernetesClustersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + KubernetesClustersDeleteResponse + > + >; /** * Delete the provided Kubernetes cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -105,8 +111,8 @@ export interface KubernetesClusters { beginDeleteAndWait( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersDeleteOptionalParams - ): Promise; + options?: KubernetesClustersDeleteOptionalParams, + ): Promise; /** * Patch the properties of the provided Kubernetes cluster, or update the tags associated with the * Kubernetes cluster. Properties and tag updates can be done independently. @@ -117,7 +123,7 @@ export interface KubernetesClusters { beginUpdate( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersUpdateOptionalParams + options?: KubernetesClustersUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -134,7 +140,7 @@ export interface KubernetesClusters { beginUpdateAndWait( resourceGroupName: string, kubernetesClusterName: string, - options?: KubernetesClustersUpdateOptionalParams + options?: KubernetesClustersUpdateOptionalParams, ): Promise; /** * Restart a targeted node of a Kubernetes cluster. @@ -147,7 +153,7 @@ export interface KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters, - options?: KubernetesClustersRestartNodeOptionalParams + options?: KubernetesClustersRestartNodeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -165,6 +171,6 @@ export interface KubernetesClusters { resourceGroupName: string, kubernetesClusterName: string, kubernetesClusterRestartNodeParameters: KubernetesClusterRestartNodeParameters, - options?: KubernetesClustersRestartNodeOptionalParams + options?: KubernetesClustersRestartNodeOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l2Networks.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l2Networks.ts index 8ee0bd6ab229..dd52a7563c8f 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l2Networks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l2Networks.ts @@ -17,8 +17,9 @@ import { L2NetworksCreateOrUpdateOptionalParams, L2NetworksCreateOrUpdateResponse, L2NetworksDeleteOptionalParams, + L2NetworksDeleteResponse, L2NetworksUpdateOptionalParams, - L2NetworksUpdateResponse + L2NetworksUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface L2Networks { * @param options The options parameters. */ listBySubscription( - options?: L2NetworksListBySubscriptionOptionalParams + options?: L2NetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of layer 2 (L2) networks in the provided resource group. @@ -38,7 +39,7 @@ export interface L2Networks { */ listByResourceGroup( resourceGroupName: string, - options?: L2NetworksListByResourceGroupOptionalParams + options?: L2NetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided layer 2 (L2) network. @@ -49,7 +50,7 @@ export interface L2Networks { get( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksGetOptionalParams + options?: L2NetworksGetOptionalParams, ): Promise; /** * Create a new layer 2 (L2) network or update the properties of the existing network. @@ -62,7 +63,7 @@ export interface L2Networks { resourceGroupName: string, l2NetworkName: string, l2NetworkParameters: L2Network, - options?: L2NetworksCreateOrUpdateOptionalParams + options?: L2NetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface L2Networks { resourceGroupName: string, l2NetworkName: string, l2NetworkParameters: L2Network, - options?: L2NetworksCreateOrUpdateOptionalParams + options?: L2NetworksCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided layer 2 (L2) network. @@ -91,8 +92,13 @@ export interface L2Networks { beginDelete( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksDeleteOptionalParams - ): Promise, void>>; + options?: L2NetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + L2NetworksDeleteResponse + > + >; /** * Delete the provided layer 2 (L2) network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +108,8 @@ export interface L2Networks { beginDeleteAndWait( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksDeleteOptionalParams - ): Promise; + options?: L2NetworksDeleteOptionalParams, + ): Promise; /** * Update tags associated with the provided layer 2 (L2) network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -113,6 +119,6 @@ export interface L2Networks { update( resourceGroupName: string, l2NetworkName: string, - options?: L2NetworksUpdateOptionalParams + options?: L2NetworksUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l3Networks.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l3Networks.ts index 31b29a0508f3..ead4aa4792d6 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l3Networks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/l3Networks.ts @@ -17,8 +17,9 @@ import { L3NetworksCreateOrUpdateOptionalParams, L3NetworksCreateOrUpdateResponse, L3NetworksDeleteOptionalParams, + L3NetworksDeleteResponse, L3NetworksUpdateOptionalParams, - L3NetworksUpdateResponse + L3NetworksUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface L3Networks { * @param options The options parameters. */ listBySubscription( - options?: L3NetworksListBySubscriptionOptionalParams + options?: L3NetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of layer 3 (L3) networks in the provided resource group. @@ -38,7 +39,7 @@ export interface L3Networks { */ listByResourceGroup( resourceGroupName: string, - options?: L3NetworksListByResourceGroupOptionalParams + options?: L3NetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided layer 3 (L3) network. @@ -49,7 +50,7 @@ export interface L3Networks { get( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksGetOptionalParams + options?: L3NetworksGetOptionalParams, ): Promise; /** * Create a new layer 3 (L3) network or update the properties of the existing network. @@ -62,7 +63,7 @@ export interface L3Networks { resourceGroupName: string, l3NetworkName: string, l3NetworkParameters: L3Network, - options?: L3NetworksCreateOrUpdateOptionalParams + options?: L3NetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface L3Networks { resourceGroupName: string, l3NetworkName: string, l3NetworkParameters: L3Network, - options?: L3NetworksCreateOrUpdateOptionalParams + options?: L3NetworksCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided layer 3 (L3) network. @@ -91,8 +92,13 @@ export interface L3Networks { beginDelete( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksDeleteOptionalParams - ): Promise, void>>; + options?: L3NetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + L3NetworksDeleteResponse + > + >; /** * Delete the provided layer 3 (L3) network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +108,8 @@ export interface L3Networks { beginDeleteAndWait( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksDeleteOptionalParams - ): Promise; + options?: L3NetworksDeleteOptionalParams, + ): Promise; /** * Update tags associated with the provided layer 3 (L3) network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -113,6 +119,6 @@ export interface L3Networks { update( resourceGroupName: string, l3NetworkName: string, - options?: L3NetworksUpdateOptionalParams + options?: L3NetworksUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/metricsConfigurations.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/metricsConfigurations.ts index 06778b614bc5..f33e14ca520a 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/metricsConfigurations.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/metricsConfigurations.ts @@ -16,8 +16,9 @@ import { MetricsConfigurationsCreateOrUpdateOptionalParams, MetricsConfigurationsCreateOrUpdateResponse, MetricsConfigurationsDeleteOptionalParams, + MetricsConfigurationsDeleteResponse, MetricsConfigurationsUpdateOptionalParams, - MetricsConfigurationsUpdateResponse + MetricsConfigurationsUpdateResponse, } from "../models"; /// @@ -32,7 +33,7 @@ export interface MetricsConfigurations { listByCluster( resourceGroupName: string, clusterName: string, - options?: MetricsConfigurationsListByClusterOptionalParams + options?: MetricsConfigurationsListByClusterOptionalParams, ): PagedAsyncIterableIterator; /** * Get metrics configuration of the provided cluster. @@ -45,7 +46,7 @@ export interface MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsGetOptionalParams + options?: MetricsConfigurationsGetOptionalParams, ): Promise; /** * Create new or update the existing metrics configuration of the provided cluster. @@ -60,7 +61,7 @@ export interface MetricsConfigurations { clusterName: string, metricsConfigurationName: string, metricsConfigurationParameters: ClusterMetricsConfiguration, - options?: MetricsConfigurationsCreateOrUpdateOptionalParams + options?: MetricsConfigurationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface MetricsConfigurations { clusterName: string, metricsConfigurationName: string, metricsConfigurationParameters: ClusterMetricsConfiguration, - options?: MetricsConfigurationsCreateOrUpdateOptionalParams + options?: MetricsConfigurationsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the metrics configuration of the provided cluster. @@ -93,8 +94,13 @@ export interface MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsDeleteOptionalParams - ): Promise, void>>; + options?: MetricsConfigurationsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MetricsConfigurationsDeleteResponse + > + >; /** * Delete the metrics configuration of the provided cluster. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -106,8 +112,8 @@ export interface MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsDeleteOptionalParams - ): Promise; + options?: MetricsConfigurationsDeleteOptionalParams, + ): Promise; /** * Patch properties of metrics configuration for the provided cluster, or update the tags associated * with it. Properties and tag updates can be done independently. @@ -120,7 +126,7 @@ export interface MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsUpdateOptionalParams + options?: MetricsConfigurationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -139,6 +145,6 @@ export interface MetricsConfigurations { resourceGroupName: string, clusterName: string, metricsConfigurationName: string, - options?: MetricsConfigurationsUpdateOptionalParams + options?: MetricsConfigurationsUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/operations.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/operations.ts index 6ed0b0f5f5d0..9cfa7655f055 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/operations.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/operations.ts @@ -18,6 +18,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/rackSkus.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/rackSkus.ts index 2db34945ea54..0f4f88efc584 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/rackSkus.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/rackSkus.ts @@ -11,7 +11,7 @@ import { RackSku, RackSkusListBySubscriptionOptionalParams, RackSkusGetOptionalParams, - RackSkusGetResponse + RackSkusGetResponse, } from "../models"; /// @@ -22,7 +22,7 @@ export interface RackSkus { * @param options The options parameters. */ listBySubscription( - options?: RackSkusListBySubscriptionOptionalParams + options?: RackSkusListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get the properties of the provided rack SKU. @@ -31,6 +31,6 @@ export interface RackSkus { */ get( rackSkuName: string, - options?: RackSkusGetOptionalParams + options?: RackSkusGetOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/racks.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/racks.ts index a6fae86014e0..4f81531cb990 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/racks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/racks.ts @@ -17,8 +17,9 @@ import { RacksCreateOrUpdateOptionalParams, RacksCreateOrUpdateResponse, RacksDeleteOptionalParams, + RacksDeleteResponse, RacksUpdateOptionalParams, - RacksUpdateResponse + RacksUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface Racks { * @param options The options parameters. */ listBySubscription( - options?: RacksListBySubscriptionOptionalParams + options?: RacksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of racks in the provided resource group. @@ -38,7 +39,7 @@ export interface Racks { */ listByResourceGroup( resourceGroupName: string, - options?: RacksListByResourceGroupOptionalParams + options?: RacksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided rack. @@ -49,7 +50,7 @@ export interface Racks { get( resourceGroupName: string, rackName: string, - options?: RacksGetOptionalParams + options?: RacksGetOptionalParams, ): Promise; /** * Create a new rack or update properties of the existing one. @@ -64,7 +65,7 @@ export interface Racks { resourceGroupName: string, rackName: string, rackParameters: Rack, - options?: RacksCreateOrUpdateOptionalParams + options?: RacksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -84,7 +85,7 @@ export interface Racks { resourceGroupName: string, rackName: string, rackParameters: Rack, - options?: RacksCreateOrUpdateOptionalParams + options?: RacksCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided rack. @@ -97,8 +98,10 @@ export interface Racks { beginDelete( resourceGroupName: string, rackName: string, - options?: RacksDeleteOptionalParams - ): Promise, void>>; + options?: RacksDeleteOptionalParams, + ): Promise< + SimplePollerLike, RacksDeleteResponse> + >; /** * Delete the provided rack. * All customer initiated requests will be rejected as the life cycle of this resource is managed by @@ -110,8 +113,8 @@ export interface Racks { beginDeleteAndWait( resourceGroupName: string, rackName: string, - options?: RacksDeleteOptionalParams - ): Promise; + options?: RacksDeleteOptionalParams, + ): Promise; /** * Patch properties of the provided rack, or update the tags associated with the rack. Properties and * tag updates can be done independently. @@ -122,7 +125,7 @@ export interface Racks { beginUpdate( resourceGroupName: string, rackName: string, - options?: RacksUpdateOptionalParams + options?: RacksUpdateOptionalParams, ): Promise< SimplePollerLike, RacksUpdateResponse> >; @@ -136,6 +139,6 @@ export interface Racks { beginUpdateAndWait( resourceGroupName: string, rackName: string, - options?: RacksUpdateOptionalParams + options?: RacksUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/storageAppliances.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/storageAppliances.ts index 4d6c5e15810b..67b6da423632 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/storageAppliances.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/storageAppliances.ts @@ -17,12 +17,13 @@ import { StorageAppliancesCreateOrUpdateOptionalParams, StorageAppliancesCreateOrUpdateResponse, StorageAppliancesDeleteOptionalParams, + StorageAppliancesDeleteResponse, StorageAppliancesUpdateOptionalParams, StorageAppliancesUpdateResponse, StorageAppliancesDisableRemoteVendorManagementOptionalParams, StorageAppliancesDisableRemoteVendorManagementResponse, StorageAppliancesEnableRemoteVendorManagementOptionalParams, - StorageAppliancesEnableRemoteVendorManagementResponse + StorageAppliancesEnableRemoteVendorManagementResponse, } from "../models"; /// @@ -33,7 +34,7 @@ export interface StorageAppliances { * @param options The options parameters. */ listBySubscription( - options?: StorageAppliancesListBySubscriptionOptionalParams + options?: StorageAppliancesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of storage appliances in the provided resource group. @@ -42,7 +43,7 @@ export interface StorageAppliances { */ listByResourceGroup( resourceGroupName: string, - options?: StorageAppliancesListByResourceGroupOptionalParams + options?: StorageAppliancesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided storage appliance. @@ -53,7 +54,7 @@ export interface StorageAppliances { get( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesGetOptionalParams + options?: StorageAppliancesGetOptionalParams, ): Promise; /** * Create a new storage appliance or update the properties of the existing one. @@ -68,7 +69,7 @@ export interface StorageAppliances { resourceGroupName: string, storageApplianceName: string, storageApplianceParameters: StorageAppliance, - options?: StorageAppliancesCreateOrUpdateOptionalParams + options?: StorageAppliancesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -88,7 +89,7 @@ export interface StorageAppliances { resourceGroupName: string, storageApplianceName: string, storageApplianceParameters: StorageAppliance, - options?: StorageAppliancesCreateOrUpdateOptionalParams + options?: StorageAppliancesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided storage appliance. @@ -101,8 +102,13 @@ export interface StorageAppliances { beginDelete( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDeleteOptionalParams - ): Promise, void>>; + options?: StorageAppliancesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + StorageAppliancesDeleteResponse + > + >; /** * Delete the provided storage appliance. * All customer initiated requests will be rejected as the life cycle of this resource is managed by @@ -114,8 +120,8 @@ export interface StorageAppliances { beginDeleteAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDeleteOptionalParams - ): Promise; + options?: StorageAppliancesDeleteOptionalParams, + ): Promise; /** * Update properties of the provided storage appliance, or update tags associated with the storage * appliance Properties and tag updates can be done independently. @@ -126,7 +132,7 @@ export interface StorageAppliances { beginUpdate( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesUpdateOptionalParams + options?: StorageAppliancesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -143,7 +149,7 @@ export interface StorageAppliances { beginUpdateAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesUpdateOptionalParams + options?: StorageAppliancesUpdateOptionalParams, ): Promise; /** * Disable remote vendor management of the provided storage appliance. @@ -154,7 +160,7 @@ export interface StorageAppliances { beginDisableRemoteVendorManagement( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams + options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -170,7 +176,7 @@ export interface StorageAppliances { beginDisableRemoteVendorManagementAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams + options?: StorageAppliancesDisableRemoteVendorManagementOptionalParams, ): Promise; /** * Enable remote vendor management of the provided storage appliance. @@ -181,7 +187,7 @@ export interface StorageAppliances { beginEnableRemoteVendorManagement( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams + options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -197,6 +203,6 @@ export interface StorageAppliances { beginEnableRemoteVendorManagementAndWait( resourceGroupName: string, storageApplianceName: string, - options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams + options?: StorageAppliancesEnableRemoteVendorManagementOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/trunkedNetworks.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/trunkedNetworks.ts index 9c1e1567eaba..68ae98c39a04 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/trunkedNetworks.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/trunkedNetworks.ts @@ -17,8 +17,9 @@ import { TrunkedNetworksCreateOrUpdateOptionalParams, TrunkedNetworksCreateOrUpdateResponse, TrunkedNetworksDeleteOptionalParams, + TrunkedNetworksDeleteResponse, TrunkedNetworksUpdateOptionalParams, - TrunkedNetworksUpdateResponse + TrunkedNetworksUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface TrunkedNetworks { * @param options The options parameters. */ listBySubscription( - options?: TrunkedNetworksListBySubscriptionOptionalParams + options?: TrunkedNetworksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of trunked networks in the provided resource group. @@ -38,7 +39,7 @@ export interface TrunkedNetworks { */ listByResourceGroup( resourceGroupName: string, - options?: TrunkedNetworksListByResourceGroupOptionalParams + options?: TrunkedNetworksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided trunked network. @@ -49,7 +50,7 @@ export interface TrunkedNetworks { get( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksGetOptionalParams + options?: TrunkedNetworksGetOptionalParams, ): Promise; /** * Create a new trunked network or update the properties of the existing trunked network. @@ -62,7 +63,7 @@ export interface TrunkedNetworks { resourceGroupName: string, trunkedNetworkName: string, trunkedNetworkParameters: TrunkedNetwork, - options?: TrunkedNetworksCreateOrUpdateOptionalParams + options?: TrunkedNetworksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface TrunkedNetworks { resourceGroupName: string, trunkedNetworkName: string, trunkedNetworkParameters: TrunkedNetwork, - options?: TrunkedNetworksCreateOrUpdateOptionalParams + options?: TrunkedNetworksCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided trunked network. @@ -91,8 +92,13 @@ export interface TrunkedNetworks { beginDelete( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksDeleteOptionalParams - ): Promise, void>>; + options?: TrunkedNetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + TrunkedNetworksDeleteResponse + > + >; /** * Delete the provided trunked network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +108,8 @@ export interface TrunkedNetworks { beginDeleteAndWait( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksDeleteOptionalParams - ): Promise; + options?: TrunkedNetworksDeleteOptionalParams, + ): Promise; /** * Update tags associated with the provided trunked network. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -113,6 +119,6 @@ export interface TrunkedNetworks { update( resourceGroupName: string, trunkedNetworkName: string, - options?: TrunkedNetworksUpdateOptionalParams + options?: TrunkedNetworksUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/virtualMachines.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/virtualMachines.ts index 345ff25a5869..e94182644a78 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/virtualMachines.ts @@ -17,6 +17,7 @@ import { VirtualMachinesCreateOrUpdateOptionalParams, VirtualMachinesCreateOrUpdateResponse, VirtualMachinesDeleteOptionalParams, + VirtualMachinesDeleteResponse, VirtualMachinesUpdateOptionalParams, VirtualMachinesUpdateResponse, VirtualMachinesPowerOffOptionalParams, @@ -26,7 +27,7 @@ import { VirtualMachinesRestartOptionalParams, VirtualMachinesRestartResponse, VirtualMachinesStartOptionalParams, - VirtualMachinesStartResponse + VirtualMachinesStartResponse, } from "../models"; /// @@ -37,7 +38,7 @@ export interface VirtualMachines { * @param options The options parameters. */ listBySubscription( - options?: VirtualMachinesListBySubscriptionOptionalParams + options?: VirtualMachinesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of virtual machines in the provided resource group. @@ -46,7 +47,7 @@ export interface VirtualMachines { */ listByResourceGroup( resourceGroupName: string, - options?: VirtualMachinesListByResourceGroupOptionalParams + options?: VirtualMachinesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided virtual machine. @@ -57,7 +58,7 @@ export interface VirtualMachines { get( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesGetOptionalParams + options?: VirtualMachinesGetOptionalParams, ): Promise; /** * Create a new virtual machine or update the properties of the existing virtual machine. @@ -70,7 +71,7 @@ export interface VirtualMachines { resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -88,7 +89,7 @@ export interface VirtualMachines { resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided virtual machine. @@ -99,8 +100,13 @@ export interface VirtualMachines { beginDelete( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesDeleteOptionalParams - ): Promise, void>>; + options?: VirtualMachinesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachinesDeleteResponse + > + >; /** * Delete the provided virtual machine. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -110,8 +116,8 @@ export interface VirtualMachines { beginDeleteAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesDeleteOptionalParams - ): Promise; + options?: VirtualMachinesDeleteOptionalParams, + ): Promise; /** * Patch the properties of the provided virtual machine, or update the tags associated with the virtual * machine. Properties and tag updates can be done independently. @@ -122,7 +128,7 @@ export interface VirtualMachines { beginUpdate( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -139,7 +145,7 @@ export interface VirtualMachines { beginUpdateAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise; /** * Power off the provided virtual machine. @@ -150,7 +156,7 @@ export interface VirtualMachines { beginPowerOff( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -166,7 +172,7 @@ export interface VirtualMachines { beginPowerOffAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise; /** * Reimage the provided virtual machine. @@ -177,7 +183,7 @@ export interface VirtualMachines { beginReimage( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -193,7 +199,7 @@ export interface VirtualMachines { beginReimageAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise; /** * Restart the provided virtual machine. @@ -204,7 +210,7 @@ export interface VirtualMachines { beginRestart( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -220,7 +226,7 @@ export interface VirtualMachines { beginRestartAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise; /** * Start the provided virtual machine. @@ -231,7 +237,7 @@ export interface VirtualMachines { beginStart( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -247,6 +253,6 @@ export interface VirtualMachines { beginStartAndWait( resourceGroupName: string, virtualMachineName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/volumes.ts b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/volumes.ts index bd1bb999d76d..272c41c75933 100644 --- a/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/volumes.ts +++ b/sdk/networkcloud/arm-networkcloud/src/operationsInterfaces/volumes.ts @@ -17,8 +17,9 @@ import { VolumesCreateOrUpdateOptionalParams, VolumesCreateOrUpdateResponse, VolumesDeleteOptionalParams, + VolumesDeleteResponse, VolumesUpdateOptionalParams, - VolumesUpdateResponse + VolumesUpdateResponse, } from "../models"; /// @@ -29,7 +30,7 @@ export interface Volumes { * @param options The options parameters. */ listBySubscription( - options?: VolumesListBySubscriptionOptionalParams + options?: VolumesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get a list of volumes in the provided resource group. @@ -38,7 +39,7 @@ export interface Volumes { */ listByResourceGroup( resourceGroupName: string, - options?: VolumesListByResourceGroupOptionalParams + options?: VolumesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get properties of the provided volume. @@ -49,7 +50,7 @@ export interface Volumes { get( resourceGroupName: string, volumeName: string, - options?: VolumesGetOptionalParams + options?: VolumesGetOptionalParams, ): Promise; /** * Create a new volume or update the properties of the existing one. @@ -62,7 +63,7 @@ export interface Volumes { resourceGroupName: string, volumeName: string, volumeParameters: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -80,7 +81,7 @@ export interface Volumes { resourceGroupName: string, volumeName: string, volumeParameters: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise; /** * Delete the provided volume. @@ -91,8 +92,13 @@ export interface Volumes { beginDelete( resourceGroupName: string, volumeName: string, - options?: VolumesDeleteOptionalParams - ): Promise, void>>; + options?: VolumesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VolumesDeleteResponse + > + >; /** * Delete the provided volume. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -102,8 +108,8 @@ export interface Volumes { beginDeleteAndWait( resourceGroupName: string, volumeName: string, - options?: VolumesDeleteOptionalParams - ): Promise; + options?: VolumesDeleteOptionalParams, + ): Promise; /** * Update tags associated with the provided volume. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -113,6 +119,6 @@ export interface Volumes { update( resourceGroupName: string, volumeName: string, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise; } diff --git a/sdk/networkcloud/arm-networkcloud/src/pagingHelper.ts b/sdk/networkcloud/arm-networkcloud/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/networkcloud/arm-networkcloud/src/pagingHelper.ts +++ b/sdk/networkcloud/arm-networkcloud/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/networkcloud/arm-networkcloud/tsconfig.json b/sdk/networkcloud/arm-networkcloud/tsconfig.json index a7e7562065d5..c1f892855c72 100644 --- a/sdk/networkcloud/arm-networkcloud/tsconfig.json +++ b/sdk/networkcloud/arm-networkcloud/tsconfig.json @@ -23,8 +23,8 @@ } }, "include": [ - "./src/**/*.ts", - "./test/**/*.ts", + "src/**/*.ts", + "test/**/*.ts", "samples-dev/**/*.ts" ], "exclude": [ diff --git a/sdk/openai/ci.yml b/sdk/openai/ci.yml index 2c5614e994c1..c3bc120fa4be 100644 --- a/sdk/openai/ci.yml +++ b/sdk/openai/ci.yml @@ -1,5 +1,5 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - + trigger: branches: include: @@ -27,3 +27,7 @@ extends: Artifacts: - name: azure-openai safeName: azureopenai + # Disable publishing to learn.microsoft.com until support is added + # to type2docfx tooling for this kind of package layout + # https://github.com/Azure/azure-sdk-for-js/issues/31787 + skipPublishDocMs: true diff --git a/sdk/openai/openai/CHANGELOG.md b/sdk/openai/openai/CHANGELOG.md index d4743fb88548..77eaa6040caa 100644 --- a/sdk/openai/openai/CHANGELOG.md +++ b/sdk/openai/openai/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 2.0.0-beta.4 (Unreleased) +## 2.1.0-beta.1 (Unreleased) ### Features Added @@ -10,6 +10,19 @@ ### Other Changes +## 2.0.0 (2024-11-18) + +This release marks the first stable library version for `@azure/openai` and it exposes Azure-exclusive features supported in the latest Azure OpenAI Service stable `api-version` label of `2024-10-21`. + +The following features are supported in this release: + +- Azure OpenAI On Your Data which enables you to run advanced AI models, without needing to train or fine-tune models, on your own enterprise data located in an Azure Search index or in an vector store in Azure Cosmos DB. +- Azure OpenAI content filtering which detects and prevents the output of harmful content. + +### Breaking Changes + +- Models related to features still in preview have been removed. + ## 2.0.0-beta.3 (2024-11-05) This release adds types for Azure features supported in Azure OpenAI Service API version 2024-08-01-preview. diff --git a/sdk/openai/openai/MIGRATION.md b/sdk/openai/openai/MIGRATION.md index ca649e3b5abd..8980b1f7a0c5 100644 --- a/sdk/openai/openai/MIGRATION.md +++ b/sdk/openai/openai/MIGRATION.md @@ -69,7 +69,7 @@ Migrated code: ```typescript import { AzureOpenAI } from "openai"; const deployment = "Your Azure OpenAI deployment"; -const apiVersion = "2024-08-01-preview"; +const apiVersion = "2024-10-21"; const options = { azureADTokenProvider, deployment, apiVersion } const client = new AzureOpenAI(options); ``` @@ -548,4 +548,4 @@ The following table explores several type names from `@azure/openai` and shows t ## Azure types -`AzureOpenAI` connects to the Azure OpenAI service and can call all the operations available in the service. However, the types of the requests and responses are inherited from the `OpenAI` and are not yet updated to reflect the additional features supported exclusively by the Azure OpenAI service. TypeScript users will need to import `"@azure/openai/types"` from `@azure/openai@2.0.0-beta.1` which will merge Azure-specific definitions into existing types. Examples in [the Migration examples](#migration-examples) section show how to do this. +`AzureOpenAI` connects to the Azure OpenAI service and can call all the operations available in the service. However, the types of the requests and responses are inherited from the `OpenAI` and are not yet updated to reflect the additional features supported exclusively by the Azure OpenAI service. TypeScript users will need to import `"@azure/openai/types"` from `@azure/openai@latest` which will merge Azure-specific definitions into existing types. Examples in [the Migration examples](#migration-examples) section show how to do this. diff --git a/sdk/openai/openai/README.md b/sdk/openai/openai/README.md index 634082839cbe..f4ad85580401 100644 --- a/sdk/openai/openai/README.md +++ b/sdk/openai/openai/README.md @@ -46,7 +46,7 @@ There are several ways to authenticate with the Azure OpenAI service and the rec 2. Create a token provider by calling the `getBearerTokenProvider` with the desired credential type. For example, [DefaultAzureCredential][azure_identity_dac]: - ```js + ```ts import { DefaultAzureCredential, getBearerTokenProvider } from "@azure/identity"; const credential = new DefaultAzureCredential(); @@ -56,11 +56,11 @@ There are several ways to authenticate with the Azure OpenAI service and the rec 3. Create the client by passing in the token provider: - ```js + ```ts import { AzureOpenAI } from "openai"; const deployment = "Your deployment name"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); ``` @@ -126,7 +126,7 @@ export async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "gpt-4-1106-preview"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const events = await client.chat.completions.create({ stream: true, @@ -182,7 +182,7 @@ async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "gpt-35-turbo"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const events = await client.chat.completions.create({ messages: [ diff --git a/sdk/openai/openai/api-extractor.json b/sdk/openai/openai/api-extractor.json index cbf75608dfdc..f978f622f751 100644 --- a/sdk/openai/openai/api-extractor.json +++ b/sdk/openai/openai/api-extractor.json @@ -9,9 +9,7 @@ "reportFolder": "./review" }, "dtsRollup": { - "enabled": true, - "untrimmedFilePath": "", - "publicTrimmedFilePath": "dist/openai.d.ts" + "enabled": false }, "messages": { "tsdocMessageReporting": { diff --git a/sdk/openai/openai/eslint.config.mjs b/sdk/openai/openai/eslint.config.mjs index 79f0d75d9796..ac709bfe034d 100644 --- a/sdk/openai/openai/eslint.config.mjs +++ b/sdk/openai/openai/eslint.config.mjs @@ -3,13 +3,19 @@ import azsdkEslint from "@azure/eslint-plugin-azure-sdk"; export default [ ...azsdkEslint.configs.recommended, { - rules: { - "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", - "@azure/azure-sdk/ts-package-json-module": "off", - "@azure/azure-sdk/ts-package-json-main-is-cjs": "off", - "@azure/azure-sdk/ts-package-json-types": "off", - "@azure/azure-sdk/ts-package-json-files-required": "off", - "no-restricted-imports": "warn", + files: ["**/*.ts", "**/*.cts", "**/*.mts"], + languageOptions: { + parserOptions: { + project: ["./tsconfig.src.json", "./tsconfig.tests.json"], + }, + }, + }, + { + files: ["*.md/*.ts"], + languageOptions: { + parserOptions: { + project: null, + }, }, }, ]; diff --git a/sdk/openai/openai/package.json b/sdk/openai/openai/package.json index f682166d413d..007dd161b373 100644 --- a/sdk/openai/openai/package.json +++ b/sdk/openai/openai/package.json @@ -1,6 +1,6 @@ { "name": "@azure/openai", - "version": "2.0.0-beta.4", + "version": "2.1.0-beta.1", "description": "A companion library to openai for Azure OpenAI.", "sdk-type": "client", "main": "./dist/commonjs/index.js", @@ -43,6 +43,7 @@ "LICENSE" ], "tshy": { + "project": "./tsconfig.src.json", "exports": { "./package.json": "./package.json", ".": "./src/index.ts", @@ -69,8 +70,8 @@ "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --no-test-proxy --browser", "integration-test:node": "dev-tool run test:vitest --no-test-proxy", - "lint": "eslint README.md package.json api-extractor.json src", - "lint:fix": "eslint README.md package.json api-extractor.json src --fix --fix-type [problem,suggestion]", + "lint": "eslint README.md package.json api-extractor.json src test", + "lint:fix": "eslint README.md package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run build-test && npm run unit-test:browser && npm run integration-test", "test:browser": "npm run clean && npm run build:test && npm run integration-test:browser", diff --git a/sdk/openai/openai/review/openai-types.api.md b/sdk/openai/openai/review/openai-types.api.md index 97d4c125ba63..bbdd64f0639a 100644 --- a/sdk/openai/openai/review/openai-types.api.md +++ b/sdk/openai/openai/review/openai-types.api.md @@ -15,23 +15,13 @@ import type { CompletionCreateParamsStreaming } from 'openai/resources/index'; import type { ErrorModel } from '@azure-rest/core-client'; // @public -export type AzureChatExtensionConfiguration = AzureChatExtensionConfigurationParent | AzureSearchChatExtensionConfiguration | AzureCosmosDBChatExtensionConfiguration | ElasticsearchChatExtensionConfiguration | PineconeChatExtensionConfiguration | MongoDBChatExtensionConfiguration; +export type AzureChatExtensionConfiguration = AzureChatExtensionConfigurationParent | AzureSearchChatExtensionConfiguration | AzureCosmosDBChatExtensionConfiguration; // @public export interface AzureChatExtensionConfigurationParent { type: string; } -// @public -export interface AzureChatExtensionDataSourceResponseCitation { - chunk_id?: string; - content: string; - filepath?: string; - rerank_score?: number; - title?: string; - url?: string; -} - // @public export interface AzureChatExtensionDataSourceResponseCitationOutput { chunk_id?: string; @@ -41,20 +31,8 @@ export interface AzureChatExtensionDataSourceResponseCitationOutput { url?: string; } -// @public -export interface AzureChatExtensionRetrievedDocument extends AzureChatExtensionDataSourceResponseCitation { - data_source_index: number; - filter_reason?: AzureChatExtensionRetrieveDocumentFilterReason; - original_search_score?: number; - search_queries: string[]; -} - -// @public -export type AzureChatExtensionRetrieveDocumentFilterReason = "score" | "rerank"; - // @public export interface AzureChatExtensionsMessageContextOutput { - all_retrieved_documents?: Array; citations?: Array; intent?: string; } @@ -67,17 +45,13 @@ export interface AzureCosmosDBChatExtensionConfiguration extends AzureChatExtens // @public export interface AzureCosmosDBChatExtensionParameters { - allow_partial_result?: boolean; - authentication?: OnYourDataAuthenticationOptions; + authentication: OnYourDataAuthenticationOptions; container_name: string; database_name: string; embedding_dependency: OnYourDataVectorizationSource; fields_mapping: AzureCosmosDBFieldMappingOptions; in_scope?: boolean; - include_contexts?: OnYourDataContextProperty[]; index_name: string; - max_search_queries?: number; - role_information?: string; strictness?: number; top_n_documents?: number; } @@ -100,18 +74,14 @@ export interface AzureSearchChatExtensionConfiguration extends AzureChatExtensio // @public export interface AzureSearchChatExtensionParameters { - allow_partial_result?: boolean; - authentication?: OnYourDataAuthenticationOptions; + authentication: OnYourDataAuthenticationOptions; embedding_dependency?: OnYourDataVectorizationSource; endpoint: string; fields_mapping?: AzureSearchIndexFieldMappingOptions; filter?: string; in_scope?: boolean; - include_contexts?: OnYourDataContextProperty[]; index_name: string; - max_search_queries?: number; query_type?: string; - role_information?: string; semantic_configuration?: string; strictness?: number; top_n_documents?: number; @@ -122,7 +92,6 @@ export interface AzureSearchIndexFieldMappingOptions { content_fields?: string[]; content_fields_separator?: string; filepath_field?: string; - image_vector_fields?: string[]; title_field?: string; url_field?: string; vector_fields?: string[]; @@ -144,12 +113,6 @@ export { CompletionCreateParamsNonStreaming } export { CompletionCreateParamsStreaming } -// @public -export interface ContentFilterBlocklistIdResultOutput { - filtered: boolean; - id: string; -} - // @public export interface ContentFilterCitedDetectionResultOutput { detected: boolean; @@ -158,12 +121,6 @@ export interface ContentFilterCitedDetectionResultOutput { URL?: string; } -// @public -export interface ContentFilterDetailedResults { - details: ContentFilterBlocklistIdResultOutput[]; - filtered: boolean; -} - // @public export interface ContentFilterDetectionResultOutput { detected: boolean; @@ -172,10 +129,8 @@ export interface ContentFilterDetectionResultOutput { // @public export interface ContentFilterResultDetailsForPromptOutput { - custom_blocklists?: ContentFilterDetailedResults; error?: ErrorModel; hate?: ContentFilterResultOutput; - indirect_attack?: ContentFilterDetectionResultOutput; jailbreak?: ContentFilterDetectionResultOutput; profanity?: ContentFilterDetectionResultOutput; self_harm?: ContentFilterResultOutput; @@ -191,7 +146,6 @@ export interface ContentFilterResultOutput { // @public export interface ContentFilterResultsForChoiceOutput { - custom_blocklists?: ContentFilterDetailedResults; error?: ErrorModel; hate?: ContentFilterResultOutput; profanity?: ContentFilterDetectionResultOutput; @@ -208,39 +162,6 @@ export interface ContentFilterResultsForPromptOutput { prompt_index: number; } -// @public -export interface ElasticsearchChatExtensionConfiguration extends AzureChatExtensionConfigurationParent { - parameters: ElasticsearchChatExtensionParameters; - type: "elasticsearch"; -} - -// @public -export interface ElasticsearchChatExtensionParameters { - allow_partial_result?: boolean; - authentication?: OnYourDataAuthenticationOptions; - embedding_dependency?: OnYourDataVectorizationSource; - endpoint: string; - fields_mapping?: ElasticsearchIndexFieldMappingOptions; - in_scope?: boolean; - include_contexts?: OnYourDataContextProperty[]; - index_name: string; - max_search_queries?: number; - query_type?: string; - role_information?: string; - strictness?: number; - top_n_documents?: number; -} - -// @public -export interface ElasticsearchIndexFieldMappingOptions { - content_fields?: string[]; - content_fields_separator?: string; - filepath_field?: string; - title_field?: string; - url_field?: string; - vector_fields?: string[]; -} - // @public export interface ImageGenerationContentFilterResults { hate?: ContentFilterResultOutput; @@ -251,7 +172,6 @@ export interface ImageGenerationContentFilterResults { // @public export interface ImageGenerationPromptFilterResults { - custom_blocklists?: ContentFilterDetailedResults; hate?: ContentFilterResultOutput; jailbreak?: ContentFilterDetectionResultOutput; profanity?: ContentFilterDetectionResultOutput; @@ -260,47 +180,6 @@ export interface ImageGenerationPromptFilterResults { violence?: ContentFilterResultOutput; } -// @public -export interface MongoDBChatExtensionConfiguration extends AzureChatExtensionConfigurationParent { - parameters: MongoDBChatExtensionParameters; - type: "mongo_db"; -} - -// @public -export interface MongoDBChatExtensionParameters { - allow_partial_result?: boolean; - app_name: string; - authentication?: OnYourDataUsernameAndPasswordAuthenticationOptions; - collection_name: string; - database_name: string; - embedding_dependency: OnYourDataEndpointVectorizationSource | OnYourDataDeploymentNameVectorizationSource; - endpoint: string; - fields_mapping: MongoDBFieldMappingOptions; - in_scope?: boolean; - include_contexts?: OnYourDataContextProperty[]; - index_name: string; - max_search_queries?: number; - role_information?: string; - strictness?: number; - top_n_documents?: number; -} - -// @public -export interface MongoDBFieldMappingOptions { - content_fields: string[]; - content_fields_separator?: string; - filepath_field?: string; - title_field?: string; - url_field?: string; - vector_fields: string[]; -} - -// @public -export interface OnYourDataAccessTokenAuthenticationOptions extends OnYourDataAuthenticationOptionsParent { - access_token: string; - type: "access_token"; -} - // @public export interface OnYourDataApiKeyAuthenticationOptions extends OnYourDataAuthenticationOptionsParent { key: string; @@ -308,7 +187,7 @@ export interface OnYourDataApiKeyAuthenticationOptions extends OnYourDataAuthent } // @public -export type OnYourDataAuthenticationOptions = OnYourDataAuthenticationOptionsParent | OnYourDataApiKeyAuthenticationOptions | OnYourDataConnectionStringAuthenticationOptions | OnYourDataKeyAndKeyIdAuthenticationOptions | OnYourDataEncodedApiKeyAuthenticationOptions | OnYourDataAccessTokenAuthenticationOptions | OnYourDataSystemAssignedManagedIdentityAuthenticationOptions | OnYourDataUserAssignedManagedIdentityAuthenticationOptions; +export type OnYourDataAuthenticationOptions = OnYourDataAuthenticationOptionsParent | OnYourDataApiKeyAuthenticationOptions | OnYourDataConnectionStringAuthenticationOptions | OnYourDataSystemAssignedManagedIdentityAuthenticationOptions | OnYourDataUserAssignedManagedIdentityAuthenticationOptions; // @public export interface OnYourDataAuthenticationOptionsParent { @@ -324,41 +203,16 @@ export interface OnYourDataConnectionStringAuthenticationOptions extends OnYourD // @public export interface OnYourDataDeploymentNameVectorizationSource extends OnYourDataVectorizationSourceParent { deployment_name: string; - dimensions?: number; type: "deployment_name"; } -// @public -export interface OnYourDataEncodedApiKeyAuthenticationOptions extends OnYourDataAuthenticationOptionsParent { - encoded_api_key: string; - type: "encoded_api_key"; -} - // @public export interface OnYourDataEndpointVectorizationSource extends OnYourDataVectorizationSourceParent { - authentication: OnYourDataVectorSearchAuthenticationOptions; + authentication: OnYourDataApiKeyAuthenticationOptions; endpoint: string; type: "endpoint"; } -// @public -export interface OnYourDataIntegratedVectorizationSource extends OnYourDataVectorizationSourceParent { - type: "integrated"; -} - -// @public -export interface OnYourDataKeyAndKeyIdAuthenticationOptions extends OnYourDataAuthenticationOptionsParent { - key: string; - key_id: string; - type: "key_and_key_id"; -} - -// @public -export interface OnYourDataModelIdVectorizationSource extends OnYourDataVectorizationSourceParent { - model_id: string; - type: "model_id"; -} - // @public export interface OnYourDataSystemAssignedManagedIdentityAuthenticationOptions extends OnYourDataAuthenticationOptionsParent { type: "system_assigned_managed_identity"; @@ -371,68 +225,13 @@ export interface OnYourDataUserAssignedManagedIdentityAuthenticationOptions exte } // @public -export interface OnYourDataUsernameAndPasswordAuthenticationOptions extends OnYourDataAuthenticationOptionsParent { - password: string; - type: "username_and_password"; - username: string; -} - -// @public -export type OnYourDataVectorizationSource = OnYourDataVectorizationSourceParent | OnYourDataEndpointVectorizationSource | OnYourDataDeploymentNameVectorizationSource | OnYourDataModelIdVectorizationSource | OnYourDataIntegratedVectorizationSource; +export type OnYourDataVectorizationSource = OnYourDataVectorizationSourceParent | OnYourDataEndpointVectorizationSource | OnYourDataDeploymentNameVectorizationSource; // @public export interface OnYourDataVectorizationSourceParent { type: string; } -// @public -export interface OnYourDataVectorSearchAccessTokenAuthenticationOptions extends OnYourDataVectorSearchAuthenticationOptions { - access_token: string; - type: "access_token"; -} - -// @public -export interface OnYourDataVectorSearchApiKeyAuthenticationOptions extends OnYourDataVectorSearchAuthenticationOptions { - key: string; - type: "api_key"; -} - -// @public -export interface OnYourDataVectorSearchAuthenticationOptions { - type: string; -} - -// @public -export interface PineconeChatExtensionConfiguration extends AzureChatExtensionConfigurationParent { - parameters: PineconeChatExtensionParameters; - type: "pinecone"; -} - -// @public -export interface PineconeChatExtensionParameters { - allow_partial_result?: boolean; - authentication?: OnYourDataAuthenticationOptions; - embedding_dependency: OnYourDataVectorizationSource; - environment: string; - fields_mapping: PineconeFieldMappingOptions; - in_scope?: boolean; - include_contexts?: OnYourDataContextProperty[]; - index_name: string; - max_search_queries?: number; - role_information?: string; - strictness?: number; - top_n_documents?: number; -} - -// @public -export interface PineconeFieldMappingOptions { - content_fields: string[]; - content_fields_separator?: string; - filepath_field?: string; - title_field?: string; - url_field?: string; -} - // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/openai/openai/samples-dev/audioTranscription.ts b/sdk/openai/openai/samples-dev/audioTranscription.ts index dedeb09abd03..c1d37133663f 100644 --- a/sdk/openai/openai/samples-dev/audioTranscription.ts +++ b/sdk/openai/openai/samples-dev/audioTranscription.ts @@ -26,7 +26,7 @@ export async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "whisper-deployment"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const result = await client.audio.transcriptions.create({ model: "", diff --git a/sdk/openai/openai/samples-dev/audioTranslation.ts b/sdk/openai/openai/samples-dev/audioTranslation.ts index bb3d7d55c4cc..f7cec9d71e81 100644 --- a/sdk/openai/openai/samples-dev/audioTranslation.ts +++ b/sdk/openai/openai/samples-dev/audioTranslation.ts @@ -26,7 +26,7 @@ export async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "whisper-deployment"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const result = await client.audio.translations.create({ model: "", diff --git a/sdk/openai/openai/samples-dev/chatCompletions.ts b/sdk/openai/openai/samples-dev/chatCompletions.ts index eaef1ab8ca16..0df4c493ab74 100644 --- a/sdk/openai/openai/samples-dev/chatCompletions.ts +++ b/sdk/openai/openai/samples-dev/chatCompletions.ts @@ -22,7 +22,7 @@ export async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "gpt-35-turbo"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const result = await client.chat.completions.create({ messages: [ diff --git a/sdk/openai/openai/samples-dev/codeInterpreter.ts b/sdk/openai/openai/samples-dev/codeInterpreter.ts index f30e5666a628..86bdb616ccf4 100644 --- a/sdk/openai/openai/samples-dev/codeInterpreter.ts +++ b/sdk/openai/openai/samples-dev/codeInterpreter.ts @@ -13,6 +13,7 @@ import { AzureOpenAI } from "openai"; import { getBearerTokenProvider, DefaultAzureCredential } from "@azure/identity"; export async function main() { + const apiVersion = "2024-09-01-preview"; // Create AzureOpenAI client with Microsoft Entra ID const credential = new DefaultAzureCredential(); const scope = "https://cognitiveservices.azure.com/.default"; @@ -20,6 +21,7 @@ export async function main() { const client = new AzureOpenAI({ azureADTokenProvider, + apiVersion, }); // Create an assistant using code interpreter tool diff --git a/sdk/openai/openai/samples-dev/completions.ts b/sdk/openai/openai/samples-dev/completions.ts index cba606857110..3f39b4935194 100644 --- a/sdk/openai/openai/samples-dev/completions.ts +++ b/sdk/openai/openai/samples-dev/completions.ts @@ -24,7 +24,7 @@ export async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "text-davinci-003"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const result = await client.completions.create({ prompt, model: "", max_tokens: 128 }); diff --git a/sdk/openai/openai/samples-dev/embeddings.ts b/sdk/openai/openai/samples-dev/embeddings.ts index 9baa1bdc32a2..8fe0fc267f60 100644 --- a/sdk/openai/openai/samples-dev/embeddings.ts +++ b/sdk/openai/openai/samples-dev/embeddings.ts @@ -24,7 +24,7 @@ export async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const deployment = "text-embedding-3-large"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const embeddings = await client.embeddings.create({ input, model: "" }); diff --git a/sdk/openai/openai/samples-dev/images.ts b/sdk/openai/openai/samples-dev/images.ts index 24d7df0a9210..ae5456263b66 100644 --- a/sdk/openai/openai/samples-dev/images.ts +++ b/sdk/openai/openai/samples-dev/images.ts @@ -29,7 +29,7 @@ export async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "dall-e-3"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const results = await client.images.generate({ prompt, model: "", n, size }); diff --git a/sdk/openai/openai/samples-dev/onYourData.ts b/sdk/openai/openai/samples-dev/onYourData.ts index ad539cb13fcb..9985b2785498 100644 --- a/sdk/openai/openai/samples-dev/onYourData.ts +++ b/sdk/openai/openai/samples-dev/onYourData.ts @@ -27,7 +27,7 @@ export async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "gpt-4-1106-preview"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const events = await client.chat.completions.create({ stream: true, diff --git a/sdk/openai/openai/samples-dev/streamChatCompletions.ts b/sdk/openai/openai/samples-dev/streamChatCompletions.ts index e8b9f1ec1b8c..2405e193b306 100644 --- a/sdk/openai/openai/samples-dev/streamChatCompletions.ts +++ b/sdk/openai/openai/samples-dev/streamChatCompletions.ts @@ -22,7 +22,7 @@ export async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "gpt-35-turbo"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const events = await client.chat.completions.create({ messages: [ diff --git a/sdk/openai/openai/samples-dev/streamChatCompletionsWithContentFilter.ts b/sdk/openai/openai/samples-dev/streamChatCompletionsWithContentFilter.ts index 51706ffc7c88..f95786f8546a 100644 --- a/sdk/openai/openai/samples-dev/streamChatCompletionsWithContentFilter.ts +++ b/sdk/openai/openai/samples-dev/streamChatCompletionsWithContentFilter.ts @@ -23,7 +23,7 @@ export async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "gpt-35-turbo"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const events = await client.chat.completions.create({ messages: [ diff --git a/sdk/openai/openai/samples-dev/streamCompletions.ts b/sdk/openai/openai/samples-dev/streamCompletions.ts index 5e6f5556224c..aec0cceeccdb 100644 --- a/sdk/openai/openai/samples-dev/streamCompletions.ts +++ b/sdk/openai/openai/samples-dev/streamCompletions.ts @@ -24,7 +24,7 @@ export async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "text-davinci-003"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-10-21"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const events = await client.completions.create({ prompt, diff --git a/sdk/openai/openai/samples-dev/textToSpeech.ts b/sdk/openai/openai/samples-dev/textToSpeech.ts index cacb74e3d18e..8d3a457243ba 100644 --- a/sdk/openai/openai/samples-dev/textToSpeech.ts +++ b/sdk/openai/openai/samples-dev/textToSpeech.ts @@ -24,7 +24,7 @@ const speechFilePath = process.env["SPEECH_FILE_PATH"] || " { endpoint: process.env.AZURE_OPENAI_ENDPOINT, deployment: process.env.AZURE_OPENAI_DEPLOYMENT, azureADTokenProvider, - apiVersion: "2024-08-01-preview", + apiVersion: "2024-10-21", }); const prompt = req.body.prompt; diff --git a/sdk/openai/openai/samples/cookbook/speechToSpeechChat/app.js b/sdk/openai/openai/samples/cookbook/speechToSpeechChat/app.js index 623519a17dcd..42134108b02f 100644 --- a/sdk/openai/openai/samples/cookbook/speechToSpeechChat/app.js +++ b/sdk/openai/openai/samples/cookbook/speechToSpeechChat/app.js @@ -24,7 +24,7 @@ const openAI = new AzureOpenAI({ endpoint: process.env.AZURE_OPENAI_ENDPOINT, deployment: process.env.AZURE_OPENAI_DEPLOYMENT, azureADTokenProvider, - apiVersion: "2024-08-01-preview", + apiVersion: "2024-10-21", }); app.get("/api/auth", async (req, res) => { diff --git a/sdk/openai/openai/samples/v2-beta/javascript/README.md b/sdk/openai/openai/samples/v2-beta/javascript/README.md index 70d945a22943..c4f2f9563f22 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/README.md +++ b/sdk/openai/openai/samples/v2-beta/javascript/README.md @@ -84,7 +84,7 @@ Take a look at our [API Documentation][apiref] for more information about the AP [streamcompletions]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/openai/openai/samples/v2-beta/javascript/streamCompletions.js [texttospeech]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/openai/openai/samples/v2-beta/javascript/textToSpeech.js [toolcall]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/openai/openai/samples/v2-beta/javascript/toolCall.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/openai +[apiref]: https://learn.microsoft.com/javascript/api/overview/azure/openai [freesub]: https://azure.microsoft.com/free/ [createinstance_azurecognitiveservicesinstance]: https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/openai/openai/README.md diff --git a/sdk/openai/openai/samples/v2-beta/javascript/audioTranscription.js b/sdk/openai/openai/samples/v2-beta/javascript/audioTranscription.js index 481f7da6ac53..9798eff100cd 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/audioTranscription.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/audioTranscription.js @@ -25,7 +25,7 @@ async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "whisper-deployment"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-09-01-preview"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const result = await client.audio.transcriptions.create({ model: "", diff --git a/sdk/openai/openai/samples/v2-beta/javascript/audioTranslation.js b/sdk/openai/openai/samples/v2-beta/javascript/audioTranslation.js index 0c4ee0de2669..e1fee6e0c943 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/audioTranslation.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/audioTranslation.js @@ -25,7 +25,7 @@ async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "whisper-deployment"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-09-01-preview"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const result = await client.audio.translations.create({ model: "", diff --git a/sdk/openai/openai/samples/v2-beta/javascript/batch.js b/sdk/openai/openai/samples/v2-beta/javascript/batch.js index 037a3e5f68c7..0baa0fb84022 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/batch.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/batch.js @@ -21,7 +21,7 @@ async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "gpt-4-turbo"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-09-01-preview"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const batchContent = `{ "custom_id": "request-1", "method": "POST", "url": "/v1/chat/completions", "body": { "model": "${deployment}", "messages": [{ "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What is 2+2?" }] } }`; diff --git a/sdk/openai/openai/samples/v2-beta/javascript/chatCompletions.js b/sdk/openai/openai/samples/v2-beta/javascript/chatCompletions.js index 800924d1c6b4..ff32989249d8 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/chatCompletions.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/chatCompletions.js @@ -21,7 +21,7 @@ async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "gpt-35-turbo"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-09-01-preview"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const result = await client.chat.completions.create({ messages: [ diff --git a/sdk/openai/openai/samples/v2-beta/javascript/codeInterpreter.js b/sdk/openai/openai/samples/v2-beta/javascript/codeInterpreter.js index 07e314694572..22d582be10bd 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/codeInterpreter.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/codeInterpreter.js @@ -12,6 +12,7 @@ const { AzureOpenAI } = require("openai"); const { getBearerTokenProvider, DefaultAzureCredential } = require("@azure/identity"); async function main() { + const apiVersion = "2024-09-01-preview"; // Create AzureOpenAI client with Microsoft Entra ID const credential = new DefaultAzureCredential(); const scope = "https://cognitiveservices.azure.com/.default"; @@ -19,6 +20,7 @@ async function main() { const client = new AzureOpenAI({ azureADTokenProvider, + apiVersion, }); // Create an assistant using code interpreter tool diff --git a/sdk/openai/openai/samples/v2-beta/javascript/completions.js b/sdk/openai/openai/samples/v2-beta/javascript/completions.js index 8e5c1230466e..83c64fd3e567 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/completions.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/completions.js @@ -23,7 +23,7 @@ async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "text-davinci-003"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-09-01-preview"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const result = await client.completions.create({ prompt, model: "", max_tokens: 128 }); diff --git a/sdk/openai/openai/samples/v2-beta/javascript/embeddings.js b/sdk/openai/openai/samples/v2-beta/javascript/embeddings.js index 40cebb710c6f..9338070e8078 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/embeddings.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/embeddings.js @@ -23,7 +23,7 @@ async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-09-01-preview"; const deployment = "text-embedding-3-large"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const embeddings = await client.embeddings.create({ input, model: "" }); diff --git a/sdk/openai/openai/samples/v2-beta/javascript/images.js b/sdk/openai/openai/samples/v2-beta/javascript/images.js index 2e7bfa49fb4d..4ad30ba2bbd1 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/images.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/images.js @@ -28,7 +28,7 @@ async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "dall-e-3"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-09-01-preview"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const results = await client.images.generate({ prompt, model: "", n, size }); diff --git a/sdk/openai/openai/samples/v2-beta/javascript/onYourData.js b/sdk/openai/openai/samples/v2-beta/javascript/onYourData.js index 8e9687f77e94..a2e2eea6a0cc 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/onYourData.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/onYourData.js @@ -25,7 +25,7 @@ async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "gpt-4-1106-preview"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-09-01-preview"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const events = await client.chat.completions.create({ stream: true, diff --git a/sdk/openai/openai/samples/v2-beta/javascript/streamChatCompletions.js b/sdk/openai/openai/samples/v2-beta/javascript/streamChatCompletions.js index c87be9711494..63ded82e7bbc 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/streamChatCompletions.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/streamChatCompletions.js @@ -21,7 +21,7 @@ async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "gpt-35-turbo"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-09-01-preview"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const events = await client.chat.completions.create({ messages: [ diff --git a/sdk/openai/openai/samples/v2-beta/javascript/streamChatCompletionsWithContentFilter.js b/sdk/openai/openai/samples/v2-beta/javascript/streamChatCompletionsWithContentFilter.js index ab4de3809d2a..a59f6c5a8aa6 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/streamChatCompletionsWithContentFilter.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/streamChatCompletionsWithContentFilter.js @@ -21,7 +21,7 @@ async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "gpt-35-turbo"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-09-01-preview"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const events = await client.chat.completions.create({ messages: [ diff --git a/sdk/openai/openai/samples/v2-beta/javascript/streamCompletions.js b/sdk/openai/openai/samples/v2-beta/javascript/streamCompletions.js index 61b913d63ac7..75e00730f3db 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/streamCompletions.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/streamCompletions.js @@ -23,7 +23,7 @@ async function main() { const scope = "https://cognitiveservices.azure.com/.default"; const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); const deployment = "text-davinci-003"; - const apiVersion = "2024-08-01-preview"; + const apiVersion = "2024-09-01-preview"; const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); const events = await client.completions.create({ prompt, diff --git a/sdk/openai/openai/samples/v2-beta/javascript/textToSpeech.js b/sdk/openai/openai/samples/v2-beta/javascript/textToSpeech.js index c8970c6f5dea..1db1695da8b4 100644 --- a/sdk/openai/openai/samples/v2-beta/javascript/textToSpeech.js +++ b/sdk/openai/openai/samples/v2-beta/javascript/textToSpeech.js @@ -23,7 +23,7 @@ const speechFilePath = process.env["SPEECH_FILE_PATH"] || ""; + +async function main() { + console.log("== Transcribe Audio Sample =="); + + const scope = "https://cognitiveservices.azure.com/.default"; + const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope); + const deployment = "whisper-deployment"; + const apiVersion = "2024-10-21"; + const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion }); + const result = await client.audio.transcriptions.create({ + model: "", + file: createReadStream(audioFilePath), + }); + + console.log(`Transcription: ${result.text}`); +} + +main().catch((err) => { + console.error("The sample encountered an error:", err); +}); + +module.exports = { main }; diff --git a/sdk/openai/openai/samples/v2/javascript/audioTranslation.js b/sdk/openai/openai/samples/v2/javascript/audioTranslation.js new file mode 100644 index 000000000000..1ae3c71656b0 --- /dev/null +++ b/sdk/openai/openai/samples/v2/javascript/audioTranslation.js @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +/** + * Demonstrates how to translate the content of an audio file. + * + * @summary audio translation. + */ + +const { AzureOpenAI } = require("openai"); +const { DefaultAzureCredential, getBearerTokenProvider } = require("@azure/identity"); +const { createReadStream } = require("fs"); + +// Set AZURE_OPENAI_ENDPOINT to the endpoint of your +// OpenAI resource. You can find this in the Azure portal. +// Load the .env file if it exists +require("dotenv/config"); + +// You will need to set these environment variables or edit the following values +const audioFilePath = process.env["AUDIO_FILE_PATH"] || "